diff --git a/specs/epics/README.md b/specs/epics/README.md index 795a294..d0562be 100644 --- a/specs/epics/README.md +++ b/specs/epics/README.md @@ -7,6 +7,6 @@ folder is the adoption; the merge creates the epic in the workspace. | Epic | Cluster | Status | What it is | |------|---------|--------|------------| -| [`hono-api/`](./hono-api/) | **HA** | Draft | Vercel's Hono boilerplate, equivalent in code and function, as a Cloudflare Worker | +| [`hono-api/`](./hono-api/) | **HA** | ✅ Shipped | Vercel's Hono boilerplate, equivalent in code and function, as a Cloudflare Worker | As-built ≠ intent: what shipped lives in each epic's `IMPLEMENTATION-STATUS.md`. diff --git a/specs/epics/hono-api/IMPLEMENTATION-STATUS.md b/specs/epics/hono-api/IMPLEMENTATION-STATUS.md index d46f6c5..fc3537e 100644 --- a/specs/epics/hono-api/IMPLEMENTATION-STATUS.md +++ b/specs/epics/hono-api/IMPLEMENTATION-STATUS.md @@ -5,9 +5,9 @@ the code departed from `design.md` or from the upstream template. | Milestone | State | PR | |---|---|---| -| HA0 — the spec | | | -| HA1 — the API on Workers | | | -| HA2 — ready to instantiate | | | +| HA0 — the spec | ✅ Shipped | [#1](https://github.com/sourceplane/hono-api/pull/1) | +| HA1 — the API on Workers | ✅ Shipped | [#2](https://github.com/sourceplane/hono-api/pull/2) | +| HA2 — ready to instantiate | ✅ Shipped | [#3](https://github.com/sourceplane/hono-api/pull/3) | ## Departures from the upstream template @@ -30,3 +30,25 @@ is not a dependency of the app. The brief's floor was `^4.20250508.0`; wrangler 4.151.0's peer range is `^5.20261006.1`, so the port takes 5.x to install without a peer warning. + +## Verified + +- Local: `pnpm typecheck`, `pnpm lint`, `pnpm test` (2 tests), `pnpm build` + (`wrangler deploy --dry-run --outdir dist`, 58 KiB / 15 KiB gzipped) green; + `wrangler deploy --dry-run --env prod` (the Orun verify lane's command) + resolves `ENVIRONMENT=prod`; `wrangler dev --port 8791`: `/` 200 + `text/plain` starting `Hello Hono!` with the Cloudflare docs line, `/nope` + 404. +- CI: `Checks` green on #2 (install, wire, typecheck, lint, test, build). +- Not verified: a live deploy. `ci.yml` is gated until the product is linked + to an Orun workspace with a Cloudflare connection. + +## Versions + +| Package | Version | Why | +|---|---|---| +| hono | ^4.13.0 (4.13.13) | newest 4.x; upstream asks for `^4.8.9` and 4.13 is the same major | +| wrangler | ^4.151.0 | compatibility_date 2026-10-01; the baseline's pin | +| @cloudflare/workers-types | ^5.20261006.1 | wrangler 4.151.0's peer range (4.x installs with an unmet-peer warning) | +| typescript | ^5.8.3 (5.9.3) | upstream's floor | +| vitest | ^3.2.4 (3.2.7) | the factory's tests-vitest template | diff --git a/specs/epics/hono-api/README.md b/specs/epics/hono-api/README.md index 6ffba54..59281a6 100644 --- a/specs/epics/hono-api/README.md +++ b/specs/epics/hono-api/README.md @@ -8,7 +8,7 @@ The upstream code stays the code. The port adds the Worker's config (`wrangler.j | Field | Value | |-------|-------| -| Status | Draft | +| Status | ✅ Shipped — HA0–HA2 landed (#1, #2, #3) | | Cluster | **HA** (HA0–HA2) | | Owner(s) | `apps/api` (the Worker) · `tests/api` (the in-process request tests) | | Builds on | `cirrus-baseline` conventions (intent, components, `checks.yml` gate, gated `ci.yml`) and the `cloudflare-worker-turbo` composition its workers deploy with — no bounded context of the fleet is needed | @@ -16,7 +16,7 @@ The upstream code stays the code. The port adds the Worker's config (`wrangler.j | Changes | Adds the Worker config, the monorepo wrapper, tests and the deploy contract; the template's app code is untouched but for the welcome line's link | | Decisions locked | (1) A plain Worker (`cloudflare-worker-turbo`), not Pages Functions and not an adapter: Hono's default export is already a Workers module handler. (2) `wrangler.jsonc` is committed, not rendered: the Worker binds nothing, so there is nothing to wire. (3) Per-environment deploys through wrangler `env` sections (`--env stage` / `--env prod`), naming `hono-api-api-{stage,prod}`. (4) No infra root. | | Gate | HA1 is the first user-visible rung (the API serves from a Worker). | -| Shipped as | | +| Shipped as | `main` after [#3](https://github.com/sourceplane/hono-api/pull/3); verified locally under `wrangler dev` and the `--env prod` dry run, deploy gated until a workspace is linked | ## Read order diff --git a/specs/epics/hono-api/epic.yaml b/specs/epics/hono-api/epic.yaml index b967793..be1b1bb 100644 --- a/specs/epics/hono-api/epic.yaml +++ b/specs/epics/hono-api/epic.yaml @@ -9,7 +9,7 @@ metadata: spec: title: "Vercel's Hono boilerplate as a Cloudflare Worker" summary: "The Vercel Hono framework boilerplate — one Hono app answering `/` with a welcome text — runs natively as a Cloudflare Worker (the app's default export is the Worker's module handler), inside the Cirrus baseline's repository conventions (Orun intent and components, credential-free checks, a gated Orun CI, one epic per repository). It is the Cloudflare-only API port with the shortest path: no adapter and no build beyond wrangler's bundle." - state: backlog + state: completed milestones: - name: "HA0 — the spec" exitCriteria: diff --git a/specs/epics/hono-api/implementation-plan.md b/specs/epics/hono-api/implementation-plan.md index 4e08209..be35f2d 100644 --- a/specs/epics/hono-api/implementation-plan.md +++ b/specs/epics/hono-api/implementation-plan.md @@ -3,7 +3,7 @@ Milestones land in order; each task is one pull request on an `orun/HA-n-` branch with an `Orun-Task: HA-n` trailer. -## HA0 — the spec +## HA0 — the spec ✅ This doc set, `epic.yaml` and the task contracts, merged to `main`. @@ -11,7 +11,7 @@ This doc set, `epic.yaml` and the task contracts, merged to `main`. - the five documents and `epic.yaml` are on `main` - `tasks/HA-1.TaskContract.yaml`, `HA-2`, `HA-3` exist -## HA1 — the API on Workers +## HA1 — the API on Workers ✅ `apps/api` is the upstream `src/index.ts` with the Worker config around it; `tests/api` drives the app in-process with `app.request()`. @@ -22,7 +22,7 @@ This doc set, `epic.yaml` and the task contracts, merged to `main`. - `wrangler dev` (via `pnpm --filter @app/api dev`) answers `/` with `Hello Hono!` and an unknown path with 404 - `wrangler deploy --dry-run --env prod` (what the Orun verify lane runs) resolves `ENVIRONMENT=prod` -## HA2 — ready to instantiate +## HA2 — ready to instantiate ✅ The README explains the port and how to run, test, preview and deploy it; `IMPLEMENTATION-STATUS.md` records what shipped and every departure.