@wular/coder 0.4.8 → 0.4.9

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 (402) hide show
  1. package/dist/{add-yIlNqPSu.js → add-BftLUw05.js} +1 -1
  2. package/dist/{add-BDBCRqKN.js → add-CXAGrCnC.js} +1 -1
  3. package/dist/{add-Df1Ezy3y.js → add-Ck_y_nKX.js} +2 -2
  4. package/dist/{add-DcR15CL7.js → add-CvBTpxgY.js} +1 -1
  5. package/dist/agent-ChnedLBv.js +8 -0
  6. package/dist/{agent-B2Ikhp7u.js → agent-vYm7Geh-.js} +1 -1
  7. package/dist/{alias-DghaKDbh.js → alias-BpgVDY6_.js} +1 -1
  8. package/dist/{app-snjvOKJA.js → app-CJPFaLIV.js} +1 -1
  9. package/dist/{approvals-BziBKWgU.js → approvals-CE8dXZhE.js} +1 -1
  10. package/dist/{approve-DAuvq9Eq.js → approve-CBuGu3du.js} +1 -1
  11. package/dist/{approve-DKrTnZfk.js → approve-dWW4qt76.js} +1 -1
  12. package/dist/{apps-aj_JtpAm.js → apps-B60OpAHX.js} +2 -2
  13. package/dist/{archive-BhfGdyuC.js → archive-C89Z4kSx.js} +1 -1
  14. package/dist/{archive-DxWYJ7Zi.js → archive-CmRVm4iS.js} +1 -1
  15. package/dist/{archive-sweep-CqTQUafj.js → archive-sweep-EiiXIqjr.js} +1 -1
  16. package/dist/{ask-B_si1yM4.js → ask-Bou8zg-4.js} +1 -1
  17. package/dist/auth-CImjIcG5.js +1 -0
  18. package/dist/{auth-B3RiDPMI.js → auth-CWzSsiSC.js} +1 -1
  19. package/dist/{chat-DLolwsuq.js → chat-Djps0Seg.js} +1 -1
  20. package/dist/{cli-D5hyqGq0.js → cli-ZUdhZnuW.js} +1 -1
  21. package/dist/cli.js +1 -1
  22. package/dist/{config-BdeKsCPh.js → config-CF3_A3NX.js} +1 -1
  23. package/dist/{connection-wq0CJZKh.js → connection-BCRJHTgp.js} +1 -1
  24. package/dist/{connection-CQPndo-u.js → connection-BtUZA2St.js} +1 -1
  25. package/dist/{create-8_XbAnHs.js → create-Z0QxarzN.js} +1 -1
  26. package/dist/credentials-Dt2uP3AQ.js +1 -0
  27. package/dist/dash/standalone/server/build-index.json +1 -1
  28. package/dist/dash/standalone/server/manifest.json +1614 -1463
  29. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/connect/{page.a4ec4bce860e3e71.js → page.a2a16ead424b2185.js} +3 -3
  30. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/create/[id]/{page.4c818ef18a084013.js → page.90e312759b87cfa2.js} +2 -2
  31. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{loading.f8373428f20c270b.js → loading.787d09fb0b2b6b57.js} +2 -2
  32. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{notify.b0946ff7951ecc11.js → notify.5fc5e4346dcbfc32.js} +1 -1
  33. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/{page.55eef4b0e71415d9.js → page.1641da62504df30a.js} +11 -12
  34. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/sign-out.5dac3bf780c74354.js +20 -0
  35. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/agent-menu.f1dacbfebc27a656.js +13 -0
  36. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{agents-grid.3a3c550ff68aeb11.js → agents-grid.5da78e9a741b028a.js} +7 -7
  37. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{connect-apps.7a4cfa5c917e5db9.js → connect-apps.722bc3e4ec1f9fad.js} +8 -7
  38. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{loading.fd26a5414b0a06db.js → loading.2815a010098aa676.js} +4 -4
  39. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/{page.b2bed855b68a77b2.js → page.b01992337eeca2dc.js} +7 -7
  40. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{layout.95b8bf3c438955c2.js → layout.8aeb0fddffe22ad5.js} +24 -26
  41. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{loading.39c596735b108f80.js → loading.50692149df9abb28.js} +1 -1
  42. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{page.1401a08ea4e27c01.js → page.e2e23101c05b9548.js} +15 -14
  43. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{loading.2d6e75e5923f73f2.js → loading.31d2c13229ae9222.js} +2 -2
  44. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{page.848ccc3a609385a9.js → page.11c7b50d6119efe6.js} +32 -37
  45. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/platforms/{platform-actions.4b14873a20ebd56c.js → platform-actions.92ac7aa258e706a4.js} +49 -66
  46. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{agent-settings-form.dd8f3cbc00876ebd.js → agent-settings-form.fc530622fa2292a0.js} +16 -19
  47. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{loading.80f597fd04fc4a97.js → loading.bf17bd39f41db826.js} +1 -1
  48. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/settings/{page.35d01036ce840ff9.js → page.6e95dfe07dfebf4b.js} +4 -4
  49. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{loading.ff54c7100f781fbc.js → loading.7b17368ee81275ab.js} +1 -1
  50. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/tasks/{page.e5a405c518c1d8e6.js → page.0bd3da9b3227b12f.js} +1 -1
  51. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{loading.55aa8df7712e6820.js → loading.d2cc33cf044a92a3.js} +3 -3
  52. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/usage/{page.67c3489c62b661da.js → page.91c43fbc54e37646.js} +4 -4
  53. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/(tabs)/{versions-list.0c20e2100b321316.js → versions-list.23e4131cdf71daa5.js} +2 -2
  54. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/loading.47c4c8f31b4f17cc.js +23 -0
  55. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/{page.7132b3ef68d33cc4.js → page.cbd2bad8fede6fef.js} +6 -6
  56. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-pills.19e913c8cb22db21.js → agent-pills.d8e785c45f5410a6.js} +9 -10
  57. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{agent-toggle.ec6d07ccd1f9796e.js → agent-toggle.a6e27ac4171bfdb0.js} +13 -6
  58. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{hero.9de48723967d8546.js → hero.96bdca9762ff3e2e.js} +5 -5
  59. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/agent/{instructions.6558ffd02a59ad53.js → instructions.ca0c09d4849bfc30.js} +1 -1
  60. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.9e1a0945f6880076.js → editor.20c42102ed262db7.js} +33 -36
  61. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{import-picker.e54af9841da11373.js → import-picker.b8093a7ca97656a5.js} +27 -32
  62. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{loading.38715a27e2d25ebd.js → loading.6012b36c10c68657.js} +11 -13
  63. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/new/{page.6c8e9ef5d72b7ef1.js → page.1ebdb0247922fc14.js} +4 -4
  64. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.c67ccee8b4770821.js → layout.6d2242d49ae9dd35.js} +51 -81
  65. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{operator-apps.3365f9248dfe735d.js → operator-apps.a56516bc0ba79187.js} +18 -21
  66. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/operator/{page.c60ebc5afe4dcdae.js → page.af19494c89ac62c0.js} +6 -6
  67. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{connections-list.544315916300ed07.js → connections-list.9b96914a4fa4e2a9.js} +52 -58
  68. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.41ce6eb622300bb3.js → credentials-list.dbaa8f3d82445b90.js} +147 -165
  69. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials.c1a312e6ec58db83.js → credentials.c4b01484d183549d.js} +7 -7
  70. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{engines-list.75dc69caed34ff8f.js → engines-list.5c03e83663a6a9b7.js} +9 -9
  71. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{list.6d6180438e2bd0c8.js → list.df5ee5d74bec0f5b.js} +10 -8
  72. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{loading.9d7c30db2ecccda3.js → loading.480b8f915bae18c1.js} +1 -1
  73. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{models-list.04eb5a47bca3bd09.js → models-list.2835a48d1edeb6d1.js} +17 -18
  74. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{page.dd00f57d398be882.js → page.1d53415d55e77fee.js} +15 -15
  75. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{runners-list.e644287ae91ea8c3.js → runners-list.bf5746f48e3f78f5.js} +30 -37
  76. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{secrets-list.35fa72bf3f00d1af.js → secrets-list.b0dedc1567efc09f.js} +14 -13
  77. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{layout.3a17085fb262e4ab.js → layout.567d27e39d42d719.js} +8 -8
  78. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{settings-head.a14b9796a8af62dc.js → settings-head.5e2dff2550b3b73e.js} +1 -1
  79. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/{tunnel-guide.1fd664df1fd0e3c1.js → tunnel-guide.d6fae1c5d62f2c74.js} +1 -1
  80. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{create-link.3acdd50e1cc0c729.js → create-link.03989d2f7585a045.js} +5 -6
  81. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{outcome-dialog.d730e0bfbe0cf2f8.js → outcome-dialog.4debc1a8c644df4b.js} +6 -6
  82. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/setup/{page.079600422889e725.js → page.43c969f59a710781.js} +9 -8
  83. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{activity.ed49ee2686d1ee41.js → activity.3755ae6065c3fc28.js} +3 -3
  84. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{loading.0d973b51fee68801.js → loading.9efbed6531879838.js} +4 -4
  85. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{page.05dd344bada1d4d8.js → page.7b92dcd08095b934.js} +4 -4
  86. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-actions.ece7ec732352ce70.js → task-actions.62422b873f98ee8e.js} +24 -24
  87. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/[id]/{task-view.8a5908c42647923f.js → task-view.ae0e9c9dffe0ff9f.js} +32 -38
  88. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.c7ec618e215d63ce.js → composer.fdad306647cbaa59.js} +71 -109
  89. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-list.0976f1812d6d15f5.js → tasks-list.952f37a9486aebe7.js} +28 -28
  90. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/list/{tasks-section.fd72404364042b87.js → tasks-section.1247d4765d0e1bdc.js} +4 -4
  91. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{page.293492d13a9dca2e.js → page.cf74c55e6528c7c9.js} +2 -2
  92. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{custom-range.471edcb853889c2e.js → custom-range.2d55812ec086b540.js} +25 -26
  93. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{day-chart.d40438efa74b0596.js → day-chart.08d378cca93d3ab1.js} +1 -1
  94. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{loading.5b28c7d8f3a473a3.js → loading.7aed78a276b08a4f.js} +3 -3
  95. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{page.69adbf6cde427292.js → page.fed9345ebac3e1b3.js} +6 -6
  96. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/range-bar.b1296c2378128472.js +57 -0
  97. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{top-agents.b00f571862b5b608.js → top-agents.e215d44e00192271.js} +2 -2
  98. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{layout.ab6f86cc5b8b2dab.js → layout.b7e3af142b17941b.js} +1 -1
  99. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/{page.088b41424cd6cf3c.js → page.226544940a39fd3a.js} +5 -3
  100. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{drawer.0e2e3636f33049f5.js → drawer.8287e5a02144e4f1.js} +8 -9
  101. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{foreign-link.fe46528a6a66c0f4.js → foreign-link.86f0cc228353da6e.js} +4 -4
  102. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/loading-card.0c6ac62ff3ccf38a.js +40 -0
  103. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{page-head.e5d2185c1cdac740.js → page-head.bd54e52ac4a7a89c.js} +8 -1
  104. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{stream.2fea238dc4f4f9a4.js → stream.1cc355a530dcc5e3.js} +1 -1
  105. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{task-toasts.4282affa47415a36.js → task-toasts.63f673632770924d.js} +2 -2
  106. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{theme-choices.ef190ef1cd197199.js → theme-choices.5f59814a635caeec.js} +8 -17
  107. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{back.af528135d7e33d6d.js → back.5681714d0cf45454.js} +6 -6
  108. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{org.813dc34bd23a336f.js → org.4d84ad0ac340fbe2.js} +1 -1
  109. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/nav/{side-toggle.bafcb4b273b1c4d0.js → side-toggle.249400957d6a7527.js} +9 -9
  110. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.0851f234f300c694.js +83 -0
  111. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/button.983daea9e687fc5d.js +91 -0
  112. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{card.6227f43fc0ae4bd1.js → card.c08471eaa0bc1cec.js} +14 -9
  113. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{collapse.dab7f208cbbe6a33.js → collapse.762eba56417214ca.js} +5 -3
  114. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{combo.0572dd5730c94112.js → combo.efb84f0cca771948.js} +13 -20
  115. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.53edc755945b0563.js +27 -0
  116. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.9be99c94423eb1ca.js → copy.0b23d7dc05757df5.js} +8 -10
  117. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.4f703a4ce7d2a519.js → filter.1983b85dd0679af6.js} +33 -52
  118. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{icons.868385119bf2de28.js → icons.a34176f37808cd66.js} +1 -0
  119. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/menu-items.a8e580a0c90631ff.js +145 -0
  120. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.0f064f75822888be.js → menu.a41edd5cde1c90cf.js} +16 -45
  121. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{modal.92432959e3a3e2c0.js → modal.b5f74ebf59590fa6.js} +10 -11
  122. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{segmented.5ac52bb38fb64ae5.js → segmented.a08dc08338d080e9.js} +13 -2
  123. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{select.7f481669998074f8.js → select.36c6f21ce6aa720f.js} +36 -40
  124. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{tail.30913c92f5ca6102.js → tail.a8a951c757376590.js} +5 -4
  125. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.801bbd3163d3fbb0.js → toolbar.9621ef221a896a8e.js} +9 -4
  126. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/utils/{action.568346602027ac74.js → action.1a6356d5b722cafb.js} +1 -1
  127. package/dist/dash/standalone/static/assets/chunks/action-977f2355e308d7d0.js +1 -0
  128. package/dist/dash/standalone/static/assets/chunks/agent-pills-e75e6ac80d515ffc.js +1 -0
  129. package/dist/dash/standalone/static/assets/chunks/agent-settings-form-09f23ed893d441c7.js +1 -0
  130. package/dist/dash/standalone/static/assets/chunks/agent-toggle-b2f2c22e63dedc1f.js +1 -0
  131. package/dist/dash/standalone/static/assets/chunks/agents-grid-bb4f3e4d38b2f459.js +1 -0
  132. package/dist/dash/standalone/static/assets/chunks/back-1d1b062f0e1b29b7.js +1 -0
  133. package/dist/dash/standalone/static/assets/chunks/combo-126d5709a0b3a5bd.js +1 -0
  134. package/dist/dash/standalone/static/assets/chunks/composer-6bf94d1087a6e6a6.js +1 -0
  135. package/dist/dash/standalone/static/assets/chunks/composer-9c1fe67a0de73997.js +1 -0
  136. package/dist/dash/standalone/static/assets/chunks/confirm-1cb4d8df3974f34a.js +1 -0
  137. package/dist/dash/standalone/static/assets/chunks/connect-apps-32c169b6e00711ff.js +1 -0
  138. package/dist/dash/standalone/static/assets/chunks/{connect-repositories-569c181ff81509f4.js → connect-repositories-995d55b3f166337d.js} +1 -1
  139. package/dist/dash/standalone/static/assets/chunks/connections-list-a102e909edff14d4.js +1 -0
  140. package/dist/dash/standalone/static/assets/chunks/copy-c938369a1bfe75fd.js +1 -0
  141. package/dist/dash/standalone/static/assets/chunks/create-link-a147953f343355ec.js +1 -0
  142. package/dist/dash/standalone/static/assets/chunks/credentials-list-31e0fbc1ef0d003e.js +1 -0
  143. package/dist/dash/standalone/static/assets/chunks/custom-range-4eeb710748887f3a.js +1 -0
  144. package/dist/dash/standalone/static/assets/chunks/editor-79560c0f91cfc2f6.js +7 -0
  145. package/dist/dash/standalone/static/assets/chunks/engines-list-d22f50040e6842ae.js +1 -0
  146. package/dist/dash/standalone/static/assets/chunks/{field-f40df6a5289dfe05.js → field-657227821326b5b3.js} +1 -1
  147. package/dist/dash/standalone/static/assets/chunks/instructions-a08bb02650dedb8d.js +2 -0
  148. package/dist/dash/standalone/static/assets/chunks/instructions-a1f10bc3c2866e3f.js +1 -0
  149. package/dist/dash/standalone/static/assets/chunks/list-a0cc9bdb05fc71d4.js +1 -0
  150. package/dist/dash/standalone/static/assets/chunks/models-list-63ab774de3bf3788.js +1 -0
  151. package/dist/dash/standalone/static/assets/chunks/{notice-84358e912a9f01cc.js → notice-cd32ca98bbc10844.js} +1 -1
  152. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-4ab62d613bee243a.js +1 -0
  153. package/dist/dash/standalone/static/assets/chunks/platform-actions-40824017c7b5b910.js +1 -0
  154. package/dist/dash/standalone/static/assets/chunks/platform-actions-a515643f341df568.js +1 -0
  155. package/dist/dash/standalone/static/assets/chunks/runners-list-a9f4f71695f7b376.js +1 -0
  156. package/dist/dash/standalone/static/assets/chunks/{runtime-37175329f2865f15-1.js → runtime-e8b9eb1e537215ed-1.js} +1 -1
  157. package/dist/dash/standalone/static/assets/chunks/secrets-list-34e09c332363564c.js +1 -0
  158. package/dist/dash/standalone/static/assets/chunks/segmented-24da438244eedc8f.js +1 -0
  159. package/dist/dash/standalone/static/assets/chunks/shared-init-02aaa49ed4606a76.js +2 -0
  160. package/dist/dash/standalone/static/assets/chunks/shared-init-03e620f936463465.js +5 -0
  161. package/dist/dash/standalone/static/assets/chunks/shared-init-6f8c76316a2cd9da.js +1 -0
  162. package/dist/dash/standalone/static/assets/chunks/shared-init-e8b9eb1e537215ed-2.js +1 -0
  163. package/dist/dash/standalone/static/assets/chunks/side-toggle-8563e6056e862225.js +1 -0
  164. package/dist/dash/standalone/static/assets/chunks/tail-ebdefca4d5c23266.js +1 -0
  165. package/dist/dash/standalone/static/assets/chunks/task-actions-462507b76bda4657.js +1 -0
  166. package/dist/dash/standalone/static/assets/chunks/{task-view-1696d47594c6dbfa.js → task-view-341d79730a341007.js} +5 -5
  167. package/dist/dash/standalone/static/assets/chunks/tasks-list-6037ecd098332564.js +1 -0
  168. package/dist/dash/standalone/static/assets/chunks/versions-list-31f31eb1923a0ded.js +1 -0
  169. package/dist/dash/standalone/static/assets/chunks/{wular-pnext-37175329f2865f15-0.js → wular-pnext-e8b9eb1e537215ed-0.js} +1 -1
  170. package/dist/dash/standalone/static/assets/connect-a550b6f3a8c00186.css +1 -0
  171. package/dist/dash/standalone/static/assets/create-param-id-8fa3e9101430f26a.css +1 -0
  172. package/dist/dash/standalone/static/assets/dash-param-org-67f7811b1343c064.css +1 -0
  173. package/dist/dash/standalone/static/assets/dash-param-org-account-3f646d473e3bd795.css +1 -0
  174. package/dist/dash/standalone/static/assets/dash-param-org-agents-0ddb989cab5b0fbf.css +1 -0
  175. package/dist/dash/standalone/static/assets/dash-param-org-agents-new-504d1a906feabb6f.css +1 -0
  176. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-7cd987a1a42a3b44.css +1 -0
  177. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-fcdddf2dc26453ce.css +1 -0
  178. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-26b84d659dbca7f4.css +1 -0
  179. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-97ff652f9fe5979d.css +1 -0
  180. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-d47377c0f877c5c0.css +1 -0
  181. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-6a09580f11d669b7.css +1 -0
  182. package/dist/dash/standalone/static/assets/dash-param-org-operator-56742192a9aafc19.css +1 -0
  183. package/dist/dash/standalone/static/assets/dash-param-org-settings-a851a659784d94b5.css +1 -0
  184. package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-06283106fffbd5c6.css +1 -0
  185. package/dist/dash/standalone/static/assets/dash-param-org-setup-1b708aa5bb2f83ef.css +1 -0
  186. package/dist/dash/standalone/static/assets/dash-param-org-tasks-9cb2bb12389c9a04.css +1 -0
  187. package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-a87fa0eaa02e4008.css +1 -0
  188. package/dist/dash/standalone/static/assets/dash-param-org-usage-786c91a7640542e6.css +1 -0
  189. package/dist/dash/standalone/static/assets/global-eee296f070a9bb95.css +1 -0
  190. package/dist/dash/standalone/static/assets/login-9760b85feae40270.css +1 -0
  191. package/dist/dash/standalone/static/assets/pnext-client-17c3ee29b7487596.js +1 -0
  192. package/dist/dash/standalone/static/assets/pnext-client-1eaa8deb5395345f.js +1 -0
  193. package/dist/dash/standalone/static/assets/pnext-client-29e2b964470f6587.js +1 -0
  194. package/dist/dash/standalone/static/assets/pnext-client-2a1e756934e7be1a.js +1 -0
  195. package/dist/dash/standalone/static/assets/pnext-client-31e64d49f6132b26.js +1 -0
  196. package/dist/dash/standalone/static/assets/pnext-client-3d13328ad0b1148b.js +1 -0
  197. package/dist/dash/standalone/static/assets/pnext-client-4ac29d3e9f1a91be.js +1 -0
  198. package/dist/dash/standalone/static/assets/pnext-client-7d479b3375e3c07e.js +1 -0
  199. package/dist/dash/standalone/static/assets/pnext-client-9eac45990b233b55.js +1 -0
  200. package/dist/dash/standalone/static/assets/pnext-client-a8c9c169322e7e3d.js +1 -0
  201. package/dist/dash/standalone/static/assets/pnext-client-b622d087a38b1b77.js +1 -0
  202. package/dist/dash/standalone/static/assets/pnext-client-b7fea94dfda72453.js +1 -0
  203. package/dist/dash/standalone/static/assets/pnext-client-cc8e5e6c95040688.js +1 -0
  204. package/dist/dash/standalone/static/assets/pnext-client-d16e2a42b0a274c0.js +1 -0
  205. package/dist/dash/standalone/static/assets/pnext-client-dbccfef0cbb6b18d.js +1 -0
  206. package/dist/dash/standalone/static/assets/pnext-client-e74706ae238018e5.js +1 -0
  207. package/dist/dash/standalone/static/assets/pnext-client-ebe7c9692619ea00.js +1 -0
  208. package/dist/dash/standalone/static/assets/pnext-client-ef8d348060493085.js +1 -0
  209. package/dist/dash/standalone/static/assets/pnext-client-fcdfa8b2c8824449.js +1 -0
  210. package/dist/dash/standalone/static/assets/pnext-client-ff36e2f8a0522759.js +1 -0
  211. package/dist/{default-CNhVH61w.js → default-DcYwZCnl.js} +1 -1
  212. package/dist/{default-dQC33jLt.js → default-EXRzdZUY.js} +1 -1
  213. package/dist/{delete-BDOtztW_.js → delete-Bmn2_TiV.js} +1 -1
  214. package/dist/{delete-Dbo9goyQ.js → delete-DS6P_fun.js} +1 -1
  215. package/dist/{disable-VvU6oDku.js → disable-CnCxTC3X.js} +1 -1
  216. package/dist/{discover-hpHsnxqU.js → discover-pKrMDvpW.js} +1 -1
  217. package/dist/{docs-CYMICGEv.js → docs-sFUXzJbk.js} +1 -1
  218. package/dist/{enable-BmvNVDHO.js → enable-BWvDv7dP.js} +1 -1
  219. package/dist/flow/builtin/review.d.ts +1 -1
  220. package/dist/flow/index.d.ts +1 -1
  221. package/dist/{flow-4Rr-2NUz.js → flow-CuUq-MDm.js} +1 -1
  222. package/dist/{http-BYMXT_p6.js → http-Cg_wYcZT.js} +1 -1
  223. package/dist/{index-CVjkwYeS.d.ts → index-vd37q3fn.d.ts} +1 -1
  224. package/dist/{init-kZdO2PF5.js → init-Dgj6V-aS.js} +1 -1
  225. package/dist/integrations-DsFX2KCq.js +1 -0
  226. package/dist/{list-D3LCULQt.js → list-B6lwbCEp.js} +1 -1
  227. package/dist/{list-uS9iEE0F.js → list-BDpYPbJF.js} +1 -1
  228. package/dist/{list-CbN2giPy.js → list-BE3xmX_4.js} +1 -1
  229. package/dist/{list-P2Ztf1bQ.js → list-BVIAyAAE.js} +1 -1
  230. package/dist/{list-CLqNS8_q.js → list-Bggy3HZY.js} +1 -1
  231. package/dist/{list-ChFFjT_a.js → list-CLtqMYPK.js} +2 -2
  232. package/dist/{list-D2eSpGoo.js → list-CaFQOnfI.js} +1 -1
  233. package/dist/{list-D0NK3Iqu.js → list-DkO78ZEF.js} +1 -1
  234. package/dist/{local-XNsjb-UM.js → local-ccKBhpQc.js} +1 -1
  235. package/dist/{login-BoOBMH4y.js → login-BCdXHQ7z.js} +1 -1
  236. package/dist/{login-CCA0uLsW.js → login-CpHx_RCq.js} +1 -1
  237. package/dist/{logout-Cv0cm9F8.js → logout-zSQBDPCK.js} +1 -1
  238. package/dist/{maintenance-B_79IJ_E.js → maintenance-DuIspk-y.js} +1 -1
  239. package/dist/{mcp-C13n4A3y.js → mcp-O8VTfzdL.js} +1 -1
  240. package/dist/{model-0sxp5GdI.js → model-Bzpwl_95.js} +1 -1
  241. package/dist/{push-IpLeKMp-.js → push-vt81gcxD.js} +1 -1
  242. package/dist/{reconnect-CR3RaXX0.js → reconnect-BfghDbl1.js} +1 -1
  243. package/dist/{refresh-D0YjtXBD.js → refresh-yXJ13FAf.js} +1 -1
  244. package/dist/{remove-B01SXfEq.js → remove-5iAM2aTO.js} +1 -1
  245. package/dist/{remove-D65xtbw5.js → remove-BZCA-gdU.js} +1 -1
  246. package/dist/{remove-D1UOd48O.js → remove-BcewhH1U.js} +1 -1
  247. package/dist/{remove-C9eahMDh.js → remove-BwhcR6ig.js} +1 -1
  248. package/dist/{rename-Qwr_XDxD.js → rename-lyssPQfD.js} +1 -1
  249. package/dist/{result-70jciKDJ.js → result-Bg557zR6.js} +1 -1
  250. package/dist/{result-DXL9N9Ip.js → result-jeiRJTzA.js} +1 -1
  251. package/dist/{resume-xqhwHn3l.js → resume-fnx4FUQF.js} +1 -1
  252. package/dist/{review-vlPAshsb.js → review-CAHDqPq8.js} +1 -1
  253. package/dist/{review-D-U_2KyT.d.ts → review-CJS59vO-.d.ts} +1 -1
  254. package/dist/{rotate-key-CfeZ6Rg7.js → rotate-key-Dpx_WmuU.js} +1 -1
  255. package/dist/{run-VOuS-hHe.js → run-CLy9a2MO.js} +1 -1
  256. package/dist/{run-CoTg7SkY.js → run-DU4G8gNw.js} +1 -1
  257. package/dist/{run-CvdayZfK.js → run-D_pl9GF_.js} +1 -1
  258. package/dist/runner-zT5Oyrfr.js +1 -0
  259. package/dist/{runners-UNKPlmYE.js → runners-CNhxPjg8.js} +1 -1
  260. package/dist/schema.d.ts +1 -1
  261. package/dist/{sdk-4Vjo5Q6R.d.ts → sdk-CWerLcF5.d.ts} +19 -19
  262. package/dist/sdk.d.ts +4 -4
  263. package/dist/sdk.js +1 -1
  264. package/dist/{serve-HNXk3HMY.js → serve-FG2LgXxM.js} +2 -2
  265. package/dist/{serve-ByWMT5Gm.js → serve-UE1fcf4t.js} +1 -1
  266. package/dist/{serve-BoTW4P2G.js → serve-w-9qRCP1.js} +2 -2
  267. package/dist/{serve-BQsv2KZs.js → serve-wQgyxwdY.js} +1 -1
  268. package/dist/{server-B1x8gx33.js → server-Bw_YmgCf.js} +1 -1
  269. package/dist/{setup-host-DExG-bWZ.js → setup-host-BsbDs4lJ.js} +1 -1
  270. package/dist/{show-BeacgzZ0.js → show-Cajmf606.js} +1 -1
  271. package/dist/{show-D3OC0c35.js → show-D0qTuXRU.js} +1 -1
  272. package/dist/{status-ZN0HYtLa.js → status-PO1YXbt4.js} +1 -1
  273. package/dist/{steer-DwSC8AO4.js → steer-i6w87g_t.js} +1 -1
  274. package/dist/{stop-CEEiI1RA.js → stop-CJ0PHvKp.js} +1 -1
  275. package/dist/{stop-DTzpTbg1.js → stop-CkvoZEAH.js} +1 -1
  276. package/dist/{task-4gw9OZun.js → task-DTN_fIGC.js} +1 -1
  277. package/dist/task-DXHKWB_J.js +5 -0
  278. package/dist/{test-BnGF24Hg.js → test-BTkKFbnx.js} +1 -1
  279. package/dist/{tools-ar-D3jOh.js → tools-B-2oi2wI.js} +1 -1
  280. package/dist/{types-BktBEKW5.d.ts → types-C1tWi5lP.d.ts} +5 -5
  281. package/dist/{unalias-9AwJnbpE.js → unalias-Cqx7i_L0.js} +1 -1
  282. package/dist/{update-DoJEPBvm.js → update-MNyeVXyy.js} +1 -1
  283. package/dist/{upgrade-DRPBwDYe.js → upgrade-CGSkY0FY.js} +2 -2
  284. package/dist/{usage-CItBLFFE.js → usage-sx-FR0bz.js} +1 -1
  285. package/dist/{watch-BMuVZorc.js → watch-IL2eEgwD.js} +1 -1
  286. package/dist/{watch-Bl_pCGfq.js → watch-qfr7aSfo.js} +1 -1
  287. package/dist/{worker-BFGETvid.js → worker-BBZ36xL0.js} +1 -1
  288. package/dist/{worker-BiJ7jiOr.js → worker-D2csFtoH.js} +1 -1
  289. package/dist/{workflow-CcC-xbfp.js → workflow-BKxG9OUk.js} +1 -1
  290. package/package.json +1 -1
  291. package/dist/agent-C1HI4JlI.js +0 -3
  292. package/dist/auth-Cx4ePjWG.js +0 -1
  293. package/dist/credentials-BOAy2_-6.js +0 -1
  294. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/account/sign-out.1ee9b7f1343376e9.js +0 -13
  295. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/(list)/agent-menu.79e38c6e4139b9de.js +0 -12
  296. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/[slug]/edit/loading.2fa9e225a5c42496.js +0 -29
  297. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/range-bar.884e58b044238e98.js +0 -60
  298. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/loading-card.df3717186948c93f.js +0 -64
  299. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/badge.3d9163a51e6f6d6e.js +0 -43
  300. package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/confirm.fe133a074c2743af.js +0 -26
  301. package/dist/dash/standalone/static/assets/chunks/action-df9907c7a10bf826.js +0 -1
  302. package/dist/dash/standalone/static/assets/chunks/agent-pills-106a518bef96408e.js +0 -1
  303. package/dist/dash/standalone/static/assets/chunks/agent-settings-form-d1aa82950d30d829.js +0 -1
  304. package/dist/dash/standalone/static/assets/chunks/agent-toggle-44667051d8be2040.js +0 -1
  305. package/dist/dash/standalone/static/assets/chunks/agents-grid-69fabb48962a282a.js +0 -1
  306. package/dist/dash/standalone/static/assets/chunks/back-e02e04679467c05b.js +0 -1
  307. package/dist/dash/standalone/static/assets/chunks/badge-b302b4d707908367.js +0 -1
  308. package/dist/dash/standalone/static/assets/chunks/card-31a2cdcfeda5254f.js +0 -1
  309. package/dist/dash/standalone/static/assets/chunks/combo-fd495e7fa91b69ed.js +0 -1
  310. package/dist/dash/standalone/static/assets/chunks/composer-10f0a825a16e1fc7.js +0 -1
  311. package/dist/dash/standalone/static/assets/chunks/composer-8c1198d45f700738.js +0 -1
  312. package/dist/dash/standalone/static/assets/chunks/confirm-7b6112578a1c4877.js +0 -1
  313. package/dist/dash/standalone/static/assets/chunks/connect-apps-bd95a6cbdc89a438.js +0 -1
  314. package/dist/dash/standalone/static/assets/chunks/connections-list-5bbf7321d9bfd08f.js +0 -1
  315. package/dist/dash/standalone/static/assets/chunks/copy-f057128db8aefd1b.js +0 -1
  316. package/dist/dash/standalone/static/assets/chunks/create-link-6f6e6b87e46f67c8.js +0 -1
  317. package/dist/dash/standalone/static/assets/chunks/credentials-list-8fc72c0331289ac6.js +0 -2
  318. package/dist/dash/standalone/static/assets/chunks/custom-range-d06cd17fcc05183d.js +0 -1
  319. package/dist/dash/standalone/static/assets/chunks/editor-b5a9659f85edea17.js +0 -7
  320. package/dist/dash/standalone/static/assets/chunks/engines-list-c10ca5e7410b790f.js +0 -1
  321. package/dist/dash/standalone/static/assets/chunks/filter-966a9aae3b0b6d77.js +0 -1
  322. package/dist/dash/standalone/static/assets/chunks/instructions-c9e1097c4e1b352a.js +0 -2
  323. package/dist/dash/standalone/static/assets/chunks/instructions-e969d4439f6676c9.js +0 -1
  324. package/dist/dash/standalone/static/assets/chunks/list-5db1dd782965a5fc.js +0 -1
  325. package/dist/dash/standalone/static/assets/chunks/models-list-b6237067c9a39f97.js +0 -1
  326. package/dist/dash/standalone/static/assets/chunks/outcome-dialog-c4f75d37645035b8.js +0 -1
  327. package/dist/dash/standalone/static/assets/chunks/paged-c44eccacea100110.js +0 -1
  328. package/dist/dash/standalone/static/assets/chunks/platform-actions-6004e96f54953935.js +0 -1
  329. package/dist/dash/standalone/static/assets/chunks/platform-actions-d8dd016336a3d768.js +0 -1
  330. package/dist/dash/standalone/static/assets/chunks/runners-list-0b288b2b79de8968.js +0 -1
  331. package/dist/dash/standalone/static/assets/chunks/secrets-list-64650cb827e93322.js +0 -1
  332. package/dist/dash/standalone/static/assets/chunks/segmented-5423dcc766dc7abc.js +0 -1
  333. package/dist/dash/standalone/static/assets/chunks/select-53722330d2e3f1c6.js +0 -1
  334. package/dist/dash/standalone/static/assets/chunks/shared-init-35a0e9007eeca198.js +0 -2
  335. package/dist/dash/standalone/static/assets/chunks/shared-init-37175329f2865f15-2.js +0 -1
  336. package/dist/dash/standalone/static/assets/chunks/shared-init-a7f2e71a718bc285.js +0 -5
  337. package/dist/dash/standalone/static/assets/chunks/shared-init-b8184e0e554d5aa4.js +0 -1
  338. package/dist/dash/standalone/static/assets/chunks/shared-init-e0aa7cbf9ac680b5.js +0 -1
  339. package/dist/dash/standalone/static/assets/chunks/side-toggle-34ee3bbe5ac64a60.js +0 -1
  340. package/dist/dash/standalone/static/assets/chunks/tail-7dece33a58f72850.js +0 -1
  341. package/dist/dash/standalone/static/assets/chunks/task-actions-b36dc5fcd9b2b2c5.js +0 -1
  342. package/dist/dash/standalone/static/assets/chunks/tasks-list-7c70210e7121b95a.js +0 -1
  343. package/dist/dash/standalone/static/assets/chunks/versions-list-26475f0d05e2d434.js +0 -1
  344. package/dist/dash/standalone/static/assets/connect-b73a327c12fa5c63.css +0 -1
  345. package/dist/dash/standalone/static/assets/create-param-id-d679f8832eafd7e8.css +0 -1
  346. package/dist/dash/standalone/static/assets/dash-param-org-14abc8f62d04dc4c.css +0 -1
  347. package/dist/dash/standalone/static/assets/dash-param-org-account-aba6d7e7f99c97cb.css +0 -1
  348. package/dist/dash/standalone/static/assets/dash-param-org-agents-570ddee6de22492e.css +0 -1
  349. package/dist/dash/standalone/static/assets/dash-param-org-agents-new-9fa9b19084b3cd2f.css +0 -1
  350. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-0e7e591f05cbddf5.css +0 -1
  351. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-edit-f16fb90321952887.css +0 -1
  352. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-platforms-5cf30b084239d643.css +0 -1
  353. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-settings-1c84b31df8c64b88.css +0 -1
  354. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-tasks-7da323ffa5be29aa.css +0 -1
  355. package/dist/dash/standalone/static/assets/dash-param-org-agents-param-slug-usage-4900a42b805e90cb.css +0 -1
  356. package/dist/dash/standalone/static/assets/dash-param-org-operator-2f4e497a01a78f29.css +0 -1
  357. package/dist/dash/standalone/static/assets/dash-param-org-settings-0ea983332482dbc6.css +0 -1
  358. package/dist/dash/standalone/static/assets/dash-param-org-settings-param-tab-e1c1f81610bb925f.css +0 -1
  359. package/dist/dash/standalone/static/assets/dash-param-org-setup-6824fce3862dbb43.css +0 -1
  360. package/dist/dash/standalone/static/assets/dash-param-org-tasks-f914c28afa705d66.css +0 -1
  361. package/dist/dash/standalone/static/assets/dash-param-org-tasks-param-id-65c8bb06f94ff868.css +0 -1
  362. package/dist/dash/standalone/static/assets/dash-param-org-usage-5dbb2aa369c46eed.css +0 -1
  363. package/dist/dash/standalone/static/assets/global-eecd2b20d5e4b08d.css +0 -1
  364. package/dist/dash/standalone/static/assets/login-ca4c0cd7d65b3269.css +0 -1
  365. package/dist/dash/standalone/static/assets/pnext-client-0bcd0cbf2549bdf2.js +0 -1
  366. package/dist/dash/standalone/static/assets/pnext-client-22414b6c8a870c92.js +0 -1
  367. package/dist/dash/standalone/static/assets/pnext-client-2a02ab5209cae1ea.js +0 -1
  368. package/dist/dash/standalone/static/assets/pnext-client-46d843cfdabf3e71.js +0 -1
  369. package/dist/dash/standalone/static/assets/pnext-client-5a50a2a4da7e870e.js +0 -1
  370. package/dist/dash/standalone/static/assets/pnext-client-5b6ea850cead1482.js +0 -1
  371. package/dist/dash/standalone/static/assets/pnext-client-5b94497ba23568a8.js +0 -1
  372. package/dist/dash/standalone/static/assets/pnext-client-6686f1714e481293.js +0 -1
  373. package/dist/dash/standalone/static/assets/pnext-client-67155accb837a12a.js +0 -1
  374. package/dist/dash/standalone/static/assets/pnext-client-7db5d810ee904f4b.js +0 -1
  375. package/dist/dash/standalone/static/assets/pnext-client-8d779b89650f4b7a.js +0 -1
  376. package/dist/dash/standalone/static/assets/pnext-client-9d7a7a634c9be6ac.js +0 -1
  377. package/dist/dash/standalone/static/assets/pnext-client-9edebc462604c881.js +0 -1
  378. package/dist/dash/standalone/static/assets/pnext-client-aa5a424e38b430a5.js +0 -1
  379. package/dist/dash/standalone/static/assets/pnext-client-b983cd476c808b15.js +0 -1
  380. package/dist/dash/standalone/static/assets/pnext-client-bdf1cb75a3de35ea.js +0 -1
  381. package/dist/dash/standalone/static/assets/pnext-client-c5177dd613b27b84.js +0 -1
  382. package/dist/dash/standalone/static/assets/pnext-client-d998d7077d159f68.js +0 -1
  383. package/dist/dash/standalone/static/assets/pnext-client-f01c6d0c6beb582b.js +0 -1
  384. package/dist/dash/standalone/static/assets/pnext-client-fd4c0f3ecbcc461c.js +0 -1
  385. package/dist/integrations-35T26qmP.js +0 -1
  386. package/dist/runner-D0TLZrrO.js +0 -1
  387. package/dist/task-CB-j4EO8.js +0 -5
  388. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/agents/editor/{editor.d2e3bc878dcb47da.css.pnext-asset.js → editor.c496247a81ed832c.css.pnext-asset.js} +0 -0
  389. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/{layout.3827c440c6421a06.css.pnext-asset.js → layout.a4efa8d807fe5416.css.pnext-asset.js} +0 -0
  390. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/settings/[tab]/{credentials-list.1236d6680ec02696.css.pnext-asset.js → credentials-list.98e0b34932a6ee4c.css.pnext-asset.js} +0 -0
  391. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/tasks/{composer.360b393e5938c60b.css.pnext-asset.js → composer.79c015348f861749.css.pnext-asset.js} +0 -0
  392. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/dash/[org]/usage/{range-bar.1da88d087e3b5302.css.pnext-asset.js → range-bar.476c059123ef6c23.css.pnext-asset.js} +0 -0
  393. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/{globals.76731787d2a1aa3b.css.pnext-asset.js → globals.dccea8b03fa4b6d2.css.pnext-asset.js} +0 -0
  394. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/app/login/{page.57e5198339e9ca28.css.pnext-asset.js → page.586a41a7ab9988e0.css.pnext-asset.js} +0 -0
  395. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{@/comps/ui/toast.a4c3e977997216cf.css.pnext-asset.js → drawer.0b0220d1edabce29.css.pnext-asset.js} +0 -0
  396. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/frame/{drawer.e8201d78154045bc.css.pnext-asset.js → task-toasts.d13d9f628e530552.css.pnext-asset.js} +0 -0
  397. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{confirm.d18497f656702a16.css.pnext-asset.js → button.d7f4433f4e7faa80.css.pnext-asset.js} +0 -0
  398. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{copy.991f1efa061e71d6.css.pnext-asset.js → copy.fb3240de6c9479cd.css.pnext-asset.js} +0 -0
  399. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{filter.e20fbd035f24ed01.css.pnext-asset.js → filter.b53f21acc3e2cfef.css.pnext-asset.js} +0 -0
  400. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{menu.1d42c8d0493e2221.css.pnext-asset.js → menu.25b184f68cba7b46.css.pnext-asset.js} +0 -0
  401. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{select.32a95ad31c0436ad.css.pnext-asset.js → select.419208bb34700af2.css.pnext-asset.js} +0 -0
  402. /package/dist/dash/standalone/server/modules-server-server-react-server/src/server/dash/comps/ui/{toolbar.40284b41c03c5dcb.css.pnext-asset.js → toolbar.19e1ce5224a23acf.css.pnext-asset.js} +0 -0
@@ -0,0 +1 @@
1
+ import{a as h,b,c as g,d as T,e as k,f as w}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1b as t,$1h as C,$1i as N}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as p}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as u,$0l as I}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import{$1a as e}from"./chunks/shared-init-03e620f936463465.js";import{$3a as m,$3b as d}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as l}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$2h as s,$2j as c}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as f}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";function _(){let[S,r]=s(!1),[a,i]=s(!1);c(()=>{if(typeof Notification>"u")return i(!0);i(Notification.permission==="denied"),r(localStorage.getItem(t)==="1"&&Notification.permission==="granted")},[]);let E=async o=>{o.checked&&Notification.permission==="default"&&await Notification.requestPermission();let n=o.checked&&Notification.permission==="granted";n?localStorage.setItem(t,"1"):localStorage.removeItem(t),o.checked=n,r(n),i(Notification.permission==="denied")};return e("label",{class:"notify",children:[e("input",{type:"checkbox",role:"switch",class:"switch",checked:S,disabled:a,onChange:o=>void E(o.currentTarget)}),a?"Notifications are blocked in this browser":"Notify me when a task finishes"]})}var{mountRoute:R,remountRoute:V,unmountRoute:v}=m({islands:[{id:"c-0b114804e8",Component:h},{id:"c-198fc2d7f4",Component:b},{id:"c-40dba596fa",Component:g},{id:"c-4866974233",Component:d},{id:"c-63837ccaa2",Component:_},{id:"c-6b5ef58ec9",Component:T},{id:"c-7fa121eda4",Component:k},{id:"c-9268577269",Component:N},{id:"c-965cf8e878",Component:u},{id:"c-cb5f8355b4",Component:I},{id:"c-d2ee6dc174",Component:w},{id:"c-dc36447127",Component:p},{id:"c-faf61bd04e",Component:C}]});l();f()||R();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:R,unmountRoute:v});export{R as mountRoute,V as remountRoute,v as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as p,b as c,c as f,d as l,e as C,f as I}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as a,$1i as s}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2D as d,$2j as i}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as e,$0l as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:u,remountRoute:X,unmountRoute:R}=o({islands:[{id:"c-0b114804e8",Component:p},{id:"c-198fc2d7f4",Component:c},{id:"c-34bc7ee6da",options:{},load:()=>import("./chunks/editor-79560c0f91cfc2f6.js").then(_=>_.AgentEditor)},{id:"c-40dba596fa",Component:f},{id:"c-477b84c063",Component:d},{id:"c-4866974233",Component:n},{id:"c-6b5ef58ec9",Component:l},{id:"c-7fa121eda4",Component:C},{id:"c-9268577269",Component:s},{id:"c-965cf8e878",Component:e},{id:"c-cb5f8355b4",Component:r},{id:"c-d2ee6dc174",Component:I},{id:"c-dc36447127",Component:i},{id:"c-faf61bd04e",Component:a}]});m();t()||u();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:u,unmountRoute:R});export{u as mountRoute,X as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a,b as d,c as s,d as p,e as f,f as c}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as i,$1i as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as e}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:l,remountRoute:h,unmountRoute:u}=o({islands:[{id:"c-0b114804e8",Component:a},{id:"c-198fc2d7f4",Component:d},{id:"c-40dba596fa",Component:s},{id:"c-4866974233",Component:n},{id:"c-6b5ef58ec9",Component:p},{id:"c-7fa121eda4",Component:f},{id:"c-9268577269",Component:r},{id:"c-965cf8e878",Component:e},{id:"c-d2ee6dc174",Component:c},{id:"c-faf61bd04e",Component:i}]});m();t()||l();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:l,unmountRoute:u});export{l as mountRoute,h as remountRoute,u as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as p,b as f,c,d as l,e as C,f as I}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as d,$1i as s}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2D as a,$2j as i}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as e,$0l as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:u,remountRoute:X,unmountRoute:R}=o({islands:[{id:"c-0b114804e8",Component:p},{id:"c-198fc2d7f4",Component:f},{id:"c-40dba596fa",Component:c},{id:"c-477b84c063",Component:a},{id:"c-4866974233",Component:n},{id:"c-6b5ef58ec9",Component:l},{id:"c-7fa121eda4",Component:C},{id:"c-9268577269",Component:s},{id:"c-965cf8e878",Component:e},{id:"c-a2493212f4",options:{},load:()=>import("./chunks/task-view-341d79730a341007.js").then(_=>_.TaskView)},{id:"c-cb5f8355b4",Component:r},{id:"c-d2ee6dc174",Component:I},{id:"c-dc36447127",Component:i},{id:"c-faf61bd04e",Component:d}]});m();t()||u();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:u,unmountRoute:R});export{u as mountRoute,X as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as T}from"./chunks/agent-toggle-b2f2c22e63dedc1f.js";import"./chunks/action-977f2355e308d7d0.js";import"./chunks/format-b19b8eec331414f4.js";import{a as f,b as c,c as l,d as u,e as C,f as I}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as s,$1i as p}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2C as a,$2j as e}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as r,$0l as d}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as n,$3b as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:_,remountRoute:x,unmountRoute:R}=n({islands:[{id:"c-0b114804e8",Component:f},{id:"c-198fc2d7f4",Component:c},{id:"c-40dba596fa",Component:l},{id:"c-4866974233",Component:t},{id:"c-6b5ef58ec9",Component:u},{id:"c-732253f2dd",Component:T},{id:"c-7fa121eda4",Component:C},{id:"c-9268577269",Component:p},{id:"c-965cf8e878",Component:r},{id:"c-a8cc4e4154",Component:a},{id:"c-b43fd610ad",options:{},load:()=>import("./chunks/composer-9c1fe67a0de73997.js").then(o=>o.NewTaskButton)},{id:"c-c527097ffa",options:{load:"visible",ssr:!0},load:()=>import("./chunks/tasks-list-6037ecd098332564.js").then(o=>o.TasksList)},{id:"c-cb5f8355b4",Component:d},{id:"c-d2ee6dc174",Component:I},{id:"c-dc36447127",Component:e},{id:"c-faf61bd04e",Component:s}]});m();i()||_();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:_,unmountRoute:R});export{_ as mountRoute,x as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{f as l,g as G}from"./chunks/list-a0cc9bdb05fc71d4.js";import"./chunks/confirm-1cb4d8df3974f34a.js";import{a as u}from"./chunks/field-657227821326b5b3.js";import{a as N}from"./chunks/action-977f2355e308d7d0.js";import"./chunks/format-b19b8eec331414f4.js";import{a as M,b as P,c as U,d as z,e as X,f as x}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as D,$1i as F}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as B}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as w,$0l as O,$0p as L}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import{$0a as A,$0c as S}from"./chunks/shared-init-03e620f936463465.js";import{$1L as p,$1N as E,$1a as e,$1t as k}from"./chunks/shared-init-03e620f936463465.js";import{$3a as h,$3b as y}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as _}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$2c as b,$2h as c,$2j as I,$2l as R,$2n as v}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as T}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";function W({row:o,product:r,unreachable:i,onClose:t}){let m=R(null),f=v(),[d,g]=c(!1);I(()=>m.current.showModal(),[]);let s=()=>!d&&m.current.close(),V=n=>{let C=a=>String(n.get(a)??"").trim()||void 0;g(!0),S.operator.setUp(o.integration,{name:C("name"),owner:C("owner")}).then(({url:a})=>{location.href=a}).catch(a=>{if(a instanceof A&&a.status===401)return location.reload();g(!1),N(a)})};return e("dialog",{ref:m,class:"create-dialog","aria-labelledby":f,onClose:t,onCancel:n=>{n.preventDefault(),s()},onClick:n=>n.target===n.currentTarget&&s(),children:e("form",{onSubmit:n=>{n.preventDefault(),V(new FormData(n.currentTarget))},children:[e("header",{children:[e("h2",{id:f,children:["Set up shared ",o.name," app"]}),e(E,{icon:k,label:"Close",onClick:s})]}),i?e("p",{class:"flash err",children:[o.name," cannot reach this server yet. Set a public address first: run the server with PUBLIC_URL set to an address ",o.name," can reach."]}):null,e("p",{class:"muted",children:["One app on ",o.name," serves the built-in agent in every workspace. People see its name on consent screens, as in ",r," wants to connect."]}),e(u,{label:"App name",children:e("input",{name:"name",defaultValue:r,autocomplete:"off",required:!0})}),o.organizationApps?e(u,{label:`${o.name} organization`,hint:"owns the app; leave empty to own it on your personal account",children:e("input",{name:"owner",placeholder:"your-org",autocomplete:"off"})}):null,e("div",{class:"actions",children:[e(p,{variant:"ghost",disabled:d,onClick:s,children:"Cancel"}),e(p,{type:"submit",disabled:i,loading:d,children:["Continue on ",o.name]})]})]})})}function q({first:o}){let[r,i]=c();return e(b,{children:[e(G,{title:"Built-in apps",count:o.platforms.length,children:o.platforms.map(t=>e(l,{title:t.name,badges:t.app?e(L,{tone:"ok",children:"set up"}):null,sub:t.app?t.app.name:"Not set up. Workspaces cannot add the built-in agent here.",actions:t.app?null:e(p,{variant:"secondary",size:"sm",onClick:()=>i(t),children:"Set up"})},t.integration))}),r?e(W,{row:r,product:o.name,unreachable:o.unreachable,onClose:()=>i(void 0)}):null]})}var{mountRoute:H,remountRoute:Se,unmountRoute:Z}=h({islands:[{id:"c-0b114804e8",Component:M},{id:"c-198fc2d7f4",Component:P},{id:"c-40dba596fa",Component:U},{id:"c-4866974233",Component:y},{id:"c-6b5ef58ec9",Component:z},{id:"c-7eb2f109a4",Component:q},{id:"c-7fa121eda4",Component:X},{id:"c-9268577269",Component:F},{id:"c-965cf8e878",Component:w},{id:"c-b52212e4bf",Component:l},{id:"c-cb5f8355b4",Component:O},{id:"c-d2ee6dc174",Component:x},{id:"c-dc36447127",Component:B},{id:"c-faf61bd04e",Component:D}]});_();T()||H();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:H,unmountRoute:Z});export{H as mountRoute,Se as remountRoute,Z as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as I}from"./chunks/composer-6bf94d1087a6e6a6.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/task-6ae2bb4f1b384140.js";import"./chunks/defaults-dcc0eccad4e8585b.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/connect-repositories-995d55b3f166337d.js";import"./chunks/model-options-3a57918eaa4a2a82.js";import"./chunks/notice-cd32ca98bbc10844.js";import"./chunks/back-1d1b062f0e1b29b7.js";import"./chunks/action-977f2355e308d7d0.js";import"./chunks/format-b19b8eec331414f4.js";import{a as p,b as f,c,d as l,e as C,f as u}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as a,$1i as s}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as m}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as r,$0l as d}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as n,$3b as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as e}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:_,remountRoute:Y,unmountRoute:R}=n({islands:[{id:"c-0b114804e8",Component:p},{id:"c-14f01a8dee",Component:I},{id:"c-198fc2d7f4",Component:f},{id:"c-3a08df6eb4",options:{},load:()=>import("./chunks/connect-apps-32c169b6e00711ff.js").then(o=>o.ConnectApps)},{id:"c-40dba596fa",Component:c},{id:"c-4866974233",Component:t},{id:"c-5d0b63f72a",options:{load:"visible",ssr:!0},load:()=>import("./chunks/agents-grid-bb4f3e4d38b2f459.js").then(o=>o.AgentsGrid)},{id:"c-6b5ef58ec9",Component:l},{id:"c-7fa121eda4",Component:C},{id:"c-9268577269",Component:s},{id:"c-965cf8e878",Component:r},{id:"c-cb5f8355b4",Component:d},{id:"c-d2ee6dc174",Component:u},{id:"c-dc36447127",Component:m},{id:"c-faf61bd04e",Component:a}]});i();e()||_();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:_,unmountRoute:R});export{_ as mountRoute,Y as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as u}from"./chunks/custom-range-4eeb710748887f3a.js";import"./chunks/field-657227821326b5b3.js";import{a as s,b as p,c as f,d as c,e as l,f as C}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as a,$1i as d}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as e}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as i,$0l as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:I,remountRoute:X,unmountRoute:R}=o({islands:[{id:"c-0b114804e8",Component:s},{id:"c-198fc2d7f4",Component:p},{id:"c-40dba596fa",Component:f},{id:"c-4866974233",Component:n},{id:"c-590cdd8a77",Component:u},{id:"c-6b5ef58ec9",Component:c},{id:"c-7fa121eda4",Component:l},{id:"c-9268577269",Component:d},{id:"c-965cf8e878",Component:i},{id:"c-cb5f8355b4",Component:r},{id:"c-d2ee6dc174",Component:C},{id:"c-dc36447127",Component:e},{id:"c-faf61bd04e",Component:a}]});m();t()||I();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:I,unmountRoute:R});export{I as mountRoute,X as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as _}from"./chunks/agent-toggle-b2f2c22e63dedc1f.js";import{a as T}from"./chunks/composer-6bf94d1087a6e6a6.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/task-6ae2bb4f1b384140.js";import"./chunks/defaults-dcc0eccad4e8585b.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/connect-repositories-995d55b3f166337d.js";import"./chunks/model-options-3a57918eaa4a2a82.js";import"./chunks/notice-cd32ca98bbc10844.js";import"./chunks/back-1d1b062f0e1b29b7.js";import"./chunks/action-977f2355e308d7d0.js";import"./chunks/format-b19b8eec331414f4.js";import{a as f,b as c,c as l,d as C,e as I,f as u}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as s,$1i as p}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2C as a,$2j as m}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as r,$0l as d}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as n,$3b as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as e}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:R,remountRoute:B,unmountRoute:b}=n({islands:[{id:"c-0b114804e8",Component:f},{id:"c-14f01a8dee",Component:T},{id:"c-198fc2d7f4",Component:c},{id:"c-40dba596fa",Component:l},{id:"c-4866974233",Component:t},{id:"c-4987ce9a4b",options:{},load:()=>import("./chunks/agent-settings-form-09f23ed893d441c7.js").then(o=>o.AgentSettingsForm)},{id:"c-6b5ef58ec9",Component:C},{id:"c-732253f2dd",Component:_},{id:"c-7fa121eda4",Component:I},{id:"c-9268577269",Component:p},{id:"c-965cf8e878",Component:r},{id:"c-a8cc4e4154",Component:a},{id:"c-b43fd610ad",options:{},load:()=>import("./chunks/composer-9c1fe67a0de73997.js").then(o=>o.NewTaskButton)},{id:"c-c527097ffa",options:{load:"visible",ssr:!0},load:()=>import("./chunks/tasks-list-6037ecd098332564.js").then(o=>o.TasksList)},{id:"c-cb5f8355b4",Component:d},{id:"c-d2ee6dc174",Component:u},{id:"c-dc36447127",Component:m},{id:"c-faf61bd04e",Component:s}]});i();e()||R();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:R,unmountRoute:b});export{R as mountRoute,B as remountRoute,b as unmountRoute};
@@ -0,0 +1 @@
1
+ import{$3a as o,$3b as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as r}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:e,remountRoute:a,unmountRoute:m}=o({islands:[{id:"c-4866974233",Component:t},{id:"c-6e7781a11d",options:{},load:()=>import("./chunks/create-link-a147953f343355ec.js").then(n=>n.CreateLink)}]});r();i()||e();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:e,unmountRoute:m});export{e as mountRoute,a as remountRoute,m as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as d,b as p,c as f,d as c,e as l,f as u}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as s,$1i as a}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as m}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as e,$0l as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:C,remountRoute:P,unmountRoute:_}=o({islands:[{id:"c-0b114804e8",Component:d},{id:"c-198fc2d7f4",Component:p},{id:"c-40dba596fa",Component:f},{id:"c-4866974233",Component:n},{id:"c-6b5ef58ec9",Component:c},{id:"c-7fa121eda4",Component:l},{id:"c-9268577269",Component:a},{id:"c-965cf8e878",Component:e},{id:"c-c527097ffa",options:{load:"visible",ssr:!0},load:()=>import("./chunks/tasks-list-6037ecd098332564.js").then(I=>I.TasksList)},{id:"c-cb5f8355b4",Component:r},{id:"c-d2ee6dc174",Component:u},{id:"c-dc36447127",Component:m},{id:"c-faf61bd04e",Component:s}]});i();t()||C();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:C,unmountRoute:_});export{C as mountRoute,P as remountRoute,_ as unmountRoute};
@@ -0,0 +1 @@
1
+ import{b as I}from"./chunks/back-1d1b062f0e1b29b7.js";import{a as s,b as p,c as f,d as c,e as l,f as C}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as d,$1i as a}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2j as e}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as i,$0l as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as o,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as m}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as t}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:u,remountRoute:X,unmountRoute:R}=o({islands:[{id:"c-0b114804e8",Component:s},{id:"c-198fc2d7f4",Component:p},{id:"c-40dba596fa",Component:f},{id:"c-4866974233",Component:n},{id:"c-6b5ef58ec9",Component:c},{id:"c-7fa121eda4",Component:l},{id:"c-9268577269",Component:a},{id:"c-965cf8e878",Component:i},{id:"c-cb5f8355b4",Component:r},{id:"c-d2ee6dc174",Component:C},{id:"c-dc36447127",Component:e},{id:"c-e604c1e03d",Component:I},{id:"c-faf61bd04e",Component:d}]});m();t()||u();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:u,unmountRoute:R});export{u as mountRoute,X as remountRoute,R as unmountRoute};
@@ -0,0 +1 @@
1
+ import{a as b}from"./chunks/agent-toggle-b2f2c22e63dedc1f.js";import{a as R}from"./chunks/composer-6bf94d1087a6e6a6.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/task-6ae2bb4f1b384140.js";import"./chunks/defaults-dcc0eccad4e8585b.js";import"./chunks/shared-init-6f8c76316a2cd9da.js";import"./chunks/connect-repositories-995d55b3f166337d.js";import"./chunks/model-options-3a57918eaa4a2a82.js";import"./chunks/notice-cd32ca98bbc10844.js";import{a as _}from"./chunks/back-1d1b062f0e1b29b7.js";import"./chunks/action-977f2355e308d7d0.js";import"./chunks/format-b19b8eec331414f4.js";import{a as c,b as l,c as C,d as I,e as u,f as T}from"./chunks/side-toggle-8563e6056e862225.js";import"./chunks/shared-init-02aaa49ed4606a76.js";import{$1h as p,$1i as f}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$2C as s,$2j as d}from"./chunks/shared-init-02aaa49ed4606a76.js";import{$0k as m,$0l as a,$0m as r}from"./chunks/shared-init-02aaa49ed4606a76.js";import"./chunks/wular-pnext-e8b9eb1e537215ed-0.js";import"./chunks/shared-init-03e620f936463465.js";import"./chunks/shared-init-03e620f936463465.js";import{$3a as t,$3b as n}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$1c as e}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";import"./chunks/shared-init-e8b9eb1e537215ed-2.js";import{$0i as i}from"./chunks/shared-init-e8b9eb1e537215ed-2.js";var{mountRoute:g,remountRoute:j,unmountRoute:h}=t({islands:[{id:"c-03f11cffed",options:{},load:()=>import("./chunks/platform-actions-a515643f341df568.js").then(o=>o.PlatformActions)},{id:"c-0b114804e8",Component:c},{id:"c-14f01a8dee",Component:R},{id:"c-198fc2d7f4",Component:l},{id:"c-40dba596fa",Component:C},{id:"c-4866974233",Component:n},{id:"c-4f567968af",options:{},load:()=>import("./chunks/outcome-dialog-4ab62d613bee243a.js").then(o=>o.OutcomeDialog)},{id:"c-6b5ef58ec9",Component:I},{id:"c-721796115f",options:{},load:()=>import("./chunks/platform-actions-a515643f341df568.js").then(o=>o.InstallButton)},{id:"c-732253f2dd",Component:b},{id:"c-7962c6ea4c",options:{},load:()=>import("./chunks/platform-actions-a515643f341df568.js").then(o=>o.DriftQueue)},{id:"c-7fa121eda4",Component:u},{id:"c-9268577269",Component:f},{id:"c-965cf8e878",Component:m},{id:"c-a8cc4e4154",Component:s},{id:"c-adf9757d5d",Component:r},{id:"c-b43fd610ad",options:{},load:()=>import("./chunks/composer-9c1fe67a0de73997.js").then(o=>o.NewTaskButton)},{id:"c-bc124a2f24",Component:_},{id:"c-c527097ffa",options:{load:"visible",ssr:!0},load:()=>import("./chunks/tasks-list-6037ecd098332564.js").then(o=>o.TasksList)},{id:"c-cb5f8355b4",Component:a},{id:"c-d2ee6dc174",Component:T},{id:"c-dc36447127",Component:d},{id:"c-faf61bd04e",Component:p}]});e();i()||g();window.__PNEXT_REGISTER_ENTRY__&&window.__PNEXT_REGISTER_ENTRY__(import.meta.url,{mountRoute:g,unmountRoute:h});export{g as mountRoute,j as remountRoute,h as unmountRoute};
@@ -1 +1 @@
1
- import{i as e,t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{credentialOptions as r,missingLabel as i}from"./remove-B01SXfEq.js";import a from"node:process";const o=e({name:`credentials default`,globalFlags:{cwd:!1},help:{usage:`coder credentials default <label> [--workspace] [--server [url]] [--json]`,flags:[[`--workspace`,`the workspace credential of that label`],t]},options:r,args:1,async run({options:e,args:[t]}){let{connect:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);if(!t)throw i();return n(e).credentials.setDefault(t,e)},print:(e,{args:[t]})=>a.stdout.write(`Made default ${n.bold(t)}.\n`)});export{o as commandCredentialsDefault};
1
+ import{i as e,t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{credentialOptions as r,missingLabel as i}from"./remove-5iAM2aTO.js";import a from"node:process";const o=e({name:`credentials default`,globalFlags:{cwd:!1},help:{usage:`coder credentials default <label> [--workspace] [--server [url]] [--json]`,flags:[[`--workspace`,`the workspace credential of that label`],t]},options:r,args:1,async run({options:e,args:[t]}){let{connect:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);if(!t)throw i();return n(e).credentials.setDefault(t,e)},print:(e,{args:[t]})=>a.stdout.write(`Made default ${n.bold(t)}.\n`)});export{o as commandCredentialsDefault};
@@ -1 +1 @@
1
- import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-D5hyqGq0.js";import{runnerOptions as r}from"./remove-D65xtbw5.js";import i from"node:process";const a=t({name:`runner default`,globalFlags:{cwd:!1},args:1,help:{usage:`coder runner default <id> [--server [url]] [--json]`,summary:`Use this runner by default within its scope.`,flags:[n]},options:r,async run({options:t,args:[n]}){if(!n)throw new e(`invalid-option`,`Missing runner id.`);let{updateRunner:r}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);return r(n,{default:!0},t)},print:e=>i.stdout.write(`Default runner ${e.name}.\n`)});export{a as commandRunnerDefault};
1
+ import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-ZUdhZnuW.js";import{runnerOptions as r}from"./remove-BZCA-gdU.js";import i from"node:process";const a=t({name:`runner default`,globalFlags:{cwd:!1},args:1,help:{usage:`coder runner default <id> [--server [url]] [--json]`,summary:`Use this runner by default within its scope.`,flags:[n]},options:r,async run({options:t,args:[n]}){if(!n)throw new e(`invalid-option`,`Missing runner id.`);let{updateRunner:r}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);return r(n,{default:!0},t)},print:e=>i.stdout.write(`Default runner ${e.name}.\n`)});export{a as commandRunnerDefault};
@@ -1,2 +1,2 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r,n as i,s as a,t as o}from"./args-CxsMr9Un.js";import{plural as s}from"./archive-DxWYJ7Zi.js";import c from"node:process";const l={server:r,workspace:a,yes:i},u=e({name:`task delete`,help:{usage:`coder task delete <task-id> | coder task delete --all-archived [--server [url]]`,summary:`Delete a task's session from disk. This is permanent. Pass --all-archived to
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r,n as i,s as a,t as o}from"./args-CxsMr9Un.js";import{plural as s}from"./archive-CmRVm4iS.js";import c from"node:process";const l={server:r,workspace:a,yes:i},u=e({name:`task delete`,help:{usage:`coder task delete <task-id> | coder task delete --all-archived [--server [url]]`,summary:`Delete a task's session from disk. This is permanent. Pass --all-archived to
2
2
  delete every archived task at once. A running task must be stopped first.`,flags:[[`--all-archived`,`delete every archived task`],t]},options:{...o,"all-archived":i,...l},args:1,run:async({options:e,args:[t]})=>{let{tasks:n}=await import(`./task-IoBYe7ok.js`).then(e=>e.t);return n.delete(t,{...e,organization:e.workspace,allArchived:e[`all-archived`]})},print(e,{options:t}){if(e.count===void 0)return void c.stdout.write(`Deleted task ${n.cyan(e.taskId)}.\n`);c.stdout.write(t.server===void 0?e.count?`Deleted ${e.count} archived task${s(e.count)}.\n`:`${n.dim(`No archived tasks to delete.`)}\n`:`Deleted ${e.count} server task${s(e.count)}.\n`)}});export{u as commandDelete};
@@ -1,4 +1,4 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{p as t}from"./output-BKeyLbvt.js";import{n,t as r}from"./args-CxsMr9Un.js";import{plural as i}from"./archive-BhfGdyuC.js";import a from"node:process";const o=e({name:`flow delete`,help:{usage:`coder flow delete <run-id> | coder flow delete --all-archived`,summary:`Delete a flow run's record from disk (its journal, events, and logs). This is
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{p as t}from"./output-BKeyLbvt.js";import{n,t as r}from"./args-CxsMr9Un.js";import{plural as i}from"./archive-C89Z4kSx.js";import a from"node:process";const o=e({name:`flow delete`,help:{usage:`coder flow delete <run-id> | coder flow delete --all-archived`,summary:`Delete a flow run's record from disk (its journal, events, and logs). This is
2
2
  permanent; the run's tasks are ordinary tasks and are not touched. Pass
3
3
  --all-archived to delete every archived run at once. A running run must be
4
4
  stopped first.`,flags:[[`--all-archived`,`delete every archived run`]]},options:{...r,"all-archived":n},args:1,run:async({options:e,args:[t]})=>{let{deleteRuns:n}=await import(`./executor-5j-Ewzzb.js`).then(e=>e.b);return n(t,{allArchived:e[`all-archived`]})},print(e){if(!(`count`in e))return void a.stdout.write(`Deleted run ${t.cyan(e.runId)}.\n`);a.stdout.write(e.count?`Deleted ${e.count} archived run${i(e.count)}.\n`:`${t.dim(`No archived runs to delete.`)}\n`)}});export{o as commandDelete};
@@ -1 +1 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{a as t}from"./models-CdvmuaLv.js";import{n}from"./add-DcR15CL7.js";import{t as r}from"./remove-D1UOd48O.js";const i=(i,a)=>e({name:`model ${i?`disable`:`enable`}`,help:a,options:n,args:1,run:({options:e,args:[n],cwd:r})=>t(r,n,i,e),json:({name:e,file:t})=>({[i?`disabled`:`enabled`]:e,file:t}),print:({name:e,file:t})=>r(i?`disabled`:`enabled`,e,t)}),a=i(!0,{usage:`coder model disable <name> [--workspace]`,summary:`Disable a model - built-in, custom, or alias. Requests for it fail until re-enabled.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]});export{a as commandModelDisable,i as toggle};
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{a as t}from"./models-CdvmuaLv.js";import{n}from"./add-CvBTpxgY.js";import{t as r}from"./remove-BcewhH1U.js";const i=(i,a)=>e({name:`model ${i?`disable`:`enable`}`,help:a,options:n,args:1,run:({options:e,args:[n],cwd:r})=>t(r,n,i,e),json:({name:e,file:t})=>({[i?`disabled`:`enabled`]:e,file:t}),print:({name:e,file:t})=>r(i?`disabled`:`enabled`,e,t)}),a=i(!0,{usage:`coder model disable <name> [--workspace]`,summary:`Disable a model - built-in, custom, or alias. Requests for it fail until re-enabled.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]});export{a as commandModelDisable,i as toggle};
@@ -1,3 +1,3 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{t as i}from"./args-CxsMr9Un.js";import a from"node:path";import o from"node:process";import s from"node:os";const c=e({name:`flow discover`,help:{usage:`coder flow discover [--json]`,summary:`List every flow discoverable from the current directory: workspace flows in
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{t as i}from"./args-CxsMr9Un.js";import a from"node:path";import o from"node:process";import s from"node:os";const c=e({name:`flow discover`,help:{usage:`coder flow discover [--json]`,summary:`List every flow discoverable from the current directory: workspace flows in
2
2
  .coder/flows/ (walking up to the repo root) and global flows in ~/.coder/flows/.`},options:i,run:async({cwd:e})=>{let{discoverFlows:t}=await import(`./discover-CBP4Uw0N.js`).then(e=>e.r);return t(e)},print:(e,{cwd:t})=>l(e,t)});function l(e,i){if(!e.length){o.stdout.write(`No flows found in .coder/flows/ (workspace) or ~/.coder/flows/ (global).
3
3
  `),o.stdout.write(`\n${r([`Authoring guide: coder docs flows`],n)}\n`);return}let c=n;o.stdout.write(t([{header:`name`,value:e=>e.name,paint:e=>c.cyan(e)},{header:`scope`,value:e=>e.scope,paint:e=>c.light(e)},{header:`path`,value:e=>e.scope===`workspace`?a.relative(i,e.path)||e.path:e.path.replace(s.homedir(),`~`),paint:e=>c.light(e)}],e,c)),o.stdout.write(`\n${r([`Run one: coder flow run <name>`,`Recent runs: coder flow list`],c)}\n`)}export{c as commandDiscover};
@@ -1,2 +1,2 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{n as i}from"./args-CxsMr9Un.js";import{t as a}from"./docs-3SW1O9iS.js";import o from"node:process";const s=e({name:`docs`,globalFlags:{cwd:!1},help:{usage:`coder docs [topic] [--json]`,summary:"Print bundled documentation. With no topic, list the available topics; with a\ntopic, print that doc's raw markdown to stdout (unstyled, for an agent to\nconsume). Topics with sub-pages list them as `<topic>/<page>` (also accepted as\n`<topic>-<page>`). `coder docs skill` prints the host skill so an engine can\nload it once per session (--claude for the Claude Code flavor).",flags:[[`--claude`,`with the skill topic: print the Claude Code flavor`]],examples:[[`coder docs`,`list the available topics`],[`coder docs flows`,`print the Flows doc`],[`coder docs review`,`print the Review doc`]]},options:{json:i,claude:i},args:1,run:({options:e,args:[t]})=>a(t,e),print:e=>o.stdout.write(`content`in e?e.content.endsWith(`
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{n as i}from"./args-CxsMr9Un.js";import{t as a}from"./docs-3SW1O9iS.js";import o from"node:process";const s=e({name:`docs`,globalFlags:{cwd:!1},help:{usage:`coder docs [topic] [--json]`,summary:"Print bundled documentation. With no topic, list the available topics; with a\ntopic, print that doc's raw markdown to stdout (unstyled, for an agent to\nconsume). Topics with sub-pages list them as `<topic>/<page>` (also accepted as\n`<topic>-<page>`). `coder docs skill` prints the host skill so an engine can\nload it once per session (--claude for the Claude Code flavor).",flags:[[`--claude`,`with the skill topic: print the Claude Code flavor`]],examples:[[`coder docs`,`list the available topics`],[`coder docs flows`,`print the Flows doc`],[`coder docs review`,`print the Review doc`]]},options:{json:i,claude:i},args:1,run:({options:e,args:[t]})=>a(t,e),print:e=>o.stdout.write(`content`in e?e.content.endsWith(`
2
2
  `)?e.content:`${e.content}\n`:c(e.topics))});function c(e){let i=n,a=e=>e.includes(`/`)?` ${e}`:e;return t([{header:`topic`,value:e=>a(e.name),paint:e=>i.cyan(e)},{header:`about`,value:e=>e.description,paint:e=>i.light(e)}],e,i)+`\n${r([`Read a topic: coder docs <topic>`],i)}\n`}export{s as commandDocs};
@@ -1 +1 @@
1
- import{toggle as e}from"./disable-VvU6oDku.js";const t=e(!1,{usage:`coder model enable <name> [--workspace]`,summary:`Re-enable a disabled model.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]});export{t as commandModelEnable};
1
+ import{toggle as e}from"./disable-CnCxTC3X.js";const t=e(!1,{usage:`coder model enable <name> [--workspace]`,summary:`Re-enable a disabled model.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]});export{t as commandModelEnable};
@@ -1,2 +1,2 @@
1
- import { C as repositoryRules, D as reviewFingerprints, E as reviewCli, S as postReview, T as review, _ as concurrency, a as ReviewAuth, b as ownReviewComments, c as ReviewPostInput, d as ReviewServices, f as ReviewSummary, g as changedLines, h as args, i as ReviewArgs, l as ReviewPostSummary, m as ReviewTargetInput, n as Finding, o as ReviewExec, p as ReviewTarget, r as REVIEW_PLATFORM, s as ReviewPostFinding, t as Exec, u as ReviewResult, v as fingerprint, w as resolveReviewTarget, x as parseGithubPr, y as lastReviewSummary } from "../../review-D-U_2KyT.js";
1
+ import { C as repositoryRules, D as reviewFingerprints, E as reviewCli, S as postReview, T as review, _ as concurrency, a as ReviewAuth, b as ownReviewComments, c as ReviewPostInput, d as ReviewServices, f as ReviewSummary, g as changedLines, h as args, i as ReviewArgs, l as ReviewPostSummary, m as ReviewTargetInput, n as Finding, o as ReviewExec, p as ReviewTarget, r as REVIEW_PLATFORM, s as ReviewPostFinding, t as Exec, u as ReviewResult, v as fingerprint, w as resolveReviewTarget, x as parseGithubPr, y as lastReviewSummary } from "../../review-CJS59vO-.js";
2
2
  export { Exec, Finding, REVIEW_PLATFORM, ReviewArgs, ReviewAuth, ReviewExec, ReviewPostFinding, ReviewPostInput, ReviewPostSummary, ReviewResult, ReviewServices, ReviewSummary, ReviewTarget, ReviewTargetInput, args, changedLines, concurrency, review as default, fingerprint, lastReviewSummary, ownReviewComments, parseGithubPr, postReview, repositoryRules, resolveReviewTarget, reviewCli, reviewFingerprints };
@@ -1,2 +1,2 @@
1
- import { C as FlowStep, E as GateResult, S as FlowSteerOptions, T as FlowTaskResult, _ as steer, b as FlowEvent, g as pipeline, h as log, m as gate, n as flowSdk, o as CoderError, p as flow, t as args, v as task, w as FlowTaskOptions } from "../index-CVjkwYeS.js";
1
+ import { C as FlowStep, E as GateResult, S as FlowSteerOptions, T as FlowTaskResult, _ as steer, b as FlowEvent, g as pipeline, h as log, m as gate, n as flowSdk, o as CoderError, p as flow, t as args, v as task, w as FlowTaskOptions } from "../index-vd37q3fn.js";
2
2
  export { CoderError, type FlowEvent, type FlowSteerOptions, type FlowStep, type FlowTaskOptions, type FlowTaskResult, type GateResult, args, flowSdk as default, flowSdk, flow, gate, log, pipeline, steer, task };
@@ -1 +1 @@
1
- import{s as e}from"./cli-D5hyqGq0.js";const t=e(`flow`,{run:async()=>(await import(`./run-CvdayZfK.js`)).commandRun,list:async()=>(await import(`./list-P2Ztf1bQ.js`)).commandList,ls:async()=>(await import(`./list-P2Ztf1bQ.js`)).commandList,discover:async()=>(await import(`./discover-hpHsnxqU.js`)).commandDiscover,result:async()=>(await import(`./result-70jciKDJ.js`)).commandResult,watch:async()=>(await import(`./watch-Bl_pCGfq.js`)).commandWatch,stream:async()=>(await import(`./watch-Bl_pCGfq.js`)).commandWatch,stop:async()=>(await import(`./stop-DTzpTbg1.js`)).commandStop,resume:async()=>(await import(`./resume-xqhwHn3l.js`)).commandResume,archive:async()=>(await import(`./archive-BhfGdyuC.js`)).commandArchive,delete:async()=>(await import(`./delete-Dbo9goyQ.js`)).commandDelete},{menu:[{usage:`run <name|path> [--wait] [--args ...]`,blurb:`run a flow in the background (--wait to follow it live)`},{usage:`list`,blurb:`recent flow runs (by default running + just stopped)`},{usage:`discover`,blurb:`list flows runnable here (workspace + global)`},{usage:`result [run-id]`,blurb:`progress and result of a run`},{usage:`watch [run-id]`,blurb:`watch a run live (replay + follow)`},{usage:`stop [run-id]`,blurb:`stop a run and its still-running tasks`},{usage:`resume [run-id]`,blurb:`continue a stopped or edited run`},{usage:`archive <run-id> | --all-stopped`,blurb:`hide a run (or all stopped) from the list`},{usage:`delete <run-id> | --all-archived`,blurb:`delete a run's record (or all archived)`}],description:[`Orchestrate many coder tasks with a plain TypeScript file: dispatch, gates,`,`concurrency, journaling, and resume. Flows live in .coder/flows/ (workspace)`,"or ~/.coder/flows/ (global). See `coder docs flows`."]},{aliases:{stream:`watch`,ls:`list`},hint:`Run a flow: coder flow run <name>`});export{t as commandFlow};
1
+ import{s as e}from"./cli-ZUdhZnuW.js";const t=e(`flow`,{run:async()=>(await import(`./run-D_pl9GF_.js`)).commandRun,list:async()=>(await import(`./list-BVIAyAAE.js`)).commandList,ls:async()=>(await import(`./list-BVIAyAAE.js`)).commandList,discover:async()=>(await import(`./discover-pKrMDvpW.js`)).commandDiscover,result:async()=>(await import(`./result-Bg557zR6.js`)).commandResult,watch:async()=>(await import(`./watch-qfr7aSfo.js`)).commandWatch,stream:async()=>(await import(`./watch-qfr7aSfo.js`)).commandWatch,stop:async()=>(await import(`./stop-CkvoZEAH.js`)).commandStop,resume:async()=>(await import(`./resume-fnx4FUQF.js`)).commandResume,archive:async()=>(await import(`./archive-C89Z4kSx.js`)).commandArchive,delete:async()=>(await import(`./delete-DS6P_fun.js`)).commandDelete},{menu:[{usage:`run <name|path> [--wait] [--args ...]`,blurb:`run a flow in the background (--wait to follow it live)`},{usage:`list`,blurb:`recent flow runs (by default running + just stopped)`},{usage:`discover`,blurb:`list flows runnable here (workspace + global)`},{usage:`result [run-id]`,blurb:`progress and result of a run`},{usage:`watch [run-id]`,blurb:`watch a run live (replay + follow)`},{usage:`stop [run-id]`,blurb:`stop a run and its still-running tasks`},{usage:`resume [run-id]`,blurb:`continue a stopped or edited run`},{usage:`archive <run-id> | --all-stopped`,blurb:`hide a run (or all stopped) from the list`},{usage:`delete <run-id> | --all-archived`,blurb:`delete a run's record (or all archived)`}],description:[`Orchestrate many coder tasks with a plain TypeScript file: dispatch, gates,`,`concurrency, journaling, and resume. Flows live in .coder/flows/ (workspace)`,"or ~/.coder/flows/ (global). See `coder docs flows`."]},{aliases:{stream:`watch`,ls:`list`},hint:`Run a flow: coder flow run <name>`});export{t as commandFlow};
@@ -1 +1 @@
1
- import{a as e,i as t}from"./local-XNsjb-UM.js";import{Readable as n}from"node:stream";import{pipeline as r}from"node:stream/promises";function i(e,t=200,n={}){return new Response(JSON.stringify(e),{status:t,headers:{"content-type":`application/json`,...n}})}const a=e=>e.searchParams.has(`cursor`);function o(e){if(e)try{return t(e)}catch{return}}const s=e=>o(e.searchParams.get(`cursor`));function c(e,t=50,n=200){let r=Number(e.searchParams.get(`limit`)??t);return Number.isInteger(r)&&r>0?Math.min(r,n):t}function l(t,n,r){let i=t.slice(0,n);return{items:i,...t.length>n?{next:e(r(i.at(-1)))}:{}}}const u=(e,t=302)=>new Response(null,{status:t,headers:{location:e}}),d=()=>new Response(`Forbidden`,{status:403}),f=()=>new Response(`Not found`,{status:404,headers:{"content-type":`text/plain; charset=utf-8`}}),p=()=>new Response(`Method not allowed`,{status:405}),m=e=>u(`/login?return=${encodeURIComponent(`${e.pathname}${e.search}`)}`),h=e=>e.startsWith(`/api/auth`)?65536:1048576;async function g(e,t,n){let r=Number(t??0);if(Number.isFinite(r)&&r>n)throw Object.assign(Error(`Payload too large`),{status:413});let i=[],a=0;for await(let t of e){if(a+=t.byteLength,a>n)throw Object.assign(Error(`Payload too large`),{status:413});i.push(t)}let o=new Uint8Array(a),s=0;for(let e of i)o.set(e,s),s+=e.byteLength;return o}function _(e){let t=new Headers;for(let[n,r]of Object.entries(e))r!==void 0&&t.set(n,Array.isArray(r)?r.join(`, `):r);return t}async function v(e,t,n){let r=e.url??`/`,i=await g(e,e.headers[`content-length`],t);return new Request(`http://${e.headers.host??`localhost`}${r}`,{method:e.method,headers:_(e.headers),body:i.byteLength?Buffer.from(i):void 0,signal:n})}function y(e,{limit:t,admit:i=()=>!0}){return async(a,o)=>{if(!i(a))return void o.writeHead(404).end(`Not found`);let s=new AbortController,c=()=>{a.socket.destroyed&&s.abort()};o.once(`close`,()=>s.abort()),c();try{let i=await e(await v(a,t(a.url??`/`),s.signal),a.socket.remoteAddress?.replace(/^::ffff:/,``));c();let l=Object.fromEntries(i.headers.entries()),u=i.headers.getSetCookie();u.length&&(l[`set-cookie`]=u),o.writeHead(i.status,l),i.body?await r(n.fromWeb(i.body),o).catch(()=>{}):o.end()}catch(e){if(o.headersSent)return void o.destroy();let t=typeof e==`object`&&e&&`status`in e;t||console.error(`coder server: request failed`,e);let n=t?e instanceof Error?e.message:String(e):`Internal server error`;o.writeHead(t?Number(e.status):500,{"content-type":`application/json`}),o.end(JSON.stringify({error:n}))}}}async function b(e,t){if(e.method===`GET`||e.method===`HEAD`||!e.body)return e;try{let n=await g(e.body,e.headers.get(`content-length`)??void 0,t);return new Request(e.url,{method:e.method,headers:e.headers,body:n.byteLength?Buffer.from(n):void 0,signal:e.signal})}catch(e){if(e.status===413)return new Response(`Payload too large`,{status:413});throw e}}export{i as a,p as c,c as d,a as f,d as i,f as l,m,s as n,b as o,u as p,o as r,y as s,h as t,l as u};
1
+ import{a as e,i as t}from"./local-ccKBhpQc.js";import{Readable as n}from"node:stream";import{pipeline as r}from"node:stream/promises";function i(e,t=200,n={}){return new Response(JSON.stringify(e),{status:t,headers:{"content-type":`application/json`,...n}})}const a=e=>e.searchParams.has(`cursor`);function o(e){if(e)try{return t(e)}catch{return}}const s=e=>o(e.searchParams.get(`cursor`));function c(e,t=50,n=200){let r=Number(e.searchParams.get(`limit`)??t);return Number.isInteger(r)&&r>0?Math.min(r,n):t}function l(t,n,r){let i=t.slice(0,n);return{items:i,...t.length>n?{next:e(r(i.at(-1)))}:{}}}const u=(e,t=302)=>new Response(null,{status:t,headers:{location:e}}),d=()=>new Response(`Forbidden`,{status:403}),f=()=>new Response(`Not found`,{status:404,headers:{"content-type":`text/plain; charset=utf-8`}}),p=()=>new Response(`Method not allowed`,{status:405}),m=e=>u(`/login?return=${encodeURIComponent(`${e.pathname}${e.search}`)}`),h=e=>e.startsWith(`/api/auth`)?65536:1048576;async function g(e,t,n){let r=Number(t??0);if(Number.isFinite(r)&&r>n)throw Object.assign(Error(`Payload too large`),{status:413});let i=[],a=0;for await(let t of e){if(a+=t.byteLength,a>n)throw Object.assign(Error(`Payload too large`),{status:413});i.push(t)}let o=new Uint8Array(a),s=0;for(let e of i)o.set(e,s),s+=e.byteLength;return o}function _(e){let t=new Headers;for(let[n,r]of Object.entries(e))r!==void 0&&t.set(n,Array.isArray(r)?r.join(`, `):r);return t}async function v(e,t,n){let r=e.url??`/`,i=await g(e,e.headers[`content-length`],t);return new Request(`http://${e.headers.host??`localhost`}${r}`,{method:e.method,headers:_(e.headers),body:i.byteLength?Buffer.from(i):void 0,signal:n})}function y(e,{limit:t,admit:i=()=>!0}){return async(a,o)=>{if(!i(a))return void o.writeHead(404).end(`Not found`);let s=new AbortController,c=()=>{a.socket.destroyed&&s.abort()};o.once(`close`,()=>s.abort()),c();try{let i=await e(await v(a,t(a.url??`/`),s.signal),a.socket.remoteAddress?.replace(/^::ffff:/,``));c();let l=Object.fromEntries(i.headers.entries()),u=i.headers.getSetCookie();u.length&&(l[`set-cookie`]=u),o.writeHead(i.status,l),i.body?await r(n.fromWeb(i.body),o).catch(()=>{}):o.end()}catch(e){if(o.headersSent)return void o.destroy();let t=typeof e==`object`&&e&&`status`in e;t||console.error(`coder server: request failed`,e);let n=t?e instanceof Error?e.message:String(e):`Internal server error`;o.writeHead(t?Number(e.status):500,{"content-type":`application/json`}),o.end(JSON.stringify({error:n}))}}}async function b(e,t){if(e.method===`GET`||e.method===`HEAD`||!e.body)return e;try{let n=await g(e.body,e.headers.get(`content-length`)??void 0,t);return new Request(e.url,{method:e.method,headers:e.headers,body:n.byteLength?Buffer.from(n):void 0,signal:e.signal})}catch(e){if(e.status===413)return new Response(`Payload too large`,{status:413});throw e}}export{i as a,p as c,c as d,a as f,d as i,f as l,m,s as n,b as o,u as p,o as r,y as s,h as t,l as u};
@@ -1,4 +1,4 @@
1
- import { c as TaskStatus, d as TokenUsage, l as TurnResult, o as McpServerSpec, s as Task, u as TaskLogEntry } from "./types-BktBEKW5.js";
1
+ import { c as TaskStatus, d as TokenUsage, l as TurnResult, o as McpServerSpec, s as Task, u as TaskLogEntry } from "./types-C1tWi5lP.js";
2
2
  import { AsyncLocalStorage } from "node:async_hooks";
3
3
  //#region src/flow/types.d.ts
4
4
  /** Anything with zod's parse shape; the flow runtime never imports zod itself. */
@@ -1 +1 @@
1
- import{a as e,n as t,o as n,r}from"./prompt-C--TI1qn.js";import{i}from"./cli-D5hyqGq0.js";import{p as a,s as o}from"./output-BKeyLbvt.js";import{n as s,s as c,t as l}from"./args-CxsMr9Un.js";import u from"node:path";import d from"node:process";const f={observe:`read the platform only`,comment:`also post replies and reactions`,write:`also push, branch, and open or merge pull requests`};function p(e,t){let n=a,{id:r,samples:i,integrations:s}=e;d.stdout.write(`Created ${n.cyan(t)}.\n`);let c=s.length?[`1. Write ${t}/system.md. Try it with no server: coder task run --agent ${r} "<task>"`,`2. Run it on a server: coder dash on this machine reads it from this repo; a cloud server imports it from the dashboard or with coder agent push.`,`3. On the dashboard, create the agent's app on each platform it uses (${s.join(`, `)}) from its Platforms tab, and install it.`,`4. Fire an event by hand, or leave --server out to run it offline: coder agent run ${r} ${i[0]??`<event.json>`} --server <url>`,`Guide: https://github.com/muzam1l/coder/blob/main/docs/agents/index.md`,`Agents: coder docs agents`]:[`1. Write ${t}/system.md. Try it with no server: coder task run --agent ${r} "<task>"`,`2. Give the agent a platform under "integrations" in ${t}/agent.json, then run init again or follow the guide: coder agent integrations list`,`Guide: https://github.com/muzam1l/coder/blob/main/docs/agents/index.md`,`Agents: coder docs agents`];d.stdout.write(`\n${o(c,n)}\n`)}async function m(r){let{regexError:i}=await import(`./agent-C1HI4JlI.js`).then(e=>e.t),{INTEGRATIONS:o}=await import(`./integrations-D3OgJk6Y.js`).then(e=>e.r),{PRESETS:s}=await import(`./types-B42Oh0zF.js`).then(e=>e.n),c=a;d.stdout.write(`Creating ${c.cyan(`.coder/agents/${r}`)}. Pick what the agent listens to and what it may do; flags skip these questions.\n\n`);let l=await e({title:`Integrations`,hint:`Platforms the agent listens to and acts on. Add or remove them later in agent.json.`,multi:!0,selected:[Object.keys(o)[0]],options:Object.values(o).map(e=>({value:e.id,hint:e.description}))}),u={},p={};for(let e of l){let t=o[e],r=Object.keys(t.events),a=await n({title:`${e} events`,hint:`What wakes the agent on ${e}; each event runs the agent with that event as its prompt.`,multi:!0,required:!0,selected:[r.includes(`mention`)?`mention`:r[0]],options:Object.entries(t.events).map(([e,t])=>({value:e,hint:t.description,...t.noisy?{input:{label:`match`,value:`^help\\b`,placeholder:`tab to add a match`,validate:i}}:{}}))});u[e]=a.values,p[e]=a.inputs}let[m]=l.length?await e({title:`Tools`,hint:`What the agent may do on its platforms; comment suits most agents.`,selected:[`comment`],options:s.map(e=>({value:e,hint:f[e]}))}):[`comment`],h=await t(`Display name`,r,void 0,`Shown in replies and app names.`);return{...h===r?{}:{name:h},integrations:l,events:u,matches:p,tools:m}}const h=i({name:`agent init`,help:{usage:`coder agent init [id] [--integrations a,b] [--events a,b] [--tools <preset>] [--name <text>] [--description <text>] [--permissions <mode>] [--yes]`,summary:"Create .coder/agents/<id>/ with an agent.json built from the integration catalog, a system.md to write the prompt in, and one sample event per integration for `coder agent run`. Asks for the id, integrations, events, and tools when run in a terminal without them.",flags:[[`--integrations <a,b>`,`platforms the agent listens to (see coder agent integrations list)`],[`--events <a,b>`,`events that start tasks, applied to each integration that has them (default: mention)`],[`--tools <preset>`,`observe, comment, or write (default: comment)`],[`--name <text>`,`display name used in replies (default: the id)`],[`--description <text>`,`one line for agent list`],[`--permissions <mode>`,`engine permission mode (default: read-only)`],[`--yes`,`skip the questions and take the defaults`]],examples:[[`coder agent init`,`answer the questions, id included`],[`coder agent init triage --integrations github --events issue,mention --tools comment`,`no questions`]]},options:{...l,name:c,description:c,integrations:c,events:c,tools:c,permissions:c,match:c,yes:s},args:1,run:async({options:e,args:[n],cwd:i})=>{let{agents:a}=await import(`./agent-C1HI4JlI.js`).then(e=>e.t),o=r()&&!e.yes;return a.init(n,{...e,cwd:i,permissions:e.permissions,...o?{askId:e=>t(`Agent id`,``,e,`Folder name under .coder/agents and the name used in commands.`)}:{},...o&&!e.integrations?{askPicks:m}:{}})},json:(e,{cwd:t})=>({id:e.id,dir:u.relative(t,e.dir),files:e.files,samples:e.samples}),print:(e,{cwd:t})=>p(e,u.relative(t,e.dir))});export{h as commandAgentInit};
1
+ import{a as e,n as t,o as n,r}from"./prompt-C--TI1qn.js";import{i}from"./cli-ZUdhZnuW.js";import{p as a,s as o}from"./output-BKeyLbvt.js";import{n as s,s as c,t as l}from"./args-CxsMr9Un.js";import u from"node:path";import d from"node:process";const f={observe:`read the platform only`,comment:`also post replies and reactions`,write:`also push, branch, and open or merge pull requests`};function p(e,t){let n=a,{id:r,samples:i,integrations:s}=e;d.stdout.write(`Created ${n.cyan(t)}.\n`);let c=s.length?[`1. Write ${t}/system.md. Try it with no server: coder task run --agent ${r} "<task>"`,`2. Run it on a server: coder dash on this machine reads it from this repo; a cloud server imports it from the dashboard or with coder agent push.`,`3. On the dashboard, create the agent's app on each platform it uses (${s.join(`, `)}) from its Platforms tab, and install it.`,`4. Fire an event by hand, or leave --server out to run it offline: coder agent run ${r} ${i[0]??`<event.json>`} --server <url>`,`Guide: https://github.com/muzam1l/coder/blob/main/docs/agents/index.md`,`Agents: coder docs agents`]:[`1. Write ${t}/system.md. Try it with no server: coder task run --agent ${r} "<task>"`,`2. Give the agent a platform under "integrations" in ${t}/agent.json, then run init again or follow the guide: coder agent integrations list`,`Guide: https://github.com/muzam1l/coder/blob/main/docs/agents/index.md`,`Agents: coder docs agents`];d.stdout.write(`\n${o(c,n)}\n`)}async function m(r){let{regexError:i}=await import(`./agent-ChnedLBv.js`).then(e=>e.t),{INTEGRATIONS:o}=await import(`./integrations-D3OgJk6Y.js`).then(e=>e.r),{PRESETS:s}=await import(`./types-B42Oh0zF.js`).then(e=>e.n),c=a;d.stdout.write(`Creating ${c.cyan(`.coder/agents/${r}`)}. Pick what the agent listens to and what it may do; flags skip these questions.\n\n`);let l=await e({title:`Integrations`,hint:`Platforms the agent listens to and acts on. Add or remove them later in agent.json.`,multi:!0,selected:[Object.keys(o)[0]],options:Object.values(o).map(e=>({value:e.id,hint:e.description}))}),u={},p={};for(let e of l){let t=o[e],r=Object.keys(t.events),a=await n({title:`${e} events`,hint:`What wakes the agent on ${e}; each event runs the agent with that event as its prompt.`,multi:!0,required:!0,selected:[r.includes(`mention`)?`mention`:r[0]],options:Object.entries(t.events).map(([e,t])=>({value:e,hint:t.description,...t.noisy?{input:{label:`match`,value:`^help\\b`,placeholder:`tab to add a match`,validate:i}}:{}}))});u[e]=a.values,p[e]=a.inputs}let[m]=l.length?await e({title:`Tools`,hint:`What the agent may do on its platforms; comment suits most agents.`,selected:[`comment`],options:s.map(e=>({value:e,hint:f[e]}))}):[`comment`],h=await t(`Display name`,r,void 0,`Shown in replies and app names.`);return{...h===r?{}:{name:h},integrations:l,events:u,matches:p,tools:m}}const h=i({name:`agent init`,help:{usage:`coder agent init [id] [--integrations a,b] [--events a,b] [--tools <preset>] [--name <text>] [--description <text>] [--permissions <mode>] [--yes]`,summary:"Create .coder/agents/<id>/ with an agent.json built from the integration catalog, a system.md to write the prompt in, and one sample event per integration for `coder agent run`. Asks for the id, integrations, events, and tools when run in a terminal without them.",flags:[[`--integrations <a,b>`,`platforms the agent listens to (see coder agent integrations list)`],[`--events <a,b>`,`events that start tasks, applied to each integration that has them (default: mention)`],[`--tools <preset>`,`observe, comment, or write (default: comment)`],[`--name <text>`,`display name used in replies (default: the id)`],[`--description <text>`,`one line for agent list`],[`--permissions <mode>`,`engine permission mode (default: read-only)`],[`--yes`,`skip the questions and take the defaults`]],examples:[[`coder agent init`,`answer the questions, id included`],[`coder agent init triage --integrations github --events issue,mention --tools comment`,`no questions`]]},options:{...l,name:c,description:c,integrations:c,events:c,tools:c,permissions:c,match:c,yes:s},args:1,run:async({options:e,args:[n],cwd:i})=>{let{agents:a}=await import(`./agent-ChnedLBv.js`).then(e=>e.t),o=r()&&!e.yes;return a.init(n,{...e,cwd:i,permissions:e.permissions,...o?{askId:e=>t(`Agent id`,``,e,`Folder name under .coder/agents and the name used in commands.`)}:{},...o&&!e.integrations?{askPicks:m}:{}})},json:(e,{cwd:t})=>({id:e.id,dir:u.relative(t,e.dir),files:e.files,samples:e.samples}),print:(e,{cwd:t})=>p(e,u.relative(t,e.dir))});export{h as commandAgentInit};
@@ -0,0 +1 @@
1
+ import{s as e}from"./cli-ZUdhZnuW.js";const t=e(`agent integrations`,{list:async()=>(await import(`./list-BDpYPbJF.js`)).commandIntegrationsList,ls:async()=>(await import(`./list-BDpYPbJF.js`)).commandIntegrationsList,show:async()=>(await import(`./show-D0qTuXRU.js`)).commandIntegrationsShow},{menu:[{usage:`list`,blurb:`list integrations with their events and tools`},{usage:`show <id>`,blurb:`events and tools of one integration`}],description:[`The platforms an agent can listen to and act on: their events and tool presets.`]},{aliases:{ls:`list`}});export{t as commandAgentIntegrations};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{g as n,p as r,s as i}from"./output-BKeyLbvt.js";import{t as a}from"./args-CxsMr9Un.js";import{describe as o,serverOptions as s}from"./add-Df1Ezy3y.js";import c from"node:process";function l({connections:e,declared:t}){let a=r;c.stdout.write(e.length?n([{header:`name`,value:e=>e.id,paint:e=>a.cyan(e)},{header:`connects`,value:e=>o(e),paint:e=>a.light(e)},{header:`access`,value:e=>e.access===`observe`?`read`:`write`},{header:`for`,value:e=>e.mine?`you`:e.owner?e.owner:`workspace`},{header:`status`,value:e=>e.status}],e,a):`${a.dim(`No connections.`)}\n`),t.length&&c.stdout.write(`\n${a.bold(`Declared in this repository`)}\n${n([{header:`name`,value:e=>e.name,paint:e=>a.cyan(e)},{header:`in`,value:e=>e.source},{header:`runs`,value:e=>e.target,paint:e=>a.light(e)},{header:`here`,value:e=>e.approved?`approved`:`needs approval`}],t,a)}`);let s=[...t.filter(e=>!e.approved).map(e=>`Approve: coder connection approve ${e.name}`),...e.length?[]:[`Add one: coder connection add <name> --env <NAME>`]];s.length&&c.stdout.write(`\n${i(s,a)}\n`)}const u=e({name:`connection list`,help:{usage:`coder connection list [--server [url]] [--json] [--cwd <dir>]`,summary:`Your connections, and the MCP servers this repository and its agents declare with whether each is approved on this machine.`,flags:[t]},options:{...a,...s},run:async({options:e,cwd:t})=>{let{connection:n}=await import(`./connection-wq0CJZKh.js`).then(e=>e.n);return n.list({...e,cwd:t})},print:l});export{u as commandConnectionList};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{g as n,p as r,s as i}from"./output-BKeyLbvt.js";import{t as a}from"./args-CxsMr9Un.js";import{describe as o,serverOptions as s}from"./add-Ck_y_nKX.js";import c from"node:process";function l({connections:e,declared:t}){let a=r;c.stdout.write(e.length?n([{header:`name`,value:e=>e.id,paint:e=>a.cyan(e)},{header:`connects`,value:e=>o(e),paint:e=>a.light(e)},{header:`access`,value:e=>e.access===`observe`?`read`:`write`},{header:`for`,value:e=>e.mine?`you`:e.owner?e.owner:`workspace`},{header:`status`,value:e=>e.status}],e,a):`${a.dim(`No connections.`)}\n`),t.length&&c.stdout.write(`\n${a.bold(`Declared in this repository`)}\n${n([{header:`name`,value:e=>e.name,paint:e=>a.cyan(e)},{header:`in`,value:e=>e.source},{header:`runs`,value:e=>e.target,paint:e=>a.light(e)},{header:`here`,value:e=>e.approved?`approved`:`needs approval`}],t,a)}`);let s=[...t.filter(e=>!e.approved).map(e=>`Approve: coder connection approve ${e.name}`),...e.length?[]:[`Add one: coder connection add <name> --env <NAME>`]];s.length&&c.stdout.write(`\n${i(s,a)}\n`)}const u=e({name:`connection list`,help:{usage:`coder connection list [--server [url]] [--json] [--cwd <dir>]`,summary:`Your connections, and the MCP servers this repository and its agents declare with whether each is approved on this machine.`,flags:[t]},options:{...a,...s},run:async({options:e,cwd:t})=>{let{connection:n}=await import(`./connection-BCRJHTgp.js`).then(e=>e.n);return n.list({...e,cwd:t})},print:l});export{u as commandConnectionList};
@@ -1 +1 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{n as i}from"./args-CxsMr9Un.js";import a from"node:process";function o(e){let i=n;a.stdout.write(t([{header:`id`,value:e=>e.id,paint:e=>i.cyan(e)},{header:`description`,value:e=>e.description},{header:`events`,value:e=>e.events.join(`, `)},{header:`tools`,value:e=>e.tools.join(`, `)}],e,{style:i,border:!0})),a.stdout.write(`\n${r([`Event descriptions and the tools each preset allows: coder agent integrations show <id>`],i)}\n`)}const s=e({name:`agent integrations list`,globalFlags:{cwd:!1},help:{usage:`coder agent integrations list [--json]`,summary:"One row per integration: its id, the events an agent can wire, and every tool it offers; `show` splits the tools by preset."},options:{json:i},run:async()=>{let{agents:e}=await import(`./agent-C1HI4JlI.js`).then(e=>e.t);return e.integrations.list()},print:o});export{s as commandIntegrationsList};
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{g as t,p as n,s as r}from"./output-BKeyLbvt.js";import{n as i}from"./args-CxsMr9Un.js";import a from"node:process";function o(e){let i=n;a.stdout.write(t([{header:`id`,value:e=>e.id,paint:e=>i.cyan(e)},{header:`description`,value:e=>e.description},{header:`events`,value:e=>e.events.join(`, `)},{header:`tools`,value:e=>e.tools.join(`, `)}],e,{style:i,border:!0})),a.stdout.write(`\n${r([`Event descriptions and the tools each preset allows: coder agent integrations show <id>`],i)}\n`)}const s=e({name:`agent integrations list`,globalFlags:{cwd:!1},help:{usage:`coder agent integrations list [--json]`,summary:"One row per integration: its id, the events an agent can wire, and every tool it offers; `show` splits the tools by preset."},options:{json:i},run:async()=>{let{agents:e}=await import(`./agent-ChnedLBv.js`).then(e=>e.t);return e.integrations.list()},print:o});export{s as commandIntegrationsList};
@@ -1 +1 @@
1
- import{i as e,t}from"./cli-D5hyqGq0.js";import{g as n,p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";function s(e){if(!e.length)return void o.stdout.write(`${r.dim(`No engine credentials.`)}\n`);o.stdout.write(`${n([{header:`label`,value:e=>e.label,paint:e=>r.cyan(e)},{header:`engine`,value:e=>e.engine},{header:`scope`,value:e=>e.scope},{header:`default`,value:e=>e.isDefault?`✔`:``},{header:`value`,value:e=>e.masked},{header:`account`,value:e=>[e.account?.email,e.account?.plan].filter(Boolean).join(` `)}],e,r)}\n`)}const c=e({name:`credentials list`,globalFlags:{cwd:!1},help:{usage:`coder credentials list [--server [url]] [--json]`,flags:[t]},options:{json:i,server:a,yes:i},run:async({options:e})=>{let{connect:t}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);return t(e).credentials.list()},print:s});export{c as commandCredentialsList};
1
+ import{i as e,t}from"./cli-ZUdhZnuW.js";import{g as n,p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";function s(e){if(!e.length)return void o.stdout.write(`${r.dim(`No engine credentials.`)}\n`);o.stdout.write(`${n([{header:`label`,value:e=>e.label,paint:e=>r.cyan(e)},{header:`engine`,value:e=>e.engine},{header:`scope`,value:e=>e.scope},{header:`default`,value:e=>e.isDefault?`✔`:``},{header:`value`,value:e=>e.masked},{header:`account`,value:e=>[e.account?.email,e.account?.plan].filter(Boolean).join(` `)}],e,r)}\n`)}const c=e({name:`credentials list`,globalFlags:{cwd:!1},help:{usage:`coder credentials list [--server [url]] [--json]`,flags:[t]},options:{json:i,server:a,yes:i},run:async({options:e})=>{let{connect:t}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);return t(e).credentials.list()},print:s});export{c as commandCredentialsList};
@@ -1,4 +1,4 @@
1
- import{K as e}from"./config-D2FxHWwi.js";import{i as t}from"./cli-D5hyqGq0.js";import{a as n,l as r,m as i,n as a,p as o,s}from"./output-BKeyLbvt.js";import{n as c,r as l,t as u}from"./args-CxsMr9Un.js";import d from"node:process";const f=t({name:`flow list`,help:{usage:`coder flow list [--archived] [--limit N] [--json]`,summary:`List recent flow runs, most recent first: running runs plus ones that ended
1
+ import{K as e}from"./config-D2FxHWwi.js";import{i as t}from"./cli-ZUdhZnuW.js";import{a as n,l as r,m as i,n as a,p as o,s}from"./output-BKeyLbvt.js";import{n as c,r as l,t as u}from"./args-CxsMr9Un.js";import d from"node:process";const f=t({name:`flow list`,help:{usage:`coder flow list [--archived] [--limit N] [--json]`,summary:`List recent flow runs, most recent first: running runs plus ones that ended
2
2
  within the last 30 minutes. Older runs auto-archive and move to --archived.`,flags:[[`--archived`,`show archived runs (auto-archived or via flow archive)`],[`--limit <n|all>`,`show at most n runs (default all)`]]},options:{...u,archived:c,limit:l},run:async({options:e})=>{let{collectFlowRuns:t}=await import(`./executor-5j-Ewzzb.js`).then(e=>e.b);return t(e)},json:e=>e.runs,print:(e,{options:t})=>p(e,t)});function p({runs:t,clipped:c},l){if(!t.length){d.stdout.write(l.archived?`No archived flow runs.
3
3
  `:`No recent flow runs.
4
4
  `),d.stdout.write(`\n${s([`Run one: coder flow run <name>`,`Runnable flows: coder flow discover`],o)}\n`);return}let u=o,f=(e,t,n)=>Math.min(t,Math.max(e,...n.map(e=>e.length))),p={id:f(6,28,t.map(e=>e.runId)),name:f(4,30,t.map(e=>e.name))};d.stdout.write(u.bold(u.light(`${`run-id`.padEnd(p.id)} ${`name`.padEnd(p.name)} ${`status`.padEnd(10)} ${`tasks`.padEnd(9)} ${`tokens`.padEnd(10)} age\n`)));for(let o of t){let t=Object.values(o.ledger).reduce((e,t)=>e+t.total,0);d.stdout.write(`${u.cyan(a(o.runId,p.id))} ${a(o.name,p.name)} ${i(o.status,10)} ${u.light(a(`${o.taskCount} tasks`,9))} ${u.light(a(t?`${r(t)} tok`:`-`,10))} ${u.light(n(e(o.startedAt)))}\n`)}c&&d.stdout.write(u.dim(`\n... ${c} more not shown (--limit ${l.limit})\n`)),d.stdout.write(`\n${s([`Result: coder flow result <run-id>`,`Tasks: coder list`,`Runnable flows: coder flow discover`],u)}\n`)}export{f as commandList};
@@ -1,4 +1,4 @@
1
- import"./config-D2FxHWwi.js";import{i as e,r as t}from"./cli-D5hyqGq0.js";import{a as n,g as r,m as i,p as a,s as o}from"./output-BKeyLbvt.js";import{i as s,n as c,r as l,s as u}from"./args-CxsMr9Un.js";import{c as d,o as f}from"./result-DXL9N9Ip.js";import p from"node:path";import m from"node:process";const h={server:s,workspace:u,yes:c};function g(e){if(!e.length)return void m.stdout.write(`No server tasks.
1
+ import"./config-D2FxHWwi.js";import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{a as n,g as r,m as i,p as a,s as o}from"./output-BKeyLbvt.js";import{i as s,n as c,r as l,s as u}from"./args-CxsMr9Un.js";import{c as d,o as f}from"./result-jeiRJTzA.js";import p from"node:path";import m from"node:process";const h={server:s,workspace:u,yes:c};function g(e){if(!e.length)return void m.stdout.write(`No server tasks.
2
2
  `);let t=a;m.stdout.write(r([{header:`task-id`,value:e=>e.task.id,paint:e=>t.cyan(e)},{header:`status`,value:e=>e.status,paint:e=>d(e,t)},{header:`agent`,value:e=>e.task.agent},{header:`source`,value:e=>e.task.source},{header:`request`,value:e=>(e.task.prompt??(e.task.event?`${e.task.event.type}: ${e.task.event.text}`:`-`)).slice(0,80)},{header:`reply`,value:e=>f(e)??`-`}],e,t))}function _(e,t,s){let c=a;if(!e.length){let n=t.archived?`archived tasks`:t.running?`running tasks`:t.stopped?`recently stopped tasks`:`recent tasks`;m.stdout.write(`No ${n}.\n`),e.archived&&m.stdout.write(`\n${o([`${e.archived} archived: coder task list --archived [--limit N]`],c)}\n`);return}let l=[{header:`task-id`,value:e=>e.taskId,paint:e=>c.cyan(e),max:28},{header:`status`,value:e=>e.status,paint:(e,t)=>i(t.status,e.length),max:16},{header:`engine`,value:e=>(e.engine===`custom`&&e.model?e.model:(e.engine??`-`)+(e.model?`/${e.model}`:``))+(e.effort?`/${e.effort}`:``),paint:e=>c.light(e),max:26},{header:`cwd`,value:e=>e.cwd?p.basename(e.cwd):`-`,paint:e=>c.light(e),max:24},{header:`name`,value:e=>{let t=e.archived?` ${c.dim(`(archived)`)}`:``;return`${e.name?e.name:c.light(e.prompt)}${e.idleMs!==null&&e.idleMs>=12e4?` ${(e.idleMs>6e5?c.red:c.dim)(`· idle ${n(e.idleMs)}`)}`:``}${t}`}}],u=[],d=new Map;for(let t of e){if(!t.flowRunId){let e=u.at(-1);e&&!e.header?e.rows.push(t):u.push({rows:[t]});continue}let e=d.get(t.flowRunId);if(!e){let n=s(t.flowRunId);e={header:n?`(${c.bold(t.flowRunId)} ${n.status}. Flow ${n.name})`:`(${c.bold(t.flowRunId)} flow)`,rows:[]},d.set(t.flowRunId,e),u.push(e)}e.rows.push(t)}m.stdout.write(r(l,u,c)),e.clipped&&m.stdout.write(c.dim(`\n... ${e.clipped} more not shown (--limit ${t.limit===`all`?void 0:t.limit})\n`));let f=[`Result: coder task result <task-id>`];t.archived||f.push(`Older tasks: coder task list --archived [--limit N]`),m.stdout.write(`\n${o(f,c)}\n`)}const v=e({name:`task list`,help:{usage:`coder task list [--running] [--stopped] [--archived [--limit N]] [--server [url]]`,summary:`List recent tasks across all workspaces, most recent first: running tasks plus
3
3
  ones stopped within the last 30 minutes. Older stopped tasks auto-archive and
4
4
  move to --archived. Shortcut: \`coder list\`.`,flags:[[`--running`,`show only running tasks`],[`--stopped`,`show only recently stopped tasks (not yet archived)`],[`--archived`,`show only archived tasks (auto-archived or via task archive)`],[`--limit <n|all>`,`show at most n tasks (default all)`],[`--dir <dir>`,`only tasks launched in that workspace`],t]},options:{cwd:u,dir:u,limit:l,json:c,running:c,stopped:c,archived:c,...h},run:async({options:e})=>{let{tasks:t}=await import(`./task-IoBYe7ok.js`).then(e=>e.t);return t.list({...e,organization:e.workspace})},async print(e,{options:t}){if(t.server!==void 0)return g(e);let{readFlowRecord:n}=await import(`./executor-5j-Ewzzb.js`).then(e=>e.b);_(e,t,n)}});export{v as commandTasks};
@@ -1,2 +1,2 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{g as n,p as r,s as i}from"./output-BKeyLbvt.js";import{i as a,n as o,s,t as c}from"./args-CxsMr9Un.js";import l from"node:process";const u={server:a,workspace:s,yes:o},d=e=>`builtin`in e,f=e=>e.map(e=>d(e)?{id:e.id,name:e.name,source:e.builtin?`builtin`:`repo`,description:e.definition.description??null}:{id:e.id,name:e.name,source:e.source,version:e.currentVersion,description:e.description??null});function p(e,t){if(!e.length)return void l.stdout.write(`No agents configured.
2
- `);let a=r;l.stdout.write(n([{header:`id`,value:e=>e.id,paint:e=>a.cyan(e)},{header:`name`,value:e=>e.name},{header:`source`,value:e=>e.source,paint:e=>a.light(e)},...t?[{header:`version`,value:e=>String(e.version)}]:[],{header:`description`,value:e=>e.description??`-`}],e,a)),!t&&l.stdout.write(`\n${i([`An agent's settings, events, and tools: coder agent show <id>`,`Scaffold a new agent in this repo: coder agent init <id>`],a)}\n`)}const m=e({name:`agent list`,help:{usage:`coder agent list [--server [url]] [--json] [--cwd <dir>]`,summary:`Without --server, one row per built-in and workspace agent. With --server, list the agent records and current versions owned by that Coder server.`,flags:[t]},options:{...c,...u},run:async({options:e,cwd:t})=>{let{agents:n}=await import(`./agent-C1HI4JlI.js`).then(e=>e.t);return n.list({...e,cwd:t,organization:e.workspace})},json:e=>f(e),print:(e,{options:t})=>p(f(e),t.server!==void 0)});export{m as commandAgentList,d as isLocal};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{g as n,p as r,s as i}from"./output-BKeyLbvt.js";import{i as a,n as o,s,t as c}from"./args-CxsMr9Un.js";import l from"node:process";const u={server:a,workspace:s,yes:o},d=e=>`builtin`in e,f=e=>e.map(e=>d(e)?{id:e.id,name:e.name,source:e.builtin?`builtin`:`repo`,description:e.definition.description??null}:{id:e.id,name:e.name,source:e.source,version:e.currentVersion,description:e.description??null});function p(e,t){if(!e.length)return void l.stdout.write(`No agents configured.
2
+ `);let a=r;l.stdout.write(n([{header:`id`,value:e=>e.id,paint:e=>a.cyan(e)},{header:`name`,value:e=>e.name},{header:`source`,value:e=>e.source,paint:e=>a.light(e)},...t?[{header:`version`,value:e=>String(e.version)}]:[],{header:`description`,value:e=>e.description??`-`}],e,a)),!t&&l.stdout.write(`\n${i([`An agent's settings, events, and tools: coder agent show <id>`,`Scaffold a new agent in this repo: coder agent init <id>`],a)}\n`)}const m=e({name:`agent list`,help:{usage:`coder agent list [--server [url]] [--json] [--cwd <dir>]`,summary:`Without --server, one row per built-in and workspace agent. With --server, list the agent records and current versions owned by that Coder server.`,flags:[t]},options:{...c,...u},run:async({options:e,cwd:t})=>{let{agents:n}=await import(`./agent-ChnedLBv.js`).then(e=>e.t);return n.list({...e,cwd:t,organization:e.workspace})},json:e=>f(e),print:(e,{options:t})=>p(f(e),t.server!==void 0)});export{m as commandAgentList,d as isLocal};
@@ -1 +1 @@
1
- import{i as e,t}from"./cli-D5hyqGq0.js";import{g as n,p as r}from"./output-BKeyLbvt.js";import{runnerOptions as i}from"./remove-D65xtbw5.js";import a from"node:process";function o({items:e}){if(!e.length)return void a.stdout.write(`${r.dim(`No runners.`)}\n`);a.stdout.write(`${n([{header:`id`,value:e=>e.id,paint:e=>r.cyan(e)},{header:`name`,value:e=>e.name},{header:`scope`,value:e=>e.scope},{header:`status`,value:e=>e.online?`online`:`offline`},{header:`kind`,value:e=>e.kind},{header:`default`,value:e=>e.default?`yes`:``}],e,r)}\n`)}const s=e({name:`runner list`,globalFlags:{cwd:!1},help:{usage:`coder runner list [--server [url]] [--json]`,flags:[t]},options:i,run:async({options:e})=>{let{listRunners:t}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);return t(e)},print:o});export{s as commandRunnerList};
1
+ import{i as e,t}from"./cli-ZUdhZnuW.js";import{g as n,p as r}from"./output-BKeyLbvt.js";import{runnerOptions as i}from"./remove-BZCA-gdU.js";import a from"node:process";function o({items:e}){if(!e.length)return void a.stdout.write(`${r.dim(`No runners.`)}\n`);a.stdout.write(`${n([{header:`id`,value:e=>e.id,paint:e=>r.cyan(e)},{header:`name`,value:e=>e.name},{header:`scope`,value:e=>e.scope},{header:`status`,value:e=>e.online?`online`:`offline`},{header:`kind`,value:e=>e.kind},{header:`default`,value:e=>e.default?`yes`:``}],e,r)}\n`)}const s=e({name:`runner list`,globalFlags:{cwd:!1},help:{usage:`coder runner list [--server [url]] [--json]`,flags:[t]},options:i,run:async({options:e})=>{let{listRunners:t}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);return t(e)},print:o});export{s as commandRunnerList};
@@ -1,3 +1,3 @@
1
- import{i as e,n as t}from"./cli-D5hyqGq0.js";import{p as n,s as r}from"./output-BKeyLbvt.js";import{r as i}from"./models-CdvmuaLv.js";import{n as a}from"./add-DcR15CL7.js";import o from"node:process";const s=e({name:`model list`,help:{usage:`coder model list [--json]`,summary:`List built-in aliases, configured custom models, and user aliases. Only custom\nmodels are probed.\n\n${t}`},options:a,run:({cwd:e})=>i(e),print:c});function c(e){let i=n,a=e=>e?` ${i.dim(`(disabled)`)}`:``,s=[],c=(e,t)=>{s.push(i.bold(e));for(let e of t)`overrides`in e?s.push(` ${e.disabled?i.dim(`∅`):i.cyan(`↳`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.spec} (overrides ${e.overrides})`)}${a(e.disabled)}`):`builtin`in e?s.push(` ${e.disabled?i.dim(`∅`):i.green(`✔`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.model}`)}${a(e.disabled)}`):s.push(` ${e.disabled?i.dim(`∅`):i.cyan(`↳`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.spec}`)}${a(e.disabled)}`);s.push(``)};c(`Codex models`,e.codex),c(`Claude models`,e.claude),s.push(i.bold(`Custom models`),``),e.custom.length||s.push(i.dim(` None.`));for(let{name:t,probe:n,...r}of e.custom){let e=r.disabled?i.dim(`∅`):n.reachable?i.green(`✔`):i.red(`✘`);s.push(` ${e} ${t.padEnd(14)} ${r.model} ${i.dim(`@ ${r.baseUrl}. ${n.detail}`)}${a(r.disabled)}`)}if(s.push(``),e.toggles){s.push(i.bold(`Other`),``);for(let t of e.toggles)s.push(` ${t.disabled?i.dim(`∅`):i.green(`✔`)} ${t.name.padEnd(14)} ${i.dim(`raw model id`)}${a(t.disabled)}`);s.push(``)}s.push(...t.split(`
1
+ import{i as e,n as t}from"./cli-ZUdhZnuW.js";import{p as n,s as r}from"./output-BKeyLbvt.js";import{r as i}from"./models-CdvmuaLv.js";import{n as a}from"./add-CvBTpxgY.js";import o from"node:process";const s=e({name:`model list`,help:{usage:`coder model list [--json]`,summary:`List built-in aliases, configured custom models, and user aliases. Only custom\nmodels are probed.\n\n${t}`},options:a,run:({cwd:e})=>i(e),print:c});function c(e){let i=n,a=e=>e?` ${i.dim(`(disabled)`)}`:``,s=[],c=(e,t)=>{s.push(i.bold(e));for(let e of t)`overrides`in e?s.push(` ${e.disabled?i.dim(`∅`):i.cyan(`↳`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.spec} (overrides ${e.overrides})`)}${a(e.disabled)}`):`builtin`in e?s.push(` ${e.disabled?i.dim(`∅`):i.green(`✔`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.model}`)}${a(e.disabled)}`):s.push(` ${e.disabled?i.dim(`∅`):i.cyan(`↳`)} ${e.alias.padEnd(14)} ${i.dim(`-> ${e.spec}`)}${a(e.disabled)}`);s.push(``)};c(`Codex models`,e.codex),c(`Claude models`,e.claude),s.push(i.bold(`Custom models`),``),e.custom.length||s.push(i.dim(` None.`));for(let{name:t,probe:n,...r}of e.custom){let e=r.disabled?i.dim(`∅`):n.reachable?i.green(`✔`):i.red(`✘`);s.push(` ${e} ${t.padEnd(14)} ${r.model} ${i.dim(`@ ${r.baseUrl}. ${n.detail}`)}${a(r.disabled)}`)}if(s.push(``),e.toggles){s.push(i.bold(`Other`),``);for(let t of e.toggles)s.push(` ${t.disabled?i.dim(`∅`):i.green(`✔`)} ${t.name.padEnd(14)} ${i.dim(`raw model id`)}${a(t.disabled)}`);s.push(``)}s.push(...t.split(`
2
2
  `),``,r([`Add a custom model: coder model add <name> --base-url <url> --model <id> [--env-key VAR]`,`Alias a model, e.g. fast codex:luna: coder model alias <name> <spec>`,`Run with a model: coder run --model <name> "<task>"`],i)),o.stdout.write(`${s.join(`
3
3
  `)}\n`)}export{s as commandModelList};
@@ -1 +1 @@
1
- import{qt as e}from"./config-D2FxHWwi.js";import{t}from"./integrations-D3OgJk6Y.js";import{a as n,i as r,l as i,s as a}from"./task-CB-j4EO8.js";import o from"node:path";import s from"node:process";import c from"node:fs";import{execFile as l,spawn as u}from"node:child_process";import d from"node:fs/promises";import{promisify as f}from"node:util";const p=e=>Buffer.from(JSON.stringify(e)).toString(`base64url`),m=e=>JSON.parse(Buffer.from(e,`base64url`).toString(`utf8`)),h=f(l);async function g(e){if(s.platform===`linux`){let t=await d.readFile(`/proc/${e}/stat`,`utf8`).catch(()=>``);return t.slice(t.lastIndexOf(`)`)+2).split(` `)[19]}return(await h(`ps`,[`-p`,String(e),`-o`,`lstart=`]).catch(()=>void 0))?.stdout.trim()||void 0}function _(e){let t=m(e);if(!Number.isInteger(t.pid)||typeof t.dir!=`string`||typeof t.started!=`string`)throw Error(`Invalid local runner handle`);return t}var v=class{workDir;kind=`local`;children=new Map;constructor(e){this.workDir=e}async start(t,i){await d.mkdir(this.workDir,{recursive:!0});let l=await d.mkdtemp(o.join(this.workDir,`task-`)),f=t.runner===`local`?r(t):void 0,m=c.openSync(o.join(l,`runner.log`),`a`),h=u(s.execPath,[e,`agent`,`run`,`--task`,t.id],{cwd:l,detached:!0,env:{PATH:s.env.PATH??``,HOME:s.env.HOME??``,TMPDIR:s.env.TMPDIR??``,...s.env.CODER_HOME?{CODER_HOME:s.env.CODER_HOME}:{},...i,...f?{CODER_CHECKOUT_CACHE:f}:{},CODER_INBOX_SOCKET:n(l)},stdio:[`ignore`,m,m]});await new Promise((e,t)=>{h.once(`spawn`,e),h.once(`error`,t)}),c.closeSync(m);let _={child:h};this.children.set(h.pid,_),h.once(`close`,e=>{_.code=e,a(o.join(l,`repo`)).catch(e=>console.error(`coder runner: checkout cleanup failed`,e))}),h.unref();let v=await g(h.pid);if(!v)throw Error(`Could not identify the local runner process`);return p({pid:h.pid,dir:l,started:v})}async status(e){let{pid:t,dir:n,started:r}=_(e),i=this.children.get(t);if(i?.code===void 0)try{if(s.kill(t,0),await g(t)===r)return{state:`running`}}catch{}return await a(o.join(n,`repo`)),{state:`exited`,...i?.code==null?{}:{code:i.code}}}async stop(e){let{pid:t,started:n}=_(e);if(await g(t)===n)try{s.kill(-t,`SIGTERM`)}catch{try{s.kill(t,`SIGTERM`)}catch{}}}async push(e,t){let{pid:r,dir:a,started:o}=_(e);if(await g(r)!==o)throw Error(`The task process exited`);return i(n(a),t)}};function y(e,t,n={}){return new Promise((r,i)=>{let a=u(e,t,{env:n,stdio:[`ignore`,`pipe`,`pipe`]}),o=``,s=``;a.stdout.on(`data`,e=>o+=String(e)),a.stderr.on(`data`,e=>s+=String(e)),a.once(`error`,i),a.once(`close`,e=>r({code:e,stdout:o,stderr:s}))})}function b(){return Object.values(t).flatMap(e=>e.tools.install?[`(${e.tools.install})`]:[])}export{p as a,m as i,y as n,b as r,v as t};
1
+ import{qt as e}from"./config-D2FxHWwi.js";import{t}from"./integrations-D3OgJk6Y.js";import{a as n,i as r,l as i,s as a}from"./task-DXHKWB_J.js";import o from"node:path";import s from"node:process";import c from"node:fs";import{execFile as l,spawn as u}from"node:child_process";import d from"node:fs/promises";import{promisify as f}from"node:util";const p=e=>Buffer.from(JSON.stringify(e)).toString(`base64url`),m=e=>JSON.parse(Buffer.from(e,`base64url`).toString(`utf8`)),h=f(l);async function g(e){if(s.platform===`linux`){let t=await d.readFile(`/proc/${e}/stat`,`utf8`).catch(()=>``);return t.slice(t.lastIndexOf(`)`)+2).split(` `)[19]}return(await h(`ps`,[`-p`,String(e),`-o`,`lstart=`]).catch(()=>void 0))?.stdout.trim()||void 0}function _(e){let t=m(e);if(!Number.isInteger(t.pid)||typeof t.dir!=`string`||typeof t.started!=`string`)throw Error(`Invalid local runner handle`);return t}var v=class{workDir;kind=`local`;children=new Map;constructor(e){this.workDir=e}async start(t,i){await d.mkdir(this.workDir,{recursive:!0});let l=await d.mkdtemp(o.join(this.workDir,`task-`)),f=t.runner===`local`?r(t):void 0,m=c.openSync(o.join(l,`runner.log`),`a`),h=u(s.execPath,[e,`agent`,`run`,`--task`,t.id],{cwd:l,detached:!0,env:{PATH:s.env.PATH??``,HOME:s.env.HOME??``,TMPDIR:s.env.TMPDIR??``,...s.env.CODER_HOME?{CODER_HOME:s.env.CODER_HOME}:{},...i,...f?{CODER_CHECKOUT_CACHE:f}:{},CODER_INBOX_SOCKET:n(l)},stdio:[`ignore`,m,m]});await new Promise((e,t)=>{h.once(`spawn`,e),h.once(`error`,t)}),c.closeSync(m);let _={child:h};this.children.set(h.pid,_),h.once(`close`,e=>{_.code=e,a(o.join(l,`repo`)).catch(e=>console.error(`coder runner: checkout cleanup failed`,e))}),h.unref();let v=await g(h.pid);if(!v)throw Error(`Could not identify the local runner process`);return p({pid:h.pid,dir:l,started:v})}async status(e){let{pid:t,dir:n,started:r}=_(e),i=this.children.get(t);if(i?.code===void 0)try{if(s.kill(t,0),await g(t)===r)return{state:`running`}}catch{}return await a(o.join(n,`repo`)),{state:`exited`,...i?.code==null?{}:{code:i.code}}}async stop(e){let{pid:t,started:n}=_(e);if(await g(t)===n)try{s.kill(-t,`SIGTERM`)}catch{try{s.kill(t,`SIGTERM`)}catch{}}}async push(e,t){let{pid:r,dir:a,started:o}=_(e);if(await g(r)!==o)throw Error(`The task process exited`);return i(n(a),t)}};function y(e,t,n={}){return new Promise((r,i)=>{let a=u(e,t,{env:n,stdio:[`ignore`,`pipe`,`pipe`]}),o=``,s=``;a.stdout.on(`data`,e=>o+=String(e)),a.stderr.on(`data`,e=>s+=String(e)),a.once(`error`,i),a.once(`close`,e=>r({code:e,stdout:o,stderr:s}))})}function b(){return Object.values(t).flatMap(e=>e.tools.install?[`(${e.tools.install})`]:[])}export{p as a,m as i,y as n,b as r,v as t};
@@ -1 +1 @@
1
- import{i as e,t}from"./cli-D5hyqGq0.js";import{p as n,r,s as i}from"./output-BKeyLbvt.js";import{n as a,o}from"./args-CxsMr9Un.js";import s from"node:process";import c from"node:readline/promises";function l(e){e.url&&s.stderr.write(`Open ${n.cyan(e.url)}\n`),e.code&&s.stderr.write(`Enter the code ${n.bold(e.code)}\n`)}async function u(){let e=c.createInterface({input:s.stdin,output:s.stderr}),t=(await e.question(`Paste the code from the sign-in page `)).trim();return e.close(),t}function d(e){if(e.state===`failed`)return void s.stderr.write(`${r.red(e.error??`Sign-in failed.`)}\n\n${i([`Try again`],r)}\n`);s.stdout.write(`Signed in. Personal credential ${n.bold(e.label??e.engine)} is your ${e.engine} default.\n`)}const f=e({name:`credentials login`,globalFlags:{cwd:!1},help:{usage:`coder credentials login <claude|codex> [--server [url]] [--json]`,summary:`Runs the official claude or codex sign-in on the server's runner, prints the sign-in link or device code, and waits. Claude asks you to paste the code the sign-in page shows. The result is your personal default for that engine. Needs CLAUDE_SUBSCRIPTIONS=1 or CODEX_SUBSCRIPTIONS=1 on the server.`,flags:[t]},options:{json:a,server:o,yes:a},args:1,run:async({options:e,args:[t]})=>{let{loginCredential:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);return n(t,{...e,onStart:e=>s.once(`SIGINT`,()=>void e().finally(()=>s.exit(130))),onOpen:l,code:u})},print:d,exit:(e,{options:t})=>!t.json&&e.state===`failed`?1:void 0});export{f as commandCredentialsLogin};
1
+ import{i as e,t}from"./cli-ZUdhZnuW.js";import{p as n,r,s as i}from"./output-BKeyLbvt.js";import{n as a,o}from"./args-CxsMr9Un.js";import s from"node:process";import c from"node:readline/promises";function l(e){e.url&&s.stderr.write(`Open ${n.cyan(e.url)}\n`),e.code&&s.stderr.write(`Enter the code ${n.bold(e.code)}\n`)}async function u(){let e=c.createInterface({input:s.stdin,output:s.stderr}),t=(await e.question(`Paste the code from the sign-in page `)).trim();return e.close(),t}function d(e){if(e.state===`failed`)return void s.stderr.write(`${r.red(e.error??`Sign-in failed.`)}\n\n${i([`Try again`],r)}\n`);s.stdout.write(`Signed in. Personal credential ${n.bold(e.label??e.engine)} is your ${e.engine} default.\n`)}const f=e({name:`credentials login`,globalFlags:{cwd:!1},help:{usage:`coder credentials login <claude|codex> [--server [url]] [--json]`,summary:`Runs the official claude or codex sign-in on the server's runner, prints the sign-in link or device code, and waits. Claude asks you to paste the code the sign-in page shows. The result is your personal default for that engine. Needs CLAUDE_SUBSCRIPTIONS=1 or CODEX_SUBSCRIPTIONS=1 on the server.`,flags:[t]},options:{json:a,server:o,yes:a},args:1,run:async({options:e,args:[t]})=>{let{loginCredential:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);return n(t,{...e,onStart:e=>s.once(`SIGINT`,()=>void e().finally(()=>s.exit(130))),onOpen:l,code:u})},print:d,exit:(e,{options:t})=>!t.json&&e.state===`failed`?1:void 0});export{f as commandCredentialsLogin};
@@ -1 +1 @@
1
- import{H as e}from"./dispatch-D3Dqxijf.js";import{a as t,i as n,r}from"./prompt-C--TI1qn.js";import{i,r as a}from"./cli-D5hyqGq0.js";import{p as o}from"./output-BKeyLbvt.js";import{i as s,n as c,s as l}from"./args-CxsMr9Un.js";import u from"node:process";const d=t=>{throw t instanceof e&&t.code===`login-failed`?new e(`invalid-option`,t.message,t.hint?{hint:t.hint}:{}):t},f=i({name:`auth login`,globalFlags:{cwd:!1},help:{usage:`coder auth login [--server [url]] [--workspace <slug>] [--device] [--json]`,summary:`Sign in with Wular Auth in your browser. The CLI keeps the tokens in ~/.coder/session.json, and commands that talk to a server then act as you.`,flags:[a,[`--device`,`show a code to approve on another device; the default without a local browser`]],env:[[`CODER_SERVER`,`the server to use instead of https://coder.wular.ai`]],examples:[[`coder auth login`,`sign in to the hosted service`],[`coder auth login --server https://agents.example.com`,`sign in to a self-hosted server`]]},options:{json:c,server:s,workspace:l,yes:c,device:c},run:async({options:e})=>{let{hasBrowser:i,sessions:a}=await import(`./remote-oQs6My_3.js`).then(e=>e.c);return a.login({server:e.server,yes:e.yes,device:e.device||!i(),open:e=>{u.stdout.write(`Opening your browser to sign in. If it does not open, visit\n${o.light(e)}\n`),n(e)},onCode:(e,t)=>u.stdout.write(`Confirm this code in your browser: ${o.bold(e)}\n${o.light(t)}\n`),organization:e.workspace,...r()?{chooseOrganization:async e=>{let[n]=await t({title:`Workspace`,hint:`Commands for this server use this workspace by default.`,options:e.map(e=>({value:e.slug,label:e.name,hint:e.slug}))});return n}}:{}}).catch(d)},json:e=>({server:e.server,user:e.user,organization:e.organization}),print:e=>{let t=o;u.stdout.write(`${t.green(`✔`)} Signed in to ${t.bold(e.server)} as ${e.user.email}${e.organization?` ${t.dim(`· ${e.organization.name}`)}`:``}\n`)}});export{f as commandLogin,d as ownHint};
1
+ import{H as e}from"./dispatch-D3Dqxijf.js";import{a as t,i as n,r}from"./prompt-C--TI1qn.js";import{i,r as a}from"./cli-ZUdhZnuW.js";import{p as o}from"./output-BKeyLbvt.js";import{i as s,n as c,s as l}from"./args-CxsMr9Un.js";import u from"node:process";const d=t=>{throw t instanceof e&&t.code===`login-failed`?new e(`invalid-option`,t.message,t.hint?{hint:t.hint}:{}):t},f=i({name:`auth login`,globalFlags:{cwd:!1},help:{usage:`coder auth login [--server [url]] [--workspace <slug>] [--device] [--json]`,summary:`Sign in with Wular Auth in your browser. The CLI keeps the tokens in ~/.coder/session.json, and commands that talk to a server then act as you.`,flags:[a,[`--device`,`show a code to approve on another device; the default without a local browser`]],env:[[`CODER_SERVER`,`the server to use instead of https://coder.wular.ai`]],examples:[[`coder auth login`,`sign in to the hosted service`],[`coder auth login --server https://agents.example.com`,`sign in to a self-hosted server`]]},options:{json:c,server:s,workspace:l,yes:c,device:c},run:async({options:e})=>{let{hasBrowser:i,sessions:a}=await import(`./remote-oQs6My_3.js`).then(e=>e.c);return a.login({server:e.server,yes:e.yes,device:e.device||!i(),open:e=>{u.stdout.write(`Opening your browser to sign in. If it does not open, visit\n${o.light(e)}\n`),n(e)},onCode:(e,t)=>u.stdout.write(`Confirm this code in your browser: ${o.bold(e)}\n${o.light(t)}\n`),organization:e.workspace,...r()?{chooseOrganization:async e=>{let[n]=await t({title:`Workspace`,hint:`Commands for this server use this workspace by default.`,options:e.map(e=>({value:e.slug,label:e.name,hint:e.slug}))});return n}}:{}}).catch(d)},json:e=>({server:e.server,user:e.user,organization:e.organization}),print:e=>{let t=o;u.stdout.write(`${t.green(`✔`)} Signed in to ${t.bold(e.server)} as ${e.user.email}${e.organization?` ${t.dim(`· ${e.organization.name}`)}`:``}\n`)}});export{f as commandLogin,d as ownHint};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{i as n,n as r}from"./args-CxsMr9Un.js";import{ownHint as i}from"./login-CCA0uLsW.js";import a from"node:process";const o=e({name:`auth logout`,globalFlags:{cwd:!1},help:{usage:`coder auth logout [--server [url]] [--json]`,summary:`Revoke the saved session for that server at Wular Auth and forget its tokens.`,flags:[t]},options:{json:r,server:n,yes:r},run:async({options:e})=>{let{sessions:t}=await import(`./remote-oQs6My_3.js`).then(e=>e.c);return t.logout(e).catch(i)},print:e=>a.stdout.write(`Signed out of ${e.server}.\n`)});export{o as commandLogout};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{i as n,n as r}from"./args-CxsMr9Un.js";import{ownHint as i}from"./login-CpHx_RCq.js";import a from"node:process";const o=e({name:`auth logout`,globalFlags:{cwd:!1},help:{usage:`coder auth logout [--server [url]] [--json]`,summary:`Revoke the saved session for that server at Wular Auth and forget its tokens.`,flags:[t]},options:{json:r,server:n,yes:r},run:async({options:e})=>{let{sessions:t}=await import(`./remote-oQs6My_3.js`).then(e=>e.c);return t.logout(e).catch(i)},print:e=>a.stdout.write(`Signed out of ${e.server}.\n`)});export{o as commandLogout};
@@ -1 +1 @@
1
- import{qi as e}from"./core-DwsAMCnL.js";import{H as t}from"./dispatch-D3Dqxijf.js";import{Ct as n,Rn as r,vn as i}from"./apps-aj_JtpAm.js";import{n as a}from"./env-C_DoQYl5.js";import{C as o,S as s,b as c,w as l}from"./runners-UNKPlmYE.js";import{L as u,M as d,d as f,i as p,l as m,z as h}from"./schema-BSlHRFSP.js";import g from"node:process";var _=e({rotateKey:()=>y});async function v(e){try{return await e()}catch(e){throw e instanceof t?e:new t(`server`,e instanceof Error?e.message:String(e))}}function y(e={}){return v(async()=>{let _=a(e.env??g.env);if(!_.encryptionKey)throw new t(`invalid-option`,`SERVER_ENCRYPTION_KEY is required to rotate keys.`,{hint:`Set the new key in SERVER_ENCRYPTION_KEY and the old key in SERVER_ENCRYPTION_KEY_PREVIOUS.`});let v=await r(_);try{let e=new Set([v.defaultOrganizationId]);if(v.connection){let t=v.connection.db,[n,r,a]=await Promise.all([t.selectDistinct({id:f.organizationId}).from(f),t.select({key:p.key}).from(p).where(h(p.key,`o:%,"config"]:workspace`)),t.select({key:p.key}).from(p).where(h(p.key,`o:%,"connection"]:%`))]);for(let t of n)e.add(t.id);for(let t of r){let n;try{n=JSON.parse(t.key.slice(2,-10))}catch{continue}Array.isArray(n)&&n.length===2&&typeof n[0]==`string`&&n[1]===`config`&&t.key===i(n[0],`config`,`workspace`)&&e.add(n[0])}for(let t of a){let n=t.key.lastIndexOf(`,"connection"]:`);try{let r=JSON.parse(t.key.slice(2,n+14));Array.isArray(r)&&r.length===2&&typeof r[0]==`string`&&r[1]===`connection`&&e.add(r[0])}catch{}}}let t=0;for(let r of e)t+=await n(v.store(r),_);let r=v.connection?.db,a=o(_.encryptionKey);for(let e of r?await r.select().from(m).where(u(m.token)):[])l(_,e.token)!==a&&(await r.update(m).set({token:s(_,c(_,e.token))}).where(d(m.id,e.id)),t++);return{moved:t}}finally{await v.close()}})}export{y as n,_ as t};
1
+ import{qi as e}from"./core-DwsAMCnL.js";import{H as t}from"./dispatch-D3Dqxijf.js";import{Ct as n,Rn as r,vn as i}from"./apps-B60OpAHX.js";import{n as a}from"./env-C_DoQYl5.js";import{C as o,S as s,b as c,w as l}from"./runners-CNhxPjg8.js";import{L as u,M as d,d as f,i as p,l as m,z as h}from"./schema-BSlHRFSP.js";import g from"node:process";var _=e({rotateKey:()=>y});async function v(e){try{return await e()}catch(e){throw e instanceof t?e:new t(`server`,e instanceof Error?e.message:String(e))}}function y(e={}){return v(async()=>{let _=a(e.env??g.env);if(!_.encryptionKey)throw new t(`invalid-option`,`SERVER_ENCRYPTION_KEY is required to rotate keys.`,{hint:`Set the new key in SERVER_ENCRYPTION_KEY and the old key in SERVER_ENCRYPTION_KEY_PREVIOUS.`});let v=await r(_);try{let e=new Set([v.defaultOrganizationId]);if(v.connection){let t=v.connection.db,[n,r,a]=await Promise.all([t.selectDistinct({id:f.organizationId}).from(f),t.select({key:p.key}).from(p).where(h(p.key,`o:%,"config"]:workspace`)),t.select({key:p.key}).from(p).where(h(p.key,`o:%,"connection"]:%`))]);for(let t of n)e.add(t.id);for(let t of r){let n;try{n=JSON.parse(t.key.slice(2,-10))}catch{continue}Array.isArray(n)&&n.length===2&&typeof n[0]==`string`&&n[1]===`config`&&t.key===i(n[0],`config`,`workspace`)&&e.add(n[0])}for(let t of a){let n=t.key.lastIndexOf(`,"connection"]:`);try{let r=JSON.parse(t.key.slice(2,n+14));Array.isArray(r)&&r.length===2&&typeof r[0]==`string`&&r[1]===`connection`&&e.add(r[0])}catch{}}}let t=0;for(let r of e)t+=await n(v.store(r),_);let r=v.connection?.db,a=o(_.encryptionKey);for(let e of r?await r.select().from(m).where(u(m.token)):[])l(_,e.token)!==a&&(await r.update(m).set({token:s(_,c(_,e.token))}).where(d(m.id,e.id)),t++);return{moved:t}}finally{await v.close()}})}export{y as n,_ as t};
@@ -1,4 +1,4 @@
1
- import{Ct as e,En as t,Et as n,Yt as r,a as i,ct as a,q as o,wn as s,y as c}from"./config-D2FxHWwi.js";import{_ as l,v as u,y as d}from"./dispatch-D3Dqxijf.js";import{i as f}from"./cli-D5hyqGq0.js";import{s as p}from"./args-CxsMr9Un.js";import{n as m}from"./mcp-server-DGzme0YX.js";import h from"node:path";import g from"node:fs";import{spawn as _}from"node:child_process";import{randomUUID as v}from"node:crypto";function y(e){return h.join(e,`sidecar.json`)}function b(e){return s(y(e))??{sessionId:null,declineStreak:0}}async function x(e){let t=h.join(e,`sidecar.lock`),n=Date.now()+12e4;for(;;)try{return g.mkdirSync(t),()=>{try{g.rmdirSync(t)}catch{}}}catch{try{if(Date.now()-g.statSync(t).mtimeMs>9e4){g.rmdirSync(t);continue}}catch{continue}if(Date.now()>n)throw Error(`sidecar lock wait timed out`);await new Promise(e=>setTimeout(e,250))}}function S(e,t,n,r){return[`-p`,r,`--output-format`,`json`,`--model`,`sonnet`,`--effort`,`low`,`--strict-mcp-config`,`--no-chrome`,`--mcp-config`,`{"mcpServers":{}}`,`--settings`,`{"disableClaudeAiConnectors":true}`,n?`--resume`:`--session-id`,t,...i,`--add-dir`,e]}function C(e,t,n,r,i){let a=S(t,n,r,i);return new Promise((t,n)=>{let r=_(`claude`,a,{cwd:e,stdio:[`ignore`,`pipe`,`pipe`]}),i=``,o=``,s=setTimeout(()=>{r.kill(`SIGKILL`),n(Error(`sidecar call timed out`))},12e4);r.stdout.on(`data`,e=>i+=e),r.stderr.on(`data`,e=>o+=e),r.on(`error`,e=>{clearTimeout(s),n(e)}),r.on(`close`,e=>{if(clearTimeout(s),e!==0){n(Error(`sidecar claude exited ${e}: ${o.trim().slice(0,200)}`));return}try{let e=JSON.parse(i);if(e.is_error){n(Error(`sidecar turn errored: ${String(e.result??``).slice(0,200)}`));return}t(String(e.result??``))}catch{n(Error(`sidecar returned unparseable output`))}})})}function w(e){let t=e.match(/\{[^{}]*"decision"[^{}]*\}/);if(!t)return null;try{let e=JSON.parse(t[0]);if(e.decision===`accept`||e.decision===`decline`||e.decision===`escalate`)return{decision:e.decision,reason:String(e.reason??``)}}catch{}return null}async function T(e,n,r){let i=null;try{i=await x(n);let a=b(n);if(a.declineStreak>=3)return{decision:`escalate`,reason:`sidecar decline streak; needs human review`};if(!a.sessionId){let i=v();await C(e,n,i,!1,`You are the approval reviewer for a "coder" background coding task. The task runs inside an OS sandbox; you review only actions that escape it.
1
+ import{Ct as e,En as t,Et as n,Yt as r,a as i,ct as a,q as o,wn as s,y as c}from"./config-D2FxHWwi.js";import{_ as l,v as u,y as d}from"./dispatch-D3Dqxijf.js";import{i as f}from"./cli-ZUdhZnuW.js";import{s as p}from"./args-CxsMr9Un.js";import{n as m}from"./mcp-server-DGzme0YX.js";import h from"node:path";import g from"node:fs";import{spawn as _}from"node:child_process";import{randomUUID as v}from"node:crypto";function y(e){return h.join(e,`sidecar.json`)}function b(e){return s(y(e))??{sessionId:null,declineStreak:0}}async function x(e){let t=h.join(e,`sidecar.lock`),n=Date.now()+12e4;for(;;)try{return g.mkdirSync(t),()=>{try{g.rmdirSync(t)}catch{}}}catch{try{if(Date.now()-g.statSync(t).mtimeMs>9e4){g.rmdirSync(t);continue}}catch{continue}if(Date.now()>n)throw Error(`sidecar lock wait timed out`);await new Promise(e=>setTimeout(e,250))}}function S(e,t,n,r){return[`-p`,r,`--output-format`,`json`,`--model`,`sonnet`,`--effort`,`low`,`--strict-mcp-config`,`--no-chrome`,`--mcp-config`,`{"mcpServers":{}}`,`--settings`,`{"disableClaudeAiConnectors":true}`,n?`--resume`:`--session-id`,t,...i,`--add-dir`,e]}function C(e,t,n,r,i){let a=S(t,n,r,i);return new Promise((t,n)=>{let r=_(`claude`,a,{cwd:e,stdio:[`ignore`,`pipe`,`pipe`]}),i=``,o=``,s=setTimeout(()=>{r.kill(`SIGKILL`),n(Error(`sidecar call timed out`))},12e4);r.stdout.on(`data`,e=>i+=e),r.stderr.on(`data`,e=>o+=e),r.on(`error`,e=>{clearTimeout(s),n(e)}),r.on(`close`,e=>{if(clearTimeout(s),e!==0){n(Error(`sidecar claude exited ${e}: ${o.trim().slice(0,200)}`));return}try{let e=JSON.parse(i);if(e.is_error){n(Error(`sidecar turn errored: ${String(e.result??``).slice(0,200)}`));return}t(String(e.result??``))}catch{n(Error(`sidecar returned unparseable output`))}})})}function w(e){let t=e.match(/\{[^{}]*"decision"[^{}]*\}/);if(!t)return null;try{let e=JSON.parse(t[0]);if(e.decision===`accept`||e.decision===`decline`||e.decision===`escalate`)return{decision:e.decision,reason:String(e.reason??``)}}catch{}return null}async function T(e,n,r){let i=null;try{i=await x(n);let a=b(n);if(a.declineStreak>=3)return{decision:`escalate`,reason:`sidecar decline streak; needs human review`};if(!a.sessionId){let i=v();await C(e,n,i,!1,`You are the approval reviewer for a "coder" background coding task. The task runs inside an OS sandbox; you review only actions that escape it.
2
2
 
3
3
  Rules:
4
4
  - git stays read-only: decline any git write (commit/push/checkout/reset/...).
@@ -1 +1 @@
1
- import{s as e}from"./cli-D5hyqGq0.js";const t=e(`model`,{list:async()=>(await import(`./list-D0NK3Iqu.js`)).commandModelList,ls:async()=>(await import(`./list-D0NK3Iqu.js`)).commandModelList,add:async()=>(await import(`./add-DcR15CL7.js`).then(e=>e.t)).commandModelAdd,setup:async()=>(await import(`./add-DcR15CL7.js`).then(e=>e.t)).commandModelAdd,update:async()=>(await import(`./update-DoJEPBvm.js`)).commandModelUpdate,remove:async()=>(await import(`./remove-D1UOd48O.js`).then(e=>e.n)).commandModelRemove,disable:async()=>(await import(`./disable-VvU6oDku.js`)).commandModelDisable,enable:async()=>(await import(`./enable-BmvNVDHO.js`)).commandModelEnable,alias:async()=>(await import(`./alias-DghaKDbh.js`)).commandModelAlias,unalias:async()=>(await import(`./unalias-9AwJnbpE.js`)).commandModelUnalias},{menu:[{usage:`list`,blurb:`list built-ins, custom models, and aliases`},{usage:`add <name> --base-url <url> --model <id> [--env-key VAR]`,blurb:`connect a model (alias: setup)`},{usage:`update <name> [--base-url|--model|--env-key]`,blurb:`change a model in place`},{usage:`remove <name>`,blurb:`delete a custom model`},{usage:`disable <name>`,blurb:`turn off a model (built-in, custom, or alias)`},{usage:`enable <name>`,blurb:`re-enable a disabled model`},{usage:`alias <name> <spec>`,blurb:`name a spec, e.g. fast codex:luna`},{usage:`unalias <name>`,blurb:`remove an alias`}],description:["Manage the models coder can dispatch to. `add` connects any OpenAI-compatible",`endpoint (Ollama, vLLM, OpenRouter, ...) as the custom engine, alongside the`,"built-in codex/claude models. Name your own shortcuts with `alias`",`(e.g. fast -> codex:luna); disable/enable turns any model off and on.`]});export{t as commandModel};
1
+ import{s as e}from"./cli-ZUdhZnuW.js";const t=e(`model`,{list:async()=>(await import(`./list-DkO78ZEF.js`)).commandModelList,ls:async()=>(await import(`./list-DkO78ZEF.js`)).commandModelList,add:async()=>(await import(`./add-CvBTpxgY.js`).then(e=>e.t)).commandModelAdd,setup:async()=>(await import(`./add-CvBTpxgY.js`).then(e=>e.t)).commandModelAdd,update:async()=>(await import(`./update-MNyeVXyy.js`)).commandModelUpdate,remove:async()=>(await import(`./remove-BcewhH1U.js`).then(e=>e.n)).commandModelRemove,disable:async()=>(await import(`./disable-CnCxTC3X.js`)).commandModelDisable,enable:async()=>(await import(`./enable-BWvDv7dP.js`)).commandModelEnable,alias:async()=>(await import(`./alias-BpgVDY6_.js`)).commandModelAlias,unalias:async()=>(await import(`./unalias-Cqx7i_L0.js`)).commandModelUnalias},{menu:[{usage:`list`,blurb:`list built-ins, custom models, and aliases`},{usage:`add <name> --base-url <url> --model <id> [--env-key VAR]`,blurb:`connect a model (alias: setup)`},{usage:`update <name> [--base-url|--model|--env-key]`,blurb:`change a model in place`},{usage:`remove <name>`,blurb:`delete a custom model`},{usage:`disable <name>`,blurb:`turn off a model (built-in, custom, or alias)`},{usage:`enable <name>`,blurb:`re-enable a disabled model`},{usage:`alias <name> <spec>`,blurb:`name a spec, e.g. fast codex:luna`},{usage:`unalias <name>`,blurb:`remove an alias`}],description:["Manage the models coder can dispatch to. `add` connects any OpenAI-compatible",`endpoint (Ollama, vLLM, OpenRouter, ...) as the custom engine, alongside the`,"built-in codex/claude models. Name your own shortcuts with `alias`",`(e.g. fast -> codex:luna); disable/enable turns any model off and on.`]});export{t as commandModel};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r,n as i,s as a,t as o}from"./args-CxsMr9Un.js";import s from"node:process";const c=e({name:`agent push`,help:{usage:`coder agent push [id] [--server [url]] [--json] [--cwd <dir>]`,summary:`Upload one workspace agent, or every agent in .coder/agents when no id is given. The server creates a new immutable version only when its definition, prompt, or files changed.`,flags:[t],examples:[[`coder agent push helper`,`upload helper`]]},options:{...o,server:r,workspace:a,yes:i},args:1,run:async({options:e,args:[t],cwd:n})=>{let{agents:r}=await import(`./agent-C1HI4JlI.js`).then(e=>e.t);return r.push(t,{...e,cwd:n,organization:e.workspace})},print:e=>{for(let t of e){s.stdout.write(t.unchanged?`Pushed ${n.bold(t.id)} unchanged (version ${t.version})\n`:`Pushed ${n.bold(t.id)} as version ${t.version}\n`);for(let e of t.apps??[])e.error?s.stderr.write(`${e.error}\n`):e.drift&&s.stderr.write(`${e.name} needs changes on ${e.integration}; see Update on the agent's Platforms tab.\n`)}}});export{c as commandAgentPush};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r,n as i,s as a,t as o}from"./args-CxsMr9Un.js";import s from"node:process";const c=e({name:`agent push`,help:{usage:`coder agent push [id] [--server [url]] [--json] [--cwd <dir>]`,summary:`Upload one workspace agent, or every agent in .coder/agents when no id is given. The server creates a new immutable version only when its definition, prompt, or files changed.`,flags:[t],examples:[[`coder agent push helper`,`upload helper`]]},options:{...o,server:r,workspace:a,yes:i},args:1,run:async({options:e,args:[t],cwd:n})=>{let{agents:r}=await import(`./agent-ChnedLBv.js`).then(e=>e.t);return r.push(t,{...e,cwd:n,organization:e.workspace})},print:e=>{for(let t of e){s.stdout.write(t.unchanged?`Pushed ${n.bold(t.id)} unchanged (version ${t.version})\n`:`Pushed ${n.bold(t.id)} as version ${t.version}\n`);for(let e of t.apps??[])e.error?s.stderr.write(`${e.error}\n`):e.drift&&s.stderr.write(`${e.name} needs changes on ${e.integration}; see Update on the agent's Platforms tab.\n`)}}});export{c as commandAgentPush};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{t as r}from"./args-CxsMr9Un.js";import{askKey as i,openSignIn as a,serverOptions as o}from"./add-Df1Ezy3y.js";import s from"node:process";const c=e({name:`connection reconnect`,help:{usage:`coder connection reconnect <name> [--server [url]] [--json]`,summary:`Give a key connection its new key, read from stdin or a prompt, or sign in to an OAuth connection again in the browser. The credential an API key connection reads gets the new value, so every connection reading it rotates.`,flags:[t],examples:[[`pbpaste | coder connection reconnect groq`,`the new key from the clipboard`]]},options:{...r,...o},args:1,run:async({options:e,args:[t],cwd:n})=>{let{connection:r}=await import(`./connection-wq0CJZKh.js`).then(e=>e.n);return r.reconnect(t,{...e,cwd:n,askKey:i,onAuthorize:a})},print:e=>s.stdout.write(`Reconnected ${n.bold(e.id)}.\n`)});export{c as commandConnectionReconnect};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{t as r}from"./args-CxsMr9Un.js";import{askKey as i,openSignIn as a,serverOptions as o}from"./add-Ck_y_nKX.js";import s from"node:process";const c=e({name:`connection reconnect`,help:{usage:`coder connection reconnect <name> [--server [url]] [--json]`,summary:`Give a key connection its new key, read from stdin or a prompt, or sign in to an OAuth connection again in the browser. The credential an API key connection reads gets the new value, so every connection reading it rotates.`,flags:[t],examples:[[`pbpaste | coder connection reconnect groq`,`the new key from the clipboard`]]},options:{...r,...o},args:1,run:async({options:e,args:[t],cwd:n})=>{let{connection:r}=await import(`./connection-BCRJHTgp.js`).then(e=>e.n);return r.reconnect(t,{...e,cwd:n,askKey:i,onAuthorize:a})},print:e=>s.stdout.write(`Reconnected ${n.bold(e.id)}.\n`)});export{c as commandConnectionReconnect};
@@ -1 +1 @@
1
- import{Yt as e}from"./config-D2FxHWwi.js";import{O as t}from"./dispatch-D3Dqxijf.js";import{i as n}from"./cli-D5hyqGq0.js";const r=n({name:`upgrade refresh`,options:{},run:()=>t(e())});export{r as commandRefreshUpdate};
1
+ import{Yt as e}from"./config-D2FxHWwi.js";import{O as t}from"./dispatch-D3Dqxijf.js";import{i as n}from"./cli-ZUdhZnuW.js";const r=n({name:`upgrade refresh`,options:{},run:()=>t(e())});export{r as commandRefreshUpdate};
@@ -1 +1 @@
1
- import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-D5hyqGq0.js";import{p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";const s={json:i,server:a,workspace:i,yes:i},c=()=>new e(`invalid-option`,`Missing credential label.`),l=t({name:`credentials remove`,globalFlags:{cwd:!1},help:{usage:`coder credentials remove <label> [--workspace] [--server [url]] [--json]`,flags:[[`--workspace`,`the workspace credential of that label`],n]},options:s,args:1,async run({options:e,args:[t]}){let{connect:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);if(!t)throw c();return n(e).credentials.remove(t,e)},print:(e,{args:[t]})=>o.stdout.write(`Removed ${r.bold(t)}.\n`)});export{l as commandCredentialsRemove,s as credentialOptions,c as missingLabel};
1
+ import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-ZUdhZnuW.js";import{p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";const s={json:i,server:a,workspace:i,yes:i},c=()=>new e(`invalid-option`,`Missing credential label.`),l=t({name:`credentials remove`,globalFlags:{cwd:!1},help:{usage:`coder credentials remove <label> [--workspace] [--server [url]] [--json]`,flags:[[`--workspace`,`the workspace credential of that label`],n]},options:s,args:1,async run({options:e,args:[t]}){let{connect:n}=await import(`./remote-oQs6My_3.js`).then(e=>e.a);if(!t)throw c();return n(e).credentials.remove(t,e)},print:(e,{args:[t]})=>o.stdout.write(`Removed ${r.bold(t)}.\n`)});export{l as commandCredentialsRemove,s as credentialOptions,c as missingLabel};
@@ -1 +1 @@
1
- import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-D5hyqGq0.js";import{p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";const s={json:i,server:a,yes:i},c=t({name:`runner remove`,globalFlags:{cwd:!1},help:{usage:`coder runner remove <id> [--server [url]] [--json]`,flags:[n]},options:s,args:1,async run({options:t,args:[n]}){let{removeRunner:r}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);if(!n)throw new e(`invalid-option`,`Missing runner id.`);return r(n,t)},print:(e,{args:[t]})=>o.stdout.write(`Removed ${r.bold(t)}.\n`)});export{c as commandRunnerRemove,s as runnerOptions};
1
+ import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-ZUdhZnuW.js";import{p as r}from"./output-BKeyLbvt.js";import{n as i,o as a}from"./args-CxsMr9Un.js";import o from"node:process";const s={json:i,server:a,yes:i},c=t({name:`runner remove`,globalFlags:{cwd:!1},help:{usage:`coder runner remove <id> [--server [url]] [--json]`,flags:[n]},options:s,args:1,async run({options:t,args:[n]}){let{removeRunner:r}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);if(!n)throw new e(`invalid-option`,`Missing runner id.`);return r(n,t)},print:(e,{args:[t]})=>o.stdout.write(`Removed ${r.bold(t)}.\n`)});export{c as commandRunnerRemove,s as runnerOptions};
@@ -1 +1 @@
1
- import{qi as e}from"./core-DwsAMCnL.js";import{i as t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r}from"./models-CdvmuaLv.js";import{n as i}from"./add-DcR15CL7.js";import a from"node:process";var o=e({commandModelRemove:()=>s,printModelChange:()=>c});const s=t({name:`model remove`,help:{usage:`coder model remove <name>`,summary:`Remove a configured custom model.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]},options:i,args:1,run:({options:e,args:[t],cwd:n})=>r(n,t,e),print:e=>c(`removed`,e.removed,e.file)});function c(e,t,r){a.stdout.write(`${e} ${n.cyan(t)} ${n.dim(`(${r})`)}\n`)}export{o as n,c as t};
1
+ import{qi as e}from"./core-DwsAMCnL.js";import{i as t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{i as r}from"./models-CdvmuaLv.js";import{n as i}from"./add-CvBTpxgY.js";import a from"node:process";var o=e({commandModelRemove:()=>s,printModelChange:()=>c});const s=t({name:`model remove`,help:{usage:`coder model remove <name>`,summary:`Remove a configured custom model.`,flags:[[`--workspace`,`target <repo>/.coder/config.json instead of the user file`]]},options:i,args:1,run:({options:e,args:[t],cwd:n})=>r(n,t,e),print:e=>c(`removed`,e.removed,e.file)});function c(e,t,r){a.stdout.write(`${e} ${n.cyan(t)} ${n.dim(`(${r})`)}\n`)}export{o as n,c as t};
@@ -1 +1 @@
1
- import{i as e,r as t}from"./cli-D5hyqGq0.js";import{p as n}from"./output-BKeyLbvt.js";import{t as r}from"./args-CxsMr9Un.js";import{serverOptions as i}from"./add-Df1Ezy3y.js";import a from"node:process";const o=e({name:`connection remove`,helpName:`connection rm`,help:{usage:`coder connection rm <name> [--server [url]] [--json]`,summary:`Remove a connection. The credential an API key connection reads stays.`,flags:[t]},options:{...r,...i},args:1,run:async({options:e,args:[t],cwd:n})=>{let{connection:r}=await import(`./connection-wq0CJZKh.js`).then(e=>e.n);return r.remove(t,{...e,cwd:n})},print:e=>a.stdout.write(`Removed ${n.bold(e.id)}.\n`)});export{o as commandConnectionRemove};
1
+ import{i as e,r as t}from"./cli-ZUdhZnuW.js";import{p as n}from"./output-BKeyLbvt.js";import{t as r}from"./args-CxsMr9Un.js";import{serverOptions as i}from"./add-Ck_y_nKX.js";import a from"node:process";const o=e({name:`connection remove`,helpName:`connection rm`,help:{usage:`coder connection rm <name> [--server [url]] [--json]`,summary:`Remove a connection. The credential an API key connection reads stays.`,flags:[t]},options:{...r,...i},args:1,run:async({options:e,args:[t],cwd:n})=>{let{connection:r}=await import(`./connection-BCRJHTgp.js`).then(e=>e.n);return r.remove(t,{...e,cwd:n})},print:e=>a.stdout.write(`Removed ${n.bold(e.id)}.\n`)});export{o as commandConnectionRemove};
@@ -1 +1 @@
1
- import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-D5hyqGq0.js";import{p as r}from"./output-BKeyLbvt.js";import{runnerOptions as i}from"./remove-D65xtbw5.js";import a from"node:process";const o=t({name:`runner rename`,globalFlags:{cwd:!1},help:{usage:`coder runner rename <id> <name> [--server [url]] [--json]`,flags:[n]},options:i,args:2,async run({options:t,args:[n,r]}){let{updateRunner:i}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);if(!n||!r)throw new e(`invalid-option`,`Usage: coder runner rename <id> <name>`);return i(n,{name:r},t)},print:(e,{args:[t]})=>a.stdout.write(`Renamed ${t} to ${r.bold(e.name)}.\n`)});export{o as commandRunnerRename};
1
+ import{H as e}from"./dispatch-D3Dqxijf.js";import{i as t,t as n}from"./cli-ZUdhZnuW.js";import{p as r}from"./output-BKeyLbvt.js";import{runnerOptions as i}from"./remove-BZCA-gdU.js";import a from"node:process";const o=t({name:`runner rename`,globalFlags:{cwd:!1},help:{usage:`coder runner rename <id> <name> [--server [url]] [--json]`,flags:[n]},options:i,args:2,async run({options:t,args:[n,r]}){let{updateRunner:i}=await import(`./runner-DME7ohjt.js`).then(e=>e.a);if(!n||!r)throw new e(`invalid-option`,`Usage: coder runner rename <id> <name>`);return i(n,{name:r},t)},print:(e,{args:[t]})=>a.stdout.write(`Renamed ${t} to ${r.bold(e.name)}.\n`)});export{o as commandRunnerRename};
@@ -1,4 +1,4 @@
1
- import{Pt as e}from"./config-D2FxHWwi.js";import{H as t}from"./dispatch-D3Dqxijf.js";import{i as n}from"./cli-D5hyqGq0.js";import{c as r,m as i,p as a,s as o}from"./output-BKeyLbvt.js";import{l as s,t as c}from"./args-CxsMr9Un.js";import{gateLine as l,gateRunningLine as u,paintPlain as d,printLedger as f,resultJson as p,stepSymbol as m,taskLabel as h,taskLine as g}from"./watch-Bl_pCGfq.js";import _ from"node:process";const v=n({name:`flow result`,help:{usage:`coder flow result [run-id] [--tail <n|all>] [--json]`,summary:`Show a flow run's status and result, with its tasks, gates, and token ledger.
1
+ import{Pt as e}from"./config-D2FxHWwi.js";import{H as t}from"./dispatch-D3Dqxijf.js";import{i as n}from"./cli-ZUdhZnuW.js";import{c as r,m as i,p as a,s as o}from"./output-BKeyLbvt.js";import{l as s,t as c}from"./args-CxsMr9Un.js";import{gateLine as l,gateRunningLine as u,paintPlain as d,printLedger as f,resultJson as p,stepSymbol as m,taskLabel as h,taskLine as g}from"./watch-qfr7aSfo.js";import _ from"node:process";const v=n({name:`flow result`,help:{usage:`coder flow result [run-id] [--tail <n|all>] [--json]`,summary:`Show a flow run's status and result, with its tasks, gates, and token ledger.
2
2
  --tail <n> caps the step rows (0 for the result alone). Defaults to the most
3
3
  recent run. To watch a run live, prefer \`coder flow watch\`.`,flags:[[`--tail <n|all>`,`show the last n step rows (default: all; 0 hides them)`]],examples:[[`coder flow result --tail 0`,`the most recent run's result, no step rows`]]},options:{...c,tail:s},args:1,async run({options:e,args:[n]}){let{runResult:r}=await import(`./executor-5j-Ewzzb.js`).then(e=>e.b),i=r(n);if(!i&&!e.json)throw new t(`flow-failed`,n?`No flow run "${n}".`:`No flow runs yet.`,{hint:`Run one: coder flow run <name>`});return i},json:e=>e&&p(e),print:(e,{options:t})=>b(e,t.tail)});function y(e,t=!1){let n=a;if(t)return e.map(d);let r=(t,n)=>{for(let r=t+1;r<e.length;r+=1){let t=e[r].depth;if(t<n)return!1;if(t===n)return!0}return!1};return e.map((e,t)=>{let i=``;for(let n=0;n<e.depth;n+=1)i+=r(t,n)?`│ `:` `;return i+=e.log?`│ `:r(t,e.depth)?`├─`:`└─`,`${n.dim(i)} ${e.body}`})}function b(t,n=`all`){let s=a,c=!_.stdout.isTTY;_.stdout.write(`${s.bold(`Flow`)} ${s.cyan(t.name)} ${s.dim(`(${t.runId})`)}. ${s.bold(i(t.status))}\n`);let d=t.steps,p=d.filter(t=>e.includes(t.status)).length,v=t.status===`running`?`${p}/${d.length} tasks`:`${t.taskCount} tasks`;if(_.stdout.write(`${s.dim(`started ${t.startedAt}${t.endedAt?` · ended ${t.endedAt}`:``} · ${v}`)}\n`),n!==0){let e=new Map,r=new Map,i=new Map,a=[];for(let n of t.events)if(n.kind===`task-start`){let t={name:h(n.name,n.prompt),engine:n.engine,depth:n.depth??0};e.set(n.taskId,t),r.set(n.taskId,t)}else if(n.kind===`task-end`){r.delete(n.taskId);let t=e.get(n.taskId);a.push({depth:t?.depth??0,body:g(m(n.status,c),t?.name??null,n.taskId,n.tokens,t?.engine)})}else if(n.kind===`gate-start`)i.set(n.gateId,{cmd:n.cmd,depth:n.depth??0});else if(n.kind===`gate`)n.gateId&&i.delete(n.gateId),a.push({depth:n.depth??0,body:l(n,c)});else if(n.kind===`log`)for(let e of n.message.split(`
4
4
  `))a.push({depth:n.depth??0,body:s.light(e),log:!0});else n.kind===`flow-start`&&a.push({depth:n.depth-1,body:s.bold(`flow ${n.name}`)});for(let[e,t]of r)a.push({depth:t.depth??0,body:g(m(`running`,c),t.name,e,null,t.engine)+(c?``:` ${s.light(`running`)}`)});for(let e of i.values())a.push({depth:e.depth,body:u(e.cmd,m(`running`,c))+(c?``:` ${s.light(`running`)}`)});if(!a.length)for(let e of n===`all`?d:d.slice(-n))a.push({depth:0,body:g(m(e.status,c),e.name,e.taskId??`-`,e.tokens)});let o=y(a,c),f=n===`all`?o:o.slice(-n);f.length&&_.stdout.write(`\n${f.join(`
@@ -1,4 +1,4 @@
1
- import{qi as e}from"./core-DwsAMCnL.js";import{K as t,Nt as n,Tn as r,nt as i}from"./config-D2FxHWwi.js";import{i as a,r as o}from"./cli-D5hyqGq0.js";import{S as s,a as c,d as l,m as u,o as d,p as f,s as p,u as m,x as h,y as g}from"./output-BKeyLbvt.js";import{i as _,l as v,n as y,s as b,t as x}from"./args-CxsMr9Un.js";import S from"node:process";var C=e({LogRenderer:()=>z,OUTPUT_PREVIEW_CHARS:()=>500,commandResult:()=>q,finalMessageLine:()=>T,finishedHints:()=>U,printOutcome:()=>W,promptBlock:()=>D,replyOf:()=>H,statusStyle:()=>B,taskHeaderLines:()=>A,taskSummaryLines:()=>M,trimStep:()=>N});const w={server:_,workspace:b,yes:y};function T(e,t,n,r=f){let i=e?.error?.message??t;return e?.finalMessage||(i?`${r.red(`error:`)} ${i}`:n)}const E=1e3;function D(e,t=f,{truncate:n=!0}={}){let r=e=>e.split(`
1
+ import{qi as e}from"./core-DwsAMCnL.js";import{K as t,Nt as n,Tn as r,nt as i}from"./config-D2FxHWwi.js";import{i as a,r as o}from"./cli-ZUdhZnuW.js";import{S as s,a as c,d as l,m as u,o as d,p as f,s as p,u as m,x as h,y as g}from"./output-BKeyLbvt.js";import{i as _,l as v,n as y,s as b,t as x}from"./args-CxsMr9Un.js";import S from"node:process";var C=e({LogRenderer:()=>z,OUTPUT_PREVIEW_CHARS:()=>500,commandResult:()=>q,finalMessageLine:()=>T,finishedHints:()=>U,printOutcome:()=>W,promptBlock:()=>D,replyOf:()=>H,statusStyle:()=>B,taskHeaderLines:()=>A,taskSummaryLines:()=>M,trimStep:()=>N});const w={server:_,workspace:b,yes:y};function T(e,t,n,r=f){let i=e?.error?.message??t;return e?.finalMessage||(i?`${r.red(`error:`)} ${i}`:n)}const E=1e3;function D(e,t=f,{truncate:n=!0}={}){let r=e=>e.split(`
2
2
  `).map(e=>` ${t.dim(e)}`);return!n||e.length<=E?[t.dim(`prompt:`),...r(e)]:[t.dim(`prompt:`),...r(e.slice(0,500).trimEnd()),t.light(` … <${e.length-E} chars trimmed> …`),...r(e.slice(-500).trimStart())]}function O(e,t=f){let n=[];e.permissions&&n.push([`perms`,e.permissions]),e.cwd&&n.push([`cwd`,e.cwd]);for(let t of e.addDirs??[])n.push([`add-dir`,t]);return n.map(([e,n])=>`${t.dim(e.padEnd(8))} ${n}`)}function k(e,n){if(n)return e.createdAt?`started ${c(t(e.createdAt))} ago`:``;let r=e.createdAt&&e.completedAt?Date.parse(e.completedAt)-Date.parse(e.createdAt):null;return[e.completedAt?`finished ${c(t(e.completedAt))} ago`:``,r!==null&&r>=0?`took ${c(r)}`:``].filter(Boolean).join(` · `)}function A(e,{status:t,tokens:r,tokenModel:a,files:o,live:s=!1,style:c=f}){let d=k(e,n.includes(e.status)||t===`waiting-approval`),p=e=>c.dim(e.padEnd(8));return[`${p(`task`)} ${c.cyan(e.id)}`,...e.name?[`${p(`name`)} ${e.name}`]:[],`${p(`status`)} ${u(t)}${d?` ${c.dim(`(${d})`)}`:``}`,`${p(`engine`)} ${i(e)}`,...O(e,c),...r?[`${p(`tokens`)} ${s?l(r):m(r,a??e.model)}${s?c.dim(` (so far)`):``}`]:[],...j(o,p,c)]}const j=(e,t,n)=>e?.length?[`${t(`files`)} ${e.join(`, `)} ${n.dim(`(shell edits not included)`)}`]:[];function M(e,{tokens:t,tokenModel:n,files:r,statusChanged:i=!0,style:a=f}){let o=e=>a.dim(e.padEnd(8)),s=e.createdAt&&e.completedAt?Date.parse(e.completedAt)-Date.parse(e.createdAt):null;return[...i?[`${o(`status`)} ${u(e.status)}${s!==null&&s>=0?` ${a.dim(`(took ${c(s)})`)}`:``}`]:[],...t?[`${o(`tokens`)} ${m(t,n??e.model)}`]:[],...j(r,o,a)]}function N(e,t=300,{plain:n=!1,style:r=f}={}){if(e.length<=t)return e;let i=`<${e.length-t} more chars>`;return`${e.slice(0,t)} ${n?i:r.dim(i)}`}const P=` `.repeat(8),F={assistant:`●`,reasoning:`✻`,tool:`→`,"tool-result":` `,usage:`·`,status:`·`,info:`·`,error:`✘`,steer:`⚑`};function I(e,t){let n=/^\x1b\[[0-9;]*m/.exec(t(``))?.[0];return t(n&&e.includes(L)?e.split(L).join(`${L}${n}`):e)}const L=`\x1B[0m`;function R(e,t,n,r,i=r.dim){if(!e)return``;let a=(e.length>t?e.slice(0,t):e).split(`
3
3
  `).map(e=>I(e,i));return e.length>t&&(a[a.length-1]+=` ${r.light(`<${e.length-t} more chars>`)}`),a.length>n?[...a.slice(0,n),r.light(`… +${a.length-n} more lines`)].join(`
4
4
  `):a.join(`
@@ -1,3 +1,3 @@
1
- import{i as e}from"./cli-D5hyqGq0.js";import{printFollow as t,printRunSummary as n}from"./watch-Bl_pCGfq.js";import{RUN_FLAGS as r,hooks as i,parseRunArgs as a,printDetached as o,runOptions as s}from"./run-CvdayZfK.js";const c=e({name:`flow resume`,help:{usage:`coder flow resume [run-id] [--wait] [--json] [--dry-run]`,summary:`Re-run a flow from its journal: finished steps replay instantly, the first
1
+ import{i as e}from"./cli-ZUdhZnuW.js";import{printFollow as t,printRunSummary as n}from"./watch-qfr7aSfo.js";import{RUN_FLAGS as r,hooks as i,parseRunArgs as a,printDetached as o,runOptions as s}from"./run-D_pl9GF_.js";const c=e({name:`flow resume`,help:{usage:`coder flow resume [run-id] [--wait] [--json] [--dry-run]`,summary:`Re-run a flow from its journal: finished steps replay instantly, the first
2
2
  changed or new step onward runs live. Defaults to the most recent run.
3
3
  Accepts the same flags as flow run.`,flags:[[`--wait`,`follow the run in the foreground (Ctrl-C detaches; it keeps running)`],[`--concurrency <n>`,`tasks running at once`],[`--max-tasks <n>`,`total tasks the run may dispatch`]],examples:[[`coder flow resume`,`continue the most recent run`]]},options:r,args:1,async run({options:e,args:[n],cwd:r}){let{resumeRun:o}=await import(`./executor-5j-Ewzzb.js`).then(e=>e.b),c=await o(n,{...s(e,r),...e.args===void 0?{}:{args:a(e.args,[])}},i(e));return c.status===`running`&&c.watch&&await t(c.watch,e),c},print:e=>e.status===`running`?o(e):n(e)});export{c as commandResume};
@@ -1,4 +1,4 @@
1
- import{Ln as e,kn as t}from"./config-D2FxHWwi.js";import{H as n}from"./dispatch-D3Dqxijf.js";import{i as r}from"./cli-D5hyqGq0.js";import{c as i,n as a,s as o,t as s}from"./args-CxsMr9Un.js";import c from"node:process";function l(e){let{summary:t}=e,n=`\`${t.baseSha}\`${t.worktree?` through the working tree`:`..\`${t.headSha}\``}`,r=(t.warnings??[]).flatMap(e=>[e,``]);if(t.worktree&&!t.files)return`${[`# Coder review`,``,`Nothing to review from ${n}.`,``,...r,`Flow run: \`${e.runId}\``].join(`
1
+ import{Ln as e,kn as t}from"./config-D2FxHWwi.js";import{H as n}from"./dispatch-D3Dqxijf.js";import{i as r}from"./cli-ZUdhZnuW.js";import{c as i,n as a,s as o,t as s}from"./args-CxsMr9Un.js";import c from"node:process";function l(e){let{summary:t}=e,n=`\`${t.baseSha}\`${t.worktree?` through the working tree`:`..\`${t.headSha}\``}`,r=(t.warnings??[]).flatMap(e=>[e,``]);if(t.worktree&&!t.files)return`${[`# Coder review`,``,`Nothing to review from ${n}.`,``,...r,`Flow run: \`${e.runId}\``].join(`
2
2
  `)}\n`;let i=[`# Coder review`,``,`Reviewed ${n}${t.model?` with ${t.model}`:``} in ${(t.elapsedMs/1e3).toFixed(1)}s.`,``,...r,...e.findings.length?e.findings.flatMap(e=>[`- **${e.severity.toUpperCase()}** [\`${e.file}:${e.line}\`]. ${e.summary}`,` ${e.failure_scenario}`]):[`No findings after checking against the repository.`]];return t.posted!==void 0&&i.push(``,`Posted ${t.posted} new inline comment${t.posted===1?``:`s`}.`),i.push(``,`Flow run: \`${e.runId}\``),`${i.join(`
3
3
  `)}\n`}const u=r({name:`review`,help:{usage:`coder review [--base <ref>] [--head <ref>] [--pr <n|url>] [--since <sha>] [--path <p>]... [--exclude <p>]... [--post] [--json|--md] [--engine <name>] [--model <alias|slug>] [--effort <low|medium|high>] [--cwd <dir>]`,summary:`Review changed code with a read-only agent. Every reported finding is checked
4
4
  against the repository. Runs the built-in \`review\` flow. A local review covers
@@ -1,4 +1,4 @@
1
- import { v as task } from "./index-CVjkwYeS.js";
1
+ import { v as task } from "./index-vd37q3fn.js";
2
2
  import * as z from "zod";
3
3
  //#region src/flow/builtin/review.d.ts
4
4
  declare const args: z.ZodObject<{