engramx 0.5.1 → 0.5.3

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.
package/README.md CHANGED
@@ -341,7 +341,7 @@ Each view picks a different set of sections with different limits. For example,
341
341
 
342
342
  | | engram | Mem0 | Graphify | aider repo-map | CLAUDE.md |
343
343
  |---|---|---|---|---|---|
344
- | **Code structure** | AST extraction (10 langs) | No | Yes (tree-sitter) | Yes (tree-sitter) | No |
344
+ | **Code structure** | Heuristic extraction (10 langs) | No | Yes (tree-sitter) | Yes (tree-sitter) | No |
345
345
  | **Persistent memory** | SQLite graph, survives sessions | Yes (vector + graph) | Static snapshot | Per-session only | Manual text file |
346
346
  | **Session learning** | Mines decisions, patterns, mistakes | Generic facts | No | No | You write it by hand |
347
347
  | **Universal** | MCP + CLI + auto-gen | API only | Claude Code only | aider only | Claude Code only |
@@ -382,12 +382,12 @@ engram hooks status # Check installation
382
382
  engram hooks uninstall # Remove hooks
383
383
  ```
384
384
 
385
- Code changes trigger an instant AST rebuild (no LLM, <50ms). The graph stays fresh without manual re-runs.
385
+ Code changes trigger an instant graph rebuild (no LLM, <50ms). The graph stays fresh without manual re-runs.
386
386
 
387
387
  ## Programmatic API
388
388
 
389
389
  ```typescript
390
- import { init, query, godNodes, stats } from "engram";
390
+ import { init, query, godNodes, stats } from "engramx";
391
391
 
392
392
  // Build the graph
393
393
  const result = await init("./my-project");
@@ -408,8 +408,8 @@ var GraphStore = class _GraphStore {
408
408
  "DELETE FROM provider_cache WHERE (cached_at + ttl * 1000) <= ?",
409
409
  [now]
410
410
  );
411
- const changes = this.db.getRowsModified();
412
- return changes;
411
+ const result = this.db.exec("SELECT changes()");
412
+ return result[0]?.values[0]?.[0] ?? 0;
413
413
  }
414
414
  /**
415
415
  * Remove all cache entries for a provider. Used when a provider is
@@ -310,7 +310,7 @@ function writeToFile(filePath, summary) {
310
310
  writeFileSync2(filePath, newContent);
311
311
  }
312
312
  async function autogen(projectRoot, target, task) {
313
- const { getStore } = await import("./core-VUVXLXZN.js");
313
+ const { getStore } = await import("./core-UXIP2GDR.js");
314
314
  const store = await getStore(projectRoot);
315
315
  try {
316
316
  let view = VIEWS.general;
package/dist/cli.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  install,
5
5
  status,
6
6
  uninstall
7
- } from "./chunk-LH2ZID5Z.js";
7
+ } from "./chunk-KEV4LNM6.js";
8
8
  import {
9
9
  benchmark,
10
10
  computeKeywordIDF,
@@ -21,7 +21,7 @@ import {
21
21
  renderFileStructure,
22
22
  stats,
23
23
  toPosixPath
24
- } from "./chunk-V5VQQ3SF.js";
24
+ } from "./chunk-IIFAAYDO.js";
25
25
 
26
26
  // src/cli.ts
27
27
  import { Command } from "commander";
@@ -1012,7 +1012,7 @@ async function warmAllProviders(projectRoot, enabledProviders) {
1012
1012
  try {
1013
1013
  const result = await withTimeout2(p.warmup(projectRoot), 5e3);
1014
1014
  if (result && result.entries.length > 0) {
1015
- const { getStore: getStore2 } = await import("./core-VUVXLXZN.js");
1015
+ const { getStore: getStore2 } = await import("./core-UXIP2GDR.js");
1016
1016
  const store = await getStore2(projectRoot);
1017
1017
  try {
1018
1018
  store.warmCache(
@@ -11,7 +11,7 @@ import {
11
11
  path,
12
12
  query,
13
13
  stats
14
- } from "./chunk-V5VQQ3SF.js";
14
+ } from "./chunk-IIFAAYDO.js";
15
15
  export {
16
16
  benchmark,
17
17
  computeKeywordIDF,
package/dist/index.js CHANGED
@@ -4,7 +4,7 @@ import {
4
4
  generateSummary,
5
5
  install,
6
6
  uninstall
7
- } from "./chunk-LH2ZID5Z.js";
7
+ } from "./chunk-KEV4LNM6.js";
8
8
  import {
9
9
  GraphStore,
10
10
  SUPPORTED_EXTENSIONS,
@@ -23,7 +23,7 @@ import {
23
23
  sliceGraphemeSafe,
24
24
  stats,
25
25
  truncateGraphemeSafe
26
- } from "./chunk-V5VQQ3SF.js";
26
+ } from "./chunk-IIFAAYDO.js";
27
27
  export {
28
28
  GraphStore,
29
29
  SUPPORTED_EXTENSIONS,
package/dist/serve.js CHANGED
@@ -8,7 +8,7 @@ import {
8
8
  query,
9
9
  stats,
10
10
  truncateGraphemeSafe
11
- } from "./chunk-V5VQQ3SF.js";
11
+ } from "./chunk-IIFAAYDO.js";
12
12
 
13
13
  // src/serve.ts
14
14
  function clampInt(value, defaultValue, min, max) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "engramx",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "description": "The context spine for AI coding agents. 6 providers assembled into rich context packets per Read interception. Up to 90% session-level token savings. Local SQLite, zero native deps, zero cloud.",
5
5
  "repository": {
6
6
  "type": "git",