@wular/coder 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{actions-CkMAM1Km.js → actions-DO8MvHwc.js} +2 -2
- package/dist/{agent-Bi5nbUhA.js → agent-Cgala63h.js} +1 -1
- package/dist/{app-server-BTpa5GBV.js → app-server-dnlLhhZb.js} +1 -1
- package/dist/{approvals-CRwkc9vB.js → approvals-C8XV7CK2.js} +1 -1
- package/dist/apps-BORri-28.js +18 -0
- package/dist/async-BS9tyhva.js +3 -0
- package/dist/{auth-oCvlHitk.js → auth-C16ylySv.js} +1 -1
- package/dist/builtin/coder/system.md +6 -3
- package/dist/{chat-4AiZEqKh.js → chat-czruXAt3.js} +1 -1
- package/dist/cli.js +3 -3
- package/dist/{cmd-Cu3OquA_.js → cmd-C1gHyVG7.js} +34 -34
- package/dist/{config-D_RuO6gX.js → config-_32PHl9g.js} +1 -1
- package/dist/{connection-BXjn7gCC.js → connection-CgA5_NJ7.js} +1 -1
- package/dist/{connections-Cswv7r8Z.js → connections-B90TemYf.js} +1 -1
- package/dist/{context-CFrDYenS.js → context-C1XBbfEL.js} +1 -1
- package/dist/dash/standalone/server/build-index.json +1 -1
- package/dist/dash/standalone/server/manifest.json +1391 -1391
- package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.54c45900f2153d34.js → index.91e126d7a389d4bd.js} +0 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.252f972b42c690e2.js → load.858c062c7891a2c1.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.11efd0e175db9053.js → page.9375ab741dc9791e.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.59ae138dc182d7c3.js → notify.c36570a56d279ce2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.e9386951cedea737.js → page.13fdd9cc55ad3a52.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{sign-out.713d3ec10951fde5.js → sign-out.38a7f39cddc670f7.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.f989d6f2d9ece6e4.js → agents-grid.2385ffa8fdad08d6.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.0f88720e52db99a2.js → page.5ca6921e50484f8c.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.8d2f0997462fc958.js → layout.afc4a8a5a8360975.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.bc93891522c8120d.js → page.ba65063a1aa99a62.js} +7 -7
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.cf5cf9afe38ab0e4.js → page.03c5e72b0fe50ba9.js} +11 -11
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.c44c7df7841719f2.js → platform-actions.7c8c75bd0c05df4a.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-step.6e90cbfe308f28a0.js → platform-step.d6a980d1181dc940.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.61de585104c2be10.js → agent-settings-form.b5299f5130a4e8af.js} +16 -17
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.4d06f759984a63b3.js → page.fad77cea17947d47.js} +8 -9
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.ea2925eab1d2e594.js → loading.4120e6979eaed441.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.fb069bf82b727d27.js → page.474b3524d5ea53b7.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.0a472a0e269b8c01.js → page.7868a07efcaa26f4.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.7ef7dfd5d8f5de43.js → versions-list.ba93a53773cab8a8.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{loading.007326a04f05d46c.js → loading.6e53829bd1f3021d.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.a26aa7bc6ab655f0.js → page.5798ede8ba8ace97.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/platforms/[app]/{app-cards.361918fe58349aa1.js → app-cards.55778a4b3177846d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/platforms/[app]/{page.3f60cf67517d0d31.js → page.ce391cad0d78795f.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.ffbf9a8b8b2fbde7.js → agent-toggle.0cec822c6099f058.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.0ae015a4fbe6321e.js → hero.7151c467e7ecf6a5.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{connect-repositories.9abe365f0098d358.js → connect-repositories.4e121d31ed0cfe02.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.6548f8f757578f90.js → editor.f314d92af0bb33b0.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.577b1d84c7ab84e1.js → import-picker.11028d5329ad537b.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.2b326d00ccef5544.js → page.1476d31e4554e88b.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.45a09107b19f0a7e.js → layout.150d950d191db477.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{operator-apps.f8d679f2d06b0ebc.js → operator-apps.3e72de86b86a7338.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.5aa3ddc669366703.js → page.6a4be3b1a473ff8c.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.5a5188f0fc75dcd2.js → page.262ed73437c17872.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 → advanced-list.7180570379e2625c.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connection-add.353ec01fbb814f78.js → connection-add.632b1847c16ecd42.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.cf4061ae909272c3.js → connections-list.4378ae707b2092ed.js} +5 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.fc4cff0289267551.js → credentials-list.e47897acb6867df8.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.db01de2581ac65f3.js → credentials.6bd06f96afbe7329.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.e7d6a422f6a869ea.js → list.38e70272eeb98cd0.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.acb92b39cab1d11c.js → models-list.a08cd37d0f7ff86c.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.95fe939e36e5be55.js → page.f096b5a9ac419326.js} +13 -13
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.5764eac3307d67cc.js → runners-list.0df1f9329df1b67d.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.d316bb157f747f6c.js → secrets-list.6d2f56fa7d6fcab0.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.4eb70f2de8674f93.js → layout.0fd865c865e5bab4.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{model-options.dc630cb6e2cbf83a.js → model-options.0d6077fe68db3af9.js} +2 -5
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{model-pick.a143e77f5ed5f9d3.js → model-pick.695538b2edf9dd15.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{page.70cad0e981c33fa5.js → page.c57b81c2197cce0f.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.18bd2b92cd23b73f.js → create-link.60aadbe43ea1e39c.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-toast.95f7be49430248eb.js → outcome-toast.e2b9ef0344b1a1a2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.e39ee9236664d043.js → page.c456ad99c8a9f875.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.441e82ab00344fb2.js → activity.2ec05d78d609b7b2.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.24e121ea6eb578ba.js → page.578be2f6c89fcba0.js} +6 -6
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-actions.4a4052a38db4bad3.js → task-actions.d131453dd2a423c3.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.0cd3ec2655f44cc7.js → task-view.3d72a4ecd2b3826e.js} +7 -53
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer-data.73225456d60d63e3.js → composer-data.c16854be11a561e4.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.ee326fbf5e526fb1.js → composer.97be3e67214889c1.js} +24 -82
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{pending-approvals.7607998094780fdd.js → pending-approvals.9175908da02960e1.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.e486cbd16ea3e963.js → tasks-list.028798c79227a366.js} +8 -8
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.01510523d1556d59.js → tasks-section.9a9d13057b326f25.js} +4 -4
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.ede64f82388f9480.js → page.045c6db0c56975b2.js} +3 -3
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.0499098badd3f5f8.js → page.938d29ff7edb678d.js} +2 -2
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.e3800e736f832124.js → stream.2cdb8eabd8f6df70.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.3b7eeee29fc327de.js → task-toasts.8733901ca0e4c246.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.f22057e7dfac40fe.js → action.56cea462eb725c39.js} +1 -1
- package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.c8d7efefb6194d7d.js → client.685154f230716834.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{advanced-list-850a950afe4f6996.js → advanced-list-b75a9c2bd11026de.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agent-pills-9f6fa120182db948.js → agent-pills-54564413a57d7fa7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-55d294dad2ce5a0d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{agent-toggle-521136f20a71400d.js → agent-toggle-b5dcc4ea6292fb3d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{agents-grid-bcd13cd7a46224a6.js → agents-grid-69461c53abbba433.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{back-2d67134b122334f4.js → back-ba5e4340a9f8bbd2.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{chain-hint-53675e299a865420.js → chain-hint-491eb09a20a15702.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{combo-cb2c62fe580a8903.js → combo-6df61e8a1cc31037.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/composer-198b844da57b82a3.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/composer-b26a3332a1243461.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{composer-data-890f71bade4f0616.js → composer-data-b05f3d93fdc472d7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{confirm-d6b2c5b1deccd1e8.js → confirm-14d018653fbe50fc.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connect-repositories-226bf70aa81c29d8.js → connect-repositories-5118edc019fc7890.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{connections-list-a33d6637e2d52fcf.js → connections-list-5412dad7e0def52f.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{copy-294c6052b3b69424.js → copy-04781f9af4e10f06.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-0651addf1461f901.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{credentials-list-90fc1c6d202e1461.js → credentials-list-e64c973aee5602d3.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{custom-range-efa1b6a71ba84597.js → custom-range-b6919bab9846ebf7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{editor-53a3e1a893644fff.js → editor-68e9ccd1764fc512.js} +3 -3
- package/dist/dash/standalone/static/assets/chunks/{field-4d374d5ed3f43d7e.js → field-adcb6e6a5f9b7131.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-0022dd3bdd57c13f.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{instructions-d3dc01b2f90820db.js → instructions-7b274685ceb26457.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{list-16247e39898cd20e.js → list-662f042656857c82.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/model-options-5e07b3318d69d218.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{models-list-6d93523660503dfb.js → models-list-ae1e2eff30d21824.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-546fe090efc129c2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-755fc581cbc2836e.js → outcome-dialog-fd86ded4c44c2de7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-toast-c00becdb638cd9a8.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/platform-actions-2be223e68e648134.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{platform-actions-08e9b3816dcd62b1.js → platform-actions-f3979ab69a6ceb53.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{platform-step-5881a8be1e761e00.js → platform-step-5454b6c0a19caefd.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/platform-step-9a52703f4c4f6a31.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{runners-list-dd759d408c643a29.js → runners-list-20d42f19fb4bec8a.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{runtime-9b28886f3cbe0ed3-1.js → runtime-3fcac605fffcc273-1.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{secrets-list-be1f634a1b077baa.js → secrets-list-89f89ee70edb3856.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{segmented-f646bfa8aa0aa449.js → segmented-66a8c77c6294fec3.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-3fcac605fffcc273-2.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{shared-init-953965859f7bf6b9.js → shared-init-96225b8c7758de9d.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-96cde32cd50254c0.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/shared-init-abd7653140f37a0c.js +9 -0
- package/dist/dash/standalone/static/assets/chunks/side-toggle-8a410cc6d6bd9b1d.js +1 -0
- package/dist/dash/standalone/static/assets/chunks/{tail-d13c4cc0cf11ffd1.js → tail-40f16e09eade7eee.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{task-423e6a3f2527f534.js → task-396d849e58e50d59.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{task-actions-5917357eac6504ca.js → task-actions-0b3054dc0f8d17c0.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-9e026dc5da58af5b.js +3 -0
- package/dist/dash/standalone/static/assets/chunks/{tasks-list-2c5ce592e00fda45.js → tasks-list-04c6568d7f7237b7.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{versions-list-177ae397ad64dcea.js → versions-list-ceb756236e69b761.js} +1 -1
- package/dist/dash/standalone/static/assets/chunks/{wular-pnext-9b28886f3cbe0ed3-0.js → wular-pnext-3fcac605fffcc273-0.js} +1 -1
- package/dist/dash/standalone/static/assets/{dash-param-org-agents-param-slug-00243b34eb094b95.css → dash-param-org-agents-param-slug-dd4ac319a0d62432.css} +1 -1
- package/dist/dash/standalone/static/assets/{dash-param-org-agents-param-slug-settings-9f8faa8f7d714699.css → dash-param-org-agents-param-slug-platforms-9d2e1439f3f7e81b.css} +1 -1
- package/dist/dash/standalone/static/assets/{dash-param-org-agents-param-slug-usage-0e037c66e3977f33.css → dash-param-org-agents-param-slug-settings-f21d4fcd3948139b.css} +1 -1
- package/dist/dash/standalone/static/assets/{dash-param-org-agents-param-slug-tasks-129adcdc293ceac8.css → dash-param-org-agents-param-slug-tasks-c8d6aa06f6e75f4c.css} +1 -1
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-9cc128ba8af6ef62.css +1 -0
- package/dist/dash/standalone/static/assets/{dash-param-org-tasks-8a44e171984d32a1.css → dash-param-org-tasks-be3cb3d64573f3d9.css} +1 -1
- package/dist/dash/standalone/static/assets/{dash-param-org-tasks-param-id-b9d3a7a1bd1dd666.css → dash-param-org-tasks-param-id-c20a0537bc82620d.css} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-07b41bfab64b61c0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-0d388d56250f9f46.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-1443e45181b60bb0.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-27207e4f43f9a21b.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-7ecbd7a0cbe4e231.js → pnext-client-435db60553fa3a67.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-523dd4071aa294ba.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-5f6bda3919f68382.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-684fd8ad16563ed3.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6b952cdda9a1eb2b.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-6fe9e98f7dd8dcbf.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-730c2c507a159f9e.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-7c46573e45b67166.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-83a865c3d75705bd.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-907d1db4fb398a1d.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-9baf701f3e641d09.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-a57705e4e1047a9e.js +1 -0
- package/dist/dash/standalone/static/assets/{pnext-client-ed31510d4615a5a5.js → pnext-client-b1af82c6f0db0033.js} +1 -1
- package/dist/dash/standalone/static/assets/pnext-client-cede3bd7b2735942.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-d9a3996f22b6816b.js +1 -0
- package/dist/dash/standalone/static/assets/pnext-client-f95364a0073ca4ce.js +1 -0
- package/dist/{definition-4on4SG5J.js → definition-D0OpQfGX.js} +1 -1
- package/dist/{discover-DvzAbQvU.js → discover-BfYHHJN_.js} +1 -1
- package/dist/{dispatch-BaW2X6Sc.js → dispatch-BkoIU4GU.js} +2 -2
- package/dist/{docs-CbgaMPvq.js → docs-CxklYa3P.js} +1 -1
- package/dist/{drive-Tk6JvQK5.js → drive-B7SBFfcb.js} +1 -1
- package/dist/env-BwFCHakK.js +1 -0
- package/dist/{exec-CAaYFJD1.js → exec-D9jF2F-H.js} +2 -2
- package/dist/{executor-Chc0zawh.js → executor-DBW7R7Tf.js} +6 -6
- package/dist/flow/builtin/review/index.d.ts +2 -2
- package/dist/flow/builtin/review/index.js +10 -15
- package/dist/flow/index.d.ts +2 -2
- package/dist/flow/index.js +1 -1
- package/dist/{hook-COWDSO4a.js → hook-DN__zYOG.js} +1 -1
- package/dist/{index-ezhbF5wC.d.ts → index-CTAQrCRU.d.ts} +71 -66
- package/dist/integrations-DSZSa8Rc.js +9 -0
- package/dist/lib/broker.js +1 -1
- package/dist/{load-PqaDHiHX.js → load-BtIDghgd.js} +2 -2
- package/dist/{local-BzZuOwgI.js → local-BzMvgiwL.js} +1 -1
- package/dist/{local-BMGcCk8N.js → local-GIxwz_Or.js} +1 -1
- package/dist/{login-BDKTNynK.js → login-LlZrIlxb.js} +1 -1
- package/dist/maintenance-DyiyHI8S.js +1 -0
- package/dist/{mcp-BGam3G_B.js → mcp-Caq72REF.js} +1 -1
- package/dist/{mcp-BNz_l5TV2.js → mcp-CrtKQoVi.js} +1 -1
- package/dist/{mcp-BGx48pyR.js → mcp-cEIva8Pd.js} +6 -4
- package/dist/{models-D1NXi6ni.js → models-BVxs3I8o.js} +1 -1
- package/dist/{permission-BkYxjiFR.js → permission-RSZM3DUk.js} +1 -1
- package/dist/post-DLenID75.js +11 -0
- package/dist/{refresh-yfEi5SQs.js → refresh-CWEpTAkD.js} +1 -1
- package/dist/{remote-rArUa01V.js → remote-BDMuKaON.js} +1 -1
- package/dist/{remote-BbXx6S9P.js → remote-CY-qYX2C.js} +1 -1
- package/dist/{runner-DG9jrX5H.js → runner-CKMOh5Q3.js} +1 -1
- package/dist/runner.json +1 -1
- package/dist/runner.tgz +0 -0
- package/dist/schema.js +1 -1
- package/dist/sdk.d.ts +15 -45
- package/dist/sdk.js +1 -1
- package/dist/serve-D23JqDip.js +12 -0
- package/dist/{serve-B-5rDiZm.js → serve-YlU04KO7.js} +1 -1
- package/dist/{session-Dtje9y-r.js → session-D7eeJIaH.js} +1 -1
- package/dist/{sessions-DIz9fyRN.js → sessions-BGUfSe8L.js} +1 -1
- package/dist/{shared--aE4olIO.js → shared-BzNReirj.js} +1 -1
- package/dist/{sign-in-wWkyaq5X.js → sign-in-Dr6sU7vz.js} +2 -2
- package/dist/{state-Br-Fuaxg.js → state-CxAUec80.js} +1 -1
- package/dist/store-BrnWdtRw.js +349 -0
- package/dist/{task-CFt85vTy.js → task-CyqtCXo3.js} +1 -1
- package/dist/task-DN4assR8.js +7 -0
- package/dist/{tool-search-BkdgVolu.js → tool-search-C9Ty3hhL.js} +1 -1
- package/dist/{tools-DNgEptor.js → tools-Ck-ZWtmB.js} +1 -1
- package/dist/{tools-oQvFAnh5.js → tools-DVtBtED6.js} +1 -1
- package/dist/{tools-search-D1zArRyJ.js → tools-search-BNDea9vZ.js} +1 -1
- package/dist/{turn-Cc-v-eSy.js → turn-eI4iRPsq.js} +1 -1
- package/dist/{update-check-UyRob3yy.js → update-check-Bap3dwaj.js} +1 -1
- package/dist/{views-3TxH367C.js → views-Bxm_5J6T.js} +1 -1
- package/dist/{worker-BMuKKiIa.js → worker-DJANNSCT.js} +1 -1
- package/dist/worker-DeuC38Vp.js +7 -0
- package/docs/agents/coder.md +1 -1
- package/docs/cli/index.md +5 -3
- package/docs/connections.md +1 -1
- package/docs/flows.md +1 -1
- package/docs/review.md +36 -8
- package/docs/self-host.md +2 -1
- package/package.json +1 -1
- package/plugins/claude/.claude-plugin/plugin.json +1 -1
- package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
- package/dist/apps-B6mUToTa.js +0 -18
- package/dist/async-CNhQ4wyZ.js +0 -3
- package/dist/dash/standalone/static/assets/chunks/agent-settings-form-a8ee12513a02b1c5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-4a46a458495ce3ba.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/composer-92553de43276510b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/create-link-b2480a7601967e94.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/instructions-734d21dfb8f6393e.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/model-options-d29e934a3de20ab4.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-dialog-77e13c848000a3dc.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/outcome-toast-9d5e9713c23882f5.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-actions-832904f5694ef902.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/platform-step-29469fd4eaddc42a.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-926144b364908b3c.js +0 -9
- package/dist/dash/standalone/static/assets/chunks/shared-init-9b28886f3cbe0ed3-2.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/shared-init-b42d2c06c25d1e2b.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/side-toggle-8c21d39a1e284887.js +0 -1
- package/dist/dash/standalone/static/assets/chunks/task-view-c6ee43d2ddb6db90.js +0 -3
- package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-25ae07e0b3f5b252.css +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-095026242a079175.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-1dfeb8c3ef155f87.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-2358423351524403.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-28a6557216627768.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-31a4ee73945fee19.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-3dfdc76bb8712b82.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-4355ac87961d78c1.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-43c7a0046572e0c9.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-53dc7db68d67e0b1.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-5835cb35488bdf7f.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-638b390bc23ab1ae.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-67f832c6c51a66cd.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-6fc99f0abe77c2ea.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-7d99965f28ac7604.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-8250bd3b86d038a3.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-bfd06805a43c6dee.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-ce2943f17e9d9ac3.js +0 -1
- package/dist/dash/standalone/static/assets/pnext-client-f0496bf51e161ddd.js +0 -1
- package/dist/env-_AxrvBXP.js +0 -1
- package/dist/integrations-BVmsk64f.js +0 -9
- package/dist/maintenance-d43Ml540.js +0 -1
- package/dist/serve-CvnrGAj7.js +0 -12
- package/dist/store-CzQLgCzt.js +0 -352
- package/dist/task-N0qhnKpK.js +0 -7
- package/dist/worker-CIHY9L42.js +0 -7
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{types.5bf5a41cedb54154.js → types.9d22123d6296f5af.js} +0 -0
- /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.aae9fa481b9015d1.css.pnext-asset.js → task-view.440367ae07204ee7.css.pnext-asset.js} +0 -0
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
import "./task-view.
|
|
1
|
+
import "./task-view.440367ae07204ee7.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
|
-
import { ClientError } from "../../../../../../../client/index.
|
|
5
|
-
import { load } from "../../../../../api/load.
|
|
4
|
+
import { ClientError } from "../../../../../../../client/index.91e126d7a389d4bd.js";
|
|
5
|
+
import { load } from "../../../../../api/load.858c062c7891a2c1.js";
|
|
6
6
|
import { Page } from "../../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
7
|
-
import { Settle } from "../../../../../comps/frame/stream.
|
|
7
|
+
import { Settle } from "../../../../../comps/frame/stream.2cdb8eabd8f6df70.js";
|
|
8
8
|
import { TaskMissing } from "./task-missing.33ec27a4a5eafefe.js";
|
|
9
9
|
import { jsx as _jsx } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
10
10
|
// Hydrates with the page: the reply box is focused and the activity follows the run at once.
|
|
11
|
-
const TaskView = dynamic(() => import("./task-view.
|
|
11
|
+
const TaskView = dynamic(() => import("./task-view.3d72a4ecd2b3826e.js").then((m) => m.TaskView), undefined, {
|
|
12
12
|
"file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/tasks/[id]/task-view.tsx", import.meta.url).pathname),
|
|
13
13
|
"exportName": "TaskView",
|
|
14
|
-
"id": "c-
|
|
14
|
+
"id": "c-67cea92de5"
|
|
15
15
|
});
|
|
16
16
|
export default async function TaskPage({ request, params }) {
|
|
17
17
|
if (!request) return null;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./task-view.
|
|
2
|
+
import "./task-view.440367ae07204ee7.css.pnext-asset.js";
|
|
3
3
|
import { useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
4
|
import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
5
|
-
import { client } from "../../../../../utils/client.
|
|
6
|
-
import { useAction } from "../../../../../utils/action.
|
|
5
|
+
import { client } from "../../../../../utils/client.685154f230716834.js";
|
|
6
|
+
import { useAction } from "../../../../../utils/action.56cea462eb725c39.js";
|
|
7
7
|
import { useRouter, useSearchParams } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
8
8
|
import { useOrg } from "../../../../../comps/nav/org.853d173b55368728.js";
|
|
9
9
|
import { isAdmin } from "../../../../../api/types.79f9092cdb5a00d1.js";
|
|
@@ -17,7 +17,7 @@ import { Segmented } from "../../../../../comps/ui/segmented.633abe26ff760e37.js
|
|
|
17
17
|
import { MenuItem } from "../../../../../comps/ui/menu-items.759a1b1f7c5ee365.js";
|
|
18
18
|
import { Icon } from "../../../../../comps/ui/icon.0874ca2f58f7db14.js";
|
|
19
19
|
import { iAgent, iDots, iUser } from "../../../../../comps/ui/icons.f769275420d072ce.js";
|
|
20
|
-
import { showToast } from "../../../../../comps/frame/task-toasts.
|
|
20
|
+
import { showToast } from "../../../../../comps/frame/task-toasts.8733901ca0e4c246.js";
|
|
21
21
|
import { taskTitle } from "../list/task.a25847399a4dfb30.js";
|
|
22
22
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
23
23
|
/** Archive, Stop while it runs, and Delete behind the ⋯ menu; phones keep Archive in the menu too, away from Stop. */
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
"use client";
|
|
2
|
-
import "./task-view.
|
|
2
|
+
import "./task-view.440367ae07204ee7.css.pnext-asset.js";
|
|
3
3
|
import { Fragment } from "../../../../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
4
4
|
import { useEffect, useMemo, useRef, useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
5
5
|
import { useFollowEnd } from "../../../../../utils/follow.bfb9bcff3c1366d7.js";
|
|
6
6
|
import { serverEvents } from "../../../../../../../client/http.e78b470f4ecf125b.js";
|
|
7
7
|
import { LogView, EMPTY_MESSAGE, EMPTY_MESSAGE_NOTICE, SKIPPED, eventMessages } from "../../../../../../../core/task/view.e20379d8f741754a.js";
|
|
8
|
-
import { client } from "../../../../../utils/client.
|
|
8
|
+
import { client } from "../../../../../utils/client.685154f230716834.js";
|
|
9
9
|
import { formatDate, formatDuration, reasonText } from "../../../../../utils/format.ceeaafa10a0563f3.js";
|
|
10
10
|
import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
11
11
|
import { useSearchParams } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
@@ -22,12 +22,12 @@ import { Back, PageHead } from "../../../../../comps/frame/page-head.2eb1e0213eb
|
|
|
22
22
|
import { markdown } from "../../agents/agent/instructions.1b8c9189961c5a4f.js";
|
|
23
23
|
import { ReadOnlyBadge, Status } from "../list/status.d2c05c397780b833.js";
|
|
24
24
|
import { folderName, replyRequired, sourceLabel, taskActive, taskModel, taskTitle, TASK_TABS } from "../list/task.a25847399a4dfb30.js";
|
|
25
|
-
import { useAction } from "../../../../../utils/action.
|
|
25
|
+
import { useAction } from "../../../../../utils/action.56cea462eb725c39.js";
|
|
26
26
|
import { useZone } from "../../../../zone.0515a688ee5ff6ca.js";
|
|
27
|
-
import { Approval, ApprovalEntry, DecisionTurn, TaskActions, raisedIn } from "./task-actions.
|
|
28
|
-
import { Activity, RunPreview, runSummary } from "./activity.
|
|
29
|
-
import { toastError, useTaskEvents, watchTask } from "../../../../../comps/frame/task-toasts.
|
|
30
|
-
import { jsx as _jsx,
|
|
27
|
+
import { Approval, ApprovalEntry, DecisionTurn, TaskActions, raisedIn } from "./task-actions.d131453dd2a423c3.js";
|
|
28
|
+
import { Activity, RunPreview, runSummary } from "./activity.2ec05d78d609b7b2.js";
|
|
29
|
+
import { toastError, useTaskEvents, watchTask } from "../../../../../comps/frame/task-toasts.8733901ca0e4c246.js";
|
|
30
|
+
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
31
31
|
/** A fallback's model as people read it: the model part of its spec. */
|
|
32
32
|
const modelOf = (spec) => spec.split("/")[1] ?? spec;
|
|
33
33
|
function messageOf(value, fallback) {
|
|
@@ -69,51 +69,6 @@ function isEmpty(text) {
|
|
|
69
69
|
const bare = text.trim().replace(/^`+|`+$/g, "");
|
|
70
70
|
return bare.trim() === EMPTY_MESSAGE;
|
|
71
71
|
}
|
|
72
|
-
const isFindings = (json) => typeof json === "object" && json !== null && Array.isArray(json.findings) && json.findings.every((f) => typeof f === "object" && f !== null && "file" in f && "summary" in f);
|
|
73
|
-
/** A review.s findings, one per changed line, worst first. */
|
|
74
|
-
function Findings({ findings }) {
|
|
75
|
-
if (!findings.length) return /* @__PURE__ */ _jsx("p", {
|
|
76
|
-
class: "body muted",
|
|
77
|
-
children: "No findings."
|
|
78
|
-
});
|
|
79
|
-
return /* @__PURE__ */ _jsx("ul", {
|
|
80
|
-
class: "findings",
|
|
81
|
-
children: findings.map((f, index) => /* @__PURE__ */ _jsxs("li", {
|
|
82
|
-
class: `finding ${f.severity}`,
|
|
83
|
-
children: [
|
|
84
|
-
/* @__PURE__ */ _jsxs("p", {
|
|
85
|
-
class: "finding-head",
|
|
86
|
-
children: [
|
|
87
|
-
/* @__PURE__ */ _jsx("span", {
|
|
88
|
-
class: "sev",
|
|
89
|
-
children: f.severity
|
|
90
|
-
}),
|
|
91
|
-
/* @__PURE__ */ _jsxs("span", {
|
|
92
|
-
class: "loc",
|
|
93
|
-
children: [
|
|
94
|
-
f.file,
|
|
95
|
-
":",
|
|
96
|
-
f.line
|
|
97
|
-
]
|
|
98
|
-
}),
|
|
99
|
-
f.category ? /* @__PURE__ */ _jsx("span", {
|
|
100
|
-
class: "cat",
|
|
101
|
-
children: f.category
|
|
102
|
-
}) : null
|
|
103
|
-
]
|
|
104
|
-
}),
|
|
105
|
-
/* @__PURE__ */ _jsx("p", {
|
|
106
|
-
class: "finding-sum",
|
|
107
|
-
children: f.summary
|
|
108
|
-
}),
|
|
109
|
-
f.failure_scenario ? /* @__PURE__ */ _jsx("p", {
|
|
110
|
-
class: "finding-why muted",
|
|
111
|
-
children: f.failure_scenario
|
|
112
|
-
}) : null
|
|
113
|
-
]
|
|
114
|
-
}, index))
|
|
115
|
-
});
|
|
116
|
-
}
|
|
117
72
|
/** A result as the platform got it: an empty answer is the notice when a reply was due, else the skip. */
|
|
118
73
|
function ResultBody({ value, required }) {
|
|
119
74
|
const text = messageOf(value, "Result received.");
|
|
@@ -125,7 +80,6 @@ function ResultBody({ value, required }) {
|
|
|
125
80
|
if (/^\s*[[{]/.test(text)) try {
|
|
126
81
|
json = JSON.parse(text);
|
|
127
82
|
} catch {}
|
|
128
|
-
if (isFindings(json)) return /* @__PURE__ */ _jsx(Findings, { findings: json.findings });
|
|
129
83
|
if (json && typeof json === "object") return /* @__PURE__ */ _jsx("pre", {
|
|
130
84
|
class: "body json",
|
|
131
85
|
children: JSON.stringify(json, null, 2)
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { localServer } from "../../../../api/types.79f9092cdb5a00d1.js";
|
|
2
|
-
import { modelsByEngine } from "../settings/model-options.
|
|
2
|
+
import { modelsByEngine } from "../settings/model-options.0d6077fe68db3af9.js";
|
|
3
3
|
export const PLACEHOLDER = "What should the agent do? Type / for flows and reviews.";
|
|
4
4
|
export const CHOICE = {
|
|
5
5
|
repo: "",
|
|
@@ -1,9 +1,8 @@
|
|
|
1
1
|
"use client";
|
|
2
2
|
import "./composer.33d49ad218253703.css.pnext-asset.js";
|
|
3
3
|
import { useEffect, useId, useLayoutEffect, useRef, useState } from "../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
|
-
import { client } from "../../../../utils/client.
|
|
5
|
-
import { toastFailure, useAction } from "../../../../utils/action.
|
|
6
|
-
import { formatDate } from "../../../../utils/format.ceeaafa10a0563f3.js";
|
|
4
|
+
import { client } from "../../../../utils/client.685154f230716834.js";
|
|
5
|
+
import { toastFailure, useAction } from "../../../../utils/action.56cea462eb725c39.js";
|
|
7
6
|
import { iAlert, iPlus, iRight, iSliders, iSteer, iX } from "../../../../comps/ui/icons.f769275420d072ce.js";
|
|
8
7
|
import { useRouter, useSearchParams } from "../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
9
8
|
import { useOrg } from "../../../../comps/nav/org.853d173b55368728.js";
|
|
@@ -13,12 +12,12 @@ import { reasonText } from "../../../../utils/format.ceeaafa10a0563f3.js";
|
|
|
13
12
|
import { Icon } from "../../../../comps/ui/icon.0874ca2f58f7db14.js";
|
|
14
13
|
import { Select } from "../../../../comps/ui/select.0ee9e8f04ddd8b47.js";
|
|
15
14
|
import { MenuItem, MenuLabel, MenuNote, MenuOption, MenuPanel, MenuRadio, MenuRow } from "../../../../comps/ui/menu-items.759a1b1f7c5ee365.js";
|
|
16
|
-
import { connectRepositories } from "../agents/editor/connect-repositories.
|
|
17
|
-
import { ACCESS, EFFORTS, specName } from "../settings/model-options.
|
|
18
|
-
import { ModelChoices, placeBeside } from "../settings/model-pick.
|
|
15
|
+
import { connectRepositories } from "../agents/editor/connect-repositories.4e121d31ed0cfe02.js";
|
|
16
|
+
import { ACCESS, EFFORTS, specName } from "../settings/model-options.0d6077fe68db3af9.js";
|
|
17
|
+
import { ModelChoices, placeBeside } from "../settings/model-pick.695538b2edf9dd15.js";
|
|
19
18
|
import { folderName } from "./list/task.a25847399a4dfb30.js";
|
|
20
|
-
import { watchTask } from "../../../../comps/frame/task-toasts.
|
|
21
|
-
import { CHOICE, PLACEHOLDER, loadComposer, savedChoice, usableAgent } from "./composer-data.
|
|
19
|
+
import { watchTask } from "../../../../comps/frame/task-toasts.8733901ca0e4c246.js";
|
|
20
|
+
import { CHOICE, PLACEHOLDER, loadComposer, savedChoice, usableAgent } from "./composer-data.c16854be11a561e4.js";
|
|
22
21
|
import { Notice } from "../../../../comps/ui/notice.f395f231cbb96445.js";
|
|
23
22
|
import { CredentialsLink } from "../../../../comps/nav/back.7aa0ae82dbec38cd.js";
|
|
24
23
|
import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
@@ -30,8 +29,8 @@ const REFRESH = "+refresh";
|
|
|
30
29
|
const OTHER = "+other";
|
|
31
30
|
const PICK = "+pick";
|
|
32
31
|
const CLONE = "+clone";
|
|
33
|
-
/** `/
|
|
34
|
-
const COMMAND = /^\/(
|
|
32
|
+
/** `/flow release pr=12`: the command, its first word, and the rest. */
|
|
33
|
+
const COMMAND = /^\/(flow)(?:\s+(\S+))?\s*([\s\S]*)$/;
|
|
35
34
|
/** A select's options: its unset value, then the picked value, then the rest, so it shows its label before the list loads. */
|
|
36
35
|
const optionsOf = (fallback, value, values) => [["", fallback], ...[...new Set([value, ...values])].filter(Boolean).map((each) => [each, each])];
|
|
37
36
|
/** Unset runs in the server's own folder; then recent and chosen ones, then the machine's dialog or a path box, then a repository URL box. A saved folder the list lacks still shows. */
|
|
@@ -148,8 +147,8 @@ export function NeedsCredential({ reason, label }) {
|
|
|
148
147
|
]
|
|
149
148
|
});
|
|
150
149
|
}
|
|
151
|
-
/** The dashboard's one box: type and press Enter to start a task, or `/` for
|
|
152
|
-
function Composer({ initial, data, defaults, missing, connectLabel
|
|
150
|
+
/** The dashboard's one box: type and press Enter to start a task, or `/` for flows. */
|
|
151
|
+
function Composer({ initial, data, defaults, missing, connectLabel }) {
|
|
153
152
|
const nav = useRouter();
|
|
154
153
|
const org = useOrg();
|
|
155
154
|
const [choice, setChoice] = useState(() => usableAgent({
|
|
@@ -157,7 +156,7 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
157
156
|
...initial
|
|
158
157
|
}, data));
|
|
159
158
|
const [lists, setLists] = useState(data);
|
|
160
|
-
const
|
|
159
|
+
const flowsRepo = useRef();
|
|
161
160
|
const [busy, setBusy] = useState(false);
|
|
162
161
|
// Why no credential can run it, once a start says so.
|
|
163
162
|
const [needs, setNeeds] = useState();
|
|
@@ -184,21 +183,10 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
184
183
|
// A restored draft waits for typing before its slash menu opens.
|
|
185
184
|
setDismissed(true);
|
|
186
185
|
}, []);
|
|
187
|
-
// Once a command is typed
|
|
186
|
+
// Once a command is typed, read the repository's own flows.
|
|
188
187
|
const prefetch = (value, repo = choice.repo) => {
|
|
189
|
-
if (!repo
|
|
190
|
-
|
|
191
|
-
setPulls({ repo });
|
|
192
|
-
void client.pulls.list(repo).then((items) => setPulls({
|
|
193
|
-
repo,
|
|
194
|
-
items
|
|
195
|
-
})).catch((reason) => {
|
|
196
|
-
setPulls({
|
|
197
|
-
repo,
|
|
198
|
-
items: []
|
|
199
|
-
});
|
|
200
|
-
toastFailure(reason);
|
|
201
|
-
});
|
|
188
|
+
if (!value.startsWith("/") || !repo || flowsRepo.current === repo) return;
|
|
189
|
+
flowsRepo.current = repo;
|
|
202
190
|
void client.flows.list(repo).then((flows) => setLists((current) => ({
|
|
203
191
|
...current,
|
|
204
192
|
flows: flows.map((flow) => flow.name)
|
|
@@ -293,13 +281,11 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
293
281
|
field.focus();
|
|
294
282
|
field.setSelectionRange(value.length, value.length);
|
|
295
283
|
};
|
|
296
|
-
const start = async (
|
|
284
|
+
const start = async () => {
|
|
297
285
|
const text = box.current?.value.trim() ?? "";
|
|
298
|
-
if (busy || cloning || lists.agentsOff || !
|
|
286
|
+
if (busy || cloning || lists.agentsOff || !text) return;
|
|
299
287
|
const [, command, name = "", args = ""] = COMMAND.exec(text) ?? [];
|
|
300
|
-
if (
|
|
301
|
-
const review = pr ?? (command === "review" ? Number(name.replace("#", "")) : undefined);
|
|
302
|
-
if (review && !choice.repo) return toastFailure("Pick a repository first.");
|
|
288
|
+
if (command && !name) return void setDismissed(false);
|
|
303
289
|
const { agent, model, effort, access, runner } = choice;
|
|
304
290
|
const [repo, cwd] = lists.folders ? ["", choice.cwd] : [choice.repo, ""];
|
|
305
291
|
// An effort on the Default row goes on the chain's first model; the rest still follow.
|
|
@@ -313,11 +299,7 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
313
299
|
}).filter(([, value]) => value));
|
|
314
300
|
setBusy(true);
|
|
315
301
|
try {
|
|
316
|
-
const created =
|
|
317
|
-
...fields,
|
|
318
|
-
repo: choice.repo,
|
|
319
|
-
pr: review
|
|
320
|
-
}) : command === "flow" ? await client.flows.run(name, {
|
|
302
|
+
const created = command === "flow" ? await client.flows.run(name, {
|
|
321
303
|
...fields,
|
|
322
304
|
agent,
|
|
323
305
|
args: argsOf(args)
|
|
@@ -326,8 +308,8 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
326
308
|
agent,
|
|
327
309
|
prompt: text
|
|
328
310
|
});
|
|
329
|
-
|
|
330
|
-
watchTask(created.task.id, "queued", text
|
|
311
|
+
localStorage.removeItem(DRAFT);
|
|
312
|
+
watchTask(created.task.id, "queued", text);
|
|
331
313
|
nav.push("/dash/[org]/tasks/[id]", { params: {
|
|
332
314
|
org,
|
|
333
315
|
id: created.task.id
|
|
@@ -338,17 +320,12 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
338
320
|
else toastFailure(reason);
|
|
339
321
|
}
|
|
340
322
|
};
|
|
341
|
-
// The slash menu for what is typed so far: commands, then a flow
|
|
323
|
+
// The slash menu for what is typed so far: commands, then a flow.
|
|
342
324
|
const menu = (() => {
|
|
343
325
|
const word = /^\/(\S*)$/.exec(text)?.[1]?.toLowerCase();
|
|
344
326
|
if (word !== undefined) return {
|
|
345
327
|
label: "Commands",
|
|
346
|
-
entries: [{
|
|
347
|
-
key: "review",
|
|
348
|
-
label: "/review",
|
|
349
|
-
hint: "Review a pull request",
|
|
350
|
-
pick: () => draft("/review ")
|
|
351
|
-
}, ...lists.flows.map((flow) => ({
|
|
328
|
+
entries: [...lists.flows.map((flow) => ({
|
|
352
329
|
key: `flow ${flow}`,
|
|
353
330
|
label: `/flow ${flow}`,
|
|
354
331
|
hint: `Run the ${flow} flow`,
|
|
@@ -367,40 +344,6 @@ function Composer({ initial, data, defaults, missing, connectLabel, tz }) {
|
|
|
367
344
|
})),
|
|
368
345
|
note: "No flow matches."
|
|
369
346
|
};
|
|
370
|
-
const number = /^\/review\s+#?(\S*)$/.exec(text)?.[1];
|
|
371
|
-
if (number === undefined) return undefined;
|
|
372
|
-
if (!choice.repo) return {
|
|
373
|
-
label: "Pick a repository",
|
|
374
|
-
entries: [...(lists.repos ?? []).filter((repo) => repo.includes(number)).map((repo) => ({
|
|
375
|
-
key: repo,
|
|
376
|
-
label: repo,
|
|
377
|
-
pick: () => pick("repo", repo)
|
|
378
|
-
})), {
|
|
379
|
-
key: CONNECT,
|
|
380
|
-
label: connectLabel,
|
|
381
|
-
pick: () => pick("repo", CONNECT)
|
|
382
|
-
}]
|
|
383
|
-
};
|
|
384
|
-
if (!pulls?.items) return {
|
|
385
|
-
label: `Pull requests in ${choice.repo}`,
|
|
386
|
-
entries: [],
|
|
387
|
-
note: "loading"
|
|
388
|
-
};
|
|
389
|
-
return {
|
|
390
|
-
label: `Pull requests in ${choice.repo}`,
|
|
391
|
-
entries: [...pulls.items.filter((pull) => String(pull.number).startsWith(number) || pull.title.toLowerCase().includes(number.toLowerCase())).sort((a, b) => Number(String(b.number) === number) - Number(String(a.number) === number)).map((pull) => ({
|
|
392
|
-
key: `#${pull.number}`,
|
|
393
|
-
label: `#${pull.number} ${pull.title}`,
|
|
394
|
-
hint: [pull.author, pull.createdAt ? formatDate(Date.parse(pull.createdAt), tz) : ""].filter(Boolean).join(" · "),
|
|
395
|
-
pick: () => void start(pull.number)
|
|
396
|
-
})), ...number ? [] : [{
|
|
397
|
-
key: "",
|
|
398
|
-
label: choice.repo,
|
|
399
|
-
hint: "Pick another repository",
|
|
400
|
-
pick: () => apply({ repo: "" })
|
|
401
|
-
}]],
|
|
402
|
-
note: pulls.items.length ? "No open pull request matches." : "No open pull requests."
|
|
403
|
-
};
|
|
404
347
|
})();
|
|
405
348
|
const open = Boolean(menu && !dismissed);
|
|
406
349
|
const active = menu ? Math.min(at, Math.max(0, menu.entries.length - 1)) : 0;
|
|
@@ -697,8 +640,7 @@ export function NewTaskButton({ agent }) {
|
|
|
697
640
|
initial: {
|
|
698
641
|
...savedChoice(document.cookie),
|
|
699
642
|
...agent ? { agent } : {}
|
|
700
|
-
}
|
|
701
|
-
tz: Intl.DateTimeFormat().resolvedOptions().timeZone
|
|
643
|
+
}
|
|
702
644
|
}) : error ? /* @__PURE__ */ _jsx("p", {
|
|
703
645
|
class: "flash err",
|
|
704
646
|
role: "alert",
|
|
@@ -3,7 +3,7 @@ import "./pending-approvals.07e59a9cae7ccf29.css.pnext-asset.js";
|
|
|
3
3
|
import { useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
4
|
import { Button } from "../../../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
5
5
|
import { Card } from "../../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
6
|
-
import { Approval, pendingApproval } from "../[id]/task-actions.
|
|
6
|
+
import { Approval, pendingApproval } from "../[id]/task-actions.d131453dd2a423c3.js";
|
|
7
7
|
import { jsx as _jsx } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
8
8
|
/** Rows the queue shows before Show all. */
|
|
9
9
|
const FOLDED_ROWS = 3;
|
|
@@ -3,18 +3,18 @@ import "./tasks-list.f3737549b4696cc8.css.pnext-asset.js";
|
|
|
3
3
|
import { Fragment } from "../../../../../../../../../../node_modules/preact/dist/preact.mjs";
|
|
4
4
|
import { dynamic } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
|
|
5
5
|
import { useEffect, useRef, useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
6
|
-
import { client } from "../../../../../utils/client.
|
|
7
|
-
import { useAction } from "../../../../../utils/action.
|
|
6
|
+
import { client } from "../../../../../utils/client.685154f230716834.js";
|
|
7
|
+
import { useAction } from "../../../../../utils/action.56cea462eb725c39.js";
|
|
8
8
|
import { formatCount, formatDate, formatDay, formatDuration } from "../../../../../utils/format.ceeaafa10a0563f3.js";
|
|
9
9
|
import { iAgent, iClock, iDots, iFolder, iMonitor, iPlug, iPlus, iTerminal } from "../../../../../comps/ui/icons.f769275420d072ce.js";
|
|
10
10
|
import { Menu } from "../../../../../comps/ui/menu.7f558c7c6f6345d5.js";
|
|
11
11
|
import { MenuItem } from "../../../../../comps/ui/menu-items.759a1b1f7c5ee365.js";
|
|
12
12
|
import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
|
|
13
|
-
import { PendingApprovals } from "./pending-approvals.
|
|
13
|
+
import { PendingApprovals } from "./pending-approvals.9175908da02960e1.js";
|
|
14
14
|
import { useRouter } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
|
|
15
15
|
import { usePaged } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
16
16
|
import { useZone } from "../../../../zone.0515a688ee5ff6ca.js";
|
|
17
|
-
import { pendingApproval } from "../[id]/task-actions.
|
|
17
|
+
import { pendingApproval } from "../[id]/task-actions.d131453dd2a423c3.js";
|
|
18
18
|
import { BrandIcon } from "../../agents/agent/agent-pills.1012e04bfbc7bffd.js";
|
|
19
19
|
import { Button } from "../../../../../comps/ui/button.b62fa52e18fa338b.js";
|
|
20
20
|
import { Card, Empty } from "../../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
@@ -29,11 +29,11 @@ import { LIST_PAGE } from "../../../../../utils/paged.0e54c3044f8ca567.js";
|
|
|
29
29
|
import { Search, Toolbar, queryOf, useFilters } from "../../../../../comps/ui/toolbar.ff8367c641d28c1e.js";
|
|
30
30
|
import { Tail } from "../../../../../comps/ui/tail.7eb303330802ac18.js";
|
|
31
31
|
import { SOURCES, STATUSES, folderName, listFilters, sourceLabel } from "./task.a25847399a4dfb30.js";
|
|
32
|
-
import { NeedsCredential } from "../composer.
|
|
33
|
-
import { useTaskEvents } from "../../../../../comps/frame/task-toasts.
|
|
32
|
+
import { NeedsCredential } from "../composer.97be3e67214889c1.js";
|
|
33
|
+
import { useTaskEvents } from "../../../../../comps/frame/task-toasts.8733901ca0e4c246.js";
|
|
34
34
|
import { useOrg } from "../../../../../comps/nav/org.853d173b55368728.js";
|
|
35
35
|
import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
|
|
36
|
-
const NewTaskButton = dynamic(() => import("../composer.
|
|
36
|
+
const NewTaskButton = dynamic(() => import("../composer.97be3e67214889c1.js").then((m) => m.NewTaskButton), {
|
|
37
37
|
// TODO: stays disabled after client navigation until pnext SSRs nested dynamic() like Next.js.
|
|
38
38
|
loading: () => /* @__PURE__ */ _jsx(Button, {
|
|
39
39
|
class: "new-task",
|
|
@@ -43,7 +43,7 @@ loading: () => /* @__PURE__ */ _jsx(Button, {
|
|
|
43
43
|
}) }, {
|
|
44
44
|
"file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/tasks/composer.tsx", import.meta.url).pathname),
|
|
45
45
|
"exportName": "NewTaskButton",
|
|
46
|
-
"id": "c-
|
|
46
|
+
"id": "c-349df33426"
|
|
47
47
|
});
|
|
48
48
|
const SOURCE_ICONS = {
|
|
49
49
|
dashboard: iMonitor,
|
|
@@ -2,19 +2,19 @@ import "./tasks-list.f3737549b4696cc8.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.
|
|
5
|
+
import { load } from "../../../../../api/load.858c062c7891a2c1.js";
|
|
6
|
+
import { Settle } from "../../../../../comps/frame/stream.2cdb8eabd8f6df70.js";
|
|
7
7
|
import { LoadingCard, LoadingToolbar } from "../../../../../comps/frame/loading-card.77bea8c5870b5d3c.js";
|
|
8
8
|
import { listFilters } from "./task.a25847399a4dfb30.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.028798c79227a366.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-67acd5aafe"
|
|
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.858c062c7891a2c1.js";
|
|
2
2
|
import { HEADS } from "../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
3
3
|
import { Page } from "../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
4
|
-
import { TasksSection, loadTasks } from "./list/tasks-section.
|
|
5
|
-
import { credentialMissing } from "./composer-data.
|
|
4
|
+
import { TasksSection, loadTasks } from "./list/tasks-section.9a9d13057b326f25.js";
|
|
5
|
+
import { credentialMissing } from "./composer-data.c16854be11a561e4.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, and for an admin the changes waiting for their approval. */
|
|
8
8
|
export default function TasksPage({ request }) {
|
|
@@ -2,11 +2,11 @@ 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.858c062c7891a2c1.js";
|
|
6
6
|
import { Card } from "../../../../comps/ui/card.c0030eafd76587e3.js";
|
|
7
7
|
import { Page, PageHead } from "../../../../comps/frame/page-head.2eb1e0213eb50349.js";
|
|
8
8
|
import { Stat, Stats } from "./stats.de820599cf126120.js";
|
|
9
|
-
import { Settle } from "../../../../comps/frame/stream.
|
|
9
|
+
import { Settle } from "../../../../comps/frame/stream.2cdb8eabd8f6df70.js";
|
|
10
10
|
import { HEADS } from "../../../../comps/frame/heads.37e35439c02fc636.js";
|
|
11
11
|
import { TopAgents } from "./top-agents.93c916167299ffb6.js";
|
|
12
12
|
import { DayChart } from "./day-chart.20faaaf57c81ad9e.js";
|
|
@@ -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.858c062c7891a2c1.js";
|
|
3
3
|
import { Card } from "../ui/card.c0030eafd76587e3.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";
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import "./task-toasts.682322f6f729b33e.css.pnext-asset.js";
|
|
3
3
|
import { useEffect, useRef, useState } from "../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
|
|
4
4
|
import { serverEvents } from "../../../../client/http.e78b470f4ecf125b.js";
|
|
5
|
-
import { client } from "../../utils/client.
|
|
5
|
+
import { client } from "../../utils/client.685154f230716834.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
8
|
import { Status, STATUS_LABEL } from "../../app/dash/[org]/tasks/list/status.d2c05c397780b833.js";
|
|
@@ -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.8733901ca0e4c246.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.91e126d7a389d4bd.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
|
-
"use client";import{a as u}from"./list-
|
|
1
|
+
"use client";import{a as u}from"./list-662f042656857c82.js";import"./confirm-14d018653fbe50fc.js";import"./shared-init-96225b8c7758de9d.js";import"./shared-init-96225b8c7758de9d.js";import"./shared-init-abd7653140f37a0c.js";import"./shared-init-abd7653140f37a0c.js";import{$1o as h}from"./shared-init-abd7653140f37a0c.js";import"./wular-pnext-3fcac605fffcc273-0.js";import"./shared-init-abd7653140f37a0c.js";import{$3Q as e,$3R as p,$3v as d}from"./shared-init-abd7653140f37a0c.js";import"./shared-init-3fcac605fffcc273-2.js";import"./shared-init-3fcac605fffcc273-2.js";import{$2h as c}from"./shared-init-3fcac605fffcc273-2.js";function T({first:f,admin:r}){let n=u(f.config),o=n.value.network?.allowedHosts??[],[l,a]=c(""),i=t=>n.patch({network:{allowedHosts:t}});return e(h,{look:"filled",title:"Network",children:[e("p",{class:"body muted",children:"Hosts tasks reach without review, with their subdomains."}),e("div",{class:"hosts",children:[o.map(t=>e("span",{class:"host mono",children:[t,r?e("button",{type:"button","aria-label":`Remove ${t}`,onClick:()=>void i(o.filter(s=>s!==t)),children:e(p,{d})}):null]},t)),r?e("input",{class:"mono",value:l,onInput:t=>a(t.currentTarget.value),onKeyDown:t=>{let s=l.trim();t.key!=="Enter"||!s||(t.preventDefault(),a(""),o.includes(s)||i([...o,s]))},placeholder:o.length?"Add a host, then Enter":"registry.npmjs.org, then Enter","aria-label":"Add a host",autocomplete:"off",spellcheck:!1}):null]}),e("label",{class:"hosts-switch",children:[e("input",{type:"checkbox",role:"switch",class:"switch",checked:n.value.network?.readOnlyTasks??!1,disabled:!r,onChange:t=>void n.patch({network:{readOnlyTasks:t.currentTarget.checked}})}),"Read-only tasks reach these hosts too"]})]})}export{T as AdvancedList};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{$0E as b}from"./shared-init-
|
|
1
|
+
import{$0E as b}from"./shared-init-abd7653140f37a0c.js";import{$1g as h,$1i as m,$1j as f,$1k as n}from"./shared-init-abd7653140f37a0c.js";import{$3Q as r,$3R as a,$3t as l}from"./shared-init-abd7653140f37a0c.js";import{$2c as u,$2n as g}from"./shared-init-3fcac605fffcc273-2.js";var k=(e,o)=>e.replace(/\bid="([^"]+)"/g,`id="$1${o}"`).replace(/url\(#([^)]+)\)/g,`url(#$1${o})`).replace(/href="#([^"]+)"/g,`href="#$1${o}"`);function y({brand:e}){let o=g().replace(/[^a-zA-Z0-9_-]/g,"");return e.svg?r("span",{class:"brand-icon","aria-hidden":"true",dangerouslySetInnerHTML:{__html:k(e.svg,`-${o}`)}}):r("svg",{class:"brand-icon",width:"12",height:"12",viewBox:"0 0 24 24",fill:"currentColor","aria-hidden":"true",style:{color:e.dark?`light-dark(${e.color}, ${e.dark})`:e.color},children:r("path",{d:e.icon})})}function B({id:e,info:o,state:s}){let i=o?.name??e;return r("span",{class:`pf ${s}`,children:[o?r(y,{brand:o.brand}):null,i]})}function S({platforms:e,catalog:o,agent:s}){let i=e.length>=m?f:e.length,c=({id:t,state:I},d)=>{let p=r(B,{id:t,info:o.find(L=>L.id===t),state:I});return s?r(b,{class:d,href:"/dash/[org]/agents/[slug]/platforms",params:{slug:s},children:p},t):r("span",{class:d,children:p},t)};return r("span",{class:"pfs",children:[e.slice(0,i).map(t=>c(t)),e.length>i?r(h,{label:`+${e.length-i}`,children:e.map(t=>c(t,"pf-row"))}):null]})}var R={builtin:"built-in",upload:"dashboard",repo:"repository",home:"local"};function w(){return r(n,{tone:"warn",title:"Disabled in this workspace",children:"disabled"})}function E({agent:e,fix:o}){return r(u,{children:[e.source==="repo"&&e.repo?e.sourceUrl?r(n,{class:"link-pill",href:e.sourceUrl,external:!0,title:`Repository agent, opens ${e.repo}`,children:[r(a,{d:l}),e.repo]}):r(n,{class:"link-pill",title:"Repository agent",children:[r(a,{d:l}),e.repo]}):r(n,{tone:e.source==="builtin"?"acc":void 0,title:e.local&&e.source==="repo"?"Repo agent, a folder in this repository":e.source==="home"?"Local agent, a folder on this machine":e.source!=="upload"?"Ships with Coder":e.local?"Local agent, a folder on this machine":"Dashboard agent, made and edited here",children:e.local&&e.source==="upload"?"local":R[e.source]??e.source}),e.local?e.commit&&r(n,{title:"Last commit of the agent's folder",children:e.commit.slice(0,7)}):r(n,{children:["v",e.currentVersion]}),e.settings?.disabled?r(w,{}):null,e.problems?.length?r(n,{tone:"bad",title:e.problems.join(`
|
|
2
2
|
`),...o,children:"not running"}):null]})}export{y as a,S as b,w as c,E as d};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use client";import{a as ne}from"./chain-hint-491eb09a20a15702.js";import{a as Z}from"./agent-pills-54564413a57d7fa7.js";import{a as ee}from"./agent-toggle-b5dcc4ea6292fb3d.js";import{$0c as X}from"./shared-init-96cde32cd50254c0.js";import{d as H,h as R,l as W}from"./model-options-5e07b3318d69d218.js";import{b as I,c as Y}from"./types-3eca2c7f47c46054.js";import{a as K}from"./confirm-14d018653fbe50fc.js";import{a as f}from"./field-adcb6e6a5f9b7131.js";import{$0b as F}from"./shared-init-96225b8c7758de9d.js";import"./shared-init-96225b8c7758de9d.js";import{$2m as J}from"./shared-init-abd7653140f37a0c.js";import{$0D as G,$0a as _,$0v as z,$0z as w}from"./shared-init-abd7653140f37a0c.js";import{$1c as P}from"./shared-init-abd7653140f37a0c.js";import"./wular-pnext-3fcac605fffcc273-0.js";import"./shared-init-abd7653140f37a0c.js";import{$3Q as e,$3S as D,$3b as y}from"./shared-init-abd7653140f37a0c.js";import"./shared-init-3fcac605fffcc273-2.js";import"./shared-init-3fcac605fffcc273-2.js";import{$2c as b,$2h as d,$2k as V,$2l as Q}from"./shared-init-3fcac605fffcc273-2.js";function Ie({agent:t,catalog:te,shape:k,runners:$,connections:q}){let se=_(),p=G(),[m,x]=d("run"),B=F({refresh:!0}),N=F({leaves:!0}),oe=!!B.pending,[S,ae]=d(""),[h,ie]=d(),[le,A]=d(!1),O=Q(null),l=t.settings??{},[C,re]=d(l.model?.includes("/")?l.model:[l.engine,l.model,l.effort].filter(Boolean).join("/")),[E,ce]=d(l.connections?"some":""),L=t.definition?.integrations??{},g=Object.keys(L).sort(),T=t.definition,j=t.source!=="builtin";V(()=>{let n=S.trim().toLowerCase(),o=[];O.current.querySelectorAll(".vpanel").forEach(i=>{let a=!1;i.querySelectorAll(".field").forEach(s=>{let r=[...s.querySelectorAll("input")].map(v=>v.value).join(" "),c=s.closest(".vplatform")?.querySelector("h3")?.textContent??"",u=!n||`${c} ${s.textContent} ${r}`.toLowerCase().includes(n);s.hidden=!u,a||=u}),i.querySelectorAll(".vplatform").forEach(s=>{s.hidden=!s.querySelector(".field:not([hidden])")}),a&&o.push(i.dataset.panel)}),ie(n?o:void 0),n&&o.length&&!o.includes(m)&&x(o[0])},[S]);let de=()=>void N.run("delete",async()=>{await P.agents.remove(t.id),se.push("/dash/[org]/agents",{params:{org:p}})}).then(n=>n||A(!1)),M=(n,o)=>e("button",{type:"button","aria-current":m===n?"true":void 0,class:h&&!h.includes(n)?"miss":void 0,onClick:()=>x(n),children:o});return e("form",{ref:O,class:"vsettings card frame",onSubmit:async n=>{n.preventDefault();let o=new FormData(n.currentTarget),i=c=>String(o.get(c)??"").trim(),a={};i("runner")&&(a.runner=i("runner")),i("access")!==(T?.access??"auto")&&(a.access=i("access")),C.trim()&&(a.model=C.trim()),E&&(a.connections=o.getAll("connection").map(String));for(let c of g){let u={},v=I(L[c]?.events),U=o.getAll(`event:${c}`).map(String);v.length&&U.length<v.length&&(u.allowedEvents=U),Object.keys(u).length&&((a.integrations??={})[c]=u)}t.settings?.disabled&&(a.disabled=!0);let s;await B.run("save",async()=>{({warning:s}=await P.agents.settings(t.id,a))})&&J("Saved",s??"New tasks use these settings.",s?"warning":"success")},children:[e("nav",{class:"tabs vertical","aria-label":"Settings sections",children:[e("p",{class:"tabs-label",children:"Runtime"}),M("run","How it runs"),g.length?M("platforms","Platforms"):null,e("p",{class:"tabs-label",children:"Agent"}),M("manage","Manage")]}),e("div",{class:"vbody",children:[e("div",{class:"vsearch",children:[e(z,{value:S,label:"Search settings",onInput:ae}),h&&!h.length?e("span",{class:"muted",children:"No setting matches."}):null]}),e("section",{class:"vpanel","data-panel":"run",hidden:m!=="run",children:[e("h2",{children:"How it runs"}),e("p",{class:"muted",children:"Anything left empty follows the agent's own definition, then the workspace chain."}),e("div",{class:"fields",children:[e(f,{label:"Model",hint:e(ne,{org:p,own:t.definition?.model&&R(t.definition.model,k.builtin)}),group:!0,children:e(X,{shape:k,empty:t.definition?.model?{label:`Its own, ${R(t.definition.model,k.builtin)}`,sub:"from agent.json"}:W(),value:C,onChange:re})}),e(f,{label:"Access",hint:"what its tasks, platforms and connections may do",group:!0,children:e(w,{name:"access",label:"Access",defaultValue:l.access??T?.access??"auto",options:T?.access==="read-only"?H.filter(([n])=>n==="read-only"):H})}),$.length>1?e(f,{label:"Runs on",group:!0,children:e(w,{name:"runner",label:"Runs on",defaultValue:l.runner??"",options:$})}):null,e(f,{label:"Connections",hint:"which workspace connections its tasks can use",group:!0,children:e(w,{label:"Connections",value:E,options:[["","Every workspace connection"],["some","Only the ones picked"]],onChange:ce})}),E?e("div",{class:"field picked",children:[e("span",{children:["Picked connections ",e("small",{children:"tasks can use only these"})]}),q.length?e("div",{class:"checks",children:q.map(n=>e("label",{class:"check",children:[e("input",{type:"checkbox",name:"connection",value:n.id,defaultChecked:l.connections?.includes(n.id)}),n.name]},n.id))}):e("span",{class:"muted",children:["This workspace has no connections yet."," ",e(y,{class:"link",href:"/dash/[org]/settings/[tab]",params:{org:p,tab:"connections"},children:"Add one in Settings"})]})]}):null]})]}),g.length?e("section",{class:"vpanel","data-panel":"platforms",hidden:m!=="platforms",children:[e("h2",{children:"Platforms"}),e("p",{class:"muted",children:["Turn events off for this workspace."," ",Y(t)?e(b,{children:["To add an event or a platform,"," ",e(y,{href:"/dash/[org]/agents/[slug]/edit",params:{org:p,slug:t.id},search:{section:"platforms"},children:["edit ",t.name]}),"."]}):t.source==="repo"?e(b,{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(b,{children:[t.name," is built in, so its events and platforms ship with Coder. To listen anywhere else,"," ",e(y,{href:"/dash/[org]/agents/new",params:{org:p},children:"create your own agent"}),"."]})]}),g.map(n=>{let o=l.integrations?.[n]??{},i=I(L[n]?.events),a=o.allowedEvents,s=te.find(r=>r.id===n);return e("div",{class:"vplatform",children:[e("h3",{children:[s?e(Z,{brand:s.brand}):null,s?.name??n]}),i.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:i.map(r=>e("label",{class:"check",children:[e("input",{type:"checkbox",name:`event:${n}`,value:r,defaultChecked:!a||a.includes(r)}),r]},r))})]}):null]},n)})]}):null,e("section",{class:"vpanel","data-panel":"manage",hidden:m!=="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(ee,{agent:t})]}),e("div",{class:"field row-action",children:[e("span",{children:["Delete agent",e("small",{children:j?"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(D,{variant:"secondary",danger:!0,disabled:!j,onClick:()=>A(!0),children:"Delete agent"})]})]}),m==="manage"?null:e("div",{class:"form-actions save",children:e(D,{type:"submit",loading:oe,children:"Save"})})]}),le?e(K,{open:!0,title:`Delete ${t.name}?`,body:"It stops answering on every platform. This cannot be undone.",confirmLabel:"Delete agent",busy:!!N.pending,onClose:()=>A(!1),onConfirm:de}):null]})}export{Ie as AgentSettingsForm};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$0b as b}from"./shared-init-96225b8c7758de9d.js";import{$1c as r}from"./shared-init-abd7653140f37a0c.js";import{$3Q as s,$3S as c}from"./shared-init-abd7653140f37a0c.js";import{$2h as g}from"./shared-init-3fcac605fffcc273-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-54564413a57d7fa7.js";import{a as L}from"./tail-40f16e09eade7eee.js";import{c as N}from"./types-3eca2c7f47c46054.js";import{$1g as k}from"./shared-init-96225b8c7758de9d.js";import{$0D as a,$0t as A,$0u as w,$0v as C,$0w as I,$0x as v}from"./shared-init-abd7653140f37a0c.js";import{$1c as f,$1q as y,$1s as b}from"./shared-init-abd7653140f37a0c.js";import"./wular-pnext-3fcac605fffcc273-0.js";import{$3Q as e,$3T as h,$3b as g,$3c as u}from"./shared-init-abd7653140f37a0c.js";import"./shared-init-3fcac605fffcc273-2.js";import"./shared-init-3fcac605fffcc273-2.js";import{$2c as c}from"./shared-init-3fcac605fffcc273-2.js";function B(){return e(h,{href:"/dash/[org]/agents/new",params:{org:a()},leftIcon:u,children:"New agent"})}function x({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:k(t.name)}),e("div",{class:"grow",children:[e("h3",{children:e(g,{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:K}){let{values:m,set:p,query:S}=w(n),s=b({name:"agents",fetchPage:r=>f.agents.list({cursor:r,limit:i,...m}),query:S,first:t,initial:A(n)});return e(c,{children:[e(I,{head:l,action:e(B,{}),children:[e(C,{value:m.q,label:"Search agents",onInput:r=>p("q",r,250)}),e(v,{name:"agents",facets:[{key:"platform",label:"Platform",options:o.map(r=>[r.id,r.name]),icon:r=>{let d=o.find(T=>T.id===r);return d?e(P,{brand:d.brand}):void 0}},{key:"type",label:"Source",options:O}],values:m,onChange:p})]}),K,s.rows.length?e("ul",{class:"agent-grid","aria-busy":s.stale,children:s.rows.map(r=>e(x,{agent:r,catalog:o},r.id))}):s.stale?null:e(y,{title:"No agents match",children:"Try another search or filter."}),e(L,{noun:"agents",...s})]})}export{te as AgentsGrid};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$0B as c,$0D as a}from"./shared-init-
|
|
1
|
+
import{$0B as c,$0D as a}from"./shared-init-abd7653140f37a0c.js";import{$3Q as r,$3T as i}from"./shared-init-abd7653140f37a0c.js";import{$2j as m}from"./shared-init-3fcac605fffcc273-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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{$
|
|
1
|
+
import{$3Q as n,$3R as e,$3b as o,$3q as s}from"./shared-init-abd7653140f37a0c.js";import{$2c as r}from"./shared-init-3fcac605fffcc273-2.js";var f=({org:t,own:i})=>i?n(r,{children:[i," from agent.json, unless picked here"]}):n(r,{children:[n(o,{class:"link",href:"/dash/[org]/settings/[tab]",params:{org:t,tab:"models"},children:["default chain",n(e,{d:s})]})," ","unless picked here"]});export{f as a};
|