Releases: Sunpeak-AI/sunpeak
Releases · Sunpeak-AI/sunpeak
Release list
v0.20.16
What's Changed
- fix: Windows ESM import errors in sunpeak CLI by @udaykakade25 in #58
- test: make CLI tests cross-platform on Windows by @udaykakade25 in #59
Full Changelog: v0.20.15...v0.20.16
v0.20.15
What's Changed
- Validate stored inspector prefs and persist containerMaxWidth by @abewheel in #57
- Add stored inspector prefs by @udaykakade25
Full Changelog: v0.20.13...v0.20.15
v0.20.11
v0.20.9
v0.20.7
v0.20.6
v0.20.5
v0.20.2
v0.20.1
This upgrade helps sunpeak testing run embedded in other frameworks.
Test fixture API redesigned
The single mcp fixture has been split into two:
mcp— MCP protocol methods only (callTool,listTools,listResources,readResource)inspector— sunpeak inspector rendering (renderTool,host,page)
Migration
Copy
| Before | After |
|---|---|
{ mcp } (rendering tests) |
{ inspector } |
mcp.callTool('tool', {}, { theme }) |
inspector.renderTool('tool', undefined, { theme }) |
mcp.callTool('tool') with result.app() |
inspector.renderTool('tool') |
mcp.screenshot('name') |
result.screenshot('name') |
mcp.host |
inspector.host |
mcp.page |
inspector.page |
mcp.openTool(...) |
Removed |
mcp.runTool(...) |
Removed |
mcp.setTheme(...) |
Removed. Pass { theme } option to renderTool. |
mcp.setDisplayMode(...) |
Removed. Pass { displayMode } option to renderTool. |
Quick rule: If your test uses result.app(), theme, displayMode, or screenshot, change { mcp } to { inspector } and callTool to renderTool. Protocol-only tests (callTool without .app()) stay on mcp unchanged.
New APIs
mcp.listTools(),mcp.listResources(),mcp.readResource(uri)— protocol-level assertionsresult.source—'fixture'or'server', tells you which path ranresult.screenshot()— visual regression on the result objectinspector.renderTool()withinputcalls the real server; without uses simulation fixturesdefineConfig({ server: { env, cwd }, timeout })— env vars, working directory, startup timeoutsunpeak inspect --env KEY=VALUE --cwd <path>— CLI equivalentsinspectServer()fromsunpeak/inspect— programmatic API for embedding
Update the coding agent skill
pnpm dlx skills add Sunpeak-AI/sunpeak@test-mcp-serverThe skill includes migration rules so your coding agent can update existing tests automatically.
What's Changed
Full Changelog: v0.19.15...v0.20.1