openpond 0.2.66 → 0.2.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-server.d.ts +691 -1
- package/dist/app-server.js +1 -1
- package/dist/chunks/{account-context-TIJOM22A.js → account-context-MWB6HN6I.js} +1 -1
- package/dist/chunks/{acp-YYZ3ZO3Q.js → acp-2OIXATRY.js} +1 -1
- package/dist/chunks/{acp-agent-T26S7TU2.js → acp-agent-PAGX2B47.js} +1 -1
- package/dist/chunks/actions-command-2VE6YI4W.js +2 -0
- package/dist/chunks/{app-layer-5XUMNHDO.js → app-layer-YNEUEOEP.js} +1 -1
- package/dist/chunks/{app-server-connected-apps-IB6M35NS.js → app-server-connected-apps-TZOAUOYR.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-GBX65JJ7.js +2 -0
- package/dist/chunks/apps-RSFEJOQN.js +2 -0
- package/dist/chunks/chunk-2PXKSAG6.js +2 -0
- package/dist/chunks/{chunk-GRLQHYAU.js → chunk-2TGHZXJE.js} +2 -2
- package/dist/chunks/{chunk-YU4JYWCA.js → chunk-3A2Y7UK3.js} +1 -1
- package/dist/chunks/chunk-3Z4VM2LF.js +4 -0
- package/dist/chunks/chunk-4BUM6JEC.js +33 -0
- package/dist/chunks/chunk-4G3GTEVS.js +23 -0
- package/dist/chunks/{chunk-FUFI4THX.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-2GJD23CM.js → chunk-65WRWLUD.js} +1 -1
- package/dist/chunks/chunk-6D3FI2XT.js +2 -0
- package/dist/chunks/chunk-73TW6BKK.js +6 -0
- package/dist/chunks/{chunk-6S2MWJVD.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-NTM3KQ25.js → chunk-7PKDJHT6.js} +1 -1
- package/dist/chunks/chunk-7RJOCGQ6.js +2 -0
- package/dist/chunks/{chunk-SAZTOGX6.js → chunk-7RSQOC5M.js} +3 -3
- package/dist/chunks/{chunk-6TRVEA3T.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-APKXXAUF.js +2 -0
- 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-EVQISX7M.js → chunk-B66QCXH2.js} +1 -1
- package/dist/chunks/{chunk-S6UCVXBC.js → chunk-BHKXPWFB.js} +1 -1
- package/dist/chunks/chunk-BU6MW65V.js +10 -0
- package/dist/chunks/{chunk-C5B3FMV3.js → chunk-CCZ276IA.js} +1 -1
- package/dist/chunks/{chunk-LYVHYT3L.js → chunk-CIZI6Z7D.js} +1 -1
- package/dist/chunks/{chunk-4D3CICBG.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-ZU3YBRXS.js → chunk-DKOVZ6R2.js} +3 -3
- package/dist/chunks/chunk-DRLP7GIU.js +2 -0
- package/dist/chunks/{chunk-DAEUVT2I.js → chunk-DRTHKWHK.js} +1 -1
- package/dist/chunks/{chunk-W22KWKF6.js → chunk-DWF3FCY4.js} +1 -1
- package/dist/chunks/{chunk-NABPZ7AK.js → chunk-DWM5G7BU.js} +1 -1
- package/dist/chunks/chunk-DXJC3QW7.js +2 -0
- package/dist/chunks/{chunk-V3S2B6WU.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-WKHGXLJD.js → chunk-EGP6DF34.js} +2 -2
- package/dist/chunks/{chunk-M5QPL5NO.js → chunk-ESYPMD7Q.js} +1 -1
- package/dist/chunks/{chunk-PWKJ5KLZ.js → chunk-EXYSD45J.js} +1 -1
- package/dist/chunks/{chunk-XHBMK6LC.js → chunk-EYTTZ5H4.js} +1 -1
- package/dist/chunks/chunk-FKUWCJ73.js +161 -0
- package/dist/chunks/{chunk-U2BD545L.js → chunk-FNGZ4UDZ.js} +1 -1
- package/dist/chunks/{chunk-JFZ6USNQ.js → chunk-G7X73SBG.js} +1 -1
- package/dist/chunks/{chunk-36FNNR5N.js → chunk-GEYZVOGD.js} +1 -1
- package/dist/chunks/{chunk-ULJZ7NUF.js → chunk-GY7YSD6J.js} +1 -1
- package/dist/chunks/{chunk-JLW5BQVO.js → chunk-GYYJ47GX.js} +1 -1
- package/dist/chunks/chunk-HG2YFMVU.js +4 -0
- package/dist/chunks/{chunk-BTJACFU3.js → chunk-HKVFU3B3.js} +1 -1
- package/dist/chunks/chunk-IHAEZ73V.js +2 -0
- package/dist/chunks/{chunk-LI3FTPAH.js → chunk-IIT66347.js} +4 -4
- package/dist/chunks/{chunk-Q4AXZY2P.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-7P5SH3CI.js → chunk-JPUSTFZC.js} +1 -1
- package/dist/chunks/{chunk-5AU5Y6KS.js → chunk-JQOVC35K.js} +1 -1
- package/dist/chunks/{chunk-VS3AMJEK.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-OTUS7NTQ.js → chunk-K7KBFM2T.js} +1 -1
- package/dist/chunks/{chunk-FS2VKOT7.js → chunk-KCLMA2IH.js} +1 -1
- package/dist/chunks/chunk-KDER7R45.js +2 -0
- package/dist/chunks/{chunk-WBO6FQHR.js → chunk-KOC3YJEU.js} +2 -2
- package/dist/chunks/{chunk-6ZTP6CUJ.js → chunk-KP2MYTP5.js} +1 -1
- package/dist/chunks/{chunk-YRDPVTEI.js → chunk-KU4TPDPH.js} +2 -2
- package/dist/chunks/{chunk-WJSJXK2N.js → chunk-KUE46HTH.js} +1 -1
- package/dist/chunks/chunk-LVXL7T5O.js +2 -0
- package/dist/chunks/{chunk-5KWKSR4P.js → chunk-M4A7G4S5.js} +2 -2
- package/dist/chunks/{chunk-KAWXVMHI.js → chunk-M4ZHFDRJ.js} +1 -1
- package/dist/chunks/{chunk-HX6GXMDK.js → chunk-MEJLWNRS.js} +1 -1
- package/dist/chunks/{chunk-B666Z2NS.js → chunk-MIFVX5PK.js} +1 -1
- package/dist/chunks/{chunk-66HFW4OU.js → chunk-MOXIGLN2.js} +1 -1
- package/dist/chunks/{chunk-7XOUM6RK.js → chunk-N5EAVX4G.js} +1 -1
- package/dist/chunks/{chunk-Z2TOBS3P.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-4TTXNVCE.js → chunk-OFJPOTES.js} +1 -1
- package/dist/chunks/chunk-OIH2LPIT.js +2 -0
- package/dist/chunks/chunk-OUJ63LMU.js +2 -0
- package/dist/chunks/{chunk-DXA2UHBE.js → chunk-P4QM63L3.js} +1 -1
- package/dist/chunks/chunk-PACLKDTN.js +2 -0
- package/dist/chunks/{chunk-AF3AVDPP.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-W7NXFRHN.js → chunk-PNPV2LDE.js} +1 -1
- package/dist/chunks/{chunk-DSJZS77R.js → chunk-PSY6IRJE.js} +8 -8
- package/dist/chunks/{chunk-UK5LGSGT.js → chunk-Q73RKX7I.js} +1 -1
- package/dist/chunks/{chunk-PLVWARB7.js → chunk-Q7FBVLLB.js} +1 -1
- package/dist/chunks/{chunk-QAEZNFAM.js → chunk-Q7P34B2O.js} +1 -1
- package/dist/chunks/{chunk-QYQZQVVN.js → chunk-QLGP2OAQ.js} +1 -1
- package/dist/chunks/{chunk-GIU3Z45P.js → chunk-QUNQM2E3.js} +1 -1
- package/dist/chunks/chunk-R2FYCJL6.js +2 -0
- package/dist/chunks/{chunk-KOKBDIGR.js → chunk-R4EEGWXB.js} +1 -1
- package/dist/chunks/chunk-RBTDSI4L.js +11 -0
- package/dist/chunks/chunk-RCQYEHHD.js +2 -0
- 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-67HXM6AL.js → chunk-SDHG6CKU.js} +1 -1
- package/dist/chunks/{chunk-DIDQHTAX.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-BJXPQIVD.js → chunk-U7D6Q744.js} +1 -1
- package/dist/chunks/chunk-U7X5ZLAL.js +2 -0
- package/dist/chunks/{chunk-LARJARMS.js → chunk-UANH7U3Y.js} +1 -1
- package/dist/chunks/{chunk-CYQLXS2U.js → chunk-UGFSAG4U.js} +1 -1
- package/dist/chunks/chunk-ULTV6INR.js +2 -0
- package/dist/chunks/{chunk-FHLSLOKH.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-5Z3AU5CL.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-GFAI2MCJ.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-UXPO3ZV7.js → chunk-XQAUHXL4.js} +4 -4
- package/dist/chunks/{chunk-OXRVILDW.js → chunk-XT4CSKHM.js} +1 -1
- package/dist/chunks/{chunk-QJJNHKLT.js → chunk-XY7HFXLH.js} +1 -1
- package/dist/chunks/{chunk-ZUT4EM64.js → chunk-XYZV3FKD.js} +1 -1
- package/dist/chunks/{chunk-7FBWUVX7.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-D7R2AAX2.js → chunk-Z33RVGP6.js} +1 -1
- package/dist/chunks/{chunk-B32CW3NT.js → chunk-ZDEIVUUI.js} +1 -1
- package/dist/chunks/{chunk-IEVJLG3V.js → chunk-ZIQJDTQB.js} +1 -1
- package/dist/chunks/{chunk-GDJ4X2ZN.js → chunk-ZYLLPRPU.js} +1 -1
- package/dist/chunks/cli-R7TAP6Z2.js +2 -0
- package/dist/chunks/command-LNOVZQSK.js +58 -0
- package/dist/chunks/{configuration-command-4WTS2MZS.js → configuration-command-CNITTZRP.js} +1 -1
- package/dist/chunks/connected-app-executor-FGWCLOJO.js +2 -0
- package/dist/chunks/connected-evidence-5VZBYNWN.js +2 -0
- package/dist/chunks/{connected-starting-assets-4LDXQVLN.js → connected-starting-assets-KWOFEIE4.js} +1 -1
- package/dist/chunks/{connection-GDWPMHPC.js → connection-VMBXW5PD.js} +1 -1
- package/dist/chunks/{continual-HQCFY7GN.js → continual-FVOLGGOE.js} +1 -1
- package/dist/chunks/core-commands-BPYXVT7O.js +2 -0
- package/dist/chunks/dataset-preparation-authoring-UUYFWWCT.js +4 -0
- package/dist/chunks/datasets-E5TXSVIY.js +2 -0
- package/dist/chunks/desktop-test-FX7DTY4N.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-KUTZEEPB.js +2 -0
- package/dist/chunks/experiment-improvements-PQNR5YHN.js +2 -0
- package/dist/chunks/experiments-Z4BJWT3Y.js +2 -0
- package/dist/chunks/experiments-signal-3GCLKUWZ.js +2 -0
- package/dist/chunks/{extension-UH34ZF7N.js → extension-3EKIT6BB.js} +1 -1
- package/dist/chunks/{help-JQA3YMCX.js → help-K6YLZ3KL.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-LA3BZ4SE.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-NXVF4AQA.js +2 -0
- package/dist/chunks/human-review-2ZOB7CJZ.js +2 -0
- package/dist/chunks/{import-CLWTKDG6.js → import-YHYKZ6JN.js} +2 -2
- package/dist/chunks/javascript-isolate-process-source-YAT3GPW4.js +2 -0
- package/dist/chunks/javascript-verifier-worker-source-LGRP74W4.js +2 -0
- package/dist/chunks/{learning-XTY5VOTK.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-GHWCKDON.js → model-projects-6YWVD2TS.js} +1 -1
- package/dist/chunks/opchat-XXI2ZM53.js +3 -0
- package/dist/chunks/opchat-bounded-chat-3MZGCRLY.js +2 -0
- package/dist/chunks/organizations-W7HI2JA4.js +2 -0
- package/dist/chunks/{profile-RIDNU2I5.js → profile-P2SJPBOJ.js} +1 -1
- package/dist/chunks/project-action-payload-LTIQBX77.js +2 -0
- package/dist/chunks/project-agent-XRIXMXQK.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-VSOOPNYN.js → runtime-Q7JUJO4D.js} +2 -2
- package/dist/chunks/sandbox-command-HVA5FJU4.js +2 -0
- package/dist/chunks/{sandbox-template-NN3XQI7M.js → sandbox-template-U536EEWY.js} +1 -1
- package/dist/chunks/saved-work-KSIQPXC2.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-662QOKNP.js → src-C3ZUESMK.js} +1 -1
- package/dist/chunks/src-SGQYVBNQ.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-7PDLGRWF.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-G46KIUVT.js → store-create-improve-UTCLBXF2.js} +1 -1
- package/dist/chunks/{store-datasets-O67F75BL.js → store-datasets-4AQOVAQY.js} +1 -1
- package/dist/chunks/store-evaluation-results-PK2P3IMH.js +7 -0
- package/dist/chunks/{store-harness-workspaces-PJJQ74G6.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-6P6IS7GH.js → store-learning-SIUQIY5C.js} +1 -1
- package/dist/chunks/{store-learning-credentials-EGJ2WTZI.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-T6XJJDAB.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-XQFTLMGH.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-VVXZUJIO.js → store-task-inbox-L6IQTY26.js} +1 -1
- package/dist/chunks/{store-task-inventory-MQX44AI6.js → store-task-inventory-QWS2C656.js} +1 -1
- package/dist/chunks/store-taskset-drafts-FRFL6ITK.js +9 -0
- package/dist/chunks/{store-training-DUVIDYK5.js → store-training-FYXZU2FE.js} +1 -1
- package/dist/chunks/{store-training-jobs-HHFH3V5O.js → store-training-jobs-3N3VKPIY.js} +1 -1
- package/dist/chunks/{store-training-models-C7UUZDTO.js → store-training-models-VOFVGPZR.js} +1 -1
- package/dist/chunks/{taskset-7FQCJ55X.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-FXMCOCPP.js → teams-bot-MPWL2PP4.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-checkpoint-evaluation-2X7RSOLC.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-YN5VD3PW.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-report-T633TNJG.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-hosted-workers-Y2PO5IOA.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/types/billing.d.ts +87 -6
- package/dist/sandbox/types/io.d.ts +3 -0
- 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-DuSd0wk6.js → AppDialog-CxjDHVk9.js} +1 -1
- package/dist/web/assets/AppTerminalPanel-CKJIVpKa.js +2 -0
- package/dist/web/assets/{AppToastContext-Dklk6CaG.js → AppToastContext-EpiT1dHs.js} +1 -1
- package/dist/web/assets/AppsView-BsMyPX_3.js +1 -0
- package/dist/web/assets/{AppsView-DNHWzJb2.css → AppsView-D3vVesNd.css} +1 -1
- package/dist/web/assets/{AttachmentTypeIcon-DipNT6Tj.js → AttachmentTypeIcon-BXvZy5gB.js} +1 -1
- package/dist/web/assets/BrowserSidebar-BIIV4aq4.js +1 -0
- package/dist/web/assets/{CartesianChart-UU1sdoUO.js → CartesianChart-brqLBqnF.js} +1 -1
- package/dist/web/assets/ChatTimelineEntry-CwZbn16X.js +8 -0
- package/dist/web/assets/{CollaborationTabs-BWYRQ1PE.js → CollaborationTabs-BU4uc4tZ.js} +1 -1
- package/dist/web/assets/{CommandMenu-B08F9x5g.js → CommandMenu-DkWpXR55.js} +1 -1
- package/dist/web/assets/CommunityView-CsSxJZGn.js +1 -0
- package/dist/web/assets/{ComposerAttachments-srWBKvCv.js → ComposerAttachments-BdJGCYzI.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-DqTpU5cO.js → ComposerCreateImproveStrip-CWy0j1vv.js} +1 -1
- package/dist/web/assets/{ConversationImportsSettings-2KC-KQvu.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-B-iUVPhh.js → FilePagePreview-BRhhz99q.js} +2 -2
- package/dist/web/assets/{GetStartedView-5v0vBWXy.js → GetStartedView-CLVD-qEi.js} +1 -1
- package/dist/web/assets/{GettingStartedDialog-Bn4072K-.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-C2WsMj90.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-C50P74LI.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-Dje-hfUM.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-Clv0IWyn.js → NativeSkillSidebar-Jzx1BeKV.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-Cw_F5Eaa.js → NewProjectDialog-DcnGzEd9.js} +1 -1
- package/dist/web/assets/{OutputsPage-Btyiie4B.js → OutputsPage-Cmk15Vt_.js} +1 -1
- package/dist/web/assets/{PageChrome-BLLw_cEA.js → PageChrome-Cz_fCqtn.js} +1 -1
- package/dist/web/assets/{ProjectsPage-BpSHWQgj.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-WytWGQgw.js → ScheduledWorkPage-CAkSwM0T.js} +1 -1
- package/dist/web/assets/{SettingsView-BJq5zNkv.js → SettingsView-DvQXGw3_.js} +3 -3
- package/dist/web/assets/{TasksetDraftEditorPrimitives-BxFEWI9W.js → TasksetDraftEditorPrimitives-JuU1k8vr.js} +1 -1
- package/dist/web/assets/TeamChatView-DmHjr8W9.js +1 -0
- package/dist/web/assets/{TerminalOverlay-C7OM2F0-.js → TerminalOverlay-DlaM9d8F.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-KH5GFacT.js → TrainingCreationPanel-ClpylNsr.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-DzOw13Md.js → TrainingDraftPanel-6tH2xSDj.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-nZHno_4P.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-1U8DDj1J.js → WorkspaceFileLocation-C5s_njZb.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-BO1EUA3G.js → WorkspaceGitDialogs-DjPZ6KIh.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-Rqq_sKW_.js → WorkspaceMonacoEditor-CC4sfOiU.js} +3 -3
- package/dist/web/assets/{WorkspacePdfPreview-zmmMp09R.js → WorkspacePdfPreview-vszQqFa4.js} +2 -2
- package/dist/web/assets/{WorkspacePresentationPreview-DNbhGjkE.js → WorkspacePresentationPreview-DQTvhaRD.js} +1 -1
- package/dist/web/assets/api-client-DJRVOFzS.js +1 -0
- package/dist/web/assets/{app-models-Cz3yxq4x.js → app-models-BUdzQbXo.js} +1 -1
- package/dist/web/assets/bot-Doyx3T4j.js +1 -0
- package/dist/web/assets/{browser-sidebar-links-ZyYiYBBd.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-3BYFS4RO-ztZjcMmt.js +1 -0
- 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-DolwEJXo.js +2 -0
- 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-CXlWJW5g.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-Cps-05f3.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-Do72TyNy.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-D7igQSAg.js → index-B6XX_0h3.js} +2 -2
- package/dist/web/assets/info-C8b_tafZ.js +1 -0
- package/dist/web/assets/intake-contracts-B8JZKYwb.js +1 -0
- package/dist/web/assets/{jsonMode-B2N7W15Y.js → jsonMode-BCKKQmmV.js} +1 -1
- package/dist/web/assets/loader-circle-y-SSPwpk.js +1 -0
- package/dist/web/assets/{lspLanguageFeatures-DPmyOFVA.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-DqqJBDzF.js → monaco.contribution-B9q6qbbo.js} +2 -2
- package/dist/web/assets/{monaco.contribution-BfOxF9PJ.js → monaco.contribution-BITdsRbn.js} +2 -2
- package/dist/web/assets/{monaco.contribution-DNONXznc.js → monaco.contribution-BqA-XZ44.js} +2 -2
- package/dist/web/assets/{monaco.contribution-CRdTg0FH.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-BCq2Oosd.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-Dm7tOkKo.js → ponder-desktop-Ca-9KggQ.js} +1 -1
- package/dist/web/assets/presentation-0bzvu6_u.js +1 -0
- package/dist/web/assets/{profile-ref-DSNkG6Ol.js → profile-ref-D8lxL7dW.js} +1 -1
- package/dist/web/assets/{python-DuGMr666.js → python-B9hOnkOI.js} +1 -1
- package/dist/web/assets/refresh-cw-D61-Ozk3.js +1 -0
- package/dist/web/assets/{requests-BCbaFiqV.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-wfngGS6Y.js → submit-issue-command-HfKzyxg5.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-cl0cw2QK.js → toggleHighContrast-ClsXu39R.js} +1 -1
- package/dist/web/assets/training-DWfghwfZ.js +1 -0
- package/dist/web/assets/{training-model-data-CWnu1bz9.js → training-model-data-CIysl8wH.js} +4 -4
- package/dist/web/assets/{tsMode-DLEc0PYL.js → tsMode-nbmaMc-D.js} +1 -1
- package/dist/web/assets/upload-C6ug8RD-.js +1 -0
- package/dist/web/assets/{useAccountSettings-ByxjI9BG.js → useAccountSettings-Dr9h4Qz_.js} +1 -1
- package/dist/web/assets/{useAgentInventory-Df64T07n.js → useAgentInventory-ByCk2JAv.js} +1 -1
- package/dist/web/assets/useChatContextSelection-C0eMm2g6.js +1 -0
- package/dist/web/assets/{useLocalAgentSchedules-DNh_x9gQ.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-CnqrOtic.js → workers-DKvM2NdM.js} +1 -1
- package/dist/web/assets/x-Jx2jlP9u.js +1 -0
- package/dist/web/assets/{yaml-C9vtYV4w.js → yaml-C02vq4ar.js} +1 -1
- package/dist/web/index.html +1 -1
- package/docs/command-reference.md +100 -4
- package/package.json +1 -1
- package/dist/chunks/actions-command-VLKMHCMI.js +0 -2
- package/dist/chunks/app-server-evaluations-V6LRWDUF.js +0 -2
- package/dist/chunks/app-server-harness-services-6ZRLA3YD.js +0 -2
- package/dist/chunks/app-server-runtime-TH56EG2Z.js +0 -2
- package/dist/chunks/apps-MNT3KXIY.js +0 -2
- package/dist/chunks/chunk-2W22IXHB.js +0 -2
- package/dist/chunks/chunk-2ZNW6GUU.js +0 -2
- package/dist/chunks/chunk-3BJ7LPE3.js +0 -2
- package/dist/chunks/chunk-3MVKXAH7.js +0 -2
- package/dist/chunks/chunk-4MQHIFZL.js +0 -2
- package/dist/chunks/chunk-55Q64WWF.js +0 -2
- package/dist/chunks/chunk-5KJMFK65.js +0 -2
- package/dist/chunks/chunk-5WPMI6QX.js +0 -2
- package/dist/chunks/chunk-7PKTCMZ6.js +0 -2
- package/dist/chunks/chunk-ANG2YMMD.js +0 -2
- package/dist/chunks/chunk-BQVB2SPF.js +0 -10
- package/dist/chunks/chunk-DMO3UIS7.js +0 -6
- package/dist/chunks/chunk-FEQ7HNJR.js +0 -2
- package/dist/chunks/chunk-G4E3WGLM.js +0 -13
- package/dist/chunks/chunk-H5ML7735.js +0 -2
- package/dist/chunks/chunk-I3NYYOSS.js +0 -2
- package/dist/chunks/chunk-IOSBGCRT.js +0 -2
- package/dist/chunks/chunk-JBFPTEVE.js +0 -2
- package/dist/chunks/chunk-JKI53ED7.js +0 -161
- package/dist/chunks/chunk-JRGECNP3.js +0 -2
- package/dist/chunks/chunk-L4EJ5R3B.js +0 -23
- package/dist/chunks/chunk-LXZLLTYQ.js +0 -2
- package/dist/chunks/chunk-MHPCVQOE.js +0 -2
- package/dist/chunks/chunk-MVPKU72J.js +0 -4
- package/dist/chunks/chunk-OKEC2EIE.js +0 -2
- package/dist/chunks/chunk-OW3EOC5Q.js +0 -4
- package/dist/chunks/chunk-QCJY6FTC.js +0 -3
- package/dist/chunks/chunk-SBQ6KLXB.js +0 -33
- package/dist/chunks/chunk-TVDZXDQW.js +0 -2
- package/dist/chunks/chunk-V3KEG6MI.js +0 -2
- package/dist/chunks/chunk-VD2TQCMH.js +0 -2
- package/dist/chunks/chunk-WLZJOCLA.js +0 -10
- package/dist/chunks/chunk-Y3B6ZUE6.js +0 -22
- package/dist/chunks/chunk-YBKDEEEH.js +0 -2
- package/dist/chunks/chunk-ZWW227M3.js +0 -2
- package/dist/chunks/cli-TE7RP5H7.js +0 -2
- package/dist/chunks/command-NW6BGKOM.js +0 -13
- package/dist/chunks/connected-app-executor-7DYMZCD7.js +0 -2
- package/dist/chunks/connected-evidence-D7C45HYD.js +0 -2
- package/dist/chunks/core-commands-RXPXOYOP.js +0 -2
- package/dist/chunks/dataset-preparation-authoring-KWRTMKN6.js +0 -4
- package/dist/chunks/datasets-LBLEKLCS.js +0 -2
- package/dist/chunks/desktop-test-INJPZ5VP.js +0 -3
- package/dist/chunks/dist-J4KHAVO3.js +0 -2
- package/dist/chunks/evaluation-coordination-3ARLJAFH.js +0 -2
- package/dist/chunks/experiment-improvements-UB4C5CSP.js +0 -2
- package/dist/chunks/experiments-AHHKFJD6.js +0 -2
- package/dist/chunks/experiments-signal-MTR475QV.js +0 -2
- package/dist/chunks/host-profile-evaluation-tools-75EPCRSZ.js +0 -2
- package/dist/chunks/host-profile-external-dataset-YRKG2GL5.js +0 -2
- package/dist/chunks/hosted-app-server-composition-GPXH3BOG.js +0 -2
- package/dist/chunks/hosted-experiment-improvement-NZTPZTDH.js +0 -3
- package/dist/chunks/hosted-harness-runtime-3AJGEIFD.js +0 -2
- package/dist/chunks/hosted-profile-candidate-3CAT3XBI.js +0 -3
- package/dist/chunks/hosted-profile-compiler-RXU626Q6.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-control-CBDRKJ5J.js +0 -2
- package/dist/chunks/hosted-profile-evaluation-inspection-CHYKDYUQ.js +0 -3
- package/dist/chunks/hosted-profile-evaluation-preparation-H5S7JZMD.js +0 -3
- package/dist/chunks/hosted-tasksets-AMGDDB2R.js +0 -2
- package/dist/chunks/human-review-DVHVJXBA.js +0 -2
- package/dist/chunks/javascript-isolate-process-source-ZPQKKLR4.js +0 -2
- package/dist/chunks/javascript-verifier-worker-source-F3LSGPOY.js +0 -2
- package/dist/chunks/learning-NJLTGZFQ.js +0 -2
- package/dist/chunks/local-harness-improvement-runtime-XEA73RGS.js +0 -2
- package/dist/chunks/local-harness-taskset-review-SW35G4DM.js +0 -2
- package/dist/chunks/opchat-LMKH3OWR.js +0 -3
- package/dist/chunks/opchat-bounded-chat-PPOWO7H4.js +0 -2
- package/dist/chunks/organizations-T6ZUSHNJ.js +0 -2
- package/dist/chunks/project-action-payload-2G57RL74.js +0 -2
- package/dist/chunks/project-agent-GBMVDJY3.js +0 -2
- package/dist/chunks/published-experiment-source-D3C2AWQD.js +0 -2
- package/dist/chunks/refiner-profile-service-PPGGNVOV.js +0 -2
- package/dist/chunks/sandbox-command-L5VQ2T6C.js +0 -2
- package/dist/chunks/saved-work-LAVTNKPT.js +0 -2
- package/dist/chunks/setup-TXEM2QSG.js +0 -2
- package/dist/chunks/src-HJHIBDFX.js +0 -424
- package/dist/chunks/standalone-experiment-turn-owner-KKYIGGPF.js +0 -2
- package/dist/chunks/store-chat-resources-ZWDYMDJF.js +0 -2
- package/dist/chunks/store-conversation-serving-WRT4N7N2.js +0 -2
- package/dist/chunks/store-evaluation-results-BEPR4LVD.js +0 -7
- package/dist/chunks/store-human-review-HJ3D7ZFA.js +0 -7
- package/dist/chunks/store-learned-preference-migration-validation-EXNRDHCO.js +0 -2
- package/dist/chunks/store-local-experiments-CBJA56X2.js +0 -97
- package/dist/chunks/store-model-batch-review-YIVD7T2T.js +0 -2
- package/dist/chunks/store-model-project-preparation-WWU5CJTV.js +0 -2
- package/dist/chunks/store-taskset-drafts-G3WFVN4M.js +0 -9
- package/dist/chunks/taskset-packages-NRRPON7B.js +0 -2
- package/dist/chunks/taskset-packages-RW4SFGDU.js +0 -2
- package/dist/chunks/tool-learning-O7QTTEDB.js +0 -2
- package/dist/chunks/training-XFM3OOPN.js +0 -2
- package/dist/chunks/training-XILDD5RG.js +0 -2
- package/dist/chunks/training-hosted-6BX2IASC.js +0 -2
- package/dist/chunks/training-hosted-checkpoint-evaluation-UXFW33QL.js +0 -2
- package/dist/chunks/training-hosted-report-UVGTPDOK.js +0 -2
- package/dist/chunks/training-hosted-serving-report-J4YOZLRP.js +0 -2
- package/dist/chunks/training-hosted-workers-6JTDCCWA.js +0 -2
- package/dist/chunks/training-model-start-E5MP3URL.js +0 -2
- package/dist/chunks/web-search-56QRZGPR.js +0 -2
- package/dist/web/assets/App-CNQi3RlI.js +0 -53
- package/dist/web/assets/AppTerminalPanel-DLz34eSs.js +0 -2
- package/dist/web/assets/AppsView-DkCMr67-.js +0 -1
- package/dist/web/assets/BrowserSidebar-BBaaanMS.js +0 -1
- package/dist/web/assets/ChatTimelineEntry-Ct59FKw1.js +0 -8
- package/dist/web/assets/CommunityView-BLTlSxyb.js +0 -1
- package/dist/web/assets/HostedModelLearningReview-DWF6WPao.js +0 -1
- package/dist/web/assets/HostedModelLearningSettings-BYl-2j7B.js +0 -1
- package/dist/web/assets/LabModelVersionDetailPage-CQz29DwD.js +0 -1
- package/dist/web/assets/LabsRoute-CE45yAXJ.css +0 -1
- package/dist/web/assets/LabsRoute-DJRgF1kQ.js +0 -101
- package/dist/web/assets/MainChatThread-gwmhe1Nw.js +0 -2
- package/dist/web/assets/MainPane-CqtgV9rU.js +0 -10
- package/dist/web/assets/NativeSetupTerminal-DrQldDsG.js +0 -2
- package/dist/web/assets/RightChatPanelStack-xW5rKbp0.js +0 -1
- package/dist/web/assets/RightSidebarHomePanel-BDmIxvIm.js +0 -1
- package/dist/web/assets/TeamChatView-BisSMAXy.js +0 -1
- package/dist/web/assets/TrainingRunLineage-B2WBOchk.js +0 -1
- package/dist/web/assets/WorkSidebarPanel-D3Ub_jVj.js +0 -1
- package/dist/web/assets/WorkspaceDiffPanel-CyTa8Cjs.js +0 -11
- package/dist/web/assets/WorkspaceEnvironmentMenu-CtZzxQ1e.js +0 -35
- package/dist/web/assets/api-client-Dgz-fOMl.js +0 -1
- package/dist/web/assets/bot-D-eTQib6.js +0 -1
- package/dist/web/assets/chat-resources-CTN4f6KC.js +0 -1
- package/dist/web/assets/chevron-down-75im8nFF.js +0 -1
- package/dist/web/assets/chevron-right-CpbCIUFo.js +0 -1
- package/dist/web/assets/chevron-up-BD8jg0bQ.js +0 -1
- package/dist/web/assets/chunk-GJRXJL6G-pJp1DyJd.js +0 -9
- package/dist/web/assets/chunk-H3JZ3P5T-B0SCoPw4.js +0 -2
- package/dist/web/assets/chunk-TLSP5JKG-DZmxtX-4.js +0 -1
- package/dist/web/assets/cloud-upload-4lP-5zmp.js +0 -1
- package/dist/web/assets/common-BMjyKlX-.js +0 -1
- package/dist/web/assets/contracts-BLiqJxBv.js +0 -1
- package/dist/web/assets/copy-DRnATDDY.js +0 -1
- package/dist/web/assets/create-pipeline-CyUZrbbO.js +0 -1
- package/dist/web/assets/createLucideIcon-CmkSm39S.js +0 -1
- package/dist/web/assets/external-link-D_nBEDFO.js +0 -1
- package/dist/web/assets/folder-open-tD5Lle1M.js +0 -1
- package/dist/web/assets/folder-plus-DlZ4hM48.js +0 -1
- package/dist/web/assets/git-commit-horizontal-g8KBhvfr.js +0 -1
- package/dist/web/assets/icons-B8_Rkg-l.js +0 -1
- package/dist/web/assets/image-CUZMnZYi.js +0 -1
- package/dist/web/assets/info-SmuBZiE5.js +0 -1
- package/dist/web/assets/intake-contracts-BW0Y0C2R.js +0 -1
- package/dist/web/assets/loader-circle-D_KVxLLz.js +0 -1
- package/dist/web/assets/maximize-2-B8HN3jsA.js +0 -1
- package/dist/web/assets/message-square-CrDvzn66.js +0 -1
- package/dist/web/assets/models-route-CWcJuOd0.js +0 -1
- package/dist/web/assets/monitor-CW-M_aaj.js +0 -1
- package/dist/web/assets/paperclip-DL449Io5.js +0 -1
- package/dist/web/assets/play-DYLqBrwg.js +0 -1
- package/dist/web/assets/plus-DXZIpQuY.js +0 -1
- package/dist/web/assets/presentation-CupIXaYv.js +0 -1
- package/dist/web/assets/refresh-cw-CzVf5_oo.js +0 -1
- package/dist/web/assets/reward-checks-Bcq9ETCA.js +0 -7
- package/dist/web/assets/save-DatjrYPV.js +0 -1
- package/dist/web/assets/schemas-lO3MoWQr.js +0 -64
- package/dist/web/assets/settings-D7C-Auyi.js +0 -21
- package/dist/web/assets/settings-lists-D2ol3uNK.js +0 -5
- package/dist/web/assets/square-BWB1nbZF.js +0 -1
- package/dist/web/assets/square-terminal-Buj-s-fz.js +0 -1
- package/dist/web/assets/training-DCdoHJ0Y.js +0 -2
- package/dist/web/assets/upload-DaFVH6R1.js +0 -1
- package/dist/web/assets/useQuery-yUz7Ui8g.js +0 -1
- package/dist/web/assets/wifi-off-CtNwnIJc.js +0 -1
- package/dist/web/assets/work-outputs-CK0nHe4g.js +0 -1
- package/dist/web/assets/x-Bhl-4Zlt.js +0 -1
- /package/dist/chunks/{chunk-SFR32TMJ.js → chunk-JXLDEYRW.js} +0 -0
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as
|
|
2
|
+
import{a as g}from"./chunk-AYOMVI7J.js";import"./chunk-V24VHT76.js";import{f as h}from"./chunk-RRWL5BHZ.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as s,f as w,h as d}from"./chunk-3M53YXEI.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import{a as b}from"./chunk-JXYJQT5Q.js";import"./chunk-NXN7GJOH.js";import"./chunk-TBODQT4W.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as i}from"./chunk-FTQLQJQV.js";import{once as A}from"node:events";import{setTimeout as O}from"node:timers/promises";async function T(r,p){if(p.length!==1)throw new Error("hosted-hardware does not accept an identifier; use --worker-id or --job-id.");let c=w(r.watch);if(c&&!w(r.json))throw new Error("hosted-hardware --watch requires --json for bounded NDJSON output.");let l=r.intervalMs===void 0?1e3:d(r.intervalMs,"interval-ms")??1e3,f=r.timeoutMs===void 0?15e3:d(r.timeoutMs,"timeout-ms")??15e3;if(l<100||l>6e4||f<1e3||f>6e4)throw new Error("Hardware interval must be 100..60000 ms and timeout 1000..60000 ms.");let{baseUrl:E,teamId:I,headers:S}=await g(r),e=new AbortController,a=i(()=>e.abort(),"abort"),u=i(o=>{o.code==="EPIPE"?a():(a(),process.exitCode=1)},"brokenPipe");process.once("SIGTERM",a),process.once("SIGINT",a),process.stdout.on("error",u);let v=h({baseUrl:E,headers:S,fetch:i((o,t)=>fetch(o,{...t,redirect:"error",signal:AbortSignal.any([e.signal,AbortSignal.timeout(f),...t?.signal?[t.signal]:[]])}),"fetch")}),y={teamId:I,workerId:s(r,"workerId")||void 0,jobId:s(r,"jobId")||void 0,cursor:s(r,"cursor")||void 0,limit:r.limit===void 0?void 0:d(r.limit,"limit")};try{do{let o=Date.now(),t;try{let n=await v.hardwareObservations(y);if(!c){console.log(JSON.stringify(n,null,2));return}t={schemaVersion:"openpond.hardwareWatch.v1",kind:"snapshot",snapshot:n}}catch(n){if(e.signal.aborted)return;if(!c)throw n;t={schemaVersion:"openpond.hardwareWatch.v1",kind:"error",error:b(n)??{code:"HARDWARE_READ_FAILED",message:n instanceof Error?n.message.slice(0,512):"Hardware read failed."}}}let m=JSON.stringify(t)+`
|
|
3
3
|
`;if(Buffer.byteLength(m)>8*1024*1024+1024)throw new Error("Hardware watch record exceeds its wire bound.");process.stdout.write(m)||await A(process.stdout,"drain",{signal:e.signal}),await O(Math.max(0,l-(Date.now()-o)),void 0,{signal:e.signal})}while(!e.signal.aborted)}catch(o){if(!e.signal.aborted)throw o}finally{process.off("SIGTERM",a),process.off("SIGINT",a),process.stdout.off("error",u)}}i(T,"runHardwareObservations");export{T as runHardwareObservations};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as se}from"./chunk-7OFD6TFD.js";import{a as ce}from"./chunk-R2FYCJL6.js";import{a as ue}from"./chunk-IHAEZ73V.js";import{a as ne}from"./chunk-7RJOCGQ6.js";import{a as oe}from"./chunk-5G7BQAUA.js";import{a as ae}from"./chunk-XOPHFUUY.js";import{im as ie,lb as Y,nf as te,uf as re,xb as ee}from"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import{b as A,c as de}from"./chunk-KP2MYTP5.js";import"./chunk-PNPV2LDE.js";import"./chunk-55YD4UTW.js";import{q as Z,s as H}from"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{Cb as G,tc as S,uc as K,vc as W,wc as Q,xc as X}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as z}from"./chunk-AYOMVI7J.js";import"./chunk-V24VHT76.js";import"./chunk-RRWL5BHZ.js";import"./chunk-BSHAIAXY.js";import"./chunk-XWPC3AN4.js";import{c as f,f as I,h as k}from"./chunk-3M53YXEI.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import{b as j}from"./chunk-NXN7GJOH.js";import{a as T}from"./chunk-TBODQT4W.js";import{g as V}from"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import{A as y}from"./chunk-X2J2P5ZT.js";import{a as v}from"./chunk-FTQLQJQV.js";async function le(t,p={}){let e=process.env.OPENPOND_CHAT_INVOCATION;if(e)try{let i=process.env.OPENPOND_LOCAL_API_URL;if(!i)throw new Error("The chat executor did not supply its local API URL.");let a=new URL(i);if(a.protocol!=="http:"||!["127.0.0.1","localhost","[::1]"].includes(a.hostname)||a.username||a.password)throw new Error("Chat attachment requires the app's loopback API origin.");let h=await(p.request??await(await import("./training-5UMT45UL.js")).createLocalAuthenticatedRequest(i,{timeoutMs:15e3}))(new URL("/v1/chat-experiments",a),{method:"POST",headers:{"content-type":"application/json"},body:JSON.stringify({action:"attach_training",invocationToken:e,payload:{location:"cloud",...t}}),signal:AbortSignal.timeout(15e3),redirect:"error"});if(!h.ok)throw new Error(`Chat attachment returned HTTP ${h.status}.`)}catch(i){(p.warn??console.error)(`Hosted operation succeeded, but chat attachment failed: ${i instanceof Error?i.message:String(i)}. Inspect the saved job to retry attachment; do not submit it again.`)}}v(le,"attachHostedTrainingToChat");import{readFile as ye}from"node:fs/promises";var M=y.string().trim().min(1).max(500),he=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),we=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),ge=y.discriminatedUnion("action",[y.object({action:y.literal("declare_verification"),teamId:M,operationId:M,plan:y.object({modelId:S.shape.modelId,classification:S.shape.classification,feedback:S.shape.feedback,evidence:S.shape.evidence,trainingJobId:S.shape.trainingJobId,checkpoint:S.shape.checkpoint,artifact:S.shape.artifact,taskset:S.shape.taskset,checks:S.shape.checks,baselineOperationId:S.shape.baselineOperationId,candidateOperationId:S.shape.candidateOperationId,criterion:S.shape.criterion}).strict()}).strict(),y.object({action:y.literal("link_live_opportunity"),teamId:M,operationId:M,correction:he,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),be=y.object({summary:X.nullable(),observations:y.array(Q).max(1e3)}).strict(),U=class{static{v(this,"OpenPondCorrectionMetricsClient")}options;constructor(p){if(!p.apiKey.trim())throw new Error("Learning API key is required.");let e=new URL(p.baseUrl);if(!["http:","https:"].includes(e.protocol)||e.username||e.password||e.search||e.hash)throw new Error("Learning base URL must be an HTTP(S) endpoint without credentials, query, or fragment.");this.options={...p,baseUrl:e.toString().replace(/\/+$/,"")}}async request(p,e,i){let a=await(this.options.fetch??globalThis.fetch)(`${this.options.baseUrl}${p}`,{...i,redirect:"error",headers:{Authorization:`Bearer ${this.options.apiKey}`,"Content-Type":"application/json",Accept:"application/json","X-OpenPond-Team-Id":e}}),s;try{s=await de(a)}catch(h){throw h instanceof T?h:new T(a.ok?502:a.status,"invalid_response","Correction metrics returned an invalid response.",null)}if(!a.ok){let h=y.object({code:y.string().optional(),error:y.string().optional()}).passthrough().safeParse(s);throw new T(a.status,h.success?h.data.code??"correction_request_failed":"correction_request_failed",h.success?h.data.error??`Correction metrics request failed (${a.status}).`:`Correction metrics request failed (${a.status}).`,s)}return s}async read(p,e={}){let i=we.parse(p),a=be.parse(await this.request(`/v1/learning/corrections?query=${encodeURIComponent(JSON.stringify(i))}`,i.teamId,{method:"GET",signal:e.signal}));if(a.summary&&(a.summary.scope.teamId!==i.teamId||a.summary.scope.modelId!==i.modelId||i.runId&&a.summary.scope.runId!==i.runId)||a.observations.some(s=>s.modelId!==i.modelId||i.runId&&s.trainingJobId!==i.runId))throw new T(502,"correction_scope_mismatch","Correction metrics did not match the requested workspace, Model or run.",null);return a}async command(p,e={}){let i=ge.parse(p);G(i);let a=await this.request("/v1/learning/corrections",i.teamId,{method:"POST",body:JSON.stringify(i),signal:e.signal});if(i.action==="declare_verification"){let h=K.parse(a);if(h.teamId!==i.teamId||h.modelId!==i.plan.modelId||h.trainingJobId!==i.plan.trainingJobId)throw new T(502,"correction_scope_mismatch","Correction declaration did not match the requested workspace, Model or run.",null);return h}let s=W.parse(a);if(s.correction.id!==i.correction.id||s.correction.contentHash!==i.correction.contentHash||s.attempt.id!==i.inferenceRequestId)throw new T(502,"correction_scope_mismatch","Correction opportunity did not match the declared correction and serving request.",null);return s}};var O=new Set(["succeeded","failed","cancelled"]);function N(t){let p=k(t.intervalMs,"interval-ms")??1e4,e=k(t.cleanupTimeoutMs,"cleanup-timeout-ms")??18e4,i=k(t.cleanupReserveMs,"cleanup-reserve-ms")??18e4;if([p,e,i].some(h=>!Number.isSafeInteger(h)||h>2147483647))throw new Error("Watch intervals and cleanup bounds must fit a positive 32-bit millisecond timer.");if(p<250)throw new Error("--interval-ms must be at least 250.");if(e<1e3||i<1e3)throw new Error("Cleanup timeout and reserve must be at least 1000 ms.");let a=f(t,"deadlineAt");if(!a&&t.cleanupReserveMs!==void 0)throw new Error("--cleanup-reserve-ms requires --deadline-at.");let s=a?Date.parse(a):null;if(a&&(!/T.*(?:Z|[+-]\d{2}:\d{2})$/.test(a)||!Number.isFinite(s)))throw new Error("--deadline-at requires an ISO timestamp with an explicit timezone.");if(s!==null&&s-i<=Date.now())throw new Error("--deadline-at must leave time for execution and the cleanup reserve.");return{intervalMs:p,deadlineAt:s,cancelAt:s===null?null:s-i,waitForCleanup:s!==null||I(t.waitForCleanup)||I(t.cancelOnInfrastructureError),cleanupTimeoutMs:e,cancelOnInfrastructureError:I(t.cancelOnInfrastructureError)}}v(N,"parseHostedWatchOptions");async function J(t,p,e){for(let i=0;i<4;i++){let a=await t.getJob(p);if($(a,p,e),O.has(a.state)||a.state==="cancelling")return a;try{let s=await t.cancelJob(p,a.version);return $(s,p,e,a.submissionHash),s}catch(s){if(!(s instanceof j)||s.status!==409||s.code!=="stale_version"||i===3)throw s}}throw new Error("Hosted cancellation could not reconcile the current Job version.")}v(J,"cancelHostedTrainingJob");async function me(t,p,e){for(let i=0;i<4;i++){let a=await t.getJob(p);if($(a,p,e),O.has(a.state)||a.state==="cancelling")return a;try{let s=await t.stopAfterGroup(p,a.version);return $(s,p,e,a.submissionHash),s}catch(s){if(!(s instanceof j)||s.status!==409||s.code!=="stale_version"||i===3)throw s}}throw new Error("Hosted graceful stop could not reconcile the current Job version.")}v(me,"stopHostedTrainingJobAfterGroup");async function L(t){let{client:p,options:e,jobId:i,teamId:a}=t,s=null,h,q=!1;for(;;){let b=Math.min(e.deadlineAt??1/0,s??1/0);if(t.requestBound.deadlineAt=Number.isFinite(b)?b:null,Date.now()>=b)throw pe(i);try{let m=e.cancelAt!==null&&Date.now()>=e.cancelAt&&!q?await J(p,i,a):await p.getJob(i);if($(m,i,a,h),h=m.submissionHash,e.cancelOnInfrastructureError&&!q&&!O.has(m.state)&&m.state!=="cancelling"){let g=await p.events(i);if(g.some(C=>C.jobId!==i))throw new Error("Hosted event does not match the watched Job.");let o=g.find(C=>C.type==="rollout_metric"&&C.data.terminalClass==="infrastructure"&&C.data.rewardEligible===!1);o&&(t.print({jobId:i,event:"hosted_watch_infrastructure_failure",trajectoryEventId:o.id,data:o.data}),m=await J(p,i,a),$(m,i,a,h),s??=Date.now()+e.cleanupTimeoutMs)}if(q||=m.state==="cancelling"||O.has(m.state),t.print(m),O.has(m.state)){let g=m.executionMode==="qualification"&&m.state==="succeeded";if(!e.waitForCleanup&&!g)return;s??=Date.now()+e.cleanupTimeoutMs,t.requestBound.deadlineAt=Math.min(e.deadlineAt??1/0,s);let{receipt:o,outputs:C}=await p.outputs(i);if(o){if(o.jobId!==i||o.teamId!==a||o.submissionHash!==h)throw new Error("Hosted cleanup receipt does not match the watched Job and submission.");if(o.cleanupComplete){g&&await ee(o,{submissionHash:h,outputs:C}),t.print({jobId:i,cleanup:{scope:"job",complete:!0,receipt:o}});return}}else if(m.rolloutProgress.groupsTarget===0&&t.readNativeInspection){let E=ue(await t.readNativeInspection(i),m);if(E.cleanupComplete){t.print({jobId:i,cleanup:{scope:"job",complete:!0,evidence:"native_read_only_attestation",nativeJobVersion:E.nativeJobVersion,attestation:E.cleanupAttestation}});return}}}}catch(m){if(t.requestBound.deadlineAt!==null&&Date.now()>=t.requestBound.deadlineAt)throw pe(i);if(e.deadlineAt===null&&s===null||!ve(m))throw m;console.error(JSON.stringify({jobId:i,event:"hosted_watch_retry",code:m instanceof j?m.code:"transport_unavailable"}))}let c=Math.min(t.requestBound.deadlineAt??1/0,!q&&e.cancelAt!==null&&Date.now()<e.cancelAt?e.cancelAt:1/0);await new Promise(m=>setTimeout(m,Math.max(0,Math.min(e.intervalMs,c-Date.now()))))}}v(L,"watchHostedTrainingJob");function $(t,p,e,i){if(t.id!==p||t.teamId!==e||i!==void 0&&t.submissionHash!==i)throw new Error("Hosted response does not match the requested Job, workspace, and submission.")}v($,"assertJobIdentity");function ve(t){return t instanceof j?t.status===429||t.status>=500:t instanceof V?t.code==="invalid_error_response"||t.code==="invalid_json":t instanceof TypeError||t instanceof Error&&["TimeoutError","AbortError"].includes(t.name)}v(ve,"isTransient");function pe(t){return new Error(`Hosted watch deadline reached for ${t}; completed job cleanup is unverified. Inspect hosted-status, hosted-artifacts, and provider retirement before treating resources as released.`)}v(pe,"cleanupDeadlineError");var P=v(t=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(t),"money"),D=v(t=>t>=3600?`${(t/3600).toFixed(1)} hours`:`${Math.max(1,Math.ceil(t/60))} minutes`,"duration");function B(t,p){if(p){console.log(JSON.stringify(t,null,2));return}console.log(`Estimate ${t.id} (${t.status.replaceAll("_"," ")})`),console.log(`Model: ${t.configuration.modelId}@${t.configuration.modelRevision}`);let e=t.configuration;console.log(`Configuration: ${e.method}${e.loraRank===null?"":`, rank ${e.loraRank}`}${e.groups===null?"":`, ${e.groups} groups`}${e.rolloutConcurrency===null?"":`, ${e.rolloutConcurrency} rollout lanes`}${e.adapterMode===null?"":`, ${e.adapterMode}`}`),console.log(`GPU: ${t.gpu.resolved?.gpuType??"Awaiting a supported offering"} \xD7 ${t.gpu.resolved?.gpuCount??t.gpu.requested.gpuCount??1} (${t.gpu.requested.mode}, ${t.gpu.availability})`);let i=t.cost;console.log(`Expected cost: ${i.expectedUsd===null?"Not yet calibrated":P(i.expectedUsd)}`),i.planningRangeUsd&&console.log(`Planning range: ${P(i.planningRangeUsd.low)}\u2013${P(i.planningRangeUsd.high)}`),console.log(`Execution time: ${t.executionSeconds.expected===null?"Not yet calibrated":D(t.executionSeconds.expected)}`),t.executionSeconds.planningRange&&console.log(`Execution planning range: ${D(t.executionSeconds.planningRange.low)}\u2013${D(t.executionSeconds.planningRange.high)}`),console.log(`Queue wait: ${t.queueWaitSeconds===null?"Start time not yet known":`about ${D(t.queueWaitSeconds.expected)}`}`);let a=t.workload;if(a){let s=a.method==="sft"?a.trainingRows:a.trainingInitialRequests;console.log(`${a.method==="sft"?"Examples":"Initial prompts"} counted: ${s.coverage==="unavailable"?"Unavailable":`${s.counted} of ${s.total??"unknown"} (${s.coverage})`}`);let h=a.method==="sft"?a.trainingRows.totals?.inputTokens:a.trainingInitialRequests.totals?.promptTokens;console.log(`Tokens in counted inputs: ${h??"Unavailable"}`),a.method==="sft"&&a.planned.exampleExposures!==null&&console.log(`Planned workload: ${a.planned.exampleExposures} example exposures, ${a.planned.optimizerSteps} optimizer steps`),s.reason&&console.log(`Token evidence: ${s.reason}`)}console.log(`Recommended maximum budget: ${i.recommendedMaximumUsd===null?"Unavailable with current evidence":P(i.recommendedMaximumUsd)}`),console.log(`Approved hard cap: ${e.approvedMaximumUsd===null?"Not approved":P(e.approvedMaximumUsd)}`),e.approvedMaximumUsd!==null&&i.expectedUsd!==null&&i.expectedUsd>e.approvedMaximumUsd&&console.log("Expected cost exceeds the approved cap. Change the run or explicitly approve a different budget before submission.");for(let s of i.components)s.expectedUsd!==null?console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: ${P(s.expectedUsd)}`):s.evidence==="configured_rate"&&console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: configured rate; expected usage unknown. ${s.reason??""}`);for(let s of t.assumptions)console.log(`Assumption: ${s}`);for(let s of t.unknowns)console.log(`Unknown: ${s}`);console.log(`Evidence: ${t.calibration.completedSamples} completed, ${t.calibration.partialSamples} partial samples; expires ${t.expiresAt}`),console.log("This estimate reserves no resources and approves no spending.")}v(B,"printTrainingEstimate");var d=v(t=>console.log(JSON.stringify(t,null,2)),"print");async function We(t,p){let e=p[0],i=p[1],a=e==="hosted-watch"?N(t):null,s=e==="hosted-score-decision"?33e4:18e4,h={deadlineAt:a?.deadlineAt??null},{context:q,baseUrl:b,teamId:c,headers:m}=await z(t),g=v((r,n)=>{let u=h.deadlineAt===null?1/0:h.deadlineAt-Date.now();if(u<=0)throw new DOMException("Hosted watch deadline reached","TimeoutError");let l=AbortSignal.timeout(Math.max(1,Math.min(a?1e4:s,u)));return fetch(r,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=ie({baseUrl:b,headers:m,fetch:g}),C=v(r=>le({jobId:r,teamId:c,apiOrigin:new URL(b).origin}),"attach"),E=v(async(r,n)=>{d(r),await C(n)},"printAttached"),w=v(async()=>{if(!i)throw new Error(`${e} requires an input JSON file.`);let r=await ye(i);if(r.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(r.toString("utf8"))},"readInput"),F=v(async()=>{let r=await w(),{TrainingExperimentSetupReceiptSchema:n,parseAndVerifyTrainingExperimentSetupReceipt:u}=await import("./training-5NT2YB2L.js"),l=n.safeParse(r).success?(await u(r)).preparation:await re(r);if(l.plan.request.teamId!==c)throw new Error("Preparation belongs to a different workspace.");return l},"readPreparationInput"),_=v(async r=>{let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(r)}`,b),{headers:m});if(!n.ok)throw new j(n.status,{schemaVersion:"openpond.trainingApiError.v2",code:"inspection_failed",message:`Hosted job inspection failed (${n.status}).`,retryable:n.status===429||n.status>=500,requestId:null,details:{}});return n.json()},"readNativeInspection");if(p.length>2)throw new Error(`${e} accepts at most one identifier or input file.`);if(["hosted-serving-pools","hosted-base-serving-prepare","hosted-serving-pool-retire"].includes(e??"")){d(await(await import("./training-hosted-serving-N2MHWGZN.js")).runHostedServingCommand({action:e,target:i,baseUrl:b,headers:m,request:g,readInput:w,confirmed:I(t.yes)}));return}if(e&&ne.has(e)){let{runHostedAlphaEditCommand:r}=await import("./training-hosted-alphaedit-HSMRDJTD.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&oe.has(e)){let{runHostedNeuronTrainingCommand:r}=await import("./training-hosted-neuron-training-J42WK4EH.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&ae.has(e)){let{runHostedEngramCommand:r}=await import("./training-hosted-engram-SXO75MFG.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&se.has(e)){let{runHostedDecisionCommand:r}=await import("./training-hosted-decision-7JALOU6O.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e&&ce.has(e)){let{runHostedSteeringCommand:r}=await import("./training-hosted-steering-T556BUBG.js");d(await r({action:e,target:i,teamId:c,options:t,client:o,readInput:w}));return}if(e==="hosted-evaluate-checkpoint"){if(!I(t.yes))throw new Error("Paid checkpoint evaluation requires --yes.");let r=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationRequest(await w()),n=new Headers(m);n.set("content-type","application/json");let u=await g(new URL("/v1/managed-rl/serving-soaks",b),{method:"POST",headers:n,body:JSON.stringify(r)}),l=await u.json();if(!u.ok){let R=l&&typeof l=="object"&&"error"in l?String(l.error):"checkpoint_evaluation_failed";throw new Error(`Checkpoint evaluation failed (${u.status}): ${R}. Reconcile hosted-jobs before retrying the same immutable request.`)}let x=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationResponse(l,r);await E(x,x.job.id);return}if(e==="hosted-provider"||e==="hosted-quotes"){if(i)throw new Error(`${e} does not accept an identifier.`);let r=e==="hosted-provider"?"/v1/managed-rl/provider-inventory":"/v1/managed-rl/quotes",n=await g(new URL(r,b),{headers:m}),u=await n.json();if(!n.ok)throw new Error(`Hosted capacity read failed (${n.status}).`);d(u);return}if(e==="hosted-hardware"){if(i)throw new Error("hosted-hardware does not accept an identifier; use --worker-id or --job-id.");d(await o.hardwareObservations({teamId:c,workerId:f(t,"workerId")||void 0,jobId:f(t,"jobId")||void 0,cursor:f(t,"cursor")||void 0,limit:t.limit===void 0?void 0:k(t.limit,"limit")}));return}if(e==="hosted-workers"||e==="hosted-worker"||e?.startsWith("hosted-worker-")){d(await(await import("./training-hosted-workers-Y2PO5IOA.js")).runHostedWorkerCommand({action:e,target:i,baseUrl:b,headers:m,request:g,readInput:w,confirmed:I(t.yes)}));return}if(e==="hosted-tasksets"){let{OpenPondTasksetCatalogClient:r}=await import("./taskset-catalog-RZYEBCRQ.js"),n=new r({baseUrl:b,apiKey:q.token,teamId:c,fetch:g}),u=f(t,"cursor"),l=f(t,"projectId"),x=f(t,"search"),R=t.limit===void 0?void 0:k(t.limit,"limit");d(i?await n.get(i):await n.list({...u?{afterId:u}:{},...l?{projectId:l}:{},...x?{search:x}:{},...R===void 0?{}:{limit:R}}));return}if(e==="hosted-models"){d(await H({baseUrl:b,headers:m,fetch:g}).list());return}if(e==="hosted-model"){if(!i)throw new Error("hosted-model requires a Model Project ID.");d(await H({baseUrl:b,headers:m,fetch:g}).get(i));return}if(e==="hosted-corrections"||e==="hosted-learning-inspect"){if(!i)throw new Error(`${e} requires a hosted Model Project ID.`);let{project:r}=await H({baseUrl:b,headers:m,fetch:g}).get(i);d(await(await import("./training-hosted-learning-E2N32YU5.js")).inspectHostedLearning({action:e,options:t,teamId:c,model:r,learning:new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g}),corrections:new U({baseUrl:b,apiKey:q.token,fetch:g})}));return}if(e==="hosted-sync-model"){let r=Z.parse(await w());d(await H({baseUrl:b,headers:m,fetch:g}).upsert(r));return}if(e==="hosted-publish-taskset"){let{OpenPondTasksetPackageClient:r,TasksetPackagePublicationSchema:n}=await import("./taskset-packages-WMG5DUBN.js"),u=n.parse(await w());d(await new r({baseUrl:b,apiKey:q.token,teamId:c,fetch:g}).publish(u));return}if(e==="hosted-capabilities"){d(await o.capabilities());return}if(e==="hosted-modification-capabilities"){let{ModelModificationCapabilitiesQuerySchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Choose this workspace's model capability query.");d(await o.modificationCapabilities(n));return}if(e==="hosted-review-dataset"){let{DatasetTrainingReviewRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Choose this workspace's Dataset review request.");d(await o.reviewDataset(n));return}if(e==="hosted-funding"||e==="hosted-funding-handoff"){let{TrainingFundingRequestSchema:r,TrainingFundingHandoffRequestSchema:n}=await import("./training-5NT2YB2L.js"),u=await w();if(e==="hosted-funding"){let l=r.parse(u);if(l.teamId!==c)throw new Error("Choose this workspace's funding request.");d(await o.funding(l))}else{let l=n.parse(u);if(l.teamId!==c)throw new Error("Choose this workspace's funding request.");d(await o.fundingHandoff(l))}return}if(e==="hosted-gpu-catalog"){let{TrainingGpuCatalogQuerySchema:r}=await import("./training-5NT2YB2L.js"),n=i?r.parse(await w()):void 0;if(n&&n.teamId!==c)throw new Error("Choose this workspace's GPU query.");d(await o.gpuCatalog(n));return}if(e==="hosted-hardware-catalog"){d(await o.hardwareCatalog());return}if(e==="hosted-start-model"){if(!i)throw new Error("training start requires a saved hosted Model Project ID.");let r=await(await import("./training-model-start-P3PXDWNT.js")).startHostedModel({options:t,modelId:i,teamId:c,client:o,models:H({baseUrl:b,headers:m,fetch:g}),learning:new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g})});d(r),r.preparation.jobId&&await C(r.preparation.jobId),r.preparation.jobId&&!I(t.detach)&&await L({client:o,jobId:r.preparation.jobId,teamId:c,options:N(t),print:d,requestBound:h,readNativeInspection:_});return}if(e==="hosted-estimate-model"){if(!i)throw new Error("training estimate requires a hosted Model Project ID.");let{project:r}=await H({baseUrl:b,headers:m,fetch:g}).get(i),n=f(t,"batchId"),u=n?await new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g}).get("batch",n):null,{trainingGpuChoice:l}=await import("./training-model-start-P3PXDWNT.js"),x=l(t)??r.trainingSetup.managedGpuSelection;B(await o.estimate({schemaVersion:"openpond.trainingEstimateRequest.v1",teamId:c,source:{kind:"configuration",id:r.id,expectedRevision:r.revision,expectedEtag:r.etag,batch:u?{id:u.id,revision:u.revision,contentHash:u.contentHash}:null},...x?{gpuSelection:x}:{}}),I(t.json));return}if(e==="hosted-estimate"){let{TrainingEstimateRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Estimate input belongs to a different workspace.");B(await o.estimate(n),I(t.json));return}if(e==="hosted-batches"){let r=new A({baseUrl:b,apiKey:q.token,scope:c,fetch:g});d(await r.list("batch",{limit:100}));return}if(e==="hosted-drafts"){if(i)throw new Error("hosted-drafts accepts filters, not an identifier.");let r=f(t,"cursor"),n=f(t,"projectId"),u=f(t,"search"),l=k(t.limit,"--limit");d(await o.listExperimentDrafts(c,{archived:I(t.archived),...r?{cursor:r}:{},...n?{projectId:n}:{},...u?{search:u}:{},...l===void 0?{}:{limit:l}}));return}if(e==="hosted-draft"){if(!i)throw new Error("hosted-draft requires a draft ID.");d(await o.getExperimentDraft(c,i));return}if(e==="hosted-save-draft"){let{ExperimentDraftSaveSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("This draft belongs to another workspace.");d(await o.saveExperimentDraft(n));return}if(e==="hosted-archive-draft"){let r=f(t,"operationId"),n=k(t.expectedRevision,"--expected-revision");if(!i||!r||n===void 0)throw new Error("hosted-archive-draft requires an ID, --operation-id and --expected-revision.");d(await o.archiveExperimentDraft(i,{schemaVersion:"openpond.experimentDraftArchive.v1",teamId:c,operationId:r,expectedRevision:n}));return}if(e==="hosted-executions"){if(i)throw new Error("hosted-executions accepts filters, not an identifier.");let r=f(t,"cursor"),n=f(t,"projectId"),u=f(t,"datasetHash"),l=f(t,"search"),x=k(t.limit,"--limit");d(await o.listExecutions(c,{...r?{cursor:r}:{},...n?{projectId:n}:{},...u?{datasetHash:u}:{},...l?{search:l}:{},...x===void 0?{}:{limit:x}}));return}if(e==="hosted-save-steering-model"){let{SteeringProfileSaveRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Use this result's original workspace.");d(await o.saveModificationResultModel(n));return}if(e==="hosted-steering-profiles"){d(await o.listSteeringProfiles(c,{projectId:f(t,"projectId")||void 0,modelProjectId:f(t,"modelProjectId")||void 0,cursor:f(t,"cursor")||void 0,archived:I(t.archived),limit:k(t.limit,"--limit")}));return}if(e==="hosted-steering-profile"){if(!i)throw new Error("Supply a profile ID.");d(await o.getSteeringProfile(c,i));return}if(e==="hosted-archive-steering-profile"){let r=await w();d(await o.archiveSteeringProfile(r.id,r.request));return}if(e==="hosted-model-version"){if(!i)throw new Error("Supply a Model ID.");let r=f(t,"versionHash");d(await o.modelVersion(i,{teamId:c,...r?{versionHash:r}:{}}));return}if(e==="hosted-modification-executions"){if(i)throw new Error("hosted-modification-executions accepts filters, not an identifier.");let{ManagedModificationExecutionListQuerySchema:r}=await import("./training-5NT2YB2L.js"),n={};for(let l of["id","projectId","method","phase","cursor"]){let x=f(t,l);x&&(n[l]=x)}let u=k(t.limit,"--limit");u!==void 0&&(n.limit=u),d(await o.listModificationExecutions(c,r.parse(n)));return}if(e==="hosted-modification-execution"){if(!i)throw new Error("hosted-modification-execution requires an execution ID.");d(await o.getModificationExecution(c,i));return}if(e==="hosted-compare-modification"){let{compareHostedModification:r,printHostedModificationComparison:n}=await import("./training-hosted-modification-comparison-TXFDJFTG.js"),u=await r({client:o,teamId:c,executionId:i??"",baselineId:f(t,"baseline"),candidateId:f(t,"candidate"),promptId:f(t,"prompt")||void 0});n(u,I(t.json));return}if(e==="hosted-compile-modification"){let{parseManagedModificationCompile:r}=await import("./training-5NT2YB2L.js"),n=r(await w());if(n.teamId!==c)throw new Error("Modification input belongs to a different workspace.");d(await o.compileModificationExecution(n));return}if(e==="hosted-prepare-modification"){let{ManagedModificationPrepareSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Modification input belongs to a different workspace.");d(await o.prepareModificationExecution(n));return}if(e==="hosted-start-modification"||e==="hosted-cancel-modification"){let{ManagedModificationStartSchema:r,ManagedModificationCancelSchema:n}=await import("./training-5NT2YB2L.js"),u=e==="hosted-start-modification",l=u?r.parse(await w()):n.parse(await w());if(l.teamId!==c)throw new Error("Modification input belongs to a different workspace.");if(u&&!I(t.yes))throw new Error("Starting paid hosted modification requires --yes.");d(l.action==="start"?await o.startModificationExecution(l):await o.cancelModificationExecution(l));return}if(e==="hosted-preparations"){let r=f(t,"cursor"),n=f(t,"projectId"),u=k(t.limit,"--limit");d(await o.listPreparations(c,{...r?{afterId:r}:{},...n?{projectId:n}:{},...u===void 0?{}:{limit:u}}));return}if(e==="hosted-preparation"){if(!i)throw new Error("hosted-preparation requires a preparation ID.");d(await o.getPreparation(c,i));return}if(e==="hosted-cancel-preparation"){let r=await F();d(await o.cancelPreparation(r.plan.id,{teamId:c,planHash:r.plan.contentHash,expectedRevision:r.revision}));return}if(e==="hosted-prepare-experiment"){let{TrainingExperimentSetupRequestSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.teamId!==c)throw new Error("Experiment input belongs to a different workspace.");d(await o.prepareExperiment(n));return}if(e==="hosted-jobs"){d(await o.listJobs({limit:100}));return}if(e==="hosted-prepare"){let r=te.parse(await w());if(r.teamId!==c)throw new Error("Preparation input belongs to a different workspace.");d(await o.prepareRun(r));return}if(e==="hosted-start"){let r=await F();if(!I(t.yes))throw new Error("Starting paid hosted training requires --yes.");let n=await o.startPreparation(r.plan.id,{teamId:c,planHash:r.plan.contentHash,expectedRevision:r.revision,...r.plan.usageQuote?{usageQuoteHash:r.plan.usageQuote.contentHash}:{}});d(n),n.jobId&&await C(n.jobId);return}if(e==="hosted-stage"){d(await o.stageArtifact(await w()));return}if(e==="hosted-submit"||e==="hosted-qualify"){let r=await Y(await w());if(e==="hosted-qualify"&&(r.job.kind!=="policy_optimize"||r.job.executionMode!=="qualification"))throw new Error("hosted-qualify requires an immutable policy_optimize submission with executionMode=qualification.");if(!I(t.yes))throw new Error("Submitting paid hosted training requires --yes.");if(r.gpuSelection?.gpuCount===2||r.job.kind==="policy_optimize"&&r.job.executionMode==="qualification"){let u=await o.capabilities();if(r.gpuSelection?.gpuCount===2&&!u.policyDataParallel)throw new Error("This hosted runtime has no qualified two-GPU policy-training image.");if(r.job.kind==="policy_optimize"&&r.job.executionMode==="qualification"&&!u.executionModes?.includes("qualification"))throw new Error("This hosted runtime does not advertise original-learner qualification support.")}let n=await o.createJob(r);if(n.teamId!==c||n.submissionHash!==r.contentHash||n.kind!==r.job.kind||r.job.kind==="policy_optimize"&&n.executionMode!==r.job.executionMode)throw new Error(`Hosted submission response identity or execution mode mismatch; inspect hosted-status ${n.id} before attempting another submission.`);await E(n,n.id);return}if(!i)throw new Error(`${e} requires a hosted job ID.`);if(e==="hosted-status"){await E(await o.getJob(i),i);return}if(e==="hosted-save-model"){let{TrainingResultSaveCommandSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.request.teamId!==c)throw new Error("Save this result in its original workspace.");await E(await o.saveResultModel(n.jobId,n.request),n.jobId);return}if(e==="hosted-saved-model"){d(await o.savedModel(i,{teamId:c}));return}if(e==="hosted-model-serving"){let r=await w();d(await o.modelServing(r.modelProjectId,{teamId:c,versionHash:r.versionHash}));return}if(e==="hosted-control-model-serving"){let{TrainingModelServingControlCommandSchema:r}=await import("./training-5NT2YB2L.js"),n=r.parse(await w());if(n.request.teamId!==c)throw new Error("Control serving in its original workspace.");if(n.request.action==="activate"&&!I(t.yes))throw new Error("Activating billed serving capacity requires --yes.");d(await o.controlModelServing(n.modelProjectId,n.request));return}if(e==="hosted-result"){let r=await o.result(i,{teamId:c});await E(r,i);return}if(e==="hosted-report"){let r=await o.getJob(i),[n,u]=await Promise.all([o.events(i),o.outputs(i)]),l=await o.getJob(i);if(l.id!==i||l.teamId!==c||r.id!==i||r.teamId!==c)throw new Error("Hosted report status identity mismatch.");let x=l.recovery?await o.getJob(l.recovery.sourceJobId):void 0,R=l.rolloutProgress.groupsTarget===0?(await import("./training-hosted-serving-report-BAEABGJH.js")).parseHostedServingReportEvidence(await _(i),l):void 0,{buildHostedTrainingReport:fe}=await import("./training-hosted-report-T633TNJG.js");await E(fe({job:l,events:n,outputs:u,recoverySourceJob:x,servingEvidence:R,versionBeforeRead:r.version,generatedAt:new Date().toISOString()}),i);return}if(e==="hosted-evaluation-tasks"){let r=f(t,"evaluationId");if(!r)throw new Error("hosted-evaluation-tasks requires --evaluation-id from hosted-artifacts.");let u=(await o.outputs(i)).outputs.find(l=>l.kind==="evaluation"&&l.id===r);if(!u)throw new Error("Evaluation does not belong to this job's retained outputs.");d(await o.evaluationTasks(i,{id:u.id,contentHash:u.contentHash},{cursor:f(t,"cursor")||void 0,limit:k(t.limit,"--limit")}));return}if(e==="hosted-trajectory"){let r=f(t,"trajectoryId");if(!r)throw new Error("hosted-trajectory requires --trajectory-id <receipt-id> from hosted-inspect.");let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(i)}/trajectories/${encodeURIComponent(r)}`,b),{headers:m});if(!n.ok)throw new Error(`Hosted trajectory read failed (${n.status}).`);d(await n.json());return}if(e==="hosted-feedback"){let{readHostedGraderFeedback:r}=await import("./training-hosted-feedback-5B2KJGOT.js");d(await r({jobId:i,baseUrl:b,headers:m,request:g,trajectoryId:f(t,"trajectoryId")||void 0,evaluationId:f(t,"evaluationId")||void 0,taskId:f(t,"taskId")||void 0}));return}if(e==="hosted-inspect"){d(await _(i));return}if(e==="hosted-recover"){if(!I(t.yes))throw new Error("hosted-recover requires --yes for its explicit funded execution request.");let{jobId:r,...n}=await w();if(typeof r!="string"||!r)throw new Error("hosted-recover requires jobId in its input JSON.");let u=await o.recoverCheckpoint(r,n);await E(u,u.id);return}if(e==="hosted-cancel"){await E(await J(o,i,c),i);return}if(e==="hosted-stop-after-group"){if(!I(t.yes))throw new Error("hosted-stop-after-group requires --yes to shorten the admitted training schedule.");await E(await me(o,i,c),i);return}if(e==="hosted-artifacts"){await E(await o.outputs(i),i);return}if(e==="hosted-logs"){await E(await o.logs(i),i);return}if(e==="hosted-events"){await E(await o.events(i),i);return}if(e==="hosted-watch"&&a){await C(i),await L({client:o,jobId:i,teamId:c,options:a,print:d,requestBound:h,readNativeInspection:_});return}throw new Error(`Unknown hosted training command: ${e}`)}v(We,"runHostedTrainingCommand");export{We as runHostedTrainingCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-7RJOCGQ6.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as alphaEditHostedActions,b as runHostedAlphaEditCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import"./chunk-ZFJWA4JK.js";import{A as e}from"./chunk-X2J2P5ZT.js";import{a as i}from"./chunk-FTQLQJQV.js";var r=e.object({mode:e.enum(["frozen_evaluation","training_diagnostic"]),evaluationPanel:e.object({sourceManifest:e.object({id:e.string().trim().min(1).max(2e3),contentHash:e.string().regex(/^[a-f0-9]{64}$/)}).strict(),populationSha256:e.string().regex(/^[a-f0-9]{64}$/),shardSize:e.number().int().min(1).max(128),shardIndex:e.number().int().nonnegative()}).strict().optional(),target:e.enum(["checkpoint","base_model"]),representation:e.enum(["adapter","merged_backbone"]).optional(),checkpointId:e.string().min(8).max(191),artifact:e.object({id:e.string().min(8),contentHash:e.string().regex(/^[a-f0-9]{64}$/)}).strict().optional(),retainedCheckpoint:e.object({sourceJobId:e.string().min(1).max(191),expectedVersion:e.number().int().positive()}).strict().optional(),idempotencyKey:e.string().min(16).max(191),quote:e.record(e.string(),e.unknown()),quoteSignature:e.string().min(32),maximumSpendUsd:e.number().positive().max(10),maxGpuSeconds:e.number().int().positive().max(7200)}).strict().superRefine((n,t)=>{n.mode==="training_diagnostic"&&(!n.artifact||n.retainedCheckpoint||n.evaluationPanel||n.representation==="merged_backbone")&&t.addIssue({code:"custom",message:"Training fit uses a published supervised adapter and the server-derived original training population only."}),!!n.artifact==!!n.retainedCheckpoint&&t.addIssue({code:"custom",message:"Choose exactly one published or retained checkpoint source."}),n.retainedCheckpoint&&n.representation==="merged_backbone"&&t.addIssue({code:"custom",message:"Retained supervised checkpoints require adapter evaluation."})}),s=i(n=>r.parse(n),"parseCheckpointEvaluationRequest");function c(n,t){let o=e.object({job:e.object({id:e.string().min(1),idempotencyKey:e.string(),targetGroups:e.literal(0),canonicalPublishState:e.literal("skipped"),publicSubmission:e.null()}).passthrough()}).parse(n);if(o.job.idempotencyKey!==t.idempotencyKey)throw new Error("Checkpoint evaluation response identity mismatch.");return o}i(c,"parseCheckpointEvaluationResponse");export{s as parseCheckpointEvaluationRequest,c as parseCheckpointEvaluationResponse};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-7OFD6TFD.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as decisionHostedActions,b as runHostedDecisionCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-XOPHFUUY.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as engramHostedActions,b as runHostedEngramCommand};
|
package/dist/chunks/{training-hosted-learning-YN5VD3PW.js → training-hosted-learning-E2N32YU5.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import
|
|
2
|
+
import"./chunk-KP2MYTP5.js";import"./chunk-PNPV2LDE.js";import{L as m}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{c as o,h as a}from"./chunk-3M53YXEI.js";import"./chunk-RCT3O3HQ.js";import{a as l}from"./chunk-TBODQT4W.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as c}from"./chunk-FTQLQJQV.js";async function h(e){if(e.model.teamId!==e.teamId)throw new l(502,"model_scope_mismatch","The Model did not match the requested workspace.",null);let r=o(e.options,"runId");if(e.action==="hosted-corrections"){if(o(e.options,"cursor")||e.options.limit!==void 0)throw new Error("hosted-corrections reads one Model/run metric snapshot; use hosted-learning-inspect for paged policies.");return e.corrections.read({teamId:e.teamId,modelId:e.model.id,...r?{runId:r}:{}})}if(r)throw new Error("--run-id is only supported by hosted-corrections.");let t=a(e.options.limit,"--limit")??25;if(t<1||t>100)throw new Error("--limit must be between 1 and 100.");let n=o(e.options,"cursor"),i=await e.learning.list("policy",{parentId:e.model.portableProjectId,limit:t,...n?{afterId:n}:{}}),s=[];for(let d of i.items)s.push({policy:d,inspection:await e.learning.inspectPolicy(m(d))});return{model:{id:e.model.id,portableProjectId:e.model.portableProjectId,revision:e.model.revision,etag:e.model.etag},taskQueue:await e.learning.inspectTaskQueue(e.model.portableProjectId),policies:{items:s,nextCursor:i.nextCursor}}}c(h,"inspectHostedLearning");export{h as inspectHostedLearning};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{Bl as r,Dl as d}from"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a}from"./chunk-FTQLQJQV.js";async function l(e){if(!e.executionId||!e.baselineId||!e.candidateId)throw new Error("hosted-compare-modification requires an execution ID, --baseline <variant-id> and --candidate <variant-id>.");if(e.baselineId===e.candidateId)throw new Error("Choose two different variant IDs for --baseline and --candidate.");let n=await e.client.getModificationExecution(e.teamId,e.executionId),t=n.request.variants.find(i=>i.id===e.baselineId),o=n.request.variants.find(i=>i.id===e.candidateId);if(!t||!o)throw new Error("The comparison variants must both belong to this exact execution request.");if(e.promptId&&!n.request.prompts.some(i=>i.id===e.promptId))throw new Error("The selected prompt must belong to this exact execution request.");let s=n.result?await d(n.request,n.result,t.id,o.id,e.promptId??null):null;return{execution:{id:n.id,teamId:n.teamId,phase:n.phase,revision:n.revision,planHash:n.plan.contentHash,requestHash:n.result?.requestHash??null,modelHash:n.result?.modelHash??null,resultHash:n.result?.contentHash??null},baseline:{id:t.id,profileHash:t.profile?.contentHash??null},candidate:{id:o.id,profileHash:o.profile?.contentHash??null},promptId:e.promptId??null,state:s===null?"unavailable":"available",reason:s===null?"This verified execution read contains no retained capture artifact.":null,doses:r(t,o),comparison:s}}a(l,"compareHostedModification");function f(e,n){if(n){console.log(JSON.stringify(e,null,2));return}let t=a(o=>JSON.stringify(o),"id");if(console.log(`Execution ${t(e.execution.id)} \xB7 ${e.execution.phase}`),console.log(`Reference ${t(e.baseline.id)} \u2192 candidate ${t(e.candidate.id)}`),console.log("Differences are candidate minus reference. Capture availability does not establish cleanup or settlement; no quality grade is assigned."),!e.comparison){console.log(e.reason);return}console.log(`Result hash: ${e.execution.resultHash}`),console.log(`Aligned coordinate captures: ${e.comparison.aligned} / ${e.comparison.captures.length}`);for(let o of e.comparison.pairs)console.log(`Prompt ${t(o.prompt.id)}: ${o.generatedStatus==="identical"?"identical generated token sequence":o.generatedStatus==="missing_outcome"?"missing retained outcome":`first generated sequence difference at position ${o.generatedDifferencePosition} (zero-based)`}.`);e.doses.reason&&console.log(e.doses.reason);for(let o of e.doses.rows)console.log(`Layer ${o.layer}, neuron ${o.neuron}: requested dose ${o.reference??"unavailable"} \u2192 ${o.candidate??"unavailable"}; difference ${o.difference??"unavailable"}.`);console.log("Use --json for original prompt tokens/masks, retained outputs, before/after values and per-coordinate missing/incompatible evidence.")}a(f,"printHostedModificationComparison");export{l as compareHostedModification,f as printHostedModificationComparison};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-5G7BQAUA.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as neuronTrainingHostedActions,b as runHostedNeuronTrainingCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a as c}from"./chunk-FTQLQJQV.js";function b(n){return n!==null&&typeof n=="object"&&!Array.isArray(n)?n:{}}c(b,"record");function _(n){return typeof n=="number"&&Number.isFinite(n)?n:null}c(_,"finite");function d(n){let t=_(n);return t!==null&&t>=0?t:null}c(d,"nonnegative");function l(n){let t=n.filter(u=>u!==null).sort((u,a)=>u-a),r=t.length?t.reduce((u,a)=>u+a,0):null,o=c(u=>t.length?t[Math.max(0,Math.ceil(t.length*u)-1)]:null,"quantile");return{observations:t.length,missing:n.length-t.length,total:r,mean:r===null?null:r/t.length,min:t[0]??null,max:t.at(-1)??null,p50:o(.5),p95:o(.95)}}c(l,"statistics");function U(n,t){return Object.fromEntries(t.map(r=>[r,l(n.map(o=>d(o[r])))]))}c(U,"timingStatistics");function J(n,t){return Object.fromEntries(t.map(r=>{let{total:o,...u}=l(n.map(a=>d(a[r])));return[r,u]}))}c(J,"distributionStatistics");function W(n){if(!n.length)return null;let t=n.reduce((r,o)=>r+o,0)/n.length;return Math.sqrt(n.reduce((r,o)=>r+(o-t)**2,0)/n.length)}c(W,"populationStd");function v(n){return typeof n=="string"&&/^[a-zA-Z0-9_.:-]{1,200}$/.test(n)?n:null}c(v,"code");function z(n){let t=new Map;for(let r of n)r!==null&&t.set(r,(t.get(r)??0)+1);return Object.fromEntries([...t].sort(([r],[o])=>r.localeCompare(o)))}c(z,"counts");var X=["commandTotalSeconds","requestPreparationSeconds","vllmRequestSeconds","vllmQueueSeconds","vllmPrefillSeconds","vllmDecodeSeconds","vllmTimeToFirstTokenSeconds","vllmInferenceSeconds","tokenizationSeconds","workerQueueSeconds","workerBatchWaitSeconds"],Y=["inputPreparationSeconds","parameterHashSeconds","residentLoadSeconds","oldAndReferenceForwardSeconds","optimizerForwardBackwardSeconds","postUpdateForwardSeconds","checkpointSaveSeconds","adapterSerializationSeconds","adapterCompositionSeconds","serializedAdapterVerificationSeconds","optimizerStateSerializationSeconds","deferredDiagnosticsSerializationSeconds","totalTrainStepSeconds"];function oe(n){let{job:t,outputs:r}=n,o=n.servingEvidence;if(o&&(o.jobId!==t.id||o.teamId!==t.teamId))throw new Error("Hosted serving report evidence belongs to a different job or workspace.");if(o&&Object.values(t.rolloutProgress).some(e=>e!==0))throw new Error("Hosted serving report cannot contain training progress.");let u=o?.cleanupComplete===null||!o?r.receipt?.cleanupComplete??null:o.cleanupComplete&&r.receipt?.cleanupComplete!==!1,a=n.recoverySourceJob,K=a?.state==="succeeded"&&a.phase==="completed"&&a.rolloutProgress.groupsCompleted>0&&a.rolloutProgress.groupsCompleted<a.rolloutProgress.groupsTarget&&a.rolloutProgress.groupsTarget===t.rolloutProgress.groupsTarget;if(t.recovery&&(!a||a.id!==t.recovery.sourceJobId||a.teamId!==t.teamId||!a.completedAt||!["failed","cancelled"].includes(a.state)&&!K||a.rolloutProgress.groupsCompleted!==t.recovery.completedGroups||a.rolloutProgress.optimizerUpdatesApplied+a.rolloutProgress.optimizerUpdatesSkipped!==t.recovery.completedGroups))throw new Error("Hosted recovery report requires the unchanged terminal source run's progress.");let w=t.recovery&&a?a.rolloutProgress:{groupsCompleted:0,optimizerUpdatesApplied:0,optimizerUpdatesSkipped:0},S={groupsCompleted:t.rolloutProgress.groupsCompleted-w.groupsCompleted,groupsTarget:t.rolloutProgress.groupsTarget-w.groupsCompleted,optimizerUpdatesApplied:t.rolloutProgress.optimizerUpdatesApplied-w.optimizerUpdatesApplied,optimizerUpdatesSkipped:t.rolloutProgress.optimizerUpdatesSkipped-w.optimizerUpdatesSkipped};if(Object.values(S).some(e=>e<0))throw new Error("Hosted recovery source progress exceeds the recovered run's progress.");if(n.events.length>1e5)throw new Error("Hosted report exceeds 100,000 events.");if(n.events.some(e=>e.jobId!==t.id)||r.outputs.some(e=>e.jobId!==t.id)||r.receipt&&(r.receipt.jobId!==t.id||r.receipt.teamId!==t.teamId))throw new Error("Hosted report evidence belongs to a different job or workspace.");let C=new Map;for(let e of n.events){let i=C.get(e.id);if(i&&i.sequence===e.sequence&&JSON.stringify(i)!==JSON.stringify(e))throw new Error("Hosted report contains conflicting event snapshots.");(!i||e.sequence>=i.sequence)&&C.set(e.id,e)}let f=[...C.values()],g=f.filter(e=>e.data.metricKind==="rollout_trajectory"),m=g.filter(e=>e.data.rewardEligible===!0),A=g.filter(e=>e.data.rewardEligible===!1),y=m.filter(e=>_(e.data.reward)!==null),P=f.filter(e=>e.data.metricKind==="inference_command"),h=f.filter(e=>e.data.metricKind==="policy_optimization"),R=f.filter(e=>e.type==="optimizer_skipped_no_signal"),D=f.filter(e=>e.data.metricKind==="gpu_allocation"),V=f.filter(e=>e.data.metricKind==="physical_gpu_worker"),N=[],s=c((e,i)=>N.push({code:e,message:i}),"add");t.recovery&&s("checkpoint_recovery_reuses_progress","Cumulative progress includes the source run; throughput and per-update cost use only this execution's new updates.");let H=n.versionBeforeRead===t.version;H||s("job_changed_during_read","The job changed during these reads; rerun for a stable snapshot."),!g.length&&!o&&s("no_recorded_trajectories","No trajectory evidence is present; this report cannot assess model quality or learning."),A.length&&s("ineligible_trajectories","Infrastructure-ineligible trajectories are excluded from reward statistics."),m.length!==y.length&&s("eligible_rewards_pending","Some eligible trajectories have no finite grade yet."),R.length&&s("no_signal_groups","Recorded groups produced zero standardized advantage and skipped optimization; inspect reward/task quality before increasing the budget.");let O=t.executionMode==="qualification";O&&s("qualification_only","This run collects original-model evidence; optimizer updates were not requested."),o&&s("serving_only","This run serves an existing checkpoint; optimizer work and model publication were not requested."),o?.executionMode==="training_diagnostic"&&s("training_fit_only","This diagnostic measures the original training cases; it provides no held-out generalization or promotion evidence."),o?.executionMode==="training_diagnostic"&&t.terminalReason==="training_diagnostic_complete"?s("training_diagnostic_complete","The training fit diagnostic finished and entered ordinary cleanup."):o?.executionMode==="frozen_evaluation"&&t.terminalReason==="checkpoint_evaluation_complete"?s("checkpoint_evaluation_complete","The frozen evaluation finished and entered its ordinary cancellation/cleanup lifecycle."):t.terminalReason&&s("terminal_reason_present","The job has a terminal reason; inspect official status/logs for its details."),!r.receipt&&o?.cleanupAttestation?s("public_execution_receipt_unavailable","Native custody is reported from the owner attestation; no public final execution receipt or reconciled invoice is available."):r.receipt||s("execution_receipt_unavailable","No final execution receipt is available; cleanup and reconciled execution evidence remain unverified here."),u===!1&&s("cleanup_incomplete","Recorded cleanup evidence does not attest completed cleanup.");let x=new Map;for(let e of m){let i=v(e.data.rolloutGroupId);if(!i)continue;let p=x.get(i)??[];p.push(e),x.set(i,p)}let L=[...x].map(([e,i])=>{let p=i.map(T=>_(T.data.reward)).filter(T=>T!==null),G=W(p);return{groupId:e,recordedEligible:i.length,recordedScored:p.length,rewardMean:l(p).mean,rewardStd:G,allRecordedRewardsEqual:p.length>=2&&G===0,optimizerSkippedNoSignal:R.some(T=>T.data.rolloutGroupId===e)}}),j=new Set(y.flatMap(e=>Object.entries(b(e.data.rewardComponents)).filter(([i,p])=>v(i)&&_(p)!==null).map(([i])=>i))),Q=Object.fromEntries([...j].sort().map(e=>[e,l(y.map(i=>_(b(i.data.rewardComponents)[e])))]));y.length&&![...j].some(e=>e!=="reward")?s("per_grader_reward_breakdown_unavailable","Eligible aggregate rewards are recorded, but no separate finite numeric component fields are present. Per-grader coverage and scores are unavailable; missing breakdowns are not zero grades."):j.size&&s("reward_component_binding_unverified","Reward components summarize finite numeric event fields only. The reward field is aggregate; other fields are not established as individual grader scores without matching the frozen grader binding.");let E=P.map(e=>b(e.data.timings)),Z=h.map(e=>b(e.data.timings));P.length&&E.some(e=>d(e.vllmRequestSeconds)===null)&&s("inference_timing_incomplete","Some inference commands lack request timing; missing measurements are not zero durations."),h.length<S.optimizerUpdatesApplied&&s("optimizer_event_coverage_incomplete","Fewer optimizer events were returned than applied updates; report evidence may be incomplete."),R.length<S.optimizerUpdatesSkipped&&s("no_signal_event_coverage_incomplete","Fewer no-signal events were returned than skipped updates; group details may be incomplete.");let B=Date.parse(t.completedAt??n.generatedAt);if(!Number.isFinite(B)||!Number.isFinite(Date.parse(n.generatedAt)))throw new Error("Hosted report timestamp is invalid.");let k=Math.max(0,(B-Date.parse(t.createdAt))/1e3),I=c(e=>k>0?e*3600/k:null,"hourlyRate"),M=l(g.map(e=>d(e.data.outputTokens))),q=new Map;for(let e of D.sort((i,p)=>i.sequence-p.sequence)){let i=v(e.data.allocationId);i&&q.set(i,e)}let F=new Map;for(let e of V.sort((i,p)=>i.sequence-p.sequence)){let i=v(e.data.physicalWorkerId);i&&F.set(i,e)}let $=t.completedAt!==null;return{schemaVersion:"openpond.trainingRunReport.v1",generatedAt:n.generatedAt,job:{id:t.id,teamId:t.teamId,submissionHash:t.submissionHash,kind:t.kind,executionMode:o?.executionMode??(O?"qualification":"training"),state:t.state,phase:t.phase,version:t.version,terminalReasonPresent:t.terminalReason!==null,createdAt:t.createdAt,completedAt:t.completedAt,...t.recovery?{recovery:t.recovery}:{},...o?{serving:o.source}:{}},evidence:{jobRevisionStableDuringRead:H,versionBeforeRead:n.versionBeforeRead,versionAfterRead:t.version,readModel:"independent_authenticated_reads_not_an_atomic_snapshot",returnedEvents:n.events.length,uniqueEvents:f.length,scope:o?"public_events_and_authenticated_native_serving_metadata":"returned_public_event_snapshot",terminal:$,...o?{nativeServingJobVersion:o.nativeJobVersion}:{},recoverySourceJobVersion:t.recovery?a.version:null,completeness:"Only recorded events are summarized; absent instrumentation is not proof of no work."},progress:{...t.rolloutProgress,currentExecution:S,inherited:{groupsCompleted:w.groupsCompleted,optimizerUpdatesApplied:w.optimizerUpdatesApplied,optimizerUpdatesSkipped:w.optimizerUpdatesSkipped}},wall:{elapsedSeconds:k,inferenceCommands:P.length,optimizerEvents:h.length},throughput:{recordedTrajectoriesPerWallHour:I(g.length),recordedEligibleTrajectoriesPerWallHour:I(m.length),appliedUpdatesPerWallHour:I(S.optimizerUpdatesApplied),recordedOutputTokensPerWallSecond:k>0&&M.total!==null?M.total/k:null,note:"Execution throughput includes startup, waits and cleanup, and excludes inherited updates; this is not engine decode tokens/second."},trajectories:{recorded:g.length,eligible:m.length,ineligible:A.length,eligibilityUnknown:g.length-m.length-A.length,scoredEligible:y.length,pendingEligibleGrades:m.length-y.length,inputTokens:l(g.map(e=>d(e.data.inputTokens))),outputTokens:M,eligibleRewards:l(m.map(e=>_(e.data.reward))),rewardComponents:Q,terminalClasses:z(g.map(e=>v(e.data.terminalClass))),ineligibleTerminalClasses:z(A.map(e=>v(e.data.terminalClass))),groups:L,groupCoverageNote:"Within-group statistics cover recorded eligible scores only; equal partial scores do not establish a completed no-signal group."},failures:{commandErrorCodes:z(f.map(e=>v(e.data.errorCode))),outboxErrorCodes:z(f.map(e=>v(e.data.lastErrorCode))),providerFailureCodes:z([...F.values()].map(e=>v(e.data.failureCode)))},learning:{noSignalGroupsRecorded:R.length,samplingLogprobMae:l(h.map(e=>d(e.data.samplingLogprobMae))),entropy:l(h.map(e=>d(e.data.entropy))),gradientNorm:l(h.map(e=>d(e.data.gradientNorm))),behaviorPolicyKlPreUpdate:l(h.map(e=>d(e.data.behaviorPolicyKlPreUpdate))),baseOrReferenceKl:l(h.map(e=>d(e.data.kl)))},timings:{environmentSeconds:U(g.map(e=>b(e.data.executionTiming)),["initializationSeconds","policySeconds","environmentSeconds","cleanupSeconds","totalRolloutSeconds"]),toolCalls:l(g.map(e=>d(b(e.data.executionTiming).toolCalls))),toolFailures:l(g.map(e=>d(b(e.data.executionTiming).toolFailures))),inferenceSeconds:U(E,X),optimizerSeconds:U(Z,Y),cachedPromptTokens:l(E.map(e=>d(e.vllmCachedPromptTokens))),note:"Totals are sums of recorded work. Nested timings and concurrent requests overlap; do not sum these into wall time or infer idle time from them."},gpuActivity:{inference:J(E,["gpuActivitySampleCount","gpuUtilizationMeanPercent","gpuUtilizationMaxPercent","gpuMemoryBusUtilizationMeanPercent","gpuActivityWindowSeconds","gpuActivityObservedSpanSeconds","gpuInterRequestGapSeconds","gpuInterRequestSampleCount","gpuInterRequestUtilizationMeanPercent"]),optimizer:J(h.map(e=>b(e.data.hardware)),["gpuActivitySampleCount","gpuUtilizationMeanPercent","gpuUtilizationMaxPercent","gpuMemoryBusUtilizationMeanPercent","gpuActivityWindowSeconds","gpuActivityObservedSpanSeconds"]),note:"Device-wide one-second samples can include other co-resident work. Between-request activity is worker-wide, not attributed tool or idle time. Per-window statistics are not time-weighted whole-job utilization; short windows may have no samples."},costs:{accountingBasis:"job_accrued_meter_not_final_provider_invoice",jobAccruedSpendUsd:t.accruedSpendUsd,executionReceiptSpendUsd:r.receipt?.spendUsd??null,perRecordedEligibleTrajectoryUsd:m.length?t.accruedSpendUsd/m.length:null,perAppliedUpdateUsd:S.optimizerUpdatesApplied?t.accruedSpendUsd/S.optimizerUpdatesApplied:null,allocationGpuUsd:l([...q.values()].map(e=>d(e.data.accruedGpuUsd))),allocationGpuSeconds:l([...q.values()].map(e=>d(e.data.accruedGpuSeconds))),physicalInvoiceTotalUsd:null,note:"Job, receipt and allocation amounts are overlapping accounting views, not additive charges. Physical startup/idle/storage and provider settlement are not established by this report."},cleanup:{executionReceiptAvailable:r.receipt!==null,complete:u,...o?{nativeAttestationAvailable:o.cleanupAttestation!==null,nativeCustody:o.cleanupAttestation}:{}},findings:N}}c(oe,"buildHostedTrainingReport");export{oe as buildHostedTrainingReport};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a}from"./chunk-IHAEZ73V.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as parseHostedServingReportEvidence};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b}from"./chunk-R2FYCJL6.js";import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{b as runHostedSteeringCommand,a as steeringHostedActions};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import"./chunk-ZFJWA4JK.js";import{A as r}from"./chunk-X2J2P5ZT.js";import{a as l}from"./chunk-FTQLQJQV.js";var c=r.object({workerId:r.string().min(1).max(191),expectedControlRevision:r.string().regex(/^[a-f0-9]{64}$/),idempotencyKey:r.string().min(1).max(191),jobId:r.string().min(1).max(191).optional(),maximumStorageUsd:r.number().positive().max(10).optional(),warmIdleDeadlineAt:r.iso.datetime({offset:!0}).optional(),maximumIdleUsd:r.number().positive().max(10).optional(),sessionId:r.string().min(1).max(191).optional(),sessionDeadlineAt:r.iso.datetime({offset:!0}).optional(),maximumSessionUsd:r.number().positive().max(30).optional(),idleGraceSeconds:r.number().int().min(120).max(28800).optional(),preservePhysicalUntilDeadline:r.boolean().optional()}).strict().refine(e=>e.preservePhysicalUntilDeadline===!0||e.idleGraceSeconds===void 0||e.idleGraceSeconds<=10800,{path:["idleGraceSeconds"],message:"Ordinary session idle grace cannot exceed three hours."});async function f(e){let s="/v1/managed-rl/physical-workers",n;if(e.action==="hosted-workers"){if(e.target)throw new Error("hosted-workers does not accept an identifier.")}else if(e.action==="hosted-worker-adopt"){if(!e.confirmed)throw new Error("Attaching a reserved GPU requires --yes and a funded queued job.");n=JSON.stringify(r.object({jobId:r.string().min(1).max(191),providerPodId:r.string().min(1).max(191),idempotencyKey:r.string().min(1).max(191),deadlineAt:r.iso.datetime({offset:!0}),maximumHourlyUsd:r.number().positive().max(10),maximumSessionUsd:r.number().positive().max(30)}).strict().parse(await e.readInput())),s+="/adopt"}else if(e.action==="hosted-worker-rebind"){if(!e.confirmed)throw new Error("Reserved GPU recovery requires --yes and a fresh funded queued job.");let{workerId:o,...m}=r.object({workerId:r.string().min(1).max(191),jobId:r.string().min(1).max(191),idempotencyKey:r.string().min(1).max(191)}).strict().parse(await e.readInput());s+=`/${encodeURIComponent(o)}/rebind`,n=JSON.stringify(m)}else if(e.action==="hosted-worker-enroll"||e.action==="hosted-worker-verify"){if(!e.confirmed||!e.target)throw new Error("Reserved GPU enrollment requires a worker ID and --yes.");s+=`/${encodeURIComponent(e.target)}/${e.action==="hosted-worker-enroll"?"enroll":"enrollment-verification"}`,n="{}"}else if(e.action==="hosted-worker"){if(!e.target)throw new Error("hosted-worker requires a physical worker ID.");s+=`/${encodeURIComponent(e.target)}`}else{let o=e.action.replace("hosted-worker-","");if(!["stop","resume","retire","warm-idle","retain-session"].includes(o))throw new Error(`Unknown physical worker action: ${o}`);if(!e.confirmed)throw new Error("Worker lifecycle changes require --yes.");let{workerId:m,...i}=c.parse(await e.readInput());if(i.preservePhysicalUntilDeadline!==void 0&&o!=="retain-session")throw new Error("Physical preservation is available only on retain-session with a fixed deadline and budget.");if(o==="stop"&&!i.maximumStorageUsd)throw new Error("Stopping requires maximumStorageUsd for bounded retained storage.");if(o==="resume"&&!i.jobId)throw new Error("Resuming requires an admitted queued jobId with its own compute budget.");if(o==="warm-idle"&&(!i.warmIdleDeadlineAt||!i.maximumIdleUsd))throw new Error("Warm idle requires warmIdleDeadlineAt and maximumIdleUsd; the server caps retention at three hours.");if(o==="retain-session"&&(!i.sessionId||!i.sessionDeadlineAt||!i.maximumSessionUsd||!i.idleGraceSeconds))throw new Error("Session retention requires sessionId, sessionDeadlineAt, maximumSessionUsd, and idleGraceSeconds. Extending the same session requires explicit owner reauthorization within the server lifetime bound; job budgets remain separate.");s+=`/${encodeURIComponent(m)}/control`,n=JSON.stringify({...i,action:o})}let a=new Headers(e.headers);a.set("accept","application/json"),n&&a.set("content-type","application/json");let d=await e.request(new URL(s,e.baseUrl),{method:n?"POST":"GET",headers:a,body:n}),t=await d.json();if(!d.ok){let o=t&&typeof t=="object"&&"error"in t&&typeof t.error=="string"?t.error:"worker_request_failed";throw new Error(`Physical worker request failed (${d.status}): ${o}. Read hosted-worker before retrying a lifecycle mutation.`)}return t}l(f,"runHostedWorkerCommand");export{f as runHostedWorkerCommand};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import"./chunk-6D3FI2XT.js";import"./chunk-NSSZ2ZIU.js";import"./chunk-4KTGYHCE.js";import"./chunk-55YD4UTW.js";import{a as b}from"./chunk-AFYYIJ6K.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{L as y}from"./chunk-4PUOWSDE.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import"./chunk-RRWL5BHZ.js";import{c as s,f as l,g as f}from"./chunk-3M53YXEI.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-NXN7GJOH.js";import"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import{a as g}from"./chunk-FTQLQJQV.js";import{randomUUID as $}from"node:crypto";import{createInterface as h}from"node:readline/promises";function x(i){let e=s(i,"gpuType"),d=s(i,"availabilityId"),c=s(i,"gpuPlacementObjective"),t=f(i.gpuCount,"gpu-count");if(t!==void 0&&t!==1&&t!==2)throw new Error("--gpu-count must be 1 or 2.");if(e||d){if(!e||!d||c)throw new Error("Choose --gpu-type with --availability-id, or --gpu-placement-objective.");return b.parse({mode:"manual",gpuType:e,availabilityId:d,...t!==void 0?{gpuCount:t}:{}})}return c||t!==void 0?b.parse({mode:"automatic",objective:c??"balanced",...t!==void 0?{gpuCount:t}:{}}):void 0}g(x,"trainingGpuChoice");async function E(i){let{options:e,client:d,teamId:c}=i,t=s(e,"batchId");if(!t)throw new Error("training start --team-id requires --batch-id <sealed-approved-batch-id>.");let v=process.stdin.isTTY&&process.stdout.isTTY&&!l(e.json),m=l(e.yes);if(!m&&!v)throw new Error("Noninteractive training start requires --yes and an explicitly approved --max-spend or saved budget.");for(let a of["manifest","comparisonSeriesEntry","retentionDays","exportApproved"])if(e[a]!==void 0)throw new Error(`Hosted saved-Model starts use the retained configuration; ${a} is not a run override.`);let[{project:r},w]=await Promise.all([i.models.get(i.modelId),i.learning.get("batch",t)]),p=x(e)??r.trainingSetup.managedGpuSelection,n=f(e.maxSpend,"max-spend")??r.trainingSetup.preferredMaximumSpendUsd;if(v&&!m){let a=h({input:process.stdin,output:process.stdout});try{let u=await a.question(`Maximum budget in USD${n===null?"":` [${n}]`}: `);u.trim()&&(n=Number(u.trim()))}finally{a.close()}}if(n===null||!Number.isFinite(n)||n<=0||n>1e6)throw new Error("Choose an explicit positive --max-spend or save a positive Model budget before starting.");let o=await d.prepareRun({schemaVersion:"openpond.trainingPreparationRequest.v1",teamId:c,operationId:s(e,"operationId")||$(),projectId:s(e,"projectId")||null,configuration:{id:r.id,expectedRevision:r.revision,expectedEtag:r.etag},batch:y(w),name:s(e,"name")||r.name,maximumSpendUsd:n,...p?{gpuSelection:p}:{}});if(l(e.json)||console.log(`Retained preparation: ${o.plan.id}`),l(e.json)||(console.log(`Prepared run: ${o.plan.id}; approved maximum $${n}.`),console.log(`Model: ${r.name}@${o.plan.source.modelProject.revision}; batch: ${o.plan.request.batch.id}@${o.plan.request.batch.revision}.`),console.log(`GPU choice: ${p?.mode==="manual"?`${p.gpuType} / ${p.availabilityId}`:`Automatic (${p?.objective??r.trainingSetup.managedGpuPlacementObjective})`}; count ${p?.gpuCount??1}.`)),!m){let a=h({input:process.stdin,output:process.stdout});try{let u=await a.question(`Start this exact prepared run with a $${n} maximum? [y/N] `);if(!["y","yes"].includes(u.trim().toLowerCase()))throw new Error(`Training was not started. Preparation ${o.plan.id} is retained for review or cancellation.`)}finally{a.close()}}return{preparation:await d.startPreparation(o.plan.id,{teamId:c,planHash:o.plan.contentHash,expectedRevision:o.revision})}}g(E,"startHostedModel");export{E as startHostedModel,x as trainingGpuChoice};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
+
import{a,b,c,d,e}from"./chunk-WNXUSELC.js";import"./chunk-RY46UPBO.js";import"./chunk-4N4EH3RJ.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-JCLTFDVW.js";import"./chunk-6FA3GG5B.js";import"./chunk-SV7ZBEK2.js";import"./chunk-2MEOUS24.js";import"./chunk-HNQPEOJD.js";import"./chunk-RCT3O3HQ.js";import"./chunk-UGOK7VTC.js";import"./chunk-ZFJWA4JK.js";import"./chunk-X2J2P5ZT.js";import"./chunk-FTQLQJQV.js";export{a as createHostedWebSearchExecutor,b as createWebSearchExecutorFromEnv,d as normalizeSearchApiUrl,e as normalizeWebSearchRequest,c as resolveWebSearchEndpoint};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as F,b as G,c as H,d as I,e as J,f as K,g as L,h as M,i as N,j as O,k as P,l as Q,m as R,n as S,o as T}from"./chunk-
|
|
2
|
+
import{a as F,b as G,c as H,d as I,e as J,f as K,g as L,h as M,i as N,j as O,k as P,l as Q,m as R,n as S,o as T}from"./chunk-PLROXHG2.js";import{A,B,C,D,E,a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z}from"./chunk-YU3C6U5V.js";import"./chunk-U7D6Q744.js";import"./chunk-SSHE6B7Z.js";import"./chunk-FTQLQJQV.js";export{a as MACOS_GIT_MISSING_DEVELOPER_TOOLS_ERROR,C as appWorkspacePaths,B as assertSafeBranchName,d as checkWorkspaceGitAvailability,S as checkoutBranch,T as checkoutBranchAtPath,G as clearWorkspaceDiffCacheForTests,D as cloneWorkspace,Q as createAndCheckoutBranch,R as createAndCheckoutBranchAtPath,A as expectedRemoteUrl,t as isGeneratedWorkspacePath,i as isGitRepo,c as isMacOSGitDeveloperToolsMissing,u as isVisibleGitWorkspaceFile,r as isWorkspaceDirectory,E as lastFetchAt,z as listPlainWorkspaceFiles,J as loadGitCommitDiffAtPath,H as loadWorkspaceDiff,I as loadWorkspaceDiffAtPath,K as loadWorkspaceFile,N as loadWorkspaceFileAtPath,L as loadWorkspaceImageFile,M as loadWorkspaceImageFileAtPath,O as loadWorkspaceState,P as loadWorkspaceStateAtPath,n as localVideoContentType,F as mapWorkspaceDiffEntriesWithConcurrency,s as normalizeWorkspaceFilePath,w as parseBranchStatusLine,x as parseNumstat,v as parseStatusLine,h as pathExists,p as readLocalImageFile,q as readLocalVideoFile,l as readWorkspaceDocumentPreview,k as readWorkspaceFile,o as readWorkspaceImageFile,g as redactRemoteUrl,b as runWorkspaceCommand,f as sourceFromRemote,e as startMacOSCommandLineToolsInstall,j as truncatePatch,y as uniqueSortedPaths,m as workspaceImageContentType};
|
package/dist/cli.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
3
|
-
import{a as d}from"./chunks/chunk-AZ7BL5FL.js";import{b as f}from"./chunks/chunk-
|
|
3
|
+
import{a as d}from"./chunks/chunk-AZ7BL5FL.js";import{b as f}from"./chunks/chunk-DWM5G7BU.js";import{g as u}from"./chunks/chunk-RBTDSI4L.js";import{a as l}from"./chunks/chunk-XRKFTPHD.js";import{a as c,b as m}from"./chunks/chunk-BSHAIAXY.js";import"./chunks/chunk-XWPC3AN4.js";import{f as a}from"./chunks/chunk-3M53YXEI.js";import"./chunks/chunk-GLUWATL5.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function C(e){return!e.command&&a(e.options.version)?"version":a(e.options.checkUpdate)?"check-update":!e.command&&a(e.options.help)?"help":!e.command&&a(e.options.tui)?"tui":e.command?"command":"ui"}s(C,"resolveCliTopLevelAction");async function w(e=process.argv.slice(2)){if(await P(e))return;let{command:i,options:o,rest:t}=f(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-DKE7RJZN.js")).resolveOpenPondHome({home:o.home}));let r=C({command:i,options:o});if(r==="version"){console.log(l());return}if(r==="check-update"){await(await import("./chunks/core-commands-BPYXVT7O.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-K6YLZ3KL.js")).printHelp();return}let n=c(o),p=m(o);if(n&&(process.env.OPENPOND_ACCOUNT=n),p&&(process.env.OPENPOND_BASE_URL=p),r==="tui"){await(await import("./chunks/app-layer-YNEUEOEP.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-YNEUEOEP.js")).runOpenPondServerCommand("web",o,t);return}await u({command:i,options:o,rest:t})||((await import("./chunks/help-K6YLZ3KL.js")).printHelp(),process.exit(1))}s(w,"runOpenPondCli");async function P(e){if(e[0]==="__dataset-preparation-authoring")return await(await import("./chunks/dataset-preparation-authoring-UUYFWWCT.js")).runDatasetPreparationAuthoringCli(e.slice(1)),!0;if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-VG2WE7XZ.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-PTGQLPZO.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-FS5R6CHJ.js")).runHostedProfileCompilerCli(e.slice(1)),!0;if(e[0]==="__app-server"){process.argv=[process.execPath,"openpond-app-server",...e.slice(1)];let[{createOpenPondAppServer:i},{runOpenPondAppServerCli:o}]=await Promise.all([import("./chunks/app-server-runtime-GBX65JJ7.js"),import("./chunks/cli-R7TAP6Z2.js")]);return await o(i),!0}if(e[0]==="__server"){process.argv=[process.execPath,"openpond-server",...e.slice(1)];let[{createOpenPondServer:i},{runOpenPondServerCli:o}]=await Promise.all([import("./chunks/src-SGQYVBNQ.js"),import("./chunks/cli-R7TAP6Z2.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-GBX65JJ7.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-C3ZUESMK.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(P,"runEmbeddedCompanion");w().catch(async e=>{if(e instanceof d){process.exitCode=e.exitCode;return}let i=e instanceof Error?e.message:String(e),o=e.issue,t=(await import("./chunks/training-error-WF463UNZ.js")).trainingCliError(e);if(process.argv.includes("--json")&&!(e instanceof Error&&e.name==="OpenPondChildProcessExitError"))console.log(JSON.stringify({error:o??t??{code:"CLI_ERROR",message:i}}));else if(o&&typeof o=="object"){let n=o;console.error(`${n.code}: ${n.message}
|
|
4
4
|
${n.path}
|
|
5
5
|
${n.action}`)}else console.error(t?`${t.code}: ${i}`:i);let r=typeof e.exitCode=="number"?e.exitCode:1;process.exit(r)});export{w as runOpenPondCli};
|
package/dist/index.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as Qe}from"./chunks/chunk-Q34IF4PW.js";import{a as fe,b as $e,c as ge,d as ye,e as Ve,f as Re,g as Ae,h as Ye,i as Ce,j as Oe}from"./chunks/chunk-6XSSM4WT.js";import{a as ze,b as de,c as Je}from"./chunks/chunk-22UARBPW.js";import"./chunks/chunk-X37KMV27.js";import{A as zt,B as Jt,C as $t,D as Vt,E as Yt,F as Qt,G as Xt,H as Zt,I as en,J as tn,K as nn,L as on,b as Ot,c as St,d as Tt,e as Pt,f as wt,g as Et,h as xt,i as bt,j as Lt,k as Bt,l as Dt,m as It,n as vt,o as Ut,p as Mt,q as _t,r as Ht,s as Nt,t as qt,u as kt,v as Kt,w as Ft,x as Gt,y as jt,z as Wt}from"./chunks/chunk-EBOTNBUS.js";import"./chunks/chunk-PWKJ5KLZ.js";import{A as J,B as $,C as V,D as Y,E as Q,F as X,G as Z,H as ee,I as te,J as ne,K as oe,L as se,M as re,N as ae,O as je,P as le,T as We,U as pe,V as ie,W as ce,X as ue,Y as me,Z as he,_ as Ct,a as ke,b as E,c as x,d as b,e as L,f as B,g as D,h as I,i as v,j as Ke,k as U,m as Fe,n as M,o as _,p as H,q as N,r as q,s as Ge,t as k,u as K,v as F,w as G,x as j,y as W,z}from"./chunks/chunk-CRDKBFRN.js";import"./chunks/chunk-DMO3UIS7.js";import{a as Rt,b as At}from"./chunks/chunk-27JGS3KB.js";import"./chunks/chunk-BT5YNE5U.js";import{a as Be,b as De,c as Ie,d as ve,e as Ue,f as Me,g as _e,h as He,i as Ne}from"./chunks/chunk-3WJQ4IGK.js";import{a as qe}from"./chunks/chunk-KTIBXRWQ.js";import"./chunks/chunk-L4EJ5R3B.js";import"./chunks/chunk-6ZTP6CUJ.js";import"./chunks/chunk-TBODQT4W.js";import"./chunks/chunk-YRDPVTEI.js";import"./chunks/chunk-JRGECNP3.js";import"./chunks/chunk-RRWL5BHZ.js";import"./chunks/chunk-NXN7GJOH.js";import"./chunks/chunk-5WPMI6QX.js";import"./chunks/chunk-W7NXFRHN.js";import"./chunks/chunk-5HPZGLOL.js";import{a as P,b as w,c as be,d as Le}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-2LJCJOJ7.js";import"./chunks/chunk-AMC4Z7G4.js";import"./chunks/chunk-LK77GI6M.js";import"./chunks/chunk-HVM2GUM3.js";import"./chunks/chunk-JCLTFDVW.js";import"./chunks/chunk-I6VMRQF4.js";import"./chunks/chunk-QAFXQHHG.js";import"./chunks/chunk-OKKNDQJF.js";import"./chunks/chunk-AJXWJLZA.js";import"./chunks/chunk-3A7HZJNE.js";import{a as sn,b as rn,c as an,d as ln,e as pn,f as cn,g as un,h as mn,i as hn,j as dn,k as fn,l as gn,m as yn,n as Rn,o as An,p as Cn,q as On,r as Sn,s as Tn,t as Pn,u as wn}from"./chunks/chunk-JFZ6USNQ.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-G4E3WGLM.js";import"./chunks/chunk-ZY32SZ2P.js";import"./chunks/chunk-OTDDXEQ6.js";import"./chunks/chunk-ECOH24MC.js";import"./chunks/chunk-SH7POUVX.js";import"./chunks/chunk-2MEOUS24.js";import"./chunks/chunk-HNQPEOJD.js";import"./chunks/chunk-RCT3O3HQ.js";import"./chunks/chunk-ZFJWA4JK.js";import"./chunks/chunk-X2J2P5ZT.js";import"./chunks/chunk-UGOK7VTC.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function Xe(t,e=14){if(t.length<e+1)return null;let r=0,o=0;for(let l=1;l<=e;l+=1){let m=t[l]-t[l-1];m>=0?r+=m:o-=m}let a=r/e,i=o/e;for(let l=e+1;l<t.length;l+=1){let m=t[l]-t[l-1],d=m>0?m:0,n=m<0?-m:0;a=(a*(e-1)+d)/e,i=(i*(e-1)+n)/e}return i===0?100:100-100/(1+a/i)}s(Xe,"computeRsi");function T(t,e){if(t.length<e)return[];let r=[],o=0;for(let a=0;a<t.length;a+=1)o+=t[a],a>=e&&(o-=t[a-e]),a>=e-1&&r.push(o/e);return r}s(T,"computeSmaSeries");function Ze(t,e){let r=T(t,e);return r.length>0?r[r.length-1]:null}s(Ze,"computeSma");function A(t,e){if(t.length<e)return[];let r=2/(e+1),a=t.slice(0,e).reduce((p,l)=>p+l,0)/e,i=[a];for(let p=e;p<t.length;p+=1)a=t[p]*r+a*(1-r),i.push(a);return i}s(A,"computeEmaSeries");function et(t,e){let r=A(t,e);return r.length>0?r[r.length-1]:null}s(et,"computeEma");function tt(t){let e=A(t,12),r=A(t,26);if(e.length===0||r.length===0)return null;let o=e.length-r.length,a=r.map((m,d)=>e[d+o]-m),i=A(a,9);if(i.length===0)return null;let p=a[a.length-1],l=i[i.length-1];return{macd:p,signalLine:l,histogram:p-l}}s(tt,"computeMacd");function nt(t,e,r,o){if(t.length<o)return null;let a=e==="ema"?A(t,r):T(t,r),i=e==="ema"?A(t,o):T(t,o);if(a.length===0||i.length===0)return null;let p=a.length-i.length;if(p<0)return null;let l=i.length-1,m=a[l+p],d=i[l],n=l-1,c=n>=0?a[n+p]:null,u=n>=0?i[n]:null,h="neutral";return c!=null&&u!=null?c<=u&&m>d?h="bullish-cross":c>=u&&m<d?h="bearish-cross":m>d?h="bullish":m<d&&(h="bearish"):m>d?h="bullish":m<d&&(h="bearish"),{fast:m,slow:d,signal:h}}s(nt,"computeMaCross");function ot(t,e=20,r=2){if(t.length<e)return null;let o=t.slice(-e),a=o.reduce((l,m)=>l+m,0)/e,i=o.reduce((l,m)=>l+Math.pow(m-a,2),0)/e,p=Math.sqrt(i);return{middle:a,upper:a+r*p,lower:a-r*p}}s(ot,"computeBollinger");function st(t,e=24){if(t.length<2)return null;let r=t[t.length-1],o=Math.max(0,t.length-1-e),a=t[o];if(a===0)return null;let i=(r-a)/a*100;return{previous:a,percent:i}}s(st,"computePriceChange");function rt(t,e=14){if(t.length<e+1)return null;let r=[];for(let i=1;i<t.length;i+=1){let p=t[i],l=t[i-1],m=p.high-p.low,d=Math.abs(p.high-l.close),n=Math.abs(p.low-l.close);r.push(Math.max(m,d,n))}return r.length<e?null:r.slice(-e).reduce((i,p)=>i+p,0)/e}s(rt,"computeAtr");function Te(t){return t.replace(/\/$/,"")}s(Te,"resolveUrl");function at(t){let e=process.env.OPENPOND_BASE_URL,r=t.baseUrl||e||P;return Te(r.trim())}s(at,"resolveBaseUrl");function lt(t){let e=process.env.OPENPOND_API_URL,r=t.apiUrl||e||w;return Te(r.trim())}s(lt,"resolveApiUrl");function pt(t,e){return fe({apiBaseUrl:e,opChatApiBaseUrl:t.opChatApiUrl,chatApiBaseUrl:t.chatApiUrl})}s(pt,"resolveChatApiUrl");function it(t,e){let r=process.env.OPENPOND_TOOL_URL,o=t.toolUrl||r||e;return Te(o.trim())}s(it,"resolveToolUrl");function ct(t){let e=t.apiKey?.trim();if(e)return e;let r=process.env.OPENPOND_API_KEY?.trim();if(r)return r;throw new Error("OPENPOND_API_KEY is required")}s(ct,"resolveApiKey");function ut(t){let e=t.split("/").filter(Boolean);if(e.length!==2)throw new Error("expected <handle>/<repo>");return{handle:e[0],repo:e[1]}}s(ut,"parseHandleRepo");function Pe(t){return(t||"").trim().toLowerCase()}s(Pe,"normalizeRepoName");function mt(t){if(!t||typeof t!="object")return{name:"unknown",raw:t};let e=t,r=e.profile||e.function,o=typeof e.name=="string"?e.name:typeof r?.name=="string"?r.name:"unknown",a=typeof e.description=="string"?e.description:typeof r?.description=="string"?r.description:void 0;return{name:o,description:a,raw:t}}s(mt,"normalizeToolSummary");function ht(t){if(!t)return[];if(Array.isArray(t.toolsJson))return t.toolsJson;if(t.metadataJson&&typeof t.metadataJson=="object"){let e=t.metadataJson.tools;if(Array.isArray(e))return e}return[]}s(ht,"extractDeploymentTools");async function O(t){let{handle:e,repo:r}=ut(t.target),o=await Se({apiBase:t.apiBase,apiKey:t.apiKey,useCache:t.useCache,cacheTtlMs:t.cacheTtlMs,forceRefresh:t.forceRefresh}),a=Pe(r),i=o.find(p=>p.handle&&p.handle!==e?!1:[p.repo,p.gitRepo,p.id].map(Pe).includes(a));if(!i)throw new Error(`app not found for ${e}/${r}`);return{app:i,handle:e,repo:r}}s(O,"resolveAppTarget");async function Se(t){if(t.useCache&&!t.forceRefresh){let r=await ce({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(r)return r}let e=await v(t.apiBase,t.apiKey);return t.useCache&&await ue({apiBase:t.apiBase,apiKey:t.apiKey,apps:e}),e}s(Se,"fetchAppsWithCache");async function we(t){if(t.useCache&&!t.forceRefresh){let o=await me({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(o)return o}let e=await k(t.apiBase,t.apiKey),r=Array.isArray(e.tools)?e.tools:[];return t.useCache&&await he({apiBase:t.apiBase,apiKey:t.apiKey,tools:r}),r}s(we,"fetchToolsWithCache");function dt(t){if(!t)return"POST";let e=t.toUpperCase();switch(e){case"GET":case"POST":case"PUT":case"DELETE":return e;default:throw new Error("method must be GET, POST, PUT, or DELETE")}}s(dt,"normalizeMethod");async function ft(t,e){let r,o,a;return await de(t,{...e,onConversationId:s(i=>{r=i,e?.onConversationId?.(i)},"onConversationId"),onItems:s(i=>{for(let p of i){let l=p;!o&&typeof l.appId=="string"&&(o=l.appId,e?.onAppId?.(l.appId)),!a&&typeof l.deploymentId=="string"&&(a=l.deploymentId,e?.onDeploymentId?.(l.deploymentId))}e?.onItems?.(i)},"onItems")}),{conversationId:r,appId:o,deploymentId:a}}s(ft,"consumeAgentCreateStream");function vn(t){let e=ct(t),r=at(t),o=lt(t),a=pt(t,o),i=it(t,r),p=t.cacheTtlMs??ie,l=t.useCache!==!1,m=s(async()=>{l&&await Promise.all([Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0}),we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0})])},"refreshCache"),d=s(async(n,c)=>(await D(o,e,n,{branch:c}))?.id??null,"resolveLatestDeploymentId");return{baseUrl:r,apiUrl:o,chatApiUrl:a,toolUrl:i,apiKey:e,account:{get:s(async()=>se(o,e),"get"),health:s(async()=>re(o,e),"health")},chat:{providers:s(async()=>Re({apiBaseUrl:a,token:e}),"providers"),provider:s(async n=>Ae({apiBaseUrl:a,token:e,provider:n}),"provider"),models:s(async()=>ge({apiBaseUrl:a,token:e}),"models"),model:s(async n=>ye({apiBaseUrl:a,token:e,model:n}),"model"),send:s(async n=>Ce({...n,apiBaseUrl:a,token:e}),"send"),stream:s(n=>Oe({...n,apiBaseUrl:a,token:e}),"stream")},tool:{list:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)return{app:u,deploymentId:null,tools:[]};let g=await I(o,e,h),y=ht(g).map(mt);return{app:u,deploymentId:h,tools:y}},"list"),run:s(async(n,c,u)=>{let{app:h}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:u?.forceRefresh}),g=u?.deploymentId||await d(h.id,u?.branch);if(!g)throw new Error("no deployments found");let f=dt(u?.method);return pe(i,e,{appId:h.id,deploymentId:g,toolName:c,method:f,body:u?.body,headers:u?.headers})},"run")},deploy:{watch:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)throw new Error("no deployments found");let g=c?.intervalMs??5e3,f=c?.timeoutMs??240*1e3,y=[],S=new Set,Ee=Date.now(),R=null;for(;Date.now()-Ee<f;){let xe=await L(o,e,h);for(let C of xe)S.has(C.id)||(S.add(C.id),y.push(C),c?.onLog?.(C));if(R=(await B(o,e,h)).status??null,c?.onStatus?.(R),R==="failed")return{deploymentId:h,status:R,logs:y};if(R==="running"||R==="deployed")return{deploymentId:h,status:R,logs:y};await new Promise(C=>setTimeout(C,g))}return{deploymentId:h,status:"timeout",logs:y}},"watch")},template:{status:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return M(o,e,u.id)},"status"),branches:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return _(o,e,u.id)},"branches"),update:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.environment==="preview"?"preview":"production";return H(o,e,u.id,{environment:h})},"update")},opentool:{recipesList:s(async(n={})=>F(o,e,n),"recipesList"),recipesSearch:s(async n=>G(o,e,n),"recipesSearch"),recipeGet:s(async n=>j(o,e,n),"recipeGet"),rulesGet:s(async n=>W(o,e,n),"rulesGet")},apps:{list:s(async n=>{let c=await Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh});return n?.handle?c.filter(u=>u.handle===n.handle):c},"list"),tools:s(async n=>we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh}),"tools"),performance:s(async n=>ne(o,e,{appId:n?.appId}),"performance"),summary:s(async n=>oe(o,e,n.appId),"summary"),schedules:s(async n=>K(o,e,n.appId),"schedules"),schedulesStart:s(async n=>{let{appId:c,...u}=n;return z(o,e,c,u)},"schedulesStart"),schedulesStop:s(async n=>J(o,e,n.appId),"schedulesStop"),schedulesStopCurrent:s(async()=>$(o,e),"schedulesStopCurrent"),scheduleRunNow:s(async n=>V(o,e,n),"scheduleRunNow"),scheduleDelete:s(async n=>Y(o,e,n.appId,n.scheduleId),"scheduleDelete"),scheduleExecutionLogs:s(async n=>Q(o,e,n.scheduleId,{limit:n.limit}),"scheduleExecutionLogs"),scheduleExecutionLog:s(async n=>Z(o,e,n.runId),"scheduleExecutionLog"),deploymentScheduleExecutionLogs:s(async n=>X(o,e,n.deploymentId,{limit:n.limit}),"deploymentScheduleExecutionLogs"),executionTimeline:s(async n=>ee(o,e,n.appId,{limit:n.limit}),"executionTimeline"),assistantRun:s(async n=>ae(o,e,n),"assistantRun"),agentCreate:s(async(n,c)=>{let{refreshCache:u,...h}=n,g={...h,streamDeployLogs:h.streamDeployLogs??!0},f=await te(o,e,g);if(!f.ok){let S=await f.text().catch(()=>"");throw new Error(`agent create failed: ${f.status} ${S}`)}let y=await ft(f,c);if(l&&u!==!1)try{await m()}catch{}return y},"agentCreate"),toolsExecute:s(async n=>le(o,e,n),"toolsExecute"),deploy:s(async n=>E(o,e,n.appId,{environment:n.environment,commitSha:n.commitSha,branch:n.branch}),"deploy"),startApp:s(async n=>{let{appId:c,...u}=n;return b(o,e,c,u)},"startApp"),promotePreview:s(async n=>{let{appId:c,...u}=n;return x(o,e,c,u)},"promotePreview"),envGet:s(async n=>q(o,e,n.appId),"envGet"),envSet:s(async n=>N(o,e,n.appId,{envVars:n.envVars}),"envSet")},repo:{create:s(async n=>{let{refreshCache:c,...u}=n,h=await U(o,e,u);if(l&&c!==!1)try{await m()}catch{}return h},"create")},cache:{refresh:m}}}s(vn,"createClient");export{ie as DEFAULT_CACHE_TTL_MS,It as DEFAULT_LOCAL_PROFILE,w as DEFAULT_OPENPOND_API_BASE_URL,Le as DEFAULT_OPENPOND_CHAT_API_BASE_URL,be as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,P as DEFAULT_OPENPOND_WEB_BASE_URL,vt as DEFAULT_PROFILE_AGENT,an as OPENPOND_MANIFEST_FILE_NAME,Ot as OpenPondProfileSetupRequiredError,Rt as OpenPondSandboxClient,Dt as PROFILE_MANIFEST,Bt as PROFILE_REPO_MANIFEST,Ct as SANDBOX_RUNTIME_PROFILE_IDS,ln as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,pn as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,rn as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,sn as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,cn as SandboxTemplateManifestSchema,un as SandboxTemplateValidationDiagnosticSchema,qe as apiFetch,Tt as assertOpenPondProfileActionReady,St as buildOpenPondProfileSetupGate,re as checkOpenPondApiHealth,wt as collectProfileSourceUploadEntries,tn as commitActiveProfileChanges,ke as commitFiles,rt as computeAtr,ot as computeBollinger,et as computeEma,A as computeEmaSeries,nt as computeMaCross,tt as computeMacd,st as computePriceChange,Xe as computeRsi,Ze as computeSma,T as computeSmaSeries,ft as consumeAgentCreateStream,de as consumeStream,te as createAgentFromPrompt,vn as createClient,Fe as createHeadlessApps,Ke as createLocalProject,At as createOpenPondSandboxClient,U as createRepo,_t as defaultLocalProfileRepoPath,gn as defineSandboxTemplate,Y as deleteOrArchiveSchedule,E as deployApp,H as deployLatestTemplate,Ht as emptyProfileState,pe as executeHostedTool,le as executeUserTool,Ge as fetchToolManifest,Pt as formatOpenPondProfileSetupRequirement,fn as formatSandboxTemplateDiagnostics,Je as formatStreamItem,q as getAppEnvironment,ee as getAppExecutionTimeline,oe as getAppRuntimeSummary,ce as getCachedApps,me as getCachedTools,Be as getConfigPath,I as getDeploymentDetail,L as getDeploymentLogs,B as getDeploymentStatus,D as getLatestDeploymentForApp,ye as getOpChatModel,Ae as getOpChatProvider,se as getOpenPondAccount,j as getOpenToolRecipe,W as getOpenToolRules,Z as getScheduleExecutionLog,M as getTemplateStatus,ne as getUserPerformance,xt as hostedPublishStatusFromPayload,Lt as hostedRunStatusFromRunSummary,bt as hostedRunSummaryFromPayload,Et as hostedSourceCheckStatusFromPayload,Nt as initLocalProfileRepo,Vt as inspectOpenPondProfileSource,Ft as installAgentPackageIntoActiveProfile,K as listAppSchedules,v as listApps,Ue as listConfiguredProfiles,X as listDeploymentScheduleExecutionLogs,Ve as listHostedModels,Ye as listHostedProviders,ge as listOpChatModels,Re as listOpChatProviders,F as listOpenToolRecipes,Q as listScheduleExecutionLogs,_ as listTemplateBranches,k as listUserTools,ve as loadConfig,Ie as loadGlobalConfig,qt as loadLocalProfileRepo,Wt as loadOpenPondProfileLibrary,Gt as loadOpenPondProfileState,zt as loadOpenPondProfileStateForRef,Yt as loadOpenPondProfileStateFromSource,Mt as mergeActiveLocalProfileConfig,Ut as mergeProfileRepoManifestEntry,ze as normalizeDataFrames,yt as normalizeSandboxApiUrl,jt as openPondProfileRef,dn as parseSandboxTemplateYaml,je as postAgentDigest,on as prepareAgentSdkRuntimePackage,x as promotePreviewToProduction,kt as registerLocalProfileRepo,$t as removeOpenPondProfile,Kt as renameActiveProfileAgent,Qt as requireActiveLocalProfile,$e as resolveHostedChatApiBaseUrl,fe as resolveOpChatApiBaseUrl,We as resolveWorkerBaseUrl,Zt as runAgentSdkProjectCommand,ae as runAssistantMode,Qe as runOpChatSmoke,en as runProfileCheck,Xt as runProfileSdkCommand,V as runScheduleNow,Sn as sandboxTemplateBuildMetadata,Tn as sandboxTemplateBuildPlan,Rn as sandboxTemplateDurableVolume,On as sandboxTemplateExecutableEntries,Cn as sandboxTemplateFileInput,wn as sandboxTemplateJsonSchema,An as sandboxTemplatePreviewPort,yn as sandboxTemplateResources,Pn as sandboxTemplateScaffoldFiles,He as saveConfig,Ne as saveGlobalConfig,_e as saveProfileApiKey,nn as saveProfilePushStatus,G as searchOpenToolRecipes,Jt as selectOpenPondProfile,Ce as sendHostedChatTurn,Me as setActiveProfile,ue as setCachedApps,he as setCachedTools,b as startAppLifecycle,z as startAppSchedules,J as stopAppSchedules,$ as stopCurrentAppSchedules,Oe as streamHostedChatTurn,N as updateAppEnvironment,De as updateGlobalConfig,hn as validateSandboxTemplateManifest,mn as validateSandboxTemplateYaml};
|
|
2
|
+
import{a as Qe}from"./chunks/chunk-Q34IF4PW.js";import{a as fe,b as $e,c as ge,d as ye,e as Ve,f as Re,g as Ae,h as Ye,i as Ce,j as Oe}from"./chunks/chunk-6XSSM4WT.js";import{a as ze,b as de,c as Je}from"./chunks/chunk-22UARBPW.js";import"./chunks/chunk-X37KMV27.js";import{A as zt,B as Jt,C as $t,D as Vt,E as Yt,F as Qt,G as Xt,H as Zt,I as en,J as tn,K as nn,L as on,b as Ot,c as St,d as Tt,e as Pt,f as wt,g as Et,h as xt,i as bt,j as Lt,k as Bt,l as Dt,m as It,n as vt,o as Ut,p as Mt,q as _t,r as Ht,s as Nt,t as qt,u as kt,v as Kt,w as Ft,x as Gt,y as jt,z as Wt}from"./chunks/chunk-NRYC4NH6.js";import"./chunks/chunk-EXYSD45J.js";import{A as J,B as $,C as V,D as Y,E as Q,F as X,G as Z,H as ee,I as te,J as ne,K as oe,L as se,M as re,N as ae,O as je,P as le,T as We,U as pe,V as ie,W as ce,X as ue,Y as me,Z as he,_ as Ct,a as ke,b as E,c as x,d as b,e as L,f as B,g as D,h as I,i as v,j as Ke,k as U,m as Fe,n as M,o as _,p as H,q as N,r as q,s as Ge,t as k,u as K,v as F,w as G,x as j,y as W,z}from"./chunks/chunk-JEMECEQH.js";import"./chunks/chunk-73TW6BKK.js";import{a as Rt,b as At}from"./chunks/chunk-27JGS3KB.js";import"./chunks/chunk-BT5YNE5U.js";import{a as Be,b as De,c as Ie,d as ve,e as Ue,f as Me,g as _e,h as He,i as Ne}from"./chunks/chunk-RPM4FDRX.js";import{a as qe}from"./chunks/chunk-KTIBXRWQ.js";import"./chunks/chunk-KP2MYTP5.js";import"./chunks/chunk-PNPV2LDE.js";import"./chunks/chunk-4G3GTEVS.js";import"./chunks/chunk-KU4TPDPH.js";import"./chunks/chunk-55YD4UTW.js";import"./chunks/chunk-AFYYIJ6K.js";import"./chunks/chunk-J256AEEE.js";import"./chunks/chunk-UN2LKLGV.js";import{a as yt}from"./chunks/chunk-2LJCJOJ7.js";import"./chunks/chunk-AMC4Z7G4.js";import"./chunks/chunk-LK77GI6M.js";import"./chunks/chunk-HVM2GUM3.js";import"./chunks/chunk-I6VMRQF4.js";import"./chunks/chunk-D6L6UNUQ.js";import"./chunks/chunk-AJXWJLZA.js";import"./chunks/chunk-OKKNDQJF.js";import"./chunks/chunk-4PUOWSDE.js";import"./chunks/chunk-ZY32SZ2P.js";import"./chunks/chunk-OTDDXEQ6.js";import"./chunks/chunk-ECOH24MC.js";import"./chunks/chunk-3A7HZJNE.js";import{a as sn,b as rn,c as an,d as ln,e as pn,f as cn,g as un,h as mn,i as hn,j as dn,k as fn,l as gn,m as yn,n as Rn,o as An,p as Cn,q as On,r as Sn,s as Tn,t as Pn,u as wn}from"./chunks/chunk-G7X73SBG.js";import{a as P,b as w,c as be,d as Le}from"./chunks/chunk-GLUWATL5.js";import"./chunks/chunk-JCLTFDVW.js";import"./chunks/chunk-6FA3GG5B.js";import"./chunks/chunk-SV7ZBEK2.js";import"./chunks/chunk-2MEOUS24.js";import"./chunks/chunk-HNQPEOJD.js";import"./chunks/chunk-RCT3O3HQ.js";import"./chunks/chunk-UGOK7VTC.js";import"./chunks/chunk-TBODQT4W.js";import"./chunks/chunk-5HPZGLOL.js";import"./chunks/chunk-ZFJWA4JK.js";import"./chunks/chunk-X2J2P5ZT.js";import{a as s}from"./chunks/chunk-FTQLQJQV.js";function Xe(t,e=14){if(t.length<e+1)return null;let r=0,o=0;for(let l=1;l<=e;l+=1){let m=t[l]-t[l-1];m>=0?r+=m:o-=m}let a=r/e,i=o/e;for(let l=e+1;l<t.length;l+=1){let m=t[l]-t[l-1],d=m>0?m:0,n=m<0?-m:0;a=(a*(e-1)+d)/e,i=(i*(e-1)+n)/e}return i===0?100:100-100/(1+a/i)}s(Xe,"computeRsi");function T(t,e){if(t.length<e)return[];let r=[],o=0;for(let a=0;a<t.length;a+=1)o+=t[a],a>=e&&(o-=t[a-e]),a>=e-1&&r.push(o/e);return r}s(T,"computeSmaSeries");function Ze(t,e){let r=T(t,e);return r.length>0?r[r.length-1]:null}s(Ze,"computeSma");function A(t,e){if(t.length<e)return[];let r=2/(e+1),a=t.slice(0,e).reduce((p,l)=>p+l,0)/e,i=[a];for(let p=e;p<t.length;p+=1)a=t[p]*r+a*(1-r),i.push(a);return i}s(A,"computeEmaSeries");function et(t,e){let r=A(t,e);return r.length>0?r[r.length-1]:null}s(et,"computeEma");function tt(t){let e=A(t,12),r=A(t,26);if(e.length===0||r.length===0)return null;let o=e.length-r.length,a=r.map((m,d)=>e[d+o]-m),i=A(a,9);if(i.length===0)return null;let p=a[a.length-1],l=i[i.length-1];return{macd:p,signalLine:l,histogram:p-l}}s(tt,"computeMacd");function nt(t,e,r,o){if(t.length<o)return null;let a=e==="ema"?A(t,r):T(t,r),i=e==="ema"?A(t,o):T(t,o);if(a.length===0||i.length===0)return null;let p=a.length-i.length;if(p<0)return null;let l=i.length-1,m=a[l+p],d=i[l],n=l-1,c=n>=0?a[n+p]:null,u=n>=0?i[n]:null,h="neutral";return c!=null&&u!=null?c<=u&&m>d?h="bullish-cross":c>=u&&m<d?h="bearish-cross":m>d?h="bullish":m<d&&(h="bearish"):m>d?h="bullish":m<d&&(h="bearish"),{fast:m,slow:d,signal:h}}s(nt,"computeMaCross");function ot(t,e=20,r=2){if(t.length<e)return null;let o=t.slice(-e),a=o.reduce((l,m)=>l+m,0)/e,i=o.reduce((l,m)=>l+Math.pow(m-a,2),0)/e,p=Math.sqrt(i);return{middle:a,upper:a+r*p,lower:a-r*p}}s(ot,"computeBollinger");function st(t,e=24){if(t.length<2)return null;let r=t[t.length-1],o=Math.max(0,t.length-1-e),a=t[o];if(a===0)return null;let i=(r-a)/a*100;return{previous:a,percent:i}}s(st,"computePriceChange");function rt(t,e=14){if(t.length<e+1)return null;let r=[];for(let i=1;i<t.length;i+=1){let p=t[i],l=t[i-1],m=p.high-p.low,d=Math.abs(p.high-l.close),n=Math.abs(p.low-l.close);r.push(Math.max(m,d,n))}return r.length<e?null:r.slice(-e).reduce((i,p)=>i+p,0)/e}s(rt,"computeAtr");function Te(t){return t.replace(/\/$/,"")}s(Te,"resolveUrl");function at(t){let e=process.env.OPENPOND_BASE_URL,r=t.baseUrl||e||P;return Te(r.trim())}s(at,"resolveBaseUrl");function lt(t){let e=process.env.OPENPOND_API_URL,r=t.apiUrl||e||w;return Te(r.trim())}s(lt,"resolveApiUrl");function pt(t,e){return fe({apiBaseUrl:e,opChatApiBaseUrl:t.opChatApiUrl,chatApiBaseUrl:t.chatApiUrl})}s(pt,"resolveChatApiUrl");function it(t,e){let r=process.env.OPENPOND_TOOL_URL,o=t.toolUrl||r||e;return Te(o.trim())}s(it,"resolveToolUrl");function ct(t){let e=t.apiKey?.trim();if(e)return e;let r=process.env.OPENPOND_API_KEY?.trim();if(r)return r;throw new Error("OPENPOND_API_KEY is required")}s(ct,"resolveApiKey");function ut(t){let e=t.split("/").filter(Boolean);if(e.length!==2)throw new Error("expected <handle>/<repo>");return{handle:e[0],repo:e[1]}}s(ut,"parseHandleRepo");function Pe(t){return(t||"").trim().toLowerCase()}s(Pe,"normalizeRepoName");function mt(t){if(!t||typeof t!="object")return{name:"unknown",raw:t};let e=t,r=e.profile||e.function,o=typeof e.name=="string"?e.name:typeof r?.name=="string"?r.name:"unknown",a=typeof e.description=="string"?e.description:typeof r?.description=="string"?r.description:void 0;return{name:o,description:a,raw:t}}s(mt,"normalizeToolSummary");function ht(t){if(!t)return[];if(Array.isArray(t.toolsJson))return t.toolsJson;if(t.metadataJson&&typeof t.metadataJson=="object"){let e=t.metadataJson.tools;if(Array.isArray(e))return e}return[]}s(ht,"extractDeploymentTools");async function O(t){let{handle:e,repo:r}=ut(t.target),o=await Se({apiBase:t.apiBase,apiKey:t.apiKey,useCache:t.useCache,cacheTtlMs:t.cacheTtlMs,forceRefresh:t.forceRefresh}),a=Pe(r),i=o.find(p=>p.handle&&p.handle!==e?!1:[p.repo,p.gitRepo,p.id].map(Pe).includes(a));if(!i)throw new Error(`app not found for ${e}/${r}`);return{app:i,handle:e,repo:r}}s(O,"resolveAppTarget");async function Se(t){if(t.useCache&&!t.forceRefresh){let r=await ce({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(r)return r}let e=await v(t.apiBase,t.apiKey);return t.useCache&&await ue({apiBase:t.apiBase,apiKey:t.apiKey,apps:e}),e}s(Se,"fetchAppsWithCache");async function we(t){if(t.useCache&&!t.forceRefresh){let o=await me({apiBase:t.apiBase,apiKey:t.apiKey,ttlMs:t.cacheTtlMs});if(o)return o}let e=await k(t.apiBase,t.apiKey),r=Array.isArray(e.tools)?e.tools:[];return t.useCache&&await he({apiBase:t.apiBase,apiKey:t.apiKey,tools:r}),r}s(we,"fetchToolsWithCache");function dt(t){if(!t)return"POST";let e=t.toUpperCase();switch(e){case"GET":case"POST":case"PUT":case"DELETE":return e;default:throw new Error("method must be GET, POST, PUT, or DELETE")}}s(dt,"normalizeMethod");async function ft(t,e){let r,o,a;return await de(t,{...e,onConversationId:s(i=>{r=i,e?.onConversationId?.(i)},"onConversationId"),onItems:s(i=>{for(let p of i){let l=p;!o&&typeof l.appId=="string"&&(o=l.appId,e?.onAppId?.(l.appId)),!a&&typeof l.deploymentId=="string"&&(a=l.deploymentId,e?.onDeploymentId?.(l.deploymentId))}e?.onItems?.(i)},"onItems")}),{conversationId:r,appId:o,deploymentId:a}}s(ft,"consumeAgentCreateStream");function vn(t){let e=ct(t),r=at(t),o=lt(t),a=pt(t,o),i=it(t,r),p=t.cacheTtlMs??ie,l=t.useCache!==!1,m=s(async()=>{l&&await Promise.all([Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0}),we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:!0})])},"refreshCache"),d=s(async(n,c)=>(await D(o,e,n,{branch:c}))?.id??null,"resolveLatestDeploymentId");return{baseUrl:r,apiUrl:o,chatApiUrl:a,toolUrl:i,apiKey:e,account:{get:s(async()=>se(o,e),"get"),health:s(async()=>re(o,e),"health")},chat:{providers:s(async()=>Re({apiBaseUrl:a,token:e}),"providers"),provider:s(async n=>Ae({apiBaseUrl:a,token:e,provider:n}),"provider"),models:s(async()=>ge({apiBaseUrl:a,token:e}),"models"),model:s(async n=>ye({apiBaseUrl:a,token:e,model:n}),"model"),send:s(async n=>Ce({...n,apiBaseUrl:a,token:e}),"send"),stream:s(n=>Oe({...n,apiBaseUrl:a,token:e}),"stream")},tool:{list:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)return{app:u,deploymentId:null,tools:[]};let g=await I(o,e,h),y=ht(g).map(mt);return{app:u,deploymentId:h,tools:y}},"list"),run:s(async(n,c,u)=>{let{app:h}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:u?.forceRefresh}),g=u?.deploymentId||await d(h.id,u?.branch);if(!g)throw new Error("no deployments found");let f=dt(u?.method);return pe(i,e,{appId:h.id,deploymentId:g,toolName:c,method:f,body:u?.body,headers:u?.headers})},"run")},deploy:{watch:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.deploymentId||await d(u.id,c?.branch);if(!h)throw new Error("no deployments found");let g=c?.intervalMs??5e3,f=c?.timeoutMs??240*1e3,y=[],S=new Set,Ee=Date.now(),R=null;for(;Date.now()-Ee<f;){let xe=await L(o,e,h);for(let C of xe)S.has(C.id)||(S.add(C.id),y.push(C),c?.onLog?.(C));if(R=(await B(o,e,h)).status??null,c?.onStatus?.(R),R==="failed")return{deploymentId:h,status:R,logs:y};if(R==="running"||R==="deployed")return{deploymentId:h,status:R,logs:y};await new Promise(C=>setTimeout(C,g))}return{deploymentId:h,status:"timeout",logs:y}},"watch")},template:{status:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return M(o,e,u.id)},"status"),branches:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh});return _(o,e,u.id)},"branches"),update:s(async(n,c)=>{let{app:u}=await O({apiBase:o,apiKey:e,target:n,useCache:l,cacheTtlMs:p,forceRefresh:c?.forceRefresh}),h=c?.environment==="preview"?"preview":"production";return H(o,e,u.id,{environment:h})},"update")},opentool:{recipesList:s(async(n={})=>F(o,e,n),"recipesList"),recipesSearch:s(async n=>G(o,e,n),"recipesSearch"),recipeGet:s(async n=>j(o,e,n),"recipeGet"),rulesGet:s(async n=>W(o,e,n),"rulesGet")},apps:{list:s(async n=>{let c=await Se({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh});return n?.handle?c.filter(u=>u.handle===n.handle):c},"list"),tools:s(async n=>we({apiBase:o,apiKey:e,useCache:l,cacheTtlMs:p,forceRefresh:n?.forceRefresh}),"tools"),performance:s(async n=>ne(o,e,{appId:n?.appId}),"performance"),summary:s(async n=>oe(o,e,n.appId),"summary"),schedules:s(async n=>K(o,e,n.appId),"schedules"),schedulesStart:s(async n=>{let{appId:c,...u}=n;return z(o,e,c,u)},"schedulesStart"),schedulesStop:s(async n=>J(o,e,n.appId),"schedulesStop"),schedulesStopCurrent:s(async()=>$(o,e),"schedulesStopCurrent"),scheduleRunNow:s(async n=>V(o,e,n),"scheduleRunNow"),scheduleDelete:s(async n=>Y(o,e,n.appId,n.scheduleId),"scheduleDelete"),scheduleExecutionLogs:s(async n=>Q(o,e,n.scheduleId,{limit:n.limit}),"scheduleExecutionLogs"),scheduleExecutionLog:s(async n=>Z(o,e,n.runId),"scheduleExecutionLog"),deploymentScheduleExecutionLogs:s(async n=>X(o,e,n.deploymentId,{limit:n.limit}),"deploymentScheduleExecutionLogs"),executionTimeline:s(async n=>ee(o,e,n.appId,{limit:n.limit}),"executionTimeline"),assistantRun:s(async n=>ae(o,e,n),"assistantRun"),agentCreate:s(async(n,c)=>{let{refreshCache:u,...h}=n,g={...h,streamDeployLogs:h.streamDeployLogs??!0},f=await te(o,e,g);if(!f.ok){let S=await f.text().catch(()=>"");throw new Error(`agent create failed: ${f.status} ${S}`)}let y=await ft(f,c);if(l&&u!==!1)try{await m()}catch{}return y},"agentCreate"),toolsExecute:s(async n=>le(o,e,n),"toolsExecute"),deploy:s(async n=>E(o,e,n.appId,{environment:n.environment,commitSha:n.commitSha,branch:n.branch}),"deploy"),startApp:s(async n=>{let{appId:c,...u}=n;return b(o,e,c,u)},"startApp"),promotePreview:s(async n=>{let{appId:c,...u}=n;return x(o,e,c,u)},"promotePreview"),envGet:s(async n=>q(o,e,n.appId),"envGet"),envSet:s(async n=>N(o,e,n.appId,{envVars:n.envVars}),"envSet")},repo:{create:s(async n=>{let{refreshCache:c,...u}=n,h=await U(o,e,u);if(l&&c!==!1)try{await m()}catch{}return h},"create")},cache:{refresh:m}}}s(vn,"createClient");export{ie as DEFAULT_CACHE_TTL_MS,It as DEFAULT_LOCAL_PROFILE,w as DEFAULT_OPENPOND_API_BASE_URL,Le as DEFAULT_OPENPOND_CHAT_API_BASE_URL,be as DEFAULT_OPENPOND_OPCHAT_API_BASE_URL,P as DEFAULT_OPENPOND_WEB_BASE_URL,vt as DEFAULT_PROFILE_AGENT,an as OPENPOND_MANIFEST_FILE_NAME,Ot as OpenPondProfileSetupRequiredError,Rt as OpenPondSandboxClient,Dt as PROFILE_MANIFEST,Bt as PROFILE_REPO_MANIFEST,Ct as SANDBOX_RUNTIME_PROFILE_IDS,ln as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,pn as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,rn as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,sn as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,cn as SandboxTemplateManifestSchema,un as SandboxTemplateValidationDiagnosticSchema,qe as apiFetch,Tt as assertOpenPondProfileActionReady,St as buildOpenPondProfileSetupGate,re as checkOpenPondApiHealth,wt as collectProfileSourceUploadEntries,tn as commitActiveProfileChanges,ke as commitFiles,rt as computeAtr,ot as computeBollinger,et as computeEma,A as computeEmaSeries,nt as computeMaCross,tt as computeMacd,st as computePriceChange,Xe as computeRsi,Ze as computeSma,T as computeSmaSeries,ft as consumeAgentCreateStream,de as consumeStream,te as createAgentFromPrompt,vn as createClient,Fe as createHeadlessApps,Ke as createLocalProject,At as createOpenPondSandboxClient,U as createRepo,_t as defaultLocalProfileRepoPath,gn as defineSandboxTemplate,Y as deleteOrArchiveSchedule,E as deployApp,H as deployLatestTemplate,Ht as emptyProfileState,pe as executeHostedTool,le as executeUserTool,Ge as fetchToolManifest,Pt as formatOpenPondProfileSetupRequirement,fn as formatSandboxTemplateDiagnostics,Je as formatStreamItem,q as getAppEnvironment,ee as getAppExecutionTimeline,oe as getAppRuntimeSummary,ce as getCachedApps,me as getCachedTools,Be as getConfigPath,I as getDeploymentDetail,L as getDeploymentLogs,B as getDeploymentStatus,D as getLatestDeploymentForApp,ye as getOpChatModel,Ae as getOpChatProvider,se as getOpenPondAccount,j as getOpenToolRecipe,W as getOpenToolRules,Z as getScheduleExecutionLog,M as getTemplateStatus,ne as getUserPerformance,xt as hostedPublishStatusFromPayload,Lt as hostedRunStatusFromRunSummary,bt as hostedRunSummaryFromPayload,Et as hostedSourceCheckStatusFromPayload,Nt as initLocalProfileRepo,Vt as inspectOpenPondProfileSource,Ft as installAgentPackageIntoActiveProfile,K as listAppSchedules,v as listApps,Ue as listConfiguredProfiles,X as listDeploymentScheduleExecutionLogs,Ve as listHostedModels,Ye as listHostedProviders,ge as listOpChatModels,Re as listOpChatProviders,F as listOpenToolRecipes,Q as listScheduleExecutionLogs,_ as listTemplateBranches,k as listUserTools,ve as loadConfig,Ie as loadGlobalConfig,qt as loadLocalProfileRepo,Wt as loadOpenPondProfileLibrary,Gt as loadOpenPondProfileState,zt as loadOpenPondProfileStateForRef,Yt as loadOpenPondProfileStateFromSource,Mt as mergeActiveLocalProfileConfig,Ut as mergeProfileRepoManifestEntry,ze as normalizeDataFrames,yt as normalizeSandboxApiUrl,jt as openPondProfileRef,dn as parseSandboxTemplateYaml,je as postAgentDigest,on as prepareAgentSdkRuntimePackage,x as promotePreviewToProduction,kt as registerLocalProfileRepo,$t as removeOpenPondProfile,Kt as renameActiveProfileAgent,Qt as requireActiveLocalProfile,$e as resolveHostedChatApiBaseUrl,fe as resolveOpChatApiBaseUrl,We as resolveWorkerBaseUrl,Zt as runAgentSdkProjectCommand,ae as runAssistantMode,Qe as runOpChatSmoke,en as runProfileCheck,Xt as runProfileSdkCommand,V as runScheduleNow,Sn as sandboxTemplateBuildMetadata,Tn as sandboxTemplateBuildPlan,Rn as sandboxTemplateDurableVolume,On as sandboxTemplateExecutableEntries,Cn as sandboxTemplateFileInput,wn as sandboxTemplateJsonSchema,An as sandboxTemplatePreviewPort,yn as sandboxTemplateResources,Pn as sandboxTemplateScaffoldFiles,He as saveConfig,Ne as saveGlobalConfig,_e as saveProfileApiKey,nn as saveProfilePushStatus,G as searchOpenToolRecipes,Jt as selectOpenPondProfile,Ce as sendHostedChatTurn,Me as setActiveProfile,ue as setCachedApps,he as setCachedTools,b as startAppLifecycle,z as startAppSchedules,J as stopAppSchedules,$ as stopCurrentAppSchedules,Oe as streamHostedChatTurn,N as updateAppEnvironment,De as updateGlobalConfig,hn as validateSandboxTemplateManifest,mn as validateSandboxTemplateYaml};
|
|
@@ -82,12 +82,14 @@ export type SandboxCostSummary = {
|
|
|
82
82
|
export type SandboxBillingStatus = {
|
|
83
83
|
sandboxId: string;
|
|
84
84
|
state: SandboxState;
|
|
85
|
-
billingModel: "reserve_capture" | "session";
|
|
85
|
+
billingModel: "reserve_capture" | "session" | "actual_usage";
|
|
86
|
+
computeUsage?: SandboxComputeUsageStatus;
|
|
87
|
+
nativeRootStorage?: SandboxNativeRootStorageStatus;
|
|
86
88
|
reservationStatus: SandboxReservation["status"];
|
|
87
|
-
budgetUsd: string;
|
|
89
|
+
budgetUsd: string | null;
|
|
88
90
|
reservedUsd: string;
|
|
89
91
|
capturedUsd: string;
|
|
90
|
-
remainingBudgetUsd: string;
|
|
92
|
+
remainingBudgetUsd: string | null;
|
|
91
93
|
mppMode: NonNullable<SandboxReservation["mpp"]>["mode"] | null;
|
|
92
94
|
sessionRef: string | null;
|
|
93
95
|
channelId: string | null;
|
|
@@ -105,6 +107,7 @@ export type SandboxReservation = {
|
|
|
105
107
|
status: "reserved" | "captured" | "released";
|
|
106
108
|
reservedUsd: string;
|
|
107
109
|
capturedUsd: string;
|
|
110
|
+
usageFunding?: SandboxUsageFundingRef;
|
|
108
111
|
mpp?: {
|
|
109
112
|
mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
|
|
110
113
|
settlementRail: "tempo_usdce";
|
|
@@ -122,6 +125,33 @@ export type SandboxReservation = {
|
|
|
122
125
|
createdAt: string;
|
|
123
126
|
updatedAt: string;
|
|
124
127
|
};
|
|
128
|
+
export type SandboxUsageFundingRef = {
|
|
129
|
+
schemaVersion: "openpond.sandboxUsageFundingRef.v1";
|
|
130
|
+
capacityLeaseId: string;
|
|
131
|
+
authorizationHash: string;
|
|
132
|
+
profileHash: string;
|
|
133
|
+
};
|
|
134
|
+
export type SandboxComputeUsageSummary = {
|
|
135
|
+
schemaVersion: "openpond.sandboxComputeUsageSummary.v1";
|
|
136
|
+
fundingReservationId: string;
|
|
137
|
+
capacityLeaseId: string;
|
|
138
|
+
authorizationHash: string;
|
|
139
|
+
closureEvidenceHash: string;
|
|
140
|
+
price: {
|
|
141
|
+
version: string;
|
|
142
|
+
profileHash: string;
|
|
143
|
+
currency: "USD";
|
|
144
|
+
unit: "resource_hour";
|
|
145
|
+
hourlyUsd: string;
|
|
146
|
+
};
|
|
147
|
+
observedQuantityMillis: number;
|
|
148
|
+
billableQuantityMillis: number;
|
|
149
|
+
ratedUsd: string;
|
|
150
|
+
chargedUsd: string;
|
|
151
|
+
includedStandardUsd: string;
|
|
152
|
+
prepaidStandardUsd: string;
|
|
153
|
+
prepaidPayableUsd: string;
|
|
154
|
+
};
|
|
125
155
|
export type SandboxReceiptLineItem = {
|
|
126
156
|
label: string;
|
|
127
157
|
quantity: number;
|
|
@@ -134,13 +164,14 @@ export type SandboxReceipt = {
|
|
|
134
164
|
sandboxId: string;
|
|
135
165
|
reservationId: string;
|
|
136
166
|
status: "captured" | "released";
|
|
137
|
-
reason: "stopped" | "deleted" | "archived" | "budget_exhausted" | "duration_exceeded" | "idle_timeout" | "manual_capture";
|
|
167
|
+
reason: "stopped" | "deleted" | "archived" | "create_failed" | "budget_exhausted" | "duration_exceeded" | "idle_timeout" | "manual_capture";
|
|
138
168
|
totalUsd: string;
|
|
169
|
+
retailTotalUsd?: string;
|
|
139
170
|
durationSeconds: number;
|
|
140
171
|
lineItems: SandboxReceiptLineItem[];
|
|
141
172
|
mpp: {
|
|
142
|
-
mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook";
|
|
143
|
-
settlementRail: "tempo_usdce";
|
|
173
|
+
mode: "simulated_poc" | "mpp_service_hook" | "mpp_session_hook" | "account_usage";
|
|
174
|
+
settlementRail: "tempo_usdce" | "stripe_credit";
|
|
144
175
|
receiptRef: string;
|
|
145
176
|
sessionRef?: string | null;
|
|
146
177
|
channelId?: string | null;
|
|
@@ -148,6 +179,14 @@ export type SandboxReceipt = {
|
|
|
148
179
|
depositUsd?: string | null;
|
|
149
180
|
remainingUsd?: string | null;
|
|
150
181
|
};
|
|
182
|
+
fundingAllocation?: {
|
|
183
|
+
includedStandardUsd: string;
|
|
184
|
+
prepaidStandardUsd: string;
|
|
185
|
+
postpaidStandardUsd: string;
|
|
186
|
+
customerFundedStandardUsd: string;
|
|
187
|
+
unfundedStandardUsd: string;
|
|
188
|
+
};
|
|
189
|
+
usageSummary?: SandboxComputeUsageSummary;
|
|
151
190
|
createdAt: string;
|
|
152
191
|
};
|
|
153
192
|
export type SandboxCommand = {
|
|
@@ -174,3 +213,45 @@ export type SandboxPreviewPort = {
|
|
|
174
213
|
token: string;
|
|
175
214
|
createdAt: string;
|
|
176
215
|
};
|
|
216
|
+
/** Current original actual-use funding; customer retail amounts only. */
|
|
217
|
+
export interface SandboxComputeUsageStatus {
|
|
218
|
+
state: "active" | "exhausted" | "closed";
|
|
219
|
+
stopReason: "credit_exhausted" | "cap_reached" | "control_expired" | "policy_changed" | "member_cap_reached" | null;
|
|
220
|
+
customerCapUsd: string | null;
|
|
221
|
+
price: {
|
|
222
|
+
version: string;
|
|
223
|
+
currency: "USD";
|
|
224
|
+
unit: "resource_hour";
|
|
225
|
+
hourlyUsd: string;
|
|
226
|
+
};
|
|
227
|
+
observedQuantityMillis: number;
|
|
228
|
+
billableQuantityMillis: number;
|
|
229
|
+
ratedUsd: string;
|
|
230
|
+
chargedUsd: string;
|
|
231
|
+
includedStandardUsd: string;
|
|
232
|
+
prepaidStandardUsd: string;
|
|
233
|
+
prepaidPayableUsd: string;
|
|
234
|
+
observedAt: string;
|
|
235
|
+
closedAt: string | null;
|
|
236
|
+
}
|
|
237
|
+
/** Retained native root storage is independent of active compute. */
|
|
238
|
+
export interface SandboxNativeRootStorageStatus {
|
|
239
|
+
phase: "executing" | "retained" | "deleted";
|
|
240
|
+
phaseAt: string;
|
|
241
|
+
diskGiB: number;
|
|
242
|
+
price: {
|
|
243
|
+
version: string;
|
|
244
|
+
currency: "USD";
|
|
245
|
+
unit: "GiB-second";
|
|
246
|
+
unitPriceUsd: string;
|
|
247
|
+
};
|
|
248
|
+
quantityGiBMillis: number;
|
|
249
|
+
ratedUsd: string;
|
|
250
|
+
chargedUsd: string;
|
|
251
|
+
includedStandardUsd: string;
|
|
252
|
+
prepaidStandardUsd: string;
|
|
253
|
+
prepaidPayableUsd: string;
|
|
254
|
+
meteredTo: string;
|
|
255
|
+
status: "current" | "funding_shortfall";
|
|
256
|
+
shortfallReason: "credit_exhausted" | "member_cap_reached" | "billing_suspended" | null;
|
|
257
|
+
}
|
|
@@ -104,6 +104,9 @@ export type SandboxPtyStartInput = {
|
|
|
104
104
|
};
|
|
105
105
|
export type SandboxPtyInput = {
|
|
106
106
|
dataBase64: string;
|
|
107
|
+
/** Resize without stdin by passing an empty dataBase64 and both dimensions. */
|
|
108
|
+
rows?: number;
|
|
109
|
+
cols?: number;
|
|
107
110
|
};
|
|
108
111
|
export type SandboxPtyStatus = "running" | "exited" | "failed" | "timed_out" | "stopped";
|
|
109
112
|
export type SandboxPtySession = {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import"../chunks/chunk-3A7HZJNE.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"../chunks/chunk-
|
|
2
|
+
import"../chunks/chunk-3A7HZJNE.js";import{a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u}from"../chunks/chunk-G7X73SBG.js";import"../chunks/chunk-6FA3GG5B.js";import"../chunks/chunk-ZFJWA4JK.js";import"../chunks/chunk-X2J2P5ZT.js";import"../chunks/chunk-FTQLQJQV.js";export{c as OPENPOND_MANIFEST_FILE_NAME,d as SANDBOX_TEMPLATE_BUILD_PLAN_FILE_NAME,e as SANDBOX_TEMPLATE_BUILD_PLAN_KIND,b as SANDBOX_TEMPLATE_PREVIEW_PORT_MAX,a as SANDBOX_TEMPLATE_PREVIEW_PORT_MIN,f as SandboxTemplateManifestSchema,g as SandboxTemplateValidationDiagnosticSchema,l as defineSandboxTemplate,k as formatSandboxTemplateDiagnostics,j as parseSandboxTemplateYaml,r as sandboxTemplateBuildMetadata,s as sandboxTemplateBuildPlan,n as sandboxTemplateDurableVolume,q as sandboxTemplateExecutableEntries,p as sandboxTemplateFileInput,u as sandboxTemplateJsonSchema,o as sandboxTemplatePreviewPort,m as sandboxTemplateResources,t as sandboxTemplateScaffoldFiles,i as validateSandboxTemplateManifest,h as validateSandboxTemplateYaml};
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"package": "openpond",
|
|
29
|
-
"version": "0.2.
|
|
29
|
+
"version": "0.2.68",
|
|
30
30
|
"sourceFiles": [
|
|
31
31
|
{
|
|
32
32
|
"path": "openpond-cli/SKILL.md",
|
|
@@ -45,8 +45,8 @@
|
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
47
|
"path": "openpond-cli/references/experiments-and-training.md",
|
|
48
|
-
"bytes":
|
|
49
|
-
"sha256": "
|
|
48
|
+
"bytes": 70324,
|
|
49
|
+
"sha256": "a610de8e67cbd663d7a3fc3942c307e5869e2d56cc28ddb22d113dbf0d045466"
|
|
50
50
|
},
|
|
51
51
|
{
|
|
52
52
|
"path": "openpond-taskset-authoring/SKILL.md",
|