openpond 0.2.67 → 0.2.69

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 (573) hide show
  1. package/dist/app-server.d.ts +668 -1
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/account-context-V3KLSNKS.js +12 -0
  4. package/dist/chunks/{acp-NASAJV5E.js → acp-ER6CUXG2.js} +1 -1
  5. package/dist/chunks/{acp-agent-C3CRF6DT.js → acp-agent-AYJ5RPVF.js} +1 -1
  6. package/dist/chunks/actions-command-BBUS3HDK.js +2 -0
  7. package/dist/chunks/{app-layer-XIEZ6ALX.js → app-layer-JCEWGUDH.js} +1 -1
  8. package/dist/chunks/{app-server-connected-apps-IB6M35NS.js → app-server-connected-apps-ILXBFD3S.js} +1 -1
  9. package/dist/chunks/app-server-evaluations-RRLYWLPK.js +2 -0
  10. package/dist/chunks/app-server-harness-services-XXM336NU.js +2 -0
  11. package/dist/chunks/app-server-runtime-43MCH5SY.js +2 -0
  12. package/dist/chunks/apps-VNFGMQFG.js +2 -0
  13. package/dist/chunks/{chunk-W3ZILZUL.js → chunk-22RLEU3Q.js} +1 -1
  14. package/dist/chunks/chunk-2PXKSAG6.js +2 -0
  15. package/dist/chunks/{chunk-XEU4J4GJ.js → chunk-2TGHZXJE.js} +2 -2
  16. package/dist/chunks/{chunk-AXO6OHJB.js → chunk-3A2Y7UK3.js} +1 -1
  17. package/dist/chunks/chunk-3Z4VM2LF.js +4 -0
  18. package/dist/chunks/{chunk-V3T2OJBZ.js → chunk-4BUM6JEC.js} +2 -2
  19. package/dist/chunks/chunk-4G3GTEVS.js +23 -0
  20. package/dist/chunks/{chunk-43QYVOYA.js → chunk-4KNPCJR4.js} +1 -1
  21. package/dist/chunks/chunk-4KTGYHCE.js +2 -0
  22. package/dist/chunks/chunk-4PUOWSDE.js +13 -0
  23. package/dist/chunks/chunk-55YD4UTW.js +2 -0
  24. package/dist/chunks/chunk-5G7BQAUA.js +2 -0
  25. package/dist/chunks/chunk-65FJWWXG.js +2 -0
  26. package/dist/chunks/{chunk-4EZI4KCT.js → chunk-65WRWLUD.js} +1 -1
  27. package/dist/chunks/chunk-6D3FI2XT.js +2 -0
  28. package/dist/chunks/chunk-7EQLW2KM.js +12 -0
  29. package/dist/chunks/{chunk-5TPYBXWM.js → chunk-7NCM6GBN.js} +1 -1
  30. package/dist/chunks/chunk-7OFD6TFD.js +2 -0
  31. package/dist/chunks/chunk-7OKZCJHS.js +3 -0
  32. package/dist/chunks/{chunk-ADOCQA4D.js → chunk-7PKDJHT6.js} +1 -1
  33. package/dist/chunks/chunk-7RJOCGQ6.js +2 -0
  34. package/dist/chunks/{chunk-YR5URT73.js → chunk-7RSQOC5M.js} +3 -3
  35. package/dist/chunks/{chunk-FVK4W27G.js → chunk-AFH462DO.js} +1 -1
  36. package/dist/chunks/{chunk-GUG2SWRZ.js → chunk-AFKFN25T.js} +1 -1
  37. package/dist/chunks/chunk-AFYYIJ6K.js +2 -0
  38. package/dist/chunks/{chunk-U3MVH2YT.js → chunk-APKXXAUF.js} +1 -1
  39. package/dist/chunks/chunk-AQUZCWM3.js +2 -0
  40. package/dist/chunks/chunk-AUO5DCEU.js +2 -0
  41. package/dist/chunks/chunk-AYOMVI7J.js +2 -0
  42. package/dist/chunks/{chunk-RWRKUO5D.js → chunk-B66QCXH2.js} +1 -1
  43. package/dist/chunks/chunk-BDZDWHBJ.js +6 -0
  44. package/dist/chunks/chunk-BU6MW65V.js +10 -0
  45. package/dist/chunks/{chunk-P6NQYXN6.js → chunk-CCZ276IA.js} +1 -1
  46. package/dist/chunks/{chunk-YONDU5TN.js → chunk-CIZI6Z7D.js} +1 -1
  47. package/dist/chunks/{chunk-ATFV2NA4.js → chunk-CO23RRN7.js} +1 -1
  48. package/dist/chunks/{chunk-QAFXQHHG.js → chunk-D6L6UNUQ.js} +2 -2
  49. package/dist/chunks/chunk-DDOIPTOM.js +2 -0
  50. package/dist/chunks/{chunk-CSU7RDA5.js → chunk-DKOVZ6R2.js} +3 -3
  51. package/dist/chunks/chunk-DRLP7GIU.js +2 -0
  52. package/dist/chunks/{chunk-XDFXKRTI.js → chunk-DWF3FCY4.js} +1 -1
  53. package/dist/chunks/chunk-DXJC3QW7.js +2 -0
  54. package/dist/chunks/{chunk-IDILAYCW.js → chunk-E2JB5OCO.js} +1 -1
  55. package/dist/chunks/{chunk-GI7LTJV3.js → chunk-EDYCSW22.js} +1 -1
  56. package/dist/chunks/{chunk-4JYTFEND.js → chunk-EFP75UEX.js} +1 -1
  57. package/dist/chunks/{chunk-CX7HKSQ4.js → chunk-EGP6DF34.js} +2 -2
  58. package/dist/chunks/{chunk-D5OFN47Z.js → chunk-ESYPMD7Q.js} +1 -1
  59. package/dist/chunks/{chunk-36FNNR5N.js → chunk-EWDDDHJN.js} +1 -1
  60. package/dist/chunks/{chunk-PWKJ5KLZ.js → chunk-EXYSD45J.js} +1 -1
  61. package/dist/chunks/{chunk-R6VI7MX5.js → chunk-EYTTZ5H4.js} +1 -1
  62. package/dist/chunks/{chunk-WD6ANOLL.js → chunk-FNGZ4UDZ.js} +1 -1
  63. package/dist/chunks/{chunk-YKTJPCYZ.js → chunk-G4FRBT7G.js} +4 -4
  64. package/dist/chunks/{chunk-JFZ6USNQ.js → chunk-G7X73SBG.js} +1 -1
  65. package/dist/chunks/{chunk-ULJZ7NUF.js → chunk-GY7YSD6J.js} +1 -1
  66. package/dist/chunks/{chunk-CWAQOFLP.js → chunk-GYYJ47GX.js} +1 -1
  67. package/dist/chunks/chunk-HG2YFMVU.js +4 -0
  68. package/dist/chunks/{chunk-YQBL5P6R.js → chunk-HKVFU3B3.js} +1 -1
  69. package/dist/chunks/{chunk-VEXJV5H5.js → chunk-IIT66347.js} +4 -4
  70. package/dist/chunks/{chunk-B2K5WQZE.js → chunk-IO5DZUKL.js} +1 -1
  71. package/dist/chunks/chunk-J256AEEE.js +2 -0
  72. package/dist/chunks/{chunk-CRDKBFRN.js → chunk-JEMECEQH.js} +1 -1
  73. package/dist/chunks/{chunk-YMCF5GR2.js → chunk-JQOVC35K.js} +1 -1
  74. package/dist/chunks/{chunk-6LFTQBXP.js → chunk-JT5YQ52I.js} +1 -1
  75. package/dist/chunks/chunk-JVMSN7LH.js +2 -0
  76. package/dist/chunks/{chunk-HORMGT2Q.js → chunk-JXYJQT5Q.js} +1 -1
  77. package/dist/chunks/{chunk-WDKZMXIU.js → chunk-K7KBFM2T.js} +1 -1
  78. package/dist/chunks/{chunk-UBTP3QWI.js → chunk-KCLMA2IH.js} +1 -1
  79. package/dist/chunks/chunk-KDER7R45.js +2 -0
  80. package/dist/chunks/{chunk-R6MMWEH4.js → chunk-KP2MYTP5.js} +1 -1
  81. package/dist/chunks/{chunk-TV2LE2BD.js → chunk-KU4TPDPH.js} +2 -2
  82. package/dist/chunks/{chunk-WJSJXK2N.js → chunk-KUE46HTH.js} +1 -1
  83. package/dist/chunks/chunk-LSKMALD6.js +161 -0
  84. package/dist/chunks/chunk-LVXL7T5O.js +2 -0
  85. package/dist/chunks/{chunk-TSQ2I6XV.js → chunk-M4A7G4S5.js} +2 -2
  86. package/dist/chunks/{chunk-MX7KV5DA.js → chunk-M4ZHFDRJ.js} +1 -1
  87. package/dist/chunks/chunk-M5X7XKXY.js +12 -0
  88. package/dist/chunks/{chunk-XT5WUQGT.js → chunk-MIFVX5PK.js} +1 -1
  89. package/dist/chunks/{chunk-4VZJQRQI.js → chunk-MOXIGLN2.js} +1 -1
  90. package/dist/chunks/{chunk-UKSSFB4Q.js → chunk-N5EAVX4G.js} +1 -1
  91. package/dist/chunks/{chunk-4B7EGNYX.js → chunk-NMMHXYDJ.js} +1 -1
  92. package/dist/chunks/{chunk-EBOTNBUS.js → chunk-NRYC4NH6.js} +1 -1
  93. package/dist/chunks/chunk-NSSZ2ZIU.js +2 -0
  94. package/dist/chunks/chunk-NW6WGGSL.js +2 -0
  95. package/dist/chunks/{chunk-7P5SH3CI.js → chunk-NZDLL6JN.js} +1 -1
  96. package/dist/chunks/{chunk-4TTXNVCE.js → chunk-OFJPOTES.js} +1 -1
  97. package/dist/chunks/chunk-OUJ63LMU.js +2 -0
  98. package/dist/chunks/{chunk-SD2XDZQW.js → chunk-P4QM63L3.js} +1 -1
  99. package/dist/chunks/chunk-PACLKDTN.js +2 -0
  100. package/dist/chunks/{chunk-VPAEFG7X.js → chunk-PAYFJHPO.js} +1 -1
  101. package/dist/chunks/{chunk-OPTJYDZN.js → chunk-PHZZBXDO.js} +1 -1
  102. package/dist/chunks/{chunk-HPTEJBP4.js → chunk-PKJHN666.js} +1 -1
  103. package/dist/chunks/{chunk-HNDAGZCF.js → chunk-PLROXHG2.js} +1 -1
  104. package/dist/chunks/{chunk-UNE52L3Y.js → chunk-PNPV2LDE.js} +1 -1
  105. package/dist/chunks/{chunk-2RSGVLZT.js → chunk-PSY6IRJE.js} +8 -8
  106. package/dist/chunks/{chunk-SVNEPXU3.js → chunk-Q73RKX7I.js} +1 -1
  107. package/dist/chunks/{chunk-IF5A3XWP.js → chunk-Q7FBVLLB.js} +1 -1
  108. package/dist/chunks/{chunk-V5AOM5MZ.js → chunk-Q7P34B2O.js} +1 -1
  109. package/dist/chunks/{chunk-375PADDM.js → chunk-QLGP2OAQ.js} +1 -1
  110. package/dist/chunks/{chunk-QQLS5FB7.js → chunk-QUNQM2E3.js} +1 -1
  111. package/dist/chunks/chunk-R2FYCJL6.js +2 -0
  112. package/dist/chunks/{chunk-6HQUIKC5.js → chunk-R4EEGWXB.js} +1 -1
  113. package/dist/chunks/chunk-R6I623SZ.js +11 -0
  114. package/dist/chunks/chunk-RCQYEHHD.js +2 -0
  115. package/dist/chunks/{chunk-26ID6A5C.js → chunk-RCRZXHAI.js} +1 -1
  116. package/dist/chunks/{chunk-TGULVWPV.js → chunk-RFQD6B44.js} +1 -1
  117. package/dist/chunks/{chunk-3WJQ4IGK.js → chunk-RPM4FDRX.js} +1 -1
  118. package/dist/chunks/{chunk-MCBRB5D6.js → chunk-RY46UPBO.js} +4 -4
  119. package/dist/chunks/{chunk-K3LS5SK7.js → chunk-SDHG6CKU.js} +1 -1
  120. package/dist/chunks/{chunk-XKZ4PFMQ.js → chunk-SO4GMSNP.js} +1 -1
  121. package/dist/chunks/{chunk-O6ZYDHEJ.js → chunk-SSHE6B7Z.js} +1 -1
  122. package/dist/chunks/{chunk-SH7POUVX.js → chunk-SV7ZBEK2.js} +6 -6
  123. package/dist/chunks/{chunk-SODAOLAP.js → chunk-TB5P3FWM.js} +1 -1
  124. package/dist/chunks/{chunk-BJXPQIVD.js → chunk-U7D6Q744.js} +1 -1
  125. package/dist/chunks/chunk-U7X5ZLAL.js +2 -0
  126. package/dist/chunks/{chunk-N54CPLVD.js → chunk-UANH7U3Y.js} +1 -1
  127. package/dist/chunks/{chunk-BUZ7CBJC.js → chunk-UGFSAG4U.js} +1 -1
  128. package/dist/chunks/chunk-ULTV6INR.js +2 -0
  129. package/dist/chunks/{chunk-V3ILZQER.js → chunk-UMAVVMXL.js} +7 -7
  130. package/dist/chunks/chunk-V24VHT76.js +2 -0
  131. package/dist/chunks/chunk-VEBW7NKD.js +2 -0
  132. package/dist/chunks/chunk-VJR2GNRY.js +2 -0
  133. package/dist/chunks/{chunk-JD76ANPN.js → chunk-VJYOKU3C.js} +1 -1
  134. package/dist/chunks/{chunk-H2XG5N7D.js → chunk-VWWKWYSQ.js} +1 -1
  135. package/dist/chunks/chunk-WCNPGKST.js +2 -0
  136. package/dist/chunks/chunk-WD4KAKEX.js +2 -0
  137. package/dist/chunks/chunk-WGQ3FMRF.js +2 -0
  138. package/dist/chunks/{chunk-6C3CXME7.js → chunk-WNXUSELC.js} +1 -1
  139. package/dist/chunks/{chunk-RS526BG7.js → chunk-WZ35ICTE.js} +3 -3
  140. package/dist/chunks/chunk-XHACK2KR.js +2 -0
  141. package/dist/chunks/chunk-XOPHFUUY.js +2 -0
  142. package/dist/chunks/{chunk-ZVMQLIRA.js → chunk-XT4CSKHM.js} +1 -1
  143. package/dist/chunks/{chunk-KQD36SBJ.js → chunk-XY7HFXLH.js} +1 -1
  144. package/dist/chunks/{chunk-UXO33ST5.js → chunk-XYZV3FKD.js} +1 -1
  145. package/dist/chunks/{chunk-GC6RJBRZ.js → chunk-Y2WNZWT2.js} +1 -1
  146. package/dist/chunks/chunk-Y4I6CFZJ.js +2 -0
  147. package/dist/chunks/chunk-YDZBX4XQ.js +2 -0
  148. package/dist/chunks/chunk-YI6ME6PU.js +22 -0
  149. package/dist/chunks/{chunk-H42UW6IF.js → chunk-YXMYK5P7.js} +1 -1
  150. package/dist/chunks/{chunk-QFL2VQKX.js → chunk-Z33RVGP6.js} +1 -1
  151. package/dist/chunks/chunk-Z5CQXPIS.js +6 -0
  152. package/dist/chunks/{chunk-OY4B7Y3T.js → chunk-ZDEIVUUI.js} +1 -1
  153. package/dist/chunks/{chunk-XGJG2ZKE.js → chunk-ZIQJDTQB.js} +1 -1
  154. package/dist/chunks/{chunk-IR2Y2VQY.js → chunk-ZYLLPRPU.js} +1 -1
  155. package/dist/chunks/cli-R7TAP6Z2.js +2 -0
  156. package/dist/chunks/{command-NWOZXU57.js → command-LNOVZQSK.js} +3 -3
  157. package/dist/chunks/{configuration-command-ZEIBQKB3.js → configuration-command-C3QBDFND.js} +1 -1
  158. package/dist/chunks/connected-app-executor-LAEAQUJS.js +2 -0
  159. package/dist/chunks/connected-evidence-VKY6O2JW.js +2 -0
  160. package/dist/chunks/{connected-starting-assets-66Y46ZPM.js → connected-starting-assets-5LAJ7CZY.js} +1 -1
  161. package/dist/chunks/{connection-GDWPMHPC.js → connection-VMBXW5PD.js} +1 -1
  162. package/dist/chunks/{continual-TNPTWTKK.js → continual-FVOLGGOE.js} +1 -1
  163. package/dist/chunks/core-commands-5TNBVR72.js +2 -0
  164. package/dist/chunks/dataset-preparation-authoring-UUYFWWCT.js +4 -0
  165. package/dist/chunks/datasets-BIDZJYDC.js +2 -0
  166. package/dist/chunks/desktop-test-BY2MS3UL.js +3 -0
  167. package/dist/chunks/dist-2MKJC6HN.js +2 -0
  168. package/dist/chunks/{dist-GR56E3QK.js → dist-DKE7RJZN.js} +1 -1
  169. package/dist/chunks/evaluation-coordination-FXB4DXZA.js +2 -0
  170. package/dist/chunks/experiment-improvements-JPDLKZXD.js +2 -0
  171. package/dist/chunks/experiments-IEN7RXLX.js +2 -0
  172. package/dist/chunks/experiments-signal-L32D36NH.js +2 -0
  173. package/dist/chunks/{extension-UH34ZF7N.js → extension-3EKIT6BB.js} +1 -1
  174. package/dist/chunks/{help-O53DTZGN.js → help-PLQJOP4P.js} +1 -1
  175. package/dist/chunks/host-profile-evaluation-tools-UF4ATIUF.js +2 -0
  176. package/dist/chunks/host-profile-external-dataset-KSEPXY2S.js +2 -0
  177. package/dist/chunks/hosted-app-server-composition-GZES7QXJ.js +2 -0
  178. package/dist/chunks/hosted-experiment-improvement-VG2WE7XZ.js +3 -0
  179. package/dist/chunks/hosted-harness-runtime-MMTLCL23.js +2 -0
  180. package/dist/chunks/hosted-profile-candidate-PTGQLPZO.js +3 -0
  181. package/dist/chunks/hosted-profile-compiler-FS5R6CHJ.js +2 -0
  182. package/dist/chunks/hosted-profile-evaluation-control-UUEZEMXU.js +2 -0
  183. package/dist/chunks/hosted-profile-evaluation-inspection-4F7OEF4T.js +3 -0
  184. package/dist/chunks/hosted-profile-evaluation-preparation-LIJJZDHQ.js +3 -0
  185. package/dist/chunks/hosted-tasksets-V24IBVJX.js +2 -0
  186. package/dist/chunks/human-review-6V6EMNVN.js +2 -0
  187. package/dist/chunks/{import-OBAKUJPM.js → import-SI24Z7EF.js} +2 -2
  188. package/dist/chunks/{learning-CRR6NRPN.js → learning-LAXMGWSQ.js} +1 -1
  189. package/dist/chunks/learning-Y3UKNUGE.js +2 -0
  190. package/dist/chunks/local-harness-improvement-runtime-3YJQRYXC.js +2 -0
  191. package/dist/chunks/local-harness-taskset-review-XQHQ6JCR.js +2 -0
  192. package/dist/chunks/{model-projects-HP4DELCP.js → model-projects-6YWVD2TS.js} +1 -1
  193. package/dist/chunks/opchat-SV67HVMX.js +3 -0
  194. package/dist/chunks/opchat-bounded-chat-KLMIYSZZ.js +2 -0
  195. package/dist/chunks/organizations-OZZFX7RG.js +2 -0
  196. package/dist/chunks/{profile-3WZJ65CT.js → profile-TD5U3INY.js} +1 -1
  197. package/dist/chunks/project-action-payload-TK6G4VMC.js +2 -0
  198. package/dist/chunks/project-agent-FFXPNXCO.js +2 -0
  199. package/dist/chunks/published-experiment-source-SDXUVPE7.js +2 -0
  200. package/dist/chunks/refiner-profile-service-56VYLZQJ.js +2 -0
  201. package/dist/chunks/{runtime-XP4DEGR3.js → runtime-Q7JUJO4D.js} +2 -2
  202. package/dist/chunks/sandbox-command-4BCUDAED.js +2 -0
  203. package/dist/chunks/{sandbox-template-YFMHEMUQ.js → sandbox-template-GOY7QQUY.js} +1 -1
  204. package/dist/chunks/saved-work-M6PUHKCC.js +2 -0
  205. package/dist/chunks/{send-turn-D3GTSSHI.js → send-turn-YLY3YNEQ.js} +1 -1
  206. package/dist/chunks/setup-RMZ2BHLM.js +2 -0
  207. package/dist/chunks/{src-GQPWOPYA.js → src-C3ZUESMK.js} +1 -1
  208. package/dist/chunks/src-MT4B43TD.js +424 -0
  209. package/dist/chunks/standalone-experiment-turn-owner-TW5MTWIO.js +2 -0
  210. package/dist/chunks/store-chat-resources-IRHBW2EC.js +2 -0
  211. package/dist/chunks/{store-continual-support-reviews-VVRQO2JK.js → store-continual-support-reviews-3KK42L4I.js} +1 -1
  212. package/dist/chunks/store-conversation-serving-IVURK52V.js +2 -0
  213. package/dist/chunks/{store-create-improve-2XI36AET.js → store-create-improve-UTCLBXF2.js} +1 -1
  214. package/dist/chunks/{store-datasets-UFY422NG.js → store-datasets-4AQOVAQY.js} +1 -1
  215. package/dist/chunks/store-evaluation-results-PK2P3IMH.js +7 -0
  216. package/dist/chunks/{store-harness-workspaces-SGUEYDO2.js → store-harness-workspaces-YEXB4IRV.js} +1 -1
  217. package/dist/chunks/store-human-review-O4BVHP25.js +7 -0
  218. package/dist/chunks/store-learned-preference-migration-validation-44SVX6YB.js +2 -0
  219. package/dist/chunks/{store-learning-BFOT4QVT.js → store-learning-SIUQIY5C.js} +1 -1
  220. package/dist/chunks/{store-learning-credentials-DYTMWQTC.js → store-learning-credentials-BUHR7SN6.js} +1 -1
  221. package/dist/chunks/store-local-experiments-BHVTKPPE.js +97 -0
  222. package/dist/chunks/store-model-batch-review-RVAYUVK2.js +2 -0
  223. package/dist/chunks/{store-model-configuration-NJFWSYSA.js → store-model-configuration-6L3OYXF4.js} +1 -1
  224. package/dist/chunks/store-model-project-preparation-AAEKCF6V.js +2 -0
  225. package/dist/chunks/store-modification-recordings-LCPK6K2T.js +9 -0
  226. package/dist/chunks/{store-preference-comparison-MZAYONCK.js → store-preference-comparison-5YVIQNVB.js} +1 -1
  227. package/dist/chunks/{store-sidebar-file-bookmarks-J3JEVAYR.js → store-sidebar-file-bookmarks-WLMYDA4E.js} +1 -1
  228. package/dist/chunks/{store-sidebar-preferences-2JHTFXJK.js → store-sidebar-preferences-AFMYIDWT.js} +1 -1
  229. package/dist/chunks/{store-subagents-PUBQVWSU.js → store-subagents-KFPVSTRO.js} +1 -1
  230. package/dist/chunks/{store-task-inbox-3BREANOX.js → store-task-inbox-L6IQTY26.js} +1 -1
  231. package/dist/chunks/{store-task-inventory-5HRZCDUT.js → store-task-inventory-QWS2C656.js} +1 -1
  232. package/dist/chunks/store-taskset-drafts-FRFL6ITK.js +9 -0
  233. package/dist/chunks/{store-training-S3FXWLT6.js → store-training-FYXZU2FE.js} +1 -1
  234. package/dist/chunks/{store-training-jobs-2LCXPA7G.js → store-training-jobs-3N3VKPIY.js} +1 -1
  235. package/dist/chunks/{store-training-models-7AMKS7ZW.js → store-training-models-VOFVGPZR.js} +1 -1
  236. package/dist/chunks/{taskset-PLKWRT4X.js → taskset-UDDLFYKV.js} +1 -1
  237. package/dist/chunks/taskset-catalog-RZYEBCRQ.js +2 -0
  238. package/dist/chunks/taskset-packages-T6B6HYKZ.js +2 -0
  239. package/dist/chunks/taskset-packages-WMG5DUBN.js +2 -0
  240. package/dist/chunks/{teams-bot-VQXUA7U4.js → teams-bot-YCUTDDDC.js} +1 -1
  241. package/dist/chunks/tool-learning-ZQ6NSJ5K.js +2 -0
  242. package/dist/chunks/training-5NT2YB2L.js +2 -0
  243. package/dist/chunks/training-5UMT45UL.js +2 -0
  244. package/dist/chunks/training-UY6KRG4M.js +2 -0
  245. package/dist/chunks/{training-error-LQKCOQDJ.js → training-error-WF463UNZ.js} +1 -1
  246. package/dist/chunks/{training-hardware-ESXRWUIK.js → training-hardware-UWQCRDMV.js} +1 -1
  247. package/dist/chunks/training-hosted-CKSDRVL6.js +2 -0
  248. package/dist/chunks/training-hosted-alphaedit-HSMRDJTD.js +2 -0
  249. package/dist/chunks/training-hosted-decision-7JALOU6O.js +2 -0
  250. package/dist/chunks/training-hosted-engram-SXO75MFG.js +2 -0
  251. package/dist/chunks/{training-hosted-learning-WQ2IP5FP.js → training-hosted-learning-E2N32YU5.js} +1 -1
  252. package/dist/chunks/training-hosted-modification-comparison-TXFDJFTG.js +2 -0
  253. package/dist/chunks/training-hosted-neuron-training-J42WK4EH.js +2 -0
  254. package/dist/chunks/training-hosted-serving-report-BAEABGJH.js +2 -0
  255. package/dist/chunks/training-hosted-steering-T556BUBG.js +2 -0
  256. package/dist/chunks/training-model-start-P3PXDWNT.js +2 -0
  257. package/dist/chunks/web-search-ZEKJHZW4.js +2 -0
  258. package/dist/chunks/{workspaces-MCS2AQX6.js → workspaces-EK62ANTB.js} +1 -1
  259. package/dist/cli.js +1 -1
  260. package/dist/index.js +1 -1
  261. package/dist/sandbox/runtime-handle.d.ts +3 -5
  262. package/dist/sandbox/sandbox-instance-client.d.ts +11 -5
  263. package/dist/sandbox/types/billing.d.ts +140 -6
  264. package/dist/sandbox/types/io.d.ts +3 -0
  265. package/dist/sandbox/types/responses.d.ts +11 -1
  266. package/dist/sandbox/types/snapshots.d.ts +52 -3
  267. package/dist/sandbox-template/manifest.js +1 -1
  268. package/dist/skills/manifest.json +3 -3
  269. package/dist/skills/openpond-cli/references/experiments-and-training.md +461 -1
  270. package/dist/web/assets/App-CCuh99JW.js +54 -0
  271. package/dist/web/assets/{AppDialog-BvskhHE9.js → AppDialog-CxjDHVk9.js} +1 -1
  272. package/dist/web/assets/AppTerminalPanel-CKJIVpKa.js +2 -0
  273. package/dist/web/assets/{AppToastContext-D2788RqX.js → AppToastContext-EpiT1dHs.js} +1 -1
  274. package/dist/web/assets/AppsView-BsMyPX_3.js +1 -0
  275. package/dist/web/assets/{AttachmentTypeIcon-DVluUHuc.js → AttachmentTypeIcon-BXvZy5gB.js} +1 -1
  276. package/dist/web/assets/BrowserSidebar-BIIV4aq4.js +1 -0
  277. package/dist/web/assets/{CartesianChart-DdBZ69lI.js → CartesianChart-brqLBqnF.js} +1 -1
  278. package/dist/web/assets/ChatTimelineEntry-CwZbn16X.js +8 -0
  279. package/dist/web/assets/{CollaborationTabs-ba6WupeJ.js → CollaborationTabs-BU4uc4tZ.js} +1 -1
  280. package/dist/web/assets/{CommandMenu-D7wTaEgl.js → CommandMenu-DkWpXR55.js} +1 -1
  281. package/dist/web/assets/CommunityView-CsSxJZGn.js +1 -0
  282. package/dist/web/assets/{ComposerAttachments-aO90qXYz.js → ComposerAttachments-BdJGCYzI.js} +1 -1
  283. package/dist/web/assets/{ComposerCreateImproveStrip-BPUJBSyS.js → ComposerCreateImproveStrip-CWy0j1vv.js} +1 -1
  284. package/dist/web/assets/{ConversationImportsSettings-Bo836wKJ.js → ConversationImportsSettings-DCmiakbZ.js} +1 -1
  285. package/dist/web/assets/DatasetReviewImport-DEnF_pGu.js +1 -0
  286. package/dist/web/assets/ExperimentTrainingDataWorkspace-WhwQ0QBi.js +2 -0
  287. package/dist/web/assets/{FilePagePreview-C6wIp6uX.js → FilePagePreview-BRhhz99q.js} +2 -2
  288. package/dist/web/assets/{GetStartedView-CxMv8q-h.js → GetStartedView-CLVD-qEi.js} +1 -1
  289. package/dist/web/assets/{GettingStartedDialog-CEb0cS-o.js → GettingStartedDialog-CMxaAMg-.js} +1 -1
  290. package/dist/web/assets/HostedModelLearningReview-Cn-j-rDo.js +1 -0
  291. package/dist/web/assets/HostedModelLearningSettings-VNBvf38S.js +1 -0
  292. package/dist/web/assets/{HtmlVisual-CCuUkYT8.js → HtmlVisual-D5y2WG9L.js} +10 -10
  293. package/dist/web/assets/LabModelVersionDetailPage-BxRmYD6h.js +1 -0
  294. package/dist/web/assets/{TrainingRunLineage-PXzWR65d.css → LabModelWorkspace-DOrgCk9Z.css} +1 -1
  295. package/dist/web/assets/LabModelWorkspace-u2Ulm_z4.js +1 -0
  296. package/dist/web/assets/{LabSkillSidebar-CFROlATQ.js → LabSkillSidebar-C7IceJTJ.js} +1 -1
  297. package/dist/web/assets/LabsRoute-C9Y0GU34.css +1 -0
  298. package/dist/web/assets/LabsRoute-CbztQaEf.js +74 -0
  299. package/dist/web/assets/LearningBatchesPage-B1NZTBSv.css +1 -0
  300. package/dist/web/assets/LearningBatchesPage-CJqgZNvM.js +26 -0
  301. package/dist/web/assets/MainChatThread-DNMfrrRq.js +2 -0
  302. package/dist/web/assets/{MainPane-BOWkynGB.css → MainPane-BZlNLfTM.css} +1 -1
  303. package/dist/web/assets/MainPane-CQQxSDPS.js +13 -0
  304. package/dist/web/assets/ModelProjectPageHeader-Dge19aE1.js +1 -0
  305. package/dist/web/assets/NativeSetupTerminal-D4JnbpyD.js +2 -0
  306. package/dist/web/assets/{NativeSkillSidebar-MAJWS4mL.js → NativeSkillSidebar-Jzx1BeKV.js} +1 -1
  307. package/dist/web/assets/{NewProjectDialog-MQiUBVx3.js → NewProjectDialog-DcnGzEd9.js} +1 -1
  308. package/dist/web/assets/{OutputsPage-DpF-aRTu.js → OutputsPage-Cmk15Vt_.js} +1 -1
  309. package/dist/web/assets/{PageChrome-8gH2hyDb.js → PageChrome-Cz_fCqtn.js} +1 -1
  310. package/dist/web/assets/{ProjectsPage-BQ98oGyu.js → ProjectsPage-BZ3Eo3Mz.js} +1 -1
  311. package/dist/web/assets/RightChatPanelStack-C6H2vU9N.js +1 -0
  312. package/dist/web/assets/RightSidebarHomePanel-BfMMVkM1.js +1 -0
  313. package/dist/web/assets/{ScheduledWorkPage-CGCqZz_H.js → ScheduledWorkPage-CAkSwM0T.js} +1 -1
  314. package/dist/web/assets/{SettingsView-CqpMFLxy.js → SettingsView-DvQXGw3_.js} +3 -3
  315. package/dist/web/assets/{TasksetDraftEditorPrimitives-DJvIvzBb.js → TasksetDraftEditorPrimitives-JuU1k8vr.js} +1 -1
  316. package/dist/web/assets/TeamChatView-DmHjr8W9.js +1 -0
  317. package/dist/web/assets/{TerminalOverlay-D--M876l.js → TerminalOverlay-DlaM9d8F.js} +1 -1
  318. package/dist/web/assets/{TrainingCreationPanel-DDUoHQHU.js → TrainingCreationPanel-ClpylNsr.js} +1 -1
  319. package/dist/web/assets/{TrainingDraftPanel-CwLXn3Z7.js → TrainingDraftPanel-6tH2xSDj.js} +1 -1
  320. package/dist/web/assets/{UsageSettingsSection-CGwPregx.js → UsageSettingsSection-CzDqxOYM.js} +2 -2
  321. package/dist/web/assets/WorkSidebarPanel-CY-AHZ4-.js +1 -0
  322. package/dist/web/assets/WorkspaceDiffPanel-B4e0lyF7.js +11 -0
  323. package/dist/web/assets/WorkspaceEnvironmentMenu-D01ZkZZF.js +35 -0
  324. package/dist/web/assets/{WorkspaceFileLocation-D-ctFM4d.js → WorkspaceFileLocation-C5s_njZb.js} +1 -1
  325. package/dist/web/assets/{WorkspaceGitDialogs-CQ28j3R7.js → WorkspaceGitDialogs-DjPZ6KIh.js} +1 -1
  326. package/dist/web/assets/{WorkspaceMonacoEditor-BrZs6-EW.js → WorkspaceMonacoEditor-CC4sfOiU.js} +3 -3
  327. package/dist/web/assets/{WorkspacePdfPreview-CU6PSjjN.js → WorkspacePdfPreview-vszQqFa4.js} +2 -2
  328. package/dist/web/assets/{WorkspacePresentationPreview-IjXVXpIy.js → WorkspacePresentationPreview-DQTvhaRD.js} +1 -1
  329. package/dist/web/assets/api-client-DJRVOFzS.js +1 -0
  330. package/dist/web/assets/{app-models-CKXrDTEU.js → app-models-BUdzQbXo.js} +1 -1
  331. package/dist/web/assets/bot-Doyx3T4j.js +1 -0
  332. package/dist/web/assets/{browser-sidebar-links-D9v2cyJa.js → browser-sidebar-links-PVPCrsDJ.js} +1 -1
  333. package/dist/web/assets/chat-resources-Beh5lB36.js +1 -0
  334. package/dist/web/assets/chevron-down-DX1hzujj.js +1 -0
  335. package/dist/web/assets/chevron-right-DHN0y3KC.js +1 -0
  336. package/dist/web/assets/chevron-up-_QrW88NF.js +1 -0
  337. package/dist/web/assets/{chunk-TLSP5JKG-BrrVo5rJ.js → chunk-3BYFS4RO-ztZjcMmt.js} +1 -1
  338. package/dist/web/assets/chunk-AG6UJ3DI-D9KZjTYP.js +1 -0
  339. package/dist/web/assets/chunk-C3TS766N-ppRhs95p.js +1 -0
  340. package/dist/web/assets/chunk-GCUWJUUM-Dy6oUNJ6.js +9 -0
  341. package/dist/web/assets/chunk-GS5HEE4M-C0RLeIsy.js +1 -0
  342. package/dist/web/assets/{chunk-H3JZ3P5T-CzpTARDY.js → chunk-H3JZ3P5T-DolwEJXo.js} +2 -2
  343. package/dist/web/assets/chunk-Q4RGCEOI-Cr-dg4Nk.js +1 -0
  344. package/dist/web/assets/client-DwZ92xtu.js +1 -0
  345. package/dist/web/assets/{client-choice-storage-DUWsS4X0.js → client-choice-storage-DitqKiIT.js} +1 -1
  346. package/dist/web/assets/cloud-upload-HdzNTgr2.js +1 -0
  347. package/dist/web/assets/common-BWVSBnpX.js +1 -0
  348. package/dist/web/assets/copy-DTQhoBNg.js +1 -0
  349. package/dist/web/assets/create-pipeline-DsZzNkt9.js +1 -0
  350. package/dist/web/assets/{cssMode-SclUkqPt.js → cssMode-BRTtfXxU.js} +1 -1
  351. package/dist/web/assets/dataset-workspaces-BTPi71mz.js +1 -0
  352. package/dist/web/assets/external-link-H1629UU6.js +1 -0
  353. package/dist/web/assets/folder-open-CAGdWOrr.js +1 -0
  354. package/dist/web/assets/folder-plus-C14cs2mE.js +1 -0
  355. package/dist/web/assets/git-commit-horizontal-DFUfuVvF.js +1 -0
  356. package/dist/web/assets/{htmlMode-X3mQtOeh.js → htmlMode-BVaCcL76.js} +1 -1
  357. package/dist/web/assets/icons-Bk2b68aC.js +1 -0
  358. package/dist/web/assets/image-0DPVY6Ev.js +1 -0
  359. package/dist/web/assets/{index-LXNhSUEL.js → index-B6XX_0h3.js} +2 -2
  360. package/dist/web/assets/info-C8b_tafZ.js +1 -0
  361. package/dist/web/assets/{intake-contracts-wCkD2ErR.js → intake-contracts-B8JZKYwb.js} +1 -1
  362. package/dist/web/assets/{jsonMode-BoKiIdHd.js → jsonMode-BCKKQmmV.js} +1 -1
  363. package/dist/web/assets/loader-circle-y-SSPwpk.js +1 -0
  364. package/dist/web/assets/{lspLanguageFeatures-CO2mzpy1.js → lspLanguageFeatures-DozmNUOx.js} +1 -1
  365. package/dist/web/assets/maximize-2-CByk9-zN.js +1 -0
  366. package/dist/web/assets/message-square-C889vRqm.js +1 -0
  367. package/dist/web/assets/{monaco.contribution-wacA5FjV.js → monaco.contribution-B9q6qbbo.js} +2 -2
  368. package/dist/web/assets/{monaco.contribution-CVe3mWSY.js → monaco.contribution-BITdsRbn.js} +2 -2
  369. package/dist/web/assets/{monaco.contribution-hrusiaZi.js → monaco.contribution-BqA-XZ44.js} +2 -2
  370. package/dist/web/assets/{monaco.contribution-C7CAQIKF.js → monaco.contribution-DxAV1oS5.js} +2 -2
  371. package/dist/web/assets/monitor-BtxlcLuI.js +1 -0
  372. package/dist/web/assets/paperclip-BeIdaspf.js +1 -0
  373. package/dist/web/assets/{pdf-Ct3M2mVw.js → pdf-perlzwEB.js} +1 -1
  374. package/dist/web/assets/play-CHXXdkuO.js +1 -0
  375. package/dist/web/assets/plus-DFFWjhPw.js +1 -0
  376. package/dist/web/assets/{ponder-desktop-D-zB6X4L.js → ponder-desktop-Ca-9KggQ.js} +1 -1
  377. package/dist/web/assets/presentation-0bzvu6_u.js +1 -0
  378. package/dist/web/assets/{profile-ref-CCxrOCio.js → profile-ref-D8lxL7dW.js} +1 -1
  379. package/dist/web/assets/{python-C0-pUUAU.js → python-B9hOnkOI.js} +1 -1
  380. package/dist/web/assets/refresh-cw-D61-Ozk3.js +1 -0
  381. package/dist/web/assets/{requests-DjSt-duM.js → requests-DmeUYik4.js} +1 -1
  382. package/dist/web/assets/reward-checks-DJJZYgf8.js +7 -0
  383. package/dist/web/assets/save-iEMNZoPe.js +1 -0
  384. package/dist/web/assets/schemas-Brv9Vmnk.js +64 -0
  385. package/dist/web/assets/settings-BC-bzgk6.js +21 -0
  386. package/dist/web/assets/settings-lists-C84qxFmP.js +5 -0
  387. package/dist/web/assets/square-BE_4JMR3.js +1 -0
  388. package/dist/web/assets/square-terminal-Djpzo2Qs.js +1 -0
  389. package/dist/web/assets/{submit-issue-command-Gk3RKrY-.js → submit-issue-command-HfKzyxg5.js} +1 -1
  390. package/dist/web/assets/{toggleHighContrast-BnYUBgZB.js → toggleHighContrast-ClsXu39R.js} +1 -1
  391. package/dist/web/assets/training-DWfghwfZ.js +1 -0
  392. package/dist/web/assets/{training-model-data-CxR3xpmK.js → training-model-data-CIysl8wH.js} +4 -4
  393. package/dist/web/assets/{tsMode-BVNyOY8h.js → tsMode-nbmaMc-D.js} +1 -1
  394. package/dist/web/assets/upload-C6ug8RD-.js +1 -0
  395. package/dist/web/assets/{useAccountSettings-4_XfwJQi.js → useAccountSettings-Dr9h4Qz_.js} +1 -1
  396. package/dist/web/assets/{useAgentInventory-CVuamyT3.js → useAgentInventory-ByCk2JAv.js} +1 -1
  397. package/dist/web/assets/useChatContextSelection-C0eMm2g6.js +1 -0
  398. package/dist/web/assets/{useLocalAgentSchedules-CmwN4ohy.js → useLocalAgentSchedules-Do0y_leJ.js} +1 -1
  399. package/dist/web/assets/useQuery-D2MQ7e5U.js +1 -0
  400. package/dist/web/assets/wifi-off-Dr-CapyW.js +1 -0
  401. package/dist/web/assets/work-outputs-D_8TovAK.js +1 -0
  402. package/dist/web/assets/{workers-CjtQ2aBD.js → workers-DKvM2NdM.js} +1 -1
  403. package/dist/web/assets/x-Jx2jlP9u.js +1 -0
  404. package/dist/web/assets/{yaml-N1KUjBZ8.js → yaml-C02vq4ar.js} +1 -1
  405. package/dist/web/index.html +1 -1
  406. package/docs/command-reference.md +104 -3
  407. package/package.json +1 -1
  408. package/dist/chunks/account-context-TIJOM22A.js +0 -12
  409. package/dist/chunks/actions-command-BYPLSGZL.js +0 -2
  410. package/dist/chunks/app-server-evaluations-5YZUFXQ2.js +0 -2
  411. package/dist/chunks/app-server-harness-services-N5F5QVZI.js +0 -2
  412. package/dist/chunks/app-server-runtime-HJ2N57DL.js +0 -2
  413. package/dist/chunks/apps-WJTW64NW.js +0 -2
  414. package/dist/chunks/chunk-263WS3TB.js +0 -2
  415. package/dist/chunks/chunk-27JGS3KB.js +0 -12
  416. package/dist/chunks/chunk-2UZHLO2V.js +0 -23
  417. package/dist/chunks/chunk-2W22IXHB.js +0 -2
  418. package/dist/chunks/chunk-46RMTR2Z.js +0 -2
  419. package/dist/chunks/chunk-4JJ4RYIB.js +0 -6
  420. package/dist/chunks/chunk-4NN5OLKW.js +0 -161
  421. package/dist/chunks/chunk-543QHE3D.js +0 -2
  422. package/dist/chunks/chunk-5QOFUGYQ.js +0 -2
  423. package/dist/chunks/chunk-5ZNE43XC.js +0 -10
  424. package/dist/chunks/chunk-6IS5OLI5.js +0 -2
  425. package/dist/chunks/chunk-7HAGSE7L.js +0 -2
  426. package/dist/chunks/chunk-AXYAEWWA.js +0 -2
  427. package/dist/chunks/chunk-B7XJBP4U.js +0 -2
  428. package/dist/chunks/chunk-BBIA24GD.js +0 -10
  429. package/dist/chunks/chunk-CJDGLPNX.js +0 -4
  430. package/dist/chunks/chunk-DAEUVT2I.js +0 -6
  431. package/dist/chunks/chunk-FCXDPVGJ.js +0 -3
  432. package/dist/chunks/chunk-FE2ENE3U.js +0 -2
  433. package/dist/chunks/chunk-H6EUFJJK.js +0 -2
  434. package/dist/chunks/chunk-IOSBGCRT.js +0 -2
  435. package/dist/chunks/chunk-IXZ5ZGIL.js +0 -12
  436. package/dist/chunks/chunk-K6DB5QWG.js +0 -2
  437. package/dist/chunks/chunk-LI56PPCN.js +0 -2
  438. package/dist/chunks/chunk-OE2OOWEQ.js +0 -2
  439. package/dist/chunks/chunk-OYIFH2OM.js +0 -2
  440. package/dist/chunks/chunk-QOUOU7FE.js +0 -22
  441. package/dist/chunks/chunk-R5GRESW3.js +0 -2
  442. package/dist/chunks/chunk-TERKCK4I.js +0 -2
  443. package/dist/chunks/chunk-TS5HNRZB.js +0 -2
  444. package/dist/chunks/chunk-V3KEG6MI.js +0 -2
  445. package/dist/chunks/chunk-WGISITX6.js +0 -4
  446. package/dist/chunks/chunk-XD4ZIQZ2.js +0 -2
  447. package/dist/chunks/chunk-XHU4BZQY.js +0 -13
  448. package/dist/chunks/chunk-ZWEY66RT.js +0 -2
  449. package/dist/chunks/cli-HV32F7HD.js +0 -2
  450. package/dist/chunks/connected-app-executor-DFHWNMRM.js +0 -2
  451. package/dist/chunks/connected-evidence-WOM6N5HO.js +0 -2
  452. package/dist/chunks/core-commands-GWRHH53F.js +0 -2
  453. package/dist/chunks/dataset-preparation-authoring-WJ2XEUO7.js +0 -4
  454. package/dist/chunks/datasets-XIMF54QN.js +0 -2
  455. package/dist/chunks/desktop-test-HF42V2EP.js +0 -3
  456. package/dist/chunks/dist-T6ES2TSM.js +0 -2
  457. package/dist/chunks/evaluation-coordination-WZT6FDMS.js +0 -2
  458. package/dist/chunks/experiment-improvements-H35VS6XZ.js +0 -2
  459. package/dist/chunks/experiments-F54C32EE.js +0 -2
  460. package/dist/chunks/experiments-signal-ONIGTGYR.js +0 -2
  461. package/dist/chunks/host-profile-evaluation-tools-LMCJ3MDJ.js +0 -2
  462. package/dist/chunks/host-profile-external-dataset-4HOXANWK.js +0 -2
  463. package/dist/chunks/hosted-app-server-composition-Y64A2A2B.js +0 -2
  464. package/dist/chunks/hosted-experiment-improvement-B2V2WIUI.js +0 -3
  465. package/dist/chunks/hosted-harness-runtime-C7I4KSDK.js +0 -2
  466. package/dist/chunks/hosted-profile-candidate-CXPVEEYQ.js +0 -3
  467. package/dist/chunks/hosted-profile-compiler-FGCI2VRW.js +0 -2
  468. package/dist/chunks/hosted-profile-evaluation-control-INNUYMBD.js +0 -2
  469. package/dist/chunks/hosted-profile-evaluation-inspection-UPTBRYMS.js +0 -3
  470. package/dist/chunks/hosted-profile-evaluation-preparation-TIQSVKLQ.js +0 -3
  471. package/dist/chunks/hosted-tasksets-7VMYOTIO.js +0 -2
  472. package/dist/chunks/human-review-7XC77NQP.js +0 -2
  473. package/dist/chunks/learning-3XDGIYUL.js +0 -2
  474. package/dist/chunks/local-harness-improvement-runtime-UIKQSAMM.js +0 -2
  475. package/dist/chunks/local-harness-taskset-review-6KJN3EQL.js +0 -2
  476. package/dist/chunks/opchat-NWYWWIA7.js +0 -3
  477. package/dist/chunks/opchat-bounded-chat-ICURZM6R.js +0 -2
  478. package/dist/chunks/organizations-7DBQGCCV.js +0 -2
  479. package/dist/chunks/project-action-payload-7DRABTHY.js +0 -2
  480. package/dist/chunks/project-agent-AXJOWXRU.js +0 -2
  481. package/dist/chunks/published-experiment-source-YBBPLNF2.js +0 -2
  482. package/dist/chunks/refiner-profile-service-ATEFPF5O.js +0 -2
  483. package/dist/chunks/sandbox-command-CF2PJCFX.js +0 -2
  484. package/dist/chunks/saved-work-3OAVRBH3.js +0 -2
  485. package/dist/chunks/setup-RHIMFI2Y.js +0 -2
  486. package/dist/chunks/src-V236S6MV.js +0 -424
  487. package/dist/chunks/standalone-experiment-turn-owner-CDRMGLWW.js +0 -2
  488. package/dist/chunks/store-chat-resources-P4EKCLSY.js +0 -2
  489. package/dist/chunks/store-conversation-serving-YFEZYQD3.js +0 -2
  490. package/dist/chunks/store-evaluation-results-VBH4R2U7.js +0 -7
  491. package/dist/chunks/store-human-review-RFCVZ3HP.js +0 -7
  492. package/dist/chunks/store-learned-preference-migration-validation-FNBGGZU6.js +0 -2
  493. package/dist/chunks/store-local-experiments-XPXGYXNM.js +0 -97
  494. package/dist/chunks/store-model-batch-review-J2L5JQV2.js +0 -2
  495. package/dist/chunks/store-model-project-preparation-OCLIFKI2.js +0 -2
  496. package/dist/chunks/store-taskset-drafts-BNKUVHPA.js +0 -9
  497. package/dist/chunks/taskset-packages-SXBLYHSP.js +0 -2
  498. package/dist/chunks/taskset-packages-V5T4V7YN.js +0 -2
  499. package/dist/chunks/tool-learning-47XQKELE.js +0 -2
  500. package/dist/chunks/training-7VQNCOGH.js +0 -2
  501. package/dist/chunks/training-VKLPNCMC.js +0 -2
  502. package/dist/chunks/training-hosted-NNE6BP6S.js +0 -2
  503. package/dist/chunks/training-hosted-serving-report-VZ4SMLMG.js +0 -2
  504. package/dist/chunks/training-model-start-G7YDZ7ZG.js +0 -2
  505. package/dist/chunks/web-search-56QRZGPR.js +0 -2
  506. package/dist/web/assets/App-DmEA-Lia.js +0 -53
  507. package/dist/web/assets/AppTerminalPanel-ScQKJV4z.js +0 -2
  508. package/dist/web/assets/AppsView-B1uNg9IQ.js +0 -1
  509. package/dist/web/assets/BrowserSidebar-DfVQoJHn.js +0 -1
  510. package/dist/web/assets/ChatTimelineEntry-Bbc6HRks.js +0 -8
  511. package/dist/web/assets/CommunityView-mO58f2B0.js +0 -1
  512. package/dist/web/assets/HostedModelLearningReview-BQIS7hkd.js +0 -1
  513. package/dist/web/assets/HostedModelLearningSettings-BQ-YeFMT.js +0 -1
  514. package/dist/web/assets/LabModelVersionDetailPage-BkHeVbAx.js +0 -1
  515. package/dist/web/assets/LabsRoute-CE45yAXJ.css +0 -1
  516. package/dist/web/assets/LabsRoute-YA9YckKj.js +0 -101
  517. package/dist/web/assets/MainChatThread-DpyPgGKW.js +0 -2
  518. package/dist/web/assets/MainPane-WOeodByM.js +0 -10
  519. package/dist/web/assets/NativeSetupTerminal-fmG2c65K.js +0 -2
  520. package/dist/web/assets/RightChatPanelStack-Bs7A4dLs.js +0 -1
  521. package/dist/web/assets/RightSidebarHomePanel-C-D4kba2.js +0 -1
  522. package/dist/web/assets/TeamChatView-DjmIaLO1.js +0 -1
  523. package/dist/web/assets/TrainingRunLineage-CtYe1KGX.js +0 -1
  524. package/dist/web/assets/WorkSidebarPanel-C6wWuo7U.js +0 -1
  525. package/dist/web/assets/WorkspaceDiffPanel-JDOUmrC-.js +0 -11
  526. package/dist/web/assets/WorkspaceEnvironmentMenu-sfL5LZeB.js +0 -35
  527. package/dist/web/assets/api-client-Dgz-fOMl.js +0 -1
  528. package/dist/web/assets/bot-Cd761lRF.js +0 -1
  529. package/dist/web/assets/chat-resources-BUDXdoG0.js +0 -1
  530. package/dist/web/assets/chevron-down-DEbd6Ek-.js +0 -1
  531. package/dist/web/assets/chevron-right-DLYNg_Oq.js +0 -1
  532. package/dist/web/assets/chevron-up-DFJJccDl.js +0 -1
  533. package/dist/web/assets/chunk-GHPCQXG5-DKDBSd8H.js +0 -9
  534. package/dist/web/assets/chunk-GJRXJL6G-luaxRTYI.js +0 -1
  535. package/dist/web/assets/chunk-JDQVAG3R-C0-rh1aR.js +0 -1
  536. package/dist/web/assets/chunk-XMVSQIK4-BBU7r_NH.js +0 -1
  537. package/dist/web/assets/client-BNjO4Xi8.js +0 -1
  538. package/dist/web/assets/cloud-upload-CoM1FGeB.js +0 -1
  539. package/dist/web/assets/common-CFsO2ppZ.js +0 -1
  540. package/dist/web/assets/copy-BGOhV6Pk.js +0 -1
  541. package/dist/web/assets/create-pipeline-DRR0Qeec.js +0 -1
  542. package/dist/web/assets/createLucideIcon-Bv-_eGcE.js +0 -1
  543. package/dist/web/assets/external-link-CVXsNeO3.js +0 -1
  544. package/dist/web/assets/folder-open-MnOmh19D.js +0 -1
  545. package/dist/web/assets/folder-plus-BRddLBtO.js +0 -1
  546. package/dist/web/assets/git-commit-horizontal-Bm4rkXug.js +0 -1
  547. package/dist/web/assets/icons-CZxmQtZs.js +0 -1
  548. package/dist/web/assets/image-BViGUAiq.js +0 -1
  549. package/dist/web/assets/info-DYPIbKKD.js +0 -1
  550. package/dist/web/assets/loader-circle-JFgFNsP5.js +0 -1
  551. package/dist/web/assets/maximize-2-DXZCQO0b.js +0 -1
  552. package/dist/web/assets/message-square-cOCAL8J1.js +0 -1
  553. package/dist/web/assets/models-route-CWcJuOd0.js +0 -1
  554. package/dist/web/assets/monitor-B35XSAvn.js +0 -1
  555. package/dist/web/assets/paperclip-CKgDxioG.js +0 -1
  556. package/dist/web/assets/play-DzqLr7fM.js +0 -1
  557. package/dist/web/assets/plus-Ddp1vXnw.js +0 -1
  558. package/dist/web/assets/presentation-B0S9v7ib.js +0 -1
  559. package/dist/web/assets/refresh-cw-D45mW-vs.js +0 -1
  560. package/dist/web/assets/reward-checks-D139zwha.js +0 -7
  561. package/dist/web/assets/save-Gu4R_82E.js +0 -1
  562. package/dist/web/assets/schemas-C9IwV7NS.js +0 -64
  563. package/dist/web/assets/settings-DdonLCIN.js +0 -21
  564. package/dist/web/assets/settings-lists-CFHFtO0D.js +0 -5
  565. package/dist/web/assets/square-Dqduqyyu.js +0 -1
  566. package/dist/web/assets/square-terminal-DS3zwi6X.js +0 -1
  567. package/dist/web/assets/training-QBuGBGJd.js +0 -2
  568. package/dist/web/assets/upload-ABSJxuUM.js +0 -1
  569. package/dist/web/assets/useQuery-CCjwL8VI.js +0 -1
  570. package/dist/web/assets/wifi-off-DGJH7Pke.js +0 -1
  571. package/dist/web/assets/work-outputs-CnbRtTLg.js +0 -1
  572. package/dist/web/assets/x-B-_zJVOZ.js +0 -1
  573. /package/dist/chunks/{chunk-SFR32TMJ.js → chunk-JXLDEYRW.js} +0 -0
@@ -1,3 +1,3 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as b}from"./chunk-HORMGT2Q.js";import{a as h}from"./chunk-IOSBGCRT.js";import"./chunk-V3KEG6MI.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as s,f as w,h as d}from"./chunk-3M53YXEI.js";import"./chunk-4N4EH3RJ.js";import"./chunk-ULJZ7NUF.js";import"./chunk-WJSJXK2N.js";import"./chunk-TBODQT4W.js";import{f as g}from"./chunk-RRWL5BHZ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-GLUWATL5.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SH7POUVX.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-UGOK7VTC.js";import{a as i}from"./chunk-FTQLQJQV.js";import{once as A}from"node:events";import{setTimeout as O}from"node:timers/promises";async function T(r,p){if(p.length!==1)throw new Error("hosted-hardware does not accept an identifier; use --worker-id or --job-id.");let c=w(r.watch);if(c&&!w(r.json))throw new Error("hosted-hardware --watch requires --json for bounded NDJSON output.");let l=r.intervalMs===void 0?1e3:d(r.intervalMs,"interval-ms")??1e3,f=r.timeoutMs===void 0?15e3:d(r.timeoutMs,"timeout-ms")??15e3;if(l<100||l>6e4||f<1e3||f>6e4)throw new Error("Hardware interval must be 100..60000 ms and timeout 1000..60000 ms.");let{baseUrl:E,teamId:I,headers:S}=await h(r),e=new AbortController,a=i(()=>e.abort(),"abort"),u=i(o=>{o.code==="EPIPE"?a():(a(),process.exitCode=1)},"brokenPipe");process.once("SIGTERM",a),process.once("SIGINT",a),process.stdout.on("error",u);let v=g({baseUrl:E,headers:S,fetch:i((o,t)=>fetch(o,{...t,redirect:"error",signal:AbortSignal.any([e.signal,AbortSignal.timeout(f),...t?.signal?[t.signal]:[]])}),"fetch")}),y={teamId:I,workerId:s(r,"workerId")||void 0,jobId:s(r,"jobId")||void 0,cursor:s(r,"cursor")||void 0,limit:r.limit===void 0?void 0:d(r.limit,"limit")};try{do{let o=Date.now(),t;try{let n=await v.hardwareObservations(y);if(!c){console.log(JSON.stringify(n,null,2));return}t={schemaVersion:"openpond.hardwareWatch.v1",kind:"snapshot",snapshot:n}}catch(n){if(e.signal.aborted)return;if(!c)throw n;t={schemaVersion:"openpond.hardwareWatch.v1",kind:"error",error:b(n)??{code:"HARDWARE_READ_FAILED",message:n instanceof Error?n.message.slice(0,512):"Hardware read failed."}}}let m=JSON.stringify(t)+`
2
+ import{a as g}from"./chunk-AYOMVI7J.js";import"./chunk-V24VHT76.js";import{f as h}from"./chunk-RRWL5BHZ.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as s,f as w,h as d}from"./chunk-3M53YXEI.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import{a as b}from"./chunk-JXYJQT5Q.js";import"./chunk-NXN7GJOH.js";import"./chunk-TBODQT4W.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as i}from"./chunk-FTQLQJQV.js";import{once as A}from"node:events";import{setTimeout as O}from"node:timers/promises";async function T(r,p){if(p.length!==1)throw new Error("hosted-hardware does not accept an identifier; use --worker-id or --job-id.");let c=w(r.watch);if(c&&!w(r.json))throw new Error("hosted-hardware --watch requires --json for bounded NDJSON output.");let l=r.intervalMs===void 0?1e3:d(r.intervalMs,"interval-ms")??1e3,f=r.timeoutMs===void 0?15e3:d(r.timeoutMs,"timeout-ms")??15e3;if(l<100||l>6e4||f<1e3||f>6e4)throw new Error("Hardware interval must be 100..60000 ms and timeout 1000..60000 ms.");let{baseUrl:E,teamId:I,headers:S}=await g(r),e=new AbortController,a=i(()=>e.abort(),"abort"),u=i(o=>{o.code==="EPIPE"?a():(a(),process.exitCode=1)},"brokenPipe");process.once("SIGTERM",a),process.once("SIGINT",a),process.stdout.on("error",u);let v=h({baseUrl:E,headers:S,fetch:i((o,t)=>fetch(o,{...t,redirect:"error",signal:AbortSignal.any([e.signal,AbortSignal.timeout(f),...t?.signal?[t.signal]:[]])}),"fetch")}),y={teamId:I,workerId:s(r,"workerId")||void 0,jobId:s(r,"jobId")||void 0,cursor:s(r,"cursor")||void 0,limit:r.limit===void 0?void 0:d(r.limit,"limit")};try{do{let o=Date.now(),t;try{let n=await v.hardwareObservations(y);if(!c){console.log(JSON.stringify(n,null,2));return}t={schemaVersion:"openpond.hardwareWatch.v1",kind:"snapshot",snapshot:n}}catch(n){if(e.signal.aborted)return;if(!c)throw n;t={schemaVersion:"openpond.hardwareWatch.v1",kind:"error",error:b(n)??{code:"HARDWARE_READ_FAILED",message:n instanceof Error?n.message.slice(0,512):"Hardware read failed."}}}let m=JSON.stringify(t)+`
3
3
  `;if(Buffer.byteLength(m)>8*1024*1024+1024)throw new Error("Hardware watch record exceeds its wire bound.");process.stdout.write(m)||await A(process.stdout,"drain",{signal:e.signal}),await O(Math.max(0,l-(Date.now()-o)),void 0,{signal:e.signal})}while(!e.signal.aborted)}catch(o){if(!e.signal.aborted)throw o}finally{process.off("SIGTERM",a),process.off("SIGINT",a),process.stdout.off("error",u)}}i(T,"runHardwareObservations");export{T as runHardwareObservations};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a as se}from"./chunk-7OFD6TFD.js";import{a as ce}from"./chunk-R2FYCJL6.js";import{a as ue}from"./chunk-IHAEZ73V.js";import{a as ne}from"./chunk-7RJOCGQ6.js";import{a as oe}from"./chunk-5G7BQAUA.js";import{a as ae}from"./chunk-XOPHFUUY.js";import{im as ie,lb as Y,nf as te,uf as re,xb as ee}from"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import{b as A,c as de}from"./chunk-KP2MYTP5.js";import"./chunk-PNPV2LDE.js";import"./chunk-55YD4UTW.js";import{q as Z,s as H}from"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{Cb as G,tc as S,uc as K,vc as W,wc as Q,xc as X}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as z}from"./chunk-AYOMVI7J.js";import"./chunk-V24VHT76.js";import"./chunk-RRWL5BHZ.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as f,f as I,h as k}from"./chunk-3M53YXEI.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import{b as j}from"./chunk-NXN7GJOH.js";import{a as T}from"./chunk-TBODQT4W.js";import{g as V}from"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import{A as y}from"./chunk-X2J2P5ZT.js";import{a as v}from"./chunk-FTQLQJQV.js";async function le(t,p={}){let e=process.env.OPENPOND_CHAT_INVOCATION;if(e)try{let i=process.env.OPENPOND_LOCAL_API_URL;if(!i)throw new Error("The chat executor did not supply its local API URL.");let a=new URL(i);if(a.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(a.hostname)||a.username||a.password)throw new Error("Chat attachment requires the app's loopback API origin.");let h=await(p.request??await(await import("./training-5UMT45UL.js")).createLocalAuthenticatedRequest(i,{timeoutMs:15e3}))(new URL("/v1/chat-experiments",a),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"attach_training",invocationToken:e,payload:{location:"cloud",...t}}),signal:AbortSignal.timeout(15e3),redirect:"error"});if(!h.ok)throw new Error(`Chat attachment returned HTTP ${h.status}.`)}catch(i){(p.warn??console.error)(`Hosted operation succeeded, but chat attachment failed: ${i instanceof Error?i.message:String(i)}. Inspect the saved job to retry attachment; do not submit it again.`)}}v(le,"attachHostedTrainingToChat");import{readFile as ye}from"node:fs/promises";var M=y.string().trim().min(1).max(500),he=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),we=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),ge=y.discriminatedUnion("action",[y.object({action:y.literal("declare_verification"),teamId:M,operationId:M,plan:y.object({modelId:S.shape.modelId,classification:S.shape.classification,feedback:S.shape.feedback,evidence:S.shape.evidence,trainingJobId:S.shape.trainingJobId,checkpoint:S.shape.checkpoint,artifact:S.shape.artifact,taskset:S.shape.taskset,checks:S.shape.checks,baselineOperationId:S.shape.baselineOperationId,candidateOperationId:S.shape.candidateOperationId,criterion:S.shape.criterion}).strict()}).strict(),y.object({action:y.literal("link_live_opportunity"),teamId:M,operationId:M,correction:he,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),be=y.object({summary:X.nullable(),observations:y.array(Q).max(1e3)}).strict(),U=class{static{v(this,"OpenPondCorrectionMetricsClient")}options;constructor(p){if(!p.apiKey.trim())throw new Error("Learning API key is required.");let e=new URL(p.baseUrl);if(!["http:","https:"].includes(e.protocol)||e.username||e.password||e.search||e.hash)throw new Error("Learning base URL must be an HTTP(S) endpoint without credentials, query, or fragment.");this.options={...p,baseUrl:e.toString().replace(/\/+$/,"")}}async request(p,e,i){let a=await(this.options.fetch??globalThis.fetch)(`${this.options.baseUrl}${p}`,{...i,redirect:"error",headers:{Authorization:`Bearer ${this.options.apiKey}`,"Content-Type":"application/json",Accept:"application/json","X-OpenPond-Team-Id":e}}),s;try{s=await de(a)}catch(h){throw h instanceof T?h:new T(a.ok?502:a.status,"invalid_response","Correction metrics returned an invalid response.",null)}if(!a.ok){let h=y.object({code:y.string().optional(),error:y.string().optional()}).passthrough().safeParse(s);throw new T(a.status,h.success?h.data.code??"correction_request_failed":"correction_request_failed",h.success?h.data.error??`Correction metrics request failed (${a.status}).`:`Correction metrics request failed (${a.status}).`,s)}return s}async read(p,e={}){let i=we.parse(p),a=be.parse(await this.request(`/v1/learning/corrections?query=${encodeURIComponent(JSON.stringify(i))}`,i.teamId,{method:"GET",signal:e.signal}));if(a.summary&&(a.summary.scope.teamId!==i.teamId||a.summary.scope.modelId!==i.modelId||i.runId&&a.summary.scope.runId!==i.runId)||a.observations.some(s=>s.modelId!==i.modelId||i.runId&&s.trainingJobId!==i.runId))throw new T(502,"correction_scope_mismatch","Correction metrics did not match the requested workspace, Model or run.",null);return a}async command(p,e={}){let i=ge.parse(p);G(i);let a=await this.request("/v1/learning/corrections",i.teamId,{method:"POST",body:JSON.stringify(i),signal:e.signal});if(i.action==="declare_verification"){let h=K.parse(a);if(h.teamId!==i.teamId||h.modelId!==i.plan.modelId||h.trainingJobId!==i.plan.trainingJobId)throw new T(502,"correction_scope_mismatch","Correction declaration did not match the requested workspace, Model or run.",null);return h}let s=W.parse(a);if(s.correction.id!==i.correction.id||s.correction.contentHash!==i.correction.contentHash||s.attempt.id!==i.inferenceRequestId)throw new T(502,"correction_scope_mismatch","Correction opportunity did not match the declared correction and serving request.",null);return s}};var O=new Set(["succeeded","failed","cancelled"]);function N(t){let p=k(t.intervalMs,"interval-ms")??1e4,e=k(t.cleanupTimeoutMs,"cleanup-timeout-ms")??18e4,i=k(t.cleanupReserveMs,"cleanup-reserve-ms")??18e4;if([p,e,i].some(h=>!Number.isSafeInteger(h)||h>2147483647))throw new Error("Watch intervals and cleanup bounds must fit a positive 32-bit millisecond timer.");if(p<250)throw new Error("--interval-ms must be at least 250.");if(e<1e3||i<1e3)throw new Error("Cleanup timeout and reserve must be at least 1000 ms.");let a=f(t,"deadlineAt");if(!a&&t.cleanupReserveMs!==void 0)throw new Error("--cleanup-reserve-ms requires --deadline-at.");let s=a?Date.parse(a):null;if(a&&(!/T.*(?:Z|[+-]\d{2}:\d{2})$/.test(a)||!Number.isFinite(s)))throw new Error("--deadline-at requires an ISO timestamp with an explicit timezone.");if(s!==null&&s-i<=Date.now())throw new Error("--deadline-at must leave time for execution and the cleanup reserve.");return{intervalMs:p,deadlineAt:s,cancelAt:s===null?null:s-i,waitForCleanup:s!==null||I(t.waitForCleanup)||I(t.cancelOnInfrastructureError),cleanupTimeoutMs:e,cancelOnInfrastructureError:I(t.cancelOnInfrastructureError)}}v(N,"parseHostedWatchOptions");async function J(t,p,e){for(let i=0;i<4;i++){let a=await t.getJob(p);if($(a,p,e),O.has(a.state)||a.state==="cancelling")return a;try{let s=await t.cancelJob(p,a.version);return $(s,p,e,a.submissionHash),s}catch(s){if(!(s instanceof j)||s.status!==409||s.code!=="stale_version"||i===3)throw s}}throw new Error("Hosted cancellation could not reconcile the current Job version.")}v(J,"cancelHostedTrainingJob");async function me(t,p,e){for(let i=0;i<4;i++){let a=await t.getJob(p);if($(a,p,e),O.has(a.state)||a.state==="cancelling")return a;try{let s=await t.stopAfterGroup(p,a.version);return $(s,p,e,a.submissionHash),s}catch(s){if(!(s instanceof j)||s.status!==409||s.code!=="stale_version"||i===3)throw s}}throw new Error("Hosted graceful stop could not reconcile the current Job version.")}v(me,"stopHostedTrainingJobAfterGroup");async function L(t){let{client:p,options:e,jobId:i,teamId:a}=t,s=null,h,q=!1;for(;;){let b=Math.min(e.deadlineAt??1/0,s??1/0);if(t.requestBound.deadlineAt=Number.isFinite(b)?b:null,Date.now()>=b)throw pe(i);try{let m=e.cancelAt!==null&&Date.now()>=e.cancelAt&&!q?await J(p,i,a):await p.getJob(i);if($(m,i,a,h),h=m.submissionHash,e.cancelOnInfrastructureError&&!q&&!O.has(m.state)&&m.state!=="cancelling"){let g=await p.events(i);if(g.some(C=>C.jobId!==i))throw new Error("Hosted event does not match the watched Job.");let o=g.find(C=>C.type==="rollout_metric"&&C.data.terminalClass==="infrastructure"&&C.data.rewardEligible===!1);o&&(t.print({jobId:i,event:"hosted_watch_infrastructure_failure",trajectoryEventId:o.id,data:o.data}),m=await J(p,i,a),$(m,i,a,h),s??=Date.now()+e.cleanupTimeoutMs)}if(q||=m.state==="cancelling"||O.has(m.state),t.print(m),O.has(m.state)){let g=m.executionMode==="qualification"&&m.state==="succeeded";if(!e.waitForCleanup&&!g)return;s??=Date.now()+e.cleanupTimeoutMs,t.requestBound.deadlineAt=Math.min(e.deadlineAt??1/0,s);let{receipt:o,outputs:C}=await p.outputs(i);if(o){if(o.jobId!==i||o.teamId!==a||o.submissionHash!==h)throw new Error("Hosted cleanup receipt does not match the watched Job and submission.");if(o.cleanupComplete){g&&await ee(o,{submissionHash:h,outputs:C}),t.print({jobId:i,cleanup:{scope:"job",complete:!0,receipt:o}});return}}else if(m.rolloutProgress.groupsTarget===0&&t.readNativeInspection){let E=ue(await t.readNativeInspection(i),m);if(E.cleanupComplete){t.print({jobId:i,cleanup:{scope:"job",complete:!0,evidence:"native_read_only_attestation",nativeJobVersion:E.nativeJobVersion,attestation:E.cleanupAttestation}});return}}}}catch(m){if(t.requestBound.deadlineAt!==null&&Date.now()>=t.requestBound.deadlineAt)throw pe(i);if(e.deadlineAt===null&&s===null||!ve(m))throw m;console.error(JSON.stringify({jobId:i,event:"hosted_watch_retry",code:m instanceof j?m.code:"transport_unavailable"}))}let c=Math.min(t.requestBound.deadlineAt??1/0,!q&&e.cancelAt!==null&&Date.now()<e.cancelAt?e.cancelAt:1/0);await new Promise(m=>setTimeout(m,Math.max(0,Math.min(e.intervalMs,c-Date.now()))))}}v(L,"watchHostedTrainingJob");function $(t,p,e,i){if(t.id!==p||t.teamId!==e||i!==void 0&&t.submissionHash!==i)throw new Error("Hosted response does not match the requested Job, workspace, and submission.")}v($,"assertJobIdentity");function ve(t){return t instanceof j?t.status===429||t.status>=500:t instanceof V?t.code==="invalid_error_response"||t.code==="invalid_json":t instanceof TypeError||t instanceof Error&&["TimeoutError","AbortError"].includes(t.name)}v(ve,"isTransient");function pe(t){return new Error(`Hosted watch deadline reached for ${t}; completed job cleanup is unverified. Inspect hosted-status, hosted-artifacts, and provider retirement before treating resources as released.`)}v(pe,"cleanupDeadlineError");var P=v(t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(t),"money"),D=v(t=>t>=3600?`${(t/3600).toFixed(1)} hours`:`${Math.max(1,Math.ceil(t/60))} minutes`,"duration");function B(t,p){if(p){console.log(JSON.stringify(t,null,2));return}console.log(`Estimate ${t.id} (${t.status.replaceAll("_"," ")})`),console.log(`Model: ${t.configuration.modelId}@${t.configuration.modelRevision}`);let e=t.configuration;console.log(`Configuration: ${e.method}${e.loraRank===null?"":`, rank ${e.loraRank}`}${e.groups===null?"":`, ${e.groups} groups`}${e.rolloutConcurrency===null?"":`, ${e.rolloutConcurrency} rollout lanes`}${e.adapterMode===null?"":`, ${e.adapterMode}`}`),console.log(`GPU: ${t.gpu.resolved?.gpuType??"Awaiting a supported offering"} \xD7 ${t.gpu.resolved?.gpuCount??t.gpu.requested.gpuCount??1} (${t.gpu.requested.mode}, ${t.gpu.availability})`);let i=t.cost;console.log(`Expected cost: ${i.expectedUsd===null?"Not yet calibrated":P(i.expectedUsd)}`),i.planningRangeUsd&&console.log(`Planning range: ${P(i.planningRangeUsd.low)}\u2013${P(i.planningRangeUsd.high)}`),console.log(`Execution time: ${t.executionSeconds.expected===null?"Not yet calibrated":D(t.executionSeconds.expected)}`),t.executionSeconds.planningRange&&console.log(`Execution planning range: ${D(t.executionSeconds.planningRange.low)}\u2013${D(t.executionSeconds.planningRange.high)}`),console.log(`Queue wait: ${t.queueWaitSeconds===null?"Start time not yet known":`about ${D(t.queueWaitSeconds.expected)}`}`);let a=t.workload;if(a){let s=a.method==="sft"?a.trainingRows:a.trainingInitialRequests;console.log(`${a.method==="sft"?"Examples":"Initial prompts"} counted: ${s.coverage==="unavailable"?"Unavailable":`${s.counted} of ${s.total??"unknown"} (${s.coverage})`}`);let h=a.method==="sft"?a.trainingRows.totals?.inputTokens:a.trainingInitialRequests.totals?.promptTokens;console.log(`Tokens in counted inputs: ${h??"Unavailable"}`),a.method==="sft"&&a.planned.exampleExposures!==null&&console.log(`Planned workload: ${a.planned.exampleExposures} example exposures, ${a.planned.optimizerSteps} optimizer steps`),s.reason&&console.log(`Token evidence: ${s.reason}`)}console.log(`Recommended maximum budget: ${i.recommendedMaximumUsd===null?"Unavailable with current evidence":P(i.recommendedMaximumUsd)}`),console.log(`Approved hard cap: ${e.approvedMaximumUsd===null?"Not approved":P(e.approvedMaximumUsd)}`),e.approvedMaximumUsd!==null&&i.expectedUsd!==null&&i.expectedUsd>e.approvedMaximumUsd&&console.log("Expected cost exceeds the approved cap. Change the run or explicitly approve a different budget before submission.");for(let s of i.components)s.expectedUsd!==null?console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: ${P(s.expectedUsd)}`):s.evidence==="configured_rate"&&console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: configured rate; expected usage unknown. ${s.reason??""}`);for(let s of t.assumptions)console.log(`Assumption: ${s}`);for(let s of t.unknowns)console.log(`Unknown: ${s}`);console.log(`Evidence: ${t.calibration.completedSamples} completed, ${t.calibration.partialSamples} partial samples; expires ${t.expiresAt}`),console.log("This estimate reserves no resources and approves no spending.")}v(B,"printTrainingEstimate");var d=v(t=>console.log(JSON.stringify(t,null,2)),"print");async function We(t,p){let e=p[0],i=p[1],a=e==="hosted-watch"?N(t):null,s=e==="hosted-score-decision"?33e4:18e4,h={deadlineAt:a?.deadlineAt??null},{context:q,baseUrl:b,teamId:c,headers:m}=await z(t),g=v((r,n)=>{let u=h.deadlineAt===null?1/0:h.deadlineAt-Date.now();if(u<=0)throw new DOMException("Hosted watch deadline reached","TimeoutError");let l=AbortSignal.timeout(Math.max(1,Math.min(a?1e4:s,u)));return fetch(r,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=ie({baseUrl:b,headers:m,fetch:g}),C=v(r=>le({jobId:r,teamId:c,apiOrigin:new URL(b).origin}),"attach"),E=v(async(r,n)=>{d(r),await C(n)},"printAttached"),w=v(async()=>{if(!i)throw new Error(`${e} requires an input JSON file.`);let r=await ye(i);if(r.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(r.toString("utf8"))},"readInput"),F=v(async()=>{let r=await w(),{TrainingExperimentSetupReceiptSchema:n,parseAndVerifyTrainingExperimentSetupReceipt:u}=await import("./training-5NT2YB2L.js"),l=n.safeParse(r).success?(await u(r)).preparation:await re(r);if(l.plan.request.teamId!==c)throw new Error("Preparation belongs to a different workspace.");return l},"readPreparationInput"),_=v(async r=>{let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(r)}`,b),{headers:m});if(!n.ok)throw new j(n.status,{schemaVersion:"openpond.trainingApiError.v2",code:"inspection_failed",message:`Hosted job inspection failed (${n.status}).`,retryable:n.status===429||n.status>=500,requestId:null,details:{}});return n.json()},"readNativeInspection");if(p.length>2)throw new Error(`${e} accepts at most one identifier or input file.`);if(["hosted-serving-pools","hosted-base-serving-prepare","hosted-serving-pool-retire"].includes(e??"")){d(await(await import("./training-hosted-serving-N2MHWGZN.js")).runHostedServingCommand({action:e,target:i,baseUrl:b,headers:m,request:g,readInput:w,confirmed:I(t.yes)}));return}if(e&&ne.has(e)){let{runHostedAlphaEditCommand:r}=await import("./training-hosted-alphaedit-HSMRDJTD.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&oe.has(e)){let{runHostedNeuronTrainingCommand:r}=await import("./training-hosted-neuron-training-J42WK4EH.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&ae.has(e)){let{runHostedEngramCommand:r}=await import("./training-hosted-engram-SXO75MFG.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&se.has(e)){let{runHostedDecisionCommand:r}=await import("./training-hosted-decision-7JALOU6O.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&ce.has(e)){let{runHostedSteeringCommand:r}=await import("./training-hosted-steering-T556BUBG.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e==="hosted-evaluate-checkpoint"){if(!I(t.yes))throw new Error("Paid checkpoint evaluation requires --yes.");let r=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationRequest(await w()),n=new Headers(m);n.set("content-type","application/json");let u=await g(new URL("/v1/managed-rl/serving-soaks",b),{method:"POST",headers:n,body:JSON.stringify(r)}),l=await u.json();if(!u.ok){let R=l&&typeof l=="object"&&"error"in l?String(l.error):"checkpoint_evaluation_failed";throw new Error(`Checkpoint evaluation failed (${u.status}): ${R}. Reconcile hosted-jobs before retrying the same immutable request.`)}let x=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationResponse(l,r);await E(x,x.job.id);return}if(e==="hosted-provider"||e==="hosted-quotes"){if(i)throw new Error(`${e} does not accept an identifier.`);let r=e==="hosted-provider"?"/v1/managed-rl/provider-inventory":"/v1/managed-rl/quotes",n=await g(new URL(r,b),{headers:m}),u=await n.json();if(!n.ok)throw new Error(`Hosted capacity read failed (${n.status}).`);d(u);return}if(e==="hosted-hardware"){if(i)throw new Error("hosted-hardware does not accept an identifier; use --worker-id or --job-id.");d(await o.hardwareObservations({teamId:c,workerId:f(t,"workerId")||void 0,jobId:f(t,"jobId")||void 0,cursor:f(t,"cursor")||void 0,limit:t.limit===void 0?void 0:k(t.limit,"limit")}));return}if(e==="hosted-workers"||e==="hosted-worker"||e?.startsWith("hosted-worker-")){d(await(await import("./training-hosted-workers-Y2PO5IOA.js")).runHostedWorkerCommand({action:e,target:i,baseUrl:b,headers:m,request:g,readInput:w,confirmed:I(t.yes)}));return}if(e==="hosted-tasksets"){let{OpenPondTasksetCatalogClient:r}=await import("./taskset-catalog-RZYEBCRQ.js"),n=new r({baseUrl:b,apiKey:q.token,teamId:c,fetch:g}),u=f(t,"cursor"),l=f(t,"projectId"),x=f(t,"search"),R=t.limit===void 0?void 0:k(t.limit,"limit");d(i?await n.get(i):await n.list({...u?{afterId:u}:{},...l?{projectId:l}:{},...x?{search:x}:{},...R===void 0?{}:{limit:R}}));return}if(e==="hosted-models"){d(await H({baseUrl:b,headers:m,fetch:g}).list());return}if(e==="hosted-model"){if(!i)throw new Error("hosted-model requires a Model Project ID.");d(await H({baseUrl:b,headers:m,fetch:g}).get(i));return}if(e==="hosted-corrections"||e==="hosted-learning-inspect"){if(!i)throw new Error(`${e} requires a hosted Model Project ID.`);let{project:r}=await H({baseUrl:b,headers:m,fetch:g}).get(i);d(await(await import("./training-hosted-learning-E2N32YU5.js")).inspectHostedLearning({action:e,options:t,teamId:c,model:r,learning:new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g}),corrections:new U({baseUrl:b,apiKey:q.token,fetch:g})}));return}if(e==="hosted-sync-model"){let r=Z.parse(await w());d(await H({baseUrl:b,headers:m,fetch:g}).upsert(r));return}if(e==="hosted-publish-taskset"){let{OpenPondTasksetPackageClient:r,TasksetPackagePublicationSchema:n}=await import("./taskset-packages-WMG5DUBN.js"),u=n.parse(await w());d(await new r({baseUrl:b,apiKey:q.token,teamId:c,fetch:g}).publish(u));return}if(e==="hosted-capabilities"){d(await o.capabilities());return}if(e==="hosted-modification-capabilities"){let{ModelModificationCapabilitiesQuerySchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Choose this workspace's model capability query.");d(await o.modificationCapabilities(n));return}if(e==="hosted-review-dataset"){let{DatasetTrainingReviewRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Choose this workspace's Dataset review request.");d(await o.reviewDataset(n));return}if(e==="hosted-funding"||e==="hosted-funding-handoff"){let{TrainingFundingRequestSchema:r,TrainingFundingHandoffRequestSchema:n}=await import("./training-5NT2YB2L.js"),u=await w();if(e==="hosted-funding"){let l=r.parse(u);if(l.teamId!==c)throw new Error("Choose this workspace's funding request.");d(await o.funding(l))}else{let l=n.parse(u);if(l.teamId!==c)throw new Error("Choose this workspace's funding request.");d(await o.fundingHandoff(l))}return}if(e==="hosted-gpu-catalog"){let{TrainingGpuCatalogQuerySchema:r}=await import("./training-5NT2YB2L.js"),n=i?r.parse(await w()):void 0;if(n&&n.teamId!==c)throw new Error("Choose this workspace's GPU query.");d(await o.gpuCatalog(n));return}if(e==="hosted-hardware-catalog"){d(await o.hardwareCatalog());return}if(e==="hosted-start-model"){if(!i)throw new Error("training start requires a saved hosted Model Project ID.");let r=await(await import("./training-model-start-P3PXDWNT.js")).startHostedModel({options:t,modelId:i,teamId:c,client:o,models:H({baseUrl:b,headers:m,fetch:g}),learning:new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g})});d(r),r.preparation.jobId&&await C(r.preparation.jobId),r.preparation.jobId&&!I(t.detach)&&await L({client:o,jobId:r.preparation.jobId,teamId:c,options:N(t),print:d,requestBound:h,readNativeInspection:_});return}if(e==="hosted-estimate-model"){if(!i)throw new Error("training estimate requires a hosted Model Project ID.");let{project:r}=await H({baseUrl:b,headers:m,fetch:g}).get(i),n=f(t,"batchId"),u=n?await new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g}).get("batch",n):null,{trainingGpuChoice:l}=await import("./training-model-start-P3PXDWNT.js"),x=l(t)??r.trainingSetup.managedGpuSelection;B(await o.estimate({schemaVersion:"openpond.trainingEstimateRequest.v1",teamId:c,source:{kind:"configuration",id:r.id,expectedRevision:r.revision,expectedEtag:r.etag,batch:u?{id:u.id,revision:u.revision,contentHash:u.contentHash}:null},...x?{gpuSelection:x}:{}}),I(t.json));return}if(e==="hosted-estimate"){let{TrainingEstimateRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Estimate input belongs to a different workspace.");B(await o.estimate(n),I(t.json));return}if(e==="hosted-batches"){let r=new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g});d(await r.list("batch",{limit:100}));return}if(e==="hosted-drafts"){if(i)throw new Error("hosted-drafts accepts filters, not an identifier.");let r=f(t,"cursor"),n=f(t,"projectId"),u=f(t,"search"),l=k(t.limit,"--limit");d(await o.listExperimentDrafts(c,{archived:I(t.archived),...r?{cursor:r}:{},...n?{projectId:n}:{},...u?{search:u}:{},...l===void 0?{}:{limit:l}}));return}if(e==="hosted-draft"){if(!i)throw new Error("hosted-draft requires a draft ID.");d(await o.getExperimentDraft(c,i));return}if(e==="hosted-save-draft"){let{ExperimentDraftSaveSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("This draft belongs to another workspace.");d(await o.saveExperimentDraft(n));return}if(e==="hosted-archive-draft"){let r=f(t,"operationId"),n=k(t.expectedRevision,"--expected-revision");if(!i||!r||n===void 0)throw new Error("hosted-archive-draft requires an ID, --operation-id and --expected-revision.");d(await o.archiveExperimentDraft(i,{schemaVersion:"openpond.experimentDraftArchive.v1",teamId:c,operationId:r,expectedRevision:n}));return}if(e==="hosted-executions"){if(i)throw new Error("hosted-executions accepts filters, not an identifier.");let r=f(t,"cursor"),n=f(t,"projectId"),u=f(t,"datasetHash"),l=f(t,"search"),x=k(t.limit,"--limit");d(await o.listExecutions(c,{...r?{cursor:r}:{},...n?{projectId:n}:{},...u?{datasetHash:u}:{},...l?{search:l}:{},...x===void 0?{}:{limit:x}}));return}if(e==="hosted-save-steering-model"){let{SteeringProfileSaveRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Use this result's original workspace.");d(await o.saveModificationResultModel(n));return}if(e==="hosted-steering-profiles"){d(await o.listSteeringProfiles(c,{projectId:f(t,"projectId")||void 0,modelProjectId:f(t,"modelProjectId")||void 0,cursor:f(t,"cursor")||void 0,archived:I(t.archived),limit:k(t.limit,"--limit")}));return}if(e==="hosted-steering-profile"){if(!i)throw new Error("Supply a profile ID.");d(await o.getSteeringProfile(c,i));return}if(e==="hosted-archive-steering-profile"){let r=await w();d(await o.archiveSteeringProfile(r.id,r.request));return}if(e==="hosted-model-version"){if(!i)throw new Error("Supply a Model ID.");let r=f(t,"versionHash");d(await o.modelVersion(i,{teamId:c,...r?{versionHash:r}:{}}));return}if(e==="hosted-modification-executions"){if(i)throw new Error("hosted-modification-executions accepts filters, not an identifier.");let{ManagedModificationExecutionListQuerySchema:r}=await import("./training-5NT2YB2L.js"),n={};for(let l of["id","projectId","method","phase","cursor"]){let x=f(t,l);x&&(n[l]=x)}let u=k(t.limit,"--limit");u!==void 0&&(n.limit=u),d(await o.listModificationExecutions(c,r.parse(n)));return}if(e==="hosted-modification-execution"){if(!i)throw new Error("hosted-modification-execution requires an execution ID.");d(await o.getModificationExecution(c,i));return}if(e==="hosted-compare-modification"){let{compareHostedModification:r,printHostedModificationComparison:n}=await import("./training-hosted-modification-comparison-TXFDJFTG.js"),u=await r({client:o,teamId:c,executionId:i??"",baselineId:f(t,"baseline"),candidateId:f(t,"candidate"),promptId:f(t,"prompt")||void 0});n(u,I(t.json));return}if(e==="hosted-compile-modification"){let{parseManagedModificationCompile:r}=await import("./training-5NT2YB2L.js"),n=r(await w());if(n.teamId!==c)throw new Error("Modification input belongs to a different workspace.");d(await o.compileModificationExecution(n));return}if(e==="hosted-prepare-modification"){let{ManagedModificationPrepareSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Modification input belongs to a different workspace.");d(await o.prepareModificationExecution(n));return}if(e==="hosted-start-modification"||e==="hosted-cancel-modification"){let{ManagedModificationStartSchema:r,ManagedModificationCancelSchema:n}=await import("./training-5NT2YB2L.js"),u=e==="hosted-start-modification",l=u?r.parse(await w()):n.parse(await w());if(l.teamId!==c)throw new Error("Modification input belongs to a different workspace.");if(u&&!I(t.yes))throw new Error("Starting paid hosted modification requires --yes.");d(l.action==="start"?await o.startModificationExecution(l):await o.cancelModificationExecution(l));return}if(e==="hosted-preparations"){let r=f(t,"cursor"),n=f(t,"projectId"),u=k(t.limit,"--limit");d(await o.listPreparations(c,{...r?{afterId:r}:{},...n?{projectId:n}:{},...u===void 0?{}:{limit:u}}));return}if(e==="hosted-preparation"){if(!i)throw new Error("hosted-preparation requires a preparation ID.");d(await o.getPreparation(c,i));return}if(e==="hosted-cancel-preparation"){let r=await F();d(await o.cancelPreparation(r.plan.id,{teamId:c,planHash:r.plan.contentHash,expectedRevision:r.revision}));return}if(e==="hosted-prepare-experiment"){let{TrainingExperimentSetupRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Experiment input belongs to a different workspace.");d(await o.prepareExperiment(n));return}if(e==="hosted-jobs"){d(await o.listJobs({limit:100}));return}if(e==="hosted-prepare"){let r=te.parse(await w());if(r.teamId!==c)throw new Error("Preparation input belongs to a different workspace.");d(await o.prepareRun(r));return}if(e==="hosted-start"){let r=await F();if(!I(t.yes))throw new Error("Starting paid hosted training requires --yes.");let n=await o.startPreparation(r.plan.id,{teamId:c,planHash:r.plan.contentHash,expectedRevision:r.revision,...r.plan.usageQuote?{usageQuoteHash:r.plan.usageQuote.contentHash}:{}});d(n),n.jobId&&await C(n.jobId);return}if(e==="hosted-stage"){d(await o.stageArtifact(await w()));return}if(e==="hosted-submit"||e==="hosted-qualify"){let r=await Y(await w());if(e==="hosted-qualify"&&(r.job.kind!=="policy_optimize"||r.job.executionMode!=="qualification"))throw new Error("hosted-qualify requires an immutable policy_optimize submission with executionMode=qualification.");if(!I(t.yes))throw new Error("Submitting paid hosted training requires --yes.");if(r.gpuSelection?.gpuCount===2||r.job.kind==="policy_optimize"&&r.job.executionMode==="qualification"){let u=await o.capabilities();if(r.gpuSelection?.gpuCount===2&&!u.policyDataParallel)throw new Error("This hosted runtime has no qualified two-GPU policy-training image.");if(r.job.kind==="policy_optimize"&&r.job.executionMode==="qualification"&&!u.executionModes?.includes("qualification"))throw new Error("This hosted runtime does not advertise original-learner qualification support.")}let n=await o.createJob(r);if(n.teamId!==c||n.submissionHash!==r.contentHash||n.kind!==r.job.kind||r.job.kind==="policy_optimize"&&n.executionMode!==r.job.executionMode)throw new Error(`Hosted submission response identity or execution mode mismatch; inspect hosted-status ${n.id} before attempting another submission.`);await E(n,n.id);return}if(!i)throw new Error(`${e} requires a hosted job ID.`);if(e==="hosted-status"){await E(await o.getJob(i),i);return}if(e==="hosted-save-model"){let{TrainingResultSaveCommandSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.request.teamId!==c)throw new Error("Save this result in its original workspace.");await E(await o.saveResultModel(n.jobId,n.request),n.jobId);return}if(e==="hosted-saved-model"){d(await o.savedModel(i,{teamId:c}));return}if(e==="hosted-model-serving"){let r=await w();d(await o.modelServing(r.modelProjectId,{teamId:c,versionHash:r.versionHash}));return}if(e==="hosted-control-model-serving"){let{TrainingModelServingControlCommandSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.request.teamId!==c)throw new Error("Control serving in its original workspace.");if(n.request.action==="activate"&&!I(t.yes))throw new Error("Activating billed serving capacity requires --yes.");d(await o.controlModelServing(n.modelProjectId,n.request));return}if(e==="hosted-result"){let r=await o.result(i,{teamId:c});await E(r,i);return}if(e==="hosted-report"){let r=await o.getJob(i),[n,u]=await Promise.all([o.events(i),o.outputs(i)]),l=await o.getJob(i);if(l.id!==i||l.teamId!==c||r.id!==i||r.teamId!==c)throw new Error("Hosted report status identity mismatch.");let x=l.recovery?await o.getJob(l.recovery.sourceJobId):void 0,R=l.rolloutProgress.groupsTarget===0?(await import("./training-hosted-serving-report-BAEABGJH.js")).parseHostedServingReportEvidence(await _(i),l):void 0,{buildHostedTrainingReport:fe}=await import("./training-hosted-report-T633TNJG.js");await E(fe({job:l,events:n,outputs:u,recoverySourceJob:x,servingEvidence:R,versionBeforeRead:r.version,generatedAt:new Date().toISOString()}),i);return}if(e==="hosted-evaluation-tasks"){let r=f(t,"evaluationId");if(!r)throw new Error("hosted-evaluation-tasks requires --evaluation-id from hosted-artifacts.");let u=(await o.outputs(i)).outputs.find(l=>l.kind==="evaluation"&&l.id===r);if(!u)throw new Error("Evaluation does not belong to this job's retained outputs.");d(await o.evaluationTasks(i,{id:u.id,contentHash:u.contentHash},{cursor:f(t,"cursor")||void 0,limit:k(t.limit,"--limit")}));return}if(e==="hosted-trajectory"){let r=f(t,"trajectoryId");if(!r)throw new Error("hosted-trajectory requires --trajectory-id <receipt-id> from hosted-inspect.");let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(i)}/trajectories/${encodeURIComponent(r)}`,b),{headers:m});if(!n.ok)throw new Error(`Hosted trajectory read failed (${n.status}).`);d(await n.json());return}if(e==="hosted-feedback"){let{readHostedGraderFeedback:r}=await import("./training-hosted-feedback-5B2KJGOT.js");d(await r({jobId:i,baseUrl:b,headers:m,request:g,trajectoryId:f(t,"trajectoryId")||void 0,evaluationId:f(t,"evaluationId")||void 0,taskId:f(t,"taskId")||void 0}));return}if(e==="hosted-inspect"){d(await _(i));return}if(e==="hosted-recover"){if(!I(t.yes))throw new Error("hosted-recover requires --yes for its explicit funded execution request.");let{jobId:r,...n}=await w();if(typeof r!="string"||!r)throw new Error("hosted-recover requires jobId in its input JSON.");let u=await o.recoverCheckpoint(r,n);await E(u,u.id);return}if(e==="hosted-cancel"){await E(await J(o,i,c),i);return}if(e==="hosted-stop-after-group"){if(!I(t.yes))throw new Error("hosted-stop-after-group requires --yes to shorten the admitted training schedule.");await E(await me(o,i,c),i);return}if(e==="hosted-artifacts"){await E(await o.outputs(i),i);return}if(e==="hosted-logs"){await E(await o.logs(i),i);return}if(e==="hosted-events"){await E(await o.events(i),i);return}if(e==="hosted-watch"&&a){await C(i),await L({client:o,jobId:i,teamId:c,options:a,print:d,requestBound:h,readNativeInspection:_});return}throw new Error(`Unknown hosted training command: ${e}`)}v(We,"runHostedTrainingCommand");export{We as runHostedTrainingCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b}from"./chunk-7RJOCGQ6.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as alphaEditHostedActions,b as runHostedAlphaEditCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b}from"./chunk-7OFD6TFD.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as decisionHostedActions,b as runHostedDecisionCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b}from"./chunk-XOPHFUUY.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as engramHostedActions,b as runHostedEngramCommand};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{c as o,h as a}from"./chunk-3M53YXEI.js";import"./chunk-R6MMWEH4.js";import{a as m}from"./chunk-TBODQT4W.js";import"./chunk-UNE52L3Y.js";import{K as l}from"./chunk-XHU4BZQY.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RCT3O3HQ.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as c}from"./chunk-FTQLQJQV.js";async function h(e){if(e.model.teamId!==e.teamId)throw new m(502,"model_scope_mismatch","The Model did not match the requested workspace.",null);let r=o(e.options,"runId");if(e.action==="hosted-corrections"){if(o(e.options,"cursor")||e.options.limit!==void 0)throw new Error("hosted-corrections reads one Model/run metric snapshot; use hosted-learning-inspect for paged policies.");return e.corrections.read({teamId:e.teamId,modelId:e.model.id,...r?{runId:r}:{}})}if(r)throw new Error("--run-id is only supported by hosted-corrections.");let t=a(e.options.limit,"--limit")??25;if(t<1||t>100)throw new Error("--limit must be between 1 and 100.");let n=o(e.options,"cursor"),i=await e.learning.list("policy",{parentId:e.model.portableProjectId,limit:t,...n?{afterId:n}:{}}),s=[];for(let d of i.items)s.push({policy:d,inspection:await e.learning.inspectPolicy(l(d))});return{model:{id:e.model.id,portableProjectId:e.model.portableProjectId,revision:e.model.revision,etag:e.model.etag},taskQueue:await e.learning.inspectTaskQueue(e.model.portableProjectId),policies:{items:s,nextCursor:i.nextCursor}}}c(h,"inspectHostedLearning");export{h as inspectHostedLearning};
2
+ import"./chunk-KP2MYTP5.js";import"./chunk-PNPV2LDE.js";import{L as m}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{c as o,h as a}from"./chunk-3M53YXEI.js";import"./chunk-RCT3O3HQ.js";import{a as l}from"./chunk-TBODQT4W.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as c}from"./chunk-FTQLQJQV.js";async function h(e){if(e.model.teamId!==e.teamId)throw new l(502,"model_scope_mismatch","The Model did not match the requested workspace.",null);let r=o(e.options,"runId");if(e.action==="hosted-corrections"){if(o(e.options,"cursor")||e.options.limit!==void 0)throw new Error("hosted-corrections reads one Model/run metric snapshot; use hosted-learning-inspect for paged policies.");return e.corrections.read({teamId:e.teamId,modelId:e.model.id,...r?{runId:r}:{}})}if(r)throw new Error("--run-id is only supported by hosted-corrections.");let t=a(e.options.limit,"--limit")??25;if(t<1||t>100)throw new Error("--limit must be between 1 and 100.");let n=o(e.options,"cursor"),i=await e.learning.list("policy",{parentId:e.model.portableProjectId,limit:t,...n?{afterId:n}:{}}),s=[];for(let d of i.items)s.push({policy:d,inspection:await e.learning.inspectPolicy(m(d))});return{model:{id:e.model.id,portableProjectId:e.model.portableProjectId,revision:e.model.revision,etag:e.model.etag},taskQueue:await e.learning.inspectTaskQueue(e.model.portableProjectId),policies:{items:s,nextCursor:i.nextCursor}}}c(h,"inspectHostedLearning");export{h as inspectHostedLearning};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{Bl as r,Dl as d}from"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a}from"./chunk-FTQLQJQV.js";async function l(e){if(!e.executionId||!e.baselineId||!e.candidateId)throw new Error("hosted-compare-modification requires an execution ID, --baseline <variant-id> and --candidate <variant-id>.");if(e.baselineId===e.candidateId)throw new Error("Choose two different variant IDs for --baseline and --candidate.");let n=await e.client.getModificationExecution(e.teamId,e.executionId),t=n.request.variants.find(i=>i.id===e.baselineId),o=n.request.variants.find(i=>i.id===e.candidateId);if(!t||!o)throw new Error("The comparison variants must both belong to this exact execution request.");if(e.promptId&&!n.request.prompts.some(i=>i.id===e.promptId))throw new Error("The selected prompt must belong to this exact execution request.");let s=n.result?await d(n.request,n.result,t.id,o.id,e.promptId??null):null;return{execution:{id:n.id,teamId:n.teamId,phase:n.phase,revision:n.revision,planHash:n.plan.contentHash,requestHash:n.result?.requestHash??null,modelHash:n.result?.modelHash??null,resultHash:n.result?.contentHash??null},baseline:{id:t.id,profileHash:t.profile?.contentHash??null},candidate:{id:o.id,profileHash:o.profile?.contentHash??null},promptId:e.promptId??null,state:s===null?"unavailable":"available",reason:s===null?"This verified execution read contains no retained capture artifact.":null,doses:r(t,o),comparison:s}}a(l,"compareHostedModification");function f(e,n){if(n){console.log(JSON.stringify(e,null,2));return}let t=a(o=>JSON.stringify(o),"id");if(console.log(`Execution ${t(e.execution.id)} \xB7 ${e.execution.phase}`),console.log(`Reference ${t(e.baseline.id)} \u2192 candidate ${t(e.candidate.id)}`),console.log("Differences are candidate minus reference. Capture availability does not establish cleanup or settlement; no quality grade is assigned."),!e.comparison){console.log(e.reason);return}console.log(`Result hash: ${e.execution.resultHash}`),console.log(`Aligned coordinate captures: ${e.comparison.aligned} / ${e.comparison.captures.length}`);for(let o of e.comparison.pairs)console.log(`Prompt ${t(o.prompt.id)}: ${o.generatedStatus==="identical"?"identical generated token sequence":o.generatedStatus==="missing_outcome"?"missing retained outcome":`first generated sequence difference at position ${o.generatedDifferencePosition} (zero-based)`}.`);e.doses.reason&&console.log(e.doses.reason);for(let o of e.doses.rows)console.log(`Layer ${o.layer}, neuron ${o.neuron}: requested dose ${o.reference??"unavailable"} \u2192 ${o.candidate??"unavailable"}; difference ${o.difference??"unavailable"}.`);console.log("Use --json for original prompt tokens/masks, retained outputs, before/after values and per-coordinate missing/incompatible evidence.")}a(f,"printHostedModificationComparison");export{l as compareHostedModification,f as printHostedModificationComparison};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b}from"./chunk-5G7BQAUA.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as neuronTrainingHostedActions,b as runHostedNeuronTrainingCommand};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a}from"./chunk-IHAEZ73V.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as parseHostedServingReportEvidence};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b}from"./chunk-R2FYCJL6.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{b as runHostedSteeringCommand,a as steeringHostedActions};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import{a as b}from"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{L as y}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import{c as s,f as l,g as f}from"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as g}from"./chunk-FTQLQJQV.js";import{randomUUID as $}from"node:crypto";import{createInterface as h}from"node:readline/promises";function x(i){let e=s(i,"gpuType"),d=s(i,"availabilityId"),c=s(i,"gpuPlacementObjective"),t=f(i.gpuCount,"gpu-count");if(t!==void 0&&t!==1&&t!==2)throw new Error("--gpu-count must be 1 or 2.");if(e||d){if(!e||!d||c)throw new Error("Choose --gpu-type with --availability-id, or --gpu-placement-objective.");return b.parse({mode:"manual",gpuType:e,availabilityId:d,...t!==void 0?{gpuCount:t}:{}})}return c||t!==void 0?b.parse({mode:"automatic",objective:c??"balanced",...t!==void 0?{gpuCount:t}:{}}):void 0}g(x,"trainingGpuChoice");async function E(i){let{options:e,client:d,teamId:c}=i,t=s(e,"batchId");if(!t)throw new Error("training start --team-id requires --batch-id <sealed-approved-batch-id>.");let v=process.stdin.isTTY&&process.stdout.isTTY&&!l(e.json),m=l(e.yes);if(!m&&!v)throw new Error("Noninteractive training start requires --yes and an explicitly approved --max-spend or saved budget.");for(let a of["manifest","comparisonSeriesEntry","retentionDays","exportApproved"])if(e[a]!==void 0)throw new Error(`Hosted saved-Model starts use the retained configuration; ${a} is not a run override.`);let[{project:r},w]=await Promise.all([i.models.get(i.modelId),i.learning.get("batch",t)]),p=x(e)??r.trainingSetup.managedGpuSelection,n=f(e.maxSpend,"max-spend")??r.trainingSetup.preferredMaximumSpendUsd;if(v&&!m){let a=h({input:process.stdin,output:process.stdout});try{let u=await a.question(`Maximum budget in USD${n===null?"":` [${n}]`}: `);u.trim()&&(n=Number(u.trim()))}finally{a.close()}}if(n===null||!Number.isFinite(n)||n<=0||n>1e6)throw new Error("Choose an explicit positive --max-spend or save a positive Model budget before starting.");let o=await d.prepareRun({schemaVersion:"openpond.trainingPreparationRequest.v1",teamId:c,operationId:s(e,"operationId")||$(),projectId:s(e,"projectId")||null,configuration:{id:r.id,expectedRevision:r.revision,expectedEtag:r.etag},batch:y(w),name:s(e,"name")||r.name,maximumSpendUsd:n,...p?{gpuSelection:p}:{}});if(l(e.json)||console.log(`Retained preparation: ${o.plan.id}`),l(e.json)||(console.log(`Prepared run: ${o.plan.id}; approved maximum $${n}.`),console.log(`Model: ${r.name}@${o.plan.source.modelProject.revision}; batch: ${o.plan.request.batch.id}@${o.plan.request.batch.revision}.`),console.log(`GPU choice: ${p?.mode==="manual"?`${p.gpuType} / ${p.availabilityId}`:`Automatic (${p?.objective??r.trainingSetup.managedGpuPlacementObjective})`}; count ${p?.gpuCount??1}.`)),!m){let a=h({input:process.stdin,output:process.stdout});try{let u=await a.question(`Start this exact prepared run with a $${n} maximum? [y/N] `);if(!["y","yes"].includes(u.trim().toLowerCase()))throw new Error(`Training was not started. Preparation ${o.plan.id} is retained for review or cancellation.`)}finally{a.close()}}return{preparation:await d.startPreparation(o.plan.id,{teamId:c,planHash:o.plan.contentHash,expectedRevision:o.revision})}}g(E,"startHostedModel");export{E as startHostedModel,x as trainingGpuChoice};
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a,b,c,d,e}from"./chunk-WNXUSELC.js";import"./chunk-RY46UPBO.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as createHostedWebSearchExecutor,b as createWebSearchExecutorFromEnv,d as normalizeSearchApiUrl,e as normalizeWebSearchRequest,c as resolveWebSearchEndpoint};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as F,b as G,c as H,d as I,e as J,f as K,g as L,h as M,i as N,j as O,k as P,l as Q,m as R,n as S,o as T}from"./chunk-HNDAGZCF.js";import{A,B,C,D,E,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-YU3C6U5V.js";import"./chunk-BJXPQIVD.js";import"./chunk-O6ZYDHEJ.js";import"./chunk-FTQLQJQV.js";export{a as MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,C as appWorkspacePaths,B as assertSafeBranchName,d as checkWorkspaceGitAvailability,S as checkoutBranch,T as checkoutBranchAtPath,G as clearWorkspaceDiffCacheForTests,D as cloneWorkspace,Q as createAndCheckoutBranch,R 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,J as loadGitCommitDiffAtPath,H as loadWorkspaceDiff,I as loadWorkspaceDiffAtPath,K as loadWorkspaceFile,N as loadWorkspaceFileAtPath,L as loadWorkspaceImageFile,M as loadWorkspaceImageFileAtPath,O as loadWorkspaceState,P as loadWorkspaceStateAtPath,n as localVideoContentType,F 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 as F,b as G,c as H,d as I,e as J,f as K,g as L,h as M,i as N,j as O,k as P,l as Q,m as R,n as S,o as T}from"./chunk-PLROXHG2.js";import{A,B,C,D,E,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-YU3C6U5V.js";import"./chunk-U7D6Q744.js";import"./chunk-SSHE6B7Z.js";import"./chunk-FTQLQJQV.js";export{a as MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,C as appWorkspacePaths,B as assertSafeBranchName,d as checkWorkspaceGitAvailability,S as checkoutBranch,T as checkoutBranchAtPath,G as clearWorkspaceDiffCacheForTests,D as cloneWorkspace,Q as createAndCheckoutBranch,R 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,J as loadGitCommitDiffAtPath,H as loadWorkspaceDiff,I as loadWorkspaceDiffAtPath,K as loadWorkspaceFile,N as loadWorkspaceFileAtPath,L as loadWorkspaceImageFile,M as loadWorkspaceImageFileAtPath,O as loadWorkspaceState,P as loadWorkspaceStateAtPath,n as localVideoContentType,F 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 d}from"./chunks/chunk-AZ7BL5FL.js";import{b as f}from"./chunks/chunk-W3ZILZUL.js";import{g as u}from"./chunks/chunk-BBIA24GD.js";import{a as c}from"./chunks/chunk-XRKFTPHD.js";import{a as m,b as l}from"./chunks/chunk-BSHAIAXY.js";import"./chunks/chunk-XWPC3AN4.js";import{f as a}from"./chunks/chunk-3M53YXEI.js";import"./chunks/chunk-GLUWATL5.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function C(e){return!e.command&&a(e.options.version)?"version":a(e.options.checkUpdate)?"check-update":!e.command&&a(e.options.help)?"help":!e.command&&a(e.options.tui)?"tui":e.command?"command":"ui"}s(C,"resolveCliTopLevelAction");async function w(e=process.argv.slice(2)){if(await P(e))return;let{command:i,options:o,rest:t}=f(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-GR56E3QK.js")).resolveOpenPondHome({home:o.home}));let r=C({command:i,options:o});if(r==="version"){console.log(c());return}if(r==="check-update"){await(await import("./chunks/core-commands-GWRHH53F.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-O53DTZGN.js")).printHelp();return}let n=m(o),p=l(o);if(n&&(process.env.OPENPOND_ACCOUNT=n),p&&(process.env.OPENPOND_BASE_URL=p),r==="tui"){await(await import("./chunks/app-layer-XIEZ6ALX.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-XIEZ6ALX.js")).runOpenPondServerCommand("web",o,t);return}await u({command:i,options:o,rest:t})||((await import("./chunks/help-O53DTZGN.js")).printHelp(),process.exit(1))}s(w,"runOpenPondCli");async function P(e){if(e[0]==="__dataset-preparation-authoring")return await(await import("./chunks/dataset-preparation-authoring-WJ2XEUO7.js")).runDatasetPreparationAuthoringCli(e.slice(1)),!0;if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FGCI2VRW.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FGCI2VRW.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-B2V2WIUI.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-CXPVEEYQ.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-FGCI2VRW.js")).runHostedProfileCompilerCli(e.slice(1)),!0;if(e[0]==="__app-server"){process.argv=[process.execPath,"openpond-app-server",...e.slice(1)];let[{createOpenPondAppServer:i},{runOpenPondAppServerCli:o}]=await Promise.all([import("./chunks/app-server-runtime-HJ2N57DL.js"),import("./chunks/cli-HV32F7HD.js")]);return await o(i),!0}if(e[0]==="__server"){process.argv=[process.execPath,"openpond-server",...e.slice(1)];let[{createOpenPondServer:i},{runOpenPondServerCli:o}]=await Promise.all([import("./chunks/src-V236S6MV.js"),import("./chunks/cli-HV32F7HD.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-HJ2N57DL.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-GQPWOPYA.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(P,"runEmbeddedCompanion");w().catch(async e=>{if(e instanceof d){process.exitCode=e.exitCode;return}let i=e instanceof Error?e.message:String(e),o=e.issue,t=(await import("./chunks/training-error-LQKCOQDJ.js")).trainingCliError(e);if(process.argv.includes("--json")&&!(e instanceof Error&&e.name==="OpenPondChildProcessExitError"))console.log(JSON.stringify({error:o??t??{code:"CLI_ERROR",message:i}}));else if(o&&typeof o=="object"){let n=o;console.error(`${n.code}: ${n.message}
3
+ import{a as d}from"./chunks/chunk-AZ7BL5FL.js";import{b as f}from"./chunks/chunk-22RLEU3Q.js";import{g as u}from"./chunks/chunk-R6I623SZ.js";import{a as l}from"./chunks/chunk-XRKFTPHD.js";import{a as c,b as m}from"./chunks/chunk-BSHAIAXY.js";import"./chunks/chunk-XWPC3AN4.js";import{f as a}from"./chunks/chunk-3M53YXEI.js";import"./chunks/chunk-GLUWATL5.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function C(e){return!e.command&&a(e.options.version)?"version":a(e.options.checkUpdate)?"check-update":!e.command&&a(e.options.help)?"help":!e.command&&a(e.options.tui)?"tui":e.command?"command":"ui"}s(C,"resolveCliTopLevelAction");async function w(e=process.argv.slice(2)){if(await P(e))return;let{command:i,options:o,rest:t}=f(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-DKE7RJZN.js")).resolveOpenPondHome({home:o.home}));let r=C({command:i,options:o});if(r==="version"){console.log(l());return}if(r==="check-update"){await(await import("./chunks/core-commands-5TNBVR72.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-PLQJOP4P.js")).printHelp();return}let n=c(o),p=m(o);if(n&&(process.env.OPENPOND_ACCOUNT=n),p&&(process.env.OPENPOND_BASE_URL=p),r==="tui"){await(await import("./chunks/app-layer-JCEWGUDH.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-JCEWGUDH.js")).runOpenPondServerCommand("web",o,t);return}await u({command:i,options:o,rest:t})||((await import("./chunks/help-PLQJOP4P.js")).printHelp(),process.exit(1))}s(w,"runOpenPondCli");async function P(e){if(e[0]==="__dataset-preparation-authoring")return await(await import("./chunks/dataset-preparation-authoring-UUYFWWCT.js")).runDatasetPreparationAuthoringCli(e.slice(1)),!0;if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-VG2WE7XZ.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-PTGQLPZO.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileCompilerCli(e.slice(1)),!0;if(e[0]==="__app-server"){process.argv=[process.execPath,"openpond-app-server",...e.slice(1)];let[{createOpenPondAppServer:i},{runOpenPondAppServerCli:o}]=await Promise.all([import("./chunks/app-server-runtime-43MCH5SY.js"),import("./chunks/cli-R7TAP6Z2.js")]);return await o(i),!0}if(e[0]==="__server"){process.argv=[process.execPath,"openpond-server",...e.slice(1)];let[{createOpenPondServer:i},{runOpenPondServerCli:o}]=await Promise.all([import("./chunks/src-MT4B43TD.js"),import("./chunks/cli-R7TAP6Z2.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-43MCH5SY.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-C3ZUESMK.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(P,"runEmbeddedCompanion");w().catch(async e=>{if(e instanceof d){process.exitCode=e.exitCode;return}let i=e instanceof Error?e.message:String(e),o=e.issue,t=(await import("./chunks/training-error-WF463UNZ.js")).trainingCliError(e);if(process.argv.includes("--json")&&!(e instanceof Error&&e.name==="OpenPondChildProcessExitError"))console.log(JSON.stringify({error:o??t??{code:"CLI_ERROR",message:i}}));else if(o&&typeof o=="object"){let n=o;console.error(`${n.code}: ${n.message}
4
4
  ${n.path}
5
5
  ${n.action}`)}else console.error(t?`${t.code}: ${i}`:i);let r=typeof e.exitCode=="number"?e.exitCode:1;process.exit(r)});export{w 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 Qe}from"./chunks/chunk-Q34IF4PW.js";import{a as fe,b as $e,c as ge,d as ye,e as Ve,f as Re,g as Ae,h as Ye,i as Ce,j as Oe}from"./chunks/chunk-6XSSM4WT.js";import{a as ze,b as de,c as Je}from"./chunks/chunk-22UARBPW.js";import"./chunks/chunk-X37KMV27.js";import{A as zt,B as Jt,C as $t,D as Vt,E as Yt,F as Qt,G as Xt,H as Zt,I as en,J as tn,K as nn,L as on,b as Ot,c as St,d as Tt,e as Pt,f as wt,g as Et,h as xt,i as bt,j as Lt,k as Bt,l as Dt,m as It,n as vt,o as Ut,p as Mt,q as _t,r as Ht,s as Nt,t as qt,u as kt,v as Kt,w as Ft,x as Gt,y as jt,z as Wt}from"./chunks/chunk-EBOTNBUS.js";import"./chunks/chunk-PWKJ5KLZ.js";import{A as J,B as $,C as V,D as Y,E as Q,F as X,G as Z,H as ee,I as te,J as ne,K as oe,L as se,M as re,N as ae,O as je,P as le,T as We,U as pe,V as ie,W as ce,X as ue,Y as me,Z as he,_ as Ct,a as ke,b as E,c as x,d as b,e as L,f as B,g as D,h as I,i as v,j as Ke,k as U,m as Fe,n as M,o as _,p as H,q as N,r as q,s as Ge,t as k,u as K,v as F,w as G,x as j,y as W,z}from"./chunks/chunk-CRDKBFRN.js";import"./chunks/chunk-4JJ4RYIB.js";import{a as Rt,b as At}from"./chunks/chunk-27JGS3KB.js";import"./chunks/chunk-BT5YNE5U.js";import{a as Be,b as De,c as Ie,d as ve,e as Ue,f as Me,g as _e,h as He,i as Ne}from"./chunks/chunk-3WJQ4IGK.js";import{a as qe}from"./chunks/chunk-KTIBXRWQ.js";import"./chunks/chunk-2UZHLO2V.js";import"./chunks/chunk-R6MMWEH4.js";import"./chunks/chunk-TBODQT4W.js";import"./chunks/chunk-TV2LE2BD.js";import"./chunks/chunk-OE2OOWEQ.js";import"./chunks/chunk-RRWL5BHZ.js";import"./chunks/chunk-NXN7GJOH.js";import"./chunks/chunk-TERKCK4I.js";import"./chunks/chunk-UNE52L3Y.js";import"./chunks/chunk-5HPZGLOL.js";import{a as P,b as w,c as be,d as Le}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-2LJCJOJ7.js";import"./chunks/chunk-AMC4Z7G4.js";import"./chunks/chunk-LK77GI6M.js";import"./chunks/chunk-HVM2GUM3.js";import"./chunks/chunk-JCLTFDVW.js";import"./chunks/chunk-I6VMRQF4.js";import"./chunks/chunk-QAFXQHHG.js";import"./chunks/chunk-OKKNDQJF.js";import"./chunks/chunk-AJXWJLZA.js";import"./chunks/chunk-3A7HZJNE.js";import{a as sn,b as rn,c as an,d as ln,e as pn,f as cn,g as un,h as mn,i as hn,j as dn,k as fn,l as gn,m as yn,n as Rn,o as An,p as Cn,q as On,r as Sn,s as Tn,t as Pn,u as wn}from"./chunks/chunk-JFZ6USNQ.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-XHU4BZQY.js";import"./chunks/chunk-ZY32SZ2P.js";import"./chunks/chunk-OTDDXEQ6.js";import"./chunks/chunk-ECOH24MC.js";import"./chunks/chunk-SH7POUVX.js";import"./chunks/chunk-2MEOUS24.js";import"./chunks/chunk-HNQPEOJD.js";import"./chunks/chunk-RCT3O3HQ.js";import"./chunks/chunk-ZFJWA4JK.js";import"./chunks/chunk-X2J2P5ZT.js";import"./chunks/chunk-UGOK7VTC.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function Xe(t,e=14){if(t.length<e+1)return null;let r=0,o=0;for(let l=1;l<=e;l+=1){let m=t[l]-t[l-1];m>=0?r+=m:o-=m}let a=r/e,i=o/e;for(let l=e+1;l<t.length;l+=1){let m=t[l]-t[l-1],d=m>0?m:0,n=m<0?-m:0;a=(a*(e-1)+d)/e,i=(i*(e-1)+n)/e}return i===0?100:100-100/(1+a/i)}s(Xe,"computeRsi");function T(t,e){if(t.length<e)return[];let r=[],o=0;for(let a=0;a<t.length;a+=1)o+=t[a],a>=e&&(o-=t[a-e]),a>=e-1&&r.push(o/e);return r}s(T,"computeSmaSeries");function Ze(t,e){let r=T(t,e);return r.length>0?r[r.length-1]:null}s(Ze,"computeSma");function A(t,e){if(t.length<e)return[];let r=2/(e+1),a=t.slice(0,e).reduce((p,l)=>p+l,0)/e,i=[a];for(let p=e;p<t.length;p+=1)a=t[p]*r+a*(1-r),i.push(a);return i}s(A,"computeEmaSeries");function et(t,e){let r=A(t,e);return r.length>0?r[r.length-1]:null}s(et,"computeEma");function tt(t){let e=A(t,12),r=A(t,26);if(e.length===0||r.length===0)return null;let o=e.length-r.length,a=r.map((m,d)=>e[d+o]-m),i=A(a,9);if(i.length===0)return null;let p=a[a.length-1],l=i[i.length-1];return{macd:p,signalLine:l,histogram:p-l}}s(tt,"computeMacd");function nt(t,e,r,o){if(t.length<o)return null;let a=e==="ema"?A(t,r):T(t,r),i=e==="ema"?A(t,o):T(t,o);if(a.length===0||i.length===0)return null;let p=a.length-i.length;if(p<0)return null;let l=i.length-1,m=a[l+p],d=i[l],n=l-1,c=n>=0?a[n+p]:null,u=n>=0?i[n]:null,h="neutral";return c!=null&&u!=null?c<=u&&m>d?h="bullish-cross":c>=u&&m<d?h="bearish-cross":m>d?h="bullish":m<d&&(h="bearish"):m>d?h="bullish":m<d&&(h="bearish"),{fast:m,slow:d,signal:h}}s(nt,"computeMaCross");function ot(t,e=20,r=2){if(t.length<e)return null;let o=t.slice(-e),a=o.reduce((l,m)=>l+m,0)/e,i=o.reduce((l,m)=>l+Math.pow(m-a,2),0)/e,p=Math.sqrt(i);return{middle:a,upper:a+r*p,lower:a-r*p}}s(ot,"computeBollinger");function st(t,e=24){if(t.length<2)return null;let r=t[t.length-1],o=Math.max(0,t.length-1-e),a=t[o];if(a===0)return null;let i=(r-a)/a*100;return{previous:a,percent:i}}s(st,"computePriceChange");function rt(t,e=14){if(t.length<e+1)return null;let r=[];for(let i=1;i<t.length;i+=1){let p=t[i],l=t[i-1],m=p.high-p.low,d=Math.abs(p.high-l.close),n=Math.abs(p.low-l.close);r.push(Math.max(m,d,n))}return r.length<e?null:r.slice(-e).reduce((i,p)=>i+p,0)/e}s(rt,"computeAtr");function Te(t){return t.replace(/\/$/,"")}s(Te,"resolveUrl");function at(t){let e=process.env.OPENPOND_BASE_URL,r=t.baseUrl||e||P;return Te(r.trim())}s(at,"resolveBaseUrl");function lt(t){let e=process.env.OPENPOND_API_URL,r=t.apiUrl||e||w;return Te(r.trim())}s(lt,"resolveApiUrl");function pt(t,e){return fe({apiBaseUrl:e,opChatApiBaseUrl:t.opChatApiUrl,chatApiBaseUrl:t.chatApiUrl})}s(pt,"resolveChatApiUrl");function it(t,e){let r=process.env.OPENPOND_TOOL_URL,o=t.toolUrl||r||e;return Te(o.trim())}s(it,"resolveToolUrl");function ct(t){let e=t.apiKey?.trim();if(e)return e;let r=process.env.OPENPOND_API_KEY?.trim();if(r)return r;throw new Error("OPENPOND_API_KEY is required")}s(ct,"resolveApiKey");function ut(t){let e=t.split("/").filter(Boolean);if(e.length!==2)throw new Error("expected <handle>/<repo>");return{handle:e[0],repo:e[1]}}s(ut,"parseHandleRepo");function Pe(t){return(t||"").trim().toLowerCase()}s(Pe,"normalizeRepoName");function mt(t){if(!t||typeof t!="object")return{name:"unknown",raw:t};let e=t,r=e.profile||e.function,o=typeof e.name=="string"?e.name:typeof r?.name=="string"?r.name:"unknown",a=typeof e.description=="string"?e.description:typeof r?.description=="string"?r.description:void 0;return{name:o,description:a,raw:t}}s(mt,"normalizeToolSummary");function ht(t){if(!t)return[];if(Array.isArray(t.toolsJson))return t.toolsJson;if(t.metadataJson&&typeof t.metadataJson=="object"){let e=t.metadataJson.tools;if(Array.isArray(e))return e}return[]}s(ht,"extractDeploymentTools");async function O(t){let{handle:e,repo:r}=ut(t.target),o=await Se({apiBase:t.apiBase,apiKey:t.apiKey,useCache:t.useCache,cacheTtlMs:t.cacheTtlMs,forceRefresh:t.forceRefresh}),a=Pe(r),i=o.find(p=>p.handle&&p.handle!==e?!1:[p.repo,p.gitRepo,p.id].map(Pe).includes(a));if(!i)throw new Error(`app not found for ${e}/${r}`);return{app:i,handle:e,repo:r}}s(O,"resolveAppTarget");async function Se(t){if(t.useCache&&!t.forceRefresh){let r=await ce({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(r)return r}let e=await v(t.apiBase,t.apiKey);return t.useCache&&await ue({apiBase:t.apiBase,apiKey:t.apiKey,apps:e}),e}s(Se,"fetchAppsWithCache");async function we(t){if(t.useCache&&!t.forceRefresh){let o=await me({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(o)return o}let e=await k(t.apiBase,t.apiKey),r=Array.isArray(e.tools)?e.tools:[];return t.useCache&&await he({apiBase:t.apiBase,apiKey:t.apiKey,tools:r}),r}s(we,"fetchToolsWithCache");function dt(t){if(!t)return"POST";let e=t.toUpperCase();switch(e){case"GET":case"POST":case"PUT":case"DELETE":return e;default:throw new Error("method must be GET, POST, PUT, or DELETE")}}s(dt,"normalizeMethod");async function ft(t,e){let r,o,a;return await de(t,{...e,onConversationId:s(i=>{r=i,e?.onConversationId?.(i)},"onConversationId"),onItems:s(i=>{for(let p of i){let l=p;!o&&typeof l.appId=="string"&&(o=l.appId,e?.onAppId?.(l.appId)),!a&&typeof l.deploymentId=="string"&&(a=l.deploymentId,e?.onDeploymentId?.(l.deploymentId))}e?.onItems?.(i)},"onItems")}),{conversationId:r,appId:o,deploymentId:a}}s(ft,"consumeAgentCreateStream");function vn(t){let e=ct(t),r=at(t),o=lt(t),a=pt(t,o),i=it(t,r),p=t.cacheTtlMs??ie,l=t.useCache!==!1,m=s(async()=>{l&&await Promise.all([Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0}),we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0})])},"refreshCache"),d=s(async(n,c)=>(await D(o,e,n,{branch:c}))?.id??null,"resolveLatestDeploymentId");return{baseUrl:r,apiUrl:o,chatApiUrl:a,toolUrl:i,apiKey:e,account:{get:s(async()=>se(o,e),"get"),health:s(async()=>re(o,e),"health")},chat:{providers:s(async()=>Re({apiBaseUrl:a,token:e}),"providers"),provider:s(async n=>Ae({apiBaseUrl:a,token:e,provider:n}),"provider"),models:s(async()=>ge({apiBaseUrl:a,token:e}),"models"),model:s(async n=>ye({apiBaseUrl:a,token:e,model:n}),"model"),send:s(async n=>Ce({...n,apiBaseUrl:a,token:e}),"send"),stream:s(n=>Oe({...n,apiBaseUrl:a,token:e}),"stream")},tool:{list:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)return{app:u,deploymentId:null,tools:[]};let g=await I(o,e,h),y=ht(g).map(mt);return{app:u,deploymentId:h,tools:y}},"list"),run:s(async(n,c,u)=>{let{app:h}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:u?.forceRefresh}),g=u?.deploymentId||await d(h.id,u?.branch);if(!g)throw new Error("no deployments found");let f=dt(u?.method);return pe(i,e,{appId:h.id,deploymentId:g,toolName:c,method:f,body:u?.body,headers:u?.headers})},"run")},deploy:{watch:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)throw new Error("no deployments found");let g=c?.intervalMs??5e3,f=c?.timeoutMs??240*1e3,y=[],S=new Set,Ee=Date.now(),R=null;for(;Date.now()-Ee<f;){let xe=await L(o,e,h);for(let C of xe)S.has(C.id)||(S.add(C.id),y.push(C),c?.onLog?.(C));if(R=(await B(o,e,h)).status??null,c?.onStatus?.(R),R==="failed")return{deploymentId:h,status:R,logs:y};if(R==="running"||R==="deployed")return{deploymentId:h,status:R,logs:y};await new Promise(C=>setTimeout(C,g))}return{deploymentId:h,status:"timeout",logs:y}},"watch")},template:{status:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return M(o,e,u.id)},"status"),branches:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return _(o,e,u.id)},"branches"),update:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.environment==="preview"?"preview":"production";return H(o,e,u.id,{environment:h})},"update")},opentool:{recipesList:s(async(n={})=>F(o,e,n),"recipesList"),recipesSearch:s(async n=>G(o,e,n),"recipesSearch"),recipeGet:s(async n=>j(o,e,n),"recipeGet"),rulesGet:s(async n=>W(o,e,n),"rulesGet")},apps:{list:s(async n=>{let c=await Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh});return n?.handle?c.filter(u=>u.handle===n.handle):c},"list"),tools:s(async n=>we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh}),"tools"),performance:s(async n=>ne(o,e,{appId:n?.appId}),"performance"),summary:s(async n=>oe(o,e,n.appId),"summary"),schedules:s(async n=>K(o,e,n.appId),"schedules"),schedulesStart:s(async n=>{let{appId:c,...u}=n;return z(o,e,c,u)},"schedulesStart"),schedulesStop:s(async n=>J(o,e,n.appId),"schedulesStop"),schedulesStopCurrent:s(async()=>$(o,e),"schedulesStopCurrent"),scheduleRunNow:s(async n=>V(o,e,n),"scheduleRunNow"),scheduleDelete:s(async n=>Y(o,e,n.appId,n.scheduleId),"scheduleDelete"),scheduleExecutionLogs:s(async n=>Q(o,e,n.scheduleId,{limit:n.limit}),"scheduleExecutionLogs"),scheduleExecutionLog:s(async n=>Z(o,e,n.runId),"scheduleExecutionLog"),deploymentScheduleExecutionLogs:s(async n=>X(o,e,n.deploymentId,{limit:n.limit}),"deploymentScheduleExecutionLogs"),executionTimeline:s(async n=>ee(o,e,n.appId,{limit:n.limit}),"executionTimeline"),assistantRun:s(async n=>ae(o,e,n),"assistantRun"),agentCreate:s(async(n,c)=>{let{refreshCache:u,...h}=n,g={...h,streamDeployLogs:h.streamDeployLogs??!0},f=await te(o,e,g);if(!f.ok){let S=await f.text().catch(()=>"");throw new Error(`agent create failed: ${f.status} ${S}`)}let y=await ft(f,c);if(l&&u!==!1)try{await m()}catch{}return y},"agentCreate"),toolsExecute:s(async n=>le(o,e,n),"toolsExecute"),deploy:s(async n=>E(o,e,n.appId,{environment:n.environment,commitSha:n.commitSha,branch:n.branch}),"deploy"),startApp:s(async n=>{let{appId:c,...u}=n;return b(o,e,c,u)},"startApp"),promotePreview:s(async n=>{let{appId:c,...u}=n;return x(o,e,c,u)},"promotePreview"),envGet:s(async n=>q(o,e,n.appId),"envGet"),envSet:s(async n=>N(o,e,n.appId,{envVars:n.envVars}),"envSet")},repo:{create:s(async n=>{let{refreshCache:c,...u}=n,h=await U(o,e,u);if(l&&c!==!1)try{await m()}catch{}return h},"create")},cache:{refresh:m}}}s(vn,"createClient");export{ie as DEFAULT_CACHE_TTL_MS,It as DEFAULT_LOCAL_PROFILE,w as DEFAULT_OPENPOND_API_BASE_URL,Le as DEFAULT_OPENPOND_CHAT_API_BASE_URL,be as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,P as DEFAULT_OPENPOND_WEB_BASE_URL,vt as DEFAULT_PROFILE_AGENT,an as OPENPOND_MANIFEST_FILE_NAME,Ot as OpenPondProfileSetupRequiredError,Rt as OpenPondSandboxClient,Dt as PROFILE_MANIFEST,Bt as PROFILE_REPO_MANIFEST,Ct as SANDBOX_RUNTIME_PROFILE_IDS,ln as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,pn as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,rn as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,sn as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,cn as SandboxTemplateManifestSchema,un as SandboxTemplateValidationDiagnosticSchema,qe as apiFetch,Tt as assertOpenPondProfileActionReady,St as buildOpenPondProfileSetupGate,re as checkOpenPondApiHealth,wt as collectProfileSourceUploadEntries,tn as commitActiveProfileChanges,ke as commitFiles,rt as computeAtr,ot as computeBollinger,et as computeEma,A as computeEmaSeries,nt as computeMaCross,tt as computeMacd,st as computePriceChange,Xe as computeRsi,Ze as computeSma,T as computeSmaSeries,ft as consumeAgentCreateStream,de as consumeStream,te as createAgentFromPrompt,vn as createClient,Fe as createHeadlessApps,Ke as createLocalProject,At as createOpenPondSandboxClient,U as createRepo,_t as defaultLocalProfileRepoPath,gn as defineSandboxTemplate,Y as deleteOrArchiveSchedule,E as deployApp,H as deployLatestTemplate,Ht as emptyProfileState,pe as executeHostedTool,le as executeUserTool,Ge as fetchToolManifest,Pt as formatOpenPondProfileSetupRequirement,fn as formatSandboxTemplateDiagnostics,Je as formatStreamItem,q as getAppEnvironment,ee as getAppExecutionTimeline,oe as getAppRuntimeSummary,ce as getCachedApps,me as getCachedTools,Be as getConfigPath,I as getDeploymentDetail,L as getDeploymentLogs,B as getDeploymentStatus,D as getLatestDeploymentForApp,ye as getOpChatModel,Ae as getOpChatProvider,se as getOpenPondAccount,j as getOpenToolRecipe,W as getOpenToolRules,Z as getScheduleExecutionLog,M as getTemplateStatus,ne as getUserPerformance,xt as hostedPublishStatusFromPayload,Lt as hostedRunStatusFromRunSummary,bt as hostedRunSummaryFromPayload,Et as hostedSourceCheckStatusFromPayload,Nt as initLocalProfileRepo,Vt as inspectOpenPondProfileSource,Ft as installAgentPackageIntoActiveProfile,K as listAppSchedules,v as listApps,Ue as listConfiguredProfiles,X as listDeploymentScheduleExecutionLogs,Ve as listHostedModels,Ye as listHostedProviders,ge as listOpChatModels,Re as listOpChatProviders,F as listOpenToolRecipes,Q as listScheduleExecutionLogs,_ as listTemplateBranches,k as listUserTools,ve as loadConfig,Ie as loadGlobalConfig,qt as loadLocalProfileRepo,Wt as loadOpenPondProfileLibrary,Gt as loadOpenPondProfileState,zt as loadOpenPondProfileStateForRef,Yt as loadOpenPondProfileStateFromSource,Mt as mergeActiveLocalProfileConfig,Ut as mergeProfileRepoManifestEntry,ze as normalizeDataFrames,yt as normalizeSandboxApiUrl,jt as openPondProfileRef,dn as parseSandboxTemplateYaml,je as postAgentDigest,on as prepareAgentSdkRuntimePackage,x as promotePreviewToProduction,kt as registerLocalProfileRepo,$t as removeOpenPondProfile,Kt as renameActiveProfileAgent,Qt as requireActiveLocalProfile,$e as resolveHostedChatApiBaseUrl,fe as resolveOpChatApiBaseUrl,We as resolveWorkerBaseUrl,Zt as runAgentSdkProjectCommand,ae as runAssistantMode,Qe as runOpChatSmoke,en as runProfileCheck,Xt as runProfileSdkCommand,V as runScheduleNow,Sn as sandboxTemplateBuildMetadata,Tn as sandboxTemplateBuildPlan,Rn as sandboxTemplateDurableVolume,On as sandboxTemplateExecutableEntries,Cn as sandboxTemplateFileInput,wn as sandboxTemplateJsonSchema,An as sandboxTemplatePreviewPort,yn as sandboxTemplateResources,Pn as sandboxTemplateScaffoldFiles,He as saveConfig,Ne as saveGlobalConfig,_e as saveProfileApiKey,nn as saveProfilePushStatus,G as searchOpenToolRecipes,Jt as selectOpenPondProfile,Ce as sendHostedChatTurn,Me as setActiveProfile,ue as setCachedApps,he as setCachedTools,b as startAppLifecycle,z as startAppSchedules,J as stopAppSchedules,$ as stopCurrentAppSchedules,Oe as streamHostedChatTurn,N as updateAppEnvironment,De as updateGlobalConfig,hn as validateSandboxTemplateManifest,mn as validateSandboxTemplateYaml};
2
+ import{a as Qe}from"./chunks/chunk-Q34IF4PW.js";import{a as fe,b as $e,c as ge,d as ye,e as Ve,f as Re,g as Ae,h as Ye,i as Ce,j as Oe}from"./chunks/chunk-6XSSM4WT.js";import{a as ze,b as de,c as Je}from"./chunks/chunk-22UARBPW.js";import"./chunks/chunk-X37KMV27.js";import{A as zt,B as Jt,C as $t,D as Vt,E as Yt,F as Qt,G as Xt,H as Zt,I as en,J as tn,K as nn,L as on,b as Ot,c as St,d as Tt,e as Pt,f as wt,g as Et,h as xt,i as bt,j as Lt,k as Bt,l as Dt,m as It,n as vt,o as Ut,p as Mt,q as _t,r as Ht,s as Nt,t as qt,u as kt,v as Kt,w as Ft,x as Gt,y as jt,z as Wt}from"./chunks/chunk-NRYC4NH6.js";import"./chunks/chunk-EXYSD45J.js";import{A as J,B as $,C as V,D as Y,E as Q,F as X,G as Z,H as ee,I as te,J as ne,K as oe,L as se,M as re,N as ae,O as je,P as le,T as We,U as pe,V as ie,W as ce,X as ue,Y as me,Z as he,_ as Ct,a as ke,b as E,c as x,d as b,e as L,f as B,g as D,h as I,i as v,j as Ke,k as U,m as Fe,n as M,o as _,p as H,q as N,r as q,s as Ge,t as k,u as K,v as F,w as G,x as j,y as W,z}from"./chunks/chunk-JEMECEQH.js";import"./chunks/chunk-Z5CQXPIS.js";import{a as Rt,b as At}from"./chunks/chunk-7EQLW2KM.js";import"./chunks/chunk-BT5YNE5U.js";import{a as Be,b as De,c as Ie,d as ve,e as Ue,f as Me,g as _e,h as He,i as Ne}from"./chunks/chunk-RPM4FDRX.js";import{a as qe}from"./chunks/chunk-KTIBXRWQ.js";import"./chunks/chunk-KP2MYTP5.js";import"./chunks/chunk-PNPV2LDE.js";import"./chunks/chunk-4G3GTEVS.js";import"./chunks/chunk-KU4TPDPH.js";import"./chunks/chunk-55YD4UTW.js";import"./chunks/chunk-AFYYIJ6K.js";import"./chunks/chunk-J256AEEE.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-2LJCJOJ7.js";import"./chunks/chunk-AMC4Z7G4.js";import"./chunks/chunk-LK77GI6M.js";import"./chunks/chunk-HVM2GUM3.js";import"./chunks/chunk-I6VMRQF4.js";import"./chunks/chunk-D6L6UNUQ.js";import"./chunks/chunk-AJXWJLZA.js";import"./chunks/chunk-OKKNDQJF.js";import"./chunks/chunk-4PUOWSDE.js";import"./chunks/chunk-ZY32SZ2P.js";import"./chunks/chunk-OTDDXEQ6.js";import"./chunks/chunk-ECOH24MC.js";import"./chunks/chunk-3A7HZJNE.js";import{a as sn,b as rn,c as an,d as ln,e as pn,f as cn,g as un,h as mn,i as hn,j as dn,k as fn,l as gn,m as yn,n as Rn,o as An,p as Cn,q as On,r as Sn,s as Tn,t as Pn,u as wn}from"./chunks/chunk-G7X73SBG.js";import{a as P,b as w,c as be,d as Le}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-JCLTFDVW.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-SV7ZBEK2.js";import"./chunks/chunk-2MEOUS24.js";import"./chunks/chunk-HNQPEOJD.js";import"./chunks/chunk-RCT3O3HQ.js";import"./chunks/chunk-UGOK7VTC.js";import"./chunks/chunk-TBODQT4W.js";import"./chunks/chunk-5HPZGLOL.js";import"./chunks/chunk-ZFJWA4JK.js";import"./chunks/chunk-X2J2P5ZT.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function Xe(t,e=14){if(t.length<e+1)return null;let r=0,o=0;for(let l=1;l<=e;l+=1){let m=t[l]-t[l-1];m>=0?r+=m:o-=m}let a=r/e,i=o/e;for(let l=e+1;l<t.length;l+=1){let m=t[l]-t[l-1],d=m>0?m:0,n=m<0?-m:0;a=(a*(e-1)+d)/e,i=(i*(e-1)+n)/e}return i===0?100:100-100/(1+a/i)}s(Xe,"computeRsi");function T(t,e){if(t.length<e)return[];let r=[],o=0;for(let a=0;a<t.length;a+=1)o+=t[a],a>=e&&(o-=t[a-e]),a>=e-1&&r.push(o/e);return r}s(T,"computeSmaSeries");function Ze(t,e){let r=T(t,e);return r.length>0?r[r.length-1]:null}s(Ze,"computeSma");function A(t,e){if(t.length<e)return[];let r=2/(e+1),a=t.slice(0,e).reduce((p,l)=>p+l,0)/e,i=[a];for(let p=e;p<t.length;p+=1)a=t[p]*r+a*(1-r),i.push(a);return i}s(A,"computeEmaSeries");function et(t,e){let r=A(t,e);return r.length>0?r[r.length-1]:null}s(et,"computeEma");function tt(t){let e=A(t,12),r=A(t,26);if(e.length===0||r.length===0)return null;let o=e.length-r.length,a=r.map((m,d)=>e[d+o]-m),i=A(a,9);if(i.length===0)return null;let p=a[a.length-1],l=i[i.length-1];return{macd:p,signalLine:l,histogram:p-l}}s(tt,"computeMacd");function nt(t,e,r,o){if(t.length<o)return null;let a=e==="ema"?A(t,r):T(t,r),i=e==="ema"?A(t,o):T(t,o);if(a.length===0||i.length===0)return null;let p=a.length-i.length;if(p<0)return null;let l=i.length-1,m=a[l+p],d=i[l],n=l-1,c=n>=0?a[n+p]:null,u=n>=0?i[n]:null,h="neutral";return c!=null&&u!=null?c<=u&&m>d?h="bullish-cross":c>=u&&m<d?h="bearish-cross":m>d?h="bullish":m<d&&(h="bearish"):m>d?h="bullish":m<d&&(h="bearish"),{fast:m,slow:d,signal:h}}s(nt,"computeMaCross");function ot(t,e=20,r=2){if(t.length<e)return null;let o=t.slice(-e),a=o.reduce((l,m)=>l+m,0)/e,i=o.reduce((l,m)=>l+Math.pow(m-a,2),0)/e,p=Math.sqrt(i);return{middle:a,upper:a+r*p,lower:a-r*p}}s(ot,"computeBollinger");function st(t,e=24){if(t.length<2)return null;let r=t[t.length-1],o=Math.max(0,t.length-1-e),a=t[o];if(a===0)return null;let i=(r-a)/a*100;return{previous:a,percent:i}}s(st,"computePriceChange");function rt(t,e=14){if(t.length<e+1)return null;let r=[];for(let i=1;i<t.length;i+=1){let p=t[i],l=t[i-1],m=p.high-p.low,d=Math.abs(p.high-l.close),n=Math.abs(p.low-l.close);r.push(Math.max(m,d,n))}return r.length<e?null:r.slice(-e).reduce((i,p)=>i+p,0)/e}s(rt,"computeAtr");function Te(t){return t.replace(/\/$/,"")}s(Te,"resolveUrl");function at(t){let e=process.env.OPENPOND_BASE_URL,r=t.baseUrl||e||P;return Te(r.trim())}s(at,"resolveBaseUrl");function lt(t){let e=process.env.OPENPOND_API_URL,r=t.apiUrl||e||w;return Te(r.trim())}s(lt,"resolveApiUrl");function pt(t,e){return fe({apiBaseUrl:e,opChatApiBaseUrl:t.opChatApiUrl,chatApiBaseUrl:t.chatApiUrl})}s(pt,"resolveChatApiUrl");function it(t,e){let r=process.env.OPENPOND_TOOL_URL,o=t.toolUrl||r||e;return Te(o.trim())}s(it,"resolveToolUrl");function ct(t){let e=t.apiKey?.trim();if(e)return e;let r=process.env.OPENPOND_API_KEY?.trim();if(r)return r;throw new Error("OPENPOND_API_KEY is required")}s(ct,"resolveApiKey");function ut(t){let e=t.split("/").filter(Boolean);if(e.length!==2)throw new Error("expected <handle>/<repo>");return{handle:e[0],repo:e[1]}}s(ut,"parseHandleRepo");function Pe(t){return(t||"").trim().toLowerCase()}s(Pe,"normalizeRepoName");function mt(t){if(!t||typeof t!="object")return{name:"unknown",raw:t};let e=t,r=e.profile||e.function,o=typeof e.name=="string"?e.name:typeof r?.name=="string"?r.name:"unknown",a=typeof e.description=="string"?e.description:typeof r?.description=="string"?r.description:void 0;return{name:o,description:a,raw:t}}s(mt,"normalizeToolSummary");function ht(t){if(!t)return[];if(Array.isArray(t.toolsJson))return t.toolsJson;if(t.metadataJson&&typeof t.metadataJson=="object"){let e=t.metadataJson.tools;if(Array.isArray(e))return e}return[]}s(ht,"extractDeploymentTools");async function O(t){let{handle:e,repo:r}=ut(t.target),o=await Se({apiBase:t.apiBase,apiKey:t.apiKey,useCache:t.useCache,cacheTtlMs:t.cacheTtlMs,forceRefresh:t.forceRefresh}),a=Pe(r),i=o.find(p=>p.handle&&p.handle!==e?!1:[p.repo,p.gitRepo,p.id].map(Pe).includes(a));if(!i)throw new Error(`app not found for ${e}/${r}`);return{app:i,handle:e,repo:r}}s(O,"resolveAppTarget");async function Se(t){if(t.useCache&&!t.forceRefresh){let r=await ce({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(r)return r}let e=await v(t.apiBase,t.apiKey);return t.useCache&&await ue({apiBase:t.apiBase,apiKey:t.apiKey,apps:e}),e}s(Se,"fetchAppsWithCache");async function we(t){if(t.useCache&&!t.forceRefresh){let o=await me({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(o)return o}let e=await k(t.apiBase,t.apiKey),r=Array.isArray(e.tools)?e.tools:[];return t.useCache&&await he({apiBase:t.apiBase,apiKey:t.apiKey,tools:r}),r}s(we,"fetchToolsWithCache");function dt(t){if(!t)return"POST";let e=t.toUpperCase();switch(e){case"GET":case"POST":case"PUT":case"DELETE":return e;default:throw new Error("method must be GET, POST, PUT, or DELETE")}}s(dt,"normalizeMethod");async function ft(t,e){let r,o,a;return await de(t,{...e,onConversationId:s(i=>{r=i,e?.onConversationId?.(i)},"onConversationId"),onItems:s(i=>{for(let p of i){let l=p;!o&&typeof l.appId=="string"&&(o=l.appId,e?.onAppId?.(l.appId)),!a&&typeof l.deploymentId=="string"&&(a=l.deploymentId,e?.onDeploymentId?.(l.deploymentId))}e?.onItems?.(i)},"onItems")}),{conversationId:r,appId:o,deploymentId:a}}s(ft,"consumeAgentCreateStream");function vn(t){let e=ct(t),r=at(t),o=lt(t),a=pt(t,o),i=it(t,r),p=t.cacheTtlMs??ie,l=t.useCache!==!1,m=s(async()=>{l&&await Promise.all([Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0}),we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0})])},"refreshCache"),d=s(async(n,c)=>(await D(o,e,n,{branch:c}))?.id??null,"resolveLatestDeploymentId");return{baseUrl:r,apiUrl:o,chatApiUrl:a,toolUrl:i,apiKey:e,account:{get:s(async()=>se(o,e),"get"),health:s(async()=>re(o,e),"health")},chat:{providers:s(async()=>Re({apiBaseUrl:a,token:e}),"providers"),provider:s(async n=>Ae({apiBaseUrl:a,token:e,provider:n}),"provider"),models:s(async()=>ge({apiBaseUrl:a,token:e}),"models"),model:s(async n=>ye({apiBaseUrl:a,token:e,model:n}),"model"),send:s(async n=>Ce({...n,apiBaseUrl:a,token:e}),"send"),stream:s(n=>Oe({...n,apiBaseUrl:a,token:e}),"stream")},tool:{list:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)return{app:u,deploymentId:null,tools:[]};let g=await I(o,e,h),y=ht(g).map(mt);return{app:u,deploymentId:h,tools:y}},"list"),run:s(async(n,c,u)=>{let{app:h}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:u?.forceRefresh}),g=u?.deploymentId||await d(h.id,u?.branch);if(!g)throw new Error("no deployments found");let f=dt(u?.method);return pe(i,e,{appId:h.id,deploymentId:g,toolName:c,method:f,body:u?.body,headers:u?.headers})},"run")},deploy:{watch:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)throw new Error("no deployments found");let g=c?.intervalMs??5e3,f=c?.timeoutMs??240*1e3,y=[],S=new Set,Ee=Date.now(),R=null;for(;Date.now()-Ee<f;){let xe=await L(o,e,h);for(let C of xe)S.has(C.id)||(S.add(C.id),y.push(C),c?.onLog?.(C));if(R=(await B(o,e,h)).status??null,c?.onStatus?.(R),R==="failed")return{deploymentId:h,status:R,logs:y};if(R==="running"||R==="deployed")return{deploymentId:h,status:R,logs:y};await new Promise(C=>setTimeout(C,g))}return{deploymentId:h,status:"timeout",logs:y}},"watch")},template:{status:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return M(o,e,u.id)},"status"),branches:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return _(o,e,u.id)},"branches"),update:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.environment==="preview"?"preview":"production";return H(o,e,u.id,{environment:h})},"update")},opentool:{recipesList:s(async(n={})=>F(o,e,n),"recipesList"),recipesSearch:s(async n=>G(o,e,n),"recipesSearch"),recipeGet:s(async n=>j(o,e,n),"recipeGet"),rulesGet:s(async n=>W(o,e,n),"rulesGet")},apps:{list:s(async n=>{let c=await Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh});return n?.handle?c.filter(u=>u.handle===n.handle):c},"list"),tools:s(async n=>we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh}),"tools"),performance:s(async n=>ne(o,e,{appId:n?.appId}),"performance"),summary:s(async n=>oe(o,e,n.appId),"summary"),schedules:s(async n=>K(o,e,n.appId),"schedules"),schedulesStart:s(async n=>{let{appId:c,...u}=n;return z(o,e,c,u)},"schedulesStart"),schedulesStop:s(async n=>J(o,e,n.appId),"schedulesStop"),schedulesStopCurrent:s(async()=>$(o,e),"schedulesStopCurrent"),scheduleRunNow:s(async n=>V(o,e,n),"scheduleRunNow"),scheduleDelete:s(async n=>Y(o,e,n.appId,n.scheduleId),"scheduleDelete"),scheduleExecutionLogs:s(async n=>Q(o,e,n.scheduleId,{limit:n.limit}),"scheduleExecutionLogs"),scheduleExecutionLog:s(async n=>Z(o,e,n.runId),"scheduleExecutionLog"),deploymentScheduleExecutionLogs:s(async n=>X(o,e,n.deploymentId,{limit:n.limit}),"deploymentScheduleExecutionLogs"),executionTimeline:s(async n=>ee(o,e,n.appId,{limit:n.limit}),"executionTimeline"),assistantRun:s(async n=>ae(o,e,n),"assistantRun"),agentCreate:s(async(n,c)=>{let{refreshCache:u,...h}=n,g={...h,streamDeployLogs:h.streamDeployLogs??!0},f=await te(o,e,g);if(!f.ok){let S=await f.text().catch(()=>"");throw new Error(`agent create failed: ${f.status} ${S}`)}let y=await ft(f,c);if(l&&u!==!1)try{await m()}catch{}return y},"agentCreate"),toolsExecute:s(async n=>le(o,e,n),"toolsExecute"),deploy:s(async n=>E(o,e,n.appId,{environment:n.environment,commitSha:n.commitSha,branch:n.branch}),"deploy"),startApp:s(async n=>{let{appId:c,...u}=n;return b(o,e,c,u)},"startApp"),promotePreview:s(async n=>{let{appId:c,...u}=n;return x(o,e,c,u)},"promotePreview"),envGet:s(async n=>q(o,e,n.appId),"envGet"),envSet:s(async n=>N(o,e,n.appId,{envVars:n.envVars}),"envSet")},repo:{create:s(async n=>{let{refreshCache:c,...u}=n,h=await U(o,e,u);if(l&&c!==!1)try{await m()}catch{}return h},"create")},cache:{refresh:m}}}s(vn,"createClient");export{ie as DEFAULT_CACHE_TTL_MS,It as DEFAULT_LOCAL_PROFILE,w as DEFAULT_OPENPOND_API_BASE_URL,Le as DEFAULT_OPENPOND_CHAT_API_BASE_URL,be as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,P as DEFAULT_OPENPOND_WEB_BASE_URL,vt as DEFAULT_PROFILE_AGENT,an as OPENPOND_MANIFEST_FILE_NAME,Ot as OpenPondProfileSetupRequiredError,Rt as OpenPondSandboxClient,Dt as PROFILE_MANIFEST,Bt as PROFILE_REPO_MANIFEST,Ct as SANDBOX_RUNTIME_PROFILE_IDS,ln as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,pn as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,rn as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,sn as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,cn as SandboxTemplateManifestSchema,un as SandboxTemplateValidationDiagnosticSchema,qe as apiFetch,Tt as assertOpenPondProfileActionReady,St as buildOpenPondProfileSetupGate,re as checkOpenPondApiHealth,wt as collectProfileSourceUploadEntries,tn as commitActiveProfileChanges,ke as commitFiles,rt as computeAtr,ot as computeBollinger,et as computeEma,A as computeEmaSeries,nt as computeMaCross,tt as computeMacd,st as computePriceChange,Xe as computeRsi,Ze as computeSma,T as computeSmaSeries,ft as consumeAgentCreateStream,de as consumeStream,te as createAgentFromPrompt,vn as createClient,Fe as createHeadlessApps,Ke as createLocalProject,At as createOpenPondSandboxClient,U as createRepo,_t as defaultLocalProfileRepoPath,gn as defineSandboxTemplate,Y as deleteOrArchiveSchedule,E as deployApp,H as deployLatestTemplate,Ht as emptyProfileState,pe as executeHostedTool,le as executeUserTool,Ge as fetchToolManifest,Pt as formatOpenPondProfileSetupRequirement,fn as formatSandboxTemplateDiagnostics,Je as formatStreamItem,q as getAppEnvironment,ee as getAppExecutionTimeline,oe as getAppRuntimeSummary,ce as getCachedApps,me as getCachedTools,Be as getConfigPath,I as getDeploymentDetail,L as getDeploymentLogs,B as getDeploymentStatus,D as getLatestDeploymentForApp,ye as getOpChatModel,Ae as getOpChatProvider,se as getOpenPondAccount,j as getOpenToolRecipe,W as getOpenToolRules,Z as getScheduleExecutionLog,M as getTemplateStatus,ne as getUserPerformance,xt as hostedPublishStatusFromPayload,Lt as hostedRunStatusFromRunSummary,bt as hostedRunSummaryFromPayload,Et as hostedSourceCheckStatusFromPayload,Nt as initLocalProfileRepo,Vt as inspectOpenPondProfileSource,Ft as installAgentPackageIntoActiveProfile,K as listAppSchedules,v as listApps,Ue as listConfiguredProfiles,X as listDeploymentScheduleExecutionLogs,Ve as listHostedModels,Ye as listHostedProviders,ge as listOpChatModels,Re as listOpChatProviders,F as listOpenToolRecipes,Q as listScheduleExecutionLogs,_ as listTemplateBranches,k as listUserTools,ve as loadConfig,Ie as loadGlobalConfig,qt as loadLocalProfileRepo,Wt as loadOpenPondProfileLibrary,Gt as loadOpenPondProfileState,zt as loadOpenPondProfileStateForRef,Yt as loadOpenPondProfileStateFromSource,Mt as mergeActiveLocalProfileConfig,Ut as mergeProfileRepoManifestEntry,ze as normalizeDataFrames,yt as normalizeSandboxApiUrl,jt as openPondProfileRef,dn as parseSandboxTemplateYaml,je as postAgentDigest,on as prepareAgentSdkRuntimePackage,x as promotePreviewToProduction,kt as registerLocalProfileRepo,$t as removeOpenPondProfile,Kt as renameActiveProfileAgent,Qt as requireActiveLocalProfile,$e as resolveHostedChatApiBaseUrl,fe as resolveOpChatApiBaseUrl,We as resolveWorkerBaseUrl,Zt as runAgentSdkProjectCommand,ae as runAssistantMode,Qe as runOpChatSmoke,en as runProfileCheck,Xt as runProfileSdkCommand,V as runScheduleNow,Sn as sandboxTemplateBuildMetadata,Tn as sandboxTemplateBuildPlan,Rn as sandboxTemplateDurableVolume,On as sandboxTemplateExecutableEntries,Cn as sandboxTemplateFileInput,wn as sandboxTemplateJsonSchema,An as sandboxTemplatePreviewPort,yn as sandboxTemplateResources,Pn as sandboxTemplateScaffoldFiles,He as saveConfig,Ne as saveGlobalConfig,_e as saveProfileApiKey,nn as saveProfilePushStatus,G as searchOpenToolRecipes,Jt as selectOpenPondProfile,Ce as sendHostedChatTurn,Me as setActiveProfile,ue as setCachedApps,he as setCachedTools,b as startAppLifecycle,z as startAppSchedules,J as stopAppSchedules,$ as stopCurrentAppSchedules,Oe as streamHostedChatTurn,N as updateAppEnvironment,De as updateGlobalConfig,hn as validateSandboxTemplateManifest,mn as validateSandboxTemplateYaml};
@@ -1,4 +1,4 @@
1
- import type { OpenPondSandboxRuntimeHandle, SandboxExecInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxOpenPortInput, SandboxRecord, SandboxRuntime, SandboxRuntimeCheckpointInput, SandboxRuntimeEventInput, SandboxRuntimePromoteInput, SandboxRuntimePromoteResponse, SandboxRuntimeSourcePreserveInput, SandboxRuntimeSourcePreserveResponse, SandboxRuntimeSandboxCreateInput, SandboxRuntimeSandboxResponse, SandboxRuntimeTransitionInput, SandboxRuntimeEventsResponse, SandboxRuntimeEventResponse, SandboxAsyncRequestOptions, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileDeleteResponse, SandboxFileListResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxOpenPortResponse, SandboxExecResponse } from "./types/index.js";
1
+ import type { OpenPondSandboxRuntimeHandle, SandboxExecInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxOpenPortInput, SandboxRecord, SandboxRestoreInput, SandboxRestoreResponse, SandboxStartInput, SandboxRuntime, SandboxRuntimeCheckpointInput, SandboxRuntimeEventInput, SandboxRuntimePromoteInput, SandboxRuntimePromoteResponse, SandboxRuntimeSourcePreserveInput, SandboxRuntimeSourcePreserveResponse, SandboxRuntimeSandboxCreateInput, SandboxRuntimeSandboxResponse, SandboxRuntimeTransitionInput, SandboxRuntimeEventsResponse, SandboxRuntimeEventResponse, SandboxAsyncRequestOptions, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileDeleteResponse, SandboxFileListResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxOpenPortResponse, SandboxExecResponse } from "./types/index.js";
2
2
  export type SandboxRuntimeHandleClient = {
3
3
  getSandboxRuntime(runtimeId: string): Promise<SandboxRuntime>;
4
4
  createSandboxRuntimeSandbox(runtimeId: string, input?: SandboxRuntimeSandboxCreateInput, options?: SandboxAsyncRequestOptions): Promise<SandboxRuntimeSandboxResponse>;
@@ -13,12 +13,10 @@ export type SandboxRuntimeHandleClient = {
13
13
  teamId?: string;
14
14
  }): Promise<SandboxRuntimeSourcePreserveResponse>;
15
15
  get(sandboxId: string): Promise<SandboxRecord>;
16
- start(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<{
17
- sandbox: SandboxRecord;
18
- }>;
19
- restore(sandboxId: string): Promise<{
16
+ start(sandboxId: string, options?: SandboxAsyncRequestOptions & SandboxStartInput): Promise<{
20
17
  sandbox: SandboxRecord;
21
18
  }>;
19
+ restore(sandboxId: string, input?: SandboxRestoreInput): Promise<SandboxRestoreResponse>;
22
20
  uploadFile(sandboxId: string, path: string, contents: string): Promise<SandboxFileUploadResponse>;
23
21
  downloadFile(sandboxId: string, path: string): Promise<string>;
24
22
  downloadFileResponse(sandboxId: string, input: string | SandboxFileDownloadInput): Promise<SandboxFileDownloadResponse>;
@@ -1,5 +1,5 @@
1
1
  import { type ApiFetchOptions } from "../api/core.js";
2
- import type { SandboxIntegrationConnectionLeaseInput, SandboxCreateInput, SandboxCreateOptions, SandboxAsyncRequestOptions, SandboxForkInput, SandboxExecInput, SandboxProcessStartInput, SandboxPtyStartInput, SandboxPtyInput, SandboxOpenPortInput, SandboxGitDiffInput, SandboxGitPatchExportInput, SandboxGitBranchInput, SandboxGitCommitInput, SandboxGitPullInput, SandboxGitPushInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxReceipt, SandboxSnapshotValidateInput, SandboxSnapshotUpdateInput, SandboxSnapshotInput, SandboxRecord, SandboxIntegrationLeasesResponse, SandboxExecResponse, SandboxProcessStartResponse, SandboxProcessListResponse, SandboxProcessStatusResponse, SandboxProcessStopResponse, SandboxPtyStartResponse, SandboxPtyListResponse, SandboxPtyStatusResponse, SandboxPtyInputResponse, SandboxPtyStopResponse, SandboxOpenPortResponse, SandboxSnapshotResponse, SandboxSnapshotValidationResponse, SandboxForkResponse, SandboxReceiptResponse, SandboxLifecycleAcceptedResponse, SandboxStartResponse, SandboxRestoreResponse, SandboxGitStatusResponse, SandboxGitDiffResponse, SandboxGitPatchExportResponse, SandboxGitBranchResponse, SandboxGitCommitResponse, SandboxGitPullResponse, SandboxGitPushResponse, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileListResponse, SandboxFileDeleteResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxBillingStatusResponse, SandboxPricingResponse, SandboxCostSummaryResponse, OpenPondSandboxClientOptions } from "./types/index.js";
2
+ import type { SandboxIntegrationConnectionLeaseInput, SandboxCreateInput, SandboxCreateOptions, SandboxAsyncRequestOptions, SandboxForkInput, SandboxExecInput, SandboxProcessStartInput, SandboxPtyStartInput, SandboxPtyInput, SandboxOpenPortInput, SandboxGitDiffInput, SandboxGitPatchExportInput, SandboxGitBranchInput, SandboxGitCommitInput, SandboxGitPullInput, SandboxGitPushInput, SandboxFileDownloadInput, SandboxFileListInput, SandboxFileMkdirInput, SandboxFileMoveInput, SandboxFileSearchInput, SandboxReceipt, SandboxSnapshotValidateInput, SandboxSnapshotUpdateInput, SandboxSnapshotInput, SandboxSnapshotRetentionQuoteInput, SandboxSnapshotJobResponse, SandboxRestoreInput, SandboxStartInput, SandboxRecord, SandboxIntegrationLeasesResponse, SandboxExecResponse, SandboxProcessStartResponse, SandboxProcessListResponse, SandboxProcessStatusResponse, SandboxProcessStopResponse, SandboxPtyStartResponse, SandboxPtyListResponse, SandboxPtyStatusResponse, SandboxPtyInputResponse, SandboxPtyStopResponse, SandboxOpenPortResponse, SandboxSnapshotResponse, SandboxSnapshotValidationResponse, SandboxForkResponse, SandboxReceiptResponse, SandboxLifecycleAcceptedResponse, SandboxStartResponse, SandboxRestoreResponse, SandboxGitStatusResponse, SandboxGitDiffResponse, SandboxGitPatchExportResponse, SandboxGitBranchResponse, SandboxGitCommitResponse, SandboxGitPullResponse, SandboxGitPushResponse, SandboxFileUploadResponse, SandboxFileDownloadResponse, SandboxFileListResponse, SandboxFileDeleteResponse, SandboxFileMkdirResponse, SandboxFileMoveResponse, SandboxFileStatResponse, SandboxFileSearchResponse, SandboxBillingStatusResponse, SandboxPricingResponse, SandboxCostSummaryResponse, OpenPondSandboxClientOptions } from "./types/index.js";
3
3
  export declare class OpenPondSandboxInstanceClient {
4
4
  readonly apiKey: string;
5
5
  readonly apiRootUrl: string;
@@ -41,14 +41,20 @@ export declare class OpenPondSandboxInstanceClient {
41
41
  moveFile(sandboxId: string, input: SandboxFileMoveInput): Promise<SandboxFileMoveResponse>;
42
42
  searchFiles(sandboxId: string, input: SandboxFileSearchInput): Promise<SandboxFileSearchResponse>;
43
43
  openPort(sandboxId: string, input: SandboxOpenPortInput): Promise<SandboxOpenPortResponse>;
44
- createSnapshot(sandboxId: string, input: SandboxSnapshotInput): Promise<SandboxSnapshotResponse>;
44
+ createSnapshot(sandboxId: string, input: SandboxSnapshotInput & {
45
+ async: true;
46
+ }): Promise<SandboxSnapshotJobResponse>;
47
+ createSnapshot(sandboxId: string, input: SandboxSnapshotInput & {
48
+ async?: false;
49
+ }): Promise<SandboxSnapshotResponse>;
50
+ createSnapshot(sandboxId: string, input: SandboxSnapshotInput): Promise<SandboxSnapshotResponse | SandboxSnapshotJobResponse>;
45
51
  updateSnapshot(sandboxId: string, snapshotId: string, input: SandboxSnapshotUpdateInput): Promise<SandboxSnapshotResponse>;
46
52
  validateSnapshot(sandboxId: string, snapshotId: string, input?: SandboxSnapshotValidateInput): Promise<SandboxSnapshotValidationResponse>;
47
53
  publishSnapshot(sandboxId: string, snapshotId: string): Promise<SandboxSnapshotResponse>;
48
54
  fork(sandboxId: string, input?: SandboxForkInput): Promise<SandboxForkResponse>;
49
55
  stop(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxReceiptResponse | SandboxLifecycleAcceptedResponse>;
50
- start(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxStartResponse>;
51
- restore(sandboxId: string): Promise<SandboxRestoreResponse>;
56
+ start(sandboxId: string, options?: SandboxAsyncRequestOptions & SandboxStartInput): Promise<SandboxStartResponse>;
57
+ restore(sandboxId: string, input?: SandboxRestoreInput): Promise<SandboxRestoreResponse>;
52
58
  delete(sandboxId: string, options?: SandboxAsyncRequestOptions): Promise<SandboxRecord>;
53
59
  receipts(sandboxId: string): Promise<SandboxReceipt[]>;
54
60
  logs(sandboxId: string): Promise<string[]>;
@@ -59,7 +65,7 @@ export declare class OpenPondSandboxInstanceClient {
59
65
  gitCommit(sandboxId: string, input: SandboxGitCommitInput): Promise<SandboxGitCommitResponse>;
60
66
  gitPull(sandboxId: string, input?: SandboxGitPullInput): Promise<SandboxGitPullResponse>;
61
67
  gitPush(sandboxId: string, input?: SandboxGitPushInput): Promise<SandboxGitPushResponse>;
62
- billing(sandboxId: string): Promise<SandboxBillingStatusResponse>;
68
+ billing(sandboxId: string, input?: SandboxSnapshotRetentionQuoteInput): Promise<SandboxBillingStatusResponse>;
63
69
  pricing(): Promise<SandboxPricingResponse>;
64
70
  costs(input?: {
65
71
  teamId?: string;
@@ -82,12 +82,16 @@ export type SandboxCostSummary = {
82
82
  export type SandboxBillingStatus = {
83
83
  sandboxId: string;
84
84
  state: SandboxState;
85
- billingModel: "reserve_capture" | "session";
85
+ billingModel: "reserve_capture" | "session" | "actual_usage";
86
+ computeUsage?: SandboxComputeUsageStatus;
87
+ nativeRootStorage?: SandboxNativeRootStorageStatus;
88
+ snapshotRetention?: SandboxSnapshotRetentionStatus[];
89
+ snapshotRetentionOffer?: SandboxSnapshotRetentionOffer;
86
90
  reservationStatus: SandboxReservation["status"];
87
- budgetUsd: string;
91
+ budgetUsd: string | null;
88
92
  reservedUsd: string;
89
93
  capturedUsd: string;
90
- remainingBudgetUsd: string;
94
+ remainingBudgetUsd: string | null;
91
95
  mppMode: NonNullable<SandboxReservation["mpp"]>["mode"] | null;
92
96
  sessionRef: string | null;
93
97
  channelId: string | null;
@@ -105,6 +109,7 @@ export type SandboxReservation = {
105
109
  status: "reserved" | "captured" | "released";
106
110
  reservedUsd: string;
107
111
  capturedUsd: string;
112
+ usageFunding?: SandboxUsageFundingRef;
108
113
  mpp?: {
109
114
  mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
110
115
  settlementRail: "tempo_usdce";
@@ -122,6 +127,33 @@ export type SandboxReservation = {
122
127
  createdAt: string;
123
128
  updatedAt: string;
124
129
  };
130
+ export type SandboxUsageFundingRef = {
131
+ schemaVersion: "openpond.sandboxUsageFundingRef.v1";
132
+ capacityLeaseId: string;
133
+ authorizationHash: string;
134
+ profileHash: string;
135
+ };
136
+ export type SandboxComputeUsageSummary = {
137
+ schemaVersion: "openpond.sandboxComputeUsageSummary.v1";
138
+ fundingReservationId: string;
139
+ capacityLeaseId: string;
140
+ authorizationHash: string;
141
+ closureEvidenceHash: string;
142
+ price: {
143
+ version: string;
144
+ profileHash: string;
145
+ currency: "USD";
146
+ unit: "resource_hour";
147
+ hourlyUsd: string;
148
+ };
149
+ observedQuantityMillis: number;
150
+ billableQuantityMillis: number;
151
+ ratedUsd: string;
152
+ chargedUsd: string;
153
+ includedStandardUsd: string;
154
+ prepaidStandardUsd: string;
155
+ prepaidPayableUsd: string;
156
+ };
125
157
  export type SandboxReceiptLineItem = {
126
158
  label: string;
127
159
  quantity: number;
@@ -134,13 +166,14 @@ export type SandboxReceipt = {
134
166
  sandboxId: string;
135
167
  reservationId: string;
136
168
  status: "captured" | "released";
137
- reason: "stopped" | "deleted" | "archived" | "budget_exhausted" | "duration_exceeded" | "idle_timeout" | "manual_capture";
169
+ reason: "stopped" | "deleted" | "archived" | "create_failed" | "budget_exhausted" | "duration_exceeded" | "idle_timeout" | "manual_capture";
138
170
  totalUsd: string;
171
+ retailTotalUsd?: string;
139
172
  durationSeconds: number;
140
173
  lineItems: SandboxReceiptLineItem[];
141
174
  mpp: {
142
- mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
143
- settlementRail: "tempo_usdce";
175
+ mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook" | "account_usage";
176
+ settlementRail: "tempo_usdce" | "stripe_credit";
144
177
  receiptRef: string;
145
178
  sessionRef?: string | null;
146
179
  channelId?: string | null;
@@ -148,6 +181,14 @@ export type SandboxReceipt = {
148
181
  depositUsd?: string | null;
149
182
  remainingUsd?: string | null;
150
183
  };
184
+ fundingAllocation?: {
185
+ includedStandardUsd: string;
186
+ prepaidStandardUsd: string;
187
+ postpaidStandardUsd: string;
188
+ customerFundedStandardUsd: string;
189
+ unfundedStandardUsd: string;
190
+ };
191
+ usageSummary?: SandboxComputeUsageSummary;
151
192
  createdAt: string;
152
193
  };
153
194
  export type SandboxCommand = {
@@ -174,3 +215,96 @@ export type SandboxPreviewPort = {
174
215
  token: string;
175
216
  createdAt: string;
176
217
  };
218
+ /** Current original actual-use funding; customer retail amounts only. */
219
+ export interface SandboxComputeUsageStatus {
220
+ state: "active" | "exhausted" | "closed";
221
+ stopReason: "credit_exhausted" | "cap_reached" | "control_expired" | "policy_changed" | "member_cap_reached" | null;
222
+ customerCapUsd: string | null;
223
+ price: {
224
+ version: string;
225
+ currency: "USD";
226
+ unit: "resource_hour";
227
+ hourlyUsd: string;
228
+ };
229
+ observedQuantityMillis: number;
230
+ billableQuantityMillis: number;
231
+ ratedUsd: string;
232
+ chargedUsd: string;
233
+ includedStandardUsd: string;
234
+ prepaidStandardUsd: string;
235
+ prepaidPayableUsd: string;
236
+ observedAt: string;
237
+ closedAt: string | null;
238
+ }
239
+ /** Retained native root storage is independent of active compute. */
240
+ export interface SandboxNativeRootStorageStatus {
241
+ phase: "executing" | "retained" | "deleted";
242
+ phaseAt: string;
243
+ diskGiB: number;
244
+ price: {
245
+ version: string;
246
+ currency: "USD";
247
+ unit: "GiB-second";
248
+ unitPriceUsd: string;
249
+ };
250
+ quantityGiBMillis: number;
251
+ ratedUsd: string;
252
+ chargedUsd: string;
253
+ includedStandardUsd: string;
254
+ prepaidStandardUsd: string;
255
+ prepaidPayableUsd: string;
256
+ meteredTo: string;
257
+ status: "current" | "funding_shortfall";
258
+ shortfallReason: "credit_exhausted" | "member_cap_reached" | "billing_suspended" | null;
259
+ }
260
+ /** Finite reserved-source-disk retail; captured snapshot byte size is unknown. */
261
+ export type SandboxSnapshotRetentionStatus = {
262
+ snapshotId: string;
263
+ phase: "reserved" | "capture_submitted" | "ready" | "deleting" | "deleted" | "cancelled";
264
+ termsSha256: string;
265
+ reservedDiskGiB: number;
266
+ ttlSeconds: number;
267
+ expiresAt: string;
268
+ maximumUsd: string;
269
+ quotedUsd: string;
270
+ price: {
271
+ version: string;
272
+ currency: "USD";
273
+ unit: "GiB-second";
274
+ unitPriceUsd: string;
275
+ };
276
+ quantityGiBMillis: number;
277
+ ratedUsd: string;
278
+ chargedUsd: string;
279
+ includedStandardUsd: string;
280
+ prepaidStandardUsd: string;
281
+ prepaidPayableUsd: string;
282
+ heldIncludedStandardUsd: string;
283
+ heldPrepaidPayableUsd: string;
284
+ releasedUnusedStandardUsd: string | null;
285
+ meteredTo: string;
286
+ closedAt: string | null;
287
+ status: "current" | "funding_shortfall" | "external_settlement" | "internal_tracked";
288
+ shortfallReason: "credit_exhausted" | "member_cap_reached" | "billing_suspended" | null;
289
+ };
290
+ export type SandboxSnapshotRetentionQuoteInput = {
291
+ snapshotRetentionTtlSeconds: number;
292
+ snapshotRetentionClass: "ephemeral" | "cached" | "pinned";
293
+ };
294
+ /** Discovery/quote only; creates no reservation or execution authority. */
295
+ export type SandboxSnapshotRetentionOffer = {
296
+ available: false;
297
+ reason: "unsupported_source" | "source_unavailable" | "billing_unavailable" | "terms_unavailable" | "retention_out_of_range";
298
+ } | {
299
+ available: true;
300
+ termsSha256: string;
301
+ price: SandboxSnapshotRetentionStatus["price"];
302
+ reservedDiskGiB: number;
303
+ maximumTtlSeconds: number;
304
+ maximumCustomerUsd: string;
305
+ quote: null | {
306
+ retentionClass: "ephemeral" | "cached" | "pinned";
307
+ ttlSeconds: number;
308
+ quotedUsd: string;
309
+ };
310
+ };
@@ -104,6 +104,9 @@ export type SandboxPtyStartInput = {
104
104
  };
105
105
  export type SandboxPtyInput = {
106
106
  dataBase64: string;
107
+ /** Resize without stdin by passing an empty dataBase64 and both dimensions. */
108
+ rows?: number;
109
+ cols?: number;
107
110
  };
108
111
  export type SandboxPtyStatus = "running" | "exited" | "failed" | "timed_out" | "stopped";
109
112
  export type SandboxPtySession = {