@scip-code/scip
v0.9.0
Published
Generated TypeScript definitions for the Semantic Code Intelligence Protocol.
Readme
@scip-code/scip
Generated TypeScript definitions for the SCIP Code Intelligence Protocol.
Install
npm install @scip-code/scipThe package is ESM-only and ships with .d.ts declarations. Peer-style runtime
dependency on @bufbuild/protobuf, which is installed transitively.
Use
import { fromBinary, toBinary } from "@bufbuild/protobuf";
import { IndexSchema } from "@scip-code/scip";
import { readFileSync } from "node:fs";
const bytes = readFileSync("index.scip");
const index = fromBinary(IndexSchema, bytes);
console.log(index.metadata?.projectRoot);
for (const doc of index.documents) {
console.log(doc.relativePath, doc.occurrences.length);
}