diff --git a/.github/workflows/baseline.yml b/.github/workflows/baseline.yml index c730062..14d7c29 100644 --- a/.github/workflows/baseline.yml +++ b/.github/workflows/baseline.yml @@ -60,8 +60,11 @@ jobs: # Tier 1. THE BLUEPRINT, READ AND PLACED BY THE BINARY A BOOTSTRAP RUNS. # - # Pinned at the bootstrap floor (BOOTSTRAP.md), not the site's lane pin: - # every test here reads YAML with PyYAML, which parses anything well-formed; + # Pinned at v2.96.0, not the site'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 + # site'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 @@ -76,7 +79,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 @@ -112,10 +115,11 @@ jobs: # offline bootstrap before it reads the blueprint, which takes the # bootstrap floor (v2.88.0: the one `secrets` reconcile, the task set-up # in the background, the landings checked in the box), so this tier - # runs the floor, which is newer than the lane pin. + # runs v2.96.0, above the floor and the first orun that reads + # `spec.preview`, which is newer than the lane pin. - uses: sourceplane/orun-action@v1.2.0 with: - version: v2.88.0 + version: v2.96.0 - name: placement — the offline bootstrap, and the product's own plan run: | git config --global user.email ci@example.invalid @@ -126,8 +130,9 @@ jobs: # fixture rendered, type-checked, linted, tested and built, the stage lane's # own structure check, build (the live wiring render included), output check # and dry deploy in the tree orun stages, and the built Worker served and - # smoke-tested with the component's own smoke command. Pinned at the - # bootstrap floor (v2.88.0): the offline bootstrap reads the blueprint, and + # 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, and # the floor is newer than the product's lane pin (v2.78.4), which is all the # lane steps need. site: @@ -136,7 +141,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/web/component.yaml b/apps/web/component.yaml index aa43b6e..56a8448 100644 --- a/apps/web/component.yaml +++ b/apps/web/component.yaml @@ -64,6 +64,27 @@ spec: - profile: deploy when: triggerRef: github-push-main + # How the site 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 the site's own `pnpm dev` (build the dashboard, then `wrangler dev + # --local`: a local KV store, remote bindings off, so Workers AI is never + # called), plus a `vite build --watch` beside it: an edit to the dashboard + # rebuilds dist/client and wrangler reloads on the new assets, so the next + # load of the page shows it. wrangler refuses a port that is taken. + preview: + run: + - sh + - -c + - pnpm install --frozen-lockfile --prefer-offline --filter "@app/web..." && node_modules/.bin/vite build && { node_modules/.bin/vite build --watch --logLevel warn & } && exec node_modules/.bin/wrangler dev --local --ip 127.0.0.1 --port 8787 --show-interactive-dev-session=false + port: 8787 + path: / + env: + NODE_OPTIONS: --max-old-space-size=512 + WRANGLER_SEND_METRICS: "false" parameters: nodeVersion: "22" pnpmVersion: "10.12.1" diff --git a/intent.yaml b/intent.yaml index 26560f1..8d7f3b3 100644 --- a/intent.yaml +++ b/intent.yaml @@ -55,6 +55,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 site. Its own +# `spec.preview` (apps/web/component.yaml) says how it runs; `orun preview` +# runs it. +preview: + component: web + discovery: roots: - apps/