openpond 0.2.67 → 0.2.69
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.
- package/dist/app-server.d.ts +668 -1
- package/dist/app-server.js +1 -1
- package/dist/chunks/account-context-V3KLSNKS.js +12 -0
- package/dist/chunks/{acp-NASAJV5E.js → acp-ER6CUXG2.js} +1 -1
- package/dist/chunks/{acp-agent-C3CRF6DT.js → acp-agent-AYJ5RPVF.js} +1 -1
- package/dist/chunks/actions-command-BBUS3HDK.js +2 -0
- package/dist/chunks/{app-layer-XIEZ6ALX.js → app-layer-JCEWGUDH.js} +1 -1
- package/dist/chunks/{app-server-connected-apps-IB6M35NS.js → app-server-connected-apps-ILXBFD3S.js} +1 -1
- package/dist/chunks/app-server-evaluations-RRLYWLPK.js +2 -0
- package/dist/chunks/app-server-harness-services-XXM336NU.js +2 -0
- package/dist/chunks/app-server-runtime-43MCH5SY.js +2 -0
- package/dist/chunks/apps-VNFGMQFG.js +2 -0
- package/dist/chunks/{chunk-W3ZILZUL.js → chunk-22RLEU3Q.js} +1 -1
- package/dist/chunks/chunk-2PXKSAG6.js +2 -0
- package/dist/chunks/{chunk-XEU4J4GJ.js → chunk-2TGHZXJE.js} +2 -2
- package/dist/chunks/{chunk-AXO6OHJB.js → chunk-3A2Y7UK3.js} +1 -1
- package/dist/chunks/chunk-3Z4VM2LF.js +4 -0
- package/dist/chunks/{chunk-V3T2OJBZ.js → chunk-4BUM6JEC.js} +2 -2
- package/dist/chunks/chunk-4G3GTEVS.js +23 -0
- package/dist/chunks/{chunk-43QYVOYA.js → chunk-4KNPCJR4.js} +1 -1
- package/dist/chunks/chunk-4KTGYHCE.js +2 -0
- package/dist/chunks/chunk-4PUOWSDE.js +13 -0
- package/dist/chunks/chunk-55YD4UTW.js +2 -0
- package/dist/chunks/chunk-5G7BQAUA.js +2 -0
- package/dist/chunks/chunk-65FJWWXG.js +2 -0
- package/dist/chunks/{chunk-4EZI4KCT.js → chunk-65WRWLUD.js} +1 -1
- package/dist/chunks/chunk-6D3FI2XT.js +2 -0
- package/dist/chunks/chunk-7EQLW2KM.js +12 -0
- package/dist/chunks/{chunk-5TPYBXWM.js → chunk-7NCM6GBN.js} +1 -1
- package/dist/chunks/chunk-7OFD6TFD.js +2 -0
- package/dist/chunks/chunk-7OKZCJHS.js +3 -0
- package/dist/chunks/{chunk-ADOCQA4D.js → chunk-7PKDJHT6.js} +1 -1
- package/dist/chunks/chunk-7RJOCGQ6.js +2 -0
- package/dist/chunks/{chunk-YR5URT73.js → chunk-7RSQOC5M.js} +3 -3
- package/dist/chunks/{chunk-FVK4W27G.js → chunk-AFH462DO.js} +1 -1
- package/dist/chunks/{chunk-GUG2SWRZ.js → chunk-AFKFN25T.js} +1 -1
- package/dist/chunks/chunk-AFYYIJ6K.js +2 -0
- package/dist/chunks/{chunk-U3MVH2YT.js → chunk-APKXXAUF.js} +1 -1
- package/dist/chunks/chunk-AQUZCWM3.js +2 -0
- package/dist/chunks/chunk-AUO5DCEU.js +2 -0
- package/dist/chunks/chunk-AYOMVI7J.js +2 -0
- package/dist/chunks/{chunk-RWRKUO5D.js → chunk-B66QCXH2.js} +1 -1
- package/dist/chunks/chunk-BDZDWHBJ.js +6 -0
- package/dist/chunks/chunk-BU6MW65V.js +10 -0
- package/dist/chunks/{chunk-P6NQYXN6.js → chunk-CCZ276IA.js} +1 -1
- package/dist/chunks/{chunk-YONDU5TN.js → chunk-CIZI6Z7D.js} +1 -1
- package/dist/chunks/{chunk-ATFV2NA4.js → chunk-CO23RRN7.js} +1 -1
- package/dist/chunks/{chunk-QAFXQHHG.js → chunk-D6L6UNUQ.js} +2 -2
- package/dist/chunks/chunk-DDOIPTOM.js +2 -0
- package/dist/chunks/{chunk-CSU7RDA5.js → chunk-DKOVZ6R2.js} +3 -3
- package/dist/chunks/chunk-DRLP7GIU.js +2 -0
- package/dist/chunks/{chunk-XDFXKRTI.js → chunk-DWF3FCY4.js} +1 -1
- package/dist/chunks/chunk-DXJC3QW7.js +2 -0
- package/dist/chunks/{chunk-IDILAYCW.js → chunk-E2JB5OCO.js} +1 -1
- package/dist/chunks/{chunk-GI7LTJV3.js → chunk-EDYCSW22.js} +1 -1
- package/dist/chunks/{chunk-4JYTFEND.js → chunk-EFP75UEX.js} +1 -1
- package/dist/chunks/{chunk-CX7HKSQ4.js → chunk-EGP6DF34.js} +2 -2
- package/dist/chunks/{chunk-D5OFN47Z.js → chunk-ESYPMD7Q.js} +1 -1
- package/dist/chunks/{chunk-36FNNR5N.js → chunk-EWDDDHJN.js} +1 -1
- package/dist/chunks/{chunk-PWKJ5KLZ.js → chunk-EXYSD45J.js} +1 -1
- package/dist/chunks/{chunk-R6VI7MX5.js → chunk-EYTTZ5H4.js} +1 -1
- package/dist/chunks/{chunk-WD6ANOLL.js → chunk-FNGZ4UDZ.js} +1 -1
- package/dist/chunks/{chunk-YKTJPCYZ.js → chunk-G4FRBT7G.js} +4 -4
- package/dist/chunks/{chunk-JFZ6USNQ.js → chunk-G7X73SBG.js} +1 -1
- package/dist/chunks/{chunk-ULJZ7NUF.js → chunk-GY7YSD6J.js} +1 -1
- package/dist/chunks/{chunk-CWAQOFLP.js → chunk-GYYJ47GX.js} +1 -1
- package/dist/chunks/chunk-HG2YFMVU.js +4 -0
- package/dist/chunks/{chunk-YQBL5P6R.js → chunk-HKVFU3B3.js} +1 -1
- package/dist/chunks/{chunk-VEXJV5H5.js → chunk-IIT66347.js} +4 -4
- package/dist/chunks/{chunk-B2K5WQZE.js → chunk-IO5DZUKL.js} +1 -1
- package/dist/chunks/chunk-J256AEEE.js +2 -0
- package/dist/chunks/{chunk-CRDKBFRN.js → chunk-JEMECEQH.js} +1 -1
- package/dist/chunks/{chunk-YMCF5GR2.js → chunk-JQOVC35K.js} +1 -1
- package/dist/chunks/{chunk-6LFTQBXP.js → chunk-JT5YQ52I.js} +1 -1
- package/dist/chunks/chunk-JVMSN7LH.js +2 -0
- package/dist/chunks/{chunk-HORMGT2Q.js → chunk-JXYJQT5Q.js} +1 -1
- package/dist/chunks/{chunk-WDKZMXIU.js → chunk-K7KBFM2T.js} +1 -1
- package/dist/chunks/{chunk-UBTP3QWI.js → chunk-KCLMA2IH.js} +1 -1
- package/dist/chunks/chunk-KDER7R45.js +2 -0
- package/dist/chunks/{chunk-R6MMWEH4.js → chunk-KP2MYTP5.js} +1 -1
- package/dist/chunks/{chunk-TV2LE2BD.js → chunk-KU4TPDPH.js} +2 -2
- package/dist/chunks/{chunk-WJSJXK2N.js → chunk-KUE46HTH.js} +1 -1
- package/dist/chunks/chunk-LSKMALD6.js +161 -0
- package/dist/chunks/chunk-LVXL7T5O.js +2 -0
- package/dist/chunks/{chunk-TSQ2I6XV.js → chunk-M4A7G4S5.js} +2 -2
- package/dist/chunks/{chunk-MX7KV5DA.js → chunk-M4ZHFDRJ.js} +1 -1
- package/dist/chunks/chunk-M5X7XKXY.js +12 -0
- package/dist/chunks/{chunk-XT5WUQGT.js → chunk-MIFVX5PK.js} +1 -1
- package/dist/chunks/{chunk-4VZJQRQI.js → chunk-MOXIGLN2.js} +1 -1
- package/dist/chunks/{chunk-UKSSFB4Q.js → chunk-N5EAVX4G.js} +1 -1
- package/dist/chunks/{chunk-4B7EGNYX.js → chunk-NMMHXYDJ.js} +1 -1
- package/dist/chunks/{chunk-EBOTNBUS.js → chunk-NRYC4NH6.js} +1 -1
- package/dist/chunks/chunk-NSSZ2ZIU.js +2 -0
- package/dist/chunks/chunk-NW6WGGSL.js +2 -0
- package/dist/chunks/{chunk-7P5SH3CI.js → chunk-NZDLL6JN.js} +1 -1
- package/dist/chunks/{chunk-4TTXNVCE.js → chunk-OFJPOTES.js} +1 -1
- package/dist/chunks/chunk-OUJ63LMU.js +2 -0
- package/dist/chunks/{chunk-SD2XDZQW.js → chunk-P4QM63L3.js} +1 -1
- package/dist/chunks/chunk-PACLKDTN.js +2 -0
- package/dist/chunks/{chunk-VPAEFG7X.js → chunk-PAYFJHPO.js} +1 -1
- package/dist/chunks/{chunk-OPTJYDZN.js → chunk-PHZZBXDO.js} +1 -1
- package/dist/chunks/{chunk-HPTEJBP4.js → chunk-PKJHN666.js} +1 -1
- package/dist/chunks/{chunk-HNDAGZCF.js → chunk-PLROXHG2.js} +1 -1
- package/dist/chunks/{chunk-UNE52L3Y.js → chunk-PNPV2LDE.js} +1 -1
- package/dist/chunks/{chunk-2RSGVLZT.js → chunk-PSY6IRJE.js} +8 -8
- package/dist/chunks/{chunk-SVNEPXU3.js → chunk-Q73RKX7I.js} +1 -1
- package/dist/chunks/{chunk-IF5A3XWP.js → chunk-Q7FBVLLB.js} +1 -1
- package/dist/chunks/{chunk-V5AOM5MZ.js → chunk-Q7P34B2O.js} +1 -1
- package/dist/chunks/{chunk-375PADDM.js → chunk-QLGP2OAQ.js} +1 -1
- package/dist/chunks/{chunk-QQLS5FB7.js → chunk-QUNQM2E3.js} +1 -1
- package/dist/chunks/chunk-R2FYCJL6.js +2 -0
- package/dist/chunks/{chunk-6HQUIKC5.js → chunk-R4EEGWXB.js} +1 -1
- package/dist/chunks/chunk-R6I623SZ.js +11 -0
- package/dist/chunks/chunk-RCQYEHHD.js +2 -0
- package/dist/chunks/{chunk-26ID6A5C.js → chunk-RCRZXHAI.js} +1 -1
- package/dist/chunks/{chunk-TGULVWPV.js → chunk-RFQD6B44.js} +1 -1
- package/dist/chunks/{chunk-3WJQ4IGK.js → chunk-RPM4FDRX.js} +1 -1
- package/dist/chunks/{chunk-MCBRB5D6.js → chunk-RY46UPBO.js} +4 -4
- package/dist/chunks/{chunk-K3LS5SK7.js → chunk-SDHG6CKU.js} +1 -1
- package/dist/chunks/{chunk-XKZ4PFMQ.js → chunk-SO4GMSNP.js} +1 -1
- package/dist/chunks/{chunk-O6ZYDHEJ.js → chunk-SSHE6B7Z.js} +1 -1
- package/dist/chunks/{chunk-SH7POUVX.js → chunk-SV7ZBEK2.js} +6 -6
- package/dist/chunks/{chunk-SODAOLAP.js → chunk-TB5P3FWM.js} +1 -1
- package/dist/chunks/{chunk-BJXPQIVD.js → chunk-U7D6Q744.js} +1 -1
- package/dist/chunks/chunk-U7X5ZLAL.js +2 -0
- package/dist/chunks/{chunk-N54CPLVD.js → chunk-UANH7U3Y.js} +1 -1
- package/dist/chunks/{chunk-BUZ7CBJC.js → chunk-UGFSAG4U.js} +1 -1
- package/dist/chunks/chunk-ULTV6INR.js +2 -0
- package/dist/chunks/{chunk-V3ILZQER.js → chunk-UMAVVMXL.js} +7 -7
- package/dist/chunks/chunk-V24VHT76.js +2 -0
- package/dist/chunks/chunk-VEBW7NKD.js +2 -0
- package/dist/chunks/chunk-VJR2GNRY.js +2 -0
- package/dist/chunks/{chunk-JD76ANPN.js → chunk-VJYOKU3C.js} +1 -1
- package/dist/chunks/{chunk-H2XG5N7D.js → chunk-VWWKWYSQ.js} +1 -1
- package/dist/chunks/chunk-WCNPGKST.js +2 -0
- package/dist/chunks/chunk-WD4KAKEX.js +2 -0
- package/dist/chunks/chunk-WGQ3FMRF.js +2 -0
- package/dist/chunks/{chunk-6C3CXME7.js → chunk-WNXUSELC.js} +1 -1
- package/dist/chunks/{chunk-RS526BG7.js → chunk-WZ35ICTE.js} +3 -3
- package/dist/chunks/chunk-XHACK2KR.js +2 -0
- package/dist/chunks/chunk-XOPHFUUY.js +2 -0
- package/dist/chunks/{chunk-ZVMQLIRA.js → chunk-XT4CSKHM.js} +1 -1
- package/dist/chunks/{chunk-KQD36SBJ.js → chunk-XY7HFXLH.js} +1 -1
- package/dist/chunks/{chunk-UXO33ST5.js → chunk-XYZV3FKD.js} +1 -1
- package/dist/chunks/{chunk-GC6RJBRZ.js → chunk-Y2WNZWT2.js} +1 -1
- package/dist/chunks/chunk-Y4I6CFZJ.js +2 -0
- package/dist/chunks/chunk-YDZBX4XQ.js +2 -0
- package/dist/chunks/chunk-YI6ME6PU.js +22 -0
- package/dist/chunks/{chunk-H42UW6IF.js → chunk-YXMYK5P7.js} +1 -1
- package/dist/chunks/{chunk-QFL2VQKX.js → chunk-Z33RVGP6.js} +1 -1
- package/dist/chunks/chunk-Z5CQXPIS.js +6 -0
- package/dist/chunks/{chunk-OY4B7Y3T.js → chunk-ZDEIVUUI.js} +1 -1
- package/dist/chunks/{chunk-XGJG2ZKE.js → chunk-ZIQJDTQB.js} +1 -1
- package/dist/chunks/{chunk-IR2Y2VQY.js → chunk-ZYLLPRPU.js} +1 -1
- package/dist/chunks/cli-R7TAP6Z2.js +2 -0
- package/dist/chunks/{command-NWOZXU57.js → command-LNOVZQSK.js} +3 -3
- package/dist/chunks/{configuration-command-ZEIBQKB3.js → configuration-command-C3QBDFND.js} +1 -1
- package/dist/chunks/connected-app-executor-LAEAQUJS.js +2 -0
- package/dist/chunks/connected-evidence-VKY6O2JW.js +2 -0
- package/dist/chunks/{connected-starting-assets-66Y46ZPM.js → connected-starting-assets-5LAJ7CZY.js} +1 -1
- package/dist/chunks/{connection-GDWPMHPC.js → connection-VMBXW5PD.js} +1 -1
- package/dist/chunks/{continual-TNPTWTKK.js → continual-FVOLGGOE.js} +1 -1
- package/dist/chunks/core-commands-5TNBVR72.js +2 -0
- package/dist/chunks/dataset-preparation-authoring-UUYFWWCT.js +4 -0
- package/dist/chunks/datasets-BIDZJYDC.js +2 -0
- package/dist/chunks/desktop-test-BY2MS3UL.js +3 -0
- package/dist/chunks/dist-2MKJC6HN.js +2 -0
- package/dist/chunks/{dist-GR56E3QK.js → dist-DKE7RJZN.js} +1 -1
- package/dist/chunks/evaluation-coordination-FXB4DXZA.js +2 -0
- package/dist/chunks/experiment-improvements-JPDLKZXD.js +2 -0
- package/dist/chunks/experiments-IEN7RXLX.js +2 -0
- package/dist/chunks/experiments-signal-L32D36NH.js +2 -0
- package/dist/chunks/{extension-UH34ZF7N.js → extension-3EKIT6BB.js} +1 -1
- package/dist/chunks/{help-O53DTZGN.js → help-PLQJOP4P.js} +1 -1
- package/dist/chunks/host-profile-evaluation-tools-UF4ATIUF.js +2 -0
- package/dist/chunks/host-profile-external-dataset-KSEPXY2S.js +2 -0
- package/dist/chunks/hosted-app-server-composition-GZES7QXJ.js +2 -0
- package/dist/chunks/hosted-experiment-improvement-VG2WE7XZ.js +3 -0
- package/dist/chunks/hosted-harness-runtime-MMTLCL23.js +2 -0
- package/dist/chunks/hosted-profile-candidate-PTGQLPZO.js +3 -0
- package/dist/chunks/hosted-profile-compiler-FS5R6CHJ.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-control-UUEZEMXU.js +2 -0
- package/dist/chunks/hosted-profile-evaluation-inspection-4F7OEF4T.js +3 -0
- package/dist/chunks/hosted-profile-evaluation-preparation-LIJJZDHQ.js +3 -0
- package/dist/chunks/hosted-tasksets-V24IBVJX.js +2 -0
- package/dist/chunks/human-review-6V6EMNVN.js +2 -0
- package/dist/chunks/{import-OBAKUJPM.js → import-SI24Z7EF.js} +2 -2
- package/dist/chunks/{learning-CRR6NRPN.js → learning-LAXMGWSQ.js} +1 -1
- package/dist/chunks/learning-Y3UKNUGE.js +2 -0
- package/dist/chunks/local-harness-improvement-runtime-3YJQRYXC.js +2 -0
- package/dist/chunks/local-harness-taskset-review-XQHQ6JCR.js +2 -0
- package/dist/chunks/{model-projects-HP4DELCP.js → model-projects-6YWVD2TS.js} +1 -1
- package/dist/chunks/opchat-SV67HVMX.js +3 -0
- package/dist/chunks/opchat-bounded-chat-KLMIYSZZ.js +2 -0
- package/dist/chunks/organizations-OZZFX7RG.js +2 -0
- package/dist/chunks/{profile-3WZJ65CT.js → profile-TD5U3INY.js} +1 -1
- package/dist/chunks/project-action-payload-TK6G4VMC.js +2 -0
- package/dist/chunks/project-agent-FFXPNXCO.js +2 -0
- package/dist/chunks/published-experiment-source-SDXUVPE7.js +2 -0
- package/dist/chunks/refiner-profile-service-56VYLZQJ.js +2 -0
- package/dist/chunks/{runtime-XP4DEGR3.js → runtime-Q7JUJO4D.js} +2 -2
- package/dist/chunks/sandbox-command-4BCUDAED.js +2 -0
- package/dist/chunks/{sandbox-template-YFMHEMUQ.js → sandbox-template-GOY7QQUY.js} +1 -1
- package/dist/chunks/saved-work-M6PUHKCC.js +2 -0
- package/dist/chunks/{send-turn-D3GTSSHI.js → send-turn-YLY3YNEQ.js} +1 -1
- package/dist/chunks/setup-RMZ2BHLM.js +2 -0
- package/dist/chunks/{src-GQPWOPYA.js → src-C3ZUESMK.js} +1 -1
- package/dist/chunks/src-MT4B43TD.js +424 -0
- package/dist/chunks/standalone-experiment-turn-owner-TW5MTWIO.js +2 -0
- package/dist/chunks/store-chat-resources-IRHBW2EC.js +2 -0
- package/dist/chunks/{store-continual-support-reviews-VVRQO2JK.js → store-continual-support-reviews-3KK42L4I.js} +1 -1
- package/dist/chunks/store-conversation-serving-IVURK52V.js +2 -0
- package/dist/chunks/{store-create-improve-2XI36AET.js → store-create-improve-UTCLBXF2.js} +1 -1
- package/dist/chunks/{store-datasets-UFY422NG.js → store-datasets-4AQOVAQY.js} +1 -1
- package/dist/chunks/store-evaluation-results-PK2P3IMH.js +7 -0
- package/dist/chunks/{store-harness-workspaces-SGUEYDO2.js → store-harness-workspaces-YEXB4IRV.js} +1 -1
- package/dist/chunks/store-human-review-O4BVHP25.js +7 -0
- package/dist/chunks/store-learned-preference-migration-validation-44SVX6YB.js +2 -0
- package/dist/chunks/{store-learning-BFOT4QVT.js → store-learning-SIUQIY5C.js} +1 -1
- package/dist/chunks/{store-learning-credentials-DYTMWQTC.js → store-learning-credentials-BUHR7SN6.js} +1 -1
- package/dist/chunks/store-local-experiments-BHVTKPPE.js +97 -0
- package/dist/chunks/store-model-batch-review-RVAYUVK2.js +2 -0
- package/dist/chunks/{store-model-configuration-NJFWSYSA.js → store-model-configuration-6L3OYXF4.js} +1 -1
- package/dist/chunks/store-model-project-preparation-AAEKCF6V.js +2 -0
- package/dist/chunks/store-modification-recordings-LCPK6K2T.js +9 -0
- package/dist/chunks/{store-preference-comparison-MZAYONCK.js → store-preference-comparison-5YVIQNVB.js} +1 -1
- package/dist/chunks/{store-sidebar-file-bookmarks-J3JEVAYR.js → store-sidebar-file-bookmarks-WLMYDA4E.js} +1 -1
- package/dist/chunks/{store-sidebar-preferences-2JHTFXJK.js → store-sidebar-preferences-AFMYIDWT.js} +1 -1
- package/dist/chunks/{store-subagents-PUBQVWSU.js → store-subagents-KFPVSTRO.js} +1 -1
- package/dist/chunks/{store-task-inbox-3BREANOX.js → store-task-inbox-L6IQTY26.js} +1 -1
- package/dist/chunks/{store-task-inventory-5HRZCDUT.js → store-task-inventory-QWS2C656.js} +1 -1
- package/dist/chunks/store-taskset-drafts-FRFL6ITK.js +9 -0
- package/dist/chunks/{store-training-S3FXWLT6.js → store-training-FYXZU2FE.js} +1 -1
- package/dist/chunks/{store-training-jobs-2LCXPA7G.js → store-training-jobs-3N3VKPIY.js} +1 -1
- package/dist/chunks/{store-training-models-7AMKS7ZW.js → store-training-models-VOFVGPZR.js} +1 -1
- package/dist/chunks/{taskset-PLKWRT4X.js → taskset-UDDLFYKV.js} +1 -1
- package/dist/chunks/taskset-catalog-RZYEBCRQ.js +2 -0
- package/dist/chunks/taskset-packages-T6B6HYKZ.js +2 -0
- package/dist/chunks/taskset-packages-WMG5DUBN.js +2 -0
- package/dist/chunks/{teams-bot-VQXUA7U4.js → teams-bot-YCUTDDDC.js} +1 -1
- package/dist/chunks/tool-learning-ZQ6NSJ5K.js +2 -0
- package/dist/chunks/training-5NT2YB2L.js +2 -0
- package/dist/chunks/training-5UMT45UL.js +2 -0
- package/dist/chunks/training-UY6KRG4M.js +2 -0
- package/dist/chunks/{training-error-LQKCOQDJ.js → training-error-WF463UNZ.js} +1 -1
- package/dist/chunks/{training-hardware-ESXRWUIK.js → training-hardware-UWQCRDMV.js} +1 -1
- package/dist/chunks/training-hosted-CKSDRVL6.js +2 -0
- package/dist/chunks/training-hosted-alphaedit-HSMRDJTD.js +2 -0
- package/dist/chunks/training-hosted-decision-7JALOU6O.js +2 -0
- package/dist/chunks/training-hosted-engram-SXO75MFG.js +2 -0
- package/dist/chunks/{training-hosted-learning-WQ2IP5FP.js → training-hosted-learning-E2N32YU5.js} +1 -1
- package/dist/chunks/training-hosted-modification-comparison-TXFDJFTG.js +2 -0
- package/dist/chunks/training-hosted-neuron-training-J42WK4EH.js +2 -0
- package/dist/chunks/training-hosted-serving-report-BAEABGJH.js +2 -0
- package/dist/chunks/training-hosted-steering-T556BUBG.js +2 -0
- package/dist/chunks/training-model-start-P3PXDWNT.js +2 -0
- package/dist/chunks/web-search-ZEKJHZW4.js +2 -0
- package/dist/chunks/{workspaces-MCS2AQX6.js → workspaces-EK62ANTB.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/index.js +1 -1
- package/dist/sandbox/runtime-handle.d.ts +3 -5
- package/dist/sandbox/sandbox-instance-client.d.ts +11 -5
- package/dist/sandbox/types/billing.d.ts +140 -6
- package/dist/sandbox/types/io.d.ts +3 -0
- package/dist/sandbox/types/responses.d.ts +11 -1
- package/dist/sandbox/types/snapshots.d.ts +52 -3
- package/dist/sandbox-template/manifest.js +1 -1
- package/dist/skills/manifest.json +3 -3
- package/dist/skills/openpond-cli/references/experiments-and-training.md +461 -1
- package/dist/web/assets/App-CCuh99JW.js +54 -0
- package/dist/web/assets/{AppDialog-BvskhHE9.js → AppDialog-CxjDHVk9.js} +1 -1
- package/dist/web/assets/AppTerminalPanel-CKJIVpKa.js +2 -0
- package/dist/web/assets/{AppToastContext-D2788RqX.js → AppToastContext-EpiT1dHs.js} +1 -1
- package/dist/web/assets/AppsView-BsMyPX_3.js +1 -0
- package/dist/web/assets/{AttachmentTypeIcon-DVluUHuc.js → AttachmentTypeIcon-BXvZy5gB.js} +1 -1
- package/dist/web/assets/BrowserSidebar-BIIV4aq4.js +1 -0
- package/dist/web/assets/{CartesianChart-DdBZ69lI.js → CartesianChart-brqLBqnF.js} +1 -1
- package/dist/web/assets/ChatTimelineEntry-CwZbn16X.js +8 -0
- package/dist/web/assets/{CollaborationTabs-ba6WupeJ.js → CollaborationTabs-BU4uc4tZ.js} +1 -1
- package/dist/web/assets/{CommandMenu-D7wTaEgl.js → CommandMenu-DkWpXR55.js} +1 -1
- package/dist/web/assets/CommunityView-CsSxJZGn.js +1 -0
- package/dist/web/assets/{ComposerAttachments-aO90qXYz.js → ComposerAttachments-BdJGCYzI.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-BPUJBSyS.js → ComposerCreateImproveStrip-CWy0j1vv.js} +1 -1
- package/dist/web/assets/{ConversationImportsSettings-Bo836wKJ.js → ConversationImportsSettings-DCmiakbZ.js} +1 -1
- package/dist/web/assets/DatasetReviewImport-DEnF_pGu.js +1 -0
- package/dist/web/assets/ExperimentTrainingDataWorkspace-WhwQ0QBi.js +2 -0
- package/dist/web/assets/{FilePagePreview-C6wIp6uX.js → FilePagePreview-BRhhz99q.js} +2 -2
- package/dist/web/assets/{GetStartedView-CxMv8q-h.js → GetStartedView-CLVD-qEi.js} +1 -1
- package/dist/web/assets/{GettingStartedDialog-CEb0cS-o.js → GettingStartedDialog-CMxaAMg-.js} +1 -1
- package/dist/web/assets/HostedModelLearningReview-Cn-j-rDo.js +1 -0
- package/dist/web/assets/HostedModelLearningSettings-VNBvf38S.js +1 -0
- package/dist/web/assets/{HtmlVisual-CCuUkYT8.js → HtmlVisual-D5y2WG9L.js} +10 -10
- package/dist/web/assets/LabModelVersionDetailPage-BxRmYD6h.js +1 -0
- package/dist/web/assets/{TrainingRunLineage-PXzWR65d.css → LabModelWorkspace-DOrgCk9Z.css} +1 -1
- package/dist/web/assets/LabModelWorkspace-u2Ulm_z4.js +1 -0
- package/dist/web/assets/{LabSkillSidebar-CFROlATQ.js → LabSkillSidebar-C7IceJTJ.js} +1 -1
- package/dist/web/assets/LabsRoute-C9Y0GU34.css +1 -0
- package/dist/web/assets/LabsRoute-CbztQaEf.js +74 -0
- package/dist/web/assets/LearningBatchesPage-B1NZTBSv.css +1 -0
- package/dist/web/assets/LearningBatchesPage-CJqgZNvM.js +26 -0
- package/dist/web/assets/MainChatThread-DNMfrrRq.js +2 -0
- package/dist/web/assets/{MainPane-BOWkynGB.css → MainPane-BZlNLfTM.css} +1 -1
- package/dist/web/assets/MainPane-CQQxSDPS.js +13 -0
- package/dist/web/assets/ModelProjectPageHeader-Dge19aE1.js +1 -0
- package/dist/web/assets/NativeSetupTerminal-D4JnbpyD.js +2 -0
- package/dist/web/assets/{NativeSkillSidebar-MAJWS4mL.js → NativeSkillSidebar-Jzx1BeKV.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-MQiUBVx3.js → NewProjectDialog-DcnGzEd9.js} +1 -1
- package/dist/web/assets/{OutputsPage-DpF-aRTu.js → OutputsPage-Cmk15Vt_.js} +1 -1
- package/dist/web/assets/{PageChrome-8gH2hyDb.js → PageChrome-Cz_fCqtn.js} +1 -1
- package/dist/web/assets/{ProjectsPage-BQ98oGyu.js → ProjectsPage-BZ3Eo3Mz.js} +1 -1
- package/dist/web/assets/RightChatPanelStack-C6H2vU9N.js +1 -0
- package/dist/web/assets/RightSidebarHomePanel-BfMMVkM1.js +1 -0
- package/dist/web/assets/{ScheduledWorkPage-CGCqZz_H.js → ScheduledWorkPage-CAkSwM0T.js} +1 -1
- package/dist/web/assets/{SettingsView-CqpMFLxy.js → SettingsView-DvQXGw3_.js} +3 -3
- package/dist/web/assets/{TasksetDraftEditorPrimitives-DJvIvzBb.js → TasksetDraftEditorPrimitives-JuU1k8vr.js} +1 -1
- package/dist/web/assets/TeamChatView-DmHjr8W9.js +1 -0
- package/dist/web/assets/{TerminalOverlay-D--M876l.js → TerminalOverlay-DlaM9d8F.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-DDUoHQHU.js → TrainingCreationPanel-ClpylNsr.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-CwLXn3Z7.js → TrainingDraftPanel-6tH2xSDj.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-CGwPregx.js → UsageSettingsSection-CzDqxOYM.js} +2 -2
- package/dist/web/assets/WorkSidebarPanel-CY-AHZ4-.js +1 -0
- package/dist/web/assets/WorkspaceDiffPanel-B4e0lyF7.js +11 -0
- package/dist/web/assets/WorkspaceEnvironmentMenu-D01ZkZZF.js +35 -0
- package/dist/web/assets/{WorkspaceFileLocation-D-ctFM4d.js → WorkspaceFileLocation-C5s_njZb.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-CQ28j3R7.js → WorkspaceGitDialogs-DjPZ6KIh.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-BrZs6-EW.js → WorkspaceMonacoEditor-CC4sfOiU.js} +3 -3
- package/dist/web/assets/{WorkspacePdfPreview-CU6PSjjN.js → WorkspacePdfPreview-vszQqFa4.js} +2 -2
- package/dist/web/assets/{WorkspacePresentationPreview-IjXVXpIy.js → WorkspacePresentationPreview-DQTvhaRD.js} +1 -1
- package/dist/web/assets/api-client-DJRVOFzS.js +1 -0
- package/dist/web/assets/{app-models-CKXrDTEU.js → app-models-BUdzQbXo.js} +1 -1
- package/dist/web/assets/bot-Doyx3T4j.js +1 -0
- package/dist/web/assets/{browser-sidebar-links-D9v2cyJa.js → browser-sidebar-links-PVPCrsDJ.js} +1 -1
- package/dist/web/assets/chat-resources-Beh5lB36.js +1 -0
- package/dist/web/assets/chevron-down-DX1hzujj.js +1 -0
- package/dist/web/assets/chevron-right-DHN0y3KC.js +1 -0
- package/dist/web/assets/chevron-up-_QrW88NF.js +1 -0
- package/dist/web/assets/{chunk-TLSP5JKG-BrrVo5rJ.js → chunk-3BYFS4RO-ztZjcMmt.js} +1 -1
- package/dist/web/assets/chunk-AG6UJ3DI-D9KZjTYP.js +1 -0
- package/dist/web/assets/chunk-C3TS766N-ppRhs95p.js +1 -0
- package/dist/web/assets/chunk-GCUWJUUM-Dy6oUNJ6.js +9 -0
- package/dist/web/assets/chunk-GS5HEE4M-C0RLeIsy.js +1 -0
- package/dist/web/assets/{chunk-H3JZ3P5T-CzpTARDY.js → chunk-H3JZ3P5T-DolwEJXo.js} +2 -2
- package/dist/web/assets/chunk-Q4RGCEOI-Cr-dg4Nk.js +1 -0
- package/dist/web/assets/client-DwZ92xtu.js +1 -0
- package/dist/web/assets/{client-choice-storage-DUWsS4X0.js → client-choice-storage-DitqKiIT.js} +1 -1
- package/dist/web/assets/cloud-upload-HdzNTgr2.js +1 -0
- package/dist/web/assets/common-BWVSBnpX.js +1 -0
- package/dist/web/assets/copy-DTQhoBNg.js +1 -0
- package/dist/web/assets/create-pipeline-DsZzNkt9.js +1 -0
- package/dist/web/assets/{cssMode-SclUkqPt.js → cssMode-BRTtfXxU.js} +1 -1
- package/dist/web/assets/dataset-workspaces-BTPi71mz.js +1 -0
- package/dist/web/assets/external-link-H1629UU6.js +1 -0
- package/dist/web/assets/folder-open-CAGdWOrr.js +1 -0
- package/dist/web/assets/folder-plus-C14cs2mE.js +1 -0
- package/dist/web/assets/git-commit-horizontal-DFUfuVvF.js +1 -0
- package/dist/web/assets/{htmlMode-X3mQtOeh.js → htmlMode-BVaCcL76.js} +1 -1
- package/dist/web/assets/icons-Bk2b68aC.js +1 -0
- package/dist/web/assets/image-0DPVY6Ev.js +1 -0
- package/dist/web/assets/{index-LXNhSUEL.js → index-B6XX_0h3.js} +2 -2
- package/dist/web/assets/info-C8b_tafZ.js +1 -0
- package/dist/web/assets/{intake-contracts-wCkD2ErR.js → intake-contracts-B8JZKYwb.js} +1 -1
- package/dist/web/assets/{jsonMode-BoKiIdHd.js → jsonMode-BCKKQmmV.js} +1 -1
- package/dist/web/assets/loader-circle-y-SSPwpk.js +1 -0
- package/dist/web/assets/{lspLanguageFeatures-CO2mzpy1.js → lspLanguageFeatures-DozmNUOx.js} +1 -1
- package/dist/web/assets/maximize-2-CByk9-zN.js +1 -0
- package/dist/web/assets/message-square-C889vRqm.js +1 -0
- package/dist/web/assets/{monaco.contribution-wacA5FjV.js → monaco.contribution-B9q6qbbo.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CVe3mWSY.js → monaco.contribution-BITdsRbn.js} +2 -2
- package/dist/web/assets/{monaco.contribution-hrusiaZi.js → monaco.contribution-BqA-XZ44.js} +2 -2
- package/dist/web/assets/{monaco.contribution-C7CAQIKF.js → monaco.contribution-DxAV1oS5.js} +2 -2
- package/dist/web/assets/monitor-BtxlcLuI.js +1 -0
- package/dist/web/assets/paperclip-BeIdaspf.js +1 -0
- package/dist/web/assets/{pdf-Ct3M2mVw.js → pdf-perlzwEB.js} +1 -1
- package/dist/web/assets/play-CHXXdkuO.js +1 -0
- package/dist/web/assets/plus-DFFWjhPw.js +1 -0
- package/dist/web/assets/{ponder-desktop-D-zB6X4L.js → ponder-desktop-Ca-9KggQ.js} +1 -1
- package/dist/web/assets/presentation-0bzvu6_u.js +1 -0
- package/dist/web/assets/{profile-ref-CCxrOCio.js → profile-ref-D8lxL7dW.js} +1 -1
- package/dist/web/assets/{python-C0-pUUAU.js → python-B9hOnkOI.js} +1 -1
- package/dist/web/assets/refresh-cw-D61-Ozk3.js +1 -0
- package/dist/web/assets/{requests-DjSt-duM.js → requests-DmeUYik4.js} +1 -1
- package/dist/web/assets/reward-checks-DJJZYgf8.js +7 -0
- package/dist/web/assets/save-iEMNZoPe.js +1 -0
- package/dist/web/assets/schemas-Brv9Vmnk.js +64 -0
- package/dist/web/assets/settings-BC-bzgk6.js +21 -0
- package/dist/web/assets/settings-lists-C84qxFmP.js +5 -0
- package/dist/web/assets/square-BE_4JMR3.js +1 -0
- package/dist/web/assets/square-terminal-Djpzo2Qs.js +1 -0
- package/dist/web/assets/{submit-issue-command-Gk3RKrY-.js → submit-issue-command-HfKzyxg5.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-BnYUBgZB.js → toggleHighContrast-ClsXu39R.js} +1 -1
- package/dist/web/assets/training-DWfghwfZ.js +1 -0
- package/dist/web/assets/{training-model-data-CxR3xpmK.js → training-model-data-CIysl8wH.js} +4 -4
- package/dist/web/assets/{tsMode-BVNyOY8h.js → tsMode-nbmaMc-D.js} +1 -1
- package/dist/web/assets/upload-C6ug8RD-.js +1 -0
- package/dist/web/assets/{useAccountSettings-4_XfwJQi.js → useAccountSettings-Dr9h4Qz_.js} +1 -1
- package/dist/web/assets/{useAgentInventory-CVuamyT3.js → useAgentInventory-ByCk2JAv.js} +1 -1
- package/dist/web/assets/useChatContextSelection-C0eMm2g6.js +1 -0
- package/dist/web/assets/{useLocalAgentSchedules-CmwN4ohy.js → useLocalAgentSchedules-Do0y_leJ.js} +1 -1
- package/dist/web/assets/useQuery-D2MQ7e5U.js +1 -0
- package/dist/web/assets/wifi-off-Dr-CapyW.js +1 -0
- package/dist/web/assets/work-outputs-D_8TovAK.js +1 -0
- package/dist/web/assets/{workers-CjtQ2aBD.js → workers-DKvM2NdM.js} +1 -1
- package/dist/web/assets/x-Jx2jlP9u.js +1 -0
- package/dist/web/assets/{yaml-N1KUjBZ8.js → yaml-C02vq4ar.js} +1 -1
- package/dist/web/index.html +1 -1
- package/docs/command-reference.md +104 -3
- package/package.json +1 -1
- package/dist/chunks/account-context-TIJOM22A.js +0 -12
- package/dist/chunks/actions-command-BYPLSGZL.js +0 -2
- package/dist/chunks/app-server-evaluations-5YZUFXQ2.js +0 -2
- package/dist/chunks/app-server-harness-services-N5F5QVZI.js +0 -2
- package/dist/chunks/app-server-runtime-HJ2N57DL.js +0 -2
- package/dist/chunks/apps-WJTW64NW.js +0 -2
- package/dist/chunks/chunk-263WS3TB.js +0 -2
- package/dist/chunks/chunk-27JGS3KB.js +0 -12
- package/dist/chunks/chunk-2UZHLO2V.js +0 -23
- package/dist/chunks/chunk-2W22IXHB.js +0 -2
- package/dist/chunks/chunk-46RMTR2Z.js +0 -2
- package/dist/chunks/chunk-4JJ4RYIB.js +0 -6
- package/dist/chunks/chunk-4NN5OLKW.js +0 -161
- package/dist/chunks/chunk-543QHE3D.js +0 -2
- package/dist/chunks/chunk-5QOFUGYQ.js +0 -2
- package/dist/chunks/chunk-5ZNE43XC.js +0 -10
- package/dist/chunks/chunk-6IS5OLI5.js +0 -2
- package/dist/chunks/chunk-7HAGSE7L.js +0 -2
- package/dist/chunks/chunk-AXYAEWWA.js +0 -2
- package/dist/chunks/chunk-B7XJBP4U.js +0 -2
- package/dist/chunks/chunk-BBIA24GD.js +0 -10
- package/dist/chunks/chunk-CJDGLPNX.js +0 -4
- package/dist/chunks/chunk-DAEUVT2I.js +0 -6
- package/dist/chunks/chunk-FCXDPVGJ.js +0 -3
- package/dist/chunks/chunk-FE2ENE3U.js +0 -2
- package/dist/chunks/chunk-H6EUFJJK.js +0 -2
- package/dist/chunks/chunk-IOSBGCRT.js +0 -2
- package/dist/chunks/chunk-IXZ5ZGIL.js +0 -12
- package/dist/chunks/chunk-K6DB5QWG.js +0 -2
- package/dist/chunks/chunk-LI56PPCN.js +0 -2
- package/dist/chunks/chunk-OE2OOWEQ.js +0 -2
- package/dist/chunks/chunk-OYIFH2OM.js +0 -2
- package/dist/chunks/chunk-QOUOU7FE.js +0 -22
- package/dist/chunks/chunk-R5GRESW3.js +0 -2
- package/dist/chunks/chunk-TERKCK4I.js +0 -2
- package/dist/chunks/chunk-TS5HNRZB.js +0 -2
- package/dist/chunks/chunk-V3KEG6MI.js +0 -2
- package/dist/chunks/chunk-WGISITX6.js +0 -4
- package/dist/chunks/chunk-XD4ZIQZ2.js +0 -2
- package/dist/chunks/chunk-XHU4BZQY.js +0 -13
- package/dist/chunks/chunk-ZWEY66RT.js +0 -2
- package/dist/chunks/cli-HV32F7HD.js +0 -2
- package/dist/chunks/connected-app-executor-DFHWNMRM.js +0 -2
- package/dist/chunks/connected-evidence-WOM6N5HO.js +0 -2
- package/dist/chunks/core-commands-GWRHH53F.js +0 -2
- package/dist/chunks/dataset-preparation-authoring-WJ2XEUO7.js +0 -4
- package/dist/chunks/datasets-XIMF54QN.js +0 -2
- package/dist/chunks/desktop-test-HF42V2EP.js +0 -3
- package/dist/chunks/dist-T6ES2TSM.js +0 -2
- package/dist/chunks/evaluation-coordination-WZT6FDMS.js +0 -2
- package/dist/chunks/experiment-improvements-H35VS6XZ.js +0 -2
- package/dist/chunks/experiments-F54C32EE.js +0 -2
- package/dist/chunks/experiments-signal-ONIGTGYR.js +0 -2
- package/dist/chunks/host-profile-evaluation-tools-LMCJ3MDJ.js +0 -2
- package/dist/chunks/host-profile-external-dataset-4HOXANWK.js +0 -2
- package/dist/chunks/hosted-app-server-composition-Y64A2A2B.js +0 -2
- package/dist/chunks/hosted-experiment-improvement-B2V2WIUI.js +0 -3
- package/dist/chunks/hosted-harness-runtime-C7I4KSDK.js +0 -2
- package/dist/chunks/hosted-profile-candidate-CXPVEEYQ.js +0 -3
- package/dist/chunks/hosted-profile-compiler-FGCI2VRW.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-control-INNUYMBD.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-inspection-UPTBRYMS.js +0 -3
- package/dist/chunks/hosted-profile-evaluation-preparation-TIQSVKLQ.js +0 -3
- package/dist/chunks/hosted-tasksets-7VMYOTIO.js +0 -2
- package/dist/chunks/human-review-7XC77NQP.js +0 -2
- package/dist/chunks/learning-3XDGIYUL.js +0 -2
- package/dist/chunks/local-harness-improvement-runtime-UIKQSAMM.js +0 -2
- package/dist/chunks/local-harness-taskset-review-6KJN3EQL.js +0 -2
- package/dist/chunks/opchat-NWYWWIA7.js +0 -3
- package/dist/chunks/opchat-bounded-chat-ICURZM6R.js +0 -2
- package/dist/chunks/organizations-7DBQGCCV.js +0 -2
- package/dist/chunks/project-action-payload-7DRABTHY.js +0 -2
- package/dist/chunks/project-agent-AXJOWXRU.js +0 -2
- package/dist/chunks/published-experiment-source-YBBPLNF2.js +0 -2
- package/dist/chunks/refiner-profile-service-ATEFPF5O.js +0 -2
- package/dist/chunks/sandbox-command-CF2PJCFX.js +0 -2
- package/dist/chunks/saved-work-3OAVRBH3.js +0 -2
- package/dist/chunks/setup-RHIMFI2Y.js +0 -2
- package/dist/chunks/src-V236S6MV.js +0 -424
- package/dist/chunks/standalone-experiment-turn-owner-CDRMGLWW.js +0 -2
- package/dist/chunks/store-chat-resources-P4EKCLSY.js +0 -2
- package/dist/chunks/store-conversation-serving-YFEZYQD3.js +0 -2
- package/dist/chunks/store-evaluation-results-VBH4R2U7.js +0 -7
- package/dist/chunks/store-human-review-RFCVZ3HP.js +0 -7
- package/dist/chunks/store-learned-preference-migration-validation-FNBGGZU6.js +0 -2
- package/dist/chunks/store-local-experiments-XPXGYXNM.js +0 -97
- package/dist/chunks/store-model-batch-review-J2L5JQV2.js +0 -2
- package/dist/chunks/store-model-project-preparation-OCLIFKI2.js +0 -2
- package/dist/chunks/store-taskset-drafts-BNKUVHPA.js +0 -9
- package/dist/chunks/taskset-packages-SXBLYHSP.js +0 -2
- package/dist/chunks/taskset-packages-V5T4V7YN.js +0 -2
- package/dist/chunks/tool-learning-47XQKELE.js +0 -2
- package/dist/chunks/training-7VQNCOGH.js +0 -2
- package/dist/chunks/training-VKLPNCMC.js +0 -2
- package/dist/chunks/training-hosted-NNE6BP6S.js +0 -2
- package/dist/chunks/training-hosted-serving-report-VZ4SMLMG.js +0 -2
- package/dist/chunks/training-model-start-G7YDZ7ZG.js +0 -2
- package/dist/chunks/web-search-56QRZGPR.js +0 -2
- package/dist/web/assets/App-DmEA-Lia.js +0 -53
- package/dist/web/assets/AppTerminalPanel-ScQKJV4z.js +0 -2
- package/dist/web/assets/AppsView-B1uNg9IQ.js +0 -1
- package/dist/web/assets/BrowserSidebar-DfVQoJHn.js +0 -1
- package/dist/web/assets/ChatTimelineEntry-Bbc6HRks.js +0 -8
- package/dist/web/assets/CommunityView-mO58f2B0.js +0 -1
- package/dist/web/assets/HostedModelLearningReview-BQIS7hkd.js +0 -1
- package/dist/web/assets/HostedModelLearningSettings-BQ-YeFMT.js +0 -1
- package/dist/web/assets/LabModelVersionDetailPage-BkHeVbAx.js +0 -1
- package/dist/web/assets/LabsRoute-CE45yAXJ.css +0 -1
- package/dist/web/assets/LabsRoute-YA9YckKj.js +0 -101
- package/dist/web/assets/MainChatThread-DpyPgGKW.js +0 -2
- package/dist/web/assets/MainPane-WOeodByM.js +0 -10
- package/dist/web/assets/NativeSetupTerminal-fmG2c65K.js +0 -2
- package/dist/web/assets/RightChatPanelStack-Bs7A4dLs.js +0 -1
- package/dist/web/assets/RightSidebarHomePanel-C-D4kba2.js +0 -1
- package/dist/web/assets/TeamChatView-DjmIaLO1.js +0 -1
- package/dist/web/assets/TrainingRunLineage-CtYe1KGX.js +0 -1
- package/dist/web/assets/WorkSidebarPanel-C6wWuo7U.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-JDOUmrC-.js +0 -11
- package/dist/web/assets/WorkspaceEnvironmentMenu-sfL5LZeB.js +0 -35
- package/dist/web/assets/api-client-Dgz-fOMl.js +0 -1
- package/dist/web/assets/bot-Cd761lRF.js +0 -1
- package/dist/web/assets/chat-resources-BUDXdoG0.js +0 -1
- package/dist/web/assets/chevron-down-DEbd6Ek-.js +0 -1
- package/dist/web/assets/chevron-right-DLYNg_Oq.js +0 -1
- package/dist/web/assets/chevron-up-DFJJccDl.js +0 -1
- package/dist/web/assets/chunk-GHPCQXG5-DKDBSd8H.js +0 -9
- package/dist/web/assets/chunk-GJRXJL6G-luaxRTYI.js +0 -1
- package/dist/web/assets/chunk-JDQVAG3R-C0-rh1aR.js +0 -1
- package/dist/web/assets/chunk-XMVSQIK4-BBU7r_NH.js +0 -1
- package/dist/web/assets/client-BNjO4Xi8.js +0 -1
- package/dist/web/assets/cloud-upload-CoM1FGeB.js +0 -1
- package/dist/web/assets/common-CFsO2ppZ.js +0 -1
- package/dist/web/assets/copy-BGOhV6Pk.js +0 -1
- package/dist/web/assets/create-pipeline-DRR0Qeec.js +0 -1
- package/dist/web/assets/createLucideIcon-Bv-_eGcE.js +0 -1
- package/dist/web/assets/external-link-CVXsNeO3.js +0 -1
- package/dist/web/assets/folder-open-MnOmh19D.js +0 -1
- package/dist/web/assets/folder-plus-BRddLBtO.js +0 -1
- package/dist/web/assets/git-commit-horizontal-Bm4rkXug.js +0 -1
- package/dist/web/assets/icons-CZxmQtZs.js +0 -1
- package/dist/web/assets/image-BViGUAiq.js +0 -1
- package/dist/web/assets/info-DYPIbKKD.js +0 -1
- package/dist/web/assets/loader-circle-JFgFNsP5.js +0 -1
- package/dist/web/assets/maximize-2-DXZCQO0b.js +0 -1
- package/dist/web/assets/message-square-cOCAL8J1.js +0 -1
- package/dist/web/assets/models-route-CWcJuOd0.js +0 -1
- package/dist/web/assets/monitor-B35XSAvn.js +0 -1
- package/dist/web/assets/paperclip-CKgDxioG.js +0 -1
- package/dist/web/assets/play-DzqLr7fM.js +0 -1
- package/dist/web/assets/plus-Ddp1vXnw.js +0 -1
- package/dist/web/assets/presentation-B0S9v7ib.js +0 -1
- package/dist/web/assets/refresh-cw-D45mW-vs.js +0 -1
- package/dist/web/assets/reward-checks-D139zwha.js +0 -7
- package/dist/web/assets/save-Gu4R_82E.js +0 -1
- package/dist/web/assets/schemas-C9IwV7NS.js +0 -64
- package/dist/web/assets/settings-DdonLCIN.js +0 -21
- package/dist/web/assets/settings-lists-CFHFtO0D.js +0 -5
- package/dist/web/assets/square-Dqduqyyu.js +0 -1
- package/dist/web/assets/square-terminal-DS3zwi6X.js +0 -1
- package/dist/web/assets/training-QBuGBGJd.js +0 -2
- package/dist/web/assets/upload-ABSJxuUM.js +0 -1
- package/dist/web/assets/useQuery-CCjwL8VI.js +0 -1
- package/dist/web/assets/wifi-off-DGJH7Pke.js +0 -1
- package/dist/web/assets/work-outputs-CnbRtTLg.js +0 -1
- package/dist/web/assets/x-B-_zJVOZ.js +0 -1
- /package/dist/chunks/{chunk-SFR32TMJ.js → chunk-JXLDEYRW.js} +0 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as $,b as C}from"./chunk-2LJCJOJ7.js";import{b as y,c as w,e as O}from"./chunk-JCLTFDVW.js";import{a as n}from"./chunk-FTQLQJQV.js";function v(r){return{list:n((e={})=>r.listSandboxRuntimes(e),"list"),create:n(e=>r.createSandboxRuntime(e),"create"),handle:n((e,t=null)=>r.sandboxRuntime(e,t),"handle"),get:n(e=>r.getSandboxRuntime(e),"get"),createSandbox:n((e,t={},o={})=>r.createSandboxRuntimeSandbox(e,t,o),"createSandbox"),updateStatus:n((e,t)=>r.updateSandboxRuntimeStatus(e,t),"updateStatus"),events:n(e=>r.listSandboxRuntimeEvents(e),"events"),event:n((e,t)=>r.emitSandboxRuntimeEvent(e,t),"event"),checkpoint:n((e,t={})=>r.checkpointSandboxRuntime(e,t),"checkpoint"),promote:n((e,t,o={})=>r.promoteSandboxRuntime(e,t,o),"promote"),preserveSource:n((e,t={},o={})=>r.preserveSandboxRuntimeSource(e,t,o),"preserveSource")}}n(v,"createSandboxRuntimeNamespace");function A(r){return{list:n((e={})=>r.list(e),"list"),create:n(e=>r.create(e),"create"),get:n(e=>r.get(e),"get"),pricing:n(()=>r.pricing(),"pricing"),costs:n((e={})=>r.costs(e),"costs")}}n(A,"createSandboxNamespace");function j(r){return{list:n(e=>r.listProjects(e),"list"),upsert:n(e=>r.upsertProject(e),"upsert"),upsertGitRemote:n(e=>r.upsertProjectGitRemote(e),"upsertGitRemote"),get:n((e,t)=>r.getProject(e,t),"get"),update:n((e,t)=>r.updateProject(e,t),"update"),sync:n((e,t)=>r.syncProject(e,t),"sync"),ensureGitRemote:n((e,t)=>r.ensureProjectGitRemote(e,t),"ensureGitRemote"),getGitRemote:n((e,t)=>r.ensureProjectGitRemote(e,t),"getGitRemote"),git:n((e,t)=>r.ensureProjectGitRemote(e,t),"git"),uploadSource:n((e,t)=>r.uploadProjectSource(e,t),"uploadSource"),archive:n((e,t)=>r.archiveProject(e,t),"archive")}}n(j,"createSandboxProjectNamespace");function T(r){return{get:n(e=>r.getHostedProfile(e),"get"),status:n(e=>r.getHostedProfile(e),"status"),ensureHosted:n(e=>r.ensureHostedProfile(e),"ensureHosted"),push:n(e=>r.pushHostedProfile(e),"push")}}n(T,"createSandboxProfileNamespace");function k(r){return{list:n(e=>r.listAgents(e),"list"),upsert:n(e=>r.upsertAgent(e),"upsert"),get:n((e,t)=>r.getAgent(e,t),"get"),update:n((e,t)=>r.updateAgent(e,t),"update"),archive:n((e,t)=>r.archiveAgent(e,t),"archive"),run:n((e,t)=>r.runAgent(e,t),"run"),sourceDeployPlan:n((e,t)=>r.getAgentSourceDeployPlan(e,t),"sourceDeployPlan"),manifestSnapshots:n((e,t)=>r.listAgentManifestSnapshots(e,t),"manifestSnapshots"),requestSourceChecks:n((e,t)=>r.requestAgentSourceChecks(e,t),"requestSourceChecks"),configureSourceSetup:n((e,t)=>r.configureAgentSourceSetup(e,t),"configureSourceSetup"),publishSource:n((e,t)=>r.publishAgentSource(e,t),"publishSource")}}n(k,"createSandboxAgentNamespace");function E(r,e,t=null){let o=n(async(a={},d={})=>{let f=await r.getSandboxRuntime(e);return f.sandboxId?r.get(f.sandboxId):r.createSandboxRuntimeSandbox(e,a,d).then(m=>m.sandbox)},"currentSandbox"),s=n(async(a={},d={})=>{let f=await r.getSandboxRuntime(e);if(!f.sandboxId)return r.createSandboxRuntimeSandbox(e,a,d).then(h=>h.sandbox);let m=await r.get(f.sandboxId);return m.state==="stopped"?r.start(m.id,d).then(h=>h.sandbox):m.state==="archived"?r.restore(m.id).then(h=>h.sandbox):m.state==="deleted"||m.state==="error"?r.createSandboxRuntimeSandbox(e,a,d).then(h=>h.sandbox):m},"resume");return{id:e,initial:t,get:n(()=>r.getSandboxRuntime(e),"get"),sandbox:o,resume:s,createSandbox:n((a={},d={})=>r.createSandboxRuntimeSandbox(e,a,d),"createSandbox"),status:n(async a=>{if(typeof a!="string")return r.updateSandboxRuntimeStatus(e,a);let d=await r.getSandboxRuntime(e);return r.updateSandboxRuntimeStatus(e,{status:a,expectedVersion:d.version})},"status"),events:n(()=>r.listSandboxRuntimeEvents(e),"events"),event:n(a=>r.emitSandboxRuntimeEvent(e,a),"event"),recordCommit:n((a,d={})=>r.emitSandboxRuntimeEvent(e,{...d,type:d.type??"git.commit",commitSha:a}),"recordCommit"),checkpointHint:n((a={})=>r.emitSandboxRuntimeEvent(e,{type:"workflow.checkpoint_hint",summary:a.summary??a.reason??"Workflow checkpoint hint",payload:{...a.payload,reason:a.reason??null},artifactRefs:a.artifactRefs,lifecycleHint:{kind:"checkpoint",reason:a.reason??null}}),"checkpointHint"),waitForUser:n(async(a={})=>{await r.emitSandboxRuntimeEvent(e,{type:"workflow.waiting_for_user",summary:a.summary??a.reason??"Waiting for user",payload:{...a.payload,reason:a.reason??null},lifecycleHint:{kind:"waiting_for_user",reason:a.reason??null}});let d=await r.getSandboxRuntime(e);return d.status==="waiting_for_user"?d:r.updateSandboxRuntimeStatus(e,{status:"waiting_for_user",expectedVersion:d.version,summary:a.summary??a.reason,metadata:{workflowWaitForUserReason:a.reason??null}})},"waitForUser"),keepAlive:n((a={})=>{let d=D(a);return r.emitSandboxRuntimeEvent(e,{type:"workflow.keepalive",summary:a.summary??a.reason??"Workflow keepalive",payload:{...a.payload,reason:a.reason??null,keepaliveUntil:d},lifecycleHint:{kind:"keepalive",reason:a.reason??null,keepaliveUntil:d}})},"keepAlive"),checkpoint:n(a=>r.checkpointSandboxRuntime(e,a),"checkpoint"),files:{write:n(async(a,d)=>r.uploadFile((await s()).id,a,d),"write"),read:n(async a=>r.downloadFile((await s()).id,a),"read"),readResponse:n(async a=>r.downloadFileResponse((await s()).id,a),"readResponse"),list:n(async(a={})=>r.listFiles((await s()).id,a),"list"),delete:n(async(a,d={})=>r.deleteFile((await s()).id,a,d),"delete"),search:n(async a=>r.searchFiles((await s()).id,a),"search"),stat:n(async a=>r.statFile((await s()).id,a),"stat"),mkdir:n(async a=>r.mkdir((await s()).id,a),"mkdir"),move:n(async a=>r.moveFile((await s()).id,a),"move")},commands:{run:n(async a=>r.exec((await s()).id,typeof a=="string"?{command:a}:a),"run")},ports:{expose:n(async a=>r.openPort((await s()).id,typeof a=="number"?{port:a}:a),"expose")},promote:n((a,d={})=>r.promoteSandboxRuntime(e,a,d),"promote"),preserveSource:n((a={},d={})=>r.preserveSandboxRuntimeSource(e,a,d),"preserveSource"),archive:n(async a=>{let d=a??(await r.getSandboxRuntime(e)).version;return r.updateSandboxRuntimeStatus(e,{status:"archived",expectedVersion:d})},"archive")}}n(E,"createSandboxRuntimeHandle");function D(r){if(r?.until instanceof Date)return r.until.toISOString();if(typeof r?.until=="string"&&r.until.trim())return new Date(r.until).toISOString();let e=typeof r?.seconds=="number"&&Number.isFinite(r.seconds)?Math.max(1,Math.trunc(r.seconds)):60;return new Date(Date.now()+e*1e3).toISOString()}n(D,"runtimeKeepaliveUntilIso");async function z(r,e={}){let t=`openpond-code-smoke-${Date.now()}`,o=`openpond-code-exec-ok:${t}`,s=`openpond-code-preview-ok:${t}`,i=`openpond-code-file-ok:${t}`,c=4173,u=null,a=null,d=!1,f=!1;try{let m=await N(r,await r.create({repo:e.repo??"https://github.com/octocat/Hello-World",resources:{cpu:e.cpu??1,memoryGb:e.memoryGb??1,diskGb:e.diskGb??8},budget:{maxUsd:e.budgetUsd??"0.05"},quotas:{maxSpendUsd:e.budgetUsd??"0.05",maxDurationSeconds:600,idleTimeoutSeconds:600,maxOpenPorts:2},metadata:{runId:t,source:"openpond-code-sandbox-smoke"}},{async:!0}));u=m.id;let h=e.expectedMppMode;if(h&&m.reservation.mpp?.mode!==h)throw new Error(`expected ${h} reservation, got ${m.reservation.mpp?.mode??"none"}`);if(!h&&!m.reservation.mpp?.mode)throw new Error("expected sandbox reservation MPP metadata");let R=await r.exec(m.id,{command:[`printf '${o}\\n'`,"test -f README && printf 'repo-clone-ok\\n'","cat > server.cjs <<'EOF'","const { createServer } = require('node:http');",`createServer((_request, response) => response.end('${s}')).listen(${c}, '0.0.0.0');`,"EOF","nohup node server.cjs > server.log 2>&1 & sleep 1"].join(`
|
|
3
|
+
`),timeoutSeconds:120});if(R.command.status!=="succeeded")throw new Error(`expected command success, got ${R.command.status}`);if(!R.command.output.includes(o))throw new Error("expected exec marker");if(await r.uploadFile(m.id,"openpond-code-smoke.txt",i),await r.downloadFile(m.id,"openpond-code-smoke.txt")!==i)throw new Error("expected file roundtrip marker");let g=null;if(e.snapshot||e.fork){let S=await r.createSnapshot(m.id,{async:!0,name:`openpond-code-smoke-${t}`,replay:{entrypoints:[{command:"cat openpond-code-smoke.txt",name:"default"}],retention:{class:"pinned"},safety:{cleanup:"delete",idleTimeoutSeconds:600,internetEgress:"block",maxDurationSeconds:600,maxSpendUsd:e.budgetUsd??"0.05",publicPreview:!1},validation:{commands:[{command:"test -f openpond-code-smoke.txt"}]}}}),{snapshot:p}=await K(r,m.id,S.snapshotJob.snapshotId);if(g=p.id,p.state!=="ready")throw new Error(`expected ready snapshot, got ${p.state}`)}if(e.fork){if(!g)throw new Error("expected snapshot id before fork");let S=await N(r,(await r.forkSnapshot(g,{budget:{maxUsd:e.budgetUsd??"0.05"},metadata:{source:"openpond-code-sandbox-smoke-fork",templateSnapshotId:g}},{async:!0})).sandbox);a=S.id;let p=await r.exec(S.id,{command:"cat openpond-code-smoke.txt",timeoutSeconds:120});if(p.command.status!=="succeeded")throw new Error(`expected fork command success, got ${p.command.status}`);if(!p.command.output.includes(i))throw new Error("expected fork snapshot marker");e.keep||(await q(r,S.id),f=!0)}let x=null;if(e.preview!==!1){let S=await r.openPort(m.id,{label:"openpond-code-smoke",port:c}),p=await fetch(S.preview.url);x=p.status;let F=await p.text();if(p.status!==200)throw new Error(`expected preview HTTP 200, got ${p.status}`);if(!F.includes(s))throw new Error("expected preview marker")}let{sandbox:M,receipts:B}=await H(r,m.id);return e.keep||(await q(r,m.id),d=!0),{deleted:d,execOutput:R.command.output.trim(),fileRoundtrip:!0,forkSandboxId:a,previewStatus:x,receiptRefs:B.map(S=>S.mpp.receiptRef??null),reservationRef:m.reservation.mpp?.reservationRef??null,runId:t,sandboxId:m.id,snapshotId:g,state:M.state}}finally{a&&!e.keep&&!f&&await L(r,a),u&&!e.keep&&!d&&await L(r,u)}}n(z,"runSandboxSmoke");async function H(r,e){try{await r.stop(e)}catch{await r.stop(e,{async:!0})}let t=await J(r,e,new Set(["stopped","deleted"]),"stop"),o=await G(r,e);if(o.length===0)throw new Error("expected receipt readback");return{sandbox:t,receipts:o}}n(H,"stopSandboxForSmoke");async function q(r,e){try{let t=await r.delete(e);if(t.state==="deleted")return t;await r.delete(e,{async:!0})}catch{await r.delete(e,{async:!0})}return J(r,e,new Set(["deleted"]),"delete")}n(q,"deleteSandboxForSmoke");async function L(r,e){try{await q(r,e)}catch{await r.delete(e,{async:!0}).catch(()=>{})}}n(L,"cleanupSandboxBestEffort");async function J(r,e,t,o){let c=Date.now()+3e5,u=await r.get(e);for(;Date.now()<c;){if(t.has(u.state))return u;if(u.state==="error")throw new Error(`sandbox ${o} failed: ${e}`);await I(3e3),u=await r.get(e)}throw new Error(`sandbox ${o} did not reach ${[...t].join("/")} before timeout: ${e} (${u.state})`)}n(J,"waitForSandboxState");async function G(r,e){let s=Date.now()+12e4,i=await r.receipts(e);for(;Date.now()<s;){if(i.length>0)return i;await I(3e3),i=await r.receipts(e)}return i}n(G,"waitForReceipts");async function N(r,e){if(e.state==="running"||e.state==="stopped")return e;if(e.state==="error")throw new Error(`sandbox create failed: ${e.id}
|
|
4
|
+
${e.logs.join(`
|
|
5
|
+
`)}`);let t=12*6e4,o=3e3,s=Date.now()+t,i=e;for(;Date.now()<s;){if(await I(o),i=await r.get(e.id),i.state==="running"||i.state==="stopped")return i;if(i.state==="error")throw new Error(`sandbox create failed: ${i.id}
|
|
6
|
+
${i.logs.join(`
|
|
7
|
+
`)}`)}throw new Error(`sandbox create did not reach running state before timeout: ${i.id} (${i.state})`)}n(N,"waitForCreateReady");async function K(r,e,t){if(!t)throw new Error("snapshot job did not return snapshot id");let o=12*6e4,s=3e3,i=Date.now()+o,c=await r.get(e);for(;Date.now()<i;){let u=c.snapshots?.find(d=>d.id===t);if(u?.state==="ready")return{sandbox:c,snapshot:u};let a=c.snapshotJobs?.find(d=>d.snapshotId===t);if(a?.status==="failed")throw new Error(`snapshot job failed: ${a.error??t}`);await I(s),c=await r.get(e)}throw new Error(`snapshot did not reach ready state before timeout: ${t}`)}n(K,"waitForSnapshotReady");function I(r){return new Promise(e=>setTimeout(e,r))}n(I,"sleep");function l(r={}){return r.async||r.respondAsync?{Prefer:"respond-async"}:void 0}n(l,"asyncRequestHeaders");async function P(r){let e=await y(r.sandboxApiUrl,r.apiKey,r.path,{timeoutMs:0,maxResponseBytes:0});if(!e.body)return;let t=e.body.getReader(),o=new TextDecoder,s="";try{for(;;){let{done:i,value:c}=await t.read();if(i)break;s+=o.decode(c,{stream:!0});let u=s.indexOf(`
|
|
8
|
+
|
|
9
|
+
`);for(;u!==-1;){let a=s.slice(0,u);s=s.slice(u+2);let d=W(a);d&&process.stdout.write(d),u=s.indexOf(`
|
|
10
|
+
|
|
11
|
+
`)}}}finally{t.releaseLock()}}n(P,"streamSandboxEventOutput");function _(r){return typeof r=="string"?{dataBase64:Buffer.from(r,"utf-8").toString("base64")}:r instanceof Uint8Array?{dataBase64:Buffer.from(r).toString("base64")}:r}n(_,"normalizePtyInput");function W(r){if(!r.includes("event: output"))return null;let e=r.split(/\r?\n/).filter(t=>t.startsWith("data: ")).map(t=>t.slice(6));if(e.length===0)return null;try{let t=JSON.parse(e.join(`
|
|
12
|
+
`));return typeof t.output=="string"?t.output:null}catch{return null}}n(W,"parseProcessOutputEvent");var b=class{static{n(this,"OpenPondSandboxInstanceClient")}apiKey;apiRootUrl;sandboxApiUrl;customEndpoint;constructor(e){this.apiKey=e.apiKey,this.customEndpoint=e.customEndpoint??!1;let t=e.sandboxApiUrl??e.baseUrl??O;this.sandboxApiUrl=$(t,{apiBaseUrl:this.customEndpoint?void 0:t}),this.apiRootUrl=C(this.sandboxApiUrl)}create(e,t={}){return this.request("",{method:"POST",...this.customEndpoint?{timeoutMs:18e4}:{},headers:l(t),body:JSON.stringify(e)}).then(o=>o.sandbox)}get(e){return this.request(`/${encodeURIComponent(e)}`).then(t=>t.sandbox)}exec(e,t){return this.request(`/${encodeURIComponent(e)}/exec`,{method:"POST",body:JSON.stringify(t)})}startProcess(e,t){return this.request(`/${encodeURIComponent(e)}/processes`,{method:"POST",body:JSON.stringify(t)})}listProcesses(e){return this.request(`/${encodeURIComponent(e)}/processes`)}getProcess(e,t,o={}){let s=new URLSearchParams;return o.since!==void 0&&s.set("since",String(Math.max(0,o.since))),this.request(`/${encodeURIComponent(e)}/processes/${encodeURIComponent(t)}${s.size>0?`?${s.toString()}`:""}`)}stopProcess(e,t){return this.request(`/${encodeURIComponent(e)}/processes/${encodeURIComponent(t)}`,{method:"DELETE"})}async streamProcessOutput(e,t,o={}){let s=new URLSearchParams;o.since!==void 0&&s.set("since",String(Math.max(0,o.since))),await P({sandboxApiUrl:this.sandboxApiUrl,apiKey:this.apiKey,path:`/${encodeURIComponent(e)}/processes/${encodeURIComponent(t)}/stream${s.size>0?`?${s.toString()}`:""}`})}startPty(e,t={}){return this.request(`/${encodeURIComponent(e)}/pty`,{method:"POST",body:JSON.stringify(t)})}listPtys(e){return this.request(`/${encodeURIComponent(e)}/pty`)}getPty(e,t,o={}){let s=new URLSearchParams;return o.since!==void 0&&s.set("since",String(Math.max(0,o.since))),this.request(`/${encodeURIComponent(e)}/pty/${encodeURIComponent(t)}${s.size>0?`?${s.toString()}`:""}`)}writePtyInput(e,t,o){return this.request(`/${encodeURIComponent(e)}/pty/${encodeURIComponent(t)}/input`,{method:"POST",body:JSON.stringify(_(o))})}stopPty(e,t){return this.request(`/${encodeURIComponent(e)}/pty/${encodeURIComponent(t)}`,{method:"DELETE"})}async streamPtyOutput(e,t,o={}){let s=new URLSearchParams;o.since!==void 0&&s.set("since",String(Math.max(0,o.since))),await P({sandboxApiUrl:this.sandboxApiUrl,apiKey:this.apiKey,path:`/${encodeURIComponent(e)}/pty/${encodeURIComponent(t)}/stream${s.size>0?`?${s.toString()}`:""}`})}uploadFile(e,t,o){return this.uploadFileBase64(e,t,Buffer.from(o,"utf-8").toString("base64"))}uploadFileBase64(e,t,o){return this.request(`/${encodeURIComponent(e)}/files`,{method:"POST",body:JSON.stringify({path:t,contentsBase64:o})})}async downloadFile(e,t){let o=await this.downloadFileResponse(e,t);return Buffer.from(o.file.contentsBase64,"base64").toString("utf-8")}downloadFileResponse(e,t){let o=typeof t=="string"?{path:t}:t,s=new URLSearchParams({path:o.path});return o.offsetBytes!==void 0&&s.set("offsetBytes",String(o.offsetBytes)),o.maxBytes!==void 0&&s.set("maxBytes",String(o.maxBytes)),this.request(`/${encodeURIComponent(e)}/files?${s.toString()}`)}listFiles(e,t={}){let o=new URLSearchParams({list:"1"});return t.path&&o.set("path",t.path),t.recursive!==void 0&&o.set("recursive",String(t.recursive)),t.maxEntries!==void 0&&o.set("maxEntries",String(t.maxEntries)),this.request(`/${encodeURIComponent(e)}/files?${o.toString()}`)}deleteFile(e,t,o={}){let s=new URLSearchParams({path:t});return o.recursive!==void 0&&s.set("recursive",String(o.recursive)),this.request(`/${encodeURIComponent(e)}/files?${s.toString()}`,{method:"DELETE"})}statFile(e,t){let o=new URLSearchParams({stat:"1",path:t});return this.request(`/${encodeURIComponent(e)}/files?${o.toString()}`)}mkdir(e,t){let o=typeof t=="string"?{path:t}:t,s=new URLSearchParams({path:o.path});return o.recursive!==void 0&&s.set("recursive",String(o.recursive)),this.request(`/${encodeURIComponent(e)}/files?${s.toString()}`,{method:"PUT"})}moveFile(e,t){let o=new URLSearchParams({fromPath:t.fromPath,toPath:t.toPath});return t.overwrite!==void 0&&o.set("overwrite",String(t.overwrite)),this.request(`/${encodeURIComponent(e)}/files?${o.toString()}`,{method:"PATCH"})}searchFiles(e,t){let o=new URLSearchParams({search:"1",query:t.query});return t.path&&o.set("path",t.path),t.maxResults!==void 0&&o.set("maxResults",String(t.maxResults)),this.request(`/${encodeURIComponent(e)}/files?${o.toString()}`)}openPort(e,t){return this.request(`/${encodeURIComponent(e)}/ports`,{method:"POST",body:JSON.stringify(t)})}createSnapshot(e,t){return this.request(`/${encodeURIComponent(e)}/snapshots`,{method:"POST",body:JSON.stringify(t)})}updateSnapshot(e,t,o){return this.request(`/${encodeURIComponent(e)}/snapshots/${encodeURIComponent(t)}`,{method:"PATCH",body:JSON.stringify(o)})}validateSnapshot(e,t,o={}){return this.request(`/${encodeURIComponent(e)}/snapshots/${encodeURIComponent(t)}/validate`,{method:"POST",body:JSON.stringify(o)})}publishSnapshot(e,t){return this.request(`/${encodeURIComponent(e)}/snapshots/${encodeURIComponent(t)}/publish`,{method:"POST"})}fork(e,t={}){return this.request(`/${encodeURIComponent(e)}/fork`,{method:"POST",body:JSON.stringify(t)})}stop(e,t={}){let o=new URLSearchParams;return t.failOnUnpreservedChanges&&o.set("failOnUnpreservedChanges","true"),this.request(`/${encodeURIComponent(e)}/stop${o.size>0?`?${o.toString()}`:""}`,{method:"POST",headers:l(t)})}start(e,t={}){return this.request(`/${encodeURIComponent(e)}/start`,{method:"POST",headers:l(t),...t.restore?{body:JSON.stringify({restore:t.restore})}:{}})}restore(e,t){return this.request(`/${encodeURIComponent(e)}/restore`,{method:"POST",...t?{body:JSON.stringify(t)}:{}})}delete(e,t={}){let o=new URLSearchParams;return t.failOnUnpreservedChanges&&o.set("failOnUnpreservedChanges","true"),this.request(`/${encodeURIComponent(e)}${o.size>0?`?${o.toString()}`:""}`,{method:"DELETE",headers:l(t)}).then(s=>s.sandbox)}receipts(e){return this.request(`/${encodeURIComponent(e)}/receipts`).then(t=>t.receipts)}logs(e){return this.request(`/${encodeURIComponent(e)}/logs`).then(t=>t.logs)}gitStatus(e){return this.request(`/${encodeURIComponent(e)}/git/status`)}gitDiff(e,t={}){return this.request(`/${encodeURIComponent(e)}/git/diff`,{method:"POST",body:JSON.stringify(t)})}gitExportPatch(e,t={}){return this.request(`/${encodeURIComponent(e)}/git/export-patch`,{method:"POST",body:JSON.stringify(t)})}gitBranch(e,t){return this.request(`/${encodeURIComponent(e)}/git/branch`,{method:"POST",body:JSON.stringify(t)})}gitCommit(e,t){return this.request(`/${encodeURIComponent(e)}/git/commit`,{method:"POST",body:JSON.stringify(t)})}gitPull(e,t={}){return this.request(`/${encodeURIComponent(e)}/git/pull`,{method:"POST",body:JSON.stringify(t)})}gitPush(e,t={}){return this.request(`/${encodeURIComponent(e)}/git/push`,{method:"POST",body:JSON.stringify(t)})}billing(e,t){let o=new URLSearchParams;return t&&(o.set("snapshotRetentionTtlSeconds",String(t.snapshotRetentionTtlSeconds)),o.set("snapshotRetentionClass",t.snapshotRetentionClass)),this.request(`/${encodeURIComponent(e)}/billing${o.size?`?${o}`:""}`)}pricing(){return this.request("/pricing")}costs(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.agentId&&t.set("agentId",e.agentId),this.request(`/costs${t.size>0?`?${t.toString()}`:""}`)}integrationLeases(e){return this.request(`/${encodeURIComponent(e)}/integrations`)}attachIntegrationConnection(e,t){return this.request(`/${encodeURIComponent(e)}/integrations`,{method:"POST",body:JSON.stringify(t)})}removeIntegrationLease(e,t){return this.request(`/${encodeURIComponent(e)}/integrations`,{method:"DELETE",body:JSON.stringify({leaseId:t})})}async request(e,t={}){let o=await y(this.sandboxApiUrl,this.apiKey,e,this.customEndpoint?{...t,explicitBearerAuth:!0,redirect:"error"}:t);return w(o,"Sandbox request")}async requestApiRoot(e,t={}){let o=await y(this.apiRootUrl,this.apiKey,e,this.customEndpoint?{...t,explicitBearerAuth:!0,redirect:"error"}:t);return w(o,"OpenPond API request")}};var U=class extends b{static{n(this,"OpenPondSandboxClient")}runtimes=v(this);sandboxes=A(this);profile=T(this);projects=j(this);agents=k(this);list(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.agentId&&t.set("agentId",e.agentId),this.request(t.size>0?`?${t.toString()}`:"").then(o=>o.sandboxes)}listSecrets(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),this.requestApiRoot(`/sandbox-secrets${t.size>0?`?${t.toString()}`:""}`).then(o=>o.secrets)}getSecret(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),this.requestApiRoot(`/sandbox-secrets/${encodeURIComponent(e)}${o.size>0?`?${o.toString()}`:""}`).then(s=>s.secret)}createSecret(e){return this.requestApiRoot("/sandbox-secrets",{method:"POST",body:JSON.stringify(e)}).then(t=>t.secret)}rotateSecret(e,t){let o=new URLSearchParams;t.teamId&&o.set("teamId",t.teamId);let{teamId:s,...i}=t;return this.requestApiRoot(`/sandbox-secrets/${encodeURIComponent(e)}/rotate${o.size>0?`?${o.toString()}`:""}`,{method:"POST",body:JSON.stringify(i)}).then(c=>c.secret)}attachSecret(e,t){let o=new URLSearchParams;t.teamId&&o.set("teamId",t.teamId);let{teamId:s,...i}=t;return this.requestApiRoot(`/sandbox-secrets/${encodeURIComponent(e)}/attach${o.size>0?`?${o.toString()}`:""}`,{method:"POST",body:JSON.stringify(i)}).then(c=>c.secret)}revokeSecret(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),this.requestApiRoot(`/sandbox-secrets/${encodeURIComponent(e)}/revoke${o.size>0?`?${o.toString()}`:""}`,{method:"POST"}).then(s=>s.secret)}deleteSecret(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),this.requestApiRoot(`/sandbox-secrets/${encodeURIComponent(e)}${o.size>0?`?${o.toString()}`:""}`,{method:"DELETE"}).then(s=>s.secret)}snapshotCatalog(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.agentId&&t.set("agentId",e.agentId),e.q&&t.set("q",e.q),e.kind&&t.set("kind",e.kind),e.replayState&&t.set("replayState",e.replayState),e.visibility&&t.set("visibility",e.visibility),e.tag&&t.set("tag",e.tag),e.useCase&&t.set("useCase",e.useCase),e.limit&&t.set("limit",String(e.limit)),this.request(`/catalog/snapshots${t.size>0?`?${t.toString()}`:""}`)}listSandboxRuntimes(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.agentId&&t.set("agentId",e.agentId),this.requestApiRoot(`/runtimes${t.size>0?`?${t.toString()}`:""}`).then(o=>o.runtimes)}listProjects(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/projects?${t.toString()}`).then(o=>o.projects)}upsertProject(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/projects?${t.toString()}`,{method:"POST",body:JSON.stringify(e)}).then(o=>o.project)}getHostedProfile(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/profile?${t.toString()}`).then(o=>o.profile)}ensureHostedProfile(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/profile/ensure?${t.toString()}`,{method:"POST"}).then(o=>{if(!o.profile)throw new Error("hosted_profile_missing");return o.profile})}pushHostedProfile(e){let t=new URLSearchParams({teamId:e.teamId}),{teamId:o,...s}=e;return this.requestApiRoot(`/profile/push?${t.toString()}`,{method:"POST",body:JSON.stringify(s)})}async upsertProjectGitRemote(e){let t=await this.upsertProject(e);return this.ensureProjectGitRemote(t.id,{teamId:e.teamId})}getProject(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/projects/${encodeURIComponent(e)}?${o.toString()}`).then(s=>s.project)}syncProject(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/projects/${encodeURIComponent(e)}/sync?${o.toString()}`,{method:"POST"}).then(s=>s.project)}ensureProjectGitRemote(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/projects/${encodeURIComponent(e)}/git?${o.toString()}`,{method:"POST"})}uploadProjectSource(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/projects/${encodeURIComponent(e)}/source?${o.toString()}`,{method:"POST",body:JSON.stringify(i)}).then(c=>c.project)}updateProject(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/projects/${encodeURIComponent(e)}?${o.toString()}`,{method:"PATCH",body:JSON.stringify(i)}).then(c=>c.project)}archiveProject(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/projects/${encodeURIComponent(e)}?${o.toString()}`,{method:"DELETE"}).then(s=>s.project)}listAgents(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/agents?${t.toString()}`).then(o=>o.agents)}upsertAgent(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/agents?${t.toString()}`,{method:"POST",body:JSON.stringify(e)}).then(o=>o.agent)}getAgent(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/agents/${encodeURIComponent(e)}?${o.toString()}`).then(s=>s.agent)}archiveAgent(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/agents/${encodeURIComponent(e)}?${o.toString()}`,{method:"DELETE"}).then(s=>s.agent)}updateAgent(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/agents/${encodeURIComponent(e)}?${o.toString()}`,{method:"PATCH",body:JSON.stringify(i)}).then(c=>c.agent)}runAgent(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/agents/${encodeURIComponent(e)}/run?${o.toString()}`,{method:"POST",headers:{Prefer:"respond-async"},body:JSON.stringify(i)})}getAgentSourceDeployPlan(e,t){let o=new URLSearchParams({teamId:t.teamId});return this.requestApiRoot(`/agents/${encodeURIComponent(e)}/source/deploy-plan?${o.toString()}`).then(s=>s.deployPlan)}listAgentManifestSnapshots(e,t){let o=new URLSearchParams({teamId:t.teamId});return t.limit!==void 0&&o.set("limit",String(t.limit)),this.requestApiRoot(`/agents/${encodeURIComponent(e)}/source/manifest-snapshots?${o.toString()}`).then(s=>s.manifestSnapshots)}requestAgentSourceChecks(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/agents/${encodeURIComponent(e)}/source/checks?${o.toString()}`,{method:"POST",body:JSON.stringify(i),timeoutMs:900*1e3})}configureAgentSourceSetup(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/agents/${encodeURIComponent(e)}/source/setup?${o.toString()}`,{method:"POST",body:JSON.stringify(i)})}publishAgentSource(e,t){let o=new URLSearchParams({teamId:t.teamId}),{teamId:s,...i}=t;return this.requestApiRoot(`/agents/${encodeURIComponent(e)}/source/publish?${o.toString()}`,{method:"POST",body:JSON.stringify(i)})}getMicrosoftTeamsBotOverview(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/teams/bot/overview?${t.toString()}`)}bindMicrosoftTeamsBotConversation(e){return this.requestApiRoot("/teams/bot/bindings",{method:"POST",body:JSON.stringify(e)})}rebindMicrosoftTeamsBotConversation(e,t){return this.requestApiRoot(`/teams/bot/bindings/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)})}unlinkMicrosoftTeamsBotConversation(e){return this.requestApiRoot(`/teams/bot/bindings/${encodeURIComponent(e.bindingId)}`,{method:"DELETE",body:JSON.stringify({teamId:e.teamId})})}sendMicrosoftTeamsBotDiagnostic(e){return this.requestApiRoot("/teams/bot/diagnostics",{method:"POST",body:JSON.stringify(e)})}sendMicrosoftTeamsBotDiagnosticRun(e){return this.requestApiRoot("/teams/bot/diagnostics/run",{method:"POST",body:JSON.stringify(e)})}createSandboxRuntime(e){return this.requestApiRoot("/runtimes",{method:"POST",body:JSON.stringify(e)}).then(t=>t.runtime)}sandboxRuntime(e,t=null){return E(this,e,t)}getSandboxRuntime(e){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}`).then(t=>t.runtime)}createSandboxRuntimeSandbox(e,t={},o={}){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/sandbox`,{method:"POST",headers:l(o),body:JSON.stringify(t)})}updateSandboxRuntimeStatus(e,t){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/status`,{method:"PATCH",body:JSON.stringify(t)}).then(o=>o.runtime)}listSandboxRuntimeEvents(e){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/events`)}emitSandboxRuntimeEvent(e,t){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/events`,{method:"POST",body:JSON.stringify(t)})}checkpointSandboxRuntime(e,t){return this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/checkpoints`,{method:"POST",body:JSON.stringify(t)}).then(o=>o.runtime)}promoteSandboxRuntime(e,t,o={}){let s=new URLSearchParams;return o.teamId&&s.set("teamId",o.teamId),this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/promote${s.size>0?`?${s.toString()}`:""}`,{method:"POST",body:JSON.stringify(t)})}preserveSandboxRuntimeSource(e,t={},o={}){let s=new URLSearchParams;return o.teamId&&s.set("teamId",o.teamId),this.requestApiRoot(`/runtimes/${encodeURIComponent(e)}/preserve-source${s.size>0?`?${s.toString()}`:""}`,{method:"POST",body:JSON.stringify(t)})}forkSnapshot(e,t={},o={}){let s=new URLSearchParams;t.teamId&&s.set("teamId",t.teamId),t.projectId&&s.set("projectId",t.projectId),o.async&&s.set("async","1");let{teamId:i,projectId:c,...u}=t;return this.request(`/catalog/snapshots/${encodeURIComponent(e)}/fork${s.size>0?`?${s.toString()}`:""}`,{method:"POST",headers:o.async?{Prefer:"respond-async"}:void 0,body:JSON.stringify({...u,snapshotId:e})})}templates(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.q&&t.set("q",e.q),e.name&&t.set("name",e.name),e.version&&t.set("version",e.version),e.visibility&&t.set("visibility",e.visibility),e.tag&&t.set("tag",e.tag),e.useCase&&t.set("useCase",e.useCase),e.limit&&t.set("limit",String(e.limit)),this.request(`/templates${t.size>0?`?${t.toString()}`:""}`)}publishedSnapshots(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.q&&t.set("q",e.q),e.name&&t.set("name",e.name),e.version&&t.set("version",e.version),e.visibility&&t.set("visibility",e.visibility),e.tag&&t.set("tag",e.tag),e.useCase&&t.set("useCase",e.useCase),e.limit&&t.set("limit",String(e.limit)),this.request(`/published-snapshots${t.size>0?`?${t.toString()}`:""}`).then(o=>{let s=o.publishedSnapshots??o.templates;return{...o,templates:s,publishedSnapshots:s}})}launchTemplate(e){let t=new URLSearchParams;e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId);let{teamId:o,projectId:s,...i}=e;return this.request(`/templates/launch${t.size>0?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(i)})}runPublishedSnapshot(e){let t=new URLSearchParams;e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId);let{teamId:o,projectId:s,...i}=e;return this.request(`/published-snapshots/launch${t.size>0?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(i)}).then(c=>{let u=c.publishedSnapshot??c.template;return{...c,template:u,publishedSnapshot:u}})}listSchedules(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.sourceSandboxId&&t.set("sourceSandboxId",e.sourceSandboxId),this.request(`/schedules${t.size>0?`?${t.toString()}`:""}`)}createSchedule(e){let t=new URLSearchParams;e.projectId&&t.set("projectId",e.projectId);let{projectId:o,...s}=e;return this.request(`/schedules${t.size>0?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(s)})}getSchedule(e){return this.request(`/schedules/${encodeURIComponent(e)}`)}updateSchedule(e,t){return this.request(`/schedules/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)})}deleteSchedule(e){return this.request(`/schedules/${encodeURIComponent(e)}`,{method:"DELETE"})}listScheduleRuns(e,t={}){let o=new URLSearchParams;return t.limit!==void 0&&o.set("limit",String(t.limit)),this.request(`/schedules/${encodeURIComponent(e)}/runs${o.size>0?`?${o.toString()}`:""}`)}runScheduleNow(e,t={}){return this.request(`/schedules/${encodeURIComponent(e)}/run`,{method:"POST",body:JSON.stringify(t)})}listTemplateBuilds(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/sandbox-template-builds?${t.toString()}`).then(o=>o.builds)}createTemplateBuild(e){return this.requestApiRoot("/sandbox-template-builds",{method:"POST",body:JSON.stringify(e)}).then(t=>t.build)}getTemplateBuild(e){return this.requestApiRoot(`/sandbox-template-builds/${encodeURIComponent(e)}`).then(t=>t.build)}getTemplateBuildLogs(e){return this.requestApiRoot(`/sandbox-template-builds/${encodeURIComponent(e)}/logs`)}cancelTemplateBuild(e){return this.requestApiRoot(`/sandbox-template-builds/${encodeURIComponent(e)}/cancel`,{method:"POST"}).then(t=>t.build)}listPublishedSnapshotBuilds(e){let t=new URLSearchParams({teamId:e.teamId});return this.requestApiRoot(`/published-snapshot-builds?${t.toString()}`).then(o=>o.builds)}createPublishedSnapshotBuild(e){return this.requestApiRoot("/published-snapshot-builds",{method:"POST",body:JSON.stringify(e)}).then(t=>t.build)}getPublishedSnapshotBuild(e){return this.requestApiRoot(`/published-snapshot-builds/${encodeURIComponent(e)}`).then(t=>t.build)}getPublishedSnapshotBuildLogs(e){return this.requestApiRoot(`/published-snapshot-builds/${encodeURIComponent(e)}/logs`)}cancelPublishedSnapshotBuild(e){return this.requestApiRoot(`/published-snapshot-builds/${encodeURIComponent(e)}/cancel`,{method:"POST"}).then(t=>t.build)}listOrganizations(){return this.requestApiRoot("/organizations").then(e=>e.organizations??e.teams??[])}createOrganization(e){return this.requestApiRoot("/organizations",{method:"POST",body:JSON.stringify(e)}).then(t=>t.organization)}getOrganization(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}`).then(t=>t.organization)}updateOrganization(e,t){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}`,{method:"PATCH",body:JSON.stringify(t)}).then(o=>o.organization)}listOrganizationMembers(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/members`).then(t=>t.members)}upsertOrganizationMember(e,t){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/members`,{method:"POST",body:JSON.stringify(t)}).then(o=>o.member)}getOrganizationMcpServer(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/mcp-server`).then(t=>t.mcpServer)}generateOrganizationMcpServer(e,t={}){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/mcp-server`,{method:"POST",body:JSON.stringify(t)}).then(o=>o.mcpServer)}rotateOrganizationMcpServer(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/mcp-server/rotate`,{method:"POST"}).then(t=>t.mcpServer)}disableOrganizationMcpServer(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/mcp-server/disable`,{method:"POST"}).then(t=>t.mcpServer)}enableOrganizationMcpServer(e){return this.requestApiRoot(`/organizations/${encodeURIComponent(e)}/mcp-server/enable`,{method:"POST"}).then(t=>t.mcpServer)}startReplay(e){let t=new URLSearchParams;e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId);let{teamId:o,projectId:s,...i}=e;return this.requestApiRoot(`/sandbox-replays${t.size>0?`?${t.toString()}`:""}`,{method:"POST",body:JSON.stringify(i)})}listReplays(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),this.requestApiRoot(`/sandbox-replays${t.size>0?`?${t.toString()}`:""}`)}getReplay(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),t.projectId&&o.set("projectId",t.projectId),this.requestApiRoot(`/sandbox-replays/${encodeURIComponent(e)}${o.size>0?`?${o.toString()}`:""}`)}getReplayLogs(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),t.projectId&&o.set("projectId",t.projectId),this.requestApiRoot(`/sandbox-replays/${encodeURIComponent(e)}/logs${o.size>0?`?${o.toString()}`:""}`)}getReplayArtifacts(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),t.projectId&&o.set("projectId",t.projectId),this.requestApiRoot(`/sandbox-replays/${encodeURIComponent(e)}/artifacts${o.size>0?`?${o.toString()}`:""}`)}cancelReplay(e,t={}){let o=new URLSearchParams;return t.teamId&&o.set("teamId",t.teamId),t.projectId&&o.set("projectId",t.projectId),this.requestApiRoot(`/sandbox-replays/${encodeURIComponent(e)}/cancel${o.size>0?`?${o.toString()}`:""}`,{method:"POST"})}integrationConnections(e={}){let t=new URLSearchParams;return e.teamId&&t.set("teamId",e.teamId),e.projectId&&t.set("projectId",e.projectId),e.agentId&&t.set("agentId",e.agentId),e.status&&t.set("status",e.status),this.requestApiRoot(`/integrations/connections${t.size>0?`?${t.toString()}`:""}`)}mcpServerConfig(){return{name:"openpond-sandboxes",transport:"streamable-http",url:`${this.sandboxApiUrl}/mcp`,headers:{"openpond-api-key":this.apiKey}}}smoke(e={}){return z(this,e)}};function Re(r){return new U(r)}n(Re,"createOpenPondSandboxClient");export{U as a,Re as b};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as j}from"./chunk-LI56PPCN.js";import{j as y}from"./chunk-5ZNE43XC.js";import{f as i,m as s}from"./chunk-HIQPGYVH.js";import{c as H,d as w,f as k}from"./chunk-LK77GI6M.js";import{Bb as h,Eb as I,Fb as E,oa as v,pa as g,wb as f}from"./chunk-ZY32SZ2P.js";import{A as e}from"./chunk-X2J2P5ZT.js";import{a as m}from"./chunk-FTQLQJQV.js";var A=e.object({sourcePass:i,graders:j.shape.graders,mappings:j.shape.mappings,maximumCostUsd:e.number().finite().positive().max(1e4)}).strict(),C=e.object({externalDatasetBinding:v,scoring:A.optional(),modelId:e.string().min(1).max(300),maximumCostUsd:e.number().finite().positive().max(1e4)}).strict(),R=e.object({source:e.enum(["local","github","openpond_git"]),repositoryId:e.string().trim().min(1),profileId:e.string().trim().min(1)}).strict(),n=e.string().min(1).max(240),c=e.string().regex(/^[a-f0-9]{64}$/),x=e.object({schemaVersion:e.literal("openpond.experimentImprovement.v1"),id:n,operationId:n,requestHash:c,actorId:n,teamId:n,projectId:n.nullable(),ownerWorkspaceId:n,ownerRevision:e.number().int().nonnegative(),ownerSourceRevision:e.string().min(1).max(500),baseRelease:i,profileRef:R,baseProfileSourceRevision:e.string().min(1).max(500),evidence:e.object({manifest:f,result:h}).strict(),component:e.object({kind:e.enum(["skill","workflow","agent","instruction"]),path:e.string().min(1).max(2e3),workflowId:n.optional()}).strict(),mode:e.enum(["manual","llm_assisted"]),status:e.enum(["draft","authoring_queued","authoring","frozen","testing","ready_for_review","adopting","accepted","rolled_back","declined","failed","cancelled"]),revision:e.number().int().positive(),limits:e.object({maximumCostUsd:e.number().finite().positive(),maximumAuthoringSteps:e.number().int().min(1).max(500),maximumDurationMs:e.number().int().min(1e3).max(864e5)}).strict(),authoringSteps:e.number().int().nonnegative().max(500),work:e.object({sessionId:n,turnId:n,revision:e.number().int().positive(),startedAt:e.string().datetime()}).strict().nullable(),frozen:e.object({release:i,sourceRevision:e.string().min(1).max(500),profileSourceRevision:e.string().min(1).max(500),authoringHash:c,partitionHash:c,executableSourceHash:c,protectedClosureHash:c,candidateRevision:e.number().int().positive(),diff:e.array(e.object({path:e.string(),before:c.nullable(),after:c.nullable()}).strict()).max(1e4)}).strict().nullable(),test:e.object({recipe:C,recipeHash:e.string().regex(/^[a-f0-9]{64}$/),baselineOperationId:e.string(),candidateOperationId:e.string(),cancelRequestedAt:e.string().datetime().nullable(),dispatching:e.object({kind:e.enum(["baseline","candidate"]),token:n,pid:e.number().int().positive(),processStart:e.string().nullable(),startedAt:e.string().datetime()}).strict().nullable()}).strict().nullable(),comparison:e.object({baseline:e.object({manifest:f,result:h}).strict(),candidate:e.object({manifest:f,result:h}).strict(),frozenHash:c,humanProjection:w.optional()}).strict().nullable(),adoptionIntent:e.object({operationId:n,expectedOwnerRevision:e.number().int().nonnegative(),frozenHash:c,humanProjection:w.optional()}).strict().nullable(),acceptance:i.nullable(),rollback:i.nullable(),error:e.string().max(2e3).nullable(),createdAt:e.string().datetime(),updatedAt:e.string().datetime(),contentHash:c}).strict();function D(r){let t=x.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Improvement state integrity failed.");if(I(t.evidence),t.evidence.manifest.teamId!==t.teamId||t.evidence.result.status!=="completed"||!t.evidence.result.cases.some(o=>o.status==="completed"))throw new Error("Improvement requires usable completed owner evidence.");if(t.test&&(s(t.test.recipe)!==t.test.recipeHash||g(t.test.recipe.externalDatasetBinding).profileId!==t.profileRef.profileId))throw new Error("The test recipe changed its exact selected Profile.");if(t.comparison?.humanProjection){let o=k(t.comparison.humanProjection);if(o.teamId!==t.teamId||o.projectId!==t.projectId||s(o.baseline)!==s(t.comparison.baseline)||s(o.candidate)!==s(t.comparison.candidate))throw new Error("Human comparison projection differs from its exact owner evidence.")}if(t.comparison&&(I(t.comparison.baseline),I(t.comparison.candidate),!t.frozen||t.comparison.frozenHash!==s(t.frozen)||!E(t.comparison.baseline,t.comparison.candidate).comparable))throw new Error("Improvement comparison is not bound to a comparable frozen candidate.");if(t.status==="ready_for_review"&&(!t.frozen||!t.comparison))throw new Error("Improvement is missing qualification.");if(t.status==="adopting"&&(!t.adoptionIntent||!t.frozen||t.adoptionIntent.frozenHash!==s(t.frozen)))throw new Error("Improvement adoption intent is not bound to its tested revision.");if(t.status==="accepted"&&(!t.acceptance||!t.comparison||!t.frozen))throw new Error("Improvement acceptance is missing its exact qualification receipt.");if(t.status==="rolled_back"&&(!t.acceptance||!t.rollback))throw new Error("Profile rollback is missing its durable owner receipt.");return t}m(D,"verifyExperimentImprovementState");function X(r){return D({...r,contentHash:s(r)})}m(X,"sealExperimentImprovementState");var Y=e.object({states:e.array(x).max(50),nextCursor:n.nullable()}).strict(),T=e.object({operationId:n,ownerWorkspaceId:n,expectedOwnerRevision:e.number().int().nonnegative(),baseRelease:i,profileRef:R,profileSourceRevision:e.string().min(1).max(500),projectId:n.nullable(),evidence:i,component:x.shape.component,mode:x.shape.mode,limits:x.shape.limits}).strict(),Z=e.discriminatedUnion("operation",[e.object({operation:e.literal("list"),limit:e.number().int().min(1).max(50).default(30),cursor:n.optional()}).strict(),e.object({operation:e.literal("options"),evidence:i}).strict(),e.object({operation:e.literal("start"),request:T}).strict(),e.object({operation:e.enum(["read","humanComparisonOptions"]),id:n}).strict(),e.object({operation:e.literal("instructions"),id:n}).strict(),e.object({operation:e.literal("edit"),id:n,revision:e.number().int().positive(),expectedFileHash:c,text:e.string().max(25e4)}).strict(),e.object({operation:e.literal("mode"),id:n,revision:e.number().int().positive(),mode:e.enum(["manual","llm_assisted"])}).strict(),e.object({operation:e.literal("author"),id:n,revision:e.number().int().positive(),modelId:n,prompt:e.string().min(1).max(2e4)}).strict(),e.object({operation:e.enum(["freeze","finishAuthoring","useCandidate","discard","cancel","rollback"]),id:n,revision:e.number().int().positive()}).strict(),e.object({operation:e.literal("test"),id:n,revision:e.number().int().positive(),recipe:C}).strict(),e.object({operation:e.literal("compare"),id:n,revision:e.number().int().positive(),baseline:i,candidate:i,humanSelections:H.optional()}).strict()]),S=e.object({teamId:n,evidence:i,scoring:A.optional(),profiles:e.array(e.object({id:c,name:e.string(),profileRef:R,ownerWorkspaceId:n,ownerRevision:e.number().int().nonnegative(),baseRelease:i,profileSourceRevision:e.string(),components:e.array(e.object({kind:e.enum(["skill","instruction","agent","workflow"]),path:e.string(),agentId:e.string().optional(),workflowId:e.string().optional(),label:e.string(),binding:v}).strict()).max(500)}).strict()).max(100)}).strict(),O=e.object({candidateId:n,actorId:n,teamId:n,projectId:n.nullable(),candidateRevision:e.number().int().positive(),recipeHash:c,baseline:e.object({manifest:f,result:h}).strict(),candidate:e.object({manifest:f,result:h}).strict(),contentHash:c}).strict();function U(r){let t=O.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Accepted Human discovery integrity failed.");for(let o of[t.baseline,t.candidate])if(I(o),o.manifest.teamId!==t.teamId||o.manifest.lineage?.humanProjection)throw new Error("Discovery must retain original owner evidence.");return t}m(U,"verifyExperimentImprovementHumanOptions");function ee(r,t){if(!r.test||r.test.cancelRequestedAt)throw new Error("The paired test is unavailable.");let l={candidateId:r.id,actorId:r.actorId,teamId:r.teamId,projectId:r.projectId,candidateRevision:r.revision,recipeHash:r.test.recipeHash,...t};return U({...l,contentHash:s(l)})}m(ee,"sealExperimentImprovementHumanOptions");var a=e.string().trim().min(1).max(240),d=e.string().regex(/^[a-f0-9]{64}$/),_=e.object({schemaVersion:e.literal("openpond.advancedRefinerEvaluation.v1"),operationId:a,actorId:a,teamId:a,projectId:a.nullable(),mode:e.enum(["review_quality","downstream_adaptation"]),profileRef:e.object({source:e.enum(["local","github","openpond_git"]),repositoryId:a,profileId:a}).strict(),sourceRevision:e.string().min(1).max(500),baselineRelease:i,refinerRelease:i,evidence:i,externalDatasetBinding:v,adaptationDatasetBinding:v,privateClosureHash:d,adaptationTaskIds:e.array(a).min(1).max(1e4),holdoutTaskIds:e.array(a).min(1).max(1e4),adaptationSplit:e.enum(["train","validation","test","frozen_eval"]),holdoutSplit:e.enum(["train","validation","test","frozen_eval"]),environmentPolicy:e.discriminatedUnion("kind",[e.object({kind:e.literal("resettable"),environmentHash:d}).strict(),e.object({kind:e.literal("frozen_observations"),environmentHash:d}).strict()]),maximumCostUsd:e.number().finite().positive().max(1e4),maximumDurationMs:e.number().int().min(1e3).max(864e5),maximumModelSteps:e.number().int().min(1).max(1e3),contentHash:d}).strict();function M(r){let t=_.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Advanced Refiner evaluation admission changed.");let o=g(t.externalDatasetBinding);if(o.profileId!==t.profileRef.profileId||o.protectedProfileClosureHash!==t.privateClosureHash)throw new Error("Advanced evaluation changed its Profile or protected evaluator closure.");if(t.adaptationSplit===t.holdoutSplit||new Set([...t.adaptationTaskIds,...t.holdoutTaskIds]).size!==t.adaptationTaskIds.length+t.holdoutTaskIds.length)throw new Error("Adaptation and private holdout must be disjoint ordered cases.");let p=g(t.adaptationDatasetBinding);if(p.profileId!==o.profileId||p.packageHash!==o.packageHash||s(p.dataset)!==s(o.dataset)||s(p.target)!==s(o.target)||p.protectedProfileClosureHash!==o.protectedProfileClosureHash)throw new Error("This native advanced adapter needs separate adaptation and holdout recipes from the same exact released package and target.");if(p.split!==t.adaptationSplit||o.split!==t.holdoutSplit)throw new Error("Advanced split policies differ from their exact admitted recipes.");let q=new Set(o.population.map(u=>u.taskId)),z=new Set(p.population.map(u=>u.taskId));if(t.holdoutTaskIds.some(u=>!q.has(u))||t.adaptationTaskIds.some(u=>!z.has(u)))throw new Error("Advanced evaluation selected cases outside its exact Dataset recipe.");return t}m(M,"verifyAdvancedRefinerEvaluationPin");function ce(r){return M({...r,contentHash:s(r)})}m(ce,"sealAdvancedRefinerEvaluationPin");var B=e.object({pin:_,modelId:a,profileId:a,model:y,seed:e.number().int(),reasoningEffort:e.enum(["none","off","low","medium","high","xhigh","max"]).nullable()}).strict(),V=e.discriminatedUnion("operation",[e.object({operation:e.literal("start"),request:B}).strict(),e.object({operation:e.enum(["read","cancel","resume"]),id:a}).strict(),e.object({operation:e.literal("list")}).strict()]),W=e.object({taskId:a,sourceCaseHash:d,reviewSessionId:a,reviewTurnId:a,inputHarness:i,trigger:i,decision:e.enum(["no_action","route_deterministically","queue_refiner"]),outcome:i.nullable(),proposal:i.nullable(),validations:e.array(i).max(100),grade:e.object({id:a,contentHash:d,score:e.number().min(0).max(1).nullable(),passed:e.boolean(),failureClass:e.string().nullable()}).strict(),resetComplete:e.boolean()}).strict(),$=e.object({schemaVersion:e.literal("openpond.advancedRefinerReviewReceipt.v1"),id:a,runId:a,pinHash:d,ownerActorId:a,teamId:a,privateClosureHash:d,refinerRelease:i,cases:e.array(W).min(1).max(1e4),reviewScore:e.number().min(0).max(1).nullable(),completedCases:e.number().int().nonnegative(),noActionCases:e.number().int().nonnegative(),routedCases:e.number().int().nonnegative(),proposalCases:e.number().int().nonnegative(),costUsd:e.number().finite().nonnegative().nullable(),cleanupComplete:e.boolean(),createdAt:e.string().datetime(),contentHash:d}).strict();function de(r){return $.parse({...r,contentHash:s(r)})}m(de,"sealAdvancedRefinerReviewReceipt");var P=S.shape.profiles.element,me=S.extend({profiles:e.array(P.extend({components:e.array(P.shape.components.element.extend({adaptationSplits:e.array(e.object({split:e.enum(["train","validation","test","frozen_eval"]),taskIds:e.array(a)})),environmentHash:d,resettable:e.boolean(),reviewQuality:e.boolean()}))})),refinerReleases:e.array(i),activeRefiner:i.nullable(),models:e.array(e.object({id:a,profileId:a,name:e.string(),location:e.enum(["local","hosted"])}))}),L=e.object({operation:e.literal("prepare"),evidence:i,profileOptionId:a,componentLabel:a,mode:e.enum(["review_quality","downstream_adaptation"]),adaptationSplit:e.enum(["train","validation","test","frozen_eval"]),operationId:a,refinerRelease:i,maximumCostUsd:e.number().positive(),maximumDurationMs:e.number().int().positive(),maximumModelSteps:e.number().int().positive()}).strict(),le=e.union([V,L,e.object({operation:e.literal("options"),evidence:i}).strict()]),pe=e.object({modelRequests:e.number().int().nonnegative(),knownSpendUsd:e.number().nonnegative(),totalSpendUsd:e.number().nonnegative().nullable(),heldUsd:e.number().nonnegative(),uncertainRequests:e.number().int().nonnegative()}).strict();export{C as a,x as b,D as c,X as d,Y as e,T as f,Z as g,S as h,U as i,ee as j,_ as k,M as l,ce as m,B as n,V as o,W as p,$ as q,de as r,L as s,pe as t};
|
|
2
|
+
import{a as j}from"./chunk-Y4I6CFZJ.js";import{j as y}from"./chunk-BU6MW65V.js";import{f as i,m as s}from"./chunk-HIQPGYVH.js";import{c as H,d as w,f as k}from"./chunk-LK77GI6M.js";import{Bb as h,Eb as I,Fb as E,oa as v,pa as g,wb as f}from"./chunk-ZY32SZ2P.js";import{A as e}from"./chunk-X2J2P5ZT.js";import{a as m}from"./chunk-FTQLQJQV.js";var A=e.object({sourcePass:i,graders:j.shape.graders,mappings:j.shape.mappings,maximumCostUsd:e.number().finite().positive().max(1e4)}).strict(),C=e.object({externalDatasetBinding:v,scoring:A.optional(),modelId:e.string().min(1).max(300),maximumCostUsd:e.number().finite().positive().max(1e4)}).strict(),R=e.object({source:e.enum(["local","github","openpond_git"]),repositoryId:e.string().trim().min(1),profileId:e.string().trim().min(1)}).strict(),n=e.string().min(1).max(240),c=e.string().regex(/^[a-f0-9]{64}$/),x=e.object({schemaVersion:e.literal("openpond.experimentImprovement.v1"),id:n,operationId:n,requestHash:c,actorId:n,teamId:n,projectId:n.nullable(),ownerWorkspaceId:n,ownerRevision:e.number().int().nonnegative(),ownerSourceRevision:e.string().min(1).max(500),baseRelease:i,profileRef:R,baseProfileSourceRevision:e.string().min(1).max(500),evidence:e.object({manifest:f,result:h}).strict(),component:e.object({kind:e.enum(["skill","workflow","agent","instruction"]),path:e.string().min(1).max(2e3),workflowId:n.optional()}).strict(),mode:e.enum(["manual","llm_assisted"]),status:e.enum(["draft","authoring_queued","authoring","frozen","testing","ready_for_review","adopting","accepted","rolled_back","declined","failed","cancelled"]),revision:e.number().int().positive(),limits:e.object({maximumCostUsd:e.number().finite().positive(),maximumAuthoringSteps:e.number().int().min(1).max(500),maximumDurationMs:e.number().int().min(1e3).max(864e5)}).strict(),authoringSteps:e.number().int().nonnegative().max(500),work:e.object({sessionId:n,turnId:n,revision:e.number().int().positive(),startedAt:e.string().datetime()}).strict().nullable(),frozen:e.object({release:i,sourceRevision:e.string().min(1).max(500),profileSourceRevision:e.string().min(1).max(500),authoringHash:c,partitionHash:c,executableSourceHash:c,protectedClosureHash:c,candidateRevision:e.number().int().positive(),diff:e.array(e.object({path:e.string(),before:c.nullable(),after:c.nullable()}).strict()).max(1e4)}).strict().nullable(),test:e.object({recipe:C,recipeHash:e.string().regex(/^[a-f0-9]{64}$/),baselineOperationId:e.string(),candidateOperationId:e.string(),cancelRequestedAt:e.string().datetime().nullable(),dispatching:e.object({kind:e.enum(["baseline","candidate"]),token:n,pid:e.number().int().positive(),processStart:e.string().nullable(),startedAt:e.string().datetime()}).strict().nullable()}).strict().nullable(),comparison:e.object({baseline:e.object({manifest:f,result:h}).strict(),candidate:e.object({manifest:f,result:h}).strict(),frozenHash:c,humanProjection:w.optional()}).strict().nullable(),adoptionIntent:e.object({operationId:n,expectedOwnerRevision:e.number().int().nonnegative(),frozenHash:c,humanProjection:w.optional()}).strict().nullable(),acceptance:i.nullable(),rollback:i.nullable(),error:e.string().max(2e3).nullable(),createdAt:e.string().datetime(),updatedAt:e.string().datetime(),contentHash:c}).strict();function D(r){let t=x.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Improvement state integrity failed.");if(I(t.evidence),t.evidence.manifest.teamId!==t.teamId||t.evidence.result.status!=="completed"||!t.evidence.result.cases.some(o=>o.status==="completed"))throw new Error("Improvement requires usable completed owner evidence.");if(t.test&&(s(t.test.recipe)!==t.test.recipeHash||g(t.test.recipe.externalDatasetBinding).profileId!==t.profileRef.profileId))throw new Error("The test recipe changed its exact selected Profile.");if(t.comparison?.humanProjection){let o=k(t.comparison.humanProjection);if(o.teamId!==t.teamId||o.projectId!==t.projectId||s(o.baseline)!==s(t.comparison.baseline)||s(o.candidate)!==s(t.comparison.candidate))throw new Error("Human comparison projection differs from its exact owner evidence.")}if(t.comparison&&(I(t.comparison.baseline),I(t.comparison.candidate),!t.frozen||t.comparison.frozenHash!==s(t.frozen)||!E(t.comparison.baseline,t.comparison.candidate).comparable))throw new Error("Improvement comparison is not bound to a comparable frozen candidate.");if(t.status==="ready_for_review"&&(!t.frozen||!t.comparison))throw new Error("Improvement is missing qualification.");if(t.status==="adopting"&&(!t.adoptionIntent||!t.frozen||t.adoptionIntent.frozenHash!==s(t.frozen)))throw new Error("Improvement adoption intent is not bound to its tested revision.");if(t.status==="accepted"&&(!t.acceptance||!t.comparison||!t.frozen))throw new Error("Improvement acceptance is missing its exact qualification receipt.");if(t.status==="rolled_back"&&(!t.acceptance||!t.rollback))throw new Error("Profile rollback is missing its durable owner receipt.");return t}m(D,"verifyExperimentImprovementState");function X(r){return D({...r,contentHash:s(r)})}m(X,"sealExperimentImprovementState");var Y=e.object({states:e.array(x).max(50),nextCursor:n.nullable()}).strict(),T=e.object({operationId:n,ownerWorkspaceId:n,expectedOwnerRevision:e.number().int().nonnegative(),baseRelease:i,profileRef:R,profileSourceRevision:e.string().min(1).max(500),projectId:n.nullable(),evidence:i,component:x.shape.component,mode:x.shape.mode,limits:x.shape.limits}).strict(),Z=e.discriminatedUnion("operation",[e.object({operation:e.literal("list"),limit:e.number().int().min(1).max(50).default(30),cursor:n.optional()}).strict(),e.object({operation:e.literal("options"),evidence:i}).strict(),e.object({operation:e.literal("start"),request:T}).strict(),e.object({operation:e.enum(["read","humanComparisonOptions"]),id:n}).strict(),e.object({operation:e.literal("instructions"),id:n}).strict(),e.object({operation:e.literal("edit"),id:n,revision:e.number().int().positive(),expectedFileHash:c,text:e.string().max(25e4)}).strict(),e.object({operation:e.literal("mode"),id:n,revision:e.number().int().positive(),mode:e.enum(["manual","llm_assisted"])}).strict(),e.object({operation:e.literal("author"),id:n,revision:e.number().int().positive(),modelId:n,prompt:e.string().min(1).max(2e4)}).strict(),e.object({operation:e.enum(["freeze","finishAuthoring","useCandidate","discard","cancel","rollback"]),id:n,revision:e.number().int().positive()}).strict(),e.object({operation:e.literal("test"),id:n,revision:e.number().int().positive(),recipe:C}).strict(),e.object({operation:e.literal("compare"),id:n,revision:e.number().int().positive(),baseline:i,candidate:i,humanSelections:H.optional()}).strict()]),S=e.object({teamId:n,evidence:i,scoring:A.optional(),profiles:e.array(e.object({id:c,name:e.string(),profileRef:R,ownerWorkspaceId:n,ownerRevision:e.number().int().nonnegative(),baseRelease:i,profileSourceRevision:e.string(),components:e.array(e.object({kind:e.enum(["skill","instruction","agent","workflow"]),path:e.string(),agentId:e.string().optional(),workflowId:e.string().optional(),label:e.string(),binding:v}).strict()).max(500)}).strict()).max(100)}).strict(),O=e.object({candidateId:n,actorId:n,teamId:n,projectId:n.nullable(),candidateRevision:e.number().int().positive(),recipeHash:c,baseline:e.object({manifest:f,result:h}).strict(),candidate:e.object({manifest:f,result:h}).strict(),contentHash:c}).strict();function U(r){let t=O.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Accepted Human discovery integrity failed.");for(let o of[t.baseline,t.candidate])if(I(o),o.manifest.teamId!==t.teamId||o.manifest.lineage?.humanProjection)throw new Error("Discovery must retain original owner evidence.");return t}m(U,"verifyExperimentImprovementHumanOptions");function ee(r,t){if(!r.test||r.test.cancelRequestedAt)throw new Error("The paired test is unavailable.");let l={candidateId:r.id,actorId:r.actorId,teamId:r.teamId,projectId:r.projectId,candidateRevision:r.revision,recipeHash:r.test.recipeHash,...t};return U({...l,contentHash:s(l)})}m(ee,"sealExperimentImprovementHumanOptions");var a=e.string().trim().min(1).max(240),d=e.string().regex(/^[a-f0-9]{64}$/),_=e.object({schemaVersion:e.literal("openpond.advancedRefinerEvaluation.v1"),operationId:a,actorId:a,teamId:a,projectId:a.nullable(),mode:e.enum(["review_quality","downstream_adaptation"]),profileRef:e.object({source:e.enum(["local","github","openpond_git"]),repositoryId:a,profileId:a}).strict(),sourceRevision:e.string().min(1).max(500),baselineRelease:i,refinerRelease:i,evidence:i,externalDatasetBinding:v,adaptationDatasetBinding:v,privateClosureHash:d,adaptationTaskIds:e.array(a).min(1).max(1e4),holdoutTaskIds:e.array(a).min(1).max(1e4),adaptationSplit:e.enum(["train","validation","test","frozen_eval"]),holdoutSplit:e.enum(["train","validation","test","frozen_eval"]),environmentPolicy:e.discriminatedUnion("kind",[e.object({kind:e.literal("resettable"),environmentHash:d}).strict(),e.object({kind:e.literal("frozen_observations"),environmentHash:d}).strict()]),maximumCostUsd:e.number().finite().positive().max(1e4),maximumDurationMs:e.number().int().min(1e3).max(864e5),maximumModelSteps:e.number().int().min(1).max(1e3),contentHash:d}).strict();function M(r){let t=_.parse(r),{contentHash:l,...b}=t;if(s(b)!==l)throw new Error("Advanced Refiner evaluation admission changed.");let o=g(t.externalDatasetBinding);if(o.profileId!==t.profileRef.profileId||o.protectedProfileClosureHash!==t.privateClosureHash)throw new Error("Advanced evaluation changed its Profile or protected evaluator closure.");if(t.adaptationSplit===t.holdoutSplit||new Set([...t.adaptationTaskIds,...t.holdoutTaskIds]).size!==t.adaptationTaskIds.length+t.holdoutTaskIds.length)throw new Error("Adaptation and private holdout must be disjoint ordered cases.");let p=g(t.adaptationDatasetBinding);if(p.profileId!==o.profileId||p.packageHash!==o.packageHash||s(p.dataset)!==s(o.dataset)||s(p.target)!==s(o.target)||p.protectedProfileClosureHash!==o.protectedProfileClosureHash)throw new Error("This native advanced adapter needs separate adaptation and holdout recipes from the same exact released package and target.");if(p.split!==t.adaptationSplit||o.split!==t.holdoutSplit)throw new Error("Advanced split policies differ from their exact admitted recipes.");let q=new Set(o.population.map(u=>u.taskId)),z=new Set(p.population.map(u=>u.taskId));if(t.holdoutTaskIds.some(u=>!q.has(u))||t.adaptationTaskIds.some(u=>!z.has(u)))throw new Error("Advanced evaluation selected cases outside its exact Dataset recipe.");return t}m(M,"verifyAdvancedRefinerEvaluationPin");function ce(r){return M({...r,contentHash:s(r)})}m(ce,"sealAdvancedRefinerEvaluationPin");var B=e.object({pin:_,modelId:a,profileId:a,model:y,seed:e.number().int(),reasoningEffort:e.enum(["none","off","low","medium","high","xhigh","max"]).nullable()}).strict(),V=e.discriminatedUnion("operation",[e.object({operation:e.literal("start"),request:B}).strict(),e.object({operation:e.enum(["read","cancel","resume"]),id:a}).strict(),e.object({operation:e.literal("list")}).strict()]),W=e.object({taskId:a,sourceCaseHash:d,reviewSessionId:a,reviewTurnId:a,inputHarness:i,trigger:i,decision:e.enum(["no_action","route_deterministically","queue_refiner"]),outcome:i.nullable(),proposal:i.nullable(),validations:e.array(i).max(100),grade:e.object({id:a,contentHash:d,score:e.number().min(0).max(1).nullable(),passed:e.boolean(),failureClass:e.string().nullable()}).strict(),resetComplete:e.boolean()}).strict(),$=e.object({schemaVersion:e.literal("openpond.advancedRefinerReviewReceipt.v1"),id:a,runId:a,pinHash:d,ownerActorId:a,teamId:a,privateClosureHash:d,refinerRelease:i,cases:e.array(W).min(1).max(1e4),reviewScore:e.number().min(0).max(1).nullable(),completedCases:e.number().int().nonnegative(),noActionCases:e.number().int().nonnegative(),routedCases:e.number().int().nonnegative(),proposalCases:e.number().int().nonnegative(),costUsd:e.number().finite().nonnegative().nullable(),cleanupComplete:e.boolean(),createdAt:e.string().datetime(),contentHash:d}).strict();function de(r){return $.parse({...r,contentHash:s(r)})}m(de,"sealAdvancedRefinerReviewReceipt");var P=S.shape.profiles.element,me=S.extend({profiles:e.array(P.extend({components:e.array(P.shape.components.element.extend({adaptationSplits:e.array(e.object({split:e.enum(["train","validation","test","frozen_eval"]),taskIds:e.array(a)})),environmentHash:d,resettable:e.boolean(),reviewQuality:e.boolean()}))})),refinerReleases:e.array(i),activeRefiner:i.nullable(),models:e.array(e.object({id:a,profileId:a,name:e.string(),location:e.enum(["local","hosted"])}))}),L=e.object({operation:e.literal("prepare"),evidence:i,profileOptionId:a,componentLabel:a,mode:e.enum(["review_quality","downstream_adaptation"]),adaptationSplit:e.enum(["train","validation","test","frozen_eval"]),operationId:a,refinerRelease:i,maximumCostUsd:e.number().positive(),maximumDurationMs:e.number().int().positive(),maximumModelSteps:e.number().int().positive()}).strict(),le=e.union([V,L,e.object({operation:e.literal("options"),evidence:i}).strict()]),pe=e.object({modelRequests:e.number().int().nonnegative(),knownSpendUsd:e.number().nonnegative(),totalSpendUsd:e.number().nonnegative().nullable(),heldUsd:e.number().nonnegative(),uncertainRequests:e.number().int().nonnegative()}).strict();export{C as a,x as b,D as c,X as d,Y as e,T as f,Z as g,S as h,U as i,ee as j,_ as k,M as l,ce as m,B as n,V as o,W as p,$ as q,de as r,L as s,pe as t};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{Rc as l,fe as h,fh as w,ih as f,jh as g,kh as E,lj as a,nj as I,qh as S,yj as y}from"./chunk-6D3FI2XT.js";import{c as s,f as c,h as p}from"./chunk-3M53YXEI.js";import{A as u}from"./chunk-X2J2P5ZT.js";import{a as m}from"./chunk-FTQLQJQV.js";var M=u.object({modelProjectId:a.shape.modelProjectId,request:I}).strict(),C=new Set(["hosted-decision-capability","hosted-compile-decision","hosted-prepare-decision","hosted-start-decision","hosted-cancel-decision","hosted-decision-execution","hosted-decision-executions","hosted-save-decision-model","hosted-score-decision","hosted-decision-serving","hosted-control-decision-serving"]);async function b(D){let{action:i,target:d,teamId:o,options:t,client:n,readInput:x}=D;if(i==="hosted-decision-execution"){if(!d)throw new Error("Supply the original decision execution ID.");return n.getDecisionExecution(o,d)}if(i==="hosted-decision-executions"){if(d)throw new Error("List decision executions using filters.");let e=S.parse(Object.fromEntries(Object.entries({id:s(t,"id")||void 0,projectId:s(t,"projectId")||void 0,mode:s(t,"mode")||void 0,phase:s(t,"phase")||void 0,cursor:s(t,"cursor")||void 0,limit:p(t.limit,"--limit")}).filter(([,v])=>v!==void 0)));return n.listDecisionExecutions(o,e)}let r=await x();if(i==="hosted-decision-serving"){let e=a.parse(r);return n.decisionModelServing(e.modelProjectId,{teamId:o,versionHash:e.versionHash})}if(i==="hosted-control-decision-serving"){let e=y.parse(r);if(e.request.teamId!==o)throw new Error("Use this Model's original workspace.");if(e.request.action==="activate"&&!c(t.yes))throw new Error("Activating billed decision serving capacity requires --yes.");return n.controlDecisionModelServing(e.modelProjectId,e.request)}if(i==="hosted-score-decision"){let e=M.parse(r);if(e.request.teamId!==o)throw new Error("Use this Model's original workspace.");if(!c(t.yes))throw new Error("Billed decision scoring requires --yes.");return n.scoreDecisionModel(e.modelProjectId,e.request)}if(i==="hosted-decision-capability"){let e=h.parse(r);if(e.teamId!==o)throw new Error("Use this input's original workspace.");return n.decisionExecutionCapability(e)}if(i==="hosted-compile-decision"){let e=w.parse(r);if(e.teamId!==o)throw new Error("Use this input's original workspace.");return n.compileDecisionExecution(e)}if(i==="hosted-prepare-decision"){let e=f.parse(r);if(e.teamId!==o)throw new Error("Use this input's original workspace.");return n.prepareDecisionExecution(e)}if(i==="hosted-start-decision"){let e=g.parse(r);if(e.teamId!==o)throw new Error("Use this execution's original workspace.");if(!c(t.yes))throw new Error("Starting paid decision execution requires --yes.");return n.startDecisionExecution(e)}if(i==="hosted-cancel-decision"){let e=E.parse(r);if(e.teamId!==o)throw new Error("Use this execution's original workspace.");return n.cancelDecisionExecution(e)}if(i==="hosted-save-decision-model"){let e=l.parse(r);if(e.teamId!==o)throw new Error("Use this result's original workspace.");return n.saveDecisionResultModel(e)}throw new Error("Unsupported decision command.")}m(b,"runHostedDecisionCommand");export{C as a,b};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as le,b as De,c as Be}from"./chunk-UTIELP6F.js";import{k as re,q as oe,t as se}from"./chunk-7NCM6GBN.js";import{d as ie,f as Ee,g as He,h as Oe,i as ze,l as B,n as Ve}from"./chunk-JT5YQ52I.js";import{a as Pe}from"./chunk-PAYFJHPO.js";import{i as D}from"./chunk-WD4KAKEX.js";import{a as Te}from"./chunk-2PXKSAG6.js";import{B as Ce,k as te,m as ne,oa as we,ta as Me,wa as ae}from"./chunk-BU6MW65V.js";import{H as Ae}from"./chunk-DXJC3QW7.js";import{h as je}from"./chunk-D6L6UNUQ.js";import{f as V}from"./chunk-HNQPEOJD.js";import{c as n,d as o,e as c,g as r,h as g}from"./chunk-RCT3O3HQ.js";import{A as e}from"./chunk-X2J2P5ZT.js";import{a as v}from"./chunk-FTQLQJQV.js";var L=e.string().trim().min(1).max(240),N=e.string().trim().min(1),me=e.string().trim().min(8).max(256),Le=e.record(e.string(),e.unknown()).default({}),Ct=e.enum(["created","inspecting","awaiting_source_review","awaiting_mapping","awaiting_materialization_approval","materializing","validating","ready","cancelling","cancelled","failed"]),qe=e.object({schemaVersion:e.literal("openpond.huggingFaceDatasetLocator.v1"),repositoryId:e.string().trim().regex(/^[^/\s]+\/[^/\s]+$/).max(500),repositoryUrl:e.string().url().max(2e3),requestedRevision:e.string().trim().min(1).max(256).nullable()}),wt=e.object({path:e.string().trim().min(1).max(1e3),logicalType:e.string().trim().min(1).max(500),nullable:e.boolean(),sampleValues:e.array(e.unknown()).max(5)}),Mt=e.object({configuration:e.string().trim().min(1).max(500),split:e.string().trim().min(1).max(500),rowCount:e.number().int().nonnegative().nullable(),sizeBytes:e.number().int().nonnegative().nullable()}),Pt=e.object({schemaVersion:e.literal("openpond.huggingFaceDatasetInspection.v1"),id:L,locator:qe,resolvedRevision:e.string().trim().min(7).max(256),title:e.string().trim().min(1).max(500),description:e.string().max(2e4).nullable(),declaredLicense:e.string().trim().min(1).max(500).nullable(),gated:e.boolean(),private:e.boolean(),configurations:e.array(e.string().trim().min(1).max(500)).min(1).max(1e3),splits:e.array(Mt).min(1).max(1e4),columns:e.array(wt).min(1).max(1e4),previewRows:e.array(e.record(e.string(),e.unknown())).max(25),sourceFiles:e.array(e.object({path:e.string().trim().min(1).max(2e3),configuration:e.string().trim().min(1).max(500),split:e.string().trim().min(1).max(500),revision:e.string().trim().min(7).max(256),sizeBytes:e.number().int().nonnegative().nullable(),contentHash:me.nullable()})).max(1e5),inspectedAt:N,metadata:Le}),Et=e.enum(["row_id","cluster_id","prompt","messages","demonstration","chosen","rejected","expected_output","privileged_context","reward","feedback","tag","metadata"]),Ht=e.object({sourcePath:e.string().trim().min(1).max(1e3),target:Et,transform:e.enum(["identity","string","json","messages","numeric","math_final_answer"]),policy:e.enum(["visible","privileged","metadata"]),required:e.boolean()}),Ue=e.object({schemaVersion:e.literal("openpond.datasetImportMapping.v1"),sourceSchemaHash:me,configuration:e.string().trim().min(1).max(500),upstreamSplits:e.array(e.string().trim().min(1).max(500)).min(1).max(1e3),preset:e.enum(["prompt_only","prompt_completion","messages","preference","prompt_expected_answer","prompt_privileged_solution","prompt_feedback"]),bindings:e.array(Ht).min(1).max(1e4),nullPolicy:e.enum(["reject","drop","preserve"]),invalidRowPolicy:e.enum(["reject_import","drop_with_receipt"]),splitPolicy:e.object({seed:e.number().int(),assignments:e.record(e.string(),te),validationPercent:e.number().min(0).max(100),frozenEvalPercent:e.number().min(0).max(100)}),importerVersion:e.string().trim().min(1).max(200),mappingHash:me}),Ot=e.object({phase:e.enum(["idle","metadata","download","mapping","parquet_write","verification","publish"]),completedBytes:e.number().int().nonnegative(),totalBytes:e.number().int().nonnegative().nullable(),completedRows:e.number().int().nonnegative(),totalRows:e.number().int().nonnegative().nullable(),message:e.string().trim().min(1).max(2e3).nullable()}),Ne=e.object({schemaVersion:e.literal("openpond.datasetImportJob.v1"),id:L,profileId:L,sourceKind:e.enum(["huggingface","uploaded_file"]),status:Ct,locator:qe.nullable(),inspection:Pt.nullable(),mapping:Ue.nullable(),progress:Ot,targetStorageRoot:e.string().trim().min(1).max(4e3).nullable(),tasksetId:L.nullable(),tasksetRevision:e.number().int().positive().nullable(),artifactId:L.nullable(),error:e.string().trim().min(1).max(2e4).nullable(),cancellationRequested:e.boolean(),createdAt:N,updatedAt:N,completedAt:N.nullable(),metadata:Le}),ya=e.object({profileId:L,url:e.string().trim().min(1).max(2e3)}),_a=e.object({name:e.string().trim().min(1).max(500),objective:e.string().trim().min(1).max(2e4),mapping:Ue,targetStorageRoot:e.string().trim().min(1).max(4e3).nullable(),licenseApproved:e.boolean().default(!1)});var y=e.string().trim().min(1).max(240),w=e.string().trim().min(1),$e=e.record(e.string(),e.unknown()).default({}),Fe=e.enum(["nominated","needs_review","approved_for_creation","creating","needs_task_review","baselining","ready_for_export","rejected","dismissed","retired","blocked"]),zt=e.object({id:y,kind:e.enum(["repeated_success","accepted_correction","agent_action_recurrence","outcome_linked_change","frontier_cost","expert_label","runtime_feedback"]),sourceRefIds:e.array(y).min(1).max(1e4),occurredAt:w,signature:e.string().trim().min(1).max(2e3),summary:e.string().trim().min(1).max(5e3),confidence:e.number().min(0).max(1),consented:e.boolean(),metadata:$e}),Vt=e.object({frequency:e.number().min(0).max(1),businessValue:e.number().min(0).max(1),frontierCost:e.number().min(0).max(1),signalQuality:e.number().min(0).max(1),verifiability:e.number().min(0).max(1),repeatability:e.number().min(0).max(1),privacyRisk:e.number().min(0).max(1),overall:e.number().min(0).max(1)}),Dt=e.object({tactic:Pe,eligible:e.boolean(),reasons:e.array(e.string().trim().min(1).max(5e3)).min(1).max(100),blockers:e.array(e.string().trim().min(1).max(5e3)).max(100).default([]),requiredSignals:e.array(e.string().trim().min(1).max(500)).max(100).default([]),generatedBy:e.enum(["decision_table","baseline_reassessment"])}),ce=e.object({schemaVersion:e.literal("openpond.taskCandidate.v1"),id:y,profileId:y,status:Fe,fingerprint:e.string().trim().min(1).max(512),title:e.string().trim().min(1).max(500),summary:e.string().trim().min(1).max(1e4),workflowSignature:e.string().trim().min(1).max(2e3),evidence:e.array(zt).min(1).max(1e5),scorecard:Vt,recommendation:Dt,mergedIntoId:y.nullable(),createdAt:w,updatedAt:w,metadata:$e}),q=e.object({schemaVersion:e.literal("openpond.taskMinerConfig.v1"),enabled:e.boolean().default(!1),localOnly:e.boolean().default(!0),observationWindowDays:e.number().int().min(1).max(365).default(30),minimumRecurrence:e.number().int().min(2).max(100).default(3),clustering:e.literal("hybrid_deterministic_first").default("hybrid_deterministic_first"),consentRequired:e.boolean().default(!0)}),ja=e.object({items:e.array(ce),generatedAt:w,config:q}),Ta=e.object({status:Fe.optional(),mergeIntoId:y.nullable().optional()}),Aa=e.object({profileId:y,sourceIds:e.array(y).max(1e5).default([]),sessionIds:e.array(y).max(1e5).default([]),config:q.optional()}),Ge=e.object({schemaVersion:e.literal("openpond.taskMinerRun.v1"),id:y,profileId:y,status:e.enum(["queued","running","cancelling","cancelled","succeeded","failed"]),config:q,sourceIds:e.array(y).max(1e5),sessionIds:e.array(y).max(1e5).default([]),progress:e.object({stage:e.enum(["queued","ingesting","preparing","clustering","persisting","complete"]),processedSources:e.number().int().nonnegative(),totalSources:e.number().int().nonnegative(),candidatesFound:e.number().int().nonnegative(),skippedSources:e.number().int().nonnegative().default(0)}),candidateIds:e.array(y).max(1e5),cancelRequested:e.boolean(),error:e.string().trim().min(1).max(2e4).nullable(),createdAt:w,startedAt:w.nullable(),completedAt:w.nullable(),updatedAt:w});var Bt=e.enum(["draft","active","completed","archived"]),Lt=e.enum(["draft","ready","queued","running","candidate","accepted","rejected","no_signal","failed","cancelled"]),Je=e.enum(["seed","daily_residual","rank_candidate","weekly_rollup","full_refresh"]),qt=e.enum(["base_model","previous_release","seed_release","accepted_daily_head","accepted_seed"]),Ut=e.enum(["seed_taskset","nightly_selection","daily_cohort_union","eligible_task_pool"]),Nt=e.enum(["live_client","evaluation_attempt","replay_evidence","manual"]),$t=e.object({id:n,ordinal:e.number().int().nonnegative(),label:e.string().trim().min(1).max(100),role:Je,parentRule:qt,taskSource:Ut,trainableRank:e.number().int().positive().max(1024),minimumTasks:e.number().int().nonnegative().max(1e5),maximumTasks:e.number().int().positive().max(1e5)}).strict().superRefine((t,i)=>{t.minimumTasks>t.maximumTasks&&i.addIssue({code:"custom",path:["minimumTasks"],message:"The minimum task count cannot exceed the maximum task count."});let s={seed:{parentRules:["base_model"],taskSource:"seed_taskset"},daily_residual:{parentRules:["previous_release","accepted_daily_head"],taskSource:"nightly_selection"},rank_candidate:{parentRules:["seed_release"],taskSource:"eligible_task_pool"},weekly_rollup:{parentRules:["seed_release","accepted_seed"],taskSource:"daily_cohort_union"},full_refresh:{parentRules:["base_model"],taskSource:"eligible_task_pool"}},{parentRules:l,taskSource:f}=s[t.role];l.includes(t.parentRule)||i.addIssue({code:"custom",path:["parentRule"],message:`${t.role} requires parent rule ${l.join(" or ")}.`}),t.taskSource!==f&&i.addIssue({code:"custom",path:["taskSource"],message:`${t.role} requires task source ${f}.`}),t.ordinal===0&&t.role!=="seed"&&i.addIssue({code:"custom",path:["role"],message:"The first series entry must be the seed."})}),Ft=e.object({id:n,version:e.number().int().positive(),requireCheckpoint:e.boolean(),requireAppliedOptimizerUpdate:e.boolean(),minimumCurrentCohortMeanImprovement:e.number().finite(),maximumRetainedMeanRegression:e.number().finite().nonnegative(),blockCriticalInvariantRegression:e.boolean(),automaticDailyAdvancement:e.boolean()}).strict(),We=e.object({schemaVersion:e.literal("openpond.modelComparisonSeries.v1"),id:n,profileId:n,modelProjectId:n,name:e.string().trim().min(1).max(500),objective:e.string().trim().min(1).max(2e4),status:Bt,revision:e.number().int().positive(),productionBinding:e.object({role:e.literal("chat_manual"),roleTargetId:n}).strict(),baseModel:e.object({id:n,revision:e.string().trim().min(1).max(256)}).strict(),seedTaskset:g,eligibleTaskPool:g,evaluationTasksets:e.object({development:g,retained:g,frozenFinal:g}).strict(),grader:r,benchmarkProtocol:Be.nullable().default(null),automaticEvaluation:e.object({enabled:e.boolean()}).strict().default({enabled:!1}),residualProfile:e.object({profileId:n,serializedEnvelopeRank:e.number().int().positive().max(1024),maximumEnabledRank:e.number().int().positive().max(1024),topology:e.literal("uniform_block_masked")}).strict(),schedule:e.array($t).min(1).max(1e3),scheduleSealedAt:c.nullable(),advancementPolicy:Ft,executionPolicy:e.object({startWhenReady:e.literal(!1)}).strict(),acceptedSeedEntryId:n.nullable(),acceptedDailyHeadEntryId:n.nullable(),promotedBindingId:n.nullable(),createdBy:n,createdAt:c,updatedAt:c}).strict().superRefine((t,i)=>{[...t.schedule].sort((d,j)=>d.ordinal-j.ordinal).some((d,j)=>d.ordinal!==j)&&i.addIssue({code:"custom",path:["schedule"],message:"Schedule ordinals must be unique and contiguous from zero."}),(new Set(t.schedule.map(d=>d.id)).size!==t.schedule.length||new Set(t.schedule.map(d=>d.label)).size!==t.schedule.length)&&i.addIssue({code:"custom",path:["schedule"],message:"Schedule ids and labels must be unique."}),t.residualProfile.maximumEnabledRank>t.residualProfile.serializedEnvelopeRank&&i.addIssue({code:"custom",path:["residualProfile"],message:"Maximum enabled rank cannot exceed the serialized envelope."});let l=Object.values(t.evaluationTasksets);new Set(l.map(d=>`${d.id}:${d.revision}:${d.contentHash}`)).size!==l.length&&i.addIssue({code:"custom",path:["evaluationTasksets"],message:"Development, retained, and frozen-final cohorts require distinct immutable Taskset releases."});let f=t.schedule.find(d=>d.role==="seed");if(!f||t.schedule.filter(d=>d.role==="seed").length!==1){i.addIssue({code:"custom",path:["schedule"],message:"A series requires exactly one seed entry."});return}let h=t.schedule.filter(d=>d.role==="rank_candidate");h.length===1&&i.addIssue({code:"custom",path:["schedule"],message:"A causal rank comparison requires at least two rank candidates."}),new Set(h.map(d=>d.trainableRank)).size!==h.length&&i.addIssue({code:"custom",path:["schedule"],message:"Causal rank candidates must use distinct trainable ranks."}),[f.trainableRank+t.schedule.filter(d=>d.role==="daily_residual").reduce((d,j)=>d+j.trainableRank,0),...t.schedule.filter(d=>d.role==="weekly_rollup").map(d=>f.trainableRank+d.trainableRank),...t.schedule.filter(d=>d.role==="rank_candidate").map(d=>f.trainableRank+d.trainableRank),...t.schedule.filter(d=>d.role==="full_refresh").map(d=>d.trainableRank)].some(d=>d>t.residualProfile.maximumEnabledRank)&&i.addIssue({code:"custom",path:["schedule"],message:"A declared branch exceeds the maximum enabled rank."})}),Ye=e.object({source:Nt,taskIds:e.array(n).min(1).max(1e5),observedFrom:c,observedTo:c,reviewedAt:c,reviewedBy:n,sourceTaskset:g}).strict(),Gt=Ye.extend({derivedFamilyKeys:e.array(n).min(1).max(1e5),familyDerivation:e.object({algorithm:n,sourceTasksetHash:o}).strict(),selectionHash:o}).strict(),de=e.discriminatedUnion("kind",[e.object({kind:e.literal("base_model"),id:n,revision:e.string().trim().min(1).max(256)}).strict(),e.object({kind:e.literal("model_version"),id:n,contentHash:o}).strict()]),Jt=e.object({id:n,branchOrdinal:e.number().int().nonnegative(),rank:e.number().int().positive().max(1024),offsetStart:e.number().int().nonnegative(),offsetEnd:e.number().int().positive(),optimizationRole:e.enum(["frozen","trainable"]),artifactLineageId:n.nullable()}).strict().superRefine((t,i)=>{t.offsetEnd-t.offsetStart!==t.rank&&i.addIssue({code:"custom",path:["offsetEnd"],message:"Block offsets must span exactly the declared rank."})}),Wt=e.object({disposition:e.enum(["advance","hold","no_signal"]),policy:e.object({id:n,version:e.number().int().positive()}).strict(),reasonCodes:e.array(n).min(1).max(100),summary:e.string().trim().min(1).max(5e3),decidedBy:n,decidedAt:c}).strict(),Yt=e.object({evaluationRunId:n,modelVersionId:n,taskset:g,grader:r,cohortRole:e.enum(["current","correction","sibling_verification","cumulative_known","development","retained","prior_disclosed","frozen_final"]),panelId:n.nullable().default(null),protocol:e.object({id:n,revision:e.number().int().positive(),contentHash:o}).strict().nullable().default(null)}).strict(),Kt=e.object({attemptOrdinal:e.number().int().positive(),trainingPlanId:n.nullable(),modelRunId:n.nullable(),terminalStatus:e.enum(["failed","cancelled"]),queuedAt:c.nullable(),startedAt:c.nullable(),completedAt:c}).strict(),A=e.object({seriesId:n,entryId:n,scheduleEntryId:n,ordinal:e.number().int().nonnegative(),releaseHash:o}).strict(),Ke=e.object({schemaVersion:e.literal("openpond.modelComparisonSeriesEntry.v1"),id:n,seriesId:n,profileId:n,modelProjectId:n,scheduleEntryId:n,releaseHash:o,ordinal:e.number().int().nonnegative(),label:e.string().trim().min(1).max(100),role:Je,branch:e.enum(["daily","rank_candidate","weekly_rollup","full_refresh"]),status:Lt,parent:de,taskset:g,sourceTasksets:e.array(g).min(1).max(1e3),taskSelection:Gt.nullable(),trainableRank:e.number().int().positive().max(1024),serializedEnvelopeRank:e.number().int().positive().max(1024),enabledCumulativeRank:e.number().int().positive().max(1024),trainableBlockId:n,residualBlocks:e.array(Jt).min(1).max(1024),attemptOrdinal:e.number().int().positive().default(1),priorRunAttempts:e.array(Kt).max(100).default([]),trainingPlanId:n.nullable(),modelRunId:n.nullable(),modelVersionId:n.nullable(),evaluations:e.array(Yt).max(1e5),decision:Wt.nullable(),promotionBindingId:n.nullable(),queuedAt:c.nullable(),startedAt:c.nullable(),completedAt:c.nullable(),createdAt:c,updatedAt:c}).strict().superRefine((t,i)=>{let s=[...t.residualBlocks].sort((x,k)=>x.offsetStart-k.offsetStart);s.some((x,k)=>x.offsetStart!==(k===0?0:s[k-1].offsetEnd))&&i.addIssue({code:"custom",path:["residualBlocks"],message:"Residual block offsets must be contiguous from zero."});let l=s.at(-1)?.offsetEnd??0;(l!==t.enabledCumulativeRank||l>t.serializedEnvelopeRank)&&i.addIssue({code:"custom",path:["enabledCumulativeRank"],message:"Enabled rank must match the block inventory and fit the envelope."});let f=t.residualBlocks.filter(x=>x.optimizationRole==="trainable");(f.length!==1||f[0]?.id!==t.trainableBlockId||f[0]?.rank!==t.trainableRank)&&i.addIssue({code:"custom",path:["trainableBlockId"],message:"Exactly one block must be trainable during the Run and match trainableRank."});let h=t.priorRunAttempts.map(x=>x.attemptOrdinal);(t.priorRunAttempts.length!==t.attemptOrdinal-1||h.some((x,k)=>x!==k+1))&&i.addIssue({code:"custom",path:["priorRunAttempts"],message:"Prior Run attempts must be a contiguous history before the active attempt."})}),Ea=e.object({seriesId:n,scheduleEntryId:n,taskSelection:Ye.nullable(),expectedSeriesRevision:e.number().int().positive()}).strict();var M=n.nullable(),C=e.number().int().nonnegative(),Qt=e.string().regex(/^[a-f0-9]{40}$/),Zt=e.object({name:e.string().trim().min(1).max(160),startedAt:c,completedAt:c,durationMs:e.number().nonnegative(),clock:e.enum(["monotonic","provider","wall"]),outcome:e.enum(["succeeded","failed","cancelled"])}).strict(),Qe=e.object({schemaVersion:e.literal("openpond.correlatedTelemetryReceipt.v1"),stage:e.enum(["training","evaluation","deployment","inference"]),correlation:e.object({modelRunId:M,modelVersionId:M,policyVersion:C.nullable(),taskId:M,rolloutGroupId:M,providerResourceId:M,deploymentId:M,inferenceRequestId:M}).strict(),spans:e.array(Zt).max(1e4),usage:e.object({promptTokens:C.nullable(),generatedTokens:C.nullable(),gpuSeconds:e.number().nonnegative().nullable(),workerActiveSeconds:e.number().nonnegative().nullable(),optimizerSteps:C.nullable(),rolloutGroups:C.nullable(),successfulTrajectories:C.nullable(),failedTrajectories:C.nullable(),peakGpuMemoryBytes:C.nullable(),peakGpuUtilizationPercent:e.number().min(0).max(100).nullable()}).strict(),resource:e.object({provider:n,resourceIds:e.array(n).max(1e3),gpuType:e.string().trim().min(1).max(300).nullable(),gpuCount:C.nullable(),baseProfileId:M,baseRepository:e.string().trim().min(1).max(512).nullable(),baseRevision:Qt.nullable(),adapterContentHash:o.nullable()}).strict(),cost:e.object({currency:e.literal("USD"),providerReportedUsd:e.number().nonnegative().nullable(),quotedHourlyUsd:e.number().nonnegative().nullable(),estimatedUsd:e.number().nonnegative().nullable(),methodologyVersion:e.string().trim().min(1).max(160),pricingInputs:e.record(e.string().trim().min(1).max(160),e.number().finite()),unitEstimates:e.record(e.string().trim().min(1).max(160),e.number().nonnegative())}).strict(),recordedAt:c,contentHash:o}).strict();var Xt=e.enum(["base_reference","lora_adapter"]),ue=e.object({baseModel:e.object({source:e.literal("huggingface"),repoId:n,revision:e.string().regex(/^[a-f0-9]{40}$/),configHash:o,tokenizerHash:o,licenseId:n,gated:e.boolean()}).strict(),processor:e.object({repository:n,revision:e.string().regex(/^[a-f0-9]{40}$/),configHash:o}).strict()}).strict().superRefine((t,i)=>{(t.baseModel.repoId!==t.processor.repository||t.baseModel.revision!==t.processor.revision)&&i.addIssue({code:"custom",path:["processor"],message:"Reward Model processor must match the pinned scorer base model."})}),tt=e.object({schemaVersion:e.literal("openpond.modelVersion.v1"),id:n,modelId:n,profileId:n,version:e.number().int().nonnegative(),kind:Xt,status:e.enum(["available","failed"]),baseModel:B,taskset:g,comparisonSeriesEntry:A.nullable().optional(),evaluationTasksetRef:g.nullable().optional(),releaseGraph:e.object({resolvedBundleHash:o,profileRelease:g,harnessRelease:r,agentRelease:r.nullable(),grader:e.object({id:n,contentHash:o}).strict()}).strict(),artifactLineageId:n.nullable(),adapterStatus:e.enum(["not_trained","trained"]),createdAt:c,contentHash:o}).strict().superRefine((t,i)=>{t.kind==="base_reference"&&(t.version!==0||t.adapterStatus!=="not_trained"||t.artifactLineageId!==null)&&i.addIssue({code:"custom",message:"A base-reference Model Version must be version 0 without adapter lineage."}),t.kind==="lora_adapter"&&(t.version===0||t.adapterStatus!=="trained"||!t.artifactLineageId)&&i.addIssue({code:"custom",message:"A LoRA Model Version must be version 1+ with adapter lineage."})}),nt=e.object({schemaVersion:e.literal("openpond.rewardModelVersion.v1"),id:n,modelId:n,profileId:n,version:e.number().int().positive(),role:e.literal("reward"),status:e.enum(["available","failed"]),scope:e.enum(["synthetic_smoke","human_preference"]),baseModel:B,runtime:ue.nullable().default(null),taskset:g,preferenceDatasetRelease:r,releaseGraph:e.object({resolvedBundleHash:o,profileRelease:g,harnessRelease:r,grader:e.object({id:n,contentHash:o}).strict()}).strict(),artifacts:e.object({checkpoint:r.extend({objectRef:e.string().regex(/^r2:\/\/[A-Za-z0-9._/-]+$/),files:e.array(e.object({path:e.string().trim().min(1).max(512),sizeBytes:e.number().int().positive(),sha256:o}).strict()).min(4).max(128)}).strict(),adapter:r,scalarHead:r,bucketHead:r.nullable(),processorRelease:r}).strict(),qualificationReport:r.nullable(),createdAt:c,contentHash:o}).strict(),en=e.object({schemaVersion:e.literal("openpond.rewardModelRunReceipt.v1"),provider:n,providerRunId:n,resolvedBundleHash:o,finalCheckpoint:r.extend({objectRef:e.string().regex(/^r2:\/\/[A-Za-z0-9._/-]+$/)}).strict(),adapter:r,scalarHead:r,bucketHead:r.nullable(),processorRelease:r,optimizerEvidence:r,managedExecutionReceipt:r.nullable().default(null),parameterDeltaHash:o,cleanup:e.object({computeReleased:e.boolean(),providerTerminalObserved:e.boolean()}).strict(),contentHash:o}).strict(),at=e.preprocess(t=>{if(!t||typeof t!="object"||Array.isArray(t))return t;let i=t;if(i.tasksetRelease!==void 0)return t;let s=i.taskset;if(!s||typeof s!="object"||Array.isArray(s))return t;let l=s;return typeof l.id!="string"||typeof l.contentHash!="string"?t:{...i,tasksetRelease:{id:l.id,contentHash:l.contentHash}}},e.object({schemaVersion:e.literal("openpond.rewardModelRun.v1"),id:n,rewardModelId:n,rewardModelVersionId:n.nullable(),profileId:n,role:e.literal("reward"),scope:e.enum(["synthetic_smoke","human_preference"]),status:e.enum(["prepared","running","succeeded","failed","cancelled"]),taskset:g,tasksetRelease:r,preferenceDatasetRelease:r,recipeRelease:r,destinationId:n,quote:e.object({maximumSpendUsd:e.number().positive(),hourlyCostUsd:e.number().nonnegative().nullable()}).strict(),managedRunId:n.nullable(),progress:e.object({completedSteps:e.number().int().nonnegative(),totalSteps:e.number().int().positive(),latestLoss:e.number().finite().nullable()}).strict(),receipt:en.nullable(),qualificationReport:r.nullable(),accruedSpendUsd:e.number().nonnegative().nullable(),failureOwner:e.enum(["authoring","admission","provider","runner","artifact","qualification","cleanup"]).nullable(),failure:e.string().trim().min(1).max(5e3).nullable(),startedAt:c,completedAt:c.nullable(),updatedAt:c}).strict()).superRefine((t,i)=>{t.status==="succeeded"&&!t.receipt&&i.addIssue({code:"custom",message:"A successful Reward Model Run requires a canonical receipt."}),t.status!=="succeeded"&&t.rewardModelVersionId!==null&&i.addIssue({code:"custom",message:"Only a successful Reward Model Run can publish a Reward Model Version."})}),tn=e.object({schemaVersion:e.literal("openpond.modelRunReceipt.v1"),provider:n,providerRunId:n,assignmentHash:o,resultHash:o,transcriptHash:o,traceHash:o.nullable(),resolvedBundleHash:o,artifactPath:e.string().trim().min(1).max(2e3),cleanup:e.object({computeReleased:e.boolean(),tunnelClosed:e.boolean()}).strict(),telemetry:Qe.nullable().default(null),contentHash:o}).strict(),P=e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),totalTokens:e.number().int().nonnegative(),costUsd:e.number().nonnegative().nullable()}).strict(),Ze=e.string().regex(/^(?:[a-f0-9]{40}|[a-f0-9]{64})$/),pe=e.object({phase:e.enum(["baseline","adaptation","candidate_adaptation","candidate"]),taskId:n,attemptId:n,sessionId:n.nullable(),turnId:n.nullable(),passed:e.boolean(),score:e.number().min(0).max(1).nullable(),failureClass:ie.nullable(),inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),totalTokens:e.number().int().nonnegative(),latencyMs:e.number().int().nonnegative(),costUsd:e.number().nonnegative().nullable(),startedAt:c}).strict(),Xe=e.object({targetTaskCount:e.number().int().nonnegative(),comparedTaskCount:e.number().int().nonnegative(),passedTaskCount:e.number().int().nonnegative(),failedTaskCount:e.number().int().nonnegative(),lowerTaskCount:e.number().int().nonnegative(),higherTaskCount:e.number().int().nonnegative(),unchangedTaskCount:e.number().int().nonnegative()}).strict(),it=e.object({target:e.literal("all_tasks_lower"),targetTaskCount:e.number().int().nonnegative(),comparedTaskCount:e.number().int().nonnegative(),passedTaskCount:e.number().int().nonnegative(),failedTaskCount:e.number().int().nonnegative(),lowerTaskCount:e.number().int().nonnegative(),higherTaskCount:e.number().int().nonnegative(),unchangedTaskCount:e.number().int().nonnegative(),baselineTokens:e.number().int().nonnegative(),refinedTokens:e.number().int().nonnegative(),tokenDelta:e.number().int(),tokenDeltaPercent:e.number().finite().nullable(),complete:e.boolean(),passed:e.boolean(),cohorts:e.object({adaptation:Xe,heldOut:Xe}).strict()}).strict(),be=e.object({baseline:P,adaptation:P,candidateAdaptation:P,candidate:P,refiner:P,grader:P}).strict(),nn=e.object({usage:be,observedSpendUsd:e.number().nonnegative(),attempts:e.array(pe).max(1e4)}).strict(),an=e.object({id:n,contentHash:o,artifactPath:e.string().trim().min(1).max(2e3)}).strict(),rn=e.object({schemaVersion:e.literal("openpond.modelEvaluationReceipt.v1"),benchmarkId:n,resultManifest:e.object({id:n,contentHash:o,artifactPath:e.string().trim().min(1).max(2e3)}).strict(),stages:e.object({baseline:r,adaptation:r,refiner:r,candidateAdaptation:r,candidate:r,comparison:r}).strict(),usage:be,quality:e.object({baselinePassRate:e.number().min(0).max(1),candidatePassRate:e.number().min(0).max(1),adaptationBaselinePassRate:e.number().min(0).max(1),adaptationCandidatePassRate:e.number().min(0).max(1),adaptationCandidatePassed:e.boolean(),heldOutCandidatePassed:e.boolean(),passed:e.boolean()}).strict(),foregroundTokenDelta:e.number().int(),foregroundTokenDeltaPercent:e.number().finite().nullable(),taskEfficiency:it.optional(),efficiency:e.object({grossForegroundTokenSavings:e.number().int(),overheadTokens:e.number().int().nonnegative(),firstPassNetTokenSavings:e.number().int(),breakEvenReuseCount:e.number().int().nonnegative().nullable(),amortizedTokenSavings:e.number().int(),amortizedReuseCount:e.number().int().positive()}).strict(),budget:e.object({maximumSpendUsd:e.number().nonnegative(),observedSpendUsd:e.number().nonnegative(),enforced:e.boolean()}).strict(),evidenceSnapshot:r,lineage:e.object({adaptationEvidenceHash:o,refinerInputHash:o,refinerOutcomeHash:o,validationHash:o,applyReceiptHash:o,candidateRelease:r,valid:e.boolean()}).strict(),invalidReasons:e.array(e.string().trim().min(1).max(2e3)).max(100),attempts:e.array(pe).max(1e4).default([]),terminalClassification:e.enum(["improved","no_improvement","regressed","inconclusive","cancelled","infrastructure_failure"]),profileGit:e.object({ref:e.string().trim().min(1).max(2e3),commit:Ze,baseCommit:Ze}).strict().nullable(),contentHash:o}).strict(),on=e.object({schemaVersion:e.literal("openpond.modelEvaluationStopReceipt.v1"),benchmarkId:n,terminalClassification:e.literal("inconclusive"),stopReason:e.enum(["candidate_harness_unchanged","candidate_lineage_invalid"]),reason:e.string().trim().min(1).max(5e3),stoppedAfter:e.literal("refiner"),baselineHarness:r,candidateHarness:r,refiner:e.object({id:n,contentHash:o,outcomeCount:e.number().int().nonnegative()}).strict(),usage:be,budget:e.object({maximumSpendUsd:e.number().nonnegative(),observedSpendUsd:e.number().nonnegative(),enforced:e.boolean()}).strict(),evidenceSnapshot:r,attempts:e.array(pe).max(1e4),contentHash:o}).strict(),et=e.object({level:e.literal(.95),lower:e.number().finite(),upper:e.number().finite()}).strict().superRefine((t,i)=>{t.lower>t.upper&&i.addIssue({code:"custom",message:"A confidence interval's lower bound cannot exceed its upper bound."})}),sn=e.object({schemaVersion:e.literal("openpond.modelComparisonBenchmarkReceipt.v1"),benchmarkId:e.literal("model-comparison"),target:e.object({kind:e.enum(["base_model","model_version","external_reference"]),label:e.string().trim().min(1).max(300),modelVersionId:n.nullable(),model:V.nullable()}).strict(),taskset:g,grader:r,sampling:e.object({seeds:e.array(e.number().int()).min(1).max(100),repetitions:e.number().int().positive().max(20)}).strict(),deterministic:e.object({attemptedTaskCount:e.number().int().nonnegative(),completedTaskCount:e.number().int().nonnegative(),passedTaskCount:e.number().int().nonnegative(),failedTaskCount:e.number().int().nonnegative(),meanScore:e.number().finite().nullable(),passRate:e.number().min(0).max(1).nullable(),passRateCi95:et.nullable()}).strict(),judge:e.object({judgeModel:V,judgeRelease:r,rubricRelease:r,calibrationRelease:r,score:e.number().min(0).max(100),scoreCi95:et,comparisonCount:e.number().int().positive(),wins:e.number().int().nonnegative(),ties:e.number().int().nonnegative(),losses:e.number().int().nonnegative(),referenceLabel:e.string().trim().min(1).max(300)}).strict().superRefine((t,i)=>{t.wins+t.ties+t.losses!==t.comparisonCount&&i.addIssue({code:"custom",message:"Judge win, tie, and loss counts must equal comparisonCount."})}).nullable(),attempts:e.array(e.object({attemptId:n.nullable().default(null),taskId:n,seed:e.number().int(),repetition:e.number().int().nonnegative(),status:e.enum(["succeeded","failed"]),deterministicScore:e.number().finite().nullable(),passed:e.boolean().nullable(),judgeScore:e.number().min(0).max(100).nullable(),judgePreference:e.enum(["win","tie","loss"]).nullable(),transcriptHash:o.nullable(),traceHash:o.nullable(),transcriptArtifact:e.object({artifactPath:e.string().trim().min(1).max(2e3),jsonPointer:e.string().trim().min(1).max(1e3)}).strict().nullable().default(null),traceArtifact:e.object({artifactPath:e.string().trim().min(1).max(2e3),jsonPointer:e.string().trim().min(1).max(1e3)}).strict().nullable().default(null),latencyMs:e.number().int().nonnegative().nullable().default(null),failureClass:ie.nullable()}).strict()).max(1e5),usage:e.object({policy:P.nullable(),judge:P.nullable(),observedSpendUsd:e.number().nonnegative().nullable(),evaluationGpuSeconds:e.number().nonnegative().nullable().default(null)}).strict(),managedServing:e.object({jobId:n,terminalState:e.enum(["completed","cancelled","failed","budget_exhausted"]),sourcePolicyVersion:e.number().int().nonnegative(),sourceAdapterSha256:o.nullable(),servedPolicyVersion:e.number().int().nonnegative().nullable(),servedAdapterSha256:o.nullable(),accruedSpendUsd:e.number().nonnegative(),cleanupAttestationHash:o,resourceCount:e.number().int().nonnegative(),activeResourceCount:e.literal(0)}).strict().nullable().default(null),evidenceSnapshot:e.object({id:n,contentHash:o,artifactPath:e.string().trim().min(1).max(2e3)}).strict(),completedAt:c,contentHash:o}).strict().superRefine((t,i)=>{let s=t.deterministic;s.completedTaskCount>s.attemptedTaskCount&&i.addIssue({code:"custom",message:"Completed task count cannot exceed attempted task count."}),s.passedTaskCount+s.failedTaskCount!==s.completedTaskCount&&i.addIssue({code:"custom",message:"Passed and failed task counts must equal completed task count."}),s.completedTaskCount===0!=(s.meanScore===null)&&i.addIssue({code:"custom",message:"Deterministic mean score is available exactly when tasks completed."}),s.completedTaskCount===0!=(s.passRate===null)&&i.addIssue({code:"custom",message:"Deterministic pass rate is available exactly when tasks completed."})}),ln=e.object({advancedEvaluation:re.optional(),benchmarkId:e.literal("harness-refiner"),model:V,upstreamModel:e.object({providerId:n,modelId:e.string().trim().min(1).max(300),revision:e.string().trim().min(1).max(300),pricing:e.object({version:e.string().trim().min(1).max(300),source:e.string().trim().min(1).max(300),effectiveAt:c,inputUsdPerMillionTokens:e.number().nonnegative(),cachedInputUsdPerMillionTokens:e.number().nonnegative(),outputUsdPerMillionTokens:e.number().nonnegative()}).strict().optional()}).strict(),reasoningEffort:e.string().trim().min(1).max(100).nullable(),seeds:e.array(e.number().int()).min(1).max(100),repetitions:e.number().int().positive().max(20),maximumSpendUsd:e.number().nonnegative(),attemptPlan:e.array(e.object({stage:e.enum(["baseline","adaptation","candidate_adaptation","candidate"]),split:e.string().trim().min(1).max(100),taskIds:e.array(n).min(1).max(1e5),attemptCount:e.number().int().positive()}).strict()).length(4)}).strict(),mn=e.object({benchmarkId:e.literal("model-comparison"),target:e.object({kind:e.enum(["base_model","model_version","external_reference"]),label:e.string().trim().min(1).max(300),modelVersionId:n.nullable(),model:V.nullable()}).strict(),grader:r,judge:e.object({model:V,release:r,rubricRelease:r,calibrationRelease:r,referenceLabel:e.string().trim().min(1).max(300)}).strict().nullable(),seeds:e.array(e.number().int()).min(1).max(100),repetitions:e.number().int().positive().max(20),maximumSpendUsd:e.number().nonnegative(),series:e.object({id:n,protocol:e.object({id:n,revision:e.number().int().positive(),contentHash:o}).strict()}).strict().nullable().default(null),panel:e.object({id:n,role:e.enum(["correction","sibling_verification","cumulative_known","development","retained","frozen_final"]),passLabel:n.nullable()}).strict().nullable().default(null),comparisonPair:e.object({entryId:n,parent:de,candidateModelVersionId:n}).strict().nullable().default(null),attemptPlan:e.array(e.object({stage:e.literal("comparison"),split:e.string().trim().min(1).max(100),taskIds:e.array(n).min(1).max(1e5),attemptCount:e.number().int().positive()}).strict()).length(1)}).strict(),cn=e.union([ln,mn]),rt=e.object({schemaVersion:e.literal("openpond.modelRun.v1"),id:n,modelId:n,modelVersionId:n.nullable(),profileId:n,kind:e.enum(["rollout_smoke","training","evaluation"]),status:e.enum(["prepared","running","succeeded","failed","cancelled"]),method:e.enum(["sft","dpo","grpo","ppo","sdft","opd","opsd","sdpo"]).nullable(),destinationId:n.nullable(),taskset:g,comparisonSeriesEntry:A.nullable().optional(),evaluationTasksetRef:g.nullable().optional(),harnessRelease:r.nullable().optional(),quote:e.object({maximumSpendUsd:e.number().nonnegative(),hourlyCostUsd:e.number().nonnegative().nullable()}).strict().nullable(),evaluation:cn.nullable().default(null),evaluationProgress:e.object({stage:e.enum(["baseline","adaptation","refiner","candidate_adaptation","candidate","comparison"]),completedAttempts:e.number().int().nonnegative(),totalAttempts:e.number().int().positive(),accounting:nn.nullable().default(null),advancedAccounting:se.optional(),evidenceSnapshot:an.nullable().default(null)}).strict().nullable().default(null),reward:e.object({raw:e.number(),components:e.record(e.string(),e.number())}).strict().nullable(),receipt:e.union([tn,rn,on,sn,oe]).nullable(),adapterArtifactLineageId:n.nullable(),failure:e.string().trim().min(1).max(5e3).nullable(),startedAt:c,completedAt:c.nullable(),updatedAt:c}).strict().superRefine((t,i)=>{t.status==="succeeded"&&!t.receipt&&i.addIssue({code:"custom",message:"A successful Model Run requires a canonical receipt."}),t.kind==="evaluation"&&(t.method!==null||t.destinationId!==null||!t.evaluation||t.adapterArtifactLineageId!==null)&&i.addIssue({code:"custom",message:"An evaluation Model Run requires evaluation configuration and cannot claim training method, destination, or adapter lineage."}),t.kind==="evaluation"&&t.receipt&&t.receipt.schemaVersion!=="openpond.modelEvaluationReceipt.v1"&&t.receipt.schemaVersion!=="openpond.modelEvaluationStopReceipt.v1"&&t.receipt.schemaVersion!=="openpond.modelComparisonBenchmarkReceipt.v1"&&t.receipt.schemaVersion!=="openpond.advancedRefinerReviewReceipt.v1"&&i.addIssue({code:"custom",message:"An evaluation Model Run requires an evaluation receipt."}),t.kind!=="evaluation"&&(t.method===null||t.destinationId===null||t.quote===null)&&i.addIssue({code:"custom",message:"A training or rollout Model Run requires method, destination, and quote."}),t.kind==="rollout_smoke"&&t.adapterArtifactLineageId!==null&&i.addIssue({code:"custom",message:"A rollout smoke cannot claim adapter artifacts."})});function ai(t){let i=new Map;for(let p of t.attempts){let T=`${p.phase}\0${p.taskId}`,S=i.get(T);(!S||p.startedAt>S.startedAt||p.startedAt===S.startedAt&&p.attemptId>S.attemptId)&&i.set(T,p)}let s=[...i.values()],l=[["adaptation","adaptation","candidate_adaptation"],["held_out","baseline","candidate"]].flatMap(([p,T,S])=>{let At=new Map(s.filter(R=>R.phase===S).map(R=>[R.taskId,R]));return s.filter(R=>R.phase===T).flatMap(R=>{let ee=At.get(R.taskId);return ee?[{cohort:p,taskId:R.taskId,baseline:R,refined:ee,tokenDelta:ee.totalTokens-R.totalTokens}]:[]})}),f=new Set(s.filter(p=>p.phase==="baseline"||p.phase==="adaptation").map(p=>p.taskId)).size,h=t.targetTaskCount??f;if(!Number.isInteger(h)||h<0)throw new Error("Benchmark task-efficiency target must be a non-negative integer.");let x={adaptation:new Set(s.filter(p=>p.phase==="adaptation").map(p=>p.taskId)).size,held_out:new Set(s.filter(p=>p.phase==="baseline").map(p=>p.taskId)).size},k=v((p,T)=>({targetTaskCount:T,comparedTaskCount:p.length,passedTaskCount:p.filter(S=>S.tokenDelta<0).length,failedTaskCount:p.filter(S=>S.tokenDelta>=0).length,lowerTaskCount:p.filter(S=>S.tokenDelta<0).length,higherTaskCount:p.filter(S=>S.tokenDelta>0).length,unchangedTaskCount:p.filter(S=>S.tokenDelta===0).length}),"summarizePairs"),d=k(l,h),j=l.reduce((p,T)=>p+T.baseline.totalTokens,0),ke=l.reduce((p,T)=>p+T.refined.totalTokens,0),Re=ke-j,Ie=l.length===h;return{summary:it.parse({target:"all_tasks_lower",...d,baselineTokens:j,refinedTokens:ke,tokenDelta:Re,tokenDeltaPercent:j>0?Re/j*100:null,complete:Ie,passed:Ie&&d.passedTaskCount===h,cohorts:{adaptation:k(l.filter(p=>p.cohort==="adaptation"),x.adaptation),heldOut:k(l.filter(p=>p.cohort==="held_out"),x.held_out)}}),pairs:l}}v(ai,"summarizeModelEvaluationTaskEfficiency");var dn=e.enum(["measuring","up_to_date","needs_attention"]),un=e.enum(["fixed","retained","regressed","unresolved","unavailable"]),ot=e.object({evaluationRunId:n,attemptKey:n,artifactPath:e.string().trim().min(1).max(2e3),jsonPointer:e.string().trim().min(1).max(1e3),transcriptHash:o.nullable(),traceHash:o.nullable()}).strict(),ge=e.object({level:e.literal(.95),lower:e.number().finite(),upper:e.number().finite()}).strict(),pn=e.object({panelId:n,panelRole:le,passLabel:n.nullable(),taskset:g,attempted:e.number().int().nonnegative(),available:e.number().int().nonnegative(),passed:e.number().int().nonnegative(),strictSuccess:e.number().min(0).max(1).nullable(),strictSuccessCi95:ge.nullable(),judgeScore:e.number().min(0).max(100).nullable(),judgeScoreCi95:ge.nullable()}).strict(),st=e.object({schemaVersion:e.literal("openpond.modelCurrencySnapshot.v1"),id:n,contentHash:o,seriesId:n,protocol:e.object({id:n,revision:e.number().int().positive(),contentHash:o}).strict(),entryId:n,passLabel:n,parent:e.discriminatedUnion("kind",[e.object({kind:e.literal("base_model"),id:n,revision:e.string().trim().min(1).max(500)}).strict(),e.object({kind:e.literal("model_version"),id:n,contentHash:o}).strict()]),candidate:e.object({kind:e.literal("model_version"),id:n,contentHash:o}).strict(),sources:e.object({evaluationRunIds:e.array(n).max(1e5),attemptIds:e.array(n).max(1e6),tasksets:e.array(g).max(1e4),grader:r,judge:r.nullable(),calibration:r.nullable()}).strict(),matches:e.array(e.object({key:n,panelId:n,panelRole:le,taskId:n,issueFamilyId:n,seed:e.number().int(),repetition:e.number().int().nonnegative(),classification:un,parentPassed:e.boolean().nullable(),candidatePassed:e.boolean().nullable(),parentAttempt:ot.nullable(),candidateAttempt:ot.nullable()}).strict()).max(1e6),taskIds:e.object({fixed:e.array(n).max(1e6),retained:e.array(n).max(1e6),regressed:e.array(n).max(1e6),unresolved:e.array(n).max(1e6),unavailable:e.array(n).max(1e6)}).strict(),panels:e.array(pn).max(1e4),metrics:e.object({knownIssueCoverage:e.number().min(0).max(1).nullable(),issueFamilyGeneralization:e.number().min(0).max(1).nullable(),behavioralRetention:e.number().min(0).max(1).nullable(),currentAcquisitionDelta:e.number().finite().nullable(),retainedDeltaPoints:e.number().finite().nullable(),frontierStrictDelta:e.number().finite().nullable(),pairedPValue:e.number().min(0).max(1).nullable(),wins:e.number().int().nonnegative(),ties:e.number().int().nonnegative(),losses:e.number().int().nonnegative()}).strict(),statistics:e.object({matchedAttemptCount:e.number().int().nonnegative(),strictDelta:e.number().finite().nullable(),strictDeltaCi95:ge.nullable(),exactPairedBinaryPValue:e.number().min(0).max(1).nullable(),pairedBootstrapSamples:e.number().int().positive()}).strict(),criteria:e.object({allRequiredAttemptsTerminal:e.boolean(),criticalCorrectionPassRate:e.number().min(0).max(1).nullable(),siblingPassRate:e.number().min(0).max(1).nullable(),behavioralRetentionRate:e.number().min(0).max(1).nullable(),retainedRegressionPoints:e.number().finite().nullable(),criticalPriorRegressionCount:e.number().int().nonnegative(),thresholdRelease:r}).strict(),efficiency:e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),totalTokens:e.number().int().nonnegative(),costUsd:e.number().nonnegative().nullable(),latencyMs:e.number().int().nonnegative(),tokensPerSuccess:e.number().nonnegative().nullable(),throughputPerHour:e.number().nonnegative().nullable(),gpuSeconds:e.number().nonnegative().nullable()}).strict(),invariants:e.object({systemPromptHash:o,toolSchema:r,application:r,harness:r,runtime:r,grader:r,autoRefinerEnabled:e.boolean()}).strict(),evidenceState:dn,evidenceReasons:e.array(n).max(100),projectedAt:c}).strict();var $=e.discriminatedUnion("kind",[e.object({kind:e.literal("base_model"),id:n,revision:e.string().trim().min(1).max(500),label:e.string().trim().min(1).max(300)}).strict(),e.object({kind:e.literal("model_version"),id:n,label:e.string().trim().min(1).max(300)}).strict(),e.object({kind:e.literal("captured_model"),id:n,label:e.string().trim().min(1).max(300)}).strict()]),U=e.union([e.object({source:e.literal("evaluation_run").default("evaluation_run"),evaluationRunId:n,attemptId:n,modelLabel:e.string().trim().min(1).max(300).nullable().default(null),modelVersionId:n.nullable().default(null),reward:e.number().finite().nullable(),components:e.record(e.string(),e.number().finite()).default({})}).strict(),e.object({source:e.literal("imported_response"),modelLabel:e.string().trim().min(1).max(300),modelVersionId:n.nullable().default(null),response:e.unknown().refine(t=>t!==void 0,"An imported model response is required."),reward:e.number().finite().nullable().default(null),components:e.record(e.string(),e.number().finite()).default({})}).strict()]),bn=e.union([e.object({taskId:n,target:$,attempt:U}).strict(),e.object({taskId:n,target:e.enum(["base","current"]).default("current"),attempt:U}).strict(),e.object({taskId:n,target:e.enum(["base","current"]).default("current"),evaluationRunId:n,attemptId:n,reward:e.number().finite().nullable(),components:e.record(e.string(),e.number().finite()).default({})}).strict().transform(({taskId:t,target:i,...s})=>({taskId:t,target:i,attempt:{source:"evaluation_run",modelLabel:null,modelVersionId:null,...s}}))]),bi=e.object({schemaVersion:e.literal("openpond.continualLearningDailyBatchManifest.v1"),id:n,seriesId:n,scheduleEntryId:n,dayOrdinal:e.number().int().positive().max(1e4),sourceTaskset:g,taskIds:e.array(n).min(1).max(1e3),observedAttempts:e.array(bn).max(1e3).default([]),sourceFileName:e.string().trim().min(1).max(500).nullable().default(null),availableAt:c}).strict().superRefine((t,i)=>{new Set(t.taskIds).size!==t.taskIds.length&&i.addIssue({code:"custom",path:["taskIds"],message:"A daily batch cannot repeat a task."}),new Set(t.observedAttempts.map(l=>`${l.taskId}:${gn(l.target)}`)).size!==t.observedAttempts.length&&i.addIssue({code:"custom",path:["observedAttempts"],message:"An intake batch cannot repeat a task and Policy target pair."});let s=new Set(t.taskIds);t.observedAttempts.some(l=>!s.has(l.taskId))&&i.addIssue({code:"custom",path:["observedAttempts"],message:"Observed attempts must belong to tasks in the daily batch."})}),lt=e.object({schemaVersion:e.literal("openpond.continualLearningDailyBatch.v1"),id:n,seriesId:n,scheduleEntryId:n,dayOrdinal:e.number().int().positive().max(1e4),label:e.string().trim().min(1).max(100),runMode:e.enum(["automatic","manual"]).optional(),source:e.enum(["json_upload","sealed_fixture"]),sourceFileName:e.string().trim().min(1).max(500).nullable(),sourceTaskset:g,tasks:e.array(e.object({taskId:n,taskContentHash:o,familyKey:n,disposition:e.enum(["include","defer","exclude"]).nullable(),oracleReview:e.enum(["pending","confirmed","needs_correction"]),note:e.string().trim().max(2e3),observedAttempt:U.nullable(),baselineAttempt:U.nullable().default(null),responses:e.array(e.object({target:$,attempt:U}).strict()).max(100).default([]),stagedAt:c.nullable().default(null),queuedEntry:A.nullable().default(null)}).strict()).min(1).max(1e3),intakeEvaluation:e.object({status:e.enum(["awaiting","running","ready","failed"]),requestedTargets:e.array(e.enum(["base","current"])).max(2).default(["base","current"]),requestedPolicies:e.array($).max(100).default([]),runs:e.array(e.object({target:$,runId:n}).strict()).max(100).default([]),baselineRunId:n.nullable(),currentRunId:n.nullable(),currentPolicy:e.discriminatedUnion("kind",[e.object({kind:e.literal("base_model"),id:n}).strict(),e.object({kind:e.literal("model_version"),id:n}).strict()]).nullable(),failure:e.string().trim().min(1).max(2e3).nullable()}).strict().default({status:"awaiting",requestedTargets:["base","current"],requestedPolicies:[],runs:[],baselineRunId:null,currentRunId:null,currentPolicy:null,failure:null}),status:e.enum(["pending","reviewed","queued"]),queuedEntry:A.nullable(),reviewedBy:n.nullable(),reviewedAt:c.nullable(),availableAt:c,revision:e.number().int().positive(),createdAt:c,updatedAt:c}).strict().superRefine((t,i)=>{new Set(t.tasks.map(l=>l.taskId)).size!==t.tasks.length&&i.addIssue({code:"custom",path:["tasks"],message:"A daily batch cannot repeat a task."});for(let[l,f]of t.tasks.entries()){let h=f.responses.map(x=>ct(x.target));new Set(h).size!==h.length&&i.addIssue({code:"custom",path:["tasks",l,"responses"],message:"A task cannot repeat a model response target."})}let s=t.tasks.every(l=>l.disposition!==null&&l.oracleReview!=="pending"&&(l.oracleReview!=="needs_correction"||l.note.length>0));t.status!=="pending"&&!s&&i.addIssue({code:"custom",path:["tasks"],message:"Every task requires a decision and oracle review before the day completes."}),t.status==="queued"!=(t.queuedEntry!==null)&&i.addIssue({code:"custom",path:["queuedEntry"],message:"Only a queued day carries an exact series-entry reference."}),t.status==="pending"&&(t.reviewedAt!==null||t.reviewedBy!==null)&&i.addIssue({code:"custom",path:["reviewedAt"],message:"A pending day cannot carry reviewer completion identity."}),t.status!=="pending"&&(t.reviewedAt===null||t.reviewedBy===null)&&i.addIssue({code:"custom",path:["reviewedAt"],message:"Reviewed identity is required after a day review completes."})}),mt=e.object({schemaVersion:e.literal("openpond.continualBenchIssueReview.v1"),id:n,seriesId:n,scheduleEntryId:n,passLabel:n,packet:De,splitManifest:e.object({id:n,contentHash:o}).strict(),decisions:e.array(e.object({taskId:n,disposition:e.enum(["include","defer","exclude"]).nullable(),note:e.string().trim().max(2e3)}).strict()).min(2).max(1e4),status:e.enum(["pending","reviewed","queued"]),queuedEntry:A.nullable(),reviewedBy:n.nullable(),reviewedAt:c.nullable(),revision:e.number().int().positive(),createdAt:c,updatedAt:c}).strict().superRefine((t,i)=>{let s=[...t.packet.cases.map(h=>h.taskId)].sort(),l=[...t.decisions.map(h=>h.taskId)].sort();JSON.stringify(s)!==JSON.stringify(l)&&i.addIssue({code:"custom",path:["decisions"],message:"Review decisions must cover the exact issue-packet cases."});let f=t.decisions.every(h=>h.disposition!==null&&h.note.length>0);t.status!=="pending"&&!f&&i.addIssue({code:"custom",path:["decisions"],message:"Every case requires a disposition and note before review completes."}),t.status==="queued"!=(t.queuedEntry!==null)&&i.addIssue({code:"custom",path:["queuedEntry"],message:"Only a queued review carries an exact series-entry reference."})}).readonly();function ct(t){return`${t.kind}:${t.id}`}v(ct,"responseTargetKey");function gn(t){return typeof t=="string"?t:ct(t)}v(gn,"observedTargetKey");var I=e.string().trim().min(1).max(240),_=e.string().trim().min(8).max(256),F=e.enum(["grpo","dapo","gspo-token"]),H=e.object({id:I,revision:e.string().trim().min(1).max(256),tokenizerRevision:e.string().trim().min(1).max(256),chatTemplateHash:_}),dt=e.object({maxRollouts:e.number().int().positive().max(1e6),maxEnvironmentExecutions:e.number().int().positive().max(1e6),maxInputTokens:e.number().int().positive(),maxOutputTokens:e.number().int().positive(),maxOptimizerSteps:e.number().int().positive().max(1e6),wallTimeMs:e.number().int().positive(),maximumCostUsd:e.number().nonnegative().nullable()}),ut=e.object({method:e.literal("grpo"),groupSize:e.number().int().min(2).max(128),normalization:e.literal("group_standardized"),advantageEpsilon:e.number().positive().max(.01).default(1e-8),loss:F,clipRange:e.number().positive().max(1).default(.2),iterations:e.number().int().min(2).max(16).default(2),microbatchSize:e.number().int().positive().max(128).default(1),gradientAccumulationSteps:e.number().int().positive().max(128).default(1),adamw:D}),G=e.object({method:e.literal("ppo"),valueModel:H,gamma:e.number().min(0).max(1),gaeLambda:e.number().min(0).max(1),policyClip:e.number().positive().max(1),valueClip:e.number().positive().max(10),valueLossCoefficient:e.number().nonnegative().max(10),ppoEpochs:e.number().int().positive().max(100),minibatchSize:e.number().int().positive().max(1e5)}),pt=e.discriminatedUnion("method",[ut,G]),J=e.object({rewardModelVersion:e.object({id:I,contentHash:_}).strict(),qualificationReport:e.object({id:I,contentHash:_}).strict().nullable().default(null),evaluationReferences:e.array(e.object({id:I,contentHash:_}).strict()).max(1e3).default([]),checkpoint:e.object({id:I,contentHash:_,objectRef:e.string().regex(/^r2:\/\/[A-Za-z0-9._/-]+$/),files:e.array(e.object({path:e.string().trim().min(1).max(512),sizeBytes:e.number().int().positive(),sha256:_}).strict()).min(4).max(128)}).strict(),runtime:ue,processorRelease:e.object({id:I,contentHash:_}).strict(),rewardComposerRelease:e.object({id:I,contentHash:_}).strict(),executionReceipt:e.object({id:I,contentHash:_}).strict()}).strict(),W=e.object({schemaVersion:e.literal("openpond.policyOptimization.v1"),policyModel:H,referenceModel:H,dataset:e.object({tasksetId:I,tasksetHash:_,split:e.literal("train"),selectionStrategy:e.enum(["stable_hash_top_n","rft_easy_curriculum_v1"]),selectionSeed:e.number().int(),maxExamples:e.number().int().positive().max(1e5)}),sampler:e.object({temperature:e.number().min(0).max(2),topP:e.number().min(0).max(1),maxOutputTokens:e.number().int().positive().max(32768),maxTurns:e.number().int().positive().max(1e3),concurrency:e.number().int().positive().max(1e3)}),environment:e.object({id:I,version:e.string().trim().min(1).max(256),toolContractHash:_}),reward:e.object({graderId:I,graderHash:_,learnedPreference:J.nullable().default(null)}),kl:e.object({coefficient:e.number().nonnegative().nullable(),referenceConstraint:e.literal("fixed_reference")}),budgets:dt,checkpointEverySteps:e.number().int().positive(),seed:e.number().int(),evaluationSplit:e.literal("frozen_eval"),optimizer:pt});var a=e.string().trim().min(1).max(240),b=e.string().trim().min(1),m=e.string().trim().min(8).max(256),O=e.record(e.string(),e.unknown()).default({});var he=e.object({schemaVersion:e.literal("openpond.localModelChatConfiguration.v1").default("openpond.localModelChatConfiguration.v1"),profile:e.enum(["efficient","full_harness","custom"]).default("efficient"),systemPromptMode:e.enum(["lean","full_harness","custom"]).default("lean"),customSystemPrompt:e.string().max(2e4).nullable().default(null),contextWindowTokens:e.number().int().min(128).max(32768).default(1024),maxOutputTokens:e.number().int().min(1).max(512).default(64),temperature:e.number().min(0).max(2).default(0),repetitionPenalty:e.number().min(.5).max(2).default(1.1),noRepeatNgramSize:e.number().int().min(0).max(10).default(3),compaction:e.enum(["off","when_needed"]).default("when_needed"),keepWarmSeconds:e.number().int().min(0).max(3600).default(300),updatedAt:b.nullable().default(null)}),bt=he.parse({}),gt=e.object({schemaVersion:e.literal("openpond.managedAdapterServingProjection.v1"),teamId:a.nullable().default(null),source:e.literal("sandbox_managed_rl"),sourceRef:a,canonicalArtifactId:a.nullable(),canonicalModelName:e.string().trim().min(1).max(256).nullable().default(null),canonicalArtifactState:e.enum(["imported_unvalidated","evaluating","promotable","rejected","deleted"]).nullable(),canonicalDeploymentId:a.nullable(),canonicalDeploymentState:e.enum(["requested","deploying","ready","degraded","deleting","deleted","failed"]).nullable(),state:e.enum(["pending","imported","ready","failed"]),customerBindingAllowed:e.boolean().default(!1),artifactContentHash:m.nullable().default(null),baseProfileId:a.nullable().default(null),publishedAt:b.nullable(),lastSyncedAt:b,lastError:e.string().trim().min(1).max(5e3).nullable()});function hn(t){return t.state==="ready"&&t.canonicalArtifactState==="promotable"&&t.canonicalDeploymentState==="ready"&&t.customerBindingAllowed&&!!t.teamId&&!!t.canonicalArtifactId&&!!t.canonicalDeploymentId}v(hn,"managedAdapterProjectionReady");function ji(t){let i=t.managedServing;return i?hn(i)&&i.canonicalArtifactId&&i.canonicalDeploymentId?{kind:"sandbox_serving",canonicalArtifactId:i.canonicalArtifactId,canonicalDeploymentId:i.canonicalDeploymentId}:null:{kind:"source_artifact",canonicalArtifactId:null,canonicalDeploymentId:null}}v(ji,"resolveModelBindingEligibility");var ye="openpond.crossSystemOperations.v1",wi="1.0.0",ft="openpond.crossSystemTools.v1",fn=["search_crm","query_billing","search_support","run_python"],vn=e.enum(["train","validation","frozen_eval"]),xn=e.enum(["easy","medium","hard"]),Sn=e.enum(["renewal_risk_v2"]),Mi=e.enum(["renewal_exposure","collections_prioritization","invoice_reconciliation","sla_escalation","contract_billing_mismatch"]),Pi=e.object({seed:e.number().int().nonnegative(),split:vn,difficulty:xn,scenarioProfile:Sn.optional()});var fe={anyOf:[{type:"string",minLength:1,maxLength:256},{type:"null"}],default:null},ve={type:"integer",minimum:1,maximum:50,default:25},vt=[{name:"search_crm",description:"Search synthetic CRM accounts and contacts. Results are scoped, projected, paginated, and budgeted.",parameters:{type:"object",additionalProperties:!1,required:["query","fields","cursor","limit"],properties:{query:{type:"string",minLength:1,maxLength:500},fields:{type:"array",minItems:1,maxItems:12,uniqueItems:!0,items:{type:"string",enum:["account_id","name","aliases","contact_ids","contract_value_usd_cents","renewal_date","tier","active_contract_id","contract_term_months"]}},cursor:fe,limit:ve}}},{name:"query_billing",description:"Query synthetic invoices and payments for explicit account IDs and a bounded date range.",parameters:{type:"object",additionalProperties:!1,required:["account_ids","date_range","status","cursor","limit"],properties:{account_ids:{type:"array",minItems:1,maxItems:50,uniqueItems:!0,items:{type:"string",minLength:1,maxLength:100}},date_range:{type:"object",additionalProperties:!1,required:["from","to"],properties:{from:{type:"string",format:"date"},to:{type:"string",format:"date"}}},status:{type:"array",minItems:1,maxItems:6,uniqueItems:!0,items:{type:"string",enum:["open","overdue","paid","disputed","scheduled","void"]}},cursor:fe,limit:ve}}},{name:"search_support",description:"Search synthetic support cases for explicit account IDs, severity, and state filters.",parameters:{type:"object",additionalProperties:!1,required:["account_ids","severity","state","cursor","limit"],properties:{account_ids:{type:"array",minItems:1,maxItems:50,uniqueItems:!0,items:{type:"string",minLength:1,maxLength:100}},severity:{type:"array",minItems:1,maxItems:4,uniqueItems:!0,items:{type:"string",enum:["P1","P2","P3","P4"]}},state:{type:"array",minItems:1,maxItems:5,uniqueItems:!0,items:{type:"string",enum:["new","investigating","waiting_customer","resolved","closed"]}},cursor:fe,limit:ve}}},{name:"run_python",description:"Run standard-library-only Python in the persistent synthetic attempt sandbox with strict limits and no network.",parameters:{type:"object",additionalProperties:!1,required:["code"],properties:{code:{type:"string",minLength:1,maxLength:1e4}}}}],Z=Cn({schemaVersion:ft,tools:vt}),yn=[`Use only the four registered synthetic Cross-System Operations tools. Contract ${Z}.`,"Treat every filter as exact. An overdue-only query_billing call returns invoice rows; payment rows are included only when paid is requested.","For cross-system joins, retrieve the bounded projected rows and use run_python for date filtering, set intersection, and arithmetic before answering.","Finish with ANSWER: JSON."].join(" "),_n=15;function kn(t="auto"){return[yn,"LOCAL TOOL PROTOCOL (strict):","Use only the registered functions below. Never invent, rename, or call any other tool.","For one tool call, output exactly one JSON object and no prose:",'{"type":"tool_call","name":"registered_name","arguments":{}}',"Tool results arrive as exactly one JSON object:",'{"type":"tool_result","name":"registered_name","ok":true,"result":{},"error":null}','After one tool result, either call one registered tool again or answer normally. A JSON final may use {"type":"final","content":"..."}.',`Tool choice: ${JSON.stringify(t)}. Maximum tool turns: ${_n}.`,`Registered tool signatures: ${vt.map(Rn).join("; ")}`].join(`
|
|
3
|
+
`)}v(kn,"crossSystemLocalToolSystemPrompt");var Ei=kn();function Rn(t){let i=K(t.parameters),s=K(i.properties),l=xt(i.required),f=Object.fromEntries(l.map(h=>[h,Y(s[h])]));return`${t.name}(${JSON.stringify(f)})`}v(Rn,"compactToolSignature");function Y(t){let i=K(t),s=xe(i.anyOf);if(s.length)return s.map(Y).join("|");let l=xe(i.enum);if(l.length)return l.join("|");if(i.type==="array")return[Y(i.items)];if(i.type==="object"){let f=K(i.properties),h=xt(i.required);return Object.fromEntries(h.map(x=>[x,Y(f[x])]))}return typeof i.type=="string"?i.type:"unknown"}v(Y,"compactSchema");function K(t){return t&&typeof t=="object"&&!Array.isArray(t)?t:{}}v(K,"recordValue");function xe(t){return Array.isArray(t)?t:[]}v(xe,"arrayValue");function xt(t){return xe(t).filter(i=>typeof i=="string")}v(xt,"stringValues");var Q=e.enum(fn),In=e.discriminatedUnion("kind",[e.object({kind:e.literal("model"),turn:e.number().int().nonnegative(),content:e.string().max(1e5)}),e.object({kind:e.literal("tool_call"),turn:e.number().int().nonnegative(),callId:e.string().trim().min(1).max(240),name:Q,arguments:e.record(e.string(),e.unknown())}),e.object({kind:e.literal("tool_result"),turn:e.number().int().nonnegative(),callId:e.string().trim().min(1).max(240),name:Q,ok:e.boolean(),result:e.unknown(),rows:e.number().int().nonnegative(),bytes:e.number().int().nonnegative(),durationMs:e.number().int().nonnegative(),error:e.string().trim().min(1).max(2e4).nullable()}),e.object({kind:e.literal("final"),turn:e.number().int().nonnegative(),content:e.string().max(1e5)})]),St=e.object({schemaVersion:e.literal(ye),id:e.string().trim().min(1).max(240),worldId:e.string().trim().min(1).max(240),taskId:e.string().trim().min(1).max(240),toolContractHash:e.literal(Z),modelRef:e.object({providerId:e.string().trim().min(1),modelId:e.string().trim().min(1)}).nullable(),status:e.enum(["completed","budget_exhausted","cancelled","infrastructure_failure"]),steps:e.array(In).max(1e3),startedAt:e.string().trim().min(1),completedAt:e.string().trim().min(1),infrastructureError:e.string().trim().min(1).max(2e4).nullable(),metadata:e.record(e.string(),e.unknown()).default({})}),yt=e.object({schemaVersion:e.literal(ye),trajectoryId:e.string().trim().min(1).max(240),outcome:e.enum(["correct","incorrect","parse_failure","budget_exhausted","tool_schema_violation","infrastructure_failure","cancelled"]),reward:e.number().min(0).max(1.15).nullable(),rewardEligible:e.boolean(),exactAnswer:e.boolean(),components:e.object({exactAnswer:e.number().min(0).max(1),efficiency:e.number().min(0).max(.1),conciseOutput:e.number().min(0).max(.05)}),metrics:e.object({toolCalls:e.number().int().nonnegative(),rowsRead:e.number().int().nonnegative(),bytesRead:e.number().int().nonnegative(),consecutiveRetrievalCalls:e.number().int().nonnegative(),wallTimeMs:e.number().int().nonnegative(),parseFailures:e.number().int().nonnegative(),budgetExhausted:e.boolean()}),parsedAnswer:e.unknown().nullable(),feedback:e.array(e.string().trim().min(1).max(5e3)).max(100)}),jn=e.object({id:e.string().trim().min(1).max(240),type:e.literal("function"),function:e.object({name:Q,arguments:e.string().max(2e4)})}),_t=e.object({role:e.enum(["system","user","assistant","tool"]),content:e.string().max(2e5).nullable(),tool_call_id:e.string().trim().min(1).max(240).optional(),tool_calls:e.array(jn).max(4).optional()}),Hi=e.object({schemaVersion:e.literal(ye),id:e.string().trim().min(1).max(240),taskId:e.string().trim().min(1).max(240),worldId:e.string().trim().min(1).max(240),trajectoryId:e.string().trim().min(1).max(240),toolContractHash:e.literal(Z),approval:e.object({status:e.literal("approved"),approvedBy:e.string().trim().min(1).max(240),approvedAt:e.string().trim().min(1)}),messages:e.array(_t).min(3).max(1e3)}),Tn=e.object({tasksetTaskId:e.string().trim().min(1).max(240),environmentTaskId:e.string().trim().min(1).max(240),family:e.enum(["renewal_exposure","collections_prioritization","invoice_reconciliation","sla_escalation","contract_billing_mismatch"]),prompt:e.string().trim().min(1).max(1e5),finalAnswer:e.string().trim().min(1).max(2e5),trajectoryId:e.string().trim().min(1).max(240),trajectoryHash:e.string().trim().min(8).max(256),toolNames:e.array(Q).min(1).max(100),toolCallCount:e.number().int().positive(),messageCount:e.number().int().min(3),reward:e.number().min(0).max(1.15),messages:e.array(_t).min(3).max(1e3)}),An=e.object({status:e.literal("approved"),approvedBy:e.string().trim().min(1).max(240),approvedAt:e.string().trim().min(1),previewHash:e.string().trim().min(8).max(256),trajectoryCount:e.number().int().positive()}),Oi=e.object({schemaVersion:e.literal("openpond.crossSystemExpertBootstrapPreview.v1"),tasksetId:e.string().trim().min(1).max(240),tasksetHash:e.string().trim().min(8).max(256),tasksetRevision:e.number().int().positive(),previewHash:e.string().trim().min(8).max(256),toolContractHash:e.literal(Z),status:e.enum(["ready_for_review","approved"]),approval:An.nullable(),tasks:e.array(Tn).min(1).max(100)});function Cn(t){let i=Se(t),s=2166136261,l=2654435769;for(let f=0;f<i.length;f+=1){let h=i.charCodeAt(f);s=Math.imul(s^h,16777619),l=Math.imul(l^h,2246822507)}return`${ft}:${ht(s)}${ht(l)}`}v(Cn,"contractHash");function Se(t){return Array.isArray(t)?`[${t.map(Se).join(",")}]`:t&&typeof t=="object"?`{${Object.entries(t).sort(([i],[s])=>i.localeCompare(s)).map(([i,s])=>`${JSON.stringify(i)}:${Se(s)}`).join(",")}}`:JSON.stringify(t)}v(Se,"stableJson");function ht(t){return(t>>>0).toString(16).padStart(8,"0")}v(ht,"hex");var wn=e.object({schemaVersion:e.literal("openpond.singleTurnPolicyTrajectory.v1"),id:a,taskId:a,status:e.enum(["completed","infrastructure_failure"]),promptHash:m,responseText:e.string().max(2e6),infrastructureError:e.string().trim().min(1).max(1e4).nullable(),startedAt:b,completedAt:b,metadata:O}),Mn=e.object({schemaVersion:e.literal("openpond.ppoTrajectory.v1"),id:a,taskId:a,policyModelId:a,referenceModelId:a,valueModelId:a,steps:e.array(e.object({index:e.number().int().nonnegative(),observationHash:m,actionTokenIds:e.array(e.number().int().nonnegative()).min(1),terminated:e.boolean(),truncated:e.boolean(),reward:e.number(),policyLogProbability:e.number(),referenceLogProbability:e.number(),valuePrediction:e.number(),return:e.number(),advantage:e.number(),mask:e.number().min(0).max(1)})).min(1).max(1e5),createdAt:b}),Pn=e.object({schemaVersion:e.literal("openpond.exactAnswerVerifierResult.v1"),outcome:e.enum(["correct","incorrect","parse_failure","infrastructure_failure"]),graderSetHash:m,score:e.number().min(0).max(1).nullable(),passed:e.boolean(),rewardEligible:e.boolean(),expectedAnswerHash:m,extractedAnswer:e.string().max(2e4).nullable(),feedback:e.array(e.string().trim().min(1).max(2e4)).max(1e3)}),kt=e.object({schemaVersion:e.literal("openpond.rolloutTrajectoryReceipt.v1"),id:a,jobId:a,planId:a,tasksetId:a,tasksetHash:m,taskId:a,split:e.literal("train"),correlationId:a,provider:a,providerTrace:e.object({invocationId:a,experimentId:a,rolloutId:a,runId:a,rowId:a}),optimizerMethod:e.enum(["grpo","ppo"]).default("grpo"),evidenceLevels:e.object({requested:e.enum(["trajectory","aggregate","provider_reported"]),observed:e.enum(["trajectory","aggregate","provider_reported"]),providerReported:e.enum(["trajectory","aggregate","provider_reported"])}).default({requested:"trajectory",observed:"trajectory",providerReported:"provider_reported"}),budgetUsage:e.object({rollouts:e.number().int().nonnegative(),environmentExecutions:e.number().int().nonnegative(),inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),optimizerSteps:e.number().int().nonnegative(),costUsd:e.number().nonnegative()}).default({rollouts:0,environmentExecutions:0,inputTokens:0,outputTokens:0,optimizerSteps:0,costUsd:0}),environment:e.object({id:a,version:e.string().trim().min(1).max(256),worldId:a,worldHash:m,toolContractHash:m}),policy:e.object({modelId:a,checkpointId:a.nullable(),completionParametersHash:m}),status:e.enum(["received","running","succeeded","failed"]),failureClass:e.enum(["policy_failure","parse_failure","tool_schema_violation","budget_exhausted","cancelled","environment_failure","infrastructure_failure"]).nullable(),reward:e.object({eligible:e.boolean(),raw:e.number().min(0).max(1.15).nullable(),normalized:e.number().min(0).max(1).nullable(),components:e.record(e.string(),e.number())}),trajectory:e.union([St,wn,Mn]).nullable(),verifier:e.union([yt,Pn]).nullable(),providerStatus:e.record(e.string(),e.unknown()).default({}),receivedAt:b,startedAt:b.nullable(),completedAt:b.nullable(),updatedAt:b});function u(t){let i;return new e.ZodObject({type:"object",get shape(){return i??=t()}})}v(u,"deferredObject");var E=e.enum(["sft","dpo","grpo","ppo","sdft","opd","opsd","sdpo"]),X=e.enum(["lora","full"]),z=e.enum(["openpond_managed"]),dr=u(()=>({id:a,input:e.record(e.string(),e.unknown()),expectedOutput:e.record(e.string(),e.unknown()),tags:e.array(a).max(100).default([])})),ur=u(()=>({id:a,prompt:e.string().min(1).max(5e5),chosen:e.string().min(1).max(5e5),rejected:e.string().min(1).max(5e5),sourceRefs:e.array(a).min(1).max(1e4)})),pr=u(()=>({id:a,input:e.record(e.string(),e.unknown()),tags:e.array(a).max(100).default([])})),br=u(()=>({schemaVersion:e.literal("openpond.rewardModelRecipe.v1"),method:e.literal("reward_model"),parameterization:e.literal("lora_with_scalar_head"),runScope:e.enum(["synthetic_smoke","human_preference"]),baseModel:e.object({id:a,revision:e.string().trim().min(1).max(256),tokenizerRevision:e.string().trim().min(1).max(256),processorRevision:e.string().trim().min(1).max(256),chatTemplateHash:m}).strict(),tasksetRelease:r,preferenceDatasetRelease:r,processorRelease:r,input:e.object({kind:e.literal("structured_text"),serialization:e.enum(["scenario_input_and_candidate_json_v1","visible_agent_trajectory_v1"]),maxCharacters:e.number().int().positive().max(5e5)}).strict().default({kind:"structured_text",serialization:"scenario_input_and_candidate_json_v1",maxCharacters:32e3}),lora:e.object({rank:e.number().int().positive().max(256),alpha:e.number().positive().max(1024),dropout:e.number().min(0).max(1),targetModules:e.array(a).min(1).max(100)}).strict(),heads:e.object({scalar:e.literal("pooled_hidden_state_linear"),bucket:e.enum(["none","three_class"]).default("three_class")}).strict(),loss:e.object({ranking:e.literal("bradley_terry"),rankingWeight:e.number().positive(),bucketWeight:e.number().nonnegative(),tieWeight:e.number().nonnegative()}).strict(),optimizer:e.object({learningRate:e.number().positive(),maxSteps:e.number().int().positive().max(1e5),batchSize:e.number().int().positive().max(1e4),gradientAccumulationSteps:e.number().int().positive().max(1e4),seed:e.number().int(),checkpointEverySteps:e.number().int().positive().max(1e5)}).strict(),resourceLimits:e.object({wallTimeMs:e.number().int().positive().max(1440*60*1e3),maxExamples:e.number().int().positive().max(1e5),maxInputCharacters:e.number().int().positive().max(5e5).default(32e3),maxImagePixels:e.number().int().positive().max(1e8).optional(),maximumSpendUsd:e.number().nonnegative().max(1e5)}).strict()})).superRefine((t,i)=>{t.runScope==="synthetic_smoke"&&(t.optimizer.maxSteps>100||t.resourceLimits.maximumSpendUsd>10)&&i.addIssue({code:"custom",path:["resourceLimits"],message:"Synthetic-smoke Reward Model runs are limited to 100 steps and USD 10."})}),En=u(()=>({schemaVersion:e.literal("openpond.rftRecipe.v1"),method:e.literal("grpo"),parameterization:e.literal("lora"),baseModel:e.object({id:a,revision:e.string().trim().min(1).max(256),tokenizerRevision:e.string().trim().min(1).max(256),chatTemplateHash:m}),dataset:e.object({trainSplit:e.literal("train"),validationSplit:e.enum(["validation","frozen_eval"]),maxPromptTokens:e.number().int().positive().max(32768),maxExamples:e.number().int().positive().max(1e5).default(1e3),selectionStrategy:e.enum(["stable_hash_top_n","rft_easy_curriculum_v1"]).default("stable_hash_top_n")}),lora:e.object({rank:e.number().int().positive().max(256)}),rollout:e.object({groupSize:e.number().int().min(2).max(64),concurrency:e.number().int().positive().max(32),maxTurns:e.number().int().positive().max(100),maxOutputTokens:e.number().int().positive().max(8192),temperature:e.number().min(0).max(2),topP:e.number().positive().max(1),seed:e.number().int()}),optimizer:e.object({learningRate:e.number().positive(),maxSteps:e.number().int().positive().max(1e5),clipRange:e.number().positive().max(1).default(.2),iterations:e.number().int().min(2).max(16).default(2),microbatchSize:e.number().int().positive().max(64).default(1),gradientAccumulationSteps:e.number().int().positive().max(64).default(1),advantageEpsilon:e.number().positive().max(.01).default(1e-8),adamw:D}),loss:e.object({method:F.default("grpo"),klBeta:e.number().min(0).nullable().default(null)}).default({method:"grpo",klBeta:null}),reward:e.object({graderId:a,graderHash:m,environmentId:a,environmentVersion:e.string().trim().min(1).max(256),toolContractHash:m,learnedPreference:J.nullable().optional()}),resourceLimits:e.object({wallTimeMs:e.number().int().positive().max(1440*60*1e3),maxGpuSeconds:e.number().int().positive().max(21600).optional(),warmupDeadlineSeconds:e.number().int().positive().max(3600).optional(),maxRollouts:e.number().int().positive().max(1e5),maxPayloadBytes:e.number().int().positive().max(10*1024*1024)}),policyOptimization:W.nullable().default(null),continuation:e.object({schemaVersion:e.literal("openpond.crossJobContinuationRequest.v1"),parentArtifact:r,sourceArtifact:e.object({jobId:a,artifactId:a,checkpointId:a,contentHash:m}).strict(),optimizerMode:e.enum(["continue","reset"]),adapterMode:e.enum(["residual_append","shared","sequential_merge"]).optional()}).strict().optional()})),Hn=u(()=>({schemaVersion:e.literal("openpond.dpoRecipe.v1"),method:e.literal("dpo"),parameterization:e.literal("lora"),policyModel:H,referenceModel:H,dataset:e.object({trainSplit:e.literal("train"),validationSplit:e.enum(["validation","frozen_eval"]),maxPairs:e.number().int().positive().max(1e5),maxPromptTokens:e.number().int().positive().max(32768),maxCompletionTokens:e.number().int().positive().max(32768),selectionStrategy:e.literal("stable_hash_top_n"),selectionSeed:e.number().int()}),lora:e.object({rank:e.number().int().positive().max(256),alpha:e.number().positive().max(1024),dropout:e.number().min(0).max(1),targetModules:e.array(a).min(1).max(100)}),loss:e.object({variant:e.literal("sigmoid"),beta:e.number().positive().max(10),labelSmoothing:e.number().min(0).max(.5).default(0)}),optimizer:e.object({learningRate:e.number().positive(),epochs:e.number().positive().max(100),maxSteps:e.number().int().positive().max(1e6),batchSize:e.number().int().positive().max(1e4),gradientAccumulationSteps:e.number().int().positive().max(1e4),seed:e.number().int()}),referenceLogprobs:e.object({cacheSchemaVersion:e.literal("openpond.dpoReferenceLogprobs.v1"),cacheKey:m,invalidationHash:m}),resourceLimits:e.object({cpuThreads:e.number().int().positive().max(256),memoryBytes:e.number().int().positive(),wallTimeMs:e.number().int().positive()})})),On=u(()=>({schemaVersion:e.literal("openpond.ppoRecipe.v1"),method:e.literal("ppo"),parameterization:e.literal("lora"),policyOptimization:W.extend({optimizer:G}),lora:e.object({rank:e.number().int().positive().max(256),alpha:e.number().positive().max(1024),dropout:e.number().min(0).max(1),targetModules:e.array(a).min(1).max(100)}),valueHead:e.object({initialization:e.literal("policy_hidden_state_linear"),optimizerLearningRate:e.number().positive(),artifactName:e.literal("value_head.safetensors")}),policyLearningRate:e.number().positive(),resume:e.object({checkpointId:a.nullable(),policyHash:m,referenceHash:m,valueModelHash:m,optimizerStateHash:m.nullable()}),resourceLimits:e.object({cpuThreads:e.number().int().positive().max(256),memoryBytes:e.number().int().positive(),wallTimeMs:e.number().int().positive()})})),zn=u(()=>({schemaVersion:e.literal("openpond.unsupportedRecipe.v1"),method:E.exclude(["sft","dpo","grpo","ppo"]),parameterization:X,unsupportedReason:e.string().trim().min(1).max(5e3)})),Vn=e.union([Te,Hn,En,On,zn]),Dn=u(()=>({schemaVersion:e.literal("openpond.trainingDestinationCapabilities.v1"),destinationId:z,available:e.boolean(),methods:e.array(E),parameterizations:e.array(X),modelAllowlist:e.array(a).default([]),maxDatasetBytes:e.number().int().nonnegative().nullable(),environmentPlacements:e.array(e.enum(["none","local","remote","colocated","provider_native"])),nonProduction:e.boolean(),unavailableReason:e.string().trim().min(1).max(5e3).nullable(),checkedAt:b})),Bn=u(()=>({destinationId:z,available:e.boolean(),methods:e.array(E),parameterizations:e.array(X),nonProduction:e.boolean(),unavailableReason:e.string().trim().min(1).max(5e3).nullable()})),Ln=u(()=>({schemaVersion:e.literal("openpond.baseModelCandidate.v1"),selectionKey:a,label:e.string().trim().min(1).max(500),sourceLabel:e.string().trim().min(1).max(500),preference:B,available:e.boolean(),nonProduction:e.boolean(),unavailableReason:e.string().trim().min(1).max(5e3).nullable(),methods:e.array(E),executionOptions:e.array(Bn).min(1)})),qn=u(()=>({code:a,severity:e.enum(["warning","error"]),path:e.string().trim().max(2e3).nullable(),message:e.string().trim().min(1).max(5e3)})),Un=u(()=>({schemaVersion:e.literal("openpond.trainingCompatibility.v1"),compatible:e.boolean(),destinationId:z,tasksetId:a,recipeMethod:E,issues:e.array(qn),checkedAt:b})),Nn=e.union([Me,e.enum(["destination_unavailable","destination_method_unsupported","destination_model_unsupported","destination_parameterization_unsupported","experimental_destination"])]),gr=u(()=>({method:E,state:e.enum(["recommended","compatible","needs_dataset_work","destination_unavailable","experimental_destination"]),reasonCodes:e.array(Nn).default([]),reasons:e.array(e.string().trim().min(1).max(5e3)).default([]),destinationId:z.nullable().default(null)})),hr=e.enum(["small","standard","custom","small_experiment"]);var $n=Ae,jt=u(()=>({schemaVersion:e.literal("openpond.trainingPlan.v1"),id:a,modelId:a,tasksetId:a,tasksetHash:m,comparisonSeriesEntry:A.nullable().optional(),evaluationTasksetRef:g.nullable().optional(),harnessRelease:r.nullable().optional(),modelImprovementQualification:r.nullable().optional(),destinationId:z,recipe:Vn,environmentPlacement:e.enum(["none","local","remote","colocated","provider_native"]),compatibility:Un,dataPolicy:e.object({exportApproved:e.boolean(),approvedSourceIds:e.array(a),retentionDays:e.number().int().nonnegative().nullable(),region:e.string().trim().min(1).max(200).nullable()}),estimatedCostUsd:e.number().nonnegative().nullable(),createdAt:b,contentHash:m})),Fn=u(()=>({path:e.string().trim().min(1).max(2e3),sha256:m,sizeBytes:e.number().int().nonnegative(),role:e.enum(["manifest","task_data","grader","environment","recipe","policy","provenance"])})),_e=u(()=>({schemaVersion:e.literal("openpond.trainingBundle.v1"),id:a,planId:a,tasksetId:a,tasksetHash:m,recipeHash:m,files:e.array(Fn).min(1).max(1e6),totalSizeBytes:e.number().int().nonnegative(),sourceIds:e.array(a),excludedSourceIds:e.array(a),containsRawChats:e.literal(!1),containsSecrets:e.literal(!1),containsHiddenGraderAssets:e.literal(!1),createdAt:b,contentHash:m})),fr=u(()=>({schemaVersion:e.literal("openpond.trainingBundleExport.v1"),manifest:_e,files:e.array(e.object({path:e.string().trim().min(1).max(2e3),sha256:m,sizeBytes:e.number().int().nonnegative(),encoding:e.literal("base64"),content:e.string()})).min(1),contentHash:m})),vr=u(()=>({schemaVersion:e.literal("openpond.trainingPreparedStart.v1"),plan:jt,bundle:_e,approvalActor:a.nullable(),preparedAt:b})),xr=u(()=>({schemaVersion:e.literal("openpond.trainingApproval.v1"),evaluationTasksetRef:g.nullable().optional(),id:a,planId:a,bundleHash:m,harnessRelease:r.nullable().optional(),modelImprovementQualification:r.nullable().optional(),destinationId:z,modelId:a,method:E,parameterization:X,maximumCostUsd:e.number().nonnegative().nullable(),approvedBy:a,approvedAt:b})),Sr=u(()=>({schemaVersion:e.literal("openpond.trainingJobSourceSnapshot.v1"),evaluationTasksetRef:g.nullable().optional(),modelProjectId:a,sourceProjectRevision:e.number().int().positive(),profileId:a,taskset:e.object({id:a,revision:e.number().int().positive(),contentHash:m}).strict(),tasksetRelease:r,harnessRelease:r,baseModel:B,method:E})).strict(),Gn=e.enum(["queued","starting","running","cancelling","cancelled","succeeded","failed","reconciling"]),Tt=u(()=>({schemaVersion:e.literal("openpond.trainingJob.v1"),id:a,planId:a,bundleHash:m,approvalId:a,destinationId:z,status:Gn,nonProduction:e.boolean(),workerPid:e.number().int().positive().nullable(),startedAt:b.nullable(),completedAt:b.nullable(),error:e.string().trim().min(1).max(2e4).nullable(),createdAt:b,updatedAt:b,metadata:O})),Jn=u(()=>({schemaVersion:e.literal("openpond.trainingJobEvent.v1"),id:a,jobId:a,sequence:e.number().int().nonnegative(),type:e.enum(["queued","start","progress","metric","checkpoint","cancel","complete","failure","reconcile"]),timestamp:b,payload:O})),Wn=u(()=>({schemaVersion:e.literal("openpond.sftStepMetric.v1"),step:e.number().int().nonnegative(),maxSteps:e.number().int().positive(),timestamp:b,epoch:e.number().nonnegative().nullable(),loss:e.number().nullable(),learningRate:e.number().nonnegative().nullable(),gradientNorm:e.number().nonnegative().nullable(),entropy:e.number().nonnegative().nullable(),meanTokenAccuracy:e.number().min(0).max(1).nullable(),preferenceAccuracy:e.number().min(0).max(1).nullable().default(null),preferenceMargin:e.number().nullable().default(null),chosenReward:e.number().nullable().default(null),rejectedReward:e.number().nullable().default(null),chosenLogProbability:e.number().nullable().default(null),rejectedLogProbability:e.number().nullable().default(null),reward:e.number().nullable().default(null),policyLoss:e.number().nullable().default(null),advantageLoss:e.number().nullable().default(null),inputTokensSeen:e.number().int().nonnegative().nullable(),memoryBytes:e.number().int().nonnegative().nullable(),elapsedSeconds:e.number().nonnegative().nullable()})),Yn=u(()=>({schemaVersion:e.literal("openpond.policyOptimizationMetric.v1"),method:e.enum(["grpo","ppo"]),step:e.number().int().nonnegative(),timestamp:b,learningRate:e.number().nonnegative().nullable().default(null),policyLoss:e.number().nullable(),valueLoss:e.number().nullable(),gradientNorm:e.number().nonnegative().nullable().default(null),meanReward:e.number().nullable(),meanReturn:e.number().nullable(),kl:e.number().nullable(),behaviorPolicyKlPreUpdate:e.number().nonnegative().nullable().default(null),entropy:e.number().nullable(),policyClipFraction:e.number().min(0).max(1).nullable(),behaviorPolicyClipFractionPreUpdate:e.number().min(0).max(1).nullable().default(null),valueClipFraction:e.number().min(0).max(1).nullable(),explainedVariance:e.number().nullable(),rolloutLearnerLag:e.number().int().nonnegative().nullable(),inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),environmentExecutions:e.number().int().nonnegative(),trajectoryCount:e.number().int().nonnegative().nullable().default(null),costUsd:e.number().nonnegative().nullable()})),Kn=u(()=>({schemaVersion:e.literal("openpond.managedTrainingRunEvidence.v2"),provider:a,providerRunId:a,state:a,progress:e.object({targetOptimizerSteps:e.number().int().nonnegative(),committedOptimizerSteps:e.number().int().nonnegative(),skippedOptimizerSteps:e.number().int().nonnegative()}),reward:e.object({finalMean:e.number().nullable(),variance:e.number().nonnegative().nullable(),minimum:e.number().nullable(),maximum:e.number().nullable(),distinctValueCount:e.number().int().nonnegative(),noSignalGroupCount:e.number().int().nonnegative(),trajectoryCount:e.number().int().nonnegative(),eligibleTrajectoryCount:e.number().int().nonnegative()}),usage:e.object({inputTokens:e.number().int().nonnegative(),outputTokens:e.number().int().nonnegative(),environmentExecutions:e.number().int().nonnegative()}),resource:e.object({provider:a,gpuType:e.string().trim().min(1).max(300).nullable(),gpuCount:e.number().int().nonnegative().nullable(),hourlyCostUsd:e.number().nonnegative().nullable(),durationSeconds:e.number().nonnegative().nullable(),gpuSeconds:e.number().nonnegative().nullable()}),cost:e.object({totalUsd:e.number().nonnegative().nullable()}),checkpoint:e.object({id:a,policyVersion:e.number().int().nonnegative(),sha256:m.nullable(),sizeBytes:e.number().int().nonnegative().nullable()}).nullable(),movement:e.object({adapterDeltaNorm:e.number().nonnegative().nullable()}),evaluations:e.array(e.object({reference:e.object({id:a,contentHash:m}).nullable().optional(),kind:e.enum(["baseline","candidate"]),policyVersion:e.number().int().nonnegative(),taskCount:e.number().int().nonnegative().nullable().optional(),targetTaskCount:e.number().int().nonnegative().nullable().optional(),score:e.number().nullable(),threshold:e.number().nullable(),passed:e.boolean().nullable()})),canonicalPublication:e.object({state:a.nullable(),artifactId:a.nullable()}),syncedAt:b})),Rt=u(()=>({count:e.number().int().nonnegative(),scoredCount:e.number().int().nonnegative(),meanScore:e.number().min(0).max(1).nullable(),passedCount:e.number().int().nonnegative(),passRate:e.number().min(0).max(1).nullable()})),It=u(()=>({status:e.enum(["scored","unavailable"]),score:e.number().min(0).max(1).nullable(),passed:e.boolean(),rewardEligible:e.boolean(),failureClass:e.enum(["policy_failure","grader_failure","environment_failure","infrastructure_failure","timeout","cancelled"]).nullable(),feedback:e.array(e.string().trim().min(1).max(2e4)).max(1e3),components:e.array(e.object({graderId:a,score:e.number().min(0).max(1).nullable(),passed:e.boolean(),feedback:e.string().trim().max(2e4).nullable()})).max(1e3)})),Qn=u(()=>({taskId:a,input:e.record(e.string(),e.unknown()),baseOutput:e.record(e.string(),e.unknown()).nullable(),trainedOutput:e.record(e.string(),e.unknown()).nullable(),baseGrade:It.nullable(),trainedGrade:It.nullable()})),Zn=u(()=>({schemaVersion:e.literal("openpond.trainingEvaluationSummary.v1"),jobId:a,tasksetId:a,base:Rt,trained:Rt,meanScoreDelta:e.number().min(-1).max(1).nullable(),examples:e.array(Qn).max(1e6)})),yr=u(()=>({schemaVersion:e.literal("openpond.trainingRunDetail.v1"),job:Tt,events:e.array(Jn),stepMetrics:e.array(Wn),policyMetrics:e.array(Yn).default([]),managedEvidence:Kn.nullable().default(null),evaluation:Zn.nullable(),generatedAt:b})),Xn=u(()=>({schemaVersion:e.literal("openpond.trainingArtifact.v1"),id:a,jobId:a,kind:e.enum(["adapter","checkpoint","metrics","log","manifest","evaluation"]),path:e.string().trim().min(1).max(4e3),sha256:m,sizeBytes:e.number().int().nonnegative(),baseModelId:a.nullable(),baseModelRevision:e.string().trim().min(1).max(256).nullable(),tokenizerRevision:e.string().trim().min(1).max(256).nullable(),chatTemplateHash:m.nullable(),nonProduction:e.boolean(),createdAt:b,metadata:O})),ea=u(()=>({schemaVersion:e.literal("openpond.modelArtifactLineage.v1"),id:a,modelId:a,artifactId:a,jobId:a,tasksetId:a,tasksetHash:m,graderHash:m,planHash:m,bundleHash:m,recipeHash:m,workerVersion:e.string().trim().min(1).max(256),trainerVersion:e.string().trim().min(1).max(256),importedAt:b,frozenEvaluationArtifactId:a.nullable(),promotable:e.boolean(),pinned:e.boolean().default(!1),status:e.enum(["imported","rejected"]).default("imported"),rejectedAt:b.nullable().default(null),rejectionReason:e.string().trim().min(1).max(5e3).nullable().default(null),chatConfiguration:he.default(bt),managedServing:gt.nullable().default(null)})),ta=e.enum(["chat_manual","agent","extension","authoring_optimizer"]),na=u(()=>({schemaVersion:e.literal("openpond.modelBinding.v1"),id:a,profileId:a,role:ta,roleTargetId:a,modelArtifactLineageId:a,tasksetId:a,evaluationArtifactId:a.nullable(),status:e.enum(["active","rolled_back"]),priorBindingId:a.nullable(),rollbackTargetBindingId:a.nullable(),promotedBy:a,promotedAt:b,rolledBackAt:b.nullable(),metadata:O})),_r=u(()=>({schemaVersion:e.literal("openpond.trainingActivity.v1"),profileId:a,active:e.boolean(),activeCounts:e.object({jobs:e.number().int().nonnegative(),creations:e.number().int().nonnegative(),minerRuns:e.number().int().nonnegative(),datasetImports:e.number().int().nonnegative()}),revision:m,generatedAt:b})),kr=u(()=>({schemaVersion:e.literal("openpond.tasksetOperationalState.v1"),tasksetId:a,attempts:e.array(Ee),artifacts:e.array(He),grades:e.array(Oe),evaluationResults:e.array(je).default([]),generatedAt:b})),Rr=u(()=>({schemaVersion:e.literal("openpond.trainingState.v1"),profileId:a,sources:e.array(Ce),creations:e.array(Ve),tasksetDrafts:e.array(we).default([]),tasksets:e.array(ae),benchmarkRuns:e.array(e.custom()).default([]),benchmarkComparisons:e.array(e.custom()).default([]),datasetImports:e.array(Ne).default([]),datasetArtifacts:e.array(ne).default([]),graderAuditReports:e.array(ze),evaluationResults:e.array(e.custom()).default([]),candidates:e.array(ce),minerConfig:q,minerRuns:e.array(Ge).default([]),modelProjects:e.array($n).default([]),modelVersions:e.array(tt).default([]),modelRuns:e.array(rt).default([]),comparisonSeries:e.array(We).default([]),comparisonSeriesEntries:e.array(Ke).default([]),modelCurrencySnapshots:e.array(st).default([]),continualBenchIssueReviews:e.array(mt).default([]),continualLearningDailyBatches:e.array(lt).default([]),rewardModelVersions:e.array(nt).default([]),rewardModelRuns:e.array(at).default([]),modelTasksets:e.array(ae).default([]),plans:e.array(jt),bundles:e.array(_e),jobs:e.array(Tt),artifacts:e.array(Xn),models:e.array(ea),rolloutReceipts:e.array(kt).default([]),modelBindings:e.array(na).default([]),destinations:e.array(Dn),baseModelCandidates:e.array(Ln).default([]),activityRevision:m.optional(),generatedAt:b}));export{qe as a,Pt as b,Ue as c,Ne as d,ya as e,_a as f,Dt as g,ce as h,q as i,Ta as j,Aa as k,Ge as l,Lt as m,We as n,Gt as o,Wt as p,Yt as q,A as r,Ke as s,Ea as t,tt as u,nt as v,en as w,at as x,rn as y,sn as z,rt as A,ai as B,st as C,$ as D,bi as E,lt as F,mt as G,J as H,he as I,gt as J,hn as K,ji as L,ye as M,wi as N,ft as O,fn as P,Pi as Q,vt as R,Z as S,Ei as T,St as U,yt as V,_t as W,Hi as X,An as Y,Oi as Z,kt as _,z as $,br as aa,Vn as ba,Dn as ca,Ln as da,Un as ea,$n as fa,jt as ga,_e as ha,fr as ia,vr as ja,xr as ka,Sr as la,Tt as ma,Jn as na,Wn as oa,Yn as pa,Kn as qa,Zn as ra,yr as sa,Xn as ta,ea as ua,ta as va,na as wa,kr as xa};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as k}from"./chunk-
|
|
2
|
+
import{a as k}from"./chunk-65WRWLUD.js";import{a as S}from"./chunk-VFH5C6D2.js";import{a as u,d}from"./chunk-EYTTZ5H4.js";import{i as R,j as h}from"./chunk-DKOVZ6R2.js";import{f as m,g}from"./chunk-ZY32SZ2P.js";import{n as P}from"./chunk-RCT3O3HQ.js";import{a}from"./chunk-FTQLQJQV.js";async function H(e){if(!e.repositoryId.trim())throw new Error("Explicit Profile source requires a repository ID.");let o=await h(e),n=await e.store.getHarnessWorkspace(e.workspaceId);if(n){let s=n.currentChannel.release;if(n.ownerScope.kind!=="personal"||n.ownerScope.id!==e.ownerId||n.sourceRevision!==o.sourceRevision||s?.id!==o.harnessRelease.id||s.contentHash!==o.harnessRelease.contentHash)throw new Error("Explicit Profile source changed under its accepted revision.");let i=await e.store.getHarnessReleaseRecord(s.contentHash);if(!i)throw new Error("Explicit Profile source release is missing after restore.");return i}let r=await R({...e,id:e.workspaceId,selectionEligible:!1});if(r.release.harnessRelease.contentHash!==o.harnessRelease.contentHash||r.workspace.sourceRevision!==o.sourceRevision)throw new Error("Explicit Profile source changed during import.");return r.release}a(H,"ensureExplicitProfileHarnessSource");import{promises as w}from"node:fs";import c from"node:path";var y=new WeakMap;async function N(e){let{profile:o,ref:n}=e;if(o.mode!=="local"||!o.sourcePath||o.error||o.activeProfile!==n.profileId||!o.git?.head||o.git.dirty)throw new Error("Select a clean, committed Profile before loading its workflows.");let r=`${S}${P({ref:n,sourceRevision:o.git.head}).slice(0,24)}`,s=y.get(e.store);s||(s=new Map,y.set(e.store,s));let i=s.get(r);if(i)return i;let t=I({...e,workspaceId:r});s.set(r,t);try{return await t}finally{s.delete(r)}}a(N,"ensureLocalProfileWorkflows");async function I(e){let o=e.profile.git.head,n=await H({store:e.store,storeDir:e.storeDir,workspaceId:e.workspaceId,ownerId:u,name:e.profile.activeProfile,profile:e.profile,sourceRevision:o,repositoryId:e.ref.repositoryId}),r=await W({store:e.store,release:n,ref:e.ref,sourceRevision:o});if(e.reloadProfile){let s=await e.reloadProfile();if(s.git?.head!==o||s.git.dirty)throw new Error("Profile source changed during workflow loading; retry from its committed revision.")}return r}a(I,"loadProfileWorkflows");async function W(e){let o={id:e.release.harnessRelease.id,contentHash:e.release.harnessRelease.contentHash};if(!e.release.harnessRelease.files.some(t=>t.path==="workflows/catalog.json"))return{profileRef:e.ref,sourceRevision:e.sourceRevision,harnessRelease:o,workflows:[]};let{runtime:n,catalog:r,catalogHash:s}=await p(e.store,o),i=n.release.harnessRelease.metadata.profile;if(!i||typeof i!="object"||i.id!==e.ref.profileId||i.sourceRevision!==e.sourceRevision)throw new Error("Selected Profile workflow release differs from its accepted source.");return{profileRef:e.ref,sourceRevision:e.sourceRevision,harnessRelease:o,workflows:r.workflows.map(t=>({workflow:t,binding:{schemaVersion:"openpond.profileWorkflowBinding.v1",profileId:e.ref.profileId,sourceRevision:e.sourceRevision,harnessRelease:o,catalogHash:s,workflowId:t.id}}))}}a(W,"profileWorkflowsForRelease");async function T(e,o){if(o.profileComponentBinding){if(o.profileWorkflowBinding||o.currentProfile?.profileId!==o.profileComponentBinding.profileId)throw new Error("Profile component binding differs from the session Profile reference.");return E({store:e,binding:o.profileComponentBinding})}if(!o.profileWorkflowBinding)return k(e,o.id);if(o.currentProfile?.profileId!==o.profileWorkflowBinding.profileId)throw new Error("Profile workflow binding differs from the session Profile reference.");let{runtime:n,workflow:r,action:s}=await b({store:e,binding:o.profileWorkflowBinding});return{...n,workflow:r,...s?{workflowAction:s}:{}}}a(T,"loadLocalHarnessRuntimeForSession");async function E(e){let{binding:o,store:n}=e,r=await d(n,o.harnessRelease);if(!r)throw new Error("The bound Profile component Harness release is unavailable.");let s=r.release.harnessRelease.metadata.profile;if(!s||typeof s!="object"||s.id!==o.profileId||s.sourceRevision!==o.sourceRevision)throw new Error("Profile component binding differs from its released source.");let i=o.target;if(i.kind==="profile")return r;if(i.kind==="skill"){if(!r.release.agentSnapshot?.skills.some(v=>v.path===i.skillPath)||!r.release.bundlePath)throw new Error("Bound Profile Skill is unavailable in its released source.");let f=await w.readFile(c.join(r.release.bundlePath,"source",i.skillPath),"utf8");return{...r,instructionContext:[r.instructionContext,`Released Profile Skill (${i.skillPath}):
|
|
3
3
|
${f}`].join(`
|
|
4
4
|
|
|
5
5
|
`)}}let l=(await p(n,o.harnessRelease)).actions.find(f=>f.id===i.actionId);if(!l)throw new Error("Bound Profile Agent action is unavailable in its released source.");return{...r,workflowAction:l}}a(E,"loadLocalProfileComponentRuntime");async function b(e){let{runtime:o,catalog:n,catalogHash:r,actions:s}=await p(e.store,e.binding.harnessRelease),i=g({binding:e.binding,harnessRelease:o.release.harnessRelease,catalog:n,catalogHash:r}),t=i.invocation.kind==="agent_action"?i.invocation.actionId:null,l=t?s.find(f=>f.id===t):void 0;if(t&&!l)throw new Error(`Bound Profile action ${t} is missing from its release.`);return{runtime:o,workflow:i,...l?{action:l}:{}}}a(b,"loadLocalProfileWorkflowRuntime");async function p(e,o){let n=await d(e,o);if(!n)throw new Error("The bound Profile workflow Harness release is unavailable.");let r=c.join(n.release.bundlePath,"source"),[s,i]=await Promise.all([w.readFile(c.join(r,"workflows","catalog.json")),w.readFile(c.join(r,"workflows","actions.json"))]),{catalog:t,catalogHash:l,actions:f}=m({agentSnapshot:n.release.agentSnapshot,harnessRelease:n.release.harnessRelease,catalogBytes:s,actionBytes:i});return{runtime:n,catalog:t,catalogHash:l,actions:f}}a(p,"loadLocalProfileWorkflowCatalog");export{H as a,N as b,W as c,T as d};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{Di as f,Hh as u,Ie as c,Kh as m,Lh as E,Mh as g,Mi as A,Sh as w,fe as h}from"./chunk-6D3FI2XT.js";import{c as n,f as d,h as l}from"./chunk-3M53YXEI.js";import{a as p}from"./chunk-FTQLQJQV.js";var M=new Set(["hosted-alphaedit-capability","hosted-compile-alphaedit","hosted-prepare-alphaedit","hosted-start-alphaedit","hosted-cancel-alphaedit","hosted-alphaedit-execution","hosted-alphaedit-executions","hosted-save-alphaedit-model","hosted-control-alphaedit-serving","hosted-alphaedit-serving"]);async function k(S){let{action:t,target:s,teamId:i,options:o,client:a,readInput:x}=S;if(t==="hosted-alphaedit-execution"){if(!s)throw new Error("Supply the original AlphaEdit execution ID.");return a.getAlphaEditExecution(i,s)}if(t==="hosted-alphaedit-executions"){if(s)throw new Error("List AlphaEdit executions using filters.");let e=w.parse(Object.fromEntries(Object.entries({id:n(o,"id")||void 0,projectId:n(o,"projectId")||void 0,phase:n(o,"phase")||void 0,cursor:n(o,"cursor")||void 0,limit:l(o.limit,"--limit")}).filter(([,y])=>y!==void 0)));return a.listAlphaEditExecutions(i,e)}let r=await x();if(t==="hosted-alphaedit-serving"){let e=f.parse(r);return a.alphaEditModelServing(e.modelProjectId,{teamId:i,versionHash:e.versionHash})}if(t==="hosted-control-alphaedit-serving"){let e=A.parse(r);if(e.request.teamId!==i)throw new Error("Use the Model's original workspace.");if(e.request.action==="activate"&&!d(o.yes))throw new Error("Activating billed serving capacity requires --yes.");return a.controlAlphaEditModelServing(e.modelProjectId,e.request)}if(t==="hosted-alphaedit-capability"){let e=h.parse(r);if(e.teamId!==i)throw new Error("Use this input's original workspace.");return a.alphaEditExecutionCapability(e)}if(t==="hosted-compile-alphaedit"){let e=u.parse(r);if(e.teamId!==i)throw new Error("Use this input's original workspace.");return a.compileAlphaEditExecution(e)}if(t==="hosted-prepare-alphaedit"){let e=m.parse(r);if(e.teamId!==i)throw new Error("Use this input's original workspace.");return a.prepareAlphaEditExecution(e)}if(t==="hosted-start-alphaedit"){let e=E.parse(r);if(e.teamId!==i)throw new Error("Use this execution's original workspace.");if(!d(o.yes))throw new Error("Starting paid AlphaEdit execution requires --yes.");return a.startAlphaEditExecution(e)}if(t==="hosted-cancel-alphaedit"){let e=g.parse(r);if(e.teamId!==i)throw new Error("Use this execution's original workspace.");return a.cancelAlphaEditExecution(e)}if(t==="hosted-save-alphaedit-model"){let e=c.parse(r);if(e.teamId!==i)throw new Error("Use this result's original workspace.");return a.saveAlphaEditResultModel(e)}throw new Error("Unsupported AlphaEdit command.")}p(k,"runHostedAlphaEditCommand");export{M as a,k as b};
|