openpond 0.2.63 → 0.2.65

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 (561) hide show
  1. package/dist/app-server.d.ts +76 -2
  2. package/dist/app-server.js +1 -1
  3. package/dist/chunks/account-context-TIJOM22A.js +12 -0
  4. package/dist/chunks/acp-PHMBLRCV.js +2 -0
  5. package/dist/chunks/acp-agent-A7GK2VSH.js +19 -0
  6. package/dist/chunks/actions-command-VLKMHCMI.js +2 -0
  7. package/dist/chunks/app-layer-J66CQ2QN.js +3 -0
  8. package/dist/chunks/app-server-connected-apps-IB6M35NS.js +2 -0
  9. package/dist/chunks/app-server-evaluations-V6LRWDUF.js +2 -0
  10. package/dist/chunks/app-server-harness-services-6ZRLA3YD.js +2 -0
  11. package/dist/chunks/app-server-runtime-OMR2VE6L.js +2 -0
  12. package/dist/chunks/apps-IHUFERZO.js +2 -0
  13. package/dist/chunks/{chunk-NZTCH6K5.js → chunk-2GJD23CM.js} +1 -1
  14. package/dist/chunks/{chunk-BKEDG3A4.js → chunk-2MEOUS24.js} +1 -1
  15. package/dist/chunks/{chunk-DUL6DXOI.js → chunk-2W22IXHB.js} +1 -1
  16. package/dist/chunks/{chunk-GGJUWIGR.js → chunk-36FNNR5N.js} +1 -1
  17. package/dist/chunks/chunk-3BJ7LPE3.js +2 -0
  18. package/dist/chunks/chunk-3MVKXAH7.js +2 -0
  19. package/dist/chunks/{chunk-UTNGEMW5.js → chunk-3WJQ4IGK.js} +1 -1
  20. package/dist/chunks/{chunk-G6OR5NB6.js → chunk-4D3CICBG.js} +1 -1
  21. package/dist/chunks/chunk-4DYWVGVS.js +2 -0
  22. package/dist/chunks/{chunk-KUPJNBWG.js → chunk-4JYTFEND.js} +1 -1
  23. package/dist/chunks/chunk-4MQHIFZL.js +2 -0
  24. package/dist/chunks/chunk-4TO743HO.js +4 -0
  25. package/dist/chunks/{chunk-B4RKHHF7.js → chunk-4TTXNVCE.js} +1 -1
  26. package/dist/chunks/{chunk-3YXYBYWK.js → chunk-4V73I4OL.js} +1 -1
  27. package/dist/chunks/chunk-55Q64WWF.js +2 -0
  28. package/dist/chunks/{chunk-F7QTIHXX.js → chunk-5AU5Y6KS.js} +1 -1
  29. package/dist/chunks/chunk-5HPZGLOL.js +2 -0
  30. package/dist/chunks/{chunk-LCSBCCYC.js → chunk-5JVJQA5H.js} +1 -1
  31. package/dist/chunks/chunk-5KJMFK65.js +2 -0
  32. package/dist/chunks/{chunk-BSPFY3Y5.js → chunk-5KWKSR4P.js} +1 -1
  33. package/dist/chunks/chunk-5WPMI6QX.js +2 -0
  34. package/dist/chunks/{chunk-SHJY5RLU.js → chunk-5Z3AU5CL.js} +1 -1
  35. package/dist/chunks/{chunk-DQI5TE6A.js → chunk-66HFW4OU.js} +1 -1
  36. package/dist/chunks/{chunk-NT7N6KLE.js → chunk-67HXM6AL.js} +1 -1
  37. package/dist/chunks/{chunk-J7ZTPXRQ.js → chunk-6C3CXME7.js} +1 -1
  38. package/dist/chunks/{chunk-PWK5Z5S3.js → chunk-6ESBAHWK.js} +1 -1
  39. package/dist/chunks/{chunk-XNOMIWEY.js → chunk-6I5AUTVO.js} +1 -1
  40. package/dist/chunks/{chunk-OG33QAG6.js → chunk-6S2MWJVD.js} +1 -1
  41. package/dist/chunks/{chunk-KCOTDUGW.js → chunk-6TRVEA3T.js} +1 -1
  42. package/dist/chunks/chunk-6ZTP6CUJ.js +2 -0
  43. package/dist/chunks/{chunk-4L6DU6Z2.js → chunk-7FBWUVX7.js} +1 -1
  44. package/dist/chunks/{chunk-GPL2Z65R.js → chunk-7P5SH3CI.js} +2 -2
  45. package/dist/chunks/chunk-7PKTCMZ6.js +2 -0
  46. package/dist/chunks/chunk-7XOUM6RK.js +2 -0
  47. package/dist/chunks/chunk-A77DLBR4.js +2 -0
  48. package/dist/chunks/chunk-AF3AVDPP.js +2 -0
  49. package/dist/chunks/{chunk-RV7PUSI2.js → chunk-AJXWJLZA.js} +1 -1
  50. package/dist/chunks/chunk-AMC4Z7G4.js +2 -0
  51. package/dist/chunks/chunk-ANG2YMMD.js +2 -0
  52. package/dist/chunks/{chunk-ZPTKR3GB.js → chunk-B32CW3NT.js} +1 -1
  53. package/dist/chunks/{chunk-Y766IN7Y.js → chunk-B666Z2NS.js} +1 -1
  54. package/dist/chunks/chunk-BJXPQIVD.js +2 -0
  55. package/dist/chunks/{chunk-WBUK73ST.js → chunk-BL3CZWWD.js} +1 -1
  56. package/dist/chunks/{chunk-XMHIQ3SK.js → chunk-BTJACFU3.js} +2 -2
  57. package/dist/chunks/{chunk-25XXZS3E.js → chunk-C5B3FMV3.js} +1 -1
  58. package/dist/chunks/chunk-CRDKBFRN.js +2 -0
  59. package/dist/chunks/chunk-CYQLXS2U.js +2 -0
  60. package/dist/chunks/{chunk-N4VHLJBZ.js → chunk-D7R2AAX2.js} +1 -1
  61. package/dist/chunks/{chunk-LSZJ5M3X.js → chunk-DAEUVT2I.js} +1 -1
  62. package/dist/chunks/{chunk-ELX7VRSU.js → chunk-DIDQHTAX.js} +1 -1
  63. package/dist/chunks/chunk-DMO3UIS7.js +6 -0
  64. package/dist/chunks/{chunk-4BJGUCHY.js → chunk-DRMOHADV.js} +1 -1
  65. package/dist/chunks/{chunk-FYYYECHE.js → chunk-DSJZS77R.js} +4 -4
  66. package/dist/chunks/{chunk-7HRLWPPZ.js → chunk-DXA2UHBE.js} +1 -1
  67. package/dist/chunks/chunk-E2S2EMYQ.js +10 -0
  68. package/dist/chunks/{chunk-T6JN4PND.js → chunk-EBOTNBUS.js} +1 -1
  69. package/dist/chunks/chunk-ECOH24MC.js +9 -0
  70. package/dist/chunks/{chunk-6PKXJEJM.js → chunk-EICS777E.js} +1 -1
  71. package/dist/chunks/{chunk-4SZ3HKHU.js → chunk-EVQISX7M.js} +1 -1
  72. package/dist/chunks/chunk-FEQ7HNJR.js +2 -0
  73. package/dist/chunks/{chunk-2HAWOMZK.js → chunk-FGOTSCSE.js} +1 -1
  74. package/dist/chunks/{chunk-IWWXIUAQ.js → chunk-FHLSLOKH.js} +8 -8
  75. package/dist/chunks/{chunk-BU27SLZP.js → chunk-FS2VKOT7.js} +1 -1
  76. package/dist/chunks/{chunk-4FNCBA3Y.js → chunk-FUFI4THX.js} +1 -1
  77. package/dist/chunks/{chunk-W5W4IODW.js → chunk-FYWQWKVS.js} +1 -1
  78. package/dist/chunks/{chunk-IZ56L2ZK.js → chunk-G4747MOW.js} +1 -1
  79. package/dist/chunks/{chunk-J572ANHX.js → chunk-G4E3WGLM.js} +4 -4
  80. package/dist/chunks/{chunk-P7HRF4FM.js → chunk-GD3RCUDH.js} +1 -1
  81. package/dist/chunks/{chunk-HUCBKXTU.js → chunk-GDJ4X2ZN.js} +1 -1
  82. package/dist/chunks/{chunk-JHR3LF2F.js → chunk-GF55VEMR.js} +1 -1
  83. package/dist/chunks/{chunk-GXCUH2VV.js → chunk-GFAI2MCJ.js} +3 -3
  84. package/dist/chunks/{chunk-KOKX7PBS.js → chunk-GI7LTJV3.js} +1 -1
  85. package/dist/chunks/{chunk-TCOTXCV6.js → chunk-GIU3Z45P.js} +1 -1
  86. package/dist/chunks/{chunk-GXZCMO6S.js → chunk-GRLQHYAU.js} +2 -2
  87. package/dist/chunks/{chunk-M3SCON53.js → chunk-GUG2SWRZ.js} +1 -1
  88. package/dist/chunks/{chunk-JQRMDFF3.js → chunk-H42UW6IF.js} +1 -1
  89. package/dist/chunks/{chunk-EZRUWIP6.js → chunk-H5ML7735.js} +1 -1
  90. package/dist/chunks/{chunk-VNJAAYNQ.js → chunk-HIQPGYVH.js} +1 -1
  91. package/dist/chunks/{chunk-DLANLLKH.js → chunk-HNDAGZCF.js} +1 -1
  92. package/dist/chunks/{chunk-OE22TAXP.js → chunk-HNQPEOJD.js} +1 -1
  93. package/dist/chunks/chunk-HORMGT2Q.js +2 -0
  94. package/dist/chunks/{chunk-2V4LPUBH.js → chunk-HPTEJBP4.js} +1 -1
  95. package/dist/chunks/{chunk-UWHIU24L.js → chunk-HVM2GUM3.js} +1 -1
  96. package/dist/chunks/{chunk-NEJLJ2XY.js → chunk-HX6GXMDK.js} +1 -1
  97. package/dist/chunks/chunk-I3NYYOSS.js +2 -0
  98. package/dist/chunks/{chunk-LV3CQ72P.js → chunk-I6VMRQF4.js} +1 -1
  99. package/dist/chunks/{chunk-QU4UE73E.js → chunk-IEVJLG3V.js} +1 -1
  100. package/dist/chunks/chunk-IOSBGCRT.js +2 -0
  101. package/dist/chunks/{chunk-SO42ZB5K.js → chunk-JBFPTEVE.js} +1 -1
  102. package/dist/chunks/{chunk-G32BO6M5.js → chunk-JD76ANPN.js} +1 -1
  103. package/dist/chunks/{chunk-ERJV5BMC.js → chunk-JFZ6USNQ.js} +1 -1
  104. package/dist/chunks/{chunk-UPWJSNL5.js → chunk-JLW5BQVO.js} +1 -1
  105. package/dist/chunks/chunk-JRGECNP3.js +2 -0
  106. package/dist/chunks/{chunk-DABBHWSF.js → chunk-KAWXVMHI.js} +1 -1
  107. package/dist/chunks/chunk-KGUPAPGR.js +2 -0
  108. package/dist/chunks/{chunk-AHOBCBVZ.js → chunk-KOKBDIGR.js} +1 -1
  109. package/dist/chunks/chunk-KTIBXRWQ.js +2 -0
  110. package/dist/chunks/chunk-L4EJ5R3B.js +23 -0
  111. package/dist/chunks/{chunk-SI5W5LBV.js → chunk-LARJARMS.js} +1 -1
  112. package/dist/chunks/{chunk-MPNJ2BB4.js → chunk-LE75SVEL.js} +1 -1
  113. package/dist/chunks/{chunk-ERT32RZA.js → chunk-LI3FTPAH.js} +5 -5
  114. package/dist/chunks/chunk-LK77GI6M.js +2 -0
  115. package/dist/chunks/chunk-LOIYNRBC.js +33 -0
  116. package/dist/chunks/{chunk-7WYL2IDD.js → chunk-LXZLLTYQ.js} +1 -1
  117. package/dist/chunks/{chunk-RZUCVF2Q.js → chunk-LYVHYT3L.js} +1 -1
  118. package/dist/chunks/{chunk-MWXW2CA6.js → chunk-LZPCA6DH.js} +1 -1
  119. package/dist/chunks/{chunk-GVARQXYI.js → chunk-M5QPL5NO.js} +1 -1
  120. package/dist/chunks/{chunk-WWQNMC7C.js → chunk-MCBRB5D6.js} +1 -1
  121. package/dist/chunks/chunk-MHPCVQOE.js +2 -0
  122. package/dist/chunks/chunk-MMJU6PZV.js +2 -0
  123. package/dist/chunks/chunk-MVPKU72J.js +4 -0
  124. package/dist/chunks/{chunk-AGVOGPAZ.js → chunk-MWS2NAHJ.js} +1 -1
  125. package/dist/chunks/{chunk-R6VJDOQM.js → chunk-N2AV7PHV.js} +4 -4
  126. package/dist/chunks/{chunk-R6WMY6AH.js → chunk-NTM3KQ25.js} +1 -1
  127. package/dist/chunks/chunk-NXN7GJOH.js +2 -0
  128. package/dist/chunks/chunk-O6ZYDHEJ.js +3 -0
  129. package/dist/chunks/chunk-OKEC2EIE.js +2 -0
  130. package/dist/chunks/{chunk-KCV5VN4X.js → chunk-OKKNDQJF.js} +1 -1
  131. package/dist/chunks/{chunk-ZYVHOVKL.js → chunk-OPTJYDZN.js} +1 -1
  132. package/dist/chunks/{chunk-NJLULBTM.js → chunk-OTDDXEQ6.js} +1 -1
  133. package/dist/chunks/{chunk-RDSVU6F6.js → chunk-OTUS7NTQ.js} +1 -1
  134. package/dist/chunks/{chunk-UH4JSSRL.js → chunk-OTXGAKFH.js} +8 -8
  135. package/dist/chunks/chunk-OW3EOC5Q.js +4 -0
  136. package/dist/chunks/chunk-OXRVILDW.js +2 -0
  137. package/dist/chunks/{chunk-JEISPWWM.js → chunk-PWKJ5KLZ.js} +1 -1
  138. package/dist/chunks/{chunk-RFMME46Z.js → chunk-PYNW5OFA.js} +1 -1
  139. package/dist/chunks/{chunk-AKGCM53D.js → chunk-Q3WXB465.js} +1 -1
  140. package/dist/chunks/{chunk-KHTAAVC2.js → chunk-Q4AXZY2P.js} +1 -1
  141. package/dist/chunks/{chunk-QJ6KUVAR.js → chunk-QAEZNFAM.js} +1 -1
  142. package/dist/chunks/{chunk-ABF3W2MO.js → chunk-QAFXQHHG.js} +2 -2
  143. package/dist/chunks/chunk-QCJY6FTC.js +3 -0
  144. package/dist/chunks/{chunk-5MHYGMJG.js → chunk-QJJNHKLT.js} +1 -1
  145. package/dist/chunks/{chunk-ERL2M773.js → chunk-QYQZQVVN.js} +1 -1
  146. package/dist/chunks/{chunk-VVNV4NNW.js → chunk-RCT3O3HQ.js} +1 -1
  147. package/dist/chunks/{chunk-7R56WC7L.js → chunk-RHMULF56.js} +1 -1
  148. package/dist/chunks/chunk-RRWL5BHZ.js +2 -0
  149. package/dist/chunks/{chunk-RG3NH6YQ.js → chunk-S4WILIRA.js} +1 -1
  150. package/dist/chunks/{chunk-N33D7KCW.js → chunk-S6UCVXBC.js} +1 -1
  151. package/dist/chunks/{chunk-IHB5GTOJ.js → chunk-SAZTOGX6.js} +3 -3
  152. package/dist/chunks/{chunk-2EPR4HLF.js → chunk-SH7POUVX.js} +6 -6
  153. package/dist/chunks/{chunk-NLYZ5K7U.js → chunk-SSJV3VX7.js} +1 -1
  154. package/dist/chunks/chunk-TBODQT4W.js +2 -0
  155. package/dist/chunks/chunk-TGULVWPV.js +2 -0
  156. package/dist/chunks/{chunk-HIYQPZ7C.js → chunk-TPOAAJKA.js} +1 -1
  157. package/dist/chunks/{chunk-42V4NV2F.js → chunk-TVDZXDQW.js} +1 -1
  158. package/dist/chunks/{chunk-FVRII5XO.js → chunk-U2BD545L.js} +1 -1
  159. package/dist/chunks/chunk-UK5LGSGT.js +2 -0
  160. package/dist/chunks/{chunk-HFJUXKT5.js → chunk-ULJZ7NUF.js} +1 -1
  161. package/dist/chunks/chunk-UM6EQOT2.js +161 -0
  162. package/dist/chunks/chunk-UN2LKLGV.js +2 -0
  163. package/dist/chunks/{chunk-4NXEYPPX.js → chunk-UOFDKMRU.js} +1 -1
  164. package/dist/chunks/{chunk-2ITZW2CN.js → chunk-UTIELP6F.js} +1 -1
  165. package/dist/chunks/{chunk-NWQL6FNF.js → chunk-V3KEG6MI.js} +1 -1
  166. package/dist/chunks/{chunk-BPZOABMC.js → chunk-V3S2B6WU.js} +2 -2
  167. package/dist/chunks/{chunk-ZG6353RM.js → chunk-VD2TQCMH.js} +1 -1
  168. package/dist/chunks/{chunk-4ZBOYWQ3.js → chunk-VS2LOUCT.js} +1 -1
  169. package/dist/chunks/{chunk-V7KR74NO.js → chunk-VS3AMJEK.js} +1 -1
  170. package/dist/chunks/{chunk-YCZZ62C2.js → chunk-W22KWKF6.js} +1 -1
  171. package/dist/chunks/chunk-W7NXFRHN.js +2 -0
  172. package/dist/chunks/{chunk-DTTFUANI.js → chunk-WBO6FQHR.js} +2 -2
  173. package/dist/chunks/{chunk-5ZBLCWEJ.js → chunk-WJSJXK2N.js} +1 -1
  174. package/dist/chunks/{chunk-C2LAEGOW.js → chunk-WKHGXLJD.js} +2 -2
  175. package/dist/chunks/{chunk-H6C4MAUN.js → chunk-WLQEONBF.js} +1 -1
  176. package/dist/chunks/chunk-WLZJOCLA.js +10 -0
  177. package/dist/chunks/chunk-WMBOXX7G.js +2 -0
  178. package/dist/chunks/{chunk-PF56N7ZY.js → chunk-X2J2P5ZT.js} +5 -5
  179. package/dist/chunks/{chunk-AH26AQN7.js → chunk-XHBMK6LC.js} +1 -1
  180. package/dist/chunks/{chunk-ZZHXQCNB.js → chunk-Y3B6ZUE6.js} +1 -1
  181. package/dist/chunks/{chunk-WP2L2NY2.js → chunk-YBKDEEEH.js} +1 -1
  182. package/dist/chunks/chunk-YRDPVTEI.js +3 -0
  183. package/dist/chunks/{chunk-JORRZ4BB.js → chunk-YU4JYWCA.js} +1 -1
  184. package/dist/chunks/{chunk-CZ5R4JXZ.js → chunk-Z2TOBS3P.js} +1 -1
  185. package/dist/chunks/chunk-ZFJWA4JK.js +1 -0
  186. package/dist/chunks/chunk-ZSZXA7WB.js +2 -0
  187. package/dist/chunks/{chunk-LK2K3SPM.js → chunk-ZU3YBRXS.js} +2 -2
  188. package/dist/chunks/{chunk-5FU5RLML.js → chunk-ZUT4EM64.js} +1 -1
  189. package/dist/chunks/chunk-ZWW227M3.js +2 -0
  190. package/dist/chunks/chunk-ZY32SZ2P.js +3 -0
  191. package/dist/chunks/cli-TE7RP5H7.js +2 -0
  192. package/dist/chunks/client-I5MYOJEJ.js +2 -0
  193. package/dist/chunks/command-NDHFZAKA.js +13 -0
  194. package/dist/chunks/configuration-command-465ODYTC.js +2 -0
  195. package/dist/chunks/connected-app-executor-7DYMZCD7.js +2 -0
  196. package/dist/chunks/connected-evidence-XPAZQRFQ.js +2 -0
  197. package/dist/chunks/{connected-starting-assets-JONPTII6.js → connected-starting-assets-2YX3QVDB.js} +1 -1
  198. package/dist/chunks/connection-GDWPMHPC.js +2 -0
  199. package/dist/chunks/{continual-Z7MO2PF6.js → continual-HQCFY7GN.js} +3 -3
  200. package/dist/chunks/core-commands-PJOGRBHJ.js +2 -0
  201. package/dist/chunks/dataset-preparation-authoring-KWRTMKN6.js +4 -0
  202. package/dist/chunks/datasets-OTE2I4VT.js +2 -0
  203. package/dist/chunks/desktop-test-Q6REQJ7K.js +3 -0
  204. package/dist/chunks/dist-GR56E3QK.js +2 -0
  205. package/dist/chunks/dist-J4KHAVO3.js +2 -0
  206. package/dist/chunks/dist-O7HXZUBW.js +2 -0
  207. package/dist/chunks/enclave-7VLABNIX.js +2 -0
  208. package/dist/chunks/evaluation-coordination-KRCY2H4C.js +2 -0
  209. package/dist/chunks/experiment-improvements-7MI2VYBR.js +2 -0
  210. package/dist/chunks/experiments-CNUQKJZE.js +2 -0
  211. package/dist/chunks/experiments-VOCZ4DW3.js +2 -0
  212. package/dist/chunks/experiments-signal-4N344D4Y.js +2 -0
  213. package/dist/chunks/{extension-ZM6NI5O5.js → extension-UH34ZF7N.js} +1 -1
  214. package/dist/chunks/{help-7HXFWIKS.js → help-ZUKVY6RO.js} +1 -1
  215. package/dist/chunks/host-profile-evaluation-tools-75EPCRSZ.js +2 -0
  216. package/dist/chunks/host-profile-external-dataset-YRKG2GL5.js +2 -0
  217. package/dist/chunks/hosted-app-server-composition-DWSU6ASL.js +2 -0
  218. package/dist/chunks/hosted-experiment-improvement-NZTPZTDH.js +3 -0
  219. package/dist/chunks/hosted-harness-runtime-3AJGEIFD.js +2 -0
  220. package/dist/chunks/hosted-profile-candidate-3CAT3XBI.js +3 -0
  221. package/dist/chunks/hosted-profile-compiler-RXU626Q6.js +2 -0
  222. package/dist/chunks/hosted-profile-evaluation-control-CBDRKJ5J.js +2 -0
  223. package/dist/chunks/hosted-profile-evaluation-inspection-CHYKDYUQ.js +3 -0
  224. package/dist/chunks/hosted-profile-evaluation-preparation-H5S7JZMD.js +3 -0
  225. package/dist/chunks/hosted-tasksets-AMGDDB2R.js +2 -0
  226. package/dist/chunks/human-review-HOBGC6RC.js +2 -0
  227. package/dist/chunks/{import-6SI4BEKS.js → import-Q3YRFVY7.js} +2 -2
  228. package/dist/chunks/learning-NJLTGZFQ.js +2 -0
  229. package/dist/chunks/learning-XTY5VOTK.js +2 -0
  230. package/dist/chunks/local-harness-improvement-runtime-XEA73RGS.js +2 -0
  231. package/dist/chunks/local-harness-taskset-review-SW35G4DM.js +2 -0
  232. package/dist/chunks/local-scope-X3737QXT.js +2 -0
  233. package/dist/chunks/model-projects-GHWCKDON.js +2 -0
  234. package/dist/chunks/opchat-2LLDIWEJ.js +3 -0
  235. package/dist/chunks/opchat-bounded-chat-FLDS36LU.js +2 -0
  236. package/dist/chunks/organizations-VIFSOY6P.js +2 -0
  237. package/dist/chunks/{profile-O5HL5DTQ.js → profile-KIHMW2WB.js} +1 -1
  238. package/dist/chunks/profile-training-source-VIND2MM2.js +2 -0
  239. package/dist/chunks/project-action-payload-2G57RL74.js +2 -0
  240. package/dist/chunks/project-agent-TJLQNMLA.js +2 -0
  241. package/dist/chunks/published-experiment-source-D3C2AWQD.js +2 -0
  242. package/dist/chunks/refiner-profile-service-PPGGNVOV.js +2 -0
  243. package/dist/chunks/{runtime-XBA744HJ.js → runtime-VSOOPNYN.js} +2 -2
  244. package/dist/chunks/sandbox-command-CQO6BEMQ.js +2 -0
  245. package/dist/chunks/{sandbox-template-27U3FQN7.js → sandbox-template-MU33IILL.js} +1 -1
  246. package/dist/chunks/saved-work-LAVTNKPT.js +2 -0
  247. package/dist/chunks/send-turn-D3GTSSHI.js +2 -0
  248. package/dist/chunks/setup-HSRCZ3WR.js +2 -0
  249. package/dist/chunks/{src-PU7QTFO5.js → src-662QOKNP.js} +1 -1
  250. package/dist/chunks/{src-BLWX6DRG.js → src-CHQVWHV7.js} +117 -117
  251. package/dist/chunks/standalone-experiment-turn-owner-KKYIGGPF.js +2 -0
  252. package/dist/chunks/stdio-Z65UIX55.js +2 -0
  253. package/dist/chunks/store-chat-resources-ZWDYMDJF.js +2 -0
  254. package/dist/chunks/{store-continual-support-reviews-FOMYYS25.js → store-continual-support-reviews-7PDLGRWF.js} +1 -1
  255. package/dist/chunks/store-conversation-serving-WRT4N7N2.js +2 -0
  256. package/dist/chunks/{store-create-improve-3LQMIYAP.js → store-create-improve-G46KIUVT.js} +1 -1
  257. package/dist/chunks/{store-datasets-3KSX7RSO.js → store-datasets-O67F75BL.js} +1 -1
  258. package/dist/chunks/store-evaluation-results-BEPR4LVD.js +7 -0
  259. package/dist/chunks/{store-harness-memory-2L7ARBR4.js → store-harness-memory-4XEUITXE.js} +1 -1
  260. package/dist/chunks/{store-harness-refinement-candidates-3PHL3BUY.js → store-harness-refinement-candidates-LCN4NV23.js} +1 -1
  261. package/dist/chunks/store-harness-workspaces-PJJQ74G6.js +2 -0
  262. package/dist/chunks/store-human-review-HJ3D7ZFA.js +7 -0
  263. package/dist/chunks/store-learned-preference-migration-validation-EXNRDHCO.js +2 -0
  264. package/dist/chunks/store-learning-6P6IS7GH.js +2 -0
  265. package/dist/chunks/store-learning-credentials-EGJ2WTZI.js +2 -0
  266. package/dist/chunks/{store-local-experiments-QTVHJAEP.js → store-local-experiments-CBJA56X2.js} +1 -1
  267. package/dist/chunks/store-model-batch-review-YIVD7T2T.js +2 -0
  268. package/dist/chunks/{store-model-configuration-3SU73CMS.js → store-model-configuration-T6XJJDAB.js} +2 -2
  269. package/dist/chunks/store-model-project-preparation-WWU5CJTV.js +2 -0
  270. package/dist/chunks/{store-preference-comparison-DWV5XSMY.js → store-preference-comparison-XQFTLMGH.js} +1 -1
  271. package/dist/chunks/{store-schedules-2KUY4T6M.js → store-schedules-JPFVWL3Q.js} +1 -1
  272. package/dist/chunks/{store-sidebar-file-bookmarks-A4XCS7RM.js → store-sidebar-file-bookmarks-J3JEVAYR.js} +1 -1
  273. package/dist/chunks/{store-sidebar-preferences-V2PKRXUZ.js → store-sidebar-preferences-2JHTFXJK.js} +1 -1
  274. package/dist/chunks/{store-subagents-UGVEFA6M.js → store-subagents-PUBQVWSU.js} +1 -1
  275. package/dist/chunks/{store-task-inbox-QABI4ZAH.js → store-task-inbox-VVXZUJIO.js} +1 -1
  276. package/dist/chunks/{store-task-inventory-GEQIZELY.js → store-task-inventory-MQX44AI6.js} +1 -1
  277. package/dist/chunks/store-taskset-drafts-G3WFVN4M.js +9 -0
  278. package/dist/chunks/{store-training-CQV7PL3V.js → store-training-DUVIDYK5.js} +1 -1
  279. package/dist/chunks/{store-training-jobs-XKN6K66J.js → store-training-jobs-HHFH3V5O.js} +1 -1
  280. package/dist/chunks/{store-training-models-Q7DTTR4S.js → store-training-models-C7UUZDTO.js} +1 -1
  281. package/dist/chunks/{store-usage-XGAX7NLB.js → store-usage-6DMZM7WV.js} +1 -1
  282. package/dist/chunks/{store-work-evidence-VSLLZ6UF.js → store-work-evidence-77B36LRC.js} +1 -1
  283. package/dist/chunks/taskset-7FQCJ55X.js +2 -0
  284. package/dist/chunks/taskset-packages-NRRPON7B.js +2 -0
  285. package/dist/chunks/taskset-packages-RW4SFGDU.js +2 -0
  286. package/dist/chunks/{teams-bot-UTQAJA6H.js → teams-bot-D3LWA4S5.js} +1 -1
  287. package/dist/chunks/tool-learning-NGO7QHYK.js +2 -0
  288. package/dist/chunks/training-XFM3OOPN.js +2 -0
  289. package/dist/chunks/training-XILDD5RG.js +2 -0
  290. package/dist/chunks/training-error-LQKCOQDJ.js +2 -0
  291. package/dist/chunks/training-hardware-ESXRWUIK.js +3 -0
  292. package/dist/chunks/training-hosted-6BX2IASC.js +2 -0
  293. package/dist/chunks/training-hosted-checkpoint-evaluation-UXFW33QL.js +2 -0
  294. package/dist/chunks/training-hosted-learning-YN5VD3PW.js +2 -0
  295. package/dist/chunks/training-hosted-serving-N2MHWGZN.js +2 -0
  296. package/dist/chunks/training-hosted-serving-report-J4YOZLRP.js +2 -0
  297. package/dist/chunks/training-hosted-workers-6JTDCCWA.js +2 -0
  298. package/dist/chunks/training-model-start-E5MP3URL.js +2 -0
  299. package/dist/chunks/web-search-56QRZGPR.js +2 -0
  300. package/dist/chunks/workspaces-MCS2AQX6.js +2 -0
  301. package/dist/cli.js +1 -1
  302. package/dist/index.js +1 -1
  303. package/dist/sandbox-template/manifest.js +1 -1
  304. package/dist/skills/manifest.json +1 -1
  305. package/dist/web/assets/App-BZuSv1XM.js +53 -0
  306. package/dist/web/assets/{AppDialog-8Y0FYalT.js → AppDialog-BILEK4np.js} +1 -1
  307. package/dist/web/assets/AppTerminalPanel-BvxZ8bwD.js +2 -0
  308. package/dist/web/assets/{AppToastContext-BiQbbVxq.js → AppToastContext-C-FsCKXW.js} +1 -1
  309. package/dist/web/assets/{AppsView-Dtte4h6e.js → AppsView-BMaq5oxx.js} +1 -1
  310. package/dist/web/assets/{AttachmentTypeIcon-DgADV7dn.js → AttachmentTypeIcon-Bh7Ft_UL.js} +1 -1
  311. package/dist/web/assets/{BrowserSidebar-BUqDvEv9.js → BrowserSidebar-BG2MLJ9I.js} +1 -1
  312. package/dist/web/assets/{CartesianChart-J4ChOjvG.js → CartesianChart-CS6ES_XT.js} +1 -1
  313. package/dist/web/assets/ChatTimelineEntry-Dr5X_XyN.js +8 -0
  314. package/dist/web/assets/{ChatTimelineEntry-DztFb85D.css → ChatTimelineEntry-vs8RaEGD.css} +1 -1
  315. package/dist/web/assets/{CollaborationTabs-CFCpk2Ck.js → CollaborationTabs-CPJ2w67F.js} +1 -1
  316. package/dist/web/assets/{CommandMenu-EPPjB14H.js → CommandMenu-Fe1V7NJd.js} +1 -1
  317. package/dist/web/assets/{CommunityView-Okydjpqm.js → CommunityView-DHTcmOnI.js} +1 -1
  318. package/dist/web/assets/{ComposerAttachments-RXCiE88M.js → ComposerAttachments-Ck9VWD6o.js} +1 -1
  319. package/dist/web/assets/{ComposerCreateImproveStrip-CSngc8-V.js → ComposerCreateImproveStrip-yiXO7cf8.js} +1 -1
  320. package/dist/web/assets/{ConversationImportsSettings-DS73kyfj.js → ConversationImportsSettings-_VLzUnHQ.js} +1 -1
  321. package/dist/web/assets/{FilePagePreview-Qc4B0vue.js → FilePagePreview-BpcM1DfE.js} +2 -2
  322. package/dist/web/assets/{GetStartedView-DGFPQ1We.js → GetStartedView-BH-WJ-rW.js} +1 -1
  323. package/dist/web/assets/{GettingStartedDialog-DFBYQdHz.js → GettingStartedDialog-CdQfj7RA.js} +1 -1
  324. package/dist/web/assets/{HostedModelLearningReview-BDu3FlcU.js → HostedModelLearningReview-C3GsOlu9.js} +1 -1
  325. package/dist/web/assets/{HostedModelLearningSettings-CHaTHwC8.js → HostedModelLearningSettings-SSMst6dl.js} +1 -1
  326. package/dist/web/assets/{HtmlVisual-D9Mh7xds.js → HtmlVisual-CH0tb3fv.js} +1 -1
  327. package/dist/web/assets/{LabModelVersionDetailPage-DgY7lAu5.js → LabModelVersionDetailPage-J2t9yILv.js} +1 -1
  328. package/dist/web/assets/{LabSkillSidebar-BwtlThO7.js → LabSkillSidebar-DdDYvfj2.js} +1 -1
  329. package/dist/web/assets/LabsRoute-MJwIjSKg.js +101 -0
  330. package/dist/web/assets/MainChatThread-BcwtaTDZ.js +2 -0
  331. package/dist/web/assets/MainPane-DDO6diPt.js +10 -0
  332. package/dist/web/assets/NativeSetupTerminal-BPSUFpRm.js +2 -0
  333. package/dist/web/assets/{NativeSkillSidebar-BEJvt5_H.js → NativeSkillSidebar-DPYavzau.js} +1 -1
  334. package/dist/web/assets/{NewProjectDialog-CjrjgkTN.js → NewProjectDialog-BtmvE9Sp.js} +1 -1
  335. package/dist/web/assets/{OutputsPage-jzx93QQ3.js → OutputsPage-BMRY7RK2.js} +1 -1
  336. package/dist/web/assets/{PageChrome-C1M13qG2.js → PageChrome-5VRxH6Rp.js} +1 -1
  337. package/dist/web/assets/{ProjectsPage-DZrjlMp2.js → ProjectsPage-1LHqxOMo.js} +1 -1
  338. package/dist/web/assets/RightChatPanelStack-D_7KgExz.js +1 -0
  339. package/dist/web/assets/RightSidebarHomePanel-iznJwDMf.js +1 -0
  340. package/dist/web/assets/{ScheduledWorkPage-Cw1ja2GF.js → ScheduledWorkPage-Dtz4zJ0T.js} +1 -1
  341. package/dist/web/assets/{SettingsView-CckoIki3.js → SettingsView-BeDYNPcD.js} +3 -3
  342. package/dist/web/assets/{TasksetDraftEditorPrimitives-ByC8bDjp.js → TasksetDraftEditorPrimitives-CcvKO3YA.js} +1 -1
  343. package/dist/web/assets/{TeamChatView-OprnSKLF.js → TeamChatView-DaXxOkTe.js} +1 -1
  344. package/dist/web/assets/{TerminalOverlay-d7A2F9Lx.js → TerminalOverlay-CF8uB4qA.js} +1 -1
  345. package/dist/web/assets/{TrainingCreationPanel-Cyn6R6I6.js → TrainingCreationPanel-DmMO7x5T.js} +1 -1
  346. package/dist/web/assets/{TrainingDraftPanel-Mpb5e7t5.js → TrainingDraftPanel-DCHbXjSx.js} +1 -1
  347. package/dist/web/assets/{TrainingRunLineage-VcKz7dIR.js → TrainingRunLineage-CwisTWs_.js} +1 -1
  348. package/dist/web/assets/UsageSettingsSection-Drt7gwRb.js +7 -0
  349. package/dist/web/assets/WorkSidebarPanel-BrIIRtGW.js +1 -0
  350. package/dist/web/assets/WorkspaceDiffPanel-Dmbrg0-y.js +11 -0
  351. package/dist/web/assets/{WorkspaceEnvironmentMenu-C8y3537a.js → WorkspaceEnvironmentMenu-KEZm1gdb.js} +1 -1
  352. package/dist/web/assets/{WorkspaceFileLocation-LrEWj4UK.js → WorkspaceFileLocation-ChbOKrPO.js} +1 -1
  353. package/dist/web/assets/{WorkspaceGitDialogs-NRIMXnkS.js → WorkspaceGitDialogs-BS2JQKNQ.js} +1 -1
  354. package/dist/web/assets/{WorkspaceMonacoEditor-CvDGjKAL.js → WorkspaceMonacoEditor-CN1hE_C4.js} +3 -3
  355. package/dist/web/assets/{WorkspacePdfPreview-BZ0BbnHv.js → WorkspacePdfPreview-Clb4m0le.js} +2 -2
  356. package/dist/web/assets/{WorkspacePresentationPreview-DJrjrvT0.js → WorkspacePresentationPreview-CwQsdvAR.js} +1 -1
  357. package/dist/web/assets/app-models-Cz3yxq4x.js +1 -0
  358. package/dist/web/assets/{bot-6OhUEmkE.js → bot-BNFltD5O.js} +1 -1
  359. package/dist/web/assets/chat-resources-CTN4f6KC.js +1 -0
  360. package/dist/web/assets/{chevron-down-jmVA1BIf.js → chevron-down-BnnT0tnM.js} +1 -1
  361. package/dist/web/assets/chevron-right-C8K5PZj7.js +1 -0
  362. package/dist/web/assets/{chevron-up-CstyLXH3.js → chevron-up-BAnwJJN3.js} +1 -1
  363. package/dist/web/assets/chunk-GJRXJL6G-pJp1DyJd.js +9 -0
  364. package/dist/web/assets/chunk-TLSP5JKG-DZmxtX-4.js +1 -0
  365. package/dist/web/assets/{client-choice-storage-BdQ_YDuk.js → client-choice-storage-Iuzoszas.js} +1 -1
  366. package/dist/web/assets/{cloud-upload-Ck1ufAr8.js → cloud-upload-CdSXJ7ms.js} +1 -1
  367. package/dist/web/assets/{copy-CPkbMfXt.js → copy-CBFg6m0d.js} +1 -1
  368. package/dist/web/assets/{createLucideIcon-CXQny8HU.js → createLucideIcon-DF2VR6WA.js} +1 -1
  369. package/dist/web/assets/{cssMode-CYxYl_om.js → cssMode-BSQUZhUO.js} +1 -1
  370. package/dist/web/assets/{external-link-CDKOLG_v.js → external-link-Cql9bKdv.js} +1 -1
  371. package/dist/web/assets/{folder-open-CEtOb_lK.js → folder-open-BXdVB5J1.js} +1 -1
  372. package/dist/web/assets/{folder-plus-CVMYZs3e.js → folder-plus-Cma2HulC.js} +1 -1
  373. package/dist/web/assets/{git-commit-horizontal-DDyhPjxS.js → git-commit-horizontal-eF--16ps.js} +1 -1
  374. package/dist/web/assets/{htmlMode-DoY4V_j0.js → htmlMode-aLPlQtyU.js} +1 -1
  375. package/dist/web/assets/icons-c3vt7y6n.js +1 -0
  376. package/dist/web/assets/{image-B-PjDSwU.js → image-CqKPwnBn.js} +1 -1
  377. package/dist/web/assets/{index-D9WbJMSq.js → index-CM0IRu1U.js} +2 -2
  378. package/dist/web/assets/{info-CCnw-K3b.js → info-CqeYEqG0.js} +1 -1
  379. package/dist/web/assets/{jsonMode-CeOpZdPj.js → jsonMode-fu7bEcHB.js} +1 -1
  380. package/dist/web/assets/loader-circle-pxp89T5x.js +1 -0
  381. package/dist/web/assets/{lspLanguageFeatures-DAbgLCqZ.js → lspLanguageFeatures-DraXQA4w.js} +1 -1
  382. package/dist/web/assets/{maximize-2-BZX38cpr.js → maximize-2-yMp8X9ts.js} +1 -1
  383. package/dist/web/assets/{message-square-CvgSecgD.js → message-square-DbIMQqfj.js} +1 -1
  384. package/dist/web/assets/model-display-zPvC4L2B.js +1 -0
  385. package/dist/web/assets/models-route-CWcJuOd0.js +1 -0
  386. package/dist/web/assets/{monaco.contribution-cbDqt48m.js → monaco.contribution-BQhp1CJs.js} +2 -2
  387. package/dist/web/assets/{monaco.contribution-CF2JDhi4.js → monaco.contribution-Bd8EqYGR.js} +2 -2
  388. package/dist/web/assets/{monaco.contribution-m2ze2EsL.js → monaco.contribution-CYWKnVxQ.js} +2 -2
  389. package/dist/web/assets/{monaco.contribution-yeyow_-Q.js → monaco.contribution-CmbWO0tB.js} +2 -2
  390. package/dist/web/assets/{monitor-By0s4hxb.js → monitor-DFE2fTkT.js} +1 -1
  391. package/dist/web/assets/{paperclip-BJ2QgJLa.js → paperclip-D_qsKbVs.js} +1 -1
  392. package/dist/web/assets/{pdf-C4x-1jjP.js → pdf-DkQRsi4n.js} +1 -1
  393. package/dist/web/assets/play-BtlX2stU.js +1 -0
  394. package/dist/web/assets/plus-DbASL_gy.js +1 -0
  395. package/dist/web/assets/{presentation-I86G1Gd9.js → presentation-BN_kIBPL.js} +1 -1
  396. package/dist/web/assets/{python-CqFTPj8r.js → python-DB9pj5Hr.js} +1 -1
  397. package/dist/web/assets/{refresh-cw-Dga35Eay.js → refresh-cw-B27ohHfn.js} +1 -1
  398. package/dist/web/assets/{save-BLKjYtzR.js → save-D-rwjKop.js} +1 -1
  399. package/dist/web/assets/settings-lists-DgSaJQA4.js +5 -0
  400. package/dist/web/assets/square-C2caJ3NG.js +1 -0
  401. package/dist/web/assets/{square-terminal-B-n7vUex.js → square-terminal-CeoK51wH.js} +1 -1
  402. package/dist/web/assets/{submit-issue-command-B7Hrt2tU.js → submit-issue-command-DZNW7Evj.js} +1 -1
  403. package/dist/web/assets/{toggleHighContrast-BhmBE5XE.js → toggleHighContrast-Bs8L1gx0.js} +1 -1
  404. package/dist/web/assets/{training-QrdkRQZQ.js → training-DCdoHJ0Y.js} +2 -2
  405. package/dist/web/assets/{training-model-data-DB-jg6L_.js → training-model-data-wHvE7xL1.js} +1 -1
  406. package/dist/web/assets/{tsMode-BSWEII2p.js → tsMode-C7EqshxC.js} +1 -1
  407. package/dist/web/assets/{upload-C4MPhQn8.js → upload-BWgjC2Jf.js} +1 -1
  408. package/dist/web/assets/{useAccountSettings-9oqWdRLs.js → useAccountSettings-Dva1MpsJ.js} +1 -1
  409. package/dist/web/assets/{useAgentInventory-isO79ui9.js → useAgentInventory-CrjIOmvb.js} +1 -1
  410. package/dist/web/assets/{useLocalAgentSchedules-CZX6PxoK.js → useLocalAgentSchedules-P-UaUKMb.js} +1 -1
  411. package/dist/web/assets/{useQuery-BD0Uexmh.js → useQuery-Bn3KqR4r.js} +1 -1
  412. package/dist/web/assets/{wifi-off-Cloe0WuQ.js → wifi-off--mKrSPFc.js} +1 -1
  413. package/dist/web/assets/{workers-BXagz5eg.js → workers-p0Kn2KMK.js} +1 -1
  414. package/dist/web/assets/x-D9GTV9ke.js +1 -0
  415. package/dist/web/assets/{yaml-sBdvVbCc.js → yaml-BeIdC4tu.js} +1 -1
  416. package/dist/web/index.html +1 -1
  417. package/docs/command-reference.md +44 -2
  418. package/package.json +1 -1
  419. package/dist/chunks/acp-H3MJCPHX.js +0 -2
  420. package/dist/chunks/acp-agent-DWA7272M.js +0 -21
  421. package/dist/chunks/actions-command-IIYOO4LL.js +0 -2
  422. package/dist/chunks/app-layer-K7H2WJ56.js +0 -3
  423. package/dist/chunks/app-server-connected-apps-RM5E2VWF.js +0 -2
  424. package/dist/chunks/app-server-evaluations-XGMGS67X.js +0 -2
  425. package/dist/chunks/app-server-harness-services-BHD6S5II.js +0 -2
  426. package/dist/chunks/app-server-runtime-LFIL6F7D.js +0 -2
  427. package/dist/chunks/apps-QKAHJGQ4.js +0 -2
  428. package/dist/chunks/chunk-5EP2DZLJ.js +0 -2
  429. package/dist/chunks/chunk-6EBCS57F.js +0 -2
  430. package/dist/chunks/chunk-6RS4NAOY.js +0 -2
  431. package/dist/chunks/chunk-7O6Z3VOZ.js +0 -2
  432. package/dist/chunks/chunk-7YLXGILH.js +0 -2
  433. package/dist/chunks/chunk-7ZLXFKRI.js +0 -2
  434. package/dist/chunks/chunk-B5R53U74.js +0 -2
  435. package/dist/chunks/chunk-C2AXMKK4.js +0 -2
  436. package/dist/chunks/chunk-F6UQ6PPK.js +0 -2
  437. package/dist/chunks/chunk-GS6ZUSIN.js +0 -3
  438. package/dist/chunks/chunk-JSQRLLN6.js +0 -2
  439. package/dist/chunks/chunk-LAOLJDVB.js +0 -2
  440. package/dist/chunks/chunk-LKKMLBOH.js +0 -3
  441. package/dist/chunks/chunk-M3FLEZ4E.js +0 -4
  442. package/dist/chunks/chunk-MEGKXGW3.js +0 -2
  443. package/dist/chunks/chunk-MILEWROZ.js +0 -2
  444. package/dist/chunks/chunk-N42HT64M.js +0 -2
  445. package/dist/chunks/chunk-NG2L6D7G.js +0 -2
  446. package/dist/chunks/chunk-OSVGNONV.js +0 -2
  447. package/dist/chunks/chunk-OTUBJV6C.js +0 -6
  448. package/dist/chunks/chunk-PBTXLQAU.js +0 -2
  449. package/dist/chunks/chunk-PBZCXPPC.js +0 -10
  450. package/dist/chunks/chunk-SFKZITAG.js +0 -9
  451. package/dist/chunks/chunk-SXMR6E2W.js +0 -2
  452. package/dist/chunks/chunk-U2K7QJCG.js +0 -2
  453. package/dist/chunks/chunk-URNMC46H.js +0 -157
  454. package/dist/chunks/chunk-VHXDWAEH.js +0 -2
  455. package/dist/chunks/chunk-W2TICQ62.js +0 -2
  456. package/dist/chunks/chunk-WSOUMXH3.js +0 -24
  457. package/dist/chunks/chunk-XOB6FKQV.js +0 -2
  458. package/dist/chunks/chunk-YBNKGA5C.js +0 -2
  459. package/dist/chunks/chunk-YM4PSVFW.js +0 -4
  460. package/dist/chunks/chunk-YNQWJWIC.js +0 -10
  461. package/dist/chunks/chunk-Z3BWCFLV.js +0 -2
  462. package/dist/chunks/cli-PSXMIJTF.js +0 -2
  463. package/dist/chunks/configuration-command-XYKMXIWF.js +0 -2
  464. package/dist/chunks/connected-app-executor-6G2LA3PQ.js +0 -2
  465. package/dist/chunks/connected-evidence-IRXYN6YD.js +0 -2
  466. package/dist/chunks/connection-XMAAGMXJ.js +0 -2
  467. package/dist/chunks/core-commands-WWN7X3XC.js +0 -2
  468. package/dist/chunks/dataset-preparation-authoring-F3OZIQSP.js +0 -4
  469. package/dist/chunks/datasets-2PC2HP7N.js +0 -2
  470. package/dist/chunks/desktop-test-VU6AFAMO.js +0 -3
  471. package/dist/chunks/dist-47AYOIH6.js +0 -2
  472. package/dist/chunks/dist-HSC43RG4.js +0 -2
  473. package/dist/chunks/dist-MXBEBM4D.js +0 -2
  474. package/dist/chunks/enclave-VURYNILU.js +0 -2
  475. package/dist/chunks/evaluation-coordination-UOWZHHC5.js +0 -2
  476. package/dist/chunks/experiment-improvements-EB2CV5RA.js +0 -2
  477. package/dist/chunks/experiments-CLXGM3TZ.js +0 -2
  478. package/dist/chunks/experiments-SZQYR6MH.js +0 -2
  479. package/dist/chunks/experiments-signal-2KJCP25D.js +0 -2
  480. package/dist/chunks/host-profile-evaluation-tools-Y2LQ4WQN.js +0 -2
  481. package/dist/chunks/host-profile-external-dataset-FRIGXOO7.js +0 -2
  482. package/dist/chunks/hosted-app-server-composition-PGKQNDW6.js +0 -2
  483. package/dist/chunks/hosted-experiment-improvement-UXC542SZ.js +0 -3
  484. package/dist/chunks/hosted-harness-runtime-6PEI7F2U.js +0 -2
  485. package/dist/chunks/hosted-profile-candidate-HM44BIUX.js +0 -3
  486. package/dist/chunks/hosted-profile-compiler-UAZ4PHYE.js +0 -2
  487. package/dist/chunks/hosted-profile-evaluation-control-EUL57FAB.js +0 -2
  488. package/dist/chunks/hosted-profile-evaluation-inspection-7USY75Z4.js +0 -3
  489. package/dist/chunks/hosted-profile-evaluation-preparation-2LSMZQNA.js +0 -3
  490. package/dist/chunks/hosted-tasksets-WGXGXJ7E.js +0 -2
  491. package/dist/chunks/human-review-M26UKGJL.js +0 -2
  492. package/dist/chunks/learning-HM3NWOV5.js +0 -2
  493. package/dist/chunks/local-harness-improvement-runtime-QGWFWNSR.js +0 -2
  494. package/dist/chunks/local-harness-taskset-review-KS4WPMN6.js +0 -2
  495. package/dist/chunks/local-scope-62GWHDXS.js +0 -2
  496. package/dist/chunks/model-projects-YUAMBQTO.js +0 -2
  497. package/dist/chunks/opchat-AG4CWVY4.js +0 -3
  498. package/dist/chunks/opchat-bounded-chat-IQMP5IIO.js +0 -2
  499. package/dist/chunks/organizations-KDKX77XZ.js +0 -2
  500. package/dist/chunks/profile-training-source-3DXFM2XI.js +0 -2
  501. package/dist/chunks/project-action-payload-QA24HYGF.js +0 -2
  502. package/dist/chunks/project-agent-XBOOM5TS.js +0 -2
  503. package/dist/chunks/published-experiment-source-GZGN354O.js +0 -2
  504. package/dist/chunks/refiner-profile-service-BJMOYKTC.js +0 -2
  505. package/dist/chunks/sandbox-command-5ECGS7DG.js +0 -2
  506. package/dist/chunks/saved-work-KUNVTJ7O.js +0 -2
  507. package/dist/chunks/send-turn-FIPWOXWV.js +0 -2
  508. package/dist/chunks/standalone-experiment-turn-owner-XIE46VNH.js +0 -2
  509. package/dist/chunks/store-chat-resources-YOEJ2BI6.js +0 -2
  510. package/dist/chunks/store-conversation-serving-K324SQTO.js +0 -2
  511. package/dist/chunks/store-evaluation-results-LHCCNNE6.js +0 -7
  512. package/dist/chunks/store-harness-workspaces-ZHNCNWVI.js +0 -2
  513. package/dist/chunks/store-human-review-QJY3ZPPF.js +0 -7
  514. package/dist/chunks/store-learned-preference-migration-validation-X32SRBOM.js +0 -2
  515. package/dist/chunks/store-learning-DW3QLQXU.js +0 -2
  516. package/dist/chunks/store-learning-credentials-67QNTPA7.js +0 -2
  517. package/dist/chunks/store-model-batch-review-PBYQZJJJ.js +0 -2
  518. package/dist/chunks/store-model-project-preparation-TFCG2F2F.js +0 -2
  519. package/dist/chunks/store-taskset-drafts-GXABQR5G.js +0 -9
  520. package/dist/chunks/taskset-ARKJQKYQ.js +0 -2
  521. package/dist/chunks/taskset-packages-X4K65DTW.js +0 -2
  522. package/dist/chunks/taskset-packages-XK7FSD45.js +0 -2
  523. package/dist/chunks/training-3IWW4256.js +0 -2
  524. package/dist/chunks/training-RVIESURJ.js +0 -2
  525. package/dist/chunks/training-error-2EWDOQ4G.js +0 -2
  526. package/dist/chunks/training-hosted-PFJHYTEU.js +0 -2
  527. package/dist/chunks/training-hosted-checkpoint-evaluation-JJPP7KFW.js +0 -2
  528. package/dist/chunks/training-hosted-learning-Y7NHRY4V.js +0 -2
  529. package/dist/chunks/training-hosted-serving-QAV7ZGGV.js +0 -2
  530. package/dist/chunks/training-hosted-serving-report-OX4A5OKB.js +0 -2
  531. package/dist/chunks/training-hosted-workers-LST4ZUXN.js +0 -2
  532. package/dist/chunks/training-model-start-ROLS3E4V.js +0 -2
  533. package/dist/chunks/web-search-7FBUBZ66.js +0 -2
  534. package/dist/chunks/workspaces-G3CMY7ZA.js +0 -2
  535. package/dist/web/assets/App-DY2R8Z6r.js +0 -53
  536. package/dist/web/assets/AppTerminalPanel-YcnBD5DF.js +0 -2
  537. package/dist/web/assets/ChatTimelineEntry-DC93wlDa.js +0 -8
  538. package/dist/web/assets/LabsRoute-BV7ZJGEw.js +0 -101
  539. package/dist/web/assets/MainChatThread-pzHKd_YN.js +0 -2
  540. package/dist/web/assets/MainPane-6OlLiKKb.js +0 -10
  541. package/dist/web/assets/NativeSetupTerminal-CPDChcMi.js +0 -2
  542. package/dist/web/assets/RightChatPanelStack-BsxJg9sy.js +0 -1
  543. package/dist/web/assets/RightSidebarHomePanel-CCVQ9LMB.js +0 -1
  544. package/dist/web/assets/UsageSettingsSection-FhYymrfc.js +0 -7
  545. package/dist/web/assets/WorkSidebarPanel-u87uptH0.js +0 -1
  546. package/dist/web/assets/WorkspaceDiffPanel-B5rlW7bA.js +0 -11
  547. package/dist/web/assets/app-models-CUA9XB9U.js +0 -1
  548. package/dist/web/assets/chat-resources-CI8KFVO5.js +0 -1
  549. package/dist/web/assets/chevron-right-BYmDQ7ti.js +0 -1
  550. package/dist/web/assets/chunk-ONGOAEY6-C__DQmRT.js +0 -9
  551. package/dist/web/assets/chunk-SQBYHWZU-DumrB9SB.js +0 -1
  552. package/dist/web/assets/icons-D7jkCa2d.js +0 -1
  553. package/dist/web/assets/loader-circle-CPaJeTDy.js +0 -1
  554. package/dist/web/assets/models-route-Bl_TmMl6.js +0 -1
  555. package/dist/web/assets/play-D_SuGDBM.js +0 -1
  556. package/dist/web/assets/plus-yw95Iaj8.js +0 -1
  557. package/dist/web/assets/settings-lists-DMKA1lCN.js +0 -5
  558. package/dist/web/assets/square-BY5lG2Ol.js +0 -1
  559. package/dist/web/assets/x-Dqpel42h.js +0 -1
  560. /package/dist/chunks/{chunk-IDOGNIMV.js → chunk-7J2NMUTK.js} +0 -0
  561. /package/dist/chunks/{chunk-PCB65K4G.js → chunk-SFR32TMJ.js} +0 -0
@@ -0,0 +1,10 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a as S}from"./chunk-XRKFTPHD.js";import{f as C}from"./chunk-3M53YXEI.js";import{a as o}from"./chunk-FTQLQJQV.js";var a="boolean",c="integer",u="json",g="number",e="string",k={agent:e,approvalPolicy:e,cwd:e,json:a,maxOutputBytes:c,message:e,messageFile:e,model:e,noServerStart:a,nonInteractive:a,project:e,provider:e,resume:e,sandbox:e,server:e,stdin:a,timeoutSec:c,yes:a},I={access:e,agentId:e,all:a,artifactPaths:e,async:a,authHeader:e,authHeaderValue:e,authToken:e,autoStart:a,baseRef:e,branch:e,budget:g,budgetUsd:g,cleanup:a,cols:c,command:e,content:e,contentBase64:e,contents:e,contentsBase64:e,cpu:g,create:a,description:e,diskGb:g,dockerBuildArgs:u,dockerRegistrySecretRefs:e,dockerfile:e,dockerfileContext:e,dockerfileTarget:e,domain:e,env:e,environment:e,envLiteral:e,envName:e,envRef:e,expectedMppMode:e,expectedVersion:c,failOnUnpreservedChanges:a,ffOnly:a,forceWithLease:a,fork:a,fromPath:e,idempotencyKey:e,idleTimeoutSeconds:c,image:e,imageDigest:e,input:e,inputBase64:e,integrationCapabilities:e,integrationConnection:e,integrationScopes:e,intervalMs:c,json:a,keep:a,label:e,leaseId:e,lifecycleHint:u,manifestPath:e,maxDurationSeconds:c,maxEntries:g,maxResults:g,offsetBytes:c,maxBytes:c,memoryGb:g,message:e,name:e,noPreview:a,overwrite:a,params:u,path:e,paths:e,payload:u,port:c,preview:a,projectId:e,publish:a,q:e,query:e,rebase:a,recursive:a,registrySecretRef:e,remote:e,replayState:e,repo:e,respondAsync:a,rows:c,runtimeAgentId:e,runtimeBaseBranch:e,runtimeBaseSha:e,runtimeId:e,runtimeProfileId:e,runtimeProjectId:e,runtimePromotionPolicy:e,runtimeWorkspaceRoot:e,sandboxId:e,scope:e,since:c,snapshot:a,snapshotId:e,sourceProjectId:e,sourceRepoUrl:e,sourceSandboxId:e,startPoint:e,status:e,stdin:a,summary:a,tag:e,tags:e,targetId:e,targetType:e,teamId:e,templateName:e,templateVersion:e,templateVisibility:e,timeoutSeconds:c,toPath:e,type:e,useCase:e,validationCommand:e,value:e,version:e,volumeDeleteOnSandboxDelete:a,volumeMountPath:e,volumeName:e,volumeStorageGb:g,workflowMode:e},x={action:e,agentId:e,budget:g,budgetUsd:g,build:e,branch:e,commit:a,commitMessage:e,description:e,dir:e,disableSchedule:e,disableSchedules:e,enableSchedule:e,enableSchedules:e,entrypoint:e,env:u,envRef:e,file:e,force:a,idleTimeoutSeconds:c,inherit:a,input:u,inputFile:e,inputFiles:e,inputJson:u,inputs:u,json:a,keepTokenRemote:a,manifest:e,maxDurationSeconds:c,name:e,noPush:a,noWrite:a,out:e,outDir:e,output:e,outputDir:e,params:u,path:e,plan:e,projectId:e,repo:e,runtimeAgentId:e,runtimeBaseBranch:e,runtimeBaseSha:e,runtimeId:e,runtimeProjectId:e,runtimePromotionPolicy:e,scheduleMode:e,scheduleOverride:u,scheduleOverrides:u,schedules:e,service:e,setRemoteToken:a,setupTimeoutSeconds:c,target:e,teamId:e,timeoutSeconds:c,token:e,workflowMode:e,yes:a},O={branch:e,commitMessage:e,defaultBranch:e,description:e,gitOwner:e,gitRepo:e,internalRepoPath:e,json:a,name:e,path:e,projectId:e,repo:e,sourceCheckDispatch:e,sourceType:e,teamId:e,templateRepoUrl:e},P={agentId:e,agentEdit:u,allowLatestSource:a,allowedActions:e,attachmentsJson:u,baseSha:e,chatMode:e,checkKind:e,conversationId:e,cwd:e,dispatch:e,entrypointName:e,entrypointScope:e,expectedManifestHash:e,evalStatus:e,expectedSourceCommitSha:e,idempotencyKey:e,input:u,inputFile:e,json:a,limit:c,message:e,metadata:u,name:e,path:e,payload:u,projectId:e,prompt:e,provider:e,publishedSnapshotId:e,ref:e,requirePublishedSnapshot:a,requiredEnv:e,requiredIntegrations:e,runtimePromotionPolicy:e,runtimeSourceMode:e,sourceCheckDispatch:e,sourceMode:e,sourceRef:e,status:e,targetProjectId:e,teamId:e,triggerType:e,workflowMode:e};var f={account:"string",apiBaseUrl:"string",apiBaseurl:"string",baseUrl:"string",baseurl:"string",chatApiBaseUrl:"string",chatApiBaseurl:"string",checkUpdate:"boolean",cwd:"string",help:"boolean",home:"string",json:"boolean",profile:"string",sandboxApiUrl:"string",sandboxApiurl:"string",tui:"boolean",version:"boolean"},W={C:"cwd",f:"force",h:"help",j:"json",v:"version",y:"yes"},M={cwd:"string",input:"json",inputFile:"string",json:"boolean",path:"string"},j=[{name:"learning",usage:`openpond learning <get|list> <kind> [id] --team-id <id> [--revision <n>] [--after-id <id>]
3
+ openpond learning <command|publish-batch> --input-file <absolute-path> --team-id <id>`,optionSchema:{inputFile:"string",teamId:"string",revision:"integer",afterId:"string",parentId:"string",status:"string",limit:"integer"},handler:o(async({options:t,rest:n})=>(await import("./learning-XTY5VOTK.js")).runLearningCommand(t,n),"handler")},{name:"tool-learning",usage:"openpond tool-learning <setup|register|install|doctor|status|routing|configure|append|flush|episodes|episode|project|disable|enable|revoke|purge|uninstall> [installation-id] [episode-id] [--input-file <absolute-path>] [--team-id <id>] [--workspace <absolute-path>]",optionSchema:{client:"string",tools:"string",allowUpload:"boolean",inputFile:"string",teamId:"string",projectId:"string",workspace:"string",environmentFile:"string",expiresAt:"string",after:"string",timeoutSec:"integer"},handler:o(async({options:t,rest:n})=>(await import("./command-NDHFZAKA.js")).runToolLearningCommand(t,n),"handler")},{name:"import",usage:"openpond import <connect|reconnect|discover|status|conversations|coverage|sync|schedule|cancel|pause|resume|disconnect|branches|branch|service> [id] [--source <name>] [--source-path <path>] [--range day|week|all] [--upload] [--selection-file <path>] [--query <text>] [--offset <number>] [--until <ISO-cutoff>] [--team <id>] [--project <id>] [--session <native-id>] [--leaf <uuid>] [--revision <hash>] [--continual [--daily|--weekly|--hourly|--cron <expression>] [--at HH:MM] [--on sun|mon|tue|wed|thu|fri|sat]] [--off] [--yes]",optionSchema:{source:"string",sourcePath:"string",range:"string",upload:"boolean",selectionFile:"string",query:"string",offset:"string",until:"string",team:"string",project:"string",session:"string",leaf:"string",revision:"string",continual:"boolean",daily:"boolean",weekly:"boolean",hourly:"boolean",cron:"string",at:"string",on:"string",off:"boolean",scheduled:"boolean",yes:"boolean",connection:"string",collectorDir:"string",json:"boolean"},handler:o(async({options:t,rest:n})=>(await import("./import-Q3YRFVY7.js")).runImportCommand(t,n),"handler")},{name:"datasets",usage:`openpond datasets <context|select|select-model|select-destination|new-experiment|select-experiment|rename-experiment|schema|list|read|create|save|file|validate|check-graders|check-sources|package|import|inspect-source|import-source|list-graders|read-grader|save-grader|test-grader|upload|publish|sync|pause-sync|disconnect-sync|related-chats> [id] --local [--server-url <loopback-origin>] [--input-file <path>] [--operation-id <id>] [--expected-revision <n>] [--json]
4
+ openpond datasets <upload|save|read|list|validate|publish|preparation> [folder|id] --team <id> --api-base-url <origin> [--operation-id <id>] [--expected-revision <n>] [--publish] [--project <id>] [--dataset-id <id>] [--input-file <path>]
5
+ openpond datasets preparation <grant-create|grant-read|create|read|list|candidates|operation|start|pause|resume|cancel|resolve|release> <dataset-id> [run-or-grant-id] --team <id> --api-base-url <origin> [--input-file <path>] [--operation-id <id>] [--expected-revision <n>] [--cursor <id>]`,optionSchema:{team:"string",operationId:"string",expectedRevision:"integer",publish:"boolean",project:"string",datasetId:"string",graderId:"string",limit:"integer",offset:"integer",cursor:"string",workspaceHash:"string",packageHash:"string",inputFile:"string",json:"boolean",local:"boolean",serverUrl:"string"},handler:o(async({options:t,rest:n})=>(await import("./datasets-OTE2I4VT.js")).runDatasetsCommand(t,n),"handler")},{name:"connected-evidence",usage:"openpond connected-evidence <list|collection|recorded-list|recorded|import-receipt|capture-assets|retain-assets|starting-assets|summary|case|unmapped|capture|selection|publish|prepare-recorded|upload-part|preview|commit|set-collection> [id] --team <id> [--input-file <path>] [--project <id>] [--cursor <id>] [--limit <n>]",optionSchema:{team:"string",inputFile:"string",project:"string",cursor:"string",limit:"integer"},handler:o(async({options:t,rest:n})=>(await import("./connected-evidence-XPAZQRFQ.js")).runConnectedEvidenceCommand(t,n),"handler")},{name:"improve",usage:"openpond improve <list|read|instructions|request> [id] --team <id> --actor <owner-id> [--input-file <path>] [--cursor <id>] [--limit <n>] [--local --server-url <loopback-origin>]",optionSchema:{team:"string",actor:"string",inputFile:"string",cursor:"string",limit:"integer",local:"boolean",serverUrl:"string"},handler:o(async({options:t,rest:n})=>(await import("./experiment-improvements-7MI2VYBR.js")).runExperimentImprovementsCommand(t,n),"handler")},{name:"evaluation-schedules",usage:"openpond evaluation-schedules <list|read|request> [id] --team <id> --actor <id> --local [--server-url <loopback-origin>] [--project <id>] [--input-file <path>] [--cursor <id>] [--limit <n>]",optionSchema:{team:"string",actor:"string",local:"boolean",serverUrl:"string",project:"string",inputFile:"string",cursor:"string",limit:"integer"},handler:o(async({options:t,rest:n})=>(await import("./evaluation-coordination-KRCY2H4C.js")).runEvaluationCoordinationCommand("schedule",t,n),"handler")},{name:"evaluate-refiner",usage:"openpond evaluate-refiner <list|read|cancel|resume|request> [id] --team <id> --actor <id> --local [--server-url <loopback-origin>] [--project <id>] [--input-file <path>]",optionSchema:{team:"string",actor:"string",local:"boolean",serverUrl:"string",project:"string",inputFile:"string"},handler:o(async({options:t,rest:n})=>(await import("./evaluation-coordination-KRCY2H4C.js")).runEvaluationCoordinationCommand("refiner",t,n),"handler")},{name:"human-review",usage:"openpond human-review <read|inbox|inspect|results|request> [id] --team <id> [--input-file <path>] [--view <mine|team|approval>] [--status <active|history>] [--project <id>] [--revision <n>] [--slot <0|1>] [--after-id <id>] [--limit <n>] [--local --server-url <loopback-origin>]",optionSchema:{team:"string",inputFile:"string",view:"string",status:"string",project:"string",revision:"integer",slot:"integer",afterId:"string",limit:"integer",local:"boolean",serverUrl:"string"},handler:o(async({options:t,rest:n})=>(await import("./human-review-HOBGC6RC.js")).runHumanReviewCommand(t,n),"handler")},{name:"experiments",usage:`openpond experiments <signal-plan|signal-report> --input-file <path> [--json]
6
+ openpond experiments <models|run|run-cloud|list|read|status|cancel|result|compare|case> [id] [candidate-id] --local [--server-url <loopback-origin>] [--input-file <path>] [--receipt-id <id>] [--json]
7
+ openpond experiments <profile-catalog|prepare-profile|run-profile|inspect-profile> --local [--server-url <loopback-origin>] [--input-file <path>] [--json]
8
+ openpond experiments <prepare-harness|run|read|list|status|diagnostics|cancel|duplicate|score|passes|pass|cancel-pass|pass-result|result|compare|case> [id] [candidate-id] --team <id> [--input-file <path>] [--operation-id <id>] [--local --server-url <loopback-origin>] [--receipt-id <id>] [--json]`,usages:["Case inspection: experiments case <run-id> --local --receipt-id <retained-receipt-id> [--after-sequence <nonnegative-integer>] [--limit <1..500>] --json. Only compare accepts a second positional run id; a task id is not a receipt id.","Find retained receipt IDs with experiments result <run-id> --local --json (independent saved Dataset runs: evidence.cases[].receiptId; workspace runs: cases[].receiptId). Case inspection reads retained output/grading/trace and never executes inference or grading.",'Independent saved Dataset input (use --local without --team): {"datasetId":"<saved-id>","revision":3,"operationId":"reviewed-evaluation-1","maximumCostUsd":1,"taskLimit":10,"seed":0,"maxOutputTokens":1024,"models":[{"providerId":"openpond","modelId":"<exact catalog id>"}]}',"Resolve models with experiments models --local --json; use each entry's providerId and id as modelId. Supported providers: openpond, custom-openai-compatible, claude-code, codex. Select 1\u20138 distinct models.","Input bounds: positive saved revision; operationId 1\u2013120 characters; taskLimit 1\u2013100 (default 10, first saved tasks); seed 0\u20132147483647 (default 0); maxOutputTokens 1\u2013262144 (default 1024, capped by the selected model). Dataset revision pins its graders; no configuration/request wrapper is accepted here.","maximumCostUsd is a positive total ceiling up to 10000, divided across selected models and covering metered inference/grading. Use the authorized ceiling; the example is illustrative. It may be omitted only when every model is codex and the Dataset has no model-judge grader; subscription dollar cost remains unknown.","Prepare only: read datasets context/read/check-graders and experiments models, then write and review the input file. There is no independent Dataset prepare/dry-run command. experiments run --local --input-file <path> executes; reuse operationId only for the exact same input after reconciling status.","--team uses the workspace configuration contract instead. prepare-harness and prepare-profile prepare their released Harness/Profile workflows, not independent saved Dataset inputs."],optionSchema:{team:"string",inputFile:"string",operationId:"string",project:"string",datasetHash:"string",search:"string",status:"string",afterId:"string",afterCallId:"string",limit:"integer",json:"boolean",local:"boolean",serverUrl:"string",receiptId:"string",afterSequence:"integer",revision:"integer",contentHash:"string"},handler:o(async({options:t,rest:n})=>(await import("./experiments-CNUQKJZE.js")).runExperimentsCommand(t,n),"handler")},{name:"home",usage:"openpond home [--home <directory>]",optionSchema:{},handler:o(async()=>console.log((await import("./dist-GR56E3QK.js")).resolveOpenPondHome()),"handler")},{name:"config",usage:"openpond config <get|set|unset|path|validate|schema|doctor|migrate|recover|restart-migration|revisions|replace|effective|trust|untrust|export|backup|restore|collect-orphans|clear-cache> [key] [value] [--home <directory>] [--json]",optionSchema:{keyPath:"json",value:"string",file:"string",project:"boolean",revision:"string",expectedRevision:"string",sourceAppHome:"string",sourceConfig:"string",sourceBrowserState:"string",dryRun:"boolean"},handler:o(async({options:t,rest:n})=>(await import("./configuration-command-465ODYTC.js")).runConfigurationCommand(t,n),"handler")},{name:"help",usage:"openpond help",optionSchema:{},handler:o(async()=>(await import("./help-ZUKVY6RO.js")).printHelp(),"handler")},{name:"version",usage:"openpond version",optionSchema:{},handler:o(()=>console.log(S()),"handler")},{name:"check-update",usage:"openpond check-update",optionSchema:{},handler:o(async()=>(await import("./core-commands-PJOGRBHJ.js")).runCheckUpdate(),"handler")},{name:"login",usage:"openpond login [--base-url <url>]",optionSchema:f,handler:o(async({options:t})=>(await import("./core-commands-PJOGRBHJ.js")).runLogin(t),"handler")},{name:"init",usage:"openpond init [--path <dir>] [--profile <name>] [--template <name>] [--force] [--json]",optionSchema:{...f,force:"boolean",path:"string",template:"string"},handler:o(async({options:t})=>(await import("./profile-KIHMW2WB.js")).runOpenPondInitCommand(t),"handler")},{name:"profile",usage:"openpond profile <current|init|load|check|push|commit|diff|catalog>",optionSchema:{checkKind:"string",conversationId:"string",ensureHosted:"boolean",expectedManifestHash:"string",force:"boolean",hostedCheckKind:"string",hostedRunAgentId:"string",hostedRunConversationId:"string",hostedRunIdempotencyKey:"string",hostedRunInput:"json",hostedRunRetry:"boolean",hostedRunTargetProjectId:"string",hostedSourceDispatch:"string",hostedSourceAgentId:"string",hostedSourceChecks:"boolean",hostedSourceProjectId:"string",json:"boolean",kind:"string",path:"string",publishHostedSource:"boolean",teamId:"string"},handler:o(async({options:t,rest:n})=>(await import("./profile-KIHMW2WB.js")).runOpenPondProfileCommand(t,n),"handler")},{name:"agents",usage:"openpond agents [--json]",optionSchema:{json:"boolean"},handler:o(async({options:t,rest:n})=>(await import("./profile-KIHMW2WB.js")).runOpenPondAgentsCommand(t,n),"handler")},{name:"actions",usage:"openpond actions <check|build|run|dev|publish> [action-id] [--cwd DIR] [--input JSON|--input-file PATH]",optionSchema:{apiKey:"string",baseUrl:"string",cwd:"string",input:"string",inputFile:"string",json:"boolean",outputDirectory:"string",sourceDirectory:"string",sourceCommitSha:"string",sourceRef:"string",projectId:"string",teamId:"string",timeoutMs:"integer"},handler:o(async({options:t,rest:n})=>(await import("./actions-command-VLKMHCMI.js")).runProjectActionsCommand(t,n),"handler")},...N(),{name:"extension",usage:"openpond extension <add|preview|list|inspect|update|remove> [owner/repo]",usages:["openpond extension add <owner/repo> [--ref <branch|tag|sha>] [--json]","openpond extension update <owner/repo> [--ref <branch|tag|sha>] [--json]","openpond extension update --all [--json]","openpond extension remove <owner/repo> [--json]"],optionSchema:{all:"boolean",json:"boolean",ref:"string"},handler:o(async({options:t,rest:n})=>(await import("./extension-UH34ZF7N.js")).runOpenPondExtensionCommand(t,n),"handler")},{name:"profiles",usage:"openpond profiles [args]",optionSchema:{json:"boolean"},handler:o(async({options:t,rest:n})=>(await import("./core-commands-PJOGRBHJ.js")).runProfiles(t,n),"handler")},{name:"account",usage:"openpond account",usages:["openpond account context [--account <handle>] [--base-url <url>] [--api-base-url <url>] [--json]"],optionSchema:{json:"boolean"},handler:o(async({options:t,rest:n})=>{if(n[0]==="context"&&n.length===1)return(await import("./account-context-TIJOM22A.js")).runAccountContext(t);if(n.length)throw new Error("usage: account [context]");return(await import("./core-commands-PJOGRBHJ.js")).runAccount()},"handler")},{name:"health",usage:"openpond health",optionSchema:{json:"boolean"},handler:o(async({options:t})=>(await import("./core-commands-PJOGRBHJ.js")).runHealth(t),"handler")},{name:"acp",usage:"openpond acp [--home DIR] [--model ID] [--login]",optionSchema:{home:"string",model:"string",login:"boolean",apiKey:"string"},handler:o(async({options:t,rest:n})=>(await import("./acp-PHMBLRCV.js")).runAcpCommand(t,n),"handler")},{name:"app-server",usage:"openpond app-server [--home DIR]",optionSchema:{home:"string"},handler:o(async({options:t,rest:n})=>(await import("./app-layer-J66CQ2QN.js")).runOpenPondServerCommand("app-server",t,n),"handler")},{name:"serve",usage:"openpond serve [args]",optionSchema:{host:"string",hostname:"string",listen:"string",port:"integer"},handler:o(async({options:t,rest:n})=>(await import("./app-layer-J66CQ2QN.js")).runOpenPondServerCommand("serve",t,n),"handler")},{name:"ui",usage:"openpond ui [--no-open] [--hostname HOST] [--port PORT]",optionSchema:{host:"string",hostname:"string",listen:"string",noOpen:"boolean",port:"integer",webRoot:"string"},handler:o(async({options:t,rest:n})=>(await import("./app-layer-J66CQ2QN.js")).runOpenPondServerCommand("web",t,n),"handler")},{name:"tui",aliases:["interactive"],usage:"openpond tui [--provider <id>] [--model <id>] [--project <id>]",optionSchema:{cwd:"string",model:"string",noServerStart:"boolean",project:"string",provider:"string",server:"string"},handler:o(async({options:t,rest:n})=>(await import("./app-layer-J66CQ2QN.js")).runOpenPondTerminalCommand(t,n),"handler")},{name:"chat",usage:"openpond chat (--message-file <path>|--message <text>|--stdin) --non-interactive [--provider <id>] [--model <id>] [--agent <id>] [--project <id>] [--resume <session-id>] [--yes] [--approval-policy <policy>] [--json] [--timeout-sec <n>] [--max-output-bytes <n>] [--sandbox <mode>]",optionSchema:k,handler:o(async({options:t,rest:n})=>(await import("./app-layer-J66CQ2QN.js")).runOpenPondTerminalCommand(t,n),"handler")},{name:"tool",usage:"openpond tool <list|run> <handle>/<repo> [args]",optionSchema:{body:"json",json:"boolean"},handler:U},{name:"backtest",usage:"openpond backtest <run|events|get> <handle>/<repo> [args]",optionSchema:{body:"json",branch:"string",deploymentId:"string",limit:"integer",runId:"string"},handler:L},{name:"deploy",usage:"openpond deploy watch <handle>/<repo> [--branch <branch>]",optionSchema:{branch:"string"},handler:F},{name:"template",usage:"openpond template <status|branches|update> <handle>/<repo> [--env preview|production]",optionSchema:{env:"string"},handler:q},{name:"sandbox-template",usage:"openpond sandbox-template <command> [args]",optionSchema:x,handler:o(async({options:t,rest:n})=>(await import("./sandbox-template-MU33IILL.js")).runSandboxTemplateCommand(t,n),"handler")},{name:"repo",usage:"openpond repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]",optionSchema:{branch:"string",name:"string",path:"string"},handler:K},{name:"organizations",aliases:["organization"],usage:"openpond organizations <login|list|use|logout|whoami> [args]",optionSchema:{accessToken:"string",arguments:"json",callbackPort:"integer",clientId:"string",customDomain:"string",displayName:"string",email:"string",env:"string",environment:"string",json:"boolean",name:"string",open:"boolean",origin:"string",primaryContactEmail:"string",printToken:"boolean",resourceUrl:"string",role:"string",scope:"string",scopes:"string",slug:"string",status:"string",timeout:"integer",timeoutSeconds:"integer",tool:"string",toolName:"string",toolset:"string",url:"string"},handler:o(async({options:t,rest:n})=>(await import("./organizations-VIFSOY6P.js")).runOrganizationsCommand(t,n),"handler")},{name:"project",usage:"openpond project <list|create|upsert|get|update|sync|source-upload|archive> [args]",optionSchema:O,handler:o(async({options:t,rest:n})=>(await import("./project-agent-TJLQNMLA.js")).runProjectCommand(t,n),"handler")},{name:"agent",usage:"openpond agent <inspect|build|validate|eval|traces|list|create|upsert|get|update|run|run-test|bind-source|source|archive> [args]",usages:["openpond agent run <action> [--cwd <project>] [--input <json>]","openpond agent run <agentId> --team-id <id> [--conversation-id <id>] [--target-project-id <projectId>] [--input <json>]","openpond agent source checks <agentId> --team-id <id> [--check-kind <kind>]","openpond agent source publish <agentId> --team-id <id> [--expected-manifest-hash <hash>]"],optionSchema:P,handler:o(async({options:t,rest:n})=>(await import("./project-agent-TJLQNMLA.js")).runAgentCommand(t,n),"handler")},{name:"desktop-test",usage:"openpond desktop-test <run|attach> <scenario...> [--isolated|--attach|--packaged|--none] [--app <path>] [--artifacts-dir <path>] [--json <path>]",optionSchema:{artifactsDir:"string",attach:"boolean",cwd:"string",devtoolsPort:"integer",grep:"string",isolated:"boolean",json:"string",jsonPath:"string",keepHome:"boolean",none:"boolean",server:"string",timeoutMs:"integer",token:"string",tokenFile:"string"},handler:o(async({options:t,rest:n})=>(await import("./desktop-test-Q6REQJ7K.js")).runDesktopTestCommand(t,n),"handler")},{name:"sandbox",usage:"openpond sandbox <command> [args]",optionSchema:I,handler:o(async({options:t,rest:n})=>(await import("./sandbox-command-CQO6BEMQ.js")).runSandboxCommand(t,n),"handler")},{name:"continual",usage:"openpond continual <init|validate|run|report> [manifest-or-series-id]",usages:["openpond continual init --from <tasks.jsonl> [--output <continual-support.yaml>] [--non-interactive]","openpond continual validate <continual-support.yaml> [--json]","openpond continual run <continual-support.yaml> [--api-base-url <url>] [--json]","openpond continual report <comparison-series-id> [--output <report.json>] [--json]"],optionSchema:{apiBaseUrl:"string",commit:"string",correctionCasesPerFamily:"integer",correctionSelection:"string",description:"string",from:"string",grader:"string",id:"string",json:"boolean",license:"string",name:"string",nonInteractive:"boolean",output:"string",repository:"string",seed:"string",semanticSimilarityThreshold:"number"},handler:o(async({options:t,rest:n})=>(await import("./continual-HQCFY7GN.js")).runContinualCommand(t,n),"handler")},{name:"training",usage:"openpond training <projects|inspect-project|create-project|prepare-project|pull-project|estimate|start|status|watch|logs|cancel|resume|artifacts|benchmark> [identifier]",usages:["openpond training estimate <hosted-model-project-id> --team-id <id> [--batch-id <id>] [--gpu-type <type> --availability-id <id> | --gpu-placement-objective <objective>] [--gpu-count <1|2>] [--api-base-url <url>] [--json]","openpond training hosted-estimate <input.json> --team-id <id> [--api-base-url <url>] [--json]","openpond training prepare-project <input.json> [--dry-run] [--output <receipt.json>] [--json]","openpond training prepare-project <reviewed-receipt.json> --apply [--output <saved.json>] [--json]","openpond training pull-project <hosted-model-project-id> --profile <local-profile-id> [--snapshot-file <verified-package-and-projection.json>] [--json]","openpond training projects [--profile <local-profile-id>] [--json]","openpond training inspect-project <local-model-project-id> [--profile <local-profile-id>] [--json]","openpond training create-project <taskset-id> --recipe <path> [--project-id <id>] [--profile <id>] [--name <name>] [--objective <text>] [--destination <id>] [--rollout-placement <local|remote>] [--gpu-placement-objective <fast|balanced|economical>] [--run-preset <preset>] [--max-spend <usd>] [--retention-days <days>] [--json]","openpond training start <hosted-model-project-id> --team-id <id> --batch-id <id> [--max-spend <usd>] [--gpu-type <type> --availability-id <id> | --gpu-placement-objective <objective>] [--gpu-count <1|2>] [--yes] [--detach] [--json]","openpond training start <model-project-id> [--comparison-series-entry <entry-id>] [--manifest <path>] [--yes] [--export-approved] [--max-spend <usd>] [--retention-days <days>] [--detach] [--json]","openpond training hosted-models|hosted-batches|hosted-preparations|hosted-jobs|hosted-capabilities|hosted-gpu-catalog --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-learning-inspect <model-project-id> --team-id <id> [--cursor <id>] [--limit <1..100>] [--api-base-url <url>] [--json]","openpond training hosted-corrections <model-project-id> --team-id <id> [--run-id <id>] [--api-base-url <url>] [--json]","openpond training hosted-workers --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-hardware --team-id <id> [--worker-id <id>] [--job-id <id>] [--limit <1..50>] [--cursor <worker-id>] [--api-base-url <url>] [--watch --interval-ms <100..60000> --timeout-ms <1000..60000>] [--json]","openpond training hosted-serving-pools --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-base-serving-prepare <base-profile.json> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-serving-pool-retire <pool-and-reason.json> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-provider|hosted-quotes --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-worker <physical-worker-id> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-worker-stop|hosted-worker-resume|hosted-worker-retire|hosted-worker-warm-idle|hosted-worker-retain-session <control.json> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-model <model-project-id> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-sync-model <input.json> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-publish-taskset <publication.json> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-evaluate-checkpoint <request.json> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-prepare|hosted-start|hosted-stage|hosted-submit <input.json> --team-id <id> [--api-base-url <url>] [--yes] [--json]","openpond training hosted-qualify <input.json> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-trajectory <job-id> --trajectory-id <receipt-id> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-feedback <job-id> --trajectory-id <receipt-id> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-feedback <job-id> --evaluation-id <id> --task-id <id> --team-id <id> [--api-base-url <url>] [--json]","openpond training hosted-status|hosted-inspect|hosted-report|hosted-watch|hosted-cancel|hosted-artifacts|hosted-logs|hosted-events <job-id> --team-id <id> [--api-base-url <url>] [--interval-ms <ms>] [--json]","openpond training hosted-recover <input.json> --team-id <id> --yes [--api-base-url <url>] [--json]","openpond training hosted-stop-after-group <job-id> --team-id <id> [--api-base-url <url>] --yes [--json]","openpond training hosted-evaluation-tasks <job-id> --evaluation-id <id> --team-id <id> [--cursor <cursor>] [--limit <1..100>] [--api-base-url <url>] [--json]","openpond training hosted-watch <job-id> --team-id <id> [--deadline-at <ISO-time>] [--cleanup-reserve-ms <ms>] [--wait-for-cleanup] [--cancel-on-infrastructure-error] [--cleanup-timeout-ms <ms>] [--interval-ms <ms>] [--json]","openpond training status <run-id> [--json]","openpond training watch <run-id> [--interval-ms <ms>] [--json]","openpond training logs <run-id> [--json]","openpond training cancel <run-id> [--json]","openpond training resume <model-run-id> [--json]","openpond training artifacts <run-id> [--json]","openpond training benchmark <model-id> [--provider <id>] [--model <id>] [--reasoning-effort <level>] [--max-spend <usd>] [--json]"],optionSchema:{apiBaseUrl:"string",batchId:"string",operationId:"string",workerId:"string",jobId:"string",gpuType:"string",gpuCount:"string",availabilityId:"string",apply:"boolean",dryRun:"boolean",output:"string",comparisonSeriesEntry:"string",snapshotFile:"string",teamId:"string",account:"string",detach:"boolean",destination:"string",exportApproved:"boolean",gpuPlacementObjective:"string",intervalMs:"integer",watch:"boolean",timeoutMs:"integer",deadlineAt:"string",cleanupReserveMs:"integer",waitForCleanup:"boolean",cleanupTimeoutMs:"integer",cancelOnInfrastructureError:"boolean",trajectoryId:"string",evaluationId:"string",taskId:"string",runId:"string",cursor:"string",limit:"integer",json:"boolean",manifest:"string",maxSpend:"number",model:"string",name:"string",objective:"string",profile:"string",projectId:"string",provider:"string",recipe:"string",reasoningEffort:"string",retentionDays:"integer",rolloutPlacement:"string",runPreset:"string",yes:"boolean"},handler:o(async({options:t,rest:n})=>n[0]==="hosted-hardware"?(await import("./training-hardware-ESXRWUIK.js")).runHardwareObservations(t,n):(await import("./training-XFM3OOPN.js")).runTrainingCommand(t,n),"handler")},{name:"taskset",usage:"openpond taskset <import|publish|readiness|delete-draft> <package-path|draft-id|taskset-id> [--profile <id>] [--model <id>] [--json]",usages:["openpond taskset import <package-directory|taskset.json> [--profile <id>] [--json]","openpond taskset publish <draft-id> [--model <id>] [--json]","openpond taskset readiness <taskset-id> [--json]","openpond taskset delete-draft <draft-id> [--json]"],optionSchema:{apiBaseUrl:"string",json:"boolean",model:"string",profile:"string"},handler:o(async({options:t,rest:n})=>(await import("./taskset-7FQCJ55X.js")).runTasksetCommand(t,n),"handler")},{name:"opchat",usage:`openpond opchat <provider-catalog|models|model|smoke> [args]
9
+ openpond opchat chat --model <id> --message <text> --team-id <id> --max-output-tokens <n> --request-id <id> --timeout-sec <1..600> --max-spend <usd> [--stream] (one bounded request; JSON receipt after completion)`,optionSchema:{compatModel:"string",compatibilityModel:"string",env:"string",environment:"string",effort:"string",json:"boolean",message:"string",teamId:"string",maxOutputTokens:"integer",maxSpend:"number",requestId:"string",timeoutSec:"integer",model:"string",opchatApiBaseUrl:"string",opchatApiUrl:"string",prompt:"string",skipStream:"boolean",skipTool:"boolean",stream:"boolean"},handler:o(async({options:t,rest:n})=>(await import("./opchat-2LLDIWEJ.js")).runOpChatCommand(t,n),"handler")},{name:"teams-bot",usage:"openpond teams-bot <command> [args]",optionSchema:{json:"boolean",teamId:"string"},handler:o(async({options:t,rest:n})=>(await import("./teams-bot-D3LWA4S5.js")).runTeamsBotCommand(t,n),"handler")},{name:"apps",usage:"openpond apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]",optionSchema:{appId:"string",body:"json",env:"json",json:"boolean",limit:"integer",refresh:"boolean",teamId:"string",watch:"boolean"},handler:G},{name:"opentool",usage:"openpond opentool <init|validate|build> [args]",optionSchema:{},handler:o(async({rest:t})=>(await import("./core-commands-PJOGRBHJ.js")).runOpentool(t),"handler")}],v=new Map;for(let t of j){v.set(t.name,t);for(let n of t.aliases??[])v.set(n,t)}function X(){return j}o(X,"listCliCommandDefinitions");function y(t){return v.get(t)??null}o(y,"getCliCommandDefinition");function Y(t,n){return y(t||"ui")?.optionSchema[n]??f[n]}o(Y,"getCliOptionKind");function Z(t){let n=f[t];if(n)return n;for(let s of j){let i=s.optionSchema[t];if(i)return i}}o(Z,"getAnyCliOptionKind");async function Q(t){let n=y(t.command);return n?C(t.options.help)?(H(n),!0):(await n.handler(t),!0):!1}o(Q,"runCliCommand");function _(t){let n=["Usage:",` ${t.usage}`,...(t.usages??[]).map(i=>` ${i}`)];t.aliases?.length&&n.push("","Aliases:",` ${t.aliases.join(", ")}`);let s=Object.entries(t.optionSchema).sort(([i],[p])=>i.localeCompare(p));if(s.length>0){n.push("","Options:");for(let[i,p]of s){let d=B(i);n.push(p==="boolean"?` --${d}`:` --${d} <${p}>`)}}return n.join(`
10
+ `)}o(_,"formatCliCommandUsage");function H(t){console.log(_(t))}o(H,"printCliCommandUsage");function B(t){return t.replace(/[A-Z]/g,n=>`-${n.toLowerCase()}`)}o(B,"cliOptionName");function N(){return["inspect","build","validate","eval","run"].map(n=>({name:n,usage:`openpond ${n} [args]`,optionSchema:M,handler:o(async({options:s,rest:i})=>(await import("./profile-KIHMW2WB.js")).runOpenPondProfileSdkAlias(n,s,i),"handler")}))}o(N,"profileSdkAliasDefinitions");async function U({options:t,rest:n}){let{runToolList:s,runToolRun:i}=await import("./core-commands-PJOGRBHJ.js"),p=n[0];if(p==="list"){let d=n[1];if(!d)throw new Error("usage: tool list <handle>/<repo>");await s(t,d);return}if(p==="run"){let d=n[1],l=n[2];if(!d||!l)throw new Error("usage: tool run <handle>/<repo> <tool> [--body <json>]");await i(t,d,l);return}throw new Error("usage: tool <list|run> <handle>/<repo> [args]")}o(U,"runToolCommand");async function L({options:t,rest:n}){let{runBacktestRun:s}=await import("./core-commands-PJOGRBHJ.js"),{runBacktestEvents:i,runBacktestGet:p}=await import("./apps-IHUFERZO.js"),d=n[0]||"run";if(d==="run"){let l=n[1],b=n[2];if(!l||!b)throw new Error("usage: backtest run <handle>/<repo> <tool> [--body <json>] [--branch <branch>] [--deployment-id <id>]");await s(t,l,b);return}if(d==="events"){let l=n[1];if(!l)throw new Error("usage: backtest events <handle>/<repo> [--run-id <id>] [--limit <n>]");await i(t,l);return}if(d==="get"){let l=n[1];if(!l)throw new Error("usage: backtest get <handle>/<repo> --run-id <id>");await p(t,l);return}throw new Error("usage: backtest <run|events|get> <handle>/<repo> [args]")}o(L,"runBacktestCommand");async function F({options:t,rest:n}){let{runDeployWatch:s}=await import("./core-commands-PJOGRBHJ.js");if((n[0]||"watch")!=="watch")throw new Error("usage: deploy watch <handle>/<repo> [--branch <branch>]");let p=n[1];if(!p)throw new Error("usage: deploy watch <handle>/<repo> [--branch <branch>]");await s(t,p)}o(F,"runDeployCommand");async function q({options:t,rest:n}){let{runTemplateBranches:s,runTemplateStatus:i,runTemplateUpdate:p}=await import("./core-commands-PJOGRBHJ.js"),d=n[0]||"status",l=n[1];if(!l)throw new Error("usage: template <status|branches|update> <handle>/<repo> [--env preview|production]");if(d==="status"){await i(t,l);return}if(d==="branches"){await s(t,l);return}if(d==="update"){await p(t,l);return}throw new Error("usage: template <status|branches|update> <handle>/<repo> [--env preview|production]")}o(q,"runTemplateCommand");async function K({options:t,rest:n}){let{runRepoCreate:s,runRepoPush:i}=await import("./core-commands-PJOGRBHJ.js"),p=n[0]||"create";if(p==="create"){await s(t,n.slice(1));return}if(p==="push"){await i(t);return}throw new Error("usage: repo <create|push> [--name <name>] [--path <dir>] [--branch <branch>]")}o(K,"runRepoCommand");async function G({options:t,rest:n}){let{runAppsAgentCreate:s,runAppsAssistant:i,runAppsCodeVisibility:p,runAppsDeploy:d,runAppsEnvGet:l,runAppsEnvSet:b,runAppsList:A,runAppsPerformance:T,runAppsSummary:E,runAppsTools:R,runAppsToolsExecute:D}=await import("./apps-IHUFERZO.js"),m=n[0];if(m==="list"){await A(t);return}if(m==="code-visibility"){let r=n[1];if(!r)throw new Error("usage: apps code-visibility <handle>/<repo> --visibility public|private");await p(t,r);return}if(m==="tools"){if(n[1]==="execute"){let r=n[2],h=n[3],w=n[4];if(!r||!h||!w)throw new Error("usage: apps tools execute <appId> <deploymentId> <tool> [--body <json>]");await D(t,r,h,w);return}await R();return}if(m==="deploy"){let r=n[1];if(!r)throw new Error("usage: apps deploy <handle>/<repo> [--env preview|production] [--watch]");await d(t,r);return}if(m==="env"&&n[1]==="get"){let r=n[2];if(!r)throw new Error("usage: apps env get <handle>/<repo>");await l(t,r);return}if(m==="env"&&n[1]==="set"){let r=n[2];if(!r)throw new Error("usage: apps env set <handle>/<repo> --env <json>");await b(t,r);return}if(m==="performance"){await T(t);return}if(m==="summary"){let r=n[1];if(!r)throw new Error("usage: apps summary <handle>/<repo>");await E(t,r);return}if(m==="assistant"){let r=n[1],h=n[2];if(r!=="plan"&&r!=="performance"||!h)throw new Error("usage: apps assistant <plan|performance> <handle>/<repo> --prompt <text>");await i(t,r,h,n.slice(3));return}if(m==="agent"&&n[1]==="create"){await s(t,n.slice(2));return}throw new Error("usage: apps <list|code-visibility|tools|deploy|env get|env set|performance|summary|assistant|agent create> [args]")}o(G,"runAppsCommand");export{f as a,W as b,X as c,y as d,Y as e,Z as f,Q as g,_ as h};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as be,b as Ae,c as Ie,d as ve}from"./chunk-JEISPWWM.js";import{c as O,i as L}from"./chunk-UTNGEMW5.js";import{a as Re}from"./chunk-6FA3GG5B.js";import{f as Oe}from"./chunk-UGOK7VTC.js";import{a as s}from"./chunk-FTQLQJQV.js";var W=class extends Error{static{s(this,"OpenPondProfileSetupRequiredError")}code="agent_source_setup_required";details;constructor(t,n){let o=n.blockingRequirements.map(r=>r.label);super(["agent_source_setup_required",`Profile action ${t} has unresolved required setup.`,o.length?`Missing setup: ${o.join(", ")}`:""].filter(Boolean).join(`
2
+ import{a as be,b as Ae,c as Ie,d as ve}from"./chunk-PWKJ5KLZ.js";import{c as O,i as L}from"./chunk-3WJQ4IGK.js";import{a as Re}from"./chunk-6FA3GG5B.js";import{f as Oe}from"./chunk-UGOK7VTC.js";import{a as s}from"./chunk-FTQLQJQV.js";var W=class extends Error{static{s(this,"OpenPondProfileSetupRequiredError")}code="agent_source_setup_required";details;constructor(t,n){let o=n.blockingRequirements.map(r=>r.label);super(["agent_source_setup_required",`Profile action ${t} has unresolved required setup.`,o.length?`Missing setup: ${o.join(", ")}`:""].filter(Boolean).join(`
3
3
  `)),this.name="OpenPondProfileSetupRequiredError",this.details={error:"agent_source_setup_required",actionId:t,setupGate:n,missing:o,blockingSetupRequirements:n.blockingRequirements,setupRequirements:n.requirements}}};function K(e){let t=new Map;for(let a of e.sourceSetupRequirements??[]){let l=bt(a);if(e.actionId&&l&&l!==e.actionId&&h(a.actionName)!==e.actionId&&h(a.sourceActionId)!==e.actionId)continue;let c=Ee({record:a,source:"source_upload_metadata",actionId:l});c&&t.set(c.ref,c)}for(let a of e.actionCatalog)if(!(e.actionId&&a.id!==e.actionId&&a.name!==e.actionId))for(let l of a.setupRequirements??[]){let c=Ee({record:l,source:"action_catalog",actionId:a.id});c&&t.set(c.ref,c)}let n=Array.from(t.values()),o=n.filter(a=>a.blocking),r=n.filter(a=>!a.required&&!ne(a.status)).length,i=n.filter(a=>ne(a.status)).length;return{status:It(o),requirementCount:n.length,blockingCount:o.length,optionalMissingCount:r,readyCount:i,requirements:n,blockingRequirements:o}}s(K,"buildOpenPondProfileSetupGate");function oe(e,t){if(t.blockingRequirements.length>0)throw new W(e,t)}s(oe,"assertOpenPondProfileActionReady");function Rt(e){let t=e.actionId?`${e.actionId}: `:"",n=e.required?"required":"optional";return`${t}${e.label} (${n}, ${e.status})`}s(Rt,"formatOpenPondProfileSetupRequirement");function Ee(e){let t=e.source==="action_catalog"&&h(e.record.source)==="source_upload_metadata"?"source_upload_metadata":e.source,n=h(e.record.kind)??h(e.record.type),o=h(e.record.label)??h(e.record.name)??h(e.record.key)??h(e.record.provider)??h(e.record.tool)??h(e.record.command)??h(e.record.packageName)??h(e.record.path)??h(e.record.repo)??h(e.record.url)??h(e.record.id)??n??"setup requirement",r=e.record.required!==!1,i=At(e.record);return{ref:[t,e.actionId??"source",n??"requirement",o].join(":"),source:t,actionId:e.actionId,kind:n,label:o,status:i,required:r,blocking:r&&!ne(i)}}s(Ee,"setupRequirementFromRecord");function bt(e){return h(e.actionId)??h(e.sourceActionId)??h(e.actionName)}s(bt,"setupRequirementActionId");function At(e){let t=h(e.status)??h(e.state);return t?t==="satisfied"||t==="connected"||t==="provided"?"ready":t:typeof e.satisfied=="boolean"?e.satisfied?"ready":"setup_required":typeof e.ready=="boolean"&&e.ready?"ready":"setup_required"}s(At,"setupStatus");function It(e){return e.length===0?"ready":e.some(t=>["blocked","unsupported","unsupported_dependency","stale"].includes(t.status))?"blocked":"setup_required"}s(It,"gateStatus");function ne(e){return e==="ready"||e==="disabled"}s(ne,"isReadyStatus");function h(e){return typeof e=="string"&&e.trim()?e.trim():null}s(h,"text");import{stat as qt}from"node:fs/promises";import se from"node:path";import{spawn as vt}from"node:child_process";import{existsSync as re}from"node:fs";import{readFile as Et,rm as Kn,writeFile as _e}from"node:fs/promises";import ie from"node:path";var Le=["**/node_modules/","**/.bun/","**/.env","**/.env.*","**/.openpond/traces/","**/.openpond/vendor/","**/.openpond/eval-results.json","**/.openpond/artifact-index.json","**/.openpond/source-upload-cache.json",""].join(`
4
4
  `);async function Me(e){if(!re(ie.join(e,".git"))){let i=await R(e,["init","-b","main"]);if(i.code!==0)throw new Error(H("git init",i))}let t=ie.join(e,".gitignore");if(re(t)?await xt(t):await _e(t,Le,"utf8"),await _t(e))return;let n=await N(e);if(!n.dirty&&n.files.length===0)return;let o=await R(e,["add","-A"]);if(o.code!==0)throw new Error(H("git add",o));let r=await R(e,["commit","-m","Initialize OpenPond profile"],{env:{...process.env,GIT_AUTHOR_NAME:process.env.GIT_AUTHOR_NAME||"OpenPond",GIT_AUTHOR_EMAIL:process.env.GIT_AUTHOR_EMAIL||"openpond@example.invalid",GIT_COMMITTER_NAME:process.env.GIT_COMMITTER_NAME||"OpenPond",GIT_COMMITTER_EMAIL:process.env.GIT_COMMITTER_EMAIL||"openpond@example.invalid"}});if(r.code!==0&&!/nothing to commit/i.test(r.stdout+r.stderr))throw new Error(H("git commit",r))}s(Me,"ensureProfileGitRepo");async function xt(e){let t=await Et(e,"utf8").catch(()=>""),n=Le.split(/\r?\n/).map(r=>r.trim()).filter(Boolean).filter(r=>!t.split(/\r?\n/).some(i=>i.trim()===r));if(n.length===0)return;let o=t.endsWith(`
5
5
  `)||t.length===0?"":`
@@ -0,0 +1,9 @@
1
+ import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
+ import{a as o,c as $}from"./chunk-FTQLQJQV.js";var Je=$(T=>{"use strict";Object.defineProperty(T,"__esModule",{value:!0});T.regexpCode=T.getEsmExportName=T.getProperty=T.safeStringify=T.stringify=T.strConcat=T.addCodeArg=T.str=T._=T.nil=T._Code=T.Name=T.IDENTIFIER=T._CodeOrName=void 0;var xe=class{static{o(this,"_CodeOrName")}};T._CodeOrName=xe;T.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var $e=class extends xe{static{o(this,"Name")}constructor(e){if(super(),!T.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};T.Name=$e;var B=class extends xe{static{o(this,"_Code")}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(){var e;return(e=this._str)!==null&&e!==void 0?e:this._str=this._items.reduce((r,s)=>`${r}${s}`,"")}get names(){var e;return(e=this._names)!==null&&e!==void 0?e:this._names=this._items.reduce((r,s)=>(s instanceof $e&&(r[s.str]=(r[s.str]||0)+1),r),{})}};T._Code=B;T.nil=new B("");function zs(t,...e){let r=[t[0]],s=0;for(;s<e.length;)er(r,e[s]),r.push(t[++s]);return new B(r)}o(zs,"_");T._=zs;var Zt=new B("+");function Us(t,...e){let r=[Ge(t[0])],s=0;for(;s<e.length;)r.push(Zt),er(r,e[s]),r.push(Zt,Ge(t[++s]));return ca(r),new B(r)}o(Us,"str");T.str=Us;function er(t,e){e instanceof B?t.push(...e._items):e instanceof $e?t.push(e):t.push(da(e))}o(er,"addCodeArg");T.addCodeArg=er;function ca(t){let e=1;for(;e<t.length-1;){if(t[e]===Zt){let r=ua(t[e-1],t[e+1]);if(r!==void 0){t.splice(e-1,3,r);continue}t[e++]="+"}e++}}o(ca,"optimize");function ua(t,e){if(e==='""')return t;if(t==='""')return e;if(typeof t=="string")return e instanceof $e||t[t.length-1]!=='"'?void 0:typeof e!="string"?`${t.slice(0,-1)}${e}"`:e[0]==='"'?t.slice(0,-1)+e.slice(1):void 0;if(typeof e=="string"&&e[0]==='"'&&!(t instanceof $e))return`"${t}${e.slice(1)}`}o(ua,"mergeExprItems");function la(t,e){return e.emptyStr()?t:t.emptyStr()?e:Us`${t}${e}`}o(la,"strConcat");T.strConcat=la;function da(t){return typeof t=="number"||typeof t=="boolean"||t===null?t:Ge(Array.isArray(t)?t.join(","):t)}o(da,"interpolate");function fa(t){return new B(Ge(t))}o(fa,"stringify");T.stringify=fa;function Ge(t){return JSON.stringify(t).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}o(Ge,"safeStringify");T.safeStringify=Ge;function ha(t){return typeof t=="string"&&T.IDENTIFIER.test(t)?new B(`.${t}`):zs`[${t}]`}o(ha,"getProperty");T.getProperty=ha;function pa(t){if(typeof t=="string"&&T.IDENTIFIER.test(t))return new B(`${t}`);throw new Error(`CodeGen: invalid export name: ${t}, use explicit $id name mapping`)}o(pa,"getEsmExportName");T.getEsmExportName=pa;function ma(t){return new B(t.toString())}o(ma,"regexpCode");T.regexpCode=ma});var sr=$(G=>{"use strict";Object.defineProperty(G,"__esModule",{value:!0});G.ValueScope=G.ValueScopeName=G.Scope=G.varKinds=G.UsedValueState=void 0;var x=Je(),tr=class extends Error{static{o(this,"ValueError")}constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}},_t;(function(t){t[t.Started=0]="Started",t[t.Completed=1]="Completed"})(_t||(G.UsedValueState=_t={}));G.varKinds={const:new x.Name("const"),let:new x.Name("let"),var:new x.Name("var")};var gt=class{static{o(this,"Scope")}constructor({prefixes:e,parent:r}={}){this._names={},this._prefixes=e,this._parent=r}toName(e){return e instanceof x.Name?e:this.name(e)}name(e){return new x.Name(this._newName(e))}_newName(e){let r=this._names[e]||this._nameGroup(e);return`${e}${r.index++}`}_nameGroup(e){var r,s;if(!((s=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||s===void 0)&&s.has(e)||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}};G.Scope=gt;var $t=class extends x.Name{static{o(this,"ValueScopeName")}constructor(e,r){super(r),this.prefix=e}setValue(e,{property:r,itemIndex:s}){this.value=e,this.scopePath=(0,x._)`.${new x.Name(r)}[${s}]`}};G.ValueScopeName=$t;var ya=(0,x._)`\n`,rr=class extends gt{static{o(this,"ValueScope")}constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?ya:x.nil}}get(){return this._scope}name(e){return new $t(e,this._newName(e))}value(e,r){var s;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let n=this.toName(e),{prefix:a}=n,i=(s=r.key)!==null&&s!==void 0?s:r.ref,c=this._values[a];if(c){let l=c.get(i);if(l)return l}else c=this._values[a]=new Map;c.set(i,n);let u=this._scope[a]||(this._scope[a]=[]),d=u.length;return u[d]=r.ref,n.setValue(r,{property:a,itemIndex:d}),n}getValue(e,r){let s=this._values[e];if(s)return s.get(r)}scopeRefs(e,r=this._values){return this._reduceValues(r,s=>{if(s.scopePath===void 0)throw new Error(`CodeGen: name "${s}" has no value`);return(0,x._)`${e}${s.scopePath}`})}scopeCode(e=this._values,r,s){return this._reduceValues(e,n=>{if(n.value===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return n.value.code},r,s)}_reduceValues(e,r,s={},n){let a=x.nil;for(let i in e){let c=e[i];if(!c)continue;let u=s[i]=s[i]||new Map;c.forEach(d=>{if(u.has(d))return;u.set(d,_t.Started);let l=r(d);if(l){let f=this.opts.es5?G.varKinds.var:G.varKinds.const;a=(0,x._)`${a}${f} ${d} = ${l};${this.opts._n}`}else if(l=n?.(d))a=(0,x._)`${a}${l}${this.opts._n}`;else throw new tr(d);u.set(d,_t.Completed)})}return a}};G.ValueScope=rr});var N=$(S=>{"use strict";Object.defineProperty(S,"__esModule",{value:!0});S.or=S.and=S.not=S.CodeGen=S.operators=S.varKinds=S.ValueScopeName=S.ValueScope=S.Scope=S.Name=S.regexpCode=S.stringify=S.getProperty=S.nil=S.strConcat=S.str=S._=void 0;var q=Je(),Z=sr(),fe=Je();Object.defineProperty(S,"_",{enumerable:!0,get:o(function(){return fe._},"get")});Object.defineProperty(S,"str",{enumerable:!0,get:o(function(){return fe.str},"get")});Object.defineProperty(S,"strConcat",{enumerable:!0,get:o(function(){return fe.strConcat},"get")});Object.defineProperty(S,"nil",{enumerable:!0,get:o(function(){return fe.nil},"get")});Object.defineProperty(S,"getProperty",{enumerable:!0,get:o(function(){return fe.getProperty},"get")});Object.defineProperty(S,"stringify",{enumerable:!0,get:o(function(){return fe.stringify},"get")});Object.defineProperty(S,"regexpCode",{enumerable:!0,get:o(function(){return fe.regexpCode},"get")});Object.defineProperty(S,"Name",{enumerable:!0,get:o(function(){return fe.Name},"get")});var Et=sr();Object.defineProperty(S,"Scope",{enumerable:!0,get:o(function(){return Et.Scope},"get")});Object.defineProperty(S,"ValueScope",{enumerable:!0,get:o(function(){return Et.ValueScope},"get")});Object.defineProperty(S,"ValueScopeName",{enumerable:!0,get:o(function(){return Et.ValueScopeName},"get")});Object.defineProperty(S,"varKinds",{enumerable:!0,get:o(function(){return Et.varKinds},"get")});S.operators={GT:new q._Code(">"),GTE:new q._Code(">="),LT:new q._Code("<"),LTE:new q._Code("<="),EQ:new q._Code("==="),NEQ:new q._Code("!=="),NOT:new q._Code("!"),OR:new q._Code("||"),AND:new q._Code("&&"),ADD:new q._Code("+")};var ce=class{static{o(this,"Node")}optimizeNodes(){return this}optimizeNames(e,r){return this}},nr=class extends ce{static{o(this,"Def")}constructor(e,r,s){super(),this.varKind=e,this.name=r,this.rhs=s}render({es5:e,_n:r}){let s=e?Z.varKinds.var:this.varKind,n=this.rhs===void 0?"":` = ${this.rhs}`;return`${s} ${this.name}${n};`+r}optimizeNames(e,r){if(e[this.name.str])return this.rhs&&(this.rhs=Re(this.rhs,e,r)),this}get names(){return this.rhs instanceof q._CodeOrName?this.rhs.names:{}}},vt=class extends ce{static{o(this,"Assign")}constructor(e,r,s){super(),this.lhs=e,this.rhs=r,this.sideEffects=s}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,r){if(!(this.lhs instanceof q.Name&&!e[this.lhs.str]&&!this.sideEffects))return this.rhs=Re(this.rhs,e,r),this}get names(){let e=this.lhs instanceof q.Name?{}:{...this.lhs.names};return bt(e,this.rhs)}},or=class extends vt{static{o(this,"AssignOp")}constructor(e,r,s,n){super(e,s,n),this.op=r}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}},ar=class extends ce{static{o(this,"Label")}constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}},ir=class extends ce{static{o(this,"Break")}constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}},cr=class extends ce{static{o(this,"Throw")}constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}},ur=class extends ce{static{o(this,"AnyCode")}constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,r){return this.code=Re(this.code,e,r),this}get names(){return this.code instanceof q._CodeOrName?this.code.names:{}}},We=class extends ce{static{o(this,"ParentNode")}constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce((r,s)=>r+s.render(e),"")}optimizeNodes(){let{nodes:e}=this,r=e.length;for(;r--;){let s=e[r].optimizeNodes();Array.isArray(s)?e.splice(r,1,...s):s?e[r]=s:e.splice(r,1)}return e.length>0?this:void 0}optimizeNames(e,r){let{nodes:s}=this,n=s.length;for(;n--;){let a=s[n];a.optimizeNames(e,r)||(_a(e,a.names),s.splice(n,1))}return s.length>0?this:void 0}get names(){return this.nodes.reduce((e,r)=>be(e,r.names),{})}},ue=class extends We{static{o(this,"BlockNode")}render(e){return"{"+e._n+super.render(e)+"}"+e._n}},lr=class extends We{static{o(this,"Root")}},je=class extends ue{static{o(this,"Else")}};je.kind="else";var ve=class t extends ue{static{o(this,"If")}constructor(e,r){super(r),this.condition=e}render(e){let r=`if(${this.condition})`+super.render(e);return this.else&&(r+="else "+this.else.render(e)),r}optimizeNodes(){super.optimizeNodes();let e=this.condition;if(e===!0)return this.nodes;let r=this.else;if(r){let s=r.optimizeNodes();r=this.else=Array.isArray(s)?new je(s):s}if(r)return e===!1?r instanceof t?r:r.nodes:this.nodes.length?this:new t(Ks(e),r instanceof t?[r]:r.nodes);if(!(e===!1||!this.nodes.length))return this}optimizeNames(e,r){var s;if(this.else=(s=this.else)===null||s===void 0?void 0:s.optimizeNames(e,r),!!(super.optimizeNames(e,r)||this.else))return this.condition=Re(this.condition,e,r),this}get names(){let e=super.names;return bt(e,this.condition),this.else&&be(e,this.else.names),e}};ve.kind="if";var we=class extends ue{static{o(this,"For")}};we.kind="for";var dr=class extends we{static{o(this,"ForLoop")}constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iteration=Re(this.iteration,e,r),this}get names(){return be(super.names,this.iteration.names)}},fr=class extends we{static{o(this,"ForRange")}constructor(e,r,s,n){super(),this.varKind=e,this.name=r,this.from=s,this.to=n}render(e){let r=e.es5?Z.varKinds.var:this.varKind,{name:s,from:n,to:a}=this;return`for(${r} ${s}=${n}; ${s}<${a}; ${s}++)`+super.render(e)}get names(){let e=bt(super.names,this.from);return bt(e,this.to)}},wt=class extends we{static{o(this,"ForIter")}constructor(e,r,s,n){super(),this.loop=e,this.varKind=r,this.name=s,this.iterable=n}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,r){if(super.optimizeNames(e,r))return this.iterable=Re(this.iterable,e,r),this}get names(){return be(super.names,this.iterable.names)}},Be=class extends ue{static{o(this,"Func")}constructor(e,r,s){super(),this.name=e,this.args=r,this.async=s}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}};Be.kind="func";var Qe=class extends We{static{o(this,"Return")}render(e){return"return "+super.render(e)}};Qe.kind="return";var hr=class extends ue{static{o(this,"Try")}render(e){let r="try"+super.render(e);return this.catch&&(r+=this.catch.render(e)),this.finally&&(r+=this.finally.render(e)),r}optimizeNodes(){var e,r;return super.optimizeNodes(),(e=this.catch)===null||e===void 0||e.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(e,r){var s,n;return super.optimizeNames(e,r),(s=this.catch)===null||s===void 0||s.optimizeNames(e,r),(n=this.finally)===null||n===void 0||n.optimizeNames(e,r),this}get names(){let e=super.names;return this.catch&&be(e,this.catch.names),this.finally&&be(e,this.finally.names),e}},Xe=class extends ue{static{o(this,"Catch")}constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}};Xe.kind="catch";var Ye=class extends ue{static{o(this,"Finally")}render(e){return"finally"+super.render(e)}};Ye.kind="finally";var pr=class{static{o(this,"CodeGen")}constructor(e,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
3
+ `:""},this._extScope=e,this._scope=new Z.Scope({parent:e}),this._nodes=[new lr]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,r){let s=this._extScope.value(e,r);return(this._values[s.prefix]||(this._values[s.prefix]=new Set)).add(s),s}getScopeValue(e,r){return this._extScope.getValue(e,r)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,r,s,n){let a=this._scope.toName(r);return s!==void 0&&n&&(this._constants[a.str]=s),this._leafNode(new nr(e,a,s)),a}const(e,r,s){return this._def(Z.varKinds.const,e,r,s)}let(e,r,s){return this._def(Z.varKinds.let,e,r,s)}var(e,r,s){return this._def(Z.varKinds.var,e,r,s)}assign(e,r,s){return this._leafNode(new vt(e,r,s))}add(e,r){return this._leafNode(new or(e,S.operators.ADD,r))}code(e){return typeof e=="function"?e():e!==q.nil&&this._leafNode(new ur(e)),this}object(...e){let r=["{"];for(let[s,n]of e)r.length>1&&r.push(","),r.push(s),(s!==n||this.opts.es5)&&(r.push(":"),(0,q.addCodeArg)(r,n));return r.push("}"),new q._Code(r)}if(e,r,s){if(this._blockNode(new ve(e)),r&&s)this.code(r).else().code(s).endIf();else if(r)this.code(r).endIf();else if(s)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new ve(e))}else(){return this._elseNode(new je)}endIf(){return this._endBlockNode(ve,je)}_for(e,r){return this._blockNode(e),r&&this.code(r).endFor(),this}for(e,r){return this._for(new dr(e),r)}forRange(e,r,s,n,a=this.opts.es5?Z.varKinds.var:Z.varKinds.let){let i=this._scope.toName(e);return this._for(new fr(a,i,r,s),()=>n(i))}forOf(e,r,s,n=Z.varKinds.const){let a=this._scope.toName(e);if(this.opts.es5){let i=r instanceof q.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,q._)`${i}.length`,c=>{this.var(a,(0,q._)`${i}[${c}]`),s(a)})}return this._for(new wt("of",n,a,r),()=>s(a))}forIn(e,r,s,n=this.opts.es5?Z.varKinds.var:Z.varKinds.const){if(this.opts.ownProperties)return this.forOf(e,(0,q._)`Object.keys(${r})`,s);let a=this._scope.toName(e);return this._for(new wt("in",n,a,r),()=>s(a))}endFor(){return this._endBlockNode(we)}label(e){return this._leafNode(new ar(e))}break(e){return this._leafNode(new ir(e))}return(e){let r=new Qe;if(this._blockNode(r),this.code(e),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(Qe)}try(e,r,s){if(!r&&!s)throw new Error('CodeGen: "try" without "catch" and "finally"');let n=new hr;if(this._blockNode(n),this.code(e),r){let a=this.name("e");this._currNode=n.catch=new Xe(a),r(a)}return s&&(this._currNode=n.finally=new Ye,this.code(s)),this._endBlockNode(Xe,Ye)}throw(e){return this._leafNode(new cr(e))}block(e,r){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(r),this}endBlock(e){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let s=this._nodes.length-r;if(s<0||e!==void 0&&s!==e)throw new Error(`CodeGen: wrong number of nodes: ${s} vs ${e} expected`);return this._nodes.length=r,this}func(e,r=q.nil,s,n){return this._blockNode(new Be(e,r,s)),n&&this.code(n).endFunc(),this}endFunc(){return this._endBlockNode(Be)}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,r){let s=this._currNode;if(s instanceof e||r&&s instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${e.kind}/${r.kind}`:e.kind}"`)}_elseNode(e){let r=this._currNode;if(!(r instanceof ve))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=e,this}get _root(){return this._nodes[0]}get _currNode(){let e=this._nodes;return e[e.length-1]}set _currNode(e){let r=this._nodes;r[r.length-1]=e}};S.CodeGen=pr;function be(t,e){for(let r in e)t[r]=(t[r]||0)+(e[r]||0);return t}o(be,"addNames");function bt(t,e){return e instanceof q._CodeOrName?be(t,e.names):t}o(bt,"addExprNames");function Re(t,e,r){if(t instanceof q.Name)return s(t);if(!n(t))return t;return new q._Code(t._items.reduce((a,i)=>(i instanceof q.Name&&(i=s(i)),i instanceof q._Code?a.push(...i._items):a.push(i),a),[]));function s(a){let i=r[a.str];return i===void 0||e[a.str]!==1?a:(delete e[a.str],i)}function n(a){return a instanceof q._Code&&a._items.some(i=>i instanceof q.Name&&e[i.str]===1&&r[i.str]!==void 0)}}o(Re,"optimizeExpr");function _a(t,e){for(let r in e)t[r]=(t[r]||0)-(e[r]||0)}o(_a,"subtractNames");function Ks(t){return typeof t=="boolean"||typeof t=="number"||t===null?!t:(0,q._)`!${mr(t)}`}o(Ks,"not");S.not=Ks;var ga=Fs(S.operators.AND);function $a(...t){return t.reduce(ga)}o($a,"and");S.and=$a;var va=Fs(S.operators.OR);function wa(...t){return t.reduce(va)}o(wa,"or");S.or=wa;function Fs(t){return(e,r)=>e===q.nil?r:r===q.nil?e:(0,q._)`${mr(e)} ${t} ${mr(r)}`}o(Fs,"mappend");function mr(t){return t instanceof q.Name?t:(0,q._)`(${t})`}o(mr,"par")});var j=$(P=>{"use strict";Object.defineProperty(P,"__esModule",{value:!0});P.checkStrictMode=P.getErrorPath=P.Type=P.useFunc=P.setEvaluated=P.evaluatedPropsToName=P.mergeEvaluated=P.eachItem=P.unescapeJsonPointer=P.escapeJsonPointer=P.escapeFragment=P.unescapeFragment=P.schemaRefOrVal=P.schemaHasRulesButRef=P.schemaHasRules=P.checkUnknownRules=P.alwaysValidSchema=P.toHash=void 0;var C=N(),ba=Je();function Ea(t){let e={};for(let r of t)e[r]=!0;return e}o(Ea,"toHash");P.toHash=Ea;function Sa(t,e){return typeof e=="boolean"?e:Object.keys(e).length===0?!0:(xs(t,e),!Gs(e,t.self.RULES.all))}o(Sa,"alwaysValidSchema");P.alwaysValidSchema=Sa;function xs(t,e=t.schema){let{opts:r,self:s}=t;if(!r.strictSchema||typeof e=="boolean")return;let n=s.RULES.keywords;for(let a in e)n[a]||Bs(t,`unknown keyword: "${a}"`)}o(xs,"checkUnknownRules");P.checkUnknownRules=xs;function Gs(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(e[r])return!0;return!1}o(Gs,"schemaHasRules");P.schemaHasRules=Gs;function Pa(t,e){if(typeof t=="boolean")return!t;for(let r in t)if(r!=="$ref"&&e.all[r])return!0;return!1}o(Pa,"schemaHasRulesButRef");P.schemaHasRulesButRef=Pa;function Na({topSchemaRef:t,schemaPath:e},r,s,n){if(!n){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,C._)`${r}`}return(0,C._)`${t}${e}${(0,C.getProperty)(s)}`}o(Na,"schemaRefOrVal");P.schemaRefOrVal=Na;function ka(t){return Js(decodeURIComponent(t))}o(ka,"unescapeFragment");P.unescapeFragment=ka;function qa(t){return encodeURIComponent(_r(t))}o(qa,"escapeFragment");P.escapeFragment=qa;function _r(t){return typeof t=="number"?`${t}`:t.replace(/~/g,"~0").replace(/\//g,"~1")}o(_r,"escapeJsonPointer");P.escapeJsonPointer=_r;function Js(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}o(Js,"unescapeJsonPointer");P.unescapeJsonPointer=Js;function Oa(t,e){if(Array.isArray(t))for(let r of t)e(r);else e(t)}o(Oa,"eachItem");P.eachItem=Oa;function Ls({mergeNames:t,mergeToName:e,mergeValues:r,resultToName:s}){return(n,a,i,c)=>{let u=i===void 0?a:i instanceof C.Name?(a instanceof C.Name?t(n,a,i):e(n,a,i),i):a instanceof C.Name?(e(n,i,a),a):r(a,i);return c===C.Name&&!(u instanceof C.Name)?s(n,u):u}}o(Ls,"makeMergeEvaluated");P.mergeEvaluated={props:Ls({mergeNames:o((t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>{t.if((0,C._)`${e} === true`,()=>t.assign(r,!0),()=>t.assign(r,(0,C._)`${r} || {}`).code((0,C._)`Object.assign(${r}, ${e})`))}),"mergeNames"),mergeToName:o((t,e,r)=>t.if((0,C._)`${r} !== true`,()=>{e===!0?t.assign(r,!0):(t.assign(r,(0,C._)`${r} || {}`),gr(t,r,e))}),"mergeToName"),mergeValues:o((t,e)=>t===!0?!0:{...t,...e},"mergeValues"),resultToName:Ws}),items:Ls({mergeNames:o((t,e,r)=>t.if((0,C._)`${r} !== true && ${e} !== undefined`,()=>t.assign(r,(0,C._)`${e} === true ? true : ${r} > ${e} ? ${r} : ${e}`)),"mergeNames"),mergeToName:o((t,e,r)=>t.if((0,C._)`${r} !== true`,()=>t.assign(r,e===!0?!0:(0,C._)`${r} > ${e} ? ${r} : ${e}`)),"mergeToName"),mergeValues:o((t,e)=>t===!0?!0:Math.max(t,e),"mergeValues"),resultToName:o((t,e)=>t.var("items",e),"resultToName")})};function Ws(t,e){if(e===!0)return t.var("props",!0);let r=t.var("props",(0,C._)`{}`);return e!==void 0&&gr(t,r,e),r}o(Ws,"evaluatedPropsToName");P.evaluatedPropsToName=Ws;function gr(t,e,r){Object.keys(r).forEach(s=>t.assign((0,C._)`${e}${(0,C.getProperty)(s)}`,!0))}o(gr,"setEvaluated");P.setEvaluated=gr;var Hs={};function ja(t,e){return t.scopeValue("func",{ref:e,code:Hs[e.code]||(Hs[e.code]=new ba._Code(e.code))})}o(ja,"useFunc");P.useFunc=ja;var yr;(function(t){t[t.Num=0]="Num",t[t.Str=1]="Str"})(yr||(P.Type=yr={}));function Ra(t,e,r){if(t instanceof C.Name){let s=e===yr.Num;return r?s?(0,C._)`"[" + ${t} + "]"`:(0,C._)`"['" + ${t} + "']"`:s?(0,C._)`"/" + ${t}`:(0,C._)`"/" + ${t}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,C.getProperty)(t).toString():"/"+_r(t)}o(Ra,"getErrorPath");P.getErrorPath=Ra;function Bs(t,e,r=t.opts.strictSchema){if(r){if(e=`strict mode: ${e}`,r===!0)throw new Error(e);t.self.logger.warn(e)}}o(Bs,"checkStrictMode");P.checkStrictMode=Bs});var le=$($r=>{"use strict";Object.defineProperty($r,"__esModule",{value:!0});var U=N(),Ta={data:new U.Name("data"),valCxt:new U.Name("valCxt"),instancePath:new U.Name("instancePath"),parentData:new U.Name("parentData"),parentDataProperty:new U.Name("parentDataProperty"),rootData:new U.Name("rootData"),dynamicAnchors:new U.Name("dynamicAnchors"),vErrors:new U.Name("vErrors"),errors:new U.Name("errors"),this:new U.Name("this"),self:new U.Name("self"),scope:new U.Name("scope"),json:new U.Name("json"),jsonPos:new U.Name("jsonPos"),jsonLen:new U.Name("jsonLen"),jsonPart:new U.Name("jsonPart")};$r.default=Ta});var Ze=$(K=>{"use strict";Object.defineProperty(K,"__esModule",{value:!0});K.extendErrors=K.resetErrorsCount=K.reportExtraError=K.reportError=K.keyword$DataError=K.keywordError=void 0;var R=N(),St=j(),L=le();K.keywordError={message:o(({keyword:t})=>(0,R.str)`must pass "${t}" keyword validation`,"message")};K.keyword$DataError={message:o(({keyword:t,schemaType:e})=>e?(0,R.str)`"${t}" keyword must be ${e} ($data)`:(0,R.str)`"${t}" keyword is invalid ($data)`,"message")};function Ia(t,e=K.keywordError,r,s){let{it:n}=t,{gen:a,compositeRule:i,allErrors:c}=n,u=Ys(t,e,r);s??(i||c)?Qs(a,u):Xs(n,(0,R._)`[${u}]`)}o(Ia,"reportError");K.reportError=Ia;function Ca(t,e=K.keywordError,r){let{it:s}=t,{gen:n,compositeRule:a,allErrors:i}=s,c=Ys(t,e,r);Qs(n,c),a||i||Xs(s,L.default.vErrors)}o(Ca,"reportExtraError");K.reportExtraError=Ca;function Ma(t,e){t.assign(L.default.errors,e),t.if((0,R._)`${L.default.vErrors} !== null`,()=>t.if(e,()=>t.assign((0,R._)`${L.default.vErrors}.length`,e),()=>t.assign(L.default.vErrors,null)))}o(Ma,"resetErrorsCount");K.resetErrorsCount=Ma;function Aa({gen:t,keyword:e,schemaValue:r,data:s,errsCount:n,it:a}){if(n===void 0)throw new Error("ajv implementation error");let i=t.name("err");t.forRange("i",n,L.default.errors,c=>{t.const(i,(0,R._)`${L.default.vErrors}[${c}]`),t.if((0,R._)`${i}.instancePath === undefined`,()=>t.assign((0,R._)`${i}.instancePath`,(0,R.strConcat)(L.default.instancePath,a.errorPath))),t.assign((0,R._)`${i}.schemaPath`,(0,R.str)`${a.errSchemaPath}/${e}`),a.opts.verbose&&(t.assign((0,R._)`${i}.schema`,r),t.assign((0,R._)`${i}.data`,s))})}o(Aa,"extendErrors");K.extendErrors=Aa;function Qs(t,e){let r=t.const("err",e);t.if((0,R._)`${L.default.vErrors} === null`,()=>t.assign(L.default.vErrors,(0,R._)`[${r}]`),(0,R._)`${L.default.vErrors}.push(${r})`),t.code((0,R._)`${L.default.errors}++`)}o(Qs,"addError");function Xs(t,e){let{gen:r,validateName:s,schemaEnv:n}=t;n.$async?r.throw((0,R._)`new ${t.ValidationError}(${e})`):(r.assign((0,R._)`${s}.errors`,e),r.return(!1))}o(Xs,"returnErrors");var Ee={keyword:new R.Name("keyword"),schemaPath:new R.Name("schemaPath"),params:new R.Name("params"),propertyName:new R.Name("propertyName"),message:new R.Name("message"),schema:new R.Name("schema"),parentSchema:new R.Name("parentSchema")};function Ys(t,e,r){let{createErrors:s}=t.it;return s===!1?(0,R._)`{}`:Da(t,e,r)}o(Ys,"errorObjectCode");function Da(t,e,r={}){let{gen:s,it:n}=t,a=[Va(n,r),za(t,r)];return Ua(t,e,a),s.object(...a)}o(Da,"errorObject");function Va({errorPath:t},{instancePath:e}){let r=e?(0,R.str)`${t}${(0,St.getErrorPath)(e,St.Type.Str)}`:t;return[L.default.instancePath,(0,R.strConcat)(L.default.instancePath,r)]}o(Va,"errorInstancePath");function za({keyword:t,it:{errSchemaPath:e}},{schemaPath:r,parentSchema:s}){let n=s?e:(0,R.str)`${e}/${t}`;return r&&(n=(0,R.str)`${n}${(0,St.getErrorPath)(r,St.Type.Str)}`),[Ee.schemaPath,n]}o(za,"errorSchemaPath");function Ua(t,{params:e,message:r},s){let{keyword:n,data:a,schemaValue:i,it:c}=t,{opts:u,propertyName:d,topSchemaRef:l,schemaPath:f}=c;s.push([Ee.keyword,n],[Ee.params,typeof e=="function"?e(t):e||(0,R._)`{}`]),u.messages&&s.push([Ee.message,typeof r=="function"?r(t):r]),u.verbose&&s.push([Ee.schema,i],[Ee.parentSchema,(0,R._)`${l}${f}`],[L.default.data,a]),d&&s.push([Ee.propertyName,d])}o(Ua,"extraErrorProps")});var en=$(Te=>{"use strict";Object.defineProperty(Te,"__esModule",{value:!0});Te.boolOrEmptySchema=Te.topBoolOrEmptySchema=void 0;var Ka=Ze(),Fa=N(),La=le(),Ha={message:"boolean schema is false"};function xa(t){let{gen:e,schema:r,validateName:s}=t;r===!1?Zs(t,!1):typeof r=="object"&&r.$async===!0?e.return(La.default.data):(e.assign((0,Fa._)`${s}.errors`,null),e.return(!0))}o(xa,"topBoolOrEmptySchema");Te.topBoolOrEmptySchema=xa;function Ga(t,e){let{gen:r,schema:s}=t;s===!1?(r.var(e,!1),Zs(t)):r.var(e,!0)}o(Ga,"boolOrEmptySchema");Te.boolOrEmptySchema=Ga;function Zs(t,e){let{gen:r,data:s}=t,n={gen:r,keyword:"false schema",data:s,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:t};(0,Ka.reportError)(n,Ha,void 0,e)}o(Zs,"falseSchemaError")});var vr=$(Ie=>{"use strict";Object.defineProperty(Ie,"__esModule",{value:!0});Ie.getRules=Ie.isJSONType=void 0;var Ja=["string","number","integer","boolean","null","object","array"],Wa=new Set(Ja);function Ba(t){return typeof t=="string"&&Wa.has(t)}o(Ba,"isJSONType");Ie.isJSONType=Ba;function Qa(){let t={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...t,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},t.number,t.string,t.array,t.object],post:{rules:[]},all:{},keywords:{}}}o(Qa,"getRules");Ie.getRules=Qa});var wr=$(he=>{"use strict";Object.defineProperty(he,"__esModule",{value:!0});he.shouldUseRule=he.shouldUseGroup=he.schemaHasRulesForType=void 0;function Xa({schema:t,self:e},r){let s=e.RULES.types[r];return s&&s!==!0&&tn(t,s)}o(Xa,"schemaHasRulesForType");he.schemaHasRulesForType=Xa;function tn(t,e){return e.rules.some(r=>rn(t,r))}o(tn,"shouldUseGroup");he.shouldUseGroup=tn;function rn(t,e){var r;return t[e.keyword]!==void 0||((r=e.definition.implements)===null||r===void 0?void 0:r.some(s=>t[s]!==void 0))}o(rn,"shouldUseRule");he.shouldUseRule=rn});var et=$(F=>{"use strict";Object.defineProperty(F,"__esModule",{value:!0});F.reportTypeError=F.checkDataTypes=F.checkDataType=F.coerceAndCheckDataType=F.getJSONTypes=F.getSchemaTypes=F.DataType=void 0;var Ya=vr(),Za=wr(),ei=Ze(),E=N(),sn=j(),Ce;(function(t){t[t.Correct=0]="Correct",t[t.Wrong=1]="Wrong"})(Ce||(F.DataType=Ce={}));function ti(t){let e=nn(t.type);if(e.includes("null")){if(t.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!e.length&&t.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');t.nullable===!0&&e.push("null")}return e}o(ti,"getSchemaTypes");F.getSchemaTypes=ti;function nn(t){let e=Array.isArray(t)?t:t?[t]:[];if(e.every(Ya.isJSONType))return e;throw new Error("type must be JSONType or JSONType[]: "+e.join(","))}o(nn,"getJSONTypes");F.getJSONTypes=nn;function ri(t,e){let{gen:r,data:s,opts:n}=t,a=si(e,n.coerceTypes),i=e.length>0&&!(a.length===0&&e.length===1&&(0,Za.schemaHasRulesForType)(t,e[0]));if(i){let c=Er(e,s,n.strictNumbers,Ce.Wrong);r.if(c,()=>{a.length?ni(t,e,a):Sr(t)})}return i}o(ri,"coerceAndCheckDataType");F.coerceAndCheckDataType=ri;var on=new Set(["string","number","integer","boolean","null"]);function si(t,e){return e?t.filter(r=>on.has(r)||e==="array"&&r==="array"):[]}o(si,"coerceToTypes");function ni(t,e,r){let{gen:s,data:n,opts:a}=t,i=s.let("dataType",(0,E._)`typeof ${n}`),c=s.let("coerced",(0,E._)`undefined`);a.coerceTypes==="array"&&s.if((0,E._)`${i} == 'object' && Array.isArray(${n}) && ${n}.length == 1`,()=>s.assign(n,(0,E._)`${n}[0]`).assign(i,(0,E._)`typeof ${n}`).if(Er(e,n,a.strictNumbers),()=>s.assign(c,n))),s.if((0,E._)`${c} !== undefined`);for(let d of r)(on.has(d)||d==="array"&&a.coerceTypes==="array")&&u(d);s.else(),Sr(t),s.endIf(),s.if((0,E._)`${c} !== undefined`,()=>{s.assign(n,c),oi(t,c)});function u(d){switch(d){case"string":s.elseIf((0,E._)`${i} == "number" || ${i} == "boolean"`).assign(c,(0,E._)`"" + ${n}`).elseIf((0,E._)`${n} === null`).assign(c,(0,E._)`""`);return;case"number":s.elseIf((0,E._)`${i} == "boolean" || ${n} === null
4
+ || (${i} == "string" && ${n} && ${n} == +${n})`).assign(c,(0,E._)`+${n}`);return;case"integer":s.elseIf((0,E._)`${i} === "boolean" || ${n} === null
5
+ || (${i} === "string" && ${n} && ${n} == +${n} && !(${n} % 1))`).assign(c,(0,E._)`+${n}`);return;case"boolean":s.elseIf((0,E._)`${n} === "false" || ${n} === 0 || ${n} === null`).assign(c,!1).elseIf((0,E._)`${n} === "true" || ${n} === 1`).assign(c,!0);return;case"null":s.elseIf((0,E._)`${n} === "" || ${n} === 0 || ${n} === false`),s.assign(c,null);return;case"array":s.elseIf((0,E._)`${i} === "string" || ${i} === "number"
6
+ || ${i} === "boolean" || ${n} === null`).assign(c,(0,E._)`[${n}]`)}}o(u,"coerceSpecificType")}o(ni,"coerceData");function oi({gen:t,parentData:e,parentDataProperty:r},s){t.if((0,E._)`${e} !== undefined`,()=>t.assign((0,E._)`${e}[${r}]`,s))}o(oi,"assignParentData");function br(t,e,r,s=Ce.Correct){let n=s===Ce.Correct?E.operators.EQ:E.operators.NEQ,a;switch(t){case"null":return(0,E._)`${e} ${n} null`;case"array":a=(0,E._)`Array.isArray(${e})`;break;case"object":a=(0,E._)`${e} && typeof ${e} == "object" && !Array.isArray(${e})`;break;case"integer":a=i((0,E._)`!(${e} % 1) && !isNaN(${e})`);break;case"number":a=i();break;default:return(0,E._)`typeof ${e} ${n} ${t}`}return s===Ce.Correct?a:(0,E.not)(a);function i(c=E.nil){return(0,E.and)((0,E._)`typeof ${e} == "number"`,c,r?(0,E._)`isFinite(${e})`:E.nil)}}o(br,"checkDataType");F.checkDataType=br;function Er(t,e,r,s){if(t.length===1)return br(t[0],e,r,s);let n,a=(0,sn.toHash)(t);if(a.array&&a.object){let i=(0,E._)`typeof ${e} != "object"`;n=a.null?i:(0,E._)`!${e} || ${i}`,delete a.null,delete a.array,delete a.object}else n=E.nil;a.number&&delete a.integer;for(let i in a)n=(0,E.and)(n,br(i,e,r,s));return n}o(Er,"checkDataTypes");F.checkDataTypes=Er;var ai={message:o(({schema:t})=>`must be ${t}`,"message"),params:o(({schema:t,schemaValue:e})=>typeof t=="string"?(0,E._)`{type: ${t}}`:(0,E._)`{type: ${e}}`,"params")};function Sr(t){let e=ii(t);(0,ei.reportError)(e,ai)}o(Sr,"reportTypeError");F.reportTypeError=Sr;function ii(t){let{gen:e,data:r,schema:s}=t,n=(0,sn.schemaRefOrVal)(t,s,"type");return{gen:e,keyword:"type",data:r,schema:s.type,schemaCode:n,schemaValue:n,parentSchema:s,params:{},it:t}}o(ii,"getTypeErrorContext")});var cn=$(Pt=>{"use strict";Object.defineProperty(Pt,"__esModule",{value:!0});Pt.assignDefaults=void 0;var Me=N(),ci=j();function ui(t,e){let{properties:r,items:s}=t.schema;if(e==="object"&&r)for(let n in r)an(t,n,r[n].default);else e==="array"&&Array.isArray(s)&&s.forEach((n,a)=>an(t,a,n.default))}o(ui,"assignDefaults");Pt.assignDefaults=ui;function an(t,e,r){let{gen:s,compositeRule:n,data:a,opts:i}=t;if(r===void 0)return;let c=(0,Me._)`${a}${(0,Me.getProperty)(e)}`;if(n){(0,ci.checkStrictMode)(t,`default is ignored for: ${c}`);return}let u=(0,Me._)`${c} === undefined`;i.useDefaults==="empty"&&(u=(0,Me._)`${u} || ${c} === null || ${c} === ""`),s.if(u,(0,Me._)`${c} = ${(0,Me.stringify)(r)}`)}o(an,"assignDefault")});var Q=$(I=>{"use strict";Object.defineProperty(I,"__esModule",{value:!0});I.validateUnion=I.validateArray=I.usePattern=I.callValidateCode=I.schemaProperties=I.allSchemaProperties=I.noPropertyInData=I.propertyInData=I.isOwnProperty=I.hasPropFunc=I.reportMissingProp=I.checkMissingProp=I.checkReportMissingProp=void 0;var A=N(),Pr=j(),pe=le(),li=j();function di(t,e){let{gen:r,data:s,it:n}=t;r.if(kr(r,s,e,n.opts.ownProperties),()=>{t.setParams({missingProperty:(0,A._)`${e}`},!0),t.error()})}o(di,"checkReportMissingProp");I.checkReportMissingProp=di;function fi({gen:t,data:e,it:{opts:r}},s,n){return(0,A.or)(...s.map(a=>(0,A.and)(kr(t,e,a,r.ownProperties),(0,A._)`${n} = ${a}`)))}o(fi,"checkMissingProp");I.checkMissingProp=fi;function hi(t,e){t.setParams({missingProperty:e},!0),t.error()}o(hi,"reportMissingProp");I.reportMissingProp=hi;function un(t){return t.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,A._)`Object.prototype.hasOwnProperty`})}o(un,"hasPropFunc");I.hasPropFunc=un;function Nr(t,e,r){return(0,A._)`${un(t)}.call(${e}, ${r})`}o(Nr,"isOwnProperty");I.isOwnProperty=Nr;function pi(t,e,r,s){let n=(0,A._)`${e}${(0,A.getProperty)(r)} !== undefined`;return s?(0,A._)`${n} && ${Nr(t,e,r)}`:n}o(pi,"propertyInData");I.propertyInData=pi;function kr(t,e,r,s){let n=(0,A._)`${e}${(0,A.getProperty)(r)} === undefined`;return s?(0,A.or)(n,(0,A.not)(Nr(t,e,r))):n}o(kr,"noPropertyInData");I.noPropertyInData=kr;function ln(t){return t?Object.keys(t).filter(e=>e!=="__proto__"):[]}o(ln,"allSchemaProperties");I.allSchemaProperties=ln;function mi(t,e){return ln(e).filter(r=>!(0,Pr.alwaysValidSchema)(t,e[r]))}o(mi,"schemaProperties");I.schemaProperties=mi;function yi({schemaCode:t,data:e,it:{gen:r,topSchemaRef:s,schemaPath:n,errorPath:a},it:i},c,u,d){let l=d?(0,A._)`${t}, ${e}, ${s}${n}`:e,f=[[pe.default.instancePath,(0,A.strConcat)(pe.default.instancePath,a)],[pe.default.parentData,i.parentData],[pe.default.parentDataProperty,i.parentDataProperty],[pe.default.rootData,pe.default.rootData]];i.opts.dynamicRef&&f.push([pe.default.dynamicAnchors,pe.default.dynamicAnchors]);let _=(0,A._)`${l}, ${r.object(...f)}`;return u!==A.nil?(0,A._)`${c}.call(${u}, ${_})`:(0,A._)`${c}(${_})`}o(yi,"callValidateCode");I.callValidateCode=yi;var _i=(0,A._)`new RegExp`;function gi({gen:t,it:{opts:e}},r){let s=e.unicodeRegExp?"u":"",{regExp:n}=e.code,a=n(r,s);return t.scopeValue("pattern",{key:a.toString(),ref:a,code:(0,A._)`${n.code==="new RegExp"?_i:(0,li.useFunc)(t,n)}(${r}, ${s})`})}o(gi,"usePattern");I.usePattern=gi;function $i(t){let{gen:e,data:r,keyword:s,it:n}=t,a=e.name("valid");if(n.allErrors){let c=e.let("valid",!0);return i(()=>e.assign(c,!1)),c}return e.var(a,!0),i(()=>e.break()),a;function i(c){let u=e.const("len",(0,A._)`${r}.length`);e.forRange("i",0,u,d=>{t.subschema({keyword:s,dataProp:d,dataPropType:Pr.Type.Num},a),e.if((0,A.not)(a),c)})}o(i,"validateItems")}o($i,"validateArray");I.validateArray=$i;function vi(t){let{gen:e,schema:r,keyword:s,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(u=>(0,Pr.alwaysValidSchema)(n,u))&&!n.opts.unevaluated)return;let i=e.let("valid",!1),c=e.name("_valid");e.block(()=>r.forEach((u,d)=>{let l=t.subschema({keyword:s,schemaProp:d,compositeRule:!0},c);e.assign(i,(0,A._)`${i} || ${c}`),t.mergeValidEvaluated(l,c)||e.if((0,A.not)(i))})),t.result(i,()=>t.reset(),()=>t.error(!0))}o(vi,"validateUnion");I.validateUnion=vi});var hn=$(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.validateKeywordUsage=ne.validSchemaType=ne.funcKeywordCode=ne.macroKeywordCode=void 0;var H=N(),Se=le(),wi=Q(),bi=Ze();function Ei(t,e){let{gen:r,keyword:s,schema:n,parentSchema:a,it:i}=t,c=e.macro.call(i.self,n,a,i),u=fn(r,s,c);i.opts.validateSchema!==!1&&i.self.validateSchema(c,!0);let d=r.name("valid");t.subschema({schema:c,schemaPath:H.nil,errSchemaPath:`${i.errSchemaPath}/${s}`,topSchemaRef:u,compositeRule:!0},d),t.pass(d,()=>t.error(!0))}o(Ei,"macroKeywordCode");ne.macroKeywordCode=Ei;function Si(t,e){var r;let{gen:s,keyword:n,schema:a,parentSchema:i,$data:c,it:u}=t;Ni(u,e);let d=!c&&e.compile?e.compile.call(u.self,a,i,u):e.validate,l=fn(s,n,d),f=s.let("valid");t.block$data(f,_),t.ok((r=e.valid)!==null&&r!==void 0?r:f);function _(){if(e.errors===!1)h(),e.modifying&&dn(t),m(()=>t.error());else{let g=e.async?y():p();e.modifying&&dn(t),m(()=>Pi(t,g))}}o(_,"validateKeyword");function y(){let g=s.let("ruleErrs",null);return s.try(()=>h((0,H._)`await `),O=>s.assign(f,!1).if((0,H._)`${O} instanceof ${u.ValidationError}`,()=>s.assign(g,(0,H._)`${O}.errors`),()=>s.throw(O))),g}o(y,"validateAsync");function p(){let g=(0,H._)`${l}.errors`;return s.assign(g,null),h(H.nil),g}o(p,"validateSync");function h(g=e.async?(0,H._)`await `:H.nil){let O=u.opts.passContext?Se.default.this:Se.default.self,k=!("compile"in e&&!c||e.schema===!1);s.assign(f,(0,H._)`${g}${(0,wi.callValidateCode)(t,l,O,k)}`,e.modifying)}o(h,"assignValid");function m(g){var O;s.if((0,H.not)((O=e.valid)!==null&&O!==void 0?O:f),g)}o(m,"reportErrs")}o(Si,"funcKeywordCode");ne.funcKeywordCode=Si;function dn(t){let{gen:e,data:r,it:s}=t;e.if(s.parentData,()=>e.assign(r,(0,H._)`${s.parentData}[${s.parentDataProperty}]`))}o(dn,"modifyData");function Pi(t,e){let{gen:r}=t;r.if((0,H._)`Array.isArray(${e})`,()=>{r.assign(Se.default.vErrors,(0,H._)`${Se.default.vErrors} === null ? ${e} : ${Se.default.vErrors}.concat(${e})`).assign(Se.default.errors,(0,H._)`${Se.default.vErrors}.length`),(0,bi.extendErrors)(t)},()=>t.error())}o(Pi,"addErrs");function Ni({schemaEnv:t},e){if(e.async&&!t.$async)throw new Error("async keyword in sync schema")}o(Ni,"checkAsyncKeyword");function fn(t,e,r){if(r===void 0)throw new Error(`keyword "${e}" failed to compile`);return t.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,H.stringify)(r)})}o(fn,"useKeyword");function ki(t,e,r=!1){return!e.length||e.some(s=>s==="array"?Array.isArray(t):s==="object"?t&&typeof t=="object"&&!Array.isArray(t):typeof t==s||r&&typeof t>"u")}o(ki,"validSchemaType");ne.validSchemaType=ki;function qi({schema:t,opts:e,self:r,errSchemaPath:s},n,a){if(Array.isArray(n.keyword)?!n.keyword.includes(a):n.keyword!==a)throw new Error("ajv implementation error");let i=n.dependencies;if(i?.some(c=>!Object.prototype.hasOwnProperty.call(t,c)))throw new Error(`parent schema must have dependencies of ${a}: ${i.join(",")}`);if(n.validateSchema&&!n.validateSchema(t[a])){let u=`keyword "${a}" value is invalid at path "${s}": `+r.errorsText(n.validateSchema.errors);if(e.validateSchema==="log")r.logger.error(u);else throw new Error(u)}}o(qi,"validateKeywordUsage");ne.validateKeywordUsage=qi});var mn=$(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});me.extendSubschemaMode=me.extendSubschemaData=me.getSubschema=void 0;var oe=N(),pn=j();function Oi(t,{keyword:e,schemaProp:r,schema:s,schemaPath:n,errSchemaPath:a,topSchemaRef:i}){if(e!==void 0&&s!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){let c=t.schema[e];return r===void 0?{schema:c,schemaPath:(0,oe._)`${t.schemaPath}${(0,oe.getProperty)(e)}`,errSchemaPath:`${t.errSchemaPath}/${e}`}:{schema:c[r],schemaPath:(0,oe._)`${t.schemaPath}${(0,oe.getProperty)(e)}${(0,oe.getProperty)(r)}`,errSchemaPath:`${t.errSchemaPath}/${e}/${(0,pn.escapeFragment)(r)}`}}if(s!==void 0){if(n===void 0||a===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:n,topSchemaRef:i,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')}o(Oi,"getSubschema");me.getSubschema=Oi;function ji(t,e,{dataProp:r,dataPropType:s,data:n,dataTypes:a,propertyName:i}){if(n!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:c}=e;if(r!==void 0){let{errorPath:d,dataPathArr:l,opts:f}=e,_=c.let("data",(0,oe._)`${e.data}${(0,oe.getProperty)(r)}`,!0);u(_),t.errorPath=(0,oe.str)`${d}${(0,pn.getErrorPath)(r,s,f.jsPropertySyntax)}`,t.parentDataProperty=(0,oe._)`${r}`,t.dataPathArr=[...l,t.parentDataProperty]}if(n!==void 0){let d=n instanceof oe.Name?n:c.let("data",n,!0);u(d),i!==void 0&&(t.propertyName=i)}a&&(t.dataTypes=a);function u(d){t.data=d,t.dataLevel=e.dataLevel+1,t.dataTypes=[],e.definedProperties=new Set,t.parentData=e.data,t.dataNames=[...e.dataNames,d]}o(u,"dataContextProps")}o(ji,"extendSubschemaData");me.extendSubschemaData=ji;function Ri(t,{jtdDiscriminator:e,jtdMetadata:r,compositeRule:s,createErrors:n,allErrors:a}){s!==void 0&&(t.compositeRule=s),n!==void 0&&(t.createErrors=n),a!==void 0&&(t.allErrors=a),t.jtdDiscriminator=e,t.jtdMetadata=r}o(Ri,"extendSubschemaMode");me.extendSubschemaMode=Ri});var qr=$((pf,yn)=>{"use strict";yn.exports=o(function t(e,r){if(e===r)return!0;if(e&&r&&typeof e=="object"&&typeof r=="object"){if(e.constructor!==r.constructor)return!1;var s,n,a;if(Array.isArray(e)){if(s=e.length,s!=r.length)return!1;for(n=s;n--!==0;)if(!t(e[n],r[n]))return!1;return!0}if(e.constructor===RegExp)return e.source===r.source&&e.flags===r.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===r.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===r.toString();if(a=Object.keys(e),s=a.length,s!==Object.keys(r).length)return!1;for(n=s;n--!==0;)if(!Object.prototype.hasOwnProperty.call(r,a[n]))return!1;for(n=s;n--!==0;){var i=a[n];if(!t(e[i],r[i]))return!1}return!0}return e!==e&&r!==r},"equal")});var gn=$((yf,_n)=>{"use strict";var ye=_n.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var s=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};Nt(e,s,n,t,"",t)};ye.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};ye.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};ye.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};ye.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Nt(t,e,r,s,n,a,i,c,u,d){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,a,i,c,u,d);for(var l in s){var f=s[l];if(Array.isArray(f)){if(l in ye.arrayKeywords)for(var _=0;_<f.length;_++)Nt(t,e,r,f[_],n+"/"+l+"/"+_,a,n,l,s,_)}else if(l in ye.propsKeywords){if(f&&typeof f=="object")for(var y in f)Nt(t,e,r,f[y],n+"/"+l+"/"+Ti(y),a,n,l,s,y)}else(l in ye.keywords||t.allKeys&&!(l in ye.skipKeywords))&&Nt(t,e,r,f,n+"/"+l,a,n,l,s)}r(s,n,a,i,c,u,d)}}o(Nt,"_traverse");function Ti(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}o(Ti,"escapeJsonPtr")});var tt=$(J=>{"use strict";Object.defineProperty(J,"__esModule",{value:!0});J.getSchemaRefs=J.resolveUrl=J.normalizeId=J._getFullPath=J.getFullPath=J.inlineRef=void 0;var Ii=j(),Ci=qr(),Mi=gn(),Ai=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function Di(t,e=!0){return typeof t=="boolean"?!0:e===!0?!Or(t):e?$n(t)<=e:!1}o(Di,"inlineRef");J.inlineRef=Di;var Vi=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function Or(t){for(let e in t){if(Vi.has(e))return!0;let r=t[e];if(Array.isArray(r)&&r.some(Or)||typeof r=="object"&&Or(r))return!0}return!1}o(Or,"hasRef");function $n(t){let e=0;for(let r in t){if(r==="$ref")return 1/0;if(e++,!Ai.has(r)&&(typeof t[r]=="object"&&(0,Ii.eachItem)(t[r],s=>e+=$n(s)),e===1/0))return 1/0}return e}o($n,"countKeys");function vn(t,e="",r){r!==!1&&(e=Ae(e));let s=t.parse(e);return wn(t,s)}o(vn,"getFullPath");J.getFullPath=vn;function wn(t,e){return t.serialize(e).split("#")[0]+"#"}o(wn,"_getFullPath");J._getFullPath=wn;var zi=/#\/?$/;function Ae(t){return t?t.replace(zi,""):""}o(Ae,"normalizeId");J.normalizeId=Ae;function Ui(t,e,r){return r=Ae(r),t.resolve(e,r)}o(Ui,"resolveUrl");J.resolveUrl=Ui;var Ki=/^[a-z_][-a-z0-9._]*$/i;function Fi(t,e){if(typeof t=="boolean")return{};let{schemaId:r,uriResolver:s}=this.opts,n=Ae(t[r]||e),a={"":n},i=vn(s,n,!1),c={},u=new Set;return Mi(t,{allKeys:!0},(f,_,y,p)=>{if(p===void 0)return;let h=i+_,m=a[p];typeof f[r]=="string"&&(m=g.call(this,f[r])),O.call(this,f.$anchor),O.call(this,f.$dynamicAnchor),a[_]=m;function g(k){let M=this.opts.uriResolver.resolve;if(k=Ae(m?M(m,k):k),u.has(k))throw l(k);u.add(k);let b=this.refs[k];return typeof b=="string"&&(b=this.refs[b]),typeof b=="object"?d(f,b.schema,k):k!==Ae(h)&&(k[0]==="#"?(d(f,c[k],k),c[k]=f):this.refs[k]=h),k}o(g,"addRef");function O(k){if(typeof k=="string"){if(!Ki.test(k))throw new Error(`invalid anchor "${k}"`);g.call(this,`#${k}`)}}o(O,"addAnchor")}),c;function d(f,_,y){if(_!==void 0&&!Ci(f,_))throw l(y)}o(d,"checkAmbiguosRef");function l(f){return new Error(`reference "${f}" resolves to more than one schema`)}o(l,"ambiguos")}o(Fi,"getSchemaRefs");J.getSchemaRefs=Fi});var Ot=$(_e=>{"use strict";Object.defineProperty(_e,"__esModule",{value:!0});_e.getData=_e.KeywordCxt=_e.validateFunctionCode=void 0;var Nn=en(),bn=et(),Rr=wr(),kt=et(),Li=cn(),st=hn(),jr=mn(),v=N(),w=le(),Hi=tt(),de=j(),rt=Ze();function xi(t){if(On(t)&&(jn(t),qn(t))){Wi(t);return}kn(t,()=>(0,Nn.topBoolOrEmptySchema)(t))}o(xi,"validateFunctionCode");_e.validateFunctionCode=xi;function kn({gen:t,validateName:e,schema:r,schemaEnv:s,opts:n},a){n.code.es5?t.func(e,(0,v._)`${w.default.data}, ${w.default.valCxt}`,s.$async,()=>{t.code((0,v._)`"use strict"; ${En(r,n)}`),Ji(t,n),t.code(a)}):t.func(e,(0,v._)`${w.default.data}, ${Gi(n)}`,s.$async,()=>t.code(En(r,n)).code(a))}o(kn,"validateFunction");function Gi(t){return(0,v._)`{${w.default.instancePath}="", ${w.default.parentData}, ${w.default.parentDataProperty}, ${w.default.rootData}=${w.default.data}${t.dynamicRef?(0,v._)`, ${w.default.dynamicAnchors}={}`:v.nil}}={}`}o(Gi,"destructureValCxt");function Ji(t,e){t.if(w.default.valCxt,()=>{t.var(w.default.instancePath,(0,v._)`${w.default.valCxt}.${w.default.instancePath}`),t.var(w.default.parentData,(0,v._)`${w.default.valCxt}.${w.default.parentData}`),t.var(w.default.parentDataProperty,(0,v._)`${w.default.valCxt}.${w.default.parentDataProperty}`),t.var(w.default.rootData,(0,v._)`${w.default.valCxt}.${w.default.rootData}`),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`${w.default.valCxt}.${w.default.dynamicAnchors}`)},()=>{t.var(w.default.instancePath,(0,v._)`""`),t.var(w.default.parentData,(0,v._)`undefined`),t.var(w.default.parentDataProperty,(0,v._)`undefined`),t.var(w.default.rootData,w.default.data),e.dynamicRef&&t.var(w.default.dynamicAnchors,(0,v._)`{}`)})}o(Ji,"destructureValCxtES5");function Wi(t){let{schema:e,opts:r,gen:s}=t;kn(t,()=>{r.$comment&&e.$comment&&Tn(t),Zi(t),s.let(w.default.vErrors,null),s.let(w.default.errors,0),r.unevaluated&&Bi(t),Rn(t),rc(t)})}o(Wi,"topSchemaObjCode");function Bi(t){let{gen:e,validateName:r}=t;t.evaluated=e.const("evaluated",(0,v._)`${r}.evaluated`),e.if((0,v._)`${t.evaluated}.dynamicProps`,()=>e.assign((0,v._)`${t.evaluated}.props`,(0,v._)`undefined`)),e.if((0,v._)`${t.evaluated}.dynamicItems`,()=>e.assign((0,v._)`${t.evaluated}.items`,(0,v._)`undefined`))}o(Bi,"resetEvaluated");function En(t,e){let r=typeof t=="object"&&t[e.schemaId];return r&&(e.code.source||e.code.process)?(0,v._)`/*# sourceURL=${r} */`:v.nil}o(En,"funcSourceUrl");function Qi(t,e){if(On(t)&&(jn(t),qn(t))){Xi(t,e);return}(0,Nn.boolOrEmptySchema)(t,e)}o(Qi,"subschemaCode");function qn({schema:t,self:e}){if(typeof t=="boolean")return!t;for(let r in t)if(e.RULES.all[r])return!0;return!1}o(qn,"schemaCxtHasRules");function On(t){return typeof t.schema!="boolean"}o(On,"isSchemaObj");function Xi(t,e){let{schema:r,gen:s,opts:n}=t;n.$comment&&r.$comment&&Tn(t),ec(t),tc(t);let a=s.const("_errs",w.default.errors);Rn(t,a),s.var(e,(0,v._)`${a} === ${w.default.errors}`)}o(Xi,"subSchemaObjCode");function jn(t){(0,de.checkUnknownRules)(t),Yi(t)}o(jn,"checkKeywords");function Rn(t,e){if(t.opts.jtd)return Sn(t,[],!1,e);let r=(0,bn.getSchemaTypes)(t.schema),s=(0,bn.coerceAndCheckDataType)(t,r);Sn(t,r,!s,e)}o(Rn,"typeAndKeywords");function Yi(t){let{schema:e,errSchemaPath:r,opts:s,self:n}=t;e.$ref&&s.ignoreKeywordsWithRef&&(0,de.schemaHasRulesButRef)(e,n.RULES)&&n.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}o(Yi,"checkRefsAndKeywords");function Zi(t){let{schema:e,opts:r}=t;e.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,de.checkStrictMode)(t,"default is ignored in the schema root")}o(Zi,"checkNoDefault");function ec(t){let e=t.schema[t.opts.schemaId];e&&(t.baseId=(0,Hi.resolveUrl)(t.opts.uriResolver,t.baseId,e))}o(ec,"updateContext");function tc(t){if(t.schema.$async&&!t.schemaEnv.$async)throw new Error("async schema in sync schema")}o(tc,"checkAsyncSchema");function Tn({gen:t,schemaEnv:e,schema:r,errSchemaPath:s,opts:n}){let a=r.$comment;if(n.$comment===!0)t.code((0,v._)`${w.default.self}.logger.log(${a})`);else if(typeof n.$comment=="function"){let i=(0,v.str)`${s}/$comment`,c=t.scopeValue("root",{ref:e.root});t.code((0,v._)`${w.default.self}.opts.$comment(${a}, ${i}, ${c}.schema)`)}}o(Tn,"commentKeyword");function rc(t){let{gen:e,schemaEnv:r,validateName:s,ValidationError:n,opts:a}=t;r.$async?e.if((0,v._)`${w.default.errors} === 0`,()=>e.return(w.default.data),()=>e.throw((0,v._)`new ${n}(${w.default.vErrors})`)):(e.assign((0,v._)`${s}.errors`,w.default.vErrors),a.unevaluated&&sc(t),e.return((0,v._)`${w.default.errors} === 0`))}o(rc,"returnResults");function sc({gen:t,evaluated:e,props:r,items:s}){r instanceof v.Name&&t.assign((0,v._)`${e}.props`,r),s instanceof v.Name&&t.assign((0,v._)`${e}.items`,s)}o(sc,"assignEvaluated");function Sn(t,e,r,s){let{gen:n,schema:a,data:i,allErrors:c,opts:u,self:d}=t,{RULES:l}=d;if(a.$ref&&(u.ignoreKeywordsWithRef||!(0,de.schemaHasRulesButRef)(a,l))){n.block(()=>Cn(t,"$ref",l.all.$ref.definition));return}u.jtd||nc(t,e),n.block(()=>{for(let _ of l.rules)f(_);f(l.post)});function f(_){(0,Rr.shouldUseGroup)(a,_)&&(_.type?(n.if((0,kt.checkDataType)(_.type,i,u.strictNumbers)),Pn(t,_),e.length===1&&e[0]===_.type&&r&&(n.else(),(0,kt.reportTypeError)(t)),n.endIf()):Pn(t,_),c||n.if((0,v._)`${w.default.errors} === ${s||0}`))}o(f,"groupKeywords")}o(Sn,"schemaKeywords");function Pn(t,e){let{gen:r,schema:s,opts:{useDefaults:n}}=t;n&&(0,Li.assignDefaults)(t,e.type),r.block(()=>{for(let a of e.rules)(0,Rr.shouldUseRule)(s,a)&&Cn(t,a.keyword,a.definition,e.type)})}o(Pn,"iterateKeywords");function nc(t,e){t.schemaEnv.meta||!t.opts.strictTypes||(oc(t,e),t.opts.allowUnionTypes||ac(t,e),ic(t,t.dataTypes))}o(nc,"checkStrictTypes");function oc(t,e){if(e.length){if(!t.dataTypes.length){t.dataTypes=e;return}e.forEach(r=>{In(t.dataTypes,r)||Tr(t,`type "${r}" not allowed by context "${t.dataTypes.join(",")}"`)}),uc(t,e)}}o(oc,"checkContextTypes");function ac(t,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Tr(t,"use allowUnionTypes to allow union type keyword")}o(ac,"checkMultipleTypes");function ic(t,e){let r=t.self.RULES.all;for(let s in r){let n=r[s];if(typeof n=="object"&&(0,Rr.shouldUseRule)(t.schema,n)){let{type:a}=n.definition;a.length&&!a.some(i=>cc(e,i))&&Tr(t,`missing type "${a.join(",")}" for keyword "${s}"`)}}}o(ic,"checkKeywordTypes");function cc(t,e){return t.includes(e)||e==="number"&&t.includes("integer")}o(cc,"hasApplicableType");function In(t,e){return t.includes(e)||e==="integer"&&t.includes("number")}o(In,"includesType");function uc(t,e){let r=[];for(let s of t.dataTypes)In(e,s)?r.push(s):e.includes("integer")&&s==="number"&&r.push("integer");t.dataTypes=r}o(uc,"narrowSchemaTypes");function Tr(t,e){let r=t.schemaEnv.baseId+t.errSchemaPath;e+=` at "${r}" (strictTypes)`,(0,de.checkStrictMode)(t,e,t.opts.strictTypes)}o(Tr,"strictTypesError");var qt=class{static{o(this,"KeywordCxt")}constructor(e,r,s){if((0,st.validateKeywordUsage)(e,r,s),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=s,this.data=e.data,this.schema=e.schema[s],this.$data=r.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,de.schemaRefOrVal)(e,this.schema,s,this.$data),this.schemaType=r.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=r,this.$data)this.schemaCode=e.gen.const("vSchema",Mn(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,st.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${s} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=e.gen.const("_errs",w.default.errors))}result(e,r,s){this.failResult((0,v.not)(e),r,s)}failResult(e,r,s){this.gen.if(e),s?s():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,r){this.failResult((0,v.not)(e),void 0,r)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);let{schemaCode:r}=this;this.fail((0,v._)`${r} !== undefined && (${(0,v.or)(this.invalid$data(),e)})`)}error(e,r,s){if(r){this.setParams(r),this._error(e,s),this.setParams({});return}this._error(e,s)}_error(e,r){(e?rt.reportExtraError:rt.reportError)(this,this.def.error,r)}$dataError(){(0,rt.reportError)(this,this.def.$dataError||rt.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,rt.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,r){r?Object.assign(this.params,e):this.params=e}block$data(e,r,s=v.nil){this.gen.block(()=>{this.check$data(e,s),r()})}check$data(e=v.nil,r=v.nil){if(!this.$data)return;let{gen:s,schemaCode:n,schemaType:a,def:i}=this;s.if((0,v.or)((0,v._)`${n} === undefined`,r)),e!==v.nil&&s.assign(e,!0),(a.length||i.validateSchema)&&(s.elseIf(this.invalid$data()),this.$dataError(),e!==v.nil&&s.assign(e,!1)),s.else()}invalid$data(){let{gen:e,schemaCode:r,schemaType:s,def:n,it:a}=this;return(0,v.or)(i(),c());function i(){if(s.length){if(!(r instanceof v.Name))throw new Error("ajv implementation error");let u=Array.isArray(s)?s:[s];return(0,v._)`${(0,kt.checkDataTypes)(u,r,a.opts.strictNumbers,kt.DataType.Wrong)}`}return v.nil}function c(){if(n.validateSchema){let u=e.scopeValue("validate$data",{ref:n.validateSchema});return(0,v._)`!${u}(${r})`}return v.nil}}subschema(e,r){let s=(0,jr.getSubschema)(this.it,e);(0,jr.extendSubschemaData)(s,this.it,e),(0,jr.extendSubschemaMode)(s,e);let n={...this.it,...s,items:void 0,props:void 0};return Qi(n,r),n}mergeEvaluated(e,r){let{it:s,gen:n}=this;s.opts.unevaluated&&(s.props!==!0&&e.props!==void 0&&(s.props=de.mergeEvaluated.props(n,e.props,s.props,r)),s.items!==!0&&e.items!==void 0&&(s.items=de.mergeEvaluated.items(n,e.items,s.items,r)))}mergeValidEvaluated(e,r){let{it:s,gen:n}=this;if(s.opts.unevaluated&&(s.props!==!0||s.items!==!0))return n.if(r,()=>this.mergeEvaluated(e,v.Name)),!0}};_e.KeywordCxt=qt;function Cn(t,e,r,s){let n=new qt(t,r,e);"code"in r?r.code(n,s):n.$data&&r.validate?(0,st.funcKeywordCode)(n,r):"macro"in r?(0,st.macroKeywordCode)(n,r):(r.compile||r.validate)&&(0,st.funcKeywordCode)(n,r)}o(Cn,"keywordCode");var lc=/^\/(?:[^~]|~0|~1)*$/,dc=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function Mn(t,{dataLevel:e,dataNames:r,dataPathArr:s}){let n,a;if(t==="")return w.default.rootData;if(t[0]==="/"){if(!lc.test(t))throw new Error(`Invalid JSON-pointer: ${t}`);n=t,a=w.default.rootData}else{let d=dc.exec(t);if(!d)throw new Error(`Invalid JSON-pointer: ${t}`);let l=+d[1];if(n=d[2],n==="#"){if(l>=e)throw new Error(u("property/index",l));return s[e-l]}if(l>e)throw new Error(u("data",l));if(a=r[e-l],!n)return a}let i=a,c=n.split("/");for(let d of c)d&&(a=(0,v._)`${a}${(0,v.getProperty)((0,de.unescapeJsonPointer)(d))}`,i=(0,v._)`${i} && ${a}`);return i;function u(d,l){return`Cannot access ${d} ${l} levels up, current level is ${e}`}}o(Mn,"getData");_e.getData=Mn});var Mr=$(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});var Ir=class extends Error{static{o(this,"ValidationError")}constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}};Cr.default=Ir});var jt=$(Vr=>{"use strict";Object.defineProperty(Vr,"__esModule",{value:!0});var Ar=tt(),Dr=class extends Error{static{o(this,"MissingRefError")}constructor(e,r,s,n){super(n||`can't resolve reference ${s} from id ${r}`),this.missingRef=(0,Ar.resolveUrl)(e,r,s),this.missingSchema=(0,Ar.normalizeId)((0,Ar.getFullPath)(e,this.missingRef))}};Vr.default=Dr});var Tt=$(X=>{"use strict";Object.defineProperty(X,"__esModule",{value:!0});X.resolveSchema=X.getCompilingSchema=X.resolveRef=X.compileSchema=X.SchemaEnv=void 0;var ee=N(),fc=Mr(),Pe=le(),te=tt(),An=j(),hc=Ot(),De=class{static{o(this,"SchemaEnv")}constructor(e){var r;this.refs={},this.dynamicAnchors={};let s;typeof e.schema=="object"&&(s=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(r=e.baseId)!==null&&r!==void 0?r:(0,te.normalizeId)(s?.[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=s?.$async,this.refs={}}};X.SchemaEnv=De;function Ur(t){let e=Dn.call(this,t);if(e)return e;let r=(0,te.getFullPath)(this.opts.uriResolver,t.root.baseId),{es5:s,lines:n}=this.opts.code,{ownProperties:a}=this.opts,i=new ee.CodeGen(this.scope,{es5:s,lines:n,ownProperties:a}),c;t.$async&&(c=i.scopeValue("Error",{ref:fc.default,code:(0,ee._)`require("ajv/dist/runtime/validation_error").default`}));let u=i.scopeName("validate");t.validateName=u;let d={gen:i,allErrors:this.opts.allErrors,data:Pe.default.data,parentData:Pe.default.parentData,parentDataProperty:Pe.default.parentDataProperty,dataNames:[Pe.default.data],dataPathArr:[ee.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:t.schema,code:(0,ee.stringify)(t.schema)}:{ref:t.schema}),validateName:u,ValidationError:c,schema:t.schema,schemaEnv:t,rootId:r,baseId:t.baseId||r,schemaPath:ee.nil,errSchemaPath:t.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,ee._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(t),(0,hc.validateFunctionCode)(d),i.optimize(this.opts.code.optimize);let f=i.toString();l=`${i.scopeRefs(Pe.default.scope)}return ${f}`,this.opts.code.process&&(l=this.opts.code.process(l,t));let y=new Function(`${Pe.default.self}`,`${Pe.default.scope}`,l)(this,this.scope.get());if(this.scope.value(u,{ref:y}),y.errors=null,y.schema=t.schema,y.schemaEnv=t,t.$async&&(y.$async=!0),this.opts.code.source===!0&&(y.source={validateName:u,validateCode:f,scopeValues:i._values}),this.opts.unevaluated){let{props:p,items:h}=d;y.evaluated={props:p instanceof ee.Name?void 0:p,items:h instanceof ee.Name?void 0:h,dynamicProps:p instanceof ee.Name,dynamicItems:h instanceof ee.Name},y.source&&(y.source.evaluated=(0,ee.stringify)(y.evaluated))}return t.validate=y,t}catch(f){throw delete t.validate,delete t.validateName,l&&this.logger.error("Error compiling schema, function code:",l),f}finally{this._compilations.delete(t)}}o(Ur,"compileSchema");X.compileSchema=Ur;function pc(t,e,r){var s;r=(0,te.resolveUrl)(this.opts.uriResolver,e,r);let n=t.refs[r];if(n)return n;let a=_c.call(this,t,r);if(a===void 0){let i=(s=t.localRefs)===null||s===void 0?void 0:s[r],{schemaId:c}=this.opts;i&&(a=new De({schema:i,schemaId:c,root:t,baseId:e}))}if(a!==void 0)return t.refs[r]=mc.call(this,a)}o(pc,"resolveRef");X.resolveRef=pc;function mc(t){return(0,te.inlineRef)(t.schema,this.opts.inlineRefs)?t.schema:t.validate?t:Ur.call(this,t)}o(mc,"inlineOrCompile");function Dn(t){for(let e of this._compilations)if(yc(e,t))return e}o(Dn,"getCompilingSchema");X.getCompilingSchema=Dn;function yc(t,e){return t.schema===e.schema&&t.root===e.root&&t.baseId===e.baseId}o(yc,"sameSchemaEnv");function _c(t,e){let r;for(;typeof(r=this.refs[e])=="string";)e=r;return r||this.schemas[e]||Rt.call(this,t,e)}o(_c,"resolve");function Rt(t,e){let r=this.opts.uriResolver.parse(e),s=(0,te._getFullPath)(this.opts.uriResolver,r),n=(0,te.getFullPath)(this.opts.uriResolver,t.baseId,void 0);if(Object.keys(t.schema).length>0&&s===n)return zr.call(this,r,t);let a=(0,te.normalizeId)(s),i=this.refs[a]||this.schemas[a];if(typeof i=="string"){let c=Rt.call(this,t,i);return typeof c?.schema!="object"?void 0:zr.call(this,r,c)}if(typeof i?.schema=="object"){if(i.validate||Ur.call(this,i),a===(0,te.normalizeId)(e)){let{schema:c}=i,{schemaId:u}=this.opts,d=c[u];return d&&(n=(0,te.resolveUrl)(this.opts.uriResolver,n,d)),new De({schema:c,schemaId:u,root:t,baseId:n})}return zr.call(this,r,i)}}o(Rt,"resolveSchema");X.resolveSchema=Rt;var gc=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function zr(t,{baseId:e,schema:r,root:s}){var n;if(((n=t.fragment)===null||n===void 0?void 0:n[0])!=="/")return;for(let c of t.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let u=r[(0,An.unescapeFragment)(c)];if(u===void 0)return;r=u;let d=typeof r=="object"&&r[this.opts.schemaId];!gc.has(c)&&d&&(e=(0,te.resolveUrl)(this.opts.uriResolver,e,d))}let a;if(typeof r!="boolean"&&r.$ref&&!(0,An.schemaHasRulesButRef)(r,this.RULES)){let c=(0,te.resolveUrl)(this.opts.uriResolver,e,r.$ref);a=Rt.call(this,s,c)}let{schemaId:i}=this.opts;if(a=a||new De({schema:r,schemaId:i,root:s,baseId:e}),a.schema!==a.root.schema)return a}o(zr,"getJsonPointer")});var Vn=$((qf,$c)=>{$c.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Lr=$((Of,Hn)=>{"use strict";var vc=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),Un=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),Kr=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),Kn=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),wc=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function Fr(t){let e="",r=0,s=0;for(s=0;s<t.length;s++)if(r=t[s].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[s];break}for(s+=1;s<t.length;s++){if(r=t[s].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";e+=t[s]}return e}o(Fr,"stringArrayToHexStripped");var bc=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function zn(t){return t.length=0,!0}o(zn,"consumeIsZone");function Ec(t,e,r){if(t.length){let s=Fr(t);if(s!=="")e.push(s);else return r.error=!0,!1;t.length=0}return!0}o(Ec,"consumeHextets");function Sc(t){let e=0,r={error:!1,address:"",zone:""},s=[],n=[],a=!1,i=!1,c=Ec;for(let u=0;u<t.length;u++){let d=t[u];if(!(d==="["||d==="]"))if(d===":"){if(a===!0&&(i=!0),!c(n,s,r))break;if(++e>7){r.error=!0;break}u>0&&t[u-1]===":"&&(a=!0),s.push(":");continue}else if(d==="%"){if(!c(n,s,r))break;c=zn}else{n.push(d);continue}}return n.length&&(c===zn?r.zone=n.join(""):i?s.push(n.join("")):s.push(Fr(n))),r.address=s.join(""),r}o(Sc,"getIPV6");function Fn(t){if(Pc(t,":")<2)return{host:t,isIPV6:!1};let e=Sc(t);if(e.error)return{host:t,isIPV6:!1};{let r=e.address,s=e.address;return e.zone&&(r+="%"+e.zone,s+="%25"+e.zone),{host:r,isIPV6:!0,escapedHost:s}}}o(Fn,"normalizeIPv6");function Pc(t,e){let r=0;for(let s=0;s<t.length;s++)t[s]===e&&r++;return r}o(Pc,"findToken");function Nc(t){let e=t,r=[],s=-1,n=0;for(;n=e.length;){if(n===1){if(e===".")break;if(e==="/"){r.push("/");break}else{r.push(e);break}}else if(n===2){if(e[0]==="."){if(e[1]===".")break;if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&(e[1]==="."||e[1]==="/")){r.push("/");break}}else if(n===3&&e==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(e[0]==="."){if(e[1]==="."){if(e[2]==="/"){e=e.slice(3);continue}}else if(e[1]==="/"){e=e.slice(2);continue}}else if(e[0]==="/"&&e[1]==="."){if(e[2]==="/"){e=e.slice(2);continue}else if(e[2]==="."&&e[3]==="/"){e=e.slice(3),r.length!==0&&r.pop();continue}}if((s=e.indexOf("/",1))===-1){r.push(e);break}else r.push(e.slice(0,s)),e=e.slice(s)}return r.join("")}o(Nc,"removeDotSegments");var kc={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},qc=/[@/?#:]/g,Oc=/[@/?#]/g;function Ln(t,e){let r=e?Oc:qc;return r.lastIndex=0,t.replace(r,s=>kc[s])}o(Ln,"reescapeHostDelimiters");function jc(t,e=!1){if(t.indexOf("%")===-1)return t;let r="";for(let s=0;s<t.length;s++){if(t[s]==="%"&&s+2<t.length){let n=t.slice(s+1,s+3);if(Kr(n)){let a=n.toUpperCase(),i=String.fromCharCode(parseInt(a,16));e&&Kn(i)?r+=i:r+="%"+a,s+=2;continue}}r+=t[s]}return r}o(jc,"normalizePercentEncoding");function Rc(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let s=t.slice(r+1,r+3);if(Kr(s)){let n=s.toUpperCase(),a=String.fromCharCode(parseInt(n,16));a!=="."&&Kn(a)?e+=a:e+="%"+n,r+=2;continue}}wc(t[r])?e+=t[r]:e+=escape(t[r])}return e}o(Rc,"normalizePathEncoding");function Tc(t){let e="";for(let r=0;r<t.length;r++){if(t[r]==="%"&&r+2<t.length){let s=t.slice(r+1,r+3);if(Kr(s)){e+="%"+s.toUpperCase(),r+=2;continue}}e+=escape(t[r])}return e}o(Tc,"escapePreservingEscapes");function Ic(t){let e=[];if(t.userinfo!==void 0&&(e.push(t.userinfo),e.push("@")),t.host!==void 0){let r=unescape(t.host);if(!Un(r)){let s=Fn(r);s.isIPV6===!0?r=`[${s.escapedHost}]`:r=Ln(r,!1)}e.push(r)}return(typeof t.port=="number"||typeof t.port=="string")&&(e.push(":"),e.push(String(t.port))),e.length?e.join(""):void 0}o(Ic,"recomposeAuthority");Hn.exports={nonSimpleDomain:bc,recomposeAuthority:Ic,reescapeHostDelimiters:Ln,normalizePercentEncoding:jc,normalizePathEncoding:Rc,escapePreservingEscapes:Tc,removeDotSegments:Nc,isIPv4:Un,isUUID:vc,normalizeIPv6:Fn,stringArrayToHexStripped:Fr}});var Bn=$((Rf,Wn)=>{"use strict";var{isUUID:Cc}=Lr(),Mc=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,Ac=["http","https","ws","wss","urn","urn:uuid"];function Dc(t){return Ac.indexOf(t)!==-1}o(Dc,"isValidSchemeName");function Hr(t){return t.secure===!0?!0:t.secure===!1?!1:t.scheme?t.scheme.length===3&&(t.scheme[0]==="w"||t.scheme[0]==="W")&&(t.scheme[1]==="s"||t.scheme[1]==="S")&&(t.scheme[2]==="s"||t.scheme[2]==="S"):!1}o(Hr,"wsIsSecure");function xn(t){return t.host||(t.error=t.error||"HTTP URIs must have a host."),t}o(xn,"httpParse");function Gn(t){let e=String(t.scheme).toLowerCase()==="https";return(t.port===(e?443:80)||t.port==="")&&(t.port=void 0),t.path||(t.path="/"),t}o(Gn,"httpSerialize");function Vc(t){return t.secure=Hr(t),t.resourceName=(t.path||"/")+(t.query?"?"+t.query:""),t.path=void 0,t.query=void 0,t}o(Vc,"wsParse");function zc(t){if((t.port===(Hr(t)?443:80)||t.port==="")&&(t.port=void 0),typeof t.secure=="boolean"&&(t.scheme=t.secure?"wss":"ws",t.secure=void 0),t.resourceName){let[e,r]=t.resourceName.split("?");t.path=e&&e!=="/"?e:void 0,t.query=r,t.resourceName=void 0}return t.fragment=void 0,t}o(zc,"wsSerialize");function Uc(t,e){if(!t.path)return t.error="URN can not be parsed",t;let r=t.path.match(Mc);if(r){let s=e.scheme||t.scheme||"urn";t.nid=r[1].toLowerCase(),t.nss=r[2];let n=`${s}:${e.nid||t.nid}`,a=xr(n);t.path=void 0,a&&(t=a.parse(t,e))}else t.error=t.error||"URN can not be parsed.";return t}o(Uc,"urnParse");function Kc(t,e){if(t.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=e.scheme||t.scheme||"urn",s=t.nid.toLowerCase(),n=`${r}:${e.nid||s}`,a=xr(n);a&&(t=a.serialize(t,e));let i=t,c=t.nss;return i.path=`${s||e.nid}:${c}`,e.skipEscape=!0,i}o(Kc,"urnSerialize");function Fc(t,e){let r=t;return r.uuid=r.nss,r.nss=void 0,!e.tolerant&&(!r.uuid||!Cc(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}o(Fc,"urnuuidParse");function Lc(t){let e=t;return e.nss=(t.uuid||"").toLowerCase(),e}o(Lc,"urnuuidSerialize");var Jn={scheme:"http",domainHost:!0,parse:xn,serialize:Gn},Hc={scheme:"https",domainHost:Jn.domainHost,parse:xn,serialize:Gn},It={scheme:"ws",domainHost:!0,parse:Vc,serialize:zc},xc={scheme:"wss",domainHost:It.domainHost,parse:It.parse,serialize:It.serialize},Gc={scheme:"urn",parse:Uc,serialize:Kc,skipNormalize:!0},Jc={scheme:"urn:uuid",parse:Fc,serialize:Lc,skipNormalize:!0},Ct={http:Jn,https:Hc,ws:It,wss:xc,urn:Gc,"urn:uuid":Jc};Object.setPrototypeOf(Ct,null);function xr(t){return t&&(Ct[t]||Ct[t.toLowerCase()])||void 0}o(xr,"getSchemeHandler");Wn.exports={wsIsSecure:Hr,SCHEMES:Ct,isValidSchemeName:Dc,getSchemeHandler:xr}});var to=$((If,Mt)=>{"use strict";var{normalizeIPv6:Wc,removeDotSegments:nt,recomposeAuthority:Bc,normalizePercentEncoding:Qc,normalizePathEncoding:Xc,escapePreservingEscapes:Yc,reescapeHostDelimiters:Zc,isIPv4:eu,nonSimpleDomain:tu}=Lr(),{SCHEMES:ru,getSchemeHandler:Xn}=Bn();function su(t,e){return typeof t=="string"?t=cu(t,e):typeof t=="object"&&(t=Ve(Ne(t,e),e)),t}o(su,"normalize");function nu(t,e,r){let s=r?Object.assign({scheme:"null"},r):{scheme:"null"},n=Yn(Ve(t,s),Ve(e,s),s,!0);return s.skipEscape=!0,Ne(n,s)}o(nu,"resolve");function Yn(t,e,r,s){let n={};return s||(t=Ve(Ne(t,r),r),e=Ve(Ne(e,r),r)),r=r||{},!r.tolerant&&e.scheme?(n.scheme=e.scheme,n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=nt(e.path||""),n.query=e.query):(e.userinfo!==void 0||e.host!==void 0||e.port!==void 0?(n.userinfo=e.userinfo,n.host=e.host,n.port=e.port,n.path=nt(e.path||""),n.query=e.query):(e.path?(e.path[0]==="/"?n.path=nt(e.path):((t.userinfo!==void 0||t.host!==void 0||t.port!==void 0)&&!t.path?n.path="/"+e.path:t.path?n.path=t.path.slice(0,t.path.lastIndexOf("/")+1)+e.path:n.path=e.path,n.path=nt(n.path)),n.query=e.query):(n.path=t.path,e.query!==void 0?n.query=e.query:n.query=t.query),n.userinfo=t.userinfo,n.host=t.host,n.port=t.port),n.scheme=t.scheme),n.fragment=e.fragment,n}o(Yn,"resolveComponent");function ou(t,e,r){let s=Qn(t,r),n=Qn(e,r);return s!==void 0&&n!==void 0&&s.toLowerCase()===n.toLowerCase()}o(ou,"equal");function Ne(t,e){let r={host:t.host,scheme:t.scheme,userinfo:t.userinfo,port:t.port,path:t.path,query:t.query,nid:t.nid,nss:t.nss,uuid:t.uuid,fragment:t.fragment,reference:t.reference,resourceName:t.resourceName,secure:t.secure,error:""},s=Object.assign({},e),n=[],a=Xn(s.scheme||r.scheme);a&&a.serialize&&a.serialize(r,s),r.path!==void 0&&(s.skipEscape?r.path=Qc(r.path):(r.path=Yc(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),s.reference!=="suffix"&&r.scheme&&n.push(r.scheme,":");let i=Bc(r);if(i!==void 0&&(s.reference!=="suffix"&&n.push("//"),n.push(i),r.path&&r.path[0]!=="/"&&n.push("/")),r.path!==void 0){let c=r.path;!s.absolutePath&&(!a||!a.absolutePath)&&(c=nt(c)),i===void 0&&c[0]==="/"&&c[1]==="/"&&(c="/%2F"+c.slice(2)),n.push(c)}return r.query!==void 0&&n.push("?",r.query),r.fragment!==void 0&&n.push("#",r.fragment),n.join("")}o(Ne,"serialize");var au=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u;function iu(t,e){if(e[2]!==void 0&&t.path&&t.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof t.port=="number"&&(t.port<0||t.port>65535))return"URI port is malformed."}o(iu,"getParseError");function Zn(t,e){let r=Object.assign({},e),s={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},n=!1,a=!1;r.reference==="suffix"&&(r.scheme?t=r.scheme+":"+t:t="//"+t);let i=t.match(au);if(i){s.scheme=i[1],s.userinfo=i[3],s.host=i[4],s.port=parseInt(i[5],10),s.path=i[6]||"",s.query=i[7],s.fragment=i[8],isNaN(s.port)&&(s.port=i[5]);let c=iu(s,i);if(c!==void 0&&(s.error=s.error||c,n=!0),s.host)if(eu(s.host)===!1){let l=Wc(s.host);s.host=l.host.toLowerCase(),a=l.isIPV6}else a=!0;s.scheme===void 0&&s.userinfo===void 0&&s.host===void 0&&s.port===void 0&&s.query===void 0&&!s.path?s.reference="same-document":s.scheme===void 0?s.reference="relative":s.fragment===void 0?s.reference="absolute":s.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==s.reference&&(s.error=s.error||"URI is not a "+r.reference+" reference.");let u=Xn(r.scheme||s.scheme);if(!r.unicodeSupport&&(!u||!u.unicodeSupport)&&s.host&&(r.domainHost||u&&u.domainHost)&&a===!1&&tu(s.host))try{s.host=new URL("http://"+s.host).hostname}catch(d){s.error=s.error||"Host's domain name can not be converted to ASCII: "+d}if((!u||u&&!u.skipNormalize)&&(t.indexOf("%")!==-1&&(s.scheme!==void 0&&(s.scheme=unescape(s.scheme)),s.host!==void 0&&(s.host=Zc(unescape(s.host),a))),s.path&&(s.path=Xc(s.path)),s.fragment))try{s.fragment=encodeURI(decodeURIComponent(s.fragment))}catch{s.error=s.error||"URI malformed"}u&&u.parse&&u.parse(s,r)}else s.error=s.error||"URI can not be parsed.";return{parsed:s,malformedAuthorityOrPort:n}}o(Zn,"parseWithStatus");function Ve(t,e){return Zn(t,e).parsed}o(Ve,"parse");function cu(t,e){return eo(t,e).normalized}o(cu,"normalizeString");function eo(t,e){let{parsed:r,malformedAuthorityOrPort:s}=Zn(t,e);return{normalized:s?t:Ne(r,e),malformedAuthorityOrPort:s}}o(eo,"normalizeStringWithStatus");function Qn(t,e){if(typeof t=="string"){let{normalized:r,malformedAuthorityOrPort:s}=eo(t,e);return s?void 0:r}if(typeof t=="object")return Ne(t,e)}o(Qn,"normalizeComparableURI");var Gr={SCHEMES:ru,normalize:su,resolve:nu,resolveComponent:Yn,equal:ou,serialize:Ne,parse:Ve};Mt.exports=Gr;Mt.exports.default=Gr;Mt.exports.fastUri=Gr});var so=$(Jr=>{"use strict";Object.defineProperty(Jr,"__esModule",{value:!0});var ro=to();ro.code='require("ajv/dist/runtime/uri").default';Jr.default=ro});var ju=$(V=>{"use strict";Object.defineProperty(V,"__esModule",{value:!0});V.CodeGen=V.Name=V.nil=V.stringify=V.str=V._=V.KeywordCxt=void 0;var uu=Ot();Object.defineProperty(V,"KeywordCxt",{enumerable:!0,get:o(function(){return uu.KeywordCxt},"get")});var ze=N();Object.defineProperty(V,"_",{enumerable:!0,get:o(function(){return ze._},"get")});Object.defineProperty(V,"str",{enumerable:!0,get:o(function(){return ze.str},"get")});Object.defineProperty(V,"stringify",{enumerable:!0,get:o(function(){return ze.stringify},"get")});Object.defineProperty(V,"nil",{enumerable:!0,get:o(function(){return ze.nil},"get")});Object.defineProperty(V,"Name",{enumerable:!0,get:o(function(){return ze.Name},"get")});Object.defineProperty(V,"CodeGen",{enumerable:!0,get:o(function(){return ze.CodeGen},"get")});var lu=Mr(),co=jt(),du=vr(),ot=Tt(),fu=N(),at=tt(),At=et(),Br=j(),no=Vn(),hu=so(),uo=o((t,e)=>new RegExp(t,e),"defaultRegExp");uo.code="new RegExp";var pu=["removeAdditional","useDefaults","coerceTypes"],mu=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),yu={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},_u={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},oo=200;function gu(t){var e,r,s,n,a,i,c,u,d,l,f,_,y,p,h,m,g,O,k,M,b,se,ie,Qt,Xt;let He=t.strict,Yt=(e=t.code)===null||e===void 0?void 0:e.optimize,Ds=Yt===!0||Yt===void 0?1:Yt||0,Vs=(s=(r=t.code)===null||r===void 0?void 0:r.regExp)!==null&&s!==void 0?s:uo,ia=(n=t.uriResolver)!==null&&n!==void 0?n:hu.default;return{strictSchema:(i=(a=t.strictSchema)!==null&&a!==void 0?a:He)!==null&&i!==void 0?i:!0,strictNumbers:(u=(c=t.strictNumbers)!==null&&c!==void 0?c:He)!==null&&u!==void 0?u:!0,strictTypes:(l=(d=t.strictTypes)!==null&&d!==void 0?d:He)!==null&&l!==void 0?l:"log",strictTuples:(_=(f=t.strictTuples)!==null&&f!==void 0?f:He)!==null&&_!==void 0?_:"log",strictRequired:(p=(y=t.strictRequired)!==null&&y!==void 0?y:He)!==null&&p!==void 0?p:!1,code:t.code?{...t.code,optimize:Ds,regExp:Vs}:{optimize:Ds,regExp:Vs},loopRequired:(h=t.loopRequired)!==null&&h!==void 0?h:oo,loopEnum:(m=t.loopEnum)!==null&&m!==void 0?m:oo,meta:(g=t.meta)!==null&&g!==void 0?g:!0,messages:(O=t.messages)!==null&&O!==void 0?O:!0,inlineRefs:(k=t.inlineRefs)!==null&&k!==void 0?k:!0,schemaId:(M=t.schemaId)!==null&&M!==void 0?M:"$id",addUsedSchema:(b=t.addUsedSchema)!==null&&b!==void 0?b:!0,validateSchema:(se=t.validateSchema)!==null&&se!==void 0?se:!0,validateFormats:(ie=t.validateFormats)!==null&&ie!==void 0?ie:!0,unicodeRegExp:(Qt=t.unicodeRegExp)!==null&&Qt!==void 0?Qt:!0,int32range:(Xt=t.int32range)!==null&&Xt!==void 0?Xt:!0,uriResolver:ia}}o(gu,"requiredOptions");var it=class{static{o(this,"Ajv")}constructor(e={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...gu(e)};let{es5:r,lines:s}=this.opts.code;this.scope=new fu.ValueScope({scope:{},prefixes:mu,es5:r,lines:s}),this.logger=Su(e.logger);let n=e.validateFormats;e.validateFormats=!1,this.RULES=(0,du.getRules)(),ao.call(this,yu,e,"NOT SUPPORTED"),ao.call(this,_u,e,"DEPRECATED","warn"),this._metaOpts=bu.call(this),e.formats&&vu.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&wu.call(this,e.keywords),typeof e.meta=="object"&&this.addMetaSchema(e.meta),$u.call(this),e.validateFormats=n}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:e,meta:r,schemaId:s}=this.opts,n=no;s==="id"&&(n={...no},n.id=n.$id,delete n.$id),r&&e&&this.addMetaSchema(n,n[s],!1)}defaultMeta(){let{meta:e,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof e=="object"?e[r]||e:void 0}validate(e,r){let s;if(typeof e=="string"){if(s=this.getSchema(e),!s)throw new Error(`no schema with key or ref "${e}"`)}else s=this.compile(e);let n=s(r);return"$async"in s||(this.errors=s.errors),n}compile(e,r){let s=this._addSchema(e,r);return s.validate||this._compileSchemaEnv(s)}compileAsync(e,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:s}=this.opts;return n.call(this,e,r);async function n(l,f){await a.call(this,l.$schema);let _=this._addSchema(l,f);return _.validate||i.call(this,_)}async function a(l){l&&!this.getSchema(l)&&await n.call(this,{$ref:l},!0)}async function i(l){try{return this._compileSchemaEnv(l)}catch(f){if(!(f instanceof co.default))throw f;return c.call(this,f),await u.call(this,f.missingSchema),i.call(this,l)}}function c({missingSchema:l,missingRef:f}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${f} cannot be resolved`)}async function u(l){let f=await d.call(this,l);this.refs[l]||await a.call(this,f.$schema),this.refs[l]||this.addSchema(f,l,r)}async function d(l){let f=this._loading[l];if(f)return f;try{return await(this._loading[l]=s(l))}finally{delete this._loading[l]}}}addSchema(e,r,s,n=this.opts.validateSchema){if(Array.isArray(e)){for(let i of e)this.addSchema(i,void 0,s,n);return this}let a;if(typeof e=="object"){let{schemaId:i}=this.opts;if(a=e[i],a!==void 0&&typeof a!="string")throw new Error(`schema ${i} must be string`)}return r=(0,at.normalizeId)(r||a),this._checkUnique(r),this.schemas[r]=this._addSchema(e,s,r,n,!0),this}addMetaSchema(e,r,s=this.opts.validateSchema){return this.addSchema(e,r,!0,s),this}validateSchema(e,r){if(typeof e=="boolean")return!0;let s;if(s=e.$schema,s!==void 0&&typeof s!="string")throw new Error("$schema must be a string");if(s=s||this.opts.defaultMeta||this.defaultMeta(),!s)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let n=this.validate(s,e);if(!n&&r){let a="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(a);else throw new Error(a)}return n}getSchema(e){let r;for(;typeof(r=io.call(this,e))=="string";)e=r;if(r===void 0){let{schemaId:s}=this.opts,n=new ot.SchemaEnv({schema:{},schemaId:s});if(r=ot.resolveSchema.call(this,n,e),!r)return;this.refs[e]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=io.call(this,e);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{let r=e;this._cache.delete(r);let s=e[this.opts.schemaId];return s&&(s=(0,at.normalizeId)(s),delete this.schemas[s],delete this.refs[s]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(let r of e)this.addKeyword(r);return this}addKeyword(e,r){let s;if(typeof e=="string")s=e,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=s);else if(typeof e=="object"&&r===void 0){if(r=e,s=r.keyword,Array.isArray(s)&&!s.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(Nu.call(this,s,r),!r)return(0,Br.eachItem)(s,a=>Wr.call(this,a)),this;qu.call(this,r);let n={...r,type:(0,At.getJSONTypes)(r.type),schemaType:(0,At.getJSONTypes)(r.schemaType)};return(0,Br.eachItem)(s,n.type.length===0?a=>Wr.call(this,a,n):a=>n.type.forEach(i=>Wr.call(this,a,n,i))),this}getKeyword(e){let r=this.RULES.all[e];return typeof r=="object"?r.definition:!!r}removeKeyword(e){let{RULES:r}=this;delete r.keywords[e],delete r.all[e];for(let s of r.rules){let n=s.rules.findIndex(a=>a.keyword===e);n>=0&&s.rules.splice(n,1)}return this}addFormat(e,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[e]=r,this}errorsText(e=this.errors,{separator:r=", ",dataVar:s="data"}={}){return!e||e.length===0?"No errors":e.map(n=>`${s}${n.instancePath} ${n.message}`).reduce((n,a)=>n+r+a)}$dataMetaSchema(e,r){let s=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(let n of r){let a=n.split("/").slice(1),i=e;for(let c of a)i=i[c];for(let c in s){let u=s[c];if(typeof u!="object")continue;let{$data:d}=u.definition,l=i[c];d&&l&&(i[c]=lo(l))}}return e}_removeAllSchemas(e,r){for(let s in e){let n=e[s];(!r||r.test(s))&&(typeof n=="string"?delete e[s]:n&&!n.meta&&(this._cache.delete(n.schema),delete e[s]))}}_addSchema(e,r,s,n=this.opts.validateSchema,a=this.opts.addUsedSchema){let i,{schemaId:c}=this.opts;if(typeof e=="object")i=e[c];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof e!="boolean")throw new Error("schema must be object or boolean")}let u=this._cache.get(e);if(u!==void 0)return u;s=(0,at.normalizeId)(i||s);let d=at.getSchemaRefs.call(this,e,s);return u=new ot.SchemaEnv({schema:e,schemaId:c,meta:r,baseId:s,localRefs:d}),this._cache.set(u.schema,u),a&&!s.startsWith("#")&&(s&&this._checkUnique(s),this.refs[s]=u),n&&this.validateSchema(e,!0),u}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):ot.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){let r=this.opts;this.opts=this._metaOpts;try{ot.compileSchema.call(this,e)}finally{this.opts=r}}};it.ValidationError=lu.default;it.MissingRefError=co.default;V.default=it;function ao(t,e,r,s="error"){for(let n in t){let a=n;a in e&&this.logger[s](`${r}: option ${n}. ${t[a]}`)}}o(ao,"checkOptions");function io(t){return t=(0,at.normalizeId)(t),this.schemas[t]||this.refs[t]}o(io,"getSchEnv");function $u(){let t=this.opts.schemas;if(t)if(Array.isArray(t))this.addSchema(t);else for(let e in t)this.addSchema(t[e],e)}o($u,"addInitialSchemas");function vu(){for(let t in this.opts.formats){let e=this.opts.formats[t];e&&this.addFormat(t,e)}}o(vu,"addInitialFormats");function wu(t){if(Array.isArray(t)){this.addVocabulary(t);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let e in t){let r=t[e];r.keyword||(r.keyword=e),this.addKeyword(r)}}o(wu,"addInitialKeywords");function bu(){let t={...this.opts};for(let e of pu)delete t[e];return t}o(bu,"getMetaSchemaOptions");var Eu={log(){},warn(){},error(){}};function Su(t){if(t===!1)return Eu;if(t===void 0)return console;if(t.log&&t.warn&&t.error)return t;throw new Error("logger must implement log, warn and error methods")}o(Su,"getLogger");var Pu=/^[a-z_$][a-z0-9_$:-]*$/i;function Nu(t,e){let{RULES:r}=this;if((0,Br.eachItem)(t,s=>{if(r.keywords[s])throw new Error(`Keyword ${s} is already defined`);if(!Pu.test(s))throw new Error(`Keyword ${s} has invalid name`)}),!!e&&e.$data&&!("code"in e||"validate"in e))throw new Error('$data keyword must have "code" or "validate" function')}o(Nu,"checkKeyword");function Wr(t,e,r){var s;let n=e?.post;if(r&&n)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:a}=this,i=n?a.post:a.rules.find(({type:u})=>u===r);if(i||(i={type:r,rules:[]},a.rules.push(i)),a.keywords[t]=!0,!e)return;let c={keyword:t,definition:{...e,type:(0,At.getJSONTypes)(e.type),schemaType:(0,At.getJSONTypes)(e.schemaType)}};e.before?ku.call(this,i,c,e.before):i.rules.push(c),a.all[t]=c,(s=e.implements)===null||s===void 0||s.forEach(u=>this.addKeyword(u))}o(Wr,"addRule");function ku(t,e,r){let s=t.rules.findIndex(n=>n.keyword===r);s>=0?t.rules.splice(s,0,e):(t.rules.push(e),this.logger.warn(`rule ${r} is not defined`))}o(ku,"addBeforeRule");function qu(t){let{metaSchema:e}=t;e!==void 0&&(t.$data&&this.opts.$data&&(e=lo(e)),t.validateSchema=this.compile(e,!0))}o(qu,"keywordMetaschema");var Ou={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function lo(t){return{anyOf:[t,Ou]}}o(lo,"schemaOrData")});var ho=$(Dt=>{"use strict";Object.defineProperty(Dt,"__esModule",{value:!0});Dt.DiscrError=void 0;var fo;(function(t){t.Tag="tag",t.Mapping="mapping"})(fo||(Dt.DiscrError=fo={}))});var Mu=$(Xr=>{"use strict";Object.defineProperty(Xr,"__esModule",{value:!0});var Ue=N(),Qr=ho(),po=Tt(),Ru=jt(),Tu=j(),Iu={message:o(({params:{discrError:t,tagName:e}})=>t===Qr.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,"message"),params:o(({params:{discrError:t,tag:e,tagName:r}})=>(0,Ue._)`{error: ${t}, tag: ${r}, tagValue: ${e}}`,"params")},Cu={keyword:"discriminator",type:"object",schemaType:"object",error:Iu,code(t){let{gen:e,data:r,schema:s,parentSchema:n,it:a}=t,{oneOf:i}=n;if(!a.opts.discriminator)throw new Error("discriminator: requires discriminator option");let c=s.propertyName;if(typeof c!="string")throw new Error("discriminator: requires propertyName");if(s.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");let u=e.let("valid",!1),d=e.const("tag",(0,Ue._)`${r}${(0,Ue.getProperty)(c)}`);e.if((0,Ue._)`typeof ${d} == "string"`,()=>l(),()=>t.error(!1,{discrError:Qr.DiscrError.Tag,tag:d,tagName:c})),t.ok(u);function l(){let y=_();e.if(!1);for(let p in y)e.elseIf((0,Ue._)`${d} === ${p}`),e.assign(u,f(y[p]));e.else(),t.error(!1,{discrError:Qr.DiscrError.Mapping,tag:d,tagName:c}),e.endIf()}o(l,"validateMapping");function f(y){let p=e.name("valid"),h=t.subschema({keyword:"oneOf",schemaProp:y},p);return t.mergeEvaluated(h,Ue.Name),p}o(f,"applyTagSchema");function _(){var y;let p={},h=g(n),m=!0;for(let M=0;M<i.length;M++){let b=i[M];if(b?.$ref&&!(0,Tu.schemaHasRulesButRef)(b,a.self.RULES)){let ie=b.$ref;if(b=po.resolveRef.call(a.self,a.schemaEnv.root,a.baseId,ie),b instanceof po.SchemaEnv&&(b=b.schema),b===void 0)throw new Ru.default(a.opts.uriResolver,a.baseId,ie)}let se=(y=b?.properties)===null||y===void 0?void 0:y[c];if(typeof se!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${c}"`);m=m&&(h||g(b)),O(se,M)}if(!m)throw new Error(`discriminator: "${c}" must be required`);return p;function g({required:M}){return Array.isArray(M)&&M.includes(c)}function O(M,b){if(M.const)k(M.const,b);else if(M.enum)for(let se of M.enum)k(se,b);else throw new Error(`discriminator: "properties/${c}" must have "const" or "enum"`)}function k(M,b){if(typeof M!="string"||M in p)throw new Error(`discriminator: "${c}" values must be unique strings`);p[M]=b}}o(_,"getMapping")}};Xr.default=Cu});var mo=$(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});var Au={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Yr.default=Au});var $o=$(ke=>{"use strict";Object.defineProperty(ke,"__esModule",{value:!0});ke.callRef=ke.getValidate=void 0;var Du=jt(),yo=Q(),W=N(),Ke=le(),_o=Tt(),Vt=j(),Vu={keyword:"$ref",schemaType:"string",code(t){let{gen:e,schema:r,it:s}=t,{baseId:n,schemaEnv:a,validateName:i,opts:c,self:u}=s,{root:d}=a;if((r==="#"||r==="#/")&&n===d.baseId)return f();let l=_o.resolveRef.call(u,d,n,r);if(l===void 0)throw new Du.default(s.opts.uriResolver,n,r);if(l instanceof _o.SchemaEnv)return _(l);return y(l);function f(){if(a===d)return zt(t,i,a,a.$async);let p=e.scopeValue("root",{ref:d});return zt(t,(0,W._)`${p}.validate`,d,d.$async)}function _(p){let h=go(t,p);zt(t,h,p,p.$async)}function y(p){let h=e.scopeValue("schema",c.code.source===!0?{ref:p,code:(0,W.stringify)(p)}:{ref:p}),m=e.name("valid"),g=t.subschema({schema:p,dataTypes:[],schemaPath:W.nil,topSchemaRef:h,errSchemaPath:r},m);t.mergeEvaluated(g),t.ok(m)}}};function go(t,e){let{gen:r}=t;return e.validate?r.scopeValue("validate",{ref:e.validate}):(0,W._)`${r.scopeValue("wrapper",{ref:e})}.validate`}o(go,"getValidate");ke.getValidate=go;function zt(t,e,r,s){let{gen:n,it:a}=t,{allErrors:i,schemaEnv:c,opts:u}=a,d=u.passContext?Ke.default.this:W.nil;s?l():f();function l(){if(!c.$async)throw new Error("async schema referenced by sync schema");let p=n.let("valid");n.try(()=>{n.code((0,W._)`await ${(0,yo.callValidateCode)(t,e,d)}`),y(e),i||n.assign(p,!0)},h=>{n.if((0,W._)`!(${h} instanceof ${a.ValidationError})`,()=>n.throw(h)),_(h),i||n.assign(p,!1)}),t.ok(p)}o(l,"callAsyncRef");function f(){t.result((0,yo.callValidateCode)(t,e,d),()=>y(e),()=>_(e))}o(f,"callSyncRef");function _(p){let h=(0,W._)`${p}.errors`;n.assign(Ke.default.vErrors,(0,W._)`${Ke.default.vErrors} === null ? ${h} : ${Ke.default.vErrors}.concat(${h})`),n.assign(Ke.default.errors,(0,W._)`${Ke.default.vErrors}.length`)}o(_,"addErrorsFrom");function y(p){var h;if(!a.opts.unevaluated)return;let m=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(a.props!==!0)if(m&&!m.dynamicProps)m.props!==void 0&&(a.props=Vt.mergeEvaluated.props(n,m.props,a.props));else{let g=n.var("props",(0,W._)`${p}.evaluated.props`);a.props=Vt.mergeEvaluated.props(n,g,a.props,W.Name)}if(a.items!==!0)if(m&&!m.dynamicItems)m.items!==void 0&&(a.items=Vt.mergeEvaluated.items(n,m.items,a.items));else{let g=n.var("items",(0,W._)`${p}.evaluated.items`);a.items=Vt.mergeEvaluated.items(n,g,a.items,W.Name)}}o(y,"addEvaluatedFrom")}o(zt,"callRef");ke.callRef=zt;ke.default=Vu});var Fu=$(Zr=>{"use strict";Object.defineProperty(Zr,"__esModule",{value:!0});var zu=mo(),Uu=$o(),Ku=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",zu.default,Uu.default];Zr.default=Ku});var vo=$(es=>{"use strict";Object.defineProperty(es,"__esModule",{value:!0});var Ut=N(),ge=Ut.operators,Kt={maximum:{okStr:"<=",ok:ge.LTE,fail:ge.GT},minimum:{okStr:">=",ok:ge.GTE,fail:ge.LT},exclusiveMaximum:{okStr:"<",ok:ge.LT,fail:ge.GTE},exclusiveMinimum:{okStr:">",ok:ge.GT,fail:ge.LTE}},Lu={message:o(({keyword:t,schemaCode:e})=>(0,Ut.str)`must be ${Kt[t].okStr} ${e}`,"message"),params:o(({keyword:t,schemaCode:e})=>(0,Ut._)`{comparison: ${Kt[t].okStr}, limit: ${e}}`,"params")},Hu={keyword:Object.keys(Kt),type:"number",schemaType:"number",$data:!0,error:Lu,code(t){let{keyword:e,data:r,schemaCode:s}=t;t.fail$data((0,Ut._)`${r} ${Kt[e].fail} ${s} || isNaN(${r})`)}};es.default=Hu});var wo=$(ts=>{"use strict";Object.defineProperty(ts,"__esModule",{value:!0});var ct=N(),xu={message:o(({schemaCode:t})=>(0,ct.str)`must be multiple of ${t}`,"message"),params:o(({schemaCode:t})=>(0,ct._)`{multipleOf: ${t}}`,"params")},Gu={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:xu,code(t){let{gen:e,data:r,schemaCode:s,it:n}=t,a=n.opts.multipleOfPrecision,i=e.let("res"),c=a?(0,ct._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${a}`:(0,ct._)`${i} !== parseInt(${i})`;t.fail$data((0,ct._)`(${s} === 0 || (${i} = ${r}/${s}, ${c}))`)}};ts.default=Gu});var Eo=$(rs=>{"use strict";Object.defineProperty(rs,"__esModule",{value:!0});function bo(t){let e=t.length,r=0,s=0,n;for(;s<e;)r++,n=t.charCodeAt(s++),n>=55296&&n<=56319&&s<e&&(n=t.charCodeAt(s),(n&64512)===56320&&s++);return r}o(bo,"ucs2length");rs.default=bo;bo.code='require("ajv/dist/runtime/ucs2length").default'});var So=$(ss=>{"use strict";Object.defineProperty(ss,"__esModule",{value:!0});var qe=N(),Ju=j(),Wu=Eo(),Bu={message({keyword:t,schemaCode:e}){let r=t==="maxLength"?"more":"fewer";return(0,qe.str)`must NOT have ${r} than ${e} characters`},params:o(({schemaCode:t})=>(0,qe._)`{limit: ${t}}`,"params")},Qu={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:Bu,code(t){let{keyword:e,data:r,schemaCode:s,it:n}=t,a=e==="maxLength"?qe.operators.GT:qe.operators.LT,i=n.opts.unicode===!1?(0,qe._)`${r}.length`:(0,qe._)`${(0,Ju.useFunc)(t.gen,Wu.default)}(${r})`;t.fail$data((0,qe._)`${i} ${a} ${s}`)}};ss.default=Qu});var Po=$(ns=>{"use strict";Object.defineProperty(ns,"__esModule",{value:!0});var Xu=Q(),Yu=j(),Fe=N(),Zu={message:o(({schemaCode:t})=>(0,Fe.str)`must match pattern "${t}"`,"message"),params:o(({schemaCode:t})=>(0,Fe._)`{pattern: ${t}}`,"params")},el={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:Zu,code(t){let{gen:e,data:r,$data:s,schema:n,schemaCode:a,it:i}=t,c=i.opts.unicodeRegExp?"u":"";if(s){let{regExp:u}=i.opts.code,d=u.code==="new RegExp"?(0,Fe._)`new RegExp`:(0,Yu.useFunc)(e,u),l=e.let("valid");e.try(()=>e.assign(l,(0,Fe._)`${d}(${a}, ${c}).test(${r})`),()=>e.assign(l,!1)),t.fail$data((0,Fe._)`!${l}`)}else{let u=(0,Xu.usePattern)(t,n);t.fail$data((0,Fe._)`!${u}.test(${r})`)}}};ns.default=el});var No=$(os=>{"use strict";Object.defineProperty(os,"__esModule",{value:!0});var ut=N(),tl={message({keyword:t,schemaCode:e}){let r=t==="maxProperties"?"more":"fewer";return(0,ut.str)`must NOT have ${r} than ${e} properties`},params:o(({schemaCode:t})=>(0,ut._)`{limit: ${t}}`,"params")},rl={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:tl,code(t){let{keyword:e,data:r,schemaCode:s}=t,n=e==="maxProperties"?ut.operators.GT:ut.operators.LT;t.fail$data((0,ut._)`Object.keys(${r}).length ${n} ${s}`)}};os.default=rl});var ko=$(as=>{"use strict";Object.defineProperty(as,"__esModule",{value:!0});var lt=Q(),dt=N(),sl=j(),nl={message:o(({params:{missingProperty:t}})=>(0,dt.str)`must have required property '${t}'`,"message"),params:o(({params:{missingProperty:t}})=>(0,dt._)`{missingProperty: ${t}}`,"params")},ol={keyword:"required",type:"object",schemaType:"array",$data:!0,error:nl,code(t){let{gen:e,schema:r,schemaCode:s,data:n,$data:a,it:i}=t,{opts:c}=i;if(!a&&r.length===0)return;let u=r.length>=c.loopRequired;if(i.allErrors?d():l(),c.strictRequired){let y=t.parentSchema.properties,{definedProperties:p}=t.it;for(let h of r)if(y?.[h]===void 0&&!p.has(h)){let m=i.schemaEnv.baseId+i.errSchemaPath,g=`required property "${h}" is not defined at "${m}" (strictRequired)`;(0,sl.checkStrictMode)(i,g,i.opts.strictRequired)}}function d(){if(u||a)t.block$data(dt.nil,f);else for(let y of r)(0,lt.checkReportMissingProp)(t,y)}o(d,"allErrorsMode");function l(){let y=e.let("missing");if(u||a){let p=e.let("valid",!0);t.block$data(p,()=>_(y,p)),t.ok(p)}else e.if((0,lt.checkMissingProp)(t,r,y)),(0,lt.reportMissingProp)(t,y),e.else()}o(l,"exitOnErrorMode");function f(){e.forOf("prop",s,y=>{t.setParams({missingProperty:y}),e.if((0,lt.noPropertyInData)(e,n,y,c.ownProperties),()=>t.error())})}o(f,"loopAllRequired");function _(y,p){t.setParams({missingProperty:y}),e.forOf(y,s,()=>{e.assign(p,(0,lt.propertyInData)(e,n,y,c.ownProperties)),e.if((0,dt.not)(p),()=>{t.error(),e.break()})},dt.nil)}o(_,"loopUntilMissing")}};as.default=ol});var qo=$(is=>{"use strict";Object.defineProperty(is,"__esModule",{value:!0});var ft=N(),al={message({keyword:t,schemaCode:e}){let r=t==="maxItems"?"more":"fewer";return(0,ft.str)`must NOT have ${r} than ${e} items`},params:o(({schemaCode:t})=>(0,ft._)`{limit: ${t}}`,"params")},il={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:al,code(t){let{keyword:e,data:r,schemaCode:s}=t,n=e==="maxItems"?ft.operators.GT:ft.operators.LT;t.fail$data((0,ft._)`${r}.length ${n} ${s}`)}};is.default=il});var Ft=$(cs=>{"use strict";Object.defineProperty(cs,"__esModule",{value:!0});var Oo=qr();Oo.code='require("ajv/dist/runtime/equal").default';cs.default=Oo});var jo=$(ls=>{"use strict";Object.defineProperty(ls,"__esModule",{value:!0});var us=et(),z=N(),cl=j(),ul=Ft(),ll={message:o(({params:{i:t,j:e}})=>(0,z.str)`must NOT have duplicate items (items ## ${e} and ${t} are identical)`,"message"),params:o(({params:{i:t,j:e}})=>(0,z._)`{i: ${t}, j: ${e}}`,"params")},dl={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:ll,code(t){let{gen:e,data:r,$data:s,schema:n,parentSchema:a,schemaCode:i,it:c}=t;if(!s&&!n)return;let u=e.let("valid"),d=a.items?(0,us.getSchemaTypes)(a.items):[];t.block$data(u,l,(0,z._)`${i} === false`),t.ok(u);function l(){let p=e.let("i",(0,z._)`${r}.length`),h=e.let("j");t.setParams({i:p,j:h}),e.assign(u,!0),e.if((0,z._)`${p} > 1`,()=>(f()?_:y)(p,h))}o(l,"validateUniqueItems");function f(){return d.length>0&&!d.some(p=>p==="object"||p==="array")}o(f,"canOptimize");function _(p,h){let m=e.name("item"),g=(0,us.checkDataTypes)(d,m,c.opts.strictNumbers,us.DataType.Wrong),O=e.const("indices",(0,z._)`{}`);e.for((0,z._)`;${p}--;`,()=>{e.let(m,(0,z._)`${r}[${p}]`),e.if(g,(0,z._)`continue`),d.length>1&&e.if((0,z._)`typeof ${m} == "string"`,(0,z._)`${m} += "_"`),e.if((0,z._)`typeof ${O}[${m}] == "number"`,()=>{e.assign(h,(0,z._)`${O}[${m}]`),t.error(),e.assign(u,!1).break()}).code((0,z._)`${O}[${m}] = ${p}`)})}o(_,"loopN");function y(p,h){let m=(0,cl.useFunc)(e,ul.default),g=e.name("outer");e.label(g).for((0,z._)`;${p}--;`,()=>e.for((0,z._)`${h} = ${p}; ${h}--;`,()=>e.if((0,z._)`${m}(${r}[${p}], ${r}[${h}])`,()=>{t.error(),e.assign(u,!1).break(g)})))}o(y,"loopN2")}};ls.default=dl});var Ro=$(fs=>{"use strict";Object.defineProperty(fs,"__esModule",{value:!0});var ds=N(),fl=j(),hl=Ft(),pl={message:"must be equal to constant",params:o(({schemaCode:t})=>(0,ds._)`{allowedValue: ${t}}`,"params")},ml={keyword:"const",$data:!0,error:pl,code(t){let{gen:e,data:r,$data:s,schemaCode:n,schema:a}=t;s||a&&typeof a=="object"?t.fail$data((0,ds._)`!${(0,fl.useFunc)(e,hl.default)}(${r}, ${n})`):t.fail((0,ds._)`${a} !== ${r}`)}};fs.default=ml});var To=$(hs=>{"use strict";Object.defineProperty(hs,"__esModule",{value:!0});var ht=N(),yl=j(),_l=Ft(),gl={message:"must be equal to one of the allowed values",params:o(({schemaCode:t})=>(0,ht._)`{allowedValues: ${t}}`,"params")},$l={keyword:"enum",schemaType:"array",$data:!0,error:gl,code(t){let{gen:e,data:r,$data:s,schema:n,schemaCode:a,it:i}=t;if(!s&&n.length===0)throw new Error("enum must have non-empty array");let c=n.length>=i.opts.loopEnum,u,d=o(()=>u??(u=(0,yl.useFunc)(e,_l.default)),"getEql"),l;if(c||s)l=e.let("valid"),t.block$data(l,f);else{if(!Array.isArray(n))throw new Error("ajv implementation error");let y=e.const("vSchema",a);l=(0,ht.or)(...n.map((p,h)=>_(y,h)))}t.pass(l);function f(){e.assign(l,!1),e.forOf("v",a,y=>e.if((0,ht._)`${d()}(${r}, ${y})`,()=>e.assign(l,!0).break()))}o(f,"loopEnum");function _(y,p){let h=n[p];return typeof h=="object"&&h!==null?(0,ht._)`${d()}(${r}, ${y}[${p}])`:(0,ht._)`${r} === ${h}`}o(_,"equalCode")}};hs.default=$l});var Rl=$(ps=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var vl=vo(),wl=wo(),bl=So(),El=Po(),Sl=No(),Pl=ko(),Nl=qo(),kl=jo(),ql=Ro(),Ol=To(),jl=[vl.default,wl.default,bl.default,El.default,Sl.default,Pl.default,Nl.default,kl.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},ql.default,Ol.default];ps.default=jl});var ys=$(pt=>{"use strict";Object.defineProperty(pt,"__esModule",{value:!0});pt.validateAdditionalItems=void 0;var Oe=N(),ms=j(),Tl={message:o(({params:{len:t}})=>(0,Oe.str)`must NOT have more than ${t} items`,"message"),params:o(({params:{len:t}})=>(0,Oe._)`{limit: ${t}}`,"params")},Il={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:Tl,code(t){let{parentSchema:e,it:r}=t,{items:s}=e;if(!Array.isArray(s)){(0,ms.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}Io(t,s)}};function Io(t,e){let{gen:r,schema:s,data:n,keyword:a,it:i}=t;i.items=!0;let c=r.const("len",(0,Oe._)`${n}.length`);if(s===!1)t.setParams({len:e.length}),t.pass((0,Oe._)`${c} <= ${e.length}`);else if(typeof s=="object"&&!(0,ms.alwaysValidSchema)(i,s)){let d=r.var("valid",(0,Oe._)`${c} <= ${e.length}`);r.if((0,Oe.not)(d),()=>u(d)),t.ok(d)}function u(d){r.forRange("i",e.length,c,l=>{t.subschema({keyword:a,dataProp:l,dataPropType:ms.Type.Num},d),i.allErrors||r.if((0,Oe.not)(d),()=>r.break())})}o(u,"validateItems")}o(Io,"validateAdditionalItems");pt.validateAdditionalItems=Io;pt.default=Il});var _s=$(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.validateTuple=void 0;var Co=N(),Lt=j(),Cl=Q(),Ml={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(t){let{schema:e,it:r}=t;if(Array.isArray(e))return Mo(t,"additionalItems",e);r.items=!0,!(0,Lt.alwaysValidSchema)(r,e)&&t.ok((0,Cl.validateArray)(t))}};function Mo(t,e,r=t.schema){let{gen:s,parentSchema:n,data:a,keyword:i,it:c}=t;l(n),c.opts.unevaluated&&r.length&&c.items!==!0&&(c.items=Lt.mergeEvaluated.items(s,r.length,c.items));let u=s.name("valid"),d=s.const("len",(0,Co._)`${a}.length`);r.forEach((f,_)=>{(0,Lt.alwaysValidSchema)(c,f)||(s.if((0,Co._)`${d} > ${_}`,()=>t.subschema({keyword:i,schemaProp:_,dataProp:_},u)),t.ok(u))});function l(f){let{opts:_,errSchemaPath:y}=c,p=r.length,h=p===f.minItems&&(p===f.maxItems||f[e]===!1);if(_.strictTuples&&!h){let m=`"${i}" is ${p}-tuple, but minItems or maxItems/${e} are not specified or different at path "${y}"`;(0,Lt.checkStrictMode)(c,m,_.strictTuples)}}o(l,"checkStrictTuple")}o(Mo,"validateTuple");mt.validateTuple=Mo;mt.default=Ml});var Ao=$(gs=>{"use strict";Object.defineProperty(gs,"__esModule",{value:!0});var Al=_s(),Dl={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:o(t=>(0,Al.validateTuple)(t,"items"),"code")};gs.default=Dl});var Vo=$($s=>{"use strict";Object.defineProperty($s,"__esModule",{value:!0});var Do=N(),Vl=j(),zl=Q(),Ul=ys(),Kl={message:o(({params:{len:t}})=>(0,Do.str)`must NOT have more than ${t} items`,"message"),params:o(({params:{len:t}})=>(0,Do._)`{limit: ${t}}`,"params")},Fl={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:Kl,code(t){let{schema:e,parentSchema:r,it:s}=t,{prefixItems:n}=r;s.items=!0,!(0,Vl.alwaysValidSchema)(s,e)&&(n?(0,Ul.validateAdditionalItems)(t,n):t.ok((0,zl.validateArray)(t)))}};$s.default=Fl});var zo=$(vs=>{"use strict";Object.defineProperty(vs,"__esModule",{value:!0});var Y=N(),Ht=j(),Ll={message:o(({params:{min:t,max:e}})=>e===void 0?(0,Y.str)`must contain at least ${t} valid item(s)`:(0,Y.str)`must contain at least ${t} and no more than ${e} valid item(s)`,"message"),params:o(({params:{min:t,max:e}})=>e===void 0?(0,Y._)`{minContains: ${t}}`:(0,Y._)`{minContains: ${t}, maxContains: ${e}}`,"params")},Hl={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:Ll,code(t){let{gen:e,schema:r,parentSchema:s,data:n,it:a}=t,i,c,{minContains:u,maxContains:d}=s;a.opts.next?(i=u===void 0?1:u,c=d):i=1;let l=e.const("len",(0,Y._)`${n}.length`);if(t.setParams({min:i,max:c}),c===void 0&&i===0){(0,Ht.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(c!==void 0&&i>c){(0,Ht.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),t.fail();return}if((0,Ht.alwaysValidSchema)(a,r)){let h=(0,Y._)`${l} >= ${i}`;c!==void 0&&(h=(0,Y._)`${h} && ${l} <= ${c}`),t.pass(h);return}a.items=!0;let f=e.name("valid");c===void 0&&i===1?y(f,()=>e.if(f,()=>e.break())):i===0?(e.let(f,!0),c!==void 0&&e.if((0,Y._)`${n}.length > 0`,_)):(e.let(f,!1),_()),t.result(f,()=>t.reset());function _(){let h=e.name("_valid"),m=e.let("count",0);y(h,()=>e.if(h,()=>p(m)))}o(_,"validateItemsWithCount");function y(h,m){e.forRange("i",0,l,g=>{t.subschema({keyword:"contains",dataProp:g,dataPropType:Ht.Type.Num,compositeRule:!0},h),m()})}o(y,"validateItems");function p(h){e.code((0,Y._)`${h}++`),c===void 0?e.if((0,Y._)`${h} >= ${i}`,()=>e.assign(f,!0).break()):(e.if((0,Y._)`${h} > ${c}`,()=>e.assign(f,!1).break()),i===1?e.assign(f,!0):e.if((0,Y._)`${h} >= ${i}`,()=>e.assign(f,!0)))}o(p,"checkLimits")}};vs.default=Hl});var Fo=$(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.validateSchemaDeps=ae.validatePropertyDeps=ae.error=void 0;var ws=N(),xl=j(),yt=Q();ae.error={message:o(({params:{property:t,depsCount:e,deps:r}})=>{let s=e===1?"property":"properties";return(0,ws.str)`must have ${s} ${r} when property ${t} is present`},"message"),params:o(({params:{property:t,depsCount:e,deps:r,missingProperty:s}})=>(0,ws._)`{property: ${t},
7
+ missingProperty: ${s},
8
+ depsCount: ${e},
9
+ deps: ${r}}`,"params")};var Gl={keyword:"dependencies",type:"object",schemaType:"object",error:ae.error,code(t){let[e,r]=Jl(t);Uo(t,e),Ko(t,r)}};function Jl({schema:t}){let e={},r={};for(let s in t){if(s==="__proto__")continue;let n=Array.isArray(t[s])?e:r;n[s]=t[s]}return[e,r]}o(Jl,"splitDependencies");function Uo(t,e=t.schema){let{gen:r,data:s,it:n}=t;if(Object.keys(e).length===0)return;let a=r.let("missing");for(let i in e){let c=e[i];if(c.length===0)continue;let u=(0,yt.propertyInData)(r,s,i,n.opts.ownProperties);t.setParams({property:i,depsCount:c.length,deps:c.join(", ")}),n.allErrors?r.if(u,()=>{for(let d of c)(0,yt.checkReportMissingProp)(t,d)}):(r.if((0,ws._)`${u} && (${(0,yt.checkMissingProp)(t,c,a)})`),(0,yt.reportMissingProp)(t,a),r.else())}}o(Uo,"validatePropertyDeps");ae.validatePropertyDeps=Uo;function Ko(t,e=t.schema){let{gen:r,data:s,keyword:n,it:a}=t,i=r.name("valid");for(let c in e)(0,xl.alwaysValidSchema)(a,e[c])||(r.if((0,yt.propertyInData)(r,s,c,a.opts.ownProperties),()=>{let u=t.subschema({keyword:n,schemaProp:c},i);t.mergeValidEvaluated(u,i)},()=>r.var(i,!0)),t.ok(i))}o(Ko,"validateSchemaDeps");ae.validateSchemaDeps=Ko;ae.default=Gl});var Ho=$(bs=>{"use strict";Object.defineProperty(bs,"__esModule",{value:!0});var Lo=N(),Wl=j(),Bl={message:"property name must be valid",params:o(({params:t})=>(0,Lo._)`{propertyName: ${t.propertyName}}`,"params")},Ql={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:Bl,code(t){let{gen:e,schema:r,data:s,it:n}=t;if((0,Wl.alwaysValidSchema)(n,r))return;let a=e.name("valid");e.forIn("key",s,i=>{t.setParams({propertyName:i}),t.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},a),e.if((0,Lo.not)(a),()=>{t.error(!0),n.allErrors||e.break()})}),t.ok(a)}};bs.default=Ql});var Ss=$(Es=>{"use strict";Object.defineProperty(Es,"__esModule",{value:!0});var xt=Q(),re=N(),Xl=le(),Gt=j(),Yl={message:"must NOT have additional properties",params:o(({params:t})=>(0,re._)`{additionalProperty: ${t.additionalProperty}}`,"params")},Zl={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:Yl,code(t){let{gen:e,schema:r,parentSchema:s,data:n,errsCount:a,it:i}=t;if(!a)throw new Error("ajv implementation error");let{allErrors:c,opts:u}=i;if(i.props=!0,u.removeAdditional!=="all"&&(0,Gt.alwaysValidSchema)(i,r))return;let d=(0,xt.allSchemaProperties)(s.properties),l=(0,xt.allSchemaProperties)(s.patternProperties);f(),t.ok((0,re._)`${a} === ${Xl.default.errors}`);function f(){e.forIn("key",n,m=>{!d.length&&!l.length?p(m):e.if(_(m),()=>p(m))})}o(f,"checkAdditionalProperties");function _(m){let g;if(d.length>8){let O=(0,Gt.schemaRefOrVal)(i,s.properties,"properties");g=(0,xt.isOwnProperty)(e,O,m)}else d.length?g=(0,re.or)(...d.map(O=>(0,re._)`${m} === ${O}`)):g=re.nil;return l.length&&(g=(0,re.or)(g,...l.map(O=>(0,re._)`${(0,xt.usePattern)(t,O)}.test(${m})`))),(0,re.not)(g)}o(_,"isAdditional");function y(m){e.code((0,re._)`delete ${n}[${m}]`)}o(y,"deleteAdditional");function p(m){if(u.removeAdditional==="all"||u.removeAdditional&&r===!1){y(m);return}if(r===!1){t.setParams({additionalProperty:m}),t.error(),c||e.break();return}if(typeof r=="object"&&!(0,Gt.alwaysValidSchema)(i,r)){let g=e.name("valid");u.removeAdditional==="failing"?(h(m,g,!1),e.if((0,re.not)(g),()=>{t.reset(),y(m)})):(h(m,g),c||e.if((0,re.not)(g),()=>e.break()))}}o(p,"additionalPropertyCode");function h(m,g,O){let k={keyword:"additionalProperties",dataProp:m,dataPropType:Gt.Type.Str};O===!1&&Object.assign(k,{compositeRule:!0,createErrors:!1,allErrors:!1}),t.subschema(k,g)}o(h,"applyAdditionalSchema")}};Es.default=Zl});var Jo=$(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var ed=Ot(),xo=Q(),Ps=j(),Go=Ss(),td={keyword:"properties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,parentSchema:s,data:n,it:a}=t;a.opts.removeAdditional==="all"&&s.additionalProperties===void 0&&Go.default.code(new ed.KeywordCxt(a,Go.default,"additionalProperties"));let i=(0,xo.allSchemaProperties)(r);for(let f of i)a.definedProperties.add(f);a.opts.unevaluated&&i.length&&a.props!==!0&&(a.props=Ps.mergeEvaluated.props(e,(0,Ps.toHash)(i),a.props));let c=i.filter(f=>!(0,Ps.alwaysValidSchema)(a,r[f]));if(c.length===0)return;let u=e.name("valid");for(let f of c)d(f)?l(f):(e.if((0,xo.propertyInData)(e,n,f,a.opts.ownProperties)),l(f),a.allErrors||e.else().var(u,!0),e.endIf()),t.it.definedProperties.add(f),t.ok(u);function d(f){return a.opts.useDefaults&&!a.compositeRule&&r[f].default!==void 0}o(d,"hasDefault");function l(f){t.subschema({keyword:"properties",schemaProp:f,dataProp:f},u)}o(l,"applyPropertySchema")}};Ns.default=td});var Xo=$(ks=>{"use strict";Object.defineProperty(ks,"__esModule",{value:!0});var Wo=Q(),Jt=N(),Bo=j(),Qo=j(),rd={keyword:"patternProperties",type:"object",schemaType:"object",code(t){let{gen:e,schema:r,data:s,parentSchema:n,it:a}=t,{opts:i}=a,c=(0,Wo.allSchemaProperties)(r),u=c.filter(h=>(0,Bo.alwaysValidSchema)(a,r[h]));if(c.length===0||u.length===c.length&&(!a.opts.unevaluated||a.props===!0))return;let d=i.strictSchema&&!i.allowMatchingProperties&&n.properties,l=e.name("valid");a.props!==!0&&!(a.props instanceof Jt.Name)&&(a.props=(0,Qo.evaluatedPropsToName)(e,a.props));let{props:f}=a;_();function _(){for(let h of c)d&&y(h),a.allErrors?p(h):(e.var(l,!0),p(h),e.if(l))}o(_,"validatePatternProperties");function y(h){for(let m in d)new RegExp(h).test(m)&&(0,Bo.checkStrictMode)(a,`property ${m} matches pattern ${h} (use allowMatchingProperties)`)}o(y,"checkMatchingProperties");function p(h){e.forIn("key",s,m=>{e.if((0,Jt._)`${(0,Wo.usePattern)(t,h)}.test(${m})`,()=>{let g=u.includes(h);g||t.subschema({keyword:"patternProperties",schemaProp:h,dataProp:m,dataPropType:Qo.Type.Str},l),a.opts.unevaluated&&f!==!0?e.assign((0,Jt._)`${f}[${m}]`,!0):!g&&!a.allErrors&&e.if((0,Jt.not)(l),()=>e.break())})})}o(p,"validateProperties")}};ks.default=rd});var Yo=$(qs=>{"use strict";Object.defineProperty(qs,"__esModule",{value:!0});var sd=j(),nd={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(t){let{gen:e,schema:r,it:s}=t;if((0,sd.alwaysValidSchema)(s,r)){t.fail();return}let n=e.name("valid");t.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},n),t.failResult(n,()=>t.reset(),()=>t.error())},error:{message:"must NOT be valid"}};qs.default=nd});var Zo=$(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});var od=Q(),ad={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:od.validateUnion,error:{message:"must match a schema in anyOf"}};Os.default=ad});var ea=$(js=>{"use strict";Object.defineProperty(js,"__esModule",{value:!0});var Wt=N(),id=j(),cd={message:"must match exactly one schema in oneOf",params:o(({params:t})=>(0,Wt._)`{passingSchemas: ${t.passing}}`,"params")},ud={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:cd,code(t){let{gen:e,schema:r,parentSchema:s,it:n}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");if(n.opts.discriminator&&s.discriminator)return;let a=r,i=e.let("valid",!1),c=e.let("passing",null),u=e.name("_valid");t.setParams({passing:c}),e.block(d),t.result(i,()=>t.reset(),()=>t.error(!0));function d(){a.forEach((l,f)=>{let _;(0,id.alwaysValidSchema)(n,l)?e.var(u,!0):_=t.subschema({keyword:"oneOf",schemaProp:f,compositeRule:!0},u),f>0&&e.if((0,Wt._)`${u} && ${i}`).assign(i,!1).assign(c,(0,Wt._)`[${c}, ${f}]`).else(),e.if(u,()=>{e.assign(i,!0),e.assign(c,f),_&&t.mergeEvaluated(_,Wt.Name)})})}o(d,"validateOneOf")}};js.default=ud});var ta=$(Rs=>{"use strict";Object.defineProperty(Rs,"__esModule",{value:!0});var ld=j(),dd={keyword:"allOf",schemaType:"array",code(t){let{gen:e,schema:r,it:s}=t;if(!Array.isArray(r))throw new Error("ajv implementation error");let n=e.name("valid");r.forEach((a,i)=>{if((0,ld.alwaysValidSchema)(s,a))return;let c=t.subschema({keyword:"allOf",schemaProp:i},n);t.ok(n),t.mergeEvaluated(c)})}};Rs.default=dd});var na=$(Ts=>{"use strict";Object.defineProperty(Ts,"__esModule",{value:!0});var Bt=N(),sa=j(),fd={message:o(({params:t})=>(0,Bt.str)`must match "${t.ifClause}" schema`,"message"),params:o(({params:t})=>(0,Bt._)`{failingKeyword: ${t.ifClause}}`,"params")},hd={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:fd,code(t){let{gen:e,parentSchema:r,it:s}=t;r.then===void 0&&r.else===void 0&&(0,sa.checkStrictMode)(s,'"if" without "then" and "else" is ignored');let n=ra(s,"then"),a=ra(s,"else");if(!n&&!a)return;let i=e.let("valid",!0),c=e.name("_valid");if(u(),t.reset(),n&&a){let l=e.let("ifClause");t.setParams({ifClause:l}),e.if(c,d("then",l),d("else",l))}else n?e.if(c,d("then")):e.if((0,Bt.not)(c),d("else"));t.pass(i,()=>t.error(!0));function u(){let l=t.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},c);t.mergeEvaluated(l)}o(u,"validateIf");function d(l,f){return()=>{let _=t.subschema({keyword:l},c);e.assign(i,c),t.mergeValidEvaluated(_,i),f?e.assign(f,(0,Bt._)`${l}`):t.setParams({ifClause:l})}}o(d,"validateClause")}};function ra(t,e){let r=t.schema[e];return r!==void 0&&!(0,sa.alwaysValidSchema)(t,r)}o(ra,"hasSchema");Ts.default=hd});var oa=$(Is=>{"use strict";Object.defineProperty(Is,"__esModule",{value:!0});var pd=j(),md={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:t,parentSchema:e,it:r}){e.if===void 0&&(0,pd.checkStrictMode)(r,`"${t}" without "if" is ignored`)}};Is.default=md});var Id=$(Cs=>{"use strict";Object.defineProperty(Cs,"__esModule",{value:!0});var yd=ys(),_d=Ao(),gd=_s(),$d=Vo(),vd=zo(),wd=Fo(),bd=Ho(),Ed=Ss(),Sd=Jo(),Pd=Xo(),Nd=Yo(),kd=Zo(),qd=ea(),Od=ta(),jd=na(),Rd=oa();function Td(t=!1){let e=[Nd.default,kd.default,qd.default,Od.default,jd.default,Rd.default,bd.default,Ed.default,wd.default,Sd.default,Pd.default];return t?e.push(_d.default,$d.default):e.push(yd.default,gd.default),e.push(vd.default),e}o(Td,"getApplicator");Cs.default=Td});var aa=$(Ms=>{"use strict";Object.defineProperty(Ms,"__esModule",{value:!0});var D=N(),Cd={message:o(({schemaCode:t})=>(0,D.str)`must match format "${t}"`,"message"),params:o(({schemaCode:t})=>(0,D._)`{format: ${t}}`,"params")},Md={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:Cd,code(t,e){let{gen:r,data:s,$data:n,schema:a,schemaCode:i,it:c}=t,{opts:u,errSchemaPath:d,schemaEnv:l,self:f}=c;if(!u.validateFormats)return;n?_():y();function _(){let p=r.scopeValue("formats",{ref:f.formats,code:u.code.formats}),h=r.const("fDef",(0,D._)`${p}[${i}]`),m=r.let("fType"),g=r.let("format");r.if((0,D._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(m,(0,D._)`${h}.type || "string"`).assign(g,(0,D._)`${h}.validate`),()=>r.assign(m,(0,D._)`"string"`).assign(g,h)),t.fail$data((0,D.or)(O(),k()));function O(){return u.strictSchema===!1?D.nil:(0,D._)`${i} && !${g}`}o(O,"unknownFmt");function k(){let M=l.$async?(0,D._)`(${h}.async ? await ${g}(${s}) : ${g}(${s}))`:(0,D._)`${g}(${s})`,b=(0,D._)`(typeof ${g} == "function" ? ${M} : ${g}.test(${s}))`;return(0,D._)`${g} && ${g} !== true && ${m} === ${e} && !${b}`}o(k,"invalidFmt")}o(_,"validate$DataFormat");function y(){let p=f.formats[a];if(!p){O();return}if(p===!0)return;let[h,m,g]=k(p);h===e&&t.pass(M());function O(){if(u.strictSchema===!1){f.logger.warn(b());return}throw new Error(b());function b(){return`unknown format "${a}" ignored in schema at path "${d}"`}}o(O,"unknownFormat");function k(b){let se=b instanceof RegExp?(0,D.regexpCode)(b):u.code.formats?(0,D._)`${u.code.formats}${(0,D.getProperty)(a)}`:void 0,ie=r.scopeValue("formats",{key:a,ref:b,code:se});return typeof b=="object"&&!(b instanceof RegExp)?[b.type||"string",b.validate,(0,D._)`${ie}.validate`]:["string",b,ie]}o(k,"getFormat");function M(){if(typeof p=="object"&&!(p instanceof RegExp)&&p.async){if(!l.$async)throw new Error("async format in sync schema");return(0,D._)`await ${g}(${s})`}return typeof m=="function"?(0,D._)`${g}(${s})`:(0,D._)`${g}.test(${s})`}o(M,"validCondition")}o(y,"validateFormat")}};Ms.default=Md});var Vd=$(As=>{"use strict";Object.defineProperty(As,"__esModule",{value:!0});var Ad=aa(),Dd=[Ad.default];As.default=Dd});var zd=$(Le=>{"use strict";Object.defineProperty(Le,"__esModule",{value:!0});Le.contentVocabulary=Le.metadataVocabulary=void 0;Le.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Le.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});export{N as a,j as b,le as c,Ot as d,Mr as e,jt as f,Tt as g,ju as h,$o as i,Fu as j,Rl as k,Fo as l,Id as m,Vd as n,zd as o,Mu as p};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{t as k,u as P,v as E,w as _}from"./chunk-NJLULBTM.js";import{n as i}from"./chunk-VVNV4NNW.js";import{A as a}from"./chunk-PF56N7ZY.js";import{a as u}from"./chunk-FTQLQJQV.js";var C="harness_read_file",T=a.object({path:a.string().min(1).max(2e3),offset:a.number().int().nonnegative().default(0),length:a.number().int().positive().max(65536).default(16384)}).strict(),q={type:"function",function:{name:C,description:"Read a byte range from a policy-visible file in the selected immutable Harness release. Paths are relative to that release; private files are unavailable.",parameters:{type:"object",properties:{path:{type:"string"},offset:{type:"integer",minimum:0},length:{type:"integer",minimum:1,maximum:65536}},required:["path"],additionalProperties:!1}}};function z(s){let g=typeof s.sourcePackage=="object"&&s.sourcePackage!==null&&"schemaVersion"in s.sourcePackage&&s.sourcePackage.schemaVersion==="openpond.harnessPolicySourcePackage.v1",l=g?k(s.sourcePackage,s.expectedRelease):E(s.sourcePackage,s.expectedRelease),H=g?P(l):_(l),{agentSnapshot:r,harnessRelease:o}=l,h=u(e=>{let t=H.get(e);if(!t)throw new Error(`Released Harness source is missing: ${e}`);try{return new TextDecoder("utf-8",{fatal:!0}).decode(t)}catch{throw new Error(`Released Harness instruction source is not UTF-8: ${e}`)}},"text");if(!a.object({runtimeProtocol:a.literal("openpond.agent-runtime.v1")}).strict().safeParse(JSON.parse(h(o.program.path))).success||o.metadata.runtimeProtocol!=="openpond.agent-runtime.v1")throw new Error("Released Harness program requires a different execution adapter.");if(r.agents.length)throw new Error("This Harness runtime does not execute released subagent programs.");let y=a.union([a.object({dependencies:a.record(a.string(),a.string())}).strict(),a.object({source:a.literal("openpond.profile"),profileId:a.string().min(1),profileGitHead:a.string().nullable(),dependenciesResolved:a.literal(!1)}).strict()]).parse(JSON.parse(h(r.dependencyLock.path))),$="dependencies"in y?y.dependencies:{};for(let[e,t]of Object.entries($))if(s.dependencies?.[e]!==t)throw new Error(`Released Harness dependency is unavailable: ${e}@${t}`);let b=[];for(let e of r.capabilityRequirements){let t=s.capabilities?.find(n=>n.id===e.id);if(!(t&&e.scopes.every(n=>t.scopes.includes(n)))){if(e.required)throw new Error(`Released Harness capability is unavailable: ${e.id}`);b.push(e.id)}}if(s.tools.some(e=>e.name===C))throw new Error("Harness source reader conflicts with a runtime tool.");for(let e of[...r.toolDeclarations,...o.tools]){let t=s.tools.find(n=>n.name===e.name);if(!t||i(t.inputSchema)!==e.inputSchemaHash||i(e.inputSchema)!==e.inputSchemaHash)throw new Error(`Released Harness tool is unavailable or has a different schema: ${e.name}`)}let c=o.files.filter(e=>e.visibility==="policy"&&e.path!==o.program.path&&e.path!==r.dependencyLock.path),j=r.instructions.map(e=>`Released instruction (${e.path}):
2
+ import{t as k,u as P,v as E,w as _}from"./chunk-OTDDXEQ6.js";import{n as i}from"./chunk-RCT3O3HQ.js";import{A as a}from"./chunk-X2J2P5ZT.js";import{a as u}from"./chunk-FTQLQJQV.js";var C="harness_read_file",T=a.object({path:a.string().min(1).max(2e3),offset:a.number().int().nonnegative().default(0),length:a.number().int().positive().max(65536).default(16384)}).strict(),q={type:"function",function:{name:C,description:"Read a byte range from a policy-visible file in the selected immutable Harness release. Paths are relative to that release; private files are unavailable.",parameters:{type:"object",properties:{path:{type:"string"},offset:{type:"integer",minimum:0},length:{type:"integer",minimum:1,maximum:65536}},required:["path"],additionalProperties:!1}}};function z(s){let g=typeof s.sourcePackage=="object"&&s.sourcePackage!==null&&"schemaVersion"in s.sourcePackage&&s.sourcePackage.schemaVersion==="openpond.harnessPolicySourcePackage.v1",l=g?k(s.sourcePackage,s.expectedRelease):E(s.sourcePackage,s.expectedRelease),H=g?P(l):_(l),{agentSnapshot:r,harnessRelease:o}=l,h=u(e=>{let t=H.get(e);if(!t)throw new Error(`Released Harness source is missing: ${e}`);try{return new TextDecoder("utf-8",{fatal:!0}).decode(t)}catch{throw new Error(`Released Harness instruction source is not UTF-8: ${e}`)}},"text");if(!a.object({runtimeProtocol:a.literal("openpond.agent-runtime.v1")}).strict().safeParse(JSON.parse(h(o.program.path))).success||o.metadata.runtimeProtocol!=="openpond.agent-runtime.v1")throw new Error("Released Harness program requires a different execution adapter.");if(r.agents.length)throw new Error("This Harness runtime does not execute released subagent programs.");let y=a.union([a.object({dependencies:a.record(a.string(),a.string())}).strict(),a.object({source:a.literal("openpond.profile"),profileId:a.string().min(1),profileGitHead:a.string().nullable(),dependenciesResolved:a.literal(!1)}).strict()]).parse(JSON.parse(h(r.dependencyLock.path))),$="dependencies"in y?y.dependencies:{};for(let[e,t]of Object.entries($))if(s.dependencies?.[e]!==t)throw new Error(`Released Harness dependency is unavailable: ${e}@${t}`);let b=[];for(let e of r.capabilityRequirements){let t=s.capabilities?.find(n=>n.id===e.id);if(!(t&&e.scopes.every(n=>t.scopes.includes(n)))){if(e.required)throw new Error(`Released Harness capability is unavailable: ${e.id}`);b.push(e.id)}}if(s.tools.some(e=>e.name===C))throw new Error("Harness source reader conflicts with a runtime tool.");for(let e of[...r.toolDeclarations,...o.tools]){let t=s.tools.find(n=>n.name===e.name);if(!t||i(t.inputSchema)!==e.inputSchemaHash||i(e.inputSchema)!==e.inputSchemaHash)throw new Error(`Released Harness tool is unavailable or has a different schema: ${e.name}`)}let c=o.files.filter(e=>e.visibility==="policy"&&e.path!==o.program.path&&e.path!==r.dependencyLock.path),j=r.instructions.map(e=>`Released instruction (${e.path}):
3
3
  ${h(e.path)}`),w=r.skills.map(e=>`Released Skill (${e.path}):
4
4
  ${h(e.path)}`),p=[s.baseSystemPrompt,...j,w.length?"Apply the following released Skills when relevant to the task. Read their referenced resources from the selected release with harness_read_file.":"",...w,c.length?`Selected Harness files (paths relative to the release):
5
5
  ${c.map(e=>e.path).join(`
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{v as x}from"./chunk-DQI5TE6A.js";import{B as I}from"./chunk-B4RKHHF7.js";import{p as T}from"./chunk-YU3C6U5V.js";import{a as A}from"./chunk-KVTBX2UP.js";import{a}from"./chunk-FTQLQJQV.js";function G(e){let n=e.trim().replace(/^```(?:json)?\s*/i,"").replace(/```\s*$/,"");try{let t=JSON.parse(n);return typeof t.score!="number"||typeof t.passed!="boolean"?null:{score:Math.max(0,Math.min(1,t.score)),passed:t.passed,feedback:typeof t.feedback=="string"?t.feedback.slice(0,2e4):"Model judge completed.",evidenceRefs:[]}}catch{return null}}a(G,"parseModelJudgeResult");function X(e){if(typeof e=="number"&&Number.isFinite(e)&&e>0)return Math.floor(e);let n=process.env.OPENPOND_HOSTED_WORKSPACE_TOOL_ROUNDS?.trim();if(!n)return 64;if(/^(unlimited|infinite|infinity)$/i.test(n))return Number.POSITIVE_INFINITY;let t=Number.parseInt(n,10);return Number.isFinite(t)&&t>0?t:64}a(X,"resolveMaxHostedWorkspaceToolRounds");function Y(e,n,t){let o=Date.now()-6e4;for(let r=e.length-1;r>=0;r-=1){let i=e[r],s=Date.parse(i.timestamp);if(Number.isFinite(s)&&s<o)return null;if(i.sessionId!==n||i.name!=="session.compaction.completed")continue;let d=i.data&&typeof i.data=="object"?i.data:null;if(d?.provider==="codex"&&d.codexThreadId===t)return i}return null}a(Y,"findRecentCodexCompactionCompleted");function Q(e){return e==="agent"||e==="skill"||e==="extension"||e==="model"||e==="configuration"?e:null}a(Q,"createImproveTargetKind");function V(e){if(!e)return;let n=Number(e);return Number.isFinite(n)&&n>0?Math.trunc(n):void 0}a(V,"createImproveLimit");var ne=new Set(["ask_user","get_profile","agent_inspect","agent_build","agent_validate","agent_eval","agent_run","agent_traces","agent_check","exec_command","view_image","list_files","read_files","search_files","write_file","write_files","edit_file","delete_file","workspace_status"]);function re(e){let n={type:"string"},t={type:"string",minLength:1};return[["list_files",{},[]],["workspace_status",{},[]],["read_files",{paths:{type:"array",items:t,minItems:1,maxItems:30}},["paths"]],["search_files",{query:{type:"string",minLength:1,maxLength:2e3}},["query"]],["write_file",{path:t,content:n},["path","content"]],["write_files",{files:{type:"object",additionalProperties:n,maxProperties:30}},["files"]],["edit_file",{path:t,oldText:{type:"string",minLength:1},newText:n,replaceAll:{type:"boolean"}},["path","oldText","newText"]],["delete_file",{path:t},["path"]]].map(([r,i,s])=>({name:r,description:`${r.replaceAll("_"," ")} in the isolated selected candidate component. Paths are relative to its public source tree.`,parameters:{type:"object",additionalProperties:!1,properties:i,required:s},execute:a(async d=>{let c=await e(d.session.id,{action:r,args:d.args,source:"chat_action"},{turnId:d.turnId,workspaceDiffBaseline:d.workspaceDiffBaseline});return x(d.callId,r,c)},"execute")}))}a(re,"candidateFileToolDefinitions");import{realpath as C}from"node:fs/promises";import p from"node:path";function ce(e){let n=[O()];if(!e.loadProfileState)return n;let t=a(async(r,i)=>{if(i&&(i.turnMetadata?.source==="experiment-improvement"||i.turnMetadata?.refinementCandidate!==void 0||i.session.metadata?.source==="experiment-improvement"||i.session.metadata?.refinementCandidate!==void 0)){if(!e.resolveCandidateProfile)throw new Error("Candidate authoring requires an admitted isolated Profile resolver.");let s=await e.resolveCandidateProfile(i);return S(s),s}return e.loadProfileState(r,i)},"loadProfileState"),o=a(async r=>{if(r.context.turnMetadata?.source==="experiment-improvement"||r.context.turnMetadata?.refinementCandidate!==void 0||r.context.session.metadata?.source==="experiment-improvement"||r.context.session.metadata?.refinementCandidate!==void 0){if(!e.executeCandidateAgentCommand)throw new Error("Candidate Agent commands require filesystem-confined execution.");return e.executeCandidateAgentCommand(r)}return I({...r,throwOnFailure:!1})},"runCommand");return n.push(E(t),u(t,o,"agent_inspect","inspect"),u(t,o,"agent_build","build"),u(t,o,"agent_validate","validate"),u(t,o,"agent_eval","eval"),D(t,o),u(t,o,"agent_traces","traces"),L(t,o)),n}a(ce,"createAuthoringModelToolDefinitions");function O(){return{name:"ask_user",description:"Ask one blocking user question when the answer materially changes the requested work and cannot be inferred safely. This call ends the current model turn after persisting the question; do not batch it with mutations.",parameters:{type:"object",additionalProperties:!1,properties:{question:{type:"string",minLength:1,maxLength:2e3},reason:{type:"string",minLength:1,maxLength:1e3},options:{type:"array",minItems:2,maxItems:5,items:{type:"object",additionalProperties:!1,properties:{id:{type:"string",minLength:1,maxLength:80},label:{type:"string",minLength:1,maxLength:160},description:{type:"string",minLength:1,maxLength:500}},required:["id","label"]}},allowFreeform:{type:"boolean"}},required:["question"]},execute:a(async e=>{let n=m(e.args,"question"),t=R(e.args,"reason"),o=q(e.args,"options").map(i=>g(i)).filter(i=>!!i).map(i=>({id:m(i,"id"),label:m(i,"label"),description:R(i,"description")})),r={questionId:`question_${e.turnId}_${e.callId}`,question:n,reason:t,options:o,allowFreeform:e.args.allowFreeform!==!1,status:"awaiting_user_input",nextStep:"end_turn"};return{...l(e.callId,"ask_user",!0,n,r),turnControl:"await_user_input"}},"execute")}}a(O,"askUserDefinition");function E(e){return{name:"get_profile",description:"Return the exact OpenPond Profile selected for this chat turn, including bounded local path, Skill, Agent, action, and Git context. Call before Profile authoring. This tool does not change the selected Profile or grant filesystem permission.",parameters:{type:"object",additionalProperties:!1,properties:{}},execute:a(async n=>{let t=h(n),o=await e(t,n),r=N(o,n.turnMetadata,t);return l(n.callId,"get_profile",!o.error,o.error??"Resolved selected Profile.",r)},"execute")}}a(E,"getProfileDefinition");function u(e,n,t,o){return{name:t,description:j(t),parameters:M(),execute:a(async r=>{let i=await f(e,r),s=await v(n,r,o,i.cwd);return l(r.callId,t,s.code===0&&!s.timedOut,s.code===0&&!s.timedOut?`${t} passed for ${i.agentId}.`:`${t} failed for ${i.agentId}.`,{agentId:i.agentId,cwd:i.cwd,command:o,...P(s)})},"execute")}}a(u,"agentCommandDefinition");function D(e,n){return{name:"agent_run",description:"Run one declared action on an exact enabled Profile Agent with typed JSON input. Use for behavioral proof, not as the default validation gate.",parameters:{type:"object",additionalProperties:!1,properties:{agentId:{type:"string",minLength:1},action:{type:"string",minLength:1},input:{type:"object",additionalProperties:!0}},required:["agentId","action"]},execute:a(async t=>{let o=await f(e,t),r=m(t.args,"action"),i=g(t.args,"input")??{},s=await n({context:t,command:"run",args:[r,"--json","--input",JSON.stringify(i),"--cwd",o.cwd],cwd:o.cwd,timeoutMs:12e4,maxOutputBytes:25e4});return l(t.callId,"agent_run",s.code===0&&!s.timedOut,s.code===0&&!s.timedOut?`Action ${r} passed for ${o.agentId}.`:`Action ${r} failed for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,action:r,input:i,...P(s)})},"execute")}}a(D,"agentRunDefinition");function L(e,n){return{name:"agent_check",description:"Run the mandatory Agent authoring gate\u2014inspect, build, validate, and eval\u2014in order for one exact Profile Agent. Stops on the first failure and returns bounded per-step receipts.",parameters:M(),execute:a(async t=>{let o=await f(e,t),r=[];for(let s of["inspect","build","validate","eval"]){let d=await v(n,t,s,o.cwd),c=P(d);if(r.push({command:s,receipt:c}),d.code!==0||d.timedOut)return l(t.callId,"agent_check",!1,`agent_check stopped at ${s} for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,passed:!1,failedStep:s,steps:r})}let i=await e(h(t),t);return l(t.callId,"agent_check",!0,`agent_check passed for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,passed:!0,failedStep:null,steps:r,profileRefresh:{activeProfile:i.activeProfile,agentIds:i.agents.map(s=>s.id).slice(0,200),actionIds:i.actionCatalog.map(s=>s.id).slice(0,500)}})},"execute")}}a(L,"agentCheckDefinition");async function f(e,n){let t=m(n.args,"agentId"),o=await e(h(n),n);S(o);let r=g(n.turnMetadata,"authoringIntent");if(r?.artifact==="agent"&&r.operation==="improve"&&typeof r.targetAgentId=="string"&&r.targetAgentId!==t)throw new Error(`Agent improve is bound to ${r.targetAgentId}; ${t} is not authorized.`);if(!o.agents.find(k=>k.id===t)?.enabled)throw new Error(`Enabled Profile Agent not found: ${t}`);let s=t==="default"?o.sourcePath:p.resolve(o.sourcePath,"agents",t),d=await C(o.sourcePath),c=await C(s).catch(()=>null);if(!c)throw new Error(`Profile Agent source does not exist: ${t}`);if(!F(d,c))throw new Error(`Profile Agent source escapes the selected Profile: ${t}`);return{profile:o,agentId:t,cwd:c}}a(f,"resolveAgentTarget");async function v(e,n,t,o){return e({context:n,command:t,args:t==="inspect"||t==="validate"||t==="eval"||t==="traces"?["--json"]:[],cwd:o,timeoutMs:t==="eval"?18e4:12e4,maxOutputBytes:25e4})}a(v,"executeAgentCommand");function S(e){if(e.error)throw new Error(e.error);if(e.mode!=="local"||!e.repoPath||!e.sourcePath)throw new Error("The selected OpenPond Profile is not locally editable.")}a(S,"assertEditableProfile");function N(e,n,t){let o=e.git?.files.slice(0,200).map(r=>r.path)??[];return{mode:e.mode,editable:e.mode==="local"&&!!(e.repoPath&&e.sourcePath)&&!e.error,blockedReason:e.error??(e.mode==="local"&&e.repoPath&&e.sourcePath?null:"The selected Profile is not locally editable."),ref:t,activeProfile:e.activeProfile,repoPath:e.repoPath,sourcePath:e.sourcePath,manifestPath:e.manifestPath,profileConfigPath:e.sourcePath?p.join(e.sourcePath,"settings","profile.yaml"):null,authoring:g(n,"authoringIntent"),skills:e.skills.slice(0,200).map(r=>({name:r.name,description:r.description,path:r.path,sourcePath:r.sourcePath,enabled:r.enabled,validationStatus:r.validationStatus})),agents:e.agents.slice(0,200).map(r=>{let i=e.actionCatalog.filter(s=>s.agentId===r.id).slice(0,100);return{id:r.id,name:r.name,path:r.path,sourcePath:e.sourcePath?r.id==="default"?e.sourcePath:p.resolve(e.sourcePath,"agents",r.id):r.path,enabled:r.enabled,defaultAction:i.find(s=>s.sourceActionId==="chat"||s.id===`${r.id}.chat`)?.id??i[0]?.id??null,actionNames:i.map(s=>s.id)}}),git:e.git?{branch:e.git.branch,head:e.git.head,dirty:e.git.dirty,changedPaths:o,truncated:e.git.files.length>o.length}:null}}a(N,"profileProjection");function h(e){let n=g(e.turnMetadata,"selectedProfileRef");return n&&(n.source==="local"||n.source==="github"||n.source==="openpond_git")&&typeof n.repositoryId=="string"&&n.repositoryId.trim()&&typeof n.profileId=="string"&&n.profileId.trim()?{source:n.source,repositoryId:n.repositoryId,profileId:n.profileId}:e.session.currentProfile??null}a(h,"selectedProfileRef");function M(){return{type:"object",additionalProperties:!1,properties:{agentId:{type:"string",minLength:1,description:"Exact enabled Agent ID from get_profile."}},required:["agentId"]}}a(M,"agentTargetParameters");function j(e){return`Run OpenPond Agent SDK ${e.replace(/^agent_/,"")} for one exact enabled Agent beneath the selected Profile and return a bounded structured receipt.`}a(j,"agentToolDescription");function P(e){return{code:e.code,timedOut:e.timedOut,stdout:$(e.stdout),stderr:e.stderr,stdoutTruncated:e.stdoutTruncated,stderrTruncated:e.stderrTruncated}}a(P,"commandReceipt");function $(e){let n=e.trim();if(!n)return"";try{return JSON.parse(n)}catch{return n}}a($,"parseJsonOrText");function l(e,n,t,o,r){return{toolCallId:e,name:n,ok:t,contentText:JSON.stringify({ok:t,action:n,output:o,data:r},null,2),data:r}}a(l,"modelResult");function m(e,n){let t=e[n];if(typeof t!="string"||!t.trim())throw new Error(`${n} is required`);return t.trim()}a(m,"stringArg");function R(e,n){let t=e[n];return typeof t=="string"&&t.trim()?t.trim():null}a(R,"optionalStringArg");function q(e,n){let t=e[n];return Array.isArray(t)?t:[]}a(q,"arrayArg");function g(e,n){let t=n&&e&&typeof e=="object"&&!Array.isArray(e)?e[n]:e;return t&&typeof t=="object"&&!Array.isArray(t)?t:null}a(g,"recordArg");function F(e,n){let t=p.relative(e,n);return t===""||!t.startsWith("..")&&!p.isAbsolute(t)}a(F,"isWithin");import{execFile as B}from"node:child_process";import y from"node:path";var b=12,_=8,w=" .:-=+*#%@";function he(e={}){return{name:"view_image",description:"Inspect a real local PNG, JPEG, GIF, WebP, or AVIF file. Reads the image bytes directly and returns dimensions plus a coarse pixel/color map; it also creates an actual image preview in the chat UI. Use this instead of opening file:// URLs or browser snapshots, which cannot inspect local image pixels. For many video frames, build one contact sheet and inspect that rather than reading frames one by one.",parameters:{type:"object",additionalProperties:!1,properties:{path:{type:"string",minLength:1,description:"Absolute image path, or a path relative to the selected local project."}},required:["path"]},enabled:a(n=>n.provider==="codex"||n.session.provider==="codex"||n.session.openPondCommandAccessMode==="disabled"?!1:A({session:n.session}).target!=="sandbox","enabled"),execute:a(async n=>{if(n.turnMetadata?.source==="experiment-improvement"||n.turnMetadata?.refinementCandidate!==void 0||n.session.metadata?.source==="experiment-improvement"||n.session.metadata?.refinementCandidate!==void 0){if(!e.executeCandidateImage)throw new Error("Candidate image inspection requires its confined filesystem executor.");return e.executeCandidateImage(n)}let t=K(n.args.path,"path"),o=y.isAbsolute(t)?y.resolve(t):n.session.cwd?y.resolve(n.session.cwd,t):"";if(!o)throw new Error("A relative image path requires a selected local project.");let r=await T(o);if(!r)throw new Error(`Local image was not found or is not a supported image: ${o}`);let i=await U(r.path,n.signal);return{toolCallId:n.callId,name:"view_image",ok:!0,contentText:JSON.stringify({ok:!0,action:"view_image",output:`Read actual image pixels from ${r.path}.`,data:{path:r.path,contentType:r.contentType,sizeBytes:r.sizeBytes,...i,note:"The luminance and color maps are deterministic pixel samples, not a semantic vision caption."}},null,2),data:{openpondImagePreviewPath:r.path,path:r.path,contentType:r.contentType,sizeBytes:r.sizeBytes,...i}}},"execute")}}a(he,"createLocalImageModelToolDefinition");async function U(e,n,t=z){let o=await t("identify",["-format","%m %w %h",e],n),r=/^(\S+)\s+(\d+)\s+(\d+)/.exec(o.trim());if(!r)throw new Error("Image metadata could not be decoded.");let i=await t("convert",[e,"-resize",`${b}x${_}!`,"-depth","8","txt:-"],n),s=W(i);return{format:r[1],width:Number.parseInt(r[2],10),height:Number.parseInt(r[3],10),luminanceMap:s.map(d=>d.map(J).join("")),colorMap:s.map(d=>d.map(c=>`#${c.map(H).join("")}`))}}a(U,"inspectImagePixels");function W(e){let n=Array.from({length:_},()=>Array.from({length:b},()=>[0,0,0]));for(let t of e.split(/\r?\n/)){let o=/^(\d+),(\d+):\s*\(\s*(\d+),\s*(\d+),\s*(\d+)/.exec(t);if(!o)continue;let r=Number.parseInt(o[1],10),i=Number.parseInt(o[2],10);r>=b||i>=_||(n[i][r]=[Number.parseInt(o[3],10),Number.parseInt(o[4],10),Number.parseInt(o[5],10)])}return n}a(W,"sampledPixelRows");function J([e,n,t]){let o=.2126*e+.7152*n+.0722*t;return w[Math.min(w.length-1,Math.round(o/255*(w.length-1)))]}a(J,"luminanceCharacter");function H(e){return Math.max(0,Math.min(255,e)).toString(16).padStart(2,"0")}a(H,"hexByte");function z(e,n,t){return new Promise((o,r)=>{B(e,n,{encoding:"utf8",maxBuffer:256*1024,signal:t},(i,s)=>{if(i){r(new Error(`${e} could not inspect the image: ${i.message}`));return}o(s)})})}a(z,"runImageCommand");function K(e,n){if(typeof e!="string"||!e.trim())throw new Error(`${n} is required.`);return e.trim()}a(K,"stringArg");export{ne as a,re as b,ce as c,he as d,U as e,G as f,X as g,Y as h,Q as i,V as j};
2
+ import{v as x}from"./chunk-66HFW4OU.js";import{B as I}from"./chunk-4TTXNVCE.js";import{p as T}from"./chunk-YU3C6U5V.js";import{a as A}from"./chunk-KVTBX2UP.js";import{a}from"./chunk-FTQLQJQV.js";function G(e){let n=e.trim().replace(/^```(?:json)?\s*/i,"").replace(/```\s*$/,"");try{let t=JSON.parse(n);return typeof t.score!="number"||typeof t.passed!="boolean"?null:{score:Math.max(0,Math.min(1,t.score)),passed:t.passed,feedback:typeof t.feedback=="string"?t.feedback.slice(0,2e4):"Model judge completed.",evidenceRefs:[]}}catch{return null}}a(G,"parseModelJudgeResult");function X(e){if(typeof e=="number"&&Number.isFinite(e)&&e>0)return Math.floor(e);let n=process.env.OPENPOND_HOSTED_WORKSPACE_TOOL_ROUNDS?.trim();if(!n)return 64;if(/^(unlimited|infinite|infinity)$/i.test(n))return Number.POSITIVE_INFINITY;let t=Number.parseInt(n,10);return Number.isFinite(t)&&t>0?t:64}a(X,"resolveMaxHostedWorkspaceToolRounds");function Y(e,n,t){let o=Date.now()-6e4;for(let r=e.length-1;r>=0;r-=1){let i=e[r],s=Date.parse(i.timestamp);if(Number.isFinite(s)&&s<o)return null;if(i.sessionId!==n||i.name!=="session.compaction.completed")continue;let d=i.data&&typeof i.data=="object"?i.data:null;if(d?.provider==="codex"&&d.codexThreadId===t)return i}return null}a(Y,"findRecentCodexCompactionCompleted");function Q(e){return e==="agent"||e==="skill"||e==="extension"||e==="model"||e==="configuration"?e:null}a(Q,"createImproveTargetKind");function V(e){if(!e)return;let n=Number(e);return Number.isFinite(n)&&n>0?Math.trunc(n):void 0}a(V,"createImproveLimit");var ne=new Set(["ask_user","get_profile","agent_inspect","agent_build","agent_validate","agent_eval","agent_run","agent_traces","agent_check","exec_command","view_image","list_files","read_files","search_files","write_file","write_files","edit_file","delete_file","workspace_status"]);function re(e){let n={type:"string"},t={type:"string",minLength:1};return[["list_files",{},[]],["workspace_status",{},[]],["read_files",{paths:{type:"array",items:t,minItems:1,maxItems:30}},["paths"]],["search_files",{query:{type:"string",minLength:1,maxLength:2e3}},["query"]],["write_file",{path:t,content:n},["path","content"]],["write_files",{files:{type:"object",additionalProperties:n,maxProperties:30}},["files"]],["edit_file",{path:t,oldText:{type:"string",minLength:1},newText:n,replaceAll:{type:"boolean"}},["path","oldText","newText"]],["delete_file",{path:t},["path"]]].map(([r,i,s])=>({name:r,description:`${r.replaceAll("_"," ")} in the isolated selected candidate component. Paths are relative to its public source tree.`,parameters:{type:"object",additionalProperties:!1,properties:i,required:s},execute:a(async d=>{let c=await e(d.session.id,{action:r,args:d.args,source:"chat_action"},{turnId:d.turnId,workspaceDiffBaseline:d.workspaceDiffBaseline});return x(d.callId,r,c)},"execute")}))}a(re,"candidateFileToolDefinitions");import{realpath as C}from"node:fs/promises";import p from"node:path";function ce(e){let n=[O()];if(!e.loadProfileState)return n;let t=a(async(r,i)=>{if(i&&(i.turnMetadata?.source==="experiment-improvement"||i.turnMetadata?.refinementCandidate!==void 0||i.session.metadata?.source==="experiment-improvement"||i.session.metadata?.refinementCandidate!==void 0)){if(!e.resolveCandidateProfile)throw new Error("Candidate authoring requires an admitted isolated Profile resolver.");let s=await e.resolveCandidateProfile(i);return S(s),s}return e.loadProfileState(r,i)},"loadProfileState"),o=a(async r=>{if(r.context.turnMetadata?.source==="experiment-improvement"||r.context.turnMetadata?.refinementCandidate!==void 0||r.context.session.metadata?.source==="experiment-improvement"||r.context.session.metadata?.refinementCandidate!==void 0){if(!e.executeCandidateAgentCommand)throw new Error("Candidate Agent commands require filesystem-confined execution.");return e.executeCandidateAgentCommand(r)}return I({...r,throwOnFailure:!1})},"runCommand");return n.push(E(t),u(t,o,"agent_inspect","inspect"),u(t,o,"agent_build","build"),u(t,o,"agent_validate","validate"),u(t,o,"agent_eval","eval"),D(t,o),u(t,o,"agent_traces","traces"),L(t,o)),n}a(ce,"createAuthoringModelToolDefinitions");function O(){return{name:"ask_user",description:"Ask one blocking user question when the answer materially changes the requested work and cannot be inferred safely. This call ends the current model turn after persisting the question; do not batch it with mutations.",parameters:{type:"object",additionalProperties:!1,properties:{question:{type:"string",minLength:1,maxLength:2e3},reason:{type:"string",minLength:1,maxLength:1e3},options:{type:"array",minItems:2,maxItems:5,items:{type:"object",additionalProperties:!1,properties:{id:{type:"string",minLength:1,maxLength:80},label:{type:"string",minLength:1,maxLength:160},description:{type:"string",minLength:1,maxLength:500}},required:["id","label"]}},allowFreeform:{type:"boolean"}},required:["question"]},execute:a(async e=>{let n=m(e.args,"question"),t=R(e.args,"reason"),o=q(e.args,"options").map(i=>g(i)).filter(i=>!!i).map(i=>({id:m(i,"id"),label:m(i,"label"),description:R(i,"description")})),r={questionId:`question_${e.turnId}_${e.callId}`,question:n,reason:t,options:o,allowFreeform:e.args.allowFreeform!==!1,status:"awaiting_user_input",nextStep:"end_turn"};return{...l(e.callId,"ask_user",!0,n,r),turnControl:"await_user_input"}},"execute")}}a(O,"askUserDefinition");function E(e){return{name:"get_profile",description:"Return the exact OpenPond Profile selected for this chat turn, including bounded local path, Skill, Agent, action, and Git context. Call before Profile authoring. This tool does not change the selected Profile or grant filesystem permission.",parameters:{type:"object",additionalProperties:!1,properties:{}},execute:a(async n=>{let t=h(n),o=await e(t,n),r=N(o,n.turnMetadata,t);return l(n.callId,"get_profile",!o.error,o.error??"Resolved selected Profile.",r)},"execute")}}a(E,"getProfileDefinition");function u(e,n,t,o){return{name:t,description:j(t),parameters:M(),execute:a(async r=>{let i=await f(e,r),s=await v(n,r,o,i.cwd);return l(r.callId,t,s.code===0&&!s.timedOut,s.code===0&&!s.timedOut?`${t} passed for ${i.agentId}.`:`${t} failed for ${i.agentId}.`,{agentId:i.agentId,cwd:i.cwd,command:o,...P(s)})},"execute")}}a(u,"agentCommandDefinition");function D(e,n){return{name:"agent_run",description:"Run one declared action on an exact enabled Profile Agent with typed JSON input. Use for behavioral proof, not as the default validation gate.",parameters:{type:"object",additionalProperties:!1,properties:{agentId:{type:"string",minLength:1},action:{type:"string",minLength:1},input:{type:"object",additionalProperties:!0}},required:["agentId","action"]},execute:a(async t=>{let o=await f(e,t),r=m(t.args,"action"),i=g(t.args,"input")??{},s=await n({context:t,command:"run",args:[r,"--json","--input",JSON.stringify(i),"--cwd",o.cwd],cwd:o.cwd,timeoutMs:12e4,maxOutputBytes:25e4});return l(t.callId,"agent_run",s.code===0&&!s.timedOut,s.code===0&&!s.timedOut?`Action ${r} passed for ${o.agentId}.`:`Action ${r} failed for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,action:r,input:i,...P(s)})},"execute")}}a(D,"agentRunDefinition");function L(e,n){return{name:"agent_check",description:"Run the mandatory Agent authoring gate\u2014inspect, build, validate, and eval\u2014in order for one exact Profile Agent. Stops on the first failure and returns bounded per-step receipts.",parameters:M(),execute:a(async t=>{let o=await f(e,t),r=[];for(let s of["inspect","build","validate","eval"]){let d=await v(n,t,s,o.cwd),c=P(d);if(r.push({command:s,receipt:c}),d.code!==0||d.timedOut)return l(t.callId,"agent_check",!1,`agent_check stopped at ${s} for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,passed:!1,failedStep:s,steps:r})}let i=await e(h(t),t);return l(t.callId,"agent_check",!0,`agent_check passed for ${o.agentId}.`,{agentId:o.agentId,cwd:o.cwd,passed:!0,failedStep:null,steps:r,profileRefresh:{activeProfile:i.activeProfile,agentIds:i.agents.map(s=>s.id).slice(0,200),actionIds:i.actionCatalog.map(s=>s.id).slice(0,500)}})},"execute")}}a(L,"agentCheckDefinition");async function f(e,n){let t=m(n.args,"agentId"),o=await e(h(n),n);S(o);let r=g(n.turnMetadata,"authoringIntent");if(r?.artifact==="agent"&&r.operation==="improve"&&typeof r.targetAgentId=="string"&&r.targetAgentId!==t)throw new Error(`Agent improve is bound to ${r.targetAgentId}; ${t} is not authorized.`);if(!o.agents.find(k=>k.id===t)?.enabled)throw new Error(`Enabled Profile Agent not found: ${t}`);let s=t==="default"?o.sourcePath:p.resolve(o.sourcePath,"agents",t),d=await C(o.sourcePath),c=await C(s).catch(()=>null);if(!c)throw new Error(`Profile Agent source does not exist: ${t}`);if(!F(d,c))throw new Error(`Profile Agent source escapes the selected Profile: ${t}`);return{profile:o,agentId:t,cwd:c}}a(f,"resolveAgentTarget");async function v(e,n,t,o){return e({context:n,command:t,args:t==="inspect"||t==="validate"||t==="eval"||t==="traces"?["--json"]:[],cwd:o,timeoutMs:t==="eval"?18e4:12e4,maxOutputBytes:25e4})}a(v,"executeAgentCommand");function S(e){if(e.error)throw new Error(e.error);if(e.mode!=="local"||!e.repoPath||!e.sourcePath)throw new Error("The selected OpenPond Profile is not locally editable.")}a(S,"assertEditableProfile");function N(e,n,t){let o=e.git?.files.slice(0,200).map(r=>r.path)??[];return{mode:e.mode,editable:e.mode==="local"&&!!(e.repoPath&&e.sourcePath)&&!e.error,blockedReason:e.error??(e.mode==="local"&&e.repoPath&&e.sourcePath?null:"The selected Profile is not locally editable."),ref:t,activeProfile:e.activeProfile,repoPath:e.repoPath,sourcePath:e.sourcePath,manifestPath:e.manifestPath,profileConfigPath:e.sourcePath?p.join(e.sourcePath,"settings","profile.yaml"):null,authoring:g(n,"authoringIntent"),skills:e.skills.slice(0,200).map(r=>({name:r.name,description:r.description,path:r.path,sourcePath:r.sourcePath,enabled:r.enabled,validationStatus:r.validationStatus})),agents:e.agents.slice(0,200).map(r=>{let i=e.actionCatalog.filter(s=>s.agentId===r.id).slice(0,100);return{id:r.id,name:r.name,path:r.path,sourcePath:e.sourcePath?r.id==="default"?e.sourcePath:p.resolve(e.sourcePath,"agents",r.id):r.path,enabled:r.enabled,defaultAction:i.find(s=>s.sourceActionId==="chat"||s.id===`${r.id}.chat`)?.id??i[0]?.id??null,actionNames:i.map(s=>s.id)}}),git:e.git?{branch:e.git.branch,head:e.git.head,dirty:e.git.dirty,changedPaths:o,truncated:e.git.files.length>o.length}:null}}a(N,"profileProjection");function h(e){let n=g(e.turnMetadata,"selectedProfileRef");return n&&(n.source==="local"||n.source==="github"||n.source==="openpond_git")&&typeof n.repositoryId=="string"&&n.repositoryId.trim()&&typeof n.profileId=="string"&&n.profileId.trim()?{source:n.source,repositoryId:n.repositoryId,profileId:n.profileId}:e.session.currentProfile??null}a(h,"selectedProfileRef");function M(){return{type:"object",additionalProperties:!1,properties:{agentId:{type:"string",minLength:1,description:"Exact enabled Agent ID from get_profile."}},required:["agentId"]}}a(M,"agentTargetParameters");function j(e){return`Run OpenPond Agent SDK ${e.replace(/^agent_/,"")} for one exact enabled Agent beneath the selected Profile and return a bounded structured receipt.`}a(j,"agentToolDescription");function P(e){return{code:e.code,timedOut:e.timedOut,stdout:$(e.stdout),stderr:e.stderr,stdoutTruncated:e.stdoutTruncated,stderrTruncated:e.stderrTruncated}}a(P,"commandReceipt");function $(e){let n=e.trim();if(!n)return"";try{return JSON.parse(n)}catch{return n}}a($,"parseJsonOrText");function l(e,n,t,o,r){return{toolCallId:e,name:n,ok:t,contentText:JSON.stringify({ok:t,action:n,output:o,data:r},null,2),data:r}}a(l,"modelResult");function m(e,n){let t=e[n];if(typeof t!="string"||!t.trim())throw new Error(`${n} is required`);return t.trim()}a(m,"stringArg");function R(e,n){let t=e[n];return typeof t=="string"&&t.trim()?t.trim():null}a(R,"optionalStringArg");function q(e,n){let t=e[n];return Array.isArray(t)?t:[]}a(q,"arrayArg");function g(e,n){let t=n&&e&&typeof e=="object"&&!Array.isArray(e)?e[n]:e;return t&&typeof t=="object"&&!Array.isArray(t)?t:null}a(g,"recordArg");function F(e,n){let t=p.relative(e,n);return t===""||!t.startsWith("..")&&!p.isAbsolute(t)}a(F,"isWithin");import{execFile as B}from"node:child_process";import y from"node:path";var b=12,_=8,w=" .:-=+*#%@";function he(e={}){return{name:"view_image",description:"Inspect a real local PNG, JPEG, GIF, WebP, or AVIF file. Reads the image bytes directly and returns dimensions plus a coarse pixel/color map; it also creates an actual image preview in the chat UI. Use this instead of opening file:// URLs or browser snapshots, which cannot inspect local image pixels. For many video frames, build one contact sheet and inspect that rather than reading frames one by one.",parameters:{type:"object",additionalProperties:!1,properties:{path:{type:"string",minLength:1,description:"Absolute image path, or a path relative to the selected local project."}},required:["path"]},enabled:a(n=>n.provider==="codex"||n.session.provider==="codex"||n.session.openPondCommandAccessMode==="disabled"?!1:A({session:n.session}).target!=="sandbox","enabled"),execute:a(async n=>{if(n.turnMetadata?.source==="experiment-improvement"||n.turnMetadata?.refinementCandidate!==void 0||n.session.metadata?.source==="experiment-improvement"||n.session.metadata?.refinementCandidate!==void 0){if(!e.executeCandidateImage)throw new Error("Candidate image inspection requires its confined filesystem executor.");return e.executeCandidateImage(n)}let t=K(n.args.path,"path"),o=y.isAbsolute(t)?y.resolve(t):n.session.cwd?y.resolve(n.session.cwd,t):"";if(!o)throw new Error("A relative image path requires a selected local project.");let r=await T(o);if(!r)throw new Error(`Local image was not found or is not a supported image: ${o}`);let i=await U(r.path,n.signal);return{toolCallId:n.callId,name:"view_image",ok:!0,contentText:JSON.stringify({ok:!0,action:"view_image",output:`Read actual image pixels from ${r.path}.`,data:{path:r.path,contentType:r.contentType,sizeBytes:r.sizeBytes,...i,note:"The luminance and color maps are deterministic pixel samples, not a semantic vision caption."}},null,2),data:{openpondImagePreviewPath:r.path,path:r.path,contentType:r.contentType,sizeBytes:r.sizeBytes,...i}}},"execute")}}a(he,"createLocalImageModelToolDefinition");async function U(e,n,t=z){let o=await t("identify",["-format","%m %w %h",e],n),r=/^(\S+)\s+(\d+)\s+(\d+)/.exec(o.trim());if(!r)throw new Error("Image metadata could not be decoded.");let i=await t("convert",[e,"-resize",`${b}x${_}!`,"-depth","8","txt:-"],n),s=W(i);return{format:r[1],width:Number.parseInt(r[2],10),height:Number.parseInt(r[3],10),luminanceMap:s.map(d=>d.map(J).join("")),colorMap:s.map(d=>d.map(c=>`#${c.map(H).join("")}`))}}a(U,"inspectImagePixels");function W(e){let n=Array.from({length:_},()=>Array.from({length:b},()=>[0,0,0]));for(let t of e.split(/\r?\n/)){let o=/^(\d+),(\d+):\s*\(\s*(\d+),\s*(\d+),\s*(\d+)/.exec(t);if(!o)continue;let r=Number.parseInt(o[1],10),i=Number.parseInt(o[2],10);r>=b||i>=_||(n[i][r]=[Number.parseInt(o[3],10),Number.parseInt(o[4],10),Number.parseInt(o[5],10)])}return n}a(W,"sampledPixelRows");function J([e,n,t]){let o=.2126*e+.7152*n+.0722*t;return w[Math.min(w.length-1,Math.round(o/255*(w.length-1)))]}a(J,"luminanceCharacter");function H(e){return Math.max(0,Math.min(255,e)).toString(16).padStart(2,"0")}a(H,"hexByte");function z(e,n,t){return new Promise((o,r)=>{B(e,n,{encoding:"utf8",maxBuffer:256*1024,signal:t},(i,s)=>{if(i){r(new Error(`${e} could not inspect the image: ${i.message}`));return}o(s)})})}a(z,"runImageCommand");function K(e,n){if(typeof e!="string"||!e.trim())throw new Error(`${n} is required.`);return e.trim()}a(K,"stringArg");export{ne as a,re as b,ce as c,he as d,U as e,G as f,X as g,Y as h,Q as i,V as j};