@sunub/obsidian-mcp-server 0.3.1 → 0.3.2
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/build/cli/app.d.ts +1 -0
- package/build/cli/app.js +7 -0
- package/build/cli/app.js.map +1 -0
- package/build/cli/colors.d.ts +15 -0
- package/build/cli/colors.js +15 -0
- package/build/cli/colors.js.map +1 -0
- package/build/cli/commands/types.d.ts +19 -0
- package/build/cli/commands/types.js +11 -0
- package/build/cli/commands/types.js.map +1 -0
- package/build/cli/config/mcpServersConfig.d.ts +15 -3
- package/build/cli/config/mcpServersConfig.js +2 -2
- package/build/cli/config/mcpServersConfig.js.map +1 -1
- package/build/cli/constants.d.ts +47 -0
- package/build/cli/constants.js +101 -0
- package/build/cli/constants.js.map +1 -0
- package/build/cli/hooks/useMcpClient.js +1 -1
- package/build/cli/index.d.ts +1 -0
- package/build/cli/index.js +16 -4
- package/build/cli/index.js.map +1 -1
- package/build/cli/key/input.d.ts +5 -0
- package/build/cli/key/input.js +9 -0
- package/build/cli/key/input.js.map +1 -0
- package/build/cli/key/mouse.d.ts +23 -0
- package/build/cli/key/mouse.js +155 -0
- package/build/cli/key/mouse.js.map +1 -0
- package/build/cli/key/text-buffer-bestcase.d.ts +867 -0
- package/build/cli/key/text-buffer-bestcase.js +2754 -0
- package/build/cli/key/text-buffer-bestcase.js.map +1 -0
- package/build/cli/key/text-buffer.d.ts +509 -0
- package/build/cli/main.d.ts +1 -0
- package/build/cli/main.js +20 -0
- package/build/cli/main.js.map +1 -0
- package/build/cli/reference/text-buffer.d.ts +867 -0
- package/build/cli/reference/text-buffer.js +2754 -0
- package/build/cli/reference/text-buffer.js.map +1 -0
- package/build/cli/theme/builtin/default-dark.d.ts +7 -0
- package/build/cli/theme/builtin/default-dark.js +143 -0
- package/build/cli/theme/builtin/default-dark.js.map +1 -0
- package/build/cli/theme/builtin/no-color.d.ts +7 -0
- package/build/cli/theme/builtin/no-color.js +125 -0
- package/build/cli/theme/builtin/no-color.js.map +1 -0
- package/build/cli/theme/builtin/tokyonight-dark.d.ts +7 -0
- package/build/cli/theme/builtin/tokyonight-dark.js +146 -0
- package/build/cli/theme/builtin/tokyonight-dark.js.map +1 -0
- package/build/cli/theme/semantic-colors.d.ts +2 -0
- package/build/cli/theme/semantic-colors.js +19 -0
- package/build/cli/theme/semantic-colors.js.map +1 -0
- package/build/cli/theme/semantic-tokens.d.ts +42 -0
- package/build/cli/theme/semantic-tokens.js +77 -0
- package/build/cli/theme/semantic-tokens.js.map +1 -0
- package/build/cli/theme/theme-manager.d.ts +32 -0
- package/build/cli/theme/theme-manager.js +150 -0
- package/build/cli/theme/theme-manager.js.map +1 -0
- package/build/cli/theme/theme.d.ts +107 -0
- package/build/cli/theme/theme.js +333 -0
- package/build/cli/theme/theme.js.map +1 -0
- package/build/cli/tmp.d.ts +1 -0
- package/build/cli/types.d.ts +72 -0
- package/build/cli/types.js +8 -0
- package/build/cli/types.js.map +1 -0
- package/build/cli/utils/cache.d.ts +21 -0
- package/build/cli/utils/cache.js +56 -0
- package/build/cli/utils/cache.js.map +1 -0
- package/build/cli/utils/debugLogger.js +5 -5
- package/build/cli/utils/debugLogger.js.map +1 -1
- package/build/config.d.ts +30 -0
- package/build/config.js +81 -0
- package/build/config.js.map +1 -0
- package/build/db.d.ts +1 -0
- package/build/index.d.ts +2 -0
- package/build/index.js +4 -2
- package/build/index.js.map +1 -1
- package/build/server.d.ts +2 -0
- package/build/server.js +39 -0
- package/build/server.js.map +1 -0
- package/build/tools/create_document_with_properties/index.js +1 -1
- package/build/tools/create_document_with_properties/params.d.ts +3 -3
- package/build/tools/create_document_with_properties/params.js +33 -0
- package/build/tools/create_document_with_properties/params.js.map +1 -0
- package/build/tools/generate_property/index.d.ts +34 -0
- package/build/tools/generate_property/params.d.ts +48 -0
- package/build/tools/generate_property/params.js +55 -0
- package/build/tools/generate_property/params.js.map +1 -0
- package/build/tools/index.js +13 -0
- package/build/tools/index.js.map +1 -0
- package/build/tools/organize_attachments/index.d.ts +32 -0
- package/build/tools/organize_attachments/index.js +1 -1
- package/build/tools/organize_attachments/params.d.ts +16 -16
- package/build/tools/organize_attachments/params.js +61 -0
- package/build/tools/organize_attachments/params.js.map +1 -0
- package/build/tools/organize_attachments/utils.d.ts +22 -0
- package/build/tools/organize_attachments/utils.js +66 -0
- package/build/tools/organize_attachments/utils.js.map +1 -0
- package/build/tools/vault/index.d.ts +50 -0
- package/build/tools/vault/index.js +1 -1
- package/build/tools/vault/metrics.d.ts +25 -0
- package/build/tools/vault/metrics.js +130 -0
- package/build/tools/vault/metrics.js.map +1 -0
- package/build/tools/vault/params.d.ts +12 -12
- package/build/tools/vault/params.js +148 -0
- package/build/tools/vault/params.js.map +1 -0
- package/build/tools/vault/types/collect_context.d.ts +249 -249
- package/build/tools/vault/types/collect_context.js +103 -0
- package/build/tools/vault/types/collect_context.js.map +1 -0
- package/build/tools/vault/types/list_all.d.ts +14 -14
- package/build/tools/vault/types/list_all.js +53 -0
- package/build/tools/vault/types/list_all.js.map +1 -0
- package/build/tools/vault/types/read_specific.d.ts +18 -18
- package/build/tools/vault/types/read_specific.js +41 -0
- package/build/tools/vault/types/read_specific.js.map +1 -0
- package/build/tools/vault/types/search.d.ts +22 -22
- package/build/tools/vault/types/search.js +59 -0
- package/build/tools/vault/types/search.js.map +1 -0
- package/build/tools/vault/utils/actions/collect_context.d.ts +4 -0
- package/build/tools/vault/utils/actions/index_rag.d.ts +2 -0
- package/build/tools/vault/utils/actions/index_rag.js +1 -1
- package/build/tools/vault/utils/actions/list_all.d.ts +4 -0
- package/build/tools/vault/utils/actions/load_memory.d.ts +4 -0
- package/build/tools/vault/utils/actions/read.d.ts +4 -0
- package/build/tools/vault/utils/actions/search.d.ts +4 -0
- package/build/tools/vault/utils/actions/search_semantic.d.ts +3 -0
- package/build/tools/vault/utils/actions/search_semantic.js +23 -6
- package/build/tools/vault/utils/actions/search_semantic.js.map +1 -1
- package/build/tools/vault/utils/actions/stats.d.ts +3 -0
- package/build/tools/vault/utils/constants.d.ts +2 -0
- package/build/tools/vault/utils/constants.js +3 -0
- package/build/tools/vault/utils/constants.js.map +1 -0
- package/build/tools/vault/utils/document.d.ts +35 -0
- package/build/tools/vault/utils/shared.d.ts +29 -0
- package/build/tools/vault/utils/shared.js +75 -0
- package/build/tools/vault/utils/shared.js.map +1 -0
- package/build/tools/vault/utils.d.ts +8 -0
- package/build/tools/vault/utils.js +9 -0
- package/build/tools/vault/utils.js.map +1 -0
- package/build/tools/write_property/index.js +1 -1
- package/build/tools/write_property/params.d.ts +60 -0
- package/build/tools/write_property/params.js +52 -0
- package/build/tools/write_property/params.js.map +1 -0
- package/build/utils/LLMClient.d.ts +1 -3
- package/build/utils/LLMClient.js +18 -4
- package/build/utils/LLMClient.js.map +1 -1
- package/build/utils/RerankerClient.d.ts +38 -4
- package/build/utils/RerankerClient.js +2 -1
- package/build/utils/RerankerClient.js.map +1 -1
- package/build/utils/VaultWatcher.js +35 -28
- package/build/utils/VaultWatcher.js.map +1 -1
- package/build/utils/getVaultManager.js +1 -1
- package/build/utils/processor/types.d.ts +2 -2
- package/build/utils/processor/types.js +21 -0
- package/build/utils/processor/types.js.map +1 -0
- package/build/utils/semaphore.d.ts +7 -0
- package/build/utils/semaphore.js +26 -0
- package/build/utils/semaphore.js.map +1 -0
- package/package.json +3 -2
|
@@ -14,18 +14,18 @@ export declare const collectContextTokenV1Schema: z.ZodObject<{
|
|
|
14
14
|
cursor: number;
|
|
15
15
|
topic: string | null;
|
|
16
16
|
scope: "topic" | "all";
|
|
17
|
-
v: 1;
|
|
18
17
|
maxDocs: number;
|
|
19
18
|
maxCharsPerDoc: number;
|
|
20
19
|
memoryMode: "response_only" | "vault_note" | "both";
|
|
20
|
+
v: 1;
|
|
21
21
|
}, {
|
|
22
22
|
cursor: number;
|
|
23
23
|
topic: string | null;
|
|
24
24
|
scope: "topic" | "all";
|
|
25
|
-
v: 1;
|
|
26
25
|
maxDocs: number;
|
|
27
26
|
maxCharsPerDoc: number;
|
|
28
27
|
memoryMode: "response_only" | "vault_note" | "both";
|
|
28
|
+
v: 1;
|
|
29
29
|
}>;
|
|
30
30
|
export declare const collectContextDocumentSchema: z.ZodObject<{
|
|
31
31
|
filename: z.ZodString;
|
|
@@ -57,35 +57,35 @@ export declare const collectContextDocumentSchema: z.ZodObject<{
|
|
|
57
57
|
tags: string[];
|
|
58
58
|
summary: string;
|
|
59
59
|
filename: string;
|
|
60
|
-
fullPath: string;
|
|
61
|
-
doc_hash: string;
|
|
62
|
-
excerpt: string;
|
|
63
|
-
evidence_snippets: string[];
|
|
64
|
-
relevance: "high" | "medium" | "low";
|
|
65
60
|
stats: {
|
|
66
61
|
contentLength: number;
|
|
67
62
|
wordCount: number;
|
|
68
63
|
hasContent: boolean;
|
|
69
64
|
};
|
|
70
|
-
backlinks_count: number;
|
|
71
65
|
truncated: boolean;
|
|
72
|
-
}, {
|
|
73
|
-
title: string;
|
|
74
|
-
tags: string[];
|
|
75
|
-
summary: string;
|
|
76
|
-
filename: string;
|
|
77
66
|
fullPath: string;
|
|
78
67
|
doc_hash: string;
|
|
79
68
|
excerpt: string;
|
|
80
69
|
evidence_snippets: string[];
|
|
81
70
|
relevance: "high" | "medium" | "low";
|
|
71
|
+
backlinks_count: number;
|
|
72
|
+
}, {
|
|
73
|
+
title: string;
|
|
74
|
+
tags: string[];
|
|
75
|
+
summary: string;
|
|
76
|
+
filename: string;
|
|
82
77
|
stats: {
|
|
83
78
|
contentLength: number;
|
|
84
79
|
wordCount: number;
|
|
85
80
|
hasContent: boolean;
|
|
86
81
|
};
|
|
87
|
-
backlinks_count: number;
|
|
88
82
|
truncated: boolean;
|
|
83
|
+
fullPath: string;
|
|
84
|
+
doc_hash: string;
|
|
85
|
+
excerpt: string;
|
|
86
|
+
evidence_snippets: string[];
|
|
87
|
+
relevance: "high" | "medium" | "low";
|
|
88
|
+
backlinks_count: number;
|
|
89
89
|
}>;
|
|
90
90
|
export declare const collectContextMemoryPacketSchema: z.ZodObject<{
|
|
91
91
|
topicSummary: z.ZodString;
|
|
@@ -170,35 +170,35 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
170
170
|
tags: string[];
|
|
171
171
|
summary: string;
|
|
172
172
|
filename: string;
|
|
173
|
-
fullPath: string;
|
|
174
|
-
doc_hash: string;
|
|
175
|
-
excerpt: string;
|
|
176
|
-
evidence_snippets: string[];
|
|
177
|
-
relevance: "high" | "medium" | "low";
|
|
178
173
|
stats: {
|
|
179
174
|
contentLength: number;
|
|
180
175
|
wordCount: number;
|
|
181
176
|
hasContent: boolean;
|
|
182
177
|
};
|
|
183
|
-
backlinks_count: number;
|
|
184
178
|
truncated: boolean;
|
|
185
|
-
}, {
|
|
186
|
-
title: string;
|
|
187
|
-
tags: string[];
|
|
188
|
-
summary: string;
|
|
189
|
-
filename: string;
|
|
190
179
|
fullPath: string;
|
|
191
180
|
doc_hash: string;
|
|
192
181
|
excerpt: string;
|
|
193
182
|
evidence_snippets: string[];
|
|
194
183
|
relevance: "high" | "medium" | "low";
|
|
184
|
+
backlinks_count: number;
|
|
185
|
+
}, {
|
|
186
|
+
title: string;
|
|
187
|
+
tags: string[];
|
|
188
|
+
summary: string;
|
|
189
|
+
filename: string;
|
|
195
190
|
stats: {
|
|
196
191
|
contentLength: number;
|
|
197
192
|
wordCount: number;
|
|
198
193
|
hasContent: boolean;
|
|
199
194
|
};
|
|
200
|
-
backlinks_count: number;
|
|
201
195
|
truncated: boolean;
|
|
196
|
+
fullPath: string;
|
|
197
|
+
doc_hash: string;
|
|
198
|
+
excerpt: string;
|
|
199
|
+
evidence_snippets: string[];
|
|
200
|
+
relevance: "high" | "medium" | "low";
|
|
201
|
+
backlinks_count: number;
|
|
202
202
|
}>, "many">;
|
|
203
203
|
memory_packet: z.ZodObject<{
|
|
204
204
|
topicSummary: z.ZodString;
|
|
@@ -258,17 +258,17 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
258
258
|
}, "strip", z.ZodTypeAny, {
|
|
259
259
|
status: "not_requested" | "written" | "failed";
|
|
260
260
|
requested: boolean;
|
|
261
|
+
reason?: string | undefined;
|
|
261
262
|
note_path?: string | undefined;
|
|
262
263
|
generated_at?: string | undefined;
|
|
263
264
|
source_hash?: string | undefined;
|
|
264
|
-
reason?: string | undefined;
|
|
265
265
|
}, {
|
|
266
266
|
status: "not_requested" | "written" | "failed";
|
|
267
267
|
requested: boolean;
|
|
268
|
+
reason?: string | undefined;
|
|
268
269
|
note_path?: string | undefined;
|
|
269
270
|
generated_at?: string | undefined;
|
|
270
271
|
source_hash?: string | undefined;
|
|
271
|
-
reason?: string | undefined;
|
|
272
272
|
}>;
|
|
273
273
|
cache: z.ZodOptional<z.ZodObject<{
|
|
274
274
|
key: z.ZodString;
|
|
@@ -278,19 +278,19 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
278
278
|
doc_hash: z.ZodString;
|
|
279
279
|
mode: z.ZodEnum<["response_only", "vault_note", "both"]>;
|
|
280
280
|
}, "strip", z.ZodTypeAny, {
|
|
281
|
+
mode: "response_only" | "vault_note" | "both";
|
|
282
|
+
hit: boolean;
|
|
281
283
|
topic: string | null;
|
|
282
284
|
doc_hash: string;
|
|
283
285
|
key: string;
|
|
284
|
-
hit: boolean;
|
|
285
286
|
schema_version: string;
|
|
286
|
-
mode: "response_only" | "vault_note" | "both";
|
|
287
287
|
}, {
|
|
288
|
+
mode: "response_only" | "vault_note" | "both";
|
|
289
|
+
hit: boolean;
|
|
288
290
|
topic: string | null;
|
|
289
291
|
doc_hash: string;
|
|
290
292
|
key: string;
|
|
291
|
-
hit: boolean;
|
|
292
293
|
schema_version: string;
|
|
293
|
-
mode: "response_only" | "vault_note" | "both";
|
|
294
294
|
}>>;
|
|
295
295
|
batch: z.ZodObject<{
|
|
296
296
|
start_cursor: z.ZodNumber;
|
|
@@ -318,29 +318,29 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
318
318
|
continuation_token: string | null;
|
|
319
319
|
}>;
|
|
320
320
|
}, "strip", z.ZodTypeAny, {
|
|
321
|
-
action: "collect_context";
|
|
322
|
-
topic: string | null;
|
|
323
|
-
scope: "topic" | "all";
|
|
324
|
-
matched_total: number;
|
|
325
|
-
total_in_vault: number;
|
|
326
321
|
documents: {
|
|
327
322
|
title: string;
|
|
328
323
|
tags: string[];
|
|
329
324
|
summary: string;
|
|
330
325
|
filename: string;
|
|
331
|
-
fullPath: string;
|
|
332
|
-
doc_hash: string;
|
|
333
|
-
excerpt: string;
|
|
334
|
-
evidence_snippets: string[];
|
|
335
|
-
relevance: "high" | "medium" | "low";
|
|
336
326
|
stats: {
|
|
337
327
|
contentLength: number;
|
|
338
328
|
wordCount: number;
|
|
339
329
|
hasContent: boolean;
|
|
340
330
|
};
|
|
341
|
-
backlinks_count: number;
|
|
342
331
|
truncated: boolean;
|
|
332
|
+
fullPath: string;
|
|
333
|
+
doc_hash: string;
|
|
334
|
+
excerpt: string;
|
|
335
|
+
evidence_snippets: string[];
|
|
336
|
+
relevance: "high" | "medium" | "low";
|
|
337
|
+
backlinks_count: number;
|
|
343
338
|
}[];
|
|
339
|
+
action: "collect_context";
|
|
340
|
+
topic: string | null;
|
|
341
|
+
scope: "topic" | "all";
|
|
342
|
+
matched_total: number;
|
|
343
|
+
total_in_vault: number;
|
|
344
344
|
memory_packet: {
|
|
345
345
|
topicSummary: string;
|
|
346
346
|
keyFacts: string[];
|
|
@@ -358,10 +358,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
358
358
|
memory_write: {
|
|
359
359
|
status: "not_requested" | "written" | "failed";
|
|
360
360
|
requested: boolean;
|
|
361
|
+
reason?: string | undefined;
|
|
361
362
|
note_path?: string | undefined;
|
|
362
363
|
generated_at?: string | undefined;
|
|
363
364
|
source_hash?: string | undefined;
|
|
364
|
-
reason?: string | undefined;
|
|
365
365
|
};
|
|
366
366
|
batch: {
|
|
367
367
|
start_cursor: number;
|
|
@@ -373,37 +373,37 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
373
373
|
continuation_token: string | null;
|
|
374
374
|
};
|
|
375
375
|
cache?: {
|
|
376
|
+
mode: "response_only" | "vault_note" | "both";
|
|
377
|
+
hit: boolean;
|
|
376
378
|
topic: string | null;
|
|
377
379
|
doc_hash: string;
|
|
378
380
|
key: string;
|
|
379
|
-
hit: boolean;
|
|
380
381
|
schema_version: string;
|
|
381
|
-
mode: "response_only" | "vault_note" | "both";
|
|
382
382
|
} | undefined;
|
|
383
383
|
}, {
|
|
384
|
-
action: "collect_context";
|
|
385
|
-
topic: string | null;
|
|
386
|
-
scope: "topic" | "all";
|
|
387
|
-
matched_total: number;
|
|
388
|
-
total_in_vault: number;
|
|
389
384
|
documents: {
|
|
390
385
|
title: string;
|
|
391
386
|
tags: string[];
|
|
392
387
|
summary: string;
|
|
393
388
|
filename: string;
|
|
394
|
-
fullPath: string;
|
|
395
|
-
doc_hash: string;
|
|
396
|
-
excerpt: string;
|
|
397
|
-
evidence_snippets: string[];
|
|
398
|
-
relevance: "high" | "medium" | "low";
|
|
399
389
|
stats: {
|
|
400
390
|
contentLength: number;
|
|
401
391
|
wordCount: number;
|
|
402
392
|
hasContent: boolean;
|
|
403
393
|
};
|
|
404
|
-
backlinks_count: number;
|
|
405
394
|
truncated: boolean;
|
|
395
|
+
fullPath: string;
|
|
396
|
+
doc_hash: string;
|
|
397
|
+
excerpt: string;
|
|
398
|
+
evidence_snippets: string[];
|
|
399
|
+
relevance: "high" | "medium" | "low";
|
|
400
|
+
backlinks_count: number;
|
|
406
401
|
}[];
|
|
402
|
+
action: "collect_context";
|
|
403
|
+
topic: string | null;
|
|
404
|
+
scope: "topic" | "all";
|
|
405
|
+
matched_total: number;
|
|
406
|
+
total_in_vault: number;
|
|
407
407
|
memory_packet: {
|
|
408
408
|
topicSummary: string;
|
|
409
409
|
keyFacts: string[];
|
|
@@ -421,10 +421,10 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
421
421
|
memory_write: {
|
|
422
422
|
status: "not_requested" | "written" | "failed";
|
|
423
423
|
requested: boolean;
|
|
424
|
+
reason?: string | undefined;
|
|
424
425
|
note_path?: string | undefined;
|
|
425
426
|
generated_at?: string | undefined;
|
|
426
427
|
source_hash?: string | undefined;
|
|
427
|
-
reason?: string | undefined;
|
|
428
428
|
};
|
|
429
429
|
batch: {
|
|
430
430
|
start_cursor: number;
|
|
@@ -436,12 +436,12 @@ export declare const collectContextPayloadSchema: z.ZodObject<{
|
|
|
436
436
|
continuation_token: string | null;
|
|
437
437
|
};
|
|
438
438
|
cache?: {
|
|
439
|
+
mode: "response_only" | "vault_note" | "both";
|
|
440
|
+
hit: boolean;
|
|
439
441
|
topic: string | null;
|
|
440
442
|
doc_hash: string;
|
|
441
443
|
key: string;
|
|
442
|
-
hit: boolean;
|
|
443
444
|
schema_version: string;
|
|
444
|
-
mode: "response_only" | "vault_note" | "both";
|
|
445
445
|
} | undefined;
|
|
446
446
|
}>;
|
|
447
447
|
export declare const collectContextCompressionSchema: z.ZodObject<{
|
|
@@ -453,18 +453,18 @@ export declare const collectContextCompressionSchema: z.ZodObject<{
|
|
|
453
453
|
truncated: z.ZodBoolean;
|
|
454
454
|
expand_hint: z.ZodString;
|
|
455
455
|
}, "strip", z.ZodTypeAny, {
|
|
456
|
-
truncated: boolean;
|
|
457
456
|
mode: "aggressive" | "balanced" | "none";
|
|
458
|
-
source_chars: number;
|
|
459
|
-
output_chars: number;
|
|
460
457
|
estimated_tokens: number;
|
|
458
|
+
truncated: boolean;
|
|
459
|
+
output_chars: number;
|
|
460
|
+
source_chars: number;
|
|
461
461
|
max_output_chars: number | null;
|
|
462
462
|
expand_hint: string;
|
|
463
463
|
}, {
|
|
464
|
+
estimated_tokens: number;
|
|
464
465
|
truncated: boolean;
|
|
465
|
-
source_chars: number;
|
|
466
466
|
output_chars: number;
|
|
467
|
-
|
|
467
|
+
source_chars: number;
|
|
468
468
|
max_output_chars: number | null;
|
|
469
469
|
expand_hint: string;
|
|
470
470
|
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
@@ -505,35 +505,35 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
505
505
|
tags: string[];
|
|
506
506
|
summary: string;
|
|
507
507
|
filename: string;
|
|
508
|
-
fullPath: string;
|
|
509
|
-
doc_hash: string;
|
|
510
|
-
excerpt: string;
|
|
511
|
-
evidence_snippets: string[];
|
|
512
|
-
relevance: "high" | "medium" | "low";
|
|
513
508
|
stats: {
|
|
514
509
|
contentLength: number;
|
|
515
510
|
wordCount: number;
|
|
516
511
|
hasContent: boolean;
|
|
517
512
|
};
|
|
518
|
-
backlinks_count: number;
|
|
519
513
|
truncated: boolean;
|
|
520
|
-
}, {
|
|
521
|
-
title: string;
|
|
522
|
-
tags: string[];
|
|
523
|
-
summary: string;
|
|
524
|
-
filename: string;
|
|
525
514
|
fullPath: string;
|
|
526
515
|
doc_hash: string;
|
|
527
516
|
excerpt: string;
|
|
528
517
|
evidence_snippets: string[];
|
|
529
518
|
relevance: "high" | "medium" | "low";
|
|
519
|
+
backlinks_count: number;
|
|
520
|
+
}, {
|
|
521
|
+
title: string;
|
|
522
|
+
tags: string[];
|
|
523
|
+
summary: string;
|
|
524
|
+
filename: string;
|
|
530
525
|
stats: {
|
|
531
526
|
contentLength: number;
|
|
532
527
|
wordCount: number;
|
|
533
528
|
hasContent: boolean;
|
|
534
529
|
};
|
|
535
|
-
backlinks_count: number;
|
|
536
530
|
truncated: boolean;
|
|
531
|
+
fullPath: string;
|
|
532
|
+
doc_hash: string;
|
|
533
|
+
excerpt: string;
|
|
534
|
+
evidence_snippets: string[];
|
|
535
|
+
relevance: "high" | "medium" | "low";
|
|
536
|
+
backlinks_count: number;
|
|
537
537
|
}>, "many">;
|
|
538
538
|
memory_packet: z.ZodObject<{
|
|
539
539
|
topicSummary: z.ZodString;
|
|
@@ -593,17 +593,17 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
593
593
|
}, "strip", z.ZodTypeAny, {
|
|
594
594
|
status: "not_requested" | "written" | "failed";
|
|
595
595
|
requested: boolean;
|
|
596
|
+
reason?: string | undefined;
|
|
596
597
|
note_path?: string | undefined;
|
|
597
598
|
generated_at?: string | undefined;
|
|
598
599
|
source_hash?: string | undefined;
|
|
599
|
-
reason?: string | undefined;
|
|
600
600
|
}, {
|
|
601
601
|
status: "not_requested" | "written" | "failed";
|
|
602
602
|
requested: boolean;
|
|
603
|
+
reason?: string | undefined;
|
|
603
604
|
note_path?: string | undefined;
|
|
604
605
|
generated_at?: string | undefined;
|
|
605
606
|
source_hash?: string | undefined;
|
|
606
|
-
reason?: string | undefined;
|
|
607
607
|
}>;
|
|
608
608
|
cache: z.ZodOptional<z.ZodObject<{
|
|
609
609
|
key: z.ZodString;
|
|
@@ -613,19 +613,19 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
613
613
|
doc_hash: z.ZodString;
|
|
614
614
|
mode: z.ZodEnum<["response_only", "vault_note", "both"]>;
|
|
615
615
|
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
mode: "response_only" | "vault_note" | "both";
|
|
617
|
+
hit: boolean;
|
|
616
618
|
topic: string | null;
|
|
617
619
|
doc_hash: string;
|
|
618
620
|
key: string;
|
|
619
|
-
hit: boolean;
|
|
620
621
|
schema_version: string;
|
|
621
|
-
mode: "response_only" | "vault_note" | "both";
|
|
622
622
|
}, {
|
|
623
|
+
mode: "response_only" | "vault_note" | "both";
|
|
624
|
+
hit: boolean;
|
|
623
625
|
topic: string | null;
|
|
624
626
|
doc_hash: string;
|
|
625
627
|
key: string;
|
|
626
|
-
hit: boolean;
|
|
627
628
|
schema_version: string;
|
|
628
|
-
mode: "response_only" | "vault_note" | "both";
|
|
629
629
|
}>>;
|
|
630
630
|
batch: z.ZodObject<{
|
|
631
631
|
start_cursor: z.ZodNumber;
|
|
@@ -662,46 +662,55 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
662
662
|
truncated: z.ZodBoolean;
|
|
663
663
|
expand_hint: z.ZodString;
|
|
664
664
|
}, "strip", z.ZodTypeAny, {
|
|
665
|
-
truncated: boolean;
|
|
666
665
|
mode: "aggressive" | "balanced" | "none";
|
|
667
|
-
source_chars: number;
|
|
668
|
-
output_chars: number;
|
|
669
666
|
estimated_tokens: number;
|
|
667
|
+
truncated: boolean;
|
|
668
|
+
output_chars: number;
|
|
669
|
+
source_chars: number;
|
|
670
670
|
max_output_chars: number | null;
|
|
671
671
|
expand_hint: string;
|
|
672
672
|
}, {
|
|
673
|
+
estimated_tokens: number;
|
|
673
674
|
truncated: boolean;
|
|
674
|
-
source_chars: number;
|
|
675
675
|
output_chars: number;
|
|
676
|
-
|
|
676
|
+
source_chars: number;
|
|
677
677
|
max_output_chars: number | null;
|
|
678
678
|
expand_hint: string;
|
|
679
679
|
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
680
680
|
}>;
|
|
681
681
|
}, "strip", z.ZodTypeAny, {
|
|
682
|
-
action: "collect_context";
|
|
683
|
-
topic: string | null;
|
|
684
|
-
scope: "topic" | "all";
|
|
685
|
-
matched_total: number;
|
|
686
|
-
total_in_vault: number;
|
|
687
682
|
documents: {
|
|
688
683
|
title: string;
|
|
689
684
|
tags: string[];
|
|
690
685
|
summary: string;
|
|
691
686
|
filename: string;
|
|
692
|
-
fullPath: string;
|
|
693
|
-
doc_hash: string;
|
|
694
|
-
excerpt: string;
|
|
695
|
-
evidence_snippets: string[];
|
|
696
|
-
relevance: "high" | "medium" | "low";
|
|
697
687
|
stats: {
|
|
698
688
|
contentLength: number;
|
|
699
689
|
wordCount: number;
|
|
700
690
|
hasContent: boolean;
|
|
701
691
|
};
|
|
702
|
-
backlinks_count: number;
|
|
703
692
|
truncated: boolean;
|
|
693
|
+
fullPath: string;
|
|
694
|
+
doc_hash: string;
|
|
695
|
+
excerpt: string;
|
|
696
|
+
evidence_snippets: string[];
|
|
697
|
+
relevance: "high" | "medium" | "low";
|
|
698
|
+
backlinks_count: number;
|
|
704
699
|
}[];
|
|
700
|
+
compression: {
|
|
701
|
+
mode: "aggressive" | "balanced" | "none";
|
|
702
|
+
estimated_tokens: number;
|
|
703
|
+
truncated: boolean;
|
|
704
|
+
output_chars: number;
|
|
705
|
+
source_chars: number;
|
|
706
|
+
max_output_chars: number | null;
|
|
707
|
+
expand_hint: string;
|
|
708
|
+
};
|
|
709
|
+
action: "collect_context";
|
|
710
|
+
topic: string | null;
|
|
711
|
+
scope: "topic" | "all";
|
|
712
|
+
matched_total: number;
|
|
713
|
+
total_in_vault: number;
|
|
705
714
|
memory_packet: {
|
|
706
715
|
topicSummary: string;
|
|
707
716
|
keyFacts: string[];
|
|
@@ -719,10 +728,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
719
728
|
memory_write: {
|
|
720
729
|
status: "not_requested" | "written" | "failed";
|
|
721
730
|
requested: boolean;
|
|
731
|
+
reason?: string | undefined;
|
|
722
732
|
note_path?: string | undefined;
|
|
723
733
|
generated_at?: string | undefined;
|
|
724
734
|
source_hash?: string | undefined;
|
|
725
|
-
reason?: string | undefined;
|
|
726
735
|
};
|
|
727
736
|
batch: {
|
|
728
737
|
start_cursor: number;
|
|
@@ -733,47 +742,47 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
733
742
|
has_more: boolean;
|
|
734
743
|
continuation_token: string | null;
|
|
735
744
|
};
|
|
736
|
-
compression: {
|
|
737
|
-
truncated: boolean;
|
|
738
|
-
mode: "aggressive" | "balanced" | "none";
|
|
739
|
-
source_chars: number;
|
|
740
|
-
output_chars: number;
|
|
741
|
-
estimated_tokens: number;
|
|
742
|
-
max_output_chars: number | null;
|
|
743
|
-
expand_hint: string;
|
|
744
|
-
};
|
|
745
745
|
cache?: {
|
|
746
|
+
mode: "response_only" | "vault_note" | "both";
|
|
747
|
+
hit: boolean;
|
|
746
748
|
topic: string | null;
|
|
747
749
|
doc_hash: string;
|
|
748
750
|
key: string;
|
|
749
|
-
hit: boolean;
|
|
750
751
|
schema_version: string;
|
|
751
|
-
mode: "response_only" | "vault_note" | "both";
|
|
752
752
|
} | undefined;
|
|
753
753
|
}, {
|
|
754
|
-
action: "collect_context";
|
|
755
|
-
topic: string | null;
|
|
756
|
-
scope: "topic" | "all";
|
|
757
|
-
matched_total: number;
|
|
758
|
-
total_in_vault: number;
|
|
759
754
|
documents: {
|
|
760
755
|
title: string;
|
|
761
756
|
tags: string[];
|
|
762
757
|
summary: string;
|
|
763
758
|
filename: string;
|
|
764
|
-
fullPath: string;
|
|
765
|
-
doc_hash: string;
|
|
766
|
-
excerpt: string;
|
|
767
|
-
evidence_snippets: string[];
|
|
768
|
-
relevance: "high" | "medium" | "low";
|
|
769
759
|
stats: {
|
|
770
760
|
contentLength: number;
|
|
771
761
|
wordCount: number;
|
|
772
762
|
hasContent: boolean;
|
|
773
763
|
};
|
|
774
|
-
backlinks_count: number;
|
|
775
764
|
truncated: boolean;
|
|
765
|
+
fullPath: string;
|
|
766
|
+
doc_hash: string;
|
|
767
|
+
excerpt: string;
|
|
768
|
+
evidence_snippets: string[];
|
|
769
|
+
relevance: "high" | "medium" | "low";
|
|
770
|
+
backlinks_count: number;
|
|
776
771
|
}[];
|
|
772
|
+
compression: {
|
|
773
|
+
estimated_tokens: number;
|
|
774
|
+
truncated: boolean;
|
|
775
|
+
output_chars: number;
|
|
776
|
+
source_chars: number;
|
|
777
|
+
max_output_chars: number | null;
|
|
778
|
+
expand_hint: string;
|
|
779
|
+
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
780
|
+
};
|
|
781
|
+
action: "collect_context";
|
|
782
|
+
topic: string | null;
|
|
783
|
+
scope: "topic" | "all";
|
|
784
|
+
matched_total: number;
|
|
785
|
+
total_in_vault: number;
|
|
777
786
|
memory_packet: {
|
|
778
787
|
topicSummary: string;
|
|
779
788
|
keyFacts: string[];
|
|
@@ -791,10 +800,10 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
791
800
|
memory_write: {
|
|
792
801
|
status: "not_requested" | "written" | "failed";
|
|
793
802
|
requested: boolean;
|
|
803
|
+
reason?: string | undefined;
|
|
794
804
|
note_path?: string | undefined;
|
|
795
805
|
generated_at?: string | undefined;
|
|
796
806
|
source_hash?: string | undefined;
|
|
797
|
-
reason?: string | undefined;
|
|
798
807
|
};
|
|
799
808
|
batch: {
|
|
800
809
|
start_cursor: number;
|
|
@@ -805,22 +814,13 @@ export declare const collectContextResponseDataSchema: z.ZodObject<{
|
|
|
805
814
|
has_more: boolean;
|
|
806
815
|
continuation_token: string | null;
|
|
807
816
|
};
|
|
808
|
-
compression: {
|
|
809
|
-
truncated: boolean;
|
|
810
|
-
source_chars: number;
|
|
811
|
-
output_chars: number;
|
|
812
|
-
estimated_tokens: number;
|
|
813
|
-
max_output_chars: number | null;
|
|
814
|
-
expand_hint: string;
|
|
815
|
-
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
816
|
-
};
|
|
817
817
|
cache?: {
|
|
818
|
+
mode: "response_only" | "vault_note" | "both";
|
|
819
|
+
hit: boolean;
|
|
818
820
|
topic: string | null;
|
|
819
821
|
doc_hash: string;
|
|
820
822
|
key: string;
|
|
821
|
-
hit: boolean;
|
|
822
823
|
schema_version: string;
|
|
823
|
-
mode: "response_only" | "vault_note" | "both";
|
|
824
824
|
} | undefined;
|
|
825
825
|
}>;
|
|
826
826
|
export declare const collectContextResponseSchema: z.ZodObject<{
|
|
@@ -861,35 +861,35 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
861
861
|
tags: string[];
|
|
862
862
|
summary: string;
|
|
863
863
|
filename: string;
|
|
864
|
-
fullPath: string;
|
|
865
|
-
doc_hash: string;
|
|
866
|
-
excerpt: string;
|
|
867
|
-
evidence_snippets: string[];
|
|
868
|
-
relevance: "high" | "medium" | "low";
|
|
869
864
|
stats: {
|
|
870
865
|
contentLength: number;
|
|
871
866
|
wordCount: number;
|
|
872
867
|
hasContent: boolean;
|
|
873
868
|
};
|
|
874
|
-
backlinks_count: number;
|
|
875
869
|
truncated: boolean;
|
|
876
|
-
}, {
|
|
877
|
-
title: string;
|
|
878
|
-
tags: string[];
|
|
879
|
-
summary: string;
|
|
880
|
-
filename: string;
|
|
881
870
|
fullPath: string;
|
|
882
871
|
doc_hash: string;
|
|
883
872
|
excerpt: string;
|
|
884
873
|
evidence_snippets: string[];
|
|
885
874
|
relevance: "high" | "medium" | "low";
|
|
875
|
+
backlinks_count: number;
|
|
876
|
+
}, {
|
|
877
|
+
title: string;
|
|
878
|
+
tags: string[];
|
|
879
|
+
summary: string;
|
|
880
|
+
filename: string;
|
|
886
881
|
stats: {
|
|
887
882
|
contentLength: number;
|
|
888
883
|
wordCount: number;
|
|
889
884
|
hasContent: boolean;
|
|
890
885
|
};
|
|
891
|
-
backlinks_count: number;
|
|
892
886
|
truncated: boolean;
|
|
887
|
+
fullPath: string;
|
|
888
|
+
doc_hash: string;
|
|
889
|
+
excerpt: string;
|
|
890
|
+
evidence_snippets: string[];
|
|
891
|
+
relevance: "high" | "medium" | "low";
|
|
892
|
+
backlinks_count: number;
|
|
893
893
|
}>, "many">;
|
|
894
894
|
memory_packet: z.ZodObject<{
|
|
895
895
|
topicSummary: z.ZodString;
|
|
@@ -949,17 +949,17 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
949
949
|
}, "strip", z.ZodTypeAny, {
|
|
950
950
|
status: "not_requested" | "written" | "failed";
|
|
951
951
|
requested: boolean;
|
|
952
|
+
reason?: string | undefined;
|
|
952
953
|
note_path?: string | undefined;
|
|
953
954
|
generated_at?: string | undefined;
|
|
954
955
|
source_hash?: string | undefined;
|
|
955
|
-
reason?: string | undefined;
|
|
956
956
|
}, {
|
|
957
957
|
status: "not_requested" | "written" | "failed";
|
|
958
958
|
requested: boolean;
|
|
959
|
+
reason?: string | undefined;
|
|
959
960
|
note_path?: string | undefined;
|
|
960
961
|
generated_at?: string | undefined;
|
|
961
962
|
source_hash?: string | undefined;
|
|
962
|
-
reason?: string | undefined;
|
|
963
963
|
}>;
|
|
964
964
|
cache: z.ZodOptional<z.ZodObject<{
|
|
965
965
|
key: z.ZodString;
|
|
@@ -969,19 +969,19 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
969
969
|
doc_hash: z.ZodString;
|
|
970
970
|
mode: z.ZodEnum<["response_only", "vault_note", "both"]>;
|
|
971
971
|
}, "strip", z.ZodTypeAny, {
|
|
972
|
+
mode: "response_only" | "vault_note" | "both";
|
|
973
|
+
hit: boolean;
|
|
972
974
|
topic: string | null;
|
|
973
975
|
doc_hash: string;
|
|
974
976
|
key: string;
|
|
975
|
-
hit: boolean;
|
|
976
977
|
schema_version: string;
|
|
977
|
-
mode: "response_only" | "vault_note" | "both";
|
|
978
978
|
}, {
|
|
979
|
+
mode: "response_only" | "vault_note" | "both";
|
|
980
|
+
hit: boolean;
|
|
979
981
|
topic: string | null;
|
|
980
982
|
doc_hash: string;
|
|
981
983
|
key: string;
|
|
982
|
-
hit: boolean;
|
|
983
984
|
schema_version: string;
|
|
984
|
-
mode: "response_only" | "vault_note" | "both";
|
|
985
985
|
}>>;
|
|
986
986
|
batch: z.ZodObject<{
|
|
987
987
|
start_cursor: z.ZodNumber;
|
|
@@ -1018,46 +1018,55 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1018
1018
|
truncated: z.ZodBoolean;
|
|
1019
1019
|
expand_hint: z.ZodString;
|
|
1020
1020
|
}, "strip", z.ZodTypeAny, {
|
|
1021
|
-
truncated: boolean;
|
|
1022
1021
|
mode: "aggressive" | "balanced" | "none";
|
|
1023
|
-
source_chars: number;
|
|
1024
|
-
output_chars: number;
|
|
1025
1022
|
estimated_tokens: number;
|
|
1023
|
+
truncated: boolean;
|
|
1024
|
+
output_chars: number;
|
|
1025
|
+
source_chars: number;
|
|
1026
1026
|
max_output_chars: number | null;
|
|
1027
1027
|
expand_hint: string;
|
|
1028
1028
|
}, {
|
|
1029
|
+
estimated_tokens: number;
|
|
1029
1030
|
truncated: boolean;
|
|
1030
|
-
source_chars: number;
|
|
1031
1031
|
output_chars: number;
|
|
1032
|
-
|
|
1032
|
+
source_chars: number;
|
|
1033
1033
|
max_output_chars: number | null;
|
|
1034
1034
|
expand_hint: string;
|
|
1035
1035
|
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
1036
1036
|
}>;
|
|
1037
1037
|
}, "strip", z.ZodTypeAny, {
|
|
1038
|
-
action: "collect_context";
|
|
1039
|
-
topic: string | null;
|
|
1040
|
-
scope: "topic" | "all";
|
|
1041
|
-
matched_total: number;
|
|
1042
|
-
total_in_vault: number;
|
|
1043
1038
|
documents: {
|
|
1044
1039
|
title: string;
|
|
1045
1040
|
tags: string[];
|
|
1046
1041
|
summary: string;
|
|
1047
1042
|
filename: string;
|
|
1048
|
-
fullPath: string;
|
|
1049
|
-
doc_hash: string;
|
|
1050
|
-
excerpt: string;
|
|
1051
|
-
evidence_snippets: string[];
|
|
1052
|
-
relevance: "high" | "medium" | "low";
|
|
1053
1043
|
stats: {
|
|
1054
1044
|
contentLength: number;
|
|
1055
1045
|
wordCount: number;
|
|
1056
1046
|
hasContent: boolean;
|
|
1057
1047
|
};
|
|
1058
|
-
backlinks_count: number;
|
|
1059
1048
|
truncated: boolean;
|
|
1049
|
+
fullPath: string;
|
|
1050
|
+
doc_hash: string;
|
|
1051
|
+
excerpt: string;
|
|
1052
|
+
evidence_snippets: string[];
|
|
1053
|
+
relevance: "high" | "medium" | "low";
|
|
1054
|
+
backlinks_count: number;
|
|
1060
1055
|
}[];
|
|
1056
|
+
compression: {
|
|
1057
|
+
mode: "aggressive" | "balanced" | "none";
|
|
1058
|
+
estimated_tokens: number;
|
|
1059
|
+
truncated: boolean;
|
|
1060
|
+
output_chars: number;
|
|
1061
|
+
source_chars: number;
|
|
1062
|
+
max_output_chars: number | null;
|
|
1063
|
+
expand_hint: string;
|
|
1064
|
+
};
|
|
1065
|
+
action: "collect_context";
|
|
1066
|
+
topic: string | null;
|
|
1067
|
+
scope: "topic" | "all";
|
|
1068
|
+
matched_total: number;
|
|
1069
|
+
total_in_vault: number;
|
|
1061
1070
|
memory_packet: {
|
|
1062
1071
|
topicSummary: string;
|
|
1063
1072
|
keyFacts: string[];
|
|
@@ -1075,10 +1084,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1075
1084
|
memory_write: {
|
|
1076
1085
|
status: "not_requested" | "written" | "failed";
|
|
1077
1086
|
requested: boolean;
|
|
1087
|
+
reason?: string | undefined;
|
|
1078
1088
|
note_path?: string | undefined;
|
|
1079
1089
|
generated_at?: string | undefined;
|
|
1080
1090
|
source_hash?: string | undefined;
|
|
1081
|
-
reason?: string | undefined;
|
|
1082
1091
|
};
|
|
1083
1092
|
batch: {
|
|
1084
1093
|
start_cursor: number;
|
|
@@ -1089,47 +1098,47 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1089
1098
|
has_more: boolean;
|
|
1090
1099
|
continuation_token: string | null;
|
|
1091
1100
|
};
|
|
1092
|
-
compression: {
|
|
1093
|
-
truncated: boolean;
|
|
1094
|
-
mode: "aggressive" | "balanced" | "none";
|
|
1095
|
-
source_chars: number;
|
|
1096
|
-
output_chars: number;
|
|
1097
|
-
estimated_tokens: number;
|
|
1098
|
-
max_output_chars: number | null;
|
|
1099
|
-
expand_hint: string;
|
|
1100
|
-
};
|
|
1101
1101
|
cache?: {
|
|
1102
|
+
mode: "response_only" | "vault_note" | "both";
|
|
1103
|
+
hit: boolean;
|
|
1102
1104
|
topic: string | null;
|
|
1103
1105
|
doc_hash: string;
|
|
1104
1106
|
key: string;
|
|
1105
|
-
hit: boolean;
|
|
1106
1107
|
schema_version: string;
|
|
1107
|
-
mode: "response_only" | "vault_note" | "both";
|
|
1108
1108
|
} | undefined;
|
|
1109
1109
|
}, {
|
|
1110
|
-
action: "collect_context";
|
|
1111
|
-
topic: string | null;
|
|
1112
|
-
scope: "topic" | "all";
|
|
1113
|
-
matched_total: number;
|
|
1114
|
-
total_in_vault: number;
|
|
1115
1110
|
documents: {
|
|
1116
1111
|
title: string;
|
|
1117
1112
|
tags: string[];
|
|
1118
1113
|
summary: string;
|
|
1119
1114
|
filename: string;
|
|
1120
|
-
fullPath: string;
|
|
1121
|
-
doc_hash: string;
|
|
1122
|
-
excerpt: string;
|
|
1123
|
-
evidence_snippets: string[];
|
|
1124
|
-
relevance: "high" | "medium" | "low";
|
|
1125
1115
|
stats: {
|
|
1126
1116
|
contentLength: number;
|
|
1127
1117
|
wordCount: number;
|
|
1128
1118
|
hasContent: boolean;
|
|
1129
1119
|
};
|
|
1130
|
-
backlinks_count: number;
|
|
1131
1120
|
truncated: boolean;
|
|
1121
|
+
fullPath: string;
|
|
1122
|
+
doc_hash: string;
|
|
1123
|
+
excerpt: string;
|
|
1124
|
+
evidence_snippets: string[];
|
|
1125
|
+
relevance: "high" | "medium" | "low";
|
|
1126
|
+
backlinks_count: number;
|
|
1132
1127
|
}[];
|
|
1128
|
+
compression: {
|
|
1129
|
+
estimated_tokens: number;
|
|
1130
|
+
truncated: boolean;
|
|
1131
|
+
output_chars: number;
|
|
1132
|
+
source_chars: number;
|
|
1133
|
+
max_output_chars: number | null;
|
|
1134
|
+
expand_hint: string;
|
|
1135
|
+
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
1136
|
+
};
|
|
1137
|
+
action: "collect_context";
|
|
1138
|
+
topic: string | null;
|
|
1139
|
+
scope: "topic" | "all";
|
|
1140
|
+
matched_total: number;
|
|
1141
|
+
total_in_vault: number;
|
|
1133
1142
|
memory_packet: {
|
|
1134
1143
|
topicSummary: string;
|
|
1135
1144
|
keyFacts: string[];
|
|
@@ -1147,10 +1156,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1147
1156
|
memory_write: {
|
|
1148
1157
|
status: "not_requested" | "written" | "failed";
|
|
1149
1158
|
requested: boolean;
|
|
1159
|
+
reason?: string | undefined;
|
|
1150
1160
|
note_path?: string | undefined;
|
|
1151
1161
|
generated_at?: string | undefined;
|
|
1152
1162
|
source_hash?: string | undefined;
|
|
1153
|
-
reason?: string | undefined;
|
|
1154
1163
|
};
|
|
1155
1164
|
batch: {
|
|
1156
1165
|
start_cursor: number;
|
|
@@ -1161,50 +1170,50 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1161
1170
|
has_more: boolean;
|
|
1162
1171
|
continuation_token: string | null;
|
|
1163
1172
|
};
|
|
1164
|
-
compression: {
|
|
1165
|
-
truncated: boolean;
|
|
1166
|
-
source_chars: number;
|
|
1167
|
-
output_chars: number;
|
|
1168
|
-
estimated_tokens: number;
|
|
1169
|
-
max_output_chars: number | null;
|
|
1170
|
-
expand_hint: string;
|
|
1171
|
-
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
1172
|
-
};
|
|
1173
1173
|
cache?: {
|
|
1174
|
+
mode: "response_only" | "vault_note" | "both";
|
|
1175
|
+
hit: boolean;
|
|
1174
1176
|
topic: string | null;
|
|
1175
1177
|
doc_hash: string;
|
|
1176
1178
|
key: string;
|
|
1177
|
-
hit: boolean;
|
|
1178
1179
|
schema_version: string;
|
|
1179
|
-
mode: "response_only" | "vault_note" | "both";
|
|
1180
1180
|
} | undefined;
|
|
1181
1181
|
}>;
|
|
1182
1182
|
}, "strip", z.ZodTypeAny, {
|
|
1183
1183
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
1184
1184
|
text: {
|
|
1185
|
-
action: "collect_context";
|
|
1186
|
-
topic: string | null;
|
|
1187
|
-
scope: "topic" | "all";
|
|
1188
|
-
matched_total: number;
|
|
1189
|
-
total_in_vault: number;
|
|
1190
1185
|
documents: {
|
|
1191
1186
|
title: string;
|
|
1192
1187
|
tags: string[];
|
|
1193
1188
|
summary: string;
|
|
1194
1189
|
filename: string;
|
|
1195
|
-
fullPath: string;
|
|
1196
|
-
doc_hash: string;
|
|
1197
|
-
excerpt: string;
|
|
1198
|
-
evidence_snippets: string[];
|
|
1199
|
-
relevance: "high" | "medium" | "low";
|
|
1200
1190
|
stats: {
|
|
1201
1191
|
contentLength: number;
|
|
1202
1192
|
wordCount: number;
|
|
1203
1193
|
hasContent: boolean;
|
|
1204
1194
|
};
|
|
1205
|
-
backlinks_count: number;
|
|
1206
1195
|
truncated: boolean;
|
|
1196
|
+
fullPath: string;
|
|
1197
|
+
doc_hash: string;
|
|
1198
|
+
excerpt: string;
|
|
1199
|
+
evidence_snippets: string[];
|
|
1200
|
+
relevance: "high" | "medium" | "low";
|
|
1201
|
+
backlinks_count: number;
|
|
1207
1202
|
}[];
|
|
1203
|
+
compression: {
|
|
1204
|
+
mode: "aggressive" | "balanced" | "none";
|
|
1205
|
+
estimated_tokens: number;
|
|
1206
|
+
truncated: boolean;
|
|
1207
|
+
output_chars: number;
|
|
1208
|
+
source_chars: number;
|
|
1209
|
+
max_output_chars: number | null;
|
|
1210
|
+
expand_hint: string;
|
|
1211
|
+
};
|
|
1212
|
+
action: "collect_context";
|
|
1213
|
+
topic: string | null;
|
|
1214
|
+
scope: "topic" | "all";
|
|
1215
|
+
matched_total: number;
|
|
1216
|
+
total_in_vault: number;
|
|
1208
1217
|
memory_packet: {
|
|
1209
1218
|
topicSummary: string;
|
|
1210
1219
|
keyFacts: string[];
|
|
@@ -1222,10 +1231,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1222
1231
|
memory_write: {
|
|
1223
1232
|
status: "not_requested" | "written" | "failed";
|
|
1224
1233
|
requested: boolean;
|
|
1234
|
+
reason?: string | undefined;
|
|
1225
1235
|
note_path?: string | undefined;
|
|
1226
1236
|
generated_at?: string | undefined;
|
|
1227
1237
|
source_hash?: string | undefined;
|
|
1228
|
-
reason?: string | undefined;
|
|
1229
1238
|
};
|
|
1230
1239
|
batch: {
|
|
1231
1240
|
start_cursor: number;
|
|
@@ -1236,50 +1245,50 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1236
1245
|
has_more: boolean;
|
|
1237
1246
|
continuation_token: string | null;
|
|
1238
1247
|
};
|
|
1239
|
-
compression: {
|
|
1240
|
-
truncated: boolean;
|
|
1241
|
-
mode: "aggressive" | "balanced" | "none";
|
|
1242
|
-
source_chars: number;
|
|
1243
|
-
output_chars: number;
|
|
1244
|
-
estimated_tokens: number;
|
|
1245
|
-
max_output_chars: number | null;
|
|
1246
|
-
expand_hint: string;
|
|
1247
|
-
};
|
|
1248
1248
|
cache?: {
|
|
1249
|
+
mode: "response_only" | "vault_note" | "both";
|
|
1250
|
+
hit: boolean;
|
|
1249
1251
|
topic: string | null;
|
|
1250
1252
|
doc_hash: string;
|
|
1251
1253
|
key: string;
|
|
1252
|
-
hit: boolean;
|
|
1253
1254
|
schema_version: string;
|
|
1254
|
-
mode: "response_only" | "vault_note" | "both";
|
|
1255
1255
|
} | undefined;
|
|
1256
1256
|
};
|
|
1257
1257
|
}, {
|
|
1258
1258
|
type: "text" | "image" | "audio" | "resource_link" | "resource";
|
|
1259
1259
|
text: {
|
|
1260
|
-
action: "collect_context";
|
|
1261
|
-
topic: string | null;
|
|
1262
|
-
scope: "topic" | "all";
|
|
1263
|
-
matched_total: number;
|
|
1264
|
-
total_in_vault: number;
|
|
1265
1260
|
documents: {
|
|
1266
1261
|
title: string;
|
|
1267
1262
|
tags: string[];
|
|
1268
1263
|
summary: string;
|
|
1269
1264
|
filename: string;
|
|
1270
|
-
fullPath: string;
|
|
1271
|
-
doc_hash: string;
|
|
1272
|
-
excerpt: string;
|
|
1273
|
-
evidence_snippets: string[];
|
|
1274
|
-
relevance: "high" | "medium" | "low";
|
|
1275
1265
|
stats: {
|
|
1276
1266
|
contentLength: number;
|
|
1277
1267
|
wordCount: number;
|
|
1278
1268
|
hasContent: boolean;
|
|
1279
1269
|
};
|
|
1280
|
-
backlinks_count: number;
|
|
1281
1270
|
truncated: boolean;
|
|
1271
|
+
fullPath: string;
|
|
1272
|
+
doc_hash: string;
|
|
1273
|
+
excerpt: string;
|
|
1274
|
+
evidence_snippets: string[];
|
|
1275
|
+
relevance: "high" | "medium" | "low";
|
|
1276
|
+
backlinks_count: number;
|
|
1282
1277
|
}[];
|
|
1278
|
+
compression: {
|
|
1279
|
+
estimated_tokens: number;
|
|
1280
|
+
truncated: boolean;
|
|
1281
|
+
output_chars: number;
|
|
1282
|
+
source_chars: number;
|
|
1283
|
+
max_output_chars: number | null;
|
|
1284
|
+
expand_hint: string;
|
|
1285
|
+
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
1286
|
+
};
|
|
1287
|
+
action: "collect_context";
|
|
1288
|
+
topic: string | null;
|
|
1289
|
+
scope: "topic" | "all";
|
|
1290
|
+
matched_total: number;
|
|
1291
|
+
total_in_vault: number;
|
|
1283
1292
|
memory_packet: {
|
|
1284
1293
|
topicSummary: string;
|
|
1285
1294
|
keyFacts: string[];
|
|
@@ -1297,10 +1306,10 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1297
1306
|
memory_write: {
|
|
1298
1307
|
status: "not_requested" | "written" | "failed";
|
|
1299
1308
|
requested: boolean;
|
|
1309
|
+
reason?: string | undefined;
|
|
1300
1310
|
note_path?: string | undefined;
|
|
1301
1311
|
generated_at?: string | undefined;
|
|
1302
1312
|
source_hash?: string | undefined;
|
|
1303
|
-
reason?: string | undefined;
|
|
1304
1313
|
};
|
|
1305
1314
|
batch: {
|
|
1306
1315
|
start_cursor: number;
|
|
@@ -1311,22 +1320,13 @@ export declare const collectContextResponseSchema: z.ZodObject<{
|
|
|
1311
1320
|
has_more: boolean;
|
|
1312
1321
|
continuation_token: string | null;
|
|
1313
1322
|
};
|
|
1314
|
-
compression: {
|
|
1315
|
-
truncated: boolean;
|
|
1316
|
-
source_chars: number;
|
|
1317
|
-
output_chars: number;
|
|
1318
|
-
estimated_tokens: number;
|
|
1319
|
-
max_output_chars: number | null;
|
|
1320
|
-
expand_hint: string;
|
|
1321
|
-
mode?: "aggressive" | "balanced" | "none" | undefined;
|
|
1322
|
-
};
|
|
1323
1323
|
cache?: {
|
|
1324
|
+
mode: "response_only" | "vault_note" | "both";
|
|
1325
|
+
hit: boolean;
|
|
1324
1326
|
topic: string | null;
|
|
1325
1327
|
doc_hash: string;
|
|
1326
1328
|
key: string;
|
|
1327
|
-
hit: boolean;
|
|
1328
1329
|
schema_version: string;
|
|
1329
|
-
mode: "response_only" | "vault_note" | "both";
|
|
1330
1330
|
} | undefined;
|
|
1331
1331
|
};
|
|
1332
1332
|
}>;
|