@visulima/vis 7.1.0-next.5 → 7.1.0-next.7

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 (167) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +1 -1
  3. package/bin/route.mjs +154 -27
  4. package/dist/bin.js +1 -1
  5. package/dist/binx.js +1 -1
  6. package/dist/config/index.d.ts +227 -12
  7. package/dist/packem_chunks/CONFIG_FILES.js +1 -1
  8. package/dist/packem_chunks/bloom-sync.js +1 -1
  9. package/dist/packem_chunks/catalog.js +1 -1
  10. package/dist/packem_chunks/cli-exec.js +1 -1
  11. package/dist/packem_chunks/cli-main.js +57 -57
  12. package/dist/packem_chunks/detect.js +4 -4
  13. package/dist/packem_chunks/dispatch.js +1 -1
  14. package/dist/packem_chunks/fix.js +1 -1
  15. package/dist/packem_chunks/handler.js +1 -1
  16. package/dist/packem_chunks/handler10.js +1 -1
  17. package/dist/packem_chunks/handler11.js +1 -1
  18. package/dist/packem_chunks/handler12.js +1 -1
  19. package/dist/packem_chunks/handler13.js +1 -1
  20. package/dist/packem_chunks/handler14.js +1 -1
  21. package/dist/packem_chunks/handler15.js +1 -1
  22. package/dist/packem_chunks/handler16.js +1 -1
  23. package/dist/packem_chunks/handler17.js +1 -1
  24. package/dist/packem_chunks/handler18.js +1 -1
  25. package/dist/packem_chunks/handler19.js +1 -1
  26. package/dist/packem_chunks/handler2.js +1 -1
  27. package/dist/packem_chunks/handler20.js +1 -1
  28. package/dist/packem_chunks/handler21.js +1 -1
  29. package/dist/packem_chunks/handler22.js +1 -1
  30. package/dist/packem_chunks/handler23.js +1 -1
  31. package/dist/packem_chunks/handler24.js +1 -1
  32. package/dist/packem_chunks/handler25.js +1 -1
  33. package/dist/packem_chunks/handler26.js +1 -1
  34. package/dist/packem_chunks/handler27.js +1 -1
  35. package/dist/packem_chunks/handler28.js +1 -1
  36. package/dist/packem_chunks/handler29.js +1 -1
  37. package/dist/packem_chunks/handler3.js +2 -2
  38. package/dist/packem_chunks/handler30.js +1 -1
  39. package/dist/packem_chunks/handler32.js +1 -1
  40. package/dist/packem_chunks/handler4.js +1 -1
  41. package/dist/packem_chunks/handler46.js +1 -1
  42. package/dist/packem_chunks/handler5.js +1 -1
  43. package/dist/packem_chunks/handler50.js +1 -1
  44. package/dist/packem_chunks/handler51.js +1 -1
  45. package/dist/packem_chunks/handler52.js +1 -1
  46. package/dist/packem_chunks/handler53.js +1 -1
  47. package/dist/packem_chunks/handler54.js +1 -1
  48. package/dist/packem_chunks/handler55.js +1 -1
  49. package/dist/packem_chunks/handler56.js +1 -1
  50. package/dist/packem_chunks/handler58.js +1 -1
  51. package/dist/packem_chunks/handler59.js +1 -1
  52. package/dist/packem_chunks/handler6.js +1 -1
  53. package/dist/packem_chunks/handler60.js +1 -1
  54. package/dist/packem_chunks/handler61.js +22 -3
  55. package/dist/packem_chunks/handler62.js +2 -22
  56. package/dist/packem_chunks/handler63.js +6 -2
  57. package/dist/packem_chunks/handler64.js +8 -61
  58. package/dist/packem_chunks/handler65.js +2 -6
  59. package/dist/packem_chunks/handler66.js +12 -8
  60. package/dist/packem_chunks/handler67.js +5 -2
  61. package/dist/packem_chunks/handler68.js +25 -12
  62. package/dist/packem_chunks/handler69.js +50 -25
  63. package/dist/packem_chunks/handler7.js +1 -1
  64. package/dist/packem_chunks/handler70.js +153 -50
  65. package/dist/packem_chunks/handler71.js +1 -1
  66. package/dist/packem_chunks/handler72.js +1 -1
  67. package/dist/packem_chunks/handler73.js +1 -1
  68. package/dist/packem_chunks/handler74.js +1 -1
  69. package/dist/packem_chunks/handler75.js +1 -1
  70. package/dist/packem_chunks/handler76.js +1 -1
  71. package/dist/packem_chunks/handler77.js +1 -1
  72. package/dist/packem_chunks/handler78.js +1 -1
  73. package/dist/packem_chunks/handler79.js +64 -64
  74. package/dist/packem_chunks/handler8.js +1 -1
  75. package/dist/packem_chunks/handler9.js +1 -1
  76. package/dist/packem_chunks/heal-accept.js +1 -1
  77. package/dist/packem_chunks/heal.js +1 -1
  78. package/dist/packem_chunks/help-command.js +1 -1
  79. package/dist/packem_chunks/index7.js +1 -1
  80. package/dist/packem_chunks/keys-refresh.js +1 -1
  81. package/dist/packem_chunks/lean.js +1 -1
  82. package/dist/packem_chunks/list.js +1 -1
  83. package/dist/packem_chunks/loader.js +1 -1
  84. package/dist/packem_chunks/prune.js +1 -1
  85. package/dist/packem_chunks/status.js +1 -1
  86. package/dist/packem_chunks/sync.js +1 -1
  87. package/dist/packem_chunks/sync2.js +1 -1
  88. package/dist/packem_chunks/tripwire.js +1 -1
  89. package/dist/packem_chunks/ts-loader.js +2 -2
  90. package/dist/packem_chunks/verify-lockfile.js +1 -1
  91. package/dist/packem_chunks/workflow-templates.js +29 -32
  92. package/dist/packem_shared/{ReleaseClient-C2xIJ6LK.js → ReleaseClient-CqGLb7S4.js} +1 -1
  93. package/dist/packem_shared/{advisories-DoJg1aO9.js → advisories-CyXUdibZ.js} +1 -1
  94. package/dist/packem_shared/{affected-selection-vthRDY8k.js → affected-selection-CJnDzyIK.js} +1 -1
  95. package/dist/packem_shared/affected-shas-CJLirD2O.js +1 -0
  96. package/dist/packem_shared/{ai-analysis-BQXQSrpM.js → ai-analysis-DHlzow2O.js} +1 -1
  97. package/dist/packem_shared/{ai-cache-_pgEsibl.js → ai-cache-D-BSLcuJ.js} +1 -1
  98. package/dist/packem_shared/{ai-fix-Bc5SFN7s.js → ai-fix-CyExJC_c.js} +1 -1
  99. package/dist/packem_shared/{augment-BSeqaai8.js → augment-Ub6PCwbh.js} +1 -1
  100. package/dist/packem_shared/{bin-N12LFeEP.js → bin-BaReRSyo.js} +1 -1
  101. package/dist/packem_shared/{build-scripts-Dff0s5AH.js → build-scripts-BeJkep8z.js} +1 -1
  102. package/dist/packem_shared/ci-commands-4W9d2six.js +1 -0
  103. package/dist/packem_shared/{command-runtime-DG49t2MT.js → command-runtime-DdnpiUmN.js} +1 -1
  104. package/dist/packem_shared/{dependency-scan-DheQqeil.js → dependency-scan-CyByCwef.js} +1 -1
  105. package/dist/packem_shared/{detect-CknQIlyA.js → detect-xqoTANJb.js} +1 -1
  106. package/dist/packem_shared/{docker-w_1gOq50.js → docker-CJXAt5Au.js} +1 -1
  107. package/dist/packem_shared/{ecosystem-gate-BKRW_EF3.js → ecosystem-gate-DEnubRcS.js} +1 -1
  108. package/dist/packem_shared/{env-CGTN0BFz.js → env-NauRSSEC.js} +1 -1
  109. package/dist/packem_shared/{env-consistency-2UlhhMn5.js → env-consistency-Cl1Rg65z.js} +1 -1
  110. package/dist/packem_shared/{failure-log-DwZ4pNmp.js → failure-log-DwroazKs.js} +1 -1
  111. package/dist/packem_shared/glob-Cyk1H9ZL-BtN6Zzwg.js +1 -0
  112. package/dist/packem_shared/{index-CypvJE1G.js → index-BCEhCrLl.js} +1 -1
  113. package/dist/packem_shared/{index-DGll9r9W.js → index-OmE1O0Ys.js} +1 -1
  114. package/dist/packem_shared/{index-0dnGN3GP.js → index-zq6Ehql6.js} +1 -1
  115. package/dist/packem_shared/{isAccessibleSync-DYKTrrvc-CBsMZhj-.js → isAccessibleSync-DYKTrrvc-CKahNmLy.js} +1 -1
  116. package/dist/packem_shared/{lifecycle-B2m1OncV.js → lifecycle-Cn1mSP5f.js} +1 -1
  117. package/dist/packem_shared/{lockfile-DEWjBrlY.js → lockfile-Cx2Ny3um.js} +1 -1
  118. package/dist/packem_shared/{manifests-hpWznbs9.js → manifests-BEGTH1ZG.js} +1 -1
  119. package/dist/packem_shared/{min-release-age-Dy7mkYsY.js → min-release-age-DLAERxRt.js} +1 -1
  120. package/dist/packem_shared/{missing-package-json-SDyf6fjC.js → missing-package-json-w74qGfyh.js} +1 -1
  121. package/dist/packem_shared/{multi-eco-lockfiles-DDjCxn43.js → multi-eco-lockfiles-SATPXx6-.js} +1 -1
  122. package/dist/packem_shared/{native-config-sync-DlljvZ64.js → native-config-sync-DDFn6Zsf.js} +1 -1
  123. package/dist/packem_shared/{npmrc-CIvOb61L.js → npmrc-DONprxrc.js} +1 -1
  124. package/dist/packem_shared/{osv-C4Vn7VCy.js → osv-dvIA_vX3.js} +1 -1
  125. package/dist/packem_shared/{package-version-DteJxz6k.js → package-version-BOK3IncQ.js} +2 -2
  126. package/dist/packem_shared/{packument-BHB4BqzR.js → packument-B678kHJO.js} +1 -1
  127. package/dist/packem_shared/{pm-runner-BXRi4ZM9.js → pm-runner-CYsiSHYa.js} +1 -1
  128. package/dist/packem_shared/{project-name-filter-yTiFERfc.js → project-name-filter-CBEoY08a.js} +1 -1
  129. package/dist/packem_shared/{provenance-BLycrdW2.js → provenance-D4ioWGBq.js} +1 -1
  130. package/dist/packem_shared/publish-missing-DgPXeH9w.js +38 -0
  131. package/dist/packem_shared/reachable-DX8FPErP.js +1 -0
  132. package/dist/packem_shared/{registry-48vkYPJB.js → registry-ClmannRw.js} +2 -2
  133. package/dist/packem_shared/{registry-keys-DdqAOng1.js → registry-keys-CF45rOur.js} +1 -1
  134. package/dist/packem_shared/{removeSync-g1D5kONg-jOsRSIIv.js → removeSync-g1D5kONg-DcG75b0G.js} +1 -1
  135. package/dist/packem_shared/{renderToString-DR0zDUjh-AcCpRdMt.js → renderToString-DR0zDUjh-CBDmAXxb.js} +1 -1
  136. package/dist/packem_shared/{resolve-explicit-BbIYCI43.js → resolve-explicit-C5-y-xEU.js} +1 -1
  137. package/dist/packem_shared/{resolve-runtime-D8rxuo3J.js → resolve-runtime-DBDozrmt.js} +1 -1
  138. package/dist/packem_shared/{run-file-D1mlOnd8.js → run-file-BKXvoVj2.js} +1 -1
  139. package/dist/packem_shared/{run-summary-utils-BIFZ0_Qf.js → run-summary-utils-75paIrLB.js} +1 -1
  140. package/dist/packem_shared/{runtime-check-B2u8WTUY.js → runtime-check-Yl8-Awkf.js} +1 -1
  141. package/dist/packem_shared/{s1ngularity-CTb560h1.js → s1ngularity-B2bqwE0C.js} +1 -1
  142. package/dist/packem_shared/{scaffold-files-CnWTGzav.js → scaffold-files-UiCBBCT5.js} +1 -1
  143. package/dist/packem_shared/{scan-progress-BEB4T6jo.js → scan-progress-Dws7Gif1.js} +1 -1
  144. package/dist/packem_shared/{selectors-DFzKNlk8.js → selectors-DZ4HDnlD.js} +1 -1
  145. package/dist/packem_shared/{signatures-CoRC1HW7.js → signatures-DNqgsRp7.js} +1 -1
  146. package/dist/packem_shared/{spinner-uH0pr4ln.js → spinner-BQ9mLz8X.js} +1 -1
  147. package/dist/packem_shared/{table-DL8yVcm3.js → table-D1CpySxU.js} +1 -1
  148. package/dist/packem_shared/{tabs-C1RRtWUi.js → tabs-BYtpIN5b.js} +1 -1
  149. package/dist/packem_shared/{target-options-rIthWS4M.js → target-options-CsevVc7U.js} +1 -1
  150. package/dist/packem_shared/{task-env-Cl4jNMCR.js → task-env-BftNOR00.js} +1 -1
  151. package/dist/packem_shared/{toolchain-BdYvWNPz.js → toolchain-BvluBdrw.js} +1 -1
  152. package/dist/packem_shared/{typosquats-D0yqKvP6.js → typosquats-XrArH9TO.js} +1 -1
  153. package/dist/packem_shared/{use-measured-height-Cq0aFDqE.js → use-measured-height-hHis1NaB.js} +1 -1
  154. package/dist/packem_shared/{verify-3WE9U_Bv.js → verify-Dic2G0nQ.js} +1 -1
  155. package/dist/packem_shared/{vis-update-app-B0FW7Sl_.js → vis-update-app-BNnbDZ--.js} +1 -1
  156. package/dist/packem_shared/{vis-user-error-Bdcaov20.js → vis-user-error-DhgW3DzD.js} +2 -2
  157. package/dist/packem_shared/{watch-C-9-PD2m.js → watch-BLHtUgfb.js} +1 -1
  158. package/dist/packem_shared/{watch-loop-B2vH6Ae0.js → watch-loop-Dh4GHUVS.js} +7 -7
  159. package/dist/release/index.js +1 -1
  160. package/dist/runtime/preload.js +1 -1
  161. package/index.d.ts +204 -213
  162. package/index.js +54 -54
  163. package/package.json +11 -10
  164. package/schemas/vis-config.schema.json +1419 -80
  165. package/dist/packem_shared/affected-shas-CycHU3nr.js +0 -1
  166. package/dist/packem_shared/glob-Cyk1H9ZL-DV-XWFct.js +0 -1
  167. package/dist/packem_shared/publish-missing-CZK1BpWt.js +0 -38
package/index.d.ts CHANGED
@@ -1,14 +1,5 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
-
4
- /**
5
- * Which binding artifact the generated loader actually loaded: `'native'` for
6
- * a native addon, otherwise the `platformArchABI` of the WASI flavor. Every
7
- * flavor napi-rs can build is listed, because `NAPI_RS_NATIVE_LIBRARY_PATH`
8
- * can point the loader at a WASI artifact this package does not build itself.
9
- */
10
- export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-wasip1'
11
-
12
3
  /**
13
4
  * Opaque handle wrapping a decoded `BloomFilter`. JS calls back into
14
5
  * `osv_bloom_probe` / `osv_bloom_probe_batch` with this handle. Arc so
@@ -16,43 +7,43 @@ export declare const __napiBindingTarget: 'native' | 'wasm32-wasi' | 'wasm32-was
16
7
  * the bitset.
17
8
  */
18
9
  export declare class OsvBloomHandle {
19
- /**
20
- * `n` field from the filter header — entry count the upstream
21
- * builder inserted. Exposed for `vis advisories bloom status`.
22
- */
23
- get entriesInserted(): number
24
- /**
25
- * `m` field — bit count. Returned as a decimal string so the full
26
- * u64 round-trips without JS-Number precision loss; today's filter
27
- * is ~3.1M bits but the wire format reserves 64-bit headroom.
28
- */
29
- get bitCountString(): string
30
- /** `k` field — hash-function count per probe. */
31
- get hashCount(): number
32
- /**
33
- * `built_at_unix_seconds` — UNIX seconds the upstream builder
34
- * recorded, as a decimal string. JS reconstructs via
35
- * `new Date(Number(s) * 1000)`. Use this in status output rather
36
- * than the local fetch time.
37
- */
38
- get builtAtUnixSecondsString(): string
39
- /**
40
- * `format_version` — currently 1. Surfaced so JS can flag a
41
- * version-mismatch warning without re-decoding.
42
- */
43
- 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;
44
35
  }
45
36
 
46
37
  export interface AddOptions {
47
- packages: Array<string>
48
- saveDev: boolean
49
- exact: boolean
50
- peer: boolean
51
- optional: boolean
52
- global: boolean
53
- workspace: boolean
54
- workspaceRoot: boolean
55
- 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>;
56
47
  }
57
48
 
58
49
  /**
@@ -60,57 +51,57 @@ export interface AddOptions {
60
51
  * zip → JSON → INSERT pipeline can take seconds; we run it on a libuv worker
61
52
  * so the main JS thread is free.
62
53
  */
63
- 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>;
64
55
 
65
56
  /**
66
57
  * Synchronous query path. Returns one `AdvisoryQueryResult` per input,
67
58
  * preserving order, so callers can zip back to their lockfile rows by index.
68
59
  */
69
- export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>
60
+ export declare function advisoriesQuery(dbPath: string, queries: Array<AdvisoryQuery>): Array<AdvisoryQueryResult>;
70
61
 
71
- export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus
62
+ export declare function advisoriesStatus(dbPath: string): AdvisoryDbStatus;
72
63
 
73
64
  export interface AdvisoryDbStatus {
74
- exists: boolean
75
- ecosystems: Array<AdvisoryEcosystemStatus>
76
- sizeBytes: number
77
- schemaVersion: number
65
+ exists: boolean;
66
+ ecosystems: Array<AdvisoryEcosystemStatus>;
67
+ sizeBytes: number;
68
+ schemaVersion: number;
78
69
  }
79
70
 
80
71
  export interface AdvisoryEcosystemStatus {
81
- name: string
82
- advisoryCount: number
83
- lastSyncIso: string
84
- manifestEtag?: string
72
+ name: string;
73
+ advisoryCount: number;
74
+ lastSyncIso: string;
75
+ manifestEtag?: string;
85
76
  }
86
77
 
87
78
  export interface AdvisoryIngestOptions {
88
- /** Path to a previously-downloaded OSV dump zip on disk. */
89
- zipPath: string
90
- dbPath: string
91
- ecosystem: string
92
- /**
93
- * HTTP ETag header to write into the `manifest_etag` meta row for this
94
- * ecosystem. `null` when the server didn't send one.
95
- */
96
- 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;
97
88
  }
98
89
 
99
90
  export interface AdvisoryIngestResult {
100
- advisoriesIngested: number
101
- durationMs: number
91
+ advisoriesIngested: number;
92
+ durationMs: number;
102
93
  }
103
94
 
104
95
  export interface AdvisoryQuery {
105
- ecosystem: string
106
- name: string
107
- version: string
96
+ ecosystem: string;
97
+ name: string;
98
+ version: string;
108
99
  }
109
100
 
110
101
  export interface AdvisoryQueryResult {
111
- name: string
112
- version: string
113
- vulnerabilities: Array<NativeVulnerabilityJs>
102
+ name: string;
103
+ version: string;
104
+ vulnerabilities: Array<NativeVulnerabilityJs>;
114
105
  }
115
106
 
116
107
  /**
@@ -119,15 +110,15 @@ export interface AdvisoryQueryResult {
119
110
  * migrated `.pre-commit-config.yaml` files — anything outside this set
120
111
  * (and outside the vis-specific overlay) is surfaced as a warning.
121
112
  */
122
- export declare function allKnownTags(): Array<string>
113
+ export declare function allKnownTags(): Array<string>;
123
114
 
124
115
  export interface CleanResult {
125
- /** Directories that were removed */
126
- removed: Array<string>
127
- /** Directories that failed to remove (with error messages) */
128
- errors: Array<string>
129
- /** Lockfiles that were removed (when --lockfile flag used) */
130
- 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>;
131
122
  }
132
123
 
133
124
  /**
@@ -138,21 +129,21 @@ export interface CleanResult {
138
129
  *
139
130
  * When `remove_lockfile` is true, also removes lockfiles from the root.
140
131
  */
141
- export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult
132
+ export declare function cleanWorkspace(root: string, removeLockfile: boolean): CleanResult;
142
133
 
143
134
  export interface DetectedPackageManager {
144
- /** The package manager name: "pnpm", "npm", "yarn", or "bun" */
145
- name: string
146
- /** The version string from packageManager field, or None if unknown */
147
- version?: string
148
- /**
149
- * Build metadata (sha256 hash) appended to packageManager field by
150
- * corepack. `parts[1].split('+').next()` strips it from `version`;
151
- * this field preserves it for callers that want to verify the pin.
152
- */
153
- buildMeta?: string
154
- /** Whether this is a monorepo/workspace */
155
- isWorkspace: boolean
135
+ /** The package manager name: "pnpm", "npm", "yarn", or "bun" */
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;
156
147
  }
157
148
 
158
149
  /**
@@ -165,7 +156,7 @@ export interface DetectedPackageManager {
165
156
  *
166
157
  * Returns `napi::Result` so any I/O errors surface as JS exceptions.
167
158
  */
168
- export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager
159
+ export declare function detectPackageManager(cwd: string, opts?: DetectPackageManagerOptions | undefined | null): DetectedPackageManager;
169
160
 
170
161
  /**
171
162
  * Options controlling which detection sources to consult.
@@ -176,40 +167,40 @@ export declare function detectPackageManager(cwd: string, opts?: DetectPackageMa
176
167
  * `{}` enables every source.
177
168
  */
178
169
  export interface DetectPackageManagerOptions {
179
- /** Skip reading the `packageManager` field in package.json. */
180
- ignorePackageJson?: boolean
181
- /** Skip lockfile walk (pnpm-lock.yaml, yarn.lock, …). */
182
- ignoreLockFile?: boolean
183
- /**
184
- * Skip the `npm_config_user_agent` env-var fallback. Set by every
185
- * PM when running scripts; lets a tool spawned from `pnpm run x`
186
- * know it's pnpm even without a lockfile.
187
- */
188
- 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;
189
180
  }
190
181
 
191
182
  export interface DlxOptions {
192
- package: string
193
- args: Array<string>
194
- additionalPackages: Array<string>
195
- shellMode: boolean
196
- silent: boolean
183
+ package: string;
184
+ args: Array<string>;
185
+ additionalPackages: Array<string>;
186
+ shellMode: boolean;
187
+ silent: boolean;
197
188
  }
198
189
 
199
190
  export interface EditorconfigDefaults {
200
- indent?: string
201
- lineEnding?: string
191
+ indent?: string;
192
+ lineEnding?: string;
202
193
  }
203
194
 
204
195
  export interface ExecOptions {
205
- command: string
206
- args: Array<string>
207
- shellMode: boolean
208
- recursive: boolean
209
- workspaceRoot: boolean
210
- parallel: boolean
211
- reverse: boolean
212
- 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>;
213
204
  }
214
205
 
215
206
  /**
@@ -220,33 +211,33 @@ export interface ExecOptions {
220
211
  * Returns `napi::Result<ExecResult>` -- throws a JS error for disallowed
221
212
  * binaries or spawn failures, returns ExecResult with exit code otherwise.
222
213
  */
223
- 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;
224
215
 
225
216
  /**
226
217
  * Executes a package manager command with inherited stdio (interactive).
227
218
  * Returns exit code. Throws JS error for disallowed binaries or spawn failures.
228
219
  */
229
- 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;
230
221
 
231
222
  export interface ExecResult {
232
- code: number
233
- stdout: string
234
- stderr: string
223
+ code: number;
224
+ stdout: string;
225
+ stderr: string;
235
226
  }
236
227
 
237
228
  export interface InstallOptions {
238
- frozenLockfile: boolean
239
- prod: boolean
240
- dev: boolean
241
- noOptional: boolean
242
- force: boolean
243
- ignoreScripts: boolean
244
- lockfileOnly: boolean
245
- offline: boolean
246
- silent: boolean
247
- recursive: boolean
248
- workspaceRoot: boolean
249
- 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>;
250
241
  }
251
242
 
252
243
  /**
@@ -267,38 +258,38 @@ export interface InstallOptions {
267
258
  * 6 — added `transform_ts`: oxc-based TS/JSX → JS transpile for the runtime
268
259
  * loader (config / generators / `vis x`), replacing the `jiti` dependency.
269
260
  */
270
- export declare const NATIVE_BINDING_VERSION: number
261
+ export const NATIVE_BINDING_VERSION: number;
271
262
 
272
263
  export interface NativeSortPackageJsonOptions {
273
- /** Enable formatted output with newlines (default: true) */
274
- pretty?: boolean
275
- /** Alphabetize script commands (default: false) */
276
- sortScripts?: boolean
264
+ /** Enable formatted output with newlines (default: true) */
265
+ pretty?: boolean;
266
+ /** Alphabetize script commands (default: false) */
267
+ sortScripts?: boolean;
277
268
  }
278
269
 
279
270
  export interface NativeVulnerabilityJs {
280
- id: string
281
- aliases: Array<string>
282
- /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
283
- severity: string
284
- summary: string
285
- fixedVersions: Array<string>
286
- cvssScore?: number
271
+ id: string;
272
+ aliases: Array<string>;
273
+ /** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
274
+ severity: string;
275
+ summary: string;
276
+ fixedVersions: Array<string>;
277
+ cvssScore?: number;
287
278
  }
288
279
 
289
280
  export interface OsvBloomBatchHit {
290
- /**
291
- * Index into the input batch array. Lets JS reconstruct which
292
- * lockfile row triggered the hit without re-walking the inputs.
293
- */
294
- index: number
295
- name: string
296
- version: string
281
+ /**
282
+ * Index into the input batch array. Lets JS reconstruct which
283
+ * lockfile row triggered the hit without re-walking the inputs.
284
+ */
285
+ index: number;
286
+ name: string;
287
+ version: string;
297
288
  }
298
289
 
299
290
  export interface OsvBloomBatchQuery {
300
- name: string
301
- version: string
291
+ name: string;
292
+ version: string;
302
293
  }
303
294
 
304
295
  /**
@@ -306,7 +297,7 @@ export interface OsvBloomBatchQuery {
306
297
  * Returns an opaque handle; reuse it for every probe call until the
307
298
  * JS-side cache invalidates.
308
299
  */
309
- export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
300
+ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
310
301
 
311
302
  /**
312
303
  * Probe a single `(name, version)` pair. Returns `true` when the pair
@@ -318,7 +309,7 @@ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
318
309
  * unbounded ranges still match. Unparseable versions probe only the
319
310
  * wildcard bucket.
320
311
  */
321
- export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
312
+ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean;
322
313
 
323
314
  /**
324
315
  * Batch variant. Returns only the hits, with their original index — the
@@ -326,20 +317,20 @@ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, vers
326
317
  * (`Vec<bool>` of length N) would dominate the cost. Order of returned
327
318
  * hits matches input order.
328
319
  */
329
- export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>
320
+ export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>;
330
321
 
331
322
  export interface OutdatedOptions {
332
- packages: Array<string>
333
- long: boolean
334
- format: string
335
- recursive: boolean
336
- filter: Array<string>
337
- workspaceRoot: boolean
338
- prod: boolean
339
- dev: boolean
340
- noOptional: boolean
341
- compatible: boolean
342
- global: boolean
323
+ packages: Array<string>;
324
+ long: boolean;
325
+ format: string;
326
+ recursive: boolean;
327
+ filter: Array<string>;
328
+ workspaceRoot: boolean;
329
+ prod: boolean;
330
+ dev: boolean;
331
+ noOptional: boolean;
332
+ compatible: boolean;
333
+ global: boolean;
343
334
  }
344
335
 
345
336
  /**
@@ -349,33 +340,33 @@ export interface OutdatedOptions {
349
340
  * pre-commit's behavior of treating "no shebang" as "no interpreter
350
341
  * tags" rather than as an error.
351
342
  */
352
- export declare function parseShebang(path: string): Array<string>
343
+ export declare function parseShebang(path: string): Array<string>;
353
344
 
354
345
  export interface ProgressPayload {
355
- current: number
356
- total: number
346
+ current: number;
347
+ total: number;
357
348
  }
358
349
 
359
350
  export interface RemoveOptions {
360
- packages: Array<string>
361
- saveDev: boolean
362
- global: boolean
363
- recursive: boolean
364
- workspaceRoot: boolean
365
- filter: Array<string>
351
+ packages: Array<string>;
352
+ saveDev: boolean;
353
+ global: boolean;
354
+ recursive: boolean;
355
+ workspaceRoot: boolean;
356
+ filter: Array<string>;
366
357
  }
367
358
 
368
- export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
359
+ export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand;
369
360
 
370
361
  export interface ResolvedCommand {
371
- bin: string
372
- args: Array<string>
373
- warnings: Array<string>
362
+ bin: string;
363
+ args: Array<string>;
364
+ warnings: Array<string>;
374
365
  }
375
366
 
376
- export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
367
+ export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand;
377
368
 
378
- export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
369
+ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand;
379
370
 
380
371
  /**
381
372
  * Resolves `.editorconfig` defaults for `file_path` using the spec-compliant
@@ -385,27 +376,27 @@ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions
385
376
  * configured. Parse / IO failures collapse to an empty result so callers can
386
377
  * fall back to content sniffing without try/catch noise.
387
378
  */
388
- export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
379
+ export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults;
389
380
 
390
- export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
381
+ export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand;
391
382
 
392
- export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
383
+ export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand;
393
384
 
394
- export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand
385
+ export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand;
395
386
 
396
- export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
387
+ export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand;
397
388
 
398
- export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand
389
+ export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand;
399
390
 
400
- export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
391
+ export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand;
401
392
 
402
- export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand
393
+ export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand;
403
394
 
404
- export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
395
+ export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand;
405
396
 
406
- export declare function sortPackageJsonString(contents: string): string
397
+ export declare function sortPackageJsonString(contents: string): string;
407
398
 
408
- export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
399
+ export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string;
409
400
 
410
401
  /**
411
402
  * Classifies a single file path using `prek-identify`. Returns the set of
@@ -414,7 +405,7 @@ export declare function sortPackageJsonStringWithOptions(contents: string, optio
414
405
  * don't need try/catch — the vis hook runtime treats "unclassified" and
415
406
  * "no tags" identically.
416
407
  */
417
- export declare function tagsFromPath(path: string): Array<string>
408
+ export declare function tagsFromPath(path: string): Array<string>;
418
409
 
419
410
  /**
420
411
  * Batch variant of [`tags_from_path`]. Returns one tag list per input
@@ -423,11 +414,11 @@ export declare function tagsFromPath(path: string): Array<string>
423
414
  * (the same behavior pre-commit applies when stat-ing a deleted staged
424
415
  * file mid-run).
425
416
  */
426
- export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>
417
+ export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>;
427
418
 
428
419
  export interface TransformResult {
429
- /** Transpiled JavaScript source. */
430
- code: string
420
+ /** Transpiled JavaScript source. */
421
+ code: string;
431
422
  }
432
423
 
433
424
  /**
@@ -435,25 +426,25 @@ export interface TransformResult {
435
426
  * source dialect by extension (`.ts`/`.tsx`/`.mts`/`.cts`/`.js`/...). Returns the
436
427
  * emitted JS; throws on a fatal parse failure.
437
428
  */
438
- export declare function transformTs(filename: string, source: string): TransformResult
429
+ export declare function transformTs(filename: string, source: string): TransformResult;
439
430
 
440
431
  /**
441
432
  * Finds the full path to a binary using `which`-style lookup.
442
433
  * Returns None if not found.
443
434
  */
444
- export declare function whichBin(name: string): string | null
435
+ export declare function whichBin(name: string): string | null;
445
436
 
446
437
  export interface WhyOptions {
447
- packages: Array<string>
448
- json: boolean
449
- long: boolean
450
- parseable: boolean
451
- recursive: boolean
452
- dev: boolean
453
- prod: boolean
454
- noOptional: boolean
455
- global: boolean
456
- /** Depth limit. Uses Option<i32> directly (napi supports it). */
457
- depth?: number
458
- filter: Array<string>
438
+ packages: Array<string>;
439
+ json: boolean;
440
+ long: boolean;
441
+ parseable: boolean;
442
+ recursive: boolean;
443
+ dev: boolean;
444
+ prod: boolean;
445
+ noOptional: boolean;
446
+ global: boolean;
447
+ /** Depth limit. Uses Option<i32> directly (napi supports it). */
448
+ depth?: number;
449
+ filter: Array<string>;
459
450
  }