/** * 0.21.x — the LLM half of the LCR seed + adaptor pass. The schema + db * bootstrap + DDL are deterministic (structure); these two prompts cover the * parts that need judgment (content) — * SEED_SYSTEM → seed.ts: dense, realistic, referentially-consistent rows * that make every surface STATE reachable by navigation. * ADAPTOR_SYSTEM → queries.ts: the typed domain query layer the surfaces call * (the mock→prod swap seam), shaped by the acceptance scenarios. * * Both receive the generated Drizzle schema (exact table/column/enum names) and a * specs digest (personas, surfaces+states, acceptance scenarios, invariants). * See docs/plans/vibe-whole-mock-lcr.md. */ export declare const SEED_SYSTEM = "You write the seed for a whole-app LCR mock backed by a REAL in-browser SQLite\n(sql.js) via Drizzle. You are given the generated Drizzle schema (exact table\nvars, columns, enums) and a digest of the specs (personas, each surface + the\ndata STATES it must show, acceptance scenarios).\n\nEmit ONE TypeScript module `seed.ts` with exactly:\n\n import type { DB } from \"./db\";\n import * as schema from \"./schema\";\n export async function seed(db: DB): Promise { ... }\n\nRules:\n- Insert via Drizzle: `await db.insert(schema.).values([ ... ]);`. Use\n the EXACT table vars + column names from the schema. Respect enum values + NOT\n NULL. timestamp columns take JS `Date`; boolean columns take true/false.\n- REFERENTIAL INTEGRITY: insert parents before children; reuse string ids you\n defined above (declare `const FOUNDER_ID = \"mbr_founder\"` etc. and reuse them).\n Every foreign key must point at a row you actually inserted.\n- COVER THE STATES. For each surface's declared states (empty / populated /\n loading / error / edge) make that state REACHABLE with real data: a populated\n project AND an empty one; a wallet near its limit (edge); a worker pending\n certification, one certified, one decertified-with-open-appeal; an epic with a\n brew-halted issue; etc. The reviewer must be able to navigate to every state.\n- COVER THE PERSONAS. Seed enough that \"view as \" shows that persona's\n surfaces populated (a founder with projects, an operator with workers to certify,\n a worker with a portfolio, a procurer with a vault).\n- Realistic, not lorem: plausible names, repos, amounts, timestamps (use fixed\n dates, NOT Date.now()). Dense enough that lists/pagination look real (10-30 rows\n where a list is shown), minimal where a detail page suffices.\n- Deterministic: no random(), no Date.now(). Stable ids.\n\nOutput ONLY the file contents \u2014 no prose, no code fences, no markdown."; export declare const ADAPTOR_SYSTEM = "You write the typed domain query layer for a whole-app LCR mock backed by a real\nin-browser SQLite (sql.js) via Drizzle. You are given the generated Drizzle schema\nand a specs digest (personas, surfaces, acceptance scenarios, invariants).\n\nEmit ONE TypeScript module `queries.ts` with:\n import { getDb, type DB } from \"./db\";\n import * as schema from \"./schema\";\n import { eq, and, desc, ... } from \"drizzle-orm\"; // import what you use\n // A typed DataSource the surfaces call. The mock impl below reads SQLite; the\n // SAME interface is what brew implements against the real backend (the swap).\n export interface DataSource { ... }\n export const data: DataSource = { ... }\n\nRules:\n- One function per thing a surface needs, derived from the ACCEPTANCE SCENARIOS,\n not generic CRUD: e.g. getWalletHealth(projectId) returning AGGREGATES ONLY if an\n invariant says the operator sees aggregates only; listPendingWorkers();\n certifyWorker(id, note); getForecast(epicId). Return shapes the UI renders.\n- ENFORCE THE INVARIANTS in the query shape (don't return fields an invariant\n forbids). Reads use Drizzle (`await (await getDb()).select()...`); mutations\n insert/update. Keep them small + typed off the schema's $inferSelect types.\n- MUTATIONS ARE FIRST-CLASS: every api_contract entry and every acceptance\n When that changes state gets a mutation on the interface. UI affordances\n call ONLY these mutations (never raw db access) \u2014 a walker verifies that\n each affordance visibly changes adaptor state, so a missing mutation is a\n broken walk. Mutations accept an optional `at?: string` ISO timestamp\n (the storyteller's clock) and stamp created/updated columns with it when\n the schema has them; default `at ?? (globalThis as any).__slowcook?.clock ??\n \"1970-01-01T00:00:00.000Z\"` \u2014 never Date.now().\n- The interface is the contract; the const is the SQLite-backed impl. Name the\n interface DataSource so prod can implement it identically.\n- No business logic beyond what scenarios require. No random/Date.now().\n\nOutput ONLY the file contents \u2014 no prose, no code fences, no markdown."; //# sourceMappingURL=seed.d.ts.map