@visulima/vis 1.0.0-alpha.42 → 1.0.0-alpha.44
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 +54 -0
- package/LICENSE.md +256 -0
- package/bin/resolve-binary.mjs +85 -0
- package/bin/vis.mjs +76 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1 -2
- package/dist/binx.js +1 -1
- package/dist/config/index.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +8 -0
- package/dist/packem_chunks/bloom-status.js +1 -1
- package/dist/packem_chunks/bloom-sync.js +1 -1
- package/dist/packem_chunks/catalog.js +113 -0
- package/dist/packem_chunks/cli-exec.js +1 -1
- package/dist/packem_chunks/cli-main.js +297 -434
- package/dist/packem_chunks/detect.js +3 -3
- package/dist/packem_chunks/dispatch.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 +5 -1
- package/dist/packem_chunks/handler11.js +1 -5
- package/dist/packem_chunks/handler12.js +27 -1
- package/dist/packem_chunks/handler13.js +5 -27
- package/dist/packem_chunks/handler14.js +1 -5
- package/dist/packem_chunks/handler15.js +1 -1
- 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 +5 -1
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -5
- package/dist/packem_chunks/handler21.js +2 -2
- package/dist/packem_chunks/handler22.js +14 -2
- package/dist/packem_chunks/handler23.js +1 -5
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -1
- package/dist/packem_chunks/handler26.js +5 -1
- package/dist/packem_chunks/handler27.js +1 -5
- package/dist/packem_chunks/handler28.js +3 -1
- package/dist/packem_chunks/handler29.js +1 -3
- package/dist/packem_chunks/handler3.js +4 -1
- package/dist/packem_chunks/handler30.js +1 -1
- package/dist/packem_chunks/handler31.js +2 -1
- package/dist/packem_chunks/handler32.js +2 -2
- package/dist/packem_chunks/handler33.js +2 -2
- package/dist/packem_chunks/handler34.js +3 -2
- package/dist/packem_chunks/handler35.js +6 -3
- package/dist/packem_chunks/handler36.js +1 -6
- package/dist/packem_chunks/handler37.js +42 -1
- package/dist/packem_chunks/handler38.js +8 -42
- package/dist/packem_chunks/handler39.js +9 -8
- package/dist/packem_chunks/handler4.js +4 -4
- package/dist/packem_chunks/handler40.js +75 -9
- package/dist/packem_chunks/handler41.js +5 -75
- package/dist/packem_chunks/handler42.js +4 -5
- package/dist/packem_chunks/handler43.js +3 -4
- package/dist/packem_chunks/handler44.js +2 -3
- package/dist/packem_chunks/handler45.js +1 -2
- package/dist/packem_chunks/handler46.js +1 -1
- package/dist/packem_chunks/handler47.js +1 -1
- package/dist/packem_chunks/handler48.js +3 -1
- package/dist/packem_chunks/handler49.js +1 -3
- package/dist/packem_chunks/handler5.js +6 -4
- package/dist/packem_chunks/handler50.js +7 -1
- package/dist/packem_chunks/handler51.js +32 -6
- package/dist/packem_chunks/handler52.js +3 -33
- package/dist/packem_chunks/handler53.js +8 -3
- package/dist/packem_chunks/handler54.js +2 -6
- package/dist/packem_chunks/handler55.js +1 -4
- package/dist/packem_chunks/handler56.js +12 -1
- package/dist/packem_chunks/handler57.js +5 -12
- package/dist/packem_chunks/handler58.js +11 -5
- package/dist/packem_chunks/handler59.js +3 -11
- package/dist/packem_chunks/handler6.js +8 -6
- package/dist/packem_chunks/handler60.js +22 -3
- package/dist/packem_chunks/handler61.js +60 -21
- package/dist/packem_chunks/handler62.js +3 -61
- package/dist/packem_chunks/handler63.js +6 -3
- package/dist/packem_chunks/handler64.js +9 -6
- package/dist/packem_chunks/handler65.js +2 -9
- package/dist/packem_chunks/handler66.js +13 -13
- package/dist/packem_chunks/handler67.js +5 -5
- package/dist/packem_chunks/handler68.js +1 -1
- package/dist/packem_chunks/handler69.js +4 -4
- package/dist/packem_chunks/handler7.js +1 -8
- package/dist/packem_chunks/handler70.js +16 -17
- package/dist/packem_chunks/handler71.js +12 -12
- package/dist/packem_chunks/handler72.js +5 -5
- package/dist/packem_chunks/handler73.js +7 -7
- package/dist/packem_chunks/handler74.js +3 -3
- package/dist/packem_chunks/handler75.js +3 -3
- package/dist/packem_chunks/handler76.js +63 -63
- package/dist/packem_chunks/handler77.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 +1 -1
- package/dist/packem_chunks/index2.js +2 -2
- package/dist/packem_chunks/keys-refresh.js +1 -1
- package/dist/packem_chunks/lean.js +3 -3
- package/dist/packem_chunks/list.js +1 -1
- package/dist/packem_chunks/loader.js +1 -1
- package/dist/packem_chunks/loader2.js +1 -1
- package/dist/packem_chunks/orchestrator.js +19 -19
- 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 +1 -1
- package/dist/packem_chunks/ts-loader.js +22 -2
- package/dist/packem_chunks/verify-lockfile.js +1 -1
- package/dist/packem_chunks/version-resolver.js +1 -1
- package/dist/packem_shared/{advisories-aiDtubZQ.js → advisories-CefYKEPe.js} +1 -1
- package/dist/packem_shared/{affected-shas-C1XuRlvo.js → affected-shas-CwRY5aoc.js} +1 -1
- package/dist/packem_shared/{ai-analysis-CubpCxZJ.js → ai-analysis-CO6S0afy.js} +7 -7
- package/dist/packem_shared/{ai-fix-Btd5AnSr.js → ai-fix-CI0Vvqld.js} +9 -9
- package/dist/packem_shared/augment-DaSS2Lgs.js +4 -0
- package/dist/packem_shared/bin-P6Q5tKrP.js +1 -0
- package/dist/packem_shared/{build-scripts-Doxce2VM.js → build-scripts-MTSK6TNr.js} +1 -1
- package/dist/packem_shared/{command-runtime-RiCMa2C8.js → command-runtime-BE-vKsGH.js} +1 -1
- package/dist/packem_shared/{cyclonedx-NUJ9R2GQ.js → cyclonedx-BeUmPgfO.js} +1 -1
- package/dist/packem_shared/dependency-scan-DpOFiZuI.js +1 -0
- package/dist/packem_shared/{docker-DKlF-gk3.js → docker-CViFYtmM.js} +1 -1
- package/dist/packem_shared/env-C2ZCnfP_.js +27 -0
- package/dist/packem_shared/failure-log-jFfZRJK9.js +2 -0
- package/dist/packem_shared/glob-fqg4KepW-1S3z30c8.js +1 -0
- package/dist/packem_shared/index-B0EsgdzO.js +1 -0
- package/dist/packem_shared/index-CE6MsgcV.js +22 -0
- package/dist/packem_shared/index-CQjzW7m8.js +1 -0
- package/dist/packem_shared/{index-Cb4x6lWY.js → index-Cg0IHaFI.js} +1 -1
- package/dist/packem_shared/{index-CPhv-r4c.js → index-D7EZ612R.js} +13 -13
- package/dist/packem_shared/{lifecycle-D5roTh0a.js → lifecycle-Dyb47wbD.js} +1 -1
- package/dist/packem_shared/{lockfile-DIGyLfmF.js → lockfile-C1qCKGH6.js} +1 -1
- package/dist/packem_shared/{manifests-pLwnVmCN.js → manifests-WBnsV_Eb.js} +1 -1
- package/dist/packem_shared/{min-release-age-pUAqTiv3.js → min-release-age-C71MO72F.js} +1 -1
- package/dist/packem_shared/missing-package-json-CTF71tE5.js +1 -0
- package/dist/packem_shared/{native-config-sync-4K9wWTj5.js → native-config-sync-BFDVK9LH.js} +4 -4
- package/dist/packem_shared/{osv-bloom-OuTfu_LE.js → osv-bloom-BsQ-aFiM.js} +1 -1
- package/dist/packem_shared/packument-DquNPIq9.js +1 -0
- package/dist/packem_shared/{pm-runner-Dws_Bw1y.js → pm-runner-D4jM58Oz.js} +1 -1
- package/dist/packem_shared/prompt-DjXHVgYU.js +1 -0
- package/dist/packem_shared/provenance-DIq8KyBV.js +1 -0
- package/dist/packem_shared/readJsonSync-CvkZyKmL-ihoybKvs.js +1 -0
- package/dist/packem_shared/registry-keys-C8K11ets.js +1 -0
- package/dist/packem_shared/resolve-explicit-Dr4kIybR.js +5 -0
- package/dist/packem_shared/{resolve-runtime-CJSWV-K8.js → resolve-runtime-Tx0bvg0h.js} +1 -1
- package/dist/packem_shared/run-file-DD7Ne23Z.js +1 -0
- package/dist/packem_shared/{runtime-check-0lUJvgKt.js → runtime-check-BXehSP06.js} +1 -1
- package/dist/packem_shared/s1ngularity-CtMmtXJo.js +1 -0
- package/dist/packem_shared/scan-progress-D4yywI6P.js +2 -0
- package/dist/packem_shared/{selectors-UmnAuc26.js → selectors-D4iCvITE.js} +1 -1
- package/dist/packem_shared/{signatures-BOUhghTv.js → signatures-CE8OAK-i.js} +2 -2
- package/dist/packem_shared/spinner-DuJJvFTl.js +1 -0
- package/dist/packem_shared/tabs-CgxCvjCY.js +1 -0
- package/dist/packem_shared/target-merge-DOm6h6tW.js +11 -0
- package/dist/packem_shared/target-options-CR0OuYJr.js +1 -0
- package/dist/packem_shared/toolchain-C44mPKPu.js +5 -0
- package/dist/packem_shared/{typosquats-DBOvXwph.js → typosquats-CQz-1Y6K.js} +1 -1
- package/dist/packem_shared/use-measured-height-XK9YSwtv.js +1 -0
- package/dist/packem_shared/utils-CRueU43T.js +1 -0
- package/dist/packem_shared/verify-DStfg3nb.js +1 -0
- package/dist/packem_shared/vis-update-app-Cpme_3Du.js +1 -0
- package/dist/packem_shared/{watch-Bkp_AAbc.js → watch-BXNI7dC6.js} +1 -1
- package/dist/packem_shared/watch-loop-JfGKIgKB.js +11 -0
- package/dist/packem_shared/window-ops-DDePlWLV.js +2 -0
- package/dist/runtime/preload.js +1 -1
- package/index.js +52 -52
- package/package.json +17 -13
- package/dist/packem_chunks/config.js +0 -18
- package/dist/packem_shared/CONFIG_FILES-MsOntfYT.js +0 -1
- package/dist/packem_shared/augment-8fIWWGSc.js +0 -3
- package/dist/packem_shared/bin-CnDBuLh3.js +0 -2
- package/dist/packem_shared/dependency-scan-B0HV_qeB.js +0 -1
- package/dist/packem_shared/failure-log-C7r6UZLP.js +0 -2
- package/dist/packem_shared/glob-fqg4KepW-7Bs2kZuM.js +0 -1
- package/dist/packem_shared/index-BKFEWXU_.js +0 -1
- package/dist/packem_shared/index-OQZQyN5R.js +0 -19
- package/dist/packem_shared/missing-package-json-DhYzuKhD.js +0 -1
- package/dist/packem_shared/provenance-C0P-UYOM.js +0 -1
- package/dist/packem_shared/readJsonSync-CvkZyKmL-CY7PZob_.js +0 -4
- package/dist/packem_shared/registry-keys-D4chF-Wj.js +0 -1
- package/dist/packem_shared/resolve-explicit-Cgheka3B.js +0 -5
- package/dist/packem_shared/run-file-B4TqKa0X.js +0 -1
- package/dist/packem_shared/s1ngularity-Du1NnSFP.js +0 -1
- package/dist/packem_shared/scan-progress-CN9ONR0y.js +0 -2
- package/dist/packem_shared/spinner-lhXugSx3.js +0 -1
- package/dist/packem_shared/tabs-DTiU3usb.js +0 -1
- package/dist/packem_shared/target-options-ChWcK60i.js +0 -1
- package/dist/packem_shared/toolchain-DyCKnGch.js +0 -5
- package/dist/packem_shared/use-measured-height-CK2Co3XI.js +0 -1
- package/dist/packem_shared/utils-Cxree603.js +0 -1
- package/dist/packem_shared/verify-CVPYlUrF.js +0 -1
- package/dist/packem_shared/vis-update-app-DtHkwBca.js +0 -1
- package/dist/packem_shared/watch-loop-D9zbXzRd.js +0 -11
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,57 @@
|
|
|
1
|
+
## @visulima/vis [1.0.0-alpha.44](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.43...@visulima/vis@1.0.0-alpha.44) (2026-06-23)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **vis:** native Rust CLI front-end + nub-parity for x/run ([#697](https://github.com/visulima/visulima/issues/697)) ([88d505b](https://github.com/visulima/visulima/commit/88d505bef74f08a895849e41f26682e684aa67be))
|
|
6
|
+
* **vis:** task-runner feedback fixes + CI hook skip ([#696](https://github.com/visulima/visulima/issues/696)) ([450412c](https://github.com/visulima/visulima/commit/450412cb92eee1397edaa46447128b1487d06369))
|
|
7
|
+
|
|
8
|
+
### Bug Fixes
|
|
9
|
+
|
|
10
|
+
* **vis:** group failed tasks in ci log output ([0fb8678](https://github.com/visulima/visulima/commit/0fb8678d9b66c6b587fb113310cfe9abce9aa6d0))
|
|
11
|
+
* **vis:** unbreak full build — exclude variable-import modules from dynamic-import-vars ([#712](https://github.com/visulima/visulima/issues/712)) ([29d46eb](https://github.com/visulima/visulima/commit/29d46eb719de11ab8f09e5303748264607b04fe3)), closes [#697](https://github.com/visulima/visulima/issues/697) [#697](https://github.com/visulima/visulima/issues/697) [#697](https://github.com/visulima/visulima/issues/697) [#697](https://github.com/visulima/visulima/issues/697)
|
|
12
|
+
* **vis:** wrap native crate-type array to satisfy toml lint rule ([9470654](https://github.com/visulima/visulima/commit/94706547342291197afb8babd5d2929ae9e0bb9b))
|
|
13
|
+
|
|
14
|
+
### Documentation
|
|
15
|
+
|
|
16
|
+
* **task-runner,vis:** add nub MIT attribution to ported native code ([9305f59](https://github.com/visulima/visulima/commit/9305f592da38dd13a179ef1af75fb0c8f5d84693))
|
|
17
|
+
|
|
18
|
+
### Tests
|
|
19
|
+
|
|
20
|
+
* **vis,task-runner:** address review on native benches ([f89dd33](https://github.com/visulima/visulima/commit/f89dd335d103744308a48568e49577d2019aca35))
|
|
21
|
+
* **vis:** add criterion transpile bench + harness docs ([fb34159](https://github.com/visulima/visulima/commit/fb341597b498916afb398bfc1be66944f2967c98)), closes [nubjs/nub#17](https://github.com/nubjs/nub/issues/17)
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
### Dependencies
|
|
25
|
+
|
|
26
|
+
* **@visulima/task-runner:** upgraded to 1.0.0-alpha.25
|
|
27
|
+
|
|
28
|
+
## @visulima/vis [1.0.0-alpha.43](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.42...@visulima/vis@1.0.0-alpha.43) (2026-06-20)
|
|
29
|
+
|
|
30
|
+
### Features
|
|
31
|
+
|
|
32
|
+
* **vis:** first-run info gate for visx/dlx ([53dd31e](https://github.com/visulima/visulima/commit/53dd31e39659d1281d8e94e174475e209bcb8b11))
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* **vis,secret-scanner:** windows absolute-path handling ([b1a3d67](https://github.com/visulima/visulima/commit/b1a3d673b3fe4f918c44b1cd33b62bf15d3687fc))
|
|
37
|
+
* **vis:** address dlx first-run gate review comments ([6b833d1](https://github.com/visulima/visulima/commit/6b833d105f0827a3a41140e646d3b548509ccd2d))
|
|
38
|
+
* **vis:** align native binding version check with package version ([4075bae](https://github.com/visulima/visulima/commit/4075bae7c37a4e34fc1416cba7bad1436e3f8090))
|
|
39
|
+
* **vis:** expand windows 8.3 short names in workspace containment ([dbfe9b1](https://github.com/visulima/visulima/commit/dbfe9b152154b1f7526d7e0cbfd48cd0d94e6cc0))
|
|
40
|
+
* **vis:** fix Windows-only release test failures ([158a6a3](https://github.com/visulima/visulima/commit/158a6a39a69d3a59bba9503c1fbcde19048378fc))
|
|
41
|
+
* **vis:** harden dlx first-run gate per review ([a370a57](https://github.com/visulima/visulima/commit/a370a579c4df1f6852bd9591701ce85ff674401c))
|
|
42
|
+
|
|
43
|
+
### Code Refactoring
|
|
44
|
+
|
|
45
|
+
* **vis:** humanizer formatBytes + remaining dlx gate review nits ([7e1495b](https://github.com/visulima/visulima/commit/7e1495b9ca962d2e4b4adbabf2f150830a1d3bda))
|
|
46
|
+
|
|
47
|
+
### Tests
|
|
48
|
+
|
|
49
|
+
* **vis:** cover dlx gatherPackageInfo ([f998e0b](https://github.com/visulima/visulima/commit/f998e0b3bb66042aac60eff312e948ab6604b837))
|
|
50
|
+
* **vis:** make 8.3 containment mock separator-agnostic ([c2cf820](https://github.com/visulima/visulima/commit/c2cf8208e43ad38f526b16f0546e5c45fddc94d6))
|
|
51
|
+
* **vis:** make release path/shell-quote assertions OS-aware ([8280b28](https://github.com/visulima/visulima/commit/8280b288ccf63fe7181ace194c22390501d5e7b1))
|
|
52
|
+
* **vis:** skip flaky windows-only release/staged suites with TODO ([c568088](https://github.com/visulima/visulima/commit/c5680882df82341ce2cca220972a09e1b030f2de))
|
|
53
|
+
* **vis:** skip windows-deadlock release/commands suites ([1d48a62](https://github.com/visulima/visulima/commit/1d48a6272228629d95ec9620c6b7d0860a184cd3))
|
|
54
|
+
|
|
1
55
|
## @visulima/vis [1.0.0-alpha.42](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.41...@visulima/vis@1.0.0-alpha.42) (2026-06-19)
|
|
2
56
|
|
|
3
57
|
### Features
|
package/LICENSE.md
CHANGED
|
@@ -8722,6 +8722,173 @@ Repository: git+https://github.com/visulima/visulima.git
|
|
|
8722
8722
|
|
|
8723
8723
|
---------------------------------------
|
|
8724
8724
|
|
|
8725
|
+
## @visulima/tsconfig
|
|
8726
|
+
License: MIT
|
|
8727
|
+
By: Daniel Bannert
|
|
8728
|
+
Repository: git+https://github.com/visulima/visulima.git
|
|
8729
|
+
|
|
8730
|
+
> MIT License
|
|
8731
|
+
>
|
|
8732
|
+
> Copyright (c) 2026 visulima
|
|
8733
|
+
>
|
|
8734
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
8735
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
8736
|
+
> in the Software without restriction, including without limitation the rights
|
|
8737
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
8738
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
8739
|
+
> furnished to do so, subject to the following conditions:
|
|
8740
|
+
>
|
|
8741
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
8742
|
+
> copies or substantial portions of the Software.
|
|
8743
|
+
>
|
|
8744
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
8745
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
8746
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
8747
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
8748
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
8749
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
8750
|
+
> SOFTWARE.
|
|
8751
|
+
>
|
|
8752
|
+
>
|
|
8753
|
+
>
|
|
8754
|
+
>
|
|
8755
|
+
>
|
|
8756
|
+
>
|
|
8757
|
+
> # Licenses of bundled types
|
|
8758
|
+
>
|
|
8759
|
+
> The published @visulima/tsconfig artifact additionally contains code with the following licenses:
|
|
8760
|
+
> (MIT OR CC0-1.0)
|
|
8761
|
+
>
|
|
8762
|
+
> # Bundled types:
|
|
8763
|
+
>
|
|
8764
|
+
> ## type-fest
|
|
8765
|
+
>
|
|
8766
|
+
> License: (MIT OR CC0-1.0)
|
|
8767
|
+
> By: Sindre Sorhus
|
|
8768
|
+
> Repository: sindresorhus/type-fest
|
|
8769
|
+
>
|
|
8770
|
+
> > Creative Commons Legal Code
|
|
8771
|
+
> >
|
|
8772
|
+
> > CC0 1.0 Universal
|
|
8773
|
+
> >
|
|
8774
|
+
> > CREATIVE COMMONS CORPORATION IS NOT A LAW FIRM AND DOES NOT PROVIDE
|
|
8775
|
+
> > LEGAL SERVICES. DISTRIBUTION OF THIS DOCUMENT DOES NOT CREATE AN
|
|
8776
|
+
> > ATTORNEY-CLIENT RELATIONSHIP. CREATIVE COMMONS PROVIDES THIS
|
|
8777
|
+
> > INFORMATION ON AN "AS-IS" BASIS. CREATIVE COMMONS MAKES NO WARRANTIES
|
|
8778
|
+
> > REGARDING THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS
|
|
8779
|
+
> > PROVIDED HEREUNDER, AND DISCLAIMS LIABILITY FOR DAMAGES RESULTING FROM
|
|
8780
|
+
> > THE USE OF THIS DOCUMENT OR THE INFORMATION OR WORKS PROVIDED
|
|
8781
|
+
> > HEREUNDER.
|
|
8782
|
+
> >
|
|
8783
|
+
> > Statement of Purpose
|
|
8784
|
+
> >
|
|
8785
|
+
> > The laws of most jurisdictions throughout the world automatically confer
|
|
8786
|
+
> > exclusive Copyright and Related Rights (defined below) upon the creator
|
|
8787
|
+
> > and subsequent owner(s) (each and all, an "owner") of an original work of
|
|
8788
|
+
> > authorship and/or a database (each, a "Work").
|
|
8789
|
+
> >
|
|
8790
|
+
> > Certain owners wish to permanently relinquish those rights to a Work for
|
|
8791
|
+
> > the purpose of contributing to a commons of creative, cultural and
|
|
8792
|
+
> > scientific works ("Commons") that the public can reliably and without fear
|
|
8793
|
+
> > of later claims of infringement build upon, modify, incorporate in other
|
|
8794
|
+
> > works, reuse and redistribute as freely as possible in any form whatsoever
|
|
8795
|
+
> > and for any purposes, including without limitation commercial purposes.
|
|
8796
|
+
> > These owners may contribute to the Commons to promote the ideal of a free
|
|
8797
|
+
> > culture and the further production of creative, cultural and scientific
|
|
8798
|
+
> > works, or to gain reputation or greater distribution for their Work in
|
|
8799
|
+
> > part through the use and efforts of others.
|
|
8800
|
+
> >
|
|
8801
|
+
> > For these and/or other purposes and motivations, and without any
|
|
8802
|
+
> > expectation of additional consideration or compensation, the person
|
|
8803
|
+
> > associating CC0 with a Work (the "Affirmer"), to the extent that he or she
|
|
8804
|
+
> > is an owner of Copyright and Related Rights in the Work, voluntarily
|
|
8805
|
+
> > elects to apply CC0 to the Work and publicly distribute the Work under its
|
|
8806
|
+
> > terms, with knowledge of his or her Copyright and Related Rights in the
|
|
8807
|
+
> > Work and the meaning and intended legal effect of CC0 on those rights.
|
|
8808
|
+
> >
|
|
8809
|
+
> > 1. Copyright and Related Rights. A Work made available under CC0 may be
|
|
8810
|
+
> > protected by copyright and related or neighboring rights ("Copyright and
|
|
8811
|
+
> > Related Rights"). Copyright and Related Rights include, but are not
|
|
8812
|
+
> > limited to, the following:
|
|
8813
|
+
> >
|
|
8814
|
+
> > i. the right to reproduce, adapt, distribute, perform, display,
|
|
8815
|
+
> > communicate, and translate a Work;
|
|
8816
|
+
> > ii. moral rights retained by the original author(s) and/or performer(s);
|
|
8817
|
+
> > iii. publicity and privacy rights pertaining to a person's image or
|
|
8818
|
+
> > likeness depicted in a Work;
|
|
8819
|
+
> > iv. rights protecting against unfair competition in regards to a Work,
|
|
8820
|
+
> > subject to the limitations in paragraph 4(a), below;
|
|
8821
|
+
> > v. rights protecting the extraction, dissemination, use and reuse of data
|
|
8822
|
+
> > in a Work;
|
|
8823
|
+
> > vi. database rights (such as those arising under Directive 96/9/EC of the
|
|
8824
|
+
> > European Parliament and of the Council of 11 March 1996 on the legal
|
|
8825
|
+
> > protection of databases, and under any national implementation
|
|
8826
|
+
> > thereof, including any amended or successor version of such
|
|
8827
|
+
> > directive); and
|
|
8828
|
+
> > vii. other similar, equivalent or corresponding rights throughout the
|
|
8829
|
+
> > world based on applicable law or treaty, and any national
|
|
8830
|
+
> > implementations thereof.
|
|
8831
|
+
> >
|
|
8832
|
+
> > 2. Waiver. To the greatest extent permitted by, but not in contravention
|
|
8833
|
+
> > of, applicable law, Affirmer hereby overtly, fully, permanently,
|
|
8834
|
+
> > irrevocably and unconditionally waives, abandons, and surrenders all of
|
|
8835
|
+
> > Affirmer's Copyright and Related Rights and associated claims and causes
|
|
8836
|
+
> > of action, whether now known or unknown (including existing as well as
|
|
8837
|
+
> > future claims and causes of action), in the Work (i) in all territories
|
|
8838
|
+
> > worldwide, (ii) for the maximum duration provided by applicable law or
|
|
8839
|
+
> > treaty (including future time extensions), (iii) in any current or future
|
|
8840
|
+
> > medium and for any number of copies, and (iv) for any purpose whatsoever,
|
|
8841
|
+
> > including without limitation commercial, advertising or promotional
|
|
8842
|
+
> > purposes (the "Waiver"). Affirmer makes the Waiver for the benefit of each
|
|
8843
|
+
> > member of the public at large and to the detriment of Affirmer's heirs and
|
|
8844
|
+
> > successors, fully intending that such Waiver shall not be subject to
|
|
8845
|
+
> > revocation, rescission, cancellation, termination, or any other legal or
|
|
8846
|
+
> > equitable action to disrupt the quiet enjoyment of the Work by the public
|
|
8847
|
+
> > as contemplated by Affirmer's express Statement of Purpose.
|
|
8848
|
+
> > 3. Public License Fallback. Should any part of the Waiver for any reason
|
|
8849
|
+
> > be judged legally invalid or ineffective under applicable law, then the
|
|
8850
|
+
> > Waiver shall be preserved to the maximum extent permitted taking into
|
|
8851
|
+
> > account Affirmer's express Statement of Purpose. In addition, to the
|
|
8852
|
+
> > extent the Waiver is so judged Affirmer hereby grants to each affected
|
|
8853
|
+
> > person a royalty-free, non transferable, non sublicensable, non exclusive,
|
|
8854
|
+
> > irrevocable and unconditional license to exercise Affirmer's Copyright and
|
|
8855
|
+
> > Related Rights in the Work (i) in all territories worldwide, (ii) for the
|
|
8856
|
+
> > maximum duration provided by applicable law or treaty (including future
|
|
8857
|
+
> > time extensions), (iii) in any current or future medium and for any number
|
|
8858
|
+
> > of copies, and (iv) for any purpose whatsoever, including without
|
|
8859
|
+
> > limitation commercial, advertising or promotional purposes (the
|
|
8860
|
+
> > "License"). The License shall be deemed effective as of the date CC0 was
|
|
8861
|
+
> > applied by Affirmer to the Work. Should any part of the License for any
|
|
8862
|
+
> > reason be judged legally invalid or ineffective under applicable law, such
|
|
8863
|
+
> > partial invalidity or ineffectiveness shall not invalidate the remainder
|
|
8864
|
+
> > of the License, and in such case Affirmer hereby affirms that he or she
|
|
8865
|
+
> > will not (i) exercise any of his or her remaining Copyright and Related
|
|
8866
|
+
> > Rights in the Work or (ii) assert any associated claims and causes of
|
|
8867
|
+
> > action with respect to the Work, in either case contrary to Affirmer's
|
|
8868
|
+
> > express Statement of Purpose.
|
|
8869
|
+
> > 4. Limitations and Disclaimers.
|
|
8870
|
+
> >
|
|
8871
|
+
> > a. No trademark or patent rights held by Affirmer are waived, abandoned,
|
|
8872
|
+
> > surrendered, licensed or otherwise affected by this document.
|
|
8873
|
+
> > b. Affirmer offers the Work as-is and makes no representations or
|
|
8874
|
+
> > warranties of any kind concerning the Work, express, implied,
|
|
8875
|
+
> > statutory or otherwise, including without limitation warranties of
|
|
8876
|
+
> > title, merchantability, fitness for a particular purpose, non
|
|
8877
|
+
> > infringement, or the absence of latent or other defects, accuracy, or
|
|
8878
|
+
> > the present or absence of errors, whether or not discoverable, all to
|
|
8879
|
+
> > the greatest extent permissible under applicable law.
|
|
8880
|
+
> > c. Affirmer disclaims responsibility for clearing rights of other persons
|
|
8881
|
+
> > that may apply to the Work or any use thereof, including without
|
|
8882
|
+
> > limitation any person's Copyright and Related Rights in the Work.
|
|
8883
|
+
> > Further, Affirmer disclaims responsibility for obtaining any necessary
|
|
8884
|
+
> > consents, permissions or other rights required for any use of the
|
|
8885
|
+
> > Work.
|
|
8886
|
+
> > d. Affirmer understands and acknowledges that Creative Commons is not a
|
|
8887
|
+
> > party to this document and has no duty or obligation with respect to
|
|
8888
|
+
> > this CC0 or use of the Work.
|
|
8889
|
+
|
|
8890
|
+
---------------------------------------
|
|
8891
|
+
|
|
8725
8892
|
## @visulima/tui
|
|
8726
8893
|
License: MIT
|
|
8727
8894
|
By: Daniel Bannert
|
|
@@ -12165,6 +12332,66 @@ Repository: nodeca/js-yaml
|
|
|
12165
12332
|
|
|
12166
12333
|
---------------------------------------
|
|
12167
12334
|
|
|
12335
|
+
## json5
|
|
12336
|
+
License: MIT
|
|
12337
|
+
By: Aseem Kishore, Max Nanasy, Andrew Eisenberg, Jordan Tucker
|
|
12338
|
+
Repository: git+https://github.com/json5/json5.git
|
|
12339
|
+
|
|
12340
|
+
> MIT License
|
|
12341
|
+
>
|
|
12342
|
+
> Copyright (c) 2012-2018 Aseem Kishore, and [others].
|
|
12343
|
+
>
|
|
12344
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12345
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
12346
|
+
> in the Software without restriction, including without limitation the rights
|
|
12347
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12348
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
12349
|
+
> furnished to do so, subject to the following conditions:
|
|
12350
|
+
>
|
|
12351
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
12352
|
+
> copies or substantial portions of the Software.
|
|
12353
|
+
>
|
|
12354
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12355
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12356
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
12357
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
12358
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12359
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
12360
|
+
> SOFTWARE.
|
|
12361
|
+
>
|
|
12362
|
+
> [others]: https://github.com/json5/json5/contributors
|
|
12363
|
+
|
|
12364
|
+
---------------------------------------
|
|
12365
|
+
|
|
12366
|
+
## jsonc-parser
|
|
12367
|
+
License: MIT
|
|
12368
|
+
By: Microsoft Corporation
|
|
12369
|
+
Repository: https://github.com/microsoft/node-jsonc-parser
|
|
12370
|
+
|
|
12371
|
+
> The MIT License (MIT)
|
|
12372
|
+
>
|
|
12373
|
+
> Copyright (c) Microsoft
|
|
12374
|
+
>
|
|
12375
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12376
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
12377
|
+
> in the Software without restriction, including without limitation the rights
|
|
12378
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12379
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
12380
|
+
> furnished to do so, subject to the following conditions:
|
|
12381
|
+
>
|
|
12382
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
12383
|
+
> copies or substantial portions of the Software.
|
|
12384
|
+
>
|
|
12385
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12386
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12387
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
12388
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
12389
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12390
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
12391
|
+
> SOFTWARE.
|
|
12392
|
+
|
|
12393
|
+
---------------------------------------
|
|
12394
|
+
|
|
12168
12395
|
## jstoxml
|
|
12169
12396
|
License: MIT
|
|
12170
12397
|
By: David Calhoun
|
|
@@ -12353,6 +12580,35 @@ Repository: https://github.com/facebook/react.git
|
|
|
12353
12580
|
|
|
12354
12581
|
---------------------------------------
|
|
12355
12582
|
|
|
12583
|
+
## resolve-pkg-maps
|
|
12584
|
+
License: MIT
|
|
12585
|
+
By: Hiroki Osame
|
|
12586
|
+
Repository: privatenumber/resolve-pkg-maps
|
|
12587
|
+
|
|
12588
|
+
> MIT License
|
|
12589
|
+
>
|
|
12590
|
+
> Copyright (c) Hiroki Osame <hiroki.osame@gmail.com>
|
|
12591
|
+
>
|
|
12592
|
+
> Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
12593
|
+
> of this software and associated documentation files (the "Software"), to deal
|
|
12594
|
+
> in the Software without restriction, including without limitation the rights
|
|
12595
|
+
> to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
12596
|
+
> copies of the Software, and to permit persons to whom the Software is
|
|
12597
|
+
> furnished to do so, subject to the following conditions:
|
|
12598
|
+
>
|
|
12599
|
+
> The above copyright notice and this permission notice shall be included in all
|
|
12600
|
+
> copies or substantial portions of the Software.
|
|
12601
|
+
>
|
|
12602
|
+
> THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
12603
|
+
> IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
12604
|
+
> FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
12605
|
+
> AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
12606
|
+
> LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
12607
|
+
> OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
12608
|
+
> SOFTWARE.
|
|
12609
|
+
|
|
12610
|
+
---------------------------------------
|
|
12611
|
+
|
|
12356
12612
|
## scheduler
|
|
12357
12613
|
License: MIT
|
|
12358
12614
|
Repository: https://github.com/facebook/react.git
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
// Platform resolution for the native `vis` CLI binary. Shared by the launcher
|
|
2
|
+
// (`bin/vis.mjs`) and the integration tests so there is a single source of truth
|
|
3
|
+
// for where the binary lives and how the platform -> binding-package target slug
|
|
4
|
+
// is computed (mirroring the NAPI loader matrix in `index.js`).
|
|
5
|
+
|
|
6
|
+
import { existsSync } from "node:fs";
|
|
7
|
+
import { createRequire } from "node:module";
|
|
8
|
+
import { join } from "node:path";
|
|
9
|
+
|
|
10
|
+
const require = createRequire(import.meta.url);
|
|
11
|
+
|
|
12
|
+
// Best-effort musl detection for Linux. Defaults to glibc on any uncertainty.
|
|
13
|
+
const isMusl = () => {
|
|
14
|
+
const report = typeof process.report?.getReport === "function" ? process.report.getReport() : undefined;
|
|
15
|
+
|
|
16
|
+
if (report && Array.isArray(report.sharedObjects)) {
|
|
17
|
+
return report.sharedObjects.some((object) => object.includes("libc.musl-") || object.includes("ld-musl-"));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
// Default to glibc on uncertainty (no report). musl is identified by the
|
|
21
|
+
// absence of glibcVersionRuntime; matches handler.ts's copy.
|
|
22
|
+
return report ? !report.header?.glibcVersionRuntime : false;
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
// Static platform+arch -> target slug table for the non-Linux targets (Linux is
|
|
26
|
+
// libc-dependent, so it is resolved separately).
|
|
27
|
+
const STATIC_TARGETS = {
|
|
28
|
+
"darwin:arm64": "darwin-arm64",
|
|
29
|
+
"darwin:x64": "darwin-x64",
|
|
30
|
+
"win32:arm64": "win32-arm64-msvc",
|
|
31
|
+
"win32:x64": "win32-x64-msvc",
|
|
32
|
+
};
|
|
33
|
+
|
|
34
|
+
// Compute the binding-package target slug for the current platform, or undefined
|
|
35
|
+
// for platforms with no published binary.
|
|
36
|
+
const nativeTarget = () => {
|
|
37
|
+
const { arch, platform } = process;
|
|
38
|
+
|
|
39
|
+
if (platform === "linux") {
|
|
40
|
+
const libc = isMusl() ? "musl" : "gnu";
|
|
41
|
+
|
|
42
|
+
if (arch === "arm64" || arch === "x64") {
|
|
43
|
+
return `linux-${arch}-${libc}`;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
return undefined;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return STATIC_TARGETS[`${platform}:${arch}`];
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
// Resolve the platform-specific `vis` binary, or undefined if none is available
|
|
53
|
+
// (e.g. the optional binding package was not installed for this platform).
|
|
54
|
+
// Resolution order, most specific first:
|
|
55
|
+
// 1. VIS_NATIVE_BIN env override (dev / CI / tests).
|
|
56
|
+
// 2. A binary placed next to the package (local `build:native:cli` output).
|
|
57
|
+
// 3. The matching `@visulima/vis-binding-<target>` optional dependency.
|
|
58
|
+
const resolveNativeBinary = (packageRoot) => {
|
|
59
|
+
const override = process.env.VIS_NATIVE_BIN;
|
|
60
|
+
|
|
61
|
+
if (override && existsSync(override)) {
|
|
62
|
+
return override;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
const exe = process.platform === "win32" ? "vis-native-cli.exe" : "vis-native-cli";
|
|
66
|
+
const local = join(packageRoot, exe);
|
|
67
|
+
|
|
68
|
+
if (existsSync(local)) {
|
|
69
|
+
return local;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const target = nativeTarget();
|
|
73
|
+
|
|
74
|
+
if (target === undefined) {
|
|
75
|
+
return undefined;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
try {
|
|
79
|
+
return require.resolve(`@visulima/vis-binding-${target}/${exe}`);
|
|
80
|
+
} catch {
|
|
81
|
+
return undefined;
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
|
|
85
|
+
export { nativeTarget, resolveNativeBinary };
|
package/bin/vis.mjs
ADDED
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
// Native front-end launcher for `vis`.
|
|
3
|
+
//
|
|
4
|
+
// This is the npm `bin` entry. Its only jobs are to (1) route the small set of
|
|
5
|
+
// natively-implemented commands to the platform Rust binary, and (2) fall
|
|
6
|
+
// through to the existing in-process Node CLI for everything else. The
|
|
7
|
+
// fall-through path is byte-identical to running `dist/bin.js` directly, so the
|
|
8
|
+
// launcher adds no extra Node boot for delegated commands — it `import()`s the
|
|
9
|
+
// same entry in the same process.
|
|
10
|
+
//
|
|
11
|
+
// As commands are ported off Node, their names are added to NATIVE_COMMANDS and
|
|
12
|
+
// the binary grows to handle them; the binary itself delegates anything it does
|
|
13
|
+
// not implement back to `dist/bin.js` via the VIS_* contract.
|
|
14
|
+
|
|
15
|
+
import { spawnSync } from "node:child_process";
|
|
16
|
+
import { readFileSync } from "node:fs";
|
|
17
|
+
import { constants } from "node:os";
|
|
18
|
+
import { dirname, join } from "node:path";
|
|
19
|
+
import { fileURLToPath, pathToFileURL } from "node:url";
|
|
20
|
+
|
|
21
|
+
import { resolveNativeBinary } from "./resolve-binary.mjs";
|
|
22
|
+
|
|
23
|
+
const packageRoot = dirname(dirname(fileURLToPath(import.meta.url)));
|
|
24
|
+
|
|
25
|
+
// VIS_FALLBACK_ENTRY lets tests (and the native binary's own delegation) point
|
|
26
|
+
// the Node entry elsewhere; production resolves it next to the package.
|
|
27
|
+
const fallbackEntry = process.env.VIS_FALLBACK_ENTRY ?? join(packageRoot, "dist", "bin.js");
|
|
28
|
+
|
|
29
|
+
// Commands answered by the native binary. Every entry here MUST be handled by
|
|
30
|
+
// the binary (natively or via its own Node delegation), with VERIFIED parity to
|
|
31
|
+
// the Node behavior. Unknown commands never reach the binary — they take the
|
|
32
|
+
// in-process path below, unchanged. NOTE: `-v` is cerebro's verbose flag (not
|
|
33
|
+
// version), so it is deliberately absent.
|
|
34
|
+
//
|
|
35
|
+
// `exec` parity was verified empirically against cerebro: tool flags after the
|
|
36
|
+
// command are forwarded to the tool on both the native path and the Node handler
|
|
37
|
+
// (src/commands/exec/handler.ts), which was fixed to stop dropping them.
|
|
38
|
+
const NATIVE_COMMANDS = new Set(["--version", "-V", "__native-info", "__pm-shim", "dedupe", "exec", "link", "outdated", "pm", "remove", "unlink", "why", "x"]);
|
|
39
|
+
|
|
40
|
+
const command = process.argv[2] ?? "";
|
|
41
|
+
|
|
42
|
+
if (NATIVE_COMMANDS.has(command)) {
|
|
43
|
+
const binary = resolveNativeBinary(packageRoot);
|
|
44
|
+
|
|
45
|
+
if (binary !== undefined) {
|
|
46
|
+
const { version } = JSON.parse(readFileSync(join(packageRoot, "package.json"), "utf8"));
|
|
47
|
+
|
|
48
|
+
const { error, signal, status } = spawnSync(binary, process.argv.slice(2), {
|
|
49
|
+
env: {
|
|
50
|
+
...process.env,
|
|
51
|
+
VIS_FALLBACK_ENTRY: fallbackEntry,
|
|
52
|
+
VIS_NODE: process.execPath,
|
|
53
|
+
VIS_VERSION: version,
|
|
54
|
+
},
|
|
55
|
+
stdio: "inherit",
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
if (error) {
|
|
59
|
+
// Binary unusable (e.g. corrupt install) — fall through to Node.
|
|
60
|
+
process.env.VIS_NATIVE_BIN_FAILED = "1";
|
|
61
|
+
} else if (signal) {
|
|
62
|
+
// Signal-terminated: follow the shell convention (128 + signal number)
|
|
63
|
+
// so the exit code matches the binary's own delegation path.
|
|
64
|
+
process.exit(128 + (constants.signals[signal] ?? 1));
|
|
65
|
+
} else {
|
|
66
|
+
process.exit(status ?? 1);
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
// No binary for this platform: fall through to the Node CLI below.
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// In-process Node CLI. Same module graph and behaviour as invoking dist/bin.js
|
|
73
|
+
// directly — no extra process boot. fallbackEntry is an internally-resolved path
|
|
74
|
+
// (never user input); pathToFileURL keeps the dynamic import valid on Windows.
|
|
75
|
+
// eslint-disable-next-line no-unsanitized/method -- fallbackEntry is resolved internally, not from user input
|
|
76
|
+
await import(pathToFileURL(fallbackEntry).href);
|
package/dist/bin.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { };
|
package/dist/bin.js
CHANGED
|
@@ -1,2 +1 @@
|
|
|
1
|
-
|
|
2
|
-
import"./packem_shared/compile-cache-B_Vf_WxT.js";import"./packem_shared/bin-CnDBuLh3.js";
|
|
1
|
+
import"./packem_shared/compile-cache-B_Vf_WxT.js";import"./packem_shared/bin-P6Q5tKrP.js";
|
package/dist/binx.js
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import{c as r,V as o,h as c,e as i,r as a}from"./packem_shared/index-
|
|
2
|
+
import{c as r,V as o,h as c,e as i,r as a}from"./packem_shared/index-D7EZ612R.js";import{c as n}from"./packem_shared/compile-cache-B_Vf_WxT.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(`${r.version}
|
|
3
3
|
`),process.exit(0));process.argv.splice(2,0,"dlx");n();const e=o("visx",{packageName:"visx",packageVersion:r.version}),p=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(c({detailed:p,exitOnError:!1}));e.addCommand(i);a(e);
|
package/dist/config/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{CONFIG_FILES as o,SECURITY_DEFAULTS as e,TASK_CONFIG_FILES as n,applyDefaults as l,defineConfig as C,defineTaskConfig as g,findVisConfigFile as s,findVisTaskConfigFile as a,loadVisConfig as d,loadVisTaskConfig as F}from"../packem_chunks/CONFIG_FILES.js";import{definePlugin as T}from"../packem_shared/definePlugin-DoUcoYSy.js";import{otelPlugin as t}from"../packem_shared/otelPlugin-DmKDBaPo.js";export{o as CONFIG_FILES,e as SECURITY_DEFAULTS,n as TASK_CONFIG_FILES,l as applyDefaults,C as defineConfig,T as definePlugin,g as defineTaskConfig,s as findVisConfigFile,a as findVisTaskConfigFile,d as loadVisConfig,F as loadVisTaskConfig,t as otelPlugin};
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import{createRequire as G}from"node:module";import{E as O,m as P}from"../packem_shared/target-merge-DOm6h6tW.js";import{m as c,A as b,f as p,a as h,H as y,O as C}from"../packem_shared/index-CE6MsgcV.js";import{i as I}from"./ts-loader.js";import{otelPlugin as jt}from"../packem_shared/otelPlugin-DmKDBaPo.js";import{definePlugin as Tt}from"../packem_shared/definePlugin-DoUcoYSy.js";import{a as _}from"../packem_shared/readJsonSync-CvkZyKmL-ihoybKvs.js";const F=G(import.meta.url),d=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=t=>{if(typeof d<"u"&&d.versions&&d.versions.node){const[e,s]=d.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return d.getBuiltinModule(t)}return F(t)},{createHash:T}=k("node:crypto"),{readdirSync:$,readFileSync:V}=k("node:fs"),{createRequire:N}=k("node:module");class l extends Error{chain;constructor(e,s,o){super(e,o),this.name=this.constructor.name,this.chain=s}}class K extends l{constructor(e,s){const o=[...s,`${e} (re-enters)`].join(" → ");super(`Config cycle: ${o}`,s)}}class E extends l{filePath;removedKeys;constructor(e,s,o){const r=[`${e} uses removed keys.`,""];for(const n of o){const a=n.location?` (at ${n.location})`:"";r.push(` • ${n.name}${a} → renamed to \`${n.renamedTo}\``);for(const i of n.children??[])r.push(` ↳ ${i.name} → renamed to \`${i.renamedTo}\``)}r.push("","Run `vis migrate self` to auto-rewrite the config (use --dry-run to preview)."),super(r.join(`
|
|
2
|
+
`),s),this.filePath=e,this.removedKeys=o}}class j extends l{constructor(e,s,o){const r=o instanceof Error?o.message:String(o),n=s.length>0?`
|
|
3
|
+
Chain: ${s.join(" → ")}`:"";super(`Failed to load ${e}: ${r}${n}`,s,{cause:o})}}const L=t=>t.join(" → ");class g extends l{constructor(e,s,o){const r=s.length>0?s[s.length-1]:"<unknown>",n=o.length>0?`
|
|
4
|
+
Tried:
|
|
5
|
+
${o.join(`
|
|
6
|
+
`)}`:"";super(`Cannot resolve "${e}" extended from ${r}.${n}
|
|
7
|
+
Chain: ${L(s)}`,s)}}const q=t=>{const e=[];if(Object.hasOwn(t,"targetDefaults")&&e.push({name:"targetDefaults",renamedTo:"tasks"}),Object.hasOwn(t,"taskRunnerOptions")&&e.push({name:"taskRunnerOptions",renamedTo:"taskRunner"}),Object.hasOwn(t,"taskDefaults")){const{taskDefaults:s}=t,o=[];if(Array.isArray(s))for(const[r,n]of s.entries())n&&typeof n=="object"&&(Object.hasOwn(n,"scope")&&o.push({location:`taskDefaults[${r}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(n,"targets")&&o.push({location:`taskDefaults[${r}].targets`,name:"targets",renamedTo:"tasks"}));e.push({children:o.length>0?o:void 0,name:"taskDefaults",renamedTo:"scopedTasks"})}else if(Array.isArray(t.scopedTasks))for(const[s,o]of t.scopedTasks.entries())o&&typeof o=="object"&&(Object.hasOwn(o,"scope")&&e.push({location:`scopedTasks[${s}].scope`,name:"scope",renamedTo:"match"}),Object.hasOwn(o,"targets")&&e.push({location:`scopedTasks[${s}].targets`,name:"targets",renamedTo:"tasks"}));return e},M=t=>Object.hasOwn(t,"targets")&&!Object.hasOwn(t,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],U=(t,e,s)=>{if(!s||typeof s!="object")return;const o=q(s);if(o.length>0)throw new E(t,e,o)},H=(t,e,s)=>{if(!s||typeof s!="object")return;const o=M(s);if(o.length>0)throw new E(t,e,o)},x=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],W=new Set(x),S=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],B=new Set(S),ht=2880,m={blockExoticSubdeps:!0,policies:{installScripts:{strict:!0},publisherChange:{ignoreAfter:43200,mode:"no-downgrade"}}},Y=t=>{if(!t)return{...m};const e=m.policies??{},s=t.policies??{},o={...e,...s};for(const r of Object.keys(e)){const n=e[r],a=s[r];n!==void 0&&a!==void 0&&(o[r]={...n,...a})}return{...m,...t,policies:o}},v=t=>({...t,security:Y(t.security),update:{security:!0,target:"minor",...t.update}}),z=t=>{let e;try{e=$(t)}catch{return}const s=new Set(e.filter(o=>W.has(o)));for(const o of x)if(s.has(o))return c(t,o)},J=t=>{let e;try{e=$(t)}catch{return}const s=new Set(e.filter(o=>B.has(o)));for(const o of S)if(s.has(o))return c(t,o)},A=t=>T("sha256").update(V(t)).digest("hex"),Q=t=>{const e=T("sha256"),s=[...t].sort();for(const o of s)e.update(o),e.update(":"),e.update(A(o)),e.update(`
|
|
8
|
+
`);return e.digest("hex")},X=t=>{const e=c(t,"node_modules");if(p(e)){const o=c(e,".cache","vis");return h(o),c(o,"vis-config-cache.json")}const s=O("vis",{create:!0,cwd:t});return s?c(s,"vis-config-cache.json"):void 0},Z=(t,e)=>{if(p(t))try{const s=_(t);if(s.hash===e)return s.config}catch{}},tt=(t,e,s)=>{try{h(y(t)),C(t,{config:s,hash:e})}catch{}},et=t=>t===void 0?[]:Array.isArray(t)?t:[t],st=(t,e,s)=>{if(b(t))throw new g(t,[...s,e],["Absolute paths in `extends` are not supported. Use a relative path or an npm package name."]);const o=[];if(t.startsWith("./")||t.startsWith("../")){const r=y(e),n=c(r,t);if(o.push(n),p(n))return n;throw new g(t,[...s,e],o)}try{return N(e).resolve(t)}catch{throw o.push(`require.resolve("${t}") from ${e}`),new g(t,[...s,e],o)}},R=async(t,e)=>{let s;try{s=(await I(t)).default??{}}catch(o){throw new j(t,e,o)}try{return(typeof s=="function"?await s()??{}:s)??{}}catch(o){throw new j(t,e,o)}},ot=(t,e)=>{const s={...t,...e};if(t.tasks||e.tasks){const o=new Set([...Object.keys(t.tasks??{}),...Object.keys(e.tasks??{})]),r={};for(const n of o)r[n]=P(t.tasks?.[n],e.tasks?.[n]);s.tasks=r}if((t.scopedTasks||e.scopedTasks)&&(s.scopedTasks=[...t.scopedTasks??[],...e.scopedTasks??[]]),(t.fileGroups||e.fileGroups)&&(s.fileGroups={...t.fileGroups,...e.fileGroups}),(t.taskGroups||e.taskGroups)&&(s.taskGroups={...t.taskGroups,...e.taskGroups}),t.security||e.security){const o=t.security?.policies??{},r=e.security?.policies??{},n={...o,...r};for(const a of Object.keys(o)){const i=o[a],f=r[a];i!==void 0&&f!==void 0&&(n[a]={...i,...f})}s.security={...t.security,...e.security,acceptedRisks:{...t.security?.acceptedRisks,...e.security?.acceptedRisks},policies:n}}return(t.update||e.update)&&(s.update={...t.update,...e.update}),(t.taskRunner||e.taskRunner)&&(s.taskRunner={...t.taskRunner,...e.taskRunner}),delete s.extends,s},D=async(t,e,s,o,r)=>{if(s.has(t))throw new K(t,e);if(!o.has(t)){s.add(t);try{const n=await R(t,e);U(t,e,n);const a=et(n.extends);for(const i of a){const f=st(i,t,e);await D(f,[...e,t],s,o,r)}o.set(t,n),r.push(t)}finally{s.delete(t)}}},lt=async(t,e)=>{let s;if(e?.explicitConfigPath){const u=b(e.explicitConfigPath)?e.explicitConfigPath:c(t,e.explicitConfigPath);if(!p(u))throw new Error(`Cannot find config file at ${u}`);s=u}else s=z(t);if(!s)return v({});const o=new Set,r=new Map,n=[];await D(s,[],o,r,n);const a=Q(n),i=X(t);if(i){const u=Z(i,a);if(u)return u}let f={};for(const u of n)f=ot(f,r.get(u));const w=v(f);return i&&tt(i,a,w),w},nt=t=>t.replaceAll(/[^\w.-]+/g,"_"),rt=(t,e)=>{const s=c(t,"node_modules"),o=nt(e);if(p(s)){const n=c(s,".cache","vis","task-configs");return h(n),c(n,`${o}.json`)}const r=O("vis",{create:!0,cwd:t});return r?c(r,"task-configs",`${o}.json`):void 0},at=(t,e)=>{if(p(t))try{const s=_(t);if(s.hash===e)return s.config}catch{}},it=(t,e,s)=>{try{h(y(t)),C(t,{config:s,hash:e})}catch{}},gt=async(t,e,s)=>{const o=J(e);if(!o)return;const r=A(o),n=rt(t,s);if(n){const f=at(n,r);if(f)return f}const a=await R(o,[]);H(o,[],a);const i=a;return n&&it(n,r,i),i},mt=t=>t,kt=t=>t;export{x as CONFIG_FILES,ht as DEFAULT_MIN_RELEASE_AGE_MINUTES,m as SECURITY_DEFAULTS,S as TASK_CONFIG_FILES,v as applyDefaults,kt as defineConfig,Tt as definePlugin,mt as defineTaskConfig,z as findVisConfigFile,J as findVisTaskConfigFile,lt as loadVisConfig,gt as loadVisTaskConfig,jt as otelPlugin};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{s as c,E as n,I as f}from"../packem_shared/index.server-J83sowC4.js";import{p as i}from"./cli-main.js";import{g as l}from"../packem_shared/osv-bloom-
|
|
1
|
+
import{s as c,E as n,I as f}from"../packem_shared/index.server-J83sowC4.js";import{p as i}from"./cli-main.js";import{g as l}from"../packem_shared/osv-bloom-BsQ-aFiM.js";const a=t=>{if(!t)return"never";const r=Date.parse(t);if(Number.isNaN(r))return t;const e=Date.now()-r;if(e<0)return t;const o=Math.floor(e/6e4);if(o<1)return"just now";if(o<60)return`${o}m ago`;const s=Math.floor(o/60);return s<24?`${s}h ago`:`${Math.floor(s/24)}d ago`},m=t=>t<1024?`${t} B`:t<1024*1024?`${(t/1024).toFixed(1)} KB`:`${(t/(1024*1024)).toFixed(1)} MB`,u=async({options:t,workspaceRoot:r})=>{if(!r)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const e=await l(r,t.cacheDir);if(t.format==="json"){process.stdout.write(`${JSON.stringify(e,void 0,2)}
|
|
2
2
|
`);return}if(i.info(`Cache: ${e.cacheDir}`),!e.present){i.warn(`No osv-bloom filter yet. Run ${c("vis advisories bloom sync")} to populate.`);return}if(e.manifest){const{manifest:o}=e;i.info(`Built: ${o.builtAtRfc3339} (${a(o.builtAtRfc3339)})`),i.info(`Fetch: ${e.fetchedAtIso??n("—")} (${a(e.fetchedAtIso)})`),i.info(`Filter: ${f(m(o.bloomByteLen))} m=${o.bloomMBits.toLocaleString()} bits k=${String(o.bloomKHashes)}`),i.info(`Set: ${o.entryCount.toLocaleString()} entries from ${o.advisoryCount.toLocaleString()} advisories (target FPR ${o.targetFpr})`),i.info(n(`Digest: ${o.setDigestSha256}`))}else i.warn("filter.bin present but manifest.json missing — `vis advisories bloom sync` will rewrite the cache.")},h=u;export{h as advisoriesBloomStatusExecute};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{E as m}from"../packem_shared/index.server-J83sowC4.js";import{p as i}from"./cli-main.js";import{s as p}from"../packem_shared/scan-progress-
|
|
1
|
+
import{E as m}from"../packem_shared/index.server-J83sowC4.js";import{p as i}from"./cli-main.js";import{s as p}from"../packem_shared/scan-progress-D4yywI6P.js";import{s as d,D}from"../packem_shared/osv-bloom-BsQ-aFiM.js";const b=o=>o?.security?.audit?.advisories?.bloom??{},u=o=>o>=1e3?`${(o/1e3).toFixed(1)}s`:`${Math.round(o)}ms`,y=o=>o<1024?`${o} B`:o<1024*1024?`${(o/1024).toFixed(1)} KB`:`${(o/(1024*1024)).toFixed(1)} MB`,h=async({options:o,visConfig:f,workspaceRoot:a})=>{if(!a)throw new Error("Could not determine workspace root. Run this command inside a workspace.");const n=o.format==="json",c=b(f),l=o.source??c.source??D,s=p([{id:"bloom",label:"Sync osv-bloom prefilter"}],{live:!n});let e,t;try{s.start("bloom");const r=Date.now();e=await d({allowedHosts:c.allowedHosts,cacheDir:o.cacheDir,force:!!o.force,source:l,workspaceRoot:a}),e.upToDate?s.finish("bloom","ok",`up to date · ${u(Date.now()-r)}`):s.finish("bloom","ok",`${e.manifest.entryCount.toLocaleString()} entries · ${y(e.bytesOnDisk)} · ${u(e.durationMs)}`)}catch(r){t=r instanceof Error?r.message:String(r),s.finish("bloom","error",t)}finally{s.stop()}n?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(m(`Cache: ${e.cacheDir}`)),i.info(m(`Built: ${e.manifest.builtAtRfc3339}`)),t||i.success(e.upToDate?"osv-bloom prefilter up to date.":"osv-bloom prefilter synced.")),t&&(process.exitCode=1)},O=h;export{O as advisoriesBloomSyncExecute};
|