engramx 0.4.3 → 0.4.4

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 +13 -3
  2. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -1774,12 +1774,22 @@ program.command("dashboard").alias("hud").description("Live terminal dashboard s
1774
1774
  });
1775
1775
  });
1776
1776
  program.command("hud-label").description("Output JSON label for Claude HUD --extra-cmd (fast, <20ms)").argument("[path]", "Project directory", ".").action(async (projectPath) => {
1777
- const resolvedPath = pathResolve(projectPath);
1778
- const logPath = join8(resolvedPath, ".engram", "hook-log.jsonl");
1779
- if (!existsSync8(join8(resolvedPath, ".engram", "graph.db"))) {
1777
+ let resolvedPath = pathResolve(projectPath);
1778
+ let found = false;
1779
+ for (let depth = 0; depth < 20; depth++) {
1780
+ if (existsSync8(join8(resolvedPath, ".engram", "graph.db"))) {
1781
+ found = true;
1782
+ break;
1783
+ }
1784
+ const parent = dirname3(resolvedPath);
1785
+ if (parent === resolvedPath) break;
1786
+ resolvedPath = parent;
1787
+ }
1788
+ if (!found) {
1780
1789
  console.log('{"label":""}');
1781
1790
  return;
1782
1791
  }
1792
+ const logPath = join8(resolvedPath, ".engram", "hook-log.jsonl");
1783
1793
  if (!existsSync8(logPath)) {
1784
1794
  console.log('{"label":"\u26A1engram \u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591\u2591 ready"}');
1785
1795
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engramx",
3
- "version": "0.4.3",
3
+ "version": "0.4.4",
4
4
  "description": "The structural code graph your AI agent can't forget to use. A Claude Code hook layer that intercepts Read/Edit/Write/Bash and replaces file contents with ~300-token structural graph summaries. 82% measured token reduction. Context rot is empirically solved — cite Chroma. Local SQLite, zero LLM cost, zero cloud, zero native deps.",
5
5
  "type": "module",
6
6
  "bin": {