@visulima/vis 1.0.0-alpha.41 → 1.0.0-alpha.42

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 (199) hide show
  1. package/CHANGELOG.md +14 -0
  2. package/LICENSE.md +265 -35
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +2 -2
  5. package/dist/config/index.d.ts +1 -1
  6. package/dist/config/index.js +1 -1
  7. package/dist/packem_chunks/bloom-status.js +1 -1
  8. package/dist/packem_chunks/bloom-sync.js +1 -1
  9. package/dist/packem_chunks/cli-exec.js +1 -0
  10. package/dist/packem_chunks/{bin.js → cli-main.js} +282 -274
  11. package/dist/packem_chunks/config.js +8 -11
  12. package/dist/packem_chunks/devtools.js +1 -78
  13. package/dist/packem_chunks/dispatch.js +4 -0
  14. package/dist/packem_chunks/doctor-probe.js +1 -1
  15. package/dist/packem_chunks/fix.js +1 -1
  16. package/dist/packem_chunks/handler.js +1 -1
  17. package/dist/packem_chunks/handler10.js +1 -1
  18. package/dist/packem_chunks/handler11.js +1 -1
  19. package/dist/packem_chunks/handler12.js +1 -1
  20. package/dist/packem_chunks/handler13.js +3 -3
  21. package/dist/packem_chunks/handler14.js +1 -1
  22. package/dist/packem_chunks/handler15.js +1 -1
  23. package/dist/packem_chunks/handler16.js +1 -1
  24. package/dist/packem_chunks/handler17.js +1 -1
  25. package/dist/packem_chunks/handler18.js +1 -1
  26. package/dist/packem_chunks/handler19.js +1 -1
  27. package/dist/packem_chunks/handler2.js +1 -4
  28. package/dist/packem_chunks/handler20.js +1 -1
  29. package/dist/packem_chunks/handler21.js +1 -1
  30. package/dist/packem_chunks/handler22.js +2 -2
  31. package/dist/packem_chunks/handler23.js +5 -1
  32. package/dist/packem_chunks/handler24.js +1 -1
  33. package/dist/packem_chunks/handler25.js +1 -1
  34. package/dist/packem_chunks/handler26.js +1 -5
  35. package/dist/packem_chunks/handler27.js +5 -1
  36. package/dist/packem_chunks/handler28.js +1 -3
  37. package/dist/packem_chunks/handler29.js +3 -1
  38. package/dist/packem_chunks/handler3.js +1 -4
  39. package/dist/packem_chunks/handler30.js +1 -1
  40. package/dist/packem_chunks/handler31.js +1 -2
  41. package/dist/packem_chunks/handler32.js +2 -2
  42. package/dist/packem_chunks/handler33.js +2 -2
  43. package/dist/packem_chunks/handler34.js +2 -3
  44. package/dist/packem_chunks/handler35.js +3 -6
  45. package/dist/packem_chunks/handler36.js +6 -1
  46. package/dist/packem_chunks/handler37.js +1 -42
  47. package/dist/packem_chunks/handler38.js +42 -8
  48. package/dist/packem_chunks/handler39.js +8 -9
  49. package/dist/packem_chunks/handler4.js +4 -6
  50. package/dist/packem_chunks/handler40.js +9 -75
  51. package/dist/packem_chunks/handler41.js +75 -5
  52. package/dist/packem_chunks/handler42.js +5 -4
  53. package/dist/packem_chunks/handler43.js +4 -3
  54. package/dist/packem_chunks/handler44.js +3 -2
  55. package/dist/packem_chunks/handler45.js +2 -1
  56. package/dist/packem_chunks/handler46.js +1 -1
  57. package/dist/packem_chunks/handler47.js +1 -1
  58. package/dist/packem_chunks/handler48.js +1 -3
  59. package/dist/packem_chunks/handler49.js +3 -1
  60. package/dist/packem_chunks/handler5.js +4 -8
  61. package/dist/packem_chunks/handler50.js +1 -7
  62. package/dist/packem_chunks/handler51.js +6 -32
  63. package/dist/packem_chunks/handler52.js +33 -3
  64. package/dist/packem_chunks/handler53.js +3 -8
  65. package/dist/packem_chunks/handler54.js +6 -2
  66. package/dist/packem_chunks/handler55.js +4 -1
  67. package/dist/packem_chunks/handler56.js +1 -12
  68. package/dist/packem_chunks/handler57.js +11 -6
  69. package/dist/packem_chunks/handler58.js +3 -3
  70. package/dist/packem_chunks/handler59.js +5 -5
  71. package/dist/packem_chunks/handler6.js +6 -1
  72. package/dist/packem_chunks/handler60.js +2 -2
  73. package/dist/packem_chunks/handler61.js +1 -1
  74. package/dist/packem_chunks/handler62.js +4 -4
  75. package/dist/packem_chunks/handler63.js +3 -3
  76. package/dist/packem_chunks/handler64.js +4 -4
  77. package/dist/packem_chunks/handler65.js +9 -708
  78. package/dist/packem_chunks/handler66.js +6 -6
  79. package/dist/packem_chunks/handler67.js +4 -4
  80. package/dist/packem_chunks/handler68.js +1 -1
  81. package/dist/packem_chunks/handler69.js +5 -5
  82. package/dist/packem_chunks/handler7.js +8 -1
  83. package/dist/packem_chunks/handler70.js +6 -6
  84. package/dist/packem_chunks/handler71.js +9 -9
  85. package/dist/packem_chunks/handler72.js +708 -48
  86. package/dist/packem_chunks/handler73.js +48 -27
  87. package/dist/packem_chunks/handler74.js +27 -3
  88. package/dist/packem_chunks/handler75.js +3 -190
  89. package/dist/packem_chunks/handler76.js +189 -37
  90. package/dist/packem_chunks/handler77.js +38 -0
  91. package/dist/packem_chunks/handler8.js +1 -1
  92. package/dist/packem_chunks/handler9.js +1 -1
  93. package/dist/packem_chunks/heal-accept.js +1 -1
  94. package/dist/packem_chunks/heal.js +1 -1
  95. package/dist/packem_chunks/help-command.js +4 -4
  96. package/dist/packem_chunks/index2.js +1 -1
  97. package/dist/packem_chunks/index3.js +135 -0
  98. package/dist/packem_chunks/index4.js +74 -0
  99. package/dist/packem_chunks/keys-refresh.js +1 -1
  100. package/dist/packem_chunks/lean.js +4 -0
  101. package/dist/packem_chunks/list.js +1 -1
  102. package/dist/packem_chunks/loader.js +1 -1
  103. package/dist/packem_chunks/loader2.js +1 -1
  104. package/dist/packem_chunks/orchestrator.js +3 -3
  105. package/dist/packem_chunks/prompts.js +1 -1
  106. package/dist/packem_chunks/prune.js +1 -1
  107. package/dist/packem_chunks/registry.js +2 -2
  108. package/dist/packem_chunks/run.js +1 -1
  109. package/dist/packem_chunks/shell-runner.js +1 -1
  110. package/dist/packem_chunks/status.js +1 -1
  111. package/dist/packem_chunks/sync.js +1 -1
  112. package/dist/packem_chunks/sync2.js +1 -1
  113. package/dist/packem_chunks/tar.js +1 -1
  114. package/dist/packem_chunks/tripwire.js +1 -1
  115. package/dist/packem_chunks/ts-loader.js +2 -0
  116. package/dist/packem_chunks/verify-lockfile.js +1 -1
  117. package/dist/packem_chunks/version-resolver.js +2 -2
  118. package/dist/packem_shared/CONFIG_FILES-MsOntfYT.js +1 -0
  119. package/dist/packem_shared/{Table-CcVkyULl-B_ef6zfS.js → Table-CcVkyULl-DLWu6XHL.js} +25 -26
  120. package/dist/packem_shared/{advisories-DLeO5KMN.js → advisories-aiDtubZQ.js} +1 -1
  121. package/dist/packem_shared/{affected-shas-cVnX8-zs.js → affected-shas-C1XuRlvo.js} +1 -1
  122. package/dist/packem_shared/{ai-analysis-BUeX2J2H.js → ai-analysis-CubpCxZJ.js} +4 -4
  123. package/dist/packem_shared/{ai-fix-9Vzlp6XU.js → ai-fix-Btd5AnSr.js} +2 -2
  124. package/dist/packem_shared/augment-8fIWWGSc.js +3 -0
  125. package/dist/packem_shared/bin-CnDBuLh3.js +2 -0
  126. package/dist/packem_shared/build-scripts-Doxce2VM.js +1 -0
  127. package/dist/packem_shared/command-runtime-RiCMa2C8.js +1 -0
  128. package/dist/packem_shared/compile-cache-B_Vf_WxT.js +3 -0
  129. package/dist/packem_shared/{cyclonedx-Cadls41z.js → cyclonedx-NUJ9R2GQ.js} +1 -1
  130. package/dist/packem_shared/dependency-scan-B0HV_qeB.js +1 -0
  131. package/dist/packem_shared/{docker-BMLrNtWm.js → docker-DKlF-gk3.js} +1 -1
  132. package/dist/packem_shared/failure-log-C7r6UZLP.js +2 -0
  133. package/dist/packem_shared/{giget-DHY1sQZC.js → giget-DVTFJlbR.js} +2 -2
  134. package/dist/packem_shared/glob-fqg4KepW-7Bs2kZuM.js +1 -0
  135. package/dist/packem_shared/index-BKFEWXU_.js +1 -0
  136. package/dist/packem_shared/index-CPhv-r4c.js +28 -0
  137. package/dist/packem_shared/{index-DGSsjmpV.js → index-Cb4x6lWY.js} +1 -1
  138. package/dist/packem_shared/index-DjTWo3sH.js +1 -0
  139. package/dist/packem_shared/{index-BDmTbWX1.js → index-OQZQyN5R.js} +1 -1
  140. package/dist/packem_shared/index.server-J83sowC4.js +2 -0
  141. package/dist/packem_shared/{lifecycle-4z9hHE5b.js → lifecycle-D5roTh0a.js} +2 -2
  142. package/dist/packem_shared/{lockfile-C8Q1_4KK.js → lockfile-DIGyLfmF.js} +1 -1
  143. package/dist/packem_shared/main-B3juSU5z.js +1 -0
  144. package/dist/packem_shared/manifests-pLwnVmCN.js +1 -0
  145. package/dist/packem_shared/{min-release-age-D1alDE3K.js → min-release-age-pUAqTiv3.js} +3 -3
  146. package/dist/packem_shared/missing-package-json-DhYzuKhD.js +1 -0
  147. package/dist/packem_shared/{native-config-sync-BEkJW7g3.js → native-config-sync-4K9wWTj5.js} +1 -1
  148. package/dist/packem_shared/{osv-bloom-B03tUWf3.js → osv-bloom-OuTfu_LE.js} +1 -1
  149. package/dist/packem_shared/{pm-runner-BKZQo7Ts.js → pm-runner-Dws_Bw1y.js} +1 -1
  150. package/dist/packem_shared/provenance-C0P-UYOM.js +1 -0
  151. package/dist/packem_shared/readJsonSync-CvkZyKmL-CY7PZob_.js +4 -0
  152. package/dist/packem_shared/registry-keys-D4chF-Wj.js +1 -0
  153. package/dist/packem_shared/{resolve-explicit-C6WM-I2u.js → resolve-explicit-Cgheka3B.js} +3 -3
  154. package/dist/packem_shared/resolve-runtime-CJSWV-K8.js +1 -0
  155. package/dist/packem_shared/run-file-B4TqKa0X.js +1 -0
  156. package/dist/packem_shared/runtime-check-0lUJvgKt.js +1 -0
  157. package/dist/packem_shared/runtime-process-Dmz0vCJy-DUwTvH1J.js +1 -0
  158. package/dist/packem_shared/s1ngularity-Du1NnSFP.js +1 -0
  159. package/dist/packem_shared/scan-progress-CN9ONR0y.js +2 -0
  160. package/dist/packem_shared/{selectors-GCJIe342.js → selectors-UmnAuc26.js} +1 -1
  161. package/dist/packem_shared/{signatures-Xpd6HjG_.js → signatures-BOUhghTv.js} +1 -1
  162. package/dist/packem_shared/{spinner-CV3WVJLv.js → spinner-lhXugSx3.js} +1 -1
  163. package/dist/packem_shared/tabs-DTiU3usb.js +1 -0
  164. package/dist/packem_shared/target-options-ChWcK60i.js +1 -0
  165. package/dist/packem_shared/toolchain-DyCKnGch.js +5 -0
  166. package/dist/packem_shared/typosquats-DBOvXwph.js +1 -0
  167. package/dist/packem_shared/use-measured-height-CK2Co3XI.js +1 -0
  168. package/dist/packem_shared/verify-CVPYlUrF.js +1 -0
  169. package/dist/packem_shared/vis-update-app-DtHkwBca.js +1 -0
  170. package/dist/packem_shared/watch-Bkp_AAbc.js +1 -0
  171. package/dist/packem_shared/watch-loop-D9zbXzRd.js +11 -0
  172. package/dist/runtime/preload.d.ts +1 -0
  173. package/dist/runtime/preload.js +1 -0
  174. package/index.d.ts +215 -201
  175. package/index.js +28 -27
  176. package/package.json +17 -26
  177. package/dist/packem_shared/CONFIG_FILES-BfaR0jKT.js +0 -1
  178. package/dist/packem_shared/build-scripts-CCCi8U66.js +0 -1
  179. package/dist/packem_shared/command-runtime-CR70qSUM.js +0 -1
  180. package/dist/packem_shared/dependency-scan-DnTgYleU.js +0 -1
  181. package/dist/packem_shared/failure-log-CEWP3bP0.js +0 -2
  182. package/dist/packem_shared/glob-fqg4KepW-B7EjLRvw.js +0 -1
  183. package/dist/packem_shared/index-3jMNqQom.js +0 -1
  184. package/dist/packem_shared/index-Bt521H5J.js +0 -30
  185. package/dist/packem_shared/manifests-Dj3pRKBT.js +0 -1
  186. package/dist/packem_shared/missing-package-json-8vNHwbqw.js +0 -1
  187. package/dist/packem_shared/provenance-BFEwKgI3.js +0 -1
  188. package/dist/packem_shared/registry-keys-BfFto6vI.js +0 -1
  189. package/dist/packem_shared/runtime-check-Stc9AI78.js +0 -1
  190. package/dist/packem_shared/s1ngularity-DCPmPE5M.js +0 -1
  191. package/dist/packem_shared/scan-progress-CFhc0CMj.js +0 -2
  192. package/dist/packem_shared/tabs-BuTy5gPV.js +0 -1
  193. package/dist/packem_shared/toolchain-pR7AJ-tB.js +0 -5
  194. package/dist/packem_shared/typosquats-DN78xx1x.js +0 -1
  195. package/dist/packem_shared/use-measured-height-_eVGWtWt.js +0 -1
  196. package/dist/packem_shared/verify-6WCmFmy8.js +0 -1
  197. package/dist/packem_shared/vis-update-app-k3fDxech.js +0 -1
  198. package/dist/packem_shared/watch-BvIwLG4N.js +0 -1
  199. package/dist/packem_shared/watch-loop-DWkvv2tK.js +0 -11
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
  /**
@@ -255,39 +255,41 @@ export interface InstallOptions {
255
255
  * `advisories_status`. Backed by bundled SQLite (rusqlite) + zip.
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
+ * 6 — added `transform_ts`: oxc-based TS/JSX → JS transpile for the runtime
259
+ * loader (config / generators / `vis x`), replacing the `jiti` dependency.
258
260
  */
259
- export const NATIVE_BINDING_VERSION: number;
261
+ export const NATIVE_BINDING_VERSION: number
260
262
 
261
263
  export interface NativeSortPackageJsonOptions {
262
- /** Enable formatted output with newlines (default: true) */
263
- pretty?: boolean;
264
- /** Alphabetize script commands (default: false) */
265
- sortScripts?: boolean;
264
+ /** Enable formatted output with newlines (default: true) */
265
+ pretty?: boolean
266
+ /** Alphabetize script commands (default: false) */
267
+ sortScripts?: boolean
266
268
  }
267
269
 
268
270
  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;
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
276
278
  }
277
279
 
278
280
  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;
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
286
288
  }
287
289
 
288
290
  export interface OsvBloomBatchQuery {
289
- name: string;
290
- version: string;
291
+ name: string
292
+ version: string
291
293
  }
292
294
 
293
295
  /**
@@ -295,7 +297,7 @@ export interface OsvBloomBatchQuery {
295
297
  * Returns an opaque handle; reuse it for every probe call until the
296
298
  * JS-side cache invalidates.
297
299
  */
298
- export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
300
+ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
299
301
 
300
302
  /**
301
303
  * Probe a single `(name, version)` pair. Returns `true` when the pair
@@ -307,7 +309,7 @@ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
307
309
  * unbounded ranges still match. Unparseable versions probe only the
308
310
  * wildcard bucket.
309
311
  */
310
- export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean;
312
+ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
311
313
 
312
314
  /**
313
315
  * Batch variant. Returns only the hits, with their original index — the
@@ -315,20 +317,20 @@ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, vers
315
317
  * (`Vec<bool>` of length N) would dominate the cost. Order of returned
316
318
  * hits matches input order.
317
319
  */
318
- export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>;
320
+ export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>
319
321
 
320
322
  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;
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
332
334
  }
333
335
 
334
336
  /**
@@ -338,33 +340,33 @@ export interface OutdatedOptions {
338
340
  * pre-commit's behavior of treating "no shebang" as "no interpreter
339
341
  * tags" rather than as an error.
340
342
  */
341
- export declare function parseShebang(path: string): Array<string>;
343
+ export declare function parseShebang(path: string): Array<string>
342
344
 
343
345
  export interface ProgressPayload {
344
- current: number;
345
- total: number;
346
+ current: number
347
+ total: number
346
348
  }
347
349
 
348
350
  export interface RemoveOptions {
349
- packages: Array<string>;
350
- saveDev: boolean;
351
- global: boolean;
352
- recursive: boolean;
353
- workspaceRoot: boolean;
354
- filter: Array<string>;
351
+ packages: Array<string>
352
+ saveDev: boolean
353
+ global: boolean
354
+ recursive: boolean
355
+ workspaceRoot: boolean
356
+ filter: Array<string>
355
357
  }
356
358
 
357
- export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand;
359
+ export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
358
360
 
359
361
  export interface ResolvedCommand {
360
- bin: string;
361
- args: Array<string>;
362
- warnings: Array<string>;
362
+ bin: string
363
+ args: Array<string>
364
+ warnings: Array<string>
363
365
  }
364
366
 
365
- export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand;
367
+ export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
366
368
 
367
- export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand;
369
+ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
368
370
 
369
371
  /**
370
372
  * Resolves `.editorconfig` defaults for `file_path` using the spec-compliant
@@ -374,27 +376,27 @@ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions
374
376
  * configured. Parse / IO failures collapse to an empty result so callers can
375
377
  * fall back to content sniffing without try/catch noise.
376
378
  */
377
- export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults;
379
+ export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
378
380
 
379
- export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand;
381
+ export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
380
382
 
381
- export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand;
383
+ export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
382
384
 
383
- 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
384
386
 
385
- export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand;
387
+ export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
386
388
 
387
- 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
388
390
 
389
- export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand;
391
+ export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
390
392
 
391
- 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
392
394
 
393
- export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand;
395
+ export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
394
396
 
395
- export declare function sortPackageJsonString(contents: string): string;
397
+ export declare function sortPackageJsonString(contents: string): string
396
398
 
397
- export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string;
399
+ export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
398
400
 
399
401
  /**
400
402
  * Classifies a single file path using `prek-identify`. Returns the set of
@@ -403,7 +405,7 @@ export declare function sortPackageJsonStringWithOptions(contents: string, optio
403
405
  * don't need try/catch — the vis hook runtime treats "unclassified" and
404
406
  * "no tags" identically.
405
407
  */
406
- export declare function tagsFromPath(path: string): Array<string>;
408
+ export declare function tagsFromPath(path: string): Array<string>
407
409
 
408
410
  /**
409
411
  * Batch variant of [`tags_from_path`]. Returns one tag list per input
@@ -412,25 +414,37 @@ export declare function tagsFromPath(path: string): Array<string>;
412
414
  * (the same behavior pre-commit applies when stat-ing a deleted staged
413
415
  * file mid-run).
414
416
  */
415
- export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>;
417
+ export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>
418
+
419
+ export interface TransformResult {
420
+ /** Transpiled JavaScript source. */
421
+ code: string
422
+ }
423
+
424
+ /**
425
+ * Transpile a TS/TSX/JS/JSX source string to JavaScript. `filename` selects the
426
+ * source dialect by extension (`.ts`/`.tsx`/`.mts`/`.cts`/`.js`/...). Returns the
427
+ * emitted JS; throws on a fatal parse failure.
428
+ */
429
+ export declare function transformTs(filename: string, source: string): TransformResult
416
430
 
417
431
  /**
418
432
  * Finds the full path to a binary using `which`-style lookup.
419
433
  * Returns None if not found.
420
434
  */
421
- export declare function whichBin(name: string): string | null;
435
+ export declare function whichBin(name: string): string | null
422
436
 
423
437
  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>;
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>
436
450
  }