@openez-graph/cli 0.4.0 → 0.4.1

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 (3) hide show
  1. package/README.md +15 -0
  2. package/dist/cli.cjs +14 -8
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -98,6 +98,21 @@ openez setup opencode # wire up OpenCode
98
98
  | YAML / JSON / TOML | Structure-aware chunking |
99
99
  | Markdown | Section-oriented chunking |
100
100
 
101
+ ## Retrieval quality
102
+
103
+ Benchmarked on 18 real queries against the openez codebase itself (118 files, 640 chunks):
104
+
105
+ | Metric | Value |
106
+ |--------|-------|
107
+ | Recall@5 | 94.44% |
108
+ | MRR | 0.6565 |
109
+ | Avg latency | 38.68 ms |
110
+ | p50 latency | 18.65 ms |
111
+ | Duplicate path rate | 0% |
112
+ | Quality gate | PASS |
113
+
114
+ FTS5 with BM25 ranking handles 94% of queries in under 40ms — no embeddings needed for the default path. Embeddings (OpenAI/Ollama) are optional semantic fallback for queries without direct keyword overlap.
115
+
101
116
  ## Web dashboard
102
117
 
103
118
  ```bash
package/dist/cli.cjs CHANGED
@@ -319559,7 +319559,10 @@ function getDirname() {
319559
319559
  }
319560
319560
  } catch {
319561
319561
  }
319562
- return typeof __dirname2 !== "undefined" ? __dirname2 : process.cwd();
319562
+ if (typeof __dirname !== "undefined") {
319563
+ return __dirname;
319564
+ }
319565
+ return process.cwd();
319563
319566
  }
319564
319567
  function mapWorkspace2(ws) {
319565
319568
  return {
@@ -319583,10 +319586,12 @@ function mapWorkspace2(ws) {
319583
319586
  };
319584
319587
  }
319585
319588
  function resolveWebDist() {
319586
- const sourceDist = import_node_path14.default.resolve(__dirname2, "..", "dist");
319589
+ const sourceDist = import_node_path14.default.resolve(serverDir, "..", "dist");
319587
319590
  if ((0, import_node_fs10.existsSync)(import_node_path14.default.join(sourceDist, "index.html"))) return sourceDist;
319588
- const cliDist = import_node_path14.default.resolve(__dirname2, "web");
319589
- if ((0, import_node_fs10.existsSync)(import_node_path14.default.join(cliDist, "index.html"))) return cliDist;
319591
+ if (process.env.OPENEZ_CLI_BUNDLE === "true" && process.argv[1]) {
319592
+ const cliDist = import_node_path14.default.resolve(import_node_path14.default.dirname((0, import_node_fs10.realpathSync)(process.argv[1])), "web");
319593
+ if ((0, import_node_fs10.existsSync)(import_node_path14.default.join(cliDist, "index.html"))) return cliDist;
319594
+ }
319590
319595
  return null;
319591
319596
  }
319592
319597
  function createWebServer() {
@@ -319601,7 +319606,7 @@ function createWebServer() {
319601
319606
  }
319602
319607
  return app;
319603
319608
  }
319604
- var import_serve_static, import_hono, import_cors, import_node_crypto3, import_node_fs10, import_node_path14, import_meta4, __dirname2, app, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS;
319609
+ var import_serve_static, import_hono, import_cors, import_node_crypto3, import_node_fs10, import_node_path14, import_meta4, serverDir, app, DEFAULT_INCLUDE_GLOBS, DEFAULT_EXCLUDE_GLOBS;
319605
319610
  var init_server3 = __esm({
319606
319611
  "../web/src/server/index.ts"() {
319607
319612
  "use strict";
@@ -319615,7 +319620,7 @@ var init_server3 = __esm({
319615
319620
  init_src3();
319616
319621
  init_src();
319617
319622
  import_meta4 = {};
319618
- __dirname2 = getDirname();
319623
+ serverDir = getDirname();
319619
319624
  app = new import_hono.Hono();
319620
319625
  app.use(
319621
319626
  "/*",
@@ -321147,8 +321152,9 @@ async function setupOpenCode(rootPath) {
321147
321152
  }
321148
321153
  const mcp = config2.mcp;
321149
321154
  mcp[label] = {
321150
- command,
321151
- args
321155
+ type: "local",
321156
+ command: [command, ...args],
321157
+ enabled: true
321152
321158
  };
321153
321159
  import_node_fs14.default.writeFileSync(configPath, JSON.stringify(config2, null, 2) + "\n", "utf-8");
321154
321160
  import_node_fs14.default.chmodSync(configPath, 420);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openez-graph/cli",
3
- "version": "0.4.0",
3
+ "version": "0.4.1",
4
4
  "description": "Local-first code intelligence engine — index, query, and graph your codebase with zero config. SQLite-only, MCP-first.",
5
5
  "license": "MIT",
6
6
  "author": "Asta Nguyen",