openpond 0.2.44 → 0.2.46

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 (240) hide show
  1. package/RELEASE.md +16 -13
  2. package/dist/app-server.d.ts +20954 -11829
  3. package/dist/app-server.js +1 -1
  4. package/dist/chunks/actions-command-I3NI75P2.js +2 -0
  5. package/dist/chunks/{app-layer-7SPLENWD.js → app-layer-B3SMVO4B.js} +1 -1
  6. package/dist/chunks/app-server-runtime-FL2CHQU2.js +2 -0
  7. package/dist/chunks/apps-OA2VX34V.js +2 -0
  8. package/dist/chunks/{chunk-PEYA2Q7Q.js → chunk-33AO3P6X.js} +3 -3
  9. package/dist/chunks/chunk-4UTIEH5H.js +16 -0
  10. package/dist/chunks/chunk-4VKNBADF.js +2 -0
  11. package/dist/chunks/{chunk-ANVOHBUV.js → chunk-5OGRWWEH.js} +1 -1
  12. package/dist/chunks/chunk-5ZZM3TUN.js +24 -0
  13. package/dist/chunks/chunk-6JBWHR6T.js +5 -0
  14. package/dist/chunks/{chunk-DXAZUJPA.js → chunk-6SJZXZNA.js} +1 -1
  15. package/dist/chunks/chunk-6WLJWRMF.js +2 -0
  16. package/dist/chunks/chunk-BKMGBIBT.js +2 -0
  17. package/dist/chunks/chunk-BQNK2NMB.js +21 -0
  18. package/dist/chunks/chunk-BUFQKDAW.js +2 -0
  19. package/dist/chunks/chunk-D6E7JBBQ.js +19 -0
  20. package/dist/chunks/chunk-D6MQTNJ3.js +9 -0
  21. package/dist/chunks/chunk-DNXKIIV7.js +3 -0
  22. package/dist/chunks/{chunk-OI2N2636.js → chunk-EWS7MXTM.js} +1 -1
  23. package/dist/chunks/chunk-F2AG46CV.js +2 -0
  24. package/dist/chunks/{chunk-CR6CDOKS.js → chunk-F5DUN73H.js} +2 -2
  25. package/dist/chunks/chunk-FKCWOASO.js +49 -0
  26. package/dist/chunks/chunk-FOEUDMME.js +2678 -0
  27. package/dist/chunks/chunk-H6W55CQG.js +2 -0
  28. package/dist/chunks/chunk-HK3WGUKK.js +17 -0
  29. package/dist/chunks/{chunk-ZEVARU6J.js → chunk-HO5L2FUU.js} +1 -1
  30. package/dist/chunks/chunk-HP2D3W2B.js +42 -0
  31. package/dist/chunks/chunk-ICZEOMPO.js +2 -0
  32. package/dist/chunks/{chunk-X2B4MN6W.js → chunk-IV7F74JJ.js} +1 -1
  33. package/dist/chunks/chunk-JBHAU7PH.js +2409 -0
  34. package/dist/chunks/chunk-JO7GRBOG.js +2 -0
  35. package/dist/chunks/{chunk-KPDWQCF6.js → chunk-KE5RH6JA.js} +1 -1
  36. package/dist/chunks/chunk-KUKOZJIR.js +2 -0
  37. package/dist/chunks/chunk-L4BYPZ4U.js +22 -0
  38. package/dist/chunks/{chunk-2CXJK2M3.js → chunk-LL4QP2IM.js} +1 -1
  39. package/dist/chunks/{chunk-Z2BYC6TP.js → chunk-LZSY5IM3.js} +1 -1
  40. package/dist/chunks/chunk-M7PBDRKC.js +2 -0
  41. package/dist/chunks/{chunk-OJVIH7J6.js → chunk-MCRA6ZGJ.js} +1 -1
  42. package/dist/chunks/chunk-NPOHW5OU.js +2 -0
  43. package/dist/chunks/{chunk-KIGN4FI6.js → chunk-OGXSE57Z.js} +1 -1
  44. package/dist/chunks/{chunk-HZP5U2AA.js → chunk-P653BXMY.js} +1 -1
  45. package/dist/chunks/{chunk-YF6IDYTS.js → chunk-PGKEDR3S.js} +1 -1
  46. package/dist/chunks/chunk-PMZH2TKS.js +4 -0
  47. package/dist/chunks/chunk-TYWBEJOA.js +3 -0
  48. package/dist/chunks/chunk-USWZ3KUC.js +2 -0
  49. package/dist/chunks/chunk-UWO34HP6.js +33 -0
  50. package/dist/chunks/{chunk-Z6ZR5O3J.js → chunk-VW7D3DRM.js} +2 -2
  51. package/dist/chunks/chunk-W4IL6TWB.js +186 -0
  52. package/dist/chunks/chunk-WVNN3RB2.js +2 -0
  53. package/dist/chunks/{chunk-RAWEO7SJ.js → chunk-WWABOVRW.js} +2 -2
  54. package/dist/chunks/{chunk-B3O2GAQH.js → chunk-XLDW5NN3.js} +1 -1
  55. package/dist/chunks/chunk-YSYXIJ46.js +8 -0
  56. package/dist/chunks/{chunk-V62BHD5G.js → chunk-ZC57DX6D.js} +1 -1
  57. package/dist/chunks/{chunk-W5NQ2DI7.js → chunk-ZJY2L43W.js} +3 -3
  58. package/dist/chunks/cli-5QR7QNQJ.js +2 -0
  59. package/dist/chunks/{configuration-command-LDPUCHVH.js → configuration-command-MVZS625X.js} +1 -1
  60. package/dist/chunks/connected-evidence-7LHUZ2UI.js +2 -0
  61. package/dist/chunks/{continual-MHMPLLUZ.js → continual-K5JNHNQH.js} +3 -3
  62. package/dist/chunks/core-commands-J2SJM5I5.js +2 -0
  63. package/dist/chunks/datasets-KDN2EXHE.js +2 -0
  64. package/dist/chunks/desktop-test-WIOEKMPR.js +3 -0
  65. package/dist/chunks/dist-3MTJ7VM6.js +2 -0
  66. package/dist/chunks/{dist-ELWB75PL.js → dist-JBE7DPFZ.js} +1 -1
  67. package/dist/chunks/evaluation-coordination-NGYHL7HG.js +2 -0
  68. package/dist/chunks/experiment-improvements-2M7GRGWS.js +2 -0
  69. package/dist/chunks/experiments-B6CRZ3GI.js +2 -0
  70. package/dist/chunks/{extension-JEUZZJ5X.js → extension-RZTMK3ON.js} +1 -1
  71. package/dist/chunks/{help-4F4QGL4C.js → help-EISFHH2F.js} +1 -1
  72. package/dist/chunks/hosted-experiment-improvement-6CHH65DX.js +3 -0
  73. package/dist/chunks/hosted-harness-runtime-PAYMAXH7.js +2 -0
  74. package/dist/chunks/hosted-profile-candidate-HYEISIAC.js +3 -0
  75. package/dist/chunks/hosted-profile-compiler-KQREWJA5.js +2 -0
  76. package/dist/chunks/hosted-profile-evaluation-control-LV6YXOG7.js +2 -0
  77. package/dist/chunks/hosted-profile-evaluation-inspection-A62UYFEP.js +3 -0
  78. package/dist/chunks/hosted-profile-evaluation-preparation-OR4OLYEX.js +3 -0
  79. package/dist/chunks/human-review-J6JGNRBR.js +2 -0
  80. package/dist/chunks/import-YHSX6SBZ.js +4 -0
  81. package/dist/chunks/learning-REL6GGNA.js +2 -0
  82. package/dist/chunks/opchat-CUZUU2WM.js +3 -0
  83. package/dist/chunks/organizations-VT27V4B2.js +2 -0
  84. package/dist/chunks/{profile-ESULTWDN.js → profile-N2E5ASHQ.js} +1 -1
  85. package/dist/chunks/project-agent-XMXOBJSC.js +2 -0
  86. package/dist/chunks/sandbox-command-NC665ZZ5.js +2 -0
  87. package/dist/chunks/{sandbox-template-7WHGNVM6.js → sandbox-template-OTP6S3RU.js} +1 -1
  88. package/dist/chunks/src-TNWF3IC5.js +329 -0
  89. package/dist/chunks/{src-A3OVZOSV.js → src-WM35IF4W.js} +5 -5
  90. package/dist/chunks/taskset-COAPMTT3.js +2 -0
  91. package/dist/chunks/{teams-bot-YMCDLBGT.js → teams-bot-ACWJ7PJP.js} +1 -1
  92. package/dist/chunks/training-4JUK7YQV.js +2 -0
  93. package/dist/chunks/{workspaces-ZZ7R5BUL.js → workspaces-WTPFRJMS.js} +1 -1
  94. package/dist/cli.js +1 -1
  95. package/dist/index.js +1 -1
  96. package/dist/web/assets/App-CdDQ-lXE.css +1 -0
  97. package/dist/web/assets/App-D2f8_mGk.js +235 -0
  98. package/dist/web/assets/{AppDialog-CV3ddujB.js → AppDialog-CaxeNfsu.js} +1 -1
  99. package/dist/web/assets/{AppTerminalPanel-dhbGOO_K.js → AppTerminalPanel-dtK0ZPer.js} +2 -2
  100. package/dist/web/assets/{AppsView-Bxa-9BF2.js → AppsView-DwK1UBJP.js} +1 -1
  101. package/dist/web/assets/BrowserSidebar-Cj9VnkgU.js +1 -0
  102. package/dist/web/assets/{CartesianChart-BOxN-Su1.js → CartesianChart-Drfk6jTn.js} +1 -1
  103. package/dist/web/assets/{CollaborationTabs-DTmJvNJx.js → CollaborationTabs-Czh2noeb.js} +1 -1
  104. package/dist/web/assets/{CommandMenu-DggN2ygj.js → CommandMenu-D-M-xomh.js} +1 -1
  105. package/dist/web/assets/CommunityView-BrdxUI5Z.js +1 -0
  106. package/dist/web/assets/ComposerCreateImproveStrip-CJ8nkYJf.js +1 -0
  107. package/dist/web/assets/GetStartedView-u7Jw7YA1.js +1 -0
  108. package/dist/web/assets/HostedModelLearningReview-D0a2nwse.js +1 -0
  109. package/dist/web/assets/HostedModelLearningSettings-CQQGyjxi.js +1 -0
  110. package/dist/web/assets/LabModelVersionDetailPage-Cxlc4sSC.js +1 -0
  111. package/dist/web/assets/LabSkillSidebar-BnJkDb0c.js +1 -0
  112. package/dist/web/assets/LabsRoute-ACN76d2j.css +1 -0
  113. package/dist/web/assets/LabsRoute-hHwZNbqN.js +99 -0
  114. package/dist/web/assets/MainChatThread-r_TYiTnW.js +2 -0
  115. package/dist/web/assets/MainPane-DJcd4tPk.js +19 -0
  116. package/dist/web/assets/MainPane-DOWsSew1.css +1 -0
  117. package/dist/web/assets/{MarkdownText-BhzHRq1J.js → MarkdownText-BxPHz4je.js} +1 -1
  118. package/dist/web/assets/{NativeSkillSidebar-LU-PhEhW.js → NativeSkillSidebar-CCHK6kMG.js} +1 -1
  119. package/dist/web/assets/{NewExperienceSwitcher-Bi_gpHLG.js → NewExperienceSwitcher-CuKWTDZj.js} +1 -1
  120. package/dist/web/assets/{NewProjectDialog-B8pWvSkq.js → NewProjectDialog-CS6sw2oD.js} +1 -1
  121. package/dist/web/assets/OutputsPage-JDM5bfLJ.js +1 -0
  122. package/dist/web/assets/{ProjectsPage-Ca8_iEWu.js → ProjectsPage-B3zTBHOA.js} +1 -1
  123. package/dist/web/assets/RightChatPanelStack-L8S3yj1u.js +1 -0
  124. package/dist/web/assets/{RightSidebarHomePanel-6pygznxX.js → RightSidebarHomePanel-BWJQKFUp.js} +1 -1
  125. package/dist/web/assets/ScheduledWorkPage-qX12p4B0.js +1 -0
  126. package/dist/web/assets/SettingsView-0KMs-r2I.js +9 -0
  127. package/dist/web/assets/SettingsView-CVsuQeCZ.css +1 -0
  128. package/dist/web/assets/{TeamChatView-BGLCPTen.js → TeamChatView-DakXCNQE.js} +1 -1
  129. package/dist/web/assets/{TerminalOverlay-DHkS2cVJ.js → TerminalOverlay-DaonK5C0.js} +12 -12
  130. package/dist/web/assets/{TrainingCreationPanel-Dneamjzh.js → TrainingCreationPanel-CUvSsSwp.js} +1 -1
  131. package/dist/web/assets/{TrainingDraftPanel-Cfh59jLZ.js → TrainingDraftPanel-DNivtVwd.js} +1 -1
  132. package/dist/web/assets/{UsageSettingsSection-C9l1KY-O.js → UsageSettingsSection-rbmuoPoE.js} +1 -1
  133. package/dist/web/assets/WorkSidebarPanel-DrYt9xzv.js +1 -0
  134. package/dist/web/assets/WorkspaceDiffPanel-CThoTqe4.js +14 -0
  135. package/dist/web/assets/WorkspaceEnvironmentMenu-DeODKxvW.js +32 -0
  136. package/dist/web/assets/{WorkspaceGitDialogs-mE3Og6Zo.js → WorkspaceGitDialogs-CBarJYF-.js} +1 -1
  137. package/dist/web/assets/{WorkspaceMonacoEditor-DPZ0n0G9.js → WorkspaceMonacoEditor-Hmu5m_sO.js} +3 -3
  138. package/dist/web/assets/{arrow-up-right-DU2KsZD-.js → arrow-up-right-BV2IHfb9.js} +1 -1
  139. package/dist/web/assets/chunk-YTGRET2L-PKzEfYnf.js +1 -0
  140. package/dist/web/assets/{clipboard-g2b4_k81.js → clipboard-DDIvAWKp.js} +1 -1
  141. package/dist/web/assets/{cloud-upload-P2bDOPsQ.js → cloud-upload-Dv6kFnfC.js} +1 -1
  142. package/dist/web/assets/{cssMode-CPbPVAUt.js → cssMode-BK0jFqWW.js} +1 -1
  143. package/dist/web/assets/{folder-open-BmsONNsr.js → folder-open-B9ixJQJX.js} +1 -1
  144. package/dist/web/assets/{folder-plus-B18NgUxy.js → folder-plus-DqSKvtNB.js} +1 -1
  145. package/dist/web/assets/{git-commit-horizontal-enxGCV_e.js → git-commit-horizontal-C1lQvfxe.js} +1 -1
  146. package/dist/web/assets/{htmlMode-DiV88uQv.js → htmlMode-CCV301b6.js} +1 -1
  147. package/dist/web/assets/index-1cMIFBxZ.css +1 -0
  148. package/dist/web/assets/{index-vfpCN9zy.js → index-DIaKfM8a.js} +2 -2
  149. package/dist/web/assets/{info-DmuSBIYe.js → info-BEvaynAD.js} +1 -1
  150. package/dist/web/assets/{jsonMode-BaeOjuKU.js → jsonMode-Co4pyN4F.js} +1 -1
  151. package/dist/web/assets/{lspLanguageFeatures-D8To0CQA.js → lspLanguageFeatures-CSU0G5da.js} +1 -1
  152. package/dist/web/assets/{minimize-2-C2xnEzCe.js → minimize-2-DT8t8wwP.js} +1 -1
  153. package/dist/web/assets/{monaco.contribution-JW3MxX6k.js → monaco.contribution-CBwGIQY1.js} +2 -2
  154. package/dist/web/assets/{monaco.contribution-DgTFvG2Q.js → monaco.contribution-Cr0AaHCD.js} +2 -2
  155. package/dist/web/assets/{monaco.contribution-bytkwn0O.js → monaco.contribution-DSBAb_PC.js} +2 -2
  156. package/dist/web/assets/{monaco.contribution-DbrACt99.js → monaco.contribution-DUZrs1D-.js} +2 -2
  157. package/dist/web/assets/{monitor-mtHVW7gU.js → monitor-DGqnfsK9.js} +1 -1
  158. package/dist/web/assets/play-C1XWyKh6.js +1 -0
  159. package/dist/web/assets/{python-DAPe0Urm.js → python-Z1foxLdf.js} +1 -1
  160. package/dist/web/assets/{save-B2eVAjW6.js → save-CX2kF74j.js} +1 -1
  161. package/dist/web/assets/{square-16bX2k2i.js → square-DMkXeYeV.js} +1 -1
  162. package/dist/web/assets/{toggleHighContrast-Ce0YhEQg.js → toggleHighContrast-CRMVp779.js} +1 -1
  163. package/dist/web/assets/{tsMode-CnvMmHz6.js → tsMode-Czu8YAqh.js} +1 -1
  164. package/dist/web/assets/{upload-COPbAaD-.js → upload-giKOPnl1.js} +1 -1
  165. package/dist/web/assets/{useLocalAgentSchedules-C-Wjm5HK.js → useLocalAgentSchedules-BHxWmOeC.js} +1 -1
  166. package/dist/web/assets/{useSessionTurnCache-BfVbncMB.js → useSessionTurnCache-CUYFsu_W.js} +1 -1
  167. package/dist/web/assets/{wifi-off-C9iLbCC-.js → wifi-off-DbDXaV1N.js} +1 -1
  168. package/dist/web/assets/{workers-BXh_u8Fr.js → workers-Cno4XklJ.js} +1 -1
  169. package/dist/web/assets/{yaml-CRSr9x6_.js → yaml-C28t_C6h.js} +1 -1
  170. package/dist/web/index.html +2 -2
  171. package/docs/command-reference.md +99 -0
  172. package/package.json +4 -3
  173. package/dist/chunks/actions-command-5IEZEP6W.js +0 -2
  174. package/dist/chunks/app-server-runtime-NQ2BYPGK.js +0 -2
  175. package/dist/chunks/apps-XQ7PHJTD.js +0 -2
  176. package/dist/chunks/chunk-36RCXSEJ.js +0 -2
  177. package/dist/chunks/chunk-3QC2DDQ5.js +0 -2
  178. package/dist/chunks/chunk-3XDFNA7W.js +0 -2
  179. package/dist/chunks/chunk-4S4WH65X.js +0 -3
  180. package/dist/chunks/chunk-4TMC5F2P.js +0 -5
  181. package/dist/chunks/chunk-65BW2QXY.js +0 -2
  182. package/dist/chunks/chunk-65QCNUGE.js +0 -659
  183. package/dist/chunks/chunk-6XF4GI35.js +0 -2
  184. package/dist/chunks/chunk-ALZRXBEC.js +0 -33
  185. package/dist/chunks/chunk-ARJUNUH6.js +0 -5
  186. package/dist/chunks/chunk-CEEZ7Y2J.js +0 -2
  187. package/dist/chunks/chunk-DZVVGU6K.js +0 -8
  188. package/dist/chunks/chunk-HY2Q7EDK.js +0 -4
  189. package/dist/chunks/chunk-IT4AT6LB.js +0 -42
  190. package/dist/chunks/chunk-KRC2S5QF.js +0 -5
  191. package/dist/chunks/chunk-L6HCBIAU.js +0 -2
  192. package/dist/chunks/chunk-LNEOLOK2.js +0 -13
  193. package/dist/chunks/chunk-MTJNKRXL.js +0 -22
  194. package/dist/chunks/chunk-NM2GYDPA.js +0 -19
  195. package/dist/chunks/chunk-OMM4ZO7E.js +0 -2182
  196. package/dist/chunks/chunk-OQPFFKU6.js +0 -2
  197. package/dist/chunks/chunk-QID62K65.js +0 -2400
  198. package/dist/chunks/chunk-YOOPTMQK.js +0 -3
  199. package/dist/chunks/cli-OJU6NQSA.js +0 -2
  200. package/dist/chunks/core-commands-UZL5RF2M.js +0 -2
  201. package/dist/chunks/datasets-42AZHVSV.js +0 -13
  202. package/dist/chunks/desktop-test-DI76HKS7.js +0 -3
  203. package/dist/chunks/dist-6YP37XI5.js +0 -2
  204. package/dist/chunks/experiments-Z3S35BYN.js +0 -2
  205. package/dist/chunks/hosted-harness-runtime-VZNYNQ6T.js +0 -2
  206. package/dist/chunks/hosted-profile-compiler-JXLPR7SX.js +0 -2
  207. package/dist/chunks/hosted-profile-evaluation-control-Q54YXXIM.js +0 -2
  208. package/dist/chunks/hosted-profile-evaluation-inspection-7WESM3ZH.js +0 -3
  209. package/dist/chunks/hosted-profile-evaluation-preparation-QP24PYBL.js +0 -3
  210. package/dist/chunks/opchat-UFWWVJL6.js +0 -3
  211. package/dist/chunks/organizations-SBBIOF6O.js +0 -2
  212. package/dist/chunks/project-agent-IBHUQ3JX.js +0 -2
  213. package/dist/chunks/sandbox-command-PAJAIMWM.js +0 -2
  214. package/dist/chunks/src-5MJSO3UD.js +0 -326
  215. package/dist/chunks/taskset-BZYQT65N.js +0 -2
  216. package/dist/chunks/training-7PST5HZU.js +0 -2
  217. package/dist/web/assets/App-6AQXN2SM.js +0 -226
  218. package/dist/web/assets/App-7h_oHCFd.css +0 -1
  219. package/dist/web/assets/BrowserSidebar-BLwL2FOG.js +0 -1
  220. package/dist/web/assets/CommunityView-CuDrYOIf.js +0 -1
  221. package/dist/web/assets/ComposerCreateImproveStrip-BrduENlL.js +0 -1
  222. package/dist/web/assets/GetStartedView-Db1IEWzv.js +0 -1
  223. package/dist/web/assets/HostedModelLearningReview-kofNdPAe.js +0 -1
  224. package/dist/web/assets/HostedModelLearningSettings-6ij3nwWD.js +0 -1
  225. package/dist/web/assets/LabModelVersionDetailPage-C7Maqcit.js +0 -1
  226. package/dist/web/assets/LabSkillSidebar-Bz0U-Nmw.js +0 -1
  227. package/dist/web/assets/LabsRoute-Ch1N-e2S.js +0 -52
  228. package/dist/web/assets/LabsRoute-Dw6-12kt.css +0 -1
  229. package/dist/web/assets/MainChatThread-BJbhZOvs.js +0 -2
  230. package/dist/web/assets/MainPane-Cs2Kng_k.js +0 -19
  231. package/dist/web/assets/OutputsPage-BkGI0kHp.js +0 -1
  232. package/dist/web/assets/RightChatPanelStack-DjEdxsq8.js +0 -1
  233. package/dist/web/assets/ScheduledWorkPage-BSiOxxAH.js +0 -1
  234. package/dist/web/assets/SettingsView-1XN7KLBl.js +0 -9
  235. package/dist/web/assets/SettingsView-C7av3zwv.css +0 -1
  236. package/dist/web/assets/WorkSidebarPanel-CEnO-Txp.js +0 -1
  237. package/dist/web/assets/WorkspaceDiffPanel-BiuQBflC.js +0 -14
  238. package/dist/web/assets/WorkspaceEnvironmentMenu-Dr-E0c1j.js +0 -32
  239. package/dist/web/assets/index-B9VSiz_z.css +0 -1
  240. package/dist/web/assets/refresh-cw-Dvm_Pq3U.js +0 -1
@@ -1,6 +1,6 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
3
- import{p as vt,q as St}from"./chunk-PEYA2Q7Q.js";import"./chunk-W5NQ2DI7.js";import{O as gt}from"./chunk-4TMC5F2P.js";import{E as pe,F as dt,H as me}from"./chunk-NM2GYDPA.js";import"./chunk-6MI4KKWF.js";import"./chunk-L3KS6MOV.js";import"./chunk-OMM4ZO7E.js";import"./chunk-Z3D4C7BG.js";import"./chunk-LNEOLOK2.js";import"./chunk-Z6ZR5O3J.js";import"./chunk-6FA3GG5B.js";import"./chunk-SDO4FC4Q.js";import"./chunk-IR3YJWPW.js";import"./chunk-ALZRXBEC.js";import{C as He,D as ee,F as ct,H as pt,K as mt,N as ft}from"./chunk-MTJNKRXL.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import{f as ht,h as yt}from"./chunk-H7IWJN7L.js";import{a as i}from"./chunk-FTQLQJQV.js";import{createInterface as oo}from"node:readline/promises";import{stdin as Fe,stdout as k}from"node:process";import{pathToFileURL as io}from"node:url";function ge(){return{text:"",cursor:0,history:[],historyIndex:null}}i(ge,"createComposer");function wt(e,t){let r=e.text.slice(0,e.cursor),n=e.text.slice(e.cursor);return{...e,text:`${r}${t}${n}`,cursor:e.cursor+t.length,historyIndex:null}}i(wt,"insertText");function fe(e,t){return{...e,text:t,cursor:t.length}}i(fe,"replaceComposerText");function Rr(e){let t=e.text.trim();return t?{state:{text:"",cursor:0,history:[...e.history.filter(r=>r!==t),t].slice(-100),historyIndex:null},action:{type:"submit",text:t}}:{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}}i(Rr,"submitComposer");function Tt(e,t){if(t==="ctrl+c")return{state:e,action:{type:"cancel-or-exit"}};if(t==="ctrl+d")return{state:e,action:e.text?{type:"none"}:{type:"exit"}};if(t==="ctrl+l")return{state:e,action:{type:"rerender"}};if(t==="enter")return Rr(e);if(t==="alt+enter")return{state:wt(e,`
3
+ import{p as vt,q as St}from"./chunk-33AO3P6X.js";import"./chunk-ZJY2L43W.js";import"./chunk-L3KS6MOV.js";import{O as yt}from"./chunk-6JBWHR6T.js";import{D as pe,E as ht,G as me}from"./chunk-HK3WGUKK.js";import"./chunk-6MI4KKWF.js";import"./chunk-5ZZM3TUN.js";import"./chunk-6FA3GG5B.js";import"./chunk-Z3D4C7BG.js";import"./chunk-JO7GRBOG.js";import"./chunk-BQNK2NMB.js";import"./chunk-VW7D3DRM.js";import"./chunk-UWO34HP6.js";import{C as He,D as ee,F as pt,H as mt,K as ft,N as gt}from"./chunk-L4BYPZ4U.js";import"./chunk-P653BXMY.js";import"./chunk-ES2ISFJC.js";import{f as dt,h as ct}from"./chunk-H7IWJN7L.js";import{a as i}from"./chunk-FTQLQJQV.js";import{createInterface as oo}from"node:readline/promises";import{stdin as Fe,stdout as k}from"node:process";import{pathToFileURL as io}from"node:url";function ge(){return{text:"",cursor:0,history:[],historyIndex:null}}i(ge,"createComposer");function wt(e,t){let r=e.text.slice(0,e.cursor),n=e.text.slice(e.cursor);return{...e,text:`${r}${t}${n}`,cursor:e.cursor+t.length,historyIndex:null}}i(wt,"insertText");function fe(e,t){return{...e,text:t,cursor:t.length}}i(fe,"replaceComposerText");function Rr(e){let t=e.text.trim();return t?{state:{text:"",cursor:0,history:[...e.history.filter(r=>r!==t),t].slice(-100),historyIndex:null},action:{type:"submit",text:t}}:{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}}i(Rr,"submitComposer");function Tt(e,t){if(t==="ctrl+c")return{state:e,action:{type:"cancel-or-exit"}};if(t==="ctrl+d")return{state:e,action:e.text?{type:"none"}:{type:"exit"}};if(t==="ctrl+l")return{state:e,action:{type:"rerender"}};if(t==="enter")return Rr(e);if(t==="alt+enter")return{state:wt(e,`
4
4
  `),action:{type:"none"}};if(t==="backspace")return e.cursor<=0?{state:e,action:{type:"none"}}:{state:{...e,text:`${e.text.slice(0,e.cursor-1)}${e.text.slice(e.cursor)}`,cursor:e.cursor-1},action:{type:"none"}};if(t==="delete")return e.cursor>=e.text.length?{state:e,action:{type:"none"}}:{state:{...e,text:`${e.text.slice(0,e.cursor)}${e.text.slice(e.cursor+1)}`},action:{type:"none"}};if(t==="left")return{state:{...e,cursor:Math.max(0,e.cursor-1)},action:{type:"none"}};if(t==="right")return{state:{...e,cursor:Math.min(e.text.length,e.cursor+1)},action:{type:"none"}};if(t==="home"||t==="ctrl+a")return{state:{...e,cursor:0},action:{type:"none"}};if(t==="end"||t==="ctrl+e")return{state:{...e,cursor:e.text.length},action:{type:"none"}};if(t==="ctrl+u")return{state:{...e,text:e.text.slice(e.cursor),cursor:0},action:{type:"none"}};if(t==="ctrl+k")return{state:{...e,text:e.text.slice(0,e.cursor)},action:{type:"none"}};if(t==="up"){if(e.history.length===0)return{state:e,action:{type:"none"}};let r=e.historyIndex===null?e.history.length-1:Math.max(0,e.historyIndex-1);return{state:fe({...e,historyIndex:r},e.history[r]??""),action:{type:"none"}}}if(t==="down"){if(e.historyIndex===null)return{state:e,action:{type:"none"}};let r=e.historyIndex+1;return r>=e.history.length?{state:{...e,text:"",cursor:0,historyIndex:null},action:{type:"none"}}:{state:fe({...e,historyIndex:r},e.history[r]??""),action:{type:"none"}}}return t.length>0?{state:wt(e,t),action:{type:"none"}}:{state:e,action:{type:"none"}}}i(Tt,"handleComposerKey");var bt="A turn is already running. Wait for it to finish before sending another line.";function Mr(){let e=!1;return{isRunning(){return e},tryStartSubmission(){return e?!1:(e=!0,!0)},failSubmission(){e=!1},applyRuntimeEvent(t){t.name==="turn.started"&&(e=!0),(t.name==="turn.completed"||t.name==="turn.failed"||t.name==="turn.interrupted")&&(e=!1)}}}i(Mr,"createTerminalTurnSubmissionGuard");function Pt(){return Mr()}i(Pt,"createLineModeTurnGuard");var he=[{name:"help",usage:"/help",description:"show this help"},{name:"providers",usage:"/providers",description:"list providers"},{name:"provider",usage:"/provider [id]",description:"switch provider",requiresArgument:!0},{name:"model",usage:"/model [id]",description:"list or switch model"},{name:"apps",usage:"/apps",description:"list connectable apps"},{name:"install",usage:"/install <app>",description:"open app details",requiresArgument:!0},{name:"projects",usage:"/projects",description:"list projects"},{name:"project",usage:"/project <id>",description:"switch project",requiresArgument:!0},{name:"permissions",usage:"/permissions [ask|full-access]",description:"show or change command access"},{name:"profile",usage:"/profile [status|diff|catalog|check|push]",description:"show or sync profile"},{name:"agents",usage:"/agents",description:"list agents"},{name:"agent",usage:"/agent <id>",description:"select agent",requiresArgument:!0},{name:"run",usage:"/run <action> [json]",description:"run profile action",requiresArgument:!0},{name:"settings",usage:"/settings",description:"show settings"},{name:"logs",usage:"/logs",description:"show recent events"},{name:"compact",usage:"/compact",description:"compact current session"},{name:"clear",usage:"/clear",description:"clear terminal transcript"},{name:"exit",usage:"/exit",description:"exit"},{name:"hooks",usage:"/hooks",description:"show hook status"},{name:"start",usage:"/start",description:"start a new session"}];function ze(e){if(!e.startsWith("/"))return null;let[t="",...r]=e.slice(1).trim().split(/\s+/),n=t.toLowerCase();if(!n)return null;if(n==="exit"||n==="quit")return{type:"exit"};if(n==="help")return{type:"help"};if(n==="clear")return{type:"clear"};if(n==="agents")return{type:"agents"};if(n==="apps")return{type:"apps"};if(n==="agent")return{type:"agent",id:r.join(" ").trim()};if(n==="install")return{type:"install",id:r.join(" ").trim()};if(n==="projects")return{type:"projects"};if(n==="project")return{type:"project",id:r.join(" ").trim()};if(n==="model")return{type:"model",id:r.join(" ").trim()||null};if(n==="permissions")return{type:"permissions",args:r};if(n==="profile")return{type:"profile",args:r};if(n==="logs")return{type:"logs"};if(n==="providers")return{type:"providers"};if(n==="provider")return{type:"provider",id:r.join(" ").trim()||null};if(n==="compact")return{type:"compact"};if(n==="hooks")return{type:"hooks"};if(n==="start")return{type:"start"};if(n==="run"){let o=r[0]??"",s=r.slice(1).join(" ").trim();return s?{type:"run",action:o,input:JSON.parse(s)}:{type:"run",action:o,input:void 0}}return n==="settings"?{type:"settings",args:r}:{type:"unknown",command:n}}i(ze,"parseSlashCommand");function xt(e){let t=e.trim();if(!t.startsWith("!"))return null;let r=t.slice(1).trim();return r?{command:r}:null}i(xt,"parseDirectCommandPrompt");function Ct(){let e=Math.max(...he.map(t=>t.usage.length));return["Commands:",...he.map(t=>`${t.usage.padEnd(e+2)}${t.description}`)].join(`
5
5
  `)}i(Ct,"helpText");var ye=class{static{i(this,"RawInput")}input;onKey;previousRawMode=!1;dataHandler=null;constructor(t,r){this.input=t,this.onKey=r}start(){this.previousRawMode=this.input.isRaw??!1,this.input.setRawMode(!0),this.input.resume(),this.dataHandler=t=>{for(let r of Or(t))this.onKey(r)},this.input.on("data",this.dataHandler)}stop(){this.dataHandler&&this.input.off("data",this.dataHandler),this.dataHandler=null,this.input.setRawMode(this.previousRawMode),this.input.pause()}};function Or(e){let t=e.toString("utf8"),r=[];for(let n=0;n<t.length;n+=1){let o=t[n],s=t[n+1];if(o==="\x1B"){let a=jr(t,n);r.push(a.key),n=a.end;continue}o===""?r.push("ctrl+c"):o===""?r.push("ctrl+d"):o==="\f"?r.push("ctrl+l"):o===""?r.push("ctrl+a"):o===""?r.push("ctrl+e"):o==="\v"?r.push("ctrl+k"):o===""?r.push("ctrl+u"):o==="\x7F"||o==="\b"?r.push("backspace"):o==="\r"||o===`
6
6
  `?r.push("enter"):(o>=" "||o&&s)&&r.push(o)}return r}i(Or,"decodeKeys");function jr(e,t){let r=e.slice(t);return r.startsWith("\x1B\r")||r.startsWith(`\x1B
@@ -25,12 +25,12 @@ ${" ".repeat(n+2)} ${a}`}),"","Use /install <app> to open setup."].join(`
25
25
  `):"No local profile diff."}i(Jt,"formatProfileDiff");function Kt(e){return e.mode==="none"?"No active OpenPond profile. Run `openpond init`.":e.actionCatalog.length===0?"No profile actions found. Run `openpond profile check build`.":e.actionCatalog.map(t=>{let r=t.label??t.name??t.id,n=t.description?` - ${t.description}`:"",o=Me(e,t.id),s=o.length?` setup_required:${o.map(a=>a.label).join(",")}`:"";return`${t.id} ${r}${n}${s}`}).join(`
26
26
  `)}i(Kt,"formatProfileCatalog");function Vt(e,t){if(e.agents.length===0)return"No profile agents found.";let r=e.agents.map(o=>`${o.id===t?"*":" "} ${o.id} ${o.enabled?"enabled":"disabled"} ${o.path}`),n=e.actionCatalog.map(o=>{let s=Me(e,o.id),a=s.length?` setup_required:${s.map(l=>l.label).join(",")}`:"";return` /run ${o.id} ${o.label??o.name??""}${a}`.trimEnd()});return[...r,n.length?`
27
27
  Actions:`:"",...n].filter(Boolean).join(`
28
- `)}i(Vt,"formatProfileAgents");function Me(e,t){return e.setupGate.blockingRequirements.filter(r=>r.actionId===null||r.actionId===t)}i(Me,"blockingSetupRequirementsForAction");function on(e){return`${e.actionId?`${e.actionId}: `:""}${e.label} (${e.status})`}i(on,"formatProfileSetupRequirement");var G=class extends Error{static{i(this,"TerminalUsageError")}exitCode=2;constructor(t){super(t),this.name="TerminalUsageError"}};function Xt(e,t=process.cwd()){let[r="chat",...n]=e,o={server:"http://127.0.0.1:17874",provider:ct,model:null,cwd:t,agent:null,project:null,resume:null,noServerStart:!1,message:null,messageFile:null,stdin:!1,nonInteractive:!1,json:!1,yes:!1,approvalPolicy:"on-request",sandbox:"workspace-write",timeoutSec:null,maxOutputBytes:null};for(let s=0;s<n.length;s+=1){let a=n[s];if(a==="--server")o.server=n[++s]??o.server;else if(a==="--provider")o.provider=re(n[++s]??null)??o.provider;else if(a==="--model"){let l=Ae(n[++s]??null,o.provider);l.provider&&(o.provider=l.provider),o.model=l.model}else if(a==="--cwd")o.cwd=Qt.resolve(n[++s]??o.cwd),o.cwdExplicit=!0;else if(a==="--agent")o.agent=U(n,++s,"agent");else if(a==="--project")o.project=n[++s]??null;else if(a==="--resume")o.resume=n[++s]??null;else if(a==="--no-server-start")o.noServerStart=!0;else if(a==="--message")o.message=U(n,++s,"message");else if(a==="--message-file")o.messageFile=Qt.resolve(U(n,++s,"message-file"));else if(a==="--stdin"){let l=Oe(n,s);o.stdin=l.value,s=l.index}else if(a==="--non-interactive"){let l=Oe(n,s);o.nonInteractive=l.value,s=l.index}else if(a==="--json"){let l=Oe(n,s);o.json=l.value,s=l.index}else if(a==="--yes"){let l=Oe(n,s);o.yes=l.value,s=l.index}else if(a==="--approval-policy")o.approvalPolicy=un(U(n,++s,"approval-policy"));else if(a==="--sandbox")o.sandbox=dn(U(n,++s,"sandbox"));else if(a==="--timeout-sec")o.timeoutSec=Yt(U(n,++s,"timeout-sec"),"timeout-sec");else if(a==="--max-output-bytes")o.maxOutputBytes=Yt(U(n,++s,"max-output-bytes"),"max-output-bytes");else if(a.startsWith("-"))throw new G(`unknown option ${a}`)}return{command:r,options:o}}i(Xt,"parseTerminalArgs");function sn(e){return!!(e.nonInteractive||e.message||e.messageFile||e.stdin)}i(sn,"shouldRunOneShotChat");function Zt(e,t){return sn(e)?"one-shot":!t.inputIsTTY||!t.outputIsTTY?"line-mode":"interactive"}i(Zt,"resolveTerminalChatMode");function U(e,t,r){let n=e[t];if(!n||n.startsWith("--"))throw new G(`${r} requires a value`);return n}i(U,"readStringArg");function Oe(e,t){let r=e[t+1];return r&&an(r)?{value:ln(r),index:t+1}:{value:!0,index:t}}i(Oe,"readOptionalBoolean");function an(e){return/^(true|false|1|0|yes|no)$/i.test(e)}i(an,"isBooleanLiteral");function ln(e){return/^(true|1|yes)$/i.test(e)}i(ln,"parseBooleanLiteral");function un(e){if(e==="on-request"||e==="never"||e==="on-failure"||e==="untrusted")return e;throw new G("approval-policy must be on-request, never, on-failure, or untrusted")}i(un,"parseApprovalPolicy");function dn(e){if(e==="read-only"||e==="workspace-write"||e==="danger-full-access")return e;throw new G("sandbox must be read-only, workspace-write, or danger-full-access")}i(dn,"parseSandboxMode");function Yt(e,t){let r=Number(e);if(!Number.isInteger(r)||r<=0)throw new G(`${t} must be a positive integer`);return r}i(Yt,"parsePositiveInteger");import{spawn as rr}from"node:child_process";import{promises as cn}from"node:fs";import je from"node:path";import{createRequire as pn}from"node:module";import{fileURLToPath as mn}from"node:url";var nr=je.dirname(mn(import.meta.url)),rt=null,oe=null;function fn(){return yt(ht()).token}i(fn,"tokenFilePath");async function gn(){try{return(await cn.readFile(fn(),"utf8")).trim()||null}catch{return null}}i(gn,"readToken");async function C(e,t,r,n){let o=new Headers(n?.headers);o.set("Content-Type","application/json"),o.set("Authorization",`Bearer ${t}`);let s=await fetch(`${e}${r}`,{...n,headers:o});if(!s.ok){let a=await s.json().catch(()=>({})),l=a&&typeof a=="object"&&"error"in a?String(a.error):s.statusText;throw new Error(l)}return await s.json()}i(C,"apiFetch");async function hn(e){try{return(await fetch(`${e}/health`)).ok}catch{return!1}}i(hn,"health");function yn(){return je.resolve(nr,"../../..")}i(yn,"repoRoot");async function vn(e,t){let r=yn(),n=process.env.OPENPOND_SERVER_RUNNER,o=wn(process.env.OPENPOND_SERVER_ARGS),s=!n&&je.basename(nr)==="src",a=je.join(r,"apps","server",s?"src/index.ts":"dist/index.js"),l=n??process.env.OPENPOND_NODE_BINARY??process.execPath,c=[...n?o:s?[pn(import.meta.url).resolve("tsx/cli"),a]:[a],...Sn(e)],d=rr(l,c,{cwd:process.env.OPENPOND_SERVER_CWD||r,env:process.env,detached:process.platform!=="win32"});return rt=d,new Promise((h,g)=>{let A=!1,T=i(()=>{clearTimeout(E),d.stdout.off("data",D),d.stderr.off("data",$),d.off("error",O),d.off("exit",F)},"cleanup"),x=i(v=>{A||(A=!0,T(),h(v))},"finish"),m=i(v=>{A||(A=!0,T(),g(v))},"fail"),P=vt("OPENPOND_APP_SERVER_READY ",v=>{x(v.url||"http://127.0.0.1:17874")}),E=setTimeout(()=>m(new Error("server start timed out")),15e3),D=i(v=>{try{P.push(v.toString("utf8"))}catch(R){m(R instanceof Error?R:new Error(String(R)))}},"onStdout"),$=i(v=>{let R=v.toString("utf8").trim();R&&t(R)},"onStderr"),O=i(v=>m(v),"onError"),F=i((v,R)=>{P.flush(),m(new Error(`server exited with ${R?`signal ${R}`:`code ${v??"unknown"}`}`))},"onExit");d.stdout.on("data",D),d.stderr.on("data",$),d.once("error",O),d.once("exit",F)})}i(vn,"startServer");function Sn(e){let t;try{t=new URL(e)}catch{throw new Error(`Invalid OpenPond App server URL: ${e}`)}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Error(`OpenPond App server URL must use http or https: ${e}`);let r=t.hostname.replace(/^\[|\]$/g,""),n=t.port||(t.protocol==="https:"?"443":"80");return["--host",r,"--port",n]}i(Sn,"serverListenArgs");function wn(e){if(!e)return[];try{let t=JSON.parse(e);if(Array.isArray(t)&&t.every(r=>typeof r=="string"))return t}catch{}throw new Error("OPENPOND_SERVER_ARGS must be a JSON string array")}i(wn,"parseConfiguredServerArgs");async function ie(e,t){let r=e.server;if(!await hn(r)){if(e.noServerStart)throw new Error(`No server is listening at ${r}`);try{r=await vn(r,t)}catch(o){throw await V(),o}}let n=await gn();if(!n)throw new Error("Missing OpenPond App capability token");return{server:r,token:n}}i(ie,"ensureServer");function V(){if(oe)return oe;let e=rt;return rt=null,e?(oe=Tn(e).finally(()=>{oe=null}),oe):Promise.resolve()}i(V,"stopManagedServer");async function Tn(e,t={}){if(er(e,"SIGTERM"),!await tr(e,t.gracefulTimeoutMs??5e3)&&(er(e,"SIGKILL"),!await tr(e,t.killTimeoutMs??2e3)))throw new Error(`terminal-owned server process tree ${e.pid??"unknown"} did not exit`)}i(Tn,"stopTerminalProcessTree");function er(e,t){if(!(!e.pid||e.exitCode!==null)){if(process.platform==="win32"){let r=["/pid",String(e.pid),"/t",...t==="SIGKILL"?["/f"]:[]];rr("taskkill",r,{stdio:"ignore",windowsHide:!0}).unref();return}try{process.kill(-e.pid,t)}catch{e.kill(t)}}}i(er,"terminateProcessTree");async function tr(e,t){return e.exitCode!==null||e.signalCode!==null?!0:new Promise(r=>{let n=setTimeout(()=>{e.off("exit",o),r(!1)},t),o=i(()=>{clearTimeout(n),r(!0)},"onExit");e.once("exit",o)})}i(tr,"waitForExit");function Le(e,t){let r=bn(t);if(!r)return null;let n=e.localProjects.find(a=>Pn(a,r));if(n)return{kind:"local_project",id:n.id,label:n.name,session:{appId:n.linkedOpenPondApp?.appId??null,appName:n.linkedOpenPondApp?.appName??null,workspaceKind:"local_project",workspaceId:n.id,workspaceName:n.name,localProjectId:n.id,cloudProjectId:n.linkedSandboxProject?.projectId??null,cloudTeamId:n.linkedSandboxProject?.teamId??null,cwd:n.workspacePath}};let o=e.cloudProjects.find(a=>xn(a,r));if(o)return{kind:"cloud_project",id:o.id,label:o.name,provider:"openpond",session:{appId:null,appName:null,workspaceKind:"sandbox",workspaceId:o.id,workspaceName:o.name,cloudProjectId:o.id,cloudTeamId:o.teamId,cwd:null}};let s=e.apps.find(a=>Cn(a,r));return s?{kind:"sandbox_app",id:s.id,label:s.name,session:{appId:s.id,appName:s.name,workspaceKind:"sandbox_app",workspaceId:s.id,workspaceName:s.name}}:null}i(Le,"resolveTerminalProjectTarget");function nt(e){let t=[...e.localProjects.map(r=>`local ${r.id} ${r.name} ${r.workspacePath}`),...e.cloudProjects.map(r=>`cloud ${r.id} ${r.name}${r.slug?` (${r.slug})`:""}`),...e.apps.map(r=>`app ${r.id} ${r.name}`)];return t.length?t.join(`
29
- `):"No local projects, cloud projects, or OpenPond apps returned."}i(nt,"formatTerminalProjects");function bn(e){return e?.trim().toLowerCase()??""}i(bn,"normalizeProjectQuery");function Pn(e,t){return[e.id,e.name,e.path,e.workspacePath,e.repoPath??""].some(r=>r.trim().toLowerCase()===t)}i(Pn,"matchesLocalProject");function xn(e,t){return[e.id,e.name,e.slug??""].some(r=>r.trim().toLowerCase()===t)}i(xn,"matchesCloudProject");function Cn(e,t){return[e.id,e.name].some(r=>r.trim().toLowerCase()===t)}i(Cn,"matchesApp");import{realpath as or}from"node:fs/promises";import ir from"node:path";function sr(e){if(e.profile.mode!=="local")return"none";let t=e.profile.activeProfile??"local",r=e.profile.summary.state==="ready"?"":`:${e.profile.summary.state}`;return`${t}${r}`}i(sr,"profileLabel");function Ne(e,t){return t?[...e.sessions,...e.codexHistorySessions??[]].find(r=>r.id===t)??null:null}i(Ne,"findTerminalSession");function In(e,t,r){let n=Ne(e,t);return n?.modelRef?{provider:n.modelRef.providerId,model:n.modelRef.modelId}:n?.provider?{...r,provider:n.provider}:r}i(In,"resolveResumedTerminalSelection");async function _e(e,t,r){let n=Le(t,r.project);if(n&&r.cwdExplicit){if(n.kind!=="local_project"||!n.session.cwd)throw new Error("--cwd can only be combined with a local --project target.");await An(n.session.cwd,r.cwd)}let o=n?.provider??r.provider,s={...r,provider:o},a=n?{...n.session,...r.cwdExplicit?{cwd:r.cwd}:{}}:{appId:r.project,appName:null,cwd:r.cwd},l={...a.metadata??{},...r.headless?{openpondTerminalMode:"one-shot",openpondTerminal:{mode:"one-shot",sandbox:r.sandbox??null}}:{}},u={provider:o,modelRef:q(s,t.providers),title:n?.label?`${n.label} terminal`:"Terminal chat",...a,...Object.keys(l).length>0?{metadata:l}:{},...r.headless&&(r.yes||r.approvalPolicy==="never")?{openPondCommandAccessMode:"full-access"}:{}};return typeof a.cwd=="string"&&a.cwd&&(r.cwd=a.cwd),C(e.server,e.token,"/v1/sessions",{method:"POST",body:JSON.stringify(u),signal:e.signal})}i(_e,"createTerminalChatSession");async function se(e,t,r,n){let o=In(t,n,{provider:r.provider,model:r.model});if(n){if(r.cwdExplicit)throw new Error("--cwd cannot be combined with --resume; the resumed session workspace is authoritative.");let a=Ne(t,n);return a?.cwd&&(r.cwd=a.cwd),{sessionId:n,session:a,...o}}let s=await _e(e,t,{...r,...o});return{sessionId:s.id,session:s,...o}}i(se,"ensureTerminalChatSession");async function Q(e,t){return!t||t.workspaceKind!=="sandbox"&&t.workspaceKind!=="sandbox_template"?t:(await C(e.server,e.token,`/v1/sessions/${encodeURIComponent(t.id)}/workspace/ensure-ready`,{method:"POST",body:JSON.stringify({surface:"terminal"}),signal:e.signal})).session}i(Q,"ensureTerminalSessionWorkspaceReady");async function An(e,t){let[r,n]=await Promise.all([or(e),or(t)]),o=ir.relative(r,n);if(o.startsWith("..")||ir.isAbsolute(o))throw new Error(`--cwd must be the selected local project or one of its subdirectories: ${r}`)}i(An,"assertLocalProjectCwd");var ot=[{name:"yes",usage:"yes",description:"approve this command",submitText:"yes"},{name:"session",usage:"session",description:"approve this command family",submitText:"session"},{name:"no",usage:"no",description:"deny this command",submitText:"no"},{name:"skip",usage:"skip",description:"cancel this command request",submitText:"skip"}];function Y(e){let t=e?.trim().toLowerCase();return t==="yes"||t==="y"||t==="approve"?"yes":t==="session"||t==="s"?"session":t==="no"||t==="n"||t==="deny"?"no":t==="skip"||t==="cancel"?"skip":null}i(Y,"parseTerminalPermissionChoice");function ar(e){return e==="yes"?"accept":e==="session"?"acceptForSession":e==="skip"?"cancel":"decline"}i(ar,"terminalPermissionDecision");function lr(e){let t=e?.trim().toLowerCase();if(!t)return null;if(t==="full"||t==="full-access"||t==="full_access")return"full-access";let r=mt.safeParse(t);return r.success?r.data:null}i(lr,"parseTerminalPermissionMode");function it(e){return e==="full-access"?"Full access":e==="disabled"?"Disabled":"Ask"}i(it,"formatTerminalPermissionMode");function De(e,t){return!e||!t?null:(e.approvals??[]).filter(r=>r.kind==="command"&&r.status==="pending"&&r.sessionId===t).sort((r,n)=>Date.parse(n.createdAt)-Date.parse(r.createdAt))[0]??null}i(De,"latestPendingCommandApproval");function ur(e){if(e.name!=="approval.requested")return null;let t=gt.safeParse(e.data);return!t.success||t.data.kind!=="command"||t.data.status!=="pending"?null:t.data}i(ur,"commandApprovalFromRuntimeEvent");function dr(e){if(e.name!=="approval.resolved")return null;let t=e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:null,r=t?.approvalId??t?.approval_id??t?.id;return typeof r=="string"&&r.trim()?r.trim():null}i(dr,"commandApprovalIdFromResolvedEvent");function cr(e,t){return(e?.sessions.find(n=>n.id===t)??e?.codexHistorySessions?.find(n=>n.id===t)??null)?.openPondCommandAccessMode??e?.preferences?.openPondCommandAccessMode??pt}i(cr,"commandAccessModeForSession");function pr(e){return[`Command access: ${it(e)}`,"Use /permissions ask or /permissions full-access to update this chat.","When a command approval is pending, /permissions opens yes/session/no/skip choices."].join(`
28
+ `)}i(Vt,"formatProfileAgents");function Me(e,t){return e.setupGate.blockingRequirements.filter(r=>r.actionId===null||r.actionId===t)}i(Me,"blockingSetupRequirementsForAction");function on(e){return`${e.actionId?`${e.actionId}: `:""}${e.label} (${e.status})`}i(on,"formatProfileSetupRequirement");var G=class extends Error{static{i(this,"TerminalUsageError")}exitCode=2;constructor(t){super(t),this.name="TerminalUsageError"}};function Xt(e,t=process.cwd()){let[r="chat",...n]=e,o={server:"http://127.0.0.1:17874",provider:pt,model:null,cwd:t,agent:null,project:null,resume:null,noServerStart:!1,message:null,messageFile:null,stdin:!1,nonInteractive:!1,json:!1,yes:!1,approvalPolicy:"on-request",sandbox:"workspace-write",timeoutSec:null,maxOutputBytes:null};for(let s=0;s<n.length;s+=1){let a=n[s];if(a==="--server")o.server=n[++s]??o.server;else if(a==="--provider")o.provider=re(n[++s]??null)??o.provider;else if(a==="--model"){let l=Ae(n[++s]??null,o.provider);l.provider&&(o.provider=l.provider),o.model=l.model}else if(a==="--cwd")o.cwd=Qt.resolve(n[++s]??o.cwd),o.cwdExplicit=!0;else if(a==="--agent")o.agent=U(n,++s,"agent");else if(a==="--project")o.project=n[++s]??null;else if(a==="--resume")o.resume=n[++s]??null;else if(a==="--no-server-start")o.noServerStart=!0;else if(a==="--message")o.message=U(n,++s,"message");else if(a==="--message-file")o.messageFile=Qt.resolve(U(n,++s,"message-file"));else if(a==="--stdin"){let l=Oe(n,s);o.stdin=l.value,s=l.index}else if(a==="--non-interactive"){let l=Oe(n,s);o.nonInteractive=l.value,s=l.index}else if(a==="--json"){let l=Oe(n,s);o.json=l.value,s=l.index}else if(a==="--yes"){let l=Oe(n,s);o.yes=l.value,s=l.index}else if(a==="--approval-policy")o.approvalPolicy=un(U(n,++s,"approval-policy"));else if(a==="--sandbox")o.sandbox=dn(U(n,++s,"sandbox"));else if(a==="--timeout-sec")o.timeoutSec=Yt(U(n,++s,"timeout-sec"),"timeout-sec");else if(a==="--max-output-bytes")o.maxOutputBytes=Yt(U(n,++s,"max-output-bytes"),"max-output-bytes");else if(a.startsWith("-"))throw new G(`unknown option ${a}`)}return{command:r,options:o}}i(Xt,"parseTerminalArgs");function sn(e){return!!(e.nonInteractive||e.message||e.messageFile||e.stdin)}i(sn,"shouldRunOneShotChat");function Zt(e,t){return sn(e)?"one-shot":!t.inputIsTTY||!t.outputIsTTY?"line-mode":"interactive"}i(Zt,"resolveTerminalChatMode");function U(e,t,r){let n=e[t];if(!n||n.startsWith("--"))throw new G(`${r} requires a value`);return n}i(U,"readStringArg");function Oe(e,t){let r=e[t+1];return r&&an(r)?{value:ln(r),index:t+1}:{value:!0,index:t}}i(Oe,"readOptionalBoolean");function an(e){return/^(true|false|1|0|yes|no)$/i.test(e)}i(an,"isBooleanLiteral");function ln(e){return/^(true|1|yes)$/i.test(e)}i(ln,"parseBooleanLiteral");function un(e){if(e==="on-request"||e==="never"||e==="on-failure"||e==="untrusted")return e;throw new G("approval-policy must be on-request, never, on-failure, or untrusted")}i(un,"parseApprovalPolicy");function dn(e){if(e==="read-only"||e==="workspace-write"||e==="danger-full-access")return e;throw new G("sandbox must be read-only, workspace-write, or danger-full-access")}i(dn,"parseSandboxMode");function Yt(e,t){let r=Number(e);if(!Number.isInteger(r)||r<=0)throw new G(`${t} must be a positive integer`);return r}i(Yt,"parsePositiveInteger");import{spawn as rr}from"node:child_process";import{promises as cn}from"node:fs";import je from"node:path";import{createRequire as pn}from"node:module";import{fileURLToPath as mn}from"node:url";var nr=je.dirname(mn(import.meta.url)),rt=null,oe=null;function fn(){return ct(dt()).token}i(fn,"tokenFilePath");async function gn(){try{return(await cn.readFile(fn(),"utf8")).trim()||null}catch{return null}}i(gn,"readToken");async function C(e,t,r,n){let o=new Headers(n?.headers);o.set("Content-Type","application/json"),o.set("Authorization",`Bearer ${t}`);let s=await fetch(`${e}${r}`,{...n,headers:o});if(!s.ok){let a=await s.json().catch(()=>({})),l=a&&typeof a=="object"&&"error"in a?String(a.error):s.statusText;throw new Error(l)}return await s.json()}i(C,"apiFetch");async function hn(e){try{return(await fetch(`${e}/health`)).ok}catch{return!1}}i(hn,"health");function yn(){return je.resolve(nr,"../../..")}i(yn,"repoRoot");async function vn(e,t){let r=yn(),n=process.env.OPENPOND_SERVER_RUNNER,o=wn(process.env.OPENPOND_SERVER_ARGS),s=!n&&je.basename(nr)==="src",a=je.join(r,"apps","server",s?"src/index.ts":"dist/index.js"),l=n??process.env.OPENPOND_NODE_BINARY??process.execPath,c=[...n?o:s?[pn(import.meta.url).resolve("tsx/cli"),a]:[a],...Sn(e)],d=rr(l,c,{cwd:process.env.OPENPOND_SERVER_CWD||r,env:process.env,detached:process.platform!=="win32"});return rt=d,new Promise((h,g)=>{let A=!1,T=i(()=>{clearTimeout(E),d.stdout.off("data",D),d.stderr.off("data",$),d.off("error",O),d.off("exit",F)},"cleanup"),x=i(v=>{A||(A=!0,T(),h(v))},"finish"),m=i(v=>{A||(A=!0,T(),g(v))},"fail"),P=vt("OPENPOND_APP_SERVER_READY ",v=>{x(v.url||"http://127.0.0.1:17874")}),E=setTimeout(()=>m(new Error("server start timed out")),15e3),D=i(v=>{try{P.push(v.toString("utf8"))}catch(R){m(R instanceof Error?R:new Error(String(R)))}},"onStdout"),$=i(v=>{let R=v.toString("utf8").trim();R&&t(R)},"onStderr"),O=i(v=>m(v),"onError"),F=i((v,R)=>{P.flush(),m(new Error(`server exited with ${R?`signal ${R}`:`code ${v??"unknown"}`}`))},"onExit");d.stdout.on("data",D),d.stderr.on("data",$),d.once("error",O),d.once("exit",F)})}i(vn,"startServer");function Sn(e){let t;try{t=new URL(e)}catch{throw new Error(`Invalid OpenPond App server URL: ${e}`)}if(t.protocol!=="http:"&&t.protocol!=="https:")throw new Error(`OpenPond App server URL must use http or https: ${e}`);let r=t.hostname.replace(/^\[|\]$/g,""),n=t.port||(t.protocol==="https:"?"443":"80");return["--host",r,"--port",n]}i(Sn,"serverListenArgs");function wn(e){if(!e)return[];try{let t=JSON.parse(e);if(Array.isArray(t)&&t.every(r=>typeof r=="string"))return t}catch{}throw new Error("OPENPOND_SERVER_ARGS must be a JSON string array")}i(wn,"parseConfiguredServerArgs");async function ie(e,t){let r=e.server;if(!await hn(r)){if(e.noServerStart)throw new Error(`No server is listening at ${r}`);try{r=await vn(r,t)}catch(o){throw await V(),o}}let n=await gn();if(!n)throw new Error("Missing OpenPond App capability token");return{server:r,token:n}}i(ie,"ensureServer");function V(){if(oe)return oe;let e=rt;return rt=null,e?(oe=Tn(e).finally(()=>{oe=null}),oe):Promise.resolve()}i(V,"stopManagedServer");async function Tn(e,t={}){if(er(e,"SIGTERM"),!await tr(e,t.gracefulTimeoutMs??5e3)&&(er(e,"SIGKILL"),!await tr(e,t.killTimeoutMs??2e3)))throw new Error(`terminal-owned server process tree ${e.pid??"unknown"} did not exit`)}i(Tn,"stopTerminalProcessTree");function er(e,t){if(!(!e.pid||e.exitCode!==null)){if(process.platform==="win32"){let r=["/pid",String(e.pid),"/t",...t==="SIGKILL"?["/f"]:[]];rr("taskkill",r,{stdio:"ignore",windowsHide:!0}).unref();return}try{process.kill(-e.pid,t)}catch{e.kill(t)}}}i(er,"terminateProcessTree");async function tr(e,t){return e.exitCode!==null||e.signalCode!==null?!0:new Promise(r=>{let n=setTimeout(()=>{e.off("exit",o),r(!1)},t),o=i(()=>{clearTimeout(n),r(!0)},"onExit");e.once("exit",o)})}i(tr,"waitForExit");function Le(e,t){let r=bn(t);if(!r)return null;let n=e.localProjects.find(a=>Pn(a,r));if(n)return{kind:"local_project",id:n.id,label:n.name,session:{appId:n.linkedOpenPondApp?.appId??null,appName:n.linkedOpenPondApp?.appName??null,workspaceKind:"local_project",workspaceId:n.id,workspaceName:n.name,localProjectId:n.id,cloudProjectId:n.linkedSandboxProject?.projectId??null,cloudTeamId:n.linkedSandboxProject?.teamId??null,cwd:n.workspacePath}};let o=e.cloudProjects.find(a=>xn(a,r));if(o)return{kind:"cloud_project",id:o.id,label:o.name,provider:"openpond",session:{appId:null,appName:null,workspaceKind:"sandbox",workspaceId:o.id,workspaceName:o.name,cloudProjectId:o.id,cloudTeamId:o.teamId,cwd:null}};let s=e.apps.find(a=>Cn(a,r));return s?{kind:"sandbox_app",id:s.id,label:s.name,session:{appId:s.id,appName:s.name,workspaceKind:"sandbox_app",workspaceId:s.id,workspaceName:s.name}}:null}i(Le,"resolveTerminalProjectTarget");function nt(e){let t=[...e.localProjects.map(r=>`local ${r.id} ${r.name} ${r.workspacePath}`),...e.cloudProjects.map(r=>`cloud ${r.id} ${r.name}${r.slug?` (${r.slug})`:""}`),...e.apps.map(r=>`app ${r.id} ${r.name}`)];return t.length?t.join(`
29
+ `):"No local projects, cloud projects, or OpenPond apps returned."}i(nt,"formatTerminalProjects");function bn(e){return e?.trim().toLowerCase()??""}i(bn,"normalizeProjectQuery");function Pn(e,t){return[e.id,e.name,e.path,e.workspacePath,e.repoPath??""].some(r=>r.trim().toLowerCase()===t)}i(Pn,"matchesLocalProject");function xn(e,t){return[e.id,e.name,e.slug??""].some(r=>r.trim().toLowerCase()===t)}i(xn,"matchesCloudProject");function Cn(e,t){return[e.id,e.name].some(r=>r.trim().toLowerCase()===t)}i(Cn,"matchesApp");import{realpath as or}from"node:fs/promises";import ir from"node:path";function sr(e){if(e.profile.mode!=="local")return"none";let t=e.profile.activeProfile??"local",r=e.profile.summary.state==="ready"?"":`:${e.profile.summary.state}`;return`${t}${r}`}i(sr,"profileLabel");function Ne(e,t){return t?[...e.sessions,...e.codexHistorySessions??[]].find(r=>r.id===t)??null:null}i(Ne,"findTerminalSession");function In(e,t,r){let n=Ne(e,t);return n?.modelRef?{provider:n.modelRef.providerId,model:n.modelRef.modelId}:n?.provider?{...r,provider:n.provider}:r}i(In,"resolveResumedTerminalSelection");async function _e(e,t,r){let n=Le(t,r.project);if(n&&r.cwdExplicit){if(n.kind!=="local_project"||!n.session.cwd)throw new Error("--cwd can only be combined with a local --project target.");await An(n.session.cwd,r.cwd)}let o=n?.provider??r.provider,s={...r,provider:o},a=n?{...n.session,...r.cwdExplicit?{cwd:r.cwd}:{}}:{appId:r.project,appName:null,cwd:r.cwd},l={...a.metadata??{},...r.headless?{openpondTerminalMode:"one-shot",openpondTerminal:{mode:"one-shot",sandbox:r.sandbox??null}}:{}},u={provider:o,modelRef:q(s,t.providers),title:n?.label?`${n.label} terminal`:"Terminal chat",...a,...Object.keys(l).length>0?{metadata:l}:{},...r.headless&&(r.yes||r.approvalPolicy==="never")?{openPondCommandAccessMode:"full-access"}:{}};return typeof a.cwd=="string"&&a.cwd&&(r.cwd=a.cwd),C(e.server,e.token,"/v1/sessions",{method:"POST",body:JSON.stringify(u),signal:e.signal})}i(_e,"createTerminalChatSession");async function se(e,t,r,n){let o=In(t,n,{provider:r.provider,model:r.model});if(n){if(r.cwdExplicit)throw new Error("--cwd cannot be combined with --resume; the resumed session workspace is authoritative.");let a=Ne(t,n);return a?.cwd&&(r.cwd=a.cwd),{sessionId:n,session:a,...o}}let s=await _e(e,t,{...r,...o});return{sessionId:s.id,session:s,...o}}i(se,"ensureTerminalChatSession");async function Q(e,t){return!t||t.workspaceKind!=="sandbox"&&t.workspaceKind!=="sandbox_template"?t:(await C(e.server,e.token,`/v1/sessions/${encodeURIComponent(t.id)}/workspace/ensure-ready`,{method:"POST",body:JSON.stringify({surface:"terminal"}),signal:e.signal})).session}i(Q,"ensureTerminalSessionWorkspaceReady");async function An(e,t){let[r,n]=await Promise.all([or(e),or(t)]),o=ir.relative(r,n);if(o.startsWith("..")||ir.isAbsolute(o))throw new Error(`--cwd must be the selected local project or one of its subdirectories: ${r}`)}i(An,"assertLocalProjectCwd");var ot=[{name:"yes",usage:"yes",description:"approve this command",submitText:"yes"},{name:"session",usage:"session",description:"approve this command family",submitText:"session"},{name:"no",usage:"no",description:"deny this command",submitText:"no"},{name:"skip",usage:"skip",description:"cancel this command request",submitText:"skip"}];function Y(e){let t=e?.trim().toLowerCase();return t==="yes"||t==="y"||t==="approve"?"yes":t==="session"||t==="s"?"session":t==="no"||t==="n"||t==="deny"?"no":t==="skip"||t==="cancel"?"skip":null}i(Y,"parseTerminalPermissionChoice");function ar(e){return e==="yes"?"accept":e==="session"?"acceptForSession":e==="skip"?"cancel":"decline"}i(ar,"terminalPermissionDecision");function lr(e){let t=e?.trim().toLowerCase();if(!t)return null;if(t==="full"||t==="full-access"||t==="full_access")return"full-access";let r=ft.safeParse(t);return r.success?r.data:null}i(lr,"parseTerminalPermissionMode");function it(e){return e==="full-access"?"Full access":e==="disabled"?"Disabled":"Ask"}i(it,"formatTerminalPermissionMode");function De(e,t){return!e||!t?null:(e.approvals??[]).filter(r=>r.kind==="command"&&r.status==="pending"&&r.sessionId===t).sort((r,n)=>Date.parse(n.createdAt)-Date.parse(r.createdAt))[0]??null}i(De,"latestPendingCommandApproval");function ur(e){if(e.name!=="approval.requested")return null;let t=yt.safeParse(e.data);return!t.success||t.data.kind!=="command"||t.data.status!=="pending"?null:t.data}i(ur,"commandApprovalFromRuntimeEvent");function dr(e){if(e.name!=="approval.resolved")return null;let t=e.data&&typeof e.data=="object"&&!Array.isArray(e.data)?e.data:null,r=t?.approvalId??t?.approval_id??t?.id;return typeof r=="string"&&r.trim()?r.trim():null}i(dr,"commandApprovalIdFromResolvedEvent");function cr(e,t){return(e?.sessions.find(n=>n.id===t)??e?.codexHistorySessions?.find(n=>n.id===t)??null)?.openPondCommandAccessMode??e?.preferences?.openPondCommandAccessMode??mt}i(cr,"commandAccessModeForSession");function pr(e){return[`Command access: ${it(e)}`,"Use /permissions ask or /permissions full-access to update this chat.","When a command approval is pending, /permissions opens yes/session/no/skip choices."].join(`
30
30
  `)}i(pr,"formatTerminalPermissionsSummary");function We(e){let t=$n(e);return["Command approval",`command: ${t.command??e.title}`,t.cwd?`cwd: ${t.cwd}`:null,t.risk?`risk: ${t.risk}`:null,t.timeoutSeconds?`timeout: ${t.timeoutSeconds}s`:null,t.familyLabel?`session approval family: ${t.familyLabel}`:null,"Choose: yes, session, no, or skip."].filter(Boolean).join(`
31
31
  `)}i(We,"formatTerminalCommandApprovalQuestion");function $n(e){try{let t=JSON.parse(e.detail),r=t.sessionApprovalFamily&&typeof t.sessionApprovalFamily=="object"&&!Array.isArray(t.sessionApprovalFamily)?t.sessionApprovalFamily:null;return{command:Be(t.command),cwd:Be(t.cwd),risk:Be(t.risk),timeoutSeconds:typeof t.timeoutSeconds=="number"?t.timeoutSeconds:null,familyLabel:Be(r?.label)}}catch{return{command:null,cwd:null,risk:null,timeoutSeconds:null,familyLabel:null}}}i($n,"commandApprovalDetail");function Be(e){return typeof e=="string"&&e.trim()?e.trim():null}i(Be,"stringValue");async function fr(e,t){let r=t.getConnection();if(r){if(e.type==="exit"){t.requestExit();return}if(e.type==="clear"){t.clearTranscript(),t.render();return}if(e.type==="help"){t.addItem(p(Ct()));return}if(e.type==="projects"){let n=await t.refreshBootstrap();t.addItem(p(nt(n)));return}if(e.type==="providers"){let n=t.getPayload()??await t.refreshBootstrap();t.addItem(p(ke(n.providers,t.options.provider)));return}if(e.type==="provider"){let n=t.getPayload()??await t.refreshBootstrap();if(!e.id){t.addItem(p(ke(n.providers,t.options.provider)));return}let o=re(e.id);if(!o){t.addItem(p(`Unknown provider: ${e.id}
32
32
 
33
- ${ke(n.providers,t.options.provider)}`,"warning"));return}t.options.provider=o,t.options.model=null,t.addItem(p(`Provider set to ${_(n.providers,o)} / ${ne(n.providers,t.options)}`)),t.render();return}if(e.type==="apps"){let n=t.getPayload()??await t.refreshBootstrap();t.addItem(p(tt(n)));return}if(e.type==="install"){let n=dt(e.id);if(!n){t.addItem(p(`Unknown app: ${e.id}
33
+ ${ke(n.providers,t.options.provider)}`,"warning"));return}t.options.provider=o,t.options.model=null,t.addItem(p(`Provider set to ${_(n.providers,o)} / ${ne(n.providers,t.options)}`)),t.render();return}if(e.type==="apps"){let n=t.getPayload()??await t.refreshBootstrap();t.addItem(p(tt(n)));return}if(e.type==="install"){let n=ht(e.id);if(!n){t.addItem(p(`Unknown app: ${e.id}
34
34
 
35
35
  ${tt(t.getPayload())}`,"warning"));return}let o=t.getPayload()??await t.refreshBootstrap(),s=me({appId:n.id,baseUrl:o.account.baseUrl??o.account.activeProfile?.baseUrl??null,teamId:o.preferences.defaultTeamId??null});t.openUrl(s),t.addItem(p(`Opened ${n.label} setup:
36
36
  ${s}`));return}if(e.type==="project"){if(!e.id){t.addItem(p("Usage: /project <id>","warning"));return}let n=t.getPayload()??await t.refreshBootstrap(),o=Le(n,e.id);if(!o){t.addItem(p(`Project not found: ${e.id}
@@ -51,7 +51,7 @@ ${nt(n)}`,"warning"));return}let s={...t.options,project:o.id,provider:o.provide
51
51
  `);r.write(`${Ee(x.providers,e)}
52
52
  `)}let D=st({maxOutputBytes:e.maxOutputBytes});g=D;let $=i(S=>{},"resolveTerminalEvent"),O=new Promise(S=>{$=S});u=Zn({server:l.server,token:l.token,activeSessionId:d,onEvent:i(S=>{D.apply(S),e.json||r.write(to(S)),ro(S)&&$(S)},"onEvent"),onStatus:i(S=>{e.json||r.write(S)},"onStatus")}),await s.run("event stream readiness",u.ready);let F=(x.profile.actionCatalog??[]).filter(S=>zn(S,e.agent)&&(!S.agentId||x.profile.agents.some(j=>j.enabled&&j.id===S.agentId))).map(S=>({...S,implementation:{...S.implementation??{},type:"openpond-profile-action",actionId:S.id}})),v=P?.localProjectId??m.session?.localProjectId??null,R=v?await s.run("Project Action catalog",Hn({...l,signal:s.signal},v)):[],H=[...F,...R];await s.run("turn submission",C(l.server,l.token,`/v1/sessions/${d}/turns`,{method:"POST",body:JSON.stringify({prompt:T,...e.cwdExplicit||!e.project&&!e.resume?{cwd:e.cwd}:{},model:E,modelRef:q(e,x.providers),...H.length>0?{openPondActionCatalog:H}:{},approvalPolicy:e.yes?"never":e.approvalPolicy,sandbox:e.sandbox,metadata:{openpondTerminalMode:"one-shot",openpondTerminal:{mode:"one-shot",nonInteractive:!0,sandbox:e.sandbox,...e.agent?{agentId:e.agent}:{}}}}),signal:s.signal})),A=!0;let z=await s.run("turn completion",O),Z=D.result({terminal:z.name,sessionId:d,provider:e.provider,model:E,cwd:e.cwd,startedAt:o,startedAtMs:n,error:z.error??(z.name==="turn.failed"?z.output??"Turn failed.":null)});return at(r,e,Z),Z.status!=="completed"&&(process.exitCode=1),Z}catch(T){if(T instanceof X)throw T;if(T instanceof qe){c=!0,l&&d&&A&&await eo(l.server,l.token,d);let m=(g??st({maxOutputBytes:e.maxOutputBytes})).result({terminal:"timeout",sessionId:d,provider:e.provider,model:h,cwd:e.cwd,startedAt:o,startedAtMs:n,error:T.message});return at(r,e,m),process.exitCode=124,m}let x=(g??st({maxOutputBytes:e.maxOutputBytes})).result({terminal:"error",sessionId:d,provider:e.provider,model:h,cwd:e.cwd,startedAt:o,startedAtMs:n,error:T instanceof Error?T.message:String(T)});return at(r,e,x),process.exitCode=1,x}finally{s.dispose(),u?.abort(),t.connection||await V(),c&&!e.json&&r.write(`
53
53
  [turn timeout]
54
- `)}}i(xr,"runOneShotChat");async function Hn(e,t){return(await C(e.server,e.token,`/v1/projects/${encodeURIComponent(t)}/actions`,{signal:e.signal})).actions}i(Hn,"loadLocalProjectActionCatalog");function zn(e,t){return t?e.agentId===t||e.id===t||e.id.startsWith(`${t}.`):!0}i(zn,"profileActionMatchesAgent");function Jn(e){let t=new AbortController,r="startup",n=null,o=i(a=>{},"rejectTimeout"),s=new Promise((a,l)=>{o=l});return s.catch(()=>{}),e&&(n=setTimeout(()=>{t.abort(),o(new qe(r,e))},e*1e3)),{signal:t.signal,async run(a,l){return r=a,e?Promise.race([l,s]):l},dispose(){n&&clearTimeout(n)}}}i(Jn,"createOneShotDeadline");function st(e={}){let t=0,r=0,n=0,o="",s=0,a=!1,l=null,u=null,c=e.maxOutputBytes??null;return{apply(d){if(t+=1,d.turnId&&(l=d.turnId),d.name==="assistant.delta"&&d.output&&!a){let g=Vn(o,s,d.output,c);o=g.text,s=g.bytes,a=g.truncated}(d.name==="command.output"||d.name==="tool.completed"&&d.action==="exec_command")&&(r+=1),(d.name==="workspace_action"||d.name==="workspace_action_result")&&(n+=1);let h=Kn(d);h&&(u=h)},result(d){let h=Date.now(),g=d.terminal;return{status:no(g),sessionId:d.sessionId,turnId:l,provider:d.provider,model:d.model,cwd:d.cwd,startedAt:d.startedAt,finishedAt:new Date(h).toISOString(),durationMs:Math.max(0,h-d.startedAtMs),finalMessage:o,output:{finalMessageBytes:s,truncated:a,maxOutputBytes:c},events:{terminal:g,total:t,commands:r,workspaceActions:n},usage:u,error:d.error}}}}i(st,"createOneShotAccumulator");function Kn(e){if(e.name!=="session.context.updated")return null;let t=ft.safeParse(e.data);return!t.success||t.data.source==="heuristic"?null:t.data}i(Kn,"contextUsageFromEvent");function Vn(e,t,r,n){if(n===null)return{text:e+r,bytes:t+Pr(r),truncated:!1};let o=e,s=t;for(let a of r){let l=Pr(a);if(s+l>n)return{text:o,bytes:s,truncated:!0};o+=a,s+=l}return{text:o,bytes:s,truncated:!1}}i(Vn,"appendWithinByteLimit");function Pr(e){return new TextEncoder().encode(e).byteLength}i(Pr,"utf8Bytes");async function Qn(e,t){let r=[],n=!!t.isTTY,o=[e.message!==null?"--message":null,e.messageFile!==null?"--message-file":null,e.stdin?"--stdin":null].filter(s=>s!==null);if(o.length>1)throw new X(`openpond chat --non-interactive accepts exactly one instruction source; received ${o.join(", ")}.`,2);return e.message!==null&&r.push(e.message),e.messageFile&&r.push(await Yn(e.messageFile)),(e.stdin||e.nonInteractive&&!n&&!e.message&&!e.messageFile)&&r.push(await Xn(t)),r.join(`
54
+ `)}}i(xr,"runOneShotChat");async function Hn(e,t){return(await C(e.server,e.token,`/v1/projects/${encodeURIComponent(t)}/actions`,{signal:e.signal})).actions}i(Hn,"loadLocalProjectActionCatalog");function zn(e,t){return t?e.agentId===t||e.id===t||e.id.startsWith(`${t}.`):!0}i(zn,"profileActionMatchesAgent");function Jn(e){let t=new AbortController,r="startup",n=null,o=i(a=>{},"rejectTimeout"),s=new Promise((a,l)=>{o=l});return s.catch(()=>{}),e&&(n=setTimeout(()=>{t.abort(),o(new qe(r,e))},e*1e3)),{signal:t.signal,async run(a,l){return r=a,e?Promise.race([l,s]):l},dispose(){n&&clearTimeout(n)}}}i(Jn,"createOneShotDeadline");function st(e={}){let t=0,r=0,n=0,o="",s=0,a=!1,l=null,u=null,c=e.maxOutputBytes??null;return{apply(d){if(t+=1,d.turnId&&(l=d.turnId),d.name==="assistant.delta"&&d.output&&!a){let g=Vn(o,s,d.output,c);o=g.text,s=g.bytes,a=g.truncated}(d.name==="command.output"||d.name==="tool.completed"&&d.action==="exec_command")&&(r+=1),(d.name==="workspace_action"||d.name==="workspace_action_result")&&(n+=1);let h=Kn(d);h&&(u=h)},result(d){let h=Date.now(),g=d.terminal;return{status:no(g),sessionId:d.sessionId,turnId:l,provider:d.provider,model:d.model,cwd:d.cwd,startedAt:d.startedAt,finishedAt:new Date(h).toISOString(),durationMs:Math.max(0,h-d.startedAtMs),finalMessage:o,output:{finalMessageBytes:s,truncated:a,maxOutputBytes:c},events:{terminal:g,total:t,commands:r,workspaceActions:n},usage:u,error:d.error}}}}i(st,"createOneShotAccumulator");function Kn(e){if(e.name!=="session.context.updated")return null;let t=gt.safeParse(e.data);return!t.success||t.data.source==="heuristic"?null:t.data}i(Kn,"contextUsageFromEvent");function Vn(e,t,r,n){if(n===null)return{text:e+r,bytes:t+Pr(r),truncated:!1};let o=e,s=t;for(let a of r){let l=Pr(a);if(s+l>n)return{text:o,bytes:s,truncated:!0};o+=a,s+=l}return{text:o,bytes:s,truncated:!1}}i(Vn,"appendWithinByteLimit");function Pr(e){return new TextEncoder().encode(e).byteLength}i(Pr,"utf8Bytes");async function Qn(e,t){let r=[],n=!!t.isTTY,o=[e.message!==null?"--message":null,e.messageFile!==null?"--message-file":null,e.stdin?"--stdin":null].filter(s=>s!==null);if(o.length>1)throw new X(`openpond chat --non-interactive accepts exactly one instruction source; received ${o.join(", ")}.`,2);return e.message!==null&&r.push(e.message),e.messageFile&&r.push(await Yn(e.messageFile)),(e.stdin||e.nonInteractive&&!n&&!e.message&&!e.messageFile)&&r.push(await Xn(t)),r.join(`
55
55
 
56
56
  `).trimEnd()}i(Qn,"resolveOneShotPrompt");async function Yn(e){try{return await Fn(e,"utf8")}catch(t){let r=t instanceof Error?t.message:String(t);throw new X(`openpond chat --message-file could not read ${e}: ${r}`,2)}}i(Yn,"readOneShotMessageFile");async function Xn(e){let t="";e.setEncoding("utf8");for await(let r of e)t+=String(r);return t}i(Xn,"readAll");function Zn(e){let t=ae({server:e.server,token:e.token,activeSessionId:i(()=>e.activeSessionId,"activeSessionId"),onEvent:e.onEvent,onStatus:i(n=>{n.state==="disconnected"&&e.onStatus(`
57
57
  [event stream] reconnecting in ${Math.ceil(n.nextDelayMs/1e3)}s: ${n.message}
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a as g,c as h,d as m}from"./chunk-NPOHW5OU.js";import{c as f}from"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as n,f as u}from"./chunk-3M53YXEI.js";import"./chunk-GLUWATL5.js";import"./chunk-UWO34HP6.js";import"./chunk-L4BYPZ4U.js";import"./chunk-P653BXMY.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import{a as c}from"./chunk-FTQLQJQV.js";import w from"node:path";async function A(r,l,k={}){let[t,e]=l;if(!t||!e||l.length!==2||!["import","publish","readiness","delete-draft"].includes(t))throw new Error("usage: taskset <import|publish|readiness|delete-draft> <package-path|draft-id|taskset-id> [--profile <id>] [--model <id>] [--json]");let i=f(r)??process.env.OPENPOND_LOCAL_API_URL?.replace(/\/$/,"")??g,d=new URL(i);if(d.protocol!=="http:"||!["127.0.0.1","localhost","::1"].includes(d.hostname))throw new Error("Taskset package import is available only through the local OpenPond app API.");let a=new m({baseUrl:i,request:k.request??await h(i)}),s=t==="import"?await a.importTasksetDraftPackage({packagePath:w.resolve(e),profileId:n(r,"profile")||"default"}):t==="publish"?await a.publishTasksetDraft(e,n(r,"model")||null):t==="readiness"?await a.tasksetReadiness(e):await a.deleteTasksetDraft(e);if(u(r.json)){console.log(JSON.stringify(s,null,2));return}let o=s&&typeof s=="object"?s:{};if(t==="import"){console.log(`Imported Taskset draft ${String(o.name??o.id??e)}.`),console.log("Open it in Models \u2192 Tasksets to review it, or publish it with the OpenPond CLI.");return}if(t==="publish"){let p=o.taskset&&typeof o.taskset=="object"?o.taskset:{};console.log(`Published Taskset ${String(p.name??p.id??e)}.`);return}if(t==="readiness"){console.log(`Checked Taskset ${e} readiness.`),console.log(JSON.stringify(s,null,2));return}console.log(`Deleted unpublished Taskset draft ${e}.`)}c(A,"runTasksetCommand");export{A as runTasksetCommand};
@@ -1,3 +1,3 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{m as f}from"./chunk-B3O2GAQH.js";import"./chunk-65BW2QXY.js";import"./chunk-BSHAIAXY.js";import"./chunk-OI2N2636.js";import"./chunk-4S4WH65X.js";import"./chunk-XWPC3AN4.js";import{a as g,c as a,d}from"./chunk-3M53YXEI.js";import"./chunk-OGPHXXCD.js";import"./chunk-Z2BYC6TP.js";import"./chunk-ARJUNUH6.js";import"./chunk-DXAZUJPA.js";import"./chunk-GLUWATL5.js";import"./chunk-3QC2DDQ5.js";import"./chunk-Z3D4C7BG.js";import"./chunk-LNEOLOK2.js";import"./chunk-Z6ZR5O3J.js";import"./chunk-ALZRXBEC.js";import"./chunk-MTJNKRXL.js";import"./chunk-HZP5U2AA.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import{a as s}from"./chunk-FTQLQJQV.js";function c(){return["usage: teams-bot <overview|bind|rebind|diagnostics|diagnostic-run>"," teams-bot overview --team-id <id>"," teams-bot bind --team-id <id> --token <token> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]"," teams-bot rebind <bindingId> --team-id <id> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]"," teams-bot diagnostics <bindingId> --team-id <id>"," teams-bot diagnostic-run <bindingId> --team-id <id> --prompt <text> [--attachments-json <json-array>] [--action-input-json <json-object>]"].join(`
2
+ import{m as f}from"./chunk-XLDW5NN3.js";import"./chunk-USWZ3KUC.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import"./chunk-EWS7MXTM.js";import"./chunk-TYWBEJOA.js";import{a as g,c as a,d}from"./chunk-3M53YXEI.js";import"./chunk-OGPHXXCD.js";import"./chunk-4UTIEH5H.js";import"./chunk-LZSY5IM3.js";import"./chunk-6SJZXZNA.js";import"./chunk-GLUWATL5.js";import"./chunk-H6W55CQG.js";import"./chunk-Z3D4C7BG.js";import"./chunk-JO7GRBOG.js";import"./chunk-BQNK2NMB.js";import"./chunk-VW7D3DRM.js";import"./chunk-UWO34HP6.js";import"./chunk-L4BYPZ4U.js";import"./chunk-P653BXMY.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import{a as s}from"./chunk-FTQLQJQV.js";function c(){return["usage: teams-bot <overview|bind|rebind|diagnostics|diagnostic-run>"," teams-bot overview --team-id <id>"," teams-bot bind --team-id <id> --token <token> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]"," teams-bot rebind <bindingId> --team-id <id> [--project-id <id>] [--agent-id <id>] [--microsoft-connection-id <id>]"," teams-bot diagnostics <bindingId> --team-id <id>"," teams-bot diagnostic-run <bindingId> --team-id <id> --prompt <text> [--attachments-json <json-array>] [--action-input-json <json-object>]"].join(`
3
3
  `)}s(c,"usage");function u(n,o){if(!(o in n))return;let t=a(n,o);return!t||t==="null"||t==="none"?null:t}s(u,"nullableOption");function b(n){let o=d(n,"usage: teams-bot rebind <bindingId>"),t=u(n,"sandboxId"),r=u(n,"projectId"),i=u(n,"agentId"),e=u(n,"microsoftConnectionId");return{teamId:o,...t!==void 0?{sandboxId:t}:{},...r!==void 0?{projectId:r}:{},...i!==void 0?{agentId:i}:{},...e!==void 0?{microsoftConnectionId:e}:{}}}s(b,"bindingTargetInput");function l(n){let o=a(n,"attachmentsJson");if(!o)return;let t=g(o,"attachments-json");if(!Array.isArray(t))throw new Error("attachments-json must be a JSON array");for(let r of t)if(!r||typeof r!="object"||Array.isArray(r))throw new Error("attachments-json entries must be JSON objects");return t}s(l,"attachmentsInput");function w(n){let o=a(n,"actionInputJson");if(!o)return;let t=g(o,"action-input-json");if(!t||typeof t!="object"||Array.isArray(t))throw new Error("action-input-json must be a JSON object");return t}s(w,"actionInput");async function j(n,o){let t=o[0]||"overview",r=await f(n);if(t==="overview"){let i=d(n,"usage: teams-bot overview");console.log(JSON.stringify(await r.getMicrosoftTeamsBotOverview({teamId:i}),null,2));return}if(t==="bind"){let i=a(n,"token");if(!i)throw new Error(c());let e=await r.bindMicrosoftTeamsBotConversation({...b(n),token:i});console.log(JSON.stringify(e,null,2));return}if(t==="rebind"){let i=o[1]?.trim();if(!i)throw new Error(c());let e=await r.rebindMicrosoftTeamsBotConversation(i,b(n));console.log(JSON.stringify(e,null,2));return}if(t==="diagnostics"){let i=o[1]?.trim(),e=d(n,"usage: teams-bot diagnostics <bindingId>");if(!i)throw new Error(c());console.log(JSON.stringify(await r.sendMicrosoftTeamsBotDiagnostic({teamId:e,bindingId:i}),null,2));return}if(t==="diagnostic-run"){let i=o[1]?.trim(),e=d(n,"usage: teams-bot diagnostic-run <bindingId>"),m=a(n,"prompt");if(!i||!m)throw new Error(c());console.log(JSON.stringify(await r.sendMicrosoftTeamsBotDiagnosticRun({teamId:e,bindingId:i,prompt:m,attachments:l(n),actionInput:w(n)}),null,2));return}throw new Error(c())}s(j,"runTeamsBotCommand");export{j as runTeamsBotCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b,c,d}from"./chunk-NPOHW5OU.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import"./chunk-3M53YXEI.js";import"./chunk-GLUWATL5.js";import"./chunk-UWO34HP6.js";import"./chunk-L4BYPZ4U.js";import"./chunk-P653BXMY.js";import"./chunk-ES2ISFJC.js";import"./chunk-H7IWJN7L.js";import"./chunk-FTQLQJQV.js";export{a as DEFAULT_LOCAL_TRAINING_API_URL,d as TrainingApiClient,c as createLocalAuthenticatedRequest,b as runTrainingCommand};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-2CXJK2M3.js";import"./chunk-YF6IDYTS.js";import"./chunk-FTQLQJQV.js";export{a as MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,C as appWorkspacePaths,B as assertSafeBranchName,d as checkWorkspaceGitAvailability,J as checkoutBranch,K as checkoutBranchAtPath,M as clearWorkspaceDiffCacheForTests,D as cloneWorkspace,H as createAndCheckoutBranch,I as createAndCheckoutBranchAtPath,A as expectedRemoteUrl,t as isGeneratedWorkspacePath,i as isGitRepo,c as isMacOSGitDeveloperToolsMissing,u as isVisibleGitWorkspaceFile,r as isWorkspaceDirectory,E as lastFetchAt,z as listPlainWorkspaceFiles,P as loadGitCommitDiffAtPath,N as loadWorkspaceDiff,O as loadWorkspaceDiffAtPath,Q as loadWorkspaceFile,T as loadWorkspaceFileAtPath,R as loadWorkspaceImageFile,S as loadWorkspaceImageFileAtPath,F as loadWorkspaceState,G as loadWorkspaceStateAtPath,n as localVideoContentType,L as mapWorkspaceDiffEntriesWithConcurrency,s as normalizeWorkspaceFilePath,w as parseBranchStatusLine,x as parseNumstat,v as parseStatusLine,h as pathExists,p as readLocalImageFile,q as readLocalVideoFile,l as readWorkspaceDocumentPreview,k as readWorkspaceFile,o as readWorkspaceImageFile,g as redactRemoteUrl,b as runWorkspaceCommand,f as sourceFromRemote,e as startMacOSCommandLineToolsInstall,j as truncatePatch,y as uniqueSortedPaths,m as workspaceImageContentType};
2
+ import{A,B,C,D,E,F,G,H,I,J,K,L,M,N,O,P,Q,R,S,T,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-LL4QP2IM.js";import"./chunk-PGKEDR3S.js";import"./chunk-FTQLQJQV.js";export{a as MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,C as appWorkspacePaths,B as assertSafeBranchName,d as checkWorkspaceGitAvailability,J as checkoutBranch,K as checkoutBranchAtPath,M as clearWorkspaceDiffCacheForTests,D as cloneWorkspace,H as createAndCheckoutBranch,I as createAndCheckoutBranchAtPath,A as expectedRemoteUrl,t as isGeneratedWorkspacePath,i as isGitRepo,c as isMacOSGitDeveloperToolsMissing,u as isVisibleGitWorkspaceFile,r as isWorkspaceDirectory,E as lastFetchAt,z as listPlainWorkspaceFiles,P as loadGitCommitDiffAtPath,N as loadWorkspaceDiff,O as loadWorkspaceDiffAtPath,Q as loadWorkspaceFile,T as loadWorkspaceFileAtPath,R as loadWorkspaceImageFile,S as loadWorkspaceImageFileAtPath,F as loadWorkspaceState,G as loadWorkspaceStateAtPath,n as localVideoContentType,L as mapWorkspaceDiffEntriesWithConcurrency,s as normalizeWorkspaceFilePath,w as parseBranchStatusLine,x as parseNumstat,v as parseStatusLine,h as pathExists,p as readLocalImageFile,q as readLocalVideoFile,l as readWorkspaceDocumentPreview,k as readWorkspaceFile,o as readWorkspaceImageFile,g as redactRemoteUrl,b as runWorkspaceCommand,f as sourceFromRemote,e as startMacOSCommandLineToolsInstall,j as truncatePatch,y as uniqueSortedPaths,m as workspaceImageContentType};
package/dist/cli.js CHANGED
@@ -1,5 +1,5 @@
1
1
  #!/usr/bin/env node
2
2
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
3
- import{a as m,b as l}from"./chunks/chunk-BSHAIAXY.js";import{b as u}from"./chunks/chunk-OI2N2636.js";import{a as c,j as d}from"./chunks/chunk-4S4WH65X.js";import"./chunks/chunk-XWPC3AN4.js";import{f as s}from"./chunks/chunk-3M53YXEI.js";import"./chunks/chunk-GLUWATL5.js";import{a as n}from"./chunks/chunk-FTQLQJQV.js";function f(e){return!e.command&&s(e.options.version)?"version":s(e.options.checkUpdate)?"check-update":!e.command&&s(e.options.help)?"help":!e.command&&s(e.options.tui)?"tui":e.command?"command":"ui"}n(f,"resolveCliTopLevelAction");async function C(e=process.argv.slice(2)){if(await w(e))return;let{command:t,options:o,rest:r}=u(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-ELWB75PL.js")).resolveOpenPondHome({home:o.home}));let i=f({command:t,options:o});if(i==="version"){console.log(c());return}if(i==="check-update"){await(await import("./chunks/core-commands-UZL5RF2M.js")).runCheckUpdate();return}if(i==="help"){(await import("./chunks/help-4F4QGL4C.js")).printHelp();return}let a=m(o),p=l(o);if(a&&(process.env.OPENPOND_ACCOUNT=a),p&&(process.env.OPENPOND_BASE_URL=p),i==="tui"){await(await import("./chunks/app-layer-7SPLENWD.js")).runOpenPondTerminalCommand(o,r);return}if(i==="ui"){await(await import("./chunks/app-layer-7SPLENWD.js")).runOpenPondServerCommand("web",o,r);return}await d({command:t,options:o,rest:r})||((await import("./chunks/help-4F4QGL4C.js")).printHelp(),process.exit(1))}n(C,"runOpenPondCli");async function w(e){if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-JXLPR7SX.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-JXLPR7SX.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-JXLPR7SX.js")).runHostedProfileCompilerCli(e.slice(1)),!0;if(e[0]==="__app-server"){process.argv=[process.execPath,"openpond-app-server",...e.slice(1)];let[{createOpenPondAppServer:t},{runOpenPondAppServerCli:o}]=await Promise.all([import("./chunks/app-server-runtime-NQ2BYPGK.js"),import("./chunks/cli-OJU6NQSA.js")]);return await o(t),!0}if(e[0]==="__server"){process.argv=[process.execPath,"openpond-server",...e.slice(1)];let[{createOpenPondServer:t},{runOpenPondServerCli:o}]=await Promise.all([import("./chunks/src-5MJSO3UD.js"),import("./chunks/cli-OJU6NQSA.js")]),{createOpenPondAppServer:r}=await import("./chunks/app-server-runtime-NQ2BYPGK.js");return await o({createOpenPondServer:t,createOpenPondAppServer:r}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-A3OVZOSV.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}n(w,"runEmbeddedCompanion");C().catch(e=>{let t=e instanceof Error?e.message:String(e),o=e.issue;if(process.argv.includes("--json")&&!(e instanceof Error&&e.name==="OpenPondChildProcessExitError"))console.log(JSON.stringify({error:o??{code:"CLI_ERROR",message:t}}));else if(o&&typeof o=="object"){let i=o;console.error(`${i.code}: ${i.message}
3
+ import{a as m,b as l}from"./chunks/chunk-BSHAIAXY.js";import"./chunks/chunk-XWPC3AN4.js";import{b as u}from"./chunks/chunk-EWS7MXTM.js";import{a as c,j as d}from"./chunks/chunk-TYWBEJOA.js";import{f as s}from"./chunks/chunk-3M53YXEI.js";import"./chunks/chunk-GLUWATL5.js";import{a as n}from"./chunks/chunk-FTQLQJQV.js";function f(e){return!e.command&&s(e.options.version)?"version":s(e.options.checkUpdate)?"check-update":!e.command&&s(e.options.help)?"help":!e.command&&s(e.options.tui)?"tui":e.command?"command":"ui"}n(f,"resolveCliTopLevelAction");async function C(e=process.argv.slice(2)){if(await w(e))return;let{command:t,options:o,rest:r}=u(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-JBE7DPFZ.js")).resolveOpenPondHome({home:o.home}));let i=f({command:t,options:o});if(i==="version"){console.log(c());return}if(i==="check-update"){await(await import("./chunks/core-commands-J2SJM5I5.js")).runCheckUpdate();return}if(i==="help"){(await import("./chunks/help-EISFHH2F.js")).printHelp();return}let a=m(o),p=l(o);if(a&&(process.env.OPENPOND_ACCOUNT=a),p&&(process.env.OPENPOND_BASE_URL=p),i==="tui"){await(await import("./chunks/app-layer-B3SMVO4B.js")).runOpenPondTerminalCommand(o,r);return}if(i==="ui"){await(await import("./chunks/app-layer-B3SMVO4B.js")).runOpenPondServerCommand("web",o,r);return}await d({command:t,options:o,rest:r})||((await import("./chunks/help-EISFHH2F.js")).printHelp(),process.exit(1))}n(C,"runOpenPondCli");async function w(e){if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-KQREWJA5.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-KQREWJA5.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-6CHH65DX.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-HYEISIAC.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-KQREWJA5.js")).runHostedProfileCompilerCli(e.slice(1)),!0;if(e[0]==="__app-server"){process.argv=[process.execPath,"openpond-app-server",...e.slice(1)];let[{createOpenPondAppServer:t},{runOpenPondAppServerCli:o}]=await Promise.all([import("./chunks/app-server-runtime-FL2CHQU2.js"),import("./chunks/cli-5QR7QNQJ.js")]);return await o(t),!0}if(e[0]==="__server"){process.argv=[process.execPath,"openpond-server",...e.slice(1)];let[{createOpenPondServer:t},{runOpenPondServerCli:o}]=await Promise.all([import("./chunks/src-TNWF3IC5.js"),import("./chunks/cli-5QR7QNQJ.js")]),{createOpenPondAppServer:r}=await import("./chunks/app-server-runtime-FL2CHQU2.js");return await o({createOpenPondServer:t,createOpenPondAppServer:r}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-WM35IF4W.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}n(w,"runEmbeddedCompanion");C().catch(e=>{let t=e instanceof Error?e.message:String(e),o=e.issue;if(process.argv.includes("--json")&&!(e instanceof Error&&e.name==="OpenPondChildProcessExitError"))console.log(JSON.stringify({error:o??{code:"CLI_ERROR",message:t}}));else if(o&&typeof o=="object"){let i=o;console.error(`${i.code}: ${i.message}
4
4
  ${i.path}
5
5
  ${i.action}`)}else console.error(t);let r=typeof e.exitCode=="number"?e.exitCode:1;process.exit(r)});export{C as runOpenPondCli};
package/dist/index.js CHANGED
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as Fr,b as Gr,c as Hr,d as Ir,e as Jr,f as Kr,g as Lr,h as Mr,i as Nr,j as Or,k as Pr,l as Qr}from"./chunks/chunk-KIGN4FI6.js";import{a as sr,b as ur,c as vr,d as wr,e as yr,f as zr,g as Ar,h as Br,i as Cr,j as Dr,k as Er}from"./chunks/chunk-JEVA7YQL.js";import{a as lr,b as nr,c as qr}from"./chunks/chunk-22UARBPW.js";import"./chunks/chunk-X37KMV27.js";import{A as Mo,B as No,C as Oo,D as Po,E as Qo,F as Ro,G as So,H as To,I as Uo,J as Vo,K as Wo,L as Xo,b as ho,c as io,d as jo,e as ko,f as lo,g as no,h as qo,i as so,j as uo,k as vo,l as wo,m as yo,n as zo,o as Ao,p as Bo,q as Co,r as Do,s as Eo,t as Fo,u as Go,v as Ho,w as Io,x as Jo,y as Ko,z as Lo}from"./chunks/chunk-CR6CDOKS.js";import"./chunks/chunk-V62BHD5G.js";import"./chunks/chunk-OGPHXXCD.js";import{$ as go,A as M,B as N,C as O,D as P,E as Q,F as R,G as S,H as T,I as U,J as V,K as W,L as X,M as Y,N as Z,O as _,P as $,Q as oo,U as ro,V as eo,W as fo,X as mo,Y as po,Z as to,_ as xo,a as h,b as i,c as j,d as k,e as l,f as n,g as q,h as s,i as u,j as v,k as w,l as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"./chunks/chunk-Z2BYC6TP.js";import"./chunks/chunk-ARJUNUH6.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a}from"./chunks/chunk-DXAZUJPA.js";import{a as b,b as c,c as d,d as g}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-3QC2DDQ5.js";import{f as ao,g as bo,h as co}from"./chunks/chunk-Z3D4C7BG.js";import"./chunks/chunk-LNEOLOK2.js";import"./chunks/chunk-Z6ZR5O3J.js";import"./chunks/chunk-3A7HZJNE.js";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr,i as mr,j as pr,k as tr,l as xr,m as ar,n as br,o as cr,p as dr,q as gr,r as hr,s as ir,t as jr,u as kr}from"./chunks/chunk-EAPFMACH.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-ALZRXBEC.js";import"./chunks/chunk-MTJNKRXL.js";import"./chunks/chunk-HZP5U2AA.js";import"./chunks/chunk-ES2ISFJC.js";import"./chunks/chunk-H7IWJN7L.js";import"./chunks/chunk-FTQLQJQV.js";export{fo as DEFAULT_CACHE_TTL_MS,yo as DEFAULT_LOCAL_PROFILE,c as DEFAULT_OPENPOND_API_BASE_URL,g as DEFAULT_OPENPOND_CHAT_API_BASE_URL,d as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,b as DEFAULT_OPENPOND_WEB_BASE_URL,zo as DEFAULT_PROFILE_AGENT,_o as OPENPOND_MANIFEST_FILE_NAME,ho as OpenPondProfileSetupRequiredError,bo as OpenPondSandboxClient,wo as PROFILE_MANIFEST,vo as PROFILE_REPO_MANIFEST,go as SANDBOX_RUNTIME_PROFILE_IDS,$o as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,or as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,Zo as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,Yo as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,rr as SandboxTemplateManifestSchema,er as SandboxTemplateValidationDiagnosticSchema,h as apiFetch,jo as assertOpenPondProfileActionReady,io as buildOpenPondProfileSetupGate,Z as checkOpenPondApiHealth,lo as collectProfileSourceUploadEntries,Vo as commitActiveProfileChanges,i as commitFiles,Or as computeAtr,Mr as computeBollinger,Jr as computeEma,Ir as computeEmaSeries,Lr as computeMaCross,Kr as computeMacd,Nr as computePriceChange,Fr as computeRsi,Hr as computeSma,Gr as computeSmaSeries,Pr as consumeAgentCreateStream,nr as consumeStream,V as createAgentFromPrompt,Qr as createClient,z as createHeadlessApps,w as createLocalProject,co as createOpenPondSandboxClient,y as createRepo,Co as defaultLocalProfileRepoPath,xr as defineSandboxTemplate,Q as deleteOrArchiveSchedule,j as deployApp,C as deployLatestTemplate,Do as emptyProfileState,eo as executeHostedTool,oo as executeUserTool,F as fetchToolManifest,ko as formatOpenPondProfileSetupRequirement,tr as formatSandboxTemplateDiagnostics,qr as formatStreamItem,E as getAppEnvironment,U as getAppExecutionTimeline,X as getAppRuntimeSummary,mo as getCachedApps,to as getCachedTools,o as getConfigPath,u as getDeploymentDetail,n as getDeploymentLogs,q as getDeploymentStatus,s as getLatestDeploymentForApp,wr as getOpChatModel,Ar as getOpChatProvider,Y as getOpenPondAccount,K as getOpenToolRecipe,L as getOpenToolRules,T as getScheduleExecutionLog,A as getTemplateStatus,W as getUserPerformance,qo as hostedPublishStatusFromPayload,uo as hostedRunStatusFromRunSummary,so as hostedRunSummaryFromPayload,no as hostedSourceCheckStatusFromPayload,Eo as initLocalProfileRepo,Po as inspectOpenPondProfileSource,Io as installAgentPackageIntoActiveProfile,H as listAppSchedules,v as listApps,m as listConfiguredProfiles,S as listDeploymentScheduleExecutionLogs,yr as listHostedModels,Br as listHostedProviders,vr as listOpChatModels,zr as listOpChatProviders,I as listOpenToolRecipes,R as listScheduleExecutionLogs,B as listTemplateBranches,G as listUserTools,f as loadConfig,e as loadGlobalConfig,Fo as loadLocalProfileRepo,Lo as loadOpenPondProfileLibrary,Jo as loadOpenPondProfileState,Mo as loadOpenPondProfileStateForRef,Qo as loadOpenPondProfileStateFromSource,Bo as mergeActiveLocalProfileConfig,Ao as mergeProfileRepoManifestEntry,lr as normalizeDataFrames,ao as normalizeSandboxApiUrl,Ko as openPondProfileRef,pr as parseSandboxTemplateYaml,$ as postAgentDigest,Xo as prepareAgentSdkRuntimePackage,k as promotePreviewToProduction,Go as registerLocalProfileRepo,Oo as removeOpenPondProfile,Ho as renameActiveProfileAgent,Ro as requireActiveLocalProfile,ur as resolveHostedChatApiBaseUrl,sr as resolveOpChatApiBaseUrl,ro as resolveWorkerBaseUrl,To as runAgentSdkProjectCommand,_ as runAssistantMode,Er as runOpChatSmoke,Uo as runProfileCheck,So as runProfileSdkCommand,P as runScheduleNow,hr as sandboxTemplateBuildMetadata,ir as sandboxTemplateBuildPlan,br as sandboxTemplateDurableVolume,gr as sandboxTemplateExecutableEntries,dr as sandboxTemplateFileInput,kr as sandboxTemplateJsonSchema,cr as sandboxTemplatePreviewPort,ar as sandboxTemplateResources,jr as sandboxTemplateScaffoldFiles,x as saveConfig,a as saveGlobalConfig,t as saveProfileApiKey,Wo as saveProfilePushStatus,J as searchOpenToolRecipes,No as selectOpenPondProfile,Cr as sendHostedChatTurn,p as setActiveProfile,po as setCachedApps,xo as setCachedTools,l as startAppLifecycle,M as startAppSchedules,N as stopAppSchedules,O as stopCurrentAppSchedules,Dr as streamHostedChatTurn,D as updateAppEnvironment,r as updateGlobalConfig,mr as validateSandboxTemplateManifest,fr as validateSandboxTemplateYaml};
2
+ import"./chunks/chunk-X37KMV27.js";import{a as Fr,b as Gr,c as Hr,d as Ir,e as Jr,f as Kr,g as Lr,h as Mr,i as Nr,j as Or,k as Pr,l as Qr}from"./chunks/chunk-OGXSE57Z.js";import{a as sr,b as ur,c as vr,d as wr,e as yr,f as zr,g as Ar,h as Br,i as Cr,j as Dr,k as Er}from"./chunks/chunk-JEVA7YQL.js";import{a as lr,b as nr,c as qr}from"./chunks/chunk-22UARBPW.js";import{A as Mo,B as No,C as Oo,D as Po,E as Qo,F as Ro,G as So,H as To,I as Uo,J as Vo,K as Wo,L as Xo,b as ho,c as io,d as jo,e as ko,f as lo,g as no,h as qo,i as so,j as uo,k as vo,l as wo,m as yo,n as zo,o as Ao,p as Bo,q as Co,r as Do,s as Eo,t as Fo,u as Go,v as Ho,w as Io,x as Jo,y as Ko,z as Lo}from"./chunks/chunk-F5DUN73H.js";import"./chunks/chunk-ZC57DX6D.js";import"./chunks/chunk-3A7HZJNE.js";import{a as Yo,b as Zo,c as _o,d as $o,e as or,f as rr,g as er,h as fr,i as mr,j as pr,k as tr,l as xr,m as ar,n as br,o as cr,p as dr,q as gr,r as hr,s as ir,t as jr,u as kr}from"./chunks/chunk-EAPFMACH.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-OGPHXXCD.js";import"./chunks/chunk-4UTIEH5H.js";import{$ as go,A as M,B as N,C as O,D as P,E as Q,F as R,G as S,H as T,I as U,J as V,K as W,L as X,M as Y,N as Z,O as _,P as $,Q as oo,U as ro,V as eo,W as fo,X as mo,Y as po,Z as to,_ as xo,a as h,b as i,c as j,d as k,e as l,f as n,g as q,h as s,i as u,j as v,k as w,l as y,n as z,o as A,p as B,q as C,r as D,s as E,t as F,u as G,v as H,w as I,x as J,y as K,z as L}from"./chunks/chunk-LZSY5IM3.js";import{a as o,b as r,c as e,d as f,e as m,f as p,g as t,h as x,i as a}from"./chunks/chunk-6SJZXZNA.js";import{a as b,b as c,c as d,d as g}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-H6W55CQG.js";import{f as ao,g as bo,h as co}from"./chunks/chunk-Z3D4C7BG.js";import"./chunks/chunk-JO7GRBOG.js";import"./chunks/chunk-BQNK2NMB.js";import"./chunks/chunk-VW7D3DRM.js";import"./chunks/chunk-UWO34HP6.js";import"./chunks/chunk-L4BYPZ4U.js";import"./chunks/chunk-P653BXMY.js";import"./chunks/chunk-ES2ISFJC.js";import"./chunks/chunk-H7IWJN7L.js";import"./chunks/chunk-FTQLQJQV.js";export{fo as DEFAULT_CACHE_TTL_MS,yo as DEFAULT_LOCAL_PROFILE,c as DEFAULT_OPENPOND_API_BASE_URL,g as DEFAULT_OPENPOND_CHAT_API_BASE_URL,d as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,b as DEFAULT_OPENPOND_WEB_BASE_URL,zo as DEFAULT_PROFILE_AGENT,_o as OPENPOND_MANIFEST_FILE_NAME,ho as OpenPondProfileSetupRequiredError,bo as OpenPondSandboxClient,wo as PROFILE_MANIFEST,vo as PROFILE_REPO_MANIFEST,go as SANDBOX_RUNTIME_PROFILE_IDS,$o as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,or as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,Zo as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,Yo as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,rr as SandboxTemplateManifestSchema,er as SandboxTemplateValidationDiagnosticSchema,h as apiFetch,jo as assertOpenPondProfileActionReady,io as buildOpenPondProfileSetupGate,Z as checkOpenPondApiHealth,lo as collectProfileSourceUploadEntries,Vo as commitActiveProfileChanges,i as commitFiles,Or as computeAtr,Mr as computeBollinger,Jr as computeEma,Ir as computeEmaSeries,Lr as computeMaCross,Kr as computeMacd,Nr as computePriceChange,Fr as computeRsi,Hr as computeSma,Gr as computeSmaSeries,Pr as consumeAgentCreateStream,nr as consumeStream,V as createAgentFromPrompt,Qr as createClient,z as createHeadlessApps,w as createLocalProject,co as createOpenPondSandboxClient,y as createRepo,Co as defaultLocalProfileRepoPath,xr as defineSandboxTemplate,Q as deleteOrArchiveSchedule,j as deployApp,C as deployLatestTemplate,Do as emptyProfileState,eo as executeHostedTool,oo as executeUserTool,F as fetchToolManifest,ko as formatOpenPondProfileSetupRequirement,tr as formatSandboxTemplateDiagnostics,qr as formatStreamItem,E as getAppEnvironment,U as getAppExecutionTimeline,X as getAppRuntimeSummary,mo as getCachedApps,to as getCachedTools,o as getConfigPath,u as getDeploymentDetail,n as getDeploymentLogs,q as getDeploymentStatus,s as getLatestDeploymentForApp,wr as getOpChatModel,Ar as getOpChatProvider,Y as getOpenPondAccount,K as getOpenToolRecipe,L as getOpenToolRules,T as getScheduleExecutionLog,A as getTemplateStatus,W as getUserPerformance,qo as hostedPublishStatusFromPayload,uo as hostedRunStatusFromRunSummary,so as hostedRunSummaryFromPayload,no as hostedSourceCheckStatusFromPayload,Eo as initLocalProfileRepo,Po as inspectOpenPondProfileSource,Io as installAgentPackageIntoActiveProfile,H as listAppSchedules,v as listApps,m as listConfiguredProfiles,S as listDeploymentScheduleExecutionLogs,yr as listHostedModels,Br as listHostedProviders,vr as listOpChatModels,zr as listOpChatProviders,I as listOpenToolRecipes,R as listScheduleExecutionLogs,B as listTemplateBranches,G as listUserTools,f as loadConfig,e as loadGlobalConfig,Fo as loadLocalProfileRepo,Lo as loadOpenPondProfileLibrary,Jo as loadOpenPondProfileState,Mo as loadOpenPondProfileStateForRef,Qo as loadOpenPondProfileStateFromSource,Bo as mergeActiveLocalProfileConfig,Ao as mergeProfileRepoManifestEntry,lr as normalizeDataFrames,ao as normalizeSandboxApiUrl,Ko as openPondProfileRef,pr as parseSandboxTemplateYaml,$ as postAgentDigest,Xo as prepareAgentSdkRuntimePackage,k as promotePreviewToProduction,Go as registerLocalProfileRepo,Oo as removeOpenPondProfile,Ho as renameActiveProfileAgent,Ro as requireActiveLocalProfile,ur as resolveHostedChatApiBaseUrl,sr as resolveOpChatApiBaseUrl,ro as resolveWorkerBaseUrl,To as runAgentSdkProjectCommand,_ as runAssistantMode,Er as runOpChatSmoke,Uo as runProfileCheck,So as runProfileSdkCommand,P as runScheduleNow,hr as sandboxTemplateBuildMetadata,ir as sandboxTemplateBuildPlan,br as sandboxTemplateDurableVolume,gr as sandboxTemplateExecutableEntries,dr as sandboxTemplateFileInput,kr as sandboxTemplateJsonSchema,cr as sandboxTemplatePreviewPort,ar as sandboxTemplateResources,jr as sandboxTemplateScaffoldFiles,x as saveConfig,a as saveGlobalConfig,t as saveProfileApiKey,Wo as saveProfilePushStatus,J as searchOpenToolRecipes,No as selectOpenPondProfile,Cr as sendHostedChatTurn,p as setActiveProfile,po as setCachedApps,xo as setCachedTools,l as startAppLifecycle,M as startAppSchedules,N as stopAppSchedules,O as stopCurrentAppSchedules,Dr as streamHostedChatTurn,D as updateAppEnvironment,r as updateGlobalConfig,mr as validateSandboxTemplateManifest,fr as validateSandboxTemplateYaml};
@@ -0,0 +1 @@
1
+ .sidebar-task-menu{position:fixed;z-index:1000;width:192px;max-height:calc(100vh - 16px);overflow-y:auto;padding:4px;border:0;border-radius:8px;background:var(--panel);color:var(--text);box-shadow:0 8px 24px #0006}.sidebar-task-menu button{display:flex;align-items:center;gap:8px;width:100%;min-height:32px;padding:6px 8px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;font-size:12px;text-align:left;cursor:pointer}.sidebar-task-menu button:hover,.sidebar-task-menu button:focus-visible{background:#000;outline:none}.sidebar-task-menu .task-menu-done{border-top:1px solid var(--border);margin-top:4px}.sidebar-task-menu-trigger.is-open{opacity:1;pointer-events:auto}.sidebar-row.sidebar-task-row.has-running-dot .row-meta{align-self:center;margin-top:0}@media(hover:none){.sidebar-task-menu-trigger{opacity:1;pointer-events:auto}}.sidebar-row-actions.sidebar-task-menu-trigger{background:transparent;padding:0}.sidebar-task-row:hover .sidebar-task-menu-trigger .sidebar-row-action,.sidebar-task-row:focus-within .sidebar-task-menu-trigger .sidebar-row-action,.sidebar-task-menu-trigger.is-open .sidebar-row-action{background:var(--panel)}.native-setup-terminal{position:fixed;inset:auto 0 0;height:min(420px,70vh);z-index:120}.native-setup-terminal .guake-terminal-overlay{height:100%}.execution-activity{position:relative;flex-shrink:0}.execution-activity-trigger{display:flex;align-items:center;gap:12px;height:32px;width:268px;box-sizing:border-box;padding:0 12px;border:0;border-radius:6px;background:var(--panel-soft, #262626);color:var(--text, #e8e8e8);font:inherit;font-size:12px;cursor:pointer}.execution-activity-trigger:hover,.execution-activity-trigger:active{background:var(--panel-hover, #303030)}.execution-activity-trigger:focus-visible,.execution-activity-list button:focus-visible{outline:2px solid var(--ring, #777);outline-offset:2px}.execution-activity-ring{display:block;width:14px;height:14px;flex-shrink:0;border:2px solid currentColor;border-radius:50%;opacity:.4}.execution-activity-ring.is-active{opacity:1;border-right-color:transparent;animation:execution-activity-spin 1s linear infinite}.execution-activity-training{width:82px;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}.execution-activity-experiments{width:110px;flex-shrink:0;white-space:nowrap;font-variant-numeric:tabular-nums}.execution-activity-list{position:absolute;top:calc(100% + 6px);left:0;z-index:80;width:320px;padding:12px;border:1px solid var(--border, #3b3b3b);border-radius:8px;background:var(--panel-soft, #232323);color:var(--text, #e8e8e8);box-shadow:0 2px 4px #0002}.execution-activity-list[hidden]{display:none}.execution-activity-list ul{max-height:320px;overflow:auto;list-style:none;padding:0;margin:0}.execution-activity-list li+li{border-top:1px solid var(--border, #3b3b3b)}.execution-activity-list li button{display:block;width:100%;padding:8px 4px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.execution-activity-list li button:hover{background:var(--panel-hover, #303030)}.execution-activity-list li span,.execution-activity-list li small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.execution-activity-list li small,.execution-activity-list p{font-size:12px;color:var(--muted, #aaa)}.execution-activity-list p{margin:6px 0}@keyframes execution-activity-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.execution-activity-ring.is-active{animation:none}}