@visulima/vis 1.0.0-alpha.32 → 1.0.0-alpha.34

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 (77) hide show
  1. package/CHANGELOG.md +29 -0
  2. package/dist/bin.js +1 -1
  3. package/dist/binx.js +1 -1
  4. package/dist/config/index.d.ts +31 -6
  5. package/dist/packem_chunks/bin.js +274 -274
  6. package/dist/packem_chunks/bloom-sync.js +1 -1
  7. package/dist/packem_chunks/fix.js +1 -1
  8. package/dist/packem_chunks/handler11.js +1 -1
  9. package/dist/packem_chunks/handler13.js +1 -1
  10. package/dist/packem_chunks/handler14.js +1 -1
  11. package/dist/packem_chunks/handler16.js +1 -1
  12. package/dist/packem_chunks/handler20.js +1 -1
  13. package/dist/packem_chunks/handler21.js +1 -1
  14. package/dist/packem_chunks/handler22.js +2 -2
  15. package/dist/packem_chunks/handler23.js +1 -1
  16. package/dist/packem_chunks/handler27.js +1 -1
  17. package/dist/packem_chunks/handler29.js +1 -1
  18. package/dist/packem_chunks/handler3.js +1 -1
  19. package/dist/packem_chunks/handler30.js +1 -1
  20. package/dist/packem_chunks/handler33.js +1 -1
  21. package/dist/packem_chunks/handler34.js +4 -4
  22. package/dist/packem_chunks/handler35.js +1 -1
  23. package/dist/packem_chunks/handler36.js +3 -3
  24. package/dist/packem_chunks/handler37.js +1 -1
  25. package/dist/packem_chunks/handler38.js +4 -4
  26. package/dist/packem_chunks/handler39.js +2 -2
  27. package/dist/packem_chunks/handler4.js +1 -1
  28. package/dist/packem_chunks/handler40.js +1 -1
  29. package/dist/packem_chunks/handler41.js +7 -7
  30. package/dist/packem_chunks/handler42.js +25 -153
  31. package/dist/packem_chunks/handler43.js +153 -25
  32. package/dist/packem_chunks/handler44.js +5 -5
  33. package/dist/packem_chunks/handler45.js +1 -1
  34. package/dist/packem_chunks/handler47.js +1 -1
  35. package/dist/packem_chunks/handler48.js +1 -1
  36. package/dist/packem_chunks/handler49.js +1 -1
  37. package/dist/packem_chunks/handler5.js +1 -1
  38. package/dist/packem_chunks/handler50.js +10 -10
  39. package/dist/packem_chunks/handler51.js +53 -53
  40. package/dist/packem_chunks/handler7.js +1 -1
  41. package/dist/packem_chunks/heal.js +1 -1
  42. package/dist/packem_chunks/help-command.js +1 -1
  43. package/dist/packem_chunks/index.js +1 -1
  44. package/dist/packem_chunks/keys-refresh.js +1 -1
  45. package/dist/packem_chunks/list.js +1 -1
  46. package/dist/packem_chunks/run.js +1 -1
  47. package/dist/packem_chunks/sync.js +1 -1
  48. package/dist/packem_chunks/sync2.js +1 -1
  49. package/dist/packem_chunks/verify-lockfile.js +1 -1
  50. package/dist/packem_shared/{ai-analysis-KP8b5lc0.js → ai-analysis-3QD_RS6F.js} +1 -1
  51. package/dist/packem_shared/{ai-fix-BkPUHA0z.js → ai-fix-TsjDQz_0.js} +3 -3
  52. package/dist/packem_shared/{cyclonedx-BilSFCNY.js → cyclonedx-zf9R2jCs.js} +1 -1
  53. package/dist/packem_shared/{dependency-scan-BUbOcMwX.js → dependency-scan-B70azq4x.js} +1 -1
  54. package/dist/packem_shared/{failure-log-34Wl3npC.js → failure-log-Dxafk3t4.js} +2 -2
  55. package/dist/packem_shared/index-BpbjpCNL.js +1 -0
  56. package/dist/packem_shared/{index-K8aQuMvx.js → index-di3jpyZS.js} +1 -1
  57. package/dist/packem_shared/{lifecycle-Buigdp7P.js → lifecycle-DvVTL8nx.js} +2 -2
  58. package/dist/packem_shared/{lockfile-CrT86D6d.js → lockfile-CedmXr44.js} +1 -1
  59. package/dist/packem_shared/{min-release-age-BPVXwPUg.js → min-release-age-DKMW2N_v.js} +1 -1
  60. package/dist/packem_shared/missing-package-json-DKAwoiWK.js +1 -0
  61. package/dist/packem_shared/{native-config-sync-BRZZetn3.js → native-config-sync-DBkJ-hsF.js} +1 -1
  62. package/dist/packem_shared/{provenance-D8vU1u2L.js → provenance-Cu6VR1Hy.js} +1 -1
  63. package/dist/packem_shared/{registry-keys-E3cZn4FI.js → registry-keys-CuBAVdsk.js} +1 -1
  64. package/dist/packem_shared/{resolve-explicit-cPzwdiEE.js → resolve-explicit-Xue0oq8V.js} +1 -1
  65. package/dist/packem_shared/{s1ngularity-DBcjspCC.js → s1ngularity-adnHbyTd.js} +1 -1
  66. package/dist/packem_shared/{scan-progress-CTVVf9WW.js → scan-progress-lZdk5KJ-.js} +1 -1
  67. package/dist/packem_shared/{signatures-ChTfrQvT.js → signatures-FGbYV5QE.js} +1 -1
  68. package/dist/packem_shared/{spinner-C8xs6QZv.js → spinner-0acw5pd_.js} +1 -1
  69. package/dist/packem_shared/{tabs-xZkm6Y_J.js → tabs-zUSdR1HI.js} +1 -1
  70. package/dist/packem_shared/{use-measured-height-Lea6TCVD.js → use-measured-height-DyCBfLtu.js} +1 -1
  71. package/dist/packem_shared/{verify-cLcZwKqe.js → verify-BYzxSKWD.js} +1 -1
  72. package/dist/packem_shared/{vis-update-app-BCKzlqj8.js → vis-update-app-D0QyGneK.js} +1 -1
  73. package/dist/packem_shared/{watch-loop-BpA_pxU9.js → watch-loop-jmQQl2Qe.js} +2 -2
  74. package/index.js +52 -52
  75. package/package.json +10 -10
  76. package/schemas/vis-config.schema.json +34 -7
  77. package/dist/packem_shared/index-BnANMQ7k.js +0 -1
package/CHANGELOG.md CHANGED
@@ -1,3 +1,32 @@
1
+ ## @visulima/vis [1.0.0-alpha.34](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.33...@visulima/vis@1.0.0-alpha.34) (2026-06-08)
2
+
3
+ ### Features
4
+
5
+ * **vis:** clean --empty-packages and staged per-package/cwd tasks ([cdba002](https://github.com/visulima/visulima/commit/cdba002af4714e3e74c1f832919855d0dd7f3a72)), closes [package.json#workspaces](https://github.com/visulima/package.json/issues/workspaces)
6
+
7
+ ### Documentation
8
+
9
+ * **vis:** correct and complete command reference ([b8c6c11](https://github.com/visulima/visulima/commit/b8c6c11e289c509a7d479e2371d8df63b710ce9b))
10
+
11
+ ### Miscellaneous Chores
12
+
13
+ * **vis:** merge clean/staged/hooks/docs feature branch ([f61821d](https://github.com/visulima/visulima/commit/f61821d9fb0e7f36769025edaa1d73993bf91c54))
14
+
15
+ ### Code Refactoring
16
+
17
+ * **vis:** move git hooks dir from .vis-hooks to .vis/hooks ([b3cc45b](https://github.com/visulima/visulima/commit/b3cc45b9dd82bea9ab60fcd387a6c95833555a39))
18
+
19
+ ## @visulima/vis [1.0.0-alpha.33](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.32...@visulima/vis@1.0.0-alpha.33) (2026-06-07)
20
+
21
+ ### Features
22
+
23
+ * **task-runner:** warn when a cacheable task's inputs resolve to zero files ([3a4ecbb](https://github.com/visulima/visulima/commit/3a4ecbbef46b49afa4cb8b3e0b741fae0de42b3c))
24
+
25
+
26
+ ### Dependencies
27
+
28
+ * **@visulima/task-runner:** upgraded to 1.0.0-alpha.21
29
+
1
30
  ## @visulima/vis [1.0.0-alpha.32](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.31...@visulima/vis@1.0.0-alpha.32) (2026-06-07)
2
31
 
3
32
  ### Bug Fixes
package/dist/bin.js CHANGED
@@ -1,2 +1,2 @@
1
1
  #!/usr/bin/env node
2
- import"./packem_shared/index-K8aQuMvx.js";import"./packem_chunks/bin.js";import"./packem_chunks/config.js";import"./packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";
2
+ import"./packem_shared/index-di3jpyZS.js";import"./packem_chunks/bin.js";import"./packem_chunks/config.js";import"./packem_shared/readFileSync-DseCu8sg-DEq4Fn3a.js";
package/dist/binx.js CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env node
2
- import{$ as r,m as o,a as c,I as i,p as a,i as n}from"./packem_shared/index-K8aQuMvx.js";r();process.argv.includes("--no-color")&&(process.env.NO_COLOR="1",process.env.FORCE_COLOR="0");process.argv.slice(2).some(s=>s==="--version"||s==="-v"||s==="-V")&&(process.stdout.write(`${o.version}
2
+ import{$ as r,m as o,a as c,I as i,p as a,i as n}from"./packem_shared/index-di3jpyZS.js";r();process.argv.includes("--no-color")&&(process.env.NO_COLOR="1",process.env.FORCE_COLOR="0");process.argv.slice(2).some(s=>s==="--version"||s==="-v"||s==="-V")&&(process.stdout.write(`${o.version}
3
3
  `),process.exit(0));process.argv.splice(2,0,"dlx");c();const e=i("visx",{packageName:"visx",packageVersion:o.version}),p=process.argv.includes("--debug")||!!process.env.DEBUG;e.addPlugin(a({detailed:p,exitOnError:!1}));e.addCommand(n);(async()=>{try{await e.run({shouldExitProcess:!1})}catch{process.exitCode=process.exitCode||1}finally{process.exit(process.exitCode??0)}})();
@@ -52,15 +52,39 @@ interface CustomTask {
52
52
  readonly title: string;
53
53
  }
54
54
  /**
55
+ * Object form of a command task. Unlike a bare command string it carries
56
+ * execution options:
57
+ *
58
+ * - `perPackage` runs the command once per workspace package that owns the
59
+ * matched files, with `cwd` set to that package's directory and file paths
60
+ * made relative to it. Use it for tools that resolve their config or
61
+ * plugins from the nearest `package.json` — e.g. eslint with a
62
+ * cwd-sensitive shareable config. Files that sit under no workspace
63
+ * package fall back to a single run from the workspace root.
64
+ * - `cwd` pins the command to a fixed directory (relative to the workspace
65
+ * root, or absolute) and passes the matched files as absolute paths so
66
+ * they resolve regardless of where the command runs. Ignored when
67
+ * `perPackage` is set — that derives the cwd per package instead.
68
+ *
69
+ * A command task is distinguished from {@link CustomTask} by carrying a
70
+ * `command` string and no `task` function.
71
+ */
72
+ interface CommandTask {
73
+ readonly command: string;
74
+ readonly cwd?: string;
75
+ readonly perPackage?: boolean;
76
+ }
77
+ /**
55
78
  * A task value as authored by the user. Command strings are split into
56
- * argv and invoked with the matched file paths appended. Arrays run
57
- * serially. Functions receive the matched paths and return further
58
- * task values (possibly async). `{ title, task }` objects run `task`
59
- * directly with no argv construction.
79
+ * argv and invoked with the matched file paths appended. `{ command, … }`
80
+ * objects do the same with per-task execution options (cwd / perPackage).
81
+ * Arrays run serially. Functions receive the matched paths and return
82
+ * further task values (possibly async). `{ title, task }` objects run
83
+ * `task` directly with no argv construction.
60
84
  */
61
- type StagedTask = CustomTask | StagedTaskFunction | ReadonlyArray<CustomTask | StagedTaskFunction | string> | string | ReadonlyArray<string>;
85
+ type StagedTask = CommandTask | CustomTask | StagedTaskFunction | string | ReadonlyArray<CommandTask | CustomTask | StagedTaskFunction | string>;
62
86
  type StagedTaskFunction = (files: string[]) => Promise<StagedTaskResult> | StagedTaskResult;
63
- type StagedTaskResult = CustomTask | ReadonlyArray<CustomTask | string> | string | ReadonlyArray<string>;
87
+ type StagedTaskResult = CommandTask | CustomTask | string | ReadonlyArray<CommandTask | CustomTask | string>;
64
88
  /**
65
89
  * Config object mapping glob patterns (basename or path-style) to tasks.
66
90
  * A top-level function form lets the user generate the entire config
@@ -2328,6 +2352,7 @@ interface VisConfig {
2328
2352
  * - `string` or `string[]` commands
2329
2353
  * - Sync/async functions returning `string | string[]`
2330
2354
  * - `{ title, task }` objects for named side-effect tasks
2355
+ * - `{ command, perPackage }` to run a command once per owning workspace package (cwd = that package dir), and `{ command, cwd }` to pin a command to a fixed directory
2331
2356
  * - Mixed arrays of strings and functions
2332
2357
  * - A top-level generate-task function
2333
2358
  */