mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 11:42:17 +00:00
script/backfill-blobs.ts moves inline base64 attachments in existing session_message and session_inbox rows into blob and records their blob_ref rows, using SessionBlob.split so rows end up exactly as the live write path stores them. It refuses to run before the blob migration, batches under BEGIN IMMEDIATE with a short busy timeout, skips rows that change mid-run, is safe to re-run, and can VACUUM INTO a compacted copy. |
||
|---|---|---|
| .. | ||
| script | ||
| src | ||
| test | ||
| bunfig.toml | ||
| drizzle.config.ts | ||
| package.json | ||
| README.md | ||
| schema.json | ||
| sst-env.d.ts | ||
| tsconfig.build.json | ||
| tsconfig.json | ||
| tsconfig.tests.json | ||
@opencode/core
Core runtime services for OpenCode.