{"record":{"id":"b5c51cac2fca5a49","repo":"paperclipai/paperclip","slug":"database-url-is-required","errorCode":null,"errorMessage":"DATABASE_URL is required","messagePattern":"DATABASE_URL is required","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/db/src/seed.ts","lineNumber":5,"sourceCode":"import { createDb } from \"./client.js\";\nimport { companies, agents, goals, projects, issues } from \"./schema/index.js\";\n\nconst url = process.env.DATABASE_URL;\nif (!url) throw new Error(\"DATABASE_URL is required\");\n\nconst db = createDb(url);\n\nconsole.log(\"Seeding database...\");\n\nconst [company] = await db\n  .insert(companies)\n  .values({\n    name: \"Paperclip Demo Co\",\n    description: \"A demo autonomous company\",\n    status: \"active\",\n    budgetMonthlyCents: 50000,\n  })\n  .returning();\n\nconst [ceo] = await db\n  .insert(agents)\n  .values({","sourceCodeStart":1,"sourceCodeEnd":23,"githubUrl":"https://github.com/paperclipai/paperclip/blob/120ae5428fa29bee300bcf806491cd4d965fbb7c/packages/db/src/seed.ts#L1-L23","documentation":"Error \"DATABASE_URL is required\" thrown in paperclipai/paperclip.","triggerScenarios":"Thrown at packages/db/src/seed.ts:5 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Set the DATABASE_URL environment variable to a reachable Postgres connection string before running the seed script.","For local dev, leave DATABASE_URL unset only when running the full dev server (PGlite); seeds need a real URL."],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"120ae5428fa29bee300bcf806491cd4d965fbb7c","analyzedAt":"2026-08-18T22:49:45.177Z","contentChangedAt":"2026-08-18T22:49:45.177Z","schemaVersion":2},"datasetVersion":"2026-09-14T05:17:10.506Z"}