Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

375 B
Raw Blame
import type Database from 'better-sqlite3';

function run(db: Database.Database): void {
  const columns = db
    .prepare(`PRAGMA table_info('sessions')`)
    .all()
    .map((row) => String((row as { name: unknown }).name));
  if (!columns.includes('codex_plan_json')) {
    db.exec('ALTER TABLE sessions ADD COLUMN codex_plan_json text');
  }
}

module.exports = { run };