openpond 0.2.66 → 0.2.68

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 (580) hide show
  1. package/dist/app-server.d.ts +691 -1
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/{account-context-TIJOM22A.js → account-context-MWB6HN6I.js} +1 -1
  4. package/dist/chunks/{acp-YYZ3ZO3Q.js → acp-2OIXATRY.js} +1 -1
  5. package/dist/chunks/{acp-agent-T26S7TU2.js → acp-agent-PAGX2B47.js} +1 -1
  6. package/dist/chunks/actions-command-2VE6YI4W.js +2 -0
  7. package/dist/chunks/{app-layer-5XUMNHDO.js → app-layer-YNEUEOEP.js} +1 -1
  8. package/dist/chunks/{app-server-connected-apps-IB6M35NS.js → app-server-connected-apps-TZOAUOYR.js} +1 -1
  9. package/dist/chunks/app-server-evaluations-RRLYWLPK.js +2 -0
  10. package/dist/chunks/app-server-harness-services-XXM336NU.js +2 -0
  11. package/dist/chunks/app-server-runtime-GBX65JJ7.js +2 -0
  12. package/dist/chunks/apps-RSFEJOQN.js +2 -0
  13. package/dist/chunks/chunk-2PXKSAG6.js +2 -0
  14. package/dist/chunks/{chunk-GRLQHYAU.js → chunk-2TGHZXJE.js} +2 -2
  15. package/dist/chunks/{chunk-YU4JYWCA.js → chunk-3A2Y7UK3.js} +1 -1
  16. package/dist/chunks/chunk-3Z4VM2LF.js +4 -0
  17. package/dist/chunks/chunk-4BUM6JEC.js +33 -0
  18. package/dist/chunks/chunk-4G3GTEVS.js +23 -0
  19. package/dist/chunks/{chunk-FUFI4THX.js → chunk-4KNPCJR4.js} +1 -1
  20. package/dist/chunks/chunk-4KTGYHCE.js +2 -0
  21. package/dist/chunks/chunk-4PUOWSDE.js +13 -0
  22. package/dist/chunks/chunk-55YD4UTW.js +2 -0
  23. package/dist/chunks/chunk-5G7BQAUA.js +2 -0
  24. package/dist/chunks/chunk-65FJWWXG.js +2 -0
  25. package/dist/chunks/{chunk-2GJD23CM.js → chunk-65WRWLUD.js} +1 -1
  26. package/dist/chunks/chunk-6D3FI2XT.js +2 -0
  27. package/dist/chunks/chunk-73TW6BKK.js +6 -0
  28. package/dist/chunks/{chunk-6S2MWJVD.js → chunk-7NCM6GBN.js} +1 -1
  29. package/dist/chunks/chunk-7OFD6TFD.js +2 -0
  30. package/dist/chunks/chunk-7OKZCJHS.js +3 -0
  31. package/dist/chunks/{chunk-NTM3KQ25.js → chunk-7PKDJHT6.js} +1 -1
  32. package/dist/chunks/chunk-7RJOCGQ6.js +2 -0
  33. package/dist/chunks/{chunk-SAZTOGX6.js → chunk-7RSQOC5M.js} +3 -3
  34. package/dist/chunks/{chunk-6TRVEA3T.js → chunk-AFH462DO.js} +1 -1
  35. package/dist/chunks/{chunk-GUG2SWRZ.js → chunk-AFKFN25T.js} +1 -1
  36. package/dist/chunks/chunk-AFYYIJ6K.js +2 -0
  37. package/dist/chunks/chunk-APKXXAUF.js +2 -0
  38. package/dist/chunks/chunk-AQUZCWM3.js +2 -0
  39. package/dist/chunks/chunk-AUO5DCEU.js +2 -0
  40. package/dist/chunks/chunk-AYOMVI7J.js +2 -0
  41. package/dist/chunks/{chunk-EVQISX7M.js → chunk-B66QCXH2.js} +1 -1
  42. package/dist/chunks/{chunk-S6UCVXBC.js → chunk-BHKXPWFB.js} +1 -1
  43. package/dist/chunks/chunk-BU6MW65V.js +10 -0
  44. package/dist/chunks/{chunk-C5B3FMV3.js → chunk-CCZ276IA.js} +1 -1
  45. package/dist/chunks/{chunk-LYVHYT3L.js → chunk-CIZI6Z7D.js} +1 -1
  46. package/dist/chunks/{chunk-4D3CICBG.js → chunk-CO23RRN7.js} +1 -1
  47. package/dist/chunks/{chunk-QAFXQHHG.js → chunk-D6L6UNUQ.js} +2 -2
  48. package/dist/chunks/chunk-DDOIPTOM.js +2 -0
  49. package/dist/chunks/{chunk-ZU3YBRXS.js → chunk-DKOVZ6R2.js} +3 -3
  50. package/dist/chunks/chunk-DRLP7GIU.js +2 -0
  51. package/dist/chunks/{chunk-DAEUVT2I.js → chunk-DRTHKWHK.js} +1 -1
  52. package/dist/chunks/{chunk-W22KWKF6.js → chunk-DWF3FCY4.js} +1 -1
  53. package/dist/chunks/{chunk-NABPZ7AK.js → chunk-DWM5G7BU.js} +1 -1
  54. package/dist/chunks/chunk-DXJC3QW7.js +2 -0
  55. package/dist/chunks/{chunk-V3S2B6WU.js → chunk-E2JB5OCO.js} +1 -1
  56. package/dist/chunks/{chunk-GI7LTJV3.js → chunk-EDYCSW22.js} +1 -1
  57. package/dist/chunks/{chunk-4JYTFEND.js → chunk-EFP75UEX.js} +1 -1
  58. package/dist/chunks/{chunk-WKHGXLJD.js → chunk-EGP6DF34.js} +2 -2
  59. package/dist/chunks/{chunk-M5QPL5NO.js → chunk-ESYPMD7Q.js} +1 -1
  60. package/dist/chunks/{chunk-PWKJ5KLZ.js → chunk-EXYSD45J.js} +1 -1
  61. package/dist/chunks/{chunk-XHBMK6LC.js → chunk-EYTTZ5H4.js} +1 -1
  62. package/dist/chunks/chunk-FKUWCJ73.js +161 -0
  63. package/dist/chunks/{chunk-U2BD545L.js → chunk-FNGZ4UDZ.js} +1 -1
  64. package/dist/chunks/{chunk-JFZ6USNQ.js → chunk-G7X73SBG.js} +1 -1
  65. package/dist/chunks/{chunk-36FNNR5N.js → chunk-GEYZVOGD.js} +1 -1
  66. package/dist/chunks/{chunk-ULJZ7NUF.js → chunk-GY7YSD6J.js} +1 -1
  67. package/dist/chunks/{chunk-JLW5BQVO.js → chunk-GYYJ47GX.js} +1 -1
  68. package/dist/chunks/chunk-HG2YFMVU.js +4 -0
  69. package/dist/chunks/{chunk-BTJACFU3.js → chunk-HKVFU3B3.js} +1 -1
  70. package/dist/chunks/chunk-IHAEZ73V.js +2 -0
  71. package/dist/chunks/{chunk-LI3FTPAH.js → chunk-IIT66347.js} +4 -4
  72. package/dist/chunks/{chunk-Q4AXZY2P.js → chunk-IO5DZUKL.js} +1 -1
  73. package/dist/chunks/chunk-J256AEEE.js +2 -0
  74. package/dist/chunks/{chunk-CRDKBFRN.js → chunk-JEMECEQH.js} +1 -1
  75. package/dist/chunks/{chunk-7P5SH3CI.js → chunk-JPUSTFZC.js} +1 -1
  76. package/dist/chunks/{chunk-5AU5Y6KS.js → chunk-JQOVC35K.js} +1 -1
  77. package/dist/chunks/{chunk-VS3AMJEK.js → chunk-JT5YQ52I.js} +1 -1
  78. package/dist/chunks/chunk-JVMSN7LH.js +2 -0
  79. package/dist/chunks/{chunk-HORMGT2Q.js → chunk-JXYJQT5Q.js} +1 -1
  80. package/dist/chunks/{chunk-OTUS7NTQ.js → chunk-K7KBFM2T.js} +1 -1
  81. package/dist/chunks/{chunk-FS2VKOT7.js → chunk-KCLMA2IH.js} +1 -1
  82. package/dist/chunks/chunk-KDER7R45.js +2 -0
  83. package/dist/chunks/{chunk-WBO6FQHR.js → chunk-KOC3YJEU.js} +2 -2
  84. package/dist/chunks/{chunk-6ZTP6CUJ.js → chunk-KP2MYTP5.js} +1 -1
  85. package/dist/chunks/{chunk-YRDPVTEI.js → chunk-KU4TPDPH.js} +2 -2
  86. package/dist/chunks/{chunk-WJSJXK2N.js → chunk-KUE46HTH.js} +1 -1
  87. package/dist/chunks/chunk-LVXL7T5O.js +2 -0
  88. package/dist/chunks/{chunk-5KWKSR4P.js → chunk-M4A7G4S5.js} +2 -2
  89. package/dist/chunks/{chunk-KAWXVMHI.js → chunk-M4ZHFDRJ.js} +1 -1
  90. package/dist/chunks/{chunk-HX6GXMDK.js → chunk-MEJLWNRS.js} +1 -1
  91. package/dist/chunks/{chunk-B666Z2NS.js → chunk-MIFVX5PK.js} +1 -1
  92. package/dist/chunks/{chunk-66HFW4OU.js → chunk-MOXIGLN2.js} +1 -1
  93. package/dist/chunks/{chunk-7XOUM6RK.js → chunk-N5EAVX4G.js} +1 -1
  94. package/dist/chunks/{chunk-Z2TOBS3P.js → chunk-NMMHXYDJ.js} +1 -1
  95. package/dist/chunks/{chunk-EBOTNBUS.js → chunk-NRYC4NH6.js} +1 -1
  96. package/dist/chunks/chunk-NSSZ2ZIU.js +2 -0
  97. package/dist/chunks/{chunk-4TTXNVCE.js → chunk-OFJPOTES.js} +1 -1
  98. package/dist/chunks/chunk-OIH2LPIT.js +2 -0
  99. package/dist/chunks/chunk-OUJ63LMU.js +2 -0
  100. package/dist/chunks/{chunk-DXA2UHBE.js → chunk-P4QM63L3.js} +1 -1
  101. package/dist/chunks/chunk-PACLKDTN.js +2 -0
  102. package/dist/chunks/{chunk-AF3AVDPP.js → chunk-PAYFJHPO.js} +1 -1
  103. package/dist/chunks/{chunk-OPTJYDZN.js → chunk-PHZZBXDO.js} +1 -1
  104. package/dist/chunks/{chunk-HPTEJBP4.js → chunk-PKJHN666.js} +1 -1
  105. package/dist/chunks/{chunk-HNDAGZCF.js → chunk-PLROXHG2.js} +1 -1
  106. package/dist/chunks/{chunk-W7NXFRHN.js → chunk-PNPV2LDE.js} +1 -1
  107. package/dist/chunks/{chunk-DSJZS77R.js → chunk-PSY6IRJE.js} +8 -8
  108. package/dist/chunks/{chunk-UK5LGSGT.js → chunk-Q73RKX7I.js} +1 -1
  109. package/dist/chunks/{chunk-PLVWARB7.js → chunk-Q7FBVLLB.js} +1 -1
  110. package/dist/chunks/{chunk-QAEZNFAM.js → chunk-Q7P34B2O.js} +1 -1
  111. package/dist/chunks/{chunk-QYQZQVVN.js → chunk-QLGP2OAQ.js} +1 -1
  112. package/dist/chunks/{chunk-GIU3Z45P.js → chunk-QUNQM2E3.js} +1 -1
  113. package/dist/chunks/chunk-R2FYCJL6.js +2 -0
  114. package/dist/chunks/{chunk-KOKBDIGR.js → chunk-R4EEGWXB.js} +1 -1
  115. package/dist/chunks/chunk-RBTDSI4L.js +11 -0
  116. package/dist/chunks/chunk-RCQYEHHD.js +2 -0
  117. package/dist/chunks/{chunk-TGULVWPV.js → chunk-RFQD6B44.js} +1 -1
  118. package/dist/chunks/{chunk-3WJQ4IGK.js → chunk-RPM4FDRX.js} +1 -1
  119. package/dist/chunks/{chunk-MCBRB5D6.js → chunk-RY46UPBO.js} +4 -4
  120. package/dist/chunks/{chunk-67HXM6AL.js → chunk-SDHG6CKU.js} +1 -1
  121. package/dist/chunks/{chunk-DIDQHTAX.js → chunk-SO4GMSNP.js} +1 -1
  122. package/dist/chunks/{chunk-O6ZYDHEJ.js → chunk-SSHE6B7Z.js} +1 -1
  123. package/dist/chunks/{chunk-SH7POUVX.js → chunk-SV7ZBEK2.js} +6 -6
  124. package/dist/chunks/{chunk-BJXPQIVD.js → chunk-U7D6Q744.js} +1 -1
  125. package/dist/chunks/chunk-U7X5ZLAL.js +2 -0
  126. package/dist/chunks/{chunk-LARJARMS.js → chunk-UANH7U3Y.js} +1 -1
  127. package/dist/chunks/{chunk-CYQLXS2U.js → chunk-UGFSAG4U.js} +1 -1
  128. package/dist/chunks/chunk-ULTV6INR.js +2 -0
  129. package/dist/chunks/{chunk-FHLSLOKH.js → chunk-UMAVVMXL.js} +7 -7
  130. package/dist/chunks/chunk-V24VHT76.js +2 -0
  131. package/dist/chunks/chunk-VEBW7NKD.js +2 -0
  132. package/dist/chunks/chunk-VJR2GNRY.js +2 -0
  133. package/dist/chunks/{chunk-JD76ANPN.js → chunk-VJYOKU3C.js} +1 -1
  134. package/dist/chunks/{chunk-5Z3AU5CL.js → chunk-VWWKWYSQ.js} +1 -1
  135. package/dist/chunks/chunk-WCNPGKST.js +2 -0
  136. package/dist/chunks/chunk-WD4KAKEX.js +2 -0
  137. package/dist/chunks/chunk-WGQ3FMRF.js +2 -0
  138. package/dist/chunks/{chunk-6C3CXME7.js → chunk-WNXUSELC.js} +1 -1
  139. package/dist/chunks/{chunk-GFAI2MCJ.js → chunk-WZ35ICTE.js} +3 -3
  140. package/dist/chunks/chunk-XHACK2KR.js +2 -0
  141. package/dist/chunks/chunk-XOPHFUUY.js +2 -0
  142. package/dist/chunks/{chunk-UXPO3ZV7.js → chunk-XQAUHXL4.js} +4 -4
  143. package/dist/chunks/{chunk-OXRVILDW.js → chunk-XT4CSKHM.js} +1 -1
  144. package/dist/chunks/{chunk-QJJNHKLT.js → chunk-XY7HFXLH.js} +1 -1
  145. package/dist/chunks/{chunk-ZUT4EM64.js → chunk-XYZV3FKD.js} +1 -1
  146. package/dist/chunks/{chunk-7FBWUVX7.js → chunk-Y2WNZWT2.js} +1 -1
  147. package/dist/chunks/chunk-Y4I6CFZJ.js +2 -0
  148. package/dist/chunks/chunk-YDZBX4XQ.js +2 -0
  149. package/dist/chunks/chunk-YI6ME6PU.js +22 -0
  150. package/dist/chunks/{chunk-H42UW6IF.js → chunk-YXMYK5P7.js} +1 -1
  151. package/dist/chunks/{chunk-D7R2AAX2.js → chunk-Z33RVGP6.js} +1 -1
  152. package/dist/chunks/{chunk-B32CW3NT.js → chunk-ZDEIVUUI.js} +1 -1
  153. package/dist/chunks/{chunk-IEVJLG3V.js → chunk-ZIQJDTQB.js} +1 -1
  154. package/dist/chunks/{chunk-GDJ4X2ZN.js → chunk-ZYLLPRPU.js} +1 -1
  155. package/dist/chunks/cli-R7TAP6Z2.js +2 -0
  156. package/dist/chunks/command-LNOVZQSK.js +58 -0
  157. package/dist/chunks/{configuration-command-4WTS2MZS.js → configuration-command-CNITTZRP.js} +1 -1
  158. package/dist/chunks/connected-app-executor-FGWCLOJO.js +2 -0
  159. package/dist/chunks/connected-evidence-5VZBYNWN.js +2 -0
  160. package/dist/chunks/{connected-starting-assets-4LDXQVLN.js → connected-starting-assets-KWOFEIE4.js} +1 -1
  161. package/dist/chunks/{connection-GDWPMHPC.js → connection-VMBXW5PD.js} +1 -1
  162. package/dist/chunks/{continual-HQCFY7GN.js → continual-FVOLGGOE.js} +1 -1
  163. package/dist/chunks/core-commands-BPYXVT7O.js +2 -0
  164. package/dist/chunks/dataset-preparation-authoring-UUYFWWCT.js +4 -0
  165. package/dist/chunks/datasets-E5TXSVIY.js +2 -0
  166. package/dist/chunks/desktop-test-FX7DTY4N.js +3 -0
  167. package/dist/chunks/dist-2MKJC6HN.js +2 -0
  168. package/dist/chunks/{dist-GR56E3QK.js → dist-DKE7RJZN.js} +1 -1
  169. package/dist/chunks/evaluation-coordination-KUTZEEPB.js +2 -0
  170. package/dist/chunks/experiment-improvements-PQNR5YHN.js +2 -0
  171. package/dist/chunks/experiments-Z4BJWT3Y.js +2 -0
  172. package/dist/chunks/experiments-signal-3GCLKUWZ.js +2 -0
  173. package/dist/chunks/{extension-UH34ZF7N.js → extension-3EKIT6BB.js} +1 -1
  174. package/dist/chunks/{help-JQA3YMCX.js → help-K6YLZ3KL.js} +1 -1
  175. package/dist/chunks/host-profile-evaluation-tools-UF4ATIUF.js +2 -0
  176. package/dist/chunks/host-profile-external-dataset-KSEPXY2S.js +2 -0
  177. package/dist/chunks/hosted-app-server-composition-LA3BZ4SE.js +2 -0
  178. package/dist/chunks/hosted-experiment-improvement-VG2WE7XZ.js +3 -0
  179. package/dist/chunks/hosted-harness-runtime-MMTLCL23.js +2 -0
  180. package/dist/chunks/hosted-profile-candidate-PTGQLPZO.js +3 -0
  181. package/dist/chunks/hosted-profile-compiler-FS5R6CHJ.js +2 -0
  182. package/dist/chunks/hosted-profile-evaluation-control-UUEZEMXU.js +2 -0
  183. package/dist/chunks/hosted-profile-evaluation-inspection-4F7OEF4T.js +3 -0
  184. package/dist/chunks/hosted-profile-evaluation-preparation-LIJJZDHQ.js +3 -0
  185. package/dist/chunks/hosted-tasksets-NXVF4AQA.js +2 -0
  186. package/dist/chunks/human-review-2ZOB7CJZ.js +2 -0
  187. package/dist/chunks/{import-CLWTKDG6.js → import-YHYKZ6JN.js} +2 -2
  188. package/dist/chunks/javascript-isolate-process-source-YAT3GPW4.js +2 -0
  189. package/dist/chunks/javascript-verifier-worker-source-LGRP74W4.js +2 -0
  190. package/dist/chunks/{learning-XTY5VOTK.js → learning-LAXMGWSQ.js} +1 -1
  191. package/dist/chunks/learning-Y3UKNUGE.js +2 -0
  192. package/dist/chunks/local-harness-improvement-runtime-3YJQRYXC.js +2 -0
  193. package/dist/chunks/local-harness-taskset-review-XQHQ6JCR.js +2 -0
  194. package/dist/chunks/{model-projects-GHWCKDON.js → model-projects-6YWVD2TS.js} +1 -1
  195. package/dist/chunks/opchat-XXI2ZM53.js +3 -0
  196. package/dist/chunks/opchat-bounded-chat-3MZGCRLY.js +2 -0
  197. package/dist/chunks/organizations-W7HI2JA4.js +2 -0
  198. package/dist/chunks/{profile-RIDNU2I5.js → profile-P2SJPBOJ.js} +1 -1
  199. package/dist/chunks/project-action-payload-LTIQBX77.js +2 -0
  200. package/dist/chunks/project-agent-XRIXMXQK.js +2 -0
  201. package/dist/chunks/published-experiment-source-SDXUVPE7.js +2 -0
  202. package/dist/chunks/refiner-profile-service-56VYLZQJ.js +2 -0
  203. package/dist/chunks/{runtime-VSOOPNYN.js → runtime-Q7JUJO4D.js} +2 -2
  204. package/dist/chunks/sandbox-command-HVA5FJU4.js +2 -0
  205. package/dist/chunks/{sandbox-template-NN3XQI7M.js → sandbox-template-U536EEWY.js} +1 -1
  206. package/dist/chunks/saved-work-KSIQPXC2.js +2 -0
  207. package/dist/chunks/{send-turn-D3GTSSHI.js → send-turn-YLY3YNEQ.js} +1 -1
  208. package/dist/chunks/setup-RMZ2BHLM.js +2 -0
  209. package/dist/chunks/{src-662QOKNP.js → src-C3ZUESMK.js} +1 -1
  210. package/dist/chunks/src-SGQYVBNQ.js +424 -0
  211. package/dist/chunks/standalone-experiment-turn-owner-TW5MTWIO.js +2 -0
  212. package/dist/chunks/store-chat-resources-IRHBW2EC.js +2 -0
  213. package/dist/chunks/{store-continual-support-reviews-7PDLGRWF.js → store-continual-support-reviews-3KK42L4I.js} +1 -1
  214. package/dist/chunks/store-conversation-serving-IVURK52V.js +2 -0
  215. package/dist/chunks/{store-create-improve-G46KIUVT.js → store-create-improve-UTCLBXF2.js} +1 -1
  216. package/dist/chunks/{store-datasets-O67F75BL.js → store-datasets-4AQOVAQY.js} +1 -1
  217. package/dist/chunks/store-evaluation-results-PK2P3IMH.js +7 -0
  218. package/dist/chunks/{store-harness-workspaces-PJJQ74G6.js → store-harness-workspaces-YEXB4IRV.js} +1 -1
  219. package/dist/chunks/store-human-review-O4BVHP25.js +7 -0
  220. package/dist/chunks/store-learned-preference-migration-validation-44SVX6YB.js +2 -0
  221. package/dist/chunks/{store-learning-6P6IS7GH.js → store-learning-SIUQIY5C.js} +1 -1
  222. package/dist/chunks/{store-learning-credentials-EGJ2WTZI.js → store-learning-credentials-BUHR7SN6.js} +1 -1
  223. package/dist/chunks/store-local-experiments-BHVTKPPE.js +97 -0
  224. package/dist/chunks/store-model-batch-review-RVAYUVK2.js +2 -0
  225. package/dist/chunks/{store-model-configuration-T6XJJDAB.js → store-model-configuration-6L3OYXF4.js} +1 -1
  226. package/dist/chunks/store-model-project-preparation-AAEKCF6V.js +2 -0
  227. package/dist/chunks/store-modification-recordings-LCPK6K2T.js +9 -0
  228. package/dist/chunks/{store-preference-comparison-XQFTLMGH.js → store-preference-comparison-5YVIQNVB.js} +1 -1
  229. package/dist/chunks/{store-sidebar-file-bookmarks-J3JEVAYR.js → store-sidebar-file-bookmarks-WLMYDA4E.js} +1 -1
  230. package/dist/chunks/{store-sidebar-preferences-2JHTFXJK.js → store-sidebar-preferences-AFMYIDWT.js} +1 -1
  231. package/dist/chunks/{store-subagents-PUBQVWSU.js → store-subagents-KFPVSTRO.js} +1 -1
  232. package/dist/chunks/{store-task-inbox-VVXZUJIO.js → store-task-inbox-L6IQTY26.js} +1 -1
  233. package/dist/chunks/{store-task-inventory-MQX44AI6.js → store-task-inventory-QWS2C656.js} +1 -1
  234. package/dist/chunks/store-taskset-drafts-FRFL6ITK.js +9 -0
  235. package/dist/chunks/{store-training-DUVIDYK5.js → store-training-FYXZU2FE.js} +1 -1
  236. package/dist/chunks/{store-training-jobs-HHFH3V5O.js → store-training-jobs-3N3VKPIY.js} +1 -1
  237. package/dist/chunks/{store-training-models-C7UUZDTO.js → store-training-models-VOFVGPZR.js} +1 -1
  238. package/dist/chunks/{taskset-7FQCJ55X.js → taskset-UDDLFYKV.js} +1 -1
  239. package/dist/chunks/taskset-catalog-RZYEBCRQ.js +2 -0
  240. package/dist/chunks/taskset-packages-T6B6HYKZ.js +2 -0
  241. package/dist/chunks/taskset-packages-WMG5DUBN.js +2 -0
  242. package/dist/chunks/{teams-bot-FXMCOCPP.js → teams-bot-MPWL2PP4.js} +1 -1
  243. package/dist/chunks/tool-learning-ZQ6NSJ5K.js +2 -0
  244. package/dist/chunks/training-5NT2YB2L.js +2 -0
  245. package/dist/chunks/training-5UMT45UL.js +2 -0
  246. package/dist/chunks/training-UY6KRG4M.js +2 -0
  247. package/dist/chunks/{training-error-LQKCOQDJ.js → training-error-WF463UNZ.js} +1 -1
  248. package/dist/chunks/{training-hardware-ESXRWUIK.js → training-hardware-UWQCRDMV.js} +1 -1
  249. package/dist/chunks/training-hosted-CKSDRVL6.js +2 -0
  250. package/dist/chunks/training-hosted-alphaedit-HSMRDJTD.js +2 -0
  251. package/dist/chunks/training-hosted-checkpoint-evaluation-2X7RSOLC.js +2 -0
  252. package/dist/chunks/training-hosted-decision-7JALOU6O.js +2 -0
  253. package/dist/chunks/training-hosted-engram-SXO75MFG.js +2 -0
  254. package/dist/chunks/{training-hosted-learning-YN5VD3PW.js → training-hosted-learning-E2N32YU5.js} +1 -1
  255. package/dist/chunks/training-hosted-modification-comparison-TXFDJFTG.js +2 -0
  256. package/dist/chunks/training-hosted-neuron-training-J42WK4EH.js +2 -0
  257. package/dist/chunks/training-hosted-report-T633TNJG.js +2 -0
  258. package/dist/chunks/training-hosted-serving-report-BAEABGJH.js +2 -0
  259. package/dist/chunks/training-hosted-steering-T556BUBG.js +2 -0
  260. package/dist/chunks/training-hosted-workers-Y2PO5IOA.js +2 -0
  261. package/dist/chunks/training-model-start-P3PXDWNT.js +2 -0
  262. package/dist/chunks/web-search-ZEKJHZW4.js +2 -0
  263. package/dist/chunks/{workspaces-MCS2AQX6.js → workspaces-EK62ANTB.js} +1 -1
  264. package/dist/cli.js +1 -1
  265. package/dist/index.js +1 -1
  266. package/dist/sandbox/types/billing.d.ts +87 -6
  267. package/dist/sandbox/types/io.d.ts +3 -0
  268. package/dist/sandbox-template/manifest.js +1 -1
  269. package/dist/skills/manifest.json +3 -3
  270. package/dist/skills/openpond-cli/references/experiments-and-training.md +461 -1
  271. package/dist/web/assets/App-CCuh99JW.js +54 -0
  272. package/dist/web/assets/{AppDialog-DuSd0wk6.js → AppDialog-CxjDHVk9.js} +1 -1
  273. package/dist/web/assets/AppTerminalPanel-CKJIVpKa.js +2 -0
  274. package/dist/web/assets/{AppToastContext-Dklk6CaG.js → AppToastContext-EpiT1dHs.js} +1 -1
  275. package/dist/web/assets/AppsView-BsMyPX_3.js +1 -0
  276. package/dist/web/assets/{AppsView-DNHWzJb2.css → AppsView-D3vVesNd.css} +1 -1
  277. package/dist/web/assets/{AttachmentTypeIcon-DipNT6Tj.js → AttachmentTypeIcon-BXvZy5gB.js} +1 -1
  278. package/dist/web/assets/BrowserSidebar-BIIV4aq4.js +1 -0
  279. package/dist/web/assets/{CartesianChart-UU1sdoUO.js → CartesianChart-brqLBqnF.js} +1 -1
  280. package/dist/web/assets/ChatTimelineEntry-CwZbn16X.js +8 -0
  281. package/dist/web/assets/{CollaborationTabs-BWYRQ1PE.js → CollaborationTabs-BU4uc4tZ.js} +1 -1
  282. package/dist/web/assets/{CommandMenu-B08F9x5g.js → CommandMenu-DkWpXR55.js} +1 -1
  283. package/dist/web/assets/CommunityView-CsSxJZGn.js +1 -0
  284. package/dist/web/assets/{ComposerAttachments-srWBKvCv.js → ComposerAttachments-BdJGCYzI.js} +1 -1
  285. package/dist/web/assets/{ComposerCreateImproveStrip-DqTpU5cO.js → ComposerCreateImproveStrip-CWy0j1vv.js} +1 -1
  286. package/dist/web/assets/{ConversationImportsSettings-2KC-KQvu.js → ConversationImportsSettings-DCmiakbZ.js} +1 -1
  287. package/dist/web/assets/DatasetReviewImport-DEnF_pGu.js +1 -0
  288. package/dist/web/assets/ExperimentTrainingDataWorkspace-WhwQ0QBi.js +2 -0
  289. package/dist/web/assets/{FilePagePreview-B-iUVPhh.js → FilePagePreview-BRhhz99q.js} +2 -2
  290. package/dist/web/assets/{GetStartedView-5v0vBWXy.js → GetStartedView-CLVD-qEi.js} +1 -1
  291. package/dist/web/assets/{GettingStartedDialog-Bn4072K-.js → GettingStartedDialog-CMxaAMg-.js} +1 -1
  292. package/dist/web/assets/HostedModelLearningReview-Cn-j-rDo.js +1 -0
  293. package/dist/web/assets/HostedModelLearningSettings-VNBvf38S.js +1 -0
  294. package/dist/web/assets/{HtmlVisual-C2WsMj90.js → HtmlVisual-D5y2WG9L.js} +10 -10
  295. package/dist/web/assets/LabModelVersionDetailPage-BxRmYD6h.js +1 -0
  296. package/dist/web/assets/{TrainingRunLineage-PXzWR65d.css → LabModelWorkspace-DOrgCk9Z.css} +1 -1
  297. package/dist/web/assets/LabModelWorkspace-u2Ulm_z4.js +1 -0
  298. package/dist/web/assets/{LabSkillSidebar-C50P74LI.js → LabSkillSidebar-C7IceJTJ.js} +1 -1
  299. package/dist/web/assets/LabsRoute-C9Y0GU34.css +1 -0
  300. package/dist/web/assets/LabsRoute-CbztQaEf.js +74 -0
  301. package/dist/web/assets/LearningBatchesPage-B1NZTBSv.css +1 -0
  302. package/dist/web/assets/LearningBatchesPage-CJqgZNvM.js +26 -0
  303. package/dist/web/assets/MainChatThread-DNMfrrRq.js +2 -0
  304. package/dist/web/assets/{MainPane-Dje-hfUM.css → MainPane-BZlNLfTM.css} +1 -1
  305. package/dist/web/assets/MainPane-CQQxSDPS.js +13 -0
  306. package/dist/web/assets/ModelProjectPageHeader-Dge19aE1.js +1 -0
  307. package/dist/web/assets/NativeSetupTerminal-D4JnbpyD.js +2 -0
  308. package/dist/web/assets/{NativeSkillSidebar-Clv0IWyn.js → NativeSkillSidebar-Jzx1BeKV.js} +1 -1
  309. package/dist/web/assets/{NewProjectDialog-Cw_F5Eaa.js → NewProjectDialog-DcnGzEd9.js} +1 -1
  310. package/dist/web/assets/{OutputsPage-Btyiie4B.js → OutputsPage-Cmk15Vt_.js} +1 -1
  311. package/dist/web/assets/{PageChrome-BLLw_cEA.js → PageChrome-Cz_fCqtn.js} +1 -1
  312. package/dist/web/assets/{ProjectsPage-BpSHWQgj.js → ProjectsPage-BZ3Eo3Mz.js} +1 -1
  313. package/dist/web/assets/RightChatPanelStack-C6H2vU9N.js +1 -0
  314. package/dist/web/assets/RightSidebarHomePanel-BfMMVkM1.js +1 -0
  315. package/dist/web/assets/{ScheduledWorkPage-WytWGQgw.js → ScheduledWorkPage-CAkSwM0T.js} +1 -1
  316. package/dist/web/assets/{SettingsView-BJq5zNkv.js → SettingsView-DvQXGw3_.js} +3 -3
  317. package/dist/web/assets/{TasksetDraftEditorPrimitives-BxFEWI9W.js → TasksetDraftEditorPrimitives-JuU1k8vr.js} +1 -1
  318. package/dist/web/assets/TeamChatView-DmHjr8W9.js +1 -0
  319. package/dist/web/assets/{TerminalOverlay-C7OM2F0-.js → TerminalOverlay-DlaM9d8F.js} +1 -1
  320. package/dist/web/assets/{TrainingCreationPanel-KH5GFacT.js → TrainingCreationPanel-ClpylNsr.js} +1 -1
  321. package/dist/web/assets/{TrainingDraftPanel-DzOw13Md.js → TrainingDraftPanel-6tH2xSDj.js} +1 -1
  322. package/dist/web/assets/{UsageSettingsSection-nZHno_4P.js → UsageSettingsSection-CzDqxOYM.js} +2 -2
  323. package/dist/web/assets/WorkSidebarPanel-CY-AHZ4-.js +1 -0
  324. package/dist/web/assets/WorkspaceDiffPanel-B4e0lyF7.js +11 -0
  325. package/dist/web/assets/WorkspaceEnvironmentMenu-D01ZkZZF.js +35 -0
  326. package/dist/web/assets/{WorkspaceFileLocation-1U8DDj1J.js → WorkspaceFileLocation-C5s_njZb.js} +1 -1
  327. package/dist/web/assets/{WorkspaceGitDialogs-BO1EUA3G.js → WorkspaceGitDialogs-DjPZ6KIh.js} +1 -1
  328. package/dist/web/assets/{WorkspaceMonacoEditor-Rqq_sKW_.js → WorkspaceMonacoEditor-CC4sfOiU.js} +3 -3
  329. package/dist/web/assets/{WorkspacePdfPreview-zmmMp09R.js → WorkspacePdfPreview-vszQqFa4.js} +2 -2
  330. package/dist/web/assets/{WorkspacePresentationPreview-DNbhGjkE.js → WorkspacePresentationPreview-DQTvhaRD.js} +1 -1
  331. package/dist/web/assets/api-client-DJRVOFzS.js +1 -0
  332. package/dist/web/assets/{app-models-Cz3yxq4x.js → app-models-BUdzQbXo.js} +1 -1
  333. package/dist/web/assets/bot-Doyx3T4j.js +1 -0
  334. package/dist/web/assets/{browser-sidebar-links-ZyYiYBBd.js → browser-sidebar-links-PVPCrsDJ.js} +1 -1
  335. package/dist/web/assets/chat-resources-Beh5lB36.js +1 -0
  336. package/dist/web/assets/chevron-down-DX1hzujj.js +1 -0
  337. package/dist/web/assets/chevron-right-DHN0y3KC.js +1 -0
  338. package/dist/web/assets/chevron-up-_QrW88NF.js +1 -0
  339. package/dist/web/assets/chunk-3BYFS4RO-ztZjcMmt.js +1 -0
  340. package/dist/web/assets/chunk-AG6UJ3DI-D9KZjTYP.js +1 -0
  341. package/dist/web/assets/chunk-C3TS766N-ppRhs95p.js +1 -0
  342. package/dist/web/assets/chunk-GCUWJUUM-Dy6oUNJ6.js +9 -0
  343. package/dist/web/assets/chunk-GS5HEE4M-C0RLeIsy.js +1 -0
  344. package/dist/web/assets/chunk-H3JZ3P5T-DolwEJXo.js +2 -0
  345. package/dist/web/assets/chunk-Q4RGCEOI-Cr-dg4Nk.js +1 -0
  346. package/dist/web/assets/client-DwZ92xtu.js +1 -0
  347. package/dist/web/assets/{client-choice-storage-CXlWJW5g.js → client-choice-storage-DitqKiIT.js} +1 -1
  348. package/dist/web/assets/cloud-upload-HdzNTgr2.js +1 -0
  349. package/dist/web/assets/common-BWVSBnpX.js +1 -0
  350. package/dist/web/assets/copy-DTQhoBNg.js +1 -0
  351. package/dist/web/assets/create-pipeline-DsZzNkt9.js +1 -0
  352. package/dist/web/assets/{cssMode-Cps-05f3.js → cssMode-BRTtfXxU.js} +1 -1
  353. package/dist/web/assets/dataset-workspaces-BTPi71mz.js +1 -0
  354. package/dist/web/assets/external-link-H1629UU6.js +1 -0
  355. package/dist/web/assets/folder-open-CAGdWOrr.js +1 -0
  356. package/dist/web/assets/folder-plus-C14cs2mE.js +1 -0
  357. package/dist/web/assets/git-commit-horizontal-DFUfuVvF.js +1 -0
  358. package/dist/web/assets/{htmlMode-Do72TyNy.js → htmlMode-BVaCcL76.js} +1 -1
  359. package/dist/web/assets/icons-Bk2b68aC.js +1 -0
  360. package/dist/web/assets/image-0DPVY6Ev.js +1 -0
  361. package/dist/web/assets/{index-D7igQSAg.js → index-B6XX_0h3.js} +2 -2
  362. package/dist/web/assets/info-C8b_tafZ.js +1 -0
  363. package/dist/web/assets/intake-contracts-B8JZKYwb.js +1 -0
  364. package/dist/web/assets/{jsonMode-B2N7W15Y.js → jsonMode-BCKKQmmV.js} +1 -1
  365. package/dist/web/assets/loader-circle-y-SSPwpk.js +1 -0
  366. package/dist/web/assets/{lspLanguageFeatures-DPmyOFVA.js → lspLanguageFeatures-DozmNUOx.js} +1 -1
  367. package/dist/web/assets/maximize-2-CByk9-zN.js +1 -0
  368. package/dist/web/assets/message-square-C889vRqm.js +1 -0
  369. package/dist/web/assets/{monaco.contribution-DqqJBDzF.js → monaco.contribution-B9q6qbbo.js} +2 -2
  370. package/dist/web/assets/{monaco.contribution-BfOxF9PJ.js → monaco.contribution-BITdsRbn.js} +2 -2
  371. package/dist/web/assets/{monaco.contribution-DNONXznc.js → monaco.contribution-BqA-XZ44.js} +2 -2
  372. package/dist/web/assets/{monaco.contribution-CRdTg0FH.js → monaco.contribution-DxAV1oS5.js} +2 -2
  373. package/dist/web/assets/monitor-BtxlcLuI.js +1 -0
  374. package/dist/web/assets/paperclip-BeIdaspf.js +1 -0
  375. package/dist/web/assets/{pdf-BCq2Oosd.js → pdf-perlzwEB.js} +1 -1
  376. package/dist/web/assets/play-CHXXdkuO.js +1 -0
  377. package/dist/web/assets/plus-DFFWjhPw.js +1 -0
  378. package/dist/web/assets/{ponder-desktop-Dm7tOkKo.js → ponder-desktop-Ca-9KggQ.js} +1 -1
  379. package/dist/web/assets/presentation-0bzvu6_u.js +1 -0
  380. package/dist/web/assets/{profile-ref-DSNkG6Ol.js → profile-ref-D8lxL7dW.js} +1 -1
  381. package/dist/web/assets/{python-DuGMr666.js → python-B9hOnkOI.js} +1 -1
  382. package/dist/web/assets/refresh-cw-D61-Ozk3.js +1 -0
  383. package/dist/web/assets/{requests-BCbaFiqV.js → requests-DmeUYik4.js} +1 -1
  384. package/dist/web/assets/reward-checks-DJJZYgf8.js +7 -0
  385. package/dist/web/assets/save-iEMNZoPe.js +1 -0
  386. package/dist/web/assets/schemas-Brv9Vmnk.js +64 -0
  387. package/dist/web/assets/settings-BC-bzgk6.js +21 -0
  388. package/dist/web/assets/settings-lists-C84qxFmP.js +5 -0
  389. package/dist/web/assets/square-BE_4JMR3.js +1 -0
  390. package/dist/web/assets/square-terminal-Djpzo2Qs.js +1 -0
  391. package/dist/web/assets/{submit-issue-command-wfngGS6Y.js → submit-issue-command-HfKzyxg5.js} +1 -1
  392. package/dist/web/assets/{toggleHighContrast-cl0cw2QK.js → toggleHighContrast-ClsXu39R.js} +1 -1
  393. package/dist/web/assets/training-DWfghwfZ.js +1 -0
  394. package/dist/web/assets/{training-model-data-CWnu1bz9.js → training-model-data-CIysl8wH.js} +4 -4
  395. package/dist/web/assets/{tsMode-DLEc0PYL.js → tsMode-nbmaMc-D.js} +1 -1
  396. package/dist/web/assets/upload-C6ug8RD-.js +1 -0
  397. package/dist/web/assets/{useAccountSettings-ByxjI9BG.js → useAccountSettings-Dr9h4Qz_.js} +1 -1
  398. package/dist/web/assets/{useAgentInventory-Df64T07n.js → useAgentInventory-ByCk2JAv.js} +1 -1
  399. package/dist/web/assets/useChatContextSelection-C0eMm2g6.js +1 -0
  400. package/dist/web/assets/{useLocalAgentSchedules-DNh_x9gQ.js → useLocalAgentSchedules-Do0y_leJ.js} +1 -1
  401. package/dist/web/assets/useQuery-D2MQ7e5U.js +1 -0
  402. package/dist/web/assets/wifi-off-Dr-CapyW.js +1 -0
  403. package/dist/web/assets/work-outputs-D_8TovAK.js +1 -0
  404. package/dist/web/assets/{workers-CnqrOtic.js → workers-DKvM2NdM.js} +1 -1
  405. package/dist/web/assets/x-Jx2jlP9u.js +1 -0
  406. package/dist/web/assets/{yaml-C9vtYV4w.js → yaml-C02vq4ar.js} +1 -1
  407. package/dist/web/index.html +1 -1
  408. package/docs/command-reference.md +100 -4
  409. package/package.json +1 -1
  410. package/dist/chunks/actions-command-VLKMHCMI.js +0 -2
  411. package/dist/chunks/app-server-evaluations-V6LRWDUF.js +0 -2
  412. package/dist/chunks/app-server-harness-services-6ZRLA3YD.js +0 -2
  413. package/dist/chunks/app-server-runtime-TH56EG2Z.js +0 -2
  414. package/dist/chunks/apps-MNT3KXIY.js +0 -2
  415. package/dist/chunks/chunk-2W22IXHB.js +0 -2
  416. package/dist/chunks/chunk-2ZNW6GUU.js +0 -2
  417. package/dist/chunks/chunk-3BJ7LPE3.js +0 -2
  418. package/dist/chunks/chunk-3MVKXAH7.js +0 -2
  419. package/dist/chunks/chunk-4MQHIFZL.js +0 -2
  420. package/dist/chunks/chunk-55Q64WWF.js +0 -2
  421. package/dist/chunks/chunk-5KJMFK65.js +0 -2
  422. package/dist/chunks/chunk-5WPMI6QX.js +0 -2
  423. package/dist/chunks/chunk-7PKTCMZ6.js +0 -2
  424. package/dist/chunks/chunk-ANG2YMMD.js +0 -2
  425. package/dist/chunks/chunk-BQVB2SPF.js +0 -10
  426. package/dist/chunks/chunk-DMO3UIS7.js +0 -6
  427. package/dist/chunks/chunk-FEQ7HNJR.js +0 -2
  428. package/dist/chunks/chunk-G4E3WGLM.js +0 -13
  429. package/dist/chunks/chunk-H5ML7735.js +0 -2
  430. package/dist/chunks/chunk-I3NYYOSS.js +0 -2
  431. package/dist/chunks/chunk-IOSBGCRT.js +0 -2
  432. package/dist/chunks/chunk-JBFPTEVE.js +0 -2
  433. package/dist/chunks/chunk-JKI53ED7.js +0 -161
  434. package/dist/chunks/chunk-JRGECNP3.js +0 -2
  435. package/dist/chunks/chunk-L4EJ5R3B.js +0 -23
  436. package/dist/chunks/chunk-LXZLLTYQ.js +0 -2
  437. package/dist/chunks/chunk-MHPCVQOE.js +0 -2
  438. package/dist/chunks/chunk-MVPKU72J.js +0 -4
  439. package/dist/chunks/chunk-OKEC2EIE.js +0 -2
  440. package/dist/chunks/chunk-OW3EOC5Q.js +0 -4
  441. package/dist/chunks/chunk-QCJY6FTC.js +0 -3
  442. package/dist/chunks/chunk-SBQ6KLXB.js +0 -33
  443. package/dist/chunks/chunk-TVDZXDQW.js +0 -2
  444. package/dist/chunks/chunk-V3KEG6MI.js +0 -2
  445. package/dist/chunks/chunk-VD2TQCMH.js +0 -2
  446. package/dist/chunks/chunk-WLZJOCLA.js +0 -10
  447. package/dist/chunks/chunk-Y3B6ZUE6.js +0 -22
  448. package/dist/chunks/chunk-YBKDEEEH.js +0 -2
  449. package/dist/chunks/chunk-ZWW227M3.js +0 -2
  450. package/dist/chunks/cli-TE7RP5H7.js +0 -2
  451. package/dist/chunks/command-NW6BGKOM.js +0 -13
  452. package/dist/chunks/connected-app-executor-7DYMZCD7.js +0 -2
  453. package/dist/chunks/connected-evidence-D7C45HYD.js +0 -2
  454. package/dist/chunks/core-commands-RXPXOYOP.js +0 -2
  455. package/dist/chunks/dataset-preparation-authoring-KWRTMKN6.js +0 -4
  456. package/dist/chunks/datasets-LBLEKLCS.js +0 -2
  457. package/dist/chunks/desktop-test-INJPZ5VP.js +0 -3
  458. package/dist/chunks/dist-J4KHAVO3.js +0 -2
  459. package/dist/chunks/evaluation-coordination-3ARLJAFH.js +0 -2
  460. package/dist/chunks/experiment-improvements-UB4C5CSP.js +0 -2
  461. package/dist/chunks/experiments-AHHKFJD6.js +0 -2
  462. package/dist/chunks/experiments-signal-MTR475QV.js +0 -2
  463. package/dist/chunks/host-profile-evaluation-tools-75EPCRSZ.js +0 -2
  464. package/dist/chunks/host-profile-external-dataset-YRKG2GL5.js +0 -2
  465. package/dist/chunks/hosted-app-server-composition-GPXH3BOG.js +0 -2
  466. package/dist/chunks/hosted-experiment-improvement-NZTPZTDH.js +0 -3
  467. package/dist/chunks/hosted-harness-runtime-3AJGEIFD.js +0 -2
  468. package/dist/chunks/hosted-profile-candidate-3CAT3XBI.js +0 -3
  469. package/dist/chunks/hosted-profile-compiler-RXU626Q6.js +0 -2
  470. package/dist/chunks/hosted-profile-evaluation-control-CBDRKJ5J.js +0 -2
  471. package/dist/chunks/hosted-profile-evaluation-inspection-CHYKDYUQ.js +0 -3
  472. package/dist/chunks/hosted-profile-evaluation-preparation-H5S7JZMD.js +0 -3
  473. package/dist/chunks/hosted-tasksets-AMGDDB2R.js +0 -2
  474. package/dist/chunks/human-review-DVHVJXBA.js +0 -2
  475. package/dist/chunks/javascript-isolate-process-source-ZPQKKLR4.js +0 -2
  476. package/dist/chunks/javascript-verifier-worker-source-F3LSGPOY.js +0 -2
  477. package/dist/chunks/learning-NJLTGZFQ.js +0 -2
  478. package/dist/chunks/local-harness-improvement-runtime-XEA73RGS.js +0 -2
  479. package/dist/chunks/local-harness-taskset-review-SW35G4DM.js +0 -2
  480. package/dist/chunks/opchat-LMKH3OWR.js +0 -3
  481. package/dist/chunks/opchat-bounded-chat-PPOWO7H4.js +0 -2
  482. package/dist/chunks/organizations-T6ZUSHNJ.js +0 -2
  483. package/dist/chunks/project-action-payload-2G57RL74.js +0 -2
  484. package/dist/chunks/project-agent-GBMVDJY3.js +0 -2
  485. package/dist/chunks/published-experiment-source-D3C2AWQD.js +0 -2
  486. package/dist/chunks/refiner-profile-service-PPGGNVOV.js +0 -2
  487. package/dist/chunks/sandbox-command-L5VQ2T6C.js +0 -2
  488. package/dist/chunks/saved-work-LAVTNKPT.js +0 -2
  489. package/dist/chunks/setup-TXEM2QSG.js +0 -2
  490. package/dist/chunks/src-HJHIBDFX.js +0 -424
  491. package/dist/chunks/standalone-experiment-turn-owner-KKYIGGPF.js +0 -2
  492. package/dist/chunks/store-chat-resources-ZWDYMDJF.js +0 -2
  493. package/dist/chunks/store-conversation-serving-WRT4N7N2.js +0 -2
  494. package/dist/chunks/store-evaluation-results-BEPR4LVD.js +0 -7
  495. package/dist/chunks/store-human-review-HJ3D7ZFA.js +0 -7
  496. package/dist/chunks/store-learned-preference-migration-validation-EXNRDHCO.js +0 -2
  497. package/dist/chunks/store-local-experiments-CBJA56X2.js +0 -97
  498. package/dist/chunks/store-model-batch-review-YIVD7T2T.js +0 -2
  499. package/dist/chunks/store-model-project-preparation-WWU5CJTV.js +0 -2
  500. package/dist/chunks/store-taskset-drafts-G3WFVN4M.js +0 -9
  501. package/dist/chunks/taskset-packages-NRRPON7B.js +0 -2
  502. package/dist/chunks/taskset-packages-RW4SFGDU.js +0 -2
  503. package/dist/chunks/tool-learning-O7QTTEDB.js +0 -2
  504. package/dist/chunks/training-XFM3OOPN.js +0 -2
  505. package/dist/chunks/training-XILDD5RG.js +0 -2
  506. package/dist/chunks/training-hosted-6BX2IASC.js +0 -2
  507. package/dist/chunks/training-hosted-checkpoint-evaluation-UXFW33QL.js +0 -2
  508. package/dist/chunks/training-hosted-report-UVGTPDOK.js +0 -2
  509. package/dist/chunks/training-hosted-serving-report-J4YOZLRP.js +0 -2
  510. package/dist/chunks/training-hosted-workers-6JTDCCWA.js +0 -2
  511. package/dist/chunks/training-model-start-E5MP3URL.js +0 -2
  512. package/dist/chunks/web-search-56QRZGPR.js +0 -2
  513. package/dist/web/assets/App-CNQi3RlI.js +0 -53
  514. package/dist/web/assets/AppTerminalPanel-DLz34eSs.js +0 -2
  515. package/dist/web/assets/AppsView-DkCMr67-.js +0 -1
  516. package/dist/web/assets/BrowserSidebar-BBaaanMS.js +0 -1
  517. package/dist/web/assets/ChatTimelineEntry-Ct59FKw1.js +0 -8
  518. package/dist/web/assets/CommunityView-BLTlSxyb.js +0 -1
  519. package/dist/web/assets/HostedModelLearningReview-DWF6WPao.js +0 -1
  520. package/dist/web/assets/HostedModelLearningSettings-BYl-2j7B.js +0 -1
  521. package/dist/web/assets/LabModelVersionDetailPage-CQz29DwD.js +0 -1
  522. package/dist/web/assets/LabsRoute-CE45yAXJ.css +0 -1
  523. package/dist/web/assets/LabsRoute-DJRgF1kQ.js +0 -101
  524. package/dist/web/assets/MainChatThread-gwmhe1Nw.js +0 -2
  525. package/dist/web/assets/MainPane-CqtgV9rU.js +0 -10
  526. package/dist/web/assets/NativeSetupTerminal-DrQldDsG.js +0 -2
  527. package/dist/web/assets/RightChatPanelStack-xW5rKbp0.js +0 -1
  528. package/dist/web/assets/RightSidebarHomePanel-BDmIxvIm.js +0 -1
  529. package/dist/web/assets/TeamChatView-BisSMAXy.js +0 -1
  530. package/dist/web/assets/TrainingRunLineage-B2WBOchk.js +0 -1
  531. package/dist/web/assets/WorkSidebarPanel-D3Ub_jVj.js +0 -1
  532. package/dist/web/assets/WorkspaceDiffPanel-CyTa8Cjs.js +0 -11
  533. package/dist/web/assets/WorkspaceEnvironmentMenu-CtZzxQ1e.js +0 -35
  534. package/dist/web/assets/api-client-Dgz-fOMl.js +0 -1
  535. package/dist/web/assets/bot-D-eTQib6.js +0 -1
  536. package/dist/web/assets/chat-resources-CTN4f6KC.js +0 -1
  537. package/dist/web/assets/chevron-down-75im8nFF.js +0 -1
  538. package/dist/web/assets/chevron-right-CpbCIUFo.js +0 -1
  539. package/dist/web/assets/chevron-up-BD8jg0bQ.js +0 -1
  540. package/dist/web/assets/chunk-GJRXJL6G-pJp1DyJd.js +0 -9
  541. package/dist/web/assets/chunk-H3JZ3P5T-B0SCoPw4.js +0 -2
  542. package/dist/web/assets/chunk-TLSP5JKG-DZmxtX-4.js +0 -1
  543. package/dist/web/assets/cloud-upload-4lP-5zmp.js +0 -1
  544. package/dist/web/assets/common-BMjyKlX-.js +0 -1
  545. package/dist/web/assets/contracts-BLiqJxBv.js +0 -1
  546. package/dist/web/assets/copy-DRnATDDY.js +0 -1
  547. package/dist/web/assets/create-pipeline-CyUZrbbO.js +0 -1
  548. package/dist/web/assets/createLucideIcon-CmkSm39S.js +0 -1
  549. package/dist/web/assets/external-link-D_nBEDFO.js +0 -1
  550. package/dist/web/assets/folder-open-tD5Lle1M.js +0 -1
  551. package/dist/web/assets/folder-plus-DlZ4hM48.js +0 -1
  552. package/dist/web/assets/git-commit-horizontal-g8KBhvfr.js +0 -1
  553. package/dist/web/assets/icons-B8_Rkg-l.js +0 -1
  554. package/dist/web/assets/image-CUZMnZYi.js +0 -1
  555. package/dist/web/assets/info-SmuBZiE5.js +0 -1
  556. package/dist/web/assets/intake-contracts-BW0Y0C2R.js +0 -1
  557. package/dist/web/assets/loader-circle-D_KVxLLz.js +0 -1
  558. package/dist/web/assets/maximize-2-B8HN3jsA.js +0 -1
  559. package/dist/web/assets/message-square-CrDvzn66.js +0 -1
  560. package/dist/web/assets/models-route-CWcJuOd0.js +0 -1
  561. package/dist/web/assets/monitor-CW-M_aaj.js +0 -1
  562. package/dist/web/assets/paperclip-DL449Io5.js +0 -1
  563. package/dist/web/assets/play-DYLqBrwg.js +0 -1
  564. package/dist/web/assets/plus-DXZIpQuY.js +0 -1
  565. package/dist/web/assets/presentation-CupIXaYv.js +0 -1
  566. package/dist/web/assets/refresh-cw-CzVf5_oo.js +0 -1
  567. package/dist/web/assets/reward-checks-Bcq9ETCA.js +0 -7
  568. package/dist/web/assets/save-DatjrYPV.js +0 -1
  569. package/dist/web/assets/schemas-lO3MoWQr.js +0 -64
  570. package/dist/web/assets/settings-D7C-Auyi.js +0 -21
  571. package/dist/web/assets/settings-lists-D2ol3uNK.js +0 -5
  572. package/dist/web/assets/square-BWB1nbZF.js +0 -1
  573. package/dist/web/assets/square-terminal-Buj-s-fz.js +0 -1
  574. package/dist/web/assets/training-DCdoHJ0Y.js +0 -2
  575. package/dist/web/assets/upload-DaFVH6R1.js +0 -1
  576. package/dist/web/assets/useQuery-yUz7Ui8g.js +0 -1
  577. package/dist/web/assets/wifi-off-CtNwnIJc.js +0 -1
  578. package/dist/web/assets/work-outputs-CK0nHe4g.js +0 -1
  579. package/dist/web/assets/x-Bhl-4Zlt.js +0 -1
  580. /package/dist/chunks/{chunk-SFR32TMJ.js → chunk-JXLDEYRW.js} +0 -0
@@ -1,35 +0,0 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,m as n}from"./index-D7igQSAg.js";import{a as r,d as i,g as a,m as o,o as s,p as c,r as l,v as u,x as d}from"./schemas-lO3MoWQr.js";import"./icons-B8_Rkg-l.js";import{t as f}from"./createLucideIcon-CmkSm39S.js";import{t as p}from"./chevron-down-75im8nFF.js";import{t as m}from"./external-link-D_nBEDFO.js";import{t as h}from"./git-commit-horizontal-g8KBhvfr.js";import{t as g}from"./info-SmuBZiE5.js";import{t as _}from"./monitor-CW-M_aaj.js";import{t as v}from"./play-DYLqBrwg.js";import{t as y}from"./refresh-cw-CzVf5_oo.js";import{t as b}from"./square-BWB1nbZF.js";import{t as x}from"./square-terminal-Buj-s-fz.js";import{t as S}from"./upload-DaFVH6R1.js";import{t as C}from"./x-Bhl-4Zlt.js";import{r as w}from"./AppToastContext-Dklk6CaG.js";import{r as T}from"./organization-types-PP-yuR2J.js";import{n as E}from"./ui-theme.generated-D-mc26qt.js";import{Gt as D,Ut as ee,Xt as te,a as O,bn as k,dn as ne,gt as A,mn as j,nn as M,o as N,on as P,rn as F,tn as re,un as ie,yn as ae}from"./App-CNQi3RlI.js";var I={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},oe;oe||={};function se(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,`default`)?e.default:e}var L={},R={},z={},B;function V(){if(B)return z;B=1;function e(e){return e==null}function t(e){return typeof e==`object`&&!!e}function n(t){return Array.isArray(t)?t:e(t)?[]:[t]}function r(e,t){if(t){let n=Object.keys(t);for(let r=0,i=n.length;r<i;r+=1){let i=n[r];e[i]=t[i]}}return e}function i(e,t){let n=``;for(let r=0;r<t;r+=1)n+=e;return n}function a(e){return e===0&&1/e==-1/0}return z.isNothing=e,z.isObject=t,z.toArray=n,z.repeat=i,z.isNegativeZero=a,z.extend=r,z}var ce,H;function U(){if(H)return ce;H=1;function e(e,t){let n=``,r=e.reason||`(unknown reason)`;return e.mark?(e.mark.name&&(n+=`in "`+e.mark.name+`" `),n+=`(`+(e.mark.line+1)+`:`+(e.mark.column+1)+`)`,!t&&e.mark.snippet&&(n+=`
2
-
3
- `+e.mark.snippet),r+` `+n):r}function t(t,n){Error.call(this),this.name=`YAMLException`,this.reason=t,this.mark=n,this.message=e(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=Error().stack||``}return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t.prototype.toString=function(t){return this.name+`: `+e(this,t)},ce=t,ce}var W,le;function ue(){if(le)return W;le=1;let e=V();function t(e,t,n,r,i){let a=``,o=``,s=Math.floor(i/2)-1;return r-t>s&&(a=` ... `,t=r-s+a.length),n-r>s&&(o=` ...`,n=r+s-o.length),{str:a+e.slice(t,n).replace(/\t/g,`→`)+o,pos:r-t+a.length}}function n(t,n){return e.repeat(` `,n-t.length)+t}function r(r,i){if(i=Object.create(i||null),!r.buffer)return null;i.maxLength||(i.maxLength=79),typeof i.indent!=`number`&&(i.indent=1),typeof i.linesBefore!=`number`&&(i.linesBefore=3),typeof i.linesAfter!=`number`&&(i.linesAfter=2);let a=/\r?\n|\r|\0/g,o=[0],s=[],c,l=-1;for(;c=a.exec(r.buffer);)s.push(c.index),o.push(c.index+c[0].length),r.position<=c.index&&l<0&&(l=o.length-2);l<0&&(l=o.length-1);let u=``,d=Math.min(r.line+i.linesAfter,s.length).toString().length,f=i.maxLength-(i.indent+d+3);for(let a=1;a<=i.linesBefore&&!(l-a<0);a++){let c=t(r.buffer,o[l-a],s[l-a],r.position-(o[l]-o[l-a]),f);u=e.repeat(` `,i.indent)+n((r.line-a+1).toString(),d)+` | `+c.str+`
4
- `+u}let p=t(r.buffer,o[l],s[l],r.position,f);u+=e.repeat(` `,i.indent)+n((r.line+1).toString(),d)+` | `+p.str+`
5
- `,u+=e.repeat(`-`,i.indent+d+3+p.pos)+`^
6
- `;for(let a=1;a<=i.linesAfter&&!(l+a>=s.length);a++){let c=t(r.buffer,o[l+a],s[l+a],r.position-(o[l]-o[l+a]),f);u+=e.repeat(` `,i.indent)+n((r.line+a+1).toString(),d)+` | `+c.str+`
7
- `}return u.replace(/\n$/,``)}return W=r,W}var G,de;function K(){if(de)return G;de=1;let e=U(),t=[`kind`,`multi`,`resolve`,`construct`,`instanceOf`,`predicate`,`represent`,`representName`,`defaultStyle`,`styleAliases`],n=[`scalar`,`sequence`,`mapping`];function r(e){let t={};return e!==null&&Object.keys(e).forEach(function(n){e[n].forEach(function(e){t[String(e)]=n})}),t}function i(i,a){if(a||={},Object.keys(a).forEach(function(n){if(t.indexOf(n)===-1)throw new e(`Unknown option "`+n+`" is met in definition of "`+i+`" YAML type.`)}),this.options=a,this.tag=i,this.kind=a.kind||null,this.resolve=a.resolve||function(){return!0},this.construct=a.construct||function(e){return e},this.instanceOf=a.instanceOf||null,this.predicate=a.predicate||null,this.represent=a.represent||null,this.representName=a.representName||null,this.defaultStyle=a.defaultStyle||null,this.multi=a.multi||!1,this.styleAliases=r(a.styleAliases||null),n.indexOf(this.kind)===-1)throw new e(`Unknown kind "`+this.kind+`" is specified for "`+i+`" YAML type.`)}return G=i,G}var fe,q;function J(){if(q)return fe;q=1;let e=U(),t=K();function n(e,t){let n=[];return e[t].forEach(function(e){let t=n.length;n.forEach(function(n,r){n.tag===e.tag&&n.kind===e.kind&&n.multi===e.multi&&(t=r)}),n[t]=e}),n}function r(){let e={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function t(t){t.multi?(e.multi[t.kind].push(t),e.multi.fallback.push(t)):e[t.kind][t.tag]=e.fallback[t.tag]=t}for(let e=0,n=arguments.length;e<n;e+=1)arguments[e].forEach(t);return e}function i(e){return this.extend(e)}return i.prototype.extend=function(a){let o=[],s=[];if(a instanceof t)s.push(a);else if(Array.isArray(a))s=s.concat(a);else if(a&&(Array.isArray(a.implicit)||Array.isArray(a.explicit)))a.implicit&&(o=o.concat(a.implicit)),a.explicit&&(s=s.concat(a.explicit));else throw new e(`Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })`);o.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`);if(n.loadKind&&n.loadKind!==`scalar`)throw new e(`There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.`);if(n.multi)throw new e(`There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.`)}),s.forEach(function(n){if(!(n instanceof t))throw new e(`Specified list of YAML types (or a single Type object) contains a non-Type object.`)});let c=Object.create(i.prototype);return c.implicit=(this.implicit||[]).concat(o),c.explicit=(this.explicit||[]).concat(s),c.compiledImplicit=n(c,`implicit`),c.compiledExplicit=n(c,`explicit`),c.compiledTypeMap=r(c.compiledImplicit,c.compiledExplicit),c},fe=i,fe}var pe,me;function he(){return me||(me=1,pe=new(K())(`tag:yaml.org,2002:str`,{kind:`scalar`,construct:function(e){return e===null?``:e}})),pe}var ge,Y;function _e(){return Y||(Y=1,ge=new(K())(`tag:yaml.org,2002:seq`,{kind:`sequence`,construct:function(e){return e===null?[]:e}})),ge}var ve,X;function ye(){return X||(X=1,ve=new(K())(`tag:yaml.org,2002:map`,{kind:`mapping`,construct:function(e){return e===null?{}:e}})),ve}var be,xe;function Se(){return xe||(xe=1,be=new(J())({explicit:[he(),_e(),ye()]})),be}var Ce,we;function Te(){if(we)return Ce;we=1;let e=K();function t(e){if(e===null)return!0;let t=e.length;return t===1&&e===`~`||t===4&&(e===`null`||e===`Null`||e===`NULL`)}function n(){return null}function r(e){return e===null}return Ce=new e(`tag:yaml.org,2002:null`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{canonical:function(){return`~`},lowercase:function(){return`null`},uppercase:function(){return`NULL`},camelcase:function(){return`Null`},empty:function(){return``}},defaultStyle:`lowercase`}),Ce}var Ee,De;function Oe(){if(De)return Ee;De=1;let e=K();function t(e){if(e===null)return!1;let t=e.length;return t===4&&(e===`true`||e===`True`||e===`TRUE`)||t===5&&(e===`false`||e===`False`||e===`FALSE`)}function n(e){return e===`true`||e===`True`||e===`TRUE`}function r(e){return Object.prototype.toString.call(e)===`[object Boolean]`}return Ee=new e(`tag:yaml.org,2002:bool`,{kind:`scalar`,resolve:t,construct:n,predicate:r,represent:{lowercase:function(e){return e?`true`:`false`},uppercase:function(e){return e?`TRUE`:`FALSE`},camelcase:function(e){return e?`True`:`False`}},defaultStyle:`lowercase`}),Ee}var ke,Ae;function je(){if(Ae)return ke;Ae=1;let e=V(),t=K();function n(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function r(e){return e>=48&&e<=55}function i(e){return e>=48&&e<=57}function a(e){if(e===null)return!1;let t=e.length,a=0,s=!1;if(!t)return!1;let c=e[a];if((c===`-`||c===`+`)&&(c=e[++a]),c===`0`){if(a+1===t)return!0;if(c=e[++a],c===`b`){for(a++;a<t;a++){if(c=e[a],c!==`0`&&c!==`1`)return!1;s=!0}return s&&isFinite(o(e))}if(c===`x`){for(a++;a<t;a++){if(!n(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}if(c===`o`){for(a++;a<t;a++){if(!r(e.charCodeAt(a)))return!1;s=!0}return s&&isFinite(o(e))}}for(;a<t;a++){if(!i(e.charCodeAt(a)))return!1;s=!0}return s?isFinite(o(e)):!1}function o(e){let t=e,n=1,r=t[0];if((r===`-`||r===`+`)&&(r===`-`&&(n=-1),t=t.slice(1),r=t[0]),t===`0`)return 0;if(r===`0`){if(t[1]===`b`)return n*parseInt(t.slice(2),2);if(t[1]===`x`)return n*parseInt(t.slice(2),16);if(t[1]===`o`)return n*parseInt(t.slice(2),8)}return n*parseInt(t,10)}function s(e){return o(e)}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&t%1==0&&!e.isNegativeZero(t)}return ke=new t(`tag:yaml.org,2002:int`,{kind:`scalar`,resolve:a,construct:s,predicate:c,represent:{binary:function(e){return e>=0?`0b`+e.toString(2):`-0b`+e.toString(2).slice(1)},octal:function(e){return e>=0?`0o`+e.toString(8):`-0o`+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?`0x`+e.toString(16).toUpperCase():`-0x`+e.toString(16).toUpperCase().slice(1)}},defaultStyle:`decimal`,styleAliases:{binary:[2,`bin`],octal:[8,`oct`],decimal:[10,`dec`],hexadecimal:[16,`hex`]}}),ke}var Me,Ne;function Pe(){if(Ne)return Me;Ne=1;let e=V(),t=K(),n=RegExp(`^(?:[-+]?(?:[0-9]+)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`),r=RegExp(`^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$`);function i(e){return e===null||!n.test(e)?!1:isFinite(parseFloat(e,10))?!0:r.test(e)}function a(e){let t=e.toLowerCase(),n=t[0]===`-`?-1:1;return`+-`.indexOf(t[0])>=0&&(t=t.slice(1)),t===`.inf`?n===1?1/0:-1/0:t===`.nan`?NaN:n*parseFloat(t,10)}let o=/^[-+]?[0-9]+e/;function s(t,n){if(isNaN(t))switch(n){case`lowercase`:return`.nan`;case`uppercase`:return`.NAN`;case`camelcase`:return`.NaN`}else if(t===1/0)switch(n){case`lowercase`:return`.inf`;case`uppercase`:return`.INF`;case`camelcase`:return`.Inf`}else if(t===-1/0)switch(n){case`lowercase`:return`-.inf`;case`uppercase`:return`-.INF`;case`camelcase`:return`-.Inf`}else if(e.isNegativeZero(t))return`-0.0`;let r=t.toString(10);return o.test(r)?r.replace(`e`,`.e`):r}function c(t){return Object.prototype.toString.call(t)===`[object Number]`&&(t%1!=0||e.isNegativeZero(t))}return Me=new t(`tag:yaml.org,2002:float`,{kind:`scalar`,resolve:i,construct:a,predicate:c,represent:s,defaultStyle:`lowercase`}),Me}var Fe,Ie;function Le(){return Ie||(Ie=1,Fe=Se().extend({implicit:[Te(),Oe(),je(),Pe()]})),Fe}var Z,Re;function ze(){return Re||(Re=1,Z=Le()),Z}var Be,Ve;function He(){if(Ve)return Be;Ve=1;let e=K(),t=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$`),n=RegExp(`^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$`);function r(e){return e===null?!1:t.exec(e)!==null||n.exec(e)!==null}function i(e){let r=0,i=null,a=t.exec(e);if(a===null&&(a=n.exec(e)),a===null)throw Error(`Date resolve error`);let o=+a[1],s=a[2]-1,c=+a[3];if(!a[4])return new Date(Date.UTC(o,s,c));let l=+a[4],u=+a[5],d=+a[6];if(a[7]){for(r=a[7].slice(0,3);r.length<3;)r+=`0`;r=+r}if(a[9]){let e=+a[10],t=+(a[11]||0);i=(e*60+t)*6e4,a[9]===`-`&&(i=-i)}let f=new Date(Date.UTC(o,s,c,l,u,d,r));return i&&f.setTime(f.getTime()-i),f}function a(e){return e.toISOString()}return Be=new e(`tag:yaml.org,2002:timestamp`,{kind:`scalar`,resolve:r,construct:i,instanceOf:Date,represent:a}),Be}var Ue,We;function Ge(){if(We)return Ue;We=1;let e=K();function t(e){return e===`<<`||e===null}return Ue=new e(`tag:yaml.org,2002:merge`,{kind:`scalar`,resolve:t}),Ue}var Ke,qe;function Je(){if(qe)return Ke;qe=1;let e=K();function t(e){if(e===null)return!1;let t=0,n=e.length;for(let r=0;r<n;r++){let n=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
8
- \r`.indexOf(e.charAt(r));if(!(n>64)){if(n<0)return!1;t+=6}}return t%8==0}function n(e){let t=e.replace(/[\r\n=]/g,``),n=t.length,r=0,i=[];for(let e=0;e<n;e++)e%4==0&&e&&(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)),r=r<<6|`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
9
- \r`.indexOf(t.charAt(e));let a=n%4*6;return a===0?(i.push(r>>16&255),i.push(r>>8&255),i.push(r&255)):a===18?(i.push(r>>10&255),i.push(r>>2&255)):a===12&&i.push(r>>4&255),new Uint8Array(i)}function r(e){let t=``,n=0,r=e.length,i=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
10
- \r`;for(let a=0;a<r;a++)a%3==0&&a&&(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]),n=(n<<8)+e[a];let a=r%3;return a===0?(t+=i[n>>18&63],t+=i[n>>12&63],t+=i[n>>6&63],t+=i[n&63]):a===2?(t+=i[n>>10&63],t+=i[n>>4&63],t+=i[n<<2&63],t+=i[64]):a===1&&(t+=i[n>>2&63],t+=i[n<<4&63],t+=i[64],t+=i[64]),t}function i(e){return Object.prototype.toString.call(e)===`[object Uint8Array]`}return Ke=new e(`tag:yaml.org,2002:binary`,{kind:`scalar`,resolve:t,construct:n,predicate:i,represent:r}),Ke}var Ye,Xe;function Ze(){if(Xe)return Ye;Xe=1;let e=K(),t=Object.prototype.hasOwnProperty,n=Object.prototype.toString;function r(e){if(e===null)return!0;let r=[],i=e;for(let e=0,a=i.length;e<a;e+=1){let a=i[e],o=!1;if(n.call(a)!==`[object Object]`)return!1;let s;for(s in a)if(t.call(a,s)){if(!o)o=!0;else return!1}if(!o)return!1;if(r.indexOf(s)===-1)r.push(s);else return!1}return!0}function i(e){return e===null?[]:e}return Ye=new e(`tag:yaml.org,2002:omap`,{kind:`sequence`,resolve:r,construct:i}),Ye}var Qe,$e;function et(){if($e)return Qe;$e=1;let e=K(),t=Object.prototype.toString;function n(e){if(e===null)return!0;let n=e,r=Array(n.length);for(let e=0,i=n.length;e<i;e+=1){let i=n[e];if(t.call(i)!==`[object Object]`)return!1;let a=Object.keys(i);if(a.length!==1)return!1;r[e]=[a[0],i[a[0]]]}return!0}function r(e){if(e===null)return[];let t=e,n=Array(t.length);for(let e=0,r=t.length;e<r;e+=1){let r=t[e],i=Object.keys(r);n[e]=[i[0],r[i[0]]]}return n}return Qe=new e(`tag:yaml.org,2002:pairs`,{kind:`sequence`,resolve:n,construct:r}),Qe}var tt,nt;function rt(){if(nt)return tt;nt=1;let e=K(),t=Object.prototype.hasOwnProperty;function n(e){if(e===null)return!0;let n=e;for(let e in n)if(t.call(n,e)&&n[e]!==null)return!1;return!0}function r(e){return e===null?{}:e}return tt=new e(`tag:yaml.org,2002:set`,{kind:`mapping`,resolve:n,construct:r}),tt}var it,at;function ot(){return at||(at=1,it=ze().extend({implicit:[He(),Ge()],explicit:[Je(),Ze(),et(),rt()]})),it}var st;function ct(){if(st)return R;st=1;let e=V(),t=U(),n=ue(),r=ot(),i=Object.prototype.hasOwnProperty,a=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,o=/[\x85\u2028\u2029]/,s=/[,\[\]{}]/,c=/^(?:!|!!|![0-9A-Za-z-]+!)$/,l=/^(?:!|[^,\[\]{}])(?:%[0-9a-f]{2}|[0-9a-z\-#;/?:@&=+$,_.!~*'()\[\]])*$/i;function u(e){return Object.prototype.toString.call(e)}function d(e){return e===10||e===13}function f(e){return e===9||e===32}function p(e){return e===9||e===32||e===10||e===13}function m(e){return e===44||e===91||e===93||e===123||e===125}function h(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function g(e){return e===120?2:e===117?4:e===85?8:0}function _(e){return e>=48&&e<=57?e-48:-1}function v(e){switch(e){case 48:return`\0`;case 97:return`\x07`;case 98:return`\b`;case 116:return` `;case 9:return` `;case 110:return`
11
- `;case 118:return`\v`;case 102:return`\f`;case 114:return`\r`;case 101:return`\x1B`;case 32:return` `;case 34:return`"`;case 47:return`/`;case 92:return`\\`;case 78:return`…`;case 95:return`\xA0`;case 76:return`\u2028`;case 80:return`\u2029`;default:return``}}function y(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function b(e,t,n){t===`__proto__`?Object.defineProperty(e,t,{configurable:!0,enumerable:!0,writable:!0,value:n}):e[t]=n}let x=Array(256),S=Array(256);for(let e=0;e<256;e++)x[e]=+!!v(e),S[e]=v(e);function C(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||r,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.maxDepth=typeof t.maxDepth==`number`?t.maxDepth:100,this.maxTotalMergeKeys=typeof t.maxTotalMergeKeys==`number`?t.maxTotalMergeKeys:1e4,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.depth=0,this.totalMergeKeys=0,this.firstTabInLine=-1,this.documents=[],this.anchorMapTransactions=[]}function w(e,r){let i={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return i.snippet=n(i),new t(r,i)}function T(e,t){throw w(e,t)}function E(e,t){e.onWarning&&e.onWarning.call(null,w(e,t))}function D(e,t,n){let r=e.anchorMapTransactions;if(r.length!==0){let n=r[r.length-1];i.call(n,t)||(n[t]={existed:i.call(e.anchorMap,t),value:e.anchorMap[t]})}e.anchorMap[t]=n}function ee(e){e.anchorMapTransactions.push(Object.create(null))}function te(e){let t=e.anchorMapTransactions.pop(),n=e.anchorMapTransactions;if(n.length===0)return;let r=n[n.length-1],a=Object.keys(t);for(let e=0,n=a.length;e<n;e+=1){let n=a[e];i.call(r,n)||(r[n]=t[n])}}function O(e){let t=e.anchorMapTransactions.pop(),n=Object.keys(t);for(let r=n.length-1;r>=0;--r){let i=t[n[r]];i.existed?e.anchorMap[n[r]]=i.value:delete e.anchorMap[n[r]]}}function k(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,tag:e.tag,anchor:e.anchor,kind:e.kind,result:e.result}}function ne(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.tag=t.tag,e.anchor=t.anchor,e.kind=t.kind,e.result=t.result}let A={YAML:function(e,t,n){e.version!==null&&T(e,`duplication of %YAML directive`),n.length!==1&&T(e,`YAML directive accepts exactly one argument`);let r=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);r===null&&T(e,`ill-formed argument of the YAML directive`);let i=parseInt(r[1],10),a=parseInt(r[2],10);i!==1&&T(e,`unacceptable YAML version of the document`),e.version=n[0],e.checkLineBreaks=a<2,a!==1&&a!==2&&E(e,`unsupported YAML version of the document`)},TAG:function(e,t,n){let r;n.length!==2&&T(e,`TAG directive accepts exactly two arguments`);let a=n[0];r=n[1],c.test(a)||T(e,`ill-formed tag handle (first argument) of the TAG directive`),i.call(e.tagMap,a)&&T(e,`there is a previously declared suffix for "`+a+`" tag handle`),l.test(r)||T(e,`ill-formed tag prefix (second argument) of the TAG directive`);try{r=decodeURIComponent(r)}catch{T(e,`tag prefix is malformed: `+r)}e.tagMap[a]=r}};function j(e,t,n,r){if(t<n){let i=e.input.slice(t,n);if(r)for(let t=0,n=i.length;t<n;t+=1){let n=i.charCodeAt(t);n===9||n>=32&&n<=1114111||T(e,`expected valid JSON character`)}else a.test(i)&&T(e,`the stream contains non-printable characters`);e.result+=i}}function M(t,n,r,a){e.isObject(r)||T(t,`cannot merge mappings; the provided source object is unacceptable`);let o=Object.keys(r);for(let e=0,s=o.length;e<s;e+=1){let s=o[e];t.maxTotalMergeKeys!==-1&&++t.totalMergeKeys>t.maxTotalMergeKeys&&T(t,`merge keys exceeded maxTotalMergeKeys (`+t.maxTotalMergeKeys+`)`),i.call(n,s)||(b(n,s,r[s]),a[s]=!0)}}function N(e,t,n,r,a,o,s,c,l){if(Array.isArray(a)){a=Array.prototype.slice.call(a);for(let t=0,n=a.length;t<n;t+=1)Array.isArray(a[t])&&T(e,`nested arrays are not supported inside keys`),typeof a==`object`&&u(a[t])===`[object Object]`&&(a[t]=`[object Object]`)}if(typeof a==`object`&&u(a)===`[object Object]`&&(a=`[object Object]`),a=String(a),t===null&&(t={}),r===`tag:yaml.org,2002:merge`){if(Array.isArray(o))for(let r=0,i=o.length;r<i;r+=1)M(e,t,o[r],n);else M(e,t,o,n)}else!e.json&&!i.call(n,a)&&i.call(t,a)&&(e.line=s||e.line,e.lineStart=c||e.lineStart,e.position=l||e.position,T(e,`duplicated mapping key`)),b(t,a,o),delete n[a];return t}function P(e){let t=e.input.charCodeAt(e.position);t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):T(e,`a line break is expected`),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function F(e,t,n){let r=0,i=e.input.charCodeAt(e.position);for(;i!==0;){for(;f(i);)i===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),i=e.input.charCodeAt(++e.position);if(t&&i===35)do i=e.input.charCodeAt(++e.position);while(i!==10&&i!==13&&i!==0);if(d(i))for(P(e),i=e.input.charCodeAt(e.position),r++,e.lineIndent=0;i===32;)e.lineIndent++,i=e.input.charCodeAt(++e.position);else break}return n!==-1&&r!==0&&e.lineIndent<n&&E(e,`deficient indentation`),r}function re(e){let t=e.position,n=e.input.charCodeAt(t);return!!((n===45||n===46)&&n===e.input.charCodeAt(t+1)&&n===e.input.charCodeAt(t+2)&&(t+=3,n=e.input.charCodeAt(t),n===0||p(n)))}function ie(t,n){n===1?t.result+=` `:n>1&&(t.result+=e.repeat(`
12
- `,n-1))}function ae(e,t,n){let r,i,a,o,s,c,l=e.kind,u=e.result,h=e.input.charCodeAt(e.position);if(p(h)||m(h)||h===35||h===38||h===42||h===33||h===124||h===62||h===39||h===34||h===37||h===64||h===96)return!1;if(h===63||h===45){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))return!1}for(e.kind=`scalar`,e.result=``,r=i=e.position,a=!1;h!==0;){if(h===58){let t=e.input.charCodeAt(e.position+1);if(p(t)||n&&m(t))break}else if(h===35){if(p(e.input.charCodeAt(e.position-1)))break}else if(e.position===e.lineStart&&re(e)||n&&m(h))break;else if(d(h)){if(o=e.line,s=e.lineStart,c=e.lineIndent,F(e,!1,-1),e.lineIndent>=t){a=!0,h=e.input.charCodeAt(e.position);continue}e.position=i,e.line=o,e.lineStart=s,e.lineIndent=c;break}a&&=(j(e,r,i,!1),ie(e,e.line-o),r=i=e.position,!1),f(h)||(i=e.position+1),h=e.input.charCodeAt(++e.position)}return j(e,r,i,!1),e.result?!0:(e.kind=l,e.result=u,!1)}function I(e,t){let n,r,i=e.input.charCodeAt(e.position);if(i!==39)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(i=e.input.charCodeAt(e.position))!==0;)if(i===39){if(j(e,n,e.position,!0),i=e.input.charCodeAt(++e.position),i===39)n=e.position,e.position++,r=e.position;else return!0}else d(i)?(j(e,n,r,!0),ie(e,F(e,!1,t)),n=r=e.position):e.position===e.lineStart&&re(e)?T(e,`unexpected end of the document within a single quoted scalar`):(e.position++,f(i)||(r=e.position));T(e,`unexpected end of the stream within a single quoted scalar`)}function oe(e,t){let n,r,i,a=e.input.charCodeAt(e.position);if(a!==34)return!1;for(e.kind=`scalar`,e.result=``,e.position++,n=r=e.position;(a=e.input.charCodeAt(e.position))!==0;)if(a===34)return j(e,n,e.position,!0),e.position++,!0;else if(a===92){if(j(e,n,e.position,!0),a=e.input.charCodeAt(++e.position),d(a))F(e,!1,t);else if(a<256&&x[a])e.result+=S[a],e.position++;else if((i=g(a))>0){let t=i,n=0;for(;t>0;t--)a=e.input.charCodeAt(++e.position),(i=h(a))>=0?n=(n<<4)+i:T(e,`expected hexadecimal character`);e.result+=y(n),e.position++}else T(e,`unknown escape sequence`);n=r=e.position}else d(a)?(j(e,n,r,!0),ie(e,F(e,!1,t)),n=r=e.position):e.position===e.lineStart&&re(e)?T(e,`unexpected end of the document within a double quoted scalar`):(e.position++,f(a)||(r=e.position));T(e,`unexpected end of the stream within a double quoted scalar`)}function se(e,t){let n=!0,r,i,a,o=e.tag,s,c=e.anchor,l,u,d,f,m=Object.create(null),h,g,_,v=e.input.charCodeAt(e.position);if(v===91)l=93,f=!1,s=[];else if(v===123)l=125,f=!0,s={};else return!1;for(e.anchor!==null&&D(e,e.anchor,s),v=e.input.charCodeAt(++e.position);v!==0;){if(F(e,!0,t),v=e.input.charCodeAt(e.position),v===l)return e.position++,e.tag=o,e.anchor=c,e.kind=f?`mapping`:`sequence`,e.result=s,!0;n?v===44&&T(e,`expected the node content, but found ','`):T(e,`missed comma between flow collection entries`),g=h=_=null,u=d=!1,v===63&&p(e.input.charCodeAt(e.position+1))&&(u=d=!0,e.position++,F(e,!0,t)),r=e.line,i=e.lineStart,a=e.position,G(e,t,1,!1,!0),g=e.tag,h=e.result,F(e,!0,t),v=e.input.charCodeAt(e.position),(d||e.line===r)&&v===58&&(u=!0,v=e.input.charCodeAt(++e.position),F(e,!0,t),G(e,t,1,!1,!0),_=e.result),f?N(e,s,m,g,h,_,r,i,a):u?s.push(N(e,null,m,g,h,_,r,i,a)):s.push(h),F(e,!0,t),v=e.input.charCodeAt(e.position),v===44?(n=!0,v=e.input.charCodeAt(++e.position)):n=!1}T(e,`unexpected end of the stream within a flow collection`)}function L(t,n){let r,i=1,a=!1,o=!1,s=n,c=0,l=!1,u,p=t.input.charCodeAt(t.position);if(p===124)r=!1;else if(p===62)r=!0;else return!1;for(t.kind=`scalar`,t.result=``;p!==0;)if(p=t.input.charCodeAt(++t.position),p===43||p===45)i===1?i=p===43?3:2:T(t,`repeat of a chomping mode identifier`);else if((u=_(p))>=0)u===0?T(t,`bad explicit indentation width of a block scalar; it cannot be less than one`):o?T(t,`repeat of an indentation width identifier`):(s=n+u-1,o=!0);else break;if(f(p)){do p=t.input.charCodeAt(++t.position);while(f(p));if(p===35)do p=t.input.charCodeAt(++t.position);while(!d(p)&&p!==0)}for(;p!==0;){for(P(t),t.lineIndent=0,p=t.input.charCodeAt(t.position);(!o||t.lineIndent<s)&&p===32;)t.lineIndent++,p=t.input.charCodeAt(++t.position);if(!o&&t.lineIndent>s&&(s=t.lineIndent),d(p)){c++;continue}if(!o&&s===0&&T(t,`missing indentation for block scalar`),t.lineIndent<s){i===3?t.result+=e.repeat(`
13
- `,a?1+c:c):i===1&&a&&(t.result+=`
14
- `);break}r?f(p)?(l=!0,t.result+=e.repeat(`
15
- `,a?1+c:c)):l?(l=!1,t.result+=e.repeat(`
16
- `,c+1)):c===0?a&&(t.result+=` `):t.result+=e.repeat(`
17
- `,c):t.result+=e.repeat(`
18
- `,a?1+c:c),a=!0,o=!0,c=0;let n=t.position;for(;!d(p)&&p!==0;)p=t.input.charCodeAt(++t.position);j(t,n,t.position,!1)}return!0}function z(e,t){let n=e.tag,r=e.anchor,i=[],a=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,i);let o=e.input.charCodeAt(e.position);for(;o!==0&&(e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`)),o===45&&p(e.input.charCodeAt(e.position+1)));){if(a=!0,e.position++,F(e,!0,-1)&&e.lineIndent<=t){i.push(null),o=e.input.charCodeAt(e.position);continue}let n=e.line;if(G(e,t,3,!1,!0),i.push(e.result),F(e,!0,-1),o=e.input.charCodeAt(e.position),(e.line===n||e.lineIndent>t)&&o!==0)T(e,`bad indentation of a sequence entry`);else if(e.lineIndent<t)break}return a?(e.tag=n,e.anchor=r,e.kind=`sequence`,e.result=i,!0):!1}function B(e,t,n){let r,i,a,o,s=e.tag,c=e.anchor,l={},u=Object.create(null),d=null,m=null,h=null,g=!1,_=!1;if(e.firstTabInLine!==-1)return!1;e.anchor!==null&&D(e,e.anchor,l);let v=e.input.charCodeAt(e.position);for(;v!==0;){!g&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,T(e,`tab characters must not be used in indentation`));let y=e.input.charCodeAt(e.position+1),b=e.line;if((v===63||v===58)&&p(y))v===63?(g&&(N(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!0,r=!0):g?(g=!1,r=!0):T(e,`incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line`),e.position+=1,v=y;else{if(i=e.line,a=e.lineStart,o=e.position,!G(e,n,2,!1,!0))break;if(e.line===b){for(v=e.input.charCodeAt(e.position);f(v);)v=e.input.charCodeAt(++e.position);if(v===58)v=e.input.charCodeAt(++e.position),p(v)||T(e,`a whitespace character is expected after the key-value separator within a block mapping`),g&&(N(e,l,u,d,m,null,i,a,o),d=m=h=null),_=!0,g=!1,r=!1,d=e.tag,m=e.result;else if(_)T(e,`can not read an implicit mapping pair; a colon is missed`);else return e.tag=s,e.anchor=c,!0}else if(_)T(e,`can not read a block mapping entry; a multiline key may not be an implicit key`);else return e.tag=s,e.anchor=c,!0}if((e.line===b||e.lineIndent>t)&&(g&&(i=e.line,a=e.lineStart,o=e.position),G(e,t,4,!0,r)&&(g?m=e.result:h=e.result),g||(N(e,l,u,d,m,h,i,a,o),d=m=h=null),F(e,!0,-1),v=e.input.charCodeAt(e.position)),(e.line===b||e.lineIndent>t)&&v!==0)T(e,`bad indentation of a mapping entry`);else if(e.lineIndent<t)break}return g&&N(e,l,u,d,m,null,i,a,o),_&&(e.tag=s,e.anchor=c,e.kind=`mapping`,e.result=l),_}function ce(e){let t=!1,n=!1,r,a,o=e.input.charCodeAt(e.position);if(o!==33)return!1;e.tag!==null&&T(e,`duplication of a tag property`),o=e.input.charCodeAt(++e.position),o===60?(t=!0,o=e.input.charCodeAt(++e.position)):o===33?(n=!0,r=`!!`,o=e.input.charCodeAt(++e.position)):r=`!`;let u=e.position;if(t){do o=e.input.charCodeAt(++e.position);while(o!==0&&o!==62);e.position<e.length?(a=e.input.slice(u,e.position),o=e.input.charCodeAt(++e.position)):T(e,`unexpected end of the stream within a verbatim tag`)}else{for(;o!==0&&!p(o);)o===33&&(n?T(e,`tag suffix cannot contain exclamation marks`):(r=e.input.slice(u-1,e.position+1),c.test(r)||T(e,`named tag handle cannot contain such characters`),n=!0,u=e.position+1)),o=e.input.charCodeAt(++e.position);a=e.input.slice(u,e.position),s.test(a)&&T(e,`tag suffix cannot contain flow indicator characters`)}a&&!l.test(a)&&T(e,`tag name cannot contain such characters: `+a);try{a=decodeURIComponent(a)}catch{T(e,`tag name is malformed: `+a)}return t?e.tag=a:i.call(e.tagMap,r)?e.tag=e.tagMap[r]+a:r===`!`?e.tag=`!`+a:r===`!!`?e.tag=`tag:yaml.org,2002:`+a:T(e,`undeclared tag handle "`+r+`"`),!0}function H(e){let t=e.input.charCodeAt(e.position);if(t!==38)return!1;e.anchor!==null&&T(e,`duplication of an anchor property`),t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);return e.position===n&&T(e,`name of an anchor node must contain at least one character`),e.anchor=e.input.slice(n,e.position),!0}function W(e){let t=e.input.charCodeAt(e.position);if(t!==42)return!1;t=e.input.charCodeAt(++e.position);let n=e.position;for(;t!==0&&!p(t)&&!m(t);)t=e.input.charCodeAt(++e.position);e.position===n&&T(e,`name of an alias node must contain at least one character`);let r=e.input.slice(n,e.position);return i.call(e.anchorMap,r)||T(e,`unidentified alias "`+r+`"`),e.result=e.anchorMap[r],F(e,!0,-1),!0}function le(e,t,n,r){let i=k(e);return ee(e),ne(e,t),e.tag=null,e.anchor=null,e.kind=null,e.result=null,B(e,n,r)&&e.kind===`mapping`?(te(e),!0):(O(e),ne(e,i),!1)}function G(e,t,n,r,a){let o,s,c=1,l=!1,u=!1,d=null,f,p,m;e.depth>=e.maxDepth&&T(e,`nesting exceeded maxDepth (`+e.maxDepth+`)`),e.depth+=1,e.listener!==null&&e.listener(`open`,e),e.tag=null,e.anchor=null,e.kind=null,e.result=null;let h=o=s=n===4||n===3;if(r&&F(e,!0,-1)&&(l=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)),c===1)for(;;){let n=e.input.charCodeAt(e.position),r=k(e);if(l&&(n===33&&e.tag!==null||n===38&&e.anchor!==null)||!ce(e)&&!H(e))break;d===null&&(d=r),F(e,!0,-1)?(l=!0,s=h,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):s=!1}if(s&&=l||a,c===1||n===4){if(p=n===1||n===2?t:t+1,m=e.position-e.lineStart,c===1){if(s&&(z(e,m)||B(e,m,p))||se(e,p))u=!0;else{let t=e.input.charCodeAt(e.position);d!==null&&h&&!s&&t!==124&&t!==62&&le(e,d,d.position-d.lineStart,p)||o&&L(e,p)||I(e,p)||oe(e,p)?u=!0:W(e)?(u=!0,(e.tag!==null||e.anchor!==null)&&T(e,`alias node should not have any properties`)):ae(e,p,n===1)&&(u=!0,e.tag===null&&(e.tag=`?`)),e.anchor!==null&&D(e,e.anchor,e.result)}}else c===0&&(u=s&&z(e,m))}if(e.tag===null)e.anchor!==null&&D(e,e.anchor,e.result);else if(e.tag===`?`){e.result!==null&&e.kind!==`scalar`&&T(e,`unacceptable node kind for !<?> tag; it should be "scalar", not "`+e.kind+`"`);for(let t=0,n=e.implicitTypes.length;t<n;t+=1)if(f=e.implicitTypes[t],f.resolve(e.result)){e.result=f.construct(e.result),e.tag=f.tag,e.anchor!==null&&D(e,e.anchor,e.result);break}}else if(e.tag!==`!`){if(i.call(e.typeMap[e.kind||`fallback`],e.tag))f=e.typeMap[e.kind||`fallback`][e.tag];else{f=null;let t=e.typeMap.multi[e.kind||`fallback`];for(let n=0,r=t.length;n<r;n+=1)if(e.tag.slice(0,t[n].tag.length)===t[n].tag){f=t[n];break}}f||T(e,`unknown tag !<`+e.tag+`>`),e.result!==null&&f.kind!==e.kind&&T(e,`unacceptable node kind for !<`+e.tag+`> tag; it should be "`+f.kind+`", not "`+e.kind+`"`),f.resolve(e.result,e.tag)?(e.result=f.construct(e.result,e.tag),e.anchor!==null&&D(e,e.anchor,e.result)):T(e,`cannot resolve a node with !<`+e.tag+`> explicit tag`)}return e.listener!==null&&e.listener(`close`,e),--e.depth,e.tag!==null||e.anchor!==null||u}function de(e){let t=e.position,n=!1,r;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);(r=e.input.charCodeAt(e.position))!==0&&(F(e,!0,-1),r=e.input.charCodeAt(e.position),!(e.lineIndent>0||r!==37));){n=!0,r=e.input.charCodeAt(++e.position);let t=e.position;for(;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);let a=e.input.slice(t,e.position),o=[];for(a.length<1&&T(e,`directive name must not be less than one character in length`);r!==0;){for(;f(r);)r=e.input.charCodeAt(++e.position);if(r===35){do r=e.input.charCodeAt(++e.position);while(r!==0&&!d(r));break}if(d(r))break;for(t=e.position;r!==0&&!p(r);)r=e.input.charCodeAt(++e.position);o.push(e.input.slice(t,e.position))}r!==0&&P(e),i.call(A,a)?A[a](e,a,o):E(e,`unknown document directive "`+a+`"`)}F(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,F(e,!0,-1)):n&&T(e,`directives end mark is expected`),G(e,e.lineIndent-1,4,!1,!0),F(e,!0,-1),e.checkLineBreaks&&o.test(e.input.slice(t,e.position))&&E(e,`non-ASCII line breaks are interpreted as content`),e.documents.push(e.result),e.position===e.lineStart&&re(e)?e.input.charCodeAt(e.position)===46&&(e.position+=3,F(e,!0,-1)):e.position<e.length-1&&T(e,`end of the stream or a document separator is expected`)}function K(e,t){e=String(e),t||={},e.length!==0&&(e.charCodeAt(e.length-1)!==10&&e.charCodeAt(e.length-1)!==13&&(e+=`
19
- `),e.charCodeAt(0)===65279&&(e=e.slice(1)));let n=new C(e,t),r=e.indexOf(`\0`);for(r!==-1&&(n.position=r,T(n,`null byte is not allowed in input`)),n.input+=`\0`;n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;)de(n);return n.documents}function fe(e,t,n){typeof t==`object`&&t&&n===void 0&&(n=t,t=null);let r=K(e,n);if(typeof t!=`function`)return r;for(let e=0,n=r.length;e<n;e+=1)t(r[e])}function q(e,n){let r=K(e,n);if(r.length!==0){if(r.length===1)return r[0];throw new t(`expected a single document in the stream, but found more`)}}return R.loadAll=fe,R.load=q,R}var lt={},ut;function dt(){if(ut)return lt;ut=1;let e=V(),t=U(),n=ot(),r=Object.prototype.toString,i=Object.prototype.hasOwnProperty,a=65279,o={};o[0]=`\\0`,o[7]=`\\a`,o[8]=`\\b`,o[9]=`\\t`,o[10]=`\\n`,o[11]=`\\v`,o[12]=`\\f`,o[13]=`\\r`,o[27]=`\\e`,o[34]=`\\"`,o[92]=`\\\\`,o[133]=`\\N`,o[160]=`\\_`,o[8232]=`\\L`,o[8233]=`\\P`;let s=[`y`,`Y`,`yes`,`Yes`,`YES`,`on`,`On`,`ON`,`n`,`N`,`no`,`No`,`NO`,`off`,`Off`,`OFF`],c=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function l(e,t){if(t===null)return{};let n={},r=Object.keys(t);for(let a=0,o=r.length;a<o;a+=1){let o=r[a],s=String(t[o]);o.slice(0,2)===`!!`&&(o=`tag:yaml.org,2002:`+o.slice(2));let c=e.compiledTypeMap.fallback[o];c&&i.call(c.styleAliases,s)&&(s=c.styleAliases[s]),n[o]=s}return n}function u(n){let r,i,a=n.toString(16).toUpperCase();if(n<=255)r=`x`,i=2;else if(n<=65535)r=`u`,i=4;else if(n<=4294967295)r=`U`,i=8;else throw new t(`code point within a string may not be greater than 0xFFFFFFFF`);return`\\`+r+e.repeat(`0`,i-a.length)+a}function d(t){this.schema=t.schema||n,this.indent=Math.max(1,t.indent||2),this.noArrayIndent=t.noArrayIndent||!1,this.skipInvalid=t.skipInvalid||!1,this.flowLevel=e.isNothing(t.flowLevel)?-1:t.flowLevel,this.styleMap=l(this.schema,t.styles||null),this.sortKeys=t.sortKeys||!1,this.lineWidth=t.lineWidth||80,this.noRefs=t.noRefs||!1,this.noCompatMode=t.noCompatMode||!1,this.condenseFlow=t.condenseFlow||!1,this.quotingType=t.quotingType===`"`?2:1,this.forceQuotes=t.forceQuotes||!1,this.replacer=typeof t.replacer==`function`?t.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result=``,this.duplicates=[],this.usedDuplicates=null}function f(t,n){let r=e.repeat(` `,n),i=0,a=``,o=t.length;for(;i<o;){let e,n=t.indexOf(`
20
- `,i);n===-1?(e=t.slice(i),i=o):(e=t.slice(i,n+1),i=n+1),e.length&&e!==`
21
- `&&(a+=r),a+=e}return a}function p(t,n){return`
22
- `+e.repeat(` `,t.indent*n)}function m(e,t){for(let n=0,r=e.implicitTypes.length;n<r;n+=1)if(e.implicitTypes[n].resolve(t))return!0;return!1}function h(e){return e===32||e===9}function g(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==a||e>=65536&&e<=1114111}function _(e){return g(e)&&e!==a&&e!==13&&e!==10}function v(e,t,n){let r=_(e),i=r&&!h(e);return(n?r:r&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125)&&e!==35&&!(t===58&&!i)||_(t)&&!h(t)&&e===35||t===58&&i}function y(e){return g(e)&&e!==a&&!h(e)&&e!==45&&e!==63&&e!==58&&e!==44&&e!==91&&e!==93&&e!==123&&e!==125&&e!==35&&e!==38&&e!==42&&e!==33&&e!==124&&e!==61&&e!==62&&e!==39&&e!==34&&e!==37&&e!==64&&e!==96}function b(e){return!h(e)&&e!==58}function x(e,t){let n=e.charCodeAt(t),r;return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1),r>=56320&&r<=57343)?(n-55296)*1024+r-56320+65536:n}function S(e){return/^\n* /.test(e)}function C(e,t,n,r,i,a,o,s){let c,l=0,u=null,d=!1,f=!1,p=r!==-1,m=-1,h=y(x(e,0))&&b(x(e,e.length-1));if(t||o)for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),!g(l))return 5;h&&=v(l,u,s),u=l}else{for(c=0;c<e.length;l>=65536?c+=2:c++){if(l=x(e,c),l===10)d=!0,p&&(f||=c-m-1>r&&e[m+1]!==` `,m=c);else if(!g(l))return 5;h&&=v(l,u,s),u=l}f||=p&&c-m-1>r&&e[m+1]!==` `}return!d&&!f?h&&!o&&!i(e)?1:a===2?5:2:n>9&&S(e)?5:o?a===2?5:2:f?4:3}function w(e,n,r,i,a){e.dump=(function(){if(n.length===0)return e.quotingType===2?`""`:`''`;if(!e.noCompatMode&&(s.indexOf(n)!==-1||c.test(n)))return e.quotingType===2?`"`+n+`"`:`'`+n+`'`;let o=e.indent*Math.max(1,r),l=e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-o),u=i||e.flowLevel>-1&&r>=e.flowLevel;function d(t){return m(e,t)}switch(C(n,u,e.indent,l,d,e.quotingType,e.forceQuotes&&!i,a)){case 1:return n;case 2:return`'`+n.replace(/'/g,`''`)+`'`;case 3:return`|`+T(n,e.indent)+E(f(n,o));case 4:return`>`+T(n,e.indent)+E(f(D(n,l),o));case 5:return`"`+te(n)+`"`;default:throw new t(`impossible error: invalid scalar style`)}})()}function T(e,t){let n=S(e)?String(t):``,r=e[e.length-1]===`
23
- `;return n+(r&&(e[e.length-2]===`
24
- `||e===`
25
- `)?`+`:r?``:`-`)+`
26
- `}function E(e){return e[e.length-1]===`
27
- `?e.slice(0,-1):e}function D(e,t){let n=/(\n+)([^\n]*)/g,r=(function(){let r=e.indexOf(`
28
- `);return r=r===-1?e.length:r,n.lastIndex=r,ee(e.slice(0,r),t)})(),i=e[0]===`
29
- `||e[0]===` `,a,o;for(;o=n.exec(e);){let e=o[1],n=o[2];a=n[0]===` `,r+=e+(!i&&!a&&n!==``?`
30
- `:``)+ee(n,t),i=a}return r}function ee(e,t){if(e===``||e[0]===` `)return e;let n=/ [^ ]/g,r,i=0,a,o=0,s=0,c=``;for(;r=n.exec(e);)s=r.index,s-i>t&&(a=o>i?o:s,c+=`
31
- `+e.slice(i,a),i=a+1),o=s;return c+=`
32
- `,e.length-i>t&&o>i?c+=e.slice(i,o)+`
33
- `+e.slice(o+1):c+=e.slice(i),c.slice(1)}function te(e){let t=``,n=0;for(let r=0;r<e.length;n>=65536?r+=2:r++){n=x(e,r);let i=o[n];!i&&g(n)?(t+=e[r],n>=65536&&(t+=e[r+1])):t+=i||u(n)}return t}function O(e,t,n){let r=``,i=e.tag;for(let i=0,a=n.length;i<a;i+=1){let a=n[i];e.replacer&&(a=e.replacer.call(n,String(i),a)),(M(e,t,a,!1,!1)||a===void 0&&M(e,t,null,!1,!1))&&(r!==``&&(r+=`,`+(e.condenseFlow?``:` `)),r+=e.dump)}e.tag=i,e.dump=`[`+r+`]`}function k(e,t,n,r){let i=``,a=e.tag;for(let a=0,o=n.length;a<o;a+=1){let o=n[a];e.replacer&&(o=e.replacer.call(n,String(a),o)),(M(e,t+1,o,!0,!0,!1,!0)||o===void 0&&M(e,t+1,null,!0,!0,!1,!0))&&((!r||i!==``)&&(i+=p(e,t)),e.dump&&e.dump.charCodeAt(0)===10?i+=`-`:i+=`- `,i+=e.dump)}e.tag=a,e.dump=i||`[]`}function ne(e,t,n){let r=``,i=e.tag,a=Object.keys(n);for(let i=0,o=a.length;i<o;i+=1){let o=``;r!==``&&(o+=`, `),e.condenseFlow&&(o+=`"`);let s=a[i],c=n[s];e.replacer&&(c=e.replacer.call(n,s,c)),M(e,t,s,!1,!1)&&(e.dump.length>1024&&(o+=`? `),o+=e.dump+(e.condenseFlow?`"`:``)+`:`+(e.condenseFlow?``:` `),M(e,t,c,!1,!1)&&(o+=e.dump,r+=o))}e.tag=i,e.dump=`{`+r+`}`}function A(e,n,r,i){let a=``,o=e.tag,s=Object.keys(r);if(e.sortKeys===!0)s.sort();else if(typeof e.sortKeys==`function`)s.sort(e.sortKeys);else if(e.sortKeys)throw new t(`sortKeys must be a boolean or a function`);for(let t=0,o=s.length;t<o;t+=1){let o=``;(!i||a!==``)&&(o+=p(e,n));let c=s[t],l=r[c];if(e.replacer&&(l=e.replacer.call(r,c,l)),!M(e,n+1,c,!0,!0,!0))continue;let u=e.tag!==null&&e.tag!==`?`||e.dump&&e.dump.length>1024;u&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`?`:o+=`? `),o+=e.dump,u&&(o+=p(e,n)),M(e,n+1,l,!0,u)&&(e.dump&&e.dump.charCodeAt(0)===10?o+=`:`:o+=`: `,o+=e.dump,a+=o)}e.tag=o,e.dump=a||`{}`}function j(e,n,a){let o=a?e.explicitTypes:e.implicitTypes;for(let s=0,c=o.length;s<c;s+=1){let c=o[s];if((c.instanceOf||c.predicate)&&(!c.instanceOf||typeof n==`object`&&n instanceof c.instanceOf)&&(!c.predicate||c.predicate(n))){if(e.tag=a?c.multi&&c.representName?c.representName(n):c.tag:`?`,c.represent){let a=e.styleMap[c.tag]||c.defaultStyle,o;if(r.call(c.represent)===`[object Function]`)o=c.represent(n,a);else if(i.call(c.represent,a))o=c.represent[a](n,a);else throw new t(`!<`+c.tag+`> tag resolver accepts not "`+a+`" style`);e.dump=o}return!0}}return!1}function M(e,n,i,a,o,s,c){e.tag=null,e.dump=i,j(e,i,!1)||j(e,i,!0);let l=r.call(e.dump),u=a;a&&=e.flowLevel<0||e.flowLevel>n;let d=l===`[object Object]`||l===`[object Array]`,f,p;if(d&&(f=e.duplicates.indexOf(i),p=f!==-1),(e.tag!==null&&e.tag!==`?`||p||e.indent!==2&&n>0)&&(o=!1),p&&e.usedDuplicates[f])e.dump=`*ref_`+f;else{if(d&&p&&!e.usedDuplicates[f]&&(e.usedDuplicates[f]=!0),l===`[object Object]`)a&&Object.keys(e.dump).length!==0?(A(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(ne(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object Array]`)a&&e.dump.length!==0?(e.noArrayIndent&&!c&&n>0?k(e,n-1,e.dump,o):k(e,n,e.dump,o),p&&(e.dump=`&ref_`+f+e.dump)):(O(e,n,e.dump),p&&(e.dump=`&ref_`+f+` `+e.dump));else if(l===`[object String]`)e.tag!==`?`&&w(e,e.dump,n,s,u);else if(l===`[object Undefined]`)return!1;else{if(e.skipInvalid)return!1;throw new t(`unacceptable kind of an object to dump `+l)}if(e.tag!==null&&e.tag!==`?`){let t=encodeURI(e.tag[0]===`!`?e.tag.slice(1):e.tag).replace(/!/g,`%21`);t=e.tag[0]===`!`?`!`+t:t.slice(0,18)===`tag:yaml.org,2002:`?`!!`+t.slice(18):`!<`+t+`>`,e.dump=t+` `+e.dump}}return!0}function N(e,t){let n=[],r=[];P(e,n,r);let i=r.length;for(let e=0;e<i;e+=1)t.duplicates.push(n[r[e]]);t.usedDuplicates=Array(i)}function P(e,t,n){if(typeof e==`object`&&e){let r=t.indexOf(e);if(r!==-1)n.indexOf(r)===-1&&n.push(r);else if(t.push(e),Array.isArray(e))for(let r=0,i=e.length;r<i;r+=1)P(e[r],t,n);else{let r=Object.keys(e);for(let i=0,a=r.length;i<a;i+=1)P(e[r[i]],t,n)}}}function F(e,t){t||={};let n=new d(t);n.noRefs||N(e,n);let r=e;return n.replacer&&(r=n.replacer.call({"":r},``,r)),M(n,0,r,!0,!0)?n.dump+`
34
- `:``}return lt.dump=F,lt}var ft;function pt(){if(ft)return L;ft=1;let e=ct(),t=dt();function n(e,t){return function(){throw Error(`Function yaml.`+e+` is removed in js-yaml 4. Use yaml.`+t+` instead, which is now safe by default.`)}}return L.Type=K(),L.Schema=J(),L.FAILSAFE_SCHEMA=Se(),L.JSON_SCHEMA=Le(),L.CORE_SCHEMA=ze(),L.DEFAULT_SCHEMA=ot(),L.load=e.load,L.loadAll=e.loadAll,L.dump=t.dump,L.YAMLException=U(),L.types={binary:Je(),float:Pe(),map:ye(),null:Te(),pairs:et(),set:rt(),timestamp:He(),bool:Oe(),int:je(),merge:Ge(),omap:Ze(),seq:_e(),str:he()},L.safeLoad=n(`safeLoad`,`load`),L.safeLoadAll=n(`safeLoadAll`,`loadAll`),L.safeDump=n(`safeDump`,`dump`),L}var{Type:mt,Schema:ht,FAILSAFE_SCHEMA:gt,JSON_SCHEMA:_t,CORE_SCHEMA:vt,DEFAULT_SCHEMA:yt,load:bt,loadAll:xt,dump:St,YAMLException:Ct,types:wt,safeLoad:Tt,safeLoadAll:Et,safeDump:Dt}=se(pt()),Ot=3e3,kt=9999,At=`openpond.yaml`,jt=[`google`,`github`,`x`],Mt=new Set([22,2222,2375,2376,3108,5900,5901,6080,7818]),Nt=r(u().trim().min(1).max(1e3)).max(50),Pt=u().trim().min(1).max(4096).refine(nn,{message:`path must be a relative workspace path`}),Ft=u().trim().min(1).max(500).refine(e=>!e.includes(`\0`)&&!/\s/.test(e),`image ref must be a single OCI reference`),It=u().trim().regex(/^sha256:[0-9a-f]{64}$/i),Lt=u().trim().min(1).max(500).refine(e=>e.startsWith(`/`)&&!e.includes(`\0`),`workspaceRoot must be an absolute guest path`),Rt=o({ref:Ft,digest:It.optional(),registrySecretRef:u().trim().min(1).max(500).optional(),platform:i(`linux/amd64`).optional(),workspaceRoot:Lt.optional()}).strict(),zt=o({context:Pt.default(`.`),path:Pt.default(`Dockerfile`),target:u().trim().min(1).max(191).optional(),buildArgs:a(u().max(191),u().max(500)).optional(),registrySecretRefs:r(u().trim().min(1).max(500)).max(10).optional(),platform:i(`linux/amd64`).optional(),workspaceRoot:Lt.optional()}).strict(),Bt=o({base:u().trim().min(1).max(120).optional(),snapshot:u().trim().min(1).max(191).optional(),image:Rt.optional(),dockerfile:zt.optional()}).strict().superRefine((e,t)=>{[e.base,e.snapshot,e.image,e.dockerfile].filter(Boolean).length!==1&&t.addIssue({code:I.custom,message:`runtime must declare exactly one of base, snapshot, image, or dockerfile`})}),Vt=o({cpu:c().positive().max(8).optional(),memoryGb:c().positive().max(32).optional(),diskGb:c().positive().max(100).optional()}).strict(),Ht=o({provider:l(jt),scopes:r(u().trim().min(1).max(200)).max(100).default([]),capabilities:r(u().trim().min(1).max(200)).max(100).default([])}).strict(),Ut=o({models:r(u().trim().min(1).max(200)).max(100).default([]),scopes:r(u().trim().min(1).max(200)).max(100).default([])}).strict(),Wt=o({opchat:Ut.optional()}).catchall(a(u(),d())).default({}),Gt=o({name:u().trim().regex(/^[A-Za-z_][A-Za-z0-9_-]*$/).max(63).optional(),mountPath:u().trim().min(1).max(256).optional(),storageGb:c().int().positive().max(100).optional(),deleteOnSandboxDelete:s().optional()}).strict(),Kt=o({port:c().int().min(Ot).max(kt).refine(e=>!Mt.has(e),{message:`preview port is reserved`}),protocol:i(`http`).default(`http`),label:u().trim().min(1).max(80).optional(),access:l([`private`,`public`]).default(`private`),path:u().trim().min(1).max(512).refine(e=>e.startsWith(`/`),{message:`preview path must start with /`}).default(`/`)}).strict(),qt=o({command:u().trim().min(1).max(1e3),cwd:Pt.optional(),timeoutSeconds:c().int().positive().max(86400).optional(),requiresStart:s().default(!1),ports:r(Kt).max(20).default([]),artifactPaths:r(Pt).max(100).default([])}).strict(),Jt=qt.extend({name:u().trim().min(1).max(80)}).strict(),Yt=o({name:u().trim().min(1).max(80).optional(),service:u().trim().min(1).max(80).optional(),port:c().int().min(Ot).max(kt).refine(e=>!Mt.has(e),{message:`app MCP port is reserved`}),path:u().trim().min(1).max(512).refine(e=>e.startsWith(`/`),{message:`app MCP path must start with /`}).default(`/mcp`)}).strict(),Xt=o({name:u().trim().min(1).max(80).optional(),port:c().int().min(Ot).max(kt).refine(e=>!Mt.has(e),{message:`validation probe port is reserved`}),path:u().trim().min(1).max(512).refine(e=>e.startsWith(`/`),{message:`validation probe path must start with /`}).default(`/`),expectedStatus:c().int().min(100).max(599).default(200)}).strict(),Zt=a(u(),d()).refine(e=>e.type===`object`,`input schema must be a JSON schema object`),Qt=o({name:u().trim().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).max(191),required:s().default(!1),secret:s().default(!0),description:u().trim().max(500).optional()}).strict(),$t=u().trim().min(1).max(120),en=o({name:u().trim().min(1).max(120),description:u().trim().max(500).optional(),cron:u().trim().min(1).max(500).optional(),rate:u().trim().min(1).max(500).optional(),once:$t.optional(),scheduleType:l([`rate`,`cron`,`once`]).optional(),scheduleExpression:u().trim().min(1).max(500).optional(),timezone:u().trim().min(1).max(100).optional(),enabled:s().default(!0),startAt:$t.optional(),endAt:$t.optional(),maxRuns:c().int().positive().nullable().optional(),runtimePolicy:l([`run_and_stop`,`run_and_archive`,`run_and_delete`,`use_existing_running`]).default(`run_and_stop`),action:u().trim().min(1).max(120).optional(),actionName:u().trim().min(1).max(120).optional(),command:u().trim().min(1).max(2e3).optional(),target:o({kind:l([`start`,`action`,`service`,`command`]).optional(),name:u().trim().min(1).max(120).optional(),actionName:u().trim().min(1).max(120).optional(),command:u().trim().min(1).max(2e3).optional(),requiresStart:s().optional()}).strict().optional(),requiresStart:s().optional(),budget:o({maxUsd:u().trim().min(1).max(40).optional()}).strict().optional(),resources:Vt.optional(),quotas:a(u(),d()).optional(),lifecycle:a(u(),d()).optional(),retentionPolicy:a(u(),d()).optional(),env:r(o({name:u().trim().regex(/^[A-Za-z_][A-Za-z0-9_]*$/).max(191),value:u().optional(),secretRef:u().optional()}).strict()).max(100).optional(),integrationLeases:r(a(u(),d())).max(20).optional(),metadata:a(u(),d()).optional()}).strict().superRefine((e,t)=>{[e.cron,e.rate,e.once,e.scheduleExpression].filter(e=>typeof e==`string`&&e.trim()).length!==1&&t.addIssue({code:I.custom,path:[`scheduleExpression`],message:`schedule must declare exactly one of cron, rate, once, or scheduleExpression`}),e.scheduleExpression&&!e.scheduleType&&t.addIssue({code:I.custom,path:[`scheduleType`],message:`scheduleType is required with scheduleExpression`});let n=e.command??e.target?.command??null,r=e.target?.name??null,i=e.actionName??e.action??e.target?.actionName??(e.target?.kind===`action`?r:null),a=e.target?.kind??(n?`command`:`action`);a===`action`&&!i&&t.addIssue({code:I.custom,path:[`action`],message:`schedule action target is required`}),a===`service`&&!r&&t.addIssue({code:I.custom,path:[`target`,`name`],message:`schedule service target name is required`}),a===`command`&&!n&&t.addIssue({code:I.custom,path:[`command`],message:`schedule command target is required`})});o({schemaVersion:i(1),name:u().trim().min(1).max(80).regex(/^[a-z0-9][a-z0-9-]*[a-z0-9]$/),version:u().trim().min(1).max(40),useCase:u().trim().min(1).max(80),description:u().trim().min(1).max(500),runtime:Bt,resources:Vt.optional(),setup:o({commands:Nt.default([])}).strict().default({commands:[]}),validation:o({commands:Nt.min(1),probes:r(Xt).max(20).default([])}).strict(),start:qt,actions:r(Jt).max(20).default([]),services:r(Jt).max(20).default([]),schedules:r(en).max(20).default([]),mcp:o({endpoints:r(Yt).max(10).default([])}).strict().default({endpoints:[]}),volumes:r(Gt).max(5).default([]),integrations:o({requiredLeases:r(Ht).max(20).default([])}).strict().default({requiredLeases:[]}),permissions:Wt,inputs:o({schema:Zt.default({type:`object`}),env:r(Qt).max(100).default([])}).strict().default({schema:{type:`object`},env:[]}),artifacts:o({paths:r(Pt).max(100).default([])}).strict().default({paths:[]}),network:o({egress:l([`restricted`,`allow`,`block`]).default(`restricted`)}).strict().default({egress:`restricted`})}).strict().superRefine((e,t)=>{an(e,t),rn(t,e.volumes.flatMap(e=>e.name?[e.name]:[]),`volume names must be unique`,`volumes`),on(e,t),sn(e,t),cn(e,t),ln(e,t)}),o({path:u(),message:u(),code:u()});function tn(e){return[{kind:`start`,name:`start`,...e.start,artifactPaths:dn(e.start,e)},...e.actions.map(t=>({kind:`action`,name:t.name,command:t.command,cwd:t.cwd,timeoutSeconds:t.timeoutSeconds,requiresStart:t.requiresStart,ports:t.ports,artifactPaths:dn(t,e)})),...e.services.map(t=>({kind:`service`,name:t.name,command:t.command,cwd:t.cwd,timeoutSeconds:t.timeoutSeconds,requiresStart:t.requiresStart,ports:t.ports,artifactPaths:dn(t,e)}))]}function nn(e){return!e.includes(`\0`)&&!e.startsWith(`/`)&&!e.split(/[\\/]+/).some(e=>e===`..`||e===``)}function rn(e,t,n,r){let i=new Set;for(let a of t){if(i.has(a)){e.addIssue({code:I.custom,path:[r],message:n});return}i.add(a)}}function an(e,t){rn(t,[`start`,...e.actions.map(e=>e.name),...e.services.map(e=>e.name)],`start, action, and service names must be unique`,`actions`)}function on(e,t){let n=un(e.inputs.schema.properties),r=new Set(e.volumes.map(e=>e.name).filter(e=>!!e));for(let[e,i]of Object.entries(n)){let n=un(i),a=un(n[`x-openpond-upload`]??n.xOpenPondUpload),o=typeof a.targetPath==`string`&&a.targetPath.trim()?a.targetPath.trim():typeof a.path==`string`&&a.path.trim()?a.path.trim():``;if(!o)continue;let s=o.replace(/^workspace\//,``).replace(/^\/+/,``).replace(/\/+$/,``);if(!nn(s)){t.addIssue({code:I.custom,path:[`inputs`,`schema`,`properties`,e,`x-openpond-upload`,`targetPath`],message:`upload target must be a relative workspace path`});continue}let c=s.split(`/`);c[0]===`volumes`&&(!c[1]||!r.has(c[1]))&&t.addIssue({code:I.custom,path:[`inputs`,`schema`,`properties`,e,`x-openpond-upload`,`targetPath`],message:`upload target references an undeclared volume`})}}function sn(e,t){rn(t,e.inputs.env.map(e=>e.name),`env input names must be unique`,`inputs`)}function cn(e,t){let n=new Map(e.services.map(e=>[e.name,new Set(e.ports.map(e=>e.port))])),r=new Set([...e.start.ports.map(e=>e.port),...e.services.flatMap(e=>e.ports.map(e=>e.port))]);for(let[i,a]of e.mcp.endpoints.entries())if(a.service){let e=n.get(a.service);if(!e){t.addIssue({code:I.custom,path:[`mcp`,`endpoints`,i,`service`],message:`app MCP service does not exist: ${a.service}`});continue}e.has(a.port)||t.addIssue({code:I.custom,path:[`mcp`,`endpoints`,i,`port`],message:`app MCP port ${a.port} is not declared on service ${a.service}`})}else r.has(a.port)||t.addIssue({code:I.custom,path:[`mcp`,`endpoints`,i,`port`],message:`app MCP port ${a.port} is not declared on start or services`})}function ln(e,t){let n=new Set(e.actions.map(e=>e.name)),r=new Set(e.services.map(e=>e.name));for(let[i,a]of e.schedules.entries()){let e=a.command??a.target?.command??null;if(a.target?.kind===`command`||e)continue;let o=a.actionName??a.action??a.target?.actionName??(a.target?.kind===`action`?a.target?.name:null);if(o&&!n.has(o)&&t.addIssue({code:I.custom,path:[`schedules`,i,`action`],message:`schedule action target does not exist: ${o}`}),a.target?.kind===`service`){let e=a.target.name??``;e&&!r.has(e)&&t.addIssue({code:I.custom,path:[`schedules`,i,`target`,`name`],message:`schedule service target does not exist: ${e}`})}}}function un(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function dn(e,t){return e.artifactPaths.length>0?e.artifactPaths:t.artifacts.paths}var fn=f(`hammer`,[[`path`,{d:`m15 12-9.373 9.373a1 1 0 0 1-3.001-3L12 9`,key:`1hayfq`}],[`path`,{d:`m18 15 4-4`,key:`16gjal`}],[`path`,{d:`m21.5 11.5-1.914-1.914A2 2 0 0 1 19 8.172v-.344a2 2 0 0 0-.586-1.414l-1.657-1.657A6 6 0 0 0 12.516 3H9l1.243 1.243A6 6 0 0 1 12 8.485V10l2 2h1.172a2 2 0 0 1 1.414.586L18.5 14.5`,key:`15ts47`}]]),Q=e(t(),1);function pn(e){let t=Fn(Fn(e?.data).preview);return(typeof t.url==`string`?t.url.trim():``)||null}function mn(){let e=window.open(``,`_blank`);return e?(e.document.write(`<!doctype html><html data-theme="${A()}"><head><title>Opening sandbox preview</title><style>${E}</style></head><body style="margin:0;background:var(--surface-page);color:var(--text-primary);font:14px system-ui,sans-serif;display:grid;place-items:center;height:100vh;">Opening sandbox preview...</body></html>`),e.document.close(),e):null}function hn(e,t){t?e?(e.opener=null,e.location.href=t):window.open(t,`_blank`,`noopener,noreferrer`):e?.close()}function gn(e){let t=vn(e),n=yn(Fn(e?.resources)),r=Fn(Fn(e?.inputs).schema),i=Fn(r.properties),a=new Set(Nn(r.required)),o=[],s=[];for(let[e,t]of Object.entries(i)){let n=Fn(t),r=Fn(n[`x-openpond-upload`]??n.xOpenPondUpload),i=typeof n.type==`string`?n.type:`string`,c=Fn(n.items),l=Dn(n,r),u=n.format===`file`||r.enabled===!0||i===`array`&&c.format===`file`,d=typeof n.title==`string`&&n.title.trim()?n.title.trim():Pn(e);u?s.push({name:e,label:d,required:a.has(e),multiple:i===`array`||r.multiple===!0,accept:On(r,n),targetPath:kn(r,e),targetNames:l}):(i===`string`||i===`number`||i===`integer`||i===`boolean`)&&o.push({name:e,label:d,required:a.has(e),type:i,defaultValue:typeof n.default==`string`||typeof n.default==`number`||typeof n.default==`boolean`?String(n.default):``,targetNames:l})}return{entrypoints:t,scalarInputs:o,fileInputs:s,envInputs:xn(e),resources:n,volumes:bn(e,s),schedules:Sn(e)}}function _n(e,t){let n=t.trim();return e.filter(e=>!e.targetNames||e.targetNames.length===0||e.targetNames.includes(n))}function vn(e){return e?tn(e).flatMap(e=>{if(e.kind===`action`)return[];let t=e.name.trim(),n=e.command.trim(),r=jn(e.timeoutSeconds),i=e.ports.flatMap(e=>{let t=jn(e.port);return t?[{port:t,label:typeof e.label==`string`&&e.label.trim()?e.label.trim():`web`,access:e.access===`public`?`public`:`private`,path:typeof e.path==`string`&&e.path.trim()?e.path.trim():`/`}]:[]});return t&&n?[{name:t,command:n,timeoutSeconds:r,ports:i}]:[]}):[]}function yn(e){return{cpu:An(e.cpu)??1,memoryGb:An(e.memoryGb)??1,diskGb:An(e.diskGb)??8}}function bn(e,t){let n=Array.isArray(e?.volumes)?e.volumes:[];if(n.length>0)return n.map((e,t)=>{let n=t===0?`volume`:`volume-${t+1}`,r=typeof e.name==`string`&&e.name.trim()?e.name.trim():n;return{name:r,mountPath:typeof e.mountPath==`string`&&e.mountPath.trim()?e.mountPath.trim():`/workspace/volumes/${r}`,...jn(e.storageGb)?{storageGb:jn(e.storageGb)??void 0}:{},deleteOnSandboxDelete:e.deleteOnSandboxDelete===!0}});let r=t.find(e=>e.targetPath.startsWith(`volumes/`));if(!r)return[];let[,i=`volume`]=r.targetPath.split(`/`);return[{name:i,mountPath:`/workspace/volumes/${i}`,storageGb:8,deleteOnSandboxDelete:!1}]}function xn(e){return(Array.isArray(e?.inputs.env)?e.inputs.env:[]).flatMap(e=>{let t=typeof e.name==`string`?e.name.trim():``;return t?[{name:t,required:e.required===!0,secret:e.secret!==!1,description:typeof e.description==`string`?e.description.trim():``}]:[]})}function Sn(e){return e?.schedules?.length?e.schedules.flatMap(t=>{let n=typeof t.name==`string`?t.name.trim():``,r=Cn(t);if(!n||!r.scheduleExpression)return[];try{return[{name:n,...typeof t.description==`string`&&t.description.trim()?{description:t.description.trim()}:{},enabled:!1,...r,...typeof t.timezone==`string`&&t.timezone.trim()?{timezone:t.timezone.trim()}:{},...typeof t.startAt==`string`&&t.startAt.trim()?{startAt:t.startAt.trim()}:{},...typeof t.endAt==`string`&&t.endAt.trim()?{endAt:t.endAt.trim()}:{},...typeof t.maxRuns==`number`&&Number.isInteger(t.maxRuns)&&t.maxRuns>0?{maxRuns:t.maxRuns}:{},runtimePolicy:t.runtimePolicy,target:wn(e,t),...t.budget?{budget:t.budget}:{},...t.resources?{resources:t.resources}:{},...t.quotas?{quotas:t.quotas}:{},...t.lifecycle?{lifecycle:t.lifecycle}:{},...t.retentionPolicy?{retentionPolicy:t.retentionPolicy}:{},...t.env?{env:t.env}:{},...t.integrationLeases?{integrationLeases:t.integrationLeases}:{},metadata:{...Fn(t.metadata),manifestScheduleName:n,source:`openpond-app-sandbox-template-start`}}]}catch{return[]}}):[]}function Cn(e){return e.scheduleExpression?{scheduleType:e.scheduleType??`cron`,scheduleExpression:e.scheduleExpression}:e.rate?{scheduleType:`rate`,scheduleExpression:/^rate\(/i.test(e.rate)?e.rate:`rate(${e.rate})`}:e.once?{scheduleType:`once`,scheduleExpression:/^at\(/i.test(e.once)?e.once:`at(${e.once})`}:{scheduleType:`cron`,scheduleExpression:e.cron??``}}function wn(e,t){let n=t.command??t.target?.command??null;if(n)return{kind:`command`,command:n,requiresStart:t.requiresStart??t.target?.requiresStart??!1};let r=t.target?.kind??`action`;if(r===`start`)return{kind:`command`,command:e.start.command,requiresStart:t.requiresStart??t.target?.requiresStart??e.start.requiresStart??!1};if(r===`service`){let n=t.target?.name??``,r=e.services.find(e=>e.name===n);if(!r)throw Error(`schedule_service_target_missing`);return{kind:`command`,command:r.command,requiresStart:t.requiresStart??t.target?.requiresStart??r.requiresStart??!1}}let i=t.actionName??t.action??t.target?.actionName??(t.target?.kind===`action`?t.target?.name:void 0),a=e.actions.find(e=>e.name===i);if(!a)throw Error(`schedule_action_target_missing`);return{kind:`command`,command:a.command,requiresStart:t.requiresStart??t.target?.requiresStart??a.requiresStart??!1}}function Tn(e,t){return e.flatMap(e=>{let n=(t[e.name]??``).trim();return n?[{name:e.name,secretRef:n}]:[]})}function En(e,t){let n={};for(let r of e){let e=t[r.name]??``;if(e.trim()||r.required){if(r.type===`boolean`)n[r.name]=e===`true`;else if(r.type===`number`||r.type===`integer`){let t=Number(e);Number.isFinite(t)&&(n[r.name]=r.type===`integer`?Math.trunc(t):t)}else n[r.name]=e}}return n}function Dn(e,t){let n=Nn(e[`x-openpond-targets`]??e.xOpenPondTargets??t.targets??t.actions).map(e=>e.trim()).filter(Boolean);return n.length>0?[...new Set(n)]:null}function On(e,t){return typeof e.accept==`string`?e.accept.trim():Array.isArray(e.accept)?e.accept.filter(e=>typeof e==`string`).join(`,`):typeof t.accept==`string`?t.accept.trim():``}function kn(e,t){return(typeof e.targetPath==`string`&&e.targetPath.trim()?e.targetPath.trim():typeof e.path==`string`&&e.path.trim()?e.path.trim():`uploads/${t}`).replace(/^\/+/,``).replace(/^workspace\//,``).replace(/\/+$/,``)}function An(e){let t=Number(e);return Number.isFinite(t)&&t>0?t:null}function jn(e){let t=Number(e);return Number.isInteger(t)&&t>0?t:null}function Mn(e,t){return[t,...e.slice(1)]}function Nn(e){return Array.isArray(e)?e.filter(e=>typeof e==`string`):[]}function Pn(e){return e.replace(/([a-z0-9])([A-Z])/g,`$1 $2`).replace(/[-_]+/g,` `).replace(/\b\w/g,e=>e.toUpperCase())}function Fn(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}var $=n();function In({busy:e,defaultRepoUrl:t,projectName:n,commitBeforeCreate:r,templateManifest:i,uploadBeforeCreate:a,onClose:o,onSubmit:s}){let c=(0,Q.useMemo)(()=>gn(i),[i]),l=c.entrypoints[0]??null,[u,d]=(0,Q.useState)(t),[f,p]=(0,Q.useState)(l?.name??``),[h,g]=(0,Q.useState)(l?.command??``),[_,v]=(0,Q.useState)(l?.timeoutSeconds?String(l.timeoutSeconds):``),[y,b]=(0,Q.useState)(`Update ${n}`),[x,S]=(0,Q.useState)(`0.05`),[w,T]=(0,Q.useState)(()=>Object.fromEntries(c.scalarInputs.map(e=>[e.name,e.defaultValue]))),[E,D]=(0,Q.useState)(()=>Object.fromEntries(c.envInputs.map(e=>[e.name,``]))),[ee,te]=(0,Q.useState)({}),O=c.volumes[0]??null,[k,ne]=(0,Q.useState)(c.volumes.length>0||c.fileInputs.length>0),[A,M]=(0,Q.useState)(O?.name??`volume`),[N,P]=(0,Q.useState)(O?.mountPath??`/workspace/volumes/volume`),[F,re]=(0,Q.useState)(String(O?.storageGb??8)),[ie,ae]=(0,Q.useState)(!(O?.deleteOnSandboxDelete??!1)),[I,oe]=(0,Q.useState)(c.schedules),se=c.entrypoints.find(e=>e.name===f)??l,L=se?.ports??[],R=L[0]??null,[z,B]=(0,Q.useState)(!!R),[V,ce]=(0,Q.useState)(R?String(R.port):``),H=Number(V),U=Number(x),W=Number(F),le=Number(_),ue=!_.trim()||Number.isInteger(le)&&le>0&&le<=86400,G=!z||Number.isInteger(H)&&H>=3e3&&H<=9999&&L.some(e=>e.port===H),de=Number.isFinite(U)&&U>0,K=!k||Number.isInteger(W)&&W>0,fe=I.every(e=>!e.enabled||!!e.scheduleExpression.trim()),q=_n(c.scalarInputs,f),J=_n(c.fileInputs,f),pe=c.envInputs.every(e=>!e.required||!!(E[e.name]??``).trim()),me=c.envInputs.filter(e=>e.required&&!(E[e.name]??``).trim()),he=(a||!!u.trim())&&!!h.trim()&&de&&ue&&K&&q.every(e=>!e.required||!!(w[e.name]??``).trim())&&J.every(e=>!e.required||(ee[e.name]?.length??0)>0)&&pe&&fe&&G;function ge(e){p(e);let t=c.entrypoints.find(t=>t.name===e);if(!t)return;g(t.command),v(t.timeoutSeconds?String(t.timeoutSeconds):``);let n=t.ports[0]??null;ce(n?String(n.port):``),B(!!n)}function Y(e,t){T(n=>({...n,[e]:t}))}function _e(e,t){D(n=>({...n,[e]:t}))}function ve(e,t){let n=Array.from(t.target.files??[]);te(t=>({...t,[e.name]:e.multiple?n:n.slice(0,1)}))}function X(e,t){oe(n=>n.map((n,r)=>r===e?{...n,...t}:n))}function ye(t){t.preventDefault(),he&&!e&&s({repoUrl:u.trim(),command:h.trim(),entrypointName:f,commitMessage:y.trim(),budgetUsd:x.trim(),params:En(q,w),env:Tn(c.envInputs,E),timeoutSeconds:_.trim()&&Number.isInteger(le)?le:se?.timeoutSeconds??null,uploads:J.flatMap(e=>{let t=ee[e.name]??[];return t.length>0?[{inputName:e.name,label:e.label,targetPath:e.targetPath,multiple:e.multiple,files:t}]:[]}),resources:c.resources,volumes:k?Mn(c.volumes,{...A.trim()?{name:A.trim()}:{},...N.trim()?{mountPath:N.trim()}:{},...Number.isInteger(W)&&W>0?{storageGb:W}:{},deleteOnSandboxDelete:!ie}):[],schedules:I.filter(e=>e.enabled),openPreview:z,previewPort:z?H:null,previewLabel:L.find(e=>e.port===H)?.label??`web`,previewAccess:L.find(e=>e.port===H)?.access??`private`})}return(0,$.jsx)(`div`,{className:`git-dialog-backdrop`,role:`presentation`,children:(0,$.jsxs)(`form`,{className:`git-dialog run-once-dialog sandbox-start-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`Start sandbox`,onSubmit:ye,children:[(0,$.jsx)(`button`,{className:`git-dialog-close`,disabled:e,type:`button`,title:`Close`,"aria-label":`Close`,onClick:o,children:(0,$.jsx)(C,{size:15})}),(0,$.jsxs)(`div`,{className:`sandbox-start-dialog-heading`,children:[(0,$.jsx)(`div`,{className:`git-dialog-icon`,children:(0,$.jsx)(j,{size:18})}),(0,$.jsx)(`h2`,{children:`Start sandbox`}),(0,$.jsxs)(`div`,{className:`git-dialog-row`,children:[(0,$.jsx)(`span`,{children:`Project`}),(0,$.jsx)(`strong`,{children:n})]})]}),(0,$.jsxs)(`div`,{className:`sandbox-start-dialog-body`,children:[a?null:(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Repository`}),(0,$.jsx)(`input`,{disabled:e,value:u,onChange:e=>d(e.target.value)})]}),r?(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Commit message`}),(0,$.jsx)(`input`,{disabled:e,value:y,onChange:e=>b(e.target.value)})]}):null,c.entrypoints.length>0?(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Run target`}),(0,$.jsx)(`select`,{disabled:e,value:f,onChange:e=>ge(e.target.value),children:c.entrypoints.map(e=>(0,$.jsx)(`option`,{value:e.name,children:e.name},e.name))})]}):null,(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Shell command`}),(0,$.jsx)(`input`,{disabled:e,value:h,onChange:e=>g(e.target.value)})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Timeout seconds`}),(0,$.jsx)(`input`,{disabled:e,inputMode:`numeric`,value:_,onChange:e=>v(e.target.value)})]}),q.map(t=>t.type===`boolean`?(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:(w[t.name]??``)===`true`,disabled:e,type:`checkbox`,onChange:e=>Y(t.name,e.target.checked?`true`:`false`)}),(0,$.jsx)(`span`,{}),t.label]},t.name):(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:t.label}),(0,$.jsx)(`input`,{disabled:e,inputMode:t.type===`number`||t.type===`integer`?`decimal`:void 0,value:w[t.name]??``,onChange:e=>Y(t.name,e.target.value)})]},t.name)),J.map(t=>(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:t.label}),(0,$.jsx)(`input`,{accept:t.accept||void 0,disabled:e,multiple:t.multiple,type:`file`,onChange:e=>ve(t,e)})]},t.name)),c.envInputs.length>0?(0,$.jsxs)(`div`,{className:`sandbox-start-env-section`,children:[(0,$.jsx)(`div`,{className:`sandbox-start-section-title`,children:`Environment`}),me.length>0?(0,$.jsxs)(`p`,{className:`sandbox-start-env-warning`,role:`status`,children:[`Required sandbox secret ref missing: `,me.map(e=>e.name).join(`, `)]}):null,c.envInputs.map(t=>{let n=E[t.name]??``,r=t.required&&!n.trim(),i=`sandbox-env-${t.name}-description`;return(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsxs)(`span`,{children:[t.name,t.required?` *`:``]}),(0,$.jsx)(`input`,{"aria-describedby":i,"aria-invalid":r,disabled:e,placeholder:`openpond://secret/...`,value:n,onChange:e=>_e(t.name,e.target.value)}),(0,$.jsx)(`small`,{id:i,children:r?`Add a sandbox secret ref before starting.`:t.description||`Sandbox secret ref only.`})]},t.name)})]}):null,J.length>0||c.volumes.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:k,disabled:e,type:`checkbox`,onChange:e=>ne(e.target.checked)}),(0,$.jsx)(`span`,{}),`Mount volume`]}),k?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`run-once-dialog-grid`,children:[(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Volume`}),(0,$.jsx)(`input`,{disabled:e,value:A,onChange:e=>M(e.target.value)})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Storage GiB`}),(0,$.jsx)(`input`,{disabled:e,inputMode:`numeric`,value:F,onChange:e=>re(e.target.value)})]})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Mount path`}),(0,$.jsx)(`input`,{disabled:e,value:N,onChange:e=>P(e.target.value)})]}),(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:ie,disabled:e,type:`checkbox`,onChange:e=>ae(e.target.checked)}),(0,$.jsx)(`span`,{}),`Keep volume`]})]}):null]}):null,I.length>0?(0,$.jsxs)(`div`,{className:`sandbox-start-schedules`,children:[(0,$.jsx)(`div`,{className:`sandbox-start-section-title`,children:`Schedules`}),I.map((t,n)=>(0,$.jsxs)(`div`,{className:`sandbox-start-schedule-row`,children:[(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:t.enabled,disabled:e,type:`checkbox`,onChange:e=>X(n,{enabled:e.target.checked})}),(0,$.jsx)(`span`,{}),t.name]}),(0,$.jsxs)(`div`,{className:`run-once-dialog-grid`,children:[(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Type`}),(0,$.jsxs)(`select`,{disabled:e||!t.enabled,value:t.scheduleType,onChange:e=>X(n,{scheduleType:e.target.value}),children:[(0,$.jsx)(`option`,{value:`rate`,children:`Rate`}),(0,$.jsx)(`option`,{value:`cron`,children:`Cron`}),(0,$.jsx)(`option`,{value:`once`,children:`Once`})]})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Max runs`}),(0,$.jsx)(`input`,{disabled:e||!t.enabled,inputMode:`numeric`,value:t.maxRuns??``,onChange:e=>{let t=Number(e.target.value);X(n,{maxRuns:Number.isInteger(t)&&t>0?t:null})}})]})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Expression`}),(0,$.jsx)(`input`,{disabled:e||!t.enabled,value:t.scheduleExpression,onChange:e=>X(n,{scheduleExpression:e.target.value})})]})]},t.name))]}):null,(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Budget`}),(0,$.jsx)(`input`,{disabled:e,inputMode:`decimal`,value:x,onChange:e=>S(e.target.value)})]}),L.length>0?(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:z,disabled:e,type:`checkbox`,onChange:e=>B(e.target.checked)}),(0,$.jsx)(`span`,{}),`Open preview`]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Preview port`}),(0,$.jsx)(`select`,{disabled:e||!z,value:V,onChange:e=>ce(e.target.value),children:L.map(e=>(0,$.jsx)(`option`,{value:e.port,children:e.label?`${e.label} (${e.port})`:e.port},e.port))})]})]}):null]}),(0,$.jsxs)(`div`,{className:`git-dialog-footer sandbox-start-dialog-footer`,children:[(0,$.jsx)(`button`,{className:`git-dialog-secondary`,disabled:e,type:`button`,onClick:o,children:`Cancel`}),(0,$.jsxs)(`button`,{className:`git-dialog-primary`,disabled:e||!he,title:pe?void 0:`Required sandbox secret refs are missing.`,type:`submit`,children:[(0,$.jsx)(m,{size:14}),`Start`]})]})]})})}function Ln({busy:e,projectName:t,templateManifest:n,onClose:r,onSubmit:i}){let a=(0,Q.useMemo)(()=>gn(n),[n]),o=(0,Q.useMemo)(()=>n?tn(n).filter(e=>e.kind===`action`):[],[n]),s=o[0]??null,[c,l]=(0,Q.useState)(`sandbox`),[u,d]=(0,Q.useState)(s?.name??``),[f,p]=(0,Q.useState)(()=>Object.fromEntries(a.scalarInputs.map(e=>[e.name,e.defaultValue]))),[m,h]=(0,Q.useState)(()=>Object.fromEntries(a.envInputs.map(e=>[e.name,``]))),[g,_]=(0,Q.useState)({}),y=_n(a.scalarInputs,u),b=_n(a.fileInputs,u),x=c===`sandbox`?a.envInputs:[],S=y.every(e=>!e.required||!!(f[e.name]??``).trim()),w=b.every(e=>!e.required||(g[e.name]?.length??0)>0),T=x.every(e=>!e.required||!!(m[e.name]??``).trim()),E=x.filter(e=>e.required&&!(m[e.name]??``).trim()),D=!!u&&S&&w&&T;function ee(e,t){p(n=>({...n,[e]:t}))}function te(e,t){h(n=>({...n,[e]:t}))}function O(e,t,n){let r=Array.from(n.target.files??[]);_(n=>({...n,[e]:t?r:r.slice(0,1)}))}function k(t){t.preventDefault(),D&&!e&&i({mode:c,target:u,params:En(y,f),env:c===`sandbox`?Tn(x,m):[],uploads:b.flatMap(e=>{let t=g[e.name]??[];return t.length>0?[{inputName:e.name,label:e.label,targetPath:e.targetPath,multiple:e.multiple,files:t}]:[]})})}return(0,$.jsx)(`div`,{className:`git-dialog-backdrop`,role:`presentation`,children:(0,$.jsxs)(`form`,{className:`git-dialog run-once-dialog sandbox-start-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":`Run sandbox action`,onSubmit:k,children:[(0,$.jsx)(`button`,{className:`git-dialog-close`,disabled:e,type:`button`,title:`Close`,"aria-label":`Close`,onClick:r,children:(0,$.jsx)(C,{size:15})}),(0,$.jsxs)(`div`,{className:`sandbox-start-dialog-heading`,children:[(0,$.jsx)(`div`,{className:`git-dialog-icon`,children:(0,$.jsx)(v,{size:18})}),(0,$.jsx)(`h2`,{children:`Run action`}),(0,$.jsxs)(`div`,{className:`git-dialog-row`,children:[(0,$.jsx)(`span`,{children:`Project`}),(0,$.jsx)(`strong`,{children:t})]})]}),(0,$.jsxs)(`div`,{className:`sandbox-start-dialog-body`,children:[(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Action`}),(0,$.jsx)(`select`,{disabled:e||o.length===0,value:u,onChange:e=>d(e.target.value),children:o.map(e=>(0,$.jsx)(`option`,{value:e.name,children:e.name},e.name))})]}),(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:`Run on`}),(0,$.jsxs)(`select`,{disabled:e,value:c,onChange:e=>l(e.target.value===`local`?`local`:`sandbox`),children:[(0,$.jsx)(`option`,{value:`sandbox`,children:`Hosted sandbox (start/update)`}),(0,$.jsx)(`option`,{value:`local`,children:`Local machine`})]})]}),y.map(t=>t.type===`boolean`?(0,$.jsxs)(`label`,{className:`git-dialog-toggle`,children:[(0,$.jsx)(`input`,{checked:(f[t.name]??``)===`true`,disabled:e,type:`checkbox`,onChange:e=>ee(t.name,e.target.checked?`true`:`false`)}),(0,$.jsx)(`span`,{}),t.label]},t.name):(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:t.label}),(0,$.jsx)(`input`,{disabled:e,inputMode:t.type===`number`||t.type===`integer`?`decimal`:void 0,value:f[t.name]??``,onChange:e=>ee(t.name,e.target.value)})]},t.name)),b.map(t=>(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsx)(`span`,{children:t.label}),(0,$.jsx)(`input`,{accept:t.accept||void 0,disabled:e,multiple:t.multiple,type:`file`,onChange:e=>O(t.name,t.multiple,e)})]},t.name)),x.length>0?(0,$.jsxs)(`div`,{className:`sandbox-start-env-section`,children:[(0,$.jsx)(`div`,{className:`sandbox-start-section-title`,children:`Environment`}),E.length>0?(0,$.jsxs)(`p`,{className:`sandbox-start-env-warning`,role:`status`,children:[`Required sandbox secret ref missing: `,E.map(e=>e.name).join(`, `)]}):null,x.map(t=>{let n=m[t.name]??``,r=t.required&&!n.trim(),i=`sandbox-action-env-${t.name}-description`;return(0,$.jsxs)(`label`,{className:`git-dialog-field`,children:[(0,$.jsxs)(`span`,{children:[t.name,t.required?` *`:``]}),(0,$.jsx)(`input`,{"aria-describedby":i,"aria-invalid":r,disabled:e,placeholder:`openpond://secret/...`,value:n,onChange:e=>te(t.name,e.target.value)}),(0,$.jsx)(`small`,{id:i,children:r?`Add a sandbox secret ref before running.`:t.description||`Sandbox secret ref only.`})]},t.name)})]}):null]}),(0,$.jsxs)(`div`,{className:`git-dialog-footer sandbox-start-dialog-footer`,children:[(0,$.jsx)(`button`,{className:`git-dialog-secondary`,disabled:e,type:`button`,onClick:r,children:`Cancel`}),(0,$.jsxs)(`button`,{className:`git-dialog-primary`,disabled:e||!D,title:T?void 0:`Required sandbox secret refs are missing.`,type:`submit`,children:[(0,$.jsx)(v,{size:14}),`Run`]})]})]})})}function Rn(e,t){let n=e.trim().toLowerCase().replace(/[^a-z0-9]+/g,`-`).replace(/^-+|-+$/g,``)||`agent`;return t===`cron`?`name: ${n}\nversion: 0.1.0\nuseCase: scheduled_report\nstart:\n command: pnpm report\nschedules:\n - name: daily-report\n command: pnpm report\n cron: \"0 9 * * *\"`:t===`background`?`name: ${n}\nversion: 0.1.0\nuseCase: background_worker\nstart:\n command: pnpm worker\nservices:\n - name: worker\n command: pnpm worker`:t===`resources`?`name: ${n}\nversion: 0.1.0\nuseCase: resource_profile\nresources:\n cpu: 1\n memoryGb: 2\n diskGb: 16\nstart:\n command: pnpm start`:`name: ${n}\nversion: 0.1.0\nuseCase: action\nstart:\n command: pnpm start\nactions:\n - name: hello\n command: pnpm hello`}function zn(e,t){return t||(e===`missing_config`?`${At} missing`:e===`needs_project`?`Local config is ready`:e===`needs_sync`?`Project needs manifest sync`:e===`needs_agent`?`Project is synced`:e===`ready`?`Agent is ready`:`Setup unavailable`)}function Bn(e){return e?.source===`openpond`?`OpenPond Git`:e?.source===`github`?`GitHub`:e?.source===`local_git`?`Local Git`:e?.source===`local_folder`?`Local folder`:`Workspace`}function Vn(e){let t=$n($n(e.data).remote);return(typeof t.remoteUrl==`string`?t.remoteUrl.trim():``)||null}function Hn(e){let t=$n($n(e.data).sandbox);return(typeof t.id==`string`?t.id.trim():``)||null}function Un(e){return e?typeof e.metadata?.name==`string`&&e.metadata.name.trim()?e.metadata.name.trim():e.projectId?`Project sandbox ${tr(e.id)}`:e.agentId?`Agent sandbox ${tr(e.id)}`:`Sandbox ${tr(e.id)}`:null}function Wn(e,t){return{sourceSandboxId:t,name:e.name,...e.description?{description:e.description}:{},scheduleType:e.scheduleType,scheduleExpression:e.scheduleExpression,enabled:!0,...e.timezone?{timezone:e.timezone}:{},...e.startAt?{startAt:e.startAt}:{},...e.endAt?{endAt:e.endAt}:{},...e.maxRuns===void 0?{}:{maxRuns:e.maxRuns},...e.runtimePolicy?{runtimePolicy:e.runtimePolicy}:{},target:e.target,...e.budget?{budget:e.budget}:{},...e.resources?{resources:e.resources}:{},...e.quotas?{quotas:e.quotas}:{},...e.lifecycle?{lifecycle:e.lifecycle}:{},...e.retentionPolicy?{retentionPolicy:e.retentionPolicy}:{},...e.env?{env:e.env}:{},...e.integrationLeases?{integrationLeases:e.integrationLeases}:{},metadata:e.metadata??{},managementSource:`openpond.yaml`,manifestPath:At}}function Gn(e){let t=e?.gitOwner?.trim()??``,n=e?.gitRepo?.trim()??``,r=e?.gitHost?.trim()??``;if(!t||!n||!r)return null;let i=n.endsWith(`.git`)?n:`${n}.git`;return/^https?:\/\//i.test(r)?`${r.replace(/\/+$/,``)}/${t}/${i}`:`https://${r.replace(/\/+$/,``)}/${t}/${i}`}function Kn(e,t){let n=t.trim();if(e===`github_repo`){let[e,t]=n.replace(/^https:\/\/github\.com\//i,``).replace(/^git@github\.com:/i,``).replace(/\.git$/i,``).split(`/`).filter(Boolean);return{gitHost:`github.com`,gitOwner:e??null,gitRepo:t??null,internalRepoPath:null,templateRepoUrl:null}}return e===`internal_repo`?{gitHost:`openpond.ai`,gitOwner:null,gitRepo:n.split(`/`).filter(Boolean).at(-1)??null,internalRepoPath:n||null,templateRepoUrl:null}:e===`template`?{gitHost:null,gitOwner:null,gitRepo:null,internalRepoPath:null,templateRepoUrl:n||null}:{gitHost:null,gitOwner:null,gitRepo:null,internalRepoPath:null,templateRepoUrl:null}}function qn(e,t){let n=e.trim().replace(/^\/+/,``).replace(/^workspace\//,``).replace(/\/+$/,``),r=t.trim().replace(/[/\\]+/g,`-`).replace(/[^A-Za-z0-9._-]+/g,`-`).replace(/^-+|-+$/g,``)||`upload`;return`${n||`uploads`}/${r}`}function Jn(e,t){return`OPENPOND_REPLAY_PARAMS_BASE64='${Qn({input:t})}' ${e}`}function Yn(e,t,n){return[`cd`,Xn(e),`&&`,`openpond`,`sandbox-template`,t,`--file`,At,`--target`,Xn(n)].join(` `)}function Xn(e){return`'${e.replace(/'/g,`'\\''`)}'`}function Zn(e){return new Promise((t,n)=>{let r=new FileReader;r.onload=()=>{let[,e=``]=(typeof r.result==`string`?r.result:``).split(`,`,2);t(e)},r.onerror=()=>n(r.error??Error(`Failed to read file`)),r.readAsDataURL(e)})}function Qn(e){let t=JSON.stringify(e),n=new TextEncoder().encode(t),r=``;for(let e of n)r+=String.fromCharCode(e);return window.btoa(r)}function $n(e){return e&&typeof e==`object`&&!Array.isArray(e)?e:{}}function er(e){return e instanceof Error?e.message:String(e)}function tr(e){return e.length<=10?e:`${e.slice(0,6)}...${e.slice(-4)}`}async function nr(e){e&&(await e(`sandbox_preserve_source`),await e(`sandbox_stop`))}function rr(e){return{...e.teamId?{teamId:e.teamId}:{},...e.projectId?{projectId:e.projectId}:{},runtime:{runtimeId:e.runtimeId},visibility:`team`,budget:{maxUsd:`0.05`},quotas:{idleTimeoutSeconds:900,maxSpendUsd:`0.05`},metadata:{source:`openpond-app-environment-menu-sandbox-resume`,resumeSandboxId:e.id,previousState:e.state}}}function ir({canCreateSandboxProject:e,canInitGit:t,defaultSandboxRepoUrl:n,gitWorkspace:r,hasRemote:i,isProjectWorkspace:a,isSandboxWorkspace:o,managed:s,onOpenCommitDialog:c,onRunTerminalCommand:l,onWorkspaceToolAction:u,projectSandboxTemplate:d,projectSandboxTemplateValid:f,sandboxTemplateActionTargetCount:p,sandboxTemplateServiceTargets:m,sandboxResumeTarget:g,selectedApp:_,selectedProject:C,setSandboxCreateDialogOpen:w,setSandboxRunActionDialogOpen:T,workspaceBusyValue:E,workspaceReady:D,workspaceState:ee}){let te=[{icon:(0,$.jsx)(F,{size:14}),label:`Initialize Git`,disabled:s||!t||E||!D||!u,onSelect:()=>u?.(`git_init`)},{icon:(0,$.jsx)(h,{size:14}),label:`Commit changes`,disabled:s||!r||E||!D||!ee?.dirty||!c,onSelect:()=>c?.(`commit`)},{icon:(0,$.jsx)(S,{size:14}),label:`Push branch`,disabled:s||!r||E||!D||!i||!u,onSelect:()=>u?.(`git_push`)},{icon:(0,$.jsx)(y,{size:14}),label:`Fetch remote`,disabled:s||!r||E||!D||!i||!u,onSelect:()=>u?.(`git_fetch`)},{icon:(0,$.jsx)(re,{size:14}),label:`Create PR`,disabled:!0,onSelect:()=>void 0}],O=[...d?[]:[{icon:(0,$.jsx)(j,{size:14}),label:`Create sandbox template`,disabled:s||E||!D||!u,onSelect:()=>u?.(`create_sandbox_template_scaffold`)}],{icon:(0,$.jsx)(ie,{size:14}),label:`Validate ${At}`,disabled:s||E||!D||!u,onSelect:()=>u?.(`validate_sandbox_template`)},{icon:(0,$.jsx)(fn,{size:14}),label:`Build template`,disabled:s||E||!D||!u,onSelect:()=>u?.(`build_sandbox_template`)},{icon:(0,$.jsx)(v,{size:14}),label:`Run start locally`,disabled:s||E||!D||!u,onSelect:()=>u?.(`run_sandbox_template`,{mode:`local`,target:`start`})},{icon:(0,$.jsx)(v,{size:14}),label:`Run action`,disabled:s||E||!D||!f||p===0,onSelect:()=>T(!0)},...m.map(e=>({icon:(0,$.jsx)(x,{size:14}),label:`Dev ${e.name} locally`,disabled:s||E||!D||!f||!C?.sandboxTemplate?.rootPath||!l,onSelect:()=>l?.(Yn(C?.sandboxTemplate?.rootPath??``,`dev`,e.name))})),{icon:(0,$.jsx)(j,{size:14}),label:`Start sandbox`,disabled:s||E||!D||!e,onSelect:()=>w(!0)}],k=[{icon:(0,$.jsx)(y,{size:14}),label:`Sandbox status`,disabled:E||!u,onSelect:()=>u?.(`sandbox_status`)},{icon:(0,$.jsx)(v,{size:14}),label:`Resume sandbox`,disabled:E||!u||!g?.runtimeId||g.state===`running`||g.state===`creating`,onSelect:()=>g?.runtimeId?u?.(`sandbox_create`,rr(g)):void 0},{icon:(0,$.jsx)(ae,{size:14}),label:`Sandbox logs`,disabled:E||!u,onSelect:()=>u?.(`sandbox_logs`)},{icon:(0,$.jsx)(ie,{size:14}),label:`Receipts`,disabled:E||!u,onSelect:()=>u?.(`sandbox_receipts`)},{icon:(0,$.jsx)(P,{size:14}),label:`Export patch`,disabled:E||!u,onSelect:()=>u?.(`sandbox_git_export_patch`)},{icon:(0,$.jsx)(S,{size:14}),label:`Apply locally`,disabled:E||!u,onSelect:()=>u?.(`sandbox_git_apply_patch_local`)},{icon:(0,$.jsx)(b,{size:14}),label:`Checkpoint and stop`,disabled:E||!u,onSelect:()=>nr(u)}];return{gitActionItems:te,sandboxActionItems:o?k:a?O:[{icon:(0,$.jsx)(j,{size:14}),label:n?`Create sandbox from repo`:`Create sandbox`,disabled:E||!u,onSelect:()=>u?.(`sandbox_create`,{...n?{repo:n}:{},visibility:`team`,budget:{maxUsd:`0.05`},quotas:{maxSpendUsd:`0.05`},metadata:{source:`openpond-app-environment-menu-sandbox`,..._?.name?{appName:_.name}:{}}})},{icon:(0,$.jsx)(y,{size:14}),label:`List templates`,disabled:E||!u,onSelect:()=>u?.(`sandbox_templates`)}]}}function ar({busy:e,error:t,projectName:n,onClose:r,onSubmit:i}){let[a,o]=(0,Q.useState)(`action`),[s,c]=(0,Q.useState)(At),l=n.trim()||`local-agent`;return(0,$.jsxs)(lr,{title:`Add Agent config`,busy:e,error:t,onClose:r,children:[(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Template preset`}),(0,$.jsxs)(`select`,{value:a,onChange:e=>o(e.target.value),disabled:e,children:[(0,$.jsx)(`option`,{value:`action`,children:`Action`}),(0,$.jsx)(`option`,{value:`cron`,children:`Cron`}),(0,$.jsx)(`option`,{value:`background`,children:`Background worker`}),(0,$.jsx)(`option`,{value:`resources`,children:`Resource profile`})]})]}),(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Manifest path`}),(0,$.jsx)(`input`,{value:s,onChange:e=>c(e.target.value),disabled:e})]}),(0,$.jsx)(`pre`,{children:Rn(l,a)}),(0,$.jsx)(ur,{busy:e,actionLabel:`Write config`,canSubmit:!!s.trim(),onClose:r,onSubmit:()=>i({name:l,preset:a,manifestPath:s.trim()})})]})}function or({busy:e,defaultBranch:t,defaultTeamId:n,error:r,projectName:i,sourceIdentity:a,onClose:o,onSubmit:s}){let c=n,[l,u]=(0,Q.useState)(i),[d,f]=(0,Q.useState)(/github\.com[:/]/i.test(a)?`github_repo`:`manual`),[p,m]=(0,Q.useState)(a),[h,g]=(0,Q.useState)(t||`main`),[_,v]=(0,Q.useState)(!0);return(0,$.jsxs)(lr,{title:`Connect Project`,busy:e,error:r,onClose:o,children:[(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Project name`}),(0,$.jsx)(`input`,{value:l,onChange:e=>u(e.target.value),disabled:e})]}),(0,$.jsxs)(`div`,{className:`agent-setup-two-col`,children:[(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Source type`}),(0,$.jsxs)(`select`,{value:d,onChange:e=>f(e.target.value),disabled:e,children:[(0,$.jsx)(`option`,{value:`manual`,children:`Manual`}),(0,$.jsx)(`option`,{value:`github_repo`,children:`GitHub repo`}),(0,$.jsx)(`option`,{value:`internal_repo`,children:`Internal repo`}),(0,$.jsx)(`option`,{value:`template`,children:`Template`})]})]}),(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Default branch`}),(0,$.jsx)(`input`,{value:h,onChange:e=>g(e.target.value),disabled:e})]})]}),(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Source identity`}),(0,$.jsx)(`input`,{value:p,onChange:e=>m(e.target.value),disabled:e})]}),(0,$.jsxs)(`label`,{className:`agent-setup-check`,children:[(0,$.jsx)(`input`,{type:`checkbox`,checked:_,onChange:e=>v(e.target.checked),disabled:e}),(0,$.jsx)(`span`,{children:`Sync now`})]}),(0,$.jsx)(ur,{busy:e,actionLabel:_?`Connect and sync`:`Connect Project`,canSubmit:!!(l.trim()&&c),onClose:o,onSubmit:()=>s({teamId:c,projectName:l.trim(),sourceType:d,sourceIdentity:p.trim(),defaultBranch:h.trim(),syncNow:_})})]})}function sr({busy:e,defaultName:t,error:n,onClose:r,onSubmit:i}){let[a,o]=(0,Q.useState)(t),[s,c]=(0,Q.useState)(!0);return(0,$.jsxs)(lr,{title:`Create Agent`,busy:e,error:n,onClose:r,children:[(0,$.jsxs)(`label`,{children:[(0,$.jsx)(`span`,{children:`Agent name`}),(0,$.jsx)(`input`,{value:a,onChange:e=>o(e.target.value),disabled:e})]}),(0,$.jsx)(`div`,{className:`agent-setup-summary`,children:`Entire manifest · Manual trigger · Package defaults`}),(0,$.jsxs)(`label`,{className:`agent-setup-check`,children:[(0,$.jsx)(`input`,{type:`checkbox`,checked:s,onChange:e=>c(e.target.checked),disabled:e}),(0,$.jsx)(`span`,{children:`Create and test run`})]}),(0,$.jsx)(ur,{busy:e,actionLabel:`Create Agent`,canSubmit:!!a.trim(),onClose:r,onSubmit:()=>i({agentName:a.trim(),createTestRun:s})})]})}function cr({actionLabel:e,busy:t,error:n,summary:r,title:i,onClose:a,onSubmit:o}){return(0,$.jsxs)(lr,{title:i,busy:t,error:n,onClose:a,children:[(0,$.jsx)(`div`,{className:`agent-setup-summary`,children:r}),(0,$.jsx)(ur,{busy:t,actionLabel:e,canSubmit:!0,onClose:a,onSubmit:o})]})}function lr({busy:e,children:t,error:n,title:r,onClose:i}){return w(n),(0,$.jsx)(`div`,{className:`agent-setup-dialog-backdrop`,role:`presentation`,onMouseDown:i,children:(0,$.jsxs)(`section`,{className:`agent-setup-dialog`,role:`dialog`,"aria-modal":`true`,"aria-label":r,onMouseDown:e=>e.stopPropagation(),children:[(0,$.jsxs)(`header`,{children:[(0,$.jsx)(`h3`,{children:r}),(0,$.jsx)(`button`,{type:`button`,disabled:e,onClick:i,children:`Close`})]}),(0,$.jsx)(`div`,{className:`agent-setup-fields`,children:t})]})})}function ur({actionLabel:e,busy:t,canSubmit:n,onClose:r,onSubmit:i}){return(0,$.jsxs)(`div`,{className:`agent-setup-dialog-actions`,children:[(0,$.jsx)(`button`,{type:`button`,disabled:t,onClick:r,children:`Cancel`}),(0,$.jsx)(`button`,{type:`button`,disabled:t||!n,onClick:i,children:t?`Working`:e})]})}function dr(e){return e.split(`
35
- `).filter(e=>e.trim()).length}function fr(e){return e.status===`loading`?`Checking sandbox changes`:e.status===`error`?`Sandbox status unavailable`:e.status===`ready`?e.changedFiles===0?`Sandbox clean`:`${e.changedFiles} sandbox changed ${e.changedFiles===1?`file`:`files`}`:`Sandbox changes unknown`}function pr(e){return e>0&&e%3600==0?`${e/3600} hr`:e>0&&e%60==0?`${e/60} min`:`${e} sec`}function mr(e){let t=e?.trim();if(!t)return null;if(t.startsWith(`$`))return t;let n=Number(t);if(!Number.isFinite(n))return`$${t}`;if(n===0)return`$0`;let r=n>=1?2:4;return`$${n.toFixed(r).replace(/0+$/,``).replace(/\.$/,``)}`}function hr(e){return e.receipts.slice().sort((e,t)=>Date.parse(t.createdAt)-Date.parse(e.createdAt))[0]??null}function gr(e){let t=hr(e);if(t){let n=mr(t.totalUsd);if(t.reason===`idle_timeout`)return n?`stopped by idle timeout · charged ${n}`:`stopped by idle timeout`;if(t.reason===`budget_exhausted`)return n?`budget exhausted · charged ${n}`:`budget exhausted`;if(e.state!==`running`)return n?`receipt ${t.status} · charged ${n}`:`receipt ${t.status}`}if(e.reservation.status===`reserved`){let t=mr(e.reservation.reservedUsd);return t?`reservation active ${t}`:`reservation active`}if(e.reservation.status===`captured`){let t=mr(e.reservation.capturedUsd);return t?`captured ${t}`:`captured`}return e.reservation.status===`released`?`reservation released`:null}function _r(e){if(!e)return`Loading sandbox policy`;let t=typeof e.quotas?.idleTimeoutSeconds==`number`&&e.quotas.idleTimeoutSeconds>0?e.quotas.idleTimeoutSeconds:null,n=mr(e.quotas?.maxSpendUsd??e.budget.maxUsd),r=[t?`Auto-stop after ${pr(t)} idle`:`Auto-stop policy unavailable`];n&&r.push(`cap ${n}`);let i=gr(e);return i&&r.push(i),r.join(` · `)}function vr({mode:e,busy:t,workspaceState:n,workspaceId:r,workspaceKind:i,selectedApp:a,selectedProject:o,workspaceBusy:s,defaultTeamId:c,workspaceDiff:l,managedWorkspace:u,showDiffControls:d,diffPanelOpen:f,onToggleDiffPanel:m,onRunTerminalCommand:h,onWorkspaceToolAction:v,onOpenCommitDialog:y,onWorkspaceBranchChange:b,onWorkspaceBranchCreate:x,connection:S,onBootstrap:C,onOpenSandboxWorkspace:w}){let[E,A]=(0,Q.useState)(!1),[P,F]=(0,Q.useState)(!1),[re,ie]=(0,Q.useState)(``),[ae,I]=(0,Q.useState)(!1),[oe,se]=(0,Q.useState)(!1),[L,R]=(0,Q.useState)(null),[z,B]=(0,Q.useState)(!1),[V,ce]=(0,Q.useState)(!1),[H,U]=(0,Q.useState)(null),[W,le]=(0,Q.useState)([]),[ue,G]=(0,Q.useState)([]),[de,K]=(0,Q.useState)([]),[fe,q]=(0,Q.useState)({status:`idle`,changedFiles:0,error:null}),[J,pe]=(0,Q.useState)(null),me=(0,Q.useRef)(null),he=(0,Q.useRef)(null),ge=!!n?.initialized,Y=!!s,_e=!!u,ve=i===`local_project`||!!o,X=i===`sandbox`||i===`sandbox_template`,ye=X&&r?.trim()||null,be=X?0:l?.additions??0,xe=X?0:l?.deletions??0,Se=X?fe.changedFiles:l?.filesChanged??n?.changedFilesCount??0,Ce=Se>0,we=X?fr(fe):Ce?`${Se} changed ${Se===1?`file`:`files`}`:`No changes`,Te=X?_r(J):``,Ee=n?.source!==`local_folder`,De=ve&&n?.source===`local_folder`,Oe=!!n?.remoteUrl,ke=n?.remoteUrl?.trim()??``,Ae=Gn(a??null),je=!!o?.sandboxTemplate?.detected,Me=!!(o?.sandboxTemplate?.valid&&o.sandboxTemplate.normalizedManifest),Ne=o?.sandboxTemplate?.normalizedManifest??null,Pe=Ne?tn(Ne):[],Fe=Pe.filter(e=>e.kind===`action`),Ie=Pe.filter(e=>e.kind===`service`),Le=!!o?.linkedOpenPondApp?.appId,Z=N({localProject:o,organizations:W,projects:ue,agents:de,defaultTeamId:c}),Re=O(W,c),ze=ve&&je&&!Le,Be=ve&&je&&Me&&(ze||!!ke),Ve=n?Array.from(new Set([n.currentBranch,...n.branches].filter(e=>!!e))):[],He=n?.initialized?n.currentBranch??Ve[0]??`No branch`:`Not synced`,Ue=Bn(n),We=(0,Q.useMemo)(()=>{let e=re.trim().toLowerCase();return e?Ve.filter(t=>t.toLowerCase().includes(e)):Ve},[Ve,re]);(0,Q.useEffect)(()=>{if(!E)return;function e(e){me.current?.contains(e.target)||A(!1)}function t(e){e.key===`Escape`&&A(!1)}return document.addEventListener(`pointerdown`,e),document.addEventListener(`keydown`,t),()=>{document.removeEventListener(`pointerdown`,e),document.removeEventListener(`keydown`,t)}},[E]),(0,Q.useEffect)(()=>{E&&P&&he.current?.focus()},[P,E]),(0,Q.useEffect)(()=>{if(!S||!E||!ve)return;let e=!1;return ce(!0),U(null),k.organizations(S).then(async t=>{if(e)return;let n=t.organizations.map(T).filter(e=>!!e).filter(e=>e.status===`active`);le(n);let r=O(n,c);if(!r)return;let[i,a]=await Promise.all([k.listSandboxProjects(S,{teamId:r.teamId}),k.listSandboxAgents(S,{teamId:r.teamId})]);e||(G(i.projects),K(a.agents))}).catch(t=>{e||U(er(t))}).finally(()=>{e||ce(!1)}),()=>{e=!0}},[S,c,ve,E]),(0,Q.useEffect)(()=>{if(!E||!X||!S||!ye){q({status:`idle`,changedFiles:0,error:null});return}let e=!1;return q(e=>({status:`loading`,changedFiles:e.changedFiles,error:null})),k.sandboxGitStatus(S,ye).then(t=>{e||q({status:`ready`,changedFiles:dr(t.status?.porcelain??``),error:null})}).catch(t=>{e||q({status:`error`,changedFiles:0,error:er(t)})}),()=>{e=!0}},[S,X,E,ye]),(0,Q.useEffect)(()=>{if(!E||!X||!S||!ye){pe(null);return}let e=!1;return k.sandbox(S,ye).then(t=>{e||pe(t.sandbox)}).catch(()=>{e||pe(null)}),()=>{e=!0}},[S,X,E,ye]);async function Ge(e){if(!v)return;let t=e.openPreview?mn():null,r=e.repoUrl||ke;if(ze){if(Oe&&!window.confirm(`Replace the current origin remote with a new OpenPond repo before starting the sandbox?`)){hn(t,null);return}let i=await v(`publish_openpond_repo`,{replaceOrigin:Oe,...n?.dirty?{commitDirty:!0,commitMessage:e.commitMessage}:{}});if(!i?.ok){hn(t,null);return}r=Vn(i)??r}else if(Ee&&Oe&&(n?.dirty&&!(await v(`git_commit`,{message:e.commitMessage,includeUnstaged:!0,runChecks:!1}))?.ok||!(await v(`git_push`,{runChecks:!1}))?.ok)){hn(t,null);return}if(!r){hn(t,null);return}let i=await v(`sandbox_create`,{repo:r,visibility:`team`,resources:e.resources,budget:{maxUsd:e.budgetUsd},quotas:{idleTimeoutSeconds:900,maxSpendUsd:e.budgetUsd},...e.env.length>0?{env:e.env}:{},...e.volumes.length>0?{volumes:e.volumes}:{},metadata:{source:`openpond-app-local-sandbox-template-start`,...e.entrypointName?{entrypointName:e.entrypointName}:{},...o?.id?{localProjectId:o.id}:{},...o?.name?{projectName:o.name}:{},...Ne?{templateName:Ne.name,templateVersion:Ne.version,templateUseCase:Ne.useCase,templateTargets:Pe.map(e=>({name:e.name,kind:e.kind}))}:{}},...e.openPreview&&e.previewPort?{previewPort:e.previewPort,previewLabel:e.previewLabel,previewAccess:e.previewAccess,previewAutoStart:!0}:{}}),a=pn(i);if(e.openPreview&&hn(t,a),!i?.ok)return;let s=Hn(i);for(let e of Ne?.setup.commands??[])if(!(await v(`sandbox_exec`,{command:e,timeoutSeconds:900}))?.ok)return;let c={};for(let t of e.uploads){let e=[];for(let n of t.files){let r=qn(t.targetPath,n.name);if(!(await v(`sandbox_upload_file`,{path:r,contentsBase64:await Zn(n)}))?.ok)return;e.push(r)}c[t.inputName]=t.multiple?e:e[0]??``}if((await v(`sandbox_exec`,{command:Jn(e.command,{...e.params,...c}),timeoutSeconds:e.timeoutSeconds??900}))?.ok){if(s){for(let t of e.schedules)if(!(await v(`sandbox_schedule_create`,Wn(t,s)))?.ok)return}I(!1)}}async function Ke(e){if(!v)return;let t={},n=[];for(let r of e.uploads){let e=[];for(let t of r.files){let i=qn(r.targetPath,t.name),a=await Zn(t);n.push({path:i,contentsBase64:a}),e.push(i)}t[r.inputName]=r.multiple?e:e[0]??``}se(!1),await v(`run_sandbox_template`,{mode:e.mode,target:e.target,params:{...e.params,...t},...e.env.length>0?{env:e.env}:{},...n.length>0?{uploads:n}:{}})}async function qe(e=Re?.teamId){if(!S||!e)return;let[t,n]=await Promise.all([k.listSandboxProjects(S,{teamId:e}),k.listSandboxAgents(S,{teamId:e})]);G(t.projects),K(n.agents)}async function Je(e){if(v&&o){B(!0),U(null);try{if(!(await v(`create_sandbox_template_scaffold`,{manifestOnly:!0,manifestContent:Rn(e.name,e.preset),name:e.name,preset:e.preset,manifestPath:e.manifestPath}))?.ok)return;R(null)}catch(e){U(er(e))}finally{B(!1)}}}async function Ye(e){if(!S||!o||!C)return;let t=e.teamId;B(!0),U(null);try{let n=Kn(e.sourceType,e.sourceIdentity),r=(await k.upsertSandboxProject(S,{teamId:t,name:e.projectName,sourceType:e.sourceType,normalizedSourceIdentity:e.sourceIdentity||e.projectName,defaultBranch:e.defaultBranch||null,gitProvider:e.sourceType===`github_repo`?`github`:null,gitHost:n.gitHost,gitOwner:n.gitOwner,gitRepo:n.gitRepo,internalRepoPath:n.internalRepoPath,templateRepoUrl:n.templateRepoUrl,sourceConfig:{sourceType:e.sourceType,sourceValue:e.sourceIdentity||e.projectName},metadata:{source:`openpond-app-local-project-agent-setup`}})).project;e.syncNow&&(r=(await k.syncSandboxProject(S,r.id,{teamId:t})).project),C((await k.updateLocalProjectAgentSetup(S,o.id,{linkedSandboxProject:{teamId:t,projectId:r.id,projectSlug:r.slug,projectName:r.name,sourceRepoUrl:e.sourceIdentity||null,defaultBranch:r.defaultBranch,lastUploadedCommit:null,lastUploadTransport:null,manifestPath:r.sandboxManifestPath,manifestHash:r.sandboxManifestHash,syncedAt:r.sandboxManifestSyncedAt,linkedAt:new Date().toISOString()}})).bootstrap),G(e=>[r,...e.filter(e=>e.id!==r.id)]),R(null)}catch(e){U(er(e))}finally{B(!1)}}async function Xe(){if(!S||!o||!Z.project||!C)return;let e=Z.project;B(!0),U(null);try{let t=(await k.syncSandboxProject(S,e.id,{teamId:e.teamId})).project;C((await k.updateLocalProjectAgentSetup(S,o.id,{linkedSandboxProject:{teamId:t.teamId,projectId:t.id,projectSlug:t.slug,projectName:t.name,sourceRepoUrl:n?.remoteUrl??o.linkedSandboxProject?.sourceRepoUrl??null,defaultBranch:t.defaultBranch,lastUploadedCommit:o.linkedSandboxProject?.lastUploadedCommit??null,lastUploadTransport:o.linkedSandboxProject?.lastUploadTransport??null,manifestPath:t.sandboxManifestPath,manifestHash:t.sandboxManifestHash,syncedAt:t.sandboxManifestSyncedAt,linkedAt:o.linkedSandboxProject?.linkedAt??new Date().toISOString()}})).bootstrap),G(e=>[t,...e.filter(e=>e.id!==t.id)]),R(null)}catch(e){U(er(e))}finally{B(!1)}}async function Ze(e){if(!S||!o||!Z.project||!C)return;let t=Z.project;B(!0),U(null);try{let n=(await k.upsertSandboxAgent(S,{teamId:t.teamId,projectId:t.id,name:e.agentName,selectedEntrypoint:{scope:`entire_manifest`,name:null},triggerType:`manual`,backgroundTaskPolicy:{},defaultWorkflowMode:`attempt`,defaultResourcePolicy:{},metadata:{source:`openpond-app-local-project-agent-setup`}})).agent,r=null,i=null;if(e.createTestRun){let e=await k.runSandboxAgent(S,n.id,{teamId:t.teamId,triggerType:`manual`,metadata:{source:`openpond-app-local-project-agent-setup`}});r=e.sandbox??null,i=r?.id??e.run.sandboxId??null}C((await k.updateLocalProjectAgentSetup(S,o.id,{preferredSandboxAgentId:n.id})).bootstrap),K(e=>[n,...e.filter(e=>e.id!==n.id)]),R(null),i&&await w?.({sandboxId:i,name:Un(r)??`${n.name} sandbox`})}catch(e){U(er(e))}finally{B(!1)}}async function Qe(){if(S&&Z.agent){B(!0),U(null);try{let e=await k.runSandboxAgent(S,Z.agent.id,{teamId:Z.agent.teamId,triggerType:`manual`,metadata:{source:`openpond-app-local-project-agent-setup`}});await qe(Z.agent.teamId),R(null);let t=e.sandbox?.id??e.run.sandboxId;t&&await w?.({sandboxId:t,name:Un(e.sandbox??null)??`${Z.agent.name} sandbox`})}catch(e){U(er(e))}finally{B(!1)}}}let{gitActionItems:$e,sandboxActionItems:et}=ir({busy:t,canCreateSandboxProject:Be,canInitGit:De,defaultSandboxRepoUrl:Ae??``,gitWorkspace:Ee,hasRemote:Oe,isProjectWorkspace:ve,isSandboxWorkspace:X,managed:_e,onOpenCommitDialog:y,onRunTerminalCommand:h,onWorkspaceToolAction:v,projectSandboxTemplate:je,projectSandboxTemplateValid:Me,sandboxTemplateActionTargetCount:Fe.length,sandboxTemplateServiceTargets:Ie,sandboxResumeTarget:J?{id:J.id,runtimeId:J.runtimeId??null,teamId:J.teamId??null,projectId:J.projectId??null,state:J.state??null}:null,selectedApp:a,selectedProject:o,setSandboxCreateDialogOpen:I,setSandboxRunActionDialogOpen:se,workspaceBusyValue:Y,workspaceReady:ge,workspaceState:n});if(!n)return null;function tt(e){A(!1),e.onSelect()}return(0,$.jsxs)($.Fragment,{children:[(0,$.jsxs)(`div`,{className:`workspace-environment-menu ${e===`dock`?`open-up`:``} ${e===`topbar`?`topbar`:``}`,ref:me,children:[(0,$.jsx)(`button`,{type:`button`,className:`environment-info-button ${e===`topbar`?`titlebar-icon`:`composer-icon`} ${E?`active`:``}`,title:`Environment`,"data-tooltip":`Environment`,"aria-label":`Environment`,"aria-haspopup":`menu`,"aria-expanded":E,onClick:()=>A(e=>!e),children:(0,$.jsx)(g,{size:16})}),E&&(0,$.jsxs)(`div`,{className:`environment-popover`,role:`menu`,"aria-label":`Environment`,children:[(0,$.jsx)(`div`,{className:`environment-popover-header`,children:(0,$.jsx)(`span`,{children:`Environment`})}),ve&&o?(0,$.jsxs)(`button`,{type:`button`,className:`environment-row`,disabled:V||!Z.canAct||z,title:V?`Loading Agent setup state`:Z.reason??`Set up this project as an Agent`,onClick:()=>{!V&&Z.canAct&&(Z.state===`missing_config`&&R(`config`),Z.state===`needs_project`&&R(`connect`),Z.state===`needs_sync`&&R(`sync`),Z.state===`needs_agent`&&R(`agent`),Z.state===`ready`&&R(`run`),A(!1))},children:[(0,$.jsx)(j,{size:15}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:`Agent setup`}),(0,$.jsx)(`small`,{children:V?`Loading setup state`:zn(Z.state,Z.reason)})]}),(0,$.jsx)(`span`,{className:`environment-row-action`,children:z?`Working`:V?`Loading`:Z.actionLabel})]}):null,(0,$.jsxs)(`button`,{type:`button`,className:`environment-row ${f?`active`:``}`,disabled:!d||!m,onClick:()=>{A(!1),m?.()},children:[(0,$.jsx)(te,{size:15}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:`Changes`}),(0,$.jsx)(`small`,{children:we})]}),!X&&(Ce||l)&&(0,$.jsxs)(`span`,{className:`environment-change-counts`,children:[(0,$.jsxs)(`span`,{className:`diff-addition`,children:[`+`,be]}),(0,$.jsxs)(`span`,{className:`diff-deletion`,children:[`-`,xe]})]})]}),(0,$.jsxs)(`div`,{className:`environment-row static`,children:[(0,$.jsx)(_,{size:15}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:Ue}),(0,$.jsx)(`small`,{children:n.repoPath||n.workspacePath})]})]}),X?(0,$.jsxs)(`div`,{className:`environment-row static`,title:Te,children:[(0,$.jsx)(ee,{size:15}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:`Idle cleanup`}),(0,$.jsx)(`small`,{children:Te})]})]}):null,(0,$.jsxs)(`button`,{type:`button`,className:`environment-row ${P?`active`:``}`,disabled:_e||!Ee||t||Y||!n.initialized,"aria-expanded":P,onClick:()=>F(e=>!e),children:[(0,$.jsx)(M,{size:15}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:He}),(0,$.jsx)(`small`,{children:_e?`Managed workspace`:Ee?`Branch`:`Git not initialized`})]}),(0,$.jsx)(p,{size:13})]}),P&&(0,$.jsxs)(`div`,{className:`environment-branch-panel`,children:[(0,$.jsxs)(`label`,{className:`environment-branch-search`,children:[(0,$.jsx)(D,{size:13}),(0,$.jsx)(`input`,{ref:he,value:re,placeholder:`Search branches`,onChange:e=>ie(e.target.value)})]}),(0,$.jsxs)(`div`,{className:`environment-branch-list`,children:[We.map(e=>{let r=e===n.currentBranch,i=t||n.dirty&&!r;return(0,$.jsxs)(`button`,{type:`button`,className:r?`selected`:``,disabled:i,role:`menuitemradio`,"aria-checked":r,title:i&&!r?`Commit or discard local changes before switching branches.`:e,onClick:()=>{A(!1),r||b?.(e)},children:[(0,$.jsx)(M,{size:13}),(0,$.jsxs)(`span`,{children:[(0,$.jsx)(`strong`,{children:e}),r&&n.dirty&&(0,$.jsxs)(`small`,{children:[`Uncommitted: `,n.changedFilesCount,` `,n.changedFilesCount===1?`file`:`files`]})]}),r&&(0,$.jsx)(ne,{size:14})]},e)}),We.length===0&&(0,$.jsx)(`div`,{className:`environment-branch-empty`,children:`No branches found`})]}),(0,$.jsxs)(`button`,{type:`button`,className:`environment-branch-create`,disabled:t||!n.initialized||!x,onClick:()=>{A(!1),x?.()},children:[(0,$.jsx)(M,{size:14}),(0,$.jsx)(`span`,{children:`Create branch`})]})]}),(0,$.jsx)(`div`,{className:`environment-section-title`,children:`Git`}),$e.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`environment-action`,disabled:e.disabled,onClick:()=>tt(e),children:[e.icon,(0,$.jsx)(`span`,{children:e.label})]},e.label)),(0,$.jsx)(`div`,{className:`environment-section-title`,children:`Sandbox`}),et.map(e=>(0,$.jsxs)(`button`,{type:`button`,className:`environment-action`,disabled:e.disabled,onClick:()=>tt(e),children:[e.icon,(0,$.jsx)(`span`,{children:e.label})]},e.label))]})]}),ae&&(0,$.jsx)(In,{busy:Y,commitBeforeCreate:(ze||Ee&&Oe)&&!!n?.dirty,defaultRepoUrl:ke,projectName:o?.name??`sandbox template`,templateManifest:o?.sandboxTemplate?.normalizedManifest??null,uploadBeforeCreate:ze,onClose:()=>{Y||I(!1)},onSubmit:e=>void Ge(e)}),oe&&(0,$.jsx)(Ln,{busy:Y,projectName:o?.name??`sandbox template`,templateManifest:o?.sandboxTemplate?.normalizedManifest??null,onClose:()=>{Y||se(!1)},onSubmit:e=>void Ke(e)}),L===`config`&&o?(0,$.jsx)(ar,{busy:z,error:H,projectName:o.name,onClose:()=>!z&&R(null),onSubmit:e=>void Je(e)}):null,L===`connect`&&o&&Re?(0,$.jsx)(or,{busy:z,error:H,defaultTeamId:Re.teamId,projectName:o.name,sourceIdentity:n?.remoteUrl??``,defaultBranch:n?.currentBranch??`main`,onClose:()=>!z&&R(null),onSubmit:e=>void Ye(e)}):null,L===`sync`&&Z.project?(0,$.jsx)(cr,{busy:z,error:H,title:`Sync Project`,actionLabel:`Sync Project`,summary:`${Z.project.name} · ${Z.project.sandboxManifestPath??`openpond.yaml`}`,onClose:()=>!z&&R(null),onSubmit:()=>void Xe()}):null,L===`agent`&&Z.project?(0,$.jsx)(sr,{busy:z,error:H,defaultName:`${o?.name??Z.project.name} Agent`,onClose:()=>!z&&R(null),onSubmit:e=>void Ze(e)}):null,L===`run`&&Z.agent?(0,$.jsx)(cr,{busy:z,error:H,title:`Run Agent`,actionLabel:`Run Agent`,summary:Z.agent.name,onClose:()=>!z&&R(null),onSubmit:()=>void Qe()}):null]})}export{vr as WorkspaceEnvironmentMenu};
@@ -1 +0,0 @@
1
- var e=`Couldn’t connect to OpenPond.`,t={error:null,outage:0,recovery:0},n=new Map;function r(e){let r=JSON.stringify([e.serverUrl.replace(/\/$/,``),e.token]),i=n.get(r);return i||(i={status:t,listeners:new Set},n.set(r,i)),i}function i(e){return e?r(e).status:t}function a(e,t){if(!e)return()=>{};let n=r(e);return n.listeners.add(t),()=>{n.listeners.delete(t)}}function o(t,n=i(t).recovery){let a=r(t);a.status.error||n!==a.status.recovery||(a.status={...a.status,error:e,outage:a.status.outage+1},a.listeners.forEach(e=>e()))}function s(e){let t=r(e);t.status.error&&(t.status={...t.status,error:null,recovery:t.status.recovery+1},t.listeners.forEach(e=>e()))}var c=class extends Error{constructor(t){super(e,{cause:t}),this.name=`ConnectionRequestError`}},l=class extends Error{status;constructor(e,t){super(e),this.status=t,this.name=`ApiRequestError`}};async function u(e,t,n){let r=new Headers(n?.headers);r.set(`Authorization`,`Bearer ${e.token}`);let a=i(e).recovery;try{return await fetch(`${e.serverUrl}${t}`,{...n,headers:r})}catch(t){throw n?.signal?.aborted||t instanceof Error&&t.name===`AbortError`?t:(o(e,a),new c(t))}}function d(e={}){let t=new URLSearchParams;return e.teamId&&t.set(`teamId`,e.teamId),e.projectId&&t.set(`projectId`,e.projectId),e.agentId&&t.set(`agentId`,e.agentId),t}var f=new WeakMap,p=new WeakMap,m=new WeakMap,h=0;async function g(e,t,n){if(t===`/v1/preferences`&&typeof n?.body==`string`){let r=(m.get(e)??Promise.resolve()).catch(()=>void 0).then(()=>_(e,t,n));m.set(e,r);try{return await r}finally{m.get(e)===r&&m.delete(e)}}return _(e,t,n)}async function _(e,t,n){let r=++h;if(t===`/v1/preferences`&&typeof n?.body==`string`){let t=f.get(e);if(!t)throw Error(`Reload settings before saving so changes can be checked against the current file.`);n={...n,body:JSON.stringify({expectedRevision:t,...JSON.parse(n.body)})}}let a=new Headers(n?.headers);a.set(`Content-Type`,`application/json`);let s=i(e).recovery,d=await u(e,t,{...n,headers:a});if(!d.ok){let e=await d.json().catch(()=>({})),t=e&&typeof e==`object`?e.error:void 0,n=typeof t==`string`?t:t?.message;throw new l(typeof n==`string`&&n.trim()?n:d.statusText||`Request failed (${d.status}).`,d.status)}if(d.status===204)return;let m;try{m=await d.json()}catch(t){throw!n?.signal?.aborted&&t instanceof TypeError?(o(e,s),new c(t)):t}let g=m?.configuration?.rawRevision??(t===`/v1/preferences`?m?.rawRevision:void 0);return typeof g==`string`&&r>=(p.get(e)??0)&&(f.set(e,g),p.set(e,r)),m}function v(e){let t=new URL(`/v1/terminal`,e.serverUrl);return t.protocol=t.protocol===`https:`?`wss:`:`ws:`,t.toString()}function y(e){return[`openpond-terminal`,`openpond-token.${x(e.token)}`]}function b(e){let t=new TextEncoder().encode(e),n=``;for(let e=0;e<t.length;e+=32768){let r=t.subarray(e,e+32768);n+=String.fromCharCode(...r)}return btoa(n)}function x(e){return b(e).replace(/\+/g,`-`).replace(/\//g,`_`).replace(/=+$/,``)}function S(e){let t=atob(e),n=new Uint8Array(t.length);for(let e=0;e<t.length;e+=1)n[e]=t.charCodeAt(e);return new TextDecoder().decode(n)}export{d as a,i as c,a as d,u as i,o as l,g as n,y as o,S as r,v as s,l as t,s as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CmkSm39S.js";var t=e(`bot`,[[`path`,{d:`M12 8V4H8`,key:`hb8ula`}],[`rect`,{width:`16`,height:`12`,x:`4`,y:`8`,rx:`2`,key:`enze0r`}],[`path`,{d:`M2 14h2`,key:`vft8re`}],[`path`,{d:`M20 14h2`,key:`4cs60a`}],[`path`,{d:`M15 13v2`,key:`1xurst`}],[`path`,{d:`M9 13v2`,key:`rq6x2g`}]]);export{t};
@@ -1 +0,0 @@
1
- import{S as e,T as t,a as n,b as r,c as i,d as a,g as o,i as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-lO3MoWQr.js";import{l as m}from"./common-BMjyKlX-.js";import{t as h}from"./profile-ref-DSNkG6Ol.js";import{d as g,f as _}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{D as v,d as y,f as b,h as x,i as S,nt as C,v as w,x as T,y as E}from"./chunk-GJRXJL6G-pJp1DyJd.js";var D=new Set([`taskset.json`,`capabilities.json`,`data/tasks.jsonl`,`tasks/tasks.jsonl`,`graders/graders.json`,`fixtures/grader-fixtures.json`,`metrics/policy.json`,`assets/manifest.json`,`environment/contract.json`,`environment/taskset.ts`,`rubrics/preference-review.md`,`comparisons/policy.json`]);function O(e){let t=C.parse(e);return!D.has(t)&&!t.startsWith(`source-artifacts/`)}function k(e,t){let n=O(e);if(t.byteLength>6e6)throw Error(`Taskset draft file content is invalid or exceeds 6 MB.`);let r;try{let e=new TextDecoder(`utf-8`,{fatal:!0,ignoreBOM:!0}).decode(t);r=/[\u0000-\u0008\u000e-\u001f]/.test(e)?A(t):{encoding:`utf8`,data:e}}catch{r=A(t)}return{path:e,writable:n,content:r,sizeBytes:t.byteLength,contentHash:_(t)}}function A(e){let t=``;for(let n=0;n<e.length;n+=8192)t+=String.fromCharCode(...e.subarray(n,n+8192));return{encoding:`base64`,data:btoa(t)}}var j=f().regex(/^[a-f0-9]{64}$/),M=c({path:C,contentHash:j,sizeBytes:u().int().nonnegative(),base64:f()}).strict(),N=c({schemaVersion:a(`openpond.tasksetDraftWorkspace.v1`),draft:b,files:n(M).max(1e4)}).strict().extend({contentHash:j}).strict();function P(e){let t=b.parse(e.draft),n=e.now??new Date().toISOString(),r=E(t);if(r.length)throw new y(r);let i=t.modelScope?.source;if(i&&e.tasksetId&&e.tasksetId!==i.tasksetId)throw Error(`Taskset draft publication differs from its prepared identity.`);let a=i?.tasksetId||e.tasksetId?.trim()||t.publishedTasksetRef?.id||t.id.replace(/-draft$/,``),o=i?.tasksetRevision??(t.publishedTasksetRef?.id===a?t.publishedTasksetRef.revision+1:1),s=t.sourceRefs.length?t.sourceRefs:[F(t,a,n)],c=s[0].id,l=t.tasks.map(e=>v.parse({...e,sourceRefs:e.sourceRefs.length?e.sourceRefs:[c],metadata:{exampleOrigin:`expert_authored`,...e.metadata}})),u=t.capabilities.compatibleMethods.find(e=>e!==`none`&&e!==`retrieval`)??null,d=I(t),f=t.graders.filter(e=>e.rewardEligible&&e.weight>0&&e.kind!==`human`),p=u===null&&d===`verifiable_reward`&&f.length>0,m=u??(p?`grpo`:null),h=x.parse({schemaVersion:`openpond.taskset.v1`,id:a,revision:o,profileId:t.profileId,profileRelease:null,createImproveRunId:null,name:t.name,objective:t.objective,purpose:t.purpose,benchmark:t.benchmark,preferenceComparison:t.preferenceComparison,status:`needs_review`,sourceRefs:s,datasetArtifact:t.datasetArtifact??null,policy:t.policy,environment:t.environment,capabilities:p?{...t.capabilities,compatibleMethods:[`grpo`],rewardKinds:[...new Set(f.map(e=>e.kind===`model_judge`?`model_judge`:`deterministic`))]}:t.capabilities,metrics:t.metrics,tasks:l,graders:t.graders,graderFixtures:t.graderFixtures,learningSignals:t.learningSignals,authoringProvenance:{schemaVersion:`openpond.taskAuthoringProvenance.v1`,model:null,modelConfig:{},skillHash:g(`openpond-taskset-draft-authoring-v1`),promptTemplateVersion:`taskset-draft-v1`,buildIntent:d,buildSpecification:null,evidenceHashes:s.map(e=>e.sourceHash),tasksetSdkVersion:`draft-v1`,sourceCommit:null,repairHistory:[],createdAt:n},readiness:null,contentHash:`00000000`,createdAt:o===1?t.createdAt:n,updatedAt:n,metadata:{...t.metadata,...i?{modelTasksetAuthoring:i.lineage}:{},tasksetReviewPolicy:t.review,tasksetOutputContract:t.output,...e.sourcePackageHash?{sourcePackageHash:e.sourcePackageHash}:{},...m?{trainingMethod:m}:{},diagnosis:{schemaVersion:`openpond.capabilityDiagnosis.v1`,summary:t.objective,stableBehavior:[t.objective],changingKnowledge:[],requiredContext:[],requiredTools:t.environment.toolNames,intervention:m===`dpo`?`preference`:m===`grpo`||m===`ppo`?`grpo_rft`:m===`sft`?`sft`:`no_training`,trainingEligible:m!==null,rationale:m?[`The author selected ${m.toUpperCase()} compatibility.`]:[`The Taskset is currently configured for evaluation only.`],confidence:1}}}),_=x.parse({...h,contentHash:w(h)}),S=T(_,{purpose:`publication`}).issues.filter(e=>e.severity===`error`);if(S.length)throw new y(S.map(e=>({code:e.code,message:e.message,path:e.path})));return _}function F(e,t,n){let r=g({draftId:e.id,draftRevision:e.revision,tasks:e.tasks});return{schemaVersion:`openpond.generatedDatasetSource.v1`,kind:`generated`,id:`source-${t}`,profileId:e.profileId,title:`${e.name} manual authoring`,sourceHash:r,occurredAt:n,licensingStatus:`approved`,secretScanStatus:`passed`,piiScanStatus:`passed`,generatorId:`openpond-taskset-draft`,generatorVersion:`1`,seed:0,generatorHash:r,metadata:{draftId:e.id,draftRevision:e.revision}}}function I(e){return e.metadata.buildIntent===`discovery`||!e.graders.length&&!e.learningSignals.preferences.length&&!e.learningSignals.rewards.length&&!e.learningSignals.labels.length?`discovery`:e.learningSignals.preferences.length?`preferences`:e.learningSignals.rewards.length?`verifiable_reward`:e.learningSignals.labels.length?`rubric`:!e.capabilities.compatibleMethods.some(e=>e!==`none`&&e!==`retrieval`)&&e.graders.some(e=>e.rewardEligible&&e.weight>0&&e.kind!==`human`)?`verifiable_reward`:`demonstrations`}var L=f().trim().min(1).max(240),R=c({teamId:L,actorId:L}).strict(),z=i(`location`,[c({location:a(`local`),jobId:L,owner:R,modelRunId:L,modelId:L,modelVersionId:L.nullable(),adapterArtifactLineageId:L.nullable()}).strict(),c({location:a(`cloud`),jobId:L,owner:R,apiOrigin:e().max(2e3),modelProjectId:L,portableProjectId:L,submissionHash:f().regex(/^[a-f0-9]{64}$/)}).strict()]),B=f().trim().min(1).max(240),V=c({location:a(`local`).default(`local`),jobId:B,modelRunId:B,modelId:B,modelVersionId:B.nullable(),adapterArtifactLineageId:B.nullable(),owner:c({teamId:B,actorId:B}).strict(),taskset:m,state:d([`prepared`,`running`,`succeeded`,`failed`,`cancelled`]),executionState:d([`queued`,`starting`,`running`,`cancelling`,`cancelled`,`succeeded`,`failed`,`reconciling`]),updatedAt:t()}).strict(),H=c({location:a(`cloud`),jobId:B,owner:c({teamId:B,actorId:B}).strict(),apiOrigin:e(),job:S,updatedAt:t()}).strict().refine(e=>e.jobId===e.job.id&&e.owner.teamId===e.job.teamId&&e.updatedAt===e.job.updatedAt,`Hosted training attachment must match its canonical job.`),U=r([V,H]);function W(e){return JSON.stringify([e.location,e.location===`cloud`?e.apiOrigin:null,e.owner.teamId,e.owner.actorId,e.jobId])}function G(e){let t={location:e.location,jobId:e.jobId,owner:e.owner};return z.parse(e.location===`cloud`?{...t,apiOrigin:e.apiOrigin,modelProjectId:e.job.modelProjectId,portableProjectId:e.job.portableProjectId,submissionHash:e.job.submissionHash}:{...t,modelRunId:e.modelRunId,modelId:e.modelId,modelVersionId:e.modelVersionId,adapterArtifactLineageId:e.adapterArtifactLineageId})}var K=f().trim().min(1).max(240),q=f().regex(/^[a-f0-9]{64}$/),J=c({kind:d([`structure`,`graders`]),revision:u().int().positive(),workspaceHash:q,status:d([`passed`,`failed`,`unavailable`]),checkedAt:t(),checked:u().int().nonnegative(),total:u().int().nonnegative(),issues:n(c({code:f(),message:f(),taskId:K.optional(),graderId:K.optional()})).max(1e4),scopes:n(c({graderId:K,checked:u().int().nonnegative(),total:u().int().nonnegative(),status:d([`passed`,`failed`,`unavailable`])}).strict()).max(1e3).optional()}).strict(),Y=c({apiOrigin:e(),actorId:K,teamId:K,datasetId:K,remoteRevision:u().int().nonnegative(),acknowledgedHash:q.nullable(),remoteHash:q.nullable(),pendingLocalHash:q.nullable(),paused:l(),status:d([`pending`,`syncing`,`synced`,`retry`,`conflict`,`paused`]),error:f().nullable(),operationId:K.nullable(),pendingWorkspace:N.nullable(),beginVersionOperationId:K.nullable().optional(),publicationIntent:c({operationId:K,expectedRevision:u().int().positive(),workspaceHash:q,packageHash:q,localHash:q}).strict().nullable().optional()}).strict(),X=c({schemaVersion:a(`openpond.localDataset.v1`),ownerId:K,projectId:K.nullable(),workspace:N,checks:n(J).max(2),packageHash:q.nullable(),sync:Y.nullable()}).strict(),Z=c({kind:d([`dataset`,`grader`,`experiment`]),id:K,revision:u().int().positive(),name:f().max(500),state:f().max(100),datasetId:K.optional(),datasetRevision:u().int().positive().optional(),taskCount:u().int().nonnegative().optional(),graderCount:u().int().nonnegative().optional(),checkState:f().optional(),syncState:f().optional(),model:f().optional(),evaluationHash:q.optional(),graderId:K.optional(),graderType:f().optional(),description:f().optional(),location:d([`local`,`cloud`]).optional(),scoreLabel:f().optional(),owner:c({teamId:K,actorId:K}).strict().optional(),contentHash:q.optional(),profileRef:h.optional(),score:u().nullable().optional(),costUsd:u().nonnegative().nullable().optional(),evaluatedCount:u().int().nonnegative().optional(),failedCount:u().int().nonnegative().optional(),qualityFailureCount:u().int().nonnegative().optional(),executionFailureCount:u().int().nonnegative().optional(),ungradedCount:u().int().nonnegative().optional(),rows:n(c({id:K,label:f(),detail:f(),score:u().nullable().optional()})).max(10)}).strict(),Q=c({id:K,ordinal:u().int().positive(),name:f().trim().min(1).max(500),dataset:Z.nullable(),evaluationModel:f().min(1).max(500).optional(),executionLocation:d([`local`,`cloud`]).optional(),graders:n(Z),selectedGraderId:K.nullable(),runs:n(Z),selectedRunId:K.nullable(),training:n(U).optional(),selectedTrainingKey:f().max(4e3).nullable().optional(),selectedTrainingJobId:K.nullable().optional(),turnIds:n(K),operationId:K,createdAt:t(),updatedAt:t()}).strict(),$=Q.extend({ordinal:s()});c({datasetFocus:$.optional(),scopes:n(Q),activeScopeId:K.nullable(),selectionVersion:u().int().nonnegative(),selectedAt:t().nullable(),selectionOperations:o(f(),c({hash:q,version:u().int().nonnegative(),visualPublicationId:f().optional(),resource:Z.optional()}).strict()).default({})}).strict();function ee(e){return[...e.scopes,...e.datasetFocus?[e.datasetFocus]:[]]}c({action:d([`schema`,`list`,`read`,`create`,`save`,`file`,`validate`,`check_graders`,`check_sources`,`package`,`import`,`inspect_source`,`import_source`,`upload`,`sync`,`pause_sync`,`disconnect_sync`,`related_chats`,`list_graders`,`read_grader`,`save_grader`,`test_grader`,`publish`]),id:K.optional(),operationId:K.optional(),expectedRevision:u().int().nonnegative().optional(),payload:o(f(),p()).default({})}).strict();var te=c({contentHash:q,scope:f(),graders:p(),cases:n(c({id:K,taskId:K,seed:f(),status:f(),output:f().nullable(),error:f().nullable(),score:u().nullable()}).strict()).max(1e4)}).strict();export{U as a,z as c,P as d,ee as i,N as l,Z as n,W as o,X as r,G as s,te as t,k as u};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CmkSm39S.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CmkSm39S.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -1 +0,0 @@
1
- import{t as e}from"./createLucideIcon-CmkSm39S.js";var t=e(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);export{t};