@remnic/core 1.1.3 → 1.1.5

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 (182) hide show
  1. package/dist/access-cli.js +19 -19
  2. package/dist/access-http.d.ts +7 -7
  3. package/dist/access-http.js +12 -11
  4. package/dist/access-mcp.d.ts +7 -7
  5. package/dist/access-mcp.js +11 -10
  6. package/dist/access-schema.d.ts +89 -4
  7. package/dist/access-schema.js +1 -1
  8. package/dist/{access-service-_AEUMVyX.d.ts → access-service-CWYIkMwY.d.ts} +74 -18
  9. package/dist/access-service.d.ts +7 -7
  10. package/dist/access-service.js +9 -8
  11. package/dist/active-memory-bridge.d.ts +1 -1
  12. package/dist/active-recall.d.ts +1 -1
  13. package/dist/behavior-learner.d.ts +1 -1
  14. package/dist/behavior-signals.d.ts +1 -1
  15. package/dist/bootstrap.d.ts +6 -6
  16. package/dist/briefing.d.ts +2 -2
  17. package/dist/briefing.js +4 -4
  18. package/dist/buffer-surprise-report.d.ts +1 -1
  19. package/dist/buffer.d.ts +2 -2
  20. package/dist/calibration.d.ts +1 -1
  21. package/dist/causal-behavior.d.ts +1 -1
  22. package/dist/causal-consolidation.d.ts +2 -2
  23. package/dist/causal-consolidation.js +4 -4
  24. package/dist/{chunk-LZRYQK6L.js → chunk-3YBRSJ52.js} +2 -2
  25. package/dist/{chunk-DCE6SQLA.js → chunk-46AIFPQM.js} +3 -3
  26. package/dist/{chunk-AKUCB2OG.js → chunk-4CVIF7UZ.js} +14 -7
  27. package/dist/chunk-4CVIF7UZ.js.map +1 -0
  28. package/dist/{chunk-34F3PLWZ.js → chunk-57SNKQNS.js} +2 -2
  29. package/dist/{chunk-DHRQHX36.js → chunk-5XVDDCMH.js} +2 -2
  30. package/dist/{chunk-BOUYNNYD.js → chunk-67YLUWLG.js} +32 -13
  31. package/dist/{chunk-BOUYNNYD.js.map → chunk-67YLUWLG.js.map} +1 -1
  32. package/dist/{chunk-IM3JSE73.js → chunk-7NFZWXAY.js} +722 -27
  33. package/dist/chunk-7NFZWXAY.js.map +1 -0
  34. package/dist/{chunk-4PLGJRBV.js → chunk-DKVEJTLC.js} +188 -18
  35. package/dist/chunk-DKVEJTLC.js.map +1 -0
  36. package/dist/{chunk-DR7MCMPS.js → chunk-DTDB6YS2.js} +219 -9
  37. package/dist/chunk-DTDB6YS2.js.map +1 -0
  38. package/dist/{chunk-55FXRRSJ.js → chunk-ERWKQVCX.js} +2 -2
  39. package/dist/{chunk-7GCMLT7J.js → chunk-FG5R5AQF.js} +5 -5
  40. package/dist/{chunk-Y3WQ4ZWK.js → chunk-FLHPNR5W.js} +2 -2
  41. package/dist/{chunk-JWSENLQI.js → chunk-H62HCANJ.js} +3 -1
  42. package/dist/{chunk-JWSENLQI.js.map → chunk-H62HCANJ.js.map} +1 -1
  43. package/dist/{chunk-L5IIGA5V.js → chunk-HPJPGIGN.js} +2 -2
  44. package/dist/{chunk-SS253RXF.js → chunk-KCZZLFW5.js} +2 -2
  45. package/dist/{chunk-47WOM4YW.js → chunk-MJPNOMY4.js} +2 -2
  46. package/dist/{chunk-ZGXSCMQN.js → chunk-OAIXBFAH.js} +18 -18
  47. package/dist/{chunk-ZGXSCMQN.js.map → chunk-OAIXBFAH.js.map} +1 -1
  48. package/dist/{chunk-RILIVK4O.js → chunk-RICG4UNC.js} +28 -2
  49. package/dist/chunk-RICG4UNC.js.map +1 -0
  50. package/dist/{chunk-SMA4IMHV.js → chunk-SGTA3HJC.js} +3 -3
  51. package/dist/{chunk-VTJVUHRK.js → chunk-SRBJUAMP.js} +1 -1
  52. package/dist/chunk-SRBJUAMP.js.map +1 -0
  53. package/dist/{chunk-R2L7SUX2.js → chunk-TMPLRVHD.js} +2 -2
  54. package/dist/{chunk-43EKP2UK.js → chunk-TOC3VOOF.js} +1 -1
  55. package/dist/{chunk-43EKP2UK.js.map → chunk-TOC3VOOF.js.map} +1 -1
  56. package/dist/{chunk-USFPPRAF.js → chunk-WMK6YP7C.js} +5 -3
  57. package/dist/chunk-WMK6YP7C.js.map +1 -0
  58. package/dist/{chunk-N7X62G74.js → chunk-X6VBWOVZ.js} +4 -4
  59. package/dist/{chunk-LW2NMHDW.js → chunk-Y6EPN6XF.js} +2 -2
  60. package/dist/{chunk-LVYGDT5V.js → chunk-Z665HFAD.js} +10 -12
  61. package/dist/chunk-Z665HFAD.js.map +1 -0
  62. package/dist/{cli-x2APT9a6.d.ts → cli-CWLyGroU.d.ts} +4 -4
  63. package/dist/cli.d.ts +8 -8
  64. package/dist/cli.js +22 -21
  65. package/dist/{codex-materialize-CQlLTzke.d.ts → codex-materialize-XRen3WAz.d.ts} +1 -1
  66. package/dist/compression-optimizer.d.ts +1 -1
  67. package/dist/config.d.ts +1 -1
  68. package/dist/config.js +1 -1
  69. package/dist/consolidation-provenance-check.d.ts +2 -2
  70. package/dist/consolidation-undo.d.ts +2 -2
  71. package/dist/day-summary.d.ts +1 -1
  72. package/dist/delinearize.d.ts +1 -1
  73. package/dist/direct-answer-wiring.d.ts +1 -1
  74. package/dist/direct-answer.d.ts +1 -1
  75. package/dist/embedding-fallback.d.ts +1 -1
  76. package/dist/{engine-ICC2DSQF.js → engine-WJ7K6AZ2.js} +7 -5
  77. package/dist/entity-retrieval.d.ts +2 -2
  78. package/dist/entity-retrieval.js +4 -4
  79. package/dist/entity-schema.d.ts +1 -1
  80. package/dist/explicit-capture.d.ts +6 -6
  81. package/dist/extraction-judge-telemetry.d.ts +1 -1
  82. package/dist/extraction-judge-training.d.ts +1 -1
  83. package/dist/extraction-judge.d.ts +1 -1
  84. package/dist/extraction.d.ts +1 -1
  85. package/dist/extraction.js +2 -2
  86. package/dist/fallback-llm.d.ts +1 -1
  87. package/dist/identity-continuity.d.ts +1 -1
  88. package/dist/importance.d.ts +1 -1
  89. package/dist/index.d.ts +26 -14
  90. package/dist/index.js +47 -27
  91. package/dist/index.js.map +1 -1
  92. package/dist/intent.d.ts +1 -1
  93. package/dist/lifecycle.d.ts +1 -1
  94. package/dist/live-connectors-runner.d.ts +1 -1
  95. package/dist/local-llm.d.ts +1 -1
  96. package/dist/memory-action-policy.d.ts +1 -1
  97. package/dist/memory-cache.d.ts +1 -1
  98. package/dist/{memory-governance-KG52RITE.js → memory-governance-KXMAURFF.js} +5 -5
  99. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  100. package/dist/{memory-projection-store-D3vBHS4J.d.ts → memory-projection-store-ConH7gNj.d.ts} +2 -2
  101. package/dist/memory-projection-store.d.ts +2 -2
  102. package/dist/memory-projection-store.js +1 -1
  103. package/dist/memory-worth-outcomes.d.ts +2 -2
  104. package/dist/models-json.d.ts +1 -1
  105. package/dist/native-knowledge.d.ts +1 -1
  106. package/dist/operator-toolkit.d.ts +2 -2
  107. package/dist/operator-toolkit.js +7 -7
  108. package/dist/{orchestrator-ChkesB8U.d.ts → orchestrator-BHkiEBbd.d.ts} +36 -11
  109. package/dist/orchestrator.d.ts +6 -6
  110. package/dist/orchestrator.js +14 -14
  111. package/dist/patterns-cli.d.ts +1 -1
  112. package/dist/policy-runtime.d.ts +1 -1
  113. package/dist/{port-hqGnoStS.d.ts → port-DZHdlUId.d.ts} +1 -1
  114. package/dist/qmd-recall-cache.d.ts +2 -2
  115. package/dist/qmd.d.ts +2 -2
  116. package/dist/recall-disclosure-escalation.d.ts +1 -1
  117. package/dist/recall-explain-renderer.d.ts +1 -1
  118. package/dist/recall-explain-renderer.js +3 -3
  119. package/dist/recall-state.d.ts +1 -1
  120. package/dist/recall-tag-filter.d.ts +1 -1
  121. package/dist/recall-xray-cli.d.ts +1 -1
  122. package/dist/recall-xray-cli.js +4 -4
  123. package/dist/recall-xray-renderer.d.ts +1 -1
  124. package/dist/recall-xray-renderer.js +3 -3
  125. package/dist/recall-xray.d.ts +2 -2
  126. package/dist/recall-xray.js +2 -2
  127. package/dist/resolve-auth-token.d.ts +1 -1
  128. package/dist/resume-bundles.js +2 -2
  129. package/dist/retrieval-agents.d.ts +2 -2
  130. package/dist/retrieval-tiers.d.ts +1 -1
  131. package/dist/schemas.d.ts +54 -54
  132. package/dist/{semantic-consolidation-ByBXb-sf.d.ts → semantic-consolidation-Cxj-inGC.d.ts} +2 -2
  133. package/dist/semantic-consolidation.d.ts +3 -3
  134. package/dist/semantic-consolidation.js +4 -4
  135. package/dist/semantic-rule-promotion.js +4 -4
  136. package/dist/semantic-rule-verifier.d.ts +1 -1
  137. package/dist/semantic-rule-verifier.js +4 -4
  138. package/dist/session-observer-bands.d.ts +1 -1
  139. package/dist/session-observer-state.d.ts +1 -1
  140. package/dist/signal.d.ts +1 -1
  141. package/dist/storage.d.ts +2 -2
  142. package/dist/storage.js +3 -3
  143. package/dist/summarizer.d.ts +1 -1
  144. package/dist/summary-snapshot.d.ts +1 -1
  145. package/dist/temporal-supersession.d.ts +2 -2
  146. package/dist/temporal-validity.d.ts +1 -1
  147. package/dist/threading.d.ts +1 -1
  148. package/dist/tier-migration.d.ts +3 -3
  149. package/dist/tier-routing.d.ts +1 -1
  150. package/dist/topics.d.ts +1 -1
  151. package/dist/transcript.d.ts +1 -1
  152. package/dist/types-B49NzJ5q.d.ts +2707 -0
  153. package/dist/types.d.ts +1 -2668
  154. package/dist/types.js +1 -1
  155. package/dist/utility-runtime.d.ts +1 -1
  156. package/dist/verified-recall.js +4 -4
  157. package/package.json +6 -3
  158. package/scripts/ensure-better-sqlite3.mjs +124 -0
  159. package/dist/chunk-4PLGJRBV.js.map +0 -1
  160. package/dist/chunk-AKUCB2OG.js.map +0 -1
  161. package/dist/chunk-DR7MCMPS.js.map +0 -1
  162. package/dist/chunk-IM3JSE73.js.map +0 -1
  163. package/dist/chunk-LVYGDT5V.js.map +0 -1
  164. package/dist/chunk-RILIVK4O.js.map +0 -1
  165. package/dist/chunk-USFPPRAF.js.map +0 -1
  166. package/dist/chunk-VTJVUHRK.js.map +0 -1
  167. /package/dist/{chunk-LZRYQK6L.js.map → chunk-3YBRSJ52.js.map} +0 -0
  168. /package/dist/{chunk-DCE6SQLA.js.map → chunk-46AIFPQM.js.map} +0 -0
  169. /package/dist/{chunk-34F3PLWZ.js.map → chunk-57SNKQNS.js.map} +0 -0
  170. /package/dist/{chunk-DHRQHX36.js.map → chunk-5XVDDCMH.js.map} +0 -0
  171. /package/dist/{chunk-55FXRRSJ.js.map → chunk-ERWKQVCX.js.map} +0 -0
  172. /package/dist/{chunk-7GCMLT7J.js.map → chunk-FG5R5AQF.js.map} +0 -0
  173. /package/dist/{chunk-Y3WQ4ZWK.js.map → chunk-FLHPNR5W.js.map} +0 -0
  174. /package/dist/{chunk-L5IIGA5V.js.map → chunk-HPJPGIGN.js.map} +0 -0
  175. /package/dist/{chunk-SS253RXF.js.map → chunk-KCZZLFW5.js.map} +0 -0
  176. /package/dist/{chunk-47WOM4YW.js.map → chunk-MJPNOMY4.js.map} +0 -0
  177. /package/dist/{chunk-SMA4IMHV.js.map → chunk-SGTA3HJC.js.map} +0 -0
  178. /package/dist/{chunk-R2L7SUX2.js.map → chunk-TMPLRVHD.js.map} +0 -0
  179. /package/dist/{chunk-N7X62G74.js.map → chunk-X6VBWOVZ.js.map} +0 -0
  180. /package/dist/{chunk-LW2NMHDW.js.map → chunk-Y6EPN6XF.js.map} +0 -0
  181. /package/dist/{engine-ICC2DSQF.js.map → engine-WJ7K6AZ2.js.map} +0 -0
  182. /package/dist/{memory-governance-KG52RITE.js.map → memory-governance-KXMAURFF.js.map} +0 -0
@@ -3,19 +3,19 @@ import {
3
3
  } from "./chunk-IQT3XTKW.js";
4
4
  import {
5
5
  EngramAccessInputError
6
- } from "./chunk-DR7MCMPS.js";
6
+ } from "./chunk-DTDB6YS2.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-KCZZLFW5.js";
13
13
  import {
14
14
  readEnvVar
15
15
  } from "./chunk-MARWOCVP.js";
16
16
  import {
17
17
  validateRequest
18
- } from "./chunk-RILIVK4O.js";
18
+ } from "./chunk-RICG4UNC.js";
19
19
 
20
20
  // src/access-mcp.ts
21
21
  import { readFile } from "fs/promises";
@@ -466,9 +466,51 @@ var EngramMcpServer = class {
466
466
  type: "object",
467
467
  properties: {
468
468
  role: { type: "string", enum: ["user", "assistant"] },
469
- content: { type: "string" }
469
+ content: { type: "string" },
470
+ sourceFormat: {
471
+ type: "string",
472
+ enum: ["openai", "anthropic", "openclaw", "lossless-claw", "remnic"]
473
+ },
474
+ rawContent: {
475
+ description: "Optional native provider content blocks for structured message-part capture."
476
+ },
477
+ parts: {
478
+ type: "array",
479
+ description: "Optional normalized Remnic LCM message parts.",
480
+ items: {
481
+ type: "object",
482
+ properties: {
483
+ ordinal: { type: ["number", "null"], minimum: 0 },
484
+ kind: {
485
+ type: "string",
486
+ enum: [
487
+ "text",
488
+ "tool_call",
489
+ "tool_result",
490
+ "patch",
491
+ "file_read",
492
+ "file_write",
493
+ "step_start",
494
+ "step_finish",
495
+ "snapshot",
496
+ "retry"
497
+ ]
498
+ },
499
+ payload: { type: "object", additionalProperties: true },
500
+ toolName: { type: ["string", "null"] },
501
+ tool_name: { type: ["string", "null"] },
502
+ filePath: { type: ["string", "null"] },
503
+ file_path: { type: ["string", "null"] },
504
+ createdAt: { type: ["string", "null"] },
505
+ created_at: { type: ["string", "null"] }
506
+ },
507
+ required: ["kind", "payload"],
508
+ additionalProperties: false
509
+ }
510
+ }
470
511
  },
471
- required: ["role", "content"]
512
+ required: ["role", "content"],
513
+ additionalProperties: false
472
514
  },
473
515
  description: "Conversation messages to observe"
474
516
  },
@@ -958,6 +1000,43 @@ var EngramMcpServer = class {
958
1000
  additionalProperties: false
959
1001
  }
960
1002
  },
1003
+ {
1004
+ name: "engram.memory_action_apply",
1005
+ description: "Record a memory-action application event for policy-learning telemetry.",
1006
+ inputSchema: {
1007
+ type: "object",
1008
+ properties: {
1009
+ action: {
1010
+ type: "string",
1011
+ enum: [
1012
+ "store_episode",
1013
+ "store_note",
1014
+ "update_note",
1015
+ "create_artifact",
1016
+ "summarize_node",
1017
+ "discard",
1018
+ "link_graph"
1019
+ ]
1020
+ },
1021
+ category: { type: "string" },
1022
+ content: { type: "string" },
1023
+ outcome: { type: "string", enum: ["applied", "skipped", "failed"] },
1024
+ reason: { type: "string" },
1025
+ memoryId: { type: "string" },
1026
+ sessionKey: { type: "string" },
1027
+ linkTargetId: { type: "string" },
1028
+ linkType: { type: "string" },
1029
+ linkStrength: { type: "number" },
1030
+ artifactType: { type: "string" },
1031
+ execute: { type: "boolean" },
1032
+ sourcePrompt: { type: "string" },
1033
+ namespace: { type: "string" },
1034
+ dryRun: { type: "boolean" }
1035
+ },
1036
+ required: ["action"],
1037
+ additionalProperties: false
1038
+ }
1039
+ },
961
1040
  {
962
1041
  name: "engram.context_checkpoint",
963
1042
  description: "Save a structured context checkpoint for a session (preserves conversation state to disk).",
@@ -1029,6 +1108,49 @@ var EngramMcpServer = class {
1029
1108
  additionalProperties: false
1030
1109
  }
1031
1110
  },
1111
+ {
1112
+ name: "engram.memory_summarize_hourly",
1113
+ description: "Generate hourly summaries for recent conversations.",
1114
+ inputSchema: {
1115
+ type: "object",
1116
+ properties: {},
1117
+ additionalProperties: false
1118
+ }
1119
+ },
1120
+ {
1121
+ name: "engram.conversation_index_update",
1122
+ description: "Chunk transcript history into conversation-index documents.",
1123
+ inputSchema: {
1124
+ type: "object",
1125
+ properties: {
1126
+ sessionKey: { type: "string" },
1127
+ hours: { type: "number", description: "How many hours of transcript history to include." },
1128
+ embed: { type: "boolean", description: "If true, run QMD embed after update for this invocation." }
1129
+ },
1130
+ additionalProperties: false
1131
+ }
1132
+ },
1133
+ {
1134
+ name: "engram.profiling_report",
1135
+ description: "Return timing and performance data for Remnic recall and extraction pipelines. Requires profilingEnabled: true.",
1136
+ inputSchema: {
1137
+ type: "object",
1138
+ properties: {
1139
+ format: {
1140
+ type: "string",
1141
+ enum: ["ascii", "json"],
1142
+ description: "Output format. Defaults to ascii."
1143
+ },
1144
+ limit: {
1145
+ type: "integer",
1146
+ minimum: 1,
1147
+ maximum: 20,
1148
+ description: "Number of recent traces to include. Defaults to 5."
1149
+ }
1150
+ },
1151
+ additionalProperties: false
1152
+ }
1153
+ },
1032
1154
  {
1033
1155
  name: "engram.graph_edge_decay_run",
1034
1156
  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.",
@@ -1729,20 +1851,21 @@ ${body}`;
1729
1851
  effectivePrincipal
1730
1852
  );
1731
1853
  case "engram.observe": {
1732
- if ("cwd" in args && args.cwd !== void 0 && args.cwd !== null && typeof args.cwd !== "string") {
1733
- throw new EngramAccessInputError("cwd must be a string");
1734
- }
1735
- if ("projectTag" in args && args.projectTag !== void 0 && args.projectTag !== null && typeof args.projectTag !== "string") {
1736
- throw new EngramAccessInputError("projectTag must be a string");
1737
- }
1854
+ const body = parseMcpRequest("observe", args);
1738
1855
  return this.service.observe({
1739
- sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : "",
1740
- messages: Array.isArray(args.messages) ? args.messages : [],
1741
- namespace: typeof args.namespace === "string" ? args.namespace : void 0,
1856
+ sessionKey: body.sessionKey,
1857
+ messages: body.messages.map((message) => ({
1858
+ role: message.role,
1859
+ content: message.content,
1860
+ parts: message.parts ?? void 0,
1861
+ rawContent: message.rawContent ?? void 0,
1862
+ sourceFormat: message.sourceFormat ?? void 0
1863
+ })),
1864
+ namespace: body.namespace,
1742
1865
  authenticatedPrincipal: effectivePrincipal,
1743
- skipExtraction: args.skipExtraction === true,
1744
- cwd: typeof args.cwd === "string" ? args.cwd : void 0,
1745
- projectTag: typeof args.projectTag === "string" ? args.projectTag : void 0
1866
+ skipExtraction: body.skipExtraction === true,
1867
+ cwd: body.cwd,
1868
+ projectTag: body.projectTag
1746
1869
  });
1747
1870
  }
1748
1871
  case "engram.lcm_search":
@@ -2020,6 +2143,25 @@ ${body}`;
2020
2143
  timestamp: typeof args.timestamp === "string" ? args.timestamp : void 0
2021
2144
  });
2022
2145
  }
2146
+ case "engram.memory_action_apply":
2147
+ return this.service.memoryActionApply({
2148
+ action: typeof args.action === "string" ? args.action : "",
2149
+ outcome: typeof args.outcome === "string" ? args.outcome : void 0,
2150
+ reason: typeof args.reason === "string" ? args.reason : void 0,
2151
+ memoryId: typeof args.memoryId === "string" ? args.memoryId : void 0,
2152
+ namespace: typeof args.namespace === "string" ? args.namespace : void 0,
2153
+ principal: effectivePrincipal,
2154
+ sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : void 0,
2155
+ content: typeof args.content === "string" ? args.content : void 0,
2156
+ category: typeof args.category === "string" ? args.category : void 0,
2157
+ linkTargetId: typeof args.linkTargetId === "string" ? args.linkTargetId : void 0,
2158
+ linkType: typeof args.linkType === "string" ? args.linkType : void 0,
2159
+ linkStrength: typeof args.linkStrength === "number" ? args.linkStrength : void 0,
2160
+ artifactType: typeof args.artifactType === "string" ? args.artifactType : void 0,
2161
+ execute: typeof args.execute === "boolean" ? args.execute : void 0,
2162
+ sourcePrompt: typeof args.sourcePrompt === "string" ? args.sourcePrompt : void 0,
2163
+ dryRun: args.dryRun === true
2164
+ });
2023
2165
  case "engram.context_checkpoint":
2024
2166
  return this.service.contextCheckpoint({
2025
2167
  sessionKey: typeof args.sessionKey === "string" ? args.sessionKey : "",
@@ -2079,6 +2221,34 @@ ${body}`;
2079
2221
  namespace: typeof args.namespace === "string" ? args.namespace : void 0
2080
2222
  });
2081
2223
  }
2224
+ case "engram.memory_summarize_hourly":
2225
+ case "remnic.memory_summarize_hourly":
2226
+ return this.service.memorySummarizeHourly();
2227
+ case "engram.conversation_index_update":
2228
+ case "remnic.conversation_index_update": {
2229
+ if ("sessionKey" in args && args.sessionKey !== void 0 && typeof args.sessionKey !== "string") {
2230
+ throw new Error("sessionKey must be a string when provided");
2231
+ }
2232
+ const sessionKey = typeof args.sessionKey === "string" ? args.sessionKey : void 0;
2233
+ return this.service.conversationIndexUpdate({
2234
+ sessionKey,
2235
+ hours: typeof args.hours === "number" && Number.isFinite(args.hours) ? args.hours : void 0,
2236
+ embed: typeof args.embed === "boolean" ? args.embed : void 0
2237
+ });
2238
+ }
2239
+ case "engram.profiling_report":
2240
+ case "remnic.profiling_report": {
2241
+ if ("format" in args && args.format !== void 0 && typeof args.format !== "string") {
2242
+ throw new EngramAccessInputError("format must be a string when provided");
2243
+ }
2244
+ if ("limit" in args && args.limit !== void 0 && typeof args.limit !== "number") {
2245
+ throw new EngramAccessInputError("limit must be a number when provided");
2246
+ }
2247
+ return this.service.profilingReport({
2248
+ format: typeof args.format === "string" ? args.format : void 0,
2249
+ limit: typeof args.limit === "number" ? args.limit : void 0
2250
+ });
2251
+ }
2082
2252
  case "engram.graph_edge_decay_run":
2083
2253
  case "remnic.graph_edge_decay_run": {
2084
2254
  const cfg = this.service.configRef;
@@ -2230,4 +2400,4 @@ ${body}`;
2230
2400
  export {
2231
2401
  EngramMcpServer
2232
2402
  };
2233
- //# sourceMappingURL=chunk-4PLGJRBV.js.map
2403
+ //# sourceMappingURL=chunk-DKVEJTLC.js.map