You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit bde805f
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: AGENTS.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,7 @@ Monorepo (`pnpm` workspaces + `turbo`). ESM TypeScript; bundled with `tsdown`. P
25
25
|`packages/vite`|`@vitejs/devtools-vite`| Nuxt UI for the Vite dev server's plugin pipeline and module transforms. Hub-mounted via `Plugin.devtools.setup`. Serves at `/__devtools-vite/`. |
26
26
|`packages/oxc`|`@vitejs/devtools-oxc`| Oxc toolchain (oxlint/oxfmt) inspector, donated from [`yuyinws/oxc-inspector`](https://github.com/yuyinws/oxc-inspector) with full history; owned by Leo. Advertised by core as a built-in install launcher in the `viteplus` group (installed on demand), mounted via `DevToolsOxc()` from `@vitejs/devtools-oxc/vite` once present, plus a standalone CLI/client. Its Nuxt client is on the shared stack — UnoCSS via `presetDevToolsUI` and `@vitejs/devtools-ui` components (an oxc-cyan `primary` scale derived from the `BannerOxcDevTools` accent) — and is wired into the turbo build, `vue-tsc` typecheck (own `src/tsconfig.json` reference) and export-snapshot gates. It dogfoods its own oxlint/oxfmt on itself (run `pnpm -C packages/oxc lint`), whose formatting conflicts with the repo-wide antfu ESLint config, so it stays out of the shared ESLint run. |
27
27
|`packages/vitest`|`@vitejs/devtools-vitest`| Slim launcher for the Vitest UI, in the `viteplus` dock group. A `launcher` dock (only shown when the project uses Vitest) installs `@vitest/ui` on demand, spawns `vitest --ui`, then swaps to an iframe. Serves its favicon at `/__devtools-vitest/`. |
28
+
|`packages/vite-task`|`@vitejs/devtools-vite-task`| Vite Plus task graph and dry-run cache inspector, mounted in the `viteplus` dock group. Serves at `/__devtools-vite-task/`. |
Meta-introspection ("DevTools for the DevTools") is provided by the official upstream `@devframes/plugin-inspect`, mounted as a built-in via `createPluginFromDevframe` (replaces the former `packages/self-inspect`).
@@ -38,10 +39,11 @@ flowchart TD
38
39
hub --> devframe
39
40
kit --> hub
40
41
core --> kit
41
-
core --> rolldown & vite & vitest
42
+
core --> rolldown & vite & vitest & vite-task
42
43
rolldown --> kit & ui
43
44
vite --> kit & ui
44
45
vitest --> kit
46
+
vite-task --> kit
45
47
webext --> core
46
48
```
47
49
@@ -110,6 +112,7 @@ All node-side warnings and errors use structured diagnostics via [`nostics`](htt
> Local Vite Plus executable not found at "`{executable}`".
10
+
11
+
## Cause
12
+
13
+
The task inspector could not find the workspace's local Vite Plus executable in `node_modules/.bin`.
14
+
15
+
## Example
16
+
17
+
Opening the task inspector in a workspace where `vite-plus` has not been installed.
18
+
19
+
## Fix
20
+
21
+
Install `vite-plus` 1.6.0 or newer in the workspace root.
22
+
23
+
## Source
24
+
25
+
-[`packages/vite-task/src/node/tasks.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite-task/src/node/tasks.ts) — `runJson()` throws this when the local executable is missing.
> Vite Plus `{version}` does not meet the required version >=1.6.0.
10
+
11
+
## Cause
12
+
13
+
The local Vite Plus version is older than the task inspector's required version, 1.6.0.
14
+
15
+
## Example
16
+
17
+
Opening the task inspector in a workspace using Vite Plus 1.5.0.
18
+
19
+
## Fix
20
+
21
+
Update the workspace's `vite-plus` dependency to 1.6.0 or newer.
22
+
23
+
## Source
24
+
25
+
-[`packages/vite-task/src/node/tasks.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite-task/src/node/tasks.ts) — `runJson()` throws this when the local version is unsupported.
A Vite Plus command failed, or the inspector could not recognize the output of `vp --version`.
14
+
15
+
## Example
16
+
17
+
Loading the task graph when a workspace task configuration causes `vp run --json` to fail.
18
+
19
+
## Fix
20
+
21
+
Check the local Vite Plus installation and workspace task configuration. Run the command shown in the diagnostic from the workspace root to inspect its output.
22
+
23
+
## Source
24
+
25
+
-[`packages/vite-task/src/node/tasks.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite-task/src/node/tasks.ts) — `execute()` throws this on command failure; `runJson()` also throws it for unrecognized version output.
> Vite Plus returned invalid or unsupported JSON for "`{command}`".
10
+
11
+
## Cause
12
+
13
+
The inspector expects a version 1 JSON object with string `$schema` and `workspaceRoot` fields. Task graphs must also contain `tasks` and `packages` objects, and dry-run responses must contain a `plan` object.
14
+
15
+
## Example
16
+
17
+
Loading the task graph while workspace configuration prints additional text to standard output.
18
+
19
+
## Fix
20
+
21
+
Check the Vite Plus version and ensure the workspace configuration does not print to standard output.
22
+
23
+
## Source
24
+
25
+
-[`packages/vite-task/src/node/tasks.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite-task/src/node/tasks.ts) — `runJson()` throws this when parsing fails or the top-level fields do not match the expected format.
The requested task is empty, starts with a dash, or is absent from the task graph.
14
+
15
+
## Example
16
+
17
+
Requesting a run plan for a task that has been removed from the workspace configuration.
18
+
19
+
## Fix
20
+
21
+
Refresh the task graph and select a non-empty task name that does not start with a dash.
22
+
23
+
## Source
24
+
25
+
-[`packages/vite-task/src/node/tasks.ts`](https://github.com/vitejs/devtools/blob/main/packages/vite-task/src/node/tasks.ts) — `loadRunPlan()` throws this when the task name is invalid or missing from the graph.
- Each prefix maps to a package: `DTK` for `@vitejs/devtools` (Vite-specific pieces), `RDDT` for `@vitejs/devtools-rolldown`, `VDT` for `@vitejs/devtools-vite`, `VTDT` for `@vitejs/devtools-vitest`. The framework-neutral `devframe` package documents its own `DF`-prefixed codes at the [Devframe docs site](https://devfra.me/errors/).
12
+
- Each prefix maps to a package: `DTK` for `@vitejs/devtools` (Vite-specific pieces), `RDDT` for `@vitejs/devtools-rolldown`, `VDT` for `@vitejs/devtools-vite`, `VTDT` for `@vitejs/devtools-vitest`, `VTKDT` for `@vitejs/devtools-vite-task`. The framework-neutral `devframe` package documents its own `DF`-prefixed codes at the [Devframe docs site](https://devfra.me/errors/).
13
13
- Every error page includes the cause, recommended fix, and a reference to the source file that emits it.
14
14
- The diagnostics system is powered by [`nostics`](https://github.com/vercel-labs/nostics), which provides structured diagnostic codes with docs URLs and ANSI-formatted console output.
15
15
@@ -71,6 +71,18 @@ Emitted by `@vitejs/devtools-vitest`.
DevTools for Vite Task (`@vitejs/devtools-vite-task`) lets you explore your Vite+ task graph and track down cache misses.
8
+
9
+
## What it does
10
+
11
+
Select a task from the list or graph to see its run plan. DevTools builds the plan with `vp run --dry-run`.
12
+
13
+
-**Task Flow** — follow the planned order of tasks and expand a task to inspect its steps. When a cached run is available, its duration appears next to the task or step.
14
+
-**Commands** — inspect each command and its cache status. **Inputs** and **Outputs** list the paths recorded for the cached run. Look under **Changes** to see which files or settings have changed since then.
15
+
-**Dependencies** — see what the selected task depends on and which tasks depend on it. Follow a link to inspect a related task.
16
+
17
+
After editing an input, click **Refresh tasks** to see how the change affects the plan.
18
+
19
+
## Getting started
20
+
21
+
Use `vite-plus` v1.6.0 or later in your workspace root. To set up Vite DevTools, follow [Getting Started](/guide/).
22
+
23
+
In the DevTools dock, open **Vite Task** under **Vite+**. If you see **Install @vitejs/devtools-vite-task**, click it and restart your dev server once the installation finishes.
0 commit comments