nexus-agents 2.163.0 → 2.164.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{child-mcp-config-ZSVYMJTH.js → child-mcp-config-Q3XDLAVG.js} +2 -2
- package/dist/{chunk-LJWB4Z7O.js → chunk-2O4TMKUN.js} +2 -2
- package/dist/{chunk-ENKFWBRH.js → chunk-4WZWUONK.js} +2 -2
- package/dist/{chunk-AOXZ42SD.js → chunk-5HLHFSTH.js} +2 -2
- package/dist/{chunk-OEOBPWBH.js → chunk-6RIGFUZF.js} +7 -7
- package/dist/{chunk-CNGZ5N4W.js → chunk-A57TGFAC.js} +5 -5
- package/dist/{chunk-SBCIKT64.js → chunk-BE7MNC7B.js} +3 -3
- package/dist/{chunk-3JWMDESZ.js → chunk-BOE7RCND.js} +3 -3
- package/dist/{chunk-UAK3OVSL.js → chunk-FQNXEOL3.js} +2 -2
- package/dist/{chunk-3EBDRAQW.js → chunk-FTYO3F2S.js} +3 -3
- package/dist/{chunk-2LR2XP3B.js → chunk-GATA7PDR.js} +8 -8
- package/dist/{chunk-AM7EW7CP.js → chunk-GMLPL5P2.js} +4 -4
- package/dist/{chunk-3RDE3OZ6.js → chunk-HLP36YBZ.js} +7 -7
- package/dist/{chunk-JZ3DVFEW.js → chunk-IH7A6MNH.js} +7 -7
- package/dist/{chunk-P4J6I5ZI.js → chunk-JAGAZMUT.js} +2 -2
- package/dist/{chunk-ARTIFRBA.js → chunk-K54QBTB6.js} +2 -2
- package/dist/{chunk-47EFSSZK.js → chunk-K6II2MEP.js} +3 -3
- package/dist/{chunk-UEAG2PEQ.js → chunk-KCVJPSZF.js} +2 -2
- package/dist/{chunk-K5NU57WE.js → chunk-KWYMR424.js} +4 -4
- package/dist/{chunk-S477DLWR.js → chunk-M2BRITA3.js} +4 -4
- package/dist/{chunk-D2NBIVAV.js → chunk-M5LNQ6DM.js} +5 -5
- package/dist/{chunk-NDV5J3Z5.js → chunk-N6WRMZYA.js} +23 -14
- package/dist/chunk-N6WRMZYA.js.map +1 -0
- package/dist/{chunk-HDLWUFKI.js → chunk-NSZVUPZH.js} +2 -2
- package/dist/{chunk-K7GAI4WP.js → chunk-NWIN6KOK.js} +2 -2
- package/dist/{chunk-563FMXWL.js → chunk-P2BP7MJS.js} +2 -2
- package/dist/{chunk-5KFUWUMY.js → chunk-P67JWFPG.js} +2 -2
- package/dist/{chunk-WRZ7HENW.js → chunk-RYUMBYYR.js} +2 -2
- package/dist/{chunk-SKJK44YC.js → chunk-SOWWAZ5C.js} +3 -3
- package/dist/{chunk-2EAKVHOL.js → chunk-UFWFHXDP.js} +3 -3
- package/dist/{chunk-B3FX6E7M.js → chunk-UGNUHVZP.js} +34 -34
- package/dist/{chunk-NG5ZAI7W.js → chunk-V2PFGYOM.js} +2 -2
- package/dist/{chunk-U5E2JJ4F.js → chunk-VGOPIPDV.js} +5 -5
- package/dist/{chunk-PRU452SV.js → chunk-WEIYBIV3.js} +2 -2
- package/dist/{chunk-3ZXNPAUR.js → chunk-XYA7W5IQ.js} +2 -2
- package/dist/{chunk-Y6O4FB5V.js → chunk-YLA7NOSK.js} +4 -4
- package/dist/{cli-circuit-breaker-KUPKNGN2.js → cli-circuit-breaker-G2P42V3H.js} +4 -4
- package/dist/cli.js +41 -41
- package/dist/{composite-router-F6YN34I7.js → composite-router-NZPVPGSN.js} +2 -2
- package/dist/{consensus-vote-N4HVJT7S.js → consensus-vote-BTN37MRV.js} +15 -15
- package/dist/{context-retriever-W6Z6JNEF.js → context-retriever-4SWGSINU.js} +8 -8
- package/dist/{doctor-deep-MKKGB3KM.js → doctor-deep-SYEDHAPX.js} +3 -3
- package/dist/{expert-bridge-KWUVLYXR.js → expert-bridge-6I34TGL7.js} +4 -4
- package/dist/{factory-5TRDV3CD.js → factory-2BGHWTMC.js} +5 -5
- package/dist/{factory-UF6LR6R6.js → factory-KKRPWZ2A.js} +8 -8
- package/dist/{improvement-review-K2FQ5K4H.js → improvement-review-4RX6YUVD.js} +5 -5
- package/dist/index.js +30 -30
- package/dist/{init-opencode-42DWDOPX.js → init-opencode-CXUIMAUP.js} +6 -6
- package/dist/{issue-triage-OHJZLCEG.js → issue-triage-4VXHABBD.js} +6 -6
- package/dist/{pr-reviewer-helpers-ZWGIWDFL.js → pr-reviewer-helpers-5BOB2KK4.js} +4 -4
- package/dist/{registry-command-X6FLUFKQ.js → registry-command-4PDAF4XP.js} +2 -2
- package/dist/{repo-security-plan-K4IYY3OY.js → repo-security-plan-UMNW5FP6.js} +3 -3
- package/dist/{research-helpers-synthesize-GBT6QZIP.js → research-helpers-synthesize-WYFSSCKX.js} +4 -4
- package/dist/{routing-memory-KDVKLC75.js → routing-memory-IMJPZUKI.js} +2 -2
- package/dist/{session-memory-HQ5KPXQG.js → session-memory-XKJFKI6R.js} +3 -3
- package/dist/{setup-command-USFTGMA3.js → setup-command-BPNKRJB2.js} +11 -11
- package/dist/{setup-config-K66VKRCD.js → setup-config-DHGAMWSI.js} +3 -3
- package/dist/{setup-custom-api-6CG7HMRX.js → setup-custom-api-ESPG7XTX.js} +3 -3
- package/dist/{tool-memory-DAGKXCJA.js → tool-memory-VGEHRRGE.js} +5 -5
- package/dist/{unified-registry-GAGQ2VSX.js → unified-registry-GLVZZGSC.js} +9 -9
- package/dist/{weather-report-ZYPHCFXL.js → weather-report-ITGCNNPJ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-NDV5J3Z5.js.map +0 -1
- /package/dist/{child-mcp-config-ZSVYMJTH.js.map → child-mcp-config-Q3XDLAVG.js.map} +0 -0
- /package/dist/{chunk-LJWB4Z7O.js.map → chunk-2O4TMKUN.js.map} +0 -0
- /package/dist/{chunk-ENKFWBRH.js.map → chunk-4WZWUONK.js.map} +0 -0
- /package/dist/{chunk-AOXZ42SD.js.map → chunk-5HLHFSTH.js.map} +0 -0
- /package/dist/{chunk-OEOBPWBH.js.map → chunk-6RIGFUZF.js.map} +0 -0
- /package/dist/{chunk-CNGZ5N4W.js.map → chunk-A57TGFAC.js.map} +0 -0
- /package/dist/{chunk-SBCIKT64.js.map → chunk-BE7MNC7B.js.map} +0 -0
- /package/dist/{chunk-3JWMDESZ.js.map → chunk-BOE7RCND.js.map} +0 -0
- /package/dist/{chunk-UAK3OVSL.js.map → chunk-FQNXEOL3.js.map} +0 -0
- /package/dist/{chunk-3EBDRAQW.js.map → chunk-FTYO3F2S.js.map} +0 -0
- /package/dist/{chunk-2LR2XP3B.js.map → chunk-GATA7PDR.js.map} +0 -0
- /package/dist/{chunk-AM7EW7CP.js.map → chunk-GMLPL5P2.js.map} +0 -0
- /package/dist/{chunk-3RDE3OZ6.js.map → chunk-HLP36YBZ.js.map} +0 -0
- /package/dist/{chunk-JZ3DVFEW.js.map → chunk-IH7A6MNH.js.map} +0 -0
- /package/dist/{chunk-P4J6I5ZI.js.map → chunk-JAGAZMUT.js.map} +0 -0
- /package/dist/{chunk-ARTIFRBA.js.map → chunk-K54QBTB6.js.map} +0 -0
- /package/dist/{chunk-47EFSSZK.js.map → chunk-K6II2MEP.js.map} +0 -0
- /package/dist/{chunk-UEAG2PEQ.js.map → chunk-KCVJPSZF.js.map} +0 -0
- /package/dist/{chunk-K5NU57WE.js.map → chunk-KWYMR424.js.map} +0 -0
- /package/dist/{chunk-S477DLWR.js.map → chunk-M2BRITA3.js.map} +0 -0
- /package/dist/{chunk-D2NBIVAV.js.map → chunk-M5LNQ6DM.js.map} +0 -0
- /package/dist/{chunk-HDLWUFKI.js.map → chunk-NSZVUPZH.js.map} +0 -0
- /package/dist/{chunk-K7GAI4WP.js.map → chunk-NWIN6KOK.js.map} +0 -0
- /package/dist/{chunk-563FMXWL.js.map → chunk-P2BP7MJS.js.map} +0 -0
- /package/dist/{chunk-5KFUWUMY.js.map → chunk-P67JWFPG.js.map} +0 -0
- /package/dist/{chunk-WRZ7HENW.js.map → chunk-RYUMBYYR.js.map} +0 -0
- /package/dist/{chunk-SKJK44YC.js.map → chunk-SOWWAZ5C.js.map} +0 -0
- /package/dist/{chunk-2EAKVHOL.js.map → chunk-UFWFHXDP.js.map} +0 -0
- /package/dist/{chunk-B3FX6E7M.js.map → chunk-UGNUHVZP.js.map} +0 -0
- /package/dist/{chunk-NG5ZAI7W.js.map → chunk-V2PFGYOM.js.map} +0 -0
- /package/dist/{chunk-U5E2JJ4F.js.map → chunk-VGOPIPDV.js.map} +0 -0
- /package/dist/{chunk-PRU452SV.js.map → chunk-WEIYBIV3.js.map} +0 -0
- /package/dist/{chunk-3ZXNPAUR.js.map → chunk-XYA7W5IQ.js.map} +0 -0
- /package/dist/{chunk-Y6O4FB5V.js.map → chunk-YLA7NOSK.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-KUPKNGN2.js.map → cli-circuit-breaker-G2P42V3H.js.map} +0 -0
- /package/dist/{composite-router-F6YN34I7.js.map → composite-router-NZPVPGSN.js.map} +0 -0
- /package/dist/{consensus-vote-N4HVJT7S.js.map → consensus-vote-BTN37MRV.js.map} +0 -0
- /package/dist/{context-retriever-W6Z6JNEF.js.map → context-retriever-4SWGSINU.js.map} +0 -0
- /package/dist/{doctor-deep-MKKGB3KM.js.map → doctor-deep-SYEDHAPX.js.map} +0 -0
- /package/dist/{expert-bridge-KWUVLYXR.js.map → expert-bridge-6I34TGL7.js.map} +0 -0
- /package/dist/{factory-5TRDV3CD.js.map → factory-2BGHWTMC.js.map} +0 -0
- /package/dist/{factory-UF6LR6R6.js.map → factory-KKRPWZ2A.js.map} +0 -0
- /package/dist/{improvement-review-K2FQ5K4H.js.map → improvement-review-4RX6YUVD.js.map} +0 -0
- /package/dist/{init-opencode-42DWDOPX.js.map → init-opencode-CXUIMAUP.js.map} +0 -0
- /package/dist/{issue-triage-OHJZLCEG.js.map → issue-triage-4VXHABBD.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-ZWGIWDFL.js.map → pr-reviewer-helpers-5BOB2KK4.js.map} +0 -0
- /package/dist/{registry-command-X6FLUFKQ.js.map → registry-command-4PDAF4XP.js.map} +0 -0
- /package/dist/{repo-security-plan-K4IYY3OY.js.map → repo-security-plan-UMNW5FP6.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-GBT6QZIP.js.map → research-helpers-synthesize-WYFSSCKX.js.map} +0 -0
- /package/dist/{routing-memory-KDVKLC75.js.map → routing-memory-IMJPZUKI.js.map} +0 -0
- /package/dist/{session-memory-HQ5KPXQG.js.map → session-memory-XKJFKI6R.js.map} +0 -0
- /package/dist/{setup-command-USFTGMA3.js.map → setup-command-BPNKRJB2.js.map} +0 -0
- /package/dist/{setup-config-K66VKRCD.js.map → setup-config-DHGAMWSI.js.map} +0 -0
- /package/dist/{setup-custom-api-6CG7HMRX.js.map → setup-custom-api-ESPG7XTX.js.map} +0 -0
- /package/dist/{tool-memory-DAGKXCJA.js.map → tool-memory-VGEHRRGE.js.map} +0 -0
- /package/dist/{unified-registry-GAGQ2VSX.js.map → unified-registry-GLVZZGSC.js.map} +0 -0
- /package/dist/{weather-report-ZYPHCFXL.js.map → weather-report-ITGCNNPJ.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N6WRMZYA.js";
|
|
4
4
|
import "./chunk-AXTD4TFK.js";
|
|
5
5
|
import "./chunk-DHVMSIT5.js";
|
|
6
6
|
import "./chunk-ZPWHCABL.js";
|
|
@@ -60,4 +60,4 @@ export {
|
|
|
60
60
|
generateMcpConfig,
|
|
61
61
|
getDefaultAllowedTools
|
|
62
62
|
};
|
|
63
|
-
//# sourceMappingURL=child-mcp-config-
|
|
63
|
+
//# sourceMappingURL=child-mcp-config-Q3XDLAVG.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N6WRMZYA.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-2O4TMKUN.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getRandomProvider,
|
|
3
3
|
getTimeProvider
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-N6WRMZYA.js";
|
|
5
5
|
|
|
6
6
|
// src/utils/id-utils.ts
|
|
7
7
|
import { randomUUID } from "crypto";
|
|
@@ -24,4 +24,4 @@ export {
|
|
|
24
24
|
generateHyphenId,
|
|
25
25
|
generateUUID
|
|
26
26
|
};
|
|
27
|
-
//# sourceMappingURL=chunk-
|
|
27
|
+
//# sourceMappingURL=chunk-4WZWUONK.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N6WRMZYA.js";
|
|
9
9
|
|
|
10
10
|
// src/cli-adapters/circuit-breaker-types.ts
|
|
11
11
|
var CircuitErrorCode = {
|
|
@@ -375,4 +375,4 @@ export {
|
|
|
375
375
|
mapCliErrorToCategory,
|
|
376
376
|
mapModelErrorToCategory
|
|
377
377
|
};
|
|
378
|
-
//# sourceMappingURL=chunk-
|
|
378
|
+
//# sourceMappingURL=chunk-5HLHFSTH.js.map
|
|
@@ -7,10 +7,10 @@ import {
|
|
|
7
7
|
import {
|
|
8
8
|
createAllAdapters,
|
|
9
9
|
probeCli
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IH7A6MNH.js";
|
|
11
11
|
import {
|
|
12
12
|
DEFAULTS
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-RYUMBYYR.js";
|
|
14
14
|
import {
|
|
15
15
|
CliNameSchema,
|
|
16
16
|
DEFAULT_CAPABILITIES,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
ok,
|
|
28
28
|
symbols,
|
|
29
29
|
writeLine
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-N6WRMZYA.js";
|
|
31
31
|
import {
|
|
32
32
|
getLearningDir,
|
|
33
33
|
getOutcomesFile,
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
} from "./chunk-DHVMSIT5.js";
|
|
44
44
|
|
|
45
45
|
// src/version.ts
|
|
46
|
-
var VERSION = true ? "2.
|
|
46
|
+
var VERSION = true ? "2.164.0" : "dev";
|
|
47
47
|
|
|
48
48
|
// src/config/schemas-core.ts
|
|
49
49
|
import { z } from "zod";
|
|
@@ -2159,7 +2159,7 @@ async function runDoctorFix(result) {
|
|
|
2159
2159
|
writeLine2("\u2500".repeat(40));
|
|
2160
2160
|
let fixCount = 0;
|
|
2161
2161
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
2162
|
-
const { runSetup } = await import("./setup-command-
|
|
2162
|
+
const { runSetup } = await import("./setup-command-BPNKRJB2.js");
|
|
2163
2163
|
const setupResult = runSetup({
|
|
2164
2164
|
skipMcp: true,
|
|
2165
2165
|
skipRules: true,
|
|
@@ -2173,7 +2173,7 @@ async function runDoctorFix(result) {
|
|
|
2173
2173
|
}
|
|
2174
2174
|
}
|
|
2175
2175
|
if (!result.configFile.found) {
|
|
2176
|
-
const { runConfigInitSync } = await import("./setup-config-
|
|
2176
|
+
const { runConfigInitSync } = await import("./setup-config-DHGAMWSI.js");
|
|
2177
2177
|
const configResult = runConfigInitSync(process.cwd(), false, false);
|
|
2178
2178
|
if (configResult.success && configResult.created) {
|
|
2179
2179
|
writeLine2(`\u2713 Generated config: ${configResult.path}`);
|
|
@@ -2272,4 +2272,4 @@ export {
|
|
|
2272
2272
|
startStdioServer,
|
|
2273
2273
|
closeServer
|
|
2274
2274
|
};
|
|
2275
|
-
//# sourceMappingURL=chunk-
|
|
2275
|
+
//# sourceMappingURL=chunk-6RIGFUZF.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
runConfigInitSync
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-NSZVUPZH.js";
|
|
4
4
|
import {
|
|
5
5
|
VERSION,
|
|
6
6
|
checkApiKeys,
|
|
@@ -8,13 +8,13 @@ import {
|
|
|
8
8
|
checkSqlite,
|
|
9
9
|
defaultConfig,
|
|
10
10
|
initDataDirectories
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-6RIGFUZF.js";
|
|
12
12
|
import {
|
|
13
13
|
BUILT_IN_EXPERTS
|
|
14
14
|
} from "./chunk-ZM4O442V.js";
|
|
15
15
|
import {
|
|
16
16
|
probeAllClis
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IH7A6MNH.js";
|
|
18
18
|
import {
|
|
19
19
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
20
20
|
colors,
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
getErrorMessage,
|
|
26
26
|
getTimeProvider,
|
|
27
27
|
symbols
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-N6WRMZYA.js";
|
|
29
29
|
import {
|
|
30
30
|
ensureGitignored,
|
|
31
31
|
findRepoRoot
|
|
@@ -2001,4 +2001,4 @@ export {
|
|
|
2001
2001
|
setupCommand,
|
|
2002
2002
|
setupCommandAsync
|
|
2003
2003
|
};
|
|
2004
|
-
//# sourceMappingURL=chunk-
|
|
2004
|
+
//# sourceMappingURL=chunk-A57TGFAC.js.map
|
|
@@ -9,11 +9,11 @@ import {
|
|
|
9
9
|
gateWithReputation,
|
|
10
10
|
resolveReputationGatingMode,
|
|
11
11
|
sanitizeInput
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-WEIYBIV3.js";
|
|
13
13
|
import {
|
|
14
14
|
createLogger,
|
|
15
15
|
getTimeProvider
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-N6WRMZYA.js";
|
|
17
17
|
|
|
18
18
|
// src/dogfooding/pr-reviewer-helpers.ts
|
|
19
19
|
import { randomUUID } from "crypto";
|
|
@@ -288,4 +288,4 @@ export {
|
|
|
288
288
|
formatReviewComment,
|
|
289
289
|
createFailedReview
|
|
290
290
|
};
|
|
291
|
-
//# sourceMappingURL=chunk-
|
|
291
|
+
//# sourceMappingURL=chunk-BE7MNC7B.js.map
|
|
@@ -2,14 +2,14 @@ import {
|
|
|
2
2
|
CircuitBreakerRegistry,
|
|
3
3
|
CircuitError,
|
|
4
4
|
mapCliErrorToCategory
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-5HLHFSTH.js";
|
|
6
6
|
import {
|
|
7
7
|
createLogger,
|
|
8
8
|
err,
|
|
9
9
|
getFallbackChainForCategory,
|
|
10
10
|
getTimeProvider,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-N6WRMZYA.js";
|
|
13
13
|
|
|
14
14
|
// src/cli-adapters/cli-circuit-breaker.ts
|
|
15
15
|
var CATEGORY_TO_FALLBACK = {
|
|
@@ -152,4 +152,4 @@ export {
|
|
|
152
152
|
CliCircuitBreakerIntegration,
|
|
153
153
|
createCliCircuitBreakerIntegration
|
|
154
154
|
};
|
|
155
|
-
//# sourceMappingURL=chunk-
|
|
155
|
+
//# sourceMappingURL=chunk-BOE7RCND.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getDefaultRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-N6WRMZYA.js";
|
|
4
4
|
import {
|
|
5
5
|
getNexusDataDir
|
|
6
6
|
} from "./chunk-DHVMSIT5.js";
|
|
@@ -124,4 +124,4 @@ export {
|
|
|
124
124
|
loadUsageEvents,
|
|
125
125
|
rollupByModel
|
|
126
126
|
};
|
|
127
|
-
//# sourceMappingURL=chunk-
|
|
127
|
+
//# sourceMappingURL=chunk-FQNXEOL3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
emitClawGuardViolation
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-V2PFGYOM.js";
|
|
4
4
|
import {
|
|
5
5
|
CACHE_TIMEOUTS,
|
|
6
6
|
MCP_TIMEOUTS,
|
|
@@ -16,7 +16,7 @@ import {
|
|
|
16
16
|
getTimeProvider,
|
|
17
17
|
ok,
|
|
18
18
|
resolveToolClassGuardMs
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-N6WRMZYA.js";
|
|
20
20
|
import {
|
|
21
21
|
getNexusDataDir
|
|
22
22
|
} from "./chunk-DHVMSIT5.js";
|
|
@@ -2023,4 +2023,4 @@ export {
|
|
|
2023
2023
|
VOTING_THRESHOLDS,
|
|
2024
2024
|
ConsensusMetricsSchema
|
|
2025
2025
|
};
|
|
2026
|
-
//# sourceMappingURL=chunk-
|
|
2026
|
+
//# sourceMappingURL=chunk-FTYO3F2S.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FQNXEOL3.js";
|
|
4
4
|
import {
|
|
5
5
|
DEFAULT_CONSENSUS_CONFIG,
|
|
6
6
|
DEFAULT_INCREMENTAL_QUORUM_CONFIG,
|
|
@@ -18,20 +18,20 @@ import {
|
|
|
18
18
|
toolSuccess,
|
|
19
19
|
withProgressHeartbeat,
|
|
20
20
|
wrapToolWithTimeout
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-FTYO3F2S.js";
|
|
22
22
|
import {
|
|
23
23
|
getToolMemory
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-M2BRITA3.js";
|
|
25
25
|
import {
|
|
26
26
|
createEvent,
|
|
27
27
|
getGlobalRegistry
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GMLPL5P2.js";
|
|
29
29
|
import {
|
|
30
30
|
authRemediation,
|
|
31
31
|
delay,
|
|
32
32
|
getAvailableClis,
|
|
33
33
|
withTimeout
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-IH7A6MNH.js";
|
|
35
35
|
import {
|
|
36
36
|
AgentError,
|
|
37
37
|
CLI_NAMES,
|
|
@@ -59,7 +59,7 @@ import {
|
|
|
59
59
|
registerPersistentOutcomeStoreFactory,
|
|
60
60
|
resolveClassGuardMs,
|
|
61
61
|
resolveVoteTimeout
|
|
62
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-N6WRMZYA.js";
|
|
63
63
|
import {
|
|
64
64
|
ensureLearningDir,
|
|
65
65
|
getOutcomesFile
|
|
@@ -5866,7 +5866,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
5866
5866
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
5867
5867
|
async function runContrarianCheck(proposal, log) {
|
|
5868
5868
|
try {
|
|
5869
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
5869
|
+
const { executeExpert } = await import("./expert-bridge-6I34TGL7.js");
|
|
5870
5870
|
const prompt = [
|
|
5871
5871
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
5872
5872
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6382,4 +6382,4 @@ export {
|
|
|
6382
6382
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
6383
6383
|
registerConsensusVoteTool
|
|
6384
6384
|
};
|
|
6385
|
-
//# sourceMappingURL=chunk-
|
|
6385
|
+
//# sourceMappingURL=chunk-GATA7PDR.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createAutoAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-IH7A6MNH.js";
|
|
4
4
|
import {
|
|
5
5
|
mapModelErrorToCategory
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-5HLHFSTH.js";
|
|
7
7
|
import {
|
|
8
8
|
CLI_NAMES,
|
|
9
9
|
CircularBuffer,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
ok,
|
|
25
25
|
recordRateLimitEvent,
|
|
26
26
|
toRateLimitError
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-N6WRMZYA.js";
|
|
28
28
|
|
|
29
29
|
// src/agents/collaboration/event-bus-helpers.ts
|
|
30
30
|
import { randomUUID } from "crypto";
|
|
@@ -1041,4 +1041,4 @@ export {
|
|
|
1041
1041
|
getGlobalRegistry,
|
|
1042
1042
|
resetGlobalRegistry
|
|
1043
1043
|
};
|
|
1044
|
-
//# sourceMappingURL=chunk-
|
|
1044
|
+
//# sourceMappingURL=chunk-GMLPL5P2.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-2O4TMKUN.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-N6WRMZYA.js";
|
|
9
9
|
|
|
10
10
|
// src/pipeline/expert-bridge.ts
|
|
11
11
|
function resolveCliFromModelString(model) {
|
|
@@ -21,7 +21,7 @@ async function getMcpConfigPath() {
|
|
|
21
21
|
if (cachedMcpConfigPath !== null) return cachedMcpConfigPath;
|
|
22
22
|
mcpConfigInitPromise ??= (async () => {
|
|
23
23
|
try {
|
|
24
|
-
const { generateMcpConfig } = await import("./child-mcp-config-
|
|
24
|
+
const { generateMcpConfig } = await import("./child-mcp-config-Q3XDLAVG.js");
|
|
25
25
|
const config = await generateMcpConfig();
|
|
26
26
|
cachedMcpConfigPath = config.configPath;
|
|
27
27
|
cachedMcpConfigCleanup = config.cleanup;
|
|
@@ -93,8 +93,8 @@ var routerInitPromise = null;
|
|
|
93
93
|
async function getRouter() {
|
|
94
94
|
if (cachedRouter !== null) return cachedRouter;
|
|
95
95
|
routerInitPromise ??= (async () => {
|
|
96
|
-
const { createAllAdapters } = await import("./factory-
|
|
97
|
-
const { createCompositeRouter } = await import("./composite-router-
|
|
96
|
+
const { createAllAdapters } = await import("./factory-KKRPWZ2A.js");
|
|
97
|
+
const { createCompositeRouter } = await import("./composite-router-NZPVPGSN.js");
|
|
98
98
|
const adapters = createAllAdapters();
|
|
99
99
|
if (adapters.size === 0) {
|
|
100
100
|
routerInitPromise = null;
|
|
@@ -102,7 +102,7 @@ async function getRouter() {
|
|
|
102
102
|
}
|
|
103
103
|
cachedRouter = adaptCompositeRouter(createCompositeRouter(adapters));
|
|
104
104
|
try {
|
|
105
|
-
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-
|
|
105
|
+
const { createCliCircuitBreakerIntegration } = await import("./cli-circuit-breaker-G2P42V3H.js");
|
|
106
106
|
cachedCircuitBreaker = createCliCircuitBreakerIntegration([...adapters.values()]);
|
|
107
107
|
} catch (error) {
|
|
108
108
|
const msg = error instanceof Error ? error.message : String(error);
|
|
@@ -213,4 +213,4 @@ export {
|
|
|
213
213
|
tokenSplitFromUsage,
|
|
214
214
|
executeExpert
|
|
215
215
|
};
|
|
216
|
-
//# sourceMappingURL=chunk-
|
|
216
|
+
//# sourceMappingURL=chunk-HLP36YBZ.js.map
|
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
planOptionalParams,
|
|
6
6
|
requireApiKey,
|
|
7
7
|
validateApiKeyPresence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-K54QBTB6.js";
|
|
9
9
|
import {
|
|
10
10
|
CUSTOM_API_BASE_URL_ENV,
|
|
11
11
|
CUSTOM_API_DEFAULT_MODEL,
|
|
12
12
|
PROVIDER_ENV_KEYS,
|
|
13
13
|
assertCustomApiHostResolvesPublic,
|
|
14
14
|
validateCustomApiBaseUrl
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-RYUMBYYR.js";
|
|
16
16
|
import {
|
|
17
17
|
CliCircuitBreaker,
|
|
18
18
|
DEFAULT_CIRCUIT_BREAKER_CONFIG
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-5HLHFSTH.js";
|
|
20
20
|
import {
|
|
21
21
|
getAvailabilityCache
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-2O4TMKUN.js";
|
|
23
23
|
import {
|
|
24
24
|
generateHyphenId
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-4WZWUONK.js";
|
|
26
26
|
import {
|
|
27
27
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
28
28
|
CLI_TIMEOUTS,
|
|
@@ -58,7 +58,7 @@ import {
|
|
|
58
58
|
loadModelsDevSnapshot,
|
|
59
59
|
ok,
|
|
60
60
|
resolveCliAlias
|
|
61
|
-
} from "./chunk-
|
|
61
|
+
} from "./chunk-N6WRMZYA.js";
|
|
62
62
|
|
|
63
63
|
// src/cli-adapters/cli-to-model-adapter.ts
|
|
64
64
|
var CliToModelAdapter = class {
|
|
@@ -4867,4 +4867,4 @@ export {
|
|
|
4867
4867
|
SdkAdapter,
|
|
4868
4868
|
createAutoAdapter
|
|
4869
4869
|
};
|
|
4870
|
-
//# sourceMappingURL=chunk-
|
|
4870
|
+
//# sourceMappingURL=chunk-IH7A6MNH.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
createLogger,
|
|
3
3
|
err,
|
|
4
4
|
ok
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N6WRMZYA.js";
|
|
6
6
|
|
|
7
7
|
// src/scm/token-resolver.ts
|
|
8
8
|
import { execFile } from "child_process";
|
|
@@ -87,4 +87,4 @@ export {
|
|
|
87
87
|
hasToken,
|
|
88
88
|
getTokenEnvVars
|
|
89
89
|
};
|
|
90
|
-
//# sourceMappingURL=chunk-
|
|
90
|
+
//# sourceMappingURL=chunk-JAGAZMUT.js.map
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
isRateLimitLikeError,
|
|
12
12
|
lookupInTreeCapability,
|
|
13
13
|
ok
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-N6WRMZYA.js";
|
|
15
15
|
|
|
16
16
|
// src/config/model-parameter-support.ts
|
|
17
17
|
function parseClaudeMajorMinor(bareId) {
|
|
@@ -828,4 +828,4 @@ export {
|
|
|
828
828
|
DEFAULT_COLLECT_STREAM_MAX_CHUNKS,
|
|
829
829
|
collectStream
|
|
830
830
|
};
|
|
831
|
-
//# sourceMappingURL=chunk-
|
|
831
|
+
//# sourceMappingURL=chunk-K54QBTB6.js.map
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import {
|
|
2
2
|
loadPapersRegistry
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-P67JWFPG.js";
|
|
4
4
|
import {
|
|
5
5
|
getErrorMessage
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-N6WRMZYA.js";
|
|
7
7
|
|
|
8
8
|
// src/cli/research-helpers-synthesize.ts
|
|
9
9
|
import { z } from "zod";
|
|
@@ -876,4 +876,4 @@ export {
|
|
|
876
876
|
AttributedInsightSchema,
|
|
877
877
|
synthesizeResearch
|
|
878
878
|
};
|
|
879
|
-
//# sourceMappingURL=chunk-
|
|
879
|
+
//# sourceMappingURL=chunk-K6II2MEP.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TASK_CATEGORIES,
|
|
3
3
|
getAdaptiveBonus,
|
|
4
4
|
getOutcomeStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-N6WRMZYA.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-KCVJPSZF.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAIAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-SOWWAZ5C.js";
|
|
4
4
|
import {
|
|
5
5
|
computeCostDetail,
|
|
6
6
|
recordUsageEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FQNXEOL3.js";
|
|
8
8
|
import {
|
|
9
9
|
ConfigError,
|
|
10
10
|
createLogger,
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
getErrorMessage,
|
|
13
13
|
getTimeProvider,
|
|
14
14
|
ok
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-N6WRMZYA.js";
|
|
16
16
|
|
|
17
17
|
// src/config/opencode-bridge.ts
|
|
18
18
|
import { readFileSync } from "fs";
|
|
@@ -194,4 +194,4 @@ export {
|
|
|
194
194
|
discoverModels,
|
|
195
195
|
buildOpenAICompatAdapters
|
|
196
196
|
};
|
|
197
|
-
//# sourceMappingURL=chunk-
|
|
197
|
+
//# sourceMappingURL=chunk-KWYMR424.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
} from "./chunk-6T3EPABN.js";
|
|
6
6
|
import {
|
|
7
7
|
SessionMemory
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-XYA7W5IQ.js";
|
|
9
9
|
import {
|
|
10
10
|
StatsOnlyAdapter,
|
|
11
11
|
ensureSharedMemoryRegistry
|
|
@@ -15,7 +15,7 @@ import {
|
|
|
15
15
|
} from "./chunk-KSQSWEFH.js";
|
|
16
16
|
import {
|
|
17
17
|
generateId
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-4WZWUONK.js";
|
|
19
19
|
import {
|
|
20
20
|
ErrorCode,
|
|
21
21
|
NexusError,
|
|
@@ -28,7 +28,7 @@ import {
|
|
|
28
28
|
getTimeProvider,
|
|
29
29
|
ok,
|
|
30
30
|
setSharedMobiMemDbPathResolver
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-N6WRMZYA.js";
|
|
32
32
|
import {
|
|
33
33
|
nexusDataPath
|
|
34
34
|
} from "./chunk-DHVMSIT5.js";
|
|
@@ -5552,4 +5552,4 @@ export {
|
|
|
5552
5552
|
reinitializeMemoryBackends,
|
|
5553
5553
|
ToolMemoryManager
|
|
5554
5554
|
};
|
|
5555
|
-
//# sourceMappingURL=chunk-
|
|
5555
|
+
//# sourceMappingURL=chunk-M2BRITA3.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-NWIN6KOK.js";
|
|
5
5
|
import {
|
|
6
6
|
ROLE_DEFAULT_TRUST,
|
|
7
7
|
ReputationCache,
|
|
@@ -11,17 +11,17 @@ import {
|
|
|
11
11
|
gateWithReputation,
|
|
12
12
|
resolveReputationGatingMode,
|
|
13
13
|
sanitizeInput
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-WEIYBIV3.js";
|
|
15
15
|
import {
|
|
16
16
|
emitPolicyEvent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-V2PFGYOM.js";
|
|
18
18
|
import {
|
|
19
19
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
20
20
|
createLogger,
|
|
21
21
|
err,
|
|
22
22
|
getTimeProvider,
|
|
23
23
|
ok
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-N6WRMZYA.js";
|
|
25
25
|
|
|
26
26
|
// src/security/trust-classifier.ts
|
|
27
27
|
function mapAuthorAssociation(association) {
|
|
@@ -1211,4 +1211,4 @@ export {
|
|
|
1211
1211
|
IssueTriage,
|
|
1212
1212
|
createIssueTriage
|
|
1213
1213
|
};
|
|
1214
|
-
//# sourceMappingURL=chunk-
|
|
1214
|
+
//# sourceMappingURL=chunk-M5LNQ6DM.js.map
|
|
@@ -1500,6 +1500,12 @@ var DEFAULT_MODEL_PER_CLI = {
|
|
|
1500
1500
|
codex: "gpt-5.5",
|
|
1501
1501
|
opencode: "opencode-default"
|
|
1502
1502
|
};
|
|
1503
|
+
var STATIC_CLI_COST_PER_1M = {
|
|
1504
|
+
claude: { input: 3, output: 15 },
|
|
1505
|
+
gemini: { input: 0.075, output: 0.3 },
|
|
1506
|
+
codex: { input: 2.5, output: 10 },
|
|
1507
|
+
opencode: { input: 2, output: 8 }
|
|
1508
|
+
};
|
|
1503
1509
|
|
|
1504
1510
|
// src/config/model-derivation.ts
|
|
1505
1511
|
var DEFAULT_ENTRY = {
|
|
@@ -2613,7 +2619,7 @@ function setDefaultRegistry(registry) {
|
|
|
2613
2619
|
}
|
|
2614
2620
|
async function reloadDefaultRegistry() {
|
|
2615
2621
|
globalRegistry = buildDefaultRegistry();
|
|
2616
|
-
const { resetGlobalRegistry } = await import("./unified-registry-
|
|
2622
|
+
const { resetGlobalRegistry } = await import("./unified-registry-GLVZZGSC.js");
|
|
2617
2623
|
resetGlobalRegistry();
|
|
2618
2624
|
return globalRegistry;
|
|
2619
2625
|
}
|
|
@@ -2643,6 +2649,14 @@ function getDefaultModelForCli(cli) {
|
|
|
2643
2649
|
if (registry === void 0) return staticDefault;
|
|
2644
2650
|
return registry.getEntry(staticDefault).id;
|
|
2645
2651
|
}
|
|
2652
|
+
function resolveModelCostPer1M(modelId, fallback) {
|
|
2653
|
+
const pricing = getModelPricing(modelId);
|
|
2654
|
+
if (pricing === void 0) return fallback;
|
|
2655
|
+
return { input: pricing.inputPer1M, output: pricing.outputPer1M };
|
|
2656
|
+
}
|
|
2657
|
+
function resolveCliCostPer1M(cli) {
|
|
2658
|
+
return resolveModelCostPer1M(getDefaultModelForCli(cli), STATIC_CLI_COST_PER_1M[cli]);
|
|
2659
|
+
}
|
|
2646
2660
|
function getCliModelName(modelId) {
|
|
2647
2661
|
const entry = lookupInTree(modelId);
|
|
2648
2662
|
return entry?.cliModelName ?? entry?.cliAlias ?? modelId;
|
|
@@ -2693,9 +2707,10 @@ function buildTopsisProfiles() {
|
|
|
2693
2707
|
for (const [cli, modelId] of Object.entries(DEFAULT_MODEL_PER_CLI)) {
|
|
2694
2708
|
const entry = byId.get(modelId);
|
|
2695
2709
|
const q = entry?.qualityScores;
|
|
2696
|
-
|
|
2697
|
-
if (entry === void 0 || q === void 0 || p === void 0) continue;
|
|
2710
|
+
if (entry === void 0 || q === void 0) continue;
|
|
2698
2711
|
if (entry.contextWindow === void 0) continue;
|
|
2712
|
+
const p = entry.pricing;
|
|
2713
|
+
const price = p !== void 0 ? { input: p.inputPer1M, output: p.outputPer1M } : STATIC_CLI_COST_PER_1M[cli];
|
|
2699
2714
|
profiles.push({
|
|
2700
2715
|
cliName: cli,
|
|
2701
2716
|
capabilities: {
|
|
@@ -2705,8 +2720,8 @@ function buildTopsisProfiles() {
|
|
|
2705
2720
|
speed: q.speed,
|
|
2706
2721
|
cost: q.cost
|
|
2707
2722
|
},
|
|
2708
|
-
costPerMillionInput:
|
|
2709
|
-
costPerMillionOutput:
|
|
2723
|
+
costPerMillionInput: price.input,
|
|
2724
|
+
costPerMillionOutput: price.output,
|
|
2710
2725
|
averageLatencyMs: cliAvgLatency()[cli],
|
|
2711
2726
|
qualityScore: (q.reasoning + q.codeGeneration) / 2
|
|
2712
2727
|
});
|
|
@@ -5357,17 +5372,11 @@ var RoutingMemoryError = class extends Error {
|
|
|
5357
5372
|
};
|
|
5358
5373
|
|
|
5359
5374
|
// src/cli-adapters/budget-utils.ts
|
|
5360
|
-
var TOKEN_COSTS = {
|
|
5361
|
-
claude: { input: 3, output: 15 },
|
|
5362
|
-
gemini: { input: 0.075, output: 0.3 },
|
|
5363
|
-
codex: { input: 2.5, output: 10 },
|
|
5364
|
-
opencode: { input: 2, output: 8 }
|
|
5365
|
-
};
|
|
5366
5375
|
function estimateTokens2(content) {
|
|
5367
5376
|
return Math.ceil(content.length / 4);
|
|
5368
5377
|
}
|
|
5369
5378
|
function estimateCost(model, inputTokens, outputTokens) {
|
|
5370
|
-
const costs =
|
|
5379
|
+
const costs = resolveCliCostPer1M(model);
|
|
5371
5380
|
const inputCost = inputTokens / 1e6 * costs.input;
|
|
5372
5381
|
const outputCost = outputTokens / 1e6 * costs.output;
|
|
5373
5382
|
return inputCost + outputCost;
|
|
@@ -14249,7 +14258,7 @@ var CompositeRouter = class _CompositeRouter {
|
|
|
14249
14258
|
*/
|
|
14250
14259
|
async consultUnifiedContext(task) {
|
|
14251
14260
|
try {
|
|
14252
|
-
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-
|
|
14261
|
+
const { getContextForTask, inferTaskCategory } = await import("./context-retriever-4SWGSINU.js");
|
|
14253
14262
|
const ctx = await getContextForTask({
|
|
14254
14263
|
task: task.content,
|
|
14255
14264
|
category: inferTaskCategory(task.content),
|
|
@@ -15838,4 +15847,4 @@ export {
|
|
|
15838
15847
|
AgentCapability,
|
|
15839
15848
|
OrchestratorError
|
|
15840
15849
|
};
|
|
15841
|
-
//# sourceMappingURL=chunk-
|
|
15850
|
+
//# sourceMappingURL=chunk-N6WRMZYA.js.map
|