jso-protector 0.2.0 → 0.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,5 +1,84 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.4.0 - 2026-08-26
4
+
5
+ - **Named configuration sets now protect.** `namedSets` — different protection
6
+ profiles for different parts of one app in a single build — had its schema,
7
+ resolver and tests in the package since the baseline but was never wired
8
+ into the protect flow; a config carrying it validated and was silently
9
+ ignored. It now works in both the CLI and the Node API (`protectFiles`):
10
+ each named set becomes its own API round with the baseline options plus the
11
+ set's preset block plus the set's own options; first matching set wins per
12
+ file; files matching no set keep the baseline exactly. The JSON summary
13
+ gains `namedSetGroups` (and `buildIds` when rounds produce multiple
14
+ reports); the manifest spans every group. A set the plan cannot afford
15
+ fails its own round with the normal API error and leaves other groups
16
+ untouched.
17
+ - **`TargetVersion` and `DownlevelIteration` are now first-class.** Both
18
+ engine options appear in `--list-options` (category `output`) and gain
19
+ camelCase config aliases `targetVersion` (`"es5"`/`"modern"`) and
20
+ `downlevelIteration` (spec-faithful ES5 for-of lowering: lazy stepping +
21
+ IteratorClose, like TypeScript's `downlevelIteration`; off by default
22
+ because it adds a per-step call on arrays; no effect on the modern target).
23
+ The raw option names worked before through generic passthrough; now they
24
+ are documented and validated.
25
+ - `--seed` is documented in `--help` (reproducible builds; omit for the
26
+ default polymorphic output).
27
+
28
+ ## 0.3.2 - 2026-08-10
29
+
30
+ - The shipped CI templates (all 13) now list `--local` in their
31
+ "Optional: migration and supply-chain checks" discovery block, with its
32
+ constraint attached: on-runner protection, no source upload, Windows agents
33
+ only. That block exists so users of non-GitHub CI systems can find a
34
+ capability without reading the docs site, and source-local protection was
35
+ the one capability missing from it.
36
+
37
+ ## 0.3.1 - 2026-08-10
38
+
39
+ - Documentation accuracy only, no behaviour change. The "Payment and API
40
+ Access" section still described the package as a client for the hosted API
41
+ and listed uploading source as an unconditional step, which stopped being
42
+ true in 0.3.0. It now states that `--local` keeps the source body on the
43
+ build machine while entitlement is still enforced server-side by a
44
+ source-free plan check.
45
+
46
+ ## 0.3.0 - 2026-08-10
47
+
48
+ - **`--local` protects without sending source.** The CLI can now run the
49
+ `jso-local` executable from the Windows desktop download (`cli/jso-local.exe`)
50
+ instead of POSTing source to the hosted API. Resolution order is
51
+ `--local-exe`, `JSO_LOCAL_EXE`, then the usual desktop install locations;
52
+ config equivalents are `local` and `localExe`.
53
+ - The local path is a transport swap, not a second implementation: it exchanges
54
+ the same request and response shapes the hosted endpoint uses, so options,
55
+ manifests, evidence packets, and size budgets behave identically. An option
56
+ that works hosted works locally by construction.
57
+ - Honest boundaries, enforced rather than documented: a source-free plan check
58
+ still runs online (Local Advanced is a paid capability), the payload holding
59
+ source and credentials is deleted after each run, and a build that asks for
60
+ VM bytecode protection fails with a clear message instead of silently
61
+ shipping weaker output.
62
+ - Corrected README copy that said protection workflows "do not meet a policy
63
+ that forbids source transfer" - true when written, false as of this release.
64
+
65
+ ## Native string splitting (2026-08-03)
66
+
67
+ - `splitStrings` and `splitStringsChunkLength` now map directly to native `SplitStrings` and `SplitStringsChunkLength` engine options instead of migration-review warnings.
68
+ - 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.
69
+ - CLI/config/Node API mappings, wire schemas, option discovery, ASP.NET model binding, and executable engine regression coverage ship together.
70
+ - 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.
71
+ - 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.
72
+ - 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.
73
+ - `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.
74
+ - `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.
75
+ - `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.
76
+ - `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`.
77
+ - `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.
78
+ - `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.
79
+ - 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.
80
+ - `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.
81
+
3
82
  ## 0.2.1 - 2026-07-13
4
83
 
5
84
  - Added OIDC/SAML configuration validation, organization directory behavior, and a bearer-authenticated SCIM 2.0 user lifecycle core to governance.
package/MIGRATION.md CHANGED
@@ -43,6 +43,9 @@ set JAVASCRIPT_OBFUSCATOR_API_PASSWORD=base64-api-password
43
43
  | javascript-obfuscator concept | jso-protector / HTTP API direction |
44
44
  | --- | --- |
45
45
  | `stringArray`, `stringArrayEncoding` | `MoveStrings`, `EncodeStrings`, `EncryptStrings` |
46
+ | `reservedStrings` | `ReservedStrings` (matching literals remain verbatim; bounded regex input) |
47
+ | `numbersToExpressions` | `EncodeNumbers` (approximate: obscures numeric literals but does not preserve expression shape) |
48
+ | `forceTransformStrings` | `ForceTransformStrings` (matching literals override `ReservedStrings`) |
46
49
  | Identifier rename settings | `ReplaceNames`, `RenameGlobals`, `RenameMembers`, `IdentityStyle` |
47
50
  | `reservedNames` | `reservedNames`, `--reserved-name`, or `VariableExclusion` |
48
51
  | Control-flow and dead-code transforms | `DeepObfuscate`, `ReorderCode`, `FlatTransform`, `AddDeadCode`, `DeadcodeLevel` |
@@ -90,7 +93,11 @@ Mapped compatibility flags include `--options-preset`, `--parse-html`, `--string
90
93
 
91
94
  The same mapped compatibility keys can live in `jso.config.json` while you are migrating. Explicit `options` values override the compatibility mapping, so you can start familiar and then tune exact hosted API fields without changing scripts.
92
95
 
93
- The CLI also accepts common review-only flags such as `--source-map`, `--source-map-sources-mode`, `--identifier-names-cache`, `--identifier-names-cache-path`, `--identifiers-dictionary`, `--identifiers-prefix`, `--self-defending`, `--debug-protection`, `--disable-console-output`, `--reserved-strings`, `--rename-properties-mode`, `--strict-mode`, `--numbers-to-expressions`, `--seed`, `--simplify`, `--split-strings`, and string-array wrapper/index flags so older scripts do not fail immediately. `--ignore-imports` is handled directly and preserves import/export-from statements plus common static `require()` and `import()` statements before the remaining code is protected. Other review-only flags emit compatibility warnings when there is no one-to-one hosted API mapping. Run `jso-protector --explain-compat self-defending --json` or replace `self-defending` with any mapped or review-only option to see the recommended migration action.
96
+ The CLI maps `--self-defending`, `--debug-protection`, `--debug-protection-interval`, `--disable-console-output`, `--domain-lock-redirect-url`, `--seed`, `--reserved-strings`, `--force-transform-strings`, `--split-strings`, and `--split-strings-chunk-length` directly to hosted engine options. String splitting uses fixed chunks from 1 through 1024 characters (default 10) and preserves directives, reserved literals, object keys, template segments, import/require specifiers, mixed-server markers, and Unicode surrogate pairs. String-array shuffle, rotation, index representation, call indirection, wrapper type/chaining/parameter controls, and thresholds map to native controls; index shift, wrapper count, and safe object-key transformation retain documented approximation boundaries. `--numbers-to-expressions` remains an approximate mapping. Source-map, identifier-cache/dictionary, rename-mode, strict-mode, and simplify workflow fields remain review-only. `--ignore-imports` is handled directly. Review-only fields emit compatibility warnings, and vendor-specific runtime behavior still requires validation.
97
+
98
+ For string-selection controls, the CLI maps `--reserved-strings`, and `--force-transform-strings` directly.
99
+
100
+ Quoted class method, accessor, and field names remain literal because class definition grammar does not accept concatenation expressions in those positions.
94
101
 
95
102
  ## Start with a conservative config
96
103
 
@@ -147,6 +154,22 @@ const multipleResults = await obfuscateMultiple({
147
154
 
148
155
  Use `getOptionsByPreset("standard" | "balanced" | "maximum")` when replacing preset lookup helpers, and `translateJavascriptObfuscatorOptions(sourceOptions, overrides)` when migration tooling needs to inspect the mapped hosted API config before making the API call.
149
156
 
157
+ `stringArrayIndexShift` maps approximately to native `StringArrayIndexShift`. When enabled, references use a deterministic nonzero one-slot offset in both plain and encrypted string tables. This preserves the index-shifting protection shape, but does not reproduce `javascript-obfuscator`'s randomized shift magnitude; run the protected application in its target runtime before release.
158
+
159
+ `stringArrayShuffle` maps directly to native `StringArrayShuffle`. It randomizes the order of unique moved strings and rewrites every generated lookup before plain or encrypted table emission. Builds use fresh entropy by default; supplying `Seed` makes the shuffled artifact reproducible.
160
+
161
+ `stringArrayRotate` maps directly to native `StringArrayRotate`. For tables with multiple values it applies a nonzero cyclic offset chosen per build, then rewrites every generated lookup. It uses an independent entropy stream and remains reproducible when `Seed` is supplied.
162
+
163
+ `stringArrayIndexesType` maps directly to native `StringArrayIndexesType`. Both documented values are supported: `hexadecimal-number` emits numeric hexadecimal indexes, while `hexadecimal-numeric-string` emits hexadecimal strings with explicit numeric coercion before lookup. Mixed arrays select a representation per lookup from an independent entropy stream and remain reproducible under `Seed`.
164
+
165
+ `stringArrayThreshold` maps directly to native `StringArrayThreshold`. Values must be from 0 through 1. Each unique eligible literal receives one stable probability decision, so duplicate literals cannot split between moved and verbatim forms; zero disables moving, one moves every eligible literal, and partial selection is reproducible under `Seed`.
166
+
167
+ `stringArrayCallsTransform` and `stringArrayCallsTransformThreshold` map directly to native secondary index-table indirection. Selected lookups become `stringTable[indexTable[n]]`; the threshold accepts 0 through 1, defaults to 0.5 when transformation is enabled, and uses an independent entropy stream that is reproducible under `Seed`. It composes with shifting, shuffle, rotation, encryption, index representation, and compression.
168
+
169
+ The wrapper controls map to native root-level string-table wrappers. `stringArrayWrappersType` supports `variable` aliases and `function` wrappers; count is bounded to 0-10, function parameters to 2-5, and chained calls delegate through predecessors. Noise arguments and wrapper selection use isolated seeded entropy. Wrapper type, chaining, and parameter behavior map directly, while count is approximate because the competitor places wrappers inside each root or function scope and JSO deliberately emits them only at the protected root.
170
+
171
+ `transformObjectKeys` maps approximately to native `TransformObjectKeys`. Safe identifier and quoted object-literal data keys become computed string-table lookups. Numeric keys, method/accessor definitions, shorthand-sensitive members, and `__proto__` remain literal because converting those shapes can change JavaScript property or prototype semantics.
172
+
150
173
  ## JS-Confuser migration
151
174
 
152
175
  Use the dedicated JS-Confuser helpers when the current project is built around `js-confuser` rather than `javascript-obfuscator`:
@@ -157,7 +180,9 @@ jso-protector --explain-js-confuser-compat lock.endDate --json
157
180
  jso-protector --migrate-js-confuser js-confuser.config.cjs --output jso.config.json
158
181
  ```
159
182
 
160
- The current JS-Confuser migration path maps common preset, lock, identifier, string, minify, and control-flow settings into the nearest hosted API equivalents. Runtime-only features such as anti-debugging, integrity checks, self-defending locks, start-date gating, countermeasure hooks, and tamper protection are preserved in generated config as `jsConfuserLock*` review fields so teams can carry that intent forward explicitly. Custom locks, opaque predicates, dispatcher mode, and similar JS-Confuser-specific transforms are still surfaced as review items rather than guessed automatically.
183
+ The current JS-Confuser migration path maps common preset, lock, identifier, string, minify, and control-flow settings into the nearest hosted API equivalents. Anti-debugging, integrity/self-defending, start-date, and tamper-protection locks map approximately to native `DebugProtection`, `SelfDefending`, `LockStartDate`, and `AntiMonkeyPatching` controls. Numeric probability values collapse to enabled/disabled, so validate the protected build in its target browser. Arbitrary countermeasure functions, custom locks, opaque predicates, dispatcher mode, and similar JS-Confuser-specific behavior remain review items rather than being executed or guessed automatically.
184
+
185
+ `stringSplitting` maps approximately to native `SplitStrings`: booleans map directly and numeric probabilities greater than zero enable fixed-length splitting. Custom selector functions remain manual-review inputs and are not executed by migration tooling.
161
186
 
162
187
  Existing custom build scripts can also use `protectCode(options, code, fileName)` when they prefer the JavaScript Obfuscator API naming:
163
188
 
package/README.md CHANGED
@@ -35,7 +35,7 @@ For internal sharing without publishing to npm, create a tarball and install tha
35
35
 
36
36
  ```bash
37
37
  npm pack --json
38
- npm install --save-dev path/to/jso-protector-0.2.0.tgz
38
+ npm install --save-dev path/to/jso-protector-0.4.0.tgz
39
39
  ```
40
40
 
41
41
  Keep local tarballs inside internal storage or build artifacts, not in public package registries.
@@ -209,7 +209,7 @@ npx jso-protector compliance pci-dss-v4 \
209
209
  --manifest dist-protected/jso-manifest.json.sig \
210
210
  --root dist-protected \
211
211
  --watermark-key "$JSO_WATERMARK_KEY" \
212
- --beacon-url "https://www.javascriptobfuscator.com/v1/runtime/beacon.ashx" \
212
+ --beacon-url "https://javascriptobfuscator.com/v1/runtime/beacon.ashx" \
213
213
  --siem splunk-hec \
214
214
  --script-inventory reports/payment-script-inventory.json \
215
215
  --script-inventory-audit reports/payment-script-inventory-audit.json \
@@ -311,15 +311,20 @@ internal remediation.
311
311
 
312
312
  ## Payment and API Access
313
313
 
314
- `jso-protector` is a localhost developer client for the paid JavaScript Obfuscator hosted API. The npm package does not unlock protection by itself and does not contain payment logic.
314
+ `jso-protector` is a localhost developer client for the paid JavaScript Obfuscator service: it drives the hosted API by default, or the bundled `jso-local` protector with `--local`. The npm package does not unlock protection by itself and does not contain payment logic.
315
315
 
316
316
  Payment and account enforcement stay on `javascriptobfuscator.com`:
317
317
 
318
318
  1. The user buys a plan or credits on the JavaScript Obfuscator website.
319
319
  2. The dashboard provides `JSO_API_KEY` and `JSO_API_PASSWORD`.
320
- 3. The local npm CLI sends selected JavaScript to the configured HTTPS API endpoint.
320
+ 3. By default the local npm CLI sends selected JavaScript to the configured HTTPS API endpoint.
321
321
  4. The hosted API validates the account, plan, limits, and credentials before returning protected code.
322
322
 
323
+ With `--local` the source body stays on the build machine and step 3 does not
324
+ happen, but entitlement is still enforced server-side: the run makes a
325
+ source-free plan/option check before protecting. Either way, billing and plan
326
+ limits live on the server, never in this package.
327
+
323
328
  Keep billing, entitlement checks, plan limits, and API secrets on the server side. The local npm package should only read credentials from environment variables or config and call the API.
324
329
 
325
330
  If the hosted API rejects a request, the CLI reports dashboard credential hints for authentication failures and account/plan/credit guidance for entitlement failures. API keys and passwords are redacted from error messages before they reach terminal logs.
@@ -525,7 +530,25 @@ Use `obfuscate(code, options, fileName)` and `obfuscateMultiple(sourceCodesObjec
525
530
 
526
531
  The Node API accepts common `javascript-obfuscator` option names directly and maps them to the closest hosted API options. Supported compatibility keys include `optionsPreset`, `parseHtml`, `stringArray`, `stringArrayEncoding`, `controlFlowFlattening`, `deadCodeInjection`, `deadCodeInjectionThreshold`, `identifierNamesGenerator`, `renameGlobals`, `renameProperties`, `reservedNames`, `domainLock`, `compact`, and `target`. Use `translateJavascriptObfuscatorOptions(sourceOptions, overrides)` when you want to inspect or reuse the mapped config before calling the API.
527
532
 
528
- For JS-Confuser migration scripts, pass a `jsConfuserOptions` object or call `translateJsConfuserOptions(sourceOptions, overrides)` first. The Node API also detects common top-level JS-Confuser options directly, including `lock.domainLock` and `lock.endDate`, so existing build scripts can migrate with smaller edits. Current direct mappings cover common presets plus `target`, `renameVariables`, `renameGlobals`, `globalConcealing`, `stringEncoding`, `stringConcealing`, `duplicateLiteralsRemoval`, `stringCompression`, `compact`, `minify`, `controlFlowFlattening`, `deadCode`, `identifierGenerator`, `lock.domainLock`, and `lock.endDate`. Review-only runtime locks such as `lock.antiDebug`, `lock.integrity`, `lock.selfDefending`, `lock.startDate`, `lock.countermeasures`, and `lock.tamperProtection` are preserved as `jsConfuserLock*` fields in translated config objects so migration tooling can carry them forward for manual follow-up instead of dropping them silently.
533
+ `stringArrayIndexShift` maps approximately to native `StringArrayIndexShift`: enabled builds use a deterministic nonzero one-slot offset in plain and encrypted string tables. This does not reproduce the competitor's randomized shift magnitude, so validate the protected build in its target runtime.
534
+
535
+ `stringArrayShuffle` maps directly to native `StringArrayShuffle`. It randomizes unique moved-string order and preserves every lookup across plain, encrypted, shifted, and self-compressed output. Default builds use fresh entropy; `Seed` makes the shuffle reproducible.
536
+
537
+ `stringArrayRotate` maps directly to native `StringArrayRotate`. It cyclically rotates multi-value tables by a nonzero per-build offset and rewrites every lookup. Rotation uses an independent entropy stream, composes with shuffle/index shifting/encryption, and is reproducible under `Seed`.
538
+
539
+ `stringArrayIndexesType` maps directly to native `StringArrayIndexesType`. Use `hexadecimal-number`, `hexadecimal-numeric-string`, or both. Numeric strings are explicitly coerced before array access; mixed lists select a type per lookup and become reproducible when `Seed` is supplied.
540
+
541
+ `stringArrayThreshold` maps directly to native `StringArrayThreshold`. It accepts 0 through 1 and makes one stable decision per unique eligible literal. Zero keeps all literals verbatim, one moves all eligible literals, duplicates stay consistent, and `Seed` makes partial selection reproducible.
542
+
543
+ `stringArrayCallsTransform` maps directly to native secondary index-table indirection, with `stringArrayCallsTransformThreshold` controlling per-lookup probability from 0 through 1. Selected calls become nested table lookups, the default threshold is 0.5, and `Seed` makes selection reproducible. The transform composes with all native moved-string storage and output modes.
544
+
545
+ String-array wrapper controls generate bounded root-level aliases or multi-parameter functions. Counts are limited to 0-10, function parameters to 2-5, and chaining can route each wrapper through its predecessor. The count mapping is approximate: unlike the competitor's per-function-scope placement, JSO keeps wrappers at the protected root. Selection and noise parameters are reproducible under `Seed`.
546
+
547
+ `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__` stay literal to avoid changing property and prototype behavior.
548
+
549
+ For JS-Confuser migration scripts, pass a `jsConfuserOptions` object or call `translateJsConfuserOptions(sourceOptions, overrides)` first. The Node API also detects common top-level JS-Confuser options directly, including the `lock` bag, so existing build scripts can migrate with smaller edits. In addition to common transform and date/domain settings, `lock.antiDebug`, `lock.integrity`, `lock.selfDefending`, and `lock.tamperProtection` map to `DebugProtection`, `SelfDefending`, and `AntiMonkeyPatching`; `lock.startDate` maps to the native activation boundary. These runtime mappings are approximate: JS-Confuser numeric probabilities collapse to enabled/disabled and vendor-specific detection behavior still requires protected-browser testing. Arbitrary `lock.countermeasures` and custom locks remain review-only rather than being executed or guessed.
550
+
551
+ JS-Confuser `stringSplitting` also maps approximately to native `SplitStrings`. Boolean values map directly; numeric probabilities greater than zero enable splitting because the native engine does not reproduce per-literal probability scheduling. Custom selector functions require manual migration review and are never executed by translation tooling.
529
552
 
530
553
  `getOptionsByPreset("standard" | "balanced" | "maximum")` returns a copy of the hosted API preset options for scripts that previously used preset lookup helpers.
531
554
 
@@ -897,7 +920,7 @@ The Browserify, esbuild, Vite, Rollup, Webpack, Webpack loader, Gulp, and Grunt
897
920
  ```json
898
921
  {
899
922
  "$schema": "./node_modules/jso-protector/jso.config.schema.json",
900
- "endpoint": "https://www.javascriptobfuscator.com/HttpApi.ashx",
923
+ "endpoint": "https://javascriptobfuscator.com/HttpApi.ashx",
901
924
  "apiKey": "$JSO_API_KEY",
902
925
  "apiPassword": "$JSO_API_PASSWORD",
903
926
  "projectName": "browser-release",
@@ -930,13 +953,19 @@ The Browserify, esbuild, Vite, Rollup, Webpack, Webpack loader, Gulp, and Grunt
930
953
 
931
954
  The package includes `jso.config.schema.json` for editor autocomplete and validation. Generated configs point to `./node_modules/jso-protector/jso.config.schema.json`; the in-package example points to `./jso.config.schema.json`.
932
955
 
933
- For common product features that otherwise require raw HTTP API option names, the config also supports convenience aliases such as `keepHeaderComment`, `protectObjectDeclaration`, `moveNestedFunction`, `formattedOutput`, `keepIndent`, `lineNumbers`, `lockDomainSubdomains`, `lockDomainMessage`, `lockDate`, `lockDateValue`, and `lockDateMessage`. These map to the corresponding `options.*` values before explicit `options` overrides are applied.
956
+ For common product features that otherwise require raw HTTP API option names, the config also supports convenience aliases such as `keepHeaderComment`, `protectObjectDeclaration`, `moveNestedFunction`, `formattedOutput`, `keepIndent`, `lineNumbers`, `lockDomainSubdomains`, `lockDomainMessage`, `lockDate`, `lockDateValue`, and `lockDateMessage`. Runtime-defense aliases include `selfDefendingIntervalSeconds`, `selfHealing`, `selfHealingMaxAttempts`, `antiMonkeyPatching`, `antiMonkeyPatchingCleanRealm`, `antiMonkeyPatchingIncludeGlobals`, `antiMonkeyPatchingExcludeGlobals`, `runtimeDefenseAction`, `runtimeDefenseCallback`, and `runtimeDefenseRedirectUrl`. These map to the corresponding `options.*` values before explicit `options` overrides are applied. The CLI also exposes `--self-defending-interval-seconds`, `--self-healing`, `--self-healing-max-attempts`, `--anti-monkey-patching`, `--anti-monkey-patching-clean-realm`, `--runtime-defense-action`, `--runtime-defense-callback`, and `--runtime-defense-redirect-url`. Keep bearer beacon tokens in environment-backed configuration or raw options rather than command-line history. Self-defending intervals accept 1 through 86,400 seconds and use the protected page scheduler. Self-defending, self-healing, and anti-monkey-patching wrappers use JavaScript dynamic evaluation (`eval` and/or the `Function` constructor), so deployed CSP must permit it (commonly `script-src 'unsafe-eval'`); leave them disabled where that CSP relaxation is unacceptable.
957
+
958
+ Runtime wrappers apply to classic scripts. ES modules are protected without those wrappers so `import`/`export` linking stays valid. Classic-script top-level `var` globals are preserved, but cross-script top-level `let`, `const`, and `class` bindings are not; bundle dependent scripts or leave Self-Defending disabled for that contract.
934
959
 
935
960
  `--config` accepts JSON files plus trusted CommonJS or ES module config files. When no config path is provided, the CLI looks for `jso.config.json`, then `jso.config.cjs`, then `jso.config.mjs`, then `jso.config.js`.
936
961
 
937
962
  `--mode <name>` passes a release mode into JavaScript config functions. Use it when production, staging, or tenant-specific builds need different include/exclude rules, presets, or output folders without duplicating config files. When `--mode` is omitted, JavaScript config loaders fall back to `NODE_ENV` when it is set.
938
963
 
939
- Config files can also carry mapped `javascript-obfuscator` compatibility keys during migration, including `optionsPreset`, `stringArray`, `stringArrayEncoding`, `controlFlowFlattening`, `deadCodeInjection`, `identifierNamesGenerator`, `renameGlobals`, `renameProperties`, `domainLock`, `compact`, `target`, `parseHtml`, and `ignoreImports`. `optionsPreset` also accepts the current `vm-default`, `vm-low-obfuscation`, `vm-medium-obfuscation`, `vm-high-obfuscation`, `vm-ultra-high-obfuscation`, and `vm-anti-llm` aliases, mapped to the closest hosted preset for starter migration. Review-only compatibility fields such as `selfDefending`, `sourceMap`, `identifiersDictionary`, `identifiersPrefix`, `reservedStrings`, `splitStrings`, `seed`, and `numbersToExpressions` are also accepted in config files so existing configs do not fail immediately; `validate-config` reports them as warnings because the hosted API has no one-to-one local mapping. Explicit `options` values still win, so teams can keep a familiar starter config and override exact hosted API fields as they tune release output.
964
+ Config files can also carry mapped `javascript-obfuscator` compatibility keys including `splitStrings` and `splitStringsChunkLength`. These map directly to native fixed-length literal splitting; valid chunk lengths are 1-1024 and the default is 10. Directives, reserved literals, object keys, template segments, dynamic-import/static-require specifiers, mixed-server markers, and Unicode surrogate pairs are preserved, and splitting composes with enabled move/encode transforms. Runtime guards, deterministic seeds, string-selection patterns, string-array shuffle/rotation/index/call controls, and wrapper type/chaining/parameter controls also map directly; wrapper count and safe object-key transformation map approximately. `numbersToExpressions` remains an approximate mapping to `EncodeNumbers`. Source maps, identifier dictionaries/prefixes, rename mode, simplify, and strict-mode workflow policy remain review-only. Explicit `options` values still win over compatibility keys.
965
+
966
+ The config migration maps deterministic seed, and string-selection patterns map directly; a fixed seed reduces per-build polymorphism and is not a security control. Matching reserved literals remain verbatim outside `MoveStrings` and `EncodeStrings`.
967
+
968
+ Quoted class method, accessor, and field names are also definition-site literals and remain intact; only their ordinary string values and safe expression uses are eligible for splitting.
940
969
 
941
970
  ```js
942
971
  module.exports = ({ env, mode }) => ({
@@ -987,6 +1016,37 @@ Use `reservedNames` to preserve public API names, framework entry points, global
987
1016
  }
988
1017
  ```
989
1018
 
1019
+ ## Named Configuration Sets
1020
+
1021
+ Apply a different protection profile to different parts of one app in a
1022
+ single build with `namedSets`. Each set names an array of `match` globs and
1023
+ any of `preset`, `options`, and `countermeasures`; the first matching set
1024
+ wins per file (write sets in priority order), a set's options merge on top of
1025
+ the baseline, a set's preset contributes that preset's option block before
1026
+ the set's own options, and files matching no set keep the baseline exactly.
1027
+ Each set runs as its own API round, so a set your plan cannot afford fails
1028
+ only its own group.
1029
+
1030
+ ```json
1031
+ {
1032
+ "preset": "balanced",
1033
+ "namedSets": {
1034
+ "checkout": {
1035
+ "match": ["src/checkout/**", "src/wallet/**"],
1036
+ "preset": "maximum",
1037
+ "options": { "DeadcodeLevel": "High" }
1038
+ },
1039
+ "marketing": {
1040
+ "match": ["src/marketing/**"],
1041
+ "preset": "standard"
1042
+ }
1043
+ }
1044
+ }
1045
+ ```
1046
+
1047
+ The JSON summary reports the per-set grouping under `namedSetGroups`, and the
1048
+ manifest spans every group.
1049
+
990
1050
  ## Online Presets
991
1051
 
992
1052
  The online obfuscator can export a JSON preset for Standard options, premium preview features, and the Variable Exclusion List. Use it directly during a dry run or in a CI config:
@@ -1079,17 +1139,19 @@ When replacing existing `javascript-obfuscator` package scripts, the CLI accepts
1079
1139
 
1080
1140
  `--seed <value>` requests a reproducible build: the same input, options, and seed produce byte-identical protected output. Omit it for the default per-build polymorphic output (each build differs, which is what you usually want in production). An integer seed is used directly; any other string folds to a stable value. It maps to the engine `Seed` option, so `--option Seed=<value>`, a config `seed` key, and `options.Seed` are equivalent. Keep seed values out of shared logs, and note that a fixed seed makes builds diffable but is not itself a security control.
1081
1141
 
1082
- The CLI also accepts common review-only flags such as `--source-map`, `--source-map-sources-mode`, `--identifier-names-cache`, `--identifier-names-cache-path`, `--identifiers-dictionary`, `--identifiers-prefix`, `--self-defending`, `--debug-protection`, `--disable-console-output`, `--reserved-strings`, `--rename-properties-mode`, `--strict-mode`, `--numbers-to-expressions`, `--simplify`, `--split-strings`, and string-array wrapper/index flags so older scripts do not fail immediately. `--ignore-imports` is handled directly and preserves import/export-from statements plus common static `require()` and `import()` statements before the remaining code is protected. Other review-only flags emit compatibility warnings when there is no one-to-one hosted API mapping.
1142
+ The CLI maps runtime-defense flags plus `--split-strings` and `--split-strings-chunk-length` directly to hosted engine options. String chunks are bounded to 1-1024 characters (default 10), with syntax-sensitive literals preserved. String-array shuffle, rotation, index representation, call indirection, wrapper type/chaining/parameter controls, and thresholds map to native controls; index shift, wrapper count, and safe object-key transformation retain documented approximation boundaries. `--numbers-to-expressions` maps approximately to native `EncodeNumbers`. Source-map, identifier-cache/dictionary, rename-mode, strict-mode, and simplify workflow fields remain review-only. `--ignore-imports` is handled directly. Review-only flags emit compatibility warnings and vendor-specific runtime semantics still need runtime validation.
1143
+
1144
+ Specifically, it maps `--self-defending`, `--debug-protection`, `--debug-protection-interval`, `--disable-console-output`, and `--domain-lock-redirect-url` directly.
1083
1145
 
1084
1146
  Use `--version` for a quick CLI parity check in scripts. Add `--json` to print package metadata and the default hosted API endpoint.
1085
1147
 
1086
1148
  Use `--list-presets` and `--list-options` to inspect available presets and commonly used HTTP API options. Add `--list-migration-map --json` to inspect `javascript-obfuscator` option migration coverage before converting a config. The migration map includes mapped, direct, approximate, review-only, and total known option counts for migration tooling. Use `--explain-compat <option>` when one migrated option needs a human-readable answer before you edit a build script.
1087
1149
 
1088
- Use `--compat-scan` before protection when you want a local source scan for common runtime reflection hazards such as `Function.prototype.toString.call(...)`, `.constructor.name`, and `.name` access that may change after obfuscation. The scan is heuristic and warning-oriented, but it catches the same class of issues competitor docs often call out explicitly. Add `--json` for machine-readable CI output.
1150
+ Use `--compat-scan` before protection when you want a local source scan for public browser-global contracts and common runtime reflection hazards. It recognizes classic distributions shaped like `var Library = function (...)` plus direct `window`, `globalThis`, or `self` assignments, and returns an anchored `suggestedVariableExclusion` for each public name so `RenameGlobals` does not break script-tag consumers. It also detects `Function.prototype.toString.call(...)`, `.constructor.name`, and `.name` access that may change after obfuscation. The scan is heuristic and warning-oriented; runtime-test the protected distribution and review each suggested exclusion before release. Add `--json` for machine-readable CI output.
1089
1151
 
1090
- ### AI precheck — gate the obfuscation API call on AI compat-check findings
1152
+ ### AI precheck 鈥?gate the obfuscation API call on AI compat-check findings
1091
1153
 
1092
- Use `--ai-precheck` to fold the JSO AI `/v1/ai/compat-check` call into your existing obfuscation command. The CLI scans every resolved input file *before* the obfuscation API is called; if anything in your source would produce a broken protected build — `eval`, `Function` constructor, framework reflection traps, decorator metadata — the build aborts and your obfuscation quota is not touched.
1154
+ Use `--ai-precheck` to fold the JSO AI `/v1/ai/compat-check` call into your existing obfuscation command. The CLI scans every resolved input file *before* the obfuscation API is called; if anything in your source would produce a broken protected build 鈥?`eval`, `Function` constructor, framework reflection traps, decorator metadata 鈥?the build aborts and your obfuscation quota is not touched.
1093
1155
 
1094
1156
  ```sh
1095
1157
  # Single command, single round-trip. Add to any CI step you already run:
@@ -1105,14 +1167,14 @@ Gate levels for `--ai-precheck-fail-on`:
1105
1167
  - `warning`: build aborts on any error or warning finding (paranoid mode).
1106
1168
  - `never`: print findings, never fail (advisory mode).
1107
1169
 
1108
- For projects that want to run the gate stand-alone — pre-commit hooks, IDE integrations, ad-hoc audits — use the companion sub-command:
1170
+ For projects that want to run the gate stand-alone 鈥?pre-commit hooks, IDE integrations, ad-hoc audits 鈥?use the companion sub-command:
1109
1171
 
1110
1172
  ```sh
1111
1173
  jso ai compat-scan --config jso.config.json --fail-on error
1112
1174
  jso ai compat-scan --config jso.config.json --max-files 50 # cap quota burn on huge repos
1113
1175
  ```
1114
1176
 
1115
- Both paths hit the same `/v1/ai/compat-check` endpoint. `--ai-precheck` just folds it into the obfuscation flow so CI doesn't need a second step. Requires a JSO API key with AI access — FreeTrial works for testing the wire format; Basic and up for production usage. See the [JSO AI quick start](https://www.javascriptobfuscator.com/Docs/AIQuickStart.aspx) for tier details.
1177
+ Both paths hit the same `/v1/ai/compat-check` endpoint. `--ai-precheck` just folds it into the obfuscation flow so CI doesn't need a second step. Requires a JSO API key with AI access 鈥?FreeTrial works for testing the wire format; Basic and up for production usage. See the [JSO AI quick start](https://javascriptobfuscator.com/Docs/AIQuickStart.aspx) for tier details.
1116
1178
 
1117
1179
  ### AI usage and BYO key health
1118
1180
 
@@ -1140,13 +1202,13 @@ if (usage.providerKey && usage.providerKey.status !== "ready") {
1140
1202
 
1141
1203
  The `AiProviderKeyHealth` shape reports provider, status label, last test, next stored-key test, rotation review, and recommended action. It does not return the provider secret or key suffix.
1142
1204
 
1143
- ### Pre-flight quota gate — `--estimate`
1205
+ ### Pre-flight quota gate 鈥?`--estimate`
1144
1206
 
1145
1207
  Add `--estimate` to any obfuscation command to do a cost check before submitting any source. The CLI walks your input file set, hits the existing `/v1/ai/usage` endpoint to read the current month's quota, and prints a CI-friendly report. The gate has three states:
1146
1208
 
1147
- - **OK** (exit 0) — quota healthy, build can proceed.
1148
- - **WARN** (exit 0) — fewer than 5 actions remaining OR cost cap below 20%. Print, don't block.
1149
- - **FAIL** (exit 1) — actions remaining = 0. Block the build before it consumes any more.
1209
+ - **OK** (exit 0) 鈥?quota healthy, build can proceed.
1210
+ - **WARN** (exit 0) 鈥?fewer than 5 actions remaining OR cost cap below 20%. Print, don't block.
1211
+ - **FAIL** (exit 1) 鈥?actions remaining = 0. Block the build before it consumes any more.
1150
1212
 
1151
1213
  ```sh
1152
1214
  jso-protector --config jso.config.json --estimate
@@ -1157,7 +1219,7 @@ Network failures on `/v1/ai/usage` downgrade to WARN with a note (don't crash th
1157
1219
 
1158
1220
  When the usage endpoint includes BYO provider-key health, `--estimate` also prints the source-free AI key state: provider, status label, next 30-day stored-key test due date, 90-day rotation review date, and recommended action. The JSON output exposes the same data under `estimate.providerKey` without returning the provider secret or key suffix, so CI can alert on missing, failed, stale, or rotation-review-due AI keys before a release run depends on provider-backed assistance.
1159
1221
 
1160
- ### Watermarking — anti-piracy + dispute proof
1222
+ ### Watermarking 鈥?anti-piracy + dispute proof
1161
1223
 
1162
1224
  `--watermark <tag> --watermark-key <secret>` injects an HMAC-SHA256-signed header comment at the top of every input file. The obfuscator's `KeepComment` option preserves it verbatim through every transform (string array moves, control-flow flattening, dead code, etc.), so the marker survives intact in the protected output. Holders of the secret can verify; everyone else sees an opaque comment block.
1163
1225
 
@@ -1178,11 +1240,11 @@ jso-protector --scan-watermarks dist-protected/ --watermark-key "$JSO_WATERMARK_
1178
1240
 
1179
1241
  Without `--watermark-key`, verifiers run in **lookup-only mode**: they print the embedded tag but skip the HMAC compare. Useful for forensic inspection of leaked artifacts where you don't (or shouldn't) ship the secret to the investigator.
1180
1242
 
1181
- Wire format is identical across the Node, Python (`jso_protector.watermark`), and .NET (`JsoProtector.Watermark`) clients — an artifact stamped by any verifies under any. Reads `JSO_WATERMARK_KEY` from env when the flag isn't passed.
1243
+ Wire format is identical across the Node, Python (`jso_protector.watermark`), and .NET (`JsoProtector.Watermark`) clients 鈥?an artifact stamped by any verifies under any. Reads `JSO_WATERMARK_KEY` from env when the flag isn't passed.
1182
1244
 
1183
1245
  Exit codes (`--scan-watermarks`): **0** all clean / **1** at least one invalid signature found / **2** no watermarks found at all.
1184
1246
 
1185
- ### Signed release attestations — SLSA-style
1247
+ ### Signed release attestations 鈥?SLSA-style
1186
1248
 
1187
1249
  `--sign-release <priv.pem>` produces an Ed25519-signed envelope alongside your existing `--manifest` file. The envelope covers BuildId, polymorphism fingerprint, release label, and per-file SHA-256 hashes:
1188
1250
 
@@ -1205,16 +1267,16 @@ jso-protector --verify-release dist-protected/build.manifest.json.sig \
1205
1267
 
1206
1268
  Two-stage verification:
1207
1269
 
1208
- - **Stage 1** — Ed25519 signature over canonical-JSON manifest (catches forgery + manifest tampering).
1209
- - **Stage 2** — re-hash every referenced file on disk and compare against the embedded SHA-256 (catches post-signing tampering of the actual artifacts). Triggered when `--verify-root <dir>` is supplied.
1270
+ - **Stage 1** 鈥?Ed25519 signature over canonical-JSON manifest (catches forgery + manifest tampering).
1271
+ - **Stage 2** 鈥?re-hash every referenced file on disk and compare against the embedded SHA-256 (catches post-signing tampering of the actual artifacts). Triggered when `--verify-root <dir>` is supplied.
1210
1272
 
1211
- Without `--public-key`, the envelope's embedded public key is trusted (signature-only verification). With it, embedded != trusted → fail fast (defeats key-substitution attacks).
1273
+ Without `--public-key`, the envelope's embedded public key is trusted (signature-only verification). With it, embedded != trusted 鈫?fail fast (defeats key-substitution attacks).
1212
1274
 
1213
- Ed25519 chosen for 64-byte signatures, 32-byte keys, fast verify, no key-size choices to fumble. Node has it built-in since v12 — zero new dependencies.
1275
+ Ed25519 chosen for 64-byte signatures, 32-byte keys, fast verify, no key-size choices to fumble. Node has it built-in since v12 鈥?zero new dependencies.
1214
1276
 
1215
1277
  Use `--migrate-javascript-obfuscator` to convert a common `javascript-obfuscator` JSON or trusted CommonJS config into a starter `jso.config.json`. The migration report maps familiar options where possible, lists review items for options that are not one-to-one, includes a per-config summary with source option, mapped, review-only, unmapped, and automatic coverage counts, and prints the next validate, dry-run, doctor, release-check, competitor-gap-report, and protect commands. When any review-only migration item is present, it adds a `migration-review` next command so release owners get one source-free checklist before approval. When source-map review items are present, it also adds the post-protect `source-map-evidence` next command. When identifier cache, custom dictionary, or runtime-defense review items are present, it also adds the `identifier-cache-review` or `runtime-defense-review` next command so release owners can generate focused source-free review packets immediately. CommonJS source configs execute as Node.js code, so only migrate configs from your own repository or another trusted source.
1216
1278
 
1217
- Use `--list-js-confuser-migration-map --json`, `--explain-js-confuser-compat <option>`, and `--migrate-js-confuser` when migrating from JS-Confuser. The current migration path maps common preset, lock, string, identifier, minify, and control-flow options into the closest hosted API settings. Review-only runtime lock features such as anti-debugging, integrity, self-defending, start-date gates, countermeasure hooks, and tamper protection are carried into generated config as `jsConfuserLock*` review fields so they remain visible during manual follow-up.
1279
+ Use `--list-js-confuser-migration-map --json`, `--explain-js-confuser-compat <option>`, and `--migrate-js-confuser` when migrating from JS-Confuser. The current migration path maps common preset, lock, string, identifier, minify, and control-flow options into the closest hosted API settings. Anti-debugging, integrity/self-defending, start-date, and tamper-protection locks map approximately to native runtime controls; numeric probability values become enabled/disabled switches. Countermeasure hooks and custom locks remain visible review-only items.
1218
1280
 
1219
1281
  Use `--release-check --json` as the default CI preflight before protection. It runs config validation, dry-run file planning, and doctor checks in one report without sending source code to the API unless you also pass `--check-api`. The plan includes the number of API items plus any transformed files created from marked HTML scripts or conditional regions. Add `--strict` when warnings, such as unknown option names or not-yet-created output folders, should fail the release job.
1220
1282
 
@@ -1248,7 +1310,27 @@ console.log("protect this algorithm");
1248
1310
  console.log("keep this exact local code too");
1249
1311
  ```
1250
1312
 
1251
- Use `--local-only` when source cannot leave the build machine or when a teammate needs a quick reminder of the local package install path. The npm CLI can run validation, dry-run planning, doctor checks, release-check reports, and competitor gap reports locally, but actual npm CLI and desktop protection use the hosted service. Current protection workflows do not meet a policy that forbids source transfer. The command also reports that this package is local-only as a distribution artifact, not published to npm, and should be installed from a workspace path, `file:` dependency, or internal `npm pack` tarball.
1313
+ Use `--local-only` when a teammate needs a quick reminder of which commands avoid the network: validation, dry-run planning, doctor checks, release-check reports, and competitor gap reports all run locally. The command also reports that this package is local-only as a distribution artifact, not published to npm, and should be installed from a workspace path, `file:` dependency, or internal `npm pack` tarball.
1314
+
1315
+ ### `--local`: protect without sending source
1316
+
1317
+ `--local` protects on the build machine instead of POSTing source to the hosted API. It runs the `jso-local` executable that ships in the [Windows desktop download](https://javascriptobfuscator.com/downloads.aspx) under `cli/jso-local.exe`:
1318
+
1319
+ ```bash
1320
+ jso-protector --config jso.config.json --local
1321
+ jso-protector --config jso.config.json --local --local-exe "C:\Tools\JSObfuscator\cli\jso-local.exe"
1322
+ ```
1323
+
1324
+ The executable is found via `--local-exe`, then `JSO_LOCAL_EXE`, then the usual desktop install locations. Config equivalents are `"local": true` and `"localExe"`.
1325
+
1326
+ State it accurately when a reviewer asks:
1327
+
1328
+ - **Your source stays on the machine.** The request body is written to a temporary file, handed to `jso-local`, and deleted after the run.
1329
+ - **A source-free plan check still goes online.** Local Advanced is a paid capability, so the same short entitlement call the desktop app makes runs first, carrying only your credentials and a handful of plan-gated option switches. Fully disconnected operation is not available yet.
1330
+ - **Windows only**, because the executable ships in the Windows desktop archive.
1331
+ - **VM bytecode protection is refused, not silently dropped.** It runs in a server-side virtualizer; a `--local` build that requested it fails with a clear message instead of quietly shipping weaker output.
1332
+
1333
+ Everything downstream is unchanged: the same options, manifests, evidence packets, and size budgets apply, because the local path exchanges the same request and response shapes the hosted endpoint uses.
1252
1334
 
1253
1335
  Use `--validate-config --json` to check config shape, endpoint format, credentials presence, credential storage, path settings, budget values, and local option-name references without sending source code to the API. Unknown option names are reported as warnings so teams can catch typos while still using advanced HTTP API options. Inline `apiKey`, `apiPassword`, `--api-key`, and `--api-password` values also warn; prefer `$JSO_API_KEY` and `$JSO_API_PASSWORD` environment references so dashboard credentials do not land in committed config, shell history, or process logs.
1254
1336
 
@@ -1278,7 +1360,15 @@ Use `--max-output-bytes` / `"maxOutputBytes"` and `--max-growth-ratio` / `"maxGr
1278
1360
 
1279
1361
  ## Package Verification
1280
1362
 
1281
- Before publishing or tagging a release, run the install verification smoke:
1363
+ For ordinary development, run the deterministic verification chain with `npm run verify`. Before publishing or tagging an engine release, run the heavier release gate:
1364
+
1365
+ ```bash
1366
+ npm run verify:release
1367
+ ```
1368
+
1369
+ The release gate first runs every ordinary check, then regenerates protected output for the complete real-library corpus and compares the supported runtime samples against the freshly protected files. Do not run `verify:corpus-runtime` by itself as release evidence: it consumes the existing `tools/corpus-protect/.build/emitted` directory and therefore does not prove that the current engine produced those artifacts.
1370
+
1371
+ To check only package installation behavior, run:
1282
1372
 
1283
1373
  ```bash
1284
1374
  npm run verify:package
@@ -1327,7 +1417,7 @@ jso-protector --config jso.config.json --doctor --json
1327
1417
 
1328
1418
  `doctor` now includes a local compatibility scan summary. Run `jso-protector --config jso.config.json --compat-scan --json` when you need the detailed file-and-line findings before a release.
1329
1419
 
1330
- When a config still carries competitor-only migration fields such as source-map flags, identifier cache paths, custom naming dictionaries, or JS-Confuser runtime lock notes, `validate-config`, `doctor`, and `release-check` now emit grouped `limitations` entries in JSON output and `LIMITATION ...` lines in text output so CI can surface the remaining manual-review items explicitly.
1420
+ When a config still carries competitor-only migration fields such as source-map flags, identifier cache paths, custom naming dictionaries, or JS-Confuser custom countermeasure notes, `validate-config`, `doctor`, and `release-check` emit grouped `limitations` entries in JSON output and `LIMITATION ...` lines in text output so CI can surface the remaining manual-review items explicitly.
1331
1421
 
1332
1422
  Run the standalone competitor gap report when you want a machine-readable parity summary for migrated configs:
1333
1423
 
package/ai.js CHANGED
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
 
3
3
  // JSO AI client. Wraps the four /v1/ai/* endpoints documented at
4
- // https://www.javascriptobfuscator.com/Docs/AIApi.aspx
4
+ // https://javascriptobfuscator.com/Docs/AIApi.aspx
5
5
  //
6
6
  // Same auth model as the protect API: { apiKey, apiPassword } (base64
7
7
  // values from the dashboard). Reads JSO_API_KEY / JSO_API_PASSWORD from
@@ -13,7 +13,7 @@
13
13
  const http = require("node:http");
14
14
  const https = require("node:https");
15
15
 
16
- const DEFAULT_ENDPOINT = "https://www.javascriptobfuscator.com";
16
+ const DEFAULT_ENDPOINT = "https://javascriptobfuscator.com";
17
17
 
18
18
  function resolveCredentials(opts = {}) {
19
19
  const apiKey = opts.apiKey || process.env.JSO_API_KEY;