openpond 0.2.73 → 0.2.75
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app-server.js +1 -1
- package/dist/chunks/{acp-35QBGOMJ.js → acp-HGJMC75K.js} +1 -1
- package/dist/chunks/{acp-agent-4PKMX52I.js → acp-agent-CWV5NF6V.js} +1 -1
- package/dist/chunks/{app-layer-42ZKHTPN.js → app-layer-76YRQY7S.js} +1 -1
- package/dist/chunks/{app-server-evaluations-5JVNCET7.js → app-server-evaluations-PQDIMJJ7.js} +1 -1
- package/dist/chunks/{app-server-harness-services-4E236TXE.js → app-server-harness-services-5MB7CCCT.js} +1 -1
- package/dist/chunks/{app-server-runtime-CI2NTKX7.js → app-server-runtime-N3XZV35H.js} +1 -1
- package/dist/chunks/{apps-EGFRTFAJ.js → apps-DJQ2ZJKC.js} +1 -1
- package/dist/chunks/{chunk-QKGNAYSC.js → chunk-2HWSF4FS.js} +1 -1
- package/dist/chunks/{chunk-KQ7RFPG5.js → chunk-3SIZBCEO.js} +1 -1
- package/dist/chunks/{chunk-TP222CV2.js → chunk-5SBKDKGI.js} +1 -1
- package/dist/chunks/{chunk-U73T66FP.js → chunk-5VHHQZMT.js} +1 -1
- package/dist/chunks/{chunk-NDNSLCPE.js → chunk-5W2OJKJW.js} +1 -1
- package/dist/chunks/{chunk-XSDWRRZP.js → chunk-6EZHEVXS.js} +1 -1
- package/dist/chunks/{chunk-YIZE3M5S.js → chunk-7NLKMY7L.js} +1 -1
- package/dist/chunks/{chunk-MHSSPMLB.js → chunk-B7ELZHQN.js} +1 -1
- package/dist/chunks/{chunk-KE5PYRJ6.js → chunk-BZPNCSUY.js} +1 -1
- package/dist/chunks/{chunk-IXMY4EKS.js → chunk-CABXOJ3I.js} +1 -1
- package/dist/chunks/{chunk-E7SQBMYW.js → chunk-CBJ33EIB.js} +1 -1
- package/dist/chunks/{chunk-2IIVBBF5.js → chunk-CILYQK2G.js} +1 -1
- package/dist/chunks/{chunk-OBMMO5NC.js → chunk-CNVPZKJG.js} +3 -3
- package/dist/chunks/{chunk-4KG7GJ5O.js → chunk-CZ2JSEUK.js} +1 -1
- package/dist/chunks/{chunk-H5EHSILL.js → chunk-D2PEB6AJ.js} +1 -1
- package/dist/chunks/{chunk-FRQYH4QD.js → chunk-DAWHZU7L.js} +1 -1
- package/dist/chunks/{chunk-WOYBWRRV.js → chunk-DVBZBJSK.js} +1 -1
- package/dist/chunks/{chunk-MXDSB2C5.js → chunk-EOQTBH4U.js} +1 -1
- package/dist/chunks/{chunk-P7RLDDPN.js → chunk-FPW3RFZR.js} +1 -1
- package/dist/chunks/{chunk-WAWVFSIQ.js → chunk-FWYJ3MIN.js} +1 -1
- package/dist/chunks/{chunk-5VQK3CCJ.js → chunk-FXLLAAGI.js} +1 -1
- package/dist/chunks/{chunk-ODH5XGE6.js → chunk-HCQTAFTX.js} +1 -1
- package/dist/chunks/{chunk-FCC24XUI.js → chunk-HHLQG7PN.js} +1 -1
- package/dist/chunks/{chunk-TRXOE7TT.js → chunk-HRJ4EPR3.js} +1 -1
- package/dist/chunks/{chunk-O6L4NO3M.js → chunk-HYYQCBX5.js} +1 -1
- package/dist/chunks/{chunk-OFC5N6R3.js → chunk-IPH4LGK2.js} +6 -6
- package/dist/chunks/{chunk-3XNUG4FO.js → chunk-JBIAEQHI.js} +1 -1
- package/dist/chunks/{chunk-XN5BXPAT.js → chunk-JQDZYC72.js} +1 -1
- package/dist/chunks/{chunk-3BIB6KKL.js → chunk-JRW6MFV6.js} +1 -1
- package/dist/chunks/{chunk-EAW5FHU4.js → chunk-JSJB3PR2.js} +2 -2
- package/dist/chunks/{chunk-O4YHISU2.js → chunk-KAW26NGC.js} +1 -1
- package/dist/chunks/{chunk-HIPKU57Y.js → chunk-LK7TJYEP.js} +1 -1
- package/dist/chunks/{chunk-2IECLXB2.js → chunk-LRGMGXL2.js} +1 -1
- package/dist/chunks/{chunk-G2P2PYEO.js → chunk-NACSY3HS.js} +1 -1
- package/dist/chunks/{chunk-E5HDJCKK.js → chunk-NGTNI3YX.js} +1 -1
- package/dist/chunks/{chunk-ONR2AKRI.js → chunk-O5FYAVDK.js} +4 -4
- package/dist/chunks/{chunk-LWF5MQJ4.js → chunk-OJEIYU7D.js} +1 -1
- package/dist/chunks/{chunk-AWUSAHXG.js → chunk-OOSF2SPF.js} +1 -1
- package/dist/chunks/{chunk-JG6JA7YT.js → chunk-P4SXDU55.js} +1 -1
- package/dist/chunks/{chunk-DUR32LJG.js → chunk-PQGR2MTX.js} +1 -1
- package/dist/chunks/{chunk-6IKIGVJF.js → chunk-QSITPC3X.js} +1 -1
- package/dist/chunks/chunk-RGSMU6N4.js +2 -0
- package/dist/chunks/{chunk-CBD554GZ.js → chunk-RORT6K3Y.js} +1 -1
- package/dist/chunks/{chunk-OXUS4QOT.js → chunk-SFLL3TKE.js} +1 -1
- package/dist/chunks/chunk-SYFJVLEL.js +2 -0
- package/dist/chunks/{chunk-6KKWSUEW.js → chunk-THLBUON5.js} +1 -1
- package/dist/chunks/{chunk-X4CN3FIN.js → chunk-VU6S2S3O.js} +1 -1
- package/dist/chunks/{chunk-H2YQ4AA2.js → chunk-W5FL7EH2.js} +1 -1
- package/dist/chunks/{chunk-WBV6A6NS.js → chunk-WHI4XNBI.js} +1 -1
- package/dist/chunks/{chunk-FA3GXQYA.js → chunk-WOA6XFQU.js} +1 -1
- package/dist/chunks/{chunk-SUILNZQJ.js → chunk-WOER246B.js} +1 -1
- package/dist/chunks/{chunk-645T6LH7.js → chunk-XJP7RIHL.js} +1 -1
- package/dist/chunks/{chunk-KOLVSUOS.js → chunk-Z3OW37CO.js} +1 -1
- package/dist/chunks/{chunk-OUOOKEU3.js → chunk-ZACCHQWK.js} +1 -1
- package/dist/chunks/{chunk-3V2XAYYA.js → chunk-ZKH4Z3EQ.js} +1 -1
- package/dist/chunks/{chunk-OXRN2257.js → chunk-ZLYQR44C.js} +1 -1
- package/dist/chunks/chunk-ZQOJLPWD.js +2 -0
- package/dist/chunks/{chunk-EZ435RGA.js → chunk-ZYJHMX4T.js} +1 -1
- package/dist/chunks/{cli-NHRYN2G3.js → cli-B6JFFXMI.js} +1 -1
- package/dist/chunks/{command-54MMVWS2.js → command-GZ3Z37WJ.js} +3 -3
- package/dist/chunks/{configuration-command-XMXTU2FQ.js → configuration-command-OHW7RPSC.js} +1 -1
- package/dist/chunks/{connected-app-executor-WJEDXUA4.js → connected-app-executor-P35Y6B5Y.js} +1 -1
- package/dist/chunks/{connected-evidence-NFQPO5E3.js → connected-evidence-I4I7DQRX.js} +1 -1
- package/dist/chunks/{connected-starting-assets-M54PSOEP.js → connected-starting-assets-Q7CYZT25.js} +1 -1
- package/dist/chunks/{continual-C2YWPEJZ.js → continual-3OIKJ3PG.js} +1 -1
- package/dist/chunks/{core-commands-SY4I5FHE.js → core-commands-BWDKP6AI.js} +1 -1
- package/dist/chunks/{dataset-preparation-authoring-CH6Z4NE6.js → dataset-preparation-authoring-RPYFOFBV.js} +1 -1
- package/dist/chunks/{datasets-2OQDMF7E.js → datasets-2W4JPKSP.js} +1 -1
- package/dist/chunks/{desktop-test-VNMR5H4I.js → desktop-test-EUBEZJDU.js} +1 -1
- package/dist/chunks/{evaluation-coordination-GULGPATI.js → evaluation-coordination-IYNDZB6X.js} +1 -1
- package/dist/chunks/{experiment-improvements-XNXTU6ZA.js → experiment-improvements-D3DHZ7QI.js} +1 -1
- package/dist/chunks/{experiments-DZX6ZU6F.js → experiments-7OXSDLJG.js} +1 -1
- package/dist/chunks/{experiments-signal-QDVPO3M5.js → experiments-signal-6SWD3TSR.js} +1 -1
- package/dist/chunks/{help-UCN67FN7.js → help-XVZ4RRAB.js} +1 -1
- package/dist/chunks/{host-profile-evaluation-tools-XMGGHVH3.js → host-profile-evaluation-tools-I7ESCZH7.js} +1 -1
- package/dist/chunks/{host-profile-external-dataset-C6ZPMTX6.js → host-profile-external-dataset-MD4X7BCL.js} +1 -1
- package/dist/chunks/{hosted-app-server-composition-U7WGMN5B.js → hosted-app-server-composition-PYKNSE3O.js} +1 -1
- package/dist/chunks/{hosted-experiment-improvement-VQN6PJKR.js → hosted-experiment-improvement-5L3Z7IV6.js} +1 -1
- package/dist/chunks/{hosted-harness-runtime-O6E5LCGN.js → hosted-harness-runtime-XDCLEP3C.js} +1 -1
- package/dist/chunks/{hosted-profile-candidate-HQ544PNP.js → hosted-profile-candidate-6Q3GOLII.js} +1 -1
- package/dist/chunks/{hosted-profile-compiler-K4OACT7S.js → hosted-profile-compiler-FYBOGHZF.js} +1 -1
- package/dist/chunks/{hosted-profile-evaluation-control-TKYM73YY.js → hosted-profile-evaluation-control-MXXZR6XA.js} +1 -1
- package/dist/chunks/{hosted-profile-evaluation-inspection-HFCFUYQ4.js → hosted-profile-evaluation-inspection-4J7LAVY2.js} +1 -1
- package/dist/chunks/{hosted-profile-evaluation-preparation-OJ6AR5P5.js → hosted-profile-evaluation-preparation-EF43QUMG.js} +1 -1
- package/dist/chunks/{human-review-DNVIVJRK.js → human-review-6WAUW3BG.js} +1 -1
- package/dist/chunks/{import-QT5AKEA3.js → import-333V3CGC.js} +1 -1
- package/dist/chunks/{local-harness-improvement-runtime-BWZBMOGL.js → local-harness-improvement-runtime-HC42DG74.js} +1 -1
- package/dist/chunks/{local-harness-taskset-review-JL2XNXML.js → local-harness-taskset-review-CUL73U4A.js} +1 -1
- package/dist/chunks/{opchat-7PWUXQSY.js → opchat-R7FBOSCD.js} +1 -1
- package/dist/chunks/{opchat-bounded-chat-B3GOCGWY.js → opchat-bounded-chat-IOV6FYBH.js} +1 -1
- package/dist/chunks/{organizations-TWBMN7KF.js → organizations-EG5BSG26.js} +1 -1
- package/dist/chunks/{profile-RVARQYG4.js → profile-VLGYQXEP.js} +1 -1
- package/dist/chunks/{project-action-payload-65MTQMQW.js → project-action-payload-5PL65D3W.js} +1 -1
- package/dist/chunks/{project-agent-ZC33YRZE.js → project-agent-XT47W7MT.js} +1 -1
- package/dist/chunks/{published-experiment-source-L7BER6AE.js → published-experiment-source-7TDPGSOJ.js} +1 -1
- package/dist/chunks/{refiner-profile-service-56776J7B.js → refiner-profile-service-4RRRB33P.js} +1 -1
- package/dist/chunks/{runtime-GN2H2R7L.js → runtime-K3BUZ3ZQ.js} +1 -1
- package/dist/chunks/{sandbox-command-HWIAH6JA.js → sandbox-command-D7T2GKQA.js} +1 -1
- package/dist/chunks/{sandbox-template-MNZ6OXQQ.js → sandbox-template-WTIQRKE6.js} +1 -1
- package/dist/chunks/{saved-work-OMBDT3ZR.js → saved-work-GQEYG77G.js} +1 -1
- package/dist/chunks/{setup-C6673TJK.js → setup-5MZKOZY2.js} +1 -1
- package/dist/chunks/{src-UHNSXT34.js → src-PEOADF2P.js} +2 -2
- package/dist/chunks/{src-HHFJIPL5.js → src-ZUOZOCQ2.js} +1 -1
- package/dist/chunks/{standalone-experiment-turn-owner-UYPA6XHW.js → standalone-experiment-turn-owner-N7PEBGW3.js} +1 -1
- package/dist/chunks/{store-chat-resources-TYR7D2UP.js → store-chat-resources-7JEZFCC2.js} +1 -1
- package/dist/chunks/{store-continual-support-reviews-63YCKG3P.js → store-continual-support-reviews-RJ5OQZTC.js} +1 -1
- package/dist/chunks/{store-conversation-serving-PDSBGL3E.js → store-conversation-serving-D3HJ5OZK.js} +1 -1
- package/dist/chunks/{store-create-improve-RYASTT56.js → store-create-improve-ERPWR2LH.js} +1 -1
- package/dist/chunks/{store-datasets-PELTRO4A.js → store-datasets-R6P5KBAH.js} +1 -1
- package/dist/chunks/{store-evaluation-results-OUTNEMAY.js → store-evaluation-results-ZCABU3X5.js} +1 -1
- package/dist/chunks/{store-human-review-GIMAXCJQ.js → store-human-review-2PHLILEI.js} +1 -1
- package/dist/chunks/{store-learned-preference-migration-validation-DHOSHA6C.js → store-learned-preference-migration-validation-OGFFAM3Q.js} +1 -1
- package/dist/chunks/{store-local-experiments-AH4Z6RWX.js → store-local-experiments-ZG4NWB63.js} +1 -1
- package/dist/chunks/{store-model-batch-review-UUW6ZLDH.js → store-model-batch-review-LQAM7FQJ.js} +1 -1
- package/dist/chunks/{store-model-configuration-4U5A6DU7.js → store-model-configuration-3S74O2IQ.js} +1 -1
- package/dist/chunks/{store-model-project-preparation-MYHO43VH.js → store-model-project-preparation-ARDV4U77.js} +1 -1
- package/dist/chunks/{store-modification-recordings-OZBLFYCT.js → store-modification-recordings-BHJTHW3A.js} +1 -1
- package/dist/chunks/{store-task-inbox-M7YZNCRF.js → store-task-inbox-YRN2UDW3.js} +1 -1
- package/dist/chunks/{store-task-inventory-TTJQAM3T.js → store-task-inventory-6V4UX5BY.js} +1 -1
- package/dist/chunks/{store-taskset-drafts-4GVHDLJJ.js → store-taskset-drafts-H2O4CRIF.js} +1 -1
- package/dist/chunks/{store-training-MGGTGTV2.js → store-training-MQGXXKTX.js} +1 -1
- package/dist/chunks/{store-training-jobs-XKDUX4SV.js → store-training-jobs-YASPKBB3.js} +1 -1
- package/dist/chunks/{store-training-models-4S4ZT3BL.js → store-training-models-HAJCN3IS.js} +1 -1
- package/dist/chunks/{taskset-SLQSCYJI.js → taskset-65BR2KOE.js} +1 -1
- package/dist/chunks/{teams-bot-7U6JOV6T.js → teams-bot-VMG23AFI.js} +1 -1
- package/dist/chunks/{tool-learning-25Z2JOBS.js → tool-learning-YSYQEASN.js} +1 -1
- package/dist/chunks/training-5V53RWI7.js +2 -0
- package/dist/chunks/training-U6OPNRP4.js +2 -0
- package/dist/chunks/{training-2LUQ2IZM.js → training-YUWQXGJX.js} +1 -1
- package/dist/chunks/{training-hosted-NLXMISNL.js → training-hosted-KO4SCSLZ.js} +1 -1
- package/dist/chunks/{training-hosted-alphaedit-WGMJ3L2D.js → training-hosted-alphaedit-HQTKGEZU.js} +1 -1
- package/dist/chunks/{training-hosted-decision-66EUMUIW.js → training-hosted-decision-LN7MQGBF.js} +1 -1
- package/dist/chunks/{training-hosted-engram-QDXSJ77I.js → training-hosted-engram-7UAVQFBA.js} +1 -1
- package/dist/chunks/{training-hosted-modification-comparison-2MH5FZMZ.js → training-hosted-modification-comparison-ZOYOSVHI.js} +1 -1
- package/dist/chunks/{training-hosted-neuron-training-3QXKIEKT.js → training-hosted-neuron-training-37Y6WJH5.js} +1 -1
- package/dist/chunks/{training-hosted-serving-report-ZG75ACZK.js → training-hosted-serving-report-EXJ5X7GB.js} +1 -1
- package/dist/chunks/{training-hosted-steering-KFMTKCTX.js → training-hosted-steering-EAFICV6I.js} +1 -1
- package/dist/chunks/{training-model-start-NMQ55UHZ.js → training-model-start-5QB7A5TD.js} +1 -1
- package/dist/cli.js +1 -1
- package/dist/skills/manifest.json +1 -1
- package/dist/web/assets/{App-CV1p0_Zy.js → App-CqqK4NLa.js} +4 -4
- package/dist/web/assets/{AppDialog-DdGt7aU1.js → AppDialog-wmL4BlOJ.js} +1 -1
- package/dist/web/assets/AppTerminalPanel-BHFgtq4f.js +2 -0
- package/dist/web/assets/{AppToastContext-D7z0w1PS.js → AppToastContext-DyaZYQXu.js} +1 -1
- package/dist/web/assets/{AppsView-B-Ts-M_V.js → AppsView-C6u5q5ro.js} +1 -1
- package/dist/web/assets/{AttachmentTypeIcon-BJ5i12im.js → AttachmentTypeIcon-AqiS2gzg.js} +1 -1
- package/dist/web/assets/{BrowserSidebar-BVHthjXU.js → BrowserSidebar-nNTQ1E4K.js} +1 -1
- package/dist/web/assets/{CartesianChart-BuJ1wFS7.js → CartesianChart-C5ptcXRG.js} +1 -1
- package/dist/web/assets/{ChatTimelineEntry-CfiiTrK4.js → ChatTimelineEntry-DH0-itET.js} +1 -1
- package/dist/web/assets/{CollaborationTabs-1t9zAhDC.js → CollaborationTabs-C22BMWJ4.js} +1 -1
- package/dist/web/assets/{CommandMenu-DTB6xjGG.js → CommandMenu-CKtBVjuO.js} +1 -1
- package/dist/web/assets/{CommunityView-BjeZ56id.js → CommunityView-Baq8HqVm.js} +1 -1
- package/dist/web/assets/{ComposerAttachments-C_K_05H9.js → ComposerAttachments-BOyEXVhV.js} +1 -1
- package/dist/web/assets/{ComposerCreateImproveStrip-A38jnNGd.js → ComposerCreateImproveStrip-EbNwu1gE.js} +1 -1
- package/dist/web/assets/{ConversationImportsSettings-jwaoKQZt.js → ConversationImportsSettings-Cqg66Lcb.js} +1 -1
- package/dist/web/assets/{DatasetReviewImport-DZA1s3XG.js → DatasetReviewImport--FgZ3Zk-.js} +1 -1
- package/dist/web/assets/{ExperimentTrainingDataWorkspace-DowPuAXk.js → ExperimentTrainingDataWorkspace-B04Cg7Hc.js} +2 -2
- package/dist/web/assets/{FilePagePreview-11ZNRtdT.js → FilePagePreview-CeZF-oOW.js} +2 -2
- package/dist/web/assets/{GetStartedView-bLVKmjqg.js → GetStartedView-DOpCgmrC.js} +1 -1
- package/dist/web/assets/{GettingStartedDialog-BeimFLZh.js → GettingStartedDialog-tB38Q6JA.js} +1 -1
- package/dist/web/assets/{HostedModelLearningReview-DiFVb3WK.js → HostedModelLearningReview-CQ0bI6Np.js} +1 -1
- package/dist/web/assets/{HostedModelLearningSettings-DtUF5ejq.js → HostedModelLearningSettings-DEdV2dXx.js} +1 -1
- package/dist/web/assets/{HtmlVisual-CgVTWr64.js → HtmlVisual-krrlNGFX.js} +1 -1
- package/dist/web/assets/{LabModelVersionDetailPage-BvinwnBN.js → LabModelVersionDetailPage-DeVfdS7p.js} +1 -1
- package/dist/web/assets/{LabModelWorkspace-Q5DG2mLP.js → LabModelWorkspace-Di_yTjzH.js} +1 -1
- package/dist/web/assets/{LabSkillSidebar-cmhZzr4f.js → LabSkillSidebar-CNjUmnfC.js} +1 -1
- package/dist/web/assets/{LabsRoute-DS_mlprv.js → LabsRoute-Gznx60Cp.js} +4 -4
- package/dist/web/assets/{LearningBatchesPage-Cm-btgWc.js → LearningBatchesPage-CpZ0UTX3.js} +1 -1
- package/dist/web/assets/{MainChatThread-DbTn4Bag.js → MainChatThread-Dr2DipCD.js} +2 -2
- package/dist/web/assets/{MainPane-BtzUF6O_.js → MainPane-aEELnEKb.js} +7 -7
- package/dist/web/assets/{ModelProjectPageHeader-C4mgVJGx.js → ModelProjectPageHeader-BVwW-R0w.js} +1 -1
- package/dist/web/assets/{NativeSetupTerminal-bJpDkKk1.js → NativeSetupTerminal-BXvrxj-m.js} +2 -2
- package/dist/web/assets/{NativeSkillSidebar-BuToZvK-.js → NativeSkillSidebar-CYsBopsX.js} +1 -1
- package/dist/web/assets/{NewProjectDialog-F0BPQy0S.js → NewProjectDialog-BR5DChE9.js} +1 -1
- package/dist/web/assets/{OutputsPage-DC4g59_8.js → OutputsPage-CR8pWUj0.js} +1 -1
- package/dist/web/assets/{PageChrome-ufq2jePD.js → PageChrome-BXMG877B.js} +1 -1
- package/dist/web/assets/{ProjectsPage-7mbOvMfO.js → ProjectsPage-CwCes2kZ.js} +1 -1
- package/dist/web/assets/{RightChatPanelStack-sR9xN3RP.js → RightChatPanelStack-BvApbQCc.js} +1 -1
- package/dist/web/assets/RightSidebarHomePanel-Dm6hhkKw.js +1 -0
- package/dist/web/assets/{ScheduledWorkPage-s9CN6nR_.js → ScheduledWorkPage-nJJH1fwV.js} +1 -1
- package/dist/web/assets/{SettingsView-CZNWYK-D.js → SettingsView-CBZ6rqak.js} +3 -3
- package/dist/web/assets/{TasksetDraftEditorPrimitives-BnMqzE-T.js → TasksetDraftEditorPrimitives-Bcw6T4Lf.js} +1 -1
- package/dist/web/assets/{TeamChatView-XthM6n4S.js → TeamChatView-CIwlZFqB.js} +1 -1
- package/dist/web/assets/{TerminalOverlay--HCFZaQW.js → TerminalOverlay-Dhgy0NC3.js} +1 -1
- package/dist/web/assets/{TrainingCreationPanel-D2F6kPg_.js → TrainingCreationPanel-yLiEL2tM.js} +1 -1
- package/dist/web/assets/{TrainingDraftPanel-BurWPp9F.js → TrainingDraftPanel-Dng3C-zU.js} +1 -1
- package/dist/web/assets/{UsageSettingsSection-D7jdscDm.js → UsageSettingsSection-CTa7T7tS.js} +1 -1
- package/dist/web/assets/WorkSidebarPanel-BEIDC3vx.js +1 -0
- package/dist/web/assets/{WorkspaceDiffPanel-CPaCC1_p.js → WorkspaceDiffPanel-DnZlUEbx.js} +3 -3
- package/dist/web/assets/{WorkspaceEnvironmentMenu-BZxu6mUS.js → WorkspaceEnvironmentMenu-D-w36AYB.js} +1 -1
- package/dist/web/assets/{WorkspaceFileLocation-C4K_D_yh.js → WorkspaceFileLocation-D2kiU_FJ.js} +1 -1
- package/dist/web/assets/{WorkspaceGitDialogs-C0Yf29V0.js → WorkspaceGitDialogs-CylEGfzD.js} +1 -1
- package/dist/web/assets/{WorkspaceMonacoEditor-BRPLaFZS.js → WorkspaceMonacoEditor-ChBjvgxE.js} +3 -3
- package/dist/web/assets/{WorkspacePdfPreview-9wypyV6H.js → WorkspacePdfPreview-CBS6GjeP.js} +2 -2
- package/dist/web/assets/{WorkspacePresentationPreview-C-Cn-9pj.js → WorkspacePresentationPreview-DhltPUL4.js} +1 -1
- package/dist/web/assets/{bot-BuaAVlz6.js → bot-C0e4zzW4.js} +1 -1
- package/dist/web/assets/{chat-resources-DMPHClhQ.js → chat-resources-BFT0vtdv.js} +1 -1
- package/dist/web/assets/chevron-down-C4LIbeSz.js +1 -0
- package/dist/web/assets/chevron-right-BKelERU6.js +1 -0
- package/dist/web/assets/chevron-up-Dj1vY1ME.js +1 -0
- package/dist/web/assets/{chunk-C3TS766N-BXUEjt7d.js → chunk-C3TS766N-bHAuW3qR.js} +1 -1
- package/dist/web/assets/chunk-GS5HEE4M-DTj6NX5d.js +1 -0
- package/dist/web/assets/{client-C-ZuakZR.js → client-BO8YuI8Z.js} +1 -1
- package/dist/web/assets/{client-choice-storage-DWIA0Vou.js → client-choice-storage-D_6dVX8O.js} +1 -1
- package/dist/web/assets/{cloud-upload-B5LqiNCG.js → cloud-upload-U0f9MSd8.js} +1 -1
- package/dist/web/assets/{copy-BYIypHbq.js → copy-B0gWkglr.js} +1 -1
- package/dist/web/assets/{cssMode-ByypIqUN.js → cssMode-BkR1YcfF.js} +1 -1
- package/dist/web/assets/{dataset-workspaces-BTPi71mz.js → dataset-workspaces-DM2zGcAK.js} +1 -1
- package/dist/web/assets/{external-link-Cv7TDVPT.js → external-link-DymjzX8a.js} +1 -1
- package/dist/web/assets/{folder-open-DlIP3g5o.js → folder-open-BPA5YifJ.js} +1 -1
- package/dist/web/assets/{folder-plus-CXwFJqcY.js → folder-plus-BCcE8Q4i.js} +1 -1
- package/dist/web/assets/{git-commit-horizontal-DMh_-WxU.js → git-commit-horizontal-DbTJXbet.js} +1 -1
- package/dist/web/assets/{htmlMode-CQGeb-h5.js → htmlMode-z1rCf6pX.js} +1 -1
- package/dist/web/assets/{icons-CYvTltSH.js → icons-nr5d1kC-.js} +1 -1
- package/dist/web/assets/{image-Ci1JxTQX.js → image-Us0M7Xxi.js} +1 -1
- package/dist/web/assets/{index-CDtTBysF.js → index-DG0kf1wK.js} +2 -2
- package/dist/web/assets/{info-EjyMkVzV.js → info-M5kOSB9T.js} +1 -1
- package/dist/web/assets/{jsonMode-Dm6YK6Dw.js → jsonMode-AMfP-lcX.js} +1 -1
- package/dist/web/assets/loader-circle-C1-u7BUs.js +1 -0
- package/dist/web/assets/{lspLanguageFeatures-BjtOz-Ln.js → lspLanguageFeatures-C6uY6TKM.js} +1 -1
- package/dist/web/assets/{maximize-2-CvvoALtI.js → maximize-2-B2pi1o5S.js} +1 -1
- package/dist/web/assets/{message-square-CPtIPRtf.js → message-square-CPvsC3Wv.js} +1 -1
- package/dist/web/assets/{monaco.contribution-ClH8Tmjq.js → monaco.contribution-5F6IVWCS.js} +2 -2
- package/dist/web/assets/{monaco.contribution-wpC0-Kxw.js → monaco.contribution-BUi28toA.js} +2 -2
- package/dist/web/assets/{monaco.contribution-VSFFgrfZ.js → monaco.contribution-CfQvs13S.js} +2 -2
- package/dist/web/assets/{monaco.contribution-e5DNaEix.js → monaco.contribution-DySvt1jU.js} +2 -2
- package/dist/web/assets/{monitor-BroZpIvk.js → monitor-1YJYctCB.js} +1 -1
- package/dist/web/assets/{paperclip-DYZEL_Gi.js → paperclip-CNTReC0m.js} +1 -1
- package/dist/web/assets/{pdf-DkU37Bi0.js → pdf-DaNAfjLW.js} +1 -1
- package/dist/web/assets/play-DF5h_-8T.js +1 -0
- package/dist/web/assets/plus-D6oFNFQ0.js +1 -0
- package/dist/web/assets/{presentation-CddfsTzp.js → presentation-DbkiE2BE.js} +1 -1
- package/dist/web/assets/{python-CMdyfF2B.js → python-CDlD-992.js} +1 -1
- package/dist/web/assets/{refresh-cw-Cx_7Zlbl.js → refresh-cw-avBifyns.js} +1 -1
- package/dist/web/assets/{save-BaeHeBBw.js → save-DBayPmp_.js} +1 -1
- package/dist/web/assets/{settings-lists-CVg9h-5z.js → settings-lists-Cca729es.js} +1 -1
- package/dist/web/assets/square-CJccmW-i.js +1 -0
- package/dist/web/assets/{square-terminal-CBlQtWQw.js → square-terminal-D7snuW2g.js} +1 -1
- package/dist/web/assets/{submit-issue-command-L5--gt9i.js → submit-issue-command-wDL6xK3b.js} +1 -1
- package/dist/web/assets/{toggleHighContrast-hftC_Rxs.js → toggleHighContrast-CP0qM8JR.js} +1 -1
- package/dist/web/assets/training-KYW8yE6p.js +1 -0
- package/dist/web/assets/{training-model-data-vvvphDlO.js → training-model-data-CilS0W2N.js} +1 -1
- package/dist/web/assets/{tsMode-B0sZU1HD.js → tsMode-DxR6CkQb.js} +1 -1
- package/dist/web/assets/{upload-Bzt1ooBz.js → upload-DEtkeTGw.js} +1 -1
- package/dist/web/assets/{useAccountSettings-BnxwetkP.js → useAccountSettings-BTy8zF0n.js} +1 -1
- package/dist/web/assets/{useAgentInventory-D_qS4ols.js → useAgentInventory-8MWE3pbH.js} +1 -1
- package/dist/web/assets/{useChatContextSelection-D8aSVtCm.js → useChatContextSelection-CBVI5IYj.js} +1 -1
- package/dist/web/assets/{useLocalAgentSchedules-CUQ1MW4l.js → useLocalAgentSchedules-B09iSkPy.js} +1 -1
- package/dist/web/assets/{useQuery-9SCnxwmR.js → useQuery-CKHqHSr0.js} +1 -1
- package/dist/web/assets/{wifi-off-DWtVm7W7.js → wifi-off-C-GF_rPd.js} +1 -1
- package/dist/web/assets/{workers-B3jA6AOv.js → workers-CmqH-dTr.js} +1 -1
- package/dist/web/assets/x-CQ0pGF6Q.js +1 -0
- package/dist/web/assets/{yaml-BEUL30-5.js → yaml-J_HdACeF.js} +1 -1
- package/dist/web/index.html +1 -1
- package/docs/command-reference.md +1 -0
- package/package.json +1 -1
- package/dist/chunks/chunk-5AV2EWFX.js +0 -2
- package/dist/chunks/chunk-64EDQ7UV.js +0 -2
- package/dist/chunks/chunk-DLOJG7LP.js +0 -2
- package/dist/chunks/training-JA5ZQABE.js +0 -2
- package/dist/chunks/training-NL5GYZKU.js +0 -2
- package/dist/web/assets/AppTerminalPanel-B2p_tYh5.js +0 -2
- package/dist/web/assets/RightSidebarHomePanel-joZavyR9.js +0 -1
- package/dist/web/assets/WorkSidebarPanel-CmdXCmrZ.js +0 -1
- package/dist/web/assets/chevron-down-CkifKd_O.js +0 -1
- package/dist/web/assets/chevron-right-LsMXJ5SB.js +0 -1
- package/dist/web/assets/chevron-up-Dt5T2Sf5.js +0 -1
- package/dist/web/assets/chunk-GS5HEE4M-C0RLeIsy.js +0 -1
- package/dist/web/assets/loader-circle-AjP2mDJA.js +0 -1
- package/dist/web/assets/play-BrvX67t1.js +0 -1
- package/dist/web/assets/plus-DFjCZeRE.js +0 -1
- package/dist/web/assets/square-Di5JBnVr.js +0 -1
- package/dist/web/assets/training-CGYukv2L.js +0 -1
- package/dist/web/assets/x-EG07vYCF.js +0 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a as le}from"./chunk-YIZE3M5S.js";import{a as pe}from"./chunk-O6L4NO3M.js";import{a as fe}from"./chunk-IHAEZ73V.js";import{a as ce}from"./chunk-3XNUG4FO.js";import{a as de}from"./chunk-HIPKU57Y.js";import{a as ue}from"./chunk-KOLVSUOS.js";import{lb as ie,nf as oe,sm as se,uf as ae,xb as ne}from"./chunk-5AV2EWFX.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import{b as O,c as me}from"./chunk-2QHB5P2K.js";import"./chunk-BZS2PA4O.js";import"./chunk-IV2HEX3I.js";import{r as re,t as H}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{Cb as X,tc as S,uc as Z,vc as Y,wc as ee,xc as te}from"./chunk-ZEOYNUHL.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as Q}from"./chunk-HIMG7S5E.js";import"./chunk-REGKOCDO.js";import{a as K}from"./chunk-JF7WWLNW.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-EJOV6Z6F.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-MZKCW6CB.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 R}from"./chunk-TBODQT4W.js";import{g as W}from"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import{A as y}from"./chunk-X2J2P5ZT.js";import{a as b}from"./chunk-FTQLQJQV.js";async function he(r,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 w=await(p.request??await(await import("./training-2LUQ2IZM.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",...r}}),signal:AbortSignal.timeout(15e3),redirect:"error"});if(!w.ok)throw new Error(`Chat attachment returned HTTP ${w.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.`)}}b(he,"attachHostedTrainingToChat");import{readFile as ve}from"node:fs/promises";var M=y.string().trim().min(1).max(500),ye=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),Ie=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),Ee=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:ye,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),xe=y.object({summary:te.nullable(),observations:y.array(ee).max(1e3)}).strict(),J=class{static{b(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 me(a)}catch(w){throw w instanceof R?w:new R(a.ok?502:a.status,"invalid_response","Correction metrics returned an invalid response.",null)}if(!a.ok){let w=y.object({code:y.string().optional(),error:y.string().optional()}).passthrough().safeParse(s);throw new R(a.status,w.success?w.data.code??"correction_request_failed":"correction_request_failed",w.success?w.data.error??`Correction metrics request failed (${a.status}).`:`Correction metrics request failed (${a.status}).`,s)}return s}async read(p,e={}){let i=Ie.parse(p),a=xe.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 R(502,"correction_scope_mismatch","Correction metrics did not match the requested workspace, Model or run.",null);return a}async command(p,e={}){let i=Ee.parse(p);X(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 w=Z.parse(a);if(w.teamId!==i.teamId||w.modelId!==i.plan.modelId||w.trainingJobId!==i.plan.trainingJobId)throw new R(502,"correction_scope_mismatch","Correction declaration did not match the requested workspace, Model or run.",null);return w}let s=Y.parse(a);if(s.correction.id!==i.correction.id||s.correction.contentHash!==i.correction.contentHash||s.attempt.id!==i.inferenceRequestId)throw new R(502,"correction_scope_mismatch","Correction opportunity did not match the declared correction and serving request.",null);return s}};var _=new Set(["succeeded","failed","cancelled"]);function F(r){let p=k(r.intervalMs,"interval-ms")??1e4,e=k(r.cleanupTimeoutMs,"cleanup-timeout-ms")??18e4,i=k(r.cleanupReserveMs,"cleanup-reserve-ms")??18e4;if([p,e,i].some(w=>!Number.isSafeInteger(w)||w>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(r,"deadlineAt");if(!a&&r.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(r.waitForCleanup)||I(r.cancelOnInfrastructureError),cleanupTimeoutMs:e,cancelOnInfrastructureError:I(r.cancelOnInfrastructureError)}}b(F,"parseHostedWatchOptions");async function D(r,p,e){for(let i=0;i<4;i++){let a=await r.getJob(p);if(P(a,p,e),_.has(a.state)||a.state==="cancelling")return a;try{let s=await r.cancelJob(p,a.version);return P(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.")}b(D,"cancelHostedTrainingJob");async function ge(r,p,e){for(let i=0;i<4;i++){let a=await r.getJob(p);if(P(a,p,e),_.has(a.state)||a.state==="cancelling")return a;try{let s=await r.stopAfterGroup(p,a.version);return P(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.")}b(ge,"stopHostedTrainingJobAfterGroup");async function B(r){let{client:p,options:e,jobId:i,teamId:a}=r,s=null,w,q=!1;for(;;){let v=Math.min(e.deadlineAt??1/0,s??1/0);if(r.requestBound.deadlineAt=Number.isFinite(v)?v:null,Date.now()>=v)throw we(i);try{let m=e.cancelAt!==null&&Date.now()>=e.cancelAt&&!q?await D(p,i,a):await p.getJob(i);if(P(m,i,a,w),w=m.submissionHash,e.cancelOnInfrastructureError&&!q&&!_.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&&(r.print({jobId:i,event:"hosted_watch_infrastructure_failure",trajectoryEventId:o.id,data:o.data}),m=await D(p,i,a),P(m,i,a,w),s??=Date.now()+e.cleanupTimeoutMs)}if(q||=m.state==="cancelling"||_.has(m.state),r.print(m),_.has(m.state)){let g=m.executionMode==="qualification"&&m.state==="succeeded";if(!e.waitForCleanup&&!g)return;s??=Date.now()+e.cleanupTimeoutMs,r.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!==w)throw new Error("Hosted cleanup receipt does not match the watched Job and submission.");if(o.cleanupComplete){g&&await ne(o,{submissionHash:w,outputs:C}),r.print({jobId:i,cleanup:{scope:"job",complete:!0,receipt:o}});return}}else if(m.rolloutProgress.groupsTarget===0&&r.readNativeInspection){let x=fe(await r.readNativeInspection(i),m);if(x.cleanupComplete){r.print({jobId:i,cleanup:{scope:"job",complete:!0,evidence:"native_read_only_attestation",nativeJobVersion:x.nativeJobVersion,attestation:x.cleanupAttestation}});return}}}}catch(m){if(r.requestBound.deadlineAt!==null&&Date.now()>=r.requestBound.deadlineAt)throw we(i);if(e.deadlineAt===null&&s===null||!ke(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(r.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()))))}}b(B,"watchHostedTrainingJob");function P(r,p,e,i){if(r.id!==p||r.teamId!==e||i!==void 0&&r.submissionHash!==i)throw new Error("Hosted response does not match the requested Job, workspace, and submission.")}b(P,"assertJobIdentity");function ke(r){return r instanceof j?r.status===429||r.status>=500:r instanceof W?r.code==="invalid_error_response"||r.code==="invalid_json":r instanceof TypeError||r instanceof Error&&["TimeoutError","AbortError"].includes(r.name)}b(ke,"isTransient");function we(r){return new Error(`Hosted watch deadline reached for ${r}; completed job cleanup is unverified. Inspect hosted-status, hosted-artifacts, and provider retirement before treating resources as released.`)}b(we,"cleanupDeadlineError");var A=b(r=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(r),"money"),L=b(r=>r>=3600?`${(r/3600).toFixed(1)} hours`:`${Math.max(1,Math.ceil(r/60))} minutes`,"duration");function V(r,p){if(p){console.log(JSON.stringify(r,null,2));return}console.log(`Estimate ${r.id} (${r.status.replaceAll("_"," ")})`),console.log(`Model: ${r.configuration.modelId}@${r.configuration.modelRevision}`);let e=r.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: ${r.gpu.resolved?.gpuType??"Awaiting a supported offering"} \xD7 ${r.gpu.resolved?.gpuCount??r.gpu.requested.gpuCount??1} (${r.gpu.requested.mode}, ${r.gpu.availability})`);let i=r.cost;console.log(`Expected cost: ${i.expectedUsd===null?"Not yet calibrated":A(i.expectedUsd)}`),i.planningRangeUsd&&console.log(`Planning range: ${A(i.planningRangeUsd.low)}\u2013${A(i.planningRangeUsd.high)}`),console.log(`Execution time: ${r.executionSeconds.expected===null?"Not yet calibrated":L(r.executionSeconds.expected)}`),r.executionSeconds.planningRange&&console.log(`Execution planning range: ${L(r.executionSeconds.planningRange.low)}\u2013${L(r.executionSeconds.planningRange.high)}`),console.log(`Queue wait: ${r.queueWaitSeconds===null?"Start time not yet known":`about ${L(r.queueWaitSeconds.expected)}`}`);let a=r.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 w=a.method==="sft"?a.trainingRows.totals?.inputTokens:a.trainingInitialRequests.totals?.promptTokens;console.log(`Tokens in counted inputs: ${w??"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":A(i.recommendedMaximumUsd)}`),console.log(`Approved hard cap: ${e.approvedMaximumUsd===null?"Not approved":A(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}: ${A(s.expectedUsd)}`):s.evidence==="configured_rate"&&console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: configured rate; expected usage unknown. ${s.reason??""}`);for(let s of r.assumptions)console.log(`Assumption: ${s}`);for(let s of r.unknowns)console.log(`Unknown: ${s}`);console.log(`Evidence: ${r.calibration.completedSamples} completed, ${r.calibration.partialSamples} partial samples; expires ${r.expiresAt}`),console.log("This estimate reserves no resources and approves no spending.")}b(V,"printTrainingEstimate");var d=b(r=>console.log(JSON.stringify(r,null,2)),"print");async function et(r,p){let e=p[0],i=p[1],a=e==="hosted-watch"?F(r):null,s=e==="hosted-score-decision"?33e4:18e4,w={deadlineAt:a?.deadlineAt??null},{context:q,baseUrl:v,teamId:c,headers:m}=await Q(r),g=b((t,n)=>{let u=w.deadlineAt===null?1/0:w.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 K(t,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=se({baseUrl:v,headers:m,fetch:g}),C=b(t=>he({jobId:t,teamId:c,apiOrigin:new URL(v).origin}),"attach"),x=b(async(t,n)=>{d(t),await C(n)},"printAttached"),h=b(async()=>{if(!i)throw new Error(`${e} requires an input JSON file.`);let t=await ve(i);if(t.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(t.toString("utf8"))},"readInput"),z=b(async()=>{let t=await h(),{TrainingExperimentSetupReceiptSchema:n,parseAndVerifyTrainingExperimentSetupReceipt:u}=await import("./training-NL5GYZKU.js"),l=n.safeParse(t).success?(await u(t)).preparation:await ae(t);if(l.plan.request.teamId!==c)throw new Error("Preparation belongs to a different workspace.");return l},"readPreparationInput"),U=b(async t=>{let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(t)}`,v),{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:v,headers:m,request:g,readInput:h,confirmed:I(r.yes)}));return}if(e&&ce.has(e)){let{runHostedAlphaEditCommand:t}=await import("./training-hosted-alphaedit-WGMJ3L2D.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&de.has(e)){let{runHostedNeuronTrainingCommand:t}=await import("./training-hosted-neuron-training-3QXKIEKT.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&ue.has(e)){let{runHostedEngramCommand:t}=await import("./training-hosted-engram-QDXSJ77I.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&le.has(e)){let{runHostedDecisionCommand:t}=await import("./training-hosted-decision-66EUMUIW.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&pe.has(e)){let{runHostedSteeringCommand:t}=await import("./training-hosted-steering-KFMTKCTX.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e==="hosted-evaluate-checkpoint"){if(!I(r.yes))throw new Error("Paid checkpoint evaluation requires --yes.");let t=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationRequest(await h()),n=new Headers(m);n.set("content-type","application/json");let u=await g(new URL("/v1/managed-rl/serving-soaks",v),{method:"POST",headers:n,body:JSON.stringify(t)}),l=await u.json();if(!u.ok){let T=l&&typeof l=="object"&&"error"in l?String(l.error):"checkpoint_evaluation_failed";throw new Error(`Checkpoint evaluation failed (${u.status}): ${T}. Reconcile hosted-jobs before retrying the same immutable request.`)}let E=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationResponse(l,t);await x(E,E.job.id);return}if(e==="hosted-provider"||e==="hosted-quotes"){if(i)throw new Error(`${e} does not accept an identifier.`);let t=e==="hosted-provider"?"/v1/managed-rl/provider-inventory":"/v1/managed-rl/quotes",n=await g(new URL(t,v),{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(r,"workerId")||void 0,jobId:f(r,"jobId")||void 0,cursor:f(r,"cursor")||void 0,limit:r.limit===void 0?void 0:k(r.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:v,headers:m,request:g,readInput:h,confirmed:I(r.yes)}));return}if(e==="hosted-tasksets"){let{OpenPondTasksetCatalogClient:t}=await import("./taskset-catalog-RZYEBCRQ.js"),n=new t({baseUrl:v,apiKey:q.token,teamId:c,fetch:g}),u=f(r,"cursor"),l=f(r,"projectId"),E=f(r,"search"),T=r.limit===void 0?void 0:k(r.limit,"limit");d(i?await n.get(i):await n.list({...u?{afterId:u}:{},...l?{projectId:l}:{},...E?{search:E}:{},...T===void 0?{}:{limit:T}}));return}if(e==="hosted-models"){d(await H({baseUrl:v,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:v,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:t}=await H({baseUrl:v,headers:m,fetch:g}).get(i);d(await(await import("./training-hosted-learning-UEBGSSNC.js")).inspectHostedLearning({action:e,options:r,teamId:c,model:t,learning:new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g}),corrections:new J({baseUrl:v,apiKey:q.token,fetch:g})}));return}if(e==="hosted-sync-model"){let t=re.parse(await h());d(await H({baseUrl:v,headers:m,fetch:g}).upsert(t));return}if(e==="hosted-publish-taskset"){let{OpenPondTasksetPackageClient:t,TasksetPackagePublicationSchema:n}=await import("./taskset-packages-FUQWNTSB.js"),u=n.parse(await h());d(await new t({baseUrl:v,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:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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:t,TrainingFundingHandoffRequestSchema:n}=await import("./training-NL5GYZKU.js"),u=await h();if(e==="hosted-funding"){let l=t.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:t}=await import("./training-NL5GYZKU.js"),n=i?t.parse(await h()):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 t=await(await import("./training-model-start-NMQ55UHZ.js")).startHostedModel({options:r,modelId:i,teamId:c,client:o,models:H({baseUrl:v,headers:m,fetch:g}),learning:new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g})});d(t),t.preparation.jobId&&await C(t.preparation.jobId),t.preparation.jobId&&!I(r.detach)&&await B({client:o,jobId:t.preparation.jobId,teamId:c,options:F(r),print:d,requestBound:w,readNativeInspection:U});return}if(e==="hosted-estimate-model"){if(!i)throw new Error("training estimate requires a hosted Model Project ID.");let{project:t}=await H({baseUrl:v,headers:m,fetch:g}).get(i),n=f(r,"batchId"),u=n?await new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g}).get("batch",n):null,{trainingGpuChoice:l}=await import("./training-model-start-NMQ55UHZ.js"),E=l(r)??t.trainingSetup.managedGpuSelection;V(await o.estimate({schemaVersion:"openpond.trainingEstimateRequest.v1",teamId:c,source:{kind:"configuration",id:t.id,expectedRevision:t.revision,expectedEtag:t.etag,batch:u?{id:u.id,revision:u.revision,contentHash:u.contentHash}:null},...E?{gpuSelection:E}:{}}),I(r.json));return}if(e==="hosted-estimate"){let{TrainingEstimateRequestSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());if(n.teamId!==c)throw new Error("Estimate input belongs to a different workspace.");V(await o.estimate(n),I(r.json));return}if(e==="hosted-batches"){let t=new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g});d(await t.list("batch",{limit:100}));return}if(e==="hosted-drafts"){if(i)throw new Error("hosted-drafts accepts filters, not an identifier.");let t=f(r,"cursor"),n=f(r,"projectId"),u=f(r,"search"),l=k(r.limit,"--limit");d(await o.listExperimentDrafts(c,{archived:I(r.archived),...t?{cursor:t}:{},...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:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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 t=f(r,"operationId"),n=k(r.expectedRevision,"--expected-revision");if(!i||!t||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:t,expectedRevision:n}));return}if(e==="hosted-executions"){if(i)throw new Error("hosted-executions accepts filters, not an identifier.");let t=f(r,"cursor"),n=f(r,"projectId"),u=f(r,"datasetHash"),l=f(r,"search"),E=k(r.limit,"--limit");d(await o.listExecutions(c,{...t?{cursor:t}:{},...n?{projectId:n}:{},...u?{datasetHash:u}:{},...l?{search:l}:{},...E===void 0?{}:{limit:E}}));return}if(e==="hosted-save-steering-model"){let{SteeringProfileSaveRequestSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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(r,"projectId")||void 0,modelProjectId:f(r,"modelProjectId")||void 0,cursor:f(r,"cursor")||void 0,archived:I(r.archived),limit:k(r.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 t=await h();d(await o.archiveSteeringProfile(t.id,t.request));return}if(e==="hosted-model-version"){if(!i)throw new Error("Supply a Model ID.");let t=f(r,"versionHash");d(await o.modelVersion(i,{teamId:c,...t?{versionHash:t}:{}}));return}if(e==="hosted-modification-executions"){if(i)throw new Error("hosted-modification-executions accepts filters, not an identifier.");let{ManagedModificationExecutionListQuerySchema:t}=await import("./training-NL5GYZKU.js"),n={};for(let l of["id","projectId","method","phase","cursor"]){let E=f(r,l);E&&(n[l]=E)}let u=k(r.limit,"--limit");u!==void 0&&(n.limit=u),d(await o.listModificationExecutions(c,t.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:t,printHostedModificationComparison:n}=await import("./training-hosted-modification-comparison-2MH5FZMZ.js"),u=await t({client:o,teamId:c,executionId:i??"",baselineId:f(r,"baseline"),candidateId:f(r,"candidate"),promptId:f(r,"prompt")||void 0});n(u,I(r.json));return}if(e==="hosted-compile-modification"){let{parseManagedModificationCompile:t}=await import("./training-NL5GYZKU.js"),n=t(await h());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:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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:t,ManagedModificationCancelSchema:n}=await import("./training-NL5GYZKU.js"),u=e==="hosted-start-modification",l=u?t.parse(await h()):n.parse(await h());if(l.teamId!==c)throw new Error("Modification input belongs to a different workspace.");if(u&&!I(r.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 t=f(r,"cursor"),n=f(r,"projectId"),u=k(r.limit,"--limit");d(await o.listPreparations(c,{...t?{afterId:t}:{},...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 t=await z();d(await o.cancelPreparation(t.plan.id,{teamId:c,planHash:t.plan.contentHash,expectedRevision:t.revision}));return}if(e==="hosted-save-experiment-learning"){let{TrainingExperimentLearningRequestSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());if(n.teamId!==c)throw new Error("Experiment learning input belongs to a different workspace.");d(await o.saveExperimentLearning(n));return}if(e==="hosted-prepare-experiment"){let{TrainingExperimentSetupRequestSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());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 t=oe.parse(await h());if(t.teamId!==c)throw new Error("Preparation input belongs to a different workspace.");d(await o.prepareRun(t));return}if(e==="hosted-start"){let t=await z();if(!I(r.yes))throw new Error("Starting paid hosted training requires --yes.");let n=f(r,"estimateReviewFile"),u;if(n){let E=await ve(n);if(E.byteLength>64*1024*1024)throw new Error("Training estimate review input exceeds 64 MiB.");let T=JSON.parse(E.toString("utf8")),{TrainingEstimateSchema:N,TrainingEstimateReviewSchema:be}=await import("./training-NL5GYZKU.js"),G=be.safeParse(T);if(G.success)u=G.data;else{let $=N.parse(T);if($.teamId!==c||$.source.kind!=="preparation"||$.source.id!==t.plan.id||$.source.contentHash!==t.plan.contentHash||$.source.revision!==t.revision)throw new Error("Training estimate belongs to a different workspace or prepared plan.");u=$.review}}let l=await o.startPreparation(t.plan.id,{teamId:c,planHash:t.plan.contentHash,expectedRevision:t.revision,...u?{estimateReview:u}:{},...t.plan.usageQuote?{usageQuoteHash:t.plan.usageQuote.contentHash}:{}});d(l),l.jobId&&await C(l.jobId);return}if(e==="hosted-stage"){d(await o.stageArtifact(await h()));return}if(e==="hosted-submit"||e==="hosted-qualify"){let t=await ie(await h());if(e==="hosted-qualify"&&(t.job.kind!=="policy_optimize"||t.job.executionMode!=="qualification"))throw new Error("hosted-qualify requires an immutable policy_optimize submission with executionMode=qualification.");if(!I(r.yes))throw new Error("Submitting paid hosted training requires --yes.");if(t.gpuSelection?.gpuCount===2||t.job.kind==="policy_optimize"&&t.job.executionMode==="qualification"){let u=await o.capabilities();if(t.gpuSelection?.gpuCount===2&&!u.policyDataParallel)throw new Error("This hosted runtime has no qualified two-GPU policy-training image.");if(t.job.kind==="policy_optimize"&&t.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(t);if(n.teamId!==c||n.submissionHash!==t.contentHash||n.kind!==t.job.kind||t.job.kind==="policy_optimize"&&n.executionMode!==t.job.executionMode)throw new Error(`Hosted submission response identity or execution mode mismatch; inspect hosted-status ${n.id} before attempting another submission.`);await x(n,n.id);return}if(!i)throw new Error(`${e} requires a hosted job ID.`);if(e==="hosted-status"){await x(await o.getJob(i),i);return}if(e==="hosted-save-model"){let{TrainingResultSaveCommandSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());if(n.request.teamId!==c)throw new Error("Save this result in its original workspace.");await x(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 t=await h();d(await o.modelServing(t.modelProjectId,{teamId:c,versionHash:t.versionHash}));return}if(e==="hosted-control-model-serving"){let{TrainingModelServingControlCommandSchema:t}=await import("./training-NL5GYZKU.js"),n=t.parse(await h());if(n.request.teamId!==c)throw new Error("Control serving in its original workspace.");if(n.request.action==="activate"&&!I(r.yes))throw new Error("Activating billed serving capacity requires --yes.");d(await o.controlModelServing(n.modelProjectId,n.request));return}if(e==="hosted-result"){let t=await o.result(i,{teamId:c});await x(t,i);return}if(e==="hosted-report"){let t=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||t.id!==i||t.teamId!==c)throw new Error("Hosted report status identity mismatch.");let E=l.recovery?await o.getJob(l.recovery.sourceJobId):void 0,T=l.rolloutProgress.groupsTarget===0?(await import("./training-hosted-serving-report-ZG75ACZK.js")).parseHostedServingReportEvidence(await U(i),l):void 0,{buildHostedTrainingReport:N}=await import("./training-hosted-report-T633TNJG.js");await x(N({job:l,events:n,outputs:u,recoverySourceJob:E,servingEvidence:T,versionBeforeRead:t.version,generatedAt:new Date().toISOString()}),i);return}if(e==="hosted-evaluation-tasks"){let t=f(r,"evaluationId");if(!t)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===t);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(r,"cursor")||void 0,limit:k(r.limit,"--limit")}));return}if(e==="hosted-trajectory"){let t=f(r,"trajectoryId");if(!t)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(t)}`,v),{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:t}=await import("./training-hosted-feedback-5B2KJGOT.js");d(await t({jobId:i,baseUrl:v,headers:m,request:g,trajectoryId:f(r,"trajectoryId")||void 0,evaluationId:f(r,"evaluationId")||void 0,taskId:f(r,"taskId")||void 0}));return}if(e==="hosted-inspect"){d(await U(i));return}if(e==="hosted-recover"){if(!I(r.yes))throw new Error("hosted-recover requires --yes for its explicit funded execution request.");let{jobId:t,...n}=await h();if(typeof t!="string"||!t)throw new Error("hosted-recover requires jobId in its input JSON.");let u=await o.recoverCheckpoint(t,n);await x(u,u.id);return}if(e==="hosted-cancel"){await x(await D(o,i,c),i);return}if(e==="hosted-stop-after-group"){if(!I(r.yes))throw new Error("hosted-stop-after-group requires --yes to shorten the admitted training schedule.");await x(await ge(o,i,c),i);return}if(e==="hosted-artifacts"){await x(await o.outputs(i),i);return}if(e==="hosted-logs"){await x(await o.logs(i),i);return}if(e==="hosted-events"){await x(await o.events(i),i);return}if(e==="hosted-watch"&&a){await C(i),await B({client:o,jobId:i,teamId:c,options:a,print:d,requestBound:w,readNativeInspection:U});return}throw new Error(`Unknown hosted training command: ${e}`)}b(et,"runHostedTrainingCommand");export{et as runHostedTrainingCommand};
|
|
2
|
+
import{a as le}from"./chunk-7NLKMY7L.js";import{a as pe}from"./chunk-HYYQCBX5.js";import{a as fe}from"./chunk-IHAEZ73V.js";import{a as ce}from"./chunk-JBIAEQHI.js";import{a as de}from"./chunk-LK7TJYEP.js";import{a as ue}from"./chunk-Z3OW37CO.js";import{nb as ie,pf as oe,um as se,wf as ae,zb as ne}from"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import{b as O,c as me}from"./chunk-2QHB5P2K.js";import"./chunk-BZS2PA4O.js";import"./chunk-IV2HEX3I.js";import{r as re,t as H}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{Cb as X,tc as S,uc as Z,vc as Y,wc as ee,xc as te}from"./chunk-ZEOYNUHL.js";import"./chunk-ZY32SZ2P.js";import"./chunk-OTDDXEQ6.js";import"./chunk-ECOH24MC.js";import{a as Q}from"./chunk-HIMG7S5E.js";import"./chunk-REGKOCDO.js";import{a as K}from"./chunk-JF7WWLNW.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-EJOV6Z6F.js";import"./chunk-GY7YSD6J.js";import"./chunk-KUE46HTH.js";import"./chunk-GLUWATL5.js";import"./chunk-MZKCW6CB.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 R}from"./chunk-TBODQT4W.js";import{g as W}from"./chunk-5HPZGLOL.js";import"./chunk-ZFJWA4JK.js";import{A as y}from"./chunk-X2J2P5ZT.js";import{a as b}from"./chunk-FTQLQJQV.js";async function he(r,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 w=await(p.request??await(await import("./training-YUWQXGJX.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",...r}}),signal:AbortSignal.timeout(15e3),redirect:"error"});if(!w.ok)throw new Error(`Chat attachment returned HTTP ${w.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.`)}}b(he,"attachHostedTrainingToChat");import{readFile as ve}from"node:fs/promises";var M=y.string().trim().min(1).max(500),ye=y.object({id:M,contentHash:y.string().regex(/^[a-f0-9]{64}$/)}).strict(),Ie=y.object({teamId:M,modelId:M,runId:M.optional(),from:y.string().datetime().optional(),to:y.string().datetime().optional()}).strict(),Ee=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:ye,inferenceRequestId:M,grade:y.object({id:M,revision:y.number().int().positive()}).strict(),checkIds:y.array(M).min(1).max(1e3)}).strict()]),xe=y.object({summary:te.nullable(),observations:y.array(ee).max(1e3)}).strict(),J=class{static{b(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 me(a)}catch(w){throw w instanceof R?w:new R(a.ok?502:a.status,"invalid_response","Correction metrics returned an invalid response.",null)}if(!a.ok){let w=y.object({code:y.string().optional(),error:y.string().optional()}).passthrough().safeParse(s);throw new R(a.status,w.success?w.data.code??"correction_request_failed":"correction_request_failed",w.success?w.data.error??`Correction metrics request failed (${a.status}).`:`Correction metrics request failed (${a.status}).`,s)}return s}async read(p,e={}){let i=Ie.parse(p),a=xe.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 R(502,"correction_scope_mismatch","Correction metrics did not match the requested workspace, Model or run.",null);return a}async command(p,e={}){let i=Ee.parse(p);X(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 w=Z.parse(a);if(w.teamId!==i.teamId||w.modelId!==i.plan.modelId||w.trainingJobId!==i.plan.trainingJobId)throw new R(502,"correction_scope_mismatch","Correction declaration did not match the requested workspace, Model or run.",null);return w}let s=Y.parse(a);if(s.correction.id!==i.correction.id||s.correction.contentHash!==i.correction.contentHash||s.attempt.id!==i.inferenceRequestId)throw new R(502,"correction_scope_mismatch","Correction opportunity did not match the declared correction and serving request.",null);return s}};var _=new Set(["succeeded","failed","cancelled"]);function F(r){let p=k(r.intervalMs,"interval-ms")??1e4,e=k(r.cleanupTimeoutMs,"cleanup-timeout-ms")??18e4,i=k(r.cleanupReserveMs,"cleanup-reserve-ms")??18e4;if([p,e,i].some(w=>!Number.isSafeInteger(w)||w>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(r,"deadlineAt");if(!a&&r.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(r.waitForCleanup)||I(r.cancelOnInfrastructureError),cleanupTimeoutMs:e,cancelOnInfrastructureError:I(r.cancelOnInfrastructureError)}}b(F,"parseHostedWatchOptions");async function D(r,p,e){for(let i=0;i<4;i++){let a=await r.getJob(p);if(P(a,p,e),_.has(a.state)||a.state==="cancelling")return a;try{let s=await r.cancelJob(p,a.version);return P(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.")}b(D,"cancelHostedTrainingJob");async function ge(r,p,e){for(let i=0;i<4;i++){let a=await r.getJob(p);if(P(a,p,e),_.has(a.state)||a.state==="cancelling")return a;try{let s=await r.stopAfterGroup(p,a.version);return P(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.")}b(ge,"stopHostedTrainingJobAfterGroup");async function B(r){let{client:p,options:e,jobId:i,teamId:a}=r,s=null,w,q=!1;for(;;){let v=Math.min(e.deadlineAt??1/0,s??1/0);if(r.requestBound.deadlineAt=Number.isFinite(v)?v:null,Date.now()>=v)throw we(i);try{let m=e.cancelAt!==null&&Date.now()>=e.cancelAt&&!q?await D(p,i,a):await p.getJob(i);if(P(m,i,a,w),w=m.submissionHash,e.cancelOnInfrastructureError&&!q&&!_.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&&(r.print({jobId:i,event:"hosted_watch_infrastructure_failure",trajectoryEventId:o.id,data:o.data}),m=await D(p,i,a),P(m,i,a,w),s??=Date.now()+e.cleanupTimeoutMs)}if(q||=m.state==="cancelling"||_.has(m.state),r.print(m),_.has(m.state)){let g=m.executionMode==="qualification"&&m.state==="succeeded";if(!e.waitForCleanup&&!g)return;s??=Date.now()+e.cleanupTimeoutMs,r.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!==w)throw new Error("Hosted cleanup receipt does not match the watched Job and submission.");if(o.cleanupComplete){g&&await ne(o,{submissionHash:w,outputs:C}),r.print({jobId:i,cleanup:{scope:"job",complete:!0,receipt:o}});return}}else if(m.rolloutProgress.groupsTarget===0&&r.readNativeInspection){let x=fe(await r.readNativeInspection(i),m);if(x.cleanupComplete){r.print({jobId:i,cleanup:{scope:"job",complete:!0,evidence:"native_read_only_attestation",nativeJobVersion:x.nativeJobVersion,attestation:x.cleanupAttestation}});return}}}}catch(m){if(r.requestBound.deadlineAt!==null&&Date.now()>=r.requestBound.deadlineAt)throw we(i);if(e.deadlineAt===null&&s===null||!ke(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(r.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()))))}}b(B,"watchHostedTrainingJob");function P(r,p,e,i){if(r.id!==p||r.teamId!==e||i!==void 0&&r.submissionHash!==i)throw new Error("Hosted response does not match the requested Job, workspace, and submission.")}b(P,"assertJobIdentity");function ke(r){return r instanceof j?r.status===429||r.status>=500:r instanceof W?r.code==="invalid_error_response"||r.code==="invalid_json":r instanceof TypeError||r instanceof Error&&["TimeoutError","AbortError"].includes(r.name)}b(ke,"isTransient");function we(r){return new Error(`Hosted watch deadline reached for ${r}; completed job cleanup is unverified. Inspect hosted-status, hosted-artifacts, and provider retirement before treating resources as released.`)}b(we,"cleanupDeadlineError");var A=b(r=>new Intl.NumberFormat("en-US",{style:"currency",currency:"USD",minimumFractionDigits:2,maximumFractionDigits:4}).format(r),"money"),L=b(r=>r>=3600?`${(r/3600).toFixed(1)} hours`:`${Math.max(1,Math.ceil(r/60))} minutes`,"duration");function V(r,p){if(p){console.log(JSON.stringify(r,null,2));return}console.log(`Estimate ${r.id} (${r.status.replaceAll("_"," ")})`),console.log(`Model: ${r.configuration.modelId}@${r.configuration.modelRevision}`);let e=r.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: ${r.gpu.resolved?.gpuType??"Awaiting a supported offering"} \xD7 ${r.gpu.resolved?.gpuCount??r.gpu.requested.gpuCount??1} (${r.gpu.requested.mode}, ${r.gpu.availability})`);let i=r.cost;console.log(`Expected cost: ${i.expectedUsd===null?"Not yet calibrated":A(i.expectedUsd)}`),i.planningRangeUsd&&console.log(`Planning range: ${A(i.planningRangeUsd.low)}\u2013${A(i.planningRangeUsd.high)}`),console.log(`Execution time: ${r.executionSeconds.expected===null?"Not yet calibrated":L(r.executionSeconds.expected)}`),r.executionSeconds.planningRange&&console.log(`Execution planning range: ${L(r.executionSeconds.planningRange.low)}\u2013${L(r.executionSeconds.planningRange.high)}`),console.log(`Queue wait: ${r.queueWaitSeconds===null?"Start time not yet known":`about ${L(r.queueWaitSeconds.expected)}`}`);let a=r.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 w=a.method==="sft"?a.trainingRows.totals?.inputTokens:a.trainingInitialRequests.totals?.promptTokens;console.log(`Tokens in counted inputs: ${w??"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":A(i.recommendedMaximumUsd)}`),console.log(`Approved hard cap: ${e.approvedMaximumUsd===null?"Not approved":A(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}: ${A(s.expectedUsd)}`):s.evidence==="configured_rate"&&console.log(` ${s.phase.replaceAll("_"," ")} / ${s.resource}: configured rate; expected usage unknown. ${s.reason??""}`);for(let s of r.assumptions)console.log(`Assumption: ${s}`);for(let s of r.unknowns)console.log(`Unknown: ${s}`);console.log(`Evidence: ${r.calibration.completedSamples} completed, ${r.calibration.partialSamples} partial samples; expires ${r.expiresAt}`),console.log("This estimate reserves no resources and approves no spending.")}b(V,"printTrainingEstimate");var d=b(r=>console.log(JSON.stringify(r,null,2)),"print");async function et(r,p){let e=p[0],i=p[1],a=e==="hosted-watch"?F(r):null,s=e==="hosted-score-decision"?33e4:18e4,w={deadlineAt:a?.deadlineAt??null},{context:q,baseUrl:v,teamId:c,headers:m}=await Q(r),g=b((t,n)=>{let u=w.deadlineAt===null?1/0:w.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 K(t,{...n,redirect:"error",signal:n?.signal?AbortSignal.any([n.signal,l]):l})},"request"),o=se({baseUrl:v,headers:m,fetch:g}),C=b(t=>he({jobId:t,teamId:c,apiOrigin:new URL(v).origin}),"attach"),x=b(async(t,n)=>{d(t),await C(n)},"printAttached"),h=b(async()=>{if(!i)throw new Error(`${e} requires an input JSON file.`);let t=await ve(i);if(t.byteLength>64*1024*1024)throw new Error("Hosted training input exceeds 64 MiB.");return JSON.parse(t.toString("utf8"))},"readInput"),z=b(async()=>{let t=await h(),{TrainingExperimentSetupReceiptSchema:n,parseAndVerifyTrainingExperimentSetupReceipt:u}=await import("./training-U6OPNRP4.js"),l=n.safeParse(t).success?(await u(t)).preparation:await ae(t);if(l.plan.request.teamId!==c)throw new Error("Preparation belongs to a different workspace.");return l},"readPreparationInput"),U=b(async t=>{let n=await g(new URL(`/v1/managed-rl/jobs/${encodeURIComponent(t)}`,v),{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:v,headers:m,request:g,readInput:h,confirmed:I(r.yes)}));return}if(e&&ce.has(e)){let{runHostedAlphaEditCommand:t}=await import("./training-hosted-alphaedit-HQTKGEZU.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&de.has(e)){let{runHostedNeuronTrainingCommand:t}=await import("./training-hosted-neuron-training-37Y6WJH5.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&ue.has(e)){let{runHostedEngramCommand:t}=await import("./training-hosted-engram-7UAVQFBA.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&le.has(e)){let{runHostedDecisionCommand:t}=await import("./training-hosted-decision-LN7MQGBF.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e&&pe.has(e)){let{runHostedSteeringCommand:t}=await import("./training-hosted-steering-EAFICV6I.js");d(await t({action:e,target:i,teamId:c,options:r,client:o,readInput:h}));return}if(e==="hosted-evaluate-checkpoint"){if(!I(r.yes))throw new Error("Paid checkpoint evaluation requires --yes.");let t=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationRequest(await h()),n=new Headers(m);n.set("content-type","application/json");let u=await g(new URL("/v1/managed-rl/serving-soaks",v),{method:"POST",headers:n,body:JSON.stringify(t)}),l=await u.json();if(!u.ok){let T=l&&typeof l=="object"&&"error"in l?String(l.error):"checkpoint_evaluation_failed";throw new Error(`Checkpoint evaluation failed (${u.status}): ${T}. Reconcile hosted-jobs before retrying the same immutable request.`)}let E=(await import("./training-hosted-checkpoint-evaluation-2X7RSOLC.js")).parseCheckpointEvaluationResponse(l,t);await x(E,E.job.id);return}if(e==="hosted-provider"||e==="hosted-quotes"){if(i)throw new Error(`${e} does not accept an identifier.`);let t=e==="hosted-provider"?"/v1/managed-rl/provider-inventory":"/v1/managed-rl/quotes",n=await g(new URL(t,v),{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(r,"workerId")||void 0,jobId:f(r,"jobId")||void 0,cursor:f(r,"cursor")||void 0,limit:r.limit===void 0?void 0:k(r.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:v,headers:m,request:g,readInput:h,confirmed:I(r.yes)}));return}if(e==="hosted-tasksets"){let{OpenPondTasksetCatalogClient:t}=await import("./taskset-catalog-RZYEBCRQ.js"),n=new t({baseUrl:v,apiKey:q.token,teamId:c,fetch:g}),u=f(r,"cursor"),l=f(r,"projectId"),E=f(r,"search"),T=r.limit===void 0?void 0:k(r.limit,"limit");d(i?await n.get(i):await n.list({...u?{afterId:u}:{},...l?{projectId:l}:{},...E?{search:E}:{},...T===void 0?{}:{limit:T}}));return}if(e==="hosted-models"){d(await H({baseUrl:v,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:v,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:t}=await H({baseUrl:v,headers:m,fetch:g}).get(i);d(await(await import("./training-hosted-learning-UEBGSSNC.js")).inspectHostedLearning({action:e,options:r,teamId:c,model:t,learning:new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g}),corrections:new J({baseUrl:v,apiKey:q.token,fetch:g})}));return}if(e==="hosted-sync-model"){let t=re.parse(await h());d(await H({baseUrl:v,headers:m,fetch:g}).upsert(t));return}if(e==="hosted-publish-taskset"){let{OpenPondTasksetPackageClient:t,TasksetPackagePublicationSchema:n}=await import("./taskset-packages-FUQWNTSB.js"),u=n.parse(await h());d(await new t({baseUrl:v,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:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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:t,TrainingFundingHandoffRequestSchema:n}=await import("./training-U6OPNRP4.js"),u=await h();if(e==="hosted-funding"){let l=t.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:t}=await import("./training-U6OPNRP4.js"),n=i?t.parse(await h()):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 t=await(await import("./training-model-start-5QB7A5TD.js")).startHostedModel({options:r,modelId:i,teamId:c,client:o,models:H({baseUrl:v,headers:m,fetch:g}),learning:new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g})});d(t),t.preparation.jobId&&await C(t.preparation.jobId),t.preparation.jobId&&!I(r.detach)&&await B({client:o,jobId:t.preparation.jobId,teamId:c,options:F(r),print:d,requestBound:w,readNativeInspection:U});return}if(e==="hosted-estimate-model"){if(!i)throw new Error("training estimate requires a hosted Model Project ID.");let{project:t}=await H({baseUrl:v,headers:m,fetch:g}).get(i),n=f(r,"batchId"),u=n?await new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g}).get("batch",n):null,{trainingGpuChoice:l}=await import("./training-model-start-5QB7A5TD.js"),E=l(r)??t.trainingSetup.managedGpuSelection;V(await o.estimate({schemaVersion:"openpond.trainingEstimateRequest.v1",teamId:c,source:{kind:"configuration",id:t.id,expectedRevision:t.revision,expectedEtag:t.etag,batch:u?{id:u.id,revision:u.revision,contentHash:u.contentHash}:null},...E?{gpuSelection:E}:{}}),I(r.json));return}if(e==="hosted-estimate"){let{TrainingEstimateRequestSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());if(n.teamId!==c)throw new Error("Estimate input belongs to a different workspace.");V(await o.estimate(n),I(r.json));return}if(e==="hosted-batches"){let t=new O({baseUrl:v,apiKey:q.token,scope:c,fetch:g});d(await t.list("batch",{limit:100}));return}if(e==="hosted-drafts"){if(i)throw new Error("hosted-drafts accepts filters, not an identifier.");let t=f(r,"cursor"),n=f(r,"projectId"),u=f(r,"search"),l=k(r.limit,"--limit");d(await o.listExperimentDrafts(c,{archived:I(r.archived),...t?{cursor:t}:{},...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:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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 t=f(r,"operationId"),n=k(r.expectedRevision,"--expected-revision");if(!i||!t||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:t,expectedRevision:n}));return}if(e==="hosted-executions"){if(i)throw new Error("hosted-executions accepts filters, not an identifier.");let t=f(r,"cursor"),n=f(r,"projectId"),u=f(r,"datasetHash"),l=f(r,"search"),E=k(r.limit,"--limit");d(await o.listExecutions(c,{...t?{cursor:t}:{},...n?{projectId:n}:{},...u?{datasetHash:u}:{},...l?{search:l}:{},...E===void 0?{}:{limit:E}}));return}if(e==="hosted-save-steering-model"){let{SteeringProfileSaveRequestSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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(r,"projectId")||void 0,modelProjectId:f(r,"modelProjectId")||void 0,cursor:f(r,"cursor")||void 0,archived:I(r.archived),limit:k(r.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 t=await h();d(await o.archiveSteeringProfile(t.id,t.request));return}if(e==="hosted-model-version"){if(!i)throw new Error("Supply a Model ID.");let t=f(r,"versionHash");d(await o.modelVersion(i,{teamId:c,...t?{versionHash:t}:{}}));return}if(e==="hosted-modification-executions"){if(i)throw new Error("hosted-modification-executions accepts filters, not an identifier.");let{ManagedModificationExecutionListQuerySchema:t}=await import("./training-U6OPNRP4.js"),n={};for(let l of["id","projectId","method","phase","cursor"]){let E=f(r,l);E&&(n[l]=E)}let u=k(r.limit,"--limit");u!==void 0&&(n.limit=u),d(await o.listModificationExecutions(c,t.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:t,printHostedModificationComparison:n}=await import("./training-hosted-modification-comparison-ZOYOSVHI.js"),u=await t({client:o,teamId:c,executionId:i??"",baselineId:f(r,"baseline"),candidateId:f(r,"candidate"),promptId:f(r,"prompt")||void 0});n(u,I(r.json));return}if(e==="hosted-compile-modification"){let{parseManagedModificationCompile:t}=await import("./training-U6OPNRP4.js"),n=t(await h());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:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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:t,ManagedModificationCancelSchema:n}=await import("./training-U6OPNRP4.js"),u=e==="hosted-start-modification",l=u?t.parse(await h()):n.parse(await h());if(l.teamId!==c)throw new Error("Modification input belongs to a different workspace.");if(u&&!I(r.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 t=f(r,"cursor"),n=f(r,"projectId"),u=k(r.limit,"--limit");d(await o.listPreparations(c,{...t?{afterId:t}:{},...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 t=await z();d(await o.cancelPreparation(t.plan.id,{teamId:c,planHash:t.plan.contentHash,expectedRevision:t.revision}));return}if(e==="hosted-save-experiment-learning"){let{TrainingExperimentLearningRequestSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());if(n.teamId!==c)throw new Error("Experiment learning input belongs to a different workspace.");d(await o.saveExperimentLearning(n));return}if(e==="hosted-prepare-experiment"){let{TrainingExperimentSetupRequestSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());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 t=oe.parse(await h());if(t.teamId!==c)throw new Error("Preparation input belongs to a different workspace.");d(await o.prepareRun(t));return}if(e==="hosted-start"){let t=await z();if(!I(r.yes))throw new Error("Starting paid hosted training requires --yes.");let n=f(r,"estimateReviewFile"),u;if(n){let E=await ve(n);if(E.byteLength>64*1024*1024)throw new Error("Training estimate review input exceeds 64 MiB.");let T=JSON.parse(E.toString("utf8")),{TrainingEstimateSchema:N,TrainingEstimateReviewSchema:be}=await import("./training-U6OPNRP4.js"),G=be.safeParse(T);if(G.success)u=G.data;else{let $=N.parse(T);if($.teamId!==c||$.source.kind!=="preparation"||$.source.id!==t.plan.id||$.source.contentHash!==t.plan.contentHash||$.source.revision!==t.revision)throw new Error("Training estimate belongs to a different workspace or prepared plan.");u=$.review}}let l=await o.startPreparation(t.plan.id,{teamId:c,planHash:t.plan.contentHash,expectedRevision:t.revision,...u?{estimateReview:u}:{},...t.plan.usageQuote?{usageQuoteHash:t.plan.usageQuote.contentHash}:{}});d(l),l.jobId&&await C(l.jobId);return}if(e==="hosted-stage"){d(await o.stageArtifact(await h()));return}if(e==="hosted-submit"||e==="hosted-qualify"){let t=await ie(await h());if(e==="hosted-qualify"&&(t.job.kind!=="policy_optimize"||t.job.executionMode!=="qualification"))throw new Error("hosted-qualify requires an immutable policy_optimize submission with executionMode=qualification.");if(!I(r.yes))throw new Error("Submitting paid hosted training requires --yes.");if(t.gpuSelection?.gpuCount===2||t.job.kind==="policy_optimize"&&t.job.executionMode==="qualification"){let u=await o.capabilities();if(t.gpuSelection?.gpuCount===2&&!u.policyDataParallel)throw new Error("This hosted runtime has no qualified two-GPU policy-training image.");if(t.job.kind==="policy_optimize"&&t.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(t);if(n.teamId!==c||n.submissionHash!==t.contentHash||n.kind!==t.job.kind||t.job.kind==="policy_optimize"&&n.executionMode!==t.job.executionMode)throw new Error(`Hosted submission response identity or execution mode mismatch; inspect hosted-status ${n.id} before attempting another submission.`);await x(n,n.id);return}if(!i)throw new Error(`${e} requires a hosted job ID.`);if(e==="hosted-status"){await x(await o.getJob(i),i);return}if(e==="hosted-save-model"){let{TrainingResultSaveCommandSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());if(n.request.teamId!==c)throw new Error("Save this result in its original workspace.");await x(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 t=await h();d(await o.modelServing(t.modelProjectId,{teamId:c,versionHash:t.versionHash}));return}if(e==="hosted-control-model-serving"){let{TrainingModelServingControlCommandSchema:t}=await import("./training-U6OPNRP4.js"),n=t.parse(await h());if(n.request.teamId!==c)throw new Error("Control serving in its original workspace.");if(n.request.action==="activate"&&!I(r.yes))throw new Error("Activating billed serving capacity requires --yes.");d(await o.controlModelServing(n.modelProjectId,n.request));return}if(e==="hosted-result"){let t=await o.result(i,{teamId:c});await x(t,i);return}if(e==="hosted-report"){let t=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||t.id!==i||t.teamId!==c)throw new Error("Hosted report status identity mismatch.");let E=l.recovery?await o.getJob(l.recovery.sourceJobId):void 0,T=l.rolloutProgress.groupsTarget===0?(await import("./training-hosted-serving-report-EXJ5X7GB.js")).parseHostedServingReportEvidence(await U(i),l):void 0,{buildHostedTrainingReport:N}=await import("./training-hosted-report-T633TNJG.js");await x(N({job:l,events:n,outputs:u,recoverySourceJob:E,servingEvidence:T,versionBeforeRead:t.version,generatedAt:new Date().toISOString()}),i);return}if(e==="hosted-evaluation-tasks"){let t=f(r,"evaluationId");if(!t)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===t);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(r,"cursor")||void 0,limit:k(r.limit,"--limit")}));return}if(e==="hosted-trajectory"){let t=f(r,"trajectoryId");if(!t)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(t)}`,v),{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:t}=await import("./training-hosted-feedback-5B2KJGOT.js");d(await t({jobId:i,baseUrl:v,headers:m,request:g,trajectoryId:f(r,"trajectoryId")||void 0,evaluationId:f(r,"evaluationId")||void 0,taskId:f(r,"taskId")||void 0}));return}if(e==="hosted-inspect"){d(await U(i));return}if(e==="hosted-recover"){if(!I(r.yes))throw new Error("hosted-recover requires --yes for its explicit funded execution request.");let{jobId:t,...n}=await h();if(typeof t!="string"||!t)throw new Error("hosted-recover requires jobId in its input JSON.");let u=await o.recoverCheckpoint(t,n);await x(u,u.id);return}if(e==="hosted-cancel"){await x(await D(o,i,c),i);return}if(e==="hosted-stop-after-group"){if(!I(r.yes))throw new Error("hosted-stop-after-group requires --yes to shorten the admitted training schedule.");await x(await ge(o,i,c),i);return}if(e==="hosted-artifacts"){await x(await o.outputs(i),i);return}if(e==="hosted-logs"){await x(await o.logs(i),i);return}if(e==="hosted-events"){await x(await o.events(i),i);return}if(e==="hosted-watch"&&a){await C(i),await B({client:o,jobId:i,teamId:c,options:a,print:d,requestBound:w,readNativeInspection:U});return}throw new Error(`Unknown hosted training command: ${e}`)}b(et,"runHostedTrainingCommand");export{et as runHostedTrainingCommand};
|
package/dist/chunks/{training-hosted-alphaedit-WGMJ3L2D.js → training-hosted-alphaedit-HQTKGEZU.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-JBIAEQHI.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
package/dist/chunks/{training-hosted-decision-66EUMUIW.js → training-hosted-decision-LN7MQGBF.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-7NLKMY7L.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
package/dist/chunks/{training-hosted-engram-QDXSJ77I.js → training-hosted-engram-7UAVQFBA.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-Z3OW37CO.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{
|
|
2
|
+
import{Nl as r,Pl as d}from"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-LK7TJYEP.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a}from"./chunk-IHAEZ73V.js";import"./chunk-
|
|
2
|
+
import{a}from"./chunk-IHAEZ73V.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
package/dist/chunks/{training-hosted-steering-KFMTKCTX.js → training-hosted-steering-EAFICV6I.js}
RENAMED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import{a,b}from"./chunk-
|
|
2
|
+
import{a,b}from"./chunk-HYYQCBX5.js";import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import"./chunk-ZEOYNUHL.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};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
|
|
2
|
-
import"./chunk-
|
|
2
|
+
import"./chunk-ZQOJLPWD.js";import"./chunk-2EAZB2MW.js";import"./chunk-ZMRP2A7K.js";import"./chunk-IV2HEX3I.js";import{a as b}from"./chunk-C7NQPICU.js";import"./chunk-J256AEEE.js";import"./chunk-D6L6UNUQ.js";import"./chunk-AJXWJLZA.js";import"./chunk-OKKNDQJF.js";import{L as y}from"./chunk-ZEOYNUHL.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};
|
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 u}from"./chunks/chunk-AZ7BL5FL.js";import{b as C}from"./chunks/chunk-
|
|
3
|
+
import{a as u}from"./chunks/chunk-AZ7BL5FL.js";import{b as C}from"./chunks/chunk-FPW3RFZR.js";import{g as f}from"./chunks/chunk-IPH4LGK2.js";import{a as l}from"./chunks/chunk-XRKFTPHD.js";import{a as d}from"./chunks/chunk-J7X72QUY.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 w(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(w,"resolveCliTopLevelAction");async function P(e=process.argv.slice(2)){if(!await O(e))return d("openpond-cli",()=>h(e))}s(P,"runOpenPondCli");async function h(e){let{command:i,options:o,rest:t}=C(e);typeof o.home=="string"&&(process.env.OPENPOND_HOME=(await import("./chunks/dist-DKE7RJZN.js")).resolveOpenPondHome({home:o.home}));let r=w({command:i,options:o});if(r==="version"){console.log(l());return}if(r==="check-update"){await(await import("./chunks/core-commands-BWDKP6AI.js")).runCheckUpdate();return}if(r==="help"){(await import("./chunks/help-XVZ4RRAB.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-76YRQY7S.js")).runOpenPondTerminalCommand(o,t);return}if(r==="ui"){await(await import("./chunks/app-layer-76YRQY7S.js")).runOpenPondServerCommand("web",o,t);return}await f({command:i,options:o,rest:t})||((await import("./chunks/help-XVZ4RRAB.js")).printHelp(),process.exit(1))}s(h,"runCommandLine");async function O(e){if(e[0]==="__dataset-preparation-authoring")return await(await import("./chunks/dataset-preparation-authoring-RPYFOFBV.js")).runDatasetPreparationAuthoringCli(e.slice(1)),!0;if(e[0]==="__inspect-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FYBOGHZF.js")).runHostedProfileInspectionCli(e.slice(1)),!0;if(e[0]==="__prepare-hosted-profile-evaluation")return await(await import("./chunks/hosted-profile-compiler-FYBOGHZF.js")).runHostedProfileEvaluationCli(e.slice(1)),!0;if(e[0]==="__hosted-experiment-improvement")return await(await import("./chunks/hosted-experiment-improvement-5L3Z7IV6.js")).runHostedExperimentImprovementCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile-candidate")return await(await import("./chunks/hosted-profile-candidate-6Q3GOLII.js")).runHostedProfileCandidateCli(e.slice(1)),!0;if(e[0]==="__compile-hosted-profile")return await(await import("./chunks/hosted-profile-compiler-FYBOGHZF.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-N3XZV35H.js"),import("./chunks/cli-B6JFFXMI.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-PEOADF2P.js"),import("./chunks/cli-B6JFFXMI.js")]),{createOpenPondAppServer:t}=await import("./chunks/app-server-runtime-N3XZV35H.js");return await o({createOpenPondServer:i,createOpenPondAppServer:t}),!0}return e[0]==="__terminal"?(await(await import("./chunks/src-ZUOZOCQ2.js")).runOpenPondTerminalCli(e.slice(1)),!0):!1}s(O,"runEmbeddedCompanion");P().catch(async e=>{if(e instanceof u){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{P as runOpenPondCli};
|