@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.
Files changed (25) hide show
  1. package/dist/features/magic-context/dreamer/curate-category-rotation.d.ts +26 -0
  2. package/dist/features/magic-context/dreamer/curate-category-rotation.d.ts.map +1 -0
  3. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts +7 -5
  4. package/dist/features/magic-context/dreamer/storage-task-schedule.d.ts.map +1 -1
  5. package/dist/features/magic-context/dreamer/task-executor.d.ts.map +1 -1
  6. package/dist/features/magic-context/dreamer/task-gates.d.ts +1 -0
  7. package/dist/features/magic-context/dreamer/task-gates.d.ts.map +1 -1
  8. package/dist/features/magic-context/dreamer/task-prompts.d.ts +3 -0
  9. package/dist/features/magic-context/dreamer/task-prompts.d.ts.map +1 -1
  10. package/dist/features/magic-context/dreamer/task-registry.d.ts +6 -0
  11. package/dist/features/magic-context/dreamer/task-registry.d.ts.map +1 -1
  12. package/dist/features/magic-context/dreamer/task-scheduler.d.ts +5 -1
  13. package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
  14. package/dist/features/magic-context/memory/embedding-local.d.ts +11 -0
  15. package/dist/features/magic-context/memory/embedding-local.d.ts.map +1 -1
  16. package/dist/hooks/magic-context/tail-hygiene-walk.d.ts.map +1 -1
  17. package/dist/{index-faay035c.js → index-3wbd8sdq.js} +29 -11
  18. package/dist/{index-bkg2fdj1.js → index-4wwr6cz0.js} +3 -0
  19. package/dist/index.js +189 -27
  20. package/dist/{recomp-orchestrator-c4sa354a.js → recomp-orchestrator-k20sfpm2.js} +1 -1
  21. package/dist/{task-config-ys0arma5.js → task-config-cv8k9y8r.js} +1 -1
  22. package/dist/tools/ctx-memory/tools.d.ts.map +1 -1
  23. package/dist/v2/server.js +530 -2471
  24. package/package.json +1 -1
  25. package/src/features/magic-context/dreamer/task-registry.ts +10 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cortexkit/opencode-magic-context",
3
- "version": "0.42.4",
3
+ "version": "0.42.5",
4
4
  "type": "module",
5
5
  "description": "OpenCode plugin for Magic Context — cross-session memory and context management",
6
6
  "main": "dist/index.js",
@@ -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. */