@wular/coder 0.4.9 → 0.4.10
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/dist/actions-C3Mgpl9J.js +2 -0
- package/dist/adapter-BeezVK-B.js +1 -0
- package/dist/{adapter-YCvP9H2n.js → adapter-ChaISKgI.js} +42 -42
- package/dist/{adapter-B2RXnvqt.js → adapter-MD6ahqPR.js} +6 -6
- package/dist/{add-CvBTpxgY.js → add-B26QSwPY.js} +2 -2
- package/dist/add-BbXuvqj1.js +1 -0
- package/dist/add-Bk8drM-8.js +1 -0
- package/dist/add-CD_L-WW8.js +2 -0
- package/dist/agent-B8ItyuHN.js +8 -0
- package/dist/{agent-vYm7Geh-.js → agent-DHpMqHVi.js} +1 -1
- package/dist/alias-CScCzXhS.js +2 -0
- package/dist/{app-CJPFaLIV.js → app-wHQJHu6N.js} +1 -1
- package/dist/approvals-BIGQBbCM.js +2 -0
- package/dist/{approve-CBuGu3du.js → approve-BnZ3v-3c.js} +1 -1
- package/dist/approve-DFSy7Z72.js +2 -0
- package/dist/apps-6BgpUsFh.js +372 -0
- package/dist/archive-CU0nhUeJ.js +4 -0
- package/dist/{archive-C89Z4kSx.js → archive-CY2lvp_c.js} +2 -2
- package/dist/args-BekfmD9t.js +1 -0
- package/dist/ask-CLDgHB_Y.js +4 -0
- package/dist/auth-C3KrIUf1.js +1 -0
- package/dist/auth-CGeSfgNb.js +1 -0
- package/dist/builtin/coder/agent.json +5 -9
- package/dist/chat-AbW-LOHo.js +13 -0
- package/dist/chat-bridge-WK-pKNfw.js +2 -0
- package/dist/chat-bwKd3y6V.js +1 -0
- package/dist/cli-Fp28pM4Y.js +9 -0
- package/dist/cli.js +1 -1
- package/dist/client-DzwzCsue.js +22 -0
- package/dist/config-DoVedq6T.js +3 -0
- package/dist/{connection-BtUZA2St.js → connection-5V8doFL7.js} +1 -1
- package/dist/connection-Cb0TK201.js +1 -0
- package/dist/conversation-DT-35cEt.js +1 -0
- package/dist/create-CrjRdQip.js +1 -0
- package/dist/credentials-DoL9w8D1.js +1 -0
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1317 -1303
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.8e150ef2bc6a5f4e.js → index.843431e3538fd9a4.js} +7 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{defaults.e6ce0944639198a2.js → defaults.1b615366c56838a1.js} +27 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/event-prompt.87f064ca0141e796.js +30 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/{log-view.871cbff2605b5cfd.js → log-view.60308a11f7001eb7.js} +10 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.4f942c7f68b2e273.js → load.7ae462ef36271be8.js} +15 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{types.9f59e6c761d6aac4.js → types.79f9092cdb5a00d1.js} +4 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.a2a16ead424b2185.js → page.806027fde54ab723.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.90e312759b87cfa2.js → page.bd04d2d3eba00676.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{loading.787d09fb0b2b6b57.js → loading.e348ec45e9ed951b.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.5fc5e4346dcbfc32.js → notify.857748e260c691e3.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.1641da62504df30a.js → page.25153459858542f9.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{sign-out.5dac3bf780c74354.js → sign-out.ff98573f362d76f3.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agent-menu.f1dacbfebc27a656.js → agent-menu.2ed0e66d131fc148.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.5da78e9a741b028a.js → agents-grid.8efd14bc39281da9.js} +22 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{connect-apps.722bc3e4ec1f9fad.js → connect-apps.d1e67db29b12dc0a.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{loading.2815a010098aa676.js → loading.fac1132ad9c4248e.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.b01992337eeca2dc.js → page.0f7d5e3e42462870.js} +15 -20
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.8aeb0fddffe22ad5.js → layout.05210ffa6038791f.js} +19 -19
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{loading.50692149df9abb28.js → loading.388aeaf0c2edf8f8.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.e2e23101c05b9548.js → page.19fe116c0f802cb1.js} +80 -30
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{loading.31d2c13229ae9222.js → loading.4da9e2ba3fea937f.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.11c7b50d6119efe6.js → page.f87fd8eb66f73af0.js} +37 -30
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.92ac7aa258e706a4.js → platform-actions.b6c3d3184e167d0b.js} +68 -41
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.fc530622fa2292a0.js → agent-settings-form.28220621573033d7.js} +47 -72
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{loading.bf17bd39f41db826.js → loading.ad1a4c9b000d269a.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.6e95dfe07dfebf4b.js → page.2f7467868f599ebc.js} +15 -21
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.7b17368ee81275ab.js → loading.ec94096015346f2c.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.0bd3da9b3227b12f.js → page.a92a36a8ce21088c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{loading.d2cc33cf044a92a3.js → loading.8f998a9c511e1fb3.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.91c43fbc54e37646.js → page.8935a5fe5c08bcf1.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.23e4131cdf71daa5.js → versions-list.5b97ab6d40e2e639.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{loading.47c4c8f31b4f17cc.js → loading.bedcc1aba372fbce.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.cbd2bad8fede6fef.js → page.14760e9eedd6ff8e.js} +13 -24
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-pills.d8e785c45f5410a6.js → agent-pills.f987c12bcbc5c850.js} +13 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.a6e27ac4171bfdb0.js → agent-toggle.a6ee8bd882178e29.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.96bdca9762ff3e2e.js → hero.8be1dd4ea3ed6e17.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{instructions.ca0c09d4849bfc30.js → instructions.85b1cd986a9edbb5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.258f6c2c5f1b1b17.js → connect-repositories.59d89152fe845af2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.20c42102ed262db7.js → editor.77f68d431408745b.js} +36 -76
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.b8093a7ca97656a5.js → import-picker.a7b01817a821819a.js} +15 -16
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{loading.6012b36c10c68657.js → loading.ee001af7a96e3972.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.1ebdb0247922fc14.js → page.c4570fd80bdda68c.js} +11 -19
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.6d2242d49ae9dd35.js → layout.19006c2d7dc8d114.js} +13 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{operator-apps.a56516bc0ba79187.js → operator-apps.d350a52d27f69fa6.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.af19494c89ac62c0.js → page.4a652f5080c2b863.js} +8 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.c720853404d94114.js → page.d39f7a1719f50c6d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.9b96914a4fa4e2a9.js → connections-list.ff7e1dadcd4df17f.js} +36 -31
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.dbaa8f3d82445b90.js → credentials-list.87a1f8ab71eb4bed.js} +204 -240
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.c4b01484d183549d.js → credentials.a535c9c6dd8b4cdf.js} +10 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.5c03e83663a6a9b7.js → engines-list.29fffd07c1c3b771.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.df5ee5d74bec0f5b.js → list.0c87d55cf4ef382c.js} +43 -33
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{loading.480b8f915bae18c1.js → loading.7ca95dcb4fb3362b.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.2835a48d1edeb6d1.js → models-list.6fea9faddb8300bb.js} +147 -137
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.1d53415d55e77fee.js → page.295245052b93af90.js} +23 -23
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.bf5746f48e3f78f5.js → runners-list.a4a38e54d834a1ec.js} +18 -19
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.b0dedc1567efc09f.js → secrets-list.50f487766f87383c.js} +23 -15
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.567d27e39d42d719.js → layout.c42e0ab39cb2c0e0.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{model-options.2eacf7f8ac0032df.js → model-options.a96c11d11674f598.js} +13 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.bac05d6e87953d0e.js → page.6997506eaa1a4824.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{settings-head.5e2dff2550b3b73e.js → settings-head.bbc7ced8dd5491eb.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{tunnel-guide.d6fae1c5d62f2c74.js → tunnel-guide.29eee1a0b1852168.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.03989d2f7585a045.js → create-link.9458b49dc99bbaaa.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-dialog.4debc1a8c644df4b.js → outcome-dialog.894c73f9abee3ce1.js} +5 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.43c969f59a710781.js → page.77e402bb6e8e7f7e.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.3755ae6065c3fc28.js → activity.fcda6f18c8207c99.js} +22 -27
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.9efbed6531879838.js → loading.56520888d5270b88.js} +6 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.7b92dcd08095b934.js → page.d0f039221a27b8ef.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-actions.62422b873f98ee8e.js → task-actions.f5f2016d2dc7f422.js} +14 -12
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.ae0e9c9dffe0ff9f.js → task-view.a292baa2410cdf64.js} +129 -66
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer-data.ff108c0ef82a4d7b.js → composer-data.309a194fc7fa34be.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.fdad306647cbaa59.js → composer.2d4122eb33addbdd.js} +29 -41
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{task.af5001e51d2f612b.js → task.a0c68180db5fb4c1.js} +26 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.952f37a9486aebe7.js → tasks-list.021bdc2f3d90af2d.js} +34 -31
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.1247d4765d0e1bdc.js → tasks-section.13f64b0836ae406b.js} +10 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.cf74c55e6528c7c9.js → page.b78f0df100410db0.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{custom-range.2d55812ec086b540.js → custom-range.2e21c7f891966c15.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{day-chart.08d378cca93d3ab1.js → day-chart.261b6651df2d3966.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{loading.7aed78a276b08a4f.js → loading.97d277dbab9c15cf.js} +4 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{metric.ada350d2b7449b39.js → metric.5ff3636065481c44.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.fed9345ebac3e1b3.js → page.93c2306069c03c68.js} +11 -18
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{range-bar.b1296c2378128472.js → range-bar.2197d8f43216d104.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{top-agents.e215d44e00192271.js → top-agents.18fc469e781e2305.js} +6 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.b7e3af142b17941b.js → layout.185dbc99875e208a.js} +11 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/{page.226544940a39fd3a.js → page.a82be2fd23e9ac67.js} +2 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/zone.0515a688ee5ff6ca.js +17 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{drawer.8287e5a02144e4f1.js → drawer.d3e61538dbc8ec39.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{foreign-link.86f0cc228353da6e.js → foreign-link.1f4217895ff1e835.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/heads.37e35439c02fc636.js +16 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{loading-card.0c6ac62ff3ccf38a.js → loading-card.cc76fc9708142525.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.bd54e52ac4a7a89c.js → page-head.85f15db7b648d48c.js} +4 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.1cc355a530dcc5e3.js → stream.95a2468086aceb84.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.63f673632770924d.js → task-toasts.e1a484113e1df660.js} +11 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{theme-choices.5f59814a635caeec.js → theme-choices.85100ed66d6f9200.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.5681714d0cf45454.js → back.180765bdadf6d602.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.4d84ad0ac340fbe2.js → org.572ad93c7707ab27.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{side-toggle.249400957d6a7527.js → side-toggle.489faf1a259479f7.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{badge.0851f234f300c694.js → badge.c0bc352791a95fd6.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{button.983daea9e687fc5d.js → button.ce9e6cdb08ca86db.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{card.c08471eaa0bc1cec.js → card.9f0d45b73bc78b4f.js} +9 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{collapse.762eba56417214ca.js → collapse.93e4d1b20c2873ed.js} +13 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{combo.efb84f0cca771948.js → combo.54270c0251466fda.js} +3 -22
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.53edc755945b0563.js → confirm.c1281f9b12854210.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.0b23d7dc05757df5.js → copy.bd6fc1577a393965.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.1983b85dd0679af6.js → filter.3a452a262f040973.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{icons.a34176f37808cd66.js → icons.e36c72f54750663a.js} +0 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu-items.a8e580a0c90631ff.js → menu-items.1d082ac4dae8f3d4.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.a41edd5cde1c90cf.js → menu.ee45bace979944b6.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.b5f74ebf59590fa6.js → modal.25d53e5b41b9c4e5.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{select.36c6f21ce6aa720f.js → select.2eb33e5bea28d804.js} +28 -23
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tail.a8a951c757376590.js → tail.04132db0c5033d4f.js} +4 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.9621ef221a896a8e.js → toolbar.24036899654de6df.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.1a6356d5b722cafb.js → action.968bcab0f5e3665d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.d25e6dcc6704eb60.js → client.189224c16057d7a1.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/follow.bfb9bcff3c1366d7.js +32 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{format.6a7d1beaf4d09d9c.js → format.ceeaafa10a0563f3.js} +1 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{paged.18f5872fc5aebe96.js → paged.0e54c3044f8ca567.js} +1 -7
- package/dist/dash/standalone/static/assets/chunks/action-410bdc82c416bc01.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-pills-0c0b8d40b9bfc78f.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-5a2601316e2ab283.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{agent-toggle-b2f2c22e63dedc1f.js → agent-toggle-5ede0c449e88cb9d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/agents-grid-ffb18df48e951ecb.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{back-1d1b062f0e1b29b7.js → back-602db2cfdccf2e7f.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/combo-df2685e277db02c0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-08e49d49c0c3ee94.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-data-5fed6c271a4791ca.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-e1cefed81ea89b7e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{confirm-1cb4d8df3974f34a.js → confirm-d163e6865d66dfab.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/connect-apps-ce3c9d049ebad459.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-995d55b3f166337d.js → connect-repositories-0aa9abc77b9c3d48.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-6eddeb8583ded10f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{copy-c938369a1bfe75fd.js → copy-0cc00656953531be.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-bc365f8dfe88e6b3.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/credentials-list-1b6a81e9b4934dc8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{custom-range-4eeb710748887f3a.js → custom-range-cae5567874db83ca.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/defaults-52f30e83d7666f7a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/editor-d55d247a1d7de5f0.js +6 -0
- package/dist/dash/standalone/static/assets/chunks/engines-list-288559344de4d4b9.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{field-657227821326b5b3.js → field-693bb870ad0bdee8.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/format-a27067f0186e78ac.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-3f18e035338b0d0b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-a3d7688e421f2a08.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/list-2a59237cb7cb0a7c.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/model-options-8d2170eebe0d061d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/models-list-5ed9ee02f9b66d98.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{notice-cd32ca98bbc10844.js → notice-7d84ffab32ff24ca.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-3cffe3507ea92af2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-f6fb8c69efa66508.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-4dc31567d00c4cb2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-ecd7200f7749c258.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runners-list-984246a8f9450da1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{runtime-e8b9eb1e537215ed-1.js → runtime-6e12333f12903a62-1.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-88f8b30abbab52f0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{segmented-24da438244eedc8f.js → segmented-79c9c69b702e0b90.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-6e12333f12903a62-2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-962398d15ee67c92.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-ae95a674d381c095.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-7ada95cc7601eb49.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/tail-99e29a541a072002.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-95daa40d39de664f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-actions-1cdca1e8d3eee490.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-view-fdcde0e31f63b737.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/tasks-list-3ad1c93deff4fb2e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/types-3eca2c7f47c46054.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{versions-list-31f31eb1923a0ded.js → versions-list-60ac4d8f715bf5f7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{wular-pnext-e8b9eb1e537215ed-0.js → wular-pnext-6e12333f12903a62-0.js} +1 -1
- package/dist/dash/standalone/static/assets/create-param-id-da3f7e20689fe51a.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-account-3f646d473e3bd795.css → dash-param-org-account-9471bec93c444232.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-64500e78caae32df.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-c067c22928a2d7cc.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-9dec87710e04f949.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-779c474301e04440.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-c7d594b5232630c2.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-a80e62570716fdb9.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-ce278252012297b9.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-d3b6d701eb8e1403.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-67f7811b1343c064.css → dash-param-org-bcfa3de29341d5ba.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-operator-b7bc6447cc27c9ce.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-settings-a851a659784d94b5.css → dash-param-org-settings-6d6902345d88a687.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-85c7af9a89eef06e.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-setup-1b708aa5bb2f83ef.css → dash-param-org-setup-173efecd7b990c2e.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-ae0bc03f468e63cc.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-7325d8cff5be3592.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-operator-56742192a9aafc19.css → dash-param-org-usage-517b2a7ae462ac57.css} +1 -1
- package/dist/dash/standalone/static/assets/global-87e1762113874559.css +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0b3b70f1aefb9947.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0d90849808b6eb05.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-12faa1754e3ef3be.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-23384b239b81a761.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-23e200dd9b7a79c0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-2562299eef46e62c.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-3a4ada64991e6a40.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-71e7ecdfcf86be84.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-726c29bbb81054c0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-825e9f5b63950ef4.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-894cff70289fb7a3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-8f96a4b8a00ff460.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-9bc9b14c08020649.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-ab36b406301fd2a4.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-b8c585cae8da7778.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bab4305b41abb15a.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bd80926822b3993d.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-cd4c7b4318fa1846.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-db55344d00b7888f.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-eddcd5df2b28120f.js +1 -0
- package/dist/default-tTTSBdXq.js +1 -0
- package/dist/delete-DM2sA12f.js +2 -0
- package/dist/{delete-DS6P_fun.js → delete-DR37NTr1.js} +2 -2
- package/dist/disable-Dz_zLPX5.js +1 -0
- package/dist/{discover-pKrMDvpW.js → discover-CqabH4Fx.js} +2 -2
- package/dist/dispatch-BJZqI7sj.js +8 -0
- package/dist/{dist-C3wD7GfG.js → dist-B2jiMMxZ.js} +2 -2
- package/dist/{dist-DkATuPBB.js → dist-ClCNj65n.js} +2 -2
- package/dist/{dist-BTornX7Y.js → dist-DAnSqY1s.js} +2 -2
- package/dist/docs-BV9SC67g.js +2 -0
- package/dist/{docs-sFUXzJbk.js → docs-b2mAKC8Z.js} +1 -1
- package/dist/drive-CU2HOCfR.js +1 -0
- package/dist/{enable-BWvDv7dP.js → enable-Cfeki-ne.js} +1 -1
- package/dist/env-DSddo-fz.js +1 -0
- package/dist/exec-DcWxZar6.js +3 -0
- package/dist/executor-LkokKTTd.js +11 -0
- package/dist/flow/builtin/review.d.ts +2 -2
- package/dist/flow/builtin/review.js +7 -14
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/flow-BQcdyrVK.js +1 -0
- package/dist/history-D_A5odLI.js +8 -0
- package/dist/http-CXaW1e7x.js +1 -0
- package/dist/init-DU_S43NG.js +1 -0
- package/dist/integrations-DPxWtNnS.js +2 -0
- package/dist/integrations-Dwvxl7i2.js +1 -0
- package/dist/lib/broker.js +2 -2
- package/dist/{list-BDpYPbJF.js → list-7yd9K7d8.js} +1 -1
- package/dist/list-BJ0j5eP9.js +4 -0
- package/dist/list-Boaz5b5n.js +2 -0
- package/dist/{list-CaFQOnfI.js → list-CIS-GYO1.js} +1 -1
- package/dist/list-CR0_Emod2.js +4 -0
- package/dist/list-CnHZriYt.js +3 -0
- package/dist/list-_EH6c041.js +1 -0
- package/dist/list-i2r3Nlyz.js +1 -0
- package/dist/load-C-GZnuok.js +2 -0
- package/dist/local-Fs-dx_dP.js +5 -0
- package/dist/log-view-CL3_S0IQ.js +3 -0
- package/dist/{login-CpHx_RCq.js → login-CzD2EMD_.js} +1 -1
- package/dist/login-DISw6--d.js +1 -0
- package/dist/{logout-zSQBDPCK.js → logout-DMnc5yri.js} +1 -1
- package/dist/{maintenance-DuIspk-y.js → maintenance-BVDuG9Hg.js} +1 -1
- package/dist/match-BfjPZ7gJ.js +1 -0
- package/dist/mcp-B-hy3eM-.js +11 -0
- package/dist/mcp-CbN-QcpF.js +1 -0
- package/dist/mcp-server-DQqSgD3P.js +1 -0
- package/dist/model-Ckyoyji3.js +1 -0
- package/dist/models-VaiIYlOW.js +1 -0
- package/dist/prompt-DQyPCLUo.js +8 -0
- package/dist/prompts-CEf7z4i_.js +77 -0
- package/dist/push-BNomfHJ3.js +1 -0
- package/dist/reconnect-Bd_jna1M.js +1 -0
- package/dist/refresh-D-broYEx.js +1 -0
- package/dist/remote-f-uny3XZ.js +3 -0
- package/dist/remove-CCYHc1FN.js +1 -0
- package/dist/remove-DMTz_c25.js +1 -0
- package/dist/remove-DdcQ-6by.js +1 -0
- package/dist/{remove-BcewhH1U.js → remove-VtavIuGm.js} +1 -1
- package/dist/rename-CKMyelWN.js +1 -0
- package/dist/{result-Bg557zR6.js → result-CH3_tVXO.js} +2 -2
- package/dist/result-DvOqIwhh.js +18 -0
- package/dist/{resume-fnx4FUQF.js → resume-6j3RUpqa.js} +2 -2
- package/dist/{review-CAHDqPq8.js → review-B4ETH5ki.js} +2 -2
- package/dist/{index-vd37q3fn.d.ts → review-DDYD3Yvq.d.ts} +173 -74
- package/dist/{rotate-key-Dpx_WmuU.js → rotate-key-Byk_wI73.js} +1 -1
- package/dist/run-DKJW7qwy.js +2 -0
- package/dist/run-DkYzyUnp.js +5 -0
- package/dist/run-LCE1XiyU.js +2 -0
- package/dist/runner-CxtzTgVq.js +1 -0
- package/dist/runner-Dnu1Vx_i.js +1 -0
- package/dist/runner.json +1 -0
- package/dist/runner.tgz +0 -0
- package/dist/runners-vsoGeyuc.js +36 -0
- package/dist/schema-Brm7WIKd.js +8 -0
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +1 -1
- package/dist/{sdk-CWerLcF5.d.ts → sdk-CKTCrtGe.d.ts} +660 -376
- package/dist/sdk.d.ts +4 -5
- package/dist/sdk.js +1 -1
- package/dist/serve-C1zag2nr.js +1 -0
- package/dist/{serve-w-9qRCP1.js → serve-C6tsUF0D.js} +2 -2
- package/dist/serve-CCxSxXgv.js +1 -0
- package/dist/serve-D8J-sEqm.js +12 -0
- package/dist/{server-Bw_YmgCf.js → server-B4SRYM2L.js} +1 -1
- package/dist/setup-host-EaP4GPKB.js +6 -0
- package/dist/show-CjUG_aIp.js +1 -0
- package/dist/show-xdsqD6de.js +1 -0
- package/dist/slack-Kpj-G9FE.js +5 -0
- package/dist/{status-PO1YXbt4.js → status-BxV_ITeF.js} +1 -1
- package/dist/steer-DZ3nkHfC.js +4 -0
- package/dist/{stop-CkvoZEAH.js → stop-DGTUYxd6.js} +2 -2
- package/dist/stop-qDw_DjOB.js +1 -0
- package/dist/task-C506SkPR.js +1 -0
- package/dist/task-CQmx_2SI.js +7 -0
- package/dist/task-Ls_-kcSx.js +1 -0
- package/dist/test-DF_qVK6S.js +1 -0
- package/dist/tools-S3eRQOVm.js +1 -0
- package/dist/{types-C1tWi5lP.d.ts → types-8zO5Tc9c.d.ts} +91 -26
- package/dist/{types-B42Oh0zF.js → types-D_xnfP7m.js} +1 -1
- package/dist/unalias-CklkAN1B.js +1 -0
- package/dist/update-CZaFjwOJ.js +2 -0
- package/dist/upgrade-CUhFmPhl.js +2 -0
- package/dist/usage-DTAlb2rC.js +1 -0
- package/dist/views-LmbLfqpu.js +5 -0
- package/dist/watch-CJruitc6.js +5 -0
- package/dist/watch-p0j69fVA.js +9 -0
- package/dist/wire-DshFMRsS.js +1 -0
- package/dist/worker-BHXjDzRp.js +1 -0
- package/dist/worker-nyRZuq4g.js +2 -0
- package/dist/{workflow-BKxG9OUk.js → workflow-CJJUiSfv.js} +1 -1
- package/docs/agents/coder.md +7 -7
- package/docs/agents/index.md +17 -19
- package/docs/agents/prompt.md +220 -0
- package/docs/cli.md +2 -2
- package/docs/config.md +5 -3
- package/docs/mcp.md +1 -1
- package/docs/review.md +1 -1
- package/docs/sdk.md +1 -1
- package/docs/self-host.md +7 -9
- package/package.json +2 -1
- package/dist/actions-5TDwmn_z.js +0 -20
- package/dist/adapter-sKt1J1Cm.js +0 -1
- package/dist/add-BftLUw05.js +0 -1
- package/dist/add-CXAGrCnC.js +0 -1
- package/dist/add-Ck_y_nKX.js +0 -2
- package/dist/agent-ChnedLBv.js +0 -8
- package/dist/alias-BpgVDY6_.js +0 -2
- package/dist/approvals-CE8dXZhE.js +0 -2
- package/dist/approve-dWW4qt76.js +0 -2
- package/dist/apps-B60OpAHX.js +0 -242
- package/dist/archive-CmRVm4iS.js +0 -4
- package/dist/archive-sweep-EiiXIqjr.js +0 -1
- package/dist/args-CxsMr9Un.js +0 -1
- package/dist/ask-Bou8zg-4.js +0 -4
- package/dist/auth-CImjIcG5.js +0 -1
- package/dist/auth-CWzSsiSC.js +0 -1
- package/dist/chat-Bbzlea60.js +0 -1
- package/dist/chat-Djps0Seg.js +0 -13
- package/dist/chat-bridge-CvspGKBc.js +0 -2
- package/dist/cli-ZUdhZnuW.js +0 -9
- package/dist/config-CF3_A3NX.js +0 -3
- package/dist/config-D2FxHWwi.js +0 -14
- package/dist/connection-BCRJHTgp.js +0 -1
- package/dist/create-Z0QxarzN.js +0 -1
- package/dist/credentials-Dt2uP3AQ.js +0 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/responsive.82549d958fae8f00.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/zone.dbc84f981415d8f7.js +0 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/heads.20414ddcb2d08bcd.js +0 -51
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/card.15f7435f202831c3.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/static/assets/chunks/action-977f2355e308d7d0.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-pills-e75e6ac80d515ffc.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-09f23ed893d441c7.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agents-grid-bb4f3e4d38b2f459.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/combo-126d5709a0b3a5bd.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-6bf94d1087a6e6a6.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-9c1fe67a0de73997.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connect-apps-32c169b6e00711ff.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-a102e909edff14d4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-a147953f343355ec.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/credentials-list-31e0fbc1ef0d003e.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/defaults-dcc0eccad4e8585b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/editor-79560c0f91cfc2f6.js +0 -7
- package/dist/dash/standalone/static/assets/chunks/engines-list-d22f50040e6842ae.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/format-b19b8eec331414f4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-a08bb02650dedb8d.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/instructions-a1f10bc3c2866e3f.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/list-a0cc9bdb05fc71d4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/model-options-3a57918eaa4a2a82.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/models-list-63ab774de3bf3788.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-4ab62d613bee243a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-40824017c7b5b910.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-a515643f341df568.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/runners-list-a9f4f71695f7b376.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-34e09c332363564c.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-02aaa49ed4606a76.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/shared-init-03e620f936463465.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/shared-init-6f8c76316a2cd9da.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-e8b9eb1e537215ed-2.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/side-toggle-8563e6056e862225.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/tail-ebdefca4d5c23266.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-6ae2bb4f1b384140.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-actions-462507b76bda4657.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-341d79730a341007.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/tasks-list-6037ecd098332564.js +0 -1
- package/dist/dash/standalone/static/assets/create-param-id-8fa3e9101430f26a.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-0ddb989cab5b0fbf.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-504d1a906feabb6f.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-7cd987a1a42a3b44.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-fcdddf2dc26453ce.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-26b84d659dbca7f4.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-97ff652f9fe5979d.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-d47377c0f877c5c0.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-6a09580f11d669b7.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-06283106fffbd5c6.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-9cb2bb12389c9a04.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-a87fa0eaa02e4008.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-usage-786c91a7640542e6.css +0 -1
- package/dist/dash/standalone/static/assets/global-eee296f070a9bb95.css +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-17c3ee29b7487596.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-1eaa8deb5395345f.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-29e2b964470f6587.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2a1e756934e7be1a.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-31e64d49f6132b26.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-3d13328ad0b1148b.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-4ac29d3e9f1a91be.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-7d479b3375e3c07e.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-9eac45990b233b55.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-a8c9c169322e7e3d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-b622d087a38b1b77.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-b7fea94dfda72453.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-cc8e5e6c95040688.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-d16e2a42b0a274c0.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-dbccfef0cbb6b18d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-e74706ae238018e5.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-ebe7c9692619ea00.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-ef8d348060493085.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-fcdfa8b2c8824449.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-ff36e2f8a0522759.js +0 -1
- package/dist/default-DcYwZCnl.js +0 -1
- package/dist/default-EXRzdZUY.js +0 -1
- package/dist/delete-Bmn2_TiV.js +0 -2
- package/dist/disable-CnCxTC3X.js +0 -1
- package/dist/discover-CBP4Uw0N.js +0 -1
- package/dist/dispatch-D3Dqxijf.js +0 -8
- package/dist/docs-3SW1O9iS.js +0 -2
- package/dist/env-C_DoQYl5.js +0 -1
- package/dist/exec-BsXFIdTl.js +0 -11
- package/dist/executor-5j-Ewzzb.js +0 -11
- package/dist/flow-CuUq-MDm.js +0 -1
- package/dist/http-Cg_wYcZT.js +0 -1
- package/dist/init-Dgj6V-aS.js +0 -1
- package/dist/integrations-D3OgJk6Y.js +0 -1
- package/dist/integrations-DsFX2KCq.js +0 -1
- package/dist/list-B6lwbCEp.js +0 -1
- package/dist/list-BE3xmX_4.js +0 -1
- package/dist/list-BVIAyAAE.js +0 -4
- package/dist/list-Bggy3HZY.js +0 -4
- package/dist/list-CLtqMYPK.js +0 -2
- package/dist/list-DkO78ZEF.js +0 -3
- package/dist/load-CRmQB1LD.js +0 -2
- package/dist/local-ccKBhpQc.js +0 -1
- package/dist/log-view-DB4nXHXO.js +0 -3
- package/dist/login-BCdXHQ7z.js +0 -1
- package/dist/match-Kt3vFTl1.js +0 -1
- package/dist/mcp-O8VTfzdL.js +0 -12
- package/dist/mcp-YhyTUMIM.js +0 -11
- package/dist/mcp-server-DGzme0YX.js +0 -1
- package/dist/model-Bzpwl_95.js +0 -1
- package/dist/models-CdvmuaLv.js +0 -1
- package/dist/prompt-C--TI1qn.js +0 -8
- package/dist/push-vt81gcxD.js +0 -1
- package/dist/reconnect-BfghDbl1.js +0 -1
- package/dist/refresh-yXJ13FAf.js +0 -1
- package/dist/remote-oQs6My_3.js +0 -1
- package/dist/remove-5iAM2aTO.js +0 -1
- package/dist/remove-BZCA-gdU.js +0 -1
- package/dist/remove-BwhcR6ig.js +0 -1
- package/dist/rename-lyssPQfD.js +0 -1
- package/dist/result-jeiRJTzA.js +0 -18
- package/dist/review-CJS59vO-.d.ts +0 -157
- package/dist/run-CLy9a2MO.js +0 -2
- package/dist/run-DU4G8gNw.js +0 -2
- package/dist/run-D_pl9GF_.js +0 -5
- package/dist/runner-DME7ohjt.js +0 -1
- package/dist/runner-zT5Oyrfr.js +0 -1
- package/dist/runners-CNhxPjg8.js +0 -36
- package/dist/schema-BSlHRFSP.js +0 -8
- package/dist/serve-FG2LgXxM.js +0 -9
- package/dist/serve-UE1fcf4t.js +0 -1
- package/dist/serve-wQgyxwdY.js +0 -1
- package/dist/setup-host-BsbDs4lJ.js +0 -6
- package/dist/show-Cajmf606.js +0 -1
- package/dist/show-D0qTuXRU.js +0 -1
- package/dist/slack-C_RlVDz7.js +0 -3
- package/dist/steer-i6w87g_t.js +0 -4
- package/dist/stop-CJ0PHvKp.js +0 -1
- package/dist/task-DTN_fIGC.js +0 -1
- package/dist/task-DXHKWB_J.js +0 -5
- package/dist/task-IoBYe7ok.js +0 -1
- package/dist/test-BTkKFbnx.js +0 -1
- package/dist/tools-B-2oi2wI.js +0 -1
- package/dist/unalias-Cqx7i_L0.js +0 -1
- package/dist/update-MNyeVXyy.js +0 -2
- package/dist/upgrade-CGSkY0FY.js +0 -2
- package/dist/usage-sx-FR0bz.js +0 -1
- package/dist/views-BhsnL0nr.js +0 -5
- package/dist/watch-IL2eEgwD.js +0 -9
- package/dist/watch-qfr7aSfo.js +0 -5
- package/dist/wire-B5rc5Av6.js +0 -1
- package/dist/worker-BBZ36xL0.js +0 -1
- package/dist/worker-D2csFtoH.js +0 -9
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{errors.5954bd9bd05e8230.js → errors.0a735590a5412ea6.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.76589c15dee1732d.css.pnext-asset.js → page.cf7460a024706f75.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.3ffef848a0b0dda3.css.pnext-asset.js → page.c811938ae8a8f1df.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.2d19ea3a4d380e0d.css.pnext-asset.js → agent-settings-form.ca926c58d15044aa.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.13019680f38b0630.css.pnext-asset.js → hero.1bef5dca89b5942c.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{operator/page.9002a449f872a10e.css.pnext-asset.js → settings/[tab]/connections-list.46786fe36b121a43.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.f742847e4887f072.css.pnext-asset.js → credentials-list.f7c27f170ec1e868.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.98e0b34932a6ee4c.css.pnext-asset.js → list.8cbee173a5aff98d.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.e0ce46919b75ef76.css.pnext-asset.js → runners-list.53c7ea80b6fb734c.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{settings/[tab]/runners-list.a835c9a264cf8903.css.pnext-asset.js → tasks/[id]/task-view.57990cfd2bdf5c11.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{[id]/task-view.38b1b7ef3976ba71.css.pnext-asset.js → composer.5b8687662e1629fa.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.79c015348f861749.css.pnext-asset.js → list/tasks-list.abbbc9ace4d866e5.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{dash/[org]/tasks/list/tasks-list.2282a7cef8b15bd8.css.pnext-asset.js → globals.c8fd2b8b01e7077b.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{dash/[org]/usage/usage.775df2f43187c487.css.pnext-asset.js → responsive.ebc5f7d77b4b86a0.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{app/globals.dccea8b03fa4b6d2.css.pnext-asset.js → comps/ui/card.f80288cc42f9bcae.css.pnext-asset.js} +0 -0
|
@@ -2,8 +2,8 @@ import * as z from "zod/mini";
|
|
|
2
2
|
//#region src/core/config.d.ts
|
|
3
3
|
declare const engineSchema: z.ZodMiniEnum<{
|
|
4
4
|
custom: "custom";
|
|
5
|
-
codex: "codex";
|
|
6
5
|
claude: "claude";
|
|
6
|
+
codex: "codex";
|
|
7
7
|
}>;
|
|
8
8
|
declare const effortSchema: z.ZodMiniEnum<{
|
|
9
9
|
low: "low";
|
|
@@ -33,8 +33,8 @@ declare const mcpEntrySchema: z.ZodMiniObject<{
|
|
|
33
33
|
env: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
34
34
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
35
35
|
type: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
36
|
-
stdio: "stdio";
|
|
37
36
|
http: "http";
|
|
37
|
+
stdio: "stdio";
|
|
38
38
|
sse: "sse";
|
|
39
39
|
}>>;
|
|
40
40
|
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -42,10 +42,11 @@ declare const mcpEntrySchema: z.ZodMiniObject<{
|
|
|
42
42
|
description: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
43
43
|
}, z.core.$strict>;
|
|
44
44
|
declare const effectiveConfigSchema: z.ZodMiniObject<{
|
|
45
|
+
conversationCompactTokens: z.ZodMiniNumber<number>;
|
|
45
46
|
chain: z.ZodMiniArray<z.ZodMiniEnum<{
|
|
46
47
|
custom: "custom";
|
|
47
|
-
codex: "codex";
|
|
48
48
|
claude: "claude";
|
|
49
|
+
codex: "codex";
|
|
49
50
|
}>>;
|
|
50
51
|
engines: z.ZodMiniObject<{
|
|
51
52
|
codex: z.ZodMiniOptional<z.ZodMiniObject<{
|
|
@@ -100,8 +101,8 @@ declare const effectiveConfigSchema: z.ZodMiniObject<{
|
|
|
100
101
|
disabled: z.ZodMiniOptional<z.ZodMiniBoolean<boolean>>;
|
|
101
102
|
}, z.core.$strict>, z.ZodMiniObject<{
|
|
102
103
|
provider: z.ZodMiniEnum<{
|
|
103
|
-
codex: "codex";
|
|
104
104
|
claude: "claude";
|
|
105
|
+
codex: "codex";
|
|
105
106
|
}>;
|
|
106
107
|
model: z.ZodMiniString<string>;
|
|
107
108
|
effort: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
@@ -126,6 +127,10 @@ declare const effectiveConfigSchema: z.ZodMiniObject<{
|
|
|
126
127
|
"workspace-write": "workspace-write";
|
|
127
128
|
auto: "auto";
|
|
128
129
|
}>>;
|
|
130
|
+
access: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
131
|
+
read: "read";
|
|
132
|
+
write: "write";
|
|
133
|
+
}>>;
|
|
129
134
|
runner: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
130
135
|
local: "local";
|
|
131
136
|
"local-docker": "local-docker";
|
|
@@ -133,11 +138,6 @@ declare const effectiveConfigSchema: z.ZodMiniObject<{
|
|
|
133
138
|
"github-actions": "github-actions";
|
|
134
139
|
}>>;
|
|
135
140
|
integrations: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniObject<{
|
|
136
|
-
allowedTools: z.ZodMiniOptional<z.ZodMiniUnion<readonly [z.ZodMiniEnum<{
|
|
137
|
-
observe: "observe";
|
|
138
|
-
comment: "comment";
|
|
139
|
-
write: "write";
|
|
140
|
-
}>, z.ZodMiniArray<z.ZodMiniString<string>>]>>;
|
|
141
141
|
allowedEvents: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
142
142
|
}, z.core.$strict>>>;
|
|
143
143
|
connections: z.ZodMiniOptional<z.ZodMiniArray<z.ZodMiniString<string>>>;
|
|
@@ -150,8 +150,8 @@ declare const effectiveConfigSchema: z.ZodMiniObject<{
|
|
|
150
150
|
env: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
151
151
|
url: z.ZodMiniOptional<z.ZodMiniString<string>>;
|
|
152
152
|
type: z.ZodMiniOptional<z.ZodMiniEnum<{
|
|
153
|
-
stdio: "stdio";
|
|
154
153
|
http: "http";
|
|
154
|
+
stdio: "stdio";
|
|
155
155
|
sse: "sse";
|
|
156
156
|
}>>;
|
|
157
157
|
headers: z.ZodMiniOptional<z.ZodMiniRecord<z.ZodMiniString<string>, z.ZodMiniString<string>>>;
|
|
@@ -171,6 +171,24 @@ type Effort = z.infer<typeof effortSchema>;
|
|
|
171
171
|
type Permission = z.infer<typeof permissionSchema>;
|
|
172
172
|
type CustomModelConfig = z.infer<typeof customModelSchema>;
|
|
173
173
|
type CoderConfig = z.infer<typeof effectiveConfigSchema>;
|
|
174
|
+
declare const config: {
|
|
175
|
+
/** A config value by dotted key (or the whole effective config). */
|
|
176
|
+
get: (key?: string, opts?: {
|
|
177
|
+
cwd?: string;
|
|
178
|
+
}) => unknown;
|
|
179
|
+
/** Set a config value; `workspace` targets the repo file instead of the user file. */
|
|
180
|
+
set: (key: string, value: unknown, opts?: {
|
|
181
|
+
workspace?: boolean;
|
|
182
|
+
cwd?: string;
|
|
183
|
+
unset?: boolean;
|
|
184
|
+
}) => {
|
|
185
|
+
file: string;
|
|
186
|
+
key: string;
|
|
187
|
+
effective: unknown;
|
|
188
|
+
value?: unknown;
|
|
189
|
+
unset?: boolean;
|
|
190
|
+
};
|
|
191
|
+
};
|
|
174
192
|
//#endregion
|
|
175
193
|
//#region ../node_modules/.bun/@types+unist@3.0.3/node_modules/@types/unist/index.d.ts
|
|
176
194
|
// ## Interfaces
|
|
@@ -1273,7 +1291,7 @@ interface SerializedThread {
|
|
|
1273
1291
|
type ChannelVisibility = "private" | "workspace" | "external" | "unknown";
|
|
1274
1292
|
//#endregion
|
|
1275
1293
|
//#region src/agent/types.d.ts
|
|
1276
|
-
type Preset = '
|
|
1294
|
+
type Preset = 'read' | 'write';
|
|
1277
1295
|
/** Per-integration wiring in a definition. `events` list = default behavior, map = event -> flow. */
|
|
1278
1296
|
/** Event value in a definition map: a flow name, or options. */
|
|
1279
1297
|
interface AgentEventOptions {
|
|
@@ -1288,8 +1306,6 @@ interface AgentEventOptions {
|
|
|
1288
1306
|
}
|
|
1289
1307
|
interface AgentDefinitionIntegration {
|
|
1290
1308
|
events?: string[] | Record<string, string | true | AgentEventOptions>;
|
|
1291
|
-
/** Platform tools the agent uses: a preset or an explicit tool list. */
|
|
1292
|
-
tools?: Preset | string[];
|
|
1293
1309
|
}
|
|
1294
1310
|
/** What an agent IS: `.coder/agents/<id>/agent.json` beside its system.md. */
|
|
1295
1311
|
interface AgentDefinition {
|
|
@@ -1301,13 +1317,14 @@ interface AgentDefinition {
|
|
|
1301
1317
|
model?: string;
|
|
1302
1318
|
effort?: Effort;
|
|
1303
1319
|
permissions?: Permission;
|
|
1320
|
+
/** Read-only or Read-write on its handles and connections; defaults to `write`. */
|
|
1321
|
+
access?: Preset;
|
|
1304
1322
|
/** MCP servers every task of this agent attaches, in the `.mcp.json` entry shape. */
|
|
1305
1323
|
mcp?: Record<string, McpConfigEntry>;
|
|
1306
1324
|
integrations: Record<string, AgentDefinitionIntegration>;
|
|
1307
1325
|
}
|
|
1308
|
-
/** Per-integration caps in usage: `
|
|
1326
|
+
/** Per-integration caps in usage: `allowedEvents` intersects the definition's. */
|
|
1309
1327
|
interface AgentUsageIntegration {
|
|
1310
|
-
allowedTools?: Preset | string[];
|
|
1311
1328
|
allowedEvents?: string[];
|
|
1312
1329
|
}
|
|
1313
1330
|
/** How a repo RUNS an agent: one entry under `agents` in .coder/config.json. */
|
|
@@ -1316,6 +1333,8 @@ interface AgentUsage {
|
|
|
1316
1333
|
model?: string;
|
|
1317
1334
|
effort?: Effort;
|
|
1318
1335
|
permissions?: Permission;
|
|
1336
|
+
/** May only lower the definition's access. */
|
|
1337
|
+
access?: Preset;
|
|
1319
1338
|
integrations?: Record<string, AgentUsageIntegration>;
|
|
1320
1339
|
/** Connections its tasks may use, by id; absent allows every connection the task is granted. */
|
|
1321
1340
|
connections?: string[];
|
|
@@ -1360,11 +1379,23 @@ interface AgentEvent {
|
|
|
1360
1379
|
thread: SerializedThread;
|
|
1361
1380
|
message?: SerializedMessage;
|
|
1362
1381
|
};
|
|
1382
|
+
/** Whether the agent must answer: a mention, a 1:1 direct message, or a handle that answers every prompt. */
|
|
1383
|
+
mustReply?: boolean;
|
|
1384
|
+
/** The event's place in its conversation, gathered at dispatch; `more` counts messages past `since`'s cap. */
|
|
1385
|
+
conversation?: {
|
|
1386
|
+
index?: number;
|
|
1387
|
+
since?: SinceMessage[];
|
|
1388
|
+
more?: number;
|
|
1389
|
+
/** Internal acknowledgement watermark of the recorded unseen snapshot. */
|
|
1390
|
+
unseen?: {
|
|
1391
|
+
version: number;
|
|
1392
|
+
epoch?: string;
|
|
1393
|
+
};
|
|
1394
|
+
};
|
|
1363
1395
|
repo?: {
|
|
1364
1396
|
owner: string;
|
|
1365
1397
|
name: string;
|
|
1366
1398
|
cloneUrl: string;
|
|
1367
|
-
ref: string;
|
|
1368
1399
|
defaultBranch: string;
|
|
1369
1400
|
};
|
|
1370
1401
|
}
|
|
@@ -1411,6 +1442,10 @@ interface AgentTask {
|
|
|
1411
1442
|
definition: AgentDefinition;
|
|
1412
1443
|
/** Frozen id of the credential selected for this task. */
|
|
1413
1444
|
credential?: string;
|
|
1445
|
+
/** The engine order for this task; a pinned engine has one entry. */
|
|
1446
|
+
engineChain?: string[];
|
|
1447
|
+
/** Applicable credentials frozen with the engine order, without their values. */
|
|
1448
|
+
engineCredentials?: Record<string, string>;
|
|
1414
1449
|
/** Wular user who asked, when known; their personal credential comes first. */
|
|
1415
1450
|
requester?: string;
|
|
1416
1451
|
/** Stored agent body for runners whose checkout does not contain the agent. */
|
|
@@ -1428,14 +1463,16 @@ interface AgentTask {
|
|
|
1428
1463
|
thread?: string;
|
|
1429
1464
|
within?: string;
|
|
1430
1465
|
}>;
|
|
1431
|
-
/**
|
|
1466
|
+
/** Context gathered by the receiver: repository instructions and who asked. */
|
|
1432
1467
|
context?: TaskContext;
|
|
1433
|
-
/** What the platform thread gets when the run
|
|
1468
|
+
/** What the platform thread gets when the run fails without an answer. */
|
|
1434
1469
|
failureReply?: string;
|
|
1470
|
+
/** The task's dashboard page, linked when the agent returns no reply where one is due. */
|
|
1471
|
+
taskUrl?: string;
|
|
1435
1472
|
}
|
|
1436
1473
|
interface TaskContext {
|
|
1437
1474
|
outputSchema?: object;
|
|
1438
|
-
/**
|
|
1475
|
+
/** Earlier turns a dashboard continuation pastes in, oldest first. */
|
|
1439
1476
|
messages?: Array<{
|
|
1440
1477
|
user: string;
|
|
1441
1478
|
text: string;
|
|
@@ -1443,10 +1480,14 @@ interface TaskContext {
|
|
|
1443
1480
|
}>;
|
|
1444
1481
|
/** Completed turns of this task, kept across dashboard continuations. */
|
|
1445
1482
|
turns?: TaskTurn[];
|
|
1446
|
-
/** Rolling note the agent wrote at the end of its previous turn in this thread. */
|
|
1447
|
-
note?: string;
|
|
1448
1483
|
/** Extra instructions from the config repo (`.coder/<agent>.md`). */
|
|
1449
1484
|
instructions?: string;
|
|
1485
|
+
/** The config repo `instructions` came from. */
|
|
1486
|
+
repository?: string;
|
|
1487
|
+
/** Whether this turn requires a reply. */
|
|
1488
|
+
mustReply?: boolean;
|
|
1489
|
+
/** The last conversation batch each kind admitted, by steer or resume. */
|
|
1490
|
+
admissions?: Partial<Record<'batch' | 'reactions', string>>;
|
|
1450
1491
|
/** The Coder account behind the event's actor, when they connected it. */
|
|
1451
1492
|
user?: {
|
|
1452
1493
|
name: string;
|
|
@@ -1454,6 +1495,16 @@ interface TaskContext {
|
|
|
1454
1495
|
};
|
|
1455
1496
|
}
|
|
1456
1497
|
//#endregion
|
|
1498
|
+
//#region src/integrations/types.d.ts
|
|
1499
|
+
/** A message the agent did not get as a turn, as `since` lists it. */
|
|
1500
|
+
interface SinceMessage {
|
|
1501
|
+
/** The platform's message id, so a message counts once; not shown to the agent. */
|
|
1502
|
+
id?: string;
|
|
1503
|
+
author: string;
|
|
1504
|
+
text: string;
|
|
1505
|
+
sentAt: string;
|
|
1506
|
+
}
|
|
1507
|
+
//#endregion
|
|
1457
1508
|
//#region src/client/types.d.ts
|
|
1458
1509
|
/** What publishing did to one of the agent's apps: pushed it, failed to, or found it needs changes on the platform. */
|
|
1459
1510
|
interface AppSync {
|
|
@@ -1531,7 +1582,8 @@ interface ConnectionRow {
|
|
|
1531
1582
|
/** Set on a member's own connection; `mine` when that member is the viewer. */
|
|
1532
1583
|
owner?: string;
|
|
1533
1584
|
mine?: true;
|
|
1534
|
-
|
|
1585
|
+
/** Absent follows the mode of the agent whose task uses it. */
|
|
1586
|
+
access?: 'read' | 'write';
|
|
1535
1587
|
auth: 'none' | 'key' | 'oauth';
|
|
1536
1588
|
/** The remote server, or the stdio command, it is bound to. */
|
|
1537
1589
|
url?: string;
|
|
@@ -1607,8 +1659,9 @@ interface McpServerSpec {
|
|
|
1607
1659
|
};
|
|
1608
1660
|
/** Tool allowlist; omit or empty for every tool the server offers. */
|
|
1609
1661
|
tools?: string[];
|
|
1662
|
+
/** Schemas load before the first prompt instead of behind tool search. */
|
|
1663
|
+
alwaysLoad?: boolean;
|
|
1610
1664
|
}
|
|
1611
|
-
type TaskKind = 'task';
|
|
1612
1665
|
type TaskStatus = 'queued' | 'running' | 'completed' | 'failed' | 'cancelled';
|
|
1613
1666
|
/** A persisted task record (task.json). Most fields accrete over the lifecycle. */
|
|
1614
1667
|
interface Task {
|
|
@@ -1616,24 +1669,35 @@ interface Task {
|
|
|
1616
1669
|
createdAt: string;
|
|
1617
1670
|
updatedAt?: string;
|
|
1618
1671
|
status: TaskStatus;
|
|
1619
|
-
kind?: TaskKind;
|
|
1620
1672
|
name?: string | null;
|
|
1621
1673
|
engine?: Engine;
|
|
1622
1674
|
prompt?: string;
|
|
1623
1675
|
outputSchema?: object;
|
|
1624
1676
|
currentPrompt?: string | null;
|
|
1625
1677
|
system?: string | null;
|
|
1678
|
+
systemPrompt?: string;
|
|
1626
1679
|
model?: string | null;
|
|
1627
1680
|
effort?: Effort | null;
|
|
1628
1681
|
permissions?: Permission;
|
|
1629
1682
|
resumeThreadId?: string | null;
|
|
1630
1683
|
cwd?: string;
|
|
1631
|
-
background?: boolean;
|
|
1632
1684
|
pid?: number | null;
|
|
1633
1685
|
dispatchId?: string;
|
|
1634
1686
|
threadId?: string | null;
|
|
1687
|
+
previousThreadIds?: string[];
|
|
1688
|
+
pendingRollover?: {
|
|
1689
|
+
summary: string;
|
|
1690
|
+
recent: string;
|
|
1691
|
+
exchanges: number;
|
|
1692
|
+
};
|
|
1693
|
+
rollingOver?: boolean;
|
|
1694
|
+
steerClosed?: boolean;
|
|
1695
|
+
conversation?: boolean;
|
|
1635
1696
|
turnId?: string | null;
|
|
1636
1697
|
steerEndpoint?: string | null;
|
|
1698
|
+
turnUsage?: Array<Pick<TurnResult, 'tokens' | 'model'> & {
|
|
1699
|
+
at: string;
|
|
1700
|
+
}>;
|
|
1637
1701
|
completedAt?: string;
|
|
1638
1702
|
resumedAt?: string;
|
|
1639
1703
|
error?: string;
|
|
@@ -1666,6 +1730,7 @@ interface TurnResult {
|
|
|
1666
1730
|
finalMessage?: string;
|
|
1667
1731
|
touchedFiles?: string[];
|
|
1668
1732
|
tokens?: TokenUsage | null;
|
|
1733
|
+
contextTokens?: number;
|
|
1669
1734
|
/** The model that ran the turn (tokens are only comparable per model). */
|
|
1670
1735
|
model?: string | null;
|
|
1671
1736
|
error?: {
|
|
@@ -1707,4 +1772,4 @@ interface CommandHelpSpec {
|
|
|
1707
1772
|
/** A subcommand handler. Receives the argv slice after the command name. */
|
|
1708
1773
|
type CommandHandler = (argv: string[]) => Promise<void> | void;
|
|
1709
1774
|
//#endregion
|
|
1710
|
-
export { type InstallationLink as A, RunnerUpdate as C, type AgentEvent as D, type AgentDefinition as E, type CoderConfig as F, type CustomModelConfig as I, Preset as M, type TaskContext as N, type AgentTask as O, type TaskSource 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 InstallationSettings 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 };
|
|
1775
|
+
export { type InstallationLink as A, RunnerUpdate as C, type AgentEvent as D, type AgentDefinition as E, type CoderConfig as F, type CustomModelConfig as I, type config as L, Preset as M, type TaskContext as N, type AgentTask as O, type TaskSource 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 InstallationSettings 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 };
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{qi as e}from"./core-DwsAMCnL.js";var t=e({PRESETS:()=>n});const n=[`
|
|
1
|
+
import{qi as e}from"./core-DwsAMCnL.js";var t=e({PRESETS:()=>n});const n=[`read`,`write`];export{t as n,n as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e}from"./cli-Fp28pM4Y.js";import{t}from"./models-VaiIYlOW.js";import{n}from"./add-B26QSwPY.js";import{t as r}from"./remove-VtavIuGm.js";const i=e({name:`model unalias`,help:{usage:`coder model unalias <name> [--workspace]`,summary:`Remove a user-defined alias.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]},options:n,args:1,run:({options:e,args:[n],cwd:r})=>t.unalias(n,{...e,cwd:r}),print:e=>r(`unaliased`,e.unaliased,e.file)});export{i as commandModelUnalias};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{i as e}from"./cli-Fp28pM4Y.js";import{t}from"./models-VaiIYlOW.js";import{a as n,i as r,n as i,r as a}from"./add-B26QSwPY.js";const o=e({name:`model update`,help:{usage:`coder model update <name> [--base-url <url>] [--model <id>] [--env-key VAR]`,summary:`Update a configured custom model. Only the flags you pass change; the endpoint
|
|
2
|
+
is re-probed and the wire protocol re-detected.`,flags:[[`--base-url <url>`,`new API base`],[`--model <id>`,`new provider model id`],[`--env-key <VAR>`,`new API-key env var`],[`--workspace`,`write to <repo>/.coder/config.json instead of the user file`]]},options:i,args:1,run:({options:e,args:[r],cwd:i})=>t.update(r,{...n(e),cwd:i}),json:a,print:e=>r(e,`updated`)});export{o as commandModelUpdate};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{D as e}from"./dispatch-BJZqI7sj.js";import{i as t}from"./cli-Fp28pM4Y.js";import{f as n,p as r,t as i}from"./output-BKeyLbvt.js";import{c as a,n as o}from"./args-BekfmD9t.js";import s from"node:process";const c=t({name:`upgrade`,globalFlags:{json:!1,cwd:!1},help:{usage:`coder upgrade [--cli-only] [--plugins-only] [--codex] [--claude] [--pm <mgr>]`,summary:`Update the coder CLI through whichever package manager installed it, then refresh
|
|
2
|
+
the host plugins to match.`,flags:[[`--cli-only`,`update just the CLI`],[`--plugins-only`,`refresh just the host plugins`],[`--codex`,`limit the refresh to the Agent Skills copy (Codex, Pi, ...)`],[`--claude`,`limit the refresh to the Claude Code plugin`],[`--pm <npm|pnpm|yarn|bun>`,`force a package manager instead of auto-detecting`]]},options:{pm:a,"cli-only":o,"plugins-only":o,codex:o,claude:o},run:({options:t})=>e({...t,cliOnly:t[`cli-only`],pluginsOnly:t[`plugins-only`]},l),print:u});function l(e){s.stdout.write(`${r.bold(`Updating coder CLI`)} ${r.dim(`${e}...`)}\n`)}function u(e){let t=r.bold,a=r.dim,o=(e,n)=>n&&e&&n!==e?`${e} ${a(`->`)} ${t(n)}`:`${n??e??`?`} ${a(`(unchanged)`)}`,c=(e,t)=>`${t.installed?n(`${e} ${o(t.from,t.to)} ${a(`- ${t.note}`)}`):i(`${e} ${t.note}`)}\n`;e.cli&&s.stdout.write(e.cli.changed?`${n(`coder CLI ${o(e.cli.from,e.cli.to)}`)}\n`:`${n(`coder CLI ${e.cli.from} ${a(`(already latest)`)}`)}\n`),e.claudePlugin&&s.stdout.write(c(`claude plugin`,e.claudePlugin)),e.agentsSkill&&s.stdout.write(c(`agents skill `,e.agentsSkill))}const d=async()=>(await import(`./refresh-D-broYEx.js`)).commandRefreshUpdate,f=Object.assign(async e=>e[0]===`refresh`?(await d())(e.slice(1)):c(e),c,{subcommands:{refresh:d}});export{f as commandUpgrade};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{i as e,r as t}from"./cli-Fp28pM4Y.js";import{g as n,p as r}from"./output-BKeyLbvt.js";import{c as i,s as a,t as o}from"./args-BekfmD9t.js";import s from"node:process";function c(e,t){let i=Array.isArray(e.totals)?e.totals.map(e=>({group:t??``,...e})):Object.entries(e.totals).flatMap(([e,t])=>t.map(t=>({group:e,...t})));if(!i.length)return void s.stdout.write(`${r.dim(`No usage in this period.`)}\n`);s.stdout.write(`${n([{header:`by`,value:e=>e.group},{header:`key`,value:e=>e.key,paint:e=>r.cyan(e)},{header:`tasks`,value:e=>String(e.tasks)},{header:`runner ms`,value:e=>String(e.runnerMs)},{header:`tokens`,value:e=>e.tokens===void 0?``:JSON.stringify(e.tokens)}],i,r)}\n`)}const l=e({name:`agent usage`,help:{usage:`coder agent usage [--since 7d|24h|<ms>] [--by agent|installation|engine] [--server [url]] [--json] [--cwd <dir>]`,flags:[[`--since <period|ms>`,`period such as 7d or 24h, or milliseconds since epoch`],[`--by <group>`,`agent, installation, or engine`],t]},options:{...o,...a,since:i,by:i},run:async({options:e,cwd:t})=>{let{agents:n}=await import(`./agent-B8ItyuHN.js`).then(e=>e.t);return n.usage({...e,cwd:t,organization:e.workspace,since:e.since??`7d`})},print:(e,{options:t})=>c(e,t.by)});export{l as commandAgentUsage};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{a as e,i as t,r as n,t as r}from"./slack-Kpj-G9FE.js";const i=e=>({type:`mrkdwn`,text:e}),a=e=>({type:`section`,text:i(e.length>3e3?`${e.slice(0,2999)}…`:e)}),o=e=>e.replace(/&/g,`&`).replace(/</g,`<`).replace(/>/g,`>`),s=(e,t)=>`<${e}|${o(t)}>`,c={queued:`Queued`,running:`Running`,waiting:`Needs approval`,completed:`Completed`,failed:`Failed`,cancelled:`Cancelled`},l=(e,t,n,i)=>({type:`button`,action_id:`${r}${e}`,text:{type:`plain_text`,text:n},url:t,...i?{style:`primary`}:{}});function u(e,r,i){let s=i?.slug??r,c=i?.listens.find(e=>e.integration===n.id)?.events??[],u=c.map(e=>n.events[e]?.description??e),d=t(o(r),c,`message it here`);return{type:`home`,blocks:[a([`*${o(i?.name??r)}*`,i?.description&&o(i.description)].filter(Boolean).join(`
|
|
2
|
+
`)),...d?[a(`*Use it here*\n${d}`)]:[],...u.length?[a(`*Listens to*\n${u.join(`
|
|
3
|
+
`)}`)]:[],{type:`divider`},{type:`actions`,elements:[l(`agent`,`${e.dash}/agents/${encodeURIComponent(s)}/platforms`,`Open in Coder`,!0),l(`coder`,e.home.replace(/\/$/,``),`Make your own agent`)]}]}}async function d(t,n){if(!t.publicUrl||!t.dashUrl||!t.installationId)return;let r=u({home:t.publicUrl,dash:t.dashUrl},t.name,await t.agent?.());await e(`views.publish`,{user_id:n,view:r},await t.token(t.installationId),t.fetch)}async function f(r,i,{open:s,setup:c}){if(!r.installationId)return;let u=await r.agent?.(),d=u?.name??r.name,f=t(o(r.name),u?u.listens.find(e=>e.integration===n.id)?.events??[]:[`mention`],`message it here`),p=[a([`*${o(d)} is in your workspace*`,u?.description&&o(u.description)].filter(Boolean).join(`
|
|
4
|
+
`)),...f?[a(`*Use it*\n${f}`)]:[],...c?[a(`*One step left*\nAdd a model so ${o(d)} can start working.`)]:[],{type:`actions`,elements:[...c?[l(`model`,c,`Add a model`,!0)]:[],l(`agent`,s,`Open in Coder`,!c)]}];await e(`chat.postMessage`,{channel:i,text:`${d} is in your workspace`,blocks:p},await r.token(r.installationId),r.fetch)}function p(e,t){let n=Math.floor(t.startedAt/1e3),r=t.title.length>150?`${t.title.slice(0,149)}…`:t.title;return{blocks:[{...a(`*${s(e,r)}*`),fields:[i(`*Agent*\n${o(t.agent)}`),i(`*Status*\n${c[t.status]??t.status}`),i(`*From*\n${o(t.from)}`),i(`*Started*\n<!date^${n}^{date_short_pretty} at {time}|${new Date(t.startedAt).toISOString()}>`)]},{type:`context`,elements:[i(`Coder task ${o(t.id)}`)]}]}}function m(e,t){let r=t.listens.map(e=>e.name),c=t.listens.length===1&&t.listens[0].integration===n.id;return{blocks:[{...a([`*${s(e,t.name)}*`,t.description&&o(t.description)].filter(Boolean).join(`
|
|
5
|
+
`)),...c?{}:{fields:[i(`*Listens on*\n${r.join(`, `)||`Nothing yet`}`)]}},{type:`context`,elements:[i(`Coder agent`)]}]}}async function h(e,t,n){let r;try{r=new URL(n)}catch{return}let i=`${t.pathname.replace(/\/$/,``)}/`;if(r.origin!==t.origin||!r.pathname.startsWith(i))return;let[a,o]=r.pathname.slice(i.length).split(`/`);if(!o)return;let s;try{s=decodeURIComponent(o)}catch{return}if(a===`tasks`){let t=await e.task?.(s);return t&&p(n,t)}if(a===`agents`){let t=await e.agent?.(s);return t&&m(n,t)}}async function g(t,n){if(!t.dashUrl||!t.installationId)return;let r=new URL(t.dashUrl),i=await Promise.all(n.links.map(async({url:e})=>[e,await h(t,r,e)])),a=Object.fromEntries(i.filter(([,e])=>e));if(!Object.keys(a).length)return;let o=n.unfurl_id&&n.source?{unfurl_id:n.unfurl_id,source:n.source}:{channel:n.channel,ts:n.message_ts};await e(`chat.unfurl`,{...o,unfurls:a},await t.token(t.installationId),t.fetch)}export{d as publishHome,g as unfurl,f as welcome};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import{ar as e,nn as t,qt as n,ur as r}from"./prompts-CEf7z4i_.js";import{i}from"./cli-Fp28pM4Y.js";import{_ as a,a as o,b as s,c,h as l,l as u,n as d,p as f,s as p,u as m,v as h,y as g}from"./output-BKeyLbvt.js";import{t as _,u as v}from"./args-BekfmD9t.js";import y from"node:path";import b from"node:process";import x from"node:fs";const S=i({name:`flow watch`,help:{usage:`coder flow watch [run-id] [--tail <n|all>] [--json]`,summary:`Watch a flow run live: replay its progress lines from the start, then keep
|
|
2
|
+
following while it runs (Ctrl-C detaches; it keeps running). Blocks until it
|
|
3
|
+
finishes; exits 0 on success, 1 otherwise. Defaults to the most recent run.
|
|
4
|
+
For the result alone, prefer \`coder flow result\`. Alias: stream.`,flags:[[`--tail <n|all>`,`replay only the last n events first (default: all)`]],examples:[[`coder flow watch`,`follow the most recent run to completion`]]},options:{..._,tail:v},args:1,run:async({options:e,args:[t]})=>{let{watchRun:n}=await import(`./executor-LkokKTTd.js`).then(e=>e.S);return R(n(t,{tail:e.tail}),{json:e.json,stream:!0})}}),C=[`⣾`,`⣽`,`⣻`,`⢿`,`⡿`,`⣟`,`⣯`,`⣷`];function w(e,t=!1){let n=f;return t?d(`[${E(e)}]`,10):e===`completed`?n.bold(n.green(`✔`)):e===`failed`||e===`cancelled`||e===`stopped`?n.bold(n.red(`✘`)):e===`running`?n.bold(n.cyan(`●`)):n.dim(`○`)}function T(){return d(`[start]`,10)}function E(e){return e===`completed`?`done`:e===`cancelled`?`failed`:e}function D(e,t){return e??t.replace(/\s+/g,` `).trim().slice(0,60)}function O(e,t,n,r,i,a){let o=f,s=d(t??n,32);return[`${e} ${a?o.bold(s):s}`,o.dim(d(n,24)),o.light(d(i??``,20)),r?o.light(`${u(r.total)} tok`):``].join(` `).trimEnd()}function k(e,t=!1){let n=f;return`${w(e.ok?`completed`:`failed`,t)} ${n.dim(`gate`)} ${n.light(e.cmd)}${e.ok?``:n.dim(` · exit ${e.code}`)}`}function A(e,t,n){let r=f,i=n!==void 0&&n>=1e3?r.dim(` · ${o(n)}`):``;return`${t} ${r.dim(`gate`)} ${r.light(e)}${i}`}function j(e,t=!1){return f.dim(`${`│ `.repeat(e)}${t?`└─`:`├─`}`)}function M(e){return f.dim(`${`│ `.repeat(e)}│ `)}function N(e){return`${` `.repeat(e.depth)}${e.log?`${d(`[log]`,10)} `:``}${e.body}`}function P(e,t,n=!1){return n?N(e):`${e.log?M(e.depth):j(e.depth,t)} ${e.body}`}function F(e){return f.dim(`${`│ `.repeat(Math.max(0,e))}│`)}var I=class{stream;names=new Map;active=new Map;activeGates=new Map;pending;previews=new Map;tails=new Map;previewWatchers=new Map;frame=0;hasCommitted=!1;timer;tty;region;constructor(e=b.stdout){this.stream=e,this.tty=!!e.isTTY,this.region=new a(e)}emit(e){let n=f;switch(e.kind){case`task-start`:{let n={name:D(e.name,e.prompt),engine:e.engine,depth:e.depth??0};if(this.names.set(e.taskId,n),!this.tty){this.final(n.depth,O(T(),n.name,e.taskId,null,n.engine));return}this.active.set(e.taskId,n),this.previewWatchers.get(e.taskId)?.close(),this.previewWatchers.set(e.taskId,r(t(b.cwd(),e.taskId),t=>{t&&t!==`log.jsonl`||(this.refreshPreviews(e.taskId),this.repaint())})),this.refreshPreviews(e.taskId),this.spin(!0),this.repaint();return}case`task-end`:{this.active.delete(e.taskId),this.previews.delete(e.taskId),this.tails.delete(e.taskId),this.previewWatchers.get(e.taskId)?.close(),this.previewWatchers.delete(e.taskId),this.idle();let t=this.names.get(e.taskId);this.final(t?.depth??0,O(w(e.status,!this.tty),t?.name??null,e.taskId,e.tokens,t?.engine));return}case`gate-start`:{let t={cmd:e.cmd,depth:e.depth??0,startedAt:Date.now()};if(!this.tty){this.final(t.depth,A(t.cmd,T()));return}this.activeGates.set(e.gateId,t),this.spin(!0),this.repaint();return}case`gate`:e.gateId&&this.activeGates.delete(e.gateId),this.idle(),this.final(e.depth??0,k(e,!this.tty));return;case`log`:for(let t of e.message.split(`
|
|
5
|
+
`))this.final(e.depth??0,n.light(t),!0);return;case`flow-start`:this.final(e.depth-1,n.bold(`flow ${e.name}`));return;case`replay`:this.final(0,n.dim(`replayed ${e.count} steps from journal`),!0)}}done(){this.spin(!1);for(let e of this.previewWatchers.values())e.close();this.previewWatchers.clear(),this.flush(0),this.tty&&this.repaint(),this.region.done()}flush(e){this.pending&&=(this.region.commit(`${P(this.pending,e<this.pending.depth,!this.tty)}\n`),this.hasCommitted=!0,void 0)}final(e,t,n=!1){if(!this.tty){this.region.commit(`${N({depth:e,body:t,log:n})}\n`),this.hasCommitted=!0;return}this.flush(e),this.pending={depth:e,body:t,log:n},this.tty&&this.repaint()}repaint(){let e=[],t=[];if(this.pending){let n=P(this.pending,!1);e.push(n),t.push(n)}let n=this.timer?f.bold(f.cyan(C[this.frame%C.length])):w(`running`);for(let[r,i]of this.active){let a=`${j(i.depth??0)} ${O(n,i.name,r,null,i.engine,!0)}`;(e.length||this.hasCommitted)&&e.push(F(i.depth??0)),e.push(a),t.push(a);let o=this.previews.get(r);o&&e.push(`${M(i.depth??0)} ${f.dim(o)}`)}for(let r of this.activeGates.values()){let i=`${j(r.depth)} ${A(r.cmd,n,Date.now()-r.startedAt)}`;(e.length||this.hasCommitted)&&e.push(F(r.depth)),e.push(i),t.push(i)}let r=(s(this.stream)??1/0)-1,i=e.length<=r?e:t;if(i.length>r){let e=Math.max(0,r-1);i=[f.dim(`… +${i.length-e} more running`),...i.slice(-e)]}this.region.set(i)}refreshPreviews(r){try{let i=this.tails.get(r),a;if(!i){let o=y.join(t(b.cwd(),r),`log.jsonl`),s=x.existsSync(o)?x.statSync(o).size:0;a=n(b.cwd(),r,1)[0],i=e(o,s),this.tails.set(r,i)}for(let e of i())try{a=JSON.parse(e)}catch{a={message:e}}let o=a?.message?.replace(/\s+/g,` `).trim();if(!o)return;let s=(g(this.stream)??120)-8;this.previews.set(r,o.length>s?`${o.slice(0,s-1)}…`:o)}catch{}}idle(){!this.active.size&&!this.activeGates.size&&this.spin(!1)}spin(e){e&&!this.timer?this.timer=setInterval(()=>{this.frame++,this.repaint()},120).unref():!e&&this.timer&&(clearInterval(this.timer),this.timer=void 0)}};function L(e,t){if(t){l(e);return}let n=!b.stdout.isTTY,r=n?``:`${f.dim(`└─`)} `;b.stdout.write(`${r}${w(`completed`,n)} run ${f.cyan(e.runId)} completed ${f.dim(`(${e.taskCount} tasks)`)}\n`),b.stdout.write(`\n${c(e.result)}\n`),z(e.tokens)}async function R(e,t){let{runId:n}=e.record,r=!!(t.stream&&t.json);!t.json&&e.record.status===`running`&&b.stderr.write(`${f.dim(`[flow]`)} Run ${f.cyan(n)} started and is waiting to finish. Press Ctrl-C to detach. It keeps running.\n\n`);let i=t.json?()=>{}:h(),a=()=>{i(),r||(b.stderr.write(`\n${f.dim(`[flow] Detached. The run is still going.`)}\n`),b.stderr.write(`\n${p([`Result: coder flow result ${n}`,`Stop it: coder flow stop ${n}`],f)}\n`)),b.exit(130)};b.on(`SIGINT`,a);let o=new I;for await(let n of e.events)r?b.stdout.write(`${JSON.stringify(n)}\n`):t.json||o.emit(n);o.done(),i(),b.off(`SIGINT`,a);let s=e.final();r&&(b.stdout.write(`${JSON.stringify(B(s))}\n`),b.exit(s.status===`completed`?0:1)),s.status===`completed`&&(L({runId:n,name:s.name,status:`completed`,result:s.result,tokens:s.ledger,taskCount:s.taskCount},t.json),b.exit(0)),s.status===`stopped`&&(t.json?l({runId:n,name:s.name,status:`stopped`,taskCount:s.taskCount}):b.stdout.write(`\n${f.dim(`[flow] Run ${n} stopped.`)}\n\n${p([`Resume: coder flow resume ${n}`],f)}\n`),b.exit(1)),b.stdout.write(`\n${f.red(`error:`)} ${s.error??`unknown error`}\n`),b.stdout.write(`\n${p([`Resume: coder flow resume ${n}`],f)}\n`),b.exit(1)}function z(e){let t=Object.keys(e);if(t.length){b.stdout.write(`\n${f.bold(`Tokens:`)}\n`);for(let n of t)b.stdout.write(` ${f.dim(m(e[n],n))}\n`)}}function B(e){let{steps:t,events:n,...r}=e;return r}export{I as FlowStepRenderer,S as commandWatch,k as gateLine,A as gateRunningLine,N as paintPlain,R as printFollow,z as printLedger,L as printRunSummary,B as resultJson,w as stepSymbol,D as taskLabel,O as taskLine};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import{Zt as e}from"./core-DwsAMCnL.js";import{Ar as t,Cr as n,lr as r,pn as i,pr as a,vr as o,yr as s}from"./prompts-CEf7z4i_.js";import{i as c,r as l}from"./cli-Fp28pM4Y.js";import{p as u,y as d}from"./output-BKeyLbvt.js";import{s as f,t as p,u as m}from"./args-BekfmD9t.js";import{a as h,c as g,i as _,l as v,n as y,t as b,u as x}from"./result-DvOqIwhh.js";import S from"node:process";function C(e,t){let n=e.level===`sys`?t.dim(`· ${e.line}`):e.level===`err`?t.light(e.line):e.line;S.stdout.write(`${n}\n`)}async function w(e,t,n){let a=n.trim===void 0?500:n.trim===`none`?1/0:n.trim;if(`attempts`in e.task){let{logEntry:r}=await import(`./log-view-CL3_S0IQ.js`).then(e=>e.r),i=await b.create({cwd:e.task.task.cwd??t,startedAt:e.task.startedAt??e.task.createdAt,trim:a,explicitTrim:n.trim!==void 0,width:d()});for await(let t of e.events){let e=t;if(n.json){S.stdout.write(`${JSON.stringify(e,null,2)}\n`);continue}let a=e.entry??r(e.line);if(!a){C(e,u);continue}let o=i.render({...a,at:a.at??new Date(e.at).toISOString()});o.length&&S.stdout.write(`${o.join(`
|
|
2
|
+
`)}\n`)}let o=await e.final();n.json||_(o,u),S.exit(0)}let o=e.task,s=await b.create({cwd:o.cwd??t,startedAt:Date.parse(o.createdAt??``)||void 0,trim:a,explicitTrim:n.trim!==void 0,width:d()});if(!n.json){let e=[...g(o,{status:o.status}),...i.includes(o.status)?[u.dim(`Watching. Press Ctrl-C to stop.`)]:[],...o.prompt?h(o.prompt,u,{truncate:!1}):[],``];S.stdout.write(`${e.join(`
|
|
3
|
+
`)}\n`)}let c=null,l=null,f=e=>{let t=s.render(e);t.length&&S.stdout.write(`${t.join(`
|
|
4
|
+
`)}\n`)};for await(let t of e.events){let e=t;if(e.kind===`usage`&&e.tokens&&(c=e.tokens),n.json){let t=e.kind===`steer`?1/0:a,n=e.message?{...e,message:x(e.message,t,{plain:!0})}:e;S.stdout.write(`${JSON.stringify(n)}\n`);continue}e.kind!==`usage`&&(l&&=(f(l),null),e.kind===`assistant`?l=e:f(e))}let{status:p,result:m,task:w}=await e.final();if(n.json)S.stdout.write(`${JSON.stringify({taskId:o.id,status:p,result:m},null,2)}\n`);else{let e=p===`completed`?`(no final message)`:`(task ${p})`,n=v(w,{tokens:m?.tokens??c,tokenModel:m?.model,files:m?.touchedFiles?.map(e=>r(o.cwd??t,e)),statusChanged:p!==o.status});n.length&&S.stderr.write(`\n${n.join(`
|
|
5
|
+
`)}\n`);let i=y(m,w.error,e),a=l?String(l.message??``):``;S.stdout.write(`\n${i.trim()?i:a}\n`)}S.exit(p===`completed`?0:1)}const T=c({name:`task watch`,help:{usage:`coder task watch [task-id] [--server [url]]`,summary:`Stream a running task's transcript live (for you/debugging), then print its
|
|
6
|
+
final answer. Replays the last line first so the current step is visible;
|
|
7
|
+
--tail <n> replays the last n lines (--tail all for the whole transcript).
|
|
8
|
+
Blocks until it finishes; exits 0 on success, 1 otherwise. For the answer
|
|
9
|
+
alone, prefer \`coder result\`. Alias: stream.`,flags:[[`--tail <n|all>`,`replay the last n log lines first (default: 1)`],[`--trim <n|none>`,`budget for tool output and thinking (default: 1200 chars, 12 lines)`],l],examples:[[`coder task watch`,`follow the most recent task to completion`]]},options:{...p,tail:m,trim:n(t([s(`none`),a().check(o(),e())],{error:`expected a positive integer or "none"`})),...f},args:1,async run({options:e,args:[t],cwd:n}){let{tasks:r}=await import(`./task-C506SkPR.js`).then(e=>e.t);await w(await r.watch(t,{...e,organization:e.workspace}),n,e)}});export{T as commandWatch,C as printLine};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{B as e}from"./prompts-CEf7z4i_.js";import t from"node:process";async function n(n,r,i){let a=n.envKey?t.env[n.envKey]:void 0,o=!1;for(let t of e(n.baseUrl,r))try{let e=await fetch(t,{method:`POST`,headers:{"content-type":`application/json`,...a?{Authorization:`Bearer ${a}`}:{}},body:JSON.stringify(i),signal:AbortSignal.timeout(5e3)});if(o=!0,e.status!==404&&e.status!==405&&e.status!==501)return{baseUrl:t.slice(0,-(r.length+1))}}catch{}return{reachable:o}}async function r(e){let t=await n(e,`responses`,{model:e.model,input:[],stream:!1});if(`baseUrl`in t)return{wireApi:`responses`,baseUrl:t.baseUrl};let r=await n(e,`chat/completions`,{model:e.model,messages:[],stream:!1});return`baseUrl`in r?{wireApi:`chat`,baseUrl:r.baseUrl}:t.reachable||r.reachable?{wireApi:`chat`}:null}export{r as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{Vt as e}from"./prompts-CEf7z4i_.js";import{i as t}from"./cli-Fp28pM4Y.js";import{i as n}from"./output-BKeyLbvt.js";import{c as r}from"./args-BekfmD9t.js";const i=t({name:`task worker`,options:{cwd:r},args:1,async run({args:[t],cwd:r}){let{startAgentMailbox:i}=await import(`./exec-DcWxZar6.js`).then(e=>e.i),{runWorker:a}=await import(`./worker-nyRZuq4g.js`),o=e(r,t);o||n(`Worker: task ${t} not found.`),await a(r,o,i)}});export{i as commandWorker};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{Dn as e,J as t,Ot as n,P as r,Q as i,Qn as a,U as o,Vt as s,W as c,X as l,Yn as u,Z as d,an as f,ar as p,bt as m,cn as h,dn as g,fn as _,fr as v,g as y,nn as b,r as x,wt as S}from"./prompts-CEf7z4i_.js";import{F as C,I as w,M as T,S as E,b as D,h as O,s as k}from"./dispatch-BJZqI7sj.js";import{t as A}from"./chat-bridge-WK-pKNfw.js";import{i as j}from"./history-D_A5odLI.js";import{n as M,t as N}from"./log-view-CL3_S0IQ.js";import{o as P,t as F}from"./mcp-B-hy3eM-.js";import{t as I}from"./wire-DshFMRsS.js";import L from"node:path";import R from"node:process";import z from"node:fs";const B={claude:{CLAUDE_CODE_DISABLE_AUTO_MEMORY:`1`},codex:{"features.memories":!1}};function V(e){let t=e.currentPrompt??e.prompt??``;return e.resumeThreadId||!e.pendingRollover?t:y(e.pendingRollover,t)}async function H(t,n,r,i){let o=!!n.pendingRollover;_(t,n.id,{status:`running`,steerEndpoint:null,turnId:null,turnUsage:n.turnUsage??[]});let c=b(t,n.id),l=L.join(c,`log.jsonl`),u=p(l,z.existsSync(l)?z.statSync(l).size:0),d=o?{...n,resumeThreadId:null}:n,f,h=r=>{let i=u().flatMap(e=>{let t=M(e);return t?[t]:[]}),a=i.flatMap(e=>e.message?.startsWith(`Steer accepted live:
|
|
2
|
+
`)?[e.message.slice(m.length)]:[]),o=i.filter(e=>e.kind===`reply`).at(-1)?.message;return e(`worker.record.start`,{taskId:n.id,finalized:!1}),q(t,n,r,{steers:a,lastReply:o})},g;try{g=await i(d,{privateTurn:!1,steerable:!o,onResult:e=>{!f&&e.status===0&&!e.error&&(f=h(e))}})}catch(e){throw o&&_(t,n.id,{threadId:n.threadId,resumeThreadId:n.threadId,steerEndpoint:null}),e}g.status!==0&&o&&(g={...g,threadId:n.threadId??null});let y=[...n.previousThreadIds??[]];g.status===0&&n.threadId&&g.threadId&&n.threadId!==g.threadId&&!y.includes(n.threadId)&&y.push(n.threadId);let C=g.status===0&&!!g.threadId&&Number(g.contextTokens)>r,w=new Date().toISOString();e(`worker.engine.closed`,{taskId:n.id}),f??=h(g),v(L.join(c,`result.json`),JSON.parse(a(g))),e(`worker.record.start`,{taskId:n.id,finalized:!0});let T=_(t,n.id,{turnUsage:[...s(t,n.id)?.turnUsage??[],{at:f,tokens:g.tokens,model:g.model}],status:g.status===0?`completed`:`failed`,completedAt:w,rollingOver:C,...C?{pid:R.pid}:{},threadId:g.threadId,resumeThreadId:g.threadId,previousThreadIds:y,...g.status===0?{pendingRollover:void 0}:{},steerEndpoint:null,turnId:g.turnId??null});if(e(`worker.result.recorded`,{taskId:n.id,finalized:!0}),o&&g.status===0&&S(t,n.id,{kind:`status`,message:`Context rolled over: summary plus the last ${n.pendingRollover.exchanges} exchanges`}),!C)return g;try{let e=await j(T),r=await i({...T,currentPrompt:x,outputSchema:void 0},{privateTurn:!0});if(!s(t,n.id))return g;if(r.tokens){let e=new Date(Math.max(Date.now(),Date.parse(f)+1)).toISOString();_(t,n.id,{turnUsage:[...s(t,n.id)?.turnUsage??[],{at:e,tokens:r.tokens,model:r.model}]}),g={...g,tokens:N(g.tokens??null,r.tokens)},v(L.join(c,`result.json`),JSON.parse(a(g)))}if(r.status!==0||!r.finalMessage?.trim())throw Error(r.error?.message??`Summary turn returned no summary`);if(Buffer.byteLength(r.finalMessage)>64e3)throw Error(`Summary exceeded the context budget`);if(s(t,n.id)?.status===`cancelled`)return g;_(t,n.id,{pendingRollover:{summary:r.finalMessage,recent:e.text,exchanges:e.exchanges}})}catch(e){S(t,n.id,{kind:`warning`,message:`Context rollover deferred: ${e instanceof Error?e.message:String(e)}`})}finally{s(t,n.id)&&_(t,n.id,{rollingOver:!1})}return g}function U(e,t){let n=0;return()=>{Date.now()-n>=1e4&&(n=Date.now(),h(e,t))}}function W(e,t,{echo:n}){let r=r=>{let i=JSON.parse(a(typeof r==`string`?{message:r}:r));S(e,t,i),n&&i.message&&R.stderr.write(`[coder] ${i.message}\n`)};for(let e of Object.keys(u()))R.env[e]!==void 0&&r({kind:`warning`,message:`${e} is temporarily unavailable; skipped for this task.`});return r}async function G(e,n,{echo:a,env:s={},privateTurn:u=!1,steerable:p=!u,onResult:m}){let h=f(e),g=b(e,n.id),v=c(e),y=W(e,n.id,{echo:a}),x=r[n.permissions??`auto`]??r.auto,E=x.approvalPolicy===`never`?void 0:O({workspaceRoot:h,taskDir:g,mode:x.approvalMode,escalationTimeoutMs:v.approvals.escalationTimeoutMs,allowedNetworkHosts:v.approvals.allowedNetworkHosts,onEvent:e=>y(e)}),D=n.model?v.models?.[n.model]:void 0,j=D&&o(D)?D:void 0;if(j&&!j.wireApi&&n.model){let r=await I(j);r&&(j={...j,...r},v.models[n.model]=j,t(e,n.model,r),S(e,n.id,{kind:`info`,message:`detected wire api for ${n.model}: ${r.wireApi} @ ${j.baseUrl}`}))}if(j?.envKey&&!R.env[j.envKey])throw Error(`Missing environment variable: \`${j.envKey}\`.`);let M=j?await A(j,j.wireApi??`chat`):null,N=i(v,n.model,M??void 0),F=w(e,n);try{return await T(e,{availabilityChecked:R.env.CODER_ENGINE_CHECKED===`1`,prompt:V(n),developerInstructions:n.systemPrompt,outputSchema:n.outputSchema,model:N?.model??l(n.model),modelProvider:N?.modelProvider??null,configOverrides:{...N?.configOverrides,...F||Object.keys(s).length?{"shell_environment_policy.set":{...s,...F?{[C]:F}:{}}}:{},...n.agentId?B.codex:{}},effort:n.effort,sandbox:x.sandbox,approvalPolicy:x.approvalPolicy,networkAccess:d(n.permissions??`auto`,v.engines.codex?.network),approvalsReviewer:x.approvalMode===`auto`?`auto_review`:null,mcpServers:P(n,g,k(n.mcp,R.env,void 0,{onWarning:e=>y({kind:`warning`,message:e})})),nativeMcp:n.nativeMcp??!1,writableRoots:[...x.sandbox===`read-only`?[]:n.addDirs??[],...F?[F]:[]],onApprovalRequest:E,onHeartbeat:U(e,n.id),onResult:m,resumeThreadId:n.resumeThreadId??null,onControlReady:p?(t,r,i)=>{_(e,n.id,{status:`running`,steerEndpoint:t,threadId:r,turnId:i})}:void 0,onProgress:t=>{if(u||(y(t),!p))return;let r=typeof t==`object`?t.threadId:null,i=typeof t==`object`?t.turnId:null;(r||i)&&_(e,n.id,{status:`running`,...r?{threadId:r}:{},...i?{turnId:i}:{}})}})}finally{_(e,n.id,{steerEndpoint:null}),await M?.close()}}async function K(e,t,{echo:n,env:i={},privateTurn:a=!1,steerable:o=!a,onResult:s}){let l=b(e,t.id),u=c(e),d=W(e,t.id,{echo:n}),f=r[t.permissions??`auto`]??r.auto,p=w(e,t);try{return await E(e,{env:{...i,...p?{[C]:p}:{},...t.agentId?B.claude:{}},prompt:V(t),systemPrompt:t.systemPrompt,excludeDynamicSections:t.conversation,settingSources:t.agentId&&t.source&&![`cli`,`dashboard`,`schedule`].includes(t.source)?`project,local`:void 0,outputSchema:t.outputSchema,model:t.model,effort:t.effort,permissions:t.permissions,approvalTaskId:f.approvalMode===`auto`?t.id:null,allowedNetworkHosts:u.approvals.allowedNetworkHosts,additionalDirectories:t.addDirs,...p?{writableDirectories:[p]}:{},mcpServers:P(t,l,k(t.mcp,R.env,void 0,{onWarning:e=>d({kind:`warning`,message:e})})),nativeMcp:t.nativeMcp??!1,promptCacheTtl:t.conversation&&(i.ANTHROPIC_API_KEY||R.env.ANTHROPIC_API_KEY)?`1h`:void 0,taskRoot:l,resumeSessionId:t.resumeThreadId??null,onHeartbeat:U(e,t.id),onResult:s,onSteerReady:o?n=>{_(e,t.id,{status:`running`,steerEndpoint:n})}:void 0,onProgress:n=>{a||(d(n),o&&n.threadId&&_(e,t.id,{status:`running`,threadId:n.threadId}))}})}finally{_(e,t.id,{steerEndpoint:null})}}function q(t,n,r,i={}){let{steers:o=[],lastReply:s}=i,c=n.turnUsage?.at(-1)?.at,l=b(t,n.id);v(L.join(l,`result.json`),JSON.parse(a(r)));let u={at:new Date(Math.max(Date.now(),c?Date.parse(c)+1:0)).toISOString(),prompt:n.currentPrompt??n.prompt??null,...o.length?{steers:o}:{},...s?{lastReply:s}:{},...r};return z.appendFileSync(L.join(l,`results.jsonl`),`${a(u)}\n`,`utf8`),e(`worker.result.recorded`,{taskId:n.id,finalized:!1}),R.connected&&R.send?.(`result`),u.at}function J(e){return async(e,t,n)=>{let r=await F(k(t.mcp,R.env,void 0,{onWarning:()=>{}}));try{let i=t.engine===`claude`?K:G;return await H(e,t,t.conversation?c(e).conversationCompactTokens:1/0,(t,a)=>i(e,t,{...n,...a,env:r.env}))}finally{await r.close()}}}async function Y(e,t){for(;;){let r=await g(e,t,()=>{let r=s(e,t);if(!r)return[];let i=r.status===`failed`||r.status===`cancelled`?[]:n(e,t);return i.length||(_(e,t,{steerClosed:!0,steerEndpoint:null}),R.connected&&R.send?.(`settled`)),i});if(!r.length)return;for(let n of r){let r=_(e,t,{status:`running`,currentPrompt:n,resumeThreadId:s(e,t)?.threadId??null});S(e,t,{message:`Running steered follow-up.`});try{await J(r)(e,r,{echo:!1})}catch(n){let r=n instanceof Error?n.message:String(n);_(e,t,{status:`failed`,error:r}),S(e,t,{kind:`error`,message:r});return}}}}async function X(e,t,n){if(t.dispatchId&&!t.resumedAt)try{z.writeFileSync(L.join(b(e,t.id),`start-${t.dispatchId}`),``,{flag:`wx`})}catch(e){if(e.code===`EEXIST`)return;throw e}_(e,t.id,{status:`running`,pid:R.pid,steerClosed:!1});let r=()=>{},i;try{if(r=n(e,t),t.name?.startsWith(`agent:`)){let{startInboxControl:n,applyTaskMessage:r}=await import(`./task-CQmx_2SI.js`).then(e=>e.d);i=n(b(e,t.id),t.name.slice(6),n=>r(e,s(e,t.id)??t,n))}if(t.simulateApproval){let n=await D(b(e,t.id),{onEvent:n=>S(e,t.id,n)});if(S(e,t.id,{message:`simulated approval: ${n}`}),n===`decline`){_(e,t.id,{status:`cancelled`,completedAt:new Date().toISOString(),error:`simulated approval denied`});return}}await J(t)(e,t,{echo:!1}),await Y(e,t.id)}catch(n){let r=n instanceof Error?n.message:String(n);throw _(e,t.id,{status:`failed`,error:r}),S(e,t.id,{kind:`error`,message:r}),n}finally{await g(e,t.id,()=>{s(e,t.id)?.pid===R.pid&&(_(e,t.id,{steerClosed:!0,steerEndpoint:null}),R.connected&&R.send?.(`settled`))}),r(),await i?.close()}}export{X as runWorker};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e}from"./cli-
|
|
1
|
+
import{i as e}from"./cli-Fp28pM4Y.js";import t from"node:process";const n=e({name:`server workflow`,globalFlags:{json:!1,cwd:!1},help:{usage:`coder server workflow`,summary:`Print the workflow the github-actions runner dispatches. Save it as .github/workflows/coder-agent.yml in every repo the agent runs on, and set RUNNER=github-actions on the server.`,examples:[[`coder server workflow > .github/workflows/coder-agent.yml`,`add it to a repo`]]},options:{},run:async()=>{let{actionsWorkflow:e}=await import(`./runners-vsoGeyuc.js`).then(e=>e.y);return e()},print:e=>t.stdout.write(e)});export{n as commandServerWorkflow};
|
package/docs/agents/coder.md
CHANGED
|
@@ -4,17 +4,17 @@ The built-in agent. On the hosted service it has an install link per platform; s
|
|
|
4
4
|
|
|
5
5
|
## On GitHub
|
|
6
6
|
|
|
7
|
-
- A pull request opening, updating, or becoming ready runs the [review flow](../review.md) read-only and posts inline comments with a sticky summary. Reruns update the summary and never repeat a finding.
|
|
7
|
+
- A pull request opening, updating, or becoming ready runs the [review flow](../review.md) read-only and posts inline comments with a sticky summary. Reruns update the summary and never repeat a finding, and a new push replaces a review that has not started yet.
|
|
8
8
|
- A review request for the agent does the same.
|
|
9
|
-
- A mention (`@<app>` from a repository owner or member) answers from the diff and the repository, or makes the requested change on a branch and links the pull request.
|
|
9
|
+
- A mention (`@<app>` from a repository owner or member), in the conversation or in a finding's thread, answers from the diff and the repository, or makes the requested change on a branch and links the pull request.
|
|
10
10
|
- An issue opening or edit reads the issue and the repository, then answers, makes the change and links the pull request, or asks one clarifying question.
|
|
11
11
|
- An issue or pull-request comment that says "coder" does the same as a mention.
|
|
12
12
|
|
|
13
13
|
## On Slack
|
|
14
14
|
|
|
15
|
-
- A mention, a direct message, or a message that says "coder" reads the thread and the linked repository, then answers, makes the change and links the pull request, or asks one clarifying question.
|
|
16
|
-
- Slash commands
|
|
17
|
-
- Replies stay in the thread they were asked in
|
|
15
|
+
- A mention, a direct message, or a channel message that says "coder" reads the thread and the linked repository, then answers, makes the change and links the pull request, or asks one clarifying question.
|
|
16
|
+
- Slash commands wake it too.
|
|
17
|
+
- Replies stay in the thread they were asked in.
|
|
18
18
|
- When the workspace has connected GitHub from the [dashboard](../dash.md), it can read and change code there.
|
|
19
19
|
|
|
20
20
|
## On Linear
|
|
@@ -26,8 +26,8 @@ The built-in agent. On the hosted service it has an install link per platform; s
|
|
|
26
26
|
| | |
|
|
27
27
|
| ----------- | ----------------------------------------------------------------- |
|
|
28
28
|
| Permissions | `workspace-write`; `read-only` for pull-request reviews |
|
|
29
|
-
| Tools | GitHub `write`; Slack and Linear `
|
|
29
|
+
| Tools | GitHub `write`; Slack and Linear `read` |
|
|
30
30
|
| Flows | `review` |
|
|
31
|
-
| Engine | the workspace's
|
|
31
|
+
| Engine | the workspace's [credential](../self-host.md#credentials) |
|
|
32
32
|
|
|
33
33
|
The definition is `src/agent/builtin/coder/{agent.json,system.md}` in the package; a custom agent is the same two files in your repo ([Your own agents](index.md#your-own-agents)).
|
package/docs/agents/index.md
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
# Agents
|
|
2
2
|
|
|
3
|
-
An agent is a reusable teammate. Its `system.md` holds the standing instructions every task starts from: who it is, what it knows, how it answers. Its definition adds engine, model, effort and permissions defaults, the MCP servers it attaches and the [flows](../flows.md) it may run. Run it from the CLI with `coder task run --agent <id> "…"`, where flags override the defaults, from the [dashboard](../dash.md), or from platform events like a Slack DM or a GitHub pull request.
|
|
3
|
+
An agent is a reusable teammate. Its `system.md` holds the standing instructions every task starts from: who it is, what it knows, how it answers. Its definition adds engine, model, effort and permissions defaults, the MCP servers it attaches and the [flows](../flows.md) it may run. Run it from the CLI with `coder task run --agent <id> "…"`, where flags override the defaults, from the [dashboard](../dash.md), or from platform events like a Slack DM or a GitHub pull request. [Prompt](prompt.md) shows everything its engine gets, per task kind.
|
|
4
4
|
|
|
5
|
-
Connected to a platform, an agent listens for the events it names. Each event runs as a task with a fresh checkout, the agent's instructions, the event as its request, and only the platform tools the agent declared; the reply goes back to the thread. A bigger task can run a flow instead, with the event as its `args`.
|
|
5
|
+
Connected to a platform, an agent listens for the events it names. Each event runs as a task with a fresh checkout, the agent's instructions, the event as its request, and only the platform tools the agent declared; the reply goes back to the thread. Later messages in that conversation, from anyone, steer its task while it runs and resume it once it has finished. A bigger task can run a flow instead, with the event as its `args`.
|
|
6
6
|
|
|
7
7
|
On each platform an agent is its own app, a GitHub App or a Slack app for example, so it has its own handle and permissions and runs only where it is installed. Agents run on a Coder server: the hosted one, [your own](../self-host.md), or this machine's [dashboard](../dash.md).
|
|
8
8
|
|
|
9
9
|
## Connections
|
|
10
10
|
|
|
11
|
-
A connection gives tasks access to an MCP service, your own account on an integration, or an API key passed as one environment variable, such as `GROQ_API_KEY`. Add one under Settings → Connections or with `coder connection add`; an API key is kept as a credential, so rotating the credential rotates the connection. Tasks started by members receive workspace connections and that member’s own connections, narrowed by the agent’s Connections setting and `coder task run --connections`; outsider events receive none.
|
|
11
|
+
A connection gives tasks access to an MCP service, your own account on an integration, or an API key passed as one environment variable, such as `GROQ_API_KEY`. Add one under Settings → Connections or with `coder connection add`; an API key is kept as a credential, so rotating the credential rotates the connection. Tasks started by members receive workspace connections and that member’s own connections, narrowed by the agent’s Connections setting and `coder task run --connections`; outsider events receive none. A connection's access is Default, which follows the agent's, Read-only or Read-write.
|
|
12
12
|
|
|
13
13
|
## Built-in agent
|
|
14
14
|
|
|
@@ -19,7 +19,7 @@ A connection gives tasks access to an MCP service, your own account on an integr
|
|
|
19
19
|
An agent comes from one of two sources:
|
|
20
20
|
|
|
21
21
|
- **Dashboard**: made in the agent editor on the [dashboard](../dash.md).
|
|
22
|
-
- **Repository**: `coder agent init` scaffolds one, asking its id, platforms, events and
|
|
22
|
+
- **Repository**: `coder agent init` scaffolds one, asking its id, platforms, events and access. It is a folder `.coder/agents/<id>/` with an `agent.json` and a `system.md`. A folder in `$CODER_HOME/agents/<id>/` (default `~/.coder/agents`) is yours in every repo, and a repo's folder of the same id wins.
|
|
23
23
|
|
|
24
24
|
Here is a helper that answers in Slack and on GitHub issues:
|
|
25
25
|
|
|
@@ -30,12 +30,10 @@ Here is a helper that answers in Slack and on GitHub issues:
|
|
|
30
30
|
"name": "Helper",
|
|
31
31
|
"description": "Answers engineering questions about acme/app.",
|
|
32
32
|
"permissions": "read-only",
|
|
33
|
+
"access": "read",
|
|
33
34
|
"integrations": {
|
|
34
|
-
"slack": {
|
|
35
|
-
|
|
36
|
-
"tools": "comment"
|
|
37
|
-
},
|
|
38
|
-
"github": { "events": ["mention"], "tools": "observe" }
|
|
35
|
+
"slack": { "events": { "mention": true, "channel": { "match": "^help\\b" } } },
|
|
36
|
+
"github": { "events": ["mention"] }
|
|
39
37
|
}
|
|
40
38
|
}
|
|
41
39
|
```
|
|
@@ -65,10 +63,10 @@ Only pushes to the agents repo's configured branch are imported. An app created
|
|
|
65
63
|
| `engine`, `model`, `effort` | As in `coder task run` | Engine defaults |
|
|
66
64
|
| `permissions` | `read-only` (default), `workspace-write`, `auto` | Agent sandbox mode inside the checkout |
|
|
67
65
|
| `integrations.<id>.events` | Event names from the [integration](#integrations): a list, or a map of event → `true`, a flow name (repo `.coder/flows` or built-in such as `review`), or `{ "flow", "match", "permissions", "actAs" }` | A list or `true` runs the agent, a flow name runs that flow, `match` is a regex the event text must pass, `permissions` overrides the agent's for this event, `"actAs": "requester"` uses the requester's own GitHub token |
|
|
68
|
-
| `
|
|
66
|
+
| `access` | `read` (Read-only) or `write` (Read-write, default) | What it may do on its platforms and connections; also its apps' permissions |
|
|
69
67
|
| `mcp` | A map of MCP servers in the `.mcp.json` entry shape, as in [MCP](../mcp.md) | Servers every task of the agent attaches |
|
|
70
68
|
|
|
71
|
-
`permissions` is about the checkout, `
|
|
69
|
+
`permissions` is about the checkout, `access` is about platforms and connections. An agent can run any [flow](../flows.md#flows-run-by-an-agent), and the tasks it starts never exceed the agent's `permissions`. The server versions imported definitions and activates a new version when their content changes; recreate the app only when `events` or `access` change.
|
|
72
70
|
|
|
73
71
|
## Usage
|
|
74
72
|
|
|
@@ -87,11 +85,11 @@ How a repo runs an agent goes under `agents` in its `.coder/config.json` ([Confi
|
|
|
87
85
|
| ------------------------------------------ | ------------------- | ---------------------------------------------------------- |
|
|
88
86
|
| `engine`, `model`, `effort`, `permissions` | As above | Override the definition |
|
|
89
87
|
| `connections` | Connection id list | Narrow `agents.<id>.connections`; omit for all granted connections |
|
|
90
|
-
| `
|
|
88
|
+
| `access` | `read` | Lower the definition's access to Read-only |
|
|
91
89
|
| `integrations.<id>.allowedEvents` | Event names | Cap the definition's events; omit to allow all it asks for |
|
|
92
90
|
| `disabled` | `true` | Disable the agent and keep its other settings |
|
|
93
91
|
|
|
94
|
-
Unknown ids, integrations, events,
|
|
92
|
+
Unknown ids, integrations, events, and keys fail validation. Usage is read from the repo the event came from.
|
|
95
93
|
|
|
96
94
|
Disable or Enable any agent, built-in ones included, in its Settings › Manage in the dashboard. A disabled agent answers no platform events and starts no tasks in that workspace; its apps, versions, settings and past tasks stay, and other workspaces are unaffected.
|
|
97
95
|
|
|
@@ -100,7 +98,7 @@ Disable or Enable any agent, built-in ones included, in its Settings › Manage
|
|
|
100
98
|
| Command | Purpose |
|
|
101
99
|
| ------------------------------------------------------------------- | ---------------------------------------------------------------------- |
|
|
102
100
|
| `coder agent list [--server [url]]` | List agents, with active versions on a server |
|
|
103
|
-
| `coder agent show <id> [--server [url]]` | One agent in full: settings, integrations, events
|
|
101
|
+
| `coder agent show <id> [--server [url]]` | One agent in full: settings, access, integrations, events |
|
|
104
102
|
| `coder agent init [id]` | Scaffold an agent folder; interactive without flags |
|
|
105
103
|
| `coder agent push [id] [--server [url]]` | Upload one agent, or all of them, without a source repo |
|
|
106
104
|
| `coder agent run <agent> <event.json> [--server [url] [--wait]]` | Run a recorded event through an agent, on a server or offline |
|
|
@@ -113,15 +111,15 @@ Disable or Enable any agent, built-in ones included, in its Settings › Manage
|
|
|
113
111
|
An integration gives an agent two things:
|
|
114
112
|
|
|
115
113
|
1. **Chat.** The agent's own app on the platform. Its events start tasks, and the reply goes back to the same thread. Linked workspace members can address an agent, and so can anyone the platform lets write there (on GitHub, write access to the repository); they get the workspace's connections only.
|
|
116
|
-
2. **Platform tools.** Actions beyond replying, through the platform's
|
|
114
|
+
2. **Platform tools.** Actions beyond replying, through the platform's MCP server. They run outside the agent's sandbox, with a token narrowed to the task, and the token never reaches the agent. Read-only exposes only tools the platform server marks read-only; Read-write exposes all its tools. Replies, reactions and history work in both modes.
|
|
117
115
|
|
|
118
116
|
| Platform | App | Events | Tools |
|
|
119
117
|
| --------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- |
|
|
120
|
-
| GitHub | A [GitHub App](https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest) per agent | `mention`, `pull_request`, `issue`, `comment` | GitHub's [MCP server](https://github.com/github/github-mcp-server); `
|
|
121
|
-
| Slack | A [Slack app](https://api.slack.com/reference/manifests) per agent | `mention`, `
|
|
122
|
-
| Linear | Your [Linear OAuth app](https://linear.app/developers/agents), with webhooks to `<PUBLIC_URL>/hooks/linear?app=<client id>` | `mention`: an agent session |
|
|
118
|
+
| GitHub | A [GitHub App](https://docs.github.com/en/apps/sharing-github-apps/registering-a-github-app-from-a-manifest) per agent | `mention`, `pull_request`, `issue`, `comment` | GitHub's [MCP server](https://github.com/github/github-mcp-server); `read` runs it read-only |
|
|
119
|
+
| Slack | A [Slack app](https://api.slack.com/reference/manifests) per agent | `mention`, `dm`, `channel`, `command` | [Slack MCP server](https://github.com/korotovsky/slack-mcp-server), pinned to v1.3.0 with SHA256 verification |
|
|
120
|
+
| Linear | Your [Linear OAuth app](https://linear.app/developers/agents), with webhooks to `<PUBLIC_URL>/hooks/linear?app=<client id>` | `mention`: an agent session | [Official Linear MCP server](https://linear.app/docs/mcp) at `https://mcp.linear.app/mcp` |
|
|
123
121
|
|
|
124
|
-
A Slack app's Home tab shows the agent and how to use it, and links to this server's tasks and agents unfurl into a short card.
|
|
122
|
+
On Slack, `dm` takes every message in direct and group DMs with the agent, and `channel` every message in channels it is in, up to Slack's 30,000 events per workspace per app per hour. A Slack app's Home tab shows the agent and how to use it, and links to this server's tasks and agents unfurl into a short card.
|
|
125
123
|
|
|
126
124
|
When an agent's app needs other events, permissions or settings, publishing the agent brings it up to date. Coder updates a Slack app itself and lists the changes to make on GitHub and Linear, and **Update on <platform>** in the handle's menu on the Platforms tab does the same later.
|
|
127
125
|
|