nexus-agents 2.162.1 → 2.163.0
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/{child-mcp-config-VXXBVJY3.js → child-mcp-config-ZSVYMJTH.js} +3 -3
- package/dist/{chunk-MJLN336B.js → chunk-2EAKVHOL.js} +3 -3
- package/dist/{chunk-23ZSFBBM.js → chunk-2LR2XP3B.js} +9 -9
- package/dist/{chunk-FFH35IKD.js → chunk-3EBDRAQW.js} +3 -3
- package/dist/{chunk-V7CIVDNO.js → chunk-3JWMDESZ.js} +3 -3
- package/dist/{chunk-JB37LBSG.js → chunk-3RDE3OZ6.js} +7 -7
- package/dist/{chunk-U4KMGGGF.js → chunk-3ZXNPAUR.js} +2 -2
- package/dist/{chunk-THUX4X43.js → chunk-47EFSSZK.js} +3 -3
- package/dist/{chunk-VWV34IMA.js → chunk-563FMXWL.js} +2 -2
- package/dist/{chunk-754RDQAS.js → chunk-5KFUWUMY.js} +2 -2
- package/dist/{chunk-YUAQRJRF.js → chunk-AM7EW7CP.js} +4 -4
- package/dist/{chunk-HJZ3RES7.js → chunk-AOXZ42SD.js} +2 -2
- package/dist/{chunk-DBHK6EDT.js → chunk-ARTIFRBA.js} +2 -2
- package/dist/{chunk-NL7SZQPW.js → chunk-AXTD4TFK.js} +5 -1
- package/dist/{chunk-NL7SZQPW.js.map → chunk-AXTD4TFK.js.map} +1 -1
- package/dist/{chunk-ZIPTXCET.js → chunk-B3FX6E7M.js} +37 -37
- package/dist/{chunk-7QWGLBCE.js → chunk-CNGZ5N4W.js} +5 -5
- package/dist/{chunk-XWAV3UC2.js → chunk-D2NBIVAV.js} +5 -5
- package/dist/{chunk-DXEYJAGO.js → chunk-ENKFWBRH.js} +2 -2
- package/dist/{chunk-W3ZTVYZN.js → chunk-HDLWUFKI.js} +2 -2
- package/dist/{chunk-WP6L2PTV.js → chunk-JZ3DVFEW.js} +7 -7
- package/dist/{chunk-JYR6SBUB.js → chunk-K5NU57WE.js} +4 -4
- package/dist/{chunk-GJSJRJ6Y.js → chunk-K7GAI4WP.js} +2 -2
- package/dist/{chunk-EZHYOWWO.js → chunk-LJWB4Z7O.js} +2 -2
- package/dist/{chunk-WGDZFYP3.js → chunk-NDV5J3Z5.js} +277 -27
- package/dist/chunk-NDV5J3Z5.js.map +1 -0
- package/dist/{chunk-N67NSSQT.js → chunk-NG5ZAI7W.js} +2 -2
- package/dist/{chunk-MJOHZFJP.js → chunk-OEOBPWBH.js} +15 -8
- package/dist/chunk-OEOBPWBH.js.map +1 -0
- package/dist/{chunk-ZGSAYLPE.js → chunk-P4J6I5ZI.js} +2 -2
- package/dist/{chunk-GMSYKYFA.js → chunk-PRU452SV.js} +2 -2
- package/dist/{chunk-TJJW4BGX.js → chunk-S477DLWR.js} +4 -4
- package/dist/{chunk-RN5ISNYK.js → chunk-SBCIKT64.js} +3 -3
- package/dist/{chunk-JIXCOX7D.js → chunk-SKJK44YC.js} +3 -3
- package/dist/{chunk-EVYIQ6N5.js → chunk-U5E2JJ4F.js} +6 -6
- package/dist/{chunk-6ILEOLNW.js → chunk-UAK3OVSL.js} +2 -2
- package/dist/{chunk-EQJR6WMY.js → chunk-UEAG2PEQ.js} +2 -2
- package/dist/{chunk-RDYGX6MQ.js → chunk-WRZ7HENW.js} +2 -2
- package/dist/{chunk-6FWMNTPO.js → chunk-Y6O4FB5V.js} +4 -4
- package/dist/{cli-circuit-breaker-B4RH2ELX.js → cli-circuit-breaker-KUPKNGN2.js} +5 -5
- package/dist/cli.js +42 -42
- package/dist/{composite-router-4PYFIB2G.js → composite-router-F6YN34I7.js} +3 -3
- package/dist/{consensus-vote-MM5YG3A5.js → consensus-vote-N4HVJT7S.js} +16 -16
- package/dist/{context-retriever-YGPEAEPO.js → context-retriever-W6Z6JNEF.js} +9 -9
- package/dist/{doctor-deep-N576AXQE.js → doctor-deep-MKKGB3KM.js} +4 -4
- package/dist/{expert-bridge-YEE7F6TA.js → expert-bridge-KWUVLYXR.js} +5 -5
- package/dist/factory-5TRDV3CD.js +15 -0
- package/dist/factory-UF6LR6R6.js +22 -0
- package/dist/{improvement-review-5CZJIOEH.js → improvement-review-K2FQ5K4H.js} +6 -6
- package/dist/index.d.ts +33 -0
- package/dist/index.js +31 -31
- package/dist/{init-opencode-R3PEVUUI.js → init-opencode-42DWDOPX.js} +7 -7
- package/dist/issue-triage-OHJZLCEG.js +18 -0
- package/dist/{learning-persistence-M3OTCCNI.js → learning-persistence-6D5GGT7D.js} +4 -2
- package/dist/{pr-reviewer-helpers-TOMMTISB.js → pr-reviewer-helpers-ZWGIWDFL.js} +5 -5
- package/dist/{registry-command-EBGQHFT3.js → registry-command-X6FLUFKQ.js} +3 -3
- package/dist/{repo-security-plan-CWJ3Z4CC.js → repo-security-plan-K4IYY3OY.js} +4 -4
- package/dist/{research-helpers-synthesize-UNLGVEND.js → research-helpers-synthesize-GBT6QZIP.js} +5 -5
- package/dist/{routing-memory-MTGIZZUO.js → routing-memory-KDVKLC75.js} +3 -3
- package/dist/{session-memory-QGUF5TNU.js → session-memory-HQ5KPXQG.js} +4 -4
- package/dist/{setup-command-6QSWQMBJ.js → setup-command-USFTGMA3.js} +12 -12
- package/dist/setup-config-K66VKRCD.js +11 -0
- package/dist/{setup-custom-api-QON4YKJ3.js → setup-custom-api-6CG7HMRX.js} +4 -4
- package/dist/{tool-memory-SNH4B5Q7.js → tool-memory-DAGKXCJA.js} +6 -6
- package/dist/{unified-registry-XEA2GEOZ.js → unified-registry-GAGQ2VSX.js} +10 -10
- package/dist/{weather-report-QQ42WBNZ.js → weather-report-ZYPHCFXL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-MJOHZFJP.js.map +0 -1
- package/dist/chunk-WGDZFYP3.js.map +0 -1
- package/dist/factory-NQEQY7NV.js +0 -15
- package/dist/factory-TWK2UKNH.js +0 -22
- package/dist/issue-triage-Y35K4BUV.js +0 -18
- package/dist/setup-config-4TGGV7AQ.js +0 -11
- /package/dist/{child-mcp-config-VXXBVJY3.js.map → child-mcp-config-ZSVYMJTH.js.map} +0 -0
- /package/dist/{chunk-MJLN336B.js.map → chunk-2EAKVHOL.js.map} +0 -0
- /package/dist/{chunk-23ZSFBBM.js.map → chunk-2LR2XP3B.js.map} +0 -0
- /package/dist/{chunk-FFH35IKD.js.map → chunk-3EBDRAQW.js.map} +0 -0
- /package/dist/{chunk-V7CIVDNO.js.map → chunk-3JWMDESZ.js.map} +0 -0
- /package/dist/{chunk-JB37LBSG.js.map → chunk-3RDE3OZ6.js.map} +0 -0
- /package/dist/{chunk-U4KMGGGF.js.map → chunk-3ZXNPAUR.js.map} +0 -0
- /package/dist/{chunk-THUX4X43.js.map → chunk-47EFSSZK.js.map} +0 -0
- /package/dist/{chunk-VWV34IMA.js.map → chunk-563FMXWL.js.map} +0 -0
- /package/dist/{chunk-754RDQAS.js.map → chunk-5KFUWUMY.js.map} +0 -0
- /package/dist/{chunk-YUAQRJRF.js.map → chunk-AM7EW7CP.js.map} +0 -0
- /package/dist/{chunk-HJZ3RES7.js.map → chunk-AOXZ42SD.js.map} +0 -0
- /package/dist/{chunk-DBHK6EDT.js.map → chunk-ARTIFRBA.js.map} +0 -0
- /package/dist/{chunk-ZIPTXCET.js.map → chunk-B3FX6E7M.js.map} +0 -0
- /package/dist/{chunk-7QWGLBCE.js.map → chunk-CNGZ5N4W.js.map} +0 -0
- /package/dist/{chunk-XWAV3UC2.js.map → chunk-D2NBIVAV.js.map} +0 -0
- /package/dist/{chunk-DXEYJAGO.js.map → chunk-ENKFWBRH.js.map} +0 -0
- /package/dist/{chunk-W3ZTVYZN.js.map → chunk-HDLWUFKI.js.map} +0 -0
- /package/dist/{chunk-WP6L2PTV.js.map → chunk-JZ3DVFEW.js.map} +0 -0
- /package/dist/{chunk-JYR6SBUB.js.map → chunk-K5NU57WE.js.map} +0 -0
- /package/dist/{chunk-GJSJRJ6Y.js.map → chunk-K7GAI4WP.js.map} +0 -0
- /package/dist/{chunk-EZHYOWWO.js.map → chunk-LJWB4Z7O.js.map} +0 -0
- /package/dist/{chunk-N67NSSQT.js.map → chunk-NG5ZAI7W.js.map} +0 -0
- /package/dist/{chunk-ZGSAYLPE.js.map → chunk-P4J6I5ZI.js.map} +0 -0
- /package/dist/{chunk-GMSYKYFA.js.map → chunk-PRU452SV.js.map} +0 -0
- /package/dist/{chunk-TJJW4BGX.js.map → chunk-S477DLWR.js.map} +0 -0
- /package/dist/{chunk-RN5ISNYK.js.map → chunk-SBCIKT64.js.map} +0 -0
- /package/dist/{chunk-JIXCOX7D.js.map → chunk-SKJK44YC.js.map} +0 -0
- /package/dist/{chunk-EVYIQ6N5.js.map → chunk-U5E2JJ4F.js.map} +0 -0
- /package/dist/{chunk-6ILEOLNW.js.map → chunk-UAK3OVSL.js.map} +0 -0
- /package/dist/{chunk-EQJR6WMY.js.map → chunk-UEAG2PEQ.js.map} +0 -0
- /package/dist/{chunk-RDYGX6MQ.js.map → chunk-WRZ7HENW.js.map} +0 -0
- /package/dist/{chunk-6FWMNTPO.js.map → chunk-Y6O4FB5V.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-B4RH2ELX.js.map → cli-circuit-breaker-KUPKNGN2.js.map} +0 -0
- /package/dist/{composite-router-4PYFIB2G.js.map → composite-router-F6YN34I7.js.map} +0 -0
- /package/dist/{consensus-vote-MM5YG3A5.js.map → consensus-vote-N4HVJT7S.js.map} +0 -0
- /package/dist/{context-retriever-YGPEAEPO.js.map → context-retriever-W6Z6JNEF.js.map} +0 -0
- /package/dist/{doctor-deep-N576AXQE.js.map → doctor-deep-MKKGB3KM.js.map} +0 -0
- /package/dist/{expert-bridge-YEE7F6TA.js.map → expert-bridge-KWUVLYXR.js.map} +0 -0
- /package/dist/{factory-NQEQY7NV.js.map → factory-5TRDV3CD.js.map} +0 -0
- /package/dist/{factory-TWK2UKNH.js.map → factory-UF6LR6R6.js.map} +0 -0
- /package/dist/{improvement-review-5CZJIOEH.js.map → improvement-review-K2FQ5K4H.js.map} +0 -0
- /package/dist/{init-opencode-R3PEVUUI.js.map → init-opencode-42DWDOPX.js.map} +0 -0
- /package/dist/{issue-triage-Y35K4BUV.js.map → issue-triage-OHJZLCEG.js.map} +0 -0
- /package/dist/{learning-persistence-M3OTCCNI.js.map → learning-persistence-6D5GGT7D.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-TOMMTISB.js.map → pr-reviewer-helpers-ZWGIWDFL.js.map} +0 -0
- /package/dist/{registry-command-EBGQHFT3.js.map → registry-command-X6FLUFKQ.js.map} +0 -0
- /package/dist/{repo-security-plan-CWJ3Z4CC.js.map → repo-security-plan-K4IYY3OY.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-UNLGVEND.js.map → research-helpers-synthesize-GBT6QZIP.js.map} +0 -0
- /package/dist/{routing-memory-MTGIZZUO.js.map → routing-memory-KDVKLC75.js.map} +0 -0
- /package/dist/{session-memory-QGUF5TNU.js.map → session-memory-HQ5KPXQG.js.map} +0 -0
- /package/dist/{setup-command-6QSWQMBJ.js.map → setup-command-USFTGMA3.js.map} +0 -0
- /package/dist/{setup-config-4TGGV7AQ.js.map → setup-config-K66VKRCD.js.map} +0 -0
- /package/dist/{setup-custom-api-QON4YKJ3.js.map → setup-custom-api-6CG7HMRX.js.map} +0 -0
- /package/dist/{tool-memory-SNH4B5Q7.js.map → tool-memory-DAGKXCJA.js.map} +0 -0
- /package/dist/{unified-registry-XEA2GEOZ.js.map → unified-registry-GAGQ2VSX.js.map} +0 -0
- /package/dist/{weather-report-QQ42WBNZ.js.map → weather-report-ZYPHCFXL.js.map} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
4
|
-
import "./chunk-
|
|
3
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
4
|
+
import "./chunk-AXTD4TFK.js";
|
|
5
5
|
import "./chunk-DHVMSIT5.js";
|
|
6
6
|
import "./chunk-ZPWHCABL.js";
|
|
7
7
|
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
generateMcpConfig,
|
|
61
61
|
getDefaultAllowedTools
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=child-mcp-config-
|
|
63
|
+
//# sourceMappingURL=child-mcp-config-ZSVYMJTH.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-3EBDRAQW.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
getPipelineEventBus,
|
|
20
20
|
getTimeProvider,
|
|
21
21
|
isDeclaredNeverDeprecate
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
23
23
|
import {
|
|
24
24
|
getNexusDataDir,
|
|
25
25
|
nexusDataPath
|
|
@@ -2132,4 +2132,4 @@ export {
|
|
|
2132
2132
|
runImprovementReview,
|
|
2133
2133
|
registerImprovementReviewTool
|
|
2134
2134
|
};
|
|
2135
|
-
//# sourceMappingURL=chunk-
|
|
2135
|
+
//# sourceMappingURL=chunk-2EAKVHOL.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UAK3OVSL.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_CONSENSUS_CONFIG,
|
|
6
6
|
DEFAULT_INCREMENTAL_QUORUM_CONFIG,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
toolSuccess,
|
|
19
19
|
withProgressHeartbeat,
|
|
20
20
|
wrapToolWithTimeout
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-3EBDRAQW.js";
|
|
22
22
|
import {
|
|
23
23
|
getToolMemory
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-S477DLWR.js";
|
|
25
25
|
import {
|
|
26
26
|
createEvent,
|
|
27
27
|
getGlobalRegistry
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-AM7EW7CP.js";
|
|
29
29
|
import {
|
|
30
30
|
authRemediation,
|
|
31
31
|
delay,
|
|
32
32
|
getAvailableClis,
|
|
33
33
|
withTimeout
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-JZ3DVFEW.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentError,
|
|
37
37
|
CLI_NAMES,
|
|
@@ -59,11 +59,11 @@ import {
|
|
|
59
59
|
registerPersistentOutcomeStoreFactory,
|
|
60
60
|
resolveClassGuardMs,
|
|
61
61
|
resolveVoteTimeout
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
63
63
|
import {
|
|
64
64
|
ensureLearningDir,
|
|
65
65
|
getOutcomesFile
|
|
66
|
-
} from "./chunk-
|
|
66
|
+
} from "./chunk-AXTD4TFK.js";
|
|
67
67
|
import {
|
|
68
68
|
getNexusDataDir,
|
|
69
69
|
nexusDataPath,
|
|
@@ -5866,7 +5866,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
5866
5866
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
5867
5867
|
async function runContrarianCheck(proposal, log) {
|
|
5868
5868
|
try {
|
|
5869
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
5869
|
+
const { executeExpert } = await import("./expert-bridge-KWUVLYXR.js");
|
|
5870
5870
|
const prompt = [
|
|
5871
5871
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
5872
5872
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6382,4 +6382,4 @@ export {
|
|
|
6382
6382
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
6383
6383
|
registerConsensusVoteTool
|
|
6384
6384
|
};
|
|
6385
|
-
//# sourceMappingURL=chunk-
|
|
6385
|
+
//# sourceMappingURL=chunk-2LR2XP3B.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
emitClawGuardViolation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NG5ZAI7W.js";
|
|
4
4
|
import {
|
|
5
5
|
CACHE_TIMEOUTS,
|
|
6
6
|
MCP_TIMEOUTS,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getTimeProvider,
|
|
17
17
|
ok,
|
|
18
18
|
resolveToolClassGuardMs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
20
20
|
import {
|
|
21
21
|
getNexusDataDir
|
|
22
22
|
} from "./chunk-DHVMSIT5.js";
|
|
@@ -2023,4 +2023,4 @@ export {
|
|
|
2023
2023
|
VOTING_THRESHOLDS,
|
|
2024
2024
|
ConsensusMetricsSchema
|
|
2025
2025
|
};
|
|
2026
|
-
//# sourceMappingURL=chunk-
|
|
2026
|
+
//# sourceMappingURL=chunk-3EBDRAQW.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
CircuitBreakerRegistry,
|
|
3
3
|
CircuitError,
|
|
4
4
|
mapCliErrorToCategory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-AOXZ42SD.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getFallbackChainForCategory,
|
|
10
10
|
getTimeProvider,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
13
13
|
|
|
14
14
|
// src/cli-adapters/cli-circuit-breaker.ts
|
|
15
15
|
var CATEGORY_TO_FALLBACK = {
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
CliCircuitBreakerIntegration,
|
|
153
153
|
createCliCircuitBreakerIntegration
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-3JWMDESZ.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-LJWB4Z7O.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
|
|
|
21
21
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
22
22
|
mcpConfigInitPromise ??= (async () => {
|
|
23
23
|
try {
|
|
24
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
24
|
+
const { generateMcpConfig } = await import("./child-mcp-config-ZSVYMJTH.js");
|
|
25
25
|
const config = await generateMcpConfig();
|
|
26
26
|
cachedMcpConfigPath = config.configPath;
|
|
27
27
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -93,8 +93,8 @@ var routerInitPromise = null;
|
|
|
93
93
|
async function getRouter() {
|
|
94
94
|
if (cachedRouter !== null) return cachedRouter;
|
|
95
95
|
routerInitPromise ??= (async () => {
|
|
96
|
-
const { createAllAdapters } = await import("./factory-
|
|
97
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
96
|
+
const { createAllAdapters } = await import("./factory-UF6LR6R6.js");
|
|
97
|
+
const { createCompositeRouter } = await import("./composite-router-F6YN34I7.js");
|
|
98
98
|
const adapters = createAllAdapters();
|
|
99
99
|
if (adapters.size === 0) {
|
|
100
100
|
routerInitPromise = null;
|
|
@@ -102,7 +102,7 @@ async function getRouter() {
|
|
|
102
102
|
}
|
|
103
103
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
104
104
|
try {
|
|
105
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
105
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-KUPKNGN2.js");
|
|
106
106
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
107
107
|
} catch (error) {
|
|
108
108
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
tokenSplitFromUsage,
|
|
214
214
|
executeExpert
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-3RDE3OZ6.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
getErrorMessage,
|
|
5
5
|
getTimeProvider,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "fs";
|
|
@@ -352,4 +352,4 @@ export {
|
|
|
352
352
|
SessionMemory,
|
|
353
353
|
createSessionMemory
|
|
354
354
|
};
|
|
355
|
-
//# sourceMappingURL=chunk-
|
|
355
|
+
//# sourceMappingURL=chunk-3ZXNPAUR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPapersRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-5KFUWUMY.js";
|
|
4
4
|
import {
|
|
5
5
|
getErrorMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/research-helpers-synthesize.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -876,4 +876,4 @@ export {
|
|
|
876
876
|
AttributedInsightSchema,
|
|
877
877
|
synthesizeResearch
|
|
878
878
|
};
|
|
879
|
-
//# sourceMappingURL=chunk-
|
|
879
|
+
//# sourceMappingURL=chunk-47EFSSZK.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NDV5J3Z5.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-563FMXWL.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getErrorMessage,
|
|
9
9
|
ok,
|
|
10
10
|
parseBoolEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/research-helpers-io.ts
|
|
14
14
|
import * as fs2 from "fs/promises";
|
|
@@ -146,4 +146,4 @@ export {
|
|
|
146
146
|
loadPapersRegistry,
|
|
147
147
|
savePapersRegistry
|
|
148
148
|
};
|
|
149
|
-
//# sourceMappingURL=chunk-
|
|
149
|
+
//# sourceMappingURL=chunk-5KFUWUMY.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JZ3DVFEW.js";
|
|
4
4
|
import {
|
|
5
5
|
mapModelErrorToCategory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-AOXZ42SD.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_NAMES,
|
|
9
9
|
CircularBuffer,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ok,
|
|
25
25
|
recordRateLimitEvent,
|
|
26
26
|
toRateLimitError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
28
28
|
|
|
29
29
|
// src/agents/collaboration/event-bus-helpers.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -1041,4 +1041,4 @@ export {
|
|
|
1041
1041
|
getGlobalRegistry,
|
|
1042
1042
|
resetGlobalRegistry
|
|
1043
1043
|
};
|
|
1044
|
-
//# sourceMappingURL=chunk-
|
|
1044
|
+
//# sourceMappingURL=chunk-AM7EW7CP.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
9
9
|
|
|
10
10
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
11
11
|
var CircuitErrorCode = {
|
|
@@ -375,4 +375,4 @@ export {
|
|
|
375
375
|
mapCliErrorToCategory,
|
|
376
376
|
mapModelErrorToCategory
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-AOXZ42SD.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isRateLimitLikeError,
|
|
12
12
|
lookupInTreeCapability,
|
|
13
13
|
ok
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
15
15
|
|
|
16
16
|
// src/config/model-parameter-support.ts
|
|
17
17
|
function parseClaudeMajorMinor(bareId) {
|
|
@@ -828,4 +828,4 @@ export {
|
|
|
828
828
|
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
829
829
|
collectStream
|
|
830
830
|
};
|
|
831
|
-
//# sourceMappingURL=chunk-
|
|
831
|
+
//# sourceMappingURL=chunk-ARTIFRBA.js.map
|
|
@@ -23,6 +23,9 @@ function getDecisionCostFile() {
|
|
|
23
23
|
function getMetaOutcomesFile() {
|
|
24
24
|
return join(getLearningDir(), "meta-outcomes.jsonl");
|
|
25
25
|
}
|
|
26
|
+
function getModelSelectionShadowFile() {
|
|
27
|
+
return join(getLearningDir(), "model-selection-shadow.jsonl");
|
|
28
|
+
}
|
|
26
29
|
var DIR_MODE = 448;
|
|
27
30
|
function isPersistenceEnabled() {
|
|
28
31
|
return process.env["NEXUS_PERSIST_LEARNING"] !== "false";
|
|
@@ -38,7 +41,8 @@ export {
|
|
|
38
41
|
getPrReviewEvalFile,
|
|
39
42
|
getDecisionCostFile,
|
|
40
43
|
getMetaOutcomesFile,
|
|
44
|
+
getModelSelectionShadowFile,
|
|
41
45
|
isPersistenceEnabled,
|
|
42
46
|
ensureLearningDir
|
|
43
47
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
48
|
+
//# sourceMappingURL=chunk-AXTD4TFK.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/config/learning-persistence.ts"],"sourcesContent":["/**\n * Shared configuration for cross-session learning persistence.\n *\n * Controls where learning data (outcomes, distilled rules) is stored\n * on disk and whether persistence is enabled via feature flag.\n *\n * @module config/learning-persistence\n * (Source: Issue #1009 — Cross-session persistence)\n */\n\nimport { mkdirSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { getNexusDataDir } from './nexus-data-dir.js';\n\n// ============================================================================\n// Path resolution (#2316: must read NEXUS_DATA_DIR at call time, not import)\n// ============================================================================\n\n/**\n * Base directory for learning persistence data. Resolved at call time so\n * `NEXUS_DATA_DIR` overrides take effect — the const-at-import-time\n * pattern this replaces was the bug discovered while dogfooding v2.63.0\n * (#2316). Outcome counts on a fresh portable workspace were leaking\n * the host home directory's outcome history.\n */\nexport function getLearningDir(): string {\n return join(getNexusDataDir(), 'learning');\n}\n\n/** JSONL file for persisted task outcomes. */\nexport function getOutcomesFile(): string {\n return join(getLearningDir(), 'outcomes.jsonl');\n}\n\n/** JSON file for persisted distilled rules. */\nexport function getRulesFile(): string {\n return join(getLearningDir(), 'rules.json');\n}\n\n/**\n * JSONL file for per-voter pr_review eval verdicts (#3848).\n *\n * Stores ONLY rubric-scored per-voter TP/FP/FN tallies vs ground truth — never\n * raw diffs, prompts, or model outputs. Lets per-voter precision/recall accrue\n * across runs so a chronically-noisy-voter demotion (Epic D / ADR-0017) has\n * citable evidence.\n */\nexport function getPrReviewEvalFile(): string {\n return join(getLearningDir(), 'pr-review-eval.jsonl');\n}\n\n/**\n * JSONL file for per-decision cost rollups (#3855).\n *\n * Stores ONLY the per-decision cost summary (per-voter / per-model token + USD\n * totals) for a governed `consensus_vote` / `pr_review` run — never raw\n * proposals, diffs, prompts, or model outputs. Lets \"what did this governed\n * decision cost?\" be answered from recorded data (epic #3854; feeds Epic G's\n * weather_report + manifest cost profiles in #3856).\n */\nexport function getDecisionCostFile(): string {\n return join(getLearningDir(), 'decision-costs.jsonl');\n}\n\n/**\n * JSONL file for the MetaOrchestrator shadow selector's training outcomes\n * (#3593). Stores ONLY numeric/categorical bandit-feature values + a boolean\n * success flag — never raw task text. Lets the shadow selector learn across\n * processes by replaying past outcomes on construction.\n */\nexport function getMetaOutcomesFile(): string {\n return join(getLearningDir(), 'meta-outcomes.jsonl');\n}\n\n// Note: previous LEARNING_DIR / OUTCOMES_FILE / RULES_FILE exports were\n// removed in #2316 — they were evaluated at module import time and ignored\n// `NEXUS_DATA_DIR`. All callers must use the getter functions above.\n\n/** Directory mode: owner-only (rwx------). */\nconst DIR_MODE = 0o700;\n\n// ============================================================================\n// Helpers\n// ============================================================================\n\n/**\n * Check whether learning persistence is enabled via feature flag.\n *\n * Defaults to true — cross-session LinUCB routing data persists to\n * `~/.nexus-agents/learning/` unless explicitly disabled.\n * Only routing metadata is stored (model, success, duration, category).\n * No user prompts, API keys, or model outputs are persisted.\n *\n * Set NEXUS_PERSIST_LEARNING=false to disable.\n */\nexport function isPersistenceEnabled(): boolean {\n return process.env['NEXUS_PERSIST_LEARNING'] !== 'false';\n}\n\n/** Ensure the learning data directory exists. */\nexport function ensureLearningDir(dir?: string): void {\n mkdirSync(dir ?? getLearningDir(), { recursive: true, mode: DIR_MODE });\n}\n"],"mappings":";;;;;AAUA,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAcd,SAAS,iBAAyB;AACvC,SAAO,KAAK,gBAAgB,GAAG,UAAU;AAC3C;AAGO,SAAS,kBAA0B;AACxC,SAAO,KAAK,eAAe,GAAG,gBAAgB;AAChD;AAGO,SAAS,eAAuB;AACrC,SAAO,KAAK,eAAe,GAAG,YAAY;AAC5C;AAUO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,sBAAsB;AACtD;AAWO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,sBAAsB;AACtD;AAQO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,qBAAqB;AACrD;AAOA,IAAM,WAAW;AAgBV,SAAS,uBAAgC;AAC9C,SAAO,QAAQ,IAAI,wBAAwB,MAAM;AACnD;AAGO,SAAS,kBAAkB,KAAoB;AACpD,YAAU,OAAO,eAAe,GAAG,EAAE,WAAW,MAAM,MAAM,SAAS,CAAC;AACxE;","names":[]}
|
|
1
|
+
{"version":3,"sources":["../src/config/learning-persistence.ts"],"sourcesContent":["/**\n * Shared configuration for cross-session learning persistence.\n *\n * Controls where learning data (outcomes, distilled rules) is stored\n * on disk and whether persistence is enabled via feature flag.\n *\n * @module config/learning-persistence\n * (Source: Issue #1009 — Cross-session persistence)\n */\n\nimport { mkdirSync } from 'node:fs';\nimport { join } from 'node:path';\nimport { getNexusDataDir } from './nexus-data-dir.js';\n\n// ============================================================================\n// Path resolution (#2316: must read NEXUS_DATA_DIR at call time, not import)\n// ============================================================================\n\n/**\n * Base directory for learning persistence data. Resolved at call time so\n * `NEXUS_DATA_DIR` overrides take effect — the const-at-import-time\n * pattern this replaces was the bug discovered while dogfooding v2.63.0\n * (#2316). Outcome counts on a fresh portable workspace were leaking\n * the host home directory's outcome history.\n */\nexport function getLearningDir(): string {\n return join(getNexusDataDir(), 'learning');\n}\n\n/** JSONL file for persisted task outcomes. */\nexport function getOutcomesFile(): string {\n return join(getLearningDir(), 'outcomes.jsonl');\n}\n\n/** JSON file for persisted distilled rules. */\nexport function getRulesFile(): string {\n return join(getLearningDir(), 'rules.json');\n}\n\n/**\n * JSONL file for per-voter pr_review eval verdicts (#3848).\n *\n * Stores ONLY rubric-scored per-voter TP/FP/FN tallies vs ground truth — never\n * raw diffs, prompts, or model outputs. Lets per-voter precision/recall accrue\n * across runs so a chronically-noisy-voter demotion (Epic D / ADR-0017) has\n * citable evidence.\n */\nexport function getPrReviewEvalFile(): string {\n return join(getLearningDir(), 'pr-review-eval.jsonl');\n}\n\n/**\n * JSONL file for per-decision cost rollups (#3855).\n *\n * Stores ONLY the per-decision cost summary (per-voter / per-model token + USD\n * totals) for a governed `consensus_vote` / `pr_review` run — never raw\n * proposals, diffs, prompts, or model outputs. Lets \"what did this governed\n * decision cost?\" be answered from recorded data (epic #3854; feeds Epic G's\n * weather_report + manifest cost profiles in #3856).\n */\nexport function getDecisionCostFile(): string {\n return join(getLearningDir(), 'decision-costs.jsonl');\n}\n\n/**\n * JSONL file for the MetaOrchestrator shadow selector's training outcomes\n * (#3593). Stores ONLY numeric/categorical bandit-feature values + a boolean\n * success flag — never raw task text. Lets the shadow selector learn across\n * processes by replaying past outcomes on construction.\n */\nexport function getMetaOutcomesFile(): string {\n return join(getLearningDir(), 'meta-outcomes.jsonl');\n}\n\n/**\n * JSONL file for route-time model-selection shadow comparisons (#4197).\n *\n * Stores ONLY the sanitized comparison — CLI slot, difficulty tier, the model\n * actually used vs the model `resolveModelForTier` WOULD have picked, agreement,\n * outcome success, and (where measured) costUsd — never task content, prompts,\n * or model outputs. A DEDICATED log (mirroring `meta-outcomes.jsonl`, #3593)\n * rather than extra OutcomeStore fields, so the shadow eval never re-reads the\n * OutcomeStore that weather + LinUCB warm-start already replay (the pre-existing\n * double-counting boundary excluded from #4194).\n */\nexport function getModelSelectionShadowFile(): string {\n return join(getLearningDir(), 'model-selection-shadow.jsonl');\n}\n\n// Note: previous LEARNING_DIR / OUTCOMES_FILE / RULES_FILE exports were\n// removed in #2316 — they were evaluated at module import time and ignored\n// `NEXUS_DATA_DIR`. All callers must use the getter functions above.\n\n/** Directory mode: owner-only (rwx------). */\nconst DIR_MODE = 0o700;\n\n// ============================================================================\n// Helpers\n// ============================================================================\n\n/**\n * Check whether learning persistence is enabled via feature flag.\n *\n * Defaults to true — cross-session LinUCB routing data persists to\n * `~/.nexus-agents/learning/` unless explicitly disabled.\n * Only routing metadata is stored (model, success, duration, category).\n * No user prompts, API keys, or model outputs are persisted.\n *\n * Set NEXUS_PERSIST_LEARNING=false to disable.\n */\nexport function isPersistenceEnabled(): boolean {\n return process.env['NEXUS_PERSIST_LEARNING'] !== 'false';\n}\n\n/** Ensure the learning data directory exists. */\nexport function ensureLearningDir(dir?: string): void {\n mkdirSync(dir ?? getLearningDir(), { recursive: true, mode: DIR_MODE });\n}\n"],"mappings":";;;;;AAUA,SAAS,iBAAiB;AAC1B,SAAS,YAAY;AAcd,SAAS,iBAAyB;AACvC,SAAO,KAAK,gBAAgB,GAAG,UAAU;AAC3C;AAGO,SAAS,kBAA0B;AACxC,SAAO,KAAK,eAAe,GAAG,gBAAgB;AAChD;AAGO,SAAS,eAAuB;AACrC,SAAO,KAAK,eAAe,GAAG,YAAY;AAC5C;AAUO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,sBAAsB;AACtD;AAWO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,sBAAsB;AACtD;AAQO,SAAS,sBAA8B;AAC5C,SAAO,KAAK,eAAe,GAAG,qBAAqB;AACrD;AAaO,SAAS,8BAAsC;AACpD,SAAO,KAAK,eAAe,GAAG,8BAA8B;AAC9D;AAOA,IAAM,WAAW;AAgBV,SAAS,uBAAgC;AAC9C,SAAO,QAAQ,IAAI,wBAAwB,MAAM;AACnD;AAGO,SAAS,kBAAkB,KAAoB;AACpD,YAAU,OAAO,eAAe,GAAG,EAAE,WAAW,MAAM,MAAM,SAAS,CAAC;AACxE;","names":[]}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
generateSecurityPlan
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-563FMXWL.js";
|
|
4
4
|
import {
|
|
5
5
|
analyzeGitHubRepo
|
|
6
6
|
} from "./chunk-HFOQKCD2.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
DEFAULT_TASK_TTL_MS,
|
|
19
19
|
DEFAULT_TOOL_RATE_LIMITS,
|
|
20
20
|
clampTaskTtl
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-OEOBPWBH.js";
|
|
22
22
|
import {
|
|
23
23
|
executeExpert
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-3RDE3OZ6.js";
|
|
25
25
|
import {
|
|
26
26
|
JobStatusSchema,
|
|
27
27
|
abortJob,
|
|
@@ -42,21 +42,21 @@ import {
|
|
|
42
42
|
simulationDeniedResult,
|
|
43
43
|
toJobSummary,
|
|
44
44
|
writeJobCancelled
|
|
45
|
-
} from "./chunk-
|
|
45
|
+
} from "./chunk-2LR2XP3B.js";
|
|
46
46
|
import {
|
|
47
47
|
normalizeTopicToCanonical,
|
|
48
48
|
synthesizeResearch
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-47EFSSZK.js";
|
|
50
50
|
import {
|
|
51
51
|
IssueTriage
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-D2NBIVAV.js";
|
|
53
53
|
import {
|
|
54
54
|
resolveEnvMode,
|
|
55
55
|
sanitizeInput
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-PRU452SV.js";
|
|
57
57
|
import {
|
|
58
58
|
withPrerequisite
|
|
59
|
-
} from "./chunk-
|
|
59
|
+
} from "./chunk-2EAKVHOL.js";
|
|
60
60
|
import {
|
|
61
61
|
NOOP_NOTIFIER,
|
|
62
62
|
RateLimiter,
|
|
@@ -79,12 +79,12 @@ import {
|
|
|
79
79
|
withAuditTrail,
|
|
80
80
|
withProgressHeartbeat,
|
|
81
81
|
wrapToolWithTimeout
|
|
82
|
-
} from "./chunk-
|
|
82
|
+
} from "./chunk-3EBDRAQW.js";
|
|
83
83
|
import {
|
|
84
84
|
createAuditTrail,
|
|
85
85
|
createGraphAuditBridge,
|
|
86
86
|
emitPipelinePolicyEvent
|
|
87
|
-
} from "./chunk-
|
|
87
|
+
} from "./chunk-NG5ZAI7W.js";
|
|
88
88
|
import {
|
|
89
89
|
addResearchPaper,
|
|
90
90
|
addSourceToRegistry,
|
|
@@ -112,15 +112,15 @@ import {
|
|
|
112
112
|
parseRegistry,
|
|
113
113
|
sourceExistsInRegistry,
|
|
114
114
|
summarizeContextForPrompt
|
|
115
|
-
} from "./chunk-
|
|
115
|
+
} from "./chunk-U5E2JJ4F.js";
|
|
116
116
|
import {
|
|
117
117
|
getTokenEnvVars,
|
|
118
118
|
resolveToken
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-P4J6I5ZI.js";
|
|
120
120
|
import {
|
|
121
121
|
loadPapersRegistry,
|
|
122
122
|
loadTechniquesRegistry
|
|
123
|
-
} from "./chunk-
|
|
123
|
+
} from "./chunk-5KFUWUMY.js";
|
|
124
124
|
import {
|
|
125
125
|
resolveInsideRoot
|
|
126
126
|
} from "./chunk-NUBSJGQZ.js";
|
|
@@ -129,14 +129,14 @@ import {
|
|
|
129
129
|
MemoryImportance,
|
|
130
130
|
calculateTextJaccardSimilarity,
|
|
131
131
|
getToolMemory
|
|
132
|
-
} from "./chunk-
|
|
132
|
+
} from "./chunk-S477DLWR.js";
|
|
133
133
|
import {
|
|
134
134
|
STOPWORDS,
|
|
135
135
|
truncateWithInfo
|
|
136
136
|
} from "./chunk-6T3EPABN.js";
|
|
137
137
|
import {
|
|
138
138
|
createSessionMemory
|
|
139
|
-
} from "./chunk-
|
|
139
|
+
} from "./chunk-3ZXNPAUR.js";
|
|
140
140
|
import {
|
|
141
141
|
BUILT_IN_EXPERTS,
|
|
142
142
|
BuiltInExpertTypeSchema,
|
|
@@ -151,7 +151,7 @@ import {
|
|
|
151
151
|
createEvent,
|
|
152
152
|
getGlobalEventBus,
|
|
153
153
|
getGlobalRegistry
|
|
154
|
-
} from "./chunk-
|
|
154
|
+
} from "./chunk-AM7EW7CP.js";
|
|
155
155
|
import {
|
|
156
156
|
CliDetectionCache,
|
|
157
157
|
asRecord,
|
|
@@ -159,19 +159,19 @@ import {
|
|
|
159
159
|
getAvailableClis,
|
|
160
160
|
sleep,
|
|
161
161
|
withTimeout
|
|
162
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-JZ3DVFEW.js";
|
|
163
163
|
import {
|
|
164
164
|
DEFAULTS
|
|
165
|
-
} from "./chunk-
|
|
165
|
+
} from "./chunk-WRZ7HENW.js";
|
|
166
166
|
import {
|
|
167
167
|
getAvailabilityCache,
|
|
168
168
|
getCliForModelId,
|
|
169
169
|
resolveFallback
|
|
170
|
-
} from "./chunk-
|
|
170
|
+
} from "./chunk-LJWB4Z7O.js";
|
|
171
171
|
import {
|
|
172
172
|
generateHyphenId,
|
|
173
173
|
generateUUID
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-ENKFWBRH.js";
|
|
175
175
|
import {
|
|
176
176
|
AGENT_ROUTER_TIMEOUTS,
|
|
177
177
|
API_TIMEOUTS,
|
|
@@ -263,12 +263,12 @@ import {
|
|
|
263
263
|
selectStrategyByManifest,
|
|
264
264
|
toExpertTaskAnalysisResult,
|
|
265
265
|
withStep
|
|
266
|
-
} from "./chunk-
|
|
266
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
267
267
|
import {
|
|
268
268
|
ensureLearningDir,
|
|
269
269
|
getMetaOutcomesFile,
|
|
270
270
|
isPersistenceEnabled
|
|
271
|
-
} from "./chunk-
|
|
271
|
+
} from "./chunk-AXTD4TFK.js";
|
|
272
272
|
import {
|
|
273
273
|
findRepoRoot,
|
|
274
274
|
nexusDataPath,
|
|
@@ -26298,7 +26298,7 @@ function execIdFields(executionId) {
|
|
|
26298
26298
|
async function populateUnifiedContextOnState(state, options) {
|
|
26299
26299
|
const taskCandidate = state["task"];
|
|
26300
26300
|
if (typeof taskCandidate !== "string" || taskCandidate === "") return;
|
|
26301
|
-
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-
|
|
26301
|
+
const { getContextForTask: getContextForTask2, inferTaskCategory: inferTaskCategory2 } = await import("./context-retriever-W6Z6JNEF.js");
|
|
26302
26302
|
const category = inferTaskCategory2(taskCandidate);
|
|
26303
26303
|
const executionId = options?.executionId;
|
|
26304
26304
|
const execFields = execIdFields(executionId);
|
|
@@ -41580,7 +41580,7 @@ async function tryIssueTriage(task) {
|
|
|
41580
41580
|
try {
|
|
41581
41581
|
const issueMatch = task.match(/github\.com\/([^/]+\/[^/]+)\/issues\/(\d+)/);
|
|
41582
41582
|
if (issueMatch === null) return null;
|
|
41583
|
-
const { createIssueTriage } = await import("./issue-triage-
|
|
41583
|
+
const { createIssueTriage } = await import("./issue-triage-OHJZLCEG.js");
|
|
41584
41584
|
const triage = createIssueTriage();
|
|
41585
41585
|
const owner = issueMatch[1] ?? "";
|
|
41586
41586
|
const num = issueMatch[2] ?? "";
|
|
@@ -41608,7 +41608,7 @@ var VALID_TEMPLATES = /* @__PURE__ */ new Set([
|
|
|
41608
41608
|
]);
|
|
41609
41609
|
async function classifyWithLLM(task) {
|
|
41610
41610
|
try {
|
|
41611
|
-
const { executeExpert: executeExpert2 } = await import("./expert-bridge-
|
|
41611
|
+
const { executeExpert: executeExpert2 } = await import("./expert-bridge-KWUVLYXR.js");
|
|
41612
41612
|
const prompt = [
|
|
41613
41613
|
"Classify this task into exactly one pipeline template.",
|
|
41614
41614
|
"Templates: dev (implementation/bug fix/refactor), research (investigate/evaluate/compare),",
|
|
@@ -43249,8 +43249,8 @@ var memoryInitPromise = null;
|
|
|
43249
43249
|
async function initPipelineMemory() {
|
|
43250
43250
|
if (cachedMemory !== null) return cachedMemory;
|
|
43251
43251
|
try {
|
|
43252
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43253
|
-
const { getLearningDir } = await import("./learning-persistence-
|
|
43252
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-HQ5KPXQG.js");
|
|
43253
|
+
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43254
43254
|
const mem = createSessionMemory2(getLearningDir());
|
|
43255
43255
|
mem.startSession(`pipeline-${String(getTimeProvider().now())}`);
|
|
43256
43256
|
cachedMemory = {
|
|
@@ -43311,7 +43311,7 @@ function recordRoutingExperience(category, success, durationMs, tokensUsed = 0,
|
|
|
43311
43311
|
callRecord(routingMemoryCache);
|
|
43312
43312
|
return;
|
|
43313
43313
|
}
|
|
43314
|
-
routingMemoryInitPromise ??= import("./routing-memory-
|
|
43314
|
+
routingMemoryInitPromise ??= import("./routing-memory-KDVKLC75.js").then(({ createRoutingMemory }) => {
|
|
43315
43315
|
routingMemoryCache ??= createRoutingMemory();
|
|
43316
43316
|
return routingMemoryCache;
|
|
43317
43317
|
}).catch((error) => {
|
|
@@ -43345,7 +43345,7 @@ ${text}` : "";
|
|
|
43345
43345
|
}
|
|
43346
43346
|
async function getWeatherContext() {
|
|
43347
43347
|
try {
|
|
43348
|
-
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-
|
|
43348
|
+
const { generateWeatherReport: generateWeatherReport2 } = await import("./weather-report-ZYPHCFXL.js");
|
|
43349
43349
|
const report = generateWeatherReport2({ includeAdaptive: true });
|
|
43350
43350
|
const mappings = "recommendedMappings" in report ? report.recommendedMappings : [];
|
|
43351
43351
|
if (!Array.isArray(mappings) || mappings.length === 0) return "";
|
|
@@ -43363,8 +43363,8 @@ ${lines}
|
|
|
43363
43363
|
}
|
|
43364
43364
|
async function getMemoryContext(task) {
|
|
43365
43365
|
try {
|
|
43366
|
-
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-
|
|
43367
|
-
const { getLearningDir } = await import("./learning-persistence-
|
|
43366
|
+
const { createSessionMemory: createSessionMemory2 } = await import("./session-memory-HQ5KPXQG.js");
|
|
43367
|
+
const { getLearningDir } = await import("./learning-persistence-6D5GGT7D.js");
|
|
43368
43368
|
const memory = createSessionMemory2(getLearningDir(), { maxLearningsInContext: 10 });
|
|
43369
43369
|
const learnings = memory.searchLearnings(task.slice(0, 200));
|
|
43370
43370
|
if (learnings.length === 0) return "";
|
|
@@ -43478,7 +43478,7 @@ ${contextBlock}`;
|
|
|
43478
43478
|
const strategy = config.votingStrategy ?? "higher_order";
|
|
43479
43479
|
await postProgress(config, "Vote", `Running consensus with ${strategy} strategy...`);
|
|
43480
43480
|
try {
|
|
43481
|
-
const { executeVoting } = await import("./consensus-vote-
|
|
43481
|
+
const { executeVoting } = await import("./consensus-vote-N4HVJT7S.js");
|
|
43482
43482
|
const votingResult = await executeVoting(
|
|
43483
43483
|
{
|
|
43484
43484
|
proposal: buildVoteProposal(plan, research),
|
|
@@ -43919,7 +43919,7 @@ async function searchCodebaseForTask(task) {
|
|
|
43919
43919
|
}
|
|
43920
43920
|
async function queryResearchRegistry(task) {
|
|
43921
43921
|
try {
|
|
43922
|
-
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-
|
|
43922
|
+
const { synthesizeResearch: synthesizeResearch2 } = await import("./research-helpers-synthesize-GBT6QZIP.js");
|
|
43923
43923
|
const topic = task.split(/[.!?\n]/).filter((s) => s.trim().length > 10)[0]?.trim();
|
|
43924
43924
|
if (topic === void 0) return null;
|
|
43925
43925
|
const result = await synthesizeResearch2(topic.slice(0, 50));
|
|
@@ -43990,7 +43990,7 @@ function createScanStageWrapper() {
|
|
|
43990
43990
|
try {
|
|
43991
43991
|
const slug = ctx.task.match(/([a-zA-Z0-9._-]+\/[a-zA-Z0-9._-]+)/)?.[1];
|
|
43992
43992
|
if (slug !== void 0) {
|
|
43993
|
-
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-
|
|
43993
|
+
const { generateSecurityPlan: generateSecurityPlan2 } = await import("./repo-security-plan-K4IYY3OY.js");
|
|
43994
43994
|
const plan = await generateSecurityPlan2({ repo: slug, maxScanners: 10 });
|
|
43995
43995
|
const recs = plan.recommendations.slice(0, 5).map((r) => `${r.priority}: ${r.displayName} (${r.category})`).join("; ");
|
|
43996
43996
|
return output(PIPELINE_STATE_KEYS.FINDINGS, recs, getTimeProvider().now() - start, true);
|
|
@@ -46950,7 +46950,7 @@ var GitHubTaskTracker = class {
|
|
|
46950
46950
|
cachedProvider = null;
|
|
46951
46951
|
async getProvider() {
|
|
46952
46952
|
if (this.cachedProvider !== null) return this.cachedProvider;
|
|
46953
|
-
const { createScmProvider } = await import("./factory-
|
|
46953
|
+
const { createScmProvider } = await import("./factory-5TRDV3CD.js");
|
|
46954
46954
|
const result = await createScmProvider({ repo: this.config.repo ?? "" });
|
|
46955
46955
|
if (!result.ok) throw new Error(`SCM provider error: ${result.error.message}`);
|
|
46956
46956
|
this.cachedProvider = result.value;
|
|
@@ -47757,7 +47757,7 @@ async function probeSource(source, includeModelIds) {
|
|
|
47757
47757
|
}
|
|
47758
47758
|
}
|
|
47759
47759
|
async function defaultSources(includeOpenRouter) {
|
|
47760
|
-
const { createAllAdapters: createAllAdapters2 } = await import("./factory-
|
|
47760
|
+
const { createAllAdapters: createAllAdapters2 } = await import("./factory-UF6LR6R6.js");
|
|
47761
47761
|
const adapters = createAllAdapters2();
|
|
47762
47762
|
return buildDefaultModelSources(adapters, { includeOpenRouter });
|
|
47763
47763
|
}
|
|
@@ -51826,4 +51826,4 @@ export {
|
|
|
51826
51826
|
shutdownFeedbackSubscriber,
|
|
51827
51827
|
createEventBusBridge
|
|
51828
51828
|
};
|
|
51829
|
-
//# sourceMappingURL=chunk-
|
|
51829
|
+
//# sourceMappingURL=chunk-B3FX6E7M.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConfigInitSync
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HDLWUFKI.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION,
|
|
6
6
|
checkApiKeys,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-OEOBPWBH.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-ZM4O442V.js";
|
|
15
15
|
import {
|
|
16
16
|
probeAllClis
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JZ3DVFEW.js";
|
|
18
18
|
import {
|
|
19
19
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
20
20
|
colors,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getErrorMessage,
|
|
26
26
|
getTimeProvider,
|
|
27
27
|
symbols
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-NDV5J3Z5.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureGitignored,
|
|
31
31
|
findRepoRoot
|
|
@@ -2001,4 +2001,4 @@ export {
|
|
|
2001
2001
|
setupCommand,
|
|
2002
2002
|
setupCommandAsync
|
|
2003
2003
|
};
|
|
2004
|
-
//# sourceMappingURL=chunk-
|
|
2004
|
+
//# sourceMappingURL=chunk-CNGZ5N4W.js.map
|