@visulima/vis 2.0.2 → 3.0.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.
Files changed (147) hide show
  1. package/CHANGELOG.md +20 -0
  2. package/LICENSE.md +95 -65
  3. package/dist/bin.js +1 -1
  4. package/dist/binx.js +1 -1
  5. package/dist/packem_chunks/CONFIG_FILES.js +2 -2
  6. package/dist/packem_chunks/bloom-status.js +1 -1
  7. package/dist/packem_chunks/bloom-sync.js +1 -1
  8. package/dist/packem_chunks/catalog.js +47 -47
  9. package/dist/packem_chunks/cli-exec.js +1 -1
  10. package/dist/packem_chunks/cli-main.js +141 -141
  11. package/dist/packem_chunks/dispatch.js +1 -1
  12. package/dist/packem_chunks/fix.js +1 -1
  13. package/dist/packem_chunks/handler.js +1 -1
  14. package/dist/packem_chunks/handler10.js +1 -1
  15. package/dist/packem_chunks/handler11.js +1 -1
  16. package/dist/packem_chunks/handler12.js +1 -1
  17. package/dist/packem_chunks/handler13.js +1 -1
  18. package/dist/packem_chunks/handler14.js +1 -1
  19. package/dist/packem_chunks/handler15.js +1 -1
  20. package/dist/packem_chunks/handler16.js +1 -1
  21. package/dist/packem_chunks/handler17.js +1 -1
  22. package/dist/packem_chunks/handler18.js +1 -1
  23. package/dist/packem_chunks/handler19.js +1 -1
  24. package/dist/packem_chunks/handler2.js +1 -1
  25. package/dist/packem_chunks/handler20.js +1 -1
  26. package/dist/packem_chunks/handler21.js +1 -1
  27. package/dist/packem_chunks/handler22.js +1 -1
  28. package/dist/packem_chunks/handler23.js +1 -1
  29. package/dist/packem_chunks/handler24.js +1 -1
  30. package/dist/packem_chunks/handler26.js +1 -1
  31. package/dist/packem_chunks/handler27.js +1 -1
  32. package/dist/packem_chunks/handler28.js +1 -1
  33. package/dist/packem_chunks/handler29.js +1 -1
  34. package/dist/packem_chunks/handler3.js +1 -1
  35. package/dist/packem_chunks/handler30.js +1 -1
  36. package/dist/packem_chunks/handler4.js +1 -1
  37. package/dist/packem_chunks/handler5.js +1 -1
  38. package/dist/packem_chunks/handler50.js +1 -1
  39. package/dist/packem_chunks/handler51.js +1 -1
  40. package/dist/packem_chunks/handler53.js +1 -1
  41. package/dist/packem_chunks/handler54.js +1 -1
  42. package/dist/packem_chunks/handler55.js +1 -1
  43. package/dist/packem_chunks/handler58.js +1 -1
  44. package/dist/packem_chunks/handler59.js +1 -1
  45. package/dist/packem_chunks/handler6.js +1 -1
  46. package/dist/packem_chunks/handler60.js +1 -1
  47. package/dist/packem_chunks/handler61.js +1 -1
  48. package/dist/packem_chunks/handler62.js +1 -1
  49. package/dist/packem_chunks/handler63.js +1 -1
  50. package/dist/packem_chunks/handler64.js +1 -1
  51. package/dist/packem_chunks/handler66.js +1 -1
  52. package/dist/packem_chunks/handler67.js +13 -13
  53. package/dist/packem_chunks/handler68.js +1 -1
  54. package/dist/packem_chunks/handler69.js +1 -1
  55. package/dist/packem_chunks/handler7.js +1 -1
  56. package/dist/packem_chunks/handler70.js +5 -5
  57. package/dist/packem_chunks/handler71.js +1 -1
  58. package/dist/packem_chunks/handler72.js +1 -1
  59. package/dist/packem_chunks/handler73.js +1 -1
  60. package/dist/packem_chunks/handler74.js +15 -15
  61. package/dist/packem_chunks/handler75.js +1 -1
  62. package/dist/packem_chunks/handler76.js +1 -1
  63. package/dist/packem_chunks/handler77.js +1 -1
  64. package/dist/packem_chunks/handler78.js +1 -1
  65. package/dist/packem_chunks/handler8.js +1 -1
  66. package/dist/packem_chunks/handler9.js +1 -1
  67. package/dist/packem_chunks/heal-accept.js +1 -1
  68. package/dist/packem_chunks/heal.js +1 -1
  69. package/dist/packem_chunks/help-command.js +1 -1
  70. package/dist/packem_chunks/index2.js +6 -4
  71. package/dist/packem_chunks/index3.js +1 -1
  72. package/dist/packem_chunks/index4.js +49 -49
  73. package/dist/packem_chunks/keys-refresh.js +1 -1
  74. package/dist/packem_chunks/lean.js +1 -1
  75. package/dist/packem_chunks/list.js +1 -1
  76. package/dist/packem_chunks/loader.js +1 -1
  77. package/dist/packem_chunks/orchestrator.js +2 -2
  78. package/dist/packem_chunks/prune.js +1 -1
  79. package/dist/packem_chunks/registry.js +10 -10
  80. package/dist/packem_chunks/status.js +1 -1
  81. package/dist/packem_chunks/sync.js +1 -1
  82. package/dist/packem_chunks/sync2.js +1 -1
  83. package/dist/packem_chunks/tripwire.js +1 -1
  84. package/dist/packem_chunks/ts-loader.js +1 -1
  85. package/dist/packem_chunks/verify-lockfile.js +1 -1
  86. package/dist/packem_shared/{advisories-CCBGdU8U.js → advisories-DsXRmIA5.js} +1 -1
  87. package/dist/packem_shared/{affected-selection-Dj-ymxhw.js → affected-selection-BE6VFCDV.js} +1 -1
  88. package/dist/packem_shared/{affected-shas-PwkVbPch.js → affected-shas-BKEu4RZc.js} +1 -1
  89. package/dist/packem_shared/{ai-analysis-bGCAc1jR.js → ai-analysis-DikAj6rX.js} +1 -1
  90. package/dist/packem_shared/{ai-fix-DV5-dHBY.js → ai-fix-bfWo0cZX.js} +1 -1
  91. package/dist/packem_shared/{augment-24KX2nkI.js → augment-BkJxi_GW.js} +1 -1
  92. package/dist/packem_shared/{bin-CtzhnYMp.js → bin-B-TytgzW.js} +1 -1
  93. package/dist/packem_shared/{build-scripts-w4SNeR7D.js → build-scripts-DWypBQ--.js} +1 -1
  94. package/dist/packem_shared/{command-runtime-BLFPUYAT.js → command-runtime-DQ7ZpLYL.js} +1 -1
  95. package/dist/packem_shared/{cyclonedx-C4KaVTn1.js → cyclonedx-DLBi65MV.js} +1 -1
  96. package/dist/packem_shared/dependency-scan-ZLOuLkGN.js +1 -0
  97. package/dist/packem_shared/{docker-DaVs-9wK.js → docker-B4zAZCZG.js} +15 -15
  98. package/dist/packem_shared/{en-D3CfXlO7.js → en-BDYMmM2_.js} +1 -1
  99. package/dist/packem_shared/{failure-log-CTneNcio.js → failure-log-DyhWPqno.js} +1 -1
  100. package/dist/packem_shared/glob-BUjyjdE8-Dp_QcayW.js +1 -0
  101. package/dist/packem_shared/index-BLtnel38.js +35 -0
  102. package/dist/packem_shared/index-CuKDxOCI.js +1 -0
  103. package/dist/packem_shared/index-tNFGWxc0.js +39 -0
  104. package/dist/packem_shared/{lifecycle-B8A2T3gx.js → lifecycle-KY9umOg6.js} +1 -1
  105. package/dist/packem_shared/{lockfile-Bccery3L.js → lockfile-YAuZf1gh.js} +1 -1
  106. package/dist/packem_shared/{manifests-BDkwiVbh.js → manifests-BwTn_1ad.js} +1 -1
  107. package/dist/packem_shared/{min-release-age-OaYpLwux.js → min-release-age-6avfn81h.js} +1 -1
  108. package/dist/packem_shared/{missing-package-json-BqS-OnKd.js → missing-package-json-Cl0vdz6K.js} +1 -1
  109. package/dist/packem_shared/{native-config-sync-Ds1FtcrM.js → native-config-sync-CHMCJx7H.js} +7 -7
  110. package/dist/packem_shared/{osv-bloom-pKp7urSB.js → osv-bloom-DdqDnLCt.js} +2 -2
  111. package/dist/packem_shared/package-version-BNRJ3o9C.js +4 -0
  112. package/dist/packem_shared/{packument-HBVbyf7x.js → packument-B9-WqReu.js} +1 -1
  113. package/dist/packem_shared/{pm-runner-C6eTANt1.js → pm-runner-DRybtzOV.js} +1 -1
  114. package/dist/packem_shared/{project-name-filter-CJ3XX2TI.js → project-name-filter-Dw0fC6IO.js} +1 -1
  115. package/dist/packem_shared/{provenance-D4Cza8cp.js → provenance-CLxuqCfL.js} +1 -1
  116. package/dist/packem_shared/{readJsonSync-DweZd5ZA-0eZh9sGm.js → readJsonSync-DweZd5ZA-CtrDlqpb.js} +1 -1
  117. package/dist/packem_shared/{registry-keys-C0ez2VND.js → registry-keys-cTN24144.js} +1 -1
  118. package/dist/packem_shared/{resolve-explicit-BbT764KS.js → resolve-explicit-Uw6WQl9R.js} +1 -1
  119. package/dist/packem_shared/{resolve-runtime-D_vZovbB.js → resolve-runtime-DztanwkZ.js} +1 -1
  120. package/dist/packem_shared/{run-file-DyPFFN9U.js → run-file-CaE5_xBY.js} +1 -1
  121. package/dist/packem_shared/{runtime-check-D4um-yQq.js → runtime-check-C32yE57I.js} +1 -1
  122. package/dist/packem_shared/{s1ngularity-St6dhKiq.js → s1ngularity-BIYhg82u.js} +1 -1
  123. package/dist/packem_shared/{scan-progress-q-N2JtIp.js → scan-progress-DWfY4zkp.js} +1 -1
  124. package/dist/packem_shared/{selectors-Ce_6UAoY.js → selectors-D2j4M9Ul.js} +1 -1
  125. package/dist/packem_shared/{signatures-Dyeyg1q9.js → signatures-C8iQ5fUq.js} +1 -1
  126. package/dist/packem_shared/target-merge-DLxJTcxn.js +11 -0
  127. package/dist/packem_shared/{target-options-7XcbqGDe.js → target-options-3t4-2F-F.js} +1 -1
  128. package/dist/packem_shared/{toolchain-C_pNMBM6.js → toolchain-BPzbahcQ.js} +1 -1
  129. package/dist/packem_shared/{typosquats-xzcAGPiM.js → typosquats-BWrmhh36.js} +1 -1
  130. package/dist/packem_shared/{use-measured-height-CBjN0fle.js → use-measured-height-BwAwGHjw.js} +1 -1
  131. package/dist/packem_shared/verify-CzUPT6Uk.js +1 -0
  132. package/dist/packem_shared/{vis-update-app-DMAC2pPf.js → vis-update-app-D6Wq8ZHM.js} +1 -1
  133. package/dist/packem_shared/{vis-user-error-xmha3L4n.js → vis-user-error-CfM4_ORo.js} +1 -1
  134. package/dist/packem_shared/{watch-BXOOX7lx.js → watch-D_oAxW_Z.js} +1 -1
  135. package/dist/packem_shared/{watch-loop-Q7UpkVbr.js → watch-loop-BrjblOz5.js} +1 -1
  136. package/dist/runtime/preload.js +1 -1
  137. package/index.d.ts +204 -204
  138. package/index.js +26 -26
  139. package/package.json +13 -13
  140. package/dist/packem_shared/dependency-scan-D_ona0Qm.js +0 -1
  141. package/dist/packem_shared/glob-BUjyjdE8-C4M8e02u.js +0 -1
  142. package/dist/packem_shared/index-CTMU29dI.js +0 -1
  143. package/dist/packem_shared/index-uBVnF4ji.js +0 -35
  144. package/dist/packem_shared/package-version-C47v64aB.js +0 -4
  145. package/dist/packem_shared/public-api-WqUCiyIe.js +0 -131
  146. package/dist/packem_shared/target-merge-Cfy7c__2.js +0 -11
  147. package/dist/packem_shared/verify-Dve9PQj3.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,23 @@
1
+ ## @visulima/vis [3.0.0](https://github.com/visulima/visulima/compare/%40visulima%2Fvis%402.0.2...%40visulima%2Fvis%403.0.0) (2026-08-08)
2
+
3
+
4
+ ### Dependencies
5
+
6
+ * **@visulima/secret-scanner:** upgraded to 2.0.0
7
+ * **@visulima/task-runner:** upgraded to 1.0.4
8
+ * **@visulima/tui:** upgraded to 4.0.0
9
+ * **@visulima/tui-kit:** upgraded to 1.0.3
10
+ * **@visulima/cerebro:** upgraded to 3.0.6
11
+ * **@visulima/colorize:** upgraded to 2.1.1
12
+ * **@visulima/fs:** upgraded to 6.0.0
13
+ * **@visulima/humanizer:** upgraded to 4.0.0
14
+ * **@visulima/package:** upgraded to 5.0.12
15
+ * **@visulima/pail:** upgraded to 4.1.1
16
+ * **@visulima/path:** upgraded to 4.0.0
17
+ * **@visulima/redact:** upgraded to 4.0.0
18
+ * **@visulima/tsconfig:** upgraded to 3.2.7
19
+ * **@visulima/yaml:** upgraded to 1.0.0
20
+
1
21
  ## @visulima/vis [2.0.2](https://github.com/visulima/visulima/compare/%40visulima%2Fvis%402.0.1...%40visulima%2Fvis%402.0.2) (2026-08-02)
2
22
 
3
23
 
package/LICENSE.md CHANGED
@@ -4031,9 +4031,41 @@ Repository: git+https://github.com/visulima/visulima.git
4031
4031
  > >
4032
4032
  > > # Licenses of bundled types
4033
4033
  > > The published @visulima/fs artifact additionally contains code with the following licenses:
4034
- > > ISC, MIT
4034
+ > > MIT
4035
4035
  > >
4036
4036
  > > # Bundled types:
4037
+ > > ## @visulima/yaml
4038
+ > > License: MIT
4039
+ > > By: Daniel Bannert
4040
+ > > Repository: git+https://github.com/visulima/visulima.git
4041
+ > >
4042
+ > > > MIT License
4043
+ > > >
4044
+ > > > Copyright (c) 2026 visulima
4045
+ > > >
4046
+ > > > Permission is hereby granted, free of charge, to any person obtaining a copy
4047
+ > > > of this software and associated documentation files (the "Software"), to deal
4048
+ > > > in the Software without restriction, including without limitation the rights
4049
+ > > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4050
+ > > > copies of the Software, and to permit persons to whom the Software is
4051
+ > > > furnished to do so, subject to the following conditions:
4052
+ > > >
4053
+ > > > The above copyright notice and this permission notice shall be included in all
4054
+ > > > copies or substantial portions of the Software.
4055
+ > > >
4056
+ > > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4057
+ > > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4058
+ > > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4059
+ > > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4060
+ > > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4061
+ > > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4062
+ > > > SOFTWARE.
4063
+ > > >
4064
+ > > >
4065
+ > > >
4066
+ > >
4067
+ > > ---------------------------------------
4068
+ > >
4037
4069
  > > ## is-fs-case-sensitive
4038
4070
  > > License: MIT
4039
4071
  > > By: Hiroki Osame
@@ -4089,27 +4121,6 @@ Repository: git+https://github.com/visulima/visulima.git
4089
4121
  > > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4090
4122
  > > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4091
4123
  > > > SOFTWARE.
4092
- > >
4093
- > > ---------------------------------------
4094
- > >
4095
- > > ## yaml
4096
- > > License: ISC
4097
- > > By: Eemeli Aro
4098
- > > Repository: github:eemeli/yaml
4099
- > >
4100
- > > > Copyright Eemeli Aro <eemeli@gmail.com>
4101
- > > >
4102
- > > > Permission to use, copy, modify, and/or distribute this software for any purpose
4103
- > > > with or without fee is hereby granted, provided that the above copyright notice
4104
- > > > and this permission notice appear in all copies.
4105
- > > >
4106
- > > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4107
- > > > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
4108
- > > > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4109
- > > > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
4110
- > > > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4111
- > > > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
4112
- > > > THIS SOFTWARE.
4113
4124
  >
4114
4125
  > ---------------------------------------
4115
4126
  >
@@ -4557,9 +4568,41 @@ Repository: git+https://github.com/visulima/visulima.git
4557
4568
  >
4558
4569
  > # Licenses of bundled types
4559
4570
  > The published @visulima/fs artifact additionally contains code with the following licenses:
4560
- > ISC, MIT
4571
+ > MIT
4561
4572
  >
4562
4573
  > # Bundled types:
4574
+ > ## @visulima/yaml
4575
+ > License: MIT
4576
+ > By: Daniel Bannert
4577
+ > Repository: git+https://github.com/visulima/visulima.git
4578
+ >
4579
+ > > MIT License
4580
+ > >
4581
+ > > Copyright (c) 2026 visulima
4582
+ > >
4583
+ > > Permission is hereby granted, free of charge, to any person obtaining a copy
4584
+ > > of this software and associated documentation files (the "Software"), to deal
4585
+ > > in the Software without restriction, including without limitation the rights
4586
+ > > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
4587
+ > > copies of the Software, and to permit persons to whom the Software is
4588
+ > > furnished to do so, subject to the following conditions:
4589
+ > >
4590
+ > > The above copyright notice and this permission notice shall be included in all
4591
+ > > copies or substantial portions of the Software.
4592
+ > >
4593
+ > > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
4594
+ > > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
4595
+ > > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
4596
+ > > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
4597
+ > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4598
+ > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4599
+ > > SOFTWARE.
4600
+ > >
4601
+ > >
4602
+ > >
4603
+ >
4604
+ > ---------------------------------------
4605
+ >
4563
4606
  > ## is-fs-case-sensitive
4564
4607
  > License: MIT
4565
4608
  > By: Hiroki Osame
@@ -4615,27 +4658,6 @@ Repository: git+https://github.com/visulima/visulima.git
4615
4658
  > > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
4616
4659
  > > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
4617
4660
  > > SOFTWARE.
4618
- >
4619
- > ---------------------------------------
4620
- >
4621
- > ## yaml
4622
- > License: ISC
4623
- > By: Eemeli Aro
4624
- > Repository: github:eemeli/yaml
4625
- >
4626
- > > Copyright Eemeli Aro <eemeli@gmail.com>
4627
- > >
4628
- > > Permission to use, copy, modify, and/or distribute this software for any purpose
4629
- > > with or without fee is hereby granted, provided that the above copyright notice
4630
- > > and this permission notice appear in all copies.
4631
- > >
4632
- > > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
4633
- > > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
4634
- > > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
4635
- > > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
4636
- > > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
4637
- > > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
4638
- > > THIS SOFTWARE.
4639
4661
 
4640
4662
  ---------------------------------------
4641
4663
 
@@ -9921,6 +9943,35 @@ Repository: git+https://github.com/visulima/visulima.git
9921
9943
 
9922
9944
  ---------------------------------------
9923
9945
 
9946
+ ## @visulima/yaml
9947
+ License: MIT
9948
+ By: Daniel Bannert
9949
+ Repository: git+https://github.com/visulima/visulima.git
9950
+
9951
+ > MIT License
9952
+ >
9953
+ > Copyright (c) 2026 visulima
9954
+ >
9955
+ > Permission is hereby granted, free of charge, to any person obtaining a copy
9956
+ > of this software and associated documentation files (the "Software"), to deal
9957
+ > in the Software without restriction, including without limitation the rights
9958
+ > to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9959
+ > copies of the Software, and to permit persons to whom the Software is
9960
+ > furnished to do so, subject to the following conditions:
9961
+ >
9962
+ > The above copyright notice and this permission notice shall be included in all
9963
+ > copies or substantial portions of the Software.
9964
+ >
9965
+ > THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
9966
+ > IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
9967
+ > FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
9968
+ > AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
9969
+ > LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
9970
+ > OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
9971
+ > SOFTWARE.
9972
+
9973
+ ---------------------------------------
9974
+
9924
9975
  ## @yarnpkg/parsers
9925
9976
  License: BSD-2-Clause
9926
9977
  Repository: git+https://github.com/yarnpkg/berry.git
@@ -11464,27 +11515,6 @@ Repository: git+https://github.com/npm/validate-npm-package-name.git
11464
11515
 
11465
11516
  ---------------------------------------
11466
11517
 
11467
- ## yaml
11468
- License: ISC
11469
- By: Eemeli Aro
11470
- Repository: github:eemeli/yaml
11471
-
11472
- > Copyright Eemeli Aro <eemeli@gmail.com>
11473
- >
11474
- > Permission to use, copy, modify, and/or distribute this software for any purpose
11475
- > with or without fee is hereby granted, provided that the above copyright notice
11476
- > and this permission notice appear in all copies.
11477
- >
11478
- > THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
11479
- > REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND
11480
- > FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11481
- > INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
11482
- > OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
11483
- > TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF
11484
- > THIS SOFTWARE.
11485
-
11486
- ---------------------------------------
11487
-
11488
11518
  ## yoga-layout
11489
11519
  License: MIT
11490
11520
  By: Meta Open Source
package/dist/bin.js CHANGED
@@ -1 +1 @@
1
- import"./packem_shared/compile-cache-B_Vf_WxT.js";import"./packem_shared/bin-CtzhnYMp.js";
1
+ import"./packem_shared/compile-cache-B_Vf_WxT.js";import"./packem_shared/bin-B-TytgzW.js";
package/dist/binx.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{V as o,p as c,e as i,r as a,i as p}from"./packem_shared/vis-user-error-xmha3L4n.js";import{c as n}from"./packem_shared/compile-cache-B_Vf_WxT.js";import{m as r}from"./packem_shared/package-version-C47v64aB.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()}
2
+ import{V as o,p as c,e as i,r as a,i as p}from"./packem_shared/vis-user-error-CfM4_ORo.js";import{c as n}from"./packem_shared/compile-cache-B_Vf_WxT.js";import{m as r}from"./packem_shared/package-version-BNRJ3o9C.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()}
3
3
  `),process.exit(0));process.argv.splice(2,0,"dlx");n();const e=o("visx",{packageName:"visx",packageVersion:r()}),d=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(c({concise:p,detailed:d,exitOnError:!1}));e.addCommand(i);a(e);
@@ -1,8 +1,8 @@
1
- import{createRequire as F}from"node:module";import{F as _,m as P}from"../packem_shared/target-merge-Cfy7c__2.js";import{w as c,v as b,l as d,d as l,J as y,q as C}from"../packem_shared/index-uBVnF4ji.js";import{i as I}from"./ts-loader.js";import{otelPlugin as vt}from"../packem_shared/otelPlugin-DmKDBaPo.js";import{definePlugin as $t}from"../packem_shared/definePlugin-DoUcoYSy.js";import{a as O}from"../packem_shared/readJsonSync-DweZd5ZA-0eZh9sGm.js";let G;const V=t=>(G??=F(import.meta.url))(t),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=t=>{if(typeof p<"u"&&p.versions&&p.versions.node){const[e,s]=p.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return p.getBuiltinModule(t)}return V(t)},{createHash:T}=k("node:crypto"),{readdirSync:$,readFileSync:q}=k("node:fs"),{createRequire:N}=k("node:module");class h extends Error{chain;constructor(e,s,o){super(e,o),this.name=this.constructor.name,this.chain=s}}class K extends h{constructor(e,s){const o=[...s,`${e} (re-enters)`].join(" → ");super(`Config cycle: ${o}`,s)}}class x extends h{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(`
1
+ import{createRequire as G}from"node:module";import{K as _,m as N}from"../packem_shared/target-merge-DLxJTcxn.js";import{w as c,v as b,l as d,d as l,J as y,q as C}from"../packem_shared/index-BLtnel38.js";import{i as P}from"./ts-loader.js";import{otelPlugin as vt}from"../packem_shared/otelPlugin-DmKDBaPo.js";import{definePlugin as $t}from"../packem_shared/definePlugin-DoUcoYSy.js";import{a as O}from"../packem_shared/readJsonSync-DweZd5ZA-CtrDlqpb.js";let F;const V=t=>(F??=G(import.meta.url))(t),p=typeof globalThis<"u"&&typeof globalThis.process<"u"?globalThis.process:process,k=t=>{if(typeof p<"u"&&p.versions&&p.versions.node){const[e,s]=p.versions.node.split(".").map(Number);if(e>22||e===22&&s>=3||e===20&&s>=16)return p.getBuiltinModule(t)}return V(t)},{createHash:T}=k("node:crypto"),{readdirSync:$,readFileSync:q}=k("node:fs"),{createRequire:K}=k("node:module");class h extends Error{chain;constructor(e,s,o){super(e,o),this.name=this.constructor.name,this.chain=s}}class I extends h{constructor(e,s){const o=[...s,`${e} (re-enters)`].join(" → ");super(`Config cycle: ${o}`,s)}}class x extends h{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
2
  `),s),this.filePath=e,this.removedKeys=o}}class j extends h{constructor(e,s,o){const r=o instanceof Error?o.message:String(o),n=s.length>0?`
3
3
  Chain: ${s.join(" → ")}`:"";super(`Failed to load ${e}: ${r}${n}`,s,{cause:o})}}const L=t=>t.join(" → ");class g extends h{constructor(e,s,o){const r=s.length>0?s[s.length-1]:"<unknown>",n=o.length>0?`
4
4
  Tried:
5
5
  ${o.join(`
6
6
  `)}`:"";super(`Cannot resolve "${e}" extended from ${r}.${n}
7
7
  Chain: ${L(s)}`,s)}}const M=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},U=t=>Object.hasOwn(t,"targets")&&!Object.hasOwn(t,"tasks")?[{name:"targets",renamedTo:"tasks"}]:[],W=(t,e,s)=>{if(!s||typeof s!="object")return;const o=M(s);if(o.length>0)throw new x(t,e,o)},B=(t,e,s)=>{if(!s||typeof s!="object")return;const o=U(s);if(o.length>0)throw new x(t,e,o)},E=["vis.config.ts","vis.config.mts","vis.config.cts","vis.config.js","vis.config.mjs","vis.config.cjs"],J=new Set(E),R=["vis.task.ts","vis.task.mts","vis.task.cts","vis.task.js","vis.task.mjs","vis.task.cjs"],H=new Set(R),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=>J.has(o)));for(const o of E)if(s.has(o))return c(t,o)},Q=t=>{let e;try{e=$(t)}catch{return}const s=new Set(e.filter(o=>H.has(o)));for(const o of R)if(s.has(o))return c(t,o)},S=t=>T("sha256").update(q(t)).digest("hex"),X=t=>{const e=T("sha256"),s=[...t].sort();for(const o of s)e.update(o),e.update(":"),e.update(S(o)),e.update(`
8
- `);return e.digest("hex")},Z=t=>{const e=c(t,"node_modules");if(d(e)){const o=c(e,".cache","vis");return l(o),c(o,"vis-config-cache.json")}const s=_("vis",{create:!0,cwd:t});return s?c(s,"vis-config-cache.json"):void 0},tt=(t,e)=>{if(d(t))try{const s=O(t);if(s.hash===e)return s.config}catch{}},et=(t,e,s)=>{try{l(y(t)),C(t,{config:s,hash:e})}catch{}},st=t=>t===void 0?[]:Array.isArray(t)?t:[t],ot=(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),d(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)}},A=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)}},nt=(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 A(t,e);W(t,e,n);const a=st(n.extends);for(const i of a){const f=ot(i,t,e);await D(f,[...e,t],s,o,r)}o.set(t,n),r.push(t)}finally{s.delete(t)}}},gt=async(t,e)=>{let s;if(e?.explicitConfigPath){const u=b(e.explicitConfigPath)?e.explicitConfigPath:c(t,e.explicitConfigPath);if(!d(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=X(n),i=Z(t);if(i){const u=tt(i,a);if(u)return u}let f={};for(const u of n)f=nt(f,r.get(u));const w=v(f);return i&&et(i,a,w),w},rt=t=>t.replaceAll(/[^\w.-]+/g,"_"),at=(t,e)=>{const s=c(t,"node_modules"),o=rt(e);if(d(s)){const n=c(s,".cache","vis","task-configs");return l(n),c(n,`${o}.json`)}const r=_("vis",{create:!0,cwd:t});return r?c(r,"task-configs",`${o}.json`):void 0},it=(t,e)=>{if(d(t))try{const s=O(t);if(s.hash===e)return s.config}catch{}},ct=(t,e,s)=>{try{l(y(t)),C(t,{config:s,hash:e})}catch{}},mt=async(t,e,s)=>{const o=Q(e);if(!o)return;const r=S(o),n=at(t,s);if(n){const f=it(n,r);if(f)return f}const a=await A(o,[]);B(o,[],a);const i=a;return n&&ct(n,r,i),i},kt=t=>t,yt=t=>t;export{E as CONFIG_FILES,ht as DEFAULT_MIN_RELEASE_AGE_MINUTES,m as SECURITY_DEFAULTS,R as TASK_CONFIG_FILES,v as applyDefaults,yt as defineConfig,$t as definePlugin,kt as defineTaskConfig,z as findVisConfigFile,Q as findVisTaskConfigFile,gt as loadVisConfig,mt as loadVisTaskConfig,vt as otelPlugin};
8
+ `);return e.digest("hex")},Z=t=>{const e=c(t,"node_modules");if(d(e)){const o=c(e,".cache","vis");return l(o),c(o,"vis-config-cache.json")}const s=_("vis",{create:!0,cwd:t});return s?c(s,"vis-config-cache.json"):void 0},tt=(t,e)=>{if(d(t))try{const s=O(t);if(s.hash===e)return s.config}catch{}},et=(t,e,s)=>{try{l(y(t)),C(t,{config:s,hash:e})}catch{}},st=t=>t===void 0?[]:Array.isArray(t)?t:[t],ot=(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),d(n))return n;throw new g(t,[...s,e],o)}try{return K(e).resolve(t)}catch{throw o.push(`require.resolve("${t}") from ${e}`),new g(t,[...s,e],o)}},A=async(t,e)=>{let s;try{s=(await P(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)}},nt=(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]=N(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 I(t,e);if(!o.has(t)){s.add(t);try{const n=await A(t,e);W(t,e,n);const a=st(n.extends);for(const i of a){const f=ot(i,t,e);await D(f,[...e,t],s,o,r)}o.set(t,n),r.push(t)}finally{s.delete(t)}}},gt=async(t,e)=>{let s;if(e?.explicitConfigPath){const u=b(e.explicitConfigPath)?e.explicitConfigPath:c(t,e.explicitConfigPath);if(!d(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=X(n),i=Z(t);if(i){const u=tt(i,a);if(u)return u}let f={};for(const u of n)f=nt(f,r.get(u));const w=v(f);return i&&et(i,a,w),w},rt=t=>t.replaceAll(/[^\w.-]+/g,"_"),at=(t,e)=>{const s=c(t,"node_modules"),o=rt(e);if(d(s)){const n=c(s,".cache","vis","task-configs");return l(n),c(n,`${o}.json`)}const r=_("vis",{create:!0,cwd:t});return r?c(r,"task-configs",`${o}.json`):void 0},it=(t,e)=>{if(d(t))try{const s=O(t);if(s.hash===e)return s.config}catch{}},ct=(t,e,s)=>{try{l(y(t)),C(t,{config:s,hash:e})}catch{}},mt=async(t,e,s)=>{const o=Q(e);if(!o)return;const r=S(o),n=at(t,s);if(n){const f=it(n,r);if(f)return f}const a=await A(o,[]);B(o,[],a);const i=a;return n&&ct(n,r,i),i},kt=t=>t,yt=t=>t;export{E as CONFIG_FILES,ht as DEFAULT_MIN_RELEASE_AGE_MINUTES,m as SECURITY_DEFAULTS,R as TASK_CONFIG_FILES,v as applyDefaults,yt as defineConfig,$t as definePlugin,kt as defineTaskConfig,z as findVisConfigFile,Q as findVisTaskConfigFile,gt as loadVisConfig,mt as loadVisTaskConfig,vt as otelPlugin};
@@ -1,2 +1,2 @@
1
- import{s as c,E as n,I as f}from"../packem_shared/index.server-CusjRLCh.js";import{p as i}from"./cli-main.js";import{g as l}from"../packem_shared/osv-bloom-pKp7urSB.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)}
1
+ import{s as c,E as n,I as f}from"../packem_shared/index.server-CusjRLCh.js";import{p as i}from"./cli-main.js";import{g as l}from"../packem_shared/osv-bloom-DdqDnLCt.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-CusjRLCh.js";import{p as i}from"./cli-main.js";import{s as p}from"../packem_shared/scan-progress-q-N2JtIp.js";import{s as d,D}from"../packem_shared/osv-bloom-pKp7urSB.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)}
1
+ import{E as m}from"../packem_shared/index.server-CusjRLCh.js";import{p as i}from"./cli-main.js";import{s as p}from"../packem_shared/scan-progress-DWfY4zkp.js";import{s as d,D}from"../packem_shared/osv-bloom-DdqDnLCt.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};