@mastra/memory 1.28.0 → 1.28.1-alpha.1
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/CHANGELOG.md +20 -0
- package/LICENSE.md +6 -4
- package/dist/docs/SKILL.md +1 -1
- package/dist/docs/assets/SOURCE_MAP.json +1 -1
- package/dist/docs/references/docs-agents-human-in-the-loop.md +2 -0
- package/dist/docs/references/docs-agents-networks.md +2 -0
- package/dist/docs/references/docs-evals-evals-with-memory.md +2 -0
- package/dist/docs/references/docs-guides-context-engineering.md +2 -0
- package/dist/docs/references/docs-harness-background-tasks.md +2 -0
- package/dist/docs/references/docs-harness-goals.md +2 -0
- package/dist/docs/references/docs-memory-memory-processors.md +2 -0
- package/dist/docs/references/docs-memory-message-history.md +2 -0
- package/dist/docs/references/docs-memory-multi-user-threads.md +2 -0
- package/dist/docs/references/docs-memory-observational-memory.md +2 -0
- package/dist/docs/references/docs-memory-overview.md +2 -0
- package/dist/docs/references/docs-memory-semantic-recall.md +2 -0
- package/dist/docs/references/docs-memory-working-memory.md +2 -0
- package/dist/docs/references/docs-storage.md +2 -0
- package/dist/docs/references/docs-subagents.md +2 -0
- package/dist/docs/references/integrations-channels-github.md +2 -0
- package/dist/docs/references/integrations-databases-aurora-dsql.md +2 -0
- package/dist/docs/references/integrations-databases-dynamodb.md +2 -0
- package/dist/docs/references/integrations-databases-elasticsearch.md +2 -0
- package/dist/docs/references/integrations-databases-libsql.md +2 -0
- package/dist/docs/references/integrations-databases-mongodb.md +2 -0
- package/dist/docs/references/integrations-databases-oracledb.md +2 -0
- package/dist/docs/references/integrations-databases-postgresql.md +2 -0
- package/dist/docs/references/integrations-databases-redis.md +2 -0
- package/dist/docs/references/integrations-databases-upstash.md +2 -0
- package/dist/docs/references/integrations-databases-valkey.md +2 -0
- package/dist/docs/references/reference-core-getMemory.md +2 -0
- package/dist/docs/references/reference-core-listMemory.md +2 -0
- package/dist/docs/references/reference-file-based-agents-memory.md +2 -0
- package/dist/docs/references/reference-memory-clone-utilities.md +2 -0
- package/dist/docs/references/reference-memory-cloneThread.md +2 -0
- package/dist/docs/references/reference-memory-createThread.md +2 -0
- package/dist/docs/references/reference-memory-getThreadById.md +2 -0
- package/dist/docs/references/reference-memory-listThreads.md +2 -0
- package/dist/docs/references/reference-memory-memory-class.md +2 -0
- package/dist/docs/references/reference-memory-observational-memory.md +2 -0
- package/dist/docs/references/reference-memory-settled.md +2 -0
- package/dist/docs/references/reference-memory-summarizeConversation.md +2 -0
- package/dist/docs/references/reference-memory-summarizeThread.md +2 -0
- package/dist/docs/references/reference-migrations-agentnetwork.md +2 -0
- package/dist/docs/references/reference-migrations-upgrade-to-v1-memory.md +2 -0
- package/dist/docs/references/reference-processors-token-limiter-processor.md +2 -0
- package/dist/docs/references/reference-vectors-libsql.md +2 -0
- package/dist/docs/references/reference-vectors-mongodb.md +2 -0
- package/dist/docs/references/reference-vectors-oracledb.md +2 -0
- package/dist/docs/references/reference-vectors-pg.md +2 -0
- package/dist/docs/references/reference-vectors-upstash.md +2 -0
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/processors/index.cjs +1 -1
- package/dist/processors/index.js +1 -1
- package/dist/processors/observational-memory/subconscious/capture.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/curate.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/index.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/knowledge-write-tools.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/learn.d.ts.map +1 -1
- package/dist/processors/observational-memory/subconscious/semantic-index.d.ts.map +1 -1
- package/dist/{src-BATJenuZ.js → src-BNtoxIHL.js} +75 -15
- package/dist/src-BNtoxIHL.js.map +1 -0
- package/dist/{src-C7Ozl6Pf.cjs → src-Br56ncef.cjs} +74 -14
- package/dist/src-Br56ncef.cjs.map +1 -0
- package/package.json +7 -7
- package/dist/src-BATJenuZ.js.map +0 -1
- package/dist/src-C7Ozl6Pf.cjs.map +0 -1
|
@@ -11,7 +11,7 @@ import { isStandardSchemaWithJSON, standardSchemaToJSONSchema, toStandardSchema
|
|
|
11
11
|
import { Mutex } from "async-mutex";
|
|
12
12
|
import { LRUCache } from "lru-cache";
|
|
13
13
|
import xxhash from "xxhash-wasm";
|
|
14
|
-
import { InMemoryStore, assertKnowledgeScopeWithinCeiling, canonicalizeKnowledgeScope, createKnowledgeNodeCursor, expandKnowledgeScope, isKnowledgeScopeVisible, knowledgeScopeKey } from "@mastra/core/storage";
|
|
14
|
+
import { InMemoryStore, MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH, assertKnowledgeScopeWithinCeiling, canonicalizeKnowledgeScope, createKnowledgeNodeCursor, expandKnowledgeScope, isKnowledgeScopeVisible, knowledgeScopeKey } from "@mastra/core/storage";
|
|
15
15
|
import { createHash, randomBytes, randomUUID } from "crypto";
|
|
16
16
|
import { createTool } from "@mastra/core/tools";
|
|
17
17
|
import { modelSupportsAttachments, resolveModelConfig } from "@mastra/core/llm";
|
|
@@ -206,7 +206,7 @@ let customAlphabet = (alphabet, defaultSize = 21) => {
|
|
|
206
206
|
return (size = defaultSize) => {
|
|
207
207
|
let id = "";
|
|
208
208
|
let i = size | 0;
|
|
209
|
-
while (i--) id += alphabet[Math.random() * alphabet.length | 0];
|
|
209
|
+
while (i-- > 0) id += alphabet[Math.random() * alphabet.length | 0];
|
|
210
210
|
return id;
|
|
211
211
|
};
|
|
212
212
|
};
|
|
@@ -3713,7 +3713,7 @@ function trimStartOfStream() {
|
|
|
3713
3713
|
};
|
|
3714
3714
|
}
|
|
3715
3715
|
//#endregion
|
|
3716
|
-
//#region ../_vendored/ai_v5/dist/dist-
|
|
3716
|
+
//#region ../_vendored/ai_v5/dist/dist-Dqv4QeJJ.js
|
|
3717
3717
|
var marker$1$4 = "vercel.ai.error";
|
|
3718
3718
|
var symbol$1$3 = Symbol.for(marker$1$4);
|
|
3719
3719
|
var _a$1$3;
|
|
@@ -8602,7 +8602,7 @@ var object$1 = ({ schema: inputSchema }) => {
|
|
|
8602
8602
|
};
|
|
8603
8603
|
};
|
|
8604
8604
|
//#endregion
|
|
8605
|
-
//#region ../_vendored/ai_v6/dist/dist-
|
|
8605
|
+
//#region ../_vendored/ai_v6/dist/dist-Cx98_f-i.js
|
|
8606
8606
|
var marker$1 = "vercel.ai.error";
|
|
8607
8607
|
var symbol$1$1 = Symbol.for(marker$1);
|
|
8608
8608
|
var _a$1$1;
|
|
@@ -10755,7 +10755,7 @@ function withoutTrailingSlash(url) {
|
|
|
10755
10755
|
return url == null ? void 0 : url.replace(/\/$/, "");
|
|
10756
10756
|
}
|
|
10757
10757
|
//#endregion
|
|
10758
|
-
//#region ../_vendored/ai_v6/dist/dist-
|
|
10758
|
+
//#region ../_vendored/ai_v6/dist/dist-pa8X6y1Z.js
|
|
10759
10759
|
function getContext() {
|
|
10760
10760
|
return { headers: {} };
|
|
10761
10761
|
}
|
|
@@ -15273,6 +15273,7 @@ Return nodes with short stable names, a freeform kind, and knowledge records nes
|
|
|
15273
15273
|
Use common kinds such as person, task, event, project, organization, or document when they fit.
|
|
15274
15274
|
Set node scope to the narrowest level where that identity and content should be shared. Omit it to use the configured default scope.
|
|
15275
15275
|
Knowledge records must be grounded in the conversation, concise, and written as prose. Do not infer unstated information.
|
|
15276
|
+
When the conversation states a canonical identifier or URL for an entity, preserve it verbatim in the record text.
|
|
15276
15277
|
Wrap every named node mentioned in record text in [[wikilinks]].
|
|
15277
15278
|
Set a record scope only when the conversation establishes where it applies. Use org for organization-wide records, resource for records shared across this resource's conversations, and thread for conversation-private records.
|
|
15278
15279
|
Omit scope when uncertain; omitted record scopes stay private to the current thread.
|
|
@@ -16144,7 +16145,7 @@ function createKnowledgeWriteTools(memory, options) {
|
|
|
16144
16145
|
}),
|
|
16145
16146
|
knowledge_update_node: createTool({
|
|
16146
16147
|
id: "knowledge_update_node",
|
|
16147
|
-
description: "Update a visible node name or kind using optimistic concurrency.",
|
|
16148
|
+
description: "Update a visible node name or kind using optimistic concurrency. Provide at least one of name or kind.",
|
|
16148
16149
|
inputSchema: {
|
|
16149
16150
|
type: "object",
|
|
16150
16151
|
properties: {
|
|
@@ -16166,11 +16167,11 @@ function createKnowledgeWriteTools(memory, options) {
|
|
|
16166
16167
|
}
|
|
16167
16168
|
},
|
|
16168
16169
|
required: ["node", "expectedVersion"],
|
|
16169
|
-
anyOf: [{ required: ["name"] }, { required: ["kind"] }],
|
|
16170
16170
|
additionalProperties: false
|
|
16171
16171
|
},
|
|
16172
16172
|
execute: async (input) => {
|
|
16173
16173
|
const value = input;
|
|
16174
|
+
if (value.name === void 0 && value.kind === void 0) throw new Error("knowledge_update_node requires at least one of: name, kind.");
|
|
16174
16175
|
const store = await getStore(memory);
|
|
16175
16176
|
const node = await store.getNode(value.node);
|
|
16176
16177
|
if (!node || node.mergedInto) throw new Error(`Knowledge node not found: ${value.node}`);
|
|
@@ -16248,6 +16249,48 @@ function createKnowledgeWriteTools(memory, options) {
|
|
|
16248
16249
|
});
|
|
16249
16250
|
}
|
|
16250
16251
|
}),
|
|
16252
|
+
knowledge_write_node_description: createTool({
|
|
16253
|
+
id: "knowledge_write_node_description",
|
|
16254
|
+
description: `Write the bounded synopsis (max ${MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH} UTF-16 code units) on an existing visible node using optimistic concurrency. Pass an empty string to clear it. Does not create nodes.`,
|
|
16255
|
+
inputSchema: {
|
|
16256
|
+
type: "object",
|
|
16257
|
+
properties: {
|
|
16258
|
+
node: {
|
|
16259
|
+
type: "string",
|
|
16260
|
+
minLength: 1
|
|
16261
|
+
},
|
|
16262
|
+
expectedVersion: {
|
|
16263
|
+
type: "integer",
|
|
16264
|
+
minimum: 1
|
|
16265
|
+
},
|
|
16266
|
+
description: {
|
|
16267
|
+
type: "string",
|
|
16268
|
+
minLength: 0,
|
|
16269
|
+
maxLength: MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH,
|
|
16270
|
+
description: `One or two plain-text sentences describing the node, targeting 40-75 tokens. Hard limit ${MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH} UTF-16 code units, enforced by storage on every write; the length check on execution is authoritative. Long-form detail belongs in node content, not here. An empty string clears the description.`
|
|
16271
|
+
}
|
|
16272
|
+
},
|
|
16273
|
+
required: [
|
|
16274
|
+
"node",
|
|
16275
|
+
"expectedVersion",
|
|
16276
|
+
"description"
|
|
16277
|
+
],
|
|
16278
|
+
additionalProperties: false
|
|
16279
|
+
},
|
|
16280
|
+
execute: async (input) => {
|
|
16281
|
+
const value = input;
|
|
16282
|
+
if (value.description.length > MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH) throw new Error(`Node descriptions are limited to ${MAX_KNOWLEDGE_NODE_DESCRIPTION_LENGTH} UTF-16 code units. Shorten the description and retry.`);
|
|
16283
|
+
const store = await getStore(memory);
|
|
16284
|
+
const node = await store.getNode(value.node);
|
|
16285
|
+
if (!node || node.mergedInto) throw new Error(`Knowledge node not found: ${value.node}`);
|
|
16286
|
+
requireVisible(node.scope, options, "Knowledge node");
|
|
16287
|
+
return store.updateNode({
|
|
16288
|
+
id: node.id,
|
|
16289
|
+
version: value.expectedVersion,
|
|
16290
|
+
description: value.description
|
|
16291
|
+
});
|
|
16292
|
+
}
|
|
16293
|
+
}),
|
|
16251
16294
|
knowledge_write_node_content: createTool({
|
|
16252
16295
|
id: "knowledge_write_node_content",
|
|
16253
16296
|
description: "Create or replace long-form content on a scoped knowledge node. Existing nodes require expectedVersion.",
|
|
@@ -16456,7 +16499,7 @@ var KnowledgeSemanticIndexCoordinator = class {
|
|
|
16456
16499
|
const node = await this.#knowledge.getNode(entry.documentId.slice(15));
|
|
16457
16500
|
if (!node || node.mergedInto) return null;
|
|
16458
16501
|
return {
|
|
16459
|
-
text: `${node.name}\n${node.content ?? ""}`,
|
|
16502
|
+
text: node.description ? `${node.name}\n${node.description}\n${node.content ?? ""}` : `${node.name}\n${node.content ?? ""}`,
|
|
16460
16503
|
name: node.name,
|
|
16461
16504
|
scope: node.scope,
|
|
16462
16505
|
recordId: node.id,
|
|
@@ -16526,7 +16569,14 @@ var subconscious_exports = /* @__PURE__ */ __exportAll({
|
|
|
16526
16569
|
});
|
|
16527
16570
|
const BUILT_IN_OBSERVATION = /* @__PURE__ */ new Set(["capture", "remind"]);
|
|
16528
16571
|
const BUILT_IN_REFLECTION = /* @__PURE__ */ new Set(["curate", "learn"]);
|
|
16529
|
-
const DEFAULT_MAX_STEPS =
|
|
16572
|
+
const DEFAULT_MAX_STEPS = 50;
|
|
16573
|
+
/**
|
|
16574
|
+
* Curation walks a worklist that can reach hundreds of records, and its completion marker is
|
|
16575
|
+
* fail-closed: a curator that runs out of steps advances no cursor at all. It gets a much larger
|
|
16576
|
+
* default budget than the other agents, which each handle a single bounded prompt.
|
|
16577
|
+
*/
|
|
16578
|
+
const DEFAULT_MAX_STEPS_BY_AGENT = { curate: 200 };
|
|
16579
|
+
const MAX_MAX_STEPS = 500;
|
|
16530
16580
|
const DEFAULT_RECENT_UPDATES = 10;
|
|
16531
16581
|
const MAX_RECENT_UPDATES = 100;
|
|
16532
16582
|
function entryName(entry) {
|
|
@@ -16543,7 +16593,7 @@ function assertUniqueNames(entries, phase) {
|
|
|
16543
16593
|
}
|
|
16544
16594
|
function boundedSteps(entry, fallback) {
|
|
16545
16595
|
const steps = entry?.maxSteps ?? fallback;
|
|
16546
|
-
if (!Number.isInteger(steps) || steps < 1 || steps >
|
|
16596
|
+
if (!Number.isInteger(steps) || steps < 1 || steps > MAX_MAX_STEPS) throw new Error(`Subconscious maxSteps must be an integer between 1 and ${MAX_MAX_STEPS}.`);
|
|
16547
16597
|
return steps;
|
|
16548
16598
|
}
|
|
16549
16599
|
function resolveExtractor(entry) {
|
|
@@ -16558,12 +16608,13 @@ function resolveExtractor(entry) {
|
|
|
16558
16608
|
function resolveAgent(entry, builtIns, globalModel, globalMaxSteps) {
|
|
16559
16609
|
const config = typeof entry === "string" ? void 0 : entry;
|
|
16560
16610
|
const name = entryName(entry);
|
|
16611
|
+
const fallbackMaxSteps = globalMaxSteps ?? DEFAULT_MAX_STEPS_BY_AGENT[name] ?? DEFAULT_MAX_STEPS;
|
|
16561
16612
|
return {
|
|
16562
16613
|
name,
|
|
16563
16614
|
instructions: config?.instructions,
|
|
16564
16615
|
model: config?.model ?? globalModel,
|
|
16565
16616
|
agent: config?.agent,
|
|
16566
|
-
maxSteps: boundedSteps(config,
|
|
16617
|
+
maxSteps: boundedSteps(config, fallbackMaxSteps),
|
|
16567
16618
|
builtIn: builtIns.has(name)
|
|
16568
16619
|
};
|
|
16569
16620
|
}
|
|
@@ -16580,7 +16631,7 @@ var Subconscious = class {
|
|
|
16580
16631
|
const reflection = config.reflection ?? ["curate", "learn"];
|
|
16581
16632
|
assertUniqueNames(observation, "observation");
|
|
16582
16633
|
assertUniqueNames(reflection, "reflection");
|
|
16583
|
-
const maxSteps = boundedSteps(config, DEFAULT_MAX_STEPS);
|
|
16634
|
+
const maxSteps = config.maxSteps === void 0 ? void 0 : boundedSteps(config, DEFAULT_MAX_STEPS);
|
|
16584
16635
|
for (const entry of observation) this.#validateObservationEntry(entry);
|
|
16585
16636
|
for (const entry of reflection) this.#validateReflectionEntry(entry);
|
|
16586
16637
|
const recentUpdates = config.activity === false ? false : config.activity?.recentUpdates ?? DEFAULT_RECENT_UPDATES;
|
|
@@ -16674,6 +16725,8 @@ const DEFAULT_INSTRUCTIONS$1 = `Maintain durable scoped knowledge from the commi
|
|
|
16674
16725
|
|
|
16675
16726
|
Use the read tools to inspect existing nodes, knowledge records, mentions, backlinks, and long-form node content. Use the write tools to merge true duplicates, repair names and links, soft-delete superseded knowledge records, rescope knowledge records only when justified and permitted by their ceilings, and synthesize useful node content. Never restore deleted knowledge records. Never invent provenance, capture timestamps, scopes, ceilings, IDs, or versions; those are enforced by code. Resolve optimistic-concurrency conflicts by reading the latest record and retrying the intended mutation. Keep the reserved capture-guidance node concise and update it only with durable guidance that will improve future capture.
|
|
16676
16727
|
|
|
16728
|
+
For each significant entity node touched by a KnowledgeRecord in the current worklist, including people, projects, pull requests, issues, repositories, documents, and organizations, maintain a short entity description; do not walk nodes outside the worklist for this. Use the supplied record and read the named node once; do not search or browse unless its identity is ambiguous. Describe what the entity is, its current state, and links to its real-world object, then write it with knowledge_write_node_description, which always requires expectedVersion from the node you just read; after a version conflict, re-read the node and regenerate the description from its current state before retrying. If the node does not exist yet, create it first with knowledge_write_node_content, then re-read it for its fresh version before writing the description. Write one or two plain-text sentences, roughly 40 to 75 tokens; storage rejects any description over its hard length cap, so keep them tight and put long-form detail in node content instead. Include links only from the entity's own records or observations that explicitly associate the link with that entity; never invent a URL, identifier, file path, or provenance. Leave long-form node content alone unless you are synthesizing it deliberately; never shrink content into a synopsis. For entity-description maintenance only, skip low-signal nodes with only a trivial record, any system-kind node, and the reserved capture-guidance node.
|
|
16729
|
+
|
|
16677
16730
|
Process the worklist in ID order. Every time you finish processing a KnowledgeRecord, include <curation-complete through="RECORD_ID" /> in your next text response with that record's ID. The latest marker is your acknowledged cursor, so progress survives if you run out of steps mid-batch. Your final response must end with the marker for the last KnowledgeRecord you fully processed. If you cannot finish the batch, acknowledge only the last KnowledgeRecord you did finish. Do not emit a completion marker when no KnowledgeRecord was fully processed.`;
|
|
16678
16731
|
const PINNED_INSTRUCTIONS = `Maintain the pin set with knowledge_pin, knowledge_edit_pin, and knowledge_unpin. Pinned entries are delivered to the main agent on every turn, so they cost tokens permanently and must stay short. Pin only knowledge that should apply without being asked for, such as standing instructions, durable preferences, and hard constraints. Pin only knowledge that is BOTH costly to rediscover AND not the kind of thing a future agent would think to search for; anything a reminder can surface on demand does not belong in the pin set. Unpin an entry as soon as it stops being unconditionally true.`;
|
|
16679
16732
|
function resolveScope$1(context) {
|
|
@@ -16685,6 +16738,11 @@ function resolveScope$1(context) {
|
|
|
16685
16738
|
`thread:${context.parentThreadId}`
|
|
16686
16739
|
]);
|
|
16687
16740
|
}
|
|
16741
|
+
/**
|
|
16742
|
+
* Upper bound on records pulled into a single reflection prompt. `hasMore` tells the agent the
|
|
16743
|
+
* worklist was truncated; the cursor it advances lets the next cycle pick up the remainder.
|
|
16744
|
+
*/
|
|
16745
|
+
const MAX_WORKLIST_RECORDS$1 = 1e3;
|
|
16688
16746
|
async function readWorklist$1(store, sourceThreadId, scope, after) {
|
|
16689
16747
|
const records = [];
|
|
16690
16748
|
let cursor = after;
|
|
@@ -16698,7 +16756,7 @@ async function readWorklist$1(store, sourceThreadId, scope, after) {
|
|
|
16698
16756
|
});
|
|
16699
16757
|
records.push(...page.records);
|
|
16700
16758
|
cursor = page.nextCursor;
|
|
16701
|
-
} while (cursor && records.length <
|
|
16759
|
+
} while (cursor && records.length < MAX_WORKLIST_RECORDS$1);
|
|
16702
16760
|
return {
|
|
16703
16761
|
records,
|
|
16704
16762
|
hasMore: Boolean(cursor)
|
|
@@ -16820,6 +16878,8 @@ function resolveScope(context) {
|
|
|
16820
16878
|
`thread:${context.parentThreadId}`
|
|
16821
16879
|
]);
|
|
16822
16880
|
}
|
|
16881
|
+
/** Upper bound on records pulled into a single reflection prompt; `hasMore` signals truncation. */
|
|
16882
|
+
const MAX_WORKLIST_RECORDS = 1e3;
|
|
16823
16883
|
async function readWorklist(store, sourceThreadId, scope, after) {
|
|
16824
16884
|
const records = [];
|
|
16825
16885
|
let cursor = after;
|
|
@@ -16832,7 +16892,7 @@ async function readWorklist(store, sourceThreadId, scope, after) {
|
|
|
16832
16892
|
});
|
|
16833
16893
|
records.push(...page.records);
|
|
16834
16894
|
cursor = page.nextCursor;
|
|
16835
|
-
} while (cursor && records.length <
|
|
16895
|
+
} while (cursor && records.length < MAX_WORKLIST_RECORDS);
|
|
16836
16896
|
return {
|
|
16837
16897
|
records,
|
|
16838
16898
|
hasMore: Boolean(cursor)
|
|
@@ -31495,4 +31555,4 @@ Notes:
|
|
|
31495
31555
|
//#endregion
|
|
31496
31556
|
export { formatMessagesForObserver as A, OBSERVATION_CONTINUATION_HINT as B, SUMMARIZE_THREAD_DEFAULTS as C, buildObserverPrompt as D, OBSERVER_SYSTEM_PROMPT as E, parseAnchorId as F, ModelByInputTokens as G, KnowledgeSemanticIndexCoordinator as H, stripEphemeralAnchorIds as I, SUBCONSCIOUS_ACTIVITY_STATE_ID as J, SubconsciousCaptureExtractor as K, OBSERVATIONAL_MEMORY_DEFAULTS as L, optimizeObservationsForContext as M, parseObserverOutput as N, buildObserverSystemPrompt as O, injectAnchorIds as P, Extractor as Q, OBSERVATION_CONTEXT_INSTRUCTIONS as R, WorkingMemoryExtractor as S, TokenCounter as T, StaleKnowledgeSemanticIndexError as U, Subconscious as V, SubconsciousRemindExtractor as W, publishSubconsciousActivity as X, buildSubconsciousActivitySnapshot as Y, renderSubconsciousActivity as Z, wrapInObservationGroup as _, extractWorkingMemoryContent as a, WorkingMemoryStateProcessor as b, getObservationsAsOf as c, combineObservationGroupRanges as d, deriveObservationGroupProvenance as f, stripObservationGroups as g, renderObservationGroupsForReflection as h, WorkingMemory as i, hasCurrentTaskSection as j, extractCurrentTask as k, ObservationalMemoryProcessor as l, reconcileObservationGroupsFromReflection as m, MessageHistory$1 as n, extractWorkingMemoryTags as o, parseObservationGroups as p, subconsciousCaptureSchema as q, SemanticRecall as r, removeWorkingMemoryTags as s, Memory as t, ObservationalMemory as u, WORKING_MEMORY_STATE_ID as v, summarizeConversation as w, deepMergeWorkingMemory as x, WORKING_MEMORY_STATE_PROCESSOR_ID as y, OBSERVATION_CONTEXT_PROMPT as z };
|
|
31497
31557
|
|
|
31498
|
-
//# sourceMappingURL=src-
|
|
31558
|
+
//# sourceMappingURL=src-BNtoxIHL.js.map
|