@visulima/vis 1.0.0-alpha.9 → 1.0.1
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 +1854 -3
- package/LICENSE.md +13515 -10
- package/README.md +215 -39
- package/bin/resolve-binary.mjs +85 -0
- package/bin/vis.mjs +76 -0
- package/dashboard/dist/index.html +152 -0
- package/dist/bin.d.ts +1 -0
- package/dist/bin.js +1 -2
- package/dist/binx.js +3 -0
- package/dist/config/index.d.ts +3276 -0
- package/dist/config/index.js +1 -0
- package/dist/generate/index.d.ts +1 -1
- package/dist/generate/index.js +1 -1
- package/dist/packem_chunks/CONFIG_FILES.js +8 -0
- package/dist/packem_chunks/DEFAULT_CLEAN_KEEP.js +1 -0
- package/dist/packem_chunks/agent-instructions.js +11 -0
- package/dist/packem_chunks/bloom-status.js +2 -0
- package/dist/packem_chunks/bloom-sync.js +2 -0
- package/dist/packem_chunks/cache-attestation.js +1 -0
- package/dist/packem_chunks/catalog-detector.js +1 -0
- package/dist/packem_chunks/catalog.js +114 -0
- package/dist/packem_chunks/cli-exec.js +1 -0
- package/dist/packem_chunks/cli-main.js +268 -0
- package/dist/packem_chunks/defineReleasePlugin.js +3 -0
- package/dist/packem_chunks/detect.js +3 -0
- package/dist/packem_chunks/detect2.js +8 -0
- package/dist/packem_chunks/devtools.js +4 -0
- package/dist/packem_chunks/discord.js +4 -0
- package/dist/packem_chunks/dispatch.js +4 -0
- package/dist/packem_chunks/doctor-probe.js +2 -0
- package/dist/packem_chunks/dynamic-import.js +1 -0
- package/dist/packem_chunks/extra-files.js +3 -0
- package/dist/packem_chunks/fix.js +11 -0
- package/dist/packem_chunks/git.js +3 -0
- package/dist/packem_chunks/group-tags.js +1 -0
- package/dist/packem_chunks/handler.js +1 -1
- package/dist/packem_chunks/handler10.js +5 -1
- package/dist/packem_chunks/handler11.js +1 -1
- package/dist/packem_chunks/handler12.js +26 -152
- package/dist/packem_chunks/handler13.js +5 -1
- package/dist/packem_chunks/handler14.js +1 -3
- package/dist/packem_chunks/handler15.js +1 -1
- package/dist/packem_chunks/handler16.js +1 -2
- package/dist/packem_chunks/handler17.js +1 -7
- package/dist/packem_chunks/handler18.js +1 -1
- package/dist/packem_chunks/handler19.js +5 -19
- package/dist/packem_chunks/handler2.js +1 -1
- package/dist/packem_chunks/handler20.js +2 -428
- package/dist/packem_chunks/handler21.js +2 -22
- package/dist/packem_chunks/handler22.js +14 -3
- package/dist/packem_chunks/handler23.js +1 -5
- package/dist/packem_chunks/handler24.js +1 -1
- package/dist/packem_chunks/handler25.js +1 -20
- package/dist/packem_chunks/handler26.js +5 -1
- package/dist/packem_chunks/handler27.js +1 -1
- package/dist/packem_chunks/handler28.js +3 -1
- package/dist/packem_chunks/handler29.js +1 -2
- package/dist/packem_chunks/handler3.js +4 -2
- package/dist/packem_chunks/handler30.js +1 -22
- package/dist/packem_chunks/handler31.js +2 -1
- package/dist/packem_chunks/handler32.js +2 -1
- package/dist/packem_chunks/handler33.js +2 -37
- package/dist/packem_chunks/handler34.js +3 -3
- package/dist/packem_chunks/handler35.js +6 -23
- package/dist/packem_chunks/handler36.js +1 -5
- package/dist/packem_chunks/handler37.js +36 -21
- package/dist/packem_chunks/handler38.js +8 -1
- package/dist/packem_chunks/handler39.js +9 -2
- package/dist/packem_chunks/handler4.js +4 -5
- package/dist/packem_chunks/handler40.js +75 -1
- package/dist/packem_chunks/handler41.js +5 -5
- package/dist/packem_chunks/handler42.js +4 -1
- package/dist/packem_chunks/handler43.js +3 -24
- package/dist/packem_chunks/handler44.js +2 -3
- package/dist/packem_chunks/handler45.js +1 -1
- package/dist/packem_chunks/handler46.js +1 -0
- package/dist/packem_chunks/handler47.js +1 -0
- package/dist/packem_chunks/handler48.js +3 -0
- package/dist/packem_chunks/handler49.js +1 -0
- package/dist/packem_chunks/handler5.js +6 -4
- package/dist/packem_chunks/handler50.js +7 -0
- package/dist/packem_chunks/handler51.js +33 -0
- package/dist/packem_chunks/handler52.js +3 -0
- package/dist/packem_chunks/handler53.js +8 -0
- package/dist/packem_chunks/handler54.js +4 -0
- package/dist/packem_chunks/handler55.js +1 -0
- package/dist/packem_chunks/handler56.js +12 -0
- package/dist/packem_chunks/handler57.js +11 -0
- package/dist/packem_chunks/handler58.js +5 -0
- package/dist/packem_chunks/handler59.js +11 -0
- package/dist/packem_chunks/handler6.js +8 -2
- package/dist/packem_chunks/handler60.js +3 -0
- package/dist/packem_chunks/handler61.js +22 -0
- package/dist/packem_chunks/handler62.js +61 -0
- package/dist/packem_chunks/handler63.js +3 -0
- package/dist/packem_chunks/handler64.js +6 -0
- package/dist/packem_chunks/handler65.js +9 -0
- package/dist/packem_chunks/handler66.js +2 -0
- package/dist/packem_chunks/handler67.js +24 -0
- package/dist/packem_chunks/handler68.js +25 -0
- package/dist/packem_chunks/handler69.js +153 -0
- package/dist/packem_chunks/handler7.js +1 -24
- package/dist/packem_chunks/handler70.js +10 -0
- package/dist/packem_chunks/handler71.js +23 -0
- package/dist/packem_chunks/handler72.js +322 -0
- package/dist/packem_chunks/handler73.js +708 -0
- package/dist/packem_chunks/handler74.js +48 -0
- package/dist/packem_chunks/handler75.js +27 -0
- package/dist/packem_chunks/handler76.js +3 -0
- package/dist/packem_chunks/handler77.js +190 -0
- package/dist/packem_chunks/handler78.js +38 -0
- package/dist/packem_chunks/handler8.js +1 -6
- package/dist/packem_chunks/handler9.js +1 -8
- package/dist/packem_chunks/heal-accept.js +10 -0
- package/dist/packem_chunks/heal.js +14 -0
- package/dist/packem_chunks/help-command.js +31 -0
- package/dist/packem_chunks/index.js +1 -7
- package/dist/packem_chunks/index2.js +802 -0
- package/dist/packem_chunks/index3.js +7 -0
- package/dist/packem_chunks/index4.js +135 -0
- package/dist/packem_chunks/index5.js +73 -0
- package/dist/packem_chunks/interface.js +2 -0
- package/dist/packem_chunks/keys-refresh.js +4 -0
- package/dist/packem_chunks/lean.js +4 -0
- package/dist/packem_chunks/list.js +3 -0
- package/dist/packem_chunks/loader.js +4 -1
- package/dist/packem_chunks/loader2.js +1 -0
- package/dist/packem_chunks/orchestrator.js +42 -0
- package/dist/packem_chunks/pre-mode.js +2 -0
- package/dist/packem_chunks/print-config.js +2 -0
- package/dist/packem_chunks/prompts.js +7 -0
- package/dist/packem_chunks/prune.js +3 -0
- package/dist/packem_chunks/publish-guards.js +1 -0
- package/dist/packem_chunks/registry.js +48 -0
- package/dist/packem_chunks/resolveFormatter.js +9 -0
- package/dist/packem_chunks/run.js +1 -0
- package/dist/packem_chunks/security.js +1 -0
- package/dist/packem_chunks/shell-runner.js +1 -0
- package/dist/packem_chunks/slack.js +2 -0
- package/dist/packem_chunks/snapshot.js +2 -0
- package/dist/packem_chunks/stage-publisher.js +1 -0
- package/dist/packem_chunks/staged-registry.js +2 -0
- package/dist/packem_chunks/state.js +3 -0
- package/dist/packem_chunks/status.js +2 -0
- package/dist/packem_chunks/success-walk.js +8 -0
- package/dist/packem_chunks/sync.js +2 -0
- package/dist/packem_chunks/sync2.js +2 -0
- package/dist/packem_chunks/tar.js +3 -0
- package/dist/packem_chunks/tripwire.js +2 -0
- package/dist/packem_chunks/ts-loader.js +22 -0
- package/dist/packem_chunks/verify-lockfile.js +2 -0
- package/dist/packem_chunks/version-resolver.js +2 -0
- package/dist/packem_chunks/webhook.js +1 -0
- package/dist/packem_chunks/workflow-templates.js +167 -0
- package/dist/packem_chunks/workspace.js +2 -0
- package/dist/packem_shared/AfterAllProjectsVersioned-CAKI2nWf.js +1 -0
- package/dist/packem_shared/MultiSpinner-B9U0-aE3-B-gIXhFk.js +3 -0
- package/dist/packem_shared/ReleaseClient-BY4OZNCK.js +1 -0
- package/dist/packem_shared/Table-BGIHvenQ-D2oJtNQj.js +34 -0
- package/dist/packem_shared/VisReleaseError-DMGRBTNO.js +1 -0
- package/dist/packem_shared/_commonjsHelpers-B5Y90VFO.js +1 -0
- package/dist/packem_shared/advisories-CaP4uNhD.js +1 -0
- package/dist/packem_shared/affected-shas-BfO3PDJq.js +1 -0
- package/dist/packem_shared/ai-analysis-CO7No4rt.js +68 -0
- package/dist/packem_shared/ai-fix-B4u2zlVG.js +43 -0
- package/dist/packem_shared/anolilab-text-CAM_E6uK.js +13 -0
- package/dist/packem_shared/api.d-BPftyU9r.d.ts +27 -0
- package/dist/packem_shared/augment-8z86AwtF.js +4 -0
- package/dist/packem_shared/bin-Cv8vsMEo.js +1 -0
- package/dist/packem_shared/build-scripts-D477Ou-x.js +1 -0
- package/dist/packem_shared/command-runtime-EWjmSxPj.js +1 -0
- package/dist/packem_shared/compile-cache-B_Vf_WxT.js +3 -0
- package/dist/packem_shared/createAdapter-bU4DIP3F.js +1 -0
- package/dist/packem_shared/createVersionActions-BK43SNDH.js +1 -0
- package/dist/packem_shared/cyclonedx-CDWHbD9s.js +4 -0
- package/dist/packem_shared/defineFormatter-D5dCp6Kv.js +1 -0
- package/dist/packem_shared/definePlugin-DoUcoYSy.js +1 -0
- package/dist/packem_shared/dependency-scan-P52jY0pU.js +1 -0
- package/dist/packem_shared/docker-CD7o1D1o.js +59 -0
- package/dist/packem_shared/env-Cpxa_7UE.js +27 -0
- package/dist/packem_shared/failure-log-MOhz-TBv.js +2 -0
- package/dist/packem_shared/giget-DVTFJlbR.js +2 -0
- package/dist/packem_shared/glob-DMbPwGSj-uzODoE-1.js +1 -0
- package/dist/packem_shared/index-B0EsgdzO.js +1 -0
- package/dist/packem_shared/index-BAUIIRZJ.js +1 -0
- package/dist/packem_shared/index-BVuCxe14.js +22 -0
- package/dist/packem_shared/index-CdTXvj-V.js +1 -0
- package/dist/packem_shared/index-CgXLAAVI.js +28 -0
- package/dist/packem_shared/index-DjTWo3sH.js +1 -0
- package/dist/packem_shared/index.server-J83sowC4.js +2 -0
- package/dist/packem_shared/interface.d-B7VK2rcH.d.ts +148 -0
- package/dist/packem_shared/interface.d-Cezzifoh.d.ts +106 -0
- package/dist/packem_shared/license-t5KnNX6v.js +1 -0
- package/dist/packem_shared/lifecycle-hzwghh5a.js +2 -0
- package/dist/packem_shared/lockfile-CWcVTdRc.js +1 -0
- package/dist/packem_shared/main-B3juSU5z.js +1 -0
- package/dist/packem_shared/manifests-CaPqgQxW.js +1 -0
- package/dist/packem_shared/min-release-age-skpcnlpk.js +34 -0
- package/dist/packem_shared/missing-package-json-_hOp4AW5.js +1 -0
- package/dist/packem_shared/native-config-sync-CFi1iQNG.js +21 -0
- package/dist/packem_shared/osv-bloom-BAyJUnRx.js +2 -0
- package/dist/packem_shared/otelPlugin-DmKDBaPo.js +1 -0
- package/dist/packem_shared/packument-CYxvm590.js +1 -0
- package/dist/packem_shared/peer-warnings-BXAzXqY3.js +1 -0
- package/dist/packem_shared/plugins.d-ND23R9I3.d.ts +4 -0
- package/dist/packem_shared/pm-runner-mVFjedM6.js +1 -0
- package/dist/packem_shared/prompt-DjXHVgYU.js +1 -0
- package/dist/packem_shared/provenance-CI_WQx7G.js +1 -0
- package/dist/packem_shared/public-api-WqUCiyIe.js +131 -0
- package/dist/packem_shared/readJsonSync-DuMMeB3s-Cx08VBQg.js +1 -0
- package/dist/packem_shared/registry-keys-AGlSEY6R.js +1 -0
- package/dist/packem_shared/resolve-explicit-DVE9cfkm.js +5 -0
- package/dist/packem_shared/resolve-runtime-CGHf-wHz.js +1 -0
- package/dist/packem_shared/run-file-Bs_E9O6O.js +1 -0
- package/dist/packem_shared/runtime-check-pS2XH4BO.js +1 -0
- package/dist/packem_shared/runtime-process-Dmz0vCJy-DUwTvH1J.js +1 -0
- package/dist/packem_shared/s1ngularity-xmrq5T5r.js +1 -0
- package/dist/packem_shared/scan-progress-DQ4TMXcb.js +2 -0
- package/dist/packem_shared/selectors-CRgS4bU9.js +3 -0
- package/dist/packem_shared/signatures-Dp3th1DB.js +2 -0
- package/dist/packem_shared/slug-DoueYuLo.js +1 -0
- package/dist/packem_shared/spinner-DuJJvFTl.js +1 -0
- package/dist/packem_shared/sticky-comment-D6_7-w8T.js +1 -0
- package/dist/packem_shared/subtree-C7bZuiSQ.js +2 -0
- package/dist/packem_shared/symbols-DPTlrJ3B.js +1 -0
- package/dist/packem_shared/tabs-CgxCvjCY.js +1 -0
- package/dist/packem_shared/target-merge-D2eTghgd.js +11 -0
- package/dist/packem_shared/target-options-TM6ETDAS.js +1 -0
- package/dist/packem_shared/toolchain-B5KwUZfq.js +5 -0
- package/dist/packem_shared/typosquats-C0layQsP.js +1 -0
- package/dist/packem_shared/use-measured-height-Drobr4fe.js +1 -0
- package/dist/packem_shared/utils-CRueU43T.js +1 -0
- package/dist/packem_shared/verify-Cjo4EBFZ.js +1 -0
- package/dist/packem_shared/vis-update-app-qIkyvrd1.js +1 -0
- package/dist/packem_shared/watch-BnE1TzYn.js +1 -0
- package/dist/packem_shared/watch-loop-Irf3Pm-1.js +11 -0
- package/dist/release/core/changelog/index.d.ts +5 -0
- package/dist/release/core/changelog/index.js +1 -0
- package/dist/release/core/package-managers/index.d.ts +6 -0
- package/dist/release/core/package-managers/index.js +1 -0
- package/dist/release/core/version-actions/index.d.ts +14 -0
- package/dist/release/core/version-actions/index.js +1 -0
- package/dist/release/index.d.ts +233 -0
- package/dist/release/index.js +1 -0
- package/dist/release/plugin-sdk.d.ts +128 -0
- package/dist/release/plugin-sdk.js +1 -0
- package/dist/release/presets.d.ts +225 -0
- package/dist/release/presets.js +1 -0
- package/dist/release/types.d.ts +1493 -0
- package/dist/release/types.js +1 -0
- package/dist/runtime/preload.d.ts +1 -0
- package/dist/runtime/preload.js +1 -0
- package/index.d.ts +450 -0
- package/index.js +663 -556
- package/package.json +105 -62
- package/schemas/project.schema.json +872 -225
- package/schemas/vis-config.schema.json +6309 -264
- package/schemas/vis-release-config.schema.json +1423 -0
- package/skills/vis/SKILL.md +96 -0
- package/templates/buildkite-ci/.buildkite/pipeline.yml.tera +85 -0
- package/templates/buildkite-ci/template.yml +20 -0
- package/dist/config.d.ts +0 -1087
- package/dist/config.js +0 -1
- package/dist/packem_shared/VisUpdateApp-BBx3idMI.js +0 -1
- package/dist/packem_shared/ai-analysis-DDqXRFxY.js +0 -67
- package/dist/packem_shared/bin-BaZZ32BK.js +0 -93
- package/dist/packem_shared/cache-directory-DL8hfXeG.js +0 -1
- package/dist/packem_shared/catalog-CuSpuB_R.js +0 -12
- package/dist/packem_shared/dependency-scan-BoLG2Fez.js +0 -1
- package/dist/packem_shared/docker-BcfqH4Av.js +0 -2
- package/dist/packem_shared/flakiness-DSIHZGBT.js +0 -1
- package/dist/packem_shared/otelPlugin-DxyvBcXO.js +0 -1
- package/dist/packem_shared/runtime-check-CGHal8SO.js +0 -1
- package/dist/packem_shared/selectors-CfH9ZY08.js +0 -3
- package/dist/packem_shared/symbols-CIMw60-G.js +0 -1
- package/dist/packem_shared/toolchain-C3ZG0o_X.js +0 -5
- package/dist/packem_shared/typosquats-Bpq4zcWL.js +0 -1
- package/dist/packem_shared/utils-DrNg0XTR.js +0 -1
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: vis
|
|
3
|
+
description: Use when the workspace contains a vis.config.ts (or vis.config.js/json) at the repo root, or when the user mentions "vis", "task-runner", or "@visulima/vis". This skill orchestrates the vis MCP server's eight read-only tools to inspect projects, plan task graphs, and diagnose remote-cache rotations.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Working with the `vis` task runner
|
|
7
|
+
|
|
8
|
+
`vis` is the Visulima monorepo task runner — a Turborepo/Nx-class tool with a remote cache, REAPI gRPC backend, and project graph. When this skill is active you have the **`@visulima/vis-mcp` server** mounted, exposing eight read-only tools. Use them in preference to running `vis` shell commands yourself: the tools give you structured JSON and run faster.
|
|
9
|
+
|
|
10
|
+
The MCP server deliberately does NOT execute targets or scaffold templates — Nx-style "agent prepares, human executes". When the user wants to run `<project>:<target>` or `vis generate <template>`, prepare the command (use `list_targets`/`describe_template` to confirm it exists and capture required arguments) and ask the user to run it themselves; afterwards use `get_run_logs` to read the result of any task run.
|
|
11
|
+
|
|
12
|
+
## Tools available
|
|
13
|
+
|
|
14
|
+
| Tool | Purpose |
|
|
15
|
+
| ------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
|
|
16
|
+
| `list_projects` | All projects in the workspace, optionally filtered by a vis query (`tag=frontend`, `type=application`, …) |
|
|
17
|
+
| `describe_project` | Full metadata for one project: language, layer, tags, root path, all targets |
|
|
18
|
+
| `list_targets` | Per-target rows across the workspace, optionally narrowed to a single project |
|
|
19
|
+
| `list_templates` | Scaffolding templates discovered in `.vis/templates/`, `.moon/templates/`, and `vis.config.ts` `generator.templates` |
|
|
20
|
+
| `describe_template` | Variable schema, default destination, and description for a single template — required before suggesting a `vis generate` command |
|
|
21
|
+
| `get_run_logs` | Most recent run summary from `.task-runner/`, or a specific `runId`, optionally filtered to one task |
|
|
22
|
+
| `cache_why` | Diff a task's cache hash against the previous run — pinpoints what changed (command, nodes, runtime, implicit deps) |
|
|
23
|
+
| `cache_hash` | Recorded hash and per-input hash details for a task |
|
|
24
|
+
|
|
25
|
+
## Workflow patterns
|
|
26
|
+
|
|
27
|
+
### Discovery — "what's in this repo?"
|
|
28
|
+
|
|
29
|
+
Default opening move when the user asks about the workspace:
|
|
30
|
+
|
|
31
|
+
1. `list_projects` (no filter). Shows everything with categories and target counts.
|
|
32
|
+
2. If they ask about a specific package, `describe_project` for the full picture rather than re-running list with a filter.
|
|
33
|
+
|
|
34
|
+
### Plan a build
|
|
35
|
+
|
|
36
|
+
1. `list_targets` (optionally with `project: "@scope/name"`) to see what `build`/`test`/`lint`/etc. targets exist.
|
|
37
|
+
2. Tell the user the exact command (`vis run @scope/name:build`) and let them run it.
|
|
38
|
+
3. Use `get_run_logs` afterwards to inspect status, cache hits, and stderr tails.
|
|
39
|
+
|
|
40
|
+
### Investigate a cache miss
|
|
41
|
+
|
|
42
|
+
When a build that should have been cached re-ran:
|
|
43
|
+
|
|
44
|
+
1. `get_run_logs` (no args → latest summary) — surfaces all task statuses for the last run.
|
|
45
|
+
2. For any task with status `success` but `cacheStatus: "miss"`, call `cache_why` with that `taskId`. It diffs hashDetails against the previous run and tells you which input rotated (command string, file content, `implicitDependency`, runtime version, …).
|
|
46
|
+
3. If `cache_why` shows the change but the user wants to see the raw hash inputs, `cache_hash` returns the full per-input breakdown.
|
|
47
|
+
|
|
48
|
+
### Scaffold a new package or component
|
|
49
|
+
|
|
50
|
+
When the user asks for "a new X" / "scaffold Y":
|
|
51
|
+
|
|
52
|
+
1. `list_templates` — pick the template whose `name` or `description` matches the user's request.
|
|
53
|
+
2. `describe_template` with that name — read the `variables[]` schema. Identify which variables are `required` and which have sensible `default` values.
|
|
54
|
+
3. Construct the command: `vis generate <name> -- --var1=value1 --var2=value2`. For interactive prompts, drop the `--` overrides and let the user step through. For `--defaults`-friendly templates, add `--defaults` to skip prompts.
|
|
55
|
+
4. Hand the command to the user to execute. Don't fabricate variable values — if the user hasn't told you what to pass for a required variable, ask.
|
|
56
|
+
|
|
57
|
+
#### Worked example
|
|
58
|
+
|
|
59
|
+
User: _"Scaffold a new React button component called PrimaryButton."_
|
|
60
|
+
|
|
61
|
+
1. Call `list_templates` → response contains an entry `{ "name": "component", "source": "native", "description": "Scaffold a React component" }`. That's the closest match.
|
|
62
|
+
2. Call `describe_template` with `{ "name": "component" }` → response shows `variables`:
|
|
63
|
+
```json
|
|
64
|
+
[
|
|
65
|
+
{ "name": "name", "type": "string", "required": true, "prompt": "Component name?" },
|
|
66
|
+
{ "name": "withTest", "type": "boolean", "required": false, "default": true },
|
|
67
|
+
{ "name": "style", "type": "enum", "required": false, "default": "primary", "values": ["primary", "secondary"] }
|
|
68
|
+
]
|
|
69
|
+
```
|
|
70
|
+
3. The user supplied `name` (`PrimaryButton`) and implied `style=primary` (default already matches). `withTest` is unspecified — the default is fine, no need to override.
|
|
71
|
+
4. Suggested command for the user to run:
|
|
72
|
+
```sh
|
|
73
|
+
vis generate component -- --name=PrimaryButton --style=primary
|
|
74
|
+
```
|
|
75
|
+
Do **not** invent values for required variables the user never mentioned — ask first.
|
|
76
|
+
|
|
77
|
+
### Diagnose a failed run
|
|
78
|
+
|
|
79
|
+
1. `get_run_logs` to see which task(s) failed.
|
|
80
|
+
2. `get_run_logs` with `taskId` set to the failing task — returns just that entry, including the captured stderr tail.
|
|
81
|
+
3. Decide: is it a code bug (read the project's source), a cache poisoning issue (`cache_why`), or environmental (look at the run summary's `runtime` block)?
|
|
82
|
+
|
|
83
|
+
## Safety rules
|
|
84
|
+
|
|
85
|
+
- **All tools are read-only.** The server does not execute targets. If the user wants something built/tested/linted, give them the command and let them run it.
|
|
86
|
+
- **All tools run in the directory where `vis-mcp` was launched.** Override at server startup by setting `VIS_MCP_WORKSPACE_ROOT`. You can read that path from the server's stderr boot line: `[vis-mcp] ready (workspace: …)`.
|
|
87
|
+
|
|
88
|
+
## When NOT to use this skill
|
|
89
|
+
|
|
90
|
+
- The user wants to write a `vis.config.ts` — that's editing source, not running the CLI. Use Read/Edit/Write on the config file directly.
|
|
91
|
+
- The user is asking about Turborepo, Nx, or Bazel specifically (not vis). The tools won't help with those.
|
|
92
|
+
- The repo has no `vis.config.*` and no mention of vis. Don't volunteer the tools.
|
|
93
|
+
|
|
94
|
+
## Tool-result conventions
|
|
95
|
+
|
|
96
|
+
All tools return JSON-encoded text in the standard MCP `content[].text` slot. On error, `isError: true` is set and the text payload is `{"error": "<message>"}`. Parse the JSON before reasoning about it — the text field is structured data, not prose.
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
---
|
|
2
|
+
to: ".buildkite/pipeline.yml"
|
|
3
|
+
---
|
|
4
|
+
# Generated by `vis generate buildkite-ci`.
|
|
5
|
+
# Run `vis ci` against affected packages on every build.{% if withHeal %}
|
|
6
|
+
# Heal block: on failure, `vis ai heal` posts a Buildkite annotation; an
|
|
7
|
+
# allow-listed maintainer manually unblocks the block step to apply +
|
|
8
|
+
# commit the patch via `vis ai heal accept`. The unblocker email
|
|
9
|
+
# (BUILDKITE_UNBLOCKER_EMAIL) must be listed in `ai.heal.allowedActors`
|
|
10
|
+
# in vis.config.ts or the accept step refuses to commit.{% endif %}
|
|
11
|
+
|
|
12
|
+
steps:
|
|
13
|
+
- label: ":hammer: vis ci"
|
|
14
|
+
key: ci
|
|
15
|
+
timeout_in_minutes: 30
|
|
16
|
+
command: |
|
|
17
|
+
{% if packageManager == "pnpm" %} corepack enable
|
|
18
|
+
pnpm install --frozen-lockfile
|
|
19
|
+
pnpm vis ci {{ targets }}
|
|
20
|
+
{% endif %}{% if packageManager == "npm" %} npm ci
|
|
21
|
+
npx vis ci {{ targets }}
|
|
22
|
+
{% endif %}{% if packageManager == "yarn" %} corepack enable
|
|
23
|
+
yarn install --immutable
|
|
24
|
+
yarn vis ci {{ targets }}
|
|
25
|
+
{% endif %}{% if packageManager == "bun" %} bun install --frozen-lockfile
|
|
26
|
+
bunx vis ci {{ targets }}
|
|
27
|
+
{% endif %} agents:
|
|
28
|
+
queue: {{ agentQueue }}
|
|
29
|
+
{% if withHeal %}
|
|
30
|
+
- label: ":sparkles: vis ai heal"
|
|
31
|
+
key: heal-propose
|
|
32
|
+
depends_on: ci
|
|
33
|
+
timeout_in_minutes: 30
|
|
34
|
+
# Only run when CI failed and the build is for a PR — heal-accept
|
|
35
|
+
# has nowhere to commit on push-event builds.
|
|
36
|
+
if: build.failed_jobs > 0 && build.pull_request.id != null
|
|
37
|
+
command: |
|
|
38
|
+
{% if packageManager == "pnpm" %} corepack enable
|
|
39
|
+
pnpm install --frozen-lockfile
|
|
40
|
+
pnpm vis ai heal
|
|
41
|
+
{% endif %}{% if packageManager == "npm" %} npm ci
|
|
42
|
+
npx vis ai heal
|
|
43
|
+
{% endif %}{% if packageManager == "yarn" %} corepack enable
|
|
44
|
+
yarn install --immutable
|
|
45
|
+
yarn vis ai heal
|
|
46
|
+
{% endif %}{% if packageManager == "bun" %} bun install --frozen-lockfile
|
|
47
|
+
bunx vis ai heal
|
|
48
|
+
{% endif %} agents:
|
|
49
|
+
queue: {{ agentQueue }}
|
|
50
|
+
# Buildkite has no commit API of its own — `vis ai heal accept`
|
|
51
|
+
# derives the upstream provider from BUILDKITE_REPO and commits
|
|
52
|
+
# through GitHub or GitLab. Set GITHUB_TOKEN or GITLAB_TOKEN on
|
|
53
|
+
# the agent (matching your remote) so heal accept can land the patch.
|
|
54
|
+
|
|
55
|
+
- block: ":white_check_mark: Apply AI heal patch?"
|
|
56
|
+
key: heal-gate
|
|
57
|
+
depends_on: heal-propose
|
|
58
|
+
if: build.failed_jobs > 0 && build.pull_request.id != null
|
|
59
|
+
prompt: |
|
|
60
|
+
Unblocking applies and commits the patch from the heal annotation.
|
|
61
|
+
The unblocker email (BUILDKITE_UNBLOCKER_EMAIL) must be listed in
|
|
62
|
+
`ai.heal.allowedActors` in vis.config.ts, otherwise the accept
|
|
63
|
+
step will refuse to commit.
|
|
64
|
+
|
|
65
|
+
- label: ":robot_face: vis ai heal accept"
|
|
66
|
+
key: heal-accept
|
|
67
|
+
depends_on: heal-gate
|
|
68
|
+
timeout_in_minutes: 30
|
|
69
|
+
# Defense in depth — heal-accept can't push to a fork and has no
|
|
70
|
+
# commit target on push-event builds. Refuse early.
|
|
71
|
+
if: build.pull_request.id != null
|
|
72
|
+
command: |
|
|
73
|
+
{% if packageManager == "pnpm" %} corepack enable
|
|
74
|
+
pnpm install --frozen-lockfile
|
|
75
|
+
pnpm vis ai heal accept
|
|
76
|
+
{% endif %}{% if packageManager == "npm" %} npm ci
|
|
77
|
+
npx vis ai heal accept
|
|
78
|
+
{% endif %}{% if packageManager == "yarn" %} corepack enable
|
|
79
|
+
yarn install --immutable
|
|
80
|
+
yarn vis ai heal accept
|
|
81
|
+
{% endif %}{% if packageManager == "bun" %} bun install --frozen-lockfile
|
|
82
|
+
bunx vis ai heal accept
|
|
83
|
+
{% endif %} agents:
|
|
84
|
+
queue: {{ agentQueue }}
|
|
85
|
+
{% endif %}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"title": "Buildkite CI"
|
|
2
|
+
"description": "A Buildkite pipeline.yml that runs `vis ci` against affected packages, with an optional `vis ai heal` block-step flow."
|
|
3
|
+
"variables":
|
|
4
|
+
"targets":
|
|
5
|
+
"type": "string"
|
|
6
|
+
"default": "lint,test,build"
|
|
7
|
+
"prompt": "Comma-separated list of `vis ci` targets to run"
|
|
8
|
+
"packageManager":
|
|
9
|
+
"type": "enum"
|
|
10
|
+
"values": ["pnpm", "npm", "yarn", "bun"]
|
|
11
|
+
"default": "pnpm"
|
|
12
|
+
"prompt": "Package manager (used in the install line)"
|
|
13
|
+
"withHeal":
|
|
14
|
+
"type": "boolean"
|
|
15
|
+
"default": false
|
|
16
|
+
"prompt": "Include the `vis ai heal` propose + block-step accept flow?"
|
|
17
|
+
"agentQueue":
|
|
18
|
+
"type": "string"
|
|
19
|
+
"default": "default"
|
|
20
|
+
"prompt": "Buildkite agent queue to schedule on"
|