@cortexkit/opencode-magic-context 0.49.15 → 0.49.16
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 +3 -3
- package/dist/chunk-embedding-write-worker.js +5 -3
- package/dist/config/schema/magic-context.d.ts +65 -65
- package/dist/config/schema/magic-context.d.ts.map +1 -1
- package/dist/{conflict-warning-hook-mgq17yr3.js → conflict-warning-hook-znry4j76.js} +5 -5
- package/dist/{context-0m46day0.js → context-3znk23va.js} +26 -20
- package/dist/{embedding-backfill-5e1t5wha.js → embedding-backfill-q4n8dend.js} +8 -6
- package/dist/embedding-worker.js +2 -2
- package/dist/features/magic-context/message-fts-rowid-map.d.ts +2 -2
- package/dist/features/magic-context/message-fts-rowid-map.d.ts.map +1 -1
- package/dist/features/magic-context/message-fts-session-filter.d.ts +2 -0
- package/dist/features/magic-context/message-fts-session-filter.d.ts.map +1 -1
- package/dist/features/magic-context/message-time-backfill.d.ts +2 -2
- package/dist/features/magic-context/message-time-backfill.d.ts.map +1 -1
- package/dist/features/magic-context/storage-db.d.ts +2 -1
- package/dist/features/magic-context/storage-db.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-historian.d.ts +2 -2
- package/dist/hooks/magic-context/compartment-runner-incremental.d.ts.map +1 -1
- package/dist/hooks/magic-context/compartment-runner-validation.d.ts.map +1 -1
- package/dist/hooks/magic-context/emergency-drop.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-host-runner.d.ts.map +1 -1
- package/dist/hooks/magic-context/historian-prompt-fit.d.ts +2 -1
- package/dist/hooks/magic-context/historian-prompt-fit.d.ts.map +1 -1
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts +26 -0
- package/dist/hooks/magic-context/raw-ordinal-warmup.d.ts.map +1 -1
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts +3 -3
- package/dist/hooks/magic-context/recomp-orchestrator.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform-postprocess-phase.d.ts.map +1 -1
- package/dist/hooks/magic-context/transform.d.ts.map +1 -1
- package/dist/{index-xn6q9pg6.js → index-4qfy7v57.js} +11 -62
- package/dist/{index-e4dsjj1p.js → index-5mwk1nek.js} +1 -1
- package/dist/index-6a6dq53h.js +96 -0
- package/dist/{index-e20m7284.js → index-7b2cfmaz.js} +1 -1
- package/dist/{index-mmfa86mt.js → index-7pa32z07.js} +169 -149
- package/dist/{index-3kdm78zp.js → index-9nkg2dzk.js} +3 -3
- package/dist/{index-snp5wbge.js → index-ayym1x7f.js} +25 -23
- package/dist/{index-dgs16axy.js → index-b17m64g9.js} +1 -1
- package/dist/{index-yxycg7fs.js → index-cj9g0j7a.js} +22 -14
- package/dist/{index-dyvbsvga.js → index-dqe8pq4x.js} +21 -10
- package/dist/{index-42vcjcwe.js → index-ek1yxvvz.js} +34 -76
- package/dist/{index-3kx0kg0f.js → index-hehkf6zm.js} +3 -3
- package/dist/{index-944w16m0.js → index-j6zw70pf.js} +4 -4
- package/dist/index-kaqs6h31.js +58 -0
- package/dist/{index-ts1hjk1h.js → index-kn4t1haw.js} +15 -12
- package/dist/{index-1d289pq2.js → index-mtw9e71a.js} +1 -1
- package/dist/{index-mht7bq0z.js → index-nd7m2a5a.js} +7 -5
- package/dist/{index-thvnpfsv.js → index-p4vde22c.js} +14 -14
- package/dist/{index-y1qysm3q.js → index-qrahzcqv.js} +3 -3
- package/dist/{index-1vc7jrkg.js → index-v63beg1z.js} +3 -3
- package/dist/{index-mc1cqza6.js → index-v9asb16b.js} +4 -4
- package/dist/{index-1sarmj9z.js → index-wgypt3cs.js} +6 -6
- package/dist/{index-bxdg2nbt.js → index-wv9n2zcq.js} +1 -1
- package/dist/index.js +38 -36
- package/dist/message-fts-rowid-map-yvx5a9jw.js +23 -0
- package/dist/{message-index-bounded-vtgpq6b4.js → message-index-bounded-6th8djy9.js} +8 -8
- package/dist/{message-index-a6gztaqx.js → message-index-t4pz7akd.js} +9 -9
- package/dist/{message-time-backfill-qjge9044.js → message-time-backfill-8egzkd3z.js} +4 -4
- package/dist/migration-worker.js +4 -2
- package/dist/plugin/hooks/create-session-hooks.d.ts.map +1 -1
- package/dist/{project-embedding-registry-x45bv3qr.js → project-embedding-registry-2dea0a77.js} +7 -5
- package/dist/raw-ordinal-warmup-worker.js +37 -7
- package/dist/{read-session-chunk-3ae3nfdn.js → read-session-chunk-4pwqxm5a.js} +6 -6
- package/dist/{read-session-raw-m56hc7v2.js → read-session-raw-5ar8se5v.js} +1 -1
- package/dist/{recomp-orchestrator-nwzcfhx4.js → recomp-orchestrator-tjcaj5x7.js} +17 -17
- package/dist/search-archive-02jws7hw.js +25 -0
- package/dist/{search-deajrd90.js → search-rb01n29x.js} +15 -14
- package/dist/{send-session-notification-24r4esbh.js → send-session-notification-2x9edkrp.js} +4 -4
- package/dist/shared/model-suggestion-retry.d.ts +2 -0
- package/dist/shared/model-suggestion-retry.d.ts.map +1 -1
- package/dist/shared/resolve-fallbacks.d.ts +3 -3
- package/dist/{storage-tags-s5bg1ahx.js → storage-tags-4z1w27xa.js} +1 -1
- package/dist/tools/ctx-expand/search-archive.d.ts +5 -1
- package/dist/tools/ctx-expand/search-archive.d.ts.map +1 -1
- package/dist/{transform-postprocess-phase-ne3z1zmt.js → transform-postprocess-phase-xaw5c3xp.js} +17 -17
- package/dist/v2/auto-search-worker.js +3 -3
- package/dist/v2/chunk-embedding-write-worker.js +8 -6
- package/dist/v2/{context-4qczzck7.js → context-acw1nhv8.js} +52 -86
- package/dist/v2/{embedding-backfill-jmaf8zrr.js → embedding-backfill-jyd6492b.js} +10 -8
- package/dist/v2/embedding-worker.js +2 -2
- package/dist/v2/hooks/context.d.ts.map +1 -1
- package/dist/v2/message-fts-rowid-map-8vf0v7cr.js +22 -0
- package/dist/v2/{message-index-bounded-rxxznd34.js → message-index-bounded-dsrf49y7.js} +7 -7
- package/dist/v2/{message-index-f947qtbz.js → message-index-e6qzw477.js} +8 -8
- package/dist/v2/{message-time-backfill-bsteyc4d.js → message-time-backfill-q5pgxf0d.js} +4 -4
- package/dist/v2/migration-worker.js +6 -4
- package/dist/v2/{project-embedding-registry-0msp56p8.js → project-embedding-registry-rek75aqw.js} +9 -7
- package/dist/v2/raw-ordinal-warmup-worker.js +37 -7
- package/dist/v2/{read-session-chunk-rq9nx1nn.js → read-session-chunk-7bpygfv2.js} +5 -5
- package/dist/v2/{read-session-raw-b3tf6ra1.js → read-session-raw-pw2n1qgc.js} +1 -1
- package/dist/v2/{recomp-orchestrator-5zhxtwha.js → recomp-orchestrator-hzpgg06e.js} +18 -18
- package/dist/v2/search-archive-fn4wy8sx.js +24 -0
- package/dist/v2/{search-n8wqxb1j.js → search-sf2vg5pk.js} +17 -16
- package/dist/v2/{send-session-notification-8ghn9tnv.js → send-session-notification-hmr7q0nt.js} +2 -2
- package/dist/v2/{server-k2bzedxk.js → server-00hx04yn.js} +1 -1
- package/dist/v2/{server-atbc19ab.js → server-0mzjjw3s.js} +7 -5
- package/dist/v2/{server-ehyava47.js → server-1hcbw661.js} +3 -3
- package/dist/v2/{server-th4y11y7.js → server-271qxsf5.js} +6 -6
- package/dist/v2/{server-prg55b7k.js → server-6714jebr.js} +22 -2
- package/dist/v2/{server-dd0tz6cn.js → server-6fyp0v67.js} +26 -24
- package/dist/v2/{server-yrvqaswb.js → server-785mb90s.js} +21 -10
- package/dist/v2/{server-ef89gdsx.js → server-aavz8pm6.js} +3 -3
- package/dist/v2/{server-gvkm8xaj.js → server-e3ftpk7v.js} +1 -1
- package/dist/v2/{server-e298hswg.js → server-g59aatsz.js} +14 -14
- package/dist/v2/{server-g10mdym6.js → server-gha9x4qq.js} +1 -1
- package/dist/v2/{server-4gn3z5an.js → server-hgg55hde.js} +1 -1
- package/dist/v2/server-kaqs6h31.js +58 -0
- package/dist/v2/{server-qhfvvfxj.js → server-kqpawe1a.js} +3 -3
- package/dist/v2/{server-hek6z3w6.js → server-kr2kc9dz.js} +5 -5
- package/dist/v2/{server-cfbr1s2x.js → server-n5q841qn.js} +12 -63
- package/dist/v2/{server-kmbarfmn.js → server-r9gjxcte.js} +24 -16
- package/dist/v2/{server-6cdy4rc0.js → server-vgpab6rd.js} +2 -2
- package/dist/v2/{server-zc3e54vy.js → server-y5pznjt9.js} +1 -1
- package/dist/v2/server-zyw55ygv.js +96 -0
- package/dist/v2/server.js +4 -4
- package/dist/v2/{storage-tags-hcc2adpf.js → storage-tags-hkwtbp3g.js} +1 -1
- package/dist/v2/{wrapup-orchestrator-65pwye0d.js → wrapup-orchestrator-x4xj1782.js} +18 -18
- package/dist/{wrapup-orchestrator-28xzsj5q.js → wrapup-orchestrator-vj2tbp22.js} +18 -18
- package/package.json +1 -1
- package/src/config/schema/magic-context.ts +14 -6
- package/src/shared/model-resolution.test.ts +22 -0
- package/src/shared/model-suggestion-retry.ts +9 -3
- package/src/shared/resolve-fallbacks.test.ts +2 -3
- package/src/shared/resolve-fallbacks.ts +3 -3
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import {
|
|
2
|
+
renderSearchArchive2,
|
|
3
|
+
renderSearchArchiveOffThread2
|
|
4
|
+
} from "./index-6a6dq53h.js";
|
|
5
|
+
import"./index-kaqs6h31.js";
|
|
6
|
+
import"./index-j6zw70pf.js";
|
|
7
|
+
import"./index-nd7m2a5a.js";
|
|
8
|
+
import"./index-1zx87sdm.js";
|
|
9
|
+
import"./index-mtw9e71a.js";
|
|
10
|
+
import"./index-wgypt3cs.js";
|
|
11
|
+
import"./index-n6m03s3n.js";
|
|
12
|
+
import"./index-bp5083x2.js";
|
|
13
|
+
import"./index-58e3y90n.js";
|
|
14
|
+
import"./index-7pa32z07.js";
|
|
15
|
+
import"./index-v0p37hm2.js";
|
|
16
|
+
import"./index-k29z4aqh.js";
|
|
17
|
+
import"./index-hqkczed7.js";
|
|
18
|
+
import"./index-wafzvyhg.js";
|
|
19
|
+
import"./index-j75v2476.js";
|
|
20
|
+
import"./index-g2q4htwp.js";
|
|
21
|
+
import"./index-pavzsdc6.js";
|
|
22
|
+
export {
|
|
23
|
+
renderSearchArchive2 as renderSearchArchive,
|
|
24
|
+
renderSearchArchiveOffThread2 as renderSearchArchiveOffThread
|
|
25
|
+
};
|
|
@@ -5,33 +5,34 @@ import {
|
|
|
5
5
|
resolveMemoriesByIdsForSearch2,
|
|
6
6
|
unifiedSearch2,
|
|
7
7
|
formatSearchResults2
|
|
8
|
-
} from "./index-
|
|
9
|
-
import"./index-
|
|
10
|
-
import"./index-
|
|
11
|
-
import"./index-
|
|
12
|
-
import"./index-
|
|
8
|
+
} from "./index-4qfy7v57.js";
|
|
9
|
+
import"./index-kaqs6h31.js";
|
|
10
|
+
import"./index-wv9n2zcq.js";
|
|
11
|
+
import"./index-p4vde22c.js";
|
|
12
|
+
import"./index-9nkg2dzk.js";
|
|
13
|
+
import"./index-qrahzcqv.js";
|
|
13
14
|
import"./index-n78avt2p.js";
|
|
14
15
|
import"./index-4dhv7mqz.js";
|
|
15
16
|
import"./index-qt1qqasc.js";
|
|
16
|
-
import"./index-
|
|
17
|
-
import"./index-
|
|
17
|
+
import"./index-j6zw70pf.js";
|
|
18
|
+
import"./index-nd7m2a5a.js";
|
|
18
19
|
import"./index-1zx87sdm.js";
|
|
19
|
-
import"./index-
|
|
20
|
-
import"./index-
|
|
21
|
-
import"./index-
|
|
22
|
-
import"./index-e20m7284.js";
|
|
23
|
-
import"./index-1sarmj9z.js";
|
|
20
|
+
import"./index-mtw9e71a.js";
|
|
21
|
+
import"./index-7b2cfmaz.js";
|
|
22
|
+
import"./index-wgypt3cs.js";
|
|
24
23
|
import"./index-saews2s3.js";
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-hehkf6zm.js";
|
|
26
25
|
import"./index-fkx2qnvw.js";
|
|
27
26
|
import"./index-wk0n1cgt.js";
|
|
28
27
|
import"./index-a8bvhwqs.js";
|
|
29
|
-
import"./index-
|
|
28
|
+
import"./index-dqe8pq4x.js";
|
|
30
29
|
import"./index-fr0wbhdn.js";
|
|
31
30
|
import"./index-nj7yykkx.js";
|
|
32
31
|
import"./index-n6m03s3n.js";
|
|
33
32
|
import"./index-bp5083x2.js";
|
|
34
33
|
import"./index-58e3y90n.js";
|
|
34
|
+
import"./index-7pa32z07.js";
|
|
35
|
+
import"./index-v0p37hm2.js";
|
|
35
36
|
import"./index-k29z4aqh.js";
|
|
36
37
|
import"./index-hqkczed7.js";
|
|
37
38
|
import"./index-wafzvyhg.js";
|
package/dist/{send-session-notification-24r4esbh.js → send-session-notification-2x9edkrp.js}
RENAMED
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
clearIgnoredMessages2,
|
|
9
9
|
observeIgnoredNotificationEvent2,
|
|
10
10
|
sendStatusNotification2
|
|
11
|
-
} from "./index-
|
|
11
|
+
} from "./index-b17m64g9.js";
|
|
12
12
|
import"./index-qt1qqasc.js";
|
|
13
|
-
import"./index-
|
|
14
|
-
import"./index-mmfa86mt.js";
|
|
15
|
-
import"./index-v0p37hm2.js";
|
|
13
|
+
import"./index-mtw9e71a.js";
|
|
16
14
|
import"./index-y9f76s3f.js";
|
|
17
15
|
import"./index-58e3y90n.js";
|
|
16
|
+
import"./index-7pa32z07.js";
|
|
17
|
+
import"./index-v0p37hm2.js";
|
|
18
18
|
import"./index-wafzvyhg.js";
|
|
19
19
|
import"./index-j75v2476.js";
|
|
20
20
|
import"./index-g2q4htwp.js";
|
|
@@ -41,6 +41,8 @@ export interface PromptAttemptInfo {
|
|
|
41
41
|
export interface PromptRetryOptions {
|
|
42
42
|
transport?: PromptTransport;
|
|
43
43
|
timeoutMs?: number;
|
|
44
|
+
/** False for callers whose configured model chain must not accept provider suggestions. Defaults to true. */
|
|
45
|
+
allowModelSuggestions?: boolean;
|
|
44
46
|
/** External abort signal — cancels the in-flight LLM prompt immediately when aborted */
|
|
45
47
|
signal?: AbortSignal;
|
|
46
48
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model-suggestion-retry.d.ts","sourceRoot":"","sources":["../../src/shared/model-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,IAAI,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAcpF;AAgSD;;;;;;;;;;;;;GAaG;AACH,wBAAsB,kCAAkC,CACpD,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,OAAO,GAAE,kBAAuB,GACjC,OAAO,CAAC,IAAI,CAAC,CAmGf;AA+ED;;;;GAIG;AACH,wBAAsB,kCAAkC,CAAC,OAAO,EAAE,UAAU,GAAG,OAAO,EAClF,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,UAAU,EAChB,OAAO,EAAE,2BAA2B,CAAC,OAAO,EAAE,UAAU,CAAC,GAC1D,OAAO,CAAC,0BAA0B,CAAC,OAAO,EAAE,UAAU,CAAC,CAAC,CAmK1D"}
|
|
@@ -8,9 +8,9 @@ import type { ModelInput, ResolvedModelEntry } from "./model-resolution";
|
|
|
8
8
|
* inevitably names providers the user doesn't have (e.g. a metapi-only user got
|
|
9
9
|
* a chain of google/github-copilot/opencode entries, every one a
|
|
10
10
|
* `Model not found` retry), which produced confusing errors and wasted
|
|
11
|
-
* attempts. If the user configured
|
|
12
|
-
*
|
|
13
|
-
* the
|
|
11
|
+
* attempts. If the user configured no alternates, this returns an empty list.
|
|
12
|
+
* A configured historian never adds the session model to this list; only an
|
|
13
|
+
* unconfigured OpenCode historian inherits the session model.
|
|
14
14
|
*
|
|
15
15
|
* The returned list does NOT include the primary model — it's the ordered list
|
|
16
16
|
* of *alternates* to try after the primary fails. Each entry is
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
import type { ContextDatabase } from "../../features/magic-context/storage";
|
|
2
|
+
/** @internal Counts every archive render so tests can detect accidental serving-thread reads. */
|
|
3
|
+
export declare function getArchiveReadsOnThisThreadForTest(): number;
|
|
2
4
|
/** Recover indexed text when the host no longer holds the cited messages. */
|
|
3
|
-
export declare function renderSearchArchive(db: ContextDatabase, sessionId: string, start: number, end: number, tokenBudget: number, archiveOnly?: boolean): string | null;
|
|
5
|
+
export declare function renderSearchArchive(db: ContextDatabase, sessionId: string, start: number, end: number, tokenBudget: number, archiveOnly?: boolean, readRawIds?: () => Map<string, number>): string | null;
|
|
6
|
+
/** File-backed archive and exact raw-ordinal scans must not run on the serving thread. */
|
|
7
|
+
export declare function renderSearchArchiveOffThread(db: ContextDatabase, sessionId: string, start: number, end: number, tokenBudget: number, archiveOnly?: boolean): Promise<string | null>;
|
|
4
8
|
//# sourceMappingURL=search-archive.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"search-archive.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-expand/search-archive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;
|
|
1
|
+
{"version":3,"file":"search-archive.d.ts","sourceRoot":"","sources":["../../../src/tools/ctx-expand/search-archive.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AAmB5E,iGAAiG;AACjG,wBAAgB,kCAAkC,IAAI,MAAM,CAE3D;AAED,6EAA6E;AAC7E,wBAAgB,mBAAmB,CAC/B,EAAE,EAAE,eAAe,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,WAAW,UAAQ,EACnB,UAAU,4BAAuE,GAClF,MAAM,GAAG,IAAI,CAqDf;AAED,0FAA0F;AAC1F,wBAAsB,4BAA4B,CAC9C,EAAE,EAAE,eAAe,EACnB,SAAS,EAAE,MAAM,EACjB,KAAK,EAAE,MAAM,EACb,GAAG,EAAE,MAAM,EACX,WAAW,EAAE,MAAM,EACnB,WAAW,UAAQ,GACpB,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAiCxB"}
|
package/dist/{transform-postprocess-phase-ne3z1zmt.js → transform-postprocess-phase-xaw5c3xp.js}
RENAMED
|
@@ -18,42 +18,42 @@ import {
|
|
|
18
18
|
finalizeMessageRepresentation2,
|
|
19
19
|
runPostTransformPhase2,
|
|
20
20
|
checkM0MutationDriftAndSignal2
|
|
21
|
-
} from "./index-
|
|
22
|
-
import"./index-
|
|
21
|
+
} from "./index-kn4t1haw.js";
|
|
22
|
+
import"./index-ayym1x7f.js";
|
|
23
23
|
import"./index-f71thw8j.js";
|
|
24
|
-
import"./index-
|
|
25
|
-
import"./index-
|
|
24
|
+
import"./index-wv9n2zcq.js";
|
|
25
|
+
import"./index-p4vde22c.js";
|
|
26
26
|
import"./index-sd3egckz.js";
|
|
27
|
-
import"./index-
|
|
28
|
-
import"./index-
|
|
27
|
+
import"./index-9nkg2dzk.js";
|
|
28
|
+
import"./index-qrahzcqv.js";
|
|
29
29
|
import"./index-n78avt2p.js";
|
|
30
30
|
import"./index-4dhv7mqz.js";
|
|
31
31
|
import"./index-v10f1rjv.js";
|
|
32
|
-
import"./index-
|
|
32
|
+
import"./index-b17m64g9.js";
|
|
33
33
|
import"./index-qt1qqasc.js";
|
|
34
|
-
import"./index-
|
|
35
|
-
import"./index-
|
|
34
|
+
import"./index-j6zw70pf.js";
|
|
35
|
+
import"./index-nd7m2a5a.js";
|
|
36
36
|
import"./index-1zx87sdm.js";
|
|
37
|
-
import"./index-
|
|
38
|
-
import"./index-mmfa86mt.js";
|
|
39
|
-
import"./index-v0p37hm2.js";
|
|
37
|
+
import"./index-mtw9e71a.js";
|
|
40
38
|
import"./index-x8a7jmkh.js";
|
|
41
39
|
import"./index-y9f76s3f.js";
|
|
42
|
-
import"./index-
|
|
43
|
-
import"./index-
|
|
40
|
+
import"./index-7b2cfmaz.js";
|
|
41
|
+
import"./index-wgypt3cs.js";
|
|
44
42
|
import"./index-saews2s3.js";
|
|
45
|
-
import"./index-
|
|
43
|
+
import"./index-hehkf6zm.js";
|
|
46
44
|
import"./index-fkx2qnvw.js";
|
|
47
|
-
import"./index-
|
|
45
|
+
import"./index-cj9g0j7a.js";
|
|
48
46
|
import"./index-fb3zxn06.js";
|
|
49
47
|
import"./index-wk0n1cgt.js";
|
|
50
48
|
import"./index-a8bvhwqs.js";
|
|
51
|
-
import"./index-
|
|
49
|
+
import"./index-dqe8pq4x.js";
|
|
52
50
|
import"./index-fr0wbhdn.js";
|
|
53
51
|
import"./index-nj7yykkx.js";
|
|
54
52
|
import"./index-n6m03s3n.js";
|
|
55
53
|
import"./index-bp5083x2.js";
|
|
56
54
|
import"./index-58e3y90n.js";
|
|
55
|
+
import"./index-7pa32z07.js";
|
|
56
|
+
import"./index-v0p37hm2.js";
|
|
57
57
|
import"./index-k29z4aqh.js";
|
|
58
58
|
import"./index-hqkczed7.js";
|
|
59
59
|
import"./index-wafzvyhg.js";
|
|
@@ -18,11 +18,11 @@ var [
|
|
|
18
18
|
{ Database, registerSqliteDiagnosticSink },
|
|
19
19
|
{ log }
|
|
20
20
|
] = await Promise.all([
|
|
21
|
-
import("./embedding-backfill-
|
|
21
|
+
import("./embedding-backfill-jyd6492b.js"),
|
|
22
22
|
import("./embedding-cache-mgyr73ef.js"),
|
|
23
23
|
import("./storage-memory-j3v3hc83.js"),
|
|
24
|
-
import("./project-embedding-registry-
|
|
25
|
-
import("./search-
|
|
24
|
+
import("./project-embedding-registry-rek75aqw.js"),
|
|
25
|
+
import("./search-sf2vg5pk.js"),
|
|
26
26
|
import("./embedding-activity-g1dhes6g.js"),
|
|
27
27
|
import("./harness-e4avh192.js"),
|
|
28
28
|
import("./sqlite-4pqyynrs.js"),
|
|
@@ -10,26 +10,28 @@ import {
|
|
|
10
10
|
import"./server-0ppsweh6.js";
|
|
11
11
|
import"./server-f2xf5gcb.js";
|
|
12
12
|
import"./server-rrqpvwqd.js";
|
|
13
|
-
import"./server-
|
|
13
|
+
import"./server-51779zs2.js";
|
|
14
|
+
import"./server-6714jebr.js";
|
|
15
|
+
import"./server-785mb90s.js";
|
|
14
16
|
import {
|
|
15
17
|
replaceCompartmentChunkEmbeddings,
|
|
16
18
|
recordChunkEmbedBackoff,
|
|
17
19
|
loadUnembeddedSessionChunkCandidates,
|
|
18
20
|
countUnembeddedSessionCompartments
|
|
19
|
-
} from "./server-
|
|
21
|
+
} from "./server-kqpawe1a.js";
|
|
20
22
|
import {
|
|
21
23
|
acquireGitSweepLease,
|
|
22
24
|
renewGitSweepLease,
|
|
23
25
|
releaseGitSweepLease,
|
|
24
26
|
recordSessionProjectIdentity
|
|
25
|
-
} from "./server-
|
|
26
|
-
import"./server-
|
|
27
|
+
} from "./server-hgg55hde.js";
|
|
28
|
+
import"./server-e3ftpk7v.js";
|
|
27
29
|
import"./server-da07v4xp.js";
|
|
28
30
|
import {
|
|
29
31
|
LATEST_SUPPORTED_VERSION,
|
|
30
32
|
enforceSchemaFence
|
|
31
|
-
} from "./server-
|
|
32
|
-
import"./server-
|
|
33
|
+
} from "./server-r9gjxcte.js";
|
|
34
|
+
import"./server-00hx04yn.js";
|
|
33
35
|
import"./server-pwv4ezb0.js";
|
|
34
36
|
import"./server-fr0wbhdn.js";
|
|
35
37
|
import"./server-2ra6pwf3.js";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
resolveLegacyConfigSources,
|
|
7
7
|
getProtectedTokensTierOverrides,
|
|
8
8
|
loadPluginConfigDetailed
|
|
9
|
-
} from "./server-
|
|
9
|
+
} from "./server-y5pznjt9.js";
|
|
10
10
|
import {
|
|
11
11
|
getHarness2,
|
|
12
12
|
harnessOwnsOpenCodeStore2
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
DEFAULT_HISTORIAN_TIMEOUT_MS,
|
|
47
47
|
DEFAULT_LOCAL_EMBEDDING_MODEL,
|
|
48
48
|
DREAM_TASK_PROMOTION_DEFAULTS
|
|
49
|
-
} from "./server-
|
|
49
|
+
} from "./server-271qxsf5.js";
|
|
50
50
|
import {
|
|
51
51
|
CANONICAL_DREAM_TASKS,
|
|
52
52
|
DREAM_TASK_CAPABILITIES,
|
|
@@ -283,7 +283,7 @@ import {
|
|
|
283
283
|
startCompartmentAgent,
|
|
284
284
|
setRecompStarting2,
|
|
285
285
|
setRecompTerminal2
|
|
286
|
-
} from "./server-
|
|
286
|
+
} from "./server-6fyp0v67.js";
|
|
287
287
|
import {
|
|
288
288
|
resolveHistorianModel2
|
|
289
289
|
} from "./server-8cd2j99z.js";
|
|
@@ -308,7 +308,7 @@ import {
|
|
|
308
308
|
openDatabaseAsync,
|
|
309
309
|
isDatabasePersisted,
|
|
310
310
|
getDatabasePersistenceError
|
|
311
|
-
} from "./server-
|
|
311
|
+
} from "./server-r9gjxcte.js";
|
|
312
312
|
import {
|
|
313
313
|
setHomeProjectPermission,
|
|
314
314
|
shouldSkipHomeProjectMemory,
|
|
@@ -324,7 +324,7 @@ import {
|
|
|
324
324
|
storedPathBelongsToIdentity,
|
|
325
325
|
beginBootQuietPeriod,
|
|
326
326
|
scheduleAfterBootQuiet
|
|
327
|
-
} from "./server-
|
|
327
|
+
} from "./server-e3ftpk7v.js";
|
|
328
328
|
import {
|
|
329
329
|
detectLatestTurnThinkingMismatch,
|
|
330
330
|
isPrefixBoundThinkingModel,
|
|
@@ -512,7 +512,7 @@ import {
|
|
|
512
512
|
readRawSessionMessageById2,
|
|
513
513
|
readSessionChunk2,
|
|
514
514
|
readRawSessionSeedTail2
|
|
515
|
-
} from "./server-
|
|
515
|
+
} from "./server-1hcbw661.js";
|
|
516
516
|
import {
|
|
517
517
|
embedPauseBySession,
|
|
518
518
|
embedRunStateBySession,
|
|
@@ -541,7 +541,7 @@ import {
|
|
|
541
541
|
embedSessionCompartmentChunks2,
|
|
542
542
|
getEmbeddingCoverageStatus2,
|
|
543
543
|
getAutoEmbeddingSessionCoverage2
|
|
544
|
-
} from "./server-
|
|
544
|
+
} from "./server-kr2kc9dz.js";
|
|
545
545
|
import {
|
|
546
546
|
textMentionsRecentCommit,
|
|
547
547
|
hasMeaningfulUserText2,
|
|
@@ -575,10 +575,18 @@ import {
|
|
|
575
575
|
SqliteAcquisitionBusyError2,
|
|
576
576
|
withAsyncPrivilegedWriter2
|
|
577
577
|
} from "./server-wafzvyhg.js";
|
|
578
|
-
import"./server-
|
|
578
|
+
import"./server-51779zs2.js";
|
|
579
|
+
import {
|
|
580
|
+
isRawCompactionSummaryInfo2,
|
|
581
|
+
extractInMemoryMessageViews2,
|
|
582
|
+
buildInMemoryTailRawMessages2,
|
|
583
|
+
RawOrdinalsNotReady2,
|
|
584
|
+
runSessionWarmupWorker
|
|
585
|
+
} from "./server-6714jebr.js";
|
|
586
|
+
import"./server-785mb90s.js";
|
|
579
587
|
import {
|
|
580
588
|
deleteChunkEmbedBackoffForSession
|
|
581
|
-
} from "./server-
|
|
589
|
+
} from "./server-kqpawe1a.js";
|
|
582
590
|
import {
|
|
583
591
|
registerOwnRpcServerInstance,
|
|
584
592
|
rpcPortDir,
|
|
@@ -604,7 +612,7 @@ import {
|
|
|
604
612
|
isMessageIndexReconciledThrough2,
|
|
605
613
|
indexMessagesAfterOrdinal2,
|
|
606
614
|
sweepOrphanedOpenCodeMessageIndexes2
|
|
607
|
-
} from "./server-
|
|
615
|
+
} from "./server-g59aatsz.js";
|
|
608
616
|
import {
|
|
609
617
|
stableStringify,
|
|
610
618
|
getTemporalDecisions,
|
|
@@ -705,15 +713,7 @@ import {
|
|
|
705
713
|
adoptNullOwnerToolTag2,
|
|
706
714
|
getCandidateToolOwners2,
|
|
707
715
|
pickNearestPriorOwner2
|
|
708
|
-
} from "./server-
|
|
709
|
-
import"./server-51779zs2.js";
|
|
710
|
-
import {
|
|
711
|
-
isRawCompactionSummaryInfo2,
|
|
712
|
-
extractInMemoryMessageViews2,
|
|
713
|
-
buildInMemoryTailRawMessages2,
|
|
714
|
-
RawOrdinalsNotReady2,
|
|
715
|
-
runSessionWarmupWorker
|
|
716
|
-
} from "./server-prg55b7k.js";
|
|
716
|
+
} from "./server-0mzjjw3s.js";
|
|
717
717
|
import {
|
|
718
718
|
resolveOpenCodeDbPath,
|
|
719
719
|
assertOpenCodeStoreGeneration,
|
|
@@ -747,7 +747,7 @@ import {
|
|
|
747
747
|
resolveStoredPathWorkspaceIdentity,
|
|
748
748
|
storedPathBelongsToWorkspace,
|
|
749
749
|
computeWorkspaceEpochFingerprint
|
|
750
|
-
} from "./server-
|
|
750
|
+
} from "./server-00hx04yn.js";
|
|
751
751
|
import {
|
|
752
752
|
configureContextDatabasePragmas2
|
|
753
753
|
} from "./server-fb3zxn06.js";
|
|
@@ -793,7 +793,7 @@ import {
|
|
|
793
793
|
readGitFileChangeTimesSince,
|
|
794
794
|
verificationFileExists,
|
|
795
795
|
normalizeVerificationFiles
|
|
796
|
-
} from "./server-
|
|
796
|
+
} from "./server-vgpab6rd.js";
|
|
797
797
|
import {
|
|
798
798
|
deriveTriggerBudget2,
|
|
799
799
|
deriveHistorianChunkTokens2,
|
|
@@ -814,7 +814,7 @@ import {
|
|
|
814
814
|
releaseGitSweepLease,
|
|
815
815
|
recordSessionProjectIdentity,
|
|
816
816
|
hasRecordedSessionProjectIdentity
|
|
817
|
-
} from "./server-
|
|
817
|
+
} from "./server-hgg55hde.js";
|
|
818
818
|
import {
|
|
819
819
|
saveEmbeddingIfHashMatches,
|
|
820
820
|
invalidateProject2,
|
|
@@ -822,10 +822,10 @@ import {
|
|
|
822
822
|
} from "./server-4dhv7mqz.js";
|
|
823
823
|
import {
|
|
824
824
|
getLocalEmbeddingNativeMemoryStats
|
|
825
|
-
} from "./server-
|
|
825
|
+
} from "./server-gha9x4qq.js";
|
|
826
826
|
import {
|
|
827
827
|
cosineSimilarity
|
|
828
|
-
} from "./server-
|
|
828
|
+
} from "./server-aavz8pm6.js";
|
|
829
829
|
import {
|
|
830
830
|
computeCueContentHash,
|
|
831
831
|
hasMuralCueColumns,
|
|
@@ -877,16 +877,19 @@ import {
|
|
|
877
877
|
SubcModuleTransport,
|
|
878
878
|
indexCommitsForProject,
|
|
879
879
|
embedUnembeddedCommits,
|
|
880
|
-
withMessageFtsSessionFilter,
|
|
881
880
|
createUnifiedSearchDiagnostics2,
|
|
882
881
|
parseIdShapedQuery2,
|
|
883
882
|
resolveMemoriesByIdsForSearch2,
|
|
884
883
|
unifiedSearch2,
|
|
885
884
|
formatSearchResults2
|
|
886
|
-
} from "./server-
|
|
885
|
+
} from "./server-n5q841qn.js";
|
|
887
886
|
import {
|
|
888
887
|
resolvePromptContext2
|
|
889
888
|
} from "./server-fmsr7v69.js";
|
|
889
|
+
import"./server-kaqs6h31.js";
|
|
890
|
+
import {
|
|
891
|
+
renderSearchArchiveOffThread2
|
|
892
|
+
} from "./server-zyw55ygv.js";
|
|
890
893
|
import {
|
|
891
894
|
compareSemverCore
|
|
892
895
|
} from "./server-84w6rvvf.js";
|
|
@@ -9781,6 +9784,9 @@ async function runPostTransformPhase(args) {
|
|
|
9781
9784
|
rewritingSignedPrefix = true;
|
|
9782
9785
|
thinkingReleasedForFit ||= forFit;
|
|
9783
9786
|
};
|
|
9787
|
+
if (activeThinkingPrefixHold && args.forceSignedRebuildForFit) {
|
|
9788
|
+
releaseThinkingForRewrite(true);
|
|
9789
|
+
}
|
|
9784
9790
|
const foldDueDecision = m0M1EnabledForFold && args.m0M1 && !freezeM0M1 ? mustMaterialize({
|
|
9785
9791
|
db: args.db,
|
|
9786
9792
|
sessionId: args.sessionId,
|
|
@@ -9925,7 +9931,7 @@ async function runPostTransformPhase(args) {
|
|
|
9925
9931
|
const idleExpiryRebuild = (!freezeM0M1 || activeThinkingPrefixHold) && args.m0M1?.hardSignals?.cacheExpired === true;
|
|
9926
9932
|
const rideSignals = {
|
|
9927
9933
|
subagentExecute: !args.fullFeatureMode && args.schedulerDecision === "execute",
|
|
9928
|
-
hardFold: foldBustsServedPrefixThisPass || firstRenderBust || idleExpiryRebuild,
|
|
9934
|
+
hardFold: rewritingSignedPrefix || foldBustsServedPrefixThisPass || firstRenderBust || idleExpiryRebuild,
|
|
9929
9935
|
force: emergencyDropEligible && (args.contextUsage.percentage >= 95 || getEmergencyInputSample(args.db, args.sessionId) === 0),
|
|
9930
9936
|
explicitFlush: isExplicitFlush && hasPendingMaterializationOrigin(args.pendingMaterializationSessions, args.sessionId, "user_flush"),
|
|
9931
9937
|
publishedHistory: !prefixPreflightFailed && (publishedM1RefreshedThisPass || !m0M1EnabledForFold && (args.pendingCompartmentInjection?.compartmentCount ?? 0) > 0 && legacyPublishedHeadChanged(args))
|
|
@@ -12285,6 +12291,7 @@ class HistorianHostRunner {
|
|
|
12285
12291
|
timeoutMs: attemptMs,
|
|
12286
12292
|
signal,
|
|
12287
12293
|
fallbackModels: rest.map(withVariant),
|
|
12294
|
+
allowModelSuggestions: false,
|
|
12288
12295
|
callContext: `historian-host:${claim.runId}`,
|
|
12289
12296
|
fetchOutput: () => withinAttempt(executor.collect(handle, 50), attemptStartedAt + attemptMs - Date.now(), attemptMs, signal).catch((error) => {
|
|
12290
12297
|
recordAttempt(undefined, error);
|
|
@@ -18126,6 +18133,7 @@ function resolveTransformHostSeams(deps) {
|
|
|
18126
18133
|
hostRefuse: deps.hostRefuse ?? abortSessionFailClosed
|
|
18127
18134
|
};
|
|
18128
18135
|
}
|
|
18136
|
+
var SIGNED_FIT_REFUSED_MARKER = "signed_fit:refused:v1";
|
|
18129
18137
|
function createTransform(deps) {
|
|
18130
18138
|
registerSystemDateRefresh(deps.historyRefreshSessions);
|
|
18131
18139
|
const finalWireUsage = createFinalWireUsageTracker();
|
|
@@ -19047,7 +19055,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
19047
19055
|
const protectedTagIds = protectedTagNumbers;
|
|
19048
19056
|
const protectedCutoff = protectionWindow.cutoff;
|
|
19049
19057
|
const tPostProcess = performance.now();
|
|
19050
|
-
dropProjectionEmergency =
|
|
19058
|
+
dropProjectionEmergency = contextUsage.percentage >= 95;
|
|
19051
19059
|
const postTransformResult = await runPostTransformPhase({
|
|
19052
19060
|
opencode2: deps.storeGeneration === "v2",
|
|
19053
19061
|
normalizeRecoveryTail,
|
|
@@ -19066,7 +19074,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
19066
19074
|
client: deps.client,
|
|
19067
19075
|
activeAgent,
|
|
19068
19076
|
batch,
|
|
19069
|
-
contextUsage
|
|
19077
|
+
contextUsage,
|
|
19070
19078
|
usableWindow: resolvedContextLimit ?? 0,
|
|
19071
19079
|
schedulerDecision,
|
|
19072
19080
|
schedulerDeferReason,
|
|
@@ -19151,6 +19159,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
19151
19159
|
postTransformResult.bustedThisPass = true;
|
|
19152
19160
|
passOutcome.markFinalized();
|
|
19153
19161
|
const finalWireTail = describeFinalWireTail(messages);
|
|
19162
|
+
const signedFitPreviouslyRefused = !compactionOff && getMergedReasoningStrippedIds(db, sessionId).has(SIGNED_FIT_REFUSED_MARKER);
|
|
19154
19163
|
let finalWireEstimate;
|
|
19155
19164
|
if (postTransformResult.bustedThisPass) {
|
|
19156
19165
|
try {
|
|
@@ -19168,7 +19177,7 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
19168
19177
|
}
|
|
19169
19178
|
if (!compactionOff) {
|
|
19170
19179
|
const emergencyUsagePercentage = usagePercentageSynthetic ? Math.max(95, contextUsage.percentage) : windowGeometry?.usableHard && contextUsage.inputTokens > 0 ? contextUsage.inputTokens / windowGeometry.usableHard * 100 : contextUsage.percentage;
|
|
19171
|
-
finalWireEstimate = finalWireEstimate ?? (emergencyUsagePercentage >= 95 || schedulerDecision === "execute" ? finalWireUsage.estimate(sessionId, {
|
|
19180
|
+
finalWireEstimate = finalWireEstimate ?? (emergencyUsagePercentage >= 95 || schedulerDecision === "execute" || signedFitPreviouslyRefused ? finalWireUsage.estimate(sessionId, {
|
|
19172
19181
|
messages,
|
|
19173
19182
|
systemPromptTokens: sessionMeta.systemPromptTokens,
|
|
19174
19183
|
providerID: modelForBudget?.providerID,
|
|
@@ -19191,8 +19200,11 @@ Historian previously failed ${historianFailureState.failureCount} time(s), so Ma
|
|
|
19191
19200
|
}
|
|
19192
19201
|
return;
|
|
19193
19202
|
}
|
|
19194
|
-
if (thinkingFitRetries.has(sessionId) || postTransformResult.thinkingReleasedForFit)
|
|
19203
|
+
if (thinkingFitRetries.has(sessionId) || postTransformResult.thinkingReleasedForFit || signedFitPreviouslyRefused) {
|
|
19204
|
+
if (!signedFitPreviouslyRefused && !addMergedReasoningStrippedIds(db, sessionId, [SIGNED_FIT_REFUSED_MARKER]))
|
|
19205
|
+
throw contextRefusalError("Cannot persist the signed-fit refusal");
|
|
19195
19206
|
throw contextRefusalError("The request remains over the model window after stripping signed thinking and reclaiming context");
|
|
19207
|
+
}
|
|
19196
19208
|
}
|
|
19197
19209
|
if (postTransformResult.prefixTrimStatus === "refused") {
|
|
19198
19210
|
const untrimmed = finalWireEstimate ?? estimateFinalWireInputTokens({
|
|
@@ -22726,8 +22738,8 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
22726
22738
|
const db = readDatabase();
|
|
22727
22739
|
if (!db)
|
|
22728
22740
|
return { ok: false, error: "db unavailable" };
|
|
22729
|
-
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-
|
|
22730
|
-
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-
|
|
22741
|
+
const { runManagedRecomp } = await importPluginModule(() => import("./recomp-orchestrator-hzpgg06e.js"));
|
|
22742
|
+
const { sendIgnoredMessage } = await importPluginModule(() => import("./send-session-notification-hmr7q0nt.js"));
|
|
22731
22743
|
log2(`[rpc] recomp requested for session ${sessionId}`);
|
|
22732
22744
|
if (!args.client && !args.hiddenCompletionExecutor) {
|
|
22733
22745
|
return {
|
|
@@ -22811,7 +22823,7 @@ function registerRpcHandlers(rpcServer, args) {
|
|
|
22811
22823
|
const db = readDatabase();
|
|
22812
22824
|
if (!db)
|
|
22813
22825
|
return { ok: false, error: "db unavailable" };
|
|
22814
|
-
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-
|
|
22826
|
+
const { runManagedWrapup } = await importPluginModule(() => import("./wrapup-orchestrator-x4xj1782.js"));
|
|
22815
22827
|
const model = liveSessionState.liveModelBySession.get(sessionId);
|
|
22816
22828
|
const contextLimit = model ? resolveContextLimit(model.providerID, model.modelID, { db, sessionID: sessionId }) : 128000;
|
|
22817
22829
|
const ctx = {
|
|
@@ -48939,56 +48951,6 @@ function renderItemByTag(db, sessionId, number, textIndexDomain = "part") {
|
|
|
48939
48951
|
return selected ? renderPartFull(selected) ?? "" : `Tag ${number}'s original text part is no longer in stored history.`;
|
|
48940
48952
|
}
|
|
48941
48953
|
|
|
48942
|
-
// src/tools/ctx-expand/search-archive.ts
|
|
48943
|
-
function renderSearchArchive(db, sessionId, start, end, tokenBudget, archiveOnly = false) {
|
|
48944
|
-
return withMessageFtsSessionFilter(db, sessionId, (sessionFirst) => {
|
|
48945
|
-
let rawIds;
|
|
48946
|
-
const rows = db.prepare(sessionFirst ? `SELECT f.message_ordinal AS ordinal, f.message_id AS id, f.role, f.content
|
|
48947
|
-
FROM message_fts_rowid_map AS m
|
|
48948
|
-
JOIN message_history_fts AS f ON f.rowid = m.fts_rowid
|
|
48949
|
-
WHERE m.session_id = ?1 AND m.message_ordinal BETWEEN ?2 AND ?3
|
|
48950
|
-
AND f.session_id = ?1 AND f.message_ordinal BETWEEN ?2 AND ?3
|
|
48951
|
-
ORDER BY m.message_ordinal` : `SELECT message_ordinal AS ordinal, message_id AS id, role, content
|
|
48952
|
-
FROM message_history_fts
|
|
48953
|
-
WHERE session_id = ?1 AND message_ordinal BETWEEN ?2 AND ?3
|
|
48954
|
-
ORDER BY CAST(message_ordinal AS INTEGER)`);
|
|
48955
|
-
const blocks = [];
|
|
48956
|
-
let tokens = 0;
|
|
48957
|
-
let lastOrdinal = start - 1;
|
|
48958
|
-
let truncated = false;
|
|
48959
|
-
for (const row of rows.iterate(sessionId, start, end)) {
|
|
48960
|
-
if (!row.content)
|
|
48961
|
-
continue;
|
|
48962
|
-
if (!archiveOnly) {
|
|
48963
|
-
rawIds ??= readRawSessionMessageIdOrdinalsForRange2(sessionId, start, end);
|
|
48964
|
-
if (rawIds.get(row.id) === row.ordinal)
|
|
48965
|
-
continue;
|
|
48966
|
-
}
|
|
48967
|
-
const block = `[${row.ordinal}] ${row.role === "user" ? "U" : "A"}: ${row.content}`;
|
|
48968
|
-
const cost = estimateTokens(block);
|
|
48969
|
-
if (blocks.length > 0 && tokens + cost > tokenBudget) {
|
|
48970
|
-
truncated = true;
|
|
48971
|
-
break;
|
|
48972
|
-
}
|
|
48973
|
-
blocks.push(block);
|
|
48974
|
-
tokens += cost;
|
|
48975
|
-
lastOrdinal = row.ordinal;
|
|
48976
|
-
}
|
|
48977
|
-
if (blocks.length === 0)
|
|
48978
|
-
return null;
|
|
48979
|
-
const text = [
|
|
48980
|
-
"From the search archive: indexed text only; no surrounding messages or tool output.",
|
|
48981
|
-
"",
|
|
48982
|
-
...blocks
|
|
48983
|
-
];
|
|
48984
|
-
if (truncated) {
|
|
48985
|
-
text.push("", `Truncated at message ${lastOrdinal} (budget: ~${tokenBudget} tokens). Call ctx_expand(start=${lastOrdinal + 1}, end=${end}) for more archived text.`);
|
|
48986
|
-
}
|
|
48987
|
-
return text.join(`
|
|
48988
|
-
`);
|
|
48989
|
-
});
|
|
48990
|
-
}
|
|
48991
|
-
|
|
48992
48954
|
// src/tools/ctx-expand/tools.ts
|
|
48993
48955
|
var ctxExpandArgsShape = {
|
|
48994
48956
|
tag: tool.schema.union([tool.schema.number(), tool.schema.string()]).optional().describe("Tag number from a §N§ tag or a [dropped §N§] placeholder, not a message ordinal. Returns that one item in full. Use alone."),
|
|
@@ -49022,7 +48984,7 @@ function createCtxExpandTool(deps) {
|
|
|
49022
48984
|
return renderItemByTag(deps.db, sessionId, mode.tag);
|
|
49023
48985
|
}
|
|
49024
48986
|
if (mode.kind === "message") {
|
|
49025
|
-
return
|
|
48987
|
+
return await renderSearchArchiveOffThread2(deps.db, sessionId, mode.message, mode.message, CTX_EXPAND_TOKEN_BUDGET) ?? renderMessageByOrdinal(sessionId, mode.message);
|
|
49026
48988
|
}
|
|
49027
48989
|
const { start, end, verbose } = mode;
|
|
49028
48990
|
const lastCompartmentEnd = getLastCompartmentEndMessage(deps.db, sessionId);
|
|
@@ -49030,7 +48992,7 @@ function createCtxExpandTool(deps) {
|
|
|
49030
48992
|
return `Range ${start}-${end} is entirely within the live tail (after the last compacted message ${lastCompartmentEnd}); those messages are already visible in context.`;
|
|
49031
48993
|
}
|
|
49032
48994
|
const effectiveEnd = lastCompartmentEnd >= 0 ? Math.min(end, lastCompartmentEnd) : end;
|
|
49033
|
-
const archived =
|
|
48995
|
+
const archived = await renderSearchArchiveOffThread2(deps.db, sessionId, start, effectiveEnd, CTX_EXPAND_TOKEN_BUDGET);
|
|
49034
48996
|
if (archived)
|
|
49035
48997
|
return archived;
|
|
49036
48998
|
if (verbose) {
|
|
@@ -51853,6 +51815,10 @@ async function registerContext(context) {
|
|
|
51853
51815
|
if (usageController.signal.aborted)
|
|
51854
51816
|
break;
|
|
51855
51817
|
const event = value;
|
|
51818
|
+
if (event.type === "provider.updated" || event.type === "model.updated") {
|
|
51819
|
+
queriedModels.clear();
|
|
51820
|
+
continue;
|
|
51821
|
+
}
|
|
51856
51822
|
if (!event.data?.sessionID)
|
|
51857
51823
|
continue;
|
|
51858
51824
|
const sessionID = event.data.sessionID;
|
|
@@ -1,16 +1,18 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureMemoryEmbeddings2
|
|
3
|
-
} from "./server-
|
|
4
|
-
import"./server-
|
|
3
|
+
} from "./server-aavz8pm6.js";
|
|
4
|
+
import"./server-kr2kc9dz.js";
|
|
5
5
|
import"./server-4dhv7mqz.js";
|
|
6
6
|
import"./server-qt1qqasc.js";
|
|
7
|
-
import"./server-
|
|
8
|
-
import"./server-
|
|
9
|
-
import"./server-
|
|
10
|
-
import"./server-
|
|
7
|
+
import"./server-gha9x4qq.js";
|
|
8
|
+
import"./server-271qxsf5.js";
|
|
9
|
+
import"./server-hgg55hde.js";
|
|
10
|
+
import"./server-kqpawe1a.js";
|
|
11
11
|
import"./server-rrqpvwqd.js";
|
|
12
|
-
import"./server-
|
|
13
|
-
import"./server-
|
|
12
|
+
import"./server-e3ftpk7v.js";
|
|
13
|
+
import"./server-785mb90s.js";
|
|
14
|
+
import"./server-6714jebr.js";
|
|
15
|
+
import"./server-51779zs2.js";
|
|
14
16
|
import"./server-6pmqg9m4.js";
|
|
15
17
|
import"./server-0ppsweh6.js";
|
|
16
18
|
import"./server-wafzvyhg.js";
|