@visulima/vis 1.0.0-alpha.17 → 1.0.0-alpha.18
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 +35 -0
- package/README.md +66 -26
- package/dist/config/index.d.ts +72 -28
- package/dist/packem_chunks/bin.js +255 -251
- package/dist/packem_chunks/doctor-probe.js +2 -2
- package/dist/packem_chunks/handler10.js +1 -1
- package/dist/packem_chunks/handler22.js +1 -1
- package/dist/packem_chunks/handler37.js +1 -1
- package/dist/packem_chunks/handler40.js +1 -1
- package/dist/packem_chunks/handler44.js +1 -1
- package/dist/packem_chunks/handler46.js +1 -1
- package/dist/packem_chunks/handler47.js +48 -48
- package/dist/packem_chunks/handler48.js +22 -22
- package/dist/packem_shared/{docker-B4i5yxtP.js → docker-Cw5IT5Ow.js} +26 -26
- package/dist/packem_shared/flakiness-DUtrm-wS.js +1 -0
- package/index.js +729 -556
- package/package.json +12 -12
- package/schemas/vis-config.schema.json +85 -1
- package/dist/packem_shared/flakiness-Dzz-I3dB.js +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,38 @@
|
|
|
1
|
+
## @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)
|
|
2
|
+
|
|
3
|
+
### Features
|
|
4
|
+
|
|
5
|
+
* **task-runner:** add resolveTurboEnvCompat helper ([a8e73ef](https://github.com/visulima/visulima/commit/a8e73ef324dd8d1bc1f1f471f59f9292f9f01745))
|
|
6
|
+
* **vis:** add vis-mcp post-command promotion nudge ([9244fad](https://github.com/visulima/visulima/commit/9244fad8a8f9164ce99b2ab3cb771d53f926e788))
|
|
7
|
+
* **vis:** expand secrets.config.presets to tag selectors ([77b8d2b](https://github.com/visulima/visulima/commit/77b8d2bbc951d5180753f37a45d2313c01fcf47f))
|
|
8
|
+
* **vis:** honour TURBO_API/TURBO_TOKEN/TURBO_TEAM env vars ([0d4fc8c](https://github.com/visulima/visulima/commit/0d4fc8c1ad617ba27c436e40e520ddcbb19ebeca))
|
|
9
|
+
* **vis:** show flakiness table on successful runs too ([085b219](https://github.com/visulima/visulima/commit/085b219a4472ceb0fd2f507c7bc3b3b1780a014a))
|
|
10
|
+
* **vis:** surface retried-but-passed tasks and add CI log grouping ([2bdceaa](https://github.com/visulima/visulima/commit/2bdceaacf3f69c99a08c9e1b3b6eda0ee3528cd2))
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* **vis:** raise timeout for exposed-files preset tests to 15s ([433db73](https://github.com/visulima/visulima/commit/433db7319ecf4720664bc199582d571ea6a3630b))
|
|
15
|
+
* **vis:** warm default ruleset for exposed-files preset tests ([9c76250](https://github.com/visulima/visulima/commit/9c76250d2ee6e8e2be878e5dcfb149d38126d60d))
|
|
16
|
+
|
|
17
|
+
### Documentation
|
|
18
|
+
|
|
19
|
+
* **vis:** mention TURBO_API fallback in help text and migrate hint ([f9bd7ac](https://github.com/visulima/visulima/commit/f9bd7acd7a53837e40376f9b0dcf54040bbc50a1))
|
|
20
|
+
|
|
21
|
+
### Miscellaneous Chores
|
|
22
|
+
|
|
23
|
+
* added fixtures to prettier ignore ([13bda29](https://github.com/visulima/visulima/commit/13bda2942d5d95fedeec7c07937fdfc37cf960c7))
|
|
24
|
+
* **vis:** apply eslint and formatter sweep ([d3a48c5](https://github.com/visulima/visulima/commit/d3a48c577a77864b1aae52e6061a8aad1554f273))
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
### Dependencies
|
|
28
|
+
|
|
29
|
+
* **@visulima/secret-scanner:** upgraded to 1.0.0-alpha.2
|
|
30
|
+
* **@visulima/task-runner:** upgraded to 1.0.0-alpha.13
|
|
31
|
+
* **@visulima/tui:** upgraded to 1.0.0-alpha.13
|
|
32
|
+
* **@visulima/cerebro:** upgraded to 3.0.0-alpha.21
|
|
33
|
+
* **@visulima/fs:** upgraded to 5.0.0-alpha.20
|
|
34
|
+
* **@visulima/package:** upgraded to 5.0.0-alpha.19
|
|
35
|
+
|
|
1
36
|
## @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
37
|
|
|
3
38
|
### Features
|
package/README.md
CHANGED
|
@@ -36,19 +36,59 @@
|
|
|
36
36
|
|
|
37
37
|
## Features
|
|
38
38
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
- **
|
|
42
|
-
-
|
|
43
|
-
- **
|
|
44
|
-
|
|
45
|
-
-
|
|
46
|
-
|
|
47
|
-
- **
|
|
48
|
-
-
|
|
49
|
-
- **
|
|
50
|
-
- **
|
|
51
|
-
- **
|
|
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
|
|
370
|
-
|
|
|
371
|
-
| [Husky](https://github.com/typicode/husky)
|
|
372
|
-
| [lint-staged](https://github.com/lint-staged/lint-staged)
|
|
373
|
-
| [nano-staged](https://github.com/usmanyunusov/nano-staged)
|
|
374
|
-
| [Turborepo](https://github.com/vercel/turborepo)
|
|
375
|
-
| [Nx](https://github.com/nrwl/nx)
|
|
376
|
-
| [Moon](https://github.com/moonrepo/moon)
|
|
377
|
-
| [Gitleaks](https://github.com/gitleaks/gitleaks)
|
|
378
|
-
| [Kingfisher](https://github.com/mongodb/kingfisher)
|
|
379
|
-
| [Secretlint](https://github.com/secretlint/secretlint)
|
|
380
|
-
| [Syncpack](https://github.com/JamieMason/syncpack)
|
|
381
|
-
| [Sherif](https://github.com/QuiiBz/sherif)
|
|
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
|
|
package/dist/config/index.d.ts
CHANGED
|
@@ -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
|
|
474
|
-
*
|
|
475
|
-
*
|
|
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
|
-
"
|
|
486
|
+
"task:stderr": (task: Task, chunk: string) => Promise<void> | void;
|
|
485
487
|
/**
|
|
486
|
-
* Fired
|
|
487
|
-
*
|
|
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
|
-
"
|
|
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
|
|
1258
|
+
* that aren't running in the workspace registry. CLI `--services=<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,
|