@visulima/vis 1.0.0-alpha.17 → 1.0.0-alpha.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,61 @@
1
+ ## @visulima/vis [1.0.0-alpha.19](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.18...@visulima/vis@1.0.0-alpha.19) (2026-05-11)
2
+
3
+ ### ⚠ BREAKING CHANGES
4
+
5
+ * **vis:** replace prek runner with in-process hook dispatcher
6
+ * **vis:** vis sbom now emits CycloneDX 1.7. Downstream consumers
7
+ pinned to a 1.6 validator must upgrade.
8
+
9
+ Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
10
+
11
+ ### Features
12
+
13
+ * **vis:** bump sbom to cyclonedx 1.7 ([904075f](https://github.com/visulima/visulima/commit/904075fd9353e40b593d5a13f53307c584e31da7))
14
+ * **vis:** replace prek runner with in-process hook dispatcher ([659ba07](https://github.com/visulima/visulima/commit/659ba07fc311c36783e8900188b9753276a961fe))
15
+
16
+
17
+ ### Dependencies
18
+
19
+ * **@visulima/tui:** upgraded to 1.0.0-alpha.14
20
+ * **@visulima/cerebro:** upgraded to 3.0.0-alpha.22
21
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.21
22
+ * **@visulima/package:** upgraded to 5.0.0-alpha.20
23
+
24
+ ## @visulima/vis [1.0.0-alpha.18](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.17...@visulima/vis@1.0.0-alpha.18) (2026-05-11)
25
+
26
+ ### Features
27
+
28
+ * **task-runner:** add resolveTurboEnvCompat helper ([a8e73ef](https://github.com/visulima/visulima/commit/a8e73ef324dd8d1bc1f1f471f59f9292f9f01745))
29
+ * **vis:** add vis-mcp post-command promotion nudge ([9244fad](https://github.com/visulima/visulima/commit/9244fad8a8f9164ce99b2ab3cb771d53f926e788))
30
+ * **vis:** expand secrets.config.presets to tag selectors ([77b8d2b](https://github.com/visulima/visulima/commit/77b8d2bbc951d5180753f37a45d2313c01fcf47f))
31
+ * **vis:** honour TURBO_API/TURBO_TOKEN/TURBO_TEAM env vars ([0d4fc8c](https://github.com/visulima/visulima/commit/0d4fc8c1ad617ba27c436e40e520ddcbb19ebeca))
32
+ * **vis:** show flakiness table on successful runs too ([085b219](https://github.com/visulima/visulima/commit/085b219a4472ceb0fd2f507c7bc3b3b1780a014a))
33
+ * **vis:** surface retried-but-passed tasks and add CI log grouping ([2bdceaa](https://github.com/visulima/visulima/commit/2bdceaacf3f69c99a08c9e1b3b6eda0ee3528cd2))
34
+
35
+ ### Bug Fixes
36
+
37
+ * **vis:** raise timeout for exposed-files preset tests to 15s ([433db73](https://github.com/visulima/visulima/commit/433db7319ecf4720664bc199582d571ea6a3630b))
38
+ * **vis:** warm default ruleset for exposed-files preset tests ([9c76250](https://github.com/visulima/visulima/commit/9c76250d2ee6e8e2be878e5dcfb149d38126d60d))
39
+
40
+ ### Documentation
41
+
42
+ * **vis:** mention TURBO_API fallback in help text and migrate hint ([f9bd7ac](https://github.com/visulima/visulima/commit/f9bd7acd7a53837e40376f9b0dcf54040bbc50a1))
43
+
44
+ ### Miscellaneous Chores
45
+
46
+ * added fixtures to prettier ignore ([13bda29](https://github.com/visulima/visulima/commit/13bda2942d5d95fedeec7c07937fdfc37cf960c7))
47
+ * **vis:** apply eslint and formatter sweep ([d3a48c5](https://github.com/visulima/visulima/commit/d3a48c577a77864b1aae52e6061a8aad1554f273))
48
+
49
+
50
+ ### Dependencies
51
+
52
+ * **@visulima/secret-scanner:** upgraded to 1.0.0-alpha.2
53
+ * **@visulima/task-runner:** upgraded to 1.0.0-alpha.13
54
+ * **@visulima/tui:** upgraded to 1.0.0-alpha.13
55
+ * **@visulima/cerebro:** upgraded to 3.0.0-alpha.21
56
+ * **@visulima/fs:** upgraded to 5.0.0-alpha.20
57
+ * **@visulima/package:** upgraded to 5.0.0-alpha.19
58
+
1
59
  ## @visulima/vis [1.0.0-alpha.17](https://github.com/visulima/visulima/compare/@visulima/vis@1.0.0-alpha.16...@visulima/vis@1.0.0-alpha.17) (2026-05-10)
2
60
 
3
61
  ### Features
package/README.md CHANGED
@@ -36,19 +36,59 @@
36
36
 
37
37
  ## Features
38
38
 
39
- - **Workspace-aware**: Automatically discovers projects from `pnpm-workspace.yaml` or `package.json` workspaces
40
- - **Task caching**: Powered by `@visulima/task-runner` with local and remote caching support
41
- - **Dependency-aware scheduling**: Runs tasks in topological order with configurable parallelism
42
- - **Affected detection**: Only runs tasks for projects changed since a given git ref
43
- - **Pluggable installer**: Defaults to the lockfile-detected PM (pnpm/npm/yarn/bun); auto-uses [aube](https://github.com/endevco/aube) when on `PATH`, with a single switch (`install.backend` / `--installer` / `--no-aube`) to pin or bypass it
44
- - **Catalog management**: Check and update dependencies in pnpm/bun workspace catalogs
45
- - **Security scanning**: Check for known vulnerabilities via OSV.dev
46
- - **Graph visualization**: View your project dependency graph in ASCII, DOT, JSON, or HTML
47
- - **Git hooks**: Install, manage, and migrate git hooks (husky migration supported)
48
- - **Configurable**: `vis.json` for target defaults, cache settings, and task runner options
49
- - **Inferred targets**: Optional Project Crystal-style synthesis of `build`/`test`/`dev`/`lint`/`format` from 36 tools (Vite, Vitest, Next, Nuxt, packem, ESLint, Biome, Prisma, …). Opt in with `inferTargets: true`; explicit scripts and `project.json`/`vis.task.ts` overrides always win
50
- - **URI-based input format**: `inputs` accepts `file://`, `glob://`, `env://`, `func://`, `dep://` strings as forward-compat sugar for the structured object form
51
- - **Built on Cerebro**: Uses `@visulima/cerebro` for a robust CLI experience with built-in help, version, and completion
39
+ ### Built for AI agents
40
+
41
+ - **MCP server** — `@visulima/vis-mcp` exposes 8 read-only introspection tools to Claude / Cursor / Copilot (project graph, target list, run logs, cache-why, template schema), plus a paired Claude Skill that documents optimal usage
42
+ - **`vis ai heal`** reads failing tasks, asks the configured AI provider for a structured patch, validates by re-running, posts a markdown comment to the PR/MR. `/vis heal accept` from an allow-listed maintainer lands the fix as a signed commit (GitHub Actions, GitLab CI, Buildkite)
43
+ - **Worktree-aware shared cache** N parallel agents in N sibling git worktrees automatically share one cache instead of rebuilding the same hash N times
44
+
45
+ ### Production-grade caching
46
+
47
+ - **REAPI gRPC + HTTP backends** — drop-in support for [bazel-remote](https://github.com/buchgr/bazel-remote), BuildBuddy, BuildBarn, EngFlow alongside Turbo-compatible HTTP. `vis cache doctor` probes reachability, capabilities, and latency for CI gating
48
+ - **`vis cache why <task>`** — diff hash buckets (`command`, `nodes`, `runtime`, `implicitDeps`) against the previous run to pinpoint exactly what rotated the hash
49
+ - **HMAC-SHA256 signed artifacts** `verifyOnDownload` locks production caches against tampering with constant-time comparison
50
+ - **Cache restoration fidelity** preserves mtime + permission bits + colorized output; `vis cache verify <task>` flags drift between cached archive and live workspace
51
+ - **Retention controls** `vis cache prune --keep-last/--max-age-days/--max-size`
52
+
53
+ ### Cross-invocation devloop
54
+
55
+ - **`vis service start|stop|list`** — long-lived DB / mock / devserver lifecycle that survives across `vis run` calls within a shell session; auto-attached when targets declare `service:` in their config (no more "I keep restarting Postgres between every test run")
56
+ - **`vis run --watch`** — Vitest-style keybinds (`r/Enter/a/p/q/Ctrl+C/h/?`), Windows-clean SIGINT
57
+ - **`vis run --output-style=quiet`** — swallow stdout from successful and cached tasks, keep failures fully visible
58
+
59
+ ### Workspace orchestration
60
+
61
+ - **Workspace-aware** — discovers projects from `pnpm-workspace.yaml`, `package.json` workspaces, and bun
62
+ - **Topological scheduling** with configurable parallelism and runner-tag filtering
63
+ - **Affected detection** — `vis affected <target>`, plus `${affected.files}` / `$AFFECTED_FILES` token forwarding to the underlying script
64
+ - **Conditional + finally tasks** — `when:` (os/env/branch/ci) and top-level `always: true`
65
+ - **Per-package overlay + extends chain** — root `vis-config.ts` + per-project `vis.task.ts`, with bare-specifier preset resolution
66
+ - **Inferred targets** (Project Crystal-style) — optional synthesis of `build`/`test`/`dev`/`lint`/`format` from 36 tools (Vite, Vitest, Next, Nuxt, packem, ESLint, Biome, Prisma, …). Opt in with `inferTargets: true`; explicit scripts and `project.json`/`vis.task.ts` overrides always win
67
+ - **URI-based input format** — `inputs` accepts `file://`, `glob://`, `env://`, `func://`, `dep://` strings as forward-compat sugar
68
+ - **Plugin / fingerprint hooks** — 14 typed hooks via `definePlugin` (lifecycle, streaming, retry, fingerprint, services), built on `hookable`
69
+ - **Strict env mode** — `--strict-env` extracts `${VAR}` references from each command and fails the task if any are unset
70
+ - **Lockfile preflight** — warns in TTY, hard-fails in CI when the lockfile is newer than the install marker
71
+ - **Project graph** — view dependencies in ASCII, DOT, JSON, or HTML
72
+
73
+ ### Adjacent tooling that ships in-box
74
+
75
+ - **`vis catalog check / update`** — pnpm + bun workspace catalog management
76
+ - **`vis secrets`** — Rust-native secret scanning (gitleaks detection engine)
77
+ - **`vis audit`** — OSV.dev vulnerability scanning
78
+ - **`vis docker scaffold`** — lockfile pruning for pnpm / npm / yarn classic + berry / bun, matching turbo's killer Docker-cache feature
79
+ - **`vis hook install / migrate`** — git hooks (husky migration supported)
80
+ - **`vis staged`** — built-in `lint-staged` replacement, no peer dependency
81
+ - **`vis migrate gitleaks|secretlint`** — incremental migration paths
82
+ - **`vis replay <runId>`** — re-render any past run summary without re-execution
83
+
84
+ ### Toolchain & runtime
85
+
86
+ - **Pluggable installer** — defaults to the lockfile-detected PM (pnpm/npm/yarn/bun); auto-uses [aube](https://github.com/endevco/aube) when on `PATH`, with a single switch (`install.backend` / `--installer` / `--no-aube`) to pin or bypass it
87
+ - **Cold-start one-liner** — `curl -fsSL https://visulima.com/install.sh | bash` (Linux/macOS/WSL) or PowerShell equivalent installs a version manager, Node LTS, and `vis`
88
+ - **`vis toolchain`** — delegates to proto / mise / fnm / volta
89
+ - **Built on Cerebro** — robust CLI with built-in help, version, and shell completion
90
+
91
+ > **New to vis?** See [Why vis vs. Vite Task / Turbo / Nx / moon](./docs/guides/why-vis.mdx) for the side-by-side capability matrix.
52
92
 
53
93
  ## Install
54
94
 
@@ -366,19 +406,19 @@ If you would like to help take a look at the [list of issues](https://github.com
366
406
 
367
407
  `vis migrate` ports configuration, scripts, and hooks from the following projects. Huge thanks to their authors and maintainers for the prior art that shaped vis's surface area.
368
408
 
369
- | Project | Migrates with | Replaces |
370
- | -------------------------------------------------------------------- | --------------------- | --------------------------------- |
371
- | [Husky](https://github.com/typicode/husky) | `vis hook migrate` | Git hook manager |
372
- | [lint-staged](https://github.com/lint-staged/lint-staged) | `vis migrate lint-staged` | Pre-commit task runner |
373
- | [nano-staged](https://github.com/usmanyunusov/nano-staged) | `vis migrate nano-staged` | Pre-commit task runner |
374
- | [Turborepo](https://github.com/vercel/turborepo) | `vis migrate turborepo` | Monorepo task runner |
375
- | [Nx](https://github.com/nrwl/nx) | `vis migrate nx` | Monorepo task runner |
376
- | [Moon](https://github.com/moonrepo/moon) | `vis migrate moon` | Monorepo task runner |
377
- | [Gitleaks](https://github.com/gitleaks/gitleaks) | `vis migrate gitleaks` | Secret scanner |
378
- | [Kingfisher](https://github.com/mongodb/kingfisher) | `vis migrate kingfisher` | Secret scanner (MongoDB) |
379
- | [Secretlint](https://github.com/secretlint/secretlint) | `vis migrate secretlint` | Secret linter |
380
- | [Syncpack](https://github.com/JamieMason/syncpack) | `vis migrate syncpack` | Workspace dependency policy |
381
- | [Sherif](https://github.com/QuiiBz/sherif) | `vis migrate sherif` | Monorepo linter |
409
+ | Project | Migrates with | Replaces |
410
+ | ---------------------------------------------------------- | ------------------------- | --------------------------- |
411
+ | [Husky](https://github.com/typicode/husky) | `vis hook migrate` | Git hook manager |
412
+ | [lint-staged](https://github.com/lint-staged/lint-staged) | `vis migrate lint-staged` | Pre-commit task runner |
413
+ | [nano-staged](https://github.com/usmanyunusov/nano-staged) | `vis migrate nano-staged` | Pre-commit task runner |
414
+ | [Turborepo](https://github.com/vercel/turborepo) | `vis migrate turborepo` | Monorepo task runner |
415
+ | [Nx](https://github.com/nrwl/nx) | `vis migrate nx` | Monorepo task runner |
416
+ | [Moon](https://github.com/moonrepo/moon) | `vis migrate moon` | Monorepo task runner |
417
+ | [Gitleaks](https://github.com/gitleaks/gitleaks) | `vis migrate gitleaks` | Secret scanner |
418
+ | [Kingfisher](https://github.com/mongodb/kingfisher) | `vis migrate kingfisher` | Secret scanner (MongoDB) |
419
+ | [Secretlint](https://github.com/secretlint/secretlint) | `vis migrate secretlint` | Secret linter |
420
+ | [Syncpack](https://github.com/JamieMason/syncpack) | `vis migrate syncpack` | Workspace dependency policy |
421
+ | [Sherif](https://github.com/QuiiBz/sherif) | `vis migrate sherif` | Monorepo linter |
382
422
 
383
423
  ## Made with ❤️ at Anolilab
384
424
 
@@ -416,6 +416,26 @@ interface VisHooks {
416
416
  workspaceRoot: string;
417
417
  }) => Promise<void> | void;
418
418
  /**
419
+ * Fired after `vis run` auto-attaches to one or more registered
420
+ * services. `taskIds` lists the in-graph dependents that consumed
421
+ * the service's `env` block; an empty array means the service was
422
+ * registered but no kept task depended on it.
423
+ */
424
+ "service:attach": (entry: ServiceEntry, taskIds: ReadonlyArray<string>) => Promise<void> | void;
425
+ /**
426
+ * Fired after a service is registered and its readiness probe
427
+ * succeeds. Sourced from both `vis service start` (and `restart`'s
428
+ * post-start phase) and any future programmatic call sites.
429
+ */
430
+ "service:start": (entry: ServiceEntry) => Promise<void> | void;
431
+ /**
432
+ * Fired after a registered service is stopped (SIGTERM/SIGKILL
433
+ * acknowledged, registry entry deleted). Not fired when stop is
434
+ * called against an unknown id — only when there was an alive
435
+ * entry to terminate.
436
+ */
437
+ "service:stop": (entry: ServiceEntry) => Promise<void> | void;
438
+ /**
419
439
  * Fired after a task completes (success, failure, or cache hit).
420
440
  * Receives the final {@link TaskResult}.
421
441
  */
@@ -435,17 +455,6 @@ interface VisHooks {
435
455
  /** Fired when a task exits non-zero. */
436
456
  "task:failure": (task: Task, result: TaskResult) => Promise<void> | void;
437
457
  /**
438
- * Fired with a stderr chunk as a running task emits it. Plugins
439
- * that ship logs live (Slack, Datadog) should prefer this over
440
- * `task:after` so they don't wait for the full buffer.
441
- */
442
- "task:stderr": (task: Task, chunk: string) => Promise<void> | void;
443
- /**
444
- * Fired with a stdout chunk as a running task emits it. See
445
- * `task:stderr` for semantics.
446
- */
447
- "task:stdout": (task: Task, chunk: string) => Promise<void> | void;
448
- /**
449
458
  * Fired during fingerprint construction, after built-in inputs are
450
459
  * gathered and before the hash is sealed. Plugins call
451
460
  * `contributor.contribute(key, value)` to mix arbitrary strings
@@ -470,25 +479,16 @@ interface VisHooks {
470
479
  */
471
480
  "task:retry": (task: Task, attempt: number, prevExitCode: number) => Promise<void> | void;
472
481
  /**
473
- * Fired after `vis run` auto-attaches to one or more registered
474
- * services. `taskIds` lists the in-graph dependents that consumed
475
- * the service's `env` block; an empty array means the service was
476
- * registered but no kept task depended on it.
477
- */
478
- "service:attach": (entry: ServiceEntry, taskIds: ReadonlyArray<string>) => Promise<void> | void;
479
- /**
480
- * Fired after a service is registered and its readiness probe
481
- * succeeds. Sourced from both `vis service start` (and `restart`'s
482
- * post-start phase) and any future programmatic call sites.
482
+ * Fired with a stderr chunk as a running task emits it. Plugins
483
+ * that ship logs live (Slack, Datadog) should prefer this over
484
+ * `task:after` so they don't wait for the full buffer.
483
485
  */
484
- "service:start": (entry: ServiceEntry) => Promise<void> | void;
486
+ "task:stderr": (task: Task, chunk: string) => Promise<void> | void;
485
487
  /**
486
- * Fired after a registered service is stopped (SIGTERM/SIGKILL
487
- * acknowledged, registry entry deleted). Not fired when stop is
488
- * called against an unknown id — only when there was an alive
489
- * entry to terminate.
488
+ * Fired with a stdout chunk as a running task emits it. See
489
+ * `task:stderr` for semantics.
490
490
  */
491
- "service:stop": (entry: ServiceEntry) => Promise<void> | void;
491
+ "task:stdout": (task: Task, chunk: string) => Promise<void> | void;
492
492
  }
493
493
  /**
494
494
  * Public plugin contract. Implementations register handlers by
@@ -919,6 +919,27 @@ interface VisConfig {
919
919
  corepack?: "auto" | boolean;
920
920
  };
921
921
  /**
922
+ * `vis-mcp` promotion notice shown after successful commands when an
923
+ * AI CLI (Claude Code, Cursor, Windsurf, Continue, Zed, Cline) is
924
+ * installed but `@visulima/vis-mcp` is not wired into its config.
925
+ *
926
+ * Shown at most once every 14 days; skipped in CI, non-TTY shells,
927
+ * during `--help`/`--version`/`ai`/`mcp` invocations, and when
928
+ * `VIS_NO_MCP_PROMOTE=1` is set. Set `enabled: false` to silence
929
+ * permanently for this workspace.
930
+ * @example
931
+ * ```
932
+ * mcpPromote: { enabled: false }
933
+ * ```
934
+ */
935
+ mcpPromote?: {
936
+ /**
937
+ * Show the vis-mcp promotion notice on successful command completion.
938
+ * @default true
939
+ */
940
+ enabled?: boolean;
941
+ };
942
+ /**
922
943
  * Named input patterns inherited by every project target. Equivalent
923
944
  * to task-runner's `namedInputs` but configurable from the vis config.
924
945
  */
@@ -1234,10 +1255,33 @@ interface VisConfig {
1234
1255
  };
1235
1256
  /**
1236
1257
  * Behavior of `vis run` when invoked tasks declare service dependencies
1237
- * that aren't running in the workspace registry. CLI `--services=<mode>`
1258
+ * that aren't running in the workspace registry. CLI `--services=&lt;mode>`
1238
1259
  * overrides this block.
1239
1260
  */
1240
1261
  run?: {
1262
+ /**
1263
+ * Wrap each task's CI log block in collapsible groups so users
1264
+ * can fold/unfold per-task output in the host CI's web UI.
1265
+ * Failed tasks always render expanded so the failure is visible
1266
+ * without an extra click.
1267
+ *
1268
+ * - `auto` (default): pick the format from the detected runner —
1269
+ * `GITHUB_ACTIONS=true` → `github` (`::group::`),
1270
+ * `GITLAB_CI=true` → `gitlab` (`section_start:` ANSI sequences),
1271
+ * `BUILDKITE=true` → `buildkite` (`---` collapsed headers),
1272
+ * `TF_BUILD=True` → `azure` (`##[group]`),
1273
+ * no grouping otherwise.
1274
+ * - `off`: never group (raw separators only — useful when
1275
+ * piping through tools that mangle the directives).
1276
+ * - `azure` / `buildkite` / `github` / `gitlab`: force the format
1277
+ * regardless of detected environment (useful for self-hosted
1278
+ * runners that don't set the standard env vars).
1279
+ *
1280
+ * CircleCI is intentionally not auto-detected: its 2.0+ format
1281
+ * has no inline grouping directive — steps auto-group in the
1282
+ * web UI without any markup from the runner.
1283
+ */
1284
+ ciGrouping?: "auto" | "azure" | "buildkite" | "github" | "gitlab" | "off";
1241
1285
  /**
1242
1286
  * One knob controlling auto-start of missing service deps.
1243
1287
  * - `auto` (default in TTY): pick by task — `dev` → ephemeral,