#69 server: CommunityStore writeKit/readKit/writeHtml (phase-3 plan Task 2) #103
No reviewers
Labels
No labels
agent-blocked
agent-working
bug
deferred
enhancement
model-haiku
model-opus
model-sonnet
needs-info
needs-triage
no-triage
priority
product-decision
ready-for-agent
ready-for-human
ready-for-session
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/coa!103
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "agent/issue-69"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
closes #69
sandcastle: #69 — CommunityStore writeKit/readKit/writeHtml (phase-3 plan Task 2).
Adds writeKit (validates KitSchema, refuses mismatched slug), readKit (undefined when absent), writeHtml (atomic replace). Tests appended (temp dirs only, no network). pnpm -r typecheck && pnpm -r test green.
- server/src/tenant-provisioner.ts: ProvisionResult/TenantProvisioner; httpProvisioner({adminUrl, token, publicUrl, fetch}) POSTs {slug} to ${adminUrl}/admin/tenants with Authorization: Bearer — 201 and 409 → ok with configUrl=${publicUrl}/${slug}; other statuses/network errors → {ok:false, error:'<status> <body≤200>'}. staticProvisioner(publicUrl) returns URL, no call. - server/src/app.ts: AppDeps.provisioner; defaultDeps() env-gates http vs static (COA_SHARED_ADMIN_TOKEN set → http, COA_SHARED_ADMIN_URL/COA_SHARED_PUBLIC_URL defaults) — inert (static) until #79/#80/#81. No route provisions yet. - Test verbatim from plan; fetch always injected, no network. - STATUS.md milestone log entry. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>