Codemode B6 D1 Store
Path:
loom-builder/prompts/codemode-b6-d1-store.mdRelative: prompts/codemode-b6-d1-store.mdSubproject: loom-builderCategory: dispatch-promptsLines: 81Bytes: 5,185Imports: 0Exports: 0
Content Preview
- # B6 — D1 persistence layer: scrape → AI-organize → store, one code block
- ROLE: senior Cloudflare Workers builder.
- GOAL: give the LIVE codemode-gateway a bound D1 database (`env.DB` — bindings need NO API token, unlike the REST `cf.d1_*` path which is auth-blocked) plus `db` and `scrape` namespaces, so one sandbox code block can: render a page → extract/organize metadata with Workers AI → persist to D1. Redeploy + live-verify.
- Echo ROLE/GOAL/PLAN (3 lines) before work.
- ## Required reading FIR