nexus-agents 2.96.0 → 2.97.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/{child-mcp-config-HZUEFKXB.js → child-mcp-config-WVPJIK2J.js} +2 -2
- package/dist/{chunk-23NNSR45.js → chunk-5F7LHFAU.js} +7 -7
- package/dist/{chunk-3ZROPKLV.js → chunk-5LGAPYX7.js} +2 -2
- package/dist/{chunk-SSHL5TAX.js → chunk-65LE457J.js} +2 -2
- package/dist/{chunk-EUUWRNDZ.js → chunk-674NONPG.js} +2 -2
- package/dist/{chunk-NJN5SGU2.js → chunk-6IN4MKDA.js} +7 -7
- package/dist/{chunk-THVTU2UG.js → chunk-7BLBXITB.js} +3 -3
- package/dist/{chunk-P7Y3KLKG.js → chunk-D3OT7TOA.js} +3 -3
- package/dist/{chunk-FHZUOIVC.js → chunk-E43RUPLP.js} +3 -3
- package/dist/{chunk-MVCJEIUU.js → chunk-EY7LL4F4.js} +2 -2
- package/dist/{chunk-7P3UIYJH.js → chunk-FB6AQ2SF.js} +30 -30
- package/dist/{chunk-OHGKVMT3.js → chunk-FDTIRCSL.js} +2 -2
- package/dist/{chunk-AW3HJHJT.js → chunk-GERVGPTF.js} +2 -2
- package/dist/{chunk-Z3XF5LRT.js → chunk-HIWO2WWP.js} +2 -2
- package/dist/{chunk-AJMHTC4J.js → chunk-HWCMNFIS.js} +3 -3
- package/dist/{chunk-AREIPUCD.js → chunk-HZGHPBTV.js} +2 -2
- package/dist/{chunk-ANH2A44T.js → chunk-IHKPGTF3.js} +4 -4
- package/dist/{chunk-2KHD2ANY.js → chunk-JTQLV374.js} +69 -5
- package/dist/chunk-JTQLV374.js.map +1 -0
- package/dist/{chunk-YSYBVLYS.js → chunk-JX6VL7JF.js} +3 -3
- package/dist/{chunk-ONIHS7K7.js → chunk-KKVH3PDK.js} +4 -4
- package/dist/{chunk-XMYJWMWN.js → chunk-ML4IF3PS.js} +4 -4
- package/dist/{chunk-YWIZ3UQ6.js → chunk-N5656LE3.js} +2 -2
- package/dist/{chunk-DTFM37IG.js → chunk-NTBVUWU4.js} +2 -2
- package/dist/{chunk-FPAUF3YB.js → chunk-OKRTOMKX.js} +2 -2
- package/dist/{chunk-ZBQXPP7M.js → chunk-OSHCOBDK.js} +2 -2
- package/dist/{chunk-SRSAMAPP.js → chunk-P2BKWVKF.js} +3 -3
- package/dist/{chunk-INFJH4JX.js → chunk-SAUBPHQ7.js} +4 -4
- package/dist/{chunk-R2KJ22LX.js → chunk-SZNNT2DH.js} +2 -2
- package/dist/{chunk-2472O6HR.js → chunk-T5TYWM5S.js} +2 -2
- package/dist/{chunk-Z7PILY4E.js → chunk-T7IIFT3B.js} +43 -15
- package/dist/chunk-T7IIFT3B.js.map +1 -0
- package/dist/{chunk-MMW4KIBH.js → chunk-UNOOL6EN.js} +2 -2
- package/dist/{chunk-JEK5CHK2.js → chunk-WXDWDGVL.js} +2 -2
- package/dist/{chunk-ICOHLRHT.js → chunk-Y4TTYQUK.js} +5 -5
- package/dist/{cli-circuit-breaker-L6SWUVOP.js → cli-circuit-breaker-STKW4DTL.js} +4 -4
- package/dist/cli.js +84 -39
- package/dist/cli.js.map +1 -1
- package/dist/{composite-router-HFBOUCXD.js → composite-router-POFAM7T4.js} +2 -2
- package/dist/{consensus-vote-YEZIP2JQ.js → consensus-vote-F6HORSU6.js} +13 -13
- package/dist/{context-retriever-PTRDEBBH.js → context-retriever-H22L3WFV.js} +6 -6
- package/dist/{doctor-deep-WHCDAV3Z.js → doctor-deep-HGAC6N5Y.js} +3 -3
- package/dist/{expert-bridge-N4L47MHU.js → expert-bridge-IAQPOJAQ.js} +4 -4
- package/dist/{factory-ZKGYCGDT.js → factory-P2SQS7UM.js} +5 -5
- package/dist/{factory-EFLOKY32.js → factory-ZIZYUDKH.js} +5 -5
- package/dist/{improvement-review-4MTIYCOZ.js → improvement-review-G2HAMGZP.js} +4 -4
- package/dist/index.d.ts +8 -1
- package/dist/index.js +28 -28
- package/dist/index.js.map +1 -1
- package/dist/{init-opencode-42GKRQDA.js → init-opencode-RHCYZDZW.js} +5 -5
- package/dist/{issue-triage-TEPE6VMA.js → issue-triage-VVNQIQW5.js} +5 -5
- package/dist/{pr-reviewer-helpers-G4O22XF6.js → pr-reviewer-helpers-UN7RDPDN.js} +4 -4
- package/dist/{registry-command-32PUZNNG.js → registry-command-OVRRKYHO.js} +2 -2
- package/dist/{repo-security-plan-XWUDQB34.js → repo-security-plan-X74TBYOV.js} +3 -3
- package/dist/{research-helpers-synthesize-YI6S7SN6.js → research-helpers-synthesize-OSP6FGNV.js} +3 -3
- package/dist/{routing-memory-Z3ZCTPFM.js → routing-memory-5T5QJF47.js} +2 -2
- package/dist/{session-memory-5ZZ2SXDE.js → session-memory-X7CJ6X4A.js} +3 -3
- package/dist/{setup-command-U3ILRY5H.js → setup-command-7KP3O3P3.js} +11 -11
- package/dist/{setup-config-WZYLXPDO.js → setup-config-YVIKUNOB.js} +3 -3
- package/dist/{setup-custom-api-K4EN47CP.js → setup-custom-api-FLV4SELI.js} +4 -4
- package/dist/{tool-memory-53Y2TUR3.js → tool-memory-QNEAKRKV.js} +5 -5
- package/dist/{weather-report-JOBWXWQ3.js → weather-report-SUVIXWKI.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-2KHD2ANY.js.map +0 -1
- package/dist/chunk-Z7PILY4E.js.map +0 -1
- /package/dist/{child-mcp-config-HZUEFKXB.js.map → child-mcp-config-WVPJIK2J.js.map} +0 -0
- /package/dist/{chunk-23NNSR45.js.map → chunk-5F7LHFAU.js.map} +0 -0
- /package/dist/{chunk-3ZROPKLV.js.map → chunk-5LGAPYX7.js.map} +0 -0
- /package/dist/{chunk-SSHL5TAX.js.map → chunk-65LE457J.js.map} +0 -0
- /package/dist/{chunk-EUUWRNDZ.js.map → chunk-674NONPG.js.map} +0 -0
- /package/dist/{chunk-NJN5SGU2.js.map → chunk-6IN4MKDA.js.map} +0 -0
- /package/dist/{chunk-THVTU2UG.js.map → chunk-7BLBXITB.js.map} +0 -0
- /package/dist/{chunk-P7Y3KLKG.js.map → chunk-D3OT7TOA.js.map} +0 -0
- /package/dist/{chunk-FHZUOIVC.js.map → chunk-E43RUPLP.js.map} +0 -0
- /package/dist/{chunk-MVCJEIUU.js.map → chunk-EY7LL4F4.js.map} +0 -0
- /package/dist/{chunk-7P3UIYJH.js.map → chunk-FB6AQ2SF.js.map} +0 -0
- /package/dist/{chunk-OHGKVMT3.js.map → chunk-FDTIRCSL.js.map} +0 -0
- /package/dist/{chunk-AW3HJHJT.js.map → chunk-GERVGPTF.js.map} +0 -0
- /package/dist/{chunk-Z3XF5LRT.js.map → chunk-HIWO2WWP.js.map} +0 -0
- /package/dist/{chunk-AJMHTC4J.js.map → chunk-HWCMNFIS.js.map} +0 -0
- /package/dist/{chunk-AREIPUCD.js.map → chunk-HZGHPBTV.js.map} +0 -0
- /package/dist/{chunk-ANH2A44T.js.map → chunk-IHKPGTF3.js.map} +0 -0
- /package/dist/{chunk-YSYBVLYS.js.map → chunk-JX6VL7JF.js.map} +0 -0
- /package/dist/{chunk-ONIHS7K7.js.map → chunk-KKVH3PDK.js.map} +0 -0
- /package/dist/{chunk-XMYJWMWN.js.map → chunk-ML4IF3PS.js.map} +0 -0
- /package/dist/{chunk-YWIZ3UQ6.js.map → chunk-N5656LE3.js.map} +0 -0
- /package/dist/{chunk-DTFM37IG.js.map → chunk-NTBVUWU4.js.map} +0 -0
- /package/dist/{chunk-FPAUF3YB.js.map → chunk-OKRTOMKX.js.map} +0 -0
- /package/dist/{chunk-ZBQXPP7M.js.map → chunk-OSHCOBDK.js.map} +0 -0
- /package/dist/{chunk-SRSAMAPP.js.map → chunk-P2BKWVKF.js.map} +0 -0
- /package/dist/{chunk-INFJH4JX.js.map → chunk-SAUBPHQ7.js.map} +0 -0
- /package/dist/{chunk-R2KJ22LX.js.map → chunk-SZNNT2DH.js.map} +0 -0
- /package/dist/{chunk-2472O6HR.js.map → chunk-T5TYWM5S.js.map} +0 -0
- /package/dist/{chunk-MMW4KIBH.js.map → chunk-UNOOL6EN.js.map} +0 -0
- /package/dist/{chunk-JEK5CHK2.js.map → chunk-WXDWDGVL.js.map} +0 -0
- /package/dist/{chunk-ICOHLRHT.js.map → chunk-Y4TTYQUK.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-L6SWUVOP.js.map → cli-circuit-breaker-STKW4DTL.js.map} +0 -0
- /package/dist/{composite-router-HFBOUCXD.js.map → composite-router-POFAM7T4.js.map} +0 -0
- /package/dist/{consensus-vote-YEZIP2JQ.js.map → consensus-vote-F6HORSU6.js.map} +0 -0
- /package/dist/{context-retriever-PTRDEBBH.js.map → context-retriever-H22L3WFV.js.map} +0 -0
- /package/dist/{doctor-deep-WHCDAV3Z.js.map → doctor-deep-HGAC6N5Y.js.map} +0 -0
- /package/dist/{expert-bridge-N4L47MHU.js.map → expert-bridge-IAQPOJAQ.js.map} +0 -0
- /package/dist/{factory-EFLOKY32.js.map → factory-P2SQS7UM.js.map} +0 -0
- /package/dist/{factory-ZKGYCGDT.js.map → factory-ZIZYUDKH.js.map} +0 -0
- /package/dist/{improvement-review-4MTIYCOZ.js.map → improvement-review-G2HAMGZP.js.map} +0 -0
- /package/dist/{init-opencode-42GKRQDA.js.map → init-opencode-RHCYZDZW.js.map} +0 -0
- /package/dist/{issue-triage-TEPE6VMA.js.map → issue-triage-VVNQIQW5.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-G4O22XF6.js.map → pr-reviewer-helpers-UN7RDPDN.js.map} +0 -0
- /package/dist/{registry-command-32PUZNNG.js.map → registry-command-OVRRKYHO.js.map} +0 -0
- /package/dist/{repo-security-plan-XWUDQB34.js.map → repo-security-plan-X74TBYOV.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-YI6S7SN6.js.map → research-helpers-synthesize-OSP6FGNV.js.map} +0 -0
- /package/dist/{routing-memory-Z3ZCTPFM.js.map → routing-memory-5T5QJF47.js.map} +0 -0
- /package/dist/{session-memory-5ZZ2SXDE.js.map → session-memory-X7CJ6X4A.js.map} +0 -0
- /package/dist/{setup-command-U3ILRY5H.js.map → setup-command-7KP3O3P3.js.map} +0 -0
- /package/dist/{setup-config-WZYLXPDO.js.map → setup-config-YVIKUNOB.js.map} +0 -0
- /package/dist/{setup-custom-api-K4EN47CP.js.map → setup-custom-api-FLV4SELI.js.map} +0 -0
- /package/dist/{tool-memory-53Y2TUR3.js.map → tool-memory-QNEAKRKV.js.map} +0 -0
- /package/dist/{weather-report-JOBWXWQ3.js.map → weather-report-SUVIXWKI.js.map} +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
OpenAIAdapter
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-HWCMNFIS.js";
|
|
4
4
|
import {
|
|
5
5
|
ConfigError,
|
|
6
6
|
createLogger,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
getTimeProvider,
|
|
10
10
|
lookupInTreeCapability,
|
|
11
11
|
ok
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-JTQLV374.js";
|
|
13
13
|
import {
|
|
14
14
|
getNexusDataDir
|
|
15
15
|
} from "./chunk-CH7QIDHQ.js";
|
|
@@ -307,4 +307,4 @@ export {
|
|
|
307
307
|
discoverModels,
|
|
308
308
|
buildOpenAICompatAdapters
|
|
309
309
|
};
|
|
310
|
-
//# sourceMappingURL=chunk-
|
|
310
|
+
//# sourceMappingURL=chunk-JX6VL7JF.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
GitHubProvider,
|
|
3
3
|
ScmError
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-EY7LL4F4.js";
|
|
5
5
|
import {
|
|
6
6
|
ROLE_DEFAULT_TRUST,
|
|
7
7
|
ReputationCache,
|
|
@@ -11,13 +11,13 @@ import {
|
|
|
11
11
|
gateWithReputation,
|
|
12
12
|
resolveReputationGatingMode,
|
|
13
13
|
sanitizeInput
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-SZNNT2DH.js";
|
|
15
15
|
import {
|
|
16
16
|
createLogger,
|
|
17
17
|
err,
|
|
18
18
|
getTimeProvider,
|
|
19
19
|
ok
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-JTQLV374.js";
|
|
21
21
|
|
|
22
22
|
// src/security/trust-classifier.ts
|
|
23
23
|
function mapAuthorAssociation(association) {
|
|
@@ -1368,4 +1368,4 @@ export {
|
|
|
1368
1368
|
IssueTriage,
|
|
1369
1369
|
createIssueTriage
|
|
1370
1370
|
};
|
|
1371
|
-
//# sourceMappingURL=chunk-
|
|
1371
|
+
//# sourceMappingURL=chunk-KKVH3PDK.js.map
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
CliCircuitBreaker,
|
|
3
3
|
DEFAULT_CIRCUIT_BREAKER_CONFIG
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-674NONPG.js";
|
|
5
5
|
import {
|
|
6
6
|
generateHyphenId
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-HZGHPBTV.js";
|
|
8
8
|
import {
|
|
9
9
|
CLI_SUBPROCESS_TIMEOUTS,
|
|
10
10
|
CLI_TIMEOUTS,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getTimeProvider,
|
|
28
28
|
isRateLimitText,
|
|
29
29
|
ok
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-JTQLV374.js";
|
|
31
31
|
|
|
32
32
|
// src/cli-adapters/subprocess-adapter.ts
|
|
33
33
|
import { spawn } from "child_process";
|
|
@@ -3291,4 +3291,4 @@ export {
|
|
|
3291
3291
|
isCliAvailable,
|
|
3292
3292
|
getAvailableClis
|
|
3293
3293
|
};
|
|
3294
|
-
//# sourceMappingURL=chunk-
|
|
3294
|
+
//# sourceMappingURL=chunk-ML4IF3PS.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
MODEL_IDS,
|
|
4
4
|
getTimeProvider,
|
|
5
5
|
resolveModelIdentitySync
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-JTQLV374.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-N5656LE3.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
getErrorMessage
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTQLV374.js";
|
|
4
4
|
|
|
5
5
|
// src/cli/setup-config.ts
|
|
6
6
|
import { copyFileSync, existsSync, mkdirSync, writeFileSync } from "fs";
|
|
@@ -77,4 +77,4 @@ function ensureBackup(outputPath) {
|
|
|
77
77
|
export {
|
|
78
78
|
runConfigInitSync
|
|
79
79
|
};
|
|
80
|
-
//# sourceMappingURL=chunk-
|
|
80
|
+
//# sourceMappingURL=chunk-NTBVUWU4.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
TASK_CATEGORIES,
|
|
3
3
|
getAdaptiveBonus,
|
|
4
4
|
getOutcomeStore
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JTQLV374.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-OKRTOMKX.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
createLogger
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-JTQLV374.js";
|
|
4
4
|
|
|
5
5
|
// src/config/available-models-cache.ts
|
|
6
6
|
var logger = createLogger({ component: "available-models-cache" });
|
|
@@ -150,4 +150,4 @@ export {
|
|
|
150
150
|
getDefaultAvailableModelsCache,
|
|
151
151
|
setDefaultAvailableModelsCache
|
|
152
152
|
};
|
|
153
|
-
//# sourceMappingURL=chunk-
|
|
153
|
+
//# sourceMappingURL=chunk-OSHCOBDK.js.map
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
toolStructuredError,
|
|
7
7
|
toolSuccessStructured,
|
|
8
8
|
wrapToolWithTimeout
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-5LGAPYX7.js";
|
|
10
10
|
import {
|
|
11
11
|
createLogger,
|
|
12
12
|
formatZodError,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
getOutcomeStore,
|
|
15
15
|
getPipelineEventBus,
|
|
16
16
|
getTimeProvider
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-JTQLV374.js";
|
|
18
18
|
import {
|
|
19
19
|
getNexusDataDir
|
|
20
20
|
} from "./chunk-CH7QIDHQ.js";
|
|
@@ -1092,4 +1092,4 @@ export {
|
|
|
1092
1092
|
runImprovementReview,
|
|
1093
1093
|
registerImprovementReviewTool
|
|
1094
1094
|
};
|
|
1095
|
-
//# sourceMappingURL=chunk-
|
|
1095
|
+
//# sourceMappingURL=chunk-P2BKWVKF.js.map
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import {
|
|
2
2
|
resolveToken
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-FDTIRCSL.js";
|
|
4
4
|
import {
|
|
5
5
|
GitHubProvider,
|
|
6
6
|
ScmError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-EY7LL4F4.js";
|
|
8
8
|
import {
|
|
9
9
|
err,
|
|
10
10
|
ok
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JTQLV374.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-SAUBPHQ7.js.map
|
|
@@ -2,7 +2,7 @@ import {
|
|
|
2
2
|
CACHE_TIMEOUTS,
|
|
3
3
|
createLogger,
|
|
4
4
|
getTimeProvider
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-JTQLV374.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-SZNNT2DH.js.map
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
getErrorMessage,
|
|
9
9
|
ok,
|
|
10
10
|
parseBoolEnv
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-JTQLV374.js";
|
|
12
12
|
|
|
13
13
|
// src/cli/research-helpers-synthesize.ts
|
|
14
14
|
import { z } from "zod";
|
|
@@ -1015,4 +1015,4 @@ export {
|
|
|
1015
1015
|
AttributedInsightSchema,
|
|
1016
1016
|
synthesizeResearch
|
|
1017
1017
|
};
|
|
1018
|
-
//# sourceMappingURL=chunk-
|
|
1018
|
+
//# sourceMappingURL=chunk-T5TYWM5S.js.map
|
|
@@ -4,12 +4,12 @@ import {
|
|
|
4
4
|
createStream,
|
|
5
5
|
requireApiKey,
|
|
6
6
|
validateApiKeyPresence
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-GERVGPTF.js";
|
|
8
8
|
import {
|
|
9
9
|
CUSTOM_API_BASE_URL_ENV,
|
|
10
10
|
PROVIDER_ENV_KEYS,
|
|
11
11
|
validateCustomApiBaseUrl
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-65LE457J.js";
|
|
13
13
|
import {
|
|
14
14
|
NOOP_NOTIFIER,
|
|
15
15
|
createMcpNotifier,
|
|
@@ -21,16 +21,16 @@ import {
|
|
|
21
21
|
toolSuccess,
|
|
22
22
|
withProgressHeartbeat,
|
|
23
23
|
wrapToolWithTimeout
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-5LGAPYX7.js";
|
|
25
25
|
import {
|
|
26
26
|
getToolMemory
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IHKPGTF3.js";
|
|
28
28
|
import {
|
|
29
29
|
getDefaultAvailableModelsCache
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-OSHCOBDK.js";
|
|
31
31
|
import {
|
|
32
32
|
CUSTOM_API_DEFAULT_MODEL
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UNOOL6EN.js";
|
|
34
34
|
import {
|
|
35
35
|
createCliAdapter,
|
|
36
36
|
createCliDetectionCache,
|
|
@@ -39,7 +39,7 @@ import {
|
|
|
39
39
|
isCliAvailable,
|
|
40
40
|
sanitizeOutput,
|
|
41
41
|
withTimeout
|
|
42
|
-
} from "./chunk-
|
|
42
|
+
} from "./chunk-ML4IF3PS.js";
|
|
43
43
|
import {
|
|
44
44
|
AgentError,
|
|
45
45
|
CLI_NAMES,
|
|
@@ -78,7 +78,7 @@ import {
|
|
|
78
78
|
resolveCliAlias,
|
|
79
79
|
resolveVoteTimeout,
|
|
80
80
|
toRateLimitError
|
|
81
|
-
} from "./chunk-
|
|
81
|
+
} from "./chunk-JTQLV374.js";
|
|
82
82
|
import {
|
|
83
83
|
ensureLearningDir,
|
|
84
84
|
getOutcomesFile,
|
|
@@ -2628,6 +2628,24 @@ async function executeWithRetries(opts) {
|
|
|
2628
2628
|
|
|
2629
2629
|
// src/cli/voter-agents-deadline.ts
|
|
2630
2630
|
var DEADLINE_MESSAGE = "overall consensus deadline exceeded";
|
|
2631
|
+
function adapterCliKey(adapter) {
|
|
2632
|
+
return adapter.name ?? adapter.providerId;
|
|
2633
|
+
}
|
|
2634
|
+
function createKeyedSerializer() {
|
|
2635
|
+
const tails = /* @__PURE__ */ new Map();
|
|
2636
|
+
return (key, fn) => {
|
|
2637
|
+
const prev = tails.get(key) ?? Promise.resolve();
|
|
2638
|
+
const run = prev.then(fn, fn);
|
|
2639
|
+
tails.set(
|
|
2640
|
+
key,
|
|
2641
|
+
run.then(
|
|
2642
|
+
() => void 0,
|
|
2643
|
+
() => void 0
|
|
2644
|
+
)
|
|
2645
|
+
);
|
|
2646
|
+
return run;
|
|
2647
|
+
};
|
|
2648
|
+
}
|
|
2631
2649
|
function raceWithDeadline(p, role, deadlineMs) {
|
|
2632
2650
|
let timer;
|
|
2633
2651
|
const timeoutP = new Promise((resolve) => {
|
|
@@ -2652,12 +2670,19 @@ async function launchVotesWithOverallDeadline(input) {
|
|
|
2652
2670
|
voteFn
|
|
2653
2671
|
} = input;
|
|
2654
2672
|
const startedAt = Date.now();
|
|
2673
|
+
const serialize = createKeyedSerializer();
|
|
2655
2674
|
const wrapped = roles.map(async (role, i) => {
|
|
2656
2675
|
if (i > 0 && interDelay > 0) await delay(interDelay);
|
|
2657
2676
|
const adapter = roleAdapters.get(role) ?? fallbackAdapter;
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2677
|
+
return serialize(adapterCliKey(adapter), () => {
|
|
2678
|
+
const elapsed = Date.now() - startedAt;
|
|
2679
|
+
const remaining = Math.max(1, overallDeadlineMs - elapsed);
|
|
2680
|
+
return raceWithDeadline(
|
|
2681
|
+
voteFn(role, proposal, adapter, logger11, voteOptions),
|
|
2682
|
+
role,
|
|
2683
|
+
remaining
|
|
2684
|
+
);
|
|
2685
|
+
});
|
|
2661
2686
|
});
|
|
2662
2687
|
const results = await Promise.all(wrapped);
|
|
2663
2688
|
const expired = results.filter((r) => r.source === "error" && r.error === DEADLINE_MESSAGE);
|
|
@@ -6067,6 +6092,9 @@ var VotingStrategySchema = z7.enum([
|
|
|
6067
6092
|
"higher_order",
|
|
6068
6093
|
"opinion_wise"
|
|
6069
6094
|
]);
|
|
6095
|
+
function isHigherOrderStrategy(strategy) {
|
|
6096
|
+
return strategy === "higher_order" || strategy === "opinion_wise";
|
|
6097
|
+
}
|
|
6070
6098
|
var ErrorPolicySchema = z7.enum(["reduce_denominator", "count_as_abstain", "fail_closed"]);
|
|
6071
6099
|
var VoteThresholdSchema = z7.enum(["majority", "supermajority", "unanimous"]);
|
|
6072
6100
|
var ERROR_FLOOR_FRACTION = 0.5;
|
|
@@ -6171,7 +6199,7 @@ function buildResponse(input, result) {
|
|
|
6171
6199
|
if (result.policyReason !== void 0) {
|
|
6172
6200
|
response.policyReason = result.policyReason;
|
|
6173
6201
|
}
|
|
6174
|
-
if (result.strategy
|
|
6202
|
+
if (isHigherOrderStrategy(result.strategy) && result.higherOrderResult) {
|
|
6175
6203
|
response.higherOrderMetadata = {
|
|
6176
6204
|
posteriorApproval: result.higherOrderResult.posteriorApproval,
|
|
6177
6205
|
posteriorRejection: result.higherOrderResult.posteriorRejection,
|
|
@@ -6909,7 +6937,7 @@ async function processVotesThroughEngine(engineVotes, proposal, algorithm) {
|
|
|
6909
6937
|
return resultRes.value;
|
|
6910
6938
|
}
|
|
6911
6939
|
function runHigherOrderVoting(strategy, voteMap, logger11) {
|
|
6912
|
-
if (strategy
|
|
6940
|
+
if (!isHigherOrderStrategy(strategy)) return void 0;
|
|
6913
6941
|
const hovStrategy = new HigherOrderVotingStrategy();
|
|
6914
6942
|
const tracker = getOrCreateCorrelationTracker();
|
|
6915
6943
|
const result = hovStrategy.aggregate(voteMap, tracker);
|
|
@@ -6968,7 +6996,7 @@ async function processVotesWithCascade(engineVotes, opts) {
|
|
|
6968
6996
|
var CONTRARIAN_ESCALATION_THRESHOLD = 0.8;
|
|
6969
6997
|
async function runContrarianCheck(proposal, log) {
|
|
6970
6998
|
try {
|
|
6971
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
6999
|
+
const { executeExpert } = await import("./expert-bridge-IAQPOJAQ.js");
|
|
6972
7000
|
const prompt = [
|
|
6973
7001
|
"You are a contrarian analyst. Your job is to find reasons this proposal should be REJECTED.",
|
|
6974
7002
|
"Look for: YAGNI (not needed), MISALIGNED (wrong tech/architecture), SECURITY_RISK, SCOPE_CREEP.",
|
|
@@ -7459,4 +7487,4 @@ export {
|
|
|
7459
7487
|
CONSENSUS_VOTE_OUTPUT_SCHEMA,
|
|
7460
7488
|
registerConsensusVoteTool
|
|
7461
7489
|
};
|
|
7462
|
-
//# sourceMappingURL=chunk-
|
|
7490
|
+
//# sourceMappingURL=chunk-T7IIFT3B.js.map
|