@remnic/core 1.1.8 → 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.
- package/dist/access-cli.js +30 -30
- package/dist/access-http.d.ts +7 -7
- package/dist/access-http.js +13 -13
- package/dist/access-mcp.d.ts +7 -7
- package/dist/access-mcp.js +12 -12
- package/dist/{access-service-C0Rkioec.d.ts → access-service-BJCIjVRY.d.ts} +9 -9
- package/dist/access-service.d.ts +7 -7
- package/dist/access-service.js +11 -11
- package/dist/active-memory-bridge.d.ts +1 -1
- package/dist/active-recall.d.ts +2 -2
- package/dist/active-recall.js +2 -2
- package/dist/active-recall.js.map +1 -1
- package/dist/behavior-learner.d.ts +1 -1
- package/dist/behavior-signals.d.ts +1 -1
- package/dist/bootstrap.d.ts +6 -6
- package/dist/briefing.d.ts +2 -2
- package/dist/briefing.js +6 -6
- package/dist/buffer-surprise-report.d.ts +1 -1
- package/dist/buffer.d.ts +2 -2
- package/dist/calibration.d.ts +1 -1
- package/dist/calibration.js +2 -2
- package/dist/causal-behavior.d.ts +1 -1
- package/dist/causal-consolidation.d.ts +2 -2
- package/dist/causal-consolidation.js +8 -8
- package/dist/{chunk-ETA2JXP5.js → chunk-2MVUXO4H.js} +2 -2
- package/dist/{chunk-GZCUW5IC.js → chunk-3IQ2TR4N.js} +5 -5
- package/dist/chunk-3IQ2TR4N.js.map +1 -0
- package/dist/{chunk-KNQ5YJTO.js → chunk-3VRIIII5.js} +149 -1
- package/dist/chunk-3VRIIII5.js.map +1 -0
- package/dist/{chunk-TUFG6VXY.js → chunk-4DWOBS2A.js} +2 -2
- package/dist/chunk-4DWOBS2A.js.map +1 -0
- package/dist/{chunk-L2IO2QPY.js → chunk-4IS4SXIQ.js} +17 -13
- package/dist/chunk-4IS4SXIQ.js.map +1 -0
- package/dist/{chunk-RLV2F337.js → chunk-6OAQEOGV.js} +2 -2
- package/dist/{chunk-QJZ77K7F.js → chunk-6Z6UH6TK.js} +26 -12
- package/dist/chunk-6Z6UH6TK.js.map +1 -0
- package/dist/{chunk-4IT6WL23.js → chunk-7SFAENUZ.js} +2 -2
- package/dist/{chunk-ODWDQNRE.js → chunk-7SI52C65.js} +7 -3
- package/dist/chunk-7SI52C65.js.map +1 -0
- package/dist/{chunk-Q5TJRAGE.js → chunk-A6PGANSE.js} +3 -3
- package/dist/{chunk-OJMD2LIW.js → chunk-BIHCWSWA.js} +3 -3
- package/dist/{chunk-MYH2IBSP.js → chunk-CTYRIJ5E.js} +3 -3
- package/dist/{chunk-T65SHTJP.js → chunk-ET4BL42V.js} +1 -1
- package/dist/chunk-ET4BL42V.js.map +1 -0
- package/dist/{chunk-DWMXVUGO.js → chunk-FLBYSB2V.js} +6 -4
- package/dist/chunk-FLBYSB2V.js.map +1 -0
- package/dist/{chunk-GRDDGNYQ.js → chunk-FPWUENQH.js} +34 -32
- package/dist/chunk-FPWUENQH.js.map +1 -0
- package/dist/chunk-FVQJYWH7.js +52 -0
- package/dist/chunk-FVQJYWH7.js.map +1 -0
- package/dist/{chunk-STB3GUYU.js → chunk-G3G3LY22.js} +2 -2
- package/dist/{chunk-FIXIX6DE.js → chunk-G6NX57V2.js} +33 -43
- package/dist/chunk-G6NX57V2.js.map +1 -0
- package/dist/{chunk-3FPTCC3Z.js → chunk-GVPWB7EY.js} +2 -2
- package/dist/{chunk-AV2WSYZY.js → chunk-ICULSMDG.js} +2 -2
- package/dist/{chunk-WXPPM426.js → chunk-J3P6WSFZ.js} +2 -2
- package/dist/{chunk-FCGWNWG4.js → chunk-KIF7QNKL.js} +28 -28
- package/dist/chunk-KIF7QNKL.js.map +1 -0
- package/dist/{chunk-XVOIMCVW.js → chunk-KMWZXT5T.js} +2 -2
- package/dist/{chunk-SWRJFKYW.js → chunk-M3DK45UM.js} +5 -5
- package/dist/{chunk-XGX4TUF6.js → chunk-MJLUHRSF.js} +5 -5
- package/dist/{chunk-4KAN3GZ3.js → chunk-NN2DKE4T.js} +1 -1
- package/dist/chunk-NN2DKE4T.js.map +1 -0
- package/dist/{chunk-R2XRID2N.js → chunk-NN3LPQ5D.js} +5 -5
- package/dist/chunk-NN3LPQ5D.js.map +1 -0
- package/dist/{chunk-RJSVRPNU.js → chunk-OWGGXPKV.js} +16 -9
- package/dist/chunk-OWGGXPKV.js.map +1 -0
- package/dist/{chunk-WSZIHQBK.js → chunk-P77UEOU2.js} +4 -1
- package/dist/{chunk-WSZIHQBK.js.map → chunk-P77UEOU2.js.map} +1 -1
- package/dist/{chunk-65ZPH7QA.js → chunk-PHQH2VUO.js} +4 -4
- package/dist/{chunk-KHJRMWO4.js → chunk-QPLYTPYL.js} +15 -15
- package/dist/{chunk-FEMOX5AD.js → chunk-QR3C7BKQ.js} +7 -7
- package/dist/chunk-QR3C7BKQ.js.map +1 -0
- package/dist/{chunk-3LCWFNVS.js → chunk-SKE7JYKA.js} +2 -2
- package/dist/{chunk-E27HOXMX.js → chunk-U4SZXGEO.js} +2 -2
- package/dist/{chunk-67YLUWLG.js → chunk-XJKFSSDW.js} +3 -3
- package/dist/chunk-XJKFSSDW.js.map +1 -0
- package/dist/{chunk-SYWJJTNL.js → chunk-XL3UCAZA.js} +22 -22
- package/dist/{chunk-ASIQZXYO.js → chunk-XMVFHBHT.js} +2 -2
- package/dist/{chunk-SRIDOT64.js → chunk-XN4D6Z7X.js} +3 -3
- package/dist/{chunk-S5SQDIF5.js → chunk-Y3VT6ZCP.js} +4 -4
- package/dist/{cli-CIATRu8o.d.ts → cli-BojuyOOp.d.ts} +4 -4
- package/dist/cli.d.ts +8 -8
- package/dist/cli.js +24 -24
- package/dist/{codex-materialize-xVqbEmcm.d.ts → codex-materialize-YVC2wb6n.d.ts} +1 -1
- package/dist/compression-optimizer.d.ts +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.js +1 -1
- package/dist/consolidation-provenance-check.d.ts +2 -2
- package/dist/consolidation-undo.d.ts +2 -2
- package/dist/day-summary.d.ts +1 -1
- package/dist/day-summary.js +1 -1
- package/dist/delinearize.d.ts +1 -1
- package/dist/direct-answer-wiring.d.ts +1 -1
- package/dist/direct-answer.d.ts +1 -1
- package/dist/embedding-fallback.d.ts +1 -1
- package/dist/{engine-MEAYUA7A.js → engine-EDFFOWDD.js} +7 -7
- package/dist/entity-retrieval.d.ts +2 -2
- package/dist/entity-retrieval.js +6 -6
- package/dist/entity-schema.d.ts +1 -1
- package/dist/explicit-capture.d.ts +6 -6
- package/dist/explicit-capture.js +2 -2
- package/dist/explicit-cue-recall.js +1 -1
- package/dist/extraction-judge-telemetry.d.ts +1 -1
- package/dist/extraction-judge-training.d.ts +1 -1
- package/dist/extraction-judge.d.ts +1 -1
- package/dist/extraction.d.ts +1 -1
- package/dist/extraction.js +7 -7
- package/dist/fallback-llm.d.ts +1 -1
- package/dist/fallback-llm.js +2 -2
- package/dist/identity-continuity.d.ts +1 -1
- package/dist/importance.d.ts +1 -1
- package/dist/index.d.ts +13 -13
- package/dist/index.js +147 -147
- package/dist/index.js.map +1 -1
- package/dist/intent.d.ts +1 -1
- package/dist/lifecycle.d.ts +1 -1
- package/dist/live-connectors-runner.d.ts +1 -1
- package/dist/live-connectors-runner.js +2 -2
- package/dist/local-llm.d.ts +1 -1
- package/dist/local-llm.js +1 -1
- package/dist/memory-action-policy.d.ts +1 -1
- package/dist/memory-cache.d.ts +1 -1
- package/dist/{memory-governance-G3XODEXW.js → memory-governance-AAQPBZEP.js} +7 -7
- package/dist/memory-lifecycle-ledger-utils.d.ts +1 -1
- package/dist/{memory-projection-store-lCzmu4JX.d.ts → memory-projection-store-BW8u5U0u.d.ts} +1 -1
- package/dist/memory-projection-store.d.ts +2 -2
- package/dist/memory-projection-store.js +1 -1
- package/dist/memory-worth-outcomes.d.ts +2 -2
- package/dist/{migrate-from-identity-anchor-TTEDEJGX.js → migrate-from-identity-anchor-G27MCD6A.js} +2 -2
- package/dist/model-registry.js +1 -1
- package/dist/models-json.d.ts +1 -1
- package/dist/models-json.js +1 -1
- package/dist/native-knowledge.d.ts +1 -1
- package/dist/operator-toolkit.d.ts +2 -2
- package/dist/operator-toolkit.js +10 -10
- package/dist/opik-exporter.js +2 -2
- package/dist/opik-exporter.js.map +1 -1
- package/dist/{orchestrator-CvUYwuaL.d.ts → orchestrator-CYqmqxco.d.ts} +5 -5
- package/dist/orchestrator.d.ts +6 -6
- package/dist/orchestrator.js +25 -25
- package/dist/patterns-cli.d.ts +1 -1
- package/dist/{peers-6OSQ3NK6.js → peers-HCVGHMAE.js} +3 -3
- package/dist/policy-runtime.d.ts +1 -1
- package/dist/{port-BkWL7hqo.d.ts → port-Br27H8dy.d.ts} +7 -1
- package/dist/qmd-recall-cache.d.ts +2 -2
- package/dist/qmd.d.ts +3 -2
- package/dist/qmd.js +1 -1
- package/dist/recall-disclosure-escalation.d.ts +1 -1
- package/dist/recall-explain-renderer.d.ts +1 -1
- package/dist/recall-explain-renderer.js +3 -3
- package/dist/recall-state.d.ts +1 -1
- package/dist/recall-tag-filter.d.ts +1 -1
- package/dist/recall-xray-cli.d.ts +1 -1
- package/dist/recall-xray-cli.js +4 -4
- package/dist/recall-xray-renderer.d.ts +1 -1
- package/dist/recall-xray-renderer.js +3 -3
- package/dist/recall-xray.d.ts +1 -1
- package/dist/recall-xray.js +2 -2
- package/dist/resolve-auth-token.d.ts +1 -1
- package/dist/resume-bundles.js +2 -2
- package/dist/retrieval-agents.d.ts +2 -2
- package/dist/retrieval-tiers.d.ts +1 -1
- package/dist/sanitize.js +1 -1
- package/dist/schemas.d.ts +22 -22
- package/dist/{semantic-consolidation-CGiH52qa.d.ts → semantic-consolidation-GPcLr9BQ.d.ts} +2 -2
- package/dist/semantic-consolidation.d.ts +3 -3
- package/dist/semantic-consolidation.js +6 -6
- package/dist/semantic-rule-promotion.js +6 -6
- package/dist/semantic-rule-verifier.d.ts +1 -1
- package/dist/semantic-rule-verifier.js +6 -6
- package/dist/session-observer-bands.d.ts +1 -1
- package/dist/session-observer-state.d.ts +1 -1
- package/dist/signal.d.ts +1 -1
- package/dist/source-attribution.d.ts +1 -1
- package/dist/source-attribution.js +1 -1
- package/dist/storage.d.ts +2 -2
- package/dist/storage.js +5 -5
- package/dist/summarizer.d.ts +1 -1
- package/dist/summarizer.js +5 -5
- package/dist/summary-snapshot.d.ts +1 -1
- package/dist/temporal-supersession.d.ts +2 -2
- package/dist/temporal-validity.d.ts +1 -1
- package/dist/threading.d.ts +1 -1
- package/dist/tier-migration.d.ts +3 -3
- package/dist/tier-routing.d.ts +1 -1
- package/dist/topics.d.ts +1 -1
- package/dist/transcript.d.ts +1 -1
- package/dist/{types-H85grL1f.d.ts → types-Bmp9ssU2.d.ts} +3 -3
- package/dist/types.d.ts +1 -1
- package/dist/types.js +1 -1
- package/dist/utility-runtime.d.ts +1 -1
- package/dist/verified-recall.js +6 -6
- package/package.json +1 -1
- package/dist/chunk-4KAN3GZ3.js.map +0 -1
- package/dist/chunk-67YLUWLG.js.map +0 -1
- package/dist/chunk-DWMXVUGO.js.map +0 -1
- package/dist/chunk-FCGWNWG4.js.map +0 -1
- package/dist/chunk-FEMOX5AD.js.map +0 -1
- package/dist/chunk-FIXIX6DE.js.map +0 -1
- package/dist/chunk-GRDDGNYQ.js.map +0 -1
- package/dist/chunk-GZCUW5IC.js.map +0 -1
- package/dist/chunk-KNQ5YJTO.js.map +0 -1
- package/dist/chunk-L2IO2QPY.js.map +0 -1
- package/dist/chunk-M62O4P4T.js +0 -41
- package/dist/chunk-M62O4P4T.js.map +0 -1
- package/dist/chunk-ODWDQNRE.js.map +0 -1
- package/dist/chunk-QJZ77K7F.js.map +0 -1
- package/dist/chunk-R2XRID2N.js.map +0 -1
- package/dist/chunk-RJSVRPNU.js.map +0 -1
- package/dist/chunk-T65SHTJP.js.map +0 -1
- package/dist/chunk-TUFG6VXY.js.map +0 -1
- /package/dist/{chunk-ETA2JXP5.js.map → chunk-2MVUXO4H.js.map} +0 -0
- /package/dist/{chunk-RLV2F337.js.map → chunk-6OAQEOGV.js.map} +0 -0
- /package/dist/{chunk-4IT6WL23.js.map → chunk-7SFAENUZ.js.map} +0 -0
- /package/dist/{chunk-Q5TJRAGE.js.map → chunk-A6PGANSE.js.map} +0 -0
- /package/dist/{chunk-OJMD2LIW.js.map → chunk-BIHCWSWA.js.map} +0 -0
- /package/dist/{chunk-MYH2IBSP.js.map → chunk-CTYRIJ5E.js.map} +0 -0
- /package/dist/{chunk-STB3GUYU.js.map → chunk-G3G3LY22.js.map} +0 -0
- /package/dist/{chunk-3FPTCC3Z.js.map → chunk-GVPWB7EY.js.map} +0 -0
- /package/dist/{chunk-AV2WSYZY.js.map → chunk-ICULSMDG.js.map} +0 -0
- /package/dist/{chunk-WXPPM426.js.map → chunk-J3P6WSFZ.js.map} +0 -0
- /package/dist/{chunk-XVOIMCVW.js.map → chunk-KMWZXT5T.js.map} +0 -0
- /package/dist/{chunk-SWRJFKYW.js.map → chunk-M3DK45UM.js.map} +0 -0
- /package/dist/{chunk-XGX4TUF6.js.map → chunk-MJLUHRSF.js.map} +0 -0
- /package/dist/{chunk-65ZPH7QA.js.map → chunk-PHQH2VUO.js.map} +0 -0
- /package/dist/{chunk-KHJRMWO4.js.map → chunk-QPLYTPYL.js.map} +0 -0
- /package/dist/{chunk-3LCWFNVS.js.map → chunk-SKE7JYKA.js.map} +0 -0
- /package/dist/{chunk-E27HOXMX.js.map → chunk-U4SZXGEO.js.map} +0 -0
- /package/dist/{chunk-SYWJJTNL.js.map → chunk-XL3UCAZA.js.map} +0 -0
- /package/dist/{chunk-ASIQZXYO.js.map → chunk-XMVFHBHT.js.map} +0 -0
- /package/dist/{chunk-SRIDOT64.js.map → chunk-XN4D6Z7X.js.map} +0 -0
- /package/dist/{chunk-S5SQDIF5.js.map → chunk-Y3VT6ZCP.js.map} +0 -0
- /package/dist/{engine-MEAYUA7A.js.map → engine-EDFFOWDD.js.map} +0 -0
- /package/dist/{memory-governance-G3XODEXW.js.map → memory-governance-AAQPBZEP.js.map} +0 -0
- /package/dist/{migrate-from-identity-anchor-TTEDEJGX.js.map → migrate-from-identity-anchor-G27MCD6A.js.map} +0 -0
- /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-
|
|
15
|
+
} from "./chunk-QR3C7BKQ.js";
|
|
16
16
|
import {
|
|
17
17
|
LocalLlmClient
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-NN3LPQ5D.js";
|
|
19
19
|
import {
|
|
20
20
|
buildExtensionsFooterForSummary,
|
|
21
21
|
formatDaySummaryMemories,
|
|
22
22
|
loadDaySummaryPrompt
|
|
23
|
-
} from "./chunk-
|
|
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-
|
|
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-
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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
|
|
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: `${
|
|
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: `${
|
|
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: `${
|
|
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
|
|
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:
|
|
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:
|
|
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:
|
|
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-
|
|
2278
|
+
//# sourceMappingURL=chunk-KIF7QNKL.js.map
|