Repository navigation
Add the operator-installed store extension and init --with store (refs #253) - #315
Conversation
|
Heads-up from the maintainer, before this hits it: the core package has a 420-entry budget ( The budget is not raised. Each PR that adds shipped files, such as new source, examples or recipes, trims to fit. Run Separately, the Windows workspaces job failed on an admin test, "real user-query pagination and page export preserve combined filters across more than fifty accounts", after about 18 seconds. I suspect a timeout on the slower runner but have not confirmed it. |
…#253) A new workspace package, @jimhoyd/urlcode-store, serves declared collections as a bounded JSON CRUD API from atomically written files in an operator-owned directory. It owns its field schema (no dependency on #254), enforces per-collection record and byte quotas, and refuses a second writer over one directory. Includes the init --with scaffold, docs/STORE.md (CRUD recipe, HTTP contract, honest concurrency limits) and an end-to-end scaffold test. Catalog recipe and release-train wiring are recorded in docs/OPEN-DECISIONS.md. Co-Authored-By: Claude Sonnet 5 <[email protected]>
e3b59f2 to
ab4753a
Compare
Co-Authored-By: Claude Sonnet 5 <[email protected]>
Refs #253 (does not close it). Not merged.
What
New workspace package
@jimhoyd/urlcode-store: an operator-installed extension that serves declared collections as a bounded JSON CRUD API, mounted withextension: store(e.g./api/todos/*). No handler code.id(UUID),createdAt,updatedAt. No dependency on [Request]: Declarative validation for JSON request bodies and path parameter patterns #254 / PR Add request.body.schema and parameter format/pattern (refs #254) #306.0700/0600, per-collectionmaxRecords/maxRecordBytes/pageSize, body cap,readOnly.Origincheck.init --with storescaffold (addsauth: trueand reuses auth's pin whenauthis listed first). CRUD recipe in docs/STORE.md.verify:workspacesand the package audit. Coreinit --withneeded no change.Why an extension (retirement reason)
Per the maintainer's clarification on #253:
urlcode-dynamic-linkwas retired because stored short links did not belong, and the project moved from a locked-down sandbox to trust by default; it is not a precedent against a data extension. Repo history agrees (#164/#165 retirement, #127 trusted-by-default).Not in this PR (recorded in docs/OPEN-DECISIONS.md)
recipes/catalog entry (needs core recipe catalog and fixture-host work)scripts/release*.ts, publish workflow, peers) so it publishes with the others. Needed beforeinit --with storeworks from npm.Verification
npm cifailed locally in this worktree, sonpm installwas used and the lockfile updated.npm run verifypasses (lint, typecheck, check, build, 623 tests 0 fail, verify:workspaces including store's 12 tests, package audit and the workspace integration incl. a newinit --with storeend-to-end test).npm run docs:llmsandnpm run check:docspass.🤖 Generated with Claude Code