@cortexkit/opencode-magic-context 0.49.95 → 0.49.97
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/{announcement-4ynkaf0d.js → announcement-8nj2jd87.js} +5 -5
- package/dist/auto-search-worker.js +5 -5
- package/dist/chunk-embedding-write-worker.js +16 -16
- package/dist/{compaction-marker-candidates-1ndjqh9k.js → compaction-marker-candidates-a4b0anvv.js} +3 -3
- package/dist/compaction-marker-candidates-worker.js +1 -1
- package/dist/{compartment-chunk-embedding-4nn3hsw2.js → compartment-chunk-embedding-re2cw7y3.js} +8 -8
- package/dist/config/removed-agent-config.d.ts +1 -1
- package/dist/config/removed-agent-config.d.ts.map +1 -1
- package/dist/config/schema/magic-context.d.ts +0 -75
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-exf96bpt.js → conflict-warning-hook-wcq55y61.js} +8 -8
- package/dist/{context-h9x9m2p3.js → context-br04s0b6.js} +86 -104
- package/dist/{derive-budgets-hzzq71rm.js → derive-budgets-g1sy72e8.js} +5 -5
- package/dist/embedding-backfill-pdymqbnh.js +29 -0
- package/dist/embedding-worker-process.js +2 -2
- package/dist/embedding-worker.js +8 -8
- package/dist/features/magic-context/dreamer/token-budget.d.ts +2 -2
- package/dist/features/magic-context/dreamer/token-budget.d.ts.map +1 -1
- package/dist/features/magic-context/search-rerank.d.ts +2 -2
- package/dist/features/magic-context/search-rerank.d.ts.map +1 -1
- package/dist/features/magic-context/search.d.ts.map +1 -1
- package/dist/features/magic-context/storage-native-replay.d.ts +7 -0
- package/dist/features/magic-context/storage-native-replay.d.ts.map +1 -1
- package/dist/{history-owner-xqfsvf9k.js → history-owner-74826t4n.js} +3 -3
- package/dist/hooks/magic-context/apply-operations.d.ts.map +1 -1
- package/dist/hooks/magic-context/hook.d.ts.map +1 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts +6 -1
- package/dist/hooks/magic-context/inject-compartments.d.ts.map +1 -1
- package/dist/hooks/magic-context/tag-messages.d.ts +11 -1
- package/dist/hooks/magic-context/tag-messages.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts +2 -1
- package/dist/hooks/magic-context/transform-compartment-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts +1 -0
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts +2 -0
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-3ywyr4zx.js → index-0bjj9yf3.js} +2 -2
- package/dist/{index-7skgrbsg.js → index-0sqhg9nf.js} +41 -21
- package/dist/{index-nxxzeq4y.js → index-0ve29s6f.js} +1 -1
- package/dist/{index-ywrz4wy2.js → index-3fhb0j32.js} +1 -1
- package/dist/{index-gqf8r04r.js → index-3n4j5rqc.js} +1 -1
- package/dist/{index-xsqw8kbd.js → index-45qgkg8j.js} +2 -2
- package/dist/{index-5df2fw5b.js → index-6mryx739.js} +1 -1
- package/dist/{index-tedck05r.js → index-7m2tnk8q.js} +10 -10
- package/dist/{index-r4y0dczp.js → index-7sdns2ww.js} +2 -2
- package/dist/{index-mjy2k9jr.js → index-880a24vd.js} +1 -1
- package/dist/{index-esacb9d0.js → index-89bkkgcn.js} +4 -4
- package/dist/{index-s32f8y67.js → index-89xg64wb.js} +2 -2
- package/dist/{index-pc49a7zt.js → index-8v1brm5n.js} +13 -11
- package/dist/{index-qmm8xpbc.js → index-910gahfb.js} +6 -6
- package/dist/{index-47hst5me.js → index-9jvxq5rt.js} +4 -4
- package/dist/{index-832w615x.js → index-azkfw78y.js} +1 -1
- package/dist/{index-wh9fxds5.js → index-c205x7xd.js} +1 -1
- package/dist/{index-mg9s2rc3.js → index-cpbr0xvk.js} +2 -2
- package/dist/{index-cr483vx6.js → index-dj64gzg5.js} +2 -2
- package/dist/{index-jba6ny4m.js → index-dnpcv1rg.js} +4 -4
- package/dist/{index-z4p0ry94.js → index-dt7cyqfe.js} +2 -1
- package/dist/{index-tm799pq7.js → index-e6ay1gez.js} +1 -1
- package/dist/{index-j7n64sg4.js → index-fgw241hh.js} +2 -2
- package/dist/{index-yzzxb5e1.js → index-h7kta6cn.js} +3 -3
- package/dist/{index-q7q6qp1f.js → index-hedgz8an.js} +1 -1
- package/dist/{index-5pgyqgmx.js → index-hj78hvhm.js} +2 -2
- package/dist/{index-7r11k4xr.js → index-hp46xe93.js} +7 -7
- package/dist/{index-ejgp0z9p.js → index-j4dcjb8t.js} +4 -4
- package/dist/{index-e6ncz7a6.js → index-jzrvdqb8.js} +1 -1
- package/dist/{index-sp5pvs95.js → index-k34hc455.js} +2 -2
- package/dist/{index-9ffntwyr.js → index-kj4bprep.js} +4 -4
- package/dist/{index-xe34pwb6.js → index-mgy7g740.js} +1 -1
- package/dist/{index-2v9qpmb3.js → index-mmf6e740.js} +7 -7
- package/dist/{index-3tmbvn0z.js → index-pkxkeezb.js} +27 -19
- package/dist/{index-jm62g83a.js → index-qdjxrbnr.js} +71 -44
- package/dist/{index-xjaf9g90.js → index-r1d45dsr.js} +4 -4
- package/dist/{index-y915t3ey.js → index-r3f85n7y.js} +5 -1
- package/dist/{index-wqwjawer.js → index-tbdy1hk0.js} +6 -6
- package/dist/{index-m0pwswv9.js → index-tqtpgnhr.js} +1 -1
- package/dist/{index-zk6gtf43.js → index-w7n7qkpf.js} +5 -5
- package/dist/{index-ewta5h87.js → index-w9hxgntq.js} +5 -5
- package/dist/{index-2gewejcz.js → index-x49x59ar.js} +145 -32
- package/dist/{index-7dzaamqg.js → index-xcej5kpt.js} +4 -4
- package/dist/{index-s7460efs.js → index-zfx7mtqa.js} +1 -1
- package/dist/{index-c81tggen.js → index-zkjx8gq3.js} +11 -11
- package/dist/{index-et39x9k3.js → index-zmgp0tr6.js} +3 -3
- package/dist/index.js +58 -55
- package/dist/{logger-d7c8akh9.js → logger-nmb2508f.js} +2 -2
- package/dist/{message-fts-rowid-map-0xx8ge09.js → message-fts-rowid-map-vcatdan0.js} +5 -5
- package/dist/{message-index-bounded-d3x8rhpz.js → message-index-bounded-abhwe610.js} +12 -12
- package/dist/{message-time-backfill-pz5981mf.js → message-time-backfill-zc5rsvhv.js} +3 -3
- package/dist/migration-worker.js +13 -13
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-az68q792.js → project-embedding-registry-e566q4bg.js} +15 -15
- package/dist/raw-ordinal-warmup-worker.js +8 -8
- package/dist/{read-session-chunk-70r1snq3.js → read-session-chunk-sde0wym3.js} +10 -10
- package/dist/{read-session-raw-3sc9231y.js → read-session-raw-trhdgc9z.js} +3 -3
- package/dist/{recomp-orchestrator-cn4r2gz6.js → recomp-orchestrator-dapm3e4v.js} +33 -33
- package/dist/render-6vmqzcem.js +43 -0
- package/dist/{safe-notification-target-d21swr3n.js → safe-notification-target-54ns7dv9.js} +3 -3
- package/dist/{search-b0cb342r.js → search-11aw8wpq.js} +27 -27
- package/dist/{search-archive-s9t3exc1.js → search-archive-4bbn3ztv.js} +13 -13
- package/dist/{send-session-notification-0779tyd9.js → send-session-notification-gxrj4w1r.js} +6 -6
- package/dist/shared/host-sqlite-runtime.d.ts +3 -0
- package/dist/shared/host-sqlite-runtime.d.ts.map +1 -0
- package/dist/shared/redaction.d.ts.map +1 -1
- package/dist/shared/transcript.d.ts +14 -0
- package/dist/shared/transcript.d.ts.map +1 -1
- package/dist/{storage-tags-xvbje7jm.js → storage-tags-jq0c0zsn.js} +7 -7
- package/dist/{store-91kawq9a.js → store-29ksp6vy.js} +3 -3
- package/dist/{transform-postprocess-phase-r1xhsjrh.js → transform-postprocess-phase-1xrjg6be.js} +34 -34
- package/dist/v2/auto-search-worker.js +5 -5
- package/dist/v2/chunk-embedding-write-worker.js +16 -16
- package/dist/v2/{compaction-marker-candidates-bp1bn579.js → compaction-marker-candidates-6nypmsr3.js} +3 -3
- package/dist/v2/compaction-marker-candidates-worker.js +1 -1
- package/dist/v2/{compartment-chunk-embedding-a7ddvz7v.js → compartment-chunk-embedding-jthtfhcd.js} +8 -8
- package/dist/v2/{context-2hssw26q.js → context-43r0mzkp.js} +127 -111
- package/dist/v2/{derive-budgets-hr4qqrnv.js → derive-budgets-wj0q7s7d.js} +6 -6
- package/dist/v2/embedding-backfill-16b16m38.js +29 -0
- package/dist/v2/embedding-worker-process.js +2 -2
- package/dist/v2/embedding-worker.js +8 -8
- package/dist/v2/fold/native-replay.d.ts +2 -1
- package/dist/v2/fold/native-replay.d.ts.map +1 -1
- package/dist/v2/hidden-child-native.d.ts.map +1 -1
- package/dist/v2/hidden-child-record.d.ts +8 -0
- package/dist/v2/hidden-child-record.d.ts.map +1 -1
- package/dist/v2/hidden-completion.d.ts.map +1 -1
- package/dist/v2/hidden-run-holder.d.ts +8 -2
- package/dist/v2/hidden-run-holder.d.ts.map +1 -1
- package/dist/v2/{history-owner-260djmv5.js → history-owner-8pd5ax3n.js} +3 -3
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/hooks/hidden-child.d.ts +3 -0
- package/dist/v2/hooks/hidden-child.d.ts.map +1 -1
- package/dist/v2/{logger-zyf43np1.js → logger-58jfese9.js} +2 -2
- package/dist/v2/{message-fts-rowid-map-n8mcvcpz.js → message-fts-rowid-map-ax4vk78j.js} +5 -5
- package/dist/v2/{message-index-bounded-tbwrff24.js → message-index-bounded-qh794qxx.js} +12 -12
- package/dist/v2/{message-time-backfill-ynb3vg6r.js → message-time-backfill-yj773saf.js} +3 -3
- package/dist/v2/migration-worker.js +13 -13
- package/dist/v2/{project-embedding-registry-2zeycxek.js → project-embedding-registry-z05xvckg.js} +15 -15
- package/dist/v2/raw-ordinal-warmup-worker.js +8 -8
- package/dist/v2/{read-session-chunk-cvgsfsgr.js → read-session-chunk-8tn2dbn1.js} +10 -10
- package/dist/v2/{read-session-raw-wg5zc29f.js → read-session-raw-ywebck9q.js} +3 -3
- package/dist/v2/recomp-orchestrator-vzygyqwn.js +69 -0
- package/dist/v2/render-9b5dxp9e.js +43 -0
- package/dist/v2/{safe-notification-target-y55z2zat.js → safe-notification-target-zrwbh6k7.js} +3 -3
- package/dist/v2/{search-x1cac8t6.js → search-35cz80x0.js} +26 -26
- package/dist/v2/{search-archive-k2yh0jj3.js → search-archive-8zqsf9e6.js} +13 -13
- package/dist/v2/{send-session-notification-v69y04f5.js → send-session-notification-8x146x5y.js} +6 -6
- package/dist/v2/{server-gj259dqy.js → server-11ra1pmx.js} +5 -5
- package/dist/v2/{server-6nh36020.js → server-1fnsfm3a.js} +132 -33
- package/dist/v2/{server-gs2251jr.js → server-2cq3e1c1.js} +4 -4
- package/dist/v2/{server-39bcszk4.js → server-2qvnr3t7.js} +1 -1
- package/dist/v2/{server-jkj1dq6j.js → server-2sare4qg.js} +4 -4
- package/dist/v2/{server-jdfe07mp.js → server-2wz6y46g.js} +1 -1
- package/dist/v2/{server-at0v0z4t.js → server-379fd3n7.js} +1 -1
- package/dist/v2/{server-ds8vpfkr.js → server-40vdz8sf.js} +2 -2
- package/dist/v2/{server-qntmqaca.js → server-4yrvbnnm.js} +2 -2
- package/dist/v2/{server-x69fqsvz.js → server-5t4nzfpt.js} +1 -1
- package/dist/v2/{server-npdey91q.js → server-63ree5ns.js} +1 -1
- package/dist/v2/{server-gqkdfdvw.js → server-6qax5pds.js} +2 -2
- package/dist/v2/{server-qb3s0mnc.js → server-73bqw5c0.js} +1 -1
- package/dist/v2/{server-qy58c11s.js → server-7h4gwphm.js} +4 -4
- package/dist/v2/{server-476anw1w.js → server-7tj8yzrv.js} +1 -1
- package/dist/v2/{server-e6xneh68.js → server-arfzfxe8.js} +5 -1
- package/dist/v2/{server-6ash6z8z.js → server-av3p9c8k.js} +1 -1
- package/dist/v2/{server-5hwf5c7r.js → server-bx5k66qc.js} +1 -1
- package/dist/v2/{server-s81b3nct.js → server-db91dxwc.js} +7 -7
- package/dist/v2/{server-z4p0ry94.js → server-dt7cyqfe.js} +2 -1
- package/dist/v2/{server-zc8s06gx.js → server-ganavh75.js} +2 -2
- package/dist/v2/{server-cvm1qrqc.js → server-gh2w75fn.js} +3 -3
- package/dist/v2/{server-y0pd600x.js → server-j1gxs1gj.js} +1 -1
- package/dist/v2/{server-xepfjgv5.js → server-k3ntgf6n.js} +2 -2
- package/dist/v2/{server-j8376q08.js → server-kzrrdjp5.js} +1 -1
- package/dist/v2/{server-1rrmxhd1.js → server-n33hyq9t.js} +2 -2
- package/dist/v2/{server-0tv6kytx.js → server-n34vzyfm.js} +1 -1
- package/dist/v2/{server-prrx17q3.js → server-nnh81jqy.js} +6 -6
- package/dist/v2/{server-cd93xyyx.js → server-qjjky07w.js} +13 -11
- package/dist/v2/{server-vbr1rdkg.js → server-r3h4fy4k.js} +4 -4
- package/dist/v2/{server-96nm9vk4.js → server-rr5c0xcg.js} +2 -2
- package/dist/v2/{server-j4jjtdc5.js → server-rt8t6s2a.js} +2 -2
- package/dist/v2/{server-srtq37nh.js → server-svccj9rd.js} +4 -4
- package/dist/v2/{server-5sbsnpkn.js → server-tq523gj6.js} +1 -1
- package/dist/v2/{server-00adcfjd.js → server-vj0xbbrc.js} +17 -3
- package/dist/v2/{server-88pjnecb.js → server-vsx9tsks.js} +11 -11
- package/dist/v2/{server-s8mk882p.js → server-xekyjy4w.js} +6 -6
- package/dist/v2/{server-bfct1yvb.js → server-z2nv8jdv.js} +41 -21
- package/dist/v2/{server-6aj72z52.js → server-z5cv5wm5.js} +10 -10
- package/dist/v2/{server-5016ccyn.js → server-zemnpv92.js} +4 -4
- package/dist/v2/server.js +9 -9
- package/dist/v2/{storage-tags-y20j3jdp.js → storage-tags-pcenytad.js} +7 -7
- package/dist/v2/{store-b95snz31.js → store-gx19qc3a.js} +3 -3
- package/dist/v2/{v2-archive-reader-q92kwkr5.js → v2-archive-reader-hvdyz30c.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-ydqkxkhj.js → wrapup-orchestrator-0d4ceff3.js} +34 -34
- package/dist/{v2-archive-reader-x62hsr4c.js → v2-archive-reader-qs24chs6.js} +1 -1
- package/dist/wrapup-orchestrator-v1mhjw55.js +56 -0
- package/package.json +1 -1
- package/src/config/index.test.ts +23 -5
- package/src/config/live-run-config.test.ts +7 -7
- package/src/config/removed-agent-config.ts +14 -1
- package/src/config/schema/magic-context.ts +5 -1
- package/src/shared/host-sqlite-runtime.test.ts +21 -0
- package/src/shared/host-sqlite-runtime.ts +32 -0
- package/src/shared/redaction.test.ts +11 -8
- package/src/shared/redaction.ts +5 -1
- package/src/shared/tag-transcript.ts +61 -10
- package/src/shared/transcript.ts +16 -0
- package/dist/embedding-backfill-wdrqkw09.js +0 -29
- package/dist/render-g45k3gts.js +0 -43
- package/dist/v2/embedding-backfill-gveter8p.js +0 -29
- package/dist/v2/recomp-orchestrator-k4cj62f2.js +0 -69
- package/dist/v2/render-ys7a3zks.js +0 -43
- package/dist/wrapup-orchestrator-kt81d6et.js +0 -56
|
@@ -1423,11 +1423,27 @@ function buildAggregateTarget(
|
|
|
1423
1423
|
return any ? "truncated" : "absent";
|
|
1424
1424
|
};
|
|
1425
1425
|
|
|
1426
|
+
// Whether the host keeps this kept call's real arguments. Asks every call
|
|
1427
|
+
// occurrence, so the host learns about each call it must send that way.
|
|
1428
|
+
const keepsRealArgumentsWhenKept = (): boolean => {
|
|
1429
|
+
let keeps = false;
|
|
1430
|
+
for (const occ of occurrences) {
|
|
1431
|
+
if (occ.kind === "tool_use" && occ.part.keepsRealArgumentsWhenKept?.() === true)
|
|
1432
|
+
keeps = true;
|
|
1433
|
+
}
|
|
1434
|
+
return keeps;
|
|
1435
|
+
};
|
|
1436
|
+
|
|
1426
1437
|
// Adapters without structural removal (or arcs that must keep their pair
|
|
1427
1438
|
// beside native reasoning) cannot remove the call; drop() would keep it.
|
|
1439
|
+
// Asked without recording a removal where the host can: a planner keeps
|
|
1440
|
+
// the call when this says so, and a recorded removal would be replayed
|
|
1441
|
+
// into the kept call's native history item.
|
|
1428
1442
|
const cannotRemove = (): boolean => {
|
|
1429
1443
|
if (requiresToolArcSkeleton) return true;
|
|
1430
|
-
const authorization = occurrences.map((occ) =>
|
|
1444
|
+
const authorization = occurrences.map((occ) =>
|
|
1445
|
+
occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.(),
|
|
1446
|
+
);
|
|
1431
1447
|
return !occurrences.every(
|
|
1432
1448
|
(occ, index) => occ.part.remove && authorization[index] !== false,
|
|
1433
1449
|
);
|
|
@@ -1441,7 +1457,11 @@ function buildAggregateTarget(
|
|
|
1441
1457
|
measureReclaim(skeleton) {
|
|
1442
1458
|
let beforeTools = 0;
|
|
1443
1459
|
let afterTools = 0;
|
|
1444
|
-
|
|
1460
|
+
// Measuring must not record a removal for a call the caller may
|
|
1461
|
+
// leave in place; ask without recording where the host can.
|
|
1462
|
+
const authorization = occurrences.map((occ) =>
|
|
1463
|
+
occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.(),
|
|
1464
|
+
);
|
|
1445
1465
|
const removable =
|
|
1446
1466
|
!requiresToolArcSkeleton &&
|
|
1447
1467
|
occurrences.every(
|
|
@@ -1510,18 +1530,34 @@ function buildAggregateTarget(
|
|
|
1510
1530
|
// "truncated" tells callers to persist that mode
|
|
1511
1531
|
// (`skeleton_real`), so later passes serve the same bytes.
|
|
1512
1532
|
// (The sentinel fallback below keeps call and result in place,
|
|
1513
|
-
// so it needs no exception.)
|
|
1514
|
-
|
|
1533
|
+
// so it needs no exception.) The host is asked about the call
|
|
1534
|
+
// too, so a host that keeps real arguments for it sends the
|
|
1535
|
+
// same arguments in every copy of the call.
|
|
1536
|
+
if (conversationEnd?.wouldStrand(occurrences)) {
|
|
1537
|
+
keepsRealArgumentsWhenKept();
|
|
1538
|
+
return skeletonReal();
|
|
1539
|
+
}
|
|
1515
1540
|
let removed = false;
|
|
1516
1541
|
for (const occ of occurrences) removed = occ.part.remove?.() || removed;
|
|
1517
1542
|
if (removed) conversationEnd?.noteRemoved(occurrences);
|
|
1518
1543
|
return removed ? "removed" : "absent";
|
|
1519
1544
|
}
|
|
1520
1545
|
}
|
|
1521
|
-
//
|
|
1522
|
-
//
|
|
1523
|
-
//
|
|
1524
|
-
//
|
|
1546
|
+
// The call stays in place on this pass. When the host keeps its real
|
|
1547
|
+
// arguments (on Pi: a removal of this pair was recorded on a pass
|
|
1548
|
+
// whose model allowed it), this renders the bytes of a
|
|
1549
|
+
// `skeleton_real` row: real arguments, `[dropped §N§]` result. The
|
|
1550
|
+
// row stays `full`, so a later pass that can remove the call does.
|
|
1551
|
+
if (keepsRealArgumentsWhenKept()) return skeletonReal();
|
|
1552
|
+
// Otherwise the call keeps its place with a `{"dropped": …}` marker
|
|
1553
|
+
// in its arguments. That is the form such a row has had since it was
|
|
1554
|
+
// dropped, and replaying it keeps the cached prompt's bytes: a `full`
|
|
1555
|
+
// row that was never removed, which `/ctx-flush` leaves when it marks
|
|
1556
|
+
// queued drops `full` without asking whether the call can be removed,
|
|
1557
|
+
// and a `ctx_reduce` drop whose call was absent when it applied. A
|
|
1558
|
+
// new drop planned by planNewToolDrop keeps a call it cannot remove
|
|
1559
|
+
// as `skeleton_real` instead, and a HARD fold converts such a row to
|
|
1560
|
+
// `skeleton_real` when its call cannot be removed.
|
|
1525
1561
|
const sentinel = `[dropped \u00a7${tagId}\u00a7]`;
|
|
1526
1562
|
let any = false;
|
|
1527
1563
|
for (const occ of occurrences) {
|
|
@@ -1567,8 +1603,23 @@ function buildAggregateTarget(
|
|
|
1567
1603
|
}
|
|
1568
1604
|
return any ? "truncated" : "absent";
|
|
1569
1605
|
},
|
|
1570
|
-
//
|
|
1571
|
-
|
|
1606
|
+
// Admission for a new drop of this arc: false while the host already
|
|
1607
|
+
// knows it cannot decide the arc's removal (a removal answer of
|
|
1608
|
+
// "defer"). Asked without recording anything where the host can, since
|
|
1609
|
+
// the drop may keep the call in place; on Pi the answer does not
|
|
1610
|
+
// foresee whether a later write of the record succeeds (prepareRemoval
|
|
1611
|
+
// finds that out).
|
|
1612
|
+
prepareDrop: () =>
|
|
1613
|
+
!occurrences.some(
|
|
1614
|
+
(occ) =>
|
|
1615
|
+
(occ.part.wouldRemove ? occ.part.wouldRemove() : occ.part.canRemove?.()) ===
|
|
1616
|
+
"defer",
|
|
1617
|
+
),
|
|
1618
|
+
// Prepare this arc's removal: on Pi this records the removal decision,
|
|
1619
|
+
// and refuses (false) when that record cannot be written. Call it only
|
|
1620
|
+
// for an arc that will be removed: the record is replayed into the
|
|
1621
|
+
// call's native history item on every later pass.
|
|
1622
|
+
prepareRemoval: () => !occurrences.some((occ) => occ.part.canRemove?.() === "defer"),
|
|
1572
1623
|
prepareReplayDrop: () => {
|
|
1573
1624
|
if (complete() && !requiresToolArcSkeleton) {
|
|
1574
1625
|
for (const occ of occurrences) occ.part.canRemove?.();
|
package/src/shared/transcript.ts
CHANGED
|
@@ -177,12 +177,28 @@ export interface TranscriptPart {
|
|
|
177
177
|
*/
|
|
178
178
|
replaceWithSentinel(sentinelText: string): boolean;
|
|
179
179
|
|
|
180
|
+
/**
|
|
181
|
+
* Tool calls only: true when a dropped call that this pass keeps in place
|
|
182
|
+
* keeps the arguments the model wrote (only its result becomes the
|
|
183
|
+
* placeholder) instead of the `{"dropped": …}` marker. Absent or false
|
|
184
|
+
* means the marker. A host that answers true may note the call, so every
|
|
185
|
+
* copy of it the host sends carries the same arguments.
|
|
186
|
+
*/
|
|
187
|
+
keepsRealArgumentsWhenKept?(): boolean;
|
|
188
|
+
|
|
180
189
|
/** Remove one half of a complete tool arc. Callers must remove both halves together. */
|
|
181
190
|
remove?(): boolean;
|
|
182
191
|
/** Refuse structural deletion when the adapter cannot match provider-native identity safely. */
|
|
183
192
|
/** A deferred durable decision vetoes the whole drop, including sentinel fallback. */
|
|
184
193
|
canRemove?(): boolean | "defer";
|
|
185
194
|
|
|
195
|
+
/**
|
|
196
|
+
* What canRemove() would answer, without recording anything. Measuring a
|
|
197
|
+
* candidate for a drop uses it: only a drop that is actually chosen may
|
|
198
|
+
* record a removal, which later passes replay.
|
|
199
|
+
*/
|
|
200
|
+
wouldRemove?(): boolean | "defer";
|
|
201
|
+
|
|
186
202
|
/**
|
|
187
203
|
* Optional: serialized byte size of the part's REAL payload, including
|
|
188
204
|
* non-text content (images, structured data) that `getText()` can't
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./index-3ywyr4zx.js";
|
|
4
|
-
import"./index-tedck05r.js";
|
|
5
|
-
import"./index-qjwpqvnf.js";
|
|
6
|
-
import"./index-2amn2s73.js";
|
|
7
|
-
import"./index-qt1qqasc.js";
|
|
8
|
-
import"./index-xjaf9g90.js";
|
|
9
|
-
import"./index-y915t3ey.js";
|
|
10
|
-
import"./index-r4y0dczp.js";
|
|
11
|
-
import"./index-ejgp0z9p.js";
|
|
12
|
-
import"./index-j7n64sg4.js";
|
|
13
|
-
import"./index-5pgyqgmx.js";
|
|
14
|
-
import"./index-s32f8y67.js";
|
|
15
|
-
import"./index-q7q6qp1f.js";
|
|
16
|
-
import"./index-96ztjvkn.js";
|
|
17
|
-
import"./index-v0p37hm2.js";
|
|
18
|
-
import"./index-m0pwswv9.js";
|
|
19
|
-
import"./index-5df2fw5b.js";
|
|
20
|
-
import"./index-gqf8r04r.js";
|
|
21
|
-
import"./index-s7460efs.js";
|
|
22
|
-
import"./index-gzy5w8ya.js";
|
|
23
|
-
import"./index-ywrz4wy2.js";
|
|
24
|
-
import"./index-pavzsdc6.js";
|
|
25
|
-
import"./index-z4p0ry94.js";
|
|
26
|
-
import"./index-1d042x6w.js";
|
|
27
|
-
export {
|
|
28
|
-
ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
|
|
29
|
-
};
|
package/dist/render-g45k3gts.js
DELETED
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderMessageByOrdinal2,
|
|
3
|
-
renderVerboseRangeForTool2,
|
|
4
|
-
renderItemByTag2
|
|
5
|
-
} from "./index-yzzxb5e1.js";
|
|
6
|
-
import"./index-pc49a7zt.js";
|
|
7
|
-
import"./index-mjy2k9jr.js";
|
|
8
|
-
import"./index-esacb9d0.js";
|
|
9
|
-
import"./index-2amn2s73.js";
|
|
10
|
-
import"./index-tr4ep2ej.js";
|
|
11
|
-
import"./index-7r11k4xr.js";
|
|
12
|
-
import"./index-zk6gtf43.js";
|
|
13
|
-
import"./index-1zx87sdm.js";
|
|
14
|
-
import"./index-sp5pvs95.js";
|
|
15
|
-
import"./index-y915t3ey.js";
|
|
16
|
-
import"./index-ejgp0z9p.js";
|
|
17
|
-
import"./index-j7n64sg4.js";
|
|
18
|
-
import"./index-c81tggen.js";
|
|
19
|
-
import"./index-fb3zxn06.js";
|
|
20
|
-
import"./index-jba6ny4m.js";
|
|
21
|
-
import"./index-fr0wbhdn.js";
|
|
22
|
-
import"./index-5pgyqgmx.js";
|
|
23
|
-
import"./index-s32f8y67.js";
|
|
24
|
-
import"./index-wh9fxds5.js";
|
|
25
|
-
import"./index-mg9s2rc3.js";
|
|
26
|
-
import"./index-q7q6qp1f.js";
|
|
27
|
-
import"./index-96ztjvkn.js";
|
|
28
|
-
import"./index-v0p37hm2.js";
|
|
29
|
-
import"./index-58e3y90n.js";
|
|
30
|
-
import"./index-m0pwswv9.js";
|
|
31
|
-
import"./index-5df2fw5b.js";
|
|
32
|
-
import"./index-gqf8r04r.js";
|
|
33
|
-
import"./index-s7460efs.js";
|
|
34
|
-
import"./index-gzy5w8ya.js";
|
|
35
|
-
import"./index-ywrz4wy2.js";
|
|
36
|
-
import"./index-pavzsdc6.js";
|
|
37
|
-
import"./index-z4p0ry94.js";
|
|
38
|
-
import"./index-1d042x6w.js";
|
|
39
|
-
export {
|
|
40
|
-
renderItemByTag2 as renderItemByTag,
|
|
41
|
-
renderMessageByOrdinal2 as renderMessageByOrdinal,
|
|
42
|
-
renderVerboseRangeForTool2 as renderVerboseRangeForTool
|
|
43
|
-
};
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./server-zc8s06gx.js";
|
|
4
|
-
import"./server-6aj72z52.js";
|
|
5
|
-
import"./server-qjwpqvnf.js";
|
|
6
|
-
import"./server-2amn2s73.js";
|
|
7
|
-
import"./server-qt1qqasc.js";
|
|
8
|
-
import"./server-qy58c11s.js";
|
|
9
|
-
import"./server-e6xneh68.js";
|
|
10
|
-
import"./server-gqkdfdvw.js";
|
|
11
|
-
import"./server-5016ccyn.js";
|
|
12
|
-
import"./server-xepfjgv5.js";
|
|
13
|
-
import"./server-1rrmxhd1.js";
|
|
14
|
-
import"./server-ds8vpfkr.js";
|
|
15
|
-
import"./server-6ash6z8z.js";
|
|
16
|
-
import"./server-96ztjvkn.js";
|
|
17
|
-
import"./server-v0p37hm2.js";
|
|
18
|
-
import"./server-5sbsnpkn.js";
|
|
19
|
-
import"./server-qb3s0mnc.js";
|
|
20
|
-
import"./server-0tv6kytx.js";
|
|
21
|
-
import"./server-jdfe07mp.js";
|
|
22
|
-
import"./server-gzy5w8ya.js";
|
|
23
|
-
import"./server-j8376q08.js";
|
|
24
|
-
import"./server-pavzsdc6.js";
|
|
25
|
-
import"./server-z4p0ry94.js";
|
|
26
|
-
import"./server-1d042x6w.js";
|
|
27
|
-
export {
|
|
28
|
-
ensureMemoryEmbeddings2 as ensureMemoryEmbeddings
|
|
29
|
-
};
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
isRecompFailure2,
|
|
3
|
-
isRecompSkip2,
|
|
4
|
-
extractRecompReason2,
|
|
5
|
-
setRecompStarting2,
|
|
6
|
-
setRecompNote2,
|
|
7
|
-
setRecompTerminal2,
|
|
8
|
-
buildRecompDeps2,
|
|
9
|
-
runManagedRecomp2
|
|
10
|
-
} from "./server-6nh36020.js";
|
|
11
|
-
import"./server-at0v0z4t.js";
|
|
12
|
-
import"./server-prrx17q3.js";
|
|
13
|
-
import"./server-zc8s06gx.js";
|
|
14
|
-
import"./server-9emdjcb5.js";
|
|
15
|
-
import"./server-6aj72z52.js";
|
|
16
|
-
import"./server-qjwpqvnf.js";
|
|
17
|
-
import"./server-cd93xyyx.js";
|
|
18
|
-
import"./server-x69fqsvz.js";
|
|
19
|
-
import"./server-srtq37nh.js";
|
|
20
|
-
import"./server-2amn2s73.js";
|
|
21
|
-
import"./server-vtkbxzw1.js";
|
|
22
|
-
import"./server-j4jjtdc5.js";
|
|
23
|
-
import"./server-gs2251jr.js";
|
|
24
|
-
import"./server-qt1qqasc.js";
|
|
25
|
-
import"./server-s81b3nct.js";
|
|
26
|
-
import"./server-gj259dqy.js";
|
|
27
|
-
import"./server-1zx87sdm.js";
|
|
28
|
-
import"./server-5hwf5c7r.js";
|
|
29
|
-
import"./server-npdey91q.js";
|
|
30
|
-
import"./server-00adcfjd.js";
|
|
31
|
-
import"./server-96nm9vk4.js";
|
|
32
|
-
import"./server-n5wn7d9b.js";
|
|
33
|
-
import"./server-y14pawe1.js";
|
|
34
|
-
import"./server-qy58c11s.js";
|
|
35
|
-
import"./server-e6xneh68.js";
|
|
36
|
-
import"./server-gqkdfdvw.js";
|
|
37
|
-
import"./server-5016ccyn.js";
|
|
38
|
-
import"./server-xepfjgv5.js";
|
|
39
|
-
import"./server-88pjnecb.js";
|
|
40
|
-
import"./server-fb3zxn06.js";
|
|
41
|
-
import"./server-jkj1dq6j.js";
|
|
42
|
-
import"./server-fr0wbhdn.js";
|
|
43
|
-
import"./server-1rrmxhd1.js";
|
|
44
|
-
import"./server-ds8vpfkr.js";
|
|
45
|
-
import"./server-39bcszk4.js";
|
|
46
|
-
import"./server-qntmqaca.js";
|
|
47
|
-
import"./server-6ash6z8z.js";
|
|
48
|
-
import"./server-96ztjvkn.js";
|
|
49
|
-
import"./server-v0p37hm2.js";
|
|
50
|
-
import"./server-2ra6pwf3.js";
|
|
51
|
-
import"./server-5sbsnpkn.js";
|
|
52
|
-
import"./server-qb3s0mnc.js";
|
|
53
|
-
import"./server-0tv6kytx.js";
|
|
54
|
-
import"./server-jdfe07mp.js";
|
|
55
|
-
import"./server-gzy5w8ya.js";
|
|
56
|
-
import"./server-j8376q08.js";
|
|
57
|
-
import"./server-pavzsdc6.js";
|
|
58
|
-
import"./server-z4p0ry94.js";
|
|
59
|
-
import"./server-1d042x6w.js";
|
|
60
|
-
export {
|
|
61
|
-
buildRecompDeps2 as buildRecompDeps,
|
|
62
|
-
extractRecompReason2 as extractRecompReason,
|
|
63
|
-
isRecompFailure2 as isRecompFailure,
|
|
64
|
-
isRecompSkip2 as isRecompSkip,
|
|
65
|
-
runManagedRecomp2 as runManagedRecomp,
|
|
66
|
-
setRecompNote2 as setRecompNote,
|
|
67
|
-
setRecompStarting2 as setRecompStarting,
|
|
68
|
-
setRecompTerminal2 as setRecompTerminal
|
|
69
|
-
};
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
renderMessageByOrdinal2,
|
|
3
|
-
renderVerboseRangeForTool2,
|
|
4
|
-
renderItemByTag2
|
|
5
|
-
} from "./server-cvm1qrqc.js";
|
|
6
|
-
import"./server-cd93xyyx.js";
|
|
7
|
-
import"./server-x69fqsvz.js";
|
|
8
|
-
import"./server-srtq37nh.js";
|
|
9
|
-
import"./server-2amn2s73.js";
|
|
10
|
-
import"./server-vtkbxzw1.js";
|
|
11
|
-
import"./server-s81b3nct.js";
|
|
12
|
-
import"./server-gj259dqy.js";
|
|
13
|
-
import"./server-1zx87sdm.js";
|
|
14
|
-
import"./server-5hwf5c7r.js";
|
|
15
|
-
import"./server-e6xneh68.js";
|
|
16
|
-
import"./server-5016ccyn.js";
|
|
17
|
-
import"./server-xepfjgv5.js";
|
|
18
|
-
import"./server-88pjnecb.js";
|
|
19
|
-
import"./server-fb3zxn06.js";
|
|
20
|
-
import"./server-jkj1dq6j.js";
|
|
21
|
-
import"./server-fr0wbhdn.js";
|
|
22
|
-
import"./server-1rrmxhd1.js";
|
|
23
|
-
import"./server-ds8vpfkr.js";
|
|
24
|
-
import"./server-39bcszk4.js";
|
|
25
|
-
import"./server-qntmqaca.js";
|
|
26
|
-
import"./server-6ash6z8z.js";
|
|
27
|
-
import"./server-96ztjvkn.js";
|
|
28
|
-
import"./server-v0p37hm2.js";
|
|
29
|
-
import"./server-2ra6pwf3.js";
|
|
30
|
-
import"./server-5sbsnpkn.js";
|
|
31
|
-
import"./server-qb3s0mnc.js";
|
|
32
|
-
import"./server-0tv6kytx.js";
|
|
33
|
-
import"./server-jdfe07mp.js";
|
|
34
|
-
import"./server-gzy5w8ya.js";
|
|
35
|
-
import"./server-j8376q08.js";
|
|
36
|
-
import"./server-pavzsdc6.js";
|
|
37
|
-
import"./server-z4p0ry94.js";
|
|
38
|
-
import"./server-1d042x6w.js";
|
|
39
|
-
export {
|
|
40
|
-
renderItemByTag2 as renderItemByTag,
|
|
41
|
-
renderMessageByOrdinal2 as renderMessageByOrdinal,
|
|
42
|
-
renderVerboseRangeForTool2 as renderVerboseRangeForTool
|
|
43
|
-
};
|
|
@@ -1,56 +0,0 @@
|
|
|
1
|
-
import {
|
|
2
|
-
runManagedWrapup2
|
|
3
|
-
} from "./index-2v9qpmb3.js";
|
|
4
|
-
import"./index-ewta5h87.js";
|
|
5
|
-
import"./index-2gewejcz.js";
|
|
6
|
-
import"./index-832w615x.js";
|
|
7
|
-
import"./index-sd3egckz.js";
|
|
8
|
-
import"./index-qmm8xpbc.js";
|
|
9
|
-
import"./index-3ywyr4zx.js";
|
|
10
|
-
import"./index-9emdjcb5.js";
|
|
11
|
-
import"./index-tedck05r.js";
|
|
12
|
-
import"./index-qjwpqvnf.js";
|
|
13
|
-
import"./index-pc49a7zt.js";
|
|
14
|
-
import"./index-mjy2k9jr.js";
|
|
15
|
-
import"./index-esacb9d0.js";
|
|
16
|
-
import"./index-2amn2s73.js";
|
|
17
|
-
import"./index-tr4ep2ej.js";
|
|
18
|
-
import"./index-xsqw8kbd.js";
|
|
19
|
-
import"./index-fqth7850.js";
|
|
20
|
-
import"./index-9ffntwyr.js";
|
|
21
|
-
import"./index-qt1qqasc.js";
|
|
22
|
-
import"./index-7r11k4xr.js";
|
|
23
|
-
import"./index-zk6gtf43.js";
|
|
24
|
-
import"./index-1zx87sdm.js";
|
|
25
|
-
import"./index-sp5pvs95.js";
|
|
26
|
-
import"./index-y14pawe1.js";
|
|
27
|
-
import"./index-e6ncz7a6.js";
|
|
28
|
-
import"./index-xjaf9g90.js";
|
|
29
|
-
import"./index-y915t3ey.js";
|
|
30
|
-
import"./index-r4y0dczp.js";
|
|
31
|
-
import"./index-ejgp0z9p.js";
|
|
32
|
-
import"./index-j7n64sg4.js";
|
|
33
|
-
import"./index-c81tggen.js";
|
|
34
|
-
import"./index-fb3zxn06.js";
|
|
35
|
-
import"./index-jba6ny4m.js";
|
|
36
|
-
import"./index-fr0wbhdn.js";
|
|
37
|
-
import"./index-5pgyqgmx.js";
|
|
38
|
-
import"./index-s32f8y67.js";
|
|
39
|
-
import"./index-wh9fxds5.js";
|
|
40
|
-
import"./index-mg9s2rc3.js";
|
|
41
|
-
import"./index-q7q6qp1f.js";
|
|
42
|
-
import"./index-96ztjvkn.js";
|
|
43
|
-
import"./index-v0p37hm2.js";
|
|
44
|
-
import"./index-58e3y90n.js";
|
|
45
|
-
import"./index-m0pwswv9.js";
|
|
46
|
-
import"./index-5df2fw5b.js";
|
|
47
|
-
import"./index-gqf8r04r.js";
|
|
48
|
-
import"./index-s7460efs.js";
|
|
49
|
-
import"./index-gzy5w8ya.js";
|
|
50
|
-
import"./index-ywrz4wy2.js";
|
|
51
|
-
import"./index-pavzsdc6.js";
|
|
52
|
-
import"./index-z4p0ry94.js";
|
|
53
|
-
import"./index-1d042x6w.js";
|
|
54
|
-
export {
|
|
55
|
-
runManagedWrapup2 as runManagedWrapup
|
|
56
|
-
};
|