nexus-agents 8.42.13 → 8.42.14
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-QJGVEG3R.js → chunk-G2XNQ3QR.js} +2 -2
- package/dist/{chunk-CBKAHM7G.js → chunk-IOCYTKGI.js} +15 -4
- package/dist/{chunk-CBKAHM7G.js.map → chunk-IOCYTKGI.js.map} +1 -1
- package/dist/{chunk-OD5KVPTU.js → chunk-J5N4VAJN.js} +3 -3
- package/dist/{chunk-CY3NQVUK.js → chunk-LMHR3TKM.js} +3 -3
- package/dist/{chunk-KWY4GSGQ.js → chunk-PPGJJRGB.js} +2 -2
- package/dist/{chunk-NFM6BODN.js → chunk-QKGWQ4O4.js} +63 -24
- package/dist/{chunk-NFM6BODN.js.map → chunk-QKGWQ4O4.js.map} +1 -1
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-ZIW3GBEI.js → consensus-vote-CCZHRV5O.js} +4 -4
- package/dist/{improvement-review-Q5HPKDBZ.js → improvement-review-CTDPJDC5.js} +4 -4
- package/dist/index.d.ts +17 -0
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-ULWQIFKW.js → setup-data-dir-227ZSEO4.js} +3 -3
- package/package.json +1 -1
- /package/dist/{chunk-QJGVEG3R.js.map → chunk-G2XNQ3QR.js.map} +0 -0
- /package/dist/{chunk-OD5KVPTU.js.map → chunk-J5N4VAJN.js.map} +0 -0
- /package/dist/{chunk-CY3NQVUK.js.map → chunk-LMHR3TKM.js.map} +0 -0
- /package/dist/{chunk-KWY4GSGQ.js.map → chunk-PPGJJRGB.js.map} +0 -0
- /package/dist/{consensus-vote-ZIW3GBEI.js.map → consensus-vote-CCZHRV5O.js.map} +0 -0
- /package/dist/{improvement-review-Q5HPKDBZ.js.map → improvement-review-CTDPJDC5.js.map} +0 -0
- /package/dist/{setup-data-dir-ULWQIFKW.js.map → setup-data-dir-227ZSEO4.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-IOCYTKGI.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2173,4 +2173,4 @@ export {
|
|
|
2173
2173
|
runImprovementReview,
|
|
2174
2174
|
registerImprovementReviewTool
|
|
2175
2175
|
};
|
|
2176
|
-
//# sourceMappingURL=chunk-
|
|
2176
|
+
//# sourceMappingURL=chunk-G2XNQ3QR.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-PPGJJRGB.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-DN63HNKL.js";
|
|
@@ -1544,14 +1544,20 @@ function checkAccess(toolName, policy, args) {
|
|
|
1544
1544
|
}
|
|
1545
1545
|
if (policy.allowedTools === "*") return { decision: "allow" };
|
|
1546
1546
|
if (policy.allowedTools.length === 0) {
|
|
1547
|
+
const refuseVerb = policy.refuseVerbMatched;
|
|
1547
1548
|
return {
|
|
1548
1549
|
decision: "unmeasured",
|
|
1549
|
-
reason: `allowlist arm did not run for tool "${toolName}": the derived policy (source "${policy.source}", mode "${policy.mode}") carries an empty allowedTools, and no producer emits tool names (#5022)
|
|
1550
|
+
reason: `allowlist arm did not run for tool "${toolName}": the derived policy (source "${policy.source}", mode "${policy.mode}") carries an empty allowedTools, and no producer emits tool names (#5022)${refuseVerbNote(refuseVerb)}`,
|
|
1551
|
+
...refuseVerb !== void 0 && { refuseVerbMatched: refuseVerb }
|
|
1550
1552
|
};
|
|
1551
1553
|
}
|
|
1552
1554
|
if (policy.allowedTools.includes(toolName)) return { decision: "allow" };
|
|
1553
1555
|
return decideOnViolation(toolName, policy.mode);
|
|
1554
1556
|
}
|
|
1557
|
+
function refuseVerbNote(refuseVerb) {
|
|
1558
|
+
if (refuseVerb === void 0) return "";
|
|
1559
|
+
return `; the objective matched the destructive verb "${refuseVerb}", which this verdict does NOT deny (#5895)`;
|
|
1560
|
+
}
|
|
1555
1561
|
function decideOnViolation(toolName, mode) {
|
|
1556
1562
|
if (mode === "audit") {
|
|
1557
1563
|
return {
|
|
@@ -1635,7 +1641,12 @@ function createAccessPolicyChainMiddleware(toolName) {
|
|
|
1635
1641
|
reason: decision.reason,
|
|
1636
1642
|
policySource: policy.source,
|
|
1637
1643
|
mode: policy.mode,
|
|
1638
|
-
requestId: ctx.requestContext.requestId
|
|
1644
|
+
requestId: ctx.requestContext.requestId,
|
|
1645
|
+
// #5895: a stable field, so a future counter keys on this rather than
|
|
1646
|
+
// parsing `reason`. Absent unless the objective matched a refuse verb.
|
|
1647
|
+
...decision.refuseVerbMatched !== void 0 && {
|
|
1648
|
+
refuseVerbMatched: decision.refuseVerbMatched
|
|
1649
|
+
}
|
|
1639
1650
|
});
|
|
1640
1651
|
return next(args, ctx);
|
|
1641
1652
|
}
|
|
@@ -2306,4 +2317,4 @@ export {
|
|
|
2306
2317
|
VOTING_THRESHOLDS,
|
|
2307
2318
|
ConsensusMetricsSchema
|
|
2308
2319
|
};
|
|
2309
|
-
//# sourceMappingURL=chunk-
|
|
2320
|
+
//# sourceMappingURL=chunk-IOCYTKGI.js.map
|