openpond 0.2.61 → 0.2.62

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 (420) hide show
  1. package/dist/app-server.d.ts +3264 -18
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/{acp-FUAWCKBH.js → acp-DYRBDJRU.js} +1 -1
  4. package/dist/chunks/{acp-agent-XBSJ27KI.js → acp-agent-UTLP7C3I.js} +1 -1
  5. package/dist/chunks/{actions-command-LOHNQUWP.js → actions-command-6LF4Z4WK.js} +1 -1
  6. package/dist/chunks/{app-layer-4BFMOMKM.js → app-layer-N2H3RBEN.js} +1 -1
  7. package/dist/chunks/{app-server-connected-apps-Q2VWWJNX.js → app-server-connected-apps-3T546FE7.js} +1 -1
  8. package/dist/chunks/app-server-evaluations-TXD747QA.js +2 -0
  9. package/dist/chunks/{app-server-harness-services-2PSZBT7U.js → app-server-harness-services-BBCDV5P3.js} +1 -1
  10. package/dist/chunks/app-server-runtime-VEJPDAFP.js +2 -0
  11. package/dist/chunks/{apps-7PIBF32Q.js → apps-CTT2XYRR.js} +1 -1
  12. package/dist/chunks/{chunk-KK626T3Z.js → chunk-2EPR4HLF.js} +1 -1
  13. package/dist/chunks/{chunk-5VPU7OS7.js → chunk-2IIBCCOK.js} +1 -1
  14. package/dist/chunks/{chunk-ZISYLRH6.js → chunk-2UDAKLJ4.js} +1 -1
  15. package/dist/chunks/{chunk-BDCTN4PU.js → chunk-2V4LPUBH.js} +1 -1
  16. package/dist/chunks/{chunk-I3X6M6ZO.js → chunk-3R4MSE2S.js} +1 -1
  17. package/dist/chunks/{chunk-OFVUN4KI.js → chunk-47AXSBPV.js} +1 -1
  18. package/dist/chunks/{chunk-BFKYRQMA.js → chunk-4N4EH3RJ.js} +1 -1
  19. package/dist/chunks/chunk-4PZWGNX4.js +86 -0
  20. package/dist/chunks/{chunk-VFLSBDNZ.js → chunk-4RZBGKT7.js} +1 -1
  21. package/dist/chunks/{chunk-VBW2X42G.js → chunk-4TM75R7V.js} +1 -1
  22. package/dist/chunks/chunk-4U2FNXQW.js +2 -0
  23. package/dist/chunks/{chunk-SCCYSPQ5.js → chunk-4ZBOYWQ3.js} +1 -1
  24. package/dist/chunks/{chunk-VWJ5IYQP.js → chunk-547AUVKN.js} +1 -1
  25. package/dist/chunks/{chunk-FJ3HMHT6.js → chunk-557XSPVS.js} +1 -1
  26. package/dist/chunks/{chunk-ZHFH2TZN.js → chunk-557YG77L.js} +1 -1
  27. package/dist/chunks/{chunk-MF35MALN.js → chunk-5A6ER3M2.js} +1 -1
  28. package/dist/chunks/{chunk-U4HZD2GM.js → chunk-5OSM75X5.js} +1 -1
  29. package/dist/chunks/{chunk-TH6Y4K5Z.js → chunk-6SH4B7DV.js} +1 -1
  30. package/dist/chunks/chunk-6XSSM4WT.js +3 -0
  31. package/dist/chunks/{chunk-HN2ZK6EV.js → chunk-7JBB4PXS.js} +1 -1
  32. package/dist/chunks/{chunk-SID4X3YN.js → chunk-7JXZNCBC.js} +1 -1
  33. package/dist/chunks/chunk-7KTARW23.js +2 -0
  34. package/dist/chunks/{chunk-M6JRS5PA.js → chunk-ABF3W2MO.js} +1 -1
  35. package/dist/chunks/{chunk-CGAL7IHZ.js → chunk-AKZPMKWP.js} +1 -1
  36. package/dist/chunks/{chunk-SIV5P6JO.js → chunk-AMO5DVKM.js} +2 -2
  37. package/dist/chunks/chunk-AZ7BL5FL.js +2 -0
  38. package/dist/chunks/{chunk-4RHM4WN2.js → chunk-B42QQUZY.js} +1 -1
  39. package/dist/chunks/{chunk-3DVWJCOA.js → chunk-B4RKHHF7.js} +1 -1
  40. package/dist/chunks/{chunk-CQF6QZEL.js → chunk-BEI4YULC.js} +1 -1
  41. package/dist/chunks/chunk-BKEDG3A4.js +22 -0
  42. package/dist/chunks/{chunk-GEXKTGLY.js → chunk-C7M2WBWZ.js} +14 -14
  43. package/dist/chunks/{chunk-ELYRVTTG.js → chunk-CJUVHE4U.js} +1 -1
  44. package/dist/chunks/{chunk-ZUNG6YDO.js → chunk-EIX2V2KU.js} +1 -1
  45. package/dist/chunks/{chunk-AWPYTDH4.js → chunk-EWOTDVDJ.js} +1 -1
  46. package/dist/chunks/{chunk-B47JMAVW.js → chunk-F4TJ7WQV.js} +1 -1
  47. package/dist/chunks/{chunk-TXBIZDXG.js → chunk-F7D4BMTO.js} +1 -1
  48. package/dist/chunks/{chunk-BWY4D3BN.js → chunk-FFWOTZQM.js} +1 -1
  49. package/dist/chunks/{chunk-6RVF2J47.js → chunk-FUSCTBJI.js} +1 -1
  50. package/dist/chunks/{chunk-BN5AVRUG.js → chunk-GAQLXFOT.js} +1 -1
  51. package/dist/chunks/{chunk-LHENAWLH.js → chunk-GEKORCMN.js} +1 -1
  52. package/dist/chunks/{chunk-ORLJJGZZ.js → chunk-GNCEZ3UP.js} +1 -1
  53. package/dist/chunks/{chunk-WRQEYW3V.js → chunk-GOIKLFXK.js} +1 -1
  54. package/dist/chunks/{chunk-65SM7Y2G.js → chunk-GQGLPKU4.js} +1 -1
  55. package/dist/chunks/{chunk-LBBXVOVR.js → chunk-GSWBNJGZ.js} +1 -1
  56. package/dist/chunks/{chunk-7EAWLYYB.js → chunk-GV3LFSMI.js} +1 -1
  57. package/dist/chunks/{chunk-GQUS7MCH.js → chunk-GW5SE3FM.js} +1 -1
  58. package/dist/chunks/{chunk-I3W27VK4.js → chunk-HBLN4OLY.js} +1 -1
  59. package/dist/chunks/{chunk-SGK4GR44.js → chunk-HFJUXKT5.js} +1 -1
  60. package/dist/chunks/{chunk-4P3X2RXA.js → chunk-HKV7RX5E.js} +1 -1
  61. package/dist/chunks/{chunk-QDBYLJGH.js → chunk-HXZXDDKW.js} +1 -1
  62. package/dist/chunks/{chunk-LNRFRAV5.js → chunk-INO67SEN.js} +1 -1
  63. package/dist/chunks/{chunk-E67M5WGY.js → chunk-IWK3RTLR.js} +1 -1
  64. package/dist/chunks/{chunk-U447MS3Y.js → chunk-J3B2GM4A.js} +1 -1
  65. package/dist/chunks/chunk-JCLTFDVW.js +2 -0
  66. package/dist/chunks/{chunk-25RDE7DV.js → chunk-JEISPWWM.js} +1 -1
  67. package/dist/chunks/{chunk-D4JZALZ4.js → chunk-JIFUGA3U.js} +1 -1
  68. package/dist/chunks/{chunk-H2AUR7OT.js → chunk-JQRMDFF3.js} +1 -1
  69. package/dist/chunks/{chunk-FWIPHEVA.js → chunk-JX6OX6XE.js} +1 -1
  70. package/dist/chunks/{chunk-D5ADDBS5.js → chunk-JY3YSI54.js} +1 -1
  71. package/dist/chunks/{chunk-CM5USMXN.js → chunk-KOKX7PBS.js} +1 -1
  72. package/dist/chunks/{chunk-3ZWLRBYZ.js → chunk-KUPJNBWG.js} +1 -1
  73. package/dist/chunks/chunk-LILXHGIA.js +2 -0
  74. package/dist/chunks/{chunk-MCIIGQT7.js → chunk-LJDBR3RN.js} +1 -1
  75. package/dist/chunks/{chunk-3TYCIYW6.js → chunk-LJPO3TEL.js} +1 -1
  76. package/dist/chunks/{chunk-MHYI7ATG.js → chunk-LRRBYIGH.js} +2 -2
  77. package/dist/chunks/{chunk-P4XM7LUT.js → chunk-M5IX6VUA.js} +1 -1
  78. package/dist/chunks/chunk-MEK7DLX3.js +2 -0
  79. package/dist/chunks/{chunk-TYHCBVQT.js → chunk-MILEWROZ.js} +1 -1
  80. package/dist/chunks/{chunk-ZBBVRYU3.js → chunk-MNFW5WLD.js} +1 -1
  81. package/dist/chunks/{chunk-2VXL6AU3.js → chunk-MNXNZDDW.js} +1 -1
  82. package/dist/chunks/chunk-N5GPINVP.js +2 -0
  83. package/dist/chunks/{chunk-TSAW2QVU.js → chunk-NBE74GLF.js} +1 -1
  84. package/dist/chunks/{chunk-VZXZ6CHS.js → chunk-NE4ESZPT.js} +1 -1
  85. package/dist/chunks/{chunk-CO3OJFPU.js → chunk-NKZNPTLA.js} +1 -1
  86. package/dist/chunks/{chunk-WFVOG5PU.js → chunk-NLQ2UPN2.js} +1 -1
  87. package/dist/chunks/chunk-NOSBNHGC.js +18 -0
  88. package/dist/chunks/{chunk-TTN63EAM.js → chunk-NWOK6NLE.js} +1 -1
  89. package/dist/chunks/{chunk-6MWT6BVU.js → chunk-NWQL6FNF.js} +1 -1
  90. package/dist/chunks/chunk-O3MHHGC5.js +151 -0
  91. package/dist/chunks/{chunk-IUGK6BBY.js → chunk-OCC43RSJ.js} +1 -1
  92. package/dist/chunks/{chunk-BQUWZRWU.js → chunk-P74RR2GB.js} +1 -1
  93. package/dist/chunks/{chunk-PAZDQRYU.js → chunk-PAE3PQEC.js} +1 -1
  94. package/dist/chunks/{chunk-M4ZRCRJM.js → chunk-PGO4FRHU.js} +2 -2
  95. package/dist/chunks/chunk-Q34IF4PW.js +2 -0
  96. package/dist/chunks/{chunk-Q324ZA5M.js → chunk-QAVQJZCM.js} +1 -1
  97. package/dist/chunks/{chunk-EIIGTADO.js → chunk-RBDUMASL.js} +1 -1
  98. package/dist/chunks/{chunk-TMMFF6DO.js → chunk-RH43WLBX.js} +1 -1
  99. package/dist/chunks/{chunk-RPOD6I64.js → chunk-RTJCELRR.js} +1 -1
  100. package/dist/chunks/{chunk-L3GA2CQI.js → chunk-SD64CLJX.js} +1 -1
  101. package/dist/chunks/{chunk-TNHDD3LO.js → chunk-SXMR6E2W.js} +1 -1
  102. package/dist/chunks/{chunk-MLTKB5G3.js → chunk-SZKFNKWO.js} +1 -1
  103. package/dist/chunks/chunk-T4QXKU5Y.js +1 -0
  104. package/dist/chunks/{chunk-PE7UKJXK.js → chunk-T6C5BNXK.js} +1 -1
  105. package/dist/chunks/{chunk-OMICIPPY.js → chunk-T6JN4PND.js} +1 -1
  106. package/dist/chunks/{chunk-OQUKSRU3.js → chunk-TGEGXTPR.js} +1 -1
  107. package/dist/chunks/chunk-TM4VEMNN.js +2 -0
  108. package/dist/chunks/chunk-TUCKED4T.js +4 -0
  109. package/dist/chunks/chunk-TVTFEGTU.js +2 -0
  110. package/dist/chunks/{chunk-HZLV773Y.js → chunk-TW3SRBLU.js} +1 -1
  111. package/dist/chunks/{chunk-BNZTJPK7.js → chunk-U456UP3N.js} +1 -1
  112. package/dist/chunks/chunk-UC3FXTDL.js +9 -0
  113. package/dist/chunks/{chunk-XLULTQLZ.js → chunk-UT6F6AIB.js} +1 -1
  114. package/dist/chunks/{chunk-OJFDI7VM.js → chunk-UTNGEMW5.js} +1 -1
  115. package/dist/chunks/{chunk-DW3GJRY3.js → chunk-VAJSRUAB.js} +1 -1
  116. package/dist/chunks/chunk-VE6ZIGUQ.js +2 -0
  117. package/dist/chunks/{chunk-GLVR74PX.js → chunk-VI32G77S.js} +1 -1
  118. package/dist/chunks/{chunk-ROE24PN5.js → chunk-VK4TPZTA.js} +1 -1
  119. package/dist/chunks/{chunk-Q66LWQGF.js → chunk-VSQXDS6H.js} +1 -1
  120. package/dist/chunks/{chunk-4GZ2FPB5.js → chunk-VWRTE64Y.js} +1 -1
  121. package/dist/chunks/{chunk-QRJPLZF7.js → chunk-W5W4IODW.js} +1 -1
  122. package/dist/chunks/{chunk-57RY3LSR.js → chunk-WGLVSGFA.js} +1 -1
  123. package/dist/chunks/{chunk-I7JCARVH.js → chunk-WQMXEZVE.js} +3 -3
  124. package/dist/chunks/chunk-X4ZT22SG.js +2 -0
  125. package/dist/chunks/{chunk-DGPGOBYZ.js → chunk-XSB3T4JZ.js} +1 -1
  126. package/dist/chunks/{chunk-ZZWAQBA2.js → chunk-XWDFXM3S.js} +1 -1
  127. package/dist/chunks/{chunk-4LZLO4OW.js → chunk-Y2KPHVZK.js} +1 -1
  128. package/dist/chunks/chunk-ZQHPGEYT.js +2 -0
  129. package/dist/chunks/{chunk-T4LLJC5N.js → chunk-ZXT7V64X.js} +1 -1
  130. package/dist/chunks/cli-GCSO2OAI.js +2 -0
  131. package/dist/chunks/{configuration-command-ONGI2BJD.js → configuration-command-BU2RPG33.js} +1 -1
  132. package/dist/chunks/connected-app-executor-UDE7U4KG.js +2 -0
  133. package/dist/chunks/{connected-evidence-4J3YXU4O.js → connected-evidence-GXIY2L7C.js} +1 -1
  134. package/dist/chunks/{connected-starting-assets-OXLT7S4O.js → connected-starting-assets-V5QXRK5Q.js} +1 -1
  135. package/dist/chunks/{connection-HJWE6SEW.js → connection-XMAAGMXJ.js} +1 -1
  136. package/dist/chunks/{continual-CJUZM5ZQ.js → continual-FLW6DAJK.js} +1 -1
  137. package/dist/chunks/{core-commands-JGXU6B4C.js → core-commands-NJ6TGND4.js} +1 -1
  138. package/dist/chunks/{dataset-preparation-authoring-DFGJBMVF.js → dataset-preparation-authoring-IUXUQK3L.js} +1 -1
  139. package/dist/chunks/{datasets-MNHZAZIB.js → datasets-AH56DKLZ.js} +1 -1
  140. package/dist/chunks/{desktop-test-P23MHAIG.js → desktop-test-PYUTEOWO.js} +1 -1
  141. package/dist/chunks/{dist-IIFTZWNR.js → dist-5267UT3V.js} +1 -1
  142. package/dist/chunks/{dist-X64FC6NA.js → dist-HSC43RG4.js} +1 -1
  143. package/dist/chunks/{evaluation-coordination-6NQEH5WU.js → evaluation-coordination-3AUICOC5.js} +1 -1
  144. package/dist/chunks/{experiment-improvements-M27Z5OF4.js → experiment-improvements-YS7GGPDW.js} +1 -1
  145. package/dist/chunks/experiments-EJZK7FPT.js +2 -0
  146. package/dist/chunks/{experiments-signal-R3NNH7WR.js → experiments-signal-NKUIJCIY.js} +1 -1
  147. package/dist/chunks/{extension-C33NUFDL.js → extension-ZM6NI5O5.js} +1 -1
  148. package/dist/chunks/{help-M2VQGPVC.js → help-PXUUREHZ.js} +1 -1
  149. package/dist/chunks/host-profile-evaluation-tools-CTC5JQPD.js +2 -0
  150. package/dist/chunks/host-profile-external-dataset-GJWDY3YT.js +2 -0
  151. package/dist/chunks/hosted-app-server-composition-TLJSKMJT.js +2 -0
  152. package/dist/chunks/hosted-experiment-improvement-TIVXXRPG.js +3 -0
  153. package/dist/chunks/hosted-harness-runtime-SFLJEZFI.js +2 -0
  154. package/dist/chunks/{hosted-profile-candidate-37ZFY2LH.js → hosted-profile-candidate-DKEMVIYG.js} +1 -1
  155. package/dist/chunks/hosted-profile-compiler-V6YR6EHO.js +2 -0
  156. package/dist/chunks/{hosted-profile-evaluation-control-UQBMML6K.js → hosted-profile-evaluation-control-ERCXAPZD.js} +1 -1
  157. package/dist/chunks/{hosted-profile-evaluation-inspection-YASS4T6L.js → hosted-profile-evaluation-inspection-Q3AIIIB6.js} +1 -1
  158. package/dist/chunks/hosted-profile-evaluation-preparation-ELLGH44Z.js +3 -0
  159. package/dist/chunks/{hosted-tasksets-CVUP7MS6.js → hosted-tasksets-X2YCFYEJ.js} +1 -1
  160. package/dist/chunks/{human-review-IJETDOWB.js → human-review-5WM6MSON.js} +1 -1
  161. package/dist/chunks/{import-WLLUIDS6.js → import-JWZSZCE4.js} +1 -1
  162. package/dist/chunks/local-harness-improvement-runtime-IGIKM6GJ.js +2 -0
  163. package/dist/chunks/local-harness-taskset-review-DR2ZIDOH.js +2 -0
  164. package/dist/chunks/{model-projects-AVBQDNYG.js → model-projects-H22KENI4.js} +1 -1
  165. package/dist/chunks/opchat-3S6TSDZO.js +3 -0
  166. package/dist/chunks/opchat-bounded-chat-B7LPCD4U.js +2 -0
  167. package/dist/chunks/{organizations-DJRJWC5I.js → organizations-62YNTZTO.js} +1 -1
  168. package/dist/chunks/{profile-JRS3JNRC.js → profile-ELE2D7HU.js} +1 -1
  169. package/dist/chunks/project-action-payload-32F4X2BB.js +2 -0
  170. package/dist/chunks/{project-agent-2KNJFNZI.js → project-agent-O4REKO6T.js} +1 -1
  171. package/dist/chunks/{published-experiment-source-LFYHKFAO.js → published-experiment-source-DAOTJLIN.js} +1 -1
  172. package/dist/chunks/refiner-profile-service-DYMZ7J3X.js +2 -0
  173. package/dist/chunks/{runtime-CBJF5GMB.js → runtime-776NUSE7.js} +2 -2
  174. package/dist/chunks/{sandbox-command-IIGTPYN3.js → sandbox-command-UQ26NDIX.js} +1 -1
  175. package/dist/chunks/{sandbox-template-FTANKQIA.js → sandbox-template-WP6YCGBK.js} +1 -1
  176. package/dist/chunks/saved-work-PG52WCRQ.js +2 -0
  177. package/dist/chunks/{send-turn-5UB7ZBJV.js → send-turn-RPB65PME.js} +1 -1
  178. package/dist/chunks/{src-4YZF6L6H.js → src-2R4CMCJ5.js} +1 -1
  179. package/dist/chunks/src-AU6LG7E6.js +421 -0
  180. package/dist/chunks/standalone-experiment-turn-owner-SD3SUTKX.js +2 -0
  181. package/dist/chunks/{store-chat-resources-CGW7PDCG.js → store-chat-resources-T4LR7K25.js} +1 -1
  182. package/dist/chunks/{store-continual-support-reviews-GWI2FRII.js → store-continual-support-reviews-R62D2HD6.js} +1 -1
  183. package/dist/chunks/{store-conversation-serving-637AHKBP.js → store-conversation-serving-25O7BAR2.js} +1 -1
  184. package/dist/chunks/{store-create-improve-ZG653Z63.js → store-create-improve-T5E2GUKK.js} +1 -1
  185. package/dist/chunks/{store-datasets-IW6F2QZM.js → store-datasets-5Y4U5L3R.js} +1 -1
  186. package/dist/chunks/{store-evaluation-results-V5J6L4NV.js → store-evaluation-results-WUVJWCFU.js} +1 -1
  187. package/dist/chunks/{store-harness-workspaces-HHMM6GNK.js → store-harness-workspaces-IFEFY5CK.js} +1 -1
  188. package/dist/chunks/{store-human-review-V5H4QDHR.js → store-human-review-ZQNLZRGG.js} +1 -1
  189. package/dist/chunks/store-learned-preference-migration-validation-UH6MJQSH.js +2 -0
  190. package/dist/chunks/{store-local-experiments-A2UWYPVQ.js → store-local-experiments-LOH4F4TF.js} +1 -1
  191. package/dist/chunks/{store-model-batch-review-KMYPYWJR.js → store-model-batch-review-QO4VVKWC.js} +1 -1
  192. package/dist/chunks/{store-model-configuration-UXNC4PGY.js → store-model-configuration-C3HSOFD5.js} +1 -1
  193. package/dist/chunks/store-model-project-preparation-RQ2YTC2Y.js +2 -0
  194. package/dist/chunks/{store-preference-comparison-HTOXLWKF.js → store-preference-comparison-RNIFLJRW.js} +1 -1
  195. package/dist/chunks/{store-schedules-QVWT7AEB.js → store-schedules-DVQ2PP4F.js} +1 -1
  196. package/dist/chunks/{store-sidebar-file-bookmarks-G5Z6NZWL.js → store-sidebar-file-bookmarks-LXWFFYCZ.js} +1 -1
  197. package/dist/chunks/{store-sidebar-preferences-27FFMUWU.js → store-sidebar-preferences-4HH7LX6N.js} +1 -1
  198. package/dist/chunks/{store-subagents-PK7ZWLPR.js → store-subagents-JLW4GD4Q.js} +1 -1
  199. package/dist/chunks/{store-task-inbox-LNDCZOYE.js → store-task-inbox-DL5RYFPO.js} +1 -1
  200. package/dist/chunks/{store-task-inventory-IG6HGWSQ.js → store-task-inventory-NJXRXFLC.js} +1 -1
  201. package/dist/chunks/store-taskset-drafts-UFGN4SGF.js +9 -0
  202. package/dist/chunks/{store-training-NQRRPKEZ.js → store-training-VRLU6NFX.js} +1 -1
  203. package/dist/chunks/{store-training-jobs-F6Y2ZTXP.js → store-training-jobs-3ZHG4LGI.js} +1 -1
  204. package/dist/chunks/{store-training-models-NRSLSBEW.js → store-training-models-KWQD5PRP.js} +1 -1
  205. package/dist/chunks/{store-usage-GFHQYT34.js → store-usage-ZRS3ILF2.js} +1 -1
  206. package/dist/chunks/{taskset-NYLUYX6K.js → taskset-QDMCQQDJ.js} +1 -1
  207. package/dist/chunks/{taskset-packages-I7I5KBFP.js → taskset-packages-CBLJFWDQ.js} +1 -1
  208. package/dist/chunks/{teams-bot-FMAEDGSD.js → teams-bot-GF272RGC.js} +1 -1
  209. package/dist/chunks/{training-UBX6E7SK.js → training-DF5UEPY3.js} +1 -1
  210. package/dist/chunks/{training-error-AYOGHHL2.js → training-error-L5V5IBX3.js} +1 -1
  211. package/dist/chunks/training-hosted-I2NDBYGS.js +2 -0
  212. package/dist/chunks/training-hosted-report-4F25RZZ4.js +2 -0
  213. package/dist/chunks/training-hosted-serving-QAV7ZGGV.js +2 -0
  214. package/dist/chunks/training-project-preparation-XWGRY5ME.js +3 -0
  215. package/dist/chunks/{web-search-Q4OQVUNH.js → web-search-5RUXYIOF.js} +1 -1
  216. package/dist/chunks/{workspaces-XREEVSTS.js → workspaces-JRY2IE7H.js} +1 -1
  217. package/dist/cli.js +2 -2
  218. package/dist/hosted-chat.d.ts +28 -0
  219. package/dist/index.js +1 -1
  220. package/dist/skills/openpond-cli/SKILL.md +15 -2
  221. package/dist/skills/openpond-cli/references/compact-resource-tables.md +3 -3
  222. package/dist/skills/openpond-cli/references/diagnose-and-improve.md +4 -2
  223. package/dist/skills/openpond-cli/references/experiments-and-training.md +155 -10
  224. package/dist/skills/openpond-taskset-authoring/SKILL.md +5 -4
  225. package/dist/skills/openpond-taskset-authoring/artifact.json +7 -7
  226. package/dist/skills/openpond-taskset-authoring/references/failure-diagnosis.md +52 -1
  227. package/dist/web/assets/App-DHJVXTI2.js +54 -0
  228. package/dist/web/assets/App-DpFKLxuA.css +1 -0
  229. package/dist/web/assets/AppDialog-BurL61qE.js +1 -0
  230. package/dist/web/assets/AppTerminalPanel-RjFlF-a4.js +2 -0
  231. package/dist/web/assets/{AppToastContext-BB_2hRfw.js → AppToastContext-DZLErwj0.js} +1 -1
  232. package/dist/web/assets/AppsView-ttlr9ckQ.js +1 -0
  233. package/dist/web/assets/{AttachmentTypeIcon-DOAsVQjt.js → AttachmentTypeIcon-CpMSfHCK.js} +1 -1
  234. package/dist/web/assets/BrowserSidebar-Cp2l0kg0.js +1 -0
  235. package/dist/web/assets/{CartesianChart-DO76yfJb.js → CartesianChart-CEbM980A.js} +1 -1
  236. package/dist/web/assets/{ChatTimelineEntry-IKzZsHoI.js → ChatTimelineEntry-BITv20Ze.js} +1 -1
  237. package/dist/web/assets/{CollaborationTabs-DNoknVMD.js → CollaborationTabs-DrKJmJZK.js} +1 -1
  238. package/dist/web/assets/{CommandMenu-CBY2AJxV.js → CommandMenu-6oj8FUr6.js} +1 -1
  239. package/dist/web/assets/CommunityView-BzpIq1lD.js +1 -0
  240. package/dist/web/assets/ComposerAttachments-6en7m_ov.js +2 -0
  241. package/dist/web/assets/ComposerCreateImproveStrip-ChplO9YP.js +1 -0
  242. package/dist/web/assets/ConversationImportsSettings-DRHgc7j_.js +1 -0
  243. package/dist/web/assets/FilePagePreview-CW4J_1u7.js +2 -0
  244. package/dist/web/assets/GetStartedView-CaBk_mX6.js +1 -0
  245. package/dist/web/assets/GettingStartedDialog-EsH-8Diz.css +1 -0
  246. package/dist/web/assets/GettingStartedDialog-JtFLyU3F.js +1 -0
  247. package/dist/web/assets/{HostedModelLearningReview-B0rbIVvn.js → HostedModelLearningReview-hhcjDifK.js} +1 -1
  248. package/dist/web/assets/HostedModelLearningSettings-CY8198Y1.js +1 -0
  249. package/dist/web/assets/LabModelVersionDetailPage-f0tHT-Sn.js +1 -0
  250. package/dist/web/assets/LabSkillSidebar-HibUEEko.js +1 -0
  251. package/dist/web/assets/{LabsRoute-DOnw39du.js → LabsRoute-B61l1b8P.js} +8 -8
  252. package/dist/web/assets/MainChatThread-egKi0gLk.js +2 -0
  253. package/dist/web/assets/MainPane-2dj6Dg4l.js +95 -0
  254. package/dist/web/assets/{MainPane-CuBUBA9F.css → MainPane-BwHw3UYp.css} +1 -1
  255. package/dist/web/assets/NativeSetupTerminal-3eR9D_R3.css +1 -0
  256. package/dist/web/assets/NativeSetupTerminal-CNHTByLo.js +2 -0
  257. package/dist/web/assets/NativeSkillSidebar-DCdMbSfe.js +1 -0
  258. package/dist/web/assets/NewProjectDialog-t9Imnb__.js +1 -0
  259. package/dist/web/assets/OutputsPage-CeGq_F1S.js +1 -0
  260. package/dist/web/assets/{PageChrome-BBnWAENV.js → PageChrome-VHME5V8j.js} +1 -1
  261. package/dist/web/assets/ProjectsPage-2TMZoEPB.js +1 -0
  262. package/dist/web/assets/RightChatPanelStack-B3mBViGC.js +1 -0
  263. package/dist/web/assets/RightSidebarHomePanel-CxDYSyyx.js +1 -0
  264. package/dist/web/assets/ScheduledWorkPage-Dh47iH11.js +1 -0
  265. package/dist/web/assets/SettingsView-D2bu3tK_.js +5 -0
  266. package/dist/web/assets/TeamChatView-CN17AsgA.js +1 -0
  267. package/dist/web/assets/TerminalOverlay-DlhRpi-X.js +16 -0
  268. package/dist/web/assets/TrainingCreationPanel-DJKzaNFj.js +1 -0
  269. package/dist/web/assets/{TrainingDraftPanel-HznyNCJ4.js → TrainingDraftPanel-BhhZPPuY.js} +1 -1
  270. package/dist/web/assets/{TrainingMetricWorkbench-BmzHLwIP.js → TrainingMetricWorkbench-DBy8F1xp.js} +1 -1
  271. package/dist/web/assets/{UsageSettingsSection-C3oZ1UEP.js → UsageSettingsSection-DTZslBeW.js} +2 -2
  272. package/dist/web/assets/WorkSidebarPanel-Ds-eTQLs.js +1 -0
  273. package/dist/web/assets/WorkspaceDiffPanel-D_iyg2D4.js +11 -0
  274. package/dist/web/assets/WorkspaceEnvironmentMenu-Fn-NlfMQ.js +35 -0
  275. package/dist/web/assets/WorkspaceFileLocation-ChEeZffU.js +1 -0
  276. package/dist/web/assets/WorkspaceGitDialogs-D_RUXhTi.js +1 -0
  277. package/dist/web/assets/{WorkspaceMonacoEditor-DfsL1WIi.js → WorkspaceMonacoEditor-BJxaiDrj.js} +3 -3
  278. package/dist/web/assets/{WorkspacePresentationPreview-WuS_B45u.js → WorkspacePresentationPreview-A28Poeca.js} +1 -1
  279. package/dist/web/assets/{chat-resources-CItQ4mZD.js → chat-resources-3SvnVeKv.js} +1 -1
  280. package/dist/web/assets/{chevron-down-Bnma8EMP.js → chevron-down-dYn0pd4Q.js} +1 -1
  281. package/dist/web/assets/chevron-right-sFx2xRvT.js +1 -0
  282. package/dist/web/assets/{chunk-24N6A6SF-BUjzKvRC.js → chunk-BYNVSWIQ-DWh9SmdB.js} +1 -1
  283. package/dist/web/assets/{chunk-GAIDBPFY-BLuHpurI.js → chunk-ZFYI4P6C-BmsNtSkR.js} +1 -1
  284. package/dist/web/assets/{client-choice-storage-BuNdhYSV.js → client-choice-storage-DTTLbrYt.js} +1 -1
  285. package/dist/web/assets/{cloud-upload-DOftANif.js → cloud-upload-CRMPCFnq.js} +1 -1
  286. package/dist/web/assets/connected-app-mentions-D3wRZLwI.js +1 -0
  287. package/dist/web/assets/copy-DR4ielPn.js +1 -0
  288. package/dist/web/assets/{createLucideIcon-C4b2afqG.js → createLucideIcon-DmttVQ_a.js} +1 -1
  289. package/dist/web/assets/{cssMode-0Hn7tCrE.js → cssMode-d-2GuNvW.js} +1 -1
  290. package/dist/web/assets/external-link-B4rPiZEp.js +1 -0
  291. package/dist/web/assets/{folder-open-wJwCoIDs.js → folder-open-BrIUcUk_.js} +1 -1
  292. package/dist/web/assets/{folder-plus-DnTN6mcP.js → folder-plus-DwImGEt-.js} +1 -1
  293. package/dist/web/assets/{git-commit-horizontal-98y7PP6G.js → git-commit-horizontal-Ds1mkrlW.js} +1 -1
  294. package/dist/web/assets/{htmlMode-JO_QluNH.js → htmlMode-s15GR0Fn.js} +1 -1
  295. package/dist/web/assets/icons-CK5-nxVC.js +1 -0
  296. package/dist/web/assets/{image-C7HVlg3X.js → image-CY-sHbfQ.js} +1 -1
  297. package/dist/web/assets/{index-BsPUniZy.js → index-DYrLeSyY.js} +2 -2
  298. package/dist/web/assets/index-Dezj4Z2p.css +1 -0
  299. package/dist/web/assets/{info-BLWDShaz.js → info-aSvM8YlJ.js} +1 -1
  300. package/dist/web/assets/{jsonMode-BfTXJted.js → jsonMode-vos9H2hz.js} +1 -1
  301. package/dist/web/assets/loader-circle-cyf35w3i.js +1 -0
  302. package/dist/web/assets/{lspLanguageFeatures-68cAgnuv.js → lspLanguageFeatures-pQmEaoMt.js} +1 -1
  303. package/dist/web/assets/{maximize-2-DUWvLap6.js → maximize-2-DgF6ZVOM.js} +1 -1
  304. package/dist/web/assets/{monaco.contribution-_3aU1TTb.js → monaco.contribution-BPwsKvRB.js} +2 -2
  305. package/dist/web/assets/{monaco.contribution-h8U8HXFT.js → monaco.contribution-BbMpa0_-.js} +2 -2
  306. package/dist/web/assets/{monaco.contribution-CWeY6ia1.js → monaco.contribution-CJlccVX3.js} +2 -2
  307. package/dist/web/assets/{monaco.contribution-DOiiDDen.js → monaco.contribution-pWurLXbm.js} +2 -2
  308. package/dist/web/assets/{monitor-B6OuAu13.js → monitor-DlEV241C.js} +1 -1
  309. package/dist/web/assets/{paperclip-DSHxP9CY.js → paperclip-fnRZSIRc.js} +1 -1
  310. package/dist/web/assets/{pdf-RXlFwNte.js → pdf-CT3zVKCE.js} +1 -1
  311. package/dist/web/assets/play-wI_3FLr4.js +1 -0
  312. package/dist/web/assets/plus-DoJe4fLj.js +1 -0
  313. package/dist/web/assets/{presentation-C9WnPDVr.js → presentation-Bb8ecExR.js} +1 -1
  314. package/dist/web/assets/profile-agent-labels-Duh96b8x.js +1 -0
  315. package/dist/web/assets/{python-BQXo7wMt.js → python-DXA1xp0A.js} +1 -1
  316. package/dist/web/assets/{refresh-cw-NXOER_CD.js → refresh-cw-B53QjxMO.js} +1 -1
  317. package/dist/web/assets/{save-BxXc21N6.js → save-V1Q4Fcqa.js} +1 -1
  318. package/dist/web/assets/settings-lists-CtH1A57b.js +5 -0
  319. package/dist/web/assets/square-BqSK-hv9.js +1 -0
  320. package/dist/web/assets/square-terminal-Dmgkm5zY.js +1 -0
  321. package/dist/web/assets/submit-issue-command-DRgUboVW.js +3 -0
  322. package/dist/web/assets/{toggleHighContrast-Di1cRuQ4.js → toggleHighContrast-B-BD2K2Q.js} +1 -1
  323. package/dist/web/assets/{training-managed-adapter-81RrdT1k.js → training-managed-adapter-BXNwgd3P.js} +1 -1
  324. package/dist/web/assets/{training-model-data-CmVo80ZR.js → training-model-data-14942K_Z.js} +5 -5
  325. package/dist/web/assets/{tsMode-PxisJRYB.js → tsMode-DdgIcxK3.js} +1 -1
  326. package/dist/web/assets/ui-theme.generated-D-mc26qt.js +144 -0
  327. package/dist/web/assets/{upload-NXasN1wU.js → upload-82Y6RjLi.js} +1 -1
  328. package/dist/web/assets/{useAccountSettings-Dqqt1vUY.js → useAccountSettings-BgHXNpq_.js} +1 -1
  329. package/dist/web/assets/{useAgentInventory-BV4CUWzJ.js → useAgentInventory-B-LNn3up.js} +1 -1
  330. package/dist/web/assets/{useLocalAgentSchedules-Cc0M_qax.js → useLocalAgentSchedules-CsKv22Hs.js} +1 -1
  331. package/dist/web/assets/{useQuery-ByaRC9SK.js → useQuery-CPC2wsWm.js} +1 -1
  332. package/dist/web/assets/{wifi-off-aVJ3AvT_.js → wifi-off-DXOoDN9l.js} +1 -1
  333. package/dist/web/assets/{workers-u92Boudu.js → workers-Clf4hKt5.js} +1 -1
  334. package/dist/web/assets/x-IPhrr4ju.js +1 -0
  335. package/dist/web/assets/{yaml-BxQUS0ew.js → yaml-I1tf8Uxx.js} +1 -1
  336. package/dist/web/index.html +12 -3
  337. package/docs/command-reference.md +28 -2
  338. package/package.json +2 -1
  339. package/dist/chunks/app-server-evaluations-HAAYVEXB.js +0 -2
  340. package/dist/chunks/app-server-runtime-B6BAJA6L.js +0 -2
  341. package/dist/chunks/chunk-4N3UF3U5.js +0 -2
  342. package/dist/chunks/chunk-6DCXAXVD.js +0 -22
  343. package/dist/chunks/chunk-BLKTUFGB.js +0 -2
  344. package/dist/chunks/chunk-E3EKBPCB.js +0 -2
  345. package/dist/chunks/chunk-F5JDBDYL.js +0 -2
  346. package/dist/chunks/chunk-JEVA7YQL.js +0 -3
  347. package/dist/chunks/chunk-KC7I6E6W.js +0 -2
  348. package/dist/chunks/chunk-OJSK4NSW.js +0 -151
  349. package/dist/chunks/chunk-UBCLPZSQ.js +0 -4
  350. package/dist/chunks/chunk-UJBEWIR3.js +0 -8
  351. package/dist/chunks/chunk-V67IFV26.js +0 -86
  352. package/dist/chunks/chunk-VSUHJ46L.js +0 -18
  353. package/dist/chunks/chunk-X3WEQL3O.js +0 -2
  354. package/dist/chunks/chunk-XK7SPL63.js +0 -2
  355. package/dist/chunks/chunk-YR5ID2SS.js +0 -2
  356. package/dist/chunks/cli-WC45SI7E.js +0 -2
  357. package/dist/chunks/connected-app-executor-TZJB25UZ.js +0 -2
  358. package/dist/chunks/experiments-IWSCFDBB.js +0 -2
  359. package/dist/chunks/host-profile-evaluation-tools-EFB2YIK2.js +0 -2
  360. package/dist/chunks/host-profile-external-dataset-KSNREH3Q.js +0 -2
  361. package/dist/chunks/hosted-app-server-composition-VV545TYL.js +0 -2
  362. package/dist/chunks/hosted-experiment-improvement-NYLADI7S.js +0 -3
  363. package/dist/chunks/hosted-harness-runtime-Z54E5MD7.js +0 -2
  364. package/dist/chunks/hosted-profile-compiler-SW2RWTDZ.js +0 -2
  365. package/dist/chunks/hosted-profile-evaluation-preparation-ZAOGDQXO.js +0 -3
  366. package/dist/chunks/local-harness-improvement-runtime-KB4OP3SM.js +0 -2
  367. package/dist/chunks/local-harness-taskset-review-SUDEUGUU.js +0 -2
  368. package/dist/chunks/opchat-KSOJEL4W.js +0 -3
  369. package/dist/chunks/project-action-payload-SQ5BSQHY.js +0 -2
  370. package/dist/chunks/refiner-profile-service-UWI4NAZ3.js +0 -2
  371. package/dist/chunks/saved-work-QA46KCME.js +0 -2
  372. package/dist/chunks/src-E7NWAN5B.js +0 -420
  373. package/dist/chunks/standalone-experiment-turn-owner-SQJ5HXDZ.js +0 -2
  374. package/dist/chunks/store-learned-preference-migration-validation-KOCW5NOZ.js +0 -2
  375. package/dist/chunks/store-taskset-drafts-TA6X245D.js +0 -9
  376. package/dist/chunks/training-hosted-4R4QTSAN.js +0 -2
  377. package/dist/chunks/training-hosted-report-UQVK6FTG.js +0 -2
  378. package/dist/web/assets/App-Df7uYQGj.css +0 -1
  379. package/dist/web/assets/App-Yy3l2sdD.js +0 -56
  380. package/dist/web/assets/AppTerminalPanel-Dqr6VS3I.js +0 -2
  381. package/dist/web/assets/AppsView-27Fl_-49.js +0 -1
  382. package/dist/web/assets/BrowserSidebar-bnI3sSZO.js +0 -1
  383. package/dist/web/assets/CommunityView-CFKM7FTY.js +0 -1
  384. package/dist/web/assets/ComposerAttachments-BdjBddKf.js +0 -2
  385. package/dist/web/assets/ComposerCreateImproveStrip-ViJ5E0We.js +0 -1
  386. package/dist/web/assets/ConversationImportsSettings-xLl-7G9R.js +0 -1
  387. package/dist/web/assets/FilePagePreview-CTHuPzJt.js +0 -2
  388. package/dist/web/assets/GetStartedView-DvV_RMgM.js +0 -1
  389. package/dist/web/assets/GettingStartedDialog-B1jFmfgd.js +0 -1
  390. package/dist/web/assets/GettingStartedDialog-C73Bdcz2.css +0 -1
  391. package/dist/web/assets/HostedModelLearningSettings-DzAiutjq.js +0 -1
  392. package/dist/web/assets/LabModelVersionDetailPage-CF8FkRUY.js +0 -1
  393. package/dist/web/assets/LabSkillSidebar-gjbl9Nlv.js +0 -1
  394. package/dist/web/assets/MainChatThread-BUKup-JB.js +0 -2
  395. package/dist/web/assets/MainPane-BpE7AKXu.js +0 -92
  396. package/dist/web/assets/NativeSkillSidebar-Br5Lk6iU.js +0 -1
  397. package/dist/web/assets/NewProjectDialog-DyuKPOvF.js +0 -1
  398. package/dist/web/assets/OutputsPage-Dl63CVrw.js +0 -1
  399. package/dist/web/assets/ProjectsPage-BNF1TiyR.js +0 -1
  400. package/dist/web/assets/RightChatPanelStack-CxVAAbp-.js +0 -1
  401. package/dist/web/assets/RightSidebarHomePanel-D46ktZg-.js +0 -1
  402. package/dist/web/assets/ScheduledWorkPage-Cp0Hf-hs.js +0 -1
  403. package/dist/web/assets/SettingsView-BT57Q5Wx.js +0 -5
  404. package/dist/web/assets/TeamChatView-BmxTJ9E5.js +0 -1
  405. package/dist/web/assets/TerminalOverlay-D-Yq8av_.js +0 -16
  406. package/dist/web/assets/TrainingCreationPanel-CwfNPj_G.js +0 -1
  407. package/dist/web/assets/WorkSidebarPanel-myTA9tsh.js +0 -1
  408. package/dist/web/assets/WorkspaceDiffPanel-D0dzFgzW.js +0 -11
  409. package/dist/web/assets/WorkspaceEnvironmentMenu-AUzME1eX.js +0 -35
  410. package/dist/web/assets/WorkspaceFileLocation-Ai8Tz2Mz.js +0 -1
  411. package/dist/web/assets/WorkspaceGitDialogs-D-UCCckC.js +0 -1
  412. package/dist/web/assets/chevron-right-Cxv_xBz5.js +0 -1
  413. package/dist/web/assets/git-dialogs-C631EFyO.css +0 -1
  414. package/dist/web/assets/icons-kaq6k88m.js +0 -1
  415. package/dist/web/assets/index-DUMDOdB2.css +0 -1
  416. package/dist/web/assets/play-BPPQoqMl.js +0 -1
  417. package/dist/web/assets/plus-D18vYzHF.js +0 -1
  418. package/dist/web/assets/settings-lists-DMNPkGYk.js +0 -5
  419. package/dist/web/assets/square-Da8RuqW4.js +0 -1
  420. package/dist/web/assets/ui-theme.generated-R0MY_Jy0.js +0 -136
@@ -1 +1 @@
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,u as f,v as p,x as m}from"./schemas-lO3MoWQr.js";import{d as h,i as g,l as _}from"./common-BMjyKlX-.js";import{t as ee}from"./profile-ref-DSNkG6Ol.js";import{d as v,f as te,i as ne}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{P as re,T as y,z as ie}from"./contracts-BHTOD1nd.js";import{B as b,G as ae,Q as x,R as S,S as oe,V as se,W as C,g as ce,m as le,o as w,p as ue,s as de,u as fe}from"./chunk-GAIDBPFY-BLuHpurI.js";var T=p().trim().min(1).max(240),E=p().regex(/^[a-f0-9]{64}$/),pe=c({id:T,name:p().trim().min(1).max(200),required:l(),role:d([`quality`,`retention`,`diagnostic`]).optional(),unit:p().trim().min(1).max(80).optional(),baselineReuse:c({maximumAgeSeconds:u().int().positive().max(31536e3),qualification:g}).strict().optional(),dataset:g,evaluator:g,executionHash:E,populationHash:E,metric:T,direction:d([`higher`,`lower`]),minimumCoverage:u().positive().max(1),threshold:u().finite(),maximumRegression:u().finite().nonnegative(),maximumSpendUsd:u().finite().positive()}).strict().superRefine((e,t)=>{e.role===`diagnostic`&&e.required&&t.addIssue({code:`custom`,message:`Diagnostic checks cannot be required acceptance gates.`})}),D=c({schemaVersion:a(`openpond.acceptancePlan.v1`),id:T,revision:u().int().positive(),checks:n(pe).min(1).max(100),maximumSpendUsd:u().finite().positive()}).strict().superRefine((e,t)=>{new Set(e.checks.map(e=>e.id)).size!==e.checks.length&&t.addIssue({code:`custom`,message:`Acceptance check IDs must be unique.`}),e.checks.some(e=>e.required)||t.addIssue({code:`custom`,message:`An acceptance plan needs at least one required check.`}),e.checks.reduce((e,t)=>e+t.maximumSpendUsd,0)>e.maximumSpendUsd+1e-9&&t.addIssue({code:`custom`,message:`Check budgets exceed the total plan budget.`})}),O=D.safeExtend({contentHash:E});function me(e){let t=D.parse(e);return{...t,contentHash:h(t)}}var he=c({runId:T,artifact:g,checkHash:E,populationHash:E,scoredPopulationHash:E,executionHash:E,evaluator:g,metric:T,expectedCount:u().int().positive(),scoredCount:u().int().nonnegative(),score:u().finite().nullable(),status:d([`pending`,`running`,`completed`,`failed`,`cancelled`]),evidenceHash:E}).strict().superRefine((e,t)=>{e.scoredCount>e.expectedCount&&t.addIssue({code:`custom`,message:`Scored count exceeds declared population.`}),e.scoredCount===0!=(e.score===null)&&t.addIssue({code:`custom`,message:`Scores require a nonempty scored population.`})}),k=p().trim().min(1).max(240),A=p().regex(/^[a-f0-9]{64}$/),j=t(),M=u().finite().nonnegative(),ge=new Set([`completed`,`failed`,`cancelled`,`budget_exhausted`]),_e=c({schemaVersion:a(`openpond.acceptanceGroupManifest.v1`),id:k,teamId:k,trainingJob:g,baseline:g,candidate:g,plan:O,maximumParallelAttempts:u().int().min(1).max(8),createdAt:j}).strict().superRefine((e,t)=>{e.plan.checks.some(e=>!e.role||!e.unit)&&t.addIssue({code:`custom`,message:`Durable acceptance checks require explicit roles and score units.`})}).safeExtend({contentHash:A}),ve=c({id:k,checkId:k,subject:d([`baseline`,`candidate`]),ordinal:u().int().positive(),dispatchId:k,state:d([`queued`,`dispatching`,`running`,`grading`,`cleaning`,`completed`,`failed`,`cancelled`,`budget_exhausted`]),artifact:g,checkHash:A,measurement:he.nullable(),executionReceipt:g.nullable(),reusedFrom:c({group:g,attemptId:k}).strict().nullable(),spendUsd:M,reservedUsd:M,cleanupComplete:l(),accountingComplete:l(),failureCode:k.nullable(),createdAt:j,updatedAt:j}).strict().superRefine((e,t)=>{Date.parse(e.updatedAt)<Date.parse(e.createdAt)&&t.addIssue({code:`custom`,message:`Attempt timestamps are reversed.`}),ge.has(e.state)&&(!e.cleanupComplete||!e.accountingComplete||e.reservedUsd!==0)&&t.addIssue({code:`custom`,message:`Terminal attempts require cleanup and settled accounting.`}),e.state===`completed`&&(e.measurement?.status!==`completed`||!e.executionReceipt)&&t.addIssue({code:`custom`,message:`Completed attempts require retained measurement and execution receipts.`}),e.reusedFrom&&(e.subject!==`baseline`||e.state!==`completed`||e.spendUsd!==0)&&t.addIssue({code:`custom`,message:`Only completed baselines may reuse retained evidence without new spend.`})}),ye=c({schemaVersion:a(`openpond.acceptanceGroupSnapshot.v1`),manifest:_e,revision:u().int().positive(),state:d([`queued`,`running`,`blocked`,`cancelling`,`cleaning`,`completed`,`failed`,`cancelled`,`budget_exhausted`]),attempts:n(ve).max(2e3),failureCode:k.nullable(),updatedAt:j}).strict().extend({contentHash:A}),be=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 xe(e){let t=x.parse(e);return!be.has(t)&&!t.startsWith(`source-artifacts/`)}function Se(e,t){let n=xe(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)?N(t):{encoding:`utf8`,data:e}}catch{r=N(t)}return{path:e,writable:n,content:r,sizeBytes:t.byteLength,contentHash:te(t)}}function N(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 P=p().regex(/^[a-f0-9]{64}$/),Ce=c({path:x,contentHash:P,sizeBytes:u().int().nonnegative(),base64:p()}).strict(),F=c({schemaVersion:a(`openpond.tasksetDraftWorkspace.v1`),draft:de,files:n(Ce).max(1e4)}).strict().extend({contentHash:P}).strict();function we(e){let t=de.parse(e.draft),n=e.now??new Date().toISOString(),r=le(t);if(r.length)throw new w(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:[Te(t,a,n)],c=s[0].id,l=t.tasks.map(e=>oe.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=Ee(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=fe.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:v(`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}}}),g=fe.parse({...h,contentHash:ue(h)}),_=ce(g,{purpose:`publication`}).issues.filter(e=>e.severity===`error`);if(_.length)throw new w(_.map(e=>({code:e.code,message:e.message,path:e.path})));return g}function Te(e,t,n){let r=v({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 Ee(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 I=p().trim().min(1).max(240),De=b.extend({revision:u().int().positive()}).strict().extend({teamId:I,jobId:I,plan:b,baseline:b,candidate:b,state:ye.shape.state,updatedAt:p().datetime()}).strict();c({schemaVersion:a(`openpond.trainingAcceptanceGroupPage.v1`),teamId:I,jobId:I,groups:n(De).max(100),nextCursor:I.nullable()}).strict(),c({cursor:I.optional(),limit:u().int().min(1).max(100).default(25)}).strict();var L=p().trim().min(1).max(191),R=p().regex(/^[a-f0-9]{64}$/),Oe=c({schemaVersion:a(`openpond.trainingPreparationRequest.v1`),teamId:L,operationId:L,projectId:L.nullable(),configuration:c({id:L,expectedRevision:u().int().positive(),expectedEtag:R}).strict(),origin:y.optional(),batch:C,name:p().trim().min(1).max(191),maximumSpendUsd:u().finite().positive().max(1e6)}).strict(),ke=c({schemaVersion:a(`openpond.trainingPreparationPlan.v1`),id:L,creatorUserId:L,request:Oe,requestHash:R,source:f(()=>W),submissionHash:R,createdAt:p().datetime({offset:!0})}).strict().extend({contentHash:R}).strict(),z=c({schemaVersion:a(`openpond.trainingPreparationReceipt.v1`),plan:ke,revision:u().int().positive(),state:d([`prepared`,`submitted`,`cancelled`]),jobId:L.nullable()}).strict().superRefine((e,t)=>{e.state===`submitted`!=!!e.jobId&&t.addIssue({code:`custom`,path:[`jobId`],message:`Only submitted preparations identify a job.`})});c({teamId:L,planHash:R,expectedRevision:u().int().positive()}).strict(),c({projectId:L.optional(),state:d([`prepared`,`submitted`,`cancelled`]).optional(),afterId:L.optional(),limit:u().int().min(1).max(100).default(25)}).strict(),c({schemaVersion:a(`openpond.trainingPreparationPage.v1`),teamId:L,items:n(z).max(100),nextCursor:L.nullable()}).strict(),c({schemaVersion:a(`openpond.trainingHarnessSourcePublication.v1`),harnessRelease:ne,sourcePackageHash:p().regex(/^[a-f0-9]{64}$/),sizeBytes:u().int().positive().max(ae)}).strict(),n(c({id:p().trim().min(1)}).catchall(m())).min(1).max(1e3),c({binding:re,rewards:n(ie).min(1).max(100)}).strict();var Ae=c({id:p().trim().min(1),clusterKey:p().trim().min(1),split:d([`train`,`validation`,`frozen_eval`])}).passthrough();c({schemaVersion:a(`openpond.trainingEvaluationSource.v1`),taskset:C,tasks:n(Ae).min(1).max(1e4),assets:n(c({path:p().trim().min(1).max(2e3),sha256:p().regex(/^[a-f0-9]{64}$/),sizeBytes:u().int().nonnegative(),encoding:a(`base64`),content:p().max(33554432)}).strict()).max(1e4)}).strict().superRefine((e,t)=>{let n=new Set;e.tasks.forEach((e,r)=>{e.split===`train`&&t.addIssue({code:`custom`,path:[`tasks`,r,`split`],message:`Evaluation sources require held-out tasks.`}),n.has(e.id)&&t.addIssue({code:`custom`,path:[`tasks`,r,`id`],message:`Evaluation task identities must be unique.`}),n.add(e.id)})});var B=p().trim().min(1).max(500),V=p().regex(/^[a-f0-9]{64}$/),H=p().datetime({offset:!0});c({schemaVersion:a(`openpond.trainingInputArtifactUpload.v2`),kind:d([`portable_training_bundle`,`reward_model_dataset`]),idempotencyKey:p().trim().min(1).max(500),sourceManifest:b,payload:m(),contentHash:V}).strict(),c({schemaVersion:a(`openpond.trainingInputArtifact.v2`),kind:d([`portable_training_bundle`,`reward_model_dataset`]),sourceManifest:b,artifactRef:p().trim().min(1).max(2e3),contentHash:V,sizeBytes:u().int().positive(),createdAt:H}).strict();var U=d([`reward_model_train`,`policy_optimize`]),je=d([`queued`,`admitting`,`provisioning`,`running`,`stopping`,`cancelling`,`succeeded`,`failed`,`cancelled`]),Me=c({id:B,version:p().trim().min(1).max(200).nullable().default(null),required:l().default(!0)}).strict(),W=c({origin:y.optional(),modelProject:c({id:B,portableProjectId:B,revision:u().int().positive(),contentHash:V}).strict(),harnessRunManifest:b,harnessRelease:b,taskset:C,tasksetRelease:b,evaluation:c({taskset:C,dataset:b}).strict().nullable().optional(),dataset:b,evidenceSets:n(b).max(1e4)}).strict(),Ne=c({kind:a(`reward_model_train`),baseModel:S,preferenceDatasetRelease:b,processorRelease:b,recipe:c({schemaVersion:a(`openpond.rewardModelRecipe.v1`),method:a(`reward_model`),parameterization:a(`lora_with_scalar_head`)}).catchall(m())}).strict(),Pe=c({kind:a(`deterministic`),grader:b,composer:b.nullable().default(null)}).strict(),Fe=c({kind:a(`learned_reward`),rewardModelVersion:b,qualificationReport:b.nullable().default(null),evaluationReferences:n(b).max(1e3).default([]),scorerArtifact:c({artifactRef:p().trim().min(1).max(2e3),contentHash:V,executionReceipt:b}).strict(),processorRelease:b,rewardComposerRelease:b}).strict(),G=S.extend({revision:p().regex(/^[a-f0-9]{40,64}$/),tokenizerRevision:p().regex(/^[a-f0-9]{40,64}$/),chatTemplateHash:V}).strict(),Ie=c({kind:a(`policy_optimize`),executionMode:a(`qualification`).optional(),baseModel:S,recipe:se,rewardSource:i(`kind`,[Pe,Fe]),resumeFrom:b.nullable().default(null)}).strict(),Le=i(`kind`,[Ne,Ie]),Re=c({approvalHash:V,approvedAt:H,exportApproved:l(),maximumSpendUsd:u().nonnegative(),retentionDays:u().int().nonnegative().nullable(),region:p().trim().min(1).max(200).nullable().default(null)}).strict();c({schemaVersion:a(`openpond.trainingJobSubmission.v2`),idempotencyKey:p().trim().min(1).max(500),name:p().trim().min(1).max(200),source:W,job:Le,requestedCapabilities:n(Me).max(1e3),placementObjective:d([`fast`,`balanced`,`economical`]),budget:c({maximumSpendUsd:u().nonnegative(),maximumWallSeconds:u().int().positive()}).strict(),approval:Re,contentHash:V}).strict().superRefine((e,t)=>{if(e.job.kind===`policy_optimize`&&e.job.executionMode===`qualification`){let n=e.job;G.safeParse(n.baseModel).success||t.addIssue({code:`custom`,path:[`job`,`baseModel`],message:`Qualification requires immutable model and tokenizer revisions and a SHA-256 chat-template pin.`}),(n.resumeFrom||n.recipe.continuation!==void 0||n.rewardSource.kind!==`deterministic`||n.recipe.method!==`grpo`)&&t.addIssue({code:`custom`,path:[`job`],message:`Qualification requires the original GRPO learner, deterministic reward, and no resume or continuation.`}),e.requestedCapabilities.some(e=>e.required&&e.id===`managed_rl.policy.qualification`&&e.version===`1`)||t.addIssue({code:`custom`,path:[`requestedCapabilities`],message:`Qualification must require managed_rl.policy.qualification@1.`})}e.approval.maximumSpendUsd!==e.budget.maximumSpendUsd&&t.addIssue({code:`custom`,path:[`approval`,`maximumSpendUsd`],message:`Approved spend must equal the immutable Job budget.`})});var K=c({schemaVersion:a(`openpond.trainingJob.v2`),id:B,teamId:B,kind:U,executionMode:a(`qualification`).optional(),modelProjectId:B,portableProjectId:B,sourceProjectRevision:u().int().positive(),submissionHash:V,state:je,phase:p().trim().min(1).max(200),version:u().int().nonnegative(),progress:u().min(0).max(1),rolloutProgress:c({groupsCompleted:u().int().nonnegative(),groupsTarget:u().int().nonnegative(),optimizerUpdatesApplied:u().int().nonnegative(),optimizerUpdatesSkipped:u().int().nonnegative()}).strict(),accruedSpendUsd:u().nonnegative(),terminalReason:p().trim().min(1).max(5e3).nullable(),createdAt:H,updatedAt:H,completedAt:H.nullable()}).strict();c({schemaVersion:a(`openpond.trainingJobPage.v2`),jobs:n(K).max(1e3),nextCursor:p().trim().min(1).max(2e3).nullable()}).strict();var ze=c({schemaVersion:a(`openpond.trainingJobEvent.v2`),id:B,jobId:B,sequence:u().int().nonnegative(),type:B,phase:p().trim().min(1).max(200),message:p().trim().min(1).max(5e3).nullable(),data:o(p(),m()).default({}),createdAt:H}).strict();c({schemaVersion:a(`openpond.trainingJobLog.v2`),jobId:B,sequence:u().int().nonnegative(),level:d([`debug`,`info`,`warning`,`error`]),message:p().max(2e4),createdAt:H}).strict(),c({expectedVersion:u().int().nonnegative()}).strict();var Be=c({schemaVersion:a(`openpond.trainingJobOutput.v2`),id:B,jobId:B,kind:d([`checkpoint`,`adapter`,`scorer`,`metrics`,`evaluation`,`trace`,`receipt`]),artifactRef:p().trim().min(1).max(2e3),contentHash:V,sizeBytes:u().int().nonnegative(),metadata:o(p(),m()).default({}),createdAt:H}).strict(),Ve=c({schemaVersion:a(`openpond.trainingQualificationEvidence.v1`),baseModel:G,group:b,rolloutReceipts:n(b).min(1).max(1e3),rewardEvidenceHash:V,groupsCompleted:a(1),optimizerUpdatesApplied:a(0),optimizerUpdatesSkipped:a(0),trainingStepsCreated:a(0),checkpointsCreated:a(0),artifactsCreated:a(0)}).strict().superRefine((e,t)=>{new Set(e.rolloutReceipts.map(e=>e.id)).size!==e.rolloutReceipts.length&&t.addIssue({code:`custom`,path:[`rolloutReceipts`],message:`Qualification rollout receipt identities must be unique.`})}),He=c({schemaVersion:a(`openpond.trainingExecutionReceipt.v2`),id:B,teamId:B,jobId:B,submissionHash:V,manifestHash:V,recipeHash:V,capabilityHash:V,runtimeRelease:b,inputs:n(b).max(1e4),outputs:n(b).max(1e4),spendUsd:u().nonnegative(),durationSeconds:u().nonnegative(),cleanupComplete:l(),qualification:Ve.optional(),issuer:B,issuedAt:H,signature:p().trim().min(1).max(1e4).nullable()}).strict(),Ue=c({schemaVersion:a(`openpond.trainingJobOutputs.v2`),outputs:n(Be).max(1e4),receipt:He.nullable()}).strict();c({schemaVersion:a(`openpond.trainingApiError.v2`),code:p().trim().min(1).max(200),message:p().trim().min(1).max(5e3),retryable:l().default(!1),requestId:p().trim().min(1).max(500).nullable().default(null),details:o(p(),m()).default({})}).strict(),c({schemaVersion:a(`openpond.trainingCapabilities.v2`),capabilityHash:V,jobKinds:n(U),methods:n(p().trim().min(1).max(200)),executionModes:n(d([`training`,`qualification`])).optional(),structuredOutputs:c({capability:a(`work.structured-output.v1`),harnessRuntimeHash:V,workHarnessHash:V,schemaHash:V,artifactHash:V,invalidDataRejected:a(!0),invalidBytesRejected:a(!0)}).strict().optional(),placements:n(d([`local`,`remote`,`colocated`,`provider_native`])),controls:c({cancel:l(),stopAfterGroup:l(),resumeFromCheckpoint:l()}).strict(),limits:c({maximumSpendUsd:u().nonnegative(),maximumWallSeconds:u().int().positive(),maximumArtifactBytes:u().int().positive()}).strict(),checkedAt:H,expiresAt:H}).strict();var q=p().trim().min(1).max(240),J=c({teamId:q,actorId:q}).strict(),Y=i(`location`,[c({location:a(`local`),jobId:q,owner:J,modelRunId:q,modelId:q,modelVersionId:q.nullable(),adapterArtifactLineageId:q.nullable()}).strict(),c({location:a(`cloud`),jobId:q,owner:J,apiOrigin:e().max(2e3),modelProjectId:q,portableProjectId:q,submissionHash:p().regex(/^[a-f0-9]{64}$/)}).strict()]),X=p().trim().min(1).max(240),We=c({location:a(`local`).default(`local`),jobId:X,modelRunId:X,modelId:X,modelVersionId:X.nullable(),adapterArtifactLineageId:X.nullable(),owner:c({teamId:X,actorId:X}).strict(),taskset:_,state:d([`prepared`,`running`,`succeeded`,`failed`,`cancelled`]),executionState:d([`queued`,`starting`,`running`,`cancelling`,`cancelled`,`succeeded`,`failed`,`reconciling`]),updatedAt:t()}).strict(),Ge=c({location:a(`cloud`),jobId:X,owner:c({teamId:X,actorId:X}).strict(),apiOrigin:e(),job:K,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.`),Ke=r([We,Ge]);function qe(e){return JSON.stringify([e.location,e.location===`cloud`?e.apiOrigin:null,e.owner.teamId,e.owner.actorId,e.jobId])}function Je(e){let t={location:e.location,jobId:e.jobId,owner:e.owner};return Y.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 Z=p().trim().min(1).max(240),Q=p().regex(/^[a-f0-9]{64}$/),Ye=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:p(),message:p(),taskId:Z.optional(),graderId:Z.optional()})).max(1e4),scopes:n(c({graderId:Z,checked:u().int().nonnegative(),total:u().int().nonnegative(),status:d([`passed`,`failed`,`unavailable`])}).strict()).max(1e3).optional()}).strict(),Xe=c({apiOrigin:e(),actorId:Z,teamId:Z,datasetId:Z,remoteRevision:u().int().nonnegative(),acknowledgedHash:Q.nullable(),remoteHash:Q.nullable(),pendingLocalHash:Q.nullable(),paused:l(),status:d([`pending`,`syncing`,`synced`,`retry`,`conflict`,`paused`]),error:p().nullable(),operationId:Z.nullable(),pendingWorkspace:F.nullable(),beginVersionOperationId:Z.nullable().optional(),publicationIntent:c({operationId:Z,expectedRevision:u().int().positive(),workspaceHash:Q,packageHash:Q,localHash:Q}).strict().nullable().optional()}).strict(),Ze=c({schemaVersion:a(`openpond.localDataset.v1`),ownerId:Z,projectId:Z.nullable(),workspace:F,checks:n(Ye).max(2),packageHash:Q.nullable(),sync:Xe.nullable()}).strict(),$=c({kind:d([`dataset`,`grader`,`experiment`]),id:Z,revision:u().int().positive(),name:p().max(500),state:p().max(100),datasetId:Z.optional(),datasetRevision:u().int().positive().optional(),taskCount:u().int().nonnegative().optional(),graderCount:u().int().nonnegative().optional(),checkState:p().optional(),syncState:p().optional(),model:p().optional(),evaluationHash:Q.optional(),graderId:Z.optional(),graderType:p().optional(),description:p().optional(),location:d([`local`,`cloud`]).optional(),scoreLabel:p().optional(),owner:c({teamId:Z,actorId:Z}).strict().optional(),contentHash:Q.optional(),profileRef:ee.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:Z,label:p(),detail:p(),score:u().nullable().optional()})).max(10)}).strict(),Qe=c({id:Z,ordinal:u().int().positive(),name:p().trim().min(1).max(500),dataset:$.nullable(),evaluationModel:p().min(1).max(500).optional(),executionLocation:d([`local`,`cloud`]).optional(),graders:n($),selectedGraderId:Z.nullable(),runs:n($),selectedRunId:Z.nullable(),training:n(Ke).optional(),selectedTrainingKey:p().max(4e3).nullable().optional(),selectedTrainingJobId:Z.nullable().optional(),turnIds:n(Z),operationId:Z,createdAt:t(),updatedAt:t()}).strict(),$e=Qe.extend({ordinal:s()});c({datasetFocus:$e.optional(),scopes:n(Qe),activeScopeId:Z.nullable(),selectionVersion:u().int().nonnegative(),selectedAt:t().nullable(),selectionOperations:o(p(),c({hash:Q,version:u().int().nonnegative(),visualPublicationId:p().optional(),resource:$.optional()}).strict()).default({})}).strict();function et(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:Z.optional(),operationId:Z.optional(),expectedRevision:u().int().nonnegative().optional(),payload:o(p(),m()).default({})}).strict();var tt=c({contentHash:Q,scope:p(),graders:m(),cases:n(c({id:Z,taskId:Z,seed:p(),status:p(),output:p().nullable(),error:p().nullable(),score:u().nullable()}).strict()).max(1e4)}).strict();export{me as _,Ke as a,Y as c,K as d,z as f,O as g,we as h,et as i,ze as l,Se as m,$ as n,qe as o,F as p,Ze as r,Je as s,tt as t,Ue as u};
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,u as f,v as p,x as m}from"./schemas-lO3MoWQr.js";import{d as h,i as g,l as _}from"./common-BMjyKlX-.js";import{t as ee}from"./profile-ref-DSNkG6Ol.js";import{d as v,f as te,i as ne}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{P as re,T as y,z as ie}from"./contracts-BHTOD1nd.js";import{B as b,G as ae,Q as x,R as S,S as oe,V as se,W as C,g as ce,m as le,o as w,p as ue,s as de,u as fe}from"./chunk-ZFYI4P6C-BmsNtSkR.js";var T=p().trim().min(1).max(240),E=p().regex(/^[a-f0-9]{64}$/),pe=c({id:T,name:p().trim().min(1).max(200),required:l(),role:d([`quality`,`retention`,`diagnostic`]).optional(),unit:p().trim().min(1).max(80).optional(),baselineReuse:c({maximumAgeSeconds:u().int().positive().max(31536e3),qualification:g}).strict().optional(),dataset:g,evaluator:g,executionHash:E,populationHash:E,metric:T,direction:d([`higher`,`lower`]),minimumCoverage:u().positive().max(1),threshold:u().finite(),maximumRegression:u().finite().nonnegative(),maximumSpendUsd:u().finite().positive()}).strict().superRefine((e,t)=>{e.role===`diagnostic`&&e.required&&t.addIssue({code:`custom`,message:`Diagnostic checks cannot be required acceptance gates.`})}),D=c({schemaVersion:a(`openpond.acceptancePlan.v1`),id:T,revision:u().int().positive(),checks:n(pe).min(1).max(100),maximumSpendUsd:u().finite().positive()}).strict().superRefine((e,t)=>{new Set(e.checks.map(e=>e.id)).size!==e.checks.length&&t.addIssue({code:`custom`,message:`Acceptance check IDs must be unique.`}),e.checks.some(e=>e.required)||t.addIssue({code:`custom`,message:`An acceptance plan needs at least one required check.`}),e.checks.reduce((e,t)=>e+t.maximumSpendUsd,0)>e.maximumSpendUsd+1e-9&&t.addIssue({code:`custom`,message:`Check budgets exceed the total plan budget.`})}),O=D.safeExtend({contentHash:E});function me(e){let t=D.parse(e);return{...t,contentHash:h(t)}}var he=c({runId:T,artifact:g,checkHash:E,populationHash:E,scoredPopulationHash:E,executionHash:E,evaluator:g,metric:T,expectedCount:u().int().positive(),scoredCount:u().int().nonnegative(),score:u().finite().nullable(),status:d([`pending`,`running`,`completed`,`failed`,`cancelled`]),evidenceHash:E}).strict().superRefine((e,t)=>{e.scoredCount>e.expectedCount&&t.addIssue({code:`custom`,message:`Scored count exceeds declared population.`}),e.scoredCount===0!=(e.score===null)&&t.addIssue({code:`custom`,message:`Scores require a nonempty scored population.`})}),k=p().trim().min(1).max(240),A=p().regex(/^[a-f0-9]{64}$/),j=t(),M=u().finite().nonnegative(),ge=new Set([`completed`,`failed`,`cancelled`,`budget_exhausted`]),_e=c({schemaVersion:a(`openpond.acceptanceGroupManifest.v1`),id:k,teamId:k,trainingJob:g,baseline:g,candidate:g,plan:O,maximumParallelAttempts:u().int().min(1).max(8),createdAt:j}).strict().superRefine((e,t)=>{e.plan.checks.some(e=>!e.role||!e.unit)&&t.addIssue({code:`custom`,message:`Durable acceptance checks require explicit roles and score units.`})}).safeExtend({contentHash:A}),ve=c({id:k,checkId:k,subject:d([`baseline`,`candidate`]),ordinal:u().int().positive(),dispatchId:k,state:d([`queued`,`dispatching`,`running`,`grading`,`cleaning`,`completed`,`failed`,`cancelled`,`budget_exhausted`]),artifact:g,checkHash:A,measurement:he.nullable(),executionReceipt:g.nullable(),reusedFrom:c({group:g,attemptId:k}).strict().nullable(),spendUsd:M,reservedUsd:M,cleanupComplete:l(),accountingComplete:l(),failureCode:k.nullable(),createdAt:j,updatedAt:j}).strict().superRefine((e,t)=>{Date.parse(e.updatedAt)<Date.parse(e.createdAt)&&t.addIssue({code:`custom`,message:`Attempt timestamps are reversed.`}),ge.has(e.state)&&(!e.cleanupComplete||!e.accountingComplete||e.reservedUsd!==0)&&t.addIssue({code:`custom`,message:`Terminal attempts require cleanup and settled accounting.`}),e.state===`completed`&&(e.measurement?.status!==`completed`||!e.executionReceipt)&&t.addIssue({code:`custom`,message:`Completed attempts require retained measurement and execution receipts.`}),e.reusedFrom&&(e.subject!==`baseline`||e.state!==`completed`||e.spendUsd!==0)&&t.addIssue({code:`custom`,message:`Only completed baselines may reuse retained evidence without new spend.`})}),ye=c({schemaVersion:a(`openpond.acceptanceGroupSnapshot.v1`),manifest:_e,revision:u().int().positive(),state:d([`queued`,`running`,`blocked`,`cancelling`,`cleaning`,`completed`,`failed`,`cancelled`,`budget_exhausted`]),attempts:n(ve).max(2e3),failureCode:k.nullable(),updatedAt:j}).strict().extend({contentHash:A}),be=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 xe(e){let t=x.parse(e);return!be.has(t)&&!t.startsWith(`source-artifacts/`)}function Se(e,t){let n=xe(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)?N(t):{encoding:`utf8`,data:e}}catch{r=N(t)}return{path:e,writable:n,content:r,sizeBytes:t.byteLength,contentHash:te(t)}}function N(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 P=p().regex(/^[a-f0-9]{64}$/),Ce=c({path:x,contentHash:P,sizeBytes:u().int().nonnegative(),base64:p()}).strict(),F=c({schemaVersion:a(`openpond.tasksetDraftWorkspace.v1`),draft:de,files:n(Ce).max(1e4)}).strict().extend({contentHash:P}).strict();function we(e){let t=de.parse(e.draft),n=e.now??new Date().toISOString(),r=le(t);if(r.length)throw new w(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:[Te(t,a,n)],c=s[0].id,l=t.tasks.map(e=>oe.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=Ee(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=fe.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:v(`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}}}),g=fe.parse({...h,contentHash:ue(h)}),_=ce(g,{purpose:`publication`}).issues.filter(e=>e.severity===`error`);if(_.length)throw new w(_.map(e=>({code:e.code,message:e.message,path:e.path})));return g}function Te(e,t,n){let r=v({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 Ee(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 I=p().trim().min(1).max(240),De=b.extend({revision:u().int().positive()}).strict().extend({teamId:I,jobId:I,plan:b,baseline:b,candidate:b,state:ye.shape.state,updatedAt:p().datetime()}).strict();c({schemaVersion:a(`openpond.trainingAcceptanceGroupPage.v1`),teamId:I,jobId:I,groups:n(De).max(100),nextCursor:I.nullable()}).strict(),c({cursor:I.optional(),limit:u().int().min(1).max(100).default(25)}).strict();var L=p().trim().min(1).max(191),R=p().regex(/^[a-f0-9]{64}$/),Oe=c({schemaVersion:a(`openpond.trainingPreparationRequest.v1`),teamId:L,operationId:L,projectId:L.nullable(),configuration:c({id:L,expectedRevision:u().int().positive(),expectedEtag:R}).strict(),origin:y.optional(),batch:C,name:p().trim().min(1).max(191),maximumSpendUsd:u().finite().positive().max(1e6)}).strict(),ke=c({schemaVersion:a(`openpond.trainingPreparationPlan.v1`),id:L,creatorUserId:L,request:Oe,requestHash:R,source:f(()=>W),submissionHash:R,createdAt:p().datetime({offset:!0})}).strict().extend({contentHash:R}).strict(),z=c({schemaVersion:a(`openpond.trainingPreparationReceipt.v1`),plan:ke,revision:u().int().positive(),state:d([`prepared`,`submitted`,`cancelled`]),jobId:L.nullable()}).strict().superRefine((e,t)=>{e.state===`submitted`!=!!e.jobId&&t.addIssue({code:`custom`,path:[`jobId`],message:`Only submitted preparations identify a job.`})});c({teamId:L,planHash:R,expectedRevision:u().int().positive()}).strict(),c({projectId:L.optional(),state:d([`prepared`,`submitted`,`cancelled`]).optional(),afterId:L.optional(),limit:u().int().min(1).max(100).default(25)}).strict(),c({schemaVersion:a(`openpond.trainingPreparationPage.v1`),teamId:L,items:n(z).max(100),nextCursor:L.nullable()}).strict(),c({schemaVersion:a(`openpond.trainingHarnessSourcePublication.v1`),harnessRelease:ne,sourcePackageHash:p().regex(/^[a-f0-9]{64}$/),sizeBytes:u().int().positive().max(ae)}).strict(),n(c({id:p().trim().min(1)}).catchall(m())).min(1).max(1e3),c({binding:re,rewards:n(ie).min(1).max(100)}).strict();var Ae=c({id:p().trim().min(1),clusterKey:p().trim().min(1),split:d([`train`,`validation`,`frozen_eval`])}).passthrough();c({schemaVersion:a(`openpond.trainingEvaluationSource.v1`),taskset:C,tasks:n(Ae).min(1).max(1e4),assets:n(c({path:p().trim().min(1).max(2e3),sha256:p().regex(/^[a-f0-9]{64}$/),sizeBytes:u().int().nonnegative(),encoding:a(`base64`),content:p().max(33554432)}).strict()).max(1e4)}).strict().superRefine((e,t)=>{let n=new Set;e.tasks.forEach((e,r)=>{e.split===`train`&&t.addIssue({code:`custom`,path:[`tasks`,r,`split`],message:`Evaluation sources require held-out tasks.`}),n.has(e.id)&&t.addIssue({code:`custom`,path:[`tasks`,r,`id`],message:`Evaluation task identities must be unique.`}),n.add(e.id)})});var B=p().trim().min(1).max(500),V=p().regex(/^[a-f0-9]{64}$/),H=p().datetime({offset:!0});c({schemaVersion:a(`openpond.trainingInputArtifactUpload.v2`),kind:d([`portable_training_bundle`,`reward_model_dataset`]),idempotencyKey:p().trim().min(1).max(500),sourceManifest:b,payload:m(),contentHash:V}).strict(),c({schemaVersion:a(`openpond.trainingInputArtifact.v2`),kind:d([`portable_training_bundle`,`reward_model_dataset`]),sourceManifest:b,artifactRef:p().trim().min(1).max(2e3),contentHash:V,sizeBytes:u().int().positive(),createdAt:H}).strict();var U=d([`reward_model_train`,`policy_optimize`]),je=d([`queued`,`admitting`,`provisioning`,`running`,`stopping`,`cancelling`,`succeeded`,`failed`,`cancelled`]),Me=c({id:B,version:p().trim().min(1).max(200).nullable().default(null),required:l().default(!0)}).strict(),W=c({origin:y.optional(),modelProject:c({id:B,portableProjectId:B,revision:u().int().positive(),contentHash:V}).strict(),harnessRunManifest:b,harnessRelease:b,taskset:C,tasksetRelease:b,evaluation:c({taskset:C,dataset:b}).strict().nullable().optional(),dataset:b,evidenceSets:n(b).max(1e4)}).strict(),Ne=c({kind:a(`reward_model_train`),baseModel:S,preferenceDatasetRelease:b,processorRelease:b,recipe:c({schemaVersion:a(`openpond.rewardModelRecipe.v1`),method:a(`reward_model`),parameterization:a(`lora_with_scalar_head`)}).catchall(m())}).strict(),Pe=c({kind:a(`deterministic`),grader:b,composer:b.nullable().default(null)}).strict(),Fe=c({kind:a(`learned_reward`),rewardModelVersion:b,qualificationReport:b.nullable().default(null),evaluationReferences:n(b).max(1e3).default([]),scorerArtifact:c({artifactRef:p().trim().min(1).max(2e3),contentHash:V,executionReceipt:b}).strict(),processorRelease:b,rewardComposerRelease:b}).strict(),G=S.extend({revision:p().regex(/^[a-f0-9]{40,64}$/),tokenizerRevision:p().regex(/^[a-f0-9]{40,64}$/),chatTemplateHash:V}).strict(),Ie=c({kind:a(`policy_optimize`),executionMode:a(`qualification`).optional(),baseModel:S,recipe:se,rewardSource:i(`kind`,[Pe,Fe]),resumeFrom:b.nullable().default(null)}).strict(),Le=i(`kind`,[Ne,Ie]),Re=c({approvalHash:V,approvedAt:H,exportApproved:l(),maximumSpendUsd:u().nonnegative(),retentionDays:u().int().nonnegative().nullable(),region:p().trim().min(1).max(200).nullable().default(null)}).strict();c({schemaVersion:a(`openpond.trainingJobSubmission.v2`),idempotencyKey:p().trim().min(1).max(500),name:p().trim().min(1).max(200),source:W,job:Le,requestedCapabilities:n(Me).max(1e3),placementObjective:d([`fast`,`balanced`,`economical`]),budget:c({maximumSpendUsd:u().nonnegative(),maximumWallSeconds:u().int().positive()}).strict(),approval:Re,contentHash:V}).strict().superRefine((e,t)=>{if(e.job.kind===`policy_optimize`&&e.job.executionMode===`qualification`){let n=e.job;G.safeParse(n.baseModel).success||t.addIssue({code:`custom`,path:[`job`,`baseModel`],message:`Qualification requires immutable model and tokenizer revisions and a SHA-256 chat-template pin.`}),(n.resumeFrom||n.recipe.continuation!==void 0||n.rewardSource.kind!==`deterministic`||n.recipe.method!==`grpo`)&&t.addIssue({code:`custom`,path:[`job`],message:`Qualification requires the original GRPO learner, deterministic reward, and no resume or continuation.`}),e.requestedCapabilities.some(e=>e.required&&e.id===`managed_rl.policy.qualification`&&e.version===`1`)||t.addIssue({code:`custom`,path:[`requestedCapabilities`],message:`Qualification must require managed_rl.policy.qualification@1.`})}e.approval.maximumSpendUsd!==e.budget.maximumSpendUsd&&t.addIssue({code:`custom`,path:[`approval`,`maximumSpendUsd`],message:`Approved spend must equal the immutable Job budget.`})});var K=c({schemaVersion:a(`openpond.trainingJob.v2`),id:B,teamId:B,kind:U,executionMode:a(`qualification`).optional(),modelProjectId:B,portableProjectId:B,sourceProjectRevision:u().int().positive(),submissionHash:V,state:je,phase:p().trim().min(1).max(200),version:u().int().nonnegative(),progress:u().min(0).max(1),rolloutProgress:c({groupsCompleted:u().int().nonnegative(),groupsTarget:u().int().nonnegative(),optimizerUpdatesApplied:u().int().nonnegative(),optimizerUpdatesSkipped:u().int().nonnegative()}).strict(),accruedSpendUsd:u().nonnegative(),terminalReason:p().trim().min(1).max(5e3).nullable(),createdAt:H,updatedAt:H,completedAt:H.nullable()}).strict();c({schemaVersion:a(`openpond.trainingJobPage.v2`),jobs:n(K).max(1e3),nextCursor:p().trim().min(1).max(2e3).nullable()}).strict();var ze=c({schemaVersion:a(`openpond.trainingJobEvent.v2`),id:B,jobId:B,sequence:u().int().nonnegative(),type:B,phase:p().trim().min(1).max(200),message:p().trim().min(1).max(5e3).nullable(),data:o(p(),m()).default({}),createdAt:H}).strict();c({schemaVersion:a(`openpond.trainingJobLog.v2`),jobId:B,sequence:u().int().nonnegative(),level:d([`debug`,`info`,`warning`,`error`]),message:p().max(2e4),createdAt:H}).strict(),c({expectedVersion:u().int().nonnegative()}).strict();var Be=c({schemaVersion:a(`openpond.trainingJobOutput.v2`),id:B,jobId:B,kind:d([`checkpoint`,`adapter`,`scorer`,`metrics`,`evaluation`,`trace`,`receipt`]),artifactRef:p().trim().min(1).max(2e3),contentHash:V,sizeBytes:u().int().nonnegative(),metadata:o(p(),m()).default({}),createdAt:H}).strict(),Ve=c({schemaVersion:a(`openpond.trainingQualificationEvidence.v1`),baseModel:G,group:b,rolloutReceipts:n(b).min(1).max(1e3),rewardEvidenceHash:V,groupsCompleted:a(1),optimizerUpdatesApplied:a(0),optimizerUpdatesSkipped:a(0),trainingStepsCreated:a(0),checkpointsCreated:a(0),artifactsCreated:a(0)}).strict().superRefine((e,t)=>{new Set(e.rolloutReceipts.map(e=>e.id)).size!==e.rolloutReceipts.length&&t.addIssue({code:`custom`,path:[`rolloutReceipts`],message:`Qualification rollout receipt identities must be unique.`})}),He=c({schemaVersion:a(`openpond.trainingExecutionReceipt.v2`),id:B,teamId:B,jobId:B,submissionHash:V,manifestHash:V,recipeHash:V,capabilityHash:V,runtimeRelease:b,inputs:n(b).max(1e4),outputs:n(b).max(1e4),spendUsd:u().nonnegative(),durationSeconds:u().nonnegative(),cleanupComplete:l(),qualification:Ve.optional(),issuer:B,issuedAt:H,signature:p().trim().min(1).max(1e4).nullable()}).strict(),Ue=c({schemaVersion:a(`openpond.trainingJobOutputs.v2`),outputs:n(Be).max(1e4),receipt:He.nullable()}).strict();c({schemaVersion:a(`openpond.trainingApiError.v2`),code:p().trim().min(1).max(200),message:p().trim().min(1).max(5e3),retryable:l().default(!1),requestId:p().trim().min(1).max(500).nullable().default(null),details:o(p(),m()).default({})}).strict(),c({schemaVersion:a(`openpond.trainingCapabilities.v2`),capabilityHash:V,jobKinds:n(U),methods:n(p().trim().min(1).max(200)),executionModes:n(d([`training`,`qualification`])).optional(),structuredOutputs:c({capability:a(`work.structured-output.v1`),harnessRuntimeHash:V,workHarnessHash:V,schemaHash:V,artifactHash:V,invalidDataRejected:a(!0),invalidBytesRejected:a(!0)}).strict().optional(),placements:n(d([`local`,`remote`,`colocated`,`provider_native`])),controls:c({cancel:l(),stopAfterGroup:l(),resumeFromCheckpoint:l()}).strict(),limits:c({maximumSpendUsd:u().nonnegative(),maximumWallSeconds:u().int().positive(),maximumArtifactBytes:u().int().positive()}).strict(),checkedAt:H,expiresAt:H}).strict();var q=p().trim().min(1).max(240),J=c({teamId:q,actorId:q}).strict(),Y=i(`location`,[c({location:a(`local`),jobId:q,owner:J,modelRunId:q,modelId:q,modelVersionId:q.nullable(),adapterArtifactLineageId:q.nullable()}).strict(),c({location:a(`cloud`),jobId:q,owner:J,apiOrigin:e().max(2e3),modelProjectId:q,portableProjectId:q,submissionHash:p().regex(/^[a-f0-9]{64}$/)}).strict()]),X=p().trim().min(1).max(240),We=c({location:a(`local`).default(`local`),jobId:X,modelRunId:X,modelId:X,modelVersionId:X.nullable(),adapterArtifactLineageId:X.nullable(),owner:c({teamId:X,actorId:X}).strict(),taskset:_,state:d([`prepared`,`running`,`succeeded`,`failed`,`cancelled`]),executionState:d([`queued`,`starting`,`running`,`cancelling`,`cancelled`,`succeeded`,`failed`,`reconciling`]),updatedAt:t()}).strict(),Ge=c({location:a(`cloud`),jobId:X,owner:c({teamId:X,actorId:X}).strict(),apiOrigin:e(),job:K,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.`),Ke=r([We,Ge]);function qe(e){return JSON.stringify([e.location,e.location===`cloud`?e.apiOrigin:null,e.owner.teamId,e.owner.actorId,e.jobId])}function Je(e){let t={location:e.location,jobId:e.jobId,owner:e.owner};return Y.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 Z=p().trim().min(1).max(240),Q=p().regex(/^[a-f0-9]{64}$/),Ye=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:p(),message:p(),taskId:Z.optional(),graderId:Z.optional()})).max(1e4),scopes:n(c({graderId:Z,checked:u().int().nonnegative(),total:u().int().nonnegative(),status:d([`passed`,`failed`,`unavailable`])}).strict()).max(1e3).optional()}).strict(),Xe=c({apiOrigin:e(),actorId:Z,teamId:Z,datasetId:Z,remoteRevision:u().int().nonnegative(),acknowledgedHash:Q.nullable(),remoteHash:Q.nullable(),pendingLocalHash:Q.nullable(),paused:l(),status:d([`pending`,`syncing`,`synced`,`retry`,`conflict`,`paused`]),error:p().nullable(),operationId:Z.nullable(),pendingWorkspace:F.nullable(),beginVersionOperationId:Z.nullable().optional(),publicationIntent:c({operationId:Z,expectedRevision:u().int().positive(),workspaceHash:Q,packageHash:Q,localHash:Q}).strict().nullable().optional()}).strict(),Ze=c({schemaVersion:a(`openpond.localDataset.v1`),ownerId:Z,projectId:Z.nullable(),workspace:F,checks:n(Ye).max(2),packageHash:Q.nullable(),sync:Xe.nullable()}).strict(),$=c({kind:d([`dataset`,`grader`,`experiment`]),id:Z,revision:u().int().positive(),name:p().max(500),state:p().max(100),datasetId:Z.optional(),datasetRevision:u().int().positive().optional(),taskCount:u().int().nonnegative().optional(),graderCount:u().int().nonnegative().optional(),checkState:p().optional(),syncState:p().optional(),model:p().optional(),evaluationHash:Q.optional(),graderId:Z.optional(),graderType:p().optional(),description:p().optional(),location:d([`local`,`cloud`]).optional(),scoreLabel:p().optional(),owner:c({teamId:Z,actorId:Z}).strict().optional(),contentHash:Q.optional(),profileRef:ee.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:Z,label:p(),detail:p(),score:u().nullable().optional()})).max(10)}).strict(),Qe=c({id:Z,ordinal:u().int().positive(),name:p().trim().min(1).max(500),dataset:$.nullable(),evaluationModel:p().min(1).max(500).optional(),executionLocation:d([`local`,`cloud`]).optional(),graders:n($),selectedGraderId:Z.nullable(),runs:n($),selectedRunId:Z.nullable(),training:n(Ke).optional(),selectedTrainingKey:p().max(4e3).nullable().optional(),selectedTrainingJobId:Z.nullable().optional(),turnIds:n(Z),operationId:Z,createdAt:t(),updatedAt:t()}).strict(),$e=Qe.extend({ordinal:s()});c({datasetFocus:$e.optional(),scopes:n(Qe),activeScopeId:Z.nullable(),selectionVersion:u().int().nonnegative(),selectedAt:t().nullable(),selectionOperations:o(p(),c({hash:Q,version:u().int().nonnegative(),visualPublicationId:p().optional(),resource:$.optional()}).strict()).default({})}).strict();function et(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:Z.optional(),operationId:Z.optional(),expectedRevision:u().int().nonnegative().optional(),payload:o(p(),m()).default({})}).strict();var tt=c({contentHash:Q,scope:p(),graders:m(),cases:n(c({id:Z,taskId:Z,seed:p(),status:p(),output:p().nullable(),error:p().nullable(),score:u().nullable()}).strict()).max(1e4)}).strict();export{me as _,Ke as a,Y as c,K as d,z as f,O as g,we as h,et as i,ze as l,Se as m,$ as n,qe as o,F as p,Ze as r,Je as s,tt as t,Ue as u};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -1 +1 @@
1
- import{T as e,a as t,c as n,d as r,l as i,m as a,o,p as s,r as c,v as l}from"./schemas-lO3MoWQr.js";import{E as u,d,i as f}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{E as ee,R as te}from"./contracts-BHTOD1nd.js";import{p}from"./chat-resources-CItQ4mZD.js";import{F as m,I as h,N as g,P as _}from"./chunk-GAIDBPFY-BLuHpurI.js";var v=s().int().nonnegative().nullable();a({requestId:l().min(1),startedAt:l().datetime(),provider:l(),model:l(),mode:l(),status:l(),source:l(),projectId:l().nullable(),inputTokens:v,cachedInputTokens:v,outputTokens:v,totalTokens:v}).strict();var y=s().int().nonnegative(),b=a({invocations:y,inputTokens:y,cachedInputTokens:y,outputTokens:y,totalTokens:y,missingInput:y,missingCachedInput:y,missingOutput:y,missingTotal:y,failures:y,unattributed:y}).strict(),x=a({total:b,days:t(b.extend({key:l().regex(/^\d{4}-\d{2}-\d{2}$/)})),modes:t(b.extend({key:l()})),models:t(b.extend({key:l()}))}).strict(),S=l().trim().min(1).max(500),C=l().regex(/^[a-f0-9]{64}$/),w=e(),T=s().int().nonnegative().max(1e6),ne=a({sourceKeyHash:C,nativeRevisionHash:C.nullable(),state:c([`reading`,`admitted`,`skipped`,`failed`]),reason:c([`no_eligible_boundaries`,`native_session_not_ready`,`source_read_failed`,`source_revision_unavailable`]).nullable(),unknownTimeBoundaries:T,normalized:t(a({sessionHash:C,boundaries:t(a({id:S,inputHash:C,revisionHash:C,occurredAt:w}).strict()).max(5e3)}).strict()).max(1e3)}).strict(),re=a({schemaVersion:r(`openpond.collectorCoverageManifest.v1`),jobId:S,connectionId:S,connectionRevision:s().int().positive(),machineId:S,sourceInstanceId:S,from:w.nullable(),to:w,startedAt:w,finishedAt:w.nullable(),listingComplete:o(),pendingOperations:T,sessions:t(ne).max(1e4)}).strict().superRefine((e,t)=>{e.from!==null&&Date.parse(e.from)>=Date.parse(e.to)&&t.addIssue({code:`custom`,message:`Collector source window is empty.`}),e.finishedAt!==null&&Date.parse(e.finishedAt)<Date.parse(e.startedAt)&&t.addIssue({code:`custom`,message:`Collector finish time precedes its start.`}),new Set(e.sessions.map(e=>e.sourceKeyHash)).size!==e.sessions.length&&t.addIssue({code:`custom`,message:`Collector source inventory is duplicated.`});let n=0;for(let r of e.sessions)for(let i of r.normalized){n+=i.boundaries.length,new Set(i.boundaries.map(e=>e.id)).size!==i.boundaries.length&&t.addIssue({code:`custom`,message:`Normalized source boundaries are duplicated.`});for(let n of i.boundaries)(Date.parse(n.occurredAt)>=Date.parse(e.to)||e.from!==null&&Date.parse(n.occurredAt)<Date.parse(e.from))&&t.addIssue({code:`custom`,message:`Eligible boundary is outside the declared event-time window.`})}n>2e4&&t.addIssue({code:`custom`,message:`Collector coverage exceeds its bounded boundary inventory.`})}),ie=a({jobId:S,manifestHash:C,sourceInventoryHash:C,eligibleBoundaryHash:C,from:w.nullable(),to:w,finishedAt:w.nullable(),conversations:T,eligibleTurns:T,admittedSessions:T,skippedSessions:T,failedSessions:T,unknownTimeBoundaries:T,pendingOperations:T,listingComplete:o(),complete:o()}).strict(),ae=l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),E=l().max(3e6),D=a({hash:ae,base64:E}).strict(),O=a({schemaVersion:r(`openpond.connectedGitFileProof.v1`),path:l().min(1).max(1e3).refine(e=>!/[\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).length<=32&&e.split(`/`).every(e=>e&&e!==`.`&&e!==`..`&&e!==`.git`&&!e.startsWith(`.env`))),commit:D,trees:t(D).min(1).max(32),contentsBase64:E}).strict(),k=l().trim().min(1).max(500),oe=l().regex(/^[a-f0-9]{64}$/),A=a({id:k,revision:s().int().positive(),contentHash:oe}).strict(),j=a({schemaVersion:r(`openpond.hostedTasksetSummary.v1`),id:k,teamId:k,release:A,name:l().min(1).max(500),description:l().max(2e4),taskCount:s().int().nonnegative(),buildIntent:l().min(1).max(100),methodHint:l().min(1).max(100).nullable(),packageBytes:s().int().nonnegative().nullable(),storedBytes:s().int().nonnegative().nullable(),createdAt:l().datetime({offset:!0})}).strict();a({afterId:l().trim().min(1).max(2e3).optional(),limit:s().int().min(1).max(100).default(30),modelProjectId:k.optional(),projectId:k.optional(),search:l().trim().max(100).optional(),sort:c([`id`,`name`,`updated`]).default(`id`)}).strict(),a({items:t(j).max(100),nextCursor:l().trim().min(1).max(2e3).nullable()}).strict(),a({code:l().min(1),message:l().min(1)}).strict();var M=l().trim().min(1).max(500),N=l().regex(/^[a-f0-9]{64}$/);a({teamId:M,ownerUserId:M}).strict();var P=a({id:M,snapshotHash:N,boundaryId:M,boundaryRevisionHash:N}).strict(),F=a({sourceId:M,source:h,sessionId:M,snapshotHash:N,title:l().max(500),projectId:M.nullable(),capturedAt:l().datetime(),boundaries:t(_.omit({start:!0,end:!0})).max(g.boundaries)}).strict();a({operationId:M,conversationId:M.optional(),cursor:M.optional(),limit:s().int().min(1).max(50).default(20)}).strict();var I=a({hash:N,parts:s().int().min(1).max(1500)}).strict();I.extend({index:s().int().nonnegative().max(1499),base64:l().max(35e4)}).strict(),a({path:l().min(1).max(500),encoding:c([`utf8`,`zstd`]),base64:l()}).strict();var L=a({upload:I,source:c([`codex`,`claude_code`,`hermes`,`openclaw`,`opencode`,`grok_build`,`pi`,`oh_my_pi`]),branchLeafId:M.optional(),acquisition:a({machineId:M,sourceInstanceId:M}).strict().optional(),destination:n(`kind`,[a({kind:r(`existing`),projectId:M}).strict(),a({kind:r(`new`),name:l().trim().min(1).max(200)}).strict()])}).strict(),R=L.extend({operationId:M,previewHash:N,selection:t(a({sessionHash:N,boundaryIds:t(M).min(1).max(g.boundaries)}).strict()).min(1).max(g.sessions)}).strict(),z=a({from:l().datetime(),to:l().datetime(),projectId:M.optional()}).strict(),se=a({teamId:M,range:z,activity:a({conversations:s().int().nonnegative(),turns:s().int().nonnegative(),chatTurns:s().int().nonnegative(),workTurns:s().int().nonnegative()}).strict(),accounting:a({contextSnapshots:s().int().nonnegative()}).strict(),usage:x}).strict(),B=l().trim().min(1).max(240),V=l().regex(/^[a-f0-9]{64}$/);a({cursor:l().trim().min(1).max(2e3).optional(),projectId:B.optional(),search:l().trim().max(100).optional(),sort:c([`id`,`name`,`updated`]).default(`id`),limit:s().int().min(1).max(100).default(100)}).strict(),a({operationId:B,expectedRevision:s().int().nonnegative(),originProjectId:B.optional(),workspace:p,ownerScope:c([`workspace`,`personal`]).optional()}).strict().superRefine((e,t)=>{e.workspace.draft.modelScope!==null&&t.addIssue({code:`custom`,message:`Independent datasets cannot carry Model-owned draft preparation.`}),e.workspace.draft.status!==`draft`&&t.addIssue({code:`custom`,message:`Only draft workspaces can be saved.`})});var H=a({schemaVersion:r(`openpond.datasetWorkspaceReceipt.v1`),teamId:B,datasetId:B,revision:s().int().positive(),originProjectId:B.optional(),workspace:p,ownerScope:c([`workspace`,`personal`]).optional(),publication:a({tasksetId:B,release:A,packageHash:V}).strict().nullable()}).strict().superRefine((e,t)=>{(e.workspace.draft.id!==e.datasetId||e.workspace.draft.profileId!==e.teamId||e.workspace.draft.revision!==e.revision||e.workspace.draft.modelScope!==null)&&t.addIssue({code:`custom`,message:`Dataset workspace scope/revision mismatch.`})});a({operationId:B,expectedRevision:s().int().positive(),workspaceHash:V,packageHash:V}).strict(),a({operationId:B,expectedRevision:s().int().positive()}).strict(),a({teamId:B,datasetId:B,items:t(a({workspaceRevision:s().int().positive(),publication:H.shape.publication.unwrap(),publishedAt:e()}).strict()).max(25),nextBeforeRevision:s().int().positive().nullable()}).strict(),a({teamId:B,datasets:t(a({id:B,revision:s().int().positive(),originProjectId:B.optional(),name:l(),status:c([`draft`,`published`]),ownerScope:c([`workspace`,`personal`]).optional(),taskCount:s().int().nonnegative().optional(),publication:H.shape.publication,updatedAt:l().datetime()}).strict()).max(100),nextCursor:l().trim().min(1).max(2e3).nullable()}).strict(),a({teamId:B,datasetId:B,revision:s().int().positive(),workspaceHash:V,packageHash:V,release:A}).strict();var U=l().trim().min(1).max(240),W=l().regex(/^[a-f0-9]{64}$/);a({operationId:U,source:P,proofs:t(O).min(1).max(100)}).strict().superRefine((e,t)=>{new Set(e.proofs.map(e=>e.path)).size!==e.proofs.length&&t.addIssue({code:`custom`,message:`Select each starting path once.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>15728640&&t.addIssue({code:`custom`,message:`Starting assets exceed the retained upload allowance.`})});var G=a({path:O.shape.path,commitHash:l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),gitObjectHash:l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),mode:c([`100644`,`100755`]),sizeBytes:s().int().nonnegative().max(2097152),sha256:W}).strict();a({schemaVersion:r(`openpond.connectedStartingAssetsReceipt.v1`),id:U,operationId:U,teamId:U,ownerUserId:U,projectId:U,requestHash:W,source:P,inputHash:W,observationHash:W,assets:t(G).min(1).max(100),selectedPathsUnmodified:r(!0),dependencyClosureQualified:r(!1),createdAt:e(),receiptHash:W}).strict();var K=l().min(1).max(200),q=l().regex(/^[a-f0-9]{64}$/),J=a({operationId:K,name:l().trim().min(1).max(500),projectId:K,dataset:f.extend({revision:s().int().positive()}).strict(),caseIds:t(K).min(1).max(1e4)}).strict().superRefine((e,t)=>{new Set(e.caseIds).size!==e.caseIds.length&&t.addIssue({code:`custom`,message:`Select each case once.`})}),ce=P.extend({inputHash:q,outputHash:q.nullable(),task:u,taskHash:q}).strict(),le=a({schemaVersion:r(`openpond.connectedRecordedExecution.v1`),id:K,teamId:K,ownerUserId:K,request:J,manifest:ee,sources:t(ce).min(1).max(1e4),contentHash:q}).strict();function ue(e){let t=le.parse(e),{contentHash:n,...r}=t,{contentHash:i,...a}=t.manifest;if(d(r)!==n||d(a)!==i||t.manifest.teamId!==t.teamId||t.manifest.id!==t.id||t.manifest.operationId!==t.request.operationId||d(t.manifest.dataset)!==d(t.request.dataset)||t.sources.length!==t.request.caseIds.length||t.sources.length!==t.manifest.population.length||t.sources.some((e,n)=>e.taskHash!==d(e.task)||e.task.id!==t.request.caseIds[n]||e.boundaryId!==e.task.id||t.manifest.population[n]?.caseId!==e.boundaryId))throw Error(`Recorded execution identity or population integrity failed.`);return t}a({projectId:K.optional(),cursor:K.optional(),limit:s().int().min(1).max(50).default(20)}).strict();var de=a({id:K,teamId:K,ownerUserId:K,projectId:K,name:l().min(1).max(500),dataset:J.shape.dataset,manifestHash:q,contentHash:q,caseCount:s().int().min(1).max(1e4),createdAt:l().datetime()}).strict();a({teamId:K,items:t(de).max(50),nextCursor:K.nullable()}).strict(),a({datasetId:l().trim().min(1).max(240),expectedRevision:s().int().positive(),operationId:l().trim().min(1).max(240),graders:t(te).min(1).max(100).optional()}).strict().superRefine((e,t)=>{e.graders&&new Set(e.graders.map(e=>e.id)).size!==e.graders.length&&t.addIssue({code:`custom`,path:[`graders`],message:`Choose one exact revision of each grader.`})});var Y=l().min(1).max(500),X=s().int().nonnegative();a({teamId:Y,ownerUserId:Y,projectId:Y.nullable(),status:c([`active`,`paused`,`archived`]),revision:X,state:c([`collecting`,`pending`,`attention`,`paused`,`archived`]),lastReconciledAt:l().datetime().nullable(),lastCapturedAt:l().datetime().nullable(),historyDays:s().int().positive(),sources:X,tasks:X,datasets:t(a({datasetId:Y,projection:c([`turn`,`conversation`]),revision:X}).strict()).max(2),latestBatch:a({operationId:Y,updatedAt:l().datetime(),scanned:X,captured:X,unchanged:X,pending:X,failed:X,excluded:X,paused:X,hasMore:o()}).strict().nullable()}).strict();var Z=l().min(1).max(500),Q=l().regex(/^[a-f0-9]{64}$/),fe=a({teamId:Z,projectId:Z.nullable(),status:c([`active`,`paused`,`archived`]),revision:s().int().nonnegative()}).strict(),pe=a({teamId:Z,operationId:Z,projectId:Z.nullable(),outcomes:t(a({conversationId:Z,state:c([`captured`,`unchanged`,`pending`,`paused`,`excluded`,`failed`]),sourceId:Z.optional(),snapshotHash:Q.optional(),reason:l().optional()}).strict()).max(50),nextCursor:Z.nullable()}).strict(),me=a({teamId:Z,ref:P,origin:F.shape.source,sessionId:Z,projectId:Z,capturedAt:l().datetime(),unmappedEvidence:a({count:s().int().nonnegative().max(1e5),contentHash:Q}).strict(),evidence:a({input:t(m),observed:t(m),answer:i(),boundary:_}).strict()}).strict(),he=a({teamId:Z,sourceId:Z,snapshotHash:Q,contentHash:Q,count:s().int().nonnegative(),offset:s().int().nonnegative(),events:t(m).max(50),nextOffset:s().int().nonnegative().nullable()}).strict(),ge=a({teamId:Z,source:L.shape.source,sourceHash:Q,previewHash:Q,destination:L.shape.destination,issues:t(a({file:l(),message:l()}).strict()).max(100),sessions:t(a({sessionHash:Q,sessionId:Z,origin:F.shape.source,exporterVersion:l().nullable(),eventCount:s().int().nonnegative(),boundaries:t(a({id:Z,projection:c([`turn`,`conversation`]),answer:o(),process:c([`retained`,`partial`,`absent`]),terminal:c([`completed`,`failed`,`cancelled`,`unknown`])}).strict()).max(5001),warnings:t(l()).max(100),sample:t(a({role:c([`user`,`assistant`,`system`,`tool`]).nullable(),text:l().max(4e3)}).strict()).max(3)}).strict()).max(1e3)}).strict(),_e=a({teamId:Z,operationId:Z,requestHash:Q,previewHash:Q,projectId:Z.optional(),state:c([`admitting`,`publishing`,`completed`,`failed`]),outcomes:t(a({sessionHash:Q,sourceId:Z,status:c([`imported`,`already_present`]),datasets:t(a({datasetId:Z,revision:s().int().positive(),changed:o()}).strict()).max(2)}).strict()).max(1e3),error:l().optional()}).strict(),$=l().trim().min(1).max(240);a({id:$,expectedRevision:s().int().positive(),manifest:re}).strict().refine(e=>e.id===e.manifest.connectionId&&e.expectedRevision===e.manifest.connectionRevision,`Collector coverage scope differs from its connection.`),a({id:$,cutoff:e().optional()}).strict(),a({schemaVersion:r(`openpond.connectedSyncCoverageReceipt.v1`),id:$,teamId:$,ownerUserId:$,connectionId:$,connectionRevision:s().int().positive(),receivedAt:e(),summary:ie}).strict(),a({id:$,source:L.shape.source,machineId:$,sourceInstanceId:$,sourceLabel:l().trim().min(1).max(200),sourceRoot:l().min(1).max(2e3),destination:L.shape.destination,since:l().datetime().nullable(),keepSyncing:o(),expectedRevision:s().int().nonnegative()}).strict(),a({id:$,expectedRevision:s().int().positive(),action:c([`pause`,`resume`,`disconnect`])}).strict(),a({id:$,operationId:$,expectedRevision:s().int().positive()}).strict(),a({id:$,expectedRevision:s().int().positive(),pendingOperations:s().int().min(0).max(1e4),error:l().max(500).nullable(),completedSyncRevision:s().int().nonnegative().default(0)}).strict(),a({teamId:$,id:$,revision:s().int().positive(),source:L.shape.source,sourceLabel:l(),sourceRoot:l(),taskDatasetId:$.nullable(),conversationDatasetId:$.nullable(),machineId:$,sourceInstanceId:$,projectId:$,datasetIds:t($).max(2),since:l().datetime().nullable(),keepSyncing:o(),state:c([`active`,`paused`,`disconnected`]),health:c([`online`,`offline`]),lastHeartbeatAt:l().datetime().nullable(),lastAdmissionAt:l().datetime().nullable(),pendingOperations:s().int().nonnegative(),admittedTasks:s().int().nonnegative(),error:l().nullable(),requestedSyncRevision:s().int().nonnegative().default(0),completedSyncRevision:s().int().nonnegative().default(0),syncRequestedAt:l().datetime().nullable().default(null),syncCompletedAt:l().datetime().nullable().default(null)}).strict().refine(e=>e.completedSyncRevision<=e.requestedSyncRevision&&e.requestedSyncRevision<=e.revision,`Invalid sync acknowledgement generation.`),a({connectionId:$,expectedRevision:s().int().positive(),request:R}).strict();export{fe as a,R as c,F as d,G as f,A as h,me as i,P as l,j as m,_e as n,he as o,H as p,pe as r,ue as s,ge as t,se as u};
1
+ import{T as e,a as t,c as n,d as r,l as i,m as a,o,p as s,r as c,v as l}from"./schemas-lO3MoWQr.js";import{E as u,d,i as f}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{E as ee,R as te}from"./contracts-BHTOD1nd.js";import{p}from"./chat-resources-3SvnVeKv.js";import{F as m,I as h,N as g,P as _}from"./chunk-ZFYI4P6C-BmsNtSkR.js";var v=s().int().nonnegative().nullable();a({requestId:l().min(1),startedAt:l().datetime(),provider:l(),model:l(),mode:l(),status:l(),source:l(),projectId:l().nullable(),inputTokens:v,cachedInputTokens:v,outputTokens:v,totalTokens:v}).strict();var y=s().int().nonnegative(),b=a({invocations:y,inputTokens:y,cachedInputTokens:y,outputTokens:y,totalTokens:y,missingInput:y,missingCachedInput:y,missingOutput:y,missingTotal:y,failures:y,unattributed:y}).strict(),x=a({total:b,days:t(b.extend({key:l().regex(/^\d{4}-\d{2}-\d{2}$/)})),modes:t(b.extend({key:l()})),models:t(b.extend({key:l()}))}).strict(),S=l().trim().min(1).max(500),C=l().regex(/^[a-f0-9]{64}$/),w=e(),T=s().int().nonnegative().max(1e6),ne=a({sourceKeyHash:C,nativeRevisionHash:C.nullable(),state:c([`reading`,`admitted`,`skipped`,`failed`]),reason:c([`no_eligible_boundaries`,`native_session_not_ready`,`source_read_failed`,`source_revision_unavailable`]).nullable(),unknownTimeBoundaries:T,normalized:t(a({sessionHash:C,boundaries:t(a({id:S,inputHash:C,revisionHash:C,occurredAt:w}).strict()).max(5e3)}).strict()).max(1e3)}).strict(),re=a({schemaVersion:r(`openpond.collectorCoverageManifest.v1`),jobId:S,connectionId:S,connectionRevision:s().int().positive(),machineId:S,sourceInstanceId:S,from:w.nullable(),to:w,startedAt:w,finishedAt:w.nullable(),listingComplete:o(),pendingOperations:T,sessions:t(ne).max(1e4)}).strict().superRefine((e,t)=>{e.from!==null&&Date.parse(e.from)>=Date.parse(e.to)&&t.addIssue({code:`custom`,message:`Collector source window is empty.`}),e.finishedAt!==null&&Date.parse(e.finishedAt)<Date.parse(e.startedAt)&&t.addIssue({code:`custom`,message:`Collector finish time precedes its start.`}),new Set(e.sessions.map(e=>e.sourceKeyHash)).size!==e.sessions.length&&t.addIssue({code:`custom`,message:`Collector source inventory is duplicated.`});let n=0;for(let r of e.sessions)for(let i of r.normalized){n+=i.boundaries.length,new Set(i.boundaries.map(e=>e.id)).size!==i.boundaries.length&&t.addIssue({code:`custom`,message:`Normalized source boundaries are duplicated.`});for(let n of i.boundaries)(Date.parse(n.occurredAt)>=Date.parse(e.to)||e.from!==null&&Date.parse(n.occurredAt)<Date.parse(e.from))&&t.addIssue({code:`custom`,message:`Eligible boundary is outside the declared event-time window.`})}n>2e4&&t.addIssue({code:`custom`,message:`Collector coverage exceeds its bounded boundary inventory.`})}),ie=a({jobId:S,manifestHash:C,sourceInventoryHash:C,eligibleBoundaryHash:C,from:w.nullable(),to:w,finishedAt:w.nullable(),conversations:T,eligibleTurns:T,admittedSessions:T,skippedSessions:T,failedSessions:T,unknownTimeBoundaries:T,pendingOperations:T,listingComplete:o(),complete:o()}).strict(),ae=l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),E=l().max(3e6),D=a({hash:ae,base64:E}).strict(),O=a({schemaVersion:r(`openpond.connectedGitFileProof.v1`),path:l().min(1).max(1e3).refine(e=>!/[\x00-\x1f\x7f]/.test(e)&&!e.startsWith(`/`)&&!e.includes(`\\`)&&e.split(`/`).length<=32&&e.split(`/`).every(e=>e&&e!==`.`&&e!==`..`&&e!==`.git`&&!e.startsWith(`.env`))),commit:D,trees:t(D).min(1).max(32),contentsBase64:E}).strict(),k=l().trim().min(1).max(500),oe=l().regex(/^[a-f0-9]{64}$/),A=a({id:k,revision:s().int().positive(),contentHash:oe}).strict(),j=a({schemaVersion:r(`openpond.hostedTasksetSummary.v1`),id:k,teamId:k,release:A,name:l().min(1).max(500),description:l().max(2e4),taskCount:s().int().nonnegative(),buildIntent:l().min(1).max(100),methodHint:l().min(1).max(100).nullable(),packageBytes:s().int().nonnegative().nullable(),storedBytes:s().int().nonnegative().nullable(),createdAt:l().datetime({offset:!0})}).strict();a({afterId:l().trim().min(1).max(2e3).optional(),limit:s().int().min(1).max(100).default(30),modelProjectId:k.optional(),projectId:k.optional(),search:l().trim().max(100).optional(),sort:c([`id`,`name`,`updated`]).default(`id`)}).strict(),a({items:t(j).max(100),nextCursor:l().trim().min(1).max(2e3).nullable()}).strict(),a({code:l().min(1),message:l().min(1)}).strict();var M=l().trim().min(1).max(500),N=l().regex(/^[a-f0-9]{64}$/);a({teamId:M,ownerUserId:M}).strict();var P=a({id:M,snapshotHash:N,boundaryId:M,boundaryRevisionHash:N}).strict(),F=a({sourceId:M,source:h,sessionId:M,snapshotHash:N,title:l().max(500),projectId:M.nullable(),capturedAt:l().datetime(),boundaries:t(_.omit({start:!0,end:!0})).max(g.boundaries)}).strict();a({operationId:M,conversationId:M.optional(),cursor:M.optional(),limit:s().int().min(1).max(50).default(20)}).strict();var I=a({hash:N,parts:s().int().min(1).max(1500)}).strict();I.extend({index:s().int().nonnegative().max(1499),base64:l().max(35e4)}).strict(),a({path:l().min(1).max(500),encoding:c([`utf8`,`zstd`]),base64:l()}).strict();var L=a({upload:I,source:c([`codex`,`claude_code`,`hermes`,`openclaw`,`opencode`,`grok_build`,`pi`,`oh_my_pi`]),branchLeafId:M.optional(),acquisition:a({machineId:M,sourceInstanceId:M}).strict().optional(),destination:n(`kind`,[a({kind:r(`existing`),projectId:M}).strict(),a({kind:r(`new`),name:l().trim().min(1).max(200)}).strict()])}).strict(),R=L.extend({operationId:M,previewHash:N,selection:t(a({sessionHash:N,boundaryIds:t(M).min(1).max(g.boundaries)}).strict()).min(1).max(g.sessions)}).strict(),z=a({from:l().datetime(),to:l().datetime(),projectId:M.optional()}).strict(),se=a({teamId:M,range:z,activity:a({conversations:s().int().nonnegative(),turns:s().int().nonnegative(),chatTurns:s().int().nonnegative(),workTurns:s().int().nonnegative()}).strict(),accounting:a({contextSnapshots:s().int().nonnegative()}).strict(),usage:x}).strict(),B=l().trim().min(1).max(240),V=l().regex(/^[a-f0-9]{64}$/);a({cursor:l().trim().min(1).max(2e3).optional(),projectId:B.optional(),search:l().trim().max(100).optional(),sort:c([`id`,`name`,`updated`]).default(`id`),limit:s().int().min(1).max(100).default(100)}).strict(),a({operationId:B,expectedRevision:s().int().nonnegative(),originProjectId:B.optional(),workspace:p,ownerScope:c([`workspace`,`personal`]).optional()}).strict().superRefine((e,t)=>{e.workspace.draft.modelScope!==null&&t.addIssue({code:`custom`,message:`Independent datasets cannot carry Model-owned draft preparation.`}),e.workspace.draft.status!==`draft`&&t.addIssue({code:`custom`,message:`Only draft workspaces can be saved.`})});var H=a({schemaVersion:r(`openpond.datasetWorkspaceReceipt.v1`),teamId:B,datasetId:B,revision:s().int().positive(),originProjectId:B.optional(),workspace:p,ownerScope:c([`workspace`,`personal`]).optional(),publication:a({tasksetId:B,release:A,packageHash:V}).strict().nullable()}).strict().superRefine((e,t)=>{(e.workspace.draft.id!==e.datasetId||e.workspace.draft.profileId!==e.teamId||e.workspace.draft.revision!==e.revision||e.workspace.draft.modelScope!==null)&&t.addIssue({code:`custom`,message:`Dataset workspace scope/revision mismatch.`})});a({operationId:B,expectedRevision:s().int().positive(),workspaceHash:V,packageHash:V}).strict(),a({operationId:B,expectedRevision:s().int().positive()}).strict(),a({teamId:B,datasetId:B,items:t(a({workspaceRevision:s().int().positive(),publication:H.shape.publication.unwrap(),publishedAt:e()}).strict()).max(25),nextBeforeRevision:s().int().positive().nullable()}).strict(),a({teamId:B,datasets:t(a({id:B,revision:s().int().positive(),originProjectId:B.optional(),name:l(),status:c([`draft`,`published`]),ownerScope:c([`workspace`,`personal`]).optional(),taskCount:s().int().nonnegative().optional(),publication:H.shape.publication,updatedAt:l().datetime()}).strict()).max(100),nextCursor:l().trim().min(1).max(2e3).nullable()}).strict(),a({teamId:B,datasetId:B,revision:s().int().positive(),workspaceHash:V,packageHash:V,release:A}).strict();var U=l().trim().min(1).max(240),W=l().regex(/^[a-f0-9]{64}$/);a({operationId:U,source:P,proofs:t(O).min(1).max(100)}).strict().superRefine((e,t)=>{new Set(e.proofs.map(e=>e.path)).size!==e.proofs.length&&t.addIssue({code:`custom`,message:`Select each starting path once.`}),new TextEncoder().encode(JSON.stringify(e)).byteLength>15728640&&t.addIssue({code:`custom`,message:`Starting assets exceed the retained upload allowance.`})});var G=a({path:O.shape.path,commitHash:l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),gitObjectHash:l().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),mode:c([`100644`,`100755`]),sizeBytes:s().int().nonnegative().max(2097152),sha256:W}).strict();a({schemaVersion:r(`openpond.connectedStartingAssetsReceipt.v1`),id:U,operationId:U,teamId:U,ownerUserId:U,projectId:U,requestHash:W,source:P,inputHash:W,observationHash:W,assets:t(G).min(1).max(100),selectedPathsUnmodified:r(!0),dependencyClosureQualified:r(!1),createdAt:e(),receiptHash:W}).strict();var K=l().min(1).max(200),q=l().regex(/^[a-f0-9]{64}$/),J=a({operationId:K,name:l().trim().min(1).max(500),projectId:K,dataset:f.extend({revision:s().int().positive()}).strict(),caseIds:t(K).min(1).max(1e4)}).strict().superRefine((e,t)=>{new Set(e.caseIds).size!==e.caseIds.length&&t.addIssue({code:`custom`,message:`Select each case once.`})}),ce=P.extend({inputHash:q,outputHash:q.nullable(),task:u,taskHash:q}).strict(),le=a({schemaVersion:r(`openpond.connectedRecordedExecution.v1`),id:K,teamId:K,ownerUserId:K,request:J,manifest:ee,sources:t(ce).min(1).max(1e4),contentHash:q}).strict();function ue(e){let t=le.parse(e),{contentHash:n,...r}=t,{contentHash:i,...a}=t.manifest;if(d(r)!==n||d(a)!==i||t.manifest.teamId!==t.teamId||t.manifest.id!==t.id||t.manifest.operationId!==t.request.operationId||d(t.manifest.dataset)!==d(t.request.dataset)||t.sources.length!==t.request.caseIds.length||t.sources.length!==t.manifest.population.length||t.sources.some((e,n)=>e.taskHash!==d(e.task)||e.task.id!==t.request.caseIds[n]||e.boundaryId!==e.task.id||t.manifest.population[n]?.caseId!==e.boundaryId))throw Error(`Recorded execution identity or population integrity failed.`);return t}a({projectId:K.optional(),cursor:K.optional(),limit:s().int().min(1).max(50).default(20)}).strict();var de=a({id:K,teamId:K,ownerUserId:K,projectId:K,name:l().min(1).max(500),dataset:J.shape.dataset,manifestHash:q,contentHash:q,caseCount:s().int().min(1).max(1e4),createdAt:l().datetime()}).strict();a({teamId:K,items:t(de).max(50),nextCursor:K.nullable()}).strict(),a({datasetId:l().trim().min(1).max(240),expectedRevision:s().int().positive(),operationId:l().trim().min(1).max(240),graders:t(te).min(1).max(100).optional()}).strict().superRefine((e,t)=>{e.graders&&new Set(e.graders.map(e=>e.id)).size!==e.graders.length&&t.addIssue({code:`custom`,path:[`graders`],message:`Choose one exact revision of each grader.`})});var Y=l().min(1).max(500),X=s().int().nonnegative();a({teamId:Y,ownerUserId:Y,projectId:Y.nullable(),status:c([`active`,`paused`,`archived`]),revision:X,state:c([`collecting`,`pending`,`attention`,`paused`,`archived`]),lastReconciledAt:l().datetime().nullable(),lastCapturedAt:l().datetime().nullable(),historyDays:s().int().positive(),sources:X,tasks:X,datasets:t(a({datasetId:Y,projection:c([`turn`,`conversation`]),revision:X}).strict()).max(2),latestBatch:a({operationId:Y,updatedAt:l().datetime(),scanned:X,captured:X,unchanged:X,pending:X,failed:X,excluded:X,paused:X,hasMore:o()}).strict().nullable()}).strict();var Z=l().min(1).max(500),Q=l().regex(/^[a-f0-9]{64}$/),fe=a({teamId:Z,projectId:Z.nullable(),status:c([`active`,`paused`,`archived`]),revision:s().int().nonnegative()}).strict(),pe=a({teamId:Z,operationId:Z,projectId:Z.nullable(),outcomes:t(a({conversationId:Z,state:c([`captured`,`unchanged`,`pending`,`paused`,`excluded`,`failed`]),sourceId:Z.optional(),snapshotHash:Q.optional(),reason:l().optional()}).strict()).max(50),nextCursor:Z.nullable()}).strict(),me=a({teamId:Z,ref:P,origin:F.shape.source,sessionId:Z,projectId:Z,capturedAt:l().datetime(),unmappedEvidence:a({count:s().int().nonnegative().max(1e5),contentHash:Q}).strict(),evidence:a({input:t(m),observed:t(m),answer:i(),boundary:_}).strict()}).strict(),he=a({teamId:Z,sourceId:Z,snapshotHash:Q,contentHash:Q,count:s().int().nonnegative(),offset:s().int().nonnegative(),events:t(m).max(50),nextOffset:s().int().nonnegative().nullable()}).strict(),ge=a({teamId:Z,source:L.shape.source,sourceHash:Q,previewHash:Q,destination:L.shape.destination,issues:t(a({file:l(),message:l()}).strict()).max(100),sessions:t(a({sessionHash:Q,sessionId:Z,origin:F.shape.source,exporterVersion:l().nullable(),eventCount:s().int().nonnegative(),boundaries:t(a({id:Z,projection:c([`turn`,`conversation`]),answer:o(),process:c([`retained`,`partial`,`absent`]),terminal:c([`completed`,`failed`,`cancelled`,`unknown`])}).strict()).max(5001),warnings:t(l()).max(100),sample:t(a({role:c([`user`,`assistant`,`system`,`tool`]).nullable(),text:l().max(4e3)}).strict()).max(3)}).strict()).max(1e3)}).strict(),_e=a({teamId:Z,operationId:Z,requestHash:Q,previewHash:Q,projectId:Z.optional(),state:c([`admitting`,`publishing`,`completed`,`failed`]),outcomes:t(a({sessionHash:Q,sourceId:Z,status:c([`imported`,`already_present`]),datasets:t(a({datasetId:Z,revision:s().int().positive(),changed:o()}).strict()).max(2)}).strict()).max(1e3),error:l().optional()}).strict(),$=l().trim().min(1).max(240);a({id:$,expectedRevision:s().int().positive(),manifest:re}).strict().refine(e=>e.id===e.manifest.connectionId&&e.expectedRevision===e.manifest.connectionRevision,`Collector coverage scope differs from its connection.`),a({id:$,cutoff:e().optional()}).strict(),a({schemaVersion:r(`openpond.connectedSyncCoverageReceipt.v1`),id:$,teamId:$,ownerUserId:$,connectionId:$,connectionRevision:s().int().positive(),receivedAt:e(),summary:ie}).strict(),a({id:$,source:L.shape.source,machineId:$,sourceInstanceId:$,sourceLabel:l().trim().min(1).max(200),sourceRoot:l().min(1).max(2e3),destination:L.shape.destination,since:l().datetime().nullable(),keepSyncing:o(),expectedRevision:s().int().nonnegative()}).strict(),a({id:$,expectedRevision:s().int().positive(),action:c([`pause`,`resume`,`disconnect`])}).strict(),a({id:$,operationId:$,expectedRevision:s().int().positive()}).strict(),a({id:$,expectedRevision:s().int().positive(),pendingOperations:s().int().min(0).max(1e4),error:l().max(500).nullable(),completedSyncRevision:s().int().nonnegative().default(0)}).strict(),a({teamId:$,id:$,revision:s().int().positive(),source:L.shape.source,sourceLabel:l(),sourceRoot:l(),taskDatasetId:$.nullable(),conversationDatasetId:$.nullable(),machineId:$,sourceInstanceId:$,projectId:$,datasetIds:t($).max(2),since:l().datetime().nullable(),keepSyncing:o(),state:c([`active`,`paused`,`disconnected`]),health:c([`online`,`offline`]),lastHeartbeatAt:l().datetime().nullable(),lastAdmissionAt:l().datetime().nullable(),pendingOperations:s().int().nonnegative(),admittedTasks:s().int().nonnegative(),error:l().nullable(),requestedSyncRevision:s().int().nonnegative().default(0),completedSyncRevision:s().int().nonnegative().default(0),syncRequestedAt:l().datetime().nullable().default(null),syncCompletedAt:l().datetime().nullable().default(null)}).strict().refine(e=>e.completedSyncRevision<=e.requestedSyncRevision&&e.requestedSyncRevision<=e.revision,`Invalid sync acknowledgement generation.`),a({connectionId:$,expectedRevision:s().int().positive(),request:R}).strict();export{fe as a,R as c,F as d,G as f,A as h,me as i,P as l,j as m,_e as n,he as o,H as p,pe as r,ue as s,ge as t,se as u};
@@ -1,4 +1,4 @@
1
- import{a as e,b as t,c as n,d as r,g as i,i as a,l as o,m as s,o as c,p as l,r as u,v as d,x as f,y as p}from"./schemas-lO3MoWQr.js";import{a as m,c as h,d as g,i as _,n as v,o as y,r as b,s as x}from"./common-BMjyKlX-.js";import{C as S,G as C,H as w,M as T,S as ee,U as E,V as D,b as O,d as te,i as k,k as ne,l as re,o as A,r as j,s as M}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{C as ie,P as ae,R as oe,c as se,f as ce,l as le,o as N,p as ue,u as de,z as fe}from"./contracts-BHTOD1nd.js";import{n as pe,u as me}from"./reward-checks-5AOStF27.js";var P=N.shape.id,he=d().regex(/^[a-f0-9]{64}$/),ge=s({scopeId:P,modelId:P}).strict(),_e=s({schemaVersion:r(`openpond.modelTasksetAuthoring.v1`),owner:ge,root:N,parent:N}).strict(),ve=s({schemaVersion:r(`openpond.modelTasksetDraftRequest.v1`),operationId:P,modelId:P,expectedModelRevision:l().int().positive(),sourcePackageHash:he}).strict(),ye=s({schemaVersion:r(`openpond.modelTasksetDraftPreparation.v1`),draftId:P,requestHash:he,sourcePackageHash:he,sourceTasksetRef:N,tasksetId:P,tasksetRevision:l().int().positive(),lineage:_e,authoringGraph:r(`bound`).optional()}).strict(),be=d().min(1).max(1024).refine(e=>!e.includes(`\\`)&&!e.includes(`:`)&&!e.includes(`\0`)&&!e.startsWith(`/`)&&!e.split(`/`).some(e=>!e||e===`.`||e===`..`||e.startsWith(`.env`)),`Use a relative Taskset file path without environment files.`),xe=s({path:be,sizeBytes:l().int().nonnegative(),writable:c()}).strict(),Se=s({encoding:u([`utf8`,`base64`]),data:d().max(8e6)}).strict(),Ce=xe.extend({contentHash:he,content:Se}).strict();s({draftId:P,expectedDraftRevision:l().int().positive(),path:be,expectedFileHash:he.nullable(),content:Se.nullable()}).strict(),s({provider:M,model:M,revision:d().trim().min(1).max(500).nullable().default(null),artifactHash:A.nullable().default(null),tokenizerRevision:d().trim().min(1).max(500).nullable().default(null),chatTemplateHash:A.nullable().default(null)}).strict();var we=[`openpond`,`codex`,`claude-code`,`grok-build`,`opencode`,`anthropic`,`openai`,`xai`,`google`,`openrouter`,`deepseek`,`zai`,`moonshot`,`together`,`groq`,`custom-openai-compatible`],Te=p([`acp:`,d().regex(/^[a-z0-9][a-z0-9-]{0,100}$/)]),Ee=t([u(we),Te]),De=s({providerId:Ee,modelId:d().trim().min(1).max(300)}),Oe=ie.extend({mode:u([`nightly`,`approved_count`]),minimumTasks:l().int().min(1).max(1e4),maximumSpendUsd:l().positive().max(1e5),maximumDailySpendUsd:l().positive().max(1e6)}).strict().superRefine((e,t)=>{e.maximumDailySpendUsd<e.maximumSpendUsd&&t.addIssue({code:`custom`,path:[`maximumDailySpendUsd`],message:`The daily budget must cover one update.`})}),ke=67108864,Ae=524288,je=class extends Error{code;constructor(e,t){super(t),this.name=`OpenPondProtocolError`,this.code=e}};function Me(e){return JSON.stringify(Ie(e))}function Ne(e){return new TextEncoder().encode(Me(e)).byteLength}async function Pe(e){let t=new TextEncoder().encode(Me(e)),n=await globalThis.crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n),e=>e.toString(16).padStart(2,`0`)).join(``)}function Fe(e,t,n){let r=Ne(e);if(r>t)throw new je(`payload_too_large`,`${n} is ${r} bytes; the maximum is ${t} bytes.`)}function Ie(e){if(e===null||typeof e==`string`||typeof e==`boolean`)return e;if(typeof e==`number`){if(!Number.isFinite(e))throw new je(`non_json_value`,`Canonical JSON cannot contain a non-finite number.`);return Object.is(e,-0)?0:e}if(Array.isArray(e))return e.map(e=>Ie(e));if(typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)throw new je(`non_json_value`,`Canonical JSON accepts only plain objects.`);let n={};for(let t of Object.keys(e).sort()){let r=e[t];if(r===void 0||typeof r==`function`||typeof r==`symbol`)throw new je(`non_json_value`,`Canonical JSON cannot contain ${typeof r} at ${t}.`);n[t]=Ie(r)}return n}throw new je(`non_json_value`,`Canonical JSON cannot contain ${typeof e}.`)}var F=d().trim().min(1).max(500),I=d().regex(/^[a-f0-9]{64}$/),L=d().datetime({offset:!0}),R=s({id:F,contentHash:I}).strict(),Le=R.extend({revision:l().int().positive()}).strict(),Re=s({schemaVersion:r(`openpond.baseModelPreference.v1`),modelId:F,revision:d().trim().min(1).max(256).nullable(),tokenizerRevision:d().trim().min(1).max(256).nullable(),chatTemplateHash:d().trim().min(8).max(256).nullable(),modelAssetId:F.nullable(),source:u([`managed`,`local`,`builtin`])}).strict(),ze=u([`sft`,`dpo`,`grpo`,`ppo`,`sdft`,`opd`,`opsd`,`sdpo`]),Be=s({schemaVersion:d().regex(/^openpond\.[A-Za-z0-9]+Recipe\.v\d+$/),method:ze,parameterization:u([`lora`,`full`])}).catchall(f()),Ve=s({profileProjectId:F,sourceRevision:d().regex(/^[a-f0-9]{40,64}$/),harnessRelease:R}).strict(),He=s({profileProjectId:F,sourceRevision:d().regex(/^[a-f0-9]{40,64}$/),catalogHash:I,definitionId:F,harnessRelease:R,tasksetRelease:R}).strict(),Ue=s({tasksetRef:Le.nullable().default(null),evaluationTasksetRef:Le.nullable().optional(),profileSource:Ve.nullable().optional(),profileEvaluation:He.nullable().optional(),rewardBindingRef:Le.nullable().optional(),tasksetRelease:R.nullable().default(null),harnessRelease:R.nullable().default(null),baseModel:Re.nullable().default(null),method:ze.nullable().default(null),destinationId:F.nullable().default(null),managedRolloutPlacement:u([`local`,`remote`]).default(`remote`),managedGpuPlacementObjective:u([`fast`,`balanced`,`economical`]).default(`balanced`),managedGpuRequirement:u([`any`,`h100_hbm3`]).default(`any`),runPreset:u([`small`,`standard`,`custom`,`small_experiment`]).nullable().default(null),recipe:Be.nullable().default(null),preferredMaximumSpendUsd:l().nonnegative().nullable().default(null),preferredRetentionDays:l().int().nonnegative().nullable().default(null)}).strict(),We=Ue.omit({managedGpuRequirement:!0}),Ge=s({schemaVersion:r(`openpond.hostedModelProjectLink.v1`),apiOrigin:d().url().refine(e=>new URL(e).origin===e,`Use a canonical API origin.`).nullable().default(null),teamId:F,projectId:F,portableProjectId:F,revision:l().int().positive(),etag:I,syncedSourceRevision:l().int().positive(),syncedAt:L,tasksets:e(s({localTasksetId:F,localTasksetHash:I.nullable().default(null),releaseId:F,releaseRevision:l().int().positive(),releaseHash:I,packageHash:I.nullable().default(null),hostedTasksetId:F,syncedAt:L}).strict()).max(1e4).default([])}).strict(),Ke=s({localTasksetId:F,releaseId:F,releaseRevision:l().int().positive(),releaseHash:I,state:u([`syncing`,`synced`,`sync_failed`]),hostedTasksetId:F.nullable().default(null),lastAttemptAt:L,syncedAt:L.nullable().default(null),lastError:d().trim().min(1).max(5e3).nullable().default(null)}).strict(),qe=s({schemaVersion:r(`openpond.modelProject.v2`),id:F,profileId:F,revision:l().int().positive().default(1),name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:Ue,hosted:Ge.nullable().default(null),tasksetSyncs:e(Ke).max(1e4).default([]),createdAt:L,updatedAt:L}).strict(),Je=qe.pick({id:!0,profileId:!0,name:!0,objective:!0,defaultBaseModel:!0,defaultDestinationId:!0,trainingSetup:!0}),Ye=s({schemaVersion:r(`openpond.modelProjectSave.v1`),operationId:F,expectedRevision:l().int().nonnegative(),project:Je,learning:Oe.optional()}).strict().superRefine((e,t)=>{e.learning&&e.expectedRevision!==0&&t.addIssue({code:`custom`,path:[`learning`],message:`Use learning settings to edit an existing Model's policy.`})}),Xe=s({schemaVersion:r(`openpond.modelProjectConfigurationCheck.v1`),configurationHash:I,projectId:F,expectedRevision:l().int().nonnegative(),checkedAt:L,canSave:c(),deferred:e(u([`base_model`,`taskset`])).max(2),findings:e(s({code:F,severity:u([`error`,`warning`]),message:d().min(1).max(5e3),field:d().min(1).max(500).nullable()}).strict()).max(100)}).strict();s({id:F,name:d().min(1).max(500),available:c(),preference:Re}).strict();function Ze(e){try{D(e,Ae)}catch{throw new tt(400,{schemaVersion:`openpond.modelProjectApiError.v2`,code:`model_configuration_json_invalid`,message:`Model configuration must be bounded JSON data.`,retryable:!1,requestId:null,details:{}})}return Ye.parse(e)}async function Qe(e,t,n){D(e,Ae);let r=Je.parse(e);Fe(r,Ae,`Model configuration`);let i=n?Oe.parse(n):void 0;return Ze({schemaVersion:`openpond.modelProjectSave.v1`,operationId:`model-save:${await Pe({project:r,expectedRevision:t,...i?{learning:i}:{}})}`,expectedRevision:t,project:r,...i?{learning:i}:{}})}s({schemaVersion:r(`openpond.hostedModelProjectSync.v2`),portableProjectId:F,name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:We,sourceRevision:l().int().positive(),sourceUpdatedAt:L,expectedEtag:I.nullable().default(null)}).strict();var $e=s({id:F,teamId:F,portableProjectId:F,name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:We,sourceRevision:l().int().positive(),sourceUpdatedAt:L,revision:l().int().positive(),etag:I,createdAt:L,updatedAt:L}).strict(),et=s({kind:u([`taskset_release`,`harness_release`,`dataset_release`,`evidence_set`,`model_version`,`reward_model_version`,`evaluation_receipt`]),ref:R,role:d().trim().min(1).max(200).nullable().default(null),updatedAt:L}).strict();s({project:$e,resources:e(et).max(1e4),jobCount:l().int().nonnegative(),latestJobIds:e(F).max(100)}).strict(),s({schemaVersion:r(`openpond.modelProjectApiError.v2`),code:d().trim().min(1).max(200),message:d().trim().min(1).max(5e3),retryable:c().default(!1),requestId:d().trim().min(1).max(500).nullable().default(null),details:i(d(),f()).default({})}).strict();var tt=class extends Error{status;code;retryable;requestId;details;constructor(e,t){super(t.message),this.name=`OpenPondModelProjectApiError`,this.status=e,this.code=t.code,this.retryable=t.retryable,this.requestId=t.requestId,this.details=t.details}},nt=Object.create,rt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,ot=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty,z=(e,t)=>function(){try{return t||(0,e[at(e)[0]])((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},ct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of at(t))!st.call(e,i)&&i!==n&&rt(e,i,{get:()=>t[i],enumerable:!(r=it(t,i))||r.enumerable});return e},lt=(e,t,n)=>(n=e==null?{}:nt(ot(e)),ct(t||!e||!e.__esModule?rt(n,`default`,{value:e,enumerable:!0}):n,e)),ut=`openpond.connectedEvidence.v1`,dt=`connected-evidence-1`,ft={files:100,sourceBytes:33554432,decodedBytes:67108864,lineBytes:67108864,events:1e5,sessions:1e3,boundaries:5e3,evaluatorBytes:2097152},B=d().min(1).max(500),V=d().regex(/^[a-f0-9]{64}$/),pt=d().datetime().nullable(),mt=l().int().nonnegative().nullable(),ht=u([`native_chat`,`native_work`,`codex`,`claude_code`,`hermes`,`openclaw`,`opencode`,`grok_build`,`pi`,`oh_my_pi`]),gt=s({invocationId:B,inputTokens:mt,outputTokens:mt,cachedInputTokens:mt,totalTokens:mt,provenance:u([`billed_invocation`,`reported_invocation`,`reported_cumulative`])}).strict(),_t=s({id:B,sequence:l().int().nonnegative(),occurredAt:pt,kind:u([`message`,`tool_call`,`tool_result`,`compaction`,`artifact`,`terminal`,`usage`,`unknown`]),role:u([`user`,`assistant`,`system`,`tool`]).nullable(),callId:B.nullable(),parentId:B.nullable(),content:o(),usage:gt.nullable()}).strict(),vt=s({id:B,familyKey:B,projection:u([`turn`,`conversation`]),requestEventId:B,start:l().int().nonnegative(),end:l().int().positive(),inputHash:V,outputHash:V.nullable(),revisionHash:V,terminal:u([`completed`,`failed`,`cancelled`,`unknown`]),coverage:s({answer:c(),context:u([`retained`,`compacted`,`unknown`]),process:u([`retained`,`partial`,`absent`]),artifacts:u([`retained`,`references_only`,`absent`]),replay:r(`unavailable`),gaps:e(d().max(500)).max(100)}).strict()}).strict(),yt=s({schemaVersion:r(`openpond.connectedRepositoryContext.v1`),kind:r(`git`),commitHash:d().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),branch:d().min(1).max(500).nullable(),recordedAt:pt,sourceFileHash:V,metadataHash:V,workingDirectoryHash:V.optional()}).strict();s({schemaVersion:r(ut),normalizerVersion:r(dt),origin:ht,sessionId:B,branchId:B.nullable(),parentSessionId:B.nullable(),exporterVersion:d().max(200).nullable(),acquisition:s({machineId:B,sourceInstanceId:B}).strict().optional(),repositoryContext:yt.optional(),sourceFiles:e(s({path:B,contentHash:V,sizeBytes:l().int().nonnegative()}).strict()).max(ft.files),events:e(_t).max(ft.events),unmappedEvents:e(_t).max(ft.events),boundaries:e(vt).max(ft.boundaries),warnings:e(d().max(500)).max(100),contentHash:V}).strict();var bt=u([`scored`,`unscorable`]),xt=u([`policy`,`environment`,`collector`,`verifier`,`provider`,`host`,`user`,`scheduler`]),St=u([`completed`,`policy_failure`,`incomplete_output`,`task_deadline`,`environment_failure`,`collector_failure`,`verifier_failure`,`provider_failure`,`host_failure`,`infrastructure_timeout`,`cancelled`]),Ct=s({schemaVersion:r(`openpond.environmentRelease.v1`),id:x,revision:l().int().positive(),contract:ee,actionSchemaRef:b.nullable(),observationSchemaRef:b.nullable(),stateSchemaRef:b.nullable(),artifactCollection:s({maxArtifacts:l().int().positive().max(1e5),maxTotalBytes:l().int().positive().max(1e10)}).strict(),adapterConformanceHashes:i(x,y),metadata:m}).strict().extend({contentHash:y}).strict(),wt=u([`collected`,`missing`,`skipped`,`failed`]),Tt=u([`not_requested`,`passed`,`failed`]),Et=s({requiredOutputPath:d().trim().min(1).max(2e3).nullable(),collectedPath:d().trim().min(1).max(4e3).nullable(),declaredMediaType:d().trim().min(1).max(200).nullable(),detectedMediaType:d().trim().min(1).max(200).nullable(),artifact:v.nullable(),status:wt,parseStatus:Tt,schemaStatus:Tt,errorCode:x.nullable(),failureOwner:xt.nullable(),evidenceRefs:e(v).max(1e4),metadata:m}).strict();s({schemaVersion:r(`openpond.artifactManifest.v1`),id:x,attemptRef:_,entries:e(Et).max(1e5),createdAt:h,metadata:m}).strict().extend({contentHash:y}).strict();var Dt=s({schemaVersion:r(`openpond.verifierSetRelease.v1`),id:x,revision:l().int().positive(),graders:e(S).max(1e3),isolation:s({processBoundary:u([`same_process`,`isolated_process`,`container`]),networkPolicy:r(`none`),defaultTimeoutMs:l().int().positive().max(3e5)}).strict(),calibrationReceiptRefs:e(_).max(1e4),metadata:m}).strict().extend({contentHash:y}).strict(),Ot=s({verifierId:x,verifierVersion:d().trim().min(1).max(100),status:bt,rawScore:l().finite().nullable(),normalizedScore:l().min(0).max(1).nullable(),weight:l().nonnegative().max(1e3),passed:c(),hardGate:c(),rewardEligible:c(),rewardContribution:l().min(0).max(1).nullable(),failureOwner:xt.nullable(),feedback:e(d().max(2e4)).max(1e3),visibleEvidenceRefs:e(v).max(1e4),privilegedEvidenceRefs:e(v).max(1e4),metadata:m}).strict().superRefine((e,t)=>{e.status===`scored`&&e.normalizedScore===null&&t.addIssue({code:`custom`,message:`A scored component requires a normalized score.`,path:[`normalizedScore`]}),e.status===`unscorable`&&(e.normalizedScore!==null||e.rewardEligible)&&t.addIssue({code:`custom`,message:`An unscorable component cannot contribute reward.`,path:[`status`]})}),kt=s({schemaVersion:r(`openpond.rewardReceipt.v1`),id:x,attemptRef:_,verifierSetRef:_,artifactManifestRef:_,status:bt,reward:l().min(0).max(1).nullable(),learningEligible:c(),passed:c(),outcomeClass:St,failureOwner:xt.nullable(),components:e(Ot).min(1).max(1e4),visibleEvidenceRefs:e(v).max(1e5),privilegedEvidenceRefs:e(v).max(1e5),supersedes:_.nullable(),createdAt:h,metadata:m}).strict();function At(e,t){e.status===`scored`&&(e.reward===null||!e.learningEligible)&&t.addIssue({code:`custom`,message:`A scored receipt requires a reward and is learning-eligible.`,path:[`status`]}),e.status===`unscorable`&&(e.reward!==null||e.learningEligible)&&t.addIssue({code:`custom`,message:`An unscorable receipt has null reward and is not learning-eligible.`,path:[`status`]})}kt.superRefine(At),kt.extend({contentHash:y}).strict().superRefine(At);var jt=d().regex(/^(0|-?[1-9][0-9]*)$/).max(20).refine(e=>{if(e.length>20||!/^(0|-?[1-9][0-9]*)$/.test(e))return!1;let t=BigInt(e);return t>=-(1n<<63n)&&t<1n<<63n},`SQL integers must fit signed 64-bit storage.`),Mt=t([a(),d().max(262144),l().finite(),s({integer:jt}).strict(),s({blobBase64:d().max(349528).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)}).strict()]),Nt=d().min(1).max(128).refine(e=>!e.includes(`\0`)),Pt=s({tables:e(s({name:Nt,columns:e(s({name:Nt,type:u([`INTEGER`,`REAL`,`TEXT`,`BLOB`])}).strict()).min(1).max(128),rows:e(e(Mt).max(128)).max(4096)}).strict()).max(64)}).strict().superRefine((e,t)=>{let n=new Set;for(let[r,i]of e.tables.entries()){let e=i.name.toLowerCase();(n.has(e)||e.startsWith(`sqlite_`))&&t.addIssue({code:`custom`,path:[`tables`,r,`name`],message:`Table names must be unique and outside SQLite's reserved namespace.`}),n.add(e),new Set(i.columns.map(e=>e.name.toLowerCase())).size!==i.columns.length&&t.addIssue({code:`custom`,path:[`tables`,r,`columns`],message:`Column names must be unique.`}),i.rows.some(e=>e.length!==i.columns.length)&&t.addIssue({code:`custom`,path:[`tables`,r,`rows`],message:`Each row must match the declared columns.`})}}),Ft=s({schemaVersion:r(`openpond.sqlExecution.v1`),snapshot:Pt,sql:d().min(1).max(65536).refine(e=>!e.includes(`\0`)),maxRows:l().int().min(1).max(4096),maxResultBytes:l().int().min(256).max(262144)}).strict();n(`status`,[s({status:r(`completed`),columns:e(d()).max(128),rows:e(e(Mt).max(128)).max(4096)}).strict(),s({status:r(`rejected`),code:u([`invalid_query`,`multiple_statements`,`result_too_large`,`memory_limit`])}).strict()]);var It=s({scope:u([`input`,`initialState`,`state`,`arguments`]),path:e(d().min(1).max(256)).max(16)}).strict(),Lt={id:d().min(1).max(128),operation:u([`step`,`collect`]),toolName:d().min(1).max(500).optional(),timeoutMs:l().int().min(1).max(2e4)},Rt=n(`kind`,[s({...Lt,kind:r(`sqlite.v1`),sql:It,snapshot:It,maxRows:Ft.shape.maxRows,maxResultBytes:Ft.shape.maxResultBytes}).strict(),s({...Lt,kind:r(`javascript.v1`),source:It,cases:It,exportName:d().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(128),maxCases:l().int().min(1).max(32),maxResultBytes:l().int().min(256).max(262144)}).strict()]).superRefine((e,t)=>{e.operation===`step`!=(e.toolName!==void 0)&&t.addIssue({code:`custom`,path:[`toolName`],message:`Only step services require a declared tool name.`}),e.operation===`collect`&&(e.kind===`sqlite.v1`?[e.sql,e.snapshot]:[e.source,e.cases]).some(e=>e.scope===`arguments`)&&t.addIssue({code:`custom`,message:`Collection has no tool arguments.`})}),zt=s({schemaVersion:r(`openpond.javascriptEnvironment.v1`),id:d().trim().min(1).max(500),revision:l().int().positive(),module:b.refine(e=>e.visibility===`host_private`,`Environment code belongs to the execution owner.`),tools:e(C).min(1).max(200),maxSteps:l().int().min(1).max(1e3),maxStateBytes:l().int().min(1).max(1048576),maxObservationBytes:l().int().min(1).max(262144),operationTimeoutMs:l().int().min(1).max(3e4),executionServices:e(Rt).min(1).max(16).optional()}).strict().superRefine((e,t)=>{new Set(e.tools.map(e=>e.name)).size!==e.tools.length&&t.addIssue({code:`custom`,path:[`tools`],message:`Environment tool names must be unique.`}),e.tools.forEach((e,n)=>{w(e.inputSchema).valid||t.addIssue({code:`custom`,path:[`tools`,n,`inputSchema`],message:`Environment tools require a supported JSON schema.`}),e.inputSchemaHash!==g(e.inputSchema)&&t.addIssue({code:`custom`,path:[`tools`,n,`inputSchemaHash`],message:`Tool schema identity differs from its declared schema.`})});let n=e.executionServices??[];new Set(n.map(e=>e.id)).size!==n.length&&t.addIssue({code:`custom`,path:[`executionServices`],message:`Execution service identities must be unique.`}),n.forEach((n,r)=>{let i=e.tools.find(e=>e.name===n.toolName);n.operation===`step`&&!i&&t.addIssue({code:`custom`,path:[`executionServices`,r,`toolName`],message:`Execution services must target a declared tool.`}),n.timeoutMs>=Math.min(e.operationTimeoutMs,i?.timeoutMs??e.operationTimeoutMs)&&t.addIssue({code:`custom`,path:[`executionServices`,r,`timeoutMs`],message:`Service budgets must leave time for the authored controller.`})})}).safeExtend({contentHash:d().regex(/^[a-f0-9]{64}$/)});u([`create`,`reset`,`step`,`collect`,`destroy`]),s({state:i(d(),f()),observation:i(d(),f())}).strict();var Bt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;var a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g}}),Vt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=Bt(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}}}),H=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=Bt(),n=Vt(),r=Bt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=Vt();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=O(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,e,n),this}get names(){return D(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(te(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>E(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(k(t),n instanceof e?[n]:n.nodes);if(t!==!1&&this.nodes.length)return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){let e=super.names;return D(e,this.condition),this.else&&E(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return E(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return D(D(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return E(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&E(e,this.catch.names),this.finally&&E(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var ee=class extends m{render(e){return`finally`+super.render(e)}};ee.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
1
+ import{a as e,b as t,c as n,d as r,g as i,i as a,l as o,m as s,o as c,p as l,r as u,v as d,x as f,y as p}from"./schemas-lO3MoWQr.js";import{a as m,c as h,d as g,i as _,n as v,o as y,r as b,s as x}from"./common-BMjyKlX-.js";import{C as S,G as C,H as w,M as T,S as ee,U as E,V as D,b as O,d as te,i as k,k as ne,l as re,o as A,r as j,s as M}from"./chunk-H3JZ3P5T-B0SCoPw4.js";import{C as ie,P as ae,R as oe,c as se,f as ce,l as le,o as N,p as ue,u as de,z as fe}from"./contracts-BHTOD1nd.js";import{n as pe,u as me}from"./reward-checks-5AOStF27.js";var P=N.shape.id,he=d().regex(/^[a-f0-9]{64}$/),ge=s({scopeId:P,modelId:P}).strict(),_e=s({schemaVersion:r(`openpond.modelTasksetAuthoring.v1`),owner:ge,root:N,parent:N}).strict(),ve=s({schemaVersion:r(`openpond.modelTasksetDraftRequest.v1`),operationId:P,modelId:P,expectedModelRevision:l().int().positive(),sourcePackageHash:he}).strict(),ye=s({schemaVersion:r(`openpond.modelTasksetDraftPreparation.v1`),draftId:P,requestHash:he,sourcePackageHash:he,sourceTasksetRef:N,tasksetId:P,tasksetRevision:l().int().positive(),lineage:_e,authoringGraph:r(`bound`).optional()}).strict(),be=d().min(1).max(1024).refine(e=>!e.includes(`\\`)&&!e.includes(`:`)&&!e.includes(`\0`)&&!e.startsWith(`/`)&&!e.split(`/`).some(e=>!e||e===`.`||e===`..`||e.startsWith(`.env`)),`Use a relative Taskset file path without environment files.`),xe=s({path:be,sizeBytes:l().int().nonnegative(),writable:c()}).strict(),Se=s({encoding:u([`utf8`,`base64`]),data:d().max(8e6)}).strict(),Ce=xe.extend({contentHash:he,content:Se}).strict();s({draftId:P,expectedDraftRevision:l().int().positive(),path:be,expectedFileHash:he.nullable(),content:Se.nullable()}).strict(),s({provider:M,model:M,revision:d().trim().min(1).max(500).nullable().default(null),artifactHash:A.nullable().default(null),tokenizerRevision:d().trim().min(1).max(500).nullable().default(null),chatTemplateHash:A.nullable().default(null)}).strict();var we=[`openpond`,`codex`,`claude-code`,`grok-build`,`opencode`,`anthropic`,`openai`,`xai`,`google`,`openrouter`,`deepseek`,`zai`,`moonshot`,`together`,`groq`,`custom-openai-compatible`],Te=p([`acp:`,d().regex(/^[a-z0-9][a-z0-9-]{0,100}$/)]),Ee=t([u(we),Te]),De=s({providerId:Ee,modelId:d().trim().min(1).max(300)}),Oe=ie.extend({mode:u([`nightly`,`approved_count`]),minimumTasks:l().int().min(1).max(1e4),maximumSpendUsd:l().positive().max(1e5),maximumDailySpendUsd:l().positive().max(1e6)}).strict().superRefine((e,t)=>{e.maximumDailySpendUsd<e.maximumSpendUsd&&t.addIssue({code:`custom`,path:[`maximumDailySpendUsd`],message:`The daily budget must cover one update.`})}),ke=67108864,Ae=524288,je=class extends Error{code;constructor(e,t){super(t),this.name=`OpenPondProtocolError`,this.code=e}};function Me(e){return JSON.stringify(Ie(e))}function Ne(e){return new TextEncoder().encode(Me(e)).byteLength}async function Pe(e){let t=new TextEncoder().encode(Me(e)),n=await globalThis.crypto.subtle.digest(`SHA-256`,t);return Array.from(new Uint8Array(n),e=>e.toString(16).padStart(2,`0`)).join(``)}function Fe(e,t,n){let r=Ne(e);if(r>t)throw new je(`payload_too_large`,`${n} is ${r} bytes; the maximum is ${t} bytes.`)}function Ie(e){if(e===null||typeof e==`string`||typeof e==`boolean`)return e;if(typeof e==`number`){if(!Number.isFinite(e))throw new je(`non_json_value`,`Canonical JSON cannot contain a non-finite number.`);return Object.is(e,-0)?0:e}if(Array.isArray(e))return e.map(e=>Ie(e));if(typeof e==`object`){let t=Object.getPrototypeOf(e);if(t!==Object.prototype&&t!==null)throw new je(`non_json_value`,`Canonical JSON accepts only plain objects.`);let n={};for(let t of Object.keys(e).sort()){let r=e[t];if(r===void 0||typeof r==`function`||typeof r==`symbol`)throw new je(`non_json_value`,`Canonical JSON cannot contain ${typeof r} at ${t}.`);n[t]=Ie(r)}return n}throw new je(`non_json_value`,`Canonical JSON cannot contain ${typeof e}.`)}var F=d().trim().min(1).max(500),I=d().regex(/^[a-f0-9]{64}$/),L=d().datetime({offset:!0}),R=s({id:F,contentHash:I}).strict(),Le=R.extend({revision:l().int().positive()}).strict(),Re=s({schemaVersion:r(`openpond.baseModelPreference.v1`),modelId:F,revision:d().trim().min(1).max(256).nullable(),tokenizerRevision:d().trim().min(1).max(256).nullable(),chatTemplateHash:d().trim().min(8).max(256).nullable(),modelAssetId:F.nullable(),source:u([`managed`,`local`,`builtin`])}).strict(),ze=u([`sft`,`dpo`,`grpo`,`ppo`,`sdft`,`opd`,`opsd`,`sdpo`]),Be=s({schemaVersion:d().regex(/^openpond\.[A-Za-z0-9]+Recipe\.v\d+$/),method:ze,parameterization:u([`lora`,`full`])}).catchall(f()),Ve=s({profileProjectId:F,sourceRevision:d().regex(/^[a-f0-9]{40,64}$/),harnessRelease:R}).strict(),He=s({profileProjectId:F,sourceRevision:d().regex(/^[a-f0-9]{40,64}$/),catalogHash:I,definitionId:F,harnessRelease:R,tasksetRelease:R}).strict(),Ue=s({tasksetRef:Le.nullable().default(null),evaluationTasksetRef:Le.nullable().optional(),profileSource:Ve.nullable().optional(),profileEvaluation:He.nullable().optional(),rewardBindingRef:Le.nullable().optional(),tasksetRelease:R.nullable().default(null),harnessRelease:R.nullable().default(null),baseModel:Re.nullable().default(null),method:ze.nullable().default(null),destinationId:F.nullable().default(null),managedRolloutPlacement:u([`local`,`remote`]).default(`remote`),managedGpuPlacementObjective:u([`fast`,`balanced`,`economical`]).default(`balanced`),managedGpuRequirement:u([`any`,`h100_hbm3`]).default(`any`),runPreset:u([`small`,`standard`,`custom`,`small_experiment`]).nullable().default(null),recipe:Be.nullable().default(null),preferredMaximumSpendUsd:l().nonnegative().nullable().default(null),preferredRetentionDays:l().int().nonnegative().nullable().default(null)}).strict(),We=Ue,Ge=s({schemaVersion:r(`openpond.hostedModelProjectLink.v1`),apiOrigin:d().url().refine(e=>new URL(e).origin===e,`Use a canonical API origin.`).nullable().default(null),teamId:F,projectId:F,portableProjectId:F,revision:l().int().positive(),etag:I,syncedSourceRevision:l().int().positive(),syncedAt:L,tasksets:e(s({localTasksetId:F,localTasksetHash:I.nullable().default(null),releaseId:F,releaseRevision:l().int().positive(),releaseHash:I,packageHash:I.nullable().default(null),hostedTasksetId:F,syncedAt:L}).strict()).max(1e4).default([])}).strict(),Ke=s({localTasksetId:F,releaseId:F,releaseRevision:l().int().positive(),releaseHash:I,state:u([`syncing`,`synced`,`sync_failed`]),hostedTasksetId:F.nullable().default(null),lastAttemptAt:L,syncedAt:L.nullable().default(null),lastError:d().trim().min(1).max(5e3).nullable().default(null)}).strict(),qe=s({schemaVersion:r(`openpond.modelProject.v2`),id:F,profileId:F,revision:l().int().positive().default(1),name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:Ue,hosted:Ge.nullable().default(null),tasksetSyncs:e(Ke).max(1e4).default([]),createdAt:L,updatedAt:L}).strict(),Je=qe.pick({id:!0,profileId:!0,name:!0,objective:!0,defaultBaseModel:!0,defaultDestinationId:!0,trainingSetup:!0}),Ye=s({schemaVersion:r(`openpond.modelProjectSave.v1`),operationId:F,expectedRevision:l().int().nonnegative(),project:Je,learning:Oe.optional()}).strict().superRefine((e,t)=>{e.learning&&e.expectedRevision!==0&&t.addIssue({code:`custom`,path:[`learning`],message:`Use learning settings to edit an existing Model's policy.`})}),Xe=s({schemaVersion:r(`openpond.modelProjectConfigurationCheck.v1`),configurationHash:I,projectId:F,expectedRevision:l().int().nonnegative(),checkedAt:L,canSave:c(),deferred:e(u([`base_model`,`taskset`])).max(2),findings:e(s({code:F,severity:u([`error`,`warning`]),message:d().min(1).max(5e3),field:d().min(1).max(500).nullable()}).strict()).max(100)}).strict();s({id:F,name:d().min(1).max(500),available:c(),preference:Re}).strict();function Ze(e){try{D(e,Ae)}catch{throw new tt(400,{schemaVersion:`openpond.modelProjectApiError.v2`,code:`model_configuration_json_invalid`,message:`Model configuration must be bounded JSON data.`,retryable:!1,requestId:null,details:{}})}return Ye.parse(e)}async function Qe(e,t,n){D(e,Ae);let r=Je.parse(e);Fe(r,Ae,`Model configuration`);let i=n?Oe.parse(n):void 0;return Ze({schemaVersion:`openpond.modelProjectSave.v1`,operationId:`model-save:${await Pe({project:r,expectedRevision:t,...i?{learning:i}:{}})}`,expectedRevision:t,project:r,...i?{learning:i}:{}})}s({schemaVersion:r(`openpond.hostedModelProjectSync.v2`),portableProjectId:F,name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:We,sourceRevision:l().int().positive(),sourceUpdatedAt:L,expectedEtag:I.nullable().default(null)}).strict();var $e=s({id:F,teamId:F,portableProjectId:F,name:d().trim().min(1).max(200),objective:d().trim().max(5e3).nullable(),defaultBaseModel:Re.nullable(),defaultDestinationId:F.nullable(),trainingSetup:We,sourceRevision:l().int().positive(),sourceUpdatedAt:L,revision:l().int().positive(),etag:I,createdAt:L,updatedAt:L}).strict(),et=s({kind:u([`taskset_release`,`harness_release`,`dataset_release`,`evidence_set`,`model_version`,`reward_model_version`,`evaluation_receipt`]),ref:R,role:d().trim().min(1).max(200).nullable().default(null),updatedAt:L}).strict();s({project:$e,resources:e(et).max(1e4),jobCount:l().int().nonnegative(),latestJobIds:e(F).max(100)}).strict(),s({schemaVersion:r(`openpond.modelProjectApiError.v2`),code:d().trim().min(1).max(200),message:d().trim().min(1).max(5e3),retryable:c().default(!1),requestId:d().trim().min(1).max(500).nullable().default(null),details:i(d(),f()).default({})}).strict();var tt=class extends Error{status;code;retryable;requestId;details;constructor(e,t){super(t.message),this.name=`OpenPondModelProjectApiError`,this.status=e,this.code=t.code,this.retryable=t.retryable,this.requestId=t.requestId,this.details=t.details}},nt=Object.create,rt=Object.defineProperty,it=Object.getOwnPropertyDescriptor,at=Object.getOwnPropertyNames,ot=Object.getPrototypeOf,st=Object.prototype.hasOwnProperty,z=(e,t)=>function(){try{return t||(0,e[at(e)[0]])((t={exports:{}}).exports,t),t.exports}catch(e){throw t=0,e}},ct=(e,t,n,r)=>{if(t&&typeof t==`object`||typeof t==`function`)for(let i of at(t))!st.call(e,i)&&i!==n&&rt(e,i,{get:()=>t[i],enumerable:!(r=it(t,i))||r.enumerable});return e},lt=(e,t,n)=>(n=e==null?{}:nt(ot(e)),ct(t||!e||!e.__esModule?rt(n,`default`,{value:e,enumerable:!0}):n,e)),ut=`openpond.connectedEvidence.v1`,dt=`connected-evidence-1`,ft={files:100,sourceBytes:33554432,decodedBytes:67108864,lineBytes:67108864,events:1e5,sessions:1e3,boundaries:5e3,evaluatorBytes:2097152},B=d().min(1).max(500),V=d().regex(/^[a-f0-9]{64}$/),pt=d().datetime().nullable(),mt=l().int().nonnegative().nullable(),ht=u([`native_chat`,`native_work`,`codex`,`claude_code`,`hermes`,`openclaw`,`opencode`,`grok_build`,`pi`,`oh_my_pi`]),gt=s({invocationId:B,inputTokens:mt,outputTokens:mt,cachedInputTokens:mt,totalTokens:mt,provenance:u([`billed_invocation`,`reported_invocation`,`reported_cumulative`])}).strict(),_t=s({id:B,sequence:l().int().nonnegative(),occurredAt:pt,kind:u([`message`,`tool_call`,`tool_result`,`compaction`,`artifact`,`terminal`,`usage`,`unknown`]),role:u([`user`,`assistant`,`system`,`tool`]).nullable(),callId:B.nullable(),parentId:B.nullable(),content:o(),usage:gt.nullable()}).strict(),vt=s({id:B,familyKey:B,projection:u([`turn`,`conversation`]),requestEventId:B,start:l().int().nonnegative(),end:l().int().positive(),inputHash:V,outputHash:V.nullable(),revisionHash:V,terminal:u([`completed`,`failed`,`cancelled`,`unknown`]),coverage:s({answer:c(),context:u([`retained`,`compacted`,`unknown`]),process:u([`retained`,`partial`,`absent`]),artifacts:u([`retained`,`references_only`,`absent`]),replay:r(`unavailable`),gaps:e(d().max(500)).max(100)}).strict()}).strict(),yt=s({schemaVersion:r(`openpond.connectedRepositoryContext.v1`),kind:r(`git`),commitHash:d().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),branch:d().min(1).max(500).nullable(),recordedAt:pt,sourceFileHash:V,metadataHash:V,workingDirectoryHash:V.optional()}).strict();s({schemaVersion:r(ut),normalizerVersion:r(dt),origin:ht,sessionId:B,branchId:B.nullable(),parentSessionId:B.nullable(),exporterVersion:d().max(200).nullable(),acquisition:s({machineId:B,sourceInstanceId:B}).strict().optional(),repositoryContext:yt.optional(),sourceFiles:e(s({path:B,contentHash:V,sizeBytes:l().int().nonnegative()}).strict()).max(ft.files),events:e(_t).max(ft.events),unmappedEvents:e(_t).max(ft.events),boundaries:e(vt).max(ft.boundaries),warnings:e(d().max(500)).max(100),contentHash:V}).strict();var bt=u([`scored`,`unscorable`]),xt=u([`policy`,`environment`,`collector`,`verifier`,`provider`,`host`,`user`,`scheduler`]),St=u([`completed`,`policy_failure`,`incomplete_output`,`task_deadline`,`environment_failure`,`collector_failure`,`verifier_failure`,`provider_failure`,`host_failure`,`infrastructure_timeout`,`cancelled`]),Ct=s({schemaVersion:r(`openpond.environmentRelease.v1`),id:x,revision:l().int().positive(),contract:ee,actionSchemaRef:b.nullable(),observationSchemaRef:b.nullable(),stateSchemaRef:b.nullable(),artifactCollection:s({maxArtifacts:l().int().positive().max(1e5),maxTotalBytes:l().int().positive().max(1e10)}).strict(),adapterConformanceHashes:i(x,y),metadata:m}).strict().extend({contentHash:y}).strict(),wt=u([`collected`,`missing`,`skipped`,`failed`]),Tt=u([`not_requested`,`passed`,`failed`]),Et=s({requiredOutputPath:d().trim().min(1).max(2e3).nullable(),collectedPath:d().trim().min(1).max(4e3).nullable(),declaredMediaType:d().trim().min(1).max(200).nullable(),detectedMediaType:d().trim().min(1).max(200).nullable(),artifact:v.nullable(),status:wt,parseStatus:Tt,schemaStatus:Tt,errorCode:x.nullable(),failureOwner:xt.nullable(),evidenceRefs:e(v).max(1e4),metadata:m}).strict();s({schemaVersion:r(`openpond.artifactManifest.v1`),id:x,attemptRef:_,entries:e(Et).max(1e5),createdAt:h,metadata:m}).strict().extend({contentHash:y}).strict();var Dt=s({schemaVersion:r(`openpond.verifierSetRelease.v1`),id:x,revision:l().int().positive(),graders:e(S).max(1e3),isolation:s({processBoundary:u([`same_process`,`isolated_process`,`container`]),networkPolicy:r(`none`),defaultTimeoutMs:l().int().positive().max(3e5)}).strict(),calibrationReceiptRefs:e(_).max(1e4),metadata:m}).strict().extend({contentHash:y}).strict(),Ot=s({verifierId:x,verifierVersion:d().trim().min(1).max(100),status:bt,rawScore:l().finite().nullable(),normalizedScore:l().min(0).max(1).nullable(),weight:l().nonnegative().max(1e3),passed:c(),hardGate:c(),rewardEligible:c(),rewardContribution:l().min(0).max(1).nullable(),failureOwner:xt.nullable(),feedback:e(d().max(2e4)).max(1e3),visibleEvidenceRefs:e(v).max(1e4),privilegedEvidenceRefs:e(v).max(1e4),metadata:m}).strict().superRefine((e,t)=>{e.status===`scored`&&e.normalizedScore===null&&t.addIssue({code:`custom`,message:`A scored component requires a normalized score.`,path:[`normalizedScore`]}),e.status===`unscorable`&&(e.normalizedScore!==null||e.rewardEligible)&&t.addIssue({code:`custom`,message:`An unscorable component cannot contribute reward.`,path:[`status`]})}),kt=s({schemaVersion:r(`openpond.rewardReceipt.v1`),id:x,attemptRef:_,verifierSetRef:_,artifactManifestRef:_,status:bt,reward:l().min(0).max(1).nullable(),learningEligible:c(),passed:c(),outcomeClass:St,failureOwner:xt.nullable(),components:e(Ot).min(1).max(1e4),visibleEvidenceRefs:e(v).max(1e5),privilegedEvidenceRefs:e(v).max(1e5),supersedes:_.nullable(),createdAt:h,metadata:m}).strict();function At(e,t){e.status===`scored`&&(e.reward===null||!e.learningEligible)&&t.addIssue({code:`custom`,message:`A scored receipt requires a reward and is learning-eligible.`,path:[`status`]}),e.status===`unscorable`&&(e.reward!==null||e.learningEligible)&&t.addIssue({code:`custom`,message:`An unscorable receipt has null reward and is not learning-eligible.`,path:[`status`]})}kt.superRefine(At),kt.extend({contentHash:y}).strict().superRefine(At);var jt=d().regex(/^(0|-?[1-9][0-9]*)$/).max(20).refine(e=>{if(e.length>20||!/^(0|-?[1-9][0-9]*)$/.test(e))return!1;let t=BigInt(e);return t>=-(1n<<63n)&&t<1n<<63n},`SQL integers must fit signed 64-bit storage.`),Mt=t([a(),d().max(262144),l().finite(),s({integer:jt}).strict(),s({blobBase64:d().max(349528).regex(/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/)}).strict()]),Nt=d().min(1).max(128).refine(e=>!e.includes(`\0`)),Pt=s({tables:e(s({name:Nt,columns:e(s({name:Nt,type:u([`INTEGER`,`REAL`,`TEXT`,`BLOB`])}).strict()).min(1).max(128),rows:e(e(Mt).max(128)).max(4096)}).strict()).max(64)}).strict().superRefine((e,t)=>{let n=new Set;for(let[r,i]of e.tables.entries()){let e=i.name.toLowerCase();(n.has(e)||e.startsWith(`sqlite_`))&&t.addIssue({code:`custom`,path:[`tables`,r,`name`],message:`Table names must be unique and outside SQLite's reserved namespace.`}),n.add(e),new Set(i.columns.map(e=>e.name.toLowerCase())).size!==i.columns.length&&t.addIssue({code:`custom`,path:[`tables`,r,`columns`],message:`Column names must be unique.`}),i.rows.some(e=>e.length!==i.columns.length)&&t.addIssue({code:`custom`,path:[`tables`,r,`rows`],message:`Each row must match the declared columns.`})}}),Ft=s({schemaVersion:r(`openpond.sqlExecution.v1`),snapshot:Pt,sql:d().min(1).max(65536).refine(e=>!e.includes(`\0`)),maxRows:l().int().min(1).max(4096),maxResultBytes:l().int().min(256).max(262144)}).strict();n(`status`,[s({status:r(`completed`),columns:e(d()).max(128),rows:e(e(Mt).max(128)).max(4096)}).strict(),s({status:r(`rejected`),code:u([`invalid_query`,`multiple_statements`,`result_too_large`,`memory_limit`])}).strict()]);var It=s({scope:u([`input`,`initialState`,`state`,`arguments`]),path:e(d().min(1).max(256)).max(16)}).strict(),Lt={id:d().min(1).max(128),operation:u([`step`,`collect`]),toolName:d().min(1).max(500).optional(),timeoutMs:l().int().min(1).max(2e4)},Rt=n(`kind`,[s({...Lt,kind:r(`sqlite.v1`),sql:It,snapshot:It,maxRows:Ft.shape.maxRows,maxResultBytes:Ft.shape.maxResultBytes}).strict(),s({...Lt,kind:r(`javascript.v1`),source:It,cases:It,exportName:d().regex(/^[A-Za-z_$][A-Za-z0-9_$]*$/).max(128),maxCases:l().int().min(1).max(32),maxResultBytes:l().int().min(256).max(262144)}).strict()]).superRefine((e,t)=>{e.operation===`step`!=(e.toolName!==void 0)&&t.addIssue({code:`custom`,path:[`toolName`],message:`Only step services require a declared tool name.`}),e.operation===`collect`&&(e.kind===`sqlite.v1`?[e.sql,e.snapshot]:[e.source,e.cases]).some(e=>e.scope===`arguments`)&&t.addIssue({code:`custom`,message:`Collection has no tool arguments.`})}),zt=s({schemaVersion:r(`openpond.javascriptEnvironment.v1`),id:d().trim().min(1).max(500),revision:l().int().positive(),module:b.refine(e=>e.visibility===`host_private`,`Environment code belongs to the execution owner.`),tools:e(C).min(1).max(200),maxSteps:l().int().min(1).max(1e3),maxStateBytes:l().int().min(1).max(1048576),maxObservationBytes:l().int().min(1).max(262144),operationTimeoutMs:l().int().min(1).max(3e4),executionServices:e(Rt).min(1).max(16).optional()}).strict().superRefine((e,t)=>{new Set(e.tools.map(e=>e.name)).size!==e.tools.length&&t.addIssue({code:`custom`,path:[`tools`],message:`Environment tool names must be unique.`}),e.tools.forEach((e,n)=>{w(e.inputSchema).valid||t.addIssue({code:`custom`,path:[`tools`,n,`inputSchema`],message:`Environment tools require a supported JSON schema.`}),e.inputSchemaHash!==g(e.inputSchema)&&t.addIssue({code:`custom`,path:[`tools`,n,`inputSchemaHash`],message:`Tool schema identity differs from its declared schema.`})});let n=e.executionServices??[];new Set(n.map(e=>e.id)).size!==n.length&&t.addIssue({code:`custom`,path:[`executionServices`],message:`Execution service identities must be unique.`}),n.forEach((n,r)=>{let i=e.tools.find(e=>e.name===n.toolName);n.operation===`step`&&!i&&t.addIssue({code:`custom`,path:[`executionServices`,r,`toolName`],message:`Execution services must target a declared tool.`}),n.timeoutMs>=Math.min(e.operationTimeoutMs,i?.timeoutMs??e.operationTimeoutMs)&&t.addIssue({code:`custom`,path:[`executionServices`,r,`timeoutMs`],message:`Service budgets must leave time for the authored controller.`})})}).safeExtend({contentHash:d().regex(/^[a-f0-9]{64}$/)});u([`create`,`reset`,`step`,`collect`,`destroy`]),s({state:i(d(),f()),observation:i(d(),f())}).strict();var Bt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/code.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.regexpCode=e.getEsmExportName=e.getProperty=e.safeStringify=e.stringify=e.strConcat=e.addCodeArg=e.str=e._=e.nil=e._Code=e.Name=e.IDENTIFIER=e._CodeOrName=void 0;var t=class{};e._CodeOrName=t,e.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var n=class extends t{constructor(t){if(super(),!e.IDENTIFIER.test(t))throw Error(`CodeGen: name must be a valid identifier`);this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};e.Name=n;var r=class extends t{constructor(e){super(),this._items=typeof e==`string`?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let e=this._items[0];return e===``||e===`""`}get str(){return this._str??=this._items.reduce((e,t)=>`${e}${t}`,``)}get names(){return this._names??=this._items.reduce((e,t)=>(t instanceof n&&(e[t.str]=(e[t.str]||0)+1),e),{})}};e._Code=r,e.nil=new r(``);function i(e,...t){let n=[e[0]],i=0;for(;i<t.length;)s(n,t[i]),n.push(e[++i]);return new r(n)}e._=i;var a=new r(`+`);function o(e,...t){let n=[p(e[0])],i=0;for(;i<t.length;)n.push(a),s(n,t[i]),n.push(a,p(e[++i]));return c(n),new r(n)}e.str=o;function s(e,t){t instanceof r?e.push(...t._items):t instanceof n?e.push(t):e.push(d(t))}e.addCodeArg=s;function c(e){let t=1;for(;t<e.length-1;){if(e[t]===a){let n=l(e[t-1],e[t+1]);if(n!==void 0){e.splice(t-1,3,n);continue}e[t++]=`+`}t++}}function l(e,t){if(t===`""`)return e;if(e===`""`)return t;if(typeof e==`string`)return t instanceof n||e[e.length-1]!==`"`?void 0:typeof t==`string`?t[0]===`"`?e.slice(0,-1)+t.slice(1):void 0:`${e.slice(0,-1)}${t}"`;if(typeof t==`string`&&t[0]===`"`&&!(e instanceof n))return`"${e}${t.slice(1)}`}function u(e,t){return t.emptyStr()?e:e.emptyStr()?t:o`${e}${t}`}e.strConcat=u;function d(e){return typeof e==`number`||typeof e==`boolean`||e===null?e:p(Array.isArray(e)?e.join(`,`):e)}function f(e){return new r(p(e))}e.stringify=f;function p(e){return JSON.stringify(e).replace(/\u2028/g,`\\u2028`).replace(/\u2029/g,`\\u2029`)}e.safeStringify=p;function m(t){return typeof t==`string`&&e.IDENTIFIER.test(t)?new r(`.${t}`):i`[${t}]`}e.getProperty=m;function h(t){if(typeof t==`string`&&e.IDENTIFIER.test(t))return new r(`${t}`);throw Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}e.getEsmExportName=h;function g(e){return new r(e.toString())}e.regexpCode=g}}),Vt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/scope.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ValueScope=e.ValueScopeName=e.Scope=e.varKinds=e.UsedValueState=void 0;var t=Bt(),n=class extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},r;(function(e){e[e.Started=0]=`Started`,e[e.Completed=1]=`Completed`})(r||(e.UsedValueState=r={})),e.varKinds={const:new t.Name(`const`),let:new t.Name(`let`),var:new t.Name(`var`)};var i=class{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof t.Name?e:this.name(e)}name(e){return new t.Name(this._newName(e))}_newName(e){let t=this._names[e]||this._nameGroup(e);return`${e}${t.index++}`}_nameGroup(e){if((this._parent?._prefixes)?.has(e)||this._prefixes&&!this._prefixes.has(e))throw Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};e.Scope=i;var a=class extends t.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:n,itemIndex:r}){this.value=e,this.scopePath=(0,t._)`.${new t.Name(n)}[${r}]`}};e.ValueScopeName=a;var o=(0,t._)`\n`;e.ValueScope=class extends i{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?o:t.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){if(t.ref===void 0)throw Error(`CodeGen: ref must be passed in value`);let n=this.toName(e),{prefix:r}=n,i=t.key??t.ref,a=this._values[r];if(a){let e=a.get(i);if(e)return e}else a=this._values[r]=new Map;a.set(i,n);let o=this._scope[r]||(this._scope[r]=[]),s=o.length;return o[s]=t.ref,n.setValue(t,{property:r,itemIndex:s}),n}getValue(e,t){let n=this._values[e];if(n)return n.get(t)}scopeRefs(e,n=this._values){return this._reduceValues(n,n=>{if(n.scopePath===void 0)throw Error(`CodeGen: name "${n}" has no value`);return(0,t._)`${e}${n.scopePath}`})}scopeCode(e=this._values,t,n){return this._reduceValues(e,e=>{if(e.value===void 0)throw Error(`CodeGen: name "${e}" has no value`);return e.value.code},t,n)}_reduceValues(i,a,o={},s){let c=t.nil;for(let l in i){let u=i[l];if(!u)continue;let d=o[l]=o[l]||new Map;u.forEach(i=>{if(d.has(i))return;d.set(i,r.Started);let o=a(i);if(o){let n=this.opts.es5?e.varKinds.var:e.varKinds.const;c=(0,t._)`${c}${n} ${i} = ${o};${this.opts._n}`}else if(o=s?.(i))c=(0,t._)`${c}${o}${this.opts._n}`;else throw new n(i);d.set(i,r.Completed)})}return c}}}}),H=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/codegen/index.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.or=e.and=e.not=e.CodeGen=e.operators=e.varKinds=e.ValueScopeName=e.ValueScope=e.Scope=e.Name=e.regexpCode=e.stringify=e.getProperty=e.nil=e.strConcat=e.str=e._=void 0;var t=Bt(),n=Vt(),r=Bt();Object.defineProperty(e,"_",{enumerable:!0,get:function(){return r._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return r.str}}),Object.defineProperty(e,"strConcat",{enumerable:!0,get:function(){return r.strConcat}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return r.nil}}),Object.defineProperty(e,"getProperty",{enumerable:!0,get:function(){return r.getProperty}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return r.stringify}}),Object.defineProperty(e,"regexpCode",{enumerable:!0,get:function(){return r.regexpCode}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return r.Name}});var i=Vt();Object.defineProperty(e,"Scope",{enumerable:!0,get:function(){return i.Scope}}),Object.defineProperty(e,"ValueScope",{enumerable:!0,get:function(){return i.ValueScope}}),Object.defineProperty(e,"ValueScopeName",{enumerable:!0,get:function(){return i.ValueScopeName}}),Object.defineProperty(e,"varKinds",{enumerable:!0,get:function(){return i.varKinds}}),e.operators={GT:new t._Code(`>`),GTE:new t._Code(`>=`),LT:new t._Code(`<`),LTE:new t._Code(`<=`),EQ:new t._Code(`===`),NEQ:new t._Code(`!==`),NOT:new t._Code(`!`),OR:new t._Code(`||`),AND:new t._Code(`&&`),ADD:new t._Code(`+`)};var a=class{optimizeNodes(){return this}optimizeNames(e,t){return this}},o=class extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){let r=e?n.varKinds.var:this.varKind,i=this.rhs===void 0?``:` = ${this.rhs}`;return`${r} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&=O(this.rhs,e,t),this}get names(){return this.rhs instanceof t._CodeOrName?this.rhs.names:{}}},s=class extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,n){if(!(this.lhs instanceof t.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=O(this.rhs,e,n),this}get names(){return D(this.lhs instanceof t.Name?{}:{...this.lhs.names},this.rhs)}},c=class extends s{constructor(e,t,n,r){super(e,n,r),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},l=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},u=class extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:``};`+e}},d=class extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},f=class extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=O(this.code,e,t),this}get names(){return this.code instanceof t._CodeOrName?this.code.names:{}}},p=class extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((t,n)=>t+n.render(e),``)}optimizeNodes(){let{nodes:e}=this,t=e.length;for(;t--;){let n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){let{nodes:n}=this,r=n.length;for(;r--;){let i=n[r];i.optimizeNames(e,t)||(te(e,i.names),n.splice(r,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((e,t)=>E(e,t.names),{})}},m=class extends p{render(e){return`{`+e._n+super.render(e)+`}`+e._n}},h=class extends p{},g=class extends m{};g.kind=`else`;var _=class e extends m{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+=`else `+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let n=this.else;if(n){let e=n.optimizeNodes();n=this.else=Array.isArray(e)?new g(e):e}if(n)return t===!1?n instanceof e?n:n.nodes:this.nodes.length?this:new e(k(t),n instanceof e?[n]:n.nodes);if(t!==!1&&this.nodes.length)return this}optimizeNames(e,t){if(this.else=this.else?.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=O(this.condition,e,t),this}get names(){let e=super.names;return D(e,this.condition),this.else&&E(e,this.else.names),e}};_.kind=`if`;var v=class extends m{};v.kind=`for`;var y=class extends v{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=O(this.iteration,e,t),this}get names(){return E(super.names,this.iteration.names)}},b=class extends v{constructor(e,t,n,r){super(),this.varKind=e,this.name=t,this.from=n,this.to=r}render(e){let t=e.es5?n.varKinds.var:this.varKind,{name:r,from:i,to:a}=this;return`for(${t} ${r}=${i}; ${r}<${a}; ${r}++)`+super.render(e)}get names(){return D(D(super.names,this.from),this.to)}},x=class extends v{constructor(e,t,n,r){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=r}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=O(this.iterable,e,t),this}get names(){return E(super.names,this.iterable.names)}},S=class extends m{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?`async `:``}function ${this.name}(${this.args})`+super.render(e)}};S.kind=`func`;var C=class extends p{render(e){return`return `+super.render(e)}};C.kind=`return`;var w=class extends m{render(e){let t=`try`+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),(e=this.catch)==null||e.optimizeNodes(),(t=this.finally)==null||t.optimizeNodes(),this}optimizeNames(e,t){var n,r;return super.optimizeNames(e,t),(n=this.catch)==null||n.optimizeNames(e,t),(r=this.finally)==null||r.optimizeNames(e,t),this}get names(){let e=super.names;return this.catch&&E(e,this.catch.names),this.finally&&E(e,this.finally.names),e}},T=class extends m{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};T.kind=`catch`;var ee=class extends m{render(e){return`finally`+super.render(e)}};ee.kind=`finally`,e.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?`
2
2
  `:``},this._extScope=e,this._scope=new n.Scope({parent:e}),this._nodes=[new h]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){let n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,r){let i=this._scope.toName(t);return n!==void 0&&r&&(this._constants[i.str]=n),this._leafNode(new o(e,i,n)),i}const(e,t,r){return this._def(n.varKinds.const,e,t,r)}let(e,t,r){return this._def(n.varKinds.let,e,t,r)}var(e,t,r){return this._def(n.varKinds.var,e,t,r)}assign(e,t,n){return this._leafNode(new s(e,t,n))}add(t,n){return this._leafNode(new c(t,e.operators.ADD,n))}code(e){return typeof e==`function`?e():e!==t.nil&&this._leafNode(new f(e)),this}object(...e){let n=[`{`];for(let[r,i]of e)n.length>1&&n.push(`,`),n.push(r),(r!==i||this.opts.es5)&&(n.push(`:`),(0,t.addCodeArg)(n,i));return n.push(`}`),new t._Code(n)}if(e,t,n){if(this._blockNode(new _(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw Error(`CodeGen: "else" body without "then" body`);return this}elseIf(e){return this._elseNode(new _(e))}else(){return this._elseNode(new g)}endIf(){return this._endBlockNode(_,g)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new y(e),t)}forRange(e,t,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.let){let o=this._scope.toName(e);return this._for(new b(a,o,t,r),()=>i(o))}forOf(e,r,i,a=n.varKinds.const){let o=this._scope.toName(e);if(this.opts.es5){let e=r instanceof t.Name?r:this.var(`_arr`,r);return this.forRange(`_i`,0,(0,t._)`${e}.length`,n=>{this.var(o,(0,t._)`${e}[${n}]`),i(o)})}return this._for(new x(`of`,a,o,r),()=>i(o))}forIn(e,r,i,a=this.opts.es5?n.varKinds.var:n.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,t._)`Object.keys(${r})`,i);let o=this._scope.toName(e);return this._for(new x(`in`,a,o,r),()=>i(o))}endFor(){return this._endBlockNode(v)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new u(e))}return(e){let t=new C;if(this._blockNode(t),this.code(e),t.nodes.length!==1)throw Error(`CodeGen: "return" should have one node`);return this._endBlockNode(C)}try(e,t,n){if(!t&&!n)throw Error(`CodeGen: "try" without "catch" and "finally"`);let r=new w;if(this._blockNode(r),this.code(e),t){let e=this.name(`e`);this._currNode=r.catch=new T(e),t(e)}return n&&(this._currNode=r.finally=new ee,this.code(n)),this._endBlockNode(T,ee)}throw(e){return this._leafNode(new d(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){let t=this._blockStarts.pop();if(t===void 0)throw Error(`CodeGen: not in self-balancing block`);let n=this._nodes.length-t;if(n<0||e!==void 0&&n!==e)throw Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,n=t.nil,r,i){return this._blockNode(new S(e,n,r)),i&&this.code(i).endFunc(),this}endFunc(){return this._endBlockNode(S)}optimize(e=1){for(;e-->0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){let n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){let t=this._currNode;if(!(t instanceof _))throw Error(`CodeGen: "else" without "if"`);return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let t=this._nodes;t[t.length-1]=e}};function E(e,t){for(let n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function D(e,n){return n instanceof t._CodeOrName?E(e,n.names):e}function O(e,n,r){return e instanceof t.Name?i(e):a(e)?new t._Code(e._items.reduce((e,n)=>(n instanceof t.Name&&(n=i(n)),n instanceof t._Code?e.push(...n._items):e.push(n),e),[])):e;function i(e){let t=r[e.str];return t===void 0||n[e.str]!==1?e:(delete n[e.str],t)}function a(e){return e instanceof t._Code&&e._items.some(e=>e instanceof t.Name&&n[e.str]===1&&r[e.str]!==void 0)}}function te(e,t){for(let n in t)e[n]=(e[n]||0)-(t[n]||0)}function k(e){return typeof e==`boolean`||typeof e==`number`||e===null?!e:(0,t._)`!${ie(e)}`}e.not=k;var ne=M(e.operators.AND);function re(...e){return e.reduce(ne)}e.and=re;var A=M(e.operators.OR);function j(...e){return e.reduce(A)}e.or=j;function M(e){return(n,r)=>n===t.nil?r:r===t.nil?n:(0,t._)`${ie(n)} ${e} ${ie(r)}`}function ie(e){return e instanceof t.Name?e:(0,t._)`(${e})`}}}),U=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/util.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.checkStrictMode=e.getErrorPath=e.Type=e.useFunc=e.setEvaluated=e.evaluatedPropsToName=e.mergeEvaluated=e.eachItem=e.unescapeJsonPointer=e.escapeJsonPointer=e.escapeFragment=e.unescapeFragment=e.schemaRefOrVal=e.schemaHasRulesButRef=e.schemaHasRules=e.checkUnknownRules=e.alwaysValidSchema=e.toHash=void 0;var t=H(),n=Bt();function r(e){let t={};for(let n of e)t[n]=!0;return t}e.toHash=r;function i(e,t){return typeof t==`boolean`?t:Object.keys(t).length===0||(a(e,t),!o(t,e.self.RULES.all))}e.alwaysValidSchema=i;function a(e,t=e.schema){let{opts:n,self:r}=e;if(!n.strictSchema||typeof t==`boolean`)return;let i=r.RULES.keywords;for(let n in t)i[n]||x(e,`unknown keyword: "${n}"`)}e.checkUnknownRules=a;function o(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(t[n])return!0;return!1}e.schemaHasRules=o;function s(e,t){if(typeof e==`boolean`)return!e;for(let n in e)if(n!==`$ref`&&t.all[n])return!0;return!1}e.schemaHasRulesButRef=s;function c({topSchemaRef:e,schemaPath:n},r,i,a){if(!a){if(typeof r==`number`||typeof r==`boolean`)return r;if(typeof r==`string`)return(0,t._)`${r}`}return(0,t._)`${e}${n}${(0,t.getProperty)(i)}`}e.schemaRefOrVal=c;function l(e){return f(decodeURIComponent(e))}e.unescapeFragment=l;function u(e){return encodeURIComponent(d(e))}e.escapeFragment=u;function d(e){return typeof e==`number`?`${e}`:e.replace(/~/g,`~0`).replace(/\//g,`~1`)}e.escapeJsonPointer=d;function f(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}e.unescapeJsonPointer=f;function p(e,t){if(Array.isArray(e))for(let n of e)t(n);else t(e)}e.eachItem=p;function m({mergeNames:e,mergeToName:n,mergeValues:r,resultToName:i}){return(a,o,s,c)=>{let l=s===void 0?o:s instanceof t.Name?(o instanceof t.Name?e(a,o,s):n(a,o,s),s):o instanceof t.Name?(n(a,s,o),o):r(o,s);return c===t.Name&&!(l instanceof t.Name)?i(a,l):l}}e.mergeEvaluated={props:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>{e.if((0,t._)`${n} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,t._)`${r} || {}`).code((0,t._)`Object.assign(${r}, ${n})`))}),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>{n===!0?e.assign(r,!0):(e.assign(r,(0,t._)`${r} || {}`),g(e,r,n))}),mergeValues:(e,t)=>e===!0||{...e,...t},resultToName:h}),items:m({mergeNames:(e,n,r)=>e.if((0,t._)`${r} !== true && ${n} !== undefined`,()=>e.assign(r,(0,t._)`${n} === true ? true : ${r} > ${n} ? ${r} : ${n}`)),mergeToName:(e,n,r)=>e.if((0,t._)`${r} !== true`,()=>e.assign(r,n===!0||(0,t._)`${r} > ${n} ? ${r} : ${n}`)),mergeValues:(e,t)=>e===!0||Math.max(e,t),resultToName:(e,t)=>e.var(`items`,t)})};function h(e,n){if(n===!0)return e.var(`props`,!0);let r=e.var(`props`,(0,t._)`{}`);return n!==void 0&&g(e,r,n),r}e.evaluatedPropsToName=h;function g(e,n,r){Object.keys(r).forEach(r=>e.assign((0,t._)`${n}${(0,t.getProperty)(r)}`,!0))}e.setEvaluated=g;var _={};function v(e,t){return e.scopeValue(`func`,{ref:t,code:_[t.code]||(_[t.code]=new n._Code(t.code))})}e.useFunc=v;var y;(function(e){e[e.Num=0]=`Num`,e[e.Str=1]=`Str`})(y||(e.Type=y={}));function b(e,n,r){if(e instanceof t.Name){let i=n===y.Num;return r?i?(0,t._)`"[" + ${e} + "]"`:(0,t._)`"['" + ${e} + "']"`:i?(0,t._)`"/" + ${e}`:(0,t._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,t.getProperty)(e).toString():`/`+d(e)}e.getErrorPath=b;function x(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,n===!0)throw Error(t);e.self.logger.warn(t)}}e.checkStrictMode=x}}),W=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/names.js"(e){Object.defineProperty(e,"__esModule",{value:!0});var t=H();e.default={data:new t.Name(`data`),valCxt:new t.Name(`valCxt`),instancePath:new t.Name(`instancePath`),parentData:new t.Name(`parentData`),parentDataProperty:new t.Name(`parentDataProperty`),rootData:new t.Name(`rootData`),dynamicAnchors:new t.Name(`dynamicAnchors`),vErrors:new t.Name(`vErrors`),errors:new t.Name(`errors`),this:new t.Name(`this`),self:new t.Name(`self`),scope:new t.Name(`scope`),json:new t.Name(`json`),jsonPos:new t.Name(`jsonPos`),jsonLen:new t.Name(`jsonLen`),jsonPart:new t.Name(`jsonPart`)}}}),Ht=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/errors.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.extendErrors=e.resetErrorsCount=e.reportExtraError=e.reportError=e.keyword$DataError=e.keywordError=void 0;var t=H(),n=U(),r=W();e.keywordError={message:({keyword:e})=>(0,t.str)`must pass "${e}" keyword validation`},e.keyword$DataError={message:({keyword:e,schemaType:n})=>n?(0,t.str)`"${e}" keyword must be ${n} ($data)`:(0,t.str)`"${e}" keyword is invalid ($data)`};function i(n,r=e.keywordError,i,a){let{it:o}=n,{gen:s,compositeRule:u,allErrors:f}=o,p=d(n,r,i);a??(u||f)?c(s,p):l(o,(0,t._)`[${p}]`)}e.reportError=i;function a(t,n=e.keywordError,i){let{it:a}=t,{gen:o,compositeRule:s,allErrors:u}=a;c(o,d(t,n,i)),s||u||l(a,r.default.vErrors)}e.reportExtraError=a;function o(e,n){e.assign(r.default.errors,n),e.if((0,t._)`${r.default.vErrors} !== null`,()=>e.if(n,()=>e.assign((0,t._)`${r.default.vErrors}.length`,n),()=>e.assign(r.default.vErrors,null)))}e.resetErrorsCount=o;function s({gen:e,keyword:n,schemaValue:i,data:a,errsCount:o,it:s}){if(o===void 0)throw Error(`ajv implementation error`);let c=e.name(`err`);e.forRange(`i`,o,r.default.errors,o=>{e.const(c,(0,t._)`${r.default.vErrors}[${o}]`),e.if((0,t._)`${c}.instancePath === undefined`,()=>e.assign((0,t._)`${c}.instancePath`,(0,t.strConcat)(r.default.instancePath,s.errorPath))),e.assign((0,t._)`${c}.schemaPath`,(0,t.str)`${s.errSchemaPath}/${n}`),s.opts.verbose&&(e.assign((0,t._)`${c}.schema`,i),e.assign((0,t._)`${c}.data`,a))})}e.extendErrors=s;function c(e,n){let i=e.const(`err`,n);e.if((0,t._)`${r.default.vErrors} === null`,()=>e.assign(r.default.vErrors,(0,t._)`[${i}]`),(0,t._)`${r.default.vErrors}.push(${i})`),e.code((0,t._)`${r.default.errors}++`)}function l(e,n){let{gen:r,validateName:i,schemaEnv:a}=e;a.$async?r.throw((0,t._)`new ${e.ValidationError}(${n})`):(r.assign((0,t._)`${i}.errors`,n),r.return(!1))}var u={keyword:new t.Name(`keyword`),schemaPath:new t.Name(`schemaPath`),params:new t.Name(`params`),propertyName:new t.Name(`propertyName`),message:new t.Name(`message`),schema:new t.Name(`schema`),parentSchema:new t.Name(`parentSchema`)};function d(e,n,r){let{createErrors:i}=e.it;return i===!1?(0,t._)`{}`:f(e,n,r)}function f(e,t,n={}){let{gen:r,it:i}=e,a=[p(i,n),m(e,n)];return h(e,t,a),r.object(...a)}function p({errorPath:e},{instancePath:i}){let a=i?(0,t.str)`${e}${(0,n.getErrorPath)(i,n.Type.Str)}`:e;return[r.default.instancePath,(0,t.strConcat)(r.default.instancePath,a)]}function m({keyword:e,it:{errSchemaPath:r}},{schemaPath:i,parentSchema:a}){let o=a?r:(0,t.str)`${r}/${e}`;return i&&(o=(0,t.str)`${o}${(0,n.getErrorPath)(i,n.Type.Str)}`),[u.schemaPath,o]}function h(e,{params:n,message:i},a){let{keyword:o,data:s,schemaValue:c,it:l}=e,{opts:d,propertyName:f,topSchemaRef:p,schemaPath:m}=l;a.push([u.keyword,o],[u.params,typeof n==`function`?n(e):n||(0,t._)`{}`]),d.messages&&a.push([u.message,typeof i==`function`?i(e):i]),d.verbose&&a.push([u.schema,c],[u.parentSchema,(0,t._)`${p}${m}`],[r.default.data,s]),f&&a.push([u.propertyName,f])}}}),Ut=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/boolSchema.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.boolOrEmptySchema=e.topBoolOrEmptySchema=void 0;var t=Ht(),n=H(),r=W(),i={message:`boolean schema is false`};function a(e){let{gen:t,schema:i,validateName:a}=e;i===!1?s(e,!1):typeof i==`object`&&i.$async===!0?t.return(r.default.data):(t.assign((0,n._)`${a}.errors`,null),t.return(!0))}e.topBoolOrEmptySchema=a;function o(e,t){let{gen:n,schema:r}=e;r===!1?(n.var(t,!1),s(e)):n.var(t,!0)}e.boolOrEmptySchema=o;function s(e,n){let{gen:r,data:a}=e,o={gen:r,keyword:`false schema`,data:a,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,t.reportError)(o,i,void 0,n)}}}),Wt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/rules.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.getRules=e.isJSONType=void 0;var t=new Set([`string`,`number`,`integer`,`boolean`,`null`,`object`,`array`]);function n(e){return typeof e==`string`&&t.has(e)}e.isJSONType=n;function r(){let e={number:{type:`number`,rules:[]},string:{type:`string`,rules:[]},array:{type:`array`,rules:[]},object:{type:`object`,rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}e.getRules=r}}),Gt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/applicability.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.shouldUseRule=e.shouldUseGroup=e.schemaHasRulesForType=void 0;function t({schema:e,self:t},r){let i=t.RULES.types[r];return i&&i!==!0&&n(e,i)}e.schemaHasRulesForType=t;function n(e,t){return t.rules.some(t=>r(e,t))}e.shouldUseGroup=n;function r(e,t){return e[t.keyword]!==void 0||t.definition.implements?.some(t=>e[t]!==void 0)}e.shouldUseRule=r}}),Kt=z({"../../node_modules/.pnpm/ajv@8.20.0/node_modules/ajv/dist/compile/validate/dataType.js"(e){Object.defineProperty(e,"__esModule",{value:!0}),e.reportTypeError=e.checkDataTypes=e.checkDataType=e.coerceAndCheckDataType=e.getJSONTypes=e.getSchemaTypes=e.DataType=void 0;var t=Wt(),n=Gt(),r=Ht(),i=H(),a=U(),o;(function(e){e[e.Correct=0]=`Correct`,e[e.Wrong=1]=`Wrong`})(o||(e.DataType=o={}));function s(e){let t=c(e.type);if(t.includes(`null`)){if(e.nullable===!1)throw Error(`type: null contradicts nullable: false`)}else{if(!t.length&&e.nullable!==void 0)throw Error(`"nullable" cannot be used without "type"`);e.nullable===!0&&t.push(`null`)}return t}e.getSchemaTypes=s;function c(e){let n=Array.isArray(e)?e:e?[e]:[];if(n.every(t.isJSONType))return n;throw Error(`type must be JSONType or JSONType[]: `+n.join(`,`))}e.getJSONTypes=c;function l(e,t){let{gen:r,data:i,opts:a}=e,s=d(t,a.coerceTypes),c=t.length>0&&!(s.length===0&&t.length===1&&(0,n.schemaHasRulesForType)(e,t[0]));if(c){let n=h(t,i,a.strictNumbers,o.Wrong);r.if(n,()=>{s.length?f(e,t,s):_(e)})}return c}e.coerceAndCheckDataType=l;var u=new Set([`string`,`number`,`integer`,`boolean`,`null`]);function d(e,t){return t?e.filter(e=>u.has(e)||t===`array`&&e===`array`):[]}function f(e,t,n){let{gen:r,data:a,opts:o}=e,s=r.let(`dataType`,(0,i._)`typeof ${a}`),c=r.let(`coerced`,(0,i._)`undefined`);o.coerceTypes===`array`&&r.if((0,i._)`${s} == 'object' && Array.isArray(${a}) && ${a}.length == 1`,()=>r.assign(a,(0,i._)`${a}[0]`).assign(s,(0,i._)`typeof ${a}`).if(h(t,a,o.strictNumbers),()=>r.assign(c,a))),r.if((0,i._)`${c} !== undefined`);for(let e of n)(u.has(e)||e===`array`&&o.coerceTypes===`array`)&&l(e);r.else(),_(e),r.endIf(),r.if((0,i._)`${c} !== undefined`,()=>{r.assign(a,c),p(e,c)});function l(e){switch(e){case`string`:r.elseIf((0,i._)`${s} == "number" || ${s} == "boolean"`).assign(c,(0,i._)`"" + ${a}`).elseIf((0,i._)`${a} === null`).assign(c,(0,i._)`""`);return;case`number`:r.elseIf((0,i._)`${s} == "boolean" || ${a} === null
3
3
  || (${s} == "string" && ${a} && ${a} == +${a})`).assign(c,(0,i._)`+${a}`);return;case`integer`:r.elseIf((0,i._)`${s} === "boolean" || ${a} === null
4
4
  || (${s} === "string" && ${a} && ${a} == +${a} && !(${a} % 1))`).assign(c,(0,i._)`+${a}`);return;case`boolean`:r.elseIf((0,i._)`${a} === "false" || ${a} === 0 || ${a} === null`).assign(c,!1).elseIf((0,i._)`${a} === "true" || ${a} === 1`).assign(c,!0);return;case`null`:r.elseIf((0,i._)`${a} === "" || ${a} === 0 || ${a} === false`),r.assign(c,null);return;case`array`:r.elseIf((0,i._)`${s} === "string" || ${s} === "number"
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-BsPUniZy.js";import{_ as n,a as r,g as i,o as a,p as o,r as s,v as c}from"./schemas-lO3MoWQr.js";import{t as l}from"./settings-BKmRueaw.js";import{n as u}from"./api-client-Dgz-fOMl.js";var d=e(t(),1),f=n({chatSelection:n({provider:l,model:c().max(500),modelsByProvider:i(l,c().max(500)).optional()}).optional(),chatMode:s([`chat`,`work`]).optional(),sidebarWorkflowCollapsedIds:r(c().min(1).max(200)).max(200).optional(),sidebarPresentation:s([`grouped`,`inbox`]).optional(),notificationMode:s([`all`,`direct_mentions`,`none`]).optional(),learningNoticeDismissed:a().optional(),sidebarVisibility:n({showCodexChats:a(),onlyRunningTasks:a()}).optional(),scheduledWorkView:s([`calendar`,`list`]).optional(),editorControlsVisible:a().optional(),voiceNoticeAcknowledged:a().optional(),lessonProgress:i(c().min(1).max(200),n({completed:a(),currentTime:o().finite().nonnegative(),duration:o().finite().positive(),updatedAt:o().finite().nonnegative()})).refine(e=>Object.keys(e).length<=200,`Too many lessons`).optional()}),p={"openpond:last-chat-selection":`chatSelection`,"openpond:last-chat-task-mode":`chatMode`,"openpond.sidebar.workflow-collapse.v1":`sidebarWorkflowCollapsedIds`,"openpond.sidebar.presentation.v1":`sidebarPresentation`,"openpond.team-chat.notification-mode":`notificationMode`,"openpond.sidebar.continuous-learning.dismissed.v1":`learningNoticeDismissed`,"openpond.sidebar-task-visibility.v1":`sidebarVisibility`,"openpond.scheduled-work.view.v1":`scheduledWorkView`,"openpond.workspace.editorControlsVisible":`editorControlsVisible`,"openpond.voice.setupNoticeAcknowledged":`voiceNoticeAcknowledged`,"openpond.post-training-progress.v1":`lessonProgress`},m=new Set,h=null,g=null,_={},v={},y=!1,b=0,x=null,S=0,C=null,w=`openpond-client-choices-changed`;function T(){m.forEach(e=>e()),typeof window<`u`&&window.dispatchEvent(new Event(w))}function E(){return x}function D(e){return m.add(e),()=>{m.delete(e)}}function O(e){let t=(0,d.useRef)(e);t.current=e,(0,d.useEffect)(()=>D(()=>t.current()),[])}function k(e,t={}){if(!t.force&&!C?.signal?.aborted&&C?.serverUrl===e.serverUrl&&C.token===e.token)return C.promise;let n=A(e,t.signal).finally(()=>{C?.promise===n&&(C=null)});return C={serverUrl:e.serverUrl,token:e.token,signal:t.signal,promise:n},n}async function A(e,t){let n=++S,r=await u(e,`/v1/configuration`,{signal:t});if(r.clientState?.revision===null){let n=P();if(Object.keys(n.patch).length){r.clientState=await u(e,`/v1/configuration`,{signal:t,method:`POST`,body:JSON.stringify({action:`client-state`,owner:r.clientState.owner,patch:n.patch,importOnly:!0})});for(let e of n.keys)try{window.localStorage.removeItem(e)}catch{}}}if(t?.throwIfAborted(),n!==S)return;let i=h?.serverUrl!==e.serverUrl||h?.token!==e.token||g?.owner!==r.clientState?.owner;i&&(b++,_={},v={},x=null),h=e,(i||(r.clientState?.revision??0)>=(g?.revision??0))&&(g=r.clientState),T()}async function j(){if(y||!h||!g||!Object.keys(_).length)return;y=!0;let e=_,t=h,n=g.owner,r=b;_={},v=e;try{let i=await u(t,`/v1/configuration`,{method:`POST`,body:JSON.stringify({action:`client-state`,owner:n,patch:e})});r===b&&(g=i,x=null)}catch(t){r===b&&(_={...e,..._},x=`Preference changes have not been saved. ${t instanceof Error?t.message:String(t)}`)}finally{v={},y=!1,T(),!x&&Object.keys(_).length&&j()}}function M(){x=null,j()}var N={getItem(e){let t=p[e];if(!t)return null;let n={...g?.value,...v,..._}[t];return n===void 0?null:typeof n==`string`?n:JSON.stringify(n)},setItem(e,t){if(!g)return;let n=p[e];if(!n)throw Error(`Unregistered client preference.`);let r;try{r=JSON.parse(t)}catch{r=t}let i=f.parse({[n]:r});JSON.stringify({...g.value,...v,..._}[n])!==JSON.stringify(i[n])&&(_={..._,...i},T(),j())}};function P(){let e={},t=[];if(typeof window>`u`)return{patch:e,keys:t};for(let[n,r]of Object.entries(p))try{let i=window.localStorage.getItem(n);if(i===null)continue;let a;try{a=JSON.parse(i)}catch{a=i}let o=f.safeParse({[r]:a});o.success&&(Object.assign(e,o.data),t.push(n))}catch{}return{patch:e,keys:t}}export{D as a,M as i,N as n,O as o,k as r,f as s,E as t};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-DYrLeSyY.js";import{_ as n,a as r,g as i,o as a,p as o,r as s,v as c}from"./schemas-lO3MoWQr.js";import{t as l}from"./settings-BKmRueaw.js";import{n as u}from"./api-client-Dgz-fOMl.js";var d=e(t(),1),f=n({chatSelection:n({provider:l,model:c().max(500),modelsByProvider:i(l,c().max(500)).optional()}).optional(),chatMode:s([`chat`,`work`]).optional(),sidebarWorkflowCollapsedIds:r(c().min(1).max(200)).max(200).optional(),sidebarPresentation:s([`grouped`,`inbox`]).optional(),notificationMode:s([`all`,`direct_mentions`,`none`]).optional(),learningNoticeDismissed:a().optional(),sidebarVisibility:n({showCodexChats:a(),onlyRunningTasks:a()}).optional(),scheduledWorkView:s([`calendar`,`list`]).optional(),editorControlsVisible:a().optional(),voiceNoticeAcknowledged:a().optional(),lessonProgress:i(c().min(1).max(200),n({completed:a(),currentTime:o().finite().nonnegative(),duration:o().finite().positive(),updatedAt:o().finite().nonnegative()})).refine(e=>Object.keys(e).length<=200,`Too many lessons`).optional()}),p={"openpond:last-chat-selection":`chatSelection`,"openpond:last-chat-task-mode":`chatMode`,"openpond.sidebar.workflow-collapse.v1":`sidebarWorkflowCollapsedIds`,"openpond.sidebar.presentation.v1":`sidebarPresentation`,"openpond.team-chat.notification-mode":`notificationMode`,"openpond.sidebar.continuous-learning.dismissed.v1":`learningNoticeDismissed`,"openpond.sidebar-task-visibility.v1":`sidebarVisibility`,"openpond.scheduled-work.view.v1":`scheduledWorkView`,"openpond.workspace.editorControlsVisible":`editorControlsVisible`,"openpond.voice.setupNoticeAcknowledged":`voiceNoticeAcknowledged`,"openpond.post-training-progress.v1":`lessonProgress`},m=new Set,h=null,g=null,_={},v={},y=!1,b=0,x=null,S=0,C=null,w=`openpond-client-choices-changed`;function T(){m.forEach(e=>e()),typeof window<`u`&&window.dispatchEvent(new Event(w))}function E(){return x}function D(e){return m.add(e),()=>{m.delete(e)}}function O(e){let t=(0,d.useRef)(e);t.current=e,(0,d.useEffect)(()=>D(()=>t.current()),[])}function k(e,t={}){if(!t.force&&!C?.signal?.aborted&&C?.serverUrl===e.serverUrl&&C.token===e.token)return C.promise;let n=A(e,t.signal).finally(()=>{C?.promise===n&&(C=null)});return C={serverUrl:e.serverUrl,token:e.token,signal:t.signal,promise:n},n}async function A(e,t){let n=++S,r=await u(e,`/v1/configuration`,{signal:t});if(r.clientState?.revision===null){let n=P();if(Object.keys(n.patch).length){r.clientState=await u(e,`/v1/configuration`,{signal:t,method:`POST`,body:JSON.stringify({action:`client-state`,owner:r.clientState.owner,patch:n.patch,importOnly:!0})});for(let e of n.keys)try{window.localStorage.removeItem(e)}catch{}}}if(t?.throwIfAborted(),n!==S)return;let i=h?.serverUrl!==e.serverUrl||h?.token!==e.token||g?.owner!==r.clientState?.owner;i&&(b++,_={},v={},x=null),h=e,(i||(r.clientState?.revision??0)>=(g?.revision??0))&&(g=r.clientState),T()}async function j(){if(y||!h||!g||!Object.keys(_).length)return;y=!0;let e=_,t=h,n=g.owner,r=b;_={},v=e;try{let i=await u(t,`/v1/configuration`,{method:`POST`,body:JSON.stringify({action:`client-state`,owner:n,patch:e})});r===b&&(g=i,x=null)}catch(t){r===b&&(_={...e,..._},x=`Preference changes have not been saved. ${t instanceof Error?t.message:String(t)}`)}finally{v={},y=!1,T(),!x&&Object.keys(_).length&&j()}}function M(){x=null,j()}var N={getItem(e){let t=p[e];if(!t)return null;let n={...g?.value,...v,..._}[t];return n===void 0?null:typeof n==`string`?n:JSON.stringify(n)},setItem(e,t){if(!g)return;let n=p[e];if(!n)throw Error(`Unregistered client preference.`);let r;try{r=JSON.parse(t)}catch{r=t}let i=f.parse({[n]:r});JSON.stringify({...g.value,...v,..._}[n])!==JSON.stringify(i[n])&&(_={..._,...i},T(),j())}};function P(){let e={},t=[];if(typeof window>`u`)return{patch:e,keys:t};for(let[n,r]of Object.entries(p))try{let i=window.localStorage.getItem(n);if(i===null)continue;let a;try{a=JSON.parse(i)}catch{a=i}let o=f.safeParse({[r]:a});o.success&&(Object.assign(e,o.data),t.push(n))}catch{}return{patch:e,keys:t}}export{D as a,M as i,N as n,O as o,k as r,f as s,E as t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]);export{t};
@@ -0,0 +1 @@
1
+ function e(e){return e.trim().toLowerCase().replace(/[^a-z0-9_-]+/g,`-`).replace(/^-+|-+$/g,``)}function t(t){return e(t.name||t.gitRepo||t.id)}function n(e){return`@${t(e)}`}function r(t){return Array.from(t.matchAll(/(?:^|\s)@([A-Za-z0-9_-]+)/g)).map(t=>e(t[1]??``)).filter(Boolean)}function i(n,i){let a=r(n);if(a.length===0)return!1;let o=new Set([e(i.id),t(i),i.gitRepo?e(i.gitRepo):``].filter(Boolean));return a.some(e=>o.has(e))}function a(e){return e.filter(e=>e.sandbox)}function o(t,n){let i=r(t);if(i.length===0)return null;let a=new Map;for(let t of i){let r=n.find(n=>{let r=e(n.id),i=e(n.name),a=n.gitRepo?e(n.gitRepo):``;return t===r||t===i||t===a});r&&a.set(r.id,r)}return a.size===1?Array.from(a.values())[0]??null:null}function s(t,n){let r=t.slice(0,n),i=r.match(/(?:^|\s)@([A-Za-z0-9_-]*)$/);if(!i||typeof i.index!=`number`)return null;let a=r.slice(i.index).indexOf(`@`);return a<0?null:{query:e(i[1]??``),start:i.index+a}}var c={slack:[`slack`],microsoft_teams:[`teams`,`microsoft-teams`,`microsoft_teams`],github:[`github`,`gh`],google:[`google`,`drive`,`google-drive`,`docs`],turnkey:[`turnkey`,`agent-wallet`,`agent_wallet`,`wallet`],x:[`x`,`twitter`],mcp:[`mcp`,`openpond-mcp`]};function l(e){return`@${e.token}`}function u(e){return`@${_(e)}`}function d(e){let t=new Map;for(let n of e){if(!n.connected||n.statusSource!==`integration_connection`)continue;let e=t.get(n.providerFamily)??[];e.push(n),t.set(n.providerFamily,e)}return Array.from(t.entries()).map(([e,t])=>{let n=t[0],r=y(t.flatMap(e=>e.capabilities.map(e=>e.id))),i=y(t.flatMap(e=>e.capabilityLabels)),a=y(t.flatMap(e=>e.connections.map(e=>e.id).filter(b))),o=y(t.map(e=>e.id)),s=y(t.map(e=>e.setupSurface)),c=g(e);return{provider:e,label:n.providerLabel,detail:i.length>0?i.slice(0,4).join(`, `):n.description,token:c,tokens:h(t),ref:{kind:`integration`,provider:e,appIds:o,setupSurfaces:s,...a.length>0?{connectionIds:a}:{},...r.length>0?{capabilities:r}:{}}}})}function f(t,n){let r=e(n);return t.filter(e=>!r||e.tokens.some(e=>e.includes(r))).slice(0,8)}function p(e,t){let n=v(e);if(n.length===0)return[];let r=new Map;for(let e of n){let n=t.find(t=>t.tokens.includes(e));n&&r.set(n.provider,n)}return Array.from(r.values())}function m(t,n){if(n.length===0)return[];let r=[];for(let i of t.matchAll(/(?:^|\s)@([A-Za-z0-9_-]+)/g)){let t=i[1]??``,a=e(t);if(!a)continue;let o=n.find(e=>e.tokens.includes(a));if(!o)continue;let s=(i[0]??``).indexOf(`@`);if(s<0||typeof i.index!=`number`)continue;let c=i.index+s,l=`@${t}`;r.push({detail:o.detail,displayText:u(o),end:c+l.length,label:o.label,provider:o.provider,start:c,text:l})}return r}function h(t){return y(t.flatMap(e=>[...c[e.providerFamily],e.providerFamily,e.id,e.label,e.shortLabel]).map(e).filter(Boolean))}function g(t){return e(c[t][0]??t)}function _(e){return e.provider===`github`?`GitHub`:e.provider===`x`?`X`:e.provider===`mcp`?`MCP`:e.label}function v(t){return Array.from(t.matchAll(/(?:^|\s)@([A-Za-z0-9_-]+)/g)).map(t=>e(t[1]??``)).filter(Boolean)}function y(e){return Array.from(new Set(e))}function b(e){return typeof e==`string`&&e.length>0}export{p as a,t as c,o as d,a as f,m as i,e as l,d as n,s as o,l as r,n as s,f as t,i as u};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-BsPUniZy.js";var n=e(t()),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),s=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},c={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},l=(0,n.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a=``,children:l,iconNode:u,...d},f)=>(0,n.createElement)(`svg`,{ref:f,...c,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:o(`lucide`,a),...!l&&!s(d)&&{"aria-hidden":`true`},...d},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])),u=(e,t)=>{let i=(0,n.forwardRef)(({className:i,...s},c)=>(0,n.createElement)(l,{ref:c,iconNode:t,className:o(`lucide-${r(a(e))}`,`lucide-${e}`,i),...s}));return i.displayName=a(e),i};export{u as t};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-DYrLeSyY.js";var n=e(t()),r=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),i=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),a=e=>{let t=i(e);return t.charAt(0).toUpperCase()+t.slice(1)},o=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),s=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},c={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},l=(0,n.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:r=2,absoluteStrokeWidth:i,className:a=``,children:l,iconNode:u,...d},f)=>(0,n.createElement)(`svg`,{ref:f,...c,width:t,height:t,stroke:e,strokeWidth:i?Number(r)*24/Number(t):r,className:o(`lucide`,a),...!l&&!s(d)&&{"aria-hidden":`true`},...d},[...u.map(([e,t])=>(0,n.createElement)(e,t)),...Array.isArray(l)?l:[l]])),u=(e,t)=>{let i=(0,n.forwardRef)(({className:i,...s},c)=>(0,n.createElement)(l,{ref:c,iconNode:t,className:o(`lucide-${r(a(e))}`,`lucide-${e}`,i),...s}));return i.displayName=a(e),i};export{u as t};
@@ -1 +1 @@
1
- import{c as e}from"./WorkspaceMonacoEditor-DfsL1WIi.js";import"./toggleHighContrast-Di1cRuQ4.js";import{t}from"./workers-u92Boudu.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-68cAgnuv.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-BSlsup0j.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(t){let n=[],s=[],c=new x(t);n.push(c);let g=(...e)=>c.getLanguageServiceWorker(...e);function y(){let{languageId:n,modeConfiguration:c}=t;w(s),c.completionItems&&s.push(e.registerCompletionItemProvider(n,new _(g,[`/`,`-`,`:`]))),c.hovers&&s.push(e.registerHoverProvider(n,new a(g))),c.documentHighlights&&s.push(e.registerDocumentHighlightProvider(n,new p(g))),c.definitions&&s.push(e.registerDefinitionProvider(n,new f(g))),c.references&&s.push(e.registerReferenceProvider(n,new o(g))),c.documentSymbols&&s.push(e.registerDocumentSymbolProvider(n,new u(g))),c.rename&&s.push(e.registerRenameProvider(n,new m(g))),c.colors&&s.push(e.registerColorProvider(n,new l(g))),c.foldingRanges&&s.push(e.registerFoldingRangeProvider(n,new v(g))),c.diagnostics&&s.push(new h(n,g,t.onDidChange)),c.selectionRanges&&s.push(e.registerSelectionRangeProvider(n,new d(g))),c.documentFormattingEdits&&s.push(e.registerDocumentFormattingEditProvider(n,new r(g))),c.documentRangeFormattingEdits&&s.push(e.registerDocumentRangeFormattingEditProvider(n,new i(g)))}return y(),n.push(C(s)),C(n)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,S as setupMode,n as toRange,y as toTextEdit};
1
+ import{c as e}from"./WorkspaceMonacoEditor-BJxaiDrj.js";import"./toggleHighContrast-B-BD2K2Q.js";import{t}from"./workers-Clf4hKt5.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-pQmEaoMt.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-BSlsup0j.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(t){let n=[],s=[],c=new x(t);n.push(c);let g=(...e)=>c.getLanguageServiceWorker(...e);function y(){let{languageId:n,modeConfiguration:c}=t;w(s),c.completionItems&&s.push(e.registerCompletionItemProvider(n,new _(g,[`/`,`-`,`:`]))),c.hovers&&s.push(e.registerHoverProvider(n,new a(g))),c.documentHighlights&&s.push(e.registerDocumentHighlightProvider(n,new p(g))),c.definitions&&s.push(e.registerDefinitionProvider(n,new f(g))),c.references&&s.push(e.registerReferenceProvider(n,new o(g))),c.documentSymbols&&s.push(e.registerDocumentSymbolProvider(n,new u(g))),c.rename&&s.push(e.registerRenameProvider(n,new m(g))),c.colors&&s.push(e.registerColorProvider(n,new l(g))),c.foldingRanges&&s.push(e.registerFoldingRangeProvider(n,new v(g))),c.diagnostics&&s.push(new h(n,g,t.onDidChange)),c.selectionRanges&&s.push(e.registerSelectionRangeProvider(n,new d(g))),c.documentFormattingEdits&&s.push(e.registerDocumentFormattingEditProvider(n,new r(g))),c.documentRangeFormattingEdits&&s.push(e.registerDocumentRangeFormattingEditProvider(n,new i(g)))}return y(),n.push(C(s)),C(n)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,S as setupMode,n as toRange,y as toTextEdit};
@@ -0,0 +1 @@
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]);export{t};
@@ -1 +1 @@
1
- import{c as e}from"./WorkspaceMonacoEditor-DfsL1WIi.js";import"./toggleHighContrast-Di1cRuQ4.js";import{t}from"./workers-u92Boudu.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-68cAgnuv.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/html/htmlWorker`,createWorker:()=>new Worker(new URL(`/assets/html.worker-jOmjF9ZZ.js`,``+import.meta.url),{type:`module`}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}},S=class extends _{constructor(e){super(e,[`.`,`:`,`<`,`"`,`=`,`/`])}};function C(t){let n=new x(t),o=(...e)=>n.getLanguageServiceWorker(...e),s=t.languageId;e.registerCompletionItemProvider(s,new S(o)),e.registerHoverProvider(s,new a(o)),e.registerDocumentHighlightProvider(s,new p(o)),e.registerLinkProvider(s,new g(o)),e.registerFoldingRangeProvider(s,new v(o)),e.registerDocumentSymbolProvider(s,new u(o)),e.registerSelectionRangeProvider(s,new d(o)),e.registerRenameProvider(s,new m(o)),s===`html`&&(e.registerDocumentFormattingEditProvider(s,new r(o)),e.registerDocumentRangeFormattingEditProvider(s,new i(o)))}function w(t){let n=[],o=[],s=new x(t);n.push(s);let c=(...e)=>s.getLanguageServiceWorker(...e);function l(){let{languageId:n,modeConfiguration:s}=t;E(o),s.completionItems&&o.push(e.registerCompletionItemProvider(n,new S(c))),s.hovers&&o.push(e.registerHoverProvider(n,new a(c))),s.documentHighlights&&o.push(e.registerDocumentHighlightProvider(n,new p(c))),s.links&&o.push(e.registerLinkProvider(n,new g(c))),s.documentSymbols&&o.push(e.registerDocumentSymbolProvider(n,new u(c))),s.rename&&o.push(e.registerRenameProvider(n,new m(c))),s.foldingRanges&&o.push(e.registerFoldingRangeProvider(n,new v(c))),s.selectionRanges&&o.push(e.registerSelectionRangeProvider(n,new d(c))),s.documentFormattingEdits&&o.push(e.registerDocumentFormattingEditProvider(n,new r(c))),s.documentRangeFormattingEdits&&o.push(e.registerDocumentRangeFormattingEditProvider(n,new i(c)))}return l(),n.push(T(o)),T(n)}function T(e){return{dispose:()=>E(e)}}function E(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,w as setupMode,C as setupMode1,n as toRange,y as toTextEdit};
1
+ import{c as e}from"./WorkspaceMonacoEditor-BJxaiDrj.js";import"./toggleHighContrast-B-BD2K2Q.js";import{t}from"./workers-Clf4hKt5.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-pQmEaoMt.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/html/htmlWorker`,createWorker:()=>new Worker(new URL(`/assets/html.worker-jOmjF9ZZ.js`,``+import.meta.url),{type:`module`}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}},S=class extends _{constructor(e){super(e,[`.`,`:`,`<`,`"`,`=`,`/`])}};function C(t){let n=new x(t),o=(...e)=>n.getLanguageServiceWorker(...e),s=t.languageId;e.registerCompletionItemProvider(s,new S(o)),e.registerHoverProvider(s,new a(o)),e.registerDocumentHighlightProvider(s,new p(o)),e.registerLinkProvider(s,new g(o)),e.registerFoldingRangeProvider(s,new v(o)),e.registerDocumentSymbolProvider(s,new u(o)),e.registerSelectionRangeProvider(s,new d(o)),e.registerRenameProvider(s,new m(o)),s===`html`&&(e.registerDocumentFormattingEditProvider(s,new r(o)),e.registerDocumentRangeFormattingEditProvider(s,new i(o)))}function w(t){let n=[],o=[],s=new x(t);n.push(s);let c=(...e)=>s.getLanguageServiceWorker(...e);function l(){let{languageId:n,modeConfiguration:s}=t;E(o),s.completionItems&&o.push(e.registerCompletionItemProvider(n,new S(c))),s.hovers&&o.push(e.registerHoverProvider(n,new a(c))),s.documentHighlights&&o.push(e.registerDocumentHighlightProvider(n,new p(c))),s.links&&o.push(e.registerLinkProvider(n,new g(c))),s.documentSymbols&&o.push(e.registerDocumentSymbolProvider(n,new u(c))),s.rename&&o.push(e.registerRenameProvider(n,new m(c))),s.foldingRanges&&o.push(e.registerFoldingRangeProvider(n,new v(c))),s.selectionRanges&&o.push(e.registerSelectionRangeProvider(n,new d(c))),s.documentFormattingEdits&&o.push(e.registerDocumentFormattingEditProvider(n,new r(c))),s.documentRangeFormattingEdits&&o.push(e.registerDocumentRangeFormattingEditProvider(n,new i(c)))}return l(),n.push(T(o)),T(n)}function T(e){return{dispose:()=>E(e)}}function E(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,w as setupMode,C as setupMode1,n as toRange,y as toTextEdit};
@@ -0,0 +1 @@
1
+ import{m as e}from"./index-DYrLeSyY.js";e();
@@ -1 +1 @@
1
- import{t as e}from"./createLucideIcon-C4b2afqG.js";var t=e(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]);export{t};
1
+ import{t as e}from"./createLucideIcon-DmttVQ_a.js";var t=e(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]);export{t};