openpond 0.2.70 → 0.2.71

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 (349) hide show
  1. package/dist/app-server.js +1 -1
  2. package/dist/chunks/{acp-QTA6IU6W.js → acp-VWPJ2EL4.js} +1 -1
  3. package/dist/chunks/{acp-agent-N77HPAYQ.js → acp-agent-OZHZMQ6R.js} +1 -1
  4. package/dist/chunks/{actions-command-BZQCUDMD.js → actions-command-AXGXBU75.js} +1 -1
  5. package/dist/chunks/{app-layer-YQQNLIXA.js → app-layer-OHPIYEOJ.js} +1 -1
  6. package/dist/chunks/{app-server-evaluations-RRLYWLPK.js → app-server-evaluations-Y5UEF2Y7.js} +1 -1
  7. package/dist/chunks/{app-server-harness-services-XXM336NU.js → app-server-harness-services-GUHAIIPS.js} +1 -1
  8. package/dist/chunks/{app-server-runtime-B7AMBGQZ.js → app-server-runtime-CH5STRJP.js} +1 -1
  9. package/dist/chunks/{apps-WG7WY5CB.js → apps-DNLT6P4J.js} +1 -1
  10. package/dist/chunks/{chunk-MOXIGLN2.js → chunk-23YW5PAQ.js} +1 -1
  11. package/dist/chunks/{chunk-ZDEIVUUI.js → chunk-27OJ2OLP.js} +1 -1
  12. package/dist/chunks/{chunk-NSSZ2ZIU.js → chunk-2EAZB2MW.js} +1 -1
  13. package/dist/chunks/{chunk-DRLP7GIU.js → chunk-2GEZ3ZY7.js} +1 -1
  14. package/dist/chunks/{chunk-PAYFJHPO.js → chunk-2PVW2XFF.js} +1 -1
  15. package/dist/chunks/{chunk-Y2WNZWT2.js → chunk-2Q6FTL4C.js} +1 -1
  16. package/dist/chunks/{chunk-KP2MYTP5.js → chunk-2QHB5P2K.js} +1 -1
  17. package/dist/chunks/{chunk-FNGZ4UDZ.js → chunk-33UVQ7DU.js} +1 -1
  18. package/dist/chunks/{chunk-M4ZHFDRJ.js → chunk-3JVZ7OCQ.js} +1 -1
  19. package/dist/chunks/{chunk-4BUM6JEC.js → chunk-3JYPUOK4.js} +1 -1
  20. package/dist/chunks/{chunk-DXJC3QW7.js → chunk-3VT2PPKW.js} +1 -1
  21. package/dist/chunks/{chunk-Z33RVGP6.js → chunk-5LKEVB2P.js} +1 -1
  22. package/dist/chunks/{chunk-P4QM63L3.js → chunk-5ZBDHIIE.js} +1 -1
  23. package/dist/chunks/{chunk-WD4KAKEX.js → chunk-64EDQ7UV.js} +1 -1
  24. package/dist/chunks/{chunk-OL3L3U36.js → chunk-6BTX66SV.js} +1 -1
  25. package/dist/chunks/{chunk-KU4TPDPH.js → chunk-6LAGMWJE.js} +1 -1
  26. package/dist/chunks/{chunk-65FJWWXG.js → chunk-6YR5IYHH.js} +1 -1
  27. package/dist/chunks/{chunk-AUO5DCEU.js → chunk-73COPJ32.js} +1 -1
  28. package/dist/chunks/{chunk-KDER7R45.js → chunk-7PDF2UX2.js} +1 -1
  29. package/dist/chunks/{chunk-SO4GMSNP.js → chunk-7SOHV5BH.js} +1 -1
  30. package/dist/chunks/{chunk-XOPHFUUY.js → chunk-ASMQTMQB.js} +1 -1
  31. package/dist/chunks/{chunk-ESYPMD7Q.js → chunk-AT3ZYNX4.js} +1 -1
  32. package/dist/chunks/{chunk-NMMHXYDJ.js → chunk-AVEHWUML.js} +1 -1
  33. package/dist/chunks/{chunk-M4A7G4S5.js → chunk-B7SCVTE6.js} +1 -1
  34. package/dist/chunks/{chunk-DKOVZ6R2.js → chunk-BQNU4HZW.js} +1 -1
  35. package/dist/chunks/{chunk-UANH7U3Y.js → chunk-BTEBZYK3.js} +1 -1
  36. package/dist/chunks/{chunk-BU6MW65V.js → chunk-BYVE4TMU.js} +1 -1
  37. package/dist/chunks/{chunk-PNPV2LDE.js → chunk-BZS2PA4O.js} +1 -1
  38. package/dist/chunks/{chunk-AFYYIJ6K.js → chunk-C7NQPICU.js} +1 -1
  39. package/dist/chunks/{chunk-K7KBFM2T.js → chunk-CBD554GZ.js} +1 -1
  40. package/dist/chunks/{chunk-GYYJ47GX.js → chunk-CWE2N3JI.js} +1 -1
  41. package/dist/chunks/{chunk-ZYLLPRPU.js → chunk-CX4T7I47.js} +1 -1
  42. package/dist/chunks/{chunk-AQUZCWM3.js → chunk-D2V2Y3FB.js} +1 -1
  43. package/dist/chunks/{chunk-2PXKSAG6.js → chunk-DLOJG7LP.js} +1 -1
  44. package/dist/chunks/{chunk-5G7BQAUA.js → chunk-DNNWMOMG.js} +1 -1
  45. package/dist/chunks/{chunk-BGMAWETL.js → chunk-DNRC6TPJ.js} +1 -1
  46. package/dist/chunks/{chunk-5FSPDSAO.js → chunk-DUR32LJG.js} +1 -1
  47. package/dist/chunks/{chunk-JZKTBYNB.js → chunk-E57PUTV2.js} +1 -1
  48. package/dist/chunks/{chunk-OUJ63LMU.js → chunk-ER2VONWQ.js} +1 -1
  49. package/dist/chunks/{chunk-TAXCMCYZ.js → chunk-ESOIZG2G.js} +4 -4
  50. package/dist/chunks/{chunk-CCZ276IA.js → chunk-F2EUZG2W.js} +1 -1
  51. package/dist/chunks/{chunk-VJR2GNRY.js → chunk-FVMTQSVW.js} +1 -1
  52. package/dist/chunks/{chunk-YI6ME6PU.js → chunk-GG6PM7TB.js} +1 -1
  53. package/dist/chunks/{chunk-DDOIPTOM.js → chunk-GMA365GI.js} +1 -1
  54. package/dist/chunks/{chunk-JVMSN7LH.js → chunk-GR4MJJCE.js} +1 -1
  55. package/dist/chunks/{chunk-FHDH4OUA.js → chunk-GUWNSMGH.js} +1 -1
  56. package/dist/chunks/{chunk-AFH462DO.js → chunk-HT6ILPD6.js} +1 -1
  57. package/dist/chunks/{chunk-3Z4VM2LF.js → chunk-HUMNLSCV.js} +1 -1
  58. package/dist/chunks/{chunk-XYZV3FKD.js → chunk-I6KTJ3GH.js} +1 -1
  59. package/dist/chunks/{chunk-WZ35ICTE.js → chunk-IFMWAOBR.js} +1 -1
  60. package/dist/chunks/{chunk-R2FYCJL6.js → chunk-IJJ7FYZE.js} +1 -1
  61. package/dist/chunks/{chunk-XHACK2KR.js → chunk-IUYGQO2K.js} +1 -1
  62. package/dist/chunks/{chunk-55YD4UTW.js → chunk-IV2HEX3I.js} +1 -1
  63. package/dist/chunks/{chunk-U7X5ZLAL.js → chunk-JCHLDNCX.js} +1 -1
  64. package/dist/chunks/{chunk-7PKDJHT6.js → chunk-JH4RACOB.js} +1 -1
  65. package/dist/chunks/{chunk-65WRWLUD.js → chunk-JVEIK4RH.js} +1 -1
  66. package/dist/chunks/{chunk-PPF6EBTQ.js → chunk-K3WM4NEC.js} +1 -1
  67. package/dist/chunks/{chunk-EGP6DF34.js → chunk-KASHK2U5.js} +2 -2
  68. package/dist/chunks/{chunk-7OFD6TFD.js → chunk-LMLGEOKV.js} +1 -1
  69. package/dist/chunks/{chunk-QUNQM2E3.js → chunk-MPEK4ZNY.js} +1 -1
  70. package/dist/chunks/{chunk-SDHG6CKU.js → chunk-NDNSLCPE.js} +1 -1
  71. package/dist/chunks/chunk-NK2L5HA2.js +2 -0
  72. package/dist/chunks/{chunk-WCNPGKST.js → chunk-O4YHISU2.js} +1 -1
  73. package/dist/chunks/{chunk-RCQYEHHD.js → chunk-O5ZOW474.js} +1 -1
  74. package/dist/chunks/{chunk-OXQ2WFIH.js → chunk-OEAKX5TS.js} +1 -1
  75. package/dist/chunks/{chunk-54755JYM.js → chunk-OFV26C2U.js} +2 -2
  76. package/dist/chunks/{chunk-IO5DZUKL.js → chunk-OI4DAZ4U.js} +1 -1
  77. package/dist/chunks/{chunk-Q73RKX7I.js → chunk-OIIE5GUK.js} +1 -1
  78. package/dist/chunks/{chunk-CUB6PWAJ.js → chunk-OKPV6MBX.js} +6 -6
  79. package/dist/chunks/{chunk-N5EAVX4G.js → chunk-OOKHHOIU.js} +1 -1
  80. package/dist/chunks/{chunk-MIFVX5PK.js → chunk-OQ4RWCYI.js} +1 -1
  81. package/dist/chunks/{chunk-EWH64WRR.js → chunk-OTG77H7U.js} +1 -1
  82. package/dist/chunks/{chunk-7OKZCJHS.js → chunk-OXRN2257.js} +1 -1
  83. package/dist/chunks/{chunk-JVNKSU27.js → chunk-PJJSQ4ZI.js} +1 -1
  84. package/dist/chunks/{chunk-7TM25J6S.js → chunk-PXQZOVSV.js} +2 -2
  85. package/dist/chunks/{chunk-YAA7F5LI.js → chunk-QKGNAYSC.js} +1 -1
  86. package/dist/chunks/{chunk-67U7PAMU.js → chunk-QN4CFJQC.js} +1 -1
  87. package/dist/chunks/{chunk-HES4VP3D.js → chunk-RJY4EI46.js} +1 -1
  88. package/dist/chunks/{chunk-E2JB5OCO.js → chunk-RP4DPUN2.js} +1 -1
  89. package/dist/chunks/{chunk-QLGP2OAQ.js → chunk-SNBFWBJI.js} +1 -1
  90. package/dist/chunks/{chunk-ZK3ET5EP.js → chunk-SRJTQS2D.js} +3 -3
  91. package/dist/chunks/{chunk-XY7HFXLH.js → chunk-SVLVIYH2.js} +1 -1
  92. package/dist/chunks/{chunk-7NCM6GBN.js → chunk-TOWY6Y23.js} +1 -1
  93. package/dist/chunks/{chunk-VWWKWYSQ.js → chunk-TWLPZHH7.js} +1 -1
  94. package/dist/chunks/{chunk-Y4I6CFZJ.js → chunk-UGDBMRCT.js} +1 -1
  95. package/dist/chunks/{chunk-JQOVC35K.js → chunk-UKTPX2EE.js} +1 -1
  96. package/dist/chunks/{chunk-CO23RRN7.js → chunk-UMRQKE3W.js} +1 -1
  97. package/dist/chunks/{chunk-B66QCXH2.js → chunk-USKCFST5.js} +1 -1
  98. package/dist/chunks/{chunk-3A2Y7UK3.js → chunk-USTDWGR4.js} +1 -1
  99. package/dist/chunks/{chunk-CIZI6Z7D.js → chunk-VMW23TIZ.js} +1 -1
  100. package/dist/chunks/{chunk-Y4E5AAI7.js → chunk-VND53FAU.js} +1 -1
  101. package/dist/chunks/{chunk-4G3GTEVS.js → chunk-VSQPWLAG.js} +1 -1
  102. package/dist/chunks/{chunk-KCLMA2IH.js → chunk-VV4K5YPD.js} +1 -1
  103. package/dist/chunks/{chunk-7RJOCGQ6.js → chunk-WAUFXZ5B.js} +1 -1
  104. package/dist/chunks/{chunk-HG2YFMVU.js → chunk-WXG3G2O6.js} +1 -1
  105. package/dist/chunks/{chunk-PACLKDTN.js → chunk-XBAB3HMA.js} +1 -1
  106. package/dist/chunks/chunk-XJU47QS2.js +2 -0
  107. package/dist/chunks/{chunk-WGQ3FMRF.js → chunk-XKDOPNQ5.js} +1 -1
  108. package/dist/chunks/{chunk-EYTTZ5H4.js → chunk-XLZMSD5K.js} +1 -1
  109. package/dist/chunks/{chunk-Q7FBVLLB.js → chunk-XNPTLJ5Z.js} +1 -1
  110. package/dist/chunks/{chunk-ZIQJDTQB.js → chunk-XTT3K3TR.js} +1 -1
  111. package/dist/chunks/{chunk-Q7P34B2O.js → chunk-YFHQRDNQ.js} +1 -1
  112. package/dist/chunks/{chunk-UGFSAG4U.js → chunk-YG3HITOU.js} +1 -1
  113. package/dist/chunks/{chunk-DWF3FCY4.js → chunk-Z5R4OSGC.js} +1 -1
  114. package/dist/chunks/{chunk-JT5YQ52I.js → chunk-Z6HWSTEP.js} +1 -1
  115. package/dist/chunks/{chunk-4PUOWSDE.js → chunk-ZEOYNUHL.js} +1 -1
  116. package/dist/chunks/{chunk-6C6ZCYTL.js → chunk-ZG3DBXQG.js} +1 -1
  117. package/dist/chunks/{chunk-4KTGYHCE.js → chunk-ZMRP2A7K.js} +1 -1
  118. package/dist/chunks/cli-5JARGJOD.js +2 -0
  119. package/dist/chunks/{command-5AXJMFYC.js → command-AI3SMEAH.js} +3 -3
  120. package/dist/chunks/{configuration-command-5LUNWPOL.js → configuration-command-NPA46ZOT.js} +1 -1
  121. package/dist/chunks/{connected-app-executor-DHXZE4X3.js → connected-app-executor-DLC23O43.js} +1 -1
  122. package/dist/chunks/{connected-evidence-NWMPICKJ.js → connected-evidence-TVORI55Q.js} +1 -1
  123. package/dist/chunks/{connected-starting-assets-NRVXIKQ2.js → connected-starting-assets-WGGBWH4K.js} +1 -1
  124. package/dist/chunks/{continual-UCKQ2QLH.js → continual-UHQI2EQD.js} +1 -1
  125. package/dist/chunks/{core-commands-ZPBX35M2.js → core-commands-QNZUBKOC.js} +1 -1
  126. package/dist/chunks/{dataset-preparation-authoring-UUYFWWCT.js → dataset-preparation-authoring-OBMJLGA4.js} +1 -1
  127. package/dist/chunks/{datasets-6K3ZANIV.js → datasets-USJLJOEQ.js} +1 -1
  128. package/dist/chunks/{desktop-test-57INNJ76.js → desktop-test-IYHAOR47.js} +1 -1
  129. package/dist/chunks/{dist-2MKJC6HN.js → dist-C5XFRP53.js} +1 -1
  130. package/dist/chunks/{evaluation-coordination-B7CN4R2D.js → evaluation-coordination-UJENK4WQ.js} +1 -1
  131. package/dist/chunks/{experiment-improvements-G357VLDB.js → experiment-improvements-6GJMKIER.js} +1 -1
  132. package/dist/chunks/{experiments-BHQO26LJ.js → experiments-FZHILSC6.js} +1 -1
  133. package/dist/chunks/{experiments-signal-BI6NKETB.js → experiments-signal-E32CWBS4.js} +1 -1
  134. package/dist/chunks/{help-UQN5RUPA.js → help-32DLAPJR.js} +1 -1
  135. package/dist/chunks/host-profile-evaluation-tools-QAV2UGSB.js +2 -0
  136. package/dist/chunks/{host-profile-external-dataset-KSEPXY2S.js → host-profile-external-dataset-C6ZPMTX6.js} +1 -1
  137. package/dist/chunks/{hosted-app-server-composition-WDDO6F23.js → hosted-app-server-composition-5DVBKNV3.js} +1 -1
  138. package/dist/chunks/{hosted-experiment-improvement-VVYXQ65K.js → hosted-experiment-improvement-YQ24C54D.js} +1 -1
  139. package/dist/chunks/hosted-harness-runtime-KLIORGWV.js +2 -0
  140. package/dist/chunks/{hosted-profile-candidate-PTGQLPZO.js → hosted-profile-candidate-RCWFLOVJ.js} +1 -1
  141. package/dist/chunks/{hosted-profile-compiler-FS5R6CHJ.js → hosted-profile-compiler-UDG4BCEW.js} +1 -1
  142. package/dist/chunks/{hosted-profile-evaluation-control-UUEZEMXU.js → hosted-profile-evaluation-control-4R3L4FTK.js} +1 -1
  143. package/dist/chunks/{hosted-profile-evaluation-inspection-4F7OEF4T.js → hosted-profile-evaluation-inspection-NA4SSY7N.js} +1 -1
  144. package/dist/chunks/{hosted-profile-evaluation-preparation-LIJJZDHQ.js → hosted-profile-evaluation-preparation-B4BW6JTB.js} +1 -1
  145. package/dist/chunks/{hosted-tasksets-KCLNMPG5.js → hosted-tasksets-IUK3VWSL.js} +1 -1
  146. package/dist/chunks/{human-review-PX6DBIFT.js → human-review-D6QCZLYN.js} +1 -1
  147. package/dist/chunks/{import-2HEYPHPW.js → import-UCG75PN5.js} +1 -1
  148. package/dist/chunks/{learning-Y3UKNUGE.js → learning-3XDYMYBE.js} +1 -1
  149. package/dist/chunks/{learning-LSXBL5DB.js → learning-OR4CYV4B.js} +1 -1
  150. package/dist/chunks/local-harness-improvement-runtime-GZBMBZB2.js +2 -0
  151. package/dist/chunks/local-harness-taskset-review-YVP2ZQJG.js +2 -0
  152. package/dist/chunks/{model-projects-6YWVD2TS.js → model-projects-POZRHXTF.js} +1 -1
  153. package/dist/chunks/{opchat-66BCRKEZ.js → opchat-APJUUTT7.js} +1 -1
  154. package/dist/chunks/{opchat-bounded-chat-KQWXZVFN.js → opchat-bounded-chat-PBUSUAY2.js} +1 -1
  155. package/dist/chunks/{organizations-IOYWDOCC.js → organizations-WK6EZ6L3.js} +1 -1
  156. package/dist/chunks/{profile-YH6G3ZTD.js → profile-BQMS7ALQ.js} +1 -1
  157. package/dist/chunks/{project-action-payload-53OH6WDH.js → project-action-payload-CGV77JSA.js} +1 -1
  158. package/dist/chunks/{project-agent-RYVMKW2F.js → project-agent-XVFYTEUQ.js} +1 -1
  159. package/dist/chunks/{published-experiment-source-SDXUVPE7.js → published-experiment-source-2CYFIRBL.js} +1 -1
  160. package/dist/chunks/{refiner-profile-service-56VYLZQJ.js → refiner-profile-service-OLJHA4DI.js} +1 -1
  161. package/dist/chunks/{runtime-ISLJIGWC.js → runtime-32KYSVZR.js} +1 -1
  162. package/dist/chunks/{sandbox-command-DI45NRTV.js → sandbox-command-OY3VZXGG.js} +1 -1
  163. package/dist/chunks/{sandbox-template-T42MDUSR.js → sandbox-template-YOOSJ4FK.js} +1 -1
  164. package/dist/chunks/saved-work-L4KNWLZB.js +2 -0
  165. package/dist/chunks/{setup-D6TY2GWV.js → setup-EU6CMRXQ.js} +1 -1
  166. package/dist/chunks/{src-LF5X4RNQ.js → src-3DJR7OAH.js} +1 -1
  167. package/dist/chunks/{src-7RN7BF4W.js → src-HYOTHMRX.js} +111 -113
  168. package/dist/chunks/{standalone-experiment-turn-owner-TW5MTWIO.js → standalone-experiment-turn-owner-UYPA6XHW.js} +1 -1
  169. package/dist/chunks/{store-chat-resources-IRHBW2EC.js → store-chat-resources-HISLEZZM.js} +1 -1
  170. package/dist/chunks/{store-continual-support-reviews-3KK42L4I.js → store-continual-support-reviews-ORWHS57V.js} +1 -1
  171. package/dist/chunks/{store-conversation-serving-IVURK52V.js → store-conversation-serving-5UGYKEGJ.js} +1 -1
  172. package/dist/chunks/{store-create-improve-UTCLBXF2.js → store-create-improve-APLPTVYQ.js} +1 -1
  173. package/dist/chunks/{store-datasets-4AQOVAQY.js → store-datasets-HDW6IYBL.js} +1 -1
  174. package/dist/chunks/{store-evaluation-results-PK2P3IMH.js → store-evaluation-results-KB2UDCF3.js} +1 -1
  175. package/dist/chunks/{store-harness-workspaces-YEXB4IRV.js → store-harness-workspaces-TKX5PZWP.js} +1 -1
  176. package/dist/chunks/{store-human-review-O4BVHP25.js → store-human-review-IURNTX3C.js} +1 -1
  177. package/dist/chunks/{store-learned-preference-migration-validation-44SVX6YB.js → store-learned-preference-migration-validation-TH2LKQWV.js} +1 -1
  178. package/dist/chunks/{store-learning-SIUQIY5C.js → store-learning-WLUW2PWE.js} +1 -1
  179. package/dist/chunks/{store-learning-credentials-BUHR7SN6.js → store-learning-credentials-FDKCEDHK.js} +1 -1
  180. package/dist/chunks/{store-local-experiments-BHVTKPPE.js → store-local-experiments-M4V5RLHJ.js} +1 -1
  181. package/dist/chunks/{store-model-batch-review-RVAYUVK2.js → store-model-batch-review-DDZLWVTG.js} +1 -1
  182. package/dist/chunks/{store-model-configuration-AYFGMC5D.js → store-model-configuration-ATOFA5OH.js} +1 -1
  183. package/dist/chunks/{store-model-project-preparation-5DEIS7TB.js → store-model-project-preparation-ZRSCQEQR.js} +1 -1
  184. package/dist/chunks/{store-modification-recordings-LCPK6K2T.js → store-modification-recordings-YJIDUPVJ.js} +1 -1
  185. package/dist/chunks/{store-preference-comparison-5YVIQNVB.js → store-preference-comparison-JKURBESE.js} +1 -1
  186. package/dist/chunks/{store-task-inbox-L6IQTY26.js → store-task-inbox-L53OT6ZC.js} +1 -1
  187. package/dist/chunks/{store-task-inventory-QWS2C656.js → store-task-inventory-R2JJGAHW.js} +1 -1
  188. package/dist/chunks/{store-taskset-drafts-EAOOY6CR.js → store-taskset-drafts-FPNJPFPO.js} +1 -1
  189. package/dist/chunks/{store-training-FYXZU2FE.js → store-training-DIBW7OMP.js} +1 -1
  190. package/dist/chunks/{store-training-jobs-3N3VKPIY.js → store-training-jobs-K7I4SXWW.js} +1 -1
  191. package/dist/chunks/{store-training-models-VOFVGPZR.js → store-training-models-LCSB37YY.js} +1 -1
  192. package/dist/chunks/{taskset-HNDIGYQG.js → taskset-XI5SJBJL.js} +1 -1
  193. package/dist/chunks/{taskset-packages-WMG5DUBN.js → taskset-packages-FUQWNTSB.js} +1 -1
  194. package/dist/chunks/{taskset-packages-T6B6HYKZ.js → taskset-packages-GM6IUOTY.js} +1 -1
  195. package/dist/chunks/{teams-bot-Z5CZLWE4.js → teams-bot-CYC5TR64.js} +1 -1
  196. package/dist/chunks/{tool-learning-ZQ6NSJ5K.js → tool-learning-52QZIJIR.js} +1 -1
  197. package/dist/chunks/{training-JTYQA7GA.js → training-GDLLLXSV.js} +1 -1
  198. package/dist/chunks/training-RL7UUBER.js +2 -0
  199. package/dist/chunks/training-UJ62NOJJ.js +2 -0
  200. package/dist/chunks/{training-hosted-36SZFS4U.js → training-hosted-V5CHG3M3.js} +1 -1
  201. package/dist/chunks/{training-hosted-alphaedit-HSMRDJTD.js → training-hosted-alphaedit-R5PVATV4.js} +1 -1
  202. package/dist/chunks/{training-hosted-decision-7JALOU6O.js → training-hosted-decision-WNK5DE3M.js} +1 -1
  203. package/dist/chunks/{training-hosted-engram-SXO75MFG.js → training-hosted-engram-ZQDOKXAV.js} +1 -1
  204. package/dist/chunks/{training-hosted-learning-E2N32YU5.js → training-hosted-learning-UEBGSSNC.js} +1 -1
  205. package/dist/chunks/{training-hosted-modification-comparison-TXFDJFTG.js → training-hosted-modification-comparison-KKI5CKOH.js} +1 -1
  206. package/dist/chunks/{training-hosted-neuron-training-J42WK4EH.js → training-hosted-neuron-training-CFWEDRSR.js} +1 -1
  207. package/dist/chunks/{training-hosted-serving-report-BAEABGJH.js → training-hosted-serving-report-N4NF5AVW.js} +1 -1
  208. package/dist/chunks/{training-hosted-steering-T556BUBG.js → training-hosted-steering-4MDUQ2YV.js} +1 -1
  209. package/dist/chunks/{training-model-start-P3PXDWNT.js → training-model-start-NOA6TYQK.js} +1 -1
  210. package/dist/cli.js +1 -1
  211. package/dist/index.js +1 -1
  212. package/dist/skills/manifest.json +3 -3
  213. package/dist/skills/openpond-cli/references/experiments-and-training.md +19 -0
  214. package/dist/web/assets/App-L7RV4D0A.js +54 -0
  215. package/dist/web/assets/{AppDialog-x1HU1uLv.js → AppDialog-B2V84J7f.js} +1 -1
  216. package/dist/web/assets/{AppTerminalPanel-CNIKmqKc.js → AppTerminalPanel-DfYpUDKT.js} +2 -2
  217. package/dist/web/assets/{AppToastContext-DNWd43HS.js → AppToastContext-DuiPouLz.js} +1 -1
  218. package/dist/web/assets/{AppsView-BvOD83Z1.js → AppsView-B20RHDCy.js} +1 -1
  219. package/dist/web/assets/{AttachmentTypeIcon-BLdDr3JZ.js → AttachmentTypeIcon-l-GRNxaz.js} +1 -1
  220. package/dist/web/assets/{BrowserSidebar-Ar0FlFKg.js → BrowserSidebar-Ce0ToS2O.js} +1 -1
  221. package/dist/web/assets/{CartesianChart-tS7f1HZv.js → CartesianChart-CtfMRAfp.js} +1 -1
  222. package/dist/web/assets/{ChatTimelineEntry-z7_kur3h.js → ChatTimelineEntry-DzcucW20.js} +1 -1
  223. package/dist/web/assets/{CollaborationTabs-CaiFEKrv.js → CollaborationTabs-BpmKjNAC.js} +1 -1
  224. package/dist/web/assets/{CommandMenu-BpubEqaA.js → CommandMenu-JXsoxijv.js} +1 -1
  225. package/dist/web/assets/{CommunityView-TGR4s99l.js → CommunityView-ggdn8pcH.js} +1 -1
  226. package/dist/web/assets/{ComposerAttachments-DPWCjKXz.js → ComposerAttachments-BMmALUs_.js} +1 -1
  227. package/dist/web/assets/{ComposerCreateImproveStrip-Drji01_6.js → ComposerCreateImproveStrip-DcM1bkfu.js} +1 -1
  228. package/dist/web/assets/{ConversationImportsSettings-B_oW0cz7.js → ConversationImportsSettings-BKNeARHI.js} +1 -1
  229. package/dist/web/assets/{DatasetReviewImport-Dr3unJSY.js → DatasetReviewImport-DyFOE0Q0.js} +1 -1
  230. package/dist/web/assets/{ExperimentTrainingDataWorkspace-DObvpJAw.js → ExperimentTrainingDataWorkspace-CfOyoMrq.js} +2 -2
  231. package/dist/web/assets/{FilePagePreview-9kkXbARN.js → FilePagePreview-B7bWObJN.js} +2 -2
  232. package/dist/web/assets/{GetStartedView-Dv2b_SlH.js → GetStartedView-BYbFl93M.js} +1 -1
  233. package/dist/web/assets/{GettingStartedDialog-sPaPMc61.js → GettingStartedDialog-UgreDozV.js} +1 -1
  234. package/dist/web/assets/{HostedModelLearningReview-BlwhGxS6.js → HostedModelLearningReview-C_kng2U_.js} +1 -1
  235. package/dist/web/assets/{HostedModelLearningSettings-B5ahk3je.js → HostedModelLearningSettings-aesD_ifF.js} +1 -1
  236. package/dist/web/assets/{HtmlVisual-rGsClq0p.js → HtmlVisual-nvl1x-jh.js} +1 -1
  237. package/dist/web/assets/{LabModelVersionDetailPage-Da7AwZWV.js → LabModelVersionDetailPage-DrdoNvI-.js} +1 -1
  238. package/dist/web/assets/{LabModelWorkspace-DTeYViWH.js → LabModelWorkspace-CHlhzG3q.js} +1 -1
  239. package/dist/web/assets/{LabSkillSidebar-BieHbNl6.js → LabSkillSidebar-CqHeZzoj.js} +1 -1
  240. package/dist/web/assets/{LabsRoute-D3XqPB0-.js → LabsRoute-DzEbPpMK.js} +4 -4
  241. package/dist/web/assets/{LearningBatchesPage-CCBuf2u4.js → LearningBatchesPage-A2dFQW2j.js} +1 -1
  242. package/dist/web/assets/{MainChatThread-B6BQJfcq.js → MainChatThread-BSvKu4e5.js} +2 -2
  243. package/dist/web/assets/{MainPane-D3fQou29.js → MainPane-DiWIAxMj.js} +6 -6
  244. package/dist/web/assets/{ModelProjectPageHeader-BZn9Lu_J.js → ModelProjectPageHeader-lu6iRXHK.js} +1 -1
  245. package/dist/web/assets/{NativeSetupTerminal-Bglqab_g.js → NativeSetupTerminal-kZ-nFPE8.js} +2 -2
  246. package/dist/web/assets/{NativeSkillSidebar-pUGRdnV_.js → NativeSkillSidebar-DkkD1uH2.js} +1 -1
  247. package/dist/web/assets/{NewProjectDialog-BpHN38MA.js → NewProjectDialog-Dg8dMEpc.js} +1 -1
  248. package/dist/web/assets/{OutputsPage-LunDCQ6w.js → OutputsPage-Dz190U9t.js} +1 -1
  249. package/dist/web/assets/{PageChrome-DThEcWAx.js → PageChrome-Bncv-ps0.js} +1 -1
  250. package/dist/web/assets/{ProjectsPage-vct_TQgL.js → ProjectsPage-DVkYvLtd.js} +1 -1
  251. package/dist/web/assets/{RightChatPanelStack-CgFK7DY0.js → RightChatPanelStack-CP4leenI.js} +1 -1
  252. package/dist/web/assets/RightSidebarHomePanel-C0etQXpt.js +1 -0
  253. package/dist/web/assets/{ScheduledWorkPage-mmaZfybl.js → ScheduledWorkPage-DI0mgt82.js} +1 -1
  254. package/dist/web/assets/{SettingsView-CJfeRsWR.js → SettingsView-cCtkr089.js} +3 -3
  255. package/dist/web/assets/{TasksetDraftEditorPrimitives-CuimAfkv.js → TasksetDraftEditorPrimitives-DCQTuswJ.js} +1 -1
  256. package/dist/web/assets/{TeamChatView-BcK0lF1b.js → TeamChatView-BBEomfQ7.js} +1 -1
  257. package/dist/web/assets/{TerminalOverlay-0pzEvy-C.js → TerminalOverlay-Dj5NUDMp.js} +1 -1
  258. package/dist/web/assets/{TrainingCreationPanel-CcyzFz7l.js → TrainingCreationPanel-Ds4PLfsd.js} +1 -1
  259. package/dist/web/assets/{TrainingDraftPanel-DSLZXdLz.js → TrainingDraftPanel-BAuh_BF3.js} +1 -1
  260. package/dist/web/assets/{UsageSettingsSection-BT9pcnCn.js → UsageSettingsSection-DbzeatcW.js} +1 -1
  261. package/dist/web/assets/WorkSidebarPanel-BaNuXoZc.js +1 -0
  262. package/dist/web/assets/{WorkspaceDiffPanel-Bbz5qrVA.js → WorkspaceDiffPanel-xk-ve1MO.js} +3 -3
  263. package/dist/web/assets/{WorkspaceEnvironmentMenu-6hXpvMTl.js → WorkspaceEnvironmentMenu-D8GSuoYz.js} +1 -1
  264. package/dist/web/assets/{WorkspaceFileLocation-BijVemBl.js → WorkspaceFileLocation-Dl8M2ZKN.js} +1 -1
  265. package/dist/web/assets/{WorkspaceGitDialogs-BOO0E5i9.js → WorkspaceGitDialogs-9BhLjYx4.js} +1 -1
  266. package/dist/web/assets/{WorkspaceMonacoEditor-B_YzK7Do.js → WorkspaceMonacoEditor-DYPuC7pj.js} +3 -3
  267. package/dist/web/assets/{WorkspacePdfPreview-CFti1fvu.js → WorkspacePdfPreview-B7BI9tLR.js} +2 -2
  268. package/dist/web/assets/{WorkspacePresentationPreview-DPAhNaV6.js → WorkspacePresentationPreview-sP7JUT7m.js} +1 -1
  269. package/dist/web/assets/{bot-BE2rL_qv.js → bot-D7M8ZtE6.js} +1 -1
  270. package/dist/web/assets/{chat-resources-Beh5lB36.js → chat-resources-DhKAnljP.js} +1 -1
  271. package/dist/web/assets/chevron-down-BAEcJitl.js +1 -0
  272. package/dist/web/assets/chevron-right-3G9s2cQ9.js +1 -0
  273. package/dist/web/assets/chevron-up-DTYF52H1.js +1 -0
  274. package/dist/web/assets/{chunk-C3TS766N-j1MK0e3c.js → chunk-C3TS766N-DENE60SE.js} +1 -1
  275. package/dist/web/assets/{client-choice-storage-CQ0CNkzG.js → client-choice-storage-DYZsrVr9.js} +1 -1
  276. package/dist/web/assets/{client-BnJhN-14.js → client-gy7zrd7a.js} +1 -1
  277. package/dist/web/assets/{cloud-upload-DFjZE4O4.js → cloud-upload-De-XSMUr.js} +1 -1
  278. package/dist/web/assets/{copy-CGrLUtw5.js → copy-DEK20zbZ.js} +1 -1
  279. package/dist/web/assets/{cssMode-DvRw2fUx.js → cssMode-Dau-Fhqf.js} +1 -1
  280. package/dist/web/assets/{external-link-3ZnEFUXd.js → external-link-DwDry0Fb.js} +1 -1
  281. package/dist/web/assets/{folder-open-i9n8450i.js → folder-open-DOb4AjV6.js} +1 -1
  282. package/dist/web/assets/{folder-plus-cu8Md_ej.js → folder-plus-BAouDaXv.js} +1 -1
  283. package/dist/web/assets/{git-commit-horizontal-CwckmC09.js → git-commit-horizontal-DZbHXcai.js} +1 -1
  284. package/dist/web/assets/{htmlMode-8VF4Ovtw.js → htmlMode-DlNEe6hu.js} +1 -1
  285. package/dist/web/assets/{icons-4yRSxBZj.js → icons-OQhKVrDc.js} +1 -1
  286. package/dist/web/assets/{image-D-umhyyK.js → image-BkYJDChH.js} +1 -1
  287. package/dist/web/assets/{index-DiVhx1GM.js → index-M_h2Ok4V.js} +2 -2
  288. package/dist/web/assets/{info-Dq2RsPDJ.js → info-Mj5lp4Ic.js} +1 -1
  289. package/dist/web/assets/{jsonMode-CvCYQHkB.js → jsonMode-CyOEyonV.js} +1 -1
  290. package/dist/web/assets/loader-circle-DXVtGvuV.js +1 -0
  291. package/dist/web/assets/{lspLanguageFeatures-CjufNNFF.js → lspLanguageFeatures-DAYPzatg.js} +1 -1
  292. package/dist/web/assets/{maximize-2-CKY8dua6.js → maximize-2-BwFXSX6b.js} +1 -1
  293. package/dist/web/assets/{message-square-CVDgKlKX.js → message-square-C2nqfNLn.js} +1 -1
  294. package/dist/web/assets/{monaco.contribution-BYAgjZbj.js → monaco.contribution-BZcNCJER.js} +2 -2
  295. package/dist/web/assets/{monaco.contribution-BYY3-y9l.js → monaco.contribution-BZkfRhss.js} +2 -2
  296. package/dist/web/assets/{monaco.contribution-Bh0CKj9i.js → monaco.contribution-D7_X8TXe.js} +2 -2
  297. package/dist/web/assets/{monaco.contribution-PjJ1258q.js → monaco.contribution-KyLdVay7.js} +2 -2
  298. package/dist/web/assets/{monitor-UYe42gew.js → monitor-B0Qj5Wea.js} +1 -1
  299. package/dist/web/assets/{paperclip-DrlSVUoz.js → paperclip-CmrRruxi.js} +1 -1
  300. package/dist/web/assets/{pdf-BMhday2W.js → pdf-BM-9_48p.js} +1 -1
  301. package/dist/web/assets/play-CkACZ6Zo.js +1 -0
  302. package/dist/web/assets/plus-CB258e62.js +1 -0
  303. package/dist/web/assets/{presentation-DcZKqH7w.js → presentation-BYxhoSIo.js} +1 -1
  304. package/dist/web/assets/{python-CiA01i07.js → python-B3Mj03I5.js} +1 -1
  305. package/dist/web/assets/{refresh-cw-00D-GDnF.js → refresh-cw-CwEmO71D.js} +1 -1
  306. package/dist/web/assets/{save-CXe7bqR7.js → save-S--FOuce.js} +1 -1
  307. package/dist/web/assets/{settings-lists-B5J40WM6.js → settings-lists-ChqDppMP.js} +1 -1
  308. package/dist/web/assets/square-BmPfHjGU.js +1 -0
  309. package/dist/web/assets/{square-terminal-DxC7TTds.js → square-terminal-CawpQtCi.js} +1 -1
  310. package/dist/web/assets/{submit-issue-command-Dq3TqJLV.js → submit-issue-command-CFitxxmO.js} +1 -1
  311. package/dist/web/assets/{toggleHighContrast-BH3Jckfo.js → toggleHighContrast-D-cMCvXx.js} +1 -1
  312. package/dist/web/assets/training-CzbWtx75.js +1 -0
  313. package/dist/web/assets/{training-model-data-B6IZ3x-t.js → training-model-data-G-D64935.js} +1 -1
  314. package/dist/web/assets/{tsMode-DXkj4bqC.js → tsMode-9kzS1ijG.js} +1 -1
  315. package/dist/web/assets/{upload-B3KRHVHl.js → upload-CtYsSYrM.js} +1 -1
  316. package/dist/web/assets/{useAccountSettings-BGRkTRrp.js → useAccountSettings-DYYa6puz.js} +1 -1
  317. package/dist/web/assets/{useAgentInventory-D_1AlAZJ.js → useAgentInventory-c5B_Tszj.js} +1 -1
  318. package/dist/web/assets/{useChatContextSelection-hoMSuUSE.js → useChatContextSelection-DOISZpTz.js} +1 -1
  319. package/dist/web/assets/{useLocalAgentSchedules-DxTER7Ow.js → useLocalAgentSchedules-QJ8RsMKm.js} +1 -1
  320. package/dist/web/assets/{useQuery-DkPec_9x.js → useQuery-DuTGOe2b.js} +1 -1
  321. package/dist/web/assets/{wifi-off-CMzpvbWl.js → wifi-off-BOfP4Vmg.js} +1 -1
  322. package/dist/web/assets/{workers-ziY_bTv2.js → workers-BwGpyrdj.js} +1 -1
  323. package/dist/web/assets/x-5_iy6IDd.js +1 -0
  324. package/dist/web/assets/{yaml-mSvqVSko.js → yaml-BU4IWV_7.js} +1 -1
  325. package/dist/web/index.html +1 -1
  326. package/docs/command-reference.md +1 -0
  327. package/package.json +1 -1
  328. package/dist/chunks/chunk-6D3FI2XT.js +0 -2
  329. package/dist/chunks/chunk-VEBW7NKD.js +0 -2
  330. package/dist/chunks/cli-ALEEFAJ7.js +0 -2
  331. package/dist/chunks/host-profile-evaluation-tools-UF4ATIUF.js +0 -2
  332. package/dist/chunks/hosted-harness-runtime-MMTLCL23.js +0 -2
  333. package/dist/chunks/local-harness-improvement-runtime-3YJQRYXC.js +0 -2
  334. package/dist/chunks/local-harness-taskset-review-E5GN5LTR.js +0 -2
  335. package/dist/chunks/saved-work-54I5ZJTC.js +0 -2
  336. package/dist/chunks/training-5NT2YB2L.js +0 -2
  337. package/dist/chunks/training-UY6KRG4M.js +0 -2
  338. package/dist/web/assets/App-CXhxya9x.js +0 -54
  339. package/dist/web/assets/RightSidebarHomePanel-BJmzUcmy.js +0 -1
  340. package/dist/web/assets/WorkSidebarPanel-CP-nHAsJ.js +0 -1
  341. package/dist/web/assets/chevron-down-Bn8yph2O.js +0 -1
  342. package/dist/web/assets/chevron-right-BU-jUmb2.js +0 -1
  343. package/dist/web/assets/chevron-up-DacwuDJZ.js +0 -1
  344. package/dist/web/assets/loader-circle-DBl6qqtR.js +0 -1
  345. package/dist/web/assets/play-DIqZnaNf.js +0 -1
  346. package/dist/web/assets/plus-CFNxAPMK.js +0 -1
  347. package/dist/web/assets/square-DJEaBefe.js +0 -1
  348. package/dist/web/assets/training-DWfghwfZ.js +0 -1
  349. package/dist/web/assets/x-omjwMPbJ.js +0 -1
@@ -0,0 +1,2 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{$ as wa,$a as wb,$b as wc,$c as wd,$d as we,$e as xf,$f as xg,$g as xh,$h as xi,$i as xj,$j as xk,$k as Bl,$l as Bm,A as X,Aa as Xa,Ab as Xb,Ac as Xc,Ad as Xd,Ae as Xe,Af as Yf,Ag as Yg,Ah as Yh,Ai as Yi,Aj as Yj,Ak as al,Al as am,B as Y,Ba as Ya,Bb as Yb,Bc as Yc,Bd as Yd,Be as Ye,Bf as Zf,Bg as Zg,Bh as Zh,Bi as Zi,Bj as Zj,Bk as bl,Bl as bm,C as Z,Ca as Za,Cb as Zb,Cc as Zc,Cd as Zd,Ce as Ze,Cf as _f,Cg as _g,Ch as _h,Ci as _i,Cj as _j,Ck as cl,Cl as cm,D as _,Da as _a,Db as _b,Dc as _c,Dd as _d,De as _e,Df as $f,Dg as $g,Dh as $h,Di as $i,Dj as $j,Dk as dl,Dl as dm,E as $,Ea as $a,Eb as $b,Ec as $c,Ed as $d,Ee as $e,Ef as ag,Eg as ah,Eh as ai,Ei as aj,Ej as ak,Ek as el,El as em,F as aa,Fa as ab,Fb as ac,Fc as ad,Fd as ae,Fe as af,Ff as bg,Fg as bh,Fh as bi,Fi as bj,Fj as bk,Fk as fl,Fl as fm,G as ba,Ga as bb,Gb as bc,Gc as bd,Gd as be,Ge as bf,Gf as cg,Gg as ch,Gh as ci,Gi as cj,Gj as ck,Gk as gl,Gl as gm,H as ca,Ha as cb,Hb as cc,Hc as cd,Hd as ce,He as cf,Hf as dg,Hg as dh,Hh as di,Hi as dj,Hj as dk,Hk as hl,Hl as hm,I as da,Ia as db,Ib as dc,Ic as dd,Id as de,Ie as df,If as eg,Ig as eh,Ih as ei,Ii as ej,Ij as ek,Ik as il,Il as im,J as ea,Ja as eb,Jb as ec,Jc as ed,Jd as ee,Je as ef,Jf as fg,Jg as fh,Jh as fi,Ji as fj,Jj as fk,Jk as jl,Jl as jm,K as fa,Ka as fb,Kb as fc,Kc as fd,Kd as fe,Ke as ff,Kf as gg,Kg as gh,Kh as gi,Ki as gj,Kj as gk,Kk as kl,Kl as km,L as ga,La as gb,Lb as gc,Lc as gd,Ld as ge,Le as gf,Lf as hg,Lg as hh,Lh as hi,Li as hj,Lj as hk,Lk as ll,Ll as lm,M as ha,Ma as hb,Mb as hc,Mc as hd,Md as he,Me as hf,Mf as ig,Mg as ih,Mh as ii,Mi as ij,Mj as ik,Mk as ml,Ml as mm,N as ia,Na as ib,Nb as ic,Nc as id,Nd as ie,Ne as jf,Nf as jg,Ng as jh,Nh as ji,Ni as jj,Nj as jk,Nk as nl,Nl as nm,O as ja,Oa as jb,Ob as jc,Oc as jd,Od as je,Oe as kf,Of as kg,Og as kh,Oh as ki,Oi as kj,Oj as kk,Ok as ol,Ol as om,P as ka,Pa as kb,Pb as kc,Pc as kd,Pd as ke,Pe as lf,Pf as lg,Pg as lh,Ph as li,Pi as lj,Pj as lk,Pk as pl,Pl as pm,Q as la,Qa as lb,Qb as lc,Qc as ld,Qd as le,Qe as mf,Qf as mg,Qg as mh,Qh as mi,Qi as mj,Qj as mk,Qk as ql,Ql as qm,R as ma,Ra as mb,Rb as mc,Rc as md,Rd as me,Re as nf,Rf as ng,Rg as nh,Rh as ni,Ri as nj,Rj as nk,Rk as rl,Rl as rm,S as na,Sa as nb,Sb as nc,Sc as nd,Sd as ne,Se as of,Sf as og,Sg as oh,Sh as oi,Si as oj,Sj as ok,Sk as sl,Sl as sm,T as oa,Ta as ob,Tb as oc,Tc as od,Td as oe,Te as pf,Tf as pg,Tg as ph,Th as pi,Ti as pj,Tj as pk,Tk as tl,Tl as tm,U as pa,Ua as pb,Ub as pc,Uc as pd,Ud as pe,Ue as qf,Uf as qg,Ug as qh,Uh as qi,Ui as qj,Uj as qk,Uk as ul,Ul as um,V as qa,Va as qb,Vb as qc,Vc as qd,Vd as qe,Ve as rf,Vf as rg,Vg as rh,Vh as ri,Vi as rj,Vj as rk,Vk as vl,Vl as vm,W as ra,Wa as rb,Wb as rc,Wc as rd,Wd as re,We as sf,Wf as sg,Wg as sh,Wh as si,Wi as sj,Wj as sk,Wk as wl,Wl as wm,X as sa,Xa as sb,Xb as sc,Xc as sd,Xd as se,Xe as tf,Xf as tg,Xg as th,Xh as ti,Xi as tj,Xj as tk,Xk as xl,Xl as xm,Y as ta,Ya as tb,Yb as tc,Yc as td,Yd as te,Ye as uf,Yf as ug,Yg as uh,Yh as ui,Yi as uj,Yj as uk,Yk as yl,Yl as ym,Z as ua,Za as ub,Zb as uc,Zc as ud,Zd as ue,Ze as vf,Zf as vg,Zg as vh,Zh as vi,Zi as vj,Zj as vk,Zk as zl,Zl as zm,_ as va,_a as vb,_b as vc,_c as vd,_d as ve,_e as wf,_f as wg,_g as wh,_h as wi,_i as wj,_j as wk,_k as Al,_l as Am,a as x,aa as xa,ab as xb,ac as xc,ad as xd,ae as xe,af as yf,ag as yg,ah as yh,ai as yi,aj as yj,ak as yk,al as Cl,am as Cm,b as y,ba as ya,bb as yb,bc as yc,bd as yd,be as ye,bf as zf,bg as zg,bh as zh,bi as zi,bj as zj,bk as zk,bl as Dl,bm as Dm,c as z,ca as za,cb as zb,cc as zc,cd as zd,ce as ze,cf as Af,cg as Ag,ch as Ah,ci as Ai,cj as Aj,ck as Ak,cl as El,cm as Em,d as A,da as Aa,db as Ab,dc as Ac,dd as Ad,de as Ae,df as Bf,dg as Bg,dh as Bh,di as Bi,dj as Bj,dk as Bk,dl as Fl,dm as Fm,e as B,ea as Ba,eb as Bb,ec as Bc,ed as Bd,ee as Be,ef as Cf,eg as Cg,eh as Ch,ei as Ci,ej as Cj,ek as Ck,el as Gl,em as Gm,f as C,fa as Ca,fb as Cb,fc as Cc,fd as Cd,fe as Ce,ff as Df,fg as Dg,fh as Dh,fi as Di,fj as Dj,fk as Dk,fl as Hl,fm as Hm,g as D,ga as Da,gb as Db,gc as Dc,gd as Dd,ge as De,gf as Ef,gg as Eg,gh as Eh,gi as Ei,gj as Ej,gk as Ek,gl as Il,gm as Im,h as E,ha as Ea,hb as Eb,hc as Ec,hd as Ed,he as Ee,hf as Ff,hg as Fg,hh as Fh,hi as Fi,hj as Fj,hk as Fk,hl as Jl,hm as Jm,i as F,ia as Fa,ib as Fb,ic as Fc,id as Fd,ie as Fe,if as Gf,ig as Gg,ih as Gh,ii as Gi,ij as Gj,ik as Gk,il as Kl,im as Km,j as G,ja as Ga,jb as Gb,jc as Gc,jd as Gd,je as Ge,jf as Hf,jg as Hg,jh as Hh,ji as Hi,jj as Hj,jk as Hk,jl as Ll,jm as Lm,k as H,ka as Ha,kb as Hb,kc as Hc,kd as Hd,ke as He,kf as If,kg as Ig,kh as Ih,ki as Ii,kj as Ij,kk as Ik,kl as Ml,km as Mm,l as I,la as Ia,lb as Ib,lc as Ic,ld as Id,le as Ie,lf as Jf,lg as Jg,lh as Jh,li as Ji,lj as Jj,lk as Jk,ll as Nl,lm as Nm,m as J,ma as Ja,mb as Jb,mc as Jc,md as Jd,me as Je,mf as Kf,mg as Kg,mh as Kh,mi as Ki,mj as Kj,mk as Kk,ml as Ol,mm as Om,n as K,na as Ka,nb as Kb,nc as Kc,nd as Kd,ne as Ke,nf as Lf,ng as Lg,nh as Lh,ni as Li,nj as Lj,nk as Lk,nl as Pl,nm as Pm,o as L,oa as La,ob as Lb,oc as Lc,od as Ld,oe as Le,of as Mf,og as Mg,oh as Mh,oi as Mi,oj as Mj,ok as Mk,ol as Ql,om as Qm,p as M,pa as Ma,pb as Mb,pc as Mc,pd as Md,pe as Me,pf as Nf,pg as Ng,ph as Nh,pi as Ni,pj as Nj,pk as Nk,pl as Rl,pm as Vm,q as N,qa as Na,qb as Nb,qc as Nc,qd as Nd,qe as Ne,qf as Of,qg as Og,qh as Oh,qi as Oi,qj as Oj,qk as Ok,ql as Sl,qm as Wm,r as O,ra as Oa,rb as Ob,rc as Oc,rd as Od,re as Oe,rf as Pf,rg as Pg,rh as Ph,ri as Pi,rj as Pj,rk as Pk,rl as Tl,rm as Xm,s as P,sa as Pa,sb as Pb,sc as Pc,sd as Pd,se as Pe,sf as Qf,sg as Qg,sh as Qh,si as Qi,sj as Qj,sk as Qk,sl as Ul,sm as Ym,t as Q,ta as Qa,tb as Qb,tc as Qc,td as Qd,te as Qe,tf as Rf,tg as Rg,th as Rh,ti as Ri,tj as Rj,tk as Rk,tl as Vl,u as R,ua as Ra,ub as Rb,uc as Rc,ud as Rd,ue as Re,uf as Sf,ug as Sg,uh as Sh,ui as Si,uj as Sj,uk as Wk,ul as Wl,v as S,va as Sa,vb as Sb,vc as Sc,vd as Sd,ve as Se,vf as Tf,vg as Tg,vh as Th,vi as Ti,vj as Tj,vk as Xk,vl as Xl,w as T,wa as Ta,wb as Tb,wc as Tc,wd as Td,we as Te,wf as Uf,wg as Ug,wh as Uh,wi as Ui,wj as Uj,wk as Yk,wl as Yl,x as U,xa as Ua,xb as Ub,xc as Uc,xd as Ud,xe as Ue,xf as Vf,xg as Vg,xh as Vh,xi as Vi,xj as Vj,xk as Zk,xl as Zl,y as V,ya as Va,yb as Vb,yc as Vc,yd as Vd,ye as Ve,yf as Wf,yg as Wg,yh as Wh,yi as Wi,yj as Wj,yk as _k,yl as _l,z as W,za as Wa,zb as Wb,zc as Wc,zd as Wd,ze as We,zf as Xf,zg as Xg,zh as Xh,zi as Xi,zj as Xj,zk as $k,zl as $l}from"./chunk-XJU47QS2.js";import{a as Rm,b as Sm,c as Tm,d as Um}from"./chunk-2EAZB2MW.js";import{d as Sk,e as Tk,f as Uk,g as Vk}from"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import{a as r,b as s,c as t,d as u,e as v,f as w}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as n,b as o,c as p,d as q}from"./chunk-RRWL5BHZ.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import{a as l,b as m}from"./chunk-NXN7GJOH.js";import{a,b,d as c,e as d,f as e,g as f,h as g,i as h,j as i,k as j,l as k}from"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{te as ALPHAEDIT_CONFIG_DEFAULTS,sd as ALPHAEDIT_MAX_CHECKPOINT_BYTES,td as ALPHAEDIT_MAX_DATA_BYTES,Id as ALPHAEDIT_MAX_FILE_BYTES,rd as ALPHAEDIT_SOURCE_REVISION,ue as ALPHAEDIT_TRAINING_DEFAULTS,$f as ActivationExperimentFormDraftSchema,gb as ActivationReferenceCaptureSchema,hb as ActivationReferenceOutcomeSchema,db as ActivationReferencePromptSchema,eb as ActivationReferenceRequestSchema,ib as ActivationReferenceResultContentSchema,jb as ActivationReferenceResultSchema,bb as ActivationStartingProfileSchema,Md as AlphaEditArtifactContentSchema,Dd as AlphaEditArtifactReferenceSchema,Nd as AlphaEditArtifactSchema,Qd as AlphaEditComparisonsSchema,ve as AlphaEditConfigFormDraftSchema,Bd as AlphaEditConfigSchema,Ad as AlphaEditDataSchema,wd as AlphaEditExampleSchema,yd as AlphaEditExamplesSchema,ci as AlphaEditExecutionCapabilityContentSchema,di as AlphaEditExecutionCapabilitySchema,xe as AlphaEditExperimentFormDraftSchema,ud as AlphaEditHashSchema,vd as AlphaEditModelSchema,nj as AlphaEditModelServingContentSchema,jj as AlphaEditModelServingControlCommandSchema,ij as AlphaEditModelServingControlIntentSchema,pj as AlphaEditModelServingControlReceiptContentSchema,qj as AlphaEditModelServingControlReceiptSchema,hj as AlphaEditModelServingControlRequestSchema,kj as AlphaEditModelServingControlSchema,gj as AlphaEditModelServingQuerySchema,oj as AlphaEditModelServingSchema,Xe as AlphaEditModelVersionContentSchema,Ye as AlphaEditModelVersionSchema,Pd as AlphaEditModuleFileSchema,xd as AlphaEditPreservationExampleSchema,zd as AlphaEditPreservationExamplesSchema,ff as AlphaEditResultSaveReceiptContentSchema,gf as AlphaEditResultSaveReceiptSchema,df as AlphaEditResultSaveRequestSchema,mj as AlphaEditServingAvailabilitySchema,lj as AlphaEditServingBindingSchema,Jd as AlphaEditStateFilePathSchema,Hd as AlphaEditTensorSchema,we as AlphaEditTrainingFormDraftSchema,Ed as AlphaEditTrainingRequestSchema,Rd as AlphaEditTrainingResultContentSchema,Sd as AlphaEditTrainingResultSchema,Cd as AlphaEditTrainingSettingsSchema,x as ComputeAppliedPriceSchema,mc as DECISION_ADAPTER_MAXIMUM_BYTES,ic as DECISION_BACKBONE_REPOSITORY,jc as DECISION_BACKBONE_REVISION,lc as DECISION_CHAT_TEMPLATE_SHA256,kc as DECISION_PROMPT_CODE_SHA256,gc as DECISION_SOURCE_REPOSITORY,hc as DECISION_SOURCE_REVISION,Uk as DatasetTrainingReviewReceiptContentSchema,Vk as DatasetTrainingReviewReceiptSchema,Sk as DatasetTrainingReviewRequestSchema,Tk as DatasetTrainingReviewSourceSchema,Qc as DecisionAdapterArtifactContentSchema,Rc as DecisionAdapterArtifactSchema,Kc as DecisionAdapterConfigSchema,Oc as DecisionAdapterTensorSchema,Mc as DecisionArtifactContractSchema,vc as DecisionArtifactReferenceSchema,Ch as DecisionExecutionCapabilityContentSchema,Dh as DecisionExecutionCapabilitySchema,Ah as DecisionExecutionRequestSchema,Bh as DecisionExecutionResultSchema,fd as DecisionExperimentFormDraftSchema,qc as DecisionModelIdentityContentSchema,rc as DecisionModelIdentitySchema,Qj as DecisionModelScoreReceiptContentSchema,Rj as DecisionModelScoreReceiptSchema,Mj as DecisionModelScoreRequestSchema,$j as DecisionModelServingContentSchema,Xj as DecisionModelServingControlCommandSchema,Wj as DecisionModelServingControlIntentSchema,bk as DecisionModelServingControlReceiptContentSchema,ck as DecisionModelServingControlReceiptSchema,Vj as DecisionModelServingControlRequestSchema,Yj as DecisionModelServingControlSchema,Uj as DecisionModelServingQuerySchema,ak as DecisionModelServingSchema,hd as DecisionModelVersionContentSchema,id as DecisionModelVersionSchema,Tc as DecisionModuleFileSchema,Gc as DecisionQuestionDistributionSchema,ed as DecisionQuestionFormDraftSchema,xc as DecisionQuestionSchema,yc as DecisionQuestionsSchema,nd as DecisionResultSaveReceiptContentSchema,od as DecisionResultSaveReceiptSchema,md as DecisionResultSaveRequestSchema,zc as DecisionScoringInputSchema,dd as DecisionScoringLimitsFormDraftSchema,Ec as DecisionScoringRequestSchema,Hc as DecisionScoringResultContentSchema,Ic as DecisionScoringResultSchema,_j as DecisionServingAvailabilitySchema,Zj as DecisionServingBindingSchema,nc as DecisionSourceFileSchema,oc as DecisionSourceManifestContentSchema,pc as DecisionSourceManifestSchema,wc as DecisionStateSchema,Wc as DecisionSupervisedEncodingSchema,Vc as DecisionTrainingDataSchema,Ac as DecisionTrainingExampleSchema,Bc as DecisionTrainingExamplesSchema,cd as DecisionTrainingFormDraftSchema,Yc as DecisionTrainingRequestSchema,_c as DecisionTrainingResultContentSchema,$c as DecisionTrainingResultSchema,Uc as DecisionTrainingSettingsSchema,uc as DecisionValueSchema,aa as ENGRAM_ADAPTER_MAX_BYTES,ag as ENGRAM_TRAINING_DEFAULTS,la as EngramAdapterArtifactContentSchema,ma as EngramAdapterArtifactSchema,ba as EngramAdapterConfigSchema,ka as EngramAdapterTensorSchema,ja as EngramArtifactPinsSchema,ea as EngramArtifactReferenceSchema,bh as EngramExecutionCapabilityContentSchema,ch as EngramExecutionCapabilitySchema,dg as EngramExperimentFormDraftSchema,Ga as EngramInferenceOptionsSchema,Ja as EngramInferenceReceiptContentSchema,Ka as EngramInferenceReceiptSchema,Sa as EngramModelServingContentSchema,Oa as EngramModelServingControlCommandSchema,Na as EngramModelServingControlIntentSchema,Ua as EngramModelServingControlReceiptContentSchema,Va as EngramModelServingControlReceiptSchema,Ma as EngramModelServingControlRequestSchema,Pa as EngramModelServingControlSchema,Ta as EngramModelServingSchema,ta as EngramModelVersionContentSchema,ua as EngramModelVersionSchema,pa as EngramModuleFileSchema,Ea as EngramModuleReferenceSchema,ya as EngramResultSaveReceiptContentSchema,za as EngramResultSaveReceiptSchema,xa as EngramResultSaveRequestSchema,Ra as EngramServingAvailabilitySchema,Qa as EngramServingBindingSchema,ga as EngramSupervisedEncodingSchema,da as EngramTrainingDataSchema,cg as EngramTrainingFormDraftSchema,fa as EngramTrainingRequestSchema,qa as EngramTrainingResultContentSchema,ra as EngramTrainingResultSchema,ca as EngramTrainingSettingsSchema,_f as EvaluationExperimentDraftSchema,Xf as EvaluationExperimentFormDraftSchema,Yf as EvaluationExperimentSelectionSchema,Zf as EvaluationExperimentSourceSchema,xg as ExperimentDraftArchiveSchema,zg as ExperimentDraftListQuerySchema,Ag as ExperimentDraftPageSchema,yg as ExperimentDraftReceiptSchema,vg as ExperimentDraftRecordSchema,wg as ExperimentDraftSaveSchema,rg as ExperimentDraftSchema,tg as ExperimentDraftUpdateSchema,jg as ExperimentOperationTypeSchema,hg as ExperimentStartingModelSchema,n as HardwareAvailabilitySchema,q as HardwareFleetSnapshotSchema,o as HardwareGpuObservationSchema,p as HardwareObservationSchema,Tf as HostedEvaluationDatasetDraftSchema,Wf as HostedEvaluationExperimentFormDraftSchema,Vf as HostedEvaluationProfileDraftSchema,Uf as HostedEvaluationWorkflowDraftSchema,$g as MANAGED_MODIFICATION_EXECUTION_RESPONSE_MAX_BYTES,Ca as MODEL_SERVING_IDLE_TIMEOUT_SECONDS,om as MODIFICATION_RECORDING_MAX_BYTES,ji as ManagedAlphaEditCancelSchema,fi as ManagedAlphaEditCompilationContentSchema,gi as ManagedAlphaEditCompilationSchema,ei as ManagedAlphaEditCompileSchema,li as ManagedAlphaEditExecutionContentSchema,pi as ManagedAlphaEditExecutionListQuerySchema,ki as ManagedAlphaEditExecutionMetadataSchema,ri as ManagedAlphaEditExecutionPageContentSchema,si as ManagedAlphaEditExecutionPageSchema,ni as ManagedAlphaEditExecutionReceiptContentSchema,oi as ManagedAlphaEditExecutionReceiptSchema,mi as ManagedAlphaEditExecutionSchema,qi as ManagedAlphaEditExecutionSummarySchema,hi as ManagedAlphaEditPrepareSchema,ii as ManagedAlphaEditStartSchema,Jh as ManagedDecisionCancelSchema,Fh as ManagedDecisionCompilationContentSchema,Gh as ManagedDecisionCompilationSchema,Eh as ManagedDecisionCompileSchema,Lh as ManagedDecisionExecutionContentSchema,Ph as ManagedDecisionExecutionListQuerySchema,Kh as ManagedDecisionExecutionMetadataSchema,Rh as ManagedDecisionExecutionPageContentSchema,Sh as ManagedDecisionExecutionPageSchema,Nh as ManagedDecisionExecutionReceiptContentSchema,Oh as ManagedDecisionExecutionReceiptSchema,Mh as ManagedDecisionExecutionSchema,Qh as ManagedDecisionExecutionSummarySchema,Hh as ManagedDecisionPrepareSchema,Ih as ManagedDecisionStartSchema,ih as ManagedEngramCancelSchema,eh as ManagedEngramCompilationContentSchema,fh as ManagedEngramCompilationSchema,dh as ManagedEngramCompileSchema,kh as ManagedEngramExecutionContentSchema,oh as ManagedEngramExecutionListQuerySchema,jh as ManagedEngramExecutionMetadataSchema,qh as ManagedEngramExecutionPageContentSchema,rh as ManagedEngramExecutionPageSchema,mh as ManagedEngramExecutionReceiptContentSchema,nh as ManagedEngramExecutionReceiptSchema,lh as ManagedEngramExecutionSchema,ph as ManagedEngramExecutionSummarySchema,gh as ManagedEngramPrepareSchema,hh as ManagedEngramStartSchema,Ng as ManagedModificationCancelSchema,Fg as ManagedModificationCompilationContentSchema,Gg as ManagedModificationCompilationSchema,Eg as ManagedModificationCompileSchema,Jg as ManagedModificationExecutionContentSchema,Rg as ManagedModificationExecutionListQuerySchema,Og as ManagedModificationExecutionMetadataSchema,Tg as ManagedModificationExecutionPageContentSchema,Ug as ManagedModificationExecutionPageSchema,Pg as ManagedModificationExecutionReceiptContentSchema,Qg as ManagedModificationExecutionReceiptSchema,Kg as ManagedModificationExecutionSchema,Sg as ManagedModificationExecutionSummarySchema,Lg as ManagedModificationPrepareSchema,y as ManagedModificationPriceSchema,Mg as ManagedModificationStartSchema,Ji as ManagedNeuronTrainingCancelSchema,Fi as ManagedNeuronTrainingCompilationContentSchema,Gi as ManagedNeuronTrainingCompilationSchema,Ei as ManagedNeuronTrainingCompileSchema,Li as ManagedNeuronTrainingExecutionContentSchema,Pi as ManagedNeuronTrainingExecutionListQuerySchema,Ki as ManagedNeuronTrainingExecutionMetadataSchema,Ri as ManagedNeuronTrainingExecutionPageContentSchema,Si as ManagedNeuronTrainingExecutionPageSchema,Ni as ManagedNeuronTrainingExecutionReceiptContentSchema,Oi as ManagedNeuronTrainingExecutionReceiptSchema,Mi as ManagedNeuronTrainingExecutionSchema,Qi as ManagedNeuronTrainingExecutionSummarySchema,Hi as ManagedNeuronTrainingPrepareSchema,Ii as ManagedNeuronTrainingStartSchema,K as ManagedServingUsageApprovalSchema,H as ManagedServingUsageMethodSchema,I as ManagedServingUsagePriceSchema,M as ManagedServingUsageReviewResultSchema,J as ManagedServingUsageReviewSchema,L as ManagedServingUsageSnapshotSchema,mb as ManagedSftRecipeSchema,Ee as ModelModificationCapabilitiesContentSchema,Ce as ModelModificationCapabilitiesQuerySchema,Fe as ModelModificationCapabilitiesSchema,De as ModelModificationExecutionCapabilitySchema,Be as ModelModificationMethodSchema,ze as ModelModificationValidationLevelSchema,qm as ModificationRecordingContentSchema,sm as ModificationRecordingDocumentSchema,vm as ModificationRecordingListQuerySchema,wm as ModificationRecordingPageSchema,um as ModificationRecordingReadQuerySchema,tm as ModificationRecordingReadSchema,pm as ModificationRecordingRequestSchema,rm as ModificationRecordingSchema,Re as NEURON_TRAINING_DEFAULTS,Ud as NEURON_TRAINING_MAX_BYTES,Qe as NEURON_TRAINING_SELECTION_DEFAULTS,Vd as NEURON_TRAINING_UPSTREAM_REVISION,bm as NeuronCalibrationArchiveRequestSchema,$l as NeuronCalibrationImportRequestSchema,em as NeuronCalibrationListQuerySchema,gm as NeuronCalibrationPageContentSchema,hm as NeuronCalibrationPageSchema,am as NeuronCalibrationReadQuerySchema,cm as NeuronCalibrationReceiptContentSchema,dm as NeuronCalibrationReceiptSchema,Zl as NeuronCalibrationRecordContentSchema,_l as NeuronCalibrationRecordSchema,fm as NeuronCalibrationSummarySchema,Z as NeuronResidualCalibrationContentSchema,Wl as NeuronResidualCalibrationExportContentSchema,Xl as NeuronResidualCalibrationExportSchema,Vl as NeuronResidualCalibrationRequestSchema,_ as NeuronResidualCalibrationSchema,S as NeuronSteeringEntrySchema,R as NeuronSteeringModelSchema,U as NeuronSteeringNormalizationSchema,V as NeuronSteeringProfileContentSchema,W as NeuronSteeringProfileSchema,Q as NeuronSteeringReferenceSchema,T as NeuronSteeringTokenScopeSchema,de as NeuronTrainingAlgorithmSchema,le as NeuronTrainingArtifactContentSchema,me as NeuronTrainingArtifactSchema,Wd as NeuronTrainingCoordinateSchema,Yd as NeuronTrainingDataReferenceSchema,Zd as NeuronTrainingDataSchema,ae as NeuronTrainingEncodingSchema,Ci as NeuronTrainingExecutionCapabilityContentSchema,Di as NeuronTrainingExecutionCapabilitySchema,Ve as NeuronTrainingExperimentFormDraftSchema,Ue as NeuronTrainingInspectionSourceSchema,Cj as NeuronTrainingModelServingContentSchema,yj as NeuronTrainingModelServingControlCommandSchema,xj as NeuronTrainingModelServingControlIntentSchema,Ej as NeuronTrainingModelServingControlReceiptContentSchema,Fj as NeuronTrainingModelServingControlReceiptSchema,wj as NeuronTrainingModelServingControlRequestSchema,zj as NeuronTrainingModelServingControlSchema,vj as NeuronTrainingModelServingQuerySchema,Dj as NeuronTrainingModelServingSchema,Ze as NeuronTrainingModelVersionContentSchema,_e as NeuronTrainingModelVersionSchema,je as NeuronTrainingPatchTensorSchema,$d as NeuronTrainingRequestSchema,pe as NeuronTrainingResultContentSchema,hf as NeuronTrainingResultSaveReceiptContentSchema,jf as NeuronTrainingResultSaveReceiptSchema,ef as NeuronTrainingResultSaveRequestSchema,qe as NeuronTrainingResultSchema,fe as NeuronTrainingSelectionEntrySchema,Se as NeuronTrainingSelectionFormDraftSchema,ge as NeuronTrainingSelectionResultContentSchema,he as NeuronTrainingSelectionResultSchema,Xd as NeuronTrainingSelectionSchema,Bj as NeuronTrainingServingAvailabilitySchema,Aj as NeuronTrainingServingBindingSchema,Te as NeuronTrainingSettingsFormDraftSchema,_d as NeuronTrainingSettingsSchema,oe as NeuronTrainingWorkSchema,b as OPENPOND_TRAINING_MEDIA_TYPE,a as OPENPOND_TRAINING_PROTOCOL_MAJOR,f as OpenPondProtocolError,m as OpenPondTrainingApiError,Db as PolicyOptimizationRequestSchema,Lj as ResolvedDecisionSelectionSchema,Ha as ResolvedEngramSelectionSchema,zl as ResolvedSteeringSelectionSchema,bj as ResolvedWeightModelSelectionSchema,Bb as RewardModelTrainingRequestSchema,se as SavedAlphaEditExperimentSourceSchema,bd as SavedDecisionExperimentSourceSchema,Kj as SavedDecisionModelSelectionSchema,va as SavedEngramExperimentSourceSchema,Fa as SavedEngramModelSelectionSchema,Nl as SavedModelServingQuerySchema,Ml as SavedModelServingSchema,Hf as SavedModelVersionReadSchema,sf as SavedModelVersionSchema,Pe as SavedNeuronTrainingExperimentSourceSchema,ab as SavedSteeringExperimentSourceSchema,$a as SavedSteeringModelSelectionSchema,aj as SavedWeightModelSelectionSchema,lb as SftRecipeSchema,xl as SteeringInferenceOptionsSchema,Bl as SteeringInferenceReceiptContentSchema,Cl as SteeringInferenceReceiptSchema,Kl as SteeringModelServingContentSchema,Gl as SteeringModelServingControlCommandSchema,Fl as SteeringModelServingControlIntentSchema,Ol as SteeringModelServingControlReceiptContentSchema,Pl as SteeringModelServingControlReceiptSchema,El as SteeringModelServingControlRequestSchema,Hl as SteeringModelServingControlSchema,Ll as SteeringModelServingSchema,qf as SteeringModelVersionContentSchema,rf as SteeringModelVersionSchema,yf as SteeringProfileArchiveRequestSchema,Cf as SteeringProfileListQuerySchema,Ff as SteeringProfilePageContentSchema,Gf as SteeringProfilePageSchema,nf as SteeringProfilePublicationContentSchema,of as SteeringProfilePublicationSchema,Ef as SteeringProfileReadQuerySchema,zf as SteeringProfileReceiptContentSchema,Af as SteeringProfileReceiptSchema,uf as SteeringProfileRecordContentSchema,vf as SteeringProfileRecordSchema,xf as SteeringProfileSaveRequestSchema,Df as SteeringProfileSummarySchema,_a as SteeringPublicationReferenceSchema,Jl as SteeringServingAvailabilitySchema,Il as SteeringServingBindingSchema,Me as StoredAlphaEditResultReferenceSchema,Le as StoredDecisionResultReferenceSchema,Ke as StoredEngramResultReferenceSchema,ug as StoredExperimentDraftReferenceSchema,Oe as StoredExperimentResultReferenceSchema,Je as StoredManagedModificationResultReferenceSchema,Ne as StoredNeuronTrainingResultReferenceSchema,Ie as StoredTrainingResultReferenceSchema,e as TRAINING_API_RESPONSE_MAX_BYTES,Rm as TRAINING_EVALUATION_SOURCE_PATH,d as TRAINING_INPUT_ARTIFACT_MAX_BYTES,c as TRAINING_JOB_SUBMISSION_MAX_BYTES,sk as TrainingAcceptanceGroupPageSchema,tk as TrainingAcceptanceGroupQuerySchema,qk as TrainingAcceptanceGroupReferenceSchema,rk as TrainingAcceptanceGroupSummarySchema,l as TrainingApiErrorSchema,C as TrainingBillingModesSchema,Im as TrainingCandidateDecisionRequestSchema,Jm as TrainingCandidateDecisionSchema,Yb as TrainingCapabilitiesSchema,zb as TrainingCapabilityRequirementSchema,pb as TrainingCheckpointRecoveryRequestSchema,nb as TrainingCheckpointRecoveryResourceApprovalSchema,Gk as TrainingEstimateComponentSchema,Fk as TrainingEstimateRequestSchema,s as TrainingEstimateReviewSchema,Ik as TrainingEstimateSchema,Ek as TrainingEstimateSourceSchema,Dk as TrainingEstimateWorkloadSchema,Sm as TrainingEvaluationSourceSchema,Nm as TrainingEvaluationTaskPageSchema,Mm as TrainingEvaluationTaskResultSchema,ok as TrainingExecutionListQuerySchema,pk as TrainingExecutionPageSchema,Rb as TrainingExecutionReceiptSchema,nk as TrainingExecutionSummarySchema,qg as TrainingExperimentFormDraftSchema,pg as TrainingExperimentInputsPageSchema,eg as TrainingExperimentLearningIntentSchema,vk as TrainingExperimentLearningReceiptSchema,uk as TrainingExperimentLearningRequestSchema,mg as TrainingExperimentSetupReceiptSchema,lg as TrainingExperimentSetupRequestSchema,Kk as TrainingFundingDraftRefSchema,Nk as TrainingFundingHandoffRequestSchema,Ok as TrainingFundingHandoffSchema,Lk as TrainingFundingRequestSchema,Mk as TrainingFundingSchema,t as TrainingGpuCatalogQuerySchema,v as TrainingGpuCatalogSchema,u as TrainingGpuCatalogScopeSchema,r as TrainingGpuSelectionSchema,Dm as TrainingHardwareCatalogSchema,Cm as TrainingHardwareInventorySchema,Bm as TrainingHardwareSpecificationSchema,Hm as TrainingHarnessSourcePublicationSchema,ub as TrainingInputArtifactSchema,tb as TrainingInputArtifactUploadSchema,Fb as TrainingJobApprovalSchema,Ob as TrainingJobControlRequestSchema,Mb as TrainingJobEventSchema,xb as TrainingJobKindSchema,Nb as TrainingJobLogSchema,Pb as TrainingJobOutputSchema,Vb as TrainingJobOutputsSchema,Lb as TrainingJobPageSchema,Jb as TrainingJobRecoverySchema,Eb as TrainingJobRequestSchema,Kb as TrainingJobSchema,Ab as TrainingJobSourceSchema,yb as TrainingJobStateSchema,Gb as TrainingJobSubmissionSchema,sl as TrainingModelServingContentSchema,il as TrainingModelServingControlCommandSchema,hl as TrainingModelServingControlIntentSchema,jl as TrainingModelServingControlReceiptSchema,gl as TrainingModelServingControlRequestSchema,fl as TrainingModelServingControlSchema,ml as TrainingModelServingQuerySchema,tl as TrainingModelServingSchema,$b as TrainingModelVersionContentSchema,ac as TrainingModelVersionSchema,qb as TrainingPhysicalPlacementSchema,Wb as TrainingPolicyLoraCapabilitiesSchema,Pf as TrainingPreparationControlSchema,Qf as TrainingPreparationListQuerySchema,Rf as TrainingPreparationPageSchema,Kf as TrainingPreparationParentSchema,Mf as TrainingPreparationPlanContentSchema,Nf as TrainingPreparationPlanSchema,Of as TrainingPreparationReceiptSchema,Lf as TrainingPreparationRequestSchema,Cb as TrainingQualificationBaseModelSchema,Qb as TrainingQualificationEvidenceSchema,rb as TrainingQueueStatusSchema,_b as TrainingResultCandidateSchema,cc as TrainingResultContentSchema,_k as TrainingResultSaveCommandSchema,Zk as TrainingResultSaveIntentSchema,$k as TrainingResultSaveReceiptSchema,Yk as TrainingResultSaveRequestSchema,dc as TrainingResultSchema,Zb as TrainingResultSourceSchema,al as TrainingSavedModelQuerySchema,bl as TrainingSavedModelSchema,ql as TrainingServingBindingSchema,pl as TrainingServingDeploymentSchema,rl as TrainingServingLoadEvidenceSchema,Da as TrainingServingPoolSchema,ol as TrainingServingRegistrySchema,nl as TrainingServingVersionSchema,D as TrainingUsageFundingRequestSchema,E as TrainingUsageQuoteContentSchema,F as TrainingUsageQuoteSchema,sb as TrainingUsageSnapshotSchema,dj as WeightModelInferenceReceiptContentSchema,ej as WeightModelInferenceReceiptSchema,lm as activationDoseComparison,Wm as activationFormFromSteeringVersion,mm as activationResultComparison,cb as activationStartingProfileSource,jk as alphaEditFormFromModelVersion,Ld as alphaEditMinimumCheckpointBytes,rj as alphaEditModelServingState,Kd as alphaEditTensorInventory,j as assertCanonicalPayloadSize,A as assertManagedModificationPricing,Ae as assertModelModificationValidationLevel,Tm as assertTrainingEvaluationIsolation,Ub as assertTrainingQualificationReceipt,z as canonicalComputeSpendCap,g as canonicalJson,h as canonicalJsonByteLength,Wg as canonicalModificationSpend,i as canonicalSha256,Vm as compileActivationForm,uj as createAlphaEditModelServingClient,Xk as createDatasetTrainingReviewClient,qd as createDecisionModelClient,Tj as createDecisionModelScoringClient,gk as createDecisionModelServingClient,Ba as createEngramModelClient,Za as createEngramModelServingClient,Dg as createExperimentDraftClient,Bi as createManagedAlphaEditExecutionClient,bi as createManagedDecisionExecutionClient,zh as createManagedEngramExecutionClient,ah as createManagedModificationExecutionClient,$i as createManagedNeuronTrainingExecutionClient,P as createManagedServingUsageApproval,He as createModelModificationCapabilitiesClient,Am as createModificationRecordingsClient,km as createNeuronCalibrationClient,X as createNeuronSteeringProfile,Jj as createNeuronTrainingModelServingClient,Ul as createSavedModelServingClient,Jf as createSteeringProfileClient,ob as createTrainingCheckpointRecoveryResourceApproval,Ym as createTrainingClient,Ck as createTrainingExperimentLearningClient,Rk as createTrainingFundingClient,Gm as createTrainingHardwareCatalogClient,el as createTrainingModelSaveClient,wl as createTrainingModelServingClient,ll as createTrainingModelServingControlClient,fc as createTrainingResultClient,mf as createWeightModelClient,Lc as decisionAdapterConfig,Pc as decisionAdapterTensorInventory,Nc as decisionArtifactContract,ld as decisionFormFromModelVersion,sc as decisionModelIdentity,dk as decisionModelServingState,Dc as decisionReferenceInput,gd as decisionSourcePreference,Xc as decisionSupervisedEncoding,Qm as deterministicTrainingRewardSource,na as engramAdapterTensorInventory,mk as engramFormFromModelVersion,Wa as engramModelServingState,bg as engramPaperConfig,ha as engramSupervisedEncoding,kg as experimentOperationLabel,ik as experimentStartingModelFromAlphaEditVersion,hk as experimentStartingModelFromDecisionVersion,lk as experimentStartingModelFromEngramVersion,kk as experimentStartingModelFromNeuronTrainingVersion,Xm as experimentStartingModelFromSteeringVersion,B as managedModificationPriceApprovalMatches,O as managedServingUsageApprovalMatches,ee as neuronTrainingAlgorithm,be as neuronTrainingEncoding,Gj as neuronTrainingModelServingState,ke as neuronTrainingPatchTensorInventory,ye as newAlphaEditExperimentForm,We as newNeuronTrainingExperimentForm,ui as parseAlphaEditFormConfig,ti as parseAlphaEditFormTraining,fb as parseAndVerifyActivationReferenceRequest,kb as parseAndVerifyActivationReferenceResult,Od as parseAndVerifyAlphaEditArtifact,vi as parseAndVerifyAlphaEditExecutionCapability,tj as parseAndVerifyAlphaEditModelServing,sj as parseAndVerifyAlphaEditModelServingControl,$e as parseAndVerifyAlphaEditModelVersion,kf as parseAndVerifyAlphaEditResultSaveReceipt,Fd as parseAndVerifyAlphaEditTrainingRequest,Td as parseAndVerifyAlphaEditTrainingResult,Wk as parseAndVerifyDatasetTrainingReviewReceipt,Sc as parseAndVerifyDecisionAdapterArtifact,Vh as parseAndVerifyDecisionExecutionCapability,tc as parseAndVerifyDecisionModelIdentity,Sj as parseAndVerifyDecisionModelScoreReceipt,fk as parseAndVerifyDecisionModelServing,ek as parseAndVerifyDecisionModelServingControl,jd as parseAndVerifyDecisionModelVersion,pd as parseAndVerifyDecisionResultSaveReceipt,Fc as parseAndVerifyDecisionScoringRequest,Jc as parseAndVerifyDecisionScoringResult,Cc as parseAndVerifyDecisionTrainingExamples,Zc as parseAndVerifyDecisionTrainingRequest,ad as parseAndVerifyDecisionTrainingResult,oa as parseAndVerifyEngramAdapterArtifact,th as parseAndVerifyEngramExecutionCapability,La as parseAndVerifyEngramInferenceReceipt,Ya as parseAndVerifyEngramModelServing,Xa as parseAndVerifyEngramModelServingControl,wa as parseAndVerifyEngramModelVersion,Aa as parseAndVerifyEngramResultSaveReceipt,ia as parseAndVerifyEngramTrainingRequest,sa as parseAndVerifyEngramTrainingResult,sg as parseAndVerifyExperimentDraft,Cg as parseAndVerifyExperimentDraftReceipt,Bg as parseAndVerifyExperimentDraftRecord,ig as parseAndVerifyExperimentStartingModel,wi as parseAndVerifyManagedAlphaEditCompilation,xi as parseAndVerifyManagedAlphaEditExecution,Ai as parseAndVerifyManagedAlphaEditExecutionPage,zi as parseAndVerifyManagedAlphaEditExecutionReceipt,yi as parseAndVerifyManagedAlphaEditPrepare,Yh as parseAndVerifyManagedDecisionCompilation,_h as parseAndVerifyManagedDecisionExecution,ai as parseAndVerifyManagedDecisionExecutionPage,$h as parseAndVerifyManagedDecisionExecutionReceipt,Zh as parseAndVerifyManagedDecisionPrepare,uh as parseAndVerifyManagedEngramCompilation,vh as parseAndVerifyManagedEngramExecution,yh as parseAndVerifyManagedEngramExecutionPage,xh as parseAndVerifyManagedEngramExecutionReceipt,wh as parseAndVerifyManagedEngramPrepare,Ig as parseAndVerifyManagedModificationCompilation,_g as parseAndVerifyManagedModificationExecution,Vg as parseAndVerifyManagedModificationExecutionPage,Zg as parseAndVerifyManagedModificationExecutionReceipt,Xg as parseAndVerifyManagedModificationPrepare,Wi as parseAndVerifyManagedNeuronTrainingCompilation,Xi as parseAndVerifyManagedNeuronTrainingExecution,_i as parseAndVerifyManagedNeuronTrainingExecutionPage,Zi as parseAndVerifyManagedNeuronTrainingExecutionReceipt,Yi as parseAndVerifyManagedNeuronTrainingPrepare,Ge as parseAndVerifyModelModificationCapabilities,jm as parseAndVerifyNeuronCalibrationReceipt,im as parseAndVerifyNeuronCalibrationRecord,$ as parseAndVerifyNeuronResidualCalibration,Yl as parseAndVerifyNeuronResidualCalibrationExport,Y as parseAndVerifyNeuronSteeringProfile,ne as parseAndVerifyNeuronTrainingArtifact,Vi as parseAndVerifyNeuronTrainingExecutionCapability,Ij as parseAndVerifyNeuronTrainingModelServing,Hj as parseAndVerifyNeuronTrainingModelServingControl,af as parseAndVerifyNeuronTrainingModelVersion,ce as parseAndVerifyNeuronTrainingRequest,re as parseAndVerifyNeuronTrainingResult,lf as parseAndVerifyNeuronTrainingResultSaveReceipt,ie as parseAndVerifyNeuronTrainingSelection,Pj as parseAndVerifyResolvedDecisionSelection,Ia as parseAndVerifyResolvedEngramSelection,Al as parseAndVerifyResolvedSteeringSelection,cj as parseAndVerifyResolvedWeightModelSelection,Tl as parseAndVerifySavedModelServing,tf as parseAndVerifySavedModelVersion,If as parseAndVerifySavedModelVersionRead,Dl as parseAndVerifySteeringInferenceReceipt,Sl as parseAndVerifySteeringModelServing,Rl as parseAndVerifySteeringModelServingControl,pf as parseAndVerifySteeringProfilePublication,Bf as parseAndVerifySteeringProfileReceipt,wf as parseAndVerifySteeringProfileRecord,Lm as parseAndVerifyTrainingCandidateDecision,Jk as parseAndVerifyTrainingEstimate,Pm as parseAndVerifyTrainingEvaluationTaskPage,Tb as parseAndVerifyTrainingExecutionReceipt,og as parseAndVerifyTrainingExperimentSetupReceipt,Pk as parseAndVerifyTrainingFunding,Qk as parseAndVerifyTrainingFundingHandoff,w as parseAndVerifyTrainingGpuCatalog,Fm as parseAndVerifyTrainingHardwareCatalog,Em as parseAndVerifyTrainingHardwareInventory,wb as parseAndVerifyTrainingInputArtifactUpload,Ib as parseAndVerifyTrainingJobSubmission,vl as parseAndVerifyTrainingModelServing,kl as parseAndVerifyTrainingModelServingControl,bc as parseAndVerifyTrainingModelVersion,Sf as parseAndVerifyTrainingPreparationReceipt,ec as parseAndVerifyTrainingResult,dl as parseAndVerifyTrainingResultSave,cl as parseAndVerifyTrainingSavedModel,fj as parseAndVerifyWeightModelInferenceReceipt,k as parseBoundedJson,Uh as parseDecisionFormScoring,Th as parseDecisionFormTraining,Nj as parseDecisionModelScoreRequest,sh as parseEngramFormTraining,Xh as parseManagedDecisionCompile,Hg as parseManagedModificationCompile,Yg as parseManagedModificationControl,Ui as parseNeuronTrainingFormSelection,Ti as parseNeuronTrainingFormTraining,Oj as resolvedDecisionSelection,fg as savedSteeringExperimentSource,yl as savedSteeringModelSelection,Ql as steeringModelServingState,Xb as supportsTrainingPolicyLoraRank,Km as trainingCandidateDecisionHash,Hk as trainingEstimateSourceIdentity,Um as trainingEvaluationSourceRef,Om as trainingEvaluationTaskPageHash,Sb as trainingExecutionReceiptHash,ng as trainingExperimentConfigurationIdentity,Ak as trainingExperimentInitialLearning,xk as trainingExperimentLearningInputHash,wk as trainingExperimentLearningRequest,Bk as trainingExperimentLearningSettings,zk as trainingExperimentSavedConfiguration,yk as trainingExperimentTrainingInputHash,vb as trainingInputArtifactUploadHash,Hb as trainingJobSubmissionHash,ul as trainingModelServingState,Gd as verifyAlphaEditData,nm as verifyAndCompareActivationReferenceResult,Wh as verifyDecisionExecutionCapabilityRequest,N as verifyManagedServingUsageBilling,ym as verifyModificationRecording,zm as verifyModificationRecordingRead,xm as verifyModificationRecordingRequest,bf as verifySavedAlphaEditExperimentSource,kd as verifySavedDecisionExperimentSource,cf as verifySavedNeuronTrainingExperimentSource,gg as verifySavedSteeringExperimentSource,G as verifyTrainingUsageQuote};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as ce}from"./chunk-7OFD6TFD.js";import{a as de}from"./chunk-R2FYCJL6.js";import{a as le}from"./chunk-IHAEZ73V.js";import{a as oe}from"./chunk-7RJOCGQ6.js";import{a as ae}from"./chunk-5G7BQAUA.js";import{a as se}from"./chunk-XOPHFUUY.js";import{im as ne,lb as ee,nf as re,uf as ie,xb as te}from"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import{b as A,c as ue}from"./chunk-KP2MYTP5.js";import"./chunk-PNPV2LDE.js";import"./chunk-55YD4UTW.js";import{q as Y,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 K,tc as S,uc as W,vc as Q,wc as X,xc as Z}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as G}from"./chunk-HIMG7S5E.js";import"./chunk-REGKOCDO.js";import{a as V}from"./chunk-JF7WWLNW.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-EJOV6Z6F.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-MZKCW6CB.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 z}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 pe(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-JTYQA7GA.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(pe,"attachHostedTrainingToChat");import{readFile as Ie}from"node:fs/promises";var M=y.string().trim().min(1).max(500),we=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),ge=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),be=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:we,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),ve=y.object({summary:Z.nullable(),observations:y.array(X).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 ue(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=ge.parse(p),a=ve.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=be.parse(p);K(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=W.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=Q.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 fe(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(fe,"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 me(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 te(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=le(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 me(i);if(e.deadlineAt===null&&s===null||!ye(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 ye(t){return t instanceof j?t.status===429||t.status>=500:t instanceof z?t.code==="invalid_error_response"||t.code==="invalid_json":t instanceof TypeError||t instanceof Error&&["TimeoutError","AbortError"].includes(t.name)}v(ye,"isTransient");function me(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(me,"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 F(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(F,"printTrainingEstimate");var d=v(t=>console.log(JSON.stringify(t,null,2)),"print");async function Xe(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 G(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 V(r,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=ne({baseUrl:b,headers:m,fetch:g}),C=v(r=>pe({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 Ie(i);if(r.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(r.toString("utf8"))},"readInput"),B=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 ie(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&&oe.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&&ae.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&&se.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&&ce.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&&de.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=Y.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;F(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.");F(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 B();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=re.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 B();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 ee(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:he}=await import("./training-hosted-report-T633TNJG.js");await E(he({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 fe(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(Xe,"runHostedTrainingCommand");export{Xe as runHostedTrainingCommand};
2
+ import{a as ce}from"./chunk-LMLGEOKV.js";import{a as de}from"./chunk-IJJ7FYZE.js";import{a as le}from"./chunk-IHAEZ73V.js";import{a as oe}from"./chunk-WAUFXZ5B.js";import{a as ae}from"./chunk-DNNWMOMG.js";import{a as se}from"./chunk-ASMQTMQB.js";import{lb as ee,nf as re,sm as ne,uf as ie,xb as te}from"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import{b as A,c as ue}from"./chunk-2QHB5P2K.js";import"./chunk-BZS2PA4O.js";import"./chunk-IV2HEX3I.js";import{r as Y,t as H}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{Cb as K,tc as S,uc as W,vc as Q,wc as X,xc as Z}from"./chunk-ZEOYNUHL.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as G}from"./chunk-HIMG7S5E.js";import"./chunk-REGKOCDO.js";import{a as V}from"./chunk-JF7WWLNW.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-EJOV6Z6F.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-MZKCW6CB.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 z}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 pe(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 w=await(p.request??await(await import("./training-GDLLLXSV.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(!w.ok)throw new Error(`Chat attachment returned HTTP ${w.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(pe,"attachHostedTrainingToChat");import{readFile as Ie}from"node:fs/promises";var M=y.string().trim().min(1).max(500),we=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),ge=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),be=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:we,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),ve=y.object({summary:Z.nullable(),observations:y.array(X).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 ue(a)}catch(w){throw w instanceof T?w:new T(a.ok?502:a.status,"invalid_response","Correction metrics returned an invalid response.",null)}if(!a.ok){let w=y.object({code:y.string().optional(),error:y.string().optional()}).passthrough().safeParse(s);throw new T(a.status,w.success?w.data.code??"correction_request_failed":"correction_request_failed",w.success?w.data.error??`Correction metrics request failed (${a.status}).`:`Correction metrics request failed (${a.status}).`,s)}return s}async read(p,e={}){let i=ge.parse(p),a=ve.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=be.parse(p);K(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 w=W.parse(a);if(w.teamId!==i.teamId||w.modelId!==i.plan.modelId||w.trainingJobId!==i.plan.trainingJobId)throw new T(502,"correction_scope_mismatch","Correction declaration did not match the requested workspace, Model or run.",null);return w}let s=Q.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 L(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(w=>!Number.isSafeInteger(w)||w>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(L,"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 fe(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(fe,"stopHostedTrainingJobAfterGroup");async function N(t){let{client:p,options:e,jobId:i,teamId:a}=t,s=null,w,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 me(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,w),w=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,w),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!==w)throw new Error("Hosted cleanup receipt does not match the watched Job and submission.");if(o.cleanupComplete){g&&await te(o,{submissionHash:w,outputs:C}),t.print({jobId:i,cleanup:{scope:"job",complete:!0,receipt:o}});return}}else if(m.rolloutProgress.groupsTarget===0&&t.readNativeInspection){let E=le(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 me(i);if(e.deadlineAt===null&&s===null||!ye(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(N,"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 ye(t){return t instanceof j?t.status===429||t.status>=500:t instanceof z?t.code==="invalid_error_response"||t.code==="invalid_json":t instanceof TypeError||t instanceof Error&&["TimeoutError","AbortError"].includes(t.name)}v(ye,"isTransient");function me(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(me,"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 F(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 w=a.method==="sft"?a.trainingRows.totals?.inputTokens:a.trainingInitialRequests.totals?.promptTokens;console.log(`Tokens in counted inputs: ${w??"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(F,"printTrainingEstimate");var d=v(t=>console.log(JSON.stringify(t,null,2)),"print");async function Xe(t,p){let e=p[0],i=p[1],a=e==="hosted-watch"?L(t):null,s=e==="hosted-score-decision"?33e4:18e4,w={deadlineAt:a?.deadlineAt??null},{context:q,baseUrl:b,teamId:c,headers:m}=await G(t),g=v((r,n)=>{let u=w.deadlineAt===null?1/0:w.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 V(r,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=ne({baseUrl:b,headers:m,fetch:g}),C=v(r=>pe({jobId:r,teamId:c,apiOrigin:new URL(b).origin}),"attach"),E=v(async(r,n)=>{d(r),await C(n)},"printAttached"),h=v(async()=>{if(!i)throw new Error(`${e} requires an input JSON file.`);let r=await Ie(i);if(r.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(r.toString("utf8"))},"readInput"),B=v(async()=>{let r=await h(),{TrainingExperimentSetupReceiptSchema:n,parseAndVerifyTrainingExperimentSetupReceipt:u}=await import("./training-UJ62NOJJ.js"),l=n.safeParse(r).success?(await u(r)).preparation:await ie(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:h,confirmed:I(t.yes)}));return}if(e&&oe.has(e)){let{runHostedAlphaEditCommand:r}=await import("./training-hosted-alphaedit-R5PVATV4.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:h}));return}if(e&&ae.has(e)){let{runHostedNeuronTrainingCommand:r}=await import("./training-hosted-neuron-training-CFWEDRSR.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:h}));return}if(e&&se.has(e)){let{runHostedEngramCommand:r}=await import("./training-hosted-engram-ZQDOKXAV.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:h}));return}if(e&&ce.has(e)){let{runHostedDecisionCommand:r}=await import("./training-hosted-decision-WNK5DE3M.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:h}));return}if(e&&de.has(e)){let{runHostedSteeringCommand:r}=await import("./training-hosted-steering-4MDUQ2YV.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:h}));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 h()),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:h,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-UEBGSSNC.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=Y.parse(await h());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-FUQWNTSB.js"),u=n.parse(await h());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-UJ62NOJJ.js"),n=r.parse(await h());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-UJ62NOJJ.js"),n=r.parse(await h());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-UJ62NOJJ.js"),u=await h();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-UJ62NOJJ.js"),n=i?r.parse(await h()):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-NOA6TYQK.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 N({client:o,jobId:r.preparation.jobId,teamId:c,options:L(t),print:d,requestBound:w,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-NOA6TYQK.js"),x=l(t)??r.trainingSetup.managedGpuSelection;F(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-UJ62NOJJ.js"),n=r.parse(await h());if(n.teamId!==c)throw new Error("Estimate input belongs to a different workspace.");F(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-UJ62NOJJ.js"),n=r.parse(await h());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-UJ62NOJJ.js"),n=r.parse(await h());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 h();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-UJ62NOJJ.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-KKI5CKOH.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-UJ62NOJJ.js"),n=r(await h());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-UJ62NOJJ.js"),n=r.parse(await h());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-UJ62NOJJ.js"),u=e==="hosted-start-modification",l=u?r.parse(await h()):n.parse(await h());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 B();d(await o.cancelPreparation(r.plan.id,{teamId:c,planHash:r.plan.contentHash,expectedRevision:r.revision}));return}if(e==="hosted-save-experiment-learning"){let{TrainingExperimentLearningRequestSchema:r}=await import("./training-UJ62NOJJ.js"),n=r.parse(await h());if(n.teamId!==c)throw new Error("Experiment learning input belongs to a different workspace.");d(await o.saveExperimentLearning(n));return}if(e==="hosted-prepare-experiment"){let{TrainingExperimentSetupRequestSchema:r}=await import("./training-UJ62NOJJ.js"),n=r.parse(await h());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=re.parse(await h());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 B();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 h()));return}if(e==="hosted-submit"||e==="hosted-qualify"){let r=await ee(await h());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-UJ62NOJJ.js"),n=r.parse(await h());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 h();d(await o.modelServing(r.modelProjectId,{teamId:c,versionHash:r.versionHash}));return}if(e==="hosted-control-model-serving"){let{TrainingModelServingControlCommandSchema:r}=await import("./training-UJ62NOJJ.js"),n=r.parse(await h());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-N4NF5AVW.js")).parseHostedServingReportEvidence(await _(i),l):void 0,{buildHostedTrainingReport:he}=await import("./training-hosted-report-T633TNJG.js");await E(he({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 h();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 fe(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 N({client:o,jobId:i,teamId:c,options:a,print:d,requestBound:w,readNativeInspection:_});return}throw new Error(`Unknown hosted training command: ${e}`)}v(Xe,"runHostedTrainingCommand");export{Xe as runHostedTrainingCommand};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a,b}from"./chunk-WAUFXZ5B.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a,b}from"./chunk-LMLGEOKV.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a,b}from"./chunk-ASMQTMQB.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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"./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};
2
+ import"./chunk-2QHB5P2K.js";import"./chunk-BZS2PA4O.js";import{L as m}from"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{Ll as r,Nl as d}from"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a,b}from"./chunk-DNNWMOMG.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a}from"./chunk-IHAEZ73V.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import{a,b}from"./chunk-IJJ7FYZE.js";import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
@@ -1,2 +1,2 @@
1
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};
2
+ import"./chunk-XJU47QS2.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import{a as b}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{L as y}from"./chunk-ZEOYNUHL.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};
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 u}from"./chunks/chunk-AZ7BL5FL.js";import{b as C}from"./chunks/chunk-Y4E5AAI7.js";import{g as f}from"./chunks/chunk-CUB6PWAJ.js";import{a as l}from"./chunks/chunk-XRKFTPHD.js";import{a as d}from"./chunks/chunk-J7X72QUY.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 w(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(w,"resolveCliTopLevelAction");async function P(e=process.argv.slice(2)){if(!await O(e))return d("openpond-cli",()=>h(e))}s(P,"runOpenPondCli");async function h(e){let{command:i,options:o,rest:t}=C(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-DKE7RJZN.js")).resolveOpenPondHome({home:o.home}));let r=w({command:i,options:o});if(r==="version"){console.log(l());return}if(r==="check-update"){await(await import("./chunks/core-commands-ZPBX35M2.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-UQN5RUPA.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-YQQNLIXA.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-YQQNLIXA.js")).runOpenPondServerCommand("web",o,t);return}await f({command:i,options:o,rest:t})||((await import("./chunks/help-UQN5RUPA.js")).printHelp(),process.exit(1))}s(h,"runCommandLine");async function O(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-VVYXQ65K.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-B7AMBGQZ.js"),import("./chunks/cli-ALEEFAJ7.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-7RN7BF4W.js"),import("./chunks/cli-ALEEFAJ7.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-B7AMBGQZ.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-LF5X4RNQ.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(O,"runEmbeddedCompanion");P().catch(async e=>{if(e instanceof u){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}
3
+ import{a as u}from"./chunks/chunk-AZ7BL5FL.js";import{b as C}from"./chunks/chunk-VND53FAU.js";import{g as f}from"./chunks/chunk-OKPV6MBX.js";import{a as l}from"./chunks/chunk-XRKFTPHD.js";import{a as d}from"./chunks/chunk-J7X72QUY.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 w(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(w,"resolveCliTopLevelAction");async function P(e=process.argv.slice(2)){if(!await O(e))return d("openpond-cli",()=>h(e))}s(P,"runOpenPondCli");async function h(e){let{command:i,options:o,rest:t}=C(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-DKE7RJZN.js")).resolveOpenPondHome({home:o.home}));let r=w({command:i,options:o});if(r==="version"){console.log(l());return}if(r==="check-update"){await(await import("./chunks/core-commands-QNZUBKOC.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-32DLAPJR.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-OHPIYEOJ.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-OHPIYEOJ.js")).runOpenPondServerCommand("web",o,t);return}await f({command:i,options:o,rest:t})||((await import("./chunks/help-32DLAPJR.js")).printHelp(),process.exit(1))}s(h,"runCommandLine");async function O(e){if(e[0]==="__dataset-preparation-authoring")return await(await import("./chunks/dataset-preparation-authoring-OBMJLGA4.js")).runDatasetPreparationAuthoringCli(e.slice(1)),!0;if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-UDG4BCEW.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-UDG4BCEW.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-YQ24C54D.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-RCWFLOVJ.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-UDG4BCEW.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-CH5STRJP.js"),import("./chunks/cli-5JARGJOD.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-HYOTHMRX.js"),import("./chunks/cli-5JARGJOD.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-CH5STRJP.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-3DJR7OAH.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(O,"runEmbeddedCompanion");P().catch(async e=>{if(e instanceof u){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{P 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-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-KHDCMVEJ.js";import"./chunks/chunk-PPF6EBTQ.js";import{a as Rt,b as At}from"./chunks/chunk-BLNEHU62.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-DFZTRMTL.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-J7X72QUY.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-HLJJAOI2.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-MZKCW6CB.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};
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-KHDCMVEJ.js";import"./chunks/chunk-K3WM4NEC.js";import{a as Rt,b as At}from"./chunks/chunk-BLNEHU62.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-DFZTRMTL.js";import"./chunks/chunk-2QHB5P2K.js";import"./chunks/chunk-BZS2PA4O.js";import"./chunks/chunk-VSQPWLAG.js";import"./chunks/chunk-6LAGMWJE.js";import"./chunks/chunk-IV2HEX3I.js";import"./chunks/chunk-C7NQPICU.js";import"./chunks/chunk-J256AEEE.js";import"./chunks/chunk-J7X72QUY.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-HLJJAOI2.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-ZEOYNUHL.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-MZKCW6CB.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};
@@ -26,7 +26,7 @@
26
26
  }
27
27
  ],
28
28
  "package": "openpond",
29
- "version": "0.2.70",
29
+ "version": "0.2.71",
30
30
  "sourceFiles": [
31
31
  {
32
32
  "path": "openpond-cli/SKILL.md",
@@ -45,8 +45,8 @@
45
45
  },
46
46
  {
47
47
  "path": "openpond-cli/references/experiments-and-training.md",
48
- "bytes": 70324,
49
- "sha256": "a610de8e67cbd663d7a3fc3942c307e5869e2d56cc28ddb22d113dbf0d045466"
48
+ "bytes": 71625,
49
+ "sha256": "f2be8dc7801e258478a2580e557bec2d498fd940c1b6377ad38e556a3205c2dc"
50
50
  },
51
51
  {
52
52
  "path": "openpond-taskset-authoring/SKILL.md",
@@ -254,6 +254,25 @@ wrapper directly. On a lost preparation reply, reconcile the same operation and
254
254
  exact input; changed inputs require a new operation. Never recreate a submitted
255
255
  job because its chat attachment failed.
256
256
 
257
+ To explicitly save an experiment's recurring SFT or GRPO learning policy, use
258
+ `training hosted-save-experiment-learning <request.json> --team-id <id> --json`.
259
+ Its `openpond.trainingExperimentLearning.v1` input contains `teamId`, `projectId`
260
+ (or null), stable `draftId` and `form` (the training form without
261
+ `learningConfiguration`). The form's `learningIntent` holds the enabled state,
262
+ schedule and spending limits. Incomplete intent may remain in a saved draft;
263
+ policy save requires an exact pinned base, sealed reviewed batch, retained
264
+ evaluation and name. Obtain the user's authority for that schedule and its
265
+ limits before saving an enabled policy. This command saves the policy; it does
266
+ not start the manual experiment or activate serving.
267
+
268
+ Retain the exact request and returned `inputHash`, `configuration` and `policy`
269
+ references. On an uncertain response, retry the unchanged file so the service
270
+ can recover the same save. Updating or disabling the saved policy requires both
271
+ `expectedConfiguration` (`id`, `expectedRevision`, `expectedEtag`) and the exact
272
+ `expectedPolicy` reference. A subsequent `hosted-prepare-experiment` request can
273
+ select that saved configuration through `configuration`, with the exact saved
274
+ base and settings. Preparing never enables or changes the recurring policy.
275
+
257
276
  Read a retained preparation with `training hosted-preparation <preparation-id>
258
277
  --team-id <id> --json`. Discover preparations with `hosted-preparations`, following
259
278
  `nextCursor` through `--cursor`; `--project-id` and `--limit` narrow that read.