@openscout/scout 0.2.76 → 0.2.78

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (372) hide show
  1. package/README.md +41 -2
  2. package/bin/openscout-runtime.mjs +48 -30
  3. package/bin/scout.mjs +2 -2
  4. package/bin/scoutd +0 -0
  5. package/dist/build-manifest.json +3 -3
  6. package/dist/client/assets/ActivityScreen-Cu_1V4bq.js +1 -0
  7. package/dist/client/assets/AddProjectForm-DMnobKch.js +1 -0
  8. package/dist/client/assets/AgentAvatar-D90c1Rzk.js +1 -0
  9. package/dist/client/assets/AgentConfigurationScreen-BqfOz90D.js +1 -0
  10. package/dist/client/assets/AgentDefinitionsWorkspace-CUpUrY57.js +1 -0
  11. package/dist/client/assets/AgentDetailCard-BcRBRp88.js +1 -0
  12. package/dist/client/assets/AgentDetailCard-C4WVeJvJ.css +1 -0
  13. package/dist/client/assets/AgentFloorView-8LoAEBwS.js +1 -0
  14. package/dist/client/assets/AgentInfoScreen-DZs2_ibL.js +1 -0
  15. package/dist/client/assets/AgentLaneCard-RrNnDZu8.js +1 -0
  16. package/dist/client/assets/AgentLaneChrome-D9ZwUKrl.js +1 -0
  17. package/dist/client/assets/AgentLaneDetailSheet-BXbPls9N.js +5 -0
  18. package/dist/client/assets/AgentLaneSummaryResize-BhFmGNzT.js +1 -0
  19. package/dist/client/assets/AgentLanesEmbedScreen-W3qs022h.js +1 -0
  20. package/dist/client/assets/AgentLanesPreflight-eSAoDsPi.js +1 -0
  21. package/dist/client/assets/AgentLanesView-B9vuEEmZ.js +2 -0
  22. package/dist/client/assets/AgentLiveActions-CGS-Bxb7.css +1 -0
  23. package/dist/client/assets/AgentLiveActions-DBtnD0qE.js +1 -0
  24. package/dist/client/assets/AgentSessions-DyqOf4nG.js +6 -0
  25. package/dist/client/assets/AgentsConsole-BgiYP2wR.js +1 -0
  26. package/dist/client/assets/AgentsConsole-BjSTs-TV.css +1 -0
  27. package/dist/client/assets/AgentsScreen-DBi8x4MB.js +1 -0
  28. package/dist/client/assets/AgentsSubnav-DIEO4NPx.js +1 -0
  29. package/dist/client/assets/AtopView-BCkae3e1.js +1 -0
  30. package/dist/client/assets/BackToPicker-BRvfostO.js +1 -0
  31. package/dist/client/assets/BackToPicker-CdgVu-to.css +1 -0
  32. package/dist/client/assets/BriefingDetailScreen-BwFyysT8.js +6 -0
  33. package/dist/client/assets/BriefingsScreen-BQEevztH.js +1 -0
  34. package/dist/client/assets/BrokerMetadataPanel-7UjcuNjd.js +1 -0
  35. package/dist/client/assets/BrokerScreen-7ekklu88.js +5 -0
  36. package/dist/client/assets/ChatCollapsedStrip-CQSYSd8s.js +1 -0
  37. package/dist/client/assets/CodeDiffPane-DDPt6KPh.js +1 -0
  38. package/dist/client/assets/CodeProjectPicker-DqKFCpLU.js +2 -0
  39. package/dist/client/assets/CodeScreen-BxCrpRHd.js +1 -0
  40. package/dist/client/assets/ContextMenu-bARZqTzD.js +1 -0
  41. package/dist/client/assets/ConversationComposer-Bla3DDvM.js +1 -0
  42. package/dist/client/assets/ConversationFeedRows-B_gPxcqA.js +1 -0
  43. package/dist/client/assets/ConversationHeader-DE3FC0m-.js +1 -0
  44. package/dist/client/assets/ConversationPanels-DLek4H6A.js +2 -0
  45. package/dist/client/assets/ConversationScreen-BDRhx-RU.js +1 -0
  46. package/dist/client/assets/ConversationScreen-C9yMAMYF.css +1 -0
  47. package/dist/client/assets/ConversationStatus-BwVLiiO4.js +1 -0
  48. package/dist/client/assets/DataTable-E8s_MmoA.js +1 -0
  49. package/dist/client/assets/DispatchAftermath-Dpe88DFX.js +1 -0
  50. package/dist/client/assets/DocumentFocusViewer-BeVwwl26.js +1 -0
  51. package/dist/client/assets/EmbeddableSurfacesLab-BQqFQVnI.js +1 -0
  52. package/dist/client/assets/EmptyState-4F9XDFQm.js +1 -0
  53. package/dist/client/assets/FileViewerPane-CLgUhSm4.js +3 -0
  54. package/dist/client/assets/FleetSearch-Dz5euQJe.js +1 -0
  55. package/dist/client/assets/FleetSearch-EXOe8ulE.css +1 -0
  56. package/dist/client/assets/FlightObserveScreen-6RpZYwVz.js +1 -0
  57. package/dist/client/assets/FollowScreen-DZ4qfYOY.js +1 -0
  58. package/dist/client/assets/HarnessMark-Cbv3Ib0c.js +1 -0
  59. package/dist/client/assets/HarnessesScreen-CznAImej.js +1 -0
  60. package/dist/client/assets/HomeHero-B3uYd-pP.js +1 -0
  61. package/dist/client/assets/HomeHero-DEl-WBsT.css +1 -0
  62. package/dist/client/assets/KnowledgeSearchInspector-Dgdkfvvz.js +1 -0
  63. package/dist/client/assets/KnowledgeSearchScreen-DJDGGaqC.js +1 -0
  64. package/dist/client/assets/LaneToolHoverCard-Bla0gBdm.js +1 -0
  65. package/dist/client/assets/LaneTraceDetailSheet-D1CspRbl.js +1 -0
  66. package/dist/client/assets/LaneTraceEventFocus-BF9ERP5O.js +1 -0
  67. package/dist/client/assets/MeshCanvas-DFEPkpqY.js +3 -0
  68. package/dist/client/assets/MeshCanvasMinimap-CyVFYixr.js +1 -0
  69. package/dist/client/assets/MeshCanvasMinimap-Dv7nMbl5.css +1 -0
  70. package/dist/client/assets/MeshScreen-DFgevn8N.js +1 -0
  71. package/dist/client/assets/MeshTopologyView-CalkZghg.js +2 -0
  72. package/dist/client/assets/MessageComposerSuggestions-DpxN9WiB.js +1 -0
  73. package/dist/client/assets/MessagesScreen-C8YKW10Y.js +1 -0
  74. package/dist/client/assets/MissionControlView-lUeAiSVg.js +1 -0
  75. package/dist/client/assets/MissionFocusOverlay-wlCmWDCT.js +1 -0
  76. package/dist/client/assets/MissionLeftAgentRow-BpZWntfl.js +1 -0
  77. package/dist/client/assets/MissionLogPane-__MVtEl9.js +1 -0
  78. package/dist/client/assets/NewAgentModal-Bg-eWHpY.js +1 -0
  79. package/dist/client/assets/NewAgentModal-ru8u5YdJ.css +1 -0
  80. package/dist/client/assets/NewChatComposer-Cs6OsxK6.js +19 -0
  81. package/dist/client/assets/NewChatComposer-W-t-L4oV.css +1 -0
  82. package/dist/client/assets/NewChatOrigin-Bk2OyVjI.js +1 -0
  83. package/dist/client/assets/ObserveEmbedScreen-y2EpuqRZ.js +2 -0
  84. package/dist/client/assets/ObserveTextFlow-rsFj_rVo.js +2 -0
  85. package/dist/client/assets/ObservedTopologyPanel-BsBsvVPL.css +1 -0
  86. package/dist/client/assets/ObservedTopologyPanel-DyUeV98H.js +2 -0
  87. package/dist/client/assets/OpenScoutAppShell-Bh6FnEJO.css +1 -0
  88. package/dist/client/assets/OpenScoutAppShell-C_URc8sV.js +87 -0
  89. package/dist/client/assets/OpsAgentsView-UN7iOscs.js +1 -0
  90. package/dist/client/assets/OpsScreen-Buf3LKjb.js +1 -0
  91. package/dist/client/assets/OpsSubnav-DsuXzHah.js +1 -0
  92. package/dist/client/assets/PlanView-C1CjH3PG.js +1 -0
  93. package/dist/client/assets/ProjectAgentProfile-DJusrAV-.js +1 -0
  94. package/dist/client/assets/ProjectAgentProfileBar-CtTpj6fU.js +1 -0
  95. package/dist/client/assets/ProjectAgentProfileHero-BFwNJo_N.js +1 -0
  96. package/dist/client/assets/ProjectsInbox-GhVMxOhw.js +2 -0
  97. package/dist/client/assets/ProjectsRail-BgiuV4LR.js +1 -0
  98. package/dist/client/assets/ProjectsScreen-eNUBy4YU.js +1 -0
  99. package/dist/client/assets/ProjectsThreadAside-CoBgnHmr.js +1 -0
  100. package/dist/client/assets/Provider-C7UKGHQy.js +1 -0
  101. package/dist/client/assets/Provider-CCzjtkda.css +1 -0
  102. package/dist/client/assets/RailRow-BoGxAHNF.js +1 -0
  103. package/dist/client/assets/RailRow-Cf9LOiEj.css +1 -0
  104. package/dist/client/assets/RawSessionsTable-DL8y_eEy.js +1 -0
  105. package/dist/client/assets/RealtimeVoiceScreen-ffS-39zy.js +1 -0
  106. package/dist/client/assets/RepoDiffEmbedScreen-C0rumUME.js +1 -0
  107. package/dist/client/assets/RepoDiffPageScreen-DMv6DioL.js +1 -0
  108. package/dist/client/assets/RepoDiffViewer-D_exm6xK.js +7 -0
  109. package/dist/client/assets/RepoDiffViewerLazy-BPgF92Bg.js +2 -0
  110. package/dist/client/assets/ReposScreen-CB_YBWYf.js +6 -0
  111. package/dist/client/assets/ScoutDeckSurface-CxIYFyWx.js +1 -0
  112. package/dist/client/assets/ScoutDeckSurface-uhmuZRzC.css +1 -0
  113. package/dist/client/assets/ScoutSurface-CYz_TcWC.js +1 -0
  114. package/dist/client/assets/ScoutbotBroadcastChip-CxtYZWPZ.css +1 -0
  115. package/dist/client/assets/ScoutbotBroadcastChip-L_R9atj0.js +2 -0
  116. package/dist/client/assets/ScoutbotFxLab-CgiZMDMW.js +4 -0
  117. package/dist/client/assets/ScoutbotRealtimeVoiceCall-FMQOr1Np.js +1 -0
  118. package/dist/client/assets/SecondaryNav-B3-nh5dM.js +1 -0
  119. package/dist/client/assets/SessionEmbedScreen-BVC7yvWF.js +1 -0
  120. package/dist/client/assets/SessionObserve-BpggNO_M.css +1 -0
  121. package/dist/client/assets/SessionObserve-yfXFafp8.js +12 -0
  122. package/dist/client/assets/SessionRefScreen-DRgJu7Jo.js +1 -0
  123. package/dist/client/assets/SessionsScreen-D6XUsZfA.js +1 -0
  124. package/dist/client/assets/SettingsDrawer-CmJt72ww.css +1 -0
  125. package/dist/client/assets/SettingsDrawer-XfdAa_nD.js +3 -0
  126. package/dist/client/assets/SettingsScreen-Cy8z-EuR.js +1 -0
  127. package/dist/client/assets/ShikiPane-Ap1iPxYb.js +15 -0
  128. package/dist/client/assets/SlidePanel-Bg5dVaIa.css +1 -0
  129. package/dist/client/assets/SlidePanel-COwtoJqR.js +1 -0
  130. package/dist/client/assets/SpriteAvatar-DyaGuhik.js +1 -0
  131. package/dist/client/assets/StatusPill-DhBL__p8.js +1 -0
  132. package/dist/client/assets/TailView-DGj_5HA9.js +2 -0
  133. package/dist/client/assets/TailView-Mj3AU2u0.css +1 -0
  134. package/dist/client/assets/Terminal-CqvGbjXU.js +1 -0
  135. package/dist/client/assets/TerminalEmbedScreen-DuZZFFzW.js +1 -0
  136. package/dist/client/assets/TextDocumentSurface-BpAw4eQS.js +4 -0
  137. package/dist/client/assets/TmuxPeek-m1osv33Q.js +1 -0
  138. package/dist/client/assets/VoicePermissionsPanel-DsK53ar4.js +1 -0
  139. package/dist/client/assets/VoicePermissionsPanel-RijAZ1gP.css +1 -0
  140. package/dist/client/assets/WorkDetailScreen-Bx0JimPC.js +5 -0
  141. package/dist/client/assets/WorkFilesViewer-Btl6C2Q1.js +1 -0
  142. package/dist/client/assets/activity-CA8qS6PI.js +1 -0
  143. package/dist/client/assets/{addon-fit-BOSszMLK.js → addon-fit-BZ-kXjeN.js} +1 -1
  144. package/dist/client/assets/{addon-webgl-WE840gr0.js → addon-webgl-D9-EQVEK.js} +1 -1
  145. package/dist/client/assets/agent-chat-Bfjd9y6c.js +1 -0
  146. package/dist/client/assets/agent-definitions-CymTYqvo.css +1 -0
  147. package/dist/client/assets/agent-directory-studio-injection-Bc8590z5.css +1 -0
  148. package/dist/client/assets/agent-essentials-BSY1o46q.js +1 -0
  149. package/dist/client/assets/agent-floor-CuJr1iK1.css +1 -0
  150. package/dist/client/assets/agent-lane-card-Dm7YWoew.css +1 -0
  151. package/dist/client/assets/agent-lane-card-model-r2frk57c.js +1 -0
  152. package/dist/client/assets/agent-lane-detail-Djm3YJEa.js +1 -0
  153. package/dist/client/assets/agent-lane-preview-CmHVe3dU.js +4 -0
  154. package/dist/client/assets/agent-lanes-BDNktFBZ.css +1 -0
  155. package/dist/client/assets/agent-lanes-model-B4YTt4OF.js +2 -0
  156. package/dist/client/assets/agents-detail-redesign-h34ROjOW.css +1 -0
  157. package/dist/client/assets/agents-project-COzHxZAF.css +1 -0
  158. package/dist/client/assets/agents-project-model-UYiamtrU.js +1 -0
  159. package/dist/client/assets/agents-screen-BMu6PpRY.css +1 -0
  160. package/dist/client/assets/api-BkjHJfgJ.js +1 -0
  161. package/dist/client/assets/api-h5zurxmi.js +1 -0
  162. package/dist/client/assets/{arc.es-KGqGKGIy.js → arc.es-CQBb-dVu.js} +1 -1
  163. package/dist/client/assets/arrow-down-BPLe0am9.js +1 -0
  164. package/dist/client/assets/arrow-left-DEZzHiPS.js +1 -0
  165. package/dist/client/assets/arrow-up-right-ClxBnsi7.js +1 -0
  166. package/dist/client/assets/bash-format-BRV5C6Gv.js +1 -0
  167. package/dist/client/assets/bot-eu8pBNvI.js +1 -0
  168. package/dist/client/assets/briefings-BwuAFQK6.css +1 -0
  169. package/dist/client/assets/broker-display-pp33bLsu.js +2 -0
  170. package/dist/client/assets/cache-Dr0why2k.js +2 -0
  171. package/dist/client/assets/check-DjgFiBxb.js +1 -0
  172. package/dist/client/assets/chevron-down-BGk5qoEw.js +1 -0
  173. package/dist/client/assets/chevron-right-XiIHsk4m.js +1 -0
  174. package/dist/client/assets/chunk-T65CQEWV-CrzwSeEt.js +1 -0
  175. package/dist/client/assets/chunk-YOZR3KYS-Bet8khjg.js +47 -0
  176. package/dist/client/assets/clipboard-e3fSpeo7.js +1 -0
  177. package/dist/client/assets/code-screen-DrKinCyh.css +1 -0
  178. package/dist/client/assets/code-xml-B6jOCM4V.js +1 -0
  179. package/dist/client/assets/collapsed-strip-Dz-of2SM.css +1 -0
  180. package/dist/client/assets/colors-BtO5_zlx.js +1 -0
  181. package/dist/client/assets/console-B1IBqLI_.css +1 -0
  182. package/dist/client/assets/content-BDt9VBPk.js +1 -0
  183. package/dist/client/assets/content-BIXf4cKR.js +1 -0
  184. package/dist/client/assets/content-BLm0NBJM.js +1 -0
  185. package/dist/client/assets/content-C2EwTb2y.js +1 -0
  186. package/dist/client/assets/content-C5UbLsDF.js +1 -0
  187. package/dist/client/assets/content-CHU0wwA3.css +1 -0
  188. package/dist/client/assets/content-CR3vdrYY.js +1 -0
  189. package/dist/client/assets/content-CSPVmo2s.js +1 -0
  190. package/dist/client/assets/content-C_FGqx1X.js +1 -0
  191. package/dist/client/assets/content-CvlVUOG8.js +1 -0
  192. package/dist/client/assets/content-D5kJmfgl.js +1 -0
  193. package/dist/client/assets/content-DTpQsomG.js +1 -0
  194. package/dist/client/assets/content-DikVsqLf.js +1 -0
  195. package/dist/client/assets/content-DlUe5Ono.js +1 -0
  196. package/dist/client/assets/content-GIBv_55n.js +1 -0
  197. package/dist/client/assets/content-Q2oclDzi.js +1 -0
  198. package/dist/client/assets/context-budget-CbB4BDcO.js +1 -0
  199. package/dist/client/assets/conversation-icons-IIG5ha6D.js +1 -0
  200. package/dist/client/assets/conversation-model-B47vYmWN.js +1 -0
  201. package/dist/client/assets/conversation-motion-features-BdAONVls.js +1 -0
  202. package/dist/client/assets/conversation-prefs-DNre-Lcx.js +1 -0
  203. package/dist/client/assets/copy-CQGYbxdu.js +1 -0
  204. package/dist/client/assets/createLucideIcon-OpA4Amw5.js +1 -0
  205. package/dist/client/assets/ctx-panel-B4s49N9e.css +1 -0
  206. package/dist/client/assets/discover-C1YwpBDE.js +2 -0
  207. package/dist/client/assets/document-focus-viewer-BSC_JwVE.css +1 -0
  208. package/dist/client/assets/embed-entry-BAcGL3g9.js +2 -0
  209. package/dist/client/assets/external-link-CXBytO9o.js +1 -0
  210. package/dist/client/assets/eye-0PvebX_a.js +1 -0
  211. package/dist/client/assets/file-text-BODxCjcz.js +1 -0
  212. package/dist/client/assets/flight-observe-GFg9L8ft.css +1 -0
  213. package/dist/client/assets/follow-route-BvcGtBIL.js +1 -0
  214. package/dist/client/assets/fx-z37u1o2z.js +1 -0
  215. package/dist/client/assets/gestures-CcwOTu8C.js +1 -0
  216. package/dist/client/assets/harnesses-screen-DBZoTZz8.css +1 -0
  217. package/dist/client/assets/home-live-action-B22u89j7.js +1 -0
  218. package/dist/client/assets/home-moving-signal-CAa0V91u.css +1 -0
  219. package/dist/client/assets/home-moving-signal-CK147hxn.js +1 -0
  220. package/dist/client/assets/home-now-card-BgvNWuea.js +1 -0
  221. package/dist/client/assets/home-now-card-nano-BcjnOU9H.js +1 -0
  222. package/dist/client/assets/hooks-B6y_O2FB.js +2 -0
  223. package/dist/client/assets/hooks-D6NI15f6.css +1 -0
  224. package/dist/client/assets/inbox-thread-redesign-Bz4FjWzr.css +1 -0
  225. package/dist/client/assets/index-BWHgHrtv.js +1 -0
  226. package/dist/client/assets/index-BcuhqXLe.js +1 -0
  227. package/dist/client/assets/index-CJXzfjo9.js +1 -0
  228. package/dist/client/assets/index-CvF09yvf.css +1 -0
  229. package/dist/client/assets/index-DMiGbrBt.js +10 -0
  230. package/dist/client/assets/index-DQPvraRS.js +1 -0
  231. package/dist/client/assets/index-DxGoC5l5.css +1 -0
  232. package/dist/client/assets/inspector-panel-DPoCWxKs.js +2 -0
  233. package/dist/client/assets/keyboard-nav-2kv_tGUS.js +1 -0
  234. package/dist/client/assets/knowledge-search-CVxQwxPn.js +1 -0
  235. package/dist/client/assets/knowledge-search-DjrQdiiW.css +1 -0
  236. package/dist/client/assets/lane-ask-display-B6iCAVcd.js +18 -0
  237. package/dist/client/assets/lane-edit-display-C_Aujldz.js +9 -0
  238. package/dist/client/assets/lane-observe-D0rfKDnU.js +7 -0
  239. package/dist/client/assets/lane-roster-store-D8x1jac2.js +1 -0
  240. package/dist/client/assets/lane-tool-detail-0WhMf4Vj.js +9 -0
  241. package/dist/client/assets/left-Bk3XnxPD.css +1 -0
  242. package/dist/client/assets/left-C--GiIh8.js +2 -0
  243. package/dist/client/assets/left-CAaRBK9S.css +1 -0
  244. package/dist/client/assets/left-CCoobxPS.css +1 -0
  245. package/dist/client/assets/left-Cj7Rt89X.js +1 -0
  246. package/dist/client/assets/left-CpNEtFEg.js +1 -0
  247. package/dist/client/assets/left-CzXAuK_t.js +2 -0
  248. package/dist/client/assets/left-agents-Bo9sO1by.js +1 -0
  249. package/dist/client/assets/left-bN4PCAXa.js +1 -0
  250. package/dist/client/assets/left-default-DV9GdvYi.js +1 -0
  251. package/dist/client/assets/left-jYYGAOYD.js +1 -0
  252. package/dist/client/assets/left-lanes-D0l_Co7V.js +1 -0
  253. package/dist/client/assets/left-mission-Ci7zREkQ.js +1 -0
  254. package/dist/client/assets/left-mission-DSenPIyb.css +1 -0
  255. package/dist/client/assets/left-plan-D4U1uflW.js +2 -0
  256. package/dist/client/assets/library-D-RxGiCw.js +1 -0
  257. package/dist/client/assets/loader-circle-CbHjZsz1.js +1 -0
  258. package/dist/client/assets/local-agents--00gLMqr.js +1 -0
  259. package/dist/client/assets/mentions-jSuTGeet.js +1 -0
  260. package/dist/client/assets/mesh-buckets-CfAukILK.js +1 -0
  261. package/dist/client/assets/mesh-screen-BSDUjrnV.css +1 -0
  262. package/dist/client/assets/mesh-view-store-CWidRbTE.js +1 -0
  263. package/dist/client/assets/message-circle-CG-96zts.js +1 -0
  264. package/dist/client/assets/message-markup-3J9pi3nx.js +15 -0
  265. package/dist/client/assets/message-square-DSaGpjFU.js +1 -0
  266. package/dist/client/assets/message-visibility-kJM8XcSG.js +1 -0
  267. package/dist/client/assets/mission-control-D3ikEPND.css +1 -0
  268. package/dist/client/assets/mission-control-model-C0fByIjm.js +1 -0
  269. package/dist/client/assets/mission-control-store-BlnEhiCq.js +1 -0
  270. package/dist/client/assets/model-Co0zkMIc.js +1 -0
  271. package/dist/client/assets/model-CpAxGuis.js +1 -0
  272. package/dist/client/assets/observe-CuLGD9Zp.js +1 -0
  273. package/dist/client/assets/openAgent-Bjt57GdM.js +1 -0
  274. package/dist/client/assets/openContent-C6XO6kr5.js +1 -0
  275. package/dist/client/assets/operator-attention-BwSPeheT.js +1 -0
  276. package/dist/client/assets/ops-agents-BOYxzPTm.css +1 -0
  277. package/dist/client/assets/ops-atop-BB4B4JdE.css +1 -0
  278. package/dist/client/assets/ops-screen-giu3If_N.css +1 -0
  279. package/dist/client/assets/page-status-DpkedE1F.js +1 -0
  280. package/dist/client/assets/page-status-bar-ByUD7VPM.css +1 -0
  281. package/dist/client/assets/plan-view-D56fneVF.css +1 -0
  282. package/dist/client/assets/plus--b1raV_O.js +1 -0
  283. package/dist/client/assets/profile-CVRziEDA.js +1 -0
  284. package/dist/client/assets/project-overview-helpers-BQTc_Ous.js +1 -0
  285. package/dist/client/assets/projects-inbox-CHyUFQ6w.js +1 -0
  286. package/dist/client/assets/projects-inbox-COZ23dLR.css +1 -0
  287. package/dist/client/assets/radio-Bz8ZePxj.js +1 -0
  288. package/dist/client/assets/refresh-cw-BBmAnCB7.js +1 -0
  289. package/dist/client/assets/repo-diff-C9Qs-bEn.css +1 -0
  290. package/dist/client/assets/resizable-columns-C7ygvLt8.css +1 -0
  291. package/dist/client/assets/resolve-panes-r9B3mpW7.js +1 -0
  292. package/dist/client/assets/resolve-sidebar-context-DcG8xGaB.js +1 -0
  293. package/dist/client/assets/right-BHeiIaty.js +1 -0
  294. package/dist/client/assets/right-BkgKo9VT.js +1 -0
  295. package/dist/client/assets/right-BpEU5jWE.js +1 -0
  296. package/dist/client/assets/right-CRZXoy-X.js +1 -0
  297. package/dist/client/assets/right-ChF_pbPy.js +1 -0
  298. package/dist/client/assets/right-DMoUT3KN.js +1 -0
  299. package/dist/client/assets/right-DjRXbnRP.js +2 -0
  300. package/dist/client/assets/right-T4Ue6EqM.js +1 -0
  301. package/dist/client/assets/right-wzrLXKur.js +1 -0
  302. package/dist/client/assets/rocket-BSNS_rLs.js +1 -0
  303. package/dist/client/assets/router-Bq5dwf78.js +1 -0
  304. package/dist/client/assets/runtime-picker-Bcl5iIX5.js +1 -0
  305. package/dist/client/assets/runtime-picker-vhm0gtLs.css +1 -0
  306. package/dist/client/assets/scope-views-4khCg2_z.css +1 -0
  307. package/dist/client/assets/scope-views-U-ucT9m0.js +1 -0
  308. package/dist/client/assets/scout-voice-CU5c0LGi.js +1 -0
  309. package/dist/client/assets/scoutbot-BTIErYHo.js +3 -0
  310. package/dist/client/assets/scroll-text-D6Pdnar7.js +1 -0
  311. package/dist/client/assets/search-CWfZtOt2.js +1 -0
  312. package/dist/client/assets/secondaryNavConfig-DqUIp0Es.js +1 -0
  313. package/dist/client/assets/secondaryNavConfig-xssF_ubT.css +1 -0
  314. package/dist/client/assets/selection-bridge-16pk1qyG.js +1 -0
  315. package/dist/client/assets/send-horizontal-Bg5-QggH.js +1 -0
  316. package/dist/client/assets/server-CPp4ZJhZ.js +1 -0
  317. package/dist/client/assets/session-catalog-BmoyVTJ_.js +1 -0
  318. package/dist/client/assets/session-table-DZcrKoIH.js +1 -0
  319. package/dist/client/assets/sessionRead-CvFz2RHv.js +1 -0
  320. package/dist/client/assets/sliders-horizontal-1oW76Xc9.js +1 -0
  321. package/dist/client/assets/sparkles-ClfRJQ6w.js +1 -0
  322. package/dist/client/assets/sse-CjIkKo46.js +1 -0
  323. package/dist/client/assets/status-tone-BM_zuRy1.js +1 -0
  324. package/dist/client/assets/surface-activity-B1rgWB1i.js +1 -0
  325. package/dist/client/assets/system-surfaces-redesign-CD26LFc0.css +1 -0
  326. package/dist/client/assets/tail-display-BdyoLvzY.js +2 -0
  327. package/dist/client/assets/tail-events-D19uAGe3.js +1 -0
  328. package/dist/client/assets/terminal-B9AOZQKR.js +1 -0
  329. package/dist/client/assets/terminal-relay-CWbJ1RCW.js +1 -0
  330. package/dist/client/assets/terminal-screen-19jAI0Cw.css +1 -0
  331. package/dist/client/assets/terminal-sessions-D5CIR2OL.js +1 -0
  332. package/dist/client/assets/terminal-takeover-B8UeD9OX.js +1 -0
  333. package/dist/client/assets/text-DsBWV_4k.js +1 -0
  334. package/dist/client/assets/time-DltNTpLl.js +1 -0
  335. package/dist/client/assets/types-B0PlfpKc.js +1 -0
  336. package/dist/client/assets/ui-LM8pS8qE.js +1 -0
  337. package/dist/client/assets/use-conversation-list-Byab41G6.js +1 -0
  338. package/dist/client/assets/use-fleet-active-asks-BIbQx5AS.js +1 -0
  339. package/dist/client/assets/use-reduced-motion-RRBkmVkk.js +1 -0
  340. package/dist/client/assets/useAgentHoverCard-DMrbBif0.js +1 -0
  341. package/dist/client/assets/useContentSecondaryNav-DMl1WNm7.js +1 -0
  342. package/dist/client/assets/usePierreRuntime-wC-yMtBb.js +50 -0
  343. package/dist/client/assets/voice-levels-Dcr3jglk.js +1 -0
  344. package/dist/client/assets/wrench-Bkc_0lKF.js +1 -0
  345. package/dist/client/assets/x-D3GElQbe.js +1 -0
  346. package/dist/client/assets/{xterm-6eL7V7pF.js → xterm-BKR8oAkR.js} +1 -1
  347. package/dist/client/index.html +6 -3
  348. package/dist/drizzle/0003_harsh_meltdown.sql +45 -0
  349. package/dist/drizzle/0004_medical_aaron_stack.sql +40 -0
  350. package/dist/drizzle/0005_wet_shriek.sql +57 -0
  351. package/dist/drizzle/0006_woozy_dark_beast.sql +1 -0
  352. package/dist/drizzle/README.md +7 -0
  353. package/dist/drizzle/meta/0003_snapshot.json +4952 -0
  354. package/dist/drizzle/meta/0004_snapshot.json +5235 -0
  355. package/dist/drizzle/meta/0005_snapshot.json +5599 -0
  356. package/dist/drizzle/meta/0006_snapshot.json +5606 -0
  357. package/dist/drizzle/meta/_journal.json +28 -0
  358. package/dist/main.mjs +24907 -12910
  359. package/dist/node/main.mjs +10212 -195
  360. package/dist/openscout-terminal-relay.mjs +507 -64
  361. package/dist/pairing-runtime-controller.mjs +10793 -5165
  362. package/dist/runtime/base-daemon.mjs +627 -159
  363. package/dist/runtime/broker-daemon.mjs +65039 -30990
  364. package/dist/runtime/broker-process-manager.mjs +247 -54
  365. package/dist/runtime/mesh-discover.mjs +246 -54
  366. package/dist/scout-control-plane-web.mjs +56699 -47427
  367. package/dist/scout-web-server.mjs +56699 -47427
  368. package/package.json +1 -1
  369. package/dist/client/assets/RepoDiffViewer-DLVleMPW.js +0 -56
  370. package/dist/client/assets/embed-entry-BdmREZuc.js +0 -1
  371. package/dist/client/assets/index-DPFmfHm5.js +0 -271
  372. package/dist/client/assets/index-jpYnsyHM.css +0 -1
@@ -0,0 +1,4952 @@
1
+ {
2
+ "version": "6",
3
+ "dialect": "sqlite",
4
+ "id": "7d019663-949c-4cc4-a56c-ac00eba5d191",
5
+ "prevId": "d1e020a5-0d70-483a-8558-f1ea96db1e00",
6
+ "tables": {
7
+ "activity_items": {
8
+ "name": "activity_items",
9
+ "columns": {
10
+ "id": {
11
+ "name": "id",
12
+ "type": "text",
13
+ "primaryKey": true,
14
+ "notNull": true,
15
+ "autoincrement": false
16
+ },
17
+ "kind": {
18
+ "name": "kind",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true,
22
+ "autoincrement": false
23
+ },
24
+ "ts": {
25
+ "name": "ts",
26
+ "type": "integer",
27
+ "primaryKey": false,
28
+ "notNull": true,
29
+ "autoincrement": false
30
+ },
31
+ "conversation_id": {
32
+ "name": "conversation_id",
33
+ "type": "text",
34
+ "primaryKey": false,
35
+ "notNull": false,
36
+ "autoincrement": false
37
+ },
38
+ "message_id": {
39
+ "name": "message_id",
40
+ "type": "text",
41
+ "primaryKey": false,
42
+ "notNull": false,
43
+ "autoincrement": false
44
+ },
45
+ "invocation_id": {
46
+ "name": "invocation_id",
47
+ "type": "text",
48
+ "primaryKey": false,
49
+ "notNull": false,
50
+ "autoincrement": false
51
+ },
52
+ "flight_id": {
53
+ "name": "flight_id",
54
+ "type": "text",
55
+ "primaryKey": false,
56
+ "notNull": false,
57
+ "autoincrement": false
58
+ },
59
+ "record_id": {
60
+ "name": "record_id",
61
+ "type": "text",
62
+ "primaryKey": false,
63
+ "notNull": false,
64
+ "autoincrement": false
65
+ },
66
+ "actor_id": {
67
+ "name": "actor_id",
68
+ "type": "text",
69
+ "primaryKey": false,
70
+ "notNull": false,
71
+ "autoincrement": false
72
+ },
73
+ "counterpart_id": {
74
+ "name": "counterpart_id",
75
+ "type": "text",
76
+ "primaryKey": false,
77
+ "notNull": false,
78
+ "autoincrement": false
79
+ },
80
+ "agent_id": {
81
+ "name": "agent_id",
82
+ "type": "text",
83
+ "primaryKey": false,
84
+ "notNull": false,
85
+ "autoincrement": false
86
+ },
87
+ "workspace_root": {
88
+ "name": "workspace_root",
89
+ "type": "text",
90
+ "primaryKey": false,
91
+ "notNull": false,
92
+ "autoincrement": false
93
+ },
94
+ "session_id": {
95
+ "name": "session_id",
96
+ "type": "text",
97
+ "primaryKey": false,
98
+ "notNull": false,
99
+ "autoincrement": false
100
+ },
101
+ "title": {
102
+ "name": "title",
103
+ "type": "text",
104
+ "primaryKey": false,
105
+ "notNull": false,
106
+ "autoincrement": false
107
+ },
108
+ "summary": {
109
+ "name": "summary",
110
+ "type": "text",
111
+ "primaryKey": false,
112
+ "notNull": false,
113
+ "autoincrement": false
114
+ },
115
+ "payload_json": {
116
+ "name": "payload_json",
117
+ "type": "text",
118
+ "primaryKey": false,
119
+ "notNull": false,
120
+ "autoincrement": false
121
+ }
122
+ },
123
+ "indexes": {
124
+ "idx_activity_items_agent_ts": {
125
+ "name": "idx_activity_items_agent_ts",
126
+ "columns": [
127
+ "agent_id",
128
+ "\"ts\" desc"
129
+ ],
130
+ "isUnique": false
131
+ },
132
+ "idx_activity_items_actor_ts": {
133
+ "name": "idx_activity_items_actor_ts",
134
+ "columns": [
135
+ "actor_id",
136
+ "\"ts\" desc"
137
+ ],
138
+ "isUnique": false
139
+ },
140
+ "idx_activity_items_conversation_ts": {
141
+ "name": "idx_activity_items_conversation_ts",
142
+ "columns": [
143
+ "conversation_id",
144
+ "\"ts\" desc"
145
+ ],
146
+ "isUnique": false
147
+ },
148
+ "idx_activity_items_ts": {
149
+ "name": "idx_activity_items_ts",
150
+ "columns": [
151
+ "\"ts\" desc"
152
+ ],
153
+ "isUnique": false
154
+ },
155
+ "idx_activity_items_workspace_ts": {
156
+ "name": "idx_activity_items_workspace_ts",
157
+ "columns": [
158
+ "workspace_root",
159
+ "\"ts\" desc"
160
+ ],
161
+ "isUnique": false
162
+ },
163
+ "idx_activity_items_kind_ts": {
164
+ "name": "idx_activity_items_kind_ts",
165
+ "columns": [
166
+ "kind",
167
+ "\"ts\" desc"
168
+ ],
169
+ "isUnique": false
170
+ },
171
+ "idx_activity_items_session_ts": {
172
+ "name": "idx_activity_items_session_ts",
173
+ "columns": [
174
+ "session_id",
175
+ "\"ts\" desc"
176
+ ],
177
+ "isUnique": false
178
+ }
179
+ },
180
+ "foreignKeys": {
181
+ "activity_items_conversation_id_conversations_id_fk": {
182
+ "name": "activity_items_conversation_id_conversations_id_fk",
183
+ "tableFrom": "activity_items",
184
+ "tableTo": "conversations",
185
+ "columnsFrom": [
186
+ "conversation_id"
187
+ ],
188
+ "columnsTo": [
189
+ "id"
190
+ ],
191
+ "onDelete": "cascade",
192
+ "onUpdate": "no action"
193
+ },
194
+ "activity_items_message_id_messages_id_fk": {
195
+ "name": "activity_items_message_id_messages_id_fk",
196
+ "tableFrom": "activity_items",
197
+ "tableTo": "messages",
198
+ "columnsFrom": [
199
+ "message_id"
200
+ ],
201
+ "columnsTo": [
202
+ "id"
203
+ ],
204
+ "onDelete": "cascade",
205
+ "onUpdate": "no action"
206
+ },
207
+ "activity_items_invocation_id_invocations_id_fk": {
208
+ "name": "activity_items_invocation_id_invocations_id_fk",
209
+ "tableFrom": "activity_items",
210
+ "tableTo": "invocations",
211
+ "columnsFrom": [
212
+ "invocation_id"
213
+ ],
214
+ "columnsTo": [
215
+ "id"
216
+ ],
217
+ "onDelete": "cascade",
218
+ "onUpdate": "no action"
219
+ },
220
+ "activity_items_flight_id_flights_id_fk": {
221
+ "name": "activity_items_flight_id_flights_id_fk",
222
+ "tableFrom": "activity_items",
223
+ "tableTo": "flights",
224
+ "columnsFrom": [
225
+ "flight_id"
226
+ ],
227
+ "columnsTo": [
228
+ "id"
229
+ ],
230
+ "onDelete": "cascade",
231
+ "onUpdate": "no action"
232
+ },
233
+ "activity_items_record_id_collaboration_records_id_fk": {
234
+ "name": "activity_items_record_id_collaboration_records_id_fk",
235
+ "tableFrom": "activity_items",
236
+ "tableTo": "collaboration_records",
237
+ "columnsFrom": [
238
+ "record_id"
239
+ ],
240
+ "columnsTo": [
241
+ "id"
242
+ ],
243
+ "onDelete": "cascade",
244
+ "onUpdate": "no action"
245
+ },
246
+ "activity_items_actor_id_actors_id_fk": {
247
+ "name": "activity_items_actor_id_actors_id_fk",
248
+ "tableFrom": "activity_items",
249
+ "tableTo": "actors",
250
+ "columnsFrom": [
251
+ "actor_id"
252
+ ],
253
+ "columnsTo": [
254
+ "id"
255
+ ],
256
+ "onDelete": "set null",
257
+ "onUpdate": "no action"
258
+ },
259
+ "activity_items_counterpart_id_actors_id_fk": {
260
+ "name": "activity_items_counterpart_id_actors_id_fk",
261
+ "tableFrom": "activity_items",
262
+ "tableTo": "actors",
263
+ "columnsFrom": [
264
+ "counterpart_id"
265
+ ],
266
+ "columnsTo": [
267
+ "id"
268
+ ],
269
+ "onDelete": "set null",
270
+ "onUpdate": "no action"
271
+ },
272
+ "activity_items_agent_id_agents_id_fk": {
273
+ "name": "activity_items_agent_id_agents_id_fk",
274
+ "tableFrom": "activity_items",
275
+ "tableTo": "agents",
276
+ "columnsFrom": [
277
+ "agent_id"
278
+ ],
279
+ "columnsTo": [
280
+ "id"
281
+ ],
282
+ "onDelete": "set null",
283
+ "onUpdate": "no action"
284
+ }
285
+ },
286
+ "compositePrimaryKeys": {},
287
+ "uniqueConstraints": {},
288
+ "checkConstraints": {}
289
+ },
290
+ "actors": {
291
+ "name": "actors",
292
+ "columns": {
293
+ "id": {
294
+ "name": "id",
295
+ "type": "text",
296
+ "primaryKey": true,
297
+ "notNull": true,
298
+ "autoincrement": false
299
+ },
300
+ "kind": {
301
+ "name": "kind",
302
+ "type": "text",
303
+ "primaryKey": false,
304
+ "notNull": true,
305
+ "autoincrement": false
306
+ },
307
+ "display_name": {
308
+ "name": "display_name",
309
+ "type": "text",
310
+ "primaryKey": false,
311
+ "notNull": true,
312
+ "autoincrement": false
313
+ },
314
+ "handle": {
315
+ "name": "handle",
316
+ "type": "text",
317
+ "primaryKey": false,
318
+ "notNull": false,
319
+ "autoincrement": false
320
+ },
321
+ "labels_json": {
322
+ "name": "labels_json",
323
+ "type": "text",
324
+ "primaryKey": false,
325
+ "notNull": false,
326
+ "autoincrement": false
327
+ },
328
+ "metadata_json": {
329
+ "name": "metadata_json",
330
+ "type": "text",
331
+ "primaryKey": false,
332
+ "notNull": false,
333
+ "autoincrement": false
334
+ },
335
+ "created_at": {
336
+ "name": "created_at",
337
+ "type": "integer",
338
+ "primaryKey": false,
339
+ "notNull": true,
340
+ "autoincrement": false,
341
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
342
+ }
343
+ },
344
+ "indexes": {},
345
+ "foreignKeys": {},
346
+ "compositePrimaryKeys": {},
347
+ "uniqueConstraints": {},
348
+ "checkConstraints": {}
349
+ },
350
+ "agent_endpoints": {
351
+ "name": "agent_endpoints",
352
+ "columns": {
353
+ "id": {
354
+ "name": "id",
355
+ "type": "text",
356
+ "primaryKey": true,
357
+ "notNull": true,
358
+ "autoincrement": false
359
+ },
360
+ "agent_id": {
361
+ "name": "agent_id",
362
+ "type": "text",
363
+ "primaryKey": false,
364
+ "notNull": true,
365
+ "autoincrement": false
366
+ },
367
+ "node_id": {
368
+ "name": "node_id",
369
+ "type": "text",
370
+ "primaryKey": false,
371
+ "notNull": true,
372
+ "autoincrement": false
373
+ },
374
+ "harness": {
375
+ "name": "harness",
376
+ "type": "text",
377
+ "primaryKey": false,
378
+ "notNull": true,
379
+ "autoincrement": false
380
+ },
381
+ "transport": {
382
+ "name": "transport",
383
+ "type": "text",
384
+ "primaryKey": false,
385
+ "notNull": true,
386
+ "autoincrement": false
387
+ },
388
+ "state": {
389
+ "name": "state",
390
+ "type": "text",
391
+ "primaryKey": false,
392
+ "notNull": true,
393
+ "autoincrement": false
394
+ },
395
+ "address": {
396
+ "name": "address",
397
+ "type": "text",
398
+ "primaryKey": false,
399
+ "notNull": false,
400
+ "autoincrement": false
401
+ },
402
+ "session_id": {
403
+ "name": "session_id",
404
+ "type": "text",
405
+ "primaryKey": false,
406
+ "notNull": false,
407
+ "autoincrement": false
408
+ },
409
+ "pane": {
410
+ "name": "pane",
411
+ "type": "text",
412
+ "primaryKey": false,
413
+ "notNull": false,
414
+ "autoincrement": false
415
+ },
416
+ "cwd": {
417
+ "name": "cwd",
418
+ "type": "text",
419
+ "primaryKey": false,
420
+ "notNull": false,
421
+ "autoincrement": false
422
+ },
423
+ "project_root": {
424
+ "name": "project_root",
425
+ "type": "text",
426
+ "primaryKey": false,
427
+ "notNull": false,
428
+ "autoincrement": false
429
+ },
430
+ "metadata_json": {
431
+ "name": "metadata_json",
432
+ "type": "text",
433
+ "primaryKey": false,
434
+ "notNull": false,
435
+ "autoincrement": false
436
+ },
437
+ "updated_at": {
438
+ "name": "updated_at",
439
+ "type": "integer",
440
+ "primaryKey": false,
441
+ "notNull": true,
442
+ "autoincrement": false,
443
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
444
+ }
445
+ },
446
+ "indexes": {
447
+ "idx_agent_endpoints_agent_updated_at": {
448
+ "name": "idx_agent_endpoints_agent_updated_at",
449
+ "columns": [
450
+ "agent_id",
451
+ "\"updated_at\" desc"
452
+ ],
453
+ "isUnique": false
454
+ }
455
+ },
456
+ "foreignKeys": {
457
+ "agent_endpoints_agent_id_agents_id_fk": {
458
+ "name": "agent_endpoints_agent_id_agents_id_fk",
459
+ "tableFrom": "agent_endpoints",
460
+ "tableTo": "agents",
461
+ "columnsFrom": [
462
+ "agent_id"
463
+ ],
464
+ "columnsTo": [
465
+ "id"
466
+ ],
467
+ "onDelete": "cascade",
468
+ "onUpdate": "no action"
469
+ },
470
+ "agent_endpoints_node_id_nodes_id_fk": {
471
+ "name": "agent_endpoints_node_id_nodes_id_fk",
472
+ "tableFrom": "agent_endpoints",
473
+ "tableTo": "nodes",
474
+ "columnsFrom": [
475
+ "node_id"
476
+ ],
477
+ "columnsTo": [
478
+ "id"
479
+ ],
480
+ "onDelete": "restrict",
481
+ "onUpdate": "no action"
482
+ }
483
+ },
484
+ "compositePrimaryKeys": {},
485
+ "uniqueConstraints": {},
486
+ "checkConstraints": {}
487
+ },
488
+ "agents": {
489
+ "name": "agents",
490
+ "columns": {
491
+ "id": {
492
+ "name": "id",
493
+ "type": "text",
494
+ "primaryKey": true,
495
+ "notNull": true,
496
+ "autoincrement": false
497
+ },
498
+ "definition_id": {
499
+ "name": "definition_id",
500
+ "type": "text",
501
+ "primaryKey": false,
502
+ "notNull": true,
503
+ "autoincrement": false
504
+ },
505
+ "node_qualifier": {
506
+ "name": "node_qualifier",
507
+ "type": "text",
508
+ "primaryKey": false,
509
+ "notNull": false,
510
+ "autoincrement": false
511
+ },
512
+ "workspace_qualifier": {
513
+ "name": "workspace_qualifier",
514
+ "type": "text",
515
+ "primaryKey": false,
516
+ "notNull": false,
517
+ "autoincrement": false
518
+ },
519
+ "selector": {
520
+ "name": "selector",
521
+ "type": "text",
522
+ "primaryKey": false,
523
+ "notNull": false,
524
+ "autoincrement": false
525
+ },
526
+ "default_selector": {
527
+ "name": "default_selector",
528
+ "type": "text",
529
+ "primaryKey": false,
530
+ "notNull": false,
531
+ "autoincrement": false
532
+ },
533
+ "agent_class": {
534
+ "name": "agent_class",
535
+ "type": "text",
536
+ "primaryKey": false,
537
+ "notNull": true,
538
+ "autoincrement": false
539
+ },
540
+ "capabilities_json": {
541
+ "name": "capabilities_json",
542
+ "type": "text",
543
+ "primaryKey": false,
544
+ "notNull": true,
545
+ "autoincrement": false
546
+ },
547
+ "wake_policy": {
548
+ "name": "wake_policy",
549
+ "type": "text",
550
+ "primaryKey": false,
551
+ "notNull": true,
552
+ "autoincrement": false
553
+ },
554
+ "home_node_id": {
555
+ "name": "home_node_id",
556
+ "type": "text",
557
+ "primaryKey": false,
558
+ "notNull": true,
559
+ "autoincrement": false
560
+ },
561
+ "authority_node_id": {
562
+ "name": "authority_node_id",
563
+ "type": "text",
564
+ "primaryKey": false,
565
+ "notNull": true,
566
+ "autoincrement": false
567
+ },
568
+ "advertise_scope": {
569
+ "name": "advertise_scope",
570
+ "type": "text",
571
+ "primaryKey": false,
572
+ "notNull": true,
573
+ "autoincrement": false
574
+ },
575
+ "owner_id": {
576
+ "name": "owner_id",
577
+ "type": "text",
578
+ "primaryKey": false,
579
+ "notNull": false,
580
+ "autoincrement": false
581
+ },
582
+ "metadata_json": {
583
+ "name": "metadata_json",
584
+ "type": "text",
585
+ "primaryKey": false,
586
+ "notNull": false,
587
+ "autoincrement": false
588
+ }
589
+ },
590
+ "indexes": {},
591
+ "foreignKeys": {
592
+ "agents_id_actors_id_fk": {
593
+ "name": "agents_id_actors_id_fk",
594
+ "tableFrom": "agents",
595
+ "tableTo": "actors",
596
+ "columnsFrom": [
597
+ "id"
598
+ ],
599
+ "columnsTo": [
600
+ "id"
601
+ ],
602
+ "onDelete": "cascade",
603
+ "onUpdate": "no action"
604
+ },
605
+ "agents_home_node_id_nodes_id_fk": {
606
+ "name": "agents_home_node_id_nodes_id_fk",
607
+ "tableFrom": "agents",
608
+ "tableTo": "nodes",
609
+ "columnsFrom": [
610
+ "home_node_id"
611
+ ],
612
+ "columnsTo": [
613
+ "id"
614
+ ],
615
+ "onDelete": "restrict",
616
+ "onUpdate": "no action"
617
+ },
618
+ "agents_authority_node_id_nodes_id_fk": {
619
+ "name": "agents_authority_node_id_nodes_id_fk",
620
+ "tableFrom": "agents",
621
+ "tableTo": "nodes",
622
+ "columnsFrom": [
623
+ "authority_node_id"
624
+ ],
625
+ "columnsTo": [
626
+ "id"
627
+ ],
628
+ "onDelete": "restrict",
629
+ "onUpdate": "no action"
630
+ }
631
+ },
632
+ "compositePrimaryKeys": {},
633
+ "uniqueConstraints": {},
634
+ "checkConstraints": {}
635
+ },
636
+ "bindings": {
637
+ "name": "bindings",
638
+ "columns": {
639
+ "id": {
640
+ "name": "id",
641
+ "type": "text",
642
+ "primaryKey": true,
643
+ "notNull": true,
644
+ "autoincrement": false
645
+ },
646
+ "conversation_id": {
647
+ "name": "conversation_id",
648
+ "type": "text",
649
+ "primaryKey": false,
650
+ "notNull": true,
651
+ "autoincrement": false
652
+ },
653
+ "platform": {
654
+ "name": "platform",
655
+ "type": "text",
656
+ "primaryKey": false,
657
+ "notNull": true,
658
+ "autoincrement": false
659
+ },
660
+ "mode": {
661
+ "name": "mode",
662
+ "type": "text",
663
+ "primaryKey": false,
664
+ "notNull": true,
665
+ "autoincrement": false
666
+ },
667
+ "external_channel_id": {
668
+ "name": "external_channel_id",
669
+ "type": "text",
670
+ "primaryKey": false,
671
+ "notNull": true,
672
+ "autoincrement": false
673
+ },
674
+ "external_thread_id": {
675
+ "name": "external_thread_id",
676
+ "type": "text",
677
+ "primaryKey": false,
678
+ "notNull": false,
679
+ "autoincrement": false
680
+ },
681
+ "metadata_json": {
682
+ "name": "metadata_json",
683
+ "type": "text",
684
+ "primaryKey": false,
685
+ "notNull": false,
686
+ "autoincrement": false
687
+ }
688
+ },
689
+ "indexes": {},
690
+ "foreignKeys": {
691
+ "bindings_conversation_id_conversations_id_fk": {
692
+ "name": "bindings_conversation_id_conversations_id_fk",
693
+ "tableFrom": "bindings",
694
+ "tableTo": "conversations",
695
+ "columnsFrom": [
696
+ "conversation_id"
697
+ ],
698
+ "columnsTo": [
699
+ "id"
700
+ ],
701
+ "onDelete": "cascade",
702
+ "onUpdate": "no action"
703
+ }
704
+ },
705
+ "compositePrimaryKeys": {},
706
+ "uniqueConstraints": {},
707
+ "checkConstraints": {}
708
+ },
709
+ "briefings": {
710
+ "name": "briefings",
711
+ "columns": {
712
+ "id": {
713
+ "name": "id",
714
+ "type": "text",
715
+ "primaryKey": true,
716
+ "notNull": true,
717
+ "autoincrement": false
718
+ },
719
+ "kind": {
720
+ "name": "kind",
721
+ "type": "text",
722
+ "primaryKey": false,
723
+ "notNull": true,
724
+ "autoincrement": false
725
+ },
726
+ "title": {
727
+ "name": "title",
728
+ "type": "text",
729
+ "primaryKey": false,
730
+ "notNull": true,
731
+ "autoincrement": false
732
+ },
733
+ "summary": {
734
+ "name": "summary",
735
+ "type": "text",
736
+ "primaryKey": false,
737
+ "notNull": true,
738
+ "autoincrement": false
739
+ },
740
+ "recommendation": {
741
+ "name": "recommendation",
742
+ "type": "text",
743
+ "primaryKey": false,
744
+ "notNull": false,
745
+ "autoincrement": false
746
+ },
747
+ "prepared_at": {
748
+ "name": "prepared_at",
749
+ "type": "integer",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "autoincrement": false
753
+ },
754
+ "ttl_ms": {
755
+ "name": "ttl_ms",
756
+ "type": "integer",
757
+ "primaryKey": false,
758
+ "notNull": true,
759
+ "autoincrement": false
760
+ },
761
+ "brief_json": {
762
+ "name": "brief_json",
763
+ "type": "text",
764
+ "primaryKey": false,
765
+ "notNull": true,
766
+ "autoincrement": false
767
+ },
768
+ "observations_json": {
769
+ "name": "observations_json",
770
+ "type": "text",
771
+ "primaryKey": false,
772
+ "notNull": true,
773
+ "autoincrement": false
774
+ },
775
+ "snapshot_json": {
776
+ "name": "snapshot_json",
777
+ "type": "text",
778
+ "primaryKey": false,
779
+ "notNull": true,
780
+ "autoincrement": false
781
+ },
782
+ "call_json": {
783
+ "name": "call_json",
784
+ "type": "text",
785
+ "primaryKey": false,
786
+ "notNull": true,
787
+ "autoincrement": false
788
+ },
789
+ "markdown": {
790
+ "name": "markdown",
791
+ "type": "text",
792
+ "primaryKey": false,
793
+ "notNull": false,
794
+ "autoincrement": false
795
+ },
796
+ "created_at": {
797
+ "name": "created_at",
798
+ "type": "integer",
799
+ "primaryKey": false,
800
+ "notNull": true,
801
+ "autoincrement": false,
802
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
803
+ }
804
+ },
805
+ "indexes": {
806
+ "idx_briefings_created_at": {
807
+ "name": "idx_briefings_created_at",
808
+ "columns": [
809
+ "\"created_at\" desc"
810
+ ],
811
+ "isUnique": false
812
+ },
813
+ "idx_briefings_kind_created_at": {
814
+ "name": "idx_briefings_kind_created_at",
815
+ "columns": [
816
+ "kind",
817
+ "\"created_at\" desc"
818
+ ],
819
+ "isUnique": false
820
+ }
821
+ },
822
+ "foreignKeys": {},
823
+ "compositePrimaryKeys": {},
824
+ "uniqueConstraints": {},
825
+ "checkConstraints": {}
826
+ },
827
+ "budget_quota_window_snapshots": {
828
+ "name": "budget_quota_window_snapshots",
829
+ "columns": {
830
+ "id": {
831
+ "name": "id",
832
+ "type": "text",
833
+ "primaryKey": true,
834
+ "notNull": true,
835
+ "autoincrement": false
836
+ },
837
+ "source": {
838
+ "name": "source",
839
+ "type": "text",
840
+ "primaryKey": false,
841
+ "notNull": true,
842
+ "autoincrement": false
843
+ },
844
+ "provider": {
845
+ "name": "provider",
846
+ "type": "text",
847
+ "primaryKey": false,
848
+ "notNull": false,
849
+ "autoincrement": false
850
+ },
851
+ "harness": {
852
+ "name": "harness",
853
+ "type": "text",
854
+ "primaryKey": false,
855
+ "notNull": false,
856
+ "autoincrement": false
857
+ },
858
+ "transport": {
859
+ "name": "transport",
860
+ "type": "text",
861
+ "primaryKey": false,
862
+ "notNull": false,
863
+ "autoincrement": false
864
+ },
865
+ "model": {
866
+ "name": "model",
867
+ "type": "text",
868
+ "primaryKey": false,
869
+ "notNull": false,
870
+ "autoincrement": false
871
+ },
872
+ "agent_id": {
873
+ "name": "agent_id",
874
+ "type": "text",
875
+ "primaryKey": false,
876
+ "notNull": false,
877
+ "autoincrement": false
878
+ },
879
+ "endpoint_id": {
880
+ "name": "endpoint_id",
881
+ "type": "text",
882
+ "primaryKey": false,
883
+ "notNull": false,
884
+ "autoincrement": false
885
+ },
886
+ "session_id": {
887
+ "name": "session_id",
888
+ "type": "text",
889
+ "primaryKey": false,
890
+ "notNull": false,
891
+ "autoincrement": false
892
+ },
893
+ "user_id": {
894
+ "name": "user_id",
895
+ "type": "text",
896
+ "primaryKey": false,
897
+ "notNull": false,
898
+ "autoincrement": false
899
+ },
900
+ "account_id": {
901
+ "name": "account_id",
902
+ "type": "text",
903
+ "primaryKey": false,
904
+ "notNull": false,
905
+ "autoincrement": false
906
+ },
907
+ "plan_type": {
908
+ "name": "plan_type",
909
+ "type": "text",
910
+ "primaryKey": false,
911
+ "notNull": false,
912
+ "autoincrement": false
913
+ },
914
+ "label": {
915
+ "name": "label",
916
+ "type": "text",
917
+ "primaryKey": false,
918
+ "notNull": true,
919
+ "autoincrement": false
920
+ },
921
+ "window_kind": {
922
+ "name": "window_kind",
923
+ "type": "text",
924
+ "primaryKey": false,
925
+ "notNull": false,
926
+ "autoincrement": false
927
+ },
928
+ "used_percent": {
929
+ "name": "used_percent",
930
+ "type": "real",
931
+ "primaryKey": false,
932
+ "notNull": false,
933
+ "autoincrement": false
934
+ },
935
+ "percent_remaining": {
936
+ "name": "percent_remaining",
937
+ "type": "real",
938
+ "primaryKey": false,
939
+ "notNull": false,
940
+ "autoincrement": false
941
+ },
942
+ "used": {
943
+ "name": "used",
944
+ "type": "real",
945
+ "primaryKey": false,
946
+ "notNull": false,
947
+ "autoincrement": false
948
+ },
949
+ "limit_value": {
950
+ "name": "limit_value",
951
+ "type": "real",
952
+ "primaryKey": false,
953
+ "notNull": false,
954
+ "autoincrement": false
955
+ },
956
+ "reset_at": {
957
+ "name": "reset_at",
958
+ "type": "integer",
959
+ "primaryKey": false,
960
+ "notNull": false,
961
+ "autoincrement": false
962
+ },
963
+ "window_ms": {
964
+ "name": "window_ms",
965
+ "type": "integer",
966
+ "primaryKey": false,
967
+ "notNull": false,
968
+ "autoincrement": false
969
+ },
970
+ "captured_at": {
971
+ "name": "captured_at",
972
+ "type": "integer",
973
+ "primaryKey": false,
974
+ "notNull": true,
975
+ "autoincrement": false
976
+ },
977
+ "metadata_json": {
978
+ "name": "metadata_json",
979
+ "type": "text",
980
+ "primaryKey": false,
981
+ "notNull": false,
982
+ "autoincrement": false
983
+ },
984
+ "created_at": {
985
+ "name": "created_at",
986
+ "type": "integer",
987
+ "primaryKey": false,
988
+ "notNull": true,
989
+ "autoincrement": false,
990
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
991
+ }
992
+ },
993
+ "indexes": {
994
+ "idx_budget_quota_windows_session_captured": {
995
+ "name": "idx_budget_quota_windows_session_captured",
996
+ "columns": [
997
+ "session_id",
998
+ "\"captured_at\" desc"
999
+ ],
1000
+ "isUnique": false
1001
+ },
1002
+ "idx_budget_quota_windows_provider_label": {
1003
+ "name": "idx_budget_quota_windows_provider_label",
1004
+ "columns": [
1005
+ "provider",
1006
+ "label",
1007
+ "\"captured_at\" desc"
1008
+ ],
1009
+ "isUnique": false
1010
+ }
1011
+ },
1012
+ "foreignKeys": {},
1013
+ "compositePrimaryKeys": {},
1014
+ "uniqueConstraints": {},
1015
+ "checkConstraints": {}
1016
+ },
1017
+ "budget_usage_events": {
1018
+ "name": "budget_usage_events",
1019
+ "columns": {
1020
+ "id": {
1021
+ "name": "id",
1022
+ "type": "text",
1023
+ "primaryKey": true,
1024
+ "notNull": true,
1025
+ "autoincrement": false
1026
+ },
1027
+ "scope": {
1028
+ "name": "scope",
1029
+ "type": "text",
1030
+ "primaryKey": false,
1031
+ "notNull": true,
1032
+ "autoincrement": false
1033
+ },
1034
+ "source": {
1035
+ "name": "source",
1036
+ "type": "text",
1037
+ "primaryKey": false,
1038
+ "notNull": true,
1039
+ "autoincrement": false
1040
+ },
1041
+ "provider": {
1042
+ "name": "provider",
1043
+ "type": "text",
1044
+ "primaryKey": false,
1045
+ "notNull": false,
1046
+ "autoincrement": false
1047
+ },
1048
+ "harness": {
1049
+ "name": "harness",
1050
+ "type": "text",
1051
+ "primaryKey": false,
1052
+ "notNull": false,
1053
+ "autoincrement": false
1054
+ },
1055
+ "transport": {
1056
+ "name": "transport",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": false,
1060
+ "autoincrement": false
1061
+ },
1062
+ "model": {
1063
+ "name": "model",
1064
+ "type": "text",
1065
+ "primaryKey": false,
1066
+ "notNull": false,
1067
+ "autoincrement": false
1068
+ },
1069
+ "agent_id": {
1070
+ "name": "agent_id",
1071
+ "type": "text",
1072
+ "primaryKey": false,
1073
+ "notNull": false,
1074
+ "autoincrement": false
1075
+ },
1076
+ "endpoint_id": {
1077
+ "name": "endpoint_id",
1078
+ "type": "text",
1079
+ "primaryKey": false,
1080
+ "notNull": false,
1081
+ "autoincrement": false
1082
+ },
1083
+ "session_id": {
1084
+ "name": "session_id",
1085
+ "type": "text",
1086
+ "primaryKey": false,
1087
+ "notNull": false,
1088
+ "autoincrement": false
1089
+ },
1090
+ "project_root": {
1091
+ "name": "project_root",
1092
+ "type": "text",
1093
+ "primaryKey": false,
1094
+ "notNull": false,
1095
+ "autoincrement": false
1096
+ },
1097
+ "conversation_id": {
1098
+ "name": "conversation_id",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": false,
1102
+ "autoincrement": false
1103
+ },
1104
+ "message_id": {
1105
+ "name": "message_id",
1106
+ "type": "text",
1107
+ "primaryKey": false,
1108
+ "notNull": false,
1109
+ "autoincrement": false
1110
+ },
1111
+ "invocation_id": {
1112
+ "name": "invocation_id",
1113
+ "type": "text",
1114
+ "primaryKey": false,
1115
+ "notNull": false,
1116
+ "autoincrement": false
1117
+ },
1118
+ "flight_id": {
1119
+ "name": "flight_id",
1120
+ "type": "text",
1121
+ "primaryKey": false,
1122
+ "notNull": false,
1123
+ "autoincrement": false
1124
+ },
1125
+ "work_id": {
1126
+ "name": "work_id",
1127
+ "type": "text",
1128
+ "primaryKey": false,
1129
+ "notNull": false,
1130
+ "autoincrement": false
1131
+ },
1132
+ "occurred_at": {
1133
+ "name": "occurred_at",
1134
+ "type": "integer",
1135
+ "primaryKey": false,
1136
+ "notNull": true,
1137
+ "autoincrement": false
1138
+ },
1139
+ "input_tokens": {
1140
+ "name": "input_tokens",
1141
+ "type": "integer",
1142
+ "primaryKey": false,
1143
+ "notNull": false,
1144
+ "autoincrement": false
1145
+ },
1146
+ "output_tokens": {
1147
+ "name": "output_tokens",
1148
+ "type": "integer",
1149
+ "primaryKey": false,
1150
+ "notNull": false,
1151
+ "autoincrement": false
1152
+ },
1153
+ "reasoning_output_tokens": {
1154
+ "name": "reasoning_output_tokens",
1155
+ "type": "integer",
1156
+ "primaryKey": false,
1157
+ "notNull": false,
1158
+ "autoincrement": false
1159
+ },
1160
+ "cache_creation_input_tokens": {
1161
+ "name": "cache_creation_input_tokens",
1162
+ "type": "integer",
1163
+ "primaryKey": false,
1164
+ "notNull": false,
1165
+ "autoincrement": false
1166
+ },
1167
+ "cache_read_input_tokens": {
1168
+ "name": "cache_read_input_tokens",
1169
+ "type": "integer",
1170
+ "primaryKey": false,
1171
+ "notNull": false,
1172
+ "autoincrement": false
1173
+ },
1174
+ "total_tokens": {
1175
+ "name": "total_tokens",
1176
+ "type": "integer",
1177
+ "primaryKey": false,
1178
+ "notNull": false,
1179
+ "autoincrement": false
1180
+ },
1181
+ "estimated_usd": {
1182
+ "name": "estimated_usd",
1183
+ "type": "real",
1184
+ "primaryKey": false,
1185
+ "notNull": false,
1186
+ "autoincrement": false
1187
+ },
1188
+ "billed_usd": {
1189
+ "name": "billed_usd",
1190
+ "type": "real",
1191
+ "primaryKey": false,
1192
+ "notNull": false,
1193
+ "autoincrement": false
1194
+ },
1195
+ "currency": {
1196
+ "name": "currency",
1197
+ "type": "text",
1198
+ "primaryKey": false,
1199
+ "notNull": false,
1200
+ "autoincrement": false
1201
+ },
1202
+ "dedup_key": {
1203
+ "name": "dedup_key",
1204
+ "type": "text",
1205
+ "primaryKey": false,
1206
+ "notNull": false,
1207
+ "autoincrement": false
1208
+ },
1209
+ "metadata_json": {
1210
+ "name": "metadata_json",
1211
+ "type": "text",
1212
+ "primaryKey": false,
1213
+ "notNull": false,
1214
+ "autoincrement": false
1215
+ },
1216
+ "created_at": {
1217
+ "name": "created_at",
1218
+ "type": "integer",
1219
+ "primaryKey": false,
1220
+ "notNull": true,
1221
+ "autoincrement": false,
1222
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
1223
+ }
1224
+ },
1225
+ "indexes": {
1226
+ "idx_budget_usage_events_scope_occurred": {
1227
+ "name": "idx_budget_usage_events_scope_occurred",
1228
+ "columns": [
1229
+ "scope",
1230
+ "\"occurred_at\" desc"
1231
+ ],
1232
+ "isUnique": false
1233
+ },
1234
+ "idx_budget_usage_events_session_occurred": {
1235
+ "name": "idx_budget_usage_events_session_occurred",
1236
+ "columns": [
1237
+ "session_id",
1238
+ "\"occurred_at\" desc"
1239
+ ],
1240
+ "isUnique": false
1241
+ },
1242
+ "idx_budget_usage_events_invocation": {
1243
+ "name": "idx_budget_usage_events_invocation",
1244
+ "columns": [
1245
+ "invocation_id",
1246
+ "\"occurred_at\" desc"
1247
+ ],
1248
+ "isUnique": false
1249
+ },
1250
+ "idx_budget_usage_events_flight": {
1251
+ "name": "idx_budget_usage_events_flight",
1252
+ "columns": [
1253
+ "flight_id",
1254
+ "\"occurred_at\" desc"
1255
+ ],
1256
+ "isUnique": false
1257
+ },
1258
+ "idx_budget_usage_events_dedup": {
1259
+ "name": "idx_budget_usage_events_dedup",
1260
+ "columns": [
1261
+ "scope",
1262
+ "source",
1263
+ "dedup_key"
1264
+ ],
1265
+ "isUnique": true,
1266
+ "where": "dedup_key IS NOT NULL AND dedup_key != ''"
1267
+ }
1268
+ },
1269
+ "foreignKeys": {},
1270
+ "compositePrimaryKeys": {},
1271
+ "uniqueConstraints": {},
1272
+ "checkConstraints": {}
1273
+ },
1274
+ "collaboration_events": {
1275
+ "name": "collaboration_events",
1276
+ "columns": {
1277
+ "id": {
1278
+ "name": "id",
1279
+ "type": "text",
1280
+ "primaryKey": true,
1281
+ "notNull": true,
1282
+ "autoincrement": false
1283
+ },
1284
+ "record_id": {
1285
+ "name": "record_id",
1286
+ "type": "text",
1287
+ "primaryKey": false,
1288
+ "notNull": true,
1289
+ "autoincrement": false
1290
+ },
1291
+ "record_kind": {
1292
+ "name": "record_kind",
1293
+ "type": "text",
1294
+ "primaryKey": false,
1295
+ "notNull": true,
1296
+ "autoincrement": false
1297
+ },
1298
+ "kind": {
1299
+ "name": "kind",
1300
+ "type": "text",
1301
+ "primaryKey": false,
1302
+ "notNull": true,
1303
+ "autoincrement": false
1304
+ },
1305
+ "actor_id": {
1306
+ "name": "actor_id",
1307
+ "type": "text",
1308
+ "primaryKey": false,
1309
+ "notNull": true,
1310
+ "autoincrement": false
1311
+ },
1312
+ "summary": {
1313
+ "name": "summary",
1314
+ "type": "text",
1315
+ "primaryKey": false,
1316
+ "notNull": false,
1317
+ "autoincrement": false
1318
+ },
1319
+ "metadata_json": {
1320
+ "name": "metadata_json",
1321
+ "type": "text",
1322
+ "primaryKey": false,
1323
+ "notNull": false,
1324
+ "autoincrement": false
1325
+ },
1326
+ "created_at": {
1327
+ "name": "created_at",
1328
+ "type": "integer",
1329
+ "primaryKey": false,
1330
+ "notNull": true,
1331
+ "autoincrement": false
1332
+ }
1333
+ },
1334
+ "indexes": {
1335
+ "idx_collaboration_events_record_created_at": {
1336
+ "name": "idx_collaboration_events_record_created_at",
1337
+ "columns": [
1338
+ "record_id",
1339
+ "created_at"
1340
+ ],
1341
+ "isUnique": false
1342
+ }
1343
+ },
1344
+ "foreignKeys": {
1345
+ "collaboration_events_record_id_collaboration_records_id_fk": {
1346
+ "name": "collaboration_events_record_id_collaboration_records_id_fk",
1347
+ "tableFrom": "collaboration_events",
1348
+ "tableTo": "collaboration_records",
1349
+ "columnsFrom": [
1350
+ "record_id"
1351
+ ],
1352
+ "columnsTo": [
1353
+ "id"
1354
+ ],
1355
+ "onDelete": "cascade",
1356
+ "onUpdate": "no action"
1357
+ },
1358
+ "collaboration_events_actor_id_actors_id_fk": {
1359
+ "name": "collaboration_events_actor_id_actors_id_fk",
1360
+ "tableFrom": "collaboration_events",
1361
+ "tableTo": "actors",
1362
+ "columnsFrom": [
1363
+ "actor_id"
1364
+ ],
1365
+ "columnsTo": [
1366
+ "id"
1367
+ ],
1368
+ "onDelete": "restrict",
1369
+ "onUpdate": "no action"
1370
+ }
1371
+ },
1372
+ "compositePrimaryKeys": {},
1373
+ "uniqueConstraints": {},
1374
+ "checkConstraints": {}
1375
+ },
1376
+ "collaboration_records": {
1377
+ "name": "collaboration_records",
1378
+ "columns": {
1379
+ "id": {
1380
+ "name": "id",
1381
+ "type": "text",
1382
+ "primaryKey": true,
1383
+ "notNull": true,
1384
+ "autoincrement": false
1385
+ },
1386
+ "kind": {
1387
+ "name": "kind",
1388
+ "type": "text",
1389
+ "primaryKey": false,
1390
+ "notNull": true,
1391
+ "autoincrement": false
1392
+ },
1393
+ "state": {
1394
+ "name": "state",
1395
+ "type": "text",
1396
+ "primaryKey": false,
1397
+ "notNull": true,
1398
+ "autoincrement": false
1399
+ },
1400
+ "acceptance_state": {
1401
+ "name": "acceptance_state",
1402
+ "type": "text",
1403
+ "primaryKey": false,
1404
+ "notNull": true,
1405
+ "autoincrement": false
1406
+ },
1407
+ "title": {
1408
+ "name": "title",
1409
+ "type": "text",
1410
+ "primaryKey": false,
1411
+ "notNull": true,
1412
+ "autoincrement": false
1413
+ },
1414
+ "summary": {
1415
+ "name": "summary",
1416
+ "type": "text",
1417
+ "primaryKey": false,
1418
+ "notNull": false,
1419
+ "autoincrement": false
1420
+ },
1421
+ "created_by_id": {
1422
+ "name": "created_by_id",
1423
+ "type": "text",
1424
+ "primaryKey": false,
1425
+ "notNull": true,
1426
+ "autoincrement": false
1427
+ },
1428
+ "owner_id": {
1429
+ "name": "owner_id",
1430
+ "type": "text",
1431
+ "primaryKey": false,
1432
+ "notNull": false,
1433
+ "autoincrement": false
1434
+ },
1435
+ "next_move_owner_id": {
1436
+ "name": "next_move_owner_id",
1437
+ "type": "text",
1438
+ "primaryKey": false,
1439
+ "notNull": false,
1440
+ "autoincrement": false
1441
+ },
1442
+ "conversation_id": {
1443
+ "name": "conversation_id",
1444
+ "type": "text",
1445
+ "primaryKey": false,
1446
+ "notNull": false,
1447
+ "autoincrement": false
1448
+ },
1449
+ "parent_id": {
1450
+ "name": "parent_id",
1451
+ "type": "text",
1452
+ "primaryKey": false,
1453
+ "notNull": false,
1454
+ "autoincrement": false
1455
+ },
1456
+ "priority": {
1457
+ "name": "priority",
1458
+ "type": "text",
1459
+ "primaryKey": false,
1460
+ "notNull": false,
1461
+ "autoincrement": false
1462
+ },
1463
+ "labels_json": {
1464
+ "name": "labels_json",
1465
+ "type": "text",
1466
+ "primaryKey": false,
1467
+ "notNull": false,
1468
+ "autoincrement": false
1469
+ },
1470
+ "relations_json": {
1471
+ "name": "relations_json",
1472
+ "type": "text",
1473
+ "primaryKey": false,
1474
+ "notNull": false,
1475
+ "autoincrement": false
1476
+ },
1477
+ "detail_json": {
1478
+ "name": "detail_json",
1479
+ "type": "text",
1480
+ "primaryKey": false,
1481
+ "notNull": false,
1482
+ "autoincrement": false
1483
+ },
1484
+ "created_at": {
1485
+ "name": "created_at",
1486
+ "type": "integer",
1487
+ "primaryKey": false,
1488
+ "notNull": true,
1489
+ "autoincrement": false
1490
+ },
1491
+ "updated_at": {
1492
+ "name": "updated_at",
1493
+ "type": "integer",
1494
+ "primaryKey": false,
1495
+ "notNull": true,
1496
+ "autoincrement": false
1497
+ }
1498
+ },
1499
+ "indexes": {
1500
+ "idx_collaboration_records_state": {
1501
+ "name": "idx_collaboration_records_state",
1502
+ "columns": [
1503
+ "state"
1504
+ ],
1505
+ "isUnique": false
1506
+ },
1507
+ "idx_collaboration_records_updated_at": {
1508
+ "name": "idx_collaboration_records_updated_at",
1509
+ "columns": [
1510
+ "updated_at"
1511
+ ],
1512
+ "isUnique": false
1513
+ },
1514
+ "idx_collaboration_records_kind_state_updated_at": {
1515
+ "name": "idx_collaboration_records_kind_state_updated_at",
1516
+ "columns": [
1517
+ "kind",
1518
+ "state",
1519
+ "\"updated_at\" desc"
1520
+ ],
1521
+ "isUnique": false
1522
+ },
1523
+ "idx_collaboration_records_parent_kind_state_updated_at": {
1524
+ "name": "idx_collaboration_records_parent_kind_state_updated_at",
1525
+ "columns": [
1526
+ "parent_id",
1527
+ "kind",
1528
+ "state",
1529
+ "\"updated_at\" desc"
1530
+ ],
1531
+ "isUnique": false
1532
+ },
1533
+ "idx_collaboration_records_owner_kind_state_updated_at": {
1534
+ "name": "idx_collaboration_records_owner_kind_state_updated_at",
1535
+ "columns": [
1536
+ "owner_id",
1537
+ "kind",
1538
+ "state",
1539
+ "\"updated_at\" desc"
1540
+ ],
1541
+ "isUnique": false
1542
+ },
1543
+ "idx_collaboration_records_next_move_owner_kind_state_updated_at": {
1544
+ "name": "idx_collaboration_records_next_move_owner_kind_state_updated_at",
1545
+ "columns": [
1546
+ "next_move_owner_id",
1547
+ "kind",
1548
+ "state",
1549
+ "\"updated_at\" desc"
1550
+ ],
1551
+ "isUnique": false
1552
+ }
1553
+ },
1554
+ "foreignKeys": {
1555
+ "collaboration_records_created_by_id_actors_id_fk": {
1556
+ "name": "collaboration_records_created_by_id_actors_id_fk",
1557
+ "tableFrom": "collaboration_records",
1558
+ "tableTo": "actors",
1559
+ "columnsFrom": [
1560
+ "created_by_id"
1561
+ ],
1562
+ "columnsTo": [
1563
+ "id"
1564
+ ],
1565
+ "onDelete": "restrict",
1566
+ "onUpdate": "no action"
1567
+ },
1568
+ "collaboration_records_owner_id_actors_id_fk": {
1569
+ "name": "collaboration_records_owner_id_actors_id_fk",
1570
+ "tableFrom": "collaboration_records",
1571
+ "tableTo": "actors",
1572
+ "columnsFrom": [
1573
+ "owner_id"
1574
+ ],
1575
+ "columnsTo": [
1576
+ "id"
1577
+ ],
1578
+ "onDelete": "set null",
1579
+ "onUpdate": "no action"
1580
+ },
1581
+ "collaboration_records_next_move_owner_id_actors_id_fk": {
1582
+ "name": "collaboration_records_next_move_owner_id_actors_id_fk",
1583
+ "tableFrom": "collaboration_records",
1584
+ "tableTo": "actors",
1585
+ "columnsFrom": [
1586
+ "next_move_owner_id"
1587
+ ],
1588
+ "columnsTo": [
1589
+ "id"
1590
+ ],
1591
+ "onDelete": "set null",
1592
+ "onUpdate": "no action"
1593
+ },
1594
+ "collaboration_records_conversation_id_conversations_id_fk": {
1595
+ "name": "collaboration_records_conversation_id_conversations_id_fk",
1596
+ "tableFrom": "collaboration_records",
1597
+ "tableTo": "conversations",
1598
+ "columnsFrom": [
1599
+ "conversation_id"
1600
+ ],
1601
+ "columnsTo": [
1602
+ "id"
1603
+ ],
1604
+ "onDelete": "set null",
1605
+ "onUpdate": "no action"
1606
+ },
1607
+ "collaboration_records_parent_id_collaboration_records_id_fk": {
1608
+ "name": "collaboration_records_parent_id_collaboration_records_id_fk",
1609
+ "tableFrom": "collaboration_records",
1610
+ "tableTo": "collaboration_records",
1611
+ "columnsFrom": [
1612
+ "parent_id"
1613
+ ],
1614
+ "columnsTo": [
1615
+ "id"
1616
+ ],
1617
+ "onDelete": "set null",
1618
+ "onUpdate": "no action"
1619
+ }
1620
+ },
1621
+ "compositePrimaryKeys": {},
1622
+ "uniqueConstraints": {},
1623
+ "checkConstraints": {}
1624
+ },
1625
+ "context_blocks": {
1626
+ "name": "context_blocks",
1627
+ "columns": {
1628
+ "id": {
1629
+ "name": "id",
1630
+ "type": "text",
1631
+ "primaryKey": true,
1632
+ "notNull": true,
1633
+ "autoincrement": false
1634
+ },
1635
+ "kind": {
1636
+ "name": "kind",
1637
+ "type": "text",
1638
+ "primaryKey": false,
1639
+ "notNull": true,
1640
+ "autoincrement": false
1641
+ },
1642
+ "memory_kind": {
1643
+ "name": "memory_kind",
1644
+ "type": "text",
1645
+ "primaryKey": false,
1646
+ "notNull": false,
1647
+ "autoincrement": false
1648
+ },
1649
+ "state": {
1650
+ "name": "state",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true,
1654
+ "autoincrement": false
1655
+ },
1656
+ "scope_kind": {
1657
+ "name": "scope_kind",
1658
+ "type": "text",
1659
+ "primaryKey": false,
1660
+ "notNull": true,
1661
+ "autoincrement": false
1662
+ },
1663
+ "scope_id": {
1664
+ "name": "scope_id",
1665
+ "type": "text",
1666
+ "primaryKey": false,
1667
+ "notNull": false,
1668
+ "autoincrement": false
1669
+ },
1670
+ "title": {
1671
+ "name": "title",
1672
+ "type": "text",
1673
+ "primaryKey": false,
1674
+ "notNull": true,
1675
+ "autoincrement": false
1676
+ },
1677
+ "body": {
1678
+ "name": "body",
1679
+ "type": "text",
1680
+ "primaryKey": false,
1681
+ "notNull": true,
1682
+ "autoincrement": false
1683
+ },
1684
+ "summary": {
1685
+ "name": "summary",
1686
+ "type": "text",
1687
+ "primaryKey": false,
1688
+ "notNull": false,
1689
+ "autoincrement": false
1690
+ },
1691
+ "projection_mode": {
1692
+ "name": "projection_mode",
1693
+ "type": "text",
1694
+ "primaryKey": false,
1695
+ "notNull": true,
1696
+ "autoincrement": false
1697
+ },
1698
+ "mutability": {
1699
+ "name": "mutability",
1700
+ "type": "text",
1701
+ "primaryKey": false,
1702
+ "notNull": true,
1703
+ "autoincrement": false
1704
+ },
1705
+ "created_by_id": {
1706
+ "name": "created_by_id",
1707
+ "type": "text",
1708
+ "primaryKey": false,
1709
+ "notNull": true,
1710
+ "autoincrement": false
1711
+ },
1712
+ "owner_id": {
1713
+ "name": "owner_id",
1714
+ "type": "text",
1715
+ "primaryKey": false,
1716
+ "notNull": false,
1717
+ "autoincrement": false
1718
+ },
1719
+ "source_refs_json": {
1720
+ "name": "source_refs_json",
1721
+ "type": "text",
1722
+ "primaryKey": false,
1723
+ "notNull": true,
1724
+ "autoincrement": false
1725
+ },
1726
+ "confidence": {
1727
+ "name": "confidence",
1728
+ "type": "real",
1729
+ "primaryKey": false,
1730
+ "notNull": false,
1731
+ "autoincrement": false
1732
+ },
1733
+ "token_budget": {
1734
+ "name": "token_budget",
1735
+ "type": "integer",
1736
+ "primaryKey": false,
1737
+ "notNull": false,
1738
+ "autoincrement": false
1739
+ },
1740
+ "freshness_json": {
1741
+ "name": "freshness_json",
1742
+ "type": "text",
1743
+ "primaryKey": false,
1744
+ "notNull": false,
1745
+ "autoincrement": false
1746
+ },
1747
+ "version": {
1748
+ "name": "version",
1749
+ "type": "integer",
1750
+ "primaryKey": false,
1751
+ "notNull": true,
1752
+ "autoincrement": false
1753
+ },
1754
+ "supersedes_id": {
1755
+ "name": "supersedes_id",
1756
+ "type": "text",
1757
+ "primaryKey": false,
1758
+ "notNull": false,
1759
+ "autoincrement": false
1760
+ },
1761
+ "content_hash": {
1762
+ "name": "content_hash",
1763
+ "type": "text",
1764
+ "primaryKey": false,
1765
+ "notNull": true,
1766
+ "autoincrement": false
1767
+ },
1768
+ "metadata_json": {
1769
+ "name": "metadata_json",
1770
+ "type": "text",
1771
+ "primaryKey": false,
1772
+ "notNull": false,
1773
+ "autoincrement": false
1774
+ },
1775
+ "created_at": {
1776
+ "name": "created_at",
1777
+ "type": "integer",
1778
+ "primaryKey": false,
1779
+ "notNull": true,
1780
+ "autoincrement": false
1781
+ },
1782
+ "updated_at": {
1783
+ "name": "updated_at",
1784
+ "type": "integer",
1785
+ "primaryKey": false,
1786
+ "notNull": true,
1787
+ "autoincrement": false
1788
+ }
1789
+ },
1790
+ "indexes": {
1791
+ "idx_context_blocks_scope_state_updated_at": {
1792
+ "name": "idx_context_blocks_scope_state_updated_at",
1793
+ "columns": [
1794
+ "scope_kind",
1795
+ "scope_id",
1796
+ "state",
1797
+ "\"updated_at\" desc"
1798
+ ],
1799
+ "isUnique": false
1800
+ },
1801
+ "idx_context_blocks_kind_state_updated_at": {
1802
+ "name": "idx_context_blocks_kind_state_updated_at",
1803
+ "columns": [
1804
+ "kind",
1805
+ "state",
1806
+ "\"updated_at\" desc"
1807
+ ],
1808
+ "isUnique": false
1809
+ }
1810
+ },
1811
+ "foreignKeys": {},
1812
+ "compositePrimaryKeys": {},
1813
+ "uniqueConstraints": {},
1814
+ "checkConstraints": {}
1815
+ },
1816
+ "context_packs": {
1817
+ "name": "context_packs",
1818
+ "columns": {
1819
+ "id": {
1820
+ "name": "id",
1821
+ "type": "text",
1822
+ "primaryKey": true,
1823
+ "notNull": true,
1824
+ "autoincrement": false
1825
+ },
1826
+ "title": {
1827
+ "name": "title",
1828
+ "type": "text",
1829
+ "primaryKey": false,
1830
+ "notNull": true,
1831
+ "autoincrement": false
1832
+ },
1833
+ "purpose": {
1834
+ "name": "purpose",
1835
+ "type": "text",
1836
+ "primaryKey": false,
1837
+ "notNull": true,
1838
+ "autoincrement": false
1839
+ },
1840
+ "target_json": {
1841
+ "name": "target_json",
1842
+ "type": "text",
1843
+ "primaryKey": false,
1844
+ "notNull": true,
1845
+ "autoincrement": false
1846
+ },
1847
+ "sections_json": {
1848
+ "name": "sections_json",
1849
+ "type": "text",
1850
+ "primaryKey": false,
1851
+ "notNull": true,
1852
+ "autoincrement": false
1853
+ },
1854
+ "context_block_ids_json": {
1855
+ "name": "context_block_ids_json",
1856
+ "type": "text",
1857
+ "primaryKey": false,
1858
+ "notNull": true,
1859
+ "autoincrement": false
1860
+ },
1861
+ "source_refs_json": {
1862
+ "name": "source_refs_json",
1863
+ "type": "text",
1864
+ "primaryKey": false,
1865
+ "notNull": true,
1866
+ "autoincrement": false
1867
+ },
1868
+ "budget_json": {
1869
+ "name": "budget_json",
1870
+ "type": "text",
1871
+ "primaryKey": false,
1872
+ "notNull": true,
1873
+ "autoincrement": false
1874
+ },
1875
+ "limitations_json": {
1876
+ "name": "limitations_json",
1877
+ "type": "text",
1878
+ "primaryKey": false,
1879
+ "notNull": true,
1880
+ "autoincrement": false
1881
+ },
1882
+ "content_hash": {
1883
+ "name": "content_hash",
1884
+ "type": "text",
1885
+ "primaryKey": false,
1886
+ "notNull": true,
1887
+ "autoincrement": false
1888
+ },
1889
+ "created_by_id": {
1890
+ "name": "created_by_id",
1891
+ "type": "text",
1892
+ "primaryKey": false,
1893
+ "notNull": true,
1894
+ "autoincrement": false
1895
+ },
1896
+ "metadata_json": {
1897
+ "name": "metadata_json",
1898
+ "type": "text",
1899
+ "primaryKey": false,
1900
+ "notNull": false,
1901
+ "autoincrement": false
1902
+ },
1903
+ "created_at": {
1904
+ "name": "created_at",
1905
+ "type": "integer",
1906
+ "primaryKey": false,
1907
+ "notNull": true,
1908
+ "autoincrement": false
1909
+ }
1910
+ },
1911
+ "indexes": {
1912
+ "idx_context_packs_created_at": {
1913
+ "name": "idx_context_packs_created_at",
1914
+ "columns": [
1915
+ "\"created_at\" desc"
1916
+ ],
1917
+ "isUnique": false
1918
+ }
1919
+ },
1920
+ "foreignKeys": {},
1921
+ "compositePrimaryKeys": {},
1922
+ "uniqueConstraints": {},
1923
+ "checkConstraints": {}
1924
+ },
1925
+ "conversation_members": {
1926
+ "name": "conversation_members",
1927
+ "columns": {
1928
+ "conversation_id": {
1929
+ "name": "conversation_id",
1930
+ "type": "text",
1931
+ "primaryKey": false,
1932
+ "notNull": true,
1933
+ "autoincrement": false
1934
+ },
1935
+ "actor_id": {
1936
+ "name": "actor_id",
1937
+ "type": "text",
1938
+ "primaryKey": false,
1939
+ "notNull": true,
1940
+ "autoincrement": false
1941
+ },
1942
+ "role": {
1943
+ "name": "role",
1944
+ "type": "text",
1945
+ "primaryKey": false,
1946
+ "notNull": false,
1947
+ "autoincrement": false
1948
+ }
1949
+ },
1950
+ "indexes": {},
1951
+ "foreignKeys": {
1952
+ "conversation_members_conversation_id_conversations_id_fk": {
1953
+ "name": "conversation_members_conversation_id_conversations_id_fk",
1954
+ "tableFrom": "conversation_members",
1955
+ "tableTo": "conversations",
1956
+ "columnsFrom": [
1957
+ "conversation_id"
1958
+ ],
1959
+ "columnsTo": [
1960
+ "id"
1961
+ ],
1962
+ "onDelete": "cascade",
1963
+ "onUpdate": "no action"
1964
+ },
1965
+ "conversation_members_actor_id_actors_id_fk": {
1966
+ "name": "conversation_members_actor_id_actors_id_fk",
1967
+ "tableFrom": "conversation_members",
1968
+ "tableTo": "actors",
1969
+ "columnsFrom": [
1970
+ "actor_id"
1971
+ ],
1972
+ "columnsTo": [
1973
+ "id"
1974
+ ],
1975
+ "onDelete": "cascade",
1976
+ "onUpdate": "no action"
1977
+ }
1978
+ },
1979
+ "compositePrimaryKeys": {
1980
+ "conversation_members_conversation_id_actor_id_pk": {
1981
+ "columns": [
1982
+ "conversation_id",
1983
+ "actor_id"
1984
+ ],
1985
+ "name": "conversation_members_conversation_id_actor_id_pk"
1986
+ }
1987
+ },
1988
+ "uniqueConstraints": {},
1989
+ "checkConstraints": {}
1990
+ },
1991
+ "conversation_read_cursors": {
1992
+ "name": "conversation_read_cursors",
1993
+ "columns": {
1994
+ "conversation_id": {
1995
+ "name": "conversation_id",
1996
+ "type": "text",
1997
+ "primaryKey": false,
1998
+ "notNull": true,
1999
+ "autoincrement": false
2000
+ },
2001
+ "actor_id": {
2002
+ "name": "actor_id",
2003
+ "type": "text",
2004
+ "primaryKey": false,
2005
+ "notNull": true,
2006
+ "autoincrement": false
2007
+ },
2008
+ "reader_node_id": {
2009
+ "name": "reader_node_id",
2010
+ "type": "text",
2011
+ "primaryKey": false,
2012
+ "notNull": false,
2013
+ "autoincrement": false
2014
+ },
2015
+ "last_read_message_id": {
2016
+ "name": "last_read_message_id",
2017
+ "type": "text",
2018
+ "primaryKey": false,
2019
+ "notNull": false,
2020
+ "autoincrement": false
2021
+ },
2022
+ "last_read_seq": {
2023
+ "name": "last_read_seq",
2024
+ "type": "integer",
2025
+ "primaryKey": false,
2026
+ "notNull": false,
2027
+ "autoincrement": false
2028
+ },
2029
+ "last_read_at": {
2030
+ "name": "last_read_at",
2031
+ "type": "integer",
2032
+ "primaryKey": false,
2033
+ "notNull": true,
2034
+ "autoincrement": false
2035
+ },
2036
+ "updated_at": {
2037
+ "name": "updated_at",
2038
+ "type": "integer",
2039
+ "primaryKey": false,
2040
+ "notNull": true,
2041
+ "autoincrement": false
2042
+ },
2043
+ "metadata_json": {
2044
+ "name": "metadata_json",
2045
+ "type": "text",
2046
+ "primaryKey": false,
2047
+ "notNull": false,
2048
+ "autoincrement": false
2049
+ }
2050
+ },
2051
+ "indexes": {
2052
+ "idx_read_cursors_conversation_updated_at": {
2053
+ "name": "idx_read_cursors_conversation_updated_at",
2054
+ "columns": [
2055
+ "conversation_id",
2056
+ "\"updated_at\" desc"
2057
+ ],
2058
+ "isUnique": false
2059
+ }
2060
+ },
2061
+ "foreignKeys": {
2062
+ "conversation_read_cursors_conversation_id_conversations_id_fk": {
2063
+ "name": "conversation_read_cursors_conversation_id_conversations_id_fk",
2064
+ "tableFrom": "conversation_read_cursors",
2065
+ "tableTo": "conversations",
2066
+ "columnsFrom": [
2067
+ "conversation_id"
2068
+ ],
2069
+ "columnsTo": [
2070
+ "id"
2071
+ ],
2072
+ "onDelete": "cascade",
2073
+ "onUpdate": "no action"
2074
+ },
2075
+ "conversation_read_cursors_actor_id_actors_id_fk": {
2076
+ "name": "conversation_read_cursors_actor_id_actors_id_fk",
2077
+ "tableFrom": "conversation_read_cursors",
2078
+ "tableTo": "actors",
2079
+ "columnsFrom": [
2080
+ "actor_id"
2081
+ ],
2082
+ "columnsTo": [
2083
+ "id"
2084
+ ],
2085
+ "onDelete": "cascade",
2086
+ "onUpdate": "no action"
2087
+ },
2088
+ "conversation_read_cursors_reader_node_id_nodes_id_fk": {
2089
+ "name": "conversation_read_cursors_reader_node_id_nodes_id_fk",
2090
+ "tableFrom": "conversation_read_cursors",
2091
+ "tableTo": "nodes",
2092
+ "columnsFrom": [
2093
+ "reader_node_id"
2094
+ ],
2095
+ "columnsTo": [
2096
+ "id"
2097
+ ],
2098
+ "onDelete": "set null",
2099
+ "onUpdate": "no action"
2100
+ },
2101
+ "conversation_read_cursors_last_read_message_id_messages_id_fk": {
2102
+ "name": "conversation_read_cursors_last_read_message_id_messages_id_fk",
2103
+ "tableFrom": "conversation_read_cursors",
2104
+ "tableTo": "messages",
2105
+ "columnsFrom": [
2106
+ "last_read_message_id"
2107
+ ],
2108
+ "columnsTo": [
2109
+ "id"
2110
+ ],
2111
+ "onDelete": "set null",
2112
+ "onUpdate": "no action"
2113
+ }
2114
+ },
2115
+ "compositePrimaryKeys": {
2116
+ "conversation_read_cursors_conversation_id_actor_id_pk": {
2117
+ "columns": [
2118
+ "conversation_id",
2119
+ "actor_id"
2120
+ ],
2121
+ "name": "conversation_read_cursors_conversation_id_actor_id_pk"
2122
+ }
2123
+ },
2124
+ "uniqueConstraints": {},
2125
+ "checkConstraints": {}
2126
+ },
2127
+ "conversations": {
2128
+ "name": "conversations",
2129
+ "columns": {
2130
+ "id": {
2131
+ "name": "id",
2132
+ "type": "text",
2133
+ "primaryKey": true,
2134
+ "notNull": true,
2135
+ "autoincrement": false
2136
+ },
2137
+ "kind": {
2138
+ "name": "kind",
2139
+ "type": "text",
2140
+ "primaryKey": false,
2141
+ "notNull": true,
2142
+ "autoincrement": false
2143
+ },
2144
+ "title": {
2145
+ "name": "title",
2146
+ "type": "text",
2147
+ "primaryKey": false,
2148
+ "notNull": true,
2149
+ "autoincrement": false
2150
+ },
2151
+ "visibility": {
2152
+ "name": "visibility",
2153
+ "type": "text",
2154
+ "primaryKey": false,
2155
+ "notNull": true,
2156
+ "autoincrement": false
2157
+ },
2158
+ "share_mode": {
2159
+ "name": "share_mode",
2160
+ "type": "text",
2161
+ "primaryKey": false,
2162
+ "notNull": true,
2163
+ "autoincrement": false
2164
+ },
2165
+ "authority_node_id": {
2166
+ "name": "authority_node_id",
2167
+ "type": "text",
2168
+ "primaryKey": false,
2169
+ "notNull": true,
2170
+ "autoincrement": false
2171
+ },
2172
+ "topic": {
2173
+ "name": "topic",
2174
+ "type": "text",
2175
+ "primaryKey": false,
2176
+ "notNull": false,
2177
+ "autoincrement": false
2178
+ },
2179
+ "parent_conversation_id": {
2180
+ "name": "parent_conversation_id",
2181
+ "type": "text",
2182
+ "primaryKey": false,
2183
+ "notNull": false,
2184
+ "autoincrement": false
2185
+ },
2186
+ "message_id": {
2187
+ "name": "message_id",
2188
+ "type": "text",
2189
+ "primaryKey": false,
2190
+ "notNull": false,
2191
+ "autoincrement": false
2192
+ },
2193
+ "metadata_json": {
2194
+ "name": "metadata_json",
2195
+ "type": "text",
2196
+ "primaryKey": false,
2197
+ "notNull": false,
2198
+ "autoincrement": false
2199
+ },
2200
+ "created_at": {
2201
+ "name": "created_at",
2202
+ "type": "integer",
2203
+ "primaryKey": false,
2204
+ "notNull": true,
2205
+ "autoincrement": false,
2206
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
2207
+ }
2208
+ },
2209
+ "indexes": {
2210
+ "idx_conversations_created_at": {
2211
+ "name": "idx_conversations_created_at",
2212
+ "columns": [
2213
+ "\"created_at\" desc"
2214
+ ],
2215
+ "isUnique": false
2216
+ }
2217
+ },
2218
+ "foreignKeys": {
2219
+ "conversations_authority_node_id_nodes_id_fk": {
2220
+ "name": "conversations_authority_node_id_nodes_id_fk",
2221
+ "tableFrom": "conversations",
2222
+ "tableTo": "nodes",
2223
+ "columnsFrom": [
2224
+ "authority_node_id"
2225
+ ],
2226
+ "columnsTo": [
2227
+ "id"
2228
+ ],
2229
+ "onDelete": "restrict",
2230
+ "onUpdate": "no action"
2231
+ },
2232
+ "conversations_parent_conversation_id_conversations_id_fk": {
2233
+ "name": "conversations_parent_conversation_id_conversations_id_fk",
2234
+ "tableFrom": "conversations",
2235
+ "tableTo": "conversations",
2236
+ "columnsFrom": [
2237
+ "parent_conversation_id"
2238
+ ],
2239
+ "columnsTo": [
2240
+ "id"
2241
+ ],
2242
+ "onDelete": "set null",
2243
+ "onUpdate": "no action"
2244
+ }
2245
+ },
2246
+ "compositePrimaryKeys": {},
2247
+ "uniqueConstraints": {},
2248
+ "checkConstraints": {}
2249
+ },
2250
+ "deliveries": {
2251
+ "name": "deliveries",
2252
+ "columns": {
2253
+ "id": {
2254
+ "name": "id",
2255
+ "type": "text",
2256
+ "primaryKey": true,
2257
+ "notNull": true,
2258
+ "autoincrement": false
2259
+ },
2260
+ "message_id": {
2261
+ "name": "message_id",
2262
+ "type": "text",
2263
+ "primaryKey": false,
2264
+ "notNull": false,
2265
+ "autoincrement": false
2266
+ },
2267
+ "invocation_id": {
2268
+ "name": "invocation_id",
2269
+ "type": "text",
2270
+ "primaryKey": false,
2271
+ "notNull": false,
2272
+ "autoincrement": false
2273
+ },
2274
+ "target_id": {
2275
+ "name": "target_id",
2276
+ "type": "text",
2277
+ "primaryKey": false,
2278
+ "notNull": true,
2279
+ "autoincrement": false
2280
+ },
2281
+ "target_node_id": {
2282
+ "name": "target_node_id",
2283
+ "type": "text",
2284
+ "primaryKey": false,
2285
+ "notNull": false,
2286
+ "autoincrement": false
2287
+ },
2288
+ "target_kind": {
2289
+ "name": "target_kind",
2290
+ "type": "text",
2291
+ "primaryKey": false,
2292
+ "notNull": true,
2293
+ "autoincrement": false
2294
+ },
2295
+ "transport": {
2296
+ "name": "transport",
2297
+ "type": "text",
2298
+ "primaryKey": false,
2299
+ "notNull": true,
2300
+ "autoincrement": false
2301
+ },
2302
+ "reason": {
2303
+ "name": "reason",
2304
+ "type": "text",
2305
+ "primaryKey": false,
2306
+ "notNull": true,
2307
+ "autoincrement": false
2308
+ },
2309
+ "policy": {
2310
+ "name": "policy",
2311
+ "type": "text",
2312
+ "primaryKey": false,
2313
+ "notNull": true,
2314
+ "autoincrement": false
2315
+ },
2316
+ "status": {
2317
+ "name": "status",
2318
+ "type": "text",
2319
+ "primaryKey": false,
2320
+ "notNull": true,
2321
+ "autoincrement": false
2322
+ },
2323
+ "binding_id": {
2324
+ "name": "binding_id",
2325
+ "type": "text",
2326
+ "primaryKey": false,
2327
+ "notNull": false,
2328
+ "autoincrement": false
2329
+ },
2330
+ "lease_owner": {
2331
+ "name": "lease_owner",
2332
+ "type": "text",
2333
+ "primaryKey": false,
2334
+ "notNull": false,
2335
+ "autoincrement": false
2336
+ },
2337
+ "lease_expires_at": {
2338
+ "name": "lease_expires_at",
2339
+ "type": "integer",
2340
+ "primaryKey": false,
2341
+ "notNull": false,
2342
+ "autoincrement": false
2343
+ },
2344
+ "metadata_json": {
2345
+ "name": "metadata_json",
2346
+ "type": "text",
2347
+ "primaryKey": false,
2348
+ "notNull": false,
2349
+ "autoincrement": false
2350
+ },
2351
+ "created_at": {
2352
+ "name": "created_at",
2353
+ "type": "integer",
2354
+ "primaryKey": false,
2355
+ "notNull": true,
2356
+ "autoincrement": false,
2357
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
2358
+ }
2359
+ },
2360
+ "indexes": {
2361
+ "idx_deliveries_status_transport": {
2362
+ "name": "idx_deliveries_status_transport",
2363
+ "columns": [
2364
+ "status",
2365
+ "transport"
2366
+ ],
2367
+ "isUnique": false
2368
+ },
2369
+ "idx_deliveries_created_at": {
2370
+ "name": "idx_deliveries_created_at",
2371
+ "columns": [
2372
+ "\"created_at\" desc"
2373
+ ],
2374
+ "isUnique": false
2375
+ }
2376
+ },
2377
+ "foreignKeys": {
2378
+ "deliveries_message_id_messages_id_fk": {
2379
+ "name": "deliveries_message_id_messages_id_fk",
2380
+ "tableFrom": "deliveries",
2381
+ "tableTo": "messages",
2382
+ "columnsFrom": [
2383
+ "message_id"
2384
+ ],
2385
+ "columnsTo": [
2386
+ "id"
2387
+ ],
2388
+ "onDelete": "cascade",
2389
+ "onUpdate": "no action"
2390
+ },
2391
+ "deliveries_invocation_id_invocations_id_fk": {
2392
+ "name": "deliveries_invocation_id_invocations_id_fk",
2393
+ "tableFrom": "deliveries",
2394
+ "tableTo": "invocations",
2395
+ "columnsFrom": [
2396
+ "invocation_id"
2397
+ ],
2398
+ "columnsTo": [
2399
+ "id"
2400
+ ],
2401
+ "onDelete": "cascade",
2402
+ "onUpdate": "no action"
2403
+ },
2404
+ "deliveries_target_node_id_nodes_id_fk": {
2405
+ "name": "deliveries_target_node_id_nodes_id_fk",
2406
+ "tableFrom": "deliveries",
2407
+ "tableTo": "nodes",
2408
+ "columnsFrom": [
2409
+ "target_node_id"
2410
+ ],
2411
+ "columnsTo": [
2412
+ "id"
2413
+ ],
2414
+ "onDelete": "set null",
2415
+ "onUpdate": "no action"
2416
+ },
2417
+ "deliveries_binding_id_bindings_id_fk": {
2418
+ "name": "deliveries_binding_id_bindings_id_fk",
2419
+ "tableFrom": "deliveries",
2420
+ "tableTo": "bindings",
2421
+ "columnsFrom": [
2422
+ "binding_id"
2423
+ ],
2424
+ "columnsTo": [
2425
+ "id"
2426
+ ],
2427
+ "onDelete": "set null",
2428
+ "onUpdate": "no action"
2429
+ }
2430
+ },
2431
+ "compositePrimaryKeys": {},
2432
+ "uniqueConstraints": {},
2433
+ "checkConstraints": {}
2434
+ },
2435
+ "delivery_attempts": {
2436
+ "name": "delivery_attempts",
2437
+ "columns": {
2438
+ "id": {
2439
+ "name": "id",
2440
+ "type": "text",
2441
+ "primaryKey": true,
2442
+ "notNull": true,
2443
+ "autoincrement": false
2444
+ },
2445
+ "delivery_id": {
2446
+ "name": "delivery_id",
2447
+ "type": "text",
2448
+ "primaryKey": false,
2449
+ "notNull": true,
2450
+ "autoincrement": false
2451
+ },
2452
+ "attempt": {
2453
+ "name": "attempt",
2454
+ "type": "integer",
2455
+ "primaryKey": false,
2456
+ "notNull": true,
2457
+ "autoincrement": false
2458
+ },
2459
+ "status": {
2460
+ "name": "status",
2461
+ "type": "text",
2462
+ "primaryKey": false,
2463
+ "notNull": true,
2464
+ "autoincrement": false
2465
+ },
2466
+ "error": {
2467
+ "name": "error",
2468
+ "type": "text",
2469
+ "primaryKey": false,
2470
+ "notNull": false,
2471
+ "autoincrement": false
2472
+ },
2473
+ "external_ref": {
2474
+ "name": "external_ref",
2475
+ "type": "text",
2476
+ "primaryKey": false,
2477
+ "notNull": false,
2478
+ "autoincrement": false
2479
+ },
2480
+ "metadata_json": {
2481
+ "name": "metadata_json",
2482
+ "type": "text",
2483
+ "primaryKey": false,
2484
+ "notNull": false,
2485
+ "autoincrement": false
2486
+ },
2487
+ "created_at": {
2488
+ "name": "created_at",
2489
+ "type": "integer",
2490
+ "primaryKey": false,
2491
+ "notNull": true,
2492
+ "autoincrement": false
2493
+ }
2494
+ },
2495
+ "indexes": {
2496
+ "idx_delivery_attempts_created_at": {
2497
+ "name": "idx_delivery_attempts_created_at",
2498
+ "columns": [
2499
+ "\"created_at\" desc"
2500
+ ],
2501
+ "isUnique": false
2502
+ }
2503
+ },
2504
+ "foreignKeys": {
2505
+ "delivery_attempts_delivery_id_deliveries_id_fk": {
2506
+ "name": "delivery_attempts_delivery_id_deliveries_id_fk",
2507
+ "tableFrom": "delivery_attempts",
2508
+ "tableTo": "deliveries",
2509
+ "columnsFrom": [
2510
+ "delivery_id"
2511
+ ],
2512
+ "columnsTo": [
2513
+ "id"
2514
+ ],
2515
+ "onDelete": "cascade",
2516
+ "onUpdate": "no action"
2517
+ }
2518
+ },
2519
+ "compositePrimaryKeys": {},
2520
+ "uniqueConstraints": {},
2521
+ "checkConstraints": {}
2522
+ },
2523
+ "durable_actions": {
2524
+ "name": "durable_actions",
2525
+ "columns": {
2526
+ "id": {
2527
+ "name": "id",
2528
+ "type": "text",
2529
+ "primaryKey": true,
2530
+ "notNull": true,
2531
+ "autoincrement": false
2532
+ },
2533
+ "kind": {
2534
+ "name": "kind",
2535
+ "type": "text",
2536
+ "primaryKey": false,
2537
+ "notNull": true,
2538
+ "autoincrement": false
2539
+ },
2540
+ "subject_id": {
2541
+ "name": "subject_id",
2542
+ "type": "text",
2543
+ "primaryKey": false,
2544
+ "notNull": true,
2545
+ "autoincrement": false
2546
+ },
2547
+ "authority_cell_id": {
2548
+ "name": "authority_cell_id",
2549
+ "type": "text",
2550
+ "primaryKey": false,
2551
+ "notNull": true,
2552
+ "autoincrement": false
2553
+ },
2554
+ "state": {
2555
+ "name": "state",
2556
+ "type": "text",
2557
+ "primaryKey": false,
2558
+ "notNull": true,
2559
+ "autoincrement": false
2560
+ },
2561
+ "idempotency_key": {
2562
+ "name": "idempotency_key",
2563
+ "type": "text",
2564
+ "primaryKey": false,
2565
+ "notNull": false,
2566
+ "autoincrement": false
2567
+ },
2568
+ "lease_owner": {
2569
+ "name": "lease_owner",
2570
+ "type": "text",
2571
+ "primaryKey": false,
2572
+ "notNull": false,
2573
+ "autoincrement": false
2574
+ },
2575
+ "lease_generation": {
2576
+ "name": "lease_generation",
2577
+ "type": "integer",
2578
+ "primaryKey": false,
2579
+ "notNull": true,
2580
+ "autoincrement": false,
2581
+ "default": 0
2582
+ },
2583
+ "lease_expires_at": {
2584
+ "name": "lease_expires_at",
2585
+ "type": "integer",
2586
+ "primaryKey": false,
2587
+ "notNull": false,
2588
+ "autoincrement": false
2589
+ },
2590
+ "metadata_json": {
2591
+ "name": "metadata_json",
2592
+ "type": "text",
2593
+ "primaryKey": false,
2594
+ "notNull": false,
2595
+ "autoincrement": false
2596
+ },
2597
+ "created_at": {
2598
+ "name": "created_at",
2599
+ "type": "integer",
2600
+ "primaryKey": false,
2601
+ "notNull": true,
2602
+ "autoincrement": false
2603
+ },
2604
+ "updated_at": {
2605
+ "name": "updated_at",
2606
+ "type": "integer",
2607
+ "primaryKey": false,
2608
+ "notNull": true,
2609
+ "autoincrement": false
2610
+ }
2611
+ },
2612
+ "indexes": {
2613
+ "idx_durable_actions_idempotency_key": {
2614
+ "name": "idx_durable_actions_idempotency_key",
2615
+ "columns": [
2616
+ "authority_cell_id",
2617
+ "kind",
2618
+ "idempotency_key"
2619
+ ],
2620
+ "isUnique": true,
2621
+ "where": "idempotency_key IS NOT NULL"
2622
+ },
2623
+ "idx_durable_actions_authority_state_lease": {
2624
+ "name": "idx_durable_actions_authority_state_lease",
2625
+ "columns": [
2626
+ "authority_cell_id",
2627
+ "state",
2628
+ "lease_expires_at"
2629
+ ],
2630
+ "isUnique": false
2631
+ },
2632
+ "idx_durable_actions_subject": {
2633
+ "name": "idx_durable_actions_subject",
2634
+ "columns": [
2635
+ "kind",
2636
+ "subject_id"
2637
+ ],
2638
+ "isUnique": false
2639
+ },
2640
+ "idx_durable_actions_kind_due_at_updated_at": {
2641
+ "name": "idx_durable_actions_kind_due_at_updated_at",
2642
+ "columns": [
2643
+ "kind",
2644
+ "COALESCE(CAST(json_extract(metadata_json, '$.dueAt') AS REAL), CAST(json_extract(metadata_json, '$.due_at') AS REAL))",
2645
+ "updated_at"
2646
+ ],
2647
+ "isUnique": false
2648
+ }
2649
+ },
2650
+ "foreignKeys": {},
2651
+ "compositePrimaryKeys": {},
2652
+ "uniqueConstraints": {},
2653
+ "checkConstraints": {}
2654
+ },
2655
+ "durable_attempts": {
2656
+ "name": "durable_attempts",
2657
+ "columns": {
2658
+ "id": {
2659
+ "name": "id",
2660
+ "type": "text",
2661
+ "primaryKey": true,
2662
+ "notNull": true,
2663
+ "autoincrement": false
2664
+ },
2665
+ "action_id": {
2666
+ "name": "action_id",
2667
+ "type": "text",
2668
+ "primaryKey": false,
2669
+ "notNull": true,
2670
+ "autoincrement": false
2671
+ },
2672
+ "attempt": {
2673
+ "name": "attempt",
2674
+ "type": "integer",
2675
+ "primaryKey": false,
2676
+ "notNull": true,
2677
+ "autoincrement": false
2678
+ },
2679
+ "state": {
2680
+ "name": "state",
2681
+ "type": "text",
2682
+ "primaryKey": false,
2683
+ "notNull": true,
2684
+ "autoincrement": false
2685
+ },
2686
+ "lease_generation": {
2687
+ "name": "lease_generation",
2688
+ "type": "integer",
2689
+ "primaryKey": false,
2690
+ "notNull": true,
2691
+ "autoincrement": false
2692
+ },
2693
+ "error": {
2694
+ "name": "error",
2695
+ "type": "text",
2696
+ "primaryKey": false,
2697
+ "notNull": false,
2698
+ "autoincrement": false
2699
+ },
2700
+ "started_at": {
2701
+ "name": "started_at",
2702
+ "type": "integer",
2703
+ "primaryKey": false,
2704
+ "notNull": false,
2705
+ "autoincrement": false
2706
+ },
2707
+ "completed_at": {
2708
+ "name": "completed_at",
2709
+ "type": "integer",
2710
+ "primaryKey": false,
2711
+ "notNull": false,
2712
+ "autoincrement": false
2713
+ },
2714
+ "metadata_json": {
2715
+ "name": "metadata_json",
2716
+ "type": "text",
2717
+ "primaryKey": false,
2718
+ "notNull": false,
2719
+ "autoincrement": false
2720
+ }
2721
+ },
2722
+ "indexes": {
2723
+ "idx_durable_attempts_action_attempt": {
2724
+ "name": "idx_durable_attempts_action_attempt",
2725
+ "columns": [
2726
+ "action_id",
2727
+ "attempt"
2728
+ ],
2729
+ "isUnique": false
2730
+ },
2731
+ "durable_attempts_action_id_attempt_unique": {
2732
+ "name": "durable_attempts_action_id_attempt_unique",
2733
+ "columns": [
2734
+ "action_id",
2735
+ "attempt"
2736
+ ],
2737
+ "isUnique": true
2738
+ }
2739
+ },
2740
+ "foreignKeys": {
2741
+ "durable_attempts_action_id_durable_actions_id_fk": {
2742
+ "name": "durable_attempts_action_id_durable_actions_id_fk",
2743
+ "tableFrom": "durable_attempts",
2744
+ "tableTo": "durable_actions",
2745
+ "columnsFrom": [
2746
+ "action_id"
2747
+ ],
2748
+ "columnsTo": [
2749
+ "id"
2750
+ ],
2751
+ "onDelete": "cascade",
2752
+ "onUpdate": "no action"
2753
+ }
2754
+ },
2755
+ "compositePrimaryKeys": {},
2756
+ "uniqueConstraints": {},
2757
+ "checkConstraints": {}
2758
+ },
2759
+ "durable_checkpoints": {
2760
+ "name": "durable_checkpoints",
2761
+ "columns": {
2762
+ "action_id": {
2763
+ "name": "action_id",
2764
+ "type": "text",
2765
+ "primaryKey": false,
2766
+ "notNull": true,
2767
+ "autoincrement": false
2768
+ },
2769
+ "name": {
2770
+ "name": "name",
2771
+ "type": "text",
2772
+ "primaryKey": false,
2773
+ "notNull": true,
2774
+ "autoincrement": false
2775
+ },
2776
+ "payload_json": {
2777
+ "name": "payload_json",
2778
+ "type": "text",
2779
+ "primaryKey": false,
2780
+ "notNull": false,
2781
+ "autoincrement": false
2782
+ },
2783
+ "owner_attempt_id": {
2784
+ "name": "owner_attempt_id",
2785
+ "type": "text",
2786
+ "primaryKey": false,
2787
+ "notNull": false,
2788
+ "autoincrement": false
2789
+ },
2790
+ "created_at": {
2791
+ "name": "created_at",
2792
+ "type": "integer",
2793
+ "primaryKey": false,
2794
+ "notNull": true,
2795
+ "autoincrement": false
2796
+ }
2797
+ },
2798
+ "indexes": {},
2799
+ "foreignKeys": {
2800
+ "durable_checkpoints_action_id_durable_actions_id_fk": {
2801
+ "name": "durable_checkpoints_action_id_durable_actions_id_fk",
2802
+ "tableFrom": "durable_checkpoints",
2803
+ "tableTo": "durable_actions",
2804
+ "columnsFrom": [
2805
+ "action_id"
2806
+ ],
2807
+ "columnsTo": [
2808
+ "id"
2809
+ ],
2810
+ "onDelete": "cascade",
2811
+ "onUpdate": "no action"
2812
+ },
2813
+ "durable_checkpoints_owner_attempt_id_durable_attempts_id_fk": {
2814
+ "name": "durable_checkpoints_owner_attempt_id_durable_attempts_id_fk",
2815
+ "tableFrom": "durable_checkpoints",
2816
+ "tableTo": "durable_attempts",
2817
+ "columnsFrom": [
2818
+ "owner_attempt_id"
2819
+ ],
2820
+ "columnsTo": [
2821
+ "id"
2822
+ ],
2823
+ "onDelete": "set null",
2824
+ "onUpdate": "no action"
2825
+ }
2826
+ },
2827
+ "compositePrimaryKeys": {
2828
+ "durable_checkpoints_action_id_name_pk": {
2829
+ "columns": [
2830
+ "action_id",
2831
+ "name"
2832
+ ],
2833
+ "name": "durable_checkpoints_action_id_name_pk"
2834
+ }
2835
+ },
2836
+ "uniqueConstraints": {},
2837
+ "checkConstraints": {}
2838
+ },
2839
+ "durable_signals": {
2840
+ "name": "durable_signals",
2841
+ "columns": {
2842
+ "action_id": {
2843
+ "name": "action_id",
2844
+ "type": "text",
2845
+ "primaryKey": false,
2846
+ "notNull": true,
2847
+ "autoincrement": false
2848
+ },
2849
+ "name": {
2850
+ "name": "name",
2851
+ "type": "text",
2852
+ "primaryKey": false,
2853
+ "notNull": true,
2854
+ "autoincrement": false
2855
+ },
2856
+ "payload_json": {
2857
+ "name": "payload_json",
2858
+ "type": "text",
2859
+ "primaryKey": false,
2860
+ "notNull": false,
2861
+ "autoincrement": false
2862
+ },
2863
+ "emitted_at": {
2864
+ "name": "emitted_at",
2865
+ "type": "integer",
2866
+ "primaryKey": false,
2867
+ "notNull": true,
2868
+ "autoincrement": false
2869
+ }
2870
+ },
2871
+ "indexes": {},
2872
+ "foreignKeys": {
2873
+ "durable_signals_action_id_durable_actions_id_fk": {
2874
+ "name": "durable_signals_action_id_durable_actions_id_fk",
2875
+ "tableFrom": "durable_signals",
2876
+ "tableTo": "durable_actions",
2877
+ "columnsFrom": [
2878
+ "action_id"
2879
+ ],
2880
+ "columnsTo": [
2881
+ "id"
2882
+ ],
2883
+ "onDelete": "cascade",
2884
+ "onUpdate": "no action"
2885
+ }
2886
+ },
2887
+ "compositePrimaryKeys": {
2888
+ "durable_signals_action_id_name_pk": {
2889
+ "columns": [
2890
+ "action_id",
2891
+ "name"
2892
+ ],
2893
+ "name": "durable_signals_action_id_name_pk"
2894
+ }
2895
+ },
2896
+ "uniqueConstraints": {},
2897
+ "checkConstraints": {}
2898
+ },
2899
+ "events": {
2900
+ "name": "events",
2901
+ "columns": {
2902
+ "id": {
2903
+ "name": "id",
2904
+ "type": "text",
2905
+ "primaryKey": true,
2906
+ "notNull": true,
2907
+ "autoincrement": false
2908
+ },
2909
+ "kind": {
2910
+ "name": "kind",
2911
+ "type": "text",
2912
+ "primaryKey": false,
2913
+ "notNull": true,
2914
+ "autoincrement": false
2915
+ },
2916
+ "actor_id": {
2917
+ "name": "actor_id",
2918
+ "type": "text",
2919
+ "primaryKey": false,
2920
+ "notNull": true,
2921
+ "autoincrement": false
2922
+ },
2923
+ "node_id": {
2924
+ "name": "node_id",
2925
+ "type": "text",
2926
+ "primaryKey": false,
2927
+ "notNull": false,
2928
+ "autoincrement": false
2929
+ },
2930
+ "ts": {
2931
+ "name": "ts",
2932
+ "type": "integer",
2933
+ "primaryKey": false,
2934
+ "notNull": true,
2935
+ "autoincrement": false
2936
+ },
2937
+ "payload_json": {
2938
+ "name": "payload_json",
2939
+ "type": "text",
2940
+ "primaryKey": false,
2941
+ "notNull": true,
2942
+ "autoincrement": false
2943
+ }
2944
+ },
2945
+ "indexes": {
2946
+ "idx_events_kind_ts": {
2947
+ "name": "idx_events_kind_ts",
2948
+ "columns": [
2949
+ "kind",
2950
+ "ts"
2951
+ ],
2952
+ "isUnique": false
2953
+ }
2954
+ },
2955
+ "foreignKeys": {},
2956
+ "compositePrimaryKeys": {},
2957
+ "uniqueConstraints": {},
2958
+ "checkConstraints": {}
2959
+ },
2960
+ "flights": {
2961
+ "name": "flights",
2962
+ "columns": {
2963
+ "id": {
2964
+ "name": "id",
2965
+ "type": "text",
2966
+ "primaryKey": true,
2967
+ "notNull": true,
2968
+ "autoincrement": false
2969
+ },
2970
+ "invocation_id": {
2971
+ "name": "invocation_id",
2972
+ "type": "text",
2973
+ "primaryKey": false,
2974
+ "notNull": true,
2975
+ "autoincrement": false
2976
+ },
2977
+ "requester_id": {
2978
+ "name": "requester_id",
2979
+ "type": "text",
2980
+ "primaryKey": false,
2981
+ "notNull": true,
2982
+ "autoincrement": false
2983
+ },
2984
+ "target_agent_id": {
2985
+ "name": "target_agent_id",
2986
+ "type": "text",
2987
+ "primaryKey": false,
2988
+ "notNull": true,
2989
+ "autoincrement": false
2990
+ },
2991
+ "state": {
2992
+ "name": "state",
2993
+ "type": "text",
2994
+ "primaryKey": false,
2995
+ "notNull": true,
2996
+ "autoincrement": false
2997
+ },
2998
+ "summary": {
2999
+ "name": "summary",
3000
+ "type": "text",
3001
+ "primaryKey": false,
3002
+ "notNull": false,
3003
+ "autoincrement": false
3004
+ },
3005
+ "output": {
3006
+ "name": "output",
3007
+ "type": "text",
3008
+ "primaryKey": false,
3009
+ "notNull": false,
3010
+ "autoincrement": false
3011
+ },
3012
+ "error": {
3013
+ "name": "error",
3014
+ "type": "text",
3015
+ "primaryKey": false,
3016
+ "notNull": false,
3017
+ "autoincrement": false
3018
+ },
3019
+ "labels_json": {
3020
+ "name": "labels_json",
3021
+ "type": "text",
3022
+ "primaryKey": false,
3023
+ "notNull": false,
3024
+ "autoincrement": false
3025
+ },
3026
+ "metadata_json": {
3027
+ "name": "metadata_json",
3028
+ "type": "text",
3029
+ "primaryKey": false,
3030
+ "notNull": false,
3031
+ "autoincrement": false
3032
+ },
3033
+ "started_at": {
3034
+ "name": "started_at",
3035
+ "type": "integer",
3036
+ "primaryKey": false,
3037
+ "notNull": false,
3038
+ "autoincrement": false
3039
+ },
3040
+ "completed_at": {
3041
+ "name": "completed_at",
3042
+ "type": "integer",
3043
+ "primaryKey": false,
3044
+ "notNull": false,
3045
+ "autoincrement": false
3046
+ }
3047
+ },
3048
+ "indexes": {
3049
+ "idx_flights_target_state": {
3050
+ "name": "idx_flights_target_state",
3051
+ "columns": [
3052
+ "target_agent_id",
3053
+ "state"
3054
+ ],
3055
+ "isUnique": false
3056
+ },
3057
+ "idx_flights_invocation_id": {
3058
+ "name": "idx_flights_invocation_id",
3059
+ "columns": [
3060
+ "invocation_id"
3061
+ ],
3062
+ "isUnique": false
3063
+ }
3064
+ },
3065
+ "foreignKeys": {
3066
+ "flights_invocation_id_invocations_id_fk": {
3067
+ "name": "flights_invocation_id_invocations_id_fk",
3068
+ "tableFrom": "flights",
3069
+ "tableTo": "invocations",
3070
+ "columnsFrom": [
3071
+ "invocation_id"
3072
+ ],
3073
+ "columnsTo": [
3074
+ "id"
3075
+ ],
3076
+ "onDelete": "cascade",
3077
+ "onUpdate": "no action"
3078
+ },
3079
+ "flights_requester_id_actors_id_fk": {
3080
+ "name": "flights_requester_id_actors_id_fk",
3081
+ "tableFrom": "flights",
3082
+ "tableTo": "actors",
3083
+ "columnsFrom": [
3084
+ "requester_id"
3085
+ ],
3086
+ "columnsTo": [
3087
+ "id"
3088
+ ],
3089
+ "onDelete": "restrict",
3090
+ "onUpdate": "no action"
3091
+ },
3092
+ "flights_target_agent_id_agents_id_fk": {
3093
+ "name": "flights_target_agent_id_agents_id_fk",
3094
+ "tableFrom": "flights",
3095
+ "tableTo": "agents",
3096
+ "columnsFrom": [
3097
+ "target_agent_id"
3098
+ ],
3099
+ "columnsTo": [
3100
+ "id"
3101
+ ],
3102
+ "onDelete": "restrict",
3103
+ "onUpdate": "no action"
3104
+ }
3105
+ },
3106
+ "compositePrimaryKeys": {},
3107
+ "uniqueConstraints": {},
3108
+ "checkConstraints": {}
3109
+ },
3110
+ "invocations": {
3111
+ "name": "invocations",
3112
+ "columns": {
3113
+ "id": {
3114
+ "name": "id",
3115
+ "type": "text",
3116
+ "primaryKey": true,
3117
+ "notNull": true,
3118
+ "autoincrement": false
3119
+ },
3120
+ "requester_id": {
3121
+ "name": "requester_id",
3122
+ "type": "text",
3123
+ "primaryKey": false,
3124
+ "notNull": true,
3125
+ "autoincrement": false
3126
+ },
3127
+ "requester_node_id": {
3128
+ "name": "requester_node_id",
3129
+ "type": "text",
3130
+ "primaryKey": false,
3131
+ "notNull": true,
3132
+ "autoincrement": false
3133
+ },
3134
+ "target_agent_id": {
3135
+ "name": "target_agent_id",
3136
+ "type": "text",
3137
+ "primaryKey": false,
3138
+ "notNull": true,
3139
+ "autoincrement": false
3140
+ },
3141
+ "target_node_id": {
3142
+ "name": "target_node_id",
3143
+ "type": "text",
3144
+ "primaryKey": false,
3145
+ "notNull": false,
3146
+ "autoincrement": false
3147
+ },
3148
+ "action": {
3149
+ "name": "action",
3150
+ "type": "text",
3151
+ "primaryKey": false,
3152
+ "notNull": true,
3153
+ "autoincrement": false
3154
+ },
3155
+ "task": {
3156
+ "name": "task",
3157
+ "type": "text",
3158
+ "primaryKey": false,
3159
+ "notNull": true,
3160
+ "autoincrement": false
3161
+ },
3162
+ "collaboration_record_id": {
3163
+ "name": "collaboration_record_id",
3164
+ "type": "text",
3165
+ "primaryKey": false,
3166
+ "notNull": false,
3167
+ "autoincrement": false
3168
+ },
3169
+ "conversation_id": {
3170
+ "name": "conversation_id",
3171
+ "type": "text",
3172
+ "primaryKey": false,
3173
+ "notNull": false,
3174
+ "autoincrement": false
3175
+ },
3176
+ "message_id": {
3177
+ "name": "message_id",
3178
+ "type": "text",
3179
+ "primaryKey": false,
3180
+ "notNull": false,
3181
+ "autoincrement": false
3182
+ },
3183
+ "context_json": {
3184
+ "name": "context_json",
3185
+ "type": "text",
3186
+ "primaryKey": false,
3187
+ "notNull": false,
3188
+ "autoincrement": false
3189
+ },
3190
+ "execution_json": {
3191
+ "name": "execution_json",
3192
+ "type": "text",
3193
+ "primaryKey": false,
3194
+ "notNull": false,
3195
+ "autoincrement": false
3196
+ },
3197
+ "ensure_awake": {
3198
+ "name": "ensure_awake",
3199
+ "type": "integer",
3200
+ "primaryKey": false,
3201
+ "notNull": true,
3202
+ "autoincrement": false,
3203
+ "default": 1
3204
+ },
3205
+ "stream": {
3206
+ "name": "stream",
3207
+ "type": "integer",
3208
+ "primaryKey": false,
3209
+ "notNull": true,
3210
+ "autoincrement": false,
3211
+ "default": 1
3212
+ },
3213
+ "timeout_ms": {
3214
+ "name": "timeout_ms",
3215
+ "type": "integer",
3216
+ "primaryKey": false,
3217
+ "notNull": false,
3218
+ "autoincrement": false
3219
+ },
3220
+ "labels_json": {
3221
+ "name": "labels_json",
3222
+ "type": "text",
3223
+ "primaryKey": false,
3224
+ "notNull": false,
3225
+ "autoincrement": false
3226
+ },
3227
+ "metadata_json": {
3228
+ "name": "metadata_json",
3229
+ "type": "text",
3230
+ "primaryKey": false,
3231
+ "notNull": false,
3232
+ "autoincrement": false
3233
+ },
3234
+ "created_at": {
3235
+ "name": "created_at",
3236
+ "type": "integer",
3237
+ "primaryKey": false,
3238
+ "notNull": true,
3239
+ "autoincrement": false
3240
+ },
3241
+ "flight_id": {
3242
+ "name": "flight_id",
3243
+ "type": "text",
3244
+ "primaryKey": false,
3245
+ "notNull": false,
3246
+ "autoincrement": false
3247
+ },
3248
+ "state": {
3249
+ "name": "state",
3250
+ "type": "text",
3251
+ "primaryKey": false,
3252
+ "notNull": false,
3253
+ "autoincrement": false
3254
+ },
3255
+ "summary": {
3256
+ "name": "summary",
3257
+ "type": "text",
3258
+ "primaryKey": false,
3259
+ "notNull": false,
3260
+ "autoincrement": false
3261
+ },
3262
+ "output": {
3263
+ "name": "output",
3264
+ "type": "text",
3265
+ "primaryKey": false,
3266
+ "notNull": false,
3267
+ "autoincrement": false
3268
+ },
3269
+ "error": {
3270
+ "name": "error",
3271
+ "type": "text",
3272
+ "primaryKey": false,
3273
+ "notNull": false,
3274
+ "autoincrement": false
3275
+ },
3276
+ "started_at": {
3277
+ "name": "started_at",
3278
+ "type": "integer",
3279
+ "primaryKey": false,
3280
+ "notNull": false,
3281
+ "autoincrement": false
3282
+ },
3283
+ "completed_at": {
3284
+ "name": "completed_at",
3285
+ "type": "integer",
3286
+ "primaryKey": false,
3287
+ "notNull": false,
3288
+ "autoincrement": false
3289
+ },
3290
+ "flight_metadata_json": {
3291
+ "name": "flight_metadata_json",
3292
+ "type": "text",
3293
+ "primaryKey": false,
3294
+ "notNull": false,
3295
+ "autoincrement": false
3296
+ }
3297
+ },
3298
+ "indexes": {
3299
+ "idx_invocations_target_created_at": {
3300
+ "name": "idx_invocations_target_created_at",
3301
+ "columns": [
3302
+ "target_agent_id",
3303
+ "created_at"
3304
+ ],
3305
+ "isUnique": false
3306
+ },
3307
+ "idx_invocations_requester_created_at": {
3308
+ "name": "idx_invocations_requester_created_at",
3309
+ "columns": [
3310
+ "requester_id",
3311
+ "\"created_at\" desc"
3312
+ ],
3313
+ "isUnique": false
3314
+ }
3315
+ },
3316
+ "foreignKeys": {
3317
+ "invocations_requester_id_actors_id_fk": {
3318
+ "name": "invocations_requester_id_actors_id_fk",
3319
+ "tableFrom": "invocations",
3320
+ "tableTo": "actors",
3321
+ "columnsFrom": [
3322
+ "requester_id"
3323
+ ],
3324
+ "columnsTo": [
3325
+ "id"
3326
+ ],
3327
+ "onDelete": "restrict",
3328
+ "onUpdate": "no action"
3329
+ },
3330
+ "invocations_requester_node_id_nodes_id_fk": {
3331
+ "name": "invocations_requester_node_id_nodes_id_fk",
3332
+ "tableFrom": "invocations",
3333
+ "tableTo": "nodes",
3334
+ "columnsFrom": [
3335
+ "requester_node_id"
3336
+ ],
3337
+ "columnsTo": [
3338
+ "id"
3339
+ ],
3340
+ "onDelete": "restrict",
3341
+ "onUpdate": "no action"
3342
+ },
3343
+ "invocations_target_agent_id_agents_id_fk": {
3344
+ "name": "invocations_target_agent_id_agents_id_fk",
3345
+ "tableFrom": "invocations",
3346
+ "tableTo": "agents",
3347
+ "columnsFrom": [
3348
+ "target_agent_id"
3349
+ ],
3350
+ "columnsTo": [
3351
+ "id"
3352
+ ],
3353
+ "onDelete": "restrict",
3354
+ "onUpdate": "no action"
3355
+ },
3356
+ "invocations_target_node_id_nodes_id_fk": {
3357
+ "name": "invocations_target_node_id_nodes_id_fk",
3358
+ "tableFrom": "invocations",
3359
+ "tableTo": "nodes",
3360
+ "columnsFrom": [
3361
+ "target_node_id"
3362
+ ],
3363
+ "columnsTo": [
3364
+ "id"
3365
+ ],
3366
+ "onDelete": "set null",
3367
+ "onUpdate": "no action"
3368
+ },
3369
+ "invocations_collaboration_record_id_collaboration_records_id_fk": {
3370
+ "name": "invocations_collaboration_record_id_collaboration_records_id_fk",
3371
+ "tableFrom": "invocations",
3372
+ "tableTo": "collaboration_records",
3373
+ "columnsFrom": [
3374
+ "collaboration_record_id"
3375
+ ],
3376
+ "columnsTo": [
3377
+ "id"
3378
+ ],
3379
+ "onDelete": "set null",
3380
+ "onUpdate": "no action"
3381
+ },
3382
+ "invocations_conversation_id_conversations_id_fk": {
3383
+ "name": "invocations_conversation_id_conversations_id_fk",
3384
+ "tableFrom": "invocations",
3385
+ "tableTo": "conversations",
3386
+ "columnsFrom": [
3387
+ "conversation_id"
3388
+ ],
3389
+ "columnsTo": [
3390
+ "id"
3391
+ ],
3392
+ "onDelete": "set null",
3393
+ "onUpdate": "no action"
3394
+ },
3395
+ "invocations_message_id_messages_id_fk": {
3396
+ "name": "invocations_message_id_messages_id_fk",
3397
+ "tableFrom": "invocations",
3398
+ "tableTo": "messages",
3399
+ "columnsFrom": [
3400
+ "message_id"
3401
+ ],
3402
+ "columnsTo": [
3403
+ "id"
3404
+ ],
3405
+ "onDelete": "set null",
3406
+ "onUpdate": "no action"
3407
+ }
3408
+ },
3409
+ "compositePrimaryKeys": {},
3410
+ "uniqueConstraints": {},
3411
+ "checkConstraints": {}
3412
+ },
3413
+ "message_attachments": {
3414
+ "name": "message_attachments",
3415
+ "columns": {
3416
+ "id": {
3417
+ "name": "id",
3418
+ "type": "text",
3419
+ "primaryKey": true,
3420
+ "notNull": true,
3421
+ "autoincrement": false
3422
+ },
3423
+ "message_id": {
3424
+ "name": "message_id",
3425
+ "type": "text",
3426
+ "primaryKey": false,
3427
+ "notNull": true,
3428
+ "autoincrement": false
3429
+ },
3430
+ "media_type": {
3431
+ "name": "media_type",
3432
+ "type": "text",
3433
+ "primaryKey": false,
3434
+ "notNull": true,
3435
+ "autoincrement": false
3436
+ },
3437
+ "file_name": {
3438
+ "name": "file_name",
3439
+ "type": "text",
3440
+ "primaryKey": false,
3441
+ "notNull": false,
3442
+ "autoincrement": false
3443
+ },
3444
+ "blob_key": {
3445
+ "name": "blob_key",
3446
+ "type": "text",
3447
+ "primaryKey": false,
3448
+ "notNull": false,
3449
+ "autoincrement": false
3450
+ },
3451
+ "url": {
3452
+ "name": "url",
3453
+ "type": "text",
3454
+ "primaryKey": false,
3455
+ "notNull": false,
3456
+ "autoincrement": false
3457
+ },
3458
+ "metadata_json": {
3459
+ "name": "metadata_json",
3460
+ "type": "text",
3461
+ "primaryKey": false,
3462
+ "notNull": false,
3463
+ "autoincrement": false
3464
+ }
3465
+ },
3466
+ "indexes": {},
3467
+ "foreignKeys": {
3468
+ "message_attachments_message_id_messages_id_fk": {
3469
+ "name": "message_attachments_message_id_messages_id_fk",
3470
+ "tableFrom": "message_attachments",
3471
+ "tableTo": "messages",
3472
+ "columnsFrom": [
3473
+ "message_id"
3474
+ ],
3475
+ "columnsTo": [
3476
+ "id"
3477
+ ],
3478
+ "onDelete": "cascade",
3479
+ "onUpdate": "no action"
3480
+ }
3481
+ },
3482
+ "compositePrimaryKeys": {},
3483
+ "uniqueConstraints": {},
3484
+ "checkConstraints": {}
3485
+ },
3486
+ "message_mentions": {
3487
+ "name": "message_mentions",
3488
+ "columns": {
3489
+ "message_id": {
3490
+ "name": "message_id",
3491
+ "type": "text",
3492
+ "primaryKey": false,
3493
+ "notNull": true,
3494
+ "autoincrement": false
3495
+ },
3496
+ "actor_id": {
3497
+ "name": "actor_id",
3498
+ "type": "text",
3499
+ "primaryKey": false,
3500
+ "notNull": true,
3501
+ "autoincrement": false
3502
+ },
3503
+ "label": {
3504
+ "name": "label",
3505
+ "type": "text",
3506
+ "primaryKey": false,
3507
+ "notNull": false,
3508
+ "autoincrement": false
3509
+ }
3510
+ },
3511
+ "indexes": {},
3512
+ "foreignKeys": {
3513
+ "message_mentions_message_id_messages_id_fk": {
3514
+ "name": "message_mentions_message_id_messages_id_fk",
3515
+ "tableFrom": "message_mentions",
3516
+ "tableTo": "messages",
3517
+ "columnsFrom": [
3518
+ "message_id"
3519
+ ],
3520
+ "columnsTo": [
3521
+ "id"
3522
+ ],
3523
+ "onDelete": "cascade",
3524
+ "onUpdate": "no action"
3525
+ },
3526
+ "message_mentions_actor_id_actors_id_fk": {
3527
+ "name": "message_mentions_actor_id_actors_id_fk",
3528
+ "tableFrom": "message_mentions",
3529
+ "tableTo": "actors",
3530
+ "columnsFrom": [
3531
+ "actor_id"
3532
+ ],
3533
+ "columnsTo": [
3534
+ "id"
3535
+ ],
3536
+ "onDelete": "cascade",
3537
+ "onUpdate": "no action"
3538
+ }
3539
+ },
3540
+ "compositePrimaryKeys": {
3541
+ "message_mentions_message_id_actor_id_pk": {
3542
+ "columns": [
3543
+ "message_id",
3544
+ "actor_id"
3545
+ ],
3546
+ "name": "message_mentions_message_id_actor_id_pk"
3547
+ }
3548
+ },
3549
+ "uniqueConstraints": {},
3550
+ "checkConstraints": {}
3551
+ },
3552
+ "messages": {
3553
+ "name": "messages",
3554
+ "columns": {
3555
+ "id": {
3556
+ "name": "id",
3557
+ "type": "text",
3558
+ "primaryKey": true,
3559
+ "notNull": true,
3560
+ "autoincrement": false
3561
+ },
3562
+ "conversation_id": {
3563
+ "name": "conversation_id",
3564
+ "type": "text",
3565
+ "primaryKey": false,
3566
+ "notNull": true,
3567
+ "autoincrement": false
3568
+ },
3569
+ "actor_id": {
3570
+ "name": "actor_id",
3571
+ "type": "text",
3572
+ "primaryKey": false,
3573
+ "notNull": true,
3574
+ "autoincrement": false
3575
+ },
3576
+ "origin_node_id": {
3577
+ "name": "origin_node_id",
3578
+ "type": "text",
3579
+ "primaryKey": false,
3580
+ "notNull": true,
3581
+ "autoincrement": false
3582
+ },
3583
+ "class": {
3584
+ "name": "class",
3585
+ "type": "text",
3586
+ "primaryKey": false,
3587
+ "notNull": true,
3588
+ "autoincrement": false
3589
+ },
3590
+ "body": {
3591
+ "name": "body",
3592
+ "type": "text",
3593
+ "primaryKey": false,
3594
+ "notNull": true,
3595
+ "autoincrement": false
3596
+ },
3597
+ "reply_to_message_id": {
3598
+ "name": "reply_to_message_id",
3599
+ "type": "text",
3600
+ "primaryKey": false,
3601
+ "notNull": false,
3602
+ "autoincrement": false
3603
+ },
3604
+ "thread_conversation_id": {
3605
+ "name": "thread_conversation_id",
3606
+ "type": "text",
3607
+ "primaryKey": false,
3608
+ "notNull": false,
3609
+ "autoincrement": false
3610
+ },
3611
+ "speech_json": {
3612
+ "name": "speech_json",
3613
+ "type": "text",
3614
+ "primaryKey": false,
3615
+ "notNull": false,
3616
+ "autoincrement": false
3617
+ },
3618
+ "audience_json": {
3619
+ "name": "audience_json",
3620
+ "type": "text",
3621
+ "primaryKey": false,
3622
+ "notNull": false,
3623
+ "autoincrement": false
3624
+ },
3625
+ "visibility": {
3626
+ "name": "visibility",
3627
+ "type": "text",
3628
+ "primaryKey": false,
3629
+ "notNull": true,
3630
+ "autoincrement": false
3631
+ },
3632
+ "policy": {
3633
+ "name": "policy",
3634
+ "type": "text",
3635
+ "primaryKey": false,
3636
+ "notNull": true,
3637
+ "autoincrement": false
3638
+ },
3639
+ "metadata_json": {
3640
+ "name": "metadata_json",
3641
+ "type": "text",
3642
+ "primaryKey": false,
3643
+ "notNull": false,
3644
+ "autoincrement": false
3645
+ },
3646
+ "created_at": {
3647
+ "name": "created_at",
3648
+ "type": "integer",
3649
+ "primaryKey": false,
3650
+ "notNull": true,
3651
+ "autoincrement": false
3652
+ }
3653
+ },
3654
+ "indexes": {
3655
+ "idx_messages_conversation_created_at": {
3656
+ "name": "idx_messages_conversation_created_at",
3657
+ "columns": [
3658
+ "conversation_id",
3659
+ "created_at"
3660
+ ],
3661
+ "isUnique": false
3662
+ },
3663
+ "idx_messages_created_at": {
3664
+ "name": "idx_messages_created_at",
3665
+ "columns": [
3666
+ "\"created_at\" desc"
3667
+ ],
3668
+ "isUnique": false
3669
+ },
3670
+ "idx_messages_actor_created_at": {
3671
+ "name": "idx_messages_actor_created_at",
3672
+ "columns": [
3673
+ "actor_id",
3674
+ "\"created_at\" desc"
3675
+ ],
3676
+ "isUnique": false
3677
+ }
3678
+ },
3679
+ "foreignKeys": {
3680
+ "messages_conversation_id_conversations_id_fk": {
3681
+ "name": "messages_conversation_id_conversations_id_fk",
3682
+ "tableFrom": "messages",
3683
+ "tableTo": "conversations",
3684
+ "columnsFrom": [
3685
+ "conversation_id"
3686
+ ],
3687
+ "columnsTo": [
3688
+ "id"
3689
+ ],
3690
+ "onDelete": "cascade",
3691
+ "onUpdate": "no action"
3692
+ },
3693
+ "messages_actor_id_actors_id_fk": {
3694
+ "name": "messages_actor_id_actors_id_fk",
3695
+ "tableFrom": "messages",
3696
+ "tableTo": "actors",
3697
+ "columnsFrom": [
3698
+ "actor_id"
3699
+ ],
3700
+ "columnsTo": [
3701
+ "id"
3702
+ ],
3703
+ "onDelete": "restrict",
3704
+ "onUpdate": "no action"
3705
+ },
3706
+ "messages_origin_node_id_nodes_id_fk": {
3707
+ "name": "messages_origin_node_id_nodes_id_fk",
3708
+ "tableFrom": "messages",
3709
+ "tableTo": "nodes",
3710
+ "columnsFrom": [
3711
+ "origin_node_id"
3712
+ ],
3713
+ "columnsTo": [
3714
+ "id"
3715
+ ],
3716
+ "onDelete": "restrict",
3717
+ "onUpdate": "no action"
3718
+ },
3719
+ "messages_reply_to_message_id_messages_id_fk": {
3720
+ "name": "messages_reply_to_message_id_messages_id_fk",
3721
+ "tableFrom": "messages",
3722
+ "tableTo": "messages",
3723
+ "columnsFrom": [
3724
+ "reply_to_message_id"
3725
+ ],
3726
+ "columnsTo": [
3727
+ "id"
3728
+ ],
3729
+ "onDelete": "set null",
3730
+ "onUpdate": "no action"
3731
+ },
3732
+ "messages_thread_conversation_id_conversations_id_fk": {
3733
+ "name": "messages_thread_conversation_id_conversations_id_fk",
3734
+ "tableFrom": "messages",
3735
+ "tableTo": "conversations",
3736
+ "columnsFrom": [
3737
+ "thread_conversation_id"
3738
+ ],
3739
+ "columnsTo": [
3740
+ "id"
3741
+ ],
3742
+ "onDelete": "set null",
3743
+ "onUpdate": "no action"
3744
+ }
3745
+ },
3746
+ "compositePrimaryKeys": {},
3747
+ "uniqueConstraints": {},
3748
+ "checkConstraints": {}
3749
+ },
3750
+ "mobile_push_registrations": {
3751
+ "name": "mobile_push_registrations",
3752
+ "columns": {
3753
+ "id": {
3754
+ "name": "id",
3755
+ "type": "text",
3756
+ "primaryKey": true,
3757
+ "notNull": true,
3758
+ "autoincrement": false
3759
+ },
3760
+ "device_id": {
3761
+ "name": "device_id",
3762
+ "type": "text",
3763
+ "primaryKey": false,
3764
+ "notNull": true,
3765
+ "autoincrement": false
3766
+ },
3767
+ "platform": {
3768
+ "name": "platform",
3769
+ "type": "text",
3770
+ "primaryKey": false,
3771
+ "notNull": true,
3772
+ "autoincrement": false
3773
+ },
3774
+ "app_bundle_id": {
3775
+ "name": "app_bundle_id",
3776
+ "type": "text",
3777
+ "primaryKey": false,
3778
+ "notNull": true,
3779
+ "autoincrement": false
3780
+ },
3781
+ "apns_environment": {
3782
+ "name": "apns_environment",
3783
+ "type": "text",
3784
+ "primaryKey": false,
3785
+ "notNull": true,
3786
+ "autoincrement": false
3787
+ },
3788
+ "push_token": {
3789
+ "name": "push_token",
3790
+ "type": "text",
3791
+ "primaryKey": false,
3792
+ "notNull": true,
3793
+ "autoincrement": false
3794
+ },
3795
+ "authorization_status": {
3796
+ "name": "authorization_status",
3797
+ "type": "text",
3798
+ "primaryKey": false,
3799
+ "notNull": true,
3800
+ "autoincrement": false
3801
+ },
3802
+ "app_version": {
3803
+ "name": "app_version",
3804
+ "type": "text",
3805
+ "primaryKey": false,
3806
+ "notNull": false,
3807
+ "autoincrement": false
3808
+ },
3809
+ "build_number": {
3810
+ "name": "build_number",
3811
+ "type": "text",
3812
+ "primaryKey": false,
3813
+ "notNull": false,
3814
+ "autoincrement": false
3815
+ },
3816
+ "device_model": {
3817
+ "name": "device_model",
3818
+ "type": "text",
3819
+ "primaryKey": false,
3820
+ "notNull": false,
3821
+ "autoincrement": false
3822
+ },
3823
+ "system_version": {
3824
+ "name": "system_version",
3825
+ "type": "text",
3826
+ "primaryKey": false,
3827
+ "notNull": false,
3828
+ "autoincrement": false
3829
+ },
3830
+ "created_at": {
3831
+ "name": "created_at",
3832
+ "type": "integer",
3833
+ "primaryKey": false,
3834
+ "notNull": true,
3835
+ "autoincrement": false
3836
+ },
3837
+ "updated_at": {
3838
+ "name": "updated_at",
3839
+ "type": "integer",
3840
+ "primaryKey": false,
3841
+ "notNull": true,
3842
+ "autoincrement": false
3843
+ }
3844
+ },
3845
+ "indexes": {
3846
+ "idx_mobile_push_registrations_device_bundle_env": {
3847
+ "name": "idx_mobile_push_registrations_device_bundle_env",
3848
+ "columns": [
3849
+ "device_id",
3850
+ "platform",
3851
+ "app_bundle_id",
3852
+ "apns_environment"
3853
+ ],
3854
+ "isUnique": true
3855
+ },
3856
+ "idx_mobile_push_registrations_push_token": {
3857
+ "name": "idx_mobile_push_registrations_push_token",
3858
+ "columns": [
3859
+ "push_token"
3860
+ ],
3861
+ "isUnique": true
3862
+ },
3863
+ "idx_mobile_push_registrations_device_updated_at": {
3864
+ "name": "idx_mobile_push_registrations_device_updated_at",
3865
+ "columns": [
3866
+ "device_id",
3867
+ "\"updated_at\" desc"
3868
+ ],
3869
+ "isUnique": false
3870
+ }
3871
+ },
3872
+ "foreignKeys": {},
3873
+ "compositePrimaryKeys": {},
3874
+ "uniqueConstraints": {},
3875
+ "checkConstraints": {}
3876
+ },
3877
+ "nodes": {
3878
+ "name": "nodes",
3879
+ "columns": {
3880
+ "id": {
3881
+ "name": "id",
3882
+ "type": "text",
3883
+ "primaryKey": true,
3884
+ "notNull": true,
3885
+ "autoincrement": false
3886
+ },
3887
+ "mesh_id": {
3888
+ "name": "mesh_id",
3889
+ "type": "text",
3890
+ "primaryKey": false,
3891
+ "notNull": true,
3892
+ "autoincrement": false
3893
+ },
3894
+ "name": {
3895
+ "name": "name",
3896
+ "type": "text",
3897
+ "primaryKey": false,
3898
+ "notNull": true,
3899
+ "autoincrement": false
3900
+ },
3901
+ "host_name": {
3902
+ "name": "host_name",
3903
+ "type": "text",
3904
+ "primaryKey": false,
3905
+ "notNull": false,
3906
+ "autoincrement": false
3907
+ },
3908
+ "advertise_scope": {
3909
+ "name": "advertise_scope",
3910
+ "type": "text",
3911
+ "primaryKey": false,
3912
+ "notNull": true,
3913
+ "autoincrement": false
3914
+ },
3915
+ "broker_url": {
3916
+ "name": "broker_url",
3917
+ "type": "text",
3918
+ "primaryKey": false,
3919
+ "notNull": false,
3920
+ "autoincrement": false
3921
+ },
3922
+ "tailnet_name": {
3923
+ "name": "tailnet_name",
3924
+ "type": "text",
3925
+ "primaryKey": false,
3926
+ "notNull": false,
3927
+ "autoincrement": false
3928
+ },
3929
+ "capabilities_json": {
3930
+ "name": "capabilities_json",
3931
+ "type": "text",
3932
+ "primaryKey": false,
3933
+ "notNull": false,
3934
+ "autoincrement": false
3935
+ },
3936
+ "labels_json": {
3937
+ "name": "labels_json",
3938
+ "type": "text",
3939
+ "primaryKey": false,
3940
+ "notNull": false,
3941
+ "autoincrement": false
3942
+ },
3943
+ "metadata_json": {
3944
+ "name": "metadata_json",
3945
+ "type": "text",
3946
+ "primaryKey": false,
3947
+ "notNull": false,
3948
+ "autoincrement": false
3949
+ },
3950
+ "last_seen_at": {
3951
+ "name": "last_seen_at",
3952
+ "type": "integer",
3953
+ "primaryKey": false,
3954
+ "notNull": false,
3955
+ "autoincrement": false
3956
+ },
3957
+ "registered_at": {
3958
+ "name": "registered_at",
3959
+ "type": "integer",
3960
+ "primaryKey": false,
3961
+ "notNull": true,
3962
+ "autoincrement": false
3963
+ }
3964
+ },
3965
+ "indexes": {
3966
+ "idx_nodes_mesh_id": {
3967
+ "name": "idx_nodes_mesh_id",
3968
+ "columns": [
3969
+ "mesh_id"
3970
+ ],
3971
+ "isUnique": false
3972
+ }
3973
+ },
3974
+ "foreignKeys": {},
3975
+ "compositePrimaryKeys": {},
3976
+ "uniqueConstraints": {},
3977
+ "checkConstraints": {}
3978
+ },
3979
+ "runtime_session_aliases": {
3980
+ "name": "runtime_session_aliases",
3981
+ "columns": {
3982
+ "alias": {
3983
+ "name": "alias",
3984
+ "type": "text",
3985
+ "primaryKey": false,
3986
+ "notNull": true,
3987
+ "autoincrement": false
3988
+ },
3989
+ "session_id": {
3990
+ "name": "session_id",
3991
+ "type": "text",
3992
+ "primaryKey": false,
3993
+ "notNull": true,
3994
+ "autoincrement": false
3995
+ },
3996
+ "alias_kind": {
3997
+ "name": "alias_kind",
3998
+ "type": "text",
3999
+ "primaryKey": false,
4000
+ "notNull": true,
4001
+ "autoincrement": false
4002
+ },
4003
+ "agent_id": {
4004
+ "name": "agent_id",
4005
+ "type": "text",
4006
+ "primaryKey": false,
4007
+ "notNull": true,
4008
+ "autoincrement": false
4009
+ },
4010
+ "endpoint_id": {
4011
+ "name": "endpoint_id",
4012
+ "type": "text",
4013
+ "primaryKey": false,
4014
+ "notNull": true,
4015
+ "autoincrement": false
4016
+ },
4017
+ "node_id": {
4018
+ "name": "node_id",
4019
+ "type": "text",
4020
+ "primaryKey": false,
4021
+ "notNull": true,
4022
+ "autoincrement": false
4023
+ },
4024
+ "harness": {
4025
+ "name": "harness",
4026
+ "type": "text",
4027
+ "primaryKey": false,
4028
+ "notNull": true,
4029
+ "autoincrement": false
4030
+ },
4031
+ "transport": {
4032
+ "name": "transport",
4033
+ "type": "text",
4034
+ "primaryKey": false,
4035
+ "notNull": true,
4036
+ "autoincrement": false
4037
+ },
4038
+ "first_seen_at": {
4039
+ "name": "first_seen_at",
4040
+ "type": "integer",
4041
+ "primaryKey": false,
4042
+ "notNull": true,
4043
+ "autoincrement": false
4044
+ },
4045
+ "last_seen_at": {
4046
+ "name": "last_seen_at",
4047
+ "type": "integer",
4048
+ "primaryKey": false,
4049
+ "notNull": true,
4050
+ "autoincrement": false
4051
+ },
4052
+ "expires_at": {
4053
+ "name": "expires_at",
4054
+ "type": "integer",
4055
+ "primaryKey": false,
4056
+ "notNull": false,
4057
+ "autoincrement": false
4058
+ }
4059
+ },
4060
+ "indexes": {
4061
+ "idx_runtime_session_aliases_alias": {
4062
+ "name": "idx_runtime_session_aliases_alias",
4063
+ "columns": [
4064
+ "alias",
4065
+ "\"last_seen_at\" desc"
4066
+ ],
4067
+ "isUnique": false
4068
+ },
4069
+ "idx_runtime_session_aliases_session": {
4070
+ "name": "idx_runtime_session_aliases_session",
4071
+ "columns": [
4072
+ "session_id"
4073
+ ],
4074
+ "isUnique": false
4075
+ },
4076
+ "idx_runtime_session_aliases_expires": {
4077
+ "name": "idx_runtime_session_aliases_expires",
4078
+ "columns": [
4079
+ "expires_at"
4080
+ ],
4081
+ "isUnique": false,
4082
+ "where": "expires_at IS NOT NULL"
4083
+ }
4084
+ },
4085
+ "foreignKeys": {
4086
+ "runtime_session_aliases_session_id_runtime_sessions_id_fk": {
4087
+ "name": "runtime_session_aliases_session_id_runtime_sessions_id_fk",
4088
+ "tableFrom": "runtime_session_aliases",
4089
+ "tableTo": "runtime_sessions",
4090
+ "columnsFrom": [
4091
+ "session_id"
4092
+ ],
4093
+ "columnsTo": [
4094
+ "id"
4095
+ ],
4096
+ "onDelete": "cascade",
4097
+ "onUpdate": "no action"
4098
+ },
4099
+ "runtime_session_aliases_agent_id_agents_id_fk": {
4100
+ "name": "runtime_session_aliases_agent_id_agents_id_fk",
4101
+ "tableFrom": "runtime_session_aliases",
4102
+ "tableTo": "agents",
4103
+ "columnsFrom": [
4104
+ "agent_id"
4105
+ ],
4106
+ "columnsTo": [
4107
+ "id"
4108
+ ],
4109
+ "onDelete": "cascade",
4110
+ "onUpdate": "no action"
4111
+ },
4112
+ "runtime_session_aliases_endpoint_id_agent_endpoints_id_fk": {
4113
+ "name": "runtime_session_aliases_endpoint_id_agent_endpoints_id_fk",
4114
+ "tableFrom": "runtime_session_aliases",
4115
+ "tableTo": "agent_endpoints",
4116
+ "columnsFrom": [
4117
+ "endpoint_id"
4118
+ ],
4119
+ "columnsTo": [
4120
+ "id"
4121
+ ],
4122
+ "onDelete": "cascade",
4123
+ "onUpdate": "no action"
4124
+ },
4125
+ "runtime_session_aliases_node_id_nodes_id_fk": {
4126
+ "name": "runtime_session_aliases_node_id_nodes_id_fk",
4127
+ "tableFrom": "runtime_session_aliases",
4128
+ "tableTo": "nodes",
4129
+ "columnsFrom": [
4130
+ "node_id"
4131
+ ],
4132
+ "columnsTo": [
4133
+ "id"
4134
+ ],
4135
+ "onDelete": "restrict",
4136
+ "onUpdate": "no action"
4137
+ }
4138
+ },
4139
+ "compositePrimaryKeys": {
4140
+ "runtime_session_aliases_alias_session_id_pk": {
4141
+ "columns": [
4142
+ "alias",
4143
+ "session_id"
4144
+ ],
4145
+ "name": "runtime_session_aliases_alias_session_id_pk"
4146
+ }
4147
+ },
4148
+ "uniqueConstraints": {},
4149
+ "checkConstraints": {}
4150
+ },
4151
+ "runtime_sessions": {
4152
+ "name": "runtime_sessions",
4153
+ "columns": {
4154
+ "id": {
4155
+ "name": "id",
4156
+ "type": "text",
4157
+ "primaryKey": true,
4158
+ "notNull": true,
4159
+ "autoincrement": false
4160
+ },
4161
+ "agent_id": {
4162
+ "name": "agent_id",
4163
+ "type": "text",
4164
+ "primaryKey": false,
4165
+ "notNull": true,
4166
+ "autoincrement": false
4167
+ },
4168
+ "endpoint_id": {
4169
+ "name": "endpoint_id",
4170
+ "type": "text",
4171
+ "primaryKey": false,
4172
+ "notNull": true,
4173
+ "autoincrement": false
4174
+ },
4175
+ "node_id": {
4176
+ "name": "node_id",
4177
+ "type": "text",
4178
+ "primaryKey": false,
4179
+ "notNull": true,
4180
+ "autoincrement": false
4181
+ },
4182
+ "harness": {
4183
+ "name": "harness",
4184
+ "type": "text",
4185
+ "primaryKey": false,
4186
+ "notNull": true,
4187
+ "autoincrement": false
4188
+ },
4189
+ "transport": {
4190
+ "name": "transport",
4191
+ "type": "text",
4192
+ "primaryKey": false,
4193
+ "notNull": true,
4194
+ "autoincrement": false
4195
+ },
4196
+ "state": {
4197
+ "name": "state",
4198
+ "type": "text",
4199
+ "primaryKey": false,
4200
+ "notNull": true,
4201
+ "autoincrement": false
4202
+ },
4203
+ "primary_alias": {
4204
+ "name": "primary_alias",
4205
+ "type": "text",
4206
+ "primaryKey": false,
4207
+ "notNull": true,
4208
+ "autoincrement": false
4209
+ },
4210
+ "external_session_id": {
4211
+ "name": "external_session_id",
4212
+ "type": "text",
4213
+ "primaryKey": false,
4214
+ "notNull": false,
4215
+ "autoincrement": false
4216
+ },
4217
+ "cwd": {
4218
+ "name": "cwd",
4219
+ "type": "text",
4220
+ "primaryKey": false,
4221
+ "notNull": false,
4222
+ "autoincrement": false
4223
+ },
4224
+ "project_root": {
4225
+ "name": "project_root",
4226
+ "type": "text",
4227
+ "primaryKey": false,
4228
+ "notNull": false,
4229
+ "autoincrement": false
4230
+ },
4231
+ "started_at": {
4232
+ "name": "started_at",
4233
+ "type": "integer",
4234
+ "primaryKey": false,
4235
+ "notNull": false,
4236
+ "autoincrement": false
4237
+ },
4238
+ "last_seen_at": {
4239
+ "name": "last_seen_at",
4240
+ "type": "integer",
4241
+ "primaryKey": false,
4242
+ "notNull": true,
4243
+ "autoincrement": false
4244
+ },
4245
+ "ended_at": {
4246
+ "name": "ended_at",
4247
+ "type": "integer",
4248
+ "primaryKey": false,
4249
+ "notNull": false,
4250
+ "autoincrement": false
4251
+ },
4252
+ "expires_at": {
4253
+ "name": "expires_at",
4254
+ "type": "integer",
4255
+ "primaryKey": false,
4256
+ "notNull": false,
4257
+ "autoincrement": false
4258
+ },
4259
+ "metadata_json": {
4260
+ "name": "metadata_json",
4261
+ "type": "text",
4262
+ "primaryKey": false,
4263
+ "notNull": false,
4264
+ "autoincrement": false
4265
+ },
4266
+ "created_at": {
4267
+ "name": "created_at",
4268
+ "type": "integer",
4269
+ "primaryKey": false,
4270
+ "notNull": true,
4271
+ "autoincrement": false,
4272
+ "default": "(CAST(strftime('%s','now') AS INTEGER) * 1000)"
4273
+ },
4274
+ "updated_at": {
4275
+ "name": "updated_at",
4276
+ "type": "integer",
4277
+ "primaryKey": false,
4278
+ "notNull": true,
4279
+ "autoincrement": false
4280
+ }
4281
+ },
4282
+ "indexes": {
4283
+ "idx_runtime_sessions_agent_last_seen": {
4284
+ "name": "idx_runtime_sessions_agent_last_seen",
4285
+ "columns": [
4286
+ "agent_id",
4287
+ "\"last_seen_at\" desc"
4288
+ ],
4289
+ "isUnique": false
4290
+ },
4291
+ "idx_runtime_sessions_endpoint_last_seen": {
4292
+ "name": "idx_runtime_sessions_endpoint_last_seen",
4293
+ "columns": [
4294
+ "endpoint_id",
4295
+ "\"last_seen_at\" desc"
4296
+ ],
4297
+ "isUnique": false
4298
+ },
4299
+ "idx_runtime_sessions_external": {
4300
+ "name": "idx_runtime_sessions_external",
4301
+ "columns": [
4302
+ "external_session_id"
4303
+ ],
4304
+ "isUnique": false
4305
+ },
4306
+ "idx_runtime_sessions_expires": {
4307
+ "name": "idx_runtime_sessions_expires",
4308
+ "columns": [
4309
+ "expires_at"
4310
+ ],
4311
+ "isUnique": false,
4312
+ "where": "expires_at IS NOT NULL"
4313
+ }
4314
+ },
4315
+ "foreignKeys": {
4316
+ "runtime_sessions_agent_id_agents_id_fk": {
4317
+ "name": "runtime_sessions_agent_id_agents_id_fk",
4318
+ "tableFrom": "runtime_sessions",
4319
+ "tableTo": "agents",
4320
+ "columnsFrom": [
4321
+ "agent_id"
4322
+ ],
4323
+ "columnsTo": [
4324
+ "id"
4325
+ ],
4326
+ "onDelete": "cascade",
4327
+ "onUpdate": "no action"
4328
+ },
4329
+ "runtime_sessions_endpoint_id_agent_endpoints_id_fk": {
4330
+ "name": "runtime_sessions_endpoint_id_agent_endpoints_id_fk",
4331
+ "tableFrom": "runtime_sessions",
4332
+ "tableTo": "agent_endpoints",
4333
+ "columnsFrom": [
4334
+ "endpoint_id"
4335
+ ],
4336
+ "columnsTo": [
4337
+ "id"
4338
+ ],
4339
+ "onDelete": "cascade",
4340
+ "onUpdate": "no action"
4341
+ },
4342
+ "runtime_sessions_node_id_nodes_id_fk": {
4343
+ "name": "runtime_sessions_node_id_nodes_id_fk",
4344
+ "tableFrom": "runtime_sessions",
4345
+ "tableTo": "nodes",
4346
+ "columnsFrom": [
4347
+ "node_id"
4348
+ ],
4349
+ "columnsTo": [
4350
+ "id"
4351
+ ],
4352
+ "onDelete": "restrict",
4353
+ "onUpdate": "no action"
4354
+ }
4355
+ },
4356
+ "compositePrimaryKeys": {},
4357
+ "uniqueConstraints": {},
4358
+ "checkConstraints": {}
4359
+ },
4360
+ "scout_dispatches": {
4361
+ "name": "scout_dispatches",
4362
+ "columns": {
4363
+ "id": {
4364
+ "name": "id",
4365
+ "type": "text",
4366
+ "primaryKey": true,
4367
+ "notNull": true,
4368
+ "autoincrement": false
4369
+ },
4370
+ "kind": {
4371
+ "name": "kind",
4372
+ "type": "text",
4373
+ "primaryKey": false,
4374
+ "notNull": true,
4375
+ "autoincrement": false
4376
+ },
4377
+ "asked_label": {
4378
+ "name": "asked_label",
4379
+ "type": "text",
4380
+ "primaryKey": false,
4381
+ "notNull": true,
4382
+ "autoincrement": false
4383
+ },
4384
+ "detail": {
4385
+ "name": "detail",
4386
+ "type": "text",
4387
+ "primaryKey": false,
4388
+ "notNull": true,
4389
+ "autoincrement": false
4390
+ },
4391
+ "invocation_id": {
4392
+ "name": "invocation_id",
4393
+ "type": "text",
4394
+ "primaryKey": false,
4395
+ "notNull": false,
4396
+ "autoincrement": false
4397
+ },
4398
+ "conversation_id": {
4399
+ "name": "conversation_id",
4400
+ "type": "text",
4401
+ "primaryKey": false,
4402
+ "notNull": false,
4403
+ "autoincrement": false
4404
+ },
4405
+ "requester_id": {
4406
+ "name": "requester_id",
4407
+ "type": "text",
4408
+ "primaryKey": false,
4409
+ "notNull": false,
4410
+ "autoincrement": false
4411
+ },
4412
+ "dispatcher_node_id": {
4413
+ "name": "dispatcher_node_id",
4414
+ "type": "text",
4415
+ "primaryKey": false,
4416
+ "notNull": true,
4417
+ "autoincrement": false
4418
+ },
4419
+ "dispatched_at": {
4420
+ "name": "dispatched_at",
4421
+ "type": "integer",
4422
+ "primaryKey": false,
4423
+ "notNull": true,
4424
+ "autoincrement": false
4425
+ },
4426
+ "payload_json": {
4427
+ "name": "payload_json",
4428
+ "type": "text",
4429
+ "primaryKey": false,
4430
+ "notNull": true,
4431
+ "autoincrement": false
4432
+ }
4433
+ },
4434
+ "indexes": {
4435
+ "idx_scout_dispatches_dispatched_at": {
4436
+ "name": "idx_scout_dispatches_dispatched_at",
4437
+ "columns": [
4438
+ "\"dispatched_at\" desc"
4439
+ ],
4440
+ "isUnique": false
4441
+ },
4442
+ "idx_scout_dispatches_conversation_ts": {
4443
+ "name": "idx_scout_dispatches_conversation_ts",
4444
+ "columns": [
4445
+ "conversation_id",
4446
+ "\"dispatched_at\" desc"
4447
+ ],
4448
+ "isUnique": false
4449
+ }
4450
+ },
4451
+ "foreignKeys": {},
4452
+ "compositePrimaryKeys": {},
4453
+ "uniqueConstraints": {},
4454
+ "checkConstraints": {}
4455
+ },
4456
+ "thread_cursors": {
4457
+ "name": "thread_cursors",
4458
+ "columns": {
4459
+ "conversation_id": {
4460
+ "name": "conversation_id",
4461
+ "type": "text",
4462
+ "primaryKey": false,
4463
+ "notNull": true,
4464
+ "autoincrement": false
4465
+ },
4466
+ "authority_node_id": {
4467
+ "name": "authority_node_id",
4468
+ "type": "text",
4469
+ "primaryKey": false,
4470
+ "notNull": true,
4471
+ "autoincrement": false
4472
+ },
4473
+ "last_applied_seq": {
4474
+ "name": "last_applied_seq",
4475
+ "type": "integer",
4476
+ "primaryKey": false,
4477
+ "notNull": true,
4478
+ "autoincrement": false
4479
+ },
4480
+ "updated_at": {
4481
+ "name": "updated_at",
4482
+ "type": "integer",
4483
+ "primaryKey": false,
4484
+ "notNull": true,
4485
+ "autoincrement": false
4486
+ }
4487
+ },
4488
+ "indexes": {},
4489
+ "foreignKeys": {
4490
+ "thread_cursors_conversation_id_conversations_id_fk": {
4491
+ "name": "thread_cursors_conversation_id_conversations_id_fk",
4492
+ "tableFrom": "thread_cursors",
4493
+ "tableTo": "conversations",
4494
+ "columnsFrom": [
4495
+ "conversation_id"
4496
+ ],
4497
+ "columnsTo": [
4498
+ "id"
4499
+ ],
4500
+ "onDelete": "cascade",
4501
+ "onUpdate": "no action"
4502
+ },
4503
+ "thread_cursors_authority_node_id_nodes_id_fk": {
4504
+ "name": "thread_cursors_authority_node_id_nodes_id_fk",
4505
+ "tableFrom": "thread_cursors",
4506
+ "tableTo": "nodes",
4507
+ "columnsFrom": [
4508
+ "authority_node_id"
4509
+ ],
4510
+ "columnsTo": [
4511
+ "id"
4512
+ ],
4513
+ "onDelete": "restrict",
4514
+ "onUpdate": "no action"
4515
+ }
4516
+ },
4517
+ "compositePrimaryKeys": {
4518
+ "thread_cursors_conversation_id_authority_node_id_pk": {
4519
+ "columns": [
4520
+ "conversation_id",
4521
+ "authority_node_id"
4522
+ ],
4523
+ "name": "thread_cursors_conversation_id_authority_node_id_pk"
4524
+ }
4525
+ },
4526
+ "uniqueConstraints": {},
4527
+ "checkConstraints": {}
4528
+ },
4529
+ "thread_events": {
4530
+ "name": "thread_events",
4531
+ "columns": {
4532
+ "id": {
4533
+ "name": "id",
4534
+ "type": "text",
4535
+ "primaryKey": true,
4536
+ "notNull": true,
4537
+ "autoincrement": false
4538
+ },
4539
+ "conversation_id": {
4540
+ "name": "conversation_id",
4541
+ "type": "text",
4542
+ "primaryKey": false,
4543
+ "notNull": true,
4544
+ "autoincrement": false
4545
+ },
4546
+ "authority_node_id": {
4547
+ "name": "authority_node_id",
4548
+ "type": "text",
4549
+ "primaryKey": false,
4550
+ "notNull": true,
4551
+ "autoincrement": false
4552
+ },
4553
+ "seq": {
4554
+ "name": "seq",
4555
+ "type": "integer",
4556
+ "primaryKey": false,
4557
+ "notNull": true,
4558
+ "autoincrement": false
4559
+ },
4560
+ "kind": {
4561
+ "name": "kind",
4562
+ "type": "text",
4563
+ "primaryKey": false,
4564
+ "notNull": true,
4565
+ "autoincrement": false
4566
+ },
4567
+ "actor_id": {
4568
+ "name": "actor_id",
4569
+ "type": "text",
4570
+ "primaryKey": false,
4571
+ "notNull": false,
4572
+ "autoincrement": false
4573
+ },
4574
+ "ts": {
4575
+ "name": "ts",
4576
+ "type": "integer",
4577
+ "primaryKey": false,
4578
+ "notNull": true,
4579
+ "autoincrement": false
4580
+ },
4581
+ "payload_json": {
4582
+ "name": "payload_json",
4583
+ "type": "text",
4584
+ "primaryKey": false,
4585
+ "notNull": true,
4586
+ "autoincrement": false
4587
+ },
4588
+ "notification_json": {
4589
+ "name": "notification_json",
4590
+ "type": "text",
4591
+ "primaryKey": false,
4592
+ "notNull": false,
4593
+ "autoincrement": false
4594
+ }
4595
+ },
4596
+ "indexes": {
4597
+ "idx_thread_events_conversation_seq": {
4598
+ "name": "idx_thread_events_conversation_seq",
4599
+ "columns": [
4600
+ "conversation_id",
4601
+ "\"seq\" desc"
4602
+ ],
4603
+ "isUnique": false
4604
+ },
4605
+ "idx_thread_events_conversation_ts": {
4606
+ "name": "idx_thread_events_conversation_ts",
4607
+ "columns": [
4608
+ "conversation_id",
4609
+ "\"ts\" desc"
4610
+ ],
4611
+ "isUnique": false
4612
+ },
4613
+ "thread_events_conversation_id_seq_unique": {
4614
+ "name": "thread_events_conversation_id_seq_unique",
4615
+ "columns": [
4616
+ "conversation_id",
4617
+ "seq"
4618
+ ],
4619
+ "isUnique": true
4620
+ }
4621
+ },
4622
+ "foreignKeys": {
4623
+ "thread_events_conversation_id_conversations_id_fk": {
4624
+ "name": "thread_events_conversation_id_conversations_id_fk",
4625
+ "tableFrom": "thread_events",
4626
+ "tableTo": "conversations",
4627
+ "columnsFrom": [
4628
+ "conversation_id"
4629
+ ],
4630
+ "columnsTo": [
4631
+ "id"
4632
+ ],
4633
+ "onDelete": "cascade",
4634
+ "onUpdate": "no action"
4635
+ },
4636
+ "thread_events_authority_node_id_nodes_id_fk": {
4637
+ "name": "thread_events_authority_node_id_nodes_id_fk",
4638
+ "tableFrom": "thread_events",
4639
+ "tableTo": "nodes",
4640
+ "columnsFrom": [
4641
+ "authority_node_id"
4642
+ ],
4643
+ "columnsTo": [
4644
+ "id"
4645
+ ],
4646
+ "onDelete": "restrict",
4647
+ "onUpdate": "no action"
4648
+ },
4649
+ "thread_events_actor_id_actors_id_fk": {
4650
+ "name": "thread_events_actor_id_actors_id_fk",
4651
+ "tableFrom": "thread_events",
4652
+ "tableTo": "actors",
4653
+ "columnsFrom": [
4654
+ "actor_id"
4655
+ ],
4656
+ "columnsTo": [
4657
+ "id"
4658
+ ],
4659
+ "onDelete": "set null",
4660
+ "onUpdate": "no action"
4661
+ }
4662
+ },
4663
+ "compositePrimaryKeys": {},
4664
+ "uniqueConstraints": {},
4665
+ "checkConstraints": {}
4666
+ }
4667
+ },
4668
+ "views": {},
4669
+ "enums": {},
4670
+ "_meta": {
4671
+ "schemas": {},
4672
+ "tables": {},
4673
+ "columns": {}
4674
+ },
4675
+ "internal": {
4676
+ "indexes": {
4677
+ "idx_activity_items_agent_ts": {
4678
+ "columns": {
4679
+ "\"ts\" desc": {
4680
+ "isExpression": true
4681
+ }
4682
+ }
4683
+ },
4684
+ "idx_activity_items_actor_ts": {
4685
+ "columns": {
4686
+ "\"ts\" desc": {
4687
+ "isExpression": true
4688
+ }
4689
+ }
4690
+ },
4691
+ "idx_activity_items_conversation_ts": {
4692
+ "columns": {
4693
+ "\"ts\" desc": {
4694
+ "isExpression": true
4695
+ }
4696
+ }
4697
+ },
4698
+ "idx_activity_items_ts": {
4699
+ "columns": {
4700
+ "\"ts\" desc": {
4701
+ "isExpression": true
4702
+ }
4703
+ }
4704
+ },
4705
+ "idx_activity_items_workspace_ts": {
4706
+ "columns": {
4707
+ "\"ts\" desc": {
4708
+ "isExpression": true
4709
+ }
4710
+ }
4711
+ },
4712
+ "idx_activity_items_kind_ts": {
4713
+ "columns": {
4714
+ "\"ts\" desc": {
4715
+ "isExpression": true
4716
+ }
4717
+ }
4718
+ },
4719
+ "idx_activity_items_session_ts": {
4720
+ "columns": {
4721
+ "\"ts\" desc": {
4722
+ "isExpression": true
4723
+ }
4724
+ }
4725
+ },
4726
+ "idx_agent_endpoints_agent_updated_at": {
4727
+ "columns": {
4728
+ "\"updated_at\" desc": {
4729
+ "isExpression": true
4730
+ }
4731
+ }
4732
+ },
4733
+ "idx_briefings_created_at": {
4734
+ "columns": {
4735
+ "\"created_at\" desc": {
4736
+ "isExpression": true
4737
+ }
4738
+ }
4739
+ },
4740
+ "idx_briefings_kind_created_at": {
4741
+ "columns": {
4742
+ "\"created_at\" desc": {
4743
+ "isExpression": true
4744
+ }
4745
+ }
4746
+ },
4747
+ "idx_budget_quota_windows_session_captured": {
4748
+ "columns": {
4749
+ "\"captured_at\" desc": {
4750
+ "isExpression": true
4751
+ }
4752
+ }
4753
+ },
4754
+ "idx_budget_quota_windows_provider_label": {
4755
+ "columns": {
4756
+ "\"captured_at\" desc": {
4757
+ "isExpression": true
4758
+ }
4759
+ }
4760
+ },
4761
+ "idx_budget_usage_events_scope_occurred": {
4762
+ "columns": {
4763
+ "\"occurred_at\" desc": {
4764
+ "isExpression": true
4765
+ }
4766
+ }
4767
+ },
4768
+ "idx_budget_usage_events_session_occurred": {
4769
+ "columns": {
4770
+ "\"occurred_at\" desc": {
4771
+ "isExpression": true
4772
+ }
4773
+ }
4774
+ },
4775
+ "idx_budget_usage_events_invocation": {
4776
+ "columns": {
4777
+ "\"occurred_at\" desc": {
4778
+ "isExpression": true
4779
+ }
4780
+ }
4781
+ },
4782
+ "idx_budget_usage_events_flight": {
4783
+ "columns": {
4784
+ "\"occurred_at\" desc": {
4785
+ "isExpression": true
4786
+ }
4787
+ }
4788
+ },
4789
+ "idx_collaboration_records_kind_state_updated_at": {
4790
+ "columns": {
4791
+ "\"updated_at\" desc": {
4792
+ "isExpression": true
4793
+ }
4794
+ }
4795
+ },
4796
+ "idx_collaboration_records_parent_kind_state_updated_at": {
4797
+ "columns": {
4798
+ "\"updated_at\" desc": {
4799
+ "isExpression": true
4800
+ }
4801
+ }
4802
+ },
4803
+ "idx_collaboration_records_owner_kind_state_updated_at": {
4804
+ "columns": {
4805
+ "\"updated_at\" desc": {
4806
+ "isExpression": true
4807
+ }
4808
+ }
4809
+ },
4810
+ "idx_collaboration_records_next_move_owner_kind_state_updated_at": {
4811
+ "columns": {
4812
+ "\"updated_at\" desc": {
4813
+ "isExpression": true
4814
+ }
4815
+ }
4816
+ },
4817
+ "idx_context_blocks_scope_state_updated_at": {
4818
+ "columns": {
4819
+ "\"updated_at\" desc": {
4820
+ "isExpression": true
4821
+ }
4822
+ }
4823
+ },
4824
+ "idx_context_blocks_kind_state_updated_at": {
4825
+ "columns": {
4826
+ "\"updated_at\" desc": {
4827
+ "isExpression": true
4828
+ }
4829
+ }
4830
+ },
4831
+ "idx_context_packs_created_at": {
4832
+ "columns": {
4833
+ "\"created_at\" desc": {
4834
+ "isExpression": true
4835
+ }
4836
+ }
4837
+ },
4838
+ "idx_read_cursors_conversation_updated_at": {
4839
+ "columns": {
4840
+ "\"updated_at\" desc": {
4841
+ "isExpression": true
4842
+ }
4843
+ }
4844
+ },
4845
+ "idx_conversations_created_at": {
4846
+ "columns": {
4847
+ "\"created_at\" desc": {
4848
+ "isExpression": true
4849
+ }
4850
+ }
4851
+ },
4852
+ "idx_deliveries_created_at": {
4853
+ "columns": {
4854
+ "\"created_at\" desc": {
4855
+ "isExpression": true
4856
+ }
4857
+ }
4858
+ },
4859
+ "idx_delivery_attempts_created_at": {
4860
+ "columns": {
4861
+ "\"created_at\" desc": {
4862
+ "isExpression": true
4863
+ }
4864
+ }
4865
+ },
4866
+ "idx_durable_actions_kind_due_at_updated_at": {
4867
+ "columns": {
4868
+ "COALESCE(CAST(json_extract(metadata_json, '$.dueAt') AS REAL), CAST(json_extract(metadata_json, '$.due_at') AS REAL))": {
4869
+ "isExpression": true
4870
+ }
4871
+ }
4872
+ },
4873
+ "idx_invocations_requester_created_at": {
4874
+ "columns": {
4875
+ "\"created_at\" desc": {
4876
+ "isExpression": true
4877
+ }
4878
+ }
4879
+ },
4880
+ "idx_messages_created_at": {
4881
+ "columns": {
4882
+ "\"created_at\" desc": {
4883
+ "isExpression": true
4884
+ }
4885
+ }
4886
+ },
4887
+ "idx_messages_actor_created_at": {
4888
+ "columns": {
4889
+ "\"created_at\" desc": {
4890
+ "isExpression": true
4891
+ }
4892
+ }
4893
+ },
4894
+ "idx_mobile_push_registrations_device_updated_at": {
4895
+ "columns": {
4896
+ "\"updated_at\" desc": {
4897
+ "isExpression": true
4898
+ }
4899
+ }
4900
+ },
4901
+ "idx_runtime_session_aliases_alias": {
4902
+ "columns": {
4903
+ "\"last_seen_at\" desc": {
4904
+ "isExpression": true
4905
+ }
4906
+ }
4907
+ },
4908
+ "idx_runtime_sessions_agent_last_seen": {
4909
+ "columns": {
4910
+ "\"last_seen_at\" desc": {
4911
+ "isExpression": true
4912
+ }
4913
+ }
4914
+ },
4915
+ "idx_runtime_sessions_endpoint_last_seen": {
4916
+ "columns": {
4917
+ "\"last_seen_at\" desc": {
4918
+ "isExpression": true
4919
+ }
4920
+ }
4921
+ },
4922
+ "idx_scout_dispatches_dispatched_at": {
4923
+ "columns": {
4924
+ "\"dispatched_at\" desc": {
4925
+ "isExpression": true
4926
+ }
4927
+ }
4928
+ },
4929
+ "idx_scout_dispatches_conversation_ts": {
4930
+ "columns": {
4931
+ "\"dispatched_at\" desc": {
4932
+ "isExpression": true
4933
+ }
4934
+ }
4935
+ },
4936
+ "idx_thread_events_conversation_seq": {
4937
+ "columns": {
4938
+ "\"seq\" desc": {
4939
+ "isExpression": true
4940
+ }
4941
+ }
4942
+ },
4943
+ "idx_thread_events_conversation_ts": {
4944
+ "columns": {
4945
+ "\"ts\" desc": {
4946
+ "isExpression": true
4947
+ }
4948
+ }
4949
+ }
4950
+ }
4951
+ }
4952
+ }