nexus-agents 8.89.1 → 8.89.3
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-YFTJDT7X.js → ast-rule-runner-AMZCLKRV.js} +3 -3
- package/dist/{child-mcp-config-4ELORIGD.js → child-mcp-config-7DSYI325.js} +2 -2
- package/dist/{chunk-UAUG7UEY.js → chunk-3IBALX36.js} +2 -2
- package/dist/{chunk-IF7GVPKD.js → chunk-3PQIIMHN.js} +2 -2
- package/dist/{chunk-DJKLTLT2.js → chunk-4IV25ZUM.js} +2 -2
- package/dist/{chunk-7SJL3BZB.js → chunk-5GZ4UN5F.js} +2 -2
- package/dist/{chunk-D6EQ454Z.js → chunk-5UCGVAEZ.js} +4 -4
- package/dist/{chunk-GNM4YDQA.js → chunk-6FFBX665.js} +2 -2
- package/dist/{chunk-7AP6YJM4.js → chunk-AXBEG6VW.js} +3 -3
- package/dist/{chunk-JMBBRHZS.js → chunk-BJXSG5YL.js} +4 -4
- package/dist/{chunk-JT6I3X3S.js → chunk-CG7OSI5P.js} +2 -2
- package/dist/{chunk-WGX2OXDY.js → chunk-EKZ6V7SE.js} +9 -7
- package/dist/chunk-EKZ6V7SE.js.map +1 -0
- package/dist/{chunk-FG6BJ3QZ.js → chunk-ILA4UGXI.js} +2 -2
- package/dist/{chunk-Z6TYHJ34.js → chunk-JYKRCQSU.js} +5 -5
- package/dist/{chunk-T3QVXJD7.js → chunk-JYZNPK62.js} +8 -8
- package/dist/{chunk-4K3WJ7KR.js → chunk-KQE7EFBF.js} +5 -5
- package/dist/{chunk-O456HC2T.js → chunk-KSCQRZJZ.js} +3 -3
- package/dist/{chunk-ZKR2UV2O.js → chunk-LFFXUHX3.js} +2 -2
- package/dist/{chunk-4VWPE2QB.js → chunk-LZNYQYDU.js} +2 -2
- package/dist/{chunk-RFUOEY6O.js → chunk-MS5VFQE3.js} +9 -9
- package/dist/{chunk-NJGU5D52.js → chunk-MYZGLD7Y.js} +10 -10
- package/dist/{chunk-IBL26DXR.js → chunk-NNHRMVZU.js} +38 -37
- package/dist/{chunk-IBL26DXR.js.map → chunk-NNHRMVZU.js.map} +1 -1
- package/dist/{chunk-W5DQ2NPP.js → chunk-NZN3SWSZ.js} +14 -6
- package/dist/chunk-NZN3SWSZ.js.map +1 -0
- package/dist/{chunk-IM5F6YML.js → chunk-PENEGF75.js} +2 -2
- package/dist/{chunk-HFONXAJI.js → chunk-QX42N7TE.js} +2 -2
- package/dist/{chunk-FKCYKG6B.js → chunk-SCXCJSTT.js} +2 -2
- package/dist/{chunk-VQBPRW5D.js → chunk-TLFZPJOY.js} +4 -4
- package/dist/{chunk-R7JTOVK6.js → chunk-TRCYUQ4M.js} +2 -2
- package/dist/{chunk-BNY7OPWU.js → chunk-UDWZJY3V.js} +2 -2
- package/dist/{chunk-CWFWLIZG.js → chunk-V76TXFRC.js} +3 -3
- package/dist/{chunk-V7KPBMW3.js → chunk-VM4HZT3B.js} +4 -4
- package/dist/{chunk-PRM2R525.js → chunk-XJAGCUMD.js} +2 -2
- package/dist/{chunk-FXOD3W5M.js → chunk-XU2SJKFK.js} +2 -2
- package/dist/{chunk-GPOL7A3J.js → chunk-Z5VUMKF5.js} +3 -3
- package/dist/{chunk-VSLDUTMC.js → chunk-ZTTBGME2.js} +2 -2
- package/dist/{cli-circuit-breaker-OLBCD76Q.js → cli-circuit-breaker-MCQG3PQK.js} +3 -3
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +95 -72
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-R5OHT23F.js → composite-router-QAYCHEFG.js} +2 -2
- package/dist/{consensus-vote-CHJ26ZP5.js → consensus-vote-EIV5TDPY.js} +16 -16
- package/dist/{consensus-vote-types-ptxFNv55.d.ts → consensus-vote-types-DhmacUE7.d.ts} +12 -0
- package/dist/{context-retriever-C543ZSAK.js → context-retriever-UXQCDDRY.js} +8 -8
- package/dist/{doctor-deep-RDKE4IUJ.js → doctor-deep-QRLRDFM4.js} +3 -3
- package/dist/{doctor-live-QH6CAYXX.js → doctor-live-CUKBQSSH.js} +10 -10
- package/dist/{expert-bridge-QVGTBYJR.js → expert-bridge-ZG2IA3RJ.js} +4 -4
- package/dist/{factory-TYE4SYFG.js → factory-FPNYFKXU.js} +5 -5
- package/dist/{factory-3XP5YV5H.js → factory-RQEHJ4AW.js} +9 -9
- package/dist/{improvement-review-3ULJQSPW.js → improvement-review-CUBUAU2D.js} +5 -5
- package/dist/index.d.ts +9 -2
- package/dist/index.js +30 -30
- package/dist/{init-opencode-OJOLKRX5.js → init-opencode-4QECASK4.js} +5 -5
- package/dist/issue-triage-BIEZBWV2.js +16 -0
- package/dist/{pr-reviewer-helpers-PQVZGOMW.js → pr-reviewer-helpers-RK5IT4US.js} +4 -4
- package/dist/{registry-command-A4V5IY3H.js → registry-command-MBZFFDWS.js} +2 -2
- package/dist/{repo-security-plan-AEAGWV5B.js → repo-security-plan-W76YLC2M.js} +3 -3
- package/dist/{research-helpers-synthesize-5AZ5HFJA.js → research-helpers-synthesize-GI5JFAQM.js} +4 -4
- package/dist/{routing-memory-OGPJD5SV.js → routing-memory-WLCUOPDE.js} +2 -2
- package/dist/{session-memory-7C2PLBQ4.js → session-memory-HU3XMQEH.js} +3 -3
- package/dist/{setup-config-E33MS244.js → setup-config-XA756R2O.js} +3 -3
- package/dist/{setup-custom-api-75GT72XR.js → setup-custom-api-ETBGOE7O.js} +4 -4
- package/dist/setup-data-dir-XJWO2WOU.js +32 -0
- package/dist/{tool-memory-RCFKUAVI.js → tool-memory-7XMQAQQM.js} +5 -5
- package/dist/{unified-registry-L7VBJHCY.js → unified-registry-LR4OCUFI.js} +10 -10
- package/dist/{weather-report-DT3QPADZ.js → weather-report-UYKQUSBB.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-W5DQ2NPP.js.map +0 -1
- package/dist/chunk-WGX2OXDY.js.map +0 -1
- package/dist/issue-triage-PHJ5W52G.js +0 -16
- package/dist/setup-data-dir-B4QPQKBS.js +0 -32
- /package/dist/{ast-rule-runner-YFTJDT7X.js.map → ast-rule-runner-AMZCLKRV.js.map} +0 -0
- /package/dist/{child-mcp-config-4ELORIGD.js.map → child-mcp-config-7DSYI325.js.map} +0 -0
- /package/dist/{chunk-UAUG7UEY.js.map → chunk-3IBALX36.js.map} +0 -0
- /package/dist/{chunk-IF7GVPKD.js.map → chunk-3PQIIMHN.js.map} +0 -0
- /package/dist/{chunk-DJKLTLT2.js.map → chunk-4IV25ZUM.js.map} +0 -0
- /package/dist/{chunk-7SJL3BZB.js.map → chunk-5GZ4UN5F.js.map} +0 -0
- /package/dist/{chunk-D6EQ454Z.js.map → chunk-5UCGVAEZ.js.map} +0 -0
- /package/dist/{chunk-GNM4YDQA.js.map → chunk-6FFBX665.js.map} +0 -0
- /package/dist/{chunk-7AP6YJM4.js.map → chunk-AXBEG6VW.js.map} +0 -0
- /package/dist/{chunk-JMBBRHZS.js.map → chunk-BJXSG5YL.js.map} +0 -0
- /package/dist/{chunk-JT6I3X3S.js.map → chunk-CG7OSI5P.js.map} +0 -0
- /package/dist/{chunk-FG6BJ3QZ.js.map → chunk-ILA4UGXI.js.map} +0 -0
- /package/dist/{chunk-Z6TYHJ34.js.map → chunk-JYKRCQSU.js.map} +0 -0
- /package/dist/{chunk-T3QVXJD7.js.map → chunk-JYZNPK62.js.map} +0 -0
- /package/dist/{chunk-4K3WJ7KR.js.map → chunk-KQE7EFBF.js.map} +0 -0
- /package/dist/{chunk-O456HC2T.js.map → chunk-KSCQRZJZ.js.map} +0 -0
- /package/dist/{chunk-ZKR2UV2O.js.map → chunk-LFFXUHX3.js.map} +0 -0
- /package/dist/{chunk-4VWPE2QB.js.map → chunk-LZNYQYDU.js.map} +0 -0
- /package/dist/{chunk-RFUOEY6O.js.map → chunk-MS5VFQE3.js.map} +0 -0
- /package/dist/{chunk-NJGU5D52.js.map → chunk-MYZGLD7Y.js.map} +0 -0
- /package/dist/{chunk-IM5F6YML.js.map → chunk-PENEGF75.js.map} +0 -0
- /package/dist/{chunk-HFONXAJI.js.map → chunk-QX42N7TE.js.map} +0 -0
- /package/dist/{chunk-FKCYKG6B.js.map → chunk-SCXCJSTT.js.map} +0 -0
- /package/dist/{chunk-VQBPRW5D.js.map → chunk-TLFZPJOY.js.map} +0 -0
- /package/dist/{chunk-R7JTOVK6.js.map → chunk-TRCYUQ4M.js.map} +0 -0
- /package/dist/{chunk-BNY7OPWU.js.map → chunk-UDWZJY3V.js.map} +0 -0
- /package/dist/{chunk-CWFWLIZG.js.map → chunk-V76TXFRC.js.map} +0 -0
- /package/dist/{chunk-V7KPBMW3.js.map → chunk-VM4HZT3B.js.map} +0 -0
- /package/dist/{chunk-PRM2R525.js.map → chunk-XJAGCUMD.js.map} +0 -0
- /package/dist/{chunk-FXOD3W5M.js.map → chunk-XU2SJKFK.js.map} +0 -0
- /package/dist/{chunk-GPOL7A3J.js.map → chunk-Z5VUMKF5.js.map} +0 -0
- /package/dist/{chunk-VSLDUTMC.js.map → chunk-ZTTBGME2.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-OLBCD76Q.js.map → cli-circuit-breaker-MCQG3PQK.js.map} +0 -0
- /package/dist/{composite-router-R5OHT23F.js.map → composite-router-QAYCHEFG.js.map} +0 -0
- /package/dist/{consensus-vote-CHJ26ZP5.js.map → consensus-vote-EIV5TDPY.js.map} +0 -0
- /package/dist/{context-retriever-C543ZSAK.js.map → context-retriever-UXQCDDRY.js.map} +0 -0
- /package/dist/{doctor-deep-RDKE4IUJ.js.map → doctor-deep-QRLRDFM4.js.map} +0 -0
- /package/dist/{doctor-live-QH6CAYXX.js.map → doctor-live-CUKBQSSH.js.map} +0 -0
- /package/dist/{expert-bridge-QVGTBYJR.js.map → expert-bridge-ZG2IA3RJ.js.map} +0 -0
- /package/dist/{factory-3XP5YV5H.js.map → factory-FPNYFKXU.js.map} +0 -0
- /package/dist/{factory-TYE4SYFG.js.map → factory-RQEHJ4AW.js.map} +0 -0
- /package/dist/{improvement-review-3ULJQSPW.js.map → improvement-review-CUBUAU2D.js.map} +0 -0
- /package/dist/{init-opencode-OJOLKRX5.js.map → init-opencode-4QECASK4.js.map} +0 -0
- /package/dist/{issue-triage-PHJ5W52G.js.map → issue-triage-BIEZBWV2.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-PQVZGOMW.js.map → pr-reviewer-helpers-RK5IT4US.js.map} +0 -0
- /package/dist/{registry-command-A4V5IY3H.js.map → registry-command-MBZFFDWS.js.map} +0 -0
- /package/dist/{repo-security-plan-AEAGWV5B.js.map → repo-security-plan-W76YLC2M.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-5AZ5HFJA.js.map → research-helpers-synthesize-GI5JFAQM.js.map} +0 -0
- /package/dist/{routing-memory-OGPJD5SV.js.map → routing-memory-WLCUOPDE.js.map} +0 -0
- /package/dist/{session-memory-7C2PLBQ4.js.map → session-memory-HU3XMQEH.js.map} +0 -0
- /package/dist/{setup-config-E33MS244.js.map → setup-config-XA756R2O.js.map} +0 -0
- /package/dist/{setup-custom-api-75GT72XR.js.map → setup-custom-api-ETBGOE7O.js.map} +0 -0
- /package/dist/{setup-data-dir-B4QPQKBS.js.map → setup-data-dir-XJWO2WOU.js.map} +0 -0
- /package/dist/{tool-memory-RCFKUAVI.js.map → tool-memory-7XMQAQQM.js.map} +0 -0
- /package/dist/{unified-registry-L7VBJHCY.js.map → unified-registry-LR4OCUFI.js.map} +0 -0
- /package/dist/{weather-report-DT3QPADZ.js.map → weather-report-UYKQUSBB.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-LFFXUHX3.js";
|
|
13
|
+
import "./chunk-NZN3SWSZ.js";
|
|
14
14
|
import "./chunk-UE7A2XHM.js";
|
|
15
15
|
import "./chunk-LWOX65CP.js";
|
|
16
16
|
import "./chunk-PX6F3LHL.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
loadRules,
|
|
27
27
|
runAstQaRules
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
29
|
+
//# sourceMappingURL=ast-rule-runner-AMZCLKRV.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-OITVVSWO.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
7
7
|
import "./chunk-UE7A2XHM.js";
|
|
8
8
|
import "./chunk-LWOX65CP.js";
|
|
9
9
|
import "./chunk-PX6F3LHL.js";
|
|
@@ -56,4 +56,4 @@ async function generateMcpConfig(options) {
|
|
|
56
56
|
export {
|
|
57
57
|
generateMcpConfig
|
|
58
58
|
};
|
|
59
|
-
//# sourceMappingURL=child-mcp-config-
|
|
59
|
+
//# sourceMappingURL=child-mcp-config-7DSYI325.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/tools/scanner-registry-fetcher.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -740,4 +740,4 @@ export {
|
|
|
740
740
|
generateSecurityPlan,
|
|
741
741
|
buildPlanFromAnalysis
|
|
742
742
|
};
|
|
743
|
-
//# sourceMappingURL=chunk-
|
|
743
|
+
//# sourceMappingURL=chunk-3IBALX36.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TASK_CATEGORIES,
|
|
3
3
|
getAdaptiveBonus,
|
|
4
4
|
getOutcomeStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
6
6
|
|
|
7
7
|
// src/cli/doctor-deep.ts
|
|
8
8
|
var CLI_NAMES = ["claude", "gemini", "codex", "opencode"];
|
|
@@ -106,4 +106,4 @@ export {
|
|
|
106
106
|
runDeepDiagnostics,
|
|
107
107
|
formatDeepDiagnostics
|
|
108
108
|
};
|
|
109
|
-
//# sourceMappingURL=chunk-
|
|
109
|
+
//# sourceMappingURL=chunk-3PQIIMHN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NZN3SWSZ.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-4IV25ZUM.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CACHE_TIMEOUTS,
|
|
3
3
|
createLogger,
|
|
4
4
|
getTimeProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
6
6
|
|
|
7
7
|
// src/security/trust-types.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -610,4 +610,4 @@ export {
|
|
|
610
610
|
resolveReputationGatingMode,
|
|
611
611
|
gateWithReputation
|
|
612
612
|
};
|
|
613
|
-
//# sourceMappingURL=chunk-
|
|
613
|
+
//# sourceMappingURL=chunk-5GZ4UN5F.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SCXCJSTT.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-UDWZJY3V.js";
|
|
8
8
|
import {
|
|
9
9
|
err,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
12
12
|
|
|
13
13
|
// src/scm/factory.ts
|
|
14
14
|
async function createScmProvider(config) {
|
|
@@ -41,4 +41,4 @@ export {
|
|
|
41
41
|
createScmProvider,
|
|
42
42
|
createGitHubProvider
|
|
43
43
|
};
|
|
44
|
-
//# sourceMappingURL=chunk-
|
|
44
|
+
//# sourceMappingURL=chunk-5UCGVAEZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NZN3SWSZ.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-6FFBX665.js.map
|
|
@@ -10,13 +10,13 @@ import {
|
|
|
10
10
|
import {
|
|
11
11
|
assessReputation,
|
|
12
12
|
sanitizeInput
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-5GZ4UN5F.js";
|
|
14
14
|
import {
|
|
15
15
|
createLogger,
|
|
16
16
|
err,
|
|
17
17
|
getTimeProvider,
|
|
18
18
|
ok
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
20
20
|
|
|
21
21
|
// src/dogfooding/pr-reviewer-helpers.ts
|
|
22
22
|
import { randomUUID } from "node:crypto";
|
|
@@ -416,4 +416,4 @@ export {
|
|
|
416
416
|
createFailedReview,
|
|
417
417
|
reviewPostingBlock
|
|
418
418
|
};
|
|
419
|
-
//# sourceMappingURL=chunk-
|
|
419
|
+
//# sourceMappingURL=chunk-AXBEG6VW.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
planOptionalParams,
|
|
5
5
|
requireApiKey,
|
|
6
6
|
validateApiKeyPresence
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-ZTTBGME2.js";
|
|
8
8
|
import {
|
|
9
9
|
assertCustomApiHostResolvesPublic,
|
|
10
10
|
hostnameOf,
|
|
11
11
|
redactApiKey
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LZNYQYDU.js";
|
|
13
13
|
import {
|
|
14
14
|
sanitizeErrorDetails
|
|
15
15
|
} from "./chunk-2NDA4DHW.js";
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
isEndpointArmId,
|
|
32
32
|
ok,
|
|
33
33
|
recordUsageEvent
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
35
35
|
|
|
36
36
|
// src/adapters/openai-types.ts
|
|
37
37
|
var OPENAI_MODELS = {
|
|
@@ -886,4 +886,4 @@ export {
|
|
|
886
886
|
discoverModels,
|
|
887
887
|
buildOpenAICompatAdapters
|
|
888
888
|
};
|
|
889
|
-
//# sourceMappingURL=chunk-
|
|
889
|
+
//# sourceMappingURL=chunk-BJXSG5YL.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
err,
|
|
6
6
|
getErrorMessage,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
9
9
|
import {
|
|
10
10
|
findRepoRoot,
|
|
11
11
|
getActiveWorkspaceRoot,
|
|
@@ -290,4 +290,4 @@ export {
|
|
|
290
290
|
loadPapersRegistry,
|
|
291
291
|
savePapersRegistry
|
|
292
292
|
};
|
|
293
|
-
//# sourceMappingURL=chunk-
|
|
293
|
+
//# sourceMappingURL=chunk-CG7OSI5P.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6FFBX665.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -17,6 +17,7 @@ function routedAttribution(routed, model) {
|
|
|
17
17
|
const cli = routed.routedCli ?? resolveCliFromModelString(model);
|
|
18
18
|
return {
|
|
19
19
|
...cli !== void 0 && { cli },
|
|
20
|
+
...routed.routedArm !== void 0 && { routedArm: routed.routedArm },
|
|
20
21
|
...routed.routedCli !== void 0 && { routedBy: "composite-router" },
|
|
21
22
|
...routed.routedDurationMs !== void 0 && { routedDurationMs: routed.routedDurationMs }
|
|
22
23
|
};
|
|
@@ -29,7 +30,7 @@ async function getMcpConfigPath() {
|
|
|
29
30
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
30
31
|
mcpConfigInitPromise ??= (async () => {
|
|
31
32
|
try {
|
|
32
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
33
|
+
const { generateMcpConfig } = await import("./child-mcp-config-7DSYI325.js");
|
|
33
34
|
const config = await generateMcpConfig();
|
|
34
35
|
cachedMcpConfigPath = config.configPath;
|
|
35
36
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -106,8 +107,8 @@ var routerInitPromise = null;
|
|
|
106
107
|
async function getRouter() {
|
|
107
108
|
if (cachedRouter !== null) return cachedRouter;
|
|
108
109
|
routerInitPromise ??= (async () => {
|
|
109
|
-
const { createAllAdapters } = await import("./factory-
|
|
110
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
110
|
+
const { createAllAdapters } = await import("./factory-RQEHJ4AW.js");
|
|
111
|
+
const { createCompositeRouter } = await import("./composite-router-QAYCHEFG.js");
|
|
111
112
|
const adapters = createAllAdapters();
|
|
112
113
|
if (adapters.size === 0) {
|
|
113
114
|
routerInitPromise = null;
|
|
@@ -115,7 +116,7 @@ async function getRouter() {
|
|
|
115
116
|
}
|
|
116
117
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
117
118
|
try {
|
|
118
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
119
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-MCQG3PQK.js");
|
|
119
120
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
120
121
|
} catch (error) {
|
|
121
122
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -139,6 +140,7 @@ function checkCircuitHealth() {
|
|
|
139
140
|
function attributionOf(source) {
|
|
140
141
|
return {
|
|
141
142
|
...source.cli !== void 0 && { cli: source.cli },
|
|
143
|
+
...source.routedArm !== void 0 && { routedArm: source.routedArm },
|
|
142
144
|
...source.routedBy !== void 0 && { routedBy: source.routedBy },
|
|
143
145
|
...source.routedDurationMs !== void 0 && { routedDurationMs: source.routedDurationMs }
|
|
144
146
|
};
|
|
@@ -246,4 +248,4 @@ export {
|
|
|
246
248
|
tokenSplitFromUsage,
|
|
247
249
|
executeExpert
|
|
248
250
|
};
|
|
249
|
-
//# sourceMappingURL=chunk-
|
|
251
|
+
//# sourceMappingURL=chunk-EKZ6V7SE.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/pipeline/expert-bridge.ts"],"sourcesContent":["/**\n * Expert Bridge — Programmatic access to the execute_expert pipeline (#1693)\n *\n * Provides a clean wrapper for calling experts with the full pipeline:\n * timeout, fallback cascade, degradation detection, heartbeat, outcome recording.\n *\n * DRY: reuses createBuiltInExpert + CompositeRouter instead of reimplementing.\n *\n * @module pipeline/expert-bridge\n */\n\nimport { createLogger, getTimeProvider } from '../core/index.js';\nimport type { BuiltInExpertType } from '../agents/experts/expert-config.js';\nimport { isRateLimitText } from '../adapters/rate-limit-detector.js';\nimport { resolveCliSlot } from '../config/model-availability.js';\nimport type { CliNameLiteral } from '../config/model-capabilities-types.js';\nimport type { OutcomeRoutedBy } from '../orchestration/outcomes/outcome-types.js';\nimport type { RoutingArmId } from '../cli-adapters/types-core.js';\n\n/**\n * Resolves a CLI slot from the model string a (CLI or API) adapter returned.\n * Known models resolve to their exact slot; **unknown** models — new releases\n * or API/openrouter models not in the curated registry — fall back to the\n * vendor-derived slot (#3317 / #3293) so the outcome is recorded against a real\n * slot instead of being dropped with an undefined cli (the api-mode gap).\n * Returns undefined only when no model is present (the bridge failed before\n * dispatch — no execution to attribute).\n */\nfunction resolveCliFromModelString(model: string | undefined): CliNameLiteral | undefined {\n return resolveCliSlot(model);\n}\n\nconst logger = createLogger({ component: 'expert-bridge' });\n\n/** Base delay for rate limit retry backoff (ms). Scales linearly: 3s, 6s, 9s. */\nconst RATE_LIMIT_BASE_DELAY_MS = 3000;\n\n/** Result of an expert execution. */\nexport interface ExpertBridgeResult {\n readonly success: boolean;\n readonly text: string;\n readonly expertType: BuiltInExpertType;\n readonly durationMs: number;\n readonly error?: string;\n /**\n * CLI that actually executed the task, resolved from the underlying\n * `CliResponse.model` via `getCliForModelId`. Undefined when the bridge\n * failed before dispatch (no adapters / circuit-open / rate-limit cap).\n * Callers writing to OutcomeStore should use this rather than hardcoding\n * a cli — see #2823 (#1154 regression).\n */\n readonly cli?: CliNameLiteral;\n /**\n * Routing arm id the router ran (#6552), when it names one: `api:anthropic`\n * for the Anthropic API arm, where {@link cli} reads the `claude` slot. An\n * outcome row records this, so warm start credits the arm that ran.\n * Undefined when no arm ran, or when the router named only a slot.\n */\n readonly routedArm?: RoutingArmId;\n /**\n * `'composite-router'` when `CompositeRouter.executeTask` selected the CLI\n * that produced this result, success or failure (#6521). Set where the\n * router's decision and the execution meet (`adaptCompositeRouter`), so an\n * outcome recorder copies it rather than asserting routing on its own.\n * Undefined when no arm ran: routing failed, no adapters, circuit open.\n */\n readonly routedBy?: OutcomeRoutedBy;\n /**\n * Wall time of the routed arm's call alone (#6521), from the router. Unlike\n * {@link durationMs} it excludes expert import, MCP-config setup and\n * rate-limit backoff. Undefined when no arm ran.\n */\n readonly routedDurationMs?: number;\n /**\n * Total tokens (input + output) the underlying CLI/adapter reported for this\n * call, when available (#3396). Best-effort: `CliResponse.usage` is optional\n * — CLI-subprocess paths whose `extractUsage` returns null leave this\n * undefined. Consumers (budget enforcement #3395, model.called attribution\n * #3387, routing-experience metrics) must tolerate `undefined`.\n */\n readonly tokensUsed?: number;\n /**\n * Concrete model id the underlying adapter reported (`CliResponse.model`),\n * when present (#3387). Distinct from {@link cli} (the slot): one CLI can run\n * several models. Undefined when the adapter didn't report a model or the\n * bridge failed before dispatch. Required to emit a `model.called` event.\n */\n readonly model?: string;\n /**\n * Input/output token split from the adapter's `CliResponse.usage` (#3387),\n * when reported. Best-effort like {@link tokensUsed}; both undefined together\n * when no usage was available. `tokensIn + tokensOut` reconciles with\n * `tokensUsed` (single source of truth — both derive from the same record).\n */\n readonly tokensIn?: number;\n readonly tokensOut?: number;\n}\n\n/** Attribution of a routed arm's run, on success and on failure (#6521). */\ninterface RoutedAttribution {\n cli?: CliNameLiteral;\n routedArm?: RoutingArmId;\n routedBy?: OutcomeRoutedBy;\n routedDurationMs?: number;\n}\n\n/** Minimal router interface for the bridge. */\ninterface RouterLike {\n executeTask(task: { content: string; options?: Record<string, unknown> | undefined }): Promise<{\n ok: boolean;\n value: RoutedAttribution & {\n text: string;\n tokensUsed?: number;\n model?: string;\n tokensIn?: number;\n tokensOut?: number;\n };\n error: RoutedAttribution & { message: string };\n }>;\n}\n\n/**\n * The bridge's attribution for a router result (#6521). The router's own\n * `routedCli` is authoritative: the model string can name another vendor's\n * slot (an `api:custom-openai` arm shows as opencode while serving a GPT\n * model). The model-derived CLI is the fallback only when no arm is named.\n * No `routedCli` on a failure means routing failed before an arm ran, and\n * then there is nothing to attribute.\n */\nfunction routedAttribution(\n routed: { routedCli?: CliNameLiteral; routedArm?: RoutingArmId; routedDurationMs?: number },\n model: string | undefined\n): RoutedAttribution {\n const cli = routed.routedCli ?? resolveCliFromModelString(model);\n return {\n ...(cli !== undefined && { cli }),\n ...(routed.routedArm !== undefined && { routedArm: routed.routedArm }),\n ...(routed.routedCli !== undefined && { routedBy: 'composite-router' as const }),\n ...(routed.routedDurationMs !== undefined && { routedDurationMs: routed.routedDurationMs }),\n };\n}\n\n// Cached router — lazily initialized, reused across calls within a session\nlet cachedRouter: RouterLike | null = null;\n\n// Cached MCP config — generated once, reused across expert calls (#1708)\nlet cachedMcpConfigPath: string | null = null;\n// Cached cleanup for the cached config's tempdir (closes #2946). Previously\n// the cleanup returned by `generateMcpConfig` was thrown away, so\n// `/tmp/nexus-mcp-XXXXXX/` accumulated one entry per MCP server lifetime.\n// Stored here + invoked by `shutdownExpertBridge()` from the server's\n// graceful-shutdown path.\nlet cachedMcpConfigCleanup: (() => Promise<void>) | null = null;\n// Coalesces concurrent init under voter fan-out (closes #2969). consensus_vote\n// fans out N=7 callers on cold start; without this each one ran the full init\n// including a mkdtemp() that the loser N-1 instances never cleaned up.\nlet mcpConfigInitPromise: Promise<string | null> | null = null;\n\n/** Get or create cached MCP config path for expert CLI sessions (#1708). */\nasync function getMcpConfigPath(): Promise<string | null> {\n if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;\n mcpConfigInitPromise ??= (async (): Promise<string | null> => {\n try {\n const { generateMcpConfig } = await import('../cli-adapters/child-mcp-config.js');\n const config = await generateMcpConfig();\n cachedMcpConfigPath = config.configPath;\n cachedMcpConfigCleanup = config.cleanup;\n return cachedMcpConfigPath;\n } catch {\n mcpConfigInitPromise = null; // allow retry on next call\n return null; // MCP config not available — experts run without tools\n }\n })();\n return mcpConfigInitPromise;\n}\n\n/**\n * Removes the cached MCP-config tempdir (closes #2946). Invoke from the\n * server's graceful-shutdown path so stale nexus-mcp-* tempdirs (under\n * the OS tmpdir, see child-mcp-config.ts) don't accumulate across daemon\n * restarts. Idempotent; safe to call multiple times. Never throws —\n * cleanup failures are logged and swallowed.\n */\nexport async function shutdownExpertBridge(): Promise<void> {\n const cleanup = cachedMcpConfigCleanup;\n if (cleanup === null) return;\n cachedMcpConfigCleanup = null;\n cachedMcpConfigPath = null;\n mcpConfigInitPromise = null;\n try {\n await cleanup();\n } catch (error: unknown) {\n const msg = error instanceof Error ? error.message : String(error);\n logger.debug('Expert-bridge MCP-config cleanup failed', { error: msg });\n }\n}\n\n/** Cached circuit breaker for health monitoring (#1766). */\nlet cachedCircuitBreaker: {\n getHealthStatus(): {\n systemHealthy: boolean;\n healthyCount: number;\n clis: ReadonlyArray<{ name: string; healthy: boolean }>;\n };\n} | null = null;\n\n/**\n * Adapt a CompositeRouter to the narrower RouterLike interface used by this\n * bridge. Previously did `as unknown as RouterLike` which hid any structural\n * mismatch between CompositeRouter's `Result<CliResponse, CliError>` and\n * RouterLike's flat `{ ok, value: { text }, error: { message } }` shape.\n * If CliResponse renames `.text` → `.output` (or similar), this adapter\n * breaks at compile time instead of silently returning wrong data (#1921).\n */\n/**\n * Total tokens from a best-effort `CliResponse.usage` record (#3396). Prefers\n * the reported `totalTokens`; falls back to input+output; returns undefined\n * when no usage was reported (so callers can distinguish \"0 tokens\" — which\n * never happens for a real call — from \"unknown\").\n */\nexport function totalTokensFromUsage(\n usage: { totalTokens?: number; inputTokens?: number; outputTokens?: number } | undefined\n): number | undefined {\n if (usage === undefined) return undefined;\n if (typeof usage.totalTokens === 'number') return usage.totalTokens;\n const total = (usage.inputTokens ?? 0) + (usage.outputTokens ?? 0);\n return total > 0 ? total : undefined;\n}\n\n/**\n * Per-direction token split from a best-effort `CliResponse.usage` record\n * (#3387). Unlike {@link totalTokensFromUsage} this keeps `tokensIn`/`tokensOut`\n * separate — the granularity `ModelCalledEvent` requires for attribution.\n * Returns undefined when no usage was reported or both directions are zero (no\n * real call), so callers skip emitting a noise event instead of recording\n * zeros. Reconciles with the total: `tokensIn + tokensOut === totalTokensFromUsage`.\n */\nexport function tokenSplitFromUsage(\n usage: { inputTokens?: number; outputTokens?: number; totalTokens?: number } | undefined\n): { tokensIn: number; tokensOut: number } | undefined {\n if (usage === undefined) return undefined;\n const tokensIn = usage.inputTokens ?? 0;\n const tokensOut = usage.outputTokens ?? 0;\n if (tokensIn + tokensOut === 0) return undefined;\n return { tokensIn, tokensOut };\n}\n\nfunction adaptCompositeRouter(\n compositeRouter: import('../cli-adapters/composite-router.js').ICompositeRouter\n): RouterLike {\n return {\n async executeTask(task): Promise<{\n ok: boolean;\n value: RoutedAttribution & {\n text: string;\n tokensUsed?: number;\n model?: string;\n tokensIn?: number;\n tokensOut?: number;\n };\n error: RoutedAttribution & { message: string };\n }> {\n const cliTask: import('../cli-adapters/types.js').CliTask = {\n content: task.content,\n ...(task.options !== undefined ? { options: task.options } : {}),\n };\n const result = await compositeRouter.executeTask(cliTask);\n if (result.ok) {\n // #2823: surface which CLI actually executed so callers writing to\n // OutcomeStore don't have to hardcode 'claude' (the bug #1154 fixed\n // and that regressed into the pipeline/ tree). Derive via the\n // canonical model→cli mapping in the registry — if the underlying\n // adapter didn't set `model` or the model isn't in the registry,\n // cli stays undefined and downstream code can skip the record\n // rather than lie.\n // #6521: the arm the router ran is the attribution; see routedAttribution.\n const attribution = routedAttribution(result.value, result.value.model);\n // #3396: surface token usage (best-effort) so budget enforcement,\n // attribution, and routing-experience metrics get real numbers instead\n // of zeros. `usage` is optional and `totalTokens` may be absent — fall\n // back to input+output, and leave undefined when no usage was reported.\n const tokensUsed = totalTokensFromUsage(result.value.usage);\n // #3387: also surface the concrete model + per-direction token split so\n // a meaningful `model.called` event can be emitted. Both derive from the\n // same CliResponse, so tokensIn+tokensOut reconciles with tokensUsed.\n const model = result.value.model;\n const split = tokenSplitFromUsage(result.value.usage);\n return {\n ok: true,\n value: {\n text: result.value.text,\n ...attribution,\n ...(tokensUsed !== undefined && { tokensUsed }),\n ...(model !== undefined && { model }),\n ...(split !== undefined && { tokensIn: split.tokensIn, tokensOut: split.tokensOut }),\n },\n error: { message: '' },\n };\n }\n // #6521 I1: a routed failure keeps its arm, so it is recorded and the\n // loop does not see only the arm's successes.\n const routed = 'routedCli' in result.error ? result.error : {};\n return {\n ok: false,\n value: { text: '' },\n error: { message: result.error.message, ...routedAttribution(routed, undefined) },\n };\n },\n };\n}\n\n// Coalesces concurrent router init the same way mcpConfigInitPromise does\n// (closes #2969). N=7 voter fan-out previously ran createAllAdapters() N times\n// — N sets of CLI probe subprocesses, all but one discarded.\nlet routerInitPromise: Promise<RouterLike | null> | null = null;\n\n/** Get or create a cached CompositeRouter with circuit breaker monitoring. */\nasync function getRouter(): Promise<RouterLike | null> {\n if (cachedRouter !== null) return cachedRouter;\n routerInitPromise ??= (async (): Promise<RouterLike | null> => {\n // ROUTER CONSTRUCTION, a distinct operation from adapter acquisition\n // (#5191, ratified 5/6). `createCompositeRouter` needs\n // `Map<RoutingArmId, ICliAdapter>`; `getGlobalRegistry()` returns\n // `IResilientAdapter` (extends `IModelAdapter`) one CLI at a time, so the\n // canonical path cannot type-check here.\n //\n // It also should not be used: the router IS the selection/failover layer,\n // so resilient-wrapped arms would nest two failover mechanisms, and the\n // shared circuit breaker would make an arm report unavailable without the\n // router ever testing it. That is the doctor-probe defect (#5209) applied\n // to routing — and this map is the LinUCB arm space, so a coupled arm\n // availability would distort exploration signals.\n //\n // Pinned by `router-operation.test.ts`.\n const { createAllAdapters } = await import('../cli-adapters/factory.js');\n const { createCompositeRouter } = await import('../cli-adapters/composite-router.js');\n const adapters = createAllAdapters();\n if (adapters.size === 0) {\n routerInitPromise = null; // allow retry once adapters become available\n return null;\n }\n cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));\n\n // Initialize circuit breaker monitoring (#1766)\n try {\n const { createCliCircuitBreakerIntegration } =\n await import('../cli-adapters/cli-circuit-breaker.js');\n cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);\n } catch (error: unknown) {\n // Circuit breaker not available — continue without it. Log so we can\n // notice if initialization silently stops working (#1913 Class B).\n const msg = error instanceof Error ? error.message : String(error);\n logger.debug('Circuit breaker init failed; continuing without it', { error: msg });\n }\n\n return cachedRouter;\n })();\n return routerInitPromise;\n}\n\n/** Check CLI health before dispatch (#1766). */\nfunction checkCircuitHealth(): { healthy: boolean; message: string } {\n if (cachedCircuitBreaker === null) return { healthy: true, message: '' };\n const status = cachedCircuitBreaker.getHealthStatus();\n if (!status.systemHealthy) {\n return {\n healthy: false,\n message: `All CLI circuits open (${String(status.healthyCount)}/${String(status.clis.length)} healthy)`,\n };\n }\n return { healthy: true, message: '' };\n}\n\n/** The attribution fields present on `source`; absent ones stay absent. */\nfunction attributionOf(source: RoutedAttribution): RoutedAttribution {\n return {\n ...(source.cli !== undefined && { cli: source.cli }),\n ...(source.routedArm !== undefined && { routedArm: source.routedArm }),\n ...(source.routedBy !== undefined && { routedBy: source.routedBy }),\n ...(source.routedDurationMs !== undefined && { routedDurationMs: source.routedDurationMs }),\n };\n}\n\n/** A successful router result as an {@link ExpertBridgeResult}; absent fields stay absent. */\nfunction toSuccessResult(\n value: Awaited<ReturnType<RouterLike['executeTask']>>['value'],\n expertType: BuiltInExpertType,\n durationMs: number\n): ExpertBridgeResult {\n return {\n success: true,\n text: value.text,\n expertType,\n durationMs,\n ...attributionOf(value),\n ...(value.tokensUsed !== undefined && { tokensUsed: value.tokensUsed }),\n ...(value.model !== undefined && { model: value.model }),\n ...(value.tokensIn !== undefined && { tokensIn: value.tokensIn }),\n ...(value.tokensOut !== undefined && { tokensOut: value.tokensOut }),\n };\n}\n\n/** Dispatch task to router with rate limit retry (#1802). */\nasync function dispatchWithRateLimitRetry(\n router: RouterLike,\n task: { content: string; options?: Record<string, unknown> | undefined },\n expertType: BuiltInExpertType,\n start: number\n): Promise<ExpertBridgeResult> {\n const maxAttempts = 3;\n for (let attempt = 0; attempt < maxAttempts; attempt++) {\n const result = await router.executeTask(task);\n const durationMs = getTimeProvider().now() - start;\n\n if (result.ok) {\n logger.info('Expert executed successfully', {\n expertType,\n durationMs,\n cli: result.value.cli,\n });\n return toSuccessResult(result.value, expertType, durationMs);\n }\n\n const isRateLimit = isRateLimitText(result.error.message);\n if (isRateLimit && attempt < maxAttempts - 1) {\n const backoffMs = RATE_LIMIT_BASE_DELAY_MS * (attempt + 1);\n logger.warn('Expert rate limited, retrying', { expertType, attempt: attempt + 1, backoffMs });\n await new Promise((resolve) => setTimeout(resolve, backoffMs));\n continue;\n }\n\n // Only the final attempt is attributed: a rate-limited attempt that is\n // retried is not recorded as a routed outcome of its own.\n logger.warn('Expert execution failed', { expertType, error: result.error.message });\n return {\n success: false,\n text: '',\n expertType,\n durationMs,\n error: result.error.message,\n ...attributionOf(result.error),\n };\n }\n\n return {\n success: false,\n text: '',\n expertType,\n durationMs: getTimeProvider().now() - start,\n error: 'Max retry attempts exceeded',\n };\n}\n\n/**\n * Execute an expert task with the full nexus-agents expert pipeline.\n *\n * Creates a built-in expert, executes via CompositeRouter (for intelligent\n * CLI routing), and records outcomes. Falls back gracefully on failure.\n *\n * @param expertType - Built-in expert type (code, architecture, security, qa, etc.)\n * @param prompt - Task prompt for the expert\n * @returns Expert result with text output\n */\nexport function executeExpert(\n expertType: BuiltInExpertType,\n prompt: string\n): Promise<ExpertBridgeResult>;\nexport function executeExpert(\n expertType: BuiltInExpertType,\n prompt: string,\n // eslint-disable-next-line @typescript-eslint/unified-signatures -- Preserve the published two-argument API signature.\n options: { workDir?: string | undefined }\n): Promise<ExpertBridgeResult>;\n/** Execute with an optional working directory for the expert's CLI subprocess. */\nexport async function executeExpert(\n expertType: BuiltInExpertType,\n prompt: string,\n options?: { workDir?: string | undefined }\n): Promise<ExpertBridgeResult> {\n const start = getTimeProvider().now();\n try {\n const { BUILT_IN_EXPERTS } = await import('../agents/experts/expert-config.js');\n const config = BUILT_IN_EXPERTS[expertType];\n const fullPrompt = `${config.systemPrompt}\\n\\n${prompt}`;\n\n const router = await getRouter();\n if (router === null) {\n return {\n success: false,\n text: `[No adapters] ${prompt}`,\n expertType,\n durationMs: getTimeProvider().now() - start,\n error: 'No CLI adapters available',\n };\n }\n\n // Check circuit breaker health before dispatch (#1766)\n const health = checkCircuitHealth();\n if (!health.healthy) {\n logger.warn('Circuit breaker: all CLIs unavailable', { expertType, reason: health.message });\n return {\n success: false,\n text: '',\n expertType,\n durationMs: getTimeProvider().now() - start,\n error: health.message,\n };\n }\n\n // Pass MCP config so CLI experts can call nexus-agents tools (#1708)\n const mcpConfigPath = await getMcpConfigPath();\n const task: { content: string; options?: Record<string, unknown> | undefined } = {\n content: fullPrompt,\n };\n if (mcpConfigPath !== null) task.options = { mcpConfigPath };\n if (options?.workDir !== undefined) {\n task.options = { ...task.options, workDir: options.workDir };\n }\n\n return await dispatchWithRateLimitRetry(router, task, expertType, start);\n } catch (error) {\n const durationMs = getTimeProvider().now() - start;\n const msg = error instanceof Error ? error.message : String(error);\n logger.warn('Expert bridge error', { expertType, error: msg });\n return { success: false, text: '', expertType, durationMs, error: msg };\n }\n}\n"],"mappings":";;;;;;;;;;AA4BA,SAAS,0BAA0B,OAAuD;AACxF,SAAO,eAAe,KAAK;AAC7B;AAEA,IAAM,SAAS,aAAa,EAAE,WAAW,gBAAgB,CAAC;AAG1D,IAAM,2BAA2B;AA8FjC,SAAS,kBACP,QACA,OACmB;AACnB,QAAM,MAAM,OAAO,aAAa,0BAA0B,KAAK;AAC/D,SAAO;AAAA,IACL,GAAI,QAAQ,UAAa,EAAE,IAAI;AAAA,IAC/B,GAAI,OAAO,cAAc,UAAa,EAAE,WAAW,OAAO,UAAU;AAAA,IACpE,GAAI,OAAO,cAAc,UAAa,EAAE,UAAU,mBAA4B;AAAA,IAC9E,GAAI,OAAO,qBAAqB,UAAa,EAAE,kBAAkB,OAAO,iBAAiB;AAAA,EAC3F;AACF;AAGA,IA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chunk-
|
|
7
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
8
8
|
|
|
9
9
|
// src/context/session-memory.ts
|
|
10
10
|
import * as fs from "node:fs";
|
|
@@ -370,4 +370,4 @@ export {
|
|
|
370
370
|
SessionMemory,
|
|
371
371
|
createSessionMemory
|
|
372
372
|
};
|
|
373
|
-
//# sourceMappingURL=chunk-
|
|
373
|
+
//# sourceMappingURL=chunk-ILA4UGXI.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-SCXCJSTT.js";
|
|
5
5
|
import {
|
|
6
6
|
ROLE_DEFAULT_TRUST,
|
|
7
7
|
ReputationCache,
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
resolveEnvMode,
|
|
13
13
|
resolveReputationGatingMode,
|
|
14
14
|
sanitizeInput
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-5GZ4UN5F.js";
|
|
16
16
|
import {
|
|
17
17
|
hasToken
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UDWZJY3V.js";
|
|
19
19
|
import {
|
|
20
20
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
21
21
|
createLogger,
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
getErrorMessage,
|
|
24
24
|
getTimeProvider,
|
|
25
25
|
ok
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
27
27
|
|
|
28
28
|
// src/security/firewall/firewall-policy-mode.ts
|
|
29
29
|
import { z } from "zod";
|
|
@@ -2650,4 +2650,4 @@ export {
|
|
|
2650
2650
|
IssueTriage,
|
|
2651
2651
|
createIssueTriage
|
|
2652
2652
|
};
|
|
2653
|
-
//# sourceMappingURL=chunk-
|
|
2653
|
+
//# sourceMappingURL=chunk-JYKRCQSU.js.map
|
|
@@ -5,23 +5,23 @@ import {
|
|
|
5
5
|
planOptionalParams,
|
|
6
6
|
requireApiKey,
|
|
7
7
|
validateApiKeyPresence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZTTBGME2.js";
|
|
9
9
|
import {
|
|
10
10
|
CUSTOM_API_DEFAULT_MODEL
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-XJAGCUMD.js";
|
|
12
12
|
import {
|
|
13
13
|
assertCustomApiHostResolvesPublic,
|
|
14
14
|
hostnameOf,
|
|
15
15
|
readGatewayEnv,
|
|
16
16
|
redactApiKey,
|
|
17
17
|
validateCustomApiBaseUrl
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-LZNYQYDU.js";
|
|
19
19
|
import {
|
|
20
20
|
nexusMkdtempSync
|
|
21
21
|
} from "./chunk-OITVVSWO.js";
|
|
22
22
|
import {
|
|
23
23
|
getAvailabilityCache
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6FFBX665.js";
|
|
25
25
|
import {
|
|
26
26
|
sanitizeOutput
|
|
27
27
|
} from "./chunk-2NDA4DHW.js";
|
|
@@ -30,13 +30,13 @@ import {
|
|
|
30
30
|
} from "./chunk-QZUG667L.js";
|
|
31
31
|
import {
|
|
32
32
|
generateHyphenId
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-4IV25ZUM.js";
|
|
34
34
|
import {
|
|
35
35
|
CliCircuitBreaker,
|
|
36
36
|
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
37
37
|
getCliCircuitBreakerSnapshot,
|
|
38
38
|
getDefaultCliCircuitBreakerRegistry
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-XU2SJKFK.js";
|
|
40
40
|
import {
|
|
41
41
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
42
42
|
CLI_TIMEOUTS,
|
|
@@ -81,7 +81,7 @@ import {
|
|
|
81
81
|
resolveRetryAfterMs,
|
|
82
82
|
retryAfterMsFromContext,
|
|
83
83
|
warnIfGatewayCostUndeclared
|
|
84
|
-
} from "./chunk-
|
|
84
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
85
85
|
import {
|
|
86
86
|
parseBoolValue
|
|
87
87
|
} from "./chunk-LWOX65CP.js";
|
|
@@ -5263,4 +5263,4 @@ export {
|
|
|
5263
5263
|
SdkAdapter,
|
|
5264
5264
|
createAutoAdapter
|
|
5265
5265
|
};
|
|
5266
|
-
//# sourceMappingURL=chunk-
|
|
5266
|
+
//# sourceMappingURL=chunk-JYZNPK62.js.map
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
loadTechniquesRegistry,
|
|
9
9
|
resolveInsideRoot,
|
|
10
10
|
savePapersRegistry
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-CG7OSI5P.js";
|
|
12
12
|
import {
|
|
13
13
|
resolveToken
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UDWZJY3V.js";
|
|
15
15
|
import {
|
|
16
16
|
getToolMemory
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-VM4HZT3B.js";
|
|
18
18
|
import {
|
|
19
19
|
capitalizeWords,
|
|
20
20
|
tokenizeFiltered,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
ok,
|
|
44
44
|
registerPersistentDistillerFactory,
|
|
45
45
|
sigmoidConfidence
|
|
46
|
-
} from "./chunk-
|
|
46
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
47
47
|
import {
|
|
48
48
|
ensureLearningDir,
|
|
49
49
|
getRulesFile
|
|
@@ -4275,4 +4275,4 @@ export {
|
|
|
4275
4275
|
DEFAULT_CONTEXT_BUDGET_TOKENS,
|
|
4276
4276
|
getContextPromptPrefix
|
|
4277
4277
|
};
|
|
4278
|
-
//# sourceMappingURL=chunk-
|
|
4278
|
+
//# sourceMappingURL=chunk-KQE7EFBF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-QX42N7TE.js";
|
|
4
4
|
import {
|
|
5
5
|
sanitizeErrorDetails
|
|
6
6
|
} from "./chunk-2NDA4DHW.js";
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
getTimeProvider,
|
|
24
24
|
ok,
|
|
25
25
|
resolveToolClassGuardMs
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
27
27
|
import {
|
|
28
28
|
getNexusDataDir,
|
|
29
29
|
parseBoolValue
|
|
@@ -2342,4 +2342,4 @@ export {
|
|
|
2342
2342
|
DEFAULT_CONSENSUS_CONFIG,
|
|
2343
2343
|
ConsensusMetricsSchema
|
|
2344
2344
|
};
|
|
2345
|
-
//# sourceMappingURL=chunk-
|
|
2345
|
+
//# sourceMappingURL=chunk-KSCQRZJZ.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
ValidationError,
|
|
4
4
|
createLogger,
|
|
5
5
|
formatZodError
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
7
7
|
|
|
8
8
|
// src/security/ast-rule-runner.ts
|
|
9
9
|
import { existsSync } from "node:fs";
|
|
@@ -241,4 +241,4 @@ export {
|
|
|
241
241
|
collectAstQaFindings,
|
|
242
242
|
runAstQaRules
|
|
243
243
|
};
|
|
244
|
-
//# sourceMappingURL=chunk-
|
|
244
|
+
//# sourceMappingURL=chunk-LFFXUHX3.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
ok
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
11
11
|
|
|
12
12
|
// src/adapters/sdk/gateway-env.ts
|
|
13
13
|
function readTrimmed(env, name) {
|
|
@@ -315,4 +315,4 @@ export {
|
|
|
315
315
|
validateCustomApiBaseUrl,
|
|
316
316
|
assertCustomApiHostResolvesPublic
|
|
317
317
|
};
|
|
318
|
-
//# sourceMappingURL=chunk-
|
|
318
|
+
//# sourceMappingURL=chunk-LZNYQYDU.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isGatewayModelAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BJXSG5YL.js";
|
|
4
4
|
import {
|
|
5
5
|
allOf
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -25,20 +25,20 @@ import {
|
|
|
25
25
|
toolSuccessStructured,
|
|
26
26
|
withProgressHeartbeat,
|
|
27
27
|
wrapToolWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-KSCQRZJZ.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-QX42N7TE.js";
|
|
32
32
|
import {
|
|
33
33
|
UNRESOLVED_MODEL_ID,
|
|
34
34
|
assessPanelIndependence,
|
|
35
35
|
countDistinctModels,
|
|
36
36
|
createEvent,
|
|
37
37
|
getGlobalRegistry
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-TLFZPJOY.js";
|
|
39
39
|
import {
|
|
40
40
|
getToolMemory
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-VM4HZT3B.js";
|
|
42
42
|
import {
|
|
43
43
|
authRemediation,
|
|
44
44
|
classifyExtractedError,
|
|
@@ -48,7 +48,7 @@ import {
|
|
|
48
48
|
isTimeoutText,
|
|
49
49
|
sleep,
|
|
50
50
|
withTimeout
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-JYZNPK62.js";
|
|
52
52
|
import {
|
|
53
53
|
sanitizeErrorDetails,
|
|
54
54
|
sanitizeOutput
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
resolveClassGuardMs,
|
|
89
89
|
resolveVoteTimeout,
|
|
90
90
|
stepBus
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-NZN3SWSZ.js";
|
|
92
92
|
import {
|
|
93
93
|
ensureLearningDir,
|
|
94
94
|
getOutcomesFile
|
|
@@ -6435,7 +6435,7 @@ function logPartialProposal(bounded, log) {
|
|
|
6435
6435
|
}
|
|
6436
6436
|
async function runContrarianCheck(proposal, log, opts) {
|
|
6437
6437
|
try {
|
|
6438
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
6438
|
+
const { executeExpert } = await import("./expert-bridge-ZG2IA3RJ.js");
|
|
6439
6439
|
const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
|
|
6440
6440
|
logPartialProposal(bounded, log);
|
|
6441
6441
|
const result = await executeExpert("architecture", buildContrarianPrompt(bounded, opts), {
|
|
@@ -9703,4 +9703,4 @@ export {
|
|
|
9703
9703
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
9704
9704
|
registerConsensusVoteTool
|
|
9705
9705
|
};
|
|
9706
|
-
//# sourceMappingURL=chunk-
|
|
9706
|
+
//# sourceMappingURL=chunk-MS5VFQE3.js.map
|