@remnic/core 1.1.7 → 1.1.9

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 (237) hide show
  1. package/dist/access-cli.js +30 -30
  2. package/dist/access-http.d.ts +7 -7
  3. package/dist/access-http.js +13 -13
  4. package/dist/access-mcp.d.ts +7 -7
  5. package/dist/access-mcp.js +12 -12
  6. package/dist/{access-service-B9sziJdP.d.ts → access-service-BJCIjVRY.d.ts} +9 -9
  7. package/dist/access-service.d.ts +7 -7
  8. package/dist/access-service.js +11 -11
  9. package/dist/active-memory-bridge.d.ts +1 -1
  10. package/dist/active-recall.d.ts +2 -2
  11. package/dist/active-recall.js +2 -2
  12. package/dist/active-recall.js.map +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 +6 -6
  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/calibration.js +2 -2
  22. package/dist/causal-behavior.d.ts +1 -1
  23. package/dist/causal-consolidation.d.ts +2 -2
  24. package/dist/causal-consolidation.js +8 -8
  25. package/dist/{chunk-LKJA5MR2.js → chunk-2MVUXO4H.js} +2 -2
  26. package/dist/{chunk-GZCUW5IC.js → chunk-3IQ2TR4N.js} +5 -5
  27. package/dist/chunk-3IQ2TR4N.js.map +1 -0
  28. package/dist/{chunk-AKV3HOGZ.js → chunk-3VRIIII5.js} +150 -2
  29. package/dist/chunk-3VRIIII5.js.map +1 -0
  30. package/dist/{chunk-TUFG6VXY.js → chunk-4DWOBS2A.js} +2 -2
  31. package/dist/chunk-4DWOBS2A.js.map +1 -0
  32. package/dist/{chunk-L2IO2QPY.js → chunk-4IS4SXIQ.js} +17 -13
  33. package/dist/chunk-4IS4SXIQ.js.map +1 -0
  34. package/dist/{chunk-ZOMA7J3J.js → chunk-6OAQEOGV.js} +2 -2
  35. package/dist/{chunk-FSWYMUWI.js → chunk-6Z6UH6TK.js} +38 -12
  36. package/dist/chunk-6Z6UH6TK.js.map +1 -0
  37. package/dist/{chunk-EONJ7GK3.js → chunk-7SFAENUZ.js} +2 -2
  38. package/dist/{chunk-ODWDQNRE.js → chunk-7SI52C65.js} +7 -3
  39. package/dist/chunk-7SI52C65.js.map +1 -0
  40. package/dist/{chunk-M3QQ5DRA.js → chunk-A6PGANSE.js} +3 -3
  41. package/dist/{chunk-KUIEFH2S.js → chunk-BIHCWSWA.js} +3 -3
  42. package/dist/{chunk-PT2EZWOH.js → chunk-CTYRIJ5E.js} +3 -3
  43. package/dist/{chunk-COAGZQT7.js → chunk-ET4BL42V.js} +1 -1
  44. package/dist/chunk-ET4BL42V.js.map +1 -0
  45. package/dist/{chunk-DWMXVUGO.js → chunk-FLBYSB2V.js} +6 -4
  46. package/dist/chunk-FLBYSB2V.js.map +1 -0
  47. package/dist/{chunk-VZNQB6NL.js → chunk-FPWUENQH.js} +39 -35
  48. package/dist/chunk-FPWUENQH.js.map +1 -0
  49. package/dist/chunk-FVQJYWH7.js +52 -0
  50. package/dist/chunk-FVQJYWH7.js.map +1 -0
  51. package/dist/{chunk-RXGR3YLU.js → chunk-G3G3LY22.js} +2 -2
  52. package/dist/{chunk-ZBZVNWQO.js → chunk-G6NX57V2.js} +33 -43
  53. package/dist/chunk-G6NX57V2.js.map +1 -0
  54. package/dist/{chunk-3FPTCC3Z.js → chunk-GVPWB7EY.js} +2 -2
  55. package/dist/{chunk-D7WYTVUQ.js → chunk-ICULSMDG.js} +2 -2
  56. package/dist/{chunk-5NS6NN5A.js → chunk-J3P6WSFZ.js} +2 -2
  57. package/dist/{chunk-FCGWNWG4.js → chunk-KIF7QNKL.js} +28 -28
  58. package/dist/chunk-KIF7QNKL.js.map +1 -0
  59. package/dist/{chunk-YELFQNQH.js → chunk-KMWZXT5T.js} +2 -2
  60. package/dist/{chunk-YKGRACQP.js → chunk-M3DK45UM.js} +5 -5
  61. package/dist/{chunk-DLYTYJ43.js → chunk-MJLUHRSF.js} +5 -5
  62. package/dist/{chunk-4KAN3GZ3.js → chunk-NN2DKE4T.js} +1 -1
  63. package/dist/chunk-NN2DKE4T.js.map +1 -0
  64. package/dist/{chunk-R2XRID2N.js → chunk-NN3LPQ5D.js} +5 -5
  65. package/dist/chunk-NN3LPQ5D.js.map +1 -0
  66. package/dist/{chunk-7RAW2T4P.js → chunk-OWGGXPKV.js} +16 -9
  67. package/dist/chunk-OWGGXPKV.js.map +1 -0
  68. package/dist/{chunk-WSZIHQBK.js → chunk-P77UEOU2.js} +4 -1
  69. package/dist/{chunk-WSZIHQBK.js.map → chunk-P77UEOU2.js.map} +1 -1
  70. package/dist/{chunk-MYMOXFMR.js → chunk-PHQH2VUO.js} +4 -4
  71. package/dist/{chunk-OZAFME7S.js → chunk-QPLYTPYL.js} +15 -15
  72. package/dist/{chunk-FEMOX5AD.js → chunk-QR3C7BKQ.js} +7 -7
  73. package/dist/chunk-QR3C7BKQ.js.map +1 -0
  74. package/dist/{chunk-3LCWFNVS.js → chunk-SKE7JYKA.js} +2 -2
  75. package/dist/{chunk-AIT53NLG.js → chunk-U4SZXGEO.js} +2 -2
  76. package/dist/{chunk-67YLUWLG.js → chunk-XJKFSSDW.js} +3 -3
  77. package/dist/chunk-XJKFSSDW.js.map +1 -0
  78. package/dist/{chunk-KQB4C4OE.js → chunk-XL3UCAZA.js} +22 -22
  79. package/dist/{chunk-ASIQZXYO.js → chunk-XMVFHBHT.js} +2 -2
  80. package/dist/{chunk-6B23Z44B.js → chunk-XN4D6Z7X.js} +3 -3
  81. package/dist/{chunk-S5SQDIF5.js → chunk-Y3VT6ZCP.js} +4 -4
  82. package/dist/{cli-olNPi1uN.d.ts → cli-BojuyOOp.d.ts} +4 -4
  83. package/dist/cli.d.ts +8 -8
  84. package/dist/cli.js +24 -24
  85. package/dist/{codex-materialize-D5d5vvyS.d.ts → codex-materialize-YVC2wb6n.d.ts} +1 -1
  86. package/dist/compression-optimizer.d.ts +1 -1
  87. package/dist/config.d.ts +1 -1
  88. package/dist/config.js +1 -1
  89. package/dist/consolidation-provenance-check.d.ts +2 -2
  90. package/dist/consolidation-undo.d.ts +2 -2
  91. package/dist/day-summary.d.ts +1 -1
  92. package/dist/day-summary.js +1 -1
  93. package/dist/delinearize.d.ts +1 -1
  94. package/dist/direct-answer-wiring.d.ts +1 -1
  95. package/dist/direct-answer.d.ts +1 -1
  96. package/dist/embedding-fallback.d.ts +1 -1
  97. package/dist/{engine-2JKWFKJV.js → engine-EDFFOWDD.js} +7 -7
  98. package/dist/entity-retrieval.d.ts +2 -2
  99. package/dist/entity-retrieval.js +6 -6
  100. package/dist/entity-schema.d.ts +1 -1
  101. package/dist/explicit-capture.d.ts +6 -6
  102. package/dist/explicit-capture.js +2 -2
  103. package/dist/explicit-cue-recall.js +1 -1
  104. package/dist/extraction-judge-telemetry.d.ts +1 -1
  105. package/dist/extraction-judge-training.d.ts +1 -1
  106. package/dist/extraction-judge.d.ts +1 -1
  107. package/dist/extraction.d.ts +1 -1
  108. package/dist/extraction.js +7 -7
  109. package/dist/fallback-llm.d.ts +1 -1
  110. package/dist/fallback-llm.js +2 -2
  111. package/dist/identity-continuity.d.ts +1 -1
  112. package/dist/importance.d.ts +1 -1
  113. package/dist/index.d.ts +13 -13
  114. package/dist/index.js +147 -147
  115. package/dist/index.js.map +1 -1
  116. package/dist/intent.d.ts +1 -1
  117. package/dist/lifecycle.d.ts +1 -1
  118. package/dist/live-connectors-runner.d.ts +1 -1
  119. package/dist/live-connectors-runner.js +2 -2
  120. package/dist/local-llm.d.ts +1 -1
  121. package/dist/local-llm.js +1 -1
  122. package/dist/memory-action-policy.d.ts +1 -1
  123. package/dist/memory-cache.d.ts +1 -1
  124. package/dist/{memory-governance-7MI7KE35.js → memory-governance-AAQPBZEP.js} +7 -7
  125. package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
  126. package/dist/{memory-projection-store-BQt5VUQ8.d.ts → memory-projection-store-BW8u5U0u.d.ts} +1 -1
  127. package/dist/memory-projection-store.d.ts +2 -2
  128. package/dist/memory-projection-store.js +1 -1
  129. package/dist/memory-worth-outcomes.d.ts +2 -2
  130. package/dist/{migrate-from-identity-anchor-TTEDEJGX.js → migrate-from-identity-anchor-G27MCD6A.js} +2 -2
  131. package/dist/model-registry.js +1 -1
  132. package/dist/models-json.d.ts +1 -1
  133. package/dist/models-json.js +1 -1
  134. package/dist/native-knowledge.d.ts +1 -1
  135. package/dist/operator-toolkit.d.ts +2 -2
  136. package/dist/operator-toolkit.js +10 -10
  137. package/dist/opik-exporter.js +2 -2
  138. package/dist/opik-exporter.js.map +1 -1
  139. package/dist/{orchestrator-D2lHhFWI.d.ts → orchestrator-CYqmqxco.d.ts} +5 -5
  140. package/dist/orchestrator.d.ts +6 -6
  141. package/dist/orchestrator.js +25 -25
  142. package/dist/patterns-cli.d.ts +1 -1
  143. package/dist/{peers-6OSQ3NK6.js → peers-HCVGHMAE.js} +3 -3
  144. package/dist/policy-runtime.d.ts +1 -1
  145. package/dist/{port-5W-r5SKc.d.ts → port-Br27H8dy.d.ts} +7 -1
  146. package/dist/qmd-recall-cache.d.ts +2 -2
  147. package/dist/qmd.d.ts +3 -2
  148. package/dist/qmd.js +1 -1
  149. package/dist/recall-disclosure-escalation.d.ts +1 -1
  150. package/dist/recall-explain-renderer.d.ts +1 -1
  151. package/dist/recall-explain-renderer.js +3 -3
  152. package/dist/recall-state.d.ts +1 -1
  153. package/dist/recall-tag-filter.d.ts +1 -1
  154. package/dist/recall-xray-cli.d.ts +1 -1
  155. package/dist/recall-xray-cli.js +4 -4
  156. package/dist/recall-xray-renderer.d.ts +1 -1
  157. package/dist/recall-xray-renderer.js +3 -3
  158. package/dist/recall-xray.d.ts +1 -1
  159. package/dist/recall-xray.js +2 -2
  160. package/dist/resolve-auth-token.d.ts +1 -1
  161. package/dist/resume-bundles.js +2 -2
  162. package/dist/retrieval-agents.d.ts +2 -2
  163. package/dist/retrieval-tiers.d.ts +1 -1
  164. package/dist/sanitize.js +1 -1
  165. package/dist/schemas.d.ts +22 -22
  166. package/dist/{semantic-consolidation-tDODR2je.d.ts → semantic-consolidation-GPcLr9BQ.d.ts} +2 -2
  167. package/dist/semantic-consolidation.d.ts +3 -3
  168. package/dist/semantic-consolidation.js +6 -6
  169. package/dist/semantic-rule-promotion.js +6 -6
  170. package/dist/semantic-rule-verifier.d.ts +1 -1
  171. package/dist/semantic-rule-verifier.js +6 -6
  172. package/dist/session-observer-bands.d.ts +1 -1
  173. package/dist/session-observer-state.d.ts +1 -1
  174. package/dist/signal.d.ts +1 -1
  175. package/dist/source-attribution.d.ts +1 -1
  176. package/dist/source-attribution.js +1 -1
  177. package/dist/storage.d.ts +2 -2
  178. package/dist/storage.js +5 -5
  179. package/dist/summarizer.d.ts +1 -1
  180. package/dist/summarizer.js +5 -5
  181. package/dist/summary-snapshot.d.ts +1 -1
  182. package/dist/temporal-supersession.d.ts +2 -2
  183. package/dist/temporal-validity.d.ts +1 -1
  184. package/dist/threading.d.ts +1 -1
  185. package/dist/tier-migration.d.ts +3 -3
  186. package/dist/tier-routing.d.ts +1 -1
  187. package/dist/topics.d.ts +1 -1
  188. package/dist/transcript.d.ts +1 -1
  189. package/dist/{types-C-USTTAx.d.ts → types-Bmp9ssU2.d.ts} +4 -3
  190. package/dist/types.d.ts +1 -1
  191. package/dist/types.js +1 -1
  192. package/dist/utility-runtime.d.ts +1 -1
  193. package/dist/verified-recall.js +6 -6
  194. package/package.json +1 -1
  195. package/dist/chunk-4KAN3GZ3.js.map +0 -1
  196. package/dist/chunk-67YLUWLG.js.map +0 -1
  197. package/dist/chunk-7RAW2T4P.js.map +0 -1
  198. package/dist/chunk-AKV3HOGZ.js.map +0 -1
  199. package/dist/chunk-COAGZQT7.js.map +0 -1
  200. package/dist/chunk-DWMXVUGO.js.map +0 -1
  201. package/dist/chunk-FCGWNWG4.js.map +0 -1
  202. package/dist/chunk-FEMOX5AD.js.map +0 -1
  203. package/dist/chunk-FSWYMUWI.js.map +0 -1
  204. package/dist/chunk-GZCUW5IC.js.map +0 -1
  205. package/dist/chunk-L2IO2QPY.js.map +0 -1
  206. package/dist/chunk-M62O4P4T.js +0 -41
  207. package/dist/chunk-M62O4P4T.js.map +0 -1
  208. package/dist/chunk-ODWDQNRE.js.map +0 -1
  209. package/dist/chunk-R2XRID2N.js.map +0 -1
  210. package/dist/chunk-TUFG6VXY.js.map +0 -1
  211. package/dist/chunk-VZNQB6NL.js.map +0 -1
  212. package/dist/chunk-ZBZVNWQO.js.map +0 -1
  213. /package/dist/{chunk-LKJA5MR2.js.map → chunk-2MVUXO4H.js.map} +0 -0
  214. /package/dist/{chunk-ZOMA7J3J.js.map → chunk-6OAQEOGV.js.map} +0 -0
  215. /package/dist/{chunk-EONJ7GK3.js.map → chunk-7SFAENUZ.js.map} +0 -0
  216. /package/dist/{chunk-M3QQ5DRA.js.map → chunk-A6PGANSE.js.map} +0 -0
  217. /package/dist/{chunk-KUIEFH2S.js.map → chunk-BIHCWSWA.js.map} +0 -0
  218. /package/dist/{chunk-PT2EZWOH.js.map → chunk-CTYRIJ5E.js.map} +0 -0
  219. /package/dist/{chunk-RXGR3YLU.js.map → chunk-G3G3LY22.js.map} +0 -0
  220. /package/dist/{chunk-3FPTCC3Z.js.map → chunk-GVPWB7EY.js.map} +0 -0
  221. /package/dist/{chunk-D7WYTVUQ.js.map → chunk-ICULSMDG.js.map} +0 -0
  222. /package/dist/{chunk-5NS6NN5A.js.map → chunk-J3P6WSFZ.js.map} +0 -0
  223. /package/dist/{chunk-YELFQNQH.js.map → chunk-KMWZXT5T.js.map} +0 -0
  224. /package/dist/{chunk-YKGRACQP.js.map → chunk-M3DK45UM.js.map} +0 -0
  225. /package/dist/{chunk-DLYTYJ43.js.map → chunk-MJLUHRSF.js.map} +0 -0
  226. /package/dist/{chunk-MYMOXFMR.js.map → chunk-PHQH2VUO.js.map} +0 -0
  227. /package/dist/{chunk-OZAFME7S.js.map → chunk-QPLYTPYL.js.map} +0 -0
  228. /package/dist/{chunk-3LCWFNVS.js.map → chunk-SKE7JYKA.js.map} +0 -0
  229. /package/dist/{chunk-AIT53NLG.js.map → chunk-U4SZXGEO.js.map} +0 -0
  230. /package/dist/{chunk-KQB4C4OE.js.map → chunk-XL3UCAZA.js.map} +0 -0
  231. /package/dist/{chunk-ASIQZXYO.js.map → chunk-XMVFHBHT.js.map} +0 -0
  232. /package/dist/{chunk-6B23Z44B.js.map → chunk-XN4D6Z7X.js.map} +0 -0
  233. /package/dist/{chunk-S5SQDIF5.js.map → chunk-Y3VT6ZCP.js.map} +0 -0
  234. /package/dist/{engine-2JKWFKJV.js.map → engine-EDFFOWDD.js.map} +0 -0
  235. /package/dist/{memory-governance-7MI7KE35.js.map → memory-governance-AAQPBZEP.js.map} +0 -0
  236. /package/dist/{migrate-from-identity-anchor-TTEDEJGX.js.map → migrate-from-identity-anchor-G27MCD6A.js.map} +0 -0
  237. /package/dist/{peers-6OSQ3NK6.js.map → peers-HCVGHMAE.js.map} +0 -0
@@ -12,21 +12,21 @@ import {
12
12
  } from "./chunk-54V4BZWP.js";
13
13
  import {
14
14
  ModelRegistry
15
- } from "./chunk-FEMOX5AD.js";
15
+ } from "./chunk-QR3C7BKQ.js";
16
16
  import {
17
17
  LocalLlmClient
18
- } from "./chunk-R2XRID2N.js";
18
+ } from "./chunk-NN3LPQ5D.js";
19
19
  import {
20
20
  buildExtensionsFooterForSummary,
21
21
  formatDaySummaryMemories,
22
22
  loadDaySummaryPrompt
23
- } from "./chunk-GZCUW5IC.js";
23
+ } from "./chunk-3IQ2TR4N.js";
24
24
  import {
25
25
  delinearize
26
26
  } from "./chunk-VEWZZM3H.js";
27
27
  import {
28
28
  FallbackLlmClient
29
- } from "./chunk-DWMXVUGO.js";
29
+ } from "./chunk-FLBYSB2V.js";
30
30
  import {
31
31
  buildChatCompletionTokenLimit,
32
32
  shouldAssumeOpenAiChatCompletions
@@ -45,7 +45,7 @@ import {
45
45
  } from "./chunk-QDW3E4RD.js";
46
46
  import {
47
47
  sanitizeMemoryContent
48
- } from "./chunk-M62O4P4T.js";
48
+ } from "./chunk-FVQJYWH7.js";
49
49
  import {
50
50
  log
51
51
  } from "./chunk-2ODBA7MQ.js";
@@ -1290,7 +1290,7 @@ Consolidate the new memories against existing ones.`
1290
1290
  return { items: [], profileUpdates: [], entityUpdates: [] };
1291
1291
  }
1292
1292
  try {
1293
- const systemPrompt = `You are a memory consolidation system. Compare new memories against existing ones and decide what to do with each.
1293
+ const instructionText = `You are a memory consolidation system. Compare new memories against existing ones and decide what to do with each.
1294
1294
 
1295
1295
  Actions:
1296
1296
  - ADD: Keep the new memory as-is (no duplicate exists)
@@ -1318,7 +1318,7 @@ ${CONSOLIDATION_RESPONSE_SCHEMA}`;
1318
1318
  const response = await this.client.chat.completions.create({
1319
1319
  model: this.config.model,
1320
1320
  messages: [
1321
- { role: "system", content: systemPrompt },
1321
+ { role: "system", content: instructionText },
1322
1322
  { role: "user", content: "Consolidate the new memories against existing ones." }
1323
1323
  ],
1324
1324
  ...this.config.reasoningEffort !== "none" ? { reasoning_effort: this.config.reasoningEffort } : {},
@@ -1507,7 +1507,7 @@ The output should be the COMPLETE consolidated profile as valid markdown, starti
1507
1507
  return null;
1508
1508
  }
1509
1509
  try {
1510
- const systemPrompt = `You are a profile consolidation system. You are given a behavioral profile (markdown) that has grown too large. Your job is to produce a CONSOLIDATED version that:
1510
+ const instructionText = `You are a profile consolidation system. You are given a behavioral profile (markdown) that has grown too large. Your job is to produce a CONSOLIDATED version that:
1511
1511
 
1512
1512
  1. PRESERVES all ## section headers and their structure
1513
1513
  2. MERGES duplicate or near-duplicate bullet points into single, clear statements
@@ -1528,7 +1528,7 @@ Respond with valid JSON matching this schema:
1528
1528
  const response = await this.client.chat.completions.create({
1529
1529
  model: this.config.model,
1530
1530
  messages: [
1531
- { role: "system", content: systemPrompt },
1531
+ { role: "system", content: instructionText },
1532
1532
  { role: "user", content: fullProfileContent }
1533
1533
  ],
1534
1534
  ...this.config.reasoningEffort !== "none" ? { reasoning_effort: this.config.reasoningEffort } : {},
@@ -1709,7 +1709,7 @@ The goal is to reduce a bloated file to a compact, high-signal set of learned pa
1709
1709
  return null;
1710
1710
  }
1711
1711
  try {
1712
- const systemPrompt = `You are an identity consolidation system. You are given the full contents of an IDENTITY.md file that contains many individual reflection entries. Your job is to:
1712
+ const instructionText = `You are an identity consolidation system. You are given the full contents of an IDENTITY.md file that contains many individual reflection entries. Your job is to:
1713
1713
 
1714
1714
  1. Read all the reflection entries (sections starting with "## Reflection")
1715
1715
  2. Extract the most important, durable behavioral patterns and lessons learned
@@ -1728,7 +1728,7 @@ Respond with valid JSON matching this schema:
1728
1728
  const response = await this.client.chat.completions.create({
1729
1729
  model: this.config.model,
1730
1730
  messages: [
1731
- { role: "system", content: systemPrompt },
1731
+ { role: "system", content: instructionText },
1732
1732
  { role: "user", content: fullIdentityContent }
1733
1733
  ],
1734
1734
  ...this.config.reasoningEffort !== "none" ? { reasoning_effort: this.config.reasoningEffort } : {},
@@ -1857,7 +1857,7 @@ Memory 2 (new):
1857
1857
  Category: ${newMemory.category}
1858
1858
  Content: ${newMemory.content}`;
1859
1859
  try {
1860
- const systemPrompt = `You are a contradiction detection system. Analyze whether two memories contradict each other.
1860
+ const instructionText = `You are a contradiction detection system. Analyze whether two memories contradict each other.
1861
1861
 
1862
1862
  IMPORTANT: Not all similar memories are contradictions!
1863
1863
  - "User likes TypeScript" and "User likes Python" are NOT contradictions (preferences can coexist)
@@ -1883,7 +1883,7 @@ Respond with valid JSON matching this schema:
1883
1883
  try {
1884
1884
  const localResponse = await this.localLlm.chatCompletion(
1885
1885
  [
1886
- { role: "system", content: systemPrompt },
1886
+ { role: "system", content: instructionText },
1887
1887
  { role: "user", content: input }
1888
1888
  ],
1889
1889
  {
@@ -1916,7 +1916,7 @@ Respond with valid JSON matching this schema:
1916
1916
  if (!this.shouldUseDirectClient) {
1917
1917
  const fallbackResponse = await this.fallbackLlm.chatCompletion(
1918
1918
  [
1919
- { role: "system", content: systemPrompt },
1919
+ { role: "system", content: instructionText },
1920
1920
  { role: "user", content: input }
1921
1921
  ],
1922
1922
  this.withGatewayAgent({ temperature: 0.3, maxTokens: 2048 })
@@ -1936,7 +1936,7 @@ Respond with valid JSON matching this schema:
1936
1936
  const response = await this.client.chat.completions.create({
1937
1937
  model: this.config.model,
1938
1938
  messages: [
1939
- { role: "system", content: systemPrompt },
1939
+ { role: "system", content: instructionText },
1940
1940
  { role: "user", content: input }
1941
1941
  ],
1942
1942
  ...buildChatCompletionTokenLimit(this.config.model, 2048, {
@@ -1976,7 +1976,7 @@ Content: ${newMemory.content}
1976
1976
  Candidate memories to link to:
1977
1977
  ${candidateList}`;
1978
1978
  try {
1979
- const systemPrompt = `You are a memory linking system. Analyze the new memory and suggest relationships to existing memories.
1979
+ const instructionText = `You are a memory linking system. Analyze the new memory and suggest relationships to existing memories.
1980
1980
 
1981
1981
  Link types:
1982
1982
  - follows: This memory is a continuation or next step (e.g., decision follows discussion)
@@ -1999,7 +1999,7 @@ Respond with valid JSON matching this schema:
1999
1999
  try {
2000
2000
  const localResponse = await this.localLlm.chatCompletion(
2001
2001
  [
2002
- { role: "system", content: systemPrompt },
2002
+ { role: "system", content: instructionText },
2003
2003
  { role: "user", content: input }
2004
2004
  ],
2005
2005
  {
@@ -2028,7 +2028,7 @@ Respond with valid JSON matching this schema:
2028
2028
  if (!this.shouldUseDirectClient) {
2029
2029
  const fallbackResponse = await this.fallbackLlm.chatCompletion(
2030
2030
  [
2031
- { role: "system", content: systemPrompt },
2031
+ { role: "system", content: instructionText },
2032
2032
  { role: "user", content: input }
2033
2033
  ],
2034
2034
  this.withGatewayAgent({ temperature: 0.3, maxTokens: 2048 })
@@ -2044,7 +2044,7 @@ Respond with valid JSON matching this schema:
2044
2044
  const response = await this.client.chat.completions.create({
2045
2045
  model: this.config.model,
2046
2046
  messages: [
2047
- { role: "system", content: systemPrompt },
2047
+ { role: "system", content: instructionText },
2048
2048
  { role: "user", content: input }
2049
2049
  ],
2050
2050
  ...buildChatCompletionTokenLimit(this.config.model, 2048, {
@@ -2071,7 +2071,7 @@ Respond with valid JSON matching this schema:
2071
2071
  }
2072
2072
  const memoryContext = formatDaySummaryMemories(memories);
2073
2073
  if (memoryContext.length === 0) return null;
2074
- const systemPrompt = await loadDaySummaryPrompt();
2074
+ const instructionText = await loadDaySummaryPrompt();
2075
2075
  let extensionsFooter = "";
2076
2076
  try {
2077
2077
  extensionsFooter = await buildExtensionsFooterForSummary(this.config);
@@ -2089,7 +2089,7 @@ ${extensionsFooter}` : ""}`;
2089
2089
  try {
2090
2090
  const localResponse = await this.localLlm.chatCompletion(
2091
2091
  [
2092
- { role: "system", content: `${systemPrompt}
2092
+ { role: "system", content: `${instructionText}
2093
2093
 
2094
2094
  Return valid JSON only.` },
2095
2095
  { role: "user", content: userPrompt }
@@ -2126,7 +2126,7 @@ Return valid JSON only.` },
2126
2126
  startedAt,
2127
2127
  DaySummaryResultSchema,
2128
2128
  [
2129
- { role: "system", content: `${systemPrompt}
2129
+ { role: "system", content: `${instructionText}
2130
2130
 
2131
2131
  Return valid JSON only.` },
2132
2132
  { role: "user", content: userPrompt }
@@ -2144,7 +2144,7 @@ Return valid JSON only.` },
2144
2144
  try {
2145
2145
  const response = await this.client.responses.create({
2146
2146
  model: this.config.model,
2147
- instructions: `${systemPrompt}
2147
+ instructions: `${instructionText}
2148
2148
 
2149
2149
  Return valid JSON only.`,
2150
2150
  input: userPrompt,
@@ -2174,7 +2174,7 @@ Return valid JSON only.`,
2174
2174
  const memoryList = memories.map((m) => `[${m.id}] (${m.category}, ${m.created.slice(0, 10)})
2175
2175
  ${m.content}`).join("\n\n");
2176
2176
  try {
2177
- const systemPrompt = `You are a memory summarization system. You are given a batch of old memories that need to be compressed into a summary.
2177
+ const instructionText = `You are a memory summarization system. You are given a batch of old memories that need to be compressed into a summary.
2178
2178
 
2179
2179
  Your task:
2180
2180
  1. Write a concise summary paragraph (2-4 sentences) capturing the essence of these memories
@@ -2197,7 +2197,7 @@ Respond with valid JSON matching this schema:
2197
2197
  try {
2198
2198
  const localResponse = await this.localLlm.chatCompletion(
2199
2199
  [
2200
- { role: "system", content: systemPrompt },
2200
+ { role: "system", content: instructionText },
2201
2201
  { role: "user", content: `Summarize these ${memories.length} memories:
2202
2202
 
2203
2203
  ${memoryList}` }
@@ -2230,7 +2230,7 @@ ${memoryList}` }
2230
2230
  if (!this.shouldUseDirectClient) {
2231
2231
  const fallbackResponse = await this.fallbackLlm.chatCompletion(
2232
2232
  [
2233
- { role: "system", content: systemPrompt },
2233
+ { role: "system", content: instructionText },
2234
2234
  { role: "user", content: `Summarize these ${memories.length} memories:
2235
2235
 
2236
2236
  ${memoryList}` }
@@ -2248,7 +2248,7 @@ ${memoryList}` }
2248
2248
  const response = await this.client.chat.completions.create({
2249
2249
  model: this.config.model,
2250
2250
  messages: [
2251
- { role: "system", content: systemPrompt },
2251
+ { role: "system", content: instructionText },
2252
2252
  { role: "user", content: `Summarize these ${memories.length} memories:
2253
2253
 
2254
2254
  ${memoryList}` }
@@ -2275,4 +2275,4 @@ ${memoryList}` }
2275
2275
  export {
2276
2276
  ExtractionEngine
2277
2277
  };
2278
- //# sourceMappingURL=chunk-FCGWNWG4.js.map
2278
+ //# sourceMappingURL=chunk-KIF7QNKL.js.map