[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill-tanstack-ai-persistencebuild-drizzle-adapter":3,"mdc-gzs5iv-key":54,"related-repo-tanstack-ai-persistencebuild-drizzle-adapter":11089,"related-org-tanstack-ai-persistencebuild-drizzle-adapter":11192},{"slug":4,"name":5,"fn":6,"description":7,"org":8,"tags":12,"stars":24,"repoUrl":25,"updatedAt":26,"license":27,"forks":28,"topics":29,"repo":49,"sourceUrl":52,"mdContent":53},"ai-persistencebuild-drizzle-adapter","ai-persistence\u002Fbuild-drizzle-adapter","build Drizzle adapters for TanStack AI persistence","Use when an app already runs Drizzle ORM and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing db handle, schema file, and drizzle-kit journal. Covers the four tables (SQLite\u002FPostgres\u002FMySQL), the onConflict idempotency rules, JSON columns, and per-request bindings like D1.",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},"tanstack","TanStack","https:\u002F\u002Fpexgzepcugksgbtrxkhf.supabase.co\u002Fstorage\u002Fv1\u002Fobject\u002Fpublic\u002Forg-logos\u002Ftanstack.png",[13,17,20,21],{"name":14,"slug":15,"type":16},"Database","database","tag",{"name":18,"slug":19,"type":16},"Persistence","persistence",{"name":10,"slug":9,"type":16},{"name":22,"slug":23,"type":16},"Drizzle","drizzle",2884,"https:\u002F\u002Fgithub.com\u002FTanStack\u002Fai","2026-07-30T05:53:32.020485",null,269,[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,9,45,46,47,48],"ai","ai-agents","ai-sdk","anthropic","chatbot","function-calling","gemini","generative-ai","llm","multimodal","openai","react","solidjs","streaming","svelte","tool-calling","typescript","typescript-sdk","vue",{"repoUrl":25,"stars":24,"forks":28,"topics":50,"description":51},[30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,9,45,46,47,48],"🤖 Type-safe, provider-agnostic TypeScript AI SDK for streaming chat, tool calling, agents, and multimodal apps across OpenAI, Anthropic, Gemini, React, Vue, Svelte, and Solid.","https:\u002F\u002Fgithub.com\u002FTanStack\u002Fai\u002Ftree\u002FHEAD\u002Fpackages\u002Fai-persistence\u002Fskills\u002Fai-persistence\u002Fbuild-drizzle-adapter","---\nname: ai-persistence\u002Fbuild-drizzle-adapter\ndescription: Use when an app already runs Drizzle ORM and needs TanStack AI chat persistence — writes a chat-persistence.ts into the app against its existing db handle, schema file, and drizzle-kit journal. Covers the four tables (SQLite\u002FPostgres\u002FMySQL), the onConflict idempotency rules, JSON columns, and per-request bindings like D1.\n---\n\n# Drizzle Chat Persistence\n\nThe deliverable is **one file in the app** — `src\u002Flib\u002Fchat-persistence.ts` —\nexporting a `ChatPersistence` built from the app's existing Drizzle `db`. Plus\nfour tables added to the app's existing schema file and a migration generated\nthrough the app's existing `drizzle-kit` setup.\n\nDo not create a package, a second `db` instance, a migration runner, or a\n`drizzle.config.ts`. The app has those.\n\nRead the **Build Your Own Adapter** guide\n(`docs\u002Fpersistence\u002Fbuild-your-own-adapter.md`) for the store contracts and\ninvariants, and **ai-persistence\u002Fstores** for the shape rules. Every\nstore below mirrors the reference in-memory backend in\n`@tanstack\u002Fai-persistence` (`memory.ts`); the shared conformance testkit is the\nproof.\n\n## 1. Read the app before writing anything\n\n| Find               | Where to look                                                       | What it decides                                             |\n| ------------------ | ------------------------------------------------------------------- | ----------------------------------------------------------- |\n| Dialect            | `drizzle.config.ts` `dialect:`, or the `drizzle-orm\u002F*-core` import  | `sqlite-core` vs `pg-core` vs `mysql-core` column builders  |\n| Schema file(s)     | `drizzle.config.ts` `schema:` glob                                  | Where the four tables go — append, never start a new file   |\n| The `db` handle    | `src\u002Fdb\u002Findex.ts`, `src\u002Fdb.ts`, `src\u002Fserver\u002Fdb.ts`                  | Module singleton (`export const db`) vs factory (`getDb()`) |\n| Migration flow     | `drizzle.config.ts` `out:`, the `migrations\u002F` or `drizzle\u002F` journal | Which generate\u002Fapply commands to tell the user to run       |\n| Naming conventions | Existing tables in the schema file                                  | Table prefix, var casing, `snake_case` column names         |\n| Import alias       | `tsconfig.json` `paths`                                             | `@\u002Fdb`, `~\u002Fdb`, `#\u002Fdb\u002Findex`, or a relative path            |\n\nMatch what is already there. If their tables are `chat_*`-prefixed and their\nvars are camelCase, so are yours. If they already have a `messages` table for\nsomething else, prefix — the store code reads database names off the table\nobjects, so any name works.\n\n**Never invent a migration path.** Add the tables to their schema file, then\nhave them run their own commands (`npx drizzle-kit generate` then\n`migrate`\u002F`push`, or `wrangler d1 migrations apply` for D1). A parallel\nmigration table behind their back is how schemas drift.\n\n## 2. Add the tables to their schema file\n\nSQLite. JSON payloads use `text({ mode: 'json' })` so Drizzle round-trips\nobjects for you; timestamps are `integer` epoch ms.\n\n```ts ignore\nimport { integer, primaryKey, sqliteTable, text } from 'drizzle-orm\u002Fsqlite-core'\nimport type { ModelMessage, TokenUsage } from '@tanstack\u002Fai'\nimport type { InterruptRecord, RunStatus } from '@tanstack\u002Fai-persistence'\n\nexport const chatThreads = sqliteTable('chat_threads', {\n  threadId: text('thread_id').primaryKey(),\n  messagesJson: text('messages_json', { mode: 'json' })\n    .$type\u003CArray\u003CModelMessage>>()\n    .notNull(),\n  updatedAt: integer('updated_at').notNull(),\n})\n\nexport const chatRuns = sqliteTable('chat_runs', {\n  runId: text('run_id').primaryKey(),\n  threadId: text('thread_id').notNull(),\n  status: text('status').$type\u003CRunStatus>().notNull(),\n  startedAt: integer('started_at').notNull(),\n  finishedAt: integer('finished_at'),\n  error: text('error'),\n  usageJson: text('usage_json', { mode: 'json' }).$type\u003CTokenUsage>(),\n})\n\nexport const chatInterrupts = sqliteTable('chat_interrupts', {\n  interruptId: text('interrupt_id').primaryKey(),\n  runId: text('run_id').notNull(),\n  threadId: text('thread_id').notNull(),\n  status: text('status').$type\u003CInterruptRecord['status']>().notNull(),\n  requestedAt: integer('requested_at').notNull(),\n  resolvedAt: integer('resolved_at'),\n  payloadJson: text('payload_json', { mode: 'json' })\n    .$type\u003CRecord\u003Cstring, unknown>>()\n    .notNull(),\n  responseJson: text('response_json', { mode: 'json' }).$type\u003Cunknown>(),\n})\n\nexport const chatMetadata = sqliteTable(\n  'chat_metadata',\n  {\n    namespace: text('namespace').notNull(),\n    key: text('key').notNull(),\n    valueJson: text('value_json', { mode: 'json' }).$type\u003Cunknown>().notNull(),\n  },\n  (table) => [primaryKey({ columns: [table.namespace, table.key] })],\n)\n```\n\n`updatedAt` on threads is an app-owned extra, not part of any contract — the\nstores never read columns they do not know about, so add `userId`, tenant ids,\nor audit columns the same way (nullable or defaulted so inserts still succeed).\nThe `namespace` column is the `MetadataStore` first argument; the stock SQL in\nthe guide calls the same column `scope`.\n\n**Postgres** (`drizzle-orm\u002Fpg-core`): `jsonb()` for the JSON payloads,\n`bigint({ mode: 'number' })` for epoch-ms timestamps, `text()` elsewhere,\ncomposite `primaryKey` on `(namespace, key)` unchanged. **MySQL**\n(`drizzle-orm\u002Fmysql-core`): `json()`, `bigint({ mode: 'number' })`, and\n`varchar(…, { length: 255 })` for the primary-key columns. The store bodies\nbelow are identical across all three — only `onConflictDoUpdate` becomes\n`onDuplicateKeyUpdate` on MySQL.\n\n## 3. Write `src\u002Flib\u002Fchat-persistence.ts`\n\nThe whole file. Idempotency is the entire game — the comments below mark the\nrules the conformance suite checks.\n\n```ts ignore\nimport { and, asc, desc, eq } from 'drizzle-orm'\nimport { defineAIPersistence } from '@tanstack\u002Fai-persistence'\nimport type { SQL } from 'drizzle-orm'\nimport type {\n  ChatPersistence,\n  InterruptRecord,\n  InterruptStore,\n  MessageStore,\n  MetadataStore,\n  RunRecord,\n  RunStore,\n} from '@tanstack\u002Fai-persistence'\n\nimport { db } from '@\u002Fdb'\nimport {\n  chatInterrupts,\n  chatMetadata,\n  chatRuns,\n  chatThreads,\n} from '@\u002Fdb\u002Fschema'\n\ntype Db = typeof db\n\n\u002F\u002F Records omit absent optionals so they compare cleanly against the reference\n\u002F\u002F in-memory backend.\nfunction mapRun(row: typeof chatRuns.$inferSelect): RunRecord {\n  return {\n    runId: row.runId,\n    threadId: row.threadId,\n    status: row.status,\n    startedAt: row.startedAt,\n    ...(row.finishedAt != null ? { finishedAt: row.finishedAt } : {}),\n    ...(row.error != null ? { error: row.error } : {}),\n    ...(row.usageJson != null ? { usage: row.usageJson } : {}),\n  }\n}\n\nfunction mapInterrupt(\n  row: typeof chatInterrupts.$inferSelect,\n): InterruptRecord {\n  return {\n    interruptId: row.interruptId,\n    runId: row.runId,\n    threadId: row.threadId,\n    status: row.status,\n    requestedAt: row.requestedAt,\n    payload: row.payloadJson,\n    ...(row.resolvedAt != null ? { resolvedAt: row.resolvedAt } : {}),\n    ...(row.responseJson != null ? { response: row.responseJson } : {}),\n  }\n}\n\nfunction createMessageStore(db: Db): MessageStore {\n  return {\n    async loadThread(threadId) {\n      const rows = await db\n        .select({ messagesJson: chatThreads.messagesJson })\n        .from(chatThreads)\n        .where(eq(chatThreads.threadId, threadId))\n        .limit(1)\n      \u002F\u002F Unknown thread is [], never null.\n      return rows[0]?.messagesJson ?? []\n    },\n    \u002F\u002F Full overwrite — `messages` is the complete authoritative transcript.\n    async saveThread(threadId, messages) {\n      const updatedAt = Date.now()\n      await db\n        .insert(chatThreads)\n        .values({ threadId, messagesJson: messages, updatedAt })\n        .onConflictDoUpdate({\n          target: chatThreads.threadId,\n          set: { messagesJson: messages, updatedAt },\n        })\n    },\n  }\n}\n\nfunction createRunStore(db: Db): RunStore {\n  async function get(runId: string) {\n    const rows = await db\n      .select()\n      .from(chatRuns)\n      .where(eq(chatRuns.runId, runId))\n      .limit(1)\n    return rows[0] ? mapRun(rows[0]) : null\n  }\n\n  return {\n    get,\n    \u002F\u002F Idempotent: an existing runId is returned untouched so resume and\n    \u002F\u002F double-submit are safe.\n    async createOrResume({ runId, threadId, startedAt, status }) {\n      const existing = await get(runId)\n      if (existing) return existing\n\n      await db\n        .insert(chatRuns)\n        .values({ runId, threadId, status: status ?? 'running', startedAt })\n        .onConflictDoNothing({ target: chatRuns.runId })\n\n      \u002F\u002F Re-read rather than trusting the insert: a concurrent createOrResume\n      \u002F\u002F may have won the race, and that row is the authoritative one.\n      const stored = await get(runId)\n      return (\n        stored ?? { runId, threadId, status: status ?? 'running', startedAt }\n      )\n    },\n    \u002F\u002F Patching an unknown runId is a no-op: never throws, never inserts.\n    async update(runId, patch) {\n      const set: Partial\u003Ctypeof chatRuns.$inferInsert> = {}\n      if (patch.status !== undefined) set.status = patch.status\n      if (patch.finishedAt !== undefined) set.finishedAt = patch.finishedAt\n      if (patch.error !== undefined) set.error = patch.error\n      if (patch.usage !== undefined) set.usageJson = patch.usage\n      if (Object.keys(set).length === 0) return\n\n      await db.update(chatRuns).set(set).where(eq(chatRuns.runId, runId))\n    },\n    \u002F\u002F Optional in the contract; enables reconnect without a client-held run id.\n    async findActiveRun(threadId) {\n      const rows = await db\n        .select()\n        .from(chatRuns)\n        .where(\n          and(eq(chatRuns.threadId, threadId), eq(chatRuns.status, 'running')),\n        )\n        .orderBy(desc(chatRuns.startedAt))\n        .limit(1)\n      return rows[0] ? mapRun(rows[0]) : null\n    },\n  }\n}\n\nfunction createInterruptStore(db: Db): InterruptStore {\n  \u002F\u002F Every listing is ordered by requestedAt ascending.\n  const listWhere = async (where: SQL | undefined) => {\n    const rows = await db\n      .select()\n      .from(chatInterrupts)\n      .where(where)\n      .orderBy(asc(chatInterrupts.requestedAt))\n    return rows.map(mapInterrupt)\n  }\n\n  return {\n    \u002F\u002F Insert-if-absent: a duplicate create must never clobber a resolved\n    \u002F\u002F interrupt back to pending.\n    async create(record) {\n      await db\n        .insert(chatInterrupts)\n        .values({\n          interruptId: record.interruptId,\n          runId: record.runId,\n          threadId: record.threadId,\n          status: 'pending',\n          requestedAt: record.requestedAt,\n          payloadJson: record.payload,\n          ...(record.response !== undefined\n            ? { responseJson: record.response }\n            : {}),\n        })\n        .onConflictDoNothing({ target: chatInterrupts.interruptId })\n    },\n    async resolve(interruptId, response) {\n      await db\n        .update(chatInterrupts)\n        .set({\n          status: 'resolved',\n          resolvedAt: Date.now(),\n          ...(response !== undefined ? { responseJson: response } : {}),\n        })\n        .where(eq(chatInterrupts.interruptId, interruptId))\n    },\n    async cancel(interruptId) {\n      await db\n        .update(chatInterrupts)\n        .set({ status: 'cancelled', resolvedAt: Date.now() })\n        .where(eq(chatInterrupts.interruptId, interruptId))\n    },\n    async get(interruptId) {\n      const rows = await db\n        .select()\n        .from(chatInterrupts)\n        .where(eq(chatInterrupts.interruptId, interruptId))\n        .limit(1)\n      return rows[0] ? mapInterrupt(rows[0]) : null\n    },\n    list: (threadId) => listWhere(eq(chatInterrupts.threadId, threadId)),\n    listPending: (threadId) =>\n      listWhere(\n        and(\n          eq(chatInterrupts.threadId, threadId),\n          eq(chatInterrupts.status, 'pending'),\n        ),\n      ),\n    listByRun: (runId) => listWhere(eq(chatInterrupts.runId, runId)),\n    listPendingByRun: (runId) =>\n      listWhere(\n        and(\n          eq(chatInterrupts.runId, runId),\n          eq(chatInterrupts.status, 'pending'),\n        ),\n      ),\n  }\n}\n\nfunction createMetadataStore(db: Db): MetadataStore {\n  return {\n    async get(namespace, key) {\n      const rows = await db\n        .select({ valueJson: chatMetadata.valueJson })\n        .from(chatMetadata)\n        .where(\n          and(eq(chatMetadata.namespace, namespace), eq(chatMetadata.key, key)),\n        )\n        .limit(1)\n      return rows[0]?.valueJson ?? null\n    },\n    async set(namespace, key, value) {\n      \u002F\u002F A JSON-mode column binds JS null as SQL NULL, which the NOT NULL\n      \u002F\u002F column rejects with an opaque driver error. Fail clearly instead.\n      if (value == null) {\n        throw new TypeError(\n          `Cannot store ${value} for (${namespace}, ${key}) — use delete() to clear metadata.`,\n        )\n      }\n      await db\n        .insert(chatMetadata)\n        .values({ namespace, key, valueJson: value })\n        .onConflictDoUpdate({\n          target: [chatMetadata.namespace, chatMetadata.key],\n          set: { valueJson: value },\n        })\n    },\n    async delete(namespace, key) {\n      await db\n        .delete(chatMetadata)\n        .where(\n          and(eq(chatMetadata.namespace, namespace), eq(chatMetadata.key, key)),\n        )\n    },\n  }\n}\n\n\u002F** The four chat state stores backed by the app's Drizzle database. *\u002F\nexport const chatPersistence: ChatPersistence = defineAIPersistence({\n  stores: {\n    messages: createMessageStore(db),\n    runs: createRunStore(db),\n    interrupts: createInterruptStore(db),\n    metadata: createMetadataStore(db),\n  },\n})\n```\n\nAnnotate `ChatPersistence` — bare `AIPersistence` is the all-optional bag and\n`withPersistence` rejects it. There is no `locks` store: `stores` accepts only\nthose four keys, and coordination is wired separately with `withLocks` (see\n**ai-core\u002Flocks**).\n\n### If `db` is per-request\n\nWorkers\u002FD1 and any request-scoped client cannot read a binding at module scope.\nExport a factory instead, and call it inside the handler:\n\n```ts ignore\ntype Db = ReturnType\u003Ctypeof getDb>\n\nexport function chatPersistence(): ChatPersistence {\n  const db = getDb()\n  return defineAIPersistence({\n    stores: {\n      messages: createMessageStore(db),\n      runs: createRunStore(db),\n      interrupts: createInterruptStore(db),\n      metadata: createMetadataStore(db),\n    },\n  })\n}\n```\n\nThe store factories are unchanged — only the export flips from a const to a\nfunction. For D1 specifically, see\n**ai-persistence\u002Fbuild-cloudflare-adapter**.\n\n## 4. Wire it into the chat route\n\n```ts ignore\nimport {\n  chat,\n  chatParamsFromRequest,\n  toServerSentEventsResponse,\n} from '@tanstack\u002Fai'\nimport { openaiText } from '@tanstack\u002Fai-openai'\nimport { withPersistence } from '@tanstack\u002Fai-persistence'\nimport { chatPersistence } from '@\u002Flib\u002Fchat-persistence'\n\nexport async function POST(request: Request) {\n  const params = await chatParamsFromRequest(request)\n  const stream = chat({\n    adapter: openaiText('gpt-5.5'),\n    messages: params.messages,\n    threadId: params.threadId,\n    runId: params.runId,\n    ...(params.resume ? { resume: params.resume } : {}),\n    middleware: [withPersistence(chatPersistence)],\n  })\n  return toServerSentEventsResponse(stream)\n}\n```\n\n`threadId` is a bare string to the stores. **Authorize thread access at the\nroute** — derive the user from the session, never trust a client-supplied id.\n\n## 5. Verify\n\n```ts ignore\nimport { runPersistenceConformance } from '@tanstack\u002Fai-persistence\u002Ftestkit'\nimport { chatPersistence } from '..\u002Fsrc\u002Flib\u002Fchat-persistence'\n\nrunPersistenceConformance('app-drizzle', () => chatPersistence)\n```\n\nPoint it at a throwaway database (`:memory:` SQLite, a scratch schema, PGlite)\nthat has the migration applied, and reset between runs. Every store is\nprovided, so there is nothing to `skip` — and `skip` never accepts `'locks'`,\nwhich is not a state store.\n\n## Only if you are publishing this as a package\n\nEverything above assumes the file lives in the app. If instead you are shipping\na reusable `drizzle` adapter to npm, the same store bodies apply, plus:\n\n- **Peer deps** `@tanstack\u002Fai`, `@tanstack\u002Fai-persistence`, `drizzle-orm >=0.44.0`;\n  dev dep `drizzle-kit`. Keep the module root free of Node built-ins so it is\n  edge-safe, and put any `node:sqlite` convenience factory behind a `\u002Fsqlite`\n  subpath.\n- **Type `db` structurally** so a consumer's client is assignable:\n  `Pick\u003CBaseSQLiteDatabase\u003C'sync' | 'async', unknown>, 'select' | 'insert' | 'update' | 'delete'>`.\n- **Multi-dialect**: take a `provider: 'sqlite' | 'pg'` option, declare\n  overloads so `db` and `schema` must agree, and add a runtime dialect check so\n  a mismatched pair fails at construction rather than on first query.\n- **BYO schema**: accept `drizzlePersistence(db, { schema })`, validate the\n  tables\u002Fcolumns exist at construction, and pin the required column shapes with\n  a compile-time contract type.\n- **Never bundle SQL migrations or a runner.** Either re-export the stock tables\n  from a `\u002Fsqlite-schema` subpath so the consumer's `drizzle-kit` picks them up,\n  or emit an owned starter schema file with a small CLI. An opt-in\n  `ensureTables(db)` issuing `CREATE TABLE IF NOT EXISTS` is fine for local dev,\n  kept clearly separate from their journal. Pick one DDL owner per database.\n- Run `runPersistenceConformance` once per dialect.\n",{"data":55,"body":56},{"name":5,"description":7},{"type":57,"children":58},"root",[59,68,115,135,178,185,489,510,552,558,579,2654,2695,2803,2814,2819,9727,9786,9800,9805,10093,10104,10110,10691,10708,10714,10844,10880,10886,10898,11083],{"type":60,"tag":61,"props":62,"children":64},"element","h1",{"id":63},"drizzle-chat-persistence",[65],{"type":66,"value":67},"text","Drizzle Chat Persistence",{"type":60,"tag":69,"props":70,"children":71},"p",{},[72,74,80,82,89,91,97,99,105,107,113],{"type":66,"value":73},"The deliverable is ",{"type":60,"tag":75,"props":76,"children":77},"strong",{},[78],{"type":66,"value":79},"one file in the app",{"type":66,"value":81}," — ",{"type":60,"tag":83,"props":84,"children":86},"code",{"className":85},[],[87],{"type":66,"value":88},"src\u002Flib\u002Fchat-persistence.ts",{"type":66,"value":90}," —\nexporting a ",{"type":60,"tag":83,"props":92,"children":94},{"className":93},[],[95],{"type":66,"value":96},"ChatPersistence",{"type":66,"value":98}," built from the app's existing Drizzle ",{"type":60,"tag":83,"props":100,"children":102},{"className":101},[],[103],{"type":66,"value":104},"db",{"type":66,"value":106},". Plus\nfour tables added to the app's existing schema file and a migration generated\nthrough the app's existing ",{"type":60,"tag":83,"props":108,"children":110},{"className":109},[],[111],{"type":66,"value":112},"drizzle-kit",{"type":66,"value":114}," setup.",{"type":60,"tag":69,"props":116,"children":117},{},[118,120,125,127,133],{"type":66,"value":119},"Do not create a package, a second ",{"type":60,"tag":83,"props":121,"children":123},{"className":122},[],[124],{"type":66,"value":104},{"type":66,"value":126}," instance, a migration runner, or a\n",{"type":60,"tag":83,"props":128,"children":130},{"className":129},[],[131],{"type":66,"value":132},"drizzle.config.ts",{"type":66,"value":134},". The app has those.",{"type":60,"tag":69,"props":136,"children":137},{},[138,140,145,147,153,155,160,162,168,170,176],{"type":66,"value":139},"Read the ",{"type":60,"tag":75,"props":141,"children":142},{},[143],{"type":66,"value":144},"Build Your Own Adapter",{"type":66,"value":146}," guide\n(",{"type":60,"tag":83,"props":148,"children":150},{"className":149},[],[151],{"type":66,"value":152},"docs\u002Fpersistence\u002Fbuild-your-own-adapter.md",{"type":66,"value":154},") for the store contracts and\ninvariants, and ",{"type":60,"tag":75,"props":156,"children":157},{},[158],{"type":66,"value":159},"ai-persistence\u002Fstores",{"type":66,"value":161}," for the shape rules. Every\nstore below mirrors the reference in-memory backend in\n",{"type":60,"tag":83,"props":163,"children":165},{"className":164},[],[166],{"type":66,"value":167},"@tanstack\u002Fai-persistence",{"type":66,"value":169}," (",{"type":60,"tag":83,"props":171,"children":173},{"className":172},[],[174],{"type":66,"value":175},"memory.ts",{"type":66,"value":177},"); the shared conformance testkit is the\nproof.",{"type":60,"tag":179,"props":180,"children":182},"h2",{"id":181},"_1-read-the-app-before-writing-anything",[183],{"type":66,"value":184},"1. Read the app before writing anything",{"type":60,"tag":186,"props":187,"children":188},"table",{},[189,213],{"type":60,"tag":190,"props":191,"children":192},"thead",{},[193],{"type":60,"tag":194,"props":195,"children":196},"tr",{},[197,203,208],{"type":60,"tag":198,"props":199,"children":200},"th",{},[201],{"type":66,"value":202},"Find",{"type":60,"tag":198,"props":204,"children":205},{},[206],{"type":66,"value":207},"Where to look",{"type":60,"tag":198,"props":209,"children":210},{},[211],{"type":66,"value":212},"What it decides",{"type":60,"tag":214,"props":215,"children":216},"tbody",{},[217,278,308,368,414,440],{"type":60,"tag":194,"props":218,"children":219},{},[220,226,252],{"type":60,"tag":221,"props":222,"children":223},"td",{},[224],{"type":66,"value":225},"Dialect",{"type":60,"tag":221,"props":227,"children":228},{},[229,234,236,242,244,250],{"type":60,"tag":83,"props":230,"children":232},{"className":231},[],[233],{"type":66,"value":132},{"type":66,"value":235}," ",{"type":60,"tag":83,"props":237,"children":239},{"className":238},[],[240],{"type":66,"value":241},"dialect:",{"type":66,"value":243},", or the ",{"type":60,"tag":83,"props":245,"children":247},{"className":246},[],[248],{"type":66,"value":249},"drizzle-orm\u002F*-core",{"type":66,"value":251}," import",{"type":60,"tag":221,"props":253,"children":254},{},[255,261,263,269,270,276],{"type":60,"tag":83,"props":256,"children":258},{"className":257},[],[259],{"type":66,"value":260},"sqlite-core",{"type":66,"value":262}," vs ",{"type":60,"tag":83,"props":264,"children":266},{"className":265},[],[267],{"type":66,"value":268},"pg-core",{"type":66,"value":262},{"type":60,"tag":83,"props":271,"children":273},{"className":272},[],[274],{"type":66,"value":275},"mysql-core",{"type":66,"value":277}," column builders",{"type":60,"tag":194,"props":279,"children":280},{},[281,286,303],{"type":60,"tag":221,"props":282,"children":283},{},[284],{"type":66,"value":285},"Schema file(s)",{"type":60,"tag":221,"props":287,"children":288},{},[289,294,295,301],{"type":60,"tag":83,"props":290,"children":292},{"className":291},[],[293],{"type":66,"value":132},{"type":66,"value":235},{"type":60,"tag":83,"props":296,"children":298},{"className":297},[],[299],{"type":66,"value":300},"schema:",{"type":66,"value":302}," glob",{"type":60,"tag":221,"props":304,"children":305},{},[306],{"type":66,"value":307},"Where the four tables go — append, never start a new file",{"type":60,"tag":194,"props":309,"children":310},{},[311,323,347],{"type":60,"tag":221,"props":312,"children":313},{},[314,316,321],{"type":66,"value":315},"The ",{"type":60,"tag":83,"props":317,"children":319},{"className":318},[],[320],{"type":66,"value":104},{"type":66,"value":322}," handle",{"type":60,"tag":221,"props":324,"children":325},{},[326,332,334,340,341],{"type":60,"tag":83,"props":327,"children":329},{"className":328},[],[330],{"type":66,"value":331},"src\u002Fdb\u002Findex.ts",{"type":66,"value":333},", ",{"type":60,"tag":83,"props":335,"children":337},{"className":336},[],[338],{"type":66,"value":339},"src\u002Fdb.ts",{"type":66,"value":333},{"type":60,"tag":83,"props":342,"children":344},{"className":343},[],[345],{"type":66,"value":346},"src\u002Fserver\u002Fdb.ts",{"type":60,"tag":221,"props":348,"children":349},{},[350,352,358,360,366],{"type":66,"value":351},"Module singleton (",{"type":60,"tag":83,"props":353,"children":355},{"className":354},[],[356],{"type":66,"value":357},"export const db",{"type":66,"value":359},") vs factory (",{"type":60,"tag":83,"props":361,"children":363},{"className":362},[],[364],{"type":66,"value":365},"getDb()",{"type":66,"value":367},")",{"type":60,"tag":194,"props":369,"children":370},{},[371,376,409],{"type":60,"tag":221,"props":372,"children":373},{},[374],{"type":66,"value":375},"Migration flow",{"type":60,"tag":221,"props":377,"children":378},{},[379,384,385,391,393,399,401,407],{"type":60,"tag":83,"props":380,"children":382},{"className":381},[],[383],{"type":66,"value":132},{"type":66,"value":235},{"type":60,"tag":83,"props":386,"children":388},{"className":387},[],[389],{"type":66,"value":390},"out:",{"type":66,"value":392},", the ",{"type":60,"tag":83,"props":394,"children":396},{"className":395},[],[397],{"type":66,"value":398},"migrations\u002F",{"type":66,"value":400}," or ",{"type":60,"tag":83,"props":402,"children":404},{"className":403},[],[405],{"type":66,"value":406},"drizzle\u002F",{"type":66,"value":408}," journal",{"type":60,"tag":221,"props":410,"children":411},{},[412],{"type":66,"value":413},"Which generate\u002Fapply commands to tell the user to run",{"type":60,"tag":194,"props":415,"children":416},{},[417,422,427],{"type":60,"tag":221,"props":418,"children":419},{},[420],{"type":66,"value":421},"Naming conventions",{"type":60,"tag":221,"props":423,"children":424},{},[425],{"type":66,"value":426},"Existing tables in the schema file",{"type":60,"tag":221,"props":428,"children":429},{},[430,432,438],{"type":66,"value":431},"Table prefix, var casing, ",{"type":60,"tag":83,"props":433,"children":435},{"className":434},[],[436],{"type":66,"value":437},"snake_case",{"type":66,"value":439}," column names",{"type":60,"tag":194,"props":441,"children":442},{},[443,448,464],{"type":60,"tag":221,"props":444,"children":445},{},[446],{"type":66,"value":447},"Import alias",{"type":60,"tag":221,"props":449,"children":450},{},[451,457,458],{"type":60,"tag":83,"props":452,"children":454},{"className":453},[],[455],{"type":66,"value":456},"tsconfig.json",{"type":66,"value":235},{"type":60,"tag":83,"props":459,"children":461},{"className":460},[],[462],{"type":66,"value":463},"paths",{"type":60,"tag":221,"props":465,"children":466},{},[467,473,474,480,481,487],{"type":60,"tag":83,"props":468,"children":470},{"className":469},[],[471],{"type":66,"value":472},"@\u002Fdb",{"type":66,"value":333},{"type":60,"tag":83,"props":475,"children":477},{"className":476},[],[478],{"type":66,"value":479},"~\u002Fdb",{"type":66,"value":333},{"type":60,"tag":83,"props":482,"children":484},{"className":483},[],[485],{"type":66,"value":486},"#\u002Fdb\u002Findex",{"type":66,"value":488},", or a relative path",{"type":60,"tag":69,"props":490,"children":491},{},[492,494,500,502,508],{"type":66,"value":493},"Match what is already there. If their tables are ",{"type":60,"tag":83,"props":495,"children":497},{"className":496},[],[498],{"type":66,"value":499},"chat_*",{"type":66,"value":501},"-prefixed and their\nvars are camelCase, so are yours. If they already have a ",{"type":60,"tag":83,"props":503,"children":505},{"className":504},[],[506],{"type":66,"value":507},"messages",{"type":66,"value":509}," table for\nsomething else, prefix — the store code reads database names off the table\nobjects, so any name works.",{"type":60,"tag":69,"props":511,"children":512},{},[513,518,520,526,528,534,536,542,544,550],{"type":60,"tag":75,"props":514,"children":515},{},[516],{"type":66,"value":517},"Never invent a migration path.",{"type":66,"value":519}," Add the tables to their schema file, then\nhave them run their own commands (",{"type":60,"tag":83,"props":521,"children":523},{"className":522},[],[524],{"type":66,"value":525},"npx drizzle-kit generate",{"type":66,"value":527}," then\n",{"type":60,"tag":83,"props":529,"children":531},{"className":530},[],[532],{"type":66,"value":533},"migrate",{"type":66,"value":535},"\u002F",{"type":60,"tag":83,"props":537,"children":539},{"className":538},[],[540],{"type":66,"value":541},"push",{"type":66,"value":543},", or ",{"type":60,"tag":83,"props":545,"children":547},{"className":546},[],[548],{"type":66,"value":549},"wrangler d1 migrations apply",{"type":66,"value":551}," for D1). A parallel\nmigration table behind their back is how schemas drift.",{"type":60,"tag":179,"props":553,"children":555},{"id":554},"_2-add-the-tables-to-their-schema-file",[556],{"type":66,"value":557},"2. Add the tables to their schema file",{"type":60,"tag":69,"props":559,"children":560},{},[561,563,569,571,577],{"type":66,"value":562},"SQLite. JSON payloads use ",{"type":60,"tag":83,"props":564,"children":566},{"className":565},[],[567],{"type":66,"value":568},"text({ mode: 'json' })",{"type":66,"value":570}," so Drizzle round-trips\nobjects for you; timestamps are ",{"type":60,"tag":83,"props":572,"children":574},{"className":573},[],[575],{"type":66,"value":576},"integer",{"type":66,"value":578}," epoch ms.",{"type":60,"tag":580,"props":581,"children":587},"pre",{"className":582,"code":583,"language":584,"meta":585,"style":586},"language-ts shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","import { integer, primaryKey, sqliteTable, text } from 'drizzle-orm\u002Fsqlite-core'\nimport type { ModelMessage, TokenUsage } from '@tanstack\u002Fai'\nimport type { InterruptRecord, RunStatus } from '@tanstack\u002Fai-persistence'\n\nexport const chatThreads = sqliteTable('chat_threads', {\n  threadId: text('thread_id').primaryKey(),\n  messagesJson: text('messages_json', { mode: 'json' })\n    .$type\u003CArray\u003CModelMessage>>()\n    .notNull(),\n  updatedAt: integer('updated_at').notNull(),\n})\n\nexport const chatRuns = sqliteTable('chat_runs', {\n  runId: text('run_id').primaryKey(),\n  threadId: text('thread_id').notNull(),\n  status: text('status').$type\u003CRunStatus>().notNull(),\n  startedAt: integer('started_at').notNull(),\n  finishedAt: integer('finished_at'),\n  error: text('error'),\n  usageJson: text('usage_json', { mode: 'json' }).$type\u003CTokenUsage>(),\n})\n\nexport const chatInterrupts = sqliteTable('chat_interrupts', {\n  interruptId: text('interrupt_id').primaryKey(),\n  runId: text('run_id').notNull(),\n  threadId: text('thread_id').notNull(),\n  status: text('status').$type\u003CInterruptRecord['status']>().notNull(),\n  requestedAt: integer('requested_at').notNull(),\n  resolvedAt: integer('resolved_at'),\n  payloadJson: text('payload_json', { mode: 'json' })\n    .$type\u003CRecord\u003Cstring, unknown>>()\n    .notNull(),\n  responseJson: text('response_json', { mode: 'json' }).$type\u003Cunknown>(),\n})\n\nexport const chatMetadata = sqliteTable(\n  'chat_metadata',\n  {\n    namespace: text('namespace').notNull(),\n    key: text('key').notNull(),\n    valueJson: text('value_json', { mode: 'json' }).$type\u003Cunknown>().notNull(),\n  },\n  (table) => [primaryKey({ columns: [table.namespace, table.key] })],\n)\n","ts","ignore","",[588],{"type":60,"tag":83,"props":589,"children":590},{"__ignoreMap":586},[591,669,721,771,781,839,899,972,1016,1037,1091,1104,1112,1162,1216,1268,1348,1402,1444,1486,1585,1597,1605,1655,1709,1761,1813,1912,1966,2008,2078,2125,2145,2244,2256,2264,2294,2316,2325,2379,2433,2543,2552,2646],{"type":60,"tag":592,"props":593,"children":596},"span",{"class":594,"line":595},"line",1,[597,603,609,615,620,625,629,634,638,643,648,653,658,664],{"type":60,"tag":592,"props":598,"children":600},{"style":599},"--shiki-light:#39ADB5;--shiki-light-font-style:italic;--shiki-default:#89DDFF;--shiki-default-font-style:italic;--shiki-dark:#89DDFF;--shiki-dark-font-style:italic",[601],{"type":66,"value":602},"import",{"type":60,"tag":592,"props":604,"children":606},{"style":605},"--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF",[607],{"type":66,"value":608}," {",{"type":60,"tag":592,"props":610,"children":612},{"style":611},"--shiki-light:#90A4AE;--shiki-default:#EEFFFF;--shiki-dark:#BABED8",[613],{"type":66,"value":614}," integer",{"type":60,"tag":592,"props":616,"children":617},{"style":605},[618],{"type":66,"value":619},",",{"type":60,"tag":592,"props":621,"children":622},{"style":611},[623],{"type":66,"value":624}," primaryKey",{"type":60,"tag":592,"props":626,"children":627},{"style":605},[628],{"type":66,"value":619},{"type":60,"tag":592,"props":630,"children":631},{"style":611},[632],{"type":66,"value":633}," sqliteTable",{"type":60,"tag":592,"props":635,"children":636},{"style":605},[637],{"type":66,"value":619},{"type":60,"tag":592,"props":639,"children":640},{"style":611},[641],{"type":66,"value":642}," text",{"type":60,"tag":592,"props":644,"children":645},{"style":605},[646],{"type":66,"value":647}," }",{"type":60,"tag":592,"props":649,"children":650},{"style":599},[651],{"type":66,"value":652}," from",{"type":60,"tag":592,"props":654,"children":655},{"style":605},[656],{"type":66,"value":657}," '",{"type":60,"tag":592,"props":659,"children":661},{"style":660},"--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D",[662],{"type":66,"value":663},"drizzle-orm\u002Fsqlite-core",{"type":60,"tag":592,"props":665,"children":666},{"style":605},[667],{"type":66,"value":668},"'\n",{"type":60,"tag":592,"props":670,"children":672},{"class":594,"line":671},2,[673,677,682,686,691,695,700,704,708,712,717],{"type":60,"tag":592,"props":674,"children":675},{"style":599},[676],{"type":66,"value":602},{"type":60,"tag":592,"props":678,"children":679},{"style":599},[680],{"type":66,"value":681}," type",{"type":60,"tag":592,"props":683,"children":684},{"style":605},[685],{"type":66,"value":608},{"type":60,"tag":592,"props":687,"children":688},{"style":611},[689],{"type":66,"value":690}," ModelMessage",{"type":60,"tag":592,"props":692,"children":693},{"style":605},[694],{"type":66,"value":619},{"type":60,"tag":592,"props":696,"children":697},{"style":611},[698],{"type":66,"value":699}," TokenUsage",{"type":60,"tag":592,"props":701,"children":702},{"style":605},[703],{"type":66,"value":647},{"type":60,"tag":592,"props":705,"children":706},{"style":599},[707],{"type":66,"value":652},{"type":60,"tag":592,"props":709,"children":710},{"style":605},[711],{"type":66,"value":657},{"type":60,"tag":592,"props":713,"children":714},{"style":660},[715],{"type":66,"value":716},"@tanstack\u002Fai",{"type":60,"tag":592,"props":718,"children":719},{"style":605},[720],{"type":66,"value":668},{"type":60,"tag":592,"props":722,"children":724},{"class":594,"line":723},3,[725,729,733,737,742,746,751,755,759,763,767],{"type":60,"tag":592,"props":726,"children":727},{"style":599},[728],{"type":66,"value":602},{"type":60,"tag":592,"props":730,"children":731},{"style":599},[732],{"type":66,"value":681},{"type":60,"tag":592,"props":734,"children":735},{"style":605},[736],{"type":66,"value":608},{"type":60,"tag":592,"props":738,"children":739},{"style":611},[740],{"type":66,"value":741}," InterruptRecord",{"type":60,"tag":592,"props":743,"children":744},{"style":605},[745],{"type":66,"value":619},{"type":60,"tag":592,"props":747,"children":748},{"style":611},[749],{"type":66,"value":750}," RunStatus",{"type":60,"tag":592,"props":752,"children":753},{"style":605},[754],{"type":66,"value":647},{"type":60,"tag":592,"props":756,"children":757},{"style":599},[758],{"type":66,"value":652},{"type":60,"tag":592,"props":760,"children":761},{"style":605},[762],{"type":66,"value":657},{"type":60,"tag":592,"props":764,"children":765},{"style":660},[766],{"type":66,"value":167},{"type":60,"tag":592,"props":768,"children":769},{"style":605},[770],{"type":66,"value":668},{"type":60,"tag":592,"props":772,"children":774},{"class":594,"line":773},4,[775],{"type":60,"tag":592,"props":776,"children":778},{"emptyLinePlaceholder":777},true,[779],{"type":66,"value":780},"\n",{"type":60,"tag":592,"props":782,"children":784},{"class":594,"line":783},5,[785,790,796,801,806,811,816,821,826,830,834],{"type":60,"tag":592,"props":786,"children":787},{"style":599},[788],{"type":66,"value":789},"export",{"type":60,"tag":592,"props":791,"children":793},{"style":792},"--shiki-light:#9C3EDA;--shiki-default:#C792EA;--shiki-dark:#C792EA",[794],{"type":66,"value":795}," const",{"type":60,"tag":592,"props":797,"children":798},{"style":611},[799],{"type":66,"value":800}," chatThreads ",{"type":60,"tag":592,"props":802,"children":803},{"style":605},[804],{"type":66,"value":805},"=",{"type":60,"tag":592,"props":807,"children":809},{"style":808},"--shiki-light:#6182B8;--shiki-default:#82AAFF;--shiki-dark:#82AAFF",[810],{"type":66,"value":633},{"type":60,"tag":592,"props":812,"children":813},{"style":611},[814],{"type":66,"value":815},"(",{"type":60,"tag":592,"props":817,"children":818},{"style":605},[819],{"type":66,"value":820},"'",{"type":60,"tag":592,"props":822,"children":823},{"style":660},[824],{"type":66,"value":825},"chat_threads",{"type":60,"tag":592,"props":827,"children":828},{"style":605},[829],{"type":66,"value":820},{"type":60,"tag":592,"props":831,"children":832},{"style":605},[833],{"type":66,"value":619},{"type":60,"tag":592,"props":835,"children":836},{"style":605},[837],{"type":66,"value":838}," {\n",{"type":60,"tag":592,"props":840,"children":842},{"class":594,"line":841},6,[843,849,854,858,862,866,871,875,879,884,889,894],{"type":60,"tag":592,"props":844,"children":846},{"style":845},"--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178",[847],{"type":66,"value":848},"  threadId",{"type":60,"tag":592,"props":850,"children":851},{"style":605},[852],{"type":66,"value":853},":",{"type":60,"tag":592,"props":855,"children":856},{"style":808},[857],{"type":66,"value":642},{"type":60,"tag":592,"props":859,"children":860},{"style":611},[861],{"type":66,"value":815},{"type":60,"tag":592,"props":863,"children":864},{"style":605},[865],{"type":66,"value":820},{"type":60,"tag":592,"props":867,"children":868},{"style":660},[869],{"type":66,"value":870},"thread_id",{"type":60,"tag":592,"props":872,"children":873},{"style":605},[874],{"type":66,"value":820},{"type":60,"tag":592,"props":876,"children":877},{"style":611},[878],{"type":66,"value":367},{"type":60,"tag":592,"props":880,"children":881},{"style":605},[882],{"type":66,"value":883},".",{"type":60,"tag":592,"props":885,"children":886},{"style":808},[887],{"type":66,"value":888},"primaryKey",{"type":60,"tag":592,"props":890,"children":891},{"style":611},[892],{"type":66,"value":893},"()",{"type":60,"tag":592,"props":895,"children":896},{"style":605},[897],{"type":66,"value":898},",\n",{"type":60,"tag":592,"props":900,"children":902},{"class":594,"line":901},7,[903,908,912,916,920,924,929,933,937,941,946,950,954,959,963,967],{"type":60,"tag":592,"props":904,"children":905},{"style":845},[906],{"type":66,"value":907},"  messagesJson",{"type":60,"tag":592,"props":909,"children":910},{"style":605},[911],{"type":66,"value":853},{"type":60,"tag":592,"props":913,"children":914},{"style":808},[915],{"type":66,"value":642},{"type":60,"tag":592,"props":917,"children":918},{"style":611},[919],{"type":66,"value":815},{"type":60,"tag":592,"props":921,"children":922},{"style":605},[923],{"type":66,"value":820},{"type":60,"tag":592,"props":925,"children":926},{"style":660},[927],{"type":66,"value":928},"messages_json",{"type":60,"tag":592,"props":930,"children":931},{"style":605},[932],{"type":66,"value":820},{"type":60,"tag":592,"props":934,"children":935},{"style":605},[936],{"type":66,"value":619},{"type":60,"tag":592,"props":938,"children":939},{"style":605},[940],{"type":66,"value":608},{"type":60,"tag":592,"props":942,"children":943},{"style":845},[944],{"type":66,"value":945}," mode",{"type":60,"tag":592,"props":947,"children":948},{"style":605},[949],{"type":66,"value":853},{"type":60,"tag":592,"props":951,"children":952},{"style":605},[953],{"type":66,"value":657},{"type":60,"tag":592,"props":955,"children":956},{"style":660},[957],{"type":66,"value":958},"json",{"type":60,"tag":592,"props":960,"children":961},{"style":605},[962],{"type":66,"value":820},{"type":60,"tag":592,"props":964,"children":965},{"style":605},[966],{"type":66,"value":647},{"type":60,"tag":592,"props":968,"children":969},{"style":611},[970],{"type":66,"value":971},")\n",{"type":60,"tag":592,"props":973,"children":975},{"class":594,"line":974},8,[976,981,986,991,997,1001,1006,1011],{"type":60,"tag":592,"props":977,"children":978},{"style":605},[979],{"type":66,"value":980},"    .",{"type":60,"tag":592,"props":982,"children":983},{"style":808},[984],{"type":66,"value":985},"$type",{"type":60,"tag":592,"props":987,"children":988},{"style":605},[989],{"type":66,"value":990},"\u003C",{"type":60,"tag":592,"props":992,"children":994},{"style":993},"--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B",[995],{"type":66,"value":996},"Array",{"type":60,"tag":592,"props":998,"children":999},{"style":605},[1000],{"type":66,"value":990},{"type":60,"tag":592,"props":1002,"children":1003},{"style":993},[1004],{"type":66,"value":1005},"ModelMessage",{"type":60,"tag":592,"props":1007,"children":1008},{"style":605},[1009],{"type":66,"value":1010},">>",{"type":60,"tag":592,"props":1012,"children":1013},{"style":611},[1014],{"type":66,"value":1015},"()\n",{"type":60,"tag":592,"props":1017,"children":1019},{"class":594,"line":1018},9,[1020,1024,1029,1033],{"type":60,"tag":592,"props":1021,"children":1022},{"style":605},[1023],{"type":66,"value":980},{"type":60,"tag":592,"props":1025,"children":1026},{"style":808},[1027],{"type":66,"value":1028},"notNull",{"type":60,"tag":592,"props":1030,"children":1031},{"style":611},[1032],{"type":66,"value":893},{"type":60,"tag":592,"props":1034,"children":1035},{"style":605},[1036],{"type":66,"value":898},{"type":60,"tag":592,"props":1038,"children":1040},{"class":594,"line":1039},10,[1041,1046,1050,1054,1058,1062,1067,1071,1075,1079,1083,1087],{"type":60,"tag":592,"props":1042,"children":1043},{"style":845},[1044],{"type":66,"value":1045},"  updatedAt",{"type":60,"tag":592,"props":1047,"children":1048},{"style":605},[1049],{"type":66,"value":853},{"type":60,"tag":592,"props":1051,"children":1052},{"style":808},[1053],{"type":66,"value":614},{"type":60,"tag":592,"props":1055,"children":1056},{"style":611},[1057],{"type":66,"value":815},{"type":60,"tag":592,"props":1059,"children":1060},{"style":605},[1061],{"type":66,"value":820},{"type":60,"tag":592,"props":1063,"children":1064},{"style":660},[1065],{"type":66,"value":1066},"updated_at",{"type":60,"tag":592,"props":1068,"children":1069},{"style":605},[1070],{"type":66,"value":820},{"type":60,"tag":592,"props":1072,"children":1073},{"style":611},[1074],{"type":66,"value":367},{"type":60,"tag":592,"props":1076,"children":1077},{"style":605},[1078],{"type":66,"value":883},{"type":60,"tag":592,"props":1080,"children":1081},{"style":808},[1082],{"type":66,"value":1028},{"type":60,"tag":592,"props":1084,"children":1085},{"style":611},[1086],{"type":66,"value":893},{"type":60,"tag":592,"props":1088,"children":1089},{"style":605},[1090],{"type":66,"value":898},{"type":60,"tag":592,"props":1092,"children":1094},{"class":594,"line":1093},11,[1095,1100],{"type":60,"tag":592,"props":1096,"children":1097},{"style":605},[1098],{"type":66,"value":1099},"}",{"type":60,"tag":592,"props":1101,"children":1102},{"style":611},[1103],{"type":66,"value":971},{"type":60,"tag":592,"props":1105,"children":1107},{"class":594,"line":1106},12,[1108],{"type":60,"tag":592,"props":1109,"children":1110},{"emptyLinePlaceholder":777},[1111],{"type":66,"value":780},{"type":60,"tag":592,"props":1113,"children":1115},{"class":594,"line":1114},13,[1116,1120,1124,1129,1133,1137,1141,1145,1150,1154,1158],{"type":60,"tag":592,"props":1117,"children":1118},{"style":599},[1119],{"type":66,"value":789},{"type":60,"tag":592,"props":1121,"children":1122},{"style":792},[1123],{"type":66,"value":795},{"type":60,"tag":592,"props":1125,"children":1126},{"style":611},[1127],{"type":66,"value":1128}," chatRuns ",{"type":60,"tag":592,"props":1130,"children":1131},{"style":605},[1132],{"type":66,"value":805},{"type":60,"tag":592,"props":1134,"children":1135},{"style":808},[1136],{"type":66,"value":633},{"type":60,"tag":592,"props":1138,"children":1139},{"style":611},[1140],{"type":66,"value":815},{"type":60,"tag":592,"props":1142,"children":1143},{"style":605},[1144],{"type":66,"value":820},{"type":60,"tag":592,"props":1146,"children":1147},{"style":660},[1148],{"type":66,"value":1149},"chat_runs",{"type":60,"tag":592,"props":1151,"children":1152},{"style":605},[1153],{"type":66,"value":820},{"type":60,"tag":592,"props":1155,"children":1156},{"style":605},[1157],{"type":66,"value":619},{"type":60,"tag":592,"props":1159,"children":1160},{"style":605},[1161],{"type":66,"value":838},{"type":60,"tag":592,"props":1163,"children":1165},{"class":594,"line":1164},14,[1166,1171,1175,1179,1183,1187,1192,1196,1200,1204,1208,1212],{"type":60,"tag":592,"props":1167,"children":1168},{"style":845},[1169],{"type":66,"value":1170},"  runId",{"type":60,"tag":592,"props":1172,"children":1173},{"style":605},[1174],{"type":66,"value":853},{"type":60,"tag":592,"props":1176,"children":1177},{"style":808},[1178],{"type":66,"value":642},{"type":60,"tag":592,"props":1180,"children":1181},{"style":611},[1182],{"type":66,"value":815},{"type":60,"tag":592,"props":1184,"children":1185},{"style":605},[1186],{"type":66,"value":820},{"type":60,"tag":592,"props":1188,"children":1189},{"style":660},[1190],{"type":66,"value":1191},"run_id",{"type":60,"tag":592,"props":1193,"children":1194},{"style":605},[1195],{"type":66,"value":820},{"type":60,"tag":592,"props":1197,"children":1198},{"style":611},[1199],{"type":66,"value":367},{"type":60,"tag":592,"props":1201,"children":1202},{"style":605},[1203],{"type":66,"value":883},{"type":60,"tag":592,"props":1205,"children":1206},{"style":808},[1207],{"type":66,"value":888},{"type":60,"tag":592,"props":1209,"children":1210},{"style":611},[1211],{"type":66,"value":893},{"type":60,"tag":592,"props":1213,"children":1214},{"style":605},[1215],{"type":66,"value":898},{"type":60,"tag":592,"props":1217,"children":1219},{"class":594,"line":1218},15,[1220,1224,1228,1232,1236,1240,1244,1248,1252,1256,1260,1264],{"type":60,"tag":592,"props":1221,"children":1222},{"style":845},[1223],{"type":66,"value":848},{"type":60,"tag":592,"props":1225,"children":1226},{"style":605},[1227],{"type":66,"value":853},{"type":60,"tag":592,"props":1229,"children":1230},{"style":808},[1231],{"type":66,"value":642},{"type":60,"tag":592,"props":1233,"children":1234},{"style":611},[1235],{"type":66,"value":815},{"type":60,"tag":592,"props":1237,"children":1238},{"style":605},[1239],{"type":66,"value":820},{"type":60,"tag":592,"props":1241,"children":1242},{"style":660},[1243],{"type":66,"value":870},{"type":60,"tag":592,"props":1245,"children":1246},{"style":605},[1247],{"type":66,"value":820},{"type":60,"tag":592,"props":1249,"children":1250},{"style":611},[1251],{"type":66,"value":367},{"type":60,"tag":592,"props":1253,"children":1254},{"style":605},[1255],{"type":66,"value":883},{"type":60,"tag":592,"props":1257,"children":1258},{"style":808},[1259],{"type":66,"value":1028},{"type":60,"tag":592,"props":1261,"children":1262},{"style":611},[1263],{"type":66,"value":893},{"type":60,"tag":592,"props":1265,"children":1266},{"style":605},[1267],{"type":66,"value":898},{"type":60,"tag":592,"props":1269,"children":1271},{"class":594,"line":1270},16,[1272,1277,1281,1285,1289,1293,1298,1302,1306,1310,1314,1318,1323,1328,1332,1336,1340,1344],{"type":60,"tag":592,"props":1273,"children":1274},{"style":845},[1275],{"type":66,"value":1276},"  status",{"type":60,"tag":592,"props":1278,"children":1279},{"style":605},[1280],{"type":66,"value":853},{"type":60,"tag":592,"props":1282,"children":1283},{"style":808},[1284],{"type":66,"value":642},{"type":60,"tag":592,"props":1286,"children":1287},{"style":611},[1288],{"type":66,"value":815},{"type":60,"tag":592,"props":1290,"children":1291},{"style":605},[1292],{"type":66,"value":820},{"type":60,"tag":592,"props":1294,"children":1295},{"style":660},[1296],{"type":66,"value":1297},"status",{"type":60,"tag":592,"props":1299,"children":1300},{"style":605},[1301],{"type":66,"value":820},{"type":60,"tag":592,"props":1303,"children":1304},{"style":611},[1305],{"type":66,"value":367},{"type":60,"tag":592,"props":1307,"children":1308},{"style":605},[1309],{"type":66,"value":883},{"type":60,"tag":592,"props":1311,"children":1312},{"style":808},[1313],{"type":66,"value":985},{"type":60,"tag":592,"props":1315,"children":1316},{"style":605},[1317],{"type":66,"value":990},{"type":60,"tag":592,"props":1319,"children":1320},{"style":993},[1321],{"type":66,"value":1322},"RunStatus",{"type":60,"tag":592,"props":1324,"children":1325},{"style":605},[1326],{"type":66,"value":1327},">",{"type":60,"tag":592,"props":1329,"children":1330},{"style":611},[1331],{"type":66,"value":893},{"type":60,"tag":592,"props":1333,"children":1334},{"style":605},[1335],{"type":66,"value":883},{"type":60,"tag":592,"props":1337,"children":1338},{"style":808},[1339],{"type":66,"value":1028},{"type":60,"tag":592,"props":1341,"children":1342},{"style":611},[1343],{"type":66,"value":893},{"type":60,"tag":592,"props":1345,"children":1346},{"style":605},[1347],{"type":66,"value":898},{"type":60,"tag":592,"props":1349,"children":1351},{"class":594,"line":1350},17,[1352,1357,1361,1365,1369,1373,1378,1382,1386,1390,1394,1398],{"type":60,"tag":592,"props":1353,"children":1354},{"style":845},[1355],{"type":66,"value":1356},"  startedAt",{"type":60,"tag":592,"props":1358,"children":1359},{"style":605},[1360],{"type":66,"value":853},{"type":60,"tag":592,"props":1362,"children":1363},{"style":808},[1364],{"type":66,"value":614},{"type":60,"tag":592,"props":1366,"children":1367},{"style":611},[1368],{"type":66,"value":815},{"type":60,"tag":592,"props":1370,"children":1371},{"style":605},[1372],{"type":66,"value":820},{"type":60,"tag":592,"props":1374,"children":1375},{"style":660},[1376],{"type":66,"value":1377},"started_at",{"type":60,"tag":592,"props":1379,"children":1380},{"style":605},[1381],{"type":66,"value":820},{"type":60,"tag":592,"props":1383,"children":1384},{"style":611},[1385],{"type":66,"value":367},{"type":60,"tag":592,"props":1387,"children":1388},{"style":605},[1389],{"type":66,"value":883},{"type":60,"tag":592,"props":1391,"children":1392},{"style":808},[1393],{"type":66,"value":1028},{"type":60,"tag":592,"props":1395,"children":1396},{"style":611},[1397],{"type":66,"value":893},{"type":60,"tag":592,"props":1399,"children":1400},{"style":605},[1401],{"type":66,"value":898},{"type":60,"tag":592,"props":1403,"children":1405},{"class":594,"line":1404},18,[1406,1411,1415,1419,1423,1427,1432,1436,1440],{"type":60,"tag":592,"props":1407,"children":1408},{"style":845},[1409],{"type":66,"value":1410},"  finishedAt",{"type":60,"tag":592,"props":1412,"children":1413},{"style":605},[1414],{"type":66,"value":853},{"type":60,"tag":592,"props":1416,"children":1417},{"style":808},[1418],{"type":66,"value":614},{"type":60,"tag":592,"props":1420,"children":1421},{"style":611},[1422],{"type":66,"value":815},{"type":60,"tag":592,"props":1424,"children":1425},{"style":605},[1426],{"type":66,"value":820},{"type":60,"tag":592,"props":1428,"children":1429},{"style":660},[1430],{"type":66,"value":1431},"finished_at",{"type":60,"tag":592,"props":1433,"children":1434},{"style":605},[1435],{"type":66,"value":820},{"type":60,"tag":592,"props":1437,"children":1438},{"style":611},[1439],{"type":66,"value":367},{"type":60,"tag":592,"props":1441,"children":1442},{"style":605},[1443],{"type":66,"value":898},{"type":60,"tag":592,"props":1445,"children":1447},{"class":594,"line":1446},19,[1448,1453,1457,1461,1465,1469,1474,1478,1482],{"type":60,"tag":592,"props":1449,"children":1450},{"style":845},[1451],{"type":66,"value":1452},"  error",{"type":60,"tag":592,"props":1454,"children":1455},{"style":605},[1456],{"type":66,"value":853},{"type":60,"tag":592,"props":1458,"children":1459},{"style":808},[1460],{"type":66,"value":642},{"type":60,"tag":592,"props":1462,"children":1463},{"style":611},[1464],{"type":66,"value":815},{"type":60,"tag":592,"props":1466,"children":1467},{"style":605},[1468],{"type":66,"value":820},{"type":60,"tag":592,"props":1470,"children":1471},{"style":660},[1472],{"type":66,"value":1473},"error",{"type":60,"tag":592,"props":1475,"children":1476},{"style":605},[1477],{"type":66,"value":820},{"type":60,"tag":592,"props":1479,"children":1480},{"style":611},[1481],{"type":66,"value":367},{"type":60,"tag":592,"props":1483,"children":1484},{"style":605},[1485],{"type":66,"value":898},{"type":60,"tag":592,"props":1487,"children":1489},{"class":594,"line":1488},20,[1490,1495,1499,1503,1507,1511,1516,1520,1524,1528,1532,1536,1540,1544,1548,1552,1556,1560,1564,1568,1573,1577,1581],{"type":60,"tag":592,"props":1491,"children":1492},{"style":845},[1493],{"type":66,"value":1494},"  usageJson",{"type":60,"tag":592,"props":1496,"children":1497},{"style":605},[1498],{"type":66,"value":853},{"type":60,"tag":592,"props":1500,"children":1501},{"style":808},[1502],{"type":66,"value":642},{"type":60,"tag":592,"props":1504,"children":1505},{"style":611},[1506],{"type":66,"value":815},{"type":60,"tag":592,"props":1508,"children":1509},{"style":605},[1510],{"type":66,"value":820},{"type":60,"tag":592,"props":1512,"children":1513},{"style":660},[1514],{"type":66,"value":1515},"usage_json",{"type":60,"tag":592,"props":1517,"children":1518},{"style":605},[1519],{"type":66,"value":820},{"type":60,"tag":592,"props":1521,"children":1522},{"style":605},[1523],{"type":66,"value":619},{"type":60,"tag":592,"props":1525,"children":1526},{"style":605},[1527],{"type":66,"value":608},{"type":60,"tag":592,"props":1529,"children":1530},{"style":845},[1531],{"type":66,"value":945},{"type":60,"tag":592,"props":1533,"children":1534},{"style":605},[1535],{"type":66,"value":853},{"type":60,"tag":592,"props":1537,"children":1538},{"style":605},[1539],{"type":66,"value":657},{"type":60,"tag":592,"props":1541,"children":1542},{"style":660},[1543],{"type":66,"value":958},{"type":60,"tag":592,"props":1545,"children":1546},{"style":605},[1547],{"type":66,"value":820},{"type":60,"tag":592,"props":1549,"children":1550},{"style":605},[1551],{"type":66,"value":647},{"type":60,"tag":592,"props":1553,"children":1554},{"style":611},[1555],{"type":66,"value":367},{"type":60,"tag":592,"props":1557,"children":1558},{"style":605},[1559],{"type":66,"value":883},{"type":60,"tag":592,"props":1561,"children":1562},{"style":808},[1563],{"type":66,"value":985},{"type":60,"tag":592,"props":1565,"children":1566},{"style":605},[1567],{"type":66,"value":990},{"type":60,"tag":592,"props":1569,"children":1570},{"style":993},[1571],{"type":66,"value":1572},"TokenUsage",{"type":60,"tag":592,"props":1574,"children":1575},{"style":605},[1576],{"type":66,"value":1327},{"type":60,"tag":592,"props":1578,"children":1579},{"style":611},[1580],{"type":66,"value":893},{"type":60,"tag":592,"props":1582,"children":1583},{"style":605},[1584],{"type":66,"value":898},{"type":60,"tag":592,"props":1586,"children":1588},{"class":594,"line":1587},21,[1589,1593],{"type":60,"tag":592,"props":1590,"children":1591},{"style":605},[1592],{"type":66,"value":1099},{"type":60,"tag":592,"props":1594,"children":1595},{"style":611},[1596],{"type":66,"value":971},{"type":60,"tag":592,"props":1598,"children":1600},{"class":594,"line":1599},22,[1601],{"type":60,"tag":592,"props":1602,"children":1603},{"emptyLinePlaceholder":777},[1604],{"type":66,"value":780},{"type":60,"tag":592,"props":1606,"children":1608},{"class":594,"line":1607},23,[1609,1613,1617,1622,1626,1630,1634,1638,1643,1647,1651],{"type":60,"tag":592,"props":1610,"children":1611},{"style":599},[1612],{"type":66,"value":789},{"type":60,"tag":592,"props":1614,"children":1615},{"style":792},[1616],{"type":66,"value":795},{"type":60,"tag":592,"props":1618,"children":1619},{"style":611},[1620],{"type":66,"value":1621}," chatInterrupts ",{"type":60,"tag":592,"props":1623,"children":1624},{"style":605},[1625],{"type":66,"value":805},{"type":60,"tag":592,"props":1627,"children":1628},{"style":808},[1629],{"type":66,"value":633},{"type":60,"tag":592,"props":1631,"children":1632},{"style":611},[1633],{"type":66,"value":815},{"type":60,"tag":592,"props":1635,"children":1636},{"style":605},[1637],{"type":66,"value":820},{"type":60,"tag":592,"props":1639,"children":1640},{"style":660},[1641],{"type":66,"value":1642},"chat_interrupts",{"type":60,"tag":592,"props":1644,"children":1645},{"style":605},[1646],{"type":66,"value":820},{"type":60,"tag":592,"props":1648,"children":1649},{"style":605},[1650],{"type":66,"value":619},{"type":60,"tag":592,"props":1652,"children":1653},{"style":605},[1654],{"type":66,"value":838},{"type":60,"tag":592,"props":1656,"children":1658},{"class":594,"line":1657},24,[1659,1664,1668,1672,1676,1680,1685,1689,1693,1697,1701,1705],{"type":60,"tag":592,"props":1660,"children":1661},{"style":845},[1662],{"type":66,"value":1663},"  interruptId",{"type":60,"tag":592,"props":1665,"children":1666},{"style":605},[1667],{"type":66,"value":853},{"type":60,"tag":592,"props":1669,"children":1670},{"style":808},[1671],{"type":66,"value":642},{"type":60,"tag":592,"props":1673,"children":1674},{"style":611},[1675],{"type":66,"value":815},{"type":60,"tag":592,"props":1677,"children":1678},{"style":605},[1679],{"type":66,"value":820},{"type":60,"tag":592,"props":1681,"children":1682},{"style":660},[1683],{"type":66,"value":1684},"interrupt_id",{"type":60,"tag":592,"props":1686,"children":1687},{"style":605},[1688],{"type":66,"value":820},{"type":60,"tag":592,"props":1690,"children":1691},{"style":611},[1692],{"type":66,"value":367},{"type":60,"tag":592,"props":1694,"children":1695},{"style":605},[1696],{"type":66,"value":883},{"type":60,"tag":592,"props":1698,"children":1699},{"style":808},[1700],{"type":66,"value":888},{"type":60,"tag":592,"props":1702,"children":1703},{"style":611},[1704],{"type":66,"value":893},{"type":60,"tag":592,"props":1706,"children":1707},{"style":605},[1708],{"type":66,"value":898},{"type":60,"tag":592,"props":1710,"children":1712},{"class":594,"line":1711},25,[1713,1717,1721,1725,1729,1733,1737,1741,1745,1749,1753,1757],{"type":60,"tag":592,"props":1714,"children":1715},{"style":845},[1716],{"type":66,"value":1170},{"type":60,"tag":592,"props":1718,"children":1719},{"style":605},[1720],{"type":66,"value":853},{"type":60,"tag":592,"props":1722,"children":1723},{"style":808},[1724],{"type":66,"value":642},{"type":60,"tag":592,"props":1726,"children":1727},{"style":611},[1728],{"type":66,"value":815},{"type":60,"tag":592,"props":1730,"children":1731},{"style":605},[1732],{"type":66,"value":820},{"type":60,"tag":592,"props":1734,"children":1735},{"style":660},[1736],{"type":66,"value":1191},{"type":60,"tag":592,"props":1738,"children":1739},{"style":605},[1740],{"type":66,"value":820},{"type":60,"tag":592,"props":1742,"children":1743},{"style":611},[1744],{"type":66,"value":367},{"type":60,"tag":592,"props":1746,"children":1747},{"style":605},[1748],{"type":66,"value":883},{"type":60,"tag":592,"props":1750,"children":1751},{"style":808},[1752],{"type":66,"value":1028},{"type":60,"tag":592,"props":1754,"children":1755},{"style":611},[1756],{"type":66,"value":893},{"type":60,"tag":592,"props":1758,"children":1759},{"style":605},[1760],{"type":66,"value":898},{"type":60,"tag":592,"props":1762,"children":1764},{"class":594,"line":1763},26,[1765,1769,1773,1777,1781,1785,1789,1793,1797,1801,1805,1809],{"type":60,"tag":592,"props":1766,"children":1767},{"style":845},[1768],{"type":66,"value":848},{"type":60,"tag":592,"props":1770,"children":1771},{"style":605},[1772],{"type":66,"value":853},{"type":60,"tag":592,"props":1774,"children":1775},{"style":808},[1776],{"type":66,"value":642},{"type":60,"tag":592,"props":1778,"children":1779},{"style":611},[1780],{"type":66,"value":815},{"type":60,"tag":592,"props":1782,"children":1783},{"style":605},[1784],{"type":66,"value":820},{"type":60,"tag":592,"props":1786,"children":1787},{"style":660},[1788],{"type":66,"value":870},{"type":60,"tag":592,"props":1790,"children":1791},{"style":605},[1792],{"type":66,"value":820},{"type":60,"tag":592,"props":1794,"children":1795},{"style":611},[1796],{"type":66,"value":367},{"type":60,"tag":592,"props":1798,"children":1799},{"style":605},[1800],{"type":66,"value":883},{"type":60,"tag":592,"props":1802,"children":1803},{"style":808},[1804],{"type":66,"value":1028},{"type":60,"tag":592,"props":1806,"children":1807},{"style":611},[1808],{"type":66,"value":893},{"type":60,"tag":592,"props":1810,"children":1811},{"style":605},[1812],{"type":66,"value":898},{"type":60,"tag":592,"props":1814,"children":1816},{"class":594,"line":1815},27,[1817,1821,1825,1829,1833,1837,1841,1845,1849,1853,1857,1861,1866,1871,1875,1879,1883,1888,1892,1896,1900,1904,1908],{"type":60,"tag":592,"props":1818,"children":1819},{"style":845},[1820],{"type":66,"value":1276},{"type":60,"tag":592,"props":1822,"children":1823},{"style":605},[1824],{"type":66,"value":853},{"type":60,"tag":592,"props":1826,"children":1827},{"style":808},[1828],{"type":66,"value":642},{"type":60,"tag":592,"props":1830,"children":1831},{"style":611},[1832],{"type":66,"value":815},{"type":60,"tag":592,"props":1834,"children":1835},{"style":605},[1836],{"type":66,"value":820},{"type":60,"tag":592,"props":1838,"children":1839},{"style":660},[1840],{"type":66,"value":1297},{"type":60,"tag":592,"props":1842,"children":1843},{"style":605},[1844],{"type":66,"value":820},{"type":60,"tag":592,"props":1846,"children":1847},{"style":611},[1848],{"type":66,"value":367},{"type":60,"tag":592,"props":1850,"children":1851},{"style":605},[1852],{"type":66,"value":883},{"type":60,"tag":592,"props":1854,"children":1855},{"style":808},[1856],{"type":66,"value":985},{"type":60,"tag":592,"props":1858,"children":1859},{"style":605},[1860],{"type":66,"value":990},{"type":60,"tag":592,"props":1862,"children":1863},{"style":993},[1864],{"type":66,"value":1865},"InterruptRecord",{"type":60,"tag":592,"props":1867,"children":1868},{"style":611},[1869],{"type":66,"value":1870},"[",{"type":60,"tag":592,"props":1872,"children":1873},{"style":605},[1874],{"type":66,"value":820},{"type":60,"tag":592,"props":1876,"children":1877},{"style":660},[1878],{"type":66,"value":1297},{"type":60,"tag":592,"props":1880,"children":1881},{"style":605},[1882],{"type":66,"value":820},{"type":60,"tag":592,"props":1884,"children":1885},{"style":611},[1886],{"type":66,"value":1887},"]",{"type":60,"tag":592,"props":1889,"children":1890},{"style":605},[1891],{"type":66,"value":1327},{"type":60,"tag":592,"props":1893,"children":1894},{"style":611},[1895],{"type":66,"value":893},{"type":60,"tag":592,"props":1897,"children":1898},{"style":605},[1899],{"type":66,"value":883},{"type":60,"tag":592,"props":1901,"children":1902},{"style":808},[1903],{"type":66,"value":1028},{"type":60,"tag":592,"props":1905,"children":1906},{"style":611},[1907],{"type":66,"value":893},{"type":60,"tag":592,"props":1909,"children":1910},{"style":605},[1911],{"type":66,"value":898},{"type":60,"tag":592,"props":1913,"children":1915},{"class":594,"line":1914},28,[1916,1921,1925,1929,1933,1937,1942,1946,1950,1954,1958,1962],{"type":60,"tag":592,"props":1917,"children":1918},{"style":845},[1919],{"type":66,"value":1920},"  requestedAt",{"type":60,"tag":592,"props":1922,"children":1923},{"style":605},[1924],{"type":66,"value":853},{"type":60,"tag":592,"props":1926,"children":1927},{"style":808},[1928],{"type":66,"value":614},{"type":60,"tag":592,"props":1930,"children":1931},{"style":611},[1932],{"type":66,"value":815},{"type":60,"tag":592,"props":1934,"children":1935},{"style":605},[1936],{"type":66,"value":820},{"type":60,"tag":592,"props":1938,"children":1939},{"style":660},[1940],{"type":66,"value":1941},"requested_at",{"type":60,"tag":592,"props":1943,"children":1944},{"style":605},[1945],{"type":66,"value":820},{"type":60,"tag":592,"props":1947,"children":1948},{"style":611},[1949],{"type":66,"value":367},{"type":60,"tag":592,"props":1951,"children":1952},{"style":605},[1953],{"type":66,"value":883},{"type":60,"tag":592,"props":1955,"children":1956},{"style":808},[1957],{"type":66,"value":1028},{"type":60,"tag":592,"props":1959,"children":1960},{"style":611},[1961],{"type":66,"value":893},{"type":60,"tag":592,"props":1963,"children":1964},{"style":605},[1965],{"type":66,"value":898},{"type":60,"tag":592,"props":1967,"children":1969},{"class":594,"line":1968},29,[1970,1975,1979,1983,1987,1991,1996,2000,2004],{"type":60,"tag":592,"props":1971,"children":1972},{"style":845},[1973],{"type":66,"value":1974},"  resolvedAt",{"type":60,"tag":592,"props":1976,"children":1977},{"style":605},[1978],{"type":66,"value":853},{"type":60,"tag":592,"props":1980,"children":1981},{"style":808},[1982],{"type":66,"value":614},{"type":60,"tag":592,"props":1984,"children":1985},{"style":611},[1986],{"type":66,"value":815},{"type":60,"tag":592,"props":1988,"children":1989},{"style":605},[1990],{"type":66,"value":820},{"type":60,"tag":592,"props":1992,"children":1993},{"style":660},[1994],{"type":66,"value":1995},"resolved_at",{"type":60,"tag":592,"props":1997,"children":1998},{"style":605},[1999],{"type":66,"value":820},{"type":60,"tag":592,"props":2001,"children":2002},{"style":611},[2003],{"type":66,"value":367},{"type":60,"tag":592,"props":2005,"children":2006},{"style":605},[2007],{"type":66,"value":898},{"type":60,"tag":592,"props":2009,"children":2011},{"class":594,"line":2010},30,[2012,2017,2021,2025,2029,2033,2038,2042,2046,2050,2054,2058,2062,2066,2070,2074],{"type":60,"tag":592,"props":2013,"children":2014},{"style":845},[2015],{"type":66,"value":2016},"  payloadJson",{"type":60,"tag":592,"props":2018,"children":2019},{"style":605},[2020],{"type":66,"value":853},{"type":60,"tag":592,"props":2022,"children":2023},{"style":808},[2024],{"type":66,"value":642},{"type":60,"tag":592,"props":2026,"children":2027},{"style":611},[2028],{"type":66,"value":815},{"type":60,"tag":592,"props":2030,"children":2031},{"style":605},[2032],{"type":66,"value":820},{"type":60,"tag":592,"props":2034,"children":2035},{"style":660},[2036],{"type":66,"value":2037},"payload_json",{"type":60,"tag":592,"props":2039,"children":2040},{"style":605},[2041],{"type":66,"value":820},{"type":60,"tag":592,"props":2043,"children":2044},{"style":605},[2045],{"type":66,"value":619},{"type":60,"tag":592,"props":2047,"children":2048},{"style":605},[2049],{"type":66,"value":608},{"type":60,"tag":592,"props":2051,"children":2052},{"style":845},[2053],{"type":66,"value":945},{"type":60,"tag":592,"props":2055,"children":2056},{"style":605},[2057],{"type":66,"value":853},{"type":60,"tag":592,"props":2059,"children":2060},{"style":605},[2061],{"type":66,"value":657},{"type":60,"tag":592,"props":2063,"children":2064},{"style":660},[2065],{"type":66,"value":958},{"type":60,"tag":592,"props":2067,"children":2068},{"style":605},[2069],{"type":66,"value":820},{"type":60,"tag":592,"props":2071,"children":2072},{"style":605},[2073],{"type":66,"value":647},{"type":60,"tag":592,"props":2075,"children":2076},{"style":611},[2077],{"type":66,"value":971},{"type":60,"tag":592,"props":2079,"children":2081},{"class":594,"line":2080},31,[2082,2086,2090,2094,2099,2103,2108,2112,2117,2121],{"type":60,"tag":592,"props":2083,"children":2084},{"style":605},[2085],{"type":66,"value":980},{"type":60,"tag":592,"props":2087,"children":2088},{"style":808},[2089],{"type":66,"value":985},{"type":60,"tag":592,"props":2091,"children":2092},{"style":605},[2093],{"type":66,"value":990},{"type":60,"tag":592,"props":2095,"children":2096},{"style":993},[2097],{"type":66,"value":2098},"Record",{"type":60,"tag":592,"props":2100,"children":2101},{"style":605},[2102],{"type":66,"value":990},{"type":60,"tag":592,"props":2104,"children":2105},{"style":993},[2106],{"type":66,"value":2107},"string",{"type":60,"tag":592,"props":2109,"children":2110},{"style":605},[2111],{"type":66,"value":619},{"type":60,"tag":592,"props":2113,"children":2114},{"style":993},[2115],{"type":66,"value":2116}," unknown",{"type":60,"tag":592,"props":2118,"children":2119},{"style":605},[2120],{"type":66,"value":1010},{"type":60,"tag":592,"props":2122,"children":2123},{"style":611},[2124],{"type":66,"value":1015},{"type":60,"tag":592,"props":2126,"children":2128},{"class":594,"line":2127},32,[2129,2133,2137,2141],{"type":60,"tag":592,"props":2130,"children":2131},{"style":605},[2132],{"type":66,"value":980},{"type":60,"tag":592,"props":2134,"children":2135},{"style":808},[2136],{"type":66,"value":1028},{"type":60,"tag":592,"props":2138,"children":2139},{"style":611},[2140],{"type":66,"value":893},{"type":60,"tag":592,"props":2142,"children":2143},{"style":605},[2144],{"type":66,"value":898},{"type":60,"tag":592,"props":2146,"children":2148},{"class":594,"line":2147},33,[2149,2154,2158,2162,2166,2170,2175,2179,2183,2187,2191,2195,2199,2203,2207,2211,2215,2219,2223,2227,2232,2236,2240],{"type":60,"tag":592,"props":2150,"children":2151},{"style":845},[2152],{"type":66,"value":2153},"  responseJson",{"type":60,"tag":592,"props":2155,"children":2156},{"style":605},[2157],{"type":66,"value":853},{"type":60,"tag":592,"props":2159,"children":2160},{"style":808},[2161],{"type":66,"value":642},{"type":60,"tag":592,"props":2163,"children":2164},{"style":611},[2165],{"type":66,"value":815},{"type":60,"tag":592,"props":2167,"children":2168},{"style":605},[2169],{"type":66,"value":820},{"type":60,"tag":592,"props":2171,"children":2172},{"style":660},[2173],{"type":66,"value":2174},"response_json",{"type":60,"tag":592,"props":2176,"children":2177},{"style":605},[2178],{"type":66,"value":820},{"type":60,"tag":592,"props":2180,"children":2181},{"style":605},[2182],{"type":66,"value":619},{"type":60,"tag":592,"props":2184,"children":2185},{"style":605},[2186],{"type":66,"value":608},{"type":60,"tag":592,"props":2188,"children":2189},{"style":845},[2190],{"type":66,"value":945},{"type":60,"tag":592,"props":2192,"children":2193},{"style":605},[2194],{"type":66,"value":853},{"type":60,"tag":592,"props":2196,"children":2197},{"style":605},[2198],{"type":66,"value":657},{"type":60,"tag":592,"props":2200,"children":2201},{"style":660},[2202],{"type":66,"value":958},{"type":60,"tag":592,"props":2204,"children":2205},{"style":605},[2206],{"type":66,"value":820},{"type":60,"tag":592,"props":2208,"children":2209},{"style":605},[2210],{"type":66,"value":647},{"type":60,"tag":592,"props":2212,"children":2213},{"style":611},[2214],{"type":66,"value":367},{"type":60,"tag":592,"props":2216,"children":2217},{"style":605},[2218],{"type":66,"value":883},{"type":60,"tag":592,"props":2220,"children":2221},{"style":808},[2222],{"type":66,"value":985},{"type":60,"tag":592,"props":2224,"children":2225},{"style":605},[2226],{"type":66,"value":990},{"type":60,"tag":592,"props":2228,"children":2229},{"style":993},[2230],{"type":66,"value":2231},"unknown",{"type":60,"tag":592,"props":2233,"children":2234},{"style":605},[2235],{"type":66,"value":1327},{"type":60,"tag":592,"props":2237,"children":2238},{"style":611},[2239],{"type":66,"value":893},{"type":60,"tag":592,"props":2241,"children":2242},{"style":605},[2243],{"type":66,"value":898},{"type":60,"tag":592,"props":2245,"children":2247},{"class":594,"line":2246},34,[2248,2252],{"type":60,"tag":592,"props":2249,"children":2250},{"style":605},[2251],{"type":66,"value":1099},{"type":60,"tag":592,"props":2253,"children":2254},{"style":611},[2255],{"type":66,"value":971},{"type":60,"tag":592,"props":2257,"children":2259},{"class":594,"line":2258},35,[2260],{"type":60,"tag":592,"props":2261,"children":2262},{"emptyLinePlaceholder":777},[2263],{"type":66,"value":780},{"type":60,"tag":592,"props":2265,"children":2267},{"class":594,"line":2266},36,[2268,2272,2276,2281,2285,2289],{"type":60,"tag":592,"props":2269,"children":2270},{"style":599},[2271],{"type":66,"value":789},{"type":60,"tag":592,"props":2273,"children":2274},{"style":792},[2275],{"type":66,"value":795},{"type":60,"tag":592,"props":2277,"children":2278},{"style":611},[2279],{"type":66,"value":2280}," chatMetadata ",{"type":60,"tag":592,"props":2282,"children":2283},{"style":605},[2284],{"type":66,"value":805},{"type":60,"tag":592,"props":2286,"children":2287},{"style":808},[2288],{"type":66,"value":633},{"type":60,"tag":592,"props":2290,"children":2291},{"style":611},[2292],{"type":66,"value":2293},"(\n",{"type":60,"tag":592,"props":2295,"children":2297},{"class":594,"line":2296},37,[2298,2303,2308,2312],{"type":60,"tag":592,"props":2299,"children":2300},{"style":605},[2301],{"type":66,"value":2302},"  '",{"type":60,"tag":592,"props":2304,"children":2305},{"style":660},[2306],{"type":66,"value":2307},"chat_metadata",{"type":60,"tag":592,"props":2309,"children":2310},{"style":605},[2311],{"type":66,"value":820},{"type":60,"tag":592,"props":2313,"children":2314},{"style":605},[2315],{"type":66,"value":898},{"type":60,"tag":592,"props":2317,"children":2319},{"class":594,"line":2318},38,[2320],{"type":60,"tag":592,"props":2321,"children":2322},{"style":605},[2323],{"type":66,"value":2324},"  {\n",{"type":60,"tag":592,"props":2326,"children":2328},{"class":594,"line":2327},39,[2329,2334,2338,2342,2346,2350,2355,2359,2363,2367,2371,2375],{"type":60,"tag":592,"props":2330,"children":2331},{"style":845},[2332],{"type":66,"value":2333},"    namespace",{"type":60,"tag":592,"props":2335,"children":2336},{"style":605},[2337],{"type":66,"value":853},{"type":60,"tag":592,"props":2339,"children":2340},{"style":808},[2341],{"type":66,"value":642},{"type":60,"tag":592,"props":2343,"children":2344},{"style":611},[2345],{"type":66,"value":815},{"type":60,"tag":592,"props":2347,"children":2348},{"style":605},[2349],{"type":66,"value":820},{"type":60,"tag":592,"props":2351,"children":2352},{"style":660},[2353],{"type":66,"value":2354},"namespace",{"type":60,"tag":592,"props":2356,"children":2357},{"style":605},[2358],{"type":66,"value":820},{"type":60,"tag":592,"props":2360,"children":2361},{"style":611},[2362],{"type":66,"value":367},{"type":60,"tag":592,"props":2364,"children":2365},{"style":605},[2366],{"type":66,"value":883},{"type":60,"tag":592,"props":2368,"children":2369},{"style":808},[2370],{"type":66,"value":1028},{"type":60,"tag":592,"props":2372,"children":2373},{"style":611},[2374],{"type":66,"value":893},{"type":60,"tag":592,"props":2376,"children":2377},{"style":605},[2378],{"type":66,"value":898},{"type":60,"tag":592,"props":2380,"children":2382},{"class":594,"line":2381},40,[2383,2388,2392,2396,2400,2404,2409,2413,2417,2421,2425,2429],{"type":60,"tag":592,"props":2384,"children":2385},{"style":845},[2386],{"type":66,"value":2387},"    key",{"type":60,"tag":592,"props":2389,"children":2390},{"style":605},[2391],{"type":66,"value":853},{"type":60,"tag":592,"props":2393,"children":2394},{"style":808},[2395],{"type":66,"value":642},{"type":60,"tag":592,"props":2397,"children":2398},{"style":611},[2399],{"type":66,"value":815},{"type":60,"tag":592,"props":2401,"children":2402},{"style":605},[2403],{"type":66,"value":820},{"type":60,"tag":592,"props":2405,"children":2406},{"style":660},[2407],{"type":66,"value":2408},"key",{"type":60,"tag":592,"props":2410,"children":2411},{"style":605},[2412],{"type":66,"value":820},{"type":60,"tag":592,"props":2414,"children":2415},{"style":611},[2416],{"type":66,"value":367},{"type":60,"tag":592,"props":2418,"children":2419},{"style":605},[2420],{"type":66,"value":883},{"type":60,"tag":592,"props":2422,"children":2423},{"style":808},[2424],{"type":66,"value":1028},{"type":60,"tag":592,"props":2426,"children":2427},{"style":611},[2428],{"type":66,"value":893},{"type":60,"tag":592,"props":2430,"children":2431},{"style":605},[2432],{"type":66,"value":898},{"type":60,"tag":592,"props":2434,"children":2436},{"class":594,"line":2435},41,[2437,2442,2446,2450,2454,2458,2463,2467,2471,2475,2479,2483,2487,2491,2495,2499,2503,2507,2511,2515,2519,2523,2527,2531,2535,2539],{"type":60,"tag":592,"props":2438,"children":2439},{"style":845},[2440],{"type":66,"value":2441},"    valueJson",{"type":60,"tag":592,"props":2443,"children":2444},{"style":605},[2445],{"type":66,"value":853},{"type":60,"tag":592,"props":2447,"children":2448},{"style":808},[2449],{"type":66,"value":642},{"type":60,"tag":592,"props":2451,"children":2452},{"style":611},[2453],{"type":66,"value":815},{"type":60,"tag":592,"props":2455,"children":2456},{"style":605},[2457],{"type":66,"value":820},{"type":60,"tag":592,"props":2459,"children":2460},{"style":660},[2461],{"type":66,"value":2462},"value_json",{"type":60,"tag":592,"props":2464,"children":2465},{"style":605},[2466],{"type":66,"value":820},{"type":60,"tag":592,"props":2468,"children":2469},{"style":605},[2470],{"type":66,"value":619},{"type":60,"tag":592,"props":2472,"children":2473},{"style":605},[2474],{"type":66,"value":608},{"type":60,"tag":592,"props":2476,"children":2477},{"style":845},[2478],{"type":66,"value":945},{"type":60,"tag":592,"props":2480,"children":2481},{"style":605},[2482],{"type":66,"value":853},{"type":60,"tag":592,"props":2484,"children":2485},{"style":605},[2486],{"type":66,"value":657},{"type":60,"tag":592,"props":2488,"children":2489},{"style":660},[2490],{"type":66,"value":958},{"type":60,"tag":592,"props":2492,"children":2493},{"style":605},[2494],{"type":66,"value":820},{"type":60,"tag":592,"props":2496,"children":2497},{"style":605},[2498],{"type":66,"value":647},{"type":60,"tag":592,"props":2500,"children":2501},{"style":611},[2502],{"type":66,"value":367},{"type":60,"tag":592,"props":2504,"children":2505},{"style":605},[2506],{"type":66,"value":883},{"type":60,"tag":592,"props":2508,"children":2509},{"style":808},[2510],{"type":66,"value":985},{"type":60,"tag":592,"props":2512,"children":2513},{"style":605},[2514],{"type":66,"value":990},{"type":60,"tag":592,"props":2516,"children":2517},{"style":993},[2518],{"type":66,"value":2231},{"type":60,"tag":592,"props":2520,"children":2521},{"style":605},[2522],{"type":66,"value":1327},{"type":60,"tag":592,"props":2524,"children":2525},{"style":611},[2526],{"type":66,"value":893},{"type":60,"tag":592,"props":2528,"children":2529},{"style":605},[2530],{"type":66,"value":883},{"type":60,"tag":592,"props":2532,"children":2533},{"style":808},[2534],{"type":66,"value":1028},{"type":60,"tag":592,"props":2536,"children":2537},{"style":611},[2538],{"type":66,"value":893},{"type":60,"tag":592,"props":2540,"children":2541},{"style":605},[2542],{"type":66,"value":898},{"type":60,"tag":592,"props":2544,"children":2546},{"class":594,"line":2545},42,[2547],{"type":60,"tag":592,"props":2548,"children":2549},{"style":605},[2550],{"type":66,"value":2551},"  },\n",{"type":60,"tag":592,"props":2553,"children":2555},{"class":594,"line":2554},43,[2556,2561,2566,2570,2575,2580,2584,2588,2593,2598,2602,2607,2611,2615,2619,2624,2628,2633,2637,2642],{"type":60,"tag":592,"props":2557,"children":2558},{"style":605},[2559],{"type":66,"value":2560},"  (",{"type":60,"tag":592,"props":2562,"children":2564},{"style":2563},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#EEFFFF;--shiki-default-font-style:italic;--shiki-dark:#BABED8;--shiki-dark-font-style:italic",[2565],{"type":66,"value":186},{"type":60,"tag":592,"props":2567,"children":2568},{"style":605},[2569],{"type":66,"value":367},{"type":60,"tag":592,"props":2571,"children":2572},{"style":792},[2573],{"type":66,"value":2574}," =>",{"type":60,"tag":592,"props":2576,"children":2577},{"style":611},[2578],{"type":66,"value":2579}," [",{"type":60,"tag":592,"props":2581,"children":2582},{"style":808},[2583],{"type":66,"value":888},{"type":60,"tag":592,"props":2585,"children":2586},{"style":611},[2587],{"type":66,"value":815},{"type":60,"tag":592,"props":2589,"children":2590},{"style":605},[2591],{"type":66,"value":2592},"{",{"type":60,"tag":592,"props":2594,"children":2595},{"style":845},[2596],{"type":66,"value":2597}," columns",{"type":60,"tag":592,"props":2599,"children":2600},{"style":605},[2601],{"type":66,"value":853},{"type":60,"tag":592,"props":2603,"children":2604},{"style":611},[2605],{"type":66,"value":2606}," [table",{"type":60,"tag":592,"props":2608,"children":2609},{"style":605},[2610],{"type":66,"value":883},{"type":60,"tag":592,"props":2612,"children":2613},{"style":611},[2614],{"type":66,"value":2354},{"type":60,"tag":592,"props":2616,"children":2617},{"style":605},[2618],{"type":66,"value":619},{"type":60,"tag":592,"props":2620,"children":2621},{"style":611},[2622],{"type":66,"value":2623}," table",{"type":60,"tag":592,"props":2625,"children":2626},{"style":605},[2627],{"type":66,"value":883},{"type":60,"tag":592,"props":2629,"children":2630},{"style":611},[2631],{"type":66,"value":2632},"key] ",{"type":60,"tag":592,"props":2634,"children":2635},{"style":605},[2636],{"type":66,"value":1099},{"type":60,"tag":592,"props":2638,"children":2639},{"style":611},[2640],{"type":66,"value":2641},")]",{"type":60,"tag":592,"props":2643,"children":2644},{"style":605},[2645],{"type":66,"value":898},{"type":60,"tag":592,"props":2647,"children":2649},{"class":594,"line":2648},44,[2650],{"type":60,"tag":592,"props":2651,"children":2652},{"style":611},[2653],{"type":66,"value":971},{"type":60,"tag":69,"props":2655,"children":2656},{},[2657,2663,2665,2671,2673,2678,2680,2686,2688,2694],{"type":60,"tag":83,"props":2658,"children":2660},{"className":2659},[],[2661],{"type":66,"value":2662},"updatedAt",{"type":66,"value":2664}," on threads is an app-owned extra, not part of any contract — the\nstores never read columns they do not know about, so add ",{"type":60,"tag":83,"props":2666,"children":2668},{"className":2667},[],[2669],{"type":66,"value":2670},"userId",{"type":66,"value":2672},", tenant ids,\nor audit columns the same way (nullable or defaulted so inserts still succeed).\nThe ",{"type":60,"tag":83,"props":2674,"children":2676},{"className":2675},[],[2677],{"type":66,"value":2354},{"type":66,"value":2679}," column is the ",{"type":60,"tag":83,"props":2681,"children":2683},{"className":2682},[],[2684],{"type":66,"value":2685},"MetadataStore",{"type":66,"value":2687}," first argument; the stock SQL in\nthe guide calls the same column ",{"type":60,"tag":83,"props":2689,"children":2691},{"className":2690},[],[2692],{"type":66,"value":2693},"scope",{"type":66,"value":883},{"type":60,"tag":69,"props":2696,"children":2697},{},[2698,2703,2704,2710,2712,2718,2720,2726,2728,2734,2736,2741,2743,2749,2751,2756,2758,2764,2765,2771,2772,2777,2779,2785,2787,2793,2795,2801],{"type":60,"tag":75,"props":2699,"children":2700},{},[2701],{"type":66,"value":2702},"Postgres",{"type":66,"value":169},{"type":60,"tag":83,"props":2705,"children":2707},{"className":2706},[],[2708],{"type":66,"value":2709},"drizzle-orm\u002Fpg-core",{"type":66,"value":2711},"): ",{"type":60,"tag":83,"props":2713,"children":2715},{"className":2714},[],[2716],{"type":66,"value":2717},"jsonb()",{"type":66,"value":2719}," for the JSON payloads,\n",{"type":60,"tag":83,"props":2721,"children":2723},{"className":2722},[],[2724],{"type":66,"value":2725},"bigint({ mode: 'number' })",{"type":66,"value":2727}," for epoch-ms timestamps, ",{"type":60,"tag":83,"props":2729,"children":2731},{"className":2730},[],[2732],{"type":66,"value":2733},"text()",{"type":66,"value":2735}," elsewhere,\ncomposite ",{"type":60,"tag":83,"props":2737,"children":2739},{"className":2738},[],[2740],{"type":66,"value":888},{"type":66,"value":2742}," on ",{"type":60,"tag":83,"props":2744,"children":2746},{"className":2745},[],[2747],{"type":66,"value":2748},"(namespace, key)",{"type":66,"value":2750}," unchanged. ",{"type":60,"tag":75,"props":2752,"children":2753},{},[2754],{"type":66,"value":2755},"MySQL",{"type":66,"value":2757},"\n(",{"type":60,"tag":83,"props":2759,"children":2761},{"className":2760},[],[2762],{"type":66,"value":2763},"drizzle-orm\u002Fmysql-core",{"type":66,"value":2711},{"type":60,"tag":83,"props":2766,"children":2768},{"className":2767},[],[2769],{"type":66,"value":2770},"json()",{"type":66,"value":333},{"type":60,"tag":83,"props":2773,"children":2775},{"className":2774},[],[2776],{"type":66,"value":2725},{"type":66,"value":2778},", and\n",{"type":60,"tag":83,"props":2780,"children":2782},{"className":2781},[],[2783],{"type":66,"value":2784},"varchar(…, { length: 255 })",{"type":66,"value":2786}," for the primary-key columns. The store bodies\nbelow are identical across all three — only ",{"type":60,"tag":83,"props":2788,"children":2790},{"className":2789},[],[2791],{"type":66,"value":2792},"onConflictDoUpdate",{"type":66,"value":2794}," becomes\n",{"type":60,"tag":83,"props":2796,"children":2798},{"className":2797},[],[2799],{"type":66,"value":2800},"onDuplicateKeyUpdate",{"type":66,"value":2802}," on MySQL.",{"type":60,"tag":179,"props":2804,"children":2806},{"id":2805},"_3-write-srclibchat-persistencets",[2807,2809],{"type":66,"value":2808},"3. Write ",{"type":60,"tag":83,"props":2810,"children":2812},{"className":2811},[],[2813],{"type":66,"value":88},{"type":60,"tag":69,"props":2815,"children":2816},{},[2817],{"type":66,"value":2818},"The whole file. Idempotency is the entire game — the comments below mark the\nrules the conformance suite checks.",{"type":60,"tag":580,"props":2820,"children":2822},{"className":582,"code":2821,"language":584,"meta":585,"style":586},"import { and, asc, desc, eq } from 'drizzle-orm'\nimport { defineAIPersistence } from '@tanstack\u002Fai-persistence'\nimport type { SQL } from 'drizzle-orm'\nimport type {\n  ChatPersistence,\n  InterruptRecord,\n  InterruptStore,\n  MessageStore,\n  MetadataStore,\n  RunRecord,\n  RunStore,\n} from '@tanstack\u002Fai-persistence'\n\nimport { db } from '@\u002Fdb'\nimport {\n  chatInterrupts,\n  chatMetadata,\n  chatRuns,\n  chatThreads,\n} from '@\u002Fdb\u002Fschema'\n\ntype Db = typeof db\n\n\u002F\u002F Records omit absent optionals so they compare cleanly against the reference\n\u002F\u002F in-memory backend.\nfunction mapRun(row: typeof chatRuns.$inferSelect): RunRecord {\n  return {\n    runId: row.runId,\n    threadId: row.threadId,\n    status: row.status,\n    startedAt: row.startedAt,\n    ...(row.finishedAt != null ? { finishedAt: row.finishedAt } : {}),\n    ...(row.error != null ? { error: row.error } : {}),\n    ...(row.usageJson != null ? { usage: row.usageJson } : {}),\n  }\n}\n\nfunction mapInterrupt(\n  row: typeof chatInterrupts.$inferSelect,\n): InterruptRecord {\n  return {\n    interruptId: row.interruptId,\n    runId: row.runId,\n    threadId: row.threadId,\n    status: row.status,\n    requestedAt: row.requestedAt,\n    payload: row.payloadJson,\n    ...(row.resolvedAt != null ? { resolvedAt: row.resolvedAt } : {}),\n    ...(row.responseJson != null ? { response: row.responseJson } : {}),\n  }\n}\n\nfunction createMessageStore(db: Db): MessageStore {\n  return {\n    async loadThread(threadId) {\n      const rows = await db\n        .select({ messagesJson: chatThreads.messagesJson })\n        .from(chatThreads)\n        .where(eq(chatThreads.threadId, threadId))\n        .limit(1)\n      \u002F\u002F Unknown thread is [], never null.\n      return rows[0]?.messagesJson ?? []\n    },\n    \u002F\u002F Full overwrite — `messages` is the complete authoritative transcript.\n    async saveThread(threadId, messages) {\n      const updatedAt = Date.now()\n      await db\n        .insert(chatThreads)\n        .values({ threadId, messagesJson: messages, updatedAt })\n        .onConflictDoUpdate({\n          target: chatThreads.threadId,\n          set: { messagesJson: messages, updatedAt },\n        })\n    },\n  }\n}\n\nfunction createRunStore(db: Db): RunStore {\n  async function get(runId: string) {\n    const rows = await db\n      .select()\n      .from(chatRuns)\n      .where(eq(chatRuns.runId, runId))\n      .limit(1)\n    return rows[0] ? mapRun(rows[0]) : null\n  }\n\n  return {\n    get,\n    \u002F\u002F Idempotent: an existing runId is returned untouched so resume and\n    \u002F\u002F double-submit are safe.\n    async createOrResume({ runId, threadId, startedAt, status }) {\n      const existing = await get(runId)\n      if (existing) return existing\n\n      await db\n        .insert(chatRuns)\n        .values({ runId, threadId, status: status ?? 'running', startedAt })\n        .onConflictDoNothing({ target: chatRuns.runId })\n\n      \u002F\u002F Re-read rather than trusting the insert: a concurrent createOrResume\n      \u002F\u002F may have won the race, and that row is the authoritative one.\n      const stored = await get(runId)\n      return (\n        stored ?? { runId, threadId, status: status ?? 'running', startedAt }\n      )\n    },\n    \u002F\u002F Patching an unknown runId is a no-op: never throws, never inserts.\n    async update(runId, patch) {\n      const set: Partial\u003Ctypeof chatRuns.$inferInsert> = {}\n      if (patch.status !== undefined) set.status = patch.status\n      if (patch.finishedAt !== undefined) set.finishedAt = patch.finishedAt\n      if (patch.error !== undefined) set.error = patch.error\n      if (patch.usage !== undefined) set.usageJson = patch.usage\n      if (Object.keys(set).length === 0) return\n\n      await db.update(chatRuns).set(set).where(eq(chatRuns.runId, runId))\n    },\n    \u002F\u002F Optional in the contract; enables reconnect without a client-held run id.\n    async findActiveRun(threadId) {\n      const rows = await db\n        .select()\n        .from(chatRuns)\n        .where(\n          and(eq(chatRuns.threadId, threadId), eq(chatRuns.status, 'running')),\n        )\n        .orderBy(desc(chatRuns.startedAt))\n        .limit(1)\n      return rows[0] ? mapRun(rows[0]) : null\n    },\n  }\n}\n\nfunction createInterruptStore(db: Db): InterruptStore {\n  \u002F\u002F Every listing is ordered by requestedAt ascending.\n  const listWhere = async (where: SQL | undefined) => {\n    const rows = await db\n      .select()\n      .from(chatInterrupts)\n      .where(where)\n      .orderBy(asc(chatInterrupts.requestedAt))\n    return rows.map(mapInterrupt)\n  }\n\n  return {\n    \u002F\u002F Insert-if-absent: a duplicate create must never clobber a resolved\n    \u002F\u002F interrupt back to pending.\n    async create(record) {\n      await db\n        .insert(chatInterrupts)\n        .values({\n          interruptId: record.interruptId,\n          runId: record.runId,\n          threadId: record.threadId,\n          status: 'pending',\n          requestedAt: record.requestedAt,\n          payloadJson: record.payload,\n          ...(record.response !== undefined\n            ? { responseJson: record.response }\n            : {}),\n        })\n        .onConflictDoNothing({ target: chatInterrupts.interruptId })\n    },\n    async resolve(interruptId, response) {\n      await db\n        .update(chatInterrupts)\n        .set({\n          status: 'resolved',\n          resolvedAt: Date.now(),\n          ...(response !== undefined ? { responseJson: response } : {}),\n        })\n        .where(eq(chatInterrupts.interruptId, interruptId))\n    },\n    async cancel(interruptId) {\n      await db\n        .update(chatInterrupts)\n        .set({ status: 'cancelled', resolvedAt: Date.now() })\n        .where(eq(chatInterrupts.interruptId, interruptId))\n    },\n    async get(interruptId) {\n      const rows = await db\n        .select()\n        .from(chatInterrupts)\n        .where(eq(chatInterrupts.interruptId, interruptId))\n        .limit(1)\n      return rows[0] ? mapInterrupt(rows[0]) : null\n    },\n    list: (threadId) => listWhere(eq(chatInterrupts.threadId, threadId)),\n    listPending: (threadId) =>\n      listWhere(\n        and(\n          eq(chatInterrupts.threadId, threadId),\n          eq(chatInterrupts.status, 'pending'),\n        ),\n      ),\n    listByRun: (runId) => listWhere(eq(chatInterrupts.runId, runId)),\n    listPendingByRun: (runId) =>\n      listWhere(\n        and(\n          eq(chatInterrupts.runId, runId),\n          eq(chatInterrupts.status, 'pending'),\n        ),\n      ),\n  }\n}\n\nfunction createMetadataStore(db: Db): MetadataStore {\n  return {\n    async get(namespace, key) {\n      const rows = await db\n        .select({ valueJson: chatMetadata.valueJson })\n        .from(chatMetadata)\n        .where(\n          and(eq(chatMetadata.namespace, namespace), eq(chatMetadata.key, key)),\n        )\n        .limit(1)\n      return rows[0]?.valueJson ?? null\n    },\n    async set(namespace, key, value) {\n      \u002F\u002F A JSON-mode column binds JS null as SQL NULL, which the NOT NULL\n      \u002F\u002F column rejects with an opaque driver error. Fail clearly instead.\n      if (value == null) {\n        throw new TypeError(\n          `Cannot store ${value} for (${namespace}, ${key}) — use delete() to clear metadata.`,\n        )\n      }\n      await db\n        .insert(chatMetadata)\n        .values({ namespace, key, valueJson: value })\n        .onConflictDoUpdate({\n          target: [chatMetadata.namespace, chatMetadata.key],\n          set: { valueJson: value },\n        })\n    },\n    async delete(namespace, key) {\n      await db\n        .delete(chatMetadata)\n        .where(\n          and(eq(chatMetadata.namespace, namespace), eq(chatMetadata.key, key)),\n        )\n    },\n  }\n}\n\n\u002F** The four chat state stores backed by the app's Drizzle database. *\u002F\nexport const chatPersistence: ChatPersistence = defineAIPersistence({\n  stores: {\n    messages: createMessageStore(db),\n    runs: createRunStore(db),\n    interrupts: createInterruptStore(db),\n    metadata: createMetadataStore(db),\n  },\n})\n",[2823],{"type":60,"tag":83,"props":2824,"children":2825},{"__ignoreMap":586},[2826,2890,2926,2966,2981,2993,3005,3017,3029,3041,3053,3065,3088,3095,3131,3142,3154,3166,3178,3190,3214,3221,3249,3256,3265,3273,3331,3343,3373,3402,3430,3459,3546,3626,3707,3715,3723,3730,3746,3779,3794,3805,3834,3861,3888,3916,3946,3976,4058,4140,4148,4156,4164,4206,4218,4248,4275,4328,4354,4406,4433,4442,4487,4496,4505,4543,4578,4591,4616,4673,4694,4723,4765,4778,4786,4794,4802,4810,4852,4896,4921,4938,4963,5012,5036,5102,5110,5118,5130,5143,5152,5161,5218,5255,5288,5296,5308,5332,5413,5463,5471,5480,5489,5526,5539,5614,5623,5631,5640,5678,5731,5800,5865,5930,5996,6062,6070,6167,6175,6184,6213,6237,6253,6277,6293,6387,6396,6438,6462,6522,6530,6538,6546,6554,6596,6605,6665,6689,6705,6730,6754,6795,6829,6837,6845,6857,6866,6875,6905,6917,6941,6961,6991,7020,7049,7079,7108,7138,7173,7211,7232,7244,7292,7300,7337,7349,7373,7393,7422,7455,7519,7531,7580,7588,7617,7629,7653,7731,7779,7787,7815,7839,7855,7879,7927,7951,8011,8019,8092,8122,8135,8148,8189,8237,8250,8263,8336,8365,8377,8389,8429,8477,8489,8501,8509,8517,8525,8567,8579,8616,8640,8691,8716,8732,8817,8825,8849,8889,8897,8942,8951,8960,8994,9017,9091,9099,9108,9120,9144,9200,9220,9272,9304,9316,9324,9361,9373,9398,9414,9498,9506,9514,9522,9530,9538,9547,9589,9606,9632,9657,9682,9707,9715],{"type":60,"tag":592,"props":2827,"children":2828},{"class":594,"line":595},[2829,2833,2837,2842,2846,2851,2855,2860,2864,2869,2873,2877,2881,2886],{"type":60,"tag":592,"props":2830,"children":2831},{"style":599},[2832],{"type":66,"value":602},{"type":60,"tag":592,"props":2834,"children":2835},{"style":605},[2836],{"type":66,"value":608},{"type":60,"tag":592,"props":2838,"children":2839},{"style":611},[2840],{"type":66,"value":2841}," and",{"type":60,"tag":592,"props":2843,"children":2844},{"style":605},[2845],{"type":66,"value":619},{"type":60,"tag":592,"props":2847,"children":2848},{"style":611},[2849],{"type":66,"value":2850}," asc",{"type":60,"tag":592,"props":2852,"children":2853},{"style":605},[2854],{"type":66,"value":619},{"type":60,"tag":592,"props":2856,"children":2857},{"style":611},[2858],{"type":66,"value":2859}," desc",{"type":60,"tag":592,"props":2861,"children":2862},{"style":605},[2863],{"type":66,"value":619},{"type":60,"tag":592,"props":2865,"children":2866},{"style":611},[2867],{"type":66,"value":2868}," eq",{"type":60,"tag":592,"props":2870,"children":2871},{"style":605},[2872],{"type":66,"value":647},{"type":60,"tag":592,"props":2874,"children":2875},{"style":599},[2876],{"type":66,"value":652},{"type":60,"tag":592,"props":2878,"children":2879},{"style":605},[2880],{"type":66,"value":657},{"type":60,"tag":592,"props":2882,"children":2883},{"style":660},[2884],{"type":66,"value":2885},"drizzle-orm",{"type":60,"tag":592,"props":2887,"children":2888},{"style":605},[2889],{"type":66,"value":668},{"type":60,"tag":592,"props":2891,"children":2892},{"class":594,"line":671},[2893,2897,2901,2906,2910,2914,2918,2922],{"type":60,"tag":592,"props":2894,"children":2895},{"style":599},[2896],{"type":66,"value":602},{"type":60,"tag":592,"props":2898,"children":2899},{"style":605},[2900],{"type":66,"value":608},{"type":60,"tag":592,"props":2902,"children":2903},{"style":611},[2904],{"type":66,"value":2905}," defineAIPersistence",{"type":60,"tag":592,"props":2907,"children":2908},{"style":605},[2909],{"type":66,"value":647},{"type":60,"tag":592,"props":2911,"children":2912},{"style":599},[2913],{"type":66,"value":652},{"type":60,"tag":592,"props":2915,"children":2916},{"style":605},[2917],{"type":66,"value":657},{"type":60,"tag":592,"props":2919,"children":2920},{"style":660},[2921],{"type":66,"value":167},{"type":60,"tag":592,"props":2923,"children":2924},{"style":605},[2925],{"type":66,"value":668},{"type":60,"tag":592,"props":2927,"children":2928},{"class":594,"line":723},[2929,2933,2937,2941,2946,2950,2954,2958,2962],{"type":60,"tag":592,"props":2930,"children":2931},{"style":599},[2932],{"type":66,"value":602},{"type":60,"tag":592,"props":2934,"children":2935},{"style":599},[2936],{"type":66,"value":681},{"type":60,"tag":592,"props":2938,"children":2939},{"style":605},[2940],{"type":66,"value":608},{"type":60,"tag":592,"props":2942,"children":2943},{"style":611},[2944],{"type":66,"value":2945}," SQL",{"type":60,"tag":592,"props":2947,"children":2948},{"style":605},[2949],{"type":66,"value":647},{"type":60,"tag":592,"props":2951,"children":2952},{"style":599},[2953],{"type":66,"value":652},{"type":60,"tag":592,"props":2955,"children":2956},{"style":605},[2957],{"type":66,"value":657},{"type":60,"tag":592,"props":2959,"children":2960},{"style":660},[2961],{"type":66,"value":2885},{"type":60,"tag":592,"props":2963,"children":2964},{"style":605},[2965],{"type":66,"value":668},{"type":60,"tag":592,"props":2967,"children":2968},{"class":594,"line":773},[2969,2973,2977],{"type":60,"tag":592,"props":2970,"children":2971},{"style":599},[2972],{"type":66,"value":602},{"type":60,"tag":592,"props":2974,"children":2975},{"style":599},[2976],{"type":66,"value":681},{"type":60,"tag":592,"props":2978,"children":2979},{"style":605},[2980],{"type":66,"value":838},{"type":60,"tag":592,"props":2982,"children":2983},{"class":594,"line":783},[2984,2989],{"type":60,"tag":592,"props":2985,"children":2986},{"style":611},[2987],{"type":66,"value":2988},"  ChatPersistence",{"type":60,"tag":592,"props":2990,"children":2991},{"style":605},[2992],{"type":66,"value":898},{"type":60,"tag":592,"props":2994,"children":2995},{"class":594,"line":841},[2996,3001],{"type":60,"tag":592,"props":2997,"children":2998},{"style":611},[2999],{"type":66,"value":3000},"  InterruptRecord",{"type":60,"tag":592,"props":3002,"children":3003},{"style":605},[3004],{"type":66,"value":898},{"type":60,"tag":592,"props":3006,"children":3007},{"class":594,"line":901},[3008,3013],{"type":60,"tag":592,"props":3009,"children":3010},{"style":611},[3011],{"type":66,"value":3012},"  InterruptStore",{"type":60,"tag":592,"props":3014,"children":3015},{"style":605},[3016],{"type":66,"value":898},{"type":60,"tag":592,"props":3018,"children":3019},{"class":594,"line":974},[3020,3025],{"type":60,"tag":592,"props":3021,"children":3022},{"style":611},[3023],{"type":66,"value":3024},"  MessageStore",{"type":60,"tag":592,"props":3026,"children":3027},{"style":605},[3028],{"type":66,"value":898},{"type":60,"tag":592,"props":3030,"children":3031},{"class":594,"line":1018},[3032,3037],{"type":60,"tag":592,"props":3033,"children":3034},{"style":611},[3035],{"type":66,"value":3036},"  MetadataStore",{"type":60,"tag":592,"props":3038,"children":3039},{"style":605},[3040],{"type":66,"value":898},{"type":60,"tag":592,"props":3042,"children":3043},{"class":594,"line":1039},[3044,3049],{"type":60,"tag":592,"props":3045,"children":3046},{"style":611},[3047],{"type":66,"value":3048},"  RunRecord",{"type":60,"tag":592,"props":3050,"children":3051},{"style":605},[3052],{"type":66,"value":898},{"type":60,"tag":592,"props":3054,"children":3055},{"class":594,"line":1093},[3056,3061],{"type":60,"tag":592,"props":3057,"children":3058},{"style":611},[3059],{"type":66,"value":3060},"  RunStore",{"type":60,"tag":592,"props":3062,"children":3063},{"style":605},[3064],{"type":66,"value":898},{"type":60,"tag":592,"props":3066,"children":3067},{"class":594,"line":1106},[3068,3072,3076,3080,3084],{"type":60,"tag":592,"props":3069,"children":3070},{"style":605},[3071],{"type":66,"value":1099},{"type":60,"tag":592,"props":3073,"children":3074},{"style":599},[3075],{"type":66,"value":652},{"type":60,"tag":592,"props":3077,"children":3078},{"style":605},[3079],{"type":66,"value":657},{"type":60,"tag":592,"props":3081,"children":3082},{"style":660},[3083],{"type":66,"value":167},{"type":60,"tag":592,"props":3085,"children":3086},{"style":605},[3087],{"type":66,"value":668},{"type":60,"tag":592,"props":3089,"children":3090},{"class":594,"line":1114},[3091],{"type":60,"tag":592,"props":3092,"children":3093},{"emptyLinePlaceholder":777},[3094],{"type":66,"value":780},{"type":60,"tag":592,"props":3096,"children":3097},{"class":594,"line":1164},[3098,3102,3106,3111,3115,3119,3123,3127],{"type":60,"tag":592,"props":3099,"children":3100},{"style":599},[3101],{"type":66,"value":602},{"type":60,"tag":592,"props":3103,"children":3104},{"style":605},[3105],{"type":66,"value":608},{"type":60,"tag":592,"props":3107,"children":3108},{"style":611},[3109],{"type":66,"value":3110}," db",{"type":60,"tag":592,"props":3112,"children":3113},{"style":605},[3114],{"type":66,"value":647},{"type":60,"tag":592,"props":3116,"children":3117},{"style":599},[3118],{"type":66,"value":652},{"type":60,"tag":592,"props":3120,"children":3121},{"style":605},[3122],{"type":66,"value":657},{"type":60,"tag":592,"props":3124,"children":3125},{"style":660},[3126],{"type":66,"value":472},{"type":60,"tag":592,"props":3128,"children":3129},{"style":605},[3130],{"type":66,"value":668},{"type":60,"tag":592,"props":3132,"children":3133},{"class":594,"line":1218},[3134,3138],{"type":60,"tag":592,"props":3135,"children":3136},{"style":599},[3137],{"type":66,"value":602},{"type":60,"tag":592,"props":3139,"children":3140},{"style":605},[3141],{"type":66,"value":838},{"type":60,"tag":592,"props":3143,"children":3144},{"class":594,"line":1270},[3145,3150],{"type":60,"tag":592,"props":3146,"children":3147},{"style":611},[3148],{"type":66,"value":3149},"  chatInterrupts",{"type":60,"tag":592,"props":3151,"children":3152},{"style":605},[3153],{"type":66,"value":898},{"type":60,"tag":592,"props":3155,"children":3156},{"class":594,"line":1350},[3157,3162],{"type":60,"tag":592,"props":3158,"children":3159},{"style":611},[3160],{"type":66,"value":3161},"  chatMetadata",{"type":60,"tag":592,"props":3163,"children":3164},{"style":605},[3165],{"type":66,"value":898},{"type":60,"tag":592,"props":3167,"children":3168},{"class":594,"line":1404},[3169,3174],{"type":60,"tag":592,"props":3170,"children":3171},{"style":611},[3172],{"type":66,"value":3173},"  chatRuns",{"type":60,"tag":592,"props":3175,"children":3176},{"style":605},[3177],{"type":66,"value":898},{"type":60,"tag":592,"props":3179,"children":3180},{"class":594,"line":1446},[3181,3186],{"type":60,"tag":592,"props":3182,"children":3183},{"style":611},[3184],{"type":66,"value":3185},"  chatThreads",{"type":60,"tag":592,"props":3187,"children":3188},{"style":605},[3189],{"type":66,"value":898},{"type":60,"tag":592,"props":3191,"children":3192},{"class":594,"line":1488},[3193,3197,3201,3205,3210],{"type":60,"tag":592,"props":3194,"children":3195},{"style":605},[3196],{"type":66,"value":1099},{"type":60,"tag":592,"props":3198,"children":3199},{"style":599},[3200],{"type":66,"value":652},{"type":60,"tag":592,"props":3202,"children":3203},{"style":605},[3204],{"type":66,"value":657},{"type":60,"tag":592,"props":3206,"children":3207},{"style":660},[3208],{"type":66,"value":3209},"@\u002Fdb\u002Fschema",{"type":60,"tag":592,"props":3211,"children":3212},{"style":605},[3213],{"type":66,"value":668},{"type":60,"tag":592,"props":3215,"children":3216},{"class":594,"line":1587},[3217],{"type":60,"tag":592,"props":3218,"children":3219},{"emptyLinePlaceholder":777},[3220],{"type":66,"value":780},{"type":60,"tag":592,"props":3222,"children":3223},{"class":594,"line":1599},[3224,3229,3234,3239,3244],{"type":60,"tag":592,"props":3225,"children":3226},{"style":792},[3227],{"type":66,"value":3228},"type",{"type":60,"tag":592,"props":3230,"children":3231},{"style":993},[3232],{"type":66,"value":3233}," Db",{"type":60,"tag":592,"props":3235,"children":3236},{"style":605},[3237],{"type":66,"value":3238}," =",{"type":60,"tag":592,"props":3240,"children":3241},{"style":605},[3242],{"type":66,"value":3243}," typeof",{"type":60,"tag":592,"props":3245,"children":3246},{"style":611},[3247],{"type":66,"value":3248}," db\n",{"type":60,"tag":592,"props":3250,"children":3251},{"class":594,"line":1607},[3252],{"type":60,"tag":592,"props":3253,"children":3254},{"emptyLinePlaceholder":777},[3255],{"type":66,"value":780},{"type":60,"tag":592,"props":3257,"children":3258},{"class":594,"line":1657},[3259],{"type":60,"tag":592,"props":3260,"children":3262},{"style":3261},"--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic",[3263],{"type":66,"value":3264},"\u002F\u002F Records omit absent optionals so they compare cleanly against the reference\n",{"type":60,"tag":592,"props":3266,"children":3267},{"class":594,"line":1711},[3268],{"type":60,"tag":592,"props":3269,"children":3270},{"style":3261},[3271],{"type":66,"value":3272},"\u002F\u002F in-memory backend.\n",{"type":60,"tag":592,"props":3274,"children":3275},{"class":594,"line":1763},[3276,3281,3286,3290,3295,3299,3303,3308,3312,3317,3322,3327],{"type":60,"tag":592,"props":3277,"children":3278},{"style":792},[3279],{"type":66,"value":3280},"function",{"type":60,"tag":592,"props":3282,"children":3283},{"style":808},[3284],{"type":66,"value":3285}," mapRun",{"type":60,"tag":592,"props":3287,"children":3288},{"style":605},[3289],{"type":66,"value":815},{"type":60,"tag":592,"props":3291,"children":3292},{"style":2563},[3293],{"type":66,"value":3294},"row",{"type":60,"tag":592,"props":3296,"children":3297},{"style":605},[3298],{"type":66,"value":853},{"type":60,"tag":592,"props":3300,"children":3301},{"style":605},[3302],{"type":66,"value":3243},{"type":60,"tag":592,"props":3304,"children":3305},{"style":611},[3306],{"type":66,"value":3307}," chatRuns",{"type":60,"tag":592,"props":3309,"children":3310},{"style":605},[3311],{"type":66,"value":883},{"type":60,"tag":592,"props":3313,"children":3314},{"style":611},[3315],{"type":66,"value":3316},"$inferSelect",{"type":60,"tag":592,"props":3318,"children":3319},{"style":605},[3320],{"type":66,"value":3321},"):",{"type":60,"tag":592,"props":3323,"children":3324},{"style":993},[3325],{"type":66,"value":3326}," RunRecord",{"type":60,"tag":592,"props":3328,"children":3329},{"style":605},[3330],{"type":66,"value":838},{"type":60,"tag":592,"props":3332,"children":3333},{"class":594,"line":1815},[3334,3339],{"type":60,"tag":592,"props":3335,"children":3336},{"style":599},[3337],{"type":66,"value":3338},"  return",{"type":60,"tag":592,"props":3340,"children":3341},{"style":605},[3342],{"type":66,"value":838},{"type":60,"tag":592,"props":3344,"children":3345},{"class":594,"line":1914},[3346,3351,3355,3360,3364,3369],{"type":60,"tag":592,"props":3347,"children":3348},{"style":845},[3349],{"type":66,"value":3350},"    runId",{"type":60,"tag":592,"props":3352,"children":3353},{"style":605},[3354],{"type":66,"value":853},{"type":60,"tag":592,"props":3356,"children":3357},{"style":611},[3358],{"type":66,"value":3359}," row",{"type":60,"tag":592,"props":3361,"children":3362},{"style":605},[3363],{"type":66,"value":883},{"type":60,"tag":592,"props":3365,"children":3366},{"style":611},[3367],{"type":66,"value":3368},"runId",{"type":60,"tag":592,"props":3370,"children":3371},{"style":605},[3372],{"type":66,"value":898},{"type":60,"tag":592,"props":3374,"children":3375},{"class":594,"line":1968},[3376,3381,3385,3389,3393,3398],{"type":60,"tag":592,"props":3377,"children":3378},{"style":845},[3379],{"type":66,"value":3380},"    threadId",{"type":60,"tag":592,"props":3382,"children":3383},{"style":605},[3384],{"type":66,"value":853},{"type":60,"tag":592,"props":3386,"children":3387},{"style":611},[3388],{"type":66,"value":3359},{"type":60,"tag":592,"props":3390,"children":3391},{"style":605},[3392],{"type":66,"value":883},{"type":60,"tag":592,"props":3394,"children":3395},{"style":611},[3396],{"type":66,"value":3397},"threadId",{"type":60,"tag":592,"props":3399,"children":3400},{"style":605},[3401],{"type":66,"value":898},{"type":60,"tag":592,"props":3403,"children":3404},{"class":594,"line":2010},[3405,3410,3414,3418,3422,3426],{"type":60,"tag":592,"props":3406,"children":3407},{"style":845},[3408],{"type":66,"value":3409},"    status",{"type":60,"tag":592,"props":3411,"children":3412},{"style":605},[3413],{"type":66,"value":853},{"type":60,"tag":592,"props":3415,"children":3416},{"style":611},[3417],{"type":66,"value":3359},{"type":60,"tag":592,"props":3419,"children":3420},{"style":605},[3421],{"type":66,"value":883},{"type":60,"tag":592,"props":3423,"children":3424},{"style":611},[3425],{"type":66,"value":1297},{"type":60,"tag":592,"props":3427,"children":3428},{"style":605},[3429],{"type":66,"value":898},{"type":60,"tag":592,"props":3431,"children":3432},{"class":594,"line":2080},[3433,3438,3442,3446,3450,3455],{"type":60,"tag":592,"props":3434,"children":3435},{"style":845},[3436],{"type":66,"value":3437},"    startedAt",{"type":60,"tag":592,"props":3439,"children":3440},{"style":605},[3441],{"type":66,"value":853},{"type":60,"tag":592,"props":3443,"children":3444},{"style":611},[3445],{"type":66,"value":3359},{"type":60,"tag":592,"props":3447,"children":3448},{"style":605},[3449],{"type":66,"value":883},{"type":60,"tag":592,"props":3451,"children":3452},{"style":611},[3453],{"type":66,"value":3454},"startedAt",{"type":60,"tag":592,"props":3456,"children":3457},{"style":605},[3458],{"type":66,"value":898},{"type":60,"tag":592,"props":3460,"children":3461},{"class":594,"line":2127},[3462,3467,3471,3475,3479,3484,3489,3494,3499,3503,3508,3512,3516,3520,3524,3528,3533,3538,3542],{"type":60,"tag":592,"props":3463,"children":3464},{"style":605},[3465],{"type":66,"value":3466},"    ...",{"type":60,"tag":592,"props":3468,"children":3469},{"style":845},[3470],{"type":66,"value":815},{"type":60,"tag":592,"props":3472,"children":3473},{"style":611},[3474],{"type":66,"value":3294},{"type":60,"tag":592,"props":3476,"children":3477},{"style":605},[3478],{"type":66,"value":883},{"type":60,"tag":592,"props":3480,"children":3481},{"style":611},[3482],{"type":66,"value":3483},"finishedAt",{"type":60,"tag":592,"props":3485,"children":3486},{"style":605},[3487],{"type":66,"value":3488}," !=",{"type":60,"tag":592,"props":3490,"children":3491},{"style":605},[3492],{"type":66,"value":3493}," null",{"type":60,"tag":592,"props":3495,"children":3496},{"style":605},[3497],{"type":66,"value":3498}," ?",{"type":60,"tag":592,"props":3500,"children":3501},{"style":605},[3502],{"type":66,"value":608},{"type":60,"tag":592,"props":3504,"children":3505},{"style":845},[3506],{"type":66,"value":3507}," finishedAt",{"type":60,"tag":592,"props":3509,"children":3510},{"style":605},[3511],{"type":66,"value":853},{"type":60,"tag":592,"props":3513,"children":3514},{"style":611},[3515],{"type":66,"value":3359},{"type":60,"tag":592,"props":3517,"children":3518},{"style":605},[3519],{"type":66,"value":883},{"type":60,"tag":592,"props":3521,"children":3522},{"style":611},[3523],{"type":66,"value":3483},{"type":60,"tag":592,"props":3525,"children":3526},{"style":605},[3527],{"type":66,"value":647},{"type":60,"tag":592,"props":3529,"children":3530},{"style":605},[3531],{"type":66,"value":3532}," :",{"type":60,"tag":592,"props":3534,"children":3535},{"style":605},[3536],{"type":66,"value":3537}," {}",{"type":60,"tag":592,"props":3539,"children":3540},{"style":845},[3541],{"type":66,"value":367},{"type":60,"tag":592,"props":3543,"children":3544},{"style":605},[3545],{"type":66,"value":898},{"type":60,"tag":592,"props":3547,"children":3548},{"class":594,"line":2147},[3549,3553,3557,3561,3565,3569,3573,3577,3581,3585,3590,3594,3598,3602,3606,3610,3614,3618,3622],{"type":60,"tag":592,"props":3550,"children":3551},{"style":605},[3552],{"type":66,"value":3466},{"type":60,"tag":592,"props":3554,"children":3555},{"style":845},[3556],{"type":66,"value":815},{"type":60,"tag":592,"props":3558,"children":3559},{"style":611},[3560],{"type":66,"value":3294},{"type":60,"tag":592,"props":3562,"children":3563},{"style":605},[3564],{"type":66,"value":883},{"type":60,"tag":592,"props":3566,"children":3567},{"style":611},[3568],{"type":66,"value":1473},{"type":60,"tag":592,"props":3570,"children":3571},{"style":605},[3572],{"type":66,"value":3488},{"type":60,"tag":592,"props":3574,"children":3575},{"style":605},[3576],{"type":66,"value":3493},{"type":60,"tag":592,"props":3578,"children":3579},{"style":605},[3580],{"type":66,"value":3498},{"type":60,"tag":592,"props":3582,"children":3583},{"style":605},[3584],{"type":66,"value":608},{"type":60,"tag":592,"props":3586,"children":3587},{"style":845},[3588],{"type":66,"value":3589}," error",{"type":60,"tag":592,"props":3591,"children":3592},{"style":605},[3593],{"type":66,"value":853},{"type":60,"tag":592,"props":3595,"children":3596},{"style":611},[3597],{"type":66,"value":3359},{"type":60,"tag":592,"props":3599,"children":3600},{"style":605},[3601],{"type":66,"value":883},{"type":60,"tag":592,"props":3603,"children":3604},{"style":611},[3605],{"type":66,"value":1473},{"type":60,"tag":592,"props":3607,"children":3608},{"style":605},[3609],{"type":66,"value":647},{"type":60,"tag":592,"props":3611,"children":3612},{"style":605},[3613],{"type":66,"value":3532},{"type":60,"tag":592,"props":3615,"children":3616},{"style":605},[3617],{"type":66,"value":3537},{"type":60,"tag":592,"props":3619,"children":3620},{"style":845},[3621],{"type":66,"value":367},{"type":60,"tag":592,"props":3623,"children":3624},{"style":605},[3625],{"type":66,"value":898},{"type":60,"tag":592,"props":3627,"children":3628},{"class":594,"line":2246},[3629,3633,3637,3641,3645,3650,3654,3658,3662,3666,3671,3675,3679,3683,3687,3691,3695,3699,3703],{"type":60,"tag":592,"props":3630,"children":3631},{"style":605},[3632],{"type":66,"value":3466},{"type":60,"tag":592,"props":3634,"children":3635},{"style":845},[3636],{"type":66,"value":815},{"type":60,"tag":592,"props":3638,"children":3639},{"style":611},[3640],{"type":66,"value":3294},{"type":60,"tag":592,"props":3642,"children":3643},{"style":605},[3644],{"type":66,"value":883},{"type":60,"tag":592,"props":3646,"children":3647},{"style":611},[3648],{"type":66,"value":3649},"usageJson",{"type":60,"tag":592,"props":3651,"children":3652},{"style":605},[3653],{"type":66,"value":3488},{"type":60,"tag":592,"props":3655,"children":3656},{"style":605},[3657],{"type":66,"value":3493},{"type":60,"tag":592,"props":3659,"children":3660},{"style":605},[3661],{"type":66,"value":3498},{"type":60,"tag":592,"props":3663,"children":3664},{"style":605},[3665],{"type":66,"value":608},{"type":60,"tag":592,"props":3667,"children":3668},{"style":845},[3669],{"type":66,"value":3670}," usage",{"type":60,"tag":592,"props":3672,"children":3673},{"style":605},[3674],{"type":66,"value":853},{"type":60,"tag":592,"props":3676,"children":3677},{"style":611},[3678],{"type":66,"value":3359},{"type":60,"tag":592,"props":3680,"children":3681},{"style":605},[3682],{"type":66,"value":883},{"type":60,"tag":592,"props":3684,"children":3685},{"style":611},[3686],{"type":66,"value":3649},{"type":60,"tag":592,"props":3688,"children":3689},{"style":605},[3690],{"type":66,"value":647},{"type":60,"tag":592,"props":3692,"children":3693},{"style":605},[3694],{"type":66,"value":3532},{"type":60,"tag":592,"props":3696,"children":3697},{"style":605},[3698],{"type":66,"value":3537},{"type":60,"tag":592,"props":3700,"children":3701},{"style":845},[3702],{"type":66,"value":367},{"type":60,"tag":592,"props":3704,"children":3705},{"style":605},[3706],{"type":66,"value":898},{"type":60,"tag":592,"props":3708,"children":3709},{"class":594,"line":2258},[3710],{"type":60,"tag":592,"props":3711,"children":3712},{"style":605},[3713],{"type":66,"value":3714},"  }\n",{"type":60,"tag":592,"props":3716,"children":3717},{"class":594,"line":2266},[3718],{"type":60,"tag":592,"props":3719,"children":3720},{"style":605},[3721],{"type":66,"value":3722},"}\n",{"type":60,"tag":592,"props":3724,"children":3725},{"class":594,"line":2296},[3726],{"type":60,"tag":592,"props":3727,"children":3728},{"emptyLinePlaceholder":777},[3729],{"type":66,"value":780},{"type":60,"tag":592,"props":3731,"children":3732},{"class":594,"line":2318},[3733,3737,3742],{"type":60,"tag":592,"props":3734,"children":3735},{"style":792},[3736],{"type":66,"value":3280},{"type":60,"tag":592,"props":3738,"children":3739},{"style":808},[3740],{"type":66,"value":3741}," mapInterrupt",{"type":60,"tag":592,"props":3743,"children":3744},{"style":605},[3745],{"type":66,"value":2293},{"type":60,"tag":592,"props":3747,"children":3748},{"class":594,"line":2327},[3749,3754,3758,3762,3767,3771,3775],{"type":60,"tag":592,"props":3750,"children":3751},{"style":2563},[3752],{"type":66,"value":3753},"  row",{"type":60,"tag":592,"props":3755,"children":3756},{"style":605},[3757],{"type":66,"value":853},{"type":60,"tag":592,"props":3759,"children":3760},{"style":605},[3761],{"type":66,"value":3243},{"type":60,"tag":592,"props":3763,"children":3764},{"style":611},[3765],{"type":66,"value":3766}," chatInterrupts",{"type":60,"tag":592,"props":3768,"children":3769},{"style":605},[3770],{"type":66,"value":883},{"type":60,"tag":592,"props":3772,"children":3773},{"style":611},[3774],{"type":66,"value":3316},{"type":60,"tag":592,"props":3776,"children":3777},{"style":605},[3778],{"type":66,"value":898},{"type":60,"tag":592,"props":3780,"children":3781},{"class":594,"line":2381},[3782,3786,3790],{"type":60,"tag":592,"props":3783,"children":3784},{"style":605},[3785],{"type":66,"value":3321},{"type":60,"tag":592,"props":3787,"children":3788},{"style":993},[3789],{"type":66,"value":741},{"type":60,"tag":592,"props":3791,"children":3792},{"style":605},[3793],{"type":66,"value":838},{"type":60,"tag":592,"props":3795,"children":3796},{"class":594,"line":2435},[3797,3801],{"type":60,"tag":592,"props":3798,"children":3799},{"style":599},[3800],{"type":66,"value":3338},{"type":60,"tag":592,"props":3802,"children":3803},{"style":605},[3804],{"type":66,"value":838},{"type":60,"tag":592,"props":3806,"children":3807},{"class":594,"line":2545},[3808,3813,3817,3821,3825,3830],{"type":60,"tag":592,"props":3809,"children":3810},{"style":845},[3811],{"type":66,"value":3812},"    interruptId",{"type":60,"tag":592,"props":3814,"children":3815},{"style":605},[3816],{"type":66,"value":853},{"type":60,"tag":592,"props":3818,"children":3819},{"style":611},[3820],{"type":66,"value":3359},{"type":60,"tag":592,"props":3822,"children":3823},{"style":605},[3824],{"type":66,"value":883},{"type":60,"tag":592,"props":3826,"children":3827},{"style":611},[3828],{"type":66,"value":3829},"interruptId",{"type":60,"tag":592,"props":3831,"children":3832},{"style":605},[3833],{"type":66,"value":898},{"type":60,"tag":592,"props":3835,"children":3836},{"class":594,"line":2554},[3837,3841,3845,3849,3853,3857],{"type":60,"tag":592,"props":3838,"children":3839},{"style":845},[3840],{"type":66,"value":3350},{"type":60,"tag":592,"props":3842,"children":3843},{"style":605},[3844],{"type":66,"value":853},{"type":60,"tag":592,"props":3846,"children":3847},{"style":611},[3848],{"type":66,"value":3359},{"type":60,"tag":592,"props":3850,"children":3851},{"style":605},[3852],{"type":66,"value":883},{"type":60,"tag":592,"props":3854,"children":3855},{"style":611},[3856],{"type":66,"value":3368},{"type":60,"tag":592,"props":3858,"children":3859},{"style":605},[3860],{"type":66,"value":898},{"type":60,"tag":592,"props":3862,"children":3863},{"class":594,"line":2648},[3864,3868,3872,3876,3880,3884],{"type":60,"tag":592,"props":3865,"children":3866},{"style":845},[3867],{"type":66,"value":3380},{"type":60,"tag":592,"props":3869,"children":3870},{"style":605},[3871],{"type":66,"value":853},{"type":60,"tag":592,"props":3873,"children":3874},{"style":611},[3875],{"type":66,"value":3359},{"type":60,"tag":592,"props":3877,"children":3878},{"style":605},[3879],{"type":66,"value":883},{"type":60,"tag":592,"props":3881,"children":3882},{"style":611},[3883],{"type":66,"value":3397},{"type":60,"tag":592,"props":3885,"children":3886},{"style":605},[3887],{"type":66,"value":898},{"type":60,"tag":592,"props":3889,"children":3891},{"class":594,"line":3890},45,[3892,3896,3900,3904,3908,3912],{"type":60,"tag":592,"props":3893,"children":3894},{"style":845},[3895],{"type":66,"value":3409},{"type":60,"tag":592,"props":3897,"children":3898},{"style":605},[3899],{"type":66,"value":853},{"type":60,"tag":592,"props":3901,"children":3902},{"style":611},[3903],{"type":66,"value":3359},{"type":60,"tag":592,"props":3905,"children":3906},{"style":605},[3907],{"type":66,"value":883},{"type":60,"tag":592,"props":3909,"children":3910},{"style":611},[3911],{"type":66,"value":1297},{"type":60,"tag":592,"props":3913,"children":3914},{"style":605},[3915],{"type":66,"value":898},{"type":60,"tag":592,"props":3917,"children":3919},{"class":594,"line":3918},46,[3920,3925,3929,3933,3937,3942],{"type":60,"tag":592,"props":3921,"children":3922},{"style":845},[3923],{"type":66,"value":3924},"    requestedAt",{"type":60,"tag":592,"props":3926,"children":3927},{"style":605},[3928],{"type":66,"value":853},{"type":60,"tag":592,"props":3930,"children":3931},{"style":611},[3932],{"type":66,"value":3359},{"type":60,"tag":592,"props":3934,"children":3935},{"style":605},[3936],{"type":66,"value":883},{"type":60,"tag":592,"props":3938,"children":3939},{"style":611},[3940],{"type":66,"value":3941},"requestedAt",{"type":60,"tag":592,"props":3943,"children":3944},{"style":605},[3945],{"type":66,"value":898},{"type":60,"tag":592,"props":3947,"children":3949},{"class":594,"line":3948},47,[3950,3955,3959,3963,3967,3972],{"type":60,"tag":592,"props":3951,"children":3952},{"style":845},[3953],{"type":66,"value":3954},"    payload",{"type":60,"tag":592,"props":3956,"children":3957},{"style":605},[3958],{"type":66,"value":853},{"type":60,"tag":592,"props":3960,"children":3961},{"style":611},[3962],{"type":66,"value":3359},{"type":60,"tag":592,"props":3964,"children":3965},{"style":605},[3966],{"type":66,"value":883},{"type":60,"tag":592,"props":3968,"children":3969},{"style":611},[3970],{"type":66,"value":3971},"payloadJson",{"type":60,"tag":592,"props":3973,"children":3974},{"style":605},[3975],{"type":66,"value":898},{"type":60,"tag":592,"props":3977,"children":3979},{"class":594,"line":3978},48,[3980,3984,3988,3992,3996,4001,4005,4009,4013,4017,4022,4026,4030,4034,4038,4042,4046,4050,4054],{"type":60,"tag":592,"props":3981,"children":3982},{"style":605},[3983],{"type":66,"value":3466},{"type":60,"tag":592,"props":3985,"children":3986},{"style":845},[3987],{"type":66,"value":815},{"type":60,"tag":592,"props":3989,"children":3990},{"style":611},[3991],{"type":66,"value":3294},{"type":60,"tag":592,"props":3993,"children":3994},{"style":605},[3995],{"type":66,"value":883},{"type":60,"tag":592,"props":3997,"children":3998},{"style":611},[3999],{"type":66,"value":4000},"resolvedAt",{"type":60,"tag":592,"props":4002,"children":4003},{"style":605},[4004],{"type":66,"value":3488},{"type":60,"tag":592,"props":4006,"children":4007},{"style":605},[4008],{"type":66,"value":3493},{"type":60,"tag":592,"props":4010,"children":4011},{"style":605},[4012],{"type":66,"value":3498},{"type":60,"tag":592,"props":4014,"children":4015},{"style":605},[4016],{"type":66,"value":608},{"type":60,"tag":592,"props":4018,"children":4019},{"style":845},[4020],{"type":66,"value":4021}," resolvedAt",{"type":60,"tag":592,"props":4023,"children":4024},{"style":605},[4025],{"type":66,"value":853},{"type":60,"tag":592,"props":4027,"children":4028},{"style":611},[4029],{"type":66,"value":3359},{"type":60,"tag":592,"props":4031,"children":4032},{"style":605},[4033],{"type":66,"value":883},{"type":60,"tag":592,"props":4035,"children":4036},{"style":611},[4037],{"type":66,"value":4000},{"type":60,"tag":592,"props":4039,"children":4040},{"style":605},[4041],{"type":66,"value":647},{"type":60,"tag":592,"props":4043,"children":4044},{"style":605},[4045],{"type":66,"value":3532},{"type":60,"tag":592,"props":4047,"children":4048},{"style":605},[4049],{"type":66,"value":3537},{"type":60,"tag":592,"props":4051,"children":4052},{"style":845},[4053],{"type":66,"value":367},{"type":60,"tag":592,"props":4055,"children":4056},{"style":605},[4057],{"type":66,"value":898},{"type":60,"tag":592,"props":4059,"children":4061},{"class":594,"line":4060},49,[4062,4066,4070,4074,4078,4083,4087,4091,4095,4099,4104,4108,4112,4116,4120,4124,4128,4132,4136],{"type":60,"tag":592,"props":4063,"children":4064},{"style":605},[4065],{"type":66,"value":3466},{"type":60,"tag":592,"props":4067,"children":4068},{"style":845},[4069],{"type":66,"value":815},{"type":60,"tag":592,"props":4071,"children":4072},{"style":611},[4073],{"type":66,"value":3294},{"type":60,"tag":592,"props":4075,"children":4076},{"style":605},[4077],{"type":66,"value":883},{"type":60,"tag":592,"props":4079,"children":4080},{"style":611},[4081],{"type":66,"value":4082},"responseJson",{"type":60,"tag":592,"props":4084,"children":4085},{"style":605},[4086],{"type":66,"value":3488},{"type":60,"tag":592,"props":4088,"children":4089},{"style":605},[4090],{"type":66,"value":3493},{"type":60,"tag":592,"props":4092,"children":4093},{"style":605},[4094],{"type":66,"value":3498},{"type":60,"tag":592,"props":4096,"children":4097},{"style":605},[4098],{"type":66,"value":608},{"type":60,"tag":592,"props":4100,"children":4101},{"style":845},[4102],{"type":66,"value":4103}," response",{"type":60,"tag":592,"props":4105,"children":4106},{"style":605},[4107],{"type":66,"value":853},{"type":60,"tag":592,"props":4109,"children":4110},{"style":611},[4111],{"type":66,"value":3359},{"type":60,"tag":592,"props":4113,"children":4114},{"style":605},[4115],{"type":66,"value":883},{"type":60,"tag":592,"props":4117,"children":4118},{"style":611},[4119],{"type":66,"value":4082},{"type":60,"tag":592,"props":4121,"children":4122},{"style":605},[4123],{"type":66,"value":647},{"type":60,"tag":592,"props":4125,"children":4126},{"style":605},[4127],{"type":66,"value":3532},{"type":60,"tag":592,"props":4129,"children":4130},{"style":605},[4131],{"type":66,"value":3537},{"type":60,"tag":592,"props":4133,"children":4134},{"style":845},[4135],{"type":66,"value":367},{"type":60,"tag":592,"props":4137,"children":4138},{"style":605},[4139],{"type":66,"value":898},{"type":60,"tag":592,"props":4141,"children":4143},{"class":594,"line":4142},50,[4144],{"type":60,"tag":592,"props":4145,"children":4146},{"style":605},[4147],{"type":66,"value":3714},{"type":60,"tag":592,"props":4149,"children":4151},{"class":594,"line":4150},51,[4152],{"type":60,"tag":592,"props":4153,"children":4154},{"style":605},[4155],{"type":66,"value":3722},{"type":60,"tag":592,"props":4157,"children":4159},{"class":594,"line":4158},52,[4160],{"type":60,"tag":592,"props":4161,"children":4162},{"emptyLinePlaceholder":777},[4163],{"type":66,"value":780},{"type":60,"tag":592,"props":4165,"children":4167},{"class":594,"line":4166},53,[4168,4172,4177,4181,4185,4189,4193,4197,4202],{"type":60,"tag":592,"props":4169,"children":4170},{"style":792},[4171],{"type":66,"value":3280},{"type":60,"tag":592,"props":4173,"children":4174},{"style":808},[4175],{"type":66,"value":4176}," createMessageStore",{"type":60,"tag":592,"props":4178,"children":4179},{"style":605},[4180],{"type":66,"value":815},{"type":60,"tag":592,"props":4182,"children":4183},{"style":2563},[4184],{"type":66,"value":104},{"type":60,"tag":592,"props":4186,"children":4187},{"style":605},[4188],{"type":66,"value":853},{"type":60,"tag":592,"props":4190,"children":4191},{"style":993},[4192],{"type":66,"value":3233},{"type":60,"tag":592,"props":4194,"children":4195},{"style":605},[4196],{"type":66,"value":3321},{"type":60,"tag":592,"props":4198,"children":4199},{"style":993},[4200],{"type":66,"value":4201}," MessageStore",{"type":60,"tag":592,"props":4203,"children":4204},{"style":605},[4205],{"type":66,"value":838},{"type":60,"tag":592,"props":4207,"children":4209},{"class":594,"line":4208},54,[4210,4214],{"type":60,"tag":592,"props":4211,"children":4212},{"style":599},[4213],{"type":66,"value":3338},{"type":60,"tag":592,"props":4215,"children":4216},{"style":605},[4217],{"type":66,"value":838},{"type":60,"tag":592,"props":4219,"children":4221},{"class":594,"line":4220},55,[4222,4227,4232,4236,4240,4244],{"type":60,"tag":592,"props":4223,"children":4224},{"style":792},[4225],{"type":66,"value":4226},"    async",{"type":60,"tag":592,"props":4228,"children":4229},{"style":845},[4230],{"type":66,"value":4231}," loadThread",{"type":60,"tag":592,"props":4233,"children":4234},{"style":605},[4235],{"type":66,"value":815},{"type":60,"tag":592,"props":4237,"children":4238},{"style":2563},[4239],{"type":66,"value":3397},{"type":60,"tag":592,"props":4241,"children":4242},{"style":605},[4243],{"type":66,"value":367},{"type":60,"tag":592,"props":4245,"children":4246},{"style":605},[4247],{"type":66,"value":838},{"type":60,"tag":592,"props":4249,"children":4251},{"class":594,"line":4250},56,[4252,4257,4262,4266,4271],{"type":60,"tag":592,"props":4253,"children":4254},{"style":792},[4255],{"type":66,"value":4256},"      const",{"type":60,"tag":592,"props":4258,"children":4259},{"style":611},[4260],{"type":66,"value":4261}," rows",{"type":60,"tag":592,"props":4263,"children":4264},{"style":605},[4265],{"type":66,"value":3238},{"type":60,"tag":592,"props":4267,"children":4268},{"style":599},[4269],{"type":66,"value":4270}," await",{"type":60,"tag":592,"props":4272,"children":4273},{"style":611},[4274],{"type":66,"value":3248},{"type":60,"tag":592,"props":4276,"children":4278},{"class":594,"line":4277},57,[4279,4284,4289,4293,4297,4302,4306,4311,4315,4320,4324],{"type":60,"tag":592,"props":4280,"children":4281},{"style":605},[4282],{"type":66,"value":4283},"        .",{"type":60,"tag":592,"props":4285,"children":4286},{"style":808},[4287],{"type":66,"value":4288},"select",{"type":60,"tag":592,"props":4290,"children":4291},{"style":845},[4292],{"type":66,"value":815},{"type":60,"tag":592,"props":4294,"children":4295},{"style":605},[4296],{"type":66,"value":2592},{"type":60,"tag":592,"props":4298,"children":4299},{"style":845},[4300],{"type":66,"value":4301}," messagesJson",{"type":60,"tag":592,"props":4303,"children":4304},{"style":605},[4305],{"type":66,"value":853},{"type":60,"tag":592,"props":4307,"children":4308},{"style":611},[4309],{"type":66,"value":4310}," chatThreads",{"type":60,"tag":592,"props":4312,"children":4313},{"style":605},[4314],{"type":66,"value":883},{"type":60,"tag":592,"props":4316,"children":4317},{"style":611},[4318],{"type":66,"value":4319},"messagesJson",{"type":60,"tag":592,"props":4321,"children":4322},{"style":605},[4323],{"type":66,"value":647},{"type":60,"tag":592,"props":4325,"children":4326},{"style":845},[4327],{"type":66,"value":971},{"type":60,"tag":592,"props":4329,"children":4331},{"class":594,"line":4330},58,[4332,4336,4341,4345,4350],{"type":60,"tag":592,"props":4333,"children":4334},{"style":605},[4335],{"type":66,"value":4283},{"type":60,"tag":592,"props":4337,"children":4338},{"style":808},[4339],{"type":66,"value":4340},"from",{"type":60,"tag":592,"props":4342,"children":4343},{"style":845},[4344],{"type":66,"value":815},{"type":60,"tag":592,"props":4346,"children":4347},{"style":611},[4348],{"type":66,"value":4349},"chatThreads",{"type":60,"tag":592,"props":4351,"children":4352},{"style":845},[4353],{"type":66,"value":971},{"type":60,"tag":592,"props":4355,"children":4357},{"class":594,"line":4356},59,[4358,4362,4367,4371,4376,4380,4384,4388,4392,4396,4401],{"type":60,"tag":592,"props":4359,"children":4360},{"style":605},[4361],{"type":66,"value":4283},{"type":60,"tag":592,"props":4363,"children":4364},{"style":808},[4365],{"type":66,"value":4366},"where",{"type":60,"tag":592,"props":4368,"children":4369},{"style":845},[4370],{"type":66,"value":815},{"type":60,"tag":592,"props":4372,"children":4373},{"style":808},[4374],{"type":66,"value":4375},"eq",{"type":60,"tag":592,"props":4377,"children":4378},{"style":845},[4379],{"type":66,"value":815},{"type":60,"tag":592,"props":4381,"children":4382},{"style":611},[4383],{"type":66,"value":4349},{"type":60,"tag":592,"props":4385,"children":4386},{"style":605},[4387],{"type":66,"value":883},{"type":60,"tag":592,"props":4389,"children":4390},{"style":611},[4391],{"type":66,"value":3397},{"type":60,"tag":592,"props":4393,"children":4394},{"style":605},[4395],{"type":66,"value":619},{"type":60,"tag":592,"props":4397,"children":4398},{"style":611},[4399],{"type":66,"value":4400}," threadId",{"type":60,"tag":592,"props":4402,"children":4403},{"style":845},[4404],{"type":66,"value":4405},"))\n",{"type":60,"tag":592,"props":4407,"children":4409},{"class":594,"line":4408},60,[4410,4414,4419,4423,4429],{"type":60,"tag":592,"props":4411,"children":4412},{"style":605},[4413],{"type":66,"value":4283},{"type":60,"tag":592,"props":4415,"children":4416},{"style":808},[4417],{"type":66,"value":4418},"limit",{"type":60,"tag":592,"props":4420,"children":4421},{"style":845},[4422],{"type":66,"value":815},{"type":60,"tag":592,"props":4424,"children":4426},{"style":4425},"--shiki-light:#F76D47;--shiki-default:#F78C6C;--shiki-dark:#F78C6C",[4427],{"type":66,"value":4428},"1",{"type":60,"tag":592,"props":4430,"children":4431},{"style":845},[4432],{"type":66,"value":971},{"type":60,"tag":592,"props":4434,"children":4436},{"class":594,"line":4435},61,[4437],{"type":60,"tag":592,"props":4438,"children":4439},{"style":3261},[4440],{"type":66,"value":4441},"      \u002F\u002F Unknown thread is [], never null.\n",{"type":60,"tag":592,"props":4443,"children":4445},{"class":594,"line":4444},62,[4446,4451,4455,4459,4464,4468,4473,4477,4482],{"type":60,"tag":592,"props":4447,"children":4448},{"style":599},[4449],{"type":66,"value":4450},"      return",{"type":60,"tag":592,"props":4452,"children":4453},{"style":611},[4454],{"type":66,"value":4261},{"type":60,"tag":592,"props":4456,"children":4457},{"style":845},[4458],{"type":66,"value":1870},{"type":60,"tag":592,"props":4460,"children":4461},{"style":4425},[4462],{"type":66,"value":4463},"0",{"type":60,"tag":592,"props":4465,"children":4466},{"style":845},[4467],{"type":66,"value":1887},{"type":60,"tag":592,"props":4469,"children":4470},{"style":605},[4471],{"type":66,"value":4472},"?.",{"type":60,"tag":592,"props":4474,"children":4475},{"style":611},[4476],{"type":66,"value":4319},{"type":60,"tag":592,"props":4478,"children":4479},{"style":605},[4480],{"type":66,"value":4481}," ??",{"type":60,"tag":592,"props":4483,"children":4484},{"style":845},[4485],{"type":66,"value":4486}," []\n",{"type":60,"tag":592,"props":4488,"children":4490},{"class":594,"line":4489},63,[4491],{"type":60,"tag":592,"props":4492,"children":4493},{"style":605},[4494],{"type":66,"value":4495},"    },\n",{"type":60,"tag":592,"props":4497,"children":4499},{"class":594,"line":4498},64,[4500],{"type":60,"tag":592,"props":4501,"children":4502},{"style":3261},[4503],{"type":66,"value":4504},"    \u002F\u002F Full overwrite — `messages` is the complete authoritative transcript.\n",{"type":60,"tag":592,"props":4506,"children":4508},{"class":594,"line":4507},65,[4509,4513,4518,4522,4526,4530,4535,4539],{"type":60,"tag":592,"props":4510,"children":4511},{"style":792},[4512],{"type":66,"value":4226},{"type":60,"tag":592,"props":4514,"children":4515},{"style":845},[4516],{"type":66,"value":4517}," saveThread",{"type":60,"tag":592,"props":4519,"children":4520},{"style":605},[4521],{"type":66,"value":815},{"type":60,"tag":592,"props":4523,"children":4524},{"style":2563},[4525],{"type":66,"value":3397},{"type":60,"tag":592,"props":4527,"children":4528},{"style":605},[4529],{"type":66,"value":619},{"type":60,"tag":592,"props":4531,"children":4532},{"style":2563},[4533],{"type":66,"value":4534}," messages",{"type":60,"tag":592,"props":4536,"children":4537},{"style":605},[4538],{"type":66,"value":367},{"type":60,"tag":592,"props":4540,"children":4541},{"style":605},[4542],{"type":66,"value":838},{"type":60,"tag":592,"props":4544,"children":4546},{"class":594,"line":4545},66,[4547,4551,4556,4560,4565,4569,4574],{"type":60,"tag":592,"props":4548,"children":4549},{"style":792},[4550],{"type":66,"value":4256},{"type":60,"tag":592,"props":4552,"children":4553},{"style":611},[4554],{"type":66,"value":4555}," updatedAt",{"type":60,"tag":592,"props":4557,"children":4558},{"style":605},[4559],{"type":66,"value":3238},{"type":60,"tag":592,"props":4561,"children":4562},{"style":611},[4563],{"type":66,"value":4564}," Date",{"type":60,"tag":592,"props":4566,"children":4567},{"style":605},[4568],{"type":66,"value":883},{"type":60,"tag":592,"props":4570,"children":4571},{"style":808},[4572],{"type":66,"value":4573},"now",{"type":60,"tag":592,"props":4575,"children":4576},{"style":845},[4577],{"type":66,"value":1015},{"type":60,"tag":592,"props":4579,"children":4581},{"class":594,"line":4580},67,[4582,4587],{"type":60,"tag":592,"props":4583,"children":4584},{"style":599},[4585],{"type":66,"value":4586},"      await",{"type":60,"tag":592,"props":4588,"children":4589},{"style":611},[4590],{"type":66,"value":3248},{"type":60,"tag":592,"props":4592,"children":4594},{"class":594,"line":4593},68,[4595,4599,4604,4608,4612],{"type":60,"tag":592,"props":4596,"children":4597},{"style":605},[4598],{"type":66,"value":4283},{"type":60,"tag":592,"props":4600,"children":4601},{"style":808},[4602],{"type":66,"value":4603},"insert",{"type":60,"tag":592,"props":4605,"children":4606},{"style":845},[4607],{"type":66,"value":815},{"type":60,"tag":592,"props":4609,"children":4610},{"style":611},[4611],{"type":66,"value":4349},{"type":60,"tag":592,"props":4613,"children":4614},{"style":845},[4615],{"type":66,"value":971},{"type":60,"tag":592,"props":4617,"children":4619},{"class":594,"line":4618},69,[4620,4624,4629,4633,4637,4641,4645,4649,4653,4657,4661,4665,4669],{"type":60,"tag":592,"props":4621,"children":4622},{"style":605},[4623],{"type":66,"value":4283},{"type":60,"tag":592,"props":4625,"children":4626},{"style":808},[4627],{"type":66,"value":4628},"values",{"type":60,"tag":592,"props":4630,"children":4631},{"style":845},[4632],{"type":66,"value":815},{"type":60,"tag":592,"props":4634,"children":4635},{"style":605},[4636],{"type":66,"value":2592},{"type":60,"tag":592,"props":4638,"children":4639},{"style":611},[4640],{"type":66,"value":4400},{"type":60,"tag":592,"props":4642,"children":4643},{"style":605},[4644],{"type":66,"value":619},{"type":60,"tag":592,"props":4646,"children":4647},{"style":845},[4648],{"type":66,"value":4301},{"type":60,"tag":592,"props":4650,"children":4651},{"style":605},[4652],{"type":66,"value":853},{"type":60,"tag":592,"props":4654,"children":4655},{"style":611},[4656],{"type":66,"value":4534},{"type":60,"tag":592,"props":4658,"children":4659},{"style":605},[4660],{"type":66,"value":619},{"type":60,"tag":592,"props":4662,"children":4663},{"style":611},[4664],{"type":66,"value":4555},{"type":60,"tag":592,"props":4666,"children":4667},{"style":605},[4668],{"type":66,"value":647},{"type":60,"tag":592,"props":4670,"children":4671},{"style":845},[4672],{"type":66,"value":971},{"type":60,"tag":592,"props":4674,"children":4676},{"class":594,"line":4675},70,[4677,4681,4685,4689],{"type":60,"tag":592,"props":4678,"children":4679},{"style":605},[4680],{"type":66,"value":4283},{"type":60,"tag":592,"props":4682,"children":4683},{"style":808},[4684],{"type":66,"value":2792},{"type":60,"tag":592,"props":4686,"children":4687},{"style":845},[4688],{"type":66,"value":815},{"type":60,"tag":592,"props":4690,"children":4691},{"style":605},[4692],{"type":66,"value":4693},"{\n",{"type":60,"tag":592,"props":4695,"children":4697},{"class":594,"line":4696},71,[4698,4703,4707,4711,4715,4719],{"type":60,"tag":592,"props":4699,"children":4700},{"style":845},[4701],{"type":66,"value":4702},"          target",{"type":60,"tag":592,"props":4704,"children":4705},{"style":605},[4706],{"type":66,"value":853},{"type":60,"tag":592,"props":4708,"children":4709},{"style":611},[4710],{"type":66,"value":4310},{"type":60,"tag":592,"props":4712,"children":4713},{"style":605},[4714],{"type":66,"value":883},{"type":60,"tag":592,"props":4716,"children":4717},{"style":611},[4718],{"type":66,"value":3397},{"type":60,"tag":592,"props":4720,"children":4721},{"style":605},[4722],{"type":66,"value":898},{"type":60,"tag":592,"props":4724,"children":4726},{"class":594,"line":4725},72,[4727,4732,4736,4740,4744,4748,4752,4756,4760],{"type":60,"tag":592,"props":4728,"children":4729},{"style":845},[4730],{"type":66,"value":4731},"          set",{"type":60,"tag":592,"props":4733,"children":4734},{"style":605},[4735],{"type":66,"value":853},{"type":60,"tag":592,"props":4737,"children":4738},{"style":605},[4739],{"type":66,"value":608},{"type":60,"tag":592,"props":4741,"children":4742},{"style":845},[4743],{"type":66,"value":4301},{"type":60,"tag":592,"props":4745,"children":4746},{"style":605},[4747],{"type":66,"value":853},{"type":60,"tag":592,"props":4749,"children":4750},{"style":611},[4751],{"type":66,"value":4534},{"type":60,"tag":592,"props":4753,"children":4754},{"style":605},[4755],{"type":66,"value":619},{"type":60,"tag":592,"props":4757,"children":4758},{"style":611},[4759],{"type":66,"value":4555},{"type":60,"tag":592,"props":4761,"children":4762},{"style":605},[4763],{"type":66,"value":4764}," },\n",{"type":60,"tag":592,"props":4766,"children":4768},{"class":594,"line":4767},73,[4769,4774],{"type":60,"tag":592,"props":4770,"children":4771},{"style":605},[4772],{"type":66,"value":4773},"        }",{"type":60,"tag":592,"props":4775,"children":4776},{"style":845},[4777],{"type":66,"value":971},{"type":60,"tag":592,"props":4779,"children":4781},{"class":594,"line":4780},74,[4782],{"type":60,"tag":592,"props":4783,"children":4784},{"style":605},[4785],{"type":66,"value":4495},{"type":60,"tag":592,"props":4787,"children":4789},{"class":594,"line":4788},75,[4790],{"type":60,"tag":592,"props":4791,"children":4792},{"style":605},[4793],{"type":66,"value":3714},{"type":60,"tag":592,"props":4795,"children":4797},{"class":594,"line":4796},76,[4798],{"type":60,"tag":592,"props":4799,"children":4800},{"style":605},[4801],{"type":66,"value":3722},{"type":60,"tag":592,"props":4803,"children":4805},{"class":594,"line":4804},77,[4806],{"type":60,"tag":592,"props":4807,"children":4808},{"emptyLinePlaceholder":777},[4809],{"type":66,"value":780},{"type":60,"tag":592,"props":4811,"children":4813},{"class":594,"line":4812},78,[4814,4818,4823,4827,4831,4835,4839,4843,4848],{"type":60,"tag":592,"props":4815,"children":4816},{"style":792},[4817],{"type":66,"value":3280},{"type":60,"tag":592,"props":4819,"children":4820},{"style":808},[4821],{"type":66,"value":4822}," createRunStore",{"type":60,"tag":592,"props":4824,"children":4825},{"style":605},[4826],{"type":66,"value":815},{"type":60,"tag":592,"props":4828,"children":4829},{"style":2563},[4830],{"type":66,"value":104},{"type":60,"tag":592,"props":4832,"children":4833},{"style":605},[4834],{"type":66,"value":853},{"type":60,"tag":592,"props":4836,"children":4837},{"style":993},[4838],{"type":66,"value":3233},{"type":60,"tag":592,"props":4840,"children":4841},{"style":605},[4842],{"type":66,"value":3321},{"type":60,"tag":592,"props":4844,"children":4845},{"style":993},[4846],{"type":66,"value":4847}," RunStore",{"type":60,"tag":592,"props":4849,"children":4850},{"style":605},[4851],{"type":66,"value":838},{"type":60,"tag":592,"props":4853,"children":4855},{"class":594,"line":4854},79,[4856,4861,4866,4871,4875,4879,4883,4888,4892],{"type":60,"tag":592,"props":4857,"children":4858},{"style":792},[4859],{"type":66,"value":4860},"  async",{"type":60,"tag":592,"props":4862,"children":4863},{"style":792},[4864],{"type":66,"value":4865}," function",{"type":60,"tag":592,"props":4867,"children":4868},{"style":808},[4869],{"type":66,"value":4870}," get",{"type":60,"tag":592,"props":4872,"children":4873},{"style":605},[4874],{"type":66,"value":815},{"type":60,"tag":592,"props":4876,"children":4877},{"style":2563},[4878],{"type":66,"value":3368},{"type":60,"tag":592,"props":4880,"children":4881},{"style":605},[4882],{"type":66,"value":853},{"type":60,"tag":592,"props":4884,"children":4885},{"style":993},[4886],{"type":66,"value":4887}," string",{"type":60,"tag":592,"props":4889,"children":4890},{"style":605},[4891],{"type":66,"value":367},{"type":60,"tag":592,"props":4893,"children":4894},{"style":605},[4895],{"type":66,"value":838},{"type":60,"tag":592,"props":4897,"children":4899},{"class":594,"line":4898},80,[4900,4905,4909,4913,4917],{"type":60,"tag":592,"props":4901,"children":4902},{"style":792},[4903],{"type":66,"value":4904},"    const",{"type":60,"tag":592,"props":4906,"children":4907},{"style":611},[4908],{"type":66,"value":4261},{"type":60,"tag":592,"props":4910,"children":4911},{"style":605},[4912],{"type":66,"value":3238},{"type":60,"tag":592,"props":4914,"children":4915},{"style":599},[4916],{"type":66,"value":4270},{"type":60,"tag":592,"props":4918,"children":4919},{"style":611},[4920],{"type":66,"value":3248},{"type":60,"tag":592,"props":4922,"children":4924},{"class":594,"line":4923},81,[4925,4930,4934],{"type":60,"tag":592,"props":4926,"children":4927},{"style":605},[4928],{"type":66,"value":4929},"      .",{"type":60,"tag":592,"props":4931,"children":4932},{"style":808},[4933],{"type":66,"value":4288},{"type":60,"tag":592,"props":4935,"children":4936},{"style":845},[4937],{"type":66,"value":1015},{"type":60,"tag":592,"props":4939,"children":4941},{"class":594,"line":4940},82,[4942,4946,4950,4954,4959],{"type":60,"tag":592,"props":4943,"children":4944},{"style":605},[4945],{"type":66,"value":4929},{"type":60,"tag":592,"props":4947,"children":4948},{"style":808},[4949],{"type":66,"value":4340},{"type":60,"tag":592,"props":4951,"children":4952},{"style":845},[4953],{"type":66,"value":815},{"type":60,"tag":592,"props":4955,"children":4956},{"style":611},[4957],{"type":66,"value":4958},"chatRuns",{"type":60,"tag":592,"props":4960,"children":4961},{"style":845},[4962],{"type":66,"value":971},{"type":60,"tag":592,"props":4964,"children":4966},{"class":594,"line":4965},83,[4967,4971,4975,4979,4983,4987,4991,4995,4999,5003,5008],{"type":60,"tag":592,"props":4968,"children":4969},{"style":605},[4970],{"type":66,"value":4929},{"type":60,"tag":592,"props":4972,"children":4973},{"style":808},[4974],{"type":66,"value":4366},{"type":60,"tag":592,"props":4976,"children":4977},{"style":845},[4978],{"type":66,"value":815},{"type":60,"tag":592,"props":4980,"children":4981},{"style":808},[4982],{"type":66,"value":4375},{"type":60,"tag":592,"props":4984,"children":4985},{"style":845},[4986],{"type":66,"value":815},{"type":60,"tag":592,"props":4988,"children":4989},{"style":611},[4990],{"type":66,"value":4958},{"type":60,"tag":592,"props":4992,"children":4993},{"style":605},[4994],{"type":66,"value":883},{"type":60,"tag":592,"props":4996,"children":4997},{"style":611},[4998],{"type":66,"value":3368},{"type":60,"tag":592,"props":5000,"children":5001},{"style":605},[5002],{"type":66,"value":619},{"type":60,"tag":592,"props":5004,"children":5005},{"style":611},[5006],{"type":66,"value":5007}," runId",{"type":60,"tag":592,"props":5009,"children":5010},{"style":845},[5011],{"type":66,"value":4405},{"type":60,"tag":592,"props":5013,"children":5015},{"class":594,"line":5014},84,[5016,5020,5024,5028,5032],{"type":60,"tag":592,"props":5017,"children":5018},{"style":605},[5019],{"type":66,"value":4929},{"type":60,"tag":592,"props":5021,"children":5022},{"style":808},[5023],{"type":66,"value":4418},{"type":60,"tag":592,"props":5025,"children":5026},{"style":845},[5027],{"type":66,"value":815},{"type":60,"tag":592,"props":5029,"children":5030},{"style":4425},[5031],{"type":66,"value":4428},{"type":60,"tag":592,"props":5033,"children":5034},{"style":845},[5035],{"type":66,"value":971},{"type":60,"tag":592,"props":5037,"children":5039},{"class":594,"line":5038},85,[5040,5045,5049,5053,5057,5062,5067,5071,5075,5080,5084,5088,5093,5097],{"type":60,"tag":592,"props":5041,"children":5042},{"style":599},[5043],{"type":66,"value":5044},"    return",{"type":60,"tag":592,"props":5046,"children":5047},{"style":611},[5048],{"type":66,"value":4261},{"type":60,"tag":592,"props":5050,"children":5051},{"style":845},[5052],{"type":66,"value":1870},{"type":60,"tag":592,"props":5054,"children":5055},{"style":4425},[5056],{"type":66,"value":4463},{"type":60,"tag":592,"props":5058,"children":5059},{"style":845},[5060],{"type":66,"value":5061},"] ",{"type":60,"tag":592,"props":5063,"children":5064},{"style":605},[5065],{"type":66,"value":5066},"?",{"type":60,"tag":592,"props":5068,"children":5069},{"style":808},[5070],{"type":66,"value":3285},{"type":60,"tag":592,"props":5072,"children":5073},{"style":845},[5074],{"type":66,"value":815},{"type":60,"tag":592,"props":5076,"children":5077},{"style":611},[5078],{"type":66,"value":5079},"rows",{"type":60,"tag":592,"props":5081,"children":5082},{"style":845},[5083],{"type":66,"value":1870},{"type":60,"tag":592,"props":5085,"children":5086},{"style":4425},[5087],{"type":66,"value":4463},{"type":60,"tag":592,"props":5089,"children":5090},{"style":845},[5091],{"type":66,"value":5092},"]) ",{"type":60,"tag":592,"props":5094,"children":5095},{"style":605},[5096],{"type":66,"value":853},{"type":60,"tag":592,"props":5098,"children":5099},{"style":605},[5100],{"type":66,"value":5101}," null\n",{"type":60,"tag":592,"props":5103,"children":5105},{"class":594,"line":5104},86,[5106],{"type":60,"tag":592,"props":5107,"children":5108},{"style":605},[5109],{"type":66,"value":3714},{"type":60,"tag":592,"props":5111,"children":5113},{"class":594,"line":5112},87,[5114],{"type":60,"tag":592,"props":5115,"children":5116},{"emptyLinePlaceholder":777},[5117],{"type":66,"value":780},{"type":60,"tag":592,"props":5119,"children":5121},{"class":594,"line":5120},88,[5122,5126],{"type":60,"tag":592,"props":5123,"children":5124},{"style":599},[5125],{"type":66,"value":3338},{"type":60,"tag":592,"props":5127,"children":5128},{"style":605},[5129],{"type":66,"value":838},{"type":60,"tag":592,"props":5131,"children":5133},{"class":594,"line":5132},89,[5134,5139],{"type":60,"tag":592,"props":5135,"children":5136},{"style":611},[5137],{"type":66,"value":5138},"    get",{"type":60,"tag":592,"props":5140,"children":5141},{"style":605},[5142],{"type":66,"value":898},{"type":60,"tag":592,"props":5144,"children":5146},{"class":594,"line":5145},90,[5147],{"type":60,"tag":592,"props":5148,"children":5149},{"style":3261},[5150],{"type":66,"value":5151},"    \u002F\u002F Idempotent: an existing runId is returned untouched so resume and\n",{"type":60,"tag":592,"props":5153,"children":5155},{"class":594,"line":5154},91,[5156],{"type":60,"tag":592,"props":5157,"children":5158},{"style":3261},[5159],{"type":66,"value":5160},"    \u002F\u002F double-submit are safe.\n",{"type":60,"tag":592,"props":5162,"children":5164},{"class":594,"line":5163},92,[5165,5169,5174,5179,5183,5187,5191,5195,5200,5204,5209,5214],{"type":60,"tag":592,"props":5166,"children":5167},{"style":792},[5168],{"type":66,"value":4226},{"type":60,"tag":592,"props":5170,"children":5171},{"style":845},[5172],{"type":66,"value":5173}," createOrResume",{"type":60,"tag":592,"props":5175,"children":5176},{"style":605},[5177],{"type":66,"value":5178},"({",{"type":60,"tag":592,"props":5180,"children":5181},{"style":2563},[5182],{"type":66,"value":5007},{"type":60,"tag":592,"props":5184,"children":5185},{"style":605},[5186],{"type":66,"value":619},{"type":60,"tag":592,"props":5188,"children":5189},{"style":2563},[5190],{"type":66,"value":4400},{"type":60,"tag":592,"props":5192,"children":5193},{"style":605},[5194],{"type":66,"value":619},{"type":60,"tag":592,"props":5196,"children":5197},{"style":2563},[5198],{"type":66,"value":5199}," startedAt",{"type":60,"tag":592,"props":5201,"children":5202},{"style":605},[5203],{"type":66,"value":619},{"type":60,"tag":592,"props":5205,"children":5206},{"style":2563},[5207],{"type":66,"value":5208}," status",{"type":60,"tag":592,"props":5210,"children":5211},{"style":605},[5212],{"type":66,"value":5213}," })",{"type":60,"tag":592,"props":5215,"children":5216},{"style":605},[5217],{"type":66,"value":838},{"type":60,"tag":592,"props":5219,"children":5221},{"class":594,"line":5220},93,[5222,5226,5231,5235,5239,5243,5247,5251],{"type":60,"tag":592,"props":5223,"children":5224},{"style":792},[5225],{"type":66,"value":4256},{"type":60,"tag":592,"props":5227,"children":5228},{"style":611},[5229],{"type":66,"value":5230}," existing",{"type":60,"tag":592,"props":5232,"children":5233},{"style":605},[5234],{"type":66,"value":3238},{"type":60,"tag":592,"props":5236,"children":5237},{"style":599},[5238],{"type":66,"value":4270},{"type":60,"tag":592,"props":5240,"children":5241},{"style":808},[5242],{"type":66,"value":4870},{"type":60,"tag":592,"props":5244,"children":5245},{"style":845},[5246],{"type":66,"value":815},{"type":60,"tag":592,"props":5248,"children":5249},{"style":611},[5250],{"type":66,"value":3368},{"type":60,"tag":592,"props":5252,"children":5253},{"style":845},[5254],{"type":66,"value":971},{"type":60,"tag":592,"props":5256,"children":5258},{"class":594,"line":5257},94,[5259,5264,5268,5273,5278,5283],{"type":60,"tag":592,"props":5260,"children":5261},{"style":599},[5262],{"type":66,"value":5263},"      if",{"type":60,"tag":592,"props":5265,"children":5266},{"style":845},[5267],{"type":66,"value":169},{"type":60,"tag":592,"props":5269,"children":5270},{"style":611},[5271],{"type":66,"value":5272},"existing",{"type":60,"tag":592,"props":5274,"children":5275},{"style":845},[5276],{"type":66,"value":5277},") ",{"type":60,"tag":592,"props":5279,"children":5280},{"style":599},[5281],{"type":66,"value":5282},"return",{"type":60,"tag":592,"props":5284,"children":5285},{"style":611},[5286],{"type":66,"value":5287}," existing\n",{"type":60,"tag":592,"props":5289,"children":5291},{"class":594,"line":5290},95,[5292],{"type":60,"tag":592,"props":5293,"children":5294},{"emptyLinePlaceholder":777},[5295],{"type":66,"value":780},{"type":60,"tag":592,"props":5297,"children":5299},{"class":594,"line":5298},96,[5300,5304],{"type":60,"tag":592,"props":5301,"children":5302},{"style":599},[5303],{"type":66,"value":4586},{"type":60,"tag":592,"props":5305,"children":5306},{"style":611},[5307],{"type":66,"value":3248},{"type":60,"tag":592,"props":5309,"children":5311},{"class":594,"line":5310},97,[5312,5316,5320,5324,5328],{"type":60,"tag":592,"props":5313,"children":5314},{"style":605},[5315],{"type":66,"value":4283},{"type":60,"tag":592,"props":5317,"children":5318},{"style":808},[5319],{"type":66,"value":4603},{"type":60,"tag":592,"props":5321,"children":5322},{"style":845},[5323],{"type":66,"value":815},{"type":60,"tag":592,"props":5325,"children":5326},{"style":611},[5327],{"type":66,"value":4958},{"type":60,"tag":592,"props":5329,"children":5330},{"style":845},[5331],{"type":66,"value":971},{"type":60,"tag":592,"props":5333,"children":5335},{"class":594,"line":5334},98,[5336,5340,5344,5348,5352,5356,5360,5364,5368,5372,5376,5380,5384,5388,5393,5397,5401,5405,5409],{"type":60,"tag":592,"props":5337,"children":5338},{"style":605},[5339],{"type":66,"value":4283},{"type":60,"tag":592,"props":5341,"children":5342},{"style":808},[5343],{"type":66,"value":4628},{"type":60,"tag":592,"props":5345,"children":5346},{"style":845},[5347],{"type":66,"value":815},{"type":60,"tag":592,"props":5349,"children":5350},{"style":605},[5351],{"type":66,"value":2592},{"type":60,"tag":592,"props":5353,"children":5354},{"style":611},[5355],{"type":66,"value":5007},{"type":60,"tag":592,"props":5357,"children":5358},{"style":605},[5359],{"type":66,"value":619},{"type":60,"tag":592,"props":5361,"children":5362},{"style":611},[5363],{"type":66,"value":4400},{"type":60,"tag":592,"props":5365,"children":5366},{"style":605},[5367],{"type":66,"value":619},{"type":60,"tag":592,"props":5369,"children":5370},{"style":845},[5371],{"type":66,"value":5208},{"type":60,"tag":592,"props":5373,"children":5374},{"style":605},[5375],{"type":66,"value":853},{"type":60,"tag":592,"props":5377,"children":5378},{"style":611},[5379],{"type":66,"value":5208},{"type":60,"tag":592,"props":5381,"children":5382},{"style":605},[5383],{"type":66,"value":4481},{"type":60,"tag":592,"props":5385,"children":5386},{"style":605},[5387],{"type":66,"value":657},{"type":60,"tag":592,"props":5389,"children":5390},{"style":660},[5391],{"type":66,"value":5392},"running",{"type":60,"tag":592,"props":5394,"children":5395},{"style":605},[5396],{"type":66,"value":820},{"type":60,"tag":592,"props":5398,"children":5399},{"style":605},[5400],{"type":66,"value":619},{"type":60,"tag":592,"props":5402,"children":5403},{"style":611},[5404],{"type":66,"value":5199},{"type":60,"tag":592,"props":5406,"children":5407},{"style":605},[5408],{"type":66,"value":647},{"type":60,"tag":592,"props":5410,"children":5411},{"style":845},[5412],{"type":66,"value":971},{"type":60,"tag":592,"props":5414,"children":5416},{"class":594,"line":5415},99,[5417,5421,5426,5430,5434,5439,5443,5447,5451,5455,5459],{"type":60,"tag":592,"props":5418,"children":5419},{"style":605},[5420],{"type":66,"value":4283},{"type":60,"tag":592,"props":5422,"children":5423},{"style":808},[5424],{"type":66,"value":5425},"onConflictDoNothing",{"type":60,"tag":592,"props":5427,"children":5428},{"style":845},[5429],{"type":66,"value":815},{"type":60,"tag":592,"props":5431,"children":5432},{"style":605},[5433],{"type":66,"value":2592},{"type":60,"tag":592,"props":5435,"children":5436},{"style":845},[5437],{"type":66,"value":5438}," target",{"type":60,"tag":592,"props":5440,"children":5441},{"style":605},[5442],{"type":66,"value":853},{"type":60,"tag":592,"props":5444,"children":5445},{"style":611},[5446],{"type":66,"value":3307},{"type":60,"tag":592,"props":5448,"children":5449},{"style":605},[5450],{"type":66,"value":883},{"type":60,"tag":592,"props":5452,"children":5453},{"style":611},[5454],{"type":66,"value":3368},{"type":60,"tag":592,"props":5456,"children":5457},{"style":605},[5458],{"type":66,"value":647},{"type":60,"tag":592,"props":5460,"children":5461},{"style":845},[5462],{"type":66,"value":971},{"type":60,"tag":592,"props":5464,"children":5466},{"class":594,"line":5465},100,[5467],{"type":60,"tag":592,"props":5468,"children":5469},{"emptyLinePlaceholder":777},[5470],{"type":66,"value":780},{"type":60,"tag":592,"props":5472,"children":5474},{"class":594,"line":5473},101,[5475],{"type":60,"tag":592,"props":5476,"children":5477},{"style":3261},[5478],{"type":66,"value":5479},"      \u002F\u002F Re-read rather than trusting the insert: a concurrent createOrResume\n",{"type":60,"tag":592,"props":5481,"children":5483},{"class":594,"line":5482},102,[5484],{"type":60,"tag":592,"props":5485,"children":5486},{"style":3261},[5487],{"type":66,"value":5488},"      \u002F\u002F may have won the race, and that row is the authoritative one.\n",{"type":60,"tag":592,"props":5490,"children":5492},{"class":594,"line":5491},103,[5493,5497,5502,5506,5510,5514,5518,5522],{"type":60,"tag":592,"props":5494,"children":5495},{"style":792},[5496],{"type":66,"value":4256},{"type":60,"tag":592,"props":5498,"children":5499},{"style":611},[5500],{"type":66,"value":5501}," stored",{"type":60,"tag":592,"props":5503,"children":5504},{"style":605},[5505],{"type":66,"value":3238},{"type":60,"tag":592,"props":5507,"children":5508},{"style":599},[5509],{"type":66,"value":4270},{"type":60,"tag":592,"props":5511,"children":5512},{"style":808},[5513],{"type":66,"value":4870},{"type":60,"tag":592,"props":5515,"children":5516},{"style":845},[5517],{"type":66,"value":815},{"type":60,"tag":592,"props":5519,"children":5520},{"style":611},[5521],{"type":66,"value":3368},{"type":60,"tag":592,"props":5523,"children":5524},{"style":845},[5525],{"type":66,"value":971},{"type":60,"tag":592,"props":5527,"children":5529},{"class":594,"line":5528},104,[5530,5534],{"type":60,"tag":592,"props":5531,"children":5532},{"style":599},[5533],{"type":66,"value":4450},{"type":60,"tag":592,"props":5535,"children":5536},{"style":845},[5537],{"type":66,"value":5538}," (\n",{"type":60,"tag":592,"props":5540,"children":5542},{"class":594,"line":5541},105,[5543,5548,5552,5556,5560,5564,5568,5572,5576,5580,5584,5589,5593,5597,5601,5605,5609],{"type":60,"tag":592,"props":5544,"children":5545},{"style":611},[5546],{"type":66,"value":5547},"        stored",{"type":60,"tag":592,"props":5549,"children":5550},{"style":605},[5551],{"type":66,"value":4481},{"type":60,"tag":592,"props":5553,"children":5554},{"style":605},[5555],{"type":66,"value":608},{"type":60,"tag":592,"props":5557,"children":5558},{"style":2563},[5559],{"type":66,"value":5007},{"type":60,"tag":592,"props":5561,"children":5562},{"style":605},[5563],{"type":66,"value":619},{"type":60,"tag":592,"props":5565,"children":5566},{"style":2563},[5567],{"type":66,"value":4400},{"type":60,"tag":592,"props":5569,"children":5570},{"style":605},[5571],{"type":66,"value":619},{"type":60,"tag":592,"props":5573,"children":5574},{"style":845},[5575],{"type":66,"value":5208},{"type":60,"tag":592,"props":5577,"children":5578},{"style":605},[5579],{"type":66,"value":853},{"type":60,"tag":592,"props":5581,"children":5582},{"style":2563},[5583],{"type":66,"value":5208},{"type":60,"tag":592,"props":5585,"children":5586},{"style":845},[5587],{"type":66,"value":5588}," ?? ",{"type":60,"tag":592,"props":5590,"children":5591},{"style":605},[5592],{"type":66,"value":820},{"type":60,"tag":592,"props":5594,"children":5595},{"style":660},[5596],{"type":66,"value":5392},{"type":60,"tag":592,"props":5598,"children":5599},{"style":605},[5600],{"type":66,"value":820},{"type":60,"tag":592,"props":5602,"children":5603},{"style":605},[5604],{"type":66,"value":619},{"type":60,"tag":592,"props":5606,"children":5607},{"style":2563},[5608],{"type":66,"value":5199},{"type":60,"tag":592,"props":5610,"children":5611},{"style":605},[5612],{"type":66,"value":5613}," }\n",{"type":60,"tag":592,"props":5615,"children":5617},{"class":594,"line":5616},106,[5618],{"type":60,"tag":592,"props":5619,"children":5620},{"style":845},[5621],{"type":66,"value":5622},"      )\n",{"type":60,"tag":592,"props":5624,"children":5626},{"class":594,"line":5625},107,[5627],{"type":60,"tag":592,"props":5628,"children":5629},{"style":605},[5630],{"type":66,"value":4495},{"type":60,"tag":592,"props":5632,"children":5634},{"class":594,"line":5633},108,[5635],{"type":60,"tag":592,"props":5636,"children":5637},{"style":3261},[5638],{"type":66,"value":5639},"    \u002F\u002F Patching an unknown runId is a no-op: never throws, never inserts.\n",{"type":60,"tag":592,"props":5641,"children":5643},{"class":594,"line":5642},109,[5644,5648,5653,5657,5661,5665,5670,5674],{"type":60,"tag":592,"props":5645,"children":5646},{"style":792},[5647],{"type":66,"value":4226},{"type":60,"tag":592,"props":5649,"children":5650},{"style":845},[5651],{"type":66,"value":5652}," update",{"type":60,"tag":592,"props":5654,"children":5655},{"style":605},[5656],{"type":66,"value":815},{"type":60,"tag":592,"props":5658,"children":5659},{"style":2563},[5660],{"type":66,"value":3368},{"type":60,"tag":592,"props":5662,"children":5663},{"style":605},[5664],{"type":66,"value":619},{"type":60,"tag":592,"props":5666,"children":5667},{"style":2563},[5668],{"type":66,"value":5669}," patch",{"type":60,"tag":592,"props":5671,"children":5672},{"style":605},[5673],{"type":66,"value":367},{"type":60,"tag":592,"props":5675,"children":5676},{"style":605},[5677],{"type":66,"value":838},{"type":60,"tag":592,"props":5679,"children":5681},{"class":594,"line":5680},110,[5682,5686,5691,5695,5700,5705,5709,5713,5718,5722,5726],{"type":60,"tag":592,"props":5683,"children":5684},{"style":792},[5685],{"type":66,"value":4256},{"type":60,"tag":592,"props":5687,"children":5688},{"style":611},[5689],{"type":66,"value":5690}," set",{"type":60,"tag":592,"props":5692,"children":5693},{"style":605},[5694],{"type":66,"value":853},{"type":60,"tag":592,"props":5696,"children":5697},{"style":993},[5698],{"type":66,"value":5699}," Partial",{"type":60,"tag":592,"props":5701,"children":5702},{"style":605},[5703],{"type":66,"value":5704},"\u003Ctypeof",{"type":60,"tag":592,"props":5706,"children":5707},{"style":611},[5708],{"type":66,"value":3307},{"type":60,"tag":592,"props":5710,"children":5711},{"style":605},[5712],{"type":66,"value":883},{"type":60,"tag":592,"props":5714,"children":5715},{"style":611},[5716],{"type":66,"value":5717},"$inferInsert",{"type":60,"tag":592,"props":5719,"children":5720},{"style":605},[5721],{"type":66,"value":1327},{"type":60,"tag":592,"props":5723,"children":5724},{"style":605},[5725],{"type":66,"value":3238},{"type":60,"tag":592,"props":5727,"children":5728},{"style":605},[5729],{"type":66,"value":5730}," {}\n",{"type":60,"tag":592,"props":5732,"children":5734},{"class":594,"line":5733},111,[5735,5739,5743,5748,5752,5756,5761,5766,5770,5775,5779,5783,5787,5791,5795],{"type":60,"tag":592,"props":5736,"children":5737},{"style":599},[5738],{"type":66,"value":5263},{"type":60,"tag":592,"props":5740,"children":5741},{"style":845},[5742],{"type":66,"value":169},{"type":60,"tag":592,"props":5744,"children":5745},{"style":611},[5746],{"type":66,"value":5747},"patch",{"type":60,"tag":592,"props":5749,"children":5750},{"style":605},[5751],{"type":66,"value":883},{"type":60,"tag":592,"props":5753,"children":5754},{"style":611},[5755],{"type":66,"value":1297},{"type":60,"tag":592,"props":5757,"children":5758},{"style":605},[5759],{"type":66,"value":5760}," !==",{"type":60,"tag":592,"props":5762,"children":5763},{"style":605},[5764],{"type":66,"value":5765}," undefined",{"type":60,"tag":592,"props":5767,"children":5768},{"style":845},[5769],{"type":66,"value":5277},{"type":60,"tag":592,"props":5771,"children":5772},{"style":611},[5773],{"type":66,"value":5774},"set",{"type":60,"tag":592,"props":5776,"children":5777},{"style":605},[5778],{"type":66,"value":883},{"type":60,"tag":592,"props":5780,"children":5781},{"style":611},[5782],{"type":66,"value":1297},{"type":60,"tag":592,"props":5784,"children":5785},{"style":605},[5786],{"type":66,"value":3238},{"type":60,"tag":592,"props":5788,"children":5789},{"style":611},[5790],{"type":66,"value":5669},{"type":60,"tag":592,"props":5792,"children":5793},{"style":605},[5794],{"type":66,"value":883},{"type":60,"tag":592,"props":5796,"children":5797},{"style":611},[5798],{"type":66,"value":5799},"status\n",{"type":60,"tag":592,"props":5801,"children":5803},{"class":594,"line":5802},112,[5804,5808,5812,5816,5820,5824,5828,5832,5836,5840,5844,5848,5852,5856,5860],{"type":60,"tag":592,"props":5805,"children":5806},{"style":599},[5807],{"type":66,"value":5263},{"type":60,"tag":592,"props":5809,"children":5810},{"style":845},[5811],{"type":66,"value":169},{"type":60,"tag":592,"props":5813,"children":5814},{"style":611},[5815],{"type":66,"value":5747},{"type":60,"tag":592,"props":5817,"children":5818},{"style":605},[5819],{"type":66,"value":883},{"type":60,"tag":592,"props":5821,"children":5822},{"style":611},[5823],{"type":66,"value":3483},{"type":60,"tag":592,"props":5825,"children":5826},{"style":605},[5827],{"type":66,"value":5760},{"type":60,"tag":592,"props":5829,"children":5830},{"style":605},[5831],{"type":66,"value":5765},{"type":60,"tag":592,"props":5833,"children":5834},{"style":845},[5835],{"type":66,"value":5277},{"type":60,"tag":592,"props":5837,"children":5838},{"style":611},[5839],{"type":66,"value":5774},{"type":60,"tag":592,"props":5841,"children":5842},{"style":605},[5843],{"type":66,"value":883},{"type":60,"tag":592,"props":5845,"children":5846},{"style":611},[5847],{"type":66,"value":3483},{"type":60,"tag":592,"props":5849,"children":5850},{"style":605},[5851],{"type":66,"value":3238},{"type":60,"tag":592,"props":5853,"children":5854},{"style":611},[5855],{"type":66,"value":5669},{"type":60,"tag":592,"props":5857,"children":5858},{"style":605},[5859],{"type":66,"value":883},{"type":60,"tag":592,"props":5861,"children":5862},{"style":611},[5863],{"type":66,"value":5864},"finishedAt\n",{"type":60,"tag":592,"props":5866,"children":5868},{"class":594,"line":5867},113,[5869,5873,5877,5881,5885,5889,5893,5897,5901,5905,5909,5913,5917,5921,5925],{"type":60,"tag":592,"props":5870,"children":5871},{"style":599},[5872],{"type":66,"value":5263},{"type":60,"tag":592,"props":5874,"children":5875},{"style":845},[5876],{"type":66,"value":169},{"type":60,"tag":592,"props":5878,"children":5879},{"style":611},[5880],{"type":66,"value":5747},{"type":60,"tag":592,"props":5882,"children":5883},{"style":605},[5884],{"type":66,"value":883},{"type":60,"tag":592,"props":5886,"children":5887},{"style":611},[5888],{"type":66,"value":1473},{"type":60,"tag":592,"props":5890,"children":5891},{"style":605},[5892],{"type":66,"value":5760},{"type":60,"tag":592,"props":5894,"children":5895},{"style":605},[5896],{"type":66,"value":5765},{"type":60,"tag":592,"props":5898,"children":5899},{"style":845},[5900],{"type":66,"value":5277},{"type":60,"tag":592,"props":5902,"children":5903},{"style":611},[5904],{"type":66,"value":5774},{"type":60,"tag":592,"props":5906,"children":5907},{"style":605},[5908],{"type":66,"value":883},{"type":60,"tag":592,"props":5910,"children":5911},{"style":611},[5912],{"type":66,"value":1473},{"type":60,"tag":592,"props":5914,"children":5915},{"style":605},[5916],{"type":66,"value":3238},{"type":60,"tag":592,"props":5918,"children":5919},{"style":611},[5920],{"type":66,"value":5669},{"type":60,"tag":592,"props":5922,"children":5923},{"style":605},[5924],{"type":66,"value":883},{"type":60,"tag":592,"props":5926,"children":5927},{"style":611},[5928],{"type":66,"value":5929},"error\n",{"type":60,"tag":592,"props":5931,"children":5933},{"class":594,"line":5932},114,[5934,5938,5942,5946,5950,5955,5959,5963,5967,5971,5975,5979,5983,5987,5991],{"type":60,"tag":592,"props":5935,"children":5936},{"style":599},[5937],{"type":66,"value":5263},{"type":60,"tag":592,"props":5939,"children":5940},{"style":845},[5941],{"type":66,"value":169},{"type":60,"tag":592,"props":5943,"children":5944},{"style":611},[5945],{"type":66,"value":5747},{"type":60,"tag":592,"props":5947,"children":5948},{"style":605},[5949],{"type":66,"value":883},{"type":60,"tag":592,"props":5951,"children":5952},{"style":611},[5953],{"type":66,"value":5954},"usage",{"type":60,"tag":592,"props":5956,"children":5957},{"style":605},[5958],{"type":66,"value":5760},{"type":60,"tag":592,"props":5960,"children":5961},{"style":605},[5962],{"type":66,"value":5765},{"type":60,"tag":592,"props":5964,"children":5965},{"style":845},[5966],{"type":66,"value":5277},{"type":60,"tag":592,"props":5968,"children":5969},{"style":611},[5970],{"type":66,"value":5774},{"type":60,"tag":592,"props":5972,"children":5973},{"style":605},[5974],{"type":66,"value":883},{"type":60,"tag":592,"props":5976,"children":5977},{"style":611},[5978],{"type":66,"value":3649},{"type":60,"tag":592,"props":5980,"children":5981},{"style":605},[5982],{"type":66,"value":3238},{"type":60,"tag":592,"props":5984,"children":5985},{"style":611},[5986],{"type":66,"value":5669},{"type":60,"tag":592,"props":5988,"children":5989},{"style":605},[5990],{"type":66,"value":883},{"type":60,"tag":592,"props":5992,"children":5993},{"style":611},[5994],{"type":66,"value":5995},"usage\n",{"type":60,"tag":592,"props":5997,"children":5999},{"class":594,"line":5998},115,[6000,6004,6008,6013,6017,6022,6026,6030,6034,6038,6043,6048,6053,6057],{"type":60,"tag":592,"props":6001,"children":6002},{"style":599},[6003],{"type":66,"value":5263},{"type":60,"tag":592,"props":6005,"children":6006},{"style":845},[6007],{"type":66,"value":169},{"type":60,"tag":592,"props":6009,"children":6010},{"style":611},[6011],{"type":66,"value":6012},"Object",{"type":60,"tag":592,"props":6014,"children":6015},{"style":605},[6016],{"type":66,"value":883},{"type":60,"tag":592,"props":6018,"children":6019},{"style":808},[6020],{"type":66,"value":6021},"keys",{"type":60,"tag":592,"props":6023,"children":6024},{"style":845},[6025],{"type":66,"value":815},{"type":60,"tag":592,"props":6027,"children":6028},{"style":611},[6029],{"type":66,"value":5774},{"type":60,"tag":592,"props":6031,"children":6032},{"style":845},[6033],{"type":66,"value":367},{"type":60,"tag":592,"props":6035,"children":6036},{"style":605},[6037],{"type":66,"value":883},{"type":60,"tag":592,"props":6039,"children":6040},{"style":611},[6041],{"type":66,"value":6042},"length",{"type":60,"tag":592,"props":6044,"children":6045},{"style":605},[6046],{"type":66,"value":6047}," ===",{"type":60,"tag":592,"props":6049,"children":6050},{"style":4425},[6051],{"type":66,"value":6052}," 0",{"type":60,"tag":592,"props":6054,"children":6055},{"style":845},[6056],{"type":66,"value":5277},{"type":60,"tag":592,"props":6058,"children":6059},{"style":599},[6060],{"type":66,"value":6061},"return\n",{"type":60,"tag":592,"props":6063,"children":6065},{"class":594,"line":6064},116,[6066],{"type":60,"tag":592,"props":6067,"children":6068},{"emptyLinePlaceholder":777},[6069],{"type":66,"value":780},{"type":60,"tag":592,"props":6071,"children":6073},{"class":594,"line":6072},117,[6074,6078,6082,6086,6091,6095,6099,6103,6107,6111,6115,6119,6123,6127,6131,6135,6139,6143,6147,6151,6155,6159,6163],{"type":60,"tag":592,"props":6075,"children":6076},{"style":599},[6077],{"type":66,"value":4586},{"type":60,"tag":592,"props":6079,"children":6080},{"style":611},[6081],{"type":66,"value":3110},{"type":60,"tag":592,"props":6083,"children":6084},{"style":605},[6085],{"type":66,"value":883},{"type":60,"tag":592,"props":6087,"children":6088},{"style":808},[6089],{"type":66,"value":6090},"update",{"type":60,"tag":592,"props":6092,"children":6093},{"style":845},[6094],{"type":66,"value":815},{"type":60,"tag":592,"props":6096,"children":6097},{"style":611},[6098],{"type":66,"value":4958},{"type":60,"tag":592,"props":6100,"children":6101},{"style":845},[6102],{"type":66,"value":367},{"type":60,"tag":592,"props":6104,"children":6105},{"style":605},[6106],{"type":66,"value":883},{"type":60,"tag":592,"props":6108,"children":6109},{"style":808},[6110],{"type":66,"value":5774},{"type":60,"tag":592,"props":6112,"children":6113},{"style":845},[6114],{"type":66,"value":815},{"type":60,"tag":592,"props":6116,"children":6117},{"style":611},[6118],{"type":66,"value":5774},{"type":60,"tag":592,"props":6120,"children":6121},{"style":845},[6122],{"type":66,"value":367},{"type":60,"tag":592,"props":6124,"children":6125},{"style":605},[6126],{"type":66,"value":883},{"type":60,"tag":592,"props":6128,"children":6129},{"style":808},[6130],{"type":66,"value":4366},{"type":60,"tag":592,"props":6132,"children":6133},{"style":845},[6134],{"type":66,"value":815},{"type":60,"tag":592,"props":6136,"children":6137},{"style":808},[6138],{"type":66,"value":4375},{"type":60,"tag":592,"props":6140,"children":6141},{"style":845},[6142],{"type":66,"value":815},{"type":60,"tag":592,"props":6144,"children":6145},{"style":611},[6146],{"type":66,"value":4958},{"type":60,"tag":592,"props":6148,"children":6149},{"style":605},[6150],{"type":66,"value":883},{"type":60,"tag":592,"props":6152,"children":6153},{"style":611},[6154],{"type":66,"value":3368},{"type":60,"tag":592,"props":6156,"children":6157},{"style":605},[6158],{"type":66,"value":619},{"type":60,"tag":592,"props":6160,"children":6161},{"style":611},[6162],{"type":66,"value":5007},{"type":60,"tag":592,"props":6164,"children":6165},{"style":845},[6166],{"type":66,"value":4405},{"type":60,"tag":592,"props":6168,"children":6170},{"class":594,"line":6169},118,[6171],{"type":60,"tag":592,"props":6172,"children":6173},{"style":605},[6174],{"type":66,"value":4495},{"type":60,"tag":592,"props":6176,"children":6178},{"class":594,"line":6177},119,[6179],{"type":60,"tag":592,"props":6180,"children":6181},{"style":3261},[6182],{"type":66,"value":6183},"    \u002F\u002F Optional in the contract; enables reconnect without a client-held run id.\n",{"type":60,"tag":592,"props":6185,"children":6187},{"class":594,"line":6186},120,[6188,6192,6197,6201,6205,6209],{"type":60,"tag":592,"props":6189,"children":6190},{"style":792},[6191],{"type":66,"value":4226},{"type":60,"tag":592,"props":6193,"children":6194},{"style":845},[6195],{"type":66,"value":6196}," findActiveRun",{"type":60,"tag":592,"props":6198,"children":6199},{"style":605},[6200],{"type":66,"value":815},{"type":60,"tag":592,"props":6202,"children":6203},{"style":2563},[6204],{"type":66,"value":3397},{"type":60,"tag":592,"props":6206,"children":6207},{"style":605},[6208],{"type":66,"value":367},{"type":60,"tag":592,"props":6210,"children":6211},{"style":605},[6212],{"type":66,"value":838},{"type":60,"tag":592,"props":6214,"children":6216},{"class":594,"line":6215},121,[6217,6221,6225,6229,6233],{"type":60,"tag":592,"props":6218,"children":6219},{"style":792},[6220],{"type":66,"value":4256},{"type":60,"tag":592,"props":6222,"children":6223},{"style":611},[6224],{"type":66,"value":4261},{"type":60,"tag":592,"props":6226,"children":6227},{"style":605},[6228],{"type":66,"value":3238},{"type":60,"tag":592,"props":6230,"children":6231},{"style":599},[6232],{"type":66,"value":4270},{"type":60,"tag":592,"props":6234,"children":6235},{"style":611},[6236],{"type":66,"value":3248},{"type":60,"tag":592,"props":6238,"children":6240},{"class":594,"line":6239},122,[6241,6245,6249],{"type":60,"tag":592,"props":6242,"children":6243},{"style":605},[6244],{"type":66,"value":4283},{"type":60,"tag":592,"props":6246,"children":6247},{"style":808},[6248],{"type":66,"value":4288},{"type":60,"tag":592,"props":6250,"children":6251},{"style":845},[6252],{"type":66,"value":1015},{"type":60,"tag":592,"props":6254,"children":6256},{"class":594,"line":6255},123,[6257,6261,6265,6269,6273],{"type":60,"tag":592,"props":6258,"children":6259},{"style":605},[6260],{"type":66,"value":4283},{"type":60,"tag":592,"props":6262,"children":6263},{"style":808},[6264],{"type":66,"value":4340},{"type":60,"tag":592,"props":6266,"children":6267},{"style":845},[6268],{"type":66,"value":815},{"type":60,"tag":592,"props":6270,"children":6271},{"style":611},[6272],{"type":66,"value":4958},{"type":60,"tag":592,"props":6274,"children":6275},{"style":845},[6276],{"type":66,"value":971},{"type":60,"tag":592,"props":6278,"children":6280},{"class":594,"line":6279},124,[6281,6285,6289],{"type":60,"tag":592,"props":6282,"children":6283},{"style":605},[6284],{"type":66,"value":4283},{"type":60,"tag":592,"props":6286,"children":6287},{"style":808},[6288],{"type":66,"value":4366},{"type":60,"tag":592,"props":6290,"children":6291},{"style":845},[6292],{"type":66,"value":2293},{"type":60,"tag":592,"props":6294,"children":6296},{"class":594,"line":6295},125,[6297,6302,6306,6310,6314,6318,6322,6326,6330,6334,6338,6342,6346,6350,6354,6358,6362,6366,6370,6374,6378,6383],{"type":60,"tag":592,"props":6298,"children":6299},{"style":808},[6300],{"type":66,"value":6301},"          and",{"type":60,"tag":592,"props":6303,"children":6304},{"style":845},[6305],{"type":66,"value":815},{"type":60,"tag":592,"props":6307,"children":6308},{"style":808},[6309],{"type":66,"value":4375},{"type":60,"tag":592,"props":6311,"children":6312},{"style":845},[6313],{"type":66,"value":815},{"type":60,"tag":592,"props":6315,"children":6316},{"style":611},[6317],{"type":66,"value":4958},{"type":60,"tag":592,"props":6319,"children":6320},{"style":605},[6321],{"type":66,"value":883},{"type":60,"tag":592,"props":6323,"children":6324},{"style":611},[6325],{"type":66,"value":3397},{"type":60,"tag":592,"props":6327,"children":6328},{"style":605},[6329],{"type":66,"value":619},{"type":60,"tag":592,"props":6331,"children":6332},{"style":611},[6333],{"type":66,"value":4400},{"type":60,"tag":592,"props":6335,"children":6336},{"style":845},[6337],{"type":66,"value":367},{"type":60,"tag":592,"props":6339,"children":6340},{"style":605},[6341],{"type":66,"value":619},{"type":60,"tag":592,"props":6343,"children":6344},{"style":808},[6345],{"type":66,"value":2868},{"type":60,"tag":592,"props":6347,"children":6348},{"style":845},[6349],{"type":66,"value":815},{"type":60,"tag":592,"props":6351,"children":6352},{"style":611},[6353],{"type":66,"value":4958},{"type":60,"tag":592,"props":6355,"children":6356},{"style":605},[6357],{"type":66,"value":883},{"type":60,"tag":592,"props":6359,"children":6360},{"style":611},[6361],{"type":66,"value":1297},{"type":60,"tag":592,"props":6363,"children":6364},{"style":605},[6365],{"type":66,"value":619},{"type":60,"tag":592,"props":6367,"children":6368},{"style":605},[6369],{"type":66,"value":657},{"type":60,"tag":592,"props":6371,"children":6372},{"style":660},[6373],{"type":66,"value":5392},{"type":60,"tag":592,"props":6375,"children":6376},{"style":605},[6377],{"type":66,"value":820},{"type":60,"tag":592,"props":6379,"children":6380},{"style":845},[6381],{"type":66,"value":6382},"))",{"type":60,"tag":592,"props":6384,"children":6385},{"style":605},[6386],{"type":66,"value":898},{"type":60,"tag":592,"props":6388,"children":6390},{"class":594,"line":6389},126,[6391],{"type":60,"tag":592,"props":6392,"children":6393},{"style":845},[6394],{"type":66,"value":6395},"        )\n",{"type":60,"tag":592,"props":6397,"children":6399},{"class":594,"line":6398},127,[6400,6404,6409,6413,6418,6422,6426,6430,6434],{"type":60,"tag":592,"props":6401,"children":6402},{"style":605},[6403],{"type":66,"value":4283},{"type":60,"tag":592,"props":6405,"children":6406},{"style":808},[6407],{"type":66,"value":6408},"orderBy",{"type":60,"tag":592,"props":6410,"children":6411},{"style":845},[6412],{"type":66,"value":815},{"type":60,"tag":592,"props":6414,"children":6415},{"style":808},[6416],{"type":66,"value":6417},"desc",{"type":60,"tag":592,"props":6419,"children":6420},{"style":845},[6421],{"type":66,"value":815},{"type":60,"tag":592,"props":6423,"children":6424},{"style":611},[6425],{"type":66,"value":4958},{"type":60,"tag":592,"props":6427,"children":6428},{"style":605},[6429],{"type":66,"value":883},{"type":60,"tag":592,"props":6431,"children":6432},{"style":611},[6433],{"type":66,"value":3454},{"type":60,"tag":592,"props":6435,"children":6436},{"style":845},[6437],{"type":66,"value":4405},{"type":60,"tag":592,"props":6439,"children":6441},{"class":594,"line":6440},128,[6442,6446,6450,6454,6458],{"type":60,"tag":592,"props":6443,"children":6444},{"style":605},[6445],{"type":66,"value":4283},{"type":60,"tag":592,"props":6447,"children":6448},{"style":808},[6449],{"type":66,"value":4418},{"type":60,"tag":592,"props":6451,"children":6452},{"style":845},[6453],{"type":66,"value":815},{"type":60,"tag":592,"props":6455,"children":6456},{"style":4425},[6457],{"type":66,"value":4428},{"type":60,"tag":592,"props":6459,"children":6460},{"style":845},[6461],{"type":66,"value":971},{"type":60,"tag":592,"props":6463,"children":6465},{"class":594,"line":6464},129,[6466,6470,6474,6478,6482,6486,6490,6494,6498,6502,6506,6510,6514,6518],{"type":60,"tag":592,"props":6467,"children":6468},{"style":599},[6469],{"type":66,"value":4450},{"type":60,"tag":592,"props":6471,"children":6472},{"style":611},[6473],{"type":66,"value":4261},{"type":60,"tag":592,"props":6475,"children":6476},{"style":845},[6477],{"type":66,"value":1870},{"type":60,"tag":592,"props":6479,"children":6480},{"style":4425},[6481],{"type":66,"value":4463},{"type":60,"tag":592,"props":6483,"children":6484},{"style":845},[6485],{"type":66,"value":5061},{"type":60,"tag":592,"props":6487,"children":6488},{"style":605},[6489],{"type":66,"value":5066},{"type":60,"tag":592,"props":6491,"children":6492},{"style":808},[6493],{"type":66,"value":3285},{"type":60,"tag":592,"props":6495,"children":6496},{"style":845},[6497],{"type":66,"value":815},{"type":60,"tag":592,"props":6499,"children":6500},{"style":611},[6501],{"type":66,"value":5079},{"type":60,"tag":592,"props":6503,"children":6504},{"style":845},[6505],{"type":66,"value":1870},{"type":60,"tag":592,"props":6507,"children":6508},{"style":4425},[6509],{"type":66,"value":4463},{"type":60,"tag":592,"props":6511,"children":6512},{"style":845},[6513],{"type":66,"value":5092},{"type":60,"tag":592,"props":6515,"children":6516},{"style":605},[6517],{"type":66,"value":853},{"type":60,"tag":592,"props":6519,"children":6520},{"style":605},[6521],{"type":66,"value":5101},{"type":60,"tag":592,"props":6523,"children":6525},{"class":594,"line":6524},130,[6526],{"type":60,"tag":592,"props":6527,"children":6528},{"style":605},[6529],{"type":66,"value":4495},{"type":60,"tag":592,"props":6531,"children":6533},{"class":594,"line":6532},131,[6534],{"type":60,"tag":592,"props":6535,"children":6536},{"style":605},[6537],{"type":66,"value":3714},{"type":60,"tag":592,"props":6539,"children":6541},{"class":594,"line":6540},132,[6542],{"type":60,"tag":592,"props":6543,"children":6544},{"style":605},[6545],{"type":66,"value":3722},{"type":60,"tag":592,"props":6547,"children":6549},{"class":594,"line":6548},133,[6550],{"type":60,"tag":592,"props":6551,"children":6552},{"emptyLinePlaceholder":777},[6553],{"type":66,"value":780},{"type":60,"tag":592,"props":6555,"children":6557},{"class":594,"line":6556},134,[6558,6562,6567,6571,6575,6579,6583,6587,6592],{"type":60,"tag":592,"props":6559,"children":6560},{"style":792},[6561],{"type":66,"value":3280},{"type":60,"tag":592,"props":6563,"children":6564},{"style":808},[6565],{"type":66,"value":6566}," createInterruptStore",{"type":60,"tag":592,"props":6568,"children":6569},{"style":605},[6570],{"type":66,"value":815},{"type":60,"tag":592,"props":6572,"children":6573},{"style":2563},[6574],{"type":66,"value":104},{"type":60,"tag":592,"props":6576,"children":6577},{"style":605},[6578],{"type":66,"value":853},{"type":60,"tag":592,"props":6580,"children":6581},{"style":993},[6582],{"type":66,"value":3233},{"type":60,"tag":592,"props":6584,"children":6585},{"style":605},[6586],{"type":66,"value":3321},{"type":60,"tag":592,"props":6588,"children":6589},{"style":993},[6590],{"type":66,"value":6591}," InterruptStore",{"type":60,"tag":592,"props":6593,"children":6594},{"style":605},[6595],{"type":66,"value":838},{"type":60,"tag":592,"props":6597,"children":6599},{"class":594,"line":6598},135,[6600],{"type":60,"tag":592,"props":6601,"children":6602},{"style":3261},[6603],{"type":66,"value":6604},"  \u002F\u002F Every listing is ordered by requestedAt ascending.\n",{"type":60,"tag":592,"props":6606,"children":6608},{"class":594,"line":6607},136,[6609,6614,6619,6623,6628,6632,6636,6640,6644,6649,6653,6657,6661],{"type":60,"tag":592,"props":6610,"children":6611},{"style":792},[6612],{"type":66,"value":6613},"  const",{"type":60,"tag":592,"props":6615,"children":6616},{"style":611},[6617],{"type":66,"value":6618}," listWhere",{"type":60,"tag":592,"props":6620,"children":6621},{"style":605},[6622],{"type":66,"value":3238},{"type":60,"tag":592,"props":6624,"children":6625},{"style":792},[6626],{"type":66,"value":6627}," async",{"type":60,"tag":592,"props":6629,"children":6630},{"style":605},[6631],{"type":66,"value":169},{"type":60,"tag":592,"props":6633,"children":6634},{"style":2563},[6635],{"type":66,"value":4366},{"type":60,"tag":592,"props":6637,"children":6638},{"style":605},[6639],{"type":66,"value":853},{"type":60,"tag":592,"props":6641,"children":6642},{"style":993},[6643],{"type":66,"value":2945},{"type":60,"tag":592,"props":6645,"children":6646},{"style":605},[6647],{"type":66,"value":6648}," |",{"type":60,"tag":592,"props":6650,"children":6651},{"style":993},[6652],{"type":66,"value":5765},{"type":60,"tag":592,"props":6654,"children":6655},{"style":605},[6656],{"type":66,"value":367},{"type":60,"tag":592,"props":6658,"children":6659},{"style":792},[6660],{"type":66,"value":2574},{"type":60,"tag":592,"props":6662,"children":6663},{"style":605},[6664],{"type":66,"value":838},{"type":60,"tag":592,"props":6666,"children":6668},{"class":594,"line":6667},137,[6669,6673,6677,6681,6685],{"type":60,"tag":592,"props":6670,"children":6671},{"style":792},[6672],{"type":66,"value":4904},{"type":60,"tag":592,"props":6674,"children":6675},{"style":611},[6676],{"type":66,"value":4261},{"type":60,"tag":592,"props":6678,"children":6679},{"style":605},[6680],{"type":66,"value":3238},{"type":60,"tag":592,"props":6682,"children":6683},{"style":599},[6684],{"type":66,"value":4270},{"type":60,"tag":592,"props":6686,"children":6687},{"style":611},[6688],{"type":66,"value":3248},{"type":60,"tag":592,"props":6690,"children":6692},{"class":594,"line":6691},138,[6693,6697,6701],{"type":60,"tag":592,"props":6694,"children":6695},{"style":605},[6696],{"type":66,"value":4929},{"type":60,"tag":592,"props":6698,"children":6699},{"style":808},[6700],{"type":66,"value":4288},{"type":60,"tag":592,"props":6702,"children":6703},{"style":845},[6704],{"type":66,"value":1015},{"type":60,"tag":592,"props":6706,"children":6708},{"class":594,"line":6707},139,[6709,6713,6717,6721,6726],{"type":60,"tag":592,"props":6710,"children":6711},{"style":605},[6712],{"type":66,"value":4929},{"type":60,"tag":592,"props":6714,"children":6715},{"style":808},[6716],{"type":66,"value":4340},{"type":60,"tag":592,"props":6718,"children":6719},{"style":845},[6720],{"type":66,"value":815},{"type":60,"tag":592,"props":6722,"children":6723},{"style":611},[6724],{"type":66,"value":6725},"chatInterrupts",{"type":60,"tag":592,"props":6727,"children":6728},{"style":845},[6729],{"type":66,"value":971},{"type":60,"tag":592,"props":6731,"children":6733},{"class":594,"line":6732},140,[6734,6738,6742,6746,6750],{"type":60,"tag":592,"props":6735,"children":6736},{"style":605},[6737],{"type":66,"value":4929},{"type":60,"tag":592,"props":6739,"children":6740},{"style":808},[6741],{"type":66,"value":4366},{"type":60,"tag":592,"props":6743,"children":6744},{"style":845},[6745],{"type":66,"value":815},{"type":60,"tag":592,"props":6747,"children":6748},{"style":611},[6749],{"type":66,"value":4366},{"type":60,"tag":592,"props":6751,"children":6752},{"style":845},[6753],{"type":66,"value":971},{"type":60,"tag":592,"props":6755,"children":6757},{"class":594,"line":6756},141,[6758,6762,6766,6770,6775,6779,6783,6787,6791],{"type":60,"tag":592,"props":6759,"children":6760},{"style":605},[6761],{"type":66,"value":4929},{"type":60,"tag":592,"props":6763,"children":6764},{"style":808},[6765],{"type":66,"value":6408},{"type":60,"tag":592,"props":6767,"children":6768},{"style":845},[6769],{"type":66,"value":815},{"type":60,"tag":592,"props":6771,"children":6772},{"style":808},[6773],{"type":66,"value":6774},"asc",{"type":60,"tag":592,"props":6776,"children":6777},{"style":845},[6778],{"type":66,"value":815},{"type":60,"tag":592,"props":6780,"children":6781},{"style":611},[6782],{"type":66,"value":6725},{"type":60,"tag":592,"props":6784,"children":6785},{"style":605},[6786],{"type":66,"value":883},{"type":60,"tag":592,"props":6788,"children":6789},{"style":611},[6790],{"type":66,"value":3941},{"type":60,"tag":592,"props":6792,"children":6793},{"style":845},[6794],{"type":66,"value":4405},{"type":60,"tag":592,"props":6796,"children":6798},{"class":594,"line":6797},142,[6799,6803,6807,6811,6816,6820,6825],{"type":60,"tag":592,"props":6800,"children":6801},{"style":599},[6802],{"type":66,"value":5044},{"type":60,"tag":592,"props":6804,"children":6805},{"style":611},[6806],{"type":66,"value":4261},{"type":60,"tag":592,"props":6808,"children":6809},{"style":605},[6810],{"type":66,"value":883},{"type":60,"tag":592,"props":6812,"children":6813},{"style":808},[6814],{"type":66,"value":6815},"map",{"type":60,"tag":592,"props":6817,"children":6818},{"style":845},[6819],{"type":66,"value":815},{"type":60,"tag":592,"props":6821,"children":6822},{"style":611},[6823],{"type":66,"value":6824},"mapInterrupt",{"type":60,"tag":592,"props":6826,"children":6827},{"style":845},[6828],{"type":66,"value":971},{"type":60,"tag":592,"props":6830,"children":6832},{"class":594,"line":6831},143,[6833],{"type":60,"tag":592,"props":6834,"children":6835},{"style":605},[6836],{"type":66,"value":3714},{"type":60,"tag":592,"props":6838,"children":6840},{"class":594,"line":6839},144,[6841],{"type":60,"tag":592,"props":6842,"children":6843},{"emptyLinePlaceholder":777},[6844],{"type":66,"value":780},{"type":60,"tag":592,"props":6846,"children":6848},{"class":594,"line":6847},145,[6849,6853],{"type":60,"tag":592,"props":6850,"children":6851},{"style":599},[6852],{"type":66,"value":3338},{"type":60,"tag":592,"props":6854,"children":6855},{"style":605},[6856],{"type":66,"value":838},{"type":60,"tag":592,"props":6858,"children":6860},{"class":594,"line":6859},146,[6861],{"type":60,"tag":592,"props":6862,"children":6863},{"style":3261},[6864],{"type":66,"value":6865},"    \u002F\u002F Insert-if-absent: a duplicate create must never clobber a resolved\n",{"type":60,"tag":592,"props":6867,"children":6869},{"class":594,"line":6868},147,[6870],{"type":60,"tag":592,"props":6871,"children":6872},{"style":3261},[6873],{"type":66,"value":6874},"    \u002F\u002F interrupt back to pending.\n",{"type":60,"tag":592,"props":6876,"children":6878},{"class":594,"line":6877},148,[6879,6883,6888,6892,6897,6901],{"type":60,"tag":592,"props":6880,"children":6881},{"style":792},[6882],{"type":66,"value":4226},{"type":60,"tag":592,"props":6884,"children":6885},{"style":845},[6886],{"type":66,"value":6887}," create",{"type":60,"tag":592,"props":6889,"children":6890},{"style":605},[6891],{"type":66,"value":815},{"type":60,"tag":592,"props":6893,"children":6894},{"style":2563},[6895],{"type":66,"value":6896},"record",{"type":60,"tag":592,"props":6898,"children":6899},{"style":605},[6900],{"type":66,"value":367},{"type":60,"tag":592,"props":6902,"children":6903},{"style":605},[6904],{"type":66,"value":838},{"type":60,"tag":592,"props":6906,"children":6908},{"class":594,"line":6907},149,[6909,6913],{"type":60,"tag":592,"props":6910,"children":6911},{"style":599},[6912],{"type":66,"value":4586},{"type":60,"tag":592,"props":6914,"children":6915},{"style":611},[6916],{"type":66,"value":3248},{"type":60,"tag":592,"props":6918,"children":6920},{"class":594,"line":6919},150,[6921,6925,6929,6933,6937],{"type":60,"tag":592,"props":6922,"children":6923},{"style":605},[6924],{"type":66,"value":4283},{"type":60,"tag":592,"props":6926,"children":6927},{"style":808},[6928],{"type":66,"value":4603},{"type":60,"tag":592,"props":6930,"children":6931},{"style":845},[6932],{"type":66,"value":815},{"type":60,"tag":592,"props":6934,"children":6935},{"style":611},[6936],{"type":66,"value":6725},{"type":60,"tag":592,"props":6938,"children":6939},{"style":845},[6940],{"type":66,"value":971},{"type":60,"tag":592,"props":6942,"children":6944},{"class":594,"line":6943},151,[6945,6949,6953,6957],{"type":60,"tag":592,"props":6946,"children":6947},{"style":605},[6948],{"type":66,"value":4283},{"type":60,"tag":592,"props":6950,"children":6951},{"style":808},[6952],{"type":66,"value":4628},{"type":60,"tag":592,"props":6954,"children":6955},{"style":845},[6956],{"type":66,"value":815},{"type":60,"tag":592,"props":6958,"children":6959},{"style":605},[6960],{"type":66,"value":4693},{"type":60,"tag":592,"props":6962,"children":6964},{"class":594,"line":6963},152,[6965,6970,6974,6979,6983,6987],{"type":60,"tag":592,"props":6966,"children":6967},{"style":845},[6968],{"type":66,"value":6969},"          interruptId",{"type":60,"tag":592,"props":6971,"children":6972},{"style":605},[6973],{"type":66,"value":853},{"type":60,"tag":592,"props":6975,"children":6976},{"style":611},[6977],{"type":66,"value":6978}," record",{"type":60,"tag":592,"props":6980,"children":6981},{"style":605},[6982],{"type":66,"value":883},{"type":60,"tag":592,"props":6984,"children":6985},{"style":611},[6986],{"type":66,"value":3829},{"type":60,"tag":592,"props":6988,"children":6989},{"style":605},[6990],{"type":66,"value":898},{"type":60,"tag":592,"props":6992,"children":6994},{"class":594,"line":6993},153,[6995,7000,7004,7008,7012,7016],{"type":60,"tag":592,"props":6996,"children":6997},{"style":845},[6998],{"type":66,"value":6999},"          runId",{"type":60,"tag":592,"props":7001,"children":7002},{"style":605},[7003],{"type":66,"value":853},{"type":60,"tag":592,"props":7005,"children":7006},{"style":611},[7007],{"type":66,"value":6978},{"type":60,"tag":592,"props":7009,"children":7010},{"style":605},[7011],{"type":66,"value":883},{"type":60,"tag":592,"props":7013,"children":7014},{"style":611},[7015],{"type":66,"value":3368},{"type":60,"tag":592,"props":7017,"children":7018},{"style":605},[7019],{"type":66,"value":898},{"type":60,"tag":592,"props":7021,"children":7023},{"class":594,"line":7022},154,[7024,7029,7033,7037,7041,7045],{"type":60,"tag":592,"props":7025,"children":7026},{"style":845},[7027],{"type":66,"value":7028},"          threadId",{"type":60,"tag":592,"props":7030,"children":7031},{"style":605},[7032],{"type":66,"value":853},{"type":60,"tag":592,"props":7034,"children":7035},{"style":611},[7036],{"type":66,"value":6978},{"type":60,"tag":592,"props":7038,"children":7039},{"style":605},[7040],{"type":66,"value":883},{"type":60,"tag":592,"props":7042,"children":7043},{"style":611},[7044],{"type":66,"value":3397},{"type":60,"tag":592,"props":7046,"children":7047},{"style":605},[7048],{"type":66,"value":898},{"type":60,"tag":592,"props":7050,"children":7052},{"class":594,"line":7051},155,[7053,7058,7062,7066,7071,7075],{"type":60,"tag":592,"props":7054,"children":7055},{"style":845},[7056],{"type":66,"value":7057},"          status",{"type":60,"tag":592,"props":7059,"children":7060},{"style":605},[7061],{"type":66,"value":853},{"type":60,"tag":592,"props":7063,"children":7064},{"style":605},[7065],{"type":66,"value":657},{"type":60,"tag":592,"props":7067,"children":7068},{"style":660},[7069],{"type":66,"value":7070},"pending",{"type":60,"tag":592,"props":7072,"children":7073},{"style":605},[7074],{"type":66,"value":820},{"type":60,"tag":592,"props":7076,"children":7077},{"style":605},[7078],{"type":66,"value":898},{"type":60,"tag":592,"props":7080,"children":7082},{"class":594,"line":7081},156,[7083,7088,7092,7096,7100,7104],{"type":60,"tag":592,"props":7084,"children":7085},{"style":845},[7086],{"type":66,"value":7087},"          requestedAt",{"type":60,"tag":592,"props":7089,"children":7090},{"style":605},[7091],{"type":66,"value":853},{"type":60,"tag":592,"props":7093,"children":7094},{"style":611},[7095],{"type":66,"value":6978},{"type":60,"tag":592,"props":7097,"children":7098},{"style":605},[7099],{"type":66,"value":883},{"type":60,"tag":592,"props":7101,"children":7102},{"style":611},[7103],{"type":66,"value":3941},{"type":60,"tag":592,"props":7105,"children":7106},{"style":605},[7107],{"type":66,"value":898},{"type":60,"tag":592,"props":7109,"children":7111},{"class":594,"line":7110},157,[7112,7117,7121,7125,7129,7134],{"type":60,"tag":592,"props":7113,"children":7114},{"style":845},[7115],{"type":66,"value":7116},"          payloadJson",{"type":60,"tag":592,"props":7118,"children":7119},{"style":605},[7120],{"type":66,"value":853},{"type":60,"tag":592,"props":7122,"children":7123},{"style":611},[7124],{"type":66,"value":6978},{"type":60,"tag":592,"props":7126,"children":7127},{"style":605},[7128],{"type":66,"value":883},{"type":60,"tag":592,"props":7130,"children":7131},{"style":611},[7132],{"type":66,"value":7133},"payload",{"type":60,"tag":592,"props":7135,"children":7136},{"style":605},[7137],{"type":66,"value":898},{"type":60,"tag":592,"props":7139,"children":7141},{"class":594,"line":7140},158,[7142,7147,7151,7155,7159,7164,7168],{"type":60,"tag":592,"props":7143,"children":7144},{"style":605},[7145],{"type":66,"value":7146},"          ...",{"type":60,"tag":592,"props":7148,"children":7149},{"style":845},[7150],{"type":66,"value":815},{"type":60,"tag":592,"props":7152,"children":7153},{"style":611},[7154],{"type":66,"value":6896},{"type":60,"tag":592,"props":7156,"children":7157},{"style":605},[7158],{"type":66,"value":883},{"type":60,"tag":592,"props":7160,"children":7161},{"style":611},[7162],{"type":66,"value":7163},"response",{"type":60,"tag":592,"props":7165,"children":7166},{"style":605},[7167],{"type":66,"value":5760},{"type":60,"tag":592,"props":7169,"children":7170},{"style":605},[7171],{"type":66,"value":7172}," undefined\n",{"type":60,"tag":592,"props":7174,"children":7176},{"class":594,"line":7175},159,[7177,7182,7186,7191,7195,7199,7203,7207],{"type":60,"tag":592,"props":7178,"children":7179},{"style":605},[7180],{"type":66,"value":7181},"            ?",{"type":60,"tag":592,"props":7183,"children":7184},{"style":605},[7185],{"type":66,"value":608},{"type":60,"tag":592,"props":7187,"children":7188},{"style":845},[7189],{"type":66,"value":7190}," responseJson",{"type":60,"tag":592,"props":7192,"children":7193},{"style":605},[7194],{"type":66,"value":853},{"type":60,"tag":592,"props":7196,"children":7197},{"style":611},[7198],{"type":66,"value":6978},{"type":60,"tag":592,"props":7200,"children":7201},{"style":605},[7202],{"type":66,"value":883},{"type":60,"tag":592,"props":7204,"children":7205},{"style":611},[7206],{"type":66,"value":7163},{"type":60,"tag":592,"props":7208,"children":7209},{"style":605},[7210],{"type":66,"value":5613},{"type":60,"tag":592,"props":7212,"children":7214},{"class":594,"line":7213},160,[7215,7220,7224,7228],{"type":60,"tag":592,"props":7216,"children":7217},{"style":605},[7218],{"type":66,"value":7219},"            :",{"type":60,"tag":592,"props":7221,"children":7222},{"style":605},[7223],{"type":66,"value":3537},{"type":60,"tag":592,"props":7225,"children":7226},{"style":845},[7227],{"type":66,"value":367},{"type":60,"tag":592,"props":7229,"children":7230},{"style":605},[7231],{"type":66,"value":898},{"type":60,"tag":592,"props":7233,"children":7235},{"class":594,"line":7234},161,[7236,7240],{"type":60,"tag":592,"props":7237,"children":7238},{"style":605},[7239],{"type":66,"value":4773},{"type":60,"tag":592,"props":7241,"children":7242},{"style":845},[7243],{"type":66,"value":971},{"type":60,"tag":592,"props":7245,"children":7247},{"class":594,"line":7246},162,[7248,7252,7256,7260,7264,7268,7272,7276,7280,7284,7288],{"type":60,"tag":592,"props":7249,"children":7250},{"style":605},[7251],{"type":66,"value":4283},{"type":60,"tag":592,"props":7253,"children":7254},{"style":808},[7255],{"type":66,"value":5425},{"type":60,"tag":592,"props":7257,"children":7258},{"style":845},[7259],{"type":66,"value":815},{"type":60,"tag":592,"props":7261,"children":7262},{"style":605},[7263],{"type":66,"value":2592},{"type":60,"tag":592,"props":7265,"children":7266},{"style":845},[7267],{"type":66,"value":5438},{"type":60,"tag":592,"props":7269,"children":7270},{"style":605},[7271],{"type":66,"value":853},{"type":60,"tag":592,"props":7273,"children":7274},{"style":611},[7275],{"type":66,"value":3766},{"type":60,"tag":592,"props":7277,"children":7278},{"style":605},[7279],{"type":66,"value":883},{"type":60,"tag":592,"props":7281,"children":7282},{"style":611},[7283],{"type":66,"value":3829},{"type":60,"tag":592,"props":7285,"children":7286},{"style":605},[7287],{"type":66,"value":647},{"type":60,"tag":592,"props":7289,"children":7290},{"style":845},[7291],{"type":66,"value":971},{"type":60,"tag":592,"props":7293,"children":7295},{"class":594,"line":7294},163,[7296],{"type":60,"tag":592,"props":7297,"children":7298},{"style":605},[7299],{"type":66,"value":4495},{"type":60,"tag":592,"props":7301,"children":7303},{"class":594,"line":7302},164,[7304,7308,7313,7317,7321,7325,7329,7333],{"type":60,"tag":592,"props":7305,"children":7306},{"style":792},[7307],{"type":66,"value":4226},{"type":60,"tag":592,"props":7309,"children":7310},{"style":845},[7311],{"type":66,"value":7312}," resolve",{"type":60,"tag":592,"props":7314,"children":7315},{"style":605},[7316],{"type":66,"value":815},{"type":60,"tag":592,"props":7318,"children":7319},{"style":2563},[7320],{"type":66,"value":3829},{"type":60,"tag":592,"props":7322,"children":7323},{"style":605},[7324],{"type":66,"value":619},{"type":60,"tag":592,"props":7326,"children":7327},{"style":2563},[7328],{"type":66,"value":4103},{"type":60,"tag":592,"props":7330,"children":7331},{"style":605},[7332],{"type":66,"value":367},{"type":60,"tag":592,"props":7334,"children":7335},{"style":605},[7336],{"type":66,"value":838},{"type":60,"tag":592,"props":7338,"children":7340},{"class":594,"line":7339},165,[7341,7345],{"type":60,"tag":592,"props":7342,"children":7343},{"style":599},[7344],{"type":66,"value":4586},{"type":60,"tag":592,"props":7346,"children":7347},{"style":611},[7348],{"type":66,"value":3248},{"type":60,"tag":592,"props":7350,"children":7352},{"class":594,"line":7351},166,[7353,7357,7361,7365,7369],{"type":60,"tag":592,"props":7354,"children":7355},{"style":605},[7356],{"type":66,"value":4283},{"type":60,"tag":592,"props":7358,"children":7359},{"style":808},[7360],{"type":66,"value":6090},{"type":60,"tag":592,"props":7362,"children":7363},{"style":845},[7364],{"type":66,"value":815},{"type":60,"tag":592,"props":7366,"children":7367},{"style":611},[7368],{"type":66,"value":6725},{"type":60,"tag":592,"props":7370,"children":7371},{"style":845},[7372],{"type":66,"value":971},{"type":60,"tag":592,"props":7374,"children":7376},{"class":594,"line":7375},167,[7377,7381,7385,7389],{"type":60,"tag":592,"props":7378,"children":7379},{"style":605},[7380],{"type":66,"value":4283},{"type":60,"tag":592,"props":7382,"children":7383},{"style":808},[7384],{"type":66,"value":5774},{"type":60,"tag":592,"props":7386,"children":7387},{"style":845},[7388],{"type":66,"value":815},{"type":60,"tag":592,"props":7390,"children":7391},{"style":605},[7392],{"type":66,"value":4693},{"type":60,"tag":592,"props":7394,"children":7396},{"class":594,"line":7395},168,[7397,7401,7405,7409,7414,7418],{"type":60,"tag":592,"props":7398,"children":7399},{"style":845},[7400],{"type":66,"value":7057},{"type":60,"tag":592,"props":7402,"children":7403},{"style":605},[7404],{"type":66,"value":853},{"type":60,"tag":592,"props":7406,"children":7407},{"style":605},[7408],{"type":66,"value":657},{"type":60,"tag":592,"props":7410,"children":7411},{"style":660},[7412],{"type":66,"value":7413},"resolved",{"type":60,"tag":592,"props":7415,"children":7416},{"style":605},[7417],{"type":66,"value":820},{"type":60,"tag":592,"props":7419,"children":7420},{"style":605},[7421],{"type":66,"value":898},{"type":60,"tag":592,"props":7423,"children":7425},{"class":594,"line":7424},169,[7426,7431,7435,7439,7443,7447,7451],{"type":60,"tag":592,"props":7427,"children":7428},{"style":845},[7429],{"type":66,"value":7430},"          resolvedAt",{"type":60,"tag":592,"props":7432,"children":7433},{"style":605},[7434],{"type":66,"value":853},{"type":60,"tag":592,"props":7436,"children":7437},{"style":611},[7438],{"type":66,"value":4564},{"type":60,"tag":592,"props":7440,"children":7441},{"style":605},[7442],{"type":66,"value":883},{"type":60,"tag":592,"props":7444,"children":7445},{"style":808},[7446],{"type":66,"value":4573},{"type":60,"tag":592,"props":7448,"children":7449},{"style":845},[7450],{"type":66,"value":893},{"type":60,"tag":592,"props":7452,"children":7453},{"style":605},[7454],{"type":66,"value":898},{"type":60,"tag":592,"props":7456,"children":7458},{"class":594,"line":7457},170,[7459,7463,7467,7471,7475,7479,7483,7487,7491,7495,7499,7503,7507,7511,7515],{"type":60,"tag":592,"props":7460,"children":7461},{"style":605},[7462],{"type":66,"value":7146},{"type":60,"tag":592,"props":7464,"children":7465},{"style":845},[7466],{"type":66,"value":815},{"type":60,"tag":592,"props":7468,"children":7469},{"style":611},[7470],{"type":66,"value":7163},{"type":60,"tag":592,"props":7472,"children":7473},{"style":605},[7474],{"type":66,"value":5760},{"type":60,"tag":592,"props":7476,"children":7477},{"style":605},[7478],{"type":66,"value":5765},{"type":60,"tag":592,"props":7480,"children":7481},{"style":605},[7482],{"type":66,"value":3498},{"type":60,"tag":592,"props":7484,"children":7485},{"style":605},[7486],{"type":66,"value":608},{"type":60,"tag":592,"props":7488,"children":7489},{"style":845},[7490],{"type":66,"value":7190},{"type":60,"tag":592,"props":7492,"children":7493},{"style":605},[7494],{"type":66,"value":853},{"type":60,"tag":592,"props":7496,"children":7497},{"style":611},[7498],{"type":66,"value":4103},{"type":60,"tag":592,"props":7500,"children":7501},{"style":605},[7502],{"type":66,"value":647},{"type":60,"tag":592,"props":7504,"children":7505},{"style":605},[7506],{"type":66,"value":3532},{"type":60,"tag":592,"props":7508,"children":7509},{"style":605},[7510],{"type":66,"value":3537},{"type":60,"tag":592,"props":7512,"children":7513},{"style":845},[7514],{"type":66,"value":367},{"type":60,"tag":592,"props":7516,"children":7517},{"style":605},[7518],{"type":66,"value":898},{"type":60,"tag":592,"props":7520,"children":7522},{"class":594,"line":7521},171,[7523,7527],{"type":60,"tag":592,"props":7524,"children":7525},{"style":605},[7526],{"type":66,"value":4773},{"type":60,"tag":592,"props":7528,"children":7529},{"style":845},[7530],{"type":66,"value":971},{"type":60,"tag":592,"props":7532,"children":7534},{"class":594,"line":7533},172,[7535,7539,7543,7547,7551,7555,7559,7563,7567,7571,7576],{"type":60,"tag":592,"props":7536,"children":7537},{"style":605},[7538],{"type":66,"value":4283},{"type":60,"tag":592,"props":7540,"children":7541},{"style":808},[7542],{"type":66,"value":4366},{"type":60,"tag":592,"props":7544,"children":7545},{"style":845},[7546],{"type":66,"value":815},{"type":60,"tag":592,"props":7548,"children":7549},{"style":808},[7550],{"type":66,"value":4375},{"type":60,"tag":592,"props":7552,"children":7553},{"style":845},[7554],{"type":66,"value":815},{"type":60,"tag":592,"props":7556,"children":7557},{"style":611},[7558],{"type":66,"value":6725},{"type":60,"tag":592,"props":7560,"children":7561},{"style":605},[7562],{"type":66,"value":883},{"type":60,"tag":592,"props":7564,"children":7565},{"style":611},[7566],{"type":66,"value":3829},{"type":60,"tag":592,"props":7568,"children":7569},{"style":605},[7570],{"type":66,"value":619},{"type":60,"tag":592,"props":7572,"children":7573},{"style":611},[7574],{"type":66,"value":7575}," interruptId",{"type":60,"tag":592,"props":7577,"children":7578},{"style":845},[7579],{"type":66,"value":4405},{"type":60,"tag":592,"props":7581,"children":7583},{"class":594,"line":7582},173,[7584],{"type":60,"tag":592,"props":7585,"children":7586},{"style":605},[7587],{"type":66,"value":4495},{"type":60,"tag":592,"props":7589,"children":7591},{"class":594,"line":7590},174,[7592,7596,7601,7605,7609,7613],{"type":60,"tag":592,"props":7593,"children":7594},{"style":792},[7595],{"type":66,"value":4226},{"type":60,"tag":592,"props":7597,"children":7598},{"style":845},[7599],{"type":66,"value":7600}," cancel",{"type":60,"tag":592,"props":7602,"children":7603},{"style":605},[7604],{"type":66,"value":815},{"type":60,"tag":592,"props":7606,"children":7607},{"style":2563},[7608],{"type":66,"value":3829},{"type":60,"tag":592,"props":7610,"children":7611},{"style":605},[7612],{"type":66,"value":367},{"type":60,"tag":592,"props":7614,"children":7615},{"style":605},[7616],{"type":66,"value":838},{"type":60,"tag":592,"props":7618,"children":7620},{"class":594,"line":7619},175,[7621,7625],{"type":60,"tag":592,"props":7622,"children":7623},{"style":599},[7624],{"type":66,"value":4586},{"type":60,"tag":592,"props":7626,"children":7627},{"style":611},[7628],{"type":66,"value":3248},{"type":60,"tag":592,"props":7630,"children":7632},{"class":594,"line":7631},176,[7633,7637,7641,7645,7649],{"type":60,"tag":592,"props":7634,"children":7635},{"style":605},[7636],{"type":66,"value":4283},{"type":60,"tag":592,"props":7638,"children":7639},{"style":808},[7640],{"type":66,"value":6090},{"type":60,"tag":592,"props":7642,"children":7643},{"style":845},[7644],{"type":66,"value":815},{"type":60,"tag":592,"props":7646,"children":7647},{"style":611},[7648],{"type":66,"value":6725},{"type":60,"tag":592,"props":7650,"children":7651},{"style":845},[7652],{"type":66,"value":971},{"type":60,"tag":592,"props":7654,"children":7656},{"class":594,"line":7655},177,[7657,7661,7665,7669,7673,7677,7681,7685,7690,7694,7698,7702,7706,7710,7714,7718,7723,7727],{"type":60,"tag":592,"props":7658,"children":7659},{"style":605},[7660],{"type":66,"value":4283},{"type":60,"tag":592,"props":7662,"children":7663},{"style":808},[7664],{"type":66,"value":5774},{"type":60,"tag":592,"props":7666,"children":7667},{"style":845},[7668],{"type":66,"value":815},{"type":60,"tag":592,"props":7670,"children":7671},{"style":605},[7672],{"type":66,"value":2592},{"type":60,"tag":592,"props":7674,"children":7675},{"style":845},[7676],{"type":66,"value":5208},{"type":60,"tag":592,"props":7678,"children":7679},{"style":605},[7680],{"type":66,"value":853},{"type":60,"tag":592,"props":7682,"children":7683},{"style":605},[7684],{"type":66,"value":657},{"type":60,"tag":592,"props":7686,"children":7687},{"style":660},[7688],{"type":66,"value":7689},"cancelled",{"type":60,"tag":592,"props":7691,"children":7692},{"style":605},[7693],{"type":66,"value":820},{"type":60,"tag":592,"props":7695,"children":7696},{"style":605},[7697],{"type":66,"value":619},{"type":60,"tag":592,"props":7699,"children":7700},{"style":845},[7701],{"type":66,"value":4021},{"type":60,"tag":592,"props":7703,"children":7704},{"style":605},[7705],{"type":66,"value":853},{"type":60,"tag":592,"props":7707,"children":7708},{"style":611},[7709],{"type":66,"value":4564},{"type":60,"tag":592,"props":7711,"children":7712},{"style":605},[7713],{"type":66,"value":883},{"type":60,"tag":592,"props":7715,"children":7716},{"style":808},[7717],{"type":66,"value":4573},{"type":60,"tag":592,"props":7719,"children":7720},{"style":845},[7721],{"type":66,"value":7722},"() ",{"type":60,"tag":592,"props":7724,"children":7725},{"style":605},[7726],{"type":66,"value":1099},{"type":60,"tag":592,"props":7728,"children":7729},{"style":845},[7730],{"type":66,"value":971},{"type":60,"tag":592,"props":7732,"children":7734},{"class":594,"line":7733},178,[7735,7739,7743,7747,7751,7755,7759,7763,7767,7771,7775],{"type":60,"tag":592,"props":7736,"children":7737},{"style":605},[7738],{"type":66,"value":4283},{"type":60,"tag":592,"props":7740,"children":7741},{"style":808},[7742],{"type":66,"value":4366},{"type":60,"tag":592,"props":7744,"children":7745},{"style":845},[7746],{"type":66,"value":815},{"type":60,"tag":592,"props":7748,"children":7749},{"style":808},[7750],{"type":66,"value":4375},{"type":60,"tag":592,"props":7752,"children":7753},{"style":845},[7754],{"type":66,"value":815},{"type":60,"tag":592,"props":7756,"children":7757},{"style":611},[7758],{"type":66,"value":6725},{"type":60,"tag":592,"props":7760,"children":7761},{"style":605},[7762],{"type":66,"value":883},{"type":60,"tag":592,"props":7764,"children":7765},{"style":611},[7766],{"type":66,"value":3829},{"type":60,"tag":592,"props":7768,"children":7769},{"style":605},[7770],{"type":66,"value":619},{"type":60,"tag":592,"props":7772,"children":7773},{"style":611},[7774],{"type":66,"value":7575},{"type":60,"tag":592,"props":7776,"children":7777},{"style":845},[7778],{"type":66,"value":4405},{"type":60,"tag":592,"props":7780,"children":7782},{"class":594,"line":7781},179,[7783],{"type":60,"tag":592,"props":7784,"children":7785},{"style":605},[7786],{"type":66,"value":4495},{"type":60,"tag":592,"props":7788,"children":7790},{"class":594,"line":7789},180,[7791,7795,7799,7803,7807,7811],{"type":60,"tag":592,"props":7792,"children":7793},{"style":792},[7794],{"type":66,"value":4226},{"type":60,"tag":592,"props":7796,"children":7797},{"style":845},[7798],{"type":66,"value":4870},{"type":60,"tag":592,"props":7800,"children":7801},{"style":605},[7802],{"type":66,"value":815},{"type":60,"tag":592,"props":7804,"children":7805},{"style":2563},[7806],{"type":66,"value":3829},{"type":60,"tag":592,"props":7808,"children":7809},{"style":605},[7810],{"type":66,"value":367},{"type":60,"tag":592,"props":7812,"children":7813},{"style":605},[7814],{"type":66,"value":838},{"type":60,"tag":592,"props":7816,"children":7818},{"class":594,"line":7817},181,[7819,7823,7827,7831,7835],{"type":60,"tag":592,"props":7820,"children":7821},{"style":792},[7822],{"type":66,"value":4256},{"type":60,"tag":592,"props":7824,"children":7825},{"style":611},[7826],{"type":66,"value":4261},{"type":60,"tag":592,"props":7828,"children":7829},{"style":605},[7830],{"type":66,"value":3238},{"type":60,"tag":592,"props":7832,"children":7833},{"style":599},[7834],{"type":66,"value":4270},{"type":60,"tag":592,"props":7836,"children":7837},{"style":611},[7838],{"type":66,"value":3248},{"type":60,"tag":592,"props":7840,"children":7842},{"class":594,"line":7841},182,[7843,7847,7851],{"type":60,"tag":592,"props":7844,"children":7845},{"style":605},[7846],{"type":66,"value":4283},{"type":60,"tag":592,"props":7848,"children":7849},{"style":808},[7850],{"type":66,"value":4288},{"type":60,"tag":592,"props":7852,"children":7853},{"style":845},[7854],{"type":66,"value":1015},{"type":60,"tag":592,"props":7856,"children":7858},{"class":594,"line":7857},183,[7859,7863,7867,7871,7875],{"type":60,"tag":592,"props":7860,"children":7861},{"style":605},[7862],{"type":66,"value":4283},{"type":60,"tag":592,"props":7864,"children":7865},{"style":808},[7866],{"type":66,"value":4340},{"type":60,"tag":592,"props":7868,"children":7869},{"style":845},[7870],{"type":66,"value":815},{"type":60,"tag":592,"props":7872,"children":7873},{"style":611},[7874],{"type":66,"value":6725},{"type":60,"tag":592,"props":7876,"children":7877},{"style":845},[7878],{"type":66,"value":971},{"type":60,"tag":592,"props":7880,"children":7882},{"class":594,"line":7881},184,[7883,7887,7891,7895,7899,7903,7907,7911,7915,7919,7923],{"type":60,"tag":592,"props":7884,"children":7885},{"style":605},[7886],{"type":66,"value":4283},{"type":60,"tag":592,"props":7888,"children":7889},{"style":808},[7890],{"type":66,"value":4366},{"type":60,"tag":592,"props":7892,"children":7893},{"style":845},[7894],{"type":66,"value":815},{"type":60,"tag":592,"props":7896,"children":7897},{"style":808},[7898],{"type":66,"value":4375},{"type":60,"tag":592,"props":7900,"children":7901},{"style":845},[7902],{"type":66,"value":815},{"type":60,"tag":592,"props":7904,"children":7905},{"style":611},[7906],{"type":66,"value":6725},{"type":60,"tag":592,"props":7908,"children":7909},{"style":605},[7910],{"type":66,"value":883},{"type":60,"tag":592,"props":7912,"children":7913},{"style":611},[7914],{"type":66,"value":3829},{"type":60,"tag":592,"props":7916,"children":7917},{"style":605},[7918],{"type":66,"value":619},{"type":60,"tag":592,"props":7920,"children":7921},{"style":611},[7922],{"type":66,"value":7575},{"type":60,"tag":592,"props":7924,"children":7925},{"style":845},[7926],{"type":66,"value":4405},{"type":60,"tag":592,"props":7928,"children":7930},{"class":594,"line":7929},185,[7931,7935,7939,7943,7947],{"type":60,"tag":592,"props":7932,"children":7933},{"style":605},[7934],{"type":66,"value":4283},{"type":60,"tag":592,"props":7936,"children":7937},{"style":808},[7938],{"type":66,"value":4418},{"type":60,"tag":592,"props":7940,"children":7941},{"style":845},[7942],{"type":66,"value":815},{"type":60,"tag":592,"props":7944,"children":7945},{"style":4425},[7946],{"type":66,"value":4428},{"type":60,"tag":592,"props":7948,"children":7949},{"style":845},[7950],{"type":66,"value":971},{"type":60,"tag":592,"props":7952,"children":7954},{"class":594,"line":7953},186,[7955,7959,7963,7967,7971,7975,7979,7983,7987,7991,7995,7999,8003,8007],{"type":60,"tag":592,"props":7956,"children":7957},{"style":599},[7958],{"type":66,"value":4450},{"type":60,"tag":592,"props":7960,"children":7961},{"style":611},[7962],{"type":66,"value":4261},{"type":60,"tag":592,"props":7964,"children":7965},{"style":845},[7966],{"type":66,"value":1870},{"type":60,"tag":592,"props":7968,"children":7969},{"style":4425},[7970],{"type":66,"value":4463},{"type":60,"tag":592,"props":7972,"children":7973},{"style":845},[7974],{"type":66,"value":5061},{"type":60,"tag":592,"props":7976,"children":7977},{"style":605},[7978],{"type":66,"value":5066},{"type":60,"tag":592,"props":7980,"children":7981},{"style":808},[7982],{"type":66,"value":3741},{"type":60,"tag":592,"props":7984,"children":7985},{"style":845},[7986],{"type":66,"value":815},{"type":60,"tag":592,"props":7988,"children":7989},{"style":611},[7990],{"type":66,"value":5079},{"type":60,"tag":592,"props":7992,"children":7993},{"style":845},[7994],{"type":66,"value":1870},{"type":60,"tag":592,"props":7996,"children":7997},{"style":4425},[7998],{"type":66,"value":4463},{"type":60,"tag":592,"props":8000,"children":8001},{"style":845},[8002],{"type":66,"value":5092},{"type":60,"tag":592,"props":8004,"children":8005},{"style":605},[8006],{"type":66,"value":853},{"type":60,"tag":592,"props":8008,"children":8009},{"style":605},[8010],{"type":66,"value":5101},{"type":60,"tag":592,"props":8012,"children":8014},{"class":594,"line":8013},187,[8015],{"type":60,"tag":592,"props":8016,"children":8017},{"style":605},[8018],{"type":66,"value":4495},{"type":60,"tag":592,"props":8020,"children":8022},{"class":594,"line":8021},188,[8023,8028,8032,8036,8040,8044,8048,8052,8056,8060,8064,8068,8072,8076,8080,8084,8088],{"type":60,"tag":592,"props":8024,"children":8025},{"style":808},[8026],{"type":66,"value":8027},"    list",{"type":60,"tag":592,"props":8029,"children":8030},{"style":605},[8031],{"type":66,"value":853},{"type":60,"tag":592,"props":8033,"children":8034},{"style":605},[8035],{"type":66,"value":169},{"type":60,"tag":592,"props":8037,"children":8038},{"style":2563},[8039],{"type":66,"value":3397},{"type":60,"tag":592,"props":8041,"children":8042},{"style":605},[8043],{"type":66,"value":367},{"type":60,"tag":592,"props":8045,"children":8046},{"style":792},[8047],{"type":66,"value":2574},{"type":60,"tag":592,"props":8049,"children":8050},{"style":808},[8051],{"type":66,"value":6618},{"type":60,"tag":592,"props":8053,"children":8054},{"style":845},[8055],{"type":66,"value":815},{"type":60,"tag":592,"props":8057,"children":8058},{"style":808},[8059],{"type":66,"value":4375},{"type":60,"tag":592,"props":8061,"children":8062},{"style":845},[8063],{"type":66,"value":815},{"type":60,"tag":592,"props":8065,"children":8066},{"style":611},[8067],{"type":66,"value":6725},{"type":60,"tag":592,"props":8069,"children":8070},{"style":605},[8071],{"type":66,"value":883},{"type":60,"tag":592,"props":8073,"children":8074},{"style":611},[8075],{"type":66,"value":3397},{"type":60,"tag":592,"props":8077,"children":8078},{"style":605},[8079],{"type":66,"value":619},{"type":60,"tag":592,"props":8081,"children":8082},{"style":611},[8083],{"type":66,"value":4400},{"type":60,"tag":592,"props":8085,"children":8086},{"style":845},[8087],{"type":66,"value":6382},{"type":60,"tag":592,"props":8089,"children":8090},{"style":605},[8091],{"type":66,"value":898},{"type":60,"tag":592,"props":8093,"children":8095},{"class":594,"line":8094},189,[8096,8101,8105,8109,8113,8117],{"type":60,"tag":592,"props":8097,"children":8098},{"style":808},[8099],{"type":66,"value":8100},"    listPending",{"type":60,"tag":592,"props":8102,"children":8103},{"style":605},[8104],{"type":66,"value":853},{"type":60,"tag":592,"props":8106,"children":8107},{"style":605},[8108],{"type":66,"value":169},{"type":60,"tag":592,"props":8110,"children":8111},{"style":2563},[8112],{"type":66,"value":3397},{"type":60,"tag":592,"props":8114,"children":8115},{"style":605},[8116],{"type":66,"value":367},{"type":60,"tag":592,"props":8118,"children":8119},{"style":792},[8120],{"type":66,"value":8121}," =>\n",{"type":60,"tag":592,"props":8123,"children":8125},{"class":594,"line":8124},190,[8126,8131],{"type":60,"tag":592,"props":8127,"children":8128},{"style":808},[8129],{"type":66,"value":8130},"      listWhere",{"type":60,"tag":592,"props":8132,"children":8133},{"style":845},[8134],{"type":66,"value":2293},{"type":60,"tag":592,"props":8136,"children":8138},{"class":594,"line":8137},191,[8139,8144],{"type":60,"tag":592,"props":8140,"children":8141},{"style":808},[8142],{"type":66,"value":8143},"        and",{"type":60,"tag":592,"props":8145,"children":8146},{"style":845},[8147],{"type":66,"value":2293},{"type":60,"tag":592,"props":8149,"children":8151},{"class":594,"line":8150},192,[8152,8157,8161,8165,8169,8173,8177,8181,8185],{"type":60,"tag":592,"props":8153,"children":8154},{"style":808},[8155],{"type":66,"value":8156},"          eq",{"type":60,"tag":592,"props":8158,"children":8159},{"style":845},[8160],{"type":66,"value":815},{"type":60,"tag":592,"props":8162,"children":8163},{"style":611},[8164],{"type":66,"value":6725},{"type":60,"tag":592,"props":8166,"children":8167},{"style":605},[8168],{"type":66,"value":883},{"type":60,"tag":592,"props":8170,"children":8171},{"style":611},[8172],{"type":66,"value":3397},{"type":60,"tag":592,"props":8174,"children":8175},{"style":605},[8176],{"type":66,"value":619},{"type":60,"tag":592,"props":8178,"children":8179},{"style":611},[8180],{"type":66,"value":4400},{"type":60,"tag":592,"props":8182,"children":8183},{"style":845},[8184],{"type":66,"value":367},{"type":60,"tag":592,"props":8186,"children":8187},{"style":605},[8188],{"type":66,"value":898},{"type":60,"tag":592,"props":8190,"children":8192},{"class":594,"line":8191},193,[8193,8197,8201,8205,8209,8213,8217,8221,8225,8229,8233],{"type":60,"tag":592,"props":8194,"children":8195},{"style":808},[8196],{"type":66,"value":8156},{"type":60,"tag":592,"props":8198,"children":8199},{"style":845},[8200],{"type":66,"value":815},{"type":60,"tag":592,"props":8202,"children":8203},{"style":611},[8204],{"type":66,"value":6725},{"type":60,"tag":592,"props":8206,"children":8207},{"style":605},[8208],{"type":66,"value":883},{"type":60,"tag":592,"props":8210,"children":8211},{"style":611},[8212],{"type":66,"value":1297},{"type":60,"tag":592,"props":8214,"children":8215},{"style":605},[8216],{"type":66,"value":619},{"type":60,"tag":592,"props":8218,"children":8219},{"style":605},[8220],{"type":66,"value":657},{"type":60,"tag":592,"props":8222,"children":8223},{"style":660},[8224],{"type":66,"value":7070},{"type":60,"tag":592,"props":8226,"children":8227},{"style":605},[8228],{"type":66,"value":820},{"type":60,"tag":592,"props":8230,"children":8231},{"style":845},[8232],{"type":66,"value":367},{"type":60,"tag":592,"props":8234,"children":8235},{"style":605},[8236],{"type":66,"value":898},{"type":60,"tag":592,"props":8238,"children":8240},{"class":594,"line":8239},194,[8241,8246],{"type":60,"tag":592,"props":8242,"children":8243},{"style":845},[8244],{"type":66,"value":8245},"        )",{"type":60,"tag":592,"props":8247,"children":8248},{"style":605},[8249],{"type":66,"value":898},{"type":60,"tag":592,"props":8251,"children":8253},{"class":594,"line":8252},195,[8254,8259],{"type":60,"tag":592,"props":8255,"children":8256},{"style":845},[8257],{"type":66,"value":8258},"      )",{"type":60,"tag":592,"props":8260,"children":8261},{"style":605},[8262],{"type":66,"value":898},{"type":60,"tag":592,"props":8264,"children":8266},{"class":594,"line":8265},196,[8267,8272,8276,8280,8284,8288,8292,8296,8300,8304,8308,8312,8316,8320,8324,8328,8332],{"type":60,"tag":592,"props":8268,"children":8269},{"style":808},[8270],{"type":66,"value":8271},"    listByRun",{"type":60,"tag":592,"props":8273,"children":8274},{"style":605},[8275],{"type":66,"value":853},{"type":60,"tag":592,"props":8277,"children":8278},{"style":605},[8279],{"type":66,"value":169},{"type":60,"tag":592,"props":8281,"children":8282},{"style":2563},[8283],{"type":66,"value":3368},{"type":60,"tag":592,"props":8285,"children":8286},{"style":605},[8287],{"type":66,"value":367},{"type":60,"tag":592,"props":8289,"children":8290},{"style":792},[8291],{"type":66,"value":2574},{"type":60,"tag":592,"props":8293,"children":8294},{"style":808},[8295],{"type":66,"value":6618},{"type":60,"tag":592,"props":8297,"children":8298},{"style":845},[8299],{"type":66,"value":815},{"type":60,"tag":592,"props":8301,"children":8302},{"style":808},[8303],{"type":66,"value":4375},{"type":60,"tag":592,"props":8305,"children":8306},{"style":845},[8307],{"type":66,"value":815},{"type":60,"tag":592,"props":8309,"children":8310},{"style":611},[8311],{"type":66,"value":6725},{"type":60,"tag":592,"props":8313,"children":8314},{"style":605},[8315],{"type":66,"value":883},{"type":60,"tag":592,"props":8317,"children":8318},{"style":611},[8319],{"type":66,"value":3368},{"type":60,"tag":592,"props":8321,"children":8322},{"style":605},[8323],{"type":66,"value":619},{"type":60,"tag":592,"props":8325,"children":8326},{"style":611},[8327],{"type":66,"value":5007},{"type":60,"tag":592,"props":8329,"children":8330},{"style":845},[8331],{"type":66,"value":6382},{"type":60,"tag":592,"props":8333,"children":8334},{"style":605},[8335],{"type":66,"value":898},{"type":60,"tag":592,"props":8337,"children":8339},{"class":594,"line":8338},197,[8340,8345,8349,8353,8357,8361],{"type":60,"tag":592,"props":8341,"children":8342},{"style":808},[8343],{"type":66,"value":8344},"    listPendingByRun",{"type":60,"tag":592,"props":8346,"children":8347},{"style":605},[8348],{"type":66,"value":853},{"type":60,"tag":592,"props":8350,"children":8351},{"style":605},[8352],{"type":66,"value":169},{"type":60,"tag":592,"props":8354,"children":8355},{"style":2563},[8356],{"type":66,"value":3368},{"type":60,"tag":592,"props":8358,"children":8359},{"style":605},[8360],{"type":66,"value":367},{"type":60,"tag":592,"props":8362,"children":8363},{"style":792},[8364],{"type":66,"value":8121},{"type":60,"tag":592,"props":8366,"children":8368},{"class":594,"line":8367},198,[8369,8373],{"type":60,"tag":592,"props":8370,"children":8371},{"style":808},[8372],{"type":66,"value":8130},{"type":60,"tag":592,"props":8374,"children":8375},{"style":845},[8376],{"type":66,"value":2293},{"type":60,"tag":592,"props":8378,"children":8380},{"class":594,"line":8379},199,[8381,8385],{"type":60,"tag":592,"props":8382,"children":8383},{"style":808},[8384],{"type":66,"value":8143},{"type":60,"tag":592,"props":8386,"children":8387},{"style":845},[8388],{"type":66,"value":2293},{"type":60,"tag":592,"props":8390,"children":8392},{"class":594,"line":8391},200,[8393,8397,8401,8405,8409,8413,8417,8421,8425],{"type":60,"tag":592,"props":8394,"children":8395},{"style":808},[8396],{"type":66,"value":8156},{"type":60,"tag":592,"props":8398,"children":8399},{"style":845},[8400],{"type":66,"value":815},{"type":60,"tag":592,"props":8402,"children":8403},{"style":611},[8404],{"type":66,"value":6725},{"type":60,"tag":592,"props":8406,"children":8407},{"style":605},[8408],{"type":66,"value":883},{"type":60,"tag":592,"props":8410,"children":8411},{"style":611},[8412],{"type":66,"value":3368},{"type":60,"tag":592,"props":8414,"children":8415},{"style":605},[8416],{"type":66,"value":619},{"type":60,"tag":592,"props":8418,"children":8419},{"style":611},[8420],{"type":66,"value":5007},{"type":60,"tag":592,"props":8422,"children":8423},{"style":845},[8424],{"type":66,"value":367},{"type":60,"tag":592,"props":8426,"children":8427},{"style":605},[8428],{"type":66,"value":898},{"type":60,"tag":592,"props":8430,"children":8432},{"class":594,"line":8431},201,[8433,8437,8441,8445,8449,8453,8457,8461,8465,8469,8473],{"type":60,"tag":592,"props":8434,"children":8435},{"style":808},[8436],{"type":66,"value":8156},{"type":60,"tag":592,"props":8438,"children":8439},{"style":845},[8440],{"type":66,"value":815},{"type":60,"tag":592,"props":8442,"children":8443},{"style":611},[8444],{"type":66,"value":6725},{"type":60,"tag":592,"props":8446,"children":8447},{"style":605},[8448],{"type":66,"value":883},{"type":60,"tag":592,"props":8450,"children":8451},{"style":611},[8452],{"type":66,"value":1297},{"type":60,"tag":592,"props":8454,"children":8455},{"style":605},[8456],{"type":66,"value":619},{"type":60,"tag":592,"props":8458,"children":8459},{"style":605},[8460],{"type":66,"value":657},{"type":60,"tag":592,"props":8462,"children":8463},{"style":660},[8464],{"type":66,"value":7070},{"type":60,"tag":592,"props":8466,"children":8467},{"style":605},[8468],{"type":66,"value":820},{"type":60,"tag":592,"props":8470,"children":8471},{"style":845},[8472],{"type":66,"value":367},{"type":60,"tag":592,"props":8474,"children":8475},{"style":605},[8476],{"type":66,"value":898},{"type":60,"tag":592,"props":8478,"children":8480},{"class":594,"line":8479},202,[8481,8485],{"type":60,"tag":592,"props":8482,"children":8483},{"style":845},[8484],{"type":66,"value":8245},{"type":60,"tag":592,"props":8486,"children":8487},{"style":605},[8488],{"type":66,"value":898},{"type":60,"tag":592,"props":8490,"children":8492},{"class":594,"line":8491},203,[8493,8497],{"type":60,"tag":592,"props":8494,"children":8495},{"style":845},[8496],{"type":66,"value":8258},{"type":60,"tag":592,"props":8498,"children":8499},{"style":605},[8500],{"type":66,"value":898},{"type":60,"tag":592,"props":8502,"children":8504},{"class":594,"line":8503},204,[8505],{"type":60,"tag":592,"props":8506,"children":8507},{"style":605},[8508],{"type":66,"value":3714},{"type":60,"tag":592,"props":8510,"children":8512},{"class":594,"line":8511},205,[8513],{"type":60,"tag":592,"props":8514,"children":8515},{"style":605},[8516],{"type":66,"value":3722},{"type":60,"tag":592,"props":8518,"children":8520},{"class":594,"line":8519},206,[8521],{"type":60,"tag":592,"props":8522,"children":8523},{"emptyLinePlaceholder":777},[8524],{"type":66,"value":780},{"type":60,"tag":592,"props":8526,"children":8528},{"class":594,"line":8527},207,[8529,8533,8538,8542,8546,8550,8554,8558,8563],{"type":60,"tag":592,"props":8530,"children":8531},{"style":792},[8532],{"type":66,"value":3280},{"type":60,"tag":592,"props":8534,"children":8535},{"style":808},[8536],{"type":66,"value":8537}," createMetadataStore",{"type":60,"tag":592,"props":8539,"children":8540},{"style":605},[8541],{"type":66,"value":815},{"type":60,"tag":592,"props":8543,"children":8544},{"style":2563},[8545],{"type":66,"value":104},{"type":60,"tag":592,"props":8547,"children":8548},{"style":605},[8549],{"type":66,"value":853},{"type":60,"tag":592,"props":8551,"children":8552},{"style":993},[8553],{"type":66,"value":3233},{"type":60,"tag":592,"props":8555,"children":8556},{"style":605},[8557],{"type":66,"value":3321},{"type":60,"tag":592,"props":8559,"children":8560},{"style":993},[8561],{"type":66,"value":8562}," MetadataStore",{"type":60,"tag":592,"props":8564,"children":8565},{"style":605},[8566],{"type":66,"value":838},{"type":60,"tag":592,"props":8568,"children":8570},{"class":594,"line":8569},208,[8571,8575],{"type":60,"tag":592,"props":8572,"children":8573},{"style":599},[8574],{"type":66,"value":3338},{"type":60,"tag":592,"props":8576,"children":8577},{"style":605},[8578],{"type":66,"value":838},{"type":60,"tag":592,"props":8580,"children":8582},{"class":594,"line":8581},209,[8583,8587,8591,8595,8599,8603,8608,8612],{"type":60,"tag":592,"props":8584,"children":8585},{"style":792},[8586],{"type":66,"value":4226},{"type":60,"tag":592,"props":8588,"children":8589},{"style":845},[8590],{"type":66,"value":4870},{"type":60,"tag":592,"props":8592,"children":8593},{"style":605},[8594],{"type":66,"value":815},{"type":60,"tag":592,"props":8596,"children":8597},{"style":2563},[8598],{"type":66,"value":2354},{"type":60,"tag":592,"props":8600,"children":8601},{"style":605},[8602],{"type":66,"value":619},{"type":60,"tag":592,"props":8604,"children":8605},{"style":2563},[8606],{"type":66,"value":8607}," key",{"type":60,"tag":592,"props":8609,"children":8610},{"style":605},[8611],{"type":66,"value":367},{"type":60,"tag":592,"props":8613,"children":8614},{"style":605},[8615],{"type":66,"value":838},{"type":60,"tag":592,"props":8617,"children":8619},{"class":594,"line":8618},210,[8620,8624,8628,8632,8636],{"type":60,"tag":592,"props":8621,"children":8622},{"style":792},[8623],{"type":66,"value":4256},{"type":60,"tag":592,"props":8625,"children":8626},{"style":611},[8627],{"type":66,"value":4261},{"type":60,"tag":592,"props":8629,"children":8630},{"style":605},[8631],{"type":66,"value":3238},{"type":60,"tag":592,"props":8633,"children":8634},{"style":599},[8635],{"type":66,"value":4270},{"type":60,"tag":592,"props":8637,"children":8638},{"style":611},[8639],{"type":66,"value":3248},{"type":60,"tag":592,"props":8641,"children":8643},{"class":594,"line":8642},211,[8644,8648,8652,8656,8660,8665,8669,8674,8678,8683,8687],{"type":60,"tag":592,"props":8645,"children":8646},{"style":605},[8647],{"type":66,"value":4283},{"type":60,"tag":592,"props":8649,"children":8650},{"style":808},[8651],{"type":66,"value":4288},{"type":60,"tag":592,"props":8653,"children":8654},{"style":845},[8655],{"type":66,"value":815},{"type":60,"tag":592,"props":8657,"children":8658},{"style":605},[8659],{"type":66,"value":2592},{"type":60,"tag":592,"props":8661,"children":8662},{"style":845},[8663],{"type":66,"value":8664}," valueJson",{"type":60,"tag":592,"props":8666,"children":8667},{"style":605},[8668],{"type":66,"value":853},{"type":60,"tag":592,"props":8670,"children":8671},{"style":611},[8672],{"type":66,"value":8673}," chatMetadata",{"type":60,"tag":592,"props":8675,"children":8676},{"style":605},[8677],{"type":66,"value":883},{"type":60,"tag":592,"props":8679,"children":8680},{"style":611},[8681],{"type":66,"value":8682},"valueJson",{"type":60,"tag":592,"props":8684,"children":8685},{"style":605},[8686],{"type":66,"value":647},{"type":60,"tag":592,"props":8688,"children":8689},{"style":845},[8690],{"type":66,"value":971},{"type":60,"tag":592,"props":8692,"children":8694},{"class":594,"line":8693},212,[8695,8699,8703,8707,8712],{"type":60,"tag":592,"props":8696,"children":8697},{"style":605},[8698],{"type":66,"value":4283},{"type":60,"tag":592,"props":8700,"children":8701},{"style":808},[8702],{"type":66,"value":4340},{"type":60,"tag":592,"props":8704,"children":8705},{"style":845},[8706],{"type":66,"value":815},{"type":60,"tag":592,"props":8708,"children":8709},{"style":611},[8710],{"type":66,"value":8711},"chatMetadata",{"type":60,"tag":592,"props":8713,"children":8714},{"style":845},[8715],{"type":66,"value":971},{"type":60,"tag":592,"props":8717,"children":8719},{"class":594,"line":8718},213,[8720,8724,8728],{"type":60,"tag":592,"props":8721,"children":8722},{"style":605},[8723],{"type":66,"value":4283},{"type":60,"tag":592,"props":8725,"children":8726},{"style":808},[8727],{"type":66,"value":4366},{"type":60,"tag":592,"props":8729,"children":8730},{"style":845},[8731],{"type":66,"value":2293},{"type":60,"tag":592,"props":8733,"children":8735},{"class":594,"line":8734},214,[8736,8740,8744,8748,8752,8756,8760,8764,8768,8773,8777,8781,8785,8789,8793,8797,8801,8805,8809,8813],{"type":60,"tag":592,"props":8737,"children":8738},{"style":808},[8739],{"type":66,"value":6301},{"type":60,"tag":592,"props":8741,"children":8742},{"style":845},[8743],{"type":66,"value":815},{"type":60,"tag":592,"props":8745,"children":8746},{"style":808},[8747],{"type":66,"value":4375},{"type":60,"tag":592,"props":8749,"children":8750},{"style":845},[8751],{"type":66,"value":815},{"type":60,"tag":592,"props":8753,"children":8754},{"style":611},[8755],{"type":66,"value":8711},{"type":60,"tag":592,"props":8757,"children":8758},{"style":605},[8759],{"type":66,"value":883},{"type":60,"tag":592,"props":8761,"children":8762},{"style":611},[8763],{"type":66,"value":2354},{"type":60,"tag":592,"props":8765,"children":8766},{"style":605},[8767],{"type":66,"value":619},{"type":60,"tag":592,"props":8769,"children":8770},{"style":611},[8771],{"type":66,"value":8772}," namespace",{"type":60,"tag":592,"props":8774,"children":8775},{"style":845},[8776],{"type":66,"value":367},{"type":60,"tag":592,"props":8778,"children":8779},{"style":605},[8780],{"type":66,"value":619},{"type":60,"tag":592,"props":8782,"children":8783},{"style":808},[8784],{"type":66,"value":2868},{"type":60,"tag":592,"props":8786,"children":8787},{"style":845},[8788],{"type":66,"value":815},{"type":60,"tag":592,"props":8790,"children":8791},{"style":611},[8792],{"type":66,"value":8711},{"type":60,"tag":592,"props":8794,"children":8795},{"style":605},[8796],{"type":66,"value":883},{"type":60,"tag":592,"props":8798,"children":8799},{"style":611},[8800],{"type":66,"value":2408},{"type":60,"tag":592,"props":8802,"children":8803},{"style":605},[8804],{"type":66,"value":619},{"type":60,"tag":592,"props":8806,"children":8807},{"style":611},[8808],{"type":66,"value":8607},{"type":60,"tag":592,"props":8810,"children":8811},{"style":845},[8812],{"type":66,"value":6382},{"type":60,"tag":592,"props":8814,"children":8815},{"style":605},[8816],{"type":66,"value":898},{"type":60,"tag":592,"props":8818,"children":8820},{"class":594,"line":8819},215,[8821],{"type":60,"tag":592,"props":8822,"children":8823},{"style":845},[8824],{"type":66,"value":6395},{"type":60,"tag":592,"props":8826,"children":8828},{"class":594,"line":8827},216,[8829,8833,8837,8841,8845],{"type":60,"tag":592,"props":8830,"children":8831},{"style":605},[8832],{"type":66,"value":4283},{"type":60,"tag":592,"props":8834,"children":8835},{"style":808},[8836],{"type":66,"value":4418},{"type":60,"tag":592,"props":8838,"children":8839},{"style":845},[8840],{"type":66,"value":815},{"type":60,"tag":592,"props":8842,"children":8843},{"style":4425},[8844],{"type":66,"value":4428},{"type":60,"tag":592,"props":8846,"children":8847},{"style":845},[8848],{"type":66,"value":971},{"type":60,"tag":592,"props":8850,"children":8852},{"class":594,"line":8851},217,[8853,8857,8861,8865,8869,8873,8877,8881,8885],{"type":60,"tag":592,"props":8854,"children":8855},{"style":599},[8856],{"type":66,"value":4450},{"type":60,"tag":592,"props":8858,"children":8859},{"style":611},[8860],{"type":66,"value":4261},{"type":60,"tag":592,"props":8862,"children":8863},{"style":845},[8864],{"type":66,"value":1870},{"type":60,"tag":592,"props":8866,"children":8867},{"style":4425},[8868],{"type":66,"value":4463},{"type":60,"tag":592,"props":8870,"children":8871},{"style":845},[8872],{"type":66,"value":1887},{"type":60,"tag":592,"props":8874,"children":8875},{"style":605},[8876],{"type":66,"value":4472},{"type":60,"tag":592,"props":8878,"children":8879},{"style":611},[8880],{"type":66,"value":8682},{"type":60,"tag":592,"props":8882,"children":8883},{"style":605},[8884],{"type":66,"value":4481},{"type":60,"tag":592,"props":8886,"children":8887},{"style":605},[8888],{"type":66,"value":5101},{"type":60,"tag":592,"props":8890,"children":8892},{"class":594,"line":8891},218,[8893],{"type":60,"tag":592,"props":8894,"children":8895},{"style":605},[8896],{"type":66,"value":4495},{"type":60,"tag":592,"props":8898,"children":8900},{"class":594,"line":8899},219,[8901,8905,8909,8913,8917,8921,8925,8929,8934,8938],{"type":60,"tag":592,"props":8902,"children":8903},{"style":792},[8904],{"type":66,"value":4226},{"type":60,"tag":592,"props":8906,"children":8907},{"style":845},[8908],{"type":66,"value":5690},{"type":60,"tag":592,"props":8910,"children":8911},{"style":605},[8912],{"type":66,"value":815},{"type":60,"tag":592,"props":8914,"children":8915},{"style":2563},[8916],{"type":66,"value":2354},{"type":60,"tag":592,"props":8918,"children":8919},{"style":605},[8920],{"type":66,"value":619},{"type":60,"tag":592,"props":8922,"children":8923},{"style":2563},[8924],{"type":66,"value":8607},{"type":60,"tag":592,"props":8926,"children":8927},{"style":605},[8928],{"type":66,"value":619},{"type":60,"tag":592,"props":8930,"children":8931},{"style":2563},[8932],{"type":66,"value":8933}," value",{"type":60,"tag":592,"props":8935,"children":8936},{"style":605},[8937],{"type":66,"value":367},{"type":60,"tag":592,"props":8939,"children":8940},{"style":605},[8941],{"type":66,"value":838},{"type":60,"tag":592,"props":8943,"children":8945},{"class":594,"line":8944},220,[8946],{"type":60,"tag":592,"props":8947,"children":8948},{"style":3261},[8949],{"type":66,"value":8950},"      \u002F\u002F A JSON-mode column binds JS null as SQL NULL, which the NOT NULL\n",{"type":60,"tag":592,"props":8952,"children":8954},{"class":594,"line":8953},221,[8955],{"type":60,"tag":592,"props":8956,"children":8957},{"style":3261},[8958],{"type":66,"value":8959},"      \u002F\u002F column rejects with an opaque driver error. Fail clearly instead.\n",{"type":60,"tag":592,"props":8961,"children":8963},{"class":594,"line":8962},222,[8964,8968,8972,8977,8982,8986,8990],{"type":60,"tag":592,"props":8965,"children":8966},{"style":599},[8967],{"type":66,"value":5263},{"type":60,"tag":592,"props":8969,"children":8970},{"style":845},[8971],{"type":66,"value":169},{"type":60,"tag":592,"props":8973,"children":8974},{"style":611},[8975],{"type":66,"value":8976},"value",{"type":60,"tag":592,"props":8978,"children":8979},{"style":605},[8980],{"type":66,"value":8981}," ==",{"type":60,"tag":592,"props":8983,"children":8984},{"style":605},[8985],{"type":66,"value":3493},{"type":60,"tag":592,"props":8987,"children":8988},{"style":845},[8989],{"type":66,"value":5277},{"type":60,"tag":592,"props":8991,"children":8992},{"style":605},[8993],{"type":66,"value":4693},{"type":60,"tag":592,"props":8995,"children":8997},{"class":594,"line":8996},223,[8998,9003,9008,9013],{"type":60,"tag":592,"props":8999,"children":9000},{"style":599},[9001],{"type":66,"value":9002},"        throw",{"type":60,"tag":592,"props":9004,"children":9005},{"style":605},[9006],{"type":66,"value":9007}," new",{"type":60,"tag":592,"props":9009,"children":9010},{"style":808},[9011],{"type":66,"value":9012}," TypeError",{"type":60,"tag":592,"props":9014,"children":9015},{"style":845},[9016],{"type":66,"value":2293},{"type":60,"tag":592,"props":9018,"children":9020},{"class":594,"line":9019},224,[9021,9026,9031,9036,9040,9044,9049,9053,9057,9061,9065,9069,9073,9077,9082,9087],{"type":60,"tag":592,"props":9022,"children":9023},{"style":605},[9024],{"type":66,"value":9025},"          `",{"type":60,"tag":592,"props":9027,"children":9028},{"style":660},[9029],{"type":66,"value":9030},"Cannot store ",{"type":60,"tag":592,"props":9032,"children":9033},{"style":605},[9034],{"type":66,"value":9035},"${",{"type":60,"tag":592,"props":9037,"children":9038},{"style":611},[9039],{"type":66,"value":8976},{"type":60,"tag":592,"props":9041,"children":9042},{"style":605},[9043],{"type":66,"value":1099},{"type":60,"tag":592,"props":9045,"children":9046},{"style":660},[9047],{"type":66,"value":9048}," for (",{"type":60,"tag":592,"props":9050,"children":9051},{"style":605},[9052],{"type":66,"value":9035},{"type":60,"tag":592,"props":9054,"children":9055},{"style":611},[9056],{"type":66,"value":2354},{"type":60,"tag":592,"props":9058,"children":9059},{"style":605},[9060],{"type":66,"value":1099},{"type":60,"tag":592,"props":9062,"children":9063},{"style":660},[9064],{"type":66,"value":333},{"type":60,"tag":592,"props":9066,"children":9067},{"style":605},[9068],{"type":66,"value":9035},{"type":60,"tag":592,"props":9070,"children":9071},{"style":611},[9072],{"type":66,"value":2408},{"type":60,"tag":592,"props":9074,"children":9075},{"style":605},[9076],{"type":66,"value":1099},{"type":60,"tag":592,"props":9078,"children":9079},{"style":660},[9080],{"type":66,"value":9081},") — use delete() to clear metadata.",{"type":60,"tag":592,"props":9083,"children":9084},{"style":605},[9085],{"type":66,"value":9086},"`",{"type":60,"tag":592,"props":9088,"children":9089},{"style":605},[9090],{"type":66,"value":898},{"type":60,"tag":592,"props":9092,"children":9094},{"class":594,"line":9093},225,[9095],{"type":60,"tag":592,"props":9096,"children":9097},{"style":845},[9098],{"type":66,"value":6395},{"type":60,"tag":592,"props":9100,"children":9102},{"class":594,"line":9101},226,[9103],{"type":60,"tag":592,"props":9104,"children":9105},{"style":605},[9106],{"type":66,"value":9107},"      }\n",{"type":60,"tag":592,"props":9109,"children":9111},{"class":594,"line":9110},227,[9112,9116],{"type":60,"tag":592,"props":9113,"children":9114},{"style":599},[9115],{"type":66,"value":4586},{"type":60,"tag":592,"props":9117,"children":9118},{"style":611},[9119],{"type":66,"value":3248},{"type":60,"tag":592,"props":9121,"children":9123},{"class":594,"line":9122},228,[9124,9128,9132,9136,9140],{"type":60,"tag":592,"props":9125,"children":9126},{"style":605},[9127],{"type":66,"value":4283},{"type":60,"tag":592,"props":9129,"children":9130},{"style":808},[9131],{"type":66,"value":4603},{"type":60,"tag":592,"props":9133,"children":9134},{"style":845},[9135],{"type":66,"value":815},{"type":60,"tag":592,"props":9137,"children":9138},{"style":611},[9139],{"type":66,"value":8711},{"type":60,"tag":592,"props":9141,"children":9142},{"style":845},[9143],{"type":66,"value":971},{"type":60,"tag":592,"props":9145,"children":9147},{"class":594,"line":9146},229,[9148,9152,9156,9160,9164,9168,9172,9176,9180,9184,9188,9192,9196],{"type":60,"tag":592,"props":9149,"children":9150},{"style":605},[9151],{"type":66,"value":4283},{"type":60,"tag":592,"props":9153,"children":9154},{"style":808},[9155],{"type":66,"value":4628},{"type":60,"tag":592,"props":9157,"children":9158},{"style":845},[9159],{"type":66,"value":815},{"type":60,"tag":592,"props":9161,"children":9162},{"style":605},[9163],{"type":66,"value":2592},{"type":60,"tag":592,"props":9165,"children":9166},{"style":611},[9167],{"type":66,"value":8772},{"type":60,"tag":592,"props":9169,"children":9170},{"style":605},[9171],{"type":66,"value":619},{"type":60,"tag":592,"props":9173,"children":9174},{"style":611},[9175],{"type":66,"value":8607},{"type":60,"tag":592,"props":9177,"children":9178},{"style":605},[9179],{"type":66,"value":619},{"type":60,"tag":592,"props":9181,"children":9182},{"style":845},[9183],{"type":66,"value":8664},{"type":60,"tag":592,"props":9185,"children":9186},{"style":605},[9187],{"type":66,"value":853},{"type":60,"tag":592,"props":9189,"children":9190},{"style":611},[9191],{"type":66,"value":8933},{"type":60,"tag":592,"props":9193,"children":9194},{"style":605},[9195],{"type":66,"value":647},{"type":60,"tag":592,"props":9197,"children":9198},{"style":845},[9199],{"type":66,"value":971},{"type":60,"tag":592,"props":9201,"children":9203},{"class":594,"line":9202},230,[9204,9208,9212,9216],{"type":60,"tag":592,"props":9205,"children":9206},{"style":605},[9207],{"type":66,"value":4283},{"type":60,"tag":592,"props":9209,"children":9210},{"style":808},[9211],{"type":66,"value":2792},{"type":60,"tag":592,"props":9213,"children":9214},{"style":845},[9215],{"type":66,"value":815},{"type":60,"tag":592,"props":9217,"children":9218},{"style":605},[9219],{"type":66,"value":4693},{"type":60,"tag":592,"props":9221,"children":9223},{"class":594,"line":9222},231,[9224,9228,9232,9236,9240,9244,9248,9252,9256,9260,9264,9268],{"type":60,"tag":592,"props":9225,"children":9226},{"style":845},[9227],{"type":66,"value":4702},{"type":60,"tag":592,"props":9229,"children":9230},{"style":605},[9231],{"type":66,"value":853},{"type":60,"tag":592,"props":9233,"children":9234},{"style":845},[9235],{"type":66,"value":2579},{"type":60,"tag":592,"props":9237,"children":9238},{"style":611},[9239],{"type":66,"value":8711},{"type":60,"tag":592,"props":9241,"children":9242},{"style":605},[9243],{"type":66,"value":883},{"type":60,"tag":592,"props":9245,"children":9246},{"style":611},[9247],{"type":66,"value":2354},{"type":60,"tag":592,"props":9249,"children":9250},{"style":605},[9251],{"type":66,"value":619},{"type":60,"tag":592,"props":9253,"children":9254},{"style":611},[9255],{"type":66,"value":8673},{"type":60,"tag":592,"props":9257,"children":9258},{"style":605},[9259],{"type":66,"value":883},{"type":60,"tag":592,"props":9261,"children":9262},{"style":611},[9263],{"type":66,"value":2408},{"type":60,"tag":592,"props":9265,"children":9266},{"style":845},[9267],{"type":66,"value":1887},{"type":60,"tag":592,"props":9269,"children":9270},{"style":605},[9271],{"type":66,"value":898},{"type":60,"tag":592,"props":9273,"children":9275},{"class":594,"line":9274},232,[9276,9280,9284,9288,9292,9296,9300],{"type":60,"tag":592,"props":9277,"children":9278},{"style":845},[9279],{"type":66,"value":4731},{"type":60,"tag":592,"props":9281,"children":9282},{"style":605},[9283],{"type":66,"value":853},{"type":60,"tag":592,"props":9285,"children":9286},{"style":605},[9287],{"type":66,"value":608},{"type":60,"tag":592,"props":9289,"children":9290},{"style":845},[9291],{"type":66,"value":8664},{"type":60,"tag":592,"props":9293,"children":9294},{"style":605},[9295],{"type":66,"value":853},{"type":60,"tag":592,"props":9297,"children":9298},{"style":611},[9299],{"type":66,"value":8933},{"type":60,"tag":592,"props":9301,"children":9302},{"style":605},[9303],{"type":66,"value":4764},{"type":60,"tag":592,"props":9305,"children":9307},{"class":594,"line":9306},233,[9308,9312],{"type":60,"tag":592,"props":9309,"children":9310},{"style":605},[9311],{"type":66,"value":4773},{"type":60,"tag":592,"props":9313,"children":9314},{"style":845},[9315],{"type":66,"value":971},{"type":60,"tag":592,"props":9317,"children":9319},{"class":594,"line":9318},234,[9320],{"type":60,"tag":592,"props":9321,"children":9322},{"style":605},[9323],{"type":66,"value":4495},{"type":60,"tag":592,"props":9325,"children":9327},{"class":594,"line":9326},235,[9328,9332,9337,9341,9345,9349,9353,9357],{"type":60,"tag":592,"props":9329,"children":9330},{"style":792},[9331],{"type":66,"value":4226},{"type":60,"tag":592,"props":9333,"children":9334},{"style":845},[9335],{"type":66,"value":9336}," delete",{"type":60,"tag":592,"props":9338,"children":9339},{"style":605},[9340],{"type":66,"value":815},{"type":60,"tag":592,"props":9342,"children":9343},{"style":2563},[9344],{"type":66,"value":2354},{"type":60,"tag":592,"props":9346,"children":9347},{"style":605},[9348],{"type":66,"value":619},{"type":60,"tag":592,"props":9350,"children":9351},{"style":2563},[9352],{"type":66,"value":8607},{"type":60,"tag":592,"props":9354,"children":9355},{"style":605},[9356],{"type":66,"value":367},{"type":60,"tag":592,"props":9358,"children":9359},{"style":605},[9360],{"type":66,"value":838},{"type":60,"tag":592,"props":9362,"children":9364},{"class":594,"line":9363},236,[9365,9369],{"type":60,"tag":592,"props":9366,"children":9367},{"style":599},[9368],{"type":66,"value":4586},{"type":60,"tag":592,"props":9370,"children":9371},{"style":611},[9372],{"type":66,"value":3248},{"type":60,"tag":592,"props":9374,"children":9376},{"class":594,"line":9375},237,[9377,9381,9386,9390,9394],{"type":60,"tag":592,"props":9378,"children":9379},{"style":605},[9380],{"type":66,"value":4283},{"type":60,"tag":592,"props":9382,"children":9383},{"style":808},[9384],{"type":66,"value":9385},"delete",{"type":60,"tag":592,"props":9387,"children":9388},{"style":845},[9389],{"type":66,"value":815},{"type":60,"tag":592,"props":9391,"children":9392},{"style":611},[9393],{"type":66,"value":8711},{"type":60,"tag":592,"props":9395,"children":9396},{"style":845},[9397],{"type":66,"value":971},{"type":60,"tag":592,"props":9399,"children":9401},{"class":594,"line":9400},238,[9402,9406,9410],{"type":60,"tag":592,"props":9403,"children":9404},{"style":605},[9405],{"type":66,"value":4283},{"type":60,"tag":592,"props":9407,"children":9408},{"style":808},[9409],{"type":66,"value":4366},{"type":60,"tag":592,"props":9411,"children":9412},{"style":845},[9413],{"type":66,"value":2293},{"type":60,"tag":592,"props":9415,"children":9417},{"class":594,"line":9416},239,[9418,9422,9426,9430,9434,9438,9442,9446,9450,9454,9458,9462,9466,9470,9474,9478,9482,9486,9490,9494],{"type":60,"tag":592,"props":9419,"children":9420},{"style":808},[9421],{"type":66,"value":6301},{"type":60,"tag":592,"props":9423,"children":9424},{"style":845},[9425],{"type":66,"value":815},{"type":60,"tag":592,"props":9427,"children":9428},{"style":808},[9429],{"type":66,"value":4375},{"type":60,"tag":592,"props":9431,"children":9432},{"style":845},[9433],{"type":66,"value":815},{"type":60,"tag":592,"props":9435,"children":9436},{"style":611},[9437],{"type":66,"value":8711},{"type":60,"tag":592,"props":9439,"children":9440},{"style":605},[9441],{"type":66,"value":883},{"type":60,"tag":592,"props":9443,"children":9444},{"style":611},[9445],{"type":66,"value":2354},{"type":60,"tag":592,"props":9447,"children":9448},{"style":605},[9449],{"type":66,"value":619},{"type":60,"tag":592,"props":9451,"children":9452},{"style":611},[9453],{"type":66,"value":8772},{"type":60,"tag":592,"props":9455,"children":9456},{"style":845},[9457],{"type":66,"value":367},{"type":60,"tag":592,"props":9459,"children":9460},{"style":605},[9461],{"type":66,"value":619},{"type":60,"tag":592,"props":9463,"children":9464},{"style":808},[9465],{"type":66,"value":2868},{"type":60,"tag":592,"props":9467,"children":9468},{"style":845},[9469],{"type":66,"value":815},{"type":60,"tag":592,"props":9471,"children":9472},{"style":611},[9473],{"type":66,"value":8711},{"type":60,"tag":592,"props":9475,"children":9476},{"style":605},[9477],{"type":66,"value":883},{"type":60,"tag":592,"props":9479,"children":9480},{"style":611},[9481],{"type":66,"value":2408},{"type":60,"tag":592,"props":9483,"children":9484},{"style":605},[9485],{"type":66,"value":619},{"type":60,"tag":592,"props":9487,"children":9488},{"style":611},[9489],{"type":66,"value":8607},{"type":60,"tag":592,"props":9491,"children":9492},{"style":845},[9493],{"type":66,"value":6382},{"type":60,"tag":592,"props":9495,"children":9496},{"style":605},[9497],{"type":66,"value":898},{"type":60,"tag":592,"props":9499,"children":9501},{"class":594,"line":9500},240,[9502],{"type":60,"tag":592,"props":9503,"children":9504},{"style":845},[9505],{"type":66,"value":6395},{"type":60,"tag":592,"props":9507,"children":9509},{"class":594,"line":9508},241,[9510],{"type":60,"tag":592,"props":9511,"children":9512},{"style":605},[9513],{"type":66,"value":4495},{"type":60,"tag":592,"props":9515,"children":9517},{"class":594,"line":9516},242,[9518],{"type":60,"tag":592,"props":9519,"children":9520},{"style":605},[9521],{"type":66,"value":3714},{"type":60,"tag":592,"props":9523,"children":9525},{"class":594,"line":9524},243,[9526],{"type":60,"tag":592,"props":9527,"children":9528},{"style":605},[9529],{"type":66,"value":3722},{"type":60,"tag":592,"props":9531,"children":9533},{"class":594,"line":9532},244,[9534],{"type":60,"tag":592,"props":9535,"children":9536},{"emptyLinePlaceholder":777},[9537],{"type":66,"value":780},{"type":60,"tag":592,"props":9539,"children":9541},{"class":594,"line":9540},245,[9542],{"type":60,"tag":592,"props":9543,"children":9544},{"style":3261},[9545],{"type":66,"value":9546},"\u002F** The four chat state stores backed by the app's Drizzle database. *\u002F\n",{"type":60,"tag":592,"props":9548,"children":9550},{"class":594,"line":9549},246,[9551,9555,9559,9564,9568,9573,9577,9581,9585],{"type":60,"tag":592,"props":9552,"children":9553},{"style":599},[9554],{"type":66,"value":789},{"type":60,"tag":592,"props":9556,"children":9557},{"style":792},[9558],{"type":66,"value":795},{"type":60,"tag":592,"props":9560,"children":9561},{"style":611},[9562],{"type":66,"value":9563}," chatPersistence",{"type":60,"tag":592,"props":9565,"children":9566},{"style":605},[9567],{"type":66,"value":853},{"type":60,"tag":592,"props":9569,"children":9570},{"style":993},[9571],{"type":66,"value":9572}," ChatPersistence",{"type":60,"tag":592,"props":9574,"children":9575},{"style":605},[9576],{"type":66,"value":3238},{"type":60,"tag":592,"props":9578,"children":9579},{"style":808},[9580],{"type":66,"value":2905},{"type":60,"tag":592,"props":9582,"children":9583},{"style":611},[9584],{"type":66,"value":815},{"type":60,"tag":592,"props":9586,"children":9587},{"style":605},[9588],{"type":66,"value":4693},{"type":60,"tag":592,"props":9590,"children":9592},{"class":594,"line":9591},247,[9593,9598,9602],{"type":60,"tag":592,"props":9594,"children":9595},{"style":845},[9596],{"type":66,"value":9597},"  stores",{"type":60,"tag":592,"props":9599,"children":9600},{"style":605},[9601],{"type":66,"value":853},{"type":60,"tag":592,"props":9603,"children":9604},{"style":605},[9605],{"type":66,"value":838},{"type":60,"tag":592,"props":9607,"children":9609},{"class":594,"line":9608},248,[9610,9615,9619,9623,9628],{"type":60,"tag":592,"props":9611,"children":9612},{"style":845},[9613],{"type":66,"value":9614},"    messages",{"type":60,"tag":592,"props":9616,"children":9617},{"style":605},[9618],{"type":66,"value":853},{"type":60,"tag":592,"props":9620,"children":9621},{"style":808},[9622],{"type":66,"value":4176},{"type":60,"tag":592,"props":9624,"children":9625},{"style":611},[9626],{"type":66,"value":9627},"(db)",{"type":60,"tag":592,"props":9629,"children":9630},{"style":605},[9631],{"type":66,"value":898},{"type":60,"tag":592,"props":9633,"children":9635},{"class":594,"line":9634},249,[9636,9641,9645,9649,9653],{"type":60,"tag":592,"props":9637,"children":9638},{"style":845},[9639],{"type":66,"value":9640},"    runs",{"type":60,"tag":592,"props":9642,"children":9643},{"style":605},[9644],{"type":66,"value":853},{"type":60,"tag":592,"props":9646,"children":9647},{"style":808},[9648],{"type":66,"value":4822},{"type":60,"tag":592,"props":9650,"children":9651},{"style":611},[9652],{"type":66,"value":9627},{"type":60,"tag":592,"props":9654,"children":9655},{"style":605},[9656],{"type":66,"value":898},{"type":60,"tag":592,"props":9658,"children":9660},{"class":594,"line":9659},250,[9661,9666,9670,9674,9678],{"type":60,"tag":592,"props":9662,"children":9663},{"style":845},[9664],{"type":66,"value":9665},"    interrupts",{"type":60,"tag":592,"props":9667,"children":9668},{"style":605},[9669],{"type":66,"value":853},{"type":60,"tag":592,"props":9671,"children":9672},{"style":808},[9673],{"type":66,"value":6566},{"type":60,"tag":592,"props":9675,"children":9676},{"style":611},[9677],{"type":66,"value":9627},{"type":60,"tag":592,"props":9679,"children":9680},{"style":605},[9681],{"type":66,"value":898},{"type":60,"tag":592,"props":9683,"children":9685},{"class":594,"line":9684},251,[9686,9691,9695,9699,9703],{"type":60,"tag":592,"props":9687,"children":9688},{"style":845},[9689],{"type":66,"value":9690},"    metadata",{"type":60,"tag":592,"props":9692,"children":9693},{"style":605},[9694],{"type":66,"value":853},{"type":60,"tag":592,"props":9696,"children":9697},{"style":808},[9698],{"type":66,"value":8537},{"type":60,"tag":592,"props":9700,"children":9701},{"style":611},[9702],{"type":66,"value":9627},{"type":60,"tag":592,"props":9704,"children":9705},{"style":605},[9706],{"type":66,"value":898},{"type":60,"tag":592,"props":9708,"children":9710},{"class":594,"line":9709},252,[9711],{"type":60,"tag":592,"props":9712,"children":9713},{"style":605},[9714],{"type":66,"value":2551},{"type":60,"tag":592,"props":9716,"children":9718},{"class":594,"line":9717},253,[9719,9723],{"type":60,"tag":592,"props":9720,"children":9721},{"style":605},[9722],{"type":66,"value":1099},{"type":60,"tag":592,"props":9724,"children":9725},{"style":611},[9726],{"type":66,"value":971},{"type":60,"tag":69,"props":9728,"children":9729},{},[9730,9732,9737,9739,9745,9747,9753,9755,9761,9763,9769,9771,9777,9779,9784],{"type":66,"value":9731},"Annotate ",{"type":60,"tag":83,"props":9733,"children":9735},{"className":9734},[],[9736],{"type":66,"value":96},{"type":66,"value":9738}," — bare ",{"type":60,"tag":83,"props":9740,"children":9742},{"className":9741},[],[9743],{"type":66,"value":9744},"AIPersistence",{"type":66,"value":9746}," is the all-optional bag and\n",{"type":60,"tag":83,"props":9748,"children":9750},{"className":9749},[],[9751],{"type":66,"value":9752},"withPersistence",{"type":66,"value":9754}," rejects it. There is no ",{"type":60,"tag":83,"props":9756,"children":9758},{"className":9757},[],[9759],{"type":66,"value":9760},"locks",{"type":66,"value":9762}," store: ",{"type":60,"tag":83,"props":9764,"children":9766},{"className":9765},[],[9767],{"type":66,"value":9768},"stores",{"type":66,"value":9770}," accepts only\nthose four keys, and coordination is wired separately with ",{"type":60,"tag":83,"props":9772,"children":9774},{"className":9773},[],[9775],{"type":66,"value":9776},"withLocks",{"type":66,"value":9778}," (see\n",{"type":60,"tag":75,"props":9780,"children":9781},{},[9782],{"type":66,"value":9783},"ai-core\u002Flocks",{"type":66,"value":9785},").",{"type":60,"tag":9787,"props":9788,"children":9790},"h3",{"id":9789},"if-db-is-per-request",[9791,9793,9798],{"type":66,"value":9792},"If ",{"type":60,"tag":83,"props":9794,"children":9796},{"className":9795},[],[9797],{"type":66,"value":104},{"type":66,"value":9799}," is per-request",{"type":60,"tag":69,"props":9801,"children":9802},{},[9803],{"type":66,"value":9804},"Workers\u002FD1 and any request-scoped client cannot read a binding at module scope.\nExport a factory instead, and call it inside the handler:",{"type":60,"tag":580,"props":9806,"children":9808},{"className":582,"code":9807,"language":584,"meta":585,"style":586},"type Db = ReturnType\u003Ctypeof getDb>\n\nexport function chatPersistence(): ChatPersistence {\n  const db = getDb()\n  return defineAIPersistence({\n    stores: {\n      messages: createMessageStore(db),\n      runs: createRunStore(db),\n      interrupts: createInterruptStore(db),\n      metadata: createMetadataStore(db),\n    },\n  })\n}\n",[9809],{"type":60,"tag":83,"props":9810,"children":9811},{"__ignoreMap":586},[9812,9846,9853,9881,9904,9923,9939,9971,10003,10035,10067,10074,10086],{"type":60,"tag":592,"props":9813,"children":9814},{"class":594,"line":595},[9815,9819,9823,9827,9832,9836,9841],{"type":60,"tag":592,"props":9816,"children":9817},{"style":792},[9818],{"type":66,"value":3228},{"type":60,"tag":592,"props":9820,"children":9821},{"style":993},[9822],{"type":66,"value":3233},{"type":60,"tag":592,"props":9824,"children":9825},{"style":605},[9826],{"type":66,"value":3238},{"type":60,"tag":592,"props":9828,"children":9829},{"style":993},[9830],{"type":66,"value":9831}," ReturnType",{"type":60,"tag":592,"props":9833,"children":9834},{"style":605},[9835],{"type":66,"value":5704},{"type":60,"tag":592,"props":9837,"children":9838},{"style":611},[9839],{"type":66,"value":9840}," getDb",{"type":60,"tag":592,"props":9842,"children":9843},{"style":605},[9844],{"type":66,"value":9845},">\n",{"type":60,"tag":592,"props":9847,"children":9848},{"class":594,"line":671},[9849],{"type":60,"tag":592,"props":9850,"children":9851},{"emptyLinePlaceholder":777},[9852],{"type":66,"value":780},{"type":60,"tag":592,"props":9854,"children":9855},{"class":594,"line":723},[9856,9860,9864,9868,9873,9877],{"type":60,"tag":592,"props":9857,"children":9858},{"style":599},[9859],{"type":66,"value":789},{"type":60,"tag":592,"props":9861,"children":9862},{"style":792},[9863],{"type":66,"value":4865},{"type":60,"tag":592,"props":9865,"children":9866},{"style":808},[9867],{"type":66,"value":9563},{"type":60,"tag":592,"props":9869,"children":9870},{"style":605},[9871],{"type":66,"value":9872},"():",{"type":60,"tag":592,"props":9874,"children":9875},{"style":993},[9876],{"type":66,"value":9572},{"type":60,"tag":592,"props":9878,"children":9879},{"style":605},[9880],{"type":66,"value":838},{"type":60,"tag":592,"props":9882,"children":9883},{"class":594,"line":773},[9884,9888,9892,9896,9900],{"type":60,"tag":592,"props":9885,"children":9886},{"style":792},[9887],{"type":66,"value":6613},{"type":60,"tag":592,"props":9889,"children":9890},{"style":611},[9891],{"type":66,"value":3110},{"type":60,"tag":592,"props":9893,"children":9894},{"style":605},[9895],{"type":66,"value":3238},{"type":60,"tag":592,"props":9897,"children":9898},{"style":808},[9899],{"type":66,"value":9840},{"type":60,"tag":592,"props":9901,"children":9902},{"style":845},[9903],{"type":66,"value":1015},{"type":60,"tag":592,"props":9905,"children":9906},{"class":594,"line":783},[9907,9911,9915,9919],{"type":60,"tag":592,"props":9908,"children":9909},{"style":599},[9910],{"type":66,"value":3338},{"type":60,"tag":592,"props":9912,"children":9913},{"style":808},[9914],{"type":66,"value":2905},{"type":60,"tag":592,"props":9916,"children":9917},{"style":845},[9918],{"type":66,"value":815},{"type":60,"tag":592,"props":9920,"children":9921},{"style":605},[9922],{"type":66,"value":4693},{"type":60,"tag":592,"props":9924,"children":9925},{"class":594,"line":841},[9926,9931,9935],{"type":60,"tag":592,"props":9927,"children":9928},{"style":845},[9929],{"type":66,"value":9930},"    stores",{"type":60,"tag":592,"props":9932,"children":9933},{"style":605},[9934],{"type":66,"value":853},{"type":60,"tag":592,"props":9936,"children":9937},{"style":605},[9938],{"type":66,"value":838},{"type":60,"tag":592,"props":9940,"children":9941},{"class":594,"line":901},[9942,9947,9951,9955,9959,9963,9967],{"type":60,"tag":592,"props":9943,"children":9944},{"style":845},[9945],{"type":66,"value":9946},"      messages",{"type":60,"tag":592,"props":9948,"children":9949},{"style":605},[9950],{"type":66,"value":853},{"type":60,"tag":592,"props":9952,"children":9953},{"style":808},[9954],{"type":66,"value":4176},{"type":60,"tag":592,"props":9956,"children":9957},{"style":845},[9958],{"type":66,"value":815},{"type":60,"tag":592,"props":9960,"children":9961},{"style":611},[9962],{"type":66,"value":104},{"type":60,"tag":592,"props":9964,"children":9965},{"style":845},[9966],{"type":66,"value":367},{"type":60,"tag":592,"props":9968,"children":9969},{"style":605},[9970],{"type":66,"value":898},{"type":60,"tag":592,"props":9972,"children":9973},{"class":594,"line":974},[9974,9979,9983,9987,9991,9995,9999],{"type":60,"tag":592,"props":9975,"children":9976},{"style":845},[9977],{"type":66,"value":9978},"      runs",{"type":60,"tag":592,"props":9980,"children":9981},{"style":605},[9982],{"type":66,"value":853},{"type":60,"tag":592,"props":9984,"children":9985},{"style":808},[9986],{"type":66,"value":4822},{"type":60,"tag":592,"props":9988,"children":9989},{"style":845},[9990],{"type":66,"value":815},{"type":60,"tag":592,"props":9992,"children":9993},{"style":611},[9994],{"type":66,"value":104},{"type":60,"tag":592,"props":9996,"children":9997},{"style":845},[9998],{"type":66,"value":367},{"type":60,"tag":592,"props":10000,"children":10001},{"style":605},[10002],{"type":66,"value":898},{"type":60,"tag":592,"props":10004,"children":10005},{"class":594,"line":1018},[10006,10011,10015,10019,10023,10027,10031],{"type":60,"tag":592,"props":10007,"children":10008},{"style":845},[10009],{"type":66,"value":10010},"      interrupts",{"type":60,"tag":592,"props":10012,"children":10013},{"style":605},[10014],{"type":66,"value":853},{"type":60,"tag":592,"props":10016,"children":10017},{"style":808},[10018],{"type":66,"value":6566},{"type":60,"tag":592,"props":10020,"children":10021},{"style":845},[10022],{"type":66,"value":815},{"type":60,"tag":592,"props":10024,"children":10025},{"style":611},[10026],{"type":66,"value":104},{"type":60,"tag":592,"props":10028,"children":10029},{"style":845},[10030],{"type":66,"value":367},{"type":60,"tag":592,"props":10032,"children":10033},{"style":605},[10034],{"type":66,"value":898},{"type":60,"tag":592,"props":10036,"children":10037},{"class":594,"line":1039},[10038,10043,10047,10051,10055,10059,10063],{"type":60,"tag":592,"props":10039,"children":10040},{"style":845},[10041],{"type":66,"value":10042},"      metadata",{"type":60,"tag":592,"props":10044,"children":10045},{"style":605},[10046],{"type":66,"value":853},{"type":60,"tag":592,"props":10048,"children":10049},{"style":808},[10050],{"type":66,"value":8537},{"type":60,"tag":592,"props":10052,"children":10053},{"style":845},[10054],{"type":66,"value":815},{"type":60,"tag":592,"props":10056,"children":10057},{"style":611},[10058],{"type":66,"value":104},{"type":60,"tag":592,"props":10060,"children":10061},{"style":845},[10062],{"type":66,"value":367},{"type":60,"tag":592,"props":10064,"children":10065},{"style":605},[10066],{"type":66,"value":898},{"type":60,"tag":592,"props":10068,"children":10069},{"class":594,"line":1093},[10070],{"type":60,"tag":592,"props":10071,"children":10072},{"style":605},[10073],{"type":66,"value":4495},{"type":60,"tag":592,"props":10075,"children":10076},{"class":594,"line":1106},[10077,10082],{"type":60,"tag":592,"props":10078,"children":10079},{"style":605},[10080],{"type":66,"value":10081},"  }",{"type":60,"tag":592,"props":10083,"children":10084},{"style":845},[10085],{"type":66,"value":971},{"type":60,"tag":592,"props":10087,"children":10088},{"class":594,"line":1114},[10089],{"type":60,"tag":592,"props":10090,"children":10091},{"style":605},[10092],{"type":66,"value":3722},{"type":60,"tag":69,"props":10094,"children":10095},{},[10096,10098,10103],{"type":66,"value":10097},"The store factories are unchanged — only the export flips from a const to a\nfunction. For D1 specifically, see\n",{"type":60,"tag":75,"props":10099,"children":10100},{},[10101],{"type":66,"value":10102},"ai-persistence\u002Fbuild-cloudflare-adapter",{"type":66,"value":883},{"type":60,"tag":179,"props":10105,"children":10107},{"id":10106},"_4-wire-it-into-the-chat-route",[10108],{"type":66,"value":10109},"4. Wire it into the chat route",{"type":60,"tag":580,"props":10111,"children":10113},{"className":582,"code":10112,"language":584,"meta":585,"style":586},"import {\n  chat,\n  chatParamsFromRequest,\n  toServerSentEventsResponse,\n} from '@tanstack\u002Fai'\nimport { openaiText } from '@tanstack\u002Fai-openai'\nimport { withPersistence } from '@tanstack\u002Fai-persistence'\nimport { chatPersistence } from '@\u002Flib\u002Fchat-persistence'\n\nexport async function POST(request: Request) {\n  const params = await chatParamsFromRequest(request)\n  const stream = chat({\n    adapter: openaiText('gpt-5.5'),\n    messages: params.messages,\n    threadId: params.threadId,\n    runId: params.runId,\n    ...(params.resume ? { resume: params.resume } : {}),\n    middleware: [withPersistence(chatPersistence)],\n  })\n  return toServerSentEventsResponse(stream)\n}\n",[10114],{"type":60,"tag":83,"props":10115,"children":10116},{"__ignoreMap":586},[10117,10128,10140,10152,10164,10187,10224,10260,10296,10303,10349,10386,10415,10456,10483,10510,10537,10611,10648,10659,10684],{"type":60,"tag":592,"props":10118,"children":10119},{"class":594,"line":595},[10120,10124],{"type":60,"tag":592,"props":10121,"children":10122},{"style":599},[10123],{"type":66,"value":602},{"type":60,"tag":592,"props":10125,"children":10126},{"style":605},[10127],{"type":66,"value":838},{"type":60,"tag":592,"props":10129,"children":10130},{"class":594,"line":671},[10131,10136],{"type":60,"tag":592,"props":10132,"children":10133},{"style":611},[10134],{"type":66,"value":10135},"  chat",{"type":60,"tag":592,"props":10137,"children":10138},{"style":605},[10139],{"type":66,"value":898},{"type":60,"tag":592,"props":10141,"children":10142},{"class":594,"line":723},[10143,10148],{"type":60,"tag":592,"props":10144,"children":10145},{"style":611},[10146],{"type":66,"value":10147},"  chatParamsFromRequest",{"type":60,"tag":592,"props":10149,"children":10150},{"style":605},[10151],{"type":66,"value":898},{"type":60,"tag":592,"props":10153,"children":10154},{"class":594,"line":773},[10155,10160],{"type":60,"tag":592,"props":10156,"children":10157},{"style":611},[10158],{"type":66,"value":10159},"  toServerSentEventsResponse",{"type":60,"tag":592,"props":10161,"children":10162},{"style":605},[10163],{"type":66,"value":898},{"type":60,"tag":592,"props":10165,"children":10166},{"class":594,"line":783},[10167,10171,10175,10179,10183],{"type":60,"tag":592,"props":10168,"children":10169},{"style":605},[10170],{"type":66,"value":1099},{"type":60,"tag":592,"props":10172,"children":10173},{"style":599},[10174],{"type":66,"value":652},{"type":60,"tag":592,"props":10176,"children":10177},{"style":605},[10178],{"type":66,"value":657},{"type":60,"tag":592,"props":10180,"children":10181},{"style":660},[10182],{"type":66,"value":716},{"type":60,"tag":592,"props":10184,"children":10185},{"style":605},[10186],{"type":66,"value":668},{"type":60,"tag":592,"props":10188,"children":10189},{"class":594,"line":841},[10190,10194,10198,10203,10207,10211,10215,10220],{"type":60,"tag":592,"props":10191,"children":10192},{"style":599},[10193],{"type":66,"value":602},{"type":60,"tag":592,"props":10195,"children":10196},{"style":605},[10197],{"type":66,"value":608},{"type":60,"tag":592,"props":10199,"children":10200},{"style":611},[10201],{"type":66,"value":10202}," openaiText",{"type":60,"tag":592,"props":10204,"children":10205},{"style":605},[10206],{"type":66,"value":647},{"type":60,"tag":592,"props":10208,"children":10209},{"style":599},[10210],{"type":66,"value":652},{"type":60,"tag":592,"props":10212,"children":10213},{"style":605},[10214],{"type":66,"value":657},{"type":60,"tag":592,"props":10216,"children":10217},{"style":660},[10218],{"type":66,"value":10219},"@tanstack\u002Fai-openai",{"type":60,"tag":592,"props":10221,"children":10222},{"style":605},[10223],{"type":66,"value":668},{"type":60,"tag":592,"props":10225,"children":10226},{"class":594,"line":901},[10227,10231,10235,10240,10244,10248,10252,10256],{"type":60,"tag":592,"props":10228,"children":10229},{"style":599},[10230],{"type":66,"value":602},{"type":60,"tag":592,"props":10232,"children":10233},{"style":605},[10234],{"type":66,"value":608},{"type":60,"tag":592,"props":10236,"children":10237},{"style":611},[10238],{"type":66,"value":10239}," withPersistence",{"type":60,"tag":592,"props":10241,"children":10242},{"style":605},[10243],{"type":66,"value":647},{"type":60,"tag":592,"props":10245,"children":10246},{"style":599},[10247],{"type":66,"value":652},{"type":60,"tag":592,"props":10249,"children":10250},{"style":605},[10251],{"type":66,"value":657},{"type":60,"tag":592,"props":10253,"children":10254},{"style":660},[10255],{"type":66,"value":167},{"type":60,"tag":592,"props":10257,"children":10258},{"style":605},[10259],{"type":66,"value":668},{"type":60,"tag":592,"props":10261,"children":10262},{"class":594,"line":974},[10263,10267,10271,10275,10279,10283,10287,10292],{"type":60,"tag":592,"props":10264,"children":10265},{"style":599},[10266],{"type":66,"value":602},{"type":60,"tag":592,"props":10268,"children":10269},{"style":605},[10270],{"type":66,"value":608},{"type":60,"tag":592,"props":10272,"children":10273},{"style":611},[10274],{"type":66,"value":9563},{"type":60,"tag":592,"props":10276,"children":10277},{"style":605},[10278],{"type":66,"value":647},{"type":60,"tag":592,"props":10280,"children":10281},{"style":599},[10282],{"type":66,"value":652},{"type":60,"tag":592,"props":10284,"children":10285},{"style":605},[10286],{"type":66,"value":657},{"type":60,"tag":592,"props":10288,"children":10289},{"style":660},[10290],{"type":66,"value":10291},"@\u002Flib\u002Fchat-persistence",{"type":60,"tag":592,"props":10293,"children":10294},{"style":605},[10295],{"type":66,"value":668},{"type":60,"tag":592,"props":10297,"children":10298},{"class":594,"line":1018},[10299],{"type":60,"tag":592,"props":10300,"children":10301},{"emptyLinePlaceholder":777},[10302],{"type":66,"value":780},{"type":60,"tag":592,"props":10304,"children":10305},{"class":594,"line":1039},[10306,10310,10314,10318,10323,10327,10332,10336,10341,10345],{"type":60,"tag":592,"props":10307,"children":10308},{"style":599},[10309],{"type":66,"value":789},{"type":60,"tag":592,"props":10311,"children":10312},{"style":792},[10313],{"type":66,"value":6627},{"type":60,"tag":592,"props":10315,"children":10316},{"style":792},[10317],{"type":66,"value":4865},{"type":60,"tag":592,"props":10319,"children":10320},{"style":808},[10321],{"type":66,"value":10322}," POST",{"type":60,"tag":592,"props":10324,"children":10325},{"style":605},[10326],{"type":66,"value":815},{"type":60,"tag":592,"props":10328,"children":10329},{"style":2563},[10330],{"type":66,"value":10331},"request",{"type":60,"tag":592,"props":10333,"children":10334},{"style":605},[10335],{"type":66,"value":853},{"type":60,"tag":592,"props":10337,"children":10338},{"style":993},[10339],{"type":66,"value":10340}," Request",{"type":60,"tag":592,"props":10342,"children":10343},{"style":605},[10344],{"type":66,"value":367},{"type":60,"tag":592,"props":10346,"children":10347},{"style":605},[10348],{"type":66,"value":838},{"type":60,"tag":592,"props":10350,"children":10351},{"class":594,"line":1093},[10352,10356,10361,10365,10369,10374,10378,10382],{"type":60,"tag":592,"props":10353,"children":10354},{"style":792},[10355],{"type":66,"value":6613},{"type":60,"tag":592,"props":10357,"children":10358},{"style":611},[10359],{"type":66,"value":10360}," params",{"type":60,"tag":592,"props":10362,"children":10363},{"style":605},[10364],{"type":66,"value":3238},{"type":60,"tag":592,"props":10366,"children":10367},{"style":599},[10368],{"type":66,"value":4270},{"type":60,"tag":592,"props":10370,"children":10371},{"style":808},[10372],{"type":66,"value":10373}," chatParamsFromRequest",{"type":60,"tag":592,"props":10375,"children":10376},{"style":845},[10377],{"type":66,"value":815},{"type":60,"tag":592,"props":10379,"children":10380},{"style":611},[10381],{"type":66,"value":10331},{"type":60,"tag":592,"props":10383,"children":10384},{"style":845},[10385],{"type":66,"value":971},{"type":60,"tag":592,"props":10387,"children":10388},{"class":594,"line":1106},[10389,10393,10398,10402,10407,10411],{"type":60,"tag":592,"props":10390,"children":10391},{"style":792},[10392],{"type":66,"value":6613},{"type":60,"tag":592,"props":10394,"children":10395},{"style":611},[10396],{"type":66,"value":10397}," stream",{"type":60,"tag":592,"props":10399,"children":10400},{"style":605},[10401],{"type":66,"value":3238},{"type":60,"tag":592,"props":10403,"children":10404},{"style":808},[10405],{"type":66,"value":10406}," chat",{"type":60,"tag":592,"props":10408,"children":10409},{"style":845},[10410],{"type":66,"value":815},{"type":60,"tag":592,"props":10412,"children":10413},{"style":605},[10414],{"type":66,"value":4693},{"type":60,"tag":592,"props":10416,"children":10417},{"class":594,"line":1114},[10418,10423,10427,10431,10435,10439,10444,10448,10452],{"type":60,"tag":592,"props":10419,"children":10420},{"style":845},[10421],{"type":66,"value":10422},"    adapter",{"type":60,"tag":592,"props":10424,"children":10425},{"style":605},[10426],{"type":66,"value":853},{"type":60,"tag":592,"props":10428,"children":10429},{"style":808},[10430],{"type":66,"value":10202},{"type":60,"tag":592,"props":10432,"children":10433},{"style":845},[10434],{"type":66,"value":815},{"type":60,"tag":592,"props":10436,"children":10437},{"style":605},[10438],{"type":66,"value":820},{"type":60,"tag":592,"props":10440,"children":10441},{"style":660},[10442],{"type":66,"value":10443},"gpt-5.5",{"type":60,"tag":592,"props":10445,"children":10446},{"style":605},[10447],{"type":66,"value":820},{"type":60,"tag":592,"props":10449,"children":10450},{"style":845},[10451],{"type":66,"value":367},{"type":60,"tag":592,"props":10453,"children":10454},{"style":605},[10455],{"type":66,"value":898},{"type":60,"tag":592,"props":10457,"children":10458},{"class":594,"line":1164},[10459,10463,10467,10471,10475,10479],{"type":60,"tag":592,"props":10460,"children":10461},{"style":845},[10462],{"type":66,"value":9614},{"type":60,"tag":592,"props":10464,"children":10465},{"style":605},[10466],{"type":66,"value":853},{"type":60,"tag":592,"props":10468,"children":10469},{"style":611},[10470],{"type":66,"value":10360},{"type":60,"tag":592,"props":10472,"children":10473},{"style":605},[10474],{"type":66,"value":883},{"type":60,"tag":592,"props":10476,"children":10477},{"style":611},[10478],{"type":66,"value":507},{"type":60,"tag":592,"props":10480,"children":10481},{"style":605},[10482],{"type":66,"value":898},{"type":60,"tag":592,"props":10484,"children":10485},{"class":594,"line":1218},[10486,10490,10494,10498,10502,10506],{"type":60,"tag":592,"props":10487,"children":10488},{"style":845},[10489],{"type":66,"value":3380},{"type":60,"tag":592,"props":10491,"children":10492},{"style":605},[10493],{"type":66,"value":853},{"type":60,"tag":592,"props":10495,"children":10496},{"style":611},[10497],{"type":66,"value":10360},{"type":60,"tag":592,"props":10499,"children":10500},{"style":605},[10501],{"type":66,"value":883},{"type":60,"tag":592,"props":10503,"children":10504},{"style":611},[10505],{"type":66,"value":3397},{"type":60,"tag":592,"props":10507,"children":10508},{"style":605},[10509],{"type":66,"value":898},{"type":60,"tag":592,"props":10511,"children":10512},{"class":594,"line":1270},[10513,10517,10521,10525,10529,10533],{"type":60,"tag":592,"props":10514,"children":10515},{"style":845},[10516],{"type":66,"value":3350},{"type":60,"tag":592,"props":10518,"children":10519},{"style":605},[10520],{"type":66,"value":853},{"type":60,"tag":592,"props":10522,"children":10523},{"style":611},[10524],{"type":66,"value":10360},{"type":60,"tag":592,"props":10526,"children":10527},{"style":605},[10528],{"type":66,"value":883},{"type":60,"tag":592,"props":10530,"children":10531},{"style":611},[10532],{"type":66,"value":3368},{"type":60,"tag":592,"props":10534,"children":10535},{"style":605},[10536],{"type":66,"value":898},{"type":60,"tag":592,"props":10538,"children":10539},{"class":594,"line":1350},[10540,10544,10548,10553,10557,10562,10566,10570,10575,10579,10583,10587,10591,10595,10599,10603,10607],{"type":60,"tag":592,"props":10541,"children":10542},{"style":605},[10543],{"type":66,"value":3466},{"type":60,"tag":592,"props":10545,"children":10546},{"style":845},[10547],{"type":66,"value":815},{"type":60,"tag":592,"props":10549,"children":10550},{"style":611},[10551],{"type":66,"value":10552},"params",{"type":60,"tag":592,"props":10554,"children":10555},{"style":605},[10556],{"type":66,"value":883},{"type":60,"tag":592,"props":10558,"children":10559},{"style":611},[10560],{"type":66,"value":10561},"resume",{"type":60,"tag":592,"props":10563,"children":10564},{"style":605},[10565],{"type":66,"value":3498},{"type":60,"tag":592,"props":10567,"children":10568},{"style":605},[10569],{"type":66,"value":608},{"type":60,"tag":592,"props":10571,"children":10572},{"style":845},[10573],{"type":66,"value":10574}," resume",{"type":60,"tag":592,"props":10576,"children":10577},{"style":605},[10578],{"type":66,"value":853},{"type":60,"tag":592,"props":10580,"children":10581},{"style":611},[10582],{"type":66,"value":10360},{"type":60,"tag":592,"props":10584,"children":10585},{"style":605},[10586],{"type":66,"value":883},{"type":60,"tag":592,"props":10588,"children":10589},{"style":611},[10590],{"type":66,"value":10561},{"type":60,"tag":592,"props":10592,"children":10593},{"style":605},[10594],{"type":66,"value":647},{"type":60,"tag":592,"props":10596,"children":10597},{"style":605},[10598],{"type":66,"value":3532},{"type":60,"tag":592,"props":10600,"children":10601},{"style":605},[10602],{"type":66,"value":3537},{"type":60,"tag":592,"props":10604,"children":10605},{"style":845},[10606],{"type":66,"value":367},{"type":60,"tag":592,"props":10608,"children":10609},{"style":605},[10610],{"type":66,"value":898},{"type":60,"tag":592,"props":10612,"children":10613},{"class":594,"line":1404},[10614,10619,10623,10627,10631,10635,10640,10644],{"type":60,"tag":592,"props":10615,"children":10616},{"style":845},[10617],{"type":66,"value":10618},"    middleware",{"type":60,"tag":592,"props":10620,"children":10621},{"style":605},[10622],{"type":66,"value":853},{"type":60,"tag":592,"props":10624,"children":10625},{"style":845},[10626],{"type":66,"value":2579},{"type":60,"tag":592,"props":10628,"children":10629},{"style":808},[10630],{"type":66,"value":9752},{"type":60,"tag":592,"props":10632,"children":10633},{"style":845},[10634],{"type":66,"value":815},{"type":60,"tag":592,"props":10636,"children":10637},{"style":611},[10638],{"type":66,"value":10639},"chatPersistence",{"type":60,"tag":592,"props":10641,"children":10642},{"style":845},[10643],{"type":66,"value":2641},{"type":60,"tag":592,"props":10645,"children":10646},{"style":605},[10647],{"type":66,"value":898},{"type":60,"tag":592,"props":10649,"children":10650},{"class":594,"line":1446},[10651,10655],{"type":60,"tag":592,"props":10652,"children":10653},{"style":605},[10654],{"type":66,"value":10081},{"type":60,"tag":592,"props":10656,"children":10657},{"style":845},[10658],{"type":66,"value":971},{"type":60,"tag":592,"props":10660,"children":10661},{"class":594,"line":1488},[10662,10666,10671,10675,10680],{"type":60,"tag":592,"props":10663,"children":10664},{"style":599},[10665],{"type":66,"value":3338},{"type":60,"tag":592,"props":10667,"children":10668},{"style":808},[10669],{"type":66,"value":10670}," toServerSentEventsResponse",{"type":60,"tag":592,"props":10672,"children":10673},{"style":845},[10674],{"type":66,"value":815},{"type":60,"tag":592,"props":10676,"children":10677},{"style":611},[10678],{"type":66,"value":10679},"stream",{"type":60,"tag":592,"props":10681,"children":10682},{"style":845},[10683],{"type":66,"value":971},{"type":60,"tag":592,"props":10685,"children":10686},{"class":594,"line":1587},[10687],{"type":60,"tag":592,"props":10688,"children":10689},{"style":605},[10690],{"type":66,"value":3722},{"type":60,"tag":69,"props":10692,"children":10693},{},[10694,10699,10701,10706],{"type":60,"tag":83,"props":10695,"children":10697},{"className":10696},[],[10698],{"type":66,"value":3397},{"type":66,"value":10700}," is a bare string to the stores. ",{"type":60,"tag":75,"props":10702,"children":10703},{},[10704],{"type":66,"value":10705},"Authorize thread access at the\nroute",{"type":66,"value":10707}," — derive the user from the session, never trust a client-supplied id.",{"type":60,"tag":179,"props":10709,"children":10711},{"id":10710},"_5-verify",[10712],{"type":66,"value":10713},"5. Verify",{"type":60,"tag":580,"props":10715,"children":10717},{"className":582,"code":10716,"language":584,"meta":585,"style":586},"import { runPersistenceConformance } from '@tanstack\u002Fai-persistence\u002Ftestkit'\nimport { chatPersistence } from '..\u002Fsrc\u002Flib\u002Fchat-persistence'\n\nrunPersistenceConformance('app-drizzle', () => chatPersistence)\n",[10718],{"type":60,"tag":83,"props":10719,"children":10720},{"__ignoreMap":586},[10721,10758,10794,10801],{"type":60,"tag":592,"props":10722,"children":10723},{"class":594,"line":595},[10724,10728,10732,10737,10741,10745,10749,10754],{"type":60,"tag":592,"props":10725,"children":10726},{"style":599},[10727],{"type":66,"value":602},{"type":60,"tag":592,"props":10729,"children":10730},{"style":605},[10731],{"type":66,"value":608},{"type":60,"tag":592,"props":10733,"children":10734},{"style":611},[10735],{"type":66,"value":10736}," runPersistenceConformance",{"type":60,"tag":592,"props":10738,"children":10739},{"style":605},[10740],{"type":66,"value":647},{"type":60,"tag":592,"props":10742,"children":10743},{"style":599},[10744],{"type":66,"value":652},{"type":60,"tag":592,"props":10746,"children":10747},{"style":605},[10748],{"type":66,"value":657},{"type":60,"tag":592,"props":10750,"children":10751},{"style":660},[10752],{"type":66,"value":10753},"@tanstack\u002Fai-persistence\u002Ftestkit",{"type":60,"tag":592,"props":10755,"children":10756},{"style":605},[10757],{"type":66,"value":668},{"type":60,"tag":592,"props":10759,"children":10760},{"class":594,"line":671},[10761,10765,10769,10773,10777,10781,10785,10790],{"type":60,"tag":592,"props":10762,"children":10763},{"style":599},[10764],{"type":66,"value":602},{"type":60,"tag":592,"props":10766,"children":10767},{"style":605},[10768],{"type":66,"value":608},{"type":60,"tag":592,"props":10770,"children":10771},{"style":611},[10772],{"type":66,"value":9563},{"type":60,"tag":592,"props":10774,"children":10775},{"style":605},[10776],{"type":66,"value":647},{"type":60,"tag":592,"props":10778,"children":10779},{"style":599},[10780],{"type":66,"value":652},{"type":60,"tag":592,"props":10782,"children":10783},{"style":605},[10784],{"type":66,"value":657},{"type":60,"tag":592,"props":10786,"children":10787},{"style":660},[10788],{"type":66,"value":10789},"..\u002Fsrc\u002Flib\u002Fchat-persistence",{"type":60,"tag":592,"props":10791,"children":10792},{"style":605},[10793],{"type":66,"value":668},{"type":60,"tag":592,"props":10795,"children":10796},{"class":594,"line":723},[10797],{"type":60,"tag":592,"props":10798,"children":10799},{"emptyLinePlaceholder":777},[10800],{"type":66,"value":780},{"type":60,"tag":592,"props":10802,"children":10803},{"class":594,"line":773},[10804,10809,10813,10817,10822,10826,10830,10835,10839],{"type":60,"tag":592,"props":10805,"children":10806},{"style":808},[10807],{"type":66,"value":10808},"runPersistenceConformance",{"type":60,"tag":592,"props":10810,"children":10811},{"style":611},[10812],{"type":66,"value":815},{"type":60,"tag":592,"props":10814,"children":10815},{"style":605},[10816],{"type":66,"value":820},{"type":60,"tag":592,"props":10818,"children":10819},{"style":660},[10820],{"type":66,"value":10821},"app-drizzle",{"type":60,"tag":592,"props":10823,"children":10824},{"style":605},[10825],{"type":66,"value":820},{"type":60,"tag":592,"props":10827,"children":10828},{"style":605},[10829],{"type":66,"value":619},{"type":60,"tag":592,"props":10831,"children":10832},{"style":605},[10833],{"type":66,"value":10834}," ()",{"type":60,"tag":592,"props":10836,"children":10837},{"style":792},[10838],{"type":66,"value":2574},{"type":60,"tag":592,"props":10840,"children":10841},{"style":611},[10842],{"type":66,"value":10843}," chatPersistence)\n",{"type":60,"tag":69,"props":10845,"children":10846},{},[10847,10849,10855,10857,10863,10865,10870,10872,10878],{"type":66,"value":10848},"Point it at a throwaway database (",{"type":60,"tag":83,"props":10850,"children":10852},{"className":10851},[],[10853],{"type":66,"value":10854},":memory:",{"type":66,"value":10856}," SQLite, a scratch schema, PGlite)\nthat has the migration applied, and reset between runs. Every store is\nprovided, so there is nothing to ",{"type":60,"tag":83,"props":10858,"children":10860},{"className":10859},[],[10861],{"type":66,"value":10862},"skip",{"type":66,"value":10864}," — and ",{"type":60,"tag":83,"props":10866,"children":10868},{"className":10867},[],[10869],{"type":66,"value":10862},{"type":66,"value":10871}," never accepts ",{"type":60,"tag":83,"props":10873,"children":10875},{"className":10874},[],[10876],{"type":66,"value":10877},"'locks'",{"type":66,"value":10879},",\nwhich is not a state store.",{"type":60,"tag":179,"props":10881,"children":10883},{"id":10882},"only-if-you-are-publishing-this-as-a-package",[10884],{"type":66,"value":10885},"Only if you are publishing this as a package",{"type":60,"tag":69,"props":10887,"children":10888},{},[10889,10891,10896],{"type":66,"value":10890},"Everything above assumes the file lives in the app. If instead you are shipping\na reusable ",{"type":60,"tag":83,"props":10892,"children":10894},{"className":10893},[],[10895],{"type":66,"value":23},{"type":66,"value":10897}," adapter to npm, the same store bodies apply, plus:",{"type":60,"tag":10899,"props":10900,"children":10901},"ul",{},[10902,10955,10979,11012,11030,11071],{"type":60,"tag":10903,"props":10904,"children":10905},"li",{},[10906,10911,10912,10917,10918,10923,10924,10930,10932,10937,10939,10945,10947,10953],{"type":60,"tag":75,"props":10907,"children":10908},{},[10909],{"type":66,"value":10910},"Peer deps",{"type":66,"value":235},{"type":60,"tag":83,"props":10913,"children":10915},{"className":10914},[],[10916],{"type":66,"value":716},{"type":66,"value":333},{"type":60,"tag":83,"props":10919,"children":10921},{"className":10920},[],[10922],{"type":66,"value":167},{"type":66,"value":333},{"type":60,"tag":83,"props":10925,"children":10927},{"className":10926},[],[10928],{"type":66,"value":10929},"drizzle-orm >=0.44.0",{"type":66,"value":10931},";\ndev dep ",{"type":60,"tag":83,"props":10933,"children":10935},{"className":10934},[],[10936],{"type":66,"value":112},{"type":66,"value":10938},". Keep the module root free of Node built-ins so it is\nedge-safe, and put any ",{"type":60,"tag":83,"props":10940,"children":10942},{"className":10941},[],[10943],{"type":66,"value":10944},"node:sqlite",{"type":66,"value":10946}," convenience factory behind a ",{"type":60,"tag":83,"props":10948,"children":10950},{"className":10949},[],[10951],{"type":66,"value":10952},"\u002Fsqlite",{"type":66,"value":10954},"\nsubpath.",{"type":60,"tag":10903,"props":10956,"children":10957},{},[10958,10970,10972,10978],{"type":60,"tag":75,"props":10959,"children":10960},{},[10961,10963,10968],{"type":66,"value":10962},"Type ",{"type":60,"tag":83,"props":10964,"children":10966},{"className":10965},[],[10967],{"type":66,"value":104},{"type":66,"value":10969}," structurally",{"type":66,"value":10971}," so a consumer's client is assignable:\n",{"type":60,"tag":83,"props":10973,"children":10975},{"className":10974},[],[10976],{"type":66,"value":10977},"Pick\u003CBaseSQLiteDatabase\u003C'sync' | 'async', unknown>, 'select' | 'insert' | 'update' | 'delete'>",{"type":66,"value":883},{"type":60,"tag":10903,"props":10980,"children":10981},{},[10982,10987,10989,10995,10997,11002,11004,11010],{"type":60,"tag":75,"props":10983,"children":10984},{},[10985],{"type":66,"value":10986},"Multi-dialect",{"type":66,"value":10988},": take a ",{"type":60,"tag":83,"props":10990,"children":10992},{"className":10991},[],[10993],{"type":66,"value":10994},"provider: 'sqlite' | 'pg'",{"type":66,"value":10996}," option, declare\noverloads so ",{"type":60,"tag":83,"props":10998,"children":11000},{"className":10999},[],[11001],{"type":66,"value":104},{"type":66,"value":11003}," and ",{"type":60,"tag":83,"props":11005,"children":11007},{"className":11006},[],[11008],{"type":66,"value":11009},"schema",{"type":66,"value":11011}," must agree, and add a runtime dialect check so\na mismatched pair fails at construction rather than on first query.",{"type":60,"tag":10903,"props":11013,"children":11014},{},[11015,11020,11022,11028],{"type":60,"tag":75,"props":11016,"children":11017},{},[11018],{"type":66,"value":11019},"BYO schema",{"type":66,"value":11021},": accept ",{"type":60,"tag":83,"props":11023,"children":11025},{"className":11024},[],[11026],{"type":66,"value":11027},"drizzlePersistence(db, { schema })",{"type":66,"value":11029},", validate the\ntables\u002Fcolumns exist at construction, and pin the required column shapes with\na compile-time contract type.",{"type":60,"tag":10903,"props":11031,"children":11032},{},[11033,11038,11040,11046,11048,11053,11055,11061,11063,11069],{"type":60,"tag":75,"props":11034,"children":11035},{},[11036],{"type":66,"value":11037},"Never bundle SQL migrations or a runner.",{"type":66,"value":11039}," Either re-export the stock tables\nfrom a ",{"type":60,"tag":83,"props":11041,"children":11043},{"className":11042},[],[11044],{"type":66,"value":11045},"\u002Fsqlite-schema",{"type":66,"value":11047}," subpath so the consumer's ",{"type":60,"tag":83,"props":11049,"children":11051},{"className":11050},[],[11052],{"type":66,"value":112},{"type":66,"value":11054}," picks them up,\nor emit an owned starter schema file with a small CLI. An opt-in\n",{"type":60,"tag":83,"props":11056,"children":11058},{"className":11057},[],[11059],{"type":66,"value":11060},"ensureTables(db)",{"type":66,"value":11062}," issuing ",{"type":60,"tag":83,"props":11064,"children":11066},{"className":11065},[],[11067],{"type":66,"value":11068},"CREATE TABLE IF NOT EXISTS",{"type":66,"value":11070}," is fine for local dev,\nkept clearly separate from their journal. Pick one DDL owner per database.",{"type":60,"tag":10903,"props":11072,"children":11073},{},[11074,11076,11081],{"type":66,"value":11075},"Run ",{"type":60,"tag":83,"props":11077,"children":11079},{"className":11078},[],[11080],{"type":66,"value":10808},{"type":66,"value":11082}," once per dialect.",{"type":60,"tag":11084,"props":11085,"children":11086},"style",{},[11087],{"type":66,"value":11088},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"items":11090,"total":1815},[11091,11109,11124,11139,11152,11166,11178],{"slug":11092,"name":11092,"fn":11093,"description":11094,"org":11095,"tags":11096,"stars":24,"repoUrl":25,"updatedAt":11108},"ai-code-mode","execute sandboxed TypeScript code with LLMs","LLM-generated TypeScript execution in sandboxed environments: createCodeModeTool() with isolate drivers (createNodeIsolateDriver, createQuickJSIsolateDriver, createCloudflareIsolateDriver), codeModeWithSkills() for persistent skill libraries, trust strategies, skill storage (FileSystem, LocalStorage, InMemory, Mongo), client-side execution progress via code_mode:* custom events in useChat.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11097,11099,11102,11105,11106],{"name":11098,"slug":32,"type":16},"AI SDK",{"name":11100,"slug":11101,"type":16},"Code Execution","code-execution",{"name":11103,"slug":11104,"type":16},"Sandboxing","sandboxing",{"name":10,"slug":9,"type":16},{"name":11107,"slug":46,"type":16},"TypeScript","2026-07-16T06:04:13.597905",{"slug":11110,"name":11110,"fn":11111,"description":11112,"org":11113,"tags":11114,"stars":24,"repoUrl":25,"updatedAt":11123},"ai-core","configure TanStack AI agent features","Entry point for TanStack AI skills. Routes to chat-experience, tool-calling, media-generation, structured-outputs, adapter-configuration, ag-ui-protocol, middleware, locks, custom-backend-integration, and debug-logging, plus the skills shipped by companion packages (@tanstack\u002Fai-persistence, @tanstack\u002Fai-code-mode). Use chat() not streamText(), openaiText() not createOpenAI(), toServerSentEventsResponse() not manual SSE, middleware hooks not onEnd callbacks.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11115,11118,11120],{"name":11116,"slug":11117,"type":16},"Agents","agents",{"name":11119,"slug":30,"type":16},"AI",{"name":11121,"slug":11122,"type":16},"Middleware","middleware","2026-07-30T05:26:10.404565",{"slug":11125,"name":11126,"fn":11127,"description":11128,"org":11129,"tags":11130,"stars":24,"repoUrl":25,"updatedAt":11138},"ai-coreadapter-configuration","ai-core\u002Fadapter-configuration","configure AI provider adapters","Provider adapter selection and configuration: openaiText, anthropicText, geminiText, ollamaText, grokText, groqText, openRouterText, bedrockText, openaiCompatible. Per-model type safety with modelOptions, reasoning\u002Fthinking configuration, runtime adapter switching, extendAdapter() for custom models, createModel(). Generic OpenAI-compatible providers (DeepSeek, Together, Fireworks, etc.) via openaiCompatible({ baseURL, apiKey, models }) from @tanstack\u002Fai-openai\u002Fcompatible. API key env vars: OPENAI_API_KEY, ANTHROPIC_API_KEY, GOOGLE_API_KEY\u002FGEMINI_API_KEY, XAI_API_KEY, GROQ_API_KEY, OPENROUTER_API_KEY, OLLAMA_HOST, BEDROCK_API_KEY (or AWS_BEARER_TOKEN_BEDROCK).\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11131,11132,11135,11137],{"name":11098,"slug":32,"type":16},{"name":11133,"slug":11134,"type":16},"Configuration","configuration",{"name":11136,"slug":38,"type":16},"LLM",{"name":10,"slug":9,"type":16},"2026-07-16T06:04:17.82075",{"slug":11140,"name":11141,"fn":11142,"description":11143,"org":11144,"tags":11145,"stars":24,"repoUrl":25,"updatedAt":11151},"ai-coreag-ui-protocol","ai-core\u002Fag-ui-protocol","implement TanStack AI streaming protocol","Server-side AG-UI streaming protocol implementation: StreamChunk event types (RUN_STARTED, TEXT_MESSAGE_START\u002FCONTENT\u002FEND, TOOL_CALL_START\u002FARGS\u002FEND, RUN_FINISHED, RUN_ERROR, STEP_STARTED\u002FSTEP_FINISHED, STATE_SNAPSHOT\u002FDELTA, CUSTOM), toServerSentEventsStream() for SSE format, toHttpStream() for NDJSON format. For backends serving AG-UI events without client packages.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11146,11149,11150],{"name":11147,"slug":11148,"type":16},"API Development","api-development",{"name":11136,"slug":38,"type":16},{"name":10,"slug":9,"type":16},"2026-07-16T06:04:10.093367",{"slug":11153,"name":11154,"fn":11155,"description":11156,"org":11157,"tags":11158,"stars":24,"repoUrl":25,"updatedAt":11165},"ai-corechat-experience","ai-core\u002Fchat-experience","implement chat experiences with TanStack AI","End-to-end chat implementation: server endpoint with chat() and toServerSentEventsResponse(), client-side useChat hook with fetchServerSentEvents(), message rendering with UIMessage parts, multimodal content, thinking\u002Freasoning display. Covers streaming states, connection adapters, and message format conversions. NOT Vercel AI SDK — uses chat() not streamText().\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11159,11160,11163,11164],{"name":11147,"slug":11148,"type":16},{"name":11161,"slug":11162,"type":16},"Frontend","frontend",{"name":11136,"slug":38,"type":16},{"name":10,"slug":9,"type":16},"2026-07-30T05:26:11.505241",{"slug":11167,"name":11168,"fn":11169,"description":11170,"org":11171,"tags":11172,"stars":24,"repoUrl":25,"updatedAt":11177},"ai-coreclient-persistence","ai-core\u002Fclient-persistence","implement browser chat persistence for TanStack AI","Browser chat persistence on useChat \u002F ChatClient: localStoragePersistence, sessionStoragePersistence, indexedDBPersistence. Client-authoritative (adapter, full transcript) vs server-authoritative (persistence: true, no client cache). Reload restore, pending interrupts, mid-stream rejoin with delivery durability. Use for SPA reload durability — NOT server history alone. No extra package: the adapters ship in the framework packages.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11173,11174,11175,11176],{"name":11119,"slug":30,"type":16},{"name":11161,"slug":11162,"type":16},{"name":18,"slug":19,"type":16},{"name":10,"slug":9,"type":16},"2026-07-30T05:53:35.503176",{"slug":11179,"name":11180,"fn":11181,"description":11182,"org":11183,"tags":11184,"stars":24,"repoUrl":25,"updatedAt":11191},"ai-corecustom-backend-integration","ai-core\u002Fcustom-backend-integration","integrate custom backends with TanStack AI","Connect useChat to a non-TanStack-AI backend through custom connection adapters. ConnectConnectionAdapter (single async iterable) vs SubscribeConnectionAdapter (separate subscribe\u002Fsend). Customize fetchServerSentEvents() and fetchHttpStream() with auth headers, custom URLs, and request options. Import from framework package, not @tanstack\u002Fai-client.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11185,11186,11187,11190],{"name":11119,"slug":30,"type":16},{"name":11147,"slug":11148,"type":16},{"name":11188,"slug":11189,"type":16},"Backend","backend",{"name":10,"slug":9,"type":16},"2026-07-17T06:06:39.855351",{"items":11193,"total":6295},[11194,11208,11220,11232,11247,11259,11269,11279,11292,11302,11313,11323],{"slug":11195,"name":11195,"fn":11196,"description":11197,"org":11198,"tags":11199,"stars":11205,"repoUrl":11206,"updatedAt":11207},"aggregation","perform data aggregation in TanStack Table","Aggregate TanStack Table columns independently of grouping, including grand totals, caller-selected row totals, multiple keyed aggregations, custom context-based definitions, grouped merges, manual values, and worker constraints.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11200,11203,11204],{"name":11201,"slug":11202,"type":16},"Data Analysis","data-analysis",{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},28175,"https:\u002F\u002Fgithub.com\u002FTanStack\u002Ftable","2026-07-30T05:25:59.429787",{"slug":11209,"name":11209,"fn":11210,"description":11211,"org":11212,"tags":11213,"stars":11205,"repoUrl":11206,"updatedAt":11219},"api-not-found","diagnose TanStack Table API errors","Diagnose missing TanStack Table v9 exports, options, state slices, and instance methods. Load before inventing an API when code sees a type error, undefined feature method, absent object key, adapter mismatch, or v8-shaped example.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11214,11217,11218],{"name":11215,"slug":11216,"type":16},"Debugging","debugging",{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},"2026-07-30T05:26:05.418735",{"slug":11221,"name":11221,"fn":11222,"description":11223,"org":11224,"tags":11225,"stars":11205,"repoUrl":11206,"updatedAt":11231},"cell-selection","select rectangular cell ranges in tables","Select rectangular cell ranges with cellSelectionFeature: two-corner range state keyed by row and column id, mousedown\u002Fmouseenter handlers, selection edges, render-order resolution under pinning, and autoResetCellSelection. Load when ranges widen unexpectedly after sorting or column reordering, when a drag re-renders the whole table, or when building copy-to-clipboard from a selection.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11226,11227,11228],{"name":11201,"slug":11202,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"UI Components","ui-components","2026-07-30T05:25:38.403427",{"slug":11233,"name":11233,"fn":11234,"description":11235,"org":11236,"tags":11237,"stars":11205,"repoUrl":11206,"updatedAt":11246},"client-vs-server","manage TanStack Table data pipelines","Choose client or server ownership for filtering, grouping, sorting, expanding, and pagination in TanStack Table v9. Load for manual* flags, mixed pipelines, server counts, or deciding which dataset each row-model stage receives.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11238,11241,11242,11245],{"name":11239,"slug":11240,"type":16},"Data Pipeline","data-pipeline",{"name":11161,"slug":11162,"type":16},{"name":11243,"slug":11244,"type":16},"Performance","performance",{"name":10,"slug":9,"type":16},"2026-07-30T05:25:45.400104",{"slug":11248,"name":11248,"fn":11249,"description":11250,"org":11251,"tags":11252,"stars":11205,"repoUrl":11206,"updatedAt":11258},"column-faceting","build faceted filter UIs","Build faceted filter UIs with columnFacetingFeature, facetedRowModel, facetedUniqueValues, and facetedMinMaxValues. Load for facet counts, numeric ranges, own-filter exclusion, or server-page facet completeness.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11253,11256,11257],{"name":11254,"slug":11255,"type":16},"Data Visualization","data-visualization",{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},"2026-07-30T05:25:41.397257",{"slug":11260,"name":11260,"fn":11261,"description":11262,"org":11263,"tags":11264,"stars":11205,"repoUrl":11206,"updatedAt":11268},"column-filtering","implement column filtering in TanStack Table","Filter columns with columnFilteringFeature, filteredRowModel, filterFns, filterMeta, nested-row direction, and manualFiltering. Load for accessor compatibility, controlled filter updaters, fuzzy metadata, or client\u002Fserver ownership.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11265,11266,11267],{"name":11201,"slug":11202,"type":16},{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},"2026-07-30T05:25:53.391632",{"slug":11270,"name":11270,"fn":11271,"description":11272,"org":11273,"tags":11274,"stars":11205,"repoUrl":11206,"updatedAt":11278},"column-ordering","manage TanStack Table column ordering","Control TanStack Table v9 leaf columnOrder with stable IDs while accounting for pinning regions, visibility, and groupedColumnMode precedence. Load for drag-and-drop columns or rendered order that differs from state.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11275,11276,11277],{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:26:03.37801",{"slug":11280,"name":11280,"fn":11281,"description":11282,"org":11283,"tags":11284,"stars":11205,"repoUrl":11206,"updatedAt":11291},"column-pinning","configure column pinning in TanStack Table","Pin columns into logical start, center, and end regions with columnPinningFeature and renderer-owned sticky CSS. Load for RTL offsets, z-index, backgrounds, overflow, widths, gaps, or overlaps.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11285,11288,11289,11290],{"name":11286,"slug":11287,"type":16},"CSS","css",{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:25:55.377366",{"slug":11293,"name":11293,"fn":11294,"description":11295,"org":11296,"tags":11297,"stars":11205,"repoUrl":11206,"updatedAt":11301},"column-resizing","implement column resizing in TanStack Table","Wire columnResizingFeature, header.getResizeHandler, resize mode and direction, pointer or touch events, and performant CSS-variable updates. Load when resize state changes but widths do not, or large tables resize slowly.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11298,11299,11300],{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:25:51.400011",{"slug":11303,"name":11303,"fn":11304,"description":11305,"org":11306,"tags":11307,"stars":11205,"repoUrl":11206,"updatedAt":11312},"column-sizing","configure column sizing in TanStack Table","Use columnSizingFeature numeric size, minSize, maxSize, getSize, getStart, getAfter, and total-size APIs in table, grid, or flex CSS. Load for auto or percentage misconceptions and sizing\u002Fpinning layout mismatch.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11308,11309,11310,11311],{"name":11286,"slug":11287,"type":16},{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:25:48.703799",{"slug":11314,"name":11314,"fn":11315,"description":11316,"org":11317,"tags":11318,"stars":11205,"repoUrl":11206,"updatedAt":11322},"column-visibility","manage column visibility in TanStack Table","Hide columns with columnVisibilityFeature while rendering visibility-aware header, column, and cell collections. Load when hidden columns remain in the DOM, false-versus-absent state is confused, or enableHiding is misunderstood.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11319,11320,11321],{"name":11161,"slug":11162,"type":16},{"name":10,"slug":9,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:25:47.367943",{"slug":11324,"name":11324,"fn":11325,"description":11326,"org":11327,"tags":11328,"stars":11205,"repoUrl":11206,"updatedAt":11332},"core","build data grids with TanStack Table","Use TanStack Table v9 as a headless data-grid state and row-processing engine. Load for first-table architecture, stable data and columns, row numbering with getDisplayIndex, semantic rendering, framework adapter choice, or deciding what Table owns versus the renderer.\n",{"slug":9,"name":10,"logoUrl":11,"githubOrg":10},[11329,11330,11331],{"name":11201,"slug":11202,"type":16},{"name":11161,"slug":11162,"type":16},{"name":11229,"slug":11230,"type":16},"2026-07-30T05:25:52.366295"]