@wular/coder 0.4.12 → 0.4.13
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 +1 -1
- package/dist/actions-D12xDiQS.js +4 -0
- package/dist/{adapter-CVd5klMH.js → adapter-Bz0E-DAY.js} +2 -2
- package/dist/{adapter-CU9H4g6c.js → adapter-CsacmMmv.js} +1 -1
- package/dist/adapter-DzpdWewB.js +1 -0
- package/dist/{agent-BA6xr8QY.js → agent-JJStALIx.js} +2 -2
- package/dist/apps-Bnk7F3A2.js +379 -0
- package/dist/args-Dqf5Y1RP.js +1 -0
- package/dist/async-Tj4zKHXR.js +3 -0
- package/dist/{auth-DuXnSNf9.js → auth-BhpnOCbn.js} +1 -1
- package/dist/builtin/coder/agent.json +0 -1
- package/dist/builtin/coder/system.md +1 -1
- package/dist/{chat-CgQdDRhs.js → chat-CSepnsrK.js} +1 -1
- package/dist/cli.js +13 -13
- package/dist/cmd-BHZwhrfa.js +118 -0
- package/dist/connection-BkYTuJjV.js +1 -0
- package/dist/context-zhSlmXOp.js +7 -0
- package/dist/dash/standalone/node_modules/contextjsx/package.json +1 -1
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1281 -1261
- package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/context/{turn.dac8eb211c500271.js → turn.6bb73458768e222e.js} +4 -16
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.0de14cb4e30bd70d.js → index.de1f1311bab4252f.js} +12 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{defaults.1b615366c56838a1.js → defaults.e972c134a1ae918f.js} +3 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/{log-view.60308a11f7001eb7.js → log-view.ec6391dbf3063330.js} +40 -48
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.be791a5eaf328738.js → load.30ed8c28774a1a82.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.0fbfdba5254f7ae5.js → page.04762872666a6f0a.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.70913bd4075da914.js → page.118a70787eff1761.js} +23 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{loading.e348ec45e9ed951b.js → loading.fcdfd50c21031895.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.61aab176baeefebd.js → notify.98dfcd316c306258.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.815371ed0d5dd4fa.js → page.74c59322f5fe8a2c.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{sign-out.1d6af804f9ec043d.js → sign-out.730aa96b086ac996.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agent-menu.2ed0e66d131fc148.js → agent-menu.1be5795272b245c8.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.f43bcc1148ce3650.js → agents-grid.2c30ace077893029.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{connect-apps.f3af8cc8540719d7.js → connect-apps.8a20501ccb244421.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{loading.fac1132ad9c4248e.js → loading.733f0acc2af5ceda.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.c6efd5432c1a4a75.js → page.d066b77dd3187026.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.a795379254982121.js → layout.b26006f060cd48f0.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.a2cb6d1f1714259a.js → page.4b23e9df21433bd3.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{loading.4da9e2ba3fea937f.js → loading.e06845585ca67abc.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.996172c951739b35.js → page.4048048acb374c67.js} +35 -23
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.8e7ca54dd1821e98.js → platform-actions.000f2f87a48bfbc6.js} +36 -10
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.aa9e157d141481d7.js → agent-settings-form.ee0bb2dc4d403ec3.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{loading.ad1a4c9b000d269a.js → loading.0e3641f3e4abaa7c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.44d886e60ae04303.js → page.649b4ba135ded99b.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.521c9e7b8d77f557.js → loading.195e168e8e41d797.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.828cfb8112404792.js → page.96f7573208644f40.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{loading.8f998a9c511e1fb3.js → loading.905293c9aa9afbc9.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.45e18b6dc3019af4.js → page.5f2b8585db8b27ad.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.c8d76988c734dda2.js → versions-list.8700f0106f4e8c15.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{loading.b1367e864b4fb406.js → loading.f94b2f9ab04aaf21.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.dd11f2618e08becd.js → page.e898c4b5ef16ecb0.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-pills.f987c12bcbc5c850.js → agent-pills.44e689e546fb042b.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.1579dc8acbaacf92.js → agent-toggle.4c67dfbb7d28a416.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.ad5cc342db794e5d.js → hero.9740a8e2f4b41f28.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.43b4b28f194ea842.js → connect-repositories.ff8b78a03153239b.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.776856fe1ed1a642.js → editor.471af698b8060eba.js} +31 -20
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.eafa5b41a2ed571f.js → import-picker.b7b5c89e618e8f89.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{loading.ee001af7a96e3972.js → loading.ecb9dfd4d0f9d107.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.7d84ef2b178b34d2.js → page.880bdac7fe843635.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.393cf7429eea189e.js → layout.81f7e055829854a3.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.09bf294d753ee9d7.js +115 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.980adfb7c5714752.js → page.8f8697b1b6b34ad7.js} +36 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.24a1987405ed7b17.js → page.fe608b8e661aba1d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.21ec9dc73ce68656.js → connections-list.97381888bfdd711b.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.683476f62a9ecde7.js → credentials-list.a4d8338c7f6a5702.js} +10 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.b43dd3d97c536c2a.js → credentials.1443bbed1ff1d441.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.9e116751bd34e2cc.js → engines-list.d47db60d7dc01ebd.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.083f5c665df04b1b.js → list.a5b273558fb7f0f0.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.537f63f8e5dd085d.js → models-list.31d369f1b7ab45da.js} +66 -32
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.dfed4ae6ffc74434.js → page.805d0f8a2c5817d6.js} +15 -15
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.3afa989490bbe77c.js → runners-list.1e83449aa6593224.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.0d175ee815b22cd7.js → secrets-list.17ac06593005b8ba.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.3e8289f888fa444c.js → layout.8c4a2b31b194ba3e.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.06feaa5fbb06f1e6.js → page.a77996786278cda0.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{settings-head.bbc7ced8dd5491eb.js → settings-head.705be0b1129b97af.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.ff95e4b6977d0474.js → create-link.19b4c50ef497aca1.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-dialog.894c73f9abee3ce1.js → outcome-dialog.18cf32fa42247b91.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.f06fda0df59beeb5.js → page.616f0b36bf7925bc.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.3c79cf14feff12bf.js → activity.a911169a820ba604.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.47cbb34ea8d2e33f.js → loading.76f851da5cc5268d.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.abed2a8424ef3da0.js → page.ddb594bb6567ee13.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.51fbeac76459433a.js +240 -0
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.dc294bb94b7437e1.js → task-view.3276538e8306fd8a.js} +28 -28
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer-data.309a194fc7fa34be.js → composer-data.05fc39e1a7fd1ab7.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.5072aacdce127689.js → composer.dbf06b05c5e2eba3.js} +9 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{status.16190fdd5fd7daad.js → status.cb704b48ce86cc7d.js} +6 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{task.0a1b5878dccd3b37.js → task.f089c1c122ed6dd2.js} +17 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.1162926f7498c732.js → tasks-list.5a00d69851dae119.js} +37 -22
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.1d687c986db53a73.js → tasks-section.36e70c93f7d0feee.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.d5d8cb5033823c9c.js → page.185b1ba0c803db3f.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{loading.97d277dbab9c15cf.js → loading.a7e0ec01bfa769e3.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.fb21ebe90d49dac1.js → page.d41fea7676e37bfc.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{range-bar.2197d8f43216d104.js → range-bar.69e68c9dae09f238.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.185dbc99875e208a.js → layout.296d70b95894209f.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{foreign-link.1f4217895ff1e835.js → foreign-link.8c6adf9c5a6f467c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{loading-card.cc76fc9708142525.js → loading-card.1cea8a722c10b998.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.85f15db7b648d48c.js → page-head.87b92529dbb53ceb.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.e2915852cf82c86b.js → stream.c32d78562f75db25.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.0ed8ccaae81b9d53.js → task-toasts.44075fa7e04575e8.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.180765bdadf6d602.js → back.d6109e72fbd04b45.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.572ad93c7707ab27.js → org.d3abfd4053b711ce.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.c1281f9b12854210.js → confirm.29e198be34578222.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.3a452a262f040973.js → filter.81bb9a5c60cd1089.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.25d53e5b41b9c4e5.js → modal.0b69c7fd9db025b9.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{segmented.a08dc08338d080e9.js → segmented.633abe26ff760e37.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{sentinel.17cffebfc3103b9f.js → sentinel.0ddf515b8f09ef9f.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tabs.66b2e54963f6901b.js → tabs.1600a0b563a5c7dd.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.24036899654de6df.js → toolbar.8b3a460a65edf85a.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.b9a5c37272250e82.js → action.67dd6f8ab1ae067d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.a3928fa2dcd27b75.js → client.78267fa3d7905d17.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{action-71685b2d5ad9f359.js → action-a76e495fb39a73d3.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agent-pills-15da36c2cb81991b.js → agent-pills-4d3c6a2aa9eb1522.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agent-settings-form-6e6a87d6e673daa8.js → agent-settings-form-f7231a66e391f6b6.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agent-toggle-ca98586e3b4ce9ae.js → agent-toggle-d7d27123f2070f18.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agents-grid-29c399e46b4e9e2b.js → agents-grid-185ecb3d86c6c447.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{back-fa9d6e37f9828093.js → back-e29cb10f5548ddae.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{combo-86f3e11d1f6f6cee.js → combo-702c94817bf6ac17.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/composer-56ebf36d63400423.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{composer-85e0ec7163ae18b7.js → composer-a686289a79f64bae.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/composer-data-f46a9bc7a14b4f9a.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{confirm-c29a1db0130638d2.js → confirm-a78147b6ecef3847.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-apps-b73490e04ae6398d.js → connect-apps-696726aedab42c96.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-0de82daaf654b1d3.js → connect-repositories-7770ab805160028d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-07559f145f3e3da3.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{copy-445c11202f136275.js → copy-bdc60bdafe336316.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-426b0a5871ee41dd.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/credentials-list-f07d090410104148.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{custom-range-a0630599f907b30e.js → custom-range-6618f32ef6cd4e80.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/editor-0860e370cbfc6b03.js +6 -0
- package/dist/dash/standalone/static/assets/chunks/engines-list-31b9bb7885924b05.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{field-b82a0f895266791c.js → field-bb8191aa02d07282.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-06b63e558f879da5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{instructions-affaaeff366b1725.js → instructions-2d9fbcbfadac4f40.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/list-2773686bf8df64c7.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/models-list-03611e64b6a07efe.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{notice-57db7a1f05b7308c.js → notice-d14fdac28139c0a8.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-d3ba8ef89c59f801.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-5cf575a5e6921a5d.js → outcome-dialog-fde11a52c282301d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-2a71c62b9f7eaef3.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-70600c9943320152.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/runners-list-edf536eb8003eab5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/secrets-list-e86122f73525ff95.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/segmented-0b6dc6b93c35e0f5.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-b281027d465e004f.js +5 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-c3bd249cf1eca6d1.js +2 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-9b3af821cfe4c824.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{tail-b1c46587301ef397.js → tail-f8804b80cf32f8d0.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/task-a37e7c26e82eb77d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-actions-705395565f2d83b8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/task-view-cb21169f38b56d15.js +6 -0
- package/dist/dash/standalone/static/assets/chunks/tasks-list-d7dccfd7e0623ae0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{versions-list-21cb854e6a7108a7.js → versions-list-f8f2e71df691efda.js} +1 -1
- package/dist/dash/standalone/static/assets/create-param-id-c2c756f652f2fc30.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-account-9471bec93c444232.css → dash-param-org-account-702f8a1b213e4026.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-aad2f9f93c06e9ab.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-f9dcbcec36586f2b.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-8ff47f5d622c1f9b.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-907036d553cfeb36.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-5cc77badad15f00c.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-705d7c15868b4fd6.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-04e189c045098772.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-76fcd1ce7b3dae71.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-bcfa3de29341d5ba.css → dash-param-org-eccb6bb9297a53e6.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-operator-635a121f7a9a95bd.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-settings-6d6902345d88a687.css → dash-param-org-settings-a3297dc4d9e0c961.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-bcb06f81d9e8268d.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-setup-173efecd7b990c2e.css → dash-param-org-setup-df4be8b188b9777f.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-16f9866a1b4801cd.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-02ae551dcd852b57.css +1 -0
- package/dist/dash/standalone/static/assets/dash-param-org-usage-f2175403069aab99.css +1 -0
- package/dist/dash/standalone/static/assets/{global-87e1762113874559.css → global-e1de614478b64717.css} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-0dc829ba60df5c26.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-14d191f7f1da6602.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-169eaa63783b71fd.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-1e34cfefafa70fac.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-285d61f00a80f40b.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-35b89c3ba23ee845.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6c42784e005d4b87.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-576c06599e241231.js → pnext-client-6cd93f9bd4cf6ffd.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-7355f473fade532d.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-815c3c297f75efb0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-87fe73c10a4dc33c.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-98b56a142d441260.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-b4bafe68a40f720b.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-bf61ff39bdc0db48.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-c9fa86c244813f74.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-d2e7a75e16221224.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-d34e774405ea8da8.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-d511822afdb41d1d.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-e113aa2f25ecfe01.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-c2c30dcb6dc31d60.js → pnext-client-eb62f461d0c32266.js} +1 -1
- package/dist/{discover-CPZdprlQ.js → discover-CHfF4cEz.js} +1 -1
- package/dist/{docs-x-l7gjFE.js → docs-KHc0_gFX.js} +1 -1
- package/dist/{drive-Y-ZlgiUW.js → drive-Bwl7Bjme.js} +1 -1
- package/dist/emit-BrkJJPUE.js +11 -0
- package/dist/env-6Y-NNnYD.js +1 -0
- package/dist/errors-DO_IltpP.js +16 -0
- package/dist/exec-BmTa0vcO.js +4 -0
- package/dist/executor-ufWRqhdS.js +11 -0
- package/dist/flow/builtin/review/index.d.ts +1 -1
- package/dist/flow/builtin/review/index.js +3 -3
- package/dist/flow/index.d.ts +1 -1
- package/dist/flow/index.js +1 -1
- package/dist/hook-CIipj9MJ.js +1 -0
- package/dist/http-Cg8PSe-c.js +1 -0
- package/dist/{index-BdkdNI1v.d.ts → index-ChcxzFdB.d.ts} +50 -185
- package/dist/integrations-I7fRDk_l.js +4 -0
- package/dist/lib/broker.js +2 -2
- package/dist/load-BDlEFetB.js +2 -0
- package/dist/local-COlczLwI.js +5 -0
- package/dist/log-view-CfX9lakH.js +4 -0
- package/dist/{maintenance-BfxcatXH.js → maintenance-CKCIWOvn.js} +1 -1
- package/dist/{match-Bq4sDuCy.js → match-CufHAZQH.js} +1 -1
- package/dist/mcp-BkwmRHI9.js +2 -0
- package/dist/mcp-CGU7aoJ-.js +1 -0
- package/dist/{mcp-Bta09QCU.js → mcp-DAHbhfUh.js} +1 -1
- package/dist/models-CzggS7p2.js +1 -0
- package/dist/output-SNqdgh9A.js +17 -0
- package/dist/permission-MWFjKxqX.js +1 -0
- package/dist/{prompt-onpyIyXK.js → prompt-CIx4jwQF.js} +1 -1
- package/dist/refresh-CxsaX5R9.js +1 -0
- package/dist/remote-C9Hj2cby.js +2 -0
- package/dist/remote-HUZCWgfl.js +3 -0
- package/dist/{runner-CTFTuaz_.js → runner-DYysY1-G.js} +1 -1
- package/dist/runner.json +1 -1
- package/dist/runner.tgz +0 -0
- package/dist/runners-CfaGE0nV.js +36 -0
- package/dist/schema.js +1 -1
- package/dist/sdk.d.ts +285 -104
- package/dist/sdk.js +1 -1
- package/dist/serve-DdAdw7Su.js +4 -0
- package/dist/serve-NQykWAKV.js +1 -0
- package/dist/serve-vKNqVaVy.js +12 -0
- package/dist/slack-BtKvW_4v.js +5 -0
- package/dist/task-CFxs0E_J.js +1 -0
- package/dist/task-iuYQ0zAK.js +7 -0
- package/dist/tools-B6ZxcqRi.js +2 -0
- package/dist/{tools-CM4UCsId.js → tools-FVop8XYG.js} +1 -1
- package/dist/tools-search-kjKKolwp.js +1 -0
- package/dist/turn-DQ13lkPF.js +2 -0
- package/dist/types-DPtbvoo3.js +1 -0
- package/dist/types-DmThhjcW.js +1 -0
- package/dist/views-CMHXBMJp.js +3 -0
- package/dist/{wire-JMNPv8f6.js → wire-C9CupY_A.js} +1 -1
- package/dist/worker-BQpx1dPr.js +9 -0
- package/dist/worker-sTJL2eoe.js +1 -0
- package/docs/access.md +33 -0
- package/docs/agents/coder.md +0 -11
- package/docs/agents/index.md +1 -1
- package/docs/cli/agent.md +6 -6
- package/docs/cli/connection.md +5 -5
- package/docs/cli/flow.md +9 -9
- package/docs/cli/index.md +3 -3
- package/docs/cli/model.md +12 -10
- package/docs/cli/runner.md +1 -1
- package/docs/cli/server.md +2 -2
- package/docs/cli/task.md +23 -21
- package/docs/config.md +5 -15
- package/docs/flows.md +1 -1
- package/docs/models.md +7 -6
- package/docs/sdk.md +29 -29
- package/docs/self-host.md +25 -25
- package/package.json +2 -2
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/actions-BT7_eKXm.js +0 -10
- package/dist/adapter-BT8ECcRG.js +0 -1
- package/dist/apps-D-v5sQJk.js +0 -367
- package/dist/args-CbO_Ck9Z.js +0 -11
- package/dist/async-XNO3nqum.js +0 -3
- package/dist/cmd-DX5ByXo3.js +0 -119
- package/dist/connection-DNxi2btM.js +0 -1
- package/dist/context-65bOofts.js +0 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.a244f3199e7cf09c.js +0 -144
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.587da79d68ab8d14.js +0 -151
- package/dist/dash/standalone/static/assets/chunks/composer-910bb87127972f62.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-data-5fed6c271a4791ca.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/connections-list-c50f58b4b28d10bb.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-6d64a2d5f9ce6de0.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/credentials-list-bee95799b2319b3b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/defaults-52f30e83d7666f7a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/editor-b9951819f21b2e43.js +0 -6
- package/dist/dash/standalone/static/assets/chunks/engines-list-2720c3e8fa12b2f7.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-fd7402ac5aa8b50e.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/list-d918f79562d497eb.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/models-list-12bc7aceaa52f5b0.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-b219595be320108a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-1d27d2ba7eee9ff1.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-dba96dcb0f6513db.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/runners-list-36f8c5ecfcf8e9ae.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/secrets-list-d7dbafd24dd18481.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/segmented-8f809ebe712e92a7.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-cc13a835f3508618.js +0 -2
- package/dist/dash/standalone/static/assets/chunks/shared-init-f475017dd5811e33.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/side-toggle-0aa237eba3dfe9c1.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-681061023bdf0a49.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/task-actions-c9e46e81604e85c5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-134186a544917ceb.js +0 -5
- package/dist/dash/standalone/static/assets/chunks/tasks-list-352a3222d878de0f.js +0 -1
- package/dist/dash/standalone/static/assets/create-param-id-da3f7e20689fe51a.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-64500e78caae32df.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-new-c067c22928a2d7cc.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-9dec87710e04f949.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-779c474301e04440.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-c7d594b5232630c2.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-a80e62570716fdb9.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-ce278252012297b9.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-d3b6d701eb8e1403.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-operator-b7bc6447cc27c9ce.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-85c7af9a89eef06e.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-ae0bc03f468e63cc.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-7325d8cff5be3592.css +0 -1
- package/dist/dash/standalone/static/assets/dash-param-org-usage-517b2a7ae462ac57.css +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-05df74b071ddb0b3.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2c19cca257f78ae6.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2db05dfa62642a65.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-36b0d6085a073880.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6aa0f19a30d58d63.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6b30b71f452f2f07.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6ccb4d4fff812db3.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-74eb465defba421e.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-8c692d12b2fd90d6.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-92e17d39063a9ced.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-93246aea268c2682.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-9954dcbc0c579e0d.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-c0dfa1cdde9a9855.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-c28d38d4aafd4af6.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-dbf741073e11eac0.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-e29194a27280333f.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-f8a7e692b27caad9.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-fc5b8cfcba2a9f63.js +0 -1
- package/dist/env-B9JG6gwo.js +0 -1
- package/dist/errors-XBA-Ls4n.js +0 -10
- package/dist/exec-iFssTO5V.js +0 -3
- package/dist/executor-Dt2FFT-y.js +0 -11
- package/dist/http-BZfjbiov.js +0 -1
- package/dist/integrations-DyInAa5g.js +0 -2
- package/dist/load-zhcrwSRF.js +0 -2
- package/dist/local-D55UkW93.js +0 -5
- package/dist/log-view-CL3_S0IQ.js +0 -3
- package/dist/mcp-CUITALl1.js +0 -1
- package/dist/models-C1O2DrXx.js +0 -1
- package/dist/output-D95NoAA9.js +0 -16
- package/dist/prompts-B8pKhMcu.js +0 -4
- package/dist/refresh-D-0K9fo3.js +0 -1
- package/dist/remote-CDm0YUU3.js +0 -3
- package/dist/runners-CYTicTb7.js +0 -36
- package/dist/serve-Bzs_lEg-.js +0 -1
- package/dist/serve-CWtLyyTz.js +0 -12
- package/dist/serve-DE6A-rBk.js +0 -4
- package/dist/slack-Bo5l13Rs.js +0 -5
- package/dist/task-BU1JEK9X.js +0 -7
- package/dist/task-CPzBITsp.js +0 -1
- package/dist/tools-BMaKWTa6.js +0 -1
- package/dist/turn-DMvPfhb5.js +0 -3
- package/dist/types-D_xnfP7m.js +0 -1
- package/dist/views-DEdKqLm_.js +0 -5
- package/dist/worker-BuP_Lem1.js +0 -9
- package/dist/worker-C1tuzq5n.js +0 -1
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{errors.0a735590a5412ea6.js → errors.1bd0542d832ae0c0.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.c811938ae8a8f1df.css.pnext-asset.js → page.107e622830bff31d.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.1bef5dca89b5942c.css.pnext-asset.js → hero.243d85cac1f22df2.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.c496247a81ed832c.css.pnext-asset.js → editor.1eb1bce282b289c9.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{model-options.a96c11d11674f598.js → model-options.73f8d0d54f79d8e3.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.57990cfd2bdf5c11.css.pnext-asset.js → task-view.42337a0d7c6ad0b6.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.abbbc9ace4d866e5.css.pnext-asset.js → tasks-list.2f90c4410f843fff.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{globals.c8fd2b8b01e7077b.css.pnext-asset.js → globals.f8ac779f0ebf888b.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.364ec93a8e7857b3.css.pnext-asset.js → page-head.9fcc49ddf7119d75.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.9db07d368dcf5981.css.pnext-asset.js → modal.a533234c7c831be4.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{segmented.0bd8652fdbc05eb0.css.pnext-asset.js → segmented.c6f30b839fd27f35.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{sentinel.1e3ec9bd6008d811.css.pnext-asset.js → sentinel.d17e2bfcbeb9df31.css.pnext-asset.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tabs.ca13e40ff54128d0.css.pnext-asset.js → tabs.025b532d6cc51736.css.pnext-asset.js} +0 -0
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import "./status.7e63f2b02469ca40.css.pnext-asset.js";
|
|
2
|
+
import { awaitsApproval } from "../../../../../../../core/defaults.e972c134a1ae918f.js";
|
|
2
3
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
3
|
-
|
|
4
|
+
/** A task's state; an open escalation reads as needing approval whatever its turn does. */
|
|
5
|
+
export function Status({ status, approvals }) {
|
|
6
|
+
const shown = awaitsApproval(status, approvals) ? "waiting" : status;
|
|
4
7
|
return /* @__PURE__ */ _jsxs("span", {
|
|
5
|
-
class: `st ${
|
|
6
|
-
children: [/* @__PURE__ */ _jsx("i", {}), STATUS_LABEL[
|
|
8
|
+
class: `st ${shown}`,
|
|
9
|
+
children: [/* @__PURE__ */ _jsx("i", {}), STATUS_LABEL[shown] ?? shown]
|
|
7
10
|
});
|
|
8
11
|
}
|
|
9
12
|
export const STATUS_LABEL = {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { byListKey, listRank } from "../../../../../../../core/defaults.
|
|
2
|
-
import { eventJsons, replyRequired as turnReplyRequired } from "../../../../../../../agent/context/turn.
|
|
1
|
+
import { byListKey, listRank } from "../../../../../../../core/defaults.e972c134a1ae918f.js";
|
|
2
|
+
import { eventJsons, replyRequired as turnReplyRequired } from "../../../../../../../agent/context/turn.6bb73458768e222e.js";
|
|
3
3
|
/** A task page's tabs, the loading frame's too. */
|
|
4
4
|
export const TASK_TABS = ["Conversation", "Activity"];
|
|
5
5
|
/** Task statuses a list filters by. */
|
|
@@ -80,9 +80,22 @@ export function eventMessages(prompt) {
|
|
|
80
80
|
export const replyRequired = (task, prompt) => turnReplyRequired(prompt, task.task.event?.mustReply !== false);
|
|
81
81
|
/** A platform task is titled by its first message; dashboard and CLI tasks by their prompt. */
|
|
82
82
|
export function taskTitle(task) {
|
|
83
|
-
|
|
84
|
-
const
|
|
83
|
+
// The first turn's prompt: a follow-up or a decision never retitles the task.
|
|
84
|
+
const prompt = (task.turns?.[0]?.prompt ?? task.task.prompt)?.trim();
|
|
85
|
+
const first = !prompt || eventMessages(prompt) ? task.task.event?.text?.trim() || eventMessages(prompt ?? "")?.find((message) => !message.reaction)?.text.trim() : prompt;
|
|
85
86
|
return task.task.name?.trim() || first || `${task.task.event?.type ?? "task"} on ${task.task.agent}`;
|
|
86
87
|
}
|
|
88
|
+
/** The engine, model and effort a task runs on, as `claude/opus/high`. */
|
|
89
|
+
export function taskModel(task) {
|
|
90
|
+
const { engine, model, effort } = {
|
|
91
|
+
...task.task.definition,
|
|
92
|
+
...task.task.usage
|
|
93
|
+
};
|
|
94
|
+
return [
|
|
95
|
+
engine,
|
|
96
|
+
model,
|
|
97
|
+
effort
|
|
98
|
+
].filter(Boolean).join("/");
|
|
99
|
+
}
|
|
87
100
|
/** A folder path's last segment. */
|
|
88
101
|
export const folderName = (path) => path.split(/[\\/]/).filter(Boolean).at(-1) ?? path;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./tasks-list.
|
|
2
|
+
import "./tasks-list.2f90c4410f843fff.css.pnext-asset.js";
|
|
3
3
|
import { dynamic } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
|
|
4
4
|
import { useEffect, useRef, useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
5
|
-
import { client } from "../../../../../utils/client.
|
|
6
|
-
import { useAction } from "../../../../../utils/action.
|
|
5
|
+
import { client } from "../../../../../utils/client.78267fa3d7905d17.js";
|
|
6
|
+
import { useAction } from "../../../../../utils/action.67dd6f8ab1ae067d.js";
|
|
7
7
|
import { formatCount, formatDate, formatDay, formatDuration } from "../../../../../utils/format.ceeaafa10a0563f3.js";
|
|
8
8
|
import { iAgent, iClock, iDots, iFolder, iMonitor, iPlug, iPlus, iTerminal } from "../../../../../comps/ui/icons.e36c72f54750663a.js";
|
|
9
9
|
import { Menu } from "../../../../../comps/ui/menu.ee45bace979944b6.js";
|
|
@@ -12,26 +12,26 @@ import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/sr
|
|
|
12
12
|
import { useRouter } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
13
13
|
import { usePaged } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
14
14
|
import { useZone } from "../../../../zone.0515a688ee5ff6ca.js";
|
|
15
|
-
import {
|
|
15
|
+
import { pendingApproval } from "../[id]/task-actions.51fbeac76459433a.js";
|
|
16
|
+
import { BrandIcon } from "../../agents/agent/agent-pills.44e689e546fb042b.js";
|
|
16
17
|
import { Button } from "../../../../../comps/ui/button.ce9e6cdb08ca86db.js";
|
|
17
18
|
import { Card, Empty } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
|
|
18
19
|
import { Badge, Id } from "../../../../../comps/ui/badge.c0bc352791a95fd6.js";
|
|
19
|
-
import { ConfirmDialog } from "../../../../../comps/ui/confirm.
|
|
20
|
-
import {
|
|
21
|
-
import { Status } from "./status.16190fdd5fd7daad.js";
|
|
20
|
+
import { ConfirmDialog } from "../../../../../comps/ui/confirm.29e198be34578222.js";
|
|
21
|
+
import { Status } from "./status.cb704b48ce86cc7d.js";
|
|
22
22
|
import { Icon } from "../../../../../comps/ui/icon.0874ca2f58f7db14.js";
|
|
23
|
-
import { Filter } from "../../../../../comps/ui/filter.
|
|
24
|
-
import { addRows, readDelta, taskActive, withAdded } from "./task.
|
|
25
|
-
import { taskTitle } from "./task.
|
|
23
|
+
import { Filter } from "../../../../../comps/ui/filter.81bb9a5c60cd1089.js";
|
|
24
|
+
import { addRows, readDelta, taskActive, withAdded } from "./task.f089c1c122ed6dd2.js";
|
|
25
|
+
import { taskModel, taskTitle } from "./task.f089c1c122ed6dd2.js";
|
|
26
26
|
import { LIST_PAGE } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
27
|
-
import { Search, Toolbar, queryOf, useFilters } from "../../../../../comps/ui/toolbar.
|
|
27
|
+
import { Search, Toolbar, queryOf, useFilters } from "../../../../../comps/ui/toolbar.8b3a460a65edf85a.js";
|
|
28
28
|
import { Tail } from "../../../../../comps/ui/tail.04132db0c5033d4f.js";
|
|
29
|
-
import { SOURCES, STATUSES, folderName, listFilters, sourceLabel } from "./task.
|
|
30
|
-
import { NeedsCredential } from "../composer.
|
|
31
|
-
import { useTaskEvents } from "../../../../../comps/frame/task-toasts.
|
|
32
|
-
import { useOrg } from "../../../../../comps/nav/org.
|
|
29
|
+
import { SOURCES, STATUSES, folderName, listFilters, sourceLabel } from "./task.f089c1c122ed6dd2.js";
|
|
30
|
+
import { NeedsCredential } from "../composer.dbf06b05c5e2eba3.js";
|
|
31
|
+
import { useTaskEvents } from "../../../../../comps/frame/task-toasts.44075fa7e04575e8.js";
|
|
32
|
+
import { useOrg } from "../../../../../comps/nav/org.d3abfd4053b711ce.js";
|
|
33
33
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
34
|
-
const NewTaskButton = dynamic(() => import("../composer.
|
|
34
|
+
const NewTaskButton = dynamic(() => import("../composer.dbf06b05c5e2eba3.js").then((m) => m.NewTaskButton), {
|
|
35
35
|
// TODO: stays disabled after client navigation until pnext SSRs nested dynamic() like Next.js.
|
|
36
36
|
loading: () => /* @__PURE__ */ _jsx(Button, {
|
|
37
37
|
class: "new-task",
|
|
@@ -41,7 +41,7 @@ loading: () => /* @__PURE__ */ _jsx(Button, {
|
|
|
41
41
|
}) }, {
|
|
42
42
|
"file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/tasks/composer.tsx", import.meta.url).pathname),
|
|
43
43
|
"exportName": "NewTaskButton",
|
|
44
|
-
"id": "c-
|
|
44
|
+
"id": "c-a41dab3334"
|
|
45
45
|
});
|
|
46
46
|
const SOURCE_ICONS = {
|
|
47
47
|
dashboard: iMonitor,
|
|
@@ -86,7 +86,15 @@ function TaskRowView({ task, brand, back, scoped, tz, now, onDone }) {
|
|
|
86
86
|
})] }) : null
|
|
87
87
|
]
|
|
88
88
|
})] }),
|
|
89
|
-
/* @__PURE__ */ _jsx("td", { children: /* @__PURE__ */ _jsx(Status, {
|
|
89
|
+
/* @__PURE__ */ _jsx("td", { children: /* @__PURE__ */ _jsx(Status, {
|
|
90
|
+
status: task.status,
|
|
91
|
+
approvals: task.approvals
|
|
92
|
+
}) }),
|
|
93
|
+
/* @__PURE__ */ _jsx("td", {
|
|
94
|
+
class: "model",
|
|
95
|
+
title: taskModel(task),
|
|
96
|
+
children: taskModel(task)
|
|
97
|
+
}),
|
|
90
98
|
/* @__PURE__ */ _jsx("td", {
|
|
91
99
|
class: "when",
|
|
92
100
|
title: formatDate(task.lastActivityAt, tz),
|
|
@@ -112,7 +120,8 @@ function TaskRowView({ task, brand, back, scoped, tz, now, onDone }) {
|
|
|
112
120
|
function RowActions({ task, onDone }) {
|
|
113
121
|
const action = useAction();
|
|
114
122
|
const [confirming, setConfirming] = useState(false);
|
|
115
|
-
const
|
|
123
|
+
const approval = pendingApproval(task);
|
|
124
|
+
const act = (what, decision) => void action.run(what, () => what === "approve" ? client.tasks.approve(task.task.id, approval?.id ?? "", decision ?? "decline") : what === "delete" ? client.tasks.delete(task.task.id) : client.tasks[what](task.task.id)).then((ok) => {
|
|
116
125
|
if (ok) onDone(what);
|
|
117
126
|
setConfirming(false);
|
|
118
127
|
});
|
|
@@ -122,11 +131,11 @@ function RowActions({ task, onDone }) {
|
|
|
122
131
|
label: "Task actions",
|
|
123
132
|
align: "right",
|
|
124
133
|
children: [
|
|
125
|
-
|
|
134
|
+
approval ? /* @__PURE__ */ _jsx(MenuItem, {
|
|
126
135
|
title: "Approve",
|
|
127
136
|
onClick: () => act("approve", "accept")
|
|
128
137
|
}) : null,
|
|
129
|
-
|
|
138
|
+
approval ? /* @__PURE__ */ _jsx(MenuItem, {
|
|
130
139
|
title: "Deny",
|
|
131
140
|
onClick: () => act("approve", "decline")
|
|
132
141
|
}) : null,
|
|
@@ -326,6 +335,7 @@ export function TasksList({ first, platforms, brands = {}, agents = [], filters,
|
|
|
326
335
|
...was,
|
|
327
336
|
status: event.status,
|
|
328
337
|
approval: event.approval ?? undefined,
|
|
338
|
+
approvals: event.approvals ?? undefined,
|
|
329
339
|
archivedAt: event.archivedAt,
|
|
330
340
|
startedAt: event.startedAt,
|
|
331
341
|
finishedAt: event.finishedAt
|
|
@@ -355,6 +365,7 @@ export function TasksList({ first, platforms, brands = {}, agents = [], filters,
|
|
|
355
365
|
agent: row.task.agent,
|
|
356
366
|
status: row.status,
|
|
357
367
|
approval: row.approval,
|
|
368
|
+
approvals: row.approvals,
|
|
358
369
|
archivedAt: row.archivedAt,
|
|
359
370
|
createdAt: row.createdAt,
|
|
360
371
|
startedAt: row.startedAt,
|
|
@@ -401,6 +412,10 @@ export function TasksList({ first, platforms, brands = {}, agents = [], filters,
|
|
|
401
412
|
children: [/* @__PURE__ */ _jsx("thead", { children: /* @__PURE__ */ _jsxs("tr", { children: [
|
|
402
413
|
/* @__PURE__ */ _jsx("th", { children: "Task" }),
|
|
403
414
|
/* @__PURE__ */ _jsx("th", { children: "Status" }),
|
|
415
|
+
/* @__PURE__ */ _jsx("th", {
|
|
416
|
+
class: "model",
|
|
417
|
+
children: "Model"
|
|
418
|
+
}),
|
|
404
419
|
/* @__PURE__ */ _jsx("th", { children: "Last activity" }),
|
|
405
420
|
/* @__PURE__ */ _jsx("th", {
|
|
406
421
|
class: "num",
|
|
@@ -413,7 +428,7 @@ export function TasksList({ first, platforms, brands = {}, agents = [], filters,
|
|
|
413
428
|
back,
|
|
414
429
|
scoped: Boolean(agent),
|
|
415
430
|
tz,
|
|
416
|
-
now,
|
|
431
|
+
now: Date.now(),
|
|
417
432
|
onDone: (what) => {
|
|
418
433
|
// An archived row leaves every view but the archive; a stopped one just refreshes.
|
|
419
434
|
if (what === "delete" || what === "archive" && values.status !== "archived") setGone((current) => [...current, task.task.id]);
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import "./tasks-list.
|
|
1
|
+
import "./tasks-list.2f90c4410f843fff.css.pnext-asset.js";
|
|
2
2
|
import { dynamic } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
|
|
3
3
|
import { zoneOf } from "../../../../../utils/format.ceeaafa10a0563f3.js";
|
|
4
4
|
import { FILTER_ROWS, LIST_PAGE } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
5
|
-
import { load } from "../../../../../api/load.
|
|
6
|
-
import { Settle } from "../../../../../comps/frame/stream.
|
|
7
|
-
import { LoadingCard, LoadingToolbar } from "../../../../../comps/frame/loading-card.
|
|
8
|
-
import { listFilters } from "./task.
|
|
5
|
+
import { load } from "../../../../../api/load.30ed8c28774a1a82.js";
|
|
6
|
+
import { Settle } from "../../../../../comps/frame/stream.c32d78562f75db25.js";
|
|
7
|
+
import { LoadingCard, LoadingToolbar } from "../../../../../comps/frame/loading-card.1cea8a722c10b998.js";
|
|
8
|
+
import { listFilters } from "./task.f089c1c122ed6dd2.js";
|
|
9
9
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
10
10
|
// Rows arrive rendered; paging and filters hydrate once the list is in view.
|
|
11
|
-
const TasksList = dynamic(() => import("./tasks-list.
|
|
11
|
+
const TasksList = dynamic(() => import("./tasks-list.5a00d69851dae119.js").then((m) => m.TasksList), {
|
|
12
12
|
load: "visible",
|
|
13
13
|
ssr: true
|
|
14
14
|
}, {
|
|
15
15
|
"file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/tasks/list/tasks-list.tsx", import.meta.url).pathname),
|
|
16
16
|
"exportName": "TasksList",
|
|
17
|
-
"id": "c-
|
|
17
|
+
"id": "c-adf39f3847"
|
|
18
18
|
});
|
|
19
19
|
/** A task list before it arrives; an agent's own tab has no head and no agent filter. */
|
|
20
20
|
export function TasksLoading({ head }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { load } from "../../../../api/load.
|
|
1
|
+
import { load } from "../../../../api/load.30ed8c28774a1a82.js";
|
|
2
2
|
import { HEADS } from "../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
3
|
-
import { Page } from "../../../../comps/frame/page-head.
|
|
4
|
-
import { TasksSection, loadTasks } from "./list/tasks-section.
|
|
5
|
-
import { credentialMissing } from "./composer-data.
|
|
3
|
+
import { Page } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
|
|
4
|
+
import { TasksSection, loadTasks } from "./list/tasks-section.36e70c93f7d0feee.js";
|
|
5
|
+
import { credentialMissing } from "./composer-data.05fc39e1a7fd1ab7.js";
|
|
6
6
|
import { jsx as _jsx } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
7
|
/** Every task, with New task in the head. */
|
|
8
8
|
export default function TasksPage({ request }) {
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import "./@/comps/ui/segmented.41728247cda62f82.css.pnext-asset.js";
|
|
2
2
|
import "./@/app/dash/[org]/usage/range-bar.85d30ec5f022f124.css.pnext-asset.js";
|
|
3
3
|
import { HEADS } from "../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
4
|
-
import { LoadingRange } from "./range-bar.
|
|
4
|
+
import { LoadingRange } from "./range-bar.69e68c9dae09f238.js";
|
|
5
5
|
import { Loading } from "../../../../comps/ui/card.9f0d45b73bc78b4f.js";
|
|
6
|
-
import { Page, PageHead } from "../../../../comps/frame/page-head.
|
|
6
|
+
import { Page, PageHead } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
8
|
export default function UsageLoading() {
|
|
9
9
|
return /* @__PURE__ */ _jsxs(Page, { children: [
|
|
@@ -2,15 +2,15 @@ import "./@/comps/ui/segmented.41728247cda62f82.css.pnext-asset.js";
|
|
|
2
2
|
import "./@/app/dash/[org]/usage/range-bar.85d30ec5f022f124.css.pnext-asset.js";
|
|
3
3
|
import { formatCompact, formatCount, formatDuration, zoneOf } from "../../../../utils/format.ceeaafa10a0563f3.js";
|
|
4
4
|
import { daysIn, rangeFor } from "../../../../utils/range.f73ba9cac0a60af1.js";
|
|
5
|
-
import { load, orgOf } from "../../../../api/load.
|
|
5
|
+
import { load, orgOf } from "../../../../api/load.30ed8c28774a1a82.js";
|
|
6
6
|
import { Card } from "../../../../comps/ui/card.9f0d45b73bc78b4f.js";
|
|
7
|
-
import { Page, PageHead } from "../../../../comps/frame/page-head.
|
|
7
|
+
import { Page, PageHead } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
|
|
8
8
|
import { Stat, Stats } from "./stats.de820599cf126120.js";
|
|
9
|
-
import { Settle } from "../../../../comps/frame/stream.
|
|
9
|
+
import { Settle } from "../../../../comps/frame/stream.c32d78562f75db25.js";
|
|
10
10
|
import { HEADS } from "../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
11
11
|
import { TopAgents } from "./top-agents.18fc469e781e2305.js";
|
|
12
12
|
import { DayChart } from "./day-chart.261b6651df2d3966.js";
|
|
13
|
-
import { RangeBar } from "./range-bar.
|
|
13
|
+
import { RangeBar } from "./range-bar.69e68c9dae09f238.js";
|
|
14
14
|
import { METRIC_LABEL } from "./metric.5ff3636065481c44.js";
|
|
15
15
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
16
16
|
const SORT_METRIC = {
|
|
@@ -4,9 +4,9 @@ import { CustomRange } from "./custom-range.2e21c7f891966c15.js";
|
|
|
4
4
|
import { linkOf, withSearch } from "../../../../comps/nav/to.a2c840c09bd4bf4a.js";
|
|
5
5
|
import { iDown } from "../../../../comps/ui/icons.e36c72f54750663a.js";
|
|
6
6
|
import { Icon } from "../../../../comps/ui/icon.0874ca2f58f7db14.js";
|
|
7
|
-
import { BLANK } from "../../../../comps/frame/loading-card.
|
|
7
|
+
import { BLANK } from "../../../../comps/frame/loading-card.1cea8a722c10b998.js";
|
|
8
8
|
import { LoadingMenu } from "../../../../comps/ui/menu-items.1d082ac4dae8f3d4.js";
|
|
9
|
-
import { Segmented } from "../../../../comps/ui/segmented.
|
|
9
|
+
import { Segmented } from "../../../../comps/ui/segmented.633abe26ff760e37.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
11
11
|
const OPTIONS = Object.entries(PRESETS).map(([key, preset]) => [key, preset.short]);
|
|
12
12
|
/** Presets and a custom span, for the usage pages. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./globals.
|
|
1
|
+
import "./globals.f8ac779f0ebf888b.css.pnext-asset.js";
|
|
2
2
|
import "./responsive.ebc5f7d77b4b86a0.css.pnext-asset.js";
|
|
3
3
|
import { Zone } from "./zone.0515a688ee5ff6ca.js";
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { iAlert } from "../ui/icons.e36c72f54750663a.js";
|
|
3
3
|
import { Button } from "../ui/button.ce9e6cdb08ca86db.js";
|
|
4
|
-
import { Modal } from "../ui/modal.
|
|
4
|
+
import { Modal } from "../ui/modal.0b69c7fd9db025b9.js";
|
|
5
5
|
import { jsx as _jsx } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
6
6
|
/** Opened from a link of a workspace this account is not in: says so, and offers signing in as another account. */
|
|
7
7
|
export function ForeignLink({ link }) {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { Button } from "../ui/button.ce9e6cdb08ca86db.js";
|
|
2
2
|
import { Card, Loading } from "../ui/card.9f0d45b73bc78b4f.js";
|
|
3
|
-
import { LoadingFilter } from "../ui/filter.
|
|
3
|
+
import { LoadingFilter } from "../ui/filter.81bb9a5c60cd1089.js";
|
|
4
4
|
import { Select } from "../ui/select.2eb33e5bea28d804.js";
|
|
5
|
-
import { Search, Toolbar } from "../ui/toolbar.
|
|
5
|
+
import { Search, Toolbar } from "../ui/toolbar.8b3a460a65edf85a.js";
|
|
6
6
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
7
|
export const BLANK = "\xA0";
|
|
8
8
|
/** `Loading` inside the box its data fills, titled as that box. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import "./page-head.
|
|
1
|
+
import "./page-head.9fcc49ddf7119d75.css.pnext-asset.js";
|
|
2
2
|
import { iLeft } from "../ui/icons.e36c72f54750663a.js";
|
|
3
3
|
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
4
4
|
import { linkOf } from "../nav/to.a2c840c09bd4bf4a.js";
|
|
5
5
|
import { HEADS } from "./heads.37e35439c02fc636.js";
|
|
6
6
|
import { Icon } from "../ui/icon.0874ca2f58f7db14.js";
|
|
7
|
-
import { Sentinel } from "../ui/sentinel.
|
|
8
|
-
import { BLANK } from "./loading-card.
|
|
7
|
+
import { Sentinel } from "../ui/sentinel.0ddf515b8f09ef9f.js";
|
|
8
|
+
import { BLANK } from "./loading-card.1cea8a722c10b998.js";
|
|
9
9
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
10
10
|
export function Page({ narrow, children }) {
|
|
11
11
|
return /* @__PURE__ */ _jsx("div", {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Suspense } from "../../../../../../../node_modules/preact/compat/dist/compat.mjs";
|
|
2
|
-
import { signedOut } from "../../api/load.
|
|
2
|
+
import { signedOut } from "../../api/load.30ed8c28774a1a82.js";
|
|
3
3
|
import { Card } from "../ui/card.9f0d45b73bc78b4f.js";
|
|
4
4
|
import { reasonText } from "../../utils/format.ceeaafa10a0563f3.js";
|
|
5
5
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./task-toasts.d13d9f628e530552.css.pnext-asset.js";
|
|
3
3
|
import { useEffect, useRef, useState } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
|
-
import { serverEvents } from "../../../../client/index.
|
|
5
|
-
import { client } from "../../utils/client.
|
|
4
|
+
import { serverEvents } from "../../../../client/index.de1f1311bab4252f.js";
|
|
5
|
+
import { client } from "../../utils/client.78267fa3d7905d17.js";
|
|
6
6
|
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
7
7
|
import { usePathname, useRouter } from "../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
8
|
-
import { Status, STATUS_LABEL } from "../../app/dash/[org]/tasks/list/status.
|
|
9
|
-
import { useOrg } from "../nav/org.
|
|
8
|
+
import { Status, STATUS_LABEL } from "../../app/dash/[org]/tasks/list/status.cb704b48ce86cc7d.js";
|
|
9
|
+
import { useOrg } from "../nav/org.d3abfd4053b711ce.js";
|
|
10
10
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
11
11
|
const WATCHED = "coder:watched";
|
|
12
12
|
export const NOTIFY = "coder:notify";
|
|
@@ -71,7 +71,7 @@ function lineOf(live) {
|
|
|
71
71
|
const text = (value) => typeof value === "string" ? value.trim().split("\n")[0] : "";
|
|
72
72
|
const approval = live.approval ?? {};
|
|
73
73
|
const result = typeof live.result === "object" ? live.result?.output : live.result;
|
|
74
|
-
if (live.status === "waiting") return text(approval.
|
|
74
|
+
if (live.status === "waiting") return text(approval.reason) || "It is waiting for your approval.";
|
|
75
75
|
if (live.status === "completed") return text(result) || "It finished.";
|
|
76
76
|
return text(live.error) || (live.status === "failed" ? "It failed." : "It was stopped.");
|
|
77
77
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
3
|
-
import { Back } from "../frame/page-head.
|
|
3
|
+
import { Back } from "../frame/page-head.87b92529dbb53ceb.js";
|
|
4
4
|
import { LinkButton } from "../ui/button.ce9e6cdb08ca86db.js";
|
|
5
|
-
import { useOrg } from "./org.
|
|
5
|
+
import { useOrg } from "./org.d3abfd4053b711ce.js";
|
|
6
6
|
import { BACK_COOKIE, rememberedBack } from "./back-cookie.942c0904e944d8d6.js";
|
|
7
7
|
import { jsx as _jsx } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
8
|
/** Settings' credentials tab; it links back to this page, named `label` where its section name is not enough. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
3
3
|
import { useParams } from "../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
4
|
-
import { Back } from "../frame/page-head.
|
|
4
|
+
import { Back } from "../frame/page-head.87b92529dbb53ceb.js";
|
|
5
5
|
import { linkOf } from "./to.a2c840c09bd4bf4a.js";
|
|
6
6
|
import { jsx as _jsx } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
7
7
|
/** The organization in the address, `/dash/<org>/…`. */
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { Button } from "./button.ce9e6cdb08ca86db.js";
|
|
3
3
|
import { iTrash } from "./icons.e36c72f54750663a.js";
|
|
4
|
-
import { Modal } from "./modal.
|
|
4
|
+
import { Modal } from "./modal.0b69c7fd9db025b9.js";
|
|
5
5
|
import { jsx as _jsx } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
6
6
|
/** A modal question before a destructive step. */
|
|
7
7
|
export function ConfirmDialog({ open, title, body, confirmLabel, onConfirm, onClose, busy }) {
|
|
@@ -7,7 +7,7 @@ import { Chip } from "./badge.c0bc352791a95fd6.js";
|
|
|
7
7
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
8
8
|
import { Menu } from "./menu.ee45bace979944b6.js";
|
|
9
9
|
import { LoadingMenu, MenuItem, MenuLabel, MenuNote, MenuRadio } from "./menu-items.1d082ac4dae8f3d4.js";
|
|
10
|
-
import { Search } from "./toolbar.
|
|
10
|
+
import { Search } from "./toolbar.8b3a460a65edf85a.js";
|
|
11
11
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
12
12
|
const RECENT = "coder:filters";
|
|
13
13
|
/** From this many options a facet's full list gets a find box. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./modal.
|
|
2
|
+
import "./modal.a533234c7c831be4.css.pnext-asset.js";
|
|
3
3
|
import { toChildArray } from "../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
4
4
|
import { useEffect, useId, useRef } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
5
5
|
import { Button, IconButton } from "./button.ce9e6cdb08ca86db.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./segmented.
|
|
1
|
+
import "./segmented.c6f30b839fd27f35.css.pnext-asset.js";
|
|
2
2
|
import { Link } from "../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
3
3
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
4
4
|
/** One-click choices in a row, a radio group to the keyboard: arrows move and pick, Enter submits the form. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./sentinel.
|
|
2
|
+
import "./sentinel.d17e2bfcbeb9df31.css.pnext-asset.js";
|
|
3
3
|
import { useEffect, useRef } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
4
|
import { jsx as _jsx } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
5
5
|
/** Goes right before a page head: the head sticks under the top bar and turns compact there, its old height kept as margin so nothing under it moves. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import "./tabs.
|
|
1
|
+
import "./tabs.025b532d6cc51736.css.pnext-asset.js";
|
|
2
2
|
import { CurrentLink } from "../nav/current-link.727b350a40b9ca13.js";
|
|
3
3
|
import { linkOf } from "../nav/to.a2c840c09bd4bf4a.js";
|
|
4
4
|
import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
@@ -3,7 +3,7 @@ import { useEffect, useRef, useState } from "../../../../../../../node_modules/p
|
|
|
3
3
|
import { iSearch } from "./icons.e36c72f54750663a.js";
|
|
4
4
|
import { readQuery, writeQuery } from "../../utils/paged.0e54c3044f8ca567.js";
|
|
5
5
|
import { Icon } from "./icon.0874ca2f58f7db14.js";
|
|
6
|
-
import { Sentinel } from "./sentinel.
|
|
6
|
+
import { Sentinel } from "./sentinel.0ddf515b8f09ef9f.js";
|
|
7
7
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
8
|
/** The query string for a set of filters, empty ones left out. */
|
|
9
9
|
export const queryOf = (values) => new URLSearchParams(Object.entries(values).filter(([, value]) => value)).toString();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useState } from "../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
3
3
|
import { useRouter } from "../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
4
|
-
import { toastError } from "../comps/frame/task-toasts.
|
|
4
|
+
import { toastError } from "../comps/frame/task-toasts.44075fa7e04575e8.js";
|
|
5
5
|
import { reasonText } from "./format.ceeaafa10a0563f3.js";
|
|
6
6
|
const FAILED = "Something went wrong";
|
|
7
7
|
/** A failure no action ran, as the same toast. */
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import { useEffect, useRef } from "../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
3
|
-
import { ServerClient } from "../../../client/index.
|
|
3
|
+
import { ServerClient } from "../../../client/index.de1f1311bab4252f.js";
|
|
4
4
|
export const client = new ServerClient("", { cookie: true }, {
|
|
5
5
|
// The page's organization, so a tab open in another one never changes what this one acts on.
|
|
6
6
|
fetch(input, init) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e}from"./format-a27067f0186e78ac.js";import{$
|
|
1
|
+
import{h as e}from"./format-a27067f0186e78ac.js";import{$3k as o}from"./shared-init-c3bd249cf1eca6d1.js";import{$0a as s}from"./shared-init-c3bd249cf1eca6d1.js";import{$3h as r}from"./shared-init-6e12333f12903a62-2.js";var i="Something went wrong",b=n=>o(i,e(n));function k(n={}){let a=s(),[u,t]=r();return{pending:u,run:async(f,c,p={})=>{let{toast:m=i,refresh:g,leaves:l}={...n,...p};t(f);try{await c()}catch(d){return t(void 0),o(m,e(d)),!1}return l||t(void 0),g&&a.refresh(),!0}}}export{b as a,k as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$0C as b}from"./shared-init-c3bd249cf1eca6d1.js";import{$2k as h,$2m as m,$2n as f,$2o as n}from"./shared-init-c3bd249cf1eca6d1.js";import{$0a as e,$0b as l,$0r as a}from"./shared-init-b281027d465e004f.js";import{$3c as u,$3n as g}from"./shared-init-6e12333f12903a62-2.js";var k=(r,o)=>r.replace(/\bid="([^"]+)"/g,`id="$1${o}"`).replace(/url\(#([^)]+)\)/g,`url(#$1${o})`).replace(/href="#([^"]+)"/g,`href="#$1${o}"`);function y({brand:r}){let o=g().replace(/[^a-zA-Z0-9_-]/g,"");return r.svg?e("span",{class:"brand-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:k(r.svg,`-${o}`)}}):e("svg",{class:"brand-icon",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:{color:r.dark?`light-dark(${r.color}, ${r.dark})`:r.color},children:e("path",{d:r.icon})})}function B({id:r,info:o,state:s}){let i=o?.name??r;return e("span",{class:`pf ${s}`,children:[o?e(y,{brand:o.brand}):null,i]})}function S({platforms:r,catalog:o,agent:s}){let i=r.length>=m?f:r.length,c=({id:t,state:I},d)=>{let p=e(B,{id:t,info:o.find(L=>L.id===t),state:I});return s?e(b,{class:d,href:"/dash/[org]/agents/[slug]/platforms",params:{slug:s},children:p},t):e("span",{class:d,children:p},t)};return e("span",{class:"pfs",children:[r.slice(0,i).map(t=>c(t)),r.length>i?e(h,{label:`+${r.length-i}`,children:r.map(t=>c(t,"pf-row"))}):null]})}var R={builtin:"built-in",upload:"dashboard",repo:"repository",home:"local"};function w(){return e(n,{tone:"warn",title:"Disabled in this workspace",children:"disabled"})}function E({agent:r,fix:o}){return e(u,{children:[r.source==="repo"&&r.repo?r.sourceUrl?e(n,{class:"link-pill",href:r.sourceUrl,external:!0,title:`Repository agent, opens ${r.repo}`,children:[e(l,{d:a}),r.repo]}):e(n,{class:"link-pill",title:"Repository agent",children:[e(l,{d:a}),r.repo]}):e(n,{tone:r.source==="builtin"?"acc":void 0,title:r.local&&r.source==="repo"?"Repo agent, a folder in this repository":r.source==="home"?"Local agent, a folder on this machine":r.source!=="upload"?"Ships with Coder":r.local?"Local agent, a folder on this machine":"Dashboard agent, made and edited here",children:r.local&&r.source==="upload"?"local":R[r.source]??r.source}),r.local?r.commit&&e(n,{title:"Last commit of the agent's folder",children:r.commit.slice(0,7)}):e(n,{children:["v",r.currentVersion]}),r.settings?.disabled?e(w,{}):null,r.problems?.length?e(n,{tone:"warn",title:r.problems.join(`
|
|
2
2
|
`),...o,children:"not running"}):null]})}export{y as a,S as b,w as c,E as d};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as re}from"./agent-pills-
|
|
1
|
+
"use client";import{a as re}from"./agent-pills-4d3c6a2aa9eb1522.js";import{a as ce}from"./agent-toggle-d7d27123f2070f18.js";import{b as te,c as se,f as oe,h as k,i as ae,j as B,k as $,l as ie}from"./model-options-8d2170eebe0d061d.js";import{b as j,c as le}from"./types-3eca2c7f47c46054.js";import{a as ne}from"./confirm-a78147b6ecef3847.js";import{a as y}from"./field-bb8191aa02d07282.js";import{b as x}from"./action-a76e495fb39a73d3.js";import"./format-a27067f0186e78ac.js";import"./shared-init-c3bd249cf1eca6d1.js";import{$0B as ee,$0a as Y,$0t as Z,$0x as b}from"./shared-init-c3bd249cf1eca6d1.js";import"./shared-init-c3bd249cf1eca6d1.js";import"./wular-pnext-6e12333f12903a62-0.js";import"./shared-init-c3bd249cf1eca6d1.js";import{$1c as H}from"./shared-init-b281027d465e004f.js";import{$0L as q,$0a as e,$0e as M}from"./shared-init-b281027d465e004f.js";import"./shared-init-6e12333f12903a62-2.js";import"./shared-init-6e12333f12903a62-2.js";import{$3c as L,$3h as d,$3k as W,$3l as X}from"./shared-init-6e12333f12903a62-2.js";var de=[["read","Read-only"],["write","Read-write"]];function V({name:t,label:w,hint:S,value:c,options:m,blank:A}){let O=c&&!m.some(([p])=>p===c)?[...m,[c,c]]:m;return e(y,{label:w,hint:S,group:!0,children:e(b,{name:t,label:w,defaultValue:c??"",options:[["",A],...O]})})}function xe({agent:t,catalog:w,models:S,defaults:c,runners:m,connections:A}){let O=Y(),p=ee(),[u,U]=d("run"),_=x({refresh:!0}),G=x({leaves:!0}),me=!!_.pending,[Q,z]=d(""),[T,pe]=d(""),[C,ue]=d(),[fe,D]=d(!1),J=X(null),a=t.settings??{},[P,ge]=d(B(a.engine,a.model)),[F,he]=d(a.connections?"some":""),I=t.definition?.integrations??{},E=Object.keys(I).sort(),f=t.definition,g=f?.engine,K=t.source!=="builtin";W(()=>{let n=T.trim().toLowerCase(),i=[];J.current.querySelectorAll(".vpanel").forEach(r=>{let l=!1;r.querySelectorAll(".field").forEach(o=>{let s=[...o.querySelectorAll("input")].map(R=>R.value).join(" "),h=o.closest(".vplatform")?.querySelector("h3")?.textContent??"",v=!n||`${h} ${o.textContent} ${s}`.toLowerCase().includes(n);o.hidden=!v,l||=v}),r.querySelectorAll(".vplatform").forEach(o=>{o.hidden=!o.querySelector(".field:not([hidden])")}),l&&i.push(r.dataset.panel)}),ue(n?i:void 0),n&&i.length&&!i.includes(u)&&U(i[0])},[T]);let ve=()=>void G.run("delete",async()=>{await H.agents.remove(t.id),O.push("/dash/[org]/agents",{params:{org:p}})}).then(n=>n||D(!1)),N=(n,i)=>e("button",{type:"button","aria-current":u===n?"true":void 0,class:C&&!C.includes(n)?"miss":void 0,onClick:()=>U(n),children:i});return e("form",{ref:J,class:"vsettings card frame",onSubmit:async n=>{n.preventDefault();let i=new FormData(n.currentTarget),r=s=>String(i.get(s)??"").trim(),l={};for(let s of["effort","permissions","access","runner"])r(s)&&(l[s]=r(s));let o=$(P);o.engine&&(l.engine=o.engine),o.model&&(l.model=o.model),F&&(l.connections=i.getAll("connection").map(String));for(let s of E){let h={},v=j(I[s]?.events),R=i.getAll(`event:${s}`).map(String);v.length&&R.length<v.length&&(h.allowedEvents=R),Object.keys(h).length&&((l.integrations??={})[s]=h)}t.settings?.disabled&&(l.disabled=!0),z(""),await _.run("save",()=>H.agents.settings(t.id,l))&&z("Saved. New tasks use these settings.")},children:[e("nav",{class:"tabs vertical","aria-label":"Settings sections",children:[e("p",{class:"tabs-label",children:"Runtime"}),N("run","How it runs"),E.length?N("platforms","Platforms"):null,e("p",{class:"tabs-label",children:"Agent"}),N("manage","Manage")]}),e("div",{class:"vbody",children:[e("div",{class:"vsearch",children:[e(Z,{value:T,label:"Search settings",onInput:pe}),C&&!C.length?e("span",{class:"muted",children:"No setting matches."}):null]}),e("section",{class:"vpanel","data-panel":"run",hidden:u!=="run",children:[e("h2",{children:"How it runs"}),e("p",{class:"muted",children:"Anything left on Default follows the agent's own definition."}),e("div",{class:"fields",children:[e(y,{label:"Model",hint:"picking a model picks its engine",group:!0,children:e(b,{label:"Model",value:P,options:[...ae(S,k(g?[oe[g]??g,f?.model??c.engines[g]?.model].filter(Boolean).join(" \xB7 "):"first available engine")),...!a.engine&&a.model?[[B(void 0,a.model),a.model]]:[]],headings:ie(S),onChange:ge})}),e(V,{name:"effort",label:"Effort",value:a.effort,options:te,blank:k(f?.effort??c.engines[$(P).engine??g]?.effort)}),e(V,{name:"permissions",label:"Permissions",hint:"what the runner may change in the checkout",value:a.permissions,options:se,blank:k(f?.permissions??"auto")}),e(V,{name:"access",label:"Access",hint:"what it may do on its platforms and connections",value:a.access,options:f?.access==="read"?de.slice(0,1):de,blank:k(f?.access==="read"?"Read-only":"Read-write")}),m.length>1?e(y,{label:"Runs on",group:!0,children:e(b,{name:"runner",label:"Runs on",defaultValue:a.runner??"",options:m})}):null,e(y,{label:"Connections",hint:"which workspace connections its tasks can use",group:!0,children:e(b,{label:"Connections",value:F,options:[["","Every workspace connection"],["some","Only the ones picked"]],onChange:he})}),F?e("div",{class:"field picked",children:[e("span",{children:["Picked connections ",e("small",{children:"tasks can use only these"})]}),A.length?e("div",{class:"checks",children:A.map(n=>e("label",{class:"check",children:[e("input",{type:"checkbox",name:"connection",value:n.id,defaultChecked:a.connections?.includes(n.id)}),n.name]},n.id))}):e("span",{class:"muted",children:["This workspace has no connections yet."," ",e(M,{class:"link",href:"/dash/[org]/settings/[tab]",params:{org:p,tab:"connections"},children:"Add one in Settings"})]})]}):null]})]}),E.length?e("section",{class:"vpanel","data-panel":"platforms",hidden:u!=="platforms",children:[e("h2",{children:"Platforms"}),e("p",{class:"muted",children:["Turn events off for this workspace."," ",le(t)?e(L,{children:["To add an event or a platform,"," ",e(M,{href:"/dash/[org]/agents/[slug]/edit",params:{org:p,slug:t.id},search:{section:"platforms"},children:["edit ",t.name]}),"."]}):t.source==="repo"?e(L,{children:[t.name," comes from ",t.repo??"a repository","; add an event or a platform in its"," ",t.sourceUrl?e("a",{href:t.sourceUrl,target:"_blank",rel:"noreferrer",children:"agent.json"}):"agent.json"," ","there."]}):e(L,{children:[t.name," is built in, so its events and platforms ship with Coder. To listen anywhere else,"," ",e(M,{href:"/dash/[org]/agents/new",params:{org:p},children:"create your own agent"}),"."]})]}),E.map(n=>{let i=a.integrations?.[n]??{},r=j(I[n]?.events),l=i.allowedEvents,o=w.find(s=>s.id===n);return e("div",{class:"vplatform",children:[e("h3",{children:[o?e(re,{brand:o.brand}):null,o?.name??n]}),r.length?e("div",{class:"field",children:[e("span",{children:["Events"," ",e("small",{children:"the definition's events; turn off any it should ignore here"})]}),e("div",{class:"checks",children:r.map(s=>e("label",{class:"check",children:[e("input",{type:"checkbox",name:`event:${n}`,value:s,defaultChecked:!l||l.includes(s)}),s]},s))})]}):null]},n)})]}):null,e("section",{class:"vpanel","data-panel":"manage",hidden:u!=="manage",children:[e("h2",{children:"Manage"}),e("div",{class:"field row-action",children:[e("span",{children:["Disable agent",e("small",{children:"stops its events and new tasks in this workspace; its apps and tasks stay"})]}),e(ce,{agent:t})]}),e("div",{class:"field row-action",children:[e("span",{children:["Delete agent",e("small",{children:K?"removes it and every version; its tasks and platform apps stay":`${t.name} is built in and cannot be deleted; disable it above instead`})]}),e(q,{variant:"secondary",danger:!0,disabled:!K,onClick:()=>D(!0),children:"Delete agent"})]})]}),u==="manage"?null:e("div",{class:"form-actions save",children:[Q?e("span",{class:"flash",role:"status",children:Q}):null,e(q,{type:"submit",loading:me,children:"Save"})]})]}),fe?e(ne,{open:!0,title:`Delete ${t.name}?`,body:"It stops answering on every platform. This cannot be undone.",confirmLabel:"Delete agent",busy:!!G.pending,onClose:()=>D(!1),onConfirm:ve}):null]})}export{xe as AgentSettingsForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b}from"./action-
|
|
1
|
+
import{b}from"./action-a76e495fb39a73d3.js";import{$1c as r}from"./shared-init-b281027d465e004f.js";import{$0L as c,$0a as s}from"./shared-init-b281027d465e004f.js";import{$3h as g}from"./shared-init-6e12333f12903a62-2.js";function A({agent:o,link:u}){let i=b({refresh:!0}),e=!!i.pending,t=!!o.settings?.disabled,[l,m]=g({saved:t,disabled:t}),n=l.saved===t?l.disabled:t,a=()=>void i.run("toggle",async()=>{await r.agents.settings(o.id,{...o.settings,disabled:!n}),m({saved:t,disabled:!n})}),d=n?"Enable":"Disable";return u?s("button",{type:"button",class:"link",disabled:e,"aria-busy":e,onClick:a,children:d}):s(c,{variant:"outline",loading:e,onClick:a,children:d})}export{A as a};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use client";import{a as P,b as R,d as q}from"./agent-pills-
|
|
1
|
+
"use client";import{a as P,b as R,d as q}from"./agent-pills-4d3c6a2aa9eb1522.js";import{a as L}from"./tail-f8804b80cf32f8d0.js";import{c as N}from"./types-3eca2c7f47c46054.js";import{g}from"./format-a27067f0186e78ac.js";import{$0B as a,$0r as w,$0s as C,$0t as I,$0u as v,$0v as k}from"./shared-init-c3bd249cf1eca6d1.js";import{$2c as b,$2e as A}from"./shared-init-c3bd249cf1eca6d1.js";import"./wular-pnext-6e12333f12903a62-0.js";import{$1c as f}from"./shared-init-b281027d465e004f.js";import{$0M as y,$0a as e,$0e as u,$0f as h}from"./shared-init-b281027d465e004f.js";import"./shared-init-6e12333f12903a62-2.js";import"./shared-init-6e12333f12903a62-2.js";import{$3c as c}from"./shared-init-6e12333f12903a62-2.js";function x(){return e(y,{href:"/dash/[org]/agents/new",params:{org:a()},leftIcon:h,children:"New agent"})}function $({agent:t,catalog:i}){let n=a(),o=`/dash/${n}/agents/${encodeURIComponent(t.id)}`,l=N(t)?{href:`${o}/edit?section=platforms`}:t.source==="repo"&&t.sourceUrl?{href:t.sourceUrl,external:!0}:{href:`${o}/settings`};return e("li",{class:"agent-card",children:[e("div",{class:"bc-head",children:[e("span",{class:"mark",children:g(t.name)}),e("div",{class:"grow",children:[e("h3",{children:e(u,{class:"cover",href:"/dash/[org]/agents/[slug]",params:{org:n,slug:t.id},children:t.name})}),e("span",{class:"pills",children:e(q,{agent:t,fix:l})})]})]}),e("div",{class:"lead-clamp",children:e("span",{children:t.problems?.length?t.problems.join(" "):t.description??"No description yet."})}),t.platforms.length?e(R,{platforms:t.platforms,catalog:i,agent:t.id}):e("span",{class:"pfs muted",children:"No handles yet"})]})}var O=[["","All agents"],["dashboard","Dashboard agents"],["repository","Repository agents"],["builtin","Built-in"]];function te({first:t,limit:i,filters:n,catalog:o,head:l,children:B}){let{values:m,set:p,query:K}=C(n),s=A({name:"agents",fetchPage:r=>f.agents.list({cursor:r,limit:i,...m}),query:K,first:t,initial:w(n)});return e(c,{children:[e(v,{head:l,action:e(x,{}),children:[e(I,{value:m.q,label:"Search agents",onInput:r=>p("q",r,250)}),e(k,{name:"agents",facets:[{key:"platform",label:"Platform",options:o.map(r=>[r.id,r.name]),icon:r=>{let d=o.find(S=>S.id===r);return d?e(P,{brand:d.brand}):void 0}},{key:"type",label:"Source",options:O}],values:m,onChange:p})]}),B,s.rows.length?e("ul",{class:"agent-grid","aria-busy":s.stale,children:s.rows.map(r=>e($,{agent:r,catalog:o},r.id))}):s.stale?null:e(b,{title:"No agents match",children:"Try another search or filter."}),e(L,{noun:"agents",...s})]})}export{te as AgentsGrid,O as KINDS};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$0B as a,$0z as c}from"./shared-init-c3bd249cf1eca6d1.js";import{$0M as i,$0a as r}from"./shared-init-b281027d465e004f.js";import{$3j as m}from"./shared-init-6e12333f12903a62-2.js";var n="coder-back";function s(o){let t=new RegExp(`(?:^|; )${n}=([^;]*)`).exec(o)?.[1];try{let e=t&&JSON.parse(decodeURIComponent(t));return e&&typeof e.path=="string"&&e.path.startsWith("/dash/")?e:null}catch{return null}}function x({label:o,children:t,...e}){let p=()=>{let l=encodeURIComponent(JSON.stringify({path:location.pathname,label:o}));document.cookie=`${n}=${l}; path=/dash; max-age=600; samesite=lax`};return r(i,{...e,href:"/dash/[org]/settings/[tab]",params:{org:a(),tab:"credentials"},onClick:p,children:t})}function B({initial:o}){let t=a(),e=typeof document>"u"?o:s(document.cookie);return m(()=>()=>void setTimeout(()=>{location.pathname.split("/")[3]!=="settings"&&(document.cookie=`${n}=; path=/dash; max-age=0`)}),[]),e?r(c,{href:"/dash/[org]",params:{org:t},label:"Back",back:e.path,named:e.label}):null}export{x as a,B as b};
|