scip-query 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/cli.js +4 -1
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  // src/cli.ts
4
4
  import { program } from "commander";
5
+ import { createRequire } from "module";
5
6
  import { existsSync as existsSync8, realpathSync } from "fs";
6
7
  import { join as join10 } from "path";
7
8
  import { fileURLToPath as fileURLToPath2 } from "url";
@@ -6265,6 +6266,8 @@ function installSkills(opts = {}) {
6265
6266
  }
6266
6267
 
6267
6268
  // src/cli.ts
6269
+ var require2 = createRequire(import.meta.url);
6270
+ var { version: cliVersion } = require2("../package.json");
6268
6271
  function resolveProjectRoot() {
6269
6272
  return process.env["SCIP_QUERY_PROJECT_ROOT"] ?? process.cwd();
6270
6273
  }
@@ -6367,7 +6370,7 @@ var queries = {
6367
6370
  redundantReexports,
6368
6371
  similarSignatures
6369
6372
  };
6370
- program.name("scip-query").description("Language-agnostic code intelligence CLI powered by SCIP indexes").version("0.1.0");
6373
+ program.name("scip-query").description("Language-agnostic code intelligence CLI powered by SCIP indexes").version(cliVersion);
6371
6374
  program.command("reindex").description("Index the codebase and convert to SQLite").option("-l, --language <lang>", "Index only this language (can be repeated)", collect, []).option("--pnpm-workspaces", "Enable pnpm workspace support (TypeScript)").action(async (opts) => {
6372
6375
  const projectRoot = resolveProjectRoot();
6373
6376
  try {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "scip-query",
3
- "version": "0.3.1",
3
+ "version": "0.3.2",
4
4
  "description": "Language-agnostic code intelligence CLI powered by SCIP indexes",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",