@cortexkit/opencode-magic-context 0.33.0 → 0.33.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/schema/magic-context.d.ts +62 -22
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-bwa99a04.js → conflict-warning-hook-n48c783v.js} +1 -1
- package/dist/features/magic-context/compaction-marker.d.ts +49 -0
- package/dist/features/magic-context/compaction-marker.d.ts.map +1 -1
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts +0 -2
- package/dist/features/magic-context/compartment-chunk-embedding.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +0 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/index.d.ts +2 -2
- package/dist/features/magic-context/git-commits/index.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts +0 -2
- package/dist/features/magic-context/git-commits/storage-git-commit-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/git-commits/storage-git-commits.d.ts +0 -13
- package/dist/features/magic-context/git-commits/storage-git-commits.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding.d.ts +1 -2
- package/dist/features/magic-context/memory/embedding.d.ts.map +1 -1
- package/dist/features/magic-context/memory/memory-migration.d.ts +0 -6
- package/dist/features/magic-context/memory/memory-migration.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts +0 -1
- package/dist/features/magic-context/memory/storage-memory-embeddings.d.ts.map +1 -1
- package/dist/features/magic-context/memory/storage-memory.d.ts +1 -6
- package/dist/features/magic-context/memory/storage-memory.d.ts.map +1 -1
- package/dist/features/magic-context/memory/verification-paths.d.ts +0 -1
- package/dist/features/magic-context/memory/verification-paths.d.ts.map +1 -1
- package/dist/features/magic-context/migrations.d.ts.map +1 -1
- package/dist/features/magic-context/mural/storage-mural.d.ts +0 -1
- package/dist/features/magic-context/mural/storage-mural.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts +16 -2
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/capabilities.d.ts +0 -2
- package/dist/features/magic-context/smart-notes/capabilities.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts +0 -1
- package/dist/features/magic-context/smart-notes/compiler.d.ts.map +1 -1
- package/dist/features/magic-context/smart-notes/types.d.ts +0 -16
- package/dist/features/magic-context/smart-notes/types.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +1 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +0 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts +0 -2
- package/dist/features/magic-context/user-memory/storage-user-memory.d.ts.map +1 -1
- package/dist/hooks/auto-update-checker/types.d.ts +0 -3
- package/dist/hooks/auto-update-checker/types.d.ts.map +1 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts +0 -1
- package/dist/hooks/magic-context/cache-busting-signals.d.ts.map +1 -1
- package/dist/hooks/magic-context/channel2-delivery.d.ts.map +1 -1
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts +49 -0
- package/dist/hooks/magic-context/compaction-marker-manager.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-parser.d.ts +12 -0
- package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-mapping.d.ts +0 -12
- package/dist/hooks/magic-context/compartment-runner-mapping.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts +1 -1
- package/dist/hooks/magic-context/historian-prompt.generated.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +9 -0
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/sentinel.d.ts +39 -0
- package/dist/hooks/magic-context/sentinel.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/tool-drop-target.d.ts +19 -0
- package/dist/hooks/magic-context/tool-drop-target.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-kxz4tn6m.js → index-56yjaeb2.js} +56 -4
- package/dist/{index-h86twgsp.js → index-c2gahrks.js} +516 -177
- package/dist/{index-bmkea2dq.js → index-ey1bc14z.js} +36 -26
- package/dist/{index-k5y60ymm.js → index-xyaekybw.js} +21 -2
- package/dist/index.js +83 -23
- package/dist/plugin/hooks/create-session-hooks.d.ts +8 -8
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{recomp-orchestrator-yh7pepvx.js → recomp-orchestrator-2yb2hfh2.js} +2 -3
- package/dist/shared/conflict-detector.d.ts.map +1 -1
- package/dist/shared/sqlite.d.ts +9 -4
- package/dist/shared/sqlite.d.ts.map +1 -1
- package/dist/{storage-meta-session-1phy0b1z.js → storage-meta-session-td6bwtky.js} +1 -1
- package/dist/{task-config-dn9k9szr.js → task-config-5nx3qfz8.js} +1 -2
- package/package.json +2 -2
- package/src/shared/conflict-detector.test.ts +130 -1
- package/src/shared/conflict-detector.ts +34 -2
- package/src/shared/sqlite.ts +13 -33
- package/dist/config/schema.d.ts +0 -3
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/features/magic-context/plugin-messages.d.ts +0 -75
- package/dist/features/magic-context/plugin-messages.d.ts.map +0 -1
- package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts +0 -21
- package/dist/hooks/magic-context/compartment-runner-state-xml.d.ts.map +0 -1
- package/dist/index-anhrfygk.js +0 -57
- package/dist/shared/opencode-compaction-detector.d.ts +0 -2
- package/dist/shared/opencode-compaction-detector.d.ts.map +0 -1
- package/dist/shared/transcript-opencode.d.ts +0 -71
- package/dist/shared/transcript-opencode.d.ts.map +0 -1
- package/dist/tools/index.d.ts +0 -6
- package/dist/tools/index.d.ts.map +0 -1
- package/src/shared/opencode-compaction-detector.test.ts +0 -239
- package/src/shared/opencode-compaction-detector.ts +0 -81
- package/src/shared/transcript-opencode.ts +0 -302
|
@@ -1,18 +1,14 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
|
|
2
|
+
import type { AGENTIC_DREAM_TASKS } from "../../features/magic-context/dreamer/task-registry";
|
|
3
3
|
export declare const DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE = 65;
|
|
4
4
|
export declare const EXECUTE_THRESHOLD_CAP_MESSAGE = "execute_threshold is capped at 80% for cache safety: a single large agent step can overflow the context window before Magic Context can compact between turns, forcing OpenCode's native compaction (hard to recover from). 80% also leaves headroom below the 85%/95% emergency bands. Use a value between 20 and 80.";
|
|
5
5
|
export declare const DEFAULT_HISTORIAN_TIMEOUT_MS = 300000;
|
|
6
6
|
export declare const DEFAULT_HISTORY_BUDGET_PERCENTAGE = 0.15;
|
|
7
7
|
export declare const DEFAULT_LOCAL_EMBEDDING_MODEL = "Xenova/all-MiniLM-L6-v2";
|
|
8
|
-
export declare const DREAMER_TASKS: readonly ["curate", "maintain-docs"];
|
|
9
|
-
export declare const DreamingTaskSchema: z.ZodEnum<{
|
|
10
|
-
curate: "curate";
|
|
11
|
-
"maintain-docs": "maintain-docs";
|
|
12
|
-
}>;
|
|
13
8
|
export type DreamingTask = (typeof AGENTIC_DREAM_TASKS)[number];
|
|
14
9
|
/** Valid thinking levels for Pi subagents. Maps to Pi's --thinking CLI flag.
|
|
15
|
-
* Off: disable reasoning. Minimal/low/medium/high/xhigh: increasing reasoning depth.
|
|
10
|
+
* Off: disable reasoning. Minimal/low/medium/high/xhigh/max: increasing reasoning depth.
|
|
11
|
+
* `max` was added in Pi 0.83.0.
|
|
16
12
|
* Pi-only — OpenCode uses `variant` in agent config instead. */
|
|
17
13
|
export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
|
|
18
14
|
off: "off";
|
|
@@ -21,6 +17,7 @@ export declare const PiThinkingLevelSchema: z.ZodOptional<z.ZodEnum<{
|
|
|
21
17
|
medium: "medium";
|
|
22
18
|
high: "high";
|
|
23
19
|
xhigh: "xhigh";
|
|
20
|
+
max: "max";
|
|
24
21
|
}>>;
|
|
25
22
|
export type PiThinkingLevel = z.infer<typeof PiThinkingLevelSchema>;
|
|
26
23
|
/** Pi-only child-process controls. This block is intentionally optional so an
|
|
@@ -40,6 +37,7 @@ export declare const DreamTaskConfigSchema: z.ZodObject<{
|
|
|
40
37
|
medium: "medium";
|
|
41
38
|
high: "high";
|
|
42
39
|
xhigh: "xhigh";
|
|
40
|
+
max: "max";
|
|
43
41
|
}>>;
|
|
44
42
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
45
43
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -60,6 +58,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
60
58
|
medium: "medium";
|
|
61
59
|
high: "high";
|
|
62
60
|
xhigh: "xhigh";
|
|
61
|
+
max: "max";
|
|
63
62
|
}>>;
|
|
64
63
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
65
64
|
}, z.core.$strip>>;
|
|
@@ -74,6 +73,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
74
73
|
medium: "medium";
|
|
75
74
|
high: "high";
|
|
76
75
|
xhigh: "xhigh";
|
|
76
|
+
max: "max";
|
|
77
77
|
}>>;
|
|
78
78
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
79
79
|
}, z.core.$strip>>;
|
|
@@ -88,6 +88,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
88
88
|
medium: "medium";
|
|
89
89
|
high: "high";
|
|
90
90
|
xhigh: "xhigh";
|
|
91
|
+
max: "max";
|
|
91
92
|
}>>;
|
|
92
93
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
93
94
|
}, z.core.$strip>>;
|
|
@@ -102,6 +103,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
102
103
|
medium: "medium";
|
|
103
104
|
high: "high";
|
|
104
105
|
xhigh: "xhigh";
|
|
106
|
+
max: "max";
|
|
105
107
|
}>>;
|
|
106
108
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
107
109
|
}, z.core.$strip>>;
|
|
@@ -116,6 +118,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
116
118
|
medium: "medium";
|
|
117
119
|
high: "high";
|
|
118
120
|
xhigh: "xhigh";
|
|
121
|
+
max: "max";
|
|
119
122
|
}>>;
|
|
120
123
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
121
124
|
}, z.core.$strip>>;
|
|
@@ -130,6 +133,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
130
133
|
medium: "medium";
|
|
131
134
|
high: "high";
|
|
132
135
|
xhigh: "xhigh";
|
|
136
|
+
max: "max";
|
|
133
137
|
}>>;
|
|
134
138
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
135
139
|
}, z.core.$strip>>;
|
|
@@ -144,6 +148,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
144
148
|
medium: "medium";
|
|
145
149
|
high: "high";
|
|
146
150
|
xhigh: "xhigh";
|
|
151
|
+
max: "max";
|
|
147
152
|
}>>;
|
|
148
153
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
149
154
|
}, z.core.$strip>>;
|
|
@@ -158,6 +163,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
158
163
|
medium: "medium";
|
|
159
164
|
high: "high";
|
|
160
165
|
xhigh: "xhigh";
|
|
166
|
+
max: "max";
|
|
161
167
|
}>>;
|
|
162
168
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
163
169
|
}, z.core.$strip>>;
|
|
@@ -172,6 +178,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
172
178
|
medium: "medium";
|
|
173
179
|
high: "high";
|
|
174
180
|
xhigh: "xhigh";
|
|
181
|
+
max: "max";
|
|
175
182
|
}>>;
|
|
176
183
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
177
184
|
}, z.core.$strip>>;
|
|
@@ -186,6 +193,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
186
193
|
medium: "medium";
|
|
187
194
|
high: "high";
|
|
188
195
|
xhigh: "xhigh";
|
|
196
|
+
max: "max";
|
|
189
197
|
}>>;
|
|
190
198
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
191
199
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -201,6 +209,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
201
209
|
medium: "medium";
|
|
202
210
|
high: "high";
|
|
203
211
|
xhigh: "xhigh";
|
|
212
|
+
max: "max";
|
|
204
213
|
}>>;
|
|
205
214
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
206
215
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -216,6 +225,7 @@ export declare const DreamTasksSchema: z.ZodObject<{
|
|
|
216
225
|
medium: "medium";
|
|
217
226
|
high: "high";
|
|
218
227
|
xhigh: "xhigh";
|
|
228
|
+
max: "max";
|
|
219
229
|
}>>;
|
|
220
230
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
221
231
|
}, z.core.$strip>>;
|
|
@@ -282,6 +292,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
282
292
|
medium: "medium";
|
|
283
293
|
high: "high";
|
|
284
294
|
xhigh: "xhigh";
|
|
295
|
+
max: "max";
|
|
285
296
|
}>>;
|
|
286
297
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
287
298
|
}, z.core.$strip>>;
|
|
@@ -296,6 +307,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
296
307
|
medium: "medium";
|
|
297
308
|
high: "high";
|
|
298
309
|
xhigh: "xhigh";
|
|
310
|
+
max: "max";
|
|
299
311
|
}>>;
|
|
300
312
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
301
313
|
}, z.core.$strip>>;
|
|
@@ -310,6 +322,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
310
322
|
medium: "medium";
|
|
311
323
|
high: "high";
|
|
312
324
|
xhigh: "xhigh";
|
|
325
|
+
max: "max";
|
|
313
326
|
}>>;
|
|
314
327
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
315
328
|
}, z.core.$strip>>;
|
|
@@ -324,6 +337,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
324
337
|
medium: "medium";
|
|
325
338
|
high: "high";
|
|
326
339
|
xhigh: "xhigh";
|
|
340
|
+
max: "max";
|
|
327
341
|
}>>;
|
|
328
342
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
329
343
|
}, z.core.$strip>>;
|
|
@@ -338,6 +352,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
338
352
|
medium: "medium";
|
|
339
353
|
high: "high";
|
|
340
354
|
xhigh: "xhigh";
|
|
355
|
+
max: "max";
|
|
341
356
|
}>>;
|
|
342
357
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
343
358
|
}, z.core.$strip>>;
|
|
@@ -352,6 +367,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
352
367
|
medium: "medium";
|
|
353
368
|
high: "high";
|
|
354
369
|
xhigh: "xhigh";
|
|
370
|
+
max: "max";
|
|
355
371
|
}>>;
|
|
356
372
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
357
373
|
}, z.core.$strip>>;
|
|
@@ -366,6 +382,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
366
382
|
medium: "medium";
|
|
367
383
|
high: "high";
|
|
368
384
|
xhigh: "xhigh";
|
|
385
|
+
max: "max";
|
|
369
386
|
}>>;
|
|
370
387
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
371
388
|
}, z.core.$strip>>;
|
|
@@ -380,6 +397,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
380
397
|
medium: "medium";
|
|
381
398
|
high: "high";
|
|
382
399
|
xhigh: "xhigh";
|
|
400
|
+
max: "max";
|
|
383
401
|
}>>;
|
|
384
402
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
385
403
|
}, z.core.$strip>>;
|
|
@@ -394,6 +412,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
394
412
|
medium: "medium";
|
|
395
413
|
high: "high";
|
|
396
414
|
xhigh: "xhigh";
|
|
415
|
+
max: "max";
|
|
397
416
|
}>>;
|
|
398
417
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
399
418
|
}, z.core.$strip>>;
|
|
@@ -408,6 +427,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
408
427
|
medium: "medium";
|
|
409
428
|
high: "high";
|
|
410
429
|
xhigh: "xhigh";
|
|
430
|
+
max: "max";
|
|
411
431
|
}>>;
|
|
412
432
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
413
433
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -423,6 +443,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
423
443
|
medium: "medium";
|
|
424
444
|
high: "high";
|
|
425
445
|
xhigh: "xhigh";
|
|
446
|
+
max: "max";
|
|
426
447
|
}>>;
|
|
427
448
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
428
449
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -438,6 +459,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
438
459
|
medium: "medium";
|
|
439
460
|
high: "high";
|
|
440
461
|
xhigh: "xhigh";
|
|
462
|
+
max: "max";
|
|
441
463
|
}>>;
|
|
442
464
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
443
465
|
}, z.core.$strip>>;
|
|
@@ -450,6 +472,7 @@ export declare const DreamerConfigSchema: z.ZodObject<{
|
|
|
450
472
|
medium: "medium";
|
|
451
473
|
high: "high";
|
|
452
474
|
xhigh: "xhigh";
|
|
475
|
+
max: "max";
|
|
453
476
|
}>>;
|
|
454
477
|
}, z.core.$strip>;
|
|
455
478
|
export type DreamerConfig = z.infer<typeof DreamerConfigSchema>;
|
|
@@ -511,6 +534,7 @@ export declare const SidekickConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
511
534
|
medium: "medium";
|
|
512
535
|
high: "high";
|
|
513
536
|
xhigh: "xhigh";
|
|
537
|
+
max: "max";
|
|
514
538
|
}>>;
|
|
515
539
|
}, z.core.$strip>>;
|
|
516
540
|
export type SidekickConfig = NonNullable<z.infer<typeof SidekickConfigSchema>>;
|
|
@@ -576,6 +600,7 @@ export declare const HistorianConfigSchema: z.ZodOptional<z.ZodObject<{
|
|
|
576
600
|
medium: "medium";
|
|
577
601
|
high: "high";
|
|
578
602
|
xhigh: "xhigh";
|
|
603
|
+
max: "max";
|
|
579
604
|
}>>;
|
|
580
605
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
581
606
|
"*": "*";
|
|
@@ -888,6 +913,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
888
913
|
medium: "medium";
|
|
889
914
|
high: "high";
|
|
890
915
|
xhigh: "xhigh";
|
|
916
|
+
max: "max";
|
|
891
917
|
}>>;
|
|
892
918
|
disallowed_tools: z.ZodDefault<z.ZodArray<z.ZodEnum<{
|
|
893
919
|
"*": "*";
|
|
@@ -958,6 +984,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
958
984
|
medium: "medium";
|
|
959
985
|
high: "high";
|
|
960
986
|
xhigh: "xhigh";
|
|
987
|
+
max: "max";
|
|
961
988
|
}>>;
|
|
962
989
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
963
990
|
}, z.core.$strip>>;
|
|
@@ -972,6 +999,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
972
999
|
medium: "medium";
|
|
973
1000
|
high: "high";
|
|
974
1001
|
xhigh: "xhigh";
|
|
1002
|
+
max: "max";
|
|
975
1003
|
}>>;
|
|
976
1004
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
977
1005
|
}, z.core.$strip>>;
|
|
@@ -986,6 +1014,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
986
1014
|
medium: "medium";
|
|
987
1015
|
high: "high";
|
|
988
1016
|
xhigh: "xhigh";
|
|
1017
|
+
max: "max";
|
|
989
1018
|
}>>;
|
|
990
1019
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
991
1020
|
}, z.core.$strip>>;
|
|
@@ -1000,6 +1029,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1000
1029
|
medium: "medium";
|
|
1001
1030
|
high: "high";
|
|
1002
1031
|
xhigh: "xhigh";
|
|
1032
|
+
max: "max";
|
|
1003
1033
|
}>>;
|
|
1004
1034
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1005
1035
|
}, z.core.$strip>>;
|
|
@@ -1014,6 +1044,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1014
1044
|
medium: "medium";
|
|
1015
1045
|
high: "high";
|
|
1016
1046
|
xhigh: "xhigh";
|
|
1047
|
+
max: "max";
|
|
1017
1048
|
}>>;
|
|
1018
1049
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1019
1050
|
}, z.core.$strip>>;
|
|
@@ -1028,6 +1059,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1028
1059
|
medium: "medium";
|
|
1029
1060
|
high: "high";
|
|
1030
1061
|
xhigh: "xhigh";
|
|
1062
|
+
max: "max";
|
|
1031
1063
|
}>>;
|
|
1032
1064
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1033
1065
|
}, z.core.$strip>>;
|
|
@@ -1042,6 +1074,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1042
1074
|
medium: "medium";
|
|
1043
1075
|
high: "high";
|
|
1044
1076
|
xhigh: "xhigh";
|
|
1077
|
+
max: "max";
|
|
1045
1078
|
}>>;
|
|
1046
1079
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1047
1080
|
}, z.core.$strip>>;
|
|
@@ -1056,6 +1089,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1056
1089
|
medium: "medium";
|
|
1057
1090
|
high: "high";
|
|
1058
1091
|
xhigh: "xhigh";
|
|
1092
|
+
max: "max";
|
|
1059
1093
|
}>>;
|
|
1060
1094
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1061
1095
|
}, z.core.$strip>>;
|
|
@@ -1070,6 +1104,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1070
1104
|
medium: "medium";
|
|
1071
1105
|
high: "high";
|
|
1072
1106
|
xhigh: "xhigh";
|
|
1107
|
+
max: "max";
|
|
1073
1108
|
}>>;
|
|
1074
1109
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1075
1110
|
}, z.core.$strip>>;
|
|
@@ -1084,6 +1119,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1084
1119
|
medium: "medium";
|
|
1085
1120
|
high: "high";
|
|
1086
1121
|
xhigh: "xhigh";
|
|
1122
|
+
max: "max";
|
|
1087
1123
|
}>>;
|
|
1088
1124
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1089
1125
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1099,6 +1135,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1099
1135
|
medium: "medium";
|
|
1100
1136
|
high: "high";
|
|
1101
1137
|
xhigh: "xhigh";
|
|
1138
|
+
max: "max";
|
|
1102
1139
|
}>>;
|
|
1103
1140
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1104
1141
|
promotion_threshold: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1114,6 +1151,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1114
1151
|
medium: "medium";
|
|
1115
1152
|
high: "high";
|
|
1116
1153
|
xhigh: "xhigh";
|
|
1154
|
+
max: "max";
|
|
1117
1155
|
}>>;
|
|
1118
1156
|
timeout_minutes: z.ZodDefault<z.ZodNumber>;
|
|
1119
1157
|
}, z.core.$strip>>;
|
|
@@ -1126,6 +1164,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1126
1164
|
medium: "medium";
|
|
1127
1165
|
high: "high";
|
|
1128
1166
|
xhigh: "xhigh";
|
|
1167
|
+
max: "max";
|
|
1129
1168
|
}>>;
|
|
1130
1169
|
}, z.core.$strip>>;
|
|
1131
1170
|
cache_ttl: z.ZodDefault<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
|
|
@@ -1304,6 +1343,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1304
1343
|
medium: "medium";
|
|
1305
1344
|
high: "high";
|
|
1306
1345
|
xhigh: "xhigh";
|
|
1346
|
+
max: "max";
|
|
1307
1347
|
}>>;
|
|
1308
1348
|
}, z.core.$strip>>;
|
|
1309
1349
|
}, z.core.$strip>, z.ZodTransform<MagicContextConfig, {
|
|
@@ -1421,7 +1461,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1421
1461
|
maxTokens?: number | undefined;
|
|
1422
1462
|
variant?: string | undefined;
|
|
1423
1463
|
fallback_models?: string | string[] | undefined;
|
|
1424
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1464
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1425
1465
|
} | undefined;
|
|
1426
1466
|
dreamer?: {
|
|
1427
1467
|
tasks: {
|
|
@@ -1430,70 +1470,70 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1430
1470
|
timeout_minutes: number;
|
|
1431
1471
|
model?: string | undefined;
|
|
1432
1472
|
fallback_models?: string | string[] | undefined;
|
|
1433
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1473
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1434
1474
|
};
|
|
1435
1475
|
verify: {
|
|
1436
1476
|
schedule: string;
|
|
1437
1477
|
timeout_minutes: number;
|
|
1438
1478
|
model?: string | undefined;
|
|
1439
1479
|
fallback_models?: string | string[] | undefined;
|
|
1440
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1480
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1441
1481
|
};
|
|
1442
1482
|
"verify-broad": {
|
|
1443
1483
|
schedule: string;
|
|
1444
1484
|
timeout_minutes: number;
|
|
1445
1485
|
model?: string | undefined;
|
|
1446
1486
|
fallback_models?: string | string[] | undefined;
|
|
1447
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1487
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1448
1488
|
};
|
|
1449
1489
|
curate: {
|
|
1450
1490
|
schedule: string;
|
|
1451
1491
|
timeout_minutes: number;
|
|
1452
1492
|
model?: string | undefined;
|
|
1453
1493
|
fallback_models?: string | string[] | undefined;
|
|
1454
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1494
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1455
1495
|
};
|
|
1456
1496
|
"compress-cues": {
|
|
1457
1497
|
schedule: string;
|
|
1458
1498
|
timeout_minutes: number;
|
|
1459
1499
|
model?: string | undefined;
|
|
1460
1500
|
fallback_models?: string | string[] | undefined;
|
|
1461
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1501
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1462
1502
|
};
|
|
1463
1503
|
"classify-memories": {
|
|
1464
1504
|
schedule: string;
|
|
1465
1505
|
timeout_minutes: number;
|
|
1466
1506
|
model?: string | undefined;
|
|
1467
1507
|
fallback_models?: string | string[] | undefined;
|
|
1468
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1508
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1469
1509
|
};
|
|
1470
1510
|
retrospective: {
|
|
1471
1511
|
schedule: string;
|
|
1472
1512
|
timeout_minutes: number;
|
|
1473
1513
|
model?: string | undefined;
|
|
1474
1514
|
fallback_models?: string | string[] | undefined;
|
|
1475
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1515
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1476
1516
|
};
|
|
1477
1517
|
"maintain-docs": {
|
|
1478
1518
|
schedule: string;
|
|
1479
1519
|
timeout_minutes: number;
|
|
1480
1520
|
model?: string | undefined;
|
|
1481
1521
|
fallback_models?: string | string[] | undefined;
|
|
1482
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1522
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1483
1523
|
};
|
|
1484
1524
|
"evaluate-smart-notes": {
|
|
1485
1525
|
schedule: string;
|
|
1486
1526
|
timeout_minutes: number;
|
|
1487
1527
|
model?: string | undefined;
|
|
1488
1528
|
fallback_models?: string | string[] | undefined;
|
|
1489
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1529
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1490
1530
|
};
|
|
1491
1531
|
"review-user-memories": {
|
|
1492
1532
|
schedule: string;
|
|
1493
1533
|
timeout_minutes: number;
|
|
1494
1534
|
model?: string | undefined;
|
|
1495
1535
|
fallback_models?: string | string[] | undefined;
|
|
1496
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1536
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1497
1537
|
promotion_threshold?: number | undefined;
|
|
1498
1538
|
};
|
|
1499
1539
|
"promote-primers": {
|
|
@@ -1501,7 +1541,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1501
1541
|
timeout_minutes: number;
|
|
1502
1542
|
model?: string | undefined;
|
|
1503
1543
|
fallback_models?: string | string[] | undefined;
|
|
1504
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1544
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1505
1545
|
promotion_threshold?: number | undefined;
|
|
1506
1546
|
};
|
|
1507
1547
|
"refresh-primers": {
|
|
@@ -1509,7 +1549,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1509
1549
|
timeout_minutes: number;
|
|
1510
1550
|
model?: string | undefined;
|
|
1511
1551
|
fallback_models?: string | string[] | undefined;
|
|
1512
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1552
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1513
1553
|
};
|
|
1514
1554
|
};
|
|
1515
1555
|
inject_docs: boolean;
|
|
@@ -1533,7 +1573,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1533
1573
|
maxTokens?: number | undefined;
|
|
1534
1574
|
variant?: string | undefined;
|
|
1535
1575
|
fallback_models?: string | string[] | undefined;
|
|
1536
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1576
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1537
1577
|
} | undefined;
|
|
1538
1578
|
execute_threshold_tokens?: {
|
|
1539
1579
|
[x: string]: number;
|
|
@@ -1569,7 +1609,7 @@ export declare const MagicContextConfigSchema: z.ZodPipe<z.ZodObject<{
|
|
|
1569
1609
|
variant?: string | undefined;
|
|
1570
1610
|
fallback_models?: string | string[] | undefined;
|
|
1571
1611
|
system_prompt?: string | undefined;
|
|
1572
|
-
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | undefined;
|
|
1612
|
+
thinking_level?: "off" | "minimal" | "low" | "medium" | "high" | "xhigh" | "max" | undefined;
|
|
1573
1613
|
} | undefined;
|
|
1574
1614
|
}>>;
|
|
1575
1615
|
export {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"magic-context.d.ts","sourceRoot":"","sources":["../../../src/config/schema/magic-context.ts"],"names":[],"m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export interface InjectCompactionMarkerArgs {
|
|
|
88
88
|
* Returns the marker state if successful, null if boundary couldn't be found.
|
|
89
89
|
*/
|
|
90
90
|
export declare function injectCompactionMarker(args: InjectCompactionMarkerArgs): CompactionMarkerState | null;
|
|
91
|
+
/**
|
|
92
|
+
* One compaction marker row-set found in opencode.db for a session.
|
|
93
|
+
*
|
|
94
|
+
* `summaryMessageIds` lists the completed summary assistant messages
|
|
95
|
+
* (summary=true, finish="stop") parented to the boundary user message and
|
|
96
|
+
* carrying magic-context's provider identity — i.e. the summaries THIS plugin
|
|
97
|
+
* injected. OpenCode-native /compact summaries carry the real provider id and
|
|
98
|
+
* are deliberately NOT listed, so callers can never delete a native compaction.
|
|
99
|
+
*/
|
|
100
|
+
export interface SessionCompactionMarkerRows {
|
|
101
|
+
/** id of the `type:"compaction"` part on the boundary user message */
|
|
102
|
+
compactionPartId: string;
|
|
103
|
+
/** the user message id the compaction part is attached to */
|
|
104
|
+
boundaryMessageId: string;
|
|
105
|
+
/** magic-context-injected summary messages parented to the boundary */
|
|
106
|
+
summaryMessageIds: string[];
|
|
107
|
+
}
|
|
108
|
+
/**
|
|
109
|
+
* List every compaction marker present in opencode.db for a session.
|
|
110
|
+
*
|
|
111
|
+
* Used by the fork-orphan hygiene pass (#263): OpenCode's `/fork` copies the
|
|
112
|
+
* parent session's message rows — including this plugin's compaction marker
|
|
113
|
+
* rows — into the fork, while magic-context's durable marker state (context.db)
|
|
114
|
+
* is NOT inherited (PARITY.md gap #25). The fork then owns marker rows its
|
|
115
|
+
* state knows nothing about. This scan enumerates all markers so the caller can
|
|
116
|
+
* diff them against the persisted state and repair the ones it does not own.
|
|
117
|
+
*
|
|
118
|
+
* Errors propagate to the caller (the hygiene pass treats any failure as
|
|
119
|
+
* "skip this pass and retry later" — never as a fatal transform error).
|
|
120
|
+
*/
|
|
121
|
+
export declare function listSessionCompactionMarkers(sessionId: string): SessionCompactionMarkerRows[];
|
|
122
|
+
/**
|
|
123
|
+
* Remove one foreign (not owned by this session's durable state) compaction
|
|
124
|
+
* marker from opencode.db: its compaction part, plus the magic-context summary
|
|
125
|
+
* lineage parented to its boundary message.
|
|
126
|
+
*
|
|
127
|
+
* Deleting the compaction part alone is sufficient to make `filterCompacted`
|
|
128
|
+
* stop ignoring our marker (it requires a compaction part to break), but the
|
|
129
|
+
* summary rows are removed too so no stale "[Compacted by magic-context]"
|
|
130
|
+
* message lingers in the fork's history.
|
|
131
|
+
*
|
|
132
|
+
* `protectedSummaryMessageId` is the caller's OWN summary message id; it is
|
|
133
|
+
* never deleted even if it happened to share the boundary (defensive — a
|
|
134
|
+
* foreign boundary newer than ours should always differ).
|
|
135
|
+
*
|
|
136
|
+
* Returns false (without throwing) when the DELETE transaction fails, e.g.
|
|
137
|
+
* SQLITE_BUSY; the caller retries on a later pass.
|
|
138
|
+
*/
|
|
139
|
+
export declare function removeForeignCompactionMarker(sessionId: string, marker: SessionCompactionMarkerRows, protectedSummaryMessageId: string | null): boolean;
|
|
91
140
|
/**
|
|
92
141
|
* Remove an existing compaction marker (all 3 rows).
|
|
93
142
|
* Used when moving the boundary forward or on session cleanup.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AA6CH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAE1F;AAED,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,SAAK,EAAE,QAAQ,SAAK,GAAG,MAAM,CAEvF;AAID,wBAAgB,iBAAiB,IAAI,MAAM,CAE1C;AA4GD,wBAAgB,uBAAuB,IAAI,IAAI,CAY9C;AAID,MAAM,WAAW,mBAAmB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,MAAM,CAAC;CACvB;AA6BD;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CACnC,SAAS,EAAE,MAAM,EACjB,YAAY,EAAE,MAAM,GACrB,mBAAmB,GAAG,IAAI,CAoC5B;AAED,wBAAgB,uCAAuC,CACnD,SAAS,EAAE,MAAM,EACjB,aAAa,EAAE,MAAM,EACrB,cAAc,EAAE,MAAM,GACvB,MAAM,GAAG,IAAI,CASf;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAgB,sBAAsB,CAClC,SAAS,EAAE,MAAM,EACjB,SAAS,EAAE,MAAM,GAClB;IAAE,EAAE,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAMvB;AAID,UAAU,qBAAqB;IAC3B,uDAAuD;IACvD,iBAAiB,EAAE,MAAM,CAAC;IAC1B,mDAAmD;IACnD,gBAAgB,EAAE,MAAM,CAAC;IACzB,iDAAiD;IACjD,gBAAgB,EAAE,MAAM,CAAC;IACzB,8CAA8C;IAC9C,aAAa,EAAE,MAAM,CAAC;CACzB;AAID,MAAM,WAAW,0BAA0B;IACvC,SAAS,EAAE,MAAM,CAAC;IAClB,wDAAwD;IACxD,UAAU,EAAE,MAAM,CAAC;IACnB,gEAAgE;IAChE,YAAY,EAAE,MAAM,CAAC;IACrB,2EAA2E;IAC3E,WAAW,EAAE,MAAM,CAAC;IACpB,wCAAwC;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CAC1C;AA8DD;;;GAGG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,0BAA0B,GACjC,qBAAqB,GAAG,IAAI,CA0H9B;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB5E"}
|
|
1
|
+
{"version":3,"file":"compaction-marker.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compaction-marker.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;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,CAAC;IAClB,6FAA6F;IAC7F,gBAAgB,CAAC,EAAE,mBAAmB,CAAC;CAC1C;AA8DD;;;GAGG;AACH,wBAAgB,sBAAsB,CAClC,IAAI,EAAE,0BAA0B,GACjC,qBAAqB,GAAG,IAAI,CA0H9B;AAID;;;;;;;;GAQG;AACH,MAAM,WAAW,2BAA2B;IACxC,sEAAsE;IACtE,gBAAgB,EAAE,MAAM,CAAC;IACzB,6DAA6D;IAC7D,iBAAiB,EAAE,MAAM,CAAC;IAC1B,uEAAuE;IACvE,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC/B;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,4BAA4B,CAAC,SAAS,EAAE,MAAM,GAAG,2BAA2B,EAAE,CAkC7F;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,6BAA6B,CACzC,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,2BAA2B,EACnC,yBAAyB,EAAE,MAAM,GAAG,IAAI,GACzC,OAAO,CAyBT;AAID;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,qBAAqB,GAAG,OAAO,CAgB5E"}
|
|
@@ -78,8 +78,6 @@ export declare function chunkCanonicalText(canonicalText: string, startOrdinal:
|
|
|
78
78
|
export declare function getExistingChunkHashes(db: Database, compartmentId: number, modelId: string, projectPath?: string): Map<number, string>;
|
|
79
79
|
export declare function chunkEmbeddingWindowsAreCurrent(db: Database, compartmentId: number, modelId: string, windows: readonly CompartmentChunkWindow[], projectPath?: string): boolean;
|
|
80
80
|
export declare function replaceCompartmentChunkEmbeddings(db: Database, rows: readonly SaveCompartmentChunkEmbeddingInput[]): void;
|
|
81
|
-
export declare function getDistinctChunkEmbeddingModelIds(db: Database, projectPath: string): Set<string | null>;
|
|
82
|
-
export declare function clearChunkEmbeddingsForProject(db: Database, projectPath: string, modelId?: string): number;
|
|
83
81
|
export declare function loadCompartmentChunkEmbeddingsForSearch(db: Database, sessionId: string, projectPath: string, modelId: string): StoredCompartmentChunkEmbedding[];
|
|
84
82
|
export declare function loadUnembeddedCompartmentChunkCandidates(db: Database, projectPath: string, modelId: string, limit: number): CompartmentChunkBackfillCandidate[];
|
|
85
83
|
/** Session-scoped variant of {@link loadUnembeddedCompartmentChunkCandidates}.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAGpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAsD7C,MAAM,WAAW,iCAAiC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;CACxB;AAED,MAA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WAAW,CAAC,EAAE,MAAM,GACrB,OAAO,CAIT;AAED,wBAAgB,iCAAiC,CAC7C,EAAE,EAAE,QAAQ,EACZ,IAAI,EAAE,SAAS,kCAAkC,EAAE,GACpD,IAAI,CAgCN;AAED,wBAAgB,
|
|
1
|
+
{"version":3,"file":"compartment-chunk-embedding.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/compartment-chunk-embedding.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAkC,MAAM,qBAAqB,CAAC;AAGpF,eAAO,MAAM,0CAA0C,MAAM,CAAC;AAE9D;;;;;;;;GAQG;AACH,eAAO,MAAM,yBAAyB,MAAM,CAAC;AAsD7C,MAAM,WAAW,iCAAiC;IAC9C,EAAE,EAAE,MAAM,CAAC;IACX,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,sBAAsB;IACnC,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,+BAA+B;IAC5C,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,YAAY,EAAE,MAAM,CAAC;IACrB,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,CAAC;IACpB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,gBAAgB,EAAE,MAAM,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,YAAY,CAAC;CACxB;AAED,MAAM,WAAW,kCAAkC;IAC/C,aAAa,EAA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O,CAIT;AAED,wBAAgB,iCAAiC,CAC7C,EAAE,EAAE,QAAQ,EACZ,IAAI,EAAE,SAAS,kCAAkC,EAAE,GACpD,IAAI,CAgCN;AAED,wBAAgB,uCAAuC,CACnD,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,GAChB,+BAA+B,EAAE,CAuDnC;AAED,wBAAgB,wCAAwC,CACpD,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,GACd,iCAAiC,EAAE,CAQrC;AA0BD;;;;;;;;;4EAS4E;AAC5E,wBAAgB,oCAAoC,CAChD,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,EACf,KAAK,EAAE,MAAM,EACb,UAAU,CAAC,EAAE,SAAS,MAAM,EAAE,GAC/B,iCAAiC,EAAE,CA4ErC;AAED;kEACkE;AAClE,wBAAgB,kCAAkC,CAC9C,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GAChB,MAAM,CAsBR;AAED;;;2EAG2E;AAC3E,wBAAgB,oCAAoC,CAChD,EAAE,EAAE,QAAQ,EACZ,WAAW,EAAE,MAAM,EACnB,SAAS,EAAE,MAAM,EACjB,OAAO,EAAE,MAAM,GAChB;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CA2BrC"}
|
|
@@ -17,7 +17,6 @@ export type DreamTaskName = (typeof CANONICAL_DREAM_TASKS)[number];
|
|
|
17
17
|
* through the prompt builder.
|
|
18
18
|
*/
|
|
19
19
|
export declare const AGENTIC_DREAM_TASKS: readonly ["curate", "maintain-docs"];
|
|
20
|
-
export type AgenticDreamTask = (typeof AGENTIC_DREAM_TASKS)[number];
|
|
21
20
|
/**
|
|
22
21
|
* Tasks that read-modify-write the project `memories` table (+ epoch +
|
|
23
22
|
* supersede-delta rows). They SHARE one per-project "memory" lease so they
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"task-registry.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/task-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB,6NAexB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,sCAAuC,CAAC;AAExE
|
|
1
|
+
{"version":3,"file":"task-registry.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/dreamer/task-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,eAAO,MAAM,qBAAqB,6NAexB,CAAC;AAEX,MAAM,MAAM,aAAa,GAAG,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEnE;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,sCAAuC,CAAC;AAExE;;;;;GAKG;AACH,eAAO,MAAM,mBAAmB,EAAE,SAAS,aAAa,EAUvD,CAAC;AAIF;;;;GAIG;AACH,MAAM,MAAM,SAAS,GAAG,QAAQ,GAAG,eAAe,GAAG,sBAAsB,GAAG,eAAe,CAAC;AAE9F,wBAAgB,YAAY,CAAC,IAAI,EAAE,aAAa,GAAG,SAAS,CAgB3D;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,IAAI,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,GAAG,MAAM,CAGhF;AAED,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,aAAa,CAE1E;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,aAAa,GAAG,MAAM,CAE3E"}
|
|
@@ -2,7 +2,7 @@ export type { GitCommit, ReadGitCommitsOptions } from "./git-log-reader";
|
|
|
2
2
|
export { parseGitLogOutput, readGitCommits } from "./git-log-reader";
|
|
3
3
|
export { _resetIndexerGuards, embedUnembeddedCommits, type IndexCommitsOptions, type IndexCommitsResult, indexCommitsForProject, } from "./indexer";
|
|
4
4
|
export { type GitCommitSearchHit, type SearchGitCommitsOptions, searchGitCommitsSync, } from "./search-git-commits";
|
|
5
|
-
export {
|
|
6
|
-
export { enforceProjectCap,
|
|
5
|
+
export { countEmbeddedCommits, loadProjectCommitEmbeddings, loadUnembeddedCommits, saveCommitEmbedding, } from "./storage-git-commit-embeddings";
|
|
6
|
+
export { enforceProjectCap, getCommitCount, getLatestIndexedCommitTimeMs, type StoredGitCommit, upsertCommits, } from "./storage-git-commits";
|
|
7
7
|
export { acquireGitSweepLease, GIT_SWEEP_COOLDOWN_MS, GIT_SWEEP_LEASE_RENEWAL_MS, GIT_SWEEP_LEASE_TTL_MS, type GitSweepCoordinatorState, type GitSweepLeaseResult, getGitSweepCoordinatorState, markGitSweepSuccessAndRelease, parkGitSweepNonIndexable, releaseGitSweepLease, renewGitSweepLease, } from "./sweep-coordinator";
|
|
8
8
|
//# sourceMappingURL=index.d.ts.map
|