agent-recall-sdk 3.4.44 → 3.4.46
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/agent-recall.d.ts +61 -21
- package/dist/agent-recall.d.ts.map +1 -1
- package/dist/agent-recall.js +139 -22
- package/dist/agent-recall.js.map +1 -1
- package/package.json +2 -2
package/dist/agent-recall.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Importance, type WalkDepth, type AwarenessState, type DigestStoreInput, type DigestStoreResult, type DigestRecallInput, type DigestRecallResult, type DigestReadResult, type JournalReadResult, type JournalWriteResult, type JournalCaptureResult, type JournalListResult, type JournalSearchResult, type JournalStateResult, type JournalColdStartResult, type JournalArchiveResult, type JournalRollupResult, type JournalProjectsResult, type PalaceWriteResult, type PalaceReadResult, type PalaceWalkResult, type PalaceLintResult, type PalaceSearchResult, type AwarenessUpdateInput, type AwarenessUpdateResult, type RecallInsightResult, type AlignmentCheckInput, type NudgeInput, type ContextSynthesizeResult, type KnowledgeWriteInput, type KnowledgeReadInput, type SessionStartResult, type SmartRememberResult, type SmartRecallInput, type SmartRecallResult, type SessionEndInput, type SessionEndResult, type CheckInput, type CheckResult, readGraph, addEdge, getConnectedRooms } from "agent-recall-core";
|
|
1
|
+
import { type Importance, type WalkDepth, type AwarenessState, type DigestStoreInput, type DigestStoreResult, type DigestRecallInput, type DigestRecallResult, type DigestReadResult, type JournalReadResult, type JournalWriteResult, type JournalCaptureResult, type JournalListResult, type JournalSearchResult, type JournalStateResult, type JournalColdStartResult, type JournalArchiveResult, type JournalRollupResult, type JournalProjectsResult, type PalaceWriteResult, type PalaceReadResult, type PalaceWalkResult, type PalaceLintResult, type PalaceSearchResult, type AwarenessUpdateInput, type AwarenessUpdateResult, type RecallInsightResult, type AlignmentCheckInput, type NudgeInput, type ContextSynthesizeResult, type KnowledgeWriteInput, type KnowledgeReadInput, type SessionStartResult, type SmartRememberResult, type SmartRecallInput, type SmartRecallResult, type SessionEndInput, type SessionEndResult, type CheckInput, type CheckResult, readGraph, addEdge, getConnectedRooms, type RoomMeta } from "agent-recall-core";
|
|
2
2
|
export interface AgentRecallOptions {
|
|
3
3
|
/** Storage root directory. Default: ~/.agent-recall */
|
|
4
4
|
root?: string;
|
|
@@ -15,34 +15,54 @@ export declare class AgentRecall {
|
|
|
15
15
|
journalRead(opts?: {
|
|
16
16
|
date?: string;
|
|
17
17
|
section?: string;
|
|
18
|
-
}): Promise<JournalReadResult
|
|
18
|
+
}): Promise<JournalReadResult & {
|
|
19
|
+
fencedText: string;
|
|
20
|
+
}>;
|
|
19
21
|
journalWrite(content: string, opts?: {
|
|
20
22
|
section?: string;
|
|
21
23
|
palaceRoom?: string;
|
|
22
24
|
}): Promise<JournalWriteResult>;
|
|
23
|
-
journalList(limit?: number): Promise<JournalListResult
|
|
25
|
+
journalList(limit?: number): Promise<JournalListResult & {
|
|
26
|
+
fencedText: string;
|
|
27
|
+
}>;
|
|
24
28
|
journalSearch(query: string, opts?: {
|
|
25
29
|
section?: string;
|
|
26
30
|
includePalace?: boolean;
|
|
27
|
-
}): Promise<JournalSearchResult
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
+
}): Promise<JournalSearchResult & {
|
|
32
|
+
fencedText: string;
|
|
33
|
+
}>;
|
|
34
|
+
state(action: "read" | "write", data?: string, date?: string): Promise<JournalStateResult & {
|
|
35
|
+
fencedText: string;
|
|
36
|
+
}>;
|
|
37
|
+
coldStart(): Promise<JournalColdStartResult & {
|
|
38
|
+
fencedText: string;
|
|
39
|
+
}>;
|
|
40
|
+
archive(olderThanDays?: number): Promise<JournalArchiveResult & {
|
|
41
|
+
fencedText: string;
|
|
42
|
+
}>;
|
|
31
43
|
rollup(opts?: {
|
|
32
44
|
minAgeDays?: number;
|
|
33
45
|
minEntries?: number;
|
|
34
46
|
dryRun?: boolean;
|
|
35
|
-
}): Promise<JournalRollupResult
|
|
47
|
+
}): Promise<JournalRollupResult & {
|
|
48
|
+
fencedText: string;
|
|
49
|
+
}>;
|
|
36
50
|
projects(): Promise<JournalProjectsResult>;
|
|
37
51
|
palaceWrite(room: string, content: string, opts?: {
|
|
38
52
|
topic?: string;
|
|
39
53
|
connections?: string[];
|
|
40
54
|
importance?: Importance;
|
|
41
55
|
}): Promise<PalaceWriteResult>;
|
|
42
|
-
palaceRead(room?: string, topic?: string): Promise<PalaceReadResult
|
|
43
|
-
|
|
56
|
+
palaceRead(room?: string, topic?: string): Promise<PalaceReadResult & {
|
|
57
|
+
fencedText: string;
|
|
58
|
+
}>;
|
|
59
|
+
walk(depth?: WalkDepth, focus?: string): Promise<PalaceWalkResult & {
|
|
60
|
+
fencedText: string;
|
|
61
|
+
}>;
|
|
44
62
|
lint(fix?: boolean): Promise<PalaceLintResult>;
|
|
45
|
-
palaceSearch(query: string, room?: string): Promise<PalaceSearchResult
|
|
63
|
+
palaceSearch(query: string, room?: string): Promise<PalaceSearchResult & {
|
|
64
|
+
fencedText: string;
|
|
65
|
+
}>;
|
|
46
66
|
awarenessUpdate(insights: AwarenessUpdateInput["insights"], opts?: {
|
|
47
67
|
trajectory?: string;
|
|
48
68
|
blindSpots?: string[];
|
|
@@ -53,7 +73,9 @@ export declare class AgentRecall {
|
|
|
53
73
|
recallInsight(context: string, opts?: {
|
|
54
74
|
limit?: number;
|
|
55
75
|
includeAwareness?: boolean;
|
|
56
|
-
}): Promise<RecallInsightResult
|
|
76
|
+
}): Promise<RecallInsightResult & {
|
|
77
|
+
fencedText: string;
|
|
78
|
+
}>;
|
|
57
79
|
alignmentCheck(input: Omit<AlignmentCheckInput, "project"> & {
|
|
58
80
|
project?: string;
|
|
59
81
|
}): Promise<{
|
|
@@ -76,7 +98,9 @@ export declare class AgentRecall {
|
|
|
76
98
|
focus?: string;
|
|
77
99
|
includePalace?: boolean;
|
|
78
100
|
consolidate?: boolean;
|
|
79
|
-
}): Promise<ContextSynthesizeResult
|
|
101
|
+
}): Promise<ContextSynthesizeResult & {
|
|
102
|
+
fencedText: string;
|
|
103
|
+
}>;
|
|
80
104
|
knowledgeWrite(input: Omit<KnowledgeWriteInput, "project"> & {
|
|
81
105
|
project?: string;
|
|
82
106
|
}): Promise<{
|
|
@@ -94,34 +118,50 @@ export declare class AgentRecall {
|
|
|
94
118
|
knowledgeRead(opts?: Omit<KnowledgeReadInput, never>): Promise<string>;
|
|
95
119
|
sessionStart(opts?: {
|
|
96
120
|
context?: string;
|
|
97
|
-
}): Promise<SessionStartResult
|
|
121
|
+
}): Promise<SessionStartResult & {
|
|
122
|
+
fencedText: string;
|
|
123
|
+
}>;
|
|
98
124
|
remember(content: string, opts?: {
|
|
99
125
|
context?: string;
|
|
100
126
|
}): Promise<SmartRememberResult>;
|
|
127
|
+
/**
|
|
128
|
+
* P1 fence (TOW2-388) — this is the EXACT surface this package's own
|
|
129
|
+
* README demonstrates as `const ctx = await memory.recall(...)`, i.e.
|
|
130
|
+
* "feeding results straight into agent context". Result keeps its
|
|
131
|
+
* original typed shape; use `ctx.fencedText` for the prompt-safe string.
|
|
132
|
+
*/
|
|
101
133
|
recall(query: string, opts?: Omit<SmartRecallInput, "query" | "project"> & {
|
|
102
134
|
project?: string;
|
|
103
|
-
}): Promise<SmartRecallResult
|
|
135
|
+
}): Promise<SmartRecallResult & {
|
|
136
|
+
fencedText: string;
|
|
137
|
+
}>;
|
|
104
138
|
sessionEnd(summary: string, opts?: Omit<SessionEndInput, "summary" | "project"> & {
|
|
105
139
|
project?: string;
|
|
106
140
|
}): Promise<SessionEndResult>;
|
|
107
141
|
check(input: Omit<CheckInput, "project"> & {
|
|
108
142
|
project?: string;
|
|
109
|
-
}): Promise<CheckResult
|
|
143
|
+
}): Promise<CheckResult & {
|
|
144
|
+
fencedText: string;
|
|
145
|
+
}>;
|
|
110
146
|
digestStore(input: Omit<DigestStoreInput, "project"> & {
|
|
111
147
|
project?: string;
|
|
112
148
|
}): Promise<DigestStoreResult>;
|
|
113
149
|
digestRecall(query: string, opts?: Omit<DigestRecallInput, "query" | "project"> & {
|
|
114
150
|
project?: string;
|
|
115
|
-
}): Promise<DigestRecallResult
|
|
151
|
+
}): Promise<DigestRecallResult & {
|
|
152
|
+
fencedText: string;
|
|
153
|
+
}>;
|
|
116
154
|
digestRead(digestId: string, opts?: {
|
|
117
155
|
project?: string;
|
|
118
|
-
}): Promise<DigestReadResult
|
|
156
|
+
}): Promise<DigestReadResult & {
|
|
157
|
+
fencedText: string;
|
|
158
|
+
}>;
|
|
119
159
|
digestInvalidate(project: string, digestId: string, reason?: string, global?: boolean): void;
|
|
120
160
|
get palace(): {
|
|
121
161
|
ensureInitialized: () => void;
|
|
122
|
-
createRoom: (slug: string, name: string, description: string, tags?: string[]) =>
|
|
123
|
-
getRoom: (slug: string) =>
|
|
124
|
-
listRooms: () =>
|
|
162
|
+
createRoom: (slug: string, name: string, description: string, tags?: string[]) => RoomMeta;
|
|
163
|
+
getRoom: (slug: string) => RoomMeta | null;
|
|
164
|
+
listRooms: () => RoomMeta[];
|
|
125
165
|
roomExists: (slug: string) => boolean;
|
|
126
166
|
};
|
|
127
167
|
get graph(): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-recall.d.ts","sourceRoot":"","sources":["../src/agent-recall.ts"],"names":[],"mappings":"AAAA,OAAO,
|
|
1
|
+
{"version":3,"file":"agent-recall.d.ts","sourceRoot":"","sources":["../src/agent-recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,UAAU,EAAE,KAAK,SAAS,EAC/B,KAAK,cAAc,EAEN,KAAK,gBAAgB,EAAE,KAAK,iBAAiB,EAC5C,KAAK,iBAAiB,EAAE,KAAK,kBAAkB,EAC3B,KAAK,gBAAgB,EAG1C,KAAK,iBAAiB,EACrB,KAAK,kBAAkB,EACrB,KAAK,oBAAoB,EAC5B,KAAK,iBAAiB,EACpB,KAAK,mBAAmB,EACzB,KAAK,kBAAkB,EACnB,KAAK,sBAAsB,EAC7B,KAAK,oBAAoB,EAC1B,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AAG;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,kBAAkB,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAI7J,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE;QAAE,OAAO,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,gBAAgB,GAAG;QAAE,UAAU,EAAE,MAAM,CAAA;KAAE,CAAC;IAInH,gBAAgB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,OAAO,GAAG,IAAI;IAO5F,IAAI,MAAM;;2BASa,MAAM,QAAQ,MAAM,eAAe,MAAM,SAAS,MAAM,EAAE;wBAK7D,MAAM;;2BAGH,MAAM;MAE5B;IAED,IAAI,KAAK;;;;MAKR;CACF"}
|
package/dist/agent-recall.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { setRoot,
|
|
1
|
+
import { setRoot, fenceMemory,
|
|
2
2
|
// Digest
|
|
3
3
|
digestStore, digestRecall, digestRead, markStale as digestMarkStale,
|
|
4
4
|
// Tool-logic functions
|
|
@@ -8,6 +8,57 @@ journalRead, journalWrite, journalCapture, journalList, journalSearch, journalSt
|
|
|
8
8
|
sessionStart, smartRemember, smartRecall, sessionEnd, check,
|
|
9
9
|
// Palace low-level
|
|
10
10
|
ensurePalaceInitialized, createRoom, getRoomMeta, listRooms, roomExists, readGraph, addEdge, getConnectedRooms, } from "agent-recall-core";
|
|
11
|
+
// ---------------------------------------------------------------------------
|
|
12
|
+
// P1 fence (TOW2-388, completeness-pass CRITICAL find) — SDK boundary.
|
|
13
|
+
//
|
|
14
|
+
// The SDK's methods are thin delegates to the SAME core tools-logic functions
|
|
15
|
+
// the MCP tools and CLI commands wrap (see this file's original header
|
|
16
|
+
// comment) — every method already classified "fenced" at its MCP or CLI
|
|
17
|
+
// entry point (packages/mcp-server/src/tools/*.ts, packages/cli/src/index.ts)
|
|
18
|
+
// carries the identical risk here: the SDK README's own usage example
|
|
19
|
+
// (`const ctx = await memory.recall("rate limiting")`) shows a caller taking
|
|
20
|
+
// the return value and using it as `ctx` — exactly "feeding results straight
|
|
21
|
+
// into agent context".
|
|
22
|
+
//
|
|
23
|
+
// Unlike CLI stdout / MCP tool_result text (both pre-rendered strings), the
|
|
24
|
+
// SDK's contract IS the typed return object — a consuming app may read
|
|
25
|
+
// individual fields programmatically, so fencing cannot rewrite every
|
|
26
|
+
// leaf string in place without either (a) breaking the O(1)-per-block
|
|
27
|
+
// design fenceMemory was built to guarantee (see content-guard.ts's own
|
|
28
|
+
// "token cost is O(1) per block" test) if applied per-field, or (b)
|
|
29
|
+
// changing the return TYPE from an object to a bare string if the whole
|
|
30
|
+
// object were JSON.stringify+fenced in place (the approach used by
|
|
31
|
+
// MCP tools with no per-field formatter, e.g. smart_recall/check) — a real
|
|
32
|
+
// breaking API change for a published package, out of scope for a
|
|
33
|
+
// no-version-bump fence-completeness pass.
|
|
34
|
+
//
|
|
35
|
+
// Fix: every "fenced" SDK method returns its ORIGINAL typed result UNCHANGED
|
|
36
|
+
// plus one ADDITIVE `fencedText` field — `fenceMemory(JSON.stringify(result))`
|
|
37
|
+
// — the exact same whole-blob strategy already proven at the MCP layer,
|
|
38
|
+
// computed ONCE per call (still O(1) per block), and purely additive so no
|
|
39
|
+
// existing field/type a consumer already reads is altered. `ctx.fencedText`
|
|
40
|
+
// is what a caller should hand to an LLM prompt; the original typed fields
|
|
41
|
+
// remain available for programmatic use exactly as before.
|
|
42
|
+
function withFenced(result) {
|
|
43
|
+
return { ...result, fencedText: fenceMemory(JSON.stringify(result)) };
|
|
44
|
+
}
|
|
45
|
+
/** Direct-string surfaces (readAwareness/knowledgeRead) — no object to preserve, fence in place. */
|
|
46
|
+
function fenceString(s) {
|
|
47
|
+
return fenceMemory(s);
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* RoomMeta.description is free text set at room-creation time (possibly by
|
|
51
|
+
* an earlier, different session) and read back verbatim by getRoom/listRooms
|
|
52
|
+
* — same risk class and same re-triage decision as the CLI `ar rooms`
|
|
53
|
+
* command (P1 completeness-pass MEDIUM re-triage, 2026-08-19). Fenced
|
|
54
|
+
* in-place on the ONE prose field; every other RoomMeta field (slug, counts,
|
|
55
|
+
* timestamps, tags/connections — identifiers, not prose) is left untouched.
|
|
56
|
+
*/
|
|
57
|
+
function fenceRoomMeta(meta) {
|
|
58
|
+
if (!meta)
|
|
59
|
+
return meta;
|
|
60
|
+
return { ...meta, description: fenceMemory(meta.description) };
|
|
61
|
+
}
|
|
11
62
|
export class AgentRecall {
|
|
12
63
|
project;
|
|
13
64
|
constructor(options) {
|
|
@@ -18,81 +69,117 @@ export class AgentRecall {
|
|
|
18
69
|
}
|
|
19
70
|
// --- L1: Working Memory (Capture) ---
|
|
20
71
|
async capture(question, answer, opts) {
|
|
72
|
+
// Not fenced: write confirmation only (entry number, file path,
|
|
73
|
+
// auto-tags derived from THIS call's own question/answer) — no
|
|
74
|
+
// retrieved stored content is returned. Parity: CLI `ar capture` (N).
|
|
21
75
|
return journalCapture({ question, answer, tags: opts?.tags, palace_room: opts?.palaceRoom, project: this.project });
|
|
22
76
|
}
|
|
23
77
|
// --- L2: Episodic Memory (Journal) ---
|
|
24
78
|
async journalRead(opts) {
|
|
25
|
-
return journalRead({ date: opts?.date ?? "latest", section: opts?.section ?? "all", project: this.project });
|
|
79
|
+
return withFenced(await journalRead({ date: opts?.date ?? "latest", section: opts?.section ?? "all", project: this.project }));
|
|
26
80
|
}
|
|
27
81
|
async journalWrite(content, opts) {
|
|
82
|
+
// Not fenced: write confirmation only (file path, routing hint) — no
|
|
83
|
+
// retrieved stored content is returned. Parity: CLI `ar write` (N).
|
|
28
84
|
return journalWrite({ content, section: opts?.section, palace_room: opts?.palaceRoom, project: this.project });
|
|
29
85
|
}
|
|
30
86
|
async journalList(limit) {
|
|
31
|
-
return journalList({ project: this.project, limit: limit ?? 10 });
|
|
87
|
+
return withFenced(await journalList({ project: this.project, limit: limit ?? 10 }));
|
|
32
88
|
}
|
|
33
89
|
async journalSearch(query, opts) {
|
|
34
|
-
return journalSearch({ query, project: this.project, section: opts?.section, include_palace: opts?.includePalace });
|
|
90
|
+
return withFenced(await journalSearch({ query, project: this.project, section: opts?.section, include_palace: opts?.includePalace }));
|
|
35
91
|
}
|
|
36
92
|
async state(action, data, date) {
|
|
37
|
-
|
|
93
|
+
// Fenced conservatively regardless of action: the read path returns the
|
|
94
|
+
// raw stored SessionState verbatim (parity: CLI `ar state read`, F);
|
|
95
|
+
// the write path's confirmation shape gains a harmless additive field.
|
|
96
|
+
return withFenced(await journalState({ action, data, date: date ?? "latest", project: this.project }));
|
|
38
97
|
}
|
|
39
98
|
async coldStart() {
|
|
40
|
-
return journalColdStart({ project: this.project });
|
|
99
|
+
return withFenced(await journalColdStart({ project: this.project }));
|
|
41
100
|
}
|
|
42
101
|
async archive(olderThanDays) {
|
|
43
|
-
|
|
102
|
+
// `summaries[]` quotes the first line of each archived entry's own
|
|
103
|
+
// stored Brief section verbatim — retrieved content, not administrative
|
|
104
|
+
// counts alone (re-audited during the P1 completeness pass; the prior
|
|
105
|
+
// pass's CLI table did not carry an explicit `ar archive` row).
|
|
106
|
+
return withFenced(await journalArchive({ older_than_days: olderThanDays ?? 7, project: this.project }));
|
|
44
107
|
}
|
|
45
108
|
async rollup(opts) {
|
|
46
|
-
|
|
109
|
+
// `summariesCreated[]` is synthesizeWeek()'s output — quotes journal
|
|
110
|
+
// decisions/blockers/completed/next-step text verbatim across the
|
|
111
|
+
// rolled-up week (see packages/core/src/helpers/rollup.ts).
|
|
112
|
+
return withFenced(await journalRollup({ min_age_days: opts?.minAgeDays ?? 7, min_entries: opts?.minEntries ?? 2, dry_run: opts?.dryRun ?? false, project: this.project }));
|
|
47
113
|
}
|
|
48
114
|
async projects() {
|
|
115
|
+
// Not fenced: slugs + last-entry dates + counts — structural metadata,
|
|
116
|
+
// no prose. Parity: no CLI/MCP surface disputes this classification.
|
|
49
117
|
return journalProjects();
|
|
50
118
|
}
|
|
51
119
|
// --- L3: Memory Palace ---
|
|
52
120
|
async palaceWrite(room, content, opts) {
|
|
121
|
+
// Not fenced: write confirmation only. Parity: CLI `ar palace write` (N).
|
|
53
122
|
return palaceWrite({ room, content, topic: opts?.topic, connections: opts?.connections, importance: opts?.importance, project: this.project });
|
|
54
123
|
}
|
|
55
124
|
async palaceRead(room, topic) {
|
|
56
|
-
return palaceRead({ room, topic, project: this.project });
|
|
125
|
+
return withFenced(await palaceRead({ room, topic, project: this.project }));
|
|
57
126
|
}
|
|
58
127
|
async walk(depth, focus) {
|
|
59
|
-
return palaceWalk({ depth: depth ?? "active", focus, project: this.project });
|
|
128
|
+
return withFenced(await palaceWalk({ depth: depth ?? "active", focus, project: this.project }));
|
|
60
129
|
}
|
|
61
130
|
async lint(fix) {
|
|
131
|
+
// Not fenced: template-generated diagnostic strings ("Room 'X' has no
|
|
132
|
+
// connections") + room slugs, not retrieved prose. Parity: `ar palace lint` (N).
|
|
62
133
|
return palaceLint({ fix: fix ?? false, project: this.project });
|
|
63
134
|
}
|
|
64
135
|
async palaceSearch(query, room) {
|
|
65
|
-
return palaceSearch({ query, room, project: this.project });
|
|
136
|
+
return withFenced(await palaceSearch({ query, room, project: this.project }));
|
|
66
137
|
}
|
|
67
138
|
// --- L4: Awareness ---
|
|
68
139
|
async awarenessUpdate(insights, opts) {
|
|
140
|
+
// Not fenced: `insights_processed` echoes back THIS call's own
|
|
141
|
+
// just-submitted `insights` argument (same-turn trust, same reasoning
|
|
142
|
+
// as MCP `session_end`/`register_rule`) — not memory read back from an
|
|
143
|
+
// earlier, possibly different session.
|
|
69
144
|
return awarenessUpdate({ insights, trajectory: opts?.trajectory, blind_spots: opts?.blindSpots, identity: opts?.identity });
|
|
70
145
|
}
|
|
71
146
|
readAwareness() {
|
|
72
|
-
|
|
147
|
+
// Fenced: parity with `ar awareness read` (CLI) and the
|
|
148
|
+
// agent-recall://awareness MCP resource, both already fenced.
|
|
149
|
+
return fenceString(readAwareness());
|
|
73
150
|
}
|
|
74
151
|
readAwarenessState() {
|
|
152
|
+
// Not fenced: established `--json`/structured-resource precedent.
|
|
153
|
+
// Parity: `ar awareness read --json` and the agent-recall://awareness/state
|
|
154
|
+
// MCP resource, both deliberately left as raw machine-parseable contracts.
|
|
75
155
|
return readAwarenessState();
|
|
76
156
|
}
|
|
77
157
|
// --- L5: Insight Index ---
|
|
78
158
|
async recallInsight(context, opts) {
|
|
79
|
-
return recallInsight({ context, limit: opts?.limit ?? 5, include_awareness: opts?.includeAwareness ?? true });
|
|
159
|
+
return withFenced(await recallInsight({ context, limit: opts?.limit ?? 5, include_awareness: opts?.includeAwareness ?? true }));
|
|
80
160
|
}
|
|
81
161
|
// --- Alignment & Knowledge ---
|
|
82
162
|
async alignmentCheck(input) {
|
|
163
|
+
// Not fenced: `confidence`/`delta` echo THIS call's own submitted
|
|
164
|
+
// input.confidence/input.delta verbatim (see alignment-check.ts) — no
|
|
165
|
+
// stored content is read back and returned.
|
|
83
166
|
return alignmentCheck({ ...input, project: input.project ?? this.project });
|
|
84
167
|
}
|
|
85
168
|
async nudge(input) {
|
|
169
|
+
// Not fenced: `category` echoes THIS call's own input; write-only,
|
|
170
|
+
// no readback of stored content (see nudge.ts).
|
|
86
171
|
return nudge({ ...input, project: input.project ?? this.project });
|
|
87
172
|
}
|
|
88
173
|
async synthesize(opts) {
|
|
89
|
-
return contextSynthesize({ entries: opts?.entries ?? 5, focus: (opts?.focus ?? "full"), include_palace: opts?.includePalace ?? true, consolidate: opts?.consolidate ?? false, project: this.project });
|
|
174
|
+
return withFenced(await contextSynthesize({ entries: opts?.entries ?? 5, focus: (opts?.focus ?? "full"), include_palace: opts?.includePalace ?? true, consolidate: opts?.consolidate ?? false, project: this.project }));
|
|
90
175
|
}
|
|
91
176
|
async knowledgeWrite(input) {
|
|
177
|
+
// Not fenced: write confirmation only. Parity: CLI `ar knowledge write` (N).
|
|
92
178
|
return knowledgeWrite({ ...input, project: input.project ?? this.project });
|
|
93
179
|
}
|
|
94
180
|
async knowledgeRead(opts) {
|
|
95
|
-
|
|
181
|
+
// Fenced: parity with `ar knowledge read` (CLI, F) — raw Q&A content.
|
|
182
|
+
return fenceString(await knowledgeRead(opts ?? {}));
|
|
96
183
|
}
|
|
97
184
|
// --- Modern composite API (v3.4) ---
|
|
98
185
|
// These wrap the SAME core functions the MCP tools of the same name
|
|
@@ -100,45 +187,75 @@ export class AgentRecall {
|
|
|
100
187
|
// see packages/mcp-server/src/tools/{session-start,remember,recall,
|
|
101
188
|
// session-end,check}.ts for the 1:1 mapping this mirrors.
|
|
102
189
|
async sessionStart(opts) {
|
|
103
|
-
return sessionStart({ project: this.project, context: opts?.context });
|
|
190
|
+
return withFenced(await sessionStart({ project: this.project, context: opts?.context }));
|
|
104
191
|
}
|
|
105
192
|
async remember(content, opts) {
|
|
193
|
+
// Not fenced: write confirmation only (dest path, retrieval hint).
|
|
194
|
+
// Parity: MCP `remember` (N).
|
|
106
195
|
return smartRemember({ content, context: opts?.context, project: this.project });
|
|
107
196
|
}
|
|
197
|
+
/**
|
|
198
|
+
* P1 fence (TOW2-388) — this is the EXACT surface this package's own
|
|
199
|
+
* README demonstrates as `const ctx = await memory.recall(...)`, i.e.
|
|
200
|
+
* "feeding results straight into agent context". Result keeps its
|
|
201
|
+
* original typed shape; use `ctx.fencedText` for the prompt-safe string.
|
|
202
|
+
*/
|
|
108
203
|
async recall(query, opts) {
|
|
109
|
-
return smartRecall({ query, project: opts?.project ?? this.project, ...opts });
|
|
204
|
+
return withFenced(await smartRecall({ query, project: opts?.project ?? this.project, ...opts }));
|
|
110
205
|
}
|
|
111
206
|
async sessionEnd(summary, opts) {
|
|
207
|
+
// Not fenced: `card`/quality-warnings echo THIS session's own
|
|
208
|
+
// just-submitted summary/insights (same-turn trust) + single-token
|
|
209
|
+
// keyword merge-suggestions (no coherent injection payload possible).
|
|
210
|
+
// Parity: MCP `session_end` (N). Note: sessionEnd() may additionally
|
|
211
|
+
// trigger writeHandoff() — that surface is ALREADY fenced independently
|
|
212
|
+
// at generation time in packages/core/src/helpers/handoff.ts (one of
|
|
213
|
+
// the 13 pre-existing fenced surfaces), so no separate obligation here.
|
|
112
214
|
return sessionEnd({ summary, project: opts?.project ?? this.project, ...opts });
|
|
113
215
|
}
|
|
114
216
|
async check(input) {
|
|
115
|
-
return check({ ...input, project: input.project ?? this.project });
|
|
217
|
+
return withFenced(await check({ ...input, project: input.project ?? this.project }));
|
|
116
218
|
}
|
|
117
219
|
// --- Digest (context cache) ---
|
|
118
220
|
async digestStore(input) {
|
|
221
|
+
// Not fenced: echoes this-turn's own submission / success flag only.
|
|
222
|
+
// Parity: MCP `digest` store/invalidate actions (N).
|
|
119
223
|
return digestStore({ ...input, project: input.project ?? this.project });
|
|
120
224
|
}
|
|
121
225
|
async digestRecall(query, opts) {
|
|
122
|
-
return digestRecall({ query, project: opts?.project ?? this.project, ...opts });
|
|
226
|
+
return withFenced(await digestRecall({ query, project: opts?.project ?? this.project, ...opts }));
|
|
123
227
|
}
|
|
124
228
|
async digestRead(digestId, opts) {
|
|
125
|
-
return digestRead({ digest_id: digestId, project: opts?.project ?? this.project });
|
|
229
|
+
return withFenced(await digestRead({ digest_id: digestId, project: opts?.project ?? this.project }));
|
|
126
230
|
}
|
|
127
231
|
digestInvalidate(project, digestId, reason, global) {
|
|
232
|
+
// Not fenced: void return, nothing to fence.
|
|
128
233
|
digestMarkStale(project, digestId, reason ?? "manually invalidated", global);
|
|
129
234
|
}
|
|
130
235
|
// --- Low-level access ---
|
|
131
236
|
get palace() {
|
|
132
237
|
const project = this.project === "auto" ? "default" : this.project;
|
|
133
238
|
return {
|
|
239
|
+
// Not fenced: void return.
|
|
134
240
|
ensureInitialized: () => ensurePalaceInitialized(project),
|
|
241
|
+
// Not fenced: echoes back THIS call's own just-submitted
|
|
242
|
+
// name/description/tags (same-turn trust) — the RoomMeta returned is
|
|
243
|
+
// the one just created from this call's own arguments, not memory
|
|
244
|
+
// read back from an earlier session.
|
|
135
245
|
createRoom: (slug, name, description, tags) => createRoom(project, slug, name, description, tags),
|
|
136
|
-
|
|
137
|
-
|
|
246
|
+
// Fenced: `.description` is free text set at room-creation time,
|
|
247
|
+
// possibly by an earlier session, read back verbatim — same
|
|
248
|
+
// completeness-pass MEDIUM re-triage decision as CLI `ar rooms`.
|
|
249
|
+
getRoom: (slug) => fenceRoomMeta(getRoomMeta(project, slug)),
|
|
250
|
+
listRooms: () => listRooms(project).map((r) => fenceRoomMeta(r)),
|
|
251
|
+
// Not fenced: boolean, no content.
|
|
138
252
|
roomExists: (slug) => roomExists(project, slug),
|
|
139
253
|
};
|
|
140
254
|
}
|
|
141
255
|
get graph() {
|
|
256
|
+
// Not fenced: edges carry room slugs + a fixed edge-type token
|
|
257
|
+
// ("references") + numeric weight/timestamp — structural identifiers,
|
|
258
|
+
// no free-form prose. getConnectedRooms returns slugs only.
|
|
142
259
|
return { readGraph, addEdge, getConnectedRooms };
|
|
143
260
|
}
|
|
144
261
|
}
|
package/dist/agent-recall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"agent-recall.js","sourceRoot":"","sources":["../src/agent-recall.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO;
|
|
1
|
+
{"version":3,"file":"agent-recall.js","sourceRoot":"","sources":["../src/agent-recall.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,OAAO,EACP,WAAW;AAGX,SAAS;AACT,WAAW,EACX,YAAY,EACZ,UAAU,EACV,SAAS,IAAI,eAAe;AAC5B,uBAAuB;AACvB,WAAW,EACX,YAAY,EACZ,cAAc,EACd,WAAW,EACX,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,cAAc,EACd,aAAa,EACb,eAAe,EACf,WAAW,EACX,UAAU,EACV,UAAU,EACV,UAAU,EACV,YAAY,EACZ,eAAe,E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CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "agent-recall-sdk",
|
|
3
|
-
"version": "3.4.
|
|
3
|
+
"version": "3.4.46",
|
|
4
4
|
"description": "SDK for AgentRecall \u2014 persistent, compounding memory for AI agents",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"test": "node --test test/*.test.mjs"
|
|
21
21
|
},
|
|
22
22
|
"dependencies": {
|
|
23
|
-
"agent-recall-core": "3.4.
|
|
23
|
+
"agent-recall-core": "3.4.46"
|
|
24
24
|
},
|
|
25
25
|
"devDependencies": {
|
|
26
26
|
"typescript": "^5.7.0",
|