nexus-agents 8.91.0 → 8.92.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/{ast-rule-runner-SD665GB7.js → ast-rule-runner-4C53SAFE.js} +3 -3
- package/dist/{child-mcp-config-BG3QNALD.js → child-mcp-config-M33VP5E4.js} +2 -2
- package/dist/{chunk-2N7XWZPW.js → chunk-2VJXNF7P.js} +4 -4
- package/dist/{chunk-NFP7WQ22.js → chunk-32H3AN4U.js} +2 -2
- package/dist/{chunk-SJH5U5XT.js → chunk-3XXLP4MD.js} +10 -10
- package/dist/{chunk-S6FK47MZ.js → chunk-4WRESMG5.js} +2 -2
- package/dist/{chunk-F2H3MCEV.js → chunk-6UYSSAYK.js} +31 -11
- package/dist/chunk-6UYSSAYK.js.map +1 -0
- package/dist/{chunk-FPX55ON5.js → chunk-722JYWLR.js} +7 -7
- package/dist/{chunk-HBXAYO3C.js → chunk-7XZCMXY2.js} +5 -5
- package/dist/{chunk-VIDSDHSQ.js → chunk-AFCVXCVA.js} +8 -8
- package/dist/{chunk-XT7VZSS3.js → chunk-B2BNVORE.js} +3 -3
- package/dist/{chunk-VI5TF3KF.js → chunk-B5EXMYQF.js} +2 -2
- package/dist/{chunk-WDGEJIWW.js → chunk-BCX2OQYG.js} +2 -2
- package/dist/{chunk-HPE3UQLT.js → chunk-D7VV4RUT.js} +3 -3
- package/dist/{chunk-C6Q2NUIH.js → chunk-ENSLICSP.js} +4 -4
- package/dist/{chunk-4KMNLWAC.js → chunk-EUJNPS7Q.js} +4 -4
- package/dist/{chunk-HD3FTCV4.js → chunk-G7YTODHX.js} +5 -5
- package/dist/{chunk-UWYNIMDF.js → chunk-JDBHPE5B.js} +36 -36
- package/dist/{chunk-ERTDJU7Y.js → chunk-KRKXSIWG.js} +9 -9
- package/dist/{chunk-JWHIFEI3.js → chunk-MHDZ5SZW.js} +2 -2
- package/dist/{chunk-HUCILYVO.js → chunk-MJ6PXCIF.js} +2 -2
- package/dist/{chunk-QCWY3GTZ.js → chunk-MSV54XOF.js} +2 -2
- package/dist/{chunk-IDASIJE6.js → chunk-NKEORCRS.js} +2 -2
- package/dist/{chunk-NMZ5ZKEO.js → chunk-NYGGGOZG.js} +2 -2
- package/dist/{chunk-ZVHJMROO.js → chunk-OASLCFC3.js} +4 -4
- package/dist/{chunk-RMDG3OFS.js → chunk-OJH3M4ZD.js} +2 -2
- package/dist/{chunk-NMJDOOYZ.js → chunk-P6RIKOUU.js} +3 -3
- package/dist/{chunk-VLBXRQIA.js → chunk-PFNEN3BF.js} +2 -2
- package/dist/{chunk-OJM75DDY.js → chunk-QQN3UZN5.js} +3 -3
- package/dist/{chunk-SMKBETIX.js → chunk-V7PZ5CUM.js} +2 -2
- package/dist/{chunk-C3HMZJ3R.js → chunk-WKF2TTDO.js} +2 -2
- package/dist/{chunk-5GI6Z5VE.js → chunk-XLAFFWZZ.js} +13 -11
- package/dist/chunk-XLAFFWZZ.js.map +1 -0
- package/dist/{chunk-KCWEMSU2.js → chunk-XY2P2U3S.js} +2 -2
- package/dist/{chunk-O3MSZUQM.js → chunk-YDCBXMPL.js} +2 -2
- package/dist/{chunk-ZP7LYABJ.js → chunk-YMXL2MAU.js} +2 -2
- package/dist/{cli-circuit-breaker-GOH6U32K.js → cli-circuit-breaker-FIACDNLM.js} +3 -3
- package/dist/cli.js +133 -71
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-RMEHBA3J.js → composite-router-FPJAPMO6.js} +2 -2
- package/dist/{consensus-vote-BO7S3XSQ.js → consensus-vote-O754EGXW.js} +16 -16
- package/dist/{context-retriever-TWAN22PW.js → context-retriever-MQDYHPWI.js} +8 -8
- package/dist/{doctor-deep-HRZ77NYS.js → doctor-deep-VAZCFLGR.js} +3 -3
- package/dist/{doctor-live-VGOABDSJ.js → doctor-live-YQIE5AFT.js} +10 -10
- package/dist/{expert-bridge-PFR7ZNWK.js → expert-bridge-7AW6JHQX.js} +4 -4
- package/dist/{factory-DJPYG3WR.js → factory-7DKZ7WYQ.js} +9 -9
- package/dist/{factory-JCVKAI7P.js → factory-G4D4WVBT.js} +5 -5
- package/dist/{improvement-review-FXXRLLGX.js → improvement-review-ZUU7UWOC.js} +5 -5
- package/dist/index.d.ts +4 -2
- package/dist/index.js +30 -30
- package/dist/{init-opencode-KTIHOYIU.js → init-opencode-DLPYYCWE.js} +5 -5
- package/dist/issue-triage-FNMEK4WX.js +16 -0
- package/dist/{pr-reviewer-helpers-V67TZHNM.js → pr-reviewer-helpers-NDHIM23V.js} +4 -4
- package/dist/{registry-command-43IZQOAP.js → registry-command-GRNFD47H.js} +2 -2
- package/dist/{repo-security-plan-OXMSNBOS.js → repo-security-plan-27WT2PKO.js} +3 -3
- package/dist/{research-helpers-synthesize-IBBRMZEY.js → research-helpers-synthesize-PX5J5FKH.js} +4 -4
- package/dist/{routing-memory-S3H3D6Z2.js → routing-memory-LYGJBTAW.js} +2 -2
- package/dist/{session-memory-UO42CU2H.js → session-memory-UVALUNCZ.js} +3 -3
- package/dist/{setup-config-RGTKEVTD.js → setup-config-7R2V4CMH.js} +3 -3
- package/dist/{setup-custom-api-PQ3PR2RR.js → setup-custom-api-LEY3JGOT.js} +4 -4
- package/dist/setup-data-dir-3VEN2JCX.js +32 -0
- package/dist/{tool-memory-ZMLCOQH6.js → tool-memory-DPW6A645.js} +5 -5
- package/dist/{unified-registry-HWBSGSOM.js → unified-registry-A2YDBW3A.js} +10 -10
- package/dist/{weather-report-MZCA7Y6K.js → weather-report-OZRMKV26.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-5GI6Z5VE.js.map +0 -1
- package/dist/chunk-F2H3MCEV.js.map +0 -1
- package/dist/issue-triage-OCTW33O3.js +0 -16
- package/dist/setup-data-dir-BGG6ETH6.js +0 -32
- /package/dist/{ast-rule-runner-SD665GB7.js.map → ast-rule-runner-4C53SAFE.js.map} +0 -0
- /package/dist/{child-mcp-config-BG3QNALD.js.map → child-mcp-config-M33VP5E4.js.map} +0 -0
- /package/dist/{chunk-2N7XWZPW.js.map → chunk-2VJXNF7P.js.map} +0 -0
- /package/dist/{chunk-NFP7WQ22.js.map → chunk-32H3AN4U.js.map} +0 -0
- /package/dist/{chunk-SJH5U5XT.js.map → chunk-3XXLP4MD.js.map} +0 -0
- /package/dist/{chunk-S6FK47MZ.js.map → chunk-4WRESMG5.js.map} +0 -0
- /package/dist/{chunk-FPX55ON5.js.map → chunk-722JYWLR.js.map} +0 -0
- /package/dist/{chunk-HBXAYO3C.js.map → chunk-7XZCMXY2.js.map} +0 -0
- /package/dist/{chunk-VIDSDHSQ.js.map → chunk-AFCVXCVA.js.map} +0 -0
- /package/dist/{chunk-XT7VZSS3.js.map → chunk-B2BNVORE.js.map} +0 -0
- /package/dist/{chunk-VI5TF3KF.js.map → chunk-B5EXMYQF.js.map} +0 -0
- /package/dist/{chunk-WDGEJIWW.js.map → chunk-BCX2OQYG.js.map} +0 -0
- /package/dist/{chunk-HPE3UQLT.js.map → chunk-D7VV4RUT.js.map} +0 -0
- /package/dist/{chunk-C6Q2NUIH.js.map → chunk-ENSLICSP.js.map} +0 -0
- /package/dist/{chunk-4KMNLWAC.js.map → chunk-EUJNPS7Q.js.map} +0 -0
- /package/dist/{chunk-HD3FTCV4.js.map → chunk-G7YTODHX.js.map} +0 -0
- /package/dist/{chunk-UWYNIMDF.js.map → chunk-JDBHPE5B.js.map} +0 -0
- /package/dist/{chunk-ERTDJU7Y.js.map → chunk-KRKXSIWG.js.map} +0 -0
- /package/dist/{chunk-JWHIFEI3.js.map → chunk-MHDZ5SZW.js.map} +0 -0
- /package/dist/{chunk-HUCILYVO.js.map → chunk-MJ6PXCIF.js.map} +0 -0
- /package/dist/{chunk-QCWY3GTZ.js.map → chunk-MSV54XOF.js.map} +0 -0
- /package/dist/{chunk-IDASIJE6.js.map → chunk-NKEORCRS.js.map} +0 -0
- /package/dist/{chunk-NMZ5ZKEO.js.map → chunk-NYGGGOZG.js.map} +0 -0
- /package/dist/{chunk-ZVHJMROO.js.map → chunk-OASLCFC3.js.map} +0 -0
- /package/dist/{chunk-RMDG3OFS.js.map → chunk-OJH3M4ZD.js.map} +0 -0
- /package/dist/{chunk-NMJDOOYZ.js.map → chunk-P6RIKOUU.js.map} +0 -0
- /package/dist/{chunk-VLBXRQIA.js.map → chunk-PFNEN3BF.js.map} +0 -0
- /package/dist/{chunk-OJM75DDY.js.map → chunk-QQN3UZN5.js.map} +0 -0
- /package/dist/{chunk-SMKBETIX.js.map → chunk-V7PZ5CUM.js.map} +0 -0
- /package/dist/{chunk-C3HMZJ3R.js.map → chunk-WKF2TTDO.js.map} +0 -0
- /package/dist/{chunk-KCWEMSU2.js.map → chunk-XY2P2U3S.js.map} +0 -0
- /package/dist/{chunk-O3MSZUQM.js.map → chunk-YDCBXMPL.js.map} +0 -0
- /package/dist/{chunk-ZP7LYABJ.js.map → chunk-YMXL2MAU.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-GOH6U32K.js.map → cli-circuit-breaker-FIACDNLM.js.map} +0 -0
- /package/dist/{composite-router-RMEHBA3J.js.map → composite-router-FPJAPMO6.js.map} +0 -0
- /package/dist/{consensus-vote-BO7S3XSQ.js.map → consensus-vote-O754EGXW.js.map} +0 -0
- /package/dist/{context-retriever-TWAN22PW.js.map → context-retriever-MQDYHPWI.js.map} +0 -0
- /package/dist/{doctor-deep-HRZ77NYS.js.map → doctor-deep-VAZCFLGR.js.map} +0 -0
- /package/dist/{doctor-live-VGOABDSJ.js.map → doctor-live-YQIE5AFT.js.map} +0 -0
- /package/dist/{expert-bridge-PFR7ZNWK.js.map → expert-bridge-7AW6JHQX.js.map} +0 -0
- /package/dist/{factory-DJPYG3WR.js.map → factory-7DKZ7WYQ.js.map} +0 -0
- /package/dist/{factory-JCVKAI7P.js.map → factory-G4D4WVBT.js.map} +0 -0
- /package/dist/{improvement-review-FXXRLLGX.js.map → improvement-review-ZUU7UWOC.js.map} +0 -0
- /package/dist/{init-opencode-KTIHOYIU.js.map → init-opencode-DLPYYCWE.js.map} +0 -0
- /package/dist/{issue-triage-OCTW33O3.js.map → issue-triage-FNMEK4WX.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-V67TZHNM.js.map → pr-reviewer-helpers-NDHIM23V.js.map} +0 -0
- /package/dist/{registry-command-43IZQOAP.js.map → registry-command-GRNFD47H.js.map} +0 -0
- /package/dist/{repo-security-plan-OXMSNBOS.js.map → repo-security-plan-27WT2PKO.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-IBBRMZEY.js.map → research-helpers-synthesize-PX5J5FKH.js.map} +0 -0
- /package/dist/{routing-memory-S3H3D6Z2.js.map → routing-memory-LYGJBTAW.js.map} +0 -0
- /package/dist/{session-memory-UO42CU2H.js.map → session-memory-UVALUNCZ.js.map} +0 -0
- /package/dist/{setup-config-RGTKEVTD.js.map → setup-config-7R2V4CMH.js.map} +0 -0
- /package/dist/{setup-custom-api-PQ3PR2RR.js.map → setup-custom-api-LEY3JGOT.js.map} +0 -0
- /package/dist/{setup-data-dir-BGG6ETH6.js.map → setup-data-dir-3VEN2JCX.js.map} +0 -0
- /package/dist/{tool-memory-ZMLCOQH6.js.map → tool-memory-DPW6A645.js.map} +0 -0
- /package/dist/{unified-registry-HWBSGSOM.js.map → unified-registry-A2YDBW3A.js.map} +0 -0
- /package/dist/{weather-report-MZCA7Y6K.js.map → weather-report-OZRMKV26.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-YDCBXMPL.js";
|
|
13
|
+
import "./chunk-6UYSSAYK.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-4C53SAFE.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-6UYSSAYK.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-M33VP5E4.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-MHDZ5SZW.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MJ6PXCIF.js";
|
|
8
8
|
import {
|
|
9
9
|
err,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6UYSSAYK.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-2VJXNF7P.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6UYSSAYK.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-32H3AN4U.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SERVES_PROBE_PROMPT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BCX2OQYG.js";
|
|
4
4
|
import {
|
|
5
5
|
readOpenAICompatEndpoint,
|
|
6
6
|
readOpenAICompatEnv
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EUJNPS7Q.js";
|
|
8
8
|
import {
|
|
9
9
|
allOf
|
|
10
10
|
} from "./chunk-EZNIYU5T.js";
|
|
@@ -12,10 +12,10 @@ import {
|
|
|
12
12
|
NODE_ENGINE_RANGE,
|
|
13
13
|
VERSION,
|
|
14
14
|
isNodeVersionSupported
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-WKF2TTDO.js";
|
|
16
16
|
import {
|
|
17
17
|
claimGlobalRegistry
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-ENSLICSP.js";
|
|
19
19
|
import {
|
|
20
20
|
capitalize
|
|
21
21
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -26,10 +26,10 @@ import {
|
|
|
26
26
|
codexMcpServerAvailable,
|
|
27
27
|
createAllAdapters,
|
|
28
28
|
probeCli
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-AFCVXCVA.js";
|
|
30
30
|
import {
|
|
31
31
|
resolveGatewayEnv
|
|
32
|
-
} from "./chunk-
|
|
32
|
+
} from "./chunk-XY2P2U3S.js";
|
|
33
33
|
import {
|
|
34
34
|
getNexusTmpDir
|
|
35
35
|
} from "./chunk-OITVVSWO.js";
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
resolveGatewayCostDeclaration,
|
|
60
60
|
symbols,
|
|
61
61
|
writeLine
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6UYSSAYK.js";
|
|
63
63
|
import {
|
|
64
64
|
getLearningDir,
|
|
65
65
|
getOutcomesFile,
|
|
@@ -1401,13 +1401,13 @@ async function runDoctorFix(result) {
|
|
|
1401
1401
|
writeLine2("\u2500".repeat(40));
|
|
1402
1402
|
let fixCount = 0;
|
|
1403
1403
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1404
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1404
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-3VEN2JCX.js");
|
|
1405
1405
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1406
1406
|
writeLine2(outcome.line);
|
|
1407
1407
|
if (outcome.counted) fixCount++;
|
|
1408
1408
|
}
|
|
1409
1409
|
if (!result.configFile.found) {
|
|
1410
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
1410
|
+
const { runConfigInitSync } = await import("./setup-config-7R2V4CMH.js");
|
|
1411
1411
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
1412
1412
|
if (configResult.success && configResult.created) {
|
|
1413
1413
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -1503,4 +1503,4 @@ export {
|
|
|
1503
1503
|
startStdioServer,
|
|
1504
1504
|
closeServer
|
|
1505
1505
|
};
|
|
1506
|
-
//# sourceMappingURL=chunk-
|
|
1506
|
+
//# sourceMappingURL=chunk-3XXLP4MD.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
err,
|
|
6
6
|
getErrorMessage,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-6UYSSAYK.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-4WRESMG5.js.map
|
|
@@ -2696,7 +2696,7 @@ function setDefaultRegistry(registry) {
|
|
|
2696
2696
|
}
|
|
2697
2697
|
async function reloadDefaultRegistry() {
|
|
2698
2698
|
globalRegistry = buildDefaultRegistry();
|
|
2699
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2699
|
+
const { resetGlobalRegistry } = await import("./unified-registry-A2YDBW3A.js");
|
|
2700
2700
|
resetGlobalRegistry();
|
|
2701
2701
|
return globalRegistry;
|
|
2702
2702
|
}
|
|
@@ -13949,9 +13949,22 @@ function rankStrategiesByManifest(signals, manifests = STRATEGY_MANIFEST_REGISTR
|
|
|
13949
13949
|
return matchingSelections(signals, manifests).map((s) => s.strategy);
|
|
13950
13950
|
}
|
|
13951
13951
|
|
|
13952
|
+
// src/mcp/tools/weather-report-arms.ts
|
|
13953
|
+
var ROUTED_ARMS = [...CLI_NAMES, ...ApiArmIdSchema.options];
|
|
13954
|
+
var SLOT_ARMS = new Map(
|
|
13955
|
+
CLI_NAMES.map((slot) => [
|
|
13956
|
+
slot,
|
|
13957
|
+
new Set(ROUTED_ARMS.filter((arm) => routingArmDisplaySlot(arm) === slot))
|
|
13958
|
+
])
|
|
13959
|
+
);
|
|
13960
|
+
function rowsOfSlot(outcomes, slot) {
|
|
13961
|
+
const arms = SLOT_ARMS.get(slot);
|
|
13962
|
+
if (arms === void 0) return [];
|
|
13963
|
+
return outcomes.filter((o) => arms.has(o.cli));
|
|
13964
|
+
}
|
|
13965
|
+
|
|
13952
13966
|
// src/mcp/tools/weather-report.ts
|
|
13953
13967
|
var CLI_NAMES3 = ["claude", "gemini", "codex", "opencode"];
|
|
13954
|
-
var ROUTED_ARMS = [...CLI_NAMES3, ...ApiArmIdSchema.options];
|
|
13955
13968
|
function collectOptionalSections(sections) {
|
|
13956
13969
|
const result = {};
|
|
13957
13970
|
for (const [key, value] of Object.entries(sections)) {
|
|
@@ -14074,10 +14087,13 @@ function queryWithLookback(store, cli, category, cfg) {
|
|
|
14074
14087
|
const exclude = ["e2e-eval"];
|
|
14075
14088
|
if (cfg.outcomeLookbackMs > 0) {
|
|
14076
14089
|
const since = new Date(Date.now() - cfg.outcomeLookbackMs).toISOString();
|
|
14077
|
-
const recent =
|
|
14090
|
+
const recent = rowsOfSlot(
|
|
14091
|
+
store.query({ category, since, excludeQualitySignals: exclude }),
|
|
14092
|
+
cli
|
|
14093
|
+
);
|
|
14078
14094
|
if (recent.length >= cfg.coldStartThreshold) return recent;
|
|
14079
14095
|
}
|
|
14080
|
-
return store.query({
|
|
14096
|
+
return rowsOfSlot(store.query({ category, excludeQualitySignals: exclude }), cli);
|
|
14081
14097
|
}
|
|
14082
14098
|
function getAdaptiveBonus(cli, category, config) {
|
|
14083
14099
|
const cfg = { ...createDefaultWeatherConfig(), ...config };
|
|
@@ -14123,10 +14139,13 @@ function computeAdapterAttemptStats(outcomes) {
|
|
|
14123
14139
|
};
|
|
14124
14140
|
}
|
|
14125
14141
|
function buildCliWeather(summary, input) {
|
|
14126
|
-
const
|
|
14142
|
+
const store = getOutcomeStore();
|
|
14143
|
+
const observedApiArms = ApiArmIdSchema.options.filter(
|
|
14144
|
+
(arm) => store.query({ cli: arm, limit: 1 }).length > 0
|
|
14145
|
+
);
|
|
14146
|
+
const clis = input.cli !== void 0 ? [input.cli] : [...CLI_NAMES3, ...observedApiArms];
|
|
14127
14147
|
return clis.map((cli) => {
|
|
14128
14148
|
const stats = summary.byCli.get(cli);
|
|
14129
|
-
const store = getOutcomeStore();
|
|
14130
14149
|
const cliOutcomes = store.query({ cli });
|
|
14131
14150
|
const byCategory = /* @__PURE__ */ new Map();
|
|
14132
14151
|
for (const cat of TASK_CATEGORIES) {
|
|
@@ -14187,7 +14206,7 @@ function clamp2(value, min, max) {
|
|
|
14187
14206
|
function buildLearningInsights() {
|
|
14188
14207
|
const store = getOutcomeStore();
|
|
14189
14208
|
const insights = [];
|
|
14190
|
-
for (const cli of
|
|
14209
|
+
for (const cli of ROUTED_ARMS) {
|
|
14191
14210
|
for (const category of TASK_CATEGORIES) {
|
|
14192
14211
|
const thresholds = computeAdaptiveThresholds(store, cli, category);
|
|
14193
14212
|
if (thresholds.sampleCount > 0) {
|
|
@@ -14211,8 +14230,9 @@ function buildRecommendedMappings() {
|
|
|
14211
14230
|
let bestCli = "";
|
|
14212
14231
|
let bestRate = -1;
|
|
14213
14232
|
let bestCount = 0;
|
|
14233
|
+
const categoryRows = store.query({ category });
|
|
14214
14234
|
for (const cli of CLI_NAMES3) {
|
|
14215
|
-
const outcomes =
|
|
14235
|
+
const outcomes = rowsOfSlot(categoryRows, cli);
|
|
14216
14236
|
if (outcomes.length === 0) continue;
|
|
14217
14237
|
const rate = outcomes.filter((o) => o.success).length / outcomes.length;
|
|
14218
14238
|
if (rate > bestRate || rate === bestRate && outcomes.length > bestCount) {
|
|
@@ -14264,7 +14284,7 @@ function computeAdaptationSpeed() {
|
|
|
14264
14284
|
for (const category of TASK_CATEGORIES) {
|
|
14265
14285
|
let bestSamples = Infinity;
|
|
14266
14286
|
let found = false;
|
|
14267
|
-
for (const cli of
|
|
14287
|
+
for (const cli of ROUTED_ARMS) {
|
|
14268
14288
|
const thresholds = computeAdaptiveThresholds(store, cli, category);
|
|
14269
14289
|
if (thresholds.confidence >= ADAPTATION_CONFIDENCE_THRESHOLD && thresholds.sampleCount > 0) {
|
|
14270
14290
|
if (thresholds.sampleCount < bestSamples) {
|
|
@@ -16121,7 +16141,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
16121
16141
|
*/
|
|
16122
16142
|
async consultUnifiedContext(task) {
|
|
16123
16143
|
try {
|
|
16124
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
16144
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-MQDYHPWI.js");
|
|
16125
16145
|
const ctx = await getContextForTask({
|
|
16126
16146
|
task: task.content,
|
|
16127
16147
|
category: inferTaskCategory(task.content),
|
|
@@ -17782,4 +17802,4 @@ export {
|
|
|
17782
17802
|
AgentCapability,
|
|
17783
17803
|
OrchestratorError
|
|
17784
17804
|
};
|
|
17785
|
-
//# sourceMappingURL=chunk-
|
|
17805
|
+
//# sourceMappingURL=chunk-6UYSSAYK.js.map
|