nexus-agents 8.102.0 → 8.102.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ast-rule-runner-AWL7WA6O.js → ast-rule-runner-WWUOS722.js} +3 -3
- package/dist/{child-mcp-config-JQLYDUUY.js → child-mcp-config-U3I7K7BT.js} +2 -2
- package/dist/{chunk-FXQJLU3O.js → chunk-2I2I3DRA.js} +5 -5
- package/dist/{chunk-3JPTRESH.js → chunk-3LKDZORV.js} +13 -13
- package/dist/{chunk-TFZVQBPC.js → chunk-5ML3THNH.js} +7 -7
- package/dist/{chunk-RWH4GY4O.js → chunk-6NYFFN42.js} +4 -4
- package/dist/{chunk-S4FLNZHK.js → chunk-7YPSWDOV.js} +2 -2
- package/dist/{chunk-H3UYZK5S.js → chunk-AWUTGAQN.js} +2 -2
- package/dist/{chunk-45JNFWOK.js → chunk-BY5SXMN5.js} +2 -2
- package/dist/{chunk-HRWT6UU6.js → chunk-BYRIEU5S.js} +2 -2
- package/dist/{chunk-DXWTSSZ5.js → chunk-C4T7UI2R.js} +22 -9
- package/dist/chunk-C4T7UI2R.js.map +1 -0
- package/dist/{chunk-C5RANIUS.js → chunk-CDCEDAEO.js} +2 -2
- package/dist/{chunk-7IP3RMJY.js → chunk-D5EDP3EQ.js} +2 -2
- package/dist/{chunk-I2CI4EFZ.js → chunk-GVSSUYBR.js} +5 -5
- package/dist/{chunk-FHJ6MTK3.js → chunk-HUMPSYCP.js} +10 -10
- package/dist/{chunk-WPGNM4VM.js → chunk-HVJIQLBC.js} +2 -2
- package/dist/{chunk-BYVA3QIU.js → chunk-I4YI4J3V.js} +46 -39
- package/dist/chunk-I4YI4J3V.js.map +1 -0
- package/dist/{chunk-6I2O2TTX.js → chunk-JQAXGIDL.js} +2 -2
- package/dist/{chunk-MQ7RCD65.js → chunk-KMY3NA44.js} +2 -2
- package/dist/{chunk-2JLWILT3.js → chunk-LKMB7ZPK.js} +3 -3
- package/dist/{chunk-XEXEZF2L.js → chunk-MYLHKD32.js} +2 -2
- package/dist/{chunk-N7SQKRKG.js → chunk-N6TZK7LR.js} +3 -3
- package/dist/{chunk-EQHSJEX3.js → chunk-NACTU45C.js} +2 -2
- package/dist/{chunk-JAYHSYQ5.js → chunk-NCQGSHEH.js} +2 -2
- package/dist/{chunk-FEMR5VNG.js → chunk-OCXGPXG2.js} +2 -2
- package/dist/{chunk-G3PASAET.js → chunk-ODLIA33L.js} +2 -2
- package/dist/{chunk-YD5RDIKE.js → chunk-PAICM2DX.js} +4 -4
- package/dist/{chunk-EZSDF2RN.js → chunk-QHMUW6G7.js} +4 -4
- package/dist/{chunk-5ZQYRVZ6.js → chunk-RGW4TLFO.js} +3 -3
- package/dist/{chunk-FLSZ7MC4.js → chunk-UA3TQ773.js} +2 -2
- package/dist/{chunk-H7Z53A5H.js → chunk-V3YMUA74.js} +4 -4
- package/dist/{chunk-22ORYF2M.js → chunk-XJTA5BHT.js} +3 -3
- package/dist/{chunk-TDJ2FZF3.js → chunk-XROOAW6C.js} +2 -2
- package/dist/{chunk-NEZQ3YTI.js → chunk-YKC7ICXJ.js} +12 -2
- package/dist/chunk-YKC7ICXJ.js.map +1 -0
- package/dist/{chunk-NPLCVC3G.js → chunk-ZR5JWLC5.js} +3 -3
- package/dist/{chunk-C2MLEXZC.js → chunk-ZYMOKZ5S.js} +2 -2
- package/dist/{cli-circuit-breaker-TEP2DWWH.js → cli-circuit-breaker-V2BTK5ZW.js} +3 -3
- package/dist/cli.js +48 -44
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-GLNDX2GV.js → composite-router-RX3JZYIE.js} +2 -2
- package/dist/{consensus-vote-WIAUGC5V.js → consensus-vote-L6D5Q5II.js} +16 -16
- package/dist/{context-retriever-AUID4ELJ.js → context-retriever-IK253TWS.js} +8 -8
- package/dist/{doctor-deep-4K23X2QK.js → doctor-deep-5K4BPYSH.js} +3 -3
- package/dist/{doctor-gateway-report-Q5RXOEMR.js → doctor-gateway-report-6L7K7KQR.js} +3 -3
- package/dist/{doctor-live-CU6O4MNI.js → doctor-live-QW4XTIZW.js} +10 -10
- package/dist/{expert-bridge-YWCGQKN2.js → expert-bridge-IWTCC652.js} +4 -4
- package/dist/{factory-NOC7DSJG.js → factory-IQRYHF2K.js} +5 -5
- package/dist/{factory-J42N5QU6.js → factory-ZPHF32DK.js} +9 -9
- package/dist/{improvement-review-53QJQMBZ.js → improvement-review-ABVCXCST.js} +5 -5
- package/dist/index.d.ts +2 -0
- package/dist/index.js +31 -31
- package/dist/{init-opencode-KHWB4OQY.js → init-opencode-6VPDLKMF.js} +5 -5
- package/dist/issue-triage-TD4LKVPI.js +16 -0
- package/dist/{openai-compat-adapter-5BCCGH32.js → openai-compat-adapter-5WAMUIQA.js} +5 -5
- package/dist/{pr-reviewer-helpers-EHAG74L5.js → pr-reviewer-helpers-SNUDE5TO.js} +4 -4
- package/dist/{registry-command-CS42ODV3.js → registry-command-APTVRLDC.js} +2 -2
- package/dist/{repo-security-plan-ENHKDRM3.js → repo-security-plan-4JQGVAZZ.js} +3 -3
- package/dist/{research-helpers-synthesize-XYMCJHFU.js → research-helpers-synthesize-65NCBD5R.js} +4 -4
- package/dist/{routing-memory-KLIKEK6N.js → routing-memory-FH63BFPW.js} +2 -2
- package/dist/{session-memory-LHZYRRFM.js → session-memory-VGDP7YE3.js} +3 -3
- package/dist/{setup-config-YZ6E7RSF.js → setup-config-EZ5SSK6U.js} +3 -3
- package/dist/{setup-custom-api-AITNIHMR.js → setup-custom-api-3HDBQLOX.js} +4 -4
- package/dist/setup-data-dir-4PF7KCEJ.js +33 -0
- package/dist/{tool-memory-YEHRAJXA.js → tool-memory-P3ANNLKT.js} +5 -5
- package/dist/{unified-registry-7LJW5VLX.js → unified-registry-UBGBRRBV.js} +10 -10
- package/dist/{weather-report-P3NJN6LU.js → weather-report-PBMB3PYV.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-BYVA3QIU.js.map +0 -1
- package/dist/chunk-DXWTSSZ5.js.map +0 -1
- package/dist/chunk-NEZQ3YTI.js.map +0 -1
- package/dist/issue-triage-E55KBDOD.js +0 -16
- package/dist/setup-data-dir-7Y7A3RUJ.js +0 -33
- /package/dist/{ast-rule-runner-AWL7WA6O.js.map → ast-rule-runner-WWUOS722.js.map} +0 -0
- /package/dist/{child-mcp-config-JQLYDUUY.js.map → child-mcp-config-U3I7K7BT.js.map} +0 -0
- /package/dist/{chunk-FXQJLU3O.js.map → chunk-2I2I3DRA.js.map} +0 -0
- /package/dist/{chunk-3JPTRESH.js.map → chunk-3LKDZORV.js.map} +0 -0
- /package/dist/{chunk-TFZVQBPC.js.map → chunk-5ML3THNH.js.map} +0 -0
- /package/dist/{chunk-RWH4GY4O.js.map → chunk-6NYFFN42.js.map} +0 -0
- /package/dist/{chunk-S4FLNZHK.js.map → chunk-7YPSWDOV.js.map} +0 -0
- /package/dist/{chunk-H3UYZK5S.js.map → chunk-AWUTGAQN.js.map} +0 -0
- /package/dist/{chunk-45JNFWOK.js.map → chunk-BY5SXMN5.js.map} +0 -0
- /package/dist/{chunk-HRWT6UU6.js.map → chunk-BYRIEU5S.js.map} +0 -0
- /package/dist/{chunk-C5RANIUS.js.map → chunk-CDCEDAEO.js.map} +0 -0
- /package/dist/{chunk-7IP3RMJY.js.map → chunk-D5EDP3EQ.js.map} +0 -0
- /package/dist/{chunk-I2CI4EFZ.js.map → chunk-GVSSUYBR.js.map} +0 -0
- /package/dist/{chunk-FHJ6MTK3.js.map → chunk-HUMPSYCP.js.map} +0 -0
- /package/dist/{chunk-WPGNM4VM.js.map → chunk-HVJIQLBC.js.map} +0 -0
- /package/dist/{chunk-6I2O2TTX.js.map → chunk-JQAXGIDL.js.map} +0 -0
- /package/dist/{chunk-MQ7RCD65.js.map → chunk-KMY3NA44.js.map} +0 -0
- /package/dist/{chunk-2JLWILT3.js.map → chunk-LKMB7ZPK.js.map} +0 -0
- /package/dist/{chunk-XEXEZF2L.js.map → chunk-MYLHKD32.js.map} +0 -0
- /package/dist/{chunk-N7SQKRKG.js.map → chunk-N6TZK7LR.js.map} +0 -0
- /package/dist/{chunk-EQHSJEX3.js.map → chunk-NACTU45C.js.map} +0 -0
- /package/dist/{chunk-JAYHSYQ5.js.map → chunk-NCQGSHEH.js.map} +0 -0
- /package/dist/{chunk-FEMR5VNG.js.map → chunk-OCXGPXG2.js.map} +0 -0
- /package/dist/{chunk-G3PASAET.js.map → chunk-ODLIA33L.js.map} +0 -0
- /package/dist/{chunk-YD5RDIKE.js.map → chunk-PAICM2DX.js.map} +0 -0
- /package/dist/{chunk-EZSDF2RN.js.map → chunk-QHMUW6G7.js.map} +0 -0
- /package/dist/{chunk-5ZQYRVZ6.js.map → chunk-RGW4TLFO.js.map} +0 -0
- /package/dist/{chunk-FLSZ7MC4.js.map → chunk-UA3TQ773.js.map} +0 -0
- /package/dist/{chunk-H7Z53A5H.js.map → chunk-V3YMUA74.js.map} +0 -0
- /package/dist/{chunk-22ORYF2M.js.map → chunk-XJTA5BHT.js.map} +0 -0
- /package/dist/{chunk-TDJ2FZF3.js.map → chunk-XROOAW6C.js.map} +0 -0
- /package/dist/{chunk-NPLCVC3G.js.map → chunk-ZR5JWLC5.js.map} +0 -0
- /package/dist/{chunk-C2MLEXZC.js.map → chunk-ZYMOKZ5S.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-TEP2DWWH.js.map → cli-circuit-breaker-V2BTK5ZW.js.map} +0 -0
- /package/dist/{composite-router-GLNDX2GV.js.map → composite-router-RX3JZYIE.js.map} +0 -0
- /package/dist/{consensus-vote-WIAUGC5V.js.map → consensus-vote-L6D5Q5II.js.map} +0 -0
- /package/dist/{context-retriever-AUID4ELJ.js.map → context-retriever-IK253TWS.js.map} +0 -0
- /package/dist/{doctor-deep-4K23X2QK.js.map → doctor-deep-5K4BPYSH.js.map} +0 -0
- /package/dist/{doctor-gateway-report-Q5RXOEMR.js.map → doctor-gateway-report-6L7K7KQR.js.map} +0 -0
- /package/dist/{doctor-live-CU6O4MNI.js.map → doctor-live-QW4XTIZW.js.map} +0 -0
- /package/dist/{expert-bridge-YWCGQKN2.js.map → expert-bridge-IWTCC652.js.map} +0 -0
- /package/dist/{factory-J42N5QU6.js.map → factory-IQRYHF2K.js.map} +0 -0
- /package/dist/{factory-NOC7DSJG.js.map → factory-ZPHF32DK.js.map} +0 -0
- /package/dist/{improvement-review-53QJQMBZ.js.map → improvement-review-ABVCXCST.js.map} +0 -0
- /package/dist/{init-opencode-KHWB4OQY.js.map → init-opencode-6VPDLKMF.js.map} +0 -0
- /package/dist/{issue-triage-E55KBDOD.js.map → issue-triage-TD4LKVPI.js.map} +0 -0
- /package/dist/{openai-compat-adapter-5BCCGH32.js.map → openai-compat-adapter-5WAMUIQA.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-EHAG74L5.js.map → pr-reviewer-helpers-SNUDE5TO.js.map} +0 -0
- /package/dist/{registry-command-CS42ODV3.js.map → registry-command-APTVRLDC.js.map} +0 -0
- /package/dist/{repo-security-plan-ENHKDRM3.js.map → repo-security-plan-4JQGVAZZ.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-XYMCJHFU.js.map → research-helpers-synthesize-65NCBD5R.js.map} +0 -0
- /package/dist/{routing-memory-KLIKEK6N.js.map → routing-memory-FH63BFPW.js.map} +0 -0
- /package/dist/{session-memory-LHZYRRFM.js.map → session-memory-VGDP7YE3.js.map} +0 -0
- /package/dist/{setup-config-YZ6E7RSF.js.map → setup-config-EZ5SSK6U.js.map} +0 -0
- /package/dist/{setup-custom-api-AITNIHMR.js.map → setup-custom-api-3HDBQLOX.js.map} +0 -0
- /package/dist/{setup-data-dir-7Y7A3RUJ.js.map → setup-data-dir-4PF7KCEJ.js.map} +0 -0
- /package/dist/{tool-memory-YEHRAJXA.js.map → tool-memory-P3ANNLKT.js.map} +0 -0
- /package/dist/{unified-registry-7LJW5VLX.js.map → unified-registry-UBGBRRBV.js.map} +0 -0
- /package/dist/{weather-report-P3NJN6LU.js.map → weather-report-PBMB3PYV.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-XROOAW6C.js";
|
|
13
|
+
import "./chunk-ZR5JWLC5.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-WWUOS722.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-ZR5JWLC5.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-U3I7K7BT.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-W654ME6B.js";
|
|
4
4
|
import {
|
|
5
5
|
resolveToken
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-KMY3NA44.js";
|
|
7
7
|
import {
|
|
8
8
|
REGISTRY_PATH,
|
|
9
9
|
getProjectRoot,
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
loadTechniquesRegistry,
|
|
12
12
|
resolveInsideRoot,
|
|
13
13
|
savePapersRegistry
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-NACTU45C.js";
|
|
15
15
|
import {
|
|
16
16
|
getToolMemory
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-PAICM2DX.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-ZR5JWLC5.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-2I2I3DRA.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
SERVES_PROBE_PROMPT
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-BYRIEU5S.js";
|
|
4
4
|
import {
|
|
5
5
|
printVoterTransportCheck
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-ZYMOKZ5S.js";
|
|
7
7
|
import {
|
|
8
8
|
NODE_ENGINE_RANGE,
|
|
9
9
|
VERSION,
|
|
10
10
|
isNodeVersionSupported
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JQAXGIDL.js";
|
|
12
12
|
import {
|
|
13
13
|
allOf
|
|
14
14
|
} from "./chunk-EZNIYU5T.js";
|
|
@@ -18,10 +18,10 @@ import {
|
|
|
18
18
|
discoverGatewayCatalog,
|
|
19
19
|
readOpenAICompatEndpoint,
|
|
20
20
|
readOpenAICompatEnv
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-QHMUW6G7.js";
|
|
22
22
|
import {
|
|
23
23
|
claimGlobalRegistry
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-6NYFFN42.js";
|
|
25
25
|
import {
|
|
26
26
|
capitalize
|
|
27
27
|
} from "./chunk-7LP6VJRP.js";
|
|
@@ -33,13 +33,13 @@ import {
|
|
|
33
33
|
createAllAdapters,
|
|
34
34
|
isCliDisabled,
|
|
35
35
|
probeCli
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-C4T7UI2R.js";
|
|
37
37
|
import {
|
|
38
38
|
gatewayProxyUrl
|
|
39
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-D5EDP3EQ.js";
|
|
40
40
|
import {
|
|
41
41
|
resolveGatewayEnv
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-YKC7ICXJ.js";
|
|
43
43
|
import {
|
|
44
44
|
getNexusTmpDir
|
|
45
45
|
} from "./chunk-OITVVSWO.js";
|
|
@@ -65,7 +65,7 @@ import {
|
|
|
65
65
|
resolveGatewayCostDeclaration,
|
|
66
66
|
symbols,
|
|
67
67
|
writeLine
|
|
68
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
69
69
|
import {
|
|
70
70
|
getLearningDir,
|
|
71
71
|
getOutcomesFile,
|
|
@@ -1487,7 +1487,7 @@ async function doctorCommand(options = {}) {
|
|
|
1487
1487
|
const result = await runDoctor({ gatewayProbe: options.probe === true });
|
|
1488
1488
|
printDoctorResults(result);
|
|
1489
1489
|
if (options.gateway === true || options.probe === true) {
|
|
1490
|
-
const { formatGatewayReport } = await import("./doctor-gateway-report-
|
|
1490
|
+
const { formatGatewayReport } = await import("./doctor-gateway-report-6L7K7KQR.js");
|
|
1491
1491
|
for (const line of formatGatewayReport(result.gateway)) process.stdout.write(line + "\n");
|
|
1492
1492
|
}
|
|
1493
1493
|
if (options.fix === true) {
|
|
@@ -1504,13 +1504,13 @@ async function runDoctorFix(result) {
|
|
|
1504
1504
|
writeLine2("\u2500".repeat(40));
|
|
1505
1505
|
let fixCount = 0;
|
|
1506
1506
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1507
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1507
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-4PF7KCEJ.js");
|
|
1508
1508
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1509
1509
|
writeLine2(outcome.line);
|
|
1510
1510
|
if (outcome.counted) fixCount++;
|
|
1511
1511
|
}
|
|
1512
1512
|
if (!result.configFile.found) {
|
|
1513
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
1513
|
+
const { runConfigInitSync } = await import("./setup-config-EZ5SSK6U.js");
|
|
1514
1514
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
1515
1515
|
if (configResult.success && configResult.created) {
|
|
1516
1516
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -1606,4 +1606,4 @@ export {
|
|
|
1606
1606
|
startStdioServer,
|
|
1607
1607
|
closeServer
|
|
1608
1608
|
};
|
|
1609
|
-
//# sourceMappingURL=chunk-
|
|
1609
|
+
//# sourceMappingURL=chunk-3LKDZORV.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UA3TQ773.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -30,7 +30,7 @@ async function getMcpConfigPath() {
|
|
|
30
30
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
31
31
|
mcpConfigInitPromise ??= (async () => {
|
|
32
32
|
try {
|
|
33
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
33
|
+
const { generateMcpConfig } = await import("./child-mcp-config-U3I7K7BT.js");
|
|
34
34
|
const config = await generateMcpConfig();
|
|
35
35
|
cachedMcpConfigPath = config.configPath;
|
|
36
36
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -110,8 +110,8 @@ var routerInitPromise = null;
|
|
|
110
110
|
async function getRouter() {
|
|
111
111
|
if (cachedRouter !== null) return cachedRouter;
|
|
112
112
|
routerInitPromise ??= (async () => {
|
|
113
|
-
const { createAllAdapters } = await import("./factory-
|
|
114
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
113
|
+
const { createAllAdapters } = await import("./factory-ZPHF32DK.js");
|
|
114
|
+
const { createCompositeRouter } = await import("./composite-router-RX3JZYIE.js");
|
|
115
115
|
const adapters = createAllAdapters();
|
|
116
116
|
if (adapters.size === 0) {
|
|
117
117
|
routerInitPromise = null;
|
|
@@ -119,7 +119,7 @@ async function getRouter() {
|
|
|
119
119
|
}
|
|
120
120
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
121
121
|
try {
|
|
122
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
122
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-V2BTK5ZW.js");
|
|
123
123
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
124
124
|
} catch (error) {
|
|
125
125
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -252,4 +252,4 @@ export {
|
|
|
252
252
|
tokenSplitFromUsage,
|
|
253
253
|
executeExpert
|
|
254
254
|
};
|
|
255
|
-
//# sourceMappingURL=chunk-
|
|
255
|
+
//# sourceMappingURL=chunk-5ML3THNH.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-C4T7UI2R.js";
|
|
4
4
|
import {
|
|
5
5
|
getDefaultCliCircuitBreakerRegistry,
|
|
6
6
|
mapModelErrorToCategory
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-AWUTGAQN.js";
|
|
8
8
|
import {
|
|
9
9
|
CircularBuffer,
|
|
10
10
|
ConfigError,
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
resolveModelIdentitySync,
|
|
31
31
|
toRateLimitError,
|
|
32
32
|
warnIfGatewayCostUndeclared
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
34
34
|
|
|
35
35
|
// src/config/model-equivalence.ts
|
|
36
36
|
var VARIANT_QUIRKS = /* @__PURE__ */ new Set(["small", "image"]);
|
|
@@ -1050,4 +1050,4 @@ export {
|
|
|
1050
1050
|
getGlobalRegistry,
|
|
1051
1051
|
resetGlobalRegistry
|
|
1052
1052
|
};
|
|
1053
|
-
//# sourceMappingURL=chunk-
|
|
1053
|
+
//# sourceMappingURL=chunk-6NYFFN42.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-ZR5JWLC5.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-7YPSWDOV.js.map
|
|
@@ -13,7 +13,7 @@ import {
|
|
|
13
13
|
observedArmDisplaySlot,
|
|
14
14
|
ok,
|
|
15
15
|
parseRetryAfterMs
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
17
17
|
|
|
18
18
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
19
19
|
var CircuitErrorCode = {
|
|
@@ -653,4 +653,4 @@ export {
|
|
|
653
653
|
CliCircuitBreakerIntegration,
|
|
654
654
|
createCliCircuitBreakerIntegration
|
|
655
655
|
};
|
|
656
|
-
//# sourceMappingURL=chunk-
|
|
656
|
+
//# sourceMappingURL=chunk-AWUTGAQN.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CACHE_TIMEOUTS,
|
|
3
3
|
createLogger,
|
|
4
4
|
getTimeProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-ZR5JWLC5.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-BY5SXMN5.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveClassGuardMs
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/cli-readiness.ts
|
|
6
6
|
var READINESS_LEVELS = ["installed", "authenticated", "serves"];
|
|
@@ -90,4 +90,4 @@ export {
|
|
|
90
90
|
SERVES_PROBE_PROMPT,
|
|
91
91
|
probeServes
|
|
92
92
|
};
|
|
93
|
-
//# sourceMappingURL=chunk-
|
|
93
|
+
//# sourceMappingURL=chunk-BYRIEU5S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CUSTOM_API_DEFAULT_MODEL
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-OCXGPXG2.js";
|
|
4
4
|
import {
|
|
5
5
|
AdapterModelError,
|
|
6
6
|
BaseAdapter,
|
|
@@ -10,14 +10,15 @@ import {
|
|
|
10
10
|
readGatewayTransport,
|
|
11
11
|
requireApiKey,
|
|
12
12
|
validateApiKeyPresence
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-D5EDP3EQ.js";
|
|
14
14
|
import {
|
|
15
15
|
assertCustomApiHostResolvesPublic,
|
|
16
16
|
hostnameOf,
|
|
17
|
+
readCustomApiSurface,
|
|
17
18
|
readGatewayEnv,
|
|
18
19
|
redactApiKey,
|
|
19
20
|
validateCustomApiBaseUrl
|
|
20
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-YKC7ICXJ.js";
|
|
21
22
|
import {
|
|
22
23
|
sanitizeOutput
|
|
23
24
|
} from "./chunk-2NDA4DHW.js";
|
|
@@ -26,13 +27,13 @@ import {
|
|
|
26
27
|
} from "./chunk-OITVVSWO.js";
|
|
27
28
|
import {
|
|
28
29
|
getAvailabilityCache
|
|
29
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-UA3TQ773.js";
|
|
30
31
|
import {
|
|
31
32
|
extractSystemPrompt
|
|
32
33
|
} from "./chunk-QZUG667L.js";
|
|
33
34
|
import {
|
|
34
35
|
generateHyphenId
|
|
35
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-7YPSWDOV.js";
|
|
36
37
|
import {
|
|
37
38
|
CliCircuitBreaker,
|
|
38
39
|
DEFAULT_CIRCUIT_BREAKER_CONFIG,
|
|
@@ -43,7 +44,7 @@ import {
|
|
|
43
44
|
getDefaultCliCircuitBreakerRegistry,
|
|
44
45
|
isCallerInputCliError,
|
|
45
46
|
isTimeoutText
|
|
46
|
-
} from "./chunk-
|
|
47
|
+
} from "./chunk-AWUTGAQN.js";
|
|
47
48
|
import {
|
|
48
49
|
CLI_NAMES,
|
|
49
50
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
@@ -99,7 +100,7 @@ import {
|
|
|
99
100
|
resolveRetryAfterMs,
|
|
100
101
|
toModelTokenUsage,
|
|
101
102
|
warnIfGatewayCostUndeclared
|
|
102
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZR5JWLC5.js";
|
|
103
104
|
import {
|
|
104
105
|
parseBoolValue
|
|
105
106
|
} from "./chunk-LWOX65CP.js";
|
|
@@ -764,6 +765,13 @@ function mapSdkUsage(usage) {
|
|
|
764
765
|
if (inputTokens === void 0 || outputTokens === void 0) return void 0;
|
|
765
766
|
return { inputTokens, outputTokens, totalTokens: inputTokens + outputTokens };
|
|
766
767
|
}
|
|
768
|
+
function modelOnSurface(provider, surface, modelId) {
|
|
769
|
+
const build = surface === "chat" ? provider.chat : provider.responses;
|
|
770
|
+
if (typeof build !== "function") {
|
|
771
|
+
throw new Error(`AI SDK OpenAI provider has no '${surface}' model factory`);
|
|
772
|
+
}
|
|
773
|
+
return build(modelId);
|
|
774
|
+
}
|
|
767
775
|
function extractProviderFactory(mod, factoryName) {
|
|
768
776
|
const factory = mod[factoryName];
|
|
769
777
|
if (typeof factory !== "function") {
|
|
@@ -886,6 +894,8 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
886
894
|
sdkConfig;
|
|
887
895
|
/** Validated base URL for custom-openai provider; undefined for built-ins. */
|
|
888
896
|
customBaseUrl;
|
|
897
|
+
/** OpenAI API surface for custom-openai (#6645); undefined for built-ins. */
|
|
898
|
+
customApiSurface;
|
|
889
899
|
/** Inflight init promise for coalescing concurrent calls (Issue #1438). */
|
|
890
900
|
initPromise;
|
|
891
901
|
/**
|
|
@@ -908,6 +918,7 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
908
918
|
this.sdkProviderId = config.providerId;
|
|
909
919
|
this.sdkConfig = config;
|
|
910
920
|
this.customBaseUrl = resolveAndValidateCustomBaseUrl(config);
|
|
921
|
+
this.customApiSurface = config.providerId === "custom-openai" ? readCustomApiSurface() : void 0;
|
|
911
922
|
}
|
|
912
923
|
/**
|
|
913
924
|
* Lazily initialize the AI SDK model and functions.
|
|
@@ -997,7 +1008,9 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
997
1008
|
Object.assign(opts, gatewayAiSdkOptions({ ...transport, apiKey }));
|
|
998
1009
|
}
|
|
999
1010
|
const provider = factory(opts);
|
|
1000
|
-
return {
|
|
1011
|
+
return {
|
|
1012
|
+
model: modelOnSurface(provider, this.customApiSurface ?? "chat", this.modelId)
|
|
1013
|
+
};
|
|
1001
1014
|
}
|
|
1002
1015
|
}
|
|
1003
1016
|
}
|
|
@@ -4969,4 +4982,4 @@ export {
|
|
|
4969
4982
|
SdkAdapter,
|
|
4970
4983
|
createAutoAdapter
|
|
4971
4984
|
};
|
|
4972
|
-
//# sourceMappingURL=chunk-
|
|
4985
|
+
//# sourceMappingURL=chunk-C4T7UI2R.js.map
|