nexus-agents 2.149.1 → 2.150.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-YTJSYSDO.js → child-mcp-config-EXXD4NVX.js} +2 -2
- package/dist/{chunk-4FT35FDA.js → chunk-27JU5EIO.js} +8 -8
- package/dist/{chunk-OSYZ7FT7.js → chunk-2Y5UAHBN.js} +4 -4
- package/dist/{chunk-ZGY3V7RD.js → chunk-4EDNTMRD.js} +2 -2
- package/dist/{chunk-ZZKZ4UHC.js → chunk-5AWBRS3R.js} +4 -4
- package/dist/{chunk-S75CT7MY.js → chunk-6D7NYWDW.js} +2 -2
- package/dist/{chunk-BYMPT7NU.js → chunk-76BPE6FB.js} +2 -2
- package/dist/{chunk-UXEARNIP.js → chunk-AFNO7KMH.js} +2 -2
- package/dist/{chunk-XWPTHKA2.js → chunk-BOJOJQLH.js} +5 -5
- package/dist/{chunk-PX634ZOU.js → chunk-BX5CYNHE.js} +7 -7
- package/dist/{chunk-ZIN26XX5.js → chunk-FR2YSJC7.js} +4 -4
- package/dist/{chunk-CPCRNL36.js → chunk-FWEYQX4N.js} +26 -18
- package/dist/chunk-FWEYQX4N.js.map +1 -0
- package/dist/{chunk-7H3Z5Q2X.js → chunk-GTEGNTFD.js} +2 -2
- package/dist/{chunk-ZHT4TFFA.js → chunk-GUAG2ADJ.js} +3 -3
- package/dist/{chunk-TCI7DNWK.js → chunk-HQL7TF57.js} +129 -86
- package/dist/chunk-HQL7TF57.js.map +1 -0
- package/dist/{chunk-OJI53VOI.js → chunk-HZXJ3JAZ.js} +2 -2
- package/dist/{chunk-QWEKW6FF.js → chunk-IJ5JFATI.js} +7 -7
- package/dist/{chunk-Z7TY67AH.js → chunk-J3QSLEHM.js} +2 -2
- package/dist/{chunk-FEB4O6BV.js → chunk-KIDH3EWN.js} +2 -2
- package/dist/{chunk-MLAD6ZTK.js → chunk-LGSU5C46.js} +34 -34
- package/dist/{chunk-GC3BEJNL.js → chunk-MDCSXJWB.js} +2 -2
- package/dist/{chunk-6KVJKH7P.js → chunk-OECO3UIW.js} +3 -3
- package/dist/{chunk-O7KV4UGP.js → chunk-PBNYJR7F.js} +2 -2
- package/dist/{chunk-HH7IATAZ.js → chunk-Q42KWK42.js} +3 -3
- package/dist/{chunk-K4B5N5QH.js → chunk-RKQQEJEU.js} +3 -3
- package/dist/{chunk-5I4LPOKG.js → chunk-RLBYREDT.js} +2 -2
- package/dist/{chunk-IMLHCK4P.js → chunk-V25VUUPP.js} +5 -5
- package/dist/{chunk-367EP2C7.js → chunk-V2PQVMGE.js} +2 -2
- package/dist/{chunk-3DL4MAGN.js → chunk-VGINLUME.js} +12 -3
- package/dist/{chunk-3DL4MAGN.js.map → chunk-VGINLUME.js.map} +1 -1
- package/dist/{chunk-L3F27J72.js → chunk-VPFK7LIK.js} +2 -2
- package/dist/{chunk-2UU5ZXTW.js → chunk-WO4MB65I.js} +3 -3
- package/dist/{chunk-77GBDHVF.js → chunk-WUYXJJTL.js} +19 -13
- package/dist/chunk-WUYXJJTL.js.map +1 -0
- package/dist/{chunk-KNTNSBHK.js → chunk-XA3PKYBR.js} +4 -4
- package/dist/{chunk-2AJDFDMI.js → chunk-ZGYLWKAZ.js} +2 -2
- package/dist/{chunk-XYOST7XP.js → chunk-ZO2FWH6W.js} +5 -5
- package/dist/{cli-circuit-breaker-7XBDSYYS.js → cli-circuit-breaker-CLQKA7NG.js} +4 -4
- package/dist/cli.js +41 -41
- package/dist/{composite-router-CS6YW7FL.js → composite-router-ZIIMWIPS.js} +2 -2
- package/dist/{consensus-vote-FQ7DMGQ5.js → consensus-vote-PGPDRVWI.js} +15 -15
- package/dist/{context-retriever-RJ6D67WW.js → context-retriever-EMVN6NNW.js} +8 -8
- package/dist/{doctor-deep-HFJGB7HZ.js → doctor-deep-4VYC4ZFD.js} +3 -3
- package/dist/{expert-bridge-BSEUAG5B.js → expert-bridge-D53IE52J.js} +4 -4
- package/dist/{factory-GXAOB66V.js → factory-JAVXQI2M.js} +5 -5
- package/dist/{factory-SJF3GF6T.js → factory-R6WV357Q.js} +8 -8
- package/dist/{improvement-review-GCIDNUGA.js → improvement-review-MJ6A6HFV.js} +5 -5
- package/dist/index.d.ts +34 -0
- package/dist/index.js +30 -30
- package/dist/{init-opencode-QKPN4FQ6.js → init-opencode-JAFMTL6D.js} +6 -6
- package/dist/{issue-triage-VSLGCWHP.js → issue-triage-WJFYACOD.js} +6 -6
- package/dist/{pr-reviewer-helpers-X7MU2OUO.js → pr-reviewer-helpers-LX46ZNDN.js} +4 -4
- package/dist/{registry-command-AQOQHU6R.js → registry-command-STRBISOJ.js} +2 -2
- package/dist/{repo-security-plan-23K6ZLFD.js → repo-security-plan-BAQRQDVT.js} +3 -3
- package/dist/{research-helpers-synthesize-OOQHAUON.js → research-helpers-synthesize-I7CCPVI5.js} +4 -4
- package/dist/{routing-memory-KNXPI7HA.js → routing-memory-GASTCLCD.js} +2 -2
- package/dist/{session-memory-GVEMAPT3.js → session-memory-DMD4LWZF.js} +3 -3
- package/dist/{setup-command-ICXDEARW.js → setup-command-XBER4WR2.js} +11 -11
- package/dist/{setup-config-PYE3DHHH.js → setup-config-AVMV3GTY.js} +3 -3
- package/dist/{setup-custom-api-Y2MTGAS7.js → setup-custom-api-3WRO27ZG.js} +3 -3
- package/dist/{tool-memory-PE7RNTVL.js → tool-memory-734GCMZM.js} +5 -5
- package/dist/{unified-registry-PGK7BFEQ.js → unified-registry-STRPR5KB.js} +9 -9
- package/dist/{weather-report-KDNG2TKZ.js → weather-report-3LMA4ZVW.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-77GBDHVF.js.map +0 -1
- package/dist/chunk-CPCRNL36.js.map +0 -1
- package/dist/chunk-TCI7DNWK.js.map +0 -1
- /package/dist/{child-mcp-config-YTJSYSDO.js.map → child-mcp-config-EXXD4NVX.js.map} +0 -0
- /package/dist/{chunk-4FT35FDA.js.map → chunk-27JU5EIO.js.map} +0 -0
- /package/dist/{chunk-OSYZ7FT7.js.map → chunk-2Y5UAHBN.js.map} +0 -0
- /package/dist/{chunk-ZGY3V7RD.js.map → chunk-4EDNTMRD.js.map} +0 -0
- /package/dist/{chunk-ZZKZ4UHC.js.map → chunk-5AWBRS3R.js.map} +0 -0
- /package/dist/{chunk-S75CT7MY.js.map → chunk-6D7NYWDW.js.map} +0 -0
- /package/dist/{chunk-BYMPT7NU.js.map → chunk-76BPE6FB.js.map} +0 -0
- /package/dist/{chunk-UXEARNIP.js.map → chunk-AFNO7KMH.js.map} +0 -0
- /package/dist/{chunk-XWPTHKA2.js.map → chunk-BOJOJQLH.js.map} +0 -0
- /package/dist/{chunk-PX634ZOU.js.map → chunk-BX5CYNHE.js.map} +0 -0
- /package/dist/{chunk-ZIN26XX5.js.map → chunk-FR2YSJC7.js.map} +0 -0
- /package/dist/{chunk-7H3Z5Q2X.js.map → chunk-GTEGNTFD.js.map} +0 -0
- /package/dist/{chunk-ZHT4TFFA.js.map → chunk-GUAG2ADJ.js.map} +0 -0
- /package/dist/{chunk-OJI53VOI.js.map → chunk-HZXJ3JAZ.js.map} +0 -0
- /package/dist/{chunk-QWEKW6FF.js.map → chunk-IJ5JFATI.js.map} +0 -0
- /package/dist/{chunk-Z7TY67AH.js.map → chunk-J3QSLEHM.js.map} +0 -0
- /package/dist/{chunk-FEB4O6BV.js.map → chunk-KIDH3EWN.js.map} +0 -0
- /package/dist/{chunk-MLAD6ZTK.js.map → chunk-LGSU5C46.js.map} +0 -0
- /package/dist/{chunk-GC3BEJNL.js.map → chunk-MDCSXJWB.js.map} +0 -0
- /package/dist/{chunk-6KVJKH7P.js.map → chunk-OECO3UIW.js.map} +0 -0
- /package/dist/{chunk-O7KV4UGP.js.map → chunk-PBNYJR7F.js.map} +0 -0
- /package/dist/{chunk-HH7IATAZ.js.map → chunk-Q42KWK42.js.map} +0 -0
- /package/dist/{chunk-K4B5N5QH.js.map → chunk-RKQQEJEU.js.map} +0 -0
- /package/dist/{chunk-5I4LPOKG.js.map → chunk-RLBYREDT.js.map} +0 -0
- /package/dist/{chunk-IMLHCK4P.js.map → chunk-V25VUUPP.js.map} +0 -0
- /package/dist/{chunk-367EP2C7.js.map → chunk-V2PQVMGE.js.map} +0 -0
- /package/dist/{chunk-L3F27J72.js.map → chunk-VPFK7LIK.js.map} +0 -0
- /package/dist/{chunk-2UU5ZXTW.js.map → chunk-WO4MB65I.js.map} +0 -0
- /package/dist/{chunk-KNTNSBHK.js.map → chunk-XA3PKYBR.js.map} +0 -0
- /package/dist/{chunk-2AJDFDMI.js.map → chunk-ZGYLWKAZ.js.map} +0 -0
- /package/dist/{chunk-XYOST7XP.js.map → chunk-ZO2FWH6W.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-7XBDSYYS.js.map → cli-circuit-breaker-CLQKA7NG.js.map} +0 -0
- /package/dist/{composite-router-CS6YW7FL.js.map → composite-router-ZIIMWIPS.js.map} +0 -0
- /package/dist/{consensus-vote-FQ7DMGQ5.js.map → consensus-vote-PGPDRVWI.js.map} +0 -0
- /package/dist/{context-retriever-RJ6D67WW.js.map → context-retriever-EMVN6NNW.js.map} +0 -0
- /package/dist/{doctor-deep-HFJGB7HZ.js.map → doctor-deep-4VYC4ZFD.js.map} +0 -0
- /package/dist/{expert-bridge-BSEUAG5B.js.map → expert-bridge-D53IE52J.js.map} +0 -0
- /package/dist/{factory-GXAOB66V.js.map → factory-JAVXQI2M.js.map} +0 -0
- /package/dist/{factory-SJF3GF6T.js.map → factory-R6WV357Q.js.map} +0 -0
- /package/dist/{improvement-review-GCIDNUGA.js.map → improvement-review-MJ6A6HFV.js.map} +0 -0
- /package/dist/{init-opencode-QKPN4FQ6.js.map → init-opencode-JAFMTL6D.js.map} +0 -0
- /package/dist/{issue-triage-VSLGCWHP.js.map → issue-triage-WJFYACOD.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-X7MU2OUO.js.map → pr-reviewer-helpers-LX46ZNDN.js.map} +0 -0
- /package/dist/{registry-command-AQOQHU6R.js.map → registry-command-STRBISOJ.js.map} +0 -0
- /package/dist/{repo-security-plan-23K6ZLFD.js.map → repo-security-plan-BAQRQDVT.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-OOQHAUON.js.map → research-helpers-synthesize-I7CCPVI5.js.map} +0 -0
- /package/dist/{routing-memory-KNXPI7HA.js.map → routing-memory-GASTCLCD.js.map} +0 -0
- /package/dist/{session-memory-GVEMAPT3.js.map → session-memory-DMD4LWZF.js.map} +0 -0
- /package/dist/{setup-command-ICXDEARW.js.map → setup-command-XBER4WR2.js.map} +0 -0
- /package/dist/{setup-config-PYE3DHHH.js.map → setup-config-AVMV3GTY.js.map} +0 -0
- /package/dist/{setup-custom-api-Y2MTGAS7.js.map → setup-custom-api-3WRO27ZG.js.map} +0 -0
- /package/dist/{tool-memory-PE7RNTVL.js.map → tool-memory-734GCMZM.js.map} +0 -0
- /package/dist/{unified-registry-PGK7BFEQ.js.map → unified-registry-STRPR5KB.js.map} +0 -0
- /package/dist/{weather-report-KDNG2TKZ.js.map → weather-report-3LMA4ZVW.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VGINLUME.js";
|
|
4
4
|
import "./chunk-NL7SZQPW.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-EXXD4NVX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostUSD
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-MDCSXJWB.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-GUAG2ADJ.js";
|
|
22
22
|
import {
|
|
23
23
|
getToolMemory
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5AWBRS3R.js";
|
|
25
25
|
import {
|
|
26
26
|
createEvent,
|
|
27
27
|
getGlobalRegistry
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-XA3PKYBR.js";
|
|
29
29
|
import {
|
|
30
30
|
authRemediation,
|
|
31
31
|
delay,
|
|
32
32
|
getAvailableClis,
|
|
33
33
|
withTimeout
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-FWEYQX4N.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-VGINLUME.js";
|
|
63
63
|
import {
|
|
64
64
|
ensureLearningDir,
|
|
65
65
|
getOutcomesFile
|
|
@@ -5737,7 +5737,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
5737
5737
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
5738
5738
|
async function runContrarianCheck(proposal, log) {
|
|
5739
5739
|
try {
|
|
5740
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
5740
|
+
const { executeExpert } = await import("./expert-bridge-D53IE52J.js");
|
|
5741
5741
|
const prompt = [
|
|
5742
5742
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
5743
5743
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -6217,4 +6217,4 @@ export {
|
|
|
6217
6217
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
6218
6218
|
registerConsensusVoteTool
|
|
6219
6219
|
};
|
|
6220
|
-
//# sourceMappingURL=chunk-
|
|
6220
|
+
//# sourceMappingURL=chunk-27JU5EIO.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-AFNO7KMH.js";
|
|
5
5
|
import {
|
|
6
6
|
resolveToken
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HZXJ3JAZ.js";
|
|
8
8
|
import {
|
|
9
9
|
err,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-VGINLUME.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-2Y5UAHBN.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CACHE_TIMEOUTS,
|
|
3
3
|
createLogger,
|
|
4
4
|
getTimeProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-VGINLUME.js";
|
|
6
6
|
|
|
7
7
|
// src/security/trust-types.ts
|
|
8
8
|
import { z } from "zod";
|
|
@@ -560,4 +560,4 @@ export {
|
|
|
560
560
|
resolveReputationGatingMode,
|
|
561
561
|
gateWithReputation
|
|
562
562
|
};
|
|
563
|
-
//# sourceMappingURL=chunk-
|
|
563
|
+
//# sourceMappingURL=chunk-4EDNTMRD.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-J3QSLEHM.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-RLBYREDT.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-VGINLUME.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-5AWBRS3R.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VGINLUME.js";
|
|
8
8
|
|
|
9
9
|
// src/mcp/tools/scanner-registry-fetcher.ts
|
|
10
10
|
import { z } from "zod";
|
|
@@ -721,4 +721,4 @@ export {
|
|
|
721
721
|
generateSecurityPlan,
|
|
722
722
|
buildPlanFromAnalysis
|
|
723
723
|
};
|
|
724
|
-
//# sourceMappingURL=chunk-
|
|
724
|
+
//# sourceMappingURL=chunk-6D7NYWDW.js.map
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
ok
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VGINLUME.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-76BPE6FB.js.map
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
err,
|
|
5
5
|
getErrorMessage,
|
|
6
6
|
ok
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-VGINLUME.js";
|
|
8
8
|
|
|
9
9
|
// src/scm/types.ts
|
|
10
10
|
var ScmError = class extends Error {
|
|
@@ -263,4 +263,4 @@ export {
|
|
|
263
263
|
ScmError,
|
|
264
264
|
GitHubProvider
|
|
265
265
|
};
|
|
266
|
-
//# sourceMappingURL=chunk-
|
|
266
|
+
//# sourceMappingURL=chunk-AFNO7KMH.js.map
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HZXJ3JAZ.js";
|
|
4
4
|
import {
|
|
5
5
|
REGISTRY_PATH,
|
|
6
6
|
getProjectRoot,
|
|
7
7
|
loadPapersRegistry,
|
|
8
8
|
loadTechniquesRegistry,
|
|
9
9
|
savePapersRegistry
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-V2PQVMGE.js";
|
|
11
11
|
import {
|
|
12
12
|
resolveInsideRoot
|
|
13
13
|
} from "./chunk-NUBSJGQZ.js";
|
|
14
14
|
import {
|
|
15
15
|
getToolMemory
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-5AWBRS3R.js";
|
|
17
17
|
import {
|
|
18
18
|
capitalizeWords
|
|
19
19
|
} from "./chunk-6T3EPABN.js";
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getOutcomeStore,
|
|
28
28
|
getTimeProvider,
|
|
29
29
|
registerPersistentDistillerFactory
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VGINLUME.js";
|
|
31
31
|
import {
|
|
32
32
|
ensureLearningDir,
|
|
33
33
|
getRulesFile
|
|
@@ -2686,4 +2686,4 @@ export {
|
|
|
2686
2686
|
summarizeContextForPrompt,
|
|
2687
2687
|
getContextPromptPrefix
|
|
2688
2688
|
};
|
|
2689
|
-
//# sourceMappingURL=chunk-
|
|
2689
|
+
//# sourceMappingURL=chunk-BOJOJQLH.js.map
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveCliSlot
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZGYLWKAZ.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger,
|
|
6
6
|
getTimeProvider,
|
|
7
7
|
isRateLimitText
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-VGINLUME.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-EXXD4NVX.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-R6WV357Q.js");
|
|
97
|
+
const { createCompositeRouter } = await import("./composite-router-ZIIMWIPS.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-CLQKA7NG.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-BX5CYNHE.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAIAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-WUYXJJTL.js";
|
|
4
4
|
import {
|
|
5
5
|
computeCostUSD,
|
|
6
6
|
recordUsageEvent
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-MDCSXJWB.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-VGINLUME.js";
|
|
16
16
|
|
|
17
17
|
// src/config/opencode-bridge.ts
|
|
18
18
|
import { readFileSync } from "fs";
|
|
@@ -191,4 +191,4 @@ export {
|
|
|
191
191
|
discoverModels,
|
|
192
192
|
buildOpenAICompatAdapters
|
|
193
193
|
};
|
|
194
|
-
//# sourceMappingURL=chunk-
|
|
194
|
+
//# sourceMappingURL=chunk-FR2YSJC7.js.map
|
|
@@ -5,24 +5,24 @@ import {
|
|
|
5
5
|
planOptionalParams,
|
|
6
6
|
requireApiKey,
|
|
7
7
|
validateApiKeyPresence
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-HQL7TF57.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-KIDH3EWN.js";
|
|
16
16
|
import {
|
|
17
17
|
CliCircuitBreaker,
|
|
18
18
|
DEFAULT_CIRCUIT_BREAKER_CONFIG
|
|
19
|
-
} from "./chunk-
|
|
19
|
+
} from "./chunk-76BPE6FB.js";
|
|
20
20
|
import {
|
|
21
21
|
getAvailabilityCache
|
|
22
|
-
} from "./chunk-
|
|
22
|
+
} from "./chunk-ZGYLWKAZ.js";
|
|
23
23
|
import {
|
|
24
24
|
generateHyphenId
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-RLBYREDT.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-VGINLUME.js";
|
|
62
62
|
|
|
63
63
|
// src/cli-adapters/cli-to-model-adapter.ts
|
|
64
64
|
var CliToModelAdapter = class {
|
|
@@ -614,16 +614,16 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
614
614
|
* Executes the completion request against the Anthropic API.
|
|
615
615
|
*/
|
|
616
616
|
async executeCompletion(request) {
|
|
617
|
-
const params = this.buildRequestParams(request);
|
|
617
|
+
const { params, dropped } = this.buildRequestParams(request);
|
|
618
618
|
const response = request.signal !== void 0 ? await this.client.messages.create(params, { signal: request.signal }) : await this.client.messages.create(params);
|
|
619
|
-
return this.mapResponse(response, forcesResponseTool(request));
|
|
619
|
+
return this.mapResponse(response, forcesResponseTool(request), dropped);
|
|
620
620
|
}
|
|
621
621
|
/**
|
|
622
622
|
* Executes streaming completion and pushes chunks to the controller.
|
|
623
623
|
*/
|
|
624
624
|
async executeStream(request, controller) {
|
|
625
625
|
try {
|
|
626
|
-
const params = this.buildRequestParams(request);
|
|
626
|
+
const { params } = this.buildRequestParams(request);
|
|
627
627
|
const stream = this.client.messages.stream(params);
|
|
628
628
|
for await (const event of stream) {
|
|
629
629
|
const chunk = this.mapStreamEvent(event);
|
|
@@ -651,11 +651,13 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
651
651
|
if (systemPrompt !== void 0) {
|
|
652
652
|
params.system = systemPrompt;
|
|
653
653
|
}
|
|
654
|
-
this.applyOptionalParams(params, request);
|
|
655
|
-
return params;
|
|
654
|
+
const dropped = this.applyOptionalParams(params, request);
|
|
655
|
+
return { params, dropped };
|
|
656
656
|
}
|
|
657
657
|
/**
|
|
658
658
|
* Applies optional parameters to the request params.
|
|
659
|
+
*
|
|
660
|
+
* @returns the params the seam dropped (#4069) — surfaced as response warnings.
|
|
659
661
|
*/
|
|
660
662
|
applyOptionalParams(params, request) {
|
|
661
663
|
const plan = planOptionalParams(request, this.resolvedModelId);
|
|
@@ -673,11 +675,12 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
673
675
|
params.tools = [...params.tools ?? [], respondTool];
|
|
674
676
|
params.tool_choice = { type: "tool", name: RESPOND_TOOL_NAME };
|
|
675
677
|
}
|
|
678
|
+
return plan.dropped;
|
|
676
679
|
}
|
|
677
680
|
/**
|
|
678
681
|
* Maps Anthropic API response to our CompletionResponse format.
|
|
679
682
|
*/
|
|
680
|
-
mapResponse(response, surfaceRespondTool = false) {
|
|
683
|
+
mapResponse(response, surfaceRespondTool = false, dropped = []) {
|
|
681
684
|
const content = surfaceRespondTool ? mapResponseWithRespondTool(response.content) : response.content.map(mapContentBlock);
|
|
682
685
|
const usage = {
|
|
683
686
|
inputTokens: response.usage.input_tokens,
|
|
@@ -688,7 +691,11 @@ var ClaudeAdapter = class extends BaseAdapter {
|
|
|
688
691
|
content,
|
|
689
692
|
usage,
|
|
690
693
|
stopReason: mapStopReason(response.stop_reason),
|
|
691
|
-
model: response.model
|
|
694
|
+
model: response.model,
|
|
695
|
+
// #4069: surface dropped params (e.g. an omitted temperature) so the caller
|
|
696
|
+
// can see a behavioral param had no effect. Omitted entirely when nothing
|
|
697
|
+
// was dropped (exactOptionalPropertyTypes).
|
|
698
|
+
...dropped.length > 0 ? { warnings: dropped } : {}
|
|
692
699
|
};
|
|
693
700
|
}
|
|
694
701
|
/**
|
|
@@ -1043,7 +1050,7 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
1043
1050
|
if (request.stop !== void 0) {
|
|
1044
1051
|
options["stopSequences"] = request.stop;
|
|
1045
1052
|
}
|
|
1046
|
-
return options;
|
|
1053
|
+
return { options, dropped: plan.dropped };
|
|
1047
1054
|
}
|
|
1048
1055
|
/**
|
|
1049
1056
|
* generateText path (text / absent responseFormat) — unchanged behavior.
|
|
@@ -1099,9 +1106,10 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
1099
1106
|
`SDK not initialized for model '${this.sdkConfig.modelId}' (provider: ${this.sdkProviderId}). Ensure ensureInitialized() completes before calling complete().`
|
|
1100
1107
|
);
|
|
1101
1108
|
}
|
|
1102
|
-
const options = this.buildSdkOptions(request);
|
|
1109
|
+
const { options, dropped } = this.buildSdkOptions(request);
|
|
1103
1110
|
const responseFormat = request.responseFormat;
|
|
1104
|
-
const
|
|
1111
|
+
const base = responseFormat !== void 0 && responseFormat.type !== "text" ? await this.completeStructured(sdk, options, responseFormat) : await this.completeText(sdk, options);
|
|
1112
|
+
const response = dropped.length > 0 ? { ...base, warnings: dropped } : base;
|
|
1105
1113
|
this.logResponse(response);
|
|
1106
1114
|
return ok(response);
|
|
1107
1115
|
} catch (error) {
|
|
@@ -1118,7 +1126,7 @@ var SdkAdapter = class extends BaseAdapter {
|
|
|
1118
1126
|
code: ErrorCode.CONFIG_INVALID
|
|
1119
1127
|
});
|
|
1120
1128
|
}
|
|
1121
|
-
const options = this.buildSdkOptions(request);
|
|
1129
|
+
const { options } = this.buildSdkOptions(request);
|
|
1122
1130
|
yield { type: "message_start", message: { model: this.modelId } };
|
|
1123
1131
|
const result = sdk.streamText(options);
|
|
1124
1132
|
let index = 0;
|
|
@@ -4859,4 +4867,4 @@ export {
|
|
|
4859
4867
|
SdkAdapter,
|
|
4860
4868
|
createAutoAdapter
|
|
4861
4869
|
};
|
|
4862
|
-
//# sourceMappingURL=chunk-
|
|
4870
|
+
//# sourceMappingURL=chunk-FWEYQX4N.js.map
|