feat: scaffold + local-dev KV namespace bindings for edge projects (v0.10.1) [BDOK-685] - #25
Conversation
…DOK-685]
- init: scaffold `kv: { OPERATOR_CONFIG }` for edge projects (the per-installation
lifecycle/config state store edge adapters/comms already expect).
- dev: emit `[[kv_namespaces]]` in the generated wrangler.toml for any declared
`kv`, with a deterministic `local-dev-<binding>` id/preview_id so local
Miniflare persists KV between runs.
Guarded by `config.kv` (no effect on projects without KV). Uses the existing
KvDeclaration type + the deploy handler's lowercase-binding convention. tsc
clean, 28 tests pass, verified end-to-end (init scaffold + valid wrangler.toml).
Bumps to 0.10.1.
|
Warning Review limit reached
Next review available in: 30 minutes Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available. How can I continue?After more reviews become available, a review can be triggered using the To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews. How do review limits work?CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability. For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window. Please refer docs for additional details. Review details⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Run ID: 📒 Files selected for processing (4)
✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
Small CLI DX improvement (BDOK-685). Was uncommitted WIP in the working tree; re-checked and shipped separately from the 0.10.0 app-identity work.
What
bagdock initscaffoldskv: { OPERATOR_CONFIG }for edge projects (the per-installation lifecycle/config state store edge adapters/comms already expect — the comms env-types template references OPERATOR_CONFIG; the deploy handler provisions KV fromconfig.kv).bagdock devemits[[kv_namespaces]]in the generatedwrangler.tomlfor any declaredkv, with a deterministiclocal-dev-<binding>id/preview_id so local Miniflare persists KV between runs.Safe / re-checked
config.kv— no effect on projects without KV (all app-type projects unchanged).KvDeclarationtype + the deploy handler's lowercase-binding convention; valid TOML ordering (array-of-tables after top-level scalars, before[vars]).tscclean, 28 tests pass,initedge scaffolds the KV block,devgenerates a valid wrangler.toml with the[[kv_namespaces]]table.Bumps 0.10.0 → 0.10.1. Publishes on merge (push-to-main).
Linear
Closes BDOK-685