@cortexkit/opencode-magic-context 0.49.90 → 0.49.92
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/auto-search-worker.js +4 -4
- package/dist/chunk-embedding-write-worker.js +6 -6
- package/dist/{compartment-chunk-embedding-fey2bsyf.js → compartment-chunk-embedding-rp4asvk0.js} +3 -3
- package/dist/config/index.d.ts.map +1 -1
- package/dist/config/migrate-dreamer-v2.d.ts +1 -0
- package/dist/config/migrate-dreamer-v2.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-kbq6ppjf.js → conflict-warning-hook-exf96bpt.js} +3 -3
- package/dist/{context-cdds0gjj.js → context-e8qd2v00.js} +579 -245
- package/dist/{embedding-backfill-qjkaee9s.js → embedding-backfill-w0yq71q2.js} +6 -6
- package/dist/embedding-worker.js +3 -3
- package/dist/features/magic-context/dreamer/refresh-primers.d.ts.map +1 -1
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts +2 -2
- package/dist/features/magic-context/dreamer/task-scheduler.d.ts.map +1 -1
- package/dist/features/magic-context/memory/single-store-embedding-drain.d.ts.map +1 -1
- package/dist/features/magic-context/overflow-detection.d.ts +7 -1
- package/dist/features/magic-context/overflow-detection.d.ts.map +1 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts +2 -1
- package/dist/features/magic-context/project-embedding-registry.d.ts.map +1 -1
- package/dist/features/magic-context/storage-meta-persisted.d.ts +13 -3
- package/dist/features/magic-context/storage-meta-persisted.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-parser.d.ts +2 -0
- package/dist/hooks/magic-context/compartment-parser.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-types.d.ts +7 -7
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts +3 -0
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts +2 -1
- package/dist/hooks/magic-context/compartment-trigger.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-handler.d.ts +4 -0
- package/dist/hooks/magic-context/event-handler.d.ts.map +1 -1
- package/dist/hooks/magic-context/event-resolvers.d.ts +5 -0
- package/dist/hooks/magic-context/event-resolvers.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-drain-gate.d.ts +15 -0
- package/dist/hooks/magic-context/historian-drain-gate.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-host-runner.d.ts +1 -1
- package/dist/hooks/magic-context/historian-host-runner.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/historian-publish-stage-logger.d.ts +5 -0
- package/dist/hooks/magic-context/historian-publish-stage-logger.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/provider-overflow-notice.d.ts +8 -0
- package/dist/hooks/magic-context/provider-overflow-notice.d.ts.map +1 -0
- package/dist/hooks/magic-context/read-session-db.d.ts +2 -0
- package/dist/hooks/magic-context/read-session-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/read-session-formatting.d.ts +2 -0
- package/dist/hooks/magic-context/read-session-formatting.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +5 -0
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-1y4y98r1.js → index-01h7tqe3.js} +25 -2
- package/dist/{index-3pdknr07.js → index-0twg41mh.js} +2 -2
- package/dist/{index-q7msfgwz.js → index-3f3d548g.js} +1503 -1371
- package/dist/{index-2pdgy88n.js → index-3n376ann.js} +19 -7
- package/dist/{index-78t37mcq.js → index-41bma6qs.js} +3 -3
- package/dist/{index-qfcjrnpe.js → index-5a9kwapd.js} +4 -4
- package/dist/{index-dk3hy2a2.js → index-5pmf4jpj.js} +10 -10
- package/dist/{index-2qsca7h7.js → index-5y9w2ax7.js} +4 -4
- package/dist/{index-pxnzyvjc.js → index-6r99v53h.js} +1 -1
- package/dist/{index-mrjat4eq.js → index-6rk44cer.js} +3 -3
- package/dist/{index-60wnwcwz.js → index-901exj0f.js} +91 -26
- package/dist/{index-6zewd2n5.js → index-9ffntwyr.js} +1 -1
- package/dist/{index-h9hybzr5.js → index-anwy2mfb.js} +6 -6
- package/dist/{index-83qd3n7s.js → index-et39x9k3.js} +1 -1
- package/dist/{index-w51n3576.js → index-f25ha337.js} +1 -1
- package/dist/{index-kknjvmpx.js → index-fqth7850.js} +51 -60
- package/dist/{index-zxhev8ze.js → index-hbn5g7rt.js} +1 -1
- package/dist/{index-chpzb6xy.js → index-hre29c1a.js} +2 -2
- package/dist/{index-08jfpny9.js → index-j2w79s9r.js} +76 -6
- package/dist/{index-tt0vs4x5.js → index-jba6ny4m.js} +28 -4
- package/dist/{index-m6dnydf8.js → index-mg9s2rc3.js} +1 -1
- package/dist/{index-61knrt52.js → index-mjy2k9jr.js} +1 -1
- package/dist/{index-wmb2mcdw.js → index-n71006wq.js} +6 -6
- package/dist/{index-n1ty0vd3.js → index-r3tdqqtq.js} +127 -101
- package/dist/{index-5vsk2cpp.js → index-s7460efs.js} +12 -1
- package/dist/{index-x40zr813.js → index-sp5pvs95.js} +9 -1
- package/dist/{index-9d3qgwq0.js → index-wvbg9m0h.js} +4 -4
- package/dist/index-x3rdza40.js +63 -0
- package/dist/{index-jzfsnbmm.js → index-xg1zjht5.js} +5 -5
- package/dist/{index-60x5d68t.js → index-xn9efn18.js} +1 -1
- package/dist/{index-39rzef89.js → index-ydhymf0b.js} +3 -3
- package/dist/{index-g0mb2kb4.js → index-zzhcshdk.js} +75 -67
- package/dist/index.js +97 -60
- package/dist/{message-index-bounded-r1qys471.js → message-index-bounded-f6fc00ze.js} +6 -6
- package/dist/migration-worker.js +4 -4
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-m3fp1pa4.js → project-embedding-registry-8je0xg18.js} +7 -5
- package/dist/raw-ordinal-warmup-worker.js +4 -4
- package/dist/{read-session-chunk-xv9f0wgb.js → read-session-chunk-y2ew3630.js} +5 -5
- package/dist/{recomp-orchestrator-dgyb394j.js → recomp-orchestrator-ggtcvb9g.js} +21 -20
- package/dist/{render-d014e603.js → render-q8c6wrq9.js} +14 -14
- package/dist/{search-archive-gybn6q7s.js → search-archive-pz1jf655.js} +7 -7
- package/dist/{search-9gceftb9.js → search-gjyrwapc.js} +16 -16
- package/dist/{send-session-notification-gzxz88vq.js → send-session-notification-0779tyd9.js} +2 -2
- package/dist/shared/model-suggestion-retry.d.ts +18 -0
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/{storage-tags-f1ftvjpw.js → storage-tags-7raphcw6.js} +3 -3
- package/dist/{store-reader-nf8z86n9.js → store-reader-qbq6q4v0.js} +1 -1
- package/dist/{store-n4yz3n66.js → store-yr443ye8.js} +2 -2
- package/dist/{task-config-qt6n4bxm.js → task-config-vrebjxyy.js} +2 -1
- package/dist/{transform-postprocess-phase-34k1zwsy.js → transform-postprocess-phase-pmzdd3s2.js} +22 -21
- package/dist/v2/auto-search-worker.js +4 -4
- package/dist/v2/chunk-embedding-write-worker.js +6 -6
- package/dist/v2/{compartment-chunk-embedding-knt2468v.js → compartment-chunk-embedding-w7ht0t9v.js} +3 -3
- package/dist/v2/{context-satgm752.js → context-qqbpzk1q.js} +686 -323
- package/dist/v2/{embedding-backfill-0ar1bm97.js → embedding-backfill-95m72gxa.js} +6 -6
- package/dist/v2/embedding-worker.js +3 -3
- package/dist/v2/fold/host-media.d.ts.map +1 -1
- package/dist/v2/fold/native-replay-v3.d.ts.map +1 -1
- package/dist/v2/fold/native-replay.d.ts +1 -0
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/fold/restore.d.ts +15 -0
- package/dist/v2/fold/restore.d.ts.map +1 -1
- package/dist/v2/hidden-child-native.d.ts +1 -1
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +11 -2
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-child-sweep.d.ts +3 -0
- package/dist/v2/hidden-child-sweep.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts +4 -0
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hidden-run-holder.d.ts +6 -6
- package/dist/v2/hidden-run-holder.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts +2 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +2 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/hooks/overflow-recovery.d.ts +6 -0
- package/dist/v2/hooks/overflow-recovery.d.ts.map +1 -1
- package/dist/v2/{message-index-bounded-b07r9cjv.js → message-index-bounded-70g28hyg.js} +6 -6
- package/dist/v2/migration-worker.js +4 -4
- package/dist/v2/{project-embedding-registry-gx2waee8.js → project-embedding-registry-fcxf4qht.js} +7 -5
- package/dist/v2/raw-ordinal-warmup-worker.js +4 -4
- package/dist/v2/{read-session-chunk-38wdy8nd.js → read-session-chunk-9rf0n9e6.js} +5 -5
- package/dist/v2/{recomp-orchestrator-wq7gbkqa.js → recomp-orchestrator-cwghhjc9.js} +21 -20
- package/dist/v2/{render-2dan17xc.js → render-e852zmxz.js} +14 -14
- package/dist/v2/{search-archive-89hdy0a2.js → search-archive-tmn6b5w8.js} +7 -7
- package/dist/v2/{search-nyqykx7q.js → search-jd3vczhn.js} +15 -15
- package/dist/v2/{send-session-notification-zazaxxpf.js → send-session-notification-v69y04f5.js} +2 -2
- package/dist/v2/server-3gz9k20t.js +63 -0
- package/dist/v2/{server-09h2vyvs.js → server-6t3asmx8.js} +6 -6
- package/dist/v2/{server-dgjqvpgd.js → server-72k2r3kt.js} +19 -7
- package/dist/v2/{server-pjk9spbf.js → server-7e89a2kf.js} +1 -1
- package/dist/v2/{server-dtcwkdqj.js → server-7x5a46hf.js} +1427 -1322
- package/dist/v2/{server-add0j5n3.js → server-8ps3717t.js} +3 -3
- package/dist/v2/{server-c7awk5s2.js → server-9011eteb.js} +4 -4
- package/dist/v2/{server-f7tzvmzs.js → server-b4efn08m.js} +1 -1
- package/dist/v2/{server-y17r5ryz.js → server-barj0mjz.js} +2 -2
- package/dist/v2/{server-b0a9h3ds.js → server-bvr9xs8h.js} +5 -5
- package/dist/v2/{server-pmws7we9.js → server-d4trxrj3.js} +91 -26
- package/dist/v2/{server-fb5hvvfc.js → server-fj3pekz2.js} +3 -3
- package/dist/v2/{server-6250cxzs.js → server-gs2251jr.js} +1 -1
- package/dist/v2/{server-a85j3kam.js → server-jkj1dq6j.js} +28 -4
- package/dist/v2/{server-ta4h0fch.js → server-js2v309w.js} +9 -9
- package/dist/v2/{server-9n2qgk29.js → server-mgxqfprb.js} +2 -2
- package/dist/v2/{server-2kswss3d.js → server-n5wn7d9b.js} +48 -60
- package/dist/v2/{server-vy0beygw.js → server-p4g021y5.js} +4 -4
- package/dist/v2/{server-x6fn9x8q.js → server-ps6zrzwj.js} +1 -1
- package/dist/v2/{server-y8xjr8rx.js → server-qb3s0mnc.js} +12 -1
- package/dist/v2/{server-stjy5dxv.js → server-qntmqaca.js} +1 -1
- package/dist/v2/{server-ytqps2xa.js → server-rkj44mez.js} +76 -6
- package/dist/v2/{server-tj65pgvg.js → server-vsqmkvxc.js} +32 -5
- package/dist/v2/{server-qyazxy92.js → server-vtgeyhq6.js} +25 -2
- package/dist/v2/{server-fn4ky6mn.js → server-x69fqsvz.js} +1 -1
- package/dist/v2/{server-yx0nyj1q.js → server-ysjjcatk.js} +3 -3
- package/dist/v2/server.js +4 -3
- package/dist/v2/{storage-tags-pmw33chf.js → storage-tags-wgsemtw1.js} +3 -3
- package/dist/v2/{store-y56y034s.js → store-enef5jcn.js} +2 -2
- package/dist/v2/{store-reader-2vhx33n6.js → store-reader-jbaqv1yp.js} +1 -1
- package/dist/v2/store-reader.d.ts +18 -0
- package/dist/v2/store-reader.d.ts.map +1 -1
- package/dist/v2/{task-config-ex2vajr2.js → task-config-4nqq2s0w.js} +2 -1
- package/dist/v2/{v2-archive-reader-gh1jghf7.js → v2-archive-reader-dm1aeqk2.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-2h7ayss9.js → wrapup-orchestrator-cke368np.js} +21 -20
- package/dist/{v2-archive-reader-8158kyfd.js → v2-archive-reader-39ye0d3b.js} +1 -1
- package/dist/{wrapup-orchestrator-ct59br0c.js → wrapup-orchestrator-ggnk0r4r.js} +22 -21
- package/package.json +1 -1
- package/src/config/index.test.ts +58 -0
- package/src/config/index.ts +4 -1
- package/src/config/migrate-dreamer-v2.ts +42 -0
- package/src/shared/model-suggestion-retry.test.ts +37 -0
- package/src/shared/model-suggestion-retry.ts +38 -4
- package/src/shared/models-dev-cache.test.ts +15 -0
- package/src/shared/startup-maintenance-policy.test.ts +11 -6
- package/dist/index-ksdyrrav.js +0 -52
- package/dist/v2/server-0s95v3en.js +0 -49
- /package/dist/v2/{server-3ap5dmhc.js → server-5hwf5c7r.js} +0 -0
|
@@ -1,9 +1,50 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
// src/config/agent-disable.ts
|
|
2
|
+
var COMPACTION_ENABLED_PATH = `compaction${"."}enabled`;
|
|
3
|
+
function isDreamerRunnable(config) {
|
|
4
|
+
return !!config.dreamer && config.dreamer.disable !== true;
|
|
5
|
+
}
|
|
6
|
+
function isSmartNoteSurfaceAvailable(config) {
|
|
7
|
+
return config.smart_notes?.enabled !== false && isDreamerRunnable(config);
|
|
8
|
+
}
|
|
9
|
+
function isCompactionEnabled(config) {
|
|
10
|
+
return config.compaction?.enabled !== false;
|
|
11
|
+
}
|
|
12
|
+
function clonePlainObject(value) {
|
|
13
|
+
if (typeof value !== "object" || value === null || Array.isArray(value)) {
|
|
14
|
+
return;
|
|
15
|
+
}
|
|
16
|
+
return { ...value };
|
|
17
|
+
}
|
|
18
|
+
function migrateLegacyEnabledForAgent(args) {
|
|
19
|
+
const agent = clonePlainObject(args.patched[args.agentName]);
|
|
20
|
+
if (!agent || !("enabled" in agent))
|
|
21
|
+
return;
|
|
22
|
+
const enabled = agent.enabled;
|
|
23
|
+
const disable = agent.disable;
|
|
24
|
+
delete agent.enabled;
|
|
25
|
+
if (args.agentName === "historian") {
|
|
26
|
+
args.warnings.push('Removed invalid "historian.enabled" in-memory (run doctor to persist).');
|
|
27
|
+
args.patched.historian = agent;
|
|
28
|
+
return;
|
|
29
|
+
}
|
|
30
|
+
if (disable !== true && enabled === false) {
|
|
31
|
+
agent.disable = true;
|
|
32
|
+
args.warnings.push('Migrated "dreamer.enabled=false" → "dreamer.disable=true" in-memory (run doctor to persist). This now also disables manual /ctx-dream; for manual-only remove disable and set schedule="".');
|
|
33
|
+
}
|
|
34
|
+
args.patched.dreamer = agent;
|
|
35
|
+
}
|
|
36
|
+
function migrateLegacyAgentEnabledInMemory(rawConfig, warnings) {
|
|
37
|
+
const shouldPatch = ["dreamer", "historian"].some((key) => {
|
|
38
|
+
const agent = rawConfig[key];
|
|
39
|
+
return typeof agent === "object" && agent !== null && !Array.isArray(agent) && "enabled" in agent;
|
|
40
|
+
});
|
|
41
|
+
if (!shouldPatch)
|
|
42
|
+
return rawConfig;
|
|
43
|
+
const patched = { ...rawConfig };
|
|
44
|
+
migrateLegacyEnabledForAgent({ patched, agentName: "dreamer", warnings });
|
|
45
|
+
migrateLegacyEnabledForAgent({ patched, agentName: "historian", warnings });
|
|
46
|
+
return patched;
|
|
47
|
+
}
|
|
7
48
|
|
|
8
49
|
// src/features/magic-context/dreamer/task-registry.ts
|
|
9
50
|
var CANONICAL_DREAM_TASKS = [
|
|
@@ -157,57 +198,4 @@ function compareTaskOrder(a, b) {
|
|
|
157
198
|
return CANONICAL_DREAM_TASKS.indexOf(a) - CANONICAL_DREAM_TASKS.indexOf(b);
|
|
158
199
|
}
|
|
159
200
|
|
|
160
|
-
|
|
161
|
-
function buildDreamTaskRuntimeConfigs2(dreamer, harness, language, smartNotesEnabled = true) {
|
|
162
|
-
return availableDreamTasks(smartNotesEnabled).map((task) => {
|
|
163
|
-
const resolved = resolveDreamerTaskModel2({
|
|
164
|
-
config: { dreamer },
|
|
165
|
-
harness,
|
|
166
|
-
task
|
|
167
|
-
});
|
|
168
|
-
return {
|
|
169
|
-
task,
|
|
170
|
-
schedule: resolved.schedule ?? "",
|
|
171
|
-
model: resolved.primary,
|
|
172
|
-
fallbackModels: resolved.fallbacks,
|
|
173
|
-
modelConfigKey: resolved.primary?.sourceConfigKey ?? resolved.fallbacks[0]?.sourceConfigKey,
|
|
174
|
-
thinkingLevel: harness === "pi" ? resolved.primary?.qualifier : undefined,
|
|
175
|
-
language,
|
|
176
|
-
timeoutMinutes: resolved.timeoutMinutes ?? 20,
|
|
177
|
-
tokenBudget: task in DREAM_TOOL_LOOP_TOKEN_BUDGETS ? dreamer?.tasks?.[task]?.token_budget ?? DREAM_TOOL_LOOP_TOKEN_BUDGETS[task] : undefined,
|
|
178
|
-
promotionThreshold: resolved.promotionThreshold,
|
|
179
|
-
docsMaxTokens: task === "maintain-docs" ? dreamer?.tasks?.["maintain-docs"]?.max_tokens ?? 12000 : undefined,
|
|
180
|
-
retrospectiveRecencyDays: task === "retrospective" ? dreamer?.tasks?.retrospective?.recency_days ?? 30 : undefined
|
|
181
|
-
};
|
|
182
|
-
});
|
|
183
|
-
}
|
|
184
|
-
function userMemoryCollectionEnabled2(dreamer) {
|
|
185
|
-
const schedule = dreamer?.tasks?.["review-user-memories"]?.schedule;
|
|
186
|
-
return typeof schedule === "string" && schedule.trim() !== "";
|
|
187
|
-
}
|
|
188
|
-
function userObservationCollectionEnabled2(dreamer) {
|
|
189
|
-
return userObservationsRequested2(dreamer) && userMemoryCollectionEnabled2(dreamer);
|
|
190
|
-
}
|
|
191
|
-
function userObservationsRequested2(dreamer) {
|
|
192
|
-
return isDreamerRunnable({ dreamer });
|
|
193
|
-
}
|
|
194
|
-
function userMemoryPromotionThreshold2(dreamer) {
|
|
195
|
-
return dreamer?.tasks?.["review-user-memories"]?.promotion_threshold ?? 3;
|
|
196
|
-
}
|
|
197
|
-
function dreamTaskScheduled2(dreamer, task) {
|
|
198
|
-
const schedule = dreamer?.tasks?.[task]?.schedule;
|
|
199
|
-
return typeof schedule === "string" && schedule.trim() !== "";
|
|
200
|
-
}
|
|
201
|
-
function enabledDreamTasks2(dreamer, smartNotesEnabled = true) {
|
|
202
|
-
if (!dreamer?.tasks)
|
|
203
|
-
return [];
|
|
204
|
-
return availableDreamTasks(smartNotesEnabled).filter((t) => dreamer.tasks[t]?.schedule?.trim());
|
|
205
|
-
}
|
|
206
|
-
function summarizeDreamSchedule2(dreamer, smartNotesEnabled = true) {
|
|
207
|
-
const enabled = enabledDreamTasks2(dreamer, smartNotesEnabled);
|
|
208
|
-
if (enabled.length === 0)
|
|
209
|
-
return "manual-only";
|
|
210
|
-
return enabled.map((t) => `${t} ${dreamer?.tasks[t]?.schedule}`).join(", ");
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
export { CANONICAL_DREAM_TASKS, MIN_POOL_TO_CLASSIFY, DREAM_TASK_CAPABILITIES, toolLoopDreamTasks, formatUnsupportedDreamTasks, formatDreamTaskBacklogs, processedDreamTaskItems, PROJECT_MEMORY_DREAM_TASKS, dreamTaskAllowedBySettings, leaseKindFor, leaseKeyFor, isCanonicalDreamTask, compareTaskOrder, buildDreamTaskRuntimeConfigs2, userMemoryCollectionEnabled2, userObservationCollectionEnabled2, userObservationsRequested2, userMemoryPromotionThreshold2, dreamTaskScheduled2, enabledDreamTasks2, summarizeDreamSchedule2 };
|
|
201
|
+
export { COMPACTION_ENABLED_PATH, isDreamerRunnable, isSmartNoteSurfaceAvailable, isCompactionEnabled, migrateLegacyAgentEnabledInMemory, CANONICAL_DREAM_TASKS, MIN_POOL_TO_CLASSIFY, availableDreamTasks, DREAM_TOOL_LOOP_TOKEN_BUDGETS, DREAM_TASK_CAPABILITIES, toolLoopDreamTasks, formatUnsupportedDreamTasks, formatDreamTaskBacklogs, processedDreamTaskItems, PROJECT_MEMORY_DREAM_TASKS, dreamTaskAllowedBySettings, leaseKindFor, leaseKeyFor, isCanonicalDreamTask, compareTaskOrder };
|
|
@@ -9,20 +9,20 @@ import {
|
|
|
9
9
|
} from "./server-6ash6z8z.js";
|
|
10
10
|
import {
|
|
11
11
|
estimateTokens
|
|
12
|
-
} from "./server-
|
|
12
|
+
} from "./server-qb3s0mnc.js";
|
|
13
13
|
import {
|
|
14
14
|
openCodeDbExists,
|
|
15
15
|
withReadOnlySessionDb
|
|
16
|
-
} from "./server-
|
|
16
|
+
} from "./server-5hwf5c7r.js";
|
|
17
17
|
import {
|
|
18
18
|
hasRawMessageProvider2,
|
|
19
19
|
rawMessageWorkerSource2,
|
|
20
20
|
rawMessageOffThreadRangeReader2,
|
|
21
21
|
readRawSessionMessageIdOrdinalsForRange2
|
|
22
|
-
} from "./server-
|
|
22
|
+
} from "./server-9011eteb.js";
|
|
23
23
|
import {
|
|
24
24
|
readV2ArchiveOffThread2
|
|
25
|
-
} from "./server-
|
|
25
|
+
} from "./server-bvr9xs8h.js";
|
|
26
26
|
|
|
27
27
|
// src/tools/ctx-expand/search-archive.ts
|
|
28
28
|
var archiveReadsOnThisThread = 0;
|
|
@@ -369,6 +369,17 @@ function extractToolResultBodyTokens(parts) {
|
|
|
369
369
|
}
|
|
370
370
|
return tokens;
|
|
371
371
|
}
|
|
372
|
+
function hasCompletedToolCall(parts) {
|
|
373
|
+
return parts.some((part) => {
|
|
374
|
+
if (part === null || typeof part !== "object")
|
|
375
|
+
return false;
|
|
376
|
+
const p = part;
|
|
377
|
+
if (p.type !== "tool" || typeof p.tool !== "string")
|
|
378
|
+
return false;
|
|
379
|
+
const state = p.state;
|
|
380
|
+
return !!state && typeof state === "object" && state.status === "completed";
|
|
381
|
+
});
|
|
382
|
+
}
|
|
372
383
|
function extractToolCallSummaries(parts) {
|
|
373
384
|
const summaries = [];
|
|
374
385
|
for (const part of parts) {
|
|
@@ -754,4 +765,4 @@ function mergeCommitHashes(existing, next) {
|
|
|
754
765
|
return merged;
|
|
755
766
|
}
|
|
756
767
|
|
|
757
|
-
export { textMentionsRecentCommit, OMO_INTERNAL_INITIATOR_MARKER, isSystemDirective, removeSystemReminders, removeNestedBlocks, hasMeaningfulUserText2, extractTexts2, extractToolResultBodyTokens, extractToolCallSummaries, getTokenizerNativeMemoryStats, preloadTokenizer, getTokenEstimatorFingerprint, hasTokenizerForFit, tokenCountUsesByteBound, estimateTokens, createTokenCountMemo, estimateFixedPromptTokens, normalizeText, compactRole, formatBlock, compactTextForSummary, mergeCommitHashes };
|
|
768
|
+
export { textMentionsRecentCommit, OMO_INTERNAL_INITIATOR_MARKER, isSystemDirective, removeSystemReminders, removeNestedBlocks, hasMeaningfulUserText2, extractTexts2, extractToolResultBodyTokens, hasCompletedToolCall, extractToolCallSummaries, getTokenizerNativeMemoryStats, preloadTokenizer, getTokenEstimatorFingerprint, hasTokenizerForFit, tokenCountUsesByteBound, estimateTokens, createTokenCountMemo, estimateFixedPromptTokens, normalizeText, compactRole, formatBlock, compactTextForSummary, mergeCommitHashes };
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./server-39bcszk4.js";
|
|
4
4
|
import {
|
|
5
5
|
RAW_MESSAGE_TYPES2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-vtgeyhq6.js";
|
|
7
7
|
import {
|
|
8
8
|
markHostUnservedRow
|
|
9
9
|
} from "./server-s9x93tfs.js";
|
|
@@ -98,6 +98,8 @@ function hostMediaFromEncoded(value) {
|
|
|
98
98
|
return "bytes media has no JSON codec payload";
|
|
99
99
|
encoded.source.data = new Uint8Array(Buffer.from(encoded.source.data, "base64"));
|
|
100
100
|
}
|
|
101
|
+
if (encoded.source.type === "base64" && typeof encoded.source.data !== "string")
|
|
102
|
+
return "base64 media has no payload";
|
|
101
103
|
if (!["bytes", "base64", "url", "ref"].includes(String(encoded.source.type)))
|
|
102
104
|
return "unknown Media.Asset source";
|
|
103
105
|
let first = "no Media.Asset seen in this process";
|
|
@@ -223,13 +225,80 @@ function storageNoticeHasNewInput(messages, idleSeq, sequenceOf) {
|
|
|
223
225
|
|
|
224
226
|
// src/v2/fold/restore.ts
|
|
225
227
|
var HOST_RESTORE_MEDIA = { asset: hostMediaAsset, unavailable: () => {} };
|
|
228
|
+
function readerRestoreMedia(reader, unavailable = () => {}) {
|
|
229
|
+
return { asset: hostMediaAsset, unavailable, blob: (hash) => reader.mediaBlob(hash) };
|
|
230
|
+
}
|
|
226
231
|
function unavailableAttachmentNote(name, mediaType) {
|
|
227
232
|
return `[Attachment ${name ? `"${name}" ` : ""}(${mediaType}) is not available in this restored history]`;
|
|
228
233
|
}
|
|
234
|
+
function hostMissingMediaText(mediaType, name) {
|
|
235
|
+
return `[media unavailable: ${name === undefined ? mediaType : `${name} (${mediaType})`}]`;
|
|
236
|
+
}
|
|
237
|
+
var BLOB_HASH = /^[0-9a-f]{64}$/;
|
|
238
|
+
function readBlob(uri, media) {
|
|
239
|
+
const hash = uri.slice("media:".length);
|
|
240
|
+
if (!BLOB_HASH.test(hash))
|
|
241
|
+
return { kind: "unavailable", reason: "malformed media blob reference" };
|
|
242
|
+
if (!media.blob)
|
|
243
|
+
return { kind: "unavailable", reason: "payload is stored in the host's media blob table" };
|
|
244
|
+
const data = media.blob(hash);
|
|
245
|
+
if (data === undefined)
|
|
246
|
+
return { kind: "unavailable", reason: "the host's store has no media blob table" };
|
|
247
|
+
return data === null ? { kind: "missing" } : { kind: "found", data };
|
|
248
|
+
}
|
|
249
|
+
function withPayload(file, media) {
|
|
250
|
+
if (typeof file.data === "string")
|
|
251
|
+
return { kind: "payload", file };
|
|
252
|
+
if (!file.uri?.startsWith("media:"))
|
|
253
|
+
return { kind: "unavailable", reason: "attachment has no payload" };
|
|
254
|
+
const read = readBlob(file.uri, media);
|
|
255
|
+
if (read.kind === "unavailable")
|
|
256
|
+
return read;
|
|
257
|
+
const { uri: _uri, ...inline } = file;
|
|
258
|
+
if (read.kind === "found")
|
|
259
|
+
return { kind: "payload", file: { ...inline, data: read.data } };
|
|
260
|
+
return {
|
|
261
|
+
kind: "payload",
|
|
262
|
+
file: {
|
|
263
|
+
...inline,
|
|
264
|
+
data: Buffer.from(hostMissingMediaText(file.mime, file.name)).toString("base64"),
|
|
265
|
+
mime: "text/plain"
|
|
266
|
+
}
|
|
267
|
+
};
|
|
268
|
+
}
|
|
269
|
+
var isBlobFile = (entry) => typeof entry === "object" && entry !== null && entry.type === "file" && typeof entry.uri === "string" && entry.uri.startsWith("media:");
|
|
270
|
+
function toolContentWithPayloads(content, rowID, media) {
|
|
271
|
+
if (!Array.isArray(content) || !content.some(isBlobFile))
|
|
272
|
+
return content;
|
|
273
|
+
return content.map((entry) => {
|
|
274
|
+
if (!isBlobFile(entry))
|
|
275
|
+
return entry;
|
|
276
|
+
const mime = String(entry.mime);
|
|
277
|
+
const name = typeof entry.name === "string" ? entry.name : undefined;
|
|
278
|
+
const read = readBlob(entry.uri, media);
|
|
279
|
+
if (read.kind === "missing")
|
|
280
|
+
return { type: "text", text: hostMissingMediaText(mime, name) };
|
|
281
|
+
if (read.kind === "found")
|
|
282
|
+
return { ...entry, uri: `data:${mime};base64,${read.data}` };
|
|
283
|
+
media.unavailable({ rowID, name, mediaType: mime, reason: read.reason });
|
|
284
|
+
return { type: "text", text: unavailableAttachmentNote(name, mime) };
|
|
285
|
+
});
|
|
286
|
+
}
|
|
229
287
|
var imageMimes = new Set(["image/png", "image/jpeg", "image/gif", "image/webp"]);
|
|
230
288
|
function attachmentParts(files, rowID, media) {
|
|
231
289
|
const seen = new Map;
|
|
232
|
-
return files.flatMap((
|
|
290
|
+
return files.flatMap((stored) => {
|
|
291
|
+
const result = withPayload(stored, media);
|
|
292
|
+
if (result.kind === "unavailable") {
|
|
293
|
+
media.unavailable({
|
|
294
|
+
rowID,
|
|
295
|
+
name: stored.name,
|
|
296
|
+
mediaType: stored.mime,
|
|
297
|
+
reason: result.reason
|
|
298
|
+
});
|
|
299
|
+
return [{ type: "text", text: unavailableAttachmentNote(stored.name, stored.mime) }];
|
|
300
|
+
}
|
|
301
|
+
const file = result.file;
|
|
233
302
|
if (imageMimes.has(file.mime) && file.source.type === "inline" && file.mention?.text) {
|
|
234
303
|
const key = JSON.stringify([
|
|
235
304
|
file.mime,
|
|
@@ -238,9 +307,10 @@ function attachmentParts(files, rowID, media) {
|
|
|
238
307
|
file.mention.text
|
|
239
308
|
]);
|
|
240
309
|
const payloads = seen.get(key) ?? new Set;
|
|
241
|
-
|
|
310
|
+
const payload = typeof stored.data === "string" ? stored.data : String(stored.uri);
|
|
311
|
+
if (payloads.has(payload))
|
|
242
312
|
return [];
|
|
243
|
-
payloads.add(
|
|
313
|
+
payloads.add(payload);
|
|
244
314
|
seen.set(key, payloads);
|
|
245
315
|
}
|
|
246
316
|
const uri = file.source.type === "uri" ? file.source.uri : undefined;
|
|
@@ -393,7 +463,7 @@ ${data.output?.output ?? ""}`
|
|
|
393
463
|
});
|
|
394
464
|
if (!completed)
|
|
395
465
|
continue;
|
|
396
|
-
const toolContent = state.content ?? [];
|
|
466
|
+
const toolContent = toolContentWithPayloads(state.content ?? [], row.id, media);
|
|
397
467
|
const single = toolContent.length === 1 ? toolContent[0] : undefined;
|
|
398
468
|
const result = {
|
|
399
469
|
type: "tool-result",
|
|
@@ -688,4 +758,4 @@ function createV2RawMessageProvider2(reader, sessionID) {
|
|
|
688
758
|
};
|
|
689
759
|
}
|
|
690
760
|
|
|
691
|
-
export { rememberHostMedia, hostMediaAsset, hostMediaFromEncoded, isToolError, toolErrorText, toolStateContent, STORAGE_NOTICE_PREFIX, formatStorageRefusalNotice, formatStorageRecoveryNotice, isCopiedStorageNotice, hasStorageNoticeShape, dropStorageNotices, storageNoticeHasNewInput,
|
|
761
|
+
export { rememberHostMedia, hostMediaAsset, hostMediaFromEncoded, isToolError, toolErrorText, toolStateContent, STORAGE_NOTICE_PREFIX, formatStorageRefusalNotice, formatStorageRecoveryNotice, isCopiedStorageNotice, hasStorageNoticeShape, dropStorageNotices, storageNoticeHasNewInput, readerRestoreMedia, restoreRow, rawMessagePage2, readV2MessageRange2, iterateV2MessageRange2, servedBoundaryRow2, resolveV2BoundaryUserMessage2, readAllV2RawMessagesForConversion2, readV2RawMessagePagesForConversion2, createV2RawMessageReader2, createV2RawMessageProvider2 };
|
|
@@ -4,6 +4,12 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
setOutputReserveConfig
|
|
6
6
|
} from "./server-96nm9vk4.js";
|
|
7
|
+
import {
|
|
8
|
+
isCompactionEnabled,
|
|
9
|
+
migrateLegacyAgentEnabledInMemory,
|
|
10
|
+
CANONICAL_DREAM_TASKS,
|
|
11
|
+
isCanonicalDreamTask
|
|
12
|
+
} from "./server-n5wn7d9b.js";
|
|
7
13
|
import {
|
|
8
14
|
DEFAULT_EXECUTE_THRESHOLD_PERCENTAGE,
|
|
9
15
|
PROTECTED_TOKENS_MIN,
|
|
@@ -12,10 +18,6 @@ import {
|
|
|
12
18
|
ConfigProfilesSchema,
|
|
13
19
|
MagicContextConfigSchema
|
|
14
20
|
} from "./server-rz6g5xne.js";
|
|
15
|
-
import {
|
|
16
|
-
isCompactionEnabled,
|
|
17
|
-
migrateLegacyAgentEnabledInMemory
|
|
18
|
-
} from "./server-0s95v3en.js";
|
|
19
21
|
|
|
20
22
|
// src/config/index.ts
|
|
21
23
|
import { existsSync as existsSync4 } from "node:fs";
|
|
@@ -1886,6 +1888,30 @@ function windowToCron(schedule) {
|
|
|
1886
1888
|
function asObject(value) {
|
|
1887
1889
|
return typeof value === "object" && value !== null && !Array.isArray(value) ? value : undefined;
|
|
1888
1890
|
}
|
|
1891
|
+
function unknownDreamTaskWarnings(config, authoredText) {
|
|
1892
|
+
const tasks = asObject(asObject(config.dreamer)?.tasks);
|
|
1893
|
+
if (!tasks)
|
|
1894
|
+
return [];
|
|
1895
|
+
const unknown = Object.keys(tasks).filter((key) => !isCanonicalDreamTask(key) && key !== "key-files" && !RETIRED_OBJECT_MEMORY_TASKS.includes(key));
|
|
1896
|
+
if (unknown.length === 0)
|
|
1897
|
+
return [];
|
|
1898
|
+
const authored = asObject(parseJsoncRecovering(authoredText).value);
|
|
1899
|
+
const authoredTasks = asObject(asObject(authored?.dreamer)?.tasks);
|
|
1900
|
+
const valid = `Valid task names: ${CANONICAL_DREAM_TASKS.join(", ")}.`;
|
|
1901
|
+
const warnings = [];
|
|
1902
|
+
let expandedUnknown = false;
|
|
1903
|
+
for (const name of unknown) {
|
|
1904
|
+
if (authoredTasks && Object.hasOwn(authoredTasks, name)) {
|
|
1905
|
+
warnings.push(`${JSON.stringify(`dreamer.tasks.${name}`)}: unknown task name, ignoring. ${valid}`);
|
|
1906
|
+
} else {
|
|
1907
|
+
expandedUnknown = true;
|
|
1908
|
+
}
|
|
1909
|
+
}
|
|
1910
|
+
if (expandedUnknown) {
|
|
1911
|
+
warnings.push(`a nightly task name from variable expansion is unknown, ignoring. ${valid}`);
|
|
1912
|
+
}
|
|
1913
|
+
return warnings;
|
|
1914
|
+
}
|
|
1889
1915
|
function cronIntervalScore(schedule) {
|
|
1890
1916
|
const parts = schedule.trim().split(/\s+/);
|
|
1891
1917
|
if (parts.length !== 5)
|
|
@@ -3443,7 +3469,8 @@ function loadConfigFileDetailed(configPath, source) {
|
|
|
3443
3469
|
...parseFailures.map((failure) => failure.warning),
|
|
3444
3470
|
...rawWarnings.map((warning) => `${configPath}: ${warning}`),
|
|
3445
3471
|
...substituted.warnings.map((warning) => `${configPath}: ${warning}`),
|
|
3446
|
-
...unsafeKeyWarnings.map((warning) => `${configPath}: ${warning}`)
|
|
3472
|
+
...unsafeKeyWarnings.map((warning) => `${configPath}: ${warning}`),
|
|
3473
|
+
...unknownDreamTaskWarnings(config, rawText).map((warning) => `${configPath}: ${warning}`)
|
|
3447
3474
|
],
|
|
3448
3475
|
parseFailures,
|
|
3449
3476
|
warningDetails: parseFailures,
|
|
@@ -345,6 +345,17 @@ class V2StoreReader2 {
|
|
|
345
345
|
};
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
+
mediaBlob(hash) {
|
|
349
|
+
this.connection.blobTable ??= Boolean(this.prepare("SELECT 1 FROM sqlite_master WHERE type = 'table' AND name = 'blob'").get());
|
|
350
|
+
if (!this.connection.blobTable)
|
|
351
|
+
return;
|
|
352
|
+
const row = this.prepare("SELECT data FROM blob WHERE hash = ?").get(hash);
|
|
353
|
+
if (!row)
|
|
354
|
+
return null;
|
|
355
|
+
if (!(row.data instanceof Uint8Array))
|
|
356
|
+
throw new Error(`media blob ${hash} is not stored as bytes`);
|
|
357
|
+
return Buffer.from(row.data.buffer, row.data.byteOffset, row.data.byteLength).toString("base64");
|
|
358
|
+
}
|
|
348
359
|
close() {
|
|
349
360
|
if (this.closed)
|
|
350
361
|
return;
|
|
@@ -364,10 +375,11 @@ class V2StoreReader2 {
|
|
|
364
375
|
throw new Error("Invalid seq cursor");
|
|
365
376
|
if (options.through !== undefined && !Number.isSafeInteger(options.through))
|
|
366
377
|
throw new Error("Invalid seq upper bound");
|
|
367
|
-
const
|
|
378
|
+
const seq = options.type && options.preferTypeIndex ? "+seq" : "seq";
|
|
379
|
+
const predicates = ["session_id = ?", `${seq} > ?`];
|
|
368
380
|
const parameters = [sessionID, after];
|
|
369
381
|
if (options.through !== undefined) {
|
|
370
|
-
predicates.push(
|
|
382
|
+
predicates.push(`${seq} <= ?`);
|
|
371
383
|
parameters.push(options.through);
|
|
372
384
|
}
|
|
373
385
|
if (options.type) {
|
|
@@ -713,6 +725,17 @@ class V2StoreReader2 {
|
|
|
713
725
|
const row = this.prepare("SELECT seq FROM session_message WHERE session_id = ? AND id = ? LIMIT 1").get(sessionID, id);
|
|
714
726
|
return typeof row?.seq === "number" ? row.seq : undefined;
|
|
715
727
|
}
|
|
728
|
+
sequencesForIds(sessionID, ids) {
|
|
729
|
+
const sequences = new Map;
|
|
730
|
+
for (let offset = 0;offset < ids.length; offset += 500) {
|
|
731
|
+
const batch = ids.slice(offset, offset + 500);
|
|
732
|
+
const rows = this.prepare(`SELECT id, seq FROM session_message
|
|
733
|
+
WHERE +session_id = ? AND id IN (${batch.map(() => "?").join(",")})`).all(sessionID, ...batch);
|
|
734
|
+
for (const row of rows)
|
|
735
|
+
sequences.set(row.id, row.seq);
|
|
736
|
+
}
|
|
737
|
+
return sequences;
|
|
738
|
+
}
|
|
716
739
|
syntheticMessageIDs(sessionID) {
|
|
717
740
|
const rows = this.prepare("SELECT id FROM session_message WHERE session_id = ? AND type = 'synthetic'").all(sessionID);
|
|
718
741
|
return new Set(rows.map((row) => row.id));
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
estimateTokens
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-qb3s0mnc.js";
|
|
4
4
|
import {
|
|
5
5
|
getTagById2
|
|
6
|
-
} from "./server-
|
|
6
|
+
} from "./server-d4trxrj3.js";
|
|
7
7
|
import {
|
|
8
8
|
expandToolPart,
|
|
9
9
|
visitRawSessionMessages2,
|
|
10
10
|
readRawSessionMessageById2
|
|
11
|
-
} from "./server-
|
|
11
|
+
} from "./server-9011eteb.js";
|
|
12
12
|
|
|
13
13
|
// src/tools/ctx-expand/render.ts
|
|
14
14
|
import { createHash } from "node:crypto";
|
package/dist/v2/server.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPluginConfigDetailed
|
|
3
|
-
} from "./server-
|
|
3
|
+
} from "./server-vsqmkvxc.js";
|
|
4
4
|
import {
|
|
5
5
|
setHarness2
|
|
6
6
|
} from "./server-pavzsdc6.js";
|
|
@@ -16,6 +16,7 @@ import"./server-z4p0ry94.js";
|
|
|
16
16
|
import"./server-jdfe07mp.js";
|
|
17
17
|
import"./server-0tv6kytx.js";
|
|
18
18
|
import"./server-96nm9vk4.js";
|
|
19
|
+
import"./server-n5wn7d9b.js";
|
|
19
20
|
import {
|
|
20
21
|
string,
|
|
21
22
|
unknown,
|
|
@@ -7877,7 +7878,7 @@ var require_src2 = __commonJS(function(exports, module) {
|
|
|
7877
7878
|
// package.json
|
|
7878
7879
|
var package_default = {
|
|
7879
7880
|
name: "@cortexkit/opencode-magic-context",
|
|
7880
|
-
version: "0.49.
|
|
7881
|
+
version: "0.49.92",
|
|
7881
7882
|
type: "module",
|
|
7882
7883
|
description: "OpenCode plugin for Magic Context — cross-session memory and context management",
|
|
7883
7884
|
main: "dist/index.js",
|
|
@@ -8198,7 +8199,7 @@ async function setup(context) {
|
|
|
8198
8199
|
if (claimStorageBackupWarningCheck() && isMagicContextStorageOutsideEngram(storageDir)) {
|
|
8199
8200
|
log2(`[magic-context] Magic Context storage is at ${storageDir}, outside the folder Engram backs up (~/.local/share/cortexkit/magic-context). It is not included in CortexKit backups.`);
|
|
8200
8201
|
}
|
|
8201
|
-
const { registerContext } = await import("./context-
|
|
8202
|
+
const { registerContext } = await import("./context-qqbpzk1q.js");
|
|
8202
8203
|
setHarness2("opencode2");
|
|
8203
8204
|
bindStaleBuildNotice({}, import.meta.url, "opencode2");
|
|
8204
8205
|
const duties = await registerContext(context);
|
|
@@ -64,12 +64,12 @@ import {
|
|
|
64
64
|
adoptNullOwnerToolTag2,
|
|
65
65
|
getCandidateToolOwners2,
|
|
66
66
|
pickNearestPriorOwner2
|
|
67
|
-
} from "./server-
|
|
67
|
+
} from "./server-d4trxrj3.js";
|
|
68
68
|
import"./server-1zx87sdm.js";
|
|
69
69
|
import"./server-rz6g5xne.js";
|
|
70
|
-
import"./server-
|
|
70
|
+
import"./server-qntmqaca.js";
|
|
71
71
|
import"./server-5sbsnpkn.js";
|
|
72
|
-
import"./server-
|
|
72
|
+
import"./server-qb3s0mnc.js";
|
|
73
73
|
import"./server-gzy5w8ya.js";
|
|
74
74
|
import"./server-j8376q08.js";
|
|
75
75
|
import"./server-pavzsdc6.js";
|
|
@@ -8,8 +8,8 @@ import {
|
|
|
8
8
|
readV2RawMessagePagesForConversion2,
|
|
9
9
|
createV2RawMessageReader2,
|
|
10
10
|
createV2RawMessageProvider2
|
|
11
|
-
} from "./server-
|
|
12
|
-
import"./server-
|
|
11
|
+
} from "./server-rkj44mez.js";
|
|
12
|
+
import"./server-vtgeyhq6.js";
|
|
13
13
|
import"./server-39bcszk4.js";
|
|
14
14
|
import"./server-2ra6pwf3.js";
|
|
15
15
|
import"./server-gzy5w8ya.js";
|
|
@@ -118,6 +118,8 @@ interface ReaderConnection {
|
|
|
118
118
|
ordinalSequences: Map<string, number[]>;
|
|
119
119
|
/** Whether this database has OpenCode's `session_part` table (2.2.2 and later). */
|
|
120
120
|
partTable?: boolean;
|
|
121
|
+
/** Whether this database has OpenCode's media `blob` table (2.3 and later). */
|
|
122
|
+
blobTable?: boolean;
|
|
121
123
|
}
|
|
122
124
|
/** Boot-scoped read-only handles. Each lease still closes in the caller's finally block.
|
|
123
125
|
* Statements and revision-checked ordinal anchors are cached; WAL commits invalidate anchors.
|
|
@@ -207,6 +209,20 @@ export declare class V2StoreReader {
|
|
|
207
209
|
* they did before.
|
|
208
210
|
*/
|
|
209
211
|
private withParts;
|
|
212
|
+
/**
|
|
213
|
+
* The bytes of an attachment OpenCode stored in its media `blob` table, base64-encoded
|
|
214
|
+
* the way the host's own history loader encodes them. With `experimental.media_blob`
|
|
215
|
+
* (OpenCode 2.3 and later) a message row keeps only `uri: "media:<hash>"` for an
|
|
216
|
+
* attachment, and the host reads the bytes back by hash before it renders the row.
|
|
217
|
+
*
|
|
218
|
+
* Returns null when the table has no row for the hash, and undefined when this
|
|
219
|
+
* database has no blob table at all (OpenCode 2.0 and 2.1, which never write such a
|
|
220
|
+
* reference). Whether the table exists is checked once per connection; the row itself
|
|
221
|
+
* is read from this store on every call, so the answer is always what the host would
|
|
222
|
+
* read now. Read errors propagate: a store that cannot be read fails the pass like any
|
|
223
|
+
* other read of it.
|
|
224
|
+
*/
|
|
225
|
+
mediaBlob(hash: string): string | null | undefined;
|
|
210
226
|
close(): void;
|
|
211
227
|
/** Exclusive cursor, ascending seq. IDs are not chronological in the v2 store. */
|
|
212
228
|
page(sessionID: string, options?: {
|
|
@@ -214,6 +230,7 @@ export declare class V2StoreReader {
|
|
|
214
230
|
through?: number;
|
|
215
231
|
limit?: number;
|
|
216
232
|
type?: MessageType;
|
|
233
|
+
preferTypeIndex?: boolean;
|
|
217
234
|
}): {
|
|
218
235
|
rows: StoreRow[];
|
|
219
236
|
cursor: number | undefined;
|
|
@@ -322,6 +339,7 @@ export declare class V2StoreReader {
|
|
|
322
339
|
*/
|
|
323
340
|
instructionRowsThrough(sessionID: string, throughSeq: number): StoreRow[];
|
|
324
341
|
sequenceForId(sessionID: string, id: string | null | undefined): number | undefined;
|
|
342
|
+
sequencesForIds(sessionID: string, ids: readonly string[]): Map<string, number>;
|
|
325
343
|
/** Native synthetics are user-shaped on the wire; their store kind is unambiguous. */
|
|
326
344
|
syntheticMessageIDs(sessionID: string): Set<string>;
|
|
327
345
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"store-reader.d.ts","sourceRoot":"","sources":["../../src/v2/store-reader.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAChD,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,yCAAyC,CAAC;AAOvF,OAAO,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAE5C,yFAAyF;AACzF,wBAAgB,sBAAsB,CAClC,OAAO,EAAE,MAAM,EACf,GAAG,GAAE,MAAM,CAAC,UAAwB,GACrC,MAAM,CAER;AAED,0EAA0E;AAC1E,wBAAgB,cAAc,CAC1B,QAAQ,EAAE,MAAM,EAChB,OAAO,SAAW,EAClB,GAAG,G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,CAAC,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,EAAE;IAU5E,eAAe,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,WAAW,CAAC,GAAG,SAAS;IAUrE,UAAU,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAC,GAAG,SAAS;IAU3D,8EAA8E;IAC9E,MAAM,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,EAAE;IAWrC;;;;OAIG;IACH,OAAO,CAAC,SAAS,EAAE,MAAM,GAAG,QAAQ,EAAE;IAItC,OAAO,CAAC,GAAG;CAcd"}
|
|
@@ -7,8 +7,9 @@ import {
|
|
|
7
7
|
dreamTaskScheduled2,
|
|
8
8
|
enabledDreamTasks2,
|
|
9
9
|
summarizeDreamSchedule2
|
|
10
|
-
} from "./server-
|
|
10
|
+
} from "./server-3gz9k20t.js";
|
|
11
11
|
import"./server-5kym00ag.js";
|
|
12
|
+
import"./server-n5wn7d9b.js";
|
|
12
13
|
export {
|
|
13
14
|
buildDreamTaskRuntimeConfigs2 as buildDreamTaskRuntimeConfigs,
|
|
14
15
|
dreamTaskScheduled2 as dreamTaskScheduled,
|