nexus-agents 4.26.6 → 4.26.7
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-GVD6K5FS.js → chunk-DJWIO7OX.js} +3 -3
- package/dist/{chunk-FOEWSYSN.js → chunk-ICJI6AIF.js} +2 -2
- package/dist/{chunk-XCJW3MZC.js → chunk-KHAB3HWK.js} +2 -2
- package/dist/{chunk-O3DWYQ4Y.js → chunk-TBKGR6GC.js} +19 -3
- package/dist/{chunk-O3DWYQ4Y.js.map → chunk-TBKGR6GC.js.map} +1 -1
- package/dist/chunk-VK42NFA3.js +7 -0
- package/dist/{chunk-3HVT3RY4.js → chunk-YLSSV4HV.js} +6 -6
- package/dist/{chunk-3HVT3RY4.js.map → chunk-YLSSV4HV.js.map} +1 -1
- package/dist/cli.js +7 -7
- package/dist/{consensus-vote-BHNHDNGM.js → consensus-vote-4DCHWMDH.js} +4 -4
- package/dist/{improvement-review-XUNTLWEJ.js → improvement-review-RMKHA4DN.js} +4 -4
- package/dist/index.js +7 -7
- package/dist/{setup-data-dir-OSD2RLLS.js → setup-data-dir-5PVWTCFL.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-64OC7AXT.js +0 -7
- /package/dist/{chunk-GVD6K5FS.js.map → chunk-DJWIO7OX.js.map} +0 -0
- /package/dist/{chunk-FOEWSYSN.js.map → chunk-ICJI6AIF.js.map} +0 -0
- /package/dist/{chunk-XCJW3MZC.js.map → chunk-KHAB3HWK.js.map} +0 -0
- /package/dist/{chunk-64OC7AXT.js.map → chunk-VK42NFA3.js.map} +0 -0
- /package/dist/{consensus-vote-BHNHDNGM.js.map → consensus-vote-4DCHWMDH.js.map} +0 -0
- /package/dist/{improvement-review-XUNTLWEJ.js.map → improvement-review-RMKHA4DN.js.map} +0 -0
- /package/dist/{setup-data-dir-OSD2RLLS.js.map → setup-data-dir-5PVWTCFL.js.map} +0 -0
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-OQB3XC5O.js";
|
|
7
7
|
import {
|
|
8
8
|
VERSION
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-VK42NFA3.js";
|
|
10
10
|
import {
|
|
11
11
|
capitalize
|
|
12
12
|
} from "./chunk-6T3EPABN.js";
|
|
@@ -1201,7 +1201,7 @@ async function runDoctorFix(result) {
|
|
|
1201
1201
|
writeLine2("\u2500".repeat(40));
|
|
1202
1202
|
let fixCount = 0;
|
|
1203
1203
|
if (!result.dataDirectory.rootExists || result.dataDirectory.subdirectories.some((d) => !d.exists || !d.writable)) {
|
|
1204
|
-
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-
|
|
1204
|
+
const { initDataDirectories: initDataDirectories2, describeDataDirFix: describeDataDirFix2 } = await import("./setup-data-dir-5PVWTCFL.js");
|
|
1205
1205
|
const outcome = describeDataDirFix2(initDataDirectories2());
|
|
1206
1206
|
writeLine2(outcome.line);
|
|
1207
1207
|
if (outcome.counted) fixCount++;
|
|
@@ -1303,4 +1303,4 @@ export {
|
|
|
1303
1303
|
startStdioServer,
|
|
1304
1304
|
closeServer
|
|
1305
1305
|
};
|
|
1306
|
-
//# sourceMappingURL=chunk-
|
|
1306
|
+
//# sourceMappingURL=chunk-DJWIO7OX.js.map
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-TBKGR6GC.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2132,4 +2132,4 @@ export {
|
|
|
2132
2132
|
runImprovementReview,
|
|
2133
2133
|
registerImprovementReviewTool
|
|
2134
2134
|
};
|
|
2135
|
-
//# sourceMappingURL=chunk-
|
|
2135
|
+
//# sourceMappingURL=chunk-ICJI6AIF.js.map
|
|
@@ -23,7 +23,7 @@ import {
|
|
|
23
23
|
toolSuccessStructured,
|
|
24
24
|
withProgressHeartbeat,
|
|
25
25
|
wrapToolWithTimeout
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-TBKGR6GC.js";
|
|
27
27
|
import {
|
|
28
28
|
assessPanelIndependence,
|
|
29
29
|
countDistinctModels,
|
|
@@ -6779,4 +6779,4 @@ export {
|
|
|
6779
6779
|
CONSENSUS_VOTE_TOOL_SCHEMA,
|
|
6780
6780
|
registerConsensusVoteTool
|
|
6781
6781
|
};
|
|
6782
|
-
//# sourceMappingURL=chunk-
|
|
6782
|
+
//# sourceMappingURL=chunk-KHAB3HWK.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-VK42NFA3.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-MJQVSJZB.js";
|
|
@@ -1328,6 +1328,12 @@ function checkAccess(toolName, policy, args) {
|
|
|
1328
1328
|
};
|
|
1329
1329
|
}
|
|
1330
1330
|
if (policy.allowedTools === "*") return { decision: "allow" };
|
|
1331
|
+
if (policy.allowedTools.length === 0) {
|
|
1332
|
+
return {
|
|
1333
|
+
decision: "unmeasured",
|
|
1334
|
+
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)`
|
|
1335
|
+
};
|
|
1336
|
+
}
|
|
1331
1337
|
if (policy.allowedTools.includes(toolName)) return { decision: "allow" };
|
|
1332
1338
|
return decideOnViolation(toolName, policy.mode);
|
|
1333
1339
|
}
|
|
@@ -1417,6 +1423,16 @@ function createAccessPolicyChainMiddleware(toolName) {
|
|
|
1417
1423
|
if (decision.decision === "allow") {
|
|
1418
1424
|
return next(args, ctx);
|
|
1419
1425
|
}
|
|
1426
|
+
if (decision.decision === "unmeasured") {
|
|
1427
|
+
ctx.logger.info("access-policy: allowlist unmeasured", {
|
|
1428
|
+
tool: toolName,
|
|
1429
|
+
reason: decision.reason,
|
|
1430
|
+
policySource: policy.source,
|
|
1431
|
+
mode: policy.mode,
|
|
1432
|
+
requestId: ctx.requestContext.requestId
|
|
1433
|
+
});
|
|
1434
|
+
return next(args, ctx);
|
|
1435
|
+
}
|
|
1420
1436
|
if (decision.decision === "log-and-allow") {
|
|
1421
1437
|
ctx.logger.warn("access-policy: audit violation", {
|
|
1422
1438
|
tool: toolName,
|
|
@@ -1433,7 +1449,7 @@ function createAccessPolicyChainMiddleware(toolName) {
|
|
|
1433
1449
|
});
|
|
1434
1450
|
return next(args, ctx);
|
|
1435
1451
|
}
|
|
1436
|
-
ctx.logger.
|
|
1452
|
+
ctx.logger.warn("access-policy: tool call denied", {
|
|
1437
1453
|
tool: toolName,
|
|
1438
1454
|
reason: decision.reason,
|
|
1439
1455
|
matchedRule: decision.matchedRule,
|
|
@@ -2068,4 +2084,4 @@ export {
|
|
|
2068
2084
|
VOTING_THRESHOLDS,
|
|
2069
2085
|
ConsensusMetricsSchema
|
|
2070
2086
|
};
|
|
2071
|
-
//# sourceMappingURL=chunk-
|
|
2087
|
+
//# sourceMappingURL=chunk-TBKGR6GC.js.map
|