diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index 44be01c..9d7eaf7 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -58,8 +58,11 @@ jobs: # Tier 1. THE BLUEPRINT, READ AND PLACED BY THE BINARY A BOOTSTRAP RUNS. # - # Pinned at the bootstrap floor (BOOTSTRAP.md), not the API's lane pin: - # every test here reads YAML with PyYAML, which parses anything well-formed; + # Pinned at v2.96.0, not the API's lane pin: at or above the bootstrap + # floor (v2.88.0, BOOTSTRAP.md), and the first orun that reads a + # component's `spec.preview`, so the placement's `orun validate` checks the + # API's live preview too. Every test here reads YAML with PyYAML, which + # parses anything well-formed; # only the pinned orun can say whether the document is one a bootstrap can # run. `--status` parses it, validates every hook against the action # registry, compiles every `when` and narration template, and writes @@ -73,7 +76,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.88.0 + version: v2.96.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 @@ -111,10 +114,11 @@ jobs: # of the stage lane's pull-request plan (the structure check before any # build, the build, the typecheck, the dry deploy) in the job tree orun # stages, and the Worker served by `wrangler dev --env stage` and - # smoke-tested with the component's own smoke command. Pinned at the - # bootstrap floor (v2.88.0): the offline bootstrap reads the blueprint (its + # smoke-tested with the component's own smoke command. Pinned at + # v2.96.0, above the bootstrap floor (v2.88.0), the first orun that + # reads `spec.preview`: the offline bootstrap reads the blueprint (its # one `secrets` reconcile, its background task set-up, its landings checked - # in the box), and the floor is newer than the API's lane pin (v2.78.4), + # in the box), and the pin is newer than the API's lane pin (v2.78.4), # which is all the lane steps need. api: runs-on: ubuntu-latest @@ -122,7 +126,7 @@ jobs: - uses: actions/checkout@v6 - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.88.0 + version: v2.96.0 - uses: pnpm/action-setup@v4 with: version: 10.12.1 diff --git a/apps/api/component.yaml b/apps/api/component.yaml index 3d91227..5945c5a 100644 --- a/apps/api/component.yaml +++ b/apps/api/component.yaml @@ -54,6 +54,29 @@ spec: - profile: deploy when: triggerRef: github-push-main + # How the API runs itself for orun.work's live Preview tab + # (saas-parallel-baselining PB4): `orun preview` starts this, and a coding + # session keeps it running while it works, so the person watches it change + # as it is built. The dev server binds the box's loopback only, on a fixed + # port, and installs first, so a checkout the session has not installed yet + # still comes up. + # It is a Slack bot, so the tab shows what / answers: its name, its + # endpoints and whether Slack is connected (not, in a preview: the Slack + # secrets are never in it, so /api/events answers 503). `--local` keeps + # remote bindings off: the AI binding is Workers AI, which has no local + # mode, and without it wrangler would open a remote session that needs a + # Cloudflare credential, and stop when it has none. So the bot cannot call + # its model in a preview. wrangler dev runs the Worker in workerd and + # reloads it on every edit. + preview: + run: + - sh + - -c + - pnpm install --frozen-lockfile --prefer-offline --filter "@app/api..." && exec node_modules/.bin/wrangler dev --local --ip 127.0.0.1 --port 8787 --show-interactive-dev-session=false + port: 8787 + path: / + env: + WRANGLER_SEND_METRICS: "false" parameters: nodeVersion: "22" pnpmVersion: "10.12.1" diff --git a/intent.yaml b/intent.yaml index 8d620b9..74d3ff4 100644 --- a/intent.yaml +++ b/intent.yaml @@ -61,6 +61,13 @@ compositions: cloudflare-domain: stack-tectonic db-migrate: stack-tectonic +# The live preview (saas-parallel-baselining PB4): the component orun.work's +# Preview tab shows while a coding session works on the API. Its own +# `spec.preview` (apps/api/component.yaml) says how it runs; `orun preview` +# runs it. +preview: + component: api + discovery: roots: - apps/