@visulima/vis 7.1.0-next.1 → 7.1.0-next.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +22 -0
- package/bin/group-listing.mjs +40 -0
- package/bin/route.mjs +9 -0
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +5 -5
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog.js +1 -1
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +134 -134
- package/dist/packem_chunks/emit.js +3 -0
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler12.js +1 -1
- package/dist/packem_chunks/handler13.js +1 -1
- package/dist/packem_chunks/handler14.js +1 -1
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler19.js +1 -1
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +1 -1
- package/dist/packem_chunks/handler21.js +1 -1
- package/dist/packem_chunks/handler23.js +1 -1
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler26.js +1 -1
- package/dist/packem_chunks/handler28.js +1 -1
- package/dist/packem_chunks/handler3.js +1 -1
- package/dist/packem_chunks/handler4.js +1 -1
- package/dist/packem_chunks/handler5.js +1 -1
- package/dist/packem_chunks/handler50.js +1 -1
- package/dist/packem_chunks/handler51.js +1 -1
- package/dist/packem_chunks/handler52.js +1 -1
- package/dist/packem_chunks/handler54.js +1 -1
- package/dist/packem_chunks/handler55.js +1 -1
- package/dist/packem_chunks/handler58.js +1 -1
- package/dist/packem_chunks/handler59.js +1 -1
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler60.js +1 -1
- package/dist/packem_chunks/handler61.js +1 -1
- package/dist/packem_chunks/handler62.js +1 -1
- package/dist/packem_chunks/handler63.js +1 -1
- package/dist/packem_chunks/handler64.js +1 -1
- package/dist/packem_chunks/handler65.js +1 -1
- package/dist/packem_chunks/handler66.js +1 -1
- package/dist/packem_chunks/handler67.js +1 -1
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +1 -1
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +24 -24
- package/dist/packem_chunks/handler71.js +1 -1
- package/dist/packem_chunks/handler72.js +1 -1
- package/dist/packem_chunks/handler73.js +1 -1
- package/dist/packem_chunks/handler74.js +1 -1
- package/dist/packem_chunks/handler75.js +1 -1
- package/dist/packem_chunks/handler76.js +1 -1
- package/dist/packem_chunks/handler77.js +1 -1
- package/dist/packem_chunks/handler78.js +1 -1
- package/dist/packem_chunks/handler79.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +1 -1
- package/dist/packem_chunks/index5.js +20 -20
- package/dist/packem_chunks/index7.js +1 -1
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/status.js +1 -1
- package/dist/packem_chunks/sync.js +1 -1
- package/dist/packem_chunks/sync2.js +1 -1
- package/dist/packem_chunks/tripwire.js +1 -1
- package/dist/packem_chunks/ts-loader.js +5 -5
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/{advisories-O7twgy1s.js → advisories-Dc10IYpK.js} +1 -1
- package/dist/packem_shared/{affected-selection-eR52q-oc.js → affected-selection-BIxezDlh.js} +1 -1
- package/dist/packem_shared/{ai-analysis-Doa-UG1c.js → ai-analysis-16c2sIVd.js} +1 -1
- package/dist/packem_shared/{ai-cache-BLz0YM15.js → ai-cache-BeP3Wk2e.js} +1 -1
- package/dist/packem_shared/{ai-fix-h4fgPlz8.js → ai-fix-jqni5zPh.js} +1 -1
- package/dist/packem_shared/bin-CFjwItIf.js +1 -0
- package/dist/packem_shared/{build-scripts-zlct5Ggj.js → build-scripts-Dnnfplkm.js} +1 -1
- package/dist/packem_shared/{dependency-scan-CpaMuJak.js → dependency-scan-nsAIchjl.js} +1 -1
- package/dist/packem_shared/{detect-CrdazHI6.js → detect-BmcX8xj2.js} +1 -1
- package/dist/packem_shared/{docker-ClRLF89f.js → docker-CHupOe_6.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-Be06KMgT.js → ecosystem-gate-21KYhUWm.js} +1 -1
- package/dist/packem_shared/{env-BZGqwX30.js → env-BNmRHLkv.js} +1 -1
- package/dist/packem_shared/{env-consistency-DZmwPw-C.js → env-consistency-BW7IQWj9.js} +1 -1
- package/dist/packem_shared/{failure-log-zDUnBhop.js → failure-log-CQrv_3B0.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-Dt41_ECv.js +1 -0
- package/dist/packem_shared/{index-Byxjshm-.js → index-BxCOKJpr.js} +1 -1
- package/dist/packem_shared/{index-BCMh-e5u.js → index-rfoytcrs.js} +1 -1
- package/dist/packem_shared/{lifecycle-DEgFG8Hl.js → lifecycle-BL1NHaZr.js} +1 -1
- package/dist/packem_shared/{manifests-BYQ08vX_.js → manifests-Dt4AxrbA.js} +1 -1
- package/dist/packem_shared/{min-release-age-CmziMU7E.js → min-release-age-C6LCfVPq.js} +1 -1
- package/dist/packem_shared/{missing-package-json-BzB16zXB.js → missing-package-json-DORfrGci.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-BaEL_JYF.js → multi-eco-lockfiles-BBQ_himh.js} +1 -1
- package/dist/packem_shared/{native-config-sync-Dkg3TMPR.js → native-config-sync-16ioEuPe.js} +1 -1
- package/dist/packem_shared/{osv-D8S_X2KZ.js → osv-1_7KmJp_.js} +1 -1
- package/dist/packem_shared/{package-version-C7WbQEnJ.js → package-version-6zT7gOkz.js} +1 -1
- package/dist/packem_shared/{packument-DE9EI2oo.js → packument-BEO6bKIm.js} +1 -1
- package/dist/packem_shared/{project-name-filter-xCPw_fxK.js → project-name-filter-DhMfxZI5.js} +1 -1
- package/dist/packem_shared/{provenance-UZNpYcAR.js → provenance-s5G_nDYD.js} +1 -1
- package/dist/packem_shared/{registry-D65qizQE.js → registry-DCTL7aRA.js} +1 -1
- package/dist/packem_shared/{registry-keys-C66uhEbp.js → registry-keys-D1NIu_2G.js} +1 -1
- package/dist/packem_shared/{renderToString-DR0zDUjh-CS7RIyZE.js → renderToString-DR0zDUjh-vFELWw9k.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-BEsg7ZYh.js → resolve-explicit-DmlBdEFe.js} +1 -1
- package/dist/packem_shared/{run-summary-utils-BrgoXV-3.js → run-summary-utils-XwciqJBJ.js} +1 -1
- package/dist/packem_shared/{runtime-check-mhNpo3ah.js → runtime-check-Srsksjgg.js} +1 -1
- package/dist/packem_shared/{s1ngularity-DFKNfAgy.js → s1ngularity-C0QZ8Tdd.js} +1 -1
- package/dist/packem_shared/{scaffold-files-DAU7B6Cw.js → scaffold-files-bK-FCHfD.js} +1 -1
- package/dist/packem_shared/{scan-progress-CgzPrpwB.js → scan-progress-C9rA4YBY.js} +1 -1
- package/dist/packem_shared/{selectors-CUK5421Y.js → selectors-D6yIYIOZ.js} +1 -1
- package/dist/packem_shared/{signatures-DJcxx8KS.js → signatures-CdKyynFu.js} +1 -1
- package/dist/packem_shared/{spinner-DTKCtuC-.js → spinner-D_gE_AaM.js} +1 -1
- package/dist/packem_shared/{table-CCIzXSUF.js → table-DNd7V4pt.js} +1 -1
- package/dist/packem_shared/{tabs-B9LOpICc.js → tabs-CQAOC5V5.js} +1 -1
- package/dist/packem_shared/{toolchain-CX-0Plms.js → toolchain-CS4rN2CW.js} +1 -1
- package/dist/packem_shared/{typosquats-BKUa8NgB.js → typosquats-CUP2VqZF.js} +1 -1
- package/dist/packem_shared/{use-measured-height-BvUJvSnd.js → use-measured-height-VwlRyMbC.js} +1 -1
- package/dist/packem_shared/{vis-update-app-DxnZ8owK.js → vis-update-app-pVAXAuHo.js} +1 -1
- package/dist/packem_shared/{vis-user-error-BurzAV6b.js → vis-user-error-B1vMnNGb.js} +1 -1
- package/dist/packem_shared/{watch-loop-CatWMg-1.js → watch-loop-Dj8qZqJl.js} +1 -1
- package/index.d.ts +204 -213
- package/index.js +54 -54
- package/package.json +10 -10
- package/dist/packem_shared/bin-BlwqCNwJ.js +0 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-DVdKvjft.js +0 -1
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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
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
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
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
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
65
|
+
exists: boolean;
|
|
66
|
+
ecosystems: Array<AdvisoryEcosystemStatus>;
|
|
67
|
+
sizeBytes: number;
|
|
68
|
+
schemaVersion: number;
|
|
78
69
|
}
|
|
79
70
|
|
|
80
71
|
export interface AdvisoryEcosystemStatus {
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
72
|
+
name: string;
|
|
73
|
+
advisoryCount: number;
|
|
74
|
+
lastSyncIso: string;
|
|
75
|
+
manifestEtag?: string;
|
|
85
76
|
}
|
|
86
77
|
|
|
87
78
|
export interface AdvisoryIngestOptions {
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
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
|
-
|
|
101
|
-
|
|
91
|
+
advisoriesIngested: number;
|
|
92
|
+
durationMs: number;
|
|
102
93
|
}
|
|
103
94
|
|
|
104
95
|
export interface AdvisoryQuery {
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
96
|
+
ecosystem: string;
|
|
97
|
+
name: string;
|
|
98
|
+
version: string;
|
|
108
99
|
}
|
|
109
100
|
|
|
110
101
|
export interface AdvisoryQueryResult {
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
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
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
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
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
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
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
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
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
201
|
-
|
|
191
|
+
indent?: string;
|
|
192
|
+
lineEnding?: string;
|
|
202
193
|
}
|
|
203
194
|
|
|
204
195
|
export interface ExecOptions {
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
223
|
+
code: number;
|
|
224
|
+
stdout: string;
|
|
225
|
+
stderr: string;
|
|
235
226
|
}
|
|
236
227
|
|
|
237
228
|
export interface InstallOptions {
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
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
|
|
261
|
+
export const NATIVE_BINDING_VERSION: number;
|
|
271
262
|
|
|
272
263
|
export interface NativeSortPackageJsonOptions {
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
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
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
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
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
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
|
-
|
|
301
|
-
|
|
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
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
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
|
-
|
|
356
|
-
|
|
346
|
+
current: number;
|
|
347
|
+
total: number;
|
|
357
348
|
}
|
|
358
349
|
|
|
359
350
|
export interface RemoveOptions {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
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
|
-
|
|
372
|
-
|
|
373
|
-
|
|
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
|
-
|
|
430
|
-
|
|
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
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
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
|
}
|