@visulima/vis 6.4.3 → 6.5.0
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/LICENSE.md +0 -51
- package/README.md +28 -26
- package/dist/bin.js +1 -1
- package/dist/binx.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog2.js +1 -1
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +130 -131
- 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 +12 -28
- package/dist/packem_chunks/handler69.js +37 -12
- package/dist/packem_chunks/handler7.js +1 -1
- package/dist/packem_chunks/handler70.js +1 -1
- package/dist/packem_chunks/handler71.js +1 -1
- package/dist/packem_chunks/handler72.js +311 -10
- package/dist/packem_chunks/handler73.js +10 -133
- package/dist/packem_chunks/handler74.js +133 -23
- package/dist/packem_chunks/handler75.js +23 -323
- 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/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/verify-lockfile.js +1 -1
- package/dist/packem_shared/{advisories-ComDKFn0.js → advisories-DPfjSK6L.js} +1 -1
- package/dist/packem_shared/{affected-selection-k7-THmtd.js → affected-selection-CEH0nr7L.js} +1 -1
- package/dist/packem_shared/{ai-analysis-iVCGoO2F.js → ai-analysis-_x1ObDrt.js} +1 -1
- package/dist/packem_shared/{ai-cache-Cm8zHvmQ.js → ai-cache-CDnuFo2o.js} +1 -1
- package/dist/packem_shared/{ai-fix-CHTnmz2i.js → ai-fix-DFlK168W.js} +1 -1
- package/dist/packem_shared/{bin-CG72ZSeY.js → bin-IOaJHdvM.js} +1 -1
- package/dist/packem_shared/{build-scripts-DPDb-DLA.js → build-scripts-udyGO2o_.js} +1 -1
- package/dist/packem_shared/{dependency-scan-Bc0geC54.js → dependency-scan-BtbCm8-s.js} +1 -1
- package/dist/packem_shared/{detect-CfsIT2G7.js → detect-859xRNqW.js} +1 -1
- package/dist/packem_shared/{docker-BueAqwSk.js → docker-C6KwNzQN.js} +1 -1
- package/dist/packem_shared/{ecosystem-gate-DyK66lq9.js → ecosystem-gate-DOQpvPpW.js} +1 -1
- package/dist/packem_shared/{env-CPXylM7N.js → env-CK7L59IV.js} +1 -1
- package/dist/packem_shared/{env-consistency-CxseteLl.js → env-consistency-CPPb-xcn.js} +1 -1
- package/dist/packem_shared/{failure-log-Cbz1T44K.js → failure-log-DeV1UYXh.js} +1 -1
- package/dist/packem_shared/glob-Cyk1H9ZL-Dl3N7_h2.js +1 -0
- package/dist/packem_shared/{index-BHuu3TgO.js → index-D4AA8lkJ.js} +1 -1
- package/dist/packem_shared/{index-B3QRvCkN.js → index-SMwaTj0E.js} +1 -1
- package/dist/packem_shared/junit-audit-CuJShWCH.js +13 -0
- package/dist/packem_shared/{lifecycle-BYni0Opu.js → lifecycle-Bh4g1Nw5.js} +1 -1
- package/dist/packem_shared/{manifests-Du0wJRef.js → manifests-DwbazsLq.js} +1 -1
- package/dist/packem_shared/{min-release-age-CiA50GFf.js → min-release-age-CdwchJ9y.js} +1 -1
- package/dist/packem_shared/{missing-package-json-NjE_1TeY.js → missing-package-json-C1471EYw.js} +1 -1
- package/dist/packem_shared/{multi-eco-lockfiles-D0eKMXgV.js → multi-eco-lockfiles-BLuR5c-0.js} +1 -1
- package/dist/packem_shared/{native-config-sync-D4SJ-fa4.js → native-config-sync-DfJbQPjx.js} +1 -1
- package/dist/packem_shared/{osv-DioEhctb.js → osv-BOHJQmTi.js} +1 -1
- package/dist/packem_shared/{package-version-DddbcVoc.js → package-version-CKOVJRf5.js} +1 -1
- package/dist/packem_shared/{packument-gS3EJ9mt.js → packument-B9mRtyX_.js} +1 -1
- package/dist/packem_shared/{project-name-filter-BsQlkHRq.js → project-name-filter-D2BnruR3.js} +1 -1
- package/dist/packem_shared/{provenance-D82G8HbO.js → provenance-0_jMjBFB.js} +1 -1
- package/dist/packem_shared/{registry-keys-BMVlUyG-.js → registry-keys-B8v0maMC.js} +1 -1
- package/dist/packem_shared/registry-qnmM5zts.js +85 -0
- package/dist/packem_shared/{renderToString-DR0zDUjh-B1qbi3MN.js → renderToString-DR0zDUjh-CXoq9r5t.js} +1 -1
- package/dist/packem_shared/{resolve-explicit-b0fCeCIq.js → resolve-explicit-h-OAowPZ.js} +1 -1
- package/dist/packem_shared/{run-summary-utils-CeYpgfSb.js → run-summary-utils-B9iTtwWX.js} +1 -1
- package/dist/packem_shared/{runtime-check-Cdbjrzf2.js → runtime-check-BAP6OdMD.js} +1 -1
- package/dist/packem_shared/{s1ngularity-D87NEj5o.js → s1ngularity-BEgUeVZN.js} +1 -1
- package/dist/packem_shared/{scaffold-files-s-ErU4X8.js → scaffold-files-Hxak1SJe.js} +1 -1
- package/dist/packem_shared/{scan-progress-5S0KnK2l.js → scan-progress-DWNXvT3O.js} +1 -1
- package/dist/packem_shared/{selectors-Culvfg-v.js → selectors-a5O0ZJuW.js} +1 -1
- package/dist/packem_shared/{signatures-BzPsTkVB.js → signatures-WNCS80My.js} +1 -1
- package/dist/packem_shared/{spinner-DL3ygOk-.js → spinner-D0API6jF.js} +1 -1
- package/dist/packem_shared/{table-oWe7FQCt.js → table-Bl_qTZDf.js} +1 -1
- package/dist/packem_shared/{tabs-Ca1qLvxz.js → tabs-ApX_AMUl.js} +1 -1
- package/dist/packem_shared/toolchain-De9sHJyE.js +5 -0
- package/dist/packem_shared/{typosquats-D9odf__n.js → typosquats-DxV7JosT.js} +1 -1
- package/dist/packem_shared/{use-measured-height-CQU68ZFv.js → use-measured-height-T4XFSNby.js} +1 -1
- package/dist/packem_shared/{vis-update-app-DGALyGLM.js → vis-update-app-DabaMe5c.js} +1 -1
- package/dist/packem_shared/{vis-user-error-BBIWAg3O.js → vis-user-error-xjSn62_Z.js} +1 -1
- package/dist/packem_shared/{watch-loop-CRGwpGo9.js → watch-loop-B1eIlmKa.js} +1 -1
- package/index.js +26 -26
- package/package.json +11 -11
- package/dist/packem_shared/glob-Cyk1H9ZL-DbuoNR8J.js +0 -1
- package/dist/packem_shared/registry-B5Xr97x2.js +0 -85
- package/dist/packem_shared/toolchain-DV9qhjw1.js +0 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,25 @@
|
|
|
1
|
+
## @visulima/vis [6.5.0](https://github.com/visulima/vis/compare/@visulima/vis@6.4.4...@visulima/vis@6.5.0) (2026-11-03)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **secret-scanner:** gitleaks parity (decoding, archives, composite rules, history fixes) ([#82](https://github.com/visulima/vis/issues/82)) ([69cf04a](https://github.com/visulima/vis/commit/69cf04a8f450e2052d7250a6d42ca0966ee98190))
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
### Dependencies
|
|
9
|
+
|
|
10
|
+
* **@visulima/secret-scanner:** upgraded to 2.1.0
|
|
11
|
+
|
|
12
|
+
## @visulima/vis [6.4.4](https://github.com/visulima/vis/compare/@visulima/vis@6.4.3...@visulima/vis@6.4.4) (2026-11-03)
|
|
13
|
+
|
|
14
|
+
### Bug Fixes
|
|
15
|
+
|
|
16
|
+
* **vis:** discover a root project.json and name the failed nvm check ([#81](https://github.com/visulima/vis/issues/81)) ([6c47e7d](https://github.com/visulima/vis/commit/6c47e7dff965a2ebfceb040afb1b067e389711ce))
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
### Dependencies
|
|
20
|
+
|
|
21
|
+
* **@visulima/task-runner:** upgraded to 3.0.3
|
|
22
|
+
|
|
1
23
|
## @visulima/vis [6.4.3](https://github.com/visulima/vis/compare/@visulima/vis@6.4.2...@visulima/vis@6.4.3) (2026-11-03)
|
|
2
24
|
|
|
3
25
|
### Bug Fixes
|
package/LICENSE.md
CHANGED
|
@@ -5955,57 +5955,6 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
5955
5955
|
|
|
5956
5956
|
---------------------------------------
|
|
5957
5957
|
|
|
5958
|
-
## @visulima/redact
|
|
5959
|
-
License: MIT
|
|
5960
|
-
By: Daniel Bannert
|
|
5961
|
-
Repository: git+https://github.com/visulima/visulima.git
|
|
5962
|
-
|
|
5963
|
-
> MIT License
|
|
5964
|
-
>
|
|
5965
|
-
> Copyright (c) 2026 visulima
|
|
5966
|
-
>
|
|
5967
|
-
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
5968
|
-
> of this software and associated documentation files (the "Software"), to deal
|
|
5969
|
-
> in the Software without restriction, including without limitation the rights
|
|
5970
|
-
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
5971
|
-
> copies of the Software, and to permit persons to whom the Software is
|
|
5972
|
-
> furnished to do so, subject to the following conditions:
|
|
5973
|
-
>
|
|
5974
|
-
> The above copyright notice and this permission notice shall be included in all
|
|
5975
|
-
> copies or substantial portions of the Software.
|
|
5976
|
-
>
|
|
5977
|
-
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
5978
|
-
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
5979
|
-
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
5980
|
-
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
5981
|
-
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
5982
|
-
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
5983
|
-
> SOFTWARE.
|
|
5984
|
-
>
|
|
5985
|
-
>
|
|
5986
|
-
>
|
|
5987
|
-
> # Licenses of bundled dependencies
|
|
5988
|
-
> The published @visulima/redact artifact additionally contains code with the following licenses:
|
|
5989
|
-
> MIT
|
|
5990
|
-
>
|
|
5991
|
-
> # Bundled dependencies:
|
|
5992
|
-
> ## dot-prop
|
|
5993
|
-
> License: MIT
|
|
5994
|
-
> By: Sindre Sorhus
|
|
5995
|
-
> Repository: sindresorhus/dot-prop
|
|
5996
|
-
>
|
|
5997
|
-
> > MIT License
|
|
5998
|
-
> >
|
|
5999
|
-
> > Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (https://sindresorhus.com)
|
|
6000
|
-
> >
|
|
6001
|
-
> > Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6002
|
-
> >
|
|
6003
|
-
> > The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
6004
|
-
> >
|
|
6005
|
-
> > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
6006
|
-
|
|
6007
|
-
---------------------------------------
|
|
6008
|
-
|
|
6009
5958
|
## @visulima/spinner
|
|
6010
5959
|
License: MIT
|
|
6011
5960
|
By: Daniel Bannert
|
package/README.md
CHANGED
|
@@ -58,7 +58,7 @@
|
|
|
58
58
|
|
|
59
59
|
### Workspace orchestration
|
|
60
60
|
|
|
61
|
-
- **Workspace-aware** — discovers projects from `pnpm-workspace.yaml`, `package.json` workspaces, and bun
|
|
61
|
+
- **Workspace-aware** — discovers projects from `pnpm-workspace.yaml`, `package.json` workspaces, and bun. The workspace root is a project only when it has a `project.json`
|
|
62
62
|
- **Topological scheduling** with configurable parallelism and runner-tag filtering
|
|
63
63
|
- **Affected detection** — `vis affected <target>`, plus `${affected.files}` / `$AFFECTED_FILES` token forwarding to the underlying script
|
|
64
64
|
- **Conditional + finally tasks** — `when:` (os/env/branch/ci) and top-level `always: true`
|
|
@@ -212,31 +212,31 @@ When aube is the installer, `vis doctor` surfaces aube's effective hardening pos
|
|
|
212
212
|
|
|
213
213
|
## Commands
|
|
214
214
|
|
|
215
|
-
| Command | Alias | Description
|
|
216
|
-
| ----------------------- | ------ |
|
|
217
|
-
| `vis create [template]` | | Scaffold a new project from templates, npm packages, or git repos
|
|
218
|
-
| `vis generate [name]` | | Scaffold files from an in-repo template (native TS or moon-format)
|
|
219
|
-
| `vis init` | | Initialize vis.config.ts with security defaults
|
|
220
|
-
| `vis run <target>` | | Run a target across workspace projects with caching
|
|
221
|
-
| `vis affected <target>` | | Run tasks only on projects affected by git changes
|
|
215
|
+
| Command | Alias | Description |
|
|
216
|
+
| ----------------------- | ------ | ----------------------------------------------------------------------------------------------- |
|
|
217
|
+
| `vis create [template]` | | Scaffold a new project from templates, npm packages, or git repos |
|
|
218
|
+
| `vis generate [name]` | | Scaffold files from an in-repo template (native TS or moon-format) |
|
|
219
|
+
| `vis init` | | Initialize vis.config.ts with security defaults |
|
|
220
|
+
| `vis run <target>` | | Run a target across workspace projects with caching |
|
|
221
|
+
| `vis affected <target>` | | Run tasks only on projects affected by git changes |
|
|
222
222
|
| `vis ci <targets>` | | One-shot CI entry point: toolchain, install, then affected runs for each comma-separated target |
|
|
223
|
-
| `vis ignore <project>` | | CI build gating for Vercel / Netlify "Ignored Build Step"
|
|
224
|
-
| `vis graph` | | Visualize the project dependency graph
|
|
225
|
-
| `vis check [packages]` | `c` | Check for outdated dependencies in workspace catalogs
|
|
226
|
-
| `vis update [packages]` | `up` | Update packages, GitHub Actions, Dockerfiles, and GitLab CI refs
|
|
227
|
-
| `vis install` | `i` | Install dependencies via the detected package manager
|
|
228
|
-
| `vis info <package>` | `view` | Show npm registry metadata for a package (wraps `npm view` et al.)
|
|
229
|
-
| `vis dlx <package>` | | Execute a remote package without permanent installation
|
|
230
|
-
| `vis audit` | | Audit dependencies for security vulnerabilities
|
|
231
|
-
| `vis clean` | | Remove build artifacts, caches, and node_modules
|
|
232
|
-
| `vis cache <action>` | | Inspect cache (`list`, `size`, `hash`, `why`), or `prune` / `clean`
|
|
233
|
-
| `vis hook <action>` | | Manage git hooks (install, uninstall, migrate)
|
|
234
|
-
| `vis secrets [paths]` | | Scan for hardcoded secrets / credentials (Rust-native)
|
|
235
|
-
| `vis toolchain <cmd>` | | Inspect / delegate to the version manager (proto, mise, fnm, volta…)
|
|
236
|
-
| `vis lint [files]` | | Orchestrate detected source-code linters (oxlint, biome, eslint, stylelint)
|
|
237
|
-
| `vis fmt [files]` | | Orchestrate detected formatters (oxfmt, biome, dprint, prettier)
|
|
238
|
-
| `vis staged` | | Run tasks on staged files (built-in `lint-staged` replacement)
|
|
239
|
-
| `vis migrate <type>` | | Migrate from other tools — now including `gitleaks` and `secretlint`
|
|
223
|
+
| `vis ignore <project>` | | CI build gating for Vercel / Netlify "Ignored Build Step" |
|
|
224
|
+
| `vis graph` | | Visualize the project dependency graph |
|
|
225
|
+
| `vis check [packages]` | `c` | Check for outdated dependencies in workspace catalogs |
|
|
226
|
+
| `vis update [packages]` | `up` | Update packages, GitHub Actions, Dockerfiles, and GitLab CI refs |
|
|
227
|
+
| `vis install` | `i` | Install dependencies via the detected package manager |
|
|
228
|
+
| `vis info <package>` | `view` | Show npm registry metadata for a package (wraps `npm view` et al.) |
|
|
229
|
+
| `vis dlx <package>` | | Execute a remote package without permanent installation |
|
|
230
|
+
| `vis audit` | | Audit dependencies for security vulnerabilities |
|
|
231
|
+
| `vis clean` | | Remove build artifacts, caches, and node_modules |
|
|
232
|
+
| `vis cache <action>` | | Inspect cache (`list`, `size`, `hash`, `why`), or `prune` / `clean` |
|
|
233
|
+
| `vis hook <action>` | | Manage git hooks (install, uninstall, migrate) |
|
|
234
|
+
| `vis secrets [paths]` | | Scan for hardcoded secrets / credentials (Rust-native) |
|
|
235
|
+
| `vis toolchain <cmd>` | | Inspect / delegate to the version manager (proto, mise, fnm, volta…) |
|
|
236
|
+
| `vis lint [files]` | | Orchestrate detected source-code linters (oxlint, biome, eslint, stylelint) |
|
|
237
|
+
| `vis fmt [files]` | | Orchestrate detected formatters (oxfmt, biome, dprint, prettier) |
|
|
238
|
+
| `vis staged` | | Run tasks on staged files (built-in `lint-staged` replacement) |
|
|
239
|
+
| `vis migrate <type>` | | Migrate from other tools — now including `gitleaks` and `secretlint` |
|
|
240
240
|
|
|
241
241
|
For `vis ignore`, see the [command reference](./docs/commands/ignore.mdx) and the [deployment build gating section](./docs/guides/ci-cd.mdx#deployment-build-gating) of the CI/CD guide.
|
|
242
242
|
|
|
@@ -294,7 +294,9 @@ See the [`vis cache`](./docs/commands/cache.mdx) and [`vis run`](./docs/commands
|
|
|
294
294
|
|
|
295
295
|
```sh
|
|
296
296
|
vis secrets # scan the workspace (grouped, colourised output)
|
|
297
|
-
vis secrets --staged # pre-commit mode: scan staged
|
|
297
|
+
vis secrets --staged # pre-commit mode: scan the staged (index) content only
|
|
298
|
+
vis secrets --history # scan git history; each secret reported once
|
|
299
|
+
vis secrets --history --all # ...across every branch and tag
|
|
298
300
|
vis secrets --since main # scan files changed since the `main` branch
|
|
299
301
|
vis secrets --affected # scan only files affected by the current branch
|
|
300
302
|
vis secrets --init # scaffold an initial .secrets-baseline.json
|
package/dist/bin.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import"./packem_shared/compile-cache-DoMHRsRZ.js";import"./packem_shared/bin-
|
|
1
|
+
import"./packem_shared/compile-cache-DoMHRsRZ.js";import"./packem_shared/bin-IOaJHdvM.js";
|
package/dist/binx.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{a as r,x as i,i as c,d as a,r as d}from"./packem_shared/vis-user-error-
|
|
2
|
+
import{a as r,x as i,i as c,d as a,r as d}from"./packem_shared/vis-user-error-xjSn62_Z.js";import{t as n}from"./packem_shared/compile-cache-DoMHRsRZ.js";import{g as o}from"./packem_shared/package-version-CKOVJRf5.js";process.argv.includes("--no-color")&&(process.env.NO_COLOR="1",process.env.FORCE_COLOR="0");process.argv.slice(2).some(s=>s==="--version"||s==="-v"||s==="-V")&&(process.stdout.write(`${o()}
|
|
3
3
|
`),process.exit(0));process.argv.splice(2,0,"dlx");n();const e=r("visx",{packageName:"visx",packageVersion:o()}),p=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(i({concise:c,detailed:p,exitOnError:!1}));e.addCommand(a);d(e);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{F as f}from"../packem_shared/index.server-Ca_EEVfw.js";import{p as i}from"./cli-main.js";import{s as d}from"../packem_shared/scan-progress-
|
|
1
|
+
import{F as f}from"../packem_shared/index.server-Ca_EEVfw.js";import{p as i}from"./cli-main.js";import{s as d}from"../packem_shared/scan-progress-DWNXvT3O.js";import{D as p,s as D}from"../packem_shared/osv-bloom-DU6avR2k.js";const h=o=>o?.security?.audit?.advisories?.bloom??{},u=o=>o>=1e3?`${(o/1e3).toFixed(1)}s`:`${Math.round(o)}ms`,$=o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,b=async({options:o,visConfig:m,workspaceRoot:n})=>{if(!n)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const a=o.format==="json",c=h(m),l=o.source??c.source??p,r=d([{id:"bloom",label:"Sync osv-bloom prefilter"}],{live:!a});let e,t;try{r.start("bloom");const s=Date.now();e=await D({allowedHosts:c.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:l,workspaceRoot:n}),e.upToDate?r.finish("bloom","ok",`up to date · ${u(Date.now()-s)}`):r.finish("bloom","ok",`${e.manifest.entryCount.toLocaleString()} entries · ${$(e.bytesOnDisk)} · ${u(e.durationMs)}`)}catch(s){t=s instanceof Error?s.message:String(s),r.finish("bloom","error",t)}finally{r.stop()}a?process.stdout.write(`${JSON.stringify({bytesOnDisk:e?.bytesOnDisk??0,cacheDir:e?.cacheDir??null,durationMs:e?.durationMs??0,error:t??null,manifest:e?.manifest??null,source:l,upToDate:e?.upToDate??!1},void 0,2)}
|
|
2
2
|
`):e&&(i.info(f(`Cache: ${e.cacheDir}`)),i.info(f(`Built: ${e.manifest.builtAtRfc3339}`)),t||i.success(e.upToDate?"osv-bloom prefilter up to date.":"osv-bloom prefilter synced.")),t&&(process.exitCode=1)},g=b;export{g as advisoriesBloomSyncExecute};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{createRequire as je}from"node:module";import{z as N,e as g,$ as _e,m as V}from"../packem_shared/index-0dnGN3GP.js";import{L as Re,q as X,u as oe,R as C,O as W,X as De,e as J,p as P,g as ce,F as I,f as Oe,G as ie,J as H,h as le,i as D}from"../packem_shared/registry-
|
|
1
|
+
import{createRequire as je}from"node:module";import{z as N,e as g,$ as _e,m as V}from"../packem_shared/index-0dnGN3GP.js";import{L as Re,q as X,u as oe,R as C,O as W,X as De,e as J,p as P,g as ce,F as I,f as Oe,G as ie,J as H,h as le,i as D}from"../packem_shared/registry-qnmM5zts.js";import{L as ue}from"../packem_shared/index-CIdjkZgt.js";import{y as h}from"../packem_shared/isAccessibleSync-DYKTrrvc-CBsMZhj-.js";import{U as A,h as O,e as Le,i as Me}from"../packem_shared/env-CK7L59IV.js";import{f as Ue}from"../packem_shared/removeSync-g1D5kONg-jOsRSIIv.js";import{p as b}from"../packem_shared/package-version-CKOVJRf5.js";import{g as pe,T as fe,l as Wt}from"../packem_shared/npmrc-CIvOb61L.js";import{p as cn}from"../packem_shared/npmrc-CIvOb61L.js";import{O as ge}from"../packem_shared/renderToString-DR0zDUjh-CXoq9r5t.js";import{q as We}from"../packem_shared/table-Bl_qTZDf.js";import{f as Ie}from"../packem_shared/osv-BOHJQmTi.js";import{a as Be}from"../packem_shared/index--eV4qIz5.js";import{a as Z}from"../packem_shared/advisories-DPfjSK6L.js";let Ce;const Ae=t=>(Ce??=je(import.meta.url))(t),j=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,xe=t=>{if(typeof j<"u"&&j.versions&&j.versions.node){const[e,n]=j.versions.node.split(".").map(Number);if(e>22||e===22&&n>=3||e===20&&n>=16)return j.getBuiltinModule(t)}return Ae(t)},{createInterface:Fe}=xe("node:readline"),G=["dependencies","devDependencies","optionalDependencies"],Ge=new Set([...G,"overrides","peerDependencies","pnpm.overrides","resolutions"]),x=t=>{const e=t.lastIndexOf(":");if(e===-1)return;const n=t.slice(e+1);if(Ge.has(n))return{depType:n,relativePath:t.slice(0,e)}},L=t=>{const e=ue("vis",{create:!0,cwd:t});if(!e)throw new Error("Cannot resolve cache directory. Ensure node_modules exists in your workspace. Run your package manager's install command first.");return g(e,"backup")},Y=(t,e)=>e==="bun"?g(t,"package.json"):g(t,"pnpm-workspace.yaml"),K=(t,e)=>{const n=L(t),s=new Set;for(const a of e){const r=x(a.catalogName);r&&s.add(r.relativePath==="."?"package.json":g(r.relativePath,"package.json"))}if(s.size!==0){O(n);for(const a of s){const r=g(t,a);if(h(r)){const o=g(n,a),c=V(o);O(c),A(o,N(r))}}return n}},q=(t,e)=>{const n=Y(t,e),s=L(t);return g(s,`${_e(n)}.bak`)},Ve=(t,e,n)=>{if((e==="npm"||e==="yarn")&&n)return K(t,n);let s;const a=Y(t,e);if(h(a)&&(s=q(t,e),O(V(s)),A(s,N(a))),n){const r=n.filter(o=>x(o.catalogName));r.length>0&&K(t,r)}return s},Xe=t=>{const e=L(t);if(!h(e))return!1;for(const n of Re(e,{includeDirs:!1})){const s=n.path.slice(e.length+1),a=g(t,s);A(a,N(n.path))}return Ue(e),!0},Xt=(t,e)=>{if(e==="npm"||e==="yarn")return Xe(t);const n=Y(t,e),s=q(t,e);if(!h(s))return!1;const a=N(s);return A(n,a),!0},Jt=(t,e)=>{if(e==="npm"||e==="yarn")try{const n=L(t);return h(n)}catch{return!1}try{return h(q(t,e))}catch{return!1}},de=t=>{if(h(t))try{return b(t)}catch{return}},Je=t=>{const e=de(g(t,"package.json"));return!!(e?.workspaces?.catalog||e?.workspaces?.catalogs)},He=t=>{const e=new Map;if(t.workspaces?.catalog&&typeof t.workspaces.catalog=="object"&&e.set("default",new Map(Object.entries(t.workspaces.catalog))),t.workspaces?.catalogs&&typeof t.workspaces.catalogs=="object")for(const[n,s]of Object.entries(t.workspaces.catalogs))s&&typeof s=="object"&&e.set(n,new Map(Object.entries(s)));return e},Ye=t=>{const e=de(g(t,"package.json"));return e?He(e):new Map},qe=(t,e,n)=>{const s=g(t,"package.json"),a=b(s);for(const r of e)if(r.catalogName==="default")a.workspaces?.catalog&&(a.workspaces.catalog[r.packageName]=r.newRange);else{const o=a.workspaces?.catalogs?.[r.catalogName];o&&(o[r.packageName]=r.newRange)}X(s,a,{indent:oe(s,{useEditorconfig:n}),overwrite:!0})},ze=/\*+/g,Qe=/[.+^${}()|[\]\\]/g,ee=new Map,E=(t,e)=>{let n=ee.get(e);if(!n){const a=e.replaceAll(ze,"*").replaceAll(Qe,String.raw`\$&`);n=new RegExp(`^${a.replaceAll("*",".*").replaceAll("?",".")}$`),ee.set(e,n)}return n.test(t)},me=(t,e,n)=>n.some(s=>E(t,s))?!1:e.length>0?e.some(s=>E(t,s)):!0,te=new Map,he=(t,e,n)=>{if(!n)return e;const s=n[t];if(s!==void 0)return s;for(const[a,r]of Object.entries(n))if(a!==t){if(a.startsWith("/")&&a.endsWith("/")){let o=te.get(a);if(o||(o=new RegExp(a.slice(1,-1)),te.set(a,o)),o.test(t))return r}else if(E(t,a))return r}return e},Ze=/^(?:'([^']+)'|"([^"]+)"|([^:\s]+)):\s*(?:'([^']+)'|"([^"]+)"|(\S+))/,Ke=/^catalog:/m,et=/^catalogs:/m,ke=/^['"]|['"]$/g,we=t=>{const e=Ze.exec(t);if(!e)return;const n=e[1]??e[2]??e[3],s=e[4]??e[5]??e[6];if(!(!n||!s))return[n,s]},ye=(t,e,n,s)=>{t.has(e)||t.set(e,new Map);const a=t.get(e);a&&a.set(n,s)},tt=(t,e,n)=>{if(n<2)return;const s=we(e);s&&ye(t,"default",s[0],s[1])},nt=(t,e,n,s)=>{if(n===2&&e.endsWith(":"))return e.slice(0,-1).trim().replaceAll(ke,"");if(n>=4&&s){const a=we(e);a&&ye(t,s,a[0],a[1])}return s},$e=t=>t==="catalog:"||t.startsWith("catalog:")?"catalog":t==="catalogs:"||t.startsWith("catalogs:")?"catalogs":"none",st=t=>{const e=new Map;let n="none",s="";for(const a of t.split(`
|
|
2
2
|
`)){const r=a.trimStart(),o=a.length-r.length;if(o===0&&r.length>0&&!r.startsWith("#")){n=$e(r),n==="catalogs"&&(s="");continue}r.length===0||r.startsWith("#")||(n==="catalog"&&tt(e,r,o),n==="catalogs"&&(s=nt(e,r,o,s)))}return e},at=t=>{const e=g(t,"pnpm-workspace.yaml");if(!h(e))return!1;const n=N(e);return Ke.test(n)||et.test(n)},rt=t=>{const e=g(t,"pnpm-workspace.yaml");if(!h(e))return new Map;const n=N(e);return st(n)},ne=/[.*+?^${}()|[\]\\]/g,ot=(t,e)=>{const n=t.replaceAll(ne,String.raw`\$&`),s=e.replaceAll(ne,String.raw`\$&`);return new RegExp(String.raw`^(?:'${n}'|"${n}"|${n}):\s*['"]?${s}['"]?`)},ct=(t,e,n)=>ot(e,n).test(t),it=t=>{const e=new Map;for(const n of t){e.has(n.catalogName)||e.set(n.catalogName,new Map);const s=e.get(n.catalogName);s&&s.set(n.packageName,{newRange:n.newRange,oldRange:n.currentRange})}return e},se=(t,e,n)=>{if(!n)return t;for(const[s,{newRange:a,oldRange:r}]of n)if(ct(e,s,r))return t.replace(r,a);return t},lt=(t,e,n,s)=>{const a=t.trimStart(),r=t.length-a.length;return a.length===0||a.startsWith("#")?t:e==="catalog"&&r>=2?se(t,a,s.get("default")):e==="catalogs"&&r>=4&&n?se(t,a,s.get(n)):t},ut=(t,e)=>{const n=g(t,"pnpm-workspace.yaml"),a=N(n).split(`
|
|
3
3
|
`),r=it(e);let o="none",c="";const i=[];for(const l of a){const u=l.trimStart(),p=l.length-u.length;p===0&&u.length>0&&!u.startsWith("#")&&(o=$e(u),o==="catalogs"&&(c="")),o==="catalogs"&&p===2&&u.endsWith(":")&&(c=u.slice(0,-1).trim().replaceAll(ke,"")),i.push(lt(l,o,c,r))}A(n,i.join(`
|
|
4
4
|
`))},pt=/github\.com[/:]([\w.-]+)\/([\w.-]+?)(?:\.git|\/|$)/,Ht=async(t,e=1e4,n)=>{const s=[],a=new AbortController,r=setTimeout(()=>{a.abort()},e),o=async u=>{const p=`https://www.npmjs.com/package/${u.packageName}`;try{const f=n?pe(u.packageName,n):{url:"https://registry.npmjs.org"},w=f.url.replace(fe,""),y={Accept:"application/json"};f.token&&(y.Authorization=`Bearer ${f.token}`);const m=await fetch(`${w}/${u.packageName}/latest`,{headers:y,signal:a.signal});if(!m.ok)return{npmUrl:p,packageName:u.packageName};const $=(await m.json()).repository?.url;if(!$)return{npmUrl:p,packageName:u.packageName};const d=pt.exec($);if(!d)return{npmUrl:p,packageName:u.packageName,repoUrl:$};const v=d[1],T=d[2],k=`https://github.com/${v}/${T}/releases/tag/v${u.targetVersion}`;return{npmUrl:p,packageName:u.packageName,releaseUrl:k,repoUrl:`https://github.com/${v}/${T}`}}catch{return{npmUrl:p,packageName:u.packageName}}},c=Math.min(8,t.length);let i=0;const l=async()=>{for(;i<t.length;){const u=i;i+=1,s[u]=await o(t[u])}};try{await Promise.all(Array.from({length:c},()=>l()))}finally{clearTimeout(r)}return s},Yt=t=>JSON.stringify(t,void 0,2),qt=t=>t.map(e=>`${e.packageName} ${e.currentRange} → ${e.newRange}`).join(`
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as r,x as o,d as i,r as n,i as s}from"../packem_shared/vis-user-error-
|
|
1
|
+
import{a as r,x as o,d as i,r as n,i as s}from"../packem_shared/vis-user-error-xjSn62_Z.js";import{e as t}from"../packem_shared/index-D4AA8lkJ.js";import{g as d}from"../packem_shared/package-version-CKOVJRf5.js";const g=async()=>{const e=r("vis",{packageName:"vis",packageVersion:d()}),a=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(o({concise:s,detailed:a,exitOnError:!1})),e.addGlobalOption({description:"Target JS runtime: node (default) or bun. Overrides VIS_RUNTIME; falls back to lockfile detection.",name:"runtime",type:String}),e.addCommand(t),e.addCommand(i),await n(e)};export{g as runExecCli};
|