@pretense/cli 0.6.21 → 0.6.22
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.
|
@@ -17,7 +17,7 @@ function versionFromPackageJson() {
|
|
|
17
17
|
return void 0;
|
|
18
18
|
}
|
|
19
19
|
}
|
|
20
|
-
var PRETENSE_VERSION = (true ? "0.6.
|
|
20
|
+
var PRETENSE_VERSION = (true ? "0.6.22" : void 0) ?? versionFromPackageJson() ?? "0.0.0-unknown";
|
|
21
21
|
|
|
22
22
|
export {
|
|
23
23
|
PRETENSE_VERSION
|
package/dist/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import {
|
|
3
3
|
PRETENSE_VERSION
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-BWS6UMKL.js";
|
|
5
5
|
import {
|
|
6
6
|
__commonJS,
|
|
7
7
|
__toESM,
|
|
@@ -16657,11 +16657,11 @@ function versionFromCliPackageJson() {
|
|
|
16657
16657
|
return void 0;
|
|
16658
16658
|
}
|
|
16659
16659
|
function productVersion() {
|
|
16660
|
-
return override ?? (true ? "0.6.
|
|
16660
|
+
return override ?? (true ? "0.6.22" : void 0) ?? versionFromCliPackageJson() ?? "0.0.0-unknown";
|
|
16661
16661
|
}
|
|
16662
16662
|
var UNKNOWN_COMMIT = "unknown";
|
|
16663
16663
|
function bakedCommitSha() {
|
|
16664
|
-
return "
|
|
16664
|
+
return "6c0840ef4a9ecc06829215df3a27c5a1b1b603ab".length > 0 ? "6c0840ef4a9ecc06829215df3a27c5a1b1b603ab" : UNKNOWN_COMMIT;
|
|
16665
16665
|
}
|
|
16666
16666
|
var FEATURE_TIERS = {
|
|
16667
16667
|
compliance_export: "pro",
|
|
@@ -18089,7 +18089,12 @@ ${_upgradeTier === "enterprise" ? "Enterprise offers unlimited mutations \u2014
|
|
|
18089
18089
|
action: "blocked",
|
|
18090
18090
|
secretsBlocked: secretsTokenized,
|
|
18091
18091
|
piiRedacted: piiTokenized,
|
|
18092
|
-
|
|
18092
|
+
// TRUTHFUL COUNT: every span this proxy rewrote before egress, of any
|
|
18093
|
+
// kind (identifier tokens + tokenized secrets/PII) — the SAME number the
|
|
18094
|
+
// audit row logs as `mutationsApplied`. `tokensMutated` alone counted
|
|
18095
|
+
// only code identifiers, so a secret-only mutation pushed mutationCount:0
|
|
18096
|
+
// to the live dashboard even though a secret WAS mutated on the wire.
|
|
18097
|
+
mutationCount: mutationsApplied,
|
|
18093
18098
|
bytesScanned: fullText.length,
|
|
18094
18099
|
provider,
|
|
18095
18100
|
findings: riskResult.factors.map((f) => f.name),
|
|
@@ -18171,7 +18176,12 @@ ${_upgradeTier === "enterprise" ? "Enterprise offers unlimited mutations \u2014
|
|
|
18171
18176
|
action: "error",
|
|
18172
18177
|
secretsBlocked: secretsTokenized,
|
|
18173
18178
|
piiRedacted: piiTokenized,
|
|
18174
|
-
|
|
18179
|
+
// TRUTHFUL COUNT: every span this proxy rewrote before egress, of any
|
|
18180
|
+
// kind (identifier tokens + tokenized secrets/PII) — the SAME number the
|
|
18181
|
+
// audit row logs as `mutationsApplied`. `tokensMutated` alone counted
|
|
18182
|
+
// only code identifiers, so a secret-only mutation pushed mutationCount:0
|
|
18183
|
+
// to the live dashboard even though a secret WAS mutated on the wire.
|
|
18184
|
+
mutationCount: mutationsApplied,
|
|
18175
18185
|
bytesScanned: originalSize,
|
|
18176
18186
|
provider,
|
|
18177
18187
|
findings: ["upstream_unreachable"],
|
|
@@ -18210,12 +18220,23 @@ ${_upgradeTier === "enterprise" ? "Enterprise offers unlimited mutations \u2014
|
|
|
18210
18220
|
action: anyTokenized ? "mutated" : "allowed",
|
|
18211
18221
|
secretsBlocked: secretsTokenized,
|
|
18212
18222
|
piiRedacted: piiTokenized,
|
|
18213
|
-
|
|
18223
|
+
// TRUTHFUL COUNT: every span rewritten before egress (identifier tokens +
|
|
18224
|
+
// tokenized secrets/PII), matching the audit row's `mutationsApplied`. Using
|
|
18225
|
+
// `tokensMutated` here made the live dashboard show mutationCount:0 for a
|
|
18226
|
+
// request whose only mutation was a tokenized secret — the exact "meter logs
|
|
18227
|
+
// 0" defect. severity now reflects it too (mutationCount>0 -> 3, not 1).
|
|
18228
|
+
mutationCount: mutationsApplied,
|
|
18214
18229
|
bytesScanned: originalSize,
|
|
18215
18230
|
provider,
|
|
18216
|
-
//
|
|
18217
|
-
//
|
|
18218
|
-
|
|
18231
|
+
// Detector KINDS that fired (e.g. "aws_access_key") — metadata only, the same
|
|
18232
|
+
// kinds the audit row records as `detectorKinds`. NEVER secret VALUES or
|
|
18233
|
+
// identifier NAMES (the SSE bus carries the usage-upload privacy contract).
|
|
18234
|
+
// Plus the unscannable-skip marker so a dashboard/SIEM can alert on coverage
|
|
18235
|
+
// gaps rather than assume full coverage.
|
|
18236
|
+
findings: [
|
|
18237
|
+
...foundTypes,
|
|
18238
|
+
...skippedUnscannable > 0 ? ["skipped_unscannable_field"] : []
|
|
18239
|
+
],
|
|
18219
18240
|
sourceIp: c.req.header("x-forwarded-for") ?? c.req.header("x-real-ip")
|
|
18220
18241
|
}));
|
|
18221
18242
|
if (anyTokenized) {
|
package/dist/postinstall.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pretense/cli",
|
|
3
|
-
"version": "0.6.
|
|
3
|
+
"version": "0.6.22",
|
|
4
4
|
"description": "Local-first AI firewall that mutates proprietary code before sending to LLM APIs",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,13 +25,13 @@
|
|
|
25
25
|
"vitest": "^1.0.0",
|
|
26
26
|
"@pretense/billing": "0.1.0",
|
|
27
27
|
"@pretense/compliance-engine": "0.1.0",
|
|
28
|
-
"@pretense/protocol": "0.1.0",
|
|
29
28
|
"@pretense/learner": "0.2.0",
|
|
30
29
|
"@pretense/mutator": "0.2.0",
|
|
31
30
|
"@pretense/proxy": "0.1.0",
|
|
32
31
|
"@pretense/scanner": "0.2.0",
|
|
33
32
|
"@pretense/scanner-rs": "0.2.0",
|
|
34
|
-
"@pretense/store": "0.2.0"
|
|
33
|
+
"@pretense/store": "0.2.0",
|
|
34
|
+
"@pretense/protocol": "0.1.0"
|
|
35
35
|
},
|
|
36
36
|
"publishConfig": {
|
|
37
37
|
"access": "public",
|