@wular/coder 0.4.13 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/actions-CkMAM1Km.js +3 -0
- package/dist/agent-Bi5nbUhA.js +1 -0
- package/dist/app-server-BTpa5GBV.js +6 -0
- package/dist/approvals-CRwkc9vB.js +5 -0
- package/dist/apps-B6mUToTa.js +18 -0
- package/dist/args-CJsHYWbt.js +66 -0
- package/dist/async-CNhQ4wyZ.js +3 -0
- package/dist/auth-oCvlHitk.js +1 -0
- package/dist/builtin/coder/agent.json +6 -6
- package/dist/builtin/coder/system.md +4 -5
- package/dist/chat-4AiZEqKh.js +13 -0
- package/dist/{chat-bwKd3y6V.js → chat-Bfu9XKRa.js} +1 -1
- package/dist/cli.js +18 -13
- package/dist/{client-C4QCT6cG.js → client-nBo9Mhsr.js} +4 -4
- package/dist/cmd-Cu3OquA_.js +122 -0
- package/dist/config-D_RuO6gX.js +5 -0
- package/dist/connection-BXjn7gCC.js +1 -0
- package/dist/connections-Cswv7r8Z.js +2 -0
- package/dist/context-CFrDYenS.js +6 -0
- package/dist/crypto-Ittsv-m4.js +1 -0
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1682 -1444
- package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/event-json.856d33f567e58d0e.js +30 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/http.e78b470f4ecf125b.js +58 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.de1f1311bab4252f.js → index.54c45900f2153d34.js} +46 -72
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/{log-view.ec6391dbf3063330.js → view.e20379d8f741754a.js} +38 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/types.5bf5a41cedb54154.js +37 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.30ed8c28774a1a82.js → load.252f972b42c690e2.js} +18 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.118a70787eff1761.js → page.11efd0e175db9053.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{loading.fcdfd50c21031895.js → loading.56c14183236be231.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.98dfcd316c306258.js → notify.59ae138dc182d7c3.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.74c59322f5fe8a2c.js → page.e9386951cedea737.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{sign-out.730aa96b086ac996.js → sign-out.713d3ec10951fde5.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agent-menu.1be5795272b245c8.js → agent-menu.5c780867b82081b1.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.2c30ace077893029.js → agents-grid.f989d6f2d9ece6e4.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{loading.733f0acc2af5ceda.js → loading.0130f8533d8f1b1e.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/page.0f88720e52db99a2.js +48 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.b26006f060cd48f0.js → layout.8d2f0997462fc958.js} +89 -32
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{loading.388aeaf0c2edf8f8.js → loading.90bf37c903ce6f0d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.4b23e9df21433bd3.js → page.bc93891522c8120d.js} +22 -88
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{loading.e06845585ca67abc.js → loading.d56ef50b0694f975.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.4048048acb374c67.js → page.cf5cf9afe38ab0e4.js} +51 -123
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.000f2f87a48bfbc6.js → platform-actions.c44c7df7841719f2.js} +234 -134
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/platform-state.6b6132518ca61635.js +21 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/platform-step.6e90cbfe308f28a0.js +82 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.ee0bb2dc4d403ec3.js → agent-settings-form.61de585104c2be10.js} +44 -66
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{loading.0e3641f3e4abaa7c.js → loading.2800c65e45a4a1d9.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.649b4ba135ded99b.js → page.4d06f759984a63b3.js} +11 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.195e168e8e41d797.js → loading.ea2925eab1d2e594.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.96f7573208644f40.js → page.fb069bf82b727d27.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{loading.905293c9aa9afbc9.js → loading.3a615597ca648452.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.5f2b8585db8b27ad.js → page.0a472a0e269b8c01.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.8700f0106f4e8c15.js → versions-list.7ef7dfd5d8f5de43.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{loading.f94b2f9ab04aaf21.js → loading.007326a04f05d46c.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.e898c4b5ef16ecb0.js → page.a26aa7bc6ab655f0.js} +10 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/platforms/[app]/app-cards.361918fe58349aa1.js +142 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/platforms/[app]/loading.f0d91d48e2b79e50.js +14 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/platforms/[app]/page.3f60cf67517d0d31.js +99 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-pills.44e689e546fb042b.js → agent-pills.1012e04bfbc7bffd.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.4c67dfbb7d28a416.js → agent-toggle.ffbf9a8b8b2fbde7.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.9740a8e2f4b41f28.js → hero.0ae015a4fbe6321e.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{instructions.85b1cd986a9edbb5.js → instructions.1b8c9189961c5a4f.js} +13 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.ff8b78a03153239b.js → connect-repositories.9abe365f0098d358.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.471af698b8060eba.js → editor.6548f8f757578f90.js} +164 -127
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.b7b5c89e618e8f89.js → import-picker.577b1d84c7ab84e1.js} +11 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{loading.ecb9dfd4d0f9d107.js → loading.9b65a8c1cdc8346f.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.880bdac7fe843635.js → page.2b326d00ccef5544.js} +9 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.81f7e055829854a3.js → layout.45a09107b19f0a7e.js} +89 -26
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.f8d679f2d06b0ebc.js +155 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.8f8697b1b6b34ad7.js → page.5aa3ddc669366703.js} +10 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.fe608b8e661aba1d.js → page.5a5188f0fc75dcd2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/advanced-list.73cdadb2968a39d2.js +63 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/connection-add.353ec01fbb814f78.js +526 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/connections-list.cf4061ae909272c3.js +439 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.a4d8338c7f6a5702.js → credentials-list.fc4cff0289267551.js} +116 -101
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.1443bbed1ff1d441.js → credentials.db01de2581ac65f3.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/list.e7d6a422f6a869ea.js +201 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{loading.7ca95dcb4fb3362b.js → loading.71ca4f6c99a8a9d5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/models-list.acb92b39cab1d11c.js +635 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.805d0f8a2c5817d6.js → page.95fe939e36e5be55.js} +67 -41
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.1e83449aa6593224.js → runners-list.5764eac3307d67cc.js} +42 -37
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.17ac06593005b8ba.js → secrets-list.d316bb157f747f6c.js} +19 -17
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/chain-hint.65c4cc04c78e8bfd.js +18 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.8c4a2b31b194ba3e.js → layout.4eb70f2de8674f93.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/model-options.dc630cb6e2cbf83a.js +150 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/model-pick.a143e77f5ed5f9d3.js +160 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.a77996786278cda0.js → page.70cad0e981c33fa5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{settings-head.705be0b1129b97af.js → settings-head.004ced21e02ffa48.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{tunnel-guide.29eee1a0b1852168.js → tunnel-guide.1bc6bff9d8019098.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.19b4c50ef497aca1.js → create-link.18bd2b92cd23b73f.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-dialog.18cf32fa42247b91.js → outcome-dialog.a74e686aaed0c584.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/outcome-toast.95f7be49430248eb.js +24 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome.cbbc8cd1bbbee01b.js → outcome.22a83d756e4020a7.js} +3 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.616f0b36bf7925bc.js → page.e39ee9236664d043.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.a911169a820ba604.js → activity.441e82ab00344fb2.js} +12 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.76f851da5cc5268d.js → loading.779ecdd9c9d2ff09.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.ddb594bb6567ee13.js → page.24e121ea6eb578ba.js} +16 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.4a4052a38db4bad3.js +408 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-missing.33ec27a4a5eafefe.js +27 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.3276538e8306fd8a.js → task-view.0cd3ec2655f44cc7.js} +43 -34
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer-data.05fc39e1a7fd1ab7.js → composer-data.73225456d60d63e3.js} +4 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.dbf06b05c5e2eba3.js → composer.ee326fbf5e526fb1.js} +114 -121
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/pending-approvals.7607998094780fdd.js +40 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{status.cb704b48ce86cc7d.js → status.d2c05c397780b833.js} +7 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{task.f089c1c122ed6dd2.js → task.a25847399a4dfb30.js} +9 -26
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.5a00d69851dae119.js → tasks-list.e486cbd16ea3e963.js} +43 -35
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.36e70c93f7d0feee.js → tasks-section.01510523d1556d59.js} +16 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.185b1ba0c803db3f.js → page.ede64f82388f9480.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{custom-range.2e21c7f891966c15.js → custom-range.fe91164d7a311356.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{day-chart.261b6651df2d3966.js → day-chart.20faaaf57c81ad9e.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{loading.a7e0ec01bfa769e3.js → loading.5b973a8bb29197d5.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.d41fea7676e37bfc.js → page.0499098badd3f5f8.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{range-bar.69e68c9dae09f238.js → range-bar.0b9038e9df707843.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{top-agents.18fc469e781e2305.js → top-agents.93c916167299ffb6.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.296d70b95894209f.js → layout.94ea3908b03bede6.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/{page.a82be2fd23e9ac67.js → page.4827d64c71c0690a.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{drawer.d3e61538dbc8ec39.js → drawer.1a08ff611df7fe38.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{foreign-link.8c6adf9c5a6f467c.js → foreign-link.1d4f63a0379cbd1d.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{loading-card.1cea8a722c10b998.js → loading-card.77bea8c5870b5d3c.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.87b92529dbb53ceb.js → page-head.2eb1e0213eb50349.js} +3 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.c32d78562f75db25.js → stream.e3800e736f832124.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.44075fa7e04575e8.js → task-toasts.3b7eeee29fc327de.js} +28 -18
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{theme-choices.85100ed66d6f9200.js → theme-choices.fc86071c1b634176.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.d6109e72fbd04b45.js → back.7aa0ae82dbec38cd.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.d3abfd4053b711ce.js → org.853d173b55368728.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{side-toggle.489faf1a259479f7.js → side-toggle.be7d2a7529557435.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{badge.c0bc352791a95fd6.js → badge.9f63fd615cf0ee22.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/button.2b18ba19ae01e2bb.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{button.ce9e6cdb08ca86db.js → button.b62fa52e18fa338b.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/card.4ab7ad42a0770726.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{card.9f0d45b73bc78b4f.js → card.c0030eafd76587e3.js} +21 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{collapse.93e4d1b20c2873ed.js → collapse.eb578fdf42029754.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{combo.54270c0251466fda.js → combo.e4e08287494081a3.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.29e198be34578222.js → confirm.e21b7f5e486dafb8.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.bd6fc1577a393965.js → copy.043e0695c08c72f9.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.81bb9a5c60cd1089.js → filter.0730dccad6332327.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/filter.6fdff1e7355aaa0e.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{icons.e36c72f54750663a.js → icons.f769275420d072ce.js} +4 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu-items.1d082ac4dae8f3d4.js → menu-items.759a1b1f7c5ee365.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.ee45bace979944b6.js → menu.7f558c7c6f6345d5.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/menu.cd96fa0495fe0fde.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.0b69c7fd9db025b9.js → modal.08ac85d31f4c76c1.js} +7 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{select.2eb33e5bea28d804.js → select.0ee9e8f04ddd8b47.js} +9 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tail.04132db0c5033d4f.js → tail.7eb303330802ac18.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/toolbar.cdbd0357f2c5e1fe.css.pnext-asset.js +0 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.8b3a460a65edf85a.js → toolbar.ff8367c641d28c1e.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.67dd6f8ab1ae067d.js → action.f22057e7dfac40fe.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.78267fa3d7905d17.js → client.c8d7efefb6194d7d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/routes/http.394704f4f12ada08.js +165 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/utils/crypto.24a6439ff8d10d3d.js +11 -0
- package/dist/dash/standalone/static/assets/chunks/advanced-list-850a950afe4f6996.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-pills-9f6fa120182db948.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-a8ee12513a02b1c5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agent-toggle-521136f20a71400d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/agents-grid-bcd13cd7a46224a6.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{back-e29cb10f5548ddae.js → back-2d67134b122334f4.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/chain-hint-53675e299a865420.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{combo-702c94817bf6ac17.js → combo-cb2c62fe580a8903.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/composer-4a46a458495ce3ba.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-92553de43276510b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-data-890f71bade4f0616.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{confirm-a78147b6ecef3847.js → confirm-d6b2c5b1deccd1e8.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-7770ab805160028d.js → connect-repositories-226bf70aa81c29d8.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-a33d6637e2d52fcf.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{copy-bdc60bdafe336316.js → copy-294c6052b3b69424.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-b2480a7601967e94.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/credentials-list-90fc1c6d202e1461.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/custom-range-efa1b6a71ba84597.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/editor-53a3e1a893644fff.js +6 -0
- package/dist/dash/standalone/static/assets/chunks/{field-bb8191aa02d07282.js → field-4d374d5ed3f43d7e.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-734d21dfb8f6393e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/instructions-d3dc01b2f90820db.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/list-16247e39898cd20e.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/model-options-d29e934a3de20ab4.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/models-list-6d93523660503dfb.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-fde11a52c282301d.js → outcome-dialog-755fc581cbc2836e.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-77e13c848000a3dc.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/outcome-toast-9d5e9713c23882f5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-08e9b3816dcd62b1.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-832904f5694ef902.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-step-29469fd4eaddc42a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-step-5881a8be1e761e00.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runners-list-dd759d408c643a29.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{runtime-6e12333f12903a62-1.js → runtime-9b28886f3cbe0ed3-1.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-be1f634a1b077baa.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{segmented-0b6dc6b93c35e0f5.js → segmented-f646bfa8aa0aa449.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-926144b364908b3c.js +9 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-953965859f7bf6b9.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-9b28886f3cbe0ed3-2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-b42d2c06c25d1e2b.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-8c21d39a1e284887.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{tail-f8804b80cf32f8d0.js → tail-d13c4cc0cf11ffd1.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/task-423e6a3f2527f534.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-actions-5917357eac6504ca.js +3 -0
- package/dist/dash/standalone/static/assets/chunks/task-view-c6ee43d2ddb6db90.js +3 -0
- package/dist/dash/standalone/static/assets/chunks/tasks-list-2c5ce592e00fda45.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/versions-list-177ae397ad64dcea.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{wular-pnext-6e12333f12903a62-0.js → wular-pnext-9b28886f3cbe0ed3-0.js} +1 -1
- package/dist/dash/standalone/static/assets/create-param-id-2c72f3e32e7f8b8d.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-a7f30a8c5a6fa651.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-account-76fffb9337b633f2.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-cc5d59edfc3cf0b1.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-170499c849114150.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-00243b34eb094b95.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-199a9991de1bf2d9.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-25ae07e0b3f5b252.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-param-app-a6d559f0e26bd01b.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-9f8faa8f7d714699.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-129adcdc293ceac8.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-0e037c66e3977f33.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-operator-8d5ef55834d8deba.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-settings-7138821f5422d087.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-586fec34f285e9cb.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-setup-67679c1f84f352cf.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-8a44e171984d32a1.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-b9d3a7a1bd1dd666.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-usage-c534db20ce538fd2.css +1 -0
- package/dist/dash/standalone/static/assets/global-df2c26ad15039e8a.css +1 -0
- package/dist/dash/standalone/static/assets/{login-9760b85feae40270.css → login-148795638d6ff5d4.css} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-095026242a079175.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-1dfeb8c3ef155f87.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-2358423351524403.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-28a6557216627768.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-31a4ee73945fee19.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-3dfdc76bb8712b82.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-4355ac87961d78c1.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-43c7a0046572e0c9.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-53dc7db68d67e0b1.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-5835cb35488bdf7f.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-638b390bc23ab1ae.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-67f832c6c51a66cd.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6fc99f0abe77c2ea.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-7d99965f28ac7604.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-7ecbd7a0cbe4e231.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-8250bd3b86d038a3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bfd06805a43c6dee.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-ce2943f17e9d9ac3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-ed31510d4615a5a5.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-f0496bf51e161ddd.js +1 -0
- package/dist/definition-4on4SG5J.js +1 -0
- package/dist/discover-DvzAbQvU.js +1 -0
- package/dist/dispatch-BaW2X6Sc.js +12 -0
- package/dist/{dist-DAnSqY1s.js → dist-B5qUdWUG.js} +35 -35
- package/dist/{dist-B2jiMMxZ.js → dist-Clxdruuu.js} +3 -3
- package/dist/{dist-ClCNj65n.js → dist-CymLGfHl.js} +4 -4
- package/dist/{adapter-Bz0E-DAY.js → dist-DX0JzVC6.js} +990 -990
- package/dist/{adapter-CsacmMmv.js → dist-DfD9WmV8.js} +39 -39
- package/dist/dist-node-B8VIVzUc.js +20 -0
- package/dist/docs-CbgaMPvq.js +2 -0
- package/dist/drive-Tk6JvQK5.js +1 -0
- package/dist/drizzle-orm-CYU7WOQS.js +2 -0
- package/dist/{emit-BrkJJPUE.js → emit-BgeqsCkC.js} +3 -3
- package/dist/env-_AxrvBXP.js +1 -0
- package/dist/errors-DK_trCff.js +1 -0
- package/dist/exec-CAaYFJD1.js +3 -0
- package/dist/executor-Chc0zawh.js +11 -0
- package/dist/flow/builtin/review/index.d.ts +2 -2
- package/dist/flow/builtin/review/index.js +9 -9
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/github-actions-2RjyRseX.js +36 -0
- package/dist/{hook-CIipj9MJ.js → hook-COWDSO4a.js} +1 -1
- package/dist/http-615JJgHo.js +5 -0
- package/dist/http-DRk8cDjf.js +1 -0
- package/dist/{index-ChcxzFdB.d.ts → index-ezhbF5wC.d.ts} +335 -244
- package/dist/integrations-BVmsk64f.js +9 -0
- package/dist/lib/broker.js +2 -2
- package/dist/load-PqaDHiHX.js +2 -0
- package/dist/local-BMGcCk8N.js +1 -0
- package/dist/local-BzZuOwgI.js +5 -0
- package/dist/login-BDKTNynK.js +8 -0
- package/dist/maintenance-d43Ml540.js +1 -0
- package/dist/mcp-BGam3G_B.js +1 -0
- package/dist/mcp-BGx48pyR.js +25 -0
- package/dist/mcp-BNz_l5TV2.js +1 -0
- package/dist/metadata-D_bBfr3H.js +1 -0
- package/dist/models-D1NXi6ni.js +1 -0
- package/dist/output-BKeyLbvt.js +5 -0
- package/dist/permission-BkYxjiFR.js +1 -0
- package/dist/prompt-CpwbsEWM.js +4 -0
- package/dist/refresh-yfEi5SQs.js +1 -0
- package/dist/remote-BbXx6S9P.js +1 -0
- package/dist/remote-rArUa01V.js +2 -0
- package/dist/runner-DG9jrX5H.js +1 -0
- package/dist/runner.json +1 -1
- package/dist/runner.tgz +0 -0
- package/dist/schema.d.ts +2 -2
- package/dist/schema.js +2 -3
- package/dist/sdk.d.ts +2858 -1376
- package/dist/sdk.js +1 -1
- package/dist/serve-B-5rDiZm.js +1 -0
- package/dist/serve-CvnrGAj7.js +12 -0
- package/dist/serve-DoYbHm_k.js +5 -0
- package/dist/session-Dtje9y-r.js +1 -0
- package/dist/sessions-DIz9fyRN.js +1 -0
- package/dist/shared--aE4olIO.js +1 -0
- package/dist/sign-in-wWkyaq5X.js +3 -0
- package/dist/state-Br-Fuaxg.js +6 -0
- package/dist/store-CzQLgCzt.js +352 -0
- package/dist/task-CFt85vTy.js +1 -0
- package/dist/task-N0qhnKpK.js +7 -0
- package/dist/tool-search-BkdgVolu.js +6 -0
- package/dist/tools-DNgEptor.js +1 -0
- package/dist/tools-oQvFAnh5.js +1 -0
- package/dist/tools-search-D1zArRyJ.js +1 -0
- package/dist/turn-Cc-v-eSy.js +3 -0
- package/dist/types-DHBqXFE2.js +1 -0
- package/dist/update-check-UyRob3yy.js +1 -0
- package/dist/view-D-rbQ1Kz.js +4 -0
- package/dist/views-3TxH367C.js +2 -0
- package/dist/worker-BMuKKiIa.js +1 -0
- package/dist/worker-CIHY9L42.js +7 -0
- package/dist/zod-_-snqfdO.js +1 -0
- package/dist/zod.js +65 -1
- package/docs/agents/coder.md +5 -1
- package/docs/agents/index.md +53 -82
- package/docs/approvals.md +47 -0
- package/docs/cli/agent.md +34 -13
- package/docs/cli/auth.md +1 -1
- package/docs/cli/connection.md +22 -21
- package/docs/cli/index.md +14 -12
- package/docs/cli/model.md +11 -11
- package/docs/cli/task.md +28 -30
- package/docs/config.md +37 -65
- package/docs/connections.md +80 -0
- package/docs/dash.md +23 -19
- package/docs/flows.md +46 -213
- package/docs/models.md +48 -78
- package/docs/review.md +20 -17
- package/docs/runners.md +49 -0
- package/docs/sdk.md +49 -73
- package/docs/self-host.md +79 -81
- package/package.json +4 -5
- package/plugins/agents/skills/coder/SKILL.md +3 -3
- package/plugins/claude/skills/dispatch/SKILL.md +3 -3
- package/plugins/cursor/README.md +3 -3
- package/plugins/cursor/skills/coder/SKILL.md +3 -3
- package/dist/actions-D12xDiQS.js +0 -4
- package/dist/adapter-DzpdWewB.js +0 -1
- package/dist/agent-JJStALIx.js +0 -8
- package/dist/apps-Bnk7F3A2.js +0 -379
- package/dist/args-Dqf5Y1RP.js +0 -1
- package/dist/async-Tj4zKHXR.js +0 -3
- package/dist/auth-BhpnOCbn.js +0 -1
- package/dist/base64url-CsVsW4Id.js +0 -1
- package/dist/chat-CSepnsrK.js +0 -13
- package/dist/cmd-BHZwhrfa.js +0 -118
- package/dist/connection-BkYTuJjV.js +0 -1
- package/dist/context-zhSlmXOp.js +0 -7
- package/dist/conversation-DT-35cEt.js +0 -1
- package/dist/core-DwsAMCnL.js +0 -65
- package/dist/dash/standalone/node_modules/contextjsx/dist/index.mjs +0 -1
- package/dist/dash/standalone/node_modules/contextjsx/dist/jsx-runtime.mjs +0 -1
- package/dist/dash/standalone/node_modules/contextjsx/dist/src-BJ0QFeB8.mjs +0 -2
- package/dist/dash/standalone/node_modules/contextjsx/package.json +0 -70
- package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/context/turn.6bb73458768e222e.js +0 -129
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/defaults.e972c134a1ae918f.js +0 -55
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/auth/sign-in.661b3a4139af5bd7.js +0 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/page.04762872666a6f0a.js +0 -26
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/connect-apps.8a20501ccb244421.js +0 -36
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/page.d066b77dd3187026.js +0 -65
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.09bf294d753ee9d7.js +0 -115
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/connections-list.97381888bfdd711b.js +0 -642
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/engines-list.d47db60d7dc01ebd.js +0 -73
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/list.a5b273558fb7f0f0.js +0 -156
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/models-list.31d369f1b7ab45da.js +0 -444
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/model-options.73f8d0d54f79d8e3.js +0 -100
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.51fbeac76459433a.js +0 -240
- package/dist/dash/standalone/static/assets/chunks/action-a76e495fb39a73d3.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-pills-4d3c6a2aa9eb1522.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-f7231a66e391f6b6.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agent-toggle-d7d27123f2070f18.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/agents-grid-185ecb3d86c6c447.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-56ebf36d63400423.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-a686289a79f64bae.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-data-f46a9bc7a14b4f9a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connect-apps-696726aedab42c96.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-07559f145f3e3da3.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-426b0a5871ee41dd.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/credentials-list-f07d090410104148.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/custom-range-6618f32ef6cd4e80.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/editor-0860e370cbfc6b03.js +0 -6
- package/dist/dash/standalone/static/assets/chunks/engines-list-31b9bb7885924b05.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/format-a27067f0186e78ac.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-06b63e558f879da5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-2d9fbcbfadac4f40.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/list-2773686bf8df64c7.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/model-options-8d2170eebe0d061d.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/models-list-03611e64b6a07efe.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/notice-d14fdac28139c0a8.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-d3ba8ef89c59f801.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-2a71c62b9f7eaef3.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-70600c9943320152.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/runners-list-edf536eb8003eab5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-e86122f73525ff95.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-6e12333f12903a62-2.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-b281027d465e004f.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/shared-init-c3bd249cf1eca6d1.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/side-toggle-9b3af821cfe4c824.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-a37e7c26e82eb77d.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-actions-705395565f2d83b8.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-cb21169f38b56d15.js +0 -6
- package/dist/dash/standalone/static/assets/chunks/tasks-list-d7dccfd7e0623ae0.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/versions-list-f8f2e71df691efda.js +0 -1
- package/dist/dash/standalone/static/assets/connect-a550b6f3a8c00186.css +0 -1
- package/dist/dash/standalone/static/assets/create-param-id-c2c756f652f2fc30.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-account-702f8a1b213e4026.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-aad2f9f93c06e9ab.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-f9dcbcec36586f2b.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-8ff47f5d622c1f9b.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-907036d553cfeb36.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-5cc77badad15f00c.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-705d7c15868b4fd6.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-04e189c045098772.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-76fcd1ce7b3dae71.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-eccb6bb9297a53e6.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-operator-635a121f7a9a95bd.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-a3297dc4d9e0c961.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-bcb06f81d9e8268d.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-setup-df4be8b188b9777f.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-16f9866a1b4801cd.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-02ae551dcd852b57.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-usage-f2175403069aab99.css +0 -1
- package/dist/dash/standalone/static/assets/global-e1de614478b64717.css +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-0dc829ba60df5c26.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-14d191f7f1da6602.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-169eaa63783b71fd.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-1e34cfefafa70fac.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-285d61f00a80f40b.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-35b89c3ba23ee845.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6c42784e005d4b87.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6cd93f9bd4cf6ffd.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-7355f473fade532d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-815c3c297f75efb0.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-87fe73c10a4dc33c.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-98b56a142d441260.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-b4bafe68a40f720b.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-bf61ff39bdc0db48.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-c9fa86c244813f74.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-d2e7a75e16221224.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-d34e774405ea8da8.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-d511822afdb41d1d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-e113aa2f25ecfe01.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-eb62f461d0c32266.js +0 -1
- package/dist/discover-CHfF4cEz.js +0 -1
- package/dist/dist-node-Bv1kCqyi.js +0 -20
- package/dist/docs-KHc0_gFX.js +0 -2
- package/dist/drive-Bwl7Bjme.js +0 -1
- package/dist/env-6Y-NNnYD.js +0 -1
- package/dist/errors-DO_IltpP.js +0 -16
- package/dist/exec-BmTa0vcO.js +0 -4
- package/dist/executor-ufWRqhdS.js +0 -11
- package/dist/http-Cg8PSe-c.js +0 -1
- package/dist/integrations-I7fRDk_l.js +0 -4
- package/dist/load-BDlEFetB.js +0 -2
- package/dist/local-COlczLwI.js +0 -5
- package/dist/log-view-CfX9lakH.js +0 -4
- package/dist/maintenance-CKCIWOvn.js +0 -1
- package/dist/match-CufHAZQH.js +0 -1
- package/dist/mcp-BkwmRHI9.js +0 -2
- package/dist/mcp-CGU7aoJ-.js +0 -1
- package/dist/mcp-DAHbhfUh.js +0 -13
- package/dist/models-CzggS7p2.js +0 -1
- package/dist/output-SNqdgh9A.js +0 -17
- package/dist/permission-MWFjKxqX.js +0 -1
- package/dist/prompt-CIx4jwQF.js +0 -8
- package/dist/refresh-CxsaX5R9.js +0 -1
- package/dist/remote-C9Hj2cby.js +0 -2
- package/dist/remote-HUZCWgfl.js +0 -3
- package/dist/runner-DYysY1-G.js +0 -1
- package/dist/runners-CfaGE0nV.js +0 -36
- package/dist/serve-DdAdw7Su.js +0 -4
- package/dist/serve-NQykWAKV.js +0 -1
- package/dist/serve-vKNqVaVy.js +0 -12
- package/dist/slack-BtKvW_4v.js +0 -5
- package/dist/task-CFxs0E_J.js +0 -1
- package/dist/task-iuYQ0zAK.js +0 -7
- package/dist/tools-B6ZxcqRi.js +0 -2
- package/dist/tools-FVop8XYG.js +0 -1
- package/dist/tools-search-kjKKolwp.js +0 -1
- package/dist/turn-DQ13lkPF.js +0 -2
- package/dist/types-DPtbvoo3.js +0 -1
- package/dist/types-DmThhjcW.js +0 -1
- package/dist/views-CMHXBMJp.js +0 -3
- package/dist/wire-C9CupY_A.js +0 -1
- package/dist/worker-BQpx1dPr.js +0 -9
- package/dist/worker-sTJL2eoe.js +0 -1
- package/dist/zod-BoqHoRCH.js +0 -1
- package/docs/access.md +0 -33
- package/docs/mcp.md +0 -54
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{errors.1bd0542d832ae0c0.js → errors.200335e62a9d9564.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.061f6006f2685f5e.css.pnext-asset.js → page.abe7a6d16eb15c41.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.107e622830bff31d.css.pnext-asset.js → page.1c7947d6f79d6447.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.ca926c58d15044aa.css.pnext-asset.js → platforms/platform-step.a722e3b8539a0f85.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/{agent/instructions.446bccc375f30eeb.css.pnext-asset.js → [slug]/(tabs)/settings/agent-settings-form.bf5430862c505c55.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/{editor/editor.1eb1bce282b289c9.css.pnext-asset.js → [slug]/platforms/[app]/@/app/dash/[org]/agents/[slug]/(tabs)/platforms/page.db05694ed4113dab.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.a4efa8d807fe5416.css.pnext-asset.js → agents/[slug]/platforms/[app]/app-cards.d2f5c8d620066e05.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{settings/[tab]/@/app/dash/[org]/setup/outcome.3ad5f7ec67e5238d.css.pnext-asset.js → agents/agent/instructions.4c31196fcbf9846c.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.46786fe36b121a43.css.pnext-asset.js → agents/editor/editor.6b9a1d5c0a490153.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.f7c27f170ec1e868.css.pnext-asset.js → layout.52abe52dcfa736d7.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.9927d602ebe9e7fc.css.pnext-asset.js → advanced-list.819e410e4178b328.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.8cbee173a5aff98d.css.pnext-asset.js → connections-list.87962937438296f1.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.53c7ea80b6fb734c.css.pnext-asset.js → credentials-list.973f91751525bcb6.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.42337a0d7c6ad0b6.css.pnext-asset.js → settings/[tab]/list.69d1b62c4066015b.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{tasks/composer.5b8687662e1629fa.css.pnext-asset.js → settings/[tab]/models-list.efd3f5781314c1d9.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.2f90c4410f843fff.css.pnext-asset.js → settings/[tab]/runners-list.df35d33aba0c8b07.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{globals.f8ac779f0ebf888b.css.pnext-asset.js → dash/[org]/settings/model-pick.74fababc0cc0bba7.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{responsive.ebc5f7d77b4b86a0.css.pnext-asset.js → dash/[org]/tasks/[id]/task-view.aae9fa481b9015d1.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{comps/frame/task-toasts.d13d9f628e530552.css.pnext-asset.js → app/dash/[org]/tasks/composer.33d49ad218253703.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{comps/ui/badge.0cb1513f8b077560.css.pnext-asset.js → app/dash/[org]/tasks/list/pending-approvals.07e59a9cae7ccf29.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{comps/ui/button.d7f4433f4e7faa80.css.pnext-asset.js → app/dash/[org]/tasks/list/tasks-list.f3737549b4696cc8.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{comps/ui/card.f80288cc42f9bcae.css.pnext-asset.js → app/globals.3b53a3feaa1d72e1.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/{comps/ui/filter.b53f21acc3e2cfef.css.pnext-asset.js → app/responsive.2979ffa0161a5afd.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/{ui/menu.25b184f68cba7b46.css.pnext-asset.js → frame/task-toasts.682322f6f729b33e.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.19e1ce5224a23acf.css.pnext-asset.js → badge.8e2a9842b28f44a6.css.pnext-asset.js} +0 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export const unxml = (text) => text.replace(/&(amp|lt|gt);/g, (_, name) => ({
|
|
2
|
+
amp: "&",
|
|
3
|
+
lt: "<",
|
|
4
|
+
gt: ">"
|
|
5
|
+
})[name]);
|
|
6
|
+
/** Read event JSON, optionally alongside a turn's history or other text. */
|
|
7
|
+
export function eventJsons(prompt = "", embedded = false) {
|
|
8
|
+
const event = /<event>\n([^]*?)\n<\/event>/g;
|
|
9
|
+
if (!embedded && (!prompt.trimStart().startsWith("<event>") || prompt.replace(event, "").trim())) return;
|
|
10
|
+
const events = [];
|
|
11
|
+
for (const [, body] of prompt.matchAll(event)) {
|
|
12
|
+
try {
|
|
13
|
+
const json = JSON.parse(unxml(body));
|
|
14
|
+
if (!json || typeof json !== "object" || Array.isArray(json)) {
|
|
15
|
+
if (!embedded) return;
|
|
16
|
+
continue;
|
|
17
|
+
}
|
|
18
|
+
events.push(json);
|
|
19
|
+
} catch (error) {
|
|
20
|
+
console.error("coder: unreadable event prompt", error);
|
|
21
|
+
if (!embedded) return;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
return events.length ? events : undefined;
|
|
25
|
+
}
|
|
26
|
+
/** Any event in a turn or its live steers can require a reply. */
|
|
27
|
+
export function replyRequired(prompt, fallback, steers = []) {
|
|
28
|
+
const asks = [prompt ?? "", ...steers].flatMap((text) => (eventJsons(text, true) ?? []).flatMap((json) => typeof json.mustReply === "boolean" ? [json.mustReply] : []));
|
|
29
|
+
return asks.length ? asks.includes(true) : fallback;
|
|
30
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
/** Server URLs and Server-Sent Events parsing, free of dependencies so the dashboard imports it. */
|
|
2
|
+
import { CoderError } from "../core/errors.200335e62a9d9564.js";
|
|
3
|
+
export function isLoopbackServer(server) {
|
|
4
|
+
try {
|
|
5
|
+
const host = new URL(server).hostname.toLowerCase();
|
|
6
|
+
return host === "localhost" || host === "[::1]" || /^127(?:\.\d{1,3}){3}$/.test(host);
|
|
7
|
+
} catch {
|
|
8
|
+
return false;
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
/** A cloud task's server socket, served by its runner; none outside a cloud task. */
|
|
12
|
+
export function taskSocket() {
|
|
13
|
+
const server = process.env.CODER_SERVER;
|
|
14
|
+
return process.env.CODER_MCP_MODE === "cloud" && server?.startsWith("unix:") ? server.slice("unix:".length) : undefined;
|
|
15
|
+
}
|
|
16
|
+
export function validateUrl(raw) {
|
|
17
|
+
let url;
|
|
18
|
+
try {
|
|
19
|
+
url = new URL(raw);
|
|
20
|
+
} catch {
|
|
21
|
+
throw new CoderError("invalid-option", "Give the server as a URL, e.g. https://agents.example.com.");
|
|
22
|
+
}
|
|
23
|
+
if (url.protocol !== "https:" && !(url.protocol === "http:" && isLoopbackServer(url.origin))) throw new CoderError("invalid-option", "Coder servers require HTTPS unless they are loopback.", { hint: "Use https://, or http://localhost for a local server." });
|
|
24
|
+
if (url.username || url.password || url.search || url.hash) throw new CoderError("invalid-option", "The server must be an origin without credentials, query, or fragment.");
|
|
25
|
+
return url.toString().replace(/\/+$/, "");
|
|
26
|
+
}
|
|
27
|
+
export const queryPath = (path, options) => {
|
|
28
|
+
const query = new URLSearchParams();
|
|
29
|
+
if ("cursor" in options && typeof options.cursor === "string") query.set("cursor", options.cursor);
|
|
30
|
+
for (const [key, value] of Object.entries(options)) if (key !== "cursor" && value !== undefined && value !== false && value !== "") query.set(key, value === true ? "1" : Array.isArray(value) ? value.join(",") : String(value));
|
|
31
|
+
return `${path}?${query}`;
|
|
32
|
+
};
|
|
33
|
+
/** Server-Sent Events from a response body, one `{ event, data }` per message. */
|
|
34
|
+
export async function* serverEvents(body) {
|
|
35
|
+
const decoder = new TextDecoder();
|
|
36
|
+
let buffer = "";
|
|
37
|
+
for await (const chunk of body) {
|
|
38
|
+
buffer += decoder.decode(chunk, { stream: true });
|
|
39
|
+
let end;
|
|
40
|
+
while ((end = buffer.indexOf("\n\n")) >= 0) {
|
|
41
|
+
const block = buffer.slice(0, end);
|
|
42
|
+
buffer = buffer.slice(end + 2);
|
|
43
|
+
let event = "message";
|
|
44
|
+
let id;
|
|
45
|
+
const data = [];
|
|
46
|
+
for (const line of block.split("\n")) {
|
|
47
|
+
if (line.startsWith("event: ")) event = line.slice(7);
|
|
48
|
+
else if (line.startsWith("data: ")) data.push(line.slice(6));
|
|
49
|
+
else if (line.startsWith("id: ")) id = line.slice(4);
|
|
50
|
+
}
|
|
51
|
+
if (data.length || id) yield {
|
|
52
|
+
event,
|
|
53
|
+
data: data.join("\n"),
|
|
54
|
+
...id ? { id } : {}
|
|
55
|
+
};
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { CoderError } from "../core/errors.
|
|
1
|
+
import { CoderError } from "../core/errors.200335e62a9d9564.js";
|
|
2
|
+
import { serverEvents, queryPath, validateUrl } from "./http.e78b470f4ecf125b.js";
|
|
2
3
|
export class ClientError extends CoderError {
|
|
3
4
|
authenticate;
|
|
4
5
|
needs;
|
|
@@ -11,31 +12,6 @@ export class ClientError extends CoderError {
|
|
|
11
12
|
this.needs = needs;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
|
-
export function isLoopbackServer(server) {
|
|
15
|
-
try {
|
|
16
|
-
const host = new URL(server).hostname.toLowerCase();
|
|
17
|
-
return host === "localhost" || host === "[::1]" || /^127(?:\.\d{1,3}){3}$/.test(host);
|
|
18
|
-
} catch {
|
|
19
|
-
return false;
|
|
20
|
-
}
|
|
21
|
-
}
|
|
22
|
-
export function validateUrl(raw) {
|
|
23
|
-
let url;
|
|
24
|
-
try {
|
|
25
|
-
url = new URL(raw);
|
|
26
|
-
} catch {
|
|
27
|
-
throw new CoderError("invalid-option", "Give the server as a URL, e.g. https://agents.example.com.");
|
|
28
|
-
}
|
|
29
|
-
if (url.protocol !== "https:" && !(url.protocol === "http:" && isLoopbackServer(url.origin))) throw new CoderError("invalid-option", "Coder servers require HTTPS unless they are loopback.", { hint: "Use https://, or http://localhost for a local server." });
|
|
30
|
-
if (url.username || url.password || url.search || url.hash) throw new CoderError("invalid-option", "The server must be an origin without credentials, query, or fragment.");
|
|
31
|
-
return url.toString().replace(/\/+$/, "");
|
|
32
|
-
}
|
|
33
|
-
const queryPath = (path, options) => {
|
|
34
|
-
const query = new URLSearchParams();
|
|
35
|
-
if ("cursor" in options && typeof options.cursor === "string") query.set("cursor", options.cursor);
|
|
36
|
-
for (const [key, value] of Object.entries(options)) if (key !== "cursor" && value !== undefined && value !== false && value !== "") query.set(key, value === true ? "1" : Array.isArray(value) ? value.join(",") : String(value));
|
|
37
|
-
return `${path}?${query}`;
|
|
38
|
-
};
|
|
39
15
|
const DONE = new Set([
|
|
40
16
|
"completed",
|
|
41
17
|
"failed",
|
|
@@ -82,6 +58,15 @@ export class ServerClient {
|
|
|
82
58
|
if (response.ok) throw new CoderError("server", `The server answered ${response.status} with a body that is not JSON.`);
|
|
83
59
|
if (this.cookie && text) plain = text;
|
|
84
60
|
}
|
|
61
|
+
// 202 Accepted: the change waits for a person to approve it.
|
|
62
|
+
if (response.status === 202 && body.pending) {
|
|
63
|
+
const { approval, reason, changes } = body;
|
|
64
|
+
throw new CoderError("approval-pending", reason, { approval: {
|
|
65
|
+
id: approval,
|
|
66
|
+
reason,
|
|
67
|
+
actions: changes
|
|
68
|
+
} });
|
|
69
|
+
}
|
|
85
70
|
if (!response.ok) {
|
|
86
71
|
const error = new ClientError(response.status, body.error ?? body.message ?? plain ?? `The server answered ${response.status}.`, response.headers.get("www-authenticate") ?? "", body.hint, body.needs === "key" ? body.needs : undefined);
|
|
87
72
|
this.onError?.(error);
|
|
@@ -92,7 +77,7 @@ export class ServerClient {
|
|
|
92
77
|
send(path, init) {
|
|
93
78
|
const headers = new Headers(init.headers);
|
|
94
79
|
if (init.body && !headers.has("content-type")) headers.set("content-type", "application/json");
|
|
95
|
-
if (
|
|
80
|
+
if (this.token) headers.set("authorization", `Bearer ${this.token}`);
|
|
96
81
|
if (this.organization) headers.set("x-coder-organization", this.organization);
|
|
97
82
|
return this.fetchImpl(`${this.url}${path}`, {
|
|
98
83
|
...init,
|
|
@@ -113,24 +98,16 @@ export class ServerClient {
|
|
|
113
98
|
me() {
|
|
114
99
|
return this.request("/me");
|
|
115
100
|
}
|
|
116
|
-
info() {
|
|
117
|
-
return this.request("/api/auth/capabilities");
|
|
118
|
-
}
|
|
119
|
-
linkAccount(token) {
|
|
120
|
-
return this.post("/connect", { token });
|
|
121
|
-
}
|
|
122
101
|
signOut() {
|
|
123
102
|
return this.post("/api/auth/sign-out", {});
|
|
124
103
|
}
|
|
125
104
|
agents = {
|
|
126
|
-
list: (options) => this.request(queryPath("/admin/agents", {
|
|
127
|
-
...options,
|
|
128
|
-
...options?.connect ? { connect: 1 } : {}
|
|
129
|
-
})),
|
|
105
|
+
list: (options) => this.request(queryPath("/admin/agents", options ?? {})),
|
|
130
106
|
get: (slug, options) => this.request(queryPath(`/admin/agents/${encodeURIComponent(slug)}`, {
|
|
131
107
|
...options?.versions === false ? { versions: 0 } : {},
|
|
132
108
|
...options?.content === false ? { content: 0 } : {},
|
|
133
|
-
...options?.handles ? { handles: 1 } : {}
|
|
109
|
+
...options?.handles ? { handles: 1 } : {},
|
|
110
|
+
...options?.installations ? { installations: 1 } : {}
|
|
134
111
|
})),
|
|
135
112
|
versions: (slug, options = {}) => this.request(queryPath(`/admin/agents/${encodeURIComponent(slug)}/versions`, options)),
|
|
136
113
|
remove: (slug) => this.request(`/admin/agents/${encodeURIComponent(slug)}`, { method: "DELETE" }),
|
|
@@ -177,7 +154,8 @@ export class ServerClient {
|
|
|
177
154
|
...options,
|
|
178
155
|
...options?.archived ? { archived: 1 } : {},
|
|
179
156
|
...options?.summary ? { summary: 1 } : {},
|
|
180
|
-
...options?.counts ? { counts: 1 } : {}
|
|
157
|
+
...options?.counts ? { counts: 1 } : {},
|
|
158
|
+
...options?.approvals ? { approvals: 1 } : {}
|
|
181
159
|
})),
|
|
182
160
|
get: (id) => this.request(`/admin/tasks/${encodeURIComponent(id)}`),
|
|
183
161
|
logs: (id, after = -1, limit) => this.request(queryPath(`/admin/tasks/${encodeURIComponent(id)}/logs`, {
|
|
@@ -202,12 +180,22 @@ export class ServerClient {
|
|
|
202
180
|
text,
|
|
203
181
|
...options
|
|
204
182
|
}),
|
|
205
|
-
ask: (id, question) => this.post(`/admin/tasks/${encodeURIComponent(id)}/ask`, {
|
|
183
|
+
ask: (id, question, options = {}) => this.post(`/admin/tasks/${encodeURIComponent(id)}/ask`, {
|
|
184
|
+
question,
|
|
185
|
+
...options
|
|
186
|
+
}),
|
|
206
187
|
approve: (id, approvalId, decision, options = {}) => this.post(`/admin/tasks/${encodeURIComponent(id)}/approve`, {
|
|
207
188
|
approvalId,
|
|
208
189
|
decision,
|
|
209
190
|
...options
|
|
210
191
|
}),
|
|
192
|
+
/** Approve, deny or ask an admin about a change the task asked for; `scope` where the approver picks another. */
|
|
193
|
+
request: (id, approvalId, decision, options = {}) => this.post(`/admin/tasks/${encodeURIComponent(id)}/requests/${encodeURIComponent(approvalId)}`, {
|
|
194
|
+
decision,
|
|
195
|
+
...options
|
|
196
|
+
}),
|
|
197
|
+
/** Changes waiting for an admin's approval. */
|
|
198
|
+
pendingApprovals: () => this.request("/admin/approvals/pending"),
|
|
211
199
|
archive: (id) => this.post(`/admin/tasks/${encodeURIComponent(id)}/archive`),
|
|
212
200
|
delete: (id) => this.request(`/admin/tasks/${encodeURIComponent(id)}`, { method: "DELETE" }),
|
|
213
201
|
/** Start a task from a prompt, or a flow with `flow` and `args`. */
|
|
@@ -300,13 +288,21 @@ list: (agent) => this.request(queryPath("/admin/integrations", { agent })) };
|
|
|
300
288
|
apps: () => this.request("/admin/operator/apps"),
|
|
301
289
|
/** The create page for `integration`'s built-in app; `name` is what the platform shows. */
|
|
302
290
|
setUp: (integration, body) => this.post(`/admin/operator/apps/${encodeURIComponent(integration)}`, body),
|
|
303
|
-
audit: () => this.request("/admin/operator/audit")
|
|
291
|
+
audit: () => this.request("/admin/operator/audit"),
|
|
292
|
+
/** What to change on the platform for the built-in app on `integration`. */
|
|
293
|
+
drift: (integration) => this.request(`/admin/operator/apps/${encodeURIComponent(integration)}/drift`),
|
|
294
|
+
/** Pushes the built-in app on `integration`, or records its values were entered by hand. */
|
|
295
|
+
update: (integration) => this.post(`/admin/operator/apps/${encodeURIComponent(integration)}/update`, {})
|
|
296
|
+
};
|
|
297
|
+
installations = {
|
|
298
|
+
list: (agent, options = {}) => this.request(queryPath("/admin/installations", {
|
|
299
|
+
agent,
|
|
300
|
+
limit: options.limit,
|
|
301
|
+
...options.active ? { active: 1 } : {}
|
|
302
|
+
})),
|
|
303
|
+
/** Uninstalls the app on its platform, then ends the installation here. */
|
|
304
|
+
uninstall: (id) => this.request(`/admin/installations/${encodeURIComponent(id)}`, { method: "DELETE" })
|
|
304
305
|
};
|
|
305
|
-
installations = { list: (agent, options = {}) => this.request(queryPath("/admin/installations", {
|
|
306
|
-
agent,
|
|
307
|
-
limit: options.limit,
|
|
308
|
-
...options.active ? { active: 1 } : {}
|
|
309
|
-
})) };
|
|
310
306
|
connections = {
|
|
311
307
|
list: (authorization, wait) => this.request(queryPath("/admin/connections", {
|
|
312
308
|
authorization,
|
|
@@ -335,6 +331,10 @@ list: (agent) => this.request(queryPath("/admin/integrations", { agent })) };
|
|
|
335
331
|
add: (body) => this.post("/admin/models", body),
|
|
336
332
|
probe: (body) => this.post("/admin/models/probe", body),
|
|
337
333
|
remove: (name) => this.request(`/admin/models/${encodeURIComponent(name)}`, { method: "DELETE" }),
|
|
334
|
+
update: (name, body) => this.request(`/admin/models/${encodeURIComponent(name)}`, {
|
|
335
|
+
method: "PATCH",
|
|
336
|
+
body: JSON.stringify(body)
|
|
337
|
+
}),
|
|
338
338
|
alias: (name, spec) => this.post(`/admin/models/${encodeURIComponent(name)}/alias`, { spec }),
|
|
339
339
|
enable: (name) => this.post(`/admin/models/${encodeURIComponent(name)}/enable`),
|
|
340
340
|
disable: (name) => this.post(`/admin/models/${encodeURIComponent(name)}/disable`)
|
|
@@ -358,29 +358,3 @@ list: (agent) => this.request(queryPath("/admin/integrations", { agent })) };
|
|
|
358
358
|
return this.request(queryPath("/admin/usage", { installation }));
|
|
359
359
|
}
|
|
360
360
|
}
|
|
361
|
-
/** Server-Sent Events from a response body, one `{ event, data }` per message. */
|
|
362
|
-
export async function* serverEvents(body) {
|
|
363
|
-
const decoder = new TextDecoder();
|
|
364
|
-
let buffer = "";
|
|
365
|
-
for await (const chunk of body) {
|
|
366
|
-
buffer += decoder.decode(chunk, { stream: true });
|
|
367
|
-
let end;
|
|
368
|
-
while ((end = buffer.indexOf("\n\n")) >= 0) {
|
|
369
|
-
const block = buffer.slice(0, end);
|
|
370
|
-
buffer = buffer.slice(end + 2);
|
|
371
|
-
let event = "message";
|
|
372
|
-
let id;
|
|
373
|
-
const data = [];
|
|
374
|
-
for (const line of block.split("\n")) {
|
|
375
|
-
if (line.startsWith("event: ")) event = line.slice(7);
|
|
376
|
-
else if (line.startsWith("data: ")) data.push(line.slice(6));
|
|
377
|
-
else if (line.startsWith("id: ")) id = line.slice(4);
|
|
378
|
-
}
|
|
379
|
-
if (data.length || id) yield {
|
|
380
|
-
event,
|
|
381
|
-
data: data.join("\n"),
|
|
382
|
-
...id ? { id } : {}
|
|
383
|
-
};
|
|
384
|
-
}
|
|
385
|
-
}
|
|
386
|
-
}
|
|
@@ -1,3 +1,10 @@
|
|
|
1
|
+
import { eventJsons } from "../../agent/event-json.856d33f567e58d0e.js";
|
|
2
|
+
/** The final message that posts nothing. */
|
|
3
|
+
export const EMPTY_MESSAGE = "__EMPTY__";
|
|
4
|
+
/** The task log line when the agent declined to reply. */
|
|
5
|
+
export const SKIPPED = "Skipped: the agent chose not to reply.";
|
|
6
|
+
/** What the platform gets when the agent declined a reply that was due. */
|
|
7
|
+
export const EMPTY_MESSAGE_NOTICE = "The agent returned no reply.";
|
|
1
8
|
export function addTokens(a, b) {
|
|
2
9
|
if (!b) return a;
|
|
3
10
|
if (!a) return { ...b };
|
|
@@ -139,6 +146,8 @@ export class LogView {
|
|
|
139
146
|
} else if (sourceKind === "error" || sourceKind === "steer") {
|
|
140
147
|
row.kind = sourceKind;
|
|
141
148
|
row.tone = sourceKind === "error" ? "error" : "warning";
|
|
149
|
+
} else if (sourceKind === "warning") {
|
|
150
|
+
row.tone = "warning";
|
|
142
151
|
} else if (sourceKind === "reasoning") {
|
|
143
152
|
row.kind = "reasoning";
|
|
144
153
|
row.durationMs = typeof entry.durationMs === "number" ? entry.durationMs : 0;
|
|
@@ -212,3 +221,32 @@ function tokenCount(n) {
|
|
|
212
221
|
if (n < 1e6) return `${(n / 1e3).toFixed(n < 1e4 ? 1 : 0)}k`;
|
|
213
222
|
return `${(n / 1e6).toFixed(1)}M`;
|
|
214
223
|
}
|
|
224
|
+
/** The default task list's groups: failed first, then active, then other stopped, then completed. */
|
|
225
|
+
export const listRank = (status) => status === "failed" ? 0 : status === "completed" ? 3 : status === "cancelled" ? 2 : 1;
|
|
226
|
+
/** Whether a task waits on a person: its turn waits, or an escalation is open whatever its turn does. */
|
|
227
|
+
export const awaitsApproval = (status, approvals) => status === "waiting" || Boolean(approvals?.some((approval) => !approval.response));
|
|
228
|
+
/** Ids in byte order, as Postgres `collate "C"` compares them. */
|
|
229
|
+
export const byId = (a, b) => a < b ? -1 : a > b ? 1 : 0;
|
|
230
|
+
/** The task list order: `listRank` groups, newest start first, ties broken by id. */
|
|
231
|
+
export const byListKey = (a, b) => a.rank - b.rank || b.createdAt - a.createdAt || byId(b.id, a.id);
|
|
232
|
+
/** A platform turn's messages from its `<event>` prompt; undefined for any other prompt. */
|
|
233
|
+
export function eventMessages(prompt) {
|
|
234
|
+
return eventJsons(prompt)?.flatMap((json) => {
|
|
235
|
+
if (json.reactions) return json.reactions.map(({ emoji, by }) => ({
|
|
236
|
+
author: by.join(", "),
|
|
237
|
+
text: `reacted ${emoji}`,
|
|
238
|
+
reaction: true
|
|
239
|
+
}));
|
|
240
|
+
return (json.messages ?? (json.message ? [json.message] : [])).map(({ text, author }) => ({
|
|
241
|
+
// A platform that knows no name repeats the raw id, which shows as nothing.
|
|
242
|
+
author: [author.handle, author.name].find((name) => name && name !== author.id) ?? "",
|
|
243
|
+
text: text || (json.event ?? "")
|
|
244
|
+
}));
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/** A prompt as a title: a platform prompt by its event text, else its first message. */
|
|
248
|
+
export function promptTitle(prompt, eventText) {
|
|
249
|
+
const text = prompt?.trim();
|
|
250
|
+
if (text && !eventMessages(text)) return text;
|
|
251
|
+
return eventText?.trim() || eventMessages(text)?.find((message) => !message.reaction)?.text.trim();
|
|
252
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
/** Built-in config every file and flag merges over; import-free so the shipped dashboard can read it. */
|
|
2
|
+
export const DEFAULT_CONFIG = {
|
|
3
|
+
// Models are tried in order; the first is the default, each next one the fallback
|
|
4
|
+
// when the one before fails to start (missing binary, auth, quota, rate limit).
|
|
5
|
+
version: 1,
|
|
6
|
+
chain: ["codex/sol", "claude/opus"],
|
|
7
|
+
reviewModel: "codex/astra/medium",
|
|
8
|
+
models: {},
|
|
9
|
+
network: { allowedHosts: [] }
|
|
10
|
+
};
|
|
11
|
+
/** RFC 7396 merge patch: objects merge, null deletes, anything else replaces; `__proto__` stays a plain key. */
|
|
12
|
+
export function mergePatch(target, patch) {
|
|
13
|
+
if (!patch || typeof patch !== "object" || Array.isArray(patch)) return patch;
|
|
14
|
+
const result = target && typeof target === "object" && !Array.isArray(target) ? Object.fromEntries(Object.entries(target)) : {};
|
|
15
|
+
for (const [key, value] of Object.entries(patch)) {
|
|
16
|
+
if (value === null) delete result[key];
|
|
17
|
+
else Object.defineProperty(result, key, {
|
|
18
|
+
value: mergePatch(Object.hasOwn(result, key) ? result[key] : undefined, value),
|
|
19
|
+
writable: true,
|
|
20
|
+
enumerable: true,
|
|
21
|
+
configurable: true
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
return result;
|
|
25
|
+
}
|
|
26
|
+
export const NOT_REINVOKED = "Background processes will not re-invoke you.";
|
|
27
|
+
export const SHELL_WAIT = "Wait on each task with `coder task result <task-id> --wait` in its own background shell, one per task, never several tasks in one call, so each approval and answer reaches you.";
|
|
28
|
+
/** The error a task stopped by `coder task stop` or the dashboard records. */
|
|
29
|
+
export const STOPPED_BY_USER = "Stopped by user.";
|
|
30
|
+
export const TERMINAL_STATUSES = [
|
|
31
|
+
"completed",
|
|
32
|
+
"failed",
|
|
33
|
+
"cancelled"
|
|
34
|
+
];
|
|
35
|
+
export const ACTIVE_STATUSES = ["queued", "running"];
|
|
36
|
+
/** Logged when a resumed turn cannot load its engine conversation and starts a new one. */
|
|
37
|
+
export const HISTORY_LOST = "History lost, starting fresh";
|
|
@@ -1,10 +1,21 @@
|
|
|
1
|
-
import { ServerClient, ClientError } from "../../../client/index.
|
|
2
|
-
import { CoderError } from "../../../core/errors.
|
|
3
|
-
import {
|
|
4
|
-
import { NO_MODELS, modelsByEngine } from "../app/dash/[org]/settings/model-options.73f8d0d54f79d8e3.js";
|
|
1
|
+
import { ServerClient, ClientError } from "../../../client/index.54c45900f2153d34.js";
|
|
2
|
+
import { CoderError } from "../../../core/errors.200335e62a9d9564.js";
|
|
3
|
+
import { NO_MODELS } from "../app/dash/[org]/settings/model-options.dc630cb6e2cbf83a.js";
|
|
5
4
|
export function encodeDefinition(definition) {
|
|
6
5
|
return Buffer.from(JSON.stringify(definition), "utf8").toString("base64url");
|
|
7
6
|
}
|
|
7
|
+
/** Where creating `agent`'s app on `integration` starts; a repo agent's app follows its apps' branch. */
|
|
8
|
+
export function createUrl(agent, apps, integration) {
|
|
9
|
+
const params = new URLSearchParams({
|
|
10
|
+
agent: agent.id,
|
|
11
|
+
def: agent.definition ? encodeDefinition(agent.definition) : ""
|
|
12
|
+
});
|
|
13
|
+
if (agent.source === "repo" && agent.repo) {
|
|
14
|
+
params.set("repo", agent.repo);
|
|
15
|
+
params.set("branch", apps.find((app) => app.branch)?.branch ?? "main");
|
|
16
|
+
}
|
|
17
|
+
return `/create/${encodeURIComponent(integration)}?${params}`;
|
|
18
|
+
}
|
|
8
19
|
const clientKey = Symbol("coder.dashboard.client");
|
|
9
20
|
/** One client per render request, with shared in-process GETs and the caller's cookie, scope and organization. */
|
|
10
21
|
export function load(request) {
|
|
@@ -50,14 +61,10 @@ export function loadAgent(request, slug) {
|
|
|
50
61
|
handles: true
|
|
51
62
|
});
|
|
52
63
|
}
|
|
53
|
-
/**
|
|
64
|
+
/** The workspace's models, and the chain an agent runs when it sets no model. */
|
|
54
65
|
export function loadRunDefaults(request) {
|
|
55
66
|
return Promise.all([load(request).models.list().catch(() => NO_MODELS), load(request).config.get().catch(() => undefined)]).then(([shape, shown]) => ({
|
|
56
|
-
|
|
57
|
-
defaults: {
|
|
58
|
-
engine: shown?.effective.chain?.[0] ?? DEFAULT_ENGINE,
|
|
59
|
-
engines: shown?.effective.engines ?? {},
|
|
60
|
-
builtin: shape.builtin
|
|
61
|
-
}
|
|
67
|
+
shape,
|
|
68
|
+
defaults: { chain: shown?.effective.chain ?? [] }
|
|
62
69
|
}));
|
|
63
70
|
}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
import { dynamic } from "../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
|
|
2
2
|
import { redirect } from "../../../../../../../../node_modules/@wular/pnext/src/api/navigation.ts";
|
|
3
|
-
import { load } from "../../../api/load.
|
|
3
|
+
import { load } from "../../../api/load.252f972b42c690e2.js";
|
|
4
4
|
import { AuthPanel } from "../../../comps/frame/auth-panel.5712a8d190b003b4.js";
|
|
5
|
-
import { Button, LinkButton } from "../../../comps/ui/button.
|
|
6
|
-
import { Outcome, readOutcome } from "../../dash/[org]/setup/outcome.
|
|
5
|
+
import { Button, LinkButton } from "../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
6
|
+
import { Outcome, readOutcome } from "../../dash/[org]/setup/outcome.22a83d756e4020a7.js";
|
|
7
7
|
import { jsx as _jsx } from "../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
|
-
const CreateLink = dynamic(() => import("../../dash/[org]/setup/create-link.
|
|
8
|
+
const CreateLink = dynamic(() => import("../../dash/[org]/setup/create-link.18bd2b92cd23b73f.js").then((m) => m.CreateLink), undefined, {
|
|
9
9
|
"file": decodeURIComponent(new URL("../../../../../../../../../../../src/server/dash/app/dash/[org]/setup/create-link.tsx", import.meta.url).pathname),
|
|
10
10
|
"exportName": "CreateLink",
|
|
11
|
-
"id": "c-
|
|
11
|
+
"id": "c-da3eb23c73"
|
|
12
12
|
});
|
|
13
13
|
/** A signed link from `coder server app create`: its transaction alone authorizes it, with no workspace, and shows how it ended. */
|
|
14
14
|
export default async function ServerAppPage({ request, params }) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Loading } from "../../../../comps/ui/card.
|
|
2
|
-
import { Page, PageHead } from "../../../../comps/frame/page-head.
|
|
1
|
+
import { Loading } from "../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
2
|
+
import { Page, PageHead } from "../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
4
4
|
export default function AccountLoading() {
|
|
5
5
|
return /* @__PURE__ */ _jsxs(Page, { children: [/* @__PURE__ */ _jsx(PageHead, {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useState } from "../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
3
|
-
import { NOTIFY } from "../../../../comps/frame/task-toasts.
|
|
3
|
+
import { NOTIFY } from "../../../../comps/frame/task-toasts.3b7eeee29fc327de.js";
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
5
5
|
/** Browser notifications for watched tasks, off until asked for; the permission prompt shows once. */
|
|
6
6
|
export function NotifySwitch() {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import "./page.
|
|
2
|
-
import { iKey } from "../../../../comps/ui/icons.
|
|
3
|
-
import { load } from "../../../../api/load.
|
|
1
|
+
import "./page.abe7a6d16eb15c41.css.pnext-asset.js";
|
|
2
|
+
import { iKey } from "../../../../comps/ui/icons.f769275420d072ce.js";
|
|
3
|
+
import { load } from "../../../../api/load.252f972b42c690e2.js";
|
|
4
4
|
import { initial, reasonText } from "../../../../utils/format.ceeaafa10a0563f3.js";
|
|
5
|
-
import { Badge } from "../../../../comps/ui/badge.
|
|
6
|
-
import { Button } from "../../../../comps/ui/button.
|
|
7
|
-
import { SignOut } from "./sign-out.
|
|
8
|
-
import { Page, PageHead } from "../../../../comps/frame/page-head.
|
|
5
|
+
import { Badge } from "../../../../comps/ui/badge.9f63fd615cf0ee22.js";
|
|
6
|
+
import { Button } from "../../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
7
|
+
import { SignOut } from "./sign-out.713d3ec10951fde5.js";
|
|
8
|
+
import { Page, PageHead } from "../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
9
9
|
import { Icon } from "../../../../comps/ui/icon.0874ca2f58f7db14.js";
|
|
10
|
-
import { Card } from "../../../../comps/ui/card.
|
|
11
|
-
import { NotifySwitch } from "./notify.
|
|
10
|
+
import { Card } from "../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
11
|
+
import { NotifySwitch } from "./notify.59ae138dc182d7c3.js";
|
|
12
12
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
13
13
|
function Row({ label, hint, children }) {
|
|
14
14
|
return /* @__PURE__ */ _jsxs("div", { children: [/* @__PURE__ */ _jsxs("div", {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { signOut } from "../../../../utils/client.
|
|
3
|
-
import { iOut } from "../../../../comps/ui/icons.
|
|
4
|
-
import { Button } from "../../../../comps/ui/button.
|
|
5
|
-
import { MenuItem } from "../../../../comps/ui/menu-items.
|
|
2
|
+
import { signOut } from "../../../../utils/client.c8d7efefb6194d7d.js";
|
|
3
|
+
import { iOut } from "../../../../comps/ui/icons.f769275420d072ce.js";
|
|
4
|
+
import { Button } from "../../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
5
|
+
import { MenuItem } from "../../../../comps/ui/menu-items.759a1b1f7c5ee365.js";
|
|
6
6
|
import { jsx as _jsx } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
7
|
/** Ends this browser session; `menu` makes it the account menu's item. */
|
|
8
8
|
export function SignOut({ menu }) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { iAgent } from "../../../../../comps/ui/icons.
|
|
2
|
-
import { LinkButton } from "../../../../../comps/ui/button.
|
|
3
|
-
import { useOrg } from "../../../../../comps/nav/org.
|
|
1
|
+
import { iAgent } from "../../../../../comps/ui/icons.f769275420d072ce.js";
|
|
2
|
+
import { LinkButton } from "../../../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
3
|
+
import { useOrg } from "../../../../../comps/nav/org.853d173b55368728.js";
|
|
4
4
|
import { jsx as _jsx } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
5
5
|
/** Make a dashboard agent; importing from a repository starts from the same page. */
|
|
6
6
|
export function NewAgentMenu() {
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import { client } from "../../../../../utils/client.
|
|
2
|
+
import { client } from "../../../../../utils/client.c8d7efefb6194d7d.js";
|
|
3
3
|
import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
4
4
|
import { usePaged } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
5
|
-
import { Empty } from "../../../../../comps/ui/card.
|
|
5
|
+
import { Empty } from "../../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
6
6
|
import { editableAgent } from "../../../../../api/types.79f9092cdb5a00d1.js";
|
|
7
7
|
import { initial } from "../../../../../utils/format.ceeaafa10a0563f3.js";
|
|
8
|
-
import { AgentPills, BrandIcon, PlatformLine } from "../agent/agent-pills.
|
|
9
|
-
import { Filter } from "../../../../../comps/ui/filter.
|
|
10
|
-
import { NewAgentMenu } from "./agent-menu.
|
|
11
|
-
import { Search, Toolbar, queryOf, useFilters } from "../../../../../comps/ui/toolbar.
|
|
12
|
-
import { Tail } from "../../../../../comps/ui/tail.
|
|
13
|
-
import { useOrg } from "../../../../../comps/nav/org.
|
|
8
|
+
import { AgentPills, BrandIcon, PlatformLine } from "../agent/agent-pills.1012e04bfbc7bffd.js";
|
|
9
|
+
import { Filter } from "../../../../../comps/ui/filter.0730dccad6332327.js";
|
|
10
|
+
import { NewAgentMenu } from "./agent-menu.5c780867b82081b1.js";
|
|
11
|
+
import { Search, Toolbar, queryOf, useFilters } from "../../../../../comps/ui/toolbar.ff8367c641d28c1e.js";
|
|
12
|
+
import { Tail } from "../../../../../comps/ui/tail.7eb303330802ac18.js";
|
|
13
|
+
import { useOrg } from "../../../../../comps/nav/org.853d173b55368728.js";
|
|
14
14
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
15
15
|
function AgentCard({ agent, catalog }) {
|
|
16
16
|
const org = useOrg();
|
|
@@ -63,7 +63,7 @@ function AgentCard({ agent, catalog }) {
|
|
|
63
63
|
});
|
|
64
64
|
}
|
|
65
65
|
/** Agent kinds a list filters by. */
|
|
66
|
-
|
|
66
|
+
const KINDS = [
|
|
67
67
|
["", "All agents"],
|
|
68
68
|
["dashboard", "Dashboard agents"],
|
|
69
69
|
["repository", "Repository agents"],
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { HEADS } from "../../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
2
|
-
import { iAgent } from "../../../../../comps/ui/icons.
|
|
3
|
-
import { Page } from "../../../../../comps/frame/page-head.
|
|
4
|
-
import { LoadingToolbar } from "../../../../../comps/frame/loading-card.
|
|
5
|
-
import { Loading } from "../../../../../comps/ui/card.
|
|
2
|
+
import { iAgent } from "../../../../../comps/ui/icons.f769275420d072ce.js";
|
|
3
|
+
import { Page } from "../../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
4
|
+
import { LoadingToolbar } from "../../../../../comps/frame/loading-card.77bea8c5870b5d3c.js";
|
|
5
|
+
import { Loading } from "../../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
7
|
/** The agents page before its list arrives. */
|
|
8
8
|
export default function AgentsLoading() {
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import "./page.cf7460a024706f75.css.pnext-asset.js";
|
|
2
|
+
import { dynamic } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
|
|
3
|
+
import { load } from "../../../../../api/load.252f972b42c690e2.js";
|
|
4
|
+
import { Page } from "../../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
5
|
+
import { NeedsCredential } from "../../tasks/composer.ee326fbf5e526fb1.js";
|
|
6
|
+
import { Settle } from "../../../../../comps/frame/stream.e3800e736f832124.js";
|
|
7
|
+
import { credentialMissing } from "../../tasks/composer-data.73225456d60d63e3.js";
|
|
8
|
+
import { HEADS } from "../../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
9
|
+
import { jsx as _jsx } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
10
|
+
/** Agent cards per page: whole rows of two or three. */
|
|
11
|
+
const AGENT_PAGE = 18;
|
|
12
|
+
// Rows arrive rendered; paging and search hydrate once the list is in view.
|
|
13
|
+
const AgentsGrid = dynamic(() => import("./agents-grid.f989d6f2d9ece6e4.js").then((m) => m.AgentsGrid), {
|
|
14
|
+
load: "visible",
|
|
15
|
+
ssr: true
|
|
16
|
+
}, {
|
|
17
|
+
"file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/agents/(list)/agents-grid.tsx", import.meta.url).pathname),
|
|
18
|
+
"exportName": "AgentsGrid",
|
|
19
|
+
"id": "c-1fb6e021bd"
|
|
20
|
+
});
|
|
21
|
+
export default function AgentsPage({ request }) {
|
|
22
|
+
if (!request) return null;
|
|
23
|
+
const url = new URL(request.url);
|
|
24
|
+
const filters = {
|
|
25
|
+
q: url.searchParams.get("q") ?? "",
|
|
26
|
+
platform: url.searchParams.get("platform") ?? "",
|
|
27
|
+
type: url.searchParams.get("type") ?? ""
|
|
28
|
+
};
|
|
29
|
+
const agents = load(request).agents.list({
|
|
30
|
+
cursor: "",
|
|
31
|
+
limit: AGENT_PAGE,
|
|
32
|
+
...filters
|
|
33
|
+
});
|
|
34
|
+
const missing = credentialMissing(load(request));
|
|
35
|
+
const catalog = load(request).integrations.list();
|
|
36
|
+
return /* @__PURE__ */ _jsx(Page, { children: /* @__PURE__ */ _jsx(Settle, { load: () => Promise.all([
|
|
37
|
+
agents,
|
|
38
|
+
missing,
|
|
39
|
+
catalog.catch(() => [])
|
|
40
|
+
]).then(([first, needsCredential, integrations]) => /* @__PURE__ */ _jsx(AgentsGrid, {
|
|
41
|
+
limit: AGENT_PAGE,
|
|
42
|
+
first,
|
|
43
|
+
filters,
|
|
44
|
+
catalog: integrations,
|
|
45
|
+
head: HEADS.agents,
|
|
46
|
+
children: needsCredential ? /* @__PURE__ */ _jsx(NeedsCredential, { reason: "Agents need a model credential to run." }) : null
|
|
47
|
+
})) }) });
|
|
48
|
+
}
|