---
raw: true
title: "Spacefast 0.5.0 release notes"
description: "Spacefast version 0.5.0: CLI and package changes."
type: "changelog"
date: "2026-09-27"
changelog:
  version: "0.5.0"
  category: "Release"
  date: "2026-09-27"
---
## CLI

### Minor Changes

- Default new share links and password credentials to the viewer role. Pass `--role commenter` to grant commenting access. Show `status: "stored"` in `sf feedback --json` receipts.
- Every worker has a database and outbound fetch — nothing to declare.

  `sf.jsonc` no longer takes `runtime.database` or `runtime.fetch`; a stale key
  is warned about and ignored, not obeyed. A Functions worker always gets
  `env.DB`, and how far outbound `fetch` reaches is decided by the space: an
  unclaimed space reaches a trusted host list, a claimed one reaches any public
  host.

- `sf dev` runs actions and their fetches.

  A capsule's `actions` run locally over `action.run`, and `fetch()` inside any
  local handler goes through the isolate's host bridge instead of failing as
  undefined.

- Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including `sf domains check --move`.
- A coding agent can sign the CLI in from its MCP session — no second login.

  The MCP server has a new `cli_login` tool. It returns a one-use link that
  `sf login --handoff` redeems over stdin, and the CLI gets the same access as the
  MCP connection: disconnect Spacefast and the CLI login stops too. The MCP
  guidance now tells agents that can run shell commands to publish local files
  with `sf publish`, which reads them from disk instead of sending every file
  through the conversation.

- Connect custom domains directly to a Space through WP Cloud, without team inventory or registration prerequisites. Domain removal deletes the Space attachment instead of retaining an unassigned serving record. Keep apex/www redirects in the existing routing engine without redirecting version or branch preview URLs.

  Keep domain registration and managed-DNS commands as separate, opt-in features. Their feature flags are disabled by default and do not affect Space custom-domain attachment.

  Custom-domain serving integrations must use `/v1/spaces/{spaceId}/domains` and its attachment endpoints. The optional registration and DNS APIs do not manage Space attachments.

- Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.

  Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.

### Patch Changes

- When a detected `bun install --frozen-lockfile` fails because `bun.lock` no longer matches `package.json`, `sf build` and `sf publish` install from `package.json` with `bun install` and report a `build_install_lockfile_stale` warning instead of failing the build.
- Link the team's billing page when a plan limit that a paid plan raises blocks a command.
- Allow approved rollback and promotion requests to resume with their continuation token.
- Retry CLI update checks after registry failures and whenever the installed CLI version changes.
- `sf setup agent` no longer fails with `validation_error` when you keep the picker's default Universal (.agents) choice.
- Publish TanStack Start apps built with Nitro's `cloudflare-module` preset automatically: `.output/public` ships as files and the Nitro server runs as the site's worker with its Wrangler settings and D1 databases.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/routing@0.5.0
  - @spacefast/zero@0.5.0
  - @spacefast/mcp@0.5.0
  - @spacefast/sdk@0.5.0
  - @spacefast/builders@0.5.0
  - @spacefast/domain-search-terminal@0.5.0
  - @spacefast/zero-compat-emdash@0.5.0
  - @spacefast/zero-compat-payloadcms@0.5.0
  - @spacefast/zero-compile@0.5.0
  - @spacefast/adapter-kit@0.5.0
  - @spacefast/next-adapter@0.5.0
  - @spacefast/build-output@0.5.0
- Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
- Fix CLI domain and storage lists and the MCP Space domains view to read the API response shapes returned by the shared transport.
- Framework builds and Zero compose in one project. `sf build` and `sf publish` run the framework build, compile the capsule from the project root, and publish the build output at `/` with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles, `tsconfig*.json`, TypeScript files, and `tools/` stay out of the published files. The `build` settings in `sf.jsonc` apply to local builds too, `sf publish --remote` takes the build lane when the project has a build, and a host project's `tsconfig.json` no longer rebinds the JSX runtime of Zero pages.

  Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.

  Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive's sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.

- Ship native CLI executables with an immutable compiler dependency tree so build and dev work without a workspace or runtime dependency downloads. Verify each platform's release archive with real compilation, a local query and MCP worker execution.

  Use host filesystem paths when naming compiler platform assets so Windows builds emit valid portable asset names.

- Build Next.js 16 `proxy.ts` applications with the current OpenNext runtime adapter.
- Detect Worker entries and compatibility settings from Wrangler JSON, JSONC, and TOML configs. Preserve JSONC strings and trailing commas. Explain that D1 SQLite queries and migrations cannot use Spacefast's MySQL binding unchanged.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/zero-compile@0.5.0
  - @spacefast/common@0.5.0
  - @spacefast/sdk@0.5.0
  - @spacefast/mcp@0.5.0
  - @spacefast/zero@0.5.0
  - @spacefast/builders@0.5.0
  - @spacefast/zero-compat-emdash@0.5.0
  - @spacefast/zero-compat-payloadcms@0.5.0
  - @spacefast/domain-search-terminal@0.5.0
  - @spacefast/routing@0.5.0
  - @spacefast/next-adapter@0.5.0
  - @spacefast/build-output@0.5.0

## @spacefast/adapter-kit

### Patch Changes

- Updated dependencies
  - @spacefast/routing@0.5.0
  - @spacefast/build-output@0.5.0
- @spacefast/routing@0.5.0
  - @spacefast/build-output@0.5.0

## @spacefast/astro

### Patch Changes

- Updated dependencies
  - @spacefast/routing@0.5.0
  - @spacefast/adapter-kit@0.5.0
- @spacefast/routing@0.5.0
  - @spacefast/adapter-kit@0.5.0

## @spacefast/builders

### Patch Changes

- Updated dependencies
  - @spacefast/common@0.5.0
- Detect Worker entries and compatibility settings from Wrangler JSON, JSONC, and TOML configs. Preserve JSONC strings and trailing commas. Explain that D1 SQLite queries and migrations cannot use Spacefast's MySQL binding unchanged.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/common

### Minor Changes

- Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including `sf domains check --move`.
- Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.

  Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.

### Patch Changes

- One hostname rule everywhere: `normalizeHostname` now lives in `@spacefast/common/utils/hostname` (`@spacefast/routing/hostname` still re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host like `K.example` (Kelvin sign) no longer collapses into a different ASCII name. `verifyVisitorToken` in `@spacefast/zero` compares hosts with the same rule, so `example.com.` and `example.com` are one host.
- Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
- Framework builds and Zero compose in one project. `sf build` and `sf publish` run the framework build, compile the capsule from the project root, and publish the build output at `/` with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles, `tsconfig*.json`, TypeScript files, and `tools/` stay out of the published files. The `build` settings in `sf.jsonc` apply to local builds too, `sf publish --remote` takes the build lane when the project has a build, and a host project's `tsconfig.json` no longer rebinds the JSX runtime of Zero pages.

  Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.

  Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive's sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.

## @spacefast/compat-lakebed

### Patch Changes

- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/zero@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/zero@0.5.0

## @spacefast/domain-sdk

### Minor Changes

- Publish `@spacefast/domain-sdk`, the Spacefast provider for `domain-sdk`. A product that lets its customers bring a domain can now drive Spacefast through the same typed client it already uses for Vercel, Cloudflare, or Netlify: `add`, `get`, `list`, `verify`, and `remove` over the custom domains on one Space.

  An apex and its `www` twin are one Spacefast attachment, so either spelling resolves to the same domain and each answer reports the hostname that was asked for. The Space's own `*.view.fast` hostname stays hidden, `add()` is idempotent across a concurrent attach, and record and certificate state come from the Space's live diagnostics — reported as `unknown` when those cannot be read, rather than claiming something was observed.

## @spacefast/domain-search-terminal

### Patch Changes

- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/sdk@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/sdk@0.5.0

## @spacefast/domain-services

### Patch Changes

- Updated dependencies
  - @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/image

### Patch Changes

- `@spacefast/image` loads from `next.config.ts`: the package exports gained a `default` condition, and the documented recipe uses a project-local loader file, which is what Next's `images.loaderFile` expects. Verified against a packed install on Next 15.5 and 16.x.

## @spacefast/mcp

### Minor Changes

- Agents see fewer, sharper MCP tools. Work mode, visual review feedback, page screenshots, and traffic rules now run inside `execute`, which also teaches agents to show screenshots as images. The build log view no longer reopens while a build runs, and the database view drops its console button: use `sf db console` or the dashboard. The prompt menu adds a tour, visual review, source browsing, and guided workflows for domains, sharing, rollbacks, and failed builds.
- Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including `sf domains check --move`.

### Patch Changes

- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/routing@0.5.0
  - @spacefast/zero@0.5.0
  - @spacefast/sdk@0.5.0
  - @spacefast/zero-compile@0.5.0
- Fix CLI domain and storage lists and the MCP Space domains view to read the API response shapes returned by the shared transport.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/zero-compile@0.5.0
  - @spacefast/common@0.5.0
  - @spacefast/sdk@0.5.0
  - @spacefast/zero@0.5.0
  - @spacefast/routing@0.5.0

## @spacefast/next-adapter

### Patch Changes

- @spacefast/adapter-kit@0.5.0
  - @spacefast/build-output@0.5.0
- @spacefast/adapter-kit@0.5.0
  - @spacefast/build-output@0.5.0

## @spacefast/routing

### Patch Changes

- One hostname rule everywhere: `normalizeHostname` now lives in `@spacefast/common/utils/hostname` (`@spacefast/routing/hostname` still re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host like `K.example` (Kelvin sign) no longer collapses into a different ASCII name. `verifyVisitorToken` in `@spacefast/zero` compares hosts with the same rule, so `example.com.` and `example.com` are one host.
- Updated dependencies
  - @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/sdk

### Minor Changes

- Claim a hostname attached to another Space with a unique DNS TXT record, or move it directly when authorized to manage both Spaces. Expose ownership instructions and move status through the API and CLI, including `sf domains check --move`.
- Bind every upload to the API the caller selected, and to the session response
  that API returned. `uploadSessionFiles` now requires `apiUrl`: it is the origin
  a relative target resolves against, and the only non-runtime origin an upload
  may reach. Previously any HTTPS target the session response named was accepted,
  so a substituted target received the caller's bytes and session headers.

  An upload destination now has to satisfy two independent facts, and route shape
  is neither. Its host must be one the session response named (or the selected
  API origin), and it must be a runtime upload endpoint naming the caller's own
  Space or upload session — anything else has to be verbatim a destination that
  session issued. Matching `/spaces/<id>/blobs/<sha>` no longer admits a host: the
  Space id is already in every legitimate target, so it is not a secret and cannot
  establish who receives the bytes. Reaching a trusted origin is likewise not
  enough to reach an arbitrary resource on it.

  This is a breaking change for direct callers of `uploadSessionFiles` from
  `@spacefast/sdk/publish`. Pass the API base URL you already configured for the
  transport; never read it back out of the upload session. Direct callers of
  `assertUploadDestination` in `@spacefast/common/utils/upload-session` must now
  supply `named` — use `uploadSessionDestinations(session)`.

### Patch Changes

- Reject an unreadable tracked publish operation instead of reporting a completed wait.
- Updated dependencies
  - @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/vite-plugin

### Patch Changes

- Updated dependencies
  - @spacefast/routing@0.5.0
  - @spacefast/adapter-kit@0.5.0
- @spacefast/routing@0.5.0
  - @spacefast/adapter-kit@0.5.0

## @spacefast/zero

### Minor Changes

- Add `ctx.jwt.sign` and `ctx.crypto` to Zero server handlers. `ctx.jwt.sign({ key, kid, claims, ttlSeconds })` signs short-lived Ed25519 `at+jwt` access tokens with a key held in a secret variable that never enters `ctx.env`. `ctx.crypto` adds `sha256`, `hmacSha256`, and `timingSafeEqual` for webhook signature checks and key hashing.
- Add `@spacefast/zero/react`: React hooks (`useQuery`, `useMutation`, `useAction`, `usePaginatedQuery`, `useAuth`) and a typed `createClient<typeof app>()` over the same browser client as `@spacefast/zero/client`. React is an optional peer dependency; the React entry never loads Preact.
- Add per-Space app accounts with Google, Gravatar, and native Spacefast Access sign-in, verified email addresses, and revocable sessions. Add Users settings and account management to the API, SDK, CLI, and MCP.
- Actions are back, endpoints take `readOnly`, and `fetch()` works everywhere.

  `capsule({ actions })` declares handlers that read the database and reach the
  network without holding a transaction — `action()` on the server, `useAction()`
  on the client, over `action.run`. Persist what an action learned by handing its
  result to a mutation.

  `endpoint({ method, path, readOnly? })` replaces `mode`: a `GET` or `HEAD` reads,
  anything else writes, and `readOnly` overrides that when the method and the
  intent disagree. The derived mode still rides the compiled artifact.

  `fetch()` is a global in every handler kind. How far it reaches is decided by
  the space, not the build — an unclaimed space reaches a trusted host list, and
  claiming it opens the rest of the public web.

- Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.

  Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.

### Patch Changes

- One hostname rule everywhere: `normalizeHostname` now lives in `@spacefast/common/utils/hostname` (`@spacefast/routing/hostname` still re-exports it). It folds ASCII case and trims ASCII whitespace only, as DNS does, so a non-ASCII host like `K.example` (Kelvin sign) no longer collapses into a different ASCII name. `verifyVisitorToken` in `@spacefast/zero` compares hosts with the same rule, so `example.com.` and `example.com` are one host.
- `verifyUser` reads only the `__Host-sfi_session` cookie over HTTPS, so a session cookie planted by a sibling host under the same parent domain is ignored.
- Updated dependencies
  - @spacefast/common@0.5.0
- Keep query results associated with their arguments while subscriptions change. Paginated clients no longer append the previous page again while the next cursor is loading.
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/zero-compat-emdash

### Patch Changes

- Updated dependencies
  - @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/zero-compat-payloadcms

### Patch Changes

- Updated dependencies
  - @spacefast/common@0.5.0
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0

## @spacefast/zero-compile

### Minor Changes

- Add numeric and optional database fields, user references, indexed counts, application sign-in policies, and transactional guest upgrades to Zero. Query hooks now distinguish loading from empty or null results. Uploads are private by default, with explicit public sharing.

  Add local development identities, multiple isolated dev servers, query inspection, storage transfers, and retained Space archive and restore commands. Newly compiled apps require an engine that implements these contracts before publication.

### Patch Changes

- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/zero@0.5.0
- Build CLI commands as self-contained entry bundles with declared package dependencies resolved by Node. Keep the canonical WordPress block serializer private to the compiler so CLI installation does not inherit editor peer dependencies, and publish the browser API declarations.
- Framework builds and Zero compose in one project. `sf build` and `sf publish` run the framework build, compile the capsule from the project root, and publish the build output at `/` with the runtime beside it; a Zero project whose build script renders into the project root publishes the root. Sources, lockfiles, `tsconfig*.json`, TypeScript files, and `tools/` stay out of the published files. The `build` settings in `sf.jsonc` apply to local builds too, `sf publish --remote` takes the build lane when the project has a build, and a host project's `tsconfig.json` no longer rebinds the JSX runtime of Zero pages.

  Local Zero previews also accept source-backed Markdown and HTML documents. Their source preview escapes author markup instead of requiring compiled HTML or executing the source.

  Prebuilt publishes reuse compiled Zero and Functions metadata from the build archive's sidecar instead of recompiling sources removed during packaging. Invalid runtime metadata fails before upload.

- Ship native CLI executables with an immutable compiler dependency tree so build and dev work without a workspace or runtime dependency downloads. Verify each platform's release archive with real compilation, a local query and MCP worker execution.

  Use host filesystem paths when naming compiler platform assets so Windows builds emit valid portable asset names.

- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
- Updated dependencies
  - @spacefast/common@0.5.0
  - @spacefast/zero@0.5.0
