dsh-daoing-memory 0.1.0
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/LICENSE +21 -0
- package/README.md +91 -0
- package/README.zh-CN.md +91 -0
- package/cordis.patch.yml +22 -0
- package/lib/client.js +10339 -0
- package/lib/client.js.map +1 -0
- package/lib/index.js +3138 -0
- package/lib/invariant.js +33 -0
- package/lib/tools.js +1472 -0
- package/lib/typert.host.d.ts +3 -0
- package/lib/typert.host.js +4058 -0
- package/lib/typert.remote-client.d.ts +149 -0
- package/lib/typert.remote-client.d.ts.map +1 -0
- package/lib/typert.remote-client.js +3167 -0
- package/lib/types/client/ExperiencePage.d.ts +15 -0
- package/lib/types/client/ExperiencePage.d.ts.map +1 -0
- package/lib/types/client/ExperiencePage.js +117 -0
- package/lib/types/client/ExperiencePage.js.map +1 -0
- package/lib/types/client/FactDiaryPage.d.ts +17 -0
- package/lib/types/client/FactDiaryPage.d.ts.map +1 -0
- package/lib/types/client/FactDiaryPage.js +155 -0
- package/lib/types/client/FactDiaryPage.js.map +1 -0
- package/lib/types/client/HumanOpsPage.d.ts +16 -0
- package/lib/types/client/HumanOpsPage.d.ts.map +1 -0
- package/lib/types/client/HumanOpsPage.js +208 -0
- package/lib/types/client/HumanOpsPage.js.map +1 -0
- package/lib/types/client/LedgerPage.d.ts +13 -0
- package/lib/types/client/LedgerPage.d.ts.map +1 -0
- package/lib/types/client/LedgerPage.js +113 -0
- package/lib/types/client/LedgerPage.js.map +1 -0
- package/lib/types/client/MemoryNavSection.d.ts +20 -0
- package/lib/types/client/MemoryNavSection.d.ts.map +1 -0
- package/lib/types/client/MemoryNavSection.js +23 -0
- package/lib/types/client/MemoryNavSection.js.map +1 -0
- package/lib/types/client/Workbench.d.ts +23 -0
- package/lib/types/client/Workbench.d.ts.map +1 -0
- package/lib/types/client/Workbench.js +140 -0
- package/lib/types/client/Workbench.js.map +1 -0
- package/lib/types/client/actions.d.ts +165 -0
- package/lib/types/client/actions.d.ts.map +1 -0
- package/lib/types/client/actions.js +51 -0
- package/lib/types/client/actions.js.map +1 -0
- package/lib/types/client/index.d.ts +24 -0
- package/lib/types/client/index.d.ts.map +1 -0
- package/lib/types/client/index.js +103 -0
- package/lib/types/client/index.js.map +1 -0
- package/lib/types/client/navStore.d.ts +45 -0
- package/lib/types/client/navStore.d.ts.map +1 -0
- package/lib/types/client/navStore.js +36 -0
- package/lib/types/client/navStore.js.map +1 -0
- package/lib/types/core.d.ts +195 -0
- package/lib/types/core.d.ts.map +1 -0
- package/lib/types/core.js +1304 -0
- package/lib/types/core.js.map +1 -0
- package/lib/types/index.d.ts +71 -0
- package/lib/types/index.d.ts.map +1 -0
- package/lib/types/index.js +97 -0
- package/lib/types/index.js.map +1 -0
- package/lib/types/invariant.d.ts +21 -0
- package/lib/types/invariant.d.ts.map +1 -0
- package/lib/types/invariant.js +33 -0
- package/lib/types/invariant.js.map +1 -0
- package/lib/types/service.d.ts +130 -0
- package/lib/types/service.d.ts.map +1 -0
- package/lib/types/service.js +417 -0
- package/lib/types/service.js.map +1 -0
- package/lib/types/store.d.ts +244 -0
- package/lib/types/store.d.ts.map +1 -0
- package/lib/types/store.js +864 -0
- package/lib/types/store.js.map +1 -0
- package/lib/types/tools.d.ts +25 -0
- package/lib/types/tools.d.ts.map +1 -0
- package/lib/types/tools.js +1144 -0
- package/lib/types/tools.js.map +1 -0
- package/lib/types/types.d.ts +836 -0
- package/lib/types/types.d.ts.map +1 -0
- package/lib/types/types.js +8 -0
- package/lib/types/types.js.map +1 -0
- package/package.json +106 -0
- package/skill/memory-extraction.md +62 -0
|
@@ -0,0 +1,4058 @@
|
|
|
1
|
+
/* Generated by @deepseek-ai/dsh-typert-generator from FaceModel — do not edit. */
|
|
2
|
+
import { z } from 'zod'
|
|
3
|
+
|
|
4
|
+
const _deepseek_ai_dsh_memory_memory_appendDiary_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
5
|
+
const _deepseek_ai_dsh_memory_memory_appendDiary_parameter_1$schema = z.object({
|
|
6
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
7
|
+
'content': z.string(),
|
|
8
|
+
'sessionRef': z.string().optional(),
|
|
9
|
+
'tags': z.array(z.string()).optional(),
|
|
10
|
+
})
|
|
11
|
+
const _deepseek_ai_dsh_memory_memory_appendDiary_result$schema = z.object({
|
|
12
|
+
'entry': z.object({
|
|
13
|
+
'id': z.string(),
|
|
14
|
+
'ts': z.number(),
|
|
15
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
16
|
+
'content': z.string(),
|
|
17
|
+
'sessionRef': z.string().optional(),
|
|
18
|
+
'tags': z.array(z.string()),
|
|
19
|
+
'extracted': z.boolean(),
|
|
20
|
+
}),
|
|
21
|
+
'extractionDue': z.boolean(),
|
|
22
|
+
'pendingDiary': z.array(z.object({
|
|
23
|
+
'id': z.string(),
|
|
24
|
+
'ts': z.number(),
|
|
25
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
26
|
+
'content': z.string(),
|
|
27
|
+
'sessionRef': z.string().optional(),
|
|
28
|
+
'tags': z.array(z.string()),
|
|
29
|
+
'extracted': z.boolean(),
|
|
30
|
+
})).optional(),
|
|
31
|
+
})
|
|
32
|
+
const _deepseek_ai_dsh_memory_memory_consolidate_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
33
|
+
const _deepseek_ai_dsh_memory_memory_consolidate_parameter_1$schema = z.object({
|
|
34
|
+
'merges': z.array(z.object({
|
|
35
|
+
'family': z.string(),
|
|
36
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
37
|
+
'gist': z.string(),
|
|
38
|
+
'situation': z.array(z.string()),
|
|
39
|
+
'path': z.array(z.string()),
|
|
40
|
+
'reasoning': z.string(),
|
|
41
|
+
'limits': z.array(z.string()),
|
|
42
|
+
'sourceIds': z.array(z.string()),
|
|
43
|
+
'note': z.string().optional(),
|
|
44
|
+
})),
|
|
45
|
+
'note': z.string().optional(),
|
|
46
|
+
})
|
|
47
|
+
const _deepseek_ai_dsh_memory_memory_consolidate_result$schema = z.object({
|
|
48
|
+
'consolidated': z.number(),
|
|
49
|
+
'archived': z.number(),
|
|
50
|
+
'skipped': z.array(z.object({
|
|
51
|
+
'sourceIds': z.array(z.string()),
|
|
52
|
+
'reason': z.string(),
|
|
53
|
+
})),
|
|
54
|
+
})
|
|
55
|
+
const _deepseek_ai_dsh_memory_memory_consolidationDue_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
56
|
+
const _deepseek_ai_dsh_memory_memory_consolidationDue_result$schema = z.object({
|
|
57
|
+
'due': z.boolean(),
|
|
58
|
+
'lastTs': z.number(),
|
|
59
|
+
'newSince': z.number(),
|
|
60
|
+
'hoursSince': z.number(),
|
|
61
|
+
})
|
|
62
|
+
const _deepseek_ai_dsh_memory_memory_exportLibrary_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
63
|
+
const _deepseek_ai_dsh_memory_memory_exportLibrary_result$schema = z.object({
|
|
64
|
+
'exportedAt': z.number(),
|
|
65
|
+
'schemaVersion': z.number(),
|
|
66
|
+
'experiences': z.array(z.object({
|
|
67
|
+
'id': z.string(),
|
|
68
|
+
'revision': z.number(),
|
|
69
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
70
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
71
|
+
'family': z.string(),
|
|
72
|
+
'gist': z.string(),
|
|
73
|
+
'situation': z.array(z.string()),
|
|
74
|
+
'path': z.array(z.object({
|
|
75
|
+
'order': z.number(),
|
|
76
|
+
'action': z.string(),
|
|
77
|
+
})),
|
|
78
|
+
'reasoning': z.string(),
|
|
79
|
+
'limits': z.array(z.string()),
|
|
80
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
81
|
+
'alpha': z.number(),
|
|
82
|
+
'beta': z.number(),
|
|
83
|
+
'samples': z.number(),
|
|
84
|
+
'trust': z.number(),
|
|
85
|
+
'weightedTrust': z.number(),
|
|
86
|
+
'lastVerifiedAt': z.number().optional(),
|
|
87
|
+
'pinned': z.boolean(),
|
|
88
|
+
'tokensSaved': z.number(),
|
|
89
|
+
'tokensSpent': z.number(),
|
|
90
|
+
'parentRevision': z.number().optional(),
|
|
91
|
+
'failureReason': z.string().optional(),
|
|
92
|
+
'evidence': z.object({
|
|
93
|
+
'traceRef': z.string().optional(),
|
|
94
|
+
'sessionRef': z.string().optional(),
|
|
95
|
+
'note': z.string().optional(),
|
|
96
|
+
}).optional(),
|
|
97
|
+
'challengeReason': z.string().optional(),
|
|
98
|
+
'context': z.string(),
|
|
99
|
+
'verifiedCount': z.number(),
|
|
100
|
+
'rejectCount': z.number(),
|
|
101
|
+
'globalFlag': z.boolean(),
|
|
102
|
+
'createdAt': z.number(),
|
|
103
|
+
'updatedAt': z.number(),
|
|
104
|
+
})),
|
|
105
|
+
'reports': z.array(z.object({
|
|
106
|
+
'id': z.string(),
|
|
107
|
+
'experienceId': z.string(),
|
|
108
|
+
'revision': z.number(),
|
|
109
|
+
'outcome': z.union([z.literal("success"), z.literal("fail")]),
|
|
110
|
+
'attribution': z.union([z.literal("experience"), z.literal("environment"), z.literal("unrelated"), z.literal("unknown")]),
|
|
111
|
+
'counted': z.union([z.literal("alpha"), z.literal("beta"), z.literal("none")]),
|
|
112
|
+
'evidence': z.object({
|
|
113
|
+
'traceRef': z.string().optional(),
|
|
114
|
+
'sessionRef': z.string().optional(),
|
|
115
|
+
'note': z.string().optional(),
|
|
116
|
+
}).optional(),
|
|
117
|
+
'dedupeKey': z.string().optional(),
|
|
118
|
+
'ts': z.number(),
|
|
119
|
+
})),
|
|
120
|
+
'diary': z.array(z.object({
|
|
121
|
+
'id': z.string(),
|
|
122
|
+
'ts': z.number(),
|
|
123
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
124
|
+
'content': z.string(),
|
|
125
|
+
'sessionRef': z.string().optional(),
|
|
126
|
+
'tags': z.array(z.string()),
|
|
127
|
+
'extracted': z.boolean(),
|
|
128
|
+
})),
|
|
129
|
+
'facts': z.array(z.object({
|
|
130
|
+
'id': z.string(),
|
|
131
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
132
|
+
'factKey': z.string(),
|
|
133
|
+
'value': z.string(),
|
|
134
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
135
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
136
|
+
'corroboration': z.number(),
|
|
137
|
+
'validFrom': z.number(),
|
|
138
|
+
'validTo': z.number().optional(),
|
|
139
|
+
'recordedAt': z.number(),
|
|
140
|
+
'supersededBy': z.string().optional(),
|
|
141
|
+
'locked': z.boolean(),
|
|
142
|
+
'deleted': z.boolean(),
|
|
143
|
+
'conflictPending': z.boolean(),
|
|
144
|
+
})),
|
|
145
|
+
'extractions': z.array(z.object({
|
|
146
|
+
'id': z.string(),
|
|
147
|
+
'ts': z.number(),
|
|
148
|
+
'trigger': z.union([z.literal("cadence"), z.literal("manual")]),
|
|
149
|
+
'summary': z.string(),
|
|
150
|
+
'producedFactIds': z.array(z.string()),
|
|
151
|
+
'diaryCount': z.number(),
|
|
152
|
+
})),
|
|
153
|
+
'recalls': z.array(z.object({
|
|
154
|
+
'id': z.string(),
|
|
155
|
+
'ts': z.number(),
|
|
156
|
+
'situation': z.string(),
|
|
157
|
+
'injectedIds': z.array(z.string()),
|
|
158
|
+
'none': z.boolean(),
|
|
159
|
+
})),
|
|
160
|
+
'ledger': z.array(z.object({
|
|
161
|
+
'seq': z.number(),
|
|
162
|
+
'ts': z.number(),
|
|
163
|
+
'op': z.string(),
|
|
164
|
+
'objectType': z.union([z.literal("experience"), z.literal("fact"), z.literal("diary"), z.literal("library"), z.literal("concern")]),
|
|
165
|
+
'objectId': z.string(),
|
|
166
|
+
'actor': z.string(),
|
|
167
|
+
'reason': z.string().optional(),
|
|
168
|
+
'payload': z.string(),
|
|
169
|
+
'prevHash': z.string(),
|
|
170
|
+
'hash': z.string(),
|
|
171
|
+
})),
|
|
172
|
+
})
|
|
173
|
+
const _deepseek_ai_dsh_memory_memory_extract_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
174
|
+
const _deepseek_ai_dsh_memory_memory_extract_parameter_1$schema = z.object({
|
|
175
|
+
'proposals': z.array(z.object({
|
|
176
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
177
|
+
'factKey': z.string(),
|
|
178
|
+
'value': z.string(),
|
|
179
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
180
|
+
'note': z.string().optional(),
|
|
181
|
+
})),
|
|
182
|
+
'concerns': z.array(z.object({
|
|
183
|
+
'action': z.union([z.literal("new"), z.literal("mention"), z.literal("status")]),
|
|
184
|
+
'title': z.string().optional(),
|
|
185
|
+
'background': z.string().optional(),
|
|
186
|
+
'kind': z.union([z.literal("other"), z.literal("thinking"), z.literal("todo"), z.literal("idea"), z.literal("question"), z.literal("decision"), z.literal("commitment")]).optional(),
|
|
187
|
+
'status': z.union([z.literal("paused"), z.literal("ongoing"), z.literal("concluded"), z.literal("recurring")]).optional(),
|
|
188
|
+
'concernId': z.string().optional(),
|
|
189
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
190
|
+
'context': z.string().optional(),
|
|
191
|
+
})).optional(),
|
|
192
|
+
'summary': z.string(),
|
|
193
|
+
})
|
|
194
|
+
const _deepseek_ai_dsh_memory_memory_extract_result$schema = z.object({
|
|
195
|
+
'applied': z.array(z.object({
|
|
196
|
+
'id': z.string(),
|
|
197
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
198
|
+
'factKey': z.string(),
|
|
199
|
+
'value': z.string(),
|
|
200
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
201
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
202
|
+
'corroboration': z.number(),
|
|
203
|
+
'validFrom': z.number(),
|
|
204
|
+
'validTo': z.number().optional(),
|
|
205
|
+
'recordedAt': z.number(),
|
|
206
|
+
'supersededBy': z.string().optional(),
|
|
207
|
+
'locked': z.boolean(),
|
|
208
|
+
'deleted': z.boolean(),
|
|
209
|
+
'conflictPending': z.boolean(),
|
|
210
|
+
})),
|
|
211
|
+
'conflicts': z.array(z.object({
|
|
212
|
+
'id': z.string(),
|
|
213
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
214
|
+
'factKey': z.string(),
|
|
215
|
+
'value': z.string(),
|
|
216
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
217
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
218
|
+
'corroboration': z.number(),
|
|
219
|
+
'validFrom': z.number(),
|
|
220
|
+
'validTo': z.number().optional(),
|
|
221
|
+
'recordedAt': z.number(),
|
|
222
|
+
'supersededBy': z.string().optional(),
|
|
223
|
+
'locked': z.boolean(),
|
|
224
|
+
'deleted': z.boolean(),
|
|
225
|
+
'conflictPending': z.boolean(),
|
|
226
|
+
})),
|
|
227
|
+
'rejected': z.array(z.object({
|
|
228
|
+
'proposal': z.object({
|
|
229
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
230
|
+
'factKey': z.string(),
|
|
231
|
+
'value': z.string(),
|
|
232
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
233
|
+
'note': z.string().optional(),
|
|
234
|
+
}),
|
|
235
|
+
'reason': z.string(),
|
|
236
|
+
})),
|
|
237
|
+
'appliedConcerns': z.number(),
|
|
238
|
+
})
|
|
239
|
+
const _deepseek_ai_dsh_memory_memory_extractionLog_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
240
|
+
const _deepseek_ai_dsh_memory_memory_extractionLog_parameter_1$schema = z.number()
|
|
241
|
+
const _deepseek_ai_dsh_memory_memory_extractionLog_parameter_2$schema = z.number()
|
|
242
|
+
const _deepseek_ai_dsh_memory_memory_extractionLog_result$schema = z.array(z.object({
|
|
243
|
+
'id': z.string(),
|
|
244
|
+
'ts': z.number(),
|
|
245
|
+
'trigger': z.union([z.literal("cadence"), z.literal("manual")]),
|
|
246
|
+
'summary': z.string(),
|
|
247
|
+
'producedFactIds': z.array(z.string()),
|
|
248
|
+
'diaryCount': z.number(),
|
|
249
|
+
}))
|
|
250
|
+
const _deepseek_ai_dsh_memory_memory_extractionLogCount_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
251
|
+
const _deepseek_ai_dsh_memory_memory_extractionLogCount_result$schema = z.number()
|
|
252
|
+
const _deepseek_ai_dsh_memory_memory_family_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
253
|
+
const _deepseek_ai_dsh_memory_memory_family_parameter_1$schema = z.string()
|
|
254
|
+
const _deepseek_ai_dsh_memory_memory_family_result$schema = z.array(z.object({
|
|
255
|
+
'id': z.string(),
|
|
256
|
+
'revision': z.number(),
|
|
257
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
258
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
259
|
+
'family': z.string(),
|
|
260
|
+
'gist': z.string(),
|
|
261
|
+
'situation': z.array(z.string()),
|
|
262
|
+
'path': z.array(z.object({
|
|
263
|
+
'order': z.number(),
|
|
264
|
+
'action': z.string(),
|
|
265
|
+
})),
|
|
266
|
+
'reasoning': z.string(),
|
|
267
|
+
'limits': z.array(z.string()),
|
|
268
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
269
|
+
'alpha': z.number(),
|
|
270
|
+
'beta': z.number(),
|
|
271
|
+
'samples': z.number(),
|
|
272
|
+
'trust': z.number(),
|
|
273
|
+
'weightedTrust': z.number(),
|
|
274
|
+
'lastVerifiedAt': z.number().optional(),
|
|
275
|
+
'pinned': z.boolean(),
|
|
276
|
+
'tokensSaved': z.number(),
|
|
277
|
+
'tokensSpent': z.number(),
|
|
278
|
+
'parentRevision': z.number().optional(),
|
|
279
|
+
'failureReason': z.string().optional(),
|
|
280
|
+
'evidence': z.object({
|
|
281
|
+
'traceRef': z.string().optional(),
|
|
282
|
+
'sessionRef': z.string().optional(),
|
|
283
|
+
'note': z.string().optional(),
|
|
284
|
+
}).optional(),
|
|
285
|
+
'challengeReason': z.string().optional(),
|
|
286
|
+
'context': z.string(),
|
|
287
|
+
'verifiedCount': z.number(),
|
|
288
|
+
'rejectCount': z.number(),
|
|
289
|
+
'globalFlag': z.boolean(),
|
|
290
|
+
'createdAt': z.number(),
|
|
291
|
+
'updatedAt': z.number(),
|
|
292
|
+
}))
|
|
293
|
+
const _deepseek_ai_dsh_memory_memory_get_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
294
|
+
const _deepseek_ai_dsh_memory_memory_get_parameter_1$schema = z.string()
|
|
295
|
+
const _deepseek_ai_dsh_memory_memory_get_parameter_2$schema = z.union([z.undefined(), z.number()])
|
|
296
|
+
const _deepseek_ai_dsh_memory_memory_get_result$schema = z.union([z.undefined(), z.object({
|
|
297
|
+
'id': z.string(),
|
|
298
|
+
'revision': z.number(),
|
|
299
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
300
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
301
|
+
'family': z.string(),
|
|
302
|
+
'gist': z.string(),
|
|
303
|
+
'situation': z.array(z.string()),
|
|
304
|
+
'path': z.array(z.object({
|
|
305
|
+
'order': z.number(),
|
|
306
|
+
'action': z.string(),
|
|
307
|
+
})),
|
|
308
|
+
'reasoning': z.string(),
|
|
309
|
+
'limits': z.array(z.string()),
|
|
310
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
311
|
+
'alpha': z.number(),
|
|
312
|
+
'beta': z.number(),
|
|
313
|
+
'samples': z.number(),
|
|
314
|
+
'trust': z.number(),
|
|
315
|
+
'weightedTrust': z.number(),
|
|
316
|
+
'lastVerifiedAt': z.number().optional(),
|
|
317
|
+
'pinned': z.boolean(),
|
|
318
|
+
'tokensSaved': z.number(),
|
|
319
|
+
'tokensSpent': z.number(),
|
|
320
|
+
'parentRevision': z.number().optional(),
|
|
321
|
+
'failureReason': z.string().optional(),
|
|
322
|
+
'evidence': z.object({
|
|
323
|
+
'traceRef': z.string().optional(),
|
|
324
|
+
'sessionRef': z.string().optional(),
|
|
325
|
+
'note': z.string().optional(),
|
|
326
|
+
}).optional(),
|
|
327
|
+
'challengeReason': z.string().optional(),
|
|
328
|
+
'context': z.string(),
|
|
329
|
+
'verifiedCount': z.number(),
|
|
330
|
+
'rejectCount': z.number(),
|
|
331
|
+
'globalFlag': z.boolean(),
|
|
332
|
+
'createdAt': z.number(),
|
|
333
|
+
'updatedAt': z.number(),
|
|
334
|
+
})])
|
|
335
|
+
const _deepseek_ai_dsh_memory_memory_getDiaryByIds_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
336
|
+
const _deepseek_ai_dsh_memory_memory_getDiaryByIds_parameter_1$schema = z.array(z.string())
|
|
337
|
+
const _deepseek_ai_dsh_memory_memory_getDiaryByIds_result$schema = z.array(z.object({
|
|
338
|
+
'id': z.string(),
|
|
339
|
+
'ts': z.number(),
|
|
340
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
341
|
+
'content': z.string(),
|
|
342
|
+
'sessionRef': z.string().optional(),
|
|
343
|
+
'tags': z.array(z.string()),
|
|
344
|
+
'extracted': z.boolean(),
|
|
345
|
+
}))
|
|
346
|
+
const _deepseek_ai_dsh_memory_memory_humanAckDiary_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
347
|
+
const _deepseek_ai_dsh_memory_memory_humanAckDiary_parameter_1$schema = z.object({
|
|
348
|
+
'diaryId': z.string(),
|
|
349
|
+
'reason': z.string(),
|
|
350
|
+
})
|
|
351
|
+
const _deepseek_ai_dsh_memory_memory_humanAckDiary_result$schema = z.object({
|
|
352
|
+
'id': z.string(),
|
|
353
|
+
'ts': z.number(),
|
|
354
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
355
|
+
'content': z.string(),
|
|
356
|
+
'sessionRef': z.string().optional(),
|
|
357
|
+
'tags': z.array(z.string()),
|
|
358
|
+
'extracted': z.boolean(),
|
|
359
|
+
})
|
|
360
|
+
const _deepseek_ai_dsh_memory_memory_humanAddExperience_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
361
|
+
const _deepseek_ai_dsh_memory_memory_humanAddExperience_parameter_1$schema = z.object({
|
|
362
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
363
|
+
'family': z.string(),
|
|
364
|
+
'gist': z.string(),
|
|
365
|
+
'situation': z.array(z.string()),
|
|
366
|
+
'path': z.array(z.object({
|
|
367
|
+
'order': z.number(),
|
|
368
|
+
'action': z.string(),
|
|
369
|
+
})),
|
|
370
|
+
'reasoning': z.string(),
|
|
371
|
+
'limits': z.array(z.string()),
|
|
372
|
+
'failureReason': z.string().optional(),
|
|
373
|
+
'context': z.string().optional(),
|
|
374
|
+
'reason': z.string(),
|
|
375
|
+
})
|
|
376
|
+
const _deepseek_ai_dsh_memory_memory_humanAddExperience_result$schema = z.object({
|
|
377
|
+
'id': z.string(),
|
|
378
|
+
'revision': z.number(),
|
|
379
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
380
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
381
|
+
'family': z.string(),
|
|
382
|
+
'gist': z.string(),
|
|
383
|
+
'situation': z.array(z.string()),
|
|
384
|
+
'path': z.array(z.object({
|
|
385
|
+
'order': z.number(),
|
|
386
|
+
'action': z.string(),
|
|
387
|
+
})),
|
|
388
|
+
'reasoning': z.string(),
|
|
389
|
+
'limits': z.array(z.string()),
|
|
390
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
391
|
+
'alpha': z.number(),
|
|
392
|
+
'beta': z.number(),
|
|
393
|
+
'samples': z.number(),
|
|
394
|
+
'trust': z.number(),
|
|
395
|
+
'weightedTrust': z.number(),
|
|
396
|
+
'lastVerifiedAt': z.number().optional(),
|
|
397
|
+
'pinned': z.boolean(),
|
|
398
|
+
'tokensSaved': z.number(),
|
|
399
|
+
'tokensSpent': z.number(),
|
|
400
|
+
'parentRevision': z.number().optional(),
|
|
401
|
+
'failureReason': z.string().optional(),
|
|
402
|
+
'evidence': z.object({
|
|
403
|
+
'traceRef': z.string().optional(),
|
|
404
|
+
'sessionRef': z.string().optional(),
|
|
405
|
+
'note': z.string().optional(),
|
|
406
|
+
}).optional(),
|
|
407
|
+
'challengeReason': z.string().optional(),
|
|
408
|
+
'context': z.string(),
|
|
409
|
+
'verifiedCount': z.number(),
|
|
410
|
+
'rejectCount': z.number(),
|
|
411
|
+
'globalFlag': z.boolean(),
|
|
412
|
+
'createdAt': z.number(),
|
|
413
|
+
'updatedAt': z.number(),
|
|
414
|
+
})
|
|
415
|
+
const _deepseek_ai_dsh_memory_memory_humanAddFact_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
416
|
+
const _deepseek_ai_dsh_memory_memory_humanAddFact_parameter_1$schema = z.object({
|
|
417
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
418
|
+
'factKey': z.string(),
|
|
419
|
+
'value': z.string(),
|
|
420
|
+
'locked': z.boolean().optional(),
|
|
421
|
+
'reason': z.string(),
|
|
422
|
+
})
|
|
423
|
+
const _deepseek_ai_dsh_memory_memory_humanAddFact_result$schema = z.object({
|
|
424
|
+
'id': z.string(),
|
|
425
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
426
|
+
'factKey': z.string(),
|
|
427
|
+
'value': z.string(),
|
|
428
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
429
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
430
|
+
'corroboration': z.number(),
|
|
431
|
+
'validFrom': z.number(),
|
|
432
|
+
'validTo': z.number().optional(),
|
|
433
|
+
'recordedAt': z.number(),
|
|
434
|
+
'supersededBy': z.string().optional(),
|
|
435
|
+
'locked': z.boolean(),
|
|
436
|
+
'deleted': z.boolean(),
|
|
437
|
+
'conflictPending': z.boolean(),
|
|
438
|
+
})
|
|
439
|
+
const _deepseek_ai_dsh_memory_memory_humanConfirmFact_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
440
|
+
const _deepseek_ai_dsh_memory_memory_humanConfirmFact_parameter_1$schema = z.object({
|
|
441
|
+
'factId': z.string(),
|
|
442
|
+
'locked': z.boolean(),
|
|
443
|
+
'reason': z.string(),
|
|
444
|
+
})
|
|
445
|
+
const _deepseek_ai_dsh_memory_memory_humanConfirmFact_result$schema = z.object({
|
|
446
|
+
'id': z.string(),
|
|
447
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
448
|
+
'factKey': z.string(),
|
|
449
|
+
'value': z.string(),
|
|
450
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
451
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
452
|
+
'corroboration': z.number(),
|
|
453
|
+
'validFrom': z.number(),
|
|
454
|
+
'validTo': z.number().optional(),
|
|
455
|
+
'recordedAt': z.number(),
|
|
456
|
+
'supersededBy': z.string().optional(),
|
|
457
|
+
'locked': z.boolean(),
|
|
458
|
+
'deleted': z.boolean(),
|
|
459
|
+
'conflictPending': z.boolean(),
|
|
460
|
+
})
|
|
461
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteConcern_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
462
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteConcern_parameter_1$schema = z.object({
|
|
463
|
+
'id': z.string(),
|
|
464
|
+
'reason': z.string(),
|
|
465
|
+
})
|
|
466
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteConcern_result$schema = z.object({
|
|
467
|
+
'deleted': z.literal(true),
|
|
468
|
+
})
|
|
469
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteExperience_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
470
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteExperience_parameter_1$schema = z.object({
|
|
471
|
+
'id': z.string(),
|
|
472
|
+
'reason': z.string(),
|
|
473
|
+
})
|
|
474
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteExperience_result$schema = z.object({
|
|
475
|
+
'deleted': z.literal(true),
|
|
476
|
+
})
|
|
477
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteFact_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
478
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteFact_parameter_1$schema = z.object({
|
|
479
|
+
'factId': z.string(),
|
|
480
|
+
'reason': z.string(),
|
|
481
|
+
})
|
|
482
|
+
const _deepseek_ai_dsh_memory_memory_humanDeleteFact_result$schema = z.object({
|
|
483
|
+
'deleted': z.literal(true),
|
|
484
|
+
})
|
|
485
|
+
const _deepseek_ai_dsh_memory_memory_humanEditExperience_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
486
|
+
const _deepseek_ai_dsh_memory_memory_humanEditExperience_parameter_1$schema = z.object({
|
|
487
|
+
'id': z.string(),
|
|
488
|
+
'reason': z.string(),
|
|
489
|
+
'gist': z.string().optional(),
|
|
490
|
+
'situation': z.array(z.string()).optional(),
|
|
491
|
+
'path': z.array(z.object({
|
|
492
|
+
'order': z.number(),
|
|
493
|
+
'action': z.string(),
|
|
494
|
+
})).optional(),
|
|
495
|
+
'reasoning': z.string().optional(),
|
|
496
|
+
'limits': z.array(z.string()).optional(),
|
|
497
|
+
'family': z.string().optional(),
|
|
498
|
+
'context': z.string().optional(),
|
|
499
|
+
'globalFlag': z.boolean().optional(),
|
|
500
|
+
})
|
|
501
|
+
const _deepseek_ai_dsh_memory_memory_humanEditExperience_result$schema = z.object({
|
|
502
|
+
'id': z.string(),
|
|
503
|
+
'revision': z.number(),
|
|
504
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
505
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
506
|
+
'family': z.string(),
|
|
507
|
+
'gist': z.string(),
|
|
508
|
+
'situation': z.array(z.string()),
|
|
509
|
+
'path': z.array(z.object({
|
|
510
|
+
'order': z.number(),
|
|
511
|
+
'action': z.string(),
|
|
512
|
+
})),
|
|
513
|
+
'reasoning': z.string(),
|
|
514
|
+
'limits': z.array(z.string()),
|
|
515
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
516
|
+
'alpha': z.number(),
|
|
517
|
+
'beta': z.number(),
|
|
518
|
+
'samples': z.number(),
|
|
519
|
+
'trust': z.number(),
|
|
520
|
+
'weightedTrust': z.number(),
|
|
521
|
+
'lastVerifiedAt': z.number().optional(),
|
|
522
|
+
'pinned': z.boolean(),
|
|
523
|
+
'tokensSaved': z.number(),
|
|
524
|
+
'tokensSpent': z.number(),
|
|
525
|
+
'parentRevision': z.number().optional(),
|
|
526
|
+
'failureReason': z.string().optional(),
|
|
527
|
+
'evidence': z.object({
|
|
528
|
+
'traceRef': z.string().optional(),
|
|
529
|
+
'sessionRef': z.string().optional(),
|
|
530
|
+
'note': z.string().optional(),
|
|
531
|
+
}).optional(),
|
|
532
|
+
'challengeReason': z.string().optional(),
|
|
533
|
+
'context': z.string(),
|
|
534
|
+
'verifiedCount': z.number(),
|
|
535
|
+
'rejectCount': z.number(),
|
|
536
|
+
'globalFlag': z.boolean(),
|
|
537
|
+
'createdAt': z.number(),
|
|
538
|
+
'updatedAt': z.number(),
|
|
539
|
+
})
|
|
540
|
+
const _deepseek_ai_dsh_memory_memory_humanEditFact_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
541
|
+
const _deepseek_ai_dsh_memory_memory_humanEditFact_parameter_1$schema = z.object({
|
|
542
|
+
'factId': z.string(),
|
|
543
|
+
'value': z.string(),
|
|
544
|
+
'reason': z.string(),
|
|
545
|
+
})
|
|
546
|
+
const _deepseek_ai_dsh_memory_memory_humanEditFact_result$schema = z.object({
|
|
547
|
+
'id': z.string(),
|
|
548
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
549
|
+
'factKey': z.string(),
|
|
550
|
+
'value': z.string(),
|
|
551
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
552
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
553
|
+
'corroboration': z.number(),
|
|
554
|
+
'validFrom': z.number(),
|
|
555
|
+
'validTo': z.number().optional(),
|
|
556
|
+
'recordedAt': z.number(),
|
|
557
|
+
'supersededBy': z.string().optional(),
|
|
558
|
+
'locked': z.boolean(),
|
|
559
|
+
'deleted': z.boolean(),
|
|
560
|
+
'conflictPending': z.boolean(),
|
|
561
|
+
})
|
|
562
|
+
const _deepseek_ai_dsh_memory_memory_humanPin_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
563
|
+
const _deepseek_ai_dsh_memory_memory_humanPin_parameter_1$schema = z.object({
|
|
564
|
+
'id': z.string(),
|
|
565
|
+
'pinned': z.boolean(),
|
|
566
|
+
'reason': z.string(),
|
|
567
|
+
})
|
|
568
|
+
const _deepseek_ai_dsh_memory_memory_humanPin_result$schema = z.object({
|
|
569
|
+
'id': z.string(),
|
|
570
|
+
'revision': z.number(),
|
|
571
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
572
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
573
|
+
'family': z.string(),
|
|
574
|
+
'gist': z.string(),
|
|
575
|
+
'situation': z.array(z.string()),
|
|
576
|
+
'path': z.array(z.object({
|
|
577
|
+
'order': z.number(),
|
|
578
|
+
'action': z.string(),
|
|
579
|
+
})),
|
|
580
|
+
'reasoning': z.string(),
|
|
581
|
+
'limits': z.array(z.string()),
|
|
582
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
583
|
+
'alpha': z.number(),
|
|
584
|
+
'beta': z.number(),
|
|
585
|
+
'samples': z.number(),
|
|
586
|
+
'trust': z.number(),
|
|
587
|
+
'weightedTrust': z.number(),
|
|
588
|
+
'lastVerifiedAt': z.number().optional(),
|
|
589
|
+
'pinned': z.boolean(),
|
|
590
|
+
'tokensSaved': z.number(),
|
|
591
|
+
'tokensSpent': z.number(),
|
|
592
|
+
'parentRevision': z.number().optional(),
|
|
593
|
+
'failureReason': z.string().optional(),
|
|
594
|
+
'evidence': z.object({
|
|
595
|
+
'traceRef': z.string().optional(),
|
|
596
|
+
'sessionRef': z.string().optional(),
|
|
597
|
+
'note': z.string().optional(),
|
|
598
|
+
}).optional(),
|
|
599
|
+
'challengeReason': z.string().optional(),
|
|
600
|
+
'context': z.string(),
|
|
601
|
+
'verifiedCount': z.number(),
|
|
602
|
+
'rejectCount': z.number(),
|
|
603
|
+
'globalFlag': z.boolean(),
|
|
604
|
+
'createdAt': z.number(),
|
|
605
|
+
'updatedAt': z.number(),
|
|
606
|
+
})
|
|
607
|
+
const _deepseek_ai_dsh_memory_memory_humanPromote_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
608
|
+
const _deepseek_ai_dsh_memory_memory_humanPromote_parameter_1$schema = z.string()
|
|
609
|
+
const _deepseek_ai_dsh_memory_memory_humanPromote_parameter_2$schema = z.string()
|
|
610
|
+
const _deepseek_ai_dsh_memory_memory_humanPromote_result$schema = z.object({
|
|
611
|
+
'id': z.string(),
|
|
612
|
+
'revision': z.number(),
|
|
613
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
614
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
615
|
+
'family': z.string(),
|
|
616
|
+
'gist': z.string(),
|
|
617
|
+
'situation': z.array(z.string()),
|
|
618
|
+
'path': z.array(z.object({
|
|
619
|
+
'order': z.number(),
|
|
620
|
+
'action': z.string(),
|
|
621
|
+
})),
|
|
622
|
+
'reasoning': z.string(),
|
|
623
|
+
'limits': z.array(z.string()),
|
|
624
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
625
|
+
'alpha': z.number(),
|
|
626
|
+
'beta': z.number(),
|
|
627
|
+
'samples': z.number(),
|
|
628
|
+
'trust': z.number(),
|
|
629
|
+
'weightedTrust': z.number(),
|
|
630
|
+
'lastVerifiedAt': z.number().optional(),
|
|
631
|
+
'pinned': z.boolean(),
|
|
632
|
+
'tokensSaved': z.number(),
|
|
633
|
+
'tokensSpent': z.number(),
|
|
634
|
+
'parentRevision': z.number().optional(),
|
|
635
|
+
'failureReason': z.string().optional(),
|
|
636
|
+
'evidence': z.object({
|
|
637
|
+
'traceRef': z.string().optional(),
|
|
638
|
+
'sessionRef': z.string().optional(),
|
|
639
|
+
'note': z.string().optional(),
|
|
640
|
+
}).optional(),
|
|
641
|
+
'challengeReason': z.string().optional(),
|
|
642
|
+
'context': z.string(),
|
|
643
|
+
'verifiedCount': z.number(),
|
|
644
|
+
'rejectCount': z.number(),
|
|
645
|
+
'globalFlag': z.boolean(),
|
|
646
|
+
'createdAt': z.number(),
|
|
647
|
+
'updatedAt': z.number(),
|
|
648
|
+
})
|
|
649
|
+
const _deepseek_ai_dsh_memory_memory_humanReleaseCold_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
650
|
+
const _deepseek_ai_dsh_memory_memory_humanReleaseCold_parameter_1$schema = z.object({
|
|
651
|
+
'id': z.string(),
|
|
652
|
+
'reason': z.string(),
|
|
653
|
+
})
|
|
654
|
+
const _deepseek_ai_dsh_memory_memory_humanReleaseCold_result$schema = z.object({
|
|
655
|
+
'id': z.string(),
|
|
656
|
+
'revision': z.number(),
|
|
657
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
658
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
659
|
+
'family': z.string(),
|
|
660
|
+
'gist': z.string(),
|
|
661
|
+
'situation': z.array(z.string()),
|
|
662
|
+
'path': z.array(z.object({
|
|
663
|
+
'order': z.number(),
|
|
664
|
+
'action': z.string(),
|
|
665
|
+
})),
|
|
666
|
+
'reasoning': z.string(),
|
|
667
|
+
'limits': z.array(z.string()),
|
|
668
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
669
|
+
'alpha': z.number(),
|
|
670
|
+
'beta': z.number(),
|
|
671
|
+
'samples': z.number(),
|
|
672
|
+
'trust': z.number(),
|
|
673
|
+
'weightedTrust': z.number(),
|
|
674
|
+
'lastVerifiedAt': z.number().optional(),
|
|
675
|
+
'pinned': z.boolean(),
|
|
676
|
+
'tokensSaved': z.number(),
|
|
677
|
+
'tokensSpent': z.number(),
|
|
678
|
+
'parentRevision': z.number().optional(),
|
|
679
|
+
'failureReason': z.string().optional(),
|
|
680
|
+
'evidence': z.object({
|
|
681
|
+
'traceRef': z.string().optional(),
|
|
682
|
+
'sessionRef': z.string().optional(),
|
|
683
|
+
'note': z.string().optional(),
|
|
684
|
+
}).optional(),
|
|
685
|
+
'challengeReason': z.string().optional(),
|
|
686
|
+
'context': z.string(),
|
|
687
|
+
'verifiedCount': z.number(),
|
|
688
|
+
'rejectCount': z.number(),
|
|
689
|
+
'globalFlag': z.boolean(),
|
|
690
|
+
'createdAt': z.number(),
|
|
691
|
+
'updatedAt': z.number(),
|
|
692
|
+
})
|
|
693
|
+
const _deepseek_ai_dsh_memory_memory_humanRollback_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
694
|
+
const _deepseek_ai_dsh_memory_memory_humanRollback_parameter_1$schema = z.object({
|
|
695
|
+
'id': z.string(),
|
|
696
|
+
'toRevision': z.number(),
|
|
697
|
+
'reason': z.string(),
|
|
698
|
+
})
|
|
699
|
+
const _deepseek_ai_dsh_memory_memory_humanRollback_result$schema = z.object({
|
|
700
|
+
'id': z.string(),
|
|
701
|
+
'revision': z.number(),
|
|
702
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
703
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
704
|
+
'family': z.string(),
|
|
705
|
+
'gist': z.string(),
|
|
706
|
+
'situation': z.array(z.string()),
|
|
707
|
+
'path': z.array(z.object({
|
|
708
|
+
'order': z.number(),
|
|
709
|
+
'action': z.string(),
|
|
710
|
+
})),
|
|
711
|
+
'reasoning': z.string(),
|
|
712
|
+
'limits': z.array(z.string()),
|
|
713
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
714
|
+
'alpha': z.number(),
|
|
715
|
+
'beta': z.number(),
|
|
716
|
+
'samples': z.number(),
|
|
717
|
+
'trust': z.number(),
|
|
718
|
+
'weightedTrust': z.number(),
|
|
719
|
+
'lastVerifiedAt': z.number().optional(),
|
|
720
|
+
'pinned': z.boolean(),
|
|
721
|
+
'tokensSaved': z.number(),
|
|
722
|
+
'tokensSpent': z.number(),
|
|
723
|
+
'parentRevision': z.number().optional(),
|
|
724
|
+
'failureReason': z.string().optional(),
|
|
725
|
+
'evidence': z.object({
|
|
726
|
+
'traceRef': z.string().optional(),
|
|
727
|
+
'sessionRef': z.string().optional(),
|
|
728
|
+
'note': z.string().optional(),
|
|
729
|
+
}).optional(),
|
|
730
|
+
'challengeReason': z.string().optional(),
|
|
731
|
+
'context': z.string(),
|
|
732
|
+
'verifiedCount': z.number(),
|
|
733
|
+
'rejectCount': z.number(),
|
|
734
|
+
'globalFlag': z.boolean(),
|
|
735
|
+
'createdAt': z.number(),
|
|
736
|
+
'updatedAt': z.number(),
|
|
737
|
+
})
|
|
738
|
+
const _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
739
|
+
const _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_parameter_1$schema = z.object({
|
|
740
|
+
'id': z.string(),
|
|
741
|
+
'status': z.union([z.literal("paused"), z.literal("ongoing"), z.literal("concluded"), z.literal("recurring")]),
|
|
742
|
+
'reason': z.string(),
|
|
743
|
+
})
|
|
744
|
+
const _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_result$schema = z.object({
|
|
745
|
+
'ok': z.literal(true),
|
|
746
|
+
})
|
|
747
|
+
const _deepseek_ai_dsh_memory_memory_ingest_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
748
|
+
const _deepseek_ai_dsh_memory_memory_ingest_parameter_1$schema = z.object({
|
|
749
|
+
'sourceType': z.union([z.literal("conversation"), z.literal("document"), z.literal("skill"), z.literal("book"), z.literal("note"), z.literal("other")]),
|
|
750
|
+
'sourceRef': z.string(),
|
|
751
|
+
'context': z.string().optional(),
|
|
752
|
+
'experiences': z.array(z.object({
|
|
753
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
754
|
+
'family': z.string(),
|
|
755
|
+
'gist': z.string(),
|
|
756
|
+
'situation': z.array(z.string()),
|
|
757
|
+
'path': z.array(z.object({
|
|
758
|
+
'order': z.number(),
|
|
759
|
+
'action': z.string(),
|
|
760
|
+
})),
|
|
761
|
+
'reasoning': z.string(),
|
|
762
|
+
'limits': z.array(z.string()),
|
|
763
|
+
'failureReason': z.string().optional(),
|
|
764
|
+
})),
|
|
765
|
+
'note': z.string().optional(),
|
|
766
|
+
})
|
|
767
|
+
const _deepseek_ai_dsh_memory_memory_ingest_result$schema = z.object({
|
|
768
|
+
'accepted': z.array(z.object({
|
|
769
|
+
'id': z.string(),
|
|
770
|
+
'revision': z.number(),
|
|
771
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
772
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
773
|
+
'family': z.string(),
|
|
774
|
+
'gist': z.string(),
|
|
775
|
+
'situation': z.array(z.string()),
|
|
776
|
+
'path': z.array(z.object({
|
|
777
|
+
'order': z.number(),
|
|
778
|
+
'action': z.string(),
|
|
779
|
+
})),
|
|
780
|
+
'reasoning': z.string(),
|
|
781
|
+
'limits': z.array(z.string()),
|
|
782
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
783
|
+
'alpha': z.number(),
|
|
784
|
+
'beta': z.number(),
|
|
785
|
+
'samples': z.number(),
|
|
786
|
+
'trust': z.number(),
|
|
787
|
+
'weightedTrust': z.number(),
|
|
788
|
+
'lastVerifiedAt': z.number().optional(),
|
|
789
|
+
'pinned': z.boolean(),
|
|
790
|
+
'tokensSaved': z.number(),
|
|
791
|
+
'tokensSpent': z.number(),
|
|
792
|
+
'parentRevision': z.number().optional(),
|
|
793
|
+
'failureReason': z.string().optional(),
|
|
794
|
+
'evidence': z.object({
|
|
795
|
+
'traceRef': z.string().optional(),
|
|
796
|
+
'sessionRef': z.string().optional(),
|
|
797
|
+
'note': z.string().optional(),
|
|
798
|
+
}).optional(),
|
|
799
|
+
'challengeReason': z.string().optional(),
|
|
800
|
+
'context': z.string(),
|
|
801
|
+
'verifiedCount': z.number(),
|
|
802
|
+
'rejectCount': z.number(),
|
|
803
|
+
'globalFlag': z.boolean(),
|
|
804
|
+
'createdAt': z.number(),
|
|
805
|
+
'updatedAt': z.number(),
|
|
806
|
+
})),
|
|
807
|
+
'rejected': z.array(z.object({
|
|
808
|
+
'gist': z.string(),
|
|
809
|
+
'reason': z.string(),
|
|
810
|
+
})),
|
|
811
|
+
'sourcePrior': z.object({
|
|
812
|
+
'alpha': z.number(),
|
|
813
|
+
'beta': z.number(),
|
|
814
|
+
}),
|
|
815
|
+
})
|
|
816
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQuery_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
817
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQuery_parameter_1$schema = z.object({
|
|
818
|
+
'objectType': z.union([z.literal("experience"), z.literal("fact"), z.literal("diary"), z.literal("library"), z.literal("concern")]).optional(),
|
|
819
|
+
'objectId': z.string().optional(),
|
|
820
|
+
'op': z.string().optional(),
|
|
821
|
+
'limit': z.number().optional(),
|
|
822
|
+
'offset': z.number().optional(),
|
|
823
|
+
'seqFrom': z.number().optional(),
|
|
824
|
+
'seqTo': z.number().optional(),
|
|
825
|
+
})
|
|
826
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQuery_result$schema = z.array(z.object({
|
|
827
|
+
'seq': z.number(),
|
|
828
|
+
'ts': z.number(),
|
|
829
|
+
'op': z.string(),
|
|
830
|
+
'objectType': z.union([z.literal("experience"), z.literal("fact"), z.literal("diary"), z.literal("library"), z.literal("concern")]),
|
|
831
|
+
'objectId': z.string(),
|
|
832
|
+
'actor': z.string(),
|
|
833
|
+
'reason': z.string().optional(),
|
|
834
|
+
'payload': z.string(),
|
|
835
|
+
'prevHash': z.string(),
|
|
836
|
+
'hash': z.string(),
|
|
837
|
+
}))
|
|
838
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQueryCount_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
839
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQueryCount_parameter_1$schema = z.object({
|
|
840
|
+
'objectType': z.union([z.literal("experience"), z.literal("fact"), z.literal("diary"), z.literal("library"), z.literal("concern")]).optional(),
|
|
841
|
+
'objectId': z.string().optional(),
|
|
842
|
+
'op': z.string().optional(),
|
|
843
|
+
'limit': z.number().optional(),
|
|
844
|
+
'offset': z.number().optional(),
|
|
845
|
+
'seqFrom': z.number().optional(),
|
|
846
|
+
'seqTo': z.number().optional(),
|
|
847
|
+
})
|
|
848
|
+
const _deepseek_ai_dsh_memory_memory_ledgerQueryCount_result$schema = z.number()
|
|
849
|
+
const _deepseek_ai_dsh_memory_memory_list_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
850
|
+
const _deepseek_ai_dsh_memory_memory_list_parameter_1$schema = z.object({
|
|
851
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]).optional(),
|
|
852
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]).optional(),
|
|
853
|
+
'family': z.string().optional(),
|
|
854
|
+
'context': z.string().optional(),
|
|
855
|
+
})
|
|
856
|
+
const _deepseek_ai_dsh_memory_memory_list_result$schema = z.array(z.object({
|
|
857
|
+
'id': z.string(),
|
|
858
|
+
'revision': z.number(),
|
|
859
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
860
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
861
|
+
'family': z.string(),
|
|
862
|
+
'gist': z.string(),
|
|
863
|
+
'situation': z.array(z.string()),
|
|
864
|
+
'path': z.array(z.object({
|
|
865
|
+
'order': z.number(),
|
|
866
|
+
'action': z.string(),
|
|
867
|
+
})),
|
|
868
|
+
'reasoning': z.string(),
|
|
869
|
+
'limits': z.array(z.string()),
|
|
870
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
871
|
+
'alpha': z.number(),
|
|
872
|
+
'beta': z.number(),
|
|
873
|
+
'samples': z.number(),
|
|
874
|
+
'trust': z.number(),
|
|
875
|
+
'weightedTrust': z.number(),
|
|
876
|
+
'lastVerifiedAt': z.number().optional(),
|
|
877
|
+
'pinned': z.boolean(),
|
|
878
|
+
'tokensSaved': z.number(),
|
|
879
|
+
'tokensSpent': z.number(),
|
|
880
|
+
'parentRevision': z.number().optional(),
|
|
881
|
+
'failureReason': z.string().optional(),
|
|
882
|
+
'evidence': z.object({
|
|
883
|
+
'traceRef': z.string().optional(),
|
|
884
|
+
'sessionRef': z.string().optional(),
|
|
885
|
+
'note': z.string().optional(),
|
|
886
|
+
}).optional(),
|
|
887
|
+
'challengeReason': z.string().optional(),
|
|
888
|
+
'context': z.string(),
|
|
889
|
+
'verifiedCount': z.number(),
|
|
890
|
+
'rejectCount': z.number(),
|
|
891
|
+
'globalFlag': z.boolean(),
|
|
892
|
+
'createdAt': z.number(),
|
|
893
|
+
'updatedAt': z.number(),
|
|
894
|
+
}))
|
|
895
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
896
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_parameter_1$schema = z.string()
|
|
897
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_parameter_2$schema = z.string()
|
|
898
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_parameter_3$schema = z.number()
|
|
899
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_parameter_4$schema = z.number()
|
|
900
|
+
const _deepseek_ai_dsh_memory_memory_listConcerns_result$schema = z.array(z.object({
|
|
901
|
+
'concern': z.object({
|
|
902
|
+
'id': z.string(),
|
|
903
|
+
'parentId': z.string().optional(),
|
|
904
|
+
'title': z.string(),
|
|
905
|
+
'background': z.string().optional(),
|
|
906
|
+
'kind': z.union([z.literal("other"), z.literal("thinking"), z.literal("todo"), z.literal("idea"), z.literal("question"), z.literal("decision"), z.literal("commitment")]).optional(),
|
|
907
|
+
'status': z.union([z.literal("paused"), z.literal("ongoing"), z.literal("concluded"), z.literal("recurring")]).optional(),
|
|
908
|
+
'ts': z.number(),
|
|
909
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
910
|
+
'context': z.string().optional(),
|
|
911
|
+
'deleted': z.boolean(),
|
|
912
|
+
}),
|
|
913
|
+
'mentions': z.array(z.object({
|
|
914
|
+
'id': z.string(),
|
|
915
|
+
'parentId': z.string().optional(),
|
|
916
|
+
'title': z.string(),
|
|
917
|
+
'background': z.string().optional(),
|
|
918
|
+
'kind': z.union([z.literal("other"), z.literal("thinking"), z.literal("todo"), z.literal("idea"), z.literal("question"), z.literal("decision"), z.literal("commitment")]).optional(),
|
|
919
|
+
'status': z.union([z.literal("paused"), z.literal("ongoing"), z.literal("concluded"), z.literal("recurring")]).optional(),
|
|
920
|
+
'ts': z.number(),
|
|
921
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
922
|
+
'context': z.string().optional(),
|
|
923
|
+
'deleted': z.boolean(),
|
|
924
|
+
})),
|
|
925
|
+
}))
|
|
926
|
+
const _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
927
|
+
const _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_1$schema = z.string()
|
|
928
|
+
const _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_2$schema = z.string()
|
|
929
|
+
const _deepseek_ai_dsh_memory_memory_listConcernsCount_result$schema = z.number()
|
|
930
|
+
const _deepseek_ai_dsh_memory_memory_listDiary_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
931
|
+
const _deepseek_ai_dsh_memory_memory_listDiary_parameter_1$schema = z.number()
|
|
932
|
+
const _deepseek_ai_dsh_memory_memory_listDiary_parameter_2$schema = z.number()
|
|
933
|
+
const _deepseek_ai_dsh_memory_memory_listDiary_parameter_3$schema = z.boolean()
|
|
934
|
+
const _deepseek_ai_dsh_memory_memory_listDiary_result$schema = z.array(z.object({
|
|
935
|
+
'id': z.string(),
|
|
936
|
+
'ts': z.number(),
|
|
937
|
+
'kind': z.union([z.literal("other"), z.literal("said"), z.literal("delegated"), z.literal("promised"), z.literal("happened"), z.literal("preference")]),
|
|
938
|
+
'content': z.string(),
|
|
939
|
+
'sessionRef': z.string().optional(),
|
|
940
|
+
'tags': z.array(z.string()),
|
|
941
|
+
'extracted': z.boolean(),
|
|
942
|
+
}))
|
|
943
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
944
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_parameter_1$schema = z.string()
|
|
945
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_parameter_2$schema = z.boolean()
|
|
946
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_parameter_3$schema = z.number()
|
|
947
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_parameter_4$schema = z.number()
|
|
948
|
+
const _deepseek_ai_dsh_memory_memory_listFacts_result$schema = z.array(z.object({
|
|
949
|
+
'id': z.string(),
|
|
950
|
+
'category': z.union([z.literal("other"), z.literal("preference"), z.literal("identity"), z.literal("communication"), z.literal("habit"), z.literal("thinking"), z.literal("value"), z.literal("delegation"), z.literal("background")]),
|
|
951
|
+
'factKey': z.string(),
|
|
952
|
+
'value': z.string(),
|
|
953
|
+
'origin': z.union([z.literal("human"), z.literal("extraction"), z.literal("supersede")]),
|
|
954
|
+
'sourceDiaryIds': z.array(z.string()),
|
|
955
|
+
'corroboration': z.number(),
|
|
956
|
+
'validFrom': z.number(),
|
|
957
|
+
'validTo': z.number().optional(),
|
|
958
|
+
'recordedAt': z.number(),
|
|
959
|
+
'supersededBy': z.string().optional(),
|
|
960
|
+
'locked': z.boolean(),
|
|
961
|
+
'deleted': z.boolean(),
|
|
962
|
+
'conflictPending': z.boolean(),
|
|
963
|
+
}))
|
|
964
|
+
const _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
965
|
+
const _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_1$schema = z.string()
|
|
966
|
+
const _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_2$schema = z.boolean()
|
|
967
|
+
const _deepseek_ai_dsh_memory_memory_listFactsCount_result$schema = z.number()
|
|
968
|
+
const _deepseek_ai_dsh_memory_memory_recall_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
969
|
+
const _deepseek_ai_dsh_memory_memory_recall_parameter_1$schema = z.object({
|
|
970
|
+
'situation': z.string(),
|
|
971
|
+
'topK': z.number().optional(),
|
|
972
|
+
'budgetTokens': z.number().optional(),
|
|
973
|
+
'deep': z.boolean().optional(),
|
|
974
|
+
'context': z.string().optional(),
|
|
975
|
+
'includeTrials': z.boolean().optional(),
|
|
976
|
+
})
|
|
977
|
+
const _deepseek_ai_dsh_memory_memory_recall_result$schema = z.object({
|
|
978
|
+
'items': z.array(z.object({
|
|
979
|
+
'experience': z.object({
|
|
980
|
+
'id': z.string(),
|
|
981
|
+
'revision': z.number(),
|
|
982
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
983
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
984
|
+
'family': z.string(),
|
|
985
|
+
'gist': z.string(),
|
|
986
|
+
'situation': z.array(z.string()),
|
|
987
|
+
'path': z.array(z.object({
|
|
988
|
+
'order': z.number(),
|
|
989
|
+
'action': z.string(),
|
|
990
|
+
})),
|
|
991
|
+
'reasoning': z.string(),
|
|
992
|
+
'limits': z.array(z.string()),
|
|
993
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
994
|
+
'alpha': z.number(),
|
|
995
|
+
'beta': z.number(),
|
|
996
|
+
'samples': z.number(),
|
|
997
|
+
'trust': z.number(),
|
|
998
|
+
'weightedTrust': z.number(),
|
|
999
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1000
|
+
'pinned': z.boolean(),
|
|
1001
|
+
'tokensSaved': z.number(),
|
|
1002
|
+
'tokensSpent': z.number(),
|
|
1003
|
+
'parentRevision': z.number().optional(),
|
|
1004
|
+
'failureReason': z.string().optional(),
|
|
1005
|
+
'evidence': z.object({
|
|
1006
|
+
'traceRef': z.string().optional(),
|
|
1007
|
+
'sessionRef': z.string().optional(),
|
|
1008
|
+
'note': z.string().optional(),
|
|
1009
|
+
}).optional(),
|
|
1010
|
+
'challengeReason': z.string().optional(),
|
|
1011
|
+
'context': z.string(),
|
|
1012
|
+
'verifiedCount': z.number(),
|
|
1013
|
+
'rejectCount': z.number(),
|
|
1014
|
+
'globalFlag': z.boolean(),
|
|
1015
|
+
'createdAt': z.number(),
|
|
1016
|
+
'updatedAt': z.number(),
|
|
1017
|
+
}),
|
|
1018
|
+
'score': z.number(),
|
|
1019
|
+
'verdict': z.union([z.literal("direct"), z.literal("reference"), z.literal("clue")]),
|
|
1020
|
+
'conflicts': z.array(z.string()),
|
|
1021
|
+
})),
|
|
1022
|
+
'none': z.boolean(),
|
|
1023
|
+
'reason': z.string().optional(),
|
|
1024
|
+
'omitted': z.number(),
|
|
1025
|
+
'estimatedTokens': z.number(),
|
|
1026
|
+
'candidateTrials': z.array(z.object({
|
|
1027
|
+
'experience': z.object({
|
|
1028
|
+
'id': z.string(),
|
|
1029
|
+
'revision': z.number(),
|
|
1030
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1031
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1032
|
+
'family': z.string(),
|
|
1033
|
+
'gist': z.string(),
|
|
1034
|
+
'situation': z.array(z.string()),
|
|
1035
|
+
'path': z.array(z.object({
|
|
1036
|
+
'order': z.number(),
|
|
1037
|
+
'action': z.string(),
|
|
1038
|
+
})),
|
|
1039
|
+
'reasoning': z.string(),
|
|
1040
|
+
'limits': z.array(z.string()),
|
|
1041
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1042
|
+
'alpha': z.number(),
|
|
1043
|
+
'beta': z.number(),
|
|
1044
|
+
'samples': z.number(),
|
|
1045
|
+
'trust': z.number(),
|
|
1046
|
+
'weightedTrust': z.number(),
|
|
1047
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1048
|
+
'pinned': z.boolean(),
|
|
1049
|
+
'tokensSaved': z.number(),
|
|
1050
|
+
'tokensSpent': z.number(),
|
|
1051
|
+
'parentRevision': z.number().optional(),
|
|
1052
|
+
'failureReason': z.string().optional(),
|
|
1053
|
+
'evidence': z.object({
|
|
1054
|
+
'traceRef': z.string().optional(),
|
|
1055
|
+
'sessionRef': z.string().optional(),
|
|
1056
|
+
'note': z.string().optional(),
|
|
1057
|
+
}).optional(),
|
|
1058
|
+
'challengeReason': z.string().optional(),
|
|
1059
|
+
'context': z.string(),
|
|
1060
|
+
'verifiedCount': z.number(),
|
|
1061
|
+
'rejectCount': z.number(),
|
|
1062
|
+
'globalFlag': z.boolean(),
|
|
1063
|
+
'createdAt': z.number(),
|
|
1064
|
+
'updatedAt': z.number(),
|
|
1065
|
+
}),
|
|
1066
|
+
'score': z.number(),
|
|
1067
|
+
})),
|
|
1068
|
+
'consolidationDue': z.boolean(),
|
|
1069
|
+
})
|
|
1070
|
+
const _deepseek_ai_dsh_memory_memory_refine_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1071
|
+
const _deepseek_ai_dsh_memory_memory_refine_parameter_1$schema = z.object({
|
|
1072
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1073
|
+
'family': z.string(),
|
|
1074
|
+
'gist': z.string(),
|
|
1075
|
+
'situation': z.array(z.string()),
|
|
1076
|
+
'path': z.array(z.object({
|
|
1077
|
+
'order': z.number(),
|
|
1078
|
+
'action': z.string(),
|
|
1079
|
+
})),
|
|
1080
|
+
'reasoning': z.string(),
|
|
1081
|
+
'limits': z.array(z.string()),
|
|
1082
|
+
'failureReason': z.string().optional(),
|
|
1083
|
+
'evidence': z.object({
|
|
1084
|
+
'traceRef': z.string().optional(),
|
|
1085
|
+
'sessionRef': z.string().optional(),
|
|
1086
|
+
'note': z.string().optional(),
|
|
1087
|
+
}),
|
|
1088
|
+
'complexity': z.object({
|
|
1089
|
+
'tokens': z.number().optional(),
|
|
1090
|
+
'steps': z.number().optional(),
|
|
1091
|
+
'hadFailure': z.boolean().optional(),
|
|
1092
|
+
}),
|
|
1093
|
+
'humanMarked': z.boolean().optional(),
|
|
1094
|
+
'context': z.string().optional(),
|
|
1095
|
+
})
|
|
1096
|
+
const _deepseek_ai_dsh_memory_memory_refine_result$schema = z.object({
|
|
1097
|
+
'accepted': z.boolean(),
|
|
1098
|
+
'reason': z.string().optional(),
|
|
1099
|
+
'experience': z.object({
|
|
1100
|
+
'id': z.string(),
|
|
1101
|
+
'revision': z.number(),
|
|
1102
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1103
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1104
|
+
'family': z.string(),
|
|
1105
|
+
'gist': z.string(),
|
|
1106
|
+
'situation': z.array(z.string()),
|
|
1107
|
+
'path': z.array(z.object({
|
|
1108
|
+
'order': z.number(),
|
|
1109
|
+
'action': z.string(),
|
|
1110
|
+
})),
|
|
1111
|
+
'reasoning': z.string(),
|
|
1112
|
+
'limits': z.array(z.string()),
|
|
1113
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1114
|
+
'alpha': z.number(),
|
|
1115
|
+
'beta': z.number(),
|
|
1116
|
+
'samples': z.number(),
|
|
1117
|
+
'trust': z.number(),
|
|
1118
|
+
'weightedTrust': z.number(),
|
|
1119
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1120
|
+
'pinned': z.boolean(),
|
|
1121
|
+
'tokensSaved': z.number(),
|
|
1122
|
+
'tokensSpent': z.number(),
|
|
1123
|
+
'parentRevision': z.number().optional(),
|
|
1124
|
+
'failureReason': z.string().optional(),
|
|
1125
|
+
'evidence': z.object({
|
|
1126
|
+
'traceRef': z.string().optional(),
|
|
1127
|
+
'sessionRef': z.string().optional(),
|
|
1128
|
+
'note': z.string().optional(),
|
|
1129
|
+
}).optional(),
|
|
1130
|
+
'challengeReason': z.string().optional(),
|
|
1131
|
+
'context': z.string(),
|
|
1132
|
+
'verifiedCount': z.number(),
|
|
1133
|
+
'rejectCount': z.number(),
|
|
1134
|
+
'globalFlag': z.boolean(),
|
|
1135
|
+
'createdAt': z.number(),
|
|
1136
|
+
'updatedAt': z.number(),
|
|
1137
|
+
}).optional(),
|
|
1138
|
+
'corroboratedId': z.string().optional(),
|
|
1139
|
+
})
|
|
1140
|
+
const _deepseek_ai_dsh_memory_memory_report_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1141
|
+
const _deepseek_ai_dsh_memory_memory_report_parameter_1$schema = z.object({
|
|
1142
|
+
'id': z.string(),
|
|
1143
|
+
'revision': z.number().optional(),
|
|
1144
|
+
'outcome': z.union([z.literal("success"), z.literal("fail")]),
|
|
1145
|
+
'attribution': z.union([z.literal("experience"), z.literal("environment"), z.literal("unrelated"), z.literal("unknown")]).optional(),
|
|
1146
|
+
'evidence': z.object({
|
|
1147
|
+
'traceRef': z.string().optional(),
|
|
1148
|
+
'sessionRef': z.string().optional(),
|
|
1149
|
+
'note': z.string().optional(),
|
|
1150
|
+
}).optional(),
|
|
1151
|
+
'tokensUsed': z.number().optional(),
|
|
1152
|
+
'tokensSaved': z.number().optional(),
|
|
1153
|
+
'dedupeKey': z.string().optional(),
|
|
1154
|
+
})
|
|
1155
|
+
const _deepseek_ai_dsh_memory_memory_report_result$schema = z.object({
|
|
1156
|
+
'snapshot': z.object({
|
|
1157
|
+
'id': z.string(),
|
|
1158
|
+
'revision': z.number(),
|
|
1159
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1160
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1161
|
+
'family': z.string(),
|
|
1162
|
+
'gist': z.string(),
|
|
1163
|
+
'situation': z.array(z.string()),
|
|
1164
|
+
'path': z.array(z.object({
|
|
1165
|
+
'order': z.number(),
|
|
1166
|
+
'action': z.string(),
|
|
1167
|
+
})),
|
|
1168
|
+
'reasoning': z.string(),
|
|
1169
|
+
'limits': z.array(z.string()),
|
|
1170
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1171
|
+
'alpha': z.number(),
|
|
1172
|
+
'beta': z.number(),
|
|
1173
|
+
'samples': z.number(),
|
|
1174
|
+
'trust': z.number(),
|
|
1175
|
+
'weightedTrust': z.number(),
|
|
1176
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1177
|
+
'pinned': z.boolean(),
|
|
1178
|
+
'tokensSaved': z.number(),
|
|
1179
|
+
'tokensSpent': z.number(),
|
|
1180
|
+
'parentRevision': z.number().optional(),
|
|
1181
|
+
'failureReason': z.string().optional(),
|
|
1182
|
+
'evidence': z.object({
|
|
1183
|
+
'traceRef': z.string().optional(),
|
|
1184
|
+
'sessionRef': z.string().optional(),
|
|
1185
|
+
'note': z.string().optional(),
|
|
1186
|
+
}).optional(),
|
|
1187
|
+
'challengeReason': z.string().optional(),
|
|
1188
|
+
'context': z.string(),
|
|
1189
|
+
'verifiedCount': z.number(),
|
|
1190
|
+
'rejectCount': z.number(),
|
|
1191
|
+
'globalFlag': z.boolean(),
|
|
1192
|
+
'createdAt': z.number(),
|
|
1193
|
+
'updatedAt': z.number(),
|
|
1194
|
+
}),
|
|
1195
|
+
'counted': z.union([z.literal("alpha"), z.literal("beta"), z.literal("none")]),
|
|
1196
|
+
'attributionApplied': z.union([z.literal("experience"), z.literal("environment"), z.literal("unrelated"), z.literal("unknown")]),
|
|
1197
|
+
'overrideNote': z.string().optional(),
|
|
1198
|
+
'challenged': z.boolean(),
|
|
1199
|
+
'promoted': z.boolean(),
|
|
1200
|
+
'adopted': z.boolean(),
|
|
1201
|
+
'cooled': z.boolean().optional(),
|
|
1202
|
+
})
|
|
1203
|
+
const _deepseek_ai_dsh_memory_memory_revise_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1204
|
+
const _deepseek_ai_dsh_memory_memory_revise_parameter_1$schema = z.object({
|
|
1205
|
+
'id': z.string(),
|
|
1206
|
+
'reason': z.string(),
|
|
1207
|
+
'gist': z.string().optional(),
|
|
1208
|
+
'situation': z.array(z.string()).optional(),
|
|
1209
|
+
'path': z.array(z.object({
|
|
1210
|
+
'order': z.number(),
|
|
1211
|
+
'action': z.string(),
|
|
1212
|
+
})).optional(),
|
|
1213
|
+
'reasoning': z.string().optional(),
|
|
1214
|
+
'limits': z.array(z.string()).optional(),
|
|
1215
|
+
})
|
|
1216
|
+
const _deepseek_ai_dsh_memory_memory_revise_result$schema = z.object({
|
|
1217
|
+
'id': z.string(),
|
|
1218
|
+
'revision': z.number(),
|
|
1219
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1220
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1221
|
+
'family': z.string(),
|
|
1222
|
+
'gist': z.string(),
|
|
1223
|
+
'situation': z.array(z.string()),
|
|
1224
|
+
'path': z.array(z.object({
|
|
1225
|
+
'order': z.number(),
|
|
1226
|
+
'action': z.string(),
|
|
1227
|
+
})),
|
|
1228
|
+
'reasoning': z.string(),
|
|
1229
|
+
'limits': z.array(z.string()),
|
|
1230
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1231
|
+
'alpha': z.number(),
|
|
1232
|
+
'beta': z.number(),
|
|
1233
|
+
'samples': z.number(),
|
|
1234
|
+
'trust': z.number(),
|
|
1235
|
+
'weightedTrust': z.number(),
|
|
1236
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1237
|
+
'pinned': z.boolean(),
|
|
1238
|
+
'tokensSaved': z.number(),
|
|
1239
|
+
'tokensSpent': z.number(),
|
|
1240
|
+
'parentRevision': z.number().optional(),
|
|
1241
|
+
'failureReason': z.string().optional(),
|
|
1242
|
+
'evidence': z.object({
|
|
1243
|
+
'traceRef': z.string().optional(),
|
|
1244
|
+
'sessionRef': z.string().optional(),
|
|
1245
|
+
'note': z.string().optional(),
|
|
1246
|
+
}).optional(),
|
|
1247
|
+
'challengeReason': z.string().optional(),
|
|
1248
|
+
'context': z.string(),
|
|
1249
|
+
'verifiedCount': z.number(),
|
|
1250
|
+
'rejectCount': z.number(),
|
|
1251
|
+
'globalFlag': z.boolean(),
|
|
1252
|
+
'createdAt': z.number(),
|
|
1253
|
+
'updatedAt': z.number(),
|
|
1254
|
+
})
|
|
1255
|
+
const _deepseek_ai_dsh_memory_memory_rollback_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1256
|
+
const _deepseek_ai_dsh_memory_memory_rollback_parameter_1$schema = z.object({
|
|
1257
|
+
'id': z.string(),
|
|
1258
|
+
'toRevision': z.number(),
|
|
1259
|
+
'reason': z.string(),
|
|
1260
|
+
})
|
|
1261
|
+
const _deepseek_ai_dsh_memory_memory_rollback_result$schema = z.object({
|
|
1262
|
+
'id': z.string(),
|
|
1263
|
+
'revision': z.number(),
|
|
1264
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1265
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1266
|
+
'family': z.string(),
|
|
1267
|
+
'gist': z.string(),
|
|
1268
|
+
'situation': z.array(z.string()),
|
|
1269
|
+
'path': z.array(z.object({
|
|
1270
|
+
'order': z.number(),
|
|
1271
|
+
'action': z.string(),
|
|
1272
|
+
})),
|
|
1273
|
+
'reasoning': z.string(),
|
|
1274
|
+
'limits': z.array(z.string()),
|
|
1275
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1276
|
+
'alpha': z.number(),
|
|
1277
|
+
'beta': z.number(),
|
|
1278
|
+
'samples': z.number(),
|
|
1279
|
+
'trust': z.number(),
|
|
1280
|
+
'weightedTrust': z.number(),
|
|
1281
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1282
|
+
'pinned': z.boolean(),
|
|
1283
|
+
'tokensSaved': z.number(),
|
|
1284
|
+
'tokensSpent': z.number(),
|
|
1285
|
+
'parentRevision': z.number().optional(),
|
|
1286
|
+
'failureReason': z.string().optional(),
|
|
1287
|
+
'evidence': z.object({
|
|
1288
|
+
'traceRef': z.string().optional(),
|
|
1289
|
+
'sessionRef': z.string().optional(),
|
|
1290
|
+
'note': z.string().optional(),
|
|
1291
|
+
}).optional(),
|
|
1292
|
+
'challengeReason': z.string().optional(),
|
|
1293
|
+
'context': z.string(),
|
|
1294
|
+
'verifiedCount': z.number(),
|
|
1295
|
+
'rejectCount': z.number(),
|
|
1296
|
+
'globalFlag': z.boolean(),
|
|
1297
|
+
'createdAt': z.number(),
|
|
1298
|
+
'updatedAt': z.number(),
|
|
1299
|
+
})
|
|
1300
|
+
const _deepseek_ai_dsh_memory_memory_stats_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1301
|
+
const _deepseek_ai_dsh_memory_memory_stats_result$schema = z.object({
|
|
1302
|
+
'experiences': z.object({
|
|
1303
|
+
'total': z.number(),
|
|
1304
|
+
'byStatus': z.object({
|
|
1305
|
+
'candidate': z.number(),
|
|
1306
|
+
'live': z.number(),
|
|
1307
|
+
'challenged': z.number(),
|
|
1308
|
+
'superseded': z.number(),
|
|
1309
|
+
'archived': z.number(),
|
|
1310
|
+
'cold': z.number(),
|
|
1311
|
+
}),
|
|
1312
|
+
'byKind': z.object({
|
|
1313
|
+
'positive': z.number(),
|
|
1314
|
+
'negative': z.number(),
|
|
1315
|
+
}),
|
|
1316
|
+
'pinned': z.number(),
|
|
1317
|
+
'avgTrust': z.number(),
|
|
1318
|
+
}),
|
|
1319
|
+
'facts': z.object({
|
|
1320
|
+
'total': z.number(),
|
|
1321
|
+
'current': z.number(),
|
|
1322
|
+
'locked': z.number(),
|
|
1323
|
+
'conflictPending': z.number(),
|
|
1324
|
+
}),
|
|
1325
|
+
'diary': z.object({
|
|
1326
|
+
'total': z.number(),
|
|
1327
|
+
'unextracted': z.number(),
|
|
1328
|
+
'extractions': z.number(),
|
|
1329
|
+
}),
|
|
1330
|
+
'ledgerBlocks': z.number(),
|
|
1331
|
+
'recall': z.object({
|
|
1332
|
+
'events': z.number(),
|
|
1333
|
+
'negative': z.number(),
|
|
1334
|
+
'reportsAfterRecall': z.number(),
|
|
1335
|
+
}),
|
|
1336
|
+
'consolidation': z.object({
|
|
1337
|
+
'lastTs': z.number(),
|
|
1338
|
+
'due': z.boolean(),
|
|
1339
|
+
'newSince': z.number(),
|
|
1340
|
+
}),
|
|
1341
|
+
})
|
|
1342
|
+
const _deepseek_ai_dsh_memory_memory_verifyLedger_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1343
|
+
const _deepseek_ai_dsh_memory_memory_verifyLedger_result$schema = z.object({
|
|
1344
|
+
'ok': z.boolean(),
|
|
1345
|
+
'checked': z.number(),
|
|
1346
|
+
'brokenAt': z.number().optional(),
|
|
1347
|
+
})
|
|
1348
|
+
const _deepseek_ai_dsh_memory_memory_verifyShadow_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1349
|
+
const _deepseek_ai_dsh_memory_memory_verifyShadow_parameter_1$schema = z.object({
|
|
1350
|
+
'id': z.string(),
|
|
1351
|
+
'revision': z.number(),
|
|
1352
|
+
'samples': z.array(z.object({
|
|
1353
|
+
'situation': z.string(),
|
|
1354
|
+
'expected': z.union([z.literal("success"), z.literal("fail")]),
|
|
1355
|
+
})),
|
|
1356
|
+
})
|
|
1357
|
+
const _deepseek_ai_dsh_memory_memory_verifyShadow_result$schema = z.object({
|
|
1358
|
+
'passed': z.boolean(),
|
|
1359
|
+
'agreement': z.number(),
|
|
1360
|
+
'snapshot': z.object({
|
|
1361
|
+
'id': z.string(),
|
|
1362
|
+
'revision': z.number(),
|
|
1363
|
+
'kind': z.union([z.literal("positive"), z.literal("negative")]),
|
|
1364
|
+
'source': z.union([z.literal("agent"), z.literal("human")]),
|
|
1365
|
+
'family': z.string(),
|
|
1366
|
+
'gist': z.string(),
|
|
1367
|
+
'situation': z.array(z.string()),
|
|
1368
|
+
'path': z.array(z.object({
|
|
1369
|
+
'order': z.number(),
|
|
1370
|
+
'action': z.string(),
|
|
1371
|
+
})),
|
|
1372
|
+
'reasoning': z.string(),
|
|
1373
|
+
'limits': z.array(z.string()),
|
|
1374
|
+
'status': z.union([z.literal("candidate"), z.literal("live"), z.literal("challenged"), z.literal("superseded"), z.literal("archived"), z.literal("cold")]),
|
|
1375
|
+
'alpha': z.number(),
|
|
1376
|
+
'beta': z.number(),
|
|
1377
|
+
'samples': z.number(),
|
|
1378
|
+
'trust': z.number(),
|
|
1379
|
+
'weightedTrust': z.number(),
|
|
1380
|
+
'lastVerifiedAt': z.number().optional(),
|
|
1381
|
+
'pinned': z.boolean(),
|
|
1382
|
+
'tokensSaved': z.number(),
|
|
1383
|
+
'tokensSpent': z.number(),
|
|
1384
|
+
'parentRevision': z.number().optional(),
|
|
1385
|
+
'failureReason': z.string().optional(),
|
|
1386
|
+
'evidence': z.object({
|
|
1387
|
+
'traceRef': z.string().optional(),
|
|
1388
|
+
'sessionRef': z.string().optional(),
|
|
1389
|
+
'note': z.string().optional(),
|
|
1390
|
+
}).optional(),
|
|
1391
|
+
'challengeReason': z.string().optional(),
|
|
1392
|
+
'context': z.string(),
|
|
1393
|
+
'verifiedCount': z.number(),
|
|
1394
|
+
'rejectCount': z.number(),
|
|
1395
|
+
'globalFlag': z.boolean(),
|
|
1396
|
+
'createdAt': z.number(),
|
|
1397
|
+
'updatedAt': z.number(),
|
|
1398
|
+
}).optional(),
|
|
1399
|
+
'reason': z.string().optional(),
|
|
1400
|
+
})
|
|
1401
|
+
const _deepseek_ai_dsh_memory_memory_workbenchInfo_parameter_0$schema = z.intersection(z.string(), z.unknown())
|
|
1402
|
+
const _deepseek_ai_dsh_memory_memory_workbenchInfo_result$schema = z.object({
|
|
1403
|
+
'workspacePath': z.string(),
|
|
1404
|
+
'workspaceTitle': z.string(),
|
|
1405
|
+
'databasePath': z.string(),
|
|
1406
|
+
'diaryExtractEvery': z.number(),
|
|
1407
|
+
'injectionBudgetTokens': z.number(),
|
|
1408
|
+
})
|
|
1409
|
+
|
|
1410
|
+
export const TYPERT = {
|
|
1411
|
+
package: 'dsh-daoing-memory',
|
|
1412
|
+
face: 'host',
|
|
1413
|
+
schemas: [
|
|
1414
|
+
],
|
|
1415
|
+
invocations: [
|
|
1416
|
+
{
|
|
1417
|
+
id: 'dsh-daoing-memory#memory/appendDiary',
|
|
1418
|
+
service: 'memory',
|
|
1419
|
+
namespace: 'memory',
|
|
1420
|
+
method: 'appendDiary',
|
|
1421
|
+
invocation: { kind: 'direct' },
|
|
1422
|
+
scope: {
|
|
1423
|
+
context: 'agent',
|
|
1424
|
+
wire: 'agentId',
|
|
1425
|
+
},
|
|
1426
|
+
parameters: [
|
|
1427
|
+
{
|
|
1428
|
+
name: 'agent',
|
|
1429
|
+
wire: 'agentId',
|
|
1430
|
+
source: 'lookup',
|
|
1431
|
+
lookup: 'agent',
|
|
1432
|
+
codec: {
|
|
1433
|
+
mode: 'strict',
|
|
1434
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1435
|
+
schema: _deepseek_ai_dsh_memory_memory_appendDiary_parameter_0$schema,
|
|
1436
|
+
},
|
|
1437
|
+
},
|
|
1438
|
+
{
|
|
1439
|
+
name: 'request',
|
|
1440
|
+
wire: 'request',
|
|
1441
|
+
source: 'json',
|
|
1442
|
+
codec: {
|
|
1443
|
+
mode: 'strict',
|
|
1444
|
+
typeSymbol: 'dsh-daoing-memory/types#DiaryAppendRequest',
|
|
1445
|
+
schema: _deepseek_ai_dsh_memory_memory_appendDiary_parameter_1$schema,
|
|
1446
|
+
},
|
|
1447
|
+
},
|
|
1448
|
+
],
|
|
1449
|
+
result: {
|
|
1450
|
+
mode: 'strict',
|
|
1451
|
+
typeSymbol: 'dsh-daoing-memory/types#DiaryAppendResult',
|
|
1452
|
+
schema: _deepseek_ai_dsh_memory_memory_appendDiary_result$schema,
|
|
1453
|
+
},
|
|
1454
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":145,"column":3},
|
|
1455
|
+
},
|
|
1456
|
+
{
|
|
1457
|
+
id: 'dsh-daoing-memory#memory/consolidate',
|
|
1458
|
+
service: 'memory',
|
|
1459
|
+
namespace: 'memory',
|
|
1460
|
+
method: 'consolidate',
|
|
1461
|
+
invocation: { kind: 'direct' },
|
|
1462
|
+
scope: {
|
|
1463
|
+
context: 'agent',
|
|
1464
|
+
wire: 'agentId',
|
|
1465
|
+
},
|
|
1466
|
+
parameters: [
|
|
1467
|
+
{
|
|
1468
|
+
name: 'agent',
|
|
1469
|
+
wire: 'agentId',
|
|
1470
|
+
source: 'lookup',
|
|
1471
|
+
lookup: 'agent',
|
|
1472
|
+
codec: {
|
|
1473
|
+
mode: 'strict',
|
|
1474
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1475
|
+
schema: _deepseek_ai_dsh_memory_memory_consolidate_parameter_0$schema,
|
|
1476
|
+
},
|
|
1477
|
+
},
|
|
1478
|
+
{
|
|
1479
|
+
name: 'request',
|
|
1480
|
+
wire: 'request',
|
|
1481
|
+
source: 'json',
|
|
1482
|
+
codec: {
|
|
1483
|
+
mode: 'strict',
|
|
1484
|
+
typeSymbol: 'dsh-daoing-memory/types#ConsolidateRequest',
|
|
1485
|
+
schema: _deepseek_ai_dsh_memory_memory_consolidate_parameter_1$schema,
|
|
1486
|
+
},
|
|
1487
|
+
},
|
|
1488
|
+
],
|
|
1489
|
+
result: {
|
|
1490
|
+
mode: 'strict',
|
|
1491
|
+
typeSymbol: 'dsh-daoing-memory/types#ConsolidateResult',
|
|
1492
|
+
schema: _deepseek_ai_dsh_memory_memory_consolidate_result$schema,
|
|
1493
|
+
},
|
|
1494
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":218,"column":3},
|
|
1495
|
+
},
|
|
1496
|
+
{
|
|
1497
|
+
id: 'dsh-daoing-memory#memory/consolidationDue',
|
|
1498
|
+
service: 'memory',
|
|
1499
|
+
namespace: 'memory',
|
|
1500
|
+
method: 'consolidationDue',
|
|
1501
|
+
invocation: { kind: 'direct' },
|
|
1502
|
+
scope: {
|
|
1503
|
+
context: 'agent',
|
|
1504
|
+
wire: 'agentId',
|
|
1505
|
+
},
|
|
1506
|
+
parameters: [
|
|
1507
|
+
{
|
|
1508
|
+
name: 'agent',
|
|
1509
|
+
wire: 'agentId',
|
|
1510
|
+
source: 'lookup',
|
|
1511
|
+
lookup: 'agent',
|
|
1512
|
+
codec: {
|
|
1513
|
+
mode: 'strict',
|
|
1514
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1515
|
+
schema: _deepseek_ai_dsh_memory_memory_consolidationDue_parameter_0$schema,
|
|
1516
|
+
},
|
|
1517
|
+
},
|
|
1518
|
+
],
|
|
1519
|
+
result: {
|
|
1520
|
+
mode: 'strict',
|
|
1521
|
+
typeSymbol: 'dsh-daoing-memory#memory/consolidationDue:result',
|
|
1522
|
+
schema: _deepseek_ai_dsh_memory_memory_consolidationDue_result$schema,
|
|
1523
|
+
},
|
|
1524
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":225,"column":3},
|
|
1525
|
+
},
|
|
1526
|
+
{
|
|
1527
|
+
id: 'dsh-daoing-memory#memory/exportLibrary',
|
|
1528
|
+
service: 'memory',
|
|
1529
|
+
namespace: 'memory',
|
|
1530
|
+
method: 'exportLibrary',
|
|
1531
|
+
invocation: { kind: 'direct' },
|
|
1532
|
+
scope: {
|
|
1533
|
+
context: 'agent',
|
|
1534
|
+
wire: 'agentId',
|
|
1535
|
+
},
|
|
1536
|
+
parameters: [
|
|
1537
|
+
{
|
|
1538
|
+
name: 'agent',
|
|
1539
|
+
wire: 'agentId',
|
|
1540
|
+
source: 'lookup',
|
|
1541
|
+
lookup: 'agent',
|
|
1542
|
+
codec: {
|
|
1543
|
+
mode: 'strict',
|
|
1544
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1545
|
+
schema: _deepseek_ai_dsh_memory_memory_exportLibrary_parameter_0$schema,
|
|
1546
|
+
},
|
|
1547
|
+
},
|
|
1548
|
+
],
|
|
1549
|
+
result: {
|
|
1550
|
+
mode: 'strict',
|
|
1551
|
+
typeSymbol: 'dsh-daoing-memory/types#MemoryExport',
|
|
1552
|
+
schema: _deepseek_ai_dsh_memory_memory_exportLibrary_result$schema,
|
|
1553
|
+
},
|
|
1554
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":267,"column":3},
|
|
1555
|
+
},
|
|
1556
|
+
{
|
|
1557
|
+
id: 'dsh-daoing-memory#memory/extract',
|
|
1558
|
+
service: 'memory',
|
|
1559
|
+
namespace: 'memory',
|
|
1560
|
+
method: 'extract',
|
|
1561
|
+
invocation: { kind: 'direct' },
|
|
1562
|
+
scope: {
|
|
1563
|
+
context: 'agent',
|
|
1564
|
+
wire: 'agentId',
|
|
1565
|
+
},
|
|
1566
|
+
parameters: [
|
|
1567
|
+
{
|
|
1568
|
+
name: 'agent',
|
|
1569
|
+
wire: 'agentId',
|
|
1570
|
+
source: 'lookup',
|
|
1571
|
+
lookup: 'agent',
|
|
1572
|
+
codec: {
|
|
1573
|
+
mode: 'strict',
|
|
1574
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1575
|
+
schema: _deepseek_ai_dsh_memory_memory_extract_parameter_0$schema,
|
|
1576
|
+
},
|
|
1577
|
+
},
|
|
1578
|
+
{
|
|
1579
|
+
name: 'request',
|
|
1580
|
+
wire: 'request',
|
|
1581
|
+
source: 'json',
|
|
1582
|
+
codec: {
|
|
1583
|
+
mode: 'strict',
|
|
1584
|
+
typeSymbol: 'dsh-daoing-memory/types#ExtractFactsRequest',
|
|
1585
|
+
schema: _deepseek_ai_dsh_memory_memory_extract_parameter_1$schema,
|
|
1586
|
+
},
|
|
1587
|
+
},
|
|
1588
|
+
],
|
|
1589
|
+
result: {
|
|
1590
|
+
mode: 'strict',
|
|
1591
|
+
typeSymbol: 'dsh-daoing-memory/types#ExtractFactsResult',
|
|
1592
|
+
schema: _deepseek_ai_dsh_memory_memory_extract_result$schema,
|
|
1593
|
+
},
|
|
1594
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":151,"column":3},
|
|
1595
|
+
},
|
|
1596
|
+
{
|
|
1597
|
+
id: 'dsh-daoing-memory#memory/extractionLog',
|
|
1598
|
+
service: 'memory',
|
|
1599
|
+
namespace: 'memory',
|
|
1600
|
+
method: 'extractionLog',
|
|
1601
|
+
invocation: { kind: 'direct' },
|
|
1602
|
+
scope: {
|
|
1603
|
+
context: 'agent',
|
|
1604
|
+
wire: 'agentId',
|
|
1605
|
+
},
|
|
1606
|
+
parameters: [
|
|
1607
|
+
{
|
|
1608
|
+
name: 'agent',
|
|
1609
|
+
wire: 'agentId',
|
|
1610
|
+
source: 'lookup',
|
|
1611
|
+
lookup: 'agent',
|
|
1612
|
+
codec: {
|
|
1613
|
+
mode: 'strict',
|
|
1614
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1615
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLog_parameter_0$schema,
|
|
1616
|
+
},
|
|
1617
|
+
},
|
|
1618
|
+
{
|
|
1619
|
+
name: 'limit',
|
|
1620
|
+
wire: 'limit',
|
|
1621
|
+
source: 'json',
|
|
1622
|
+
codec: {
|
|
1623
|
+
mode: 'strict',
|
|
1624
|
+
typeSymbol: 'dsh-daoing-memory#memory/extractionLog:limit',
|
|
1625
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLog_parameter_1$schema,
|
|
1626
|
+
},
|
|
1627
|
+
},
|
|
1628
|
+
{
|
|
1629
|
+
name: 'offset',
|
|
1630
|
+
wire: 'offset',
|
|
1631
|
+
source: 'json',
|
|
1632
|
+
codec: {
|
|
1633
|
+
mode: 'strict',
|
|
1634
|
+
typeSymbol: 'dsh-daoing-memory#memory/extractionLog:offset',
|
|
1635
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLog_parameter_2$schema,
|
|
1636
|
+
},
|
|
1637
|
+
},
|
|
1638
|
+
],
|
|
1639
|
+
result: {
|
|
1640
|
+
mode: 'strict',
|
|
1641
|
+
typeSymbol: 'dsh-daoing-memory#memory/extractionLog:result',
|
|
1642
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLog_result$schema,
|
|
1643
|
+
},
|
|
1644
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":204,"column":3},
|
|
1645
|
+
},
|
|
1646
|
+
{
|
|
1647
|
+
id: 'dsh-daoing-memory#memory/extractionLogCount',
|
|
1648
|
+
service: 'memory',
|
|
1649
|
+
namespace: 'memory',
|
|
1650
|
+
method: 'extractionLogCount',
|
|
1651
|
+
invocation: { kind: 'direct' },
|
|
1652
|
+
scope: {
|
|
1653
|
+
context: 'agent',
|
|
1654
|
+
wire: 'agentId',
|
|
1655
|
+
},
|
|
1656
|
+
parameters: [
|
|
1657
|
+
{
|
|
1658
|
+
name: 'agent',
|
|
1659
|
+
wire: 'agentId',
|
|
1660
|
+
source: 'lookup',
|
|
1661
|
+
lookup: 'agent',
|
|
1662
|
+
codec: {
|
|
1663
|
+
mode: 'strict',
|
|
1664
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1665
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLogCount_parameter_0$schema,
|
|
1666
|
+
},
|
|
1667
|
+
},
|
|
1668
|
+
],
|
|
1669
|
+
result: {
|
|
1670
|
+
mode: 'strict',
|
|
1671
|
+
typeSymbol: 'dsh-daoing-memory#memory/extractionLogCount:result',
|
|
1672
|
+
schema: _deepseek_ai_dsh_memory_memory_extractionLogCount_result$schema,
|
|
1673
|
+
},
|
|
1674
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":211,"column":3},
|
|
1675
|
+
},
|
|
1676
|
+
{
|
|
1677
|
+
id: 'dsh-daoing-memory#memory/family',
|
|
1678
|
+
service: 'memory',
|
|
1679
|
+
namespace: 'memory',
|
|
1680
|
+
method: 'family',
|
|
1681
|
+
invocation: { kind: 'direct' },
|
|
1682
|
+
scope: {
|
|
1683
|
+
context: 'agent',
|
|
1684
|
+
wire: 'agentId',
|
|
1685
|
+
},
|
|
1686
|
+
parameters: [
|
|
1687
|
+
{
|
|
1688
|
+
name: 'agent',
|
|
1689
|
+
wire: 'agentId',
|
|
1690
|
+
source: 'lookup',
|
|
1691
|
+
lookup: 'agent',
|
|
1692
|
+
codec: {
|
|
1693
|
+
mode: 'strict',
|
|
1694
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1695
|
+
schema: _deepseek_ai_dsh_memory_memory_family_parameter_0$schema,
|
|
1696
|
+
},
|
|
1697
|
+
},
|
|
1698
|
+
{
|
|
1699
|
+
name: 'id',
|
|
1700
|
+
wire: 'id',
|
|
1701
|
+
source: 'json',
|
|
1702
|
+
codec: {
|
|
1703
|
+
mode: 'strict',
|
|
1704
|
+
typeSymbol: 'dsh-daoing-memory#memory/family:id',
|
|
1705
|
+
schema: _deepseek_ai_dsh_memory_memory_family_parameter_1$schema,
|
|
1706
|
+
},
|
|
1707
|
+
},
|
|
1708
|
+
],
|
|
1709
|
+
result: {
|
|
1710
|
+
mode: 'strict',
|
|
1711
|
+
typeSymbol: 'dsh-daoing-memory#memory/family:result',
|
|
1712
|
+
schema: _deepseek_ai_dsh_memory_memory_family_result$schema,
|
|
1713
|
+
},
|
|
1714
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":138,"column":3},
|
|
1715
|
+
},
|
|
1716
|
+
{
|
|
1717
|
+
id: 'dsh-daoing-memory#memory/get',
|
|
1718
|
+
service: 'memory',
|
|
1719
|
+
namespace: 'memory',
|
|
1720
|
+
method: 'get',
|
|
1721
|
+
invocation: { kind: 'direct' },
|
|
1722
|
+
scope: {
|
|
1723
|
+
context: 'agent',
|
|
1724
|
+
wire: 'agentId',
|
|
1725
|
+
},
|
|
1726
|
+
parameters: [
|
|
1727
|
+
{
|
|
1728
|
+
name: 'agent',
|
|
1729
|
+
wire: 'agentId',
|
|
1730
|
+
source: 'lookup',
|
|
1731
|
+
lookup: 'agent',
|
|
1732
|
+
codec: {
|
|
1733
|
+
mode: 'strict',
|
|
1734
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1735
|
+
schema: _deepseek_ai_dsh_memory_memory_get_parameter_0$schema,
|
|
1736
|
+
},
|
|
1737
|
+
},
|
|
1738
|
+
{
|
|
1739
|
+
name: 'id',
|
|
1740
|
+
wire: 'id',
|
|
1741
|
+
source: 'json',
|
|
1742
|
+
codec: {
|
|
1743
|
+
mode: 'strict',
|
|
1744
|
+
typeSymbol: 'dsh-daoing-memory#memory/get:id',
|
|
1745
|
+
schema: _deepseek_ai_dsh_memory_memory_get_parameter_1$schema,
|
|
1746
|
+
},
|
|
1747
|
+
},
|
|
1748
|
+
{
|
|
1749
|
+
name: 'revision',
|
|
1750
|
+
wire: 'revision',
|
|
1751
|
+
source: 'json',
|
|
1752
|
+
acceptsUndefined: true,
|
|
1753
|
+
codec: {
|
|
1754
|
+
mode: 'strict',
|
|
1755
|
+
typeSymbol: 'dsh-daoing-memory#memory/get:revision',
|
|
1756
|
+
schema: _deepseek_ai_dsh_memory_memory_get_parameter_2$schema,
|
|
1757
|
+
},
|
|
1758
|
+
},
|
|
1759
|
+
],
|
|
1760
|
+
result: {
|
|
1761
|
+
mode: 'strict',
|
|
1762
|
+
typeSymbol: 'dsh-daoing-memory#memory/get:result',
|
|
1763
|
+
schema: _deepseek_ai_dsh_memory_memory_get_result$schema,
|
|
1764
|
+
},
|
|
1765
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":124,"column":3},
|
|
1766
|
+
},
|
|
1767
|
+
{
|
|
1768
|
+
id: 'dsh-daoing-memory#memory/getDiaryByIds',
|
|
1769
|
+
service: 'memory',
|
|
1770
|
+
namespace: 'memory',
|
|
1771
|
+
method: 'getDiaryByIds',
|
|
1772
|
+
invocation: { kind: 'direct' },
|
|
1773
|
+
scope: {
|
|
1774
|
+
context: 'agent',
|
|
1775
|
+
wire: 'agentId',
|
|
1776
|
+
},
|
|
1777
|
+
parameters: [
|
|
1778
|
+
{
|
|
1779
|
+
name: 'agent',
|
|
1780
|
+
wire: 'agentId',
|
|
1781
|
+
source: 'lookup',
|
|
1782
|
+
lookup: 'agent',
|
|
1783
|
+
codec: {
|
|
1784
|
+
mode: 'strict',
|
|
1785
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1786
|
+
schema: _deepseek_ai_dsh_memory_memory_getDiaryByIds_parameter_0$schema,
|
|
1787
|
+
},
|
|
1788
|
+
},
|
|
1789
|
+
{
|
|
1790
|
+
name: 'ids',
|
|
1791
|
+
wire: 'ids',
|
|
1792
|
+
source: 'json',
|
|
1793
|
+
codec: {
|
|
1794
|
+
mode: 'strict',
|
|
1795
|
+
typeSymbol: 'dsh-daoing-memory#memory/getDiaryByIds:ids',
|
|
1796
|
+
schema: _deepseek_ai_dsh_memory_memory_getDiaryByIds_parameter_1$schema,
|
|
1797
|
+
},
|
|
1798
|
+
},
|
|
1799
|
+
],
|
|
1800
|
+
result: {
|
|
1801
|
+
mode: 'strict',
|
|
1802
|
+
typeSymbol: 'dsh-daoing-memory#memory/getDiaryByIds:result',
|
|
1803
|
+
schema: _deepseek_ai_dsh_memory_memory_getDiaryByIds_result$schema,
|
|
1804
|
+
},
|
|
1805
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":164,"column":3},
|
|
1806
|
+
},
|
|
1807
|
+
{
|
|
1808
|
+
id: 'dsh-daoing-memory#memory/humanAckDiary',
|
|
1809
|
+
service: 'memory',
|
|
1810
|
+
namespace: 'memory',
|
|
1811
|
+
method: 'humanAckDiary',
|
|
1812
|
+
invocation: { kind: 'direct' },
|
|
1813
|
+
scope: {
|
|
1814
|
+
context: 'agent',
|
|
1815
|
+
wire: 'agentId',
|
|
1816
|
+
},
|
|
1817
|
+
parameters: [
|
|
1818
|
+
{
|
|
1819
|
+
name: 'agent',
|
|
1820
|
+
wire: 'agentId',
|
|
1821
|
+
source: 'lookup',
|
|
1822
|
+
lookup: 'agent',
|
|
1823
|
+
codec: {
|
|
1824
|
+
mode: 'strict',
|
|
1825
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1826
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAckDiary_parameter_0$schema,
|
|
1827
|
+
},
|
|
1828
|
+
},
|
|
1829
|
+
{
|
|
1830
|
+
name: 'request',
|
|
1831
|
+
wire: 'request',
|
|
1832
|
+
source: 'json',
|
|
1833
|
+
codec: {
|
|
1834
|
+
mode: 'strict',
|
|
1835
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanAckDiaryRequest',
|
|
1836
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAckDiary_parameter_1$schema,
|
|
1837
|
+
},
|
|
1838
|
+
},
|
|
1839
|
+
],
|
|
1840
|
+
result: {
|
|
1841
|
+
mode: 'strict',
|
|
1842
|
+
typeSymbol: 'dsh-daoing-memory/types#DiaryEntry',
|
|
1843
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAckDiary_result$schema,
|
|
1844
|
+
},
|
|
1845
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":364,"column":3},
|
|
1846
|
+
},
|
|
1847
|
+
{
|
|
1848
|
+
id: 'dsh-daoing-memory#memory/humanAddExperience',
|
|
1849
|
+
service: 'memory',
|
|
1850
|
+
namespace: 'memory',
|
|
1851
|
+
method: 'humanAddExperience',
|
|
1852
|
+
invocation: { kind: 'direct' },
|
|
1853
|
+
scope: {
|
|
1854
|
+
context: 'agent',
|
|
1855
|
+
wire: 'agentId',
|
|
1856
|
+
},
|
|
1857
|
+
parameters: [
|
|
1858
|
+
{
|
|
1859
|
+
name: 'agent',
|
|
1860
|
+
wire: 'agentId',
|
|
1861
|
+
source: 'lookup',
|
|
1862
|
+
lookup: 'agent',
|
|
1863
|
+
codec: {
|
|
1864
|
+
mode: 'strict',
|
|
1865
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1866
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddExperience_parameter_0$schema,
|
|
1867
|
+
},
|
|
1868
|
+
},
|
|
1869
|
+
{
|
|
1870
|
+
name: 'request',
|
|
1871
|
+
wire: 'request',
|
|
1872
|
+
source: 'json',
|
|
1873
|
+
codec: {
|
|
1874
|
+
mode: 'strict',
|
|
1875
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanAddExperienceRequest',
|
|
1876
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddExperience_parameter_1$schema,
|
|
1877
|
+
},
|
|
1878
|
+
},
|
|
1879
|
+
],
|
|
1880
|
+
result: {
|
|
1881
|
+
mode: 'strict',
|
|
1882
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
1883
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddExperience_result$schema,
|
|
1884
|
+
},
|
|
1885
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":307,"column":3},
|
|
1886
|
+
},
|
|
1887
|
+
{
|
|
1888
|
+
id: 'dsh-daoing-memory#memory/humanAddFact',
|
|
1889
|
+
service: 'memory',
|
|
1890
|
+
namespace: 'memory',
|
|
1891
|
+
method: 'humanAddFact',
|
|
1892
|
+
invocation: { kind: 'direct' },
|
|
1893
|
+
scope: {
|
|
1894
|
+
context: 'agent',
|
|
1895
|
+
wire: 'agentId',
|
|
1896
|
+
},
|
|
1897
|
+
parameters: [
|
|
1898
|
+
{
|
|
1899
|
+
name: 'agent',
|
|
1900
|
+
wire: 'agentId',
|
|
1901
|
+
source: 'lookup',
|
|
1902
|
+
lookup: 'agent',
|
|
1903
|
+
codec: {
|
|
1904
|
+
mode: 'strict',
|
|
1905
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1906
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddFact_parameter_0$schema,
|
|
1907
|
+
},
|
|
1908
|
+
},
|
|
1909
|
+
{
|
|
1910
|
+
name: 'request',
|
|
1911
|
+
wire: 'request',
|
|
1912
|
+
source: 'json',
|
|
1913
|
+
codec: {
|
|
1914
|
+
mode: 'strict',
|
|
1915
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanAddFactRequest',
|
|
1916
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddFact_parameter_1$schema,
|
|
1917
|
+
},
|
|
1918
|
+
},
|
|
1919
|
+
],
|
|
1920
|
+
result: {
|
|
1921
|
+
mode: 'strict',
|
|
1922
|
+
typeSymbol: 'dsh-daoing-memory/types#FactEntry',
|
|
1923
|
+
schema: _deepseek_ai_dsh_memory_memory_humanAddFact_result$schema,
|
|
1924
|
+
},
|
|
1925
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":335,"column":3},
|
|
1926
|
+
},
|
|
1927
|
+
{
|
|
1928
|
+
id: 'dsh-daoing-memory#memory/humanConfirmFact',
|
|
1929
|
+
service: 'memory',
|
|
1930
|
+
namespace: 'memory',
|
|
1931
|
+
method: 'humanConfirmFact',
|
|
1932
|
+
invocation: { kind: 'direct' },
|
|
1933
|
+
scope: {
|
|
1934
|
+
context: 'agent',
|
|
1935
|
+
wire: 'agentId',
|
|
1936
|
+
},
|
|
1937
|
+
parameters: [
|
|
1938
|
+
{
|
|
1939
|
+
name: 'agent',
|
|
1940
|
+
wire: 'agentId',
|
|
1941
|
+
source: 'lookup',
|
|
1942
|
+
lookup: 'agent',
|
|
1943
|
+
codec: {
|
|
1944
|
+
mode: 'strict',
|
|
1945
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1946
|
+
schema: _deepseek_ai_dsh_memory_memory_humanConfirmFact_parameter_0$schema,
|
|
1947
|
+
},
|
|
1948
|
+
},
|
|
1949
|
+
{
|
|
1950
|
+
name: 'request',
|
|
1951
|
+
wire: 'request',
|
|
1952
|
+
source: 'json',
|
|
1953
|
+
codec: {
|
|
1954
|
+
mode: 'strict',
|
|
1955
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanConfirmFactRequest',
|
|
1956
|
+
schema: _deepseek_ai_dsh_memory_memory_humanConfirmFact_parameter_1$schema,
|
|
1957
|
+
},
|
|
1958
|
+
},
|
|
1959
|
+
],
|
|
1960
|
+
result: {
|
|
1961
|
+
mode: 'strict',
|
|
1962
|
+
typeSymbol: 'dsh-daoing-memory/types#FactEntry',
|
|
1963
|
+
schema: _deepseek_ai_dsh_memory_memory_humanConfirmFact_result$schema,
|
|
1964
|
+
},
|
|
1965
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":357,"column":3},
|
|
1966
|
+
},
|
|
1967
|
+
{
|
|
1968
|
+
id: 'dsh-daoing-memory#memory/humanDeleteConcern',
|
|
1969
|
+
service: 'memory',
|
|
1970
|
+
namespace: 'memory',
|
|
1971
|
+
method: 'humanDeleteConcern',
|
|
1972
|
+
invocation: { kind: 'direct' },
|
|
1973
|
+
scope: {
|
|
1974
|
+
context: 'agent',
|
|
1975
|
+
wire: 'agentId',
|
|
1976
|
+
},
|
|
1977
|
+
parameters: [
|
|
1978
|
+
{
|
|
1979
|
+
name: 'agent',
|
|
1980
|
+
wire: 'agentId',
|
|
1981
|
+
source: 'lookup',
|
|
1982
|
+
lookup: 'agent',
|
|
1983
|
+
codec: {
|
|
1984
|
+
mode: 'strict',
|
|
1985
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
1986
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteConcern_parameter_0$schema,
|
|
1987
|
+
},
|
|
1988
|
+
},
|
|
1989
|
+
{
|
|
1990
|
+
name: 'request',
|
|
1991
|
+
wire: 'request',
|
|
1992
|
+
source: 'json',
|
|
1993
|
+
codec: {
|
|
1994
|
+
mode: 'strict',
|
|
1995
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanDeleteConcernRequest',
|
|
1996
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteConcern_parameter_1$schema,
|
|
1997
|
+
},
|
|
1998
|
+
},
|
|
1999
|
+
],
|
|
2000
|
+
result: {
|
|
2001
|
+
mode: 'strict',
|
|
2002
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanDeleteConcern:result',
|
|
2003
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteConcern_result$schema,
|
|
2004
|
+
},
|
|
2005
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":379,"column":3},
|
|
2006
|
+
},
|
|
2007
|
+
{
|
|
2008
|
+
id: 'dsh-daoing-memory#memory/humanDeleteExperience',
|
|
2009
|
+
service: 'memory',
|
|
2010
|
+
namespace: 'memory',
|
|
2011
|
+
method: 'humanDeleteExperience',
|
|
2012
|
+
invocation: { kind: 'direct' },
|
|
2013
|
+
scope: {
|
|
2014
|
+
context: 'agent',
|
|
2015
|
+
wire: 'agentId',
|
|
2016
|
+
},
|
|
2017
|
+
parameters: [
|
|
2018
|
+
{
|
|
2019
|
+
name: 'agent',
|
|
2020
|
+
wire: 'agentId',
|
|
2021
|
+
source: 'lookup',
|
|
2022
|
+
lookup: 'agent',
|
|
2023
|
+
codec: {
|
|
2024
|
+
mode: 'strict',
|
|
2025
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2026
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteExperience_parameter_0$schema,
|
|
2027
|
+
},
|
|
2028
|
+
},
|
|
2029
|
+
{
|
|
2030
|
+
name: 'request',
|
|
2031
|
+
wire: 'request',
|
|
2032
|
+
source: 'json',
|
|
2033
|
+
codec: {
|
|
2034
|
+
mode: 'strict',
|
|
2035
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanDeleteExperienceRequest',
|
|
2036
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteExperience_parameter_1$schema,
|
|
2037
|
+
},
|
|
2038
|
+
},
|
|
2039
|
+
],
|
|
2040
|
+
result: {
|
|
2041
|
+
mode: 'strict',
|
|
2042
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanDeleteExperience:result',
|
|
2043
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteExperience_result$schema,
|
|
2044
|
+
},
|
|
2045
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":292,"column":3},
|
|
2046
|
+
},
|
|
2047
|
+
{
|
|
2048
|
+
id: 'dsh-daoing-memory#memory/humanDeleteFact',
|
|
2049
|
+
service: 'memory',
|
|
2050
|
+
namespace: 'memory',
|
|
2051
|
+
method: 'humanDeleteFact',
|
|
2052
|
+
invocation: { kind: 'direct' },
|
|
2053
|
+
scope: {
|
|
2054
|
+
context: 'agent',
|
|
2055
|
+
wire: 'agentId',
|
|
2056
|
+
},
|
|
2057
|
+
parameters: [
|
|
2058
|
+
{
|
|
2059
|
+
name: 'agent',
|
|
2060
|
+
wire: 'agentId',
|
|
2061
|
+
source: 'lookup',
|
|
2062
|
+
lookup: 'agent',
|
|
2063
|
+
codec: {
|
|
2064
|
+
mode: 'strict',
|
|
2065
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2066
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteFact_parameter_0$schema,
|
|
2067
|
+
},
|
|
2068
|
+
},
|
|
2069
|
+
{
|
|
2070
|
+
name: 'request',
|
|
2071
|
+
wire: 'request',
|
|
2072
|
+
source: 'json',
|
|
2073
|
+
codec: {
|
|
2074
|
+
mode: 'strict',
|
|
2075
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanDeleteFactRequest',
|
|
2076
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteFact_parameter_1$schema,
|
|
2077
|
+
},
|
|
2078
|
+
},
|
|
2079
|
+
],
|
|
2080
|
+
result: {
|
|
2081
|
+
mode: 'strict',
|
|
2082
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanDeleteFact:result',
|
|
2083
|
+
schema: _deepseek_ai_dsh_memory_memory_humanDeleteFact_result$schema,
|
|
2084
|
+
},
|
|
2085
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":349,"column":3},
|
|
2086
|
+
},
|
|
2087
|
+
{
|
|
2088
|
+
id: 'dsh-daoing-memory#memory/humanEditExperience',
|
|
2089
|
+
service: 'memory',
|
|
2090
|
+
namespace: 'memory',
|
|
2091
|
+
method: 'humanEditExperience',
|
|
2092
|
+
invocation: { kind: 'direct' },
|
|
2093
|
+
scope: {
|
|
2094
|
+
context: 'agent',
|
|
2095
|
+
wire: 'agentId',
|
|
2096
|
+
},
|
|
2097
|
+
parameters: [
|
|
2098
|
+
{
|
|
2099
|
+
name: 'agent',
|
|
2100
|
+
wire: 'agentId',
|
|
2101
|
+
source: 'lookup',
|
|
2102
|
+
lookup: 'agent',
|
|
2103
|
+
codec: {
|
|
2104
|
+
mode: 'strict',
|
|
2105
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2106
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditExperience_parameter_0$schema,
|
|
2107
|
+
},
|
|
2108
|
+
},
|
|
2109
|
+
{
|
|
2110
|
+
name: 'request',
|
|
2111
|
+
wire: 'request',
|
|
2112
|
+
source: 'json',
|
|
2113
|
+
codec: {
|
|
2114
|
+
mode: 'strict',
|
|
2115
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanEditExperienceRequest',
|
|
2116
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditExperience_parameter_1$schema,
|
|
2117
|
+
},
|
|
2118
|
+
},
|
|
2119
|
+
],
|
|
2120
|
+
result: {
|
|
2121
|
+
mode: 'strict',
|
|
2122
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2123
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditExperience_result$schema,
|
|
2124
|
+
},
|
|
2125
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":300,"column":3},
|
|
2126
|
+
},
|
|
2127
|
+
{
|
|
2128
|
+
id: 'dsh-daoing-memory#memory/humanEditFact',
|
|
2129
|
+
service: 'memory',
|
|
2130
|
+
namespace: 'memory',
|
|
2131
|
+
method: 'humanEditFact',
|
|
2132
|
+
invocation: { kind: 'direct' },
|
|
2133
|
+
scope: {
|
|
2134
|
+
context: 'agent',
|
|
2135
|
+
wire: 'agentId',
|
|
2136
|
+
},
|
|
2137
|
+
parameters: [
|
|
2138
|
+
{
|
|
2139
|
+
name: 'agent',
|
|
2140
|
+
wire: 'agentId',
|
|
2141
|
+
source: 'lookup',
|
|
2142
|
+
lookup: 'agent',
|
|
2143
|
+
codec: {
|
|
2144
|
+
mode: 'strict',
|
|
2145
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2146
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditFact_parameter_0$schema,
|
|
2147
|
+
},
|
|
2148
|
+
},
|
|
2149
|
+
{
|
|
2150
|
+
name: 'request',
|
|
2151
|
+
wire: 'request',
|
|
2152
|
+
source: 'json',
|
|
2153
|
+
codec: {
|
|
2154
|
+
mode: 'strict',
|
|
2155
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanEditFactRequest',
|
|
2156
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditFact_parameter_1$schema,
|
|
2157
|
+
},
|
|
2158
|
+
},
|
|
2159
|
+
],
|
|
2160
|
+
result: {
|
|
2161
|
+
mode: 'strict',
|
|
2162
|
+
typeSymbol: 'dsh-daoing-memory/types#FactEntry',
|
|
2163
|
+
schema: _deepseek_ai_dsh_memory_memory_humanEditFact_result$schema,
|
|
2164
|
+
},
|
|
2165
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":342,"column":3},
|
|
2166
|
+
},
|
|
2167
|
+
{
|
|
2168
|
+
id: 'dsh-daoing-memory#memory/humanPin',
|
|
2169
|
+
service: 'memory',
|
|
2170
|
+
namespace: 'memory',
|
|
2171
|
+
method: 'humanPin',
|
|
2172
|
+
invocation: { kind: 'direct' },
|
|
2173
|
+
scope: {
|
|
2174
|
+
context: 'agent',
|
|
2175
|
+
wire: 'agentId',
|
|
2176
|
+
},
|
|
2177
|
+
parameters: [
|
|
2178
|
+
{
|
|
2179
|
+
name: 'agent',
|
|
2180
|
+
wire: 'agentId',
|
|
2181
|
+
source: 'lookup',
|
|
2182
|
+
lookup: 'agent',
|
|
2183
|
+
codec: {
|
|
2184
|
+
mode: 'strict',
|
|
2185
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2186
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPin_parameter_0$schema,
|
|
2187
|
+
},
|
|
2188
|
+
},
|
|
2189
|
+
{
|
|
2190
|
+
name: 'request',
|
|
2191
|
+
wire: 'request',
|
|
2192
|
+
source: 'json',
|
|
2193
|
+
codec: {
|
|
2194
|
+
mode: 'strict',
|
|
2195
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanPinRequest',
|
|
2196
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPin_parameter_1$schema,
|
|
2197
|
+
},
|
|
2198
|
+
},
|
|
2199
|
+
],
|
|
2200
|
+
result: {
|
|
2201
|
+
mode: 'strict',
|
|
2202
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2203
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPin_result$schema,
|
|
2204
|
+
},
|
|
2205
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":285,"column":3},
|
|
2206
|
+
},
|
|
2207
|
+
{
|
|
2208
|
+
id: 'dsh-daoing-memory#memory/humanPromote',
|
|
2209
|
+
service: 'memory',
|
|
2210
|
+
namespace: 'memory',
|
|
2211
|
+
method: 'humanPromote',
|
|
2212
|
+
invocation: { kind: 'direct' },
|
|
2213
|
+
scope: {
|
|
2214
|
+
context: 'agent',
|
|
2215
|
+
wire: 'agentId',
|
|
2216
|
+
},
|
|
2217
|
+
parameters: [
|
|
2218
|
+
{
|
|
2219
|
+
name: 'agent',
|
|
2220
|
+
wire: 'agentId',
|
|
2221
|
+
source: 'lookup',
|
|
2222
|
+
lookup: 'agent',
|
|
2223
|
+
codec: {
|
|
2224
|
+
mode: 'strict',
|
|
2225
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2226
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPromote_parameter_0$schema,
|
|
2227
|
+
},
|
|
2228
|
+
},
|
|
2229
|
+
{
|
|
2230
|
+
name: 'id',
|
|
2231
|
+
wire: 'id',
|
|
2232
|
+
source: 'json',
|
|
2233
|
+
codec: {
|
|
2234
|
+
mode: 'strict',
|
|
2235
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanPromote:id',
|
|
2236
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPromote_parameter_1$schema,
|
|
2237
|
+
},
|
|
2238
|
+
},
|
|
2239
|
+
{
|
|
2240
|
+
name: 'reason',
|
|
2241
|
+
wire: 'reason',
|
|
2242
|
+
source: 'json',
|
|
2243
|
+
codec: {
|
|
2244
|
+
mode: 'strict',
|
|
2245
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanPromote:reason',
|
|
2246
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPromote_parameter_2$schema,
|
|
2247
|
+
},
|
|
2248
|
+
},
|
|
2249
|
+
],
|
|
2250
|
+
result: {
|
|
2251
|
+
mode: 'strict',
|
|
2252
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2253
|
+
schema: _deepseek_ai_dsh_memory_memory_humanPromote_result$schema,
|
|
2254
|
+
},
|
|
2255
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":314,"column":3},
|
|
2256
|
+
},
|
|
2257
|
+
{
|
|
2258
|
+
id: 'dsh-daoing-memory#memory/humanReleaseCold',
|
|
2259
|
+
service: 'memory',
|
|
2260
|
+
namespace: 'memory',
|
|
2261
|
+
method: 'humanReleaseCold',
|
|
2262
|
+
invocation: { kind: 'direct' },
|
|
2263
|
+
scope: {
|
|
2264
|
+
context: 'agent',
|
|
2265
|
+
wire: 'agentId',
|
|
2266
|
+
},
|
|
2267
|
+
parameters: [
|
|
2268
|
+
{
|
|
2269
|
+
name: 'agent',
|
|
2270
|
+
wire: 'agentId',
|
|
2271
|
+
source: 'lookup',
|
|
2272
|
+
lookup: 'agent',
|
|
2273
|
+
codec: {
|
|
2274
|
+
mode: 'strict',
|
|
2275
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2276
|
+
schema: _deepseek_ai_dsh_memory_memory_humanReleaseCold_parameter_0$schema,
|
|
2277
|
+
},
|
|
2278
|
+
},
|
|
2279
|
+
{
|
|
2280
|
+
name: 'request',
|
|
2281
|
+
wire: 'request',
|
|
2282
|
+
source: 'json',
|
|
2283
|
+
codec: {
|
|
2284
|
+
mode: 'strict',
|
|
2285
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanReleaseColdRequest',
|
|
2286
|
+
schema: _deepseek_ai_dsh_memory_memory_humanReleaseCold_parameter_1$schema,
|
|
2287
|
+
},
|
|
2288
|
+
},
|
|
2289
|
+
],
|
|
2290
|
+
result: {
|
|
2291
|
+
mode: 'strict',
|
|
2292
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2293
|
+
schema: _deepseek_ai_dsh_memory_memory_humanReleaseCold_result$schema,
|
|
2294
|
+
},
|
|
2295
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":321,"column":3},
|
|
2296
|
+
},
|
|
2297
|
+
{
|
|
2298
|
+
id: 'dsh-daoing-memory#memory/humanRollback',
|
|
2299
|
+
service: 'memory',
|
|
2300
|
+
namespace: 'memory',
|
|
2301
|
+
method: 'humanRollback',
|
|
2302
|
+
invocation: { kind: 'direct' },
|
|
2303
|
+
scope: {
|
|
2304
|
+
context: 'agent',
|
|
2305
|
+
wire: 'agentId',
|
|
2306
|
+
},
|
|
2307
|
+
parameters: [
|
|
2308
|
+
{
|
|
2309
|
+
name: 'agent',
|
|
2310
|
+
wire: 'agentId',
|
|
2311
|
+
source: 'lookup',
|
|
2312
|
+
lookup: 'agent',
|
|
2313
|
+
codec: {
|
|
2314
|
+
mode: 'strict',
|
|
2315
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2316
|
+
schema: _deepseek_ai_dsh_memory_memory_humanRollback_parameter_0$schema,
|
|
2317
|
+
},
|
|
2318
|
+
},
|
|
2319
|
+
{
|
|
2320
|
+
name: 'request',
|
|
2321
|
+
wire: 'request',
|
|
2322
|
+
source: 'json',
|
|
2323
|
+
codec: {
|
|
2324
|
+
mode: 'strict',
|
|
2325
|
+
typeSymbol: 'dsh-daoing-memory/types#RollbackExperienceRequest',
|
|
2326
|
+
schema: _deepseek_ai_dsh_memory_memory_humanRollback_parameter_1$schema,
|
|
2327
|
+
},
|
|
2328
|
+
},
|
|
2329
|
+
],
|
|
2330
|
+
result: {
|
|
2331
|
+
mode: 'strict',
|
|
2332
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2333
|
+
schema: _deepseek_ai_dsh_memory_memory_humanRollback_result$schema,
|
|
2334
|
+
},
|
|
2335
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":328,"column":3},
|
|
2336
|
+
},
|
|
2337
|
+
{
|
|
2338
|
+
id: 'dsh-daoing-memory#memory/humanSetConcernStatus',
|
|
2339
|
+
service: 'memory',
|
|
2340
|
+
namespace: 'memory',
|
|
2341
|
+
method: 'humanSetConcernStatus',
|
|
2342
|
+
invocation: { kind: 'direct' },
|
|
2343
|
+
scope: {
|
|
2344
|
+
context: 'agent',
|
|
2345
|
+
wire: 'agentId',
|
|
2346
|
+
},
|
|
2347
|
+
parameters: [
|
|
2348
|
+
{
|
|
2349
|
+
name: 'agent',
|
|
2350
|
+
wire: 'agentId',
|
|
2351
|
+
source: 'lookup',
|
|
2352
|
+
lookup: 'agent',
|
|
2353
|
+
codec: {
|
|
2354
|
+
mode: 'strict',
|
|
2355
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2356
|
+
schema: _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_parameter_0$schema,
|
|
2357
|
+
},
|
|
2358
|
+
},
|
|
2359
|
+
{
|
|
2360
|
+
name: 'request',
|
|
2361
|
+
wire: 'request',
|
|
2362
|
+
source: 'json',
|
|
2363
|
+
codec: {
|
|
2364
|
+
mode: 'strict',
|
|
2365
|
+
typeSymbol: 'dsh-daoing-memory/types#HumanSetConcernStatusRequest',
|
|
2366
|
+
schema: _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_parameter_1$schema,
|
|
2367
|
+
},
|
|
2368
|
+
},
|
|
2369
|
+
],
|
|
2370
|
+
result: {
|
|
2371
|
+
mode: 'strict',
|
|
2372
|
+
typeSymbol: 'dsh-daoing-memory#memory/humanSetConcernStatus:result',
|
|
2373
|
+
schema: _deepseek_ai_dsh_memory_memory_humanSetConcernStatus_result$schema,
|
|
2374
|
+
},
|
|
2375
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":371,"column":3},
|
|
2376
|
+
},
|
|
2377
|
+
{
|
|
2378
|
+
id: 'dsh-daoing-memory#memory/ingest',
|
|
2379
|
+
service: 'memory',
|
|
2380
|
+
namespace: 'memory',
|
|
2381
|
+
method: 'ingest',
|
|
2382
|
+
invocation: { kind: 'direct' },
|
|
2383
|
+
scope: {
|
|
2384
|
+
context: 'agent',
|
|
2385
|
+
wire: 'agentId',
|
|
2386
|
+
},
|
|
2387
|
+
parameters: [
|
|
2388
|
+
{
|
|
2389
|
+
name: 'agent',
|
|
2390
|
+
wire: 'agentId',
|
|
2391
|
+
source: 'lookup',
|
|
2392
|
+
lookup: 'agent',
|
|
2393
|
+
codec: {
|
|
2394
|
+
mode: 'strict',
|
|
2395
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2396
|
+
schema: _deepseek_ai_dsh_memory_memory_ingest_parameter_0$schema,
|
|
2397
|
+
},
|
|
2398
|
+
},
|
|
2399
|
+
{
|
|
2400
|
+
name: 'request',
|
|
2401
|
+
wire: 'request',
|
|
2402
|
+
source: 'json',
|
|
2403
|
+
codec: {
|
|
2404
|
+
mode: 'strict',
|
|
2405
|
+
typeSymbol: 'dsh-daoing-memory/types#IngestRequest',
|
|
2406
|
+
schema: _deepseek_ai_dsh_memory_memory_ingest_parameter_1$schema,
|
|
2407
|
+
},
|
|
2408
|
+
},
|
|
2409
|
+
],
|
|
2410
|
+
result: {
|
|
2411
|
+
mode: 'strict',
|
|
2412
|
+
typeSymbol: 'dsh-daoing-memory/types#IngestResult',
|
|
2413
|
+
schema: _deepseek_ai_dsh_memory_memory_ingest_result$schema,
|
|
2414
|
+
},
|
|
2415
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":100,"column":3},
|
|
2416
|
+
},
|
|
2417
|
+
{
|
|
2418
|
+
id: 'dsh-daoing-memory#memory/ledgerQuery',
|
|
2419
|
+
service: 'memory',
|
|
2420
|
+
namespace: 'memory',
|
|
2421
|
+
method: 'ledgerQuery',
|
|
2422
|
+
invocation: { kind: 'direct' },
|
|
2423
|
+
scope: {
|
|
2424
|
+
context: 'agent',
|
|
2425
|
+
wire: 'agentId',
|
|
2426
|
+
},
|
|
2427
|
+
parameters: [
|
|
2428
|
+
{
|
|
2429
|
+
name: 'agent',
|
|
2430
|
+
wire: 'agentId',
|
|
2431
|
+
source: 'lookup',
|
|
2432
|
+
lookup: 'agent',
|
|
2433
|
+
codec: {
|
|
2434
|
+
mode: 'strict',
|
|
2435
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2436
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQuery_parameter_0$schema,
|
|
2437
|
+
},
|
|
2438
|
+
},
|
|
2439
|
+
{
|
|
2440
|
+
name: 'request',
|
|
2441
|
+
wire: 'request',
|
|
2442
|
+
source: 'json',
|
|
2443
|
+
codec: {
|
|
2444
|
+
mode: 'strict',
|
|
2445
|
+
typeSymbol: 'dsh-daoing-memory/types#LedgerQueryRequest',
|
|
2446
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQuery_parameter_1$schema,
|
|
2447
|
+
},
|
|
2448
|
+
},
|
|
2449
|
+
],
|
|
2450
|
+
result: {
|
|
2451
|
+
mode: 'strict',
|
|
2452
|
+
typeSymbol: 'dsh-daoing-memory#memory/ledgerQuery:result',
|
|
2453
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQuery_result$schema,
|
|
2454
|
+
},
|
|
2455
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":232,"column":3},
|
|
2456
|
+
},
|
|
2457
|
+
{
|
|
2458
|
+
id: 'dsh-daoing-memory#memory/ledgerQueryCount',
|
|
2459
|
+
service: 'memory',
|
|
2460
|
+
namespace: 'memory',
|
|
2461
|
+
method: 'ledgerQueryCount',
|
|
2462
|
+
invocation: { kind: 'direct' },
|
|
2463
|
+
scope: {
|
|
2464
|
+
context: 'agent',
|
|
2465
|
+
wire: 'agentId',
|
|
2466
|
+
},
|
|
2467
|
+
parameters: [
|
|
2468
|
+
{
|
|
2469
|
+
name: 'agent',
|
|
2470
|
+
wire: 'agentId',
|
|
2471
|
+
source: 'lookup',
|
|
2472
|
+
lookup: 'agent',
|
|
2473
|
+
codec: {
|
|
2474
|
+
mode: 'strict',
|
|
2475
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2476
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQueryCount_parameter_0$schema,
|
|
2477
|
+
},
|
|
2478
|
+
},
|
|
2479
|
+
{
|
|
2480
|
+
name: 'request',
|
|
2481
|
+
wire: 'request',
|
|
2482
|
+
source: 'json',
|
|
2483
|
+
codec: {
|
|
2484
|
+
mode: 'strict',
|
|
2485
|
+
typeSymbol: 'dsh-daoing-memory/types#LedgerQueryRequest',
|
|
2486
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQueryCount_parameter_1$schema,
|
|
2487
|
+
},
|
|
2488
|
+
},
|
|
2489
|
+
],
|
|
2490
|
+
result: {
|
|
2491
|
+
mode: 'strict',
|
|
2492
|
+
typeSymbol: 'dsh-daoing-memory#memory/ledgerQueryCount:result',
|
|
2493
|
+
schema: _deepseek_ai_dsh_memory_memory_ledgerQueryCount_result$schema,
|
|
2494
|
+
},
|
|
2495
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":239,"column":3},
|
|
2496
|
+
},
|
|
2497
|
+
{
|
|
2498
|
+
id: 'dsh-daoing-memory#memory/list',
|
|
2499
|
+
service: 'memory',
|
|
2500
|
+
namespace: 'memory',
|
|
2501
|
+
method: 'list',
|
|
2502
|
+
invocation: { kind: 'direct' },
|
|
2503
|
+
scope: {
|
|
2504
|
+
context: 'agent',
|
|
2505
|
+
wire: 'agentId',
|
|
2506
|
+
},
|
|
2507
|
+
parameters: [
|
|
2508
|
+
{
|
|
2509
|
+
name: 'agent',
|
|
2510
|
+
wire: 'agentId',
|
|
2511
|
+
source: 'lookup',
|
|
2512
|
+
lookup: 'agent',
|
|
2513
|
+
codec: {
|
|
2514
|
+
mode: 'strict',
|
|
2515
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2516
|
+
schema: _deepseek_ai_dsh_memory_memory_list_parameter_0$schema,
|
|
2517
|
+
},
|
|
2518
|
+
},
|
|
2519
|
+
{
|
|
2520
|
+
name: 'filter',
|
|
2521
|
+
wire: 'filter',
|
|
2522
|
+
source: 'json',
|
|
2523
|
+
codec: {
|
|
2524
|
+
mode: 'strict',
|
|
2525
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceListFilter',
|
|
2526
|
+
schema: _deepseek_ai_dsh_memory_memory_list_parameter_1$schema,
|
|
2527
|
+
},
|
|
2528
|
+
},
|
|
2529
|
+
],
|
|
2530
|
+
result: {
|
|
2531
|
+
mode: 'strict',
|
|
2532
|
+
typeSymbol: 'dsh-daoing-memory#memory/list:result',
|
|
2533
|
+
schema: _deepseek_ai_dsh_memory_memory_list_result$schema,
|
|
2534
|
+
},
|
|
2535
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":131,"column":3},
|
|
2536
|
+
},
|
|
2537
|
+
{
|
|
2538
|
+
id: 'dsh-daoing-memory#memory/listConcerns',
|
|
2539
|
+
service: 'memory',
|
|
2540
|
+
namespace: 'memory',
|
|
2541
|
+
method: 'listConcerns',
|
|
2542
|
+
invocation: { kind: 'direct' },
|
|
2543
|
+
scope: {
|
|
2544
|
+
context: 'agent',
|
|
2545
|
+
wire: 'agentId',
|
|
2546
|
+
},
|
|
2547
|
+
parameters: [
|
|
2548
|
+
{
|
|
2549
|
+
name: 'agent',
|
|
2550
|
+
wire: 'agentId',
|
|
2551
|
+
source: 'lookup',
|
|
2552
|
+
lookup: 'agent',
|
|
2553
|
+
codec: {
|
|
2554
|
+
mode: 'strict',
|
|
2555
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2556
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_parameter_0$schema,
|
|
2557
|
+
},
|
|
2558
|
+
},
|
|
2559
|
+
{
|
|
2560
|
+
name: 'kind',
|
|
2561
|
+
wire: 'kind',
|
|
2562
|
+
source: 'json',
|
|
2563
|
+
codec: {
|
|
2564
|
+
mode: 'strict',
|
|
2565
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcerns:kind',
|
|
2566
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_parameter_1$schema,
|
|
2567
|
+
},
|
|
2568
|
+
},
|
|
2569
|
+
{
|
|
2570
|
+
name: 'status',
|
|
2571
|
+
wire: 'status',
|
|
2572
|
+
source: 'json',
|
|
2573
|
+
codec: {
|
|
2574
|
+
mode: 'strict',
|
|
2575
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcerns:status',
|
|
2576
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_parameter_2$schema,
|
|
2577
|
+
},
|
|
2578
|
+
},
|
|
2579
|
+
{
|
|
2580
|
+
name: 'limit',
|
|
2581
|
+
wire: 'limit',
|
|
2582
|
+
source: 'json',
|
|
2583
|
+
codec: {
|
|
2584
|
+
mode: 'strict',
|
|
2585
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcerns:limit',
|
|
2586
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_parameter_3$schema,
|
|
2587
|
+
},
|
|
2588
|
+
},
|
|
2589
|
+
{
|
|
2590
|
+
name: 'offset',
|
|
2591
|
+
wire: 'offset',
|
|
2592
|
+
source: 'json',
|
|
2593
|
+
codec: {
|
|
2594
|
+
mode: 'strict',
|
|
2595
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcerns:offset',
|
|
2596
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_parameter_4$schema,
|
|
2597
|
+
},
|
|
2598
|
+
},
|
|
2599
|
+
],
|
|
2600
|
+
result: {
|
|
2601
|
+
mode: 'strict',
|
|
2602
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcerns:result',
|
|
2603
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcerns_result$schema,
|
|
2604
|
+
},
|
|
2605
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":185,"column":3},
|
|
2606
|
+
},
|
|
2607
|
+
{
|
|
2608
|
+
id: 'dsh-daoing-memory#memory/listConcernsCount',
|
|
2609
|
+
service: 'memory',
|
|
2610
|
+
namespace: 'memory',
|
|
2611
|
+
method: 'listConcernsCount',
|
|
2612
|
+
invocation: { kind: 'direct' },
|
|
2613
|
+
scope: {
|
|
2614
|
+
context: 'agent',
|
|
2615
|
+
wire: 'agentId',
|
|
2616
|
+
},
|
|
2617
|
+
parameters: [
|
|
2618
|
+
{
|
|
2619
|
+
name: 'agent',
|
|
2620
|
+
wire: 'agentId',
|
|
2621
|
+
source: 'lookup',
|
|
2622
|
+
lookup: 'agent',
|
|
2623
|
+
codec: {
|
|
2624
|
+
mode: 'strict',
|
|
2625
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2626
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_0$schema,
|
|
2627
|
+
},
|
|
2628
|
+
},
|
|
2629
|
+
{
|
|
2630
|
+
name: 'kind',
|
|
2631
|
+
wire: 'kind',
|
|
2632
|
+
source: 'json',
|
|
2633
|
+
codec: {
|
|
2634
|
+
mode: 'strict',
|
|
2635
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcernsCount:kind',
|
|
2636
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_1$schema,
|
|
2637
|
+
},
|
|
2638
|
+
},
|
|
2639
|
+
{
|
|
2640
|
+
name: 'status',
|
|
2641
|
+
wire: 'status',
|
|
2642
|
+
source: 'json',
|
|
2643
|
+
codec: {
|
|
2644
|
+
mode: 'strict',
|
|
2645
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcernsCount:status',
|
|
2646
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcernsCount_parameter_2$schema,
|
|
2647
|
+
},
|
|
2648
|
+
},
|
|
2649
|
+
],
|
|
2650
|
+
result: {
|
|
2651
|
+
mode: 'strict',
|
|
2652
|
+
typeSymbol: 'dsh-daoing-memory#memory/listConcernsCount:result',
|
|
2653
|
+
schema: _deepseek_ai_dsh_memory_memory_listConcernsCount_result$schema,
|
|
2654
|
+
},
|
|
2655
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":192,"column":3},
|
|
2656
|
+
},
|
|
2657
|
+
{
|
|
2658
|
+
id: 'dsh-daoing-memory#memory/listDiary',
|
|
2659
|
+
service: 'memory',
|
|
2660
|
+
namespace: 'memory',
|
|
2661
|
+
method: 'listDiary',
|
|
2662
|
+
invocation: { kind: 'direct' },
|
|
2663
|
+
scope: {
|
|
2664
|
+
context: 'agent',
|
|
2665
|
+
wire: 'agentId',
|
|
2666
|
+
},
|
|
2667
|
+
parameters: [
|
|
2668
|
+
{
|
|
2669
|
+
name: 'agent',
|
|
2670
|
+
wire: 'agentId',
|
|
2671
|
+
source: 'lookup',
|
|
2672
|
+
lookup: 'agent',
|
|
2673
|
+
codec: {
|
|
2674
|
+
mode: 'strict',
|
|
2675
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2676
|
+
schema: _deepseek_ai_dsh_memory_memory_listDiary_parameter_0$schema,
|
|
2677
|
+
},
|
|
2678
|
+
},
|
|
2679
|
+
{
|
|
2680
|
+
name: 'limit',
|
|
2681
|
+
wire: 'limit',
|
|
2682
|
+
source: 'json',
|
|
2683
|
+
codec: {
|
|
2684
|
+
mode: 'strict',
|
|
2685
|
+
typeSymbol: 'dsh-daoing-memory#memory/listDiary:limit',
|
|
2686
|
+
schema: _deepseek_ai_dsh_memory_memory_listDiary_parameter_1$schema,
|
|
2687
|
+
},
|
|
2688
|
+
},
|
|
2689
|
+
{
|
|
2690
|
+
name: 'offset',
|
|
2691
|
+
wire: 'offset',
|
|
2692
|
+
source: 'json',
|
|
2693
|
+
codec: {
|
|
2694
|
+
mode: 'strict',
|
|
2695
|
+
typeSymbol: 'dsh-daoing-memory#memory/listDiary:offset',
|
|
2696
|
+
schema: _deepseek_ai_dsh_memory_memory_listDiary_parameter_2$schema,
|
|
2697
|
+
},
|
|
2698
|
+
},
|
|
2699
|
+
{
|
|
2700
|
+
name: 'onlyUnextracted',
|
|
2701
|
+
wire: 'onlyUnextracted',
|
|
2702
|
+
source: 'json',
|
|
2703
|
+
codec: {
|
|
2704
|
+
mode: 'strict',
|
|
2705
|
+
typeSymbol: 'dsh-daoing-memory#memory/listDiary:onlyUnextracted',
|
|
2706
|
+
schema: _deepseek_ai_dsh_memory_memory_listDiary_parameter_3$schema,
|
|
2707
|
+
},
|
|
2708
|
+
},
|
|
2709
|
+
],
|
|
2710
|
+
result: {
|
|
2711
|
+
mode: 'strict',
|
|
2712
|
+
typeSymbol: 'dsh-daoing-memory#memory/listDiary:result',
|
|
2713
|
+
schema: _deepseek_ai_dsh_memory_memory_listDiary_result$schema,
|
|
2714
|
+
},
|
|
2715
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":157,"column":3},
|
|
2716
|
+
},
|
|
2717
|
+
{
|
|
2718
|
+
id: 'dsh-daoing-memory#memory/listFacts',
|
|
2719
|
+
service: 'memory',
|
|
2720
|
+
namespace: 'memory',
|
|
2721
|
+
method: 'listFacts',
|
|
2722
|
+
invocation: { kind: 'direct' },
|
|
2723
|
+
scope: {
|
|
2724
|
+
context: 'agent',
|
|
2725
|
+
wire: 'agentId',
|
|
2726
|
+
},
|
|
2727
|
+
parameters: [
|
|
2728
|
+
{
|
|
2729
|
+
name: 'agent',
|
|
2730
|
+
wire: 'agentId',
|
|
2731
|
+
source: 'lookup',
|
|
2732
|
+
lookup: 'agent',
|
|
2733
|
+
codec: {
|
|
2734
|
+
mode: 'strict',
|
|
2735
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2736
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_parameter_0$schema,
|
|
2737
|
+
},
|
|
2738
|
+
},
|
|
2739
|
+
{
|
|
2740
|
+
name: 'category',
|
|
2741
|
+
wire: 'category',
|
|
2742
|
+
source: 'json',
|
|
2743
|
+
codec: {
|
|
2744
|
+
mode: 'strict',
|
|
2745
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFacts:category',
|
|
2746
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_parameter_1$schema,
|
|
2747
|
+
},
|
|
2748
|
+
},
|
|
2749
|
+
{
|
|
2750
|
+
name: 'includeHistory',
|
|
2751
|
+
wire: 'includeHistory',
|
|
2752
|
+
source: 'json',
|
|
2753
|
+
codec: {
|
|
2754
|
+
mode: 'strict',
|
|
2755
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFacts:includeHistory',
|
|
2756
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_parameter_2$schema,
|
|
2757
|
+
},
|
|
2758
|
+
},
|
|
2759
|
+
{
|
|
2760
|
+
name: 'limit',
|
|
2761
|
+
wire: 'limit',
|
|
2762
|
+
source: 'json',
|
|
2763
|
+
codec: {
|
|
2764
|
+
mode: 'strict',
|
|
2765
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFacts:limit',
|
|
2766
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_parameter_3$schema,
|
|
2767
|
+
},
|
|
2768
|
+
},
|
|
2769
|
+
{
|
|
2770
|
+
name: 'offset',
|
|
2771
|
+
wire: 'offset',
|
|
2772
|
+
source: 'json',
|
|
2773
|
+
codec: {
|
|
2774
|
+
mode: 'strict',
|
|
2775
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFacts:offset',
|
|
2776
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_parameter_4$schema,
|
|
2777
|
+
},
|
|
2778
|
+
},
|
|
2779
|
+
],
|
|
2780
|
+
result: {
|
|
2781
|
+
mode: 'strict',
|
|
2782
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFacts:result',
|
|
2783
|
+
schema: _deepseek_ai_dsh_memory_memory_listFacts_result$schema,
|
|
2784
|
+
},
|
|
2785
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":171,"column":3},
|
|
2786
|
+
},
|
|
2787
|
+
{
|
|
2788
|
+
id: 'dsh-daoing-memory#memory/listFactsCount',
|
|
2789
|
+
service: 'memory',
|
|
2790
|
+
namespace: 'memory',
|
|
2791
|
+
method: 'listFactsCount',
|
|
2792
|
+
invocation: { kind: 'direct' },
|
|
2793
|
+
scope: {
|
|
2794
|
+
context: 'agent',
|
|
2795
|
+
wire: 'agentId',
|
|
2796
|
+
},
|
|
2797
|
+
parameters: [
|
|
2798
|
+
{
|
|
2799
|
+
name: 'agent',
|
|
2800
|
+
wire: 'agentId',
|
|
2801
|
+
source: 'lookup',
|
|
2802
|
+
lookup: 'agent',
|
|
2803
|
+
codec: {
|
|
2804
|
+
mode: 'strict',
|
|
2805
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2806
|
+
schema: _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_0$schema,
|
|
2807
|
+
},
|
|
2808
|
+
},
|
|
2809
|
+
{
|
|
2810
|
+
name: 'category',
|
|
2811
|
+
wire: 'category',
|
|
2812
|
+
source: 'json',
|
|
2813
|
+
codec: {
|
|
2814
|
+
mode: 'strict',
|
|
2815
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFactsCount:category',
|
|
2816
|
+
schema: _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_1$schema,
|
|
2817
|
+
},
|
|
2818
|
+
},
|
|
2819
|
+
{
|
|
2820
|
+
name: 'includeHistory',
|
|
2821
|
+
wire: 'includeHistory',
|
|
2822
|
+
source: 'json',
|
|
2823
|
+
codec: {
|
|
2824
|
+
mode: 'strict',
|
|
2825
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFactsCount:includeHistory',
|
|
2826
|
+
schema: _deepseek_ai_dsh_memory_memory_listFactsCount_parameter_2$schema,
|
|
2827
|
+
},
|
|
2828
|
+
},
|
|
2829
|
+
],
|
|
2830
|
+
result: {
|
|
2831
|
+
mode: 'strict',
|
|
2832
|
+
typeSymbol: 'dsh-daoing-memory#memory/listFactsCount:result',
|
|
2833
|
+
schema: _deepseek_ai_dsh_memory_memory_listFactsCount_result$schema,
|
|
2834
|
+
},
|
|
2835
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":178,"column":3},
|
|
2836
|
+
},
|
|
2837
|
+
{
|
|
2838
|
+
id: 'dsh-daoing-memory#memory/recall',
|
|
2839
|
+
service: 'memory',
|
|
2840
|
+
namespace: 'memory',
|
|
2841
|
+
method: 'recall',
|
|
2842
|
+
invocation: { kind: 'direct' },
|
|
2843
|
+
scope: {
|
|
2844
|
+
context: 'agent',
|
|
2845
|
+
wire: 'agentId',
|
|
2846
|
+
},
|
|
2847
|
+
parameters: [
|
|
2848
|
+
{
|
|
2849
|
+
name: 'agent',
|
|
2850
|
+
wire: 'agentId',
|
|
2851
|
+
source: 'lookup',
|
|
2852
|
+
lookup: 'agent',
|
|
2853
|
+
codec: {
|
|
2854
|
+
mode: 'strict',
|
|
2855
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2856
|
+
schema: _deepseek_ai_dsh_memory_memory_recall_parameter_0$schema,
|
|
2857
|
+
},
|
|
2858
|
+
},
|
|
2859
|
+
{
|
|
2860
|
+
name: 'request',
|
|
2861
|
+
wire: 'request',
|
|
2862
|
+
source: 'json',
|
|
2863
|
+
codec: {
|
|
2864
|
+
mode: 'strict',
|
|
2865
|
+
typeSymbol: 'dsh-daoing-memory/types#RecallExperiencesRequest',
|
|
2866
|
+
schema: _deepseek_ai_dsh_memory_memory_recall_parameter_1$schema,
|
|
2867
|
+
},
|
|
2868
|
+
},
|
|
2869
|
+
],
|
|
2870
|
+
result: {
|
|
2871
|
+
mode: 'strict',
|
|
2872
|
+
typeSymbol: 'dsh-daoing-memory/types#RecallExperiencesResult',
|
|
2873
|
+
schema: _deepseek_ai_dsh_memory_memory_recall_result$schema,
|
|
2874
|
+
},
|
|
2875
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":88,"column":3},
|
|
2876
|
+
},
|
|
2877
|
+
{
|
|
2878
|
+
id: 'dsh-daoing-memory#memory/refine',
|
|
2879
|
+
service: 'memory',
|
|
2880
|
+
namespace: 'memory',
|
|
2881
|
+
method: 'refine',
|
|
2882
|
+
invocation: { kind: 'direct' },
|
|
2883
|
+
scope: {
|
|
2884
|
+
context: 'agent',
|
|
2885
|
+
wire: 'agentId',
|
|
2886
|
+
},
|
|
2887
|
+
parameters: [
|
|
2888
|
+
{
|
|
2889
|
+
name: 'agent',
|
|
2890
|
+
wire: 'agentId',
|
|
2891
|
+
source: 'lookup',
|
|
2892
|
+
lookup: 'agent',
|
|
2893
|
+
codec: {
|
|
2894
|
+
mode: 'strict',
|
|
2895
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2896
|
+
schema: _deepseek_ai_dsh_memory_memory_refine_parameter_0$schema,
|
|
2897
|
+
},
|
|
2898
|
+
},
|
|
2899
|
+
{
|
|
2900
|
+
name: 'request',
|
|
2901
|
+
wire: 'request',
|
|
2902
|
+
source: 'json',
|
|
2903
|
+
codec: {
|
|
2904
|
+
mode: 'strict',
|
|
2905
|
+
typeSymbol: 'dsh-daoing-memory/types#RefineExperienceRequest',
|
|
2906
|
+
schema: _deepseek_ai_dsh_memory_memory_refine_parameter_1$schema,
|
|
2907
|
+
},
|
|
2908
|
+
},
|
|
2909
|
+
],
|
|
2910
|
+
result: {
|
|
2911
|
+
mode: 'strict',
|
|
2912
|
+
typeSymbol: 'dsh-daoing-memory/types#RefineExperienceResult',
|
|
2913
|
+
schema: _deepseek_ai_dsh_memory_memory_refine_result$schema,
|
|
2914
|
+
},
|
|
2915
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":82,"column":3},
|
|
2916
|
+
},
|
|
2917
|
+
{
|
|
2918
|
+
id: 'dsh-daoing-memory#memory/report',
|
|
2919
|
+
service: 'memory',
|
|
2920
|
+
namespace: 'memory',
|
|
2921
|
+
method: 'report',
|
|
2922
|
+
invocation: { kind: 'direct' },
|
|
2923
|
+
scope: {
|
|
2924
|
+
context: 'agent',
|
|
2925
|
+
wire: 'agentId',
|
|
2926
|
+
},
|
|
2927
|
+
parameters: [
|
|
2928
|
+
{
|
|
2929
|
+
name: 'agent',
|
|
2930
|
+
wire: 'agentId',
|
|
2931
|
+
source: 'lookup',
|
|
2932
|
+
lookup: 'agent',
|
|
2933
|
+
codec: {
|
|
2934
|
+
mode: 'strict',
|
|
2935
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2936
|
+
schema: _deepseek_ai_dsh_memory_memory_report_parameter_0$schema,
|
|
2937
|
+
},
|
|
2938
|
+
},
|
|
2939
|
+
{
|
|
2940
|
+
name: 'request',
|
|
2941
|
+
wire: 'request',
|
|
2942
|
+
source: 'json',
|
|
2943
|
+
codec: {
|
|
2944
|
+
mode: 'strict',
|
|
2945
|
+
typeSymbol: 'dsh-daoing-memory/types#ReportUseRequest',
|
|
2946
|
+
schema: _deepseek_ai_dsh_memory_memory_report_parameter_1$schema,
|
|
2947
|
+
},
|
|
2948
|
+
},
|
|
2949
|
+
],
|
|
2950
|
+
result: {
|
|
2951
|
+
mode: 'strict',
|
|
2952
|
+
typeSymbol: 'dsh-daoing-memory/types#ReportUseResult',
|
|
2953
|
+
schema: _deepseek_ai_dsh_memory_memory_report_result$schema,
|
|
2954
|
+
},
|
|
2955
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":94,"column":3},
|
|
2956
|
+
},
|
|
2957
|
+
{
|
|
2958
|
+
id: 'dsh-daoing-memory#memory/revise',
|
|
2959
|
+
service: 'memory',
|
|
2960
|
+
namespace: 'memory',
|
|
2961
|
+
method: 'revise',
|
|
2962
|
+
invocation: { kind: 'direct' },
|
|
2963
|
+
scope: {
|
|
2964
|
+
context: 'agent',
|
|
2965
|
+
wire: 'agentId',
|
|
2966
|
+
},
|
|
2967
|
+
parameters: [
|
|
2968
|
+
{
|
|
2969
|
+
name: 'agent',
|
|
2970
|
+
wire: 'agentId',
|
|
2971
|
+
source: 'lookup',
|
|
2972
|
+
lookup: 'agent',
|
|
2973
|
+
codec: {
|
|
2974
|
+
mode: 'strict',
|
|
2975
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
2976
|
+
schema: _deepseek_ai_dsh_memory_memory_revise_parameter_0$schema,
|
|
2977
|
+
},
|
|
2978
|
+
},
|
|
2979
|
+
{
|
|
2980
|
+
name: 'request',
|
|
2981
|
+
wire: 'request',
|
|
2982
|
+
source: 'json',
|
|
2983
|
+
codec: {
|
|
2984
|
+
mode: 'strict',
|
|
2985
|
+
typeSymbol: 'dsh-daoing-memory/types#ReviseExperienceRequest',
|
|
2986
|
+
schema: _deepseek_ai_dsh_memory_memory_revise_parameter_1$schema,
|
|
2987
|
+
},
|
|
2988
|
+
},
|
|
2989
|
+
],
|
|
2990
|
+
result: {
|
|
2991
|
+
mode: 'strict',
|
|
2992
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
2993
|
+
schema: _deepseek_ai_dsh_memory_memory_revise_result$schema,
|
|
2994
|
+
},
|
|
2995
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":106,"column":3},
|
|
2996
|
+
},
|
|
2997
|
+
{
|
|
2998
|
+
id: 'dsh-daoing-memory#memory/rollback',
|
|
2999
|
+
service: 'memory',
|
|
3000
|
+
namespace: 'memory',
|
|
3001
|
+
method: 'rollback',
|
|
3002
|
+
invocation: { kind: 'direct' },
|
|
3003
|
+
scope: {
|
|
3004
|
+
context: 'agent',
|
|
3005
|
+
wire: 'agentId',
|
|
3006
|
+
},
|
|
3007
|
+
parameters: [
|
|
3008
|
+
{
|
|
3009
|
+
name: 'agent',
|
|
3010
|
+
wire: 'agentId',
|
|
3011
|
+
source: 'lookup',
|
|
3012
|
+
lookup: 'agent',
|
|
3013
|
+
codec: {
|
|
3014
|
+
mode: 'strict',
|
|
3015
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
3016
|
+
schema: _deepseek_ai_dsh_memory_memory_rollback_parameter_0$schema,
|
|
3017
|
+
},
|
|
3018
|
+
},
|
|
3019
|
+
{
|
|
3020
|
+
name: 'request',
|
|
3021
|
+
wire: 'request',
|
|
3022
|
+
source: 'json',
|
|
3023
|
+
codec: {
|
|
3024
|
+
mode: 'strict',
|
|
3025
|
+
typeSymbol: 'dsh-daoing-memory/types#RollbackExperienceRequest',
|
|
3026
|
+
schema: _deepseek_ai_dsh_memory_memory_rollback_parameter_1$schema,
|
|
3027
|
+
},
|
|
3028
|
+
},
|
|
3029
|
+
],
|
|
3030
|
+
result: {
|
|
3031
|
+
mode: 'strict',
|
|
3032
|
+
typeSymbol: 'dsh-daoing-memory/types#ExperienceSnapshot',
|
|
3033
|
+
schema: _deepseek_ai_dsh_memory_memory_rollback_result$schema,
|
|
3034
|
+
},
|
|
3035
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":118,"column":3},
|
|
3036
|
+
},
|
|
3037
|
+
{
|
|
3038
|
+
id: 'dsh-daoing-memory#memory/stats',
|
|
3039
|
+
service: 'memory',
|
|
3040
|
+
namespace: 'memory',
|
|
3041
|
+
method: 'stats',
|
|
3042
|
+
invocation: { kind: 'direct' },
|
|
3043
|
+
scope: {
|
|
3044
|
+
context: 'agent',
|
|
3045
|
+
wire: 'agentId',
|
|
3046
|
+
},
|
|
3047
|
+
parameters: [
|
|
3048
|
+
{
|
|
3049
|
+
name: 'agent',
|
|
3050
|
+
wire: 'agentId',
|
|
3051
|
+
source: 'lookup',
|
|
3052
|
+
lookup: 'agent',
|
|
3053
|
+
codec: {
|
|
3054
|
+
mode: 'strict',
|
|
3055
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
3056
|
+
schema: _deepseek_ai_dsh_memory_memory_stats_parameter_0$schema,
|
|
3057
|
+
},
|
|
3058
|
+
},
|
|
3059
|
+
],
|
|
3060
|
+
result: {
|
|
3061
|
+
mode: 'strict',
|
|
3062
|
+
typeSymbol: 'dsh-daoing-memory/types#MemoryStats',
|
|
3063
|
+
schema: _deepseek_ai_dsh_memory_memory_stats_result$schema,
|
|
3064
|
+
},
|
|
3065
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":253,"column":3},
|
|
3066
|
+
},
|
|
3067
|
+
{
|
|
3068
|
+
id: 'dsh-daoing-memory#memory/verifyLedger',
|
|
3069
|
+
service: 'memory',
|
|
3070
|
+
namespace: 'memory',
|
|
3071
|
+
method: 'verifyLedger',
|
|
3072
|
+
invocation: { kind: 'direct' },
|
|
3073
|
+
scope: {
|
|
3074
|
+
context: 'agent',
|
|
3075
|
+
wire: 'agentId',
|
|
3076
|
+
},
|
|
3077
|
+
parameters: [
|
|
3078
|
+
{
|
|
3079
|
+
name: 'agent',
|
|
3080
|
+
wire: 'agentId',
|
|
3081
|
+
source: 'lookup',
|
|
3082
|
+
lookup: 'agent',
|
|
3083
|
+
codec: {
|
|
3084
|
+
mode: 'strict',
|
|
3085
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
3086
|
+
schema: _deepseek_ai_dsh_memory_memory_verifyLedger_parameter_0$schema,
|
|
3087
|
+
},
|
|
3088
|
+
},
|
|
3089
|
+
],
|
|
3090
|
+
result: {
|
|
3091
|
+
mode: 'strict',
|
|
3092
|
+
typeSymbol: 'dsh-daoing-memory/types#LedgerIntegrityResult',
|
|
3093
|
+
schema: _deepseek_ai_dsh_memory_memory_verifyLedger_result$schema,
|
|
3094
|
+
},
|
|
3095
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":246,"column":3},
|
|
3096
|
+
},
|
|
3097
|
+
{
|
|
3098
|
+
id: 'dsh-daoing-memory#memory/verifyShadow',
|
|
3099
|
+
service: 'memory',
|
|
3100
|
+
namespace: 'memory',
|
|
3101
|
+
method: 'verifyShadow',
|
|
3102
|
+
invocation: { kind: 'direct' },
|
|
3103
|
+
scope: {
|
|
3104
|
+
context: 'agent',
|
|
3105
|
+
wire: 'agentId',
|
|
3106
|
+
},
|
|
3107
|
+
parameters: [
|
|
3108
|
+
{
|
|
3109
|
+
name: 'agent',
|
|
3110
|
+
wire: 'agentId',
|
|
3111
|
+
source: 'lookup',
|
|
3112
|
+
lookup: 'agent',
|
|
3113
|
+
codec: {
|
|
3114
|
+
mode: 'strict',
|
|
3115
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
3116
|
+
schema: _deepseek_ai_dsh_memory_memory_verifyShadow_parameter_0$schema,
|
|
3117
|
+
},
|
|
3118
|
+
},
|
|
3119
|
+
{
|
|
3120
|
+
name: 'request',
|
|
3121
|
+
wire: 'request',
|
|
3122
|
+
source: 'json',
|
|
3123
|
+
codec: {
|
|
3124
|
+
mode: 'strict',
|
|
3125
|
+
typeSymbol: 'dsh-daoing-memory/types#VerifyShadowRequest',
|
|
3126
|
+
schema: _deepseek_ai_dsh_memory_memory_verifyShadow_parameter_1$schema,
|
|
3127
|
+
},
|
|
3128
|
+
},
|
|
3129
|
+
],
|
|
3130
|
+
result: {
|
|
3131
|
+
mode: 'strict',
|
|
3132
|
+
typeSymbol: 'dsh-daoing-memory/types#VerifyShadowResult',
|
|
3133
|
+
schema: _deepseek_ai_dsh_memory_memory_verifyShadow_result$schema,
|
|
3134
|
+
},
|
|
3135
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":112,"column":3},
|
|
3136
|
+
},
|
|
3137
|
+
{
|
|
3138
|
+
id: 'dsh-daoing-memory#memory/workbenchInfo',
|
|
3139
|
+
service: 'memory',
|
|
3140
|
+
namespace: 'memory',
|
|
3141
|
+
method: 'workbenchInfo',
|
|
3142
|
+
invocation: { kind: 'direct' },
|
|
3143
|
+
scope: {
|
|
3144
|
+
context: 'agent',
|
|
3145
|
+
wire: 'agentId',
|
|
3146
|
+
},
|
|
3147
|
+
parameters: [
|
|
3148
|
+
{
|
|
3149
|
+
name: 'agent',
|
|
3150
|
+
wire: 'agentId',
|
|
3151
|
+
source: 'lookup',
|
|
3152
|
+
lookup: 'agent',
|
|
3153
|
+
codec: {
|
|
3154
|
+
mode: 'strict',
|
|
3155
|
+
typeSymbol: '@deepseek-ai/dsh-session/types#SessionId',
|
|
3156
|
+
schema: _deepseek_ai_dsh_memory_memory_workbenchInfo_parameter_0$schema,
|
|
3157
|
+
},
|
|
3158
|
+
},
|
|
3159
|
+
],
|
|
3160
|
+
result: {
|
|
3161
|
+
mode: 'strict',
|
|
3162
|
+
typeSymbol: 'dsh-daoing-memory/types#MemoryWorkbenchInfo',
|
|
3163
|
+
schema: _deepseek_ai_dsh_memory_memory_workbenchInfo_result$schema,
|
|
3164
|
+
},
|
|
3165
|
+
sourceLocation: {"file":"packages/memory/memory/src/service.ts","line":260,"column":3},
|
|
3166
|
+
},
|
|
3167
|
+
],
|
|
3168
|
+
model: {
|
|
3169
|
+
"services": [
|
|
3170
|
+
{
|
|
3171
|
+
"description": "Remote face of the memory library. All methods delegate to the core; the core carries the 生·用·修·记 mechanism semantics.",
|
|
3172
|
+
"summary": "Remote face of the memory library.",
|
|
3173
|
+
"tags": [],
|
|
3174
|
+
"jsDoc": "/**\n * Remote face of the memory library. All methods delegate to the core; the\n * core carries the 生·用·修·记 mechanism semantics.\n */",
|
|
3175
|
+
"key": "memory",
|
|
3176
|
+
"exportName": "MemoryService",
|
|
3177
|
+
"members": [
|
|
3178
|
+
{
|
|
3179
|
+
"kind": "method",
|
|
3180
|
+
"name": "refine",
|
|
3181
|
+
"signature": "@Remote('refine') refine(agent: Agent, request: RefineExperienceRequest): RefineExperienceResult",
|
|
3182
|
+
"summary": "生: refine a completed trajectory into an experience candidate.",
|
|
3183
|
+
"jsDoc": "/** 生: refine a completed trajectory into an experience candidate. */"
|
|
3184
|
+
},
|
|
3185
|
+
{
|
|
3186
|
+
"kind": "method",
|
|
3187
|
+
"name": "recall",
|
|
3188
|
+
"signature": "@Remote('recall') recall(agent: Agent, request: RecallExperiencesRequest): RecallExperiencesResult",
|
|
3189
|
+
"summary": "用: recall + adjudication + injection budget + negative channel.",
|
|
3190
|
+
"jsDoc": "/** 用: recall + adjudication + injection budget + negative channel. */"
|
|
3191
|
+
},
|
|
3192
|
+
{
|
|
3193
|
+
"kind": "method",
|
|
3194
|
+
"name": "report",
|
|
3195
|
+
"signature": "@Remote('report') report(agent: Agent, request: ReportUseRequest): ReportUseResult",
|
|
3196
|
+
"summary": "用·验: report one use outcome with attribution (V0 verification).",
|
|
3197
|
+
"jsDoc": "/** 用·验: report one use outcome with attribution (V0 verification). */"
|
|
3198
|
+
},
|
|
3199
|
+
{
|
|
3200
|
+
"kind": "method",
|
|
3201
|
+
"name": "ingest",
|
|
3202
|
+
"signature": "@Remote('ingest') ingest(agent: Agent, request: IngestRequest): IngestResult",
|
|
3203
|
+
"summary": "摄取归一: source-agnostic intake; drafts become earned candidates (006 §1).",
|
|
3204
|
+
"jsDoc": "/** 摄取归一: source-agnostic intake; drafts become earned candidates (006 §1). */"
|
|
3205
|
+
},
|
|
3206
|
+
{
|
|
3207
|
+
"kind": "method",
|
|
3208
|
+
"name": "revise",
|
|
3209
|
+
"signature": "@Remote('revise') revise(agent: Agent, request: ReviseExperienceRequest): ExperienceSnapshot",
|
|
3210
|
+
"summary": "修: propose a revised draft for a challenged experience.",
|
|
3211
|
+
"jsDoc": "/** 修: propose a revised draft for a challenged experience. */"
|
|
3212
|
+
},
|
|
3213
|
+
{
|
|
3214
|
+
"kind": "method",
|
|
3215
|
+
"name": "verifyShadow",
|
|
3216
|
+
"signature": "@Remote('verifyShadow') verifyShadow(agent: Agent, request: VerifyShadowRequest): VerifyShadowResult",
|
|
3217
|
+
"summary": "V1 controlled re-enactment: shadow replay verification for a draft.",
|
|
3218
|
+
"jsDoc": "/** V1 controlled re-enactment: shadow replay verification for a draft. */"
|
|
3219
|
+
},
|
|
3220
|
+
{
|
|
3221
|
+
"kind": "method",
|
|
3222
|
+
"name": "rollback",
|
|
3223
|
+
"signature": "@Remote('rollback') rollback(agent: Agent, request: RollbackExperienceRequest): ExperienceSnapshot",
|
|
3224
|
+
"summary": "Restore a superseded revision to live (rollback).",
|
|
3225
|
+
"jsDoc": "/** Restore a superseded revision to live (rollback). */"
|
|
3226
|
+
},
|
|
3227
|
+
{
|
|
3228
|
+
"kind": "method",
|
|
3229
|
+
"name": "get",
|
|
3230
|
+
"signature": "@Remote('get') get(agent: Agent, id: string, revision?: number): ExperienceSnapshot | undefined",
|
|
3231
|
+
"summary": "Read one experience revision (active when revision omitted).",
|
|
3232
|
+
"jsDoc": "/** Read one experience revision (active when revision omitted). */"
|
|
3233
|
+
},
|
|
3234
|
+
{
|
|
3235
|
+
"kind": "method",
|
|
3236
|
+
"name": "list",
|
|
3237
|
+
"signature": "@Remote('list') list(agent: Agent, filter: ExperienceListFilter): ExperienceSnapshot[]",
|
|
3238
|
+
"summary": "List experience revisions by filter.",
|
|
3239
|
+
"jsDoc": "/** List experience revisions by filter. */"
|
|
3240
|
+
},
|
|
3241
|
+
{
|
|
3242
|
+
"kind": "method",
|
|
3243
|
+
"name": "family",
|
|
3244
|
+
"signature": "@Remote('family') family(agent: Agent, id: string): ExperienceSnapshot[]",
|
|
3245
|
+
"summary": "Every revision of one family (superseded index for rollback).",
|
|
3246
|
+
"jsDoc": "/** Every revision of one family (superseded index for rollback). */"
|
|
3247
|
+
},
|
|
3248
|
+
{
|
|
3249
|
+
"kind": "method",
|
|
3250
|
+
"name": "appendDiary",
|
|
3251
|
+
"signature": "@Remote('appendDiary') appendDiary(agent: Agent, request: DiaryAppendRequest): DiaryAppendResult",
|
|
3252
|
+
"summary": "记: append one diary entry; signals the extraction duty when due.",
|
|
3253
|
+
"jsDoc": "/** 记: append one diary entry; signals the extraction duty when due. */"
|
|
3254
|
+
},
|
|
3255
|
+
{
|
|
3256
|
+
"kind": "method",
|
|
3257
|
+
"name": "extract",
|
|
3258
|
+
"signature": "@Remote('extract') extract(agent: Agent, request: ExtractFactsRequest): ExtractFactsResult",
|
|
3259
|
+
"summary": "上升通道: apply extracted facts over the pending diary window.",
|
|
3260
|
+
"jsDoc": "/** 上升通道: apply extracted facts over the pending diary window. */"
|
|
3261
|
+
},
|
|
3262
|
+
{
|
|
3263
|
+
"kind": "method",
|
|
3264
|
+
"name": "listDiary",
|
|
3265
|
+
"signature": "@Remote('listDiary') listDiary(agent: Agent, limit: number, offset: number, onlyUnextracted: boolean): DiaryEntry[]",
|
|
3266
|
+
"summary": "Diary timeline for the workbench (007 §2: server-side pagination, newest first).",
|
|
3267
|
+
"jsDoc": "/** Diary timeline for the workbench (007 §2: server-side pagination, newest first). */"
|
|
3268
|
+
},
|
|
3269
|
+
{
|
|
3270
|
+
"kind": "method",
|
|
3271
|
+
"name": "getDiaryByIds",
|
|
3272
|
+
"signature": "@Remote('getDiaryByIds') getDiaryByIds(agent: Agent, ids: string[]): DiaryEntry[]",
|
|
3273
|
+
"summary": "Several diary entries by id (008 Path A: fact→diary provenance).",
|
|
3274
|
+
"jsDoc": "/** Several diary entries by id (008 Path A: fact→diary provenance). */"
|
|
3275
|
+
},
|
|
3276
|
+
{
|
|
3277
|
+
"kind": "method",
|
|
3278
|
+
"name": "listFacts",
|
|
3279
|
+
"signature": "@Remote('listFacts') listFacts(agent: Agent, category: string, includeHistory: boolean, limit: number, offset: number): FactEntry[]",
|
|
3280
|
+
"summary": "Fact versions for the workbench (008 §3: server-side pagination).",
|
|
3281
|
+
"jsDoc": "/** Fact versions for the workbench (008 §3: server-side pagination). */"
|
|
3282
|
+
},
|
|
3283
|
+
{
|
|
3284
|
+
"kind": "method",
|
|
3285
|
+
"name": "listFactsCount",
|
|
3286
|
+
"signature": "@Remote('listFactsCount') listFactsCount(agent: Agent, category: string, includeHistory: boolean): number",
|
|
3287
|
+
"summary": "Count facts matching the workbench filter (008 §3: pagination total).",
|
|
3288
|
+
"jsDoc": "/** Count facts matching the workbench filter (008 §3: pagination total). */"
|
|
3289
|
+
},
|
|
3290
|
+
{
|
|
3291
|
+
"kind": "method",
|
|
3292
|
+
"name": "listConcerns",
|
|
3293
|
+
"signature": "@Remote('listConcerns') listConcerns(agent: Agent, kind: string, status: string, limit: number, offset: number): ConcernTree[]",
|
|
3294
|
+
"summary": "关心事项 trees (top-level + discussion loop) for the workbench (010 §D: filter + pagination).",
|
|
3295
|
+
"jsDoc": "/** 关心事项 trees (top-level + discussion loop) for the workbench (010 §D: filter + pagination). */"
|
|
3296
|
+
},
|
|
3297
|
+
{
|
|
3298
|
+
"kind": "method",
|
|
3299
|
+
"name": "listConcernsCount",
|
|
3300
|
+
"signature": "@Remote('listConcernsCount') listConcernsCount(agent: Agent, kind: string, status: string): number",
|
|
3301
|
+
"summary": "Count of top-level concerns matching the workbench filter (010 §D: pagination total).",
|
|
3302
|
+
"jsDoc": "/** Count of top-level concerns matching the workbench filter (010 §D: pagination total). */"
|
|
3303
|
+
},
|
|
3304
|
+
{
|
|
3305
|
+
"kind": "method",
|
|
3306
|
+
"name": "profileSnapshot",
|
|
3307
|
+
"signature": "profileSnapshot(): string",
|
|
3308
|
+
"summary": "010 §F: compact profile + open-concern snapshot for the AI's context (host-side).",
|
|
3309
|
+
"jsDoc": "/** 010 §F: compact profile + open-concern snapshot for the AI's context (host-side). */"
|
|
3310
|
+
},
|
|
3311
|
+
{
|
|
3312
|
+
"kind": "method",
|
|
3313
|
+
"name": "extractionLog",
|
|
3314
|
+
"signature": "@Remote('extractionLog') extractionLog(agent: Agent, limit: number, offset: number): ExtractionRecord[]",
|
|
3315
|
+
"summary": "Extraction runs for the workbench (008 §3: server-side pagination).",
|
|
3316
|
+
"jsDoc": "/** Extraction runs for the workbench (008 §3: server-side pagination). */"
|
|
3317
|
+
},
|
|
3318
|
+
{
|
|
3319
|
+
"kind": "method",
|
|
3320
|
+
"name": "extractionLogCount",
|
|
3321
|
+
"signature": "@Remote('extractionLogCount') extractionLogCount(agent: Agent): number",
|
|
3322
|
+
"summary": "Total extraction runs (008 §3: pagination total).",
|
|
3323
|
+
"jsDoc": "/** Total extraction runs (008 §3: pagination total). */"
|
|
3324
|
+
},
|
|
3325
|
+
{
|
|
3326
|
+
"kind": "method",
|
|
3327
|
+
"name": "consolidate",
|
|
3328
|
+
"signature": "@Remote('consolidate') consolidate(agent: Agent, request: ConsolidateRequest): ConsolidateResult",
|
|
3329
|
+
"summary": "Apply a consolidation run: merge related experiences (008 §1).",
|
|
3330
|
+
"jsDoc": "/** Apply a consolidation run: merge related experiences (008 §1). */"
|
|
3331
|
+
},
|
|
3332
|
+
{
|
|
3333
|
+
"kind": "method",
|
|
3334
|
+
"name": "consolidationDue",
|
|
3335
|
+
"signature": "@Remote('consolidationDue') consolidationDue(agent: Agent): { due: boolean; lastTs: number; newSince: number; hoursSince: number }",
|
|
3336
|
+
"summary": "Whether a consolidation run is due (interval cadence; 008 §1).",
|
|
3337
|
+
"jsDoc": "/** Whether a consolidation run is due (interval cadence; 008 §1). */"
|
|
3338
|
+
},
|
|
3339
|
+
{
|
|
3340
|
+
"kind": "method",
|
|
3341
|
+
"name": "ledgerQuery",
|
|
3342
|
+
"signature": "@Remote('ledgerQuery') ledgerQuery(agent: Agent, request: LedgerQueryRequest): LedgerBlock[]",
|
|
3343
|
+
"summary": "Ledger query (newest first, filtered).",
|
|
3344
|
+
"jsDoc": "/** Ledger query (newest first, filtered). */"
|
|
3345
|
+
},
|
|
3346
|
+
{
|
|
3347
|
+
"kind": "method",
|
|
3348
|
+
"name": "ledgerQueryCount",
|
|
3349
|
+
"signature": "@Remote('ledgerQueryCount') ledgerQueryCount(agent: Agent, request: LedgerQueryRequest): number",
|
|
3350
|
+
"summary": "Count ledger blocks matching a filter (007 §2 pagination).",
|
|
3351
|
+
"jsDoc": "/** Count ledger blocks matching a filter (007 §2 pagination). */"
|
|
3352
|
+
},
|
|
3353
|
+
{
|
|
3354
|
+
"kind": "method",
|
|
3355
|
+
"name": "verifyLedger",
|
|
3356
|
+
"signature": "@Remote('verifyLedger') verifyLedger(agent: Agent): LedgerIntegrityResult",
|
|
3357
|
+
"summary": "Verify the ledger hash chain end to end.",
|
|
3358
|
+
"jsDoc": "/** Verify the ledger hash chain end to end. */"
|
|
3359
|
+
},
|
|
3360
|
+
{
|
|
3361
|
+
"kind": "method",
|
|
3362
|
+
"name": "stats",
|
|
3363
|
+
"signature": "@Remote('stats') stats(agent: Agent): MemoryStats",
|
|
3364
|
+
"summary": "Aggregated library statistics.",
|
|
3365
|
+
"jsDoc": "/** Aggregated library statistics. */"
|
|
3366
|
+
},
|
|
3367
|
+
{
|
|
3368
|
+
"kind": "method",
|
|
3369
|
+
"name": "workbenchInfo",
|
|
3370
|
+
"signature": "@Remote('workbenchInfo') workbenchInfo(agent: Agent): MemoryWorkbenchInfo",
|
|
3371
|
+
"summary": "Workbench descriptor (workspace matching + config view).",
|
|
3372
|
+
"jsDoc": "/** Workbench descriptor (workspace matching + config view). */"
|
|
3373
|
+
},
|
|
3374
|
+
{
|
|
3375
|
+
"kind": "method",
|
|
3376
|
+
"name": "exportLibrary",
|
|
3377
|
+
"signature": "@Remote('exportLibrary') exportLibrary(agent: Agent): MemoryExport",
|
|
3378
|
+
"summary": "Full library export for experiments and migration.",
|
|
3379
|
+
"jsDoc": "/** Full library export for experiments and migration. */"
|
|
3380
|
+
},
|
|
3381
|
+
{
|
|
3382
|
+
"kind": "method",
|
|
3383
|
+
"name": "verifyLedgerIntegrity",
|
|
3384
|
+
"signature": "verifyLedgerIntegrity(): LedgerIntegrityResult",
|
|
3385
|
+
"summary": "Host-only ledger integrity check (no wire identity needed): the package invariant companion asserts the hash chain through this accessor.",
|
|
3386
|
+
"jsDoc": "/**\n * Host-only ledger integrity check (no wire identity needed): the package\n * invariant companion asserts the hash chain through this accessor.\n * @returns the chain verification outcome.\n */"
|
|
3387
|
+
},
|
|
3388
|
+
{
|
|
3389
|
+
"kind": "method",
|
|
3390
|
+
"name": "humanPin",
|
|
3391
|
+
"signature": "@Remote('humanPin') humanPin(agent: Agent, request: HumanPinRequest): ExperienceSnapshot",
|
|
3392
|
+
"summary": "Human pin/unpin.",
|
|
3393
|
+
"jsDoc": "/** Human pin/unpin. */"
|
|
3394
|
+
},
|
|
3395
|
+
{
|
|
3396
|
+
"kind": "method",
|
|
3397
|
+
"name": "humanDeleteExperience",
|
|
3398
|
+
"signature": "@Remote('humanDeleteExperience') humanDeleteExperience(agent: Agent, request: HumanDeleteExperienceRequest): { deleted: true }",
|
|
3399
|
+
"summary": "Human delete (tombstone + ledger fingerprint).",
|
|
3400
|
+
"jsDoc": "/** Human delete (tombstone + ledger fingerprint). */"
|
|
3401
|
+
},
|
|
3402
|
+
{
|
|
3403
|
+
"kind": "method",
|
|
3404
|
+
"name": "humanEditExperience",
|
|
3405
|
+
"signature": "@Remote('humanEditExperience') humanEditExperience(agent: Agent, request: HumanEditExperienceRequest): ExperienceSnapshot",
|
|
3406
|
+
"summary": "Human edit of the active revision.",
|
|
3407
|
+
"jsDoc": "/** Human edit of the active revision. */"
|
|
3408
|
+
},
|
|
3409
|
+
{
|
|
3410
|
+
"kind": "method",
|
|
3411
|
+
"name": "humanAddExperience",
|
|
3412
|
+
"signature": "@Remote('humanAddExperience') humanAddExperience(agent: Agent, request: HumanAddExperienceRequest): ExperienceSnapshot",
|
|
3413
|
+
"summary": "Human injection in the fixed experience format.",
|
|
3414
|
+
"jsDoc": "/** Human injection in the fixed experience format. */"
|
|
3415
|
+
},
|
|
3416
|
+
{
|
|
3417
|
+
"kind": "method",
|
|
3418
|
+
"name": "humanPromote",
|
|
3419
|
+
"signature": "@Remote('humanPromote') humanPromote(agent: Agent, id: string, reason: string): ExperienceSnapshot",
|
|
3420
|
+
"summary": "Human authority (V2): promote a candidate straight to live.",
|
|
3421
|
+
"jsDoc": "/** Human authority (V2): promote a candidate straight to live. */"
|
|
3422
|
+
},
|
|
3423
|
+
{
|
|
3424
|
+
"kind": "method",
|
|
3425
|
+
"name": "humanReleaseCold",
|
|
3426
|
+
"signature": "@Remote('humanReleaseCold') humanReleaseCold(agent: Agent, request: HumanReleaseColdRequest): ExperienceSnapshot",
|
|
3427
|
+
"summary": "Human re-release of a cold-palace revision back to candidate (006 §3.2).",
|
|
3428
|
+
"jsDoc": "/** Human re-release of a cold-palace revision back to candidate (006 §3.2). */"
|
|
3429
|
+
},
|
|
3430
|
+
{
|
|
3431
|
+
"kind": "method",
|
|
3432
|
+
"name": "humanRollback",
|
|
3433
|
+
"signature": "@Remote('humanRollback') humanRollback(agent: Agent, request: RollbackExperienceRequest): ExperienceSnapshot",
|
|
3434
|
+
"summary": "Human rollback.",
|
|
3435
|
+
"jsDoc": "/** Human rollback. */"
|
|
3436
|
+
},
|
|
3437
|
+
{
|
|
3438
|
+
"kind": "method",
|
|
3439
|
+
"name": "humanAddFact",
|
|
3440
|
+
"signature": "@Remote('humanAddFact') humanAddFact(agent: Agent, request: HumanAddFactRequest): FactEntry",
|
|
3441
|
+
"summary": "Human fact add.",
|
|
3442
|
+
"jsDoc": "/** Human fact add. */"
|
|
3443
|
+
},
|
|
3444
|
+
{
|
|
3445
|
+
"kind": "method",
|
|
3446
|
+
"name": "humanEditFact",
|
|
3447
|
+
"signature": "@Remote('humanEditFact') humanEditFact(agent: Agent, request: HumanEditFactRequest): FactEntry",
|
|
3448
|
+
"summary": "Human fact edit.",
|
|
3449
|
+
"jsDoc": "/** Human fact edit. */"
|
|
3450
|
+
},
|
|
3451
|
+
{
|
|
3452
|
+
"kind": "method",
|
|
3453
|
+
"name": "humanDeleteFact",
|
|
3454
|
+
"signature": "@Remote('humanDeleteFact') humanDeleteFact(agent: Agent, request: HumanDeleteFactRequest): { deleted: true }",
|
|
3455
|
+
"summary": "Human fact delete (tombstone).",
|
|
3456
|
+
"jsDoc": "/** Human fact delete (tombstone). */"
|
|
3457
|
+
},
|
|
3458
|
+
{
|
|
3459
|
+
"kind": "method",
|
|
3460
|
+
"name": "humanConfirmFact",
|
|
3461
|
+
"signature": "@Remote('humanConfirmFact') humanConfirmFact(agent: Agent, request: HumanConfirmFactRequest): FactEntry",
|
|
3462
|
+
"summary": "Human fact confirmation (lock/unlock).",
|
|
3463
|
+
"jsDoc": "/** Human fact confirmation (lock/unlock). */"
|
|
3464
|
+
},
|
|
3465
|
+
{
|
|
3466
|
+
"kind": "method",
|
|
3467
|
+
"name": "humanAckDiary",
|
|
3468
|
+
"signature": "@Remote('humanAckDiary') humanAckDiary(agent: Agent, request: HumanAckDiaryRequest): DiaryEntry",
|
|
3469
|
+
"summary": "Human acknowledgement of a pending diary entry (reviewed, no fact extracted).",
|
|
3470
|
+
"jsDoc": "/** Human acknowledgement of a pending diary entry (reviewed, no fact extracted). */"
|
|
3471
|
+
},
|
|
3472
|
+
{
|
|
3473
|
+
"kind": "method",
|
|
3474
|
+
"name": "humanSetConcernStatus",
|
|
3475
|
+
"signature": "@Remote('humanSetConcernStatus') humanSetConcernStatus(agent: Agent, request: HumanSetConcernStatusRequest): { ok: true }",
|
|
3476
|
+
"summary": "Human lifecycle change of a top-level concern (007 §2.4).",
|
|
3477
|
+
"jsDoc": "/** Human lifecycle change of a top-level concern (007 §2.4). */"
|
|
3478
|
+
},
|
|
3479
|
+
{
|
|
3480
|
+
"kind": "method",
|
|
3481
|
+
"name": "humanDeleteConcern",
|
|
3482
|
+
"signature": "@Remote('humanDeleteConcern') humanDeleteConcern(agent: Agent, request: HumanDeleteConcernRequest): { deleted: true }",
|
|
3483
|
+
"summary": "Human delete of a concern subtree (007 §2.4).",
|
|
3484
|
+
"jsDoc": "/** Human delete of a concern subtree (007 §2.4). */"
|
|
3485
|
+
}
|
|
3486
|
+
],
|
|
3487
|
+
"types": [
|
|
3488
|
+
{
|
|
3489
|
+
"name": "Agent",
|
|
3490
|
+
"declaration": "export interface Agent {\n readonly id: SessionId;\n readonly options: AgentOptions;\n readonly session: Session;\n readonly inbox: Inbox;\n readonly status: AgentStatus;\n readonly ctx: Context;\n cancel(cause: AgentCancelCause, options?: CancelOptions): void;\n whenIdle(): Promise<void>;\n runMaintenance<T>(task: (signal: AbortSignal) => Promise<T>): Promise<T>;\n send(message: UserMessage, target: InboxTarget, wakeup: boolean): void;\n followup(message: UserMessage): void;\n steer(message: UserMessage): void;\n inject(message: UserMessage): void;\n}"
|
|
3491
|
+
},
|
|
3492
|
+
{
|
|
3493
|
+
"name": "AgentCancelCause",
|
|
3494
|
+
"declaration": "export type AgentCancelCause = { readonly kind: 'user'; } | { readonly kind: 'parent'; } | { readonly kind: 'hook'; readonly reason: string; } | { readonly kind: 'disposed'; };"
|
|
3495
|
+
},
|
|
3496
|
+
{
|
|
3497
|
+
"name": "AgentOptions",
|
|
3498
|
+
"declaration": "export interface AgentOptions {\n provider?: string;\n model?: string;\n maxTokens?: number;\n}"
|
|
3499
|
+
},
|
|
3500
|
+
{
|
|
3501
|
+
"name": "AgentStatus",
|
|
3502
|
+
"declaration": "export type AgentStatus = 'idle' | 'running';"
|
|
3503
|
+
},
|
|
3504
|
+
{
|
|
3505
|
+
"name": "ApprovalOutcome",
|
|
3506
|
+
"declaration": "export type ApprovalOutcome = 'allowed-once' | 'rejected' | 'cancelled' | 'unavailable';"
|
|
3507
|
+
},
|
|
3508
|
+
{
|
|
3509
|
+
"name": "ApprovalPolicy",
|
|
3510
|
+
"declaration": "export type ApprovalPolicy = 'ask' | 'never';"
|
|
3511
|
+
},
|
|
3512
|
+
{
|
|
3513
|
+
"name": "ApprovalRequestId",
|
|
3514
|
+
"declaration": "export type ApprovalRequestId = Branded<'ApprovalRequestId'>;"
|
|
3515
|
+
},
|
|
3516
|
+
{
|
|
3517
|
+
"name": "AssistantMessage",
|
|
3518
|
+
"declaration": "export interface AssistantMessage extends Message {\n readonly role: 'assistant';\n readonly source: ModelMessageSource;\n}"
|
|
3519
|
+
},
|
|
3520
|
+
{
|
|
3521
|
+
"name": "AssistantProvenance",
|
|
3522
|
+
"declaration": "export interface AssistantProvenance {\n provider: string;\n model: string;\n replayState?: unknown;\n}"
|
|
3523
|
+
},
|
|
3524
|
+
{
|
|
3525
|
+
"name": "AttachmentId",
|
|
3526
|
+
"declaration": "export type AttachmentId = Branded<'AttachmentId'>;"
|
|
3527
|
+
},
|
|
3528
|
+
{
|
|
3529
|
+
"name": "Branded",
|
|
3530
|
+
"declaration": "export type Branded<B extends string> = string & { readonly [BRAND]: B; };"
|
|
3531
|
+
},
|
|
3532
|
+
{
|
|
3533
|
+
"name": "CallId",
|
|
3534
|
+
"declaration": "export type CallId = Branded<'CallId'>;"
|
|
3535
|
+
},
|
|
3536
|
+
{
|
|
3537
|
+
"name": "CancelOptions",
|
|
3538
|
+
"declaration": "export interface CancelOptions {\n keepInbox?: boolean | undefined;\n}"
|
|
3539
|
+
},
|
|
3540
|
+
{
|
|
3541
|
+
"name": "CandidateTrial",
|
|
3542
|
+
"declaration": "export interface CandidateTrial {\n experience: ExperienceSnapshot;\n score: number;\n}"
|
|
3543
|
+
},
|
|
3544
|
+
{
|
|
3545
|
+
"name": "CodeDispatchEventData",
|
|
3546
|
+
"declaration": "export interface CodeDispatchEventData extends CodeDispatchStartEventData {\n isError: boolean;\n content: ContentBlock[];\n}"
|
|
3547
|
+
},
|
|
3548
|
+
{
|
|
3549
|
+
"name": "CodeDispatchStartEventData",
|
|
3550
|
+
"declaration": "export interface CodeDispatchStartEventData {\n rootCallId: CallId;\n parentCallId: CallId;\n subCallId: CallId;\n name: string;\n arguments: unknown;\n}"
|
|
3551
|
+
},
|
|
3552
|
+
{
|
|
3553
|
+
"name": "CommandId",
|
|
3554
|
+
"declaration": "export type CommandId = Branded<'CommandId'>;"
|
|
3555
|
+
},
|
|
3556
|
+
{
|
|
3557
|
+
"name": "CommandSource",
|
|
3558
|
+
"declaration": "export type CommandSource = CommandSourceMap[keyof CommandSourceMap];"
|
|
3559
|
+
},
|
|
3560
|
+
{
|
|
3561
|
+
"name": "CommandSourceMap",
|
|
3562
|
+
"declaration": "export interface CommandSourceMap {\n user: { kind: 'user'; };\n}"
|
|
3563
|
+
},
|
|
3564
|
+
{
|
|
3565
|
+
"name": "ComplexitySignal",
|
|
3566
|
+
"declaration": "export interface ComplexitySignal {\n tokens?: number;\n steps?: number;\n hadFailure?: boolean;\n}"
|
|
3567
|
+
},
|
|
3568
|
+
{
|
|
3569
|
+
"name": "ConcernEntry",
|
|
3570
|
+
"declaration": "export interface ConcernEntry {\n id: string;\n parentId?: string;\n title: string;\n background?: string;\n kind?: ConcernKind;\n status?: ConcernStatus;\n ts: number;\n sourceDiaryIds: string[];\n context?: string;\n deleted: boolean;\n}"
|
|
3571
|
+
},
|
|
3572
|
+
{
|
|
3573
|
+
"name": "ConcernKind",
|
|
3574
|
+
"declaration": "export type ConcernKind = 'todo' | 'thinking' | 'idea' | 'question' | 'decision' | 'commitment' | 'other';"
|
|
3575
|
+
},
|
|
3576
|
+
{
|
|
3577
|
+
"name": "ConcernProposal",
|
|
3578
|
+
"declaration": "export interface ConcernProposal {\n action: 'new' | 'mention' | 'status';\n title?: string;\n background?: string;\n kind?: ConcernKind;\n status?: ConcernStatus;\n concernId?: string;\n sourceDiaryIds: string[];\n context?: string;\n}"
|
|
3579
|
+
},
|
|
3580
|
+
{
|
|
3581
|
+
"name": "ConcernStatus",
|
|
3582
|
+
"declaration": "export type ConcernStatus = 'ongoing' | 'concluded' | 'recurring' | 'paused';"
|
|
3583
|
+
},
|
|
3584
|
+
{
|
|
3585
|
+
"name": "ConcernTree",
|
|
3586
|
+
"declaration": "export interface ConcernTree {\n concern: ConcernEntry;\n mentions: ConcernEntry[];\n}"
|
|
3587
|
+
},
|
|
3588
|
+
{
|
|
3589
|
+
"name": "ConsolidateMerge",
|
|
3590
|
+
"declaration": "export interface ConsolidateMerge {\n family: string;\n kind: ExperienceKind;\n gist: string;\n situation: string[];\n path: string[];\n reasoning: string;\n limits: string[];\n sourceIds: string[];\n note?: string;\n}"
|
|
3591
|
+
},
|
|
3592
|
+
{
|
|
3593
|
+
"name": "ConsolidateRequest",
|
|
3594
|
+
"declaration": "export interface ConsolidateRequest {\n merges: ConsolidateMerge[];\n note?: string;\n}"
|
|
3595
|
+
},
|
|
3596
|
+
{
|
|
3597
|
+
"name": "ConsolidateResult",
|
|
3598
|
+
"declaration": "export interface ConsolidateResult {\n consolidated: number;\n archived: number;\n skipped: { sourceIds: string[]; reason: string; }[];\n}"
|
|
3599
|
+
},
|
|
3600
|
+
{
|
|
3601
|
+
"name": "ContentBlock",
|
|
3602
|
+
"declaration": "export type ContentBlock = ContentBlockMap[ContentBlockType];"
|
|
3603
|
+
},
|
|
3604
|
+
{
|
|
3605
|
+
"name": "ContentBlockMap",
|
|
3606
|
+
"declaration": "export interface ContentBlockMap {\n text: TextBlock;\n reasoning: ReasoningBlock;\n image: ImageBlock;\n 'tool-call': ToolCallBlock;\n 'tool-result': ToolResultBlock;\n}"
|
|
3607
|
+
},
|
|
3608
|
+
{
|
|
3609
|
+
"name": "ContentBlockType",
|
|
3610
|
+
"declaration": "export type ContentBlockType = keyof ContentBlockMap;"
|
|
3611
|
+
},
|
|
3612
|
+
{
|
|
3613
|
+
"name": "ContextFormed",
|
|
3614
|
+
"declaration": "export type ContextFormed = { readonly form?: never; } | { readonly form: 'instructions'; } | { readonly form: 'catalog'; } | { readonly form: 'snapshot'; readonly sections: readonly ContextSnapshotSection[]; } | { readonly form: 'notice'; readonly summary: string; } | { readonly form: 'relay'; } | { readonly form: 'recall'; };"
|
|
3615
|
+
},
|
|
3616
|
+
{
|
|
3617
|
+
"name": "ContextSnapshotSection",
|
|
3618
|
+
"declaration": "export interface ContextSnapshotSection {\n readonly name: string;\n readonly text: string;\n}"
|
|
3619
|
+
},
|
|
3620
|
+
{
|
|
3621
|
+
"name": "DiaryAppendRequest",
|
|
3622
|
+
"declaration": "export interface DiaryAppendRequest {\n kind: DiaryKind;\n content: string;\n sessionRef?: string;\n tags?: string[];\n}"
|
|
3623
|
+
},
|
|
3624
|
+
{
|
|
3625
|
+
"name": "DiaryAppendResult",
|
|
3626
|
+
"declaration": "export interface DiaryAppendResult {\n entry: DiaryEntry;\n extractionDue: boolean;\n pendingDiary?: DiaryEntry[];\n}"
|
|
3627
|
+
},
|
|
3628
|
+
{
|
|
3629
|
+
"name": "DiaryEntry",
|
|
3630
|
+
"declaration": "export interface DiaryEntry {\n id: string;\n ts: number;\n kind: DiaryKind;\n content: string;\n sessionRef?: string;\n tags: string[];\n extracted: boolean;\n}"
|
|
3631
|
+
},
|
|
3632
|
+
{
|
|
3633
|
+
"name": "DiaryKind",
|
|
3634
|
+
"declaration": "export type DiaryKind = 'said' | 'delegated' | 'promised' | 'happened' | 'preference' | 'other';"
|
|
3635
|
+
},
|
|
3636
|
+
{
|
|
3637
|
+
"name": "EpochHeader",
|
|
3638
|
+
"declaration": "export interface EpochHeader {\n config: LlmCallConfig;\n adapterDefaults?: LlmCallConfigAdapterDefaults;\n system?: string;\n tools?: ToolSchema[];\n}"
|
|
3639
|
+
},
|
|
3640
|
+
{
|
|
3641
|
+
"name": "EvidenceRef",
|
|
3642
|
+
"declaration": "export interface EvidenceRef {\n traceRef?: string;\n sessionRef?: string;\n note?: string;\n}"
|
|
3643
|
+
},
|
|
3644
|
+
{
|
|
3645
|
+
"name": "ExperienceKind",
|
|
3646
|
+
"declaration": "export type ExperienceKind = 'positive' | 'negative';"
|
|
3647
|
+
},
|
|
3648
|
+
{
|
|
3649
|
+
"name": "ExperienceListFilter",
|
|
3650
|
+
"declaration": "export interface ExperienceListFilter {\n status?: ExperienceStatus;\n kind?: ExperienceKind;\n family?: string;\n context?: string;\n}"
|
|
3651
|
+
},
|
|
3652
|
+
{
|
|
3653
|
+
"name": "ExperienceSnapshot",
|
|
3654
|
+
"declaration": "export interface ExperienceSnapshot {\n id: string;\n revision: number;\n kind: ExperienceKind;\n source: ExperienceSource;\n family: string;\n gist: string;\n situation: string[];\n path: ExperienceStep[];\n reasoning: string;\n limits: string[];\n status: ExperienceStatus;\n alpha: number;\n beta: number;\n samples: number;\n trust: number;\n weightedTrust: number;\n lastVerifiedAt?: number;\n pinned: boolean;\n tokensSaved: number;\n tokensSpent: number;\n parentRevision?: number;\n failureReason?: string;\n evidence?: EvidenceRef;\n challengeReason?: string;\n context: string;\n verifiedCount: number;\n rejectCount: number;\n globalFlag: boolean;\n createdAt: number;\n updatedAt: number;\n}"
|
|
3655
|
+
},
|
|
3656
|
+
{
|
|
3657
|
+
"name": "ExperienceSource",
|
|
3658
|
+
"declaration": "export type ExperienceSource = 'agent' | 'human';"
|
|
3659
|
+
},
|
|
3660
|
+
{
|
|
3661
|
+
"name": "ExperienceStatus",
|
|
3662
|
+
"declaration": "export type ExperienceStatus = 'candidate' | 'live' | 'challenged' | 'superseded' | 'archived' | 'cold';"
|
|
3663
|
+
},
|
|
3664
|
+
{
|
|
3665
|
+
"name": "ExperienceStep",
|
|
3666
|
+
"declaration": "export interface ExperienceStep {\n order: number;\n action: string;\n}"
|
|
3667
|
+
},
|
|
3668
|
+
{
|
|
3669
|
+
"name": "ExtractFactsRequest",
|
|
3670
|
+
"declaration": "export interface ExtractFactsRequest {\n proposals: FactProposal[];\n concerns?: ConcernProposal[];\n summary: string;\n}"
|
|
3671
|
+
},
|
|
3672
|
+
{
|
|
3673
|
+
"name": "ExtractFactsResult",
|
|
3674
|
+
"declaration": "export interface ExtractFactsResult {\n applied: FactEntry[];\n conflicts: FactEntry[];\n rejected: { proposal: FactProposal; reason: string; }[];\n appliedConcerns: number;\n}"
|
|
3675
|
+
},
|
|
3676
|
+
{
|
|
3677
|
+
"name": "ExtractionRecord",
|
|
3678
|
+
"declaration": "export interface ExtractionRecord {\n id: string;\n ts: number;\n trigger: 'cadence' | 'manual';\n summary: string;\n producedFactIds: string[];\n diaryCount: number;\n}"
|
|
3679
|
+
},
|
|
3680
|
+
{
|
|
3681
|
+
"name": "FactCategory",
|
|
3682
|
+
"declaration": "export type FactCategory = 'identity' | 'preference' | 'communication' | 'habit' | 'thinking' | 'value' | 'delegation' | 'background' | 'other';"
|
|
3683
|
+
},
|
|
3684
|
+
{
|
|
3685
|
+
"name": "FactEntry",
|
|
3686
|
+
"declaration": "export interface FactEntry {\n id: string;\n category: FactCategory;\n factKey: string;\n value: string;\n origin: 'extraction' | 'human' | 'supersede';\n sourceDiaryIds: string[];\n corroboration: number;\n validFrom: number;\n validTo?: number;\n recordedAt: number;\n supersededBy?: string;\n locked: boolean;\n deleted: boolean;\n conflictPending: boolean;\n}"
|
|
3687
|
+
},
|
|
3688
|
+
{
|
|
3689
|
+
"name": "FactProposal",
|
|
3690
|
+
"declaration": "export interface FactProposal {\n category: FactCategory;\n factKey: string;\n value: string;\n sourceDiaryIds: string[];\n note?: string;\n}"
|
|
3691
|
+
},
|
|
3692
|
+
{
|
|
3693
|
+
"name": "FailureAttribution",
|
|
3694
|
+
"declaration": "export type FailureAttribution = 'experience' | 'environment' | 'unrelated' | 'unknown';"
|
|
3695
|
+
},
|
|
3696
|
+
{
|
|
3697
|
+
"name": "FinishReason",
|
|
3698
|
+
"declaration": "export type FinishReason = FinishReasonMap[keyof FinishReasonMap];"
|
|
3699
|
+
},
|
|
3700
|
+
{
|
|
3701
|
+
"name": "FinishReasonMap",
|
|
3702
|
+
"declaration": "export interface FinishReasonMap {\n stop: { kind: 'stop'; };\n 'tool-calls': { kind: 'tool-calls'; };\n 'max-tokens': { kind: 'max-tokens'; };\n aborted: { kind: 'aborted'; failure: LlmFailure; };\n error: { kind: 'error'; failure: LlmFailure; };\n}"
|
|
3703
|
+
},
|
|
3704
|
+
{
|
|
3705
|
+
"name": "GoalBlockReason",
|
|
3706
|
+
"declaration": "export interface GoalBlockReason {\n readonly code: string;\n readonly message: string;\n}"
|
|
3707
|
+
},
|
|
3708
|
+
{
|
|
3709
|
+
"name": "GoalChangeMeta",
|
|
3710
|
+
"declaration": "export type GoalChangeMeta = GoalSnapshotChangeMeta | GoalClearChangeMeta;"
|
|
3711
|
+
},
|
|
3712
|
+
{
|
|
3713
|
+
"name": "GoalClearChangeMeta",
|
|
3714
|
+
"declaration": "export interface GoalClearChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: 'clear';\n readonly cleared: GoalRef;\n readonly clearedAt: number;\n}"
|
|
3715
|
+
},
|
|
3716
|
+
{
|
|
3717
|
+
"name": "GoalId",
|
|
3718
|
+
"declaration": "export type GoalId = Branded<'GoalId'>;"
|
|
3719
|
+
},
|
|
3720
|
+
{
|
|
3721
|
+
"name": "GoalMessageSource",
|
|
3722
|
+
"declaration": "export interface GoalMessageSource {\n readonly kind: 'goal';\n readonly goalId: GoalId;\n readonly revision: number;\n readonly round: number;\n}"
|
|
3723
|
+
},
|
|
3724
|
+
{
|
|
3725
|
+
"name": "GoalOperation",
|
|
3726
|
+
"declaration": "export type GoalOperation = 'create' | 'edit' | 'pause' | 'resume' | 'complete' | 'block' | 'clear';"
|
|
3727
|
+
},
|
|
3728
|
+
{
|
|
3729
|
+
"name": "GoalPhase",
|
|
3730
|
+
"declaration": "export type GoalPhase = 'active' | 'paused' | 'blocked' | 'complete';"
|
|
3731
|
+
},
|
|
3732
|
+
{
|
|
3733
|
+
"name": "GoalRef",
|
|
3734
|
+
"declaration": "export interface GoalRef {\n readonly id: GoalId;\n readonly revision: number;\n}"
|
|
3735
|
+
},
|
|
3736
|
+
{
|
|
3737
|
+
"name": "GoalSnapshot",
|
|
3738
|
+
"declaration": "export interface GoalSnapshot extends GoalRef {\n readonly objective: string;\n readonly phase: GoalPhase;\n readonly blockedReason?: GoalBlockReason;\n readonly maxGoalRounds: number;\n}"
|
|
3739
|
+
},
|
|
3740
|
+
{
|
|
3741
|
+
"name": "GoalSnapshotChangeMeta",
|
|
3742
|
+
"declaration": "export interface GoalSnapshotChangeMeta {\n readonly kind: 'goal/change';\n readonly version: 1;\n readonly operation: Exclude<GoalOperation, 'clear'>;\n readonly goal: GoalSnapshot;\n readonly roundsStarted: number;\n readonly createdAt: number;\n readonly updatedAt: number;\n}"
|
|
3743
|
+
},
|
|
3744
|
+
{
|
|
3745
|
+
"name": "HumanAckDiaryRequest",
|
|
3746
|
+
"declaration": "export interface HumanAckDiaryRequest {\n diaryId: string;\n reason: string;\n}"
|
|
3747
|
+
},
|
|
3748
|
+
{
|
|
3749
|
+
"name": "HumanAddExperienceRequest",
|
|
3750
|
+
"declaration": "export interface HumanAddExperienceRequest {\n kind: ExperienceKind;\n family: string;\n gist: string;\n situation: string[];\n path: ExperienceStep[];\n reasoning: string;\n limits: string[];\n failureReason?: string;\n context?: string;\n reason: string;\n}"
|
|
3751
|
+
},
|
|
3752
|
+
{
|
|
3753
|
+
"name": "HumanAddFactRequest",
|
|
3754
|
+
"declaration": "export interface HumanAddFactRequest {\n category: FactCategory;\n factKey: string;\n value: string;\n locked?: boolean;\n reason: string;\n}"
|
|
3755
|
+
},
|
|
3756
|
+
{
|
|
3757
|
+
"name": "HumanConfirmFactRequest",
|
|
3758
|
+
"declaration": "export interface HumanConfirmFactRequest {\n factId: string;\n locked: boolean;\n reason: string;\n}"
|
|
3759
|
+
},
|
|
3760
|
+
{
|
|
3761
|
+
"name": "HumanDeleteConcernRequest",
|
|
3762
|
+
"declaration": "export interface HumanDeleteConcernRequest {\n id: string;\n reason: string;\n}"
|
|
3763
|
+
},
|
|
3764
|
+
{
|
|
3765
|
+
"name": "HumanDeleteExperienceRequest",
|
|
3766
|
+
"declaration": "export interface HumanDeleteExperienceRequest {\n id: string;\n reason: string;\n}"
|
|
3767
|
+
},
|
|
3768
|
+
{
|
|
3769
|
+
"name": "HumanDeleteFactRequest",
|
|
3770
|
+
"declaration": "export interface HumanDeleteFactRequest {\n factId: string;\n reason: string;\n}"
|
|
3771
|
+
},
|
|
3772
|
+
{
|
|
3773
|
+
"name": "HumanEditExperienceRequest",
|
|
3774
|
+
"declaration": "export interface HumanEditExperienceRequest {\n id: string;\n reason: string;\n gist?: string;\n situation?: string[];\n path?: ExperienceStep[];\n reasoning?: string;\n limits?: string[];\n family?: string;\n context?: string;\n globalFlag?: boolean;\n}"
|
|
3775
|
+
},
|
|
3776
|
+
{
|
|
3777
|
+
"name": "HumanEditFactRequest",
|
|
3778
|
+
"declaration": "export interface HumanEditFactRequest {\n factId: string;\n value: string;\n reason: string;\n}"
|
|
3779
|
+
},
|
|
3780
|
+
{
|
|
3781
|
+
"name": "HumanPinRequest",
|
|
3782
|
+
"declaration": "export interface HumanPinRequest {\n id: string;\n pinned: boolean;\n reason: string;\n}"
|
|
3783
|
+
},
|
|
3784
|
+
{
|
|
3785
|
+
"name": "HumanReleaseColdRequest",
|
|
3786
|
+
"declaration": "export interface HumanReleaseColdRequest {\n id: string;\n reason: string;\n}"
|
|
3787
|
+
},
|
|
3788
|
+
{
|
|
3789
|
+
"name": "HumanSetConcernStatusRequest",
|
|
3790
|
+
"declaration": "export interface HumanSetConcernStatusRequest {\n id: string;\n status: ConcernStatus;\n reason: string;\n}"
|
|
3791
|
+
},
|
|
3792
|
+
{
|
|
3793
|
+
"name": "ImageAttachmentRef",
|
|
3794
|
+
"declaration": "export interface ImageAttachmentRef {\n attachmentId: AttachmentId;\n mediaType: ImageMediaType;\n bytes: number;\n width: number;\n height: number;\n name?: string;\n}"
|
|
3795
|
+
},
|
|
3796
|
+
{
|
|
3797
|
+
"name": "ImageBlock",
|
|
3798
|
+
"declaration": "export interface ImageBlock {\n type: 'image';\n attachment: ImageAttachmentRef;\n}"
|
|
3799
|
+
},
|
|
3800
|
+
{
|
|
3801
|
+
"name": "ImageMediaType",
|
|
3802
|
+
"declaration": "export type ImageMediaType = 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';"
|
|
3803
|
+
},
|
|
3804
|
+
{
|
|
3805
|
+
"name": "Inbox",
|
|
3806
|
+
"declaration": "export class Inbox {\n get nextTurn(): readonly UserMessage[];\n get nextStep(): readonly UserMessage[];\n get hasPending(): boolean;\n clear(): void;\n claim(target: InboxTarget, turn: number): UserMessage[];\n append(target: InboxTarget, message: UserMessage): void;\n prepend(target: InboxTarget, message: UserMessage): void;\n replace(messageId: MessageId, newMessage: UserMessage): boolean;\n remove(messageId: MessageId): boolean;\n splice(target: InboxTarget, start: number, deleteCount: number, inserted: UserMessage[]): UserMessage[];\n}"
|
|
3807
|
+
},
|
|
3808
|
+
{
|
|
3809
|
+
"name": "InboxTarget",
|
|
3810
|
+
"declaration": "export type InboxTarget = 'next-turn' | 'next-step';"
|
|
3811
|
+
},
|
|
3812
|
+
{
|
|
3813
|
+
"name": "IngestExperienceItem",
|
|
3814
|
+
"declaration": "export interface IngestExperienceItem {\n kind: ExperienceKind;\n family: string;\n gist: string;\n situation: string[];\n path: ExperienceStep[];\n reasoning: string;\n limits: string[];\n failureReason?: string;\n}"
|
|
3815
|
+
},
|
|
3816
|
+
{
|
|
3817
|
+
"name": "IngestRequest",
|
|
3818
|
+
"declaration": "export interface IngestRequest {\n sourceType: IngestSourceType;\n sourceRef: string;\n context?: string;\n experiences: IngestExperienceItem[];\n note?: string;\n}"
|
|
3819
|
+
},
|
|
3820
|
+
{
|
|
3821
|
+
"name": "IngestResult",
|
|
3822
|
+
"declaration": "export interface IngestResult {\n accepted: ExperienceSnapshot[];\n rejected: { gist: string; reason: string; }[];\n sourcePrior: { alpha: number; beta: number; };\n}"
|
|
3823
|
+
},
|
|
3824
|
+
{
|
|
3825
|
+
"name": "IngestSourceType",
|
|
3826
|
+
"declaration": "export type IngestSourceType = 'conversation' | 'document' | 'skill' | 'book' | 'note' | 'other';"
|
|
3827
|
+
},
|
|
3828
|
+
{
|
|
3829
|
+
"name": "JsonValue",
|
|
3830
|
+
"declaration": "export type JsonValue = null | boolean | number | string | JsonValue[] | { [key: string]: JsonValue; };"
|
|
3831
|
+
},
|
|
3832
|
+
{
|
|
3833
|
+
"name": "LedgerBlock",
|
|
3834
|
+
"declaration": "export interface LedgerBlock {\n seq: number;\n ts: number;\n op: string;\n objectType: 'experience' | 'fact' | 'diary' | 'library' | 'concern';\n objectId: string;\n actor: string;\n reason?: string;\n payload: string;\n prevHash: string;\n hash: string;\n}"
|
|
3835
|
+
},
|
|
3836
|
+
{
|
|
3837
|
+
"name": "LedgerIntegrityResult",
|
|
3838
|
+
"declaration": "export interface LedgerIntegrityResult {\n ok: boolean;\n checked: number;\n brokenAt?: number;\n}"
|
|
3839
|
+
},
|
|
3840
|
+
{
|
|
3841
|
+
"name": "LedgerQueryRequest",
|
|
3842
|
+
"declaration": "export interface LedgerQueryRequest {\n objectType?: 'experience' | 'fact' | 'diary' | 'library' | 'concern';\n objectId?: string;\n op?: string;\n limit?: number;\n offset?: number;\n seqFrom?: number;\n seqTo?: number;\n}"
|
|
3843
|
+
},
|
|
3844
|
+
{
|
|
3845
|
+
"name": "LlmCallConfig",
|
|
3846
|
+
"declaration": "export interface LlmCallConfig {\n provider: string;\n model: string;\n reasoningEffort?: ReasoningEffortId;\n temperature?: number;\n maxTokens?: number;\n stop?: string[];\n}"
|
|
3847
|
+
},
|
|
3848
|
+
{
|
|
3849
|
+
"name": "LlmCallConfigAdapterDefaults",
|
|
3850
|
+
"declaration": "export interface LlmCallConfigAdapterDefaults {\n reasoningEffort?: true;\n maxTokens?: true;\n}"
|
|
3851
|
+
},
|
|
3852
|
+
{
|
|
3853
|
+
"name": "LlmFailure",
|
|
3854
|
+
"declaration": "export interface LlmFailure {\n readonly message: string;\n readonly code: string;\n readonly status?: number;\n readonly providerRetryAfterMs?: number;\n readonly requestId?: ProviderRequestId;\n}"
|
|
3855
|
+
},
|
|
3856
|
+
{
|
|
3857
|
+
"name": "MemoryExport",
|
|
3858
|
+
"declaration": "export interface MemoryExport {\n exportedAt: number;\n schemaVersion: number;\n experiences: ExperienceSnapshot[];\n reports: { id: string; experienceId: string; revision: number; outcome: ReportOutcome; attribution: FailureAttribution; counted: 'alpha' | 'beta' | 'none'; evidence?: EvidenceRef; dedupeKey?: string; ts: number; }[];\n diary: DiaryEntry[];\n facts: FactEntry[];\n extractions: ExtractionRecord[];\n recalls: { id: string; ts: number; situation: string; injectedIds: string[]; none: boolean; }[];\n ledger: LedgerBlock[];\n}"
|
|
3859
|
+
},
|
|
3860
|
+
{
|
|
3861
|
+
"name": "MemoryStats",
|
|
3862
|
+
"declaration": "export interface MemoryStats {\n experiences: { total: number; byStatus: Record<ExperienceStatus, number>; byKind: Record<ExperienceKind, number>; pinned: number; avgTrust: number; };\n facts: { total: number; current: number; locked: number; conflictPending: number; };\n diary: { total: number; unextracted: number; extractions: number; };\n ledgerBlocks: number;\n recall: { events: number; negative: number; reportsAfterRecall: number; };\n consolidation: { lastTs: number; due: boolean; newSince: number; };\n}"
|
|
3863
|
+
},
|
|
3864
|
+
{
|
|
3865
|
+
"name": "MemoryWorkbenchInfo",
|
|
3866
|
+
"declaration": "export interface MemoryWorkbenchInfo {\n workspacePath: string;\n workspaceTitle: string;\n databasePath: string;\n diaryExtractEvery: number;\n injectionBudgetTokens: number;\n}"
|
|
3867
|
+
},
|
|
3868
|
+
{
|
|
3869
|
+
"name": "Message",
|
|
3870
|
+
"declaration": "export interface Message {\n readonly id: MessageId;\n readonly role: 'system' | 'user' | 'assistant';\n readonly content: ContentBlock[];\n readonly source: MessageSource;\n}"
|
|
3871
|
+
},
|
|
3872
|
+
{
|
|
3873
|
+
"name": "MessageId",
|
|
3874
|
+
"declaration": "export type MessageId = Branded<'MessageId'>;"
|
|
3875
|
+
},
|
|
3876
|
+
{
|
|
3877
|
+
"name": "MessageSource",
|
|
3878
|
+
"declaration": "export type MessageSource = MessageSourceMap[keyof MessageSourceMap];"
|
|
3879
|
+
},
|
|
3880
|
+
{
|
|
3881
|
+
"name": "MessageSourceMap",
|
|
3882
|
+
"declaration": "export interface MessageSourceMap {\n user: { kind: 'user'; };\n plugin: { kind: 'plugin'; plugin: string; } & ContextFormed;\n model: ModelMessageSource;\n tool: ToolMessageSource;\n goal: GoalMessageSource;\n}"
|
|
3883
|
+
},
|
|
3884
|
+
{
|
|
3885
|
+
"name": "ModelMessageSource",
|
|
3886
|
+
"declaration": "export interface ModelMessageSource extends AssistantProvenance {\n kind: 'model';\n}"
|
|
3887
|
+
},
|
|
3888
|
+
{
|
|
3889
|
+
"name": "ProviderRequestId",
|
|
3890
|
+
"declaration": "export type ProviderRequestId = Branded<'ProviderRequestId'>;"
|
|
3891
|
+
},
|
|
3892
|
+
{
|
|
3893
|
+
"name": "ReasoningBlock",
|
|
3894
|
+
"declaration": "export interface ReasoningBlock {\n type: 'reasoning';\n text: string;\n}"
|
|
3895
|
+
},
|
|
3896
|
+
{
|
|
3897
|
+
"name": "ReasoningEffortId",
|
|
3898
|
+
"declaration": "export type ReasoningEffortId = Branded<'ReasoningEffortId'>;"
|
|
3899
|
+
},
|
|
3900
|
+
{
|
|
3901
|
+
"name": "RecalledExperience",
|
|
3902
|
+
"declaration": "export interface RecalledExperience {\n experience: ExperienceSnapshot;\n score: number;\n verdict: RecallVerdict;\n conflicts: string[];\n}"
|
|
3903
|
+
},
|
|
3904
|
+
{
|
|
3905
|
+
"name": "RecallExperiencesRequest",
|
|
3906
|
+
"declaration": "export interface RecallExperiencesRequest {\n situation: string;\n topK?: number;\n budgetTokens?: number;\n deep?: boolean;\n context?: string;\n includeTrials?: boolean;\n}"
|
|
3907
|
+
},
|
|
3908
|
+
{
|
|
3909
|
+
"name": "RecallExperiencesResult",
|
|
3910
|
+
"declaration": "export interface RecallExperiencesResult {\n items: RecalledExperience[];\n none: boolean;\n reason?: string;\n omitted: number;\n estimatedTokens: number;\n candidateTrials: CandidateTrial[];\n consolidationDue: boolean;\n}"
|
|
3911
|
+
},
|
|
3912
|
+
{
|
|
3913
|
+
"name": "RecallVerdict",
|
|
3914
|
+
"declaration": "export type RecallVerdict = 'direct' | 'reference' | 'clue';"
|
|
3915
|
+
},
|
|
3916
|
+
{
|
|
3917
|
+
"name": "RefineExperienceRequest",
|
|
3918
|
+
"declaration": "export interface RefineExperienceRequest {\n kind: ExperienceKind;\n family: string;\n gist: string;\n situation: string[];\n path: ExperienceStep[];\n reasoning: string;\n limits: string[];\n failureReason?: string;\n evidence: EvidenceRef;\n complexity: ComplexitySignal;\n humanMarked?: boolean;\n context?: string;\n}"
|
|
3919
|
+
},
|
|
3920
|
+
{
|
|
3921
|
+
"name": "RefineExperienceResult",
|
|
3922
|
+
"declaration": "export interface RefineExperienceResult {\n accepted: boolean;\n reason?: string;\n experience?: ExperienceSnapshot;\n corroboratedId?: string;\n}"
|
|
3923
|
+
},
|
|
3924
|
+
{
|
|
3925
|
+
"name": "ReportOutcome",
|
|
3926
|
+
"declaration": "export type ReportOutcome = 'success' | 'fail';"
|
|
3927
|
+
},
|
|
3928
|
+
{
|
|
3929
|
+
"name": "ReportUseRequest",
|
|
3930
|
+
"declaration": "export interface ReportUseRequest {\n id: string;\n revision?: number;\n outcome: ReportOutcome;\n attribution?: FailureAttribution;\n evidence?: EvidenceRef;\n tokensUsed?: number;\n tokensSaved?: number;\n dedupeKey?: string;\n}"
|
|
3931
|
+
},
|
|
3932
|
+
{
|
|
3933
|
+
"name": "ReportUseResult",
|
|
3934
|
+
"declaration": "export interface ReportUseResult {\n snapshot: ExperienceSnapshot;\n counted: 'alpha' | 'beta' | 'none';\n attributionApplied: FailureAttribution;\n overrideNote?: string;\n challenged: boolean;\n promoted: boolean;\n adopted: boolean;\n cooled?: boolean;\n}"
|
|
3935
|
+
},
|
|
3936
|
+
{
|
|
3937
|
+
"name": "RequestContext",
|
|
3938
|
+
"declaration": "export interface RequestContext {\n provider: string;\n model: string;\n contextWindow?: number;\n}"
|
|
3939
|
+
},
|
|
3940
|
+
{
|
|
3941
|
+
"name": "RequestHeaderReason",
|
|
3942
|
+
"declaration": "export type RequestHeaderReason = 'initial' | 'resume' | 'change';"
|
|
3943
|
+
},
|
|
3944
|
+
{
|
|
3945
|
+
"name": "ReviseExperienceRequest",
|
|
3946
|
+
"declaration": "export interface ReviseExperienceRequest {\n id: string;\n reason: string;\n gist?: string;\n situation?: string[];\n path?: ExperienceStep[];\n reasoning?: string;\n limits?: string[];\n}"
|
|
3947
|
+
},
|
|
3948
|
+
{
|
|
3949
|
+
"name": "RollbackExperienceRequest",
|
|
3950
|
+
"declaration": "export interface RollbackExperienceRequest {\n id: string;\n toRevision: number;\n reason: string;\n}"
|
|
3951
|
+
},
|
|
3952
|
+
{
|
|
3953
|
+
"name": "Session",
|
|
3954
|
+
"declaration": "export class Session {\n get surface(): SessionSurface;\n readonly header: SessionHeader;\n get id(): SessionId;\n readonly firstLiveSeq: number;\n get events(): readonly SessionEvent[];\n get seq(): number;\n append<T extends SessionEventType>(type: T, data: SessionEventMap[T], ...opts: T extends SurfaceEventType ? [opts: SurfaceIntent] : []): SessionEvent<T>;\n requestHeader(): EpochHeader | undefined;\n requestContext(): RequestContext | undefined;\n deriveMessages(): Message[];\n deriveEventMessage(event: SessionEvent): Message | null;\n}"
|
|
3955
|
+
},
|
|
3956
|
+
{
|
|
3957
|
+
"name": "SessionEvent",
|
|
3958
|
+
"declaration": "export type SessionEvent<T extends SessionEventType = SessionEventType> = { [K in SessionEventType]: { type: K; seq: number; time: number; data: SessionEventMap[K]; ignorable?: true; } & (K extends SurfaceEventType ? { sourceEventSeqs?: number[]; surfaceOp?: SurfaceOp; } : object) }[T];"
|
|
3959
|
+
},
|
|
3960
|
+
{
|
|
3961
|
+
"name": "SessionEventMap",
|
|
3962
|
+
"declaration": "export interface SessionEventMap {\n 'turn/start': { turn: number; };\n 'turn/end': { turn: number; reason: TurnEndReason; };\n 'step/start': { turn: number; step: number; };\n 'step/end': { turn: number; step: number; };\n 'user/message': UserMessage;\n 'assistant/chunk': { turn: number; step: number; chunk: StreamChunk; };\n 'assistant/message': { turn: number; step: number; message: AssistantMessage; usage?: TokenUsage; };\n 'tool/call': { turn: number; step: number; callId: CallId; name: string; arguments: string; };\n 'tool/result': { turn: number; step: number; message: ToolResultMessage; error?: { name: string; code: string; }; meta?: JsonValue; };\n 'todo/write': { todos: TodoItem[]; };\n 'request/header': { header: EpochHeader; reason: RequestHeaderReason; };\n 'request/context': RequestContext;\n 'session/end-seed': Record<string, never>;\n 'agent/inbox/spliced': { target: InboxTarget; start: number; removedCount?: number; inserted: UserMessage[]; outcome?: 'canceled'; };\n 'command/run': { commandId: CommandId; name: string; args?: string; source: CommandSource; };\n 'command/done': { commandId: CommandId; kind: 'success' | 'error'; text?: string; sourceEventSeq?: number; };\n 'approval/asked': { id: ApprovalRequestId; toolName: string; callId?: CallId; reason?: string; };\n 'approval/decided': { id: ApprovalRequestId; outcome: ApprovalOutcome; };\n 'approval/policy': { policy: ApprovalPolicy; source?: 'delegation'; };\n 'tool/code-dispatch-start': CodeDispatchStartEventData;\n 'tool/code-dispatch': CodeDispatchEventData;\n 'goal/change': GoalChangeMeta;\n}"
|
|
3963
|
+
},
|
|
3964
|
+
{
|
|
3965
|
+
"name": "SessionEventType",
|
|
3966
|
+
"declaration": "export type SessionEventType = keyof SessionEventMap;"
|
|
3967
|
+
},
|
|
3968
|
+
{
|
|
3969
|
+
"name": "SessionHeader",
|
|
3970
|
+
"declaration": "export interface SessionHeader {\n readonly version: number;\n readonly id: SessionId;\n readonly createdAt: number;\n readonly cwd?: string;\n readonly parentSession?: SessionId;\n readonly seedLength?: number;\n readonly origin?: 'subagent';\n readonly delegationDepth?: number;\n readonly agentPreset?: string;\n}"
|
|
3971
|
+
},
|
|
3972
|
+
{
|
|
3973
|
+
"name": "SessionId",
|
|
3974
|
+
"declaration": "export type SessionId = Branded<'SessionId'>;"
|
|
3975
|
+
},
|
|
3976
|
+
{
|
|
3977
|
+
"name": "SessionSurface",
|
|
3978
|
+
"declaration": "export interface SessionSurface {\n readonly nodes: readonly number[];\n readonly replaceGeneration: number;\n}"
|
|
3979
|
+
},
|
|
3980
|
+
{
|
|
3981
|
+
"name": "StreamChunk",
|
|
3982
|
+
"declaration": "export type StreamChunk = { type: 'block-start'; index: number; blockType: ContentBlockType; } | { type: 'text-delta'; index: number; text: string; } | { type: 'reasoning-delta'; index: number; text: string; } | { type: 'tool-call-delta'; index: number; id: CallId; name?: string; argumentsDelta: string; } | { type: 'block-end'; index: number; block: ContentBlock; } | { type: 'usage'; usage: TokenUsage; } | { type: 'finish'; reason: FinishReason; replayState?: unknown; };"
|
|
3983
|
+
},
|
|
3984
|
+
{
|
|
3985
|
+
"name": "SurfaceEventType",
|
|
3986
|
+
"declaration": "export type SurfaceEventType = 'user/message' | 'assistant/message' | 'tool/result';"
|
|
3987
|
+
},
|
|
3988
|
+
{
|
|
3989
|
+
"name": "SurfaceIntent",
|
|
3990
|
+
"declaration": "export interface SurfaceIntent {\n surfaceOp: SurfaceOp;\n sourceEventSeqs?: number[];\n}"
|
|
3991
|
+
},
|
|
3992
|
+
{
|
|
3993
|
+
"name": "SurfaceOp",
|
|
3994
|
+
"declaration": "export type SurfaceOp = 'append' | { op: 'replace'; start: number; end: number; };"
|
|
3995
|
+
},
|
|
3996
|
+
{
|
|
3997
|
+
"name": "TextBlock",
|
|
3998
|
+
"declaration": "export interface TextBlock {\n type: 'text';\n text: string;\n}"
|
|
3999
|
+
},
|
|
4000
|
+
{
|
|
4001
|
+
"name": "TodoItem",
|
|
4002
|
+
"declaration": "export interface TodoItem {\n content: string;\n status: 'pending' | 'in_progress' | 'completed';\n}"
|
|
4003
|
+
},
|
|
4004
|
+
{
|
|
4005
|
+
"name": "TokenUsage",
|
|
4006
|
+
"declaration": "export interface TokenUsage {\n inputTokens: number;\n outputTokens: number;\n cacheReadTokens?: number;\n cacheWriteTokens?: number;\n reasoningTokens?: number;\n}"
|
|
4007
|
+
},
|
|
4008
|
+
{
|
|
4009
|
+
"name": "ToolCallBlock",
|
|
4010
|
+
"declaration": "export interface ToolCallBlock {\n type: 'tool-call';\n id: CallId;\n name: string;\n arguments: string;\n}"
|
|
4011
|
+
},
|
|
4012
|
+
{
|
|
4013
|
+
"name": "ToolMessageSource",
|
|
4014
|
+
"declaration": "export interface ToolMessageSource {\n kind: 'tool';\n callId: CallId;\n}"
|
|
4015
|
+
},
|
|
4016
|
+
{
|
|
4017
|
+
"name": "ToolResultBlock",
|
|
4018
|
+
"declaration": "export interface ToolResultBlock {\n type: 'tool-result';\n toolCallId: CallId;\n content: ContentBlock[];\n isError?: boolean;\n}"
|
|
4019
|
+
},
|
|
4020
|
+
{
|
|
4021
|
+
"name": "ToolResultMessage",
|
|
4022
|
+
"declaration": "export interface ToolResultMessage extends Message {\n readonly role: 'user';\n readonly content: [ToolResultBlock];\n readonly source: ToolMessageSource;\n}"
|
|
4023
|
+
},
|
|
4024
|
+
{
|
|
4025
|
+
"name": "ToolSchema",
|
|
4026
|
+
"declaration": "export interface ToolSchema {\n name: string;\n description: string;\n parameters: Record<string, unknown>;\n}"
|
|
4027
|
+
},
|
|
4028
|
+
{
|
|
4029
|
+
"name": "TurnEndCancelCause",
|
|
4030
|
+
"declaration": "export type TurnEndCancelCause = AgentCancelCause | { readonly kind: 'legacy'; };"
|
|
4031
|
+
},
|
|
4032
|
+
{
|
|
4033
|
+
"name": "TurnEndReason",
|
|
4034
|
+
"declaration": "export type TurnEndReason = TurnEndReasonMap[keyof TurnEndReasonMap];"
|
|
4035
|
+
},
|
|
4036
|
+
{
|
|
4037
|
+
"name": "TurnEndReasonMap",
|
|
4038
|
+
"declaration": "export interface TurnEndReasonMap {\n completed: { kind: 'completed'; };\n aborted: { kind: 'aborted'; reason: TurnEndCancelCause; };\n blocked: { kind: 'blocked'; };\n error: { kind: 'error'; error: LlmFailure; };\n 'max-tokens': { kind: 'max-tokens'; };\n interrupted: { kind: 'interrupted'; };\n}"
|
|
4039
|
+
},
|
|
4040
|
+
{
|
|
4041
|
+
"name": "UserMessage",
|
|
4042
|
+
"declaration": "export interface UserMessage extends Message {\n readonly role: 'user';\n}"
|
|
4043
|
+
},
|
|
4044
|
+
{
|
|
4045
|
+
"name": "VerifyShadowRequest",
|
|
4046
|
+
"declaration": "export interface VerifyShadowRequest {\n id: string;\n revision: number;\n samples: { situation: string; expected: ReportOutcome; }[];\n}"
|
|
4047
|
+
},
|
|
4048
|
+
{
|
|
4049
|
+
"name": "VerifyShadowResult",
|
|
4050
|
+
"declaration": "export interface VerifyShadowResult {\n passed: boolean;\n agreement: number;\n snapshot?: ExperienceSnapshot;\n reason?: string;\n}"
|
|
4051
|
+
}
|
|
4052
|
+
]
|
|
4053
|
+
}
|
|
4054
|
+
],
|
|
4055
|
+
"events": [],
|
|
4056
|
+
"objects": []
|
|
4057
|
+
},
|
|
4058
|
+
}
|