nexus-agents 8.58.3 → 8.58.4
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-PIEUVYH5.js → ast-rule-runner-NIX2R2ER.js} +3 -3
- package/dist/{child-mcp-config-ZXP5YKTJ.js → child-mcp-config-LBCDGXVO.js} +2 -2
- package/dist/{chunk-XKP6IEHD.js → chunk-3A5BXLPV.js} +34 -32
- package/dist/chunk-3A5BXLPV.js.map +1 -0
- package/dist/{chunk-MHXSHTHG.js → chunk-3JJHGGTT.js} +2 -2
- package/dist/{chunk-3JOMLFC7.js → chunk-4FFTWLHX.js} +10 -8
- package/dist/{chunk-3JOMLFC7.js.map → chunk-4FFTWLHX.js.map} +1 -1
- package/dist/{chunk-CGEWEJDT.js → chunk-5HAKYKCY.js} +2 -2
- package/dist/{chunk-QSSP62D3.js → chunk-5RSH7N6W.js} +2 -2
- package/dist/{chunk-HGR5L7C4.js → chunk-67AADYKZ.js} +2 -2
- package/dist/{chunk-JF77LAYJ.js → chunk-6DYJTPER.js} +3 -3
- package/dist/{chunk-RNWUIQTZ.js → chunk-AKC7SODA.js} +2 -2
- package/dist/{chunk-4UEZ2U5Q.js → chunk-AQHLUZ44.js} +2 -2
- package/dist/{chunk-PMWQSCYE.js → chunk-ARUHRGGB.js} +2 -2
- package/dist/{chunk-QMGMD6JB.js → chunk-CDT2CX3J.js} +7 -7
- package/dist/{chunk-NFGBBUZ5.js → chunk-GDOEI664.js} +4 -4
- package/dist/{chunk-3PJ3QW6E.js → chunk-GESWDHFD.js} +2 -2
- package/dist/{chunk-3YICA7KW.js → chunk-HGLRQ4N5.js} +4 -4
- package/dist/{chunk-54TOPQFO.js → chunk-HILSAACO.js} +3 -3
- package/dist/{chunk-NNWFXJGL.js → chunk-HRXWESJB.js} +3 -3
- package/dist/{chunk-TDBR47OD.js → chunk-IK5FLVX4.js} +4 -4
- package/dist/{chunk-VZSMNIRN.js → chunk-J5MWJGDC.js} +2 -2
- package/dist/{chunk-TQERTSKG.js → chunk-KFOYGHUC.js} +2 -2
- package/dist/{chunk-UGJUQEGG.js → chunk-KMEGWPIU.js} +2 -2
- package/dist/{chunk-MEXE444I.js → chunk-KT26CDSA.js} +9 -9
- package/dist/{chunk-CZQRMQEI.js → chunk-MH2IGA2C.js} +2 -2
- package/dist/{chunk-6VKXYQ4V.js → chunk-MTKFVOKA.js} +2 -2
- package/dist/{chunk-EJVVXHMZ.js → chunk-PCGPMJBA.js} +36 -36
- package/dist/{chunk-FYN3HLCV.js → chunk-PSRLUHF2.js} +2 -2
- package/dist/{chunk-YG6MQYRD.js → chunk-QV7WOPZY.js} +3 -3
- package/dist/{chunk-FLFAVKKO.js → chunk-S7Y4BHTF.js} +2 -2
- package/dist/{chunk-GNF77S63.js → chunk-SHH7CZOP.js} +2 -2
- package/dist/{chunk-SZXIRRHP.js → chunk-TZ6FVGJZ.js} +2 -2
- package/dist/{chunk-E3TCGLNB.js → chunk-VUB6RPPH.js} +2 -2
- package/dist/{chunk-ZOGZ3N2I.js → chunk-X7NUFNVJ.js} +5 -5
- package/dist/{chunk-7DD6X5D7.js → chunk-XFUWBS6A.js} +2 -2
- package/dist/{chunk-WV7KAIVF.js → chunk-YDVOA4I3.js} +5 -5
- package/dist/{chunk-BXP5K5TU.js → chunk-YLBVRBVK.js} +4 -4
- package/dist/{chunk-BCX7SDBW.js → chunk-ZTX7DLWE.js} +6 -6
- package/dist/{cli-circuit-breaker-ZH2WM7XG.js → cli-circuit-breaker-G7JVCCHA.js} +3 -3
- package/dist/cli.js +44 -44
- package/dist/{composite-router-TUSPD2LH.js → composite-router-ZBNPUNRE.js} +2 -2
- package/dist/{consensus-vote-PZEJL6KZ.js → consensus-vote-GEVSVYV6.js} +17 -17
- package/dist/{context-retriever-ZCA22Y2N.js → context-retriever-J34XBWSS.js} +8 -8
- package/dist/{doctor-deep-ZXVTSYI7.js → doctor-deep-ITUREQZO.js} +3 -3
- package/dist/{doctor-live-HZKYNHYG.js → doctor-live-UVODP772.js} +10 -10
- package/dist/{expert-bridge-CH5WJXKF.js → expert-bridge-QX2UR2BM.js} +4 -4
- package/dist/{factory-42S5Q2RE.js → factory-EYT7ROYW.js} +5 -5
- package/dist/{factory-S7FJJ7OM.js → factory-WOUE5TFB.js} +9 -9
- package/dist/{improvement-review-WMOCCVVF.js → improvement-review-25ML3PFG.js} +6 -6
- package/dist/index.js +32 -32
- package/dist/{init-opencode-HRC7UQEN.js → init-opencode-K7SFAFPP.js} +6 -6
- package/dist/issue-triage-ULMBQTMC.js +17 -0
- package/dist/{pr-reviewer-helpers-UIRMJ6ZL.js → pr-reviewer-helpers-AS7QF6EZ.js} +4 -4
- package/dist/{registry-command-7ONLPRER.js → registry-command-TBKBERPQ.js} +2 -2
- package/dist/{repo-security-plan-U3O7HMYZ.js → repo-security-plan-IL67SCKX.js} +3 -3
- package/dist/{research-helpers-synthesize-LQFCG5WB.js → research-helpers-synthesize-567ZPTCF.js} +4 -4
- package/dist/{routing-memory-75GUJNG6.js → routing-memory-RHDT5HIP.js} +2 -2
- package/dist/{session-memory-ZO5R4OCY.js → session-memory-UPX3KPG6.js} +3 -3
- package/dist/{setup-config-HIXX6M2Q.js → setup-config-HKQKKAIB.js} +3 -3
- package/dist/{setup-custom-api-5HFRWSFY.js → setup-custom-api-OBAFCX4H.js} +4 -4
- package/dist/setup-data-dir-S2YYGJSS.js +31 -0
- package/dist/{tool-memory-LGCIIQNG.js → tool-memory-NFO4G45N.js} +5 -5
- package/dist/{unified-registry-3GX75GJH.js → unified-registry-RQ34NS65.js} +10 -10
- package/dist/{weather-report-CR3M57AH.js → weather-report-5UHJLCEZ.js} +2 -2
- package/package.json +1 -1
- package/dist/chunk-XKP6IEHD.js.map +0 -1
- package/dist/issue-triage-Z7I7DSB3.js +0 -17
- package/dist/setup-data-dir-34C3UR7A.js +0 -31
- /package/dist/{ast-rule-runner-PIEUVYH5.js.map → ast-rule-runner-NIX2R2ER.js.map} +0 -0
- /package/dist/{child-mcp-config-ZXP5YKTJ.js.map → child-mcp-config-LBCDGXVO.js.map} +0 -0
- /package/dist/{chunk-MHXSHTHG.js.map → chunk-3JJHGGTT.js.map} +0 -0
- /package/dist/{chunk-CGEWEJDT.js.map → chunk-5HAKYKCY.js.map} +0 -0
- /package/dist/{chunk-QSSP62D3.js.map → chunk-5RSH7N6W.js.map} +0 -0
- /package/dist/{chunk-HGR5L7C4.js.map → chunk-67AADYKZ.js.map} +0 -0
- /package/dist/{chunk-JF77LAYJ.js.map → chunk-6DYJTPER.js.map} +0 -0
- /package/dist/{chunk-RNWUIQTZ.js.map → chunk-AKC7SODA.js.map} +0 -0
- /package/dist/{chunk-4UEZ2U5Q.js.map → chunk-AQHLUZ44.js.map} +0 -0
- /package/dist/{chunk-PMWQSCYE.js.map → chunk-ARUHRGGB.js.map} +0 -0
- /package/dist/{chunk-QMGMD6JB.js.map → chunk-CDT2CX3J.js.map} +0 -0
- /package/dist/{chunk-NFGBBUZ5.js.map → chunk-GDOEI664.js.map} +0 -0
- /package/dist/{chunk-3PJ3QW6E.js.map → chunk-GESWDHFD.js.map} +0 -0
- /package/dist/{chunk-3YICA7KW.js.map → chunk-HGLRQ4N5.js.map} +0 -0
- /package/dist/{chunk-54TOPQFO.js.map → chunk-HILSAACO.js.map} +0 -0
- /package/dist/{chunk-NNWFXJGL.js.map → chunk-HRXWESJB.js.map} +0 -0
- /package/dist/{chunk-TDBR47OD.js.map → chunk-IK5FLVX4.js.map} +0 -0
- /package/dist/{chunk-VZSMNIRN.js.map → chunk-J5MWJGDC.js.map} +0 -0
- /package/dist/{chunk-TQERTSKG.js.map → chunk-KFOYGHUC.js.map} +0 -0
- /package/dist/{chunk-UGJUQEGG.js.map → chunk-KMEGWPIU.js.map} +0 -0
- /package/dist/{chunk-MEXE444I.js.map → chunk-KT26CDSA.js.map} +0 -0
- /package/dist/{chunk-CZQRMQEI.js.map → chunk-MH2IGA2C.js.map} +0 -0
- /package/dist/{chunk-6VKXYQ4V.js.map → chunk-MTKFVOKA.js.map} +0 -0
- /package/dist/{chunk-EJVVXHMZ.js.map → chunk-PCGPMJBA.js.map} +0 -0
- /package/dist/{chunk-FYN3HLCV.js.map → chunk-PSRLUHF2.js.map} +0 -0
- /package/dist/{chunk-YG6MQYRD.js.map → chunk-QV7WOPZY.js.map} +0 -0
- /package/dist/{chunk-FLFAVKKO.js.map → chunk-S7Y4BHTF.js.map} +0 -0
- /package/dist/{chunk-GNF77S63.js.map → chunk-SHH7CZOP.js.map} +0 -0
- /package/dist/{chunk-SZXIRRHP.js.map → chunk-TZ6FVGJZ.js.map} +0 -0
- /package/dist/{chunk-E3TCGLNB.js.map → chunk-VUB6RPPH.js.map} +0 -0
- /package/dist/{chunk-ZOGZ3N2I.js.map → chunk-X7NUFNVJ.js.map} +0 -0
- /package/dist/{chunk-7DD6X5D7.js.map → chunk-XFUWBS6A.js.map} +0 -0
- /package/dist/{chunk-WV7KAIVF.js.map → chunk-YDVOA4I3.js.map} +0 -0
- /package/dist/{chunk-BXP5K5TU.js.map → chunk-YLBVRBVK.js.map} +0 -0
- /package/dist/{chunk-BCX7SDBW.js.map → chunk-ZTX7DLWE.js.map} +0 -0
- /package/dist/{cli-circuit-breaker-ZH2WM7XG.js.map → cli-circuit-breaker-G7JVCCHA.js.map} +0 -0
- /package/dist/{composite-router-TUSPD2LH.js.map → composite-router-ZBNPUNRE.js.map} +0 -0
- /package/dist/{consensus-vote-PZEJL6KZ.js.map → consensus-vote-GEVSVYV6.js.map} +0 -0
- /package/dist/{context-retriever-ZCA22Y2N.js.map → context-retriever-J34XBWSS.js.map} +0 -0
- /package/dist/{doctor-deep-ZXVTSYI7.js.map → doctor-deep-ITUREQZO.js.map} +0 -0
- /package/dist/{doctor-live-HZKYNHYG.js.map → doctor-live-UVODP772.js.map} +0 -0
- /package/dist/{expert-bridge-CH5WJXKF.js.map → expert-bridge-QX2UR2BM.js.map} +0 -0
- /package/dist/{factory-42S5Q2RE.js.map → factory-EYT7ROYW.js.map} +0 -0
- /package/dist/{factory-S7FJJ7OM.js.map → factory-WOUE5TFB.js.map} +0 -0
- /package/dist/{improvement-review-WMOCCVVF.js.map → improvement-review-25ML3PFG.js.map} +0 -0
- /package/dist/{init-opencode-HRC7UQEN.js.map → init-opencode-K7SFAFPP.js.map} +0 -0
- /package/dist/{issue-triage-Z7I7DSB3.js.map → issue-triage-ULMBQTMC.js.map} +0 -0
- /package/dist/{pr-reviewer-helpers-UIRMJ6ZL.js.map → pr-reviewer-helpers-AS7QF6EZ.js.map} +0 -0
- /package/dist/{registry-command-7ONLPRER.js.map → registry-command-TBKBERPQ.js.map} +0 -0
- /package/dist/{repo-security-plan-U3O7HMYZ.js.map → repo-security-plan-IL67SCKX.js.map} +0 -0
- /package/dist/{research-helpers-synthesize-LQFCG5WB.js.map → research-helpers-synthesize-567ZPTCF.js.map} +0 -0
- /package/dist/{routing-memory-75GUJNG6.js.map → routing-memory-RHDT5HIP.js.map} +0 -0
- /package/dist/{session-memory-ZO5R4OCY.js.map → session-memory-UPX3KPG6.js.map} +0 -0
- /package/dist/{setup-config-HIXX6M2Q.js.map → setup-config-HKQKKAIB.js.map} +0 -0
- /package/dist/{setup-custom-api-5HFRWSFY.js.map → setup-custom-api-OBAFCX4H.js.map} +0 -0
- /package/dist/{setup-data-dir-34C3UR7A.js.map → setup-data-dir-S2YYGJSS.js.map} +0 -0
- /package/dist/{tool-memory-LGCIIQNG.js.map → tool-memory-NFO4G45N.js.map} +0 -0
- /package/dist/{unified-registry-3GX75GJH.js.map → unified-registry-RQ34NS65.js.map} +0 -0
- /package/dist/{weather-report-CR3M57AH.js.map → weather-report-5UHJLCEZ.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-TZ6FVGJZ.js";
|
|
13
|
+
import "./chunk-6DYJTPER.js";
|
|
14
14
|
import "./chunk-MTYJPPIG.js";
|
|
15
15
|
import "./chunk-BTYRPZON.js";
|
|
16
16
|
import "./chunk-ZPWHCABL.js";
|
|
@@ -26,4 +26,4 @@ export {
|
|
|
26
26
|
loadRules,
|
|
27
27
|
runAstQaRules
|
|
28
28
|
};
|
|
29
|
-
//# sourceMappingURL=ast-rule-runner-
|
|
29
|
+
//# sourceMappingURL=ast-rule-runner-NIX2R2ER.js.map
|
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
} from "./chunk-T46RV7Y7.js";
|
|
4
4
|
import {
|
|
5
5
|
createLogger
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-6DYJTPER.js";
|
|
7
7
|
import "./chunk-MTYJPPIG.js";
|
|
8
8
|
import "./chunk-BTYRPZON.js";
|
|
9
9
|
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-LBCDGXVO.js.map
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
computeCostDetail,
|
|
3
3
|
priceBasisOf
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5RSH7N6W.js";
|
|
5
5
|
import {
|
|
6
6
|
allOf
|
|
7
7
|
} from "./chunk-OQB3XC5O.js";
|
|
@@ -25,20 +25,20 @@ import {
|
|
|
25
25
|
toolSuccessStructured,
|
|
26
26
|
withProgressHeartbeat,
|
|
27
27
|
wrapToolWithTimeout
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-IK5FLVX4.js";
|
|
29
29
|
import {
|
|
30
30
|
VERSION
|
|
31
|
-
} from "./chunk-
|
|
31
|
+
} from "./chunk-XFUWBS6A.js";
|
|
32
32
|
import {
|
|
33
33
|
UNRESOLVED_MODEL_ID,
|
|
34
34
|
assessPanelIndependence,
|
|
35
35
|
countDistinctModels,
|
|
36
36
|
createEvent,
|
|
37
37
|
getGlobalRegistry
|
|
38
|
-
} from "./chunk-
|
|
38
|
+
} from "./chunk-YLBVRBVK.js";
|
|
39
39
|
import {
|
|
40
40
|
getToolMemory
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-HGLRQ4N5.js";
|
|
42
42
|
import {
|
|
43
43
|
authRemediation,
|
|
44
44
|
classifyExtractedError,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
isTimeoutText,
|
|
48
48
|
sleep,
|
|
49
49
|
withTimeout
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-4FFTWLHX.js";
|
|
51
51
|
import {
|
|
52
52
|
AgentError,
|
|
53
53
|
CLI_NAMES,
|
|
@@ -77,7 +77,7 @@ import {
|
|
|
77
77
|
registerPersistentOutcomeStoreFactory,
|
|
78
78
|
resolveClassGuardMs,
|
|
79
79
|
resolveVoteTimeout
|
|
80
|
-
} from "./chunk-
|
|
80
|
+
} from "./chunk-6DYJTPER.js";
|
|
81
81
|
import {
|
|
82
82
|
ensureLearningDir,
|
|
83
83
|
getOutcomesFile
|
|
@@ -1374,12 +1374,12 @@ Example PR-review request_changes response with structured findings:
|
|
|
1374
1374
|
}
|
|
1375
1375
|
]
|
|
1376
1376
|
}`;
|
|
1377
|
-
function buildVotePrompt(proposal, options) {
|
|
1377
|
+
function buildVotePrompt(proposal, options, workspace) {
|
|
1378
1378
|
return `Evaluate the following proposal and provide your vote.
|
|
1379
1379
|
|
|
1380
1380
|
PROPOSAL:
|
|
1381
1381
|
${proposal}
|
|
1382
|
-
${buildOptionsBlock(options)}
|
|
1382
|
+
${buildOptionsBlock(options)}${buildWorkspaceBlock(workspace)}
|
|
1383
1383
|
In addition to your role-specific criteria, assess these workflow-test dimensions:
|
|
1384
1384
|
- Testability: Can the proposed changes be verified with automated tests?
|
|
1385
1385
|
- Workflow integration: Does this fit into existing CI/make/test workflows?
|
|
@@ -1403,6 +1403,14 @@ OPTIONS \u2014 choose exactly ONE of these and name it verbatim in \`selectedOpt
|
|
|
1403
1403
|
${list}
|
|
1404
1404
|
`;
|
|
1405
1405
|
}
|
|
1406
|
+
function buildWorkspaceBlock(workspace) {
|
|
1407
|
+
if (workspace === void 0 || workspace === "") return "";
|
|
1408
|
+
return `
|
|
1409
|
+
REPOSITORY ACCESS:
|
|
1410
|
+
The repository under review is the working directory of this panel: ${workspace}
|
|
1411
|
+
Every seat's file and shell tools run there, and reading it is expected. When the proposal refers to something in that repository \u2014 a PR head, a diff, the files it touches \u2014 read it there before you vote: the proposal text describes the artifact and is not a substitute for it. If your tools cannot read that directory, follow the UNVERIFIABLE rule in your instructions.
|
|
1412
|
+
`;
|
|
1413
|
+
}
|
|
1406
1414
|
function buildSelectionFieldDoc(options) {
|
|
1407
1415
|
if (options === void 0 || options.length === 0) return "";
|
|
1408
1416
|
return "- selectedOption: REQUIRED. Exactly one option from the OPTIONS list above, copied verbatim. Do not invent an option, combine two, or leave it blank \u2014 your selection is what the threshold is measured over.";
|
|
@@ -1626,14 +1634,17 @@ function buildVoteRequest({
|
|
|
1626
1634
|
timeoutMs,
|
|
1627
1635
|
withResponseFormat,
|
|
1628
1636
|
options,
|
|
1629
|
-
project
|
|
1637
|
+
project,
|
|
1638
|
+
workspace
|
|
1630
1639
|
}) {
|
|
1631
1640
|
const base = {
|
|
1632
1641
|
messages: [
|
|
1633
1642
|
// #6110: the seat judges the caller's target project, not this
|
|
1634
1643
|
// repository's. `undefined` renders the `nexus-agents` default.
|
|
1635
1644
|
{ role: "system", content: getVoterPrompts(project)[role] },
|
|
1636
|
-
|
|
1645
|
+
// #6254: and the working directory the seats run in, so a seat with
|
|
1646
|
+
// file tools knows where the artifact is and that reading it is expected.
|
|
1647
|
+
{ role: "user", content: buildVotePrompt(proposal, options, workspace) }
|
|
1637
1648
|
],
|
|
1638
1649
|
// 4000 (#4131): headroom so a findings-bearing verdict (JSON envelope +
|
|
1639
1650
|
// reasoning + structured findings) isn't cut mid-JSON by the token cap and
|
|
@@ -1690,8 +1701,8 @@ async function runVoteCompletion(args) {
|
|
|
1690
1701
|
};
|
|
1691
1702
|
}
|
|
1692
1703
|
async function executeSingleVoteAttempt(role, proposal, adapter, timeoutMs, context = {}) {
|
|
1693
|
-
const { options, project } = context;
|
|
1694
|
-
const completionArgs = { role, proposal, adapter, timeoutMs, options, project };
|
|
1704
|
+
const { options, project, workspace } = context;
|
|
1705
|
+
const completionArgs = { role, proposal, adapter, timeoutMs, options, project, workspace };
|
|
1695
1706
|
let completion = await runVoteCompletion({ ...completionArgs, withResponseFormat: true });
|
|
1696
1707
|
if (!completion.ok && isStructuredOutputUnsupported(completion.error)) {
|
|
1697
1708
|
completion = await runVoteCompletion({ ...completionArgs, withResponseFormat: false });
|
|
@@ -1722,7 +1733,7 @@ function logAbandonedRetries(logger11, role, attempt, maxRetries) {
|
|
|
1722
1733
|
});
|
|
1723
1734
|
}
|
|
1724
1735
|
async function executeWithRetries(opts) {
|
|
1725
|
-
const { role, proposal, adapter, logger: logger11, timeoutMs, maxRetries, options, project } = opts;
|
|
1736
|
+
const { role, proposal, adapter, logger: logger11, timeoutMs, maxRetries, options, project, workspace } = opts;
|
|
1726
1737
|
let lastError = "";
|
|
1727
1738
|
for (let attempt = 0; attempt <= maxRetries; attempt++) {
|
|
1728
1739
|
if (attempt > 0) {
|
|
@@ -1735,7 +1746,8 @@ async function executeWithRetries(opts) {
|
|
|
1735
1746
|
const attemptStart = Date.now();
|
|
1736
1747
|
const result = await executeSingleVoteAttempt(role, proposal, adapter, timeoutMs, {
|
|
1737
1748
|
options,
|
|
1738
|
-
project
|
|
1749
|
+
project,
|
|
1750
|
+
workspace
|
|
1739
1751
|
});
|
|
1740
1752
|
const attemptMs = Date.now() - attemptStart;
|
|
1741
1753
|
if (result.ok) {
|
|
@@ -1928,14 +1940,15 @@ function resolveVoteExecution(options) {
|
|
|
1928
1940
|
maxRetries: options?.maxRetries ?? VOTE_TIMEOUTS.maxRetries,
|
|
1929
1941
|
allowSimulation: options?.allowSimulation ?? false,
|
|
1930
1942
|
declaredOptions: options?.declaredOptions,
|
|
1931
|
-
project: options?.project
|
|
1943
|
+
project: options?.project,
|
|
1944
|
+
workspace: options?.workspace
|
|
1932
1945
|
};
|
|
1933
1946
|
}
|
|
1934
1947
|
async function executeAgentVote(role, proposal, adapter, logger11, options) {
|
|
1935
1948
|
const start = getTimeProvider().now();
|
|
1936
|
-
const {
|
|
1949
|
+
const { allowSimulation, declaredOptions, ...settings } = resolveVoteExecution(options);
|
|
1937
1950
|
logger11.info("Executing vote", { role, model: adapter.modelId, provider: adapter.providerId });
|
|
1938
|
-
const retryOptions = { role, proposal, adapter, logger: logger11,
|
|
1951
|
+
const retryOptions = { role, proposal, adapter, logger: logger11, ...settings };
|
|
1939
1952
|
const result = await executeWithRetries({ ...retryOptions, options: declaredOptions });
|
|
1940
1953
|
const processingTimeMs = getTimeProvider().now() - start;
|
|
1941
1954
|
if (result.ok) {
|
|
@@ -2078,8 +2091,6 @@ async function assignPanelSeats(fallbackAdapter, options, logger11) {
|
|
|
2078
2091
|
async function collectRealVotes(options) {
|
|
2079
2092
|
const logger11 = options.logger ?? defaultLogger;
|
|
2080
2093
|
const { roles, proposal, simulate, allowSimulation } = options;
|
|
2081
|
-
const timeoutMs = options.timeoutMs ?? resolveVoteTimeout();
|
|
2082
|
-
const maxRetries = options.maxRetries ?? VOTE_TIMEOUTS.maxRetries;
|
|
2083
2094
|
if (simulate === true) {
|
|
2084
2095
|
logger11.info("Using simulation mode (explicitly requested)");
|
|
2085
2096
|
return createSimulatedVotes(roles, proposal);
|
|
@@ -2089,16 +2100,7 @@ async function collectRealVotes(options) {
|
|
|
2089
2100
|
return createSimulatedVotes(roles, proposal, "No adapter available");
|
|
2090
2101
|
const roleAdapters = await assignPanelSeats(adapterResult.adapter, options, logger11);
|
|
2091
2102
|
warnIfCodexConcurrencyExceeded(roleAdapters, logger11);
|
|
2092
|
-
const voteOptions = {
|
|
2093
|
-
timeoutMs,
|
|
2094
|
-
maxRetries,
|
|
2095
|
-
allowSimulation: allowSimulation ?? false,
|
|
2096
|
-
// #4472: reaches executeAgentVote, which puts the declared options in the
|
|
2097
|
-
// prompt and resolves each voter's selection against them.
|
|
2098
|
-
declaredOptions: options.declaredOptions,
|
|
2099
|
-
// #6110: likewise the target project, into every seat's system prompt.
|
|
2100
|
-
project: options.project
|
|
2101
|
-
};
|
|
2103
|
+
const voteOptions = resolveVoteExecution({ ...options, workspace: process.cwd() });
|
|
2102
2104
|
const interDelay = options.interAgentDelayMs ?? DEFAULT_INTER_AGENT_DELAY_MS;
|
|
2103
2105
|
const launchInput = {
|
|
2104
2106
|
roles,
|
|
@@ -6154,7 +6156,7 @@ function logPartialProposal(bounded, log) {
|
|
|
6154
6156
|
}
|
|
6155
6157
|
async function runContrarianCheck(proposal, log) {
|
|
6156
6158
|
try {
|
|
6157
|
-
const { executeExpert } = await import("./expert-bridge-
|
|
6159
|
+
const { executeExpert } = await import("./expert-bridge-QX2UR2BM.js");
|
|
6158
6160
|
const bounded = boundArtifactForReview(proposal, CONTRARIAN_PROPOSAL_BUDGET, "proposal");
|
|
6159
6161
|
logPartialProposal(bounded, log);
|
|
6160
6162
|
const result = await executeExpert("architecture", buildContrarianPrompt(bounded));
|
|
@@ -8899,4 +8901,4 @@ export {
|
|
|
8899
8901
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
8900
8902
|
registerConsensusVoteTool
|
|
8901
8903
|
};
|
|
8902
|
-
//# sourceMappingURL=chunk-
|
|
8904
|
+
//# sourceMappingURL=chunk-3A5BXLPV.js.map
|