nexus-agents 8.55.7 → 8.56.0
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-FNL43KEP.js → chunk-5W55WXLY.js} +2 -2
- package/dist/{chunk-WJRD5RYE.js → chunk-BWP3RTR2.js} +15 -11
- package/dist/chunk-BWP3RTR2.js.map +1 -0
- package/dist/{chunk-LAUGODMA.js → chunk-HXITPFTR.js} +75 -37
- package/dist/{chunk-LAUGODMA.js.map → chunk-HXITPFTR.js.map} +1 -1
- package/dist/{chunk-2CD7UKWG.js → chunk-M2ZQXDSO.js} +3 -3
- package/dist/{chunk-7KVII2DY.js → chunk-MO6FSEFJ.js} +265 -148
- package/dist/{chunk-7KVII2DY.js.map → chunk-MO6FSEFJ.js.map} +1 -1
- package/dist/{chunk-YJPKZHKU.js → chunk-UURJGJTW.js} +2 -2
- package/dist/cli.d.ts +1 -1
- package/dist/cli.js +86 -27
- package/dist/cli.js.map +1 -1
- package/dist/{consensus-vote-X5C5PLII.js → consensus-vote-JHCRRDH5.js} +4 -4
- package/dist/{improvement-review-EALQJCQM.js → improvement-review-MTQWL4BT.js} +4 -4
- package/dist/index.d.ts +29 -2
- package/dist/index.js +6 -6
- package/dist/{setup-data-dir-Q4AC6LWI.js → setup-data-dir-RXY2PWDX.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-WJRD5RYE.js.map +0 -1
- /package/dist/{chunk-FNL43KEP.js.map → chunk-5W55WXLY.js.map} +0 -0
- /package/dist/{chunk-2CD7UKWG.js.map → chunk-M2ZQXDSO.js.map} +0 -0
- /package/dist/{chunk-YJPKZHKU.js.map → chunk-UURJGJTW.js.map} +0 -0
- /package/dist/{consensus-vote-X5C5PLII.js.map → consensus-vote-JHCRRDH5.js.map} +0 -0
- /package/dist/{improvement-review-EALQJCQM.js.map → improvement-review-MTQWL4BT.js.map} +0 -0
- /package/dist/{setup-data-dir-Q4AC6LWI.js.map → setup-data-dir-RXY2PWDX.js.map} +0 -0
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
toolStructuredError,
|
|
8
8
|
toolSuccessStructured,
|
|
9
9
|
wrapToolWithTimeout
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-BWP3RTR2.js";
|
|
11
11
|
import {
|
|
12
12
|
JsonlStore,
|
|
13
13
|
SECURITY_KEYWORDS,
|
|
@@ -2278,4 +2278,4 @@ export {
|
|
|
2278
2278
|
runImprovementReview,
|
|
2279
2279
|
registerImprovementReviewTool
|
|
2280
2280
|
};
|
|
2281
|
-
//# sourceMappingURL=chunk-
|
|
2281
|
+
//# sourceMappingURL=chunk-5W55WXLY.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import {
|
|
2
2
|
VERSION
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-UURJGJTW.js";
|
|
4
4
|
import {
|
|
5
5
|
emitClawGuardViolation
|
|
6
6
|
} from "./chunk-VZSMNIRN.js";
|
|
@@ -1100,16 +1100,19 @@ function emitToolAudit({
|
|
|
1100
1100
|
...nearMiss ? { policyDecision: "would_deny" } : {}
|
|
1101
1101
|
});
|
|
1102
1102
|
}
|
|
1103
|
-
function
|
|
1104
|
-
if (fields === void 0) return {};
|
|
1105
|
-
if (typeof args !== "object" || args === null) return {};
|
|
1103
|
+
function measureRawFields(fields, args) {
|
|
1104
|
+
if (fields === void 0) return { rawFieldHashes: {}, rawFieldBytes: {} };
|
|
1105
|
+
if (typeof args !== "object" || args === null) return { rawFieldHashes: {}, rawFieldBytes: {} };
|
|
1106
1106
|
const source = args;
|
|
1107
|
-
const
|
|
1107
|
+
const rawFieldHashes = {};
|
|
1108
|
+
const rawFieldBytes = {};
|
|
1108
1109
|
for (const [field, hash] of Object.entries(fields)) {
|
|
1109
1110
|
const value = source[field];
|
|
1110
|
-
if (typeof value
|
|
1111
|
+
if (typeof value !== "string") continue;
|
|
1112
|
+
rawFieldHashes[field] = hash(value);
|
|
1113
|
+
rawFieldBytes[field] = Buffer.byteLength(value, "utf-8");
|
|
1111
1114
|
}
|
|
1112
|
-
return
|
|
1115
|
+
return { rawFieldHashes, rawFieldBytes };
|
|
1113
1116
|
}
|
|
1114
1117
|
function unsanitizedContext(config, args) {
|
|
1115
1118
|
return {
|
|
@@ -1117,7 +1120,7 @@ function unsanitizedContext(config, args) {
|
|
|
1117
1120
|
commentsRemoved: 0,
|
|
1118
1121
|
fieldsModified: 0,
|
|
1119
1122
|
tagsRemoved: 0,
|
|
1120
|
-
|
|
1123
|
+
...measureRawFields(config.rawHashFields, args)
|
|
1121
1124
|
};
|
|
1122
1125
|
}
|
|
1123
1126
|
function runPreChecks(config, args, mode, requestContext, logger) {
|
|
@@ -1138,8 +1141,9 @@ function runPreChecks(config, args, mode, requestContext, logger) {
|
|
|
1138
1141
|
commentsRemoved: sanitizeResult.commentsRemoved,
|
|
1139
1142
|
fieldsModified: sanitizeResult.modifiedCount,
|
|
1140
1143
|
tagsRemoved: sanitizeResult.tagsRemoved,
|
|
1141
|
-
// #5385: hashed from `args`, the RAW input, before
|
|
1142
|
-
|
|
1144
|
+
// #5385/#6177: hashed and measured from `args`, the RAW input, before
|
|
1145
|
+
// sanitization touched it.
|
|
1146
|
+
...measureRawFields(config.rawHashFields, args)
|
|
1143
1147
|
};
|
|
1144
1148
|
const refusal = checkSecurityTier(config.securityTier ?? "standard", sanitizeResult, logger);
|
|
1145
1149
|
if (refusal !== null) {
|
|
@@ -2374,4 +2378,4 @@ export {
|
|
|
2374
2378
|
DEFAULT_CONSENSUS_CONFIG,
|
|
2375
2379
|
ConsensusMetricsSchema
|
|
2376
2380
|
};
|
|
2377
|
-
//# sourceMappingURL=chunk-
|
|
2381
|
+
//# sourceMappingURL=chunk-BWP3RTR2.js.map
|