@wular/coder 0.3.18 → 0.4.1

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 (473) hide show
  1. package/README.md +18 -16
  2. package/bin/coder.mjs +3 -1
  3. package/dist/actions-Mk3FSlpJ.js +20 -0
  4. package/dist/adapter-B0oYCI0S.js +1 -0
  5. package/dist/adapter-BKVzTDnn.js +1 -0
  6. package/dist/adapter-DPInwbJG.js +1 -0
  7. package/dist/adapter-DaiJMOYo.js +1 -0
  8. package/dist/adapter-PeKziOUg.js +1 -0
  9. package/dist/add-BxpLHnvD.js +1 -0
  10. package/dist/add-CE-70LFs.js +1 -0
  11. package/dist/add-U-pty9qJ.js +6 -0
  12. package/dist/add-ej0X9e3a.js +1 -0
  13. package/dist/add-json-CEa-6luW.js +1 -0
  14. package/dist/agent-BsYx3Odz.js +3 -0
  15. package/dist/agent-JdtZozvP.js +1 -0
  16. package/dist/alias-DX-Bm86x.js +2 -0
  17. package/dist/app-BT5f7zL5.js +1 -0
  18. package/dist/approvals-C-AvFt6s.js +2 -0
  19. package/dist/approve-DOmpQRNd.js +2 -0
  20. package/dist/apps-CjfrZyM5.js +1 -0
  21. package/dist/archive-BUB8gFKD.js +4 -0
  22. package/dist/archive-BziJ1rQ-.js +3 -0
  23. package/dist/archive-sweep-CtBcARgN.js +1 -0
  24. package/dist/args-BOEEdpWk.js +1 -0
  25. package/dist/ask-dE3U3ss2.js +4 -0
  26. package/dist/auth-BFny--17.js +1 -0
  27. package/dist/auth-DWHIzqbA.js +1 -0
  28. package/dist/builtin/coder/agent.json +24 -0
  29. package/dist/builtin/coder/system.md +17 -0
  30. package/dist/chat-3Znsevah.js +1 -0
  31. package/dist/chat-B_yhNTo0.js +13 -0
  32. package/dist/chat-bridge-BS9WtP3X.js +2 -0
  33. package/dist/cli-BilSDkvE.js +9 -0
  34. package/dist/cli.d.ts +71 -1
  35. package/dist/cli.js +1 -91
  36. package/dist/client-D9IoAuDD.js +1 -0
  37. package/dist/config-Da_cwoxI.js +3 -0
  38. package/dist/create-C_iMJV4Y.js +1 -0
  39. package/dist/credentials-B1jv6dkg.js +1 -0
  40. package/dist/dash/manifest.json +3427 -0
  41. package/dist/dash/public/assets/apple-touch-icon.png +0 -0
  42. package/dist/dash/public/assets/chunks/agent-pills-c9c4ac4d4a10df83.js +1 -0
  43. package/dist/dash/public/assets/chunks/agent-settings-form-8be2ddab074aba6d.js +1 -0
  44. package/dist/dash/public/assets/chunks/agents-grid-951584b6f4c4314e.js +1 -0
  45. package/dist/dash/public/assets/chunks/badge-676b01e0c615bf7b.js +1 -0
  46. package/dist/dash/public/assets/chunks/card-e0901d68b79dfa93.js +1 -0
  47. package/dist/dash/public/assets/chunks/combo-41234c24668b1db1.js +1 -0
  48. package/dist/dash/public/assets/chunks/composer-5534be50bc12385e.js +1 -0
  49. package/dist/dash/public/assets/chunks/composer-d10d4b1d54c4f751.js +1 -0
  50. package/dist/dash/public/assets/chunks/composer-data-6f7608fed13f3dd7.js +1 -0
  51. package/dist/dash/public/assets/chunks/confirm-f2fe4ba9905a89c6.js +1 -0
  52. package/dist/dash/public/assets/chunks/connect-apps-aa2a3d82e48ed8c3.js +1 -0
  53. package/dist/dash/public/assets/chunks/connect-repositories-5389ec8701a3deac.js +1 -0
  54. package/dist/dash/public/assets/chunks/credentials-list-bc5bfcab058176c5.js +2 -0
  55. package/dist/dash/public/assets/chunks/custom-range-4761ab14f05149df.js +1 -0
  56. package/dist/dash/public/assets/chunks/editor-bfe8cd854f8001be.js +7 -0
  57. package/dist/dash/public/assets/chunks/engines-list-f1191390f5715b39.js +1 -0
  58. package/dist/dash/public/assets/chunks/field-901f1f35c18c39c9.js +1 -0
  59. package/dist/dash/public/assets/chunks/format-eb03fc9d9744d960.js +1 -0
  60. package/dist/dash/public/assets/chunks/heads-f3bcd289663d48fa.js +1 -0
  61. package/dist/dash/public/assets/chunks/instructions-052fa45a9daf6db6.js +2 -0
  62. package/dist/dash/public/assets/chunks/instructions-d0a4b0d95009c262.js +1 -0
  63. package/dist/dash/public/assets/chunks/list-1d259660d7612c5f.js +1 -0
  64. package/dist/dash/public/assets/chunks/mcp-list-e3bebbbe831393b8.js +1 -0
  65. package/dist/dash/public/assets/chunks/model-options-15c53331a2f28a4f.js +1 -0
  66. package/dist/dash/public/assets/chunks/models-list-44f857a469ca04d5.js +1 -0
  67. package/dist/dash/public/assets/chunks/paged-bc6fa0c2b9d52ed7.js +1 -0
  68. package/dist/dash/public/assets/chunks/platform-actions-d1426602049926d2.js +1 -0
  69. package/dist/dash/public/assets/chunks/runners-list-1901af8a5dea1f09.js +1 -0
  70. package/dist/dash/public/assets/chunks/runtime-246221e985d863e5-1.js +2 -0
  71. package/dist/dash/public/assets/chunks/segmented-358ff2b4992b8384.js +1 -0
  72. package/dist/dash/public/assets/chunks/select-7ae25fd8a7d6c338.js +1 -0
  73. package/dist/dash/public/assets/chunks/sentinel-c972a33dc69a5135.js +1 -0
  74. package/dist/dash/public/assets/chunks/shared-init-246221e985d863e5-2.js +1 -0
  75. package/dist/dash/public/assets/chunks/shared-init-88cce66bb3cfe1e5.js +5 -0
  76. package/dist/dash/public/assets/chunks/shared-init-8f2ac936c95a7f7b.js +1 -0
  77. package/dist/dash/public/assets/chunks/shared-init-ffb3397e494137c9.js +2 -0
  78. package/dist/dash/public/assets/chunks/tail-7c27aab8ba268bd9.js +1 -0
  79. package/dist/dash/public/assets/chunks/task-actions-8e1d93c788d001df.js +1 -0
  80. package/dist/dash/public/assets/chunks/task-fa8b82e95e771c4a.js +1 -0
  81. package/dist/dash/public/assets/chunks/task-view-6d7618d2820a5cb4.js +3 -0
  82. package/dist/dash/public/assets/chunks/tasks-list-f4784e5cbd0ed785.js +1 -0
  83. package/dist/dash/public/assets/chunks/toolbar-a75d2570f07cbb70.js +1 -0
  84. package/dist/dash/public/assets/chunks/versions-list-fc2e0d2a7382e049.js +1 -0
  85. package/dist/dash/public/assets/chunks/wular-pnext-246221e985d863e5-0.js +1 -0
  86. package/dist/dash/public/assets/connect-382b1729a7ae7808.css +1 -0
  87. package/dist/dash/public/assets/dash-9e02d5d1a6d42ee3.css +1 -0
  88. package/dist/dash/public/assets/dash-account-04859899c1838ada.css +1 -0
  89. package/dist/dash/public/assets/dash-agents-9e678137267dec07.css +1 -0
  90. package/dist/dash/public/assets/dash-agents-new-26fa27b17ef9b8d8.css +1 -0
  91. package/dist/dash/public/assets/dash-agents-param-slug-b975c48f8abf3444.css +1 -0
  92. package/dist/dash/public/assets/dash-agents-param-slug-edit-e13fda599bb04843.css +1 -0
  93. package/dist/dash/public/assets/dash-agents-param-slug-platforms-70292932cb27bc96.css +1 -0
  94. package/dist/dash/public/assets/dash-agents-param-slug-settings-71f9a86251723fcc.css +1 -0
  95. package/dist/dash/public/assets/dash-agents-param-slug-tasks-fb8eb2ed71006601.css +1 -0
  96. package/dist/dash/public/assets/dash-agents-param-slug-usage-7c8740f1cdd52c71.css +1 -0
  97. package/dist/dash/public/assets/dash-settings-8eb818da462227e8.css +1 -0
  98. package/dist/dash/public/assets/dash-settings-param-tab-849a1a9542e273f5.css +1 -0
  99. package/dist/dash/public/assets/dash-tasks-81e510e0b6931b42.css +1 -0
  100. package/dist/dash/public/assets/dash-tasks-param-id-bbd2a83342f2ec10.css +1 -0
  101. package/dist/dash/public/assets/dash-usage-8e0259e03eaed1bd.css +1 -0
  102. package/dist/dash/public/assets/favicon.ico +0 -0
  103. package/dist/dash/public/assets/favicon.svg +1 -0
  104. package/dist/dash/public/assets/fonts/LICENSE-fira-code +93 -0
  105. package/dist/dash/public/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
  106. package/dist/dash/public/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
  107. package/dist/dash/public/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
  108. package/dist/dash/public/assets/global-d2adbf01910d9df5.css +1 -0
  109. package/dist/dash/public/assets/login-c129b1ce237be260.css +1 -0
  110. package/dist/dash/public/assets/pnext-client-03b03b254e525e82.js +1 -0
  111. package/dist/dash/public/assets/pnext-client-1b9ab0963a8ff77b.js +1 -0
  112. package/dist/dash/public/assets/pnext-client-1c7859bb888f4ef0.js +1 -0
  113. package/dist/dash/public/assets/pnext-client-3c748afe963fb05d.js +1 -0
  114. package/dist/dash/public/assets/pnext-client-4f47c2cae220f107.js +1 -0
  115. package/dist/dash/public/assets/pnext-client-6ab9fd9b53b794d2.js +1 -0
  116. package/dist/dash/public/assets/pnext-client-6c241786342498e4.js +1 -0
  117. package/dist/dash/public/assets/pnext-client-80b56d420f02b808.js +1 -0
  118. package/dist/dash/public/assets/pnext-client-83135c17bae850a3.js +1 -0
  119. package/dist/dash/public/assets/pnext-client-8e6fa4302ae0396f.js +1 -0
  120. package/dist/dash/public/assets/pnext-client-932c9d8cc0717fc8.js +1 -0
  121. package/dist/dash/public/assets/pnext-client-a42ae63d4de113f9.js +1 -0
  122. package/dist/dash/public/assets/pnext-client-d2ee6f8c1e337032.js +1 -0
  123. package/dist/dash/public/assets/pnext-client-d513f65ec23b7f20.js +1 -0
  124. package/dist/dash/public/assets/pnext-client-ecb88e2a8a109954.js +1 -0
  125. package/dist/dash/public/assets/pnext-client-f1545ee6270bbf9a.js +1 -0
  126. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/boot-B2MFTRO2.js +30 -0
  127. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/build-tier-XJJSL5FR.js +2704 -0
  128. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2HFY3DQT.js +208 -0
  129. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-2ICEVELW.js +834 -0
  130. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-3UPROT2C.js +35 -0
  131. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4P5CMIYT.js +1582 -0
  132. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-4TKZKZ3Q.js +131 -0
  133. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-5RDEILQB.js +437 -0
  134. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-62KEQM43.js +25 -0
  135. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-6KQSWT6D.js +831 -0
  136. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-7DCNCW6O.js +724 -0
  137. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-B4THCTQP.js +22 -0
  138. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-C2LIV2MM.js +172 -0
  139. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-CCATPVTW.js +378 -0
  140. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-COXJAPTU.js +89 -0
  141. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-E6IXL2NJ.js +6270 -0
  142. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FLGRBFAH.js +1198 -0
  143. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-FTJVHFWD.js +61 -0
  144. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-H523KSIH.js +5151 -0
  145. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-HT6KKX6A.js +20 -0
  146. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JESFYECC.js +438 -0
  147. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-JRPJM2XY.js +17 -0
  148. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L2IWDUXG.js +107 -0
  149. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-L5P4Y4UC.js +183 -0
  150. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-NQE46AZN.js +647 -0
  151. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PA4QEARJ.js +129 -0
  152. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-PZ5AXOLW.js +7146 -0
  153. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-SNVPTULL.js +2397 -0
  154. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-T3QZT3PG.js +220 -0
  155. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-VC5O2SDP.js +72 -0
  156. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-WZX4V6CM.js +231 -0
  157. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-XUUIDXY5.js +627 -0
  158. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/chunk-ZHFDO3PR.js +265 -0
  159. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/compile-CE2DN7ZA.js +18 -0
  160. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-UREY7XJT.js +16 -0
  161. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/config-loader-UI2XE3PZ.js +17 -0
  162. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/entry.js +219 -0
  163. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/generate-I2PPTDFD.js +16 -0
  164. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/modules-UVOCE4C2.js +48 -0
  165. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/pipeline-UW47K537.js +963 -0
  166. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/proxy-ITGOVJBW.js +26 -0
  167. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/register-4SA55SWT.js +12579 -0
  168. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/router-JNKHLBCZ.js +505 -0
  169. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/routes-PD6J2NXW.js +54 -0
  170. package/dist/dash/server/bundle-0.1.5-1508b6c99c0d1e68/tsconfig-defaults-ZXEH7RQK.js +15 -0
  171. package/dist/default-Bobztoxf.js +1 -0
  172. package/dist/default-vYPT26DR.js +1 -0
  173. package/dist/delete-D8gEwoOj.js +4 -0
  174. package/dist/delete-z1_86nf6.js +2 -0
  175. package/dist/disable-DVKd-0Xb.js +1 -0
  176. package/dist/discover-Df-a8K4R.js +3 -0
  177. package/dist/discover-Dvr_3_Xr.js +1 -0
  178. package/dist/dispatch-BKeAch9E.js +14 -0
  179. package/dist/docs-BX65z2Iu.js +2 -0
  180. package/dist/docs-DKJnqZqt.js +2 -0
  181. package/dist/enable-C8Zf_wpN.js +1 -0
  182. package/dist/env-CRf6wkM2.js +1 -0
  183. package/dist/exec-RZFLclKX.js +11 -0
  184. package/dist/executor-BvAA7Cgw.js +10 -0
  185. package/dist/flow/builtin/review.d.ts +157 -0
  186. package/dist/flow/builtin/review.js +19 -0
  187. package/dist/flow/index.d.ts +1 -1
  188. package/dist/flow/index.js +1 -1
  189. package/dist/flow-17k25MHt.js +1 -0
  190. package/dist/github-actions-DwUzm4hC.js +24 -0
  191. package/dist/http-Bkg_OQ6r.js +1 -0
  192. package/dist/{index-BQ-b77or.d.ts → index-CZjFX5zV.d.ts} +116 -238
  193. package/dist/init-CoMfFxbG.js +1 -0
  194. package/dist/integrations-5xCaXSd-.js +1 -0
  195. package/dist/integrations-BAgdVDhj.js +5 -0
  196. package/dist/lib/broker.js +3 -3
  197. package/dist/list-BAKvxSbh.js +4 -0
  198. package/dist/list-BYiG8Zav.js +2 -0
  199. package/dist/list-BxEywhHU.js +1 -0
  200. package/dist/list-C5w01-8q.js +1 -0
  201. package/dist/list-CIW2joV1.js +1 -0
  202. package/dist/list-DX-z3SBp.js +3 -0
  203. package/dist/list-DpCf4G-H.js +4 -0
  204. package/dist/list-VToARh3C.js +1 -0
  205. package/dist/load-BpEsAn51.js +2 -0
  206. package/dist/local-H3uvqEbq.js +1 -0
  207. package/dist/log-view-dg0TlKLA.js +1 -0
  208. package/dist/login-BFxX4jJy.js +1 -0
  209. package/dist/login-DkkslfBx.js +1 -0
  210. package/dist/logout-BHAtw4Z8.js +1 -0
  211. package/dist/maintenance-C5FklUw3.js +1 -0
  212. package/dist/match-CXAjDhg7.js +1 -0
  213. package/dist/mcp-BgKb2Cdk.js +1 -0
  214. package/dist/mcp-CCZOAo06.js +1 -0
  215. package/dist/mcp-server-DGzme0YX.js +1 -0
  216. package/dist/migrate-C4vM7DQN.js +2 -0
  217. package/dist/migrate-N-85_N7J.js +1 -0
  218. package/dist/model-Bs1StDo3.js +1 -0
  219. package/dist/models-_5LVGC3m.js +1 -0
  220. package/dist/output-BKeyLbvt.js +5 -0
  221. package/dist/prompt-CEuBMNhk.js +7 -0
  222. package/dist/push-CUC55Bqd.js +1 -0
  223. package/dist/queue-6io_NOP3.js +116 -0
  224. package/dist/refresh-BIrmrWYq.js +1 -0
  225. package/dist/remote-miQNTVRa.js +1 -0
  226. package/dist/remove-B93LNkZI.js +1 -0
  227. package/dist/remove-C5_xggx7.js +1 -0
  228. package/dist/remove-CuH8a3L9.js +1 -0
  229. package/dist/remove-eQ8y5C5p.js +1 -0
  230. package/dist/rename-CYfy03FE.js +1 -0
  231. package/dist/result-BEtQZHaY.js +5 -0
  232. package/dist/result-BzaM3inj.js +15 -0
  233. package/dist/resume-DYzKvyEw.js +3 -0
  234. package/dist/review-oIBeECZE.js +7 -0
  235. package/dist/rolldown-runtime-DT7IzrpZ.js +1 -0
  236. package/dist/rotate-key-IdMYH7gg.js +1 -0
  237. package/dist/run-BDYl0CKl.js +2 -0
  238. package/dist/run-CTtd0Znc.js +5 -0
  239. package/dist/run-CawRGnOg.js +2 -0
  240. package/dist/runner-D7ScbIHJ.js +1 -0
  241. package/dist/runner-sUpWJ_k0.js +1 -0
  242. package/dist/schema-CU2iFkp8.js +1 -0
  243. package/dist/sdk.d.ts +1166 -191
  244. package/dist/sdk.js +1 -1
  245. package/dist/serve-BTeomYxW.js +1 -0
  246. package/dist/serve-CE8YV2e9.js +1 -0
  247. package/dist/serve-CPnmrKyf.js +2 -0
  248. package/dist/serve-CQKZxzFE.js +4 -0
  249. package/dist/serve-GmRO89s5.js +12 -0
  250. package/dist/server-Kb22cWfF.js +1 -0
  251. package/dist/setup-host-GFTUzzZJ.js +6 -0
  252. package/dist/shared-DVtzWhUT.js +1 -0
  253. package/dist/show-CMUg8SJu.js +1 -0
  254. package/dist/show-COTZEYgc.js +1 -0
  255. package/dist/status-D26U--p8.js +1 -0
  256. package/dist/steer-C6uARLp5.js +4 -0
  257. package/dist/stop-BrGI3hSS.js +1 -0
  258. package/dist/stop-ByCAlbmN.js +3 -0
  259. package/dist/store-B94tSate.js +42 -0
  260. package/dist/store-DzqXS2wT.js +8 -0
  261. package/dist/task-C6VAg5WU.js +1 -0
  262. package/dist/task-CgOKgkEG.js +1 -0
  263. package/dist/task-DeglY79z.js +5 -0
  264. package/dist/test-NEbhlxvo.js +1 -0
  265. package/dist/tools-D0Zfs8Hx.js +1 -0
  266. package/dist/types-D0q15RJa.js +1 -0
  267. package/dist/types-I5Cwtl_K.d.ts +389 -0
  268. package/dist/unalias-C9NqmSDq.js +1 -0
  269. package/dist/update-BTxYQj7Z.js +2 -0
  270. package/dist/upgrade-hA0yWBvx.js +2 -0
  271. package/dist/usage-BhqoCjvE.js +1 -0
  272. package/dist/usage-C4d9X2Uq.js +1 -0
  273. package/dist/watch-CSdj24ct.js +5 -0
  274. package/dist/watch-DtRuC0Wc.js +8 -0
  275. package/dist/wire-BeT1Axeo.js +1 -0
  276. package/dist/worker-CXndxmGF.js +9 -0
  277. package/dist/worker-DX7P9kWl.js +1 -0
  278. package/dist/workflow-Dcmdooi8.js +1 -0
  279. package/docs/agents/coder.md +26 -0
  280. package/docs/agents/index.md +120 -0
  281. package/docs/config.md +51 -30
  282. package/docs/dash.md +64 -0
  283. package/docs/flows.md +20 -15
  284. package/docs/mcp.md +62 -0
  285. package/docs/models.md +41 -23
  286. package/docs/review.md +41 -0
  287. package/docs/sdk.md +57 -38
  288. package/docs/self-host.md +188 -0
  289. package/migrations/0000_initial.sql +252 -0
  290. package/migrations/meta/0000_snapshot.json +1787 -0
  291. package/migrations/meta/_journal.json +13 -0
  292. package/package.json +37 -7
  293. package/plugins/agents/skills/coder/SKILL.md +14 -60
  294. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  295. package/plugins/claude/commands/setup.md +2 -2
  296. package/plugins/claude/skills/dispatch/SKILL.md +14 -58
  297. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  298. package/plugins/cursor/README.md +5 -5
  299. package/plugins/cursor/assets/logo.png +0 -0
  300. package/plugins/cursor/skills/coder/SKILL.md +14 -59
  301. package/src/client/index.ts +573 -0
  302. package/src/client/types.ts +506 -0
  303. package/src/core/errors.ts +72 -0
  304. package/src/core/task/log-view.ts +173 -0
  305. package/src/server/auth/sign-in.ts +14 -0
  306. package/src/server/dash/api/load.ts +62 -0
  307. package/src/server/dash/api/types.ts +11 -0
  308. package/src/server/dash/app/connect/page.tsx +42 -0
  309. package/src/server/dash/app/dash/account/loading.tsx +11 -0
  310. package/src/server/dash/app/dash/account/notify.tsx +42 -0
  311. package/src/server/dash/app/dash/account/page.css +81 -0
  312. package/src/server/dash/app/dash/account/page.tsx +126 -0
  313. package/src/server/dash/app/dash/account/sign-out.tsx +24 -0
  314. package/src/server/dash/app/dash/agents/(list)/agent-menu.tsx +10 -0
  315. package/src/server/dash/app/dash/agents/(list)/agents-grid.tsx +143 -0
  316. package/src/server/dash/app/dash/agents/(list)/connect-apps.tsx +46 -0
  317. package/src/server/dash/app/dash/agents/(list)/loading.tsx +14 -0
  318. package/src/server/dash/app/dash/agents/(list)/page.css +72 -0
  319. package/src/server/dash/app/dash/agents/(list)/page.tsx +89 -0
  320. package/src/server/dash/app/dash/agents/[slug]/(tabs)/layout.tsx +135 -0
  321. package/src/server/dash/app/dash/agents/[slug]/(tabs)/loading.tsx +5 -0
  322. package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.css +21 -0
  323. package/src/server/dash/app/dash/agents/[slug]/(tabs)/page.tsx +173 -0
  324. package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/loading.tsx +18 -0
  325. package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.css +87 -0
  326. package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/page.tsx +258 -0
  327. package/src/server/dash/app/dash/agents/[slug]/(tabs)/platforms/platform-actions.tsx +111 -0
  328. package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.css +114 -0
  329. package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/agent-settings-form.tsx +294 -0
  330. package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/loading.tsx +5 -0
  331. package/src/server/dash/app/dash/agents/[slug]/(tabs)/settings/page.tsx +54 -0
  332. package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/loading.tsx +5 -0
  333. package/src/server/dash/app/dash/agents/[slug]/(tabs)/tasks/page.tsx +14 -0
  334. package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/loading.tsx +31 -0
  335. package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.css +12 -0
  336. package/src/server/dash/app/dash/agents/[slug]/(tabs)/usage/page.tsx +163 -0
  337. package/src/server/dash/app/dash/agents/[slug]/(tabs)/versions-list.tsx +53 -0
  338. package/src/server/dash/app/dash/agents/[slug]/edit/loading.tsx +31 -0
  339. package/src/server/dash/app/dash/agents/[slug]/edit/page.tsx +91 -0
  340. package/src/server/dash/app/dash/agents/agent/agent-pills.css +27 -0
  341. package/src/server/dash/app/dash/agents/agent/agent-pills.tsx +133 -0
  342. package/src/server/dash/app/dash/agents/agent/hero.css +40 -0
  343. package/src/server/dash/app/dash/agents/agent/hero.tsx +60 -0
  344. package/src/server/dash/app/dash/agents/agent/instructions.css +29 -0
  345. package/src/server/dash/app/dash/agents/agent/instructions.tsx +82 -0
  346. package/src/server/dash/app/dash/agents/editor/connect-repositories.ts +16 -0
  347. package/src/server/dash/app/dash/agents/editor/editor.css +263 -0
  348. package/src/server/dash/app/dash/agents/editor/editor.tsx +774 -0
  349. package/src/server/dash/app/dash/agents/editor/import-picker.css +48 -0
  350. package/src/server/dash/app/dash/agents/editor/import-picker.tsx +253 -0
  351. package/src/server/dash/app/dash/agents/editor/names.ts +35 -0
  352. package/src/server/dash/app/dash/agents/new/loading.tsx +25 -0
  353. package/src/server/dash/app/dash/agents/new/page.tsx +72 -0
  354. package/src/server/dash/app/dash/layout.css +265 -0
  355. package/src/server/dash/app/dash/layout.tsx +332 -0
  356. package/src/server/dash/app/dash/page.tsx +14 -0
  357. package/src/server/dash/app/dash/settings/[tab]/credentials-list.css +94 -0
  358. package/src/server/dash/app/dash/settings/[tab]/credentials-list.tsx +619 -0
  359. package/src/server/dash/app/dash/settings/[tab]/credentials.tsx +36 -0
  360. package/src/server/dash/app/dash/settings/[tab]/engines-list.css +16 -0
  361. package/src/server/dash/app/dash/settings/[tab]/engines-list.tsx +135 -0
  362. package/src/server/dash/app/dash/settings/[tab]/list.css +98 -0
  363. package/src/server/dash/app/dash/settings/[tab]/list.tsx +215 -0
  364. package/src/server/dash/app/dash/settings/[tab]/loading.tsx +6 -0
  365. package/src/server/dash/app/dash/settings/[tab]/mcp-list.css +43 -0
  366. package/src/server/dash/app/dash/settings/[tab]/mcp-list.tsx +290 -0
  367. package/src/server/dash/app/dash/settings/[tab]/models-list.tsx +513 -0
  368. package/src/server/dash/app/dash/settings/[tab]/page.tsx +89 -0
  369. package/src/server/dash/app/dash/settings/[tab]/runners-list.css +153 -0
  370. package/src/server/dash/app/dash/settings/[tab]/runners-list.tsx +457 -0
  371. package/src/server/dash/app/dash/settings/layout.tsx +50 -0
  372. package/src/server/dash/app/dash/settings/model-options.ts +117 -0
  373. package/src/server/dash/app/dash/settings/page.tsx +7 -0
  374. package/src/server/dash/app/dash/settings/settings-head.tsx +24 -0
  375. package/src/server/dash/app/dash/settings/tunnel-guide.tsx +28 -0
  376. package/src/server/dash/app/dash/tasks/[id]/activity.tsx +202 -0
  377. package/src/server/dash/app/dash/tasks/[id]/loading.tsx +31 -0
  378. package/src/server/dash/app/dash/tasks/[id]/page.tsx +30 -0
  379. package/src/server/dash/app/dash/tasks/[id]/task-actions.tsx +164 -0
  380. package/src/server/dash/app/dash/tasks/[id]/task-view.css +407 -0
  381. package/src/server/dash/app/dash/tasks/[id]/task-view.tsx +513 -0
  382. package/src/server/dash/app/dash/tasks/composer-data.ts +96 -0
  383. package/src/server/dash/app/dash/tasks/composer.css +316 -0
  384. package/src/server/dash/app/dash/tasks/composer.tsx +890 -0
  385. package/src/server/dash/app/dash/tasks/list/status.css +50 -0
  386. package/src/server/dash/app/dash/tasks/list/status.tsx +20 -0
  387. package/src/server/dash/app/dash/tasks/list/task.ts +45 -0
  388. package/src/server/dash/app/dash/tasks/list/tasks-list.css +85 -0
  389. package/src/server/dash/app/dash/tasks/list/tasks-list.tsx +402 -0
  390. package/src/server/dash/app/dash/tasks/list/tasks-section.tsx +96 -0
  391. package/src/server/dash/app/dash/tasks/page.tsx +53 -0
  392. package/src/server/dash/app/dash/token-from-hash.tsx +17 -0
  393. package/src/server/dash/app/dash/usage/custom-range.tsx +63 -0
  394. package/src/server/dash/app/dash/usage/day-chart.css +109 -0
  395. package/src/server/dash/app/dash/usage/day-chart.tsx +110 -0
  396. package/src/server/dash/app/dash/usage/loading.tsx +17 -0
  397. package/src/server/dash/app/dash/usage/metric.ts +13 -0
  398. package/src/server/dash/app/dash/usage/page.tsx +117 -0
  399. package/src/server/dash/app/dash/usage/range-bar.css +13 -0
  400. package/src/server/dash/app/dash/usage/range-bar.tsx +69 -0
  401. package/src/server/dash/app/dash/usage/stats.css +52 -0
  402. package/src/server/dash/app/dash/usage/stats.tsx +19 -0
  403. package/src/server/dash/app/dash/usage/top-agents.css +40 -0
  404. package/src/server/dash/app/dash/usage/top-agents.tsx +138 -0
  405. package/src/server/dash/app/dash/usage/usage.css +0 -0
  406. package/src/server/dash/app/globals.css +692 -0
  407. package/src/server/dash/app/layout.tsx +52 -0
  408. package/src/server/dash/app/login/page.css +26 -0
  409. package/src/server/dash/app/login/page.tsx +57 -0
  410. package/src/server/dash/app/page.tsx +5 -0
  411. package/src/server/dash/app/responsive.css +49 -0
  412. package/src/server/dash/app/zone.tsx +13 -0
  413. package/src/server/dash/comps/frame/auth-panel.css +60 -0
  414. package/src/server/dash/comps/frame/auth-panel.tsx +44 -0
  415. package/src/server/dash/comps/frame/drawer.css +28 -0
  416. package/src/server/dash/comps/frame/drawer.tsx +39 -0
  417. package/src/server/dash/comps/frame/heads.ts +41 -0
  418. package/src/server/dash/comps/frame/loading-card.tsx +65 -0
  419. package/src/server/dash/comps/frame/page-head.css +83 -0
  420. package/src/server/dash/comps/frame/page-head.tsx +71 -0
  421. package/src/server/dash/comps/frame/stream.tsx +50 -0
  422. package/src/server/dash/comps/frame/task-toasts.tsx +214 -0
  423. package/src/server/dash/comps/frame/theme-choices.tsx +46 -0
  424. package/src/server/dash/comps/nav/current-link.tsx +53 -0
  425. package/src/server/dash/comps/nav/side-toggle.tsx +30 -0
  426. package/src/server/dash/comps/nav/to.ts +22 -0
  427. package/src/server/dash/comps/ui/badge.css +64 -0
  428. package/src/server/dash/comps/ui/badge.tsx +41 -0
  429. package/src/server/dash/comps/ui/card.css +93 -0
  430. package/src/server/dash/comps/ui/card.tsx +77 -0
  431. package/src/server/dash/comps/ui/collapse.css +32 -0
  432. package/src/server/dash/comps/ui/collapse.tsx +49 -0
  433. package/src/server/dash/comps/ui/combo.tsx +154 -0
  434. package/src/server/dash/comps/ui/confirm.css +36 -0
  435. package/src/server/dash/comps/ui/confirm.tsx +67 -0
  436. package/src/server/dash/comps/ui/field.css +25 -0
  437. package/src/server/dash/comps/ui/field.tsx +34 -0
  438. package/src/server/dash/comps/ui/icon.css +22 -0
  439. package/src/server/dash/comps/ui/icon.tsx +17 -0
  440. package/src/server/dash/comps/ui/icons.ts +44 -0
  441. package/src/server/dash/comps/ui/menu.css +178 -0
  442. package/src/server/dash/comps/ui/menu.tsx +152 -0
  443. package/src/server/dash/comps/ui/segmented.css +44 -0
  444. package/src/server/dash/comps/ui/segmented.tsx +58 -0
  445. package/src/server/dash/comps/ui/select.css +103 -0
  446. package/src/server/dash/comps/ui/select.tsx +250 -0
  447. package/src/server/dash/comps/ui/sentinel.css +58 -0
  448. package/src/server/dash/comps/ui/sentinel.tsx +67 -0
  449. package/src/server/dash/comps/ui/tabs.css +81 -0
  450. package/src/server/dash/comps/ui/tabs.tsx +32 -0
  451. package/src/server/dash/comps/ui/tail.css +12 -0
  452. package/src/server/dash/comps/ui/tail.tsx +37 -0
  453. package/src/server/dash/comps/ui/toast.css +72 -0
  454. package/src/server/dash/comps/ui/toolbar.css +143 -0
  455. package/src/server/dash/comps/ui/toolbar.tsx +93 -0
  456. package/src/server/dash/package.json +5 -0
  457. package/src/server/dash/pnext-env.d.ts +4 -0
  458. package/src/server/dash/pnext.config.ts +5 -0
  459. package/src/server/dash/public/assets/apple-touch-icon.png +0 -0
  460. package/src/server/dash/public/assets/favicon.ico +0 -0
  461. package/src/server/dash/public/assets/favicon.svg +1 -0
  462. package/src/server/dash/public/assets/fonts/LICENSE-fira-code +93 -0
  463. package/src/server/dash/public/assets/fonts/fira-code-latin-400-normal-717ee080.woff2 +0 -0
  464. package/src/server/dash/public/assets/fonts/fira-code-latin-500-normal-530b6706.woff2 +0 -0
  465. package/src/server/dash/public/assets/fonts/fira-code-latin-700-normal-98730669.woff2 +0 -0
  466. package/src/server/dash/tsconfig.json +10 -0
  467. package/src/server/dash/utils/client.ts +19 -0
  468. package/src/server/dash/utils/format.ts +75 -0
  469. package/src/server/dash/utils/paged.ts +184 -0
  470. package/src/server/dash/utils/range.ts +117 -0
  471. package/dist/app-server-CW93J9zJ.js +0 -3
  472. package/dist/runtime-D-U1DNkI.js +0 -26
  473. package/dist/upgrade-DOj06r5b.js +0 -37
@@ -0,0 +1,1787 @@
1
+ {
2
+ "id": "2e1b3c0d-b7bb-4f29-a390-80eb06881eab",
3
+ "prevId": "00000000-0000-0000-0000-000000000000",
4
+ "version": "7",
5
+ "dialect": "postgresql",
6
+ "tables": {
7
+ "coder.agent": {
8
+ "name": "agent",
9
+ "schema": "coder",
10
+ "columns": {
11
+ "id": {
12
+ "name": "id",
13
+ "type": "bigserial",
14
+ "primaryKey": true,
15
+ "notNull": true
16
+ },
17
+ "organization_id": {
18
+ "name": "organization_id",
19
+ "type": "text",
20
+ "primaryKey": false,
21
+ "notNull": true
22
+ },
23
+ "slug": {
24
+ "name": "slug",
25
+ "type": "text",
26
+ "primaryKey": false,
27
+ "notNull": true
28
+ },
29
+ "name": {
30
+ "name": "name",
31
+ "type": "text",
32
+ "primaryKey": false,
33
+ "notNull": true
34
+ },
35
+ "description": {
36
+ "name": "description",
37
+ "type": "text",
38
+ "primaryKey": false,
39
+ "notNull": false
40
+ },
41
+ "source": {
42
+ "name": "source",
43
+ "type": "text",
44
+ "primaryKey": false,
45
+ "notNull": true
46
+ },
47
+ "repo": {
48
+ "name": "repo",
49
+ "type": "text",
50
+ "primaryKey": false,
51
+ "notNull": false
52
+ },
53
+ "path": {
54
+ "name": "path",
55
+ "type": "text",
56
+ "primaryKey": false,
57
+ "notNull": false
58
+ },
59
+ "current_version": {
60
+ "name": "current_version",
61
+ "type": "integer",
62
+ "primaryKey": false,
63
+ "notNull": true
64
+ },
65
+ "settings": {
66
+ "name": "settings",
67
+ "type": "jsonb",
68
+ "primaryKey": false,
69
+ "notNull": false
70
+ },
71
+ "created_at": {
72
+ "name": "created_at",
73
+ "type": "timestamp with time zone",
74
+ "primaryKey": false,
75
+ "notNull": true,
76
+ "default": "now()"
77
+ },
78
+ "updated_at": {
79
+ "name": "updated_at",
80
+ "type": "timestamp with time zone",
81
+ "primaryKey": false,
82
+ "notNull": true,
83
+ "default": "now()"
84
+ }
85
+ },
86
+ "indexes": {},
87
+ "foreignKeys": {},
88
+ "compositePrimaryKeys": {},
89
+ "uniqueConstraints": {
90
+ "agent_organizationId_slug_unique": {
91
+ "name": "agent_organizationId_slug_unique",
92
+ "nullsNotDistinct": false,
93
+ "columns": [
94
+ "organization_id",
95
+ "slug"
96
+ ]
97
+ }
98
+ },
99
+ "policies": {},
100
+ "checkConstraints": {},
101
+ "isRLSEnabled": false
102
+ },
103
+ "coder.agent_version": {
104
+ "name": "agent_version",
105
+ "schema": "coder",
106
+ "columns": {
107
+ "id": {
108
+ "name": "id",
109
+ "type": "bigserial",
110
+ "primaryKey": true,
111
+ "notNull": true
112
+ },
113
+ "agent_id": {
114
+ "name": "agent_id",
115
+ "type": "bigint",
116
+ "primaryKey": false,
117
+ "notNull": true
118
+ },
119
+ "version": {
120
+ "name": "version",
121
+ "type": "integer",
122
+ "primaryKey": false,
123
+ "notNull": true
124
+ },
125
+ "definition": {
126
+ "name": "definition",
127
+ "type": "jsonb",
128
+ "primaryKey": false,
129
+ "notNull": true
130
+ },
131
+ "system_prompt": {
132
+ "name": "system_prompt",
133
+ "type": "text",
134
+ "primaryKey": false,
135
+ "notNull": true
136
+ },
137
+ "files": {
138
+ "name": "files",
139
+ "type": "jsonb",
140
+ "primaryKey": false,
141
+ "notNull": false
142
+ },
143
+ "commit": {
144
+ "name": "commit",
145
+ "type": "text",
146
+ "primaryKey": false,
147
+ "notNull": false
148
+ },
149
+ "imported_from": {
150
+ "name": "imported_from",
151
+ "type": "text",
152
+ "primaryKey": false,
153
+ "notNull": true
154
+ },
155
+ "created_at": {
156
+ "name": "created_at",
157
+ "type": "timestamp with time zone",
158
+ "primaryKey": false,
159
+ "notNull": true,
160
+ "default": "now()"
161
+ }
162
+ },
163
+ "indexes": {},
164
+ "foreignKeys": {
165
+ "agent_version_agent_id_agent_id_fk": {
166
+ "name": "agent_version_agent_id_agent_id_fk",
167
+ "tableFrom": "agent_version",
168
+ "tableTo": "agent",
169
+ "schemaTo": "coder",
170
+ "columnsFrom": [
171
+ "agent_id"
172
+ ],
173
+ "columnsTo": [
174
+ "id"
175
+ ],
176
+ "onDelete": "no action",
177
+ "onUpdate": "no action"
178
+ }
179
+ },
180
+ "compositePrimaryKeys": {},
181
+ "uniqueConstraints": {
182
+ "agent_version_agentId_version_unique": {
183
+ "name": "agent_version_agentId_version_unique",
184
+ "nullsNotDistinct": false,
185
+ "columns": [
186
+ "agent_id",
187
+ "version"
188
+ ]
189
+ }
190
+ },
191
+ "policies": {},
192
+ "checkConstraints": {},
193
+ "isRLSEnabled": false
194
+ },
195
+ "coder.chat_item": {
196
+ "name": "chat_item",
197
+ "schema": "coder",
198
+ "columns": {
199
+ "key": {
200
+ "name": "key",
201
+ "type": "text",
202
+ "primaryKey": false,
203
+ "notNull": true
204
+ },
205
+ "seq": {
206
+ "name": "seq",
207
+ "type": "bigint",
208
+ "primaryKey": false,
209
+ "notNull": true,
210
+ "identity": {
211
+ "type": "always",
212
+ "name": "chat_item_seq_seq",
213
+ "schema": "coder",
214
+ "increment": "1",
215
+ "startWith": "1",
216
+ "minValue": "1",
217
+ "maxValue": "9223372036854775807",
218
+ "cache": "1",
219
+ "cycle": false
220
+ }
221
+ },
222
+ "value": {
223
+ "name": "value",
224
+ "type": "jsonb",
225
+ "primaryKey": false,
226
+ "notNull": true
227
+ },
228
+ "expires_at": {
229
+ "name": "expires_at",
230
+ "type": "timestamp with time zone",
231
+ "primaryKey": false,
232
+ "notNull": false
233
+ }
234
+ },
235
+ "indexes": {
236
+ "chat_item_expires_at_index": {
237
+ "name": "chat_item_expires_at_index",
238
+ "columns": [
239
+ {
240
+ "expression": "expires_at",
241
+ "isExpression": false,
242
+ "asc": true,
243
+ "nulls": "last"
244
+ }
245
+ ],
246
+ "isUnique": false,
247
+ "where": "\"coder\".\"chat_item\".\"expires_at\" is not null",
248
+ "concurrently": false,
249
+ "method": "btree",
250
+ "with": {}
251
+ }
252
+ },
253
+ "foreignKeys": {},
254
+ "compositePrimaryKeys": {
255
+ "chat_item_key_seq_pk": {
256
+ "name": "chat_item_key_seq_pk",
257
+ "columns": [
258
+ "key",
259
+ "seq"
260
+ ]
261
+ }
262
+ },
263
+ "uniqueConstraints": {},
264
+ "policies": {},
265
+ "checkConstraints": {},
266
+ "isRLSEnabled": false
267
+ },
268
+ "coder.chat_state": {
269
+ "name": "chat_state",
270
+ "schema": "coder",
271
+ "columns": {
272
+ "key": {
273
+ "name": "key",
274
+ "type": "text",
275
+ "primaryKey": true,
276
+ "notNull": true
277
+ },
278
+ "value": {
279
+ "name": "value",
280
+ "type": "jsonb",
281
+ "primaryKey": false,
282
+ "notNull": true
283
+ },
284
+ "expires_at": {
285
+ "name": "expires_at",
286
+ "type": "timestamp with time zone",
287
+ "primaryKey": false,
288
+ "notNull": false
289
+ }
290
+ },
291
+ "indexes": {
292
+ "chat_state_expires_at_index": {
293
+ "name": "chat_state_expires_at_index",
294
+ "columns": [
295
+ {
296
+ "expression": "expires_at",
297
+ "isExpression": false,
298
+ "asc": true,
299
+ "nulls": "last"
300
+ }
301
+ ],
302
+ "isUnique": false,
303
+ "where": "\"coder\".\"chat_state\".\"expires_at\" is not null",
304
+ "concurrently": false,
305
+ "method": "btree",
306
+ "with": {}
307
+ }
308
+ },
309
+ "foreignKeys": {},
310
+ "compositePrimaryKeys": {},
311
+ "uniqueConstraints": {},
312
+ "policies": {},
313
+ "checkConstraints": {},
314
+ "isRLSEnabled": false
315
+ },
316
+ "coder.engine_credential": {
317
+ "name": "engine_credential",
318
+ "schema": "coder",
319
+ "columns": {
320
+ "id": {
321
+ "name": "id",
322
+ "type": "bigserial",
323
+ "primaryKey": true,
324
+ "notNull": true
325
+ },
326
+ "organization_id": {
327
+ "name": "organization_id",
328
+ "type": "text",
329
+ "primaryKey": false,
330
+ "notNull": true
331
+ },
332
+ "secret_id": {
333
+ "name": "secret_id",
334
+ "type": "bigint",
335
+ "primaryKey": false,
336
+ "notNull": true
337
+ },
338
+ "owner": {
339
+ "name": "owner",
340
+ "type": "text",
341
+ "primaryKey": false,
342
+ "notNull": false
343
+ },
344
+ "engine": {
345
+ "name": "engine",
346
+ "type": "text",
347
+ "primaryKey": false,
348
+ "notNull": true
349
+ },
350
+ "label": {
351
+ "name": "label",
352
+ "type": "text",
353
+ "primaryKey": false,
354
+ "notNull": true
355
+ },
356
+ "is_default": {
357
+ "name": "is_default",
358
+ "type": "boolean",
359
+ "primaryKey": false,
360
+ "notNull": true,
361
+ "default": false
362
+ },
363
+ "account": {
364
+ "name": "account",
365
+ "type": "jsonb",
366
+ "primaryKey": false,
367
+ "notNull": false
368
+ },
369
+ "created_at": {
370
+ "name": "created_at",
371
+ "type": "timestamp with time zone",
372
+ "primaryKey": false,
373
+ "notNull": true,
374
+ "default": "now()"
375
+ },
376
+ "updated_at": {
377
+ "name": "updated_at",
378
+ "type": "timestamp with time zone",
379
+ "primaryKey": false,
380
+ "notNull": true,
381
+ "default": "now()"
382
+ }
383
+ },
384
+ "indexes": {},
385
+ "foreignKeys": {
386
+ "engine_credential_secret_id_secret_id_fk": {
387
+ "name": "engine_credential_secret_id_secret_id_fk",
388
+ "tableFrom": "engine_credential",
389
+ "tableTo": "secret",
390
+ "schemaTo": "coder",
391
+ "columnsFrom": [
392
+ "secret_id"
393
+ ],
394
+ "columnsTo": [
395
+ "id"
396
+ ],
397
+ "onDelete": "no action",
398
+ "onUpdate": "no action"
399
+ }
400
+ },
401
+ "compositePrimaryKeys": {},
402
+ "uniqueConstraints": {
403
+ "engine_credential_secretId_unique": {
404
+ "name": "engine_credential_secretId_unique",
405
+ "nullsNotDistinct": false,
406
+ "columns": [
407
+ "secret_id"
408
+ ]
409
+ },
410
+ "engine_credential_organizationId_owner_label_unique": {
411
+ "name": "engine_credential_organizationId_owner_label_unique",
412
+ "nullsNotDistinct": true,
413
+ "columns": [
414
+ "organization_id",
415
+ "owner",
416
+ "label"
417
+ ]
418
+ }
419
+ },
420
+ "policies": {},
421
+ "checkConstraints": {},
422
+ "isRLSEnabled": false
423
+ },
424
+ "coder.integration_app": {
425
+ "name": "integration_app",
426
+ "schema": "coder",
427
+ "columns": {
428
+ "id": {
429
+ "name": "id",
430
+ "type": "bigserial",
431
+ "primaryKey": true,
432
+ "notNull": true
433
+ },
434
+ "organization_id": {
435
+ "name": "organization_id",
436
+ "type": "text",
437
+ "primaryKey": false,
438
+ "notNull": true
439
+ },
440
+ "key": {
441
+ "name": "key",
442
+ "type": "text",
443
+ "primaryKey": false,
444
+ "notNull": true
445
+ },
446
+ "integration": {
447
+ "name": "integration",
448
+ "type": "text",
449
+ "primaryKey": false,
450
+ "notNull": true
451
+ },
452
+ "platform_app_id": {
453
+ "name": "platform_app_id",
454
+ "type": "text",
455
+ "primaryKey": false,
456
+ "notNull": true
457
+ },
458
+ "agent": {
459
+ "name": "agent",
460
+ "type": "text",
461
+ "primaryKey": false,
462
+ "notNull": true
463
+ },
464
+ "name": {
465
+ "name": "name",
466
+ "type": "text",
467
+ "primaryKey": false,
468
+ "notNull": true
469
+ },
470
+ "agents_repo": {
471
+ "name": "agents_repo",
472
+ "type": "text",
473
+ "primaryKey": false,
474
+ "notNull": false
475
+ },
476
+ "branch": {
477
+ "name": "branch",
478
+ "type": "text",
479
+ "primaryKey": false,
480
+ "notNull": false
481
+ },
482
+ "credentials_secret_id": {
483
+ "name": "credentials_secret_id",
484
+ "type": "bigint",
485
+ "primaryKey": false,
486
+ "notNull": true
487
+ },
488
+ "created_at": {
489
+ "name": "created_at",
490
+ "type": "timestamp with time zone",
491
+ "primaryKey": false,
492
+ "notNull": true,
493
+ "default": "now()"
494
+ },
495
+ "updated_at": {
496
+ "name": "updated_at",
497
+ "type": "timestamp with time zone",
498
+ "primaryKey": false,
499
+ "notNull": true,
500
+ "default": "now()"
501
+ }
502
+ },
503
+ "indexes": {},
504
+ "foreignKeys": {
505
+ "integration_app_credentials_secret_id_secret_id_fk": {
506
+ "name": "integration_app_credentials_secret_id_secret_id_fk",
507
+ "tableFrom": "integration_app",
508
+ "tableTo": "secret",
509
+ "schemaTo": "coder",
510
+ "columnsFrom": [
511
+ "credentials_secret_id"
512
+ ],
513
+ "columnsTo": [
514
+ "id"
515
+ ],
516
+ "onDelete": "no action",
517
+ "onUpdate": "no action"
518
+ }
519
+ },
520
+ "compositePrimaryKeys": {},
521
+ "uniqueConstraints": {
522
+ "integration_app_organizationId_key_unique": {
523
+ "name": "integration_app_organizationId_key_unique",
524
+ "nullsNotDistinct": false,
525
+ "columns": [
526
+ "organization_id",
527
+ "key"
528
+ ]
529
+ },
530
+ "integration_app_integration_platformAppId_unique": {
531
+ "name": "integration_app_integration_platformAppId_unique",
532
+ "nullsNotDistinct": false,
533
+ "columns": [
534
+ "integration",
535
+ "platform_app_id"
536
+ ]
537
+ }
538
+ },
539
+ "policies": {},
540
+ "checkConstraints": {},
541
+ "isRLSEnabled": false
542
+ },
543
+ "coder.integration_app_installation": {
544
+ "name": "integration_app_installation",
545
+ "schema": "coder",
546
+ "columns": {
547
+ "id": {
548
+ "name": "id",
549
+ "type": "bigserial",
550
+ "primaryKey": true,
551
+ "notNull": true
552
+ },
553
+ "organization_id": {
554
+ "name": "organization_id",
555
+ "type": "text",
556
+ "primaryKey": false,
557
+ "notNull": true
558
+ },
559
+ "key": {
560
+ "name": "key",
561
+ "type": "text",
562
+ "primaryKey": false,
563
+ "notNull": true
564
+ },
565
+ "app_id": {
566
+ "name": "app_id",
567
+ "type": "bigint",
568
+ "primaryKey": false,
569
+ "notNull": true
570
+ },
571
+ "platform_install_id": {
572
+ "name": "platform_install_id",
573
+ "type": "text",
574
+ "primaryKey": false,
575
+ "notNull": true
576
+ },
577
+ "account": {
578
+ "name": "account",
579
+ "type": "jsonb",
580
+ "primaryKey": false,
581
+ "notNull": true
582
+ },
583
+ "token_secret_id": {
584
+ "name": "token_secret_id",
585
+ "type": "bigint",
586
+ "primaryKey": false,
587
+ "notNull": false
588
+ },
589
+ "installer": {
590
+ "name": "installer",
591
+ "type": "text",
592
+ "primaryKey": false,
593
+ "notNull": false
594
+ },
595
+ "connections": {
596
+ "name": "connections",
597
+ "type": "jsonb",
598
+ "primaryKey": false,
599
+ "notNull": false
600
+ },
601
+ "settings": {
602
+ "name": "settings",
603
+ "type": "jsonb",
604
+ "primaryKey": false,
605
+ "notNull": false
606
+ },
607
+ "created_at": {
608
+ "name": "created_at",
609
+ "type": "timestamp with time zone",
610
+ "primaryKey": false,
611
+ "notNull": true,
612
+ "default": "now()"
613
+ },
614
+ "updated_at": {
615
+ "name": "updated_at",
616
+ "type": "timestamp with time zone",
617
+ "primaryKey": false,
618
+ "notNull": true,
619
+ "default": "now()"
620
+ },
621
+ "deleted_at": {
622
+ "name": "deleted_at",
623
+ "type": "timestamp with time zone",
624
+ "primaryKey": false,
625
+ "notNull": false
626
+ }
627
+ },
628
+ "indexes": {
629
+ "integration_app_installation_organization_id_app_id_index": {
630
+ "name": "integration_app_installation_organization_id_app_id_index",
631
+ "columns": [
632
+ {
633
+ "expression": "organization_id",
634
+ "isExpression": false,
635
+ "asc": true,
636
+ "nulls": "last"
637
+ },
638
+ {
639
+ "expression": "app_id",
640
+ "isExpression": false,
641
+ "asc": true,
642
+ "nulls": "last"
643
+ }
644
+ ],
645
+ "isUnique": false,
646
+ "concurrently": false,
647
+ "method": "btree",
648
+ "with": {}
649
+ }
650
+ },
651
+ "foreignKeys": {
652
+ "integration_app_installation_app_id_integration_app_id_fk": {
653
+ "name": "integration_app_installation_app_id_integration_app_id_fk",
654
+ "tableFrom": "integration_app_installation",
655
+ "tableTo": "integration_app",
656
+ "schemaTo": "coder",
657
+ "columnsFrom": [
658
+ "app_id"
659
+ ],
660
+ "columnsTo": [
661
+ "id"
662
+ ],
663
+ "onDelete": "no action",
664
+ "onUpdate": "no action"
665
+ },
666
+ "integration_app_installation_token_secret_id_secret_id_fk": {
667
+ "name": "integration_app_installation_token_secret_id_secret_id_fk",
668
+ "tableFrom": "integration_app_installation",
669
+ "tableTo": "secret",
670
+ "schemaTo": "coder",
671
+ "columnsFrom": [
672
+ "token_secret_id"
673
+ ],
674
+ "columnsTo": [
675
+ "id"
676
+ ],
677
+ "onDelete": "no action",
678
+ "onUpdate": "no action"
679
+ }
680
+ },
681
+ "compositePrimaryKeys": {},
682
+ "uniqueConstraints": {
683
+ "integration_app_installation_key_unique": {
684
+ "name": "integration_app_installation_key_unique",
685
+ "nullsNotDistinct": false,
686
+ "columns": [
687
+ "key"
688
+ ]
689
+ }
690
+ },
691
+ "policies": {},
692
+ "checkConstraints": {},
693
+ "isRLSEnabled": false
694
+ },
695
+ "coder.platform_link": {
696
+ "name": "platform_link",
697
+ "schema": "coder",
698
+ "columns": {
699
+ "id": {
700
+ "name": "id",
701
+ "type": "bigserial",
702
+ "primaryKey": true,
703
+ "notNull": true
704
+ },
705
+ "platform": {
706
+ "name": "platform",
707
+ "type": "text",
708
+ "primaryKey": false,
709
+ "notNull": true
710
+ },
711
+ "platform_user_id": {
712
+ "name": "platform_user_id",
713
+ "type": "text",
714
+ "primaryKey": false,
715
+ "notNull": true
716
+ },
717
+ "user_id": {
718
+ "name": "user_id",
719
+ "type": "text",
720
+ "primaryKey": false,
721
+ "notNull": true
722
+ },
723
+ "name": {
724
+ "name": "name",
725
+ "type": "text",
726
+ "primaryKey": false,
727
+ "notNull": true
728
+ },
729
+ "email": {
730
+ "name": "email",
731
+ "type": "text",
732
+ "primaryKey": false,
733
+ "notNull": true
734
+ },
735
+ "organizations": {
736
+ "name": "organizations",
737
+ "type": "jsonb",
738
+ "primaryKey": false,
739
+ "notNull": false
740
+ },
741
+ "token": {
742
+ "name": "token",
743
+ "type": "text",
744
+ "primaryKey": false,
745
+ "notNull": false
746
+ },
747
+ "created_at": {
748
+ "name": "created_at",
749
+ "type": "timestamp with time zone",
750
+ "primaryKey": false,
751
+ "notNull": true,
752
+ "default": "now()"
753
+ }
754
+ },
755
+ "indexes": {
756
+ "platform_link_user_id_index": {
757
+ "name": "platform_link_user_id_index",
758
+ "columns": [
759
+ {
760
+ "expression": "user_id",
761
+ "isExpression": false,
762
+ "asc": true,
763
+ "nulls": "last"
764
+ }
765
+ ],
766
+ "isUnique": false,
767
+ "concurrently": false,
768
+ "method": "btree",
769
+ "with": {}
770
+ }
771
+ },
772
+ "foreignKeys": {},
773
+ "compositePrimaryKeys": {},
774
+ "uniqueConstraints": {
775
+ "platform_link_platform_platformUserId_unique": {
776
+ "name": "platform_link_platform_platformUserId_unique",
777
+ "nullsNotDistinct": false,
778
+ "columns": [
779
+ "platform",
780
+ "platform_user_id"
781
+ ]
782
+ }
783
+ },
784
+ "policies": {},
785
+ "checkConstraints": {},
786
+ "isRLSEnabled": false
787
+ },
788
+ "coder.runner": {
789
+ "name": "runner",
790
+ "schema": "coder",
791
+ "columns": {
792
+ "id": {
793
+ "name": "id",
794
+ "type": "bigserial",
795
+ "primaryKey": true,
796
+ "notNull": true
797
+ },
798
+ "organization_id": {
799
+ "name": "organization_id",
800
+ "type": "text",
801
+ "primaryKey": false,
802
+ "notNull": true
803
+ },
804
+ "public_id": {
805
+ "name": "public_id",
806
+ "type": "text",
807
+ "primaryKey": false,
808
+ "notNull": true
809
+ },
810
+ "owner": {
811
+ "name": "owner",
812
+ "type": "text",
813
+ "primaryKey": false,
814
+ "notNull": false
815
+ },
816
+ "name": {
817
+ "name": "name",
818
+ "type": "text",
819
+ "primaryKey": false,
820
+ "notNull": true
821
+ },
822
+ "kind": {
823
+ "name": "kind",
824
+ "type": "text",
825
+ "primaryKey": false,
826
+ "notNull": true
827
+ },
828
+ "scope": {
829
+ "name": "scope",
830
+ "type": "text",
831
+ "primaryKey": false,
832
+ "notNull": true
833
+ },
834
+ "config": {
835
+ "name": "config",
836
+ "type": "jsonb",
837
+ "primaryKey": false,
838
+ "notNull": true
839
+ },
840
+ "created_by": {
841
+ "name": "created_by",
842
+ "type": "text",
843
+ "primaryKey": false,
844
+ "notNull": false
845
+ },
846
+ "is_default": {
847
+ "name": "is_default",
848
+ "type": "boolean",
849
+ "primaryKey": false,
850
+ "notNull": true,
851
+ "default": false
852
+ },
853
+ "last_seen": {
854
+ "name": "last_seen",
855
+ "type": "timestamp with time zone",
856
+ "primaryKey": false,
857
+ "notNull": false
858
+ },
859
+ "secret_id": {
860
+ "name": "secret_id",
861
+ "type": "bigint",
862
+ "primaryKey": false,
863
+ "notNull": true
864
+ },
865
+ "created_at": {
866
+ "name": "created_at",
867
+ "type": "timestamp with time zone",
868
+ "primaryKey": false,
869
+ "notNull": true,
870
+ "default": "now()"
871
+ },
872
+ "updated_at": {
873
+ "name": "updated_at",
874
+ "type": "timestamp with time zone",
875
+ "primaryKey": false,
876
+ "notNull": true,
877
+ "default": "now()"
878
+ }
879
+ },
880
+ "indexes": {},
881
+ "foreignKeys": {
882
+ "runner_secret_id_secret_id_fk": {
883
+ "name": "runner_secret_id_secret_id_fk",
884
+ "tableFrom": "runner",
885
+ "tableTo": "secret",
886
+ "schemaTo": "coder",
887
+ "columnsFrom": [
888
+ "secret_id"
889
+ ],
890
+ "columnsTo": [
891
+ "id"
892
+ ],
893
+ "onDelete": "no action",
894
+ "onUpdate": "no action"
895
+ }
896
+ },
897
+ "compositePrimaryKeys": {},
898
+ "uniqueConstraints": {
899
+ "runner_organizationId_publicId_unique": {
900
+ "name": "runner_organizationId_publicId_unique",
901
+ "nullsNotDistinct": false,
902
+ "columns": [
903
+ "organization_id",
904
+ "public_id"
905
+ ]
906
+ }
907
+ },
908
+ "policies": {},
909
+ "checkConstraints": {},
910
+ "isRLSEnabled": false
911
+ },
912
+ "coder.secret": {
913
+ "name": "secret",
914
+ "schema": "coder",
915
+ "columns": {
916
+ "id": {
917
+ "name": "id",
918
+ "type": "bigserial",
919
+ "primaryKey": true,
920
+ "notNull": true
921
+ },
922
+ "organization_id": {
923
+ "name": "organization_id",
924
+ "type": "text",
925
+ "primaryKey": false,
926
+ "notNull": true
927
+ },
928
+ "kind": {
929
+ "name": "kind",
930
+ "type": "text",
931
+ "primaryKey": false,
932
+ "notNull": true
933
+ },
934
+ "iv": {
935
+ "name": "iv",
936
+ "type": "text",
937
+ "primaryKey": false,
938
+ "notNull": true
939
+ },
940
+ "tag": {
941
+ "name": "tag",
942
+ "type": "text",
943
+ "primaryKey": false,
944
+ "notNull": true
945
+ },
946
+ "ciphertext": {
947
+ "name": "ciphertext",
948
+ "type": "text",
949
+ "primaryKey": false,
950
+ "notNull": true
951
+ },
952
+ "key_version": {
953
+ "name": "key_version",
954
+ "type": "integer",
955
+ "primaryKey": false,
956
+ "notNull": true
957
+ },
958
+ "created_at": {
959
+ "name": "created_at",
960
+ "type": "timestamp with time zone",
961
+ "primaryKey": false,
962
+ "notNull": true,
963
+ "default": "now()"
964
+ },
965
+ "updated_at": {
966
+ "name": "updated_at",
967
+ "type": "timestamp with time zone",
968
+ "primaryKey": false,
969
+ "notNull": true,
970
+ "default": "now()"
971
+ }
972
+ },
973
+ "indexes": {
974
+ "secret_organization_id_kind_index": {
975
+ "name": "secret_organization_id_kind_index",
976
+ "columns": [
977
+ {
978
+ "expression": "organization_id",
979
+ "isExpression": false,
980
+ "asc": true,
981
+ "nulls": "last"
982
+ },
983
+ {
984
+ "expression": "kind",
985
+ "isExpression": false,
986
+ "asc": true,
987
+ "nulls": "last"
988
+ }
989
+ ],
990
+ "isUnique": false,
991
+ "concurrently": false,
992
+ "method": "btree",
993
+ "with": {}
994
+ }
995
+ },
996
+ "foreignKeys": {},
997
+ "compositePrimaryKeys": {},
998
+ "uniqueConstraints": {},
999
+ "policies": {},
1000
+ "checkConstraints": {},
1001
+ "isRLSEnabled": false
1002
+ },
1003
+ "coder.task": {
1004
+ "name": "task",
1005
+ "schema": "coder",
1006
+ "columns": {
1007
+ "id": {
1008
+ "name": "id",
1009
+ "type": "bigserial",
1010
+ "primaryKey": true,
1011
+ "notNull": true
1012
+ },
1013
+ "organization_id": {
1014
+ "name": "organization_id",
1015
+ "type": "text",
1016
+ "primaryKey": false,
1017
+ "notNull": true
1018
+ },
1019
+ "public_id": {
1020
+ "name": "public_id",
1021
+ "type": "text",
1022
+ "primaryKey": false,
1023
+ "notNull": true
1024
+ },
1025
+ "source": {
1026
+ "name": "source",
1027
+ "type": "text",
1028
+ "primaryKey": false,
1029
+ "notNull": true
1030
+ },
1031
+ "status": {
1032
+ "name": "status",
1033
+ "type": "text",
1034
+ "primaryKey": false,
1035
+ "notNull": true
1036
+ },
1037
+ "agent": {
1038
+ "name": "agent",
1039
+ "type": "text",
1040
+ "primaryKey": false,
1041
+ "notNull": true
1042
+ },
1043
+ "flow": {
1044
+ "name": "flow",
1045
+ "type": "text",
1046
+ "primaryKey": false,
1047
+ "notNull": true
1048
+ },
1049
+ "runner": {
1050
+ "name": "runner",
1051
+ "type": "text",
1052
+ "primaryKey": false,
1053
+ "notNull": true
1054
+ },
1055
+ "permissions": {
1056
+ "name": "permissions",
1057
+ "type": "text",
1058
+ "primaryKey": false,
1059
+ "notNull": false
1060
+ },
1061
+ "app_id": {
1062
+ "name": "app_id",
1063
+ "type": "bigint",
1064
+ "primaryKey": false,
1065
+ "notNull": false
1066
+ },
1067
+ "installation_id": {
1068
+ "name": "installation_id",
1069
+ "type": "bigint",
1070
+ "primaryKey": false,
1071
+ "notNull": false
1072
+ },
1073
+ "event": {
1074
+ "name": "event",
1075
+ "type": "jsonb",
1076
+ "primaryKey": false,
1077
+ "notNull": false
1078
+ },
1079
+ "prompt": {
1080
+ "name": "prompt",
1081
+ "type": "text",
1082
+ "primaryKey": false,
1083
+ "notNull": false
1084
+ },
1085
+ "args": {
1086
+ "name": "args",
1087
+ "type": "jsonb",
1088
+ "primaryKey": false,
1089
+ "notNull": false
1090
+ },
1091
+ "mcp": {
1092
+ "name": "mcp",
1093
+ "type": "jsonb",
1094
+ "primaryKey": false,
1095
+ "notNull": false
1096
+ },
1097
+ "author": {
1098
+ "name": "author",
1099
+ "type": "text",
1100
+ "primaryKey": false,
1101
+ "notNull": false
1102
+ },
1103
+ "definition": {
1104
+ "name": "definition",
1105
+ "type": "jsonb",
1106
+ "primaryKey": false,
1107
+ "notNull": true
1108
+ },
1109
+ "credential": {
1110
+ "name": "credential",
1111
+ "type": "text",
1112
+ "primaryKey": false,
1113
+ "notNull": false
1114
+ },
1115
+ "requester": {
1116
+ "name": "requester",
1117
+ "type": "text",
1118
+ "primaryKey": false,
1119
+ "notNull": false
1120
+ },
1121
+ "runner_id": {
1122
+ "name": "runner_id",
1123
+ "type": "text",
1124
+ "primaryKey": false,
1125
+ "notNull": false
1126
+ },
1127
+ "usage": {
1128
+ "name": "usage",
1129
+ "type": "jsonb",
1130
+ "primaryKey": false,
1131
+ "notNull": false
1132
+ },
1133
+ "tools": {
1134
+ "name": "tools",
1135
+ "type": "jsonb",
1136
+ "primaryKey": false,
1137
+ "notNull": true
1138
+ },
1139
+ "tool_scopes": {
1140
+ "name": "tool_scopes",
1141
+ "type": "jsonb",
1142
+ "primaryKey": false,
1143
+ "notNull": false
1144
+ },
1145
+ "context": {
1146
+ "name": "context",
1147
+ "type": "jsonb",
1148
+ "primaryKey": false,
1149
+ "notNull": false
1150
+ },
1151
+ "files": {
1152
+ "name": "files",
1153
+ "type": "jsonb",
1154
+ "primaryKey": false,
1155
+ "notNull": false
1156
+ },
1157
+ "result": {
1158
+ "name": "result",
1159
+ "type": "jsonb",
1160
+ "primaryKey": false,
1161
+ "notNull": false
1162
+ },
1163
+ "error": {
1164
+ "name": "error",
1165
+ "type": "text",
1166
+ "primaryKey": false,
1167
+ "notNull": false
1168
+ },
1169
+ "tokens": {
1170
+ "name": "tokens",
1171
+ "type": "jsonb",
1172
+ "primaryKey": false,
1173
+ "notNull": false
1174
+ },
1175
+ "handle": {
1176
+ "name": "handle",
1177
+ "type": "text",
1178
+ "primaryKey": false,
1179
+ "notNull": false
1180
+ },
1181
+ "token_hash": {
1182
+ "name": "token_hash",
1183
+ "type": "text",
1184
+ "primaryKey": false,
1185
+ "notNull": false
1186
+ },
1187
+ "last_seen_at": {
1188
+ "name": "last_seen_at",
1189
+ "type": "timestamp with time zone",
1190
+ "primaryKey": false,
1191
+ "notNull": false
1192
+ },
1193
+ "log_cursor": {
1194
+ "name": "log_cursor",
1195
+ "type": "integer",
1196
+ "primaryKey": false,
1197
+ "notNull": false
1198
+ },
1199
+ "log_seq": {
1200
+ "name": "log_seq",
1201
+ "type": "integer",
1202
+ "primaryKey": false,
1203
+ "notNull": false
1204
+ },
1205
+ "log_bytes": {
1206
+ "name": "log_bytes",
1207
+ "type": "integer",
1208
+ "primaryKey": false,
1209
+ "notNull": false
1210
+ },
1211
+ "archived_at": {
1212
+ "name": "archived_at",
1213
+ "type": "timestamp with time zone",
1214
+ "primaryKey": false,
1215
+ "notNull": false
1216
+ },
1217
+ "approval": {
1218
+ "name": "approval",
1219
+ "type": "jsonb",
1220
+ "primaryKey": false,
1221
+ "notNull": false
1222
+ },
1223
+ "answer": {
1224
+ "name": "answer",
1225
+ "type": "jsonb",
1226
+ "primaryKey": false,
1227
+ "notNull": false
1228
+ },
1229
+ "attempts": {
1230
+ "name": "attempts",
1231
+ "type": "integer",
1232
+ "primaryKey": false,
1233
+ "notNull": true,
1234
+ "default": 0
1235
+ },
1236
+ "inbox_seq": {
1237
+ "name": "inbox_seq",
1238
+ "type": "integer",
1239
+ "primaryKey": false,
1240
+ "notNull": true,
1241
+ "default": -1
1242
+ },
1243
+ "inbox_ack": {
1244
+ "name": "inbox_ack",
1245
+ "type": "integer",
1246
+ "primaryKey": false,
1247
+ "notNull": true,
1248
+ "default": -1
1249
+ },
1250
+ "generation": {
1251
+ "name": "generation",
1252
+ "type": "integer",
1253
+ "primaryKey": false,
1254
+ "notNull": true,
1255
+ "default": 0
1256
+ },
1257
+ "locked_at": {
1258
+ "name": "locked_at",
1259
+ "type": "timestamp with time zone",
1260
+ "primaryKey": false,
1261
+ "notNull": false
1262
+ },
1263
+ "started_at": {
1264
+ "name": "started_at",
1265
+ "type": "timestamp with time zone",
1266
+ "primaryKey": false,
1267
+ "notNull": false
1268
+ },
1269
+ "finished_at": {
1270
+ "name": "finished_at",
1271
+ "type": "timestamp with time zone",
1272
+ "primaryKey": false,
1273
+ "notNull": false
1274
+ },
1275
+ "cancel_requested_at": {
1276
+ "name": "cancel_requested_at",
1277
+ "type": "timestamp with time zone",
1278
+ "primaryKey": false,
1279
+ "notNull": false
1280
+ },
1281
+ "created_at": {
1282
+ "name": "created_at",
1283
+ "type": "timestamp with time zone",
1284
+ "primaryKey": false,
1285
+ "notNull": true,
1286
+ "default": "now()"
1287
+ },
1288
+ "updated_at": {
1289
+ "name": "updated_at",
1290
+ "type": "timestamp with time zone",
1291
+ "primaryKey": false,
1292
+ "notNull": true,
1293
+ "default": "now()"
1294
+ }
1295
+ },
1296
+ "indexes": {
1297
+ "task_public_id_index": {
1298
+ "name": "task_public_id_index",
1299
+ "columns": [
1300
+ {
1301
+ "expression": "public_id",
1302
+ "isExpression": false,
1303
+ "asc": true,
1304
+ "nulls": "last"
1305
+ }
1306
+ ],
1307
+ "isUnique": false,
1308
+ "concurrently": false,
1309
+ "method": "btree",
1310
+ "with": {}
1311
+ },
1312
+ "task_organization_id_created_at_public_id_index": {
1313
+ "name": "task_organization_id_created_at_public_id_index",
1314
+ "columns": [
1315
+ {
1316
+ "expression": "organization_id",
1317
+ "isExpression": false,
1318
+ "asc": true,
1319
+ "nulls": "last"
1320
+ },
1321
+ {
1322
+ "expression": "created_at",
1323
+ "isExpression": false,
1324
+ "asc": false,
1325
+ "nulls": "last"
1326
+ },
1327
+ {
1328
+ "expression": "public_id",
1329
+ "isExpression": false,
1330
+ "asc": false,
1331
+ "nulls": "last"
1332
+ }
1333
+ ],
1334
+ "isUnique": false,
1335
+ "concurrently": false,
1336
+ "method": "btree",
1337
+ "with": {}
1338
+ },
1339
+ "task_organization_id_index": {
1340
+ "name": "task_organization_id_index",
1341
+ "columns": [
1342
+ {
1343
+ "expression": "organization_id",
1344
+ "isExpression": false,
1345
+ "asc": true,
1346
+ "nulls": "last"
1347
+ }
1348
+ ],
1349
+ "isUnique": false,
1350
+ "where": "\"coder\".\"task\".\"status\" = 'queued'",
1351
+ "concurrently": false,
1352
+ "method": "btree",
1353
+ "with": {}
1354
+ },
1355
+ "task_status_created_at_index": {
1356
+ "name": "task_status_created_at_index",
1357
+ "columns": [
1358
+ {
1359
+ "expression": "status",
1360
+ "isExpression": false,
1361
+ "asc": true,
1362
+ "nulls": "last"
1363
+ },
1364
+ {
1365
+ "expression": "created_at",
1366
+ "isExpression": false,
1367
+ "asc": true,
1368
+ "nulls": "last"
1369
+ }
1370
+ ],
1371
+ "isUnique": false,
1372
+ "concurrently": false,
1373
+ "method": "btree",
1374
+ "with": {}
1375
+ }
1376
+ },
1377
+ "foreignKeys": {
1378
+ "task_app_id_integration_app_id_fk": {
1379
+ "name": "task_app_id_integration_app_id_fk",
1380
+ "tableFrom": "task",
1381
+ "tableTo": "integration_app",
1382
+ "schemaTo": "coder",
1383
+ "columnsFrom": [
1384
+ "app_id"
1385
+ ],
1386
+ "columnsTo": [
1387
+ "id"
1388
+ ],
1389
+ "onDelete": "no action",
1390
+ "onUpdate": "no action"
1391
+ },
1392
+ "task_installation_id_integration_app_installation_id_fk": {
1393
+ "name": "task_installation_id_integration_app_installation_id_fk",
1394
+ "tableFrom": "task",
1395
+ "tableTo": "integration_app_installation",
1396
+ "schemaTo": "coder",
1397
+ "columnsFrom": [
1398
+ "installation_id"
1399
+ ],
1400
+ "columnsTo": [
1401
+ "id"
1402
+ ],
1403
+ "onDelete": "no action",
1404
+ "onUpdate": "no action"
1405
+ }
1406
+ },
1407
+ "compositePrimaryKeys": {},
1408
+ "uniqueConstraints": {
1409
+ "task_organizationId_publicId_unique": {
1410
+ "name": "task_organizationId_publicId_unique",
1411
+ "nullsNotDistinct": false,
1412
+ "columns": [
1413
+ "organization_id",
1414
+ "public_id"
1415
+ ]
1416
+ }
1417
+ },
1418
+ "policies": {},
1419
+ "checkConstraints": {},
1420
+ "isRLSEnabled": false
1421
+ },
1422
+ "coder.task_inbox": {
1423
+ "name": "task_inbox",
1424
+ "schema": "coder",
1425
+ "columns": {
1426
+ "id": {
1427
+ "name": "id",
1428
+ "type": "bigserial",
1429
+ "primaryKey": true,
1430
+ "notNull": true
1431
+ },
1432
+ "organization_id": {
1433
+ "name": "organization_id",
1434
+ "type": "text",
1435
+ "primaryKey": false,
1436
+ "notNull": true
1437
+ },
1438
+ "task_id": {
1439
+ "name": "task_id",
1440
+ "type": "bigint",
1441
+ "primaryKey": false,
1442
+ "notNull": true
1443
+ },
1444
+ "seq": {
1445
+ "name": "seq",
1446
+ "type": "integer",
1447
+ "primaryKey": false,
1448
+ "notNull": true
1449
+ },
1450
+ "generation": {
1451
+ "name": "generation",
1452
+ "type": "integer",
1453
+ "primaryKey": false,
1454
+ "notNull": true,
1455
+ "default": 0
1456
+ },
1457
+ "kind": {
1458
+ "name": "kind",
1459
+ "type": "text",
1460
+ "primaryKey": false,
1461
+ "notNull": true
1462
+ },
1463
+ "value": {
1464
+ "name": "value",
1465
+ "type": "jsonb",
1466
+ "primaryKey": false,
1467
+ "notNull": false
1468
+ },
1469
+ "at": {
1470
+ "name": "at",
1471
+ "type": "timestamp with time zone",
1472
+ "primaryKey": false,
1473
+ "notNull": true
1474
+ }
1475
+ },
1476
+ "indexes": {
1477
+ "task_inbox_task_id_generation_seq_index": {
1478
+ "name": "task_inbox_task_id_generation_seq_index",
1479
+ "columns": [
1480
+ {
1481
+ "expression": "task_id",
1482
+ "isExpression": false,
1483
+ "asc": true,
1484
+ "nulls": "last"
1485
+ },
1486
+ {
1487
+ "expression": "generation",
1488
+ "isExpression": false,
1489
+ "asc": true,
1490
+ "nulls": "last"
1491
+ },
1492
+ {
1493
+ "expression": "seq",
1494
+ "isExpression": false,
1495
+ "asc": true,
1496
+ "nulls": "last"
1497
+ }
1498
+ ],
1499
+ "isUnique": false,
1500
+ "concurrently": false,
1501
+ "method": "btree",
1502
+ "with": {}
1503
+ }
1504
+ },
1505
+ "foreignKeys": {
1506
+ "task_inbox_task_id_task_id_fk": {
1507
+ "name": "task_inbox_task_id_task_id_fk",
1508
+ "tableFrom": "task_inbox",
1509
+ "tableTo": "task",
1510
+ "schemaTo": "coder",
1511
+ "columnsFrom": [
1512
+ "task_id"
1513
+ ],
1514
+ "columnsTo": [
1515
+ "id"
1516
+ ],
1517
+ "onDelete": "cascade",
1518
+ "onUpdate": "no action"
1519
+ }
1520
+ },
1521
+ "compositePrimaryKeys": {},
1522
+ "uniqueConstraints": {
1523
+ "task_inbox_taskId_seq_unique": {
1524
+ "name": "task_inbox_taskId_seq_unique",
1525
+ "nullsNotDistinct": false,
1526
+ "columns": [
1527
+ "task_id",
1528
+ "seq"
1529
+ ]
1530
+ }
1531
+ },
1532
+ "policies": {},
1533
+ "checkConstraints": {},
1534
+ "isRLSEnabled": false
1535
+ },
1536
+ "coder.task_log": {
1537
+ "name": "task_log",
1538
+ "schema": "coder",
1539
+ "columns": {
1540
+ "id": {
1541
+ "name": "id",
1542
+ "type": "bigserial",
1543
+ "primaryKey": true,
1544
+ "notNull": true
1545
+ },
1546
+ "organization_id": {
1547
+ "name": "organization_id",
1548
+ "type": "text",
1549
+ "primaryKey": false,
1550
+ "notNull": true
1551
+ },
1552
+ "task_id": {
1553
+ "name": "task_id",
1554
+ "type": "bigint",
1555
+ "primaryKey": false,
1556
+ "notNull": true
1557
+ },
1558
+ "seq": {
1559
+ "name": "seq",
1560
+ "type": "integer",
1561
+ "primaryKey": false,
1562
+ "notNull": true
1563
+ },
1564
+ "at": {
1565
+ "name": "at",
1566
+ "type": "timestamp with time zone",
1567
+ "primaryKey": false,
1568
+ "notNull": true
1569
+ },
1570
+ "level": {
1571
+ "name": "level",
1572
+ "type": "text",
1573
+ "primaryKey": false,
1574
+ "notNull": true
1575
+ },
1576
+ "line": {
1577
+ "name": "line",
1578
+ "type": "text",
1579
+ "primaryKey": false,
1580
+ "notNull": true
1581
+ }
1582
+ },
1583
+ "indexes": {},
1584
+ "foreignKeys": {
1585
+ "task_log_task_id_task_id_fk": {
1586
+ "name": "task_log_task_id_task_id_fk",
1587
+ "tableFrom": "task_log",
1588
+ "tableTo": "task",
1589
+ "schemaTo": "coder",
1590
+ "columnsFrom": [
1591
+ "task_id"
1592
+ ],
1593
+ "columnsTo": [
1594
+ "id"
1595
+ ],
1596
+ "onDelete": "cascade",
1597
+ "onUpdate": "no action"
1598
+ }
1599
+ },
1600
+ "compositePrimaryKeys": {},
1601
+ "uniqueConstraints": {
1602
+ "task_log_taskId_seq_unique": {
1603
+ "name": "task_log_taskId_seq_unique",
1604
+ "nullsNotDistinct": false,
1605
+ "columns": [
1606
+ "task_id",
1607
+ "seq"
1608
+ ]
1609
+ }
1610
+ },
1611
+ "policies": {},
1612
+ "checkConstraints": {},
1613
+ "isRLSEnabled": false
1614
+ },
1615
+ "coder.usage": {
1616
+ "name": "usage",
1617
+ "schema": "coder",
1618
+ "columns": {
1619
+ "id": {
1620
+ "name": "id",
1621
+ "type": "bigserial",
1622
+ "primaryKey": true,
1623
+ "notNull": true
1624
+ },
1625
+ "organization_id": {
1626
+ "name": "organization_id",
1627
+ "type": "text",
1628
+ "primaryKey": false,
1629
+ "notNull": true
1630
+ },
1631
+ "task_id": {
1632
+ "name": "task_id",
1633
+ "type": "bigint",
1634
+ "primaryKey": false,
1635
+ "notNull": true
1636
+ },
1637
+ "installation_id": {
1638
+ "name": "installation_id",
1639
+ "type": "bigint",
1640
+ "primaryKey": false,
1641
+ "notNull": false
1642
+ },
1643
+ "agent": {
1644
+ "name": "agent",
1645
+ "type": "text",
1646
+ "primaryKey": false,
1647
+ "notNull": true
1648
+ },
1649
+ "target": {
1650
+ "name": "target",
1651
+ "type": "text",
1652
+ "primaryKey": false,
1653
+ "notNull": true
1654
+ },
1655
+ "engine": {
1656
+ "name": "engine",
1657
+ "type": "text",
1658
+ "primaryKey": false,
1659
+ "notNull": false
1660
+ },
1661
+ "model": {
1662
+ "name": "model",
1663
+ "type": "text",
1664
+ "primaryKey": false,
1665
+ "notNull": false
1666
+ },
1667
+ "credential": {
1668
+ "name": "credential",
1669
+ "type": "text",
1670
+ "primaryKey": false,
1671
+ "notNull": true
1672
+ },
1673
+ "runner_ms": {
1674
+ "name": "runner_ms",
1675
+ "type": "integer",
1676
+ "primaryKey": false,
1677
+ "notNull": true
1678
+ },
1679
+ "tokens": {
1680
+ "name": "tokens",
1681
+ "type": "jsonb",
1682
+ "primaryKey": false,
1683
+ "notNull": false
1684
+ },
1685
+ "at": {
1686
+ "name": "at",
1687
+ "type": "timestamp with time zone",
1688
+ "primaryKey": false,
1689
+ "notNull": true
1690
+ },
1691
+ "created_at": {
1692
+ "name": "created_at",
1693
+ "type": "timestamp with time zone",
1694
+ "primaryKey": false,
1695
+ "notNull": true,
1696
+ "default": "now()"
1697
+ },
1698
+ "updated_at": {
1699
+ "name": "updated_at",
1700
+ "type": "timestamp with time zone",
1701
+ "primaryKey": false,
1702
+ "notNull": true,
1703
+ "default": "now()"
1704
+ }
1705
+ },
1706
+ "indexes": {
1707
+ "usage_organization_id_at_index": {
1708
+ "name": "usage_organization_id_at_index",
1709
+ "columns": [
1710
+ {
1711
+ "expression": "organization_id",
1712
+ "isExpression": false,
1713
+ "asc": true,
1714
+ "nulls": "last"
1715
+ },
1716
+ {
1717
+ "expression": "at",
1718
+ "isExpression": false,
1719
+ "asc": true,
1720
+ "nulls": "last"
1721
+ }
1722
+ ],
1723
+ "isUnique": false,
1724
+ "concurrently": false,
1725
+ "method": "btree",
1726
+ "with": {}
1727
+ }
1728
+ },
1729
+ "foreignKeys": {
1730
+ "usage_task_id_task_id_fk": {
1731
+ "name": "usage_task_id_task_id_fk",
1732
+ "tableFrom": "usage",
1733
+ "tableTo": "task",
1734
+ "schemaTo": "coder",
1735
+ "columnsFrom": [
1736
+ "task_id"
1737
+ ],
1738
+ "columnsTo": [
1739
+ "id"
1740
+ ],
1741
+ "onDelete": "cascade",
1742
+ "onUpdate": "no action"
1743
+ },
1744
+ "usage_installation_id_integration_app_installation_id_fk": {
1745
+ "name": "usage_installation_id_integration_app_installation_id_fk",
1746
+ "tableFrom": "usage",
1747
+ "tableTo": "integration_app_installation",
1748
+ "schemaTo": "coder",
1749
+ "columnsFrom": [
1750
+ "installation_id"
1751
+ ],
1752
+ "columnsTo": [
1753
+ "id"
1754
+ ],
1755
+ "onDelete": "no action",
1756
+ "onUpdate": "no action"
1757
+ }
1758
+ },
1759
+ "compositePrimaryKeys": {},
1760
+ "uniqueConstraints": {
1761
+ "usage_taskId_unique": {
1762
+ "name": "usage_taskId_unique",
1763
+ "nullsNotDistinct": false,
1764
+ "columns": [
1765
+ "task_id"
1766
+ ]
1767
+ }
1768
+ },
1769
+ "policies": {},
1770
+ "checkConstraints": {},
1771
+ "isRLSEnabled": false
1772
+ }
1773
+ },
1774
+ "enums": {},
1775
+ "schemas": {
1776
+ "coder": "coder"
1777
+ },
1778
+ "sequences": {},
1779
+ "roles": {},
1780
+ "policies": {},
1781
+ "views": {},
1782
+ "_meta": {
1783
+ "columns": {},
1784
+ "schemas": {},
1785
+ "tables": {}
1786
+ }
1787
+ }