Skip to content

Releases: spencerbeggs/vitest-agent

@vitest-agent/ui@5.2.0

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

Features

  • Exports formatSuggestedActionLines as 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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:08
912e24a

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:07
912e24a

Breaking Changes

  • The sdk no longer exports helpers that nothing consumed or that the engine and the @effected kit now own.

  • Removed probeHostMetadata and its types. The host metadata probe now lives in @vitest-agent/engine as probeHostMetadataFromEnv.

  • Removed compressLines and normalizeWorkspaceKey; the engine and the kit own these now and the sdk exports nothing in their place.

  • Removed formatGfm, safeFilename, detectPackageManager, getRunCommand, formatConsoleMarkdown and the rest of the console-markdown formatter.

  • Removed formatFatalError; it now ships from @vitest-agent/engine.

  • To migrate, import formatFatalError and probeHostMetadataFromEnv from @vitest-agent/engine. For the other removed helpers, drop the import or copy the helper into your own code; stripAnsi is 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 RunDiagnostics schema family so performance hints, post-run timing, and persistence status travel with a run instead of being lost when the plugin owns stdout (#544).

  • RunDiagnostics carries performanceHints (kinds environment, import, transform, isolate), optional postRun timing (persistMs, coverageScanMs, totalMs), and optional persistence status

  • RunReportFile (run.json) gains an optional runDiagnostics field; schemaVersion stays 1, and the published schemas/5.0/run.json is updated

  • ReporterRenderInput gains an optional runDiagnostics so 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 the POST_RUN_SLOW_MS, POST_RUN_SLOW_SHARE, and POST_RUN_SLOW_MIN_MS constants 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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:08
912e24a

Features

  • run.json written by DefaultVitestAgentReporter now includes runDiagnostics (performance hints, post-run timing, persistence status) (#544)
  • In stream mode 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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 19:28
18ab331

Dependencies

Dependency Type Action From To
magic-string dependency updated ^1.4.3 ^1.4.4

#661

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

Choose a tag to compare

@spencerbeggs spencerbeggs released this 27 Oct 17:08
912e24a

Breaking Changes

  • Removed the WalkerFileSystem, WalkerEntry, WalkerEntryStat and nodeWalkerFs exports. The filesystem port for discovery is now WalkerSyncOps from @effected/walker, exported as a type from this package. Custom discovery strategies and tests that injected a WalkerFileSystem must supply WalkerSyncOps instead.
  • 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.
  • runScript no longer skips a command because an earlier process finished it within the last 30 seconds. Set VITEST_AGENT_RUNSCRIPT_BUILT_RECENTLY_MS to opt back into that window.
  • The @vitest/coverage-v8 and @vitest/coverage-istanbul peers are now optional, so installing only the provider you use no longer warns.

Features

Run diagnostics survive the agent reporter

  • AgentPlugin strips 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.json and run_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, or ci-annotations mode, 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 own vitest doctor now 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. A silent console config still produces no output. #657

Bug Fixes

  • Test globs are matched with GlobPattern, so brace patterns such as {a,b} now match correctly.
  • runScript runs through RunOnce.commandSync and, on Windows, spawns cmd.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