nexus-agents 8.21.0 → 8.21.1
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/{ast-rule-runner-U6QJUMBQ.js → ast-rule-runner-SDQOIQRZ.js} +3 -3
- package/dist/{child-mcp-config-UEDU27VQ.js → child-mcp-config-ODRZEYO4.js} +2 -2
- package/dist/{chunk-SKBDJDRW.js → chunk-3F2WBIAE.js} +2 -2
- package/dist/{chunk-VJLTHKKA.js → chunk-3R6IOJLN.js} +2 -2
- package/dist/{chunk-V7L3KXDY.js → chunk-4BTSZ5FM.js} +2 -2
- package/dist/{chunk-OEEUFDGL.js → chunk-52ZXFIYU.js} +2 -2
- package/dist/{chunk-MZLBC4C2.js → chunk-5KDANU4X.js} +2 -2
- package/dist/{chunk-5RRAFT4P.js → chunk-6NG32SWL.js} +2 -2
- package/dist/{chunk-KRN4MWKC.js → chunk-7MBHNIUH.js} +2 -2
- package/dist/{chunk-M2OKIPZL.js → chunk-AEPCYCEK.js} +7 -7
- package/dist/{chunk-AL44KHC6.js → chunk-AITXIX5S.js} +3 -3
- package/dist/{chunk-YW6RUGTL.js → chunk-CPHFTNHK.js} +36 -36
- package/dist/{chunk-A5KXHX36.js → chunk-FUA3WSZN.js} +55 -26
- package/dist/chunk-FUA3WSZN.js.map +1 -0
- package/dist/{chunk-JIMMV2IH.js → chunk-H72S6PWN.js} +2 -2
- package/dist/{chunk-HXK7DROF.js → chunk-IXJS3GMI.js} +7 -7
- package/dist/{chunk-QKIWUNKO.js → chunk-JO4RQSXK.js} +2 -2
- package/dist/chunk-K3GWU4VP.js +7 -0
- package/dist/{chunk-TPV5G24V.js → chunk-LJFVNMYK.js} +2 -2
- package/dist/{chunk-JO6BMW4F.js → chunk-LYJ5RQEM.js} +4 -4
- package/dist/{chunk-V4JTGJIU.js → chunk-MOY6NH2T.js} +4 -4
- package/dist/{chunk-6GLQNTZB.js → chunk-MWGE6WAE.js} +3 -3
- package/dist/{chunk-YJF57CQG.js → chunk-N3HWX2H2.js} +2 -2
- package/dist/{chunk-JVG47M5L.js → chunk-OAIW2IPL.js} +4 -4
- package/dist/{chunk-JKKZUDSX.js → chunk-PWFFWOJX.js} +3 -3
- package/dist/{chunk-6PSXNWLW.js → chunk-QQGP237B.js} +4 -4
- package/dist/{chunk-SW2XJWWV.js → chunk-R2H7VBEK.js} +5 -5
- package/dist/{chunk-L42MPQIR.js → chunk-T4KYQXJ4.js} +8 -8
- package/dist/{chunk-2KZKQ6HN.js → chunk-U6HN2FGG.js} +3 -3
- package/dist/{chunk-CBKFZKQ2.js → chunk-WDOTLCWV.js} +2 -2
- package/dist/{chunk-HGDDJZLF.js → chunk-WDTSF5AA.js} +2 -2
- package/dist/{chunk-SWQILV5C.js → chunk-WMCLPRLP.js} +2 -2
- package/dist/{chunk-WXZHMWYI.js → chunk-WVKDOQ6P.js} +2 -2
- package/dist/{chunk-7WTTZRV2.js → chunk-ZGN5NO47.js} +2 -2
- package/dist/{chunk-D6NQ7D4K.js → chunk-ZJYM75TM.js} +6 -6
- package/dist/{chunk-4WTKAKGB.js → chunk-ZN567ALG.js} +9 -9
- package/dist/{chunk-LCNVY2EA.js → chunk-ZQXTKEUT.js} +2 -2
- package/dist/{cli-circuit-breaker-CYAVLPLM.js → cli-circuit-breaker-DE7PUEDU.js} +3 -3
- package/dist/cli.js +43 -43
- package/dist/{composite-router-7BO2452B.js → composite-router-2G6ZEV2S.js} +2 -2
- package/dist/{consensus-vote-4PBL7DNL.js → consensus-vote-KZ5N3CDT.js} +17 -17
- package/dist/{context-retriever-IUAAZQQU.js → context-retriever-HHWBMQWP.js} +8 -8
- package/dist/{doctor-deep-IYLTNU3U.js → doctor-deep-4NURQLSS.js} +3 -3
- package/dist/{doctor-live-QYZWBRME.js → doctor-live-FU25BNDK.js} +9 -9
- package/dist/{expert-bridge-NFL3YP63.js → expert-bridge-LX7FVP5Z.js} +4 -4
- package/dist/{factory-JXI73XL4.js → factory-KVXI5RTL.js} +5 -5
- package/dist/{factory-EH5B5OMO.js → factory-LI4KSRMW.js} +9 -9
- package/dist/{improvement-review-LWPQE2IT.js → improvement-review-JETBKXUF.js} +6 -6
- package/dist/index.js +31 -31
- package/dist/{init-opencode-C4X6XCAR.js → init-opencode-TPQK7EEF.js} +6 -6
- package/dist/issue-triage-CXECTGY2.js +17 -0
- package/dist/{pr-reviewer-helpers-JZDP4CS2.js → pr-reviewer-helpers-7HQZWV76.js} +4 -4
- package/dist/{registry-command-P54N2CVL.js → registry-command-VN52ABY3.js} +2 -2
- package/dist/{repo-security-plan-NMXWMIY6.js → repo-security-plan-S5273JAG.js} +3 -3
- package/dist/{research-helpers-synthesize-JOEPQBRU.js → research-helpers-synthesize-ZW5JWFRL.js} +4 -4
- package/dist/{routing-memory-XFKOAHIR.js → routing-memory-V4GY3BPK.js} +2 -2
- package/dist/{session-memory-FOD5Q3D7.js → session-memory-T2JMN6XL.js} +3 -3
- package/dist/{setup-config-FW7EFH3V.js → setup-config-AV7BBT3L.js} +3 -3
- package/dist/{setup-custom-api-CX4RXIZZ.js → setup-custom-api-K2JKBSLE.js} +4 -4
- package/dist/setup-data-dir-JDBCIIES.js +29 -0
- package/dist/{tool-memory-IIG2UAFD.js → tool-memory-PZH2ETBS.js} +5 -5
- package/dist/{unified-registry-6XWPGIAI.js → unified-registry-EPMTT6JO.js} +10 -10
- package/dist/{weather-report-WK2KMP7B.js → weather-report-XJINXQKZ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-A5KXHX36.js.map +0 -1
- package/dist/chunk-ZTLVF472.js +0 -7
- package/dist/issue-triage-SKXZT5EL.js +0 -17
- package/dist/setup-data-dir-WWBYZZAF.js +0 -29
- /package/dist/{ast-rule-runner-U6QJUMBQ.js.map → ast-rule-runner-SDQOIQRZ.js.map} +0 -0
- /package/dist/{child-mcp-config-UEDU27VQ.js.map → child-mcp-config-ODRZEYO4.js.map} +0 -0
- /package/dist/{chunk-SKBDJDRW.js.map → chunk-3F2WBIAE.js.map} +0 -0
- /package/dist/{chunk-VJLTHKKA.js.map → chunk-3R6IOJLN.js.map} +0 -0
- /package/dist/{chunk-V7L3KXDY.js.map → chunk-4BTSZ5FM.js.map} +0 -0
- /package/dist/{chunk-OEEUFDGL.js.map → chunk-52ZXFIYU.js.map} +0 -0
- /package/dist/{chunk-MZLBC4C2.js.map → chunk-5KDANU4X.js.map} +0 -0
- /package/dist/{chunk-5RRAFT4P.js.map → chunk-6NG32SWL.js.map} +0 -0
- /package/dist/{chunk-KRN4MWKC.js.map → chunk-7MBHNIUH.js.map} +0 -0
- /package/dist/{chunk-M2OKIPZL.js.map → chunk-AEPCYCEK.js.map} +0 -0
- /package/dist/{chunk-AL44KHC6.js.map → chunk-AITXIX5S.js.map} +0 -0
- /package/dist/{chunk-YW6RUGTL.js.map → chunk-CPHFTNHK.js.map} +0 -0
- /package/dist/{chunk-JIMMV2IH.js.map → chunk-H72S6PWN.js.map} +0 -0
- /package/dist/{chunk-HXK7DROF.js.map → chunk-IXJS3GMI.js.map} +0 -0
- /package/dist/{chunk-QKIWUNKO.js.map → chunk-JO4RQSXK.js.map} +0 -0
- /package/dist/{chunk-ZTLVF472.js.map → chunk-K3GWU4VP.js.map} +0 -0
- /package/dist/{chunk-TPV5G24V.js.map → chunk-LJFVNMYK.js.map} +0 -0
- /package/dist/{chunk-JO6BMW4F.js.map → chunk-LYJ5RQEM.js.map} +0 -0
- /package/dist/{chunk-V4JTGJIU.js.map → chunk-MOY6NH2T.js.map} +0 -0
- /package/dist/{chunk-6GLQNTZB.js.map → chunk-MWGE6WAE.js.map} +0 -0
- /package/dist/{chunk-YJF57CQG.js.map → chunk-N3HWX2H2.js.map} +0 -0
- /package/dist/{chunk-JVG47M5L.js.map → chunk-OAIW2IPL.js.map} +0 -0
- /package/dist/{chunk-JKKZUDSX.js.map → chunk-PWFFWOJX.js.map} +0 -0
- /package/dist/{chunk-6PSXNWLW.js.map → chunk-QQGP237B.js.map} +0 -0
- /package/dist/{chunk-SW2XJWWV.js.map → chunk-R2H7VBEK.js.map} +0 -0
- /package/dist/{chunk-L42MPQIR.js.map → chunk-T4KYQXJ4.js.map} +0 -0
- /package/dist/{chunk-2KZKQ6HN.js.map → chunk-U6HN2FGG.js.map} +0 -0
- /package/dist/{chunk-CBKFZKQ2.js.map → chunk-WDOTLCWV.js.map} +0 -0
- /package/dist/{chunk-HGDDJZLF.js.map → chunk-WDTSF5AA.js.map} +0 -0
- /package/dist/{chunk-SWQILV5C.js.map → chunk-WMCLPRLP.js.map} +0 -0
- /package/dist/{chunk-WXZHMWYI.js.map → chunk-WVKDOQ6P.js.map} +0 -0
- /package/dist/{chunk-7WTTZRV2.js.map → chunk-ZGN5NO47.js.map} +0 -0
- /package/dist/{chunk-D6NQ7D4K.js.map → chunk-ZJYM75TM.js.map} +0 -0
- /package/dist/{chunk-4WTKAKGB.js.map → chunk-ZN567ALG.js.map} +0 -0
- /package/dist/{chunk-LCNVY2EA.js.map → chunk-ZQXTKEUT.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-CYAVLPLM.js.map → cli-circuit-breaker-DE7PUEDU.js.map} +0 -0
- /package/dist/{composite-router-7BO2452B.js.map → composite-router-2G6ZEV2S.js.map} +0 -0
- /package/dist/{consensus-vote-4PBL7DNL.js.map → consensus-vote-KZ5N3CDT.js.map} +0 -0
- /package/dist/{context-retriever-IUAAZQQU.js.map → context-retriever-HHWBMQWP.js.map} +0 -0
- /package/dist/{doctor-deep-IYLTNU3U.js.map → doctor-deep-4NURQLSS.js.map} +0 -0
- /package/dist/{doctor-live-QYZWBRME.js.map → doctor-live-FU25BNDK.js.map} +0 -0
- /package/dist/{expert-bridge-NFL3YP63.js.map → expert-bridge-LX7FVP5Z.js.map} +0 -0
- /package/dist/{factory-EH5B5OMO.js.map → factory-KVXI5RTL.js.map} +0 -0
- /package/dist/{factory-JXI73XL4.js.map → factory-LI4KSRMW.js.map} +0 -0
- /package/dist/{improvement-review-LWPQE2IT.js.map → improvement-review-JETBKXUF.js.map} +0 -0
- /package/dist/{init-opencode-C4X6XCAR.js.map → init-opencode-TPQK7EEF.js.map} +0 -0
- /package/dist/{issue-triage-SKXZT5EL.js.map → issue-triage-CXECTGY2.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-JZDP4CS2.js.map → pr-reviewer-helpers-7HQZWV76.js.map} +0 -0
- /package/dist/{registry-command-P54N2CVL.js.map → registry-command-VN52ABY3.js.map} +0 -0
- /package/dist/{repo-security-plan-NMXWMIY6.js.map → repo-security-plan-S5273JAG.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-JOEPQBRU.js.map → research-helpers-synthesize-ZW5JWFRL.js.map} +0 -0
- /package/dist/{routing-memory-XFKOAHIR.js.map → routing-memory-V4GY3BPK.js.map} +0 -0
- /package/dist/{session-memory-FOD5Q3D7.js.map → session-memory-T2JMN6XL.js.map} +0 -0
- /package/dist/{setup-config-FW7EFH3V.js.map → setup-config-AV7BBT3L.js.map} +0 -0
- /package/dist/{setup-custom-api-CX4RXIZZ.js.map → setup-custom-api-K2JKBSLE.js.map} +0 -0
- /package/dist/{setup-data-dir-WWBYZZAF.js.map → setup-data-dir-JDBCIIES.js.map} +0 -0
- /package/dist/{tool-memory-IIG2UAFD.js.map → tool-memory-PZH2ETBS.js.map} +0 -0
- /package/dist/{unified-registry-6XWPGIAI.js.map → unified-registry-EPMTT6JO.js.map} +0 -0
- /package/dist/{weather-report-WK2KMP7B.js.map → weather-report-XJINXQKZ.js.map} +0 -0
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
getBuiltInAstRulesPath,
|
|
10
10
|
loadRules,
|
|
11
11
|
runAstQaRules
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ZGN5NO47.js";
|
|
13
|
+
import "./chunk-AITXIX5S.js";
|
|
14
14
|
import "./chunk-7WJGV5DN.js";
|
|
15
15
|
import "./chunk-J7QCZRVK.js";
|
|
16
16
|
import "./chunk-ZPWHCABL.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
loadRules,
|
|
27
27
|
runAstQaRules
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
29
|
+
//# sourceMappingURL=ast-rule-runner-SDQOIQRZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-DKHBIJO4.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AITXIX5S.js";
|
|
7
7
|
import "./chunk-7WJGV5DN.js";
|
|
8
8
|
import "./chunk-J7QCZRVK.js";
|
|
9
9
|
import "./chunk-ZPWHCABL.js";
|
|
@@ -62,4 +62,4 @@ export {
|
|
|
62
62
|
generateMcpConfig,
|
|
63
63
|
getDefaultAllowedTools
|
|
64
64
|
};
|
|
65
|
-
//# sourceMappingURL=child-mcp-config-
|
|
65
|
+
//# sourceMappingURL=child-mcp-config-ODRZEYO4.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AITXIX5S.js";
|
|
7
7
|
|
|
8
8
|
// src/config/model-availability.ts
|
|
9
9
|
var DEFAULT_TTL_MS = 6e4;
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
resetAvailabilityCache,
|
|
151
151
|
filterAvailableModels
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-3F2WBIAE.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getTimeProvider
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-AITXIX5S.js";
|
|
4
4
|
|
|
5
5
|
// src/security/audit-trail.ts
|
|
6
6
|
var MAX_EVENTS = 1e4;
|
|
@@ -205,4 +205,4 @@ export {
|
|
|
205
205
|
createGraphAuditBridge,
|
|
206
206
|
createAuditTrail
|
|
207
207
|
};
|
|
208
|
-
//# sourceMappingURL=chunk-
|
|
208
|
+
//# sourceMappingURL=chunk-3R6IOJLN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AITXIX5S.js";
|
|
5
5
|
|
|
6
6
|
// src/utils/id-utils.ts
|
|
7
7
|
import { randomUUID } from "node:crypto";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
generateHyphenId,
|
|
25
25
|
generateUUID
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-4BTSZ5FM.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
lookupInTreeCapability,
|
|
14
14
|
ok,
|
|
15
15
|
resolveRetryAfterMs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-AITXIX5S.js";
|
|
17
17
|
|
|
18
18
|
// src/config/model-parameter-support.ts
|
|
19
19
|
function parseClaudeMajorMinor(bareId) {
|
|
@@ -834,4 +834,4 @@ export {
|
|
|
834
834
|
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
835
835
|
collectStream
|
|
836
836
|
};
|
|
837
|
-
//# sourceMappingURL=chunk-
|
|
837
|
+
//# sourceMappingURL=chunk-52ZXFIYU.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getTimeProvider,
|
|
9
9
|
isRateLimitText,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-AITXIX5S.js";
|
|
12
12
|
|
|
13
13
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
14
14
|
var CircuitErrorCode = {
|
|
@@ -541,4 +541,4 @@ export {
|
|
|
541
541
|
CliCircuitBreakerIntegration,
|
|
542
542
|
createCliCircuitBreakerIntegration
|
|
543
543
|
};
|
|
544
|
-
//# sourceMappingURL=chunk-
|
|
544
|
+
//# sourceMappingURL=chunk-5KDANU4X.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
getErrorMessage,
|
|
7
7
|
ok,
|
|
8
8
|
parseBoolEnv
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AITXIX5S.js";
|
|
10
10
|
import {
|
|
11
11
|
findRepoRoot,
|
|
12
12
|
getActiveWorkspaceRoot,
|
|
@@ -223,4 +223,4 @@ export {
|
|
|
223
223
|
loadPapersRegistry,
|
|
224
224
|
savePapersRegistry
|
|
225
225
|
};
|
|
226
|
-
//# sourceMappingURL=chunk-
|
|
226
|
+
//# sourceMappingURL=chunk-6NG32SWL.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AITXIX5S.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/tools/scanner-registry-fetcher.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -721,4 +721,4 @@ export {
|
|
|
721
721
|
generateSecurityPlan,
|
|
722
722
|
buildPlanFromAnalysis
|
|
723
723
|
};
|
|
724
|
-
//# sourceMappingURL=chunk-
|
|
724
|
+
//# sourceMappingURL=chunk-7MBHNIUH.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
readOpenAICompatEnv
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-R2H7VBEK.js";
|
|
4
4
|
import {
|
|
5
5
|
allOf
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-K3GWU4VP.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-7LP6VJRP.js";
|
|
13
13
|
import {
|
|
14
14
|
createAllAdapters,
|
|
15
15
|
probeCli
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-T4KYQXJ4.js";
|
|
17
17
|
import {
|
|
18
18
|
getNexusTmpDir
|
|
19
19
|
} from "./chunk-DKHBIJO4.js";
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
ok,
|
|
29
29
|
symbols,
|
|
30
30
|
writeLine
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-AITXIX5S.js";
|
|
32
32
|
import {
|
|
33
33
|
getLearningDir,
|
|
34
34
|
getOutcomesFile,
|
|
@@ -1220,13 +1220,13 @@ async function runDoctorFix(result) {
|
|
|
1220
1220
|
writeLine2("\u2500".repeat(40));
|
|
1221
1221
|
let fixCount = 0;
|
|
1222
1222
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1223
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1223
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-JDBCIIES.js");
|
|
1224
1224
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1225
1225
|
writeLine2(outcome.line);
|
|
1226
1226
|
if (outcome.counted) fixCount++;
|
|
1227
1227
|
}
|
|
1228
1228
|
if (!result.configFile.found) {
|
|
1229
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
1229
|
+
const { runConfigInitSync } = await import("./setup-config-AV7BBT3L.js");
|
|
1230
1230
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
1231
1231
|
if (configResult.success && configResult.created) {
|
|
1232
1232
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -1322,4 +1322,4 @@ export {
|
|
|
1322
1322
|
startStdioServer,
|
|
1323
1323
|
closeServer
|
|
1324
1324
|
};
|
|
1325
|
-
//# sourceMappingURL=chunk-
|
|
1325
|
+
//# sourceMappingURL=chunk-AEPCYCEK.js.map
|
|
@@ -2650,7 +2650,7 @@ function setDefaultRegistry(registry) {
|
|
|
2650
2650
|
}
|
|
2651
2651
|
async function reloadDefaultRegistry() {
|
|
2652
2652
|
globalRegistry = buildDefaultRegistry();
|
|
2653
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2653
|
+
const { resetGlobalRegistry } = await import("./unified-registry-EPMTT6JO.js");
|
|
2654
2654
|
resetGlobalRegistry();
|
|
2655
2655
|
return globalRegistry;
|
|
2656
2656
|
}
|
|
@@ -15373,7 +15373,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
15373
15373
|
*/
|
|
15374
15374
|
async consultUnifiedContext(task) {
|
|
15375
15375
|
try {
|
|
15376
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
15376
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-HHWBMQWP.js");
|
|
15377
15377
|
const ctx = await getContextForTask({
|
|
15378
15378
|
task: task.content,
|
|
15379
15379
|
category: inferTaskCategory(task.content),
|
|
@@ -17031,4 +17031,4 @@ export {
|
|
|
17031
17031
|
AgentCapability,
|
|
17032
17032
|
OrchestratorError
|
|
17033
17033
|
};
|
|
17034
|
-
//# sourceMappingURL=chunk-
|
|
17034
|
+
//# sourceMappingURL=chunk-AITXIX5S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-7MBHNIUH.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-DGWT7DXX.js";
|
|
@@ -21,10 +21,10 @@ import {
|
|
|
21
21
|
import {
|
|
22
22
|
DEFAULT_TASK_TTL_MS,
|
|
23
23
|
clampTaskTtl
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-AEPCYCEK.js";
|
|
25
25
|
import {
|
|
26
26
|
executeExpert
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IXJS3GMI.js";
|
|
28
28
|
import {
|
|
29
29
|
JobStatusSchema,
|
|
30
30
|
VOTER_ROLES,
|
|
@@ -48,26 +48,26 @@ import {
|
|
|
48
48
|
simulationDeniedResult,
|
|
49
49
|
toJobSummary,
|
|
50
50
|
writeJobCancelled
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-ZN567ALG.js";
|
|
52
52
|
import {
|
|
53
53
|
allOf
|
|
54
54
|
} from "./chunk-OQB3XC5O.js";
|
|
55
55
|
import {
|
|
56
56
|
normalizeTopicToCanonical,
|
|
57
57
|
synthesizeResearch
|
|
58
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-PWFFWOJX.js";
|
|
59
59
|
import {
|
|
60
60
|
IssueTriage,
|
|
61
61
|
createDurableAuditSink,
|
|
62
62
|
createDurableAuditTrail
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-ZJYM75TM.js";
|
|
64
64
|
import {
|
|
65
65
|
resolveEnvMode,
|
|
66
66
|
sanitizeInput
|
|
67
|
-
} from "./chunk-
|
|
67
|
+
} from "./chunk-JO4RQSXK.js";
|
|
68
68
|
import {
|
|
69
69
|
withPrerequisite
|
|
70
|
-
} from "./chunk-
|
|
70
|
+
} from "./chunk-MWGE6WAE.js";
|
|
71
71
|
import {
|
|
72
72
|
NOOP_NOTIFIER,
|
|
73
73
|
RateLimiter,
|
|
@@ -92,18 +92,18 @@ import {
|
|
|
92
92
|
withAuditTrail,
|
|
93
93
|
withProgressHeartbeat,
|
|
94
94
|
wrapToolWithTimeout
|
|
95
|
-
} from "./chunk-
|
|
95
|
+
} from "./chunk-MOY6NH2T.js";
|
|
96
96
|
import {
|
|
97
97
|
createAuditTrail,
|
|
98
98
|
createGraphAuditBridge,
|
|
99
99
|
emitPipelinePolicyEvent
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-3R6IOJLN.js";
|
|
101
101
|
import {
|
|
102
102
|
EventTopics,
|
|
103
103
|
createEvent,
|
|
104
104
|
getGlobalEventBus,
|
|
105
105
|
getGlobalRegistry
|
|
106
|
-
} from "./chunk-
|
|
106
|
+
} from "./chunk-QQGP237B.js";
|
|
107
107
|
import {
|
|
108
108
|
IDENTIFIER_RE,
|
|
109
109
|
LANG_VALUES,
|
|
@@ -136,7 +136,7 @@ import {
|
|
|
136
136
|
parseRegistry,
|
|
137
137
|
sourceExistsInRegistry,
|
|
138
138
|
summarizeContextForPrompt
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-FUA3WSZN.js";
|
|
140
140
|
import {
|
|
141
141
|
REGISTRY_PATH,
|
|
142
142
|
getProjectRoot,
|
|
@@ -144,25 +144,25 @@ import {
|
|
|
144
144
|
loadTechniquesRegistry,
|
|
145
145
|
resolveInsideRoot,
|
|
146
146
|
resolveRegistryRoot
|
|
147
|
-
} from "./chunk-
|
|
147
|
+
} from "./chunk-6NG32SWL.js";
|
|
148
148
|
import {
|
|
149
149
|
getTokenEnvVars,
|
|
150
150
|
resolveToken
|
|
151
|
-
} from "./chunk-
|
|
151
|
+
} from "./chunk-WDTSF5AA.js";
|
|
152
152
|
import {
|
|
153
153
|
DEFAULT_RELEVANCE_CONFIG,
|
|
154
154
|
MemoryImportance,
|
|
155
155
|
MemoryType,
|
|
156
156
|
calculateTextJaccardSimilarity,
|
|
157
157
|
getToolMemory
|
|
158
|
-
} from "./chunk-
|
|
158
|
+
} from "./chunk-OAIW2IPL.js";
|
|
159
159
|
import {
|
|
160
160
|
STOPWORDS,
|
|
161
161
|
truncateWithInfo
|
|
162
162
|
} from "./chunk-7LP6VJRP.js";
|
|
163
163
|
import {
|
|
164
164
|
createSessionMemory
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-LJFVNMYK.js";
|
|
166
166
|
import {
|
|
167
167
|
BUILT_IN_EXPERTS,
|
|
168
168
|
BuiltInExpertTypeSchema,
|
|
@@ -180,25 +180,25 @@ import {
|
|
|
180
180
|
getAvailableClis,
|
|
181
181
|
sleep,
|
|
182
182
|
withTimeout
|
|
183
|
-
} from "./chunk-
|
|
183
|
+
} from "./chunk-T4KYQXJ4.js";
|
|
184
184
|
import {
|
|
185
185
|
BaseAdapter,
|
|
186
186
|
createStream,
|
|
187
187
|
requireApiKey,
|
|
188
188
|
validateApiKeyPresence
|
|
189
|
-
} from "./chunk-
|
|
189
|
+
} from "./chunk-52ZXFIYU.js";
|
|
190
190
|
import {
|
|
191
191
|
DEFAULTS
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-ZQXTKEUT.js";
|
|
193
193
|
import {
|
|
194
194
|
getAvailabilityCache,
|
|
195
195
|
getCliForModelId,
|
|
196
196
|
resolveFallback
|
|
197
|
-
} from "./chunk-
|
|
197
|
+
} from "./chunk-3F2WBIAE.js";
|
|
198
198
|
import {
|
|
199
199
|
generateHyphenId,
|
|
200
200
|
generateUUID
|
|
201
|
-
} from "./chunk-
|
|
201
|
+
} from "./chunk-4BTSZ5FM.js";
|
|
202
202
|
import {
|
|
203
203
|
AGENT_ROUTER_TIMEOUTS,
|
|
204
204
|
API_TIMEOUTS,
|
|
@@ -304,7 +304,7 @@ import {
|
|
|
304
304
|
selectStrategyByManifest,
|
|
305
305
|
toExpertTaskAnalysisResult,
|
|
306
306
|
withStep
|
|
307
|
-
} from "./chunk-
|
|
307
|
+
} from "./chunk-AITXIX5S.js";
|
|
308
308
|
import {
|
|
309
309
|
ensureLearningDir,
|
|
310
310
|
getMetaOutcomesFile,
|
|
@@ -29782,7 +29782,7 @@ function execIdFields(executionId) {
|
|
|
29782
29782
|
async function populateUnifiedContextOnState(state, options) {
|
|
29783
29783
|
const taskCandidate = state["task"];
|
|
29784
29784
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
29785
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
29785
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-HHWBMQWP.js");
|
|
29786
29786
|
const category = inferTaskCategory2(taskCandidate);
|
|
29787
29787
|
const executionId = options?.executionId;
|
|
29788
29788
|
const execFields = execIdFields(executionId);
|
|
@@ -45585,7 +45585,7 @@ async function tryIssueTriage(task) {
|
|
|
45585
45585
|
try {
|
|
45586
45586
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
45587
45587
|
if (issueMatch === null) return null;
|
|
45588
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
45588
|
+
const { createIssueTriage } = await import("./issue-triage-CXECTGY2.js");
|
|
45589
45589
|
const triage = createIssueTriage();
|
|
45590
45590
|
const owner = issueMatch[1] ?? "";
|
|
45591
45591
|
const num = issueMatch[2] ?? "";
|
|
@@ -45613,7 +45613,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
45613
45613
|
]);
|
|
45614
45614
|
async function classifyWithLLM(task) {
|
|
45615
45615
|
try {
|
|
45616
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
45616
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-LX7FVP5Z.js");
|
|
45617
45617
|
const prompt = [
|
|
45618
45618
|
"Classify this task into exactly one pipeline template.",
|
|
45619
45619
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -45987,7 +45987,7 @@ function buildVotingInput(plan, config) {
|
|
|
45987
45987
|
}
|
|
45988
45988
|
async function executeSingleVote(plan, config, log) {
|
|
45989
45989
|
try {
|
|
45990
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
45990
|
+
const { executeVoting } = await import("./consensus-vote-KZ5N3CDT.js");
|
|
45991
45991
|
const input = buildVotingInput(plan, config);
|
|
45992
45992
|
const result = await executeVoting(input, log);
|
|
45993
45993
|
return parseVotingResult(result);
|
|
@@ -47526,7 +47526,7 @@ var memoryInitPromise = null;
|
|
|
47526
47526
|
async function initPipelineMemory() {
|
|
47527
47527
|
if (cachedMemory !== null) return cachedMemory;
|
|
47528
47528
|
try {
|
|
47529
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47529
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-T2JMN6XL.js");
|
|
47530
47530
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47531
47531
|
const mem = createSessionMemory2(getLearningDir());
|
|
47532
47532
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
@@ -47588,7 +47588,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
47588
47588
|
callRecord(routingMemoryCache);
|
|
47589
47589
|
return;
|
|
47590
47590
|
}
|
|
47591
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
47591
|
+
routingMemoryInitPromise ??= import("./routing-memory-V4GY3BPK.js").then(({ createRoutingMemory }) => {
|
|
47592
47592
|
routingMemoryCache ??= createRoutingMemory();
|
|
47593
47593
|
return routingMemoryCache;
|
|
47594
47594
|
}).catch((error) => {
|
|
@@ -47622,7 +47622,7 @@ ${text}` : "";
|
|
|
47622
47622
|
}
|
|
47623
47623
|
async function getWeatherContext() {
|
|
47624
47624
|
try {
|
|
47625
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
47625
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-XJINXQKZ.js");
|
|
47626
47626
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
47627
47627
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
47628
47628
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -47640,7 +47640,7 @@ ${lines}
|
|
|
47640
47640
|
}
|
|
47641
47641
|
async function getMemoryContext(task) {
|
|
47642
47642
|
try {
|
|
47643
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
47643
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-T2JMN6XL.js");
|
|
47644
47644
|
const { getLearningDir } = await import("./learning-persistence-JK2FELZL.js");
|
|
47645
47645
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
47646
47646
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
@@ -47759,7 +47759,7 @@ ${contextBlock}`;
|
|
|
47759
47759
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
47760
47760
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
47761
47761
|
try {
|
|
47762
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
47762
|
+
const { executeVoting } = await import("./consensus-vote-KZ5N3CDT.js");
|
|
47763
47763
|
const votingResult = await executeVoting(
|
|
47764
47764
|
{
|
|
47765
47765
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -48190,7 +48190,7 @@ async function searchCodebaseForTask(task) {
|
|
|
48190
48190
|
}
|
|
48191
48191
|
async function queryResearchRegistry(task) {
|
|
48192
48192
|
try {
|
|
48193
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
48193
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-ZW5JWFRL.js");
|
|
48194
48194
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
48195
48195
|
if (topic === void 0) return null;
|
|
48196
48196
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -48261,7 +48261,7 @@ function createScanStageWrapper() {
|
|
|
48261
48261
|
try {
|
|
48262
48262
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
48263
48263
|
if (slug !== void 0) {
|
|
48264
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
48264
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-S5273JAG.js");
|
|
48265
48265
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
48266
48266
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
48267
48267
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -51463,7 +51463,7 @@ var GitHubTaskTracker = class {
|
|
|
51463
51463
|
cachedProvider = null;
|
|
51464
51464
|
async getProvider() {
|
|
51465
51465
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
51466
|
-
const { createScmProvider } = await import("./factory-
|
|
51466
|
+
const { createScmProvider } = await import("./factory-KVXI5RTL.js");
|
|
51467
51467
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
51468
51468
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
51469
51469
|
this.cachedProvider = result.value;
|
|
@@ -52368,7 +52368,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
52368
52368
|
}
|
|
52369
52369
|
}
|
|
52370
52370
|
async function defaultSources(includeOpenRouter) {
|
|
52371
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
52371
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-LI4KSRMW.js");
|
|
52372
52372
|
const adapters = createAllAdapters2();
|
|
52373
52373
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
52374
52374
|
}
|
|
@@ -56444,4 +56444,4 @@ export {
|
|
|
56444
56444
|
shutdownFeedbackSubscriber,
|
|
56445
56445
|
createEventBusBridge
|
|
56446
56446
|
};
|
|
56447
|
-
//# sourceMappingURL=chunk-
|
|
56447
|
+
//# sourceMappingURL=chunk-CPHFTNHK.js.map
|
|
@@ -5,13 +5,13 @@ import {
|
|
|
5
5
|
loadTechniquesRegistry,
|
|
6
6
|
resolveInsideRoot,
|
|
7
7
|
savePapersRegistry
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6NG32SWL.js";
|
|
9
9
|
import {
|
|
10
10
|
resolveToken
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-WDTSF5AA.js";
|
|
12
12
|
import {
|
|
13
13
|
getToolMemory
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-OAIW2IPL.js";
|
|
15
15
|
import {
|
|
16
16
|
capitalizeWords,
|
|
17
17
|
tokenizeFiltered,
|
|
@@ -40,7 +40,7 @@ import {
|
|
|
40
40
|
ok,
|
|
41
41
|
registerPersistentDistillerFactory,
|
|
42
42
|
sigmoidConfidence
|
|
43
|
-
} from "./chunk-
|
|
43
|
+
} from "./chunk-AITXIX5S.js";
|
|
44
44
|
import {
|
|
45
45
|
ensureLearningDir,
|
|
46
46
|
getRulesFile
|
|
@@ -2429,6 +2429,28 @@ function sliceContextLines(lines, counter) {
|
|
|
2429
2429
|
function disclosedHeading(label, slice) {
|
|
2430
2430
|
return `${label} (${String(slice.included)} included, ${String(slice.dropped)} dropped, ${String(slice.droppedTokens)} dropped tokens)`;
|
|
2431
2431
|
}
|
|
2432
|
+
function renderDisclosedSection(heading, lines, counter) {
|
|
2433
|
+
const slice = sliceContextLines(lines, counter);
|
|
2434
|
+
return `${disclosedHeading(heading, slice)}
|
|
2435
|
+
${slice.lines.join("\n")}`;
|
|
2436
|
+
}
|
|
2437
|
+
function renderLegacyLearningSections(ctx, counter, sanitize) {
|
|
2438
|
+
const sections = [];
|
|
2439
|
+
if (ctx.recentLearnings.length > 0) {
|
|
2440
|
+
const lines = ctx.recentLearnings.map(({ entry }) => {
|
|
2441
|
+
const value = typeof entry.value === "string" ? entry.value : entry.key;
|
|
2442
|
+
return `- ${sanitize(value)}`;
|
|
2443
|
+
});
|
|
2444
|
+
sections.push(renderDisclosedSection("### Recent learnings", lines, counter));
|
|
2445
|
+
}
|
|
2446
|
+
if (ctx.priorStrategies.length > 0) {
|
|
2447
|
+
const lines = ctx.priorStrategies.map(
|
|
2448
|
+
(rule) => `- ${sanitize(`${rule.category} ${rule.patternType} ${rule.action} ${rule.cli}`)}`
|
|
2449
|
+
);
|
|
2450
|
+
sections.push(renderDisclosedSection("### Prior strategies", lines, counter));
|
|
2451
|
+
}
|
|
2452
|
+
return sections;
|
|
2453
|
+
}
|
|
2432
2454
|
function combinedScore(item, keywords) {
|
|
2433
2455
|
const text = textRelevance(item.text, keywords);
|
|
2434
2456
|
const recency = recencyDecay(item.ageMs);
|
|
@@ -2470,6 +2492,23 @@ function clampToTokenBudget(text, maxTokens) {
|
|
|
2470
2492
|
const kept = text.slice(0, maxChars);
|
|
2471
2493
|
return { text: kept, clipped: true, omittedChars: text.length - kept.length };
|
|
2472
2494
|
}
|
|
2495
|
+
function assembleClampedContext(memoryBlock, repoMap, budgetTokens, clipNoticeReserveTokens) {
|
|
2496
|
+
const rendered = repoMap === "" ? memoryBlock : memoryBlock === "" ? repoMap : `${memoryBlock}
|
|
2497
|
+
|
|
2498
|
+
${repoMap}`;
|
|
2499
|
+
if (rendered === "") return { text: "", memory: "", repoMap: "" };
|
|
2500
|
+
const contentBudget = Math.max(0, budgetTokens - clipNoticeReserveTokens);
|
|
2501
|
+
const { text: retained, clipped, omittedChars } = clampToTokenBudget(rendered, contentBudget);
|
|
2502
|
+
const notice = clipped ? `
|
|
2503
|
+
|
|
2504
|
+
_(context clipped to fit the ~${String(budgetTokens)}-token budget; ~${String(omittedChars)} chars omitted \u2014 #4253)_` : "";
|
|
2505
|
+
const mapStart = memoryBlock === "" ? 0 : memoryBlock.length;
|
|
2506
|
+
const retainedMap = retained.slice(mapStart);
|
|
2507
|
+
const mapOwnsNotice = repoMap !== "" && (memoryBlock === "" || retainedMap !== "");
|
|
2508
|
+
const memory = retained.slice(0, Math.min(memoryBlock.length, retained.length)) + (mapOwnsNotice ? "" : notice);
|
|
2509
|
+
const emittedMap = retainedMap + (mapOwnsNotice ? notice : "");
|
|
2510
|
+
return { text: `${retained}${notice}`, memory, repoMap: emittedMap };
|
|
2511
|
+
}
|
|
2473
2512
|
function ageFrom(date, now) {
|
|
2474
2513
|
const t = date?.getTime();
|
|
2475
2514
|
if (t === void 0 || !Number.isFinite(t)) return 0;
|
|
@@ -4006,18 +4045,16 @@ function oneLine3(value) {
|
|
|
4006
4045
|
}
|
|
4007
4046
|
function summarizeContextForPrompt(ctx, budgetTokens = DEFAULT_CONTEXT_BUDGET_TOKENS) {
|
|
4008
4047
|
const ranked = process.env[CONTEXT_RANKED_FLAG] === "1";
|
|
4009
|
-
const
|
|
4010
|
-
const
|
|
4011
|
-
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
|
|
4015
|
-
|
|
4016
|
-
|
|
4017
|
-
recordRepoMapTokens(
|
|
4018
|
-
return
|
|
4019
|
-
|
|
4020
|
-
${map}`;
|
|
4048
|
+
const memoryBlock = ranked ? summarizeRankedContext(ctx) : summarizeLegacyContext(ctx);
|
|
4049
|
+
const emitted = assembleClampedContext(
|
|
4050
|
+
memoryBlock,
|
|
4051
|
+
ctx.repoMap ?? "",
|
|
4052
|
+
budgetTokens,
|
|
4053
|
+
CLIP_NOTICE_RESERVE_TOKENS
|
|
4054
|
+
);
|
|
4055
|
+
recordAssembledContextTokens(emitted.memory, ranked);
|
|
4056
|
+
if (emitted.repoMap !== "") recordRepoMapTokens(emitted.repoMap);
|
|
4057
|
+
return emitted.text;
|
|
4021
4058
|
}
|
|
4022
4059
|
var REPO_MAP_LEDGER_VARIANT = `${REPO_MAP_FLAG}=1`;
|
|
4023
4060
|
function recordRepoMapTokens(rendered) {
|
|
@@ -4040,15 +4077,6 @@ function recordAssembledContextTokens(rendered, ranked) {
|
|
|
4040
4077
|
}
|
|
4041
4078
|
var DEFAULT_CONTEXT_BUDGET_TOKENS = 2500;
|
|
4042
4079
|
var CLIP_NOTICE_RESERVE_TOKENS = 30;
|
|
4043
|
-
function clampRenderedContext(rendered, budgetTokens) {
|
|
4044
|
-
if (rendered === "") return rendered;
|
|
4045
|
-
const contentBudget = Math.max(0, budgetTokens - CLIP_NOTICE_RESERVE_TOKENS);
|
|
4046
|
-
const { text: kept, clipped, omittedChars } = clampToTokenBudget(rendered, contentBudget);
|
|
4047
|
-
if (!clipped) return rendered;
|
|
4048
|
-
return `${kept}
|
|
4049
|
-
|
|
4050
|
-
_(context clipped to fit the ~${String(budgetTokens)}-token budget; ~${String(omittedChars)} chars omitted \u2014 #4253)_`;
|
|
4051
|
-
}
|
|
4052
4080
|
function summarizeLegacyContext(ctx) {
|
|
4053
4081
|
const sections = [];
|
|
4054
4082
|
if (ctx.beliefs.length > 0) {
|
|
@@ -4066,6 +4094,7 @@ ${slice.lines.join("\n")}`);
|
|
|
4066
4094
|
sections.push(`### Similar prior work
|
|
4067
4095
|
${lines.join("\n")}`);
|
|
4068
4096
|
}
|
|
4097
|
+
sections.push(...renderLegacyLearningSections(ctx, contextTokenCounter, oneLine3));
|
|
4069
4098
|
if (ctx.experiencePatterns.length > 0) {
|
|
4070
4099
|
const lines = ctx.experiencePatterns.slice(0, 3).map(
|
|
4071
4100
|
(p) => `- ${oneLine3(p.taskType)}: ${(p.successRate * 100).toFixed(0)}% success over ${String(p.attemptCount)} attempts`
|
|
@@ -4186,4 +4215,4 @@ export {
|
|
|
4186
4215
|
DEFAULT_CONTEXT_BUDGET_TOKENS,
|
|
4187
4216
|
getContextPromptPrefix
|
|
4188
4217
|
};
|
|
4189
|
-
//# sourceMappingURL=chunk-
|
|
4218
|
+
//# sourceMappingURL=chunk-FUA3WSZN.js.map
|