@visulima/vis 1.0.0-alpha.8 → 1.0.0-alpha.9

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 (280) hide show
  1. package/CHANGELOG.md +90 -57
  2. package/LICENSE.md +44 -1
  3. package/README.md +56 -0
  4. package/dist/bin.js +1 -1003
  5. package/dist/config.d.ts +1073 -68
  6. package/dist/config.js +1 -1
  7. package/dist/generate/index.d.ts +155 -30
  8. package/dist/packem_chunks/handler.js +1 -0
  9. package/dist/packem_chunks/handler10.js +1 -0
  10. package/dist/packem_chunks/handler11.js +1 -0
  11. package/dist/packem_chunks/handler12.js +153 -0
  12. package/dist/packem_chunks/handler13.js +1 -0
  13. package/dist/packem_chunks/handler14.js +3 -0
  14. package/dist/packem_chunks/handler15.js +1 -0
  15. package/dist/packem_chunks/handler16.js +2 -0
  16. package/dist/packem_chunks/handler17.js +7 -0
  17. package/dist/packem_chunks/handler18.js +1 -0
  18. package/dist/packem_chunks/handler19.js +19 -0
  19. package/dist/packem_chunks/handler2.js +1 -0
  20. package/dist/packem_chunks/handler20.js +428 -0
  21. package/dist/packem_chunks/handler21.js +22 -0
  22. package/dist/packem_chunks/handler22.js +3 -0
  23. package/dist/packem_chunks/handler23.js +5 -0
  24. package/dist/packem_chunks/handler24.js +1 -0
  25. package/dist/packem_chunks/handler25.js +20 -0
  26. package/dist/packem_chunks/handler26.js +1 -0
  27. package/dist/packem_chunks/handler27.js +1 -0
  28. package/dist/packem_chunks/handler28.js +1 -0
  29. package/dist/packem_chunks/handler29.js +2 -0
  30. package/dist/packem_chunks/handler3.js +2 -0
  31. package/dist/packem_chunks/handler30.js +22 -0
  32. package/dist/packem_chunks/handler31.js +1 -0
  33. package/dist/packem_chunks/handler32.js +1 -0
  34. package/dist/packem_chunks/handler33.js +37 -0
  35. package/dist/packem_chunks/handler34.js +3 -0
  36. package/dist/packem_chunks/handler35.js +23 -0
  37. package/dist/packem_chunks/handler36.js +5 -0
  38. package/dist/packem_chunks/handler37.js +27 -0
  39. package/dist/packem_chunks/handler38.js +1 -0
  40. package/dist/packem_chunks/handler39.js +2 -0
  41. package/dist/packem_chunks/handler4.js +5 -0
  42. package/dist/packem_chunks/handler40.js +1 -0
  43. package/dist/packem_chunks/handler41.js +5 -0
  44. package/dist/packem_chunks/handler42.js +1 -0
  45. package/dist/packem_chunks/handler43.js +24 -0
  46. package/dist/packem_chunks/handler44.js +3 -0
  47. package/dist/packem_chunks/handler45.js +1 -0
  48. package/dist/packem_chunks/handler5.js +4 -0
  49. package/dist/packem_chunks/handler6.js +2 -0
  50. package/dist/packem_chunks/handler7.js +24 -0
  51. package/dist/packem_chunks/handler8.js +6 -0
  52. package/dist/packem_chunks/handler9.js +8 -0
  53. package/dist/packem_shared/VisUpdateApp-BBx3idMI.js +1 -0
  54. package/dist/packem_shared/ai-analysis-DDqXRFxY.js +67 -0
  55. package/dist/packem_shared/bin-BaZZ32BK.js +93 -0
  56. package/dist/packem_shared/cache-directory-DL8hfXeG.js +1 -0
  57. package/dist/packem_shared/catalog-CuSpuB_R.js +12 -0
  58. package/dist/packem_shared/dependency-scan-BoLG2Fez.js +1 -0
  59. package/dist/packem_shared/docker-BcfqH4Av.js +2 -0
  60. package/dist/packem_shared/flakiness-DSIHZGBT.js +1 -0
  61. package/dist/packem_shared/otelPlugin-DxyvBcXO.js +1 -0
  62. package/dist/packem_shared/runtime-check-CGHal8SO.js +1 -0
  63. package/dist/packem_shared/selectors-CfH9ZY08.js +3 -0
  64. package/dist/packem_shared/symbols-CIMw60-G.js +1 -0
  65. package/dist/packem_shared/toolchain-C3ZG0o_X.js +5 -0
  66. package/dist/packem_shared/typosquats-Bpq4zcWL.js +1 -0
  67. package/dist/packem_shared/utils-DrNg0XTR.js +1 -0
  68. package/index.js +555 -727
  69. package/package.json +27 -19
  70. package/schemas/project.schema.json +1 -1
  71. package/schemas/vis-config.schema.json +47 -1
  72. package/dist/ai-analysis.d.ts +0 -26
  73. package/dist/ai-cache.d.ts +0 -21
  74. package/dist/ai-types.d.ts +0 -16
  75. package/dist/audit-config.d.ts +0 -24
  76. package/dist/bin.d.ts +0 -1
  77. package/dist/cache-directory.d.ts +0 -73
  78. package/dist/catalog.d.ts +0 -136
  79. package/dist/codeowners.d.ts +0 -30
  80. package/dist/commands/action-graph.d.ts +0 -8
  81. package/dist/commands/add.d.ts +0 -3
  82. package/dist/commands/affected.d.ts +0 -3
  83. package/dist/commands/ai.d.ts +0 -3
  84. package/dist/commands/analyze.d.ts +0 -3
  85. package/dist/commands/approve-builds.d.ts +0 -3
  86. package/dist/commands/audit.d.ts +0 -23
  87. package/dist/commands/cache.d.ts +0 -86
  88. package/dist/commands/check.d.ts +0 -3
  89. package/dist/commands/ci.d.ts +0 -19
  90. package/dist/commands/clean.d.ts +0 -3
  91. package/dist/commands/create/discovery.d.ts +0 -42
  92. package/dist/commands/create/index.d.ts +0 -13
  93. package/dist/commands/create/prompts.d.ts +0 -31
  94. package/dist/commands/create/random-name.d.ts +0 -15
  95. package/dist/commands/create/templates/builtin.d.ts +0 -15
  96. package/dist/commands/create/templates/generator.d.ts +0 -14
  97. package/dist/commands/create/templates/index.d.ts +0 -13
  98. package/dist/commands/create/templates/monorepo.d.ts +0 -16
  99. package/dist/commands/create/templates/remote.d.ts +0 -41
  100. package/dist/commands/create/templates/types.d.ts +0 -46
  101. package/dist/commands/create/utils.d.ts +0 -42
  102. package/dist/commands/dedupe.d.ts +0 -3
  103. package/dist/commands/devcontainer.d.ts +0 -3
  104. package/dist/commands/dlx.d.ts +0 -3
  105. package/dist/commands/docker.d.ts +0 -22
  106. package/dist/commands/doctor.d.ts +0 -15
  107. package/dist/commands/exec.d.ts +0 -3
  108. package/dist/commands/generate.d.ts +0 -10
  109. package/dist/commands/graph.d.ts +0 -3
  110. package/dist/commands/hook/constants.d.ts +0 -13
  111. package/dist/commands/hook/index.d.ts +0 -3
  112. package/dist/commands/hook/install.d.ts +0 -7
  113. package/dist/commands/hook/list.d.ts +0 -28
  114. package/dist/commands/hook/migrate.d.ts +0 -30
  115. package/dist/commands/hook/prek-builtins.d.ts +0 -8
  116. package/dist/commands/hook/prek.d.ts +0 -129
  117. package/dist/commands/hook/run.d.ts +0 -21
  118. package/dist/commands/hook/uninstall.d.ts +0 -3
  119. package/dist/commands/hook/validate.d.ts +0 -17
  120. package/dist/commands/ignore-helpers.d.ts +0 -157
  121. package/dist/commands/ignore.d.ts +0 -17
  122. package/dist/commands/implode.d.ts +0 -3
  123. package/dist/commands/info.d.ts +0 -3
  124. package/dist/commands/init.d.ts +0 -14
  125. package/dist/commands/install.d.ts +0 -3
  126. package/dist/commands/link.d.ts +0 -3
  127. package/dist/commands/list.d.ts +0 -3
  128. package/dist/commands/migrate/backup.d.ts +0 -8
  129. package/dist/commands/migrate/constants.d.ts +0 -16
  130. package/dist/commands/migrate/deps.d.ts +0 -32
  131. package/dist/commands/migrate/gitleaks.d.ts +0 -29
  132. package/dist/commands/migrate/index.d.ts +0 -3
  133. package/dist/commands/migrate/json.d.ts +0 -22
  134. package/dist/commands/migrate/kingfisher.d.ts +0 -14
  135. package/dist/commands/migrate/lint-staged.d.ts +0 -62
  136. package/dist/commands/migrate/moon.d.ts +0 -5
  137. package/dist/commands/migrate/nano-staged.d.ts +0 -30
  138. package/dist/commands/migrate/nx.d.ts +0 -12
  139. package/dist/commands/migrate/prompt.d.ts +0 -2
  140. package/dist/commands/migrate/secretlint.d.ts +0 -14
  141. package/dist/commands/migrate/shared.d.ts +0 -29
  142. package/dist/commands/migrate/turborepo.d.ts +0 -11
  143. package/dist/commands/migrate/types.d.ts +0 -27
  144. package/dist/commands/migrate/verify.d.ts +0 -12
  145. package/dist/commands/optimize.d.ts +0 -38
  146. package/dist/commands/pm.d.ts +0 -3
  147. package/dist/commands/remove.d.ts +0 -3
  148. package/dist/commands/run.d.ts +0 -16
  149. package/dist/commands/sbom.d.ts +0 -10
  150. package/dist/commands/secrets.d.ts +0 -3
  151. package/dist/commands/sort-package-json.d.ts +0 -3
  152. package/dist/commands/staged.d.ts +0 -10
  153. package/dist/commands/status.d.ts +0 -3
  154. package/dist/commands/sync.d.ts +0 -16
  155. package/dist/commands/task-why.d.ts +0 -3
  156. package/dist/commands/unlink.d.ts +0 -3
  157. package/dist/commands/update.d.ts +0 -3
  158. package/dist/commands/upgrade.d.ts +0 -3
  159. package/dist/commands/why.d.ts +0 -3
  160. package/dist/docker.d.ts +0 -73
  161. package/dist/flakiness.d.ts +0 -40
  162. package/dist/generate/discover.d.ts +0 -29
  163. package/dist/generate/loader.d.ts +0 -15
  164. package/dist/generate/moon-adapter/filename-interp.d.ts +0 -42
  165. package/dist/generate/moon-adapter/filters.d.ts +0 -22
  166. package/dist/generate/moon-adapter/frontmatter.d.ts +0 -39
  167. package/dist/generate/moon-adapter/index.d.ts +0 -19
  168. package/dist/generate/moon-adapter/tera-subset.d.ts +0 -85
  169. package/dist/generate/moon-adapter/util.d.ts +0 -14
  170. package/dist/generate/prompts.d.ts +0 -25
  171. package/dist/generate/remote.d.ts +0 -43
  172. package/dist/generate/runner.d.ts +0 -37
  173. package/dist/generate/types.d.ts +0 -152
  174. package/dist/hooks.d.ts +0 -118
  175. package/dist/native-binding.d.ts +0 -158
  176. package/dist/output.d.ts +0 -40
  177. package/dist/overrides.d.ts +0 -82
  178. package/dist/package-manager.d.ts +0 -23
  179. package/dist/packem_shared/otelPlugin-CJLkguJ8.js +0 -1
  180. package/dist/plugins/config-loader.d.ts +0 -3
  181. package/dist/plugins/otel.d.ts +0 -63
  182. package/dist/plugins/post-command.d.ts +0 -3
  183. package/dist/plugins/security-enforcement.d.ts +0 -3
  184. package/dist/pm-runner.d.ts +0 -44
  185. package/dist/run-report.d.ts +0 -40
  186. package/dist/runtime-check.d.ts +0 -27
  187. package/dist/sbom/cyclonedx.d.ts +0 -39
  188. package/dist/sbom/installed-package.d.ts +0 -49
  189. package/dist/sbom/license.d.ts +0 -31
  190. package/dist/sbom/lockfile.d.ts +0 -34
  191. package/dist/sbom/purl.d.ts +0 -25
  192. package/dist/sbom/resolve-specifier.d.ts +0 -24
  193. package/dist/sbom/types.d.ts +0 -196
  194. package/dist/secrets/baseline.d.ts +0 -20
  195. package/dist/secrets/format.d.ts +0 -14
  196. package/dist/secrets/git.d.ts +0 -6
  197. package/dist/secrets/spinner.d.ts +0 -9
  198. package/dist/security.d.ts +0 -64
  199. package/dist/selectors.d.ts +0 -81
  200. package/dist/shell-history.d.ts +0 -16
  201. package/dist/socket-security.d.ts +0 -129
  202. package/dist/staged/cli-parse.d.ts +0 -18
  203. package/dist/staged/config.d.ts +0 -14
  204. package/dist/staged/errors/apply-empty-commit-error.d.ts +0 -4
  205. package/dist/staged/errors/config-error.d.ts +0 -4
  206. package/dist/staged/errors/get-backup-stash-error.d.ts +0 -4
  207. package/dist/staged/errors/git-error.d.ts +0 -6
  208. package/dist/staged/errors/index.d.ts +0 -12
  209. package/dist/staged/errors/restore-original-state-error.d.ts +0 -4
  210. package/dist/staged/errors/staged-error.d.ts +0 -8
  211. package/dist/staged/errors/task-error.d.ts +0 -6
  212. package/dist/staged/git/diff.d.ts +0 -76
  213. package/dist/staged/git/exec.d.ts +0 -43
  214. package/dist/staged/git/index.d.ts +0 -77
  215. package/dist/staged/git/stash.d.ts +0 -37
  216. package/dist/staged/index.d.ts +0 -13
  217. package/dist/staged/match.d.ts +0 -12
  218. package/dist/staged/renderer/index.d.ts +0 -9
  219. package/dist/staged/renderer/ink/index.d.ts +0 -4
  220. package/dist/staged/renderer/plain.d.ts +0 -12
  221. package/dist/staged/tasks/build.d.ts +0 -13
  222. package/dist/staged/tasks/exec.d.ts +0 -56
  223. package/dist/staged/tasks/run.d.ts +0 -26
  224. package/dist/staged/types.d.ts +0 -173
  225. package/dist/target-discovery.d.ts +0 -59
  226. package/dist/target-options.d.ts +0 -261
  227. package/dist/tips.d.ts +0 -41
  228. package/dist/tui/components/CheckProgressApp.d.ts +0 -6
  229. package/dist/tui/components/CommandSummary.d.ts +0 -17
  230. package/dist/tui/components/Header.d.ts +0 -13
  231. package/dist/tui/components/OutputPanel.d.ts +0 -17
  232. package/dist/tui/components/QuitDialog.d.ts +0 -15
  233. package/dist/tui/components/TaskListPanel.d.ts +0 -19
  234. package/dist/tui/components/TaskRow.d.ts +0 -12
  235. package/dist/tui/components/TaskStore.d.ts +0 -80
  236. package/dist/tui/components/VisTaskRunnerApp.d.ts +0 -17
  237. package/dist/tui/components/devcontainer/DevcontainerStore.d.ts +0 -66
  238. package/dist/tui/components/devcontainer/VisDevcontainerApp.d.ts +0 -9
  239. package/dist/tui/components/devcontainer/catalogs/extensions.d.ts +0 -8
  240. package/dist/tui/components/devcontainer/catalogs/features.d.ts +0 -8
  241. package/dist/tui/components/devcontainer/catalogs/filters.d.ts +0 -4
  242. package/dist/tui/components/devcontainer/catalogs/mount-suggestions.d.ts +0 -19
  243. package/dist/tui/components/devcontainer/catalogs/templates.d.ts +0 -8
  244. package/dist/tui/components/devcontainer/devcontainer-io.d.ts +0 -14
  245. package/dist/tui/components/devcontainer/sections/DockerComposeSection.d.ts +0 -11
  246. package/dist/tui/components/devcontainer/sections/EnvironmentSection.d.ts +0 -16
  247. package/dist/tui/components/devcontainer/sections/ExtensionsSection.d.ts +0 -11
  248. package/dist/tui/components/devcontainer/sections/FeaturesSection.d.ts +0 -11
  249. package/dist/tui/components/devcontainer/sections/GeneralSection.d.ts +0 -12
  250. package/dist/tui/components/devcontainer/sections/LifecycleSection.d.ts +0 -13
  251. package/dist/tui/components/devcontainer/sections/MountsSection.d.ts +0 -16
  252. package/dist/tui/components/devcontainer/sections/PortsSection.d.ts +0 -10
  253. package/dist/tui/components/devcontainer/sections/PreviewPanel.d.ts +0 -11
  254. package/dist/tui/components/devcontainer/types.d.ts +0 -53
  255. package/dist/tui/components/devcontainer/validate.d.ts +0 -16
  256. package/dist/tui/components/graph/GraphStore.d.ts +0 -42
  257. package/dist/tui/components/graph/ProjectDetailPanel.d.ts +0 -10
  258. package/dist/tui/components/graph/ProjectListPanel.d.ts +0 -20
  259. package/dist/tui/components/graph/VisGraphApp.d.ts +0 -8
  260. package/dist/tui/components/optimize/OptimizeDetailPanel.d.ts +0 -9
  261. package/dist/tui/components/optimize/OptimizeListPanel.d.ts +0 -16
  262. package/dist/tui/components/optimize/OptimizeStore.d.ts +0 -50
  263. package/dist/tui/components/optimize/VisOptimizeApp.d.ts +0 -8
  264. package/dist/tui/components/optimize/constants.d.ts +0 -7
  265. package/dist/tui/components/update/PackageDetailPanel.d.ts +0 -12
  266. package/dist/tui/components/update/PackageListPanel.d.ts +0 -21
  267. package/dist/tui/components/update/UpdateStore.d.ts +0 -62
  268. package/dist/tui/components/update/VisUpdateApp.d.ts +0 -18
  269. package/dist/tui/dynamic-life-cycle.d.ts +0 -22
  270. package/dist/tui/formatting-utils.d.ts +0 -17
  271. package/dist/tui/pretty-time.d.ts +0 -8
  272. package/dist/tui/static-life-cycle.d.ts +0 -28
  273. package/dist/tui/status-utils.d.ts +0 -20
  274. package/dist/tui/symbols.d.ts +0 -7
  275. package/dist/tui/types.d.ts +0 -11
  276. package/dist/typosquats.d.ts +0 -70
  277. package/dist/upgrade-check.d.ts +0 -30
  278. package/dist/utils.d.ts +0 -22
  279. package/dist/watch.d.ts +0 -65
  280. package/dist/workspace.d.ts +0 -675
package/package.json CHANGED
@@ -1,16 +1,16 @@
1
1
  {
2
2
  "name": "@visulima/vis",
3
- "version": "1.0.0-alpha.8",
3
+ "version": "1.0.0-alpha.9",
4
4
  "description": "A CLI task runner for monorepo workspaces, powered by @visulima/task-runner",
5
5
  "keywords": [
6
- "visulima",
7
- "vis",
6
+ "build",
7
+ "cache",
8
8
  "cli",
9
- "task-runner",
10
9
  "monorepo",
11
- "workspace",
12
- "build",
13
- "cache"
10
+ "task-runner",
11
+ "vis",
12
+ "visulima",
13
+ "workspace"
14
14
  ],
15
15
  "homepage": "https://visulima.com/packages/vis",
16
16
  "bugs": {
@@ -38,6 +38,11 @@
38
38
  },
39
39
  "sideEffects": false,
40
40
  "type": "module",
41
+ "imports": {
42
+ "#native": {
43
+ "default": "./index.js"
44
+ }
45
+ },
41
46
  "exports": {
42
47
  "./config": {
43
48
  "types": "./dist/config.d.ts",
@@ -47,6 +52,10 @@
47
52
  "types": "./dist/generate/index.d.ts",
48
53
  "default": "./dist/generate/index.js"
49
54
  },
55
+ "./native": {
56
+ "types": "./index.d.ts",
57
+ "default": "./index.js"
58
+ },
50
59
  "./schemas/project.schema.json": "./schemas/project.schema.json",
51
60
  "./schemas/vis-config.schema.json": "./schemas/vis-config.schema.json",
52
61
  "./package.json": "./package.json"
@@ -59,16 +68,16 @@
59
68
  "dist/**",
60
69
  "schemas/**",
61
70
  "index.js",
71
+ "index.d.ts",
62
72
  "README.md",
63
73
  "CHANGELOG.md",
64
74
  "LICENSE.md"
65
75
  ],
66
76
  "dependencies": {
67
77
  "@bomb.sh/tab": "^0.0.14",
68
- "@nkzw/safe-word-list": "^3.1.2",
69
78
  "@socketsecurity/registry": "^2.0.2",
70
79
  "@visulima/ansi": "4.0.0-alpha.13",
71
- "@visulima/cerebro": "3.0.0-alpha.11",
80
+ "@visulima/cerebro": "3.0.0-alpha.12",
72
81
  "@visulima/colorize": "2.0.0-alpha.10",
73
82
  "@visulima/find-ai-runner": "1.0.0-alpha.5",
74
83
  "@visulima/find-cache-dir": "3.0.0-alpha.9",
@@ -79,7 +88,7 @@
79
88
  "@visulima/secret-scanner": "1.0.0-alpha.1",
80
89
  "@visulima/string": "3.0.0-alpha.11",
81
90
  "@visulima/task-runner": "1.0.0-alpha.7",
82
- "@visulima/tui": "1.0.0-alpha.4",
91
+ "@visulima/tui": "1.0.0-alpha.5",
83
92
  "execa": "^9.6.1",
84
93
  "giget": "^3.2.0",
85
94
  "hookable": "^6.1.1",
@@ -91,19 +100,18 @@
91
100
  "react-reconciler": ">=0.33.0",
92
101
  "semver": "^7.7.4",
93
102
  "smol-toml": "^1.6.1",
94
- "validate-npm-package-name": "^7.0.2",
95
103
  "yaml": "2.8.3",
96
104
  "zeptomatch": "^2.1.0"
97
105
  },
98
106
  "optionalDependencies": {
99
- "@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.8",
100
- "@visulima/vis-binding-darwin-x64": "1.0.0-alpha.8",
101
- "@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.8",
102
- "@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.8",
103
- "@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.8",
104
- "@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.8",
105
- "@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.8",
106
- "@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.8"
107
+ "@visulima/vis-binding-darwin-arm64": "1.0.0-alpha.9",
108
+ "@visulima/vis-binding-linux-arm64-musl": "1.0.0-alpha.9",
109
+ "@visulima/vis-binding-linux-arm64-gnu": "1.0.0-alpha.9",
110
+ "@visulima/vis-binding-linux-x64-gnu": "1.0.0-alpha.9",
111
+ "@visulima/vis-binding-linux-x64-musl": "1.0.0-alpha.9",
112
+ "@visulima/vis-binding-darwin-x64": "1.0.0-alpha.9",
113
+ "@visulima/vis-binding-win32-arm64-msvc": "1.0.0-alpha.9",
114
+ "@visulima/vis-binding-win32-x64-msvc": "1.0.0-alpha.9"
107
115
  },
108
116
  "engines": {
109
117
  "node": "^22.14.0 || >=24.10.0"
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://visulima.dev/schemas/project.schema.json",
3
+ "$id": "https://visulima.com/schemas/project.schema.json",
4
4
  "title": "vis project.json",
5
5
  "description": "Per-project configuration for @visulima/vis. Place a project.json in each workspace package root.",
6
6
  "type": "object",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "$schema": "https://json-schema.org/draft/2020-12/schema",
3
- "$id": "https://visulima.dev/schemas/vis-config.schema.json",
3
+ "$id": "https://visulima.com/schemas/vis-config.schema.json",
4
4
  "title": "vis.config.ts",
5
5
  "description": "Workspace configuration for @visulima/vis. Used by defineConfig() in vis.config.ts. This schema is for non-TypeScript editors; TypeScript users get autocomplete from defineConfig() types.",
6
6
  "type": "object",
@@ -92,6 +92,19 @@
92
92
  }
93
93
  }
94
94
  },
95
+ "install": {
96
+ "type": "object",
97
+ "description": "Installer backend selection. Lets `vis install` (and friends) use aube — a fast Rust-native PM that reads/writes pnpm/npm/yarn/bun lockfiles in place — or pin a specific conventional PM. Aube must be installed separately; vis does not bundle it.",
98
+ "additionalProperties": false,
99
+ "properties": {
100
+ "backend": {
101
+ "type": "string",
102
+ "enum": ["auto", "aube", "pnpm", "npm", "yarn", "bun"],
103
+ "default": "auto",
104
+ "description": "Which PM runs install/add/remove. `auto` uses aube when it is on PATH and falls back to the lockfile-detected PM. Explicit names error if the binary is missing. CLI flag `--installer` and env var `VIS_INSTALLER` override this."
105
+ }
106
+ }
107
+ },
95
108
  "create": {
96
109
  "type": "object",
97
110
  "description": "Configuration for vis create scaffolding command.",
@@ -169,6 +182,39 @@
169
182
  "sortScripts": { "type": "boolean", "default": false }
170
183
  }
171
184
  },
185
+ "toolchain": {
186
+ "type": "object",
187
+ "description": "Toolchain (Node / pnpm / python / ...) management. Delegates to proto / mise / fnm / volta / asdf / nvm / corepack.",
188
+ "additionalProperties": false,
189
+ "properties": {
190
+ "autoInstall": {
191
+ "type": "boolean",
192
+ "description": "Run the right manager install on engines.node mismatch before vis run / vis ci proceed. Default: true when a manager is detected on PATH."
193
+ },
194
+ "preferredManager": {
195
+ "type": "string",
196
+ "enum": ["proto", "mise", "fnm", "volta", "asdf", "nvm", "corepack", "none"],
197
+ "description": "Explicit manager override, bypasses auto-detection. Note: self-activate is resolved automatically for pnpm/yarn + packageManager pins and is not a valid override."
198
+ },
199
+ "tools": {
200
+ "type": "object",
201
+ "description": "Override engines/packageManager-derived pins.",
202
+ "additionalProperties": false,
203
+ "properties": {
204
+ "bun": { "type": "string" },
205
+ "deno": { "type": "string" },
206
+ "go": { "type": "string" },
207
+ "node": { "type": "string" },
208
+ "npm": { "type": "string" },
209
+ "pnpm": { "type": "string" },
210
+ "python": { "type": "string" },
211
+ "ruby": { "type": "string" },
212
+ "rust": { "type": "string" },
213
+ "yarn": { "type": "string" }
214
+ }
215
+ }
216
+ }
217
+ },
172
218
  "staged": {
173
219
  "description": "Staged file patterns and commands (replaces lint-staged). Accepts string, string[], {title, task}, or mixed arrays. Function-form tasks are supported at runtime but are not JSON-schema-representable.",
174
220
  "type": "object",
@@ -1,26 +0,0 @@
1
- import type { AiProviderInfo } from "@visulima/find-ai-runner";
2
- import type { AiAnalysisResult, AiRecommendation, AnalysisType } from "./ai-types.d.ts";
3
- import type { OutdatedEntry } from "./catalog.d.ts";
4
- interface AiConfig {
5
- /** Cache TTL in milliseconds. Overrides default (1h / 30min for security). */
6
- cacheTtl?: number;
7
- /** Override default provider priority. Higher = preferred. */
8
- priority?: Record<string, number>;
9
- /** Use a specific provider, skip auto-detection. */
10
- provider?: string;
11
- }
12
- declare const DEFAULT_PRIORITY: Record<string, number>;
13
- /** Resolve which AI provider to use based on config and availability. */
14
- declare const resolveProvider: (config?: AiConfig) => AiProviderInfo | undefined;
15
- declare const validateAnalysisType: (type: string) => AnalysisType;
16
- declare const buildAnalysisPrompt: (outdated: OutdatedEntry[], analysisType?: AnalysisType) => string;
17
- declare const extractJson: (text: string) => unknown | undefined;
18
- declare const normalizeRecommendation: (raw: Record<string, unknown>) => AiRecommendation;
19
- declare const parseAiResponse: (text: string, provider: string, analysisType: AnalysisType) => AiAnalysisResult;
20
- declare const ruleBasedAnalysis: (outdated: OutdatedEntry[], analysisType: AnalysisType) => AiAnalysisResult;
21
- declare const formatAiAnalysis: (result: AiAnalysisResult) => string;
22
- declare const formatAiAnalysisJson: (result: AiAnalysisResult) => string;
23
- declare const runAiAnalysis: (outdated: OutdatedEntry[], logger: Console, config?: AiConfig, analysisType?: AnalysisType) => Promise<AiAnalysisResult>;
24
- export type { AiConfig };
25
- export { buildAnalysisPrompt, DEFAULT_PRIORITY, extractJson, formatAiAnalysis, formatAiAnalysisJson, normalizeRecommendation, parseAiResponse, resolveProvider, ruleBasedAnalysis, runAiAnalysis, validateAnalysisType, };
26
- export { type AiAnalysisResult, type AiRecommendation, type AnalysisType } from "./ai-types.d.ts";
@@ -1,21 +0,0 @@
1
- import type { AiAnalysisResult, AnalysisType } from "./ai-types.d.ts";
2
- import type { OutdatedEntry } from "./catalog.d.ts";
3
- interface CacheEntry {
4
- createdAt: number;
5
- result: AiAnalysisResult;
6
- ttlMs: number;
7
- }
8
- interface CacheStats {
9
- entries: number;
10
- newestEntry: number | undefined;
11
- oldestEntry: number | undefined;
12
- totalSizeBytes: number;
13
- }
14
- declare const buildCacheKey: (provider: string, analysisType: string, outdated: Pick<OutdatedEntry, "currentRange" | "packageName" | "targetVersion">[]) => string;
15
- declare const getCachedAnalysis: (cacheKey: string) => AiAnalysisResult | undefined;
16
- declare const setCachedAnalysis: (cacheKey: string, result: AiAnalysisResult, ttlMs: number) => void;
17
- declare const getTtlForAnalysisType: (analysisType: AnalysisType | string, configTtl?: number) => number;
18
- declare const getCacheStats: () => CacheStats;
19
- declare const clearCache: () => number;
20
- export type { CacheEntry, CacheStats };
21
- export { buildCacheKey, clearCache, getCachedAnalysis, getCacheStats, getTtlForAnalysisType, setCachedAnalysis };
@@ -1,16 +0,0 @@
1
- export type AnalysisType = "compatibility" | "impact" | "recommend" | "security";
2
- export interface AiRecommendation {
3
- action: "defer" | "review" | "skip" | "update";
4
- breakingChanges: string[];
5
- effort: "high" | "low" | "medium";
6
- package: string;
7
- reason: string;
8
- riskLevel: "critical" | "high" | "low" | "medium";
9
- }
10
- export interface AiAnalysisResult {
11
- analysisType: AnalysisType;
12
- provider: string;
13
- recommendations: AiRecommendation[];
14
- summary: string;
15
- warnings: string[];
16
- }
@@ -1,24 +0,0 @@
1
- /**
2
- * Read and sync native package manager audit exclusion configs.
3
- *
4
- * Supports:
5
- * - pnpm: auditConfig.ignoreCves / ignoreGhsas in pnpm-workspace.yaml
6
- * - yarn berry: npmAuditIgnoreAdvisories / npmAuditExcludePackages in .yarnrc.yml
7
- * - npm: no native mechanism (vis provides the only exclusion layer)
8
- * - bun: CLI-only --ignore (no config file), vis provides the config layer
9
- */
10
- interface NativeAuditExclusions {
11
- /** Package names to exclude from audit (yarn berry only). */
12
- excludedPackages: string[];
13
- /** Advisory IDs to ignore (CVE-*, GHSA-*, or numeric IDs). */
14
- ignoredAdvisories: string[];
15
- }
16
- /** Checks if a value matches any pattern in a list (exact or trailing glob). */
17
- declare const matchesGlobList: (value: string, patterns: string[]) => boolean;
18
- declare const readNativeAuditExclusions: (workspaceRoot: string, pm: string) => NativeAuditExclusions;
19
- /** Checks if any of the given IDs (primary + aliases) match the exclusion list. */
20
- declare const isAdvisoryExcluded: (vulnId: string, exclusions: NativeAuditExclusions, aliases?: string[]) => boolean;
21
- declare const isPackageExcluded: (packageName: string, exclusions: NativeAuditExclusions) => boolean;
22
- declare const syncAcceptedRisksToNativeConfig: (pm: string, workspaceRoot: string, advisoryIds: string[]) => string[];
23
- export type { NativeAuditExclusions };
24
- export { isAdvisoryExcluded, isPackageExcluded, matchesGlobList, readNativeAuditExclusions, syncAcceptedRisksToNativeConfig };
package/dist/bin.d.ts DELETED
@@ -1 +0,0 @@
1
- export {};
@@ -1,73 +0,0 @@
1
- /**
2
- * Shared helpers for resolving the task runner's cache directory.
3
- *
4
- * Used by `vis run` (to configure the runner) and `vis cache` (to manage the
5
- * cache from the outside) so both commands agree on:
6
- *
7
- * - the resolution order: `--cache-dir` flag > vis.config.ts
8
- * `taskRunnerOptions.cacheDirectory` > `{workspaceRoot}/.task-runner-cache`
9
- * - relative-path normalization against `workspaceRoot`
10
- * - containment checks (used to decide whether a destructive operation is
11
- * safe to perform without confirmation)
12
- */
13
- /**
14
- * Resolves the cache directory from CLI options and vis.config.ts.
15
- *
16
- * All paths returned from this helper are absolute — relative values are
17
- * resolved against `workspaceRoot` so they refer to the same directory no
18
- * matter what `process.cwd()` happens to be when the command runs.
19
- *
20
- * Precedence: `optionsCacheDir` > `configCacheDir` > `{workspaceRoot}/{@link DEFAULT_CACHE_DIRECTORY_NAME}`.
21
- * @param workspaceRoot Absolute path to the workspace root directory.
22
- * @param optionsCacheDir CLI `--cache-dir` value (may be relative or absolute). Takes highest priority.
23
- * @param configCacheDir `taskRunnerOptions.cacheDirectory` from vis.config.ts (may be relative or absolute).
24
- * @returns The resolved absolute path to the cache directory.
25
- */
26
- declare const resolveCacheDirectory: (workspaceRoot: string, optionsCacheDir: string | undefined, configCacheDir: string | undefined) => string;
27
- /**
28
- * Converts an arbitrary branch name into a filesystem-safe segment.
29
- * Strips characters outside `[A-Za-z0-9_.-]`, collapses runs of
30
- * disallowed characters into a single `-`, and trims leading/trailing
31
- * dashes. Truncated to 64 chars so deep-nested branch names (`user/long/feat`)
32
- * stay bounded.
33
- */
34
- export declare const sanitizeBranchSegment: (branch: string) => string;
35
- /**
36
- * Detects the current git branch by shelling out to `git rev-parse`.
37
- * Returns `undefined` on detached HEAD, non-git workspaces, or when
38
- * git is unavailable — callers fall back to the unscoped cache.
39
- */
40
- export declare const detectGitBranch: (cwd: string) => string | undefined;
41
- /**
42
- * Appends a branch-specific subdirectory to `cacheDirectory` when
43
- * `enabled` is true and a branch can be detected. Keeps `main` and
44
- * feature branches from thrashing each other's caches — different
45
- * generated artefacts (schemas, `.d.ts` snapshots) cause oscillating
46
- * invalidations when the same hash resolves to different contents.
47
- *
48
- * When `enabled === false` or the branch can't be detected, returns
49
- * `cacheDirectory` unchanged. On detached HEAD or CI checkouts where
50
- * `git rev-parse` resolves `HEAD`, the original path is used — this
51
- * matches the behaviour of a non-git clone.
52
- * @param cacheDirectory Resolved base cache directory.
53
- * @param workspaceRoot Absolute path used to probe the branch.
54
- * @param enabled When undefined, branch scoping is off. Set to `true`
55
- * (or omit to keep current behaviour) to enable.
56
- */
57
- export declare const applyBranchScope: (cacheDirectory: string, workspaceRoot: string, enabled: boolean | undefined) => string;
58
- /**
59
- * Returns `true` when `cacheDirectory` sits inside `workspaceRoot`. Uses
60
- * `relative()` instead of `startsWith()` so paths with a common string
61
- * prefix but different parents (e.g. `/work` vs `/workspace`) are correctly
62
- * distinguished.
63
- *
64
- * Callers use this to decide whether a `rm -rf` on the cache directory is
65
- * safe without an extra confirmation prompt.
66
- * @param cacheDirectory Absolute path to the cache directory.
67
- * @param workspaceRoot Absolute path to the workspace root directory.
68
- * @returns `true` when `cacheDirectory` is a proper descendant of `workspaceRoot`; `false` otherwise
69
- * (including when the two paths are identical).
70
- */
71
- declare const isCacheDirectoryInsideWorkspace: (cacheDirectory: string, workspaceRoot: string) => boolean;
72
- export { isCacheDirectoryInsideWorkspace, resolveCacheDirectory };
73
- export { DEFAULT_CACHE_DIRECTORY_NAME } from "@visulima/task-runner";
package/dist/catalog.d.ts DELETED
@@ -1,136 +0,0 @@
1
- import type { AcceptedRisk, PackageReportData, SocketSecurityOptions } from "./socket-security.d.ts";
2
- type UpdateTarget = "latest" | "minor" | "patch";
3
- interface SecurityVulnerability {
4
- /** Alternate identifiers (CVE-*, GHSA-*, etc.) from the OSV database. */
5
- aliases?: string[];
6
- cvssScore?: number;
7
- fixedVersions: string[];
8
- id: string;
9
- severity: "CRITICAL" | "HIGH" | "LOW" | "MODERATE" | "UNKNOWN";
10
- summary: string;
11
- }
12
- type SocketReport = Pick<PackageReportData, "alerts" | "license" | "score">;
13
- interface OutdatedEntry {
14
- acceptedRisk?: AcceptedRisk;
15
- catalogName: string;
16
- currentRange: string;
17
- newRange: string;
18
- packageName: string;
19
- socketReport?: SocketReport;
20
- targetVersion: string;
21
- updateType: "major" | "minor" | "patch";
22
- vulnerabilities?: SecurityVulnerability[];
23
- }
24
- interface CatalogCheckOptions {
25
- exclude: string[];
26
- ignore: string[];
27
- include: string[];
28
- includeLocked: boolean;
29
- includePrerelease: boolean;
30
- minimumReleaseAge?: number;
31
- minimumReleaseAgeExclude?: string[];
32
- packageMode?: Record<string, UpdateTarget>;
33
- security?: boolean;
34
- target: UpdateTarget;
35
- }
36
- interface ReadCatalogOptions {
37
- depFields?: string[];
38
- dev?: boolean;
39
- prod?: boolean;
40
- }
41
- interface ParsedVersion {
42
- major: number;
43
- minor: number;
44
- patch: number;
45
- prerelease: string;
46
- }
47
- declare const parseVersion: (input: string) => ParsedVersion | undefined;
48
- declare const extractPrefix: (range: string) => string;
49
- declare const getUpdateType: (current: ParsedVersion, target: ParsedVersion) => "major" | "minor" | "none" | "patch";
50
- declare const isNewer: (current: ParsedVersion, target: ParsedVersion) => boolean;
51
- declare const matchesPattern: (name: string, pattern: string) => boolean;
52
- declare const matchesFilters: (name: string, include: string[], exclude: string[]) => boolean;
53
- declare const parseCatalogsFromYaml: (content: string) => Map<string, Map<string, string>>;
54
- interface BunPackageJson {
55
- workspaces?: {
56
- catalog?: Record<string, string>;
57
- catalogs?: Record<string, Record<string, string>>;
58
- packages?: string[];
59
- };
60
- }
61
- declare const parseBunCatalogs: (pkg: BunPackageJson) => Map<string, Map<string, string>>;
62
- declare const parseCompositeCatalogName: (name: string) => {
63
- depType: string;
64
- relativePath: string;
65
- } | undefined;
66
- declare const readPackageJsonDeps: (workspaceRoot: string, options?: ReadCatalogOptions) => Map<string, Map<string, string>>;
67
- declare const hasPackageJsonDeps: (workspaceRoot: string) => boolean;
68
- declare const applyPackageJsonUpdates: (workspaceRoot: string, updates: OutdatedEntry[]) => void;
69
- type CatalogProvider = "bun" | "pnpm";
70
- declare const hasCatalogs: (workspaceRoot: string, packageManager?: string) => boolean;
71
- declare const readCatalogs: (workspaceRoot: string, packageManager?: string, options?: ReadCatalogOptions) => Map<string, Map<string, string>>;
72
- interface NpmrcConfig {
73
- authTokens: Map<string, string>;
74
- defaultRegistry: string;
75
- registries: Map<string, string>;
76
- }
77
- declare const parseNpmrc: (content: string) => NpmrcConfig;
78
- declare const loadNpmrc: (workspaceRoot: string) => NpmrcConfig;
79
- declare const getRegistryForPackage: (packageName: string, config: NpmrcConfig) => {
80
- token?: string;
81
- url: string;
82
- };
83
- interface RegistryVersionInfo {
84
- latest: string;
85
- /** Map of version string to ISO publish time (populated when minimumReleaseAge is set). */
86
- publishTimes?: Map<string, string>;
87
- versions: string[];
88
- }
89
- declare const fetchPackageVersions: (packageName: string, registryConfig?: {
90
- authToken?: string;
91
- url: string;
92
- }, timeoutMs?: number, fetchPublishTimes?: boolean) => Promise<RegistryVersionInfo>;
93
- declare const fetchVulnerabilities: (packages: {
94
- name: string;
95
- version: string;
96
- }[], timeoutMs?: number) => Promise<Map<string, SecurityVulnerability[]>>;
97
- declare const resolvePackageTarget: (packageName: string, globalTarget: UpdateTarget, packageMode?: Record<string, UpdateTarget>) => UpdateTarget;
98
- interface MaturityOptions {
99
- minimumReleaseAge?: number;
100
- minimumReleaseAgeExclude?: string[];
101
- packageName?: string;
102
- publishTimes?: Map<string, string>;
103
- }
104
- declare const findTargetVersion: (versions: string[], latest: string, currentRange: string, target: UpdateTarget, includePrerelease: boolean, maturity?: MaturityOptions) => string | undefined;
105
- interface CheckOutdatedResult {
106
- /** Total number of unique packages checked (after filtering). */
107
- checkedCount: number;
108
- failed: string[];
109
- /** Packages that have newer versions on "latest" but were excluded by the target constraint. */
110
- filteredByTarget: OutdatedEntry[];
111
- ignored: string[];
112
- outdated: OutdatedEntry[];
113
- }
114
- declare const checkOutdated: (catalogs: Map<string, Map<string, string>>, options: CatalogCheckOptions, npmrcConfig?: NpmrcConfig, onProgress?: (current: number, total: number) => void, workspaceRoot?: string, socketOptions?: SocketSecurityOptions, acceptedRisks?: Record<string, AcceptedRisk>) => Promise<CheckOutdatedResult>;
115
- declare const createBackup: (workspaceRoot: string, packageManager?: string, updates?: OutdatedEntry[]) => string | undefined;
116
- declare const restoreFromBackup: (workspaceRoot: string, packageManager?: string) => boolean;
117
- declare const hasBackup: (workspaceRoot: string, packageManager?: string) => boolean;
118
- type OutputFormat = "json" | "minimal" | "table";
119
- declare const formatOutdatedJson: (result: CheckOutdatedResult) => string;
120
- declare const formatOutdatedMinimal: (outdated: OutdatedEntry[]) => string;
121
- declare const toFilterArray: (value: string | string[] | undefined) => string[];
122
- declare const groupByCatalog: (entries: OutdatedEntry[]) => Map<string, OutdatedEntry[]>;
123
- declare const formatOutdatedTable: (outdated: OutdatedEntry[], logger: Console) => void;
124
- declare const formatSummary: (outdated: OutdatedEntry[]) => string;
125
- declare const detectJsonIndent: (content: string) => number | string;
126
- declare const applyCatalogUpdates: (workspaceRoot: string, updates: OutdatedEntry[], packageManager?: string, backup?: boolean) => string | undefined;
127
- declare const promptPackageSelection: (outdated: OutdatedEntry[]) => Promise<OutdatedEntry[]>;
128
- interface ChangelogInfo {
129
- npmUrl: string;
130
- packageName: string;
131
- releaseUrl?: string;
132
- repoUrl?: string;
133
- }
134
- declare const fetchChangelogInfo: (packages: OutdatedEntry[], timeoutMs?: number) => Promise<ChangelogInfo[]>;
135
- export type { CatalogCheckOptions, CatalogProvider, ChangelogInfo, CheckOutdatedResult, MaturityOptions, NpmrcConfig, OutdatedEntry, OutputFormat, ReadCatalogOptions, SecurityVulnerability, SocketReport, UpdateTarget, };
136
- export { applyCatalogUpdates, applyPackageJsonUpdates, checkOutdated, createBackup, detectJsonIndent, extractPrefix, fetchChangelogInfo, fetchPackageVersions, fetchVulnerabilities, findTargetVersion, formatOutdatedJson, formatOutdatedMinimal, formatOutdatedTable, formatSummary, getRegistryForPackage, getUpdateType, groupByCatalog, hasBackup, hasCatalogs, hasPackageJsonDeps, isNewer, loadNpmrc, matchesFilters, matchesPattern, parseBunCatalogs, parseCatalogsFromYaml, parseCompositeCatalogName, parseNpmrc, parseVersion, promptPackageSelection, readCatalogs, readPackageJsonDeps, resolvePackageTarget, restoreFromBackup, toFilterArray, };
@@ -1,30 +0,0 @@
1
- import type { WorkspaceConfiguration } from "@visulima/task-runner";
2
- import type { CodeownersConfig } from "./workspace.d.ts";
3
- export type { CodeownersConfig } from "./workspace.d.ts";
4
- /**
5
- * A single resolved CODEOWNERS line, pre-sorted by path. Kept as an
6
- * object so callers can post-process (e.g. append sub-sections).
7
- */
8
- export interface CodeownersLine {
9
- /** Optional notification channel (added as a trailing comment). */
10
- channel?: string;
11
- /** Owner handles, space-separated by the writer. */
12
- owners: string[];
13
- /** Effective path glob (workspace-root-relative). */
14
- path: string;
15
- /** Source project name — used for `order-by=project-id` sorting. */
16
- projectId?: string;
17
- }
18
- /**
19
- * Computes CODEOWNERS lines from the workspace's projects and a
20
- * workspace-level `codeowners` block. Returns lines in the requested
21
- * order (default: `file-source`).
22
- */
23
- export declare const buildCodeownersLines: (workspace: WorkspaceConfiguration, config: CodeownersConfig | undefined) => CodeownersLine[];
24
- /**
25
- * Serialises {@link CodeownersLine}s to a valid CODEOWNERS file string.
26
- * @param lines Resolved CODEOWNERS lines.
27
- * @param _provider Reserved for future provider-specific formatting (e.g. Bitbucket syntax).
28
- * @returns The full CODEOWNERS file content with header and trailing newline.
29
- */
30
- export declare const renderCodeowners: (lines: CodeownersLine[], _provider?: CodeownersConfig["provider"]) => string;
@@ -1,8 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- /**
3
- * `vis action-graph &lt;selector>` — shows the execution plan that would
4
- * be produced by `vis run &lt;selector>` without running anything. Matches
5
- * moon's `moon action-graph`.
6
- */
7
- declare const actionGraph: Command;
8
- export default actionGraph;
@@ -1,3 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- declare const add: Command;
3
- export default add;
@@ -1,3 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- declare const affected: Command;
3
- export default affected;
@@ -1,3 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- declare const ai: Command;
3
- export default ai;
@@ -1,3 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- declare const analyze: Command;
3
- export default analyze;
@@ -1,3 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- declare const approveBuilds: Command;
3
- export default approveBuilds;
@@ -1,23 +0,0 @@
1
- import type { Command } from "@visulima/cerebro";
2
- interface InstalledPackage {
3
- isDev: boolean;
4
- name: string;
5
- version: string;
6
- }
7
- /** A package installed in multiple versions. */
8
- interface DuplicatePackage {
9
- /** The package name. */
10
- name: string;
11
- /** Each installed version. */
12
- versions: string[];
13
- }
14
- declare const scanInstalledPackages: (workspaceRoot: string) => InstalledPackage[];
15
- /**
16
- * Finds packages with multiple installed versions by parsing the
17
- * workspace lockfile via `@visulima/package`.
18
- */
19
- declare const findDuplicateDependencies: (workspaceRoot: string, pmName: string) => DuplicatePackage[];
20
- declare const audit: Command;
21
- export default audit;
22
- export type { DuplicatePackage, InstalledPackage };
23
- export { findDuplicateDependencies, scanInstalledPackages };