@cortexkit/opencode-magic-context 0.42.4 → 0.42.5
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/features/magic-context/dreamer/curate-category-rotation.d.ts +26 -0
- package/dist/features/magic-context/dreamer/curate-category-rotation.d.ts.map +1 -0
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +7 -5
- package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-gates.d.ts +1 -0
- package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-prompts.d.ts +3 -0
- package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-registry.d.ts +6 -0
- package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +5 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/memory/embedding-local.d.ts +11 -0
- package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
- package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
- package/dist/{index-faay035c.js → index-3wbd8sdq.js} +29 -11
- package/dist/{index-bkg2fdj1.js → index-4wwr6cz0.js} +3 -0
- package/dist/index.js +189 -27
- package/dist/{recomp-orchestrator-c4sa354a.js → recomp-orchestrator-k20sfpm2.js} +1 -1
- package/dist/{task-config-ys0arma5.js → task-config-cv8k9y8r.js} +1 -1
- package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
- package/dist/v2/server.js +530 -2471
- package/package.json +1 -1
- package/src/features/magic-context/dreamer/task-registry.ts +10 -0
package/package.json
CHANGED
|
@@ -8,6 +8,8 @@
|
|
|
8
8
|
* concurrently while memory-mutating tasks serialize. See lease.ts + the A+B spec.
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
|
+
import type { CurateMemoryCategory } from "./curate-category-rotation";
|
|
12
|
+
|
|
11
13
|
export const CANONICAL_DREAM_TASKS = [
|
|
12
14
|
// map-memories runs BEFORE verify (it records the file mappings verify gates
|
|
13
15
|
// on) and shares the memory lease, so it leads the canonical order.
|
|
@@ -52,6 +54,8 @@ export interface DreamTaskBacklog {
|
|
|
52
54
|
pending: number;
|
|
53
55
|
/** Total items in the task's candidate pool. */
|
|
54
56
|
total: number;
|
|
57
|
+
/** Curate's one-category scope for this run/window. */
|
|
58
|
+
category?: CurateMemoryCategory;
|
|
55
59
|
}
|
|
56
60
|
|
|
57
61
|
/** Backlog counts keyed by canonical task name. */
|
|
@@ -66,6 +70,9 @@ export function formatDreamTaskBacklogs(
|
|
|
66
70
|
.filter((task) => backlogs[task] !== undefined)
|
|
67
71
|
.map((task) => {
|
|
68
72
|
const backlog = backlogs[task];
|
|
73
|
+
if (task === "curate" && backlog?.category) {
|
|
74
|
+
return `- curate: ${backlog.category} (${backlog.pending})`;
|
|
75
|
+
}
|
|
69
76
|
return `- ${task}: ${backlog?.pending ?? 0} pending / ${backlog?.total ?? 0} total`;
|
|
70
77
|
})
|
|
71
78
|
.join("\n");
|
|
@@ -77,6 +84,8 @@ export interface DreamTaskProgress {
|
|
|
77
84
|
processed: number;
|
|
78
85
|
total: number;
|
|
79
86
|
startedAt: number;
|
|
87
|
+
/** Curate's one-category scope. */
|
|
88
|
+
category?: CurateMemoryCategory;
|
|
80
89
|
/** Update/archive verdicts refused by host-side verification safety gates during the current run. */
|
|
81
90
|
refused?: number;
|
|
82
91
|
}
|
|
@@ -88,6 +97,7 @@ export interface DreamTaskRunBacklog {
|
|
|
88
97
|
pendingAtEnd: number;
|
|
89
98
|
totalAtEnd: number;
|
|
90
99
|
processed: number;
|
|
100
|
+
category?: CurateMemoryCategory;
|
|
91
101
|
}
|
|
92
102
|
|
|
93
103
|
/** Use the decrease in the persisted backlog between the start and end snapshots as the per-run progress count, clamped to zero when the backlog does not decrease. */
|