@wular/coder 0.4.11 → 0.4.12

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 (329) hide show
  1. package/README.md +3 -1
  2. package/dist/actions-BT7_eKXm.js +10 -0
  3. package/dist/{adapter-Bi768A94.js → adapter-BT8ECcRG.js} +1 -1
  4. package/dist/{adapter-CkL4PqXE.js → adapter-CU9H4g6c.js} +1 -1
  5. package/dist/{adapter-DYxjaefw.js → adapter-CVd5klMH.js} +1 -1
  6. package/dist/{agent-6GooVMsq.js → agent-BA6xr8QY.js} +2 -2
  7. package/dist/apps-D-v5sQJk.js +367 -0
  8. package/dist/args-CbO_Ck9Z.js +11 -0
  9. package/dist/async-XNO3nqum.js +3 -0
  10. package/dist/auth-DuXnSNf9.js +1 -0
  11. package/dist/base64url-CsVsW4Id.js +1 -0
  12. package/dist/chat-CgQdDRhs.js +13 -0
  13. package/dist/cli.js +19 -1
  14. package/dist/{client-sqXb-y09.js → client-C4QCT6cG.js} +2 -2
  15. package/dist/cmd-DX5ByXo3.js +119 -0
  16. package/dist/connection-DNxi2btM.js +1 -0
  17. package/dist/context-65bOofts.js +7 -0
  18. package/dist/dash/standalone/node_modules/contextjsx/dist/index.mjs +1 -0
  19. package/dist/dash/standalone/node_modules/contextjsx/dist/jsx-runtime.mjs +1 -0
  20. package/dist/dash/standalone/node_modules/contextjsx/dist/src-BJ0QFeB8.mjs +2 -0
  21. package/dist/dash/standalone/node_modules/contextjsx/package.json +70 -0
  22. package/dist/dash/standalone/server/build-index.json +1 -1
  23. package/dist/dash/standalone/server/manifest.json +1310 -1310
  24. package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/context/turn.dac8eb211c500271.js +141 -0
  25. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/page.70913bd4075da914.js +1 -1
  26. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.5f88059c03cf82b4.js → page.c6efd5432c1a4a75.js} +3 -3
  27. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.b7392d534ce0410e.js → layout.a795379254982121.js} +3 -3
  28. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.5aae24bbfd90c434.js → page.a2cb6d1f1714259a.js} +4 -4
  29. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.91c992fdd3b4a493.js → page.996172c951739b35.js} +5 -5
  30. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.eb707a9e32718374.js → agent-settings-form.aa9e157d141481d7.js} +1 -1
  31. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.9ec1ec08ba05da59.js → page.44d886e60ae04303.js} +3 -3
  32. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.dd9088a4581b1d65.js → loading.521c9e7b8d77f557.js} +1 -1
  33. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.71dc042821133e82.js → page.828cfb8112404792.js} +1 -1
  34. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.e3179ddf20a7e55d.js → page.dd11f2618e08becd.js} +2 -2
  35. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.62cb8207218e6437.js → editor.776856fe1ed1a642.js} +1 -1
  36. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.dffb05f2d256d81a.js → page.7d84ef2b178b34d2.js} +2 -2
  37. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/credentials.b43dd3d97c536c2a.js +3 -3
  38. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/page.dfed4ae6ffc74434.js +5 -5
  39. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/page.f06fda0df59beeb5.js +1 -1
  40. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.56520888d5270b88.js → loading.47cbb34ea8d2e33f.js} +1 -1
  41. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.25b29e72df84806b.js → page.abed2a8424ef3da0.js} +2 -2
  42. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.f2e902c8208b2e78.js → task-view.dc294bb94b7437e1.js} +1 -1
  43. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.b0bb1faaac8e0b6c.js → composer.5072aacdce127689.js} +1 -1
  44. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{task.a0c68180db5fb4c1.js → task.0a1b5878dccd3b37.js} +1 -1
  45. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.b52a49fb5faeefd0.js → tasks-list.1162926f7498c732.js} +6 -6
  46. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.80f9c9a42ecae854.js → tasks-section.1d687c986db53a73.js} +3 -3
  47. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.20b5c22658eae312.js → page.d5d8cb5033823c9c.js} +1 -1
  48. package/dist/dash/standalone/static/assets/chunks/action-71685b2d5ad9f359.js +1 -0
  49. package/dist/dash/standalone/static/assets/chunks/{agent-pills-bd32cb89331aff7e.js → agent-pills-15da36c2cb81991b.js} +1 -1
  50. package/dist/dash/standalone/static/assets/chunks/agent-settings-form-6e6a87d6e673daa8.js +1 -0
  51. package/dist/dash/standalone/static/assets/chunks/{agent-toggle-a45b95908d62f926.js → agent-toggle-ca98586e3b4ce9ae.js} +1 -1
  52. package/dist/dash/standalone/static/assets/chunks/{agents-grid-9f79b5074899c8be.js → agents-grid-29c399e46b4e9e2b.js} +1 -1
  53. package/dist/dash/standalone/static/assets/chunks/{back-b0cd2b85c9d8403e.js → back-fa9d6e37f9828093.js} +1 -1
  54. package/dist/dash/standalone/static/assets/chunks/{combo-1050768988cd0347.js → combo-86f3e11d1f6f6cee.js} +1 -1
  55. package/dist/dash/standalone/static/assets/chunks/{composer-87f138e21d68370d.js → composer-85e0ec7163ae18b7.js} +1 -1
  56. package/dist/dash/standalone/static/assets/chunks/composer-910bb87127972f62.js +1 -0
  57. package/dist/dash/standalone/static/assets/chunks/{confirm-01d5814b1c5f7721.js → confirm-c29a1db0130638d2.js} +1 -1
  58. package/dist/dash/standalone/static/assets/chunks/connect-apps-b73490e04ae6398d.js +1 -0
  59. package/dist/dash/standalone/static/assets/chunks/{connect-repositories-49098298b3a82647.js → connect-repositories-0de82daaf654b1d3.js} +1 -1
  60. package/dist/dash/standalone/static/assets/chunks/{connections-list-46d48443d8fc8a0d.js → connections-list-c50f58b4b28d10bb.js} +1 -1
  61. package/dist/dash/standalone/static/assets/chunks/{copy-5db9d328f8f65d82.js → copy-445c11202f136275.js} +1 -1
  62. package/dist/dash/standalone/static/assets/chunks/create-link-6d64a2d5f9ce6de0.js +1 -0
  63. package/dist/dash/standalone/static/assets/chunks/{credentials-list-3cccc85ef335cb22.js → credentials-list-bee95799b2319b3b.js} +1 -1
  64. package/dist/dash/standalone/static/assets/chunks/{custom-range-fdf1946aac09cfc3.js → custom-range-a0630599f907b30e.js} +1 -1
  65. package/dist/dash/standalone/static/assets/chunks/{editor-d2460c315bb1fd32.js → editor-b9951819f21b2e43.js} +2 -2
  66. package/dist/dash/standalone/static/assets/chunks/{engines-list-0159c8baa0b3e711.js → engines-list-2720c3e8fa12b2f7.js} +1 -1
  67. package/dist/dash/standalone/static/assets/chunks/{field-c530e261587d94df.js → field-b82a0f895266791c.js} +1 -1
  68. package/dist/dash/standalone/static/assets/chunks/{instructions-3ea5afeea1992bf2.js → instructions-affaaeff366b1725.js} +1 -1
  69. package/dist/dash/standalone/static/assets/chunks/instructions-fd7402ac5aa8b50e.js +1 -0
  70. package/dist/dash/standalone/static/assets/chunks/{list-b67ce61483dd6acb.js → list-d918f79562d497eb.js} +1 -1
  71. package/dist/dash/standalone/static/assets/chunks/{models-list-98c956ba00913a73.js → models-list-12bc7aceaa52f5b0.js} +1 -1
  72. package/dist/dash/standalone/static/assets/chunks/{notice-8939183c8a889bae.js → notice-57db7a1f05b7308c.js} +1 -1
  73. package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-6323cb5300b6d3c9.js → outcome-dialog-5cf575a5e6921a5d.js} +1 -1
  74. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-b219595be320108a.js +1 -0
  75. package/dist/dash/standalone/static/assets/chunks/platform-actions-1d27d2ba7eee9ff1.js +1 -0
  76. package/dist/dash/standalone/static/assets/chunks/{platform-actions-aafbf038008de64f.js → platform-actions-dba96dcb0f6513db.js} +1 -1
  77. package/dist/dash/standalone/static/assets/chunks/{runners-list-a13d0f8f6583c6d2.js → runners-list-36f8c5ecfcf8e9ae.js} +1 -1
  78. package/dist/dash/standalone/static/assets/chunks/{runtime-71b727f8f5906f08-1.js → runtime-6e12333f12903a62-1.js} +1 -1
  79. package/dist/dash/standalone/static/assets/chunks/{secrets-list-53a0c079492199c9.js → secrets-list-d7dbafd24dd18481.js} +1 -1
  80. package/dist/dash/standalone/static/assets/chunks/{segmented-a3642b8169857fb1.js → segmented-8f809ebe712e92a7.js} +1 -1
  81. package/dist/dash/standalone/static/assets/chunks/shared-init-6e12333f12903a62-2.js +1 -0
  82. package/dist/dash/standalone/static/assets/chunks/{shared-init-6cad28f8cc696d91.js → shared-init-cc13a835f3508618.js} +2 -2
  83. package/dist/dash/standalone/static/assets/chunks/{shared-init-94883db7bc70a5a8.js → shared-init-f475017dd5811e33.js} +2 -2
  84. package/dist/dash/standalone/static/assets/chunks/side-toggle-0aa237eba3dfe9c1.js +1 -0
  85. package/dist/dash/standalone/static/assets/chunks/{tail-81b69d49bfebfd4c.js → tail-b1c46587301ef397.js} +1 -1
  86. package/dist/dash/standalone/static/assets/chunks/task-681061023bdf0a49.js +5 -0
  87. package/dist/dash/standalone/static/assets/chunks/{task-actions-25c70b47b5a53cd2.js → task-actions-c9e46e81604e85c5.js} +1 -1
  88. package/dist/dash/standalone/static/assets/chunks/{task-view-e5ee0ada38552918.js → task-view-134186a544917ceb.js} +1 -1
  89. package/dist/dash/standalone/static/assets/chunks/{tasks-list-d58f3063ae31d9d2.js → tasks-list-352a3222d878de0f.js} +1 -1
  90. package/dist/dash/standalone/static/assets/chunks/{versions-list-fbeed95c0b4e5f0f.js → versions-list-21cb854e6a7108a7.js} +1 -1
  91. package/dist/dash/standalone/static/assets/chunks/{wular-pnext-71b727f8f5906f08-0.js → wular-pnext-6e12333f12903a62-0.js} +1 -1
  92. package/dist/dash/standalone/static/assets/pnext-client-05df74b071ddb0b3.js +1 -0
  93. package/dist/dash/standalone/static/assets/pnext-client-2c19cca257f78ae6.js +1 -0
  94. package/dist/dash/standalone/static/assets/pnext-client-2db05dfa62642a65.js +1 -0
  95. package/dist/dash/standalone/static/assets/pnext-client-36b0d6085a073880.js +1 -0
  96. package/dist/dash/standalone/static/assets/pnext-client-576c06599e241231.js +1 -0
  97. package/dist/dash/standalone/static/assets/pnext-client-6aa0f19a30d58d63.js +1 -0
  98. package/dist/dash/standalone/static/assets/pnext-client-6b30b71f452f2f07.js +1 -0
  99. package/dist/dash/standalone/static/assets/pnext-client-6ccb4d4fff812db3.js +1 -0
  100. package/dist/dash/standalone/static/assets/pnext-client-74eb465defba421e.js +1 -0
  101. package/dist/dash/standalone/static/assets/pnext-client-8c692d12b2fd90d6.js +1 -0
  102. package/dist/dash/standalone/static/assets/pnext-client-92e17d39063a9ced.js +1 -0
  103. package/dist/dash/standalone/static/assets/pnext-client-93246aea268c2682.js +1 -0
  104. package/dist/dash/standalone/static/assets/pnext-client-9954dcbc0c579e0d.js +1 -0
  105. package/dist/dash/standalone/static/assets/pnext-client-c0dfa1cdde9a9855.js +1 -0
  106. package/dist/dash/standalone/static/assets/pnext-client-c28d38d4aafd4af6.js +1 -0
  107. package/dist/dash/standalone/static/assets/{pnext-client-e4c659a371f4cd79.js → pnext-client-c2c30dcb6dc31d60.js} +1 -1
  108. package/dist/dash/standalone/static/assets/pnext-client-dbf741073e11eac0.js +1 -0
  109. package/dist/dash/standalone/static/assets/pnext-client-e29194a27280333f.js +1 -0
  110. package/dist/dash/standalone/static/assets/pnext-client-f8a7e692b27caad9.js +1 -0
  111. package/dist/dash/standalone/static/assets/pnext-client-fc5b8cfcba2a9f63.js +1 -0
  112. package/dist/discover-CPZdprlQ.js +1 -0
  113. package/dist/docs-x-l7gjFE.js +2 -0
  114. package/dist/drive-Y-ZlgiUW.js +1 -0
  115. package/dist/env-B9JG6gwo.js +1 -0
  116. package/dist/errors-XBA-Ls4n.js +10 -0
  117. package/dist/exec-iFssTO5V.js +3 -0
  118. package/dist/executor-Dt2FFT-y.js +11 -0
  119. package/dist/flow/builtin/review/index.d.ts +2 -0
  120. package/dist/flow/builtin/review/index.js +16 -0
  121. package/dist/flow/index.d.ts +1 -1
  122. package/dist/flow/index.js +1 -1
  123. package/dist/http-BZfjbiov.js +1 -0
  124. package/dist/{types-C6NAqGqn.d.ts → index-BdkdNI1v.d.ts} +705 -121
  125. package/dist/{integrations-IGnXBrPw.js → integrations-DyInAa5g.js} +2 -2
  126. package/dist/lib/broker.js +2 -2
  127. package/dist/load-zhcrwSRF.js +2 -0
  128. package/dist/local-D55UkW93.js +5 -0
  129. package/dist/maintenance-BfxcatXH.js +1 -0
  130. package/dist/{match-BwcxeAZF.js → match-Bq4sDuCy.js} +1 -1
  131. package/dist/mcp-Bta09QCU.js +13 -0
  132. package/dist/mcp-CUITALl1.js +1 -0
  133. package/dist/models-C1O2DrXx.js +1 -0
  134. package/dist/output-D95NoAA9.js +16 -0
  135. package/dist/prompt-onpyIyXK.js +8 -0
  136. package/dist/prompts-B8pKhMcu.js +4 -0
  137. package/dist/refresh-D-0K9fo3.js +1 -0
  138. package/dist/{remote-D3JZ4MMQ.js → remote-CDm0YUU3.js} +1 -1
  139. package/dist/runner-CTFTuaz_.js +1 -0
  140. package/dist/runner.json +1 -1
  141. package/dist/runner.tgz +0 -0
  142. package/dist/{runners-DyLnqHKy.js → runners-CYTicTb7.js} +3 -3
  143. package/dist/schema.d.ts +1 -1
  144. package/dist/schema.js +8 -1
  145. package/dist/sdk.d.ts +12552 -4
  146. package/dist/sdk.js +1 -1
  147. package/dist/serve-Bzs_lEg-.js +1 -0
  148. package/dist/serve-CWtLyyTz.js +12 -0
  149. package/dist/serve-DE6A-rBk.js +4 -0
  150. package/dist/{slack-DhPhLuWb.js → slack-Bo5l13Rs.js} +3 -3
  151. package/dist/task-BU1JEK9X.js +7 -0
  152. package/dist/task-CPzBITsp.js +1 -0
  153. package/dist/tools-BMaKWTa6.js +1 -0
  154. package/dist/tools-CM4UCsId.js +1 -0
  155. package/dist/turn-DMvPfhb5.js +3 -0
  156. package/dist/{views-CE2d9x6T.js → views-DEdKqLm_.js} +1 -1
  157. package/dist/{wire-nJ7sEi-M.js → wire-JMNPv8f6.js} +1 -1
  158. package/dist/worker-BuP_Lem1.js +9 -0
  159. package/dist/worker-C1tuzq5n.js +1 -0
  160. package/docs/agents/index.md +18 -20
  161. package/docs/cli/agent.md +137 -0
  162. package/docs/cli/auth.md +48 -0
  163. package/docs/cli/connection.md +89 -0
  164. package/docs/cli/credentials.md +58 -0
  165. package/docs/cli/flow.md +158 -0
  166. package/docs/cli/index.md +139 -0
  167. package/docs/cli/model.md +116 -0
  168. package/docs/cli/runner.md +92 -0
  169. package/docs/cli/server.md +89 -0
  170. package/docs/cli/task.md +271 -0
  171. package/docs/flows.md +0 -6
  172. package/docs/mcp.md +8 -8
  173. package/docs/review.md +4 -0
  174. package/package.json +3 -1
  175. package/plugins/agents/skills/coder/SKILL.md +16 -1
  176. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  177. package/plugins/claude/.mcp.json +5 -0
  178. package/plugins/claude/skills/dispatch/SKILL.md +16 -1
  179. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  180. package/plugins/cursor/skills/coder/SKILL.md +16 -1
  181. package/dist/actions-Cwe3IDVs.js +0 -2
  182. package/dist/add-B6vPKZEr.js +0 -1
  183. package/dist/add-n6c9OINP.js +0 -2
  184. package/dist/add-v1Pv00HX.js +0 -1
  185. package/dist/add-wC8ByRgM.js +0 -6
  186. package/dist/agent-BkxXgha0.js +0 -1
  187. package/dist/alias-A8ObWElH.js +0 -2
  188. package/dist/app-CaxTL1H3.js +0 -1
  189. package/dist/approvals-h5lytkey.js +0 -2
  190. package/dist/approve-BNhg0MLi.js +0 -2
  191. package/dist/approve-BiHM8kSo.js +0 -1
  192. package/dist/apps-BNe86LfS.js +0 -367
  193. package/dist/archive-CMHRsVYf.js +0 -4
  194. package/dist/archive-H2B7Me8E.js +0 -3
  195. package/dist/args-CURX44CA.js +0 -1
  196. package/dist/ask-D8TIVhPl.js +0 -4
  197. package/dist/auth-BSMPjhnz.js +0 -1
  198. package/dist/auth-D3quZAKT.js +0 -1
  199. package/dist/chat-3AvUDOwf.js +0 -13
  200. package/dist/chat-bridge-BmqYsASZ.js +0 -2
  201. package/dist/cli-BBlH53hA.js +0 -9
  202. package/dist/config-K6Rrjsee.js +0 -3
  203. package/dist/connection-B-IB8tlP.js +0 -1
  204. package/dist/connection-BXBDeoax.js +0 -1
  205. package/dist/create-CP_JmJnh.js +0 -1
  206. package/dist/credentials-BRFajC0d.js +0 -1
  207. package/dist/dash/standalone/server/modules-server-server-react-server/src/core/event-prompt.87f064ca0141e796.js +0 -30
  208. package/dist/dash/standalone/static/assets/chunks/action-fc8716cda7527d8c.js +0 -1
  209. package/dist/dash/standalone/static/assets/chunks/agent-settings-form-f5576a2c50fce094.js +0 -1
  210. package/dist/dash/standalone/static/assets/chunks/composer-8f0e8b1d07e74aad.js +0 -1
  211. package/dist/dash/standalone/static/assets/chunks/connect-apps-857dc9fa3f6f5bbc.js +0 -1
  212. package/dist/dash/standalone/static/assets/chunks/create-link-6b6e9eeac436c4af.js +0 -1
  213. package/dist/dash/standalone/static/assets/chunks/instructions-d8884576a18e6cdb.js +0 -1
  214. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-be3fbe8c4b43d180.js +0 -1
  215. package/dist/dash/standalone/static/assets/chunks/platform-actions-ed27388f722b4a4c.js +0 -1
  216. package/dist/dash/standalone/static/assets/chunks/shared-init-71b727f8f5906f08-2.js +0 -1
  217. package/dist/dash/standalone/static/assets/chunks/side-toggle-a2f67a8671a0309b.js +0 -1
  218. package/dist/dash/standalone/static/assets/chunks/task-95daa40d39de664f.js +0 -1
  219. package/dist/dash/standalone/static/assets/pnext-client-037852a9f274c8c8.js +0 -1
  220. package/dist/dash/standalone/static/assets/pnext-client-10eac8df53f62104.js +0 -1
  221. package/dist/dash/standalone/static/assets/pnext-client-12635905e9754177.js +0 -1
  222. package/dist/dash/standalone/static/assets/pnext-client-12955733c71cc641.js +0 -1
  223. package/dist/dash/standalone/static/assets/pnext-client-26999113ea61d5b9.js +0 -1
  224. package/dist/dash/standalone/static/assets/pnext-client-27b6e4b7d1697094.js +0 -1
  225. package/dist/dash/standalone/static/assets/pnext-client-34fec171024dd082.js +0 -1
  226. package/dist/dash/standalone/static/assets/pnext-client-44eb6d4096f7e875.js +0 -1
  227. package/dist/dash/standalone/static/assets/pnext-client-4c558a168b95d9b1.js +0 -1
  228. package/dist/dash/standalone/static/assets/pnext-client-5d21f3dd3f4407af.js +0 -1
  229. package/dist/dash/standalone/static/assets/pnext-client-5fe04a4e1dff28a3.js +0 -1
  230. package/dist/dash/standalone/static/assets/pnext-client-88bbc009041aa776.js +0 -1
  231. package/dist/dash/standalone/static/assets/pnext-client-b36106c6b8a6cd35.js +0 -1
  232. package/dist/dash/standalone/static/assets/pnext-client-b47dda1cd4cfac04.js +0 -1
  233. package/dist/dash/standalone/static/assets/pnext-client-b556f5611fdcf545.js +0 -1
  234. package/dist/dash/standalone/static/assets/pnext-client-b8485144ca29d436.js +0 -1
  235. package/dist/dash/standalone/static/assets/pnext-client-c5c3c90b3518c5a8.js +0 -1
  236. package/dist/dash/standalone/static/assets/pnext-client-f139547dc55d7d76.js +0 -1
  237. package/dist/dash/standalone/static/assets/pnext-client-fd280710b31af681.js +0 -1
  238. package/dist/default-Ojx5oFuw.js +0 -1
  239. package/dist/delete-D1hEPpsk.js +0 -2
  240. package/dist/delete-UyzcQPoG.js +0 -4
  241. package/dist/disable-Dml_Slph.js +0 -1
  242. package/dist/discover-CyIfIBGD.js +0 -3
  243. package/dist/dispatch-CFZ9Crvg.js +0 -8
  244. package/dist/docs-BUHKbQjM.js +0 -2
  245. package/dist/docs-CvjWiada.js +0 -2
  246. package/dist/drive-BqunNi9n.js +0 -1
  247. package/dist/enable-xye-Nanc.js +0 -1
  248. package/dist/env-BgE9ipvN.js +0 -1
  249. package/dist/exec-Cprez703.js +0 -3
  250. package/dist/executor-3QMa-XRY.js +0 -11
  251. package/dist/flow/builtin/review.d.ts +0 -2
  252. package/dist/flow/builtin/review.js +0 -12
  253. package/dist/flow-CtillCQY.js +0 -1
  254. package/dist/history-C53URBjs.js +0 -8
  255. package/dist/http-CDZKt5ln.js +0 -1
  256. package/dist/hub-B0WCXtsP.js +0 -2
  257. package/dist/init-HdSVUozH.js +0 -1
  258. package/dist/integrations-BdLs4W6o.js +0 -1
  259. package/dist/list-1IMeVNg3.js +0 -1
  260. package/dist/list-BTjIMvNs.js +0 -1
  261. package/dist/list-BlOB32n6.js +0 -4
  262. package/dist/list-CZGTVKcS.js +0 -4
  263. package/dist/list-CquHtsmW.js +0 -3
  264. package/dist/list-CxjPT0Il.js +0 -1
  265. package/dist/list-DvFVuGT_.js +0 -1
  266. package/dist/list-gFnOS9Hk.js +0 -2
  267. package/dist/load-Q9fL4VC6.js +0 -2
  268. package/dist/local-Bzdmzc1o.js +0 -5
  269. package/dist/login-C723kHh6.js +0 -1
  270. package/dist/login-Dq3r6gh6.js +0 -1
  271. package/dist/logout-DEg0aTmq.js +0 -1
  272. package/dist/maintenance-DYOstY6V.js +0 -1
  273. package/dist/mcp-CKqinFkk.js +0 -1
  274. package/dist/mcp-Dsl3Xdd3.js +0 -13
  275. package/dist/mcp-server-BlP9lACI.js +0 -1
  276. package/dist/model-Bs27g5EX.js +0 -1
  277. package/dist/models-Cb0ZTKZ7.js +0 -1
  278. package/dist/output-BKeyLbvt.js +0 -5
  279. package/dist/prompt-PEgcMJO7.js +0 -8
  280. package/dist/prompts-Bj4Fbd_n.js +0 -78
  281. package/dist/push-DpEW4XbQ.js +0 -1
  282. package/dist/reconnect-BmP_XXDv.js +0 -1
  283. package/dist/refresh-SHNJq9Cx.js +0 -1
  284. package/dist/remove-BZZgJq8Z.js +0 -1
  285. package/dist/remove-CId1EwPg.js +0 -1
  286. package/dist/remove-Ci87WQq0.js +0 -1
  287. package/dist/remove-DxCv9BB4.js +0 -1
  288. package/dist/rename-DJaf5SwH.js +0 -1
  289. package/dist/result-BesDQ-b1.js +0 -5
  290. package/dist/result-D0dpv2O_.js +0 -18
  291. package/dist/resume-2Y0uC5MM.js +0 -3
  292. package/dist/review-DIm9oK_W.js +0 -7
  293. package/dist/review-Dxs-idTn.d.ts +0 -566
  294. package/dist/rotate-key-CS1G6ReH.js +0 -1
  295. package/dist/run-BKUd6B8S.js +0 -2
  296. package/dist/run-DjTTb8oA.js +0 -5
  297. package/dist/run-UPW-7pKo.js +0 -2
  298. package/dist/runner-BLS_ReEw.js +0 -1
  299. package/dist/runner-BM_98EQl.js +0 -1
  300. package/dist/schema-CjHmulYJ.js +0 -8
  301. package/dist/sdk-B4Cl0Hbw.d.ts +0 -12551
  302. package/dist/serve-BApfeXk8.js +0 -12
  303. package/dist/serve-DE1cKoGa.js +0 -1
  304. package/dist/serve-lF97RlpX.js +0 -2
  305. package/dist/serve-mXTjboT1.js +0 -1
  306. package/dist/server-CUsxAflx.js +0 -1
  307. package/dist/setup-host-tlsilI6C.js +0 -6
  308. package/dist/show-Dn7zTz-9.js +0 -1
  309. package/dist/show-uyUpeqa9.js +0 -1
  310. package/dist/status-D_1VGn9F.js +0 -1
  311. package/dist/steer-CMp-a7v2.js +0 -4
  312. package/dist/stop-C7YjN2sB.js +0 -1
  313. package/dist/stop-D8G7AtdY.js +0 -3
  314. package/dist/task-DJ6nruuA.js +0 -1
  315. package/dist/task-DeFLNmQH.js +0 -1
  316. package/dist/task-bkoi8_NN.js +0 -7
  317. package/dist/test-BD9rvefN.js +0 -1
  318. package/dist/tools-CdWkwI1g.js +0 -1
  319. package/dist/unalias-bL5t8Isc.js +0 -1
  320. package/dist/update-DIYW08ME.js +0 -2
  321. package/dist/upgrade-3fH6dGJw.js +0 -2
  322. package/dist/usage-Dr8F0xt0.js +0 -1
  323. package/dist/watch-BiyN4NxE.js +0 -5
  324. package/dist/watch-DJXu13jK.js +0 -9
  325. package/dist/worker-CHD_OiQS.js +0 -1
  326. package/dist/worker-KfrTK_Dk.js +0 -2
  327. package/dist/workflow-C21qQ4rT.js +0 -1
  328. package/docs/agents/prompt.md +0 -231
  329. package/docs/cli.md +0 -155
@@ -1,176 +1,176 @@
1
- import * as z from "zod/mini";
1
+ import { AsyncLocalStorage } from "node:async_hooks";
2
+ import * as z from "zod";
3
+ import * as z$1 from "zod/mini";
2
4
  //#region src/core/config.d.ts
3
- declare const engineSchema: z.ZodMiniEnum<{
4
- codex: "codex";
5
- claude: "claude";
5
+ declare const engineSchema: z$1.ZodMiniEnum<{
6
6
  custom: "custom";
7
+ claude: "claude";
8
+ codex: "codex";
7
9
  }>;
8
- declare const effortSchema: z.ZodMiniEnum<{
10
+ declare const effortSchema: z$1.ZodMiniEnum<{
9
11
  low: "low";
10
12
  medium: "medium";
11
13
  high: "high";
12
14
  }>;
13
- declare const permissionSchema: z.ZodMiniEnum<{
15
+ declare const permissionSchema: z$1.ZodMiniEnum<{
14
16
  "read-only": "read-only";
15
17
  "workspace-write": "workspace-write";
16
18
  auto: "auto";
17
19
  }>;
18
- declare const customModelSchema: z.ZodMiniObject<{
19
- baseUrl: z.ZodMiniURL;
20
- model: z.ZodMiniString<string>;
21
- envKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
22
- wireApi: z.ZodMiniOptional<z.ZodMiniEnum<{
20
+ declare const customModelSchema: z$1.ZodMiniObject<{
21
+ baseUrl: z$1.ZodMiniURL;
22
+ model: z$1.ZodMiniString<string>;
23
+ envKey: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
24
+ wireApi: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
23
25
  chat: "chat";
24
26
  responses: "responses";
25
27
  }>>;
26
- disabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
27
- }, z.core.$strict>;
28
+ disabled: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
29
+ }, z$1.core.$strict>;
28
30
  /** The merged, effective shape (everything present after DEFAULT_CONFIG). */
29
- declare const mcpEntrySchema: z.ZodMiniObject<{
30
- connection: z.ZodMiniOptional<z.ZodMiniString<string>>;
31
- command: z.ZodMiniOptional<z.ZodMiniString<string>>;
32
- args: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
33
- env: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
34
- url: z.ZodMiniOptional<z.ZodMiniString<string>>;
35
- type: z.ZodMiniOptional<z.ZodMiniEnum<{
36
- stdio: "stdio";
31
+ declare const mcpEntrySchema: z$1.ZodMiniObject<{
32
+ connection: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
33
+ command: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
34
+ args: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
35
+ env: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniString<string>>>;
36
+ url: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
37
+ type: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
37
38
  http: "http";
38
- sse: "sse";
39
+ stdio: "stdio";
39
40
  }>>;
40
- headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
41
- tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
42
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
43
- }, z.core.$strict>;
44
- declare const effectiveConfigSchema: z.ZodMiniObject<{
45
- conversationCompactTokens: z.ZodMiniNumber<number>;
46
- chain: z.ZodMiniArray<z.ZodMiniEnum<{
47
- codex: "codex";
48
- claude: "claude";
41
+ headers: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniString<string>>>;
42
+ tools: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
43
+ description: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
44
+ }, z$1.core.$strict>;
45
+ declare const effectiveConfigSchema: z$1.ZodMiniObject<{
46
+ conversationCompactTokens: z$1.ZodMiniNumber<number>;
47
+ chain: z$1.ZodMiniArray<z$1.ZodMiniEnum<{
49
48
  custom: "custom";
49
+ claude: "claude";
50
+ codex: "codex";
50
51
  }>>;
51
- engines: z.ZodMiniObject<{
52
- codex: z.ZodMiniOptional<z.ZodMiniObject<{
53
- model: z.ZodMiniOptional<z.ZodMiniString<string>>;
54
- effort: z.ZodMiniOptional<z.ZodMiniEnum<{
52
+ engines: z$1.ZodMiniObject<{
53
+ codex: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
54
+ model: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
55
+ effort: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
55
56
  low: "low";
56
57
  medium: "medium";
57
58
  high: "high";
58
59
  }>>;
59
- permissions: z.ZodMiniOptional<z.ZodMiniEnum<{
60
+ permissions: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
60
61
  "read-only": "read-only";
61
62
  "workspace-write": "workspace-write";
62
63
  auto: "auto";
63
64
  }>>;
64
- network: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
65
- }, z.core.$strict>>;
66
- claude: z.ZodMiniOptional<z.ZodMiniObject<{
67
- model: z.ZodMiniOptional<z.ZodMiniString<string>>;
68
- effort: z.ZodMiniOptional<z.ZodMiniEnum<{
65
+ network: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
66
+ }, z$1.core.$strict>>;
67
+ claude: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
68
+ model: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
69
+ effort: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
69
70
  low: "low";
70
71
  medium: "medium";
71
72
  high: "high";
72
73
  }>>;
73
- permissions: z.ZodMiniOptional<z.ZodMiniEnum<{
74
+ permissions: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
74
75
  "read-only": "read-only";
75
76
  "workspace-write": "workspace-write";
76
77
  auto: "auto";
77
78
  }>>;
78
- }, z.core.$strict>>;
79
- custom: z.ZodMiniOptional<z.ZodMiniObject<{
80
- model: z.ZodMiniOptional<z.ZodMiniString<string>>;
81
- effort: z.ZodMiniOptional<z.ZodMiniEnum<{
79
+ }, z$1.core.$strict>>;
80
+ custom: z$1.ZodMiniOptional<z$1.ZodMiniObject<{
81
+ model: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
82
+ effort: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
82
83
  low: "low";
83
84
  medium: "medium";
84
85
  high: "high";
85
86
  }>>;
86
- permissions: z.ZodMiniOptional<z.ZodMiniEnum<{
87
+ permissions: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
87
88
  "read-only": "read-only";
88
89
  "workspace-write": "workspace-write";
89
90
  auto: "auto";
90
91
  }>>;
91
- }, z.core.$strict>>;
92
- }, z.core.$strict>;
93
- models: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniObject<{
94
- baseUrl: z.ZodMiniURL;
95
- model: z.ZodMiniString<string>;
96
- envKey: z.ZodMiniOptional<z.ZodMiniString<string>>;
97
- wireApi: z.ZodMiniOptional<z.ZodMiniEnum<{
92
+ }, z$1.core.$strict>>;
93
+ }, z$1.core.$strict>;
94
+ models: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniObject<{
95
+ baseUrl: z$1.ZodMiniURL;
96
+ model: z$1.ZodMiniString<string>;
97
+ envKey: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
98
+ wireApi: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
98
99
  chat: "chat";
99
100
  responses: "responses";
100
101
  }>>;
101
- disabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
102
- }, z.core.$strict>, z.ZodMiniObject<{
103
- provider: z.ZodMiniEnum<{
104
- codex: "codex";
102
+ disabled: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
103
+ }, z$1.core.$strict>, z$1.ZodMiniObject<{
104
+ provider: z$1.ZodMiniEnum<{
105
105
  claude: "claude";
106
+ codex: "codex";
106
107
  }>;
107
- model: z.ZodMiniString<string>;
108
- effort: z.ZodMiniOptional<z.ZodMiniEnum<{
108
+ model: z$1.ZodMiniString<string>;
109
+ effort: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
109
110
  low: "low";
110
111
  medium: "medium";
111
112
  high: "high";
112
113
  }>>;
113
- disabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
114
- }, z.core.$strict>, z.ZodMiniObject<{
115
- disabled: z.ZodMiniBoolean<boolean>;
116
- }, z.core.$strict>]>>>;
117
- agents: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniUnion<readonly [z.ZodMiniBoolean<boolean>, z.ZodMiniObject<{
118
- engine: z.ZodMiniOptional<z.ZodMiniString<string>>;
119
- model: z.ZodMiniOptional<z.ZodMiniString<string>>;
120
- effort: z.ZodMiniOptional<z.ZodMiniEnum<{
114
+ disabled: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
115
+ }, z$1.core.$strict>, z$1.ZodMiniObject<{
116
+ disabled: z$1.ZodMiniBoolean<boolean>;
117
+ }, z$1.core.$strict>]>>>;
118
+ agents: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniUnion<readonly [z$1.ZodMiniBoolean<boolean>, z$1.ZodMiniObject<{
119
+ engine: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
120
+ model: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
121
+ effort: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
121
122
  low: "low";
122
123
  medium: "medium";
123
124
  high: "high";
124
125
  }>>;
125
- permissions: z.ZodMiniOptional<z.ZodMiniEnum<{
126
+ permissions: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
126
127
  "read-only": "read-only";
127
128
  "workspace-write": "workspace-write";
128
129
  auto: "auto";
129
130
  }>>;
130
- access: z.ZodMiniOptional<z.ZodMiniEnum<{
131
+ access: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
131
132
  read: "read";
132
133
  write: "write";
133
134
  }>>;
134
- runner: z.ZodMiniOptional<z.ZodMiniEnum<{
135
+ runner: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
135
136
  local: "local";
136
137
  "local-docker": "local-docker";
137
138
  "vercel-sandbox": "vercel-sandbox";
138
139
  "github-actions": "github-actions";
139
140
  }>>;
140
- integrations: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
141
- allowedEvents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
142
- }, z.core.$strict>>>;
143
- connections: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
144
- disabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
145
- }, z.core.$strict>]>>>;
146
- mcp: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
147
- connection: z.ZodMiniOptional<z.ZodMiniString<string>>;
148
- command: z.ZodMiniOptional<z.ZodMiniString<string>>;
149
- args: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
150
- env: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
151
- url: z.ZodMiniOptional<z.ZodMiniString<string>>;
152
- type: z.ZodMiniOptional<z.ZodMiniEnum<{
153
- stdio: "stdio";
141
+ integrations: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniObject<{
142
+ allowedEvents: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
143
+ }, z$1.core.$strict>>>;
144
+ connections: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
145
+ disabled: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
146
+ }, z$1.core.$strict>]>>>;
147
+ mcp: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniObject<{
148
+ connection: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
149
+ command: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
150
+ args: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
151
+ env: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniString<string>>>;
152
+ url: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
153
+ type: z$1.ZodMiniOptional<z$1.ZodMiniEnum<{
154
154
  http: "http";
155
- sse: "sse";
155
+ stdio: "stdio";
156
156
  }>>;
157
- headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
158
- tools: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
159
- description: z.ZodMiniOptional<z.ZodMiniString<string>>;
160
- }, z.core.$strict>>>;
161
- approvals: z.ZodMiniObject<{
162
- escalationTimeoutMs: z.ZodMiniNumber<number>;
163
- allowedNetworkHosts: z.ZodMiniArray<z.ZodMiniString<string>>;
164
- }, z.core.$strict>;
165
- }, z.core.$strict>;
166
- type McpConfigEntry = z.infer<typeof mcpEntrySchema> & {
157
+ headers: z$1.ZodMiniOptional<z$1.ZodMiniRecord<z$1.ZodMiniString<string>, z$1.ZodMiniString<string>>>;
158
+ tools: z$1.ZodMiniOptional<z$1.ZodMiniArray<z$1.ZodMiniString<string>>>;
159
+ description: z$1.ZodMiniOptional<z$1.ZodMiniString<string>>;
160
+ }, z$1.core.$strict>>>;
161
+ approvals: z$1.ZodMiniObject<{
162
+ escalationTimeoutMs: z$1.ZodMiniNumber<number>;
163
+ allowedNetworkHosts: z$1.ZodMiniArray<z$1.ZodMiniString<string>>;
164
+ }, z$1.core.$strict>;
165
+ }, z$1.core.$strict>;
166
+ type McpConfigEntry = z$1.infer<typeof mcpEntrySchema> & {
167
167
  repository?: boolean;
168
168
  };
169
- type Engine = z.infer<typeof engineSchema>;
170
- type Effort = z.infer<typeof effortSchema>;
171
- type Permission = z.infer<typeof permissionSchema>;
172
- type CustomModelConfig = z.infer<typeof customModelSchema>;
173
- type CoderConfig = z.infer<typeof effectiveConfigSchema>;
169
+ type Engine = z$1.infer<typeof engineSchema>;
170
+ type Effort = z$1.infer<typeof effortSchema>;
171
+ type Permission = z$1.infer<typeof permissionSchema>;
172
+ type CustomModelConfig = z$1.infer<typeof customModelSchema>;
173
+ type CoderConfig = z$1.infer<typeof effectiveConfigSchema>;
174
174
  declare const config: {
175
175
  /** A config value by dotted key (or the whole effective config). */
176
176
  get: (key?: string, opts?: {
@@ -1616,6 +1616,40 @@ interface TokenUsage {
1616
1616
  total: number;
1617
1617
  }
1618
1618
  //#endregion
1619
+ //#region src/core/task/context/system.d.ts
1620
+ /** What whoever built the agent wrote, plus the receiver's notes for this task. */
1621
+ interface DeveloperParts {
1622
+ description?: string;
1623
+ instructions?: string;
1624
+ notes?: string;
1625
+ }
1626
+ /** The parts of a task's system prompt its caller knows: the agent and where it is used. */
1627
+ interface AgentPromptParts {
1628
+ developer?: DeveloperParts;
1629
+ /** Conversation tasks: the conversation's platform and its catalog prompt. */
1630
+ platform?: {
1631
+ name: string;
1632
+ prompt?: string;
1633
+ };
1634
+ /** Conversation tasks: the events the agent subscribes to. */
1635
+ events?: string[];
1636
+ /** The agent's access mode. */
1637
+ access?: 'read' | 'write';
1638
+ }
1639
+ interface SystemPromptParts extends AgentPromptParts {
1640
+ /** The task's MCP servers as the worker renders them on each turn. */
1641
+ servers?: string;
1642
+ /** Coder's task tools this turn has, as the worker serves them. */
1643
+ tools?: string[];
1644
+ cwd?: string;
1645
+ /** A platform event's task, whose final message is a reply in a thread; otherwise a general task. */
1646
+ conversation?: boolean;
1647
+ /** The engine runs on this machine, not on a hosted runner. */
1648
+ local?: boolean;
1649
+ /** `coder task run --system` text and flow instructions. */
1650
+ instructions?: string;
1651
+ }
1652
+ //#endregion
1619
1653
  //#region src/core/types.d.ts
1620
1654
  /** An extra MCP server attached to a task, with the tools the engine may call. */
1621
1655
  /** One MCP server in the `.mcp.json` entry shape: stdio (`command`) or remote (`url`). */
@@ -1629,9 +1663,9 @@ interface McpServerSpec {
1629
1663
  args?: string[];
1630
1664
  /** Values may hold `${VAR}` placeholders, resolved from the environment at spawn time. */
1631
1665
  env?: Record<string, string>;
1632
- /** Remote server; `type` defaults to `http` (streamable HTTP), `sse` for legacy servers. */
1666
+ /** Remote server, streamable HTTP. */
1633
1667
  url?: string;
1634
- type?: 'stdio' | 'http' | 'sse';
1668
+ type?: 'stdio' | 'http';
1635
1669
  headers?: Record<string, string>;
1636
1670
  /** Credential destination supplied by the connection resolver, removed before persistence. */
1637
1671
  credentialFields?: {
@@ -1664,6 +1698,7 @@ interface Task {
1664
1698
  outputSchema?: object;
1665
1699
  currentPrompt?: string | null;
1666
1700
  system?: string | null;
1701
+ promptParts?: Omit<SystemPromptParts, 'servers'>;
1667
1702
  systemPrompt?: string;
1668
1703
  model?: string | null;
1669
1704
  effort?: Effort | null;
@@ -1717,7 +1752,6 @@ interface TurnResult {
1717
1752
  threadId: string | null;
1718
1753
  turnId?: string | null;
1719
1754
  finalMessage?: string;
1720
- touchedFiles?: string[];
1721
1755
  tokens?: TokenUsage | null;
1722
1756
  contextTokens?: number;
1723
1757
  /** The model that ran the turn (tokens are only comparable per model). */
@@ -1744,21 +1778,571 @@ interface Approval {
1744
1778
  } | null;
1745
1779
  [key: string]: unknown;
1746
1780
  }
1747
- /** A [flag-or-command, description] pair rendered in help tables. */
1748
- type HelpRow = [string, string];
1749
- /** Help metadata for one command. */
1750
- interface CommandHelpSpec {
1751
- usage: string;
1752
- summary?: string;
1753
- flags?: HelpRow[];
1754
- globalFlags?: HelpRow[];
1755
- exitCodes?: HelpRow[];
1756
- examples?: HelpRow[];
1757
- /** Environment variables the command reads: name → what it does. */
1758
- env?: HelpRow[];
1759
- seeAlso?: string;
1760
- }
1761
- /** A subcommand handler. Receives the argv slice after the command name. */
1762
- type CommandHandler = (argv: string[]) => Promise<void> | void;
1763
1781
  //#endregion
1764
- export { type InstallationSettings as A, RunnerUpdate as C, type AgentEvent as D, type AgentDefinition as E, type CustomModelConfig as F, type config as I, TaskContext as M, type TaskSource as N, type AgentTask as O, type CoderConfig as P, type RunnerTest as S, type Agent as T, type RunnerInput as _, type HelpRow as a, type RunnerRow as b, type TaskStatus as c, type TokenUsage as d, type AppSync as f, type ProbeResult as g, type LocalFolders as h, type CommandHelpSpec as i, type Preset as j, type AgentUsage as k, type TurnResult as l, LocalFolder as m, type Availability as n, McpServerSpec as o, ConnectionRow as p, CommandHandler as r, Task as s, Approval as t, TaskLogEntry as u, RunnerKind as v, type TaskTurn as w, type RunnerSpec as x, type RunnerPairing as y };
1782
+ //#region src/flow/types.d.ts
1783
+ /** Anything with zod's parse shape; the flow runtime never imports zod itself. */
1784
+ interface FlowSchema<T> {
1785
+ parse(value: unknown): T;
1786
+ }
1787
+ interface FlowTaskResult<T = unknown> {
1788
+ taskId: string;
1789
+ status: string;
1790
+ output: string;
1791
+ data?: T;
1792
+ tokens: TokenUsage | null;
1793
+ model: string | null;
1794
+ }
1795
+ interface GateResult {
1796
+ ok: boolean;
1797
+ code: number;
1798
+ output: string;
1799
+ }
1800
+ /** Options shared with `coder run`, plus `returns`. */
1801
+ interface FlowTaskOptions<T = unknown> {
1802
+ engine?: string;
1803
+ model?: string;
1804
+ effort?: string;
1805
+ permissions?: string;
1806
+ mcp?: string | McpServerSpec[];
1807
+ name?: string;
1808
+ system?: string;
1809
+ cwd?: string;
1810
+ addDirs?: string[];
1811
+ returns?: FlowSchema<T>;
1812
+ }
1813
+ /** Overrides for one more turn, as `coder task steer` takes them. */
1814
+ interface FlowSteerOptions {
1815
+ model?: string;
1816
+ effort?: string;
1817
+ permissions?: string;
1818
+ }
1819
+ type FlowRunStatus = 'running' | 'completed' | 'failed' | 'stopped';
1820
+ /** An event recorded by the flow runtime and delivered to its hooks and followers. */
1821
+ type FlowEvent = {
1822
+ kind: 'task-start';
1823
+ taskId: string;
1824
+ name?: string;
1825
+ prompt: string;
1826
+ engine?: string;
1827
+ depth?: number;
1828
+ } | {
1829
+ kind: 'task-end';
1830
+ taskId: string;
1831
+ status: string;
1832
+ tokens: TokenUsage | null;
1833
+ } | {
1834
+ kind: 'gate-start';
1835
+ gateId: string;
1836
+ cmd: string;
1837
+ depth?: number;
1838
+ } | {
1839
+ kind: 'gate';
1840
+ gateId?: string;
1841
+ cmd: string;
1842
+ ok: boolean;
1843
+ code: number;
1844
+ depth?: number;
1845
+ } | {
1846
+ kind: 'log';
1847
+ message: string;
1848
+ depth?: number;
1849
+ } | {
1850
+ kind: 'flow-start';
1851
+ name: string;
1852
+ depth: number;
1853
+ } | {
1854
+ kind: 'replay';
1855
+ count: number;
1856
+ };
1857
+ interface JournalEntry {
1858
+ seq: number;
1859
+ kind: 'task' | 'gate' | 'flow';
1860
+ fingerprint: string;
1861
+ result: unknown;
1862
+ taskId?: string;
1863
+ tokens?: TokenUsage | null;
1864
+ startedAt: string;
1865
+ endedAt: string;
1866
+ }
1867
+ /** flow.json: the persisted run record. */
1868
+ interface FlowRecord {
1869
+ runId: string;
1870
+ name: string;
1871
+ script: string;
1872
+ args: unknown;
1873
+ status: FlowRunStatus;
1874
+ startedAt: string;
1875
+ endedAt?: string;
1876
+ /** Orchestrator process while status is running; cleared on every terminal write. */
1877
+ pid?: number;
1878
+ pidStartedAt?: string;
1879
+ concurrency: number;
1880
+ concurrencySet?: boolean;
1881
+ maxTasks: number;
1882
+ taskCount: number;
1883
+ ledger: Record<string, TokenUsage>;
1884
+ result?: unknown;
1885
+ error?: string;
1886
+ /** Hidden from the default list; set by auto-archive or `flow archive`. */
1887
+ archived?: boolean;
1888
+ archivedAt?: string;
1889
+ }
1890
+ /** One `flow result` step row: a journaled task with its current status. */
1891
+ interface FlowStep {
1892
+ taskId: string | null;
1893
+ name: string | null;
1894
+ status: string;
1895
+ tokens: TokenUsage | null;
1896
+ }
1897
+ interface DiscoveredFlow {
1898
+ name: string;
1899
+ path: string;
1900
+ /** `builtin` flows ship with coder; their `path` is `builtin:<name>`. */
1901
+ scope: 'workspace' | 'global' | 'builtin';
1902
+ }
1903
+ //#endregion
1904
+ //#region src/flow/journal.d.ts
1905
+ /**
1906
+ * Prefix-order replay. A call matches the first unconsumed recorded entry with
1907
+ * an identical fingerprint (fingerprint match rather than strict positional
1908
+ * next, so concurrent pipelines resume correctly); a miss runs live. The file
1909
+ * is truncated on construction and rewritten in this run's completion order, so
1910
+ * every run leaves a clean journal for the next resume.
1911
+ */
1912
+ declare class Journal {
1913
+ private file;
1914
+ private recorded;
1915
+ private seq;
1916
+ constructor(recorded: JournalEntry[], file: string);
1917
+ private write;
1918
+ /** Recorded result for one of these fingerprints, or null to run live. */
1919
+ replay(...fps: string[]): JournalEntry | null;
1920
+ record(entry: Omit<JournalEntry, 'seq'>): void;
1921
+ }
1922
+ //#endregion
1923
+ //#region src/flow/runtime.d.ts
1924
+ /** Progress callbacks a foreground caller can attach to a run. */
1925
+ interface FlowHooks {
1926
+ /** Fired once the run is armed, with a stop handle for a SIGINT handler. */
1927
+ onStart?: (h: {
1928
+ runId: string;
1929
+ requestStop: () => void;
1930
+ runningIds: () => string[];
1931
+ }) => void;
1932
+ onEvent?: (event: FlowEvent) => void;
1933
+ }
1934
+ interface RunContext {
1935
+ runId: string;
1936
+ runDir: string;
1937
+ cwd: string;
1938
+ journal: Journal;
1939
+ semaphore: Semaphore;
1940
+ /** The caller set no concurrency, so the flow's own `concurrency` export applies. */
1941
+ flowConcurrency: boolean;
1942
+ maxTasks: number;
1943
+ dryRun: boolean;
1944
+ ledger: Record<string, TokenUsage>;
1945
+ running: Set<string>;
1946
+ taskCount: number;
1947
+ stopping: boolean;
1948
+ hooks: FlowHooks;
1949
+ /** Caller-owned platform credential; in memory only, never written to flow.json. */
1950
+ integrationToken?: string;
1951
+ connections?: {
1952
+ mcp: Record<string, McpServerSpec>;
1953
+ env: Record<string, string>;
1954
+ ids: string[];
1955
+ };
1956
+ ceiling?: {
1957
+ agent: string;
1958
+ permissions: string;
1959
+ };
1960
+ }
1961
+ declare class Semaphore {
1962
+ limit: number;
1963
+ private active;
1964
+ private queue;
1965
+ constructor(limit: number);
1966
+ run<T>(fn: () => Promise<T>): Promise<T>;
1967
+ }
1968
+ /**
1969
+ * Dispatch one coder task and await its result. With a `returns` schema the
1970
+ * reply is validated and `data` is guaranteed (validation failure throws).
1971
+ * Inside a flow run, results are journaled and replayed on resume.
1972
+ */
1973
+ declare function task<T>(prompt: string, opts: FlowTaskOptions<T> & {
1974
+ returns: FlowSchema<T>;
1975
+ }): Promise<FlowTaskResult<T> & {
1976
+ data: T;
1977
+ }>;
1978
+ /** Dispatch one coder task and await its result. Mirrors `coder run`. */
1979
+ declare function task(prompt: string, opts?: FlowTaskOptions): Promise<FlowTaskResult>;
1980
+ /** Continue a task this run started, on the same id, and await the turn. Mirrors `coder task steer --wait`. */
1981
+ declare function steer(taskId: string, text: string, opts?: FlowSteerOptions): Promise<FlowTaskResult>;
1982
+ /**
1983
+ * Run a shell command as a checkpoint. Never throws. Inspect `ok`/`code`.
1984
+ * output is captured (capped) and journaled for resume.
1985
+ */
1986
+ declare function gate(cmd: string, opts?: {
1987
+ cwd?: string;
1988
+ }): Promise<GateResult>;
1989
+ type Stage = (prev: any, item: any, index: number) => unknown;
1990
+ type S<P, T, R> = (prev: P, item: T, index: number) => R | Promise<R>;
1991
+ /**
1992
+ * Run each item through the stages independently, with no barrier between
1993
+ * stages. Each stage receives `(prev, item, index)`; a thrown stage drops
1994
+ * that item to `null` and skips its remaining stages.
1995
+ */
1996
+ declare function pipeline<T, A>(items: T[], s1: S<T, T, A>): Promise<(A | null)[]>;
1997
+ declare function pipeline<T, A, B>(items: T[], s1: S<T, T, A>, s2: S<A, T, B>): Promise<(B | null)[]>;
1998
+ declare function pipeline<T, A, B, C>(items: T[], s1: S<T, T, A>, s2: S<A, T, B>, s3: S<B, T, C>): Promise<(C | null)[]>;
1999
+ declare function pipeline<T, A, B, C, D>(items: T[], s1: S<T, T, A>, s2: S<A, T, B>, s3: S<B, T, C>, s4: S<C, T, D>): Promise<(D | null)[]>;
2000
+ declare function pipeline<T>(items: T[], ...stages: Stage[]): Promise<any[]>;
2001
+ /** Emit a progress line to the run's event stream. */
2002
+ declare function log(msg: string): void;
2003
+ /**
2004
+ * Run another flow inline as a sub-step and return its result. Nesting is one
2005
+ * level deep. A subflow cannot call `flow()` itself.
2006
+ */
2007
+ declare function flow(name: string, args?: unknown): Promise<unknown>;
2008
+ //#endregion
2009
+ //#region src/core/state.d.ts
2010
+ interface TurnResultEntry {
2011
+ at?: string;
2012
+ prompt?: string | null;
2013
+ /** Steers the engine took into this turn while it ran. */
2014
+ steers?: string[];
2015
+ lastReply?: string;
2016
+ finalMessage?: string;
2017
+ error?: TurnResult['error'];
2018
+ status?: number;
2019
+ tokens?: TurnResult['tokens'];
2020
+ model?: TurnResult['model'];
2021
+ [key: string]: unknown;
2022
+ }
2023
+ declare function readTurnResults(cwd: string, taskId: string): TurnResultEntry[];
2024
+ //#endregion
2025
+ //#region src/flow/executor.d.ts
2026
+ interface RunOptions {
2027
+ runId?: string;
2028
+ args?: unknown;
2029
+ concurrency?: number;
2030
+ maxTasks?: number;
2031
+ dryRun?: boolean;
2032
+ cwd?: string;
2033
+ /** Platform credential for built-in integrations; never persisted with the run. */
2034
+ integrationToken?: string;
2035
+ connections?: RunContext['connections'];
2036
+ /** The agent whose permissions cap every task this run starts. */
2037
+ ceiling?: {
2038
+ agent: string;
2039
+ permissions: string;
2040
+ };
2041
+ }
2042
+ interface RunSummary {
2043
+ runId: string;
2044
+ name: string;
2045
+ status: 'completed';
2046
+ result: unknown;
2047
+ tokens: Record<string, TokenUsage>;
2048
+ taskCount: number;
2049
+ }
2050
+ interface StopSummary {
2051
+ runId: string;
2052
+ status: FlowRecord['status'];
2053
+ stoppedTasks: string[];
2054
+ keptTasks: string[];
2055
+ }
2056
+ declare const review$1: {
2057
+ run(options?: ReviewArgs): Promise<ReviewResult & {
2058
+ runId: string;
2059
+ }>;
2060
+ };
2061
+ //#endregion
2062
+ //#region src/flow/runs.d.ts
2063
+ /** A run's record with its step rows, trimmed journal and recorded events. */
2064
+ type RunResult = FlowRecord & {
2065
+ steps: FlowStep[];
2066
+ journal: Array<Pick<JournalEntry, 'kind' | 'taskId' | 'tokens'>>;
2067
+ events: FlowEvent[];
2068
+ };
2069
+ type Archived = {
2070
+ runId: string;
2071
+ archived: true;
2072
+ };
2073
+ type ArchivedAll = {
2074
+ archived: string[];
2075
+ count: number;
2076
+ };
2077
+ /** Archive one stopped run, or with `allStopped` every one. */
2078
+ declare function archiveRuns(runId: string, opts?: {
2079
+ allStopped?: false;
2080
+ }): Archived;
2081
+ declare function archiveRuns(runId: string | undefined, opts: {
2082
+ allStopped: true;
2083
+ }): ArchivedAll;
2084
+ declare function archiveRuns(runId?: string, opts?: {
2085
+ allStopped?: boolean;
2086
+ }): Archived | ArchivedAll;
2087
+ type Deleted = {
2088
+ runId: string;
2089
+ deleted: boolean;
2090
+ };
2091
+ type DeletedAll = {
2092
+ deleted: string[];
2093
+ count: number;
2094
+ };
2095
+ /** Delete one stopped run's record (its tasks are left alone), or with `allArchived` every archived one. */
2096
+ declare function deleteRuns(runId: string, opts?: {
2097
+ allArchived?: false;
2098
+ }): Deleted;
2099
+ declare function deleteRuns(runId: string | undefined, opts: {
2100
+ allArchived: true;
2101
+ }): DeletedAll;
2102
+ declare function deleteRuns(runId?: string, opts?: {
2103
+ allArchived?: boolean;
2104
+ }): Deleted | DeletedAll;
2105
+ //#endregion
2106
+ //#region src/core/errors.d.ts
2107
+ /** The run-native-subagent fallback payload the CLI prints on exit 3. */
2108
+ interface FallbackPayload {
2109
+ error: string;
2110
+ fallback: {
2111
+ action: 'run-native-subagent';
2112
+ reason: 'no-engine-available';
2113
+ permissions: string;
2114
+ instructions: string;
2115
+ note: string;
2116
+ system?: string;
2117
+ task: string;
2118
+ };
2119
+ }
2120
+ /** Recoverable errors with CLI exit codes. */
2121
+ type CoderErrorCode = 'nested-dispatch' | 'invalid-option' | 'read-only-unavailable' | 'startup-failed' | 'chain-exhausted' | 'approval-pending' | 'task-failed' | 'flow-failed' |
2122
+ /** A Coder server refused or failed a request; `status` carries the HTTP status. */
2123
+ 'server' |
2124
+ /** Sign-in to a server did not complete. */
2125
+ 'login-failed';
2126
+ declare class CoderError extends Error {
2127
+ code: CoderErrorCode;
2128
+ hint?: string | string[];
2129
+ taskId?: string;
2130
+ /** chain-exhausted: the run-native-subagent payload the CLI prints on exit 3. */
2131
+ payload?: FallbackPayload;
2132
+ /** approval-pending: the approval to answer. */
2133
+ approval?: {
2134
+ id: string;
2135
+ summary: string;
2136
+ cwd?: string | null;
2137
+ networkHost?: string | null;
2138
+ };
2139
+ /** task-failed (flow task()): the failed task's result. */
2140
+ result?: unknown;
2141
+ /** flow-failed: the run to resume. */
2142
+ runId?: string;
2143
+ /** server: the HTTP status the server answered with. */
2144
+ status?: number;
2145
+ needs?: 'key';
2146
+ constructor(code: CoderErrorCode, message: string, extra?: Partial<Pick<CoderError, 'hint' | 'taskId' | 'payload' | 'approval' | 'result' | 'runId' | 'status' | 'needs'>>);
2147
+ }
2148
+ //#endregion
2149
+ //#region src/core/dispatch.d.ts
2150
+ interface TaskResult {
2151
+ taskId: string;
2152
+ status: TaskStatus;
2153
+ result: TurnResult | null;
2154
+ /** The last `tail` progress-log entries; [] at the default tail of 0. */
2155
+ steps: TaskLogEntry[];
2156
+ /** One entry per finished turn (a steered task accretes turns). */
2157
+ turns: TurnResultEntry[];
2158
+ task: Task;
2159
+ }
2160
+ /** Read a task's current state and result.json without waiting. `tail` fills `steps`. */
2161
+ declare function readTask(cwd: string, taskId: string, opts?: {
2162
+ tail?: number | 'all';
2163
+ }): TaskResult;
2164
+ //#endregion
2165
+ //#region src/flow/index.d.ts
2166
+ /**
2167
+ * The flow's `--args` value. A Proxy over the ALS-bound current args, so a
2168
+ * top-level `import { args }` reflects whichever run is executing.
2169
+ */
2170
+ declare const args$1: Record<string, unknown>;
2171
+ /** Run and inspect flows programmatically; mirrors `coder flow`. */
2172
+ declare const flowSdk: {
2173
+ /** Run a flow and await its result. */
2174
+ run(nameOrPath: string, opts?: RunOptions): Promise<RunSummary>;
2175
+ /** Recent flow runs (mirrors `coder flow list`). */
2176
+ list(opts?: {
2177
+ archived?: boolean;
2178
+ limit?: number | "all";
2179
+ }): FlowRecord[];
2180
+ /** Flows discoverable from a directory (workspace + global). */
2181
+ discover(cwd?: string): DiscoveredFlow[];
2182
+ /** A run's record with its step rows, journal and events (omit the id for the most recent run). `tail` caps steps (default 'all'; 0 → []). */
2183
+ result(runId?: string, opts?: {
2184
+ tail?: number | "all";
2185
+ }): RunResult | null;
2186
+ /** Follow a run live: an async iterable of flow events, ending when the run is terminal. `tail` replays only the last n (default 'all'). */
2187
+ stream(runId?: string, opts?: {
2188
+ tail?: number | "all";
2189
+ }): AsyncGenerator<FlowEvent>;
2190
+ /** Stop a running flow (and, by default, its still-running tasks). */
2191
+ stop(runId?: string, opts?: {
2192
+ keepTasks?: boolean;
2193
+ }): Promise<StopSummary>;
2194
+ /** Continue a stopped or edited run from its journal and await the result. */
2195
+ resume(runId?: string, opts?: RunOptions): Promise<RunSummary>;
2196
+ /** Archive a run (hide it from the default list), or with `allStopped` every stopped one. A running run must be stopped first. */
2197
+ archive: typeof archiveRuns;
2198
+ /** Delete a run's record from disk (its tasks are left alone), or with `allArchived` every archived one. A running run must be stopped first. */
2199
+ delete: typeof deleteRuns;
2200
+ };
2201
+ //#endregion
2202
+ //#region src/flow/builtin/review/index.d.ts
2203
+ declare const description = "Review a code change.";
2204
+ declare const args: z.ZodObject<{
2205
+ pr: z.ZodOptional<z.ZodUnion<readonly [z.ZodNumber, z.ZodString]>>;
2206
+ base: z.ZodOptional<z.ZodString>;
2207
+ head: z.ZodOptional<z.ZodString>;
2208
+ since: z.ZodOptional<z.ZodString>;
2209
+ post: z.ZodOptional<z.ZodBoolean>;
2210
+ author: z.ZodOptional<z.ZodString>;
2211
+ path: z.ZodOptional<z.ZodArray<z.ZodString>>;
2212
+ exclude: z.ZodOptional<z.ZodArray<z.ZodString>>;
2213
+ engine: z.ZodOptional<z.ZodString>;
2214
+ model: z.ZodOptional<z.ZodString>;
2215
+ effort: z.ZodOptional<z.ZodEnum<{
2216
+ low: "low";
2217
+ medium: "medium";
2218
+ high: "high";
2219
+ }>>;
2220
+ cwd: z.ZodOptional<z.ZodString>;
2221
+ }, z.core.$strip>;
2222
+ type ReviewArgs = z.infer<typeof args>;
2223
+ /** Tasks at once unless the caller sets a concurrency. */
2224
+ declare const concurrency = 4;
2225
+ declare const Finding: z.ZodObject<{
2226
+ file: z.ZodString;
2227
+ line: z.ZodNumber;
2228
+ severity: z.ZodEnum<{
2229
+ critical: "critical";
2230
+ major: "major";
2231
+ minor: "minor";
2232
+ nit: "nit";
2233
+ }>;
2234
+ category: z.ZodEnum<{
2235
+ correctness: "correctness";
2236
+ security: "security";
2237
+ reliability: "reliability";
2238
+ performance: "performance";
2239
+ maintainability: "maintainability";
2240
+ testing: "testing";
2241
+ documentation: "documentation";
2242
+ }>;
2243
+ summary: z.ZodString;
2244
+ failure_scenario: z.ZodString;
2245
+ }, z.core.$strict>;
2246
+ type Finding = z.infer<typeof Finding> & {
2247
+ fingerprint: string;
2248
+ };
2249
+ interface ReviewSummary {
2250
+ baseSha: string;
2251
+ headSha: string;
2252
+ /** Also covers uncommitted and untracked files on top of `headSha`. */
2253
+ worktree: boolean;
2254
+ files: number;
2255
+ model: string | null;
2256
+ elapsedMs: number;
2257
+ posted?: number;
2258
+ /** Parts left out of the review, such as uninitialized submodules. */
2259
+ warnings?: string[];
2260
+ }
2261
+ interface ReviewResult {
2262
+ findings: Finding[];
2263
+ summary: ReviewSummary;
2264
+ }
2265
+ /** A review's findings as the CLI prints them and a task receives them. */
2266
+ declare function renderReviewMarkdown(result: ReviewResult & {
2267
+ runId: string;
2268
+ }): string;
2269
+ /** New-side line ranges per file from a unified diff. */
2270
+ declare function changedLines(patch: string): Map<string, Array<[number, number]>>;
2271
+ /** Stable finding key from its file, category and neighbouring lines. */
2272
+ declare function fingerprint(file: string, text: string, category: string): string;
2273
+ /** AGENTS.md / CLAUDE.md, then .coder/review.md, all read at `sha`. */
2274
+ declare function repositoryRules(exec: ReviewExec, sha: string): Array<[name: string, text: string]>;
2275
+ interface ReviewServices {
2276
+ exec?: ReviewExec;
2277
+ reviewTask?: typeof task;
2278
+ /** Test-only override for the transient task credential. */
2279
+ integrationToken?: string;
2280
+ }
2281
+ declare function review(a: ReviewArgs, services?: ReviewServices): Promise<ReviewResult>;
2282
+ type ReviewExec = (command: string, args: string[], input?: string) => string;
2283
+ type ReviewPostFinding = Finding;
2284
+ type ReviewPostSummary = Pick<ReviewSummary, 'baseSha' | 'headSha' | 'model' | 'elapsedMs'> & {
2285
+ author: string;
2286
+ };
2287
+ interface ReviewPostInput {
2288
+ repo: string;
2289
+ pr: number;
2290
+ cwd?: string;
2291
+ findings: ReviewPostFinding[];
2292
+ summary: ReviewPostSummary;
2293
+ since?: string;
2294
+ }
2295
+ interface ReviewTargetInput {
2296
+ pr: number | string;
2297
+ /** The only repository the target may be in. */
2298
+ repo?: string;
2299
+ cwd?: string;
2300
+ since?: string;
2301
+ author?: string;
2302
+ }
2303
+ interface ReviewTarget {
2304
+ pr?: {
2305
+ number: number;
2306
+ repo: string;
2307
+ author: string;
2308
+ };
2309
+ baseSha: string;
2310
+ headSha: string;
2311
+ since?: string;
2312
+ }
2313
+ interface ReviewAuth {
2314
+ /** Installation token from the task context. Omit to use local gh auth. */
2315
+ token?: string;
2316
+ exec?: ReviewExec;
2317
+ }
2318
+ /** The platform reviews post to; its tool server holds the token. */
2319
+ declare const REVIEW_PLATFORM = "github";
2320
+ interface ReviewComment {
2321
+ id: number;
2322
+ body?: string | null;
2323
+ user?: {
2324
+ login?: string;
2325
+ } | null;
2326
+ }
2327
+ declare function reviewCli(cwd?: string, token?: string): ReviewExec;
2328
+ declare function parseGithubPr(value: number | string): {
2329
+ number: number;
2330
+ repo?: string;
2331
+ };
2332
+ declare function reviewFingerprints(comments: Array<{
2333
+ body?: string | null;
2334
+ }>): Set<string>;
2335
+ declare function lastReviewSummary(comments: Array<{
2336
+ id: number;
2337
+ body?: string | null;
2338
+ }>): {
2339
+ id: number;
2340
+ head: string;
2341
+ } | undefined;
2342
+ declare function ownReviewComments(comments: ReviewComment[], author: string): ReviewComment[];
2343
+ /** Resolve and fetch a GitHub pull request for the integration-generic review flow. */
2344
+ declare function resolveReviewTarget(input: ReviewTargetInput, auth?: ReviewAuth): ReviewTarget;
2345
+ /** Post unseen findings and upsert the sticky summary through GitHub's integration. */
2346
+ declare function postReview(input: ReviewPostInput, auth?: ReviewAuth): number;
2347
+ //#endregion
2348
+ export { type FlowTaskOptions as $, type flowSdk as A, TaskSource as At, type review$1 as B, renderReviewMarkdown as C, AgentDefinition as Ct, type reviewCli as D, InstallationSettings as Dt, type review as E, AgentUsage as Et, type archiveRuns as F, type pipeline as G, type flow as H, type deleteRuns as I, type DiscoveredFlow as J, type steer as K, type RunOptions as L, readTask as M, CustomModelConfig as Mt, type CoderError as N, config as Nt, type reviewFingerprints as O, Preset as Ot, type RunResult as P, type FlowStep as Q, type RunSummary as R, type postReview as S, Agent as St, type resolveReviewTarget as T, AgentTask as Tt, type gate as U, type readTurnResults as V, type log as W, type FlowRecord as X, type FlowEvent as Y, type FlowSteerOptions as Z, type description as _, RunnerRow as _t, type ReviewExec as a, type TaskStatus as at, type ownReviewComments as b, RunnerUpdate as bt, type ReviewPostSummary as c, TokenUsage as ct, type ReviewSummary as d, LocalFolder as dt, FlowTaskResult as et, type ReviewTarget as f, LocalFolders as ft, type concurrency as g, RunnerPairing as gt, type changedLines as h, RunnerKind as ht, type ReviewAuth as i, Task as it, type TaskResult as j, CoderConfig as jt, type args$1 as k, TaskContext as kt, type ReviewResult as l, AppSync as lt, args as m, RunnerInput as mt, type REVIEW_PLATFORM as n, Approval as nt, ReviewPostFinding as o, TurnResult as ot, ReviewTargetInput as p, ProbeResult as pt, task as q, ReviewArgs as r, Availability as rt, ReviewPostInput as s, TaskLogEntry as st, Finding as t, GateResult as tt, ReviewServices as u, ConnectionRow as ut, fingerprint as v, RunnerSpec as vt, type repositoryRules as w, AgentEvent as wt, type parseGithubPr as x, TaskTurn as xt, type lastReviewSummary as y, RunnerTest as yt, type StopSummary as z };