#76 server: make rebuild / provision / resend KIND= CLIs (phase-3 plan Task 9) #111

Merged
matou-build-agent merged 2 commits from agent/issue-76 into main 2026-09-01 00:42:40 +00:00

closes #76

Phase-3 plan Task 9 — operator CLIs make rebuild / make provision / make resend KIND= reusing startBuild (#74). See the issue for the two-way-door ruling on the plan-test and Makefile corrections.

🤖 Generated with Claude Code

closes #76 Phase-3 plan Task 9 — operator CLIs `make rebuild` / `make provision` / `make resend KIND=` reusing `startBuild` (#74). See the issue for the two-way-door ruling on the plan-test and Makefile corrections. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
sandcastle: #76 — make rebuild / provision / resend KIND= CLIs (phase-3 plan Task 9)
All checks were successful
ci / seam (pull_request) Successful in 1m9s
9e12677a4f
Operator CLIs reusing startBuild (#74):
- server/src/cli/rebuild.ts: rebuild(slug, deps) -> {ok,build}|{ok:false,error}
  via startBuild; ok iff state==='building', error tenantError ?? buildError
  ?? 'not dispatched'. CLI guard catches startBuild's throw for an unknown
  slug -> `failed: no community: <slug>`, exit 1.
- server/src/cli/provision.ts: provision(slug, deps) refuses
  'already provisioned' when configUrl is set without tenantError, else clears
  configUrl then startBuild.
- server/src/cli/resend.ts: kind 'page-ready'|'installers-ready'
  (default page-ready); installers-ready requires status.releaseUrl else
  'no release yet'. publisher made optional so a resend can run without it.
- package.json rebuild/provision scripts; Makefile rebuild/provision/resend
  targets (via `run` to avoid the `pnpm rebuild` built-in collision);
  README Develop lines; STATUS log.

Decisions (ruled two-way-door on the issue, veto anytime):
- Makefile uses `pnpm --filter @coa/server run <name>` — bare `pnpm rebuild`
  hits pnpm's built-in and never runs the script.
- Corrected three plan-test bugs to their evident intent: cleared-field
  assertions use .toBeUndefined() (zod drops absent optional keys, so
  toMatchObject({x: undefined}) can't pass on a disk read); the dispatch-
  failure test uses a valid staticProvisioner URL (shared backend provisions,
  and KitSchema.configUrl rejects a non-URL before dispatch).

Phase gate respected: env-gated defaults keep dispatch/provision inert
(noop/static) until #79/#80/#81; no test reaches the network, mail, a real
build or a real tenant. pnpm -r typecheck && pnpm -r test green.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Merge remote-tracking branch 'origin/main' into sandcastle/worker/20260831-231633-cc60af
All checks were successful
ci / seam (pull_request) Successful in 1m11s
970ca4b67a
# Conflicts:
#	STATUS.md
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Matou/coa!111
No description provided.