@remnic/core 1.1.3 → 1.1.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 (86) hide show
  1. package/dist/access-cli.js +14 -14
  2. package/dist/access-http.d.ts +2 -2
  3. package/dist/access-http.js +8 -7
  4. package/dist/access-mcp.d.ts +2 -2
  5. package/dist/access-mcp.js +7 -6
  6. package/dist/{access-service-_AEUMVyX.d.ts → access-service-CtXFnprR.d.ts} +59 -7
  7. package/dist/access-service.d.ts +2 -2
  8. package/dist/access-service.js +6 -5
  9. package/dist/bootstrap.d.ts +1 -1
  10. package/dist/briefing.d.ts +1 -1
  11. package/dist/briefing.js +3 -3
  12. package/dist/buffer.d.ts +1 -1
  13. package/dist/causal-consolidation.js +3 -3
  14. package/dist/{chunk-Y3WQ4ZWK.js → chunk-52PDY6GD.js} +2 -2
  15. package/dist/{chunk-BOUYNNYD.js → chunk-67YLUWLG.js} +32 -13
  16. package/dist/{chunk-BOUYNNYD.js.map → chunk-67YLUWLG.js.map} +1 -1
  17. package/dist/{chunk-DR7MCMPS.js → chunk-AEMBDV7M.js} +210 -5
  18. package/dist/chunk-AEMBDV7M.js.map +1 -0
  19. package/dist/{chunk-55FXRRSJ.js → chunk-AGZHRWPT.js} +2 -2
  20. package/dist/{chunk-AKUCB2OG.js → chunk-CUI2STX6.js} +5 -4
  21. package/dist/{chunk-AKUCB2OG.js.map → chunk-CUI2STX6.js.map} +1 -1
  22. package/dist/{chunk-DHRQHX36.js → chunk-EGEPUGN4.js} +2 -2
  23. package/dist/{chunk-LZRYQK6L.js → chunk-F5VQOQ2E.js} +2 -2
  24. package/dist/{chunk-ZGXSCMQN.js → chunk-HIRKCQGF.js} +12 -12
  25. package/dist/{chunk-34F3PLWZ.js → chunk-MUELDH4F.js} +2 -2
  26. package/dist/{chunk-IM3JSE73.js → chunk-NZS2BLTP.js} +20 -14
  27. package/dist/{chunk-IM3JSE73.js.map → chunk-NZS2BLTP.js.map} +1 -1
  28. package/dist/{chunk-7GCMLT7J.js → chunk-TIFRGAKO.js} +4 -4
  29. package/dist/{chunk-R2L7SUX2.js → chunk-V7TEH5I2.js} +2 -2
  30. package/dist/{chunk-L5IIGA5V.js → chunk-W7WWT4FJ.js} +2 -2
  31. package/dist/{chunk-N7X62G74.js → chunk-X6VBWOVZ.js} +4 -4
  32. package/dist/{chunk-LVYGDT5V.js → chunk-XQ4EJLUD.js} +10 -12
  33. package/dist/chunk-XQ4EJLUD.js.map +1 -0
  34. package/dist/{chunk-4PLGJRBV.js → chunk-XRCYKJ3V.js} +130 -3
  35. package/dist/{chunk-4PLGJRBV.js.map → chunk-XRCYKJ3V.js.map} +1 -1
  36. package/dist/{chunk-DCE6SQLA.js → chunk-Y4A6M3B6.js} +2 -2
  37. package/dist/{chunk-SS253RXF.js → chunk-ZIBOQULP.js} +2 -2
  38. package/dist/{cli-x2APT9a6.d.ts → cli-lMql2FCr.d.ts} +2 -2
  39. package/dist/cli.d.ts +3 -3
  40. package/dist/cli.js +14 -13
  41. package/dist/consolidation-provenance-check.d.ts +1 -1
  42. package/dist/consolidation-undo.d.ts +1 -1
  43. package/dist/{engine-ICC2DSQF.js → engine-O6YWKQM3.js} +6 -4
  44. package/dist/entity-retrieval.d.ts +1 -1
  45. package/dist/entity-retrieval.js +3 -3
  46. package/dist/explicit-capture.d.ts +1 -1
  47. package/dist/extraction.js +2 -2
  48. package/dist/index.d.ts +17 -5
  49. package/dist/index.js +25 -19
  50. package/dist/index.js.map +1 -1
  51. package/dist/{memory-governance-KG52RITE.js → memory-governance-JZHZDOLN.js} +4 -4
  52. package/dist/{memory-projection-store-D3vBHS4J.d.ts → memory-projection-store-CY8TU40w.d.ts} +1 -1
  53. package/dist/memory-projection-store.d.ts +1 -1
  54. package/dist/memory-projection-store.js +1 -1
  55. package/dist/memory-worth-outcomes.d.ts +1 -1
  56. package/dist/operator-toolkit.d.ts +1 -1
  57. package/dist/operator-toolkit.js +5 -5
  58. package/dist/orchestrator.d.ts +1 -1
  59. package/dist/orchestrator.js +11 -11
  60. package/dist/schemas.d.ts +22 -22
  61. package/dist/semantic-consolidation.js +3 -3
  62. package/dist/semantic-rule-promotion.js +3 -3
  63. package/dist/semantic-rule-verifier.js +3 -3
  64. package/dist/storage.d.ts +1 -1
  65. package/dist/storage.js +2 -2
  66. package/dist/temporal-supersession.d.ts +1 -1
  67. package/dist/tier-migration.d.ts +1 -1
  68. package/dist/verified-recall.js +3 -3
  69. package/package.json +6 -3
  70. package/scripts/ensure-better-sqlite3.mjs +124 -0
  71. package/dist/chunk-DR7MCMPS.js.map +0 -1
  72. package/dist/chunk-LVYGDT5V.js.map +0 -1
  73. /package/dist/{chunk-Y3WQ4ZWK.js.map → chunk-52PDY6GD.js.map} +0 -0
  74. /package/dist/{chunk-55FXRRSJ.js.map → chunk-AGZHRWPT.js.map} +0 -0
  75. /package/dist/{chunk-DHRQHX36.js.map → chunk-EGEPUGN4.js.map} +0 -0
  76. /package/dist/{chunk-LZRYQK6L.js.map → chunk-F5VQOQ2E.js.map} +0 -0
  77. /package/dist/{chunk-ZGXSCMQN.js.map → chunk-HIRKCQGF.js.map} +0 -0
  78. /package/dist/{chunk-34F3PLWZ.js.map → chunk-MUELDH4F.js.map} +0 -0
  79. /package/dist/{chunk-7GCMLT7J.js.map → chunk-TIFRGAKO.js.map} +0 -0
  80. /package/dist/{chunk-R2L7SUX2.js.map → chunk-V7TEH5I2.js.map} +0 -0
  81. /package/dist/{chunk-L5IIGA5V.js.map → chunk-W7WWT4FJ.js.map} +0 -0
  82. /package/dist/{chunk-N7X62G74.js.map → chunk-X6VBWOVZ.js.map} +0 -0
  83. /package/dist/{chunk-DCE6SQLA.js.map → chunk-Y4A6M3B6.js.map} +0 -0
  84. /package/dist/{chunk-SS253RXF.js.map → chunk-ZIBOQULP.js.map} +0 -0
  85. /package/dist/{engine-ICC2DSQF.js.map → engine-O6YWKQM3.js.map} +0 -0
  86. /package/dist/{memory-governance-KG52RITE.js.map → memory-governance-JZHZDOLN.js.map} +0 -0
@@ -3,13 +3,13 @@ import {
3
3
  } from "./chunk-IQT3XTKW.js";
4
4
  import {
5
5
  EngramAccessInputError
6
- } from "./chunk-DR7MCMPS.js";
6
+ } from "./chunk-AEMBDV7M.js";
7
7
  import {
8
8
  expandTildePath
9
9
  } from "./chunk-IXEJRKCZ.js";
10
10
  import {
11
11
  validateBriefingFormat
12
- } from "./chunk-SS253RXF.js";
12
+ } from "./chunk-ZIBOQULP.js";
13
13
  import {
14
14
  readEnvVar
15
15
  } from "./chunk-MARWOCVP.js";
@@ -958,6 +958,43 @@ var EngramMcpServer = class {
958
958
  additionalProperties: false
959
959
  }
960
960
  },
961
+ {
962
+ name: "engram.memory_action_apply",
963
+ description: "Record a memory-action application event for policy-learning telemetry.",
964
+ inputSchema: {
965
+ type: "object",
966
+ properties: {
967
+ action: {
968
+ type: "string",
969
+ enum: [
970
+ "store_episode",
971
+ "store_note",
972
+ "update_note",
973
+ "create_artifact",
974
+ "summarize_node",
975
+ "discard",
976
+ "link_graph"
977
+ ]
978
+ },
979
+ category: { type: "string" },
980
+ content: { type: "string" },
981
+ outcome: { type: "string", enum: ["applied", "skipped", "failed"] },
982
+ reason: { type: "string" },
983
+ memoryId: { type: "string" },
984
+ sessionKey: { type: "string" },
985
+ linkTargetId: { type: "string" },
986
+ linkType: { type: "string" },
987
+ linkStrength: { type: "number" },
988
+ artifactType: { type: "string" },
989
+ execute: { type: "boolean" },
990
+ sourcePrompt: { type: "string" },
991
+ namespace: { type: "string" },
992
+ dryRun: { type: "boolean" }
993
+ },
994
+ required: ["action"],
995
+ additionalProperties: false
996
+ }
997
+ },
961
998
  {
962
999
  name: "engram.context_checkpoint",
963
1000
  description: "Save a structured context checkpoint for a session (preserves conversation state to disk).",
@@ -1029,6 +1066,49 @@ var EngramMcpServer = class {
1029
1066
  additionalProperties: false
1030
1067
  }
1031
1068
  },
1069
+ {
1070
+ name: "engram.memory_summarize_hourly",
1071
+ description: "Generate hourly summaries for recent conversations.",
1072
+ inputSchema: {
1073
+ type: "object",
1074
+ properties: {},
1075
+ additionalProperties: false
1076
+ }
1077
+ },
1078
+ {
1079
+ name: "engram.conversation_index_update",
1080
+ description: "Chunk transcript history into conversation-index documents.",
1081
+ inputSchema: {
1082
+ type: "object",
1083
+ properties: {
1084
+ sessionKey: { type: "string" },
1085
+ hours: { type: "number", description: "How many hours of transcript history to include." },
1086
+ embed: { type: "boolean", description: "If true, run QMD embed after update for this invocation." }
1087
+ },
1088
+ additionalProperties: false
1089
+ }
1090
+ },
1091
+ {
1092
+ name: "engram.profiling_report",
1093
+ description: "Return timing and performance data for Remnic recall and extraction pipelines. Requires profilingEnabled: true.",
1094
+ inputSchema: {
1095
+ type: "object",
1096
+ properties: {
1097
+ format: {
1098
+ type: "string",
1099
+ enum: ["ascii", "json"],
1100
+ description: "Output format. Defaults to ascii."
1101
+ },
1102
+ limit: {
1103
+ type: "integer",
1104
+ minimum: 1,
1105
+ maximum: 20,
1106
+ description: "Number of recent traces to include. Defaults to 5."
1107
+ }
1108
+ },
1109
+ additionalProperties: false
1110
+ }
1111
+ },
1032
1112
  {
1033
1113
  name: "engram.graph_edge_decay_run",
1034
1114
  description: "Run the graph-edge-confidence decay maintenance pass (issue #681 PR 2/3). Respects graphEdgeDecayEnabled; writes a structured telemetry record to state/graph-edge-decay-status.json.",
@@ -2020,6 +2100,25 @@ ${body}`;
2020
2100
  timestamp: typeof args.timestamp === "string" ? args.timestamp : void 0
2021
2101
  });
2022
2102
  }
2103
+ case "engram.memory_action_apply":
2104
+ return this.service.memoryActionApply({
2105
+ action: typeof args.action === "string" ? args.action : "",
2106
+ outcome: typeof args.outcome === "string" ? args.outcome : void 0,
2107
+ reason: typeof args.reason === "string" ? args.reason : void 0,
2108
+ memoryId: typeof args.memoryId === "string" ? args.memoryId : void 0,
2109
+ namespace: typeof args.namespace === "string" ? args.namespace : void 0,
2110
+ principal: effectivePrincipal,
2111
+ sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : void 0,
2112
+ content: typeof args.content === "string" ? args.content : void 0,
2113
+ category: typeof args.category === "string" ? args.category : void 0,
2114
+ linkTargetId: typeof args.linkTargetId === "string" ? args.linkTargetId : void 0,
2115
+ linkType: typeof args.linkType === "string" ? args.linkType : void 0,
2116
+ linkStrength: typeof args.linkStrength === "number" ? args.linkStrength : void 0,
2117
+ artifactType: typeof args.artifactType === "string" ? args.artifactType : void 0,
2118
+ execute: typeof args.execute === "boolean" ? args.execute : void 0,
2119
+ sourcePrompt: typeof args.sourcePrompt === "string" ? args.sourcePrompt : void 0,
2120
+ dryRun: args.dryRun === true
2121
+ });
2023
2122
  case "engram.context_checkpoint":
2024
2123
  return this.service.contextCheckpoint({
2025
2124
  sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : "",
@@ -2079,6 +2178,34 @@ ${body}`;
2079
2178
  namespace: typeof args.namespace === "string" ? args.namespace : void 0
2080
2179
  });
2081
2180
  }
2181
+ case "engram.memory_summarize_hourly":
2182
+ case "remnic.memory_summarize_hourly":
2183
+ return this.service.memorySummarizeHourly();
2184
+ case "engram.conversation_index_update":
2185
+ case "remnic.conversation_index_update": {
2186
+ if ("sessionKey" in args && args.sessionKey !== void 0 && typeof args.sessionKey !== "string") {
2187
+ throw new Error("sessionKey must be a string when provided");
2188
+ }
2189
+ const sessionKey = typeof args.sessionKey === "string" ? args.sessionKey : void 0;
2190
+ return this.service.conversationIndexUpdate({
2191
+ sessionKey,
2192
+ hours: typeof args.hours === "number" && Number.isFinite(args.hours) ? args.hours : void 0,
2193
+ embed: typeof args.embed === "boolean" ? args.embed : void 0
2194
+ });
2195
+ }
2196
+ case "engram.profiling_report":
2197
+ case "remnic.profiling_report": {
2198
+ if ("format" in args && args.format !== void 0 && typeof args.format !== "string") {
2199
+ throw new EngramAccessInputError("format must be a string when provided");
2200
+ }
2201
+ if ("limit" in args && args.limit !== void 0 && typeof args.limit !== "number") {
2202
+ throw new EngramAccessInputError("limit must be a number when provided");
2203
+ }
2204
+ return this.service.profilingReport({
2205
+ format: typeof args.format === "string" ? args.format : void 0,
2206
+ limit: typeof args.limit === "number" ? args.limit : void 0
2207
+ });
2208
+ }
2082
2209
  case "engram.graph_edge_decay_run":
2083
2210
  case "remnic.graph_edge_decay_run": {
2084
2211
  const cfg = this.service.configRef;
@@ -2230,4 +2357,4 @@ ${body}`;
2230
2357
  export {
2231
2358
  EngramMcpServer
2232
2359
  };
2233
- //# sourceMappingURL=chunk-4PLGJRBV.js.map
2360
+ //# sourceMappingURL=chunk-XRCYKJ3V.js.map