Skip to content

v0.31.0

Choose a tag to compare

@github-actions github-actions released this 06 Oct 17:19
64049b3

Stageflow v0.31.0

Release notes for versions since v0.25.0.


0.31.0

Stageflow-owned provider auth on Pi 0.99, bundled Cursor SDK install, and fixes for Cursor stages, Docker builds, and GitHub-only releases.

Features

  • Provider auth: Stageflow-owned authentication with Pi 0.99 support and optional disk-based admission for provider credentials.
  • Install: pi-cursor-sdk ships with the npm package so Cursor stages resolve the SDK without a separate install.

Fixes

  • Cursor stages receive the Host’s Cursor API key instead of failing with missing credentials.
  • Docker image build copies .npmrc so npm ci resolves Pi 0.99 peer dependencies.
  • CI can run the GitHub release workflow without republishing to npm.

0.30.0

Workshop Author in the studio: chat-driven pipeline drafting, persistent builds, and catalog save.

Features

  • Workshop Author on #/workshop: a chat agent drafts pipelines, asks when missing details would change stages or wiring, and shows the draft on the studio stage map. Click a stage for prompt, IO, verify, and HITL summary.
  • Untitled drafts persist as build records under $STAGEFLOW_HOME/workshop/builds/{id}.json (no catalog file until save). Chat history lives under workshop/sessions; each session points at the build it was editing.
  • Author tools to list, focus, and create builds; create and edit pipeline, stages, and optional task; validate; and save. Save writes catalog YAML only when asked and refuses invalid packages unless the operator explicitly allows it. Saves without a folder name land in workshop/<pipeline-id> and are added to the catalog so Run lists the pipeline and task.
  • Studio picker lists each open build and each on-disk pipeline once. The same chat can switch builds, or History can reopen the session that last edited another pipeline.
  • sf init includes workshop in the pipeline and task catalog. Host boot registers the project root so the catalog is visible without a manual project add.

Changed

  • Workshop chat uses the model in stageflow.yaml; when unset, the default is cursor/auto.

Fixes

  • npm run dev stage workers load the TypeScript CLI through tsx (no missing src/cli.js).
  • A stage process that exits before recording failure is marked failed instead of leaving later stages skipped with the entry still pending.
  • Cursor models find pi-cursor-sdk from the Host Pi agent directory; the stage worker attempt HOME no longer hides ~/.pi/agent.

0.29.0

Browser sessions for stages: logged-in Chrome profiles, shared browser per run, human login gates, and sf browser CLI.

Features

  • Browser sessions via agent-browser through the CLI and bundled browser skill (no MCP). See docs/browser.md and docs/browser-internals.md.
    • Stage browser field: profile, headed, allow_domains, login_url, check (url, logged_in_url, logged_out_url). The agent-browser requirement is added automatically.
    • Named profiles under $STAGEFLOW_HOME/browser/<scope>/<name>/, leased to one run; other runs queue until that run ends.
    • Shared browser per run and profile: one Chrome for the run, each stage attaches over CDP with its own tab; parallel stages share one login. Tabs close at stage end; browser closes at run end, cancel, or abandon. Orphan sweep at Host start.
    • Host-computed login check validated against the stage envelope; human login stage with verify: browser_login and confirm gate (handoff, site, profile). Wrong confirm can retry while repair attempts remain.
    • sf browser profiles | status | check | login | clear.
    • Host config browser.blocked_sites, audit log (browser/audit.jsonl), redaction for browser stages, and owner-scope seams for future multi-tenant use.
    • Example examples/browser-session/ and opt-in real-Chrome smoke test (STAGEFLOW_BROWSER_SMOKE=1).
  • Answer responses (HTTP 202, MCP answer_gate, sf runs answer --json) may include optional verification.

Changed

  • Stage workers receive the Host’s Pi auth path through STAGEFLOW_PI_HOME_AUTH_PATH.

Fixes

  • Stages no longer fail with “No API key” under pi_home when the worker’s empty attempt $HOME hid ~/.pi/agent/auth.json.

Known limitations

  • Profile stages use a soft allow_domains check; profile-less stages get the native allowlist.
  • Visible login needs a screen; Docker Hosts fail the login stage with a clear message. See docs/browser-internals.md for the full list.

0.28.1

Fixes

  • Project root resolution no longer requires git. resolveStageflowContext finds the nearest stageflow.yaml first for catalog discovery, trigger-adapter discovery, and stage/pipeline/trigger creation. isGitProject still gates git-only operations but no longer blocks non-git catalogs. Trigger adapters can discover triggers in non-git catalog roots.

0.28.0

Pipeline triggers and schedulers: event/schedule YAML, GitHub poll, webhooks, and email connectors.

Features

  • Trigger backbone: kind: event / kind: schedule trigger YAML, TriggerSourcePort adapter seam, and dynamic task mode (events can build a one-off TaskFile).
  • Three adapters: GitHub poll (ETag-conditional, grouped by repo), generic webhook (per-trigger URL, HMAC-SHA256), and email (IMAP IDLE, pooled connections, bounded-backoff reconnect).
  • Generic trigger_adapter_state store table for adapter cursors (ETags, UID watermarks).

Fixes

  • event.config passes through on trigger creation (HTTP and MCP).
  • STAGEFLOW_GITHUB_POLL_INTERVAL_MS and STAGEFLOW_TRIGGER_TICK_INTERVAL_MS are recognized Host env keys.
  • GitHub poll adapter treats HTTP 304 as expected no-op instead of logging an error.

0.27.1

Fixes

  • Registered catalog roots with local stageflow.yaml list pipelines/tasks without requiring git.
  • Cold Host seeds examples browse via examples/stageflow.yaml.
  • Empty catalog lists return a registration tip; absolute-path rejections include richer guidance.
  • Unset TMPDIR / TMP / TEMP soft-default to $STAGEFLOW_HOME/tmp before Host writability assert.
  • HTTP health exposes boot_providers; MCP get_health includes stageflow_home.
  • sf init / author defaults prefer a configured provider instead of silently assuming Anthropic.

Changed

  • Breaking: Omitting gate_kinds no longer registers ask_operator. Only an explicit non-empty gate_kinds list registers the tool. Stages that relied on omit-means-on must declare kinds. See docs/hitl.md and docs/yaml-catalog.md.
  • Quickstart and setup skill split CLI vs MCP smoke; docs contrast STAGEFLOW_OPERATOR_CWD vs catalog project_root.

0.27.0

Container images on GHCR, doctor store integrity, and catalog validation improvements.

Features

  • Docker delivery: multi-stage Dockerfile, docker-compose.yml, scripts/docker-smoke.sh, CI, GHCR multi-arch publish and cosign sign-by-digest. See docs/docker.md.
  • sf doctor store_integrity runs full PRAGMA integrity_check.
  • sf validate flags absolute paths under $STAGEFLOW_HOME in stage prompts and verify commands.

Fixes

  • STAGEFLOW_BUILD_SHA allowed for container boot and /api/health build_sha.
  • Bound-run Pi read/write/edit allow stage checkoutRoot.
  • Bare repo cache uses remotes-style fetch with cache healing and pruning for linked worktrees.
  • GITHUB_TOKEN / GH_TOKEN { as: env } is additive with git askpass.
  • Repository-bound runs reclaim Host worktree on succeeded (keeps run_branch; records checkout_root).

Changed

  • docs/mcp.md limitations table updated for Slot 9 surfaces.
  • Docker local-try docs as Compose checklist; root .env.example aligned with STAGEFLOW_PROVIDER_* boot keys.
  • Harness skills updated for Compose, drive-token MCP, $STAGEFLOW_HOME store, repository/ref binding, and Slot 6 secrets:.

0.26.0

Host-global project registry and curated stage environment (Slot 6).

Features

  • Project registry under $STAGEFLOW_HOME: durable ensure of project roots; sf run ensure-then-starts; remotes use registered ∪ seeded catalog roots only. See docs/mcp.md, docs/cli-reference.md, docs/data-directory.md.
  • Curated stage environment: stages no longer inherit Host ambient env; declare secrets:; file-backed git askpass; redaction; proxy/CA passthrough; shared cache; MCP connect default 30s; stage-process/heap caps; Claude-as-root refusal. See docs/migration-stage-environment.md.

Changed

  • Shared catalog start/write path resolution; MCP run_stage and A2A honor same containment as start_run.
  • Operator-terminal statuses (cancelled / queued) preserved in deriveStatusFromStages.
  • Host shutdown uses single DrainableHost drain path.
  • Path-checkout lease only for path-bound runs; repository-bound runs get parallel worktrees.
  • verify commands run under bash -c.
  • Stage MCP ${VAR} interpolation uses curated stage env only.

Removed

  • Dead RunStore.listProjectRoots and unused isMutatingApi predicate.