@tenphi/akno-protocol 0.7.0 → 0.9.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/README.md +11 -1
- package/dist/common.d.ts +109 -0
- package/dist/common.d.ts.map +1 -1
- package/dist/common.js +29 -1
- package/dist/common.js.map +1 -1
- package/dist/ops/answer.d.ts +19 -0
- package/dist/ops/answer.d.ts.map +1 -1
- package/dist/ops/answer.js +4 -1
- package/dist/ops/answer.js.map +1 -1
- package/dist/ops/context.d.ts +58 -0
- package/dist/ops/context.d.ts.map +1 -1
- package/dist/ops/context.js +5 -1
- package/dist/ops/context.js.map +1 -1
- package/dist/ops/folder.d.ts +1 -0
- package/dist/ops/folder.d.ts.map +1 -1
- package/dist/ops/graph.d.ts +49 -0
- package/dist/ops/graph.d.ts.map +1 -1
- package/dist/ops/graph.js +5 -2
- package/dist/ops/graph.js.map +1 -1
- package/dist/ops/list.d.ts +1 -0
- package/dist/ops/list.d.ts.map +1 -1
- package/dist/ops/mutate.d.ts +6 -0
- package/dist/ops/mutate.d.ts.map +1 -1
- package/dist/ops/read.d.ts +1 -0
- package/dist/ops/read.d.ts.map +1 -1
- package/dist/ops/recall.d.ts +45 -0
- package/dist/ops/recall.d.ts.map +1 -1
- package/dist/ops/recall.js +4 -1
- package/dist/ops/recall.js.map +1 -1
- package/dist/ops/retain.d.ts +80 -0
- package/dist/ops/retain.d.ts.map +1 -1
- package/dist/ops/retain.js +50 -4
- package/dist/ops/retain.js.map +1 -1
- package/dist/ops/timeline.d.ts +4 -3
- package/dist/ops/timeline.d.ts.map +1 -1
- package/dist/ops/write.d.ts +1 -0
- package/dist/ops/write.d.ts.map +1 -1
- package/dist/registry.d.ts +204 -3
- package/dist/registry.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/dist/version.js +3 -1
- package/dist/version.js.map +1 -1
- package/package.json +1 -1
package/dist/ops/graph.d.ts
CHANGED
|
@@ -25,10 +25,25 @@ export declare const GraphInput: z.ZodObject<{
|
|
|
25
25
|
owns_document: "owns_document";
|
|
26
26
|
participates_in: "participates_in";
|
|
27
27
|
derived_from: "derived_from";
|
|
28
|
+
corrects: "corrects";
|
|
29
|
+
supersedes: "supersedes";
|
|
30
|
+
contradicts: "contradicts";
|
|
31
|
+
fulfills: "fulfills";
|
|
32
|
+
answers: "answers";
|
|
33
|
+
caused_by: "caused_by";
|
|
28
34
|
}>>>;
|
|
29
35
|
max_hops: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
|
|
30
36
|
limit: z.ZodOptional<z.ZodNumber>;
|
|
31
37
|
include_history: z.ZodOptional<z.ZodBoolean>;
|
|
38
|
+
memory_view: z.ZodOptional<z.ZodEnum<{
|
|
39
|
+
factual: "factual";
|
|
40
|
+
history: "history";
|
|
41
|
+
planning: "planning";
|
|
42
|
+
reports: "reports";
|
|
43
|
+
questions: "questions";
|
|
44
|
+
discussion: "discussion";
|
|
45
|
+
all: "all";
|
|
46
|
+
}>>;
|
|
32
47
|
}, z.core.$strip>;
|
|
33
48
|
export type GraphInput = z.infer<typeof GraphInput>;
|
|
34
49
|
export declare const GraphEdgeRef: z.ZodObject<{
|
|
@@ -45,11 +60,18 @@ export declare const GraphEdgeRef: z.ZodObject<{
|
|
|
45
60
|
owns_document: "owns_document";
|
|
46
61
|
participates_in: "participates_in";
|
|
47
62
|
derived_from: "derived_from";
|
|
63
|
+
corrects: "corrects";
|
|
64
|
+
supersedes: "supersedes";
|
|
65
|
+
contradicts: "contradicts";
|
|
66
|
+
fulfills: "fulfills";
|
|
67
|
+
answers: "answers";
|
|
68
|
+
caused_by: "caused_by";
|
|
48
69
|
}>;
|
|
49
70
|
predicate: z.ZodOptional<z.ZodString>;
|
|
50
71
|
confidence: z.ZodNumber;
|
|
51
72
|
derivation: z.ZodEnum<{
|
|
52
73
|
fact: "fact";
|
|
74
|
+
memory: "memory";
|
|
53
75
|
structural: "structural";
|
|
54
76
|
}>;
|
|
55
77
|
resolution: z.ZodEnum<{
|
|
@@ -67,6 +89,7 @@ export declare const GraphEdgeRef: z.ZodObject<{
|
|
|
67
89
|
document: z.ZodOptional<z.ZodString>;
|
|
68
90
|
event: z.ZodOptional<z.ZodString>;
|
|
69
91
|
fact: z.ZodOptional<z.ZodString>;
|
|
92
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
70
93
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
71
94
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
72
95
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -103,6 +126,7 @@ export declare const GraphPath: z.ZodObject<{
|
|
|
103
126
|
document: z.ZodOptional<z.ZodString>;
|
|
104
127
|
event: z.ZodOptional<z.ZodString>;
|
|
105
128
|
fact: z.ZodOptional<z.ZodString>;
|
|
129
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
106
130
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
107
131
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
108
132
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -117,6 +141,7 @@ export declare const GraphAmbiguity: z.ZodObject<{
|
|
|
117
141
|
kind: z.ZodEnum<{
|
|
118
142
|
event: "event";
|
|
119
143
|
fact: "fact";
|
|
144
|
+
memory: "memory";
|
|
120
145
|
observation: "observation";
|
|
121
146
|
entity: "entity";
|
|
122
147
|
page: "page";
|
|
@@ -143,6 +168,7 @@ export declare const GraphAmbiguity: z.ZodObject<{
|
|
|
143
168
|
document: z.ZodOptional<z.ZodString>;
|
|
144
169
|
fact: z.ZodOptional<z.ZodString>;
|
|
145
170
|
event: z.ZodOptional<z.ZodString>;
|
|
171
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
146
172
|
observation: z.ZodOptional<z.ZodString>;
|
|
147
173
|
date: z.ZodOptional<z.ZodString>;
|
|
148
174
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -173,6 +199,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
173
199
|
retain_verification_failed: "retain_verification_failed";
|
|
174
200
|
retain_apply_failed: "retain_apply_failed";
|
|
175
201
|
partial_temporal_index: "partial_temporal_index";
|
|
202
|
+
partial_memory_index: "partial_memory_index";
|
|
176
203
|
timeline_range_limited: "timeline_range_limited";
|
|
177
204
|
expansion_failed: "expansion_failed";
|
|
178
205
|
no_vector_index: "no_vector_index";
|
|
@@ -204,6 +231,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
204
231
|
kind: z.ZodEnum<{
|
|
205
232
|
event: "event";
|
|
206
233
|
fact: "fact";
|
|
234
|
+
memory: "memory";
|
|
207
235
|
observation: "observation";
|
|
208
236
|
entity: "entity";
|
|
209
237
|
page: "page";
|
|
@@ -230,6 +258,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
230
258
|
document: z.ZodOptional<z.ZodString>;
|
|
231
259
|
fact: z.ZodOptional<z.ZodString>;
|
|
232
260
|
event: z.ZodOptional<z.ZodString>;
|
|
261
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
233
262
|
observation: z.ZodOptional<z.ZodString>;
|
|
234
263
|
date: z.ZodOptional<z.ZodString>;
|
|
235
264
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -254,11 +283,18 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
254
283
|
owns_document: "owns_document";
|
|
255
284
|
participates_in: "participates_in";
|
|
256
285
|
derived_from: "derived_from";
|
|
286
|
+
corrects: "corrects";
|
|
287
|
+
supersedes: "supersedes";
|
|
288
|
+
contradicts: "contradicts";
|
|
289
|
+
fulfills: "fulfills";
|
|
290
|
+
answers: "answers";
|
|
291
|
+
caused_by: "caused_by";
|
|
257
292
|
}>;
|
|
258
293
|
predicate: z.ZodOptional<z.ZodString>;
|
|
259
294
|
confidence: z.ZodNumber;
|
|
260
295
|
derivation: z.ZodEnum<{
|
|
261
296
|
fact: "fact";
|
|
297
|
+
memory: "memory";
|
|
262
298
|
structural: "structural";
|
|
263
299
|
}>;
|
|
264
300
|
resolution: z.ZodEnum<{
|
|
@@ -276,6 +312,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
276
312
|
document: z.ZodOptional<z.ZodString>;
|
|
277
313
|
event: z.ZodOptional<z.ZodString>;
|
|
278
314
|
fact: z.ZodOptional<z.ZodString>;
|
|
315
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
279
316
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
280
317
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
281
318
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -301,6 +338,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
301
338
|
document: z.ZodOptional<z.ZodString>;
|
|
302
339
|
event: z.ZodOptional<z.ZodString>;
|
|
303
340
|
fact: z.ZodOptional<z.ZodString>;
|
|
341
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
304
342
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
305
343
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
306
344
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -314,6 +352,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
314
352
|
kind: z.ZodEnum<{
|
|
315
353
|
event: "event";
|
|
316
354
|
fact: "fact";
|
|
355
|
+
memory: "memory";
|
|
317
356
|
observation: "observation";
|
|
318
357
|
entity: "entity";
|
|
319
358
|
page: "page";
|
|
@@ -340,6 +379,7 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
340
379
|
document: z.ZodOptional<z.ZodString>;
|
|
341
380
|
fact: z.ZodOptional<z.ZodString>;
|
|
342
381
|
event: z.ZodOptional<z.ZodString>;
|
|
382
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
343
383
|
observation: z.ZodOptional<z.ZodString>;
|
|
344
384
|
date: z.ZodOptional<z.ZodString>;
|
|
345
385
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -358,6 +398,15 @@ export declare const GraphOutput: z.ZodObject<{
|
|
|
358
398
|
no_paths: "no_paths";
|
|
359
399
|
graph_index_unreadable: "graph_index_unreadable";
|
|
360
400
|
}>>;
|
|
401
|
+
memory_view: z.ZodEnum<{
|
|
402
|
+
factual: "factual";
|
|
403
|
+
history: "history";
|
|
404
|
+
planning: "planning";
|
|
405
|
+
reports: "reports";
|
|
406
|
+
questions: "questions";
|
|
407
|
+
discussion: "discussion";
|
|
408
|
+
all: "all";
|
|
409
|
+
}>;
|
|
361
410
|
}, z.core.$strip>;
|
|
362
411
|
export type GraphOutput = z.infer<typeof GraphOutput>;
|
|
363
412
|
export { GraphEvidenceLocator, GraphNodeRef, GraphRelation } from '../common.ts';
|
package/dist/ops/graph.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;EAAgC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,mFAAmF;AACnF,eAAO,MAAM,UAAU
|
|
1
|
+
{"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;EAAgC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,mFAAmF;AACnF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgBnB,CAAC;AACL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAA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phNodeRef, GraphRelation, ResultEnvelope } from "../common.js";
|
|
2
|
+
import { GraphEvidenceLocator, GraphNodeRef, GraphRelation, MemoryView, ResultEnvelope } from "../common.js";
|
|
3
3
|
export const GraphDirection = z.enum(['out', 'in', 'both']);
|
|
4
4
|
/** One exact seed form. Query seeds still resolve only evidence-declared names. */
|
|
5
5
|
export const GraphInput = z
|
|
@@ -13,6 +13,8 @@ export const GraphInput = z
|
|
|
13
13
|
/** Maximum returned paths. Nodes, edges, and per-node fan-out have separate hard caps. */
|
|
14
14
|
limit: z.number().int().positive().max(100).optional(),
|
|
15
15
|
include_history: z.boolean().optional(),
|
|
16
|
+
/** Restrict typed retained-memory relation edges. Inferred for query seeds, factual otherwise. */
|
|
17
|
+
memory_view: MemoryView.optional(),
|
|
16
18
|
})
|
|
17
19
|
.refine((value) => [value.slug, value.entity, value.query].filter(Boolean).length === 1, {
|
|
18
20
|
message: 'graph requires exactly one of: slug, entity, query',
|
|
@@ -24,7 +26,7 @@ export const GraphEdgeRef = z.object({
|
|
|
24
26
|
relation: GraphRelation,
|
|
25
27
|
predicate: z.string().optional(),
|
|
26
28
|
confidence: z.number().min(0).max(1),
|
|
27
|
-
derivation: z.enum(['structural', 'fact']),
|
|
29
|
+
derivation: z.enum(['structural', 'fact', 'memory']),
|
|
28
30
|
resolution: z.enum(['exact', 'contextual']),
|
|
29
31
|
evidence: GraphEvidenceLocator,
|
|
30
32
|
valid_from: z.string().optional(),
|
|
@@ -58,6 +60,7 @@ export const GraphOutput = ResultEnvelope.extend({
|
|
|
58
60
|
total: z.number().int().nonnegative(),
|
|
59
61
|
truncated: z.boolean(),
|
|
60
62
|
reason: z.enum(['seed_not_found', 'no_paths', 'graph_index_unreadable']).optional(),
|
|
63
|
+
memory_view: MemoryView,
|
|
61
64
|
});
|
|
62
65
|
export { GraphEvidenceLocator, GraphNodeRef, GraphRelation } from "../common.js";
|
|
63
66
|
//# sourceMappingURL=graph.js.map
|
package/dist/ops/graph.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAE7G,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC,CAAC;AAG5D,mFAAmF;AACnF,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC;KACxB,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACzC,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC3C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC1C,SAAS,EAAE,cAAc,CAAC,QAAQ,EAAE;IACpC,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,aAAa,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,QAAQ,EAAE;IACrF,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,CA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C,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;CAClC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,WAAW,GAAG,cAAc,CAAC,MAAM,CAAC;IAC/C,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;IACzB,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,YAAY,CAAC;IAC5B,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,CAAC;IACzB,WAAW,EAAE,CAAC,CAAC,KAAK,CAAC,cAAc,CAAC;IACpC,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IACrC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,gBAAgB,EAAE,UAAU,EAAE,wBAAwB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnF,WAAW,EAAE,UAAU;CACxB,CAAC,CAAC;AAGH,OAAO,EAAE,oBAAoB,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC"}
|
package/dist/ops/list.d.ts
CHANGED
|
@@ -80,6 +80,7 @@ export declare const ListOutput: z.ZodObject<{
|
|
|
80
80
|
retain_verification_failed: "retain_verification_failed";
|
|
81
81
|
retain_apply_failed: "retain_apply_failed";
|
|
82
82
|
partial_temporal_index: "partial_temporal_index";
|
|
83
|
+
partial_memory_index: "partial_memory_index";
|
|
83
84
|
timeline_range_limited: "timeline_range_limited";
|
|
84
85
|
expansion_failed: "expansion_failed";
|
|
85
86
|
no_vector_index: "no_vector_index";
|
package/dist/ops/list.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["../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M,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/ops/mutate.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare const RememberOutput: z.ZodObject<{
|
|
|
31
31
|
retain_verification_failed: "retain_verification_failed";
|
|
32
32
|
retain_apply_failed: "retain_apply_failed";
|
|
33
33
|
partial_temporal_index: "partial_temporal_index";
|
|
34
|
+
partial_memory_index: "partial_memory_index";
|
|
34
35
|
timeline_range_limited: "timeline_range_limited";
|
|
35
36
|
expansion_failed: "expansion_failed";
|
|
36
37
|
no_vector_index: "no_vector_index";
|
|
@@ -144,6 +145,7 @@ export declare const ForgetOutput: z.ZodObject<{
|
|
|
144
145
|
retain_verification_failed: "retain_verification_failed";
|
|
145
146
|
retain_apply_failed: "retain_apply_failed";
|
|
146
147
|
partial_temporal_index: "partial_temporal_index";
|
|
148
|
+
partial_memory_index: "partial_memory_index";
|
|
147
149
|
timeline_range_limited: "timeline_range_limited";
|
|
148
150
|
expansion_failed: "expansion_failed";
|
|
149
151
|
no_vector_index: "no_vector_index";
|
|
@@ -189,6 +191,7 @@ export declare const UndoOutput: z.ZodObject<{
|
|
|
189
191
|
retain_verification_failed: "retain_verification_failed";
|
|
190
192
|
retain_apply_failed: "retain_apply_failed";
|
|
191
193
|
partial_temporal_index: "partial_temporal_index";
|
|
194
|
+
partial_memory_index: "partial_memory_index";
|
|
192
195
|
timeline_range_limited: "timeline_range_limited";
|
|
193
196
|
expansion_failed: "expansion_failed";
|
|
194
197
|
no_vector_index: "no_vector_index";
|
|
@@ -235,6 +238,7 @@ export declare const MoveOutput: z.ZodObject<{
|
|
|
235
238
|
retain_verification_failed: "retain_verification_failed";
|
|
236
239
|
retain_apply_failed: "retain_apply_failed";
|
|
237
240
|
partial_temporal_index: "partial_temporal_index";
|
|
241
|
+
partial_memory_index: "partial_memory_index";
|
|
238
242
|
timeline_range_limited: "timeline_range_limited";
|
|
239
243
|
expansion_failed: "expansion_failed";
|
|
240
244
|
no_vector_index: "no_vector_index";
|
|
@@ -296,6 +300,7 @@ export declare const IngestOutput: z.ZodObject<{
|
|
|
296
300
|
retain_verification_failed: "retain_verification_failed";
|
|
297
301
|
retain_apply_failed: "retain_apply_failed";
|
|
298
302
|
partial_temporal_index: "partial_temporal_index";
|
|
303
|
+
partial_memory_index: "partial_memory_index";
|
|
299
304
|
timeline_range_limited: "timeline_range_limited";
|
|
300
305
|
expansion_failed: "expansion_failed";
|
|
301
306
|
no_vector_index: "no_vector_index";
|
|
@@ -390,6 +395,7 @@ export declare const AdoptOutput: z.ZodObject<{
|
|
|
390
395
|
retain_verification_failed: "retain_verification_failed";
|
|
391
396
|
retain_apply_failed: "retain_apply_failed";
|
|
392
397
|
partial_temporal_index: "partial_temporal_index";
|
|
398
|
+
partial_memory_index: "partial_memory_index";
|
|
393
399
|
timeline_range_limited: "timeline_range_limited";
|
|
394
400
|
expansion_failed: "expansion_failed";
|
|
395
401
|
no_vector_index: "no_vector_index";
|
package/dist/ops/mutate.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mutate.d.ts","sourceRoot":"","sources":["../../src/ops/mutate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;iBAsBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAE1D,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"mutate.d.ts","sourceRoot":"","sources":["../../src/ops/mutate.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,eAAO,MAAM,aAAa;;;;;;;iBAsBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC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CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAuCvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,8FAA8F;AAC9F,eAAO,MAAM,UAAU;;iBAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAgDtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC"}
|
package/dist/ops/read.d.ts
CHANGED
|
@@ -271,6 +271,7 @@ export declare const ReadOutput: z.ZodObject<{
|
|
|
271
271
|
retain_verification_failed: "retain_verification_failed";
|
|
272
272
|
retain_apply_failed: "retain_apply_failed";
|
|
273
273
|
partial_temporal_index: "partial_temporal_index";
|
|
274
|
+
partial_memory_index: "partial_memory_index";
|
|
274
275
|
timeline_range_limited: "timeline_range_limited";
|
|
275
276
|
expansion_failed: "expansion_failed";
|
|
276
277
|
no_vector_index: "no_vector_index";
|
package/dist/ops/read.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"read.d.ts","sourceRoot":"","sources":["../../src/ops/read.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAWxB,oFAAoF;AACpF,eAAO,MAAM,SAAS;;;;;;iBAelB,CAAC;AACL,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,SAAS,CAAC,CAAC;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;;;;;;;;iBAavB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAExD,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC"}
|
package/dist/ops/recall.d.ts
CHANGED
|
@@ -6,6 +6,15 @@ export declare const RecallInput: z.ZodObject<{
|
|
|
6
6
|
question: "question";
|
|
7
7
|
explore: "explore";
|
|
8
8
|
}>>;
|
|
9
|
+
memory_view: z.ZodOptional<z.ZodEnum<{
|
|
10
|
+
factual: "factual";
|
|
11
|
+
history: "history";
|
|
12
|
+
planning: "planning";
|
|
13
|
+
reports: "reports";
|
|
14
|
+
questions: "questions";
|
|
15
|
+
discussion: "discussion";
|
|
16
|
+
all: "all";
|
|
17
|
+
}>>;
|
|
9
18
|
depth: z.ZodOptional<z.ZodEnum<{
|
|
10
19
|
summary: "summary";
|
|
11
20
|
lines: "lines";
|
|
@@ -65,6 +74,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
65
74
|
retain_verification_failed: "retain_verification_failed";
|
|
66
75
|
retain_apply_failed: "retain_apply_failed";
|
|
67
76
|
partial_temporal_index: "partial_temporal_index";
|
|
77
|
+
partial_memory_index: "partial_memory_index";
|
|
68
78
|
timeline_range_limited: "timeline_range_limited";
|
|
69
79
|
expansion_failed: "expansion_failed";
|
|
70
80
|
no_vector_index: "no_vector_index";
|
|
@@ -286,6 +296,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
286
296
|
kind: z.ZodEnum<{
|
|
287
297
|
event: "event";
|
|
288
298
|
fact: "fact";
|
|
299
|
+
memory: "memory";
|
|
289
300
|
observation: "observation";
|
|
290
301
|
entity: "entity";
|
|
291
302
|
page: "page";
|
|
@@ -312,6 +323,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
312
323
|
document: z.ZodOptional<z.ZodString>;
|
|
313
324
|
fact: z.ZodOptional<z.ZodString>;
|
|
314
325
|
event: z.ZodOptional<z.ZodString>;
|
|
326
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
315
327
|
observation: z.ZodOptional<z.ZodString>;
|
|
316
328
|
date: z.ZodOptional<z.ZodString>;
|
|
317
329
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -327,6 +339,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
327
339
|
kind: z.ZodEnum<{
|
|
328
340
|
event: "event";
|
|
329
341
|
fact: "fact";
|
|
342
|
+
memory: "memory";
|
|
330
343
|
observation: "observation";
|
|
331
344
|
entity: "entity";
|
|
332
345
|
page: "page";
|
|
@@ -353,6 +366,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
353
366
|
document: z.ZodOptional<z.ZodString>;
|
|
354
367
|
fact: z.ZodOptional<z.ZodString>;
|
|
355
368
|
event: z.ZodOptional<z.ZodString>;
|
|
369
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
356
370
|
observation: z.ZodOptional<z.ZodString>;
|
|
357
371
|
date: z.ZodOptional<z.ZodString>;
|
|
358
372
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -368,6 +382,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
368
382
|
kind: z.ZodEnum<{
|
|
369
383
|
event: "event";
|
|
370
384
|
fact: "fact";
|
|
385
|
+
memory: "memory";
|
|
371
386
|
observation: "observation";
|
|
372
387
|
entity: "entity";
|
|
373
388
|
page: "page";
|
|
@@ -394,6 +409,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
394
409
|
document: z.ZodOptional<z.ZodString>;
|
|
395
410
|
fact: z.ZodOptional<z.ZodString>;
|
|
396
411
|
event: z.ZodOptional<z.ZodString>;
|
|
412
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
397
413
|
observation: z.ZodOptional<z.ZodString>;
|
|
398
414
|
date: z.ZodOptional<z.ZodString>;
|
|
399
415
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -414,6 +430,12 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
414
430
|
owns_document: "owns_document";
|
|
415
431
|
participates_in: "participates_in";
|
|
416
432
|
derived_from: "derived_from";
|
|
433
|
+
corrects: "corrects";
|
|
434
|
+
supersedes: "supersedes";
|
|
435
|
+
contradicts: "contradicts";
|
|
436
|
+
fulfills: "fulfills";
|
|
437
|
+
answers: "answers";
|
|
438
|
+
caused_by: "caused_by";
|
|
417
439
|
}>>;
|
|
418
440
|
hops: z.ZodNumber;
|
|
419
441
|
confidence: z.ZodNumber;
|
|
@@ -428,6 +450,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
428
450
|
document: z.ZodOptional<z.ZodString>;
|
|
429
451
|
event: z.ZodOptional<z.ZodString>;
|
|
430
452
|
fact: z.ZodOptional<z.ZodString>;
|
|
453
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
431
454
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
432
455
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
433
456
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -503,6 +526,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
503
526
|
kind: z.ZodEnum<{
|
|
504
527
|
event: "event";
|
|
505
528
|
fact: "fact";
|
|
529
|
+
memory: "memory";
|
|
506
530
|
observation: "observation";
|
|
507
531
|
entity: "entity";
|
|
508
532
|
page: "page";
|
|
@@ -529,6 +553,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
529
553
|
document: z.ZodOptional<z.ZodString>;
|
|
530
554
|
fact: z.ZodOptional<z.ZodString>;
|
|
531
555
|
event: z.ZodOptional<z.ZodString>;
|
|
556
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
532
557
|
observation: z.ZodOptional<z.ZodString>;
|
|
533
558
|
date: z.ZodOptional<z.ZodString>;
|
|
534
559
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -544,6 +569,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
544
569
|
kind: z.ZodEnum<{
|
|
545
570
|
event: "event";
|
|
546
571
|
fact: "fact";
|
|
572
|
+
memory: "memory";
|
|
547
573
|
observation: "observation";
|
|
548
574
|
entity: "entity";
|
|
549
575
|
page: "page";
|
|
@@ -570,6 +596,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
570
596
|
document: z.ZodOptional<z.ZodString>;
|
|
571
597
|
fact: z.ZodOptional<z.ZodString>;
|
|
572
598
|
event: z.ZodOptional<z.ZodString>;
|
|
599
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
573
600
|
observation: z.ZodOptional<z.ZodString>;
|
|
574
601
|
date: z.ZodOptional<z.ZodString>;
|
|
575
602
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -585,6 +612,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
585
612
|
kind: z.ZodEnum<{
|
|
586
613
|
event: "event";
|
|
587
614
|
fact: "fact";
|
|
615
|
+
memory: "memory";
|
|
588
616
|
observation: "observation";
|
|
589
617
|
entity: "entity";
|
|
590
618
|
page: "page";
|
|
@@ -611,6 +639,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
611
639
|
document: z.ZodOptional<z.ZodString>;
|
|
612
640
|
fact: z.ZodOptional<z.ZodString>;
|
|
613
641
|
event: z.ZodOptional<z.ZodString>;
|
|
642
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
614
643
|
observation: z.ZodOptional<z.ZodString>;
|
|
615
644
|
date: z.ZodOptional<z.ZodString>;
|
|
616
645
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
@@ -631,6 +660,12 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
631
660
|
owns_document: "owns_document";
|
|
632
661
|
participates_in: "participates_in";
|
|
633
662
|
derived_from: "derived_from";
|
|
663
|
+
corrects: "corrects";
|
|
664
|
+
supersedes: "supersedes";
|
|
665
|
+
contradicts: "contradicts";
|
|
666
|
+
fulfills: "fulfills";
|
|
667
|
+
answers: "answers";
|
|
668
|
+
caused_by: "caused_by";
|
|
634
669
|
}>>;
|
|
635
670
|
hops: z.ZodNumber;
|
|
636
671
|
confidence: z.ZodNumber;
|
|
@@ -645,6 +680,7 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
645
680
|
document: z.ZodOptional<z.ZodString>;
|
|
646
681
|
event: z.ZodOptional<z.ZodString>;
|
|
647
682
|
fact: z.ZodOptional<z.ZodString>;
|
|
683
|
+
memory: z.ZodOptional<z.ZodString>;
|
|
648
684
|
line_start: z.ZodOptional<z.ZodNumber>;
|
|
649
685
|
line_end: z.ZodOptional<z.ZodNumber>;
|
|
650
686
|
field: z.ZodOptional<z.ZodString>;
|
|
@@ -686,6 +722,15 @@ export declare const RecallOutput: z.ZodObject<{
|
|
|
686
722
|
question: "question";
|
|
687
723
|
explore: "explore";
|
|
688
724
|
}>;
|
|
725
|
+
memory_view: z.ZodEnum<{
|
|
726
|
+
factual: "factual";
|
|
727
|
+
history: "history";
|
|
728
|
+
planning: "planning";
|
|
729
|
+
reports: "reports";
|
|
730
|
+
questions: "questions";
|
|
731
|
+
discussion: "discussion";
|
|
732
|
+
all: "all";
|
|
733
|
+
}>;
|
|
689
734
|
}, z.core.$strip>;
|
|
690
735
|
export type RecallOutput = z.infer<typeof RecallOutput>;
|
|
691
736
|
//# sourceMappingURL=recall.d.ts.map
|
package/dist/ops/recall.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recall.d.ts","sourceRoot":"","sources":["../../src/ops/recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"recall.d.ts","sourceRoot":"","sources":["../../src/ops/recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA4BtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBA6BvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
|
package/dist/ops/recall.js
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { DatePrefix, Depth, PageRole, RecallMode, RecallQualification, RecallResult, ResultEnvelope, SlugFilter, } from "../common.js";
|
|
2
|
+
import { DatePrefix, Depth, MemoryView, PageRole, RecallMode, RecallQualification, RecallResult, ResultEnvelope, SlugFilter, } from "../common.js";
|
|
3
3
|
export const RecallInput = z.object({
|
|
4
4
|
query: z.string().min(1),
|
|
5
5
|
/** Inferred from the query when absent. Passing it explicitly always wins, and
|
|
6
6
|
* getting it wrong costs relevance, never correctness. */
|
|
7
7
|
mode: RecallMode.optional(),
|
|
8
|
+
/** Semantic use of retained memory. Inferred conservatively from `query` when absent. */
|
|
9
|
+
memory_view: MemoryView.optional(),
|
|
8
10
|
depth: Depth.optional(),
|
|
9
11
|
limit: z.number().int().positive().max(100).optional(),
|
|
10
12
|
/** Token budget for the assembled response. Whole cards are filled first. */
|
|
@@ -55,5 +57,6 @@ export const RecallOutput = ResultEnvelope.extend({
|
|
|
55
57
|
*/
|
|
56
58
|
coverage: z.record(z.string(), z.boolean()).optional(),
|
|
57
59
|
mode: RecallMode,
|
|
60
|
+
memory_view: MemoryView,
|
|
58
61
|
});
|
|
59
62
|
//# sourceMappingURL=recall.js.map
|
package/dist/ops/recall.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"recall.js","sourceRoot":"","sources":["../../src/ops/recall.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,UAAU,EACV,KAAK,EACL,QAAQ,EACR,UAAU,EACV,mBAAmB,EACn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