Repository navigation
Releases: spencerbeggs/vitest-agent
Release list
@vitest-agent/ui@5.2.0
Features
- Exports
formatSuggestedActionLinesas a public helper so reporters can render suggested actions outside the live frame (#544) #657
Bug Fixes
- Projects and coverage tables render with
Doc.table. - Column padding uses the kit's
Fmt, so wide characters are measured by display width and columns stay aligned. #659
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/ui@5.2.0 | 📦 | 📄 | npm, Sigstore, SBOM |
@vitest-agent/sidecar@2.2.15
Refactoring
- The per-platform binary is resolved with the kit's
PrebuiltBinary. #659
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sidecar@2.2.15 | 📦 | 📄 | npm, Sigstore, SBOM |
@vitest-agent/sidecar-win32-x64@2.2.15
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sidecar-win32-x64@2.2.15 | 📦 | — | npm, Sigstore, SBOM |
@vitest-agent/sidecar-linux-x64@2.2.15
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sidecar-linux-x64@2.2.15 | 📦 | — | npm, Sigstore, SBOM |
@vitest-agent/sidecar-linux-arm64@2.2.15
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sidecar-linux-arm64@2.2.15 | 📦 | — | npm, Sigstore, SBOM |
@vitest-agent/sidecar-darwin-arm64@2.2.15
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sidecar-darwin-arm64@2.2.15 | 📦 | — | npm, Sigstore, SBOM |
@vitest-agent/sdk@9.0.0
Breaking Changes
-
The sdk no longer exports helpers that nothing consumed or that the engine and the
@effectedkit now own. -
Removed
probeHostMetadataand its types. The host metadata probe now lives in@vitest-agent/engineasprobeHostMetadataFromEnv. -
Removed
compressLinesandnormalizeWorkspaceKey; the engine and the kit own these now and the sdk exports nothing in their place. -
Removed
formatGfm,safeFilename,detectPackageManager,getRunCommand,formatConsoleMarkdownand the rest of the console-markdown formatter. -
Removed
formatFatalError; it now ships from@vitest-agent/engine. -
To migrate, import
formatFatalErrorandprobeHostMetadataFromEnvfrom@vitest-agent/engine. For the other removed helpers, drop the import or copy the helper into your own code;stripAnsiis still exported.
Features
- Added
VITEST_CONFIG_FILES, the single list of Vitest and Vite config filenames that the cli and mcp packages now share. #659
Run diagnostics in the agent report
-
Adds the
RunDiagnosticsschema family so performance hints, post-run timing, and persistence status travel with a run instead of being lost when the plugin owns stdout (#544). -
RunDiagnosticscarriesperformanceHints(kindsenvironment,import,transform,isolate), optionalpostRuntiming (persistMs,coverageScanMs,totalMs), and optionalpersistencestatus -
RunReportFile(run.json) gains an optionalrunDiagnosticsfield;schemaVersionstays1, and the publishedschemas/5.0/run.jsonis updated -
ReporterRenderInputgains an optionalrunDiagnosticsso custom reporters can render the same data -
New
suggestedActionsFromRunDiagnostics()maps diagnostics to suggested actions: a persistence failure ("Results were not saved"), slow post-run work, then one info action per hint -
New
isPostRunSlow()and thePOST_RUN_SLOW_MS,POST_RUN_SLOW_SHARE, andPOST_RUN_SLOW_MIN_MSconstants define "slow" (5s total, or at least 1s and 10% of Vitest's duration) #657
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/sdk@9.0.0 | 📦 | 📄 | npm, Sigstore, SBOM |
@vitest-agent/reporter@6.1.0
Features
run.jsonwritten byDefaultVitestAgentReporternow includesrunDiagnostics(performance hints, post-run timing, persistence status) (#544)- In
streammode the suggested-actions block, including diagnostic actions, is printed once after the live view closes at Vitest's close, rather than inside the live frame #657
Bug Fixes
- Stray output lines are printed through the live handle, so they no longer strand live-view headers.
- The stream view is driven through the detached live handle.
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @effected/walker | peerDependency | removed | catalog:effected | — |
| @vitest/coverage-istanbul | peerDependency | removed | catalog:test:peers | — |
| @vitest/coverage-v8 | peerDependency | removed | catalog:test:peers | — |
| vitest | peerDependency | removed | catalog:test:peers | — |
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
| @vitest-agent/ui | dependency | updated | 5.1.2 | 5.2.0 |
- Removed peer dependencies the package never imported. #659
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/reporter@6.1.0 | 📦 | 📄 | npm, Sigstore, SBOM |
@vitest-agent/plugin@6.0.1
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| magic-string | dependency | updated | ^1.4.3 | ^1.4.4 |
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/plugin@6.0.1 | 📦 | 📄 | npm, Sigstore, SBOM |
@vitest-agent/plugin@6.0.0
Breaking Changes
- Removed the
WalkerFileSystem,WalkerEntry,WalkerEntryStatandnodeWalkerFsexports. The filesystem port for discovery is nowWalkerSyncOpsfrom@effected/walker, exported as a type from this package. Custom discovery strategies and tests that injected aWalkerFileSystemmust supplyWalkerSyncOpsinstead. - Discovery now follows symlinked directories and files, which the former walker skipped, so a linked test directory is collected. A link back to an ancestor directory is skipped by the walker's cycle guard.
runScriptno longer skips a command because an earlier process finished it within the last 30 seconds. SetVITEST_AGENT_RUNSCRIPT_BUILT_RECENTLY_MSto opt back into that window.- The
@vitest/coverage-v8and@vitest/coverage-istanbulpeers are now optional, so installing only the provider you use no longer warns.
Features
Run diagnostics survive the agent reporter
-
AgentPluginstrips Vitest's own reporter when it owns stdout, which silently dropped Vitest's performance hints. The plugin now ports those hints and reports them itself (#544). -
Performance hints (environment, import, transform, isolate) are computed in every console mode and flow into
run.jsonandrun_tests; they are suppressed in watch mode, blob merges, and when Vitest's diagnostics flag turns them off -
Hints are printed to the console as suggested actions only in agent mode and in stream mode (after the live view closes); in ci-annotations mode they reach only run.json and run_tests, and in passthrough mode Vitest prints its own
-
In multi-project runs, only the primary (coverage-owning) reporter publishes run-level diagnostics
-
Post-run timing (persist, coverage scan, total) is always recorded in the report and shown on the console only when the run was slow
-
A failed persistence is recorded in the report so it can be surfaced as an action instead of failing silently
Failure summary on stderr
- When a run fails or is interrupted in
agent,stream, orci-annotationsmode, the plugin writes a short plain-text failure summary to stderr (at most 15 lines, with a "... N more" tail). Because it is the plugin's last stderr write, Vitest's ownvitest doctornow reports the real cause of a failing trial run instead of "no error output". In stream mode the summary prints above the live view. In agent mode it repeats the stdout failure list on stderr, a deliberate trade so callers that discard stdout still see the cause. Asilentconsole config still produces no output. #657
Bug Fixes
- Test globs are matched with
GlobPattern, so brace patterns such as{a,b}now match correctly. runScriptruns throughRunOnce.commandSyncand, on Windows, spawnscmd.exe /d /s /c "<cmd>"verbatim so quoting is preserved. #659
Dependencies
| Dependency | Type | Action | From | To |
|---|---|---|---|---|
| @vitest-agent/cli | dependency | updated | 4.1.3 | 4.1.4 |
| @vitest-agent/engine | dependency | updated | 2.1.0 | 3.0.0 |
| @vitest-agent/mcp | dependency | updated | 5.4.0 | 6.0.0 |
| @vitest-agent/reporter | dependency | updated | 6.0.2 | 6.1.0 |
| @vitest-agent/sdk | dependency | updated | 8.0.0 | 9.0.0 |
Thanks
Thanks to @spencerbeggs for their contributions!
Publish Summary
| Registry | Package | SBOM | API | Provenance |
|---|---|---|---|---|
| npm | @vitest-agent/plugin@6.0.0 | 📦 | 📄 | npm, Sigstore, SBOM |