@visulima/vis 1.0.0-alpha.27 → 1.0.0-alpha.29
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +42 -0
- package/LICENSE.md +3217 -99
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bin.js +468 -364
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/config.js +15 -15
- package/dist/packem_chunks/devtools.js +82 -0
- package/dist/packem_chunks/doctor-probe.js +1 -1
- package/dist/packem_chunks/fix.js +1 -1
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +1 -2
- package/dist/packem_chunks/handler11.js +5 -1
- package/dist/packem_chunks/handler12.js +1 -5
- package/dist/packem_chunks/handler13.js +27 -1
- package/dist/packem_chunks/handler14.js +5 -27
- package/dist/packem_chunks/handler15.js +1 -5
- package/dist/packem_chunks/handler16.js +1 -1
- package/dist/packem_chunks/handler17.js +1 -1
- package/dist/packem_chunks/handler18.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 +5 -1
- package/dist/packem_chunks/handler21.js +2 -5
- package/dist/packem_chunks/handler22.js +2 -2
- package/dist/packem_chunks/handler23.js +1 -2
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +5 -1
- package/dist/packem_chunks/handler26.js +1 -5
- package/dist/packem_chunks/handler27.js +3 -1
- package/dist/packem_chunks/handler28.js +1 -3
- package/dist/packem_chunks/handler29.js +7 -1
- package/dist/packem_chunks/handler3.js +4 -4
- package/dist/packem_chunks/handler30.js +32 -6
- package/dist/packem_chunks/handler31.js +3 -33
- package/dist/packem_chunks/handler32.js +8 -3
- package/dist/packem_chunks/handler33.js +1 -1
- package/dist/packem_chunks/handler34.js +4 -4
- package/dist/packem_chunks/handler35.js +11 -3
- package/dist/packem_chunks/handler36.js +3 -22
- package/dist/packem_chunks/handler37.js +21 -60
- package/dist/packem_chunks/handler38.js +61 -3
- package/dist/packem_chunks/handler39.js +3 -6
- package/dist/packem_chunks/handler4.js +5 -5
- package/dist/packem_chunks/handler40.js +6 -24
- package/dist/packem_chunks/handler41.js +24 -153
- package/dist/packem_chunks/handler42.js +153 -10
- package/dist/packem_chunks/handler43.js +6 -6
- package/dist/packem_chunks/handler44.js +10 -708
- package/dist/packem_chunks/handler45.js +708 -24
- package/dist/packem_chunks/handler46.js +24 -322
- package/dist/packem_chunks/handler47.js +322 -48
- package/dist/packem_chunks/handler48.js +48 -3
- package/dist/packem_chunks/handler49.js +3 -27
- package/dist/packem_chunks/handler5.js +7 -7
- package/dist/packem_chunks/handler50.js +21 -190
- package/dist/packem_chunks/handler51.js +194 -33
- package/dist/packem_chunks/handler52.js +34 -0
- package/dist/packem_chunks/handler6.js +1 -1
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler8.js +1 -1
- package/dist/packem_chunks/handler9.js +1 -1
- package/dist/packem_chunks/heal-accept.js +1 -1
- package/dist/packem_chunks/heal.js +1 -1
- package/dist/packem_chunks/help-command.js +7 -17
- package/dist/packem_chunks/index.js +3 -3
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/list.js +2 -2
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/loader2.js +1 -1
- package/dist/packem_chunks/prune.js +1 -1
- package/dist/packem_chunks/run.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 +2 -2
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_shared/Table-3pFgIUZ2-DABgc6rj.js +12 -0
- package/dist/packem_shared/_commonjsHelpers-CLblCigl.js +1 -0
- package/dist/packem_shared/{advisories-xIOdLbAI.js → advisories-DpgSuWDH.js} +1 -1
- package/dist/packem_shared/{affected-shas-Dm7eqcI8.js → affected-shas-BkXXecyi.js} +1 -1
- package/dist/packem_shared/ai-analysis-KP8b5lc0.js +68 -0
- package/dist/packem_shared/{ai-fix-BlYyz5bI.js → ai-fix-CfFWatGY.js} +5 -5
- package/dist/packem_shared/{applyDefaults-KxZkvlp3.js → applyDefaults-DLvOqXGX.js} +1 -1
- package/dist/packem_shared/{build-scripts-3E2pmscY.js → build-scripts-D-ysm_bS.js} +1 -1
- package/dist/packem_shared/{cyclonedx-B3ILsY74.js → cyclonedx-B04lIvwu.js} +3 -3
- package/dist/packem_shared/{dependency-scan-s2MD0vi-.js → dependency-scan-B9wTcLxf.js} +1 -1
- package/dist/packem_shared/{docker-BynKrOLe.js → docker-DxA80dRx.js} +1 -1
- package/dist/packem_shared/{failure-log-B0Uh-65U.js → failure-log-n3j_-w8s.js} +1 -1
- package/dist/packem_shared/index-BDF8gawl.js +29 -0
- package/dist/packem_shared/{index-B_KtN1MB.js → index-BfG9_znI.js} +1 -1
- package/dist/packem_shared/{lifecycle-CJRNbN3x.js → lifecycle-NHIKDiCh.js} +2 -2
- package/dist/packem_shared/lockfile-CoeFxWAv.js +1 -0
- package/dist/packem_shared/lockfile-DAuTDwow.js +1 -0
- package/dist/packem_shared/{manifests-Z3spBpxv.js → manifests-B7wUR3Rk.js} +1 -1
- package/dist/packem_shared/{min-release-age-aEn0x8Vy.js → min-release-age-YyNI7gqV.js} +1 -1
- package/dist/packem_shared/{native-config-sync-DdhTLlKL.js → native-config-sync-CgRIIRZV.js} +2 -2
- package/dist/packem_shared/{osv-bloom-BJhlc_I2.js → osv-bloom-BQSIHt5h.js} +2 -2
- package/dist/packem_shared/pm-runner-Ta_yz2uP.js +1 -0
- package/dist/packem_shared/{provenance-BuiEsWbI.js → provenance-DoEp2uOo.js} +1 -1
- package/dist/packem_shared/{readFileSync-CGmzMUF2-D6rUjGDn.js → readFileSync-4c_c6Qey-6SWMDNdw.js} +1 -1
- package/dist/packem_shared/{registry-keys-pemEkRM9.js → registry-keys-CD1xHavV.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-RgRrUDZv.js → resolve-explicit-DpSc7RN2.js} +1 -1
- package/dist/packem_shared/{runtime-check-DgXsKCsv.js → runtime-check-Cbtb_Utb.js} +1 -1
- package/dist/packem_shared/s1ngularity-CIX7UcT5.js +1 -0
- package/dist/packem_shared/scan-progress-CTVVf9WW.js +2 -0
- package/dist/packem_shared/{selectors-BE2BCnTR.js → selectors-BU8aTRQm.js} +1 -1
- package/dist/packem_shared/{signatures-LYMy8OR5.js → signatures-BHM7cnqB.js} +1 -1
- package/dist/packem_shared/spinner-C8xs6QZv.js +1 -0
- package/dist/packem_shared/spinners-f91Rbo99-Bjf3NcO0.js +1 -0
- package/dist/packem_shared/tabs-xZkm6Y_J.js +1 -0
- package/dist/packem_shared/{toolchain-Jx2lkAYy.js → toolchain-juKl-WgV.js} +1 -1
- package/dist/packem_shared/typosquats-DRKU6d2S.js +1 -0
- package/dist/packem_shared/use-measured-height-Lea6TCVD.js +1 -0
- package/dist/packem_shared/{verify-C8EAHql6.js → verify-DA80ja1b.js} +1 -1
- package/dist/packem_shared/vis-update-app-BCKzlqj8.js +1 -0
- package/dist/packem_shared/{watch-BSVsZ_1I.js → watch-DdR-pFzX.js} +1 -1
- package/dist/packem_shared/{watch-loop-DLlMLg_J.js → watch-loop-C8csFvRU.js} +2 -2
- package/index.d.ts +201 -201
- package/index.js +567 -751
- package/package.json +13 -13
- package/dist/packem_shared/ai-analysis-Csn82p17.js +0 -68
- package/dist/packem_shared/index-efSniSRN.js +0 -29
- package/dist/packem_shared/index.server-B7ETiT4C.js +0 -2
- package/dist/packem_shared/lockfile-BG1HvBzH.js +0 -1
- package/dist/packem_shared/pm-runner-BwX5AL3W.js +0 -1
- package/dist/packem_shared/s1ngularity-Bs9fUf3q.js +0 -1
- package/dist/packem_shared/scan-progress-DjPT66jy.js +0 -2
- package/dist/packem_shared/typosquats-znskIR5j.js +0 -1
- package/dist/packem_shared/use-measured-height-DjYgUOKk.js +0 -1
- package/dist/packem_shared/vis-update-app-qhQPV97i.js +0 -1
package/index.d.ts
CHANGED
|
@@ -7,43 +7,43 @@
|
|
|
7
7
|
* the bitset.
|
|
8
8
|
*/
|
|
9
9
|
export declare class OsvBloomHandle {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
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
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
65
|
+
exists: boolean
|
|
66
|
+
ecosystems: Array<AdvisoryEcosystemStatus>
|
|
67
|
+
sizeBytes: number
|
|
68
|
+
schemaVersion: number
|
|
69
69
|
}
|
|
70
70
|
|
|
71
71
|
export interface AdvisoryEcosystemStatus {
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
72
|
+
name: string
|
|
73
|
+
advisoryCount: number
|
|
74
|
+
lastSyncIso: string
|
|
75
|
+
manifestEtag?: string
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
export interface AdvisoryIngestOptions {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
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
|
-
|
|
92
|
-
|
|
91
|
+
advisoriesIngested: number
|
|
92
|
+
durationMs: number
|
|
93
93
|
}
|
|
94
94
|
|
|
95
95
|
export interface AdvisoryQuery {
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
96
|
+
ecosystem: string
|
|
97
|
+
name: string
|
|
98
|
+
version: string
|
|
99
99
|
}
|
|
100
100
|
|
|
101
101
|
export interface AdvisoryQueryResult {
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
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
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
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
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
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
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
192
|
-
|
|
191
|
+
indent?: string
|
|
192
|
+
lineEnding?: string
|
|
193
193
|
}
|
|
194
194
|
|
|
195
195
|
export interface ExecOptions {
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
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
|
-
|
|
224
|
-
|
|
225
|
-
|
|
223
|
+
code: number
|
|
224
|
+
stdout: string
|
|
225
|
+
stderr: string
|
|
226
226
|
}
|
|
227
227
|
|
|
228
228
|
export interface InstallOptions {
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
229
|
+
frozenLockfile: boolean
|
|
230
|
+
prod: boolean
|
|
231
|
+
dev: boolean
|
|
232
|
+
noOptional: boolean
|
|
233
|
+
force: boolean
|
|
234
|
+
ignoreScripts: boolean
|
|
235
|
+
lockfileOnly: boolean
|
|
236
|
+
offline: boolean
|
|
237
|
+
silent: boolean
|
|
238
|
+
recursive: boolean
|
|
239
|
+
workspaceRoot: boolean
|
|
240
|
+
filter: Array<string>
|
|
241
241
|
}
|
|
242
242
|
|
|
243
243
|
/**
|
|
@@ -256,38 +256,38 @@ export interface InstallOptions {
|
|
|
256
256
|
* 5 — added osv-bloom prefilter: `osv_bloom_decode`, `osv_bloom_probe`,
|
|
257
257
|
* `osv_bloom_probe_batch`. Backed by `blake3` keyed-hash double-hashing.
|
|
258
258
|
*/
|
|
259
|
-
export const NATIVE_BINDING_VERSION: number
|
|
259
|
+
export const NATIVE_BINDING_VERSION: number
|
|
260
260
|
|
|
261
261
|
export interface NativeSortPackageJsonOptions {
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
262
|
+
/** Enable formatted output with newlines (default: true) */
|
|
263
|
+
pretty?: boolean
|
|
264
|
+
/** Alphabetize script commands (default: false) */
|
|
265
|
+
sortScripts?: boolean
|
|
266
266
|
}
|
|
267
267
|
|
|
268
268
|
export interface NativeVulnerabilityJs {
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
269
|
+
id: string
|
|
270
|
+
aliases: Array<string>
|
|
271
|
+
/** Normalized severity: "CRITICAL" | "HIGH" | "MODERATE" | "LOW" | "UNKNOWN". */
|
|
272
|
+
severity: string
|
|
273
|
+
summary: string
|
|
274
|
+
fixedVersions: Array<string>
|
|
275
|
+
cvssScore?: number
|
|
276
276
|
}
|
|
277
277
|
|
|
278
278
|
export interface OsvBloomBatchHit {
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
279
|
+
/**
|
|
280
|
+
* Index into the input batch array. Lets JS reconstruct which
|
|
281
|
+
* lockfile row triggered the hit without re-walking the inputs.
|
|
282
|
+
*/
|
|
283
|
+
index: number
|
|
284
|
+
name: string
|
|
285
|
+
version: string
|
|
286
286
|
}
|
|
287
287
|
|
|
288
288
|
export interface OsvBloomBatchQuery {
|
|
289
|
-
|
|
290
|
-
|
|
289
|
+
name: string
|
|
290
|
+
version: string
|
|
291
291
|
}
|
|
292
292
|
|
|
293
293
|
/**
|
|
@@ -295,7 +295,7 @@ export interface OsvBloomBatchQuery {
|
|
|
295
295
|
* Returns an opaque handle; reuse it for every probe call until the
|
|
296
296
|
* JS-side cache invalidates.
|
|
297
297
|
*/
|
|
298
|
-
export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
|
|
298
|
+
export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle
|
|
299
299
|
|
|
300
300
|
/**
|
|
301
301
|
* Probe a single `(name, version)` pair. Returns `true` when the pair
|
|
@@ -307,7 +307,7 @@ export declare function osvBloomDecode(bytes: Buffer): OsvBloomHandle;
|
|
|
307
307
|
* unbounded ranges still match. Unparseable versions probe only the
|
|
308
308
|
* wildcard bucket.
|
|
309
309
|
*/
|
|
310
|
-
export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
|
|
310
|
+
export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, version: string): boolean
|
|
311
311
|
|
|
312
312
|
/**
|
|
313
313
|
* Batch variant. Returns only the hits, with their original index — the
|
|
@@ -315,20 +315,20 @@ export declare function osvBloomProbe(handle: OsvBloomHandle, name: string, vers
|
|
|
315
315
|
* (`Vec<bool>` of length N) would dominate the cost. Order of returned
|
|
316
316
|
* hits matches input order.
|
|
317
317
|
*/
|
|
318
|
-
export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit
|
|
318
|
+
export declare function osvBloomProbeBatch(handle: OsvBloomHandle, queries: Array<OsvBloomBatchQuery>): Array<OsvBloomBatchHit>
|
|
319
319
|
|
|
320
320
|
export interface OutdatedOptions {
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
321
|
+
packages: Array<string>
|
|
322
|
+
long: boolean
|
|
323
|
+
format: string
|
|
324
|
+
recursive: boolean
|
|
325
|
+
filter: Array<string>
|
|
326
|
+
workspaceRoot: boolean
|
|
327
|
+
prod: boolean
|
|
328
|
+
dev: boolean
|
|
329
|
+
noOptional: boolean
|
|
330
|
+
compatible: boolean
|
|
331
|
+
global: boolean
|
|
332
332
|
}
|
|
333
333
|
|
|
334
334
|
/**
|
|
@@ -338,33 +338,33 @@ export interface OutdatedOptions {
|
|
|
338
338
|
* pre-commit's behavior of treating "no shebang" as "no interpreter
|
|
339
339
|
* tags" rather than as an error.
|
|
340
340
|
*/
|
|
341
|
-
export declare function parseShebang(path: string): Array<string
|
|
341
|
+
export declare function parseShebang(path: string): Array<string>
|
|
342
342
|
|
|
343
343
|
export interface ProgressPayload {
|
|
344
|
-
|
|
345
|
-
|
|
344
|
+
current: number
|
|
345
|
+
total: number
|
|
346
346
|
}
|
|
347
347
|
|
|
348
348
|
export interface RemoveOptions {
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
349
|
+
packages: Array<string>
|
|
350
|
+
saveDev: boolean
|
|
351
|
+
global: boolean
|
|
352
|
+
recursive: boolean
|
|
353
|
+
workspaceRoot: boolean
|
|
354
|
+
filter: Array<string>
|
|
355
355
|
}
|
|
356
356
|
|
|
357
|
-
export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
|
|
357
|
+
export declare function resolveAdd(pm: string, version: string, opts: AddOptions): ResolvedCommand
|
|
358
358
|
|
|
359
359
|
export interface ResolvedCommand {
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
360
|
+
bin: string
|
|
361
|
+
args: Array<string>
|
|
362
|
+
warnings: Array<string>
|
|
363
363
|
}
|
|
364
364
|
|
|
365
|
-
export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
|
|
365
|
+
export declare function resolveDedupe(pm: string, version: string, check: boolean): ResolvedCommand
|
|
366
366
|
|
|
367
|
-
export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
|
|
367
|
+
export declare function resolveDlx(pm: string, version: string, opts: DlxOptions): ResolvedCommand
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Resolves `.editorconfig` defaults for `file_path` using the spec-compliant
|
|
@@ -374,27 +374,27 @@ export declare function resolveDlx(pm: string, version: string, opts: DlxOptions
|
|
|
374
374
|
* configured. Parse / IO failures collapse to an empty result so callers can
|
|
375
375
|
* fall back to content sniffing without try/catch noise.
|
|
376
376
|
*/
|
|
377
|
-
export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
|
|
377
|
+
export declare function resolveEditorconfigDefaults(filePath: string): EditorconfigDefaults
|
|
378
378
|
|
|
379
|
-
export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
|
|
379
|
+
export declare function resolveExec(pm: string, version: string, opts: ExecOptions): ResolvedCommand
|
|
380
380
|
|
|
381
|
-
export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
|
|
381
|
+
export declare function resolveInstall(pm: string, version: string, opts: InstallOptions): ResolvedCommand
|
|
382
382
|
|
|
383
|
-
export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand
|
|
383
|
+
export declare function resolveLink(pm: string, version: string, target?: string | undefined | null): ResolvedCommand
|
|
384
384
|
|
|
385
|
-
export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
|
|
385
|
+
export declare function resolveOutdated(pm: string, version: string, opts: OutdatedOptions): ResolvedCommand
|
|
386
386
|
|
|
387
|
-
export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand
|
|
387
|
+
export declare function resolvePmCommand(pm: string, version: string, subcommand: string, extraArgs: Array<string>): ResolvedCommand
|
|
388
388
|
|
|
389
|
-
export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
|
|
389
|
+
export declare function resolveRemove(pm: string, version: string, opts: RemoveOptions): ResolvedCommand
|
|
390
390
|
|
|
391
|
-
export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand
|
|
391
|
+
export declare function resolveUnlink(pm: string, version: string, packages: Array<string>, recursive: boolean): ResolvedCommand
|
|
392
392
|
|
|
393
|
-
export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
|
|
393
|
+
export declare function resolveWhy(pm: string, version: string, opts: WhyOptions): ResolvedCommand
|
|
394
394
|
|
|
395
|
-
export declare function sortPackageJsonString(contents: string): string
|
|
395
|
+
export declare function sortPackageJsonString(contents: string): string
|
|
396
396
|
|
|
397
|
-
export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
|
|
397
|
+
export declare function sortPackageJsonStringWithOptions(contents: string, options: NativeSortPackageJsonOptions): string
|
|
398
398
|
|
|
399
399
|
/**
|
|
400
400
|
* Classifies a single file path using `prek-identify`. Returns the set of
|
|
@@ -403,7 +403,7 @@ export declare function sortPackageJsonStringWithOptions(contents: string, optio
|
|
|
403
403
|
* don't need try/catch — the vis hook runtime treats "unclassified" and
|
|
404
404
|
* "no tags" identically.
|
|
405
405
|
*/
|
|
406
|
-
export declare function tagsFromPath(path: string): Array<string
|
|
406
|
+
export declare function tagsFromPath(path: string): Array<string>
|
|
407
407
|
|
|
408
408
|
/**
|
|
409
409
|
* Batch variant of [`tags_from_path`]. Returns one tag list per input
|
|
@@ -412,25 +412,25 @@ export declare function tagsFromPath(path: string): Array<string>;
|
|
|
412
412
|
* (the same behavior pre-commit applies when stat-ing a deleted staged
|
|
413
413
|
* file mid-run).
|
|
414
414
|
*/
|
|
415
|
-
export declare function tagsFromPaths(paths: Array<string>): Array<Array<string
|
|
415
|
+
export declare function tagsFromPaths(paths: Array<string>): Array<Array<string>>
|
|
416
416
|
|
|
417
417
|
/**
|
|
418
418
|
* Finds the full path to a binary using `which`-style lookup.
|
|
419
419
|
* Returns None if not found.
|
|
420
420
|
*/
|
|
421
|
-
export declare function whichBin(name: string): string | null
|
|
421
|
+
export declare function whichBin(name: string): string | null
|
|
422
422
|
|
|
423
423
|
export interface WhyOptions {
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
424
|
+
packages: Array<string>
|
|
425
|
+
json: boolean
|
|
426
|
+
long: boolean
|
|
427
|
+
parseable: boolean
|
|
428
|
+
recursive: boolean
|
|
429
|
+
dev: boolean
|
|
430
|
+
prod: boolean
|
|
431
|
+
noOptional: boolean
|
|
432
|
+
global: boolean
|
|
433
|
+
/** Depth limit. Uses Option<i32> directly (napi supports it). */
|
|
434
|
+
depth?: number
|
|
435
|
+
filter: Array<string>
|
|
436
436
|
}
|