@optiprune/cli 1.2.13 → 1.2.16

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/config.md CHANGED
@@ -8,7 +8,7 @@ OptiPrune uses a structured configuration file to define entry points, rule beha
8
8
 
9
9
  Create an `optiprune.json` or `optiprune.jsonc` file in the root directory of your project:
10
10
 
11
- ```jsonc
11
+ ```
12
12
  {
13
13
  "$schema": "https://raw.githubusercontent.com/optiprune/core/refs/heads/main/schema.json",
14
14
  "rootDir": "src",
@@ -22,12 +22,14 @@ Create an `optiprune.json` or `optiprune.jsonc` file in the root directory of yo
22
22
  }
23
23
  }
24
24
  ```
25
+
25
26
  ---
26
27
 
27
28
  ## How OptiPrune Loads Configuration
29
+
28
30
  When OptiPrune initializes, it checks the workspace root in the following order of precedence:
29
31
 
30
- optiprune.json (Highest Priority)
32
+ optiprune.json (Highest Priority )
31
33
 
32
34
  optiprune.jsonc (Allows comments //, /* */, and trailing commas)
33
35
 
@@ -36,8 +38,8 @@ package.json (Falls back to reading an "optiprune" key)
36
38
  ---
37
39
 
38
40
  ## Configuration Reference
39
- **1. File & Workspace Discovery**
40
- rootDir (string, default: ".")
41
+
42
+ **1. File & Workspace Discovery**rootDir (string, default: ".")
41
43
 
42
44
  Specifies the base directory for source files relative to the project workspace root.
43
45
 
@@ -53,8 +55,7 @@ ignore (string[], default: [])
53
55
 
54
56
  Glob patterns or directory paths to skip entirely during analysis (e.g., test fixtures, output directories).
55
57
 
56
- **2. Export & Contract Safeguards**
57
- externalContracts (string[], default: [])
58
+ **2. Export & Contract Safeguards**externalContracts (string[], default: [])
58
59
 
59
60
  List of public API symbol or interface names. Marks these exports as globally used across all execution layers, preventing OptiPrune from flagging them as dead code when building public libraries or plugins.
60
61
 
@@ -66,8 +67,7 @@ includeConventionalEntries (boolean, default: true)
66
67
 
67
68
  Automatically treats framework conventions (e.g., index.ts, main.ts, App.tsx) as entry points without needing manual listing in entry.
68
69
 
69
- **3. CLI & Execution Controls**
70
- failOn ("high" | "medium" | "low" | "info" | "none", default: "high")
70
+ **3. CLI & Execution Controls**failOn ("high" | "medium" | "low" | "info" | "none", default: "high")
71
71
 
72
72
  Determines the minimum issue severity level required to exit the process with a non-zero exit code in CI/CD pipelines.
73
73
 
@@ -79,8 +79,27 @@ json (boolean, default: false)
79
79
 
80
80
  Formats output directly as raw JSON for external tool ingestion.
81
81
 
82
- **4. Rule Overrides (rules)**
83
- Fine-tune or disable specific inspection rules:
82
+ **4. Automated Fixes (fix)**
83
+
84
+ Configures the automatic removal of dead code. Can be a boolean or an object for granular control.
85
+
86
+ ```
87
+ {
88
+ "fix": {
89
+ "confidence": "medium+",
90
+ "rules": ["exports", "files", "dependencies"],
91
+ "dryRun": false
92
+ }
93
+ }
94
+ ```
95
+
96
+ - **confidence**: Minimum confidence to apply a fix (`high`, `medium+`, `low+`, `all`).
97
+
98
+ - **rules**: Specific rules or categories (`exports`, `files`, `dependencies`) to fix.
99
+
100
+ - **dryRun**: If true, logs what would be fixed without modifying files.
101
+
102
+ **5. Rule Overrides (rules)**Fine-tune or disable specific inspection rules:
84
103
 
85
104
  ```json
86
105
  "rules": {
@@ -89,22 +108,25 @@ Fine-tune or disable specific inspection rules:
89
108
  ```
90
109
 
91
110
  - `"error"`: Causes finding to trigger build errors or exit failures.
111
+
92
112
  - `"warning"`: Emits warnings without halting execution (unless configured by failOn).
113
+
93
114
  - `"off"`: Disables rule checking entirely.
94
115
 
95
- **5. Engine & Solver Tuning (layers)**
96
- Configure isolated runtimes, SMT solvers, and symbolic execution passes:
116
+ **6. Engine & Solver Tuning (layers)**Configure isolated runtimes, SMT solvers, and symbolic execution passes:
97
117
 
98
118
  | Option | Type | Default | Purpose |
99
- | :----- | :--- | :------ | :------ |
100
- | smtTimeoutMs | number | 10000 | SMT solver execution cap (in milliseconds) per proof path.|
119
+ | --- | --- | --- | --- |
120
+ | smtTimeoutMs | number | 10000 | SMT solver execution cap (in milliseconds) per proof path. |
101
121
  | isolateMemoryLimitMb | number | 128 | Memory ceiling (in MB) allocated to V8 worker isolates. |
102
122
  | enableConcolicProof | boolean | false | Enables concolic analysis to prove dead execution paths. |
103
123
  | skip3 | boolean | false | Bypasses Analysis Layer 3. |
104
124
  | skip4 | boolean | false | Bypasses Analysis Layer 4. |
105
125
 
106
126
  ---
127
+
107
128
  ## Alternative: package.json Configuration
129
+
108
130
  If you do not want an additional configuration file in your root folder, add an "optiprune" field inside package.json:
109
131
 
110
132
  ```json
package/dist/cli.js CHANGED
@@ -47,28 +47,56 @@ program
47
47
  .option("--skip-4", "Skip Layer 4 (Concolic Execution Proofs)")
48
48
  .option("-v, --verbose", "Show verbose output and internal graph state")
49
49
  .option("--fix", "Automatically remove unused exports, dependencies, and unreachable files")
50
+ .option("--fix-confidence <level>", "Minimum confidence level to fix (high, medium+, low+, all)", "high")
51
+ .option("--fix-rules <rules...>", "Specific rules to fix (exports, files, dependencies, or specific rule names)")
52
+ .option("--dry-run", "Log what would be fixed without changing files")
50
53
  .option("--cache-from <path>", "Path to a JSON file to import cache from before analysis")
51
54
  .option("--cache-to <path>", "Path to export the resulting cache to after analysis")
52
- .action(async (options) => {
55
+ .action(async (options, command) => {
53
56
  try {
54
- const rootDir = options.rootDir ?? process.cwd();
55
- // We cast to any here because the locally resolved @optiprune/core/types might
56
- // be out of sync with the actual HeadLess API implementation during development.
57
+ // Commander materializes defaults in `options`. Forwarding those values
58
+ // would make them override optiprune.json/jsonc/package.json settings.
59
+ // Only an option explicitly supplied on the command line wins over config.
60
+ const isCliOverride = (name) => command.getOptionValueSource(name) === "cli";
61
+ // Build FixConfig if --fix or other fix-related flags are used
62
+ let fixOption = undefined;
63
+ if (isCliOverride("fix") || isCliOverride("fixConfidence") || isCliOverride("fixRules") || isCliOverride("dryRun")) {
64
+ // Explicitly check if --fix was provided. If it's boolean true or not provided but other fix flags are,
65
+ // we enable fixing with the granular config.
66
+ const fixEnabled = isCliOverride("fix") ? !!options.fix : true;
67
+ if (fixEnabled) {
68
+ fixOption = {
69
+ confidence: options.fixConfidence,
70
+ rules: options.fixRules,
71
+ dryRun: !!options.dryRun
72
+ };
73
+ }
74
+ else {
75
+ fixOption = false;
76
+ }
77
+ }
78
+ // The core resolves defaults and file configuration. The CLI deliberately
79
+ // provides only explicit user overrides so the documented precedence is:
80
+ // CLI flag > config file > core default.
57
81
  const analyzerOptions = {
58
- rootDir: rootDir,
59
- entry: options.entry ?? [],
60
- extensions: options.extensions ?? [".ts", ".tsx", ".js", ".jsx"],
61
- ignore: options.ignore ?? [],
62
- reportUnusedExports: options.reportUnusedExports,
63
- includeConventionalEntries: options.conventionalEntries,
64
- failOn: options.failOn ?? "high",
65
- json: options.json || options.sarif,
66
- skip3: options.skip3,
67
- skip4: options.skip4,
68
- verbose: options.verbose,
69
- fix: options.fix,
70
- cacheFrom: options.cacheFrom,
71
- cacheTo: options.cacheTo,
82
+ ...(isCliOverride("rootDir") && { rootDir: options.rootDir }),
83
+ ...(isCliOverride("entry") && { entry: options.entry }),
84
+ ...(isCliOverride("extensions") && { extensions: options.extensions }),
85
+ ...(isCliOverride("ignore") && { ignore: options.ignore }),
86
+ ...(isCliOverride("reportUnusedExports") && {
87
+ reportUnusedExports: options.reportUnusedExports,
88
+ }),
89
+ ...(isCliOverride("conventionalEntries") && {
90
+ includeConventionalEntries: options.conventionalEntries,
91
+ }),
92
+ ...(isCliOverride("failOn") && { failOn: options.failOn }),
93
+ ...(isCliOverride("json") && { json: options.json }),
94
+ ...(isCliOverride("skip3") && { skip3: options.skip3 }),
95
+ ...(isCliOverride("skip4") && { skip4: options.skip4 }),
96
+ ...(isCliOverride("verbose") && { verbose: options.verbose }),
97
+ ...(fixOption !== undefined && { fix: fixOption }),
98
+ ...(isCliOverride("cacheFrom") && { cacheFrom: options.cacheFrom }),
99
+ ...(isCliOverride("cacheTo") && { cacheTo: options.cacheTo }),
72
100
  };
73
101
  const report = await analyze(analyzerOptions);
74
102
  if (options.sarif) {
package/dist/cli.js.map CHAN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AAC,IAAI,CAAC,CAAC,CAAC,CAAC;IAClB,CAAC;AACH,CAAC,CAAC,CAAC;AAEL,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@optiprune/cli",
3
- "version": "1.2.13",
3
+ "version": "1.2.16",
4
4
  "description": "CLI for resilient static dead-code analyzer for TypeScript and JavaScript workspaces.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -69,7 +69,7 @@
69
69
  "./package.json": "./package.json"
70
70
  },
71
71
  "dependencies": {
72
- "@optiprune/core": "^1.11.6",
72
+ "@optiprune/core": "^1.11.24",
73
73
  "commander": "^15.0.0",
74
74
  "pathe": "2.0.3"
75
75
  },