@visulima/vis 1.0.0-alpha.28 → 1.0.0-alpha.29

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.
Files changed (125) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/LICENSE.md +24 -24
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/bin.js +297 -297
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/config.js +12 -12
  9. package/dist/packem_chunks/doctor-probe.js +1 -1
  10. package/dist/packem_chunks/fix.js +1 -1
  11. package/dist/packem_chunks/handler.js +1 -1
  12. package/dist/packem_chunks/handler10.js +1 -2
  13. package/dist/packem_chunks/handler11.js +5 -1
  14. package/dist/packem_chunks/handler12.js +1 -5
  15. package/dist/packem_chunks/handler13.js +27 -1
  16. package/dist/packem_chunks/handler14.js +5 -27
  17. package/dist/packem_chunks/handler15.js +1 -5
  18. package/dist/packem_chunks/handler16.js +1 -1
  19. package/dist/packem_chunks/handler17.js +1 -1
  20. package/dist/packem_chunks/handler18.js +1 -1
  21. package/dist/packem_chunks/handler19.js +1 -1
  22. package/dist/packem_chunks/handler2.js +1 -1
  23. package/dist/packem_chunks/handler20.js +5 -1
  24. package/dist/packem_chunks/handler21.js +2 -5
  25. package/dist/packem_chunks/handler22.js +2 -2
  26. package/dist/packem_chunks/handler23.js +1 -2
  27. package/dist/packem_chunks/handler24.js +1 -1
  28. package/dist/packem_chunks/handler25.js +5 -1
  29. package/dist/packem_chunks/handler26.js +1 -5
  30. package/dist/packem_chunks/handler27.js +3 -1
  31. package/dist/packem_chunks/handler28.js +1 -3
  32. package/dist/packem_chunks/handler29.js +7 -1
  33. package/dist/packem_chunks/handler3.js +4 -4
  34. package/dist/packem_chunks/handler30.js +32 -6
  35. package/dist/packem_chunks/handler31.js +3 -33
  36. package/dist/packem_chunks/handler32.js +8 -3
  37. package/dist/packem_chunks/handler33.js +1 -1
  38. package/dist/packem_chunks/handler34.js +2 -2
  39. package/dist/packem_chunks/handler35.js +11 -3
  40. package/dist/packem_chunks/handler36.js +3 -22
  41. package/dist/packem_chunks/handler37.js +21 -60
  42. package/dist/packem_chunks/handler38.js +61 -3
  43. package/dist/packem_chunks/handler39.js +3 -6
  44. package/dist/packem_chunks/handler4.js +1 -1
  45. package/dist/packem_chunks/handler40.js +6 -24
  46. package/dist/packem_chunks/handler41.js +24 -153
  47. package/dist/packem_chunks/handler42.js +153 -25
  48. package/dist/packem_chunks/handler43.js +25 -10
  49. package/dist/packem_chunks/handler44.js +10 -708
  50. package/dist/packem_chunks/handler45.js +708 -24
  51. package/dist/packem_chunks/handler46.js +24 -322
  52. package/dist/packem_chunks/handler47.js +322 -48
  53. package/dist/packem_chunks/handler48.js +48 -3
  54. package/dist/packem_chunks/handler49.js +3 -27
  55. package/dist/packem_chunks/handler5.js +7 -7
  56. package/dist/packem_chunks/handler50.js +21 -189
  57. package/dist/packem_chunks/handler51.js +194 -33
  58. package/dist/packem_chunks/handler52.js +34 -0
  59. package/dist/packem_chunks/handler6.js +1 -1
  60. package/dist/packem_chunks/handler7.js +1 -1
  61. package/dist/packem_chunks/handler8.js +1 -1
  62. package/dist/packem_chunks/handler9.js +1 -1
  63. package/dist/packem_chunks/heal-accept.js +1 -1
  64. package/dist/packem_chunks/heal.js +1 -1
  65. package/dist/packem_chunks/help-command.js +4 -4
  66. package/dist/packem_chunks/index.js +2 -2
  67. package/dist/packem_chunks/keys-refresh.js +1 -1
  68. package/dist/packem_chunks/list.js +1 -1
  69. package/dist/packem_chunks/loader.js +1 -1
  70. package/dist/packem_chunks/loader2.js +1 -1
  71. package/dist/packem_chunks/prune.js +1 -1
  72. package/dist/packem_chunks/run.js +1 -1
  73. package/dist/packem_chunks/status.js +1 -1
  74. package/dist/packem_chunks/sync.js +1 -1
  75. package/dist/packem_chunks/sync2.js +1 -1
  76. package/dist/packem_chunks/tripwire.js +2 -2
  77. package/dist/packem_chunks/verify-lockfile.js +1 -1
  78. package/dist/packem_shared/Table-3pFgIUZ2-DABgc6rj.js +12 -0
  79. package/dist/packem_shared/{advisories-BxXiKFbL.js → advisories-DpgSuWDH.js} +1 -1
  80. package/dist/packem_shared/{affected-shas-Dm7eqcI8.js → affected-shas-BkXXecyi.js} +1 -1
  81. package/dist/packem_shared/ai-analysis-KP8b5lc0.js +68 -0
  82. package/dist/packem_shared/{ai-fix-BGbnrWCz.js → ai-fix-CfFWatGY.js} +7 -7
  83. package/dist/packem_shared/{applyDefaults-KxZkvlp3.js → applyDefaults-DLvOqXGX.js} +1 -1
  84. package/dist/packem_shared/{build-scripts-3E2pmscY.js → build-scripts-D-ysm_bS.js} +1 -1
  85. package/dist/packem_shared/{cyclonedx-C2k2HmvI.js → cyclonedx-B04lIvwu.js} +3 -3
  86. package/dist/packem_shared/{dependency-scan-Bki15Yi-.js → dependency-scan-B9wTcLxf.js} +1 -1
  87. package/dist/packem_shared/{docker-k-Sl8b-w.js → docker-DxA80dRx.js} +1 -1
  88. package/dist/packem_shared/{failure-log-C3bG1bCA.js → failure-log-n3j_-w8s.js} +1 -1
  89. package/dist/packem_shared/index-BDF8gawl.js +29 -0
  90. package/dist/packem_shared/{index-DBq4TVu5.js → index-BfG9_znI.js} +1 -1
  91. package/dist/packem_shared/{lifecycle-B91p_ra8.js → lifecycle-NHIKDiCh.js} +1 -1
  92. package/dist/packem_shared/lockfile-CoeFxWAv.js +1 -0
  93. package/dist/packem_shared/lockfile-DAuTDwow.js +1 -0
  94. package/dist/packem_shared/{manifests-Z3spBpxv.js → manifests-B7wUR3Rk.js} +1 -1
  95. package/dist/packem_shared/{min-release-age-B1Jm1_JY.js → min-release-age-YyNI7gqV.js} +1 -1
  96. package/dist/packem_shared/{native-config-sync-Cnpj2xcn.js → native-config-sync-CgRIIRZV.js} +7 -7
  97. package/dist/packem_shared/{osv-bloom-ep8GlDGT.js → osv-bloom-BQSIHt5h.js} +2 -2
  98. package/dist/packem_shared/{pm-runner-COoPLGKi.js → pm-runner-Ta_yz2uP.js} +1 -1
  99. package/dist/packem_shared/{provenance-DbkJRDqt.js → provenance-DoEp2uOo.js} +1 -1
  100. package/dist/packem_shared/{readFileSync-CGmzMUF2-D6rUjGDn.js → readFileSync-4c_c6Qey-6SWMDNdw.js} +1 -1
  101. package/dist/packem_shared/{registry-keys-SylX07bs.js → registry-keys-CD1xHavV.js} +1 -1
  102. package/dist/packem_shared/{resolve-explicit-CJ_5wYSu.js → resolve-explicit-DpSc7RN2.js} +1 -1
  103. package/dist/packem_shared/{runtime-check-DgXsKCsv.js → runtime-check-Cbtb_Utb.js} +1 -1
  104. package/dist/packem_shared/{s1ngularity-DlS-4a6K.js → s1ngularity-CIX7UcT5.js} +1 -1
  105. package/dist/packem_shared/scan-progress-CTVVf9WW.js +2 -0
  106. package/dist/packem_shared/{selectors-BE2BCnTR.js → selectors-BU8aTRQm.js} +1 -1
  107. package/dist/packem_shared/{signatures-B-1u4t-c.js → signatures-BHM7cnqB.js} +1 -1
  108. package/dist/packem_shared/{spinner-B9ZPv1iT.js → spinner-C8xs6QZv.js} +1 -1
  109. package/dist/packem_shared/{tabs-C-qFIoUv.js → tabs-xZkm6Y_J.js} +1 -1
  110. package/dist/packem_shared/{toolchain-Jx2lkAYy.js → toolchain-juKl-WgV.js} +1 -1
  111. package/dist/packem_shared/typosquats-DRKU6d2S.js +1 -0
  112. package/dist/packem_shared/{use-measured-height-kIDCuc76.js → use-measured-height-Lea6TCVD.js} +1 -1
  113. package/dist/packem_shared/{verify-C8EAHql6.js → verify-DA80ja1b.js} +1 -1
  114. package/dist/packem_shared/{vis-update-app-COYmjGKv.js → vis-update-app-BCKzlqj8.js} +1 -1
  115. package/dist/packem_shared/{watch-BSVsZ_1I.js → watch-DdR-pFzX.js} +1 -1
  116. package/dist/packem_shared/{watch-loop-CP318TfG.js → watch-loop-C8csFvRU.js} +1 -1
  117. package/index.d.ts +201 -201
  118. package/index.js +567 -751
  119. package/package.json +13 -13
  120. package/dist/packem_shared/Table-CwC2kW07-EjFLNV0q.js +0 -12
  121. package/dist/packem_shared/ai-analysis-BnmDFqc8.js +0 -68
  122. package/dist/packem_shared/index-2r730kXY.js +0 -29
  123. package/dist/packem_shared/lockfile-DmDfgKaT.js +0 -1
  124. package/dist/packem_shared/scan-progress-CU4ttEHQ.js +0 -2
  125. package/dist/packem_shared/typosquats-BxCOUvTJ.js +0 -1
package/index.d.ts CHANGED
@@ -7,43 +7,43 @@
7
7
  * the bitset.
8
8
  */
9
9
  export declare class OsvBloomHandle {
10
- /**
11
- * `n` field from the filter header — entry count the upstream
12
- * builder inserted. Exposed for `vis advisories bloom status`.
13
- */
14
- get entriesInserted(): number;
15
- /**
16
- * `m` field — bit count. Returned as a decimal string so the full
17
- * u64 round-trips without JS-Number precision loss; today's filter
18
- * is ~3.1M bits but the wire format reserves 64-bit headroom.
19
- */
20
- get bitCountString(): string;
21
- /** `k` field — hash-function count per probe. */
22
- get hashCount(): number;
23
- /**
24
- * `built_at_unix_seconds` — UNIX seconds the upstream builder
25
- * recorded, as a decimal string. JS reconstructs via
26
- * `new Date(Number(s) * 1000)`. Use this in status output rather
27
- * than the local fetch time.
28
- */
29
- get builtAtUnixSecondsString(): string;
30
- /**
31
- * `format_version` — currently 1. Surfaced so JS can flag a
32
- * version-mismatch warning without re-decoding.
33
- */
34
- get formatVersion(): number;
10
+ /**
11
+ * `n` field from the filter header — entry count the upstream
12
+ * builder inserted. Exposed for `vis advisories bloom status`.
13
+ */
14
+ get entriesInserted(): number
15
+ /**
16
+ * `m` field — bit count. Returned as a decimal string so the full
17
+ * u64 round-trips without JS-Number precision loss; today's filter
18
+ * is ~3.1M bits but the wire format reserves 64-bit headroom.
19
+ */
20
+ get bitCountString(): string
21
+ /** `k` field — hash-function count per probe. */
22
+ get hashCount(): number
23
+ /**
24
+ * `built_at_unix_seconds` — UNIX seconds the upstream builder
25
+ * recorded, as a decimal string. JS reconstructs via
26
+ * `new Date(Number(s) * 1000)`. Use this in status output rather
27
+ * than the local fetch time.
28
+ */
29
+ get builtAtUnixSecondsString(): string
30
+ /**
31
+ * `format_version` — currently 1. Surfaced so JS can flag a
32
+ * version-mismatch warning without re-decoding.
33
+ */
34
+ get formatVersion(): number
35
35
  }
36
36
 
37
37
  export interface AddOptions {
38
- packages: Array<string>;
39
- saveDev: boolean;
40
- exact: boolean;
41
- peer: boolean;
42
- optional: boolean;
43
- global: boolean;
44
- workspace: boolean;
45
- workspaceRoot: boolean;
46
- filter: Array<string>;
38
+ packages: Array<string>
39
+ saveDev: boolean
40
+ exact: boolean
41
+ peer: boolean
42
+ optional: boolean
43
+ global: boolean
44
+ workspace: boolean
45
+ workspaceRoot: boolean
46
+ filter: Array<string>
47
47
  }
48
48
 
49
49
  /**
@@ -51,57 +51,57 @@ export interface AddOptions {
51
51
  * zip → JSON → INSERT pipeline can take seconds; we run it on a libuv worker
52
52
  * so the main JS thread is free.
53
53
  */
54
- export declare function advisoriesIngest(options: AdvisoryIngestOptions, onProgress: (current: number, total: number) => void): Promise<AdvisoryIngestResult>;
54
+ export declare function advisoriesIngest(options: AdvisoryIngestOptions, onProgress: (current: number, total: number) => void): Promise<AdvisoryIngestResult>
55
55
 
56
56
  /**
57
57
  * Synchronous query path. Returns one `AdvisoryQueryResult` per input,
58
58
  * preserving order, so callers can zip back to their lockfile rows by index.
59
59
  */
60
- export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>;
60
+ export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>
61
61
 
62
- export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus;
62
+ export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus
63
63
 
64
64
  export interface AdvisoryDbStatus {
65
- exists: boolean;
66
- ecosystems: Array<AdvisoryEcosystemStatus>;
67
- sizeBytes: number;
68
- schemaVersion: number;
65
+ exists: boolean
66
+ ecosystems: Array<AdvisoryEcosystemStatus>
67
+ sizeBytes: number
68
+ schemaVersion: number
69
69
  }
70
70
 
71
71
  export interface AdvisoryEcosystemStatus {
72
- name: string;
73
- advisoryCount: number;
74
- lastSyncIso: string;
75
- manifestEtag?: string;
72
+ name: string
73
+ advisoryCount: number
74
+ lastSyncIso: string
75
+ manifestEtag?: string
76
76
  }
77
77
 
78
78
  export interface AdvisoryIngestOptions {
79
- /** Path to a previously-downloaded OSV dump zip on disk. */
80
- zipPath: string;
81
- dbPath: string;
82
- ecosystem: string;
83
- /**
84
- * HTTP ETag header to write into the `manifest_etag` meta row for this
85
- * ecosystem. `null` when the server didn't send one.
86
- */
87
- manifestEtag?: string;
79
+ /** Path to a previously-downloaded OSV dump zip on disk. */
80
+ zipPath: string
81
+ dbPath: string
82
+ ecosystem: string
83
+ /**
84
+ * HTTP ETag header to write into the `manifest_etag` meta row for this
85
+ * ecosystem. `null` when the server didn't send one.
86
+ */
87
+ manifestEtag?: string
88
88
  }
89
89
 
90
90
  export interface AdvisoryIngestResult {
91
- advisoriesIngested: number;
92
- durationMs: number;
91
+ advisoriesIngested: number
92
+ durationMs: number
93
93
  }
94
94
 
95
95
  export interface AdvisoryQuery {
96
- ecosystem: string;
97
- name: string;
98
- version: string;
96
+ ecosystem: string
97
+ name: string
98
+ version: string
99
99
  }
100
100
 
101
101
  export interface AdvisoryQueryResult {
102
- name: string;
103
- version: string;
104
- vulnerabilities: Array<NativeVulnerabilityJs>;
102
+ name: string
103
+ version: string
104
+ vulnerabilities: Array<NativeVulnerabilityJs>
105
105
  }
106
106
 
107
107
  /**
@@ -110,15 +110,15 @@ export interface AdvisoryQueryResult {
110
110
  * migrated `.pre-commit-config.yaml` files — anything outside this set
111
111
  * (and outside the vis-specific overlay) is surfaced as a warning.
112
112
  */
113
- export declare function allKnownTags(): Array<string>;
113
+ export declare function allKnownTags(): Array<string>
114
114
 
115
115
  export interface CleanResult {
116
- /** Directories that were removed */
117
- removed: Array<string>;
118
- /** Directories that failed to remove (with error messages) */
119
- errors: Array<string>;
120
- /** Lockfiles that were removed (when --lockfile flag used) */
121
- lockfilesRemoved: Array<string>;
116
+ /** Directories that were removed */
117
+ removed: Array<string>
118
+ /** Directories that failed to remove (with error messages) */
119
+ errors: Array<string>
120
+ /** Lockfiles that were removed (when --lockfile flag used) */
121
+ lockfilesRemoved: Array<string>
122
122
  }
123
123
 
124
124
  /**
@@ -129,21 +129,21 @@ export interface CleanResult {
129
129
  *
130
130
  * When `remove_lockfile` is true, also removes lockfiles from the root.
131
131
  */
132
- export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult;
132
+ export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult
133
133
 
134
134
  export interface DetectedPackageManager {
135
- /** The package manager name: "pnpm", "npm", "yarn", "bun", or "deno" */
136
- name: string;
137
- /** The version string from packageManager field, or None if unknown */
138
- version?: string;
139
- /**
140
- * Build metadata (sha256 hash) appended to packageManager field by
141
- * corepack. `parts[1].split('+').next()` strips it from `version`;
142
- * this field preserves it for callers that want to verify the pin.
143
- */
144
- buildMeta?: string;
145
- /** Whether this is a monorepo/workspace */
146
- isWorkspace: boolean;
135
+ /** The package manager name: "pnpm", "npm", "yarn", "bun", or "deno" */
136
+ name: string
137
+ /** The version string from packageManager field, or None if unknown */
138
+ version?: string
139
+ /**
140
+ * Build metadata (sha256 hash) appended to packageManager field by
141
+ * corepack. `parts[1].split('+').next()` strips it from `version`;
142
+ * this field preserves it for callers that want to verify the pin.
143
+ */
144
+ buildMeta?: string
145
+ /** Whether this is a monorepo/workspace */
146
+ isWorkspace: boolean
147
147
  }
148
148
 
149
149
  /**
@@ -156,7 +156,7 @@ export interface DetectedPackageManager {
156
156
  *
157
157
  * Returns `napi::Result` so any I/O errors surface as JS exceptions.
158
158
  */
159
- export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager;
159
+ export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager
160
160
 
161
161
  /**
162
162
  * Options controlling which detection sources to consult.
@@ -167,40 +167,40 @@ export declare function detectPackageManager(cwd: string, opts?: DetectPackageMa
167
167
  * `{}` enables every source.
168
168
  */
169
169
  export interface DetectPackageManagerOptions {
170
- /** Skip reading the `packageManager` field in package.json. */
171
- ignorePackageJson?: boolean;
172
- /** Skip lockfile walk (pnpm-lock.yaml, yarn.lock, …). */
173
- ignoreLockFile?: boolean;
174
- /**
175
- * Skip the `npm_config_user_agent` env-var fallback. Set by every
176
- * PM when running scripts; lets a tool spawned from `pnpm run x`
177
- * know it's pnpm even without a lockfile.
178
- */
179
- ignoreArgv?: boolean;
170
+ /** Skip reading the `packageManager` field in package.json. */
171
+ ignorePackageJson?: boolean
172
+ /** Skip lockfile walk (pnpm-lock.yaml, yarn.lock, …). */
173
+ ignoreLockFile?: boolean
174
+ /**
175
+ * Skip the `npm_config_user_agent` env-var fallback. Set by every
176
+ * PM when running scripts; lets a tool spawned from `pnpm run x`
177
+ * know it's pnpm even without a lockfile.
178
+ */
179
+ ignoreArgv?: boolean
180
180
  }
181
181
 
182
182
  export interface DlxOptions {
183
- package: string;
184
- args: Array<string>;
185
- additionalPackages: Array<string>;
186
- shellMode: boolean;
187
- silent: boolean;
183
+ package: string
184
+ args: Array<string>
185
+ additionalPackages: Array<string>
186
+ shellMode: boolean
187
+ silent: boolean
188
188
  }
189
189
 
190
190
  export interface EditorconfigDefaults {
191
- indent?: string;
192
- lineEnding?: string;
191
+ indent?: string
192
+ lineEnding?: string
193
193
  }
194
194
 
195
195
  export interface ExecOptions {
196
- command: string;
197
- args: Array<string>;
198
- shellMode: boolean;
199
- recursive: boolean;
200
- workspaceRoot: boolean;
201
- parallel: boolean;
202
- reverse: boolean;
203
- filter: Array<string>;
196
+ command: string
197
+ args: Array<string>
198
+ shellMode: boolean
199
+ recursive: boolean
200
+ workspaceRoot: boolean
201
+ parallel: boolean
202
+ reverse: boolean
203
+ filter: Array<string>
204
204
  }
205
205
 
206
206
  /**
@@ -211,33 +211,33 @@ export interface ExecOptions {
211
211
  * Returns `napi::Result<ExecResult>` -- throws a JS error for disallowed
212
212
  * binaries or spawn failures, returns ExecResult with exit code otherwise.
213
213
  */
214
- export declare function execPmCommand(bin: string, args: Array<string>, cwd: string): ExecResult;
214
+ export declare function execPmCommand(bin: string, args: Array<string>, cwd: string): ExecResult
215
215
 
216
216
  /**
217
217
  * Executes a package manager command with inherited stdio (interactive).
218
218
  * Returns exit code. Throws JS error for disallowed binaries or spawn failures.
219
219
  */
220
- export declare function execPmCommandInteractive(bin: string, args: Array<string>, cwd: string): number;
220
+ export declare function execPmCommandInteractive(bin: string, args: Array<string>, cwd: string): number
221
221
 
222
222
  export interface ExecResult {
223
- code: number;
224
- stdout: string;
225
- stderr: string;
223
+ code: number
224
+ stdout: string
225
+ stderr: string
226
226
  }
227
227
 
228
228
  export interface InstallOptions {
229
- frozenLockfile: boolean;
230
- prod: boolean;
231
- dev: boolean;
232
- noOptional: boolean;
233
- force: boolean;
234
- ignoreScripts: boolean;
235
- lockfileOnly: boolean;
236
- offline: boolean;
237
- silent: boolean;
238
- recursive: boolean;
239
- workspaceRoot: boolean;
240
- filter: Array<string>;
229
+ frozenLockfile: boolean
230
+ prod: boolean
231
+ dev: boolean
232
+ noOptional: boolean
233
+ force: boolean
234
+ ignoreScripts: boolean
235
+ lockfileOnly: boolean
236
+ offline: boolean
237
+ silent: boolean
238
+ recursive: boolean
239
+ workspaceRoot: boolean
240
+ filter: Array<string>
241
241
  }
242
242
 
243
243
  /**
@@ -256,38 +256,38 @@ export interface InstallOptions {
256
256
  * 5 — added osv-bloom prefilter: `osv_bloom_decode`, `osv_bloom_probe`,
257
257
  * `osv_bloom_probe_batch`. Backed by `blake3` keyed-hash double-hashing.
258
258
  */
259
- export const NATIVE_BINDING_VERSION: number;
259
+ export const NATIVE_BINDING_VERSION: number
260
260
 
261
261
  export interface NativeSortPackageJsonOptions {
262
- /** Enable formatted output with newlines (default: true) */
263
- pretty?: boolean;
264
- /** Alphabetize script commands (default: false) */
265
- sortScripts?: boolean;
262
+ /** Enable formatted output with newlines (default: true) */
263
+ pretty?: boolean
264
+ /** Alphabetize script commands (default: false) */
265
+ sortScripts?: boolean
266
266
  }
267
267
 
268
268
  export interface NativeVulnerabilityJs {
269
- id: string;
270
- aliases: Array<string>;
271
- /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
272
- severity: string;
273
- summary: string;
274
- fixedVersions: Array<string>;
275
- cvssScore?: number;
269
+ id: string
270
+ aliases: Array<string>
271
+ /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
272
+ severity: string
273
+ summary: string
274
+ fixedVersions: Array<string>
275
+ cvssScore?: number
276
276
  }
277
277
 
278
278
  export interface OsvBloomBatchHit {
279
- /**
280
- * Index into the input batch array. Lets JS reconstruct which
281
- * lockfile row triggered the hit without re-walking the inputs.
282
- */
283
- index: number;
284
- name: string;
285
- version: string;
279
+ /**
280
+ * Index into the input batch array. Lets JS reconstruct which
281
+ * lockfile row triggered the hit without re-walking the inputs.
282
+ */
283
+ index: number
284
+ name: string
285
+ version: string
286
286
  }
287
287
 
288
288
  export interface OsvBloomBatchQuery {
289
- name: string;
290
- version: string;
289
+ name: string
290
+ version: string
291
291
  }
292
292
 
293
293
  /**
@@ -295,7 +295,7 @@ export interface OsvBloomBatchQuery {
295
295
  * Returns an opaque handle; reuse it for every probe call until the
296
296
  * JS-side cache invalidates.
297
297
  */
298
- export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
298
+ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
299
299
 
300
300
  /**
301
301
  * Probe a single `(name, version)` pair. Returns `true` when the pair
@@ -307,7 +307,7 @@ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
307
307
  * unbounded ranges still match. Unparseable versions probe only the
308
308
  * wildcard bucket.
309
309
  */
310
- export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean;
310
+ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
311
311
 
312
312
  /**
313
313
  * Batch variant. Returns only the hits, with their original index — the
@@ -315,20 +315,20 @@ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, vers
315
315
  * (`Vec<bool>` of length N) would dominate the cost. Order of returned
316
316
  * hits matches input order.
317
317
  */
318
- export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>;
318
+ export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>
319
319
 
320
320
  export interface OutdatedOptions {
321
- packages: Array<string>;
322
- long: boolean;
323
- format: string;
324
- recursive: boolean;
325
- filter: Array<string>;
326
- workspaceRoot: boolean;
327
- prod: boolean;
328
- dev: boolean;
329
- noOptional: boolean;
330
- compatible: boolean;
331
- global: boolean;
321
+ packages: Array<string>
322
+ long: boolean
323
+ format: string
324
+ recursive: boolean
325
+ filter: Array<string>
326
+ workspaceRoot: boolean
327
+ prod: boolean
328
+ dev: boolean
329
+ noOptional: boolean
330
+ compatible: boolean
331
+ global: boolean
332
332
  }
333
333
 
334
334
  /**
@@ -338,33 +338,33 @@ export interface OutdatedOptions {
338
338
  * pre-commit's behavior of treating "no shebang" as "no interpreter
339
339
  * tags" rather than as an error.
340
340
  */
341
- export declare function parseShebang(path: string): Array<string>;
341
+ export declare function parseShebang(path: string): Array<string>
342
342
 
343
343
  export interface ProgressPayload {
344
- current: number;
345
- total: number;
344
+ current: number
345
+ total: number
346
346
  }
347
347
 
348
348
  export interface RemoveOptions {
349
- packages: Array<string>;
350
- saveDev: boolean;
351
- global: boolean;
352
- recursive: boolean;
353
- workspaceRoot: boolean;
354
- filter: Array<string>;
349
+ packages: Array<string>
350
+ saveDev: boolean
351
+ global: boolean
352
+ recursive: boolean
353
+ workspaceRoot: boolean
354
+ filter: Array<string>
355
355
  }
356
356
 
357
- export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand;
357
+ export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
358
358
 
359
359
  export interface ResolvedCommand {
360
- bin: string;
361
- args: Array<string>;
362
- warnings: Array<string>;
360
+ bin: string
361
+ args: Array<string>
362
+ warnings: Array<string>
363
363
  }
364
364
 
365
- export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand;
365
+ export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
366
366
 
367
- export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand;
367
+ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
368
368
 
369
369
  /**
370
370
  * Resolves `.editorconfig` defaults for `file_path` using the spec-compliant
@@ -374,27 +374,27 @@ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions
374
374
  * configured. Parse / IO failures collapse to an empty result so callers can
375
375
  * fall back to content sniffing without try/catch noise.
376
376
  */
377
- export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults;
377
+ export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
378
378
 
379
- export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand;
379
+ export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
380
380
 
381
- export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand;
381
+ export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
382
382
 
383
- export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand;
383
+ export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand
384
384
 
385
- export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand;
385
+ export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
386
386
 
387
- export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand;
387
+ export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand
388
388
 
389
- export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand;
389
+ export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
390
390
 
391
- export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand;
391
+ export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand
392
392
 
393
- export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand;
393
+ export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
394
394
 
395
- export declare function sortPackageJsonString(contents: string): string;
395
+ export declare function sortPackageJsonString(contents: string): string
396
396
 
397
- export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string;
397
+ export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
398
398
 
399
399
  /**
400
400
  * Classifies a single file path using `prek-identify`. Returns the set of
@@ -403,7 +403,7 @@ export declare function sortPackageJsonStringWithOptions(contents: string, optio
403
403
  * don't need try/catch — the vis hook runtime treats "unclassified" and
404
404
  * "no tags" identically.
405
405
  */
406
- export declare function tagsFromPath(path: string): Array<string>;
406
+ export declare function tagsFromPath(path: string): Array<string>
407
407
 
408
408
  /**
409
409
  * Batch variant of [`tags_from_path`]. Returns one tag list per input
@@ -412,25 +412,25 @@ export declare function tagsFromPath(path: string): Array<string>;
412
412
  * (the same behavior pre-commit applies when stat-ing a deleted staged
413
413
  * file mid-run).
414
414
  */
415
- export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>;
415
+ export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>
416
416
 
417
417
  /**
418
418
  * Finds the full path to a binary using `which`-style lookup.
419
419
  * Returns None if not found.
420
420
  */
421
- export declare function whichBin(name: string): string | null;
421
+ export declare function whichBin(name: string): string | null
422
422
 
423
423
  export interface WhyOptions {
424
- packages: Array<string>;
425
- json: boolean;
426
- long: boolean;
427
- parseable: boolean;
428
- recursive: boolean;
429
- dev: boolean;
430
- prod: boolean;
431
- noOptional: boolean;
432
- global: boolean;
433
- /** Depth limit. Uses Option<i32> directly (napi supports it). */
434
- depth?: number;
435
- filter: Array<string>;
424
+ packages: Array<string>
425
+ json: boolean
426
+ long: boolean
427
+ parseable: boolean
428
+ recursive: boolean
429
+ dev: boolean
430
+ prod: boolean
431
+ noOptional: boolean
432
+ global: boolean
433
+ /** Depth limit. Uses Option<i32> directly (napi supports it). */
434
+ depth?: number
435
+ filter: Array<string>
436
436
  }