@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.
Files changed (372) hide show
  1. package/README.md +1 -1
  2. package/dist/actions-D12xDiQS.js +4 -0
  3. package/dist/{adapter-CVd5klMH.js → adapter-Bz0E-DAY.js} +2 -2
  4. package/dist/{adapter-CU9H4g6c.js → adapter-CsacmMmv.js} +1 -1
  5. package/dist/adapter-DzpdWewB.js +1 -0
  6. package/dist/{agent-BA6xr8QY.js → agent-JJStALIx.js} +2 -2
  7. package/dist/apps-Bnk7F3A2.js +379 -0
  8. package/dist/args-Dqf5Y1RP.js +1 -0
  9. package/dist/async-Tj4zKHXR.js +3 -0
  10. package/dist/{auth-DuXnSNf9.js → auth-BhpnOCbn.js} +1 -1
  11. package/dist/builtin/coder/agent.json +0 -1
  12. package/dist/builtin/coder/system.md +1 -1
  13. package/dist/{chat-CgQdDRhs.js → chat-CSepnsrK.js} +1 -1
  14. package/dist/cli.js +13 -13
  15. package/dist/cmd-BHZwhrfa.js +118 -0
  16. package/dist/connection-BkYTuJjV.js +1 -0
  17. package/dist/context-zhSlmXOp.js +7 -0
  18. package/dist/dash/standalone/node_modules/contextjsx/package.json +1 -1
  19. package/dist/dash/standalone/server/build-index.json +1 -1
  20. package/dist/dash/standalone/server/manifest.json +1281 -1261
  21. package/dist/dash/standalone/server/modules-server-server-react-server/src/agent/context/{turn.dac8eb211c500271.js → turn.6bb73458768e222e.js} +4 -16
  22. package/dist/dash/standalone/server/modules-server-server-react-server/src/client/{index.0de14cb4e30bd70d.js → index.de1f1311bab4252f.js} +12 -6
  23. package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{defaults.1b615366c56838a1.js → defaults.e972c134a1ae918f.js} +3 -5
  24. package/dist/dash/standalone/server/modules-server-server-react-server/src/core/task/{log-view.60308a11f7001eb7.js → log-view.ec6391dbf3063330.js} +40 -48
  25. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/api/{load.be791a5eaf328738.js → load.30ed8c28774a1a82.js} +4 -4
  26. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.0fbfdba5254f7ae5.js → page.04762872666a6f0a.js} +1 -1
  27. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.70913bd4075da914.js → page.118a70787eff1761.js} +23 -3
  28. 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
  29. 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
  30. 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
  31. 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
  32. 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
  33. 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
  34. 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
  35. 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
  36. 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
  37. 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
  38. 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
  39. 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
  40. 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
  41. 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
  42. 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
  43. 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
  44. 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
  45. 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
  46. 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
  47. 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
  48. 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
  49. 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
  50. 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
  51. 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
  52. 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
  53. 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
  54. 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
  55. 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
  56. 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
  57. 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
  58. 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
  59. 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
  60. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.393cf7429eea189e.js → layout.81f7e055829854a3.js} +5 -5
  61. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.09bf294d753ee9d7.js +115 -0
  62. 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
  63. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{page.24a1987405ed7b17.js → page.fe608b8e661aba1d.js} +1 -1
  64. 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
  65. 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
  66. 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
  67. 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
  68. 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
  69. 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
  70. 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
  71. 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
  72. 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
  73. 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
  74. 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
  75. 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
  76. 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
  77. 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
  78. 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
  79. 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
  80. 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
  81. 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
  82. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.51fbeac76459433a.js +240 -0
  83. 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
  84. 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
  85. 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
  86. 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
  87. 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
  88. 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
  89. 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
  90. 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
  91. 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
  92. 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
  93. 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
  94. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.185dbc99875e208a.js → layout.296d70b95894209f.js} +1 -1
  95. 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
  96. 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
  97. 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
  98. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.e2915852cf82c86b.js → stream.c32d78562f75db25.js} +1 -1
  99. 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
  100. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.180765bdadf6d602.js → back.d6109e72fbd04b45.js} +2 -2
  101. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.572ad93c7707ab27.js → org.d3abfd4053b711ce.js} +1 -1
  102. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.c1281f9b12854210.js → confirm.29e198be34578222.js} +1 -1
  103. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.3a452a262f040973.js → filter.81bb9a5c60cd1089.js} +1 -1
  104. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.25d53e5b41b9c4e5.js → modal.0b69c7fd9db025b9.js} +1 -1
  105. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{segmented.a08dc08338d080e9.js → segmented.633abe26ff760e37.js} +1 -1
  106. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{sentinel.17cffebfc3103b9f.js → sentinel.0ddf515b8f09ef9f.js} +1 -1
  107. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tabs.66b2e54963f6901b.js → tabs.1600a0b563a5c7dd.js} +1 -1
  108. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.24036899654de6df.js → toolbar.8b3a460a65edf85a.js} +1 -1
  109. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.b9a5c37272250e82.js → action.67dd6f8ab1ae067d.js} +1 -1
  110. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{client.a3928fa2dcd27b75.js → client.78267fa3d7905d17.js} +1 -1
  111. package/dist/dash/standalone/static/assets/chunks/{action-71685b2d5ad9f359.js → action-a76e495fb39a73d3.js} +1 -1
  112. package/dist/dash/standalone/static/assets/chunks/{agent-pills-15da36c2cb81991b.js → agent-pills-4d3c6a2aa9eb1522.js} +1 -1
  113. package/dist/dash/standalone/static/assets/chunks/{agent-settings-form-6e6a87d6e673daa8.js → agent-settings-form-f7231a66e391f6b6.js} +1 -1
  114. package/dist/dash/standalone/static/assets/chunks/{agent-toggle-ca98586e3b4ce9ae.js → agent-toggle-d7d27123f2070f18.js} +1 -1
  115. package/dist/dash/standalone/static/assets/chunks/{agents-grid-29c399e46b4e9e2b.js → agents-grid-185ecb3d86c6c447.js} +1 -1
  116. package/dist/dash/standalone/static/assets/chunks/{back-fa9d6e37f9828093.js → back-e29cb10f5548ddae.js} +1 -1
  117. package/dist/dash/standalone/static/assets/chunks/{combo-86f3e11d1f6f6cee.js → combo-702c94817bf6ac17.js} +1 -1
  118. package/dist/dash/standalone/static/assets/chunks/composer-56ebf36d63400423.js +1 -0
  119. package/dist/dash/standalone/static/assets/chunks/{composer-85e0ec7163ae18b7.js → composer-a686289a79f64bae.js} +1 -1
  120. package/dist/dash/standalone/static/assets/chunks/composer-data-f46a9bc7a14b4f9a.js +1 -0
  121. package/dist/dash/standalone/static/assets/chunks/{confirm-c29a1db0130638d2.js → confirm-a78147b6ecef3847.js} +1 -1
  122. package/dist/dash/standalone/static/assets/chunks/{connect-apps-b73490e04ae6398d.js → connect-apps-696726aedab42c96.js} +1 -1
  123. package/dist/dash/standalone/static/assets/chunks/{connect-repositories-0de82daaf654b1d3.js → connect-repositories-7770ab805160028d.js} +1 -1
  124. package/dist/dash/standalone/static/assets/chunks/connections-list-07559f145f3e3da3.js +1 -0
  125. package/dist/dash/standalone/static/assets/chunks/{copy-445c11202f136275.js → copy-bdc60bdafe336316.js} +1 -1
  126. package/dist/dash/standalone/static/assets/chunks/create-link-426b0a5871ee41dd.js +1 -0
  127. package/dist/dash/standalone/static/assets/chunks/credentials-list-f07d090410104148.js +1 -0
  128. package/dist/dash/standalone/static/assets/chunks/{custom-range-a0630599f907b30e.js → custom-range-6618f32ef6cd4e80.js} +1 -1
  129. package/dist/dash/standalone/static/assets/chunks/editor-0860e370cbfc6b03.js +6 -0
  130. package/dist/dash/standalone/static/assets/chunks/engines-list-31b9bb7885924b05.js +1 -0
  131. package/dist/dash/standalone/static/assets/chunks/{field-b82a0f895266791c.js → field-bb8191aa02d07282.js} +1 -1
  132. package/dist/dash/standalone/static/assets/chunks/instructions-06b63e558f879da5.js +1 -0
  133. package/dist/dash/standalone/static/assets/chunks/{instructions-affaaeff366b1725.js → instructions-2d9fbcbfadac4f40.js} +1 -1
  134. package/dist/dash/standalone/static/assets/chunks/list-2773686bf8df64c7.js +1 -0
  135. package/dist/dash/standalone/static/assets/chunks/models-list-03611e64b6a07efe.js +1 -0
  136. package/dist/dash/standalone/static/assets/chunks/{notice-57db7a1f05b7308c.js → notice-d14fdac28139c0a8.js} +1 -1
  137. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-d3ba8ef89c59f801.js +1 -0
  138. package/dist/dash/standalone/static/assets/chunks/{outcome-dialog-5cf575a5e6921a5d.js → outcome-dialog-fde11a52c282301d.js} +1 -1
  139. package/dist/dash/standalone/static/assets/chunks/platform-actions-2a71c62b9f7eaef3.js +1 -0
  140. package/dist/dash/standalone/static/assets/chunks/platform-actions-70600c9943320152.js +1 -0
  141. package/dist/dash/standalone/static/assets/chunks/runners-list-edf536eb8003eab5.js +1 -0
  142. package/dist/dash/standalone/static/assets/chunks/secrets-list-e86122f73525ff95.js +1 -0
  143. package/dist/dash/standalone/static/assets/chunks/segmented-0b6dc6b93c35e0f5.js +1 -0
  144. package/dist/dash/standalone/static/assets/chunks/shared-init-b281027d465e004f.js +5 -0
  145. package/dist/dash/standalone/static/assets/chunks/shared-init-c3bd249cf1eca6d1.js +2 -0
  146. package/dist/dash/standalone/static/assets/chunks/side-toggle-9b3af821cfe4c824.js +1 -0
  147. package/dist/dash/standalone/static/assets/chunks/{tail-b1c46587301ef397.js → tail-f8804b80cf32f8d0.js} +1 -1
  148. package/dist/dash/standalone/static/assets/chunks/task-a37e7c26e82eb77d.js +1 -0
  149. package/dist/dash/standalone/static/assets/chunks/task-actions-705395565f2d83b8.js +1 -0
  150. package/dist/dash/standalone/static/assets/chunks/task-view-cb21169f38b56d15.js +6 -0
  151. package/dist/dash/standalone/static/assets/chunks/tasks-list-d7dccfd7e0623ae0.js +1 -0
  152. package/dist/dash/standalone/static/assets/chunks/{versions-list-21cb854e6a7108a7.js → versions-list-f8f2e71df691efda.js} +1 -1
  153. package/dist/dash/standalone/static/assets/create-param-id-c2c756f652f2fc30.css +1 -0
  154. package/dist/dash/standalone/static/assets/{dash-param-org-account-9471bec93c444232.css → dash-param-org-account-702f8a1b213e4026.css} +1 -1
  155. package/dist/dash/standalone/static/assets/dash-param-org-agents-aad2f9f93c06e9ab.css +1 -0
  156. package/dist/dash/standalone/static/assets/dash-param-org-agents-new-f9dcbcec36586f2b.css +1 -0
  157. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-8ff47f5d622c1f9b.css +1 -0
  158. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-907036d553cfeb36.css +1 -0
  159. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-5cc77badad15f00c.css +1 -0
  160. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-705d7c15868b4fd6.css +1 -0
  161. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-04e189c045098772.css +1 -0
  162. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-76fcd1ce7b3dae71.css +1 -0
  163. package/dist/dash/standalone/static/assets/{dash-param-org-bcfa3de29341d5ba.css → dash-param-org-eccb6bb9297a53e6.css} +1 -1
  164. package/dist/dash/standalone/static/assets/dash-param-org-operator-635a121f7a9a95bd.css +1 -0
  165. package/dist/dash/standalone/static/assets/{dash-param-org-settings-6d6902345d88a687.css → dash-param-org-settings-a3297dc4d9e0c961.css} +1 -1
  166. package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-bcb06f81d9e8268d.css +1 -0
  167. package/dist/dash/standalone/static/assets/{dash-param-org-setup-173efecd7b990c2e.css → dash-param-org-setup-df4be8b188b9777f.css} +1 -1
  168. package/dist/dash/standalone/static/assets/dash-param-org-tasks-16f9866a1b4801cd.css +1 -0
  169. package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-02ae551dcd852b57.css +1 -0
  170. package/dist/dash/standalone/static/assets/dash-param-org-usage-f2175403069aab99.css +1 -0
  171. package/dist/dash/standalone/static/assets/{global-87e1762113874559.css → global-e1de614478b64717.css} +1 -1
  172. package/dist/dash/standalone/static/assets/pnext-client-0dc829ba60df5c26.js +1 -0
  173. package/dist/dash/standalone/static/assets/pnext-client-14d191f7f1da6602.js +1 -0
  174. package/dist/dash/standalone/static/assets/pnext-client-169eaa63783b71fd.js +1 -0
  175. package/dist/dash/standalone/static/assets/pnext-client-1e34cfefafa70fac.js +1 -0
  176. package/dist/dash/standalone/static/assets/pnext-client-285d61f00a80f40b.js +1 -0
  177. package/dist/dash/standalone/static/assets/pnext-client-35b89c3ba23ee845.js +1 -0
  178. package/dist/dash/standalone/static/assets/pnext-client-6c42784e005d4b87.js +1 -0
  179. package/dist/dash/standalone/static/assets/{pnext-client-576c06599e241231.js → pnext-client-6cd93f9bd4cf6ffd.js} +1 -1
  180. package/dist/dash/standalone/static/assets/pnext-client-7355f473fade532d.js +1 -0
  181. package/dist/dash/standalone/static/assets/pnext-client-815c3c297f75efb0.js +1 -0
  182. package/dist/dash/standalone/static/assets/pnext-client-87fe73c10a4dc33c.js +1 -0
  183. package/dist/dash/standalone/static/assets/pnext-client-98b56a142d441260.js +1 -0
  184. package/dist/dash/standalone/static/assets/pnext-client-b4bafe68a40f720b.js +1 -0
  185. package/dist/dash/standalone/static/assets/pnext-client-bf61ff39bdc0db48.js +1 -0
  186. package/dist/dash/standalone/static/assets/pnext-client-c9fa86c244813f74.js +1 -0
  187. package/dist/dash/standalone/static/assets/pnext-client-d2e7a75e16221224.js +1 -0
  188. package/dist/dash/standalone/static/assets/pnext-client-d34e774405ea8da8.js +1 -0
  189. package/dist/dash/standalone/static/assets/pnext-client-d511822afdb41d1d.js +1 -0
  190. package/dist/dash/standalone/static/assets/pnext-client-e113aa2f25ecfe01.js +1 -0
  191. package/dist/dash/standalone/static/assets/{pnext-client-c2c30dcb6dc31d60.js → pnext-client-eb62f461d0c32266.js} +1 -1
  192. package/dist/{discover-CPZdprlQ.js → discover-CHfF4cEz.js} +1 -1
  193. package/dist/{docs-x-l7gjFE.js → docs-KHc0_gFX.js} +1 -1
  194. package/dist/{drive-Y-ZlgiUW.js → drive-Bwl7Bjme.js} +1 -1
  195. package/dist/emit-BrkJJPUE.js +11 -0
  196. package/dist/env-6Y-NNnYD.js +1 -0
  197. package/dist/errors-DO_IltpP.js +16 -0
  198. package/dist/exec-BmTa0vcO.js +4 -0
  199. package/dist/executor-ufWRqhdS.js +11 -0
  200. package/dist/flow/builtin/review/index.d.ts +1 -1
  201. package/dist/flow/builtin/review/index.js +3 -3
  202. package/dist/flow/index.d.ts +1 -1
  203. package/dist/flow/index.js +1 -1
  204. package/dist/hook-CIipj9MJ.js +1 -0
  205. package/dist/http-Cg8PSe-c.js +1 -0
  206. package/dist/{index-BdkdNI1v.d.ts → index-ChcxzFdB.d.ts} +50 -185
  207. package/dist/integrations-I7fRDk_l.js +4 -0
  208. package/dist/lib/broker.js +2 -2
  209. package/dist/load-BDlEFetB.js +2 -0
  210. package/dist/local-COlczLwI.js +5 -0
  211. package/dist/log-view-CfX9lakH.js +4 -0
  212. package/dist/{maintenance-BfxcatXH.js → maintenance-CKCIWOvn.js} +1 -1
  213. package/dist/{match-Bq4sDuCy.js → match-CufHAZQH.js} +1 -1
  214. package/dist/mcp-BkwmRHI9.js +2 -0
  215. package/dist/mcp-CGU7aoJ-.js +1 -0
  216. package/dist/{mcp-Bta09QCU.js → mcp-DAHbhfUh.js} +1 -1
  217. package/dist/models-CzggS7p2.js +1 -0
  218. package/dist/output-SNqdgh9A.js +17 -0
  219. package/dist/permission-MWFjKxqX.js +1 -0
  220. package/dist/{prompt-onpyIyXK.js → prompt-CIx4jwQF.js} +1 -1
  221. package/dist/refresh-CxsaX5R9.js +1 -0
  222. package/dist/remote-C9Hj2cby.js +2 -0
  223. package/dist/remote-HUZCWgfl.js +3 -0
  224. package/dist/{runner-CTFTuaz_.js → runner-DYysY1-G.js} +1 -1
  225. package/dist/runner.json +1 -1
  226. package/dist/runner.tgz +0 -0
  227. package/dist/runners-CfaGE0nV.js +36 -0
  228. package/dist/schema.js +1 -1
  229. package/dist/sdk.d.ts +285 -104
  230. package/dist/sdk.js +1 -1
  231. package/dist/serve-DdAdw7Su.js +4 -0
  232. package/dist/serve-NQykWAKV.js +1 -0
  233. package/dist/serve-vKNqVaVy.js +12 -0
  234. package/dist/slack-BtKvW_4v.js +5 -0
  235. package/dist/task-CFxs0E_J.js +1 -0
  236. package/dist/task-iuYQ0zAK.js +7 -0
  237. package/dist/tools-B6ZxcqRi.js +2 -0
  238. package/dist/{tools-CM4UCsId.js → tools-FVop8XYG.js} +1 -1
  239. package/dist/tools-search-kjKKolwp.js +1 -0
  240. package/dist/turn-DQ13lkPF.js +2 -0
  241. package/dist/types-DPtbvoo3.js +1 -0
  242. package/dist/types-DmThhjcW.js +1 -0
  243. package/dist/views-CMHXBMJp.js +3 -0
  244. package/dist/{wire-JMNPv8f6.js → wire-C9CupY_A.js} +1 -1
  245. package/dist/worker-BQpx1dPr.js +9 -0
  246. package/dist/worker-sTJL2eoe.js +1 -0
  247. package/docs/access.md +33 -0
  248. package/docs/agents/coder.md +0 -11
  249. package/docs/agents/index.md +1 -1
  250. package/docs/cli/agent.md +6 -6
  251. package/docs/cli/connection.md +5 -5
  252. package/docs/cli/flow.md +9 -9
  253. package/docs/cli/index.md +3 -3
  254. package/docs/cli/model.md +12 -10
  255. package/docs/cli/runner.md +1 -1
  256. package/docs/cli/server.md +2 -2
  257. package/docs/cli/task.md +23 -21
  258. package/docs/config.md +5 -15
  259. package/docs/flows.md +1 -1
  260. package/docs/models.md +7 -6
  261. package/docs/sdk.md +29 -29
  262. package/docs/self-host.md +25 -25
  263. package/package.json +2 -2
  264. package/plugins/claude/.claude-plugin/plugin.json +1 -1
  265. package/plugins/cursor/.cursor-plugin/plugin.json +1 -1
  266. package/dist/actions-BT7_eKXm.js +0 -10
  267. package/dist/adapter-BT8ECcRG.js +0 -1
  268. package/dist/apps-D-v5sQJk.js +0 -367
  269. package/dist/args-CbO_Ck9Z.js +0 -11
  270. package/dist/async-XNO3nqum.js +0 -3
  271. package/dist/cmd-DX5ByXo3.js +0 -119
  272. package/dist/connection-DNxi2btM.js +0 -1
  273. package/dist/context-65bOofts.js +0 -7
  274. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/operator-apps.a244f3199e7cf09c.js +0 -144
  275. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/task-actions.587da79d68ab8d14.js +0 -151
  276. package/dist/dash/standalone/static/assets/chunks/composer-910bb87127972f62.js +0 -1
  277. package/dist/dash/standalone/static/assets/chunks/composer-data-5fed6c271a4791ca.js +0 -1
  278. package/dist/dash/standalone/static/assets/chunks/connections-list-c50f58b4b28d10bb.js +0 -1
  279. package/dist/dash/standalone/static/assets/chunks/create-link-6d64a2d5f9ce6de0.js +0 -1
  280. package/dist/dash/standalone/static/assets/chunks/credentials-list-bee95799b2319b3b.js +0 -1
  281. package/dist/dash/standalone/static/assets/chunks/defaults-52f30e83d7666f7a.js +0 -1
  282. package/dist/dash/standalone/static/assets/chunks/editor-b9951819f21b2e43.js +0 -6
  283. package/dist/dash/standalone/static/assets/chunks/engines-list-2720c3e8fa12b2f7.js +0 -1
  284. package/dist/dash/standalone/static/assets/chunks/instructions-fd7402ac5aa8b50e.js +0 -1
  285. package/dist/dash/standalone/static/assets/chunks/list-d918f79562d497eb.js +0 -1
  286. package/dist/dash/standalone/static/assets/chunks/models-list-12bc7aceaa52f5b0.js +0 -1
  287. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-b219595be320108a.js +0 -1
  288. package/dist/dash/standalone/static/assets/chunks/platform-actions-1d27d2ba7eee9ff1.js +0 -1
  289. package/dist/dash/standalone/static/assets/chunks/platform-actions-dba96dcb0f6513db.js +0 -1
  290. package/dist/dash/standalone/static/assets/chunks/runners-list-36f8c5ecfcf8e9ae.js +0 -1
  291. package/dist/dash/standalone/static/assets/chunks/secrets-list-d7dbafd24dd18481.js +0 -1
  292. package/dist/dash/standalone/static/assets/chunks/segmented-8f809ebe712e92a7.js +0 -1
  293. package/dist/dash/standalone/static/assets/chunks/shared-init-cc13a835f3508618.js +0 -2
  294. package/dist/dash/standalone/static/assets/chunks/shared-init-f475017dd5811e33.js +0 -5
  295. package/dist/dash/standalone/static/assets/chunks/side-toggle-0aa237eba3dfe9c1.js +0 -1
  296. package/dist/dash/standalone/static/assets/chunks/task-681061023bdf0a49.js +0 -5
  297. package/dist/dash/standalone/static/assets/chunks/task-actions-c9e46e81604e85c5.js +0 -1
  298. package/dist/dash/standalone/static/assets/chunks/task-view-134186a544917ceb.js +0 -5
  299. package/dist/dash/standalone/static/assets/chunks/tasks-list-352a3222d878de0f.js +0 -1
  300. package/dist/dash/standalone/static/assets/create-param-id-da3f7e20689fe51a.css +0 -1
  301. package/dist/dash/standalone/static/assets/dash-param-org-agents-64500e78caae32df.css +0 -1
  302. package/dist/dash/standalone/static/assets/dash-param-org-agents-new-c067c22928a2d7cc.css +0 -1
  303. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-9dec87710e04f949.css +0 -1
  304. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-779c474301e04440.css +0 -1
  305. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-c7d594b5232630c2.css +0 -1
  306. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-a80e62570716fdb9.css +0 -1
  307. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-ce278252012297b9.css +0 -1
  308. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-d3b6d701eb8e1403.css +0 -1
  309. package/dist/dash/standalone/static/assets/dash-param-org-operator-b7bc6447cc27c9ce.css +0 -1
  310. package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-85c7af9a89eef06e.css +0 -1
  311. package/dist/dash/standalone/static/assets/dash-param-org-tasks-ae0bc03f468e63cc.css +0 -1
  312. package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-7325d8cff5be3592.css +0 -1
  313. package/dist/dash/standalone/static/assets/dash-param-org-usage-517b2a7ae462ac57.css +0 -1
  314. package/dist/dash/standalone/static/assets/pnext-client-05df74b071ddb0b3.js +0 -1
  315. package/dist/dash/standalone/static/assets/pnext-client-2c19cca257f78ae6.js +0 -1
  316. package/dist/dash/standalone/static/assets/pnext-client-2db05dfa62642a65.js +0 -1
  317. package/dist/dash/standalone/static/assets/pnext-client-36b0d6085a073880.js +0 -1
  318. package/dist/dash/standalone/static/assets/pnext-client-6aa0f19a30d58d63.js +0 -1
  319. package/dist/dash/standalone/static/assets/pnext-client-6b30b71f452f2f07.js +0 -1
  320. package/dist/dash/standalone/static/assets/pnext-client-6ccb4d4fff812db3.js +0 -1
  321. package/dist/dash/standalone/static/assets/pnext-client-74eb465defba421e.js +0 -1
  322. package/dist/dash/standalone/static/assets/pnext-client-8c692d12b2fd90d6.js +0 -1
  323. package/dist/dash/standalone/static/assets/pnext-client-92e17d39063a9ced.js +0 -1
  324. package/dist/dash/standalone/static/assets/pnext-client-93246aea268c2682.js +0 -1
  325. package/dist/dash/standalone/static/assets/pnext-client-9954dcbc0c579e0d.js +0 -1
  326. package/dist/dash/standalone/static/assets/pnext-client-c0dfa1cdde9a9855.js +0 -1
  327. package/dist/dash/standalone/static/assets/pnext-client-c28d38d4aafd4af6.js +0 -1
  328. package/dist/dash/standalone/static/assets/pnext-client-dbf741073e11eac0.js +0 -1
  329. package/dist/dash/standalone/static/assets/pnext-client-e29194a27280333f.js +0 -1
  330. package/dist/dash/standalone/static/assets/pnext-client-f8a7e692b27caad9.js +0 -1
  331. package/dist/dash/standalone/static/assets/pnext-client-fc5b8cfcba2a9f63.js +0 -1
  332. package/dist/env-B9JG6gwo.js +0 -1
  333. package/dist/errors-XBA-Ls4n.js +0 -10
  334. package/dist/exec-iFssTO5V.js +0 -3
  335. package/dist/executor-Dt2FFT-y.js +0 -11
  336. package/dist/http-BZfjbiov.js +0 -1
  337. package/dist/integrations-DyInAa5g.js +0 -2
  338. package/dist/load-zhcrwSRF.js +0 -2
  339. package/dist/local-D55UkW93.js +0 -5
  340. package/dist/log-view-CL3_S0IQ.js +0 -3
  341. package/dist/mcp-CUITALl1.js +0 -1
  342. package/dist/models-C1O2DrXx.js +0 -1
  343. package/dist/output-D95NoAA9.js +0 -16
  344. package/dist/prompts-B8pKhMcu.js +0 -4
  345. package/dist/refresh-D-0K9fo3.js +0 -1
  346. package/dist/remote-CDm0YUU3.js +0 -3
  347. package/dist/runners-CYTicTb7.js +0 -36
  348. package/dist/serve-Bzs_lEg-.js +0 -1
  349. package/dist/serve-CWtLyyTz.js +0 -12
  350. package/dist/serve-DE6A-rBk.js +0 -4
  351. package/dist/slack-Bo5l13Rs.js +0 -5
  352. package/dist/task-BU1JEK9X.js +0 -7
  353. package/dist/task-CPzBITsp.js +0 -1
  354. package/dist/tools-BMaKWTa6.js +0 -1
  355. package/dist/turn-DMvPfhb5.js +0 -3
  356. package/dist/types-D_xnfP7m.js +0 -1
  357. package/dist/views-DEdKqLm_.js +0 -5
  358. package/dist/worker-BuP_Lem1.js +0 -9
  359. package/dist/worker-C1tuzq5n.js +0 -1
  360. /package/dist/dash/standalone/server/modules-server-server-react-server/src/core/{errors.0a735590a5412ea6.js → errors.1bd0542d832ae0c0.js} +0 -0
  361. /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
  362. /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
  363. /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
  364. /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
  365. /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
  366. /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
  367. /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
  368. /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
  369. /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
  370. /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
  371. /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
  372. /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,8 +1,8 @@
1
1
  "use client";
2
2
  import "./runners-list.53c7ea80b6fb734c.css.pnext-asset.js";
3
3
  import { useEffect, useRef, useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
4
- import { client } from "../../../../../utils/client.a3928fa2dcd27b75.js";
5
- import { toastFailure, useAction } from "../../../../../utils/action.b9a5c37272250e82.js";
4
+ import { client } from "../../../../../utils/client.78267fa3d7905d17.js";
5
+ import { toastFailure, useAction } from "../../../../../utils/action.67dd6f8ab1ae067d.js";
6
6
  import { iDots, iDown, iGit, iMonitor, iPlug, iPlus, iSpark, iTerminal } from "../../../../../comps/ui/icons.e36c72f54750663a.js";
7
7
  import { Card, Loading } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
8
8
  import { Badge } from "../../../../../comps/ui/badge.c0bc352791a95fd6.js";
@@ -15,10 +15,10 @@ import { MenuItem, MenuRadio } from "../../../../../comps/ui/menu-items.1d082ac4
15
15
  import { Select } from "../../../../../comps/ui/select.2eb33e5bea28d804.js";
16
16
  import { ago, formatDuration } from "../../../../../utils/format.ceeaafa10a0563f3.js";
17
17
  import { isAdmin } from "../../../../../api/types.79f9092cdb5a00d1.js";
18
- import { SCOPES } from "../model-options.a96c11d11674f598.js";
19
- import { sortedRunners } from "../../tasks/composer-data.309a194fc7fa34be.js";
20
- import { useRunnerEvents } from "../../../../../comps/frame/task-toasts.0ed8ccaae81b9d53.js";
21
- import { useRemove } from "./list.083f5c665df04b1b.js";
18
+ import { SCOPES } from "../model-options.73f8d0d54f79d8e3.js";
19
+ import { sortedRunners } from "../../tasks/composer-data.05fc39e1a7fd1ab7.js";
20
+ import { useRunnerEvents } from "../../../../../comps/frame/task-toasts.44075fa7e04575e8.js";
21
+ import { useRemove } from "./list.a5b273558fb7f0f0.js";
22
22
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
23
23
  const KIND_ICONS = {
24
24
  local: iMonitor,
@@ -1,14 +1,14 @@
1
1
  "use client";
2
2
  import { useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
3
- import { client } from "../../../../../utils/client.a3928fa2dcd27b75.js";
4
- import { toastFailure, useAction } from "../../../../../utils/action.b9a5c37272250e82.js";
3
+ import { client } from "../../../../../utils/client.78267fa3d7905d17.js";
4
+ import { toastFailure, useAction } from "../../../../../utils/action.67dd6f8ab1ae067d.js";
5
5
  import { Card } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
6
6
  import { Badge } from "../../../../../comps/ui/badge.c0bc352791a95fd6.js";
7
7
  import { iPlus } from "../../../../../comps/ui/icons.e36c72f54750663a.js";
8
8
  import { Button, IconButton } from "../../../../../comps/ui/button.ce9e6cdb08ca86db.js";
9
9
  import { Select } from "../../../../../comps/ui/select.2eb33e5bea28d804.js";
10
- import { Row } from "./list.083f5c665df04b1b.js";
11
- import { CONNECTION_SCOPES } from "../model-options.a96c11d11674f598.js";
10
+ import { Row } from "./list.a5b273558fb7f0f0.js";
11
+ import { CONNECTION_SCOPES } from "../model-options.73f8d0d54f79d8e3.js";
12
12
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
13
13
  /** Secrets tasks read as environment variables; Enter adds one, and a broken one takes a new value in place. */
14
14
  export function TaskSecrets({ first, local, admin }) {
@@ -1,10 +1,10 @@
1
1
  import { Button } from "../../../../comps/ui/button.ce9e6cdb08ca86db.js";
2
2
  import { Suspense } from "../../../../../../../../../node_modules/preact/compat/dist/compat.mjs";
3
- import { load, orgOf } from "../../../../api/load.be791a5eaf328738.js";
4
- import { Page } from "../../../../comps/frame/page-head.85f15db7b648d48c.js";
5
- import { Tabs } from "../../../../comps/ui/tabs.66b2e54963f6901b.js";
6
- import { SETTINGS, SettingsHead } from "./settings-head.bbc7ced8dd5491eb.js";
7
- import { RememberedBack } from "../../../../comps/nav/back.180765bdadf6d602.js";
3
+ import { load, orgOf } from "../../../../api/load.30ed8c28774a1a82.js";
4
+ import { Page } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
5
+ import { Tabs } from "../../../../comps/ui/tabs.1600a0b563a5c7dd.js";
6
+ import { SETTINGS, SettingsHead } from "./settings-head.705be0b1129b97af.js";
7
+ import { RememberedBack } from "../../../../comps/nav/back.d6109e72fbd04b45.js";
8
8
  import { rememberedBack } from "../../../../comps/nav/back-cookie.942c0904e944d8d6.js";
9
9
  import { jsx as _jsx, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
10
10
  async function Members({ me }) {
@@ -1,5 +1,5 @@
1
1
  import { redirect } from "../../../../../../../../../node_modules/@wular/pnext/src/api/navigation.ts";
2
- import { orgOf } from "../../../../api/load.be791a5eaf328738.js";
2
+ import { orgOf } from "../../../../api/load.30ed8c28774a1a82.js";
3
3
  /** Settings opens on its first tab. */
4
4
  export default function SettingsPage({ request }) {
5
5
  if (!request) return null;
@@ -1,4 +1,4 @@
1
- import { PageHead } from "../../../../comps/frame/page-head.85f15db7b648d48c.js";
1
+ import { PageHead } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
2
2
  import { jsx as _jsx } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
3
3
  export const SETTINGS = [
4
4
  {
@@ -1,10 +1,10 @@
1
1
  "use client";
2
2
  import { useEffect, useState } from "../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
3
- import { client } from "../../../../utils/client.a3928fa2dcd27b75.js";
4
- import { toastFailure } from "../../../../utils/action.b9a5c37272250e82.js";
3
+ import { client } from "../../../../utils/client.78267fa3d7905d17.js";
4
+ import { toastFailure } from "../../../../utils/action.67dd6f8ab1ae067d.js";
5
5
  import { Loading } from "../../../../comps/ui/card.9f0d45b73bc78b4f.js";
6
6
  import { Button } from "../../../../comps/ui/button.ce9e6cdb08ca86db.js";
7
- import { CreateDialog, createForm } from "../agents/[slug]/(tabs)/platforms/platform-actions.8e7ca54dd1821e98.js";
7
+ import { CreateDialog, createForm } from "../agents/[slug]/(tabs)/platforms/platform-actions.000f2f87a48bfbc6.js";
8
8
  import { jsx as _jsx } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
9
9
  /** A create link opened outside the Platforms tab: its form here, or the platform's own. */
10
10
  export function CreateLink({ integration, state, info }) {
@@ -1,7 +1,7 @@
1
1
  "use client";
2
2
  import { toChildArray } from "../../../../../../../../../node_modules/preact/dist/preact.mjs";
3
3
  import { iAlert, iCheck } from "../../../../comps/ui/icons.e36c72f54750663a.js";
4
- import { Modal } from "../../../../comps/ui/modal.25d53e5b41b9c4e5.js";
4
+ import { Modal } from "../../../../comps/ui/modal.0b69c7fd9db025b9.js";
5
5
  import { Button } from "../../../../comps/ui/button.ce9e6cdb08ca86db.js";
6
6
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
7
7
  /** A flow's outcome, open on load, with its next steps as `children`; closing drops it from the address. */
@@ -1,15 +1,15 @@
1
1
  import { dynamic } from "../../../../../../../../../node_modules/@wular/pnext/src/api/dynamic.tsx";
2
2
  import { LinkButton } from "../../../../comps/ui/button.ce9e6cdb08ca86db.js";
3
- import { load, orgOf } from "../../../../api/load.be791a5eaf328738.js";
4
- import { Page, PageHead } from "../../../../comps/frame/page-head.85f15db7b648d48c.js";
5
- import { Settle } from "../../../../comps/frame/stream.e2915852cf82c86b.js";
3
+ import { load, orgOf } from "../../../../api/load.30ed8c28774a1a82.js";
4
+ import { Page, PageHead } from "../../../../comps/frame/page-head.87b92529dbb53ceb.js";
5
+ import { Settle } from "../../../../comps/frame/stream.c32d78562f75db25.js";
6
6
  import { TunnelGuide } from "../settings/tunnel-guide.29eee1a0b1852168.js";
7
7
  import { Outcome, readOutcome } from "./outcome.cbbc8cd1bbbee01b.js";
8
8
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
9
- const CreateLink = dynamic(() => import("./create-link.ff95e4b6977d0474.js").then((m) => m.CreateLink), undefined, {
9
+ const CreateLink = dynamic(() => import("./create-link.19b4c50ef497aca1.js").then((m) => m.CreateLink), undefined, {
10
10
  "file": decodeURIComponent(new URL("../../../../../../../../../../../../src/server/dash/app/dash/[org]/setup/create-link.tsx", import.meta.url).pathname),
11
11
  "exportName": "CreateLink",
12
- "id": "c-1b8b8de475"
12
+ "id": "c-7f1dcf028e"
13
13
  });
14
14
  /** Where a create link starts, and where create, install and link flows end when they know no agent. */
15
15
  export default function SetupPage({ request }) {
@@ -6,7 +6,7 @@ import { iActivity, iAlert, iChart, iCheck, iDown, iKey, iMessage, iRight, iSpar
6
6
  import { Icon } from "../../../../../comps/ui/icon.0874ca2f58f7db14.js";
7
7
  import { Loading } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
8
8
  import { ago, formatDuration, formatTime } from "../../../../../utils/format.ceeaafa10a0563f3.js";
9
- import { usePoll } from "../../../../../utils/client.a3928fa2dcd27b75.js";
9
+ import { usePoll } from "../../../../../utils/client.78267fa3d7905d17.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 ICONS = {
12
12
  assistant: iMessage,
@@ -1,9 +1,9 @@
1
- import { Page } from "../../../../../comps/frame/page-head.85f15db7b648d48c.js";
2
- import { OrgBack } from "../../../../../comps/nav/org.572ad93c7707ab27.js";
1
+ import { Page } from "../../../../../comps/frame/page-head.87b92529dbb53ceb.js";
2
+ import { OrgBack } from "../../../../../comps/nav/org.d3abfd4053b711ce.js";
3
3
  import { Loading } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
4
- import { LoadingTabs } from "../../../../../comps/ui/tabs.66b2e54963f6901b.js";
5
- import { BLANK } from "../../../../../comps/frame/loading-card.cc76fc9708142525.js";
6
- import { TASK_TABS } from "../list/task.0a1b5878dccd3b37.js";
4
+ import { LoadingTabs } from "../../../../../comps/ui/tabs.1600a0b563a5c7dd.js";
5
+ import { BLANK } from "../../../../../comps/frame/loading-card.1cea8a722c10b998.js";
6
+ import { TASK_TABS } from "../list/task.f089c1c122ed6dd2.js";
7
7
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
8
8
  export default function TaskLoading() {
9
9
  return /* @__PURE__ */ _jsx(Page, { children: /* @__PURE__ */ _jsx(LoadingTask, {}) });
@@ -1,15 +1,15 @@
1
- import "./task-view.57990cfd2bdf5c11.css.pnext-asset.js";
1
+ import "./task-view.42337a0d7c6ad0b6.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 { load } from "../../../../../api/load.be791a5eaf328738.js";
5
- import { Page } from "../../../../../comps/frame/page-head.85f15db7b648d48c.js";
6
- import { Settle } from "../../../../../comps/frame/stream.e2915852cf82c86b.js";
4
+ import { load } from "../../../../../api/load.30ed8c28774a1a82.js";
5
+ import { Page } from "../../../../../comps/frame/page-head.87b92529dbb53ceb.js";
6
+ import { Settle } from "../../../../../comps/frame/stream.c32d78562f75db25.js";
7
7
  import { jsx as _jsx } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
8
8
  // Hydrates with the page: the reply box is focused and the activity follows the run at once.
9
- const TaskView = dynamic(() => import("./task-view.dc294bb94b7437e1.js").then((m) => m.TaskView), undefined, {
9
+ const TaskView = dynamic(() => import("./task-view.3276538e8306fd8a.js").then((m) => m.TaskView), undefined, {
10
10
  "file": decodeURIComponent(new URL("../../../../../../../../../../../../../src/server/dash/app/dash/[org]/tasks/[id]/task-view.tsx", import.meta.url).pathname),
11
11
  "exportName": "TaskView",
12
- "id": "c-02b35d4653"
12
+ "id": "c-7de8ed486d"
13
13
  });
14
14
  export default async function TaskPage({ request, params }) {
15
15
  if (!request) return null;
@@ -0,0 +1,240 @@
1
+ "use client";
2
+ import { useState } from "../../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
3
+ import { client } from "../../../../../utils/client.78267fa3d7905d17.js";
4
+ import { useAction } from "../../../../../utils/action.67dd6f8ab1ae067d.js";
5
+ import { useRouter } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
6
+ import { useOrg } from "../../../../../comps/nav/org.d3abfd4053b711ce.js";
7
+ import { Button } from "../../../../../comps/ui/button.ce9e6cdb08ca86db.js";
8
+ import { Card } from "../../../../../comps/ui/card.9f0d45b73bc78b4f.js";
9
+ import { Field } from "../../../../../comps/ui/field.75588c33b72824a7.js";
10
+ import { ConfirmDialog } from "../../../../../comps/ui/confirm.29e198be34578222.js";
11
+ import { Menu } from "../../../../../comps/ui/menu.ee45bace979944b6.js";
12
+ import { MenuItem } from "../../../../../comps/ui/menu-items.1d082ac4dae8f3d4.js";
13
+ import { Icon } from "../../../../../comps/ui/icon.0874ca2f58f7db14.js";
14
+ import { iDots } from "../../../../../comps/ui/icons.e36c72f54750663a.js";
15
+ import { showToast } from "../../../../../comps/frame/task-toasts.44075fa7e04575e8.js";
16
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
17
+ /** Archive, Stop while it runs, and Delete behind the ⋯ menu; phones keep Archive in the menu too, away from Stop. */
18
+ export function TaskActions({ task, live }) {
19
+ const nav = useRouter();
20
+ const org = useOrg();
21
+ const action = useAction();
22
+ const removing = useAction({ leaves: true });
23
+ const [outcome, setOutcome] = useState("");
24
+ // Archived here shows at once; the task's events bring `archivedAt` after.
25
+ const [archivedHere, setArchivedHere] = useState(false);
26
+ const archived = archivedHere || Boolean(task.archivedAt);
27
+ const [confirming, setConfirming] = useState(false);
28
+ const act = async (name) => {
29
+ setOutcome("");
30
+ const ok = await action.run(name, () => client.tasks[name](task.task.id));
31
+ if (ok) setOutcome(name === "cancel" ? "Stop requested." : "Archived.");
32
+ return ok;
33
+ };
34
+ const remove = () => void removing.run("delete", async () => {
35
+ await client.tasks.delete(task.task.id);
36
+ nav.push("/dash/[org]/tasks", { params: { org } });
37
+ }).then((ok) => ok || setConfirming(false));
38
+ const archive = () => void act("archive").then(setArchivedHere);
39
+ return /* @__PURE__ */ _jsxs(_Fragment, { children: [
40
+ /* @__PURE__ */ _jsx("span", {
41
+ class: "flash",
42
+ role: "status",
43
+ children: outcome
44
+ }),
45
+ live ? /* @__PURE__ */ _jsx(Button, {
46
+ variant: "outline",
47
+ disabled: Boolean(action.pending),
48
+ loading: action.pending === "cancel",
49
+ onClick: () => void act("cancel"),
50
+ children: "Stop"
51
+ }) : archived ? null : /* @__PURE__ */ _jsx(Button, {
52
+ variant: "outline",
53
+ class: "archive",
54
+ disabled: Boolean(action.pending),
55
+ loading: action.pending === "archive",
56
+ onClick: archive,
57
+ children: "Archive"
58
+ }),
59
+ /* @__PURE__ */ _jsxs(Menu, {
60
+ summary: /* @__PURE__ */ _jsx(Icon, { d: iDots }),
61
+ button: "icon",
62
+ label: "More actions",
63
+ children: [
64
+ live && !archived ? /* @__PURE__ */ _jsx(MenuItem, {
65
+ title: "Archive",
66
+ onClick: archive
67
+ }) : null,
68
+ /* @__PURE__ */ _jsx(MenuItem, {
69
+ title: "Copy task id",
70
+ onClick: () => void navigator.clipboard.writeText(task.task.id).then(() => showToast("Copied", task.task.id))
71
+ }),
72
+ /* @__PURE__ */ _jsx(MenuItem, {
73
+ title: "Delete",
74
+ danger: true,
75
+ onClick: () => setConfirming(true)
76
+ })
77
+ ]
78
+ }),
79
+ /* @__PURE__ */ _jsx(ConfirmDialog, {
80
+ open: confirming,
81
+ title: "Delete this task?",
82
+ body: "Its conversation, activity and diff go with it.",
83
+ confirmLabel: "Delete",
84
+ busy: Boolean(removing.pending),
85
+ onConfirm: remove,
86
+ onClose: () => setConfirming(false)
87
+ })
88
+ ] });
89
+ }
90
+ /** The escalation waiting on a decision: the first unanswered one of the task's list, else the one it announced unless the list answers it. */
91
+ export const pendingApproval = (task) => task.approvals?.find((approval) => !approval.response) ?? (task.approvals?.some((approval) => approval.id === task.approval?.id) ? undefined : task.approval);
92
+ /** The turn an escalation was raised in: the first one still running or finished after it. */
93
+ export const raisedIn = (turns, approval) => {
94
+ const at = Date.parse(approval.createdAt ?? "");
95
+ const index = turns.findIndex((turn) => !turn.finishedAt || turn.finishedAt >= at);
96
+ return index < 0 ? turns.length - 1 : index;
97
+ };
98
+ /** Who decided what, as the platforms word it: `Denied by @muzam`, `Approved in Coder`, `Task stopped`. */
99
+ const decidedBy = ({ decision, by }) => decision === "closed" ? "Task stopped" : `${decision === "accept" ? "Approved" : "Denied"} ${by ? `by ${by}` : "in Coder"}`;
100
+ /** An approval's exact actions, folded under their count. */
101
+ function ApprovalActions({ actions }) {
102
+ return /* @__PURE__ */ _jsxs("details", {
103
+ class: "approval-actions",
104
+ children: [/* @__PURE__ */ _jsxs("summary", { children: [
105
+ actions.length,
106
+ " action",
107
+ actions.length === 1 ? "" : "s"
108
+ ] }), /* @__PURE__ */ _jsx("ol", { children: actions.map((action, index) => /* @__PURE__ */ _jsx("li", { children: /* @__PURE__ */ _jsx("code", { children: action }) }, index)) })]
109
+ });
110
+ }
111
+ /** An answered escalation where the conversation raised it: the reason, its actions and the decision. */
112
+ export function ApprovalEntry({ approval }) {
113
+ const response = approval.response;
114
+ return /* @__PURE__ */ _jsx(Card, {
115
+ title: "Approval needed",
116
+ children: /* @__PURE__ */ _jsxs("div", {
117
+ class: "body",
118
+ children: [
119
+ /* @__PURE__ */ _jsx("p", {
120
+ class: "approval",
121
+ children: approval.reason
122
+ }),
123
+ /* @__PURE__ */ _jsx(ApprovalActions, { actions: approval.actions }),
124
+ /* @__PURE__ */ _jsxs("p", {
125
+ class: "decision",
126
+ children: [/* @__PURE__ */ _jsx("strong", { children: decidedBy(response) }), response.reason ? `: ${response.reason}` : null]
127
+ })
128
+ ]
129
+ })
130
+ });
131
+ }
132
+ /** A decision as the conversation shows it: who decided, approved or denied, and why. */
133
+ export function DecisionTurn({ approval }) {
134
+ const response = approval.response;
135
+ return /* @__PURE__ */ _jsxs("div", {
136
+ class: `turn decision ${response.decision}`,
137
+ children: [
138
+ /* @__PURE__ */ _jsx("p", {
139
+ class: "who",
140
+ children: decidedBy(response)
141
+ }),
142
+ response.reason ? /* @__PURE__ */ _jsx("div", {
143
+ class: "prose",
144
+ children: response.reason
145
+ }) : null,
146
+ /* @__PURE__ */ _jsx(ApprovalActions, { actions: approval.actions })
147
+ ]
148
+ });
149
+ }
150
+ // Stable, so the field takes focus once, when Deny shows it.
151
+ const focus = (input) => input?.focus();
152
+ export function Approval({ task }) {
153
+ const action = useAction({ toast: "Not sent" });
154
+ const busy = action.pending;
155
+ // A sent decision shows on the card at once; the events stream catches up after.
156
+ const [decided, setDecided] = useState();
157
+ // Deny first asks why, in the card; leaving it empty is fine.
158
+ const [denying, setDenying] = useState();
159
+ const approval = pendingApproval(task);
160
+ const { id, reason, actions } = approval ?? { actions: [] };
161
+ const response = approval?.response ?? (decided?.id === id ? decided?.response : undefined);
162
+ const decide = async (decision, why) => {
163
+ const ok = await action.run(decision, () => client.tasks.approve(task.task.id, id ?? "", decision, why ? { reason: why } : {}));
164
+ if (!ok) return;
165
+ setDecided({
166
+ id,
167
+ response: {
168
+ decision,
169
+ ...why ? { reason: why } : {}
170
+ }
171
+ });
172
+ };
173
+ if (!approval) return null;
174
+ return /* @__PURE__ */ _jsx(Card, {
175
+ tone: response ? undefined : "accent",
176
+ title: "Approval needed",
177
+ actions: !response && task.task.flow === "default" && denying !== id ? /* @__PURE__ */ _jsxs(_Fragment, { children: [/* @__PURE__ */ _jsx(Button, {
178
+ variant: "outline",
179
+ size: "sm",
180
+ disabled: Boolean(busy),
181
+ onClick: () => setDenying(id),
182
+ children: "Deny"
183
+ }), /* @__PURE__ */ _jsx(Button, {
184
+ size: "sm",
185
+ disabled: Boolean(busy),
186
+ loading: busy === "accept",
187
+ onClick: () => void decide("accept"),
188
+ children: "Approve"
189
+ })] }) : undefined,
190
+ children: /* @__PURE__ */ _jsxs("div", {
191
+ class: "body",
192
+ children: [
193
+ denying === id && !response ? /* @__PURE__ */ _jsxs("form", {
194
+ class: "deny-why",
195
+ onSubmit: (event) => {
196
+ event.preventDefault();
197
+ const why = new FormData(event.currentTarget).get("why");
198
+ void decide("decline", String(why ?? "").trim());
199
+ },
200
+ onKeyDown: (event) => event.key === "Escape" && setDenying(undefined),
201
+ children: [/* @__PURE__ */ _jsx(Field, {
202
+ label: "Why?",
203
+ hint: "optional, the task reads it",
204
+ children: /* @__PURE__ */ _jsx("input", {
205
+ name: "why",
206
+ placeholder: "Use the staging bucket instead",
207
+ autocomplete: "off",
208
+ ref: focus
209
+ })
210
+ }), /* @__PURE__ */ _jsxs("span", {
211
+ class: "deny-why-actions",
212
+ children: [/* @__PURE__ */ _jsx(Button, {
213
+ variant: "ghost",
214
+ disabled: Boolean(busy),
215
+ onClick: () => setDenying(undefined),
216
+ children: "Cancel"
217
+ }), /* @__PURE__ */ _jsx(Button, {
218
+ type: "submit",
219
+ danger: true,
220
+ loading: busy === "decline",
221
+ children: "Deny"
222
+ })]
223
+ })]
224
+ }) : null,
225
+ reason ? /* @__PURE__ */ _jsx("p", {
226
+ class: "approval",
227
+ children: reason
228
+ }) : null,
229
+ /* @__PURE__ */ _jsx(ApprovalActions, { actions }),
230
+ response ? /* @__PURE__ */ _jsxs("p", {
231
+ class: "decision",
232
+ children: [/* @__PURE__ */ _jsx("strong", { children: decidedBy(response) }), response.reason ? `: ${response.reason}` : null]
233
+ }) : /* @__PURE__ */ _jsx("p", {
234
+ class: "muted",
235
+ children: "Your decision reaches the task as a message."
236
+ })
237
+ ]
238
+ })
239
+ });
240
+ }
@@ -1,16 +1,16 @@
1
1
  "use client";
2
- import "./task-view.57990cfd2bdf5c11.css.pnext-asset.js";
2
+ import "./task-view.42337a0d7c6ad0b6.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
- import { serverEvents } from "../../../../../../../client/index.0de14cb4e30bd70d.js";
7
- import { LogView } from "../../../../../../../core/task/log-view.60308a11f7001eb7.js";
8
- import { EMPTY_MESSAGE, EMPTY_MESSAGE_NOTICE, SKIPPED } from "../../../../../../../core/defaults.1b615366c56838a1.js";
9
- import { client } from "../../../../../utils/client.a3928fa2dcd27b75.js";
6
+ import { serverEvents } from "../../../../../../../client/index.de1f1311bab4252f.js";
7
+ import { LogView } from "../../../../../../../core/task/log-view.ec6391dbf3063330.js";
8
+ import { EMPTY_MESSAGE, EMPTY_MESSAGE_NOTICE, SKIPPED } from "../../../../../../../core/defaults.e972c134a1ae918f.js";
9
+ import { client } from "../../../../../utils/client.78267fa3d7905d17.js";
10
10
  import { formatDate, formatDuration, reasonText } from "../../../../../utils/format.ceeaafa10a0563f3.js";
11
11
  import { Link } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/link.tsx";
12
12
  import { useSearchParams } from "../../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
13
- import { useOrg } from "../../../../../comps/nav/org.572ad93c7707ab27.js";
13
+ import { useOrg } from "../../../../../comps/nav/org.d3abfd4053b711ce.js";
14
14
  import { iAgent, iClock, iDown, iFolder, iPlug, iRight, iTerminal } from "../../../../../comps/ui/icons.e36c72f54750663a.js";
15
15
  import { Badge } from "../../../../../comps/ui/badge.c0bc352791a95fd6.js";
16
16
  import { Button } from "../../../../../comps/ui/button.ce9e6cdb08ca86db.js";
@@ -19,15 +19,15 @@ import { Collapse } from "../../../../../comps/ui/collapse.93e4d1b20c2873ed.js";
19
19
  import { Icon } from "../../../../../comps/ui/icon.0874ca2f58f7db14.js";
20
20
  import { Menu } from "../../../../../comps/ui/menu.ee45bace979944b6.js";
21
21
  import { MenuRadio } from "../../../../../comps/ui/menu-items.1d082ac4dae8f3d4.js";
22
- import { Back, PageHead } from "../../../../../comps/frame/page-head.85f15db7b648d48c.js";
22
+ import { Back, PageHead } from "../../../../../comps/frame/page-head.87b92529dbb53ceb.js";
23
23
  import { markdown } from "../../agents/agent/instructions.85b1cd986a9edbb5.js";
24
- import { Status } from "../list/status.16190fdd5fd7daad.js";
25
- import { eventMessages, folderName, replyRequired, sourceLabel, taskActive, taskTitle, TASK_TABS } from "../list/task.0a1b5878dccd3b37.js";
26
- import { useAction } from "../../../../../utils/action.b9a5c37272250e82.js";
24
+ import { Status } from "../list/status.cb704b48ce86cc7d.js";
25
+ import { eventMessages, folderName, replyRequired, sourceLabel, taskActive, taskModel, taskTitle, TASK_TABS } from "../list/task.f089c1c122ed6dd2.js";
26
+ import { useAction } from "../../../../../utils/action.67dd6f8ab1ae067d.js";
27
27
  import { useZone } from "../../../../zone.0515a688ee5ff6ca.js";
28
- import { Approval, TaskActions } from "./task-actions.587da79d68ab8d14.js";
29
- import { Activity, RunPreview, runSummary } from "./activity.3c79cf14feff12bf.js";
30
- import { toastError, useTaskEvents, watchTask } from "../../../../../comps/frame/task-toasts.0ed8ccaae81b9d53.js";
28
+ import { Approval, ApprovalEntry, DecisionTurn, TaskActions, raisedIn } from "./task-actions.51fbeac76459433a.js";
29
+ import { Activity, RunPreview, runSummary } from "./activity.a911169a820ba604.js";
30
+ import { toastError, useTaskEvents, watchTask } from "../../../../../comps/frame/task-toasts.44075fa7e04575e8.js";
31
31
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "../../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
32
32
  function messageOf(value, fallback) {
33
33
  if (typeof value === "string") return value;
@@ -149,17 +149,17 @@ function TaskBack() {
149
149
  function TaskHead({ task, tz }) {
150
150
  const org = useOrg();
151
151
  const live = taskActive(task);
152
- const { engine, model, effort } = {
153
- ...task.task.definition,
154
- ...task.task.usage
155
- };
152
+ const model = taskModel(task);
156
153
  const source = task.task.event?.integration ?? task.task.source;
157
154
  const kind = task.task.event?.type ?? (task.task.flow !== "default" ? task.task.flow : undefined);
158
155
  const title = useMemo(() => taskTitle(task).split("\n")[0], [task.task, task.turns]);
159
156
  return /* @__PURE__ */ _jsx(PageHead, {
160
157
  back: /* @__PURE__ */ _jsx(TaskBack, {}),
161
158
  title,
162
- meta: /* @__PURE__ */ _jsxs(_Fragment, { children: [/* @__PURE__ */ _jsx(Status, { status: task.status }), task.archivedAt ? /* @__PURE__ */ _jsx(Badge, { children: "archived" }) : null] }),
159
+ meta: /* @__PURE__ */ _jsxs(_Fragment, { children: [/* @__PURE__ */ _jsx(Status, {
160
+ status: task.status,
161
+ approvals: task.approvals
162
+ }), task.archivedAt ? /* @__PURE__ */ _jsx(Badge, { children: "archived" }) : null] }),
163
163
  lead: /* @__PURE__ */ _jsxs(_Fragment, { children: [
164
164
  /* @__PURE__ */ _jsxs("span", {
165
165
  class: "fact",
@@ -191,14 +191,10 @@ function TaskHead({ task, tz }) {
191
191
  },
192
192
  search: { back: `/dash/${org}/tasks/${task.task.id}` },
193
193
  children: [/* @__PURE__ */ _jsx(Icon, { d: iAgent }), task.task.agent]
194
- }), engine ? /* @__PURE__ */ _jsx("span", {
194
+ }), model ? /* @__PURE__ */ _jsx("span", {
195
195
  class: "fact-dim",
196
196
  title: "Engine, model and effort",
197
- children: [
198
- engine,
199
- model,
200
- effort
201
- ].filter(Boolean).join("/")
197
+ children: model
202
198
  }) : null]
203
199
  })
204
200
  ] }),
@@ -336,6 +332,7 @@ export function TaskView({ initial, tz: serverZone }) {
336
332
  ...current,
337
333
  status: event.status,
338
334
  approval: event.approval ?? undefined,
335
+ approvals: event.approvals ?? undefined,
339
336
  archivedAt: event.archivedAt,
340
337
  startedAt: event.startedAt,
341
338
  finishedAt: event.finishedAt,
@@ -399,6 +396,7 @@ export function TaskView({ initial, tz: serverZone }) {
399
396
  // Turns show once their log lines are in, so a reply never pushes what is already shown.
400
397
  const loaded = turns.findIndex((turn) => !caughtUp && (!lines.length || within(turn, lines.at(-1))));
401
398
  const shown = loaded < 0 ? turns : turns.slice(0, loaded);
399
+ const answered = (task.approvals ?? []).filter((approval) => approval.response);
402
400
  const send = async () => {
403
401
  const text = input.current?.value.trim();
404
402
  if (!text || sending) return;
@@ -501,13 +499,12 @@ export function TaskView({ initial, tz: serverZone }) {
501
499
  }, key);
502
500
  })
503
501
  }),
504
- task.approval ? /* @__PURE__ */ _jsx(Approval, { task }) : null,
505
502
  tab === "activity" ? /* @__PURE__ */ _jsx(Activity, {
506
503
  rows,
507
504
  live,
508
505
  tz,
509
506
  at
510
- }) : /* @__PURE__ */ _jsxs("div", {
507
+ }) : /* @__PURE__ */ _jsxs(_Fragment, { children: [/* @__PURE__ */ _jsx(Approval, { task }), /* @__PURE__ */ _jsxs("div", {
511
508
  class: "convo",
512
509
  children: [shown.map((turn, index) => {
513
510
  const last = index === turns.length - 1;
@@ -517,8 +514,10 @@ export function TaskView({ initial, tz: serverZone }) {
517
514
  value: turn.result,
518
515
  required: parsed[index].required
519
516
  });
517
+ const decision = turn.approval ? task.approvals?.find((approval) => approval.id === turn.approval) : undefined;
520
518
  return /* @__PURE__ */ _jsxs(Fragment, { children: [
521
- parsed[index].messages.map((message, index) => /* @__PURE__ */ _jsxs("div", {
519
+ decision ? /* @__PURE__ */ _jsx(DecisionTurn, { approval: decision }) : null,
520
+ (decision ? [] : parsed[index].messages).map((message, index) => /* @__PURE__ */ _jsxs("div", {
522
521
  class: "turn prompt",
523
522
  children: [/* @__PURE__ */ _jsx("p", {
524
523
  class: "who",
@@ -579,6 +578,7 @@ export function TaskView({ initial, tz: serverZone }) {
579
578
  ]
580
579
  }, index);
581
580
  }),
581
+ answered.filter((approval) => raisedIn(turns, approval) === index).map((approval) => /* @__PURE__ */ _jsx(ApprovalEntry, { approval }, approval.id)),
582
582
  turn.result && (body || last && foot) ? /* @__PURE__ */ _jsxs(Card, {
583
583
  title: "Result",
584
584
  children: [body, last ? foot : null]
@@ -601,7 +601,7 @@ export function TaskView({ initial, tz: serverZone }) {
601
601
  }) : null
602
602
  ] }, index);
603
603
  }), shown.length < turns.length ? /* @__PURE__ */ _jsx(Loading, { label: "Loading the conversation." }) : null]
604
- }),
604
+ })] }),
605
605
  replies ? /* @__PURE__ */ _jsx("form", {
606
606
  ref: reply,
607
607
  class: "reply",
@@ -1,6 +1,6 @@
1
1
  import { localServer } from "../../../../api/types.79f9092cdb5a00d1.js";
2
- import { modelsByEngine } from "../settings/model-options.a96c11d11674f598.js";
3
- import { DEFAULT_ENGINE } from "../../../../../../core/defaults.1b615366c56838a1.js";
2
+ import { modelsByEngine } from "../settings/model-options.73f8d0d54f79d8e3.js";
3
+ import { DEFAULT_ENGINE } from "../../../../../../core/defaults.e972c134a1ae918f.js";
4
4
  export const PLACEHOLDER = "What should the agent do? Type / for flows and reviews.";
5
5
  export const CHOICE = {
6
6
  repo: "",
@@ -2,25 +2,25 @@
2
2
  import "./composer.5b8687662e1629fa.css.pnext-asset.js";
3
3
  import { Fragment } from "../../../../../../../../../node_modules/preact/dist/preact.mjs";
4
4
  import { useEffect, useId, useLayoutEffect, useRef, useState } from "../../../../../../../../../node_modules/preact/hooks/dist/hooks.mjs";
5
- import { client } from "../../../../utils/client.a3928fa2dcd27b75.js";
6
- import { toastFailure, useAction } from "../../../../utils/action.b9a5c37272250e82.js";
5
+ import { client } from "../../../../utils/client.78267fa3d7905d17.js";
6
+ import { toastFailure, useAction } from "../../../../utils/action.67dd6f8ab1ae067d.js";
7
7
  import { formatDate } from "../../../../utils/format.ceeaafa10a0563f3.js";
8
8
  import { iAlert, iPlus, iRight, iSliders, iSteer, iX } from "../../../../comps/ui/icons.e36c72f54750663a.js";
9
9
  import { useRouter } from "../../../../../../../../../node_modules/@wular/pnext/src/api/client-navigation.ts";
10
- import { useOrg } from "../../../../comps/nav/org.572ad93c7707ab27.js";
10
+ import { useOrg } from "../../../../comps/nav/org.d3abfd4053b711ce.js";
11
11
  import { Loading } from "../../../../comps/ui/card.9f0d45b73bc78b4f.js";
12
12
  import { Button, IconButton } from "../../../../comps/ui/button.ce9e6cdb08ca86db.js";
13
13
  import { reasonText } from "../../../../utils/format.ceeaafa10a0563f3.js";
14
14
  import { Icon } from "../../../../comps/ui/icon.0874ca2f58f7db14.js";
15
15
  import { Select } from "../../../../comps/ui/select.2eb33e5bea28d804.js";
16
16
  import { MenuLabel, MenuLink, MenuNote, MenuOption, MenuPanel, MenuRadio, MenuRow } from "../../../../comps/ui/menu-items.1d082ac4dae8f3d4.js";
17
- import { connectRepositories } from "../agents/editor/connect-repositories.43b4b28f194ea842.js";
18
- import { EFFORTS, ENGINES, ENGINE_NAMES, PERMISSIONS, defaultLabel, modelValue, splitModel } from "../settings/model-options.a96c11d11674f598.js";
19
- import { folderName } from "./list/task.0a1b5878dccd3b37.js";
20
- import { watchTask } from "../../../../comps/frame/task-toasts.0ed8ccaae81b9d53.js";
21
- import { CHOICE, PLACEHOLDER, loadComposer, savedChoice, usableAgent } from "./composer-data.309a194fc7fa34be.js";
17
+ import { connectRepositories } from "../agents/editor/connect-repositories.ff8b78a03153239b.js";
18
+ import { EFFORTS, ENGINES, ENGINE_NAMES, PERMISSIONS, defaultLabel, modelValue, splitModel } from "../settings/model-options.73f8d0d54f79d8e3.js";
19
+ import { folderName } from "./list/task.f089c1c122ed6dd2.js";
20
+ import { watchTask } from "../../../../comps/frame/task-toasts.44075fa7e04575e8.js";
21
+ import { CHOICE, PLACEHOLDER, loadComposer, savedChoice, usableAgent } from "./composer-data.05fc39e1a7fd1ab7.js";
22
22
  import { Notice } from "../../../../comps/ui/notice.f395f231cbb96445.js";
23
- import { CredentialsLink } from "../../../../comps/nav/back.180765bdadf6d602.js";
23
+ import { CredentialsLink } from "../../../../comps/nav/back.d6109e72fbd04b45.js";
24
24
  import { jsx as _jsx, Fragment as _Fragment, jsxs as _jsxs } from "../../../../../../../../../node_modules/preact/jsx-runtime/dist/jsxRuntime.mjs";
25
25
  const DRAFT = "coder:draft";
26
26
  const CONNECT = "+connect";