jso-protector 0.4.11 → 0.4.12

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/CHANGELOG.md CHANGED
@@ -1,1217 +1,1237 @@
1
- # Changelog
2
-
3
- ## 0.4.11 - 2026-09-03
4
-
5
- Anonymous runs now say what a free account is worth.
6
-
7
- - Every anonymous run printed "Run `javascriptobfuscator login` to use your
8
- plan". That sentence is addressed to someone who already has a plan, and it
9
- only ever prints for someone who does not - so the one moment the CLI has a
10
- new user's attention was spent on something they could not act on. It now
11
- states the real numbers: anonymous runs are capped at 5 per hour, a free
12
- account raises that to 100 per hour, with a link to create one.
13
- - The difference was never invented for this release; it has always been in the
14
- server's rate limiter (2/min + 5/hour keyless, 10/min + 100/hour signed in,
15
- per IP). It had simply never been said out loud.
16
- - Why it matters now: until 2026-09-03 the server's limiter keyed on the
17
- Cloudflare edge address rather than the caller's, so a single client spread
18
- across edge nodes almost never met the anonymous cap. With that fixed the cap
19
- binds for the first time, and a run that exceeds it can wait up to an hour.
20
- The 429 body names both ceilings too, instead of saying an account "raises
21
- the limit substantially".
22
-
23
- No API, option or output changes.
24
-
25
- ## 0.4.10 - 2026-09-02
26
-
27
- Examples README pointed at the wrong version.
28
-
29
- - The examples guide told customers to `npm install --save-dev
30
- javascriptobfuscator-com@0.4.7` while the package was two releases newer.
31
- Because `examples/` ships inside the tarball, published 0.4.8 and 0.4.9
32
- carried that stale instruction. It now installs the current version, and the
33
- publish gate (`prepublishOnly`) now runs `verify:examples`, so a mismatched
34
- README blocks the release instead of shipping and only failing CI afterward.
35
-
36
- ## 0.4.9 - 2026-09-01
37
-
38
- README only. No behaviour changes.
39
-
40
- - The npm registry truncates a README at 65,536 characters and ours is 100,725,
41
- so a third of it never rendered on the package page - including `--local`
42
- (protect without sending source), watermarking, signed release attestations,
43
- the migration guide and the security section. The 30 KB command reference and
44
- the PCI evidence walkthrough now sit at the end and take the truncation
45
- instead; everything that explains what the tool is fits above the cut. Nothing
46
- was deleted, and the full reference is on the docs site.
47
- - Adds the measured dependency comparison against `javascript-obfuscator` 5.6.0:
48
- 0 dependencies against 23, 3 installed directories against 120, 1s against 9s,
49
- 2 MB against 56 MB. That was already true and stated once as an adjective; a
50
- build tool sold on reducing risk should show the number.
51
-
52
- ## 0.4.8 - 2026-09-01
53
-
54
- The rate-limit message a first run actually sees.
55
-
56
- - A keyless run that tripped the free-tier cap used to print
57
- `API returned non-JSON response (429): The custom error module does not
58
- recognize this error.` That sentence was IIS's, not ours: the server writes a
59
- proper JSON body, and IIS's custom-error module was discarding it before it
60
- left the machine. Fixed server-side; the message now says which of the two
61
- ceilings was hit and how to raise it.
62
- - The CLI no longer appends its paid-plan hint to a 429. The word "limit" in a
63
- rate-limit message matched the billing regexp, so someone with no account was
64
- being told to go check their subscription state.
65
- - `--help` now shows the positional form. `jso-protector app.js` has always
66
- worked and writes `app-obfuscated.js` beside the input - the same default the
67
- competitor's CLI uses - but nothing in the help output said so, so anyone
68
- arriving with that muscle memory had no way to find it.
69
-
70
- ## 0.4.7 - 2026-08-31
71
-
72
- Attribution only. No behaviour changes.
73
-
74
- - The dashboard links the CLI opens now carry a source tag: `src=cli-login`
75
- from `login`, and `src=cli-nokey` / `src=cli-nopwd` from the missing-credential
76
- errors. A sign-up that starts at the CLI was previously indistinguishable from
77
- a web sign-up, which made the free first run impossible to measure.
78
- - Held back until the site could actually read the tag. It was being lost twice
79
- on the way: the dashboard bounced signed-out visitors to sign-in without the
80
- query string, and the sign-in page then hardcoded its own tag over whatever
81
- arrived. Both are fixed and live, verified end to end before this release.
82
-
83
- ## 0.4.6 - 2026-08-31
84
-
85
- Documentation only. No behaviour changes.
86
-
87
- - **The README said you needed an API key to use this package.** Since 0.4.5
88
- that is false for a first run, and it was the first thing anyone read on
89
- npmjs.com - so the page was arguing against the feature the release shipped.
90
- The quickstart now says no account is needed, "What you need" answers
91
- "nothing, to start", and the payment section describes the free tier and where
92
- it ends instead of claiming the package unlocks nothing on its own.
93
- - The quickstart installs `javascriptobfuscator-com` and calls
94
- `javascriptobfuscator`, the current names.
95
-
96
- ## 0.4.5 - 2026-08-31
97
-
98
- - **The first command now works without an account.** With no credentials at
99
- all the CLI sends the request anonymously and the service runs it on the free
100
- tier - up to 20 files and 200 KB per request, no VM protection, rate limited
101
- per IP. You get real protected output instead of an error, and the run says
102
- so on stderr. `javascriptobfuscator login` switches to your plan.
103
- - Half-configured credentials are still an error. Only *no* credentials means
104
- anonymous, so a key that stopped resolving cannot silently downgrade a paid
105
- build to the free tier.
106
-
107
- ## 0.4.4 - 2026-08-31
108
-
109
- - **`javascriptobfuscator login` saves your credentials once, for every project
110
- on the machine.** Getting a first protected build used to take about seven
111
- steps: install, hit the error, find the site, register, verify email, locate
112
- the dashboard, copy two values, work out two platform-specific environment
113
- variable names, set them, and run again - then set them again in the next
114
- shell. `login` opens the dashboard, takes the two values (the password is not
115
- echoed), and stores them in `~/.jso-protector/credentials.json`.
116
- - `javascriptobfuscator logout` removes them.
117
- - Stored credentials are resolved **last**, after an explicit flag, a project
118
- config and the environment variables, so no existing CI setup changes
119
- behaviour.
120
- - The missing-credential errors now name `login` as the fastest fix.
121
- - The store is written 0600. That is real protection on POSIX; Windows does not
122
- honour the mode, so there it is only as protected as your user profile - the
123
- same position as `~/.npmrc`.
124
-
125
- ## 0.4.3 - 2026-08-30
126
-
127
- Error messages only. No behaviour changes.
128
-
129
- - **The "Missing API key" error now says where to get one.** It previously named
130
- three places to *put* a key and no place to *obtain* one, which left a first-time
131
- user with a dead end: measured against `javascript-obfuscator`, their first
132
- command emits working protected output while ours printed this error. The
133
- message now links the dashboard page that issues a free key, and the npm setup
134
- guide. Same for "Missing API password", which is shown beside the key.
135
- - Applied at all six sites - the protect path, `--doctor`, and config validation -
136
- so the guidance is the same wherever you hit it.
137
- - Also published under the package's new name, `javascriptobfuscator-com`.
138
-
139
- ## 0.4.2 - 2026-08-27
140
-
141
- Metadata only. No behaviour changes.
142
-
143
- - **The package has a public source repository**:
144
- [richtexteditor/jso-protector](https://github.com/richtexteditor/jso-protector).
145
- npm now shows Repository and Issues links instead of nothing, which for a
146
- security tool is the difference between auditable and "trust us". The
147
- repository holds this package and nothing else - the protection engine runs
148
- on the hosted API, or on your machine through the bundled `jso-local`
149
- executable, and is not part of it.
150
- - `bugs` points at GitHub issues and support@javascriptobfuscator.com.
151
-
152
- ## 0.4.1 - 2026-08-27
153
-
154
- Documentation only. No behaviour changes: the CLI, the Node API, the plugins,
155
- and the protection engine are byte-for-byte the same as 0.4.0.
156
-
157
- - **The npm page told visitors to install from a local path.** The README's
158
- first instruction was `npm install --save-dev ./packages/jso-protector`, and
159
- a later paragraph said the package was "intentionally local-only" and should
160
- not go in a public registry — text written while it was, and left in place
161
- when it was published. Someone arriving from npm search read an install
162
- command that could not work and a claim that this was not a real product.
163
- The first screen now says what the package does, installs from the registry,
164
- and shows a two-line example.
165
- - **Migration from another obfuscator is no longer buried.**
166
- `--migrate-javascript-obfuscator` and `--migrate-js-confuser` convert an
167
- existing config in one command; that was documented 1,500 lines down. It is
168
- now on the first screen, with `--list-migration-map`, `--explain-compat`,
169
- and `--competitor-gap-report` beside it.
170
- - **`RELEASE.md` ships in the tarball and described the opposite of reality** —
171
- `private: true`, `UNLICENSED`, and a publish guard that "should fail". It is
172
- now the actual release runbook, including the site artifacts and checksums a
173
- version bump has to keep in step.
174
- - **Package metadata**: the description names what the tool does and the
175
- toolchain it plugs into rather than calling itself an HTTP API wrapper, and
176
- the keywords gained the terms people actually search for (`obfuscator`,
177
- `code-protection`, `source-code-protection`, `anti-tamper`, `typescript`).
178
- - Workspace and tarball install instructions still exist, under "Working from
179
- a local checkout", where they belong.
180
-
181
- ## 0.4.0 - 2026-08-26
182
-
183
- - **Named configuration sets now protect.** `namedSets` — different protection
184
- profiles for different parts of one app in a single build — had its schema,
185
- resolver and tests in the package since the baseline but was never wired
186
- into the protect flow; a config carrying it validated and was silently
187
- ignored. It now works in both the CLI and the Node API (`protectFiles`):
188
- each named set becomes its own API round with the baseline options plus the
189
- set's preset block plus the set's own options; first matching set wins per
190
- file; files matching no set keep the baseline exactly. The JSON summary
191
- gains `namedSetGroups` (and `buildIds` when rounds produce multiple
192
- reports); the manifest spans every group. A set the plan cannot afford
193
- fails its own round with the normal API error and leaves other groups
194
- untouched.
195
- - **`TargetVersion` and `DownlevelIteration` are now first-class.** Both
196
- engine options appear in `--list-options` (category `output`) and gain
197
- camelCase config aliases `targetVersion` (`"es5"`/`"modern"`) and
198
- `downlevelIteration` (spec-faithful ES5 for-of lowering: lazy stepping +
199
- IteratorClose, like TypeScript's `downlevelIteration`; off by default
200
- because it adds a per-step call on arrays; no effect on the modern target).
201
- The raw option names worked before through generic passthrough; now they
202
- are documented and validated.
203
- - `--seed` is documented in `--help` (reproducible builds; omit for the
204
- default polymorphic output).
205
-
206
- ## 0.3.2 - 2026-08-10
207
-
208
- - The shipped CI templates (all 13) now list `--local` in their
209
- "Optional: migration and supply-chain checks" discovery block, with its
210
- constraint attached: on-runner protection, no source upload, Windows agents
211
- only. That block exists so users of non-GitHub CI systems can find a
212
- capability without reading the docs site, and source-local protection was
213
- the one capability missing from it.
214
-
215
- ## 0.3.1 - 2026-08-10
216
-
217
- - Documentation accuracy only, no behaviour change. The "Payment and API
218
- Access" section still described the package as a client for the hosted API
219
- and listed uploading source as an unconditional step, which stopped being
220
- true in 0.3.0. It now states that `--local` keeps the source body on the
221
- build machine while entitlement is still enforced server-side by a
222
- source-free plan check.
223
-
224
- ## 0.3.0 - 2026-08-10
225
-
226
- - **`--local` protects without sending source.** The CLI can now run the
227
- `jso-local` executable from the Windows desktop download (`cli/jso-local.exe`)
228
- instead of POSTing source to the hosted API. Resolution order is
229
- `--local-exe`, `JSO_LOCAL_EXE`, then the usual desktop install locations;
230
- config equivalents are `local` and `localExe`.
231
- - The local path is a transport swap, not a second implementation: it exchanges
232
- the same request and response shapes the hosted endpoint uses, so options,
233
- manifests, evidence packets, and size budgets behave identically. An option
234
- that works hosted works locally by construction.
235
- - Honest boundaries, enforced rather than documented: a source-free plan check
236
- still runs online (Local Advanced is a paid capability), the payload holding
237
- source and credentials is deleted after each run, and a build that asks for
238
- VM bytecode protection fails with a clear message instead of silently
239
- shipping weaker output.
240
- - Corrected README copy that said protection workflows "do not meet a policy
241
- that forbids source transfer" - true when written, false as of this release.
242
-
243
- ## Native string splitting (2026-08-03)
244
-
245
- - `splitStrings` and `splitStringsChunkLength` now map directly to native `SplitStrings` and `SplitStringsChunkLength` engine options instead of migration-review warnings.
246
- - Eligible literals split into fixed-length concatenated chunks. Chunk length is bounded to 1-1024 and defaults to 10; directives, reserved literals, object keys, template segments, and mixed-server markers remain intact.
247
- - CLI/config/Node API mappings, wire schemas, option discovery, ASP.NET model binding, and executable engine regression coverage ship together.
248
- - JS-Confuser `stringSplitting` now maps approximately to the same native transform: booleans map directly, positive probabilities enable it, and custom selector functions remain explicit manual-review inputs.
249
- - Splitting preserves dynamic-import and static-require specifiers for bundler discovery and never cuts a UTF-16 surrogate pair; executable regressions cover module linking, CommonJS resolution text, emoji values, and self-compressed output.
250
- - Quoted class method, accessor, and field definition names remain literal. An adversarial class-field case previously failed during protection after the name became a binary expression; normal and self-compressed class-member execution now have permanent coverage.
251
- - `stringArrayIndexShift` now maps approximately to native `StringArrayIndexShift`. Enabling it adds a deterministic nonzero one-slot offset to plain and encrypted string tables; it does not reproduce the competitor's randomized shift magnitude.
252
- - `stringArrayShuffle` now maps directly to native `StringArrayShuffle`. The engine shuffles unique moved strings with per-build entropy, or reproducibly under `Seed`, and rewrites every lookup before plain or encrypted table emission.
253
- - `stringArrayRotate` now maps directly to native `StringArrayRotate`. It applies a nonzero per-build cyclic rotation, rewrites every lookup, and composes with shuffle, index shifting, encryption, and seeded builds.
254
- - `stringArrayIndexesType` now maps directly to native `StringArrayIndexesType`, supporting `hexadecimal-number`, `hexadecimal-numeric-string`, and mixed lists. Numeric strings are explicitly coerced before array lookup so hexadecimal property text cannot silently return `undefined`.
255
- - `stringArrayThreshold` now maps directly to a native 0-1 per-unique-literal probability gate. Duplicate values receive one stable decision, zero moves nothing, one moves everything eligible, and `Seed` makes partial selection reproducible.
256
- - `stringArrayCallsTransform` and `stringArrayCallsTransformThreshold` now map directly to native secondary index-table indirection. The engine emits nested lookups for selected calls, supports 0-1 probability, and composes with shifting, shuffling, rotation, encryption, index representations, compression, and seeded builds.
257
- - String-array wrapper count, chaining, parameter ceiling, and type now map to native root-level wrappers. Variable aliases and multi-parameter function wrappers execute through optional predecessor chains; count is approximate because competitor per-function-scope placement is not reproduced.
258
- - `transformObjectKeys` maps approximately to native safe data-key transformation. Identifier and quoted data keys become computed moved-string lookups; numeric keys, methods/accessors, shorthand-sensitive members, and `__proto__` remain literal to preserve semantics.
259
-
260
- ## 0.2.1 - 2026-07-13
261
-
262
- - Added OIDC/SAML configuration validation, organization directory behavior, and a bearer-authenticated SCIM 2.0 user lifecycle core to governance.
263
- - Added versioned managed Web Integrity policies, monitor/block decisions, incident deduplication and workflow, plus active blocking for unknown dynamic scripts.
264
- - Exported the managed integrity, third-party inventory, and countermeasure runtime entry points.
265
-
266
- ## 0.2.0 — 2026-05-19
267
-
268
- - Added `--report <file>` flag. After a successful run, writes the full API
269
- response JSON (BuildId, PolymorphismFingerprint, GlobalIdentifierMap,
270
- MemberIdentifierMap, audit metadata) to the given path. Strips the heavy
271
- file payload before persisting since the protected source is already
272
- written to `config.output`. Pairs with `jso-symbolicate`.
273
- - Added `--label <value>` flag. Tags the API request with a release label
274
- that appears as `ReleaseLabel` in the JSO dashboard audit log. Also reads
275
- `JSO_LABEL` / `JAVASCRIPT_OBFUSCATOR_LABEL` from the environment.
276
- - `--json` output now includes `buildId`, `polymorphismFingerprint`, and
277
- `label` fields so CI scripts can capture them without a second read of the
278
- report file.
279
- - All 149 existing CLI unit tests still pass.
280
-
281
- ## Unreleased
282
-
283
- ### Runtime recovery and governance foundations (2026-07-13)
284
-
285
- - Added bounded browser-side `SelfHealing` for post-startup self-defending
286
- mutations, corrected the integrity baseline to hash the constructed function
287
- representation, and added `reload`, `callback`, and `degrade` response modes.
288
- - Added `jso-protector/governance` with local RBAC, scoped-token descriptors,
289
- and SHA-256 hash-chained audit events. Hosted SSO/SCIM remains explicitly out
290
- of scope for this local module.
291
-
292
- ### Runtime incident action plans (2026-06-12)
293
-
294
- - Dashboard Monitoring JSON/CSV exports now carry source-free per-incident
295
- action plans with next owner, evidence packet, response due state, status
296
- transition, acknowledgement requirement, and next action.
297
- - `--runtime-incident-evidence` preserves those action plans in Markdown and
298
- JSON, adds an Incident Action Plan table, and prompts BYO AI or internal
299
- reviewers about overdue incident owners before external handoff.
300
-
301
- ### VM marker ergonomics (2026-06-12)
302
-
303
- - VM protection now accepts `// @virtualize`, `/* @virtualize */`, and
304
- `/** @virtualize */` markers immediately before supported synchronous
305
- function declarations. The website pipeline normalizes block and JSDoc
306
- marker forms before invoking the VM sidecar, removing a silent-miss setup
307
- trap from the VM beta flow.
308
- - The VM proof static guard now checks the server-side normalizer and public
309
- docs so marker support cannot drift back to line-comment-only wording.
310
-
311
- ### Parser engine compatibility smoke (2026-06-12)
312
-
313
- - `tools/verify-parser-engine.ps1` now runs a multi-root compatibility smoke
314
- after the main parser conformance harness. The smoke compiles the legacy root
315
- `App_Code/JScriptProtectorV2` source tree and the framework
316
- `JScriptCodeDom` source tree, then verifies the Cesium-style `?.25`,
317
- optional-chain, nullish, and `.5e3` leading-dot exponent cases.
318
- - Archive hygiene now requires the new `compat-run.ps1` and
319
- `compat-smoke.cs` files so deployment packages include the same parser drift
320
- guard used locally.
321
-
322
- ### PCI DSS review assistant (2026-06-08)
323
-
324
- - `jso-protector compliance pci-dss-v4` Markdown and JSON now include a
325
- source-free PCI DSS Review Assistant for BYO AI or internal reviewer triage.
326
- - The assistant turns evidence gaps, signed-release proof, script
327
- authorization, observed script drift, header change evidence, runtime
328
- incident routing, and QSA handoff boundaries into checkout-owner actions
329
- without sharing source code, protected output, raw script rows, raw response
330
- headers, raw incident payloads, payment-card data, provider keys, customer
331
- data, or secrets.
332
-
333
- ### Runtime defense review assistant (2026-06-08)
334
-
335
- - `--runtime-defense-review` Markdown and JSON now include a source-free
336
- Runtime Defense Review Assistant for BYO AI or internal reviewer triage.
337
- - The assistant turns runtime behavior scope, monitoring handoff,
338
- countermeasure policy, domain/date lock smoke, source-reading compatibility
339
- scan, release metadata, and protected-build smoke into owner prompts without
340
- sharing source code, protected output, domains, dates, redirect URLs, beacon
341
- URLs, countermeasure values, raw config files, API credentials, provider
342
- keys, collector tokens, customer data, or secrets.
343
-
344
- ### Identifier cache review assistant (2026-06-08)
345
-
346
- - `--identifier-cache-review` Markdown and JSON now include a source-free
347
- Identifier Cache Review Assistant for BYO AI or internal reviewer triage.
348
- - The assistant turns deterministic cache assumptions, custom dictionary
349
- replacement, reserved-name coverage, release metadata, and protected-build
350
- smoke into owner prompts without sharing source code, protected output, cache
351
- contents, dictionary values, prefixes, reserved-name expressions, raw config
352
- files, API credentials, provider keys, customer data, or secrets.
353
-
354
- ### Migration review assistant (2026-06-08)
355
-
356
- - `--migration-review` Markdown and JSON now include a source-free Migration
357
- Review Assistant for BYO AI or internal reviewer triage.
358
- - The assistant turns manual review tracks, source-map policy,
359
- identifier-cache replacement, runtime-defense behavior, source-reading
360
- command boundaries, release metadata, and protected-build smoke into owner
361
- prompts without sharing source code, protected output, source maps, cache
362
- contents, raw config files, API credentials, provider keys, customer data, or
363
- secrets.
364
-
365
- ### Competitor gap review assistant (2026-06-08)
366
-
367
- - `--competitor-gap-report` JSON and text output now include a source-free
368
- Competitor Gap Review Assistant for BYO AI or internal reviewer triage.
369
- - The assistant turns gap prioritization, partial-parity validation, triggered
370
- migration limitations, source-reading scan boundaries, vendor-claim
371
- freshness, and plan handoff into owner prompts without sharing source code,
372
- protected output, API credentials, provider keys, customer data, or secrets.
373
-
374
- ### Source-map evidence review assistant (2026-06-08)
375
-
376
- - `--source-map-evidence` now includes a source-free Source Map Review
377
- Assistant for BYO AI or internal reviewer triage.
378
- - The assistant turns leak cleanup, manifest verification, secure debugging
379
- exceptions, bundler cleanup order, and clean reviewer handoff into owner
380
- prompts without sharing source code, protected output, raw `.map` files,
381
- source-map contents, original source paths, customer data, or secrets.
382
-
383
- ### VM proof review assistant (2026-06-08)
384
-
385
- - `--vm-proof-pack` now includes a source-free VM Proof Review Assistant for
386
- BYO AI or internal reviewer triage.
387
- - The assistant turns failed proof checks, VM warnings, cold sensitive
388
- function scope, hot-path risk, build identity, and protected-build smoke
389
- evidence into owner prompts without sharing source code, protected output,
390
- VM bytecode, source maps, provider keys, customer data, or secrets.
391
-
392
- ### Deployment hygiene evidence packet (2026-06-08)
393
-
394
- - Added `--deployment-hygiene-evidence <file>` and
395
- `--deployment-hygiene-output <file>` to turn
396
- `tools/Build-UpdatedArchives.ps1 -ReportPath` JSON into a source-free
397
- archive/deployment hygiene reviewer packet.
398
- - The packet summarizes archive names, entry counts, byte sizes, missing
399
- required entries, blocked entries, blocked category booleans, exclusion
400
- policy, operator checklist, rotation triggers, and hygiene-report SHA-256
401
- without including `Web.config` contents, raw secrets, provider keys,
402
- database strings, host-specific transforms, customer data, or source code.
403
- - The command writes failed packets before exiting nonzero when archive
404
- hygiene is blocked, and includes a Deployment Hygiene Review Assistant for
405
- BYO AI or internal reviewers.
406
-
407
- ### Runtime incident review assistant (2026-06-08)
408
-
409
- - `--runtime-incident-evidence` now includes a source-free Runtime Incident
410
- Review Assistant for BYO AI or internal reviewer triage.
411
- - The assistant turns urgent response, repeated-signal correlation, dashboard
412
- status actions, response-window decisions, and alert-routing handoff into
413
- owner prompts without sharing source code, raw incident payloads, collector
414
- tokens, customer data, or secrets.
415
-
416
- ### AI-resistance review assistant (2026-06-08)
417
-
418
- - `--ai-resistance-evidence` now includes a source-free Review Assistant
419
- Packet for BYO AI or internal reviewer triage.
420
- - The packet turns failed required checks, missing attacker-model review
421
- tracks, VM scope, runtime evidence, compatibility proof, and planned
422
- Resistance Score wording into owner actions without sending source code,
423
- protected output, source maps, provider keys, or secrets.
424
- - Text output now renders the assistant packet beside the non-scoring review
425
- matrix, review decision, claim boundaries, and recommendations.
426
-
427
- ### Payment-page security-header review assistant (2026-06-08)
428
-
429
- - HAR-derived payment-page security-header snapshots now include a
430
- source-free Review Assistant Packet for BYO AI or internal reviewer triage.
431
- - The packet focuses checkout reviewers on baseline drift, CSP/reporting,
432
- HSTS, and frame-policy owner actions while explicitly excluding raw response
433
- headers, cookies, source code, payment data, customer data, provider keys,
434
- and secrets.
435
- - PCI DSS v4 security-header evidence now preserves or rebuilds the same
436
- review assistant packet and renders it in Markdown beside the header summary.
437
-
438
- ### Runtime incident repeated-signal correlation (2026-06-08)
439
-
440
- - `--runtime-incident-evidence` now preserves Dashboard Monitoring
441
- repeated-signal correlation and computes a CSV/row fallback when the export
442
- does not already include it.
443
- - Runtime evidence Markdown now includes a repeated-signal correlation table
444
- for repeated fingerprints and reasons, plus recommendations for repeated
445
- active high/critical signals before reviewer handoff.
446
- - PCI DSS v4 runtime-incident evidence now summarizes repeated-signal
447
- correlation beside routing, dashboard actions, response windows, and
448
- checklist metadata.
449
-
450
- ### Runtime incident evidence dashboard closeout (2026-06-08)
451
-
452
- - Runtime incident evidence packets now preserve and recommend the dashboard's
453
- filtered `Reviewing -> Resolved` closeout action when it is present in a
454
- Dashboard Monitoring JSON export.
455
- - CLI tests now cover multi-action dashboard metadata, including both
456
- `Open -> Reviewing` acknowledgement and `Reviewing -> Resolved` closeout.
457
-
458
- ### BYO AI key health in usage preflight (2026-06-08)
459
-
460
- - `ai.usage()` test fixtures now pin the `/v1/ai/usage.ashx`
461
- `providerKey` health object so Node callers can monitor missing, failed,
462
- stale, or rotation-review-due BYO AI keys without receiving key material.
463
- - `jso-protector --estimate` now preserves that source-free provider-key
464
- health in text output and under `estimate.providerKey` in JSON output while
465
- keeping quota as the only OK/WARN/FAIL gate.
466
- - `jso ai usage --pretty` now prints the same provider-key health summary:
467
- source-free status label, provider, next stored-key test, rotation review,
468
- and recommended action.
469
- - TypeScript callers now get an `AiProviderKeyHealth` declaration on
470
- `AiUsageResult.providerKey`, and package verification guards that declaration.
471
- - The README now documents `jso ai usage --pretty`, typed
472
- `ai.usage().providerKey` monitoring, the 30-day stored-key test, and the
473
- 90-day rotation review fields surfaced by usage preflight.
474
-
475
- ### Native parser-engine verification runners (2026-06-08)
476
-
477
- - Added PowerShell runners for ES6 lowering conformance, real-world parser
478
- corpus parse/write-back checks, and the combined parser-engine pre-deploy
479
- gate so this Windows workspace can verify parser changes without git-bash.
480
- - Added `verify:parser-engine` as a static package guard so the native engine
481
- runners, parser/ES6 harness docs, archive packaging, and polyglot smoke
482
- contract cannot drift out of the shipped updated-files package.
483
-
484
- ### Migration review packet (2026-06-08)
485
-
486
- - Added `--migration-review` with optional
487
- `--migration-review-output <file>` so migrated release teams get one
488
- source-free owner checklist for all accepted competitor-only fields before
489
- running focused source-map, identifier-cache, or runtime-defense packets.
490
- - The packet captures review-only field names, value types/counts, limitation
491
- groups, CLI compatibility warnings, saved report/manifest readiness,
492
- follow-up commands, protected-build smoke-test actions, and source-free
493
- sharing boundaries without embedding source code, protected output,
494
- source-map contents, cache contents, dictionary values, prefixes, domains,
495
- URLs, dates, seed values, or reserved expressions.
496
- - Migration reports now add a `migration-review` next command whenever any
497
- review-only item is present, and `--competitor-gap-report` lists the packet
498
- as a source-free review artifact when limitation groups are triggered.
499
- - The GitHub Action now exposes `migration-review` and
500
- `migration-review-report`, writes the same source-free JSON packet as a
501
- pre-protection artifact, and surfaces the report path for upload-artifact
502
- steps.
503
-
504
- ### Source-map migration next command (2026-06-08)
505
-
506
- - Migration reports now add a post-protect `source-map-evidence` next command
507
- whenever the source config contains source-map review items.
508
- - The generated command uses the same manifest path emitted by the `protect`
509
- next command:
510
- `jso-protector --source-map-evidence dist-protected/jso-manifest.json
511
- --source-map-evidence-output reports/source-map-evidence.md`.
512
- - Updated the README, website migration docs, tests, and source-map evidence
513
- guard so source-map migrations point directly at the source-free reviewer
514
- packet instead of relying on separate documentation.
515
-
516
- ### Runtime defense migration review packet (2026-06-08)
517
-
518
- - Added `--runtime-defense-review` with optional
519
- `--runtime-defense-review-output <file>` so migrated release teams can turn
520
- anti-debug, self-defending, runtime lock, console, and countermeasure
521
- settings into a source-free reviewer packet instead of a broad compatibility
522
- scan note.
523
- - The packet lists review-only field names, configured runtime evidence,
524
- monitoring and customer-owned forwarding tracks, countermeasure-policy
525
- follow-up, source-free release metadata readiness, compatibility-scan
526
- follow-up, protected-build smoke-test follow-up, and safe-sharing boundaries
527
- without embedding domains, dates, redirect URLs, beacon URLs, countermeasure
528
- values, source code, protected output, or compatibility-scan snippets.
529
- - `--competitor-gap-report` now points runtime-self-defending limitations at
530
- the dedicated `--runtime-defense-review` command and keeps
531
- `runtime-compatibility-scan` as an explicit source-reading follow-up.
532
- - Migration reports now add a `runtime-defense-review` next command whenever
533
- the source config contains anti-debug, self-defending, runtime lock, console,
534
- or countermeasure review items.
535
- - Added a `verify:runtime-defense-review` guard so CLI behavior, tests, docs,
536
- changelog, and competitive gap notes stay aligned.
537
-
538
- ### Identifier cache replacement review packet (2026-06-08)
539
-
540
- - Added `--identifier-cache-review` with optional
541
- `--identifier-cache-review-output <file>` so migrated release teams can turn
542
- `identifierNamesCache`, `identifierNamesCachePath`, `identifiersDictionary`,
543
- and `identifiersPrefix` into a source-free reviewer packet instead of a
544
- vague manual-review note.
545
- - The packet lists review-only field names, counts, reserved-name evidence,
546
- saved API report and manifest readiness, protected-build smoke-test follow-up,
547
- and safe-sharing boundaries without embedding cache contents, dictionary
548
- values, prefixes, reserved-name expressions, or source code.
549
- - `--competitor-gap-report` now points identifier-cache and custom-dictionary
550
- limitations at the dedicated review command, and the main verify chain has a
551
- `verify:identifier-cache-review` guard so CLI, tests, docs, and gap notes stay
552
- aligned.
553
- - Migration reports now add an `identifier-cache-review` next command whenever
554
- the source config contains identifier cache or custom dictionary review items,
555
- so release owners do not have to discover the packet from separate docs.
556
-
557
- ### Runtime incident dashboard action metadata (2026-06-08)
558
-
559
- - `--runtime-incident-evidence` now preserves `dashboardActions` from
560
- Dashboard Monitoring JSON exports and renders them in Markdown.
561
- - PCI DSS v4 runtime incident evidence also keeps the same action metadata, so
562
- reviewer packets can say which source-free dashboard status action is
563
- available without scraping dashboard HTML.
564
- - The action metadata currently covers the filtered `Open` to `Reviewing`
565
- acknowledgement path, including scope, matching Open incident count, and the
566
- safety boundary for resolved, ignored, and already-reviewing incidents.
567
-
568
- ### Payment-page security-header evidence (2026-06-08)
569
-
570
- - Added `--payment-page-headers <csv|json>` to `jso-protector compliance
571
- pci-dss-v4` so checkout owners can summarize CSP, `script-src`,
572
- `frame-src`, reporting endpoint, HSTS, referrer-policy, monitor,
573
- alert-route, baseline-hash match state, checkout surface, and frame context
574
- in the same source-free PCI evidence packet as script inventory and runtime
575
- incidents.
576
- - Added `examples/payment-page-security-headers.json` as a starter snapshot
577
- for payment-page header evidence.
578
- - Added `--payment-page-headers-from-har <file>` with
579
- `--payment-page-headers-output <file>` and optional
580
- `--payment-page-url-pattern <regex>` so browser or synthetic-monitor HAR
581
- exports can become the same source-free security-header snapshot without
582
- preserving raw cookie headers.
583
- - Added optional `--payment-page-headers-baseline <file>` so the HAR converter
584
- marks each checkout page or frame as `match`, `mismatch`, or `missing`
585
- against the last approved security-header snapshot for PCI 11.6.1 change
586
- review.
587
- - PCI DSS v4 security-header evidence now reports missing baseline pages as a
588
- first-class count instead of folding them into unstated baseline evidence.
589
- - Added matching GitHub Action support through `payment-page-har`,
590
- `payment-page-headers-baseline`, `payment-page-url-pattern`, and
591
- `payment-page-headers-report`, including a source-free JSON artifact path,
592
- step-summary baseline metrics, and workflow annotations for header drift,
593
- missing CSP, or missing reporting-endpoint coverage.
594
- - Updated the non-GitHub CI template hint blocks so Jenkins, GitLab, Azure,
595
- CircleCI, Bitbucket, Buildkite, Drone, Woodpecker, GoCD, Tekton, Argo, and
596
- TeamCity users see the same security-header baseline option.
597
- - Added optional GitHub Action PCI DSS v4 evidence assembly through
598
- `pci-dss-v4-evidence`, `pci-dss-v4-report`, and
599
- `pci-dss-v4-json-report`. The action now auto-creates a manifest when the
600
- PCI gate is enabled, prefers the signed `.sig` envelope when present, reuses
601
- payment-page audit/header/runtime evidence inputs, and emits source-free
602
- Markdown plus JSON report paths.
603
-
604
- ### Payment-page iframe evidence context (2026-06-08)
605
-
606
- - Payment-page script inventory starters, audit packets, and PCI DSS v4
607
- reports now preserve optional checkout-surface and frame metadata:
608
- `checkoutSurface`, `frameContext`, `frameOwner`, `parentPageHref`,
609
- `frameHref`, and `frameOrigin`.
610
- - Audit and PCI Markdown/JSON summaries now include checkout surface counts,
611
- frame context counts, frame owner counts, and iframe-scoped script counts so
612
- checkout owners can distinguish parent-page, hosted-checkout, PSP iframe,
613
- and embedded-frame evidence without embedding raw source code.
614
-
615
- ### Source-map evidence verification guard (2026-06-08)
616
-
617
- - Added `verify:source-map-evidence` to the main package verify chain. The
618
- guard checks that manifest verification, source-map leak auditing,
619
- `--source-map-evidence`, public npm docs, GitHub Action artifact wiring, and
620
- source-free reviewer-boundary wording stay aligned.
621
-
622
- ### Payment-page evidence verification guard (2026-06-08)
623
-
624
- - Added `verify:payment-page` to the main package verify chain. The guard
625
- checks that payment-page script inventory generation, audit reconciliation,
626
- PCI DSS v4 evidence import, GitHub Action preflight wiring, public
627
- Payment Page Protection docs, and source-free Review Assistant Packet
628
- boundaries stay aligned.
629
-
630
- ### VM proof-pack verification guard (2026-06-08)
631
-
632
- - Added `verify:vm-proof` to the main package verify chain. The guard checks
633
- that `--verify-vm-proof`, `--vm-proof-pack`, public VM Proof Pack docs,
634
- GitHub Action inputs/outputs, CLI tests, and reviewer handoff language stay
635
- aligned around source-free VM evidence, cold-path review, and
636
- `ready-for-manual-review` decisions.
637
-
638
- ### Runtime incident evidence packet (2026-06-08)
639
-
640
- - Added `--runtime-incident-evidence <csv|json>` with optional
641
- `--runtime-incident-evidence-output <file>` so account owners can turn a
642
- Dashboard Monitoring runtime incident export into a standalone source-free
643
- Markdown or JSON handoff packet for support, on-call, and reviewer workflows.
644
- - The packet summarizes incident counts, active high/critical count, BuildIDs,
645
- routing recommendation, response window, response checklist, alert routing
646
- playbook, export SHA-256, safe-sharing boundaries, and review decision. It
647
- exits nonzero when active high/critical incidents need response.
648
-
649
- ### Competitor gap review artifacts (2026-06-08)
650
-
651
- - Refreshed the `--competitor-gap-report` public-source snapshot to 2026-06-08
652
- with current javascript-obfuscator, JS-Confuser, Jscrambler, AfterPack,
653
- Obfuscator.io, JSDefender, and Digital.ai public surfaces.
654
- - Added a `reviewArtifacts` block to the JSON and text report so migrated
655
- release teams get concrete source-free handoff commands for release-check,
656
- competitor-gap, source-map evidence, and identifier-cache replacement review,
657
- plus a source-reading compatibility scan when runtime-defense switches need
658
- manual validation.
659
-
660
- ### Source-map evidence packet (2026-06-07)
661
-
662
- - Added `--source-map-evidence <manifest>` with optional
663
- `--source-map-evidence-output <file>` so release teams can generate a
664
- source-free Markdown or JSON packet proving protected artifacts still match
665
- the manifest and do not expose `.map` files or `sourceMappingURL` comments.
666
- The packet lists artifact names, counts, policy boundaries, review decision,
667
- and next actions without embedding source code or source-map contents.
668
-
669
- ### Runtime incident alert routing playbook evidence (2026-06-07)
670
-
671
- - PCI DSS v4 runtime-incident evidence now preserves Dashboard Monitoring
672
- `routing.alertRoutingPlaybook` metadata from JSON exports and renders it in
673
- Markdown. Reviewer packets keep the security-response, customer-owned
674
- alerting, support-handoff, and reviewer-packet lanes without embedding raw
675
- incident rows or turning JSO into a managed SOC console.
676
-
677
- ### Competitor gap source snapshot (2026-06-07)
678
-
679
- - `--competitor-gap-report` now includes a dated public-source snapshot in JSON
680
- and text output. The report names the competitor pages reviewed for the
681
- migration framing and warns teams to re-check current vendor pages before
682
- publishing named competitive claims.
683
-
684
- ### AI evidence review decision (2026-06-07)
685
-
686
- - `--ai-resistance-evidence` now includes a source-free `reviewDecision`
687
- object and text line. The packet is `blocked` when required evidence fails,
688
- `ready-for-manual-review` when required checks pass but review tracks need
689
- confirmation, and `ready` when every current track is evidenced.
690
-
691
- ### Public copy discipline verify gate (2026-06-07)
692
-
693
- - Added `verify:copy-discipline` to the main verify chain. The guard scans
694
- public website copy and the npm README for stale competitor claims, absolute
695
- AI/security claims, and missing evidence-boundary statements so customer
696
- pages stay end-user focused and source-reviewable.
697
-
698
- ### Runtime incident response window (2026-06-07)
699
-
700
- - PCI runtime-incident evidence now preserves Dashboard Monitoring
701
- `responseWindow` metadata from JSON exports and renders it in Markdown.
702
- The packet records the source-free timing basis, target, due time, overdue
703
- state, and status action so reviewers can see whether active runtime
704
- incidents are still inside the response target.
705
- - CSV incident exports now get a conservative response-window fallback in the
706
- PCI report: the reporter can calculate the due time from the oldest active
707
- high/critical or active incident, while leaving overdue state unevaluated
708
- unless a dashboard JSON export supplies generation timing.
709
-
710
- ### Archive hygiene verify gate (2026-06-07)
711
-
712
- - Added `verify:deployment-hygiene` to the main verify chain. The guard checks
713
- that `tools/Build-UpdatedArchives.ps1` still supports optional JSON hygiene
714
- reports, keeps blocked deployment files out of updated-files zips, and keeps
715
- the public Deployment Hygiene docs aligned with the archive handoff command.
716
- - Archive hygiene JSON reports now include a source-free operator checklist
717
- with before-sharing steps, rotation triggers, and a support boundary so
718
- release handoffs can say what to verify without exposing config secrets.
719
-
720
- ### Payment-page inventory audit packet (2026-06-07)
721
-
722
- - PCI runtime-incident evidence now includes a source-free response checklist
723
- derived from Dashboard Monitoring CSV/JSON exports. Dashboard JSON exports
724
- can carry that checklist directly, and the PCI report preserves it when
725
- present. The checklist keeps filter scope, routing scope, suggested owners,
726
- response targets, downstream incident destinations, and safe-sharing
727
- boundaries without embedding raw incident rows.
728
- - Added optional payment-page script review metadata fields:
729
- `risk`, `dataAccess`, and `approvalTicket`. Generated inventory starters now
730
- include blank fields for checkout owners to complete, and PCI evidence
731
- reports summarize risk ratings, data-access scopes, and approval-ticket
732
- coverage without embedding every script row.
733
- - The payment-page script inventory audit now reports review-context coverage
734
- for authorized scripts. Missing optional `risk`, `dataAccess`, or
735
- `approvalTicket` values show up as non-blocking review-context gaps, while
736
- unknown scripts, unauthorized scripts, hash drift, missing approved rows,
737
- late injection, runtime violations, duplicate rows, and required metadata
738
- gaps remain blocking.
739
- - The same audit now includes a source-free Review Assistant Packet for BYO
740
- AI or internal reviewer triage, with safe-input boundaries, "do not include"
741
- reminders, and prompts for unknown scripts, authorization gaps, integrity
742
- drift, runtime behavior, missing approved scripts, and approval-ticket
743
- cleanup.
744
- - Added `--script-inventory-audit <inventory.json|csv>` with required
745
- `--runtime-inventory-snapshot <snapshot.json>` and optional
746
- `--script-inventory-audit-output <file>` so checkout owners can reconcile an
747
- approved payment-page script inventory against a saved browser runtime
748
- snapshot before reviewer handoff.
749
- - The audit stays local and source-free, emits Markdown by default or JSON with
750
- `--json`, and flags unknown observed scripts, unauthorized observed scripts,
751
- missing approved scripts, integrity hash mismatches, late injection, runtime
752
- violation reasons, duplicate approved rows, and incomplete inventory
753
- metadata.
754
- - `jso-protector compliance pci-dss-v4` now accepts
755
- `--script-inventory-audit <json>` so the approved-vs-observed reconciliation
756
- summary can be included in the same PCI evidence report as the script
757
- inventory and Dashboard Monitoring runtime incident export.
758
- - The shipped CI templates now advertise the same
759
- `--script-inventory-audit --runtime-inventory-snapshot
760
- --script-inventory-audit-output --json` gate in their optional preflight
761
- block, and the GitHub Action exposes matching
762
- `payment-script-inventory`, `runtime-inventory-snapshot`, and
763
- `script-inventory-audit-report` inputs for checkout release workflows.
764
- - The GitHub Action audit preflight now writes a step summary and workflow
765
- annotations for the first source-free findings so checkout owners can see
766
- script drift in the CI run before opening the JSON artifact.
767
-
768
- ### VM proof pack handoff (2026-06-07)
769
-
770
- - Added `--vm-proof-pack <report.json>` with optional
771
- `--vm-proof-output <file>` so release teams can turn a saved, source-free API
772
- report into a reviewer-ready VM evidence packet. Markdown is emitted by
773
- default; add `--json` for machine-readable evidence.
774
- - The proof pack reuses `--verify-vm-proof` checks and adds build identity,
775
- release label, polymorphism fingerprint, enabled options, warnings,
776
- recommendations, and a required reviewer checklist.
777
- - The proof pack now includes a `reviewDecision` object in JSON and a matching
778
- Markdown section. Passing VM evidence can still be labeled
779
- `ready-for-manual-review` when the reviewer must confirm cold-function scope
780
- and protected-build smoke-test results before approval.
781
- - Generated Markdown and JSON proof packs now include hot-path/cold-path
782
- guidance so reviewers can confirm VM protection stayed on rare sensitive
783
- functions instead of render loops, animation ticks, scroll handlers, or
784
- high-frequency parsers.
785
- - Generated proof packs now also include VM compatibility guidance covering
786
- supported function shape, skipped-with-warning syntax, public callback /
787
- framework-reflection risks, and reviewer actions before approval.
788
-
789
- ### Payment-page incident evidence for PCI reports (2026-06-06)
790
-
791
- - Added `--script-inventory <csv|json>` to `jso-protector compliance
792
- pci-dss-v4` so payment-page script authorization, written justification,
793
- owner, review-date, domain, and integrity-reference coverage can be hashed
794
- and summarized in the same source-free evidence report.
795
- - Added `examples/payment-page-script-inventory.json` as a starter attachment
796
- for the source-free payment-page inventory evidence workflow.
797
- - Added `--script-inventory-from-snapshot <file>` with optional
798
- `--script-inventory-output <file>` so checkout owners can turn an observed
799
- `third-party-inventory` runtime snapshot into a source-free PCI inventory
800
- review starter before adding authorization, justification, owner, and review
801
- dates.
802
- - Added `--runtime-incidents <csv|json>` to `jso-protector compliance
803
- pci-dss-v4` so the report can summarize the Dashboard Monitoring
804
- runtime-incident export as source-free PCI DSS v4 11.6.1 evidence.
805
- - Broadened the same flag to accept the Dashboard Monitoring JSON export too,
806
- so support tooling and release automation can feed machine-readable incident
807
- evidence into the PCI report without converting to CSV first.
808
- - Runtime incident JSON evidence now preserves Dashboard Monitoring export
809
- filters, such as active status or high/critical severity, in the JSON summary
810
- and Markdown evidence table.
811
- - Runtime incident JSON evidence now also preserves Dashboard Monitoring
812
- routing recommendations, including escalation level, recommended queue, and
813
- preferred evidence packet, in the PCI evidence JSON and Markdown report.
814
- - Dashboard Monitoring now shows that same source-free routing recommendation
815
- on the current filtered incident view before checkout and support owners
816
- export the JSON evidence packet.
817
- - Runtime incident JSON evidence now preserves routing response targets and
818
- next status actions, so PCI reviewer packets can carry queue, timing, and
819
- triage-state guidance without embedding source code.
820
- - The Markdown/JSON report now records CSV SHA-256, incident count, status and
821
- severity counts, open/reviewing totals, high-or-critical unresolved totals,
822
- received/event date ranges, and Build IDs without embedding every raw URL or
823
- user-agent row.
824
- - Updated payment-page documentation so checkout owners can pair signed
825
- manifests, watermarks, beacon/SIEM routing, and dashboard incident history
826
- in one reviewer-friendly command.
827
-
828
- ### AI resistance evidence report (2026-06-06)
829
-
830
- - Added `--ai-resistance-evidence <report.json>` so security reviewers can
831
- turn a saved, source-free API report into a current AI-resistance evidence
832
- checklist without sending source to an AI provider.
833
- - Added `--ai-resistance-evidence-output <file>` so the same checklist can be
834
- written as a reviewer artifact, using text by default or JSON when `--json`
835
- is set.
836
- - Extended `verify:ai` static checks so the AI evidence output artifact
837
- workflow remains visible in both the CLI and public AI Resistance Evidence
838
- docs.
839
- - Added a non-scoring attacker-model review matrix to the evidence checklist.
840
- The matrix covers identifier recovery, string recovery, control-flow
841
- reconstruction, sensitive-function extraction, runtime instrumentation,
842
- compatibility regression, and source-free handoff without claiming the
843
- planned Resistance Score is live.
844
- - The report checks build identity, strong protection options, optional VM
845
- proof, runtime-defense evidence, compatibility evidence, and source-free
846
- review data while clearly marking Resistance Score as planned, not live.
847
- - The Markdown-style text output and JSON report now include explicit claim
848
- boundaries for current evidence, planned Resistance Score, bounded AI
849
- resistance claims, and client-side runtime secrecy limits.
850
- - Added `--require-vm-proof` for release teams that want VM-backed evidence to
851
- be a hard CI gate.
852
-
853
- ### VM proof-pack verifier (2026-06-06)
854
-
855
- - Added `--verify-vm-proof <report.json>` so security reviewers can validate a
856
- saved, source-free API report without inspecting private source.
857
- - The verifier checks that VM protection was requested, VM protection was
858
- applied, the virtualized function count meets `--min-vm-functions`, and
859
- `VMProtectionWarnings` is empty.
860
- - Added CLI regression tests for saved-report and direct-report shapes.
861
-
862
- ### Competitor gap report hosted-runtime evidence (2026-06-06)
863
-
864
- - The runtime-defense capability now lists hosted dashboard intake,
865
- `RuntimeDefenseBeaconUrl`, Dashboard Monitoring, SIEM forwarding, and
866
- countermeasure helpers as the JSO evidence surface.
867
- - The generated migration plan now tells teams to route runtime events to
868
- customer monitoring or `/v1/runtime/beacon.ashx` before manually validating
869
- competitor anti-debug/self-defending switches.
870
- - Added regression coverage so the CLI report keeps the hosted first-triage
871
- path visible during competitor migrations.
872
-
873
- ### Migration documentation parity wording (2026-06-06)
874
-
875
- - Updated the README, migration guide, and security checklist so runtime
876
- defense is described as a mapped/partial capability with monitoring and
877
- countermeasure helpers, not as a pure unresolved gap.
878
- - The competitor report docs now name Obfuscator.io explicitly and call out
879
- manual validation for protected source-map generation, release readiness,
880
- and review-only migration fields.
881
-
882
- ### Competitor gap report runtime-defense parity (2026-06-06)
883
-
884
- - Runtime-defense parity now reports as `partial` instead of a pure `gap`
885
- because `jso-protector` ships runtime monitoring, beacon forwarding, and
886
- countermeasure helpers.
887
- - The competitor list now names Obfuscator.io explicitly alongside
888
- `javascript-obfuscator`, JS-Confuser, Jscrambler, and JSDefender.
889
- - Migrated anti-debug, integrity, self-defending, and tamper-protection
890
- switches remain review-only limitations because they are not one-to-one
891
- hosted API options.
892
- - Added a CLI test assertion so the runtime-defense capability cannot regress
893
- to a pure gap while the JSO runtime helpers remain available.
894
-
895
- ### Compliance evidence forwarder — push reports to GRC platforms (2026-06-02)
896
-
897
- New `compliance/evidence-forwarder.js` + a `--push` flag on the
898
- `compliance` CLI. After the PCI DSS v4 reporter generates a report, the
899
- forwarder normalizes it into a vendor-neutral evidence artifact (control
900
- mappings, summary, build id, content sha256) and POSTs it to a GRC
901
- platform so the per-build report that already exists also lands in
902
- Drata / Vanta / an in-house system without a manual upload.
903
-
904
- ```
905
- npx jso-protector compliance pci-dss-v4 \
906
- --manifest dist/build.manifest.json.sig --root dist \
907
- --push drata --push-endpoint "$JSO_GRC_ENDPOINT" --push-token "$JSO_GRC_TOKEN"
908
- ```
909
-
910
- Three profiles shape the envelope + headers: `generic` (artifact as-is,
911
- optional HMAC signing identical to the jso-beacon-slack webhook adapter),
912
- `drata`, and `vanta`. Field names are overridable via `fieldMap`. The
913
- tenant endpoint + token are operator-supplied — GRC platforms are
914
- multi-tenant, so the module deliberately does not hardcode a vendor API
915
- version it can't keep current; the profile only shapes the request.
916
-
917
- Contract matches the SIEM adapters: the forwarder never throws — a flaky
918
- GRC endpoint resolves to `{ ok:false, status:0, error }` and does NOT
919
- change the compliance exit code (the report's own verdict is the
920
- authority; forwarding is a side channel). 14 new tests (artifact
921
- normalization + stable hashing, all three profiles, fieldMap overrides,
922
- HMAC verifiability, transport-failure + throw isolation, non-2xx
923
- handling). 315/315 full jso-protector suite passes.
924
-
925
- ### AI script data governance — block LLM-bound exfiltration (2026-06-02)
926
-
927
- New browser runtime module `jso-protector/runtime/ai-script-governance.js`
928
- that hooks `fetch`, `XMLHttpRequest`, and `WebSocket` on the protected
929
- page and watches for requests that hit a known LLM provider endpoint.
930
- Closes the Jscrambler "AI Data Governance" parity gap surfaced by the
931
- latest deep-research workflow.
932
-
933
- What it catches:
934
-
935
- - a Magecart-style script exfiltrating card data to a free OpenAI
936
- endpoint ("summarize this number")
937
- - an untrusted third-party widget quietly streaming page contents to
938
- its own AI backend
939
- - a compromised CI/CD dependency that POSTs conversation history to
940
- a side-channel LLM
941
-
942
- Default known-host list covers OpenAI / Anthropic / Google
943
- (Gemini + Vertex) / Groq / Together / Mistral / AWS Bedrock
944
- (region-prefixed) / Cohere / Perplexity / xAI / DeepSeek / Replicate /
945
- Hugging Face Inference / Azure OpenAI (tenant-prefixed). Extensible via
946
- `config.additionalKnownLLMHosts`.
947
-
948
- Two enforcement modes:
949
-
950
- - `log` (default) — records destination + payload size + caller stack
951
- frame; request proceeds.
952
- - `block` — refuses. `fetch` returns a synthetic HTTP 451; XHR
953
- transitions to `readyState=4 status=0`; `WebSocket` constructor
954
- throws.
955
-
956
- Events emit through the same beacon channel as `third-party-inventory`,
957
- so the existing `jso-beacon-slack` SIEM adapters forward them unchanged
958
- (envelope `kind: "ai-data-access"`).
959
-
960
- 17 new tests, 301/301 full jso-protector suite passes.
961
-
962
- ### Electron V8 bytecode adapter + React Native 2026 playbook (2026-06-02)
963
-
964
- Completes deep-research GAP 5.
965
-
966
- - New sibling package **`jso-protector-electron`** (`packages/jso-protector-electron/`)
967
- with `compileDirectory({input, output, mode})` that walks JSO-protected
968
- JS and emits V8 bytecode `.jsc` files via `vm.Script.createCachedData()`.
969
- Two execution modes:
970
- - `embedded` (run under Electron): emits real `.jsc` files bound to
971
- the host Electron's V8 build.
972
- - `scaffold-only` (plain Node): emits the source + per-file
973
- `.bytecode-meta.json` for CI environments that don't ship Electron.
974
- - `auto` picks based on `process.versions.electron`.
975
- CLI: `jso-protector-electron --input dist-protected --output dist-bytecode`.
976
- Each `.jsc` carries an 8-byte magic + length-prefixed JSON header +
977
- the V8 cachedData blob so an auditor can validate coverage. 14 tests
978
- cover both modes, the CLI surface, the header layout, and the
979
- actionable error when embedded mode is invoked under plain Node.
980
-
981
- - New **`examples/react-native/README.md`** playbook (2026 refresh)
982
- walking the modern React Native + JSO pipeline:
983
- - Metro `customSerializer` JSO integration (existing `metro.js`).
984
- - Hermes bytecode layering (`.hbc`).
985
- - **Play Integrity API** (Android) replacing the deprecated
986
- SafetyNet Attestation (shut down 2024-06-30).
987
- - **DCAppAttestService** (iOS) for on-device attestation.
988
- - JSO release manifest + beacon flow for the in-app verifier.
989
- - Field-tested gotchas (Reanimated worklets, native-module bridge
990
- name preservation, dev-mode bypass).
991
-
992
- ### RASP active countermeasures + named config sets (2026-06-02)
993
-
994
- Two paired build-time + browser-runtime features completing deep-research
995
- GAP 4 (JSDefender v2 / Jscrambler RASP parity).
996
-
997
- **Browser runtime (`runtime/countermeasures.js`):**
998
-
999
- Six configurable reactions to runtime-defense tamper events, fired after
1000
- the beacon POST so even destructive actions leave telemetry:
1001
-
1002
- - `log` - record-only; default, no UI side effects
1003
- - `break` - stub every function on `window.__jsoEntry.*` so the protected
1004
- entry points become no-ops
1005
- - `deleteCookies` - clear cookies + sessionStorage + localStorage to
1006
- defuse stale credentials in a poisoned page
1007
- - `selfDestruct` with `mode: blank-body | crashWithMemory | crashTimeout`
1008
- - `redirect` to a safe URL (`javascript:` schemes rejected at build time)
1009
- - `callback` invoking a customer function with the violation event
1010
-
1011
- Configurable as a single action or an ordered array
1012
- (`onTamper: ["break", "deleteCookies"]`). An `allowList` keeps dev
1013
- environments from accidentally shipping destructive escalations.
1014
-
1015
- **Build-time named sets (`config/named-sets.js`):**
1016
-
1017
- Apply different protection profiles to different parts of one app:
1018
-
1019
- ```json
1020
- {
1021
- "preset": "balanced",
1022
- "countermeasures": { "onTamper": "log" },
1023
- "namedSets": {
1024
- "checkout": { "match": ["src/checkout/**", "src/wallet/**"],
1025
- "preset": "maximum",
1026
- "options": { "AddDeadCode": true, "DeadcodeLevel": "High" },
1027
- "countermeasures": { "onTamper": ["break", "deleteCookies"],
1028
- "redirectUrl": "https://example.com/outage" } },
1029
- "authenticated": { "match": ["src/dashboard/**", "src/account/**"],
1030
- "preset": "maximum",
1031
- "countermeasures": { "onTamper": ["deleteCookies"] } }
1032
- }
1033
- }
1034
- ```
1035
-
1036
- First-matching-set wins, so config authors get deterministic precedence
1037
- by writing sets in priority order (like a route table). The glob matcher
1038
- supports `**`, `*`, `?`, `[a-z]`, `{a,b}` — including `/**` at end which
1039
- matches the bare directory plus any nested files (so `src/checkout/**`
1040
- covers `src/checkout` AND `src/checkout/a/b.js`).
1041
-
1042
- Schema (`jso.config.schema.json`) extends with `countermeasures` and
1043
- `namedSets` as top-level properties plus a `$defs/countermeasures`
1044
- shared definition. Strict `additionalProperties: false` is preserved
1045
- on both the top-level and per-set objects.
1046
-
1047
- 28 new tests (15 countermeasures + 13 named-sets), full jso-protector
1048
- suite **284/284 pass**, verify chain green.
1049
-
1050
- ### Third-party script inventory + Magecart detection (2026-06-02)
1051
-
1052
- New browser-side runtime module `jso-protector/runtime/third-party-inventory.js`
1053
- that snapshots every script loaded by a payment page and flags violations
1054
- to a beacon URL.
1055
-
1056
- Detection signals:
1057
-
1058
- - script `src` outside the configured `originAllowlist`
1059
- - inline `<script>` whose sha256 is not in `inlineContentAllowlist`
1060
- - script DOM-injected AFTER `document.readyState === "complete"`
1061
- (defer-injection is a common Magecart evasion)
1062
- - same script URL but its content sha256 changed since the previous
1063
- deploy (catches CDN supply-chain swap attacks)
1064
-
1065
- Pure browser code (Web Crypto, fetch, PerformanceObserver) so it ships
1066
- in the protected bundle without server-side support. The module's
1067
- inventory snapshots emit through the same beacon channel as the rest
1068
- of the runtime-defense suite, so jso-beacon-slack forwards them to
1069
- Splunk / Elasticsearch / generic webhook unchanged.
1070
-
1071
- ```js
1072
- // In the page that's being protected:
1073
- const tpi = require("jso-protector/runtime/third-party-inventory");
1074
- tpi.attach(window, {
1075
- buildId: window.__jsoBuildId,
1076
- originAllowlist: ["https://www.example.com", "https://cdn.example.com"],
1077
- inlineContentAllowlist: ["a3f5...sha256...", "b07e..."],
1078
- previousContentBySrc: { "https://cdn.example.com/lib.js": "<old-sha256>" },
1079
- beaconUrl: "https://beacon.example.com/v1/jso/inventory",
1080
- flushIntervalMs: 15000,
1081
- });
1082
- ```
1083
-
1084
- 16 new tests (256 total in jso-protector) cover the pure-engine path
1085
- (unknown-origin / unknown-inline / injected-after-load /
1086
- content-changed-vs-previous-deploy / dedup / backpressure /
1087
- '*'-wildcard / trailing-slash) and the DOM-attach path
1088
- (idempotency + `createElement('script')` setter intercept).
1089
-
1090
- ### PCI DSS v4.0.1 compliance reporter (2026-06-02)
1091
-
1092
- New offline subcommand `jso-protector compliance pci-dss-v4` that consumes
1093
- a `--sign-release`-produced manifest envelope and emits a Markdown +
1094
- JSON evidence report mapping JSO primitives onto the two PCI DSS v4
1095
- controls JSO directly contributes to:
1096
-
1097
- - **Req 6.4.3** payment-page script management — covered by HMAC watermarks
1098
- (sub-req .a, authorized), Ed25519 release attestation (.b, integrity),
1099
- and the manifest `files[]` array (.c, inventory).
1100
- - **Req 11.6.1** change/tamper detection — covered by Runtime Defense +
1101
- BeaconUrl wiring (.a/.b, detection + cadence) and jso-beacon-slack SIEM
1102
- adapters (.c, personnel alerts).
1103
-
1104
- CLI:
1105
-
1106
- ```
1107
- jso-protector compliance pci-dss-v4 \
1108
- --manifest dist/build.manifest.json.sig \
1109
- --root dist \
1110
- --watermark-key "$JSO_WATERMARK_KEY" \
1111
- --beacon-url https://beacon.example.com/v1/jso \
1112
- --siem splunk-hec \
1113
- --organization "Example Corp" \
1114
- --output reports/pci-dss-v4.md
1115
- ```
1116
-
1117
- Exit codes follow the same shape as `--verify-release`: 0 = fully evidenced,
1118
- 1 = evidence gaps, 2 = manifest unsigned. The reporter is pure-offline —
1119
- no HTTP traffic, no telemetry. New `compliance/pci-dss-v4/` directory
1120
- ships in the npm tarball; 12 new tests (240 total) all pass.
1121
-
1122
- ### Supply-chain integrity surface
1123
-
1124
- - Added `--competitor-gap-report` to summarize covered / partial / gap parity
1125
- against common JavaScript obfuscator surfaces after migrations, including
1126
- runtime-defense, source-map, lock, and release-forensics guidance.
1127
- - Added public TypeScript declarations and package verification coverage for
1128
- the competitor gap report helpers.
1129
- - Added `--competitor-gap-report` to the optional CI template hint block and
1130
- extended CI template verification so all shipped pipelines keep surfacing
1131
- competitor migration gap checks.
1132
- - Added the same competitor gap report step to Kubernetes and Helm release
1133
- examples, plus migration/security/example docs that call out its
1134
- source-free behavior.
1135
- - Added `competitor-gap` to migration next-command output, gave the JSON report
1136
- a stable `format` / `version` envelope, and included the report in
1137
- `--local-only` preflight guidance.
1138
- - Added `--watermark <tag> --watermark-key <key>` &mdash; injects an HMAC-SHA256
1139
- header-comment marker into every input file before submission to the
1140
- obfuscation API. The obfuscator's `KeepComment` option preserves the
1141
- block verbatim through every transform so the marker survives in the
1142
- protected output. `JSO_WATERMARK_KEY` env-var fallback. Wire format
1143
- documented at /Docs/WireFormat.aspx#watermark.
1144
- - Added `--verify-watermark <file>` &mdash; single-file watermark validator.
1145
- With `--watermark-key`, runs a constant-time HMAC compare; without, prints
1146
- the embedded tag (lookup-only mode for forensic inspection of leaked
1147
- artifacts). Exit codes: 0 valid / 1 invalid / 2 missing-or-no-key.
1148
- - Added `--scan-watermarks <dir>` &mdash; tree walker for forensic / inventory
1149
- use. Skips `node_modules` + `.git`. Aggregates findings into a sorted
1150
- report. Exit codes: 0 all clean, 1 at least one invalid signature, 2 no
1151
- watermarks found at all.
1152
- - Added `--sign-release <priv.pem>` &mdash; produces an Ed25519-signed release
1153
- attestation `.manifest.json.sig` next to the manifest. Covers BuildId +
1154
- polymorphism fingerprint + label + per-file SHA-256. Canonical-JSON
1155
- serialization so verifiers in any language produce byte-identical
1156
- signatures.
1157
- - Added `--verify-release <sig>` &mdash; validates the envelope. Stage 1 is
1158
- Ed25519 signature over canonical manifest. Stage 2 (when `--verify-root
1159
- <dir>` is also passed) re-hashes referenced files on disk to catch
1160
- post-signing artifact tampering. `--public-key <pem>` pins to a trusted
1161
- public key (defeats key-substitution attacks).
1162
- - Added `--genkey-release <name>` &mdash; mints a fresh Ed25519 keypair, writes
1163
- `<name>.priv.pem` (0o600) and `<name>.pub.pem` (0o644). Removes the
1164
- "where do I get keys" friction.
1165
- - Added `--estimate` &mdash; pre-flight quota gate. Walks input files, calls
1166
- `/v1/ai/usage` for current-month counters, prints a three-state report
1167
- (OK / WARN / FAIL). FAIL (exit 1) when actions remaining = 0 blocks
1168
- builds that can't finish. Network failure on the usage endpoint
1169
- downgrades to WARN with a note (doesn't crash the pipeline).
1170
- - Added `--ai-precheck` &mdash; inline AI compatibility gate. Runs
1171
- `/v1/ai/compat-check` on every input file before the obfuscation API
1172
- is called; aborts the build on findings per `--ai-precheck-fail-on`
1173
- (`error` / `warning` / `never`). Quota untouched on failure.
1174
- - New `jso ai compat-scan` subcommand &mdash; stand-alone compat-check over
1175
- every input file in `jso.config.json`. Useful for pre-commit hooks and
1176
- IDE integrations.
1177
- - jso.config.schema.json: added `report`, `label`, `watermark`, and
1178
- `watermarkKey` to the schema so config validators stop rejecting these
1179
- documented keys. (Previous behavior: `additionalProperties: false`
1180
- caused IDE schema validators to flag the keys as unknown.)
1181
- - Coverage: new test suites `test/ai-precheck.test.js`, `test/watermark.test.js`,
1182
- `test/release-signer.test.js`, `test/estimate.test.js`,
1183
- `test/scan-watermarks.test.js`, `test/compat-scan.test.js`,
1184
- `test/wire-format-vectors.test.js` &mdash; 54 new cases on top of the
1185
- pre-existing AI client tests. Full suite 64/64.
1186
-
1187
- ### --init templates
1188
-
1189
- - Added `nextjs-app` and `react-native-app` `--init` templates plus `next`, `nextjs`, `react-native`, `reactnative`, `metro`, and `expo` aliases so scaffolded configs match the existing framework integrations.
1190
- - Added `vite-app`, `webpack-app`, `rspack-app`, and `turbopack-app` `--init` templates plus matching aliases so supported modern build paths now have first-class starter configs.
1191
- - Added `parcel-app`, `bun-app`, and `browserify-app` `--init` templates plus matching aliases so shipped Parcel/Bun/Browserify workflows now scaffold directly from the CLI.
1192
- - Added first-class `parcel`, `bun`, and `turbopack` package exports so the documented post-build workflows now ship with callable helpers and typed plan/config APIs.
1193
-
1194
- ## 0.1.1
1195
-
1196
- - Added `--mode` support so CommonJS and ES module config functions can branch cleanly across production, staging, and similar release profiles.
1197
- - Added the `electron-app` init template plus `electron` and `desktop` aliases for faster Electron/Desktop release onboarding.
1198
- - Added shipped Parcel, Bun, and Turbopack post-build examples plus README coverage for modern release pipelines without dedicated wrapper entrypoints.
1199
- - Fixed TypeScript init-template declarations so the public types include the shipped `electron-app` scaffold and aliases.
1200
- - Added regression coverage to ensure package JSON files do not introduce duplicate keys.
1201
- - Updated local-install tarball references and package metadata for the new patch release.
1202
-
1203
- ## 0.1.0
1204
-
1205
- Initial private package scaffold for JavaScript Obfuscator HTTP API workflows.
1206
-
1207
- - Added dependency-free CLI for directory, single-file, stdin/stdout, and dry-run workflows.
1208
- - Added named presets: `standard`, `balanced`, and `maximum`.
1209
- - Added JSON config schema, `--init`, online web-preset import, and CI option overrides.
1210
- - Added `doctor` preflight checks with optional tiny live API validation.
1211
- - Added Node API plus esbuild, Vite, Rollup, and Webpack entrypoints.
1212
- - Added a dedicated `react-native` alias entrypoint for Metro/Expo integrations.
1213
- - Added TypeScript declarations for public entrypoints.
1214
- - Added source-map removal, asset copying, include/exclude filtering, and public-name preservation helpers.
1215
- - Added Webpack 4 compatibility through a legacy `emit`-hook fallback while keeping Webpack 5 and Rspack support.
1216
- - Expanded Browserify, Webpack plugin, and Webpack/Rspack loader coverage to respect configured script extensions such as `.mjs` and `.cjs`.
1217
- - Added JS-Confuser migration helpers for the CLI and Node API, including starter-config conversion, option explanations, and direct translation for common presets, locks, and string/control-flow settings.
1
+ # Changelog
2
+
3
+ ## 0.4.12 - 2026-09-05
4
+
5
+ Two things that were true of the package but said nowhere a reader would see.
6
+
7
+ - **The command reference is now visible on npmjs.com.** npm stores at most
8
+ 65,536 characters of a README; ours is 100,761 bytes, so a third of it never
9
+ rendered on the package page. What fell outside was the whole `Commands`
10
+ section - 29 KB of it, starting at 68 KB, behind 18 KB of payment and
11
+ compliance evidence reference. `Commands` now sits directly after Quick Start.
12
+ Nothing was added or removed; the sections were reordered.
13
+ - **The free-tier header comment is disclosed before the run, not discovered
14
+ after it.** Free-tier output carries a seven-line comment naming the product
15
+ and linking the site, and nothing said so - the first anyone learned of it was
16
+ opening their own protected file. The anonymous notice now names it.
17
+ The banner itself is unchanged.
18
+ - One correction worth stating plainly: a free ACCOUNT does not remove that
19
+ header. The engine adds it whenever the account level is 0, which includes a
20
+ registered free account; only a paid plan is clean. The notice says so rather
21
+ than letting the neighbouring line about hourly limits imply otherwise.
22
+
23
+ ## 0.4.11 - 2026-09-03
24
+
25
+ Anonymous runs now say what a free account is worth.
26
+
27
+ - Every anonymous run printed "Run `javascriptobfuscator login` to use your
28
+ plan". That sentence is addressed to someone who already has a plan, and it
29
+ only ever prints for someone who does not - so the one moment the CLI has a
30
+ new user's attention was spent on something they could not act on. It now
31
+ states the real numbers: anonymous runs are capped at 5 per hour, a free
32
+ account raises that to 100 per hour, with a link to create one.
33
+ - The difference was never invented for this release; it has always been in the
34
+ server's rate limiter (2/min + 5/hour keyless, 10/min + 100/hour signed in,
35
+ per IP). It had simply never been said out loud.
36
+ - Why it matters now: until 2026-09-03 the server's limiter keyed on the
37
+ Cloudflare edge address rather than the caller's, so a single client spread
38
+ across edge nodes almost never met the anonymous cap. With that fixed the cap
39
+ binds for the first time, and a run that exceeds it can wait up to an hour.
40
+ The 429 body names both ceilings too, instead of saying an account "raises
41
+ the limit substantially".
42
+
43
+ No API, option or output changes.
44
+
45
+ ## 0.4.10 - 2026-09-02
46
+
47
+ Examples README pointed at the wrong version.
48
+
49
+ - The examples guide told customers to `npm install --save-dev
50
+ javascriptobfuscator-com@0.4.7` while the package was two releases newer.
51
+ Because `examples/` ships inside the tarball, published 0.4.8 and 0.4.9
52
+ carried that stale instruction. It now installs the current version, and the
53
+ publish gate (`prepublishOnly`) now runs `verify:examples`, so a mismatched
54
+ README blocks the release instead of shipping and only failing CI afterward.
55
+
56
+ ## 0.4.9 - 2026-09-01
57
+
58
+ README only. No behaviour changes.
59
+
60
+ - The npm registry truncates a README at 65,536 characters and ours is 100,725,
61
+ so a third of it never rendered on the package page - including `--local`
62
+ (protect without sending source), watermarking, signed release attestations,
63
+ the migration guide and the security section. The 30 KB command reference and
64
+ the PCI evidence walkthrough now sit at the end and take the truncation
65
+ instead; everything that explains what the tool is fits above the cut. Nothing
66
+ was deleted, and the full reference is on the docs site.
67
+ - Adds the measured dependency comparison against `javascript-obfuscator` 5.6.0:
68
+ 0 dependencies against 23, 3 installed directories against 120, 1s against 9s,
69
+ 2 MB against 56 MB. That was already true and stated once as an adjective; a
70
+ build tool sold on reducing risk should show the number.
71
+
72
+ ## 0.4.8 - 2026-09-01
73
+
74
+ The rate-limit message a first run actually sees.
75
+
76
+ - A keyless run that tripped the free-tier cap used to print
77
+ `API returned non-JSON response (429): The custom error module does not
78
+ recognize this error.` That sentence was IIS's, not ours: the server writes a
79
+ proper JSON body, and IIS's custom-error module was discarding it before it
80
+ left the machine. Fixed server-side; the message now says which of the two
81
+ ceilings was hit and how to raise it.
82
+ - The CLI no longer appends its paid-plan hint to a 429. The word "limit" in a
83
+ rate-limit message matched the billing regexp, so someone with no account was
84
+ being told to go check their subscription state.
85
+ - `--help` now shows the positional form. `jso-protector app.js` has always
86
+ worked and writes `app-obfuscated.js` beside the input - the same default the
87
+ competitor's CLI uses - but nothing in the help output said so, so anyone
88
+ arriving with that muscle memory had no way to find it.
89
+
90
+ ## 0.4.7 - 2026-08-31
91
+
92
+ Attribution only. No behaviour changes.
93
+
94
+ - The dashboard links the CLI opens now carry a source tag: `src=cli-login`
95
+ from `login`, and `src=cli-nokey` / `src=cli-nopwd` from the missing-credential
96
+ errors. A sign-up that starts at the CLI was previously indistinguishable from
97
+ a web sign-up, which made the free first run impossible to measure.
98
+ - Held back until the site could actually read the tag. It was being lost twice
99
+ on the way: the dashboard bounced signed-out visitors to sign-in without the
100
+ query string, and the sign-in page then hardcoded its own tag over whatever
101
+ arrived. Both are fixed and live, verified end to end before this release.
102
+
103
+ ## 0.4.6 - 2026-08-31
104
+
105
+ Documentation only. No behaviour changes.
106
+
107
+ - **The README said you needed an API key to use this package.** Since 0.4.5
108
+ that is false for a first run, and it was the first thing anyone read on
109
+ npmjs.com - so the page was arguing against the feature the release shipped.
110
+ The quickstart now says no account is needed, "What you need" answers
111
+ "nothing, to start", and the payment section describes the free tier and where
112
+ it ends instead of claiming the package unlocks nothing on its own.
113
+ - The quickstart installs `javascriptobfuscator-com` and calls
114
+ `javascriptobfuscator`, the current names.
115
+
116
+ ## 0.4.5 - 2026-08-31
117
+
118
+ - **The first command now works without an account.** With no credentials at
119
+ all the CLI sends the request anonymously and the service runs it on the free
120
+ tier - up to 20 files and 200 KB per request, no VM protection, rate limited
121
+ per IP. You get real protected output instead of an error, and the run says
122
+ so on stderr. `javascriptobfuscator login` switches to your plan.
123
+ - Half-configured credentials are still an error. Only *no* credentials means
124
+ anonymous, so a key that stopped resolving cannot silently downgrade a paid
125
+ build to the free tier.
126
+
127
+ ## 0.4.4 - 2026-08-31
128
+
129
+ - **`javascriptobfuscator login` saves your credentials once, for every project
130
+ on the machine.** Getting a first protected build used to take about seven
131
+ steps: install, hit the error, find the site, register, verify email, locate
132
+ the dashboard, copy two values, work out two platform-specific environment
133
+ variable names, set them, and run again - then set them again in the next
134
+ shell. `login` opens the dashboard, takes the two values (the password is not
135
+ echoed), and stores them in `~/.jso-protector/credentials.json`.
136
+ - `javascriptobfuscator logout` removes them.
137
+ - Stored credentials are resolved **last**, after an explicit flag, a project
138
+ config and the environment variables, so no existing CI setup changes
139
+ behaviour.
140
+ - The missing-credential errors now name `login` as the fastest fix.
141
+ - The store is written 0600. That is real protection on POSIX; Windows does not
142
+ honour the mode, so there it is only as protected as your user profile - the
143
+ same position as `~/.npmrc`.
144
+
145
+ ## 0.4.3 - 2026-08-30
146
+
147
+ Error messages only. No behaviour changes.
148
+
149
+ - **The "Missing API key" error now says where to get one.** It previously named
150
+ three places to *put* a key and no place to *obtain* one, which left a first-time
151
+ user with a dead end: measured against `javascript-obfuscator`, their first
152
+ command emits working protected output while ours printed this error. The
153
+ message now links the dashboard page that issues a free key, and the npm setup
154
+ guide. Same for "Missing API password", which is shown beside the key.
155
+ - Applied at all six sites - the protect path, `--doctor`, and config validation -
156
+ so the guidance is the same wherever you hit it.
157
+ - Also published under the package's new name, `javascriptobfuscator-com`.
158
+
159
+ ## 0.4.2 - 2026-08-27
160
+
161
+ Metadata only. No behaviour changes.
162
+
163
+ - **The package has a public source repository**:
164
+ [richtexteditor/jso-protector](https://github.com/richtexteditor/jso-protector).
165
+ npm now shows Repository and Issues links instead of nothing, which for a
166
+ security tool is the difference between auditable and "trust us". The
167
+ repository holds this package and nothing else - the protection engine runs
168
+ on the hosted API, or on your machine through the bundled `jso-local`
169
+ executable, and is not part of it.
170
+ - `bugs` points at GitHub issues and support@javascriptobfuscator.com.
171
+
172
+ ## 0.4.1 - 2026-08-27
173
+
174
+ Documentation only. No behaviour changes: the CLI, the Node API, the plugins,
175
+ and the protection engine are byte-for-byte the same as 0.4.0.
176
+
177
+ - **The npm page told visitors to install from a local path.** The README's
178
+ first instruction was `npm install --save-dev ./packages/jso-protector`, and
179
+ a later paragraph said the package was "intentionally local-only" and should
180
+ not go in a public registry — text written while it was, and left in place
181
+ when it was published. Someone arriving from npm search read an install
182
+ command that could not work and a claim that this was not a real product.
183
+ The first screen now says what the package does, installs from the registry,
184
+ and shows a two-line example.
185
+ - **Migration from another obfuscator is no longer buried.**
186
+ `--migrate-javascript-obfuscator` and `--migrate-js-confuser` convert an
187
+ existing config in one command; that was documented 1,500 lines down. It is
188
+ now on the first screen, with `--list-migration-map`, `--explain-compat`,
189
+ and `--competitor-gap-report` beside it.
190
+ - **`RELEASE.md` ships in the tarball and described the opposite of reality** —
191
+ `private: true`, `UNLICENSED`, and a publish guard that "should fail". It is
192
+ now the actual release runbook, including the site artifacts and checksums a
193
+ version bump has to keep in step.
194
+ - **Package metadata**: the description names what the tool does and the
195
+ toolchain it plugs into rather than calling itself an HTTP API wrapper, and
196
+ the keywords gained the terms people actually search for (`obfuscator`,
197
+ `code-protection`, `source-code-protection`, `anti-tamper`, `typescript`).
198
+ - Workspace and tarball install instructions still exist, under "Working from
199
+ a local checkout", where they belong.
200
+
201
+ ## 0.4.0 - 2026-08-26
202
+
203
+ - **Named configuration sets now protect.** `namedSets` — different protection
204
+ profiles for different parts of one app in a single build — had its schema,
205
+ resolver and tests in the package since the baseline but was never wired
206
+ into the protect flow; a config carrying it validated and was silently
207
+ ignored. It now works in both the CLI and the Node API (`protectFiles`):
208
+ each named set becomes its own API round with the baseline options plus the
209
+ set's preset block plus the set's own options; first matching set wins per
210
+ file; files matching no set keep the baseline exactly. The JSON summary
211
+ gains `namedSetGroups` (and `buildIds` when rounds produce multiple
212
+ reports); the manifest spans every group. A set the plan cannot afford
213
+ fails its own round with the normal API error and leaves other groups
214
+ untouched.
215
+ - **`TargetVersion` and `DownlevelIteration` are now first-class.** Both
216
+ engine options appear in `--list-options` (category `output`) and gain
217
+ camelCase config aliases `targetVersion` (`"es5"`/`"modern"`) and
218
+ `downlevelIteration` (spec-faithful ES5 for-of lowering: lazy stepping +
219
+ IteratorClose, like TypeScript's `downlevelIteration`; off by default
220
+ because it adds a per-step call on arrays; no effect on the modern target).
221
+ The raw option names worked before through generic passthrough; now they
222
+ are documented and validated.
223
+ - `--seed` is documented in `--help` (reproducible builds; omit for the
224
+ default polymorphic output).
225
+
226
+ ## 0.3.2 - 2026-08-10
227
+
228
+ - The shipped CI templates (all 13) now list `--local` in their
229
+ "Optional: migration and supply-chain checks" discovery block, with its
230
+ constraint attached: on-runner protection, no source upload, Windows agents
231
+ only. That block exists so users of non-GitHub CI systems can find a
232
+ capability without reading the docs site, and source-local protection was
233
+ the one capability missing from it.
234
+
235
+ ## 0.3.1 - 2026-08-10
236
+
237
+ - Documentation accuracy only, no behaviour change. The "Payment and API
238
+ Access" section still described the package as a client for the hosted API
239
+ and listed uploading source as an unconditional step, which stopped being
240
+ true in 0.3.0. It now states that `--local` keeps the source body on the
241
+ build machine while entitlement is still enforced server-side by a
242
+ source-free plan check.
243
+
244
+ ## 0.3.0 - 2026-08-10
245
+
246
+ - **`--local` protects without sending source.** The CLI can now run the
247
+ `jso-local` executable from the Windows desktop download (`cli/jso-local.exe`)
248
+ instead of POSTing source to the hosted API. Resolution order is
249
+ `--local-exe`, `JSO_LOCAL_EXE`, then the usual desktop install locations;
250
+ config equivalents are `local` and `localExe`.
251
+ - The local path is a transport swap, not a second implementation: it exchanges
252
+ the same request and response shapes the hosted endpoint uses, so options,
253
+ manifests, evidence packets, and size budgets behave identically. An option
254
+ that works hosted works locally by construction.
255
+ - Honest boundaries, enforced rather than documented: a source-free plan check
256
+ still runs online (Local Advanced is a paid capability), the payload holding
257
+ source and credentials is deleted after each run, and a build that asks for
258
+ VM bytecode protection fails with a clear message instead of silently
259
+ shipping weaker output.
260
+ - Corrected README copy that said protection workflows "do not meet a policy
261
+ that forbids source transfer" - true when written, false as of this release.
262
+
263
+ ## Native string splitting (2026-08-03)
264
+
265
+ - `splitStrings` and `splitStringsChunkLength` now map directly to native `SplitStrings` and `SplitStringsChunkLength` engine options instead of migration-review warnings.
266
+ - Eligible literals split into fixed-length concatenated chunks. Chunk length is bounded to 1-1024 and defaults to 10; directives, reserved literals, object keys, template segments, and mixed-server markers remain intact.
267
+ - CLI/config/Node API mappings, wire schemas, option discovery, ASP.NET model binding, and executable engine regression coverage ship together.
268
+ - JS-Confuser `stringSplitting` now maps approximately to the same native transform: booleans map directly, positive probabilities enable it, and custom selector functions remain explicit manual-review inputs.
269
+ - Splitting preserves dynamic-import and static-require specifiers for bundler discovery and never cuts a UTF-16 surrogate pair; executable regressions cover module linking, CommonJS resolution text, emoji values, and self-compressed output.
270
+ - Quoted class method, accessor, and field definition names remain literal. An adversarial class-field case previously failed during protection after the name became a binary expression; normal and self-compressed class-member execution now have permanent coverage.
271
+ - `stringArrayIndexShift` now maps approximately to native `StringArrayIndexShift`. Enabling it adds a deterministic nonzero one-slot offset to plain and encrypted string tables; it does not reproduce the competitor's randomized shift magnitude.
272
+ - `stringArrayShuffle` now maps directly to native `StringArrayShuffle`. The engine shuffles unique moved strings with per-build entropy, or reproducibly under `Seed`, and rewrites every lookup before plain or encrypted table emission.
273
+ - `stringArrayRotate` now maps directly to native `StringArrayRotate`. It applies a nonzero per-build cyclic rotation, rewrites every lookup, and composes with shuffle, index shifting, encryption, and seeded builds.
274
+ - `stringArrayIndexesType` now maps directly to native `StringArrayIndexesType`, supporting `hexadecimal-number`, `hexadecimal-numeric-string`, and mixed lists. Numeric strings are explicitly coerced before array lookup so hexadecimal property text cannot silently return `undefined`.
275
+ - `stringArrayThreshold` now maps directly to a native 0-1 per-unique-literal probability gate. Duplicate values receive one stable decision, zero moves nothing, one moves everything eligible, and `Seed` makes partial selection reproducible.
276
+ - `stringArrayCallsTransform` and `stringArrayCallsTransformThreshold` now map directly to native secondary index-table indirection. The engine emits nested lookups for selected calls, supports 0-1 probability, and composes with shifting, shuffling, rotation, encryption, index representations, compression, and seeded builds.
277
+ - String-array wrapper count, chaining, parameter ceiling, and type now map to native root-level wrappers. Variable aliases and multi-parameter function wrappers execute through optional predecessor chains; count is approximate because competitor per-function-scope placement is not reproduced.
278
+ - `transformObjectKeys` maps approximately to native safe data-key transformation. Identifier and quoted data keys become computed moved-string lookups; numeric keys, methods/accessors, shorthand-sensitive members, and `__proto__` remain literal to preserve semantics.
279
+
280
+ ## 0.2.1 - 2026-07-13
281
+
282
+ - Added OIDC/SAML configuration validation, organization directory behavior, and a bearer-authenticated SCIM 2.0 user lifecycle core to governance.
283
+ - Added versioned managed Web Integrity policies, monitor/block decisions, incident deduplication and workflow, plus active blocking for unknown dynamic scripts.
284
+ - Exported the managed integrity, third-party inventory, and countermeasure runtime entry points.
285
+
286
+ ## 0.2.0 — 2026-05-19
287
+
288
+ - Added `--report <file>` flag. After a successful run, writes the full API
289
+ response JSON (BuildId, PolymorphismFingerprint, GlobalIdentifierMap,
290
+ MemberIdentifierMap, audit metadata) to the given path. Strips the heavy
291
+ file payload before persisting since the protected source is already
292
+ written to `config.output`. Pairs with `jso-symbolicate`.
293
+ - Added `--label <value>` flag. Tags the API request with a release label
294
+ that appears as `ReleaseLabel` in the JSO dashboard audit log. Also reads
295
+ `JSO_LABEL` / `JAVASCRIPT_OBFUSCATOR_LABEL` from the environment.
296
+ - `--json` output now includes `buildId`, `polymorphismFingerprint`, and
297
+ `label` fields so CI scripts can capture them without a second read of the
298
+ report file.
299
+ - All 149 existing CLI unit tests still pass.
300
+
301
+ ## Unreleased
302
+
303
+ ### Runtime recovery and governance foundations (2026-07-13)
304
+
305
+ - Added bounded browser-side `SelfHealing` for post-startup self-defending
306
+ mutations, corrected the integrity baseline to hash the constructed function
307
+ representation, and added `reload`, `callback`, and `degrade` response modes.
308
+ - Added `jso-protector/governance` with local RBAC, scoped-token descriptors,
309
+ and SHA-256 hash-chained audit events. Hosted SSO/SCIM remains explicitly out
310
+ of scope for this local module.
311
+
312
+ ### Runtime incident action plans (2026-06-12)
313
+
314
+ - Dashboard Monitoring JSON/CSV exports now carry source-free per-incident
315
+ action plans with next owner, evidence packet, response due state, status
316
+ transition, acknowledgement requirement, and next action.
317
+ - `--runtime-incident-evidence` preserves those action plans in Markdown and
318
+ JSON, adds an Incident Action Plan table, and prompts BYO AI or internal
319
+ reviewers about overdue incident owners before external handoff.
320
+
321
+ ### VM marker ergonomics (2026-06-12)
322
+
323
+ - VM protection now accepts `// @virtualize`, `/* @virtualize */`, and
324
+ `/** @virtualize */` markers immediately before supported synchronous
325
+ function declarations. The website pipeline normalizes block and JSDoc
326
+ marker forms before invoking the VM sidecar, removing a silent-miss setup
327
+ trap from the VM beta flow.
328
+ - The VM proof static guard now checks the server-side normalizer and public
329
+ docs so marker support cannot drift back to line-comment-only wording.
330
+
331
+ ### Parser engine compatibility smoke (2026-06-12)
332
+
333
+ - `tools/verify-parser-engine.ps1` now runs a multi-root compatibility smoke
334
+ after the main parser conformance harness. The smoke compiles the legacy root
335
+ `App_Code/JScriptProtectorV2` source tree and the framework
336
+ `JScriptCodeDom` source tree, then verifies the Cesium-style `?.25`,
337
+ optional-chain, nullish, and `.5e3` leading-dot exponent cases.
338
+ - Archive hygiene now requires the new `compat-run.ps1` and
339
+ `compat-smoke.cs` files so deployment packages include the same parser drift
340
+ guard used locally.
341
+
342
+ ### PCI DSS review assistant (2026-06-08)
343
+
344
+ - `jso-protector compliance pci-dss-v4` Markdown and JSON now include a
345
+ source-free PCI DSS Review Assistant for BYO AI or internal reviewer triage.
346
+ - The assistant turns evidence gaps, signed-release proof, script
347
+ authorization, observed script drift, header change evidence, runtime
348
+ incident routing, and QSA handoff boundaries into checkout-owner actions
349
+ without sharing source code, protected output, raw script rows, raw response
350
+ headers, raw incident payloads, payment-card data, provider keys, customer
351
+ data, or secrets.
352
+
353
+ ### Runtime defense review assistant (2026-06-08)
354
+
355
+ - `--runtime-defense-review` Markdown and JSON now include a source-free
356
+ Runtime Defense Review Assistant for BYO AI or internal reviewer triage.
357
+ - The assistant turns runtime behavior scope, monitoring handoff,
358
+ countermeasure policy, domain/date lock smoke, source-reading compatibility
359
+ scan, release metadata, and protected-build smoke into owner prompts without
360
+ sharing source code, protected output, domains, dates, redirect URLs, beacon
361
+ URLs, countermeasure values, raw config files, API credentials, provider
362
+ keys, collector tokens, customer data, or secrets.
363
+
364
+ ### Identifier cache review assistant (2026-06-08)
365
+
366
+ - `--identifier-cache-review` Markdown and JSON now include a source-free
367
+ Identifier Cache Review Assistant for BYO AI or internal reviewer triage.
368
+ - The assistant turns deterministic cache assumptions, custom dictionary
369
+ replacement, reserved-name coverage, release metadata, and protected-build
370
+ smoke into owner prompts without sharing source code, protected output, cache
371
+ contents, dictionary values, prefixes, reserved-name expressions, raw config
372
+ files, API credentials, provider keys, customer data, or secrets.
373
+
374
+ ### Migration review assistant (2026-06-08)
375
+
376
+ - `--migration-review` Markdown and JSON now include a source-free Migration
377
+ Review Assistant for BYO AI or internal reviewer triage.
378
+ - The assistant turns manual review tracks, source-map policy,
379
+ identifier-cache replacement, runtime-defense behavior, source-reading
380
+ command boundaries, release metadata, and protected-build smoke into owner
381
+ prompts without sharing source code, protected output, source maps, cache
382
+ contents, raw config files, API credentials, provider keys, customer data, or
383
+ secrets.
384
+
385
+ ### Competitor gap review assistant (2026-06-08)
386
+
387
+ - `--competitor-gap-report` JSON and text output now include a source-free
388
+ Competitor Gap Review Assistant for BYO AI or internal reviewer triage.
389
+ - The assistant turns gap prioritization, partial-parity validation, triggered
390
+ migration limitations, source-reading scan boundaries, vendor-claim
391
+ freshness, and plan handoff into owner prompts without sharing source code,
392
+ protected output, API credentials, provider keys, customer data, or secrets.
393
+
394
+ ### Source-map evidence review assistant (2026-06-08)
395
+
396
+ - `--source-map-evidence` now includes a source-free Source Map Review
397
+ Assistant for BYO AI or internal reviewer triage.
398
+ - The assistant turns leak cleanup, manifest verification, secure debugging
399
+ exceptions, bundler cleanup order, and clean reviewer handoff into owner
400
+ prompts without sharing source code, protected output, raw `.map` files,
401
+ source-map contents, original source paths, customer data, or secrets.
402
+
403
+ ### VM proof review assistant (2026-06-08)
404
+
405
+ - `--vm-proof-pack` now includes a source-free VM Proof Review Assistant for
406
+ BYO AI or internal reviewer triage.
407
+ - The assistant turns failed proof checks, VM warnings, cold sensitive
408
+ function scope, hot-path risk, build identity, and protected-build smoke
409
+ evidence into owner prompts without sharing source code, protected output,
410
+ VM bytecode, source maps, provider keys, customer data, or secrets.
411
+
412
+ ### Deployment hygiene evidence packet (2026-06-08)
413
+
414
+ - Added `--deployment-hygiene-evidence <file>` and
415
+ `--deployment-hygiene-output <file>` to turn
416
+ `tools/Build-UpdatedArchives.ps1 -ReportPath` JSON into a source-free
417
+ archive/deployment hygiene reviewer packet.
418
+ - The packet summarizes archive names, entry counts, byte sizes, missing
419
+ required entries, blocked entries, blocked category booleans, exclusion
420
+ policy, operator checklist, rotation triggers, and hygiene-report SHA-256
421
+ without including `Web.config` contents, raw secrets, provider keys,
422
+ database strings, host-specific transforms, customer data, or source code.
423
+ - The command writes failed packets before exiting nonzero when archive
424
+ hygiene is blocked, and includes a Deployment Hygiene Review Assistant for
425
+ BYO AI or internal reviewers.
426
+
427
+ ### Runtime incident review assistant (2026-06-08)
428
+
429
+ - `--runtime-incident-evidence` now includes a source-free Runtime Incident
430
+ Review Assistant for BYO AI or internal reviewer triage.
431
+ - The assistant turns urgent response, repeated-signal correlation, dashboard
432
+ status actions, response-window decisions, and alert-routing handoff into
433
+ owner prompts without sharing source code, raw incident payloads, collector
434
+ tokens, customer data, or secrets.
435
+
436
+ ### AI-resistance review assistant (2026-06-08)
437
+
438
+ - `--ai-resistance-evidence` now includes a source-free Review Assistant
439
+ Packet for BYO AI or internal reviewer triage.
440
+ - The packet turns failed required checks, missing attacker-model review
441
+ tracks, VM scope, runtime evidence, compatibility proof, and planned
442
+ Resistance Score wording into owner actions without sending source code,
443
+ protected output, source maps, provider keys, or secrets.
444
+ - Text output now renders the assistant packet beside the non-scoring review
445
+ matrix, review decision, claim boundaries, and recommendations.
446
+
447
+ ### Payment-page security-header review assistant (2026-06-08)
448
+
449
+ - HAR-derived payment-page security-header snapshots now include a
450
+ source-free Review Assistant Packet for BYO AI or internal reviewer triage.
451
+ - The packet focuses checkout reviewers on baseline drift, CSP/reporting,
452
+ HSTS, and frame-policy owner actions while explicitly excluding raw response
453
+ headers, cookies, source code, payment data, customer data, provider keys,
454
+ and secrets.
455
+ - PCI DSS v4 security-header evidence now preserves or rebuilds the same
456
+ review assistant packet and renders it in Markdown beside the header summary.
457
+
458
+ ### Runtime incident repeated-signal correlation (2026-06-08)
459
+
460
+ - `--runtime-incident-evidence` now preserves Dashboard Monitoring
461
+ repeated-signal correlation and computes a CSV/row fallback when the export
462
+ does not already include it.
463
+ - Runtime evidence Markdown now includes a repeated-signal correlation table
464
+ for repeated fingerprints and reasons, plus recommendations for repeated
465
+ active high/critical signals before reviewer handoff.
466
+ - PCI DSS v4 runtime-incident evidence now summarizes repeated-signal
467
+ correlation beside routing, dashboard actions, response windows, and
468
+ checklist metadata.
469
+
470
+ ### Runtime incident evidence dashboard closeout (2026-06-08)
471
+
472
+ - Runtime incident evidence packets now preserve and recommend the dashboard's
473
+ filtered `Reviewing -> Resolved` closeout action when it is present in a
474
+ Dashboard Monitoring JSON export.
475
+ - CLI tests now cover multi-action dashboard metadata, including both
476
+ `Open -> Reviewing` acknowledgement and `Reviewing -> Resolved` closeout.
477
+
478
+ ### BYO AI key health in usage preflight (2026-06-08)
479
+
480
+ - `ai.usage()` test fixtures now pin the `/v1/ai/usage.ashx`
481
+ `providerKey` health object so Node callers can monitor missing, failed,
482
+ stale, or rotation-review-due BYO AI keys without receiving key material.
483
+ - `jso-protector --estimate` now preserves that source-free provider-key
484
+ health in text output and under `estimate.providerKey` in JSON output while
485
+ keeping quota as the only OK/WARN/FAIL gate.
486
+ - `jso ai usage --pretty` now prints the same provider-key health summary:
487
+ source-free status label, provider, next stored-key test, rotation review,
488
+ and recommended action.
489
+ - TypeScript callers now get an `AiProviderKeyHealth` declaration on
490
+ `AiUsageResult.providerKey`, and package verification guards that declaration.
491
+ - The README now documents `jso ai usage --pretty`, typed
492
+ `ai.usage().providerKey` monitoring, the 30-day stored-key test, and the
493
+ 90-day rotation review fields surfaced by usage preflight.
494
+
495
+ ### Native parser-engine verification runners (2026-06-08)
496
+
497
+ - Added PowerShell runners for ES6 lowering conformance, real-world parser
498
+ corpus parse/write-back checks, and the combined parser-engine pre-deploy
499
+ gate so this Windows workspace can verify parser changes without git-bash.
500
+ - Added `verify:parser-engine` as a static package guard so the native engine
501
+ runners, parser/ES6 harness docs, archive packaging, and polyglot smoke
502
+ contract cannot drift out of the shipped updated-files package.
503
+
504
+ ### Migration review packet (2026-06-08)
505
+
506
+ - Added `--migration-review` with optional
507
+ `--migration-review-output <file>` so migrated release teams get one
508
+ source-free owner checklist for all accepted competitor-only fields before
509
+ running focused source-map, identifier-cache, or runtime-defense packets.
510
+ - The packet captures review-only field names, value types/counts, limitation
511
+ groups, CLI compatibility warnings, saved report/manifest readiness,
512
+ follow-up commands, protected-build smoke-test actions, and source-free
513
+ sharing boundaries without embedding source code, protected output,
514
+ source-map contents, cache contents, dictionary values, prefixes, domains,
515
+ URLs, dates, seed values, or reserved expressions.
516
+ - Migration reports now add a `migration-review` next command whenever any
517
+ review-only item is present, and `--competitor-gap-report` lists the packet
518
+ as a source-free review artifact when limitation groups are triggered.
519
+ - The GitHub Action now exposes `migration-review` and
520
+ `migration-review-report`, writes the same source-free JSON packet as a
521
+ pre-protection artifact, and surfaces the report path for upload-artifact
522
+ steps.
523
+
524
+ ### Source-map migration next command (2026-06-08)
525
+
526
+ - Migration reports now add a post-protect `source-map-evidence` next command
527
+ whenever the source config contains source-map review items.
528
+ - The generated command uses the same manifest path emitted by the `protect`
529
+ next command:
530
+ `jso-protector --source-map-evidence dist-protected/jso-manifest.json
531
+ --source-map-evidence-output reports/source-map-evidence.md`.
532
+ - Updated the README, website migration docs, tests, and source-map evidence
533
+ guard so source-map migrations point directly at the source-free reviewer
534
+ packet instead of relying on separate documentation.
535
+
536
+ ### Runtime defense migration review packet (2026-06-08)
537
+
538
+ - Added `--runtime-defense-review` with optional
539
+ `--runtime-defense-review-output <file>` so migrated release teams can turn
540
+ anti-debug, self-defending, runtime lock, console, and countermeasure
541
+ settings into a source-free reviewer packet instead of a broad compatibility
542
+ scan note.
543
+ - The packet lists review-only field names, configured runtime evidence,
544
+ monitoring and customer-owned forwarding tracks, countermeasure-policy
545
+ follow-up, source-free release metadata readiness, compatibility-scan
546
+ follow-up, protected-build smoke-test follow-up, and safe-sharing boundaries
547
+ without embedding domains, dates, redirect URLs, beacon URLs, countermeasure
548
+ values, source code, protected output, or compatibility-scan snippets.
549
+ - `--competitor-gap-report` now points runtime-self-defending limitations at
550
+ the dedicated `--runtime-defense-review` command and keeps
551
+ `runtime-compatibility-scan` as an explicit source-reading follow-up.
552
+ - Migration reports now add a `runtime-defense-review` next command whenever
553
+ the source config contains anti-debug, self-defending, runtime lock, console,
554
+ or countermeasure review items.
555
+ - Added a `verify:runtime-defense-review` guard so CLI behavior, tests, docs,
556
+ changelog, and competitive gap notes stay aligned.
557
+
558
+ ### Identifier cache replacement review packet (2026-06-08)
559
+
560
+ - Added `--identifier-cache-review` with optional
561
+ `--identifier-cache-review-output <file>` so migrated release teams can turn
562
+ `identifierNamesCache`, `identifierNamesCachePath`, `identifiersDictionary`,
563
+ and `identifiersPrefix` into a source-free reviewer packet instead of a
564
+ vague manual-review note.
565
+ - The packet lists review-only field names, counts, reserved-name evidence,
566
+ saved API report and manifest readiness, protected-build smoke-test follow-up,
567
+ and safe-sharing boundaries without embedding cache contents, dictionary
568
+ values, prefixes, reserved-name expressions, or source code.
569
+ - `--competitor-gap-report` now points identifier-cache and custom-dictionary
570
+ limitations at the dedicated review command, and the main verify chain has a
571
+ `verify:identifier-cache-review` guard so CLI, tests, docs, and gap notes stay
572
+ aligned.
573
+ - Migration reports now add an `identifier-cache-review` next command whenever
574
+ the source config contains identifier cache or custom dictionary review items,
575
+ so release owners do not have to discover the packet from separate docs.
576
+
577
+ ### Runtime incident dashboard action metadata (2026-06-08)
578
+
579
+ - `--runtime-incident-evidence` now preserves `dashboardActions` from
580
+ Dashboard Monitoring JSON exports and renders them in Markdown.
581
+ - PCI DSS v4 runtime incident evidence also keeps the same action metadata, so
582
+ reviewer packets can say which source-free dashboard status action is
583
+ available without scraping dashboard HTML.
584
+ - The action metadata currently covers the filtered `Open` to `Reviewing`
585
+ acknowledgement path, including scope, matching Open incident count, and the
586
+ safety boundary for resolved, ignored, and already-reviewing incidents.
587
+
588
+ ### Payment-page security-header evidence (2026-06-08)
589
+
590
+ - Added `--payment-page-headers <csv|json>` to `jso-protector compliance
591
+ pci-dss-v4` so checkout owners can summarize CSP, `script-src`,
592
+ `frame-src`, reporting endpoint, HSTS, referrer-policy, monitor,
593
+ alert-route, baseline-hash match state, checkout surface, and frame context
594
+ in the same source-free PCI evidence packet as script inventory and runtime
595
+ incidents.
596
+ - Added `examples/payment-page-security-headers.json` as a starter snapshot
597
+ for payment-page header evidence.
598
+ - Added `--payment-page-headers-from-har <file>` with
599
+ `--payment-page-headers-output <file>` and optional
600
+ `--payment-page-url-pattern <regex>` so browser or synthetic-monitor HAR
601
+ exports can become the same source-free security-header snapshot without
602
+ preserving raw cookie headers.
603
+ - Added optional `--payment-page-headers-baseline <file>` so the HAR converter
604
+ marks each checkout page or frame as `match`, `mismatch`, or `missing`
605
+ against the last approved security-header snapshot for PCI 11.6.1 change
606
+ review.
607
+ - PCI DSS v4 security-header evidence now reports missing baseline pages as a
608
+ first-class count instead of folding them into unstated baseline evidence.
609
+ - Added matching GitHub Action support through `payment-page-har`,
610
+ `payment-page-headers-baseline`, `payment-page-url-pattern`, and
611
+ `payment-page-headers-report`, including a source-free JSON artifact path,
612
+ step-summary baseline metrics, and workflow annotations for header drift,
613
+ missing CSP, or missing reporting-endpoint coverage.
614
+ - Updated the non-GitHub CI template hint blocks so Jenkins, GitLab, Azure,
615
+ CircleCI, Bitbucket, Buildkite, Drone, Woodpecker, GoCD, Tekton, Argo, and
616
+ TeamCity users see the same security-header baseline option.
617
+ - Added optional GitHub Action PCI DSS v4 evidence assembly through
618
+ `pci-dss-v4-evidence`, `pci-dss-v4-report`, and
619
+ `pci-dss-v4-json-report`. The action now auto-creates a manifest when the
620
+ PCI gate is enabled, prefers the signed `.sig` envelope when present, reuses
621
+ payment-page audit/header/runtime evidence inputs, and emits source-free
622
+ Markdown plus JSON report paths.
623
+
624
+ ### Payment-page iframe evidence context (2026-06-08)
625
+
626
+ - Payment-page script inventory starters, audit packets, and PCI DSS v4
627
+ reports now preserve optional checkout-surface and frame metadata:
628
+ `checkoutSurface`, `frameContext`, `frameOwner`, `parentPageHref`,
629
+ `frameHref`, and `frameOrigin`.
630
+ - Audit and PCI Markdown/JSON summaries now include checkout surface counts,
631
+ frame context counts, frame owner counts, and iframe-scoped script counts so
632
+ checkout owners can distinguish parent-page, hosted-checkout, PSP iframe,
633
+ and embedded-frame evidence without embedding raw source code.
634
+
635
+ ### Source-map evidence verification guard (2026-06-08)
636
+
637
+ - Added `verify:source-map-evidence` to the main package verify chain. The
638
+ guard checks that manifest verification, source-map leak auditing,
639
+ `--source-map-evidence`, public npm docs, GitHub Action artifact wiring, and
640
+ source-free reviewer-boundary wording stay aligned.
641
+
642
+ ### Payment-page evidence verification guard (2026-06-08)
643
+
644
+ - Added `verify:payment-page` to the main package verify chain. The guard
645
+ checks that payment-page script inventory generation, audit reconciliation,
646
+ PCI DSS v4 evidence import, GitHub Action preflight wiring, public
647
+ Payment Page Protection docs, and source-free Review Assistant Packet
648
+ boundaries stay aligned.
649
+
650
+ ### VM proof-pack verification guard (2026-06-08)
651
+
652
+ - Added `verify:vm-proof` to the main package verify chain. The guard checks
653
+ that `--verify-vm-proof`, `--vm-proof-pack`, public VM Proof Pack docs,
654
+ GitHub Action inputs/outputs, CLI tests, and reviewer handoff language stay
655
+ aligned around source-free VM evidence, cold-path review, and
656
+ `ready-for-manual-review` decisions.
657
+
658
+ ### Runtime incident evidence packet (2026-06-08)
659
+
660
+ - Added `--runtime-incident-evidence <csv|json>` with optional
661
+ `--runtime-incident-evidence-output <file>` so account owners can turn a
662
+ Dashboard Monitoring runtime incident export into a standalone source-free
663
+ Markdown or JSON handoff packet for support, on-call, and reviewer workflows.
664
+ - The packet summarizes incident counts, active high/critical count, BuildIDs,
665
+ routing recommendation, response window, response checklist, alert routing
666
+ playbook, export SHA-256, safe-sharing boundaries, and review decision. It
667
+ exits nonzero when active high/critical incidents need response.
668
+
669
+ ### Competitor gap review artifacts (2026-06-08)
670
+
671
+ - Refreshed the `--competitor-gap-report` public-source snapshot to 2026-06-08
672
+ with current javascript-obfuscator, JS-Confuser, Jscrambler, AfterPack,
673
+ Obfuscator.io, JSDefender, and Digital.ai public surfaces.
674
+ - Added a `reviewArtifacts` block to the JSON and text report so migrated
675
+ release teams get concrete source-free handoff commands for release-check,
676
+ competitor-gap, source-map evidence, and identifier-cache replacement review,
677
+ plus a source-reading compatibility scan when runtime-defense switches need
678
+ manual validation.
679
+
680
+ ### Source-map evidence packet (2026-06-07)
681
+
682
+ - Added `--source-map-evidence <manifest>` with optional
683
+ `--source-map-evidence-output <file>` so release teams can generate a
684
+ source-free Markdown or JSON packet proving protected artifacts still match
685
+ the manifest and do not expose `.map` files or `sourceMappingURL` comments.
686
+ The packet lists artifact names, counts, policy boundaries, review decision,
687
+ and next actions without embedding source code or source-map contents.
688
+
689
+ ### Runtime incident alert routing playbook evidence (2026-06-07)
690
+
691
+ - PCI DSS v4 runtime-incident evidence now preserves Dashboard Monitoring
692
+ `routing.alertRoutingPlaybook` metadata from JSON exports and renders it in
693
+ Markdown. Reviewer packets keep the security-response, customer-owned
694
+ alerting, support-handoff, and reviewer-packet lanes without embedding raw
695
+ incident rows or turning JSO into a managed SOC console.
696
+
697
+ ### Competitor gap source snapshot (2026-06-07)
698
+
699
+ - `--competitor-gap-report` now includes a dated public-source snapshot in JSON
700
+ and text output. The report names the competitor pages reviewed for the
701
+ migration framing and warns teams to re-check current vendor pages before
702
+ publishing named competitive claims.
703
+
704
+ ### AI evidence review decision (2026-06-07)
705
+
706
+ - `--ai-resistance-evidence` now includes a source-free `reviewDecision`
707
+ object and text line. The packet is `blocked` when required evidence fails,
708
+ `ready-for-manual-review` when required checks pass but review tracks need
709
+ confirmation, and `ready` when every current track is evidenced.
710
+
711
+ ### Public copy discipline verify gate (2026-06-07)
712
+
713
+ - Added `verify:copy-discipline` to the main verify chain. The guard scans
714
+ public website copy and the npm README for stale competitor claims, absolute
715
+ AI/security claims, and missing evidence-boundary statements so customer
716
+ pages stay end-user focused and source-reviewable.
717
+
718
+ ### Runtime incident response window (2026-06-07)
719
+
720
+ - PCI runtime-incident evidence now preserves Dashboard Monitoring
721
+ `responseWindow` metadata from JSON exports and renders it in Markdown.
722
+ The packet records the source-free timing basis, target, due time, overdue
723
+ state, and status action so reviewers can see whether active runtime
724
+ incidents are still inside the response target.
725
+ - CSV incident exports now get a conservative response-window fallback in the
726
+ PCI report: the reporter can calculate the due time from the oldest active
727
+ high/critical or active incident, while leaving overdue state unevaluated
728
+ unless a dashboard JSON export supplies generation timing.
729
+
730
+ ### Archive hygiene verify gate (2026-06-07)
731
+
732
+ - Added `verify:deployment-hygiene` to the main verify chain. The guard checks
733
+ that `tools/Build-UpdatedArchives.ps1` still supports optional JSON hygiene
734
+ reports, keeps blocked deployment files out of updated-files zips, and keeps
735
+ the public Deployment Hygiene docs aligned with the archive handoff command.
736
+ - Archive hygiene JSON reports now include a source-free operator checklist
737
+ with before-sharing steps, rotation triggers, and a support boundary so
738
+ release handoffs can say what to verify without exposing config secrets.
739
+
740
+ ### Payment-page inventory audit packet (2026-06-07)
741
+
742
+ - PCI runtime-incident evidence now includes a source-free response checklist
743
+ derived from Dashboard Monitoring CSV/JSON exports. Dashboard JSON exports
744
+ can carry that checklist directly, and the PCI report preserves it when
745
+ present. The checklist keeps filter scope, routing scope, suggested owners,
746
+ response targets, downstream incident destinations, and safe-sharing
747
+ boundaries without embedding raw incident rows.
748
+ - Added optional payment-page script review metadata fields:
749
+ `risk`, `dataAccess`, and `approvalTicket`. Generated inventory starters now
750
+ include blank fields for checkout owners to complete, and PCI evidence
751
+ reports summarize risk ratings, data-access scopes, and approval-ticket
752
+ coverage without embedding every script row.
753
+ - The payment-page script inventory audit now reports review-context coverage
754
+ for authorized scripts. Missing optional `risk`, `dataAccess`, or
755
+ `approvalTicket` values show up as non-blocking review-context gaps, while
756
+ unknown scripts, unauthorized scripts, hash drift, missing approved rows,
757
+ late injection, runtime violations, duplicate rows, and required metadata
758
+ gaps remain blocking.
759
+ - The same audit now includes a source-free Review Assistant Packet for BYO
760
+ AI or internal reviewer triage, with safe-input boundaries, "do not include"
761
+ reminders, and prompts for unknown scripts, authorization gaps, integrity
762
+ drift, runtime behavior, missing approved scripts, and approval-ticket
763
+ cleanup.
764
+ - Added `--script-inventory-audit <inventory.json|csv>` with required
765
+ `--runtime-inventory-snapshot <snapshot.json>` and optional
766
+ `--script-inventory-audit-output <file>` so checkout owners can reconcile an
767
+ approved payment-page script inventory against a saved browser runtime
768
+ snapshot before reviewer handoff.
769
+ - The audit stays local and source-free, emits Markdown by default or JSON with
770
+ `--json`, and flags unknown observed scripts, unauthorized observed scripts,
771
+ missing approved scripts, integrity hash mismatches, late injection, runtime
772
+ violation reasons, duplicate approved rows, and incomplete inventory
773
+ metadata.
774
+ - `jso-protector compliance pci-dss-v4` now accepts
775
+ `--script-inventory-audit <json>` so the approved-vs-observed reconciliation
776
+ summary can be included in the same PCI evidence report as the script
777
+ inventory and Dashboard Monitoring runtime incident export.
778
+ - The shipped CI templates now advertise the same
779
+ `--script-inventory-audit --runtime-inventory-snapshot
780
+ --script-inventory-audit-output --json` gate in their optional preflight
781
+ block, and the GitHub Action exposes matching
782
+ `payment-script-inventory`, `runtime-inventory-snapshot`, and
783
+ `script-inventory-audit-report` inputs for checkout release workflows.
784
+ - The GitHub Action audit preflight now writes a step summary and workflow
785
+ annotations for the first source-free findings so checkout owners can see
786
+ script drift in the CI run before opening the JSON artifact.
787
+
788
+ ### VM proof pack handoff (2026-06-07)
789
+
790
+ - Added `--vm-proof-pack <report.json>` with optional
791
+ `--vm-proof-output <file>` so release teams can turn a saved, source-free API
792
+ report into a reviewer-ready VM evidence packet. Markdown is emitted by
793
+ default; add `--json` for machine-readable evidence.
794
+ - The proof pack reuses `--verify-vm-proof` checks and adds build identity,
795
+ release label, polymorphism fingerprint, enabled options, warnings,
796
+ recommendations, and a required reviewer checklist.
797
+ - The proof pack now includes a `reviewDecision` object in JSON and a matching
798
+ Markdown section. Passing VM evidence can still be labeled
799
+ `ready-for-manual-review` when the reviewer must confirm cold-function scope
800
+ and protected-build smoke-test results before approval.
801
+ - Generated Markdown and JSON proof packs now include hot-path/cold-path
802
+ guidance so reviewers can confirm VM protection stayed on rare sensitive
803
+ functions instead of render loops, animation ticks, scroll handlers, or
804
+ high-frequency parsers.
805
+ - Generated proof packs now also include VM compatibility guidance covering
806
+ supported function shape, skipped-with-warning syntax, public callback /
807
+ framework-reflection risks, and reviewer actions before approval.
808
+
809
+ ### Payment-page incident evidence for PCI reports (2026-06-06)
810
+
811
+ - Added `--script-inventory <csv|json>` to `jso-protector compliance
812
+ pci-dss-v4` so payment-page script authorization, written justification,
813
+ owner, review-date, domain, and integrity-reference coverage can be hashed
814
+ and summarized in the same source-free evidence report.
815
+ - Added `examples/payment-page-script-inventory.json` as a starter attachment
816
+ for the source-free payment-page inventory evidence workflow.
817
+ - Added `--script-inventory-from-snapshot <file>` with optional
818
+ `--script-inventory-output <file>` so checkout owners can turn an observed
819
+ `third-party-inventory` runtime snapshot into a source-free PCI inventory
820
+ review starter before adding authorization, justification, owner, and review
821
+ dates.
822
+ - Added `--runtime-incidents <csv|json>` to `jso-protector compliance
823
+ pci-dss-v4` so the report can summarize the Dashboard Monitoring
824
+ runtime-incident export as source-free PCI DSS v4 11.6.1 evidence.
825
+ - Broadened the same flag to accept the Dashboard Monitoring JSON export too,
826
+ so support tooling and release automation can feed machine-readable incident
827
+ evidence into the PCI report without converting to CSV first.
828
+ - Runtime incident JSON evidence now preserves Dashboard Monitoring export
829
+ filters, such as active status or high/critical severity, in the JSON summary
830
+ and Markdown evidence table.
831
+ - Runtime incident JSON evidence now also preserves Dashboard Monitoring
832
+ routing recommendations, including escalation level, recommended queue, and
833
+ preferred evidence packet, in the PCI evidence JSON and Markdown report.
834
+ - Dashboard Monitoring now shows that same source-free routing recommendation
835
+ on the current filtered incident view before checkout and support owners
836
+ export the JSON evidence packet.
837
+ - Runtime incident JSON evidence now preserves routing response targets and
838
+ next status actions, so PCI reviewer packets can carry queue, timing, and
839
+ triage-state guidance without embedding source code.
840
+ - The Markdown/JSON report now records CSV SHA-256, incident count, status and
841
+ severity counts, open/reviewing totals, high-or-critical unresolved totals,
842
+ received/event date ranges, and Build IDs without embedding every raw URL or
843
+ user-agent row.
844
+ - Updated payment-page documentation so checkout owners can pair signed
845
+ manifests, watermarks, beacon/SIEM routing, and dashboard incident history
846
+ in one reviewer-friendly command.
847
+
848
+ ### AI resistance evidence report (2026-06-06)
849
+
850
+ - Added `--ai-resistance-evidence <report.json>` so security reviewers can
851
+ turn a saved, source-free API report into a current AI-resistance evidence
852
+ checklist without sending source to an AI provider.
853
+ - Added `--ai-resistance-evidence-output <file>` so the same checklist can be
854
+ written as a reviewer artifact, using text by default or JSON when `--json`
855
+ is set.
856
+ - Extended `verify:ai` static checks so the AI evidence output artifact
857
+ workflow remains visible in both the CLI and public AI Resistance Evidence
858
+ docs.
859
+ - Added a non-scoring attacker-model review matrix to the evidence checklist.
860
+ The matrix covers identifier recovery, string recovery, control-flow
861
+ reconstruction, sensitive-function extraction, runtime instrumentation,
862
+ compatibility regression, and source-free handoff without claiming the
863
+ planned Resistance Score is live.
864
+ - The report checks build identity, strong protection options, optional VM
865
+ proof, runtime-defense evidence, compatibility evidence, and source-free
866
+ review data while clearly marking Resistance Score as planned, not live.
867
+ - The Markdown-style text output and JSON report now include explicit claim
868
+ boundaries for current evidence, planned Resistance Score, bounded AI
869
+ resistance claims, and client-side runtime secrecy limits.
870
+ - Added `--require-vm-proof` for release teams that want VM-backed evidence to
871
+ be a hard CI gate.
872
+
873
+ ### VM proof-pack verifier (2026-06-06)
874
+
875
+ - Added `--verify-vm-proof <report.json>` so security reviewers can validate a
876
+ saved, source-free API report without inspecting private source.
877
+ - The verifier checks that VM protection was requested, VM protection was
878
+ applied, the virtualized function count meets `--min-vm-functions`, and
879
+ `VMProtectionWarnings` is empty.
880
+ - Added CLI regression tests for saved-report and direct-report shapes.
881
+
882
+ ### Competitor gap report hosted-runtime evidence (2026-06-06)
883
+
884
+ - The runtime-defense capability now lists hosted dashboard intake,
885
+ `RuntimeDefenseBeaconUrl`, Dashboard Monitoring, SIEM forwarding, and
886
+ countermeasure helpers as the JSO evidence surface.
887
+ - The generated migration plan now tells teams to route runtime events to
888
+ customer monitoring or `/v1/runtime/beacon.ashx` before manually validating
889
+ competitor anti-debug/self-defending switches.
890
+ - Added regression coverage so the CLI report keeps the hosted first-triage
891
+ path visible during competitor migrations.
892
+
893
+ ### Migration documentation parity wording (2026-06-06)
894
+
895
+ - Updated the README, migration guide, and security checklist so runtime
896
+ defense is described as a mapped/partial capability with monitoring and
897
+ countermeasure helpers, not as a pure unresolved gap.
898
+ - The competitor report docs now name Obfuscator.io explicitly and call out
899
+ manual validation for protected source-map generation, release readiness,
900
+ and review-only migration fields.
901
+
902
+ ### Competitor gap report runtime-defense parity (2026-06-06)
903
+
904
+ - Runtime-defense parity now reports as `partial` instead of a pure `gap`
905
+ because `jso-protector` ships runtime monitoring, beacon forwarding, and
906
+ countermeasure helpers.
907
+ - The competitor list now names Obfuscator.io explicitly alongside
908
+ `javascript-obfuscator`, JS-Confuser, Jscrambler, and JSDefender.
909
+ - Migrated anti-debug, integrity, self-defending, and tamper-protection
910
+ switches remain review-only limitations because they are not one-to-one
911
+ hosted API options.
912
+ - Added a CLI test assertion so the runtime-defense capability cannot regress
913
+ to a pure gap while the JSO runtime helpers remain available.
914
+
915
+ ### Compliance evidence forwarder — push reports to GRC platforms (2026-06-02)
916
+
917
+ New `compliance/evidence-forwarder.js` + a `--push` flag on the
918
+ `compliance` CLI. After the PCI DSS v4 reporter generates a report, the
919
+ forwarder normalizes it into a vendor-neutral evidence artifact (control
920
+ mappings, summary, build id, content sha256) and POSTs it to a GRC
921
+ platform so the per-build report that already exists also lands in
922
+ Drata / Vanta / an in-house system without a manual upload.
923
+
924
+ ```
925
+ npx jso-protector compliance pci-dss-v4 \
926
+ --manifest dist/build.manifest.json.sig --root dist \
927
+ --push drata --push-endpoint "$JSO_GRC_ENDPOINT" --push-token "$JSO_GRC_TOKEN"
928
+ ```
929
+
930
+ Three profiles shape the envelope + headers: `generic` (artifact as-is,
931
+ optional HMAC signing identical to the jso-beacon-slack webhook adapter),
932
+ `drata`, and `vanta`. Field names are overridable via `fieldMap`. The
933
+ tenant endpoint + token are operator-supplied — GRC platforms are
934
+ multi-tenant, so the module deliberately does not hardcode a vendor API
935
+ version it can't keep current; the profile only shapes the request.
936
+
937
+ Contract matches the SIEM adapters: the forwarder never throws — a flaky
938
+ GRC endpoint resolves to `{ ok:false, status:0, error }` and does NOT
939
+ change the compliance exit code (the report's own verdict is the
940
+ authority; forwarding is a side channel). 14 new tests (artifact
941
+ normalization + stable hashing, all three profiles, fieldMap overrides,
942
+ HMAC verifiability, transport-failure + throw isolation, non-2xx
943
+ handling). 315/315 full jso-protector suite passes.
944
+
945
+ ### AI script data governance — block LLM-bound exfiltration (2026-06-02)
946
+
947
+ New browser runtime module `jso-protector/runtime/ai-script-governance.js`
948
+ that hooks `fetch`, `XMLHttpRequest`, and `WebSocket` on the protected
949
+ page and watches for requests that hit a known LLM provider endpoint.
950
+ Closes the Jscrambler "AI Data Governance" parity gap surfaced by the
951
+ latest deep-research workflow.
952
+
953
+ What it catches:
954
+
955
+ - a Magecart-style script exfiltrating card data to a free OpenAI
956
+ endpoint ("summarize this number")
957
+ - an untrusted third-party widget quietly streaming page contents to
958
+ its own AI backend
959
+ - a compromised CI/CD dependency that POSTs conversation history to
960
+ a side-channel LLM
961
+
962
+ Default known-host list covers OpenAI / Anthropic / Google
963
+ (Gemini + Vertex) / Groq / Together / Mistral / AWS Bedrock
964
+ (region-prefixed) / Cohere / Perplexity / xAI / DeepSeek / Replicate /
965
+ Hugging Face Inference / Azure OpenAI (tenant-prefixed). Extensible via
966
+ `config.additionalKnownLLMHosts`.
967
+
968
+ Two enforcement modes:
969
+
970
+ - `log` (default) — records destination + payload size + caller stack
971
+ frame; request proceeds.
972
+ - `block` — refuses. `fetch` returns a synthetic HTTP 451; XHR
973
+ transitions to `readyState=4 status=0`; `WebSocket` constructor
974
+ throws.
975
+
976
+ Events emit through the same beacon channel as `third-party-inventory`,
977
+ so the existing `jso-beacon-slack` SIEM adapters forward them unchanged
978
+ (envelope `kind: "ai-data-access"`).
979
+
980
+ 17 new tests, 301/301 full jso-protector suite passes.
981
+
982
+ ### Electron V8 bytecode adapter + React Native 2026 playbook (2026-06-02)
983
+
984
+ Completes deep-research GAP 5.
985
+
986
+ - New sibling package **`jso-protector-electron`** (`packages/jso-protector-electron/`)
987
+ with `compileDirectory({input, output, mode})` that walks JSO-protected
988
+ JS and emits V8 bytecode `.jsc` files via `vm.Script.createCachedData()`.
989
+ Two execution modes:
990
+ - `embedded` (run under Electron): emits real `.jsc` files bound to
991
+ the host Electron's V8 build.
992
+ - `scaffold-only` (plain Node): emits the source + per-file
993
+ `.bytecode-meta.json` for CI environments that don't ship Electron.
994
+ - `auto` picks based on `process.versions.electron`.
995
+ CLI: `jso-protector-electron --input dist-protected --output dist-bytecode`.
996
+ Each `.jsc` carries an 8-byte magic + length-prefixed JSON header +
997
+ the V8 cachedData blob so an auditor can validate coverage. 14 tests
998
+ cover both modes, the CLI surface, the header layout, and the
999
+ actionable error when embedded mode is invoked under plain Node.
1000
+
1001
+ - New **`examples/react-native/README.md`** playbook (2026 refresh)
1002
+ walking the modern React Native + JSO pipeline:
1003
+ - Metro `customSerializer` JSO integration (existing `metro.js`).
1004
+ - Hermes bytecode layering (`.hbc`).
1005
+ - **Play Integrity API** (Android) replacing the deprecated
1006
+ SafetyNet Attestation (shut down 2024-06-30).
1007
+ - **DCAppAttestService** (iOS) for on-device attestation.
1008
+ - JSO release manifest + beacon flow for the in-app verifier.
1009
+ - Field-tested gotchas (Reanimated worklets, native-module bridge
1010
+ name preservation, dev-mode bypass).
1011
+
1012
+ ### RASP active countermeasures + named config sets (2026-06-02)
1013
+
1014
+ Two paired build-time + browser-runtime features completing deep-research
1015
+ GAP 4 (JSDefender v2 / Jscrambler RASP parity).
1016
+
1017
+ **Browser runtime (`runtime/countermeasures.js`):**
1018
+
1019
+ Six configurable reactions to runtime-defense tamper events, fired after
1020
+ the beacon POST so even destructive actions leave telemetry:
1021
+
1022
+ - `log` - record-only; default, no UI side effects
1023
+ - `break` - stub every function on `window.__jsoEntry.*` so the protected
1024
+ entry points become no-ops
1025
+ - `deleteCookies` - clear cookies + sessionStorage + localStorage to
1026
+ defuse stale credentials in a poisoned page
1027
+ - `selfDestruct` with `mode: blank-body | crashWithMemory | crashTimeout`
1028
+ - `redirect` to a safe URL (`javascript:` schemes rejected at build time)
1029
+ - `callback` invoking a customer function with the violation event
1030
+
1031
+ Configurable as a single action or an ordered array
1032
+ (`onTamper: ["break", "deleteCookies"]`). An `allowList` keeps dev
1033
+ environments from accidentally shipping destructive escalations.
1034
+
1035
+ **Build-time named sets (`config/named-sets.js`):**
1036
+
1037
+ Apply different protection profiles to different parts of one app:
1038
+
1039
+ ```json
1040
+ {
1041
+ "preset": "balanced",
1042
+ "countermeasures": { "onTamper": "log" },
1043
+ "namedSets": {
1044
+ "checkout": { "match": ["src/checkout/**", "src/wallet/**"],
1045
+ "preset": "maximum",
1046
+ "options": { "AddDeadCode": true, "DeadcodeLevel": "High" },
1047
+ "countermeasures": { "onTamper": ["break", "deleteCookies"],
1048
+ "redirectUrl": "https://example.com/outage" } },
1049
+ "authenticated": { "match": ["src/dashboard/**", "src/account/**"],
1050
+ "preset": "maximum",
1051
+ "countermeasures": { "onTamper": ["deleteCookies"] } }
1052
+ }
1053
+ }
1054
+ ```
1055
+
1056
+ First-matching-set wins, so config authors get deterministic precedence
1057
+ by writing sets in priority order (like a route table). The glob matcher
1058
+ supports `**`, `*`, `?`, `[a-z]`, `{a,b}` — including `/**` at end which
1059
+ matches the bare directory plus any nested files (so `src/checkout/**`
1060
+ covers `src/checkout` AND `src/checkout/a/b.js`).
1061
+
1062
+ Schema (`jso.config.schema.json`) extends with `countermeasures` and
1063
+ `namedSets` as top-level properties plus a `$defs/countermeasures`
1064
+ shared definition. Strict `additionalProperties: false` is preserved
1065
+ on both the top-level and per-set objects.
1066
+
1067
+ 28 new tests (15 countermeasures + 13 named-sets), full jso-protector
1068
+ suite **284/284 pass**, verify chain green.
1069
+
1070
+ ### Third-party script inventory + Magecart detection (2026-06-02)
1071
+
1072
+ New browser-side runtime module `jso-protector/runtime/third-party-inventory.js`
1073
+ that snapshots every script loaded by a payment page and flags violations
1074
+ to a beacon URL.
1075
+
1076
+ Detection signals:
1077
+
1078
+ - script `src` outside the configured `originAllowlist`
1079
+ - inline `<script>` whose sha256 is not in `inlineContentAllowlist`
1080
+ - script DOM-injected AFTER `document.readyState === "complete"`
1081
+ (defer-injection is a common Magecart evasion)
1082
+ - same script URL but its content sha256 changed since the previous
1083
+ deploy (catches CDN supply-chain swap attacks)
1084
+
1085
+ Pure browser code (Web Crypto, fetch, PerformanceObserver) so it ships
1086
+ in the protected bundle without server-side support. The module's
1087
+ inventory snapshots emit through the same beacon channel as the rest
1088
+ of the runtime-defense suite, so jso-beacon-slack forwards them to
1089
+ Splunk / Elasticsearch / generic webhook unchanged.
1090
+
1091
+ ```js
1092
+ // In the page that's being protected:
1093
+ const tpi = require("jso-protector/runtime/third-party-inventory");
1094
+ tpi.attach(window, {
1095
+ buildId: window.__jsoBuildId,
1096
+ originAllowlist: ["https://www.example.com", "https://cdn.example.com"],
1097
+ inlineContentAllowlist: ["a3f5...sha256...", "b07e..."],
1098
+ previousContentBySrc: { "https://cdn.example.com/lib.js": "<old-sha256>" },
1099
+ beaconUrl: "https://beacon.example.com/v1/jso/inventory",
1100
+ flushIntervalMs: 15000,
1101
+ });
1102
+ ```
1103
+
1104
+ 16 new tests (256 total in jso-protector) cover the pure-engine path
1105
+ (unknown-origin / unknown-inline / injected-after-load /
1106
+ content-changed-vs-previous-deploy / dedup / backpressure /
1107
+ '*'-wildcard / trailing-slash) and the DOM-attach path
1108
+ (idempotency + `createElement('script')` setter intercept).
1109
+
1110
+ ### PCI DSS v4.0.1 compliance reporter (2026-06-02)
1111
+
1112
+ New offline subcommand `jso-protector compliance pci-dss-v4` that consumes
1113
+ a `--sign-release`-produced manifest envelope and emits a Markdown +
1114
+ JSON evidence report mapping JSO primitives onto the two PCI DSS v4
1115
+ controls JSO directly contributes to:
1116
+
1117
+ - **Req 6.4.3** payment-page script management — covered by HMAC watermarks
1118
+ (sub-req .a, authorized), Ed25519 release attestation (.b, integrity),
1119
+ and the manifest `files[]` array (.c, inventory).
1120
+ - **Req 11.6.1** change/tamper detection — covered by Runtime Defense +
1121
+ BeaconUrl wiring (.a/.b, detection + cadence) and jso-beacon-slack SIEM
1122
+ adapters (.c, personnel alerts).
1123
+
1124
+ CLI:
1125
+
1126
+ ```
1127
+ jso-protector compliance pci-dss-v4 \
1128
+ --manifest dist/build.manifest.json.sig \
1129
+ --root dist \
1130
+ --watermark-key "$JSO_WATERMARK_KEY" \
1131
+ --beacon-url https://beacon.example.com/v1/jso \
1132
+ --siem splunk-hec \
1133
+ --organization "Example Corp" \
1134
+ --output reports/pci-dss-v4.md
1135
+ ```
1136
+
1137
+ Exit codes follow the same shape as `--verify-release`: 0 = fully evidenced,
1138
+ 1 = evidence gaps, 2 = manifest unsigned. The reporter is pure-offline —
1139
+ no HTTP traffic, no telemetry. New `compliance/pci-dss-v4/` directory
1140
+ ships in the npm tarball; 12 new tests (240 total) all pass.
1141
+
1142
+ ### Supply-chain integrity surface
1143
+
1144
+ - Added `--competitor-gap-report` to summarize covered / partial / gap parity
1145
+ against common JavaScript obfuscator surfaces after migrations, including
1146
+ runtime-defense, source-map, lock, and release-forensics guidance.
1147
+ - Added public TypeScript declarations and package verification coverage for
1148
+ the competitor gap report helpers.
1149
+ - Added `--competitor-gap-report` to the optional CI template hint block and
1150
+ extended CI template verification so all shipped pipelines keep surfacing
1151
+ competitor migration gap checks.
1152
+ - Added the same competitor gap report step to Kubernetes and Helm release
1153
+ examples, plus migration/security/example docs that call out its
1154
+ source-free behavior.
1155
+ - Added `competitor-gap` to migration next-command output, gave the JSON report
1156
+ a stable `format` / `version` envelope, and included the report in
1157
+ `--local-only` preflight guidance.
1158
+ - Added `--watermark <tag> --watermark-key <key>` &mdash; injects an HMAC-SHA256
1159
+ header-comment marker into every input file before submission to the
1160
+ obfuscation API. The obfuscator's `KeepComment` option preserves the
1161
+ block verbatim through every transform so the marker survives in the
1162
+ protected output. `JSO_WATERMARK_KEY` env-var fallback. Wire format
1163
+ documented at /Docs/WireFormat.aspx#watermark.
1164
+ - Added `--verify-watermark <file>` &mdash; single-file watermark validator.
1165
+ With `--watermark-key`, runs a constant-time HMAC compare; without, prints
1166
+ the embedded tag (lookup-only mode for forensic inspection of leaked
1167
+ artifacts). Exit codes: 0 valid / 1 invalid / 2 missing-or-no-key.
1168
+ - Added `--scan-watermarks <dir>` &mdash; tree walker for forensic / inventory
1169
+ use. Skips `node_modules` + `.git`. Aggregates findings into a sorted
1170
+ report. Exit codes: 0 all clean, 1 at least one invalid signature, 2 no
1171
+ watermarks found at all.
1172
+ - Added `--sign-release <priv.pem>` &mdash; produces an Ed25519-signed release
1173
+ attestation `.manifest.json.sig` next to the manifest. Covers BuildId +
1174
+ polymorphism fingerprint + label + per-file SHA-256. Canonical-JSON
1175
+ serialization so verifiers in any language produce byte-identical
1176
+ signatures.
1177
+ - Added `--verify-release <sig>` &mdash; validates the envelope. Stage 1 is
1178
+ Ed25519 signature over canonical manifest. Stage 2 (when `--verify-root
1179
+ <dir>` is also passed) re-hashes referenced files on disk to catch
1180
+ post-signing artifact tampering. `--public-key <pem>` pins to a trusted
1181
+ public key (defeats key-substitution attacks).
1182
+ - Added `--genkey-release <name>` &mdash; mints a fresh Ed25519 keypair, writes
1183
+ `<name>.priv.pem` (0o600) and `<name>.pub.pem` (0o644). Removes the
1184
+ "where do I get keys" friction.
1185
+ - Added `--estimate` &mdash; pre-flight quota gate. Walks input files, calls
1186
+ `/v1/ai/usage` for current-month counters, prints a three-state report
1187
+ (OK / WARN / FAIL). FAIL (exit 1) when actions remaining = 0 blocks
1188
+ builds that can't finish. Network failure on the usage endpoint
1189
+ downgrades to WARN with a note (doesn't crash the pipeline).
1190
+ - Added `--ai-precheck` &mdash; inline AI compatibility gate. Runs
1191
+ `/v1/ai/compat-check` on every input file before the obfuscation API
1192
+ is called; aborts the build on findings per `--ai-precheck-fail-on`
1193
+ (`error` / `warning` / `never`). Quota untouched on failure.
1194
+ - New `jso ai compat-scan` subcommand &mdash; stand-alone compat-check over
1195
+ every input file in `jso.config.json`. Useful for pre-commit hooks and
1196
+ IDE integrations.
1197
+ - jso.config.schema.json: added `report`, `label`, `watermark`, and
1198
+ `watermarkKey` to the schema so config validators stop rejecting these
1199
+ documented keys. (Previous behavior: `additionalProperties: false`
1200
+ caused IDE schema validators to flag the keys as unknown.)
1201
+ - Coverage: new test suites `test/ai-precheck.test.js`, `test/watermark.test.js`,
1202
+ `test/release-signer.test.js`, `test/estimate.test.js`,
1203
+ `test/scan-watermarks.test.js`, `test/compat-scan.test.js`,
1204
+ `test/wire-format-vectors.test.js` &mdash; 54 new cases on top of the
1205
+ pre-existing AI client tests. Full suite 64/64.
1206
+
1207
+ ### --init templates
1208
+
1209
+ - Added `nextjs-app` and `react-native-app` `--init` templates plus `next`, `nextjs`, `react-native`, `reactnative`, `metro`, and `expo` aliases so scaffolded configs match the existing framework integrations.
1210
+ - Added `vite-app`, `webpack-app`, `rspack-app`, and `turbopack-app` `--init` templates plus matching aliases so supported modern build paths now have first-class starter configs.
1211
+ - Added `parcel-app`, `bun-app`, and `browserify-app` `--init` templates plus matching aliases so shipped Parcel/Bun/Browserify workflows now scaffold directly from the CLI.
1212
+ - Added first-class `parcel`, `bun`, and `turbopack` package exports so the documented post-build workflows now ship with callable helpers and typed plan/config APIs.
1213
+
1214
+ ## 0.1.1
1215
+
1216
+ - Added `--mode` support so CommonJS and ES module config functions can branch cleanly across production, staging, and similar release profiles.
1217
+ - Added the `electron-app` init template plus `electron` and `desktop` aliases for faster Electron/Desktop release onboarding.
1218
+ - Added shipped Parcel, Bun, and Turbopack post-build examples plus README coverage for modern release pipelines without dedicated wrapper entrypoints.
1219
+ - Fixed TypeScript init-template declarations so the public types include the shipped `electron-app` scaffold and aliases.
1220
+ - Added regression coverage to ensure package JSON files do not introduce duplicate keys.
1221
+ - Updated local-install tarball references and package metadata for the new patch release.
1222
+
1223
+ ## 0.1.0
1224
+
1225
+ Initial private package scaffold for JavaScript Obfuscator HTTP API workflows.
1226
+
1227
+ - Added dependency-free CLI for directory, single-file, stdin/stdout, and dry-run workflows.
1228
+ - Added named presets: `standard`, `balanced`, and `maximum`.
1229
+ - Added JSON config schema, `--init`, online web-preset import, and CI option overrides.
1230
+ - Added `doctor` preflight checks with optional tiny live API validation.
1231
+ - Added Node API plus esbuild, Vite, Rollup, and Webpack entrypoints.
1232
+ - Added a dedicated `react-native` alias entrypoint for Metro/Expo integrations.
1233
+ - Added TypeScript declarations for public entrypoints.
1234
+ - Added source-map removal, asset copying, include/exclude filtering, and public-name preservation helpers.
1235
+ - Added Webpack 4 compatibility through a legacy `emit`-hook fallback while keeping Webpack 5 and Rspack support.
1236
+ - Expanded Browserify, Webpack plugin, and Webpack/Rspack loader coverage to respect configured script extensions such as `.mjs` and `.cjs`.
1237
+ - Added JS-Confuser migration helpers for the CLI and Node API, including starter-config conversion, option explanations, and direct translation for common presets, locks, and string/control-flow settings.