@cortexkit/opencode-magic-context 0.49.55 → 0.49.57
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/{context-vx5gw5h2.js → context-a617pcqe.js} +210 -57
- package/dist/features/magic-context/mural/render-mural.d.ts +17 -0
- package/dist/features/magic-context/mural/render-mural.d.ts.map +1 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts +2 -1
- package/dist/features/magic-context/mural/render-trigger.d.ts.map +1 -1
- package/dist/features/magic-context/mural/resolve-mural.d.ts +8 -2
- package/dist/features/magic-context/mural/resolve-mural.d.ts.map +1 -1
- package/dist/features/magic-context/pi-identity-fold-guards.d.ts +38 -0
- package/dist/features/magic-context/pi-identity-fold-guards.d.ts.map +1 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts +7 -0
- package/dist/features/magic-context/storage-historian-runs.d.ts.map +1 -1
- package/dist/features/magic-context/storage-session-tables.d.ts.map +1 -1
- package/dist/hooks/magic-context/command-handler.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 +9 -0
- package/dist/hooks/magic-context/compartment-runner-types.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts +7 -1
- package/dist/hooks/magic-context/compartment-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-failure-report.d.ts +112 -0
- package/dist/hooks/magic-context/historian-failure-report.d.ts.map +1 -0
- package/dist/hooks/magic-context/hook-handlers.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +11 -1
- 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-eyr425dx.js → index-0r2jk2na.js} +2 -2
- package/dist/{index-a3n2dczz.js → index-1wsb0e8h.js} +1 -1
- package/dist/{index-xj5bap1r.js → index-3600gm9z.js} +268 -21
- package/dist/{index-tx8nfw85.js → index-bev3zks1.js} +25 -1
- package/dist/{index-567xsm72.js → index-pdnan1e3.js} +3 -3
- package/dist/{index-9n6mdfqy.js → index-wpcjxzrm.js} +53 -27
- package/dist/{index-yamsmkmh.js → index-x8e50d8f.js} +2 -2
- package/dist/{index-xvtjwhm6.js → index-zyanqxtc.js} +2 -2
- package/dist/index.js +11 -11
- package/dist/raw-ordinal-warmup-worker.js +2 -2
- package/dist/{recomp-orchestrator-wbm4kpq9.js → recomp-orchestrator-xwsjrqcs.js} +3 -3
- package/dist/{render-73vrt30h.js → render-22ebrmep.js} +1 -1
- package/dist/{search-archive-ew4c3bsw.js → search-archive-bqqf5p7f.js} +2 -2
- package/dist/{transform-postprocess-phase-mt4dcbhd.js → transform-postprocess-phase-nejydt3q.js} +3 -3
- package/dist/v2/{context-13er940g.js → context-4gxr2xd4.js} +240 -67
- package/dist/v2/hidden-child-native.d.ts +10 -13
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +2 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-child-sweep.d.ts +39 -0
- package/dist/v2/hidden-child-sweep.d.ts.map +1 -0
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/usage-persist.d.ts +7 -1
- package/dist/v2/hooks/usage-persist.d.ts.map +1 -1
- package/dist/v2/raw-ordinal-warmup-worker.js +2 -2
- package/dist/v2/{recomp-orchestrator-cdkfynz4.js → recomp-orchestrator-1de5c0zr.js} +2 -2
- package/dist/v2/{render-a7j6fqbd.js → render-g44ksejs.js} +1 -1
- package/dist/v2/{search-archive-3a36887a.js → search-archive-5ycchnyp.js} +2 -2
- package/dist/v2/{server-96g41nad.js → server-dqwx9pdh.js} +268 -21
- package/dist/v2/{server-79tbtk5w.js → server-r7nj8ga0.js} +1 -1
- package/dist/v2/{server-578pc4tf.js → server-t5c8awdm.js} +2 -2
- package/dist/v2/{server-7rmf6a57.js → server-v57wr0r9.js} +25 -1
- package/dist/v2/server.js +2 -2
- package/dist/v2/{v2-archive-reader-jm3d7ccj.js → v2-archive-reader-tgydjgfy.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-xnqq81c4.js → wrapup-orchestrator-3871zj7c.js} +2 -2
- package/dist/{v2-archive-reader-9bbfh131.js → v2-archive-reader-2czwvyc9.js} +1 -1
- package/dist/{wrapup-orchestrator-svhee0fn.js → wrapup-orchestrator-m1yzmgq4.js} +4 -4
- package/package.json +1 -1
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
rebaseSessionCoordinatesAsync,
|
|
39
39
|
resolveOpenCodeProtectedTailBoundary,
|
|
40
40
|
getActiveCompartmentRun
|
|
41
|
-
} from "./index-
|
|
41
|
+
} from "./index-3600gm9z.js";
|
|
42
42
|
import"./index-sd3egckz.js";
|
|
43
43
|
import {
|
|
44
44
|
getHarness2
|
|
@@ -129,7 +129,7 @@ import {
|
|
|
129
129
|
applyJsonSchemaParameterDescriptions,
|
|
130
130
|
MagicContextRpcServer,
|
|
131
131
|
subagentTemperature
|
|
132
|
-
} from "./index-
|
|
132
|
+
} from "./index-wpcjxzrm.js";
|
|
133
133
|
import {
|
|
134
134
|
resolveHistorianModel2
|
|
135
135
|
} from "./index-5kym00ag.js";
|
|
@@ -173,6 +173,7 @@ import {
|
|
|
173
173
|
getOverflowState,
|
|
174
174
|
recordOverflowDetected,
|
|
175
175
|
recordDetectedContextLimit,
|
|
176
|
+
clearDetectedContextLimit,
|
|
176
177
|
getPersistedCompactionMarkerState,
|
|
177
178
|
setPersistedCompactionMarkerState,
|
|
178
179
|
getPendingPiCompactionMarkerState,
|
|
@@ -260,7 +261,7 @@ import {
|
|
|
260
261
|
getSlot,
|
|
261
262
|
dropSlot,
|
|
262
263
|
copySessionStateForClone
|
|
263
|
-
} from "./index-
|
|
264
|
+
} from "./index-bev3zks1.js";
|
|
264
265
|
import {
|
|
265
266
|
startBootDeadline,
|
|
266
267
|
BOOT_SQLITE_BUSY_TIMEOUT_MS,
|
|
@@ -291,7 +292,7 @@ import {
|
|
|
291
292
|
servedHeadChanged,
|
|
292
293
|
noteHostCheckpointCommit,
|
|
293
294
|
isSyntheticHeadMessage2
|
|
294
|
-
} from "./index-
|
|
295
|
+
} from "./index-0r2jk2na.js";
|
|
295
296
|
import"./index-90z05d0p.js";
|
|
296
297
|
import"./index-qt1qqasc.js";
|
|
297
298
|
import {
|
|
@@ -313,7 +314,7 @@ import {
|
|
|
313
314
|
import"./index-gz001bx7.js";
|
|
314
315
|
import"./index-r9agn061.js";
|
|
315
316
|
import"./index-by14cr73.js";
|
|
316
|
-
import"./index-
|
|
317
|
+
import"./index-x8e50d8f.js";
|
|
317
318
|
import"./index-cd3vp8xa.js";
|
|
318
319
|
import {
|
|
319
320
|
detectConflicts
|
|
@@ -338,8 +339,8 @@ import {
|
|
|
338
339
|
import"./index-fmsr7v69.js";
|
|
339
340
|
import"./index-5gqszjq9.js";
|
|
340
341
|
import"./index-52x68mj4.js";
|
|
341
|
-
import"./index-
|
|
342
|
-
import"./index-
|
|
342
|
+
import"./index-zyanqxtc.js";
|
|
343
|
+
import"./index-1wsb0e8h.js";
|
|
343
344
|
import {
|
|
344
345
|
isDreamerRunnable,
|
|
345
346
|
isSmartNoteSurfaceAvailable,
|
|
@@ -352,6 +353,9 @@ import {
|
|
|
352
353
|
markCoveredInstructionRow,
|
|
353
354
|
isCoveredInstructionRow
|
|
354
355
|
} from "./index-s9x93tfs.js";
|
|
356
|
+
import {
|
|
357
|
+
piModelRefToCanonical
|
|
358
|
+
} from "./index-avwt563y.js";
|
|
355
359
|
import {
|
|
356
360
|
sameProjectDirectory
|
|
357
361
|
} from "./index-knvkbfvh.js";
|
|
@@ -3670,7 +3674,104 @@ function errorText(value) {
|
|
|
3670
3674
|
}
|
|
3671
3675
|
}
|
|
3672
3676
|
|
|
3677
|
+
// src/v2/hidden-child-sweep.ts
|
|
3678
|
+
var PREFIX = "hidden_child:";
|
|
3679
|
+
var HIDDEN_CHILD_MAX_AGE_MS = 60 * 60 * 1000;
|
|
3680
|
+
var HIDDEN_CHILD_SWEEP_INTERVAL_MS = 30 * 60 * 1000;
|
|
3681
|
+
var HIDDEN_CHILD_DEADLINE_GRACE_MS = 10 * 60 * 1000;
|
|
3682
|
+
var SWEEP_REMOVAL_LIMIT = 50;
|
|
3683
|
+
var SWEEP_BUDGET_MS = 30000;
|
|
3684
|
+
function recordHiddenChild(db, child) {
|
|
3685
|
+
db.prepare("INSERT INTO schema_migrations_meta (key, value) VALUES (?, ?)").run(`${PREFIX}${child.id}`, JSON.stringify(child));
|
|
3686
|
+
}
|
|
3687
|
+
function forgetHiddenChild(db, id) {
|
|
3688
|
+
db.prepare("DELETE FROM schema_migrations_meta WHERE key = ?").run(`${PREFIX}${id}`);
|
|
3689
|
+
}
|
|
3690
|
+
function extendHiddenChildDeadline(db, id, deadlineAt) {
|
|
3691
|
+
db.prepare(`UPDATE schema_migrations_meta
|
|
3692
|
+
SET value = json_set(value, '$.deadline_at', MAX(COALESCE(json_extract(value, '$.deadline_at'), 0), ?))
|
|
3693
|
+
WHERE key = ?`).run(deadlineAt, `${PREFIX}${id}`);
|
|
3694
|
+
}
|
|
3695
|
+
function markHiddenChildRemovalFailed(db, id, failedAt) {
|
|
3696
|
+
db.prepare("UPDATE schema_migrations_meta SET value = json_set(value, '$.failed_at', ?) WHERE key = ?").run(failedAt, `${PREFIX}${id}`);
|
|
3697
|
+
}
|
|
3698
|
+
function createHiddenChildSweeper(remove, log, options = {}) {
|
|
3699
|
+
let stopped = false;
|
|
3700
|
+
let running;
|
|
3701
|
+
return {
|
|
3702
|
+
start(db) {
|
|
3703
|
+
if (stopped || running)
|
|
3704
|
+
return;
|
|
3705
|
+
running = sweepHiddenChildren(db, remove, log, {
|
|
3706
|
+
...options,
|
|
3707
|
+
shouldStop: () => stopped || options.shouldStop?.() === true
|
|
3708
|
+
}).catch((error) => log("[magic-context] hidden-child sweep failed", error)).finally(() => {
|
|
3709
|
+
running = undefined;
|
|
3710
|
+
});
|
|
3711
|
+
},
|
|
3712
|
+
async dispose() {
|
|
3713
|
+
stopped = true;
|
|
3714
|
+
await running;
|
|
3715
|
+
}
|
|
3716
|
+
};
|
|
3717
|
+
}
|
|
3718
|
+
async function sweepHiddenChildren(db, remove, note, options = {}) {
|
|
3719
|
+
const now = options.now ?? Date.now();
|
|
3720
|
+
const clock = options.clock ?? (() => performance.now());
|
|
3721
|
+
const passDeadline = clock() + (options.budgetMs ?? SWEEP_BUDGET_MS);
|
|
3722
|
+
let remaining = options.limit ?? SWEEP_REMOVAL_LIMIT;
|
|
3723
|
+
const rows = db.prepare(`SELECT key, value FROM (
|
|
3724
|
+
SELECT key, value,
|
|
3725
|
+
CASE WHEN json_valid(value) THEN json_extract(value, '$.failed_at') END AS failed_at,
|
|
3726
|
+
CASE WHEN json_valid(value) THEN json_extract(value, '$.created_at') END AS created_at
|
|
3727
|
+
FROM schema_migrations_meta WHERE key GLOB ?
|
|
3728
|
+
)
|
|
3729
|
+
ORDER BY failed_at IS NOT NULL, COALESCE(failed_at, created_at), created_at, key`).all(`${PREFIX}*`);
|
|
3730
|
+
for (const row of rows) {
|
|
3731
|
+
if (remaining <= 0 || clock() >= passDeadline || options.shouldStop?.())
|
|
3732
|
+
break;
|
|
3733
|
+
let timer;
|
|
3734
|
+
try {
|
|
3735
|
+
const child = JSON.parse(row.value);
|
|
3736
|
+
if (!child || typeof child.id !== "string" || row.key !== `${PREFIX}${child.id}` || typeof child.directory !== "string" || !Number.isFinite(child.created_at) || child.deadline_at !== undefined && !Number.isFinite(child.deadline_at))
|
|
3737
|
+
throw new Error(`invalid cleanup record ${row.key}`);
|
|
3738
|
+
const expiresAt = Math.max(child.created_at + (options.maxAgeMs ?? HIDDEN_CHILD_MAX_AGE_MS), child.deadline_at === undefined ? 0 : child.deadline_at + HIDDEN_CHILD_DEADLINE_GRACE_MS);
|
|
3739
|
+
if (now <= expiresAt || options.isLive?.(child.id))
|
|
3740
|
+
continue;
|
|
3741
|
+
remaining--;
|
|
3742
|
+
try {
|
|
3743
|
+
await Promise.race([
|
|
3744
|
+
remove({ sessionID: child.id }),
|
|
3745
|
+
new Promise((_, reject) => {
|
|
3746
|
+
timer = setTimeout(() => reject(new Error("session.remove timed out")), Math.min(options.removalTimeoutMs ?? 5000, Math.max(1, passDeadline - clock())));
|
|
3747
|
+
})
|
|
3748
|
+
]);
|
|
3749
|
+
} catch (error) {
|
|
3750
|
+
if (!isSessionNotFound(error)) {
|
|
3751
|
+
try {
|
|
3752
|
+
markHiddenChildRemovalFailed(db, child.id, now);
|
|
3753
|
+
} catch (markError) {
|
|
3754
|
+
note(`[magic-context] hidden-child sweep could not mark ${row.key} failed: ${String(markError)}`);
|
|
3755
|
+
}
|
|
3756
|
+
throw error;
|
|
3757
|
+
}
|
|
3758
|
+
}
|
|
3759
|
+
forgetHiddenChild(db, child.id);
|
|
3760
|
+
note(`[magic-context] stale hidden child ${child.id} removed`);
|
|
3761
|
+
} catch (error) {
|
|
3762
|
+
note(`[magic-context] hidden-child sweep deferred ${row.key}: ${String(error)}`);
|
|
3763
|
+
} finally {
|
|
3764
|
+
if (timer)
|
|
3765
|
+
clearTimeout(timer);
|
|
3766
|
+
}
|
|
3767
|
+
}
|
|
3768
|
+
}
|
|
3769
|
+
|
|
3673
3770
|
// src/v2/hidden-child-native.ts
|
|
3771
|
+
var liveChildren = new Set;
|
|
3772
|
+
function isLiveHiddenChild(id) {
|
|
3773
|
+
return liveChildren.has(id);
|
|
3774
|
+
}
|
|
3674
3775
|
function nativeSessionRemove(session) {
|
|
3675
3776
|
const remove = session.remove;
|
|
3676
3777
|
if (typeof remove !== "function")
|
|
@@ -3686,7 +3787,6 @@ function isSessionNotFound(error) {
|
|
|
3686
3787
|
const label = [fields.name, fields._tag, fields.message].filter((value) => typeof value === "string").join(" ");
|
|
3687
3788
|
return /not\s*found/i.test(label);
|
|
3688
3789
|
}
|
|
3689
|
-
var parentDroppedNoted = false;
|
|
3690
3790
|
function createNativeHiddenChildren(host, removeSession, options) {
|
|
3691
3791
|
const removing = new Map;
|
|
3692
3792
|
const remove = (child) => {
|
|
@@ -3708,68 +3808,74 @@ function createNativeHiddenChildren(host, removeSession, options) {
|
|
|
3708
3808
|
if (timer)
|
|
3709
3809
|
clearTimeout(timer);
|
|
3710
3810
|
}
|
|
3811
|
+
forgetHiddenChild(options.db, child.id);
|
|
3711
3812
|
options.log(`[magic-context] hidden child ${child.id} removed`);
|
|
3712
3813
|
} catch (error) {
|
|
3713
|
-
if (isSessionNotFound(error))
|
|
3814
|
+
if (isSessionNotFound(error)) {
|
|
3815
|
+
try {
|
|
3816
|
+
forgetHiddenChild(options.db, child.id);
|
|
3817
|
+
} catch (storeError) {
|
|
3818
|
+
options.log(`[magic-context] hidden child ${child.id} record cleanup deferred: ${errorText(storeError)}`);
|
|
3819
|
+
}
|
|
3714
3820
|
return;
|
|
3715
|
-
|
|
3821
|
+
}
|
|
3822
|
+
options.log(`[magic-context] hidden child ${child.id} could not be removed: ${errorText(error)}`);
|
|
3716
3823
|
}
|
|
3717
3824
|
})().finally(() => {
|
|
3718
3825
|
removing.delete(child.id);
|
|
3826
|
+
liveChildren.delete(child.id);
|
|
3719
3827
|
});
|
|
3720
3828
|
removing.set(child.id, done);
|
|
3721
3829
|
return done;
|
|
3722
3830
|
};
|
|
3723
|
-
const noteCreated = (sessionID, role, parentID) => {
|
|
3724
|
-
options.log(`[magic-context] hidden child ${sessionID} created role=${role} parent=${parentID} keep_subagents=${options.keepSubagents}`);
|
|
3725
|
-
};
|
|
3726
|
-
const confirmPlacement = async (sessionID, parentID, role) => {
|
|
3727
|
-
let stored;
|
|
3728
|
-
try {
|
|
3729
|
-
stored = await host.get({ sessionID });
|
|
3730
|
-
} catch (error) {
|
|
3731
|
-
noteCreated(sessionID, role, "unknown");
|
|
3732
|
-
options.log(`[magic-context] could not read back hidden child ${sessionID} to confirm its parent: ${errorText(error)}`);
|
|
3733
|
-
return;
|
|
3734
|
-
}
|
|
3735
|
-
noteCreated(sessionID, role, stored.parentID ?? "none");
|
|
3736
|
-
const directory = stored.location?.directory;
|
|
3737
|
-
if (options.directory !== undefined && directory !== undefined && !sameProjectDirectory(directory, options.directory)) {
|
|
3738
|
-
throw new HiddenCompletionRefusal("hidden_prompt_unrecognized", `hidden child ${sessionID} is bound to ${directory}, not to this instance's ${options.directory}. Reopen the parent session in ${directory}, then run /ctx-recomp so its owning instance can rebuild history.`, true);
|
|
3739
|
-
}
|
|
3740
|
-
if (stored.parentID === parentID || parentDroppedNoted)
|
|
3741
|
-
return;
|
|
3742
|
-
parentDroppedNoted = true;
|
|
3743
|
-
options.log(`[magic-context] this OpenCode 2 host does not keep the parent of hidden-run sessions (asked for ${parentID}, read back ${stored.parentID ?? "none"}); they are created as separate sessions and still removed when each run ends`);
|
|
3744
|
-
};
|
|
3745
3831
|
const create = async (identity, role, model) => {
|
|
3746
|
-
const parentID = identity.parentSessionId;
|
|
3747
3832
|
const input = childCreateInput(identity, role, model);
|
|
3748
|
-
const
|
|
3749
|
-
const created = await host.create(parentID ? { ...parented, parentID } : { ...parented, location });
|
|
3833
|
+
const created = await host.create(input);
|
|
3750
3834
|
if (!created.id)
|
|
3751
3835
|
throw new Error("OpenCode 2 did not return a child session id");
|
|
3836
|
+
const createdAt = Date.now();
|
|
3837
|
+
liveChildren.add(created.id);
|
|
3838
|
+
if (!options.keepSubagents) {
|
|
3839
|
+
try {
|
|
3840
|
+
recordHiddenChild(options.db, {
|
|
3841
|
+
id: created.id,
|
|
3842
|
+
directory: identity.directory,
|
|
3843
|
+
created_at: createdAt,
|
|
3844
|
+
deadline_at: createdAt + identity.timeoutMs
|
|
3845
|
+
});
|
|
3846
|
+
} catch (storeError) {
|
|
3847
|
+
let removed = false;
|
|
3848
|
+
let timer;
|
|
3849
|
+
try {
|
|
3850
|
+
await Promise.race([
|
|
3851
|
+
removeSession({ sessionID: created.id }),
|
|
3852
|
+
new Promise((_, reject) => {
|
|
3853
|
+
timer = setTimeout(() => reject(new Error("session.remove timed out")), options.removalTimeoutMs ?? 5000);
|
|
3854
|
+
})
|
|
3855
|
+
]);
|
|
3856
|
+
removed = true;
|
|
3857
|
+
} catch (error) {
|
|
3858
|
+
removed = isSessionNotFound(error);
|
|
3859
|
+
} finally {
|
|
3860
|
+
if (timer)
|
|
3861
|
+
clearTimeout(timer);
|
|
3862
|
+
liveChildren.delete(created.id);
|
|
3863
|
+
}
|
|
3864
|
+
options.log(`[magic-context] hidden child ${created.id} record failed; removed=${removed}: ${errorText(storeError)}`);
|
|
3865
|
+
throw storeError;
|
|
3866
|
+
}
|
|
3867
|
+
}
|
|
3752
3868
|
options.hook.registerChild(created.id, input.agent);
|
|
3753
|
-
|
|
3869
|
+
options.log(`[magic-context] hidden child ${created.id} created role=${role} keep_subagents=${options.keepSubagents}`);
|
|
3870
|
+
return {
|
|
3754
3871
|
id: created.id,
|
|
3755
3872
|
role,
|
|
3756
3873
|
generation: options.generation,
|
|
3757
3874
|
title: roleTitle(role),
|
|
3758
3875
|
model,
|
|
3759
|
-
created_at:
|
|
3876
|
+
created_at: createdAt,
|
|
3760
3877
|
directory: identity.directory
|
|
3761
3878
|
};
|
|
3762
|
-
if (parentID) {
|
|
3763
|
-
try {
|
|
3764
|
-
await confirmPlacement(created.id, parentID, role);
|
|
3765
|
-
} catch (error) {
|
|
3766
|
-
await remove(child);
|
|
3767
|
-
throw error;
|
|
3768
|
-
}
|
|
3769
|
-
} else {
|
|
3770
|
-
noteCreated(created.id, role, "none");
|
|
3771
|
-
}
|
|
3772
|
-
return child;
|
|
3773
3879
|
};
|
|
3774
3880
|
const kept = (child) => keptUnderRetention(options.keepSubagents, child);
|
|
3775
3881
|
return {
|
|
@@ -3777,6 +3883,7 @@ function createNativeHiddenChildren(host, removeSession, options) {
|
|
|
3777
3883
|
create,
|
|
3778
3884
|
retire(child) {
|
|
3779
3885
|
if (kept(child)) {
|
|
3886
|
+
liveChildren.delete(child.id);
|
|
3780
3887
|
options.log(`[magic-context] hidden child ${child.id} kept (keep_subagents)`);
|
|
3781
3888
|
} else {
|
|
3782
3889
|
remove(child);
|
|
@@ -3788,23 +3895,33 @@ function createNativeHiddenChildren(host, removeSession, options) {
|
|
|
3788
3895
|
return;
|
|
3789
3896
|
}
|
|
3790
3897
|
if (kept(child)) {
|
|
3898
|
+
liveChildren.delete(child.id);
|
|
3791
3899
|
options.log(`[magic-context] hidden child ${child.id} kept (keep_subagents)`);
|
|
3792
3900
|
} else {
|
|
3793
3901
|
await remove(child);
|
|
3794
3902
|
}
|
|
3795
3903
|
},
|
|
3904
|
+
extendDeadline(child, deadlineAt) {
|
|
3905
|
+
if (options.keepSubagents)
|
|
3906
|
+
return;
|
|
3907
|
+
try {
|
|
3908
|
+
extendHiddenChildDeadline(options.db, child.id, deadlineAt);
|
|
3909
|
+
} catch (error) {
|
|
3910
|
+
options.log(`[magic-context] hidden child ${child.id} deadline update deferred: ${errorText(error)}`);
|
|
3911
|
+
}
|
|
3912
|
+
},
|
|
3796
3913
|
updateModel: (child, model) => ({ ...child, model }),
|
|
3797
3914
|
markEverSettled: (child) => ({ ...child, ever_settled: true })
|
|
3798
3915
|
};
|
|
3799
3916
|
}
|
|
3800
3917
|
|
|
3801
3918
|
// src/v2/hidden-child-cleanup.ts
|
|
3802
|
-
var
|
|
3919
|
+
var PREFIX2 = "opencode2_hidden_children:";
|
|
3803
3920
|
var COMPLETE = "opencode2_hidden_children_cleanup_complete";
|
|
3804
3921
|
async function cleanupLegacyHiddenChildren(db, remove, note, options = {}) {
|
|
3805
3922
|
if (db.prepare("SELECT 1 FROM schema_migrations_meta WHERE key = ?").get(COMPLETE))
|
|
3806
3923
|
return;
|
|
3807
|
-
const rows = db.prepare("SELECT key, value FROM schema_migrations_meta WHERE key GLOB ? ORDER BY key LIMIT 25").all(`${
|
|
3924
|
+
const rows = db.prepare("SELECT key, value FROM schema_migrations_meta WHERE key GLOB ? ORDER BY key LIMIT 25").all(`${PREFIX2}*`);
|
|
3808
3925
|
let remaining = options.limit ?? 25;
|
|
3809
3926
|
const now = options.now ?? (() => performance.now());
|
|
3810
3927
|
const deadline = now() + (options.budgetMs ?? 2000);
|
|
@@ -3856,7 +3973,7 @@ async function cleanupLegacyHiddenChildren(db, remove, note, options = {}) {
|
|
|
3856
3973
|
if (Object.keys(record.active ?? {}).length === 0 && (record.retired_children ?? []).length === 0)
|
|
3857
3974
|
db.prepare("DELETE FROM schema_migrations_meta WHERE key = ?").run(row.key);
|
|
3858
3975
|
}
|
|
3859
|
-
if (!db.prepare("SELECT 1 FROM schema_migrations_meta WHERE key GLOB ? LIMIT 1").get(`${
|
|
3976
|
+
if (!db.prepare("SELECT 1 FROM schema_migrations_meta WHERE key GLOB ? LIMIT 1").get(`${PREFIX2}*`))
|
|
3860
3977
|
db.prepare("INSERT OR IGNORE INTO schema_migrations_meta (key, value) VALUES (?, 'true')").run(COMPLETE);
|
|
3861
3978
|
}
|
|
3862
3979
|
|
|
@@ -4149,12 +4266,12 @@ async function createV2HiddenCompletionExecutor(host, options) {
|
|
|
4149
4266
|
if (!removeSession)
|
|
4150
4267
|
throw new Error("Magic Context requires OpenCode 2.0.22 session.remove");
|
|
4151
4268
|
const lifecycle = createNativeHiddenChildren(host, (input) => removeSession.call(host, input), {
|
|
4269
|
+
db: options.db,
|
|
4152
4270
|
hook: options.hook,
|
|
4153
4271
|
generation,
|
|
4154
4272
|
keepSubagents: options.keepSubagents === true,
|
|
4155
4273
|
log: note,
|
|
4156
|
-
removalTimeoutMs: options.removalTimeoutMs
|
|
4157
|
-
directory: options.directory
|
|
4274
|
+
removalTimeoutMs: options.removalTimeoutMs
|
|
4158
4275
|
});
|
|
4159
4276
|
const acquireRole = async (role) => {
|
|
4160
4277
|
const previous = roleTails.get(role) ?? Promise.resolve();
|
|
@@ -4383,6 +4500,7 @@ async function createV2HiddenCompletionExecutor(host, options) {
|
|
|
4383
4500
|
run.attempt = { child: attempt, baseline };
|
|
4384
4501
|
options.hook.registerAttempt(marker, attempt);
|
|
4385
4502
|
const deadline = Date.now() + run.identity.timeoutMs;
|
|
4503
|
+
lifecycle.extendDeadline(run.child, deadline);
|
|
4386
4504
|
const budget = run.budget;
|
|
4387
4505
|
if (budget?.snapshot().finalizeFired) {
|
|
4388
4506
|
throw new DreamTokenBudgetExceeded(run.child.id, budget.snapshot().spent);
|
|
@@ -6185,17 +6303,26 @@ function persistV2UsageReading(args) {
|
|
|
6185
6303
|
updateSessionMeta(db, sessionID, { lastResponseTime: responseTime });
|
|
6186
6304
|
return;
|
|
6187
6305
|
}
|
|
6188
|
-
|
|
6306
|
+
let limit = reading.limit;
|
|
6307
|
+
const readingModel = reading.modelKey ?? draftModelKey;
|
|
6308
|
+
if (served && clearDisprovedDetectedLimit(db, sessionID, readingModel, reading.inputTokens)) {
|
|
6309
|
+
const slash = readingModel.indexOf("/");
|
|
6310
|
+
const relimit = slash > 0 ? args.limitFor?.(readingModel.slice(0, slash), readingModel.slice(slash + 1)) : undefined;
|
|
6311
|
+
if (typeof relimit === "number" && Number.isFinite(relimit) && relimit > 0) {
|
|
6312
|
+
limit = relimit;
|
|
6313
|
+
}
|
|
6314
|
+
}
|
|
6315
|
+
const percentage = reading.inputTokens / limit * 100;
|
|
6189
6316
|
const updates = {
|
|
6190
6317
|
lastContextPercentage: percentage,
|
|
6191
6318
|
lastInputTokens: reading.inputTokens,
|
|
6192
|
-
lastUsageContextLimit:
|
|
6319
|
+
lastUsageContextLimit: limit,
|
|
6193
6320
|
lastObservedModelKey: reading.modelKey ?? draftModelKey
|
|
6194
6321
|
};
|
|
6195
6322
|
if (responseTime)
|
|
6196
6323
|
updates.lastResponseTime = responseTime;
|
|
6197
6324
|
updateSessionMeta(db, sessionID, updates);
|
|
6198
|
-
sessionLog2(sessionID, `v2 usage: inputTokens=${reading.inputTokens} contextLimit=${
|
|
6325
|
+
sessionLog2(sessionID, `v2 usage: inputTokens=${reading.inputTokens} contextLimit=${limit} percentage=${percentage} responseModel=${reading.modelKey ?? "legacy"} draftContextLimit=${reading.admissionLimit} pressure=${readingMatchesDraft ? "current" : "stale-model-ignored"}`);
|
|
6199
6326
|
if (readingMatchesDraft) {
|
|
6200
6327
|
args.contextUsageMap.set(sessionID, {
|
|
6201
6328
|
usage: { inputTokens: reading.inputTokens, percentage },
|
|
@@ -6206,6 +6333,16 @@ function persistV2UsageReading(args) {
|
|
|
6206
6333
|
args.contextUsageMap.delete(sessionID);
|
|
6207
6334
|
}
|
|
6208
6335
|
}
|
|
6336
|
+
function clearDisprovedDetectedLimit(db, sessionID, readingModel, inputTokens) {
|
|
6337
|
+
const stored = getOverflowState(db, sessionID);
|
|
6338
|
+
if (stored.detectedContextLimit <= 0 || inputTokens <= stored.detectedContextLimit || stored.detectedContextLimitModelKey !== null && stored.detectedContextLimitModelKey !== piModelRefToCanonical(readingModel))
|
|
6339
|
+
return false;
|
|
6340
|
+
clearDetectedContextLimit(db, sessionID);
|
|
6341
|
+
dropSlot(sessionID, "session-cache-invalidated");
|
|
6342
|
+
clearInjectionCache(sessionID);
|
|
6343
|
+
sessionLog2(sessionID, `v2 usage: detected limit ${stored.detectedContextLimit} invalidated by a successful ${inputTokens}-token request on ${readingModel}; using catalog/default`);
|
|
6344
|
+
return true;
|
|
6345
|
+
}
|
|
6209
6346
|
|
|
6210
6347
|
// src/v2/hooks/context.ts
|
|
6211
6348
|
class V2LkgAdmissionReplay extends Error {
|
|
@@ -6667,11 +6804,23 @@ async function registerContext(context) {
|
|
|
6667
6804
|
let db = await probeV2StorageAtBoot(storage);
|
|
6668
6805
|
const storageOpenedAtBoot = db !== undefined;
|
|
6669
6806
|
let legacyCleanupStarted = false;
|
|
6807
|
+
const hiddenChildSweep = createHiddenChildSweeper(nativeRemove, log2, {
|
|
6808
|
+
isLive: isLiveHiddenChild
|
|
6809
|
+
});
|
|
6810
|
+
let hiddenChildSweepTimer;
|
|
6811
|
+
const sweepChildren = (database) => {
|
|
6812
|
+
hiddenChildSweep.start(database);
|
|
6813
|
+
};
|
|
6670
6814
|
const cleanupLegacyOnce = async (database) => {
|
|
6671
6815
|
if (legacyCleanupStarted)
|
|
6672
6816
|
return;
|
|
6673
6817
|
legacyCleanupStarted = true;
|
|
6674
6818
|
await cleanupLegacyHiddenChildren(database, nativeRemove, log2);
|
|
6819
|
+
sweepChildren(database);
|
|
6820
|
+
hiddenChildSweepTimer = inRootAsyncContext2(() => setInterval(() => {
|
|
6821
|
+
sweepChildren(database);
|
|
6822
|
+
}, HIDDEN_CHILD_SWEEP_INTERVAL_MS));
|
|
6823
|
+
hiddenChildSweepTimer.unref?.();
|
|
6675
6824
|
};
|
|
6676
6825
|
if (db && isDatabasePersisted(db))
|
|
6677
6826
|
await cleanupLegacyOnce(db);
|
|
@@ -7060,7 +7209,8 @@ async function registerContext(context) {
|
|
|
7060
7209
|
sessionID: draft.sessionID,
|
|
7061
7210
|
draftModel: draft.model,
|
|
7062
7211
|
reading,
|
|
7063
|
-
contextUsageMap: usage
|
|
7212
|
+
contextUsageMap: usage,
|
|
7213
|
+
limitFor
|
|
7064
7214
|
});
|
|
7065
7215
|
}
|
|
7066
7216
|
} finally {
|
|
@@ -8280,6 +8430,9 @@ async function registerContext(context) {
|
|
|
8280
8430
|
}, 0));
|
|
8281
8431
|
return {
|
|
8282
8432
|
async dispose() {
|
|
8433
|
+
if (hiddenChildSweepTimer)
|
|
8434
|
+
clearInterval(hiddenChildSweepTimer);
|
|
8435
|
+
await hiddenChildSweep.dispose();
|
|
8283
8436
|
messageTimesCache.clear();
|
|
8284
8437
|
hostFoldIdle?.dispose();
|
|
8285
8438
|
usageController.abort();
|
|
@@ -45,6 +45,10 @@ export interface MuralRenderResult {
|
|
|
45
45
|
renderedIds: number[];
|
|
46
46
|
/** Entries trimmed because the capped image filled before reaching them. */
|
|
47
47
|
droppedIds: number[];
|
|
48
|
+
/** Entries left out because their cue has a character the font cannot draw,
|
|
49
|
+
* even after normalization (see drawableMuralCue). They never reach the layout,
|
|
50
|
+
* so they are not counted in droppedIds. */
|
|
51
|
+
undrawableIds: number[];
|
|
48
52
|
categoryLineUsage: Record<string, number>;
|
|
49
53
|
/** Content lines actually placed in the grid (excludes blank cells). Used to
|
|
50
54
|
* assert the three-column fill occupancy. */
|
|
@@ -53,6 +57,18 @@ export interface MuralRenderResult {
|
|
|
53
57
|
width: number;
|
|
54
58
|
height: number;
|
|
55
59
|
}
|
|
60
|
+
/**
|
|
61
|
+
* The text the mural draws for a cue, or null when the font cannot draw it.
|
|
62
|
+
*
|
|
63
|
+
* A character the font has a glyph for is kept exactly as written, so a cue that
|
|
64
|
+
* draws today keeps the same bytes. Any other character gets one rescue:
|
|
65
|
+
* typographic punctuation maps to ASCII, and everything else goes through NFKD
|
|
66
|
+
* with combining marks removed (é becomes e, fullwidth A becomes A). If a
|
|
67
|
+
* character still has no glyph (Chinese text, for example), the whole cue is left
|
|
68
|
+
* out: drawing it in part, or as replacement boxes, would show the model nothing
|
|
69
|
+
* useful while still costing image tokens.
|
|
70
|
+
*/
|
|
71
|
+
export declare function drawableMuralCue(cue: string): string | null;
|
|
56
72
|
interface LayoutResult {
|
|
57
73
|
text: string;
|
|
58
74
|
grid: string[][];
|
|
@@ -76,6 +92,7 @@ export declare function planMuralRender(entries: readonly MuralRenderEntry[]): {
|
|
|
76
92
|
layout: LayoutResult;
|
|
77
93
|
width: number;
|
|
78
94
|
height: number;
|
|
95
|
+
undrawableIds: number[];
|
|
79
96
|
};
|
|
80
97
|
export declare function rasterMural(plan: ReturnType<typeof planMuralRender>): Uint8Array;
|
|
81
98
|
export declare function encodeMuralPng(pixels: Uint8Array, width: number, height: number): Uint8Array;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-mural.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/render-mural.ts"],"names":[],"mappings":"AAWA,gFAAgF;AAChF,eAAO,MAAM,WAAW,OAAQ,CAAC;AACjC,eAAO,MAAM,YAAY,OAAQ,CAAC;AAClC,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AE,MAAM,EAAE,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C;kDAC8C;IAC9C,eAAe,EAAE,MAAM,CAAC;IACxB,sEAAsE;IACtE,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;CAClB;
|
|
1
|
+
{"version":3,"file":"render-mural.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/render-mural.ts"],"names":[],"mappings":"AAWA,gFAAgF;AAChF,eAAO,MAAM,WAAW,OAAQ,CAAC;AACjC,eAAO,MAAM,YAAY,OAAQ,CAAC;AAClC,qEAAqE;AACrE,eAAO,MAAM,iBAAiB,KAAK,CAAC;AACpC,eAAO,MAAM,UAAU,eAAe,CAAC;AACvC,qFAAqF;AACrF,eAAO,MAAM,gBAAgB,IAAwB,CAAC;AACtD,eAAO,MAAM,iBAAiB,IAAyB,CAAC;AACxD,eAAO,MAAM,gBAAgB,IAAwB,CAAC;AACtD,eAAO,MAAM,aAAa,IAAI,CAAC;AAC/B,eAAO,MAAM,gBAAgB,IAAI,CAAC;AAGlC,yIAAyI;AACzI,eAAO,MAAM,gBAAgB,KAAK,CAAC;AACnC,eAAO,MAAM,UAAU,QAA8C,CAAC;AACtE,eAAO,MAAM,mBAAmB,QAA6B,CAAC;AAE9D,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC;;iEAEiE;AACjE,MAAM,WAAW,gBAAgB;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,aAAa,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,eAAe;IAC5B,IAAI,EAAE,UAAU,GAAG,OAAO,CAAC;IAC3B,QAAQ,EAAE,aAAa,CAAC;IACxB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;CACnB;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SAAS,gBAAgB,EAAE;;;;;;EAwDnE;AAED,wBAAgB,WAAW,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,GAAG,UAAU,CA0ChF;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,UAAU,CAE5F;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,UAAU,CAAC,OAAO,eAAe,CAAC,GAAG,iBAAiB,CAmB9F;AAED,wBAAgB,WAAW,CAAC,OAAO,EAAE,SAAS,gBAAgB,EAAE,GAAG,iBAAiB,CAEnF;AAED,gEAAgE;AAChE,wBAAgB,oCAAoC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAE1F;AAED,eAAO,MAAM,uBAAuB,QAGnC,CAAC"}
|
|
@@ -24,7 +24,8 @@ export interface EnsureMuralResult {
|
|
|
24
24
|
contentHash?: string;
|
|
25
25
|
/** True when this call encoded a new PNG (persisted unless read-only). */
|
|
26
26
|
rerendered: boolean;
|
|
27
|
-
/** Set when the
|
|
27
|
+
/** Set when the mural was intentionally omitted: the coverage gate failed, or
|
|
28
|
+
* no overflow cue can be drawn by the mural font. */
|
|
28
29
|
skipReason?: string;
|
|
29
30
|
width?: number;
|
|
30
31
|
height?: number;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"render-trigger.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/render-trigger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAsDtC,MAAM,WAAW,iBAAiB;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB
|
|
1
|
+
{"version":3,"file":"render-trigger.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/render-trigger.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAIxD;;;;;;;;;;;GAWG;AAEH,eAAO,MAAM,yBAAyB,kBAAkB,CAAC;AACzD,eAAO,MAAM,uBAAuB,KAAK,CAAC;AAC1C,eAAO,MAAM,kBAAkB,MAAM,CAAC;AAsDtC,MAAM,WAAW,iBAAiB;IAC9B,iFAAiF;IACjF,QAAQ,EAAE,OAAO,CAAC;IAClB,wDAAwD;IACxD,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qFAAqF;IACrF,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,UAAU,EAAE,OAAO,CAAC;IACpB;0DACsD;IACtD,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,wEAAwE;AACxE,wBAAgB,iBAAiB,CAAC,eAAe,EAAE,MAAM,EAAE,iBAAiB,EAAE,MAAM,GAAG,OAAO,CAK7F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,QAAQ,EACZ,eAAe,EAAE,MAAM,EACvB,YAAY,GAAE,MAAoC,EAClD,IAAI,GAAE,SAAS,GAAG,WAAuB,GAC1C,iBAAiB,CAkGnB;AAED;;;;2EAI2E;AAC3E,wBAAgB,qBAAqB,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAM3E;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,gBAAgB,CAC5B,EAAE,EAAE,QAAQ,EACZ,eAAe,EAAE,MAAM,GAAG,SAAS,EACnC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,OAAO,EAChB,YAAY,GAAE,MAAoC,EAClD,IAAI,GAAE,SAAS,GAAG,WAAuB,GAC1C,gBAAgB,CAYlB"}
|
|
@@ -21,8 +21,12 @@ export interface ResolvedMuralEntry {
|
|
|
21
21
|
export interface MuralCoverage {
|
|
22
22
|
/** Active and permanent memories eligible for mural cueing. */
|
|
23
23
|
activeMemoryCount: number;
|
|
24
|
-
/** Eligible memories with a non-null compressed cue generated for current
|
|
24
|
+
/** Eligible memories with a non-null compressed cue generated for current
|
|
25
|
+
* content that the mural font can draw. */
|
|
25
26
|
cuedMemoryCount: number;
|
|
27
|
+
/** Current cues left out because the mural font cannot draw them. The renderer
|
|
28
|
+
* never shows them, so they are not counted in cuedMemoryCount. */
|
|
29
|
+
undrawableCueCount: number;
|
|
26
30
|
}
|
|
27
31
|
export interface MuralPool {
|
|
28
32
|
memories: Memory[];
|
|
@@ -34,7 +38,9 @@ export interface MuralPool {
|
|
|
34
38
|
}
|
|
35
39
|
/** A call-local snapshot, never retained across refreshes or database writes. */
|
|
36
40
|
export declare function readMuralPool(db: Database, projectIdentity: string): MuralPool;
|
|
37
|
-
/** Count current cues across the full live pool before the overflow trim.
|
|
41
|
+
/** Count current cues across the full live pool before the overflow trim. A cue the
|
|
42
|
+
* font cannot draw counts apart from the drawable ones, because the coverage gate
|
|
43
|
+
* must not open for cues the mural would leave out. */
|
|
38
44
|
export declare function getMuralCoverage(db: Database, projectIdentity: string, pool?: MuralPool): MuralCoverage;
|
|
39
45
|
/**
|
|
40
46
|
* Compute the deterministic mural entry list for a project — the zero-LLM half
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-mural.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/resolve-mural.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"resolve-mural.d.ts","sourceRoot":"","sources":["../../../../src/features/magic-context/mural/resolve-mural.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,wBAAwB,CAAC;AAGvD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAG9C,OAAO,EAA2C,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEnG;;qFAEqF;AACrF,MAAM,WAAW,gBAAgB;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,WAAW,CAAC,EAAE,MAAM,CAAC;CACxB;AAED;wDACwD;AACxD,MAAM,WAAW,kBAAkB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC1B,+DAA+D;IAC/D,iBAAiB,EAAE,MAAM,CAAC;IAC1B;gDAC4C;IAC5C,eAAe,EAAE,MAAM,CAAC;IACxB;wEACoE;IACpE,kBAAkB,EAAE,MAAM,CAAC;CAC9B;AAED,MAAM,WAAW,SAAS;IACtB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,QAAQ,EAAE,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CAAC;IACrC,aAAa,EAAE,GAAG,CAAC,MAAM,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACjE;AAED,iFAAiF;AACjF,wBAAgB,aAAa,CAAC,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,MAAM,GAAG,SAAS,CAU9E;AAUD;;wDAEwD;AACxD,wBAAgB,gBAAgB,CAC5B,EAAE,EAAE,QAAQ,EACZ,eAAe,EAAE,MAAM,EACvB,IAAI,CAAC,EAAE,SAAS,GACjB,aAAa,CAkBf;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,YAAY,CACxB,EAAE,EAAE,QAAQ,EACZ,eAAe,EAAE,MAAM,EACvB,YAAY,GAAE,MAAoC,EAClD,IAAI,CAAC,EAAE,SAAS,GACjB,kBAAkB,EAAE,CA6BtB"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import type { Database } from "../../shared/sqlite";
|
|
2
|
+
/**
|
|
3
|
+
* Pi's once-guards for tag-identity repairs, one per repaired identity.
|
|
4
|
+
*
|
|
5
|
+
* A guard records that an identity (a tool call or a message part that was
|
|
6
|
+
* tagged twice) has had its one repair, so the same identity is never folded
|
|
7
|
+
* or rebuilt a second time. Older builds kept these guards in the session's
|
|
8
|
+
* shared Pi content-decision ledger (`session_meta.merged_reasoning_stripped_ids`),
|
|
9
|
+
* whose 4,096-entry cap they shared with reminder-strip and seam-temporal-strip
|
|
10
|
+
* replay decisions. A session with thousands of duplicated identities filled
|
|
11
|
+
* that ledger and left no room for the strip decisions. New guards live in
|
|
12
|
+
* their own row of the `schema_migrations_meta` key/value table instead, so no
|
|
13
|
+
* schema change is needed; guards already in the shared ledger stay valid and
|
|
14
|
+
* are still read.
|
|
15
|
+
*
|
|
16
|
+
* The value is a JSON array of guard keys (each a JSON-encoded identity key).
|
|
17
|
+
* Session deletion removes the row together with the session's metadata (see
|
|
18
|
+
* storage-session-tables.ts).
|
|
19
|
+
*/
|
|
20
|
+
export declare const PI_IDENTITY_FOLD_GUARD_PREFIX = "pi_identity_fold_guards:";
|
|
21
|
+
/**
|
|
22
|
+
* Guard keys are about 60 bytes for a tool call and 95 for a message part, so
|
|
23
|
+
* a full row is about 1.5 MB at most. The row is read once and written once per
|
|
24
|
+
* committed adoption chunk, so this bounds each of those writes. A session
|
|
25
|
+
* with more duplicated identities than this leaves the rest unmerged, which
|
|
26
|
+
* serves them as tagging does without a repair.
|
|
27
|
+
*/
|
|
28
|
+
export declare const PI_IDENTITY_FOLD_GUARD_LIMIT = 16384;
|
|
29
|
+
export declare function piIdentityFoldGuardKey(sessionId: string): string;
|
|
30
|
+
/** The session's fold guards. Throws when the stored row is not a JSON array of strings. */
|
|
31
|
+
export declare function readPiIdentityFoldGuards(db: Database, sessionId: string): Set<string>;
|
|
32
|
+
/**
|
|
33
|
+
* Store `guards` as the session's complete guard set. The caller holds the
|
|
34
|
+
* writer transaction it read the current set under, adds to that set, and
|
|
35
|
+
* keeps it within PI_IDENTITY_FOLD_GUARD_LIMIT.
|
|
36
|
+
*/
|
|
37
|
+
export declare function writePiIdentityFoldGuards(db: Database, sessionId: string, guards: ReadonlySet<string>): void;
|
|
38
|
+
//# sourceMappingURL=pi-identity-fold-guards.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pi-identity-fold-guards.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/pi-identity-fold-guards.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,6BAA6B,6BAA6B,CAAC;AAExE;;;;;;GAMG;AACH,eAAO,MAAM,4BAA4B,QAAS,CAAC;AAEnD,wBAAgB,sBAAsB,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,CAEhE;AAED,4FAA4F;AAC5F,wBAAgB,wBAAwB,CAAC,EAAE,EAAE,QAAQ,EAAE,SAAS,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CASrF;AAED;;;;GAIG;AACH,wBAAgB,yBAAyB,CACrC,EAAE,EAAE,QAAQ,EACZ,SAAS,EAAE,MAAM,EACjB,MAAM,EAAE,WAAW,CAAC,MAAM,CAAC,GAC5B,IAAI,CAON"}
|
|
@@ -62,6 +62,13 @@ export interface HistorianRunInput {
|
|
|
62
62
|
}
|
|
63
63
|
/** Count recorded attempts for one session, regardless of their outcome. */
|
|
64
64
|
export declare function countHistorianRuns(db: Database, sessionId: string): number;
|
|
65
|
+
/**
|
|
66
|
+
* When the session's most recent failed incremental runs ended, newest first,
|
|
67
|
+
* at most `limit` of them. Only runs after the latest successful one count: a
|
|
68
|
+
* success ends a streak of failures. A run's row is written when the run ends,
|
|
69
|
+
* so these are end times.
|
|
70
|
+
*/
|
|
71
|
+
export declare function getRecentFailedHistorianRunTimes(db: Database, sessionId: string, limit: number): number[];
|
|
65
72
|
export declare function recordHistorianRun(db: Database, input: HistorianRunInput): number | null;
|
|
66
73
|
/** Summarize a list of importance values into min/max/avg (null on empty). */
|
|
67
74
|
export declare function summarizeImportance(values: readonly number[]): {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-historian-runs.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-historian-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,kBAAkB;AAC1B,+CAA+C;AAC7C,SAAS;AACX,wEAAwE;GACtE,QAAQ;AACV,qEAAqE;GACnE,MAAM,CAAC;AAEb;+CAC+C;AAC/C,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,OAAO,EA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AI,CAqDxF;AAED,8EAA8E;AAC9E,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,GAAG;IAC5D,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAYA;AAED,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GACnD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB"}
|
|
1
|
+
{"version":3,"file":"storage-historian-runs.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-historian-runs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAGpD;;;;;;;;;;;;GAYG;AAEH,MAAM,MAAM,kBAAkB;AAC1B,+CAA+C;AAC7C,SAAS;AACX,wEAAwE;GACtE,QAAQ;AACV,qEAAqE;GACnE,MAAM,CAAC;AAEb;+CAC+C;AAC/C,MAAM,MAAM,gBAAgB,GAAG,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,SAAS,CAAC;AAEvF,MAAM,WAAW,iBAAiB;IAC9B,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,CAAC;IAChB,kFAAkF;IAClF,oBAAoB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,MAAM,EAAE,kBAAkB,CAAC;IAC3B,wEAAwE;IACxE,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAC9B,4CAA4C;IAC5C,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAChC,kEAAkE;IAClE,eAA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AG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB,CAYA;AAED,2DAA2D;AAC3D,wBAAgB,oBAAoB,CAChC,KAAK,EAAE,aAAa,CAAC;IAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,CAAC,GACnD,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAOxB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storage-session-tables.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-session-tables.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAA0C,MAAM,qBAAqB,CAAC;
|
|
1
|
+
{"version":3,"file":"storage-session-tables.d.ts","sourceRoot":"","sources":["../../../src/features/magic-context/storage-session-tables.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,QAAQ,EAA0C,MAAM,qBAAqB,CAAC;AAY5F,MAAM,WAAW,4BAA4B;IACzC,QAAQ,CAAC,KAAK,EAAE,MAAM,CAAC;IACvB,QAAQ,CAAC,aAAa,CAAC,EAAE,IAAI,CAAC;IAC9B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;CACpC;AAED;;;GAGG;AACH,eAAO,MAAM,qBAAqB,EAAE,SAAS,4BAA4B,EAmDxE,CAAC;AAEF,MAAM,WAAW,8BAA8B;IAC3C,6FAA6F;IAC7F,QAAQ,CAAC,yBAAyB,CAAC,EAAE,OAAO,CAAC;IAC7C,uFAAuF;IACvF,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;IACjD,6GAA6G;IAC7G,QAAQ,CAAC,6BAA6B,CAAC,EAAE,OAAO,CAAC;CACpD;AAqBD;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CACnC,EAAE,EAAE,QAAQ,EACZ,UAAU,EAAE,SAAS,MAAM,EAAE,EAC7B,OAAO,CAAC,EAAE,MAAM,EAChB,OAAO,GAAE,8BAAmC,GAC7C,MAAM,CA8HR"}
|