openpond 0.2.74 → 0.2.75

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 (281) hide show
  1. package/dist/app-server.js +1 -1
  2. package/dist/chunks/{acp-TBDNUDTR.js → acp-HGJMC75K.js} +1 -1
  3. package/dist/chunks/{acp-agent-4PKMX52I.js → acp-agent-CWV5NF6V.js} +1 -1
  4. package/dist/chunks/{app-layer-4YIA53WX.js → app-layer-76YRQY7S.js} +1 -1
  5. package/dist/chunks/{app-server-evaluations-5JVNCET7.js → app-server-evaluations-PQDIMJJ7.js} +1 -1
  6. package/dist/chunks/{app-server-harness-services-4E236TXE.js → app-server-harness-services-5MB7CCCT.js} +1 -1
  7. package/dist/chunks/{app-server-runtime-CI2NTKX7.js → app-server-runtime-N3XZV35H.js} +1 -1
  8. package/dist/chunks/{apps-APEPLFYU.js → apps-DJQ2ZJKC.js} +1 -1
  9. package/dist/chunks/{chunk-QKGNAYSC.js → chunk-2HWSF4FS.js} +1 -1
  10. package/dist/chunks/{chunk-KQ7RFPG5.js → chunk-3SIZBCEO.js} +1 -1
  11. package/dist/chunks/{chunk-TP222CV2.js → chunk-5SBKDKGI.js} +1 -1
  12. package/dist/chunks/{chunk-U73T66FP.js → chunk-5VHHQZMT.js} +1 -1
  13. package/dist/chunks/{chunk-NDNSLCPE.js → chunk-5W2OJKJW.js} +1 -1
  14. package/dist/chunks/{chunk-XSDWRRZP.js → chunk-6EZHEVXS.js} +1 -1
  15. package/dist/chunks/{chunk-YIZE3M5S.js → chunk-7NLKMY7L.js} +1 -1
  16. package/dist/chunks/{chunk-MHSSPMLB.js → chunk-B7ELZHQN.js} +1 -1
  17. package/dist/chunks/{chunk-KE5PYRJ6.js → chunk-BZPNCSUY.js} +1 -1
  18. package/dist/chunks/{chunk-IXMY4EKS.js → chunk-CABXOJ3I.js} +1 -1
  19. package/dist/chunks/{chunk-E7SQBMYW.js → chunk-CBJ33EIB.js} +1 -1
  20. package/dist/chunks/{chunk-2IIVBBF5.js → chunk-CILYQK2G.js} +1 -1
  21. package/dist/chunks/{chunk-OBMMO5NC.js → chunk-CNVPZKJG.js} +3 -3
  22. package/dist/chunks/{chunk-4KG7GJ5O.js → chunk-CZ2JSEUK.js} +1 -1
  23. package/dist/chunks/{chunk-H5EHSILL.js → chunk-D2PEB6AJ.js} +1 -1
  24. package/dist/chunks/{chunk-FRQYH4QD.js → chunk-DAWHZU7L.js} +1 -1
  25. package/dist/chunks/{chunk-WOYBWRRV.js → chunk-DVBZBJSK.js} +1 -1
  26. package/dist/chunks/{chunk-MXDSB2C5.js → chunk-EOQTBH4U.js} +1 -1
  27. package/dist/chunks/{chunk-KOC74O7R.js → chunk-FPW3RFZR.js} +1 -1
  28. package/dist/chunks/{chunk-WAWVFSIQ.js → chunk-FWYJ3MIN.js} +1 -1
  29. package/dist/chunks/{chunk-5VQK3CCJ.js → chunk-FXLLAAGI.js} +1 -1
  30. package/dist/chunks/{chunk-ODH5XGE6.js → chunk-HCQTAFTX.js} +1 -1
  31. package/dist/chunks/{chunk-FCC24XUI.js → chunk-HHLQG7PN.js} +1 -1
  32. package/dist/chunks/{chunk-TRXOE7TT.js → chunk-HRJ4EPR3.js} +1 -1
  33. package/dist/chunks/{chunk-O6L4NO3M.js → chunk-HYYQCBX5.js} +1 -1
  34. package/dist/chunks/{chunk-5SVBY7NP.js → chunk-IPH4LGK2.js} +6 -6
  35. package/dist/chunks/{chunk-3XNUG4FO.js → chunk-JBIAEQHI.js} +1 -1
  36. package/dist/chunks/{chunk-XN5BXPAT.js → chunk-JQDZYC72.js} +1 -1
  37. package/dist/chunks/{chunk-3BIB6KKL.js → chunk-JRW6MFV6.js} +1 -1
  38. package/dist/chunks/{chunk-EAW5FHU4.js → chunk-JSJB3PR2.js} +2 -2
  39. package/dist/chunks/{chunk-O4YHISU2.js → chunk-KAW26NGC.js} +1 -1
  40. package/dist/chunks/{chunk-HIPKU57Y.js → chunk-LK7TJYEP.js} +1 -1
  41. package/dist/chunks/{chunk-2IECLXB2.js → chunk-LRGMGXL2.js} +1 -1
  42. package/dist/chunks/{chunk-G2P2PYEO.js → chunk-NACSY3HS.js} +1 -1
  43. package/dist/chunks/{chunk-E5HDJCKK.js → chunk-NGTNI3YX.js} +1 -1
  44. package/dist/chunks/{chunk-ONR2AKRI.js → chunk-O5FYAVDK.js} +4 -4
  45. package/dist/chunks/{chunk-LWF5MQJ4.js → chunk-OJEIYU7D.js} +1 -1
  46. package/dist/chunks/{chunk-AWUSAHXG.js → chunk-OOSF2SPF.js} +1 -1
  47. package/dist/chunks/{chunk-JG6JA7YT.js → chunk-P4SXDU55.js} +1 -1
  48. package/dist/chunks/{chunk-DUR32LJG.js → chunk-PQGR2MTX.js} +1 -1
  49. package/dist/chunks/{chunk-6IKIGVJF.js → chunk-QSITPC3X.js} +1 -1
  50. package/dist/chunks/chunk-RGSMU6N4.js +2 -0
  51. package/dist/chunks/{chunk-CBD554GZ.js → chunk-RORT6K3Y.js} +1 -1
  52. package/dist/chunks/{chunk-OXUS4QOT.js → chunk-SFLL3TKE.js} +1 -1
  53. package/dist/chunks/chunk-SYFJVLEL.js +2 -0
  54. package/dist/chunks/{chunk-6KKWSUEW.js → chunk-THLBUON5.js} +1 -1
  55. package/dist/chunks/{chunk-X4CN3FIN.js → chunk-VU6S2S3O.js} +1 -1
  56. package/dist/chunks/{chunk-H2YQ4AA2.js → chunk-W5FL7EH2.js} +1 -1
  57. package/dist/chunks/{chunk-WBV6A6NS.js → chunk-WHI4XNBI.js} +1 -1
  58. package/dist/chunks/{chunk-FA3GXQYA.js → chunk-WOA6XFQU.js} +1 -1
  59. package/dist/chunks/{chunk-SUILNZQJ.js → chunk-WOER246B.js} +1 -1
  60. package/dist/chunks/{chunk-645T6LH7.js → chunk-XJP7RIHL.js} +1 -1
  61. package/dist/chunks/{chunk-KOLVSUOS.js → chunk-Z3OW37CO.js} +1 -1
  62. package/dist/chunks/{chunk-OUOOKEU3.js → chunk-ZACCHQWK.js} +1 -1
  63. package/dist/chunks/{chunk-3V2XAYYA.js → chunk-ZKH4Z3EQ.js} +1 -1
  64. package/dist/chunks/{chunk-OXRN2257.js → chunk-ZLYQR44C.js} +1 -1
  65. package/dist/chunks/chunk-ZQOJLPWD.js +2 -0
  66. package/dist/chunks/{chunk-EZ435RGA.js → chunk-ZYJHMX4T.js} +1 -1
  67. package/dist/chunks/{cli-NHRYN2G3.js → cli-B6JFFXMI.js} +1 -1
  68. package/dist/chunks/{command-54MMVWS2.js → command-GZ3Z37WJ.js} +3 -3
  69. package/dist/chunks/{configuration-command-SAGJMI3I.js → configuration-command-OHW7RPSC.js} +1 -1
  70. package/dist/chunks/{connected-app-executor-WJEDXUA4.js → connected-app-executor-P35Y6B5Y.js} +1 -1
  71. package/dist/chunks/{connected-evidence-EVZTMVHV.js → connected-evidence-I4I7DQRX.js} +1 -1
  72. package/dist/chunks/{connected-starting-assets-F2DBUHV5.js → connected-starting-assets-Q7CYZT25.js} +1 -1
  73. package/dist/chunks/{continual-C2YWPEJZ.js → continual-3OIKJ3PG.js} +1 -1
  74. package/dist/chunks/{core-commands-Z27A5ZPQ.js → core-commands-BWDKP6AI.js} +1 -1
  75. package/dist/chunks/{dataset-preparation-authoring-CH6Z4NE6.js → dataset-preparation-authoring-RPYFOFBV.js} +1 -1
  76. package/dist/chunks/{datasets-RZBRILIN.js → datasets-2W4JPKSP.js} +1 -1
  77. package/dist/chunks/{desktop-test-UXOA4EON.js → desktop-test-EUBEZJDU.js} +1 -1
  78. package/dist/chunks/{evaluation-coordination-43DTVJFD.js → evaluation-coordination-IYNDZB6X.js} +1 -1
  79. package/dist/chunks/{experiment-improvements-JBYCVRYR.js → experiment-improvements-D3DHZ7QI.js} +1 -1
  80. package/dist/chunks/{experiments-5QAMBNB6.js → experiments-7OXSDLJG.js} +1 -1
  81. package/dist/chunks/{experiments-signal-OIDQ5SNH.js → experiments-signal-6SWD3TSR.js} +1 -1
  82. package/dist/chunks/{help-ESZC6NHQ.js → help-XVZ4RRAB.js} +1 -1
  83. package/dist/chunks/{host-profile-evaluation-tools-XMGGHVH3.js → host-profile-evaluation-tools-I7ESCZH7.js} +1 -1
  84. package/dist/chunks/{host-profile-external-dataset-C6ZPMTX6.js → host-profile-external-dataset-MD4X7BCL.js} +1 -1
  85. package/dist/chunks/{hosted-app-server-composition-U7WGMN5B.js → hosted-app-server-composition-PYKNSE3O.js} +1 -1
  86. package/dist/chunks/{hosted-experiment-improvement-VQN6PJKR.js → hosted-experiment-improvement-5L3Z7IV6.js} +1 -1
  87. package/dist/chunks/{hosted-harness-runtime-O6E5LCGN.js → hosted-harness-runtime-XDCLEP3C.js} +1 -1
  88. package/dist/chunks/{hosted-profile-candidate-HQ544PNP.js → hosted-profile-candidate-6Q3GOLII.js} +1 -1
  89. package/dist/chunks/{hosted-profile-compiler-K4OACT7S.js → hosted-profile-compiler-FYBOGHZF.js} +1 -1
  90. package/dist/chunks/{hosted-profile-evaluation-control-TKYM73YY.js → hosted-profile-evaluation-control-MXXZR6XA.js} +1 -1
  91. package/dist/chunks/{hosted-profile-evaluation-inspection-HFCFUYQ4.js → hosted-profile-evaluation-inspection-4J7LAVY2.js} +1 -1
  92. package/dist/chunks/{hosted-profile-evaluation-preparation-OJ6AR5P5.js → hosted-profile-evaluation-preparation-EF43QUMG.js} +1 -1
  93. package/dist/chunks/{human-review-HTHWLUNA.js → human-review-6WAUW3BG.js} +1 -1
  94. package/dist/chunks/{import-IWDEDLM3.js → import-333V3CGC.js} +1 -1
  95. package/dist/chunks/{local-harness-improvement-runtime-BWZBMOGL.js → local-harness-improvement-runtime-HC42DG74.js} +1 -1
  96. package/dist/chunks/{local-harness-taskset-review-JL2XNXML.js → local-harness-taskset-review-CUL73U4A.js} +1 -1
  97. package/dist/chunks/{opchat-RJINPBFB.js → opchat-R7FBOSCD.js} +1 -1
  98. package/dist/chunks/{opchat-bounded-chat-WRXN7S52.js → opchat-bounded-chat-IOV6FYBH.js} +1 -1
  99. package/dist/chunks/{organizations-AWMQ46PJ.js → organizations-EG5BSG26.js} +1 -1
  100. package/dist/chunks/{profile-VJDML6I7.js → profile-VLGYQXEP.js} +1 -1
  101. package/dist/chunks/{project-action-payload-65MTQMQW.js → project-action-payload-5PL65D3W.js} +1 -1
  102. package/dist/chunks/{project-agent-NI4EGNDI.js → project-agent-XT47W7MT.js} +1 -1
  103. package/dist/chunks/{published-experiment-source-L7BER6AE.js → published-experiment-source-7TDPGSOJ.js} +1 -1
  104. package/dist/chunks/{refiner-profile-service-56776J7B.js → refiner-profile-service-4RRRB33P.js} +1 -1
  105. package/dist/chunks/{runtime-GN2H2R7L.js → runtime-K3BUZ3ZQ.js} +1 -1
  106. package/dist/chunks/{sandbox-command-763SZPJ4.js → sandbox-command-D7T2GKQA.js} +1 -1
  107. package/dist/chunks/{sandbox-template-AVTZNKFZ.js → sandbox-template-WTIQRKE6.js} +1 -1
  108. package/dist/chunks/{saved-work-OMBDT3ZR.js → saved-work-GQEYG77G.js} +1 -1
  109. package/dist/chunks/{setup-C6673TJK.js → setup-5MZKOZY2.js} +1 -1
  110. package/dist/chunks/{src-UHNSXT34.js → src-PEOADF2P.js} +2 -2
  111. package/dist/chunks/{src-HHFJIPL5.js → src-ZUOZOCQ2.js} +1 -1
  112. package/dist/chunks/{standalone-experiment-turn-owner-UYPA6XHW.js → standalone-experiment-turn-owner-N7PEBGW3.js} +1 -1
  113. package/dist/chunks/{store-chat-resources-TYR7D2UP.js → store-chat-resources-7JEZFCC2.js} +1 -1
  114. package/dist/chunks/{store-continual-support-reviews-63YCKG3P.js → store-continual-support-reviews-RJ5OQZTC.js} +1 -1
  115. package/dist/chunks/{store-conversation-serving-PDSBGL3E.js → store-conversation-serving-D3HJ5OZK.js} +1 -1
  116. package/dist/chunks/{store-create-improve-RYASTT56.js → store-create-improve-ERPWR2LH.js} +1 -1
  117. package/dist/chunks/{store-datasets-PELTRO4A.js → store-datasets-R6P5KBAH.js} +1 -1
  118. package/dist/chunks/{store-evaluation-results-OUTNEMAY.js → store-evaluation-results-ZCABU3X5.js} +1 -1
  119. package/dist/chunks/{store-human-review-GIMAXCJQ.js → store-human-review-2PHLILEI.js} +1 -1
  120. package/dist/chunks/{store-learned-preference-migration-validation-DHOSHA6C.js → store-learned-preference-migration-validation-OGFFAM3Q.js} +1 -1
  121. package/dist/chunks/{store-local-experiments-AH4Z6RWX.js → store-local-experiments-ZG4NWB63.js} +1 -1
  122. package/dist/chunks/{store-model-batch-review-UUW6ZLDH.js → store-model-batch-review-LQAM7FQJ.js} +1 -1
  123. package/dist/chunks/{store-model-configuration-4U5A6DU7.js → store-model-configuration-3S74O2IQ.js} +1 -1
  124. package/dist/chunks/{store-model-project-preparation-MYHO43VH.js → store-model-project-preparation-ARDV4U77.js} +1 -1
  125. package/dist/chunks/{store-modification-recordings-OZBLFYCT.js → store-modification-recordings-BHJTHW3A.js} +1 -1
  126. package/dist/chunks/{store-task-inbox-M7YZNCRF.js → store-task-inbox-YRN2UDW3.js} +1 -1
  127. package/dist/chunks/{store-task-inventory-TTJQAM3T.js → store-task-inventory-6V4UX5BY.js} +1 -1
  128. package/dist/chunks/{store-taskset-drafts-4GVHDLJJ.js → store-taskset-drafts-H2O4CRIF.js} +1 -1
  129. package/dist/chunks/{store-training-MGGTGTV2.js → store-training-MQGXXKTX.js} +1 -1
  130. package/dist/chunks/{store-training-jobs-XKDUX4SV.js → store-training-jobs-YASPKBB3.js} +1 -1
  131. package/dist/chunks/{store-training-models-4S4ZT3BL.js → store-training-models-HAJCN3IS.js} +1 -1
  132. package/dist/chunks/{taskset-SLQSCYJI.js → taskset-65BR2KOE.js} +1 -1
  133. package/dist/chunks/{teams-bot-PX7HUAQQ.js → teams-bot-VMG23AFI.js} +1 -1
  134. package/dist/chunks/{tool-learning-25Z2JOBS.js → tool-learning-YSYQEASN.js} +1 -1
  135. package/dist/chunks/training-5V53RWI7.js +2 -0
  136. package/dist/chunks/training-U6OPNRP4.js +2 -0
  137. package/dist/chunks/{training-2LUQ2IZM.js → training-YUWQXGJX.js} +1 -1
  138. package/dist/chunks/{training-hosted-NLXMISNL.js → training-hosted-KO4SCSLZ.js} +1 -1
  139. package/dist/chunks/{training-hosted-alphaedit-WGMJ3L2D.js → training-hosted-alphaedit-HQTKGEZU.js} +1 -1
  140. package/dist/chunks/{training-hosted-decision-66EUMUIW.js → training-hosted-decision-LN7MQGBF.js} +1 -1
  141. package/dist/chunks/{training-hosted-engram-QDXSJ77I.js → training-hosted-engram-7UAVQFBA.js} +1 -1
  142. package/dist/chunks/{training-hosted-modification-comparison-2MH5FZMZ.js → training-hosted-modification-comparison-ZOYOSVHI.js} +1 -1
  143. package/dist/chunks/{training-hosted-neuron-training-3QXKIEKT.js → training-hosted-neuron-training-37Y6WJH5.js} +1 -1
  144. package/dist/chunks/{training-hosted-serving-report-ZG75ACZK.js → training-hosted-serving-report-EXJ5X7GB.js} +1 -1
  145. package/dist/chunks/{training-hosted-steering-KFMTKCTX.js → training-hosted-steering-EAFICV6I.js} +1 -1
  146. package/dist/chunks/{training-model-start-NMQ55UHZ.js → training-model-start-5QB7A5TD.js} +1 -1
  147. package/dist/cli.js +1 -1
  148. package/dist/skills/manifest.json +1 -1
  149. package/dist/web/assets/{App-CV1p0_Zy.js → App-CqqK4NLa.js} +4 -4
  150. package/dist/web/assets/{AppDialog-DdGt7aU1.js → AppDialog-wmL4BlOJ.js} +1 -1
  151. package/dist/web/assets/AppTerminalPanel-BHFgtq4f.js +2 -0
  152. package/dist/web/assets/{AppToastContext-D7z0w1PS.js → AppToastContext-DyaZYQXu.js} +1 -1
  153. package/dist/web/assets/{AppsView-B-Ts-M_V.js → AppsView-C6u5q5ro.js} +1 -1
  154. package/dist/web/assets/{AttachmentTypeIcon-BJ5i12im.js → AttachmentTypeIcon-AqiS2gzg.js} +1 -1
  155. package/dist/web/assets/{BrowserSidebar-BVHthjXU.js → BrowserSidebar-nNTQ1E4K.js} +1 -1
  156. package/dist/web/assets/{CartesianChart-BuJ1wFS7.js → CartesianChart-C5ptcXRG.js} +1 -1
  157. package/dist/web/assets/{ChatTimelineEntry-CfiiTrK4.js → ChatTimelineEntry-DH0-itET.js} +1 -1
  158. package/dist/web/assets/{CollaborationTabs-1t9zAhDC.js → CollaborationTabs-C22BMWJ4.js} +1 -1
  159. package/dist/web/assets/{CommandMenu-DTB6xjGG.js → CommandMenu-CKtBVjuO.js} +1 -1
  160. package/dist/web/assets/{CommunityView-BjeZ56id.js → CommunityView-Baq8HqVm.js} +1 -1
  161. package/dist/web/assets/{ComposerAttachments-C_K_05H9.js → ComposerAttachments-BOyEXVhV.js} +1 -1
  162. package/dist/web/assets/{ComposerCreateImproveStrip-A38jnNGd.js → ComposerCreateImproveStrip-EbNwu1gE.js} +1 -1
  163. package/dist/web/assets/{ConversationImportsSettings-jwaoKQZt.js → ConversationImportsSettings-Cqg66Lcb.js} +1 -1
  164. package/dist/web/assets/{DatasetReviewImport-DZA1s3XG.js → DatasetReviewImport--FgZ3Zk-.js} +1 -1
  165. package/dist/web/assets/{ExperimentTrainingDataWorkspace-DowPuAXk.js → ExperimentTrainingDataWorkspace-B04Cg7Hc.js} +2 -2
  166. package/dist/web/assets/{FilePagePreview-11ZNRtdT.js → FilePagePreview-CeZF-oOW.js} +2 -2
  167. package/dist/web/assets/{GetStartedView-bLVKmjqg.js → GetStartedView-DOpCgmrC.js} +1 -1
  168. package/dist/web/assets/{GettingStartedDialog-BeimFLZh.js → GettingStartedDialog-tB38Q6JA.js} +1 -1
  169. package/dist/web/assets/{HostedModelLearningReview-DiFVb3WK.js → HostedModelLearningReview-CQ0bI6Np.js} +1 -1
  170. package/dist/web/assets/{HostedModelLearningSettings-DtUF5ejq.js → HostedModelLearningSettings-DEdV2dXx.js} +1 -1
  171. package/dist/web/assets/{HtmlVisual-CgVTWr64.js → HtmlVisual-krrlNGFX.js} +1 -1
  172. package/dist/web/assets/{LabModelVersionDetailPage-BvinwnBN.js → LabModelVersionDetailPage-DeVfdS7p.js} +1 -1
  173. package/dist/web/assets/{LabModelWorkspace-Q5DG2mLP.js → LabModelWorkspace-Di_yTjzH.js} +1 -1
  174. package/dist/web/assets/{LabSkillSidebar-cmhZzr4f.js → LabSkillSidebar-CNjUmnfC.js} +1 -1
  175. package/dist/web/assets/{LabsRoute-DS_mlprv.js → LabsRoute-Gznx60Cp.js} +4 -4
  176. package/dist/web/assets/{LearningBatchesPage-Cm-btgWc.js → LearningBatchesPage-CpZ0UTX3.js} +1 -1
  177. package/dist/web/assets/{MainChatThread-DbTn4Bag.js → MainChatThread-Dr2DipCD.js} +2 -2
  178. package/dist/web/assets/{MainPane-BtzUF6O_.js → MainPane-aEELnEKb.js} +7 -7
  179. package/dist/web/assets/{ModelProjectPageHeader-C4mgVJGx.js → ModelProjectPageHeader-BVwW-R0w.js} +1 -1
  180. package/dist/web/assets/{NativeSetupTerminal-bJpDkKk1.js → NativeSetupTerminal-BXvrxj-m.js} +2 -2
  181. package/dist/web/assets/{NativeSkillSidebar-BuToZvK-.js → NativeSkillSidebar-CYsBopsX.js} +1 -1
  182. package/dist/web/assets/{NewProjectDialog-F0BPQy0S.js → NewProjectDialog-BR5DChE9.js} +1 -1
  183. package/dist/web/assets/{OutputsPage-DC4g59_8.js → OutputsPage-CR8pWUj0.js} +1 -1
  184. package/dist/web/assets/{PageChrome-ufq2jePD.js → PageChrome-BXMG877B.js} +1 -1
  185. package/dist/web/assets/{ProjectsPage-7mbOvMfO.js → ProjectsPage-CwCes2kZ.js} +1 -1
  186. package/dist/web/assets/{RightChatPanelStack-sR9xN3RP.js → RightChatPanelStack-BvApbQCc.js} +1 -1
  187. package/dist/web/assets/RightSidebarHomePanel-Dm6hhkKw.js +1 -0
  188. package/dist/web/assets/{ScheduledWorkPage-s9CN6nR_.js → ScheduledWorkPage-nJJH1fwV.js} +1 -1
  189. package/dist/web/assets/{SettingsView-CZNWYK-D.js → SettingsView-CBZ6rqak.js} +3 -3
  190. package/dist/web/assets/{TasksetDraftEditorPrimitives-BnMqzE-T.js → TasksetDraftEditorPrimitives-Bcw6T4Lf.js} +1 -1
  191. package/dist/web/assets/{TeamChatView-XthM6n4S.js → TeamChatView-CIwlZFqB.js} +1 -1
  192. package/dist/web/assets/{TerminalOverlay--HCFZaQW.js → TerminalOverlay-Dhgy0NC3.js} +1 -1
  193. package/dist/web/assets/{TrainingCreationPanel-D2F6kPg_.js → TrainingCreationPanel-yLiEL2tM.js} +1 -1
  194. package/dist/web/assets/{TrainingDraftPanel-BurWPp9F.js → TrainingDraftPanel-Dng3C-zU.js} +1 -1
  195. package/dist/web/assets/{UsageSettingsSection-D7jdscDm.js → UsageSettingsSection-CTa7T7tS.js} +1 -1
  196. package/dist/web/assets/WorkSidebarPanel-BEIDC3vx.js +1 -0
  197. package/dist/web/assets/{WorkspaceDiffPanel-CPaCC1_p.js → WorkspaceDiffPanel-DnZlUEbx.js} +3 -3
  198. package/dist/web/assets/{WorkspaceEnvironmentMenu-BZxu6mUS.js → WorkspaceEnvironmentMenu-D-w36AYB.js} +1 -1
  199. package/dist/web/assets/{WorkspaceFileLocation-C4K_D_yh.js → WorkspaceFileLocation-D2kiU_FJ.js} +1 -1
  200. package/dist/web/assets/{WorkspaceGitDialogs-C0Yf29V0.js → WorkspaceGitDialogs-CylEGfzD.js} +1 -1
  201. package/dist/web/assets/{WorkspaceMonacoEditor-BRPLaFZS.js → WorkspaceMonacoEditor-ChBjvgxE.js} +3 -3
  202. package/dist/web/assets/{WorkspacePdfPreview-9wypyV6H.js → WorkspacePdfPreview-CBS6GjeP.js} +2 -2
  203. package/dist/web/assets/{WorkspacePresentationPreview-C-Cn-9pj.js → WorkspacePresentationPreview-DhltPUL4.js} +1 -1
  204. package/dist/web/assets/{bot-BuaAVlz6.js → bot-C0e4zzW4.js} +1 -1
  205. package/dist/web/assets/{chat-resources-DMPHClhQ.js → chat-resources-BFT0vtdv.js} +1 -1
  206. package/dist/web/assets/chevron-down-C4LIbeSz.js +1 -0
  207. package/dist/web/assets/chevron-right-BKelERU6.js +1 -0
  208. package/dist/web/assets/chevron-up-Dj1vY1ME.js +1 -0
  209. package/dist/web/assets/{chunk-C3TS766N-BXUEjt7d.js → chunk-C3TS766N-bHAuW3qR.js} +1 -1
  210. package/dist/web/assets/chunk-GS5HEE4M-DTj6NX5d.js +1 -0
  211. package/dist/web/assets/{client-C-ZuakZR.js → client-BO8YuI8Z.js} +1 -1
  212. package/dist/web/assets/{client-choice-storage-DWIA0Vou.js → client-choice-storage-D_6dVX8O.js} +1 -1
  213. package/dist/web/assets/{cloud-upload-B5LqiNCG.js → cloud-upload-U0f9MSd8.js} +1 -1
  214. package/dist/web/assets/{copy-BYIypHbq.js → copy-B0gWkglr.js} +1 -1
  215. package/dist/web/assets/{cssMode-ByypIqUN.js → cssMode-BkR1YcfF.js} +1 -1
  216. package/dist/web/assets/{dataset-workspaces-BTPi71mz.js → dataset-workspaces-DM2zGcAK.js} +1 -1
  217. package/dist/web/assets/{external-link-Cv7TDVPT.js → external-link-DymjzX8a.js} +1 -1
  218. package/dist/web/assets/{folder-open-DlIP3g5o.js → folder-open-BPA5YifJ.js} +1 -1
  219. package/dist/web/assets/{folder-plus-CXwFJqcY.js → folder-plus-BCcE8Q4i.js} +1 -1
  220. package/dist/web/assets/{git-commit-horizontal-DMh_-WxU.js → git-commit-horizontal-DbTJXbet.js} +1 -1
  221. package/dist/web/assets/{htmlMode-CQGeb-h5.js → htmlMode-z1rCf6pX.js} +1 -1
  222. package/dist/web/assets/{icons-CYvTltSH.js → icons-nr5d1kC-.js} +1 -1
  223. package/dist/web/assets/{image-Ci1JxTQX.js → image-Us0M7Xxi.js} +1 -1
  224. package/dist/web/assets/{index-CDtTBysF.js → index-DG0kf1wK.js} +2 -2
  225. package/dist/web/assets/{info-EjyMkVzV.js → info-M5kOSB9T.js} +1 -1
  226. package/dist/web/assets/{jsonMode-Dm6YK6Dw.js → jsonMode-AMfP-lcX.js} +1 -1
  227. package/dist/web/assets/loader-circle-C1-u7BUs.js +1 -0
  228. package/dist/web/assets/{lspLanguageFeatures-BjtOz-Ln.js → lspLanguageFeatures-C6uY6TKM.js} +1 -1
  229. package/dist/web/assets/{maximize-2-CvvoALtI.js → maximize-2-B2pi1o5S.js} +1 -1
  230. package/dist/web/assets/{message-square-CPtIPRtf.js → message-square-CPvsC3Wv.js} +1 -1
  231. package/dist/web/assets/{monaco.contribution-ClH8Tmjq.js → monaco.contribution-5F6IVWCS.js} +2 -2
  232. package/dist/web/assets/{monaco.contribution-wpC0-Kxw.js → monaco.contribution-BUi28toA.js} +2 -2
  233. package/dist/web/assets/{monaco.contribution-VSFFgrfZ.js → monaco.contribution-CfQvs13S.js} +2 -2
  234. package/dist/web/assets/{monaco.contribution-e5DNaEix.js → monaco.contribution-DySvt1jU.js} +2 -2
  235. package/dist/web/assets/{monitor-BroZpIvk.js → monitor-1YJYctCB.js} +1 -1
  236. package/dist/web/assets/{paperclip-DYZEL_Gi.js → paperclip-CNTReC0m.js} +1 -1
  237. package/dist/web/assets/{pdf-DkU37Bi0.js → pdf-DaNAfjLW.js} +1 -1
  238. package/dist/web/assets/play-DF5h_-8T.js +1 -0
  239. package/dist/web/assets/plus-D6oFNFQ0.js +1 -0
  240. package/dist/web/assets/{presentation-CddfsTzp.js → presentation-DbkiE2BE.js} +1 -1
  241. package/dist/web/assets/{python-CMdyfF2B.js → python-CDlD-992.js} +1 -1
  242. package/dist/web/assets/{refresh-cw-Cx_7Zlbl.js → refresh-cw-avBifyns.js} +1 -1
  243. package/dist/web/assets/{save-BaeHeBBw.js → save-DBayPmp_.js} +1 -1
  244. package/dist/web/assets/{settings-lists-CVg9h-5z.js → settings-lists-Cca729es.js} +1 -1
  245. package/dist/web/assets/square-CJccmW-i.js +1 -0
  246. package/dist/web/assets/{square-terminal-CBlQtWQw.js → square-terminal-D7snuW2g.js} +1 -1
  247. package/dist/web/assets/{submit-issue-command-L5--gt9i.js → submit-issue-command-wDL6xK3b.js} +1 -1
  248. package/dist/web/assets/{toggleHighContrast-hftC_Rxs.js → toggleHighContrast-CP0qM8JR.js} +1 -1
  249. package/dist/web/assets/training-KYW8yE6p.js +1 -0
  250. package/dist/web/assets/{training-model-data-vvvphDlO.js → training-model-data-CilS0W2N.js} +1 -1
  251. package/dist/web/assets/{tsMode-B0sZU1HD.js → tsMode-DxR6CkQb.js} +1 -1
  252. package/dist/web/assets/{upload-Bzt1ooBz.js → upload-DEtkeTGw.js} +1 -1
  253. package/dist/web/assets/{useAccountSettings-BnxwetkP.js → useAccountSettings-BTy8zF0n.js} +1 -1
  254. package/dist/web/assets/{useAgentInventory-D_qS4ols.js → useAgentInventory-8MWE3pbH.js} +1 -1
  255. package/dist/web/assets/{useChatContextSelection-D8aSVtCm.js → useChatContextSelection-CBVI5IYj.js} +1 -1
  256. package/dist/web/assets/{useLocalAgentSchedules-CUQ1MW4l.js → useLocalAgentSchedules-B09iSkPy.js} +1 -1
  257. package/dist/web/assets/{useQuery-9SCnxwmR.js → useQuery-CKHqHSr0.js} +1 -1
  258. package/dist/web/assets/{wifi-off-DWtVm7W7.js → wifi-off-C-GF_rPd.js} +1 -1
  259. package/dist/web/assets/{workers-B3jA6AOv.js → workers-CmqH-dTr.js} +1 -1
  260. package/dist/web/assets/x-CQ0pGF6Q.js +1 -0
  261. package/dist/web/assets/{yaml-BEUL30-5.js → yaml-J_HdACeF.js} +1 -1
  262. package/dist/web/index.html +1 -1
  263. package/package.json +1 -1
  264. package/dist/chunks/chunk-5AV2EWFX.js +0 -2
  265. package/dist/chunks/chunk-64EDQ7UV.js +0 -2
  266. package/dist/chunks/chunk-DLOJG7LP.js +0 -2
  267. package/dist/chunks/training-JA5ZQABE.js +0 -2
  268. package/dist/chunks/training-NL5GYZKU.js +0 -2
  269. package/dist/web/assets/AppTerminalPanel-B2p_tYh5.js +0 -2
  270. package/dist/web/assets/RightSidebarHomePanel-joZavyR9.js +0 -1
  271. package/dist/web/assets/WorkSidebarPanel-CmdXCmrZ.js +0 -1
  272. package/dist/web/assets/chevron-down-CkifKd_O.js +0 -1
  273. package/dist/web/assets/chevron-right-LsMXJ5SB.js +0 -1
  274. package/dist/web/assets/chevron-up-Dt5T2Sf5.js +0 -1
  275. package/dist/web/assets/chunk-GS5HEE4M-C0RLeIsy.js +0 -1
  276. package/dist/web/assets/loader-circle-AjP2mDJA.js +0 -1
  277. package/dist/web/assets/play-BrvX67t1.js +0 -1
  278. package/dist/web/assets/plus-DFjCZeRE.js +0 -1
  279. package/dist/web/assets/square-Di5JBnVr.js +0 -1
  280. package/dist/web/assets/training-CGYukv2L.js +0 -1
  281. package/dist/web/assets/x-EG07vYCF.js +0 -1
@@ -1 +1 @@
1
- import{C as e,E as t,S as n,a as r,c as i,d as a,g as o,i as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{l as m}from"./common-BWVSBnpX.js";import{t as h}from"./profile-ref-D8lxL7dW.js";import{Q as g,Z as _,m as v,zn as y}from"./training-CGYukv2L.js";import{t as b}from"./chunk-Q4RGCEOI-Cr-dg4Nk.js";var x=f().trim().min(1).max(240),S=c({teamId:x,actorId:x}).strict(),C=i(`location`,[c({location:a(`local`),jobId:x,owner:S,modelRunId:x,modelId:x,modelVersionId:x.nullable(),adapterArtifactLineageId:x.nullable()}).strict(),c({location:a(`cloud`),jobId:x,owner:S,apiOrigin:e().max(2e3),modelProjectId:x,portableProjectId:x,submissionHash:f().regex(/^[a-f0-9]{64}$/)}).strict()]),w=f().trim().min(1).max(240),T=c({location:a(`local`).default(`local`),jobId:w,modelRunId:w,modelId:w,modelVersionId:w.nullable(),adapterArtifactLineageId:w.nullable(),owner:c({teamId:w,actorId:w}).strict(),taskset:m,state:d([`prepared`,`running`,`succeeded`,`failed`,`cancelled`]),executionState:d([`queued`,`starting`,`running`,`cancelling`,`cancelled`,`succeeded`,`failed`,`reconciling`]),updatedAt:t()}).strict(),E=c({location:a(`cloud`),jobId:w,owner:c({teamId:w,actorId:w}).strict(),apiOrigin:e(),job:y,updatedAt:t()}).strict().refine(e=>e.jobId===e.job.id&&e.owner.teamId===e.job.teamId&&e.updatedAt===e.job.updatedAt,`Hosted training attachment must match its canonical job.`),D=p([T,E]);function O(e){return JSON.stringify([e.location,e.location===`cloud`?e.apiOrigin:null,e.owner.teamId,e.owner.actorId,e.jobId])}function k(e){let t={location:e.location,jobId:e.jobId,owner:e.owner};return C.parse(e.location===`cloud`?{...t,apiOrigin:e.apiOrigin,modelProjectId:e.job.modelProjectId,portableProjectId:e.job.portableProjectId,submissionHash:e.job.submissionHash}:{...t,modelRunId:e.modelRunId,modelId:e.modelId,modelVersionId:e.modelVersionId,adapterArtifactLineageId:e.adapterArtifactLineageId})}var A=f().trim().min(1).max(240),j=f().regex(/^[a-f0-9]{64}$/),M=c({kind:d([`structure`,`graders`]),revision:u().int().positive(),workspaceHash:j,status:d([`passed`,`failed`,`unavailable`]),checkedAt:t(),checked:u().int().nonnegative(),total:u().int().nonnegative(),issues:r(c({code:f(),message:f(),taskId:A.optional(),graderId:A.optional()})).max(1e4),scopes:r(c({graderId:A,checked:u().int().nonnegative(),total:u().int().nonnegative(),status:d([`passed`,`failed`,`unavailable`])}).strict()).max(1e3).optional()}).strict(),N=c({apiOrigin:e(),actorId:A,teamId:A,datasetId:A,remoteRevision:u().int().nonnegative(),acknowledgedHash:j.nullable(),remoteHash:j.nullable(),pendingLocalHash:j.nullable(),paused:l(),status:d([`pending`,`syncing`,`synced`,`retry`,`conflict`,`paused`]),error:f().nullable(),operationId:A.nullable(),pendingWorkspace:b.nullable(),beginVersionOperationId:A.nullable().optional(),publicationIntent:c({operationId:A,expectedRevision:u().int().positive(),workspaceHash:j,packageHash:j,localHash:j}).strict().nullable().optional()}).strict(),P=c({schemaVersion:a(`openpond.localDataset.v1`),ownerId:A,projectId:A.nullable(),workspace:b,checks:r(M).max(2),packageHash:j.nullable(),sync:N.nullable()}).strict(),F=c({kind:d([`dataset`,`grader`,`experiment`]),id:A,revision:u().int().positive(),name:f().max(500),state:f().max(100),datasetId:A.optional(),datasetRevision:u().int().positive().optional(),taskCount:u().int().nonnegative().optional(),graderCount:u().int().nonnegative().optional(),checkState:f().optional(),syncState:f().optional(),model:f().optional(),evaluationHash:j.optional(),graderId:A.optional(),graderType:f().optional(),description:f().optional(),location:d([`local`,`cloud`]).optional(),scoreLabel:f().optional(),owner:c({teamId:A,actorId:A}).strict().optional(),contentHash:j.optional(),profileRef:h.optional(),score:u().nullable().optional(),costUsd:u().nonnegative().nullable().optional(),evaluatedCount:u().int().nonnegative().optional(),failedCount:u().int().nonnegative().optional(),qualityFailureCount:u().int().nonnegative().optional(),executionFailureCount:u().int().nonnegative().optional(),ungradedCount:u().int().nonnegative().optional(),rows:r(c({id:A,label:f(),detail:f(),score:u().nullable().optional()})).max(10)}).strict(),I=c({id:A,ordinal:u().int().positive(),name:f().trim().min(1).max(500),draft:v.optional(),storedDraft:_.optional(),draftRevision:u().int().positive().optional(),creationHash:j.optional(),dataset:F.nullable(),evaluationModel:f().min(1).max(500).optional(),executionLocation:d([`local`,`cloud`]).optional(),graders:r(F),selectedGraderId:A.nullable(),runs:r(F),selectedRunId:A.nullable(),training:r(D).optional(),selectedTrainingKey:f().max(4e3).nullable().optional(),selectedTrainingJobId:A.nullable().optional(),results:r(g).max(16).optional(),turnIds:r(A),operationId:A,createdAt:t(),updatedAt:t()}).strict(),L=I.extend({ordinal:s()});c({datasetFocus:L.optional(),scopes:r(I),activeScopeId:A.nullable(),selectionVersion:u().int().nonnegative(),selectedAt:t().nullable(),selectionOperations:o(f(),c({hash:j,version:u().int().nonnegative(),visualPublicationId:f().optional(),resource:F.optional()}).strict()).default({})}).strict();function R(e){return[...e.scopes,...e.datasetFocus?[e.datasetFocus]:[]]}c({action:d([`schema`,`list`,`read`,`create`,`save`,`file`,`validate`,`check_graders`,`check_sources`,`package`,`import`,`inspect_source`,`import_source`,`upload`,`sync`,`pause_sync`,`disconnect_sync`,`related_chats`,`list_graders`,`read_grader`,`save_grader`,`test_grader`,`publish`]),id:A.optional(),operationId:A.optional(),expectedRevision:u().int().nonnegative().optional(),payload:o(f(),n()).default({})}).strict();var z=c({contentHash:j,scope:f(),graders:n(),cases:r(c({id:A,taskId:A,seed:f(),status:f(),output:f().nullable(),error:f().nullable(),score:u().nullable()}).strict()).max(1e4)}).strict();export{D as a,C as c,R as i,F as n,O as o,P as r,k as s,z as t};
1
+ import{C as e,E as t,S as n,a as r,c as i,d as a,g as o,i as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{l as m}from"./common-BWVSBnpX.js";import{t as h}from"./profile-ref-D8lxL7dW.js";import{Q as g,Z as _,m as v,zn as y}from"./training-KYW8yE6p.js";import{t as b}from"./chunk-Q4RGCEOI-Cr-dg4Nk.js";var x=f().trim().min(1).max(240),S=c({teamId:x,actorId:x}).strict(),C=i(`location`,[c({location:a(`local`),jobId:x,owner:S,modelRunId:x,modelId:x,modelVersionId:x.nullable(),adapterArtifactLineageId:x.nullable()}).strict(),c({location:a(`cloud`),jobId:x,owner:S,apiOrigin:e().max(2e3),modelProjectId:x,portableProjectId:x,submissionHash:f().regex(/^[a-f0-9]{64}$/)}).strict()]),w=f().trim().min(1).max(240),T=c({location:a(`local`).default(`local`),jobId:w,modelRunId:w,modelId:w,modelVersionId:w.nullable(),adapterArtifactLineageId:w.nullable(),owner:c({teamId:w,actorId:w}).strict(),taskset:m,state:d([`prepared`,`running`,`succeeded`,`failed`,`cancelled`]),executionState:d([`queued`,`starting`,`running`,`cancelling`,`cancelled`,`succeeded`,`failed`,`reconciling`]),updatedAt:t()}).strict(),E=c({location:a(`cloud`),jobId:w,owner:c({teamId:w,actorId:w}).strict(),apiOrigin:e(),job:y,updatedAt:t()}).strict().refine(e=>e.jobId===e.job.id&&e.owner.teamId===e.job.teamId&&e.updatedAt===e.job.updatedAt,`Hosted training attachment must match its canonical job.`),D=p([T,E]);function O(e){return JSON.stringify([e.location,e.location===`cloud`?e.apiOrigin:null,e.owner.teamId,e.owner.actorId,e.jobId])}function k(e){let t={location:e.location,jobId:e.jobId,owner:e.owner};return C.parse(e.location===`cloud`?{...t,apiOrigin:e.apiOrigin,modelProjectId:e.job.modelProjectId,portableProjectId:e.job.portableProjectId,submissionHash:e.job.submissionHash}:{...t,modelRunId:e.modelRunId,modelId:e.modelId,modelVersionId:e.modelVersionId,adapterArtifactLineageId:e.adapterArtifactLineageId})}var A=f().trim().min(1).max(240),j=f().regex(/^[a-f0-9]{64}$/),M=c({kind:d([`structure`,`graders`]),revision:u().int().positive(),workspaceHash:j,status:d([`passed`,`failed`,`unavailable`]),checkedAt:t(),checked:u().int().nonnegative(),total:u().int().nonnegative(),issues:r(c({code:f(),message:f(),taskId:A.optional(),graderId:A.optional()})).max(1e4),scopes:r(c({graderId:A,checked:u().int().nonnegative(),total:u().int().nonnegative(),status:d([`passed`,`failed`,`unavailable`])}).strict()).max(1e3).optional()}).strict(),N=c({apiOrigin:e(),actorId:A,teamId:A,datasetId:A,remoteRevision:u().int().nonnegative(),acknowledgedHash:j.nullable(),remoteHash:j.nullable(),pendingLocalHash:j.nullable(),paused:l(),status:d([`pending`,`syncing`,`synced`,`retry`,`conflict`,`paused`]),error:f().nullable(),operationId:A.nullable(),pendingWorkspace:b.nullable(),beginVersionOperationId:A.nullable().optional(),publicationIntent:c({operationId:A,expectedRevision:u().int().positive(),workspaceHash:j,packageHash:j,localHash:j}).strict().nullable().optional()}).strict(),P=c({schemaVersion:a(`openpond.localDataset.v1`),ownerId:A,projectId:A.nullable(),workspace:b,checks:r(M).max(2),packageHash:j.nullable(),sync:N.nullable()}).strict(),F=c({kind:d([`dataset`,`grader`,`experiment`]),id:A,revision:u().int().positive(),name:f().max(500),state:f().max(100),datasetId:A.optional(),datasetRevision:u().int().positive().optional(),taskCount:u().int().nonnegative().optional(),graderCount:u().int().nonnegative().optional(),checkState:f().optional(),syncState:f().optional(),model:f().optional(),evaluationHash:j.optional(),graderId:A.optional(),graderType:f().optional(),description:f().optional(),location:d([`local`,`cloud`]).optional(),scoreLabel:f().optional(),owner:c({teamId:A,actorId:A}).strict().optional(),contentHash:j.optional(),profileRef:h.optional(),score:u().nullable().optional(),costUsd:u().nonnegative().nullable().optional(),evaluatedCount:u().int().nonnegative().optional(),failedCount:u().int().nonnegative().optional(),qualityFailureCount:u().int().nonnegative().optional(),executionFailureCount:u().int().nonnegative().optional(),ungradedCount:u().int().nonnegative().optional(),rows:r(c({id:A,label:f(),detail:f(),score:u().nullable().optional()})).max(10)}).strict(),I=c({id:A,ordinal:u().int().positive(),name:f().trim().min(1).max(500),draft:v.optional(),storedDraft:_.optional(),draftRevision:u().int().positive().optional(),creationHash:j.optional(),dataset:F.nullable(),evaluationModel:f().min(1).max(500).optional(),executionLocation:d([`local`,`cloud`]).optional(),graders:r(F),selectedGraderId:A.nullable(),runs:r(F),selectedRunId:A.nullable(),training:r(D).optional(),selectedTrainingKey:f().max(4e3).nullable().optional(),selectedTrainingJobId:A.nullable().optional(),results:r(g).max(16).optional(),turnIds:r(A),operationId:A,createdAt:t(),updatedAt:t()}).strict(),L=I.extend({ordinal:s()});c({datasetFocus:L.optional(),scopes:r(I),activeScopeId:A.nullable(),selectionVersion:u().int().nonnegative(),selectedAt:t().nullable(),selectionOperations:o(f(),c({hash:j,version:u().int().nonnegative(),visualPublicationId:f().optional(),resource:F.optional()}).strict()).default({})}).strict();function R(e){return[...e.scopes,...e.datasetFocus?[e.datasetFocus]:[]]}c({action:d([`schema`,`list`,`read`,`create`,`save`,`file`,`validate`,`check_graders`,`check_sources`,`package`,`import`,`inspect_source`,`import_source`,`upload`,`sync`,`pause_sync`,`disconnect_sync`,`related_chats`,`list_graders`,`read_grader`,`save_grader`,`test_grader`,`publish`]),id:A.optional(),operationId:A.optional(),expectedRevision:u().int().nonnegative().optional(),payload:o(f(),n()).default({})}).strict();var z=c({contentHash:j,scope:f(),graders:n(),cases:r(c({id:A,taskId:A,seed:f(),status:f(),output:f().nullable(),error:f().nullable(),score:u().nullable()}).strict()).max(1e4)}).strict();export{D as a,C as c,R as i,F as n,O as o,P as r,k as s,z as t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`chevron-down`,[[`path`,{d:`m6 9 6 6 6-6`,key:`qrunsl`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`chevron-right`,[[`path`,{d:`m9 18 6-6-6-6`,key:`mthhwq`}]]);export{t};
@@ -0,0 +1 @@
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`chevron-up`,[[`path`,{d:`m18 15-6-6-6 6`,key:`153udz`}]]);export{t};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,h as n,m as r}from"./index-CDtTBysF.js";import{E as i,a,c as o,d as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{c as m,d as ee,i as h,o as g,s as _}from"./common-BWVSBnpX.js";import{t as te}from"./model-display-zPvC4L2B.js";import{C as ne,D as re,E as ie,F as ae,K as oe,N as v,O as se,Q as ce,S as le,T as ue,Tt as y,X as de,_ as fe,b as pe,ft as me,g as b,h as x,k as he,m as ge,nt as _e,p as S,pt as ve,q as ye,s as C,v as w,w as be,x as xe,y as Se}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{c as T,l as E,o as D,s as O,t as k,u as A}from"./reward-checks-DJJZYgf8.js";import{n as j,r as Ce}from"./intake-contracts-B8JZKYwb.js";import{s as we}from"./app-models-BUdzQbXo.js";import{t as Te}from"./icons-CYvTltSH.js";import{t as Ee}from"./loader-circle-AjP2mDJA.js";import{t as De}from"./x-EG07vYCF.js";import{At as Oe,gn as ke,kt as Ae}from"./App-CV1p0_Zy.js";var M=o(`kind`,[c({kind:s(`manual`),identity:_}).strict(),c({kind:s(`schedule`),scheduledAt:m}).strict(),c({kind:s(`approved_count`),checkedAt:m}).strict()]),N=c({schemaVersion:s(`openpond.learningChain.v1`),id:_,revision:u().int().positive(),modelProjectId:_,activeIterationId:_.nullable(),acceptedParent:S.nullable().optional(),latestIterationId:_,lastReservedAt:m.nullable(),updatedAt:m}).strict(),P=c({eligible:u().int().nonnegative(),awaitingReview:u().int().nonnegative(),excluded:u().int().nonnegative(),consumed:u().int().nonnegative()}).strict(),je=c({schemaVersion:s(`openpond.learningConsumption.v1`),id:_,revision:s(1),chainId:_,iterationId:_,evidence:w,decision:w,reservedAt:m}).strict(),Me=c({schemaVersion:s(`openpond.learningIterationReservation.v1`),id:_,revision:u().int().positive(),chainId:_,iterationId:_,policy:w,trigger:M,requestHash:g,outcome:d([`reserved`,`waiting_for_data`,`waiting_for_review`]),counts:P,budget:c({maximumSpendUsd:u().nonnegative(),reservedSpendUsd:u().nonnegative(),settledSpendUsd:u().nonnegative(),settledAt:m.nullable()}).strict(),createdAt:m,updatedAt:m}).strict(),F=c({operationId:_}),Ne=F.extend({action:s(`import_intake`),format:Ce,files:a(j).min(1).max(100),expectedPreviewHash:f().length(64),name:f().trim().min(1).max(500),recordIds:a(f().min(1).max(200)).min(1).max(90)}).strict(),I=F.extend({action:s(`publish`),expectedRevision:u().int().nonnegative(),finalizeDraft:D.optional()}),L=o(`kind`,[I.extend({kind:s(`asset`),content:E}).strict(),I.extend({kind:s(`definition`),content:ne}).strict(),I.extend({kind:s(`reward`),content:de}).strict(),I.extend({kind:s(`binding`),content:oe}).strict(),I.extend({kind:s(`source`),content:Se}).strict(),I.extend({kind:s(`policy`),content:b}).strict()]),Pe=F.extend({action:s(`publish_resources`),finalizeDraft:D.optional(),resources:a(p(L.options.map(e=>e.omit({operationId:!0,action:!0,finalizeDraft:!0})))).min(1).max(20)}).strict(),Fe=F.extend({action:s(`submit_example`),example:ie}).strict(),Ie=F.extend({action:s(`submit_feedback`),feedback:se}).strict(),Le=F.extend({action:s(`apply_correction`),feedbackId:_,evidence:w}).strict(),Re=F.extend({action:s(`resolve_feedback`),feedbackId:_,expectedRevision:u().int().positive(),disposition:d([`applied`,`rejected`,`superseded`]),decision:w.nullable(),note:f().max(2e4)}).strict(),ze=F.extend({action:s(`queue_grade`),evidence:w,target:d([`observed`,`proposed_target`]),proposedTarget:x.nullable(),timeoutMs:u().int().min(100).max(3e5).default(3e4),maximumSpendUsd:u().nonnegative().max(1e3).default(0)}).strict(),Be=F.extend({action:s(`review`),evidence:w,expectedRevision:u().int().nonnegative(),disposition:d([`approved`,`rejected`,`pending`]),targetApproval:d([`approved`,`rejected`,`pending`,`not_required`]),approvedTarget:x.nullable(),observedGradeId:_.nullable(),targetGradeId:_.nullable(),note:f().max(2e4)}).strict(),Ve=F.extend({action:s(`seal_batch`),batchId:_,taskDefinition:w,purpose:d([`supervised_training`,`reward_training`,`evaluation`]),evidence:a(w).min(1).max(1e4),decisions:a(w).min(1).max(1e4)}).strict(),He=F.extend({action:s(`cancel_grade`),gradeId:_,expectedRevision:u().int().positive()}).strict(),Ue=F.extend({action:s(`save_draft`),expectedRevision:u().int().nonnegative(),draft:O}).strict(),We=F.extend({action:s(`archive_draft`),draft:w}).strict(),Ge=F.extend({action:s(`queue_reward_check`),draft:w,timeoutMs:u().int().min(100).max(3e5).default(3e4),maximumSpendUsd:u().nonnegative().max(1e3).default(0)}).strict(),R=F.extend({action:s(`cancel_reward_check`),checkId:_,expectedRevision:u().int().positive()}).strict(),Ke=F.extend({action:s(`publish_checked_reward`),draft:w,checkId:_,checkRevision:u().int().positive()}).strict(),qe=F.extend({action:s(`reserve_iteration`),policy:w,trigger:M}).strict(),Je=F.extend({action:s(`cancel_iteration_reservation`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Ye=F.extend({action:s(`cancel_iteration`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Xe=F.extend({action:s(`retry_iteration_dispatch`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Ze=p([Ke,Ne,Ye,Xe,Je,qe,Ge,R,Ue,We,L,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He]),Qe=c({provider:_,protocol:_,payload:x}).strict(),$e=o(`status`,[c({status:s(`ready`)}).strict(),c({status:s(`deferred`),retryAt:m,reason:f().trim().min(1).max(2e3)}).strict()]),et=c({scope:_,dispatchId:_,submissionHash:f().regex(/^[a-f0-9]{64}$/),leaseGeneration:u().int().positive(),status:s(`deferred`),retryAt:m,reason:f().trim().min(1).max(2e3),receipt:h}).strict(),z=c({schemaVersion:s(`openpond.learningIterationDispatch.v1`),id:_,revision:u().int().positive(),iterationId:_,chainId:_,policy:w,batch:w,state:d([`preparing`,`prepared`,`submitted`,`settled`,`blocked`]),submission:Qe.nullable(),submissionHash:f().regex(/^[a-f0-9]{64}$/).nullable(),submissionStartedAt:m.nullable(),execution:h.nullable(),terminalReceipt:h.nullable(),cancelRequestedAt:m.nullable(),leaseOwner:_.nullable(),leaseGeneration:u().int().nonnegative(),leaseExpiresAt:m.nullable(),consecutiveFailures:u().int().nonnegative(),nextAttemptAt:m.nullable(),admission:$e.nullable().optional(),lastSubmissionDeferral:et.optional(),lastError:f().max(2e4).nullable(),createdAt:m,updatedAt:m}).strict().superRefine((e,t)=>{(!!e.submission!=!!e.submissionHash||e.submission&&ee(e.submission)!==e.submissionHash)&&t.addIssue({code:`custom`,path:[`submissionHash`],message:`Dispatch submission identity changed.`}),e.submissionStartedAt&&!e.submission&&t.addIssue({code:`custom`,path:[`submission`],message:`A started dispatch requires its persisted submission.`}),e.admission?.status===`deferred`&&(e.submissionStartedAt||e.state!==`prepared`||e.nextAttemptAt!==e.admission.retryAt)&&t.addIssue({code:`custom`,path:[`admission`],message:`Admission deferral requires an unstarted prepared dispatch and its retry time.`}),e.lastSubmissionDeferral&&(e.lastSubmissionDeferral.dispatchId!==e.id||e.lastSubmissionDeferral.submissionHash!==e.submissionHash||e.lastSubmissionDeferral.leaseGeneration>=e.leaseGeneration)&&t.addIssue({code:`custom`,path:[`lastSubmissionDeferral`],message:`A retained deferral must identify an earlier fenced attempt of this submission.`}),e.execution&&!e.submissionStartedAt&&t.addIssue({code:`custom`,path:[`execution`],message:`An execution requires a started dispatch.`}),[`prepared`,`submitted`].includes(e.state)&&!e.submission&&t.addIssue({code:`custom`,path:[`state`],message:`A prepared dispatch requires its immutable submission.`}),e.state===`submitted`&&!e.execution&&t.addIssue({code:`custom`,path:[`execution`],message:`A submitted dispatch requires an observed execution.`}),e.state===`settled`&&e.submissionStartedAt&&!e.terminalReceipt&&t.addIssue({code:`custom`,path:[`terminalReceipt`],message:`A started dispatch requires terminal receipt evidence before settlement.`}),!!e.leaseOwner!=!!e.leaseExpiresAt&&t.addIssue({code:`custom`,path:[`leaseOwner`],message:`Dispatch lease owner and expiration must be recorded together.`})});c({scope:_,dispatchId:_,submissionHash:f().regex(/^[a-f0-9]{64}$/),execution:h.nullable(),status:d([`running`,`evaluating`,`succeeded`,`failed`,`cancelled`]),spendUsd:u().nonnegative(),cleanupComplete:l(),receipt:h.nullable(),evaluation:h.nullable(),candidate:h.nullable(),failure:f().max(2e4).nullable()}).strict().superRefine((e,t)=>{[`succeeded`,`failed`,`cancelled`].includes(e.status)&&(!e.cleanupComplete||!e.receipt)&&t.addIssue({code:`custom`,path:[`receipt`],message:`Terminal execution requires an authoritative cleanup receipt.`}),e.status!==`cancelled`&&!e.execution&&t.addIssue({code:`custom`,path:[`execution`],message:`The execution identity is required.`}),e.candidate&&(e.status!==`succeeded`||!e.evaluation)&&t.addIssue({code:`custom`,path:[`candidate`],message:`A candidate requires successful retained evaluation.`})});var B=c({schemaVersion:s(`openpond.learningSchedule.v1`),id:_,revision:u().int().positive(),policy:w,modelProjectId:_,executionOwner:d([`local`,`hosted`]),state:d([`scheduled`,`disabled`,`blocked`]),intervalSeconds:u().int().min(60).max(31536e3).nullable(),calendar:ae.nullable().default(null),nextRunAt:m.nullable(),lastFire:w.nullable(),consecutiveFailures:u().int().nonnegative(),nextAttemptAt:m.nullable(),lastError:f().max(2e4).nullable(),createdAt:m,updatedAt:m}).strict().superRefine((e,t)=>{e.state!==`disabled`&&(!e.intervalSeconds&&!e.calendar||!e.nextRunAt)&&t.addIssue({code:`custom`,path:[`nextRunAt`],message:`An active timer must retain its cadence and due time.`}),e.state===`disabled`&&e.nextRunAt&&t.addIssue({code:`custom`,path:[`nextRunAt`],message:`A disabled timer cannot have a pending occurrence.`}),e.intervalSeconds&&e.calendar&&t.addIssue({code:`custom`,path:[`calendar`],message:`A timer uses either an interval or a nightly calendar.`})}),tt=c({schemaVersion:s(`openpond.learningScheduleFire.v1`),id:_,revision:s(1),scheduleId:_,policy:w,scheduledAt:m,coalescedThroughAt:m,coalescedCount:u().int().nonnegative(),outcome:d([`reserved`,`waiting_for_data`,`waiting_for_review`,`skipped`]),reason:d([`active_iteration`,`cooldown`,`daily_budget`]).nullable(),iteration:c({id:_,revision:u().int().positive()}).strict().nullable(),createdAt:m,contentHash:g}).strict().superRefine((e,t)=>{(e.outcome===`skipped`!=!!e.reason||e.outcome!==`skipped`!=!!e.iteration)&&t.addIssue({code:`custom`,path:[`outcome`],message:`A fire retains either its reservation or its explicit skip reason.`})}),V={draft:T,reward_check:k,asset:A,definition:be,reward:ce,binding:ye,source:pe,evidence:ue,feedback:re,decision:xe,batch:le,policy:fe,chain:N,consumption:je,reservation:Me,dispatch:z,schedule:B,schedule_fire:tt,iteration:ge,grade:he,package:ve},H=d(Object.keys(V)),U=c({policy:w,modelProjectId:_,inspectedAt:m,chain:N.nullable(),trainingParent:c({reference:h,selection:S.nullable()}).strict().nullable().default(null),counts:P.nullable(),minimumApprovedExamples:u().int().positive(),canReserve:l(),blockers:a(c({code:f().min(1).max(200),message:f().min(1).max(2e4)}).strict()).max(20),cooldownUntil:m.nullable(),budget:c({reservedSpendUsd:u().nonnegative(),settledSpendUsd:u().nonnegative(),committedSpendUsd:u().nonnegative(),maximumIterationSpendUsd:u().nonnegative(),maximumDailySpendUsd:u().nonnegative()}).strict()}).strict(),nt=c({modelProjectId:_.nullable(),inspectedAt:m,pendingTrainingCount:u().int().nonnegative().nullable(),issues:a(c({policyId:_,code:f(),message:f()}).strict())}).strict();function rt(e){try{y(e,16777216)}catch(e){throw new _e(`learning_json_invalid`,400,e instanceof Error?e.message:`Expected bounded JSON.`)}}var it=c({scope:_,command:Ze}).strict(),W=o(`action`,[c({action:s(`inspect_task_queue`),scope:_,modelProjectId:_.nullable()}).strict(),c({action:s(`inspect_policy`),scope:_,policy:w}).strict(),c({action:s(`inspect_evidence`),scope:_,evidence:w}).strict(),c({action:s(`get`),scope:_,kind:H,id:_,revision:u().int().positive().optional()}).strict(),c({action:s(`list`),scope:_,kind:H,parentId:_.optional(),status:f().min(1).max(200).optional(),reviewState:d([`inbox`,`reviewed`]).optional(),afterId:_.optional(),limit:u().int().min(1).max(100).default(50)}).strict()]),at=c({evidence:w,definition:w,inspection:c({evidenceValidity:d([`valid`,`invalid`]),taskReady:l(),observedOutputValid:l().nullable(),issues:a(c({path:f(),code:f(),message:f()}).strict()).max(100)}).strict()}).strict(),G=c({operationId:_,resources:a(p(Object.values(V))).max(100)}).strict(),ot=Te(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),K=e(Oe(),1),st=e(Ae(),1),q=e(t(),1),ct=n(),J=r();K.default.extend(st.default);var lt=e=>(0,K.default)(e).isValid()?(0,K.default)(e).fromNow():`Unknown time`;function ut({status:e,iconOnly:t=!1}){let n=e.toLowerCase(),r=[`completed`,`passed`,`ready`,`published`,`scored`,`succeeded`].includes(n),i=[`failed`,`error`,`rejected`,`budget_exhausted`].includes(n),a=[`queued`,`running`,`cancelling`,`checking`,`pending`].includes(n),o=r?ke:i?De:a?Ee:ot;return(0,J.jsxs)(`span`,{title:e.replaceAll(`_`,` `),"aria-label":e.replaceAll(`_`,` `),className:`evaluation-status evaluation-status-${r?`success`:i?`error`:a?`progress`:`neutral`}`,children:[(0,J.jsx)(o,{size:13,"aria-hidden":`true`}),t?null:e.replaceAll(`_`,` `)]})}function dt({name:e,onOpen:t}){let n=te(we(e));return t?(0,J.jsx)(`button`,{type:`button`,title:n,className:`evaluation-model`,onClick:e=>{e.stopPropagation(),t()},children:n}):(0,J.jsx)(`span`,{title:n,className:`evaluation-model`,children:n})}function ft({value:e}){let t=(0,q.useRef)(null),n=(0,q.useId)(),[r,i]=(0,q.useState)(!1),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(null),l=r||a;(0,q.useEffect)(()=>{if(!l)return;let e=()=>{let e=t.current?.getBoundingClientRect();if(!e)return;let n=Math.min(360,window.innerWidth-24);c({left:Math.max(12,Math.min(e.left,window.innerWidth-n-12)),top:window.innerHeight-e.bottom<80?Math.max(12,e.top-72):e.bottom+8})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[l]);let u=e?(0,K.default)(e):null;if(!u?.isValid())return(0,J.jsx)(`span`,{children:`Unknown`});let d=`${u.format(`MMM D, YYYY h:mm:ss A Z`)} (${Intl.DateTimeFormat().resolvedOptions().timeZone})`;return(0,J.jsxs)(`span`,{ref:t,className:`evaluation-time`,tabIndex:0,"aria-label":d,"aria-describedby":l?n:void 0,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),onKeyDown:e=>{e.key===`Escape`&&(i(!1),o(!1))},children:[(0,J.jsx)(`time`,{dateTime:u.toISOString(),children:u.fromNow()}),l&&s?(0,ct.createPortal)((0,J.jsx)(`span`,{id:n,className:`evaluation-time-tooltip`,role:`tooltip`,style:s,children:d}),document.body):null]})}function pt({title:e,children:t}){return(0,J.jsxs)(`section`,{className:`evaluation-card`,children:[(0,J.jsx)(`h3`,{children:e}),t]})}var Y=class extends Error{constructor(e,t,n,r){super(n),this.status=e,this.code=t,this.details=r,this.name=`OpenPondLearningError`}status;code;details},X=c({id:C,scope:C,sourceId:C,name:f().trim().min(1).max(100),keyPrefix:f().min(1).max(100),createdAt:i(),expiresAt:i(),revokedAt:i().nullable()}).strict(),Z=f().regex(/^opk_key_[A-Za-z0-9]{16}_[A-Za-z0-9]{48}$/),Q=o(`action`,[c({action:s(`create`),scope:C,sourceId:C,name:f().trim().min(1).max(100),expiresAt:i(),operationId:C,apiKey:Z}).strict(),c({action:s(`list`),scope:C,sourceId:C,afterId:C.optional(),limit:u().int().min(1).max(100).default(30)}).strict(),c({action:s(`revoke`),scope:C,sourceId:C,id:C}).strict()]),mt=c({credential:X,apiKey:Z}).strict(),ht=c({items:a(X).max(100),nextCursor:C.nullable()}).strict(),gt=c({scope:C,sourceId:C}).strict(),_t=c({scope:C,source:w,taskDefinition:w,enabled:l(),allowedSplits:a(me).min(1).max(4)}).strict();function vt(e){return{...e,operationId:crypto.randomUUID(),apiKey:`opk_key_${$(16)}_${$(48)}`}}function $(e){let t=``;for(;t.length<e;)for(let n of crypto.getRandomValues(new Uint8Array(64)))if(n<248&&(t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`[n%62]),t.length===e)return t;return t}var yt=c({batchId:f().trim().min(1).max(500),modelProjectId:f().trim().min(1).max(500)}).strict(),bt=c({batchId:f().min(1),projectId:f().min(1),tasksetId:f().min(1),releaseId:f().min(1),revision:u().int().positive(),contentHash:f().regex(/^[a-f0-9]{64}$/)}).strict(),xt=class{#e;constructor(e){if(!e.apiKey.trim()||!e.scope.trim())throw Error(`Learning API key and scope are required.`);let t=new URL(e.baseUrl);if(![`http:`,`https:`].includes(t.protocol)||t.username||t.password||t.search||t.hash)throw Error(`Learning base URL must be an HTTP(S) endpoint without credentials, query, or fragment.`);this.#e={...e,baseUrl:t.toString().replace(/\/+$/,``)}}async command(e,t={}){rt(e);let n=it.parse({scope:this.#e.scope,command:e}),r=G.parse(await this.#n(`commands`,n,t));if(r.operationId!==e.operationId)throw new Y(502,`operation_identity_mismatch`,`Learning response did not match the submitted operation.`,null);return r}submitExample(e,t={}){return this.command({action:`submit_example`,operationId:e.idempotencyKey,example:e},t)}submitFeedback(e,t={}){return this.command({action:`submit_feedback`,operationId:e.idempotencyKey,feedback:e},t)}async get(e,t,n,r={}){let i=W.parse({action:`get`,scope:this.#e.scope,kind:e,id:t,...n===void 0?{}:{revision:n}});return V[e].parse(await this.#n(`read`,i,r))}async inspectEvidence(e,t={}){let n=W.parse({action:`inspect_evidence`,scope:this.#e.scope,evidence:e}),r=at.parse(await this.#n(`read`,n,t));if(!v(r.evidence,e))throw new Y(502,`evidence_identity_mismatch`,`Inspection did not match the requested evidence release.`,null);return r}async inspectTaskQueue(e=null,t={}){let n=W.parse({action:`inspect_task_queue`,scope:this.#e.scope,modelProjectId:e}),r=nt.parse(await this.#n(`read`,n,t));if(r.modelProjectId!==e)throw new Y(502,`model_identity_mismatch`,`Task queue did not match the requested Model.`,null);return r}async inspectPolicy(e,t={}){let n=W.parse({action:`inspect_policy`,scope:this.#e.scope,policy:e}),r=U.parse(await this.#n(`read`,n,t));if(!v(r.policy,e))throw new Y(502,`policy_identity_mismatch`,`Inspection did not match the requested policy release.`,null);return r}async createSourceCredential(e,t={}){let n=Q.parse({...e,action:`create`,scope:this.#e.scope}),r=mt.parse(await this.#n(`credentials`,n,t));if(this.#t(r.credential,e.sourceId),r.apiKey!==e.apiKey||!e.apiKey.startsWith(`${r.credential.keyPrefix}_`))throw new Y(502,`credential_identity_mismatch`,`Credential response did not match the prepared credential.`,null);return r}async listSourceCredentials(e,t={},n={}){let r=Q.parse({...t,action:`list`,scope:this.#e.scope,sourceId:e}),i=ht.parse(await this.#n(`credentials`,r,n));if(i.items.length>(t.limit??30))throw new Y(502,`credential_page_invalid`,`Credential response exceeded the requested page size.`,null);for(let t of i.items)this.#t(t,e);return i}async revokeSourceCredential(e,t,n={}){let r=Q.parse({action:`revoke`,scope:this.#e.scope,sourceId:e,id:t}),i=X.parse(await this.#n(`credentials`,r,n));if(this.#t(i,e),i.id!==t||i.revokedAt===null)throw new Y(502,`credential_revocation_mismatch`,`Credential revocation did not match the requested credential.`,null);return i}async sourceConfiguration(e,t={}){let n=gt.parse({scope:this.#e.scope,sourceId:e}),r=_t.parse(await this.#n(`source-config`,n,t));if(r.scope!==this.#e.scope||r.source.id!==e)throw new Y(502,`source_identity_mismatch`,`Source configuration did not match the requested source.`,null);return r}#t(e,t){if(e.scope!==this.#e.scope||e.sourceId!==t)throw new Y(502,`credential_scope_mismatch`,`Credential response did not match the requested source.`,null)}async list(e,t={},n={}){let r=W.parse({action:`list`,scope:this.#e.scope,kind:e,...t});return c({items:a(V[e]).max(100),nextCursor:f().nullable()}).strict().parse(await this.#n(`read`,r,n))}async publishBatch(e,t={}){let n=yt.parse(e),r=bt.parse(await this.#n(`publish-batch`,{...n,scope:this.#e.scope},t));if(r.batchId!==n.batchId)throw new Y(502,`batch_identity_mismatch`,`Published batch response did not match the requested batch.`,null);return r}async#n(e,t,n){y(t,16777216);let r=await(this.#e.fetch??globalThis.fetch)(`${this.#e.baseUrl}/v1/learning/${e}`,{method:`POST`,headers:{Authorization:`Bearer ${this.#e.apiKey}`,"Content-Type":`application/json`,Accept:`application/json`,"X-OpenPond-Team-Id":this.#e.scope},body:JSON.stringify(t),signal:n.signal,redirect:`error`}),i=await St(r);if(!r.ok){let e=c({code:f().optional(),error:f().optional()}).passthrough().safeParse(i);throw new Y(r.status,e.success?e.data.code??`learning_request_failed`:`learning_request_failed`,e.success?e.data.error??`Learning request failed (${r.status}).`:`Learning request failed (${r.status}).`,i)}return i}};async function St(e){let t=16777216,n=e.body?.getReader();if(!n)throw new Y(e.status,`empty_response`,`Learning response was empty.`,null);let r=new TextDecoder,i=0,a=``;try{for(;;){let o=await n.read();if(o.done)break;if(i+=o.value.byteLength,i>t)throw new Y(e.status,`response_too_large`,`Learning response exceeded 16 MiB; request a smaller page.`,null);a+=r.decode(o.value,{stream:!0})}a+=r.decode();let o=JSON.parse(a);return y(o,t),o}finally{await n.cancel(),n.releaseLock()}}export{ut as a,G as c,z as d,dt as i,U as l,vt as n,ft as o,pt as r,lt as s,xt as t,B as u};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,h as n,m as r}from"./index-DG0kf1wK.js";import{E as i,a,c as o,d as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{c as m,d as ee,i as h,o as g,s as _}from"./common-BWVSBnpX.js";import{t as te}from"./model-display-zPvC4L2B.js";import{C as ne,D as re,E as ie,F as ae,K as oe,N as v,O as se,Q as ce,S as le,T as ue,Tt as y,X as de,_ as fe,b as pe,ft as me,g as b,h as x,k as he,m as ge,nt as _e,p as S,pt as ve,q as ye,s as C,v as w,w as be,x as xe,y as Se}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{c as T,l as E,o as D,s as O,t as k,u as A}from"./reward-checks-DJJZYgf8.js";import{n as j,r as Ce}from"./intake-contracts-B8JZKYwb.js";import{s as we}from"./app-models-BUdzQbXo.js";import{t as Te}from"./icons-nr5d1kC-.js";import{t as Ee}from"./loader-circle-C1-u7BUs.js";import{t as De}from"./x-CQ0pGF6Q.js";import{At as Oe,gn as ke,kt as Ae}from"./App-CqqK4NLa.js";var M=o(`kind`,[c({kind:s(`manual`),identity:_}).strict(),c({kind:s(`schedule`),scheduledAt:m}).strict(),c({kind:s(`approved_count`),checkedAt:m}).strict()]),N=c({schemaVersion:s(`openpond.learningChain.v1`),id:_,revision:u().int().positive(),modelProjectId:_,activeIterationId:_.nullable(),acceptedParent:S.nullable().optional(),latestIterationId:_,lastReservedAt:m.nullable(),updatedAt:m}).strict(),P=c({eligible:u().int().nonnegative(),awaitingReview:u().int().nonnegative(),excluded:u().int().nonnegative(),consumed:u().int().nonnegative()}).strict(),je=c({schemaVersion:s(`openpond.learningConsumption.v1`),id:_,revision:s(1),chainId:_,iterationId:_,evidence:w,decision:w,reservedAt:m}).strict(),Me=c({schemaVersion:s(`openpond.learningIterationReservation.v1`),id:_,revision:u().int().positive(),chainId:_,iterationId:_,policy:w,trigger:M,requestHash:g,outcome:d([`reserved`,`waiting_for_data`,`waiting_for_review`]),counts:P,budget:c({maximumSpendUsd:u().nonnegative(),reservedSpendUsd:u().nonnegative(),settledSpendUsd:u().nonnegative(),settledAt:m.nullable()}).strict(),createdAt:m,updatedAt:m}).strict(),F=c({operationId:_}),Ne=F.extend({action:s(`import_intake`),format:Ce,files:a(j).min(1).max(100),expectedPreviewHash:f().length(64),name:f().trim().min(1).max(500),recordIds:a(f().min(1).max(200)).min(1).max(90)}).strict(),I=F.extend({action:s(`publish`),expectedRevision:u().int().nonnegative(),finalizeDraft:D.optional()}),L=o(`kind`,[I.extend({kind:s(`asset`),content:E}).strict(),I.extend({kind:s(`definition`),content:ne}).strict(),I.extend({kind:s(`reward`),content:de}).strict(),I.extend({kind:s(`binding`),content:oe}).strict(),I.extend({kind:s(`source`),content:Se}).strict(),I.extend({kind:s(`policy`),content:b}).strict()]),Pe=F.extend({action:s(`publish_resources`),finalizeDraft:D.optional(),resources:a(p(L.options.map(e=>e.omit({operationId:!0,action:!0,finalizeDraft:!0})))).min(1).max(20)}).strict(),Fe=F.extend({action:s(`submit_example`),example:ie}).strict(),Ie=F.extend({action:s(`submit_feedback`),feedback:se}).strict(),Le=F.extend({action:s(`apply_correction`),feedbackId:_,evidence:w}).strict(),Re=F.extend({action:s(`resolve_feedback`),feedbackId:_,expectedRevision:u().int().positive(),disposition:d([`applied`,`rejected`,`superseded`]),decision:w.nullable(),note:f().max(2e4)}).strict(),ze=F.extend({action:s(`queue_grade`),evidence:w,target:d([`observed`,`proposed_target`]),proposedTarget:x.nullable(),timeoutMs:u().int().min(100).max(3e5).default(3e4),maximumSpendUsd:u().nonnegative().max(1e3).default(0)}).strict(),Be=F.extend({action:s(`review`),evidence:w,expectedRevision:u().int().nonnegative(),disposition:d([`approved`,`rejected`,`pending`]),targetApproval:d([`approved`,`rejected`,`pending`,`not_required`]),approvedTarget:x.nullable(),observedGradeId:_.nullable(),targetGradeId:_.nullable(),note:f().max(2e4)}).strict(),Ve=F.extend({action:s(`seal_batch`),batchId:_,taskDefinition:w,purpose:d([`supervised_training`,`reward_training`,`evaluation`]),evidence:a(w).min(1).max(1e4),decisions:a(w).min(1).max(1e4)}).strict(),He=F.extend({action:s(`cancel_grade`),gradeId:_,expectedRevision:u().int().positive()}).strict(),Ue=F.extend({action:s(`save_draft`),expectedRevision:u().int().nonnegative(),draft:O}).strict(),We=F.extend({action:s(`archive_draft`),draft:w}).strict(),Ge=F.extend({action:s(`queue_reward_check`),draft:w,timeoutMs:u().int().min(100).max(3e5).default(3e4),maximumSpendUsd:u().nonnegative().max(1e3).default(0)}).strict(),R=F.extend({action:s(`cancel_reward_check`),checkId:_,expectedRevision:u().int().positive()}).strict(),Ke=F.extend({action:s(`publish_checked_reward`),draft:w,checkId:_,checkRevision:u().int().positive()}).strict(),qe=F.extend({action:s(`reserve_iteration`),policy:w,trigger:M}).strict(),Je=F.extend({action:s(`cancel_iteration_reservation`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Ye=F.extend({action:s(`cancel_iteration`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Xe=F.extend({action:s(`retry_iteration_dispatch`),iterationId:_,expectedRevision:u().int().positive()}).strict(),Ze=p([Ke,Ne,Ye,Xe,Je,qe,Ge,R,Ue,We,L,Pe,Fe,Ie,Le,Re,ze,Be,Ve,He]),Qe=c({provider:_,protocol:_,payload:x}).strict(),$e=o(`status`,[c({status:s(`ready`)}).strict(),c({status:s(`deferred`),retryAt:m,reason:f().trim().min(1).max(2e3)}).strict()]),et=c({scope:_,dispatchId:_,submissionHash:f().regex(/^[a-f0-9]{64}$/),leaseGeneration:u().int().positive(),status:s(`deferred`),retryAt:m,reason:f().trim().min(1).max(2e3),receipt:h}).strict(),z=c({schemaVersion:s(`openpond.learningIterationDispatch.v1`),id:_,revision:u().int().positive(),iterationId:_,chainId:_,policy:w,batch:w,state:d([`preparing`,`prepared`,`submitted`,`settled`,`blocked`]),submission:Qe.nullable(),submissionHash:f().regex(/^[a-f0-9]{64}$/).nullable(),submissionStartedAt:m.nullable(),execution:h.nullable(),terminalReceipt:h.nullable(),cancelRequestedAt:m.nullable(),leaseOwner:_.nullable(),leaseGeneration:u().int().nonnegative(),leaseExpiresAt:m.nullable(),consecutiveFailures:u().int().nonnegative(),nextAttemptAt:m.nullable(),admission:$e.nullable().optional(),lastSubmissionDeferral:et.optional(),lastError:f().max(2e4).nullable(),createdAt:m,updatedAt:m}).strict().superRefine((e,t)=>{(!!e.submission!=!!e.submissionHash||e.submission&&ee(e.submission)!==e.submissionHash)&&t.addIssue({code:`custom`,path:[`submissionHash`],message:`Dispatch submission identity changed.`}),e.submissionStartedAt&&!e.submission&&t.addIssue({code:`custom`,path:[`submission`],message:`A started dispatch requires its persisted submission.`}),e.admission?.status===`deferred`&&(e.submissionStartedAt||e.state!==`prepared`||e.nextAttemptAt!==e.admission.retryAt)&&t.addIssue({code:`custom`,path:[`admission`],message:`Admission deferral requires an unstarted prepared dispatch and its retry time.`}),e.lastSubmissionDeferral&&(e.lastSubmissionDeferral.dispatchId!==e.id||e.lastSubmissionDeferral.submissionHash!==e.submissionHash||e.lastSubmissionDeferral.leaseGeneration>=e.leaseGeneration)&&t.addIssue({code:`custom`,path:[`lastSubmissionDeferral`],message:`A retained deferral must identify an earlier fenced attempt of this submission.`}),e.execution&&!e.submissionStartedAt&&t.addIssue({code:`custom`,path:[`execution`],message:`An execution requires a started dispatch.`}),[`prepared`,`submitted`].includes(e.state)&&!e.submission&&t.addIssue({code:`custom`,path:[`state`],message:`A prepared dispatch requires its immutable submission.`}),e.state===`submitted`&&!e.execution&&t.addIssue({code:`custom`,path:[`execution`],message:`A submitted dispatch requires an observed execution.`}),e.state===`settled`&&e.submissionStartedAt&&!e.terminalReceipt&&t.addIssue({code:`custom`,path:[`terminalReceipt`],message:`A started dispatch requires terminal receipt evidence before settlement.`}),!!e.leaseOwner!=!!e.leaseExpiresAt&&t.addIssue({code:`custom`,path:[`leaseOwner`],message:`Dispatch lease owner and expiration must be recorded together.`})});c({scope:_,dispatchId:_,submissionHash:f().regex(/^[a-f0-9]{64}$/),execution:h.nullable(),status:d([`running`,`evaluating`,`succeeded`,`failed`,`cancelled`]),spendUsd:u().nonnegative(),cleanupComplete:l(),receipt:h.nullable(),evaluation:h.nullable(),candidate:h.nullable(),failure:f().max(2e4).nullable()}).strict().superRefine((e,t)=>{[`succeeded`,`failed`,`cancelled`].includes(e.status)&&(!e.cleanupComplete||!e.receipt)&&t.addIssue({code:`custom`,path:[`receipt`],message:`Terminal execution requires an authoritative cleanup receipt.`}),e.status!==`cancelled`&&!e.execution&&t.addIssue({code:`custom`,path:[`execution`],message:`The execution identity is required.`}),e.candidate&&(e.status!==`succeeded`||!e.evaluation)&&t.addIssue({code:`custom`,path:[`candidate`],message:`A candidate requires successful retained evaluation.`})});var B=c({schemaVersion:s(`openpond.learningSchedule.v1`),id:_,revision:u().int().positive(),policy:w,modelProjectId:_,executionOwner:d([`local`,`hosted`]),state:d([`scheduled`,`disabled`,`blocked`]),intervalSeconds:u().int().min(60).max(31536e3).nullable(),calendar:ae.nullable().default(null),nextRunAt:m.nullable(),lastFire:w.nullable(),consecutiveFailures:u().int().nonnegative(),nextAttemptAt:m.nullable(),lastError:f().max(2e4).nullable(),createdAt:m,updatedAt:m}).strict().superRefine((e,t)=>{e.state!==`disabled`&&(!e.intervalSeconds&&!e.calendar||!e.nextRunAt)&&t.addIssue({code:`custom`,path:[`nextRunAt`],message:`An active timer must retain its cadence and due time.`}),e.state===`disabled`&&e.nextRunAt&&t.addIssue({code:`custom`,path:[`nextRunAt`],message:`A disabled timer cannot have a pending occurrence.`}),e.intervalSeconds&&e.calendar&&t.addIssue({code:`custom`,path:[`calendar`],message:`A timer uses either an interval or a nightly calendar.`})}),tt=c({schemaVersion:s(`openpond.learningScheduleFire.v1`),id:_,revision:s(1),scheduleId:_,policy:w,scheduledAt:m,coalescedThroughAt:m,coalescedCount:u().int().nonnegative(),outcome:d([`reserved`,`waiting_for_data`,`waiting_for_review`,`skipped`]),reason:d([`active_iteration`,`cooldown`,`daily_budget`]).nullable(),iteration:c({id:_,revision:u().int().positive()}).strict().nullable(),createdAt:m,contentHash:g}).strict().superRefine((e,t)=>{(e.outcome===`skipped`!=!!e.reason||e.outcome!==`skipped`!=!!e.iteration)&&t.addIssue({code:`custom`,path:[`outcome`],message:`A fire retains either its reservation or its explicit skip reason.`})}),V={draft:T,reward_check:k,asset:A,definition:be,reward:ce,binding:ye,source:pe,evidence:ue,feedback:re,decision:xe,batch:le,policy:fe,chain:N,consumption:je,reservation:Me,dispatch:z,schedule:B,schedule_fire:tt,iteration:ge,grade:he,package:ve},H=d(Object.keys(V)),U=c({policy:w,modelProjectId:_,inspectedAt:m,chain:N.nullable(),trainingParent:c({reference:h,selection:S.nullable()}).strict().nullable().default(null),counts:P.nullable(),minimumApprovedExamples:u().int().positive(),canReserve:l(),blockers:a(c({code:f().min(1).max(200),message:f().min(1).max(2e4)}).strict()).max(20),cooldownUntil:m.nullable(),budget:c({reservedSpendUsd:u().nonnegative(),settledSpendUsd:u().nonnegative(),committedSpendUsd:u().nonnegative(),maximumIterationSpendUsd:u().nonnegative(),maximumDailySpendUsd:u().nonnegative()}).strict()}).strict(),nt=c({modelProjectId:_.nullable(),inspectedAt:m,pendingTrainingCount:u().int().nonnegative().nullable(),issues:a(c({policyId:_,code:f(),message:f()}).strict())}).strict();function rt(e){try{y(e,16777216)}catch(e){throw new _e(`learning_json_invalid`,400,e instanceof Error?e.message:`Expected bounded JSON.`)}}var it=c({scope:_,command:Ze}).strict(),W=o(`action`,[c({action:s(`inspect_task_queue`),scope:_,modelProjectId:_.nullable()}).strict(),c({action:s(`inspect_policy`),scope:_,policy:w}).strict(),c({action:s(`inspect_evidence`),scope:_,evidence:w}).strict(),c({action:s(`get`),scope:_,kind:H,id:_,revision:u().int().positive().optional()}).strict(),c({action:s(`list`),scope:_,kind:H,parentId:_.optional(),status:f().min(1).max(200).optional(),reviewState:d([`inbox`,`reviewed`]).optional(),afterId:_.optional(),limit:u().int().min(1).max(100).default(50)}).strict()]),at=c({evidence:w,definition:w,inspection:c({evidenceValidity:d([`valid`,`invalid`]),taskReady:l(),observedOutputValid:l().nullable(),issues:a(c({path:f(),code:f(),message:f()}).strict()).max(100)}).strict()}).strict(),G=c({operationId:_,resources:a(p(Object.values(V))).max(100)}).strict(),ot=Te(`circle`,[[`circle`,{cx:`12`,cy:`12`,r:`10`,key:`1mglay`}]]),K=e(Oe(),1),st=e(Ae(),1),q=e(t(),1),ct=n(),J=r();K.default.extend(st.default);var lt=e=>(0,K.default)(e).isValid()?(0,K.default)(e).fromNow():`Unknown time`;function ut({status:e,iconOnly:t=!1}){let n=e.toLowerCase(),r=[`completed`,`passed`,`ready`,`published`,`scored`,`succeeded`].includes(n),i=[`failed`,`error`,`rejected`,`budget_exhausted`].includes(n),a=[`queued`,`running`,`cancelling`,`checking`,`pending`].includes(n),o=r?ke:i?De:a?Ee:ot;return(0,J.jsxs)(`span`,{title:e.replaceAll(`_`,` `),"aria-label":e.replaceAll(`_`,` `),className:`evaluation-status evaluation-status-${r?`success`:i?`error`:a?`progress`:`neutral`}`,children:[(0,J.jsx)(o,{size:13,"aria-hidden":`true`}),t?null:e.replaceAll(`_`,` `)]})}function dt({name:e,onOpen:t}){let n=te(we(e));return t?(0,J.jsx)(`button`,{type:`button`,title:n,className:`evaluation-model`,onClick:e=>{e.stopPropagation(),t()},children:n}):(0,J.jsx)(`span`,{title:n,className:`evaluation-model`,children:n})}function ft({value:e}){let t=(0,q.useRef)(null),n=(0,q.useId)(),[r,i]=(0,q.useState)(!1),[a,o]=(0,q.useState)(!1),[s,c]=(0,q.useState)(null),l=r||a;(0,q.useEffect)(()=>{if(!l)return;let e=()=>{let e=t.current?.getBoundingClientRect();if(!e)return;let n=Math.min(360,window.innerWidth-24);c({left:Math.max(12,Math.min(e.left,window.innerWidth-n-12)),top:window.innerHeight-e.bottom<80?Math.max(12,e.top-72):e.bottom+8})};return e(),window.addEventListener(`resize`,e),window.addEventListener(`scroll`,e,!0),()=>{window.removeEventListener(`resize`,e),window.removeEventListener(`scroll`,e,!0)}},[l]);let u=e?(0,K.default)(e):null;if(!u?.isValid())return(0,J.jsx)(`span`,{children:`Unknown`});let d=`${u.format(`MMM D, YYYY h:mm:ss A Z`)} (${Intl.DateTimeFormat().resolvedOptions().timeZone})`;return(0,J.jsxs)(`span`,{ref:t,className:`evaluation-time`,tabIndex:0,"aria-label":d,"aria-describedby":l?n:void 0,onMouseEnter:()=>i(!0),onMouseLeave:()=>i(!1),onFocus:()=>o(!0),onBlur:()=>o(!1),onKeyDown:e=>{e.key===`Escape`&&(i(!1),o(!1))},children:[(0,J.jsx)(`time`,{dateTime:u.toISOString(),children:u.fromNow()}),l&&s?(0,ct.createPortal)((0,J.jsx)(`span`,{id:n,className:`evaluation-time-tooltip`,role:`tooltip`,style:s,children:d}),document.body):null]})}function pt({title:e,children:t}){return(0,J.jsxs)(`section`,{className:`evaluation-card`,children:[(0,J.jsx)(`h3`,{children:e}),t]})}var Y=class extends Error{constructor(e,t,n,r){super(n),this.status=e,this.code=t,this.details=r,this.name=`OpenPondLearningError`}status;code;details},X=c({id:C,scope:C,sourceId:C,name:f().trim().min(1).max(100),keyPrefix:f().min(1).max(100),createdAt:i(),expiresAt:i(),revokedAt:i().nullable()}).strict(),Z=f().regex(/^opk_key_[A-Za-z0-9]{16}_[A-Za-z0-9]{48}$/),Q=o(`action`,[c({action:s(`create`),scope:C,sourceId:C,name:f().trim().min(1).max(100),expiresAt:i(),operationId:C,apiKey:Z}).strict(),c({action:s(`list`),scope:C,sourceId:C,afterId:C.optional(),limit:u().int().min(1).max(100).default(30)}).strict(),c({action:s(`revoke`),scope:C,sourceId:C,id:C}).strict()]),mt=c({credential:X,apiKey:Z}).strict(),ht=c({items:a(X).max(100),nextCursor:C.nullable()}).strict(),gt=c({scope:C,sourceId:C}).strict(),_t=c({scope:C,source:w,taskDefinition:w,enabled:l(),allowedSplits:a(me).min(1).max(4)}).strict();function vt(e){return{...e,operationId:crypto.randomUUID(),apiKey:`opk_key_${$(16)}_${$(48)}`}}function $(e){let t=``;for(;t.length<e;)for(let n of crypto.getRandomValues(new Uint8Array(64)))if(n<248&&(t+=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789`[n%62]),t.length===e)return t;return t}var yt=c({batchId:f().trim().min(1).max(500),modelProjectId:f().trim().min(1).max(500)}).strict(),bt=c({batchId:f().min(1),projectId:f().min(1),tasksetId:f().min(1),releaseId:f().min(1),revision:u().int().positive(),contentHash:f().regex(/^[a-f0-9]{64}$/)}).strict(),xt=class{#e;constructor(e){if(!e.apiKey.trim()||!e.scope.trim())throw Error(`Learning API key and scope are required.`);let t=new URL(e.baseUrl);if(![`http:`,`https:`].includes(t.protocol)||t.username||t.password||t.search||t.hash)throw Error(`Learning base URL must be an HTTP(S) endpoint without credentials, query, or fragment.`);this.#e={...e,baseUrl:t.toString().replace(/\/+$/,``)}}async command(e,t={}){rt(e);let n=it.parse({scope:this.#e.scope,command:e}),r=G.parse(await this.#n(`commands`,n,t));if(r.operationId!==e.operationId)throw new Y(502,`operation_identity_mismatch`,`Learning response did not match the submitted operation.`,null);return r}submitExample(e,t={}){return this.command({action:`submit_example`,operationId:e.idempotencyKey,example:e},t)}submitFeedback(e,t={}){return this.command({action:`submit_feedback`,operationId:e.idempotencyKey,feedback:e},t)}async get(e,t,n,r={}){let i=W.parse({action:`get`,scope:this.#e.scope,kind:e,id:t,...n===void 0?{}:{revision:n}});return V[e].parse(await this.#n(`read`,i,r))}async inspectEvidence(e,t={}){let n=W.parse({action:`inspect_evidence`,scope:this.#e.scope,evidence:e}),r=at.parse(await this.#n(`read`,n,t));if(!v(r.evidence,e))throw new Y(502,`evidence_identity_mismatch`,`Inspection did not match the requested evidence release.`,null);return r}async inspectTaskQueue(e=null,t={}){let n=W.parse({action:`inspect_task_queue`,scope:this.#e.scope,modelProjectId:e}),r=nt.parse(await this.#n(`read`,n,t));if(r.modelProjectId!==e)throw new Y(502,`model_identity_mismatch`,`Task queue did not match the requested Model.`,null);return r}async inspectPolicy(e,t={}){let n=W.parse({action:`inspect_policy`,scope:this.#e.scope,policy:e}),r=U.parse(await this.#n(`read`,n,t));if(!v(r.policy,e))throw new Y(502,`policy_identity_mismatch`,`Inspection did not match the requested policy release.`,null);return r}async createSourceCredential(e,t={}){let n=Q.parse({...e,action:`create`,scope:this.#e.scope}),r=mt.parse(await this.#n(`credentials`,n,t));if(this.#t(r.credential,e.sourceId),r.apiKey!==e.apiKey||!e.apiKey.startsWith(`${r.credential.keyPrefix}_`))throw new Y(502,`credential_identity_mismatch`,`Credential response did not match the prepared credential.`,null);return r}async listSourceCredentials(e,t={},n={}){let r=Q.parse({...t,action:`list`,scope:this.#e.scope,sourceId:e}),i=ht.parse(await this.#n(`credentials`,r,n));if(i.items.length>(t.limit??30))throw new Y(502,`credential_page_invalid`,`Credential response exceeded the requested page size.`,null);for(let t of i.items)this.#t(t,e);return i}async revokeSourceCredential(e,t,n={}){let r=Q.parse({action:`revoke`,scope:this.#e.scope,sourceId:e,id:t}),i=X.parse(await this.#n(`credentials`,r,n));if(this.#t(i,e),i.id!==t||i.revokedAt===null)throw new Y(502,`credential_revocation_mismatch`,`Credential revocation did not match the requested credential.`,null);return i}async sourceConfiguration(e,t={}){let n=gt.parse({scope:this.#e.scope,sourceId:e}),r=_t.parse(await this.#n(`source-config`,n,t));if(r.scope!==this.#e.scope||r.source.id!==e)throw new Y(502,`source_identity_mismatch`,`Source configuration did not match the requested source.`,null);return r}#t(e,t){if(e.scope!==this.#e.scope||e.sourceId!==t)throw new Y(502,`credential_scope_mismatch`,`Credential response did not match the requested source.`,null)}async list(e,t={},n={}){let r=W.parse({action:`list`,scope:this.#e.scope,kind:e,...t});return c({items:a(V[e]).max(100),nextCursor:f().nullable()}).strict().parse(await this.#n(`read`,r,n))}async publishBatch(e,t={}){let n=yt.parse(e),r=bt.parse(await this.#n(`publish-batch`,{...n,scope:this.#e.scope},t));if(r.batchId!==n.batchId)throw new Y(502,`batch_identity_mismatch`,`Published batch response did not match the requested batch.`,null);return r}async#n(e,t,n){y(t,16777216);let r=await(this.#e.fetch??globalThis.fetch)(`${this.#e.baseUrl}/v1/learning/${e}`,{method:`POST`,headers:{Authorization:`Bearer ${this.#e.apiKey}`,"Content-Type":`application/json`,Accept:`application/json`,"X-OpenPond-Team-Id":this.#e.scope},body:JSON.stringify(t),signal:n.signal,redirect:`error`}),i=await St(r);if(!r.ok){let e=c({code:f().optional(),error:f().optional()}).passthrough().safeParse(i);throw new Y(r.status,e.success?e.data.code??`learning_request_failed`:`learning_request_failed`,e.success?e.data.error??`Learning request failed (${r.status}).`:`Learning request failed (${r.status}).`,i)}return i}};async function St(e){let t=16777216,n=e.body?.getReader();if(!n)throw new Y(e.status,`empty_response`,`Learning response was empty.`,null);let r=new TextDecoder,i=0,a=``;try{for(;;){let o=await n.read();if(o.done)break;if(i+=o.value.byteLength,i>t)throw new Y(e.status,`response_too_large`,`Learning response exceeded 16 MiB; request a smaller page.`,null);a+=r.decode(o.value,{stream:!0})}a+=r.decode();let o=JSON.parse(a);return y(o,t),o}finally{await n.cancel(),n.releaseLock()}}export{ut as a,G as c,z as d,dt as i,U as l,vt as n,ft as o,pt as r,lt as s,xt as t,B as u};
@@ -0,0 +1 @@
1
+ import{E as e,S as t,a as n,c as r,d as i,g as a,i as ee,m as o,o as s,p as c,r as l,v as u,w as d,x as te}from"./schemas-Brv9Vmnk.js";import{a as f,c as p,d as ne,i as m,n as re,o as h,s as g,t as ie}from"./common-BWVSBnpX.js";import{O as _}from"./settings-BC-bzgk6.js";import{Dt as ae,G as oe,Ot as v,U as y,Y as se,d as b,ft as ce,it as x,ot as S,t as le,tt as C}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{K as w,nt as ue,z as de}from"./chunk-GCUWJUUM-Dy6oUNJ6.js";var T=u().trim().min(1).max(200),E=o({sessionId:T,turnId:T,source:y,admissionHash:h,modelConfigurationHash:h,traceHash:h,runtimeEventRefs:n(T).max(1e4),startedAt:p,completedAt:p,outputHash:h,partialOutputAvailable:s()}).strict().superRefine((e,t)=>{new Set(e.runtimeEventRefs).size!==e.runtimeEventRefs.length&&t.addIssue({code:`custom`,path:[`runtimeEventRefs`],message:`Native event references must be unique.`}),Date.parse(e.completedAt)<Date.parse(e.startedAt)&&t.addIssue({code:`custom`,path:[`completedAt`],message:`Native completion precedes its start.`})});o({schemaVersion:i(`openpond.nativeHarnessExperimentAttempt.v1`),taskId:u().min(1).max(500),status:l([`completed`,`cancelled`,`timed_out`,`policy_failure`]),output:u().max(8388608).nullable(),error:u().max(2e3).nullable(),messages:n(t()).max(4002),collected:s(),environmentCleanupComplete:i(!0),snapshot:ee(),native:E}).strict().superRefine((e,t)=>{let n=e.status===`completed`;(n!==e.collected||n!==(e.output!==null)||n!==(e.error===null))&&t.addIssue({code:`custom`,message:`Native status, output, collection and error must agree.`}),n&&(e.native.partialOutputAvailable||e.native.outputHash!==ne(e.output))&&t.addIssue({code:`custom`,path:[`native`,`outputHash`],message:`Native output differs from its retained evidence.`})}).extend({contentHash:h}).strict();var fe=o({adapterId:g,placement:l([`local`,`remote`,`colocated`,`provider_native`]),runtimeVersion:u().trim().min(1).max(200),capabilityReceipt:h}).strict(),D=o({maxTurns:c().int().positive().max(1e5),timeoutMs:c().int().positive().max(864e5),maxOutputBytes:c().int().positive().max(25e7),maximumSpendUsd:c().nonnegative().nullable()}).strict();o({schemaVersion:i(`openpond.runManifest.v1`),id:g,harnessRelease:m,tasksetRelease:m,model:_,runtimeTarget:fe,limits:D,approval:o({id:g,contentHash:h}).strict().nullable(),createdAt:p,metadata:f}).strict().extend({contentHash:h}).strict();var pe=o({schemaVersion:i(`openpond.attemptReceipt.v1`),id:g,runManifest:m,taskId:g,seed:u().trim().min(1).max(500),terminal:s(),failureClass:ie.nullable(),outputHash:h.nullable(),traceHash:h,artifactRefs:n(re).max(1e5),graderEvidenceRefs:n(re).max(1e4),startedAt:p,completedAt:p,latencyMs:c().int().nonnegative(),costUsd:c().nonnegative().nullable(),legacyAttemptRef:g.nullable().default(null),metadata:f}).strict().extend({contentHash:h}).strict(),me=o({schemaVersion:i(`openpond.evaluationResult.v1`),id:g,runManifest:m,harnessRelease:m,tasksetRelease:m,model:_,receiptRefs:n(m).min(1).max(1e6),attemptCount:c().int().positive(),rewardEligibleCount:c().int().nonnegative(),terminalCount:c().int().nonnegative(),meanScore:c().min(0).max(1).nullable(),failureCounts:a(ie,c().int().nonnegative()),authoredMetric:v.optional(),metadata:f}).strict().extend({contentHash:h}).strict();o({schemaVersion:i(`openpond.harnessCompatibility.v1`),id:g,baseHarnessRelease:m,candidateHarnessRelease:m,tasksetRelease:m,environmentHash:h,toolContractHash:h,policyHash:h,graderInterfaceHash:h,metadata:f}).strict().extend({contentHash:h}).strict();var he=r(`kind`,[o({kind:i(`model`),model:_,configurationHash:h}).strict(),o({kind:i(`fixture`)}).strict()]),ge=r(`kind`,[o({kind:i(`taskset`),environmentRelease:m,verifierSetRelease:m,policyHash:h}).strict(),o({kind:i(`harness`),harnessRelease:m}).strict()]),O=o({receiptId:g,taskId:g,seed:u().trim().min(1).max(500),fixtureId:g.nullable()}).strict(),k=o({schemaVersion:i(`openpond.tasksetRunManifest.v1`),id:g,tasksetRelease:m,packageHash:h,execution:ge,profileEvaluation:x.optional(),policy:he,gradingRole:i(`evaluation`),metricPolicy:ae,population:n(O).min(1).max(1e5),runtimeTarget:fe,limits:D,createdAt:p,metadata:f}).strict().superRefine((e,t)=>{new Set(e.population.map(e=>e.receiptId)).size!==e.population.length&&t.addIssue({code:`custom`,path:[`population`],message:`Run receipt identities must be unique.`}),e.population.some(t=>t.fixtureId!==null!=(e.policy.kind===`fixture`))&&t.addIssue({code:`custom`,path:[`population`],message:`Only fixture runs require a fixture identity for every member.`}),e.profileEvaluation&&(e.execution.kind!==`harness`||e.execution.harnessRelease.id!==e.profileEvaluation.harnessRelease.id||e.execution.harnessRelease.contentHash!==e.profileEvaluation.harnessRelease.contentHash)&&t.addIssue({code:`custom`,path:[`profileEvaluation`],message:`Profile evaluation must execute its exact bound Harness release.`})}).safeExtend({contentHash:h}),A=u().trim().min(1).max(240),_e=u().trim().min(8).max(256),j=o({schemaVersion:i(`openpond.sftRecipe.v1`),method:i(`sft`),parameterization:i(`lora`),baseModel:o({id:A,revision:u().trim().min(1).max(256),tokenizerRevision:u().trim().min(1).max(256),chatTemplateHash:_e}),dataset:o({trainSplit:i(`train`),validationSplit:l([`validation`,`frozen_eval`]),completionOnly:s(),maxSequenceLength:c().int().positive().max(32768),maxExamples:c().int().positive().max(1e5).default(1e3),selectionStrategy:i(`stable_hash_top_n`).default(`stable_hash_top_n`),selectionSeed:c().int().default(17)}),lora:o({rank:c().int().positive().max(256),alpha:c().positive().max(1024),dropout:c().min(0).max(1),targetModules:n(A).min(1).max(100)}),optimizer:o({learningRate:c().positive(),epochs:c().positive().max(100),maxSteps:c().int().positive().max(1e6),batchSize:c().int().positive().max(1e4),gradientAccumulationSteps:c().int().positive().max(1e4),seed:c().int()}),resourceLimits:o({cpuThreads:c().int().positive().max(256),memoryBytes:c().int().positive(),wallTimeMs:c().int().positive()})}),ve=j.safeExtend({dataset:j.shape.dataset.safeExtend({completionOnly:i(!0),maxSequenceLength:c().int().min(2).max(8192),maxExamples:c().int().min(1).max(1e3).default(1e3)}),lora:j.shape.lora.safeExtend({rank:c().int().min(1).max(64),dropout:c().min(0).lt(1),targetModules:n(l([`q_proj`,`k_proj`,`v_proj`,`o_proj`,`gate_proj`,`up_proj`,`down_proj`])).min(1).max(7)}),optimizer:j.shape.optimizer.safeExtend({learningRate:c().positive().max(.001),epochs:c().positive().max(20),maxSteps:c().int().min(1).max(400),batchSize:c().int().min(1).max(32),gradientAccumulationSteps:c().int().min(1).max(32),seed:c().int().min(-(2**31)).max(2**31-1)}),resourceLimits:j.shape.resourceLimits.safeExtend({wallTimeMs:c().int().min(1e3).max(216e5)})}).superRefine((e,t)=>{e.optimizer.batchSize*e.optimizer.gradientAccumulationSteps>32&&t.addIssue({code:`custom`,path:[`optimizer`],message:`Managed SFT supports at most 32 accumulated examples.`}),new Set(e.lora.targetModules).size!==e.lora.targetModules.length&&t.addIssue({code:`custom`,path:[`lora`,`targetModules`],message:`Adapter target modules must be unique.`})}),ye=o({schemaVersion:i(`openpond.managedSftImageSupport.v2`),workerImageDigest:u().regex(/^sha256:[a-f0-9]{64}$/),workerSourceReleaseSha256:u().regex(/^[a-f0-9]{64}$/),baseModel:j.shape.baseModel,gpuCount:i(1),supportedRanks:n(c().int().min(1).max(64)).min(1).max(64),maxSequenceLength:c().int().min(2).max(8192),maxEpochs:c().positive().max(20),maxOptimizerSteps:c().int().min(1).max(400),evidenceRef:u().trim().min(1).max(2048),evidenceSha256:u().regex(/^[a-f0-9]{64}$/)}).strict().superRefine((e,t)=>{new Set(e.supportedRanks).size!==e.supportedRanks.length&&t.addIssue({code:`custom`,path:[`supportedRanks`],message:`Supported ranks must be unique.`})}),M=u().regex(/^[a-f0-9]{64}$/),N=o({providerId:i(`claude-code`),configurationHash:M,executableHash:M,version:u().regex(/^2\.\d+\.\d+$/),capabilityHash:M,maximumRequestCostUsd:c().finite().positive().max(1e4),requestTimeoutMs:c().int().min(1e3).max(3e5),maximumTurns:c().int().min(1).max(100),holdOpen:s()}).strict();o({id:u().min(1).max(200),receiptId:u().min(1).max(200),sessionId:d(),operationId:u().min(1).max(200),action:l([`message`,`seal`]),text:u().max(262144).optional()}).strict().superRefine((e,t)=>{e.action===`message`&&!e.text?.trim()&&t.addIssue({code:`custom`,message:`A human intervention requires a message.`}),e.action===`seal`&&e.text!==void 0&&t.addIssue({code:`custom`,message:`Sealing does not add a prompt.`})});var be=o({provider:i(`claude-code`),sessionId:d(),requestId:u().min(1).max(200),modelId:u().min(1).max(500),runtime:N,sourceHash:M,outputHash:M,traceHash:M,runtimeEventRefs:n(u().min(1).max(200)).min(1).max(2e4),eventCount:c().int().positive().max(2e4),startedAt:e(),completedAt:e(),cleanupComplete:i(!0)}).strict().superRefine((e,t)=>{(e.runtimeEventRefs.length!==e.eventCount||new Set(e.runtimeEventRefs).size!==e.eventCount)&&t.addIssue({code:`custom`,message:`Process event references must match the exact retained trace population.`})}),P=o({providerId:i(`codex`),configurationHash:u().regex(/^[a-f0-9]{64}$/),accountHash:u().regex(/^[a-f0-9]{64}$/),reasoningEffort:l([`low`,`medium`,`high`,`xhigh`]),maximumRequestCostUsd:c().finite().positive().max(1e4),requestTimeoutMs:c().int().min(1e3).max(3e5)}).strict(),F=o({id:u().trim().min(1).max(240),revision:c().int().positive(),contentHash:u().regex(/^[a-f0-9]{64}$/),targetId:u().trim().min(1).max(240).nullable()}).strict(),I=n(o({role:l([`system`,`user`,`assistant`]),content:u().max(1e5)}).strict()).max(100).superRefine((e,t)=>{e.reduce((e,t)=>e+t.content.length,0)>1e5&&t.addIssue({code:`custom`,message:`Evaluation prompt exceeds 100,000 characters.`})}),L=o({schemaVersion:i(`openpond.experimentAttemptGrade.v1`),selectionHash:u().regex(/^[a-f0-9]{64}$/),grades:n(C).min(1).max(100),score:c().min(0).max(1).nullable(),passed:s(),rewardEligible:s(),gradingStatus:l([`scored`,`pending`,`unscorable`,`not_configured`]),failureClass:le.nullable(),contentHash:u().regex(/^[a-f0-9]{64}$/)}).strict().superRefine((e,t)=>{let{contentHash:n,...r}=e;b(r)!==n&&t.addIssue({code:`custom`,message:`Experiment grading integrity failed.`});let i=e.grades.flatMap(e=>e.components);(i.length!==e.grades.length||new Set(i.map(e=>e.graderId)).size!==i.length)&&t.addIssue({code:`custom`,message:`Each selected criterion requires exactly one distinct grader result.`});for(let n of e.grades){let{contentHash:e,...r}=n;b(r)!==e&&t.addIssue({code:`custom`,message:`A retained criterion changed.`});for(let e of n.components){let{contentHash:n,...r}=e;b(r)!==n&&t.addIssue({code:`custom`,message:`A retained grader result changed.`})}}}),R=u().trim().min(1).max(200),z=u().regex(/^[a-f0-9]{64}$/),B=r(`kind`,[o({kind:i(`hosted_chat`),modelId:R,localRuntime:te([o({providerId:i(`custom-openai-compatible`),configurationHash:z,maximumRequestCostUsd:c().finite().positive().max(1e4),requestTimeoutMs:c().int().min(1e3).max(3e5)}).strict(),N,P]).optional(),candidate:o({artifactId:R,contentHash:z,preparationId:R,dispatchId:R,baseProfileId:R,workerImageDigest:u().regex(/^sha256:[a-f0-9]{64}$/)}).strict().optional(),harness:y.optional(),messages:I.optional(),maxOutputTokens:c().int().min(1).max(1e6).default(1e5),temperature:c().min(0).max(2).default(0),topP:c().gt(0).max(1).default(1)}).strict(),o({kind:i(`fixture`),fixtureId:R}).strict()]),xe=o({schemaVersion:i(`openpond.modelStarterAttemptRequest.v1`),operationId:R,teamId:R,modelProjectId:R.nullable(),project:F.optional(),taskset:w,taskId:R,environmentSeed:c().int().min(0).max(2147483647).default(0),policy:B}).strict();o({modelProjectId:R.nullable(),taskset:w,afterTaskId:R.optional(),limit:c().int().min(1).max(100).default(25)}).strict(),o({modelProjectId:R.nullable(),taskset:w,available:s(),unavailableReason:u().max(1e3).nullable(),models:n(o({id:R,name:u().max(500),maximumOutputTokens:c().int().min(1).max(1e6).optional(),baseModel:de.nullable().optional()}).strict()).max(200),tasks:n(o({id:R,split:ce,inputPreview:u().max(500),fixtures:n(o({id:R,label:u().max(200)}).strict()).max(1e3)}).strict()).max(100),nextCursor:R.nullable()}).strict();var V=o({schemaVersion:i(`openpond.modelStarterAttemptSummary.v1`),id:R,revision:c().int().positive(),request:xe,status:l([`queued`,`running`,`cancelling`,`completed`,`failed`,`cancelled`]),policySnapshot:o({modelId:R,provider:R,upstreamModelId:u().min(1).max(500),configurationHash:z}).strict().nullable(),createdAt:e(),startedAt:e().nullable(),completedAt:e().nullable(),cleanupComplete:s(),resultAvailable:s(),score:c().min(0).max(1).nullable(),gradingStatus:l([`not_started`,`pending`,`scored`,`unscorable`,`not_configured`]).default(`not_started`),passed:s().nullable(),outputPreview:u().max(500).nullable(),error:o({code:R,message:u().max(2e3)}).strict().nullable()}).strict().superRefine((e,t)=>{e.request.policy.kind===`fixture`!=(e.policySnapshot===null)&&t.addIssue({code:`custom`,path:[`policySnapshot`],message:`Fixture execution must not claim a model identity.`}),e.status===`completed`&&(!e.cleanupComplete||!e.resultAvailable||!e.completedAt)&&t.addIssue({code:`custom`,message:`Completed attempts require retained results and confirmed cleanup.`})});o({modelProjectId:R,afterId:R.optional(),limit:c().int().min(1).max(100).default(25)}).strict(),o({items:n(V).max(100),nextCursor:R.nullable()}).strict(),o({schemaVersion:i(`openpond.modelStarterAttemptResult.v1`),attempt:V,output:u().max(1048576).nullable(),messages:n(a(u(),t())).max(4002),composition:se.nullable(),grade:C.nullable().optional(),experimentGrade:L.nullable().optional(),environment:o({status:l([`completed`,`budget_exhausted`,`cancelled`,`timed_out`,`policy_failure`,`environment_failure`]),collected:s(),definition:w,initialStateHash:z.nullable(),finalStateHash:z.nullable(),attemptHash:z}).strict(),native:E.optional(),providerRequestIds:n(R).max(1001),contentHash:z}).strict().superRefine((e,t)=>{let n=e.attempt.request.policy.kind===`hosted_chat`?e.attempt.request.policy.harness:void 0;!!n!=!!e.native&&t.addIssue({code:`custom`,path:[`native`],message:`Standalone Harness results require their exact native evidence.`}),e.native&&(!n||b(n)!==b(e.native.source)||e.native.modelConfigurationHash!==e.attempt.policySnapshot?.configurationHash||e.environment.initialStateHash!==null||e.environment.finalStateHash!==null||e.environment.status===`completed`&&(!e.environment.collected||e.output===null||e.native.partialOutputAvailable||e.native.outputHash!==b(e.output)))&&t.addIssue({code:`custom`,path:[`native`],message:`Native evidence differs from the admitted source, model or output.`}),e.experimentGrade&&((e.grade||e.composition)&&t.addIssue({code:`custom`,message:`Selected Experiment grading cannot claim another grade population.`}),(![`completed`,`failed`].includes(e.attempt.status)||!e.attempt.resultAvailable||e.attempt.score!==e.experimentGrade.score||e.attempt.gradingStatus!==e.experimentGrade.gradingStatus||e.attempt.passed!==(e.experimentGrade.score===null?null:e.experimentGrade.passed))&&t.addIssue({code:`custom`,message:`Experiment grading differs from its retained attempt summary.`})),e.grade&&(e.composition&&t.addIssue({code:`custom`,path:[`grade`],message:`An ordinary grade cannot also claim a Reward composition.`}),(![`completed`,`failed`].includes(e.attempt.status)||!e.attempt.resultAvailable||e.attempt.score!==e.grade.score||e.attempt.gradingStatus!==e.grade.gradingStatus||e.attempt.passed!==(e.grade.score===null?null:e.grade.passed))&&t.addIssue({code:`custom`,path:[`grade`],message:`Ordinary grade differs from its terminal attempt summary.`}))});var H=u().trim().min(1).max(240),U=u().regex(/^[a-f0-9]{64}$/),W=o({maxOutputTokens:c().int().min(1).max(1e6).default(4096),temperature:c().min(0).max(2).default(0),topP:c().gt(0).max(1).default(1)}).strict(),G=o({kind:i(`hosted_harness`),modelId:H,maxOutputTokens:W.shape.maxOutputTokens.removeDefault().optional(),temperature:W.shape.temperature.removeDefault().optional(),topP:W.shape.topP.removeDefault().optional(),localRuntime:P.optional(),candidate:o({artifactId:H,contentHash:U,preparationId:H,dispatchId:H,baseProfileId:H,workerImageDigest:u().regex(/^sha256:[a-f0-9]{64}$/)}).strict().optional(),sourceCandidate:x.shape.sourceCandidate,reasoningEffort:l([`off`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),profileRepositoryId:H,source:x,modelConfigurationHash:U,packageHash:U,externalDatasetBinding:S.optional()}).strict().superRefine((e,t)=>{JSON.stringify(e.externalDatasetBinding??null)!==JSON.stringify(e.source.externalDatasetBinding??null)&&t.addIssue({code:`custom`,message:`The policy and source must bind the same external Dataset recipe.`}),JSON.stringify(e.sourceCandidate??null)!==JSON.stringify(e.source.sourceCandidate??null)&&t.addIssue({code:`custom`,message:`The policy and prepared source must bind the same actual source candidate.`})}),K=u().trim().min(1).max(200),Se=u().regex(/^[a-f0-9]{64}$/),Ce=r(`kind`,[B.options[0],o({kind:i(`fixture`)}).strict(),G]),q=o({schemaVersion:i(`openpond.modelTasksetRunRequest.v1`),operationId:K,teamId:K,modelProjectId:K.nullable(),name:u().trim().min(1).max(200).optional(),project:F.optional(),taskset:w,policy:Ce,population:n(O).min(1).max(1e4)}).strict().superRefine((e,t)=>{new Set(e.population.map(e=>e.receiptId)).size!==e.population.length&&t.addIssue({code:`custom`,path:[`population`],message:`Run receipt identities must be unique.`}),e.population.some(t=>t.fixtureId!==null!=(e.policy.kind===`fixture`))&&t.addIssue({code:`custom`,path:[`population`],message:`Only fixture runs require a fixture identity for every member.`}),e.population.some(e=>!/^(0|[1-9][0-9]*)$/.test(e.seed)||Number(e.seed)>2147483647)&&t.addIssue({code:`custom`,path:[`population`],message:`Hosted environment seeds must be integers from 0 to 2147483647.`}),e.policy.kind===`hosted_harness`&&e.modelProjectId!==null&&t.addIssue({code:`custom`,path:[`modelProjectId`],message:`A Harness target retains its released Profile binding separately from Model artifacts.`}),e.policy.kind===`hosted_harness`&&new Set(e.population.map(e=>ue([e.taskId,e.seed]))).size!==e.population.length&&t.addIssue({code:`custom`,path:[`population`],message:`Harness case identities must be unique for each task and seed.`})}),we=o({schemaVersion:i(`openpond.modelTasksetRunSummary.v1`),id:K,revision:c().int().positive(),teamId:K,modelProjectId:K.nullable(),name:u().trim().min(1).max(200).optional(),project:F.optional(),operationId:K,taskset:w,policyKind:l([`hosted_chat`,`fixture`,`hosted_harness`]),manifestHash:Se,status:l([`queued`,`running`,`cancelling`,`completed`,`failed`,`cancelled`]),totalCount:c().int().min(1).max(1e4),counts:o({pending:c().int().nonnegative(),running:c().int().nonnegative(),completed:c().int().nonnegative(),failed:c().int().nonnegative(),cancelled:c().int().nonnegative()}).strict(),createdAt:e(),startedAt:e().nullable(),completedAt:e().nullable(),cleanupComplete:s(),resultAvailable:s(),score:c().min(0).max(1).nullable(),metricName:u().min(1).max(240),error:o({code:K,message:u().max(2e3)}).strict().nullable()}).strict().superRefine((e,t)=>{Object.values(e.counts).reduce((e,t)=>e+t,0)!==e.totalCount&&t.addIssue({code:`custom`,path:[`counts`],message:`Run counts must account for the complete population.`}),e.status!==`completed`&&e.score!==null&&t.addIssue({code:`custom`,path:[`score`],message:`Only completed evaluations publish a metric value.`}),[`completed`,`failed`,`cancelled`].includes(e.status)&&(!e.completedAt||e.counts.pending||e.counts.running)&&t.addIssue({code:`custom`,message:`Terminal runs require complete population accounting.`}),e.status===`cancelled`&&!e.cleanupComplete&&t.addIssue({code:`custom`,message:`Cancelled runs require confirmed cleanup.`}),e.resultAvailable&&![`completed`,`failed`,`cancelled`].includes(e.status)&&t.addIssue({code:`custom`,message:`Run results require terminal population accounting.`}),e.status===`completed`&&(!e.cleanupComplete||!e.resultAvailable)&&t.addIssue({code:`custom`,message:`Completed evaluations require retained results and confirmed cleanup.`})}),Te=o({summary:we,request:q,manifest:k,policySnapshot:V.shape.policySnapshot}).strict();o({modelProjectId:K.optional(),projectId:F.shape.id.optional(),afterId:K.optional(),limit:c().int().min(1).max(100).default(25)}).strict(),o({items:n(we).max(100),nextCursor:K.nullable()}).strict(),o({schemaVersion:i(`openpond.modelTasksetRunResult.v1`),run:Te,receipts:n(pe).min(1).max(1e4),metric:v.nullable(),contentHash:Se}).strict();var Ee=u().min(1).max(200).refine(e=>![`__proto__`,`prototype`,`constructor`].includes(e),`Use an ordinary field name.`),De=n(Ee).min(1).max(20),Oe=l([`input`,`output`,`expectedOutput`,`evaluatorContext`]),ke=o({destination:Oe,path:De,source:Oe,sourcePath:n(Ee).max(20)}).strict(),J=n(ke).max(100).superRefine((e,t)=>{for(let[n,r]of e.entries())e.slice(0,n).some(e=>e.destination===r.destination&&(Ae(e.path,r.path)||Ae(r.path,e.path)))&&t.addIssue({code:`custom`,path:[n,`path`],message:`Mapped destination paths must not overlap.`})});function Ae(e,t){return e.length<=t.length&&e.every((e,n)=>e===t[n])}var Y=u().trim().min(1).max(200),X=u().regex(/^[a-f0-9]{64}$/),Z=o({id:Y,revision:c().int().positive(),contentHash:X}).strict(),Q=o({id:Y,version:u().min(1).max(200),contentHash:X,name:u().trim().min(1).max(500).optional(),feedbackKey:oe,release:Z.nullable(),mappings:J.optional()}).strict(),$=o({id:Y,version:u().min(1).max(200),contentHash:X,mappings:J}).strict(),je=o({operationId:Y,id:Y.optional(),expectedRevision:c().int().nonnegative(),request:q,maximumCostUsd:c().finite().positive().max(1e4),graders:n($).min(1).max(100).optional()}).strict().superRefine((e,t)=>{e.request.name||t.addIssue({code:`custom`,path:[`request`,`name`],message:`Name this Experiment before saving it.`}),!!e.id!=e.expectedRevision>0&&t.addIssue({code:`custom`,path:[`expectedRevision`],message:`An update requires its saved definition revision.`}),Math.round(e.maximumCostUsd*1e6)<1&&t.addIssue({code:`custom`,path:[`maximumCostUsd`],message:`The budget must be at least $0.000001.`}),e.graders&&new Set(e.graders.map(e=>e.id)).size!==e.graders.length&&t.addIssue({code:`custom`,path:[`graders`],message:`Select each grader once.`})}),Me=o({schemaVersion:i(`openpond.experimentDefinition.v1`),id:Y,teamId:Y,revision:c().int().positive(),request:q,maximumCostUsd:c().finite().positive().max(1e4),graders:n(Q).min(1).max(100),createdAt:e(),updatedAt:e()}).strict().extend({contentHash:X});o({operationId:Y,definition:Z}).strict(),o({projectId:Y.optional(),datasetHash:X.optional(),search:u().trim().max(200).optional(),status:l([`queued`,`running`,`cancelling`,`completed`,`failed`,`cancelled`]).optional(),afterId:Y.optional(),limit:c().int().min(1).max(100).default(30)}).strict(),o({definition:Z.nullable(),configurationHash:X.optional(),admissionRequestHash:X.optional(),sourceExperimentId:Y.optional(),maximumCostUsd:c().finite().positive().max(1e4),graders:n(Q).min(1).max(100)}).strict().superRefine((e,t)=>{e.definition===null&&(!e.configurationHash||!e.admissionRequestHash)&&t.addIssue({code:`custom`,path:[`configurationHash`],message:`A flat Experiment requires its sealed configuration hash.`})}),o({operationId:Y,profileRepositoryId:Y,definitionId:Y,modelId:Y,localRuntime:G.shape.localRuntime,maxOutputTokens:G.shape.maxOutputTokens,temperature:G.shape.temperature,topP:G.shape.topP,reasoningEffort:l([`off`,`low`,`medium`,`high`,`xhigh`,`max`]).optional(),maximumCostUsd:c().finite().positive().max(1e4),externalDatasetBinding:S.optional(),sourceCandidate:G.shape.sourceCandidate}).strict(),o({request:q,manifest:k,maximumCostUsd:c().finite().positive().max(1e4),graders:n(Q).min(1).max(100)}).strict();export{ye as _,$ as a,E as b,Te as c,I as d,F as f,j as g,ve as h,Q as i,q as l,B as m,Me as n,je as o,L as p,J as r,G as s,Z as t,be as u,k as v,me as y};
@@ -1 +1 @@
1
- import{m as e}from"./index-CDtTBysF.js";import{t}from"./useQuery-9SCnxwmR.js";import{O as n,a as r,d as i,g as a,h as o,i as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{c as m,o as h,s as g}from"./common-BWVSBnpX.js";import{Tt as _}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{s as v}from"./chunk-AG6UJ3DI-D9KZjTYP.js";import{n as y}from"./api-client-DJRVOFzS.js";import{r as b}from"./AppToastContext-D7z0w1PS.js";var x=e();function S({columns:e,loading:t,error:n,empty:r,children:i,retry:a}){return b(n),t&&!n?(0,x.jsxs)(x.Fragment,{children:[Array.from({length:5},(t,n)=>(0,x.jsx)(`tr`,{"aria-hidden":`true`,children:Array.from({length:e},(e,t)=>(0,x.jsx)(`td`,{children:(0,x.jsx)(`span`,{className:`evaluation-table-skeleton`})},t))},n)),(0,x.jsx)(`tr`,{className:`sr-only`,children:(0,x.jsx)(`td`,{colSpan:e,role:`status`,children:`Loading table rows…`})})]}):!r&&!n?null:(0,x.jsx)(`tr`,{children:(0,x.jsx)(`td`,{colSpan:e,children:(0,x.jsxs)(`div`,{className:`evaluation-table-empty`,children:[n?null:i,n&&a?(0,x.jsx)(`button`,{type:`button`,className:`training-text-button`,onClick:a,children:`Retry`}):null]})})})}var C=Object.freeze({eventBytes:65536,actionBytes:16384,resultBytes:8192,stateBytes:8192,eventsPerAppend:32,eventsPerEpisode:256,episodeBytes:2097152,assetBytes:1048576,assetsPerEpisode:16,queueBytes:52428800,queueEvents:5e3,queueAgeSeconds:86400,capabilities:32,consultationRounds:3,consultationBytes:65536,manifestSeconds:300}),w=g,T=h,E=m,D=d([`codex`,`claude_code`,`opencode`,`openpond`]),O=c({id:g,contentHash:h}).strict(),k=c({teamId:g,projectId:g}).strict();function A(e,t){return o((e,r)=>{try{_(e,t)}catch{return r.addIssue({code:`custom`,message:`Tool learning data exceeds its JSON boundary.`}),n}return e},e)}function j(e){return f().max(e).refine(t=>new TextEncoder().encode(t).byteLength<=e,`Tool learning text exceeds its UTF-8 byte limit.`)}var M=A(a(f().min(1).max(120),p([j(2e3),u().finite(),l(),s()])).refine(e=>Object.keys(e).length<=32,`Use at most 32 explicit state fields.`),C.stateBytes);c({application:f().trim().min(1).max(200),version:f().trim().min(1).max(200),state:M,fingerprint:h}).strict(),c({id:g,contentHash:h,mediaType:d([`text/plain`,`application/json`,`text/x-python`,`text/x-diff`]),sizeBytes:u().int().nonnegative().max(C.assetBytes),purpose:d([`action`,`result`,`state`,`verification`])}).strict(),c({policyRevision:u().int().positive(),policyHash:h,redactedFields:u().int().nonnegative().max(1e4),omittedFields:u().int().nonnegative().max(1e4),truncated:l()}).strict();var N=c({revision:u().int().positive(),permittedTools:r(f().min(1).max(200)).min(1).max(100),workspaceRootHashes:r(T).min(1).max(32),permittedFields:r(d([`action`,`intent`,`state`,`result_excerpt`,`artifact_reference`])).min(1).max(5),unchangedControls:c({numerator:u().int().nonnegative(),denominator:u().int().positive()}).strict(),maximumEventBytes:u().int().positive().max(C.eventBytes),maximumEpisodeBytes:u().int().positive().max(C.episodeBytes),maximumEpisodeEvents:u().int().positive().max(C.eventsPerEpisode),maximumQueueBytes:u().int().positive().max(C.queueBytes),maximumQueueEvents:u().int().positive().max(C.queueEvents),maximumQueueAgeSeconds:u().int().positive().max(C.queueAgeSeconds),rawRetentionDays:u().int().min(1).max(30),purposes:r(d([`capture`,`consultation`])).min(1).max(2),modelUpdates:i(`requires_separate_review`),variantGeneration:i(`disabled`)}).strict().superRefine((e,t)=>{e.unchangedControls.numerator>e.unchangedControls.denominator&&t.addIssue({code:`custom`,path:[`unchangedControls`],message:`Sampling probability cannot exceed one.`});for(let n of[`permittedTools`,`workspaceRootHashes`,`permittedFields`,`purposes`])new Set(e[n]).size!==e[n].length&&t.addIssue({code:`custom`,path:[n],message:`Policy entries must be unique.`});(e.maximumEpisodeBytes<e.maximumEventBytes||e.maximumQueueBytes<e.maximumEventBytes)&&t.addIssue({code:`custom`,message:`Episode and queue capacities must fit one permitted event.`})}),P=c({receipt:O.nullable(),start:d([`observed`,`documented`,`unsupported`,`unqualified`]),resume:d([`observed`,`documented`,`unsupported`,`unqualified`]),compaction:d([`observed`,`documented`,`unsupported`,`unqualified`]),executionFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),processFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),validationFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),nestedCalls:d([`observed`,`documented`,`unsupported`,`unqualified`]),contextRefresh:d([`session_start`,`start_resume`,`start_resume_compaction`,`revision_aware_turn`,`unqualified`]),gaps:r(f().min(1).max(500)).max(32)}).strict().superRefine((e,t)=>{Object.values(e).includes(`observed`)&&!e.receipt&&t.addIssue({code:`custom`,path:[`receipt`],message:`Observed coverage requires a qualification receipt.`})});A(c({schemaVersion:i(`openpond.toolLearningRegistration.v1`),operationId:w,installationId:w,projectId:w,machineSourceId:w,client:D,clientVersion:f().min(1).max(200),adapterRelease:O,collectionPolicy:N}).strict(),C.eventBytes);var F=c({schemaVersion:i(`openpond.toolLearningInstallation.v1`),id:w,revision:u().int().positive(),scope:k,ownerUserId:w,machineSourceId:w,client:D,clientVersion:f().min(1).max(200),adapterRelease:O,state:d([`pending_client_trust`,`enabled`,`disabled`,`revoked`]),collectionPolicy:N,collectionPolicyHash:T,coverage:P,credential:c({id:w,expiresAt:E,revokedAt:E.nullable(),capabilities:r(d([`episode_append`,`manifest_read`,`consultation_submit`,`consultation_read`])).min(1).max(4)}).strict().nullable(),createdAt:E,updatedAt:E}).strict();c({operationId:w,expectedRevision:u().int().positive(),state:d([`enabled`,`disabled`,`revoked`])}).strict(),c({schemaVersion:i(`openpond.toolEpisodeOrigin.v1`),installationId:w,projectId:w,ownerUserId:w,episode:O,event:O,appendReceipt:O,purpose:i(`private_dataset_evidence`),trainingConsent:i(`not_granted`)}).strict();function I(e,t,n={},r){return y(e.connection,`/v1/training/evaluation-workspace`,{method:`POST`,body:JSON.stringify({teamId:e.teamId,projectId:null,operation:t,value:n}),signal:r})}function L(e){return t({queryKey:[`capture-destination`,e.connection.serverUrl,e.accountKey,e.teamId],queryFn:async({signal:t})=>v.parse(await I(e,`datasets`,{limit:1},t)).datasets.find(e=>e.id.startsWith(`tool-captures-`))??null,staleTime:1e4,refetchInterval:15e3})}function R(e){return t({queryKey:[`tool-connections`,e.connection.serverUrl,e.accountKey,e.teamId],queryFn:async({signal:t})=>c({installations:r(F)}).parse(await I(e,`toolConnections`,{},t)),staleTime:3e4,refetchInterval:6e4})}function z(e){return{claude_code:`Claude Code`,opencode:`OpenCode`,codex:`Codex CLI`,openpond:`OpenPond`}[e]??e}export{S as i,L as n,R as r,z as t};
1
+ import{m as e}from"./index-DG0kf1wK.js";import{t}from"./useQuery-CKHqHSr0.js";import{O as n,a as r,d as i,g as a,h as o,i as s,m as c,o as l,p as u,r as d,v as f,x as p}from"./schemas-Brv9Vmnk.js";import{c as m,o as h,s as g}from"./common-BWVSBnpX.js";import{Tt as _}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{s as v}from"./chunk-AG6UJ3DI-D9KZjTYP.js";import{n as y}from"./api-client-DJRVOFzS.js";import{r as b}from"./AppToastContext-DyaZYQXu.js";var x=e();function S({columns:e,loading:t,error:n,empty:r,children:i,retry:a}){return b(n),t&&!n?(0,x.jsxs)(x.Fragment,{children:[Array.from({length:5},(t,n)=>(0,x.jsx)(`tr`,{"aria-hidden":`true`,children:Array.from({length:e},(e,t)=>(0,x.jsx)(`td`,{children:(0,x.jsx)(`span`,{className:`evaluation-table-skeleton`})},t))},n)),(0,x.jsx)(`tr`,{className:`sr-only`,children:(0,x.jsx)(`td`,{colSpan:e,role:`status`,children:`Loading table rows…`})})]}):!r&&!n?null:(0,x.jsx)(`tr`,{children:(0,x.jsx)(`td`,{colSpan:e,children:(0,x.jsxs)(`div`,{className:`evaluation-table-empty`,children:[n?null:i,n&&a?(0,x.jsx)(`button`,{type:`button`,className:`training-text-button`,onClick:a,children:`Retry`}):null]})})})}var C=Object.freeze({eventBytes:65536,actionBytes:16384,resultBytes:8192,stateBytes:8192,eventsPerAppend:32,eventsPerEpisode:256,episodeBytes:2097152,assetBytes:1048576,assetsPerEpisode:16,queueBytes:52428800,queueEvents:5e3,queueAgeSeconds:86400,capabilities:32,consultationRounds:3,consultationBytes:65536,manifestSeconds:300}),w=g,T=h,E=m,D=d([`codex`,`claude_code`,`opencode`,`openpond`]),O=c({id:g,contentHash:h}).strict(),k=c({teamId:g,projectId:g}).strict();function A(e,t){return o((e,r)=>{try{_(e,t)}catch{return r.addIssue({code:`custom`,message:`Tool learning data exceeds its JSON boundary.`}),n}return e},e)}function j(e){return f().max(e).refine(t=>new TextEncoder().encode(t).byteLength<=e,`Tool learning text exceeds its UTF-8 byte limit.`)}var M=A(a(f().min(1).max(120),p([j(2e3),u().finite(),l(),s()])).refine(e=>Object.keys(e).length<=32,`Use at most 32 explicit state fields.`),C.stateBytes);c({application:f().trim().min(1).max(200),version:f().trim().min(1).max(200),state:M,fingerprint:h}).strict(),c({id:g,contentHash:h,mediaType:d([`text/plain`,`application/json`,`text/x-python`,`text/x-diff`]),sizeBytes:u().int().nonnegative().max(C.assetBytes),purpose:d([`action`,`result`,`state`,`verification`])}).strict(),c({policyRevision:u().int().positive(),policyHash:h,redactedFields:u().int().nonnegative().max(1e4),omittedFields:u().int().nonnegative().max(1e4),truncated:l()}).strict();var N=c({revision:u().int().positive(),permittedTools:r(f().min(1).max(200)).min(1).max(100),workspaceRootHashes:r(T).min(1).max(32),permittedFields:r(d([`action`,`intent`,`state`,`result_excerpt`,`artifact_reference`])).min(1).max(5),unchangedControls:c({numerator:u().int().nonnegative(),denominator:u().int().positive()}).strict(),maximumEventBytes:u().int().positive().max(C.eventBytes),maximumEpisodeBytes:u().int().positive().max(C.episodeBytes),maximumEpisodeEvents:u().int().positive().max(C.eventsPerEpisode),maximumQueueBytes:u().int().positive().max(C.queueBytes),maximumQueueEvents:u().int().positive().max(C.queueEvents),maximumQueueAgeSeconds:u().int().positive().max(C.queueAgeSeconds),rawRetentionDays:u().int().min(1).max(30),purposes:r(d([`capture`,`consultation`])).min(1).max(2),modelUpdates:i(`requires_separate_review`),variantGeneration:i(`disabled`)}).strict().superRefine((e,t)=>{e.unchangedControls.numerator>e.unchangedControls.denominator&&t.addIssue({code:`custom`,path:[`unchangedControls`],message:`Sampling probability cannot exceed one.`});for(let n of[`permittedTools`,`workspaceRootHashes`,`permittedFields`,`purposes`])new Set(e[n]).size!==e[n].length&&t.addIssue({code:`custom`,path:[n],message:`Policy entries must be unique.`});(e.maximumEpisodeBytes<e.maximumEventBytes||e.maximumQueueBytes<e.maximumEventBytes)&&t.addIssue({code:`custom`,message:`Episode and queue capacities must fit one permitted event.`})}),P=c({receipt:O.nullable(),start:d([`observed`,`documented`,`unsupported`,`unqualified`]),resume:d([`observed`,`documented`,`unsupported`,`unqualified`]),compaction:d([`observed`,`documented`,`unsupported`,`unqualified`]),executionFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),processFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),validationFailure:d([`observed`,`documented`,`unsupported`,`unqualified`]),nestedCalls:d([`observed`,`documented`,`unsupported`,`unqualified`]),contextRefresh:d([`session_start`,`start_resume`,`start_resume_compaction`,`revision_aware_turn`,`unqualified`]),gaps:r(f().min(1).max(500)).max(32)}).strict().superRefine((e,t)=>{Object.values(e).includes(`observed`)&&!e.receipt&&t.addIssue({code:`custom`,path:[`receipt`],message:`Observed coverage requires a qualification receipt.`})});A(c({schemaVersion:i(`openpond.toolLearningRegistration.v1`),operationId:w,installationId:w,projectId:w,machineSourceId:w,client:D,clientVersion:f().min(1).max(200),adapterRelease:O,collectionPolicy:N}).strict(),C.eventBytes);var F=c({schemaVersion:i(`openpond.toolLearningInstallation.v1`),id:w,revision:u().int().positive(),scope:k,ownerUserId:w,machineSourceId:w,client:D,clientVersion:f().min(1).max(200),adapterRelease:O,state:d([`pending_client_trust`,`enabled`,`disabled`,`revoked`]),collectionPolicy:N,collectionPolicyHash:T,coverage:P,credential:c({id:w,expiresAt:E,revokedAt:E.nullable(),capabilities:r(d([`episode_append`,`manifest_read`,`consultation_submit`,`consultation_read`])).min(1).max(4)}).strict().nullable(),createdAt:E,updatedAt:E}).strict();c({operationId:w,expectedRevision:u().int().positive(),state:d([`enabled`,`disabled`,`revoked`])}).strict(),c({schemaVersion:i(`openpond.toolEpisodeOrigin.v1`),installationId:w,projectId:w,ownerUserId:w,episode:O,event:O,appendReceipt:O,purpose:i(`private_dataset_evidence`),trainingConsent:i(`not_granted`)}).strict();function I(e,t,n={},r){return y(e.connection,`/v1/training/evaluation-workspace`,{method:`POST`,body:JSON.stringify({teamId:e.teamId,projectId:null,operation:t,value:n}),signal:r})}function L(e){return t({queryKey:[`capture-destination`,e.connection.serverUrl,e.accountKey,e.teamId],queryFn:async({signal:t})=>v.parse(await I(e,`datasets`,{limit:1},t)).datasets.find(e=>e.id.startsWith(`tool-captures-`))??null,staleTime:1e4,refetchInterval:15e3})}function R(e){return t({queryKey:[`tool-connections`,e.connection.serverUrl,e.accountKey,e.teamId],queryFn:async({signal:t})=>c({installations:r(F)}).parse(await I(e,`toolConnections`,{},t)),staleTime:3e4,refetchInterval:6e4})}function z(e){return{claude_code:`Claude Code`,opencode:`OpenCode`,codex:`Codex CLI`,openpond:`OpenPond`}[e]??e}export{S as i,L as n,R as r,z as t};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-CDtTBysF.js";import{_ as n,a as r,g as i,o as a,p as o,r as s,v as c}from"./schemas-Brv9Vmnk.js";import{t as l}from"./settings-BC-bzgk6.js";import{n as u}from"./api-client-DJRVOFzS.js";var d=e(t(),1),f=n({chatSelection:n({provider:l,model:c().max(500),modelsByProvider:i(l,c().max(500)).optional()}).optional(),chatMode:s([`chat`,`work`]).optional(),sidebarWorkflowCollapsedIds:r(c().min(1).max(200)).max(200).optional(),sidebarPresentation:s([`grouped`,`inbox`]).optional(),notificationMode:s([`all`,`direct_mentions`,`none`]).optional(),learningNoticeDismissed:a().optional(),sidebarVisibility:n({showCodexChats:a(),onlyRunningTasks:a()}).optional(),scheduledWorkView:s([`calendar`,`list`]).optional(),editorControlsVisible:a().optional(),voiceNoticeAcknowledged:a().optional(),lessonProgress:i(c().min(1).max(200),n({completed:a(),currentTime:o().finite().nonnegative(),duration:o().finite().positive(),updatedAt:o().finite().nonnegative()})).refine(e=>Object.keys(e).length<=200,`Too many lessons`).optional()}),p={"openpond:last-chat-selection":`chatSelection`,"openpond:last-chat-task-mode":`chatMode`,"openpond.sidebar.workflow-collapse.v1":`sidebarWorkflowCollapsedIds`,"openpond.sidebar.presentation.v1":`sidebarPresentation`,"openpond.team-chat.notification-mode":`notificationMode`,"openpond.sidebar.continuous-learning.dismissed.v1":`learningNoticeDismissed`,"openpond.sidebar-task-visibility.v1":`sidebarVisibility`,"openpond.scheduled-work.view.v1":`scheduledWorkView`,"openpond.workspace.editorControlsVisible":`editorControlsVisible`,"openpond.voice.setupNoticeAcknowledged":`voiceNoticeAcknowledged`,"openpond.post-training-progress.v1":`lessonProgress`},m=new Set,h=null,g=null,_={},v={},y=!1,b=0,x=null,S=0,C=null,w=`openpond-client-choices-changed`;function T(){m.forEach(e=>e()),typeof window<`u`&&window.dispatchEvent(new Event(w))}function E(){return x}function D(e){return m.add(e),()=>{m.delete(e)}}function O(e){let t=(0,d.useRef)(e);t.current=e,(0,d.useEffect)(()=>D(()=>t.current()),[])}function k(e,t={}){if(!t.force&&!C?.signal?.aborted&&C?.serverUrl===e.serverUrl&&C.token===e.token)return C.promise;let n=A(e,t.signal).finally(()=>{C?.promise===n&&(C=null)});return C={serverUrl:e.serverUrl,token:e.token,signal:t.signal,promise:n},n}async function A(e,t){let n=++S,r=await u(e,`/v1/configuration`,{signal:t});if(r.clientState?.revision===null){let n=P();if(Object.keys(n.patch).length){r.clientState=await u(e,`/v1/configuration`,{signal:t,method:`POST`,body:JSON.stringify({action:`client-state`,owner:r.clientState.owner,patch:n.patch,importOnly:!0})});for(let e of n.keys)try{window.localStorage.removeItem(e)}catch{}}}if(t?.throwIfAborted(),n!==S)return;let i=h?.serverUrl!==e.serverUrl||h?.token!==e.token||g?.owner!==r.clientState?.owner;i&&(b++,_={},v={},x=null),h=e,(i||(r.clientState?.revision??0)>=(g?.revision??0))&&(g=r.clientState),T()}async function j(){if(y||!h||!g||!Object.keys(_).length)return;y=!0;let e=_,t=h,n=g.owner,r=b;_={},v=e;try{let i=await u(t,`/v1/configuration`,{method:`POST`,body:JSON.stringify({action:`client-state`,owner:n,patch:e})});r===b&&(g=i,x=null)}catch(t){r===b&&(_={...e,..._},x=`Preference changes have not been saved. ${t instanceof Error?t.message:String(t)}`)}finally{v={},y=!1,T(),!x&&Object.keys(_).length&&j()}}function M(){x=null,j()}var N={getItem(e){let t=p[e];if(!t)return null;let n={...g?.value,...v,..._}[t];return n===void 0?null:typeof n==`string`?n:JSON.stringify(n)},setItem(e,t){if(!g)return;let n=p[e];if(!n)throw Error(`Unregistered client preference.`);let r;try{r=JSON.parse(t)}catch{r=t}let i=f.parse({[n]:r});JSON.stringify({...g.value,...v,..._}[n])!==JSON.stringify(i[n])&&(_={..._,...i},T(),j())}};function P(){let e={},t=[];if(typeof window>`u`)return{patch:e,keys:t};for(let[n,r]of Object.entries(p))try{let i=window.localStorage.getItem(n);if(i===null)continue;let a;try{a=JSON.parse(i)}catch{a=i}let o=f.safeParse({[r]:a});o.success&&(Object.assign(e,o.data),t.push(n))}catch{}return{patch:e,keys:t}}export{D as a,M as i,N as n,O as o,k as r,f as s,E as t};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t}from"./index-DG0kf1wK.js";import{_ as n,a as r,g as i,o as a,p as o,r as s,v as c}from"./schemas-Brv9Vmnk.js";import{t as l}from"./settings-BC-bzgk6.js";import{n as u}from"./api-client-DJRVOFzS.js";var d=e(t(),1),f=n({chatSelection:n({provider:l,model:c().max(500),modelsByProvider:i(l,c().max(500)).optional()}).optional(),chatMode:s([`chat`,`work`]).optional(),sidebarWorkflowCollapsedIds:r(c().min(1).max(200)).max(200).optional(),sidebarPresentation:s([`grouped`,`inbox`]).optional(),notificationMode:s([`all`,`direct_mentions`,`none`]).optional(),learningNoticeDismissed:a().optional(),sidebarVisibility:n({showCodexChats:a(),onlyRunningTasks:a()}).optional(),scheduledWorkView:s([`calendar`,`list`]).optional(),editorControlsVisible:a().optional(),voiceNoticeAcknowledged:a().optional(),lessonProgress:i(c().min(1).max(200),n({completed:a(),currentTime:o().finite().nonnegative(),duration:o().finite().positive(),updatedAt:o().finite().nonnegative()})).refine(e=>Object.keys(e).length<=200,`Too many lessons`).optional()}),p={"openpond:last-chat-selection":`chatSelection`,"openpond:last-chat-task-mode":`chatMode`,"openpond.sidebar.workflow-collapse.v1":`sidebarWorkflowCollapsedIds`,"openpond.sidebar.presentation.v1":`sidebarPresentation`,"openpond.team-chat.notification-mode":`notificationMode`,"openpond.sidebar.continuous-learning.dismissed.v1":`learningNoticeDismissed`,"openpond.sidebar-task-visibility.v1":`sidebarVisibility`,"openpond.scheduled-work.view.v1":`scheduledWorkView`,"openpond.workspace.editorControlsVisible":`editorControlsVisible`,"openpond.voice.setupNoticeAcknowledged":`voiceNoticeAcknowledged`,"openpond.post-training-progress.v1":`lessonProgress`},m=new Set,h=null,g=null,_={},v={},y=!1,b=0,x=null,S=0,C=null,w=`openpond-client-choices-changed`;function T(){m.forEach(e=>e()),typeof window<`u`&&window.dispatchEvent(new Event(w))}function E(){return x}function D(e){return m.add(e),()=>{m.delete(e)}}function O(e){let t=(0,d.useRef)(e);t.current=e,(0,d.useEffect)(()=>D(()=>t.current()),[])}function k(e,t={}){if(!t.force&&!C?.signal?.aborted&&C?.serverUrl===e.serverUrl&&C.token===e.token)return C.promise;let n=A(e,t.signal).finally(()=>{C?.promise===n&&(C=null)});return C={serverUrl:e.serverUrl,token:e.token,signal:t.signal,promise:n},n}async function A(e,t){let n=++S,r=await u(e,`/v1/configuration`,{signal:t});if(r.clientState?.revision===null){let n=P();if(Object.keys(n.patch).length){r.clientState=await u(e,`/v1/configuration`,{signal:t,method:`POST`,body:JSON.stringify({action:`client-state`,owner:r.clientState.owner,patch:n.patch,importOnly:!0})});for(let e of n.keys)try{window.localStorage.removeItem(e)}catch{}}}if(t?.throwIfAborted(),n!==S)return;let i=h?.serverUrl!==e.serverUrl||h?.token!==e.token||g?.owner!==r.clientState?.owner;i&&(b++,_={},v={},x=null),h=e,(i||(r.clientState?.revision??0)>=(g?.revision??0))&&(g=r.clientState),T()}async function j(){if(y||!h||!g||!Object.keys(_).length)return;y=!0;let e=_,t=h,n=g.owner,r=b;_={},v=e;try{let i=await u(t,`/v1/configuration`,{method:`POST`,body:JSON.stringify({action:`client-state`,owner:n,patch:e})});r===b&&(g=i,x=null)}catch(t){r===b&&(_={...e,..._},x=`Preference changes have not been saved. ${t instanceof Error?t.message:String(t)}`)}finally{v={},y=!1,T(),!x&&Object.keys(_).length&&j()}}function M(){x=null,j()}var N={getItem(e){let t=p[e];if(!t)return null;let n={...g?.value,...v,..._}[t];return n===void 0?null:typeof n==`string`?n:JSON.stringify(n)},setItem(e,t){if(!g)return;let n=p[e];if(!n)throw Error(`Unregistered client preference.`);let r;try{r=JSON.parse(t)}catch{r=t}let i=f.parse({[n]:r});JSON.stringify({...g.value,...v,..._}[n])!==JSON.stringify(i[n])&&(_={..._,...i},T(),j())}};function P(){let e={},t=[];if(typeof window>`u`)return{patch:e,keys:t};for(let[n,r]of Object.entries(p))try{let i=window.localStorage.getItem(n);if(i===null)continue;let a;try{a=JSON.parse(i)}catch{a=i}let o=f.safeParse({[r]:a});o.success&&(Object.assign(e,o.data),t.push(n))}catch{}return{patch:e,keys:t}}export{D as a,M as i,N as n,O as o,k as r,f as s,E as t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`cloud-upload`,[[`path`,{d:`M12 13v8`,key:`1l5pq0`}],[`path`,{d:`M4 14.899A7 7 0 1 1 15.71 8h1.79a4.5 4.5 0 0 1 2.5 8.242`,key:`1pljnt`}],[`path`,{d:`m8 17 4-4 4 4`,key:`1quai1`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`copy`,[[`rect`,{width:`14`,height:`14`,x:`8`,y:`8`,rx:`2`,ry:`2`,key:`17jyea`}],[`path`,{d:`M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2`,key:`zix9uf`}]]);export{t};
@@ -1 +1 @@
1
- import{c as e}from"./WorkspaceMonacoEditor-BRPLaFZS.js";import"./toggleHighContrast-hftC_Rxs.js";import{t}from"./workers-B3jA6AOv.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-BjtOz-Ln.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-BSlsup0j.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(t){let n=[],s=[],c=new x(t);n.push(c);let g=(...e)=>c.getLanguageServiceWorker(...e);function y(){let{languageId:n,modeConfiguration:c}=t;w(s),c.completionItems&&s.push(e.registerCompletionItemProvider(n,new _(g,[`/`,`-`,`:`]))),c.hovers&&s.push(e.registerHoverProvider(n,new a(g))),c.documentHighlights&&s.push(e.registerDocumentHighlightProvider(n,new p(g))),c.definitions&&s.push(e.registerDefinitionProvider(n,new f(g))),c.references&&s.push(e.registerReferenceProvider(n,new o(g))),c.documentSymbols&&s.push(e.registerDocumentSymbolProvider(n,new u(g))),c.rename&&s.push(e.registerRenameProvider(n,new m(g))),c.colors&&s.push(e.registerColorProvider(n,new l(g))),c.foldingRanges&&s.push(e.registerFoldingRangeProvider(n,new v(g))),c.diagnostics&&s.push(new h(n,g,t.onDidChange)),c.selectionRanges&&s.push(e.registerSelectionRangeProvider(n,new d(g))),c.documentFormattingEdits&&s.push(e.registerDocumentFormattingEditProvider(n,new r(g))),c.documentRangeFormattingEdits&&s.push(e.registerDocumentRangeFormattingEditProvider(n,new i(g)))}return y(),n.push(C(s)),C(n)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,S as setupMode,n as toRange,y as toTextEdit};
1
+ import{c as e}from"./WorkspaceMonacoEditor-ChBjvgxE.js";import"./toggleHighContrast-CP0qM8JR.js";import{t}from"./workers-CmqH-dTr.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-C6uY6TKM.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/css/cssWorker`,createWorker:()=>new Worker(new URL(`/assets/css.worker-BSlsup0j.js`,``+import.meta.url),{type:`module`}),label:this._defaults.languageId,createData:{options:this._defaults.options,languageId:this._defaults.languageId}}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}};function S(t){let n=[],s=[],c=new x(t);n.push(c);let g=(...e)=>c.getLanguageServiceWorker(...e);function y(){let{languageId:n,modeConfiguration:c}=t;w(s),c.completionItems&&s.push(e.registerCompletionItemProvider(n,new _(g,[`/`,`-`,`:`]))),c.hovers&&s.push(e.registerHoverProvider(n,new a(g))),c.documentHighlights&&s.push(e.registerDocumentHighlightProvider(n,new p(g))),c.definitions&&s.push(e.registerDefinitionProvider(n,new f(g))),c.references&&s.push(e.registerReferenceProvider(n,new o(g))),c.documentSymbols&&s.push(e.registerDocumentSymbolProvider(n,new u(g))),c.rename&&s.push(e.registerRenameProvider(n,new m(g))),c.colors&&s.push(e.registerColorProvider(n,new l(g))),c.foldingRanges&&s.push(e.registerFoldingRangeProvider(n,new v(g))),c.diagnostics&&s.push(new h(n,g,t.onDidChange)),c.selectionRanges&&s.push(e.registerSelectionRangeProvider(n,new d(g))),c.documentFormattingEdits&&s.push(e.registerDocumentFormattingEditProvider(n,new r(g))),c.documentRangeFormattingEdits&&s.push(e.registerDocumentRangeFormattingEditProvider(n,new i(g)))}return y(),n.push(C(s)),C(n)}function C(e){return{dispose:()=>w(e)}}function w(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,S as setupMode,n as toRange,y as toTextEdit};
@@ -1 +1 @@
1
- import{E as e,S as t,a as n,c as r,d as i,g as a,m as o,o as s,p as c,r as l,v as u,x as d}from"./schemas-Brv9Vmnk.js";import{d as f,dt as p,ft as m}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{i as h}from"./chunk-GS5HEE4M-C0RLeIsy.js";import{w as g}from"./chunk-GCUWJUUM-Dy6oUNJ6.js";import{c as _,o as v,r as y}from"./chunk-AG6UJ3DI-D9KZjTYP.js";import{a as b}from"./chunk-Q4RGCEOI-Cr-dg4Nk.js";var x=l([`create`,`save`,`publish`,`begin_version`]);o({operationId:u().trim().min(1).max(240),kind:x,requestHash:u().regex(/^[a-f0-9]{64}$/),receipt:_,base:_.nullable()}).strict().superRefine((e,t)=>{let{receipt:n,base:r,kind:i}=e;(r&&(r.teamId!==n.teamId||r.datasetId!==n.datasetId||r.revision+1!==n.revision)||!r&&n.revision!==1)&&t.addIssue({code:`custom`,message:`Operation recovery history identity/revision mismatch.`}),r&&((r.ownerScope??`workspace`)!==(n.ownerScope??`workspace`)||r.originProjectId!==n.originProjectId||r.workspace.draft.createdAt!==n.workspace.draft.createdAt)&&t.addIssue({code:`custom`,message:`Operation recovery cannot change Dataset ownership or origin.`}),i!==(r?n.workspace.draft.status===`published`?`publish`:r.workspace.draft.status===`published`?`begin_version`:`save`:`create`)&&t.addIssue({code:`custom`,message:`Operation recovery kind differs from its retained lifecycle.`})});var S=u().trim().min(1).max(240),C=u().regex(/^[a-f0-9]{64}$/),w=e(),T=c().int().nonnegative(),E=c().int().nonnegative().max(2**53-1);o({id:S,projectId:S,maximumMicroUsd:E.positive(),maximumSandboxSeconds:T.max(10800)}).strict(),o({schemaVersion:i(`openpond.datasetPreparationGrant.v1`),id:S,teamId:S,ownerUserId:S,projectId:S,maximumMicroUsd:E,maximumSandboxSeconds:T,settledMicroUsd:E,heldMicroUsd:E,sandboxSeconds:T,heldSandboxSeconds:T,unresolvedCalls:T,cleanupPending:T,createdAt:w,updatedAt:w}).strict();var D=l([`coding_change`,`debugging`,`code_explanation`,`structured_text`,`artifact_work`]),O=l([`inventory`,`preview`,`reconstruction`,`grader_authoring`,`qualification`,`release`]),k=l([`draft`,`running`,`pausing`,`paused`,`needs_attention`,`preview_ready`,`ready`,`releasing`,`completed`,`insufficient_data`,`budget_exhausted`,`cancelling`,`cancelled`,`failed`]),A=o({projectId:S,from:w,to:w,importCutoff:w,connections:n(S).min(1).max(50),excludedSessions:n(o({connectionId:S,sourceKeyHash:C,nativeRevisionHash:C,reason:l([`source_read_failed`,`native_session_not_ready`]),explanation:u().trim().min(1).max(2e3)}).strict()).max(1e4).default([])}).strict().superRefine((e,t)=>{Date.parse(e.from)>=Date.parse(e.to)&&t.addIssue({code:`custom`,message:`Source event-time window must be nonempty.`}),new Set(e.connections).size!==e.connections.length&&t.addIssue({code:`custom`,message:`Source connections must be unique.`}),e.excludedSessions.some(t=>!e.connections.includes(t.connectionId))&&t.addIssue({code:`custom`,message:`Excluded sessions must belong to selected source connections.`}),new Set(e.excludedSessions.map(e=>JSON.stringify([e.connectionId,e.sourceKeyHash]))).size!==e.excludedSessions.length&&t.addIssue({code:`custom`,message:`Source session exclusions must be unique.`})}),j=o({source:A,taskClasses:n(D).min(1).max(5),limits:o({maximumConversations:c().int().min(1).max(1e4),maximumCandidates:c().int().min(1).max(1e4),acceptedTarget:c().int().min(1).max(1e4),maximumRepairsPerCandidate:c().int().min(0).max(5),maximumEvidenceBytesPerConversation:c().int().min(1024).max(2e6)}).strict(),researcher:o({modelId:S,maximumOutputTokens:c().int().min(1).max(32768)}).strict(),adjudicator:o({modelId:S,maximumOutputTokens:c().int().min(1).max(32768)}).strict(),grading:r(`mode`,[o({mode:i(`auto`)}).strict(),o({mode:i(`existing_only`)}).strict(),o({mode:i(`manual`),releases:n(b).min(1).max(100)}).strict()]),budget:o({grantId:S,maximumMicroUsd:E.positive(),previewMaximumMicroUsd:E,qualificationMaximumMicroUsdPerCandidate:E,maximumSandboxSeconds:T.max(10800)}).strict(),finish:l([`stop_ready`,`create_private_version`]),execution:l([`preview_only`,`prepare`]),allowPartialVersion:s(),population:i(`development`)}).strict().superRefine((e,t)=>{e.limits.acceptedTarget>e.limits.maximumCandidates&&t.addIssue({code:`custom`,message:`Accepted target exceeds candidate scan limit.`}),e.budget.previewMaximumMicroUsd>e.budget.maximumMicroUsd&&t.addIssue({code:`custom`,message:`Preview allowance exceeds the shared preparation ceiling.`}),new Set(e.taskClasses).size!==e.taskClasses.length&&t.addIssue({code:`custom`,message:`Task classes must be unique.`})});o({operationId:S,expectedDatasetRevision:c().int().positive(),policy:j}).strict(),r(`action`,[o({action:l([`start`,`pause`,`resume`,`cancel`,`release`]),operationId:S,expectedRevision:c().int().positive()}).strict(),o({action:i(`resolve`),operationId:S,expectedRevision:c().int().positive(),candidateId:S,decision:l([`retry`,`exclude`]),reason:u().trim().min(1).max(5e3)}).strict()]);var M=o({conversations:T,importedTurns:T,selectedTurns:T,queuedSnapshots:T.nullable(),failedSessions:T.nullable(),skippedSessions:T.nullable(),lastAdmissionAt:w.nullable(),complete:s(),sourceComplete:s().default(!1),excludedSessions:T.default(0),reasons:n(o({code:S,message:u().trim().min(1).max(2e3)}).strict()).max(100),sourceInventoryHash:C}).strict(),N=o({maximumMicroUsd:E,settledMicroUsd:E,heldMicroUsd:E,unresolvedCalls:T,sandboxSeconds:T,cleanupPending:T,complete:s()}).strict(),P=o({sampleConversations:T,sampleTurns:T,candidateCount:T,modelId:S,modelConfigurationHash:C,callReceiptIds:n(S).max(2e3),inputTokens:T.nullable(),outputTokens:T.nullable(),classes:n(o({taskClass:D,candidates:T,assessment:l([`executable`,`calibrated_judge`,`unsupported`]),requirements:n(u().trim().min(1).max(5e3)).max(20)}).strict()).max(5),exclusions:n(o({code:S,count:T,reason:u().trim().min(1).max(5e3)}).strict()).max(100),estimates:n(o({stage:O,minimumMicroUsd:E,maximumMicroUsd:E,assumptions:n(u().trim().min(1).max(2e3)).min(1).max(20)}).strict().refine(e=>e.minimumMicroUsd<=e.maximumMicroUsd,`Estimate range is reversed.`)).max(6),createdAt:w}).strict(),F=o({schemaVersion:i(`openpond.datasetPreparationRun.v1`),id:S,operationId:S,teamId:S,ownerUserId:S,datasetId:S,datasetRevision:c().int().positive(),revision:c().int().positive(),requestHash:C,policy:j,status:k,stage:O,coverage:M.nullable(),preview:P.nullable(),counts:o({scannedConversations:T,scannedTurns:T,candidates:T,reconstructed:T,qualifying:T,qualified:T,excluded:T,needsAttention:T}).strict(),accounting:N,publication:o({datasetId:S,workspaceRevision:c().int().positive(),release:b}).strict().nullable(),error:o({code:S,message:u().trim().min(1).max(5e3)}).strict().nullable(),createdAt:w,updatedAt:w}).strict().superRefine((e,t)=>{e.accounting.maximumMicroUsd!==e.policy.budget.maximumMicroUsd&&t.addIssue({code:`custom`,message:`Accounting authority differs from the saved preparation policy.`}),e.counts.qualified+e.counts.excluded+e.counts.needsAttention>e.counts.candidates&&t.addIssue({code:`custom`,message:`Preparation outcomes exceed the candidate population.`}),e.status===`preview_ready`&&(e.policy.execution!==`preview_only`||e.stage!==`preview`||!e.preview||!e.coverage?.complete||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Preview readiness requires a preview-only policy, reconciled source coverage and settled preview calls.`}),[`ready`,`releasing`,`completed`].includes(e.status)&&(e.counts.qualified===0||!e.policy.allowPartialVersion&&e.counts.qualified<e.policy.limits.acceptedTarget)&&t.addIssue({code:`custom`,message:`Preparation cannot report readiness below its accepted target.`}),[`ready`,`releasing`,`completed`].includes(e.status)&&(e.policy.execution!==`prepare`||!e.preview||!e.coverage?.complete||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Dataset readiness requires full preparation authority, reconciled source coverage, preview and final accounting.`}),e.status===`completed`&&(!e.publication||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Completed preparation requires publication and reconciled accounting.`}),e.status===`cancelled`&&(!e.accounting.complete||e.accounting.cleanupPending>0)&&t.addIssue({code:`custom`,message:`Cancellation requires settled resource obligations.`})});o({teamId:S,datasetId:S,runs:n(F).max(50),nextCursor:S.nullable()}).strict();var I=o({source:y,startSequence:T,endSequence:T,role:l([`requirement`,`initial_context`,`outcome`,`correction`,`verification`])}).strict().superRefine((e,t)=>{e.endSequence<e.startSequence&&t.addIssue({code:`custom`,message:`Evidence span must be ordered.`})}),L=o({schemaVersion:i(`openpond.preparedTaskProvenance.v1`),candidateId:S,preparationId:S,familyKey:S,sourceSpans:n(I).min(1).max(200),firstAvailableAt:w,initialInputHash:C,initialEnvironmentHash:C,initialAssetsHash:C.nullable(),sourceScopeHash:C}).strict().superRefine((e,t)=>{e.sourceSpans.some(e=>e.role===`requirement`)||t.addIssue({code:`custom`,message:`A reconstructed task needs a source requirement.`});let n=new Set;for(let r of e.sourceSpans){e.sourceSpans.some(e=>e!==r&&e.source.id===r.source.id&&e.source.snapshotHash===r.source.snapshotHash&&e.role!==r.role&&r.startSequence<=e.endSequence&&e.startSequence<=r.endSequence)&&t.addIssue({code:`custom`,message:`Evidence offsets cannot have conflicting roles.`});let i=JSON.stringify([r.source,r.startSequence,r.endSequence]);n.has(i)&&t.addIssue({code:`custom`,message:`Evidence span is duplicated or crosses public/private roles.`}),n.add(i)}}),R=o({schemaVersion:i(`openpond.preparedTaskQualification.v1`),id:S,candidateId:S,preparationId:S,taskHash:C,environmentHash:C,packageHash:C,graderBindings:n(o({id:S,version:S,contentHash:C,origin:l([`reused`,`adapted`,`authored`])}).strict()).min(1).max(100),checks:n(o({id:S,label:l([`positive`,`incorrect`,`incomplete`,`adversarial`,`clean_reset`]),executionReceiptId:S,expectedPassed:s(),observedPassed:s().nullable(),infrastructureError:S.nullable()}).strict()).min(5).max(500),independentEvidenceRefs:n(S).min(1).max(100),judgeCalibration:l([`not_applicable`,`passed`,`failed`,`pending`]),cleanup:l([`completed`,`pending`]),passed:s(),createdAt:w}).strict().superRefine((e,t)=>{if(!e.passed)return;let n=new Set(e.checks.map(e=>e.label));[`positive`,`incorrect`,`incomplete`,`adversarial`,`clean_reset`].some(e=>!n.has(e))&&t.addIssue({code:`custom`,message:`Qualified tasks require positive, negative, adversarial and clean-reset evidence.`}),(e.cleanup!==`completed`||[`pending`,`failed`].includes(e.judgeCalibration)||e.checks.some(e=>e.infrastructureError!==null||e.observedPassed!==e.expectedPassed))&&t.addIssue({code:`custom`,message:`Failed, uncalibrated or uncleared checks cannot qualify a task.`}),e.checks.some(e=>e.expectedPassed!==[`positive`,`clean_reset`].includes(e.label))&&t.addIssue({code:`custom`,message:`Qualification witnesses must pass positives/resets and reject incorrect, incomplete and adversarial outputs.`})}),z=o({id:S,runId:S,revision:c().int().positive(),taskClass:D,status:l([`discovered`,`reconstructing`,`authoring`,`qualifying`,`qualified`,`excluded`,`needs_attention`]),objective:u().trim().min(1).max(2e4),provenance:L.nullable(),qualification:R.nullable(),reason:o({code:S,message:u().trim().min(1).max(5e3)}).strict().nullable(),attempts:T.max(6)}).strict().superRefine((e,t)=>{e.status===`qualified`&&(!e.provenance||!e.qualification?.passed)&&t.addIssue({code:`custom`,message:`Candidate admission requires reconstruction and qualification receipts.`}),e.provenance&&(e.provenance.candidateId!==e.id||e.provenance.preparationId!==e.runId)&&t.addIssue({code:`custom`,message:`Candidate provenance identity mismatch.`}),e.qualification&&(e.qualification.candidateId!==e.id||e.qualification.preparationId!==e.runId)&&t.addIssue({code:`custom`,message:`Candidate qualification identity mismatch.`})}),B=u().trim().min(1).max(240);o({teamId:B,datasetId:B,runId:B,candidates:n(z).max(50),nextCursor:B.nullable()}).strict();var V=u().trim().min(1).max(500),H=u().regex(/^[a-f0-9]{64}$/),U=o({release:b,afterId:V.optional(),limit:c().int().min(1).max(1e4).default(100),view:l([`ids`,`policy`]).default(`ids`)}).strict().superRefine((e,t)=>{e.view===`policy`&&e.limit>100&&t.addIssue({code:`custom`,path:[`limit`],message:`Policy previews are bounded to 100 tasks.`})}),W=o({id:p.shape.id,split:m}).strict(),G=W.extend({input:a(u(),t()),policyVisibleContext:a(u(),t()),artifacts:n(o({id:V,path:u(),mediaType:u(),sizeBytes:c().int().nonnegative()}).strict()).max(1e3)}).strict(),K=o({schemaVersion:i(`openpond.datasetPopulationPage.v1`),teamId:V,release:b,view:U.shape.view,taskCount:c().int().nonnegative(),items:n(d([W,G])).max(1e4),graders:n(h).max(1e3),nextCursor:V.nullable(),contentHash:H}).strict().superRefine((e,t)=>{e.view===`policy`&&e.items.length>100&&t.addIssue({code:`custom`,message:`Policy preview exceeded its task bound.`}),e.items.some(t=>`input`in t!=(e.view===`policy`))&&t.addIssue({code:`custom`,message:`Dataset task view differs from the requested projection.`})}),q=u().trim().min(1).max(240),J=u().trim().min(1).max(5e3),Y=o({taskClass:D,objective:u().trim().min(1).max(2e4),sourceSpans:n(I).min(1).max(200),firstAvailableAt:e(),reconstruction:o({kind:l([`text_only`,`pinned_repository`,`pinned_artifact`,`unsupported`]),requiredAssets:n(o({reference:J,evidence:I}).strict()).max(100),missingEvidence:n(J).max(20)}).strict(),assessment:o({kind:l([`executable`,`calibrated_judge`,`unsupported`]),requirements:n(o({criterion:J,evidence:I}).strict()).min(1).max(20),limitations:n(J).max(20)}).strict()}).strict().superRefine((e,t)=>{e.sourceSpans.some(e=>e.role===`requirement`)||t.addIssue({code:`custom`,message:`A research candidate requires independently retained user requirements.`}),e.assessment.requirements.some(e=>e.evidence.role!==`requirement`)&&t.addIssue({code:`custom`,message:`Assessment criteria must cite user requirements, not historical answers.`})});o({schemaVersion:i(`openpond.datasetPreparationResearchDecision.v1`),sourceId:q,snapshotHash:u().regex(/^[a-f0-9]{64}$/),candidates:n(Y).max(100),exclusions:n(o({code:q,reason:J,sourceSpans:n(I).max(200)}).strict()).max(100),contextSummary:u().max(2e4)}).strict();var X=u().regex(/^[a-f0-9]{64}$/);o({schemaVersion:i(`openpond.preparedRepositoryStartingState.v1`),dependencyClosureQualified:i(!1),assets:n(v.extend({receiptId:u().regex(/^starting-assets-[a-f0-9]{40}$/),receiptHash:X,source:y}).strict()).min(1).max(100)}).strict().superRefine((e,t)=>{new Set(e.assets.map(e=>e.path)).size!==e.assets.length&&t.addIssue({code:`custom`,message:`Starting paths must be distinct.`}),e.assets.some(t=>t.commitHash!==e.assets[0].commitHash||f(t.source)!==f(e.assets[0].source))&&t.addIssue({code:`custom`,message:`Starting assets must belong to one original task boundary and commit.`})});var Z=u().trim().min(1).max(240),Q=u().trim().min(1).max(2e4),$=o({id:Z,label:l([`positive`,`incorrect`,`incomplete`,`adversarial`]),output:a(u(),t()),artifacts:n(o({path:g.shape.path,mediaType:g.shape.mediaType,base64:u().max(8388608)}).strict()).max(100)}).strict().superRefine((e,t)=>{new Set(e.artifacts.map(e=>e.path)).size!==e.artifacts.length&&t.addIssue({code:`custom`,message:`Qualification artifacts must have distinct paths.`})});o({schemaVersion:i(`openpond.preparedQualificationPlan.v1`),requirementRefs:n(Z).min(1).max(100),supported:s(),limitations:n(Q).max(20),independentVerifier:o({runtime:l([`isolated_javascript`,`sandbox_process`]),source:u().trim().min(1).max(2e5),exportName:i(`verify`),timeoutMs:c().int().min(1).max(6e4)}).strict().nullable(),witnesses:n($).max(20)}).strict().superRefine((e,t)=>{(new Set(e.requirementRefs).size!==e.requirementRefs.length||new Set(e.witnesses.map(e=>e.id)).size!==e.witnesses.length)&&t.addIssue({code:`custom`,message:`Qualification evidence identities must be distinct.`}),e.supported&&(!e.independentVerifier||e.limitations.length||[`positive`,`incorrect`,`incomplete`,`adversarial`].some(t=>!e.witnesses.some(e=>e.label===t)))&&t.addIssue({code:`custom`,message:`Supported qualification needs a complete verifier and witness population without unresolved evidence gaps.`})}),o({schemaVersion:i(`openpond.preparedWitnessAdjudication.v1`),witnesses:n(o({id:Z,failureMode:l([`none`,`incorrect`,`incomplete`,`adversarial`,`unverifiable`]),requirements:n(o({reference:Z,status:l([`satisfied`,`violated`,`unverifiable`]),reason:Q}).strict()).min(1).max(100)}).strict()).min(4).max(20)}).strict(),o({schemaVersion:i(`openpond.preparedCheckerAudit.v1`),requirements:n(o({reference:Z,adequatelyChecked:s(),oracleAdequatelyChecked:s(),reason:Q}).strict()).min(1).max(100),executionIsolationPassed:s(),futureEvidenceLeak:s(),unresolvedLimitations:n(Q).max(20),passed:s()}).strict();export{K as t};
1
+ import{E as e,S as t,a as n,c as r,d as i,g as a,m as o,o as s,p as c,r as l,v as u,x as d}from"./schemas-Brv9Vmnk.js";import{d as f,dt as p,ft as m}from"./chunk-H3JZ3P5T-DolwEJXo.js";import{i as h}from"./chunk-GS5HEE4M-DTj6NX5d.js";import{w as g}from"./chunk-GCUWJUUM-Dy6oUNJ6.js";import{c as _,o as v,r as y}from"./chunk-AG6UJ3DI-D9KZjTYP.js";import{a as b}from"./chunk-Q4RGCEOI-Cr-dg4Nk.js";var x=l([`create`,`save`,`publish`,`begin_version`]);o({operationId:u().trim().min(1).max(240),kind:x,requestHash:u().regex(/^[a-f0-9]{64}$/),receipt:_,base:_.nullable()}).strict().superRefine((e,t)=>{let{receipt:n,base:r,kind:i}=e;(r&&(r.teamId!==n.teamId||r.datasetId!==n.datasetId||r.revision+1!==n.revision)||!r&&n.revision!==1)&&t.addIssue({code:`custom`,message:`Operation recovery history identity/revision mismatch.`}),r&&((r.ownerScope??`workspace`)!==(n.ownerScope??`workspace`)||r.originProjectId!==n.originProjectId||r.workspace.draft.createdAt!==n.workspace.draft.createdAt)&&t.addIssue({code:`custom`,message:`Operation recovery cannot change Dataset ownership or origin.`}),i!==(r?n.workspace.draft.status===`published`?`publish`:r.workspace.draft.status===`published`?`begin_version`:`save`:`create`)&&t.addIssue({code:`custom`,message:`Operation recovery kind differs from its retained lifecycle.`})});var S=u().trim().min(1).max(240),C=u().regex(/^[a-f0-9]{64}$/),w=e(),T=c().int().nonnegative(),E=c().int().nonnegative().max(2**53-1);o({id:S,projectId:S,maximumMicroUsd:E.positive(),maximumSandboxSeconds:T.max(10800)}).strict(),o({schemaVersion:i(`openpond.datasetPreparationGrant.v1`),id:S,teamId:S,ownerUserId:S,projectId:S,maximumMicroUsd:E,maximumSandboxSeconds:T,settledMicroUsd:E,heldMicroUsd:E,sandboxSeconds:T,heldSandboxSeconds:T,unresolvedCalls:T,cleanupPending:T,createdAt:w,updatedAt:w}).strict();var D=l([`coding_change`,`debugging`,`code_explanation`,`structured_text`,`artifact_work`]),O=l([`inventory`,`preview`,`reconstruction`,`grader_authoring`,`qualification`,`release`]),k=l([`draft`,`running`,`pausing`,`paused`,`needs_attention`,`preview_ready`,`ready`,`releasing`,`completed`,`insufficient_data`,`budget_exhausted`,`cancelling`,`cancelled`,`failed`]),A=o({projectId:S,from:w,to:w,importCutoff:w,connections:n(S).min(1).max(50),excludedSessions:n(o({connectionId:S,sourceKeyHash:C,nativeRevisionHash:C,reason:l([`source_read_failed`,`native_session_not_ready`]),explanation:u().trim().min(1).max(2e3)}).strict()).max(1e4).default([])}).strict().superRefine((e,t)=>{Date.parse(e.from)>=Date.parse(e.to)&&t.addIssue({code:`custom`,message:`Source event-time window must be nonempty.`}),new Set(e.connections).size!==e.connections.length&&t.addIssue({code:`custom`,message:`Source connections must be unique.`}),e.excludedSessions.some(t=>!e.connections.includes(t.connectionId))&&t.addIssue({code:`custom`,message:`Excluded sessions must belong to selected source connections.`}),new Set(e.excludedSessions.map(e=>JSON.stringify([e.connectionId,e.sourceKeyHash]))).size!==e.excludedSessions.length&&t.addIssue({code:`custom`,message:`Source session exclusions must be unique.`})}),j=o({source:A,taskClasses:n(D).min(1).max(5),limits:o({maximumConversations:c().int().min(1).max(1e4),maximumCandidates:c().int().min(1).max(1e4),acceptedTarget:c().int().min(1).max(1e4),maximumRepairsPerCandidate:c().int().min(0).max(5),maximumEvidenceBytesPerConversation:c().int().min(1024).max(2e6)}).strict(),researcher:o({modelId:S,maximumOutputTokens:c().int().min(1).max(32768)}).strict(),adjudicator:o({modelId:S,maximumOutputTokens:c().int().min(1).max(32768)}).strict(),grading:r(`mode`,[o({mode:i(`auto`)}).strict(),o({mode:i(`existing_only`)}).strict(),o({mode:i(`manual`),releases:n(b).min(1).max(100)}).strict()]),budget:o({grantId:S,maximumMicroUsd:E.positive(),previewMaximumMicroUsd:E,qualificationMaximumMicroUsdPerCandidate:E,maximumSandboxSeconds:T.max(10800)}).strict(),finish:l([`stop_ready`,`create_private_version`]),execution:l([`preview_only`,`prepare`]),allowPartialVersion:s(),population:i(`development`)}).strict().superRefine((e,t)=>{e.limits.acceptedTarget>e.limits.maximumCandidates&&t.addIssue({code:`custom`,message:`Accepted target exceeds candidate scan limit.`}),e.budget.previewMaximumMicroUsd>e.budget.maximumMicroUsd&&t.addIssue({code:`custom`,message:`Preview allowance exceeds the shared preparation ceiling.`}),new Set(e.taskClasses).size!==e.taskClasses.length&&t.addIssue({code:`custom`,message:`Task classes must be unique.`})});o({operationId:S,expectedDatasetRevision:c().int().positive(),policy:j}).strict(),r(`action`,[o({action:l([`start`,`pause`,`resume`,`cancel`,`release`]),operationId:S,expectedRevision:c().int().positive()}).strict(),o({action:i(`resolve`),operationId:S,expectedRevision:c().int().positive(),candidateId:S,decision:l([`retry`,`exclude`]),reason:u().trim().min(1).max(5e3)}).strict()]);var M=o({conversations:T,importedTurns:T,selectedTurns:T,queuedSnapshots:T.nullable(),failedSessions:T.nullable(),skippedSessions:T.nullable(),lastAdmissionAt:w.nullable(),complete:s(),sourceComplete:s().default(!1),excludedSessions:T.default(0),reasons:n(o({code:S,message:u().trim().min(1).max(2e3)}).strict()).max(100),sourceInventoryHash:C}).strict(),N=o({maximumMicroUsd:E,settledMicroUsd:E,heldMicroUsd:E,unresolvedCalls:T,sandboxSeconds:T,cleanupPending:T,complete:s()}).strict(),P=o({sampleConversations:T,sampleTurns:T,candidateCount:T,modelId:S,modelConfigurationHash:C,callReceiptIds:n(S).max(2e3),inputTokens:T.nullable(),outputTokens:T.nullable(),classes:n(o({taskClass:D,candidates:T,assessment:l([`executable`,`calibrated_judge`,`unsupported`]),requirements:n(u().trim().min(1).max(5e3)).max(20)}).strict()).max(5),exclusions:n(o({code:S,count:T,reason:u().trim().min(1).max(5e3)}).strict()).max(100),estimates:n(o({stage:O,minimumMicroUsd:E,maximumMicroUsd:E,assumptions:n(u().trim().min(1).max(2e3)).min(1).max(20)}).strict().refine(e=>e.minimumMicroUsd<=e.maximumMicroUsd,`Estimate range is reversed.`)).max(6),createdAt:w}).strict(),F=o({schemaVersion:i(`openpond.datasetPreparationRun.v1`),id:S,operationId:S,teamId:S,ownerUserId:S,datasetId:S,datasetRevision:c().int().positive(),revision:c().int().positive(),requestHash:C,policy:j,status:k,stage:O,coverage:M.nullable(),preview:P.nullable(),counts:o({scannedConversations:T,scannedTurns:T,candidates:T,reconstructed:T,qualifying:T,qualified:T,excluded:T,needsAttention:T}).strict(),accounting:N,publication:o({datasetId:S,workspaceRevision:c().int().positive(),release:b}).strict().nullable(),error:o({code:S,message:u().trim().min(1).max(5e3)}).strict().nullable(),createdAt:w,updatedAt:w}).strict().superRefine((e,t)=>{e.accounting.maximumMicroUsd!==e.policy.budget.maximumMicroUsd&&t.addIssue({code:`custom`,message:`Accounting authority differs from the saved preparation policy.`}),e.counts.qualified+e.counts.excluded+e.counts.needsAttention>e.counts.candidates&&t.addIssue({code:`custom`,message:`Preparation outcomes exceed the candidate population.`}),e.status===`preview_ready`&&(e.policy.execution!==`preview_only`||e.stage!==`preview`||!e.preview||!e.coverage?.complete||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Preview readiness requires a preview-only policy, reconciled source coverage and settled preview calls.`}),[`ready`,`releasing`,`completed`].includes(e.status)&&(e.counts.qualified===0||!e.policy.allowPartialVersion&&e.counts.qualified<e.policy.limits.acceptedTarget)&&t.addIssue({code:`custom`,message:`Preparation cannot report readiness below its accepted target.`}),[`ready`,`releasing`,`completed`].includes(e.status)&&(e.policy.execution!==`prepare`||!e.preview||!e.coverage?.complete||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Dataset readiness requires full preparation authority, reconciled source coverage, preview and final accounting.`}),e.status===`completed`&&(!e.publication||!e.accounting.complete)&&t.addIssue({code:`custom`,message:`Completed preparation requires publication and reconciled accounting.`}),e.status===`cancelled`&&(!e.accounting.complete||e.accounting.cleanupPending>0)&&t.addIssue({code:`custom`,message:`Cancellation requires settled resource obligations.`})});o({teamId:S,datasetId:S,runs:n(F).max(50),nextCursor:S.nullable()}).strict();var I=o({source:y,startSequence:T,endSequence:T,role:l([`requirement`,`initial_context`,`outcome`,`correction`,`verification`])}).strict().superRefine((e,t)=>{e.endSequence<e.startSequence&&t.addIssue({code:`custom`,message:`Evidence span must be ordered.`})}),L=o({schemaVersion:i(`openpond.preparedTaskProvenance.v1`),candidateId:S,preparationId:S,familyKey:S,sourceSpans:n(I).min(1).max(200),firstAvailableAt:w,initialInputHash:C,initialEnvironmentHash:C,initialAssetsHash:C.nullable(),sourceScopeHash:C}).strict().superRefine((e,t)=>{e.sourceSpans.some(e=>e.role===`requirement`)||t.addIssue({code:`custom`,message:`A reconstructed task needs a source requirement.`});let n=new Set;for(let r of e.sourceSpans){e.sourceSpans.some(e=>e!==r&&e.source.id===r.source.id&&e.source.snapshotHash===r.source.snapshotHash&&e.role!==r.role&&r.startSequence<=e.endSequence&&e.startSequence<=r.endSequence)&&t.addIssue({code:`custom`,message:`Evidence offsets cannot have conflicting roles.`});let i=JSON.stringify([r.source,r.startSequence,r.endSequence]);n.has(i)&&t.addIssue({code:`custom`,message:`Evidence span is duplicated or crosses public/private roles.`}),n.add(i)}}),R=o({schemaVersion:i(`openpond.preparedTaskQualification.v1`),id:S,candidateId:S,preparationId:S,taskHash:C,environmentHash:C,packageHash:C,graderBindings:n(o({id:S,version:S,contentHash:C,origin:l([`reused`,`adapted`,`authored`])}).strict()).min(1).max(100),checks:n(o({id:S,label:l([`positive`,`incorrect`,`incomplete`,`adversarial`,`clean_reset`]),executionReceiptId:S,expectedPassed:s(),observedPassed:s().nullable(),infrastructureError:S.nullable()}).strict()).min(5).max(500),independentEvidenceRefs:n(S).min(1).max(100),judgeCalibration:l([`not_applicable`,`passed`,`failed`,`pending`]),cleanup:l([`completed`,`pending`]),passed:s(),createdAt:w}).strict().superRefine((e,t)=>{if(!e.passed)return;let n=new Set(e.checks.map(e=>e.label));[`positive`,`incorrect`,`incomplete`,`adversarial`,`clean_reset`].some(e=>!n.has(e))&&t.addIssue({code:`custom`,message:`Qualified tasks require positive, negative, adversarial and clean-reset evidence.`}),(e.cleanup!==`completed`||[`pending`,`failed`].includes(e.judgeCalibration)||e.checks.some(e=>e.infrastructureError!==null||e.observedPassed!==e.expectedPassed))&&t.addIssue({code:`custom`,message:`Failed, uncalibrated or uncleared checks cannot qualify a task.`}),e.checks.some(e=>e.expectedPassed!==[`positive`,`clean_reset`].includes(e.label))&&t.addIssue({code:`custom`,message:`Qualification witnesses must pass positives/resets and reject incorrect, incomplete and adversarial outputs.`})}),z=o({id:S,runId:S,revision:c().int().positive(),taskClass:D,status:l([`discovered`,`reconstructing`,`authoring`,`qualifying`,`qualified`,`excluded`,`needs_attention`]),objective:u().trim().min(1).max(2e4),provenance:L.nullable(),qualification:R.nullable(),reason:o({code:S,message:u().trim().min(1).max(5e3)}).strict().nullable(),attempts:T.max(6)}).strict().superRefine((e,t)=>{e.status===`qualified`&&(!e.provenance||!e.qualification?.passed)&&t.addIssue({code:`custom`,message:`Candidate admission requires reconstruction and qualification receipts.`}),e.provenance&&(e.provenance.candidateId!==e.id||e.provenance.preparationId!==e.runId)&&t.addIssue({code:`custom`,message:`Candidate provenance identity mismatch.`}),e.qualification&&(e.qualification.candidateId!==e.id||e.qualification.preparationId!==e.runId)&&t.addIssue({code:`custom`,message:`Candidate qualification identity mismatch.`})}),B=u().trim().min(1).max(240);o({teamId:B,datasetId:B,runId:B,candidates:n(z).max(50),nextCursor:B.nullable()}).strict();var V=u().trim().min(1).max(500),H=u().regex(/^[a-f0-9]{64}$/),U=o({release:b,afterId:V.optional(),limit:c().int().min(1).max(1e4).default(100),view:l([`ids`,`policy`]).default(`ids`)}).strict().superRefine((e,t)=>{e.view===`policy`&&e.limit>100&&t.addIssue({code:`custom`,path:[`limit`],message:`Policy previews are bounded to 100 tasks.`})}),W=o({id:p.shape.id,split:m}).strict(),G=W.extend({input:a(u(),t()),policyVisibleContext:a(u(),t()),artifacts:n(o({id:V,path:u(),mediaType:u(),sizeBytes:c().int().nonnegative()}).strict()).max(1e3)}).strict(),K=o({schemaVersion:i(`openpond.datasetPopulationPage.v1`),teamId:V,release:b,view:U.shape.view,taskCount:c().int().nonnegative(),items:n(d([W,G])).max(1e4),graders:n(h).max(1e3),nextCursor:V.nullable(),contentHash:H}).strict().superRefine((e,t)=>{e.view===`policy`&&e.items.length>100&&t.addIssue({code:`custom`,message:`Policy preview exceeded its task bound.`}),e.items.some(t=>`input`in t!=(e.view===`policy`))&&t.addIssue({code:`custom`,message:`Dataset task view differs from the requested projection.`})}),q=u().trim().min(1).max(240),J=u().trim().min(1).max(5e3),Y=o({taskClass:D,objective:u().trim().min(1).max(2e4),sourceSpans:n(I).min(1).max(200),firstAvailableAt:e(),reconstruction:o({kind:l([`text_only`,`pinned_repository`,`pinned_artifact`,`unsupported`]),requiredAssets:n(o({reference:J,evidence:I}).strict()).max(100),missingEvidence:n(J).max(20)}).strict(),assessment:o({kind:l([`executable`,`calibrated_judge`,`unsupported`]),requirements:n(o({criterion:J,evidence:I}).strict()).min(1).max(20),limitations:n(J).max(20)}).strict()}).strict().superRefine((e,t)=>{e.sourceSpans.some(e=>e.role===`requirement`)||t.addIssue({code:`custom`,message:`A research candidate requires independently retained user requirements.`}),e.assessment.requirements.some(e=>e.evidence.role!==`requirement`)&&t.addIssue({code:`custom`,message:`Assessment criteria must cite user requirements, not historical answers.`})});o({schemaVersion:i(`openpond.datasetPreparationResearchDecision.v1`),sourceId:q,snapshotHash:u().regex(/^[a-f0-9]{64}$/),candidates:n(Y).max(100),exclusions:n(o({code:q,reason:J,sourceSpans:n(I).max(200)}).strict()).max(100),contextSummary:u().max(2e4)}).strict();var X=u().regex(/^[a-f0-9]{64}$/);o({schemaVersion:i(`openpond.preparedRepositoryStartingState.v1`),dependencyClosureQualified:i(!1),assets:n(v.extend({receiptId:u().regex(/^starting-assets-[a-f0-9]{40}$/),receiptHash:X,source:y}).strict()).min(1).max(100)}).strict().superRefine((e,t)=>{new Set(e.assets.map(e=>e.path)).size!==e.assets.length&&t.addIssue({code:`custom`,message:`Starting paths must be distinct.`}),e.assets.some(t=>t.commitHash!==e.assets[0].commitHash||f(t.source)!==f(e.assets[0].source))&&t.addIssue({code:`custom`,message:`Starting assets must belong to one original task boundary and commit.`})});var Z=u().trim().min(1).max(240),Q=u().trim().min(1).max(2e4),$=o({id:Z,label:l([`positive`,`incorrect`,`incomplete`,`adversarial`]),output:a(u(),t()),artifacts:n(o({path:g.shape.path,mediaType:g.shape.mediaType,base64:u().max(8388608)}).strict()).max(100)}).strict().superRefine((e,t)=>{new Set(e.artifacts.map(e=>e.path)).size!==e.artifacts.length&&t.addIssue({code:`custom`,message:`Qualification artifacts must have distinct paths.`})});o({schemaVersion:i(`openpond.preparedQualificationPlan.v1`),requirementRefs:n(Z).min(1).max(100),supported:s(),limitations:n(Q).max(20),independentVerifier:o({runtime:l([`isolated_javascript`,`sandbox_process`]),source:u().trim().min(1).max(2e5),exportName:i(`verify`),timeoutMs:c().int().min(1).max(6e4)}).strict().nullable(),witnesses:n($).max(20)}).strict().superRefine((e,t)=>{(new Set(e.requirementRefs).size!==e.requirementRefs.length||new Set(e.witnesses.map(e=>e.id)).size!==e.witnesses.length)&&t.addIssue({code:`custom`,message:`Qualification evidence identities must be distinct.`}),e.supported&&(!e.independentVerifier||e.limitations.length||[`positive`,`incorrect`,`incomplete`,`adversarial`].some(t=>!e.witnesses.some(e=>e.label===t)))&&t.addIssue({code:`custom`,message:`Supported qualification needs a complete verifier and witness population without unresolved evidence gaps.`})}),o({schemaVersion:i(`openpond.preparedWitnessAdjudication.v1`),witnesses:n(o({id:Z,failureMode:l([`none`,`incorrect`,`incomplete`,`adversarial`,`unverifiable`]),requirements:n(o({reference:Z,status:l([`satisfied`,`violated`,`unverifiable`]),reason:Q}).strict()).min(1).max(100)}).strict()).min(4).max(20)}).strict(),o({schemaVersion:i(`openpond.preparedCheckerAudit.v1`),requirements:n(o({reference:Z,adequatelyChecked:s(),oracleAdequatelyChecked:s(),reason:Q}).strict()).min(1).max(100),executionIsolationPassed:s(),futureEvidenceLeak:s(),unresolvedLimitations:n(Q).max(20),passed:s()}).strict();export{K as t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`external-link`,[[`path`,{d:`M15 3h6v6`,key:`1q9fwt`}],[`path`,{d:`M10 14 21 3`,key:`gplh6r`}],[`path`,{d:`M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`,key:`a6xqqp`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`folder-open`,[[`path`,{d:`m6 14 1.5-2.9A2 2 0 0 1 9.24 10H20a2 2 0 0 1 1.94 2.5l-1.54 6a2 2 0 0 1-1.95 1.5H4a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h3.9a2 2 0 0 1 1.69.9l.81 1.2a2 2 0 0 0 1.67.9H18a2 2 0 0 1 2 2v2`,key:`usdka0`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`folder-plus`,[[`path`,{d:`M12 10v6`,key:`1bos4e`}],[`path`,{d:`M9 13h6`,key:`1uhe8q`}],[`path`,{d:`M20 20a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2h-7.9a2 2 0 0 1-1.69-.9L9.6 3.9A2 2 0 0 0 7.93 3H4a2 2 0 0 0-2 2v13a2 2 0 0 0 2 2Z`,key:`1kt360`}]]);export{t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`git-commit-horizontal`,[[`circle`,{cx:`12`,cy:`12`,r:`3`,key:`1v7zrd`}],[`line`,{x1:`3`,x2:`9`,y1:`12`,y2:`12`,key:`1dyftd`}],[`line`,{x1:`15`,x2:`21`,y1:`12`,y2:`12`,key:`oup4p8`}]]);export{t};
@@ -1 +1 @@
1
- import{c as e}from"./WorkspaceMonacoEditor-BRPLaFZS.js";import"./toggleHighContrast-hftC_Rxs.js";import{t}from"./workers-B3jA6AOv.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-BjtOz-Ln.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/html/htmlWorker`,createWorker:()=>new Worker(new URL(`/assets/html.worker-jOmjF9ZZ.js`,``+import.meta.url),{type:`module`}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}},S=class extends _{constructor(e){super(e,[`.`,`:`,`<`,`"`,`=`,`/`])}};function C(t){let n=new x(t),o=(...e)=>n.getLanguageServiceWorker(...e),s=t.languageId;e.registerCompletionItemProvider(s,new S(o)),e.registerHoverProvider(s,new a(o)),e.registerDocumentHighlightProvider(s,new p(o)),e.registerLinkProvider(s,new g(o)),e.registerFoldingRangeProvider(s,new v(o)),e.registerDocumentSymbolProvider(s,new u(o)),e.registerSelectionRangeProvider(s,new d(o)),e.registerRenameProvider(s,new m(o)),s===`html`&&(e.registerDocumentFormattingEditProvider(s,new r(o)),e.registerDocumentRangeFormattingEditProvider(s,new i(o)))}function w(t){let n=[],o=[],s=new x(t);n.push(s);let c=(...e)=>s.getLanguageServiceWorker(...e);function l(){let{languageId:n,modeConfiguration:s}=t;E(o),s.completionItems&&o.push(e.registerCompletionItemProvider(n,new S(c))),s.hovers&&o.push(e.registerHoverProvider(n,new a(c))),s.documentHighlights&&o.push(e.registerDocumentHighlightProvider(n,new p(c))),s.links&&o.push(e.registerLinkProvider(n,new g(c))),s.documentSymbols&&o.push(e.registerDocumentSymbolProvider(n,new u(c))),s.rename&&o.push(e.registerRenameProvider(n,new m(c))),s.foldingRanges&&o.push(e.registerFoldingRangeProvider(n,new v(c))),s.selectionRanges&&o.push(e.registerSelectionRangeProvider(n,new d(c))),s.documentFormattingEdits&&o.push(e.registerDocumentFormattingEditProvider(n,new r(c))),s.documentRangeFormattingEdits&&o.push(e.registerDocumentRangeFormattingEditProvider(n,new i(c)))}return l(),n.push(T(o)),T(n)}function T(e){return{dispose:()=>E(e)}}function E(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,w as setupMode,C as setupMode1,n as toRange,y as toTextEdit};
1
+ import{c as e}from"./WorkspaceMonacoEditor-ChBjvgxE.js";import"./toggleHighContrast-CP0qM8JR.js";import{t}from"./workers-CmqH-dTr.js";import{_ as n,a as r,c as i,d as a,f as o,g as s,h as c,i as l,l as u,m as d,n as f,o as p,p as m,r as h,s as g,t as _,u as v,v as y}from"./lspLanguageFeatures-C6uY6TKM.js";var b=12e4,x=class{constructor(e){this._defaults=e,this._worker=null,this._client=null,this._idleCheckInterval=window.setInterval(()=>this._checkIfIdle(),3e4),this._lastUsedTime=0,this._configChangeListener=this._defaults.onDidChange(()=>this._stopWorker())}_stopWorker(){this._worker&&=(this._worker.dispose(),null),this._client=null}dispose(){clearInterval(this._idleCheckInterval),this._configChangeListener.dispose(),this._stopWorker()}_checkIfIdle(){this._worker&&Date.now()-this._lastUsedTime>b&&this._stopWorker()}_getClient(){return this._lastUsedTime=Date.now(),this._client||=(this._worker=t({moduleId:`vs/language/html/htmlWorker`,createWorker:()=>new Worker(new URL(`/assets/html.worker-jOmjF9ZZ.js`,``+import.meta.url),{type:`module`}),createData:{languageSettings:this._defaults.options,languageId:this._defaults.languageId},label:this._defaults.languageId}),this._worker.getProxy()),this._client}getLanguageServiceWorker(...e){let t;return this._getClient().then(e=>{t=e}).then(t=>{if(this._worker)return this._worker.withSyncedResources(e)}).then(e=>t)}},S=class extends _{constructor(e){super(e,[`.`,`:`,`<`,`"`,`=`,`/`])}};function C(t){let n=new x(t),o=(...e)=>n.getLanguageServiceWorker(...e),s=t.languageId;e.registerCompletionItemProvider(s,new S(o)),e.registerHoverProvider(s,new a(o)),e.registerDocumentHighlightProvider(s,new p(o)),e.registerLinkProvider(s,new g(o)),e.registerFoldingRangeProvider(s,new v(o)),e.registerDocumentSymbolProvider(s,new u(o)),e.registerSelectionRangeProvider(s,new d(o)),e.registerRenameProvider(s,new m(o)),s===`html`&&(e.registerDocumentFormattingEditProvider(s,new r(o)),e.registerDocumentRangeFormattingEditProvider(s,new i(o)))}function w(t){let n=[],o=[],s=new x(t);n.push(s);let c=(...e)=>s.getLanguageServiceWorker(...e);function l(){let{languageId:n,modeConfiguration:s}=t;E(o),s.completionItems&&o.push(e.registerCompletionItemProvider(n,new S(c))),s.hovers&&o.push(e.registerHoverProvider(n,new a(c))),s.documentHighlights&&o.push(e.registerDocumentHighlightProvider(n,new p(c))),s.links&&o.push(e.registerLinkProvider(n,new g(c))),s.documentSymbols&&o.push(e.registerDocumentSymbolProvider(n,new u(c))),s.rename&&o.push(e.registerRenameProvider(n,new m(c))),s.foldingRanges&&o.push(e.registerFoldingRangeProvider(n,new v(c))),s.selectionRanges&&o.push(e.registerSelectionRangeProvider(n,new d(c))),s.documentFormattingEdits&&o.push(e.registerDocumentFormattingEditProvider(n,new r(c))),s.documentRangeFormattingEdits&&o.push(e.registerDocumentRangeFormattingEditProvider(n,new i(c)))}return l(),n.push(T(o)),T(n)}function T(e){return{dispose:()=>E(e)}}function E(e){for(;e.length;)e.pop().dispose()}export{_ as CompletionAdapter,f as DefinitionAdapter,h as DiagnosticsAdapter,l as DocumentColorAdapter,r as DocumentFormattingEditProvider,p as DocumentHighlightAdapter,g as DocumentLinkAdapter,i as DocumentRangeFormattingEditProvider,u as DocumentSymbolAdapter,v as FoldingRangeAdapter,a as HoverAdapter,o as ReferenceAdapter,m as RenameAdapter,d as SelectionRangeAdapter,x as WorkerManager,c as fromPosition,s as fromRange,w as setupMode,C as setupMode1,n as toRange,y as toTextEdit};
@@ -1 +1 @@
1
- import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,m as n}from"./index-CDtTBysF.js";var r=e(t());n();var i=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),c=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},u=(0,r.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:u,...d},f)=>(0,r.createElement)(`svg`,{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:s(`lucide`,a),...!o&&!c(d)&&{"aria-hidden":`true`},...d},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),d=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},c)=>(0,r.createElement)(u,{ref:c,iconNode:t,className:s(`lucide-${i(o(e))}`,`lucide-${e}`,n),...a}));return n.displayName=o(e),n};export{d as t};
1
+ import{i as e}from"./rolldown-runtime-Dd_uD5pT.js";import{g as t,m as n}from"./index-DG0kf1wK.js";var r=e(t());n();var i=e=>e.replace(/([a-z0-9])([A-Z])/g,`$1-$2`).toLowerCase(),a=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(e,t,n)=>n?n.toUpperCase():t.toLowerCase()),o=e=>{let t=a(e);return t.charAt(0).toUpperCase()+t.slice(1)},s=(...e)=>e.filter((e,t,n)=>!!e&&e.trim()!==``&&n.indexOf(e)===t).join(` `).trim(),c=e=>{for(let t in e)if(t.startsWith(`aria-`)||t===`role`||t===`title`)return!0},l={xmlns:`http://www.w3.org/2000/svg`,width:24,height:24,viewBox:`0 0 24 24`,fill:`none`,stroke:`currentColor`,strokeWidth:2,strokeLinecap:`round`,strokeLinejoin:`round`},u=(0,r.forwardRef)(({color:e=`currentColor`,size:t=24,strokeWidth:n=2,absoluteStrokeWidth:i,className:a=``,children:o,iconNode:u,...d},f)=>(0,r.createElement)(`svg`,{ref:f,...l,width:t,height:t,stroke:e,strokeWidth:i?Number(n)*24/Number(t):n,className:s(`lucide`,a),...!o&&!c(d)&&{"aria-hidden":`true`},...d},[...u.map(([e,t])=>(0,r.createElement)(e,t)),...Array.isArray(o)?o:[o]])),d=(e,t)=>{let n=(0,r.forwardRef)(({className:n,...a},c)=>(0,r.createElement)(u,{ref:c,iconNode:t,className:s(`lucide-${i(o(e))}`,`lucide-${e}`,n),...a}));return n.displayName=o(e),n};export{d as t};
@@ -1 +1 @@
1
- import{t as e}from"./icons-CYvTltSH.js";var t=e(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]);export{t};
1
+ import{t as e}from"./icons-nr5d1kC-.js";var t=e(`image`,[[`rect`,{width:`18`,height:`18`,x:`3`,y:`3`,rx:`2`,ry:`2`,key:`1m3agn`}],[`circle`,{cx:`9`,cy:`9`,r:`2`,key:`af1f0g`}],[`path`,{d:`m21 15-3.086-3.086a2 2 0 0 0-2.828 0L6 21`,key:`1xmnt7`}]]);export{t};