@wular/coder 0.4.10 → 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.
- package/README.md +3 -1
- package/dist/actions-BT7_eKXm.js +10 -0
- package/dist/{adapter-BeezVK-B.js → adapter-BT8ECcRG.js} +1 -1
- package/dist/{adapter-ChaISKgI.js → adapter-CU9H4g6c.js} +1 -1
- package/dist/{adapter-MD6ahqPR.js → adapter-CVd5klMH.js} +1 -1
- package/dist/{agent-B8ItyuHN.js → agent-BA6xr8QY.js} +2 -2
- package/dist/apps-D-v5sQJk.js +367 -0
- package/dist/args-CbO_Ck9Z.js +11 -0
- package/dist/async-XNO3nqum.js +3 -0
- package/dist/auth-DuXnSNf9.js +1 -0
- package/dist/base64url-CsVsW4Id.js +1 -0
- package/dist/chat-CgQdDRhs.js +13 -0
- package/dist/cli.js +19 -1
- package/dist/{client-DzwzCsue.js → client-C4QCT6cG.js} +2 -2
- package/dist/cmd-DX5ByXo3.js +119 -0
- package/dist/connection-DNxi2btM.js +1 -0
- package/dist/context-65bOofts.js +7 -0
- package/dist/dash/standalone/node_modules/contextjsx/dist/index.mjs +1 -0
- package/dist/dash/standalone/node_modules/contextjsx/dist/jsx-runtime.mjs +1 -0
- package/dist/dash/standalone/node_modules/contextjsx/dist/src-BJ0QFeB8.mjs +2 -0
- package/dist/dash/standalone/node_modules/contextjsx/package.json +70 -0
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1187 -1187
- package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/context/turn.dac8eb211c500271.js +141 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.843431e3538fd9a4.js → index.0de14cb4e30bd70d.js} +1 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.7ae462ef36271be8.js → load.be791a5eaf328738.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.806027fde54ab723.js → page.0fbfdba5254f7ae5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.bd04d2d3eba00676.js → page.70913bd4075da914.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.857748e260c691e3.js → notify.61aab176baeefebd.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.25153459858542f9.js → page.815371ed0d5dd4fa.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{sign-out.ff98573f362d76f3.js → sign-out.1d6af804f9ec043d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.8efd14bc39281da9.js → agents-grid.f43bcc1148ce3650.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{connect-apps.d1e67db29b12dc0a.js → connect-apps.f3af8cc8540719d7.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.0f7d5e3e42462870.js → page.c6efd5432c1a4a75.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.05210ffa6038791f.js → layout.a795379254982121.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.19fe116c0f802cb1.js → page.a2cb6d1f1714259a.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.f87fd8eb66f73af0.js → page.996172c951739b35.js} +12 -16
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.b6c3d3184e167d0b.js → platform-actions.8e7ca54dd1821e98.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.28220621573033d7.js → agent-settings-form.aa9e157d141481d7.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.2f7467868f599ebc.js → page.44d886e60ae04303.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.ec94096015346f2c.js → loading.521c9e7b8d77f557.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.a92a36a8ce21088c.js → page.828cfb8112404792.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.8935a5fe5c08bcf1.js → page.45e18b6dc3019af4.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.5b97ab6d40e2e639.js → versions-list.c8d76988c734dda2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{loading.bedcc1aba372fbce.js → loading.b1367e864b4fb406.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.14760e9eedd6ff8e.js → page.dd11f2618e08becd.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.a6ee8bd882178e29.js → agent-toggle.1579dc8acbaacf92.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.8be1dd4ea3ed6e17.js → hero.ad5cc342db794e5d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.59d89152fe845af2.js → connect-repositories.43b4b28f194ea842.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.77f68d431408745b.js → editor.776856fe1ed1a642.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.a7b01817a821819a.js → import-picker.eafa5b41a2ed571f.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.c4570fd80bdda68c.js → page.7d84ef2b178b34d2.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.19006c2d7dc8d114.js → layout.393cf7429eea189e.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{operator-apps.d350a52d27f69fa6.js → operator-apps.a244f3199e7cf09c.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.4a652f5080c2b863.js → page.980adfb7c5714752.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.d39f7a1719f50c6d.js → page.24a1987405ed7b17.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.ff7e1dadcd4df17f.js → connections-list.21ec9dc73ce68656.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.87a1f8ab71eb4bed.js → credentials-list.683476f62a9ecde7.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.a535c9c6dd8b4cdf.js → credentials.b43dd3d97c536c2a.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.29fffd07c1c3b771.js → engines-list.9e116751bd34e2cc.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.0c87d55cf4ef382c.js → list.083f5c665df04b1b.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.6fea9faddb8300bb.js → models-list.537f63f8e5dd085d.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.295245052b93af90.js → page.dfed4ae6ffc74434.js} +12 -12
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.a4a38e54d834a1ec.js → runners-list.3afa989490bbe77c.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.50f487766f87383c.js → secrets-list.0d175ee815b22cd7.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.c42e0ab39cb2c0e0.js → layout.3e8289f888fa444c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.6997506eaa1a4824.js → page.06feaa5fbb06f1e6.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.9458b49dc99bbaaa.js → create-link.ff95e4b6977d0474.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.77e402bb6e8e7f7e.js → page.f06fda0df59beeb5.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.fcda6f18c8207c99.js → activity.3c79cf14feff12bf.js} +1 -1
- 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
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.d0f039221a27b8ef.js → page.abed2a8424ef3da0.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-actions.f5f2016d2dc7f422.js → task-actions.587da79d68ab8d14.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.a292baa2410cdf64.js → task-view.dc294bb94b7437e1.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.2d4122eb33addbdd.js → composer.5072aacdce127689.js} +5 -5
- 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
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.021bdc2f3d90af2d.js → tasks-list.1162926f7498c732.js} +10 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.13f64b0836ae406b.js → tasks-section.1d687c986db53a73.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.b78f0df100410db0.js → page.d5d8cb5033823c9c.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.93c2306069c03c68.js → page.fb21ebe90d49dac1.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.95a2468086aceb84.js → stream.e2915852cf82c86b.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.e1a484113e1df660.js → task-toasts.0ed8ccaae81b9d53.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.968bcab0f5e3665d.js → action.b9a5c37272250e82.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.189224c16057d7a1.js → client.a3928fa2dcd27b75.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{action-410bdc82c416bc01.js → action-71685b2d5ad9f359.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agent-pills-0c0b8d40b9bfc78f.js → agent-pills-15da36c2cb81991b.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-6e6a87d6e673daa8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{agent-toggle-5ede0c449e88cb9d.js → agent-toggle-ca98586e3b4ce9ae.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agents-grid-ffb18df48e951ecb.js → agents-grid-29c399e46b4e9e2b.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{back-602db2cfdccf2e7f.js → back-fa9d6e37f9828093.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{combo-df2685e277db02c0.js → combo-86f3e11d1f6f6cee.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{composer-e1cefed81ea89b7e.js → composer-85e0ec7163ae18b7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/composer-910bb87127972f62.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{confirm-d163e6865d66dfab.js → confirm-c29a1db0130638d2.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-apps-ce3c9d049ebad459.js → connect-apps-b73490e04ae6398d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-0aa9abc77b9c3d48.js → connect-repositories-0de82daaf654b1d3.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connections-list-6eddeb8583ded10f.js → connections-list-c50f58b4b28d10bb.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{copy-0cc00656953531be.js → copy-445c11202f136275.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-6d64a2d5f9ce6de0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{credentials-list-1b6a81e9b4934dc8.js → credentials-list-bee95799b2319b3b.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{custom-range-cae5567874db83ca.js → custom-range-a0630599f907b30e.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{editor-d55d247a1d7de5f0.js → editor-b9951819f21b2e43.js} +2 -2
- package/dist/dash/standalone/static/assets/chunks/{engines-list-288559344de4d4b9.js → engines-list-2720c3e8fa12b2f7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{field-693bb870ad0bdee8.js → field-b82a0f895266791c.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{instructions-a3d7688e421f2a08.js → instructions-affaaeff366b1725.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-fd7402ac5aa8b50e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{list-2a59237cb7cb0a7c.js → list-d918f79562d497eb.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{models-list-5ed9ee02f9b66d98.js → models-list-12bc7aceaa52f5b0.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{notice-7d84ffab32ff24ca.js → notice-57db7a1f05b7308c.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-3cffe3507ea92af2.js → outcome-dialog-5cf575a5e6921a5d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-b219595be320108a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-1d27d2ba7eee9ff1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{platform-actions-4dc31567d00c4cb2.js → platform-actions-dba96dcb0f6513db.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{runners-list-984246a8f9450da1.js → runners-list-36f8c5ecfcf8e9ae.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{secrets-list-88f8b30abbab52f0.js → secrets-list-d7dbafd24dd18481.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{segmented-79c9c69b702e0b90.js → segmented-8f809ebe712e92a7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-cc13a835f3508618.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-f475017dd5811e33.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-0aa237eba3dfe9c1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{tail-99e29a541a072002.js → tail-b1c46587301ef397.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/task-681061023bdf0a49.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/{task-actions-1cdca1e8d3eee490.js → task-actions-c9e46e81604e85c5.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{task-view-fdcde0e31f63b737.js → task-view-134186a544917ceb.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{tasks-list-3ad1c93deff4fb2e.js → tasks-list-352a3222d878de0f.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{versions-list-60ac4d8f715bf5f7.js → versions-list-21cb854e6a7108a7.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-05df74b071ddb0b3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-2c19cca257f78ae6.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-2db05dfa62642a65.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-36b0d6085a073880.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-0b3b70f1aefb9947.js → pnext-client-576c06599e241231.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-6aa0f19a30d58d63.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6b30b71f452f2f07.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6ccb4d4fff812db3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-74eb465defba421e.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-8c692d12b2fd90d6.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-92e17d39063a9ced.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-93246aea268c2682.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-9954dcbc0c579e0d.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-8f96a4b8a00ff460.js → pnext-client-c0dfa1cdde9a9855.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-c28d38d4aafd4af6.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-ab36b406301fd2a4.js → pnext-client-c2c30dcb6dc31d60.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-dbf741073e11eac0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-e29194a27280333f.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-0d90849808b6eb05.js → pnext-client-f8a7e692b27caad9.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-fc5b8cfcba2a9f63.js +1 -0
- package/dist/discover-CPZdprlQ.js +1 -0
- package/dist/docs-x-l7gjFE.js +2 -0
- package/dist/drive-Y-ZlgiUW.js +1 -0
- package/dist/env-B9JG6gwo.js +1 -0
- package/dist/errors-XBA-Ls4n.js +10 -0
- package/dist/exec-iFssTO5V.js +3 -0
- package/dist/executor-Dt2FFT-y.js +11 -0
- package/dist/flow/builtin/review/index.d.ts +2 -0
- package/dist/flow/builtin/review/index.js +16 -0
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/http-BZfjbiov.js +1 -0
- package/dist/{types-8zO5Tc9c.d.ts → index-BdkdNI1v.d.ts} +710 -137
- package/dist/{integrations-DPxWtNnS.js → integrations-DyInAa5g.js} +2 -2
- package/dist/lib/broker.js +2 -2
- package/dist/load-zhcrwSRF.js +2 -0
- package/dist/local-D55UkW93.js +5 -0
- package/dist/maintenance-BfxcatXH.js +1 -0
- package/dist/{match-BfjPZ7gJ.js → match-Bq4sDuCy.js} +1 -1
- package/dist/mcp-Bta09QCU.js +13 -0
- package/dist/mcp-CUITALl1.js +1 -0
- package/dist/models-C1O2DrXx.js +1 -0
- package/dist/output-D95NoAA9.js +16 -0
- package/dist/prompt-onpyIyXK.js +8 -0
- package/dist/prompts-B8pKhMcu.js +4 -0
- package/dist/refresh-D-0K9fo3.js +1 -0
- package/dist/{remote-f-uny3XZ.js → remote-CDm0YUU3.js} +1 -1
- package/dist/runner-CTFTuaz_.js +1 -0
- package/dist/runner.json +1 -1
- package/dist/runner.tgz +0 -0
- package/dist/{runners-vsoGeyuc.js → runners-CYTicTb7.js} +3 -3
- package/dist/schema.d.ts +1 -1
- package/dist/schema.js +8 -1
- package/dist/sdk.d.ts +12552 -4
- package/dist/sdk.js +1 -1
- package/dist/serve-Bzs_lEg-.js +1 -0
- package/dist/serve-CWtLyyTz.js +12 -0
- package/dist/serve-DE6A-rBk.js +4 -0
- package/dist/{slack-Kpj-G9FE.js → slack-Bo5l13Rs.js} +4 -4
- package/dist/task-BU1JEK9X.js +7 -0
- package/dist/task-CPzBITsp.js +1 -0
- package/dist/tools-BMaKWTa6.js +1 -0
- package/dist/tools-CM4UCsId.js +1 -0
- package/dist/turn-DMvPfhb5.js +3 -0
- package/dist/{views-LmbLfqpu.js → views-DEdKqLm_.js} +1 -1
- package/dist/{wire-DshFMRsS.js → wire-JMNPv8f6.js} +1 -1
- package/dist/worker-BuP_Lem1.js +9 -0
- package/dist/worker-C1tuzq5n.js +1 -0
- package/docs/agents/index.md +19 -21
- package/docs/cli/agent.md +137 -0
- package/docs/cli/auth.md +48 -0
- package/docs/cli/connection.md +89 -0
- package/docs/cli/credentials.md +58 -0
- package/docs/cli/flow.md +158 -0
- package/docs/cli/index.md +139 -0
- package/docs/cli/model.md +116 -0
- package/docs/cli/runner.md +92 -0
- package/docs/cli/server.md +89 -0
- package/docs/cli/task.md +271 -0
- package/docs/flows.md +0 -6
- package/docs/mcp.md +8 -8
- package/docs/review.md +4 -0
- package/package.json +3 -1
- package/plugins/agents/skills/coder/SKILL.md +16 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/claude/.mcp.json +5 -0
- package/plugins/claude/skills/dispatch/SKILL.md +16 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/plugins/cursor/skills/coder/SKILL.md +16 -1
- package/dist/actions-C3Mgpl9J.js +0 -2
- package/dist/add-B26QSwPY.js +0 -6
- package/dist/add-BbXuvqj1.js +0 -1
- package/dist/add-Bk8drM-8.js +0 -1
- package/dist/add-CD_L-WW8.js +0 -2
- package/dist/agent-DHpMqHVi.js +0 -1
- package/dist/alias-CScCzXhS.js +0 -2
- package/dist/app-wHQJHu6N.js +0 -1
- package/dist/approvals-BIGQBbCM.js +0 -2
- package/dist/approve-BnZ3v-3c.js +0 -1
- package/dist/approve-DFSy7Z72.js +0 -2
- package/dist/apps-6BgpUsFh.js +0 -372
- package/dist/archive-CU0nhUeJ.js +0 -4
- package/dist/archive-CY2lvp_c.js +0 -3
- package/dist/args-BekfmD9t.js +0 -1
- package/dist/ask-CLDgHB_Y.js +0 -4
- package/dist/auth-C3KrIUf1.js +0 -1
- package/dist/auth-CGeSfgNb.js +0 -1
- package/dist/chat-AbW-LOHo.js +0 -13
- package/dist/chat-bridge-WK-pKNfw.js +0 -2
- package/dist/cli-Fp28pM4Y.js +0 -9
- package/dist/config-DoVedq6T.js +0 -3
- package/dist/connection-5V8doFL7.js +0 -1
- package/dist/connection-Cb0TK201.js +0 -1
- package/dist/create-CrjRdQip.js +0 -1
- package/dist/credentials-DoL9w8D1.js +0 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/event-prompt.87f064ca0141e796.js +0 -30
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-5a2601316e2ab283.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-08e49d49c0c3ee94.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-bc365f8dfe88e6b3.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-3f18e035338b0d0b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-f6fb8c69efa66508.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-ecd7200f7749c258.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-962398d15ee67c92.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/shared-init-ae95a674d381c095.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/side-toggle-7ada95cc7601eb49.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-95daa40d39de664f.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-12faa1754e3ef3be.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-23384b239b81a761.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-23e200dd9b7a79c0.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2562299eef46e62c.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-3a4ada64991e6a40.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-71e7ecdfcf86be84.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-726c29bbb81054c0.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-825e9f5b63950ef4.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-894cff70289fb7a3.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-9bc9b14c08020649.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-b8c585cae8da7778.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-bab4305b41abb15a.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-bd80926822b3993d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-cd4c7b4318fa1846.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-db55344d00b7888f.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-eddcd5df2b28120f.js +0 -1
- package/dist/default-tTTSBdXq.js +0 -1
- package/dist/delete-DM2sA12f.js +0 -2
- package/dist/delete-DR37NTr1.js +0 -4
- package/dist/disable-Dz_zLPX5.js +0 -1
- package/dist/discover-CqabH4Fx.js +0 -3
- package/dist/dispatch-BJZqI7sj.js +0 -8
- package/dist/docs-BV9SC67g.js +0 -2
- package/dist/docs-b2mAKC8Z.js +0 -2
- package/dist/drive-CU2HOCfR.js +0 -1
- package/dist/enable-Cfeki-ne.js +0 -1
- package/dist/env-DSddo-fz.js +0 -1
- package/dist/exec-DcWxZar6.js +0 -3
- package/dist/executor-LkokKTTd.js +0 -11
- package/dist/flow/builtin/review.d.ts +0 -2
- package/dist/flow/builtin/review.js +0 -12
- package/dist/flow-BQcdyrVK.js +0 -1
- package/dist/history-D_A5odLI.js +0 -8
- package/dist/http-CXaW1e7x.js +0 -1
- package/dist/init-DU_S43NG.js +0 -1
- package/dist/integrations-Dwvxl7i2.js +0 -1
- package/dist/list-7yd9K7d8.js +0 -1
- package/dist/list-BJ0j5eP9.js +0 -4
- package/dist/list-Boaz5b5n.js +0 -2
- package/dist/list-CIS-GYO1.js +0 -1
- package/dist/list-CR0_Emod2.js +0 -4
- package/dist/list-CnHZriYt.js +0 -3
- package/dist/list-_EH6c041.js +0 -1
- package/dist/list-i2r3Nlyz.js +0 -1
- package/dist/load-C-GZnuok.js +0 -2
- package/dist/local-Fs-dx_dP.js +0 -5
- package/dist/login-CzD2EMD_.js +0 -1
- package/dist/login-DISw6--d.js +0 -1
- package/dist/logout-DMnc5yri.js +0 -1
- package/dist/maintenance-BVDuG9Hg.js +0 -1
- package/dist/mcp-B-hy3eM-.js +0 -11
- package/dist/mcp-CbN-QcpF.js +0 -1
- package/dist/mcp-server-DQqSgD3P.js +0 -1
- package/dist/model-Ckyoyji3.js +0 -1
- package/dist/models-VaiIYlOW.js +0 -1
- package/dist/output-BKeyLbvt.js +0 -5
- package/dist/prompt-DQyPCLUo.js +0 -8
- package/dist/prompts-CEf7z4i_.js +0 -77
- package/dist/push-BNomfHJ3.js +0 -1
- package/dist/reconnect-Bd_jna1M.js +0 -1
- package/dist/refresh-D-broYEx.js +0 -1
- package/dist/remove-CCYHc1FN.js +0 -1
- package/dist/remove-DMTz_c25.js +0 -1
- package/dist/remove-DdcQ-6by.js +0 -1
- package/dist/remove-VtavIuGm.js +0 -1
- package/dist/rename-CKMyelWN.js +0 -1
- package/dist/result-CH3_tVXO.js +0 -5
- package/dist/result-DvOqIwhh.js +0 -18
- package/dist/resume-6j3RUpqa.js +0 -3
- package/dist/review-B4ETH5ki.js +0 -7
- package/dist/review-DDYD3Yvq.d.ts +0 -566
- package/dist/rotate-key-Byk_wI73.js +0 -1
- package/dist/run-DKJW7qwy.js +0 -2
- package/dist/run-DkYzyUnp.js +0 -5
- package/dist/run-LCE1XiyU.js +0 -2
- package/dist/runner-CxtzTgVq.js +0 -1
- package/dist/runner-Dnu1Vx_i.js +0 -1
- package/dist/schema-Brm7WIKd.js +0 -8
- package/dist/sdk-CKTCrtGe.d.ts +0 -12655
- package/dist/serve-C1zag2nr.js +0 -1
- package/dist/serve-C6tsUF0D.js +0 -2
- package/dist/serve-CCxSxXgv.js +0 -1
- package/dist/serve-D8J-sEqm.js +0 -12
- package/dist/server-B4SRYM2L.js +0 -1
- package/dist/setup-host-EaP4GPKB.js +0 -6
- package/dist/show-CjUG_aIp.js +0 -1
- package/dist/show-xdsqD6de.js +0 -1
- package/dist/status-BxV_ITeF.js +0 -1
- package/dist/steer-DZ3nkHfC.js +0 -4
- package/dist/stop-DGTUYxd6.js +0 -3
- package/dist/stop-qDw_DjOB.js +0 -1
- package/dist/task-C506SkPR.js +0 -1
- package/dist/task-CQmx_2SI.js +0 -7
- package/dist/task-Ls_-kcSx.js +0 -1
- package/dist/test-DF_qVK6S.js +0 -1
- package/dist/tools-S3eRQOVm.js +0 -1
- package/dist/unalias-CklkAN1B.js +0 -1
- package/dist/update-CZaFjwOJ.js +0 -2
- package/dist/upgrade-CUhFmPhl.js +0 -2
- package/dist/usage-DTAlb2rC.js +0 -1
- package/dist/watch-CJruitc6.js +0 -5
- package/dist/watch-p0j69fVA.js +0 -9
- package/dist/worker-BHXjDzRp.js +0 -1
- package/dist/worker-nyRZuq4g.js +0 -2
- package/dist/workflow-CJJUiSfv.js +0 -1
- package/docs/agents/prompt.md +0 -220
- package/docs/cli.md +0 -155
|
@@ -1,176 +1,176 @@
|
|
|
1
|
-
import
|
|
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<{
|
|
5
|
+
declare const engineSchema: z$1.ZodMiniEnum<{
|
|
4
6
|
custom: "custom";
|
|
5
7
|
claude: "claude";
|
|
6
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<{
|
|
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<{
|
|
36
38
|
http: "http";
|
|
37
39
|
stdio: "stdio";
|
|
38
|
-
sse: "sse";
|
|
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<{
|
|
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<{
|
|
47
48
|
custom: "custom";
|
|
48
49
|
claude: "claude";
|
|
49
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<{
|
|
102
|
+
disabled: z$1.ZodMiniOptional<z$1.ZodMiniBoolean<boolean>>;
|
|
103
|
+
}, z$1.core.$strict>, z$1.ZodMiniObject<{
|
|
104
|
+
provider: z$1.ZodMiniEnum<{
|
|
104
105
|
claude: "claude";
|
|
105
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<{
|
|
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<{
|
|
153
154
|
http: "http";
|
|
154
155
|
stdio: "stdio";
|
|
155
|
-
sse: "sse";
|
|
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?: {
|
|
@@ -1399,15 +1399,8 @@ interface AgentEvent {
|
|
|
1399
1399
|
defaultBranch: string;
|
|
1400
1400
|
};
|
|
1401
1401
|
}
|
|
1402
|
-
/** A handle on another integration, linked to this installation at install time. */
|
|
1403
|
-
type InstallationLink = {
|
|
1404
|
-
kind: 'installation';
|
|
1405
|
-
id: string;
|
|
1406
|
-
};
|
|
1407
1402
|
/** Per-installation settings a user sets from the platform (`/setup` in Slack). */
|
|
1408
1403
|
interface InstallationSettings {
|
|
1409
|
-
/** `owner/name` of the repo whose `.coder/` holds this agent's usage and instructions. */
|
|
1410
|
-
configRepo?: string;
|
|
1411
1404
|
model?: string;
|
|
1412
1405
|
engine?: string;
|
|
1413
1406
|
effort?: string;
|
|
@@ -1451,19 +1444,9 @@ interface AgentTask {
|
|
|
1451
1444
|
/** Stored agent body for runners whose checkout does not contain the agent. */
|
|
1452
1445
|
files?: Record<string, string>;
|
|
1453
1446
|
usage?: AgentUsage;
|
|
1454
|
-
/** Effective tools per integration the
|
|
1447
|
+
/** Effective tools per integration the agent declares, by its access mode; every installation of the agent's apps serves them. */
|
|
1455
1448
|
tools: Record<string, string[]>;
|
|
1456
|
-
/**
|
|
1457
|
-
toolScopes?: Record<string, {
|
|
1458
|
-
repo?: {
|
|
1459
|
-
owner: string;
|
|
1460
|
-
name: string;
|
|
1461
|
-
};
|
|
1462
|
-
/** Chat SDK thread id. */
|
|
1463
|
-
thread?: string;
|
|
1464
|
-
within?: string;
|
|
1465
|
-
}>;
|
|
1466
|
-
/** Context gathered by the receiver: repository instructions and who asked. */
|
|
1449
|
+
/** Context gathered by the receiver: notes for the turn and who asked. */
|
|
1467
1450
|
context?: TaskContext;
|
|
1468
1451
|
/** What the platform thread gets when the run fails without an answer. */
|
|
1469
1452
|
failureReply?: string;
|
|
@@ -1480,10 +1463,8 @@ interface TaskContext {
|
|
|
1480
1463
|
}>;
|
|
1481
1464
|
/** Completed turns of this task, kept across dashboard continuations. */
|
|
1482
1465
|
turns?: TaskTurn[];
|
|
1483
|
-
/**
|
|
1466
|
+
/** Notes the receiver adds for the agent, such as a missing account connection. */
|
|
1484
1467
|
instructions?: string;
|
|
1485
|
-
/** The config repo `instructions` came from. */
|
|
1486
|
-
repository?: string;
|
|
1487
1468
|
/** Whether this turn requires a reply. */
|
|
1488
1469
|
mustReply?: boolean;
|
|
1489
1470
|
/** The last conversation batch each kind admitted, by steer or resume. */
|
|
@@ -1635,6 +1616,40 @@ interface TokenUsage {
|
|
|
1635
1616
|
total: number;
|
|
1636
1617
|
}
|
|
1637
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
|
|
1638
1653
|
//#region src/core/types.d.ts
|
|
1639
1654
|
/** An extra MCP server attached to a task, with the tools the engine may call. */
|
|
1640
1655
|
/** One MCP server in the `.mcp.json` entry shape: stdio (`command`) or remote (`url`). */
|
|
@@ -1648,9 +1663,9 @@ interface McpServerSpec {
|
|
|
1648
1663
|
args?: string[];
|
|
1649
1664
|
/** Values may hold `${VAR}` placeholders, resolved from the environment at spawn time. */
|
|
1650
1665
|
env?: Record<string, string>;
|
|
1651
|
-
/** Remote server
|
|
1666
|
+
/** Remote server, streamable HTTP. */
|
|
1652
1667
|
url?: string;
|
|
1653
|
-
type?: 'stdio' | 'http'
|
|
1668
|
+
type?: 'stdio' | 'http';
|
|
1654
1669
|
headers?: Record<string, string>;
|
|
1655
1670
|
/** Credential destination supplied by the connection resolver, removed before persistence. */
|
|
1656
1671
|
credentialFields?: {
|
|
@@ -1659,8 +1674,16 @@ interface McpServerSpec {
|
|
|
1659
1674
|
};
|
|
1660
1675
|
/** Tool allowlist; omit or empty for every tool the server offers. */
|
|
1661
1676
|
tools?: string[];
|
|
1662
|
-
/** Schemas load before the first prompt instead of behind tool search. */
|
|
1677
|
+
/** Schemas load before the first prompt instead of behind tool search or the hub. */
|
|
1663
1678
|
alwaysLoad?: boolean;
|
|
1679
|
+
/** Only tools the server marks read-only may be called. */
|
|
1680
|
+
readOnly?: boolean;
|
|
1681
|
+
/** The integration a platform tool server reaches, and the account of its installation. */
|
|
1682
|
+
integration?: string;
|
|
1683
|
+
account?: string;
|
|
1684
|
+
/** What the server reaches and the access it allows, as the prompt lists it. */
|
|
1685
|
+
description?: string;
|
|
1686
|
+
access?: 'read' | 'write';
|
|
1664
1687
|
}
|
|
1665
1688
|
type TaskStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
1666
1689
|
/** A persisted task record (task.json). Most fields accrete over the lifecycle. */
|
|
@@ -1675,6 +1698,7 @@ interface Task {
|
|
|
1675
1698
|
outputSchema?: object;
|
|
1676
1699
|
currentPrompt?: string | null;
|
|
1677
1700
|
system?: string | null;
|
|
1701
|
+
promptParts?: Omit<SystemPromptParts, 'servers'>;
|
|
1678
1702
|
systemPrompt?: string;
|
|
1679
1703
|
model?: string | null;
|
|
1680
1704
|
effort?: Effort | null;
|
|
@@ -1728,7 +1752,6 @@ interface TurnResult {
|
|
|
1728
1752
|
threadId: string | null;
|
|
1729
1753
|
turnId?: string | null;
|
|
1730
1754
|
finalMessage?: string;
|
|
1731
|
-
touchedFiles?: string[];
|
|
1732
1755
|
tokens?: TokenUsage | null;
|
|
1733
1756
|
contextTokens?: number;
|
|
1734
1757
|
/** The model that ran the turn (tokens are only comparable per model). */
|
|
@@ -1755,21 +1778,571 @@ interface Approval {
|
|
|
1755
1778
|
} | null;
|
|
1756
1779
|
[key: string]: unknown;
|
|
1757
1780
|
}
|
|
1758
|
-
/** A [flag-or-command, description] pair rendered in help tables. */
|
|
1759
|
-
type HelpRow = [string, string];
|
|
1760
|
-
/** Help metadata for one command. */
|
|
1761
|
-
interface CommandHelpSpec {
|
|
1762
|
-
usage: string;
|
|
1763
|
-
summary?: string;
|
|
1764
|
-
flags?: HelpRow[];
|
|
1765
|
-
globalFlags?: HelpRow[];
|
|
1766
|
-
exitCodes?: HelpRow[];
|
|
1767
|
-
examples?: HelpRow[];
|
|
1768
|
-
/** Environment variables the command reads: name → what it does. */
|
|
1769
|
-
env?: HelpRow[];
|
|
1770
|
-
seeAlso?: string;
|
|
1771
|
-
}
|
|
1772
|
-
/** A subcommand handler. Receives the argv slice after the command name. */
|
|
1773
|
-
type CommandHandler = (argv: string[]) => Promise<void> | void;
|
|
1774
1781
|
//#endregion
|
|
1775
|
-
|
|
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 };
|