Skip to content

Specbook 0.4.0

Choose a tag to compare

@ajaishankar ajaishankar released this 18 Oct 03:35
· 56 commits to main since this release

Agents can now build your requests and flows, and the viewer embed can open on a live API.

What's new

  • Agents can build your requests and flows. specbook init writes an agent guide to .specbook/agent-guide.md and adds a short section to AGENTS.md (or CLAUDE.md). It never edits a file you wrote unless you pass --agents, and --no-agents skips it. The docs site also serves llms.txt.
  • Embed opens where you want. The viewer embed takes defaultEnv ("live", or a server name from your spec) to start on that environment instead of mock.
  • Array positions in placeholders. {{tags[0].name}} works, and placeholders read only a value's own properties.
  • Clearer failures. A failing request shows its full URL with the base path, and an unreachable API says why: connection refused, DNS, timeout or certificate.
  • Docs: the Content-Security-Policy for the hosted viewer lists style-src as well as script-src and worker-src (with blob:).

Fixes

  • A request from your project is called a request in the viewer, and its note says only what is true.
  • On a phone the header keeps the brand whole and its links get their own row.
  • The docs hero has a button that opens your own spec in the viewer.

Full changelog: v0.3.0...v0.4.0