nexus-agents 8.53.1 → 8.53.3
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/{chunk-XM7B5GV4.js → chunk-2BDJXVUA.js} +30 -14
- package/dist/chunk-2BDJXVUA.js.map +1 -0
- package/dist/{chunk-GH66ETYT.js → chunk-43OAT6RX.js} +3 -3
- package/dist/{chunk-QEWI6GVT.js → chunk-EER3R4BG.js} +2 -2
- package/dist/{chunk-WMZM43DN.js → chunk-O3LB3FXH.js} +2 -2
- package/dist/{chunk-N622Q4YD.js → chunk-P55GFE2P.js} +7 -7
- package/dist/{chunk-QQ6ITF5N.js → chunk-UICFICHS.js} +2 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-6IMRSMMH.js → consensus-vote-SHMTZRHM.js} +4 -4
- package/dist/{consensus-vote-types-DHU2Ivac.d.ts → consensus-vote-types-CA7Xuzl3.d.ts} +2 -1
- package/dist/{improvement-review-KYS2APIF.js → improvement-review-U5QQVY5Y.js} +4 -4
- package/dist/index.d.ts +2 -2
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-E5IHNNTI.js → setup-data-dir-LB7YGHSQ.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-XM7B5GV4.js.map +0 -1
- /package/dist/{chunk-GH66ETYT.js.map → chunk-43OAT6RX.js.map} +0 -0
- /package/dist/{chunk-QEWI6GVT.js.map → chunk-EER3R4BG.js.map} +0 -0
- /package/dist/{chunk-WMZM43DN.js.map → chunk-O3LB3FXH.js.map} +0 -0
- /package/dist/{chunk-N622Q4YD.js.map → chunk-P55GFE2P.js.map} +0 -0
- /package/dist/{chunk-QQ6ITF5N.js.map → chunk-UICFICHS.js.map} +0 -0
- /package/dist/{consensus-vote-6IMRSMMH.js.map → consensus-vote-SHMTZRHM.js.map} +0 -0
- /package/dist/{improvement-review-KYS2APIF.js.map → improvement-review-U5QQVY5Y.js.map} +0 -0
- /package/dist/{setup-data-dir-E5IHNNTI.js.map → setup-data-dir-LB7YGHSQ.js.map} +0 -0
|
@@ -23,10 +23,10 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-O3LB3FXH.js";
|
|
27
27
|
import {
|
|
28
28
|
VERSION
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-EER3R4BG.js";
|
|
30
30
|
import {
|
|
31
31
|
UNRESOLVED_MODEL_ID,
|
|
32
32
|
assessPanelIndependence,
|
|
@@ -202,11 +202,25 @@ function reportPanelModelIndependence(modelIds, roleCount, phase, logger11) {
|
|
|
202
202
|
|
|
203
203
|
// src/cli/voter-unverifiable.ts
|
|
204
204
|
var UNVERIFIABLE_STDERR_RE = /\bbwrap: |RTM_NEWADDR|\bsandbox\b[^\n]*\b(?:denied|failed|not permitted)\b/i;
|
|
205
|
-
var UNVERIFIABLE_REASONING_RE = /\
|
|
206
|
-
|
|
205
|
+
var UNVERIFIABLE_REASONING_RE = /\bbwrap: |RTM_NEWADDR|\b(?:repository|source|shell) (?:reads?|access|execution|inspection) failed\b|\bcould not (?:read|inspect) the artifact\b/i;
|
|
206
|
+
var UNVERIFIABLE_PREFIX_RE = /^\s*UNVERIFIABLE:/i;
|
|
207
|
+
var FILE_LINE_CITATION_RE = /(?:^|[\s(`'"])[\w./-]*[\w-]+\.[a-z][a-z\d]{0,5}:\d+\b/i;
|
|
208
|
+
var RECOVERY_PHRASE_RE = /\b(?:retry|second attempt|subsequent attempt|re-?run) succeeded\b|\bthen read\b|\bwas able to read\b/i;
|
|
209
|
+
function assertsSuccessfulRead(reasoning) {
|
|
210
|
+
return RECOVERY_PHRASE_RE.test(reasoning) || FILE_LINE_CITATION_RE.test(reasoning);
|
|
211
|
+
}
|
|
212
|
+
function classifyUnverifiable(evidence, onReasoningRule) {
|
|
207
213
|
const stderr = evidence.cliStderr ?? "";
|
|
208
214
|
if (stderr !== "" && UNVERIFIABLE_STDERR_RE.test(stderr)) return "stderr";
|
|
209
|
-
|
|
215
|
+
const { reasoning } = evidence;
|
|
216
|
+
if (UNVERIFIABLE_PREFIX_RE.test(reasoning)) {
|
|
217
|
+
onReasoningRule?.("prefix");
|
|
218
|
+
return "reasoning";
|
|
219
|
+
}
|
|
220
|
+
if (UNVERIFIABLE_REASONING_RE.test(reasoning) && !assertsSuccessfulRead(reasoning)) {
|
|
221
|
+
onReasoningRule?.("error_without_recovery");
|
|
222
|
+
return "reasoning";
|
|
223
|
+
}
|
|
210
224
|
return void 0;
|
|
211
225
|
}
|
|
212
226
|
function markUnverifiable(result, signal) {
|
|
@@ -1275,18 +1289,20 @@ function buildLlmVoteResult(role, vote, usage, adapter, processingTimeMs) {
|
|
|
1275
1289
|
};
|
|
1276
1290
|
}
|
|
1277
1291
|
function finalizeParsedVote(built, cliStderr, logger11) {
|
|
1278
|
-
const
|
|
1292
|
+
const { role, model } = built;
|
|
1293
|
+
const signal = classifyUnverifiable(
|
|
1294
|
+
{ cliStderr, reasoning: built.vote.reasoning },
|
|
1295
|
+
(rule) => {
|
|
1296
|
+
logger11.debug("Unverifiable reasoning fallback fired", { role, rule });
|
|
1297
|
+
}
|
|
1298
|
+
);
|
|
1279
1299
|
if (signal === void 0) {
|
|
1280
|
-
logger11.info("Vote completed", {
|
|
1281
|
-
role: built.role,
|
|
1282
|
-
model: built.model,
|
|
1283
|
-
decision: built.vote.decision
|
|
1284
|
-
});
|
|
1300
|
+
logger11.info("Vote completed", { role, model, decision: built.vote.decision });
|
|
1285
1301
|
return built;
|
|
1286
1302
|
}
|
|
1287
1303
|
logger11.warn("Seat could not read the artifact \u2014 recorded as unverifiable, decision discarded", {
|
|
1288
|
-
role
|
|
1289
|
-
model
|
|
1304
|
+
role,
|
|
1305
|
+
model,
|
|
1290
1306
|
signal,
|
|
1291
1307
|
discardedDecision: built.vote.decision,
|
|
1292
1308
|
...built.selectedOption !== void 0 ? { discardedOption: built.selectedOption } : {}
|
|
@@ -8314,4 +8330,4 @@ export {
|
|
|
8314
8330
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
8315
8331
|
registerConsensusVoteTool
|
|
8316
8332
|
};
|
|
8317
|
-
//# sourceMappingURL=chunk-
|
|
8333
|
+
//# sourceMappingURL=chunk-2BDJXVUA.js.map
|