openpond 0.2.71 → 0.2.72

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (274) hide show
  1. package/dist/app-server.js +1 -1
  2. package/dist/chunks/{acp-VWPJ2EL4.js → acp-7A2UPCG5.js} +1 -1
  3. package/dist/chunks/{acp-agent-OZHZMQ6R.js → acp-agent-AGALGR6V.js} +1 -1
  4. package/dist/chunks/{app-layer-OHPIYEOJ.js → app-layer-DUCNCJ2X.js} +1 -1
  5. package/dist/chunks/{app-server-evaluations-Y5UEF2Y7.js → app-server-evaluations-SNWXULKD.js} +1 -1
  6. package/dist/chunks/{app-server-harness-services-GUHAIIPS.js → app-server-harness-services-YNMGMKPK.js} +1 -1
  7. package/dist/chunks/{app-server-runtime-CH5STRJP.js → app-server-runtime-BKJ7L6JZ.js} +1 -1
  8. package/dist/chunks/{apps-DNLT6P4J.js → apps-2OWE23BH.js} +1 -1
  9. package/dist/chunks/chunk-2Q2AWPP2.js +2 -0
  10. package/dist/chunks/{chunk-WXG3G2O6.js → chunk-2THZ6GZY.js} +1 -1
  11. package/dist/chunks/{chunk-3JYPUOK4.js → chunk-4JKWCLTQ.js} +1 -1
  12. package/dist/chunks/{chunk-D2V2Y3FB.js → chunk-5TPJ5ECJ.js} +1 -1
  13. package/dist/chunks/{chunk-O5ZOW474.js → chunk-5TTQCT3G.js} +1 -1
  14. package/dist/chunks/{chunk-AVEHWUML.js → chunk-5WFKBZCU.js} +1 -1
  15. package/dist/chunks/{chunk-VJYOKU3C.js → chunk-6OD2FKUS.js} +1 -1
  16. package/dist/chunks/{chunk-SSHE6B7Z.js → chunk-AITV76GO.js} +1 -1
  17. package/dist/chunks/{chunk-PLROXHG2.js → chunk-ATI52WMB.js} +1 -1
  18. package/dist/chunks/{chunk-XJU47QS2.js → chunk-AWD72O3G.js} +1 -1
  19. package/dist/chunks/{chunk-HUMNLSCV.js → chunk-BUMCJHQP.js} +1 -1
  20. package/dist/chunks/{chunk-OTG77H7U.js → chunk-CAYKEJJY.js} +1 -1
  21. package/dist/chunks/{chunk-WAUFXZ5B.js → chunk-CHRED2FK.js} +1 -1
  22. package/dist/chunks/{chunk-USTDWGR4.js → chunk-CQRA5TXF.js} +1 -1
  23. package/dist/chunks/{chunk-ESOIZG2G.js → chunk-CX4U32VO.js} +4 -4
  24. package/dist/chunks/{chunk-PXQZOVSV.js → chunk-DFSQ5HZ7.js} +1 -1
  25. package/dist/chunks/{chunk-GUWNSMGH.js → chunk-EHMA5XS7.js} +1 -1
  26. package/dist/chunks/{chunk-5LKEVB2P.js → chunk-ENY24ZBB.js} +1 -1
  27. package/dist/chunks/{chunk-PJJSQ4ZI.js → chunk-F3IEAU7O.js} +1 -1
  28. package/dist/chunks/{chunk-B7SCVTE6.js → chunk-FOAM3YZQ.js} +1 -1
  29. package/dist/chunks/{chunk-VV4K5YPD.js → chunk-GPGXBKXU.js} +1 -1
  30. package/dist/chunks/{chunk-LMLGEOKV.js → chunk-HA762QYM.js} +1 -1
  31. package/dist/chunks/{chunk-XNPTLJ5Z.js → chunk-HBGTHOOB.js} +1 -1
  32. package/dist/chunks/{chunk-ER2VONWQ.js → chunk-IA6CTX7A.js} +1 -1
  33. package/dist/chunks/{chunk-23YW5PAQ.js → chunk-JALL5NPH.js} +1 -1
  34. package/dist/chunks/{chunk-OQ4RWCYI.js → chunk-JSDGOQ5U.js} +1 -1
  35. package/dist/chunks/{chunk-F2EUZG2W.js → chunk-KOIXRLZZ.js} +1 -1
  36. package/dist/chunks/{chunk-ZG3DBXQG.js → chunk-KRJZ5CW3.js} +1 -1
  37. package/dist/chunks/{chunk-OKPV6MBX.js → chunk-KTQWWCP2.js} +6 -6
  38. package/dist/chunks/{chunk-VND53FAU.js → chunk-KUEVP7WM.js} +1 -1
  39. package/dist/chunks/{chunk-U7D6Q744.js → chunk-L5L3H6CI.js} +1 -1
  40. package/dist/chunks/{chunk-TWLPZHH7.js → chunk-LHTRQAPZ.js} +1 -1
  41. package/dist/chunks/{chunk-SNBFWBJI.js → chunk-MLLMLXKG.js} +1 -1
  42. package/dist/chunks/{chunk-KASHK2U5.js → chunk-MPXOPL7R.js} +1 -1
  43. package/dist/chunks/{chunk-PHZZBXDO.js → chunk-MQMMJKOZ.js} +1 -1
  44. package/dist/chunks/{chunk-USKCFST5.js → chunk-MWPMYCYB.js} +1 -1
  45. package/dist/chunks/{chunk-DNNWMOMG.js → chunk-N5FT6PTI.js} +1 -1
  46. package/dist/chunks/{chunk-RJY4EI46.js → chunk-PYPXP5R3.js} +1 -1
  47. package/dist/chunks/{chunk-SRJTQS2D.js → chunk-QKBMXL4D.js} +3 -3
  48. package/dist/chunks/{chunk-7PDF2UX2.js → chunk-RIFWD5XM.js} +1 -1
  49. package/dist/chunks/{chunk-IFMWAOBR.js → chunk-RWBP2H4M.js} +1 -1
  50. package/dist/chunks/{chunk-7SOHV5BH.js → chunk-S5ACNR5Y.js} +1 -1
  51. package/dist/chunks/{chunk-3JVZ7OCQ.js → chunk-SRK4WX7D.js} +1 -1
  52. package/dist/chunks/{chunk-33UVQ7DU.js → chunk-T6ML5SCD.js} +1 -1
  53. package/dist/chunks/{chunk-UMRQKE3W.js → chunk-TD5YYA5Z.js} +1 -1
  54. package/dist/chunks/{chunk-OEAKX5TS.js → chunk-TR5UC5AF.js} +1 -1
  55. package/dist/chunks/{chunk-UKTPX2EE.js → chunk-UCPD526R.js} +1 -1
  56. package/dist/chunks/{chunk-RP4DPUN2.js → chunk-UZE3C2SF.js} +1 -1
  57. package/dist/chunks/{chunk-XBAB3HMA.js → chunk-V4VM2R6D.js} +1 -1
  58. package/dist/chunks/{chunk-ASMQTMQB.js → chunk-VMBWCIGG.js} +1 -1
  59. package/dist/chunks/{chunk-OFV26C2U.js → chunk-VXFGSFIE.js} +2 -2
  60. package/dist/chunks/{chunk-IJJ7FYZE.js → chunk-W4JBPYGW.js} +1 -1
  61. package/dist/chunks/{chunk-E57PUTV2.js → chunk-WMJEQK4G.js} +1 -1
  62. package/dist/chunks/{chunk-AT3ZYNX4.js → chunk-X2MJFTLS.js} +1 -1
  63. package/dist/chunks/{chunk-QN4CFJQC.js → chunk-X7ZMUWJO.js} +1 -1
  64. package/dist/chunks/{chunk-6BTX66SV.js → chunk-ZSWATWK2.js} +1 -1
  65. package/dist/chunks/{cli-5JARGJOD.js → cli-KXU5DNVV.js} +1 -1
  66. package/dist/chunks/{command-AI3SMEAH.js → command-X35I53H3.js} +3 -3
  67. package/dist/chunks/{configuration-command-NPA46ZOT.js → configuration-command-VJUK34UQ.js} +1 -1
  68. package/dist/chunks/{connected-app-executor-DLC23O43.js → connected-app-executor-JBFJF2H5.js} +1 -1
  69. package/dist/chunks/{connected-evidence-TVORI55Q.js → connected-evidence-CQ533AML.js} +1 -1
  70. package/dist/chunks/{connected-starting-assets-WGGBWH4K.js → connected-starting-assets-RL5X6LZ7.js} +1 -1
  71. package/dist/chunks/{continual-UHQI2EQD.js → continual-PHGIZFF6.js} +1 -1
  72. package/dist/chunks/{core-commands-QNZUBKOC.js → core-commands-5DYMDWXY.js} +1 -1
  73. package/dist/chunks/{dataset-preparation-authoring-OBMJLGA4.js → dataset-preparation-authoring-UDSX33YK.js} +1 -1
  74. package/dist/chunks/{datasets-USJLJOEQ.js → datasets-BW4JFUUU.js} +1 -1
  75. package/dist/chunks/{desktop-test-IYHAOR47.js → desktop-test-RIG4CB2Z.js} +1 -1
  76. package/dist/chunks/{evaluation-coordination-UJENK4WQ.js → evaluation-coordination-6QJ6XTUX.js} +1 -1
  77. package/dist/chunks/{experiment-improvements-6GJMKIER.js → experiment-improvements-2XF63AQ4.js} +1 -1
  78. package/dist/chunks/{experiments-FZHILSC6.js → experiments-3S2BVNK6.js} +1 -1
  79. package/dist/chunks/{experiments-signal-E32CWBS4.js → experiments-signal-IRBHGGW5.js} +1 -1
  80. package/dist/chunks/{help-32DLAPJR.js → help-Q2VMJVTR.js} +1 -1
  81. package/dist/chunks/{host-profile-evaluation-tools-QAV2UGSB.js → host-profile-evaluation-tools-5LZQHA32.js} +1 -1
  82. package/dist/chunks/{hosted-app-server-composition-5DVBKNV3.js → hosted-app-server-composition-AYZM2HY6.js} +1 -1
  83. package/dist/chunks/{hosted-experiment-improvement-YQ24C54D.js → hosted-experiment-improvement-SMZJYRJ7.js} +1 -1
  84. package/dist/chunks/{hosted-harness-runtime-KLIORGWV.js → hosted-harness-runtime-QWIFAITG.js} +1 -1
  85. package/dist/chunks/{hosted-profile-candidate-RCWFLOVJ.js → hosted-profile-candidate-WOMWAE5N.js} +1 -1
  86. package/dist/chunks/{hosted-profile-compiler-UDG4BCEW.js → hosted-profile-compiler-NZ2BXN32.js} +1 -1
  87. package/dist/chunks/{hosted-profile-evaluation-control-4R3L4FTK.js → hosted-profile-evaluation-control-3ECFFM7E.js} +1 -1
  88. package/dist/chunks/{hosted-profile-evaluation-inspection-NA4SSY7N.js → hosted-profile-evaluation-inspection-TM7RKONG.js} +1 -1
  89. package/dist/chunks/{hosted-profile-evaluation-preparation-B4BW6JTB.js → hosted-profile-evaluation-preparation-2MZIRT75.js} +1 -1
  90. package/dist/chunks/{human-review-D6QCZLYN.js → human-review-PG4WWVWV.js} +1 -1
  91. package/dist/chunks/{import-UCG75PN5.js → import-FAZAVZBF.js} +1 -1
  92. package/dist/chunks/{local-harness-improvement-runtime-GZBMBZB2.js → local-harness-improvement-runtime-OYLTKMJU.js} +1 -1
  93. package/dist/chunks/{local-harness-taskset-review-YVP2ZQJG.js → local-harness-taskset-review-I7YU4RZI.js} +1 -1
  94. package/dist/chunks/{opchat-APJUUTT7.js → opchat-TCZA6373.js} +1 -1
  95. package/dist/chunks/{opchat-bounded-chat-PBUSUAY2.js → opchat-bounded-chat-GMYDXLWB.js} +1 -1
  96. package/dist/chunks/{organizations-WK6EZ6L3.js → organizations-PYKGA2P2.js} +1 -1
  97. package/dist/chunks/{profile-BQMS7ALQ.js → profile-GYYI555I.js} +1 -1
  98. package/dist/chunks/{project-action-payload-CGV77JSA.js → project-action-payload-FE6M2OXJ.js} +1 -1
  99. package/dist/chunks/{project-agent-XVFYTEUQ.js → project-agent-4ISJFMJD.js} +1 -1
  100. package/dist/chunks/{published-experiment-source-2CYFIRBL.js → published-experiment-source-E2YAJCLM.js} +1 -1
  101. package/dist/chunks/{refiner-profile-service-OLJHA4DI.js → refiner-profile-service-LKGXD5WJ.js} +1 -1
  102. package/dist/chunks/{runtime-32KYSVZR.js → runtime-UDLOZD4Y.js} +2 -2
  103. package/dist/chunks/{sandbox-command-OY3VZXGG.js → sandbox-command-4J6DAY7T.js} +1 -1
  104. package/dist/chunks/{sandbox-template-YOOSJ4FK.js → sandbox-template-TSXWJMWG.js} +1 -1
  105. package/dist/chunks/{saved-work-L4KNWLZB.js → saved-work-QTEBKVUB.js} +1 -1
  106. package/dist/chunks/{send-turn-YLY3YNEQ.js → send-turn-4MH4WMLW.js} +1 -1
  107. package/dist/chunks/{setup-EU6CMRXQ.js → setup-IVT2FQSE.js} +1 -1
  108. package/dist/chunks/{src-HYOTHMRX.js → src-DC7N2H7A.js} +2 -2
  109. package/dist/chunks/{src-3DJR7OAH.js → src-TOSQX36I.js} +1 -1
  110. package/dist/chunks/{store-chat-resources-HISLEZZM.js → store-chat-resources-QLXKKYYC.js} +1 -1
  111. package/dist/chunks/{store-continual-support-reviews-ORWHS57V.js → store-continual-support-reviews-4F2BOG3H.js} +1 -1
  112. package/dist/chunks/{store-conversation-serving-5UGYKEGJ.js → store-conversation-serving-EUD47W6X.js} +1 -1
  113. package/dist/chunks/{store-create-improve-APLPTVYQ.js → store-create-improve-QUOTNNIM.js} +1 -1
  114. package/dist/chunks/{store-datasets-HDW6IYBL.js → store-datasets-ZUC7CNVO.js} +1 -1
  115. package/dist/chunks/{store-evaluation-results-KB2UDCF3.js → store-evaluation-results-LHHPHESK.js} +1 -1
  116. package/dist/chunks/{store-human-review-IURNTX3C.js → store-human-review-7WZWRJ6X.js} +1 -1
  117. package/dist/chunks/{store-learned-preference-migration-validation-TH2LKQWV.js → store-learned-preference-migration-validation-MVNKBR4X.js} +1 -1
  118. package/dist/chunks/{store-local-experiments-M4V5RLHJ.js → store-local-experiments-HB53QFLL.js} +1 -1
  119. package/dist/chunks/{store-model-batch-review-DDZLWVTG.js → store-model-batch-review-O3I6GIAA.js} +1 -1
  120. package/dist/chunks/{store-model-configuration-ATOFA5OH.js → store-model-configuration-CDIGNU6Q.js} +1 -1
  121. package/dist/chunks/{store-model-project-preparation-ZRSCQEQR.js → store-model-project-preparation-QMQ2HMJV.js} +1 -1
  122. package/dist/chunks/{store-modification-recordings-YJIDUPVJ.js → store-modification-recordings-W4VEZKKQ.js} +1 -1
  123. package/dist/chunks/{store-sidebar-file-bookmarks-WLMYDA4E.js → store-sidebar-file-bookmarks-KAEDHVVF.js} +1 -1
  124. package/dist/chunks/{store-sidebar-preferences-AFMYIDWT.js → store-sidebar-preferences-QPBLTHY6.js} +1 -1
  125. package/dist/chunks/{store-subagents-KFPVSTRO.js → store-subagents-ZELQP3MX.js} +1 -1
  126. package/dist/chunks/{store-task-inbox-L53OT6ZC.js → store-task-inbox-4ZDQR2E7.js} +1 -1
  127. package/dist/chunks/{store-task-inventory-R2JJGAHW.js → store-task-inventory-CTIJDLYE.js} +1 -1
  128. package/dist/chunks/{store-taskset-drafts-FPNJPFPO.js → store-taskset-drafts-FRPBYLTW.js} +1 -1
  129. package/dist/chunks/{store-training-DIBW7OMP.js → store-training-WQAYUT7B.js} +1 -1
  130. package/dist/chunks/{store-training-jobs-K7I4SXWW.js → store-training-jobs-O5EHGTH7.js} +1 -1
  131. package/dist/chunks/{store-training-models-LCSB37YY.js → store-training-models-YSZMC66T.js} +1 -1
  132. package/dist/chunks/{taskset-XI5SJBJL.js → taskset-OVYM4QMS.js} +1 -1
  133. package/dist/chunks/{teams-bot-CYC5TR64.js → teams-bot-U2M3ORWR.js} +1 -1
  134. package/dist/chunks/{tool-learning-52QZIJIR.js → tool-learning-NXVR4YPA.js} +1 -1
  135. package/dist/chunks/{training-GDLLLXSV.js → training-EQ7G5FDY.js} +1 -1
  136. package/dist/chunks/{training-RL7UUBER.js → training-LQUAL4Y4.js} +1 -1
  137. package/dist/chunks/{training-UJ62NOJJ.js → training-PEZYJ2SN.js} +1 -1
  138. package/dist/chunks/{training-hosted-V5CHG3M3.js → training-hosted-XKSUTMLQ.js} +1 -1
  139. package/dist/chunks/{training-hosted-alphaedit-R5PVATV4.js → training-hosted-alphaedit-VCOEYLKK.js} +1 -1
  140. package/dist/chunks/{training-hosted-decision-WNK5DE3M.js → training-hosted-decision-IKWWXA56.js} +1 -1
  141. package/dist/chunks/{training-hosted-engram-ZQDOKXAV.js → training-hosted-engram-3TOPPVSW.js} +1 -1
  142. package/dist/chunks/{training-hosted-modification-comparison-KKI5CKOH.js → training-hosted-modification-comparison-C6S4JFHW.js} +1 -1
  143. package/dist/chunks/{training-hosted-neuron-training-CFWEDRSR.js → training-hosted-neuron-training-EP2U4PHG.js} +1 -1
  144. package/dist/chunks/{training-hosted-serving-report-N4NF5AVW.js → training-hosted-serving-report-KJMRZJLQ.js} +1 -1
  145. package/dist/chunks/{training-hosted-steering-4MDUQ2YV.js → training-hosted-steering-I27DV6A2.js} +1 -1
  146. package/dist/chunks/{training-model-start-NOA6TYQK.js → training-model-start-NWXNGRDC.js} +1 -1
  147. package/dist/chunks/{workspaces-EK62ANTB.js → workspaces-FVQYJPOS.js} +1 -1
  148. package/dist/cli.js +1 -1
  149. package/dist/skills/manifest.json +1 -1
  150. package/dist/web/assets/{App-L7RV4D0A.js → App-QM6Y2Eod.js} +4 -4
  151. package/dist/web/assets/{AppDialog-B2V84J7f.js → AppDialog-C8um481a.js} +1 -1
  152. package/dist/web/assets/{AppTerminalPanel-DfYpUDKT.js → AppTerminalPanel-OwNr-bp6.js} +2 -2
  153. package/dist/web/assets/{AppToastContext-DuiPouLz.js → AppToastContext-BQ4iRFif.js} +1 -1
  154. package/dist/web/assets/{AppsView-B20RHDCy.js → AppsView-mk8m_Cra.js} +1 -1
  155. package/dist/web/assets/{AttachmentTypeIcon-l-GRNxaz.js → AttachmentTypeIcon-SITPqTtF.js} +1 -1
  156. package/dist/web/assets/{BrowserSidebar-Ce0ToS2O.js → BrowserSidebar-BghdIKTB.js} +1 -1
  157. package/dist/web/assets/{CartesianChart-CtfMRAfp.js → CartesianChart-BdRx7q_O.js} +1 -1
  158. package/dist/web/assets/{ChatTimelineEntry-DzcucW20.js → ChatTimelineEntry-BBOnAzJB.js} +1 -1
  159. package/dist/web/assets/{CollaborationTabs-BpmKjNAC.js → CollaborationTabs-Beja-9s5.js} +1 -1
  160. package/dist/web/assets/{CommandMenu-JXsoxijv.js → CommandMenu-CQtrSUpu.js} +1 -1
  161. package/dist/web/assets/{CommunityView-ggdn8pcH.js → CommunityView-LPTAakS-.js} +1 -1
  162. package/dist/web/assets/{ComposerAttachments-BMmALUs_.js → ComposerAttachments-DI-Gr7Zw.js} +1 -1
  163. package/dist/web/assets/{ComposerCreateImproveStrip-DcM1bkfu.js → ComposerCreateImproveStrip-CY5Uw1yc.js} +1 -1
  164. package/dist/web/assets/{ConversationImportsSettings-BKNeARHI.js → ConversationImportsSettings-DFwhKERw.js} +1 -1
  165. package/dist/web/assets/{DatasetReviewImport-DyFOE0Q0.js → DatasetReviewImport-C9xraQk7.js} +1 -1
  166. package/dist/web/assets/{ExperimentTrainingDataWorkspace-CfOyoMrq.js → ExperimentTrainingDataWorkspace-Cx58S6R_.js} +2 -2
  167. package/dist/web/assets/{FilePagePreview-B7bWObJN.js → FilePagePreview-dlbmR8s8.js} +2 -2
  168. package/dist/web/assets/{GetStartedView-BYbFl93M.js → GetStartedView-BkTV_shK.js} +1 -1
  169. package/dist/web/assets/{GettingStartedDialog-UgreDozV.js → GettingStartedDialog-DulDLYnr.js} +1 -1
  170. package/dist/web/assets/{HostedModelLearningReview-C_kng2U_.js → HostedModelLearningReview--fXJEOfI.js} +1 -1
  171. package/dist/web/assets/{HostedModelLearningSettings-aesD_ifF.js → HostedModelLearningSettings-BEb7B_PC.js} +1 -1
  172. package/dist/web/assets/{HtmlVisual-nvl1x-jh.js → HtmlVisual-BS61T2qR.js} +1 -1
  173. package/dist/web/assets/{LabModelVersionDetailPage-DrdoNvI-.js → LabModelVersionDetailPage-CmzUIDbR.js} +1 -1
  174. package/dist/web/assets/{LabModelWorkspace-CHlhzG3q.js → LabModelWorkspace-DoAnQKWk.js} +1 -1
  175. package/dist/web/assets/{LabSkillSidebar-CqHeZzoj.js → LabSkillSidebar-DJTm7ZQs.js} +1 -1
  176. package/dist/web/assets/{LabsRoute-DzEbPpMK.js → LabsRoute-DNtBot4a.js} +4 -4
  177. package/dist/web/assets/{LearningBatchesPage-A2dFQW2j.js → LearningBatchesPage-C_oQjciE.js} +1 -1
  178. package/dist/web/assets/{MainChatThread-BSvKu4e5.js → MainChatThread-D9e-to8e.js} +2 -2
  179. package/dist/web/assets/{MainPane-DiWIAxMj.js → MainPane-mWeD0M-f.js} +6 -6
  180. package/dist/web/assets/{ModelProjectPageHeader-lu6iRXHK.js → ModelProjectPageHeader-BecKU_2p.js} +1 -1
  181. package/dist/web/assets/{NativeSetupTerminal-kZ-nFPE8.js → NativeSetupTerminal-DO0DN4fH.js} +2 -2
  182. package/dist/web/assets/{NativeSkillSidebar-DkkD1uH2.js → NativeSkillSidebar-jnxgQASC.js} +1 -1
  183. package/dist/web/assets/{NewProjectDialog-Dg8dMEpc.js → NewProjectDialog-ByHR4vMf.js} +1 -1
  184. package/dist/web/assets/{OutputsPage-Dz190U9t.js → OutputsPage-DZY4BUCy.js} +1 -1
  185. package/dist/web/assets/{PageChrome-Bncv-ps0.js → PageChrome-DjPuwWsn.js} +1 -1
  186. package/dist/web/assets/{ProjectsPage-DVkYvLtd.js → ProjectsPage-DKbwhIM4.js} +1 -1
  187. package/dist/web/assets/{RightChatPanelStack-CP4leenI.js → RightChatPanelStack-BARH0XuL.js} +1 -1
  188. package/dist/web/assets/RightSidebarHomePanel-qKL8dZrN.js +1 -0
  189. package/dist/web/assets/{ScheduledWorkPage-DI0mgt82.js → ScheduledWorkPage-CElrmRz9.js} +1 -1
  190. package/dist/web/assets/{SettingsView-cCtkr089.js → SettingsView-CsFSjE9s.js} +3 -3
  191. package/dist/web/assets/{TasksetDraftEditorPrimitives-DCQTuswJ.js → TasksetDraftEditorPrimitives-DJoYkvWq.js} +1 -1
  192. package/dist/web/assets/{TeamChatView-BBEomfQ7.js → TeamChatView-D9Y4e98Y.js} +1 -1
  193. package/dist/web/assets/{TerminalOverlay-Dj5NUDMp.js → TerminalOverlay-CUO8yZjy.js} +1 -1
  194. package/dist/web/assets/{TrainingCreationPanel-Ds4PLfsd.js → TrainingCreationPanel-_mnLQ1HA.js} +1 -1
  195. package/dist/web/assets/{TrainingDraftPanel-BAuh_BF3.js → TrainingDraftPanel-CCqQTHo5.js} +1 -1
  196. package/dist/web/assets/{UsageSettingsSection-DbzeatcW.js → UsageSettingsSection-CdWq5oYC.js} +1 -1
  197. package/dist/web/assets/WorkSidebarPanel-DRXaK-E6.js +1 -0
  198. package/dist/web/assets/{WorkspaceDiffPanel-xk-ve1MO.js → WorkspaceDiffPanel-CdHr8bX6.js} +3 -3
  199. package/dist/web/assets/{WorkspaceEnvironmentMenu-D8GSuoYz.js → WorkspaceEnvironmentMenu-BnUh4dg9.js} +1 -1
  200. package/dist/web/assets/{WorkspaceFileLocation-Dl8M2ZKN.js → WorkspaceFileLocation-VzrSq_Ki.js} +1 -1
  201. package/dist/web/assets/{WorkspaceGitDialogs-9BhLjYx4.js → WorkspaceGitDialogs-nwvQOm9r.js} +1 -1
  202. package/dist/web/assets/{WorkspaceMonacoEditor-DYPuC7pj.js → WorkspaceMonacoEditor-m3bCIpZe.js} +3 -3
  203. package/dist/web/assets/{WorkspacePdfPreview-B7BI9tLR.js → WorkspacePdfPreview-u6Iv0qr0.js} +2 -2
  204. package/dist/web/assets/{WorkspacePresentationPreview-sP7JUT7m.js → WorkspacePresentationPreview-CjvTjhUO.js} +1 -1
  205. package/dist/web/assets/{bot-D7M8ZtE6.js → bot-DiDSZBLn.js} +1 -1
  206. package/dist/web/assets/{chat-resources-DhKAnljP.js → chat-resources-CmBtWC5V.js} +1 -1
  207. package/dist/web/assets/chevron-down-CqxKXYPf.js +1 -0
  208. package/dist/web/assets/chevron-right-ClP6ukIq.js +1 -0
  209. package/dist/web/assets/chevron-up-DY7wpdJ1.js +1 -0
  210. package/dist/web/assets/{chunk-C3TS766N-DENE60SE.js → chunk-C3TS766N-DSA4vs-Y.js} +1 -1
  211. package/dist/web/assets/{client-gy7zrd7a.js → client-_uDCFdg5.js} +1 -1
  212. package/dist/web/assets/{client-choice-storage-DYZsrVr9.js → client-choice-storage-CRKZpilL.js} +1 -1
  213. package/dist/web/assets/{cloud-upload-De-XSMUr.js → cloud-upload-CWamjPts.js} +1 -1
  214. package/dist/web/assets/{copy-DEK20zbZ.js → copy-B56YjDkW.js} +1 -1
  215. package/dist/web/assets/{cssMode-Dau-Fhqf.js → cssMode-BuC9qQvo.js} +1 -1
  216. package/dist/web/assets/{external-link-DwDry0Fb.js → external-link-BSn21e-y.js} +1 -1
  217. package/dist/web/assets/{folder-open-DOb4AjV6.js → folder-open-CaJGWSr2.js} +1 -1
  218. package/dist/web/assets/{folder-plus-BAouDaXv.js → folder-plus-eTUep-az.js} +1 -1
  219. package/dist/web/assets/{git-commit-horizontal-DZbHXcai.js → git-commit-horizontal-Buk_hy6T.js} +1 -1
  220. package/dist/web/assets/{htmlMode-DlNEe6hu.js → htmlMode-D7kF2kDL.js} +1 -1
  221. package/dist/web/assets/{icons-OQhKVrDc.js → icons-B4B5eUyR.js} +1 -1
  222. package/dist/web/assets/{image-BkYJDChH.js → image--4h1aK2l.js} +1 -1
  223. package/dist/web/assets/{index-M_h2Ok4V.js → index-CCaTs7xt.js} +2 -2
  224. package/dist/web/assets/{info-Mj5lp4Ic.js → info-DjMTH4sJ.js} +1 -1
  225. package/dist/web/assets/{jsonMode-CyOEyonV.js → jsonMode-BVX_7KjE.js} +1 -1
  226. package/dist/web/assets/loader-circle-DNHvEoaP.js +1 -0
  227. package/dist/web/assets/{lspLanguageFeatures-DAYPzatg.js → lspLanguageFeatures-RBOb-3wX.js} +1 -1
  228. package/dist/web/assets/{maximize-2-BwFXSX6b.js → maximize-2-Cjg-f1xT.js} +1 -1
  229. package/dist/web/assets/{message-square-C2nqfNLn.js → message-square-oIMQDMc3.js} +1 -1
  230. package/dist/web/assets/{monaco.contribution-BZcNCJER.js → monaco.contribution-CIbGU5-C.js} +2 -2
  231. package/dist/web/assets/{monaco.contribution-KyLdVay7.js → monaco.contribution-CIwt2mTE.js} +2 -2
  232. package/dist/web/assets/{monaco.contribution-BZkfRhss.js → monaco.contribution-Dd1cPdSS.js} +2 -2
  233. package/dist/web/assets/{monaco.contribution-D7_X8TXe.js → monaco.contribution-KRLNg324.js} +2 -2
  234. package/dist/web/assets/{monitor-B0Qj5Wea.js → monitor-BWaitd6I.js} +1 -1
  235. package/dist/web/assets/{paperclip-CmrRruxi.js → paperclip-FYK6OySO.js} +1 -1
  236. package/dist/web/assets/{pdf-BM-9_48p.js → pdf-DbwlsqZP.js} +1 -1
  237. package/dist/web/assets/play-DieChKfF.js +1 -0
  238. package/dist/web/assets/plus-DkfcQyma.js +1 -0
  239. package/dist/web/assets/{presentation-BYxhoSIo.js → presentation-B6MaAPC7.js} +1 -1
  240. package/dist/web/assets/{python-B3Mj03I5.js → python-DRYJxjiM.js} +1 -1
  241. package/dist/web/assets/{refresh-cw-CwEmO71D.js → refresh-cw-DOVpqCfJ.js} +1 -1
  242. package/dist/web/assets/{save-S--FOuce.js → save-BuyyyR4Q.js} +1 -1
  243. package/dist/web/assets/{settings-lists-ChqDppMP.js → settings-lists-BeAdxSjx.js} +1 -1
  244. package/dist/web/assets/square-D0YnIVh6.js +1 -0
  245. package/dist/web/assets/{square-terminal-CawpQtCi.js → square-terminal-DTOIZy6_.js} +1 -1
  246. package/dist/web/assets/{submit-issue-command-CFitxxmO.js → submit-issue-command-V--K9lVQ.js} +1 -1
  247. package/dist/web/assets/{toggleHighContrast-D-cMCvXx.js → toggleHighContrast-nNzCoE0h.js} +1 -1
  248. package/dist/web/assets/training-DZgfVcI-.js +1 -0
  249. package/dist/web/assets/{training-model-data-G-D64935.js → training-model-data-CWoTokkb.js} +1 -1
  250. package/dist/web/assets/{tsMode-9kzS1ijG.js → tsMode-BfVi5_FZ.js} +1 -1
  251. package/dist/web/assets/{upload-CtYsSYrM.js → upload-C2MnlWjj.js} +1 -1
  252. package/dist/web/assets/{useAccountSettings-DYYa6puz.js → useAccountSettings-QwRbZIKu.js} +1 -1
  253. package/dist/web/assets/{useAgentInventory-c5B_Tszj.js → useAgentInventory-B7xEgMCA.js} +1 -1
  254. package/dist/web/assets/{useChatContextSelection-DOISZpTz.js → useChatContextSelection-O6wo4EqD.js} +1 -1
  255. package/dist/web/assets/{useLocalAgentSchedules-QJ8RsMKm.js → useLocalAgentSchedules-DpHnOGoV.js} +1 -1
  256. package/dist/web/assets/{useQuery-DuTGOe2b.js → useQuery-CvZ8bzdW.js} +1 -1
  257. package/dist/web/assets/{wifi-off-BOfP4Vmg.js → wifi-off-B8d12Alh.js} +1 -1
  258. package/dist/web/assets/{workers-BwGpyrdj.js → workers-sIVKxb8c.js} +1 -1
  259. package/dist/web/assets/x-BvVvVB-j.js +1 -0
  260. package/dist/web/assets/{yaml-BU4IWV_7.js → yaml-8-aLM3zj.js} +1 -1
  261. package/dist/web/index.html +1 -1
  262. package/package.json +1 -1
  263. package/dist/chunks/chunk-NK2L5HA2.js +0 -2
  264. package/dist/web/assets/RightSidebarHomePanel-C0etQXpt.js +0 -1
  265. package/dist/web/assets/WorkSidebarPanel-BaNuXoZc.js +0 -1
  266. package/dist/web/assets/chevron-down-BAEcJitl.js +0 -1
  267. package/dist/web/assets/chevron-right-3G9s2cQ9.js +0 -1
  268. package/dist/web/assets/chevron-up-DTYF52H1.js +0 -1
  269. package/dist/web/assets/loader-circle-DXVtGvuV.js +0 -1
  270. package/dist/web/assets/play-CkACZ6Zo.js +0 -1
  271. package/dist/web/assets/plus-CB258e62.js +0 -1
  272. package/dist/web/assets/square-BmPfHjGU.js +0 -1
  273. package/dist/web/assets/training-CzbWtx75.js +0 -1
  274. package/dist/web/assets/x-5_iy6IDd.js +0 -1
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{Ab as _,Bb as E,zb as F}from"./chunk-WXG3G2O6.js";import{a as L,b as j,c as H,d as w,e as b,f as S,g as y,l as k}from"./chunk-HVM2GUM3.js";import{e as x,f as R}from"./chunk-SV7ZBEK2.js";import{l as O,n as T}from"./chunk-RCT3O3HQ.js";import{h as g,p as A,r as C,s as N}from"./chunk-UGOK7VTC.js";import{a as r}from"./chunk-FTQLQJQV.js";import{promises as z}from"node:fs";import d from"node:path";import{randomUUID as J}from"node:crypto";import{promises as v}from"node:fs";import U from"node:path";function u(e){return{binding:r(()=>{let i=C(e.home,"refiner_bindings","active");return i?w.parse(i.value):null},"binding"),releases:r(async()=>{let i=(await v.readdir(e.releases)).filter(n=>n.endsWith(".json"));return Promise.all(i.map(async n=>H.parse(JSON.parse(await v.readFile(U.join(e.releases,n),"utf8")))))},"releases"),transitions:r(()=>Object.values(N(e.home,"refiner_transitions")).map(i=>b.parse(i.value)),"transitions"),release:r(async i=>{let n=H.parse(JSON.parse(await v.readFile(U.join(e.releases,`${i.contentHash}.json`),"utf8")));if(n.id!==i.id||n.contentHash!==i.contentHash)throw new Error("Refiner release reference does not match immutable release content.");return n},"release"),persistRelease:r(async i=>V(e.releases+`/${i.contentHash}.json`,O(i),!0),"persistRelease"),writeSource:r(async i=>V(e.source,i),"writeSource"),transition:r(async(i,n)=>{A(e.home,t=>{t.exec("BEGIN IMMEDIATE");try{let a=t.prepare("SELECT payload FROM refiner_bindings WHERE id = 'active'").get(),o=a?w.parse(JSON.parse(a.payload)):null,s=new Date().toISOString(),l={id:i.id,contentHash:i.contentHash},c={schemaVersion:"openpond.refinerTransitionReceipt.v1",id:`refiner-transition-${J()}`,operation:n.operation,bindingChanged:n.bindingChanged,previousRelease:o?.release??null,nextRelease:l,actor:n.actor,reason:n.reason,authoringSkillHash:n.authoringSkillHash,validation:{valid:!0,messages:[]},createdAt:s},p=b.parse({...c,contentHash:T(c)});if(t.prepare("INSERT INTO refiner_transitions VALUES (?, ?, 1)").run(p.contentHash,JSON.stringify(p)),n.bindingChanged){let m=w.parse({schemaVersion:"openpond.refinerBinding.v1",channel:"active",revision:(o?.revision??-1)+1,release:l,updatedAt:s});t.prepare("INSERT INTO refiner_bindings VALUES ('active', ?, 1) ON CONFLICT(id) DO UPDATE SET payload=excluded.payload, revision=revision+1").run(JSON.stringify(m))}t.exec("COMMIT")}catch(a){throw t.exec("ROLLBACK"),a}})},"transition")}}r(u,"createLocalRefinerProfileRepository");async function V(e,i,n=!1){await R(e,async()=>{if(n){let t=await v.readFile(e,"utf8").catch(()=>null);if(t!==null){if(t!==i)throw new Error("Immutable Refiner release bytes changed.");return}}await x(e,i)})}r(V,"atomicWrite");var B="OpenPond Refiner Core: evidence admission, privacy, ownership, validation, and immutable activation boundaries.";function P(e){let i=d.join(e,"library","refiners");return{home:e,root:i,source:d.join(i,"source","openpond.review.json"),releases:d.join(i,"releases")}}r(P,"refinerProfilePaths");function Re(e){let i=r(()=>f(e),"inspect"),n=r(o=>M(e,o),"update"),t=r(o=>q(e,o),"activate"),a=r(o=>G(e,o),"rollback");return{refinerHistoryPayload:i,updateRefinerProfilePayload:n,activateRefinerReleasePayload:t,rollbackRefinerReleasePayload:a,inspectRefiner:i,updateRefiner:n,activateRefiner:t,rollbackRefiner:a}}r(Re,"createRefinerProfileRoutePayloads");async function f(e){let i=P(e),n=u(i),t=n.binding();if(!t)throw new Error("Active Refiner binding is unavailable.");let a=(await n.releases()).sort((l,c)=>c.createdAt.localeCompare(l.createdAt)),o=a.find(l=>l.id===t.release.id&&l.contentHash===t.release.contentHash);if(!o)throw new Error("Active Refiner release is unavailable.");let s=n.transitions().sort((l,c)=>c.createdAt.localeCompare(l.createdAt));return F.parse({rootPath:i.root,sourcePath:i.source,binding:t,currentRelease:o,releases:a,transitions:s})}r(f,"inspectRefinerProfile");async function ue(e){return(await f(e)).currentRelease}r(ue,"loadActiveRefinerRelease");async function M(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>W(e,i))}r(M,"updateRefinerProfile");async function W(e,i){let n=_.parse(i),t=P(e),a=u(t);await I(t);let o=L.parse(n.profile),s=S({profile:o,coreVersion:k,corePrompt:B}),c=(await a.releases()).find(m=>m.composedPromptHash===s.composedPromptHash&&m.profileHash===s.profileHash)??s;await a.persistRelease(c),await a.writeSource(y(o));let p=a.binding();if(!p)throw new Error("Active Refiner binding is unavailable.");return n.activate&&p.release.contentHash===c.contentHash||!n.activate&&a.transitions().some(h=>!h.bindingChanged&&h.nextRelease.contentHash===c.contentHash&&h.actor===n.actor&&h.reason===n.reason&&h.authoringSkillHash===n.authoringSkillHash)||await a.transition(c,{operation:"update",bindingChanged:n.activate,actor:n.actor,reason:n.reason,authoringSkillHash:n.authoringSkillHash}),f(e)}r(W,"updateRefinerProfileUnlocked");async function q(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>$(e,i))}r(q,"activateRefinerRelease");async function $(e,i){let n=E.parse(i),t=P(e),a=u(t);await I(t);let o=await a.release(n.release),s=a.binding();if(!s)throw new Error("Active Refiner binding is unavailable.");return s.release.contentHash===o.contentHash||(await a.transition(o,{operation:"activate",bindingChanged:!0,actor:n.actor,reason:n.reason,authoringSkillHash:null}),await a.writeSource(y(o.profile))),f(e)}r($,"activateRefinerReleaseUnlocked");async function G(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>K(e,i))}r(G,"rollbackRefinerRelease");async function K(e,i){let n=E.parse(i),t=P(e),a=u(t);await I(t);let o=await a.release(n.release),s=a.binding();if(!s)throw new Error("Active Refiner binding is unavailable.");return s.release.contentHash===o.contentHash||(await a.transition(o,{operation:"rollback",bindingChanged:!0,actor:n.actor,reason:n.reason,authoringSkillHash:null}),await a.writeSource(y(o.profile))),f(e)}r(K,"rollbackRefinerReleaseUnlocked");async function Y(e){await R(d.join(g(e).runtime,"refiner-initialize"),()=>Q(P(e)))}r(Y,"initializeRefinerProfile");async function I(e){await Y(e.home)}r(I,"ensureInitialized");async function Q(e){let i=u(e);if(await Promise.all([z.mkdir(d.dirname(e.source),{recursive:!0,mode:448}),z.mkdir(e.releases,{recursive:!0,mode:448})]),i.binding())return;let n=S({profile:j,coreVersion:k,corePrompt:B});await i.persistRelease(n),await i.writeSource(y(n.profile)),await i.transition(n,{operation:"initialize",bindingChanged:!0,actor:"openpond",reason:"Initialize the default Refiner Review Profile.",authoringSkillHash:null})}r(Q,"initialize");export{u as a,P as b,Re as c,f as d,ue as e,M as f,q as g,G as h,Y as i};
2
+ import{Ab as _,Bb as E,zb as F}from"./chunk-2THZ6GZY.js";import{a as L,b as j,c as H,d as w,e as b,f as S,g as y,l as k}from"./chunk-HVM2GUM3.js";import{e as x,f as R}from"./chunk-SV7ZBEK2.js";import{l as O,n as T}from"./chunk-RCT3O3HQ.js";import{h as g,p as A,r as C,s as N}from"./chunk-UGOK7VTC.js";import{a as r}from"./chunk-FTQLQJQV.js";import{promises as z}from"node:fs";import d from"node:path";import{randomUUID as J}from"node:crypto";import{promises as v}from"node:fs";import U from"node:path";function u(e){return{binding:r(()=>{let i=C(e.home,"refiner_bindings","active");return i?w.parse(i.value):null},"binding"),releases:r(async()=>{let i=(await v.readdir(e.releases)).filter(n=>n.endsWith(".json"));return Promise.all(i.map(async n=>H.parse(JSON.parse(await v.readFile(U.join(e.releases,n),"utf8")))))},"releases"),transitions:r(()=>Object.values(N(e.home,"refiner_transitions")).map(i=>b.parse(i.value)),"transitions"),release:r(async i=>{let n=H.parse(JSON.parse(await v.readFile(U.join(e.releases,`${i.contentHash}.json`),"utf8")));if(n.id!==i.id||n.contentHash!==i.contentHash)throw new Error("Refiner release reference does not match immutable release content.");return n},"release"),persistRelease:r(async i=>V(e.releases+`/${i.contentHash}.json`,O(i),!0),"persistRelease"),writeSource:r(async i=>V(e.source,i),"writeSource"),transition:r(async(i,n)=>{A(e.home,t=>{t.exec("BEGIN IMMEDIATE");try{let a=t.prepare("SELECT payload FROM refiner_bindings WHERE id = 'active'").get(),o=a?w.parse(JSON.parse(a.payload)):null,s=new Date().toISOString(),l={id:i.id,contentHash:i.contentHash},c={schemaVersion:"openpond.refinerTransitionReceipt.v1",id:`refiner-transition-${J()}`,operation:n.operation,bindingChanged:n.bindingChanged,previousRelease:o?.release??null,nextRelease:l,actor:n.actor,reason:n.reason,authoringSkillHash:n.authoringSkillHash,validation:{valid:!0,messages:[]},createdAt:s},p=b.parse({...c,contentHash:T(c)});if(t.prepare("INSERT INTO refiner_transitions VALUES (?, ?, 1)").run(p.contentHash,JSON.stringify(p)),n.bindingChanged){let m=w.parse({schemaVersion:"openpond.refinerBinding.v1",channel:"active",revision:(o?.revision??-1)+1,release:l,updatedAt:s});t.prepare("INSERT INTO refiner_bindings VALUES ('active', ?, 1) ON CONFLICT(id) DO UPDATE SET payload=excluded.payload, revision=revision+1").run(JSON.stringify(m))}t.exec("COMMIT")}catch(a){throw t.exec("ROLLBACK"),a}})},"transition")}}r(u,"createLocalRefinerProfileRepository");async function V(e,i,n=!1){await R(e,async()=>{if(n){let t=await v.readFile(e,"utf8").catch(()=>null);if(t!==null){if(t!==i)throw new Error("Immutable Refiner release bytes changed.");return}}await x(e,i)})}r(V,"atomicWrite");var B="OpenPond Refiner Core: evidence admission, privacy, ownership, validation, and immutable activation boundaries.";function P(e){let i=d.join(e,"library","refiners");return{home:e,root:i,source:d.join(i,"source","openpond.review.json"),releases:d.join(i,"releases")}}r(P,"refinerProfilePaths");function Re(e){let i=r(()=>f(e),"inspect"),n=r(o=>M(e,o),"update"),t=r(o=>q(e,o),"activate"),a=r(o=>G(e,o),"rollback");return{refinerHistoryPayload:i,updateRefinerProfilePayload:n,activateRefinerReleasePayload:t,rollbackRefinerReleasePayload:a,inspectRefiner:i,updateRefiner:n,activateRefiner:t,rollbackRefiner:a}}r(Re,"createRefinerProfileRoutePayloads");async function f(e){let i=P(e),n=u(i),t=n.binding();if(!t)throw new Error("Active Refiner binding is unavailable.");let a=(await n.releases()).sort((l,c)=>c.createdAt.localeCompare(l.createdAt)),o=a.find(l=>l.id===t.release.id&&l.contentHash===t.release.contentHash);if(!o)throw new Error("Active Refiner release is unavailable.");let s=n.transitions().sort((l,c)=>c.createdAt.localeCompare(l.createdAt));return F.parse({rootPath:i.root,sourcePath:i.source,binding:t,currentRelease:o,releases:a,transitions:s})}r(f,"inspectRefinerProfile");async function ue(e){return(await f(e)).currentRelease}r(ue,"loadActiveRefinerRelease");async function M(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>W(e,i))}r(M,"updateRefinerProfile");async function W(e,i){let n=_.parse(i),t=P(e),a=u(t);await I(t);let o=L.parse(n.profile),s=S({profile:o,coreVersion:k,corePrompt:B}),c=(await a.releases()).find(m=>m.composedPromptHash===s.composedPromptHash&&m.profileHash===s.profileHash)??s;await a.persistRelease(c),await a.writeSource(y(o));let p=a.binding();if(!p)throw new Error("Active Refiner binding is unavailable.");return n.activate&&p.release.contentHash===c.contentHash||!n.activate&&a.transitions().some(h=>!h.bindingChanged&&h.nextRelease.contentHash===c.contentHash&&h.actor===n.actor&&h.reason===n.reason&&h.authoringSkillHash===n.authoringSkillHash)||await a.transition(c,{operation:"update",bindingChanged:n.activate,actor:n.actor,reason:n.reason,authoringSkillHash:n.authoringSkillHash}),f(e)}r(W,"updateRefinerProfileUnlocked");async function q(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>$(e,i))}r(q,"activateRefinerRelease");async function $(e,i){let n=E.parse(i),t=P(e),a=u(t);await I(t);let o=await a.release(n.release),s=a.binding();if(!s)throw new Error("Active Refiner binding is unavailable.");return s.release.contentHash===o.contentHash||(await a.transition(o,{operation:"activate",bindingChanged:!0,actor:n.actor,reason:n.reason,authoringSkillHash:null}),await a.writeSource(y(o.profile))),f(e)}r($,"activateRefinerReleaseUnlocked");async function G(e,i){return R(d.join(g(e).runtime,"refiner-edit"),()=>K(e,i))}r(G,"rollbackRefinerRelease");async function K(e,i){let n=E.parse(i),t=P(e),a=u(t);await I(t);let o=await a.release(n.release),s=a.binding();if(!s)throw new Error("Active Refiner binding is unavailable.");return s.release.contentHash===o.contentHash||(await a.transition(o,{operation:"rollback",bindingChanged:!0,actor:n.actor,reason:n.reason,authoringSkillHash:null}),await a.writeSource(y(o.profile))),f(e)}r(K,"rollbackRefinerReleaseUnlocked");async function Y(e){await R(d.join(g(e).runtime,"refiner-initialize"),()=>Q(P(e)))}r(Y,"initializeRefinerProfile");async function I(e){await Y(e.home)}r(I,"ensureInitialized");async function Q(e){let i=u(e);if(await Promise.all([z.mkdir(d.dirname(e.source),{recursive:!0,mode:448}),z.mkdir(e.releases,{recursive:!0,mode:448})]),i.binding())return;let n=S({profile:j,coreVersion:k,corePrompt:B});await i.persistRelease(n),await i.writeSource(y(n.profile)),await i.transition(n,{operation:"initialize",bindingChanged:!0,actor:"openpond",reason:"Initialize the default Refiner Review Profile.",authoringSkillHash:null})}r(Q,"initialize");export{u as a,P as b,Re as c,f as d,ue as e,M as f,q as g,G as h,Y as i};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{c as D}from"./chunk-IR3YJWPW.js";import{Wb as G}from"./chunk-WXG3G2O6.js";import{b as $,c as z,d as H,e as V,f as R,g as U}from"./chunk-I6VMRQF4.js";import{Q as P,S as Q}from"./chunk-ZEOYNUHL.js";import{fb as q,v,x as T}from"./chunk-ZY32SZ2P.js";import{n as E}from"./chunk-RCT3O3HQ.js";import{A as n}from"./chunk-X2J2P5ZT.js";import{a}from"./chunk-FTQLQJQV.js";async function K(e){let t=F(await e),[o,c,{QuickJSWASMModule:w}]=await Promise.all([t.importModuleLoader().then(F),t.importFFI(),import("./module-ES6BEMUI-ZVL3F6NW.js").then(F)]),l=await o();l.type="sync";let s=new c(l);return new w(l,s)}a(K,"newQuickJSWASMModuleFromVariant");function F(e){return e&&"default"in e&&e.default?e.default&&"default"in e.default&&e.default.default?e.default.default:e.default:e}a(F,"smartUnwrap");var k=class extends Error{static{a(this,"JavaScriptIsolateExecutionError")}constructor(t){super(t),this.name="JavaScriptIsolateExecutionError"}};async function O(e,t){te(e),e.signal?.throwIfAborted();let o=a(s=>new Error(`${e.errorPrefix}_${s}`),"error"),c=Date.now()+e.timeoutMs,{default:w}=await import("./dist-SKYG5LZO.js");e.signal?.throwIfAborted();let l=await K(w);e.signal?.throwIfAborted();try{return D.withScope(s=>{let m=s.manage(l.newRuntime());m.setMemoryLimit(33554432),m.setMaxStackSize(262144),m.setInterruptHandler(()=>Date.now()>=c||e.signal?.aborted===!0);let i=s.manage(m.newContext());t&&(c=Date.now()+e.timeoutMs,t.onExecutionReady()),e.deterministic&&s.manage(i.unwrapResult(i.evalCode("globalThis.Date = undefined; Math.random = () => { throw new Error('environment_random_requires_explicit_seed'); };")));let r=s.manage(i.unwrapResult(i.evalCode("JSON.stringify"))),p=s.manage(i.unwrapResult(i.evalCode(`JSON.parse(${JSON.stringify(JSON.stringify(e.value))})`))),S=s.manage(i.unwrapResult(i.evalCode(e.source,`${e.errorPrefix}.mjs`,{type:"module"}))),M=s.manage(X(i,S,c,e.signal,o)),g=s.manage(i.getProp(M,e.exportName));if(i.typeof(g)!=="function")throw o("function_export_missing");let b=s.manage(i.unwrapResult(i.callFunction(g,i.undefined,p))),d=s.manage(X(i,b,c,e.signal,o)),h=s.manage(i.unwrapResult(i.callFunction(r,i.undefined,d)));if(i.typeof(h)!=="string")throw o("result_not_json");let y=i.getString(h);if(new TextEncoder().encode(y).byteLength>e.maxResultBytes)throw o("result_too_large");if(e.signal?.throwIfAborted(),Date.now()>=c)throw o("timeout");let f=JSON.parse(y);return v(f,e.maxResultBytes),f})}catch(s){throw e.signal?.throwIfAborted(),new k(s instanceof Error?s.message:"JavaScript execution failed.")}}a(O,"executeJavaScriptIsolate");function te(e){if(!Number.isInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e5)throw new Error(`${e.errorPrefix}_timeout_invalid`);if(!Number.isInteger(e.maxResultBytes)||e.maxResultBytes<1||e.maxResultBytes>4194304)throw new Error(`${e.errorPrefix}_result_limit_invalid`);if(new TextEncoder().encode(e.source).byteLength>524288)throw new Error(`${e.errorPrefix}_source_too_large`);v(e.value,4194304)}a(te,"validateJavaScriptIsolateInput");function X(e,t,o,c,w){for(;;){if(c?.throwIfAborted(),Date.now()>=o)throw w("timeout");let l=e.getPromiseState(t);if(l.type==="fulfilled")return l.notAPromise?l.value.dup():l.value;if(l.type==="rejected")return e.unwrapResult(l);if(e.runtime.executePendingJobs(1).unwrap()===0)throw w("unresolved_promise")}}a(X,"settle");function I(e,t){let o=t.scope==="arguments"?e.action?.arguments:e[t.scope];for(let c of t.path){if(!o||typeof o!="object"||!Object.hasOwn(o,c))throw new Error("environment_service_reference_missing");o=o[c]}return o}a(I,"resolveValue");async function Y(e,t){if(!e.executionServices?.length)return t.controller(e);if(!Number.isSafeInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e4)throw new Error("environment_timeout_invalid");v(e.value,4194304);let o=e.executionServices.map(m=>z.parse(m));if(o.length>16)throw new Error("environment_service_limit");if(new Set(o.map(m=>m.id)).size!==o.length)throw new Error("environment_service_identity_collision");let c=Date.now(),w=new AbortController,l=e.signal?AbortSignal.any([e.signal,w.signal]):w.signal,s=setTimeout(()=>w.abort(new Error("environment_timeout")),e.timeoutMs);try{let m=Object.create(null);for(let r of o){if(l.throwIfAborted(),r.operation!==e.operation||r.operation==="step"&&r.toolName!==e.value.action?.name)throw new Error("environment_service_operation_mismatch");let p=Math.min(r.timeoutMs,e.timeoutMs-(Date.now()-c));if(p<1)throw new Error("environment_timeout");let S=new AbortController,M=AbortSignal.any([l,S.signal]),g=setTimeout(()=>S.abort(new Error("environment_service_timeout")),p),b=Date.now();try{if(r.kind==="sqlite.v1"){if(!t.sql)throw new Error("environment_sql_executor_required");let d=I(e.value,r.sql);if(typeof d!="string"||!d.length||new TextEncoder().encode(d).byteLength>65536||d.includes("\0")){m[r.id]={status:"rejected",code:"invalid_submission"};continue}let h=$({schemaVersion:"openpond.sqlExecution.v1",snapshot:I(e.value,r.snapshot),sql:d,maxRows:r.maxRows,maxResultBytes:r.maxResultBytes});m[r.id]=await t.sql({request:h,timeoutMs:e.timeoutMs,signal:M})}else{let d=I(e.value,r.source),h=I(e.value,r.cases);if(typeof d!="string"||new TextEncoder().encode(d).byteLength>524288){m[r.id]={status:"rejected",code:"invalid_submission"};continue}if(!Array.isArray(h)||!h.length||h.length>r.maxCases||h.some(f=>!f||typeof f!="object"||!Object.hasOwn(f,"input")))throw new Error("environment_service_cases_invalid");let y=[];for(let f of h){let u=p-(Date.now()-b);if(u<1&&(S.abort(new Error("environment_service_timeout")),M.throwIfAborted()),y.push(await t.candidate({source:d,exportName:r.exportName,value:structuredClone(f.input),timeoutMs:Math.max(1,u),maxResultBytes:r.maxResultBytes,deterministic:!0,errorPrefix:"candidate",signal:M})),new TextEncoder().encode(JSON.stringify({status:"completed",cases:y})).byteLength>r.maxResultBytes)throw new k("candidate_result_too_large")}m[r.id]={status:"completed",cases:y}}}catch(d){if(l.throwIfAborted(),S.signal.aborted)m[r.id]={status:"rejected",code:"timeout"};else if(d instanceof k)m[r.id]={status:"rejected",code:"execution_failed"};else throw d}finally{clearTimeout(g)}}l.throwIfAborted();let i=e.timeoutMs-(Date.now()-c);if(i<1)throw new Error("environment_timeout");return await t.controller({...e,executionServices:void 0,value:{...e.value,services:m},timeoutMs:i,signal:l})}finally{clearTimeout(s)}}a(Y,"executeEnvironmentWithServices");async function re(e){let t=V.parse(e.operation);return Y(e,{candidate:O,controller:a(async o=>R.parse(await O({...o,exportName:t,maxResultBytes:1572864,deterministic:!0,errorPrefix:"environment"})),"controller")})}a(re,"executeJavaScriptEnvironment");var J=class extends Error{static{a(this,"JavaScriptEnvironmentActionError")}code;constructor(t){super(`environment_${t}`),this.code=t,this.name="JavaScriptEnvironmentActionError"}};async function Qe(e){let t=U(e.definition),o=Q(e.asset,t.module);if(!Number.isSafeInteger(e.seed))throw new Error("environment_seed_invalid");let c=e.seed;v(e.input,1048576),v(e.initialState,t.maxStateBytes);let w=structuredClone(e.input),l=structuredClone(e.initialState),s=e.execute??re,m=new AbortController,i=e.signal?AbortSignal.any([e.signal,m.signal]):m.signal,r={},p=0,S=!1,M=!1,g=null,b=[],d=null;async function h(f,u){if(S||M)throw new Error("environment_closed");if(g)throw new Error("environment_operation_in_progress");i.throwIfAborted(),u&&(v(u,262144),u=structuredClone(u));let L=E(r),_=u?t.tools.find(x=>x.name===u.name):null;if(f==="step"){if(p>=t.maxSteps)throw new J("step_budget_exhausted");p++}let j=a((x,C)=>b.push({sequence:b.length,operation:f,toolName:u?.name??null,arguments:u?structuredClone(u.arguments):null,observation:x,beforeStateHash:L,afterStateHash:E(r),error:C}),"record");try{if(u&&!_)throw new J("unknown_tool");if(u&&_&&!T(_.inputSchema,u.arguments).valid)throw new J("invalid_arguments");let x=t.executionServices?.filter(N=>N.operation===f&&(f!=="step"||N.toolName===u?.name)),C=s({source:o,operation:f,value:{input:w,initialState:l,seed:c,state:structuredClone(r),sequence:p,action:u?structuredClone(u):null},timeoutMs:Math.min(t.operationTimeoutMs,_?.timeoutMs??t.operationTimeoutMs),signal:i,...x?.length?{executionServices:x}:{}});g=C;let A=R.parse(await C);if(i.throwIfAborted(),v(A.state,t.maxStateBytes),v(A.observation,t.maxObservationBytes),(f==="collect"||_?.sideEffect==="read")&&E(A.state)!==L)throw new Error("environment_read_changed_state");r=structuredClone(A.state);let B=structuredClone(A.observation);return j(B,null),{state:structuredClone(r),observation:B}}catch(x){throw j(null,x instanceof Error?x.message:"environment_execution_failed"),x}finally{g=null}}a(h,"invoke");async function y(){return d||(M=!0,m.abort(new Error("environment_destroyed")),d=(async()=>{try{try{await g}catch{}await s({source:o,operation:"destroy",value:{input:w,initialState:l,seed:c,state:structuredClone(r),sequence:p,action:null},timeoutMs:t.operationTimeoutMs})}finally{r={},S=!0}})(),d)}a(y,"destroy");try{await h("create");let f=await h("reset"),u=E(r),L=a(()=>{if(S)throw new Error("environment_closed");return{definition:{id:t.id,revision:t.revision,contentHash:t.contentHash},inputHash:E(w),seed:c,initialStateHash:u,finalStateHash:E(r),state:structuredClone(r),events:structuredClone(b)}},"snapshot");return{definition:structuredClone(t),observation:f.observation,async step(_){return(await h("step",_)).observation},async collect(){let _=await h("collect");return{...L(),observation:_.observation}},snapshot:L,destroy:y}}catch(f){try{await y()}catch{}throw f}}a(Qe,"createJavaScriptEnvironmentSession");var ne=n.string().trim().min(1).max(500),oe=n.string().regex(/^[a-f0-9]{64}$/),W=n.object({kind:n.literal("model"),id:n.string().trim().min(1).max(191),taskId:ne,admissionHash:oe,model:G,instructions:n.string().max(262144),harness:q.optional(),input:n.record(n.string(),n.unknown()),policyVisibleContext:n.record(n.string(),n.unknown()),timeoutMs:n.number().int().positive().max(36e5),environment:n.discriminatedUnion("kind",[n.object({kind:n.literal("text")}).strict(),n.object({kind:n.literal("javascript"),definition:H,asset:P,initialState:n.record(n.string(),n.unknown()),seed:n.number().int().safe()}).strict()])}).strict(),Ye=n.discriminatedUnion("kind",[W,n.object({kind:n.literal("profile"),request:n.unknown()}).strict()]);var Z=n.string().trim().min(1).max(200),mt=n.object({receiptId:Z,taskId:Z,seed:n.string(),request:W}).strict(),ee=class extends Error{constructor(o,c,w=409){super(c);this.code=o;this.status=w}code;status;static{a(this,"LocalExperimentError")}};export{k as a,te as b,Y as c,J as d,Qe as e,W as f,Ye as g,ee as h};
2
+ import{c as D}from"./chunk-IR3YJWPW.js";import{Wb as G}from"./chunk-2THZ6GZY.js";import{b as $,c as z,d as H,e as V,f as R,g as U}from"./chunk-I6VMRQF4.js";import{Q as P,S as Q}from"./chunk-ZEOYNUHL.js";import{fb as q,v,x as T}from"./chunk-ZY32SZ2P.js";import{n as E}from"./chunk-RCT3O3HQ.js";import{A as n}from"./chunk-X2J2P5ZT.js";import{a}from"./chunk-FTQLQJQV.js";async function K(e){let t=F(await e),[o,c,{QuickJSWASMModule:w}]=await Promise.all([t.importModuleLoader().then(F),t.importFFI(),import("./module-ES6BEMUI-ZVL3F6NW.js").then(F)]),l=await o();l.type="sync";let s=new c(l);return new w(l,s)}a(K,"newQuickJSWASMModuleFromVariant");function F(e){return e&&"default"in e&&e.default?e.default&&"default"in e.default&&e.default.default?e.default.default:e.default:e}a(F,"smartUnwrap");var k=class extends Error{static{a(this,"JavaScriptIsolateExecutionError")}constructor(t){super(t),this.name="JavaScriptIsolateExecutionError"}};async function O(e,t){te(e),e.signal?.throwIfAborted();let o=a(s=>new Error(`${e.errorPrefix}_${s}`),"error"),c=Date.now()+e.timeoutMs,{default:w}=await import("./dist-SKYG5LZO.js");e.signal?.throwIfAborted();let l=await K(w);e.signal?.throwIfAborted();try{return D.withScope(s=>{let m=s.manage(l.newRuntime());m.setMemoryLimit(33554432),m.setMaxStackSize(262144),m.setInterruptHandler(()=>Date.now()>=c||e.signal?.aborted===!0);let i=s.manage(m.newContext());t&&(c=Date.now()+e.timeoutMs,t.onExecutionReady()),e.deterministic&&s.manage(i.unwrapResult(i.evalCode("globalThis.Date = undefined; Math.random = () => { throw new Error('environment_random_requires_explicit_seed'); };")));let r=s.manage(i.unwrapResult(i.evalCode("JSON.stringify"))),p=s.manage(i.unwrapResult(i.evalCode(`JSON.parse(${JSON.stringify(JSON.stringify(e.value))})`))),S=s.manage(i.unwrapResult(i.evalCode(e.source,`${e.errorPrefix}.mjs`,{type:"module"}))),M=s.manage(X(i,S,c,e.signal,o)),g=s.manage(i.getProp(M,e.exportName));if(i.typeof(g)!=="function")throw o("function_export_missing");let b=s.manage(i.unwrapResult(i.callFunction(g,i.undefined,p))),d=s.manage(X(i,b,c,e.signal,o)),h=s.manage(i.unwrapResult(i.callFunction(r,i.undefined,d)));if(i.typeof(h)!=="string")throw o("result_not_json");let y=i.getString(h);if(new TextEncoder().encode(y).byteLength>e.maxResultBytes)throw o("result_too_large");if(e.signal?.throwIfAborted(),Date.now()>=c)throw o("timeout");let f=JSON.parse(y);return v(f,e.maxResultBytes),f})}catch(s){throw e.signal?.throwIfAborted(),new k(s instanceof Error?s.message:"JavaScript execution failed.")}}a(O,"executeJavaScriptIsolate");function te(e){if(!Number.isInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e5)throw new Error(`${e.errorPrefix}_timeout_invalid`);if(!Number.isInteger(e.maxResultBytes)||e.maxResultBytes<1||e.maxResultBytes>4194304)throw new Error(`${e.errorPrefix}_result_limit_invalid`);if(new TextEncoder().encode(e.source).byteLength>524288)throw new Error(`${e.errorPrefix}_source_too_large`);v(e.value,4194304)}a(te,"validateJavaScriptIsolateInput");function X(e,t,o,c,w){for(;;){if(c?.throwIfAborted(),Date.now()>=o)throw w("timeout");let l=e.getPromiseState(t);if(l.type==="fulfilled")return l.notAPromise?l.value.dup():l.value;if(l.type==="rejected")return e.unwrapResult(l);if(e.runtime.executePendingJobs(1).unwrap()===0)throw w("unresolved_promise")}}a(X,"settle");function I(e,t){let o=t.scope==="arguments"?e.action?.arguments:e[t.scope];for(let c of t.path){if(!o||typeof o!="object"||!Object.hasOwn(o,c))throw new Error("environment_service_reference_missing");o=o[c]}return o}a(I,"resolveValue");async function Y(e,t){if(!e.executionServices?.length)return t.controller(e);if(!Number.isSafeInteger(e.timeoutMs)||e.timeoutMs<1||e.timeoutMs>3e4)throw new Error("environment_timeout_invalid");v(e.value,4194304);let o=e.executionServices.map(m=>z.parse(m));if(o.length>16)throw new Error("environment_service_limit");if(new Set(o.map(m=>m.id)).size!==o.length)throw new Error("environment_service_identity_collision");let c=Date.now(),w=new AbortController,l=e.signal?AbortSignal.any([e.signal,w.signal]):w.signal,s=setTimeout(()=>w.abort(new Error("environment_timeout")),e.timeoutMs);try{let m=Object.create(null);for(let r of o){if(l.throwIfAborted(),r.operation!==e.operation||r.operation==="step"&&r.toolName!==e.value.action?.name)throw new Error("environment_service_operation_mismatch");let p=Math.min(r.timeoutMs,e.timeoutMs-(Date.now()-c));if(p<1)throw new Error("environment_timeout");let S=new AbortController,M=AbortSignal.any([l,S.signal]),g=setTimeout(()=>S.abort(new Error("environment_service_timeout")),p),b=Date.now();try{if(r.kind==="sqlite.v1"){if(!t.sql)throw new Error("environment_sql_executor_required");let d=I(e.value,r.sql);if(typeof d!="string"||!d.length||new TextEncoder().encode(d).byteLength>65536||d.includes("\0")){m[r.id]={status:"rejected",code:"invalid_submission"};continue}let h=$({schemaVersion:"openpond.sqlExecution.v1",snapshot:I(e.value,r.snapshot),sql:d,maxRows:r.maxRows,maxResultBytes:r.maxResultBytes});m[r.id]=await t.sql({request:h,timeoutMs:e.timeoutMs,signal:M})}else{let d=I(e.value,r.source),h=I(e.value,r.cases);if(typeof d!="string"||new TextEncoder().encode(d).byteLength>524288){m[r.id]={status:"rejected",code:"invalid_submission"};continue}if(!Array.isArray(h)||!h.length||h.length>r.maxCases||h.some(f=>!f||typeof f!="object"||!Object.hasOwn(f,"input")))throw new Error("environment_service_cases_invalid");let y=[];for(let f of h){let u=p-(Date.now()-b);if(u<1&&(S.abort(new Error("environment_service_timeout")),M.throwIfAborted()),y.push(await t.candidate({source:d,exportName:r.exportName,value:structuredClone(f.input),timeoutMs:Math.max(1,u),maxResultBytes:r.maxResultBytes,deterministic:!0,errorPrefix:"candidate",signal:M})),new TextEncoder().encode(JSON.stringify({status:"completed",cases:y})).byteLength>r.maxResultBytes)throw new k("candidate_result_too_large")}m[r.id]={status:"completed",cases:y}}}catch(d){if(l.throwIfAborted(),S.signal.aborted)m[r.id]={status:"rejected",code:"timeout"};else if(d instanceof k)m[r.id]={status:"rejected",code:"execution_failed"};else throw d}finally{clearTimeout(g)}}l.throwIfAborted();let i=e.timeoutMs-(Date.now()-c);if(i<1)throw new Error("environment_timeout");return await t.controller({...e,executionServices:void 0,value:{...e.value,services:m},timeoutMs:i,signal:l})}finally{clearTimeout(s)}}a(Y,"executeEnvironmentWithServices");async function re(e){let t=V.parse(e.operation);return Y(e,{candidate:O,controller:a(async o=>R.parse(await O({...o,exportName:t,maxResultBytes:1572864,deterministic:!0,errorPrefix:"environment"})),"controller")})}a(re,"executeJavaScriptEnvironment");var J=class extends Error{static{a(this,"JavaScriptEnvironmentActionError")}code;constructor(t){super(`environment_${t}`),this.code=t,this.name="JavaScriptEnvironmentActionError"}};async function Qe(e){let t=U(e.definition),o=Q(e.asset,t.module);if(!Number.isSafeInteger(e.seed))throw new Error("environment_seed_invalid");let c=e.seed;v(e.input,1048576),v(e.initialState,t.maxStateBytes);let w=structuredClone(e.input),l=structuredClone(e.initialState),s=e.execute??re,m=new AbortController,i=e.signal?AbortSignal.any([e.signal,m.signal]):m.signal,r={},p=0,S=!1,M=!1,g=null,b=[],d=null;async function h(f,u){if(S||M)throw new Error("environment_closed");if(g)throw new Error("environment_operation_in_progress");i.throwIfAborted(),u&&(v(u,262144),u=structuredClone(u));let L=E(r),_=u?t.tools.find(x=>x.name===u.name):null;if(f==="step"){if(p>=t.maxSteps)throw new J("step_budget_exhausted");p++}let j=a((x,C)=>b.push({sequence:b.length,operation:f,toolName:u?.name??null,arguments:u?structuredClone(u.arguments):null,observation:x,beforeStateHash:L,afterStateHash:E(r),error:C}),"record");try{if(u&&!_)throw new J("unknown_tool");if(u&&_&&!T(_.inputSchema,u.arguments).valid)throw new J("invalid_arguments");let x=t.executionServices?.filter(N=>N.operation===f&&(f!=="step"||N.toolName===u?.name)),C=s({source:o,operation:f,value:{input:w,initialState:l,seed:c,state:structuredClone(r),sequence:p,action:u?structuredClone(u):null},timeoutMs:Math.min(t.operationTimeoutMs,_?.timeoutMs??t.operationTimeoutMs),signal:i,...x?.length?{executionServices:x}:{}});g=C;let A=R.parse(await C);if(i.throwIfAborted(),v(A.state,t.maxStateBytes),v(A.observation,t.maxObservationBytes),(f==="collect"||_?.sideEffect==="read")&&E(A.state)!==L)throw new Error("environment_read_changed_state");r=structuredClone(A.state);let B=structuredClone(A.observation);return j(B,null),{state:structuredClone(r),observation:B}}catch(x){throw j(null,x instanceof Error?x.message:"environment_execution_failed"),x}finally{g=null}}a(h,"invoke");async function y(){return d||(M=!0,m.abort(new Error("environment_destroyed")),d=(async()=>{try{try{await g}catch{}await s({source:o,operation:"destroy",value:{input:w,initialState:l,seed:c,state:structuredClone(r),sequence:p,action:null},timeoutMs:t.operationTimeoutMs})}finally{r={},S=!0}})(),d)}a(y,"destroy");try{await h("create");let f=await h("reset"),u=E(r),L=a(()=>{if(S)throw new Error("environment_closed");return{definition:{id:t.id,revision:t.revision,contentHash:t.contentHash},inputHash:E(w),seed:c,initialStateHash:u,finalStateHash:E(r),state:structuredClone(r),events:structuredClone(b)}},"snapshot");return{definition:structuredClone(t),observation:f.observation,async step(_){return(await h("step",_)).observation},async collect(){let _=await h("collect");return{...L(),observation:_.observation}},snapshot:L,destroy:y}}catch(f){try{await y()}catch{}throw f}}a(Qe,"createJavaScriptEnvironmentSession");var ne=n.string().trim().min(1).max(500),oe=n.string().regex(/^[a-f0-9]{64}$/),W=n.object({kind:n.literal("model"),id:n.string().trim().min(1).max(191),taskId:ne,admissionHash:oe,model:G,instructions:n.string().max(262144),harness:q.optional(),input:n.record(n.string(),n.unknown()),policyVisibleContext:n.record(n.string(),n.unknown()),timeoutMs:n.number().int().positive().max(36e5),environment:n.discriminatedUnion("kind",[n.object({kind:n.literal("text")}).strict(),n.object({kind:n.literal("javascript"),definition:H,asset:P,initialState:n.record(n.string(),n.unknown()),seed:n.number().int().safe()}).strict()])}).strict(),Ye=n.discriminatedUnion("kind",[W,n.object({kind:n.literal("profile"),request:n.unknown()}).strict()]);var Z=n.string().trim().min(1).max(200),mt=n.object({receiptId:Z,taskId:Z,seed:n.string(),request:W}).strict(),ee=class extends Error{constructor(o,c,w=409){super(c);this.code=o;this.status=w}code;status;static{a(this,"LocalExperimentError")}};export{k as a,te as b,Y as c,J as d,Qe as e,W as f,Ye as g,ee as h};
@@ -1,2 +1,2 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{a as m}from"./chunk-DMFUEUAZ.js";import{a as c}from"./chunk-U7D6Q744.js";import{t as p}from"./chunk-WXG3G2O6.js";import{I as i,L as d}from"./chunk-2MEOUS24.js";import{a as n}from"./chunk-FTQLQJQV.js";async function r(e,o){return(await e.allPayloadRows(`SELECT payload FROM ${o} ORDER BY sort_index ASC`)).map(t=>JSON.parse(t.payload))}n(r,"readStorePayloads");function S(e){let o=e,a=d.safeParse(o.openPondCommandAccessMode);return{...o,experience:l(o),openPondCommandAccessMode:a.success?a.data:i,currentProfile:o.currentProfile??null}}n(S,"normalizeSessionPayload");function l(e){let o=p.safeParse(e.experience);return o.success?o.data:!!(e.provider==="codex"||e.codexThreadId||e.systemKind||e.parentSessionId||e.subagentRunId||e.appId||e.workspaceKind||e.workspaceId||e.localProjectId||e.cloudProjectId)?"development":"chat"}n(l,"storedSessionExperience");async function E(e){return{sessions:(await r(e,"sessions")).map(S),turns:await r(e,"turns"),approvals:await r(e,"approvals")}}n(E,"readStoreMetadata");async function T(e){return{...await E(e),events:(await r(e,"events")).map(m)}}n(T,"readStoreData");async function D(e,o){let a=c();await o.exec("BEGIN IMMEDIATE");try{await o.exec("DELETE FROM approvals; DELETE FROM events; DELETE FROM turns; DELETE FROM sessions;");for(let[t,s]of e.sessions.entries())await o.run("INSERT INTO sessions (id, sort_index, payload, updated_at) VALUES (?, ?, ?, ?)",[s.id,t,JSON.stringify(s),s.updatedAt]);for(let[t,s]of e.turns.entries())await o.run("INSERT INTO turns (id, session_id, provider_turn_id, status, sort_index, payload, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?)",[s.id,s.sessionId,s.providerTurnId,s.status,t,JSON.stringify(s),s.completedAt??s.startedAt]);for(let[t,s]of e.events.entries()){let u=t+1;await o.run("INSERT INTO events (id, session_id, turn_id, name, timestamp, sequence, sort_index, payload) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",[s.id,s.sessionId??null,s.turnId??null,s.name,s.timestamp,u,t,JSON.stringify(s)])}for(let[t,s]of e.approvals.entries())await o.run("INSERT INTO approvals (id, session_id, status, sort_index, payload, updated_at) VALUES (?, ?, ?, ?, ?, ?)",[s.id,s.sessionId,s.status,t,JSON.stringify(s),a]);await o.exec("COMMIT")}catch(t){throw await o.exec("ROLLBACK"),t}}n(D,"persistStoreData");export{S as a,E as b,T as c,D as d};
2
+ import{a as m}from"./chunk-DMFUEUAZ.js";import{a as c}from"./chunk-L5L3H6CI.js";import{t as p}from"./chunk-2THZ6GZY.js";import{I as i,L as d}from"./chunk-2MEOUS24.js";import{a as n}from"./chunk-FTQLQJQV.js";async function r(e,o){return(await e.allPayloadRows(`SELECT payload FROM ${o} ORDER BY sort_index ASC`)).map(t=>JSON.parse(t.payload))}n(r,"readStorePayloads");function S(e){let o=e,a=d.safeParse(o.openPondCommandAccessMode);return{...o,experience:l(o),openPondCommandAccessMode:a.success?a.data:i,currentProfile:o.currentProfile??null}}n(S,"normalizeSessionPayload");function l(e){let o=p.safeParse(e.experience);return o.success?o.data:!!(e.provider==="codex"||e.codexThreadId||e.systemKind||e.parentSessionId||e.subagentRunId||e.appId||e.workspaceKind||e.workspaceId||e.localProjectId||e.cloudProjectId)?"development":"chat"}n(l,"storedSessionExperience");async function E(e){return{sessions:(await r(e,"sessions")).map(S),turns:await r(e,"turns"),approvals:await r(e,"approvals")}}n(E,"readStoreMetadata");async function T(e){return{...await E(e),events:(await r(e,"events")).map(m)}}n(T,"readStoreData");async function D(e,o){let a=c();await o.exec("BEGIN IMMEDIATE");try{await o.exec("DELETE FROM approvals; DELETE FROM events; DELETE FROM turns; DELETE FROM sessions;");for(let[t,s]of e.sessions.entries())await o.run("INSERT INTO sessions (id, sort_index, payload, updated_at) VALUES (?, ?, ?, ?)",[s.id,t,JSON.stringify(s),s.updatedAt]);for(let[t,s]of e.turns.entries())await o.run("INSERT INTO turns (id, session_id, provider_turn_id, status, sort_index, payload, updated_at) VALUES (?, ?, ?, ?, ?, ?, ?)",[s.id,s.sessionId,s.providerTurnId,s.status,t,JSON.stringify(s),s.completedAt??s.startedAt]);for(let[t,s]of e.events.entries()){let u=t+1;await o.run("INSERT INTO events (id, session_id, turn_id, name, timestamp, sequence, sort_index, payload) VALUES (?, ?, ?, ?, ?, ?, ?, ?)",[s.id,s.sessionId??null,s.turnId??null,s.name,s.timestamp,u,t,JSON.stringify(s)])}for(let[t,s]of e.approvals.entries())await o.run("INSERT INTO approvals (id, session_id, status, sort_index, payload, updated_at) VALUES (?, ?, ?, ?, ?, ?)",[s.id,s.sessionId,s.status,t,JSON.stringify(s),a]);await o.exec("COMMIT")}catch(t){throw await o.exec("ROLLBACK"),t}}n(D,"persistStoreData");export{S as a,E as b,T as c,D as d};
@@ -1,4 +1,4 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{b as S,f as C,g as _,h as I,i as b,j as R}from"./chunk-SSJV3VX7.js";import{a as q}from"./chunk-7KWD2I6W.js";import{a as v,b as P}from"./chunk-U7D6Q744.js";import{a as U}from"./chunk-FYWQWKVS.js";import{c as T}from"./chunk-2MEOUS24.js";import{a as s}from"./chunk-FTQLQJQV.js";import{randomUUID as L}from"node:crypto";function j(e){let t=e.filter(r=>r.role==="system").map(r=>r.content??"").join(`
2
+ import{b as S,f as C,g as _,h as I,i as b,j as R}from"./chunk-SSJV3VX7.js";import{a as q}from"./chunk-7KWD2I6W.js";import{a as v,b as P}from"./chunk-L5L3H6CI.js";import{a as U}from"./chunk-FYWQWKVS.js";import{c as T}from"./chunk-2MEOUS24.js";import{a as s}from"./chunk-FTQLQJQV.js";import{randomUUID as L}from"node:crypto";function j(e){let t=e.filter(r=>r.role==="system").map(r=>r.content??"").join(`
3
3
 
4
4
  `),o=[];for(let r of e){if(r.role==="system")continue;let i=r.role==="assistant"?"assistant":"user",d=[];if(r.role==="tool"){if(!r.tool_call_id)throw new Error("Anthropic tool result is missing its call ID.");d.push({type:"tool_result",tool_use_id:r.tool_call_id,content:r.content??""})}else{r.content&&d.push({type:"text",text:r.content});for(let a of r.images??[]){let f=/^data:([^;,]+);base64,(.+)$/s.exec(a.url);d.push({type:"image",source:f?{type:"base64",media_type:f[1],data:f[2]}:{type:"url",url:a.url}})}for(let a of r.tool_calls??[]){if(!a.id||!a.function?.name)throw new Error("Anthropic tool call is missing its ID or name.");d.push({type:"tool_use",id:a.id,name:a.function.name,input:JSON.parse(a.function.arguments||"{}")})}}if(!d.length)continue;let p=o.at(-1);p?.role===i?p.content.push(...d):o.push({role:i,content:d})}return{system:t,messages:o}}s(j,"messagesBody");function k(e){let t=e.settings.providers.anthropic,o=e.secrets.providers.anthropic,r=o?.source==="local_secret"?o.value?.trim():o?.source==="env"&&o.envVar?process.env[o.envVar]?.trim():null;if(!t?.enabled||!r)throw new Error("Connect the direct Anthropic API-key provider in Settings.");let i=new URL(e.baseUrl??t.baseUrl??"https://api.anthropic.com");if(i.protocol!=="https:"&&i.hostname!=="localhost"&&i.hostname!=="127.0.0.1")throw new Error("Anthropic requires an HTTPS endpoint.");return i.pathname=i.pathname.replace(/\/$/,"").replace(/\/v1$/,"")+"/v1",i.search="",i.hash="",{key:r,base:i}}s(k,"anthropicConnection");async function*O(e){let{key:t,base:o}=k(e);o.pathname+="/messages";let r=e.modelId??e.settings.providers.anthropic?.defaultModel;if(!r)throw new Error("Choose a configured Anthropic model.");let i=e.settings.modelCaches.anthropic?.models.find(l=>l.id===r),d=Math.max(1,Math.min(e.maxOutputTokens??8192,i?.outputLimit??8192)),p=e.tools?.map(l=>{if(l.type!=="function"||!l.function)throw new Error("Anthropic only supports function tools.");return{name:l.function.name,description:l.function.description,input_schema:l.function.parameters??{type:"object",properties:{}}}}),a=e.toolChoice,f=a==="required"?{type:"any"}:a==="auto"||a==="none"?{type:a}:a?{type:"tool",name:a.function.name}:void 0,m=b(e.signal,e.requestTimeoutMs);try{let l=await fetch(o,{method:"POST",redirect:"error",headers:{"x-api-key":t,"anthropic-version":"2023-06-01","Content-Type":"application/json",Accept:"text/event-stream"},body:JSON.stringify({model:r,max_tokens:d,stream:!0,...j(e.messages),...p?.length?{tools:p,tool_choice:f}:{}}),signal:m.signal});if(!l.ok||!l.body){let h=await _(l,void 0,m.signal,m.touch);throw new Error(`Provider anthropic stream failed: ${l.status} ${h.replaceAll(t,"[redacted]")}`)}let c=new Map,g={},y,x=!1;for await(let h of R(l.body,m.signal,m.touch)){if(!h||typeof h!="object")continue;let n=h;if(n.type==="error")throw new Error(`Provider anthropic stream failed: ${(n.error?.message??"stream error").replaceAll(t,"[redacted]")}`);if(n.type==="message_start"&&(g={...n.message?.usage}),n.type==="content_block_start"&&n.content_block?.type==="tool_use"){let u=n.content_block;if(!u.id||!u.name||n.index===void 0)throw new Error("Invalid Anthropic tool block.");c.set(n.index,{id:u.id,name:u.name,arguments:"",initial:u.input})}if(n.type==="content_block_delta"&&(n.delta?.type==="text_delta"&&(yield{type:"text_delta",text:n.delta.text??"",raw:h}),n.delta?.type==="thinking_delta"&&(yield{type:"reasoning_delta",text:n.delta.thinking??"",raw:h}),n.delta?.type==="input_json_delta"&&n.index!==void 0)){let u=c.get(n.index);if(!u)throw new Error("Anthropic tool delta has no matching call.");u.arguments+=n.delta.partial_json??""}if(n.type==="content_block_stop"&&n.index!==void 0){let u=c.get(n.index);if(u){let A=u.arguments||JSON.stringify(u.initial??{});JSON.parse(A),yield{type:"tool_call_delta",toolCalls:[{id:u.id,type:"function",function:{name:u.name,arguments:A}}],raw:h},c.delete(n.index)}}n.type==="message_delta"&&(g={...g,...n.usage},y=n.delta?.stop_reason),n.type==="message_stop"&&(x=!0,yield{type:"usage",usage:g,raw:h})}if(!x||c.size||!y)throw new Error("Anthropic stream ended before the message completed.");yield{type:"finish",finishReason:y==="tool_use"?"tool_calls":y==="max_tokens"?"length":"stop",raw:{stop_reason:y}}}finally{m.cleanup()}}s(O,"streamAnthropicChatCompletion");async function D(e){let{key:t,base:o}=k(e);o.pathname+="/models",o.searchParams.set("limit","1000");let r=b(e.signal),i=[],d=new Set;try{for(let p=0;p<20;p++){let a=await fetch(o,{redirect:"error",headers:{"x-api-key":t,"anthropic-version":"2023-06-01",Accept:"application/json"},signal:r.signal});if(!a.ok)throw new Error(`Anthropic model discovery failed: ${a.status} ${(await _(a,void 0,r.signal,r.touch)).replaceAll(t,"[redacted]")}`);let{text:f}=await I(a,5*1024*1024,{truncate:!1},r.signal,r.touch),m=JSON.parse(f);if(!Array.isArray(m.data))throw new Error("Invalid Anthropic model catalog.");for(let c of m.data){if(!c.id||d.has(c.id))continue;d.add(c.id);let g=e.settings.modelCaches.anthropic?.models.find(y=>y.id===c.id);i.push(T.parse({...g,id:c.id,displayName:c.display_name??c.id,providerId:"anthropic",source:"provider",contextWindow:c.max_input_tokens??g?.contextWindow,outputLimit:c.max_tokens??g?.outputLimit,capabilities:{...g?.capabilities,toolCalling:!0,vision:!0}}))}if(!m.has_more)return i;let l=m.last_id;if(!l||o.searchParams.get("after_id")===l)throw new Error("Anthropic model catalog did not advance.");o.searchParams.set("after_id",l)}throw new Error("Anthropic model catalog exceeded the page limit.")}finally{r.cleanup()}}s(D,"listAnthropicProviderModels");async function Y(e){let{base:t}=k(e),o=e.modelId??e.settings.providers.anthropic?.defaultModel??"",r=await D(e),i=r.some(p=>p.id===o),d=i?[]:[`Model ${o} was not returned by Anthropic model discovery.`];return{providerId:"anthropic",ok:!d.length,live:!0,baseUrl:t.toString(),modelId:o,modelFound:i,modelCount:r.length,errors:d}}s(Y,"validateAnthropicProvider");function E(e){return e==="anthropic"||S(e)}s(E,"isManagedLocalChatProvider");function re(e){return e.providerId==="anthropic"?O(e):C(e)}s(re,"streamManagedLocalChatCompletion");function $(e){let t=q(e.usage),o=e.requestKind??W({session:e.session,turn:e.turn??null,requestOrdinal:e.requestOrdinal}),r=e.completedAt,i=e.error&&P(e.error)||null;return{id:`usage_${L()}`,requestId:e.requestId,requestOrdinal:e.requestOrdinal,sessionId:e.session.id,turnId:e.turn?.id??null,provider:e.provider,model:e.model||"unknown",route:N(e.provider),source:t.promptTokens!==null||t.completionTokens!==null||t.totalTokens!==null?"provider_usage":"missing",requestKind:o,visibility:F(e.session,o),status:e.status,startedAt:e.startedAt,completedAt:r,durationMs:r?Math.max(0,Date.parse(r)-Date.parse(e.startedAt)):null,firstTokenMs:e.firstTokenMs,promptTokens:t.promptTokens,cachedPromptTokens:t.cachedPromptTokens,uncachedPromptTokens:t.uncachedPromptTokens,cacheWritePromptTokens:t.cacheWritePromptTokens,cacheTelemetrySource:t.cacheTelemetrySource,completionTokens:t.completionTokens,totalTokens:t.totalTokens,errorType:e.error?G(e.error):null,errorMessage:i,attribution:J({session:e.session,turn:e.turn??null,requestKind:o,requestOrdinal:e.requestOrdinal})}}s($,"createProviderRequestUsageRecord");async function ue(e){let t=new w(e);return await t.start(),t}s(ue,"startProviderRequestUsageRecorder");var w=class{constructor(t){this.input=t}input;static{s(this,"ProviderRequestUsageRecorder")}latestUsage=null;firstTokenMs=null;startedAt=v();startedAtMs=Date.now();async start(){await this.upsert("started",null)}observeDelta(t){this.firstTokenMs===null&&H(t)&&(this.firstTokenMs=Math.max(0,Date.now()-this.startedAtMs)),t.usage&&(this.latestUsage=t.usage)}async complete(){await this.upsert("completed",v())}async fail(t,o){await this.upsert(o,v(),t)}async upsert(t,o,r){await this.input.upsert($({session:this.input.session,turn:this.input.turn,provider:this.input.provider,model:this.input.model,requestId:this.input.requestId,requestOrdinal:this.input.requestOrdinal,requestKind:this.input.requestKind,startedAt:this.startedAt,completedAt:o,firstTokenMs:this.firstTokenMs,usage:this.latestUsage,status:t,error:r}))}};function H(e){return!!(e.text||e.reasoningText||e.toolCalls&&e.toolCalls.length>0)}s(H,"modelUsageDeltaHasOutput");function N(e){return e==="openpond"?"openpond_hosted":e==="codex"?"codex_app_server":E(e)?"local_byok":"unknown"}s(N,"modelUsageRoute");function W(e){let t=M(e.turn);return t?.subagentRunId||t?.workflowKind==="subagent"?"subagent":e.turn&&K(e.turn)?"slash_command":e.requestOrdinal===0?"chat_turn":"tool_loop"}s(W,"modelUsageRequestKind");function F(e,t){return e.systemKind?"system":t==="context_compaction"||t==="create_improve_planner"||t==="harness_refiner"||t==="subagent"||t==="codex_context"?"background":"user_facing"}s(F,"modelUsageVisibility");function J(e){let t=M(e.turn),o=K(e.turn);return{surface:t?.surface??V(e.session,e.requestKind),workflowKind:t?.workflowKind??z(e.requestKind,e.requestOrdinal,o),sessionId:e.session.id,turnId:e.turn?.id??null,goalId:t?.goalId??null,subagentRunId:t?.subagentRunId??null,subagentRoleId:t?.subagentRoleId??null,createImproveRunId:t?.createImproveRunId??e.turn?.createImproveRun?.id??null,commandName:o,commandSource:t?.commandSource??B(e.turn,o),appId:e.session.appId,workspaceKind:e.session.workspaceKind??null,workspaceId:e.session.workspaceId??null,localProjectId:e.session.localProjectId??null,cloudProjectId:e.session.cloudProjectId??null,sourceEventSequence:null}}s(J,"modelUsageAttribution");function V(e,t){return t==="create_improve_planner"?"create_improve":t==="harness_refiner"?"system":t==="context_compaction"?"compaction":"chat"}s(V,"usageSurface");function z(e,t,o){return e==="create_improve_planner"?"planner":e==="harness_refiner"?"other":e==="context_compaction"?"summary":e==="subagent"?"subagent":o||e==="slash_command"?"slash_command":t===0?"direct_chat":"tool_loop"}s(z,"usageWorkflowKind");function M(e){if(!e)return null;let t=U.safeParse(e.metadata?.usageAttribution);return t.success?t.data:null}s(M,"usageRequestAttributionFromTurn");function K(e){if(!e)return null;let o=M(e)?.commandName;if(typeof o=="string"&&o.trim())return o.trim();let r=e.createImproveRun?.command;return typeof r=="string"&&r.trim().startsWith("/")?r.trim():null}s(K,"commandNameFromTurn");function B(e,t){return e?.createImproveRun?.metadata?.source==="native_model_tool"?"model_tool":t?"prompt_parse":null}s(B,"commandSourceFromTurn");function G(e){return e instanceof Error&&e.name.trim()?e.name.trim():"Error"}s(G,"errorType");export{D as a,Y as b,E as c,re as d,$ as e,ue as f};
@@ -1,3 +1,3 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- var e="127.0.0.1";var t="0.2.64",n=["You are OpenPond Chat. Respond in the user's language. If the user's latest message is language-neutral, ambiguous, or only a short test, respond in English. Be concise and directly answer the latest request. Do not use emojis. Use Markdown when it improves scanability.","If you emit reasoning or thinking content, keep it sparse and user-readable: at most one short sentence for major progress, decisions, or blockers. Omit reasoning for routine searches, reads, tool calls, and obvious next steps. Do not restate the user request, narrate every action, or include code blocks, code excerpts, diffs, raw tool payloads, or markdown examples in reasoning. Put necessary code or exact snippets only in the final assistant answer.","When the user asks to show or preview an image that is available as a workspace path or signed image URL, use Markdown image syntax like ![description](path-or-url) instead of a bare path or raw HTML.","Final responses:","- After substantial work, including research, analysis, document creation, and coding, finish with a concise, self-contained wrap-up. The user should understand the outcome without reading progress updates or tool output.","- Lead with the result and summarize the meaningful changes or findings. Link relevant deliverables and supporting sources when available, using links the user can open.","- Report what was actually checked and what the evidence establishes when verification matters. Distinguish completed work from anything unfinished, unverified, or still running; never imply that starting an operation confirms its success.","- If genuinely blocked, state what was completed, the blocker, and the specific input or action needed to continue. Continue authorized work until complete or genuinely blocked before giving the wrap-up.","- For code changes, explain what changed and why, reference important files when useful, and report relevant checks and their results. Use Changed Files or Verification sections only when they make the answer easier to read.","- Match the length and structure to the task and respect the user's requested output format. Simple questions and small actions need a direct answer, without a separate recap or fixed headings. Avoid repeating the work log or adding generic next steps.","Do not mention raw tool JSON, internal repo paths, or origin/remote URLs unless the user explicitly asks for them or they are necessary to explain a git/deploy failure."].join(`
2
+ var e="127.0.0.1";var t="0.2.65",n=["You are OpenPond Chat. Respond in the user's language. If the user's latest message is language-neutral, ambiguous, or only a short test, respond in English. Be concise and directly answer the latest request. Do not use emojis. Use Markdown when it improves scanability.","If you emit reasoning or thinking content, keep it sparse and user-readable: at most one short sentence for major progress, decisions, or blockers. Omit reasoning for routine searches, reads, tool calls, and obvious next steps. Do not restate the user request, narrate every action, or include code blocks, code excerpts, diffs, raw tool payloads, or markdown examples in reasoning. Put necessary code or exact snippets only in the final assistant answer.","When the user asks to show or preview an image that is available as a workspace path or signed image URL, use Markdown image syntax like ![description](path-or-url) instead of a bare path or raw HTML.","Final responses:","- After substantial work, including research, analysis, document creation, and coding, finish with a concise, self-contained wrap-up. The user should understand the outcome without reading progress updates or tool output.","- Lead with the result and summarize the meaningful changes or findings. Link relevant deliverables and supporting sources when available, using links the user can open.","- Report what was actually checked and what the evidence establishes when verification matters. Distinguish completed work from anything unfinished, unverified, or still running; never imply that starting an operation confirms its success.","- If genuinely blocked, state what was completed, the blocker, and the specific input or action needed to continue. Continue authorized work until complete or genuinely blocked before giving the wrap-up.","- For code changes, explain what changed and why, reference important files when useful, and report relevant checks and their results. Use Changed Files or Verification sections only when they make the answer easier to read.","- Match the length and structure to the task and respect the user's requested output format. Simple questions and small actions need a direct answer, without a separate recap or fixed headings. Avoid repeating the work log or adding generic next steps.","Do not mention raw tool JSON, internal repo paths, or origin/remote URLs unless the user explicitly asks for them or they are necessary to explain a git/deploy failure."].join(`
3
3
  `);export{e as a,t as b,n as c};
@@ -1,5 +1,5 @@
1
1
  import { createRequire as __openpondCreateRequire } from "node:module"; var require = __openpondCreateRequire(import.meta.url);
2
- import{A as it,B as K,C as A,D as rt,E as at,b as u,f as I,g as Y,h as $,i as L,j as N,k as G,l as T,o as Q,r as Z,s as k,t as x,u as tt,v as M,w as et,x as z,y as q,z as nt}from"./chunk-YU3C6U5V.js";import{a as b}from"./chunk-U7D6Q744.js";import{a as l}from"./chunk-FTQLQJQV.js";import{promises as mt}from"node:fs";async function $t(t,e,n={}){return O(A(t,e.id),e,n)}l($t,"loadWorkspaceState");async function O(t,e,n={}){let{workspacePath:i,repoPath:r}=t,a=it(e,n.gitBaseUrl);await mt.mkdir(i,{recursive:!0});let o=await L(r),s=null;if(!o&&n.clone&&a)try{await rt(r,i,a,n.token),o=!0}catch(m){s=m instanceof Error?m.message:String(m)}if(!o)return n.allowPlainFolder&&await $(r)?{appId:e.id,source:"local_folder",workspacePath:i,repoPath:r,initialized:!0,remoteUrl:null,expectedRemoteUrl:a,currentBranch:null,headCommit:null,upstreamBranch:null,ahead:0,behind:0,diverged:!1,linkedSourceHeadCommit:n.linkedSourceHeadCommit?.trim()||null,aheadOfLinkedSource:0,behindLinkedSource:0,divergedFromLinkedSource:!1,linkedSourceComparisonError:null,lastFetchAt:null,defaultBranch:e.defaultBranch??null,branches:[],dirty:!1,changedFilesCount:0,untrackedFilesCount:0,error:s,updatedAt:b()}:{appId:e.id,source:I(a),workspacePath:i,repoPath:r,initialized:o,remoteUrl:null,expectedRemoteUrl:a,currentBranch:null,headCommit:null,upstreamBranch:null,ahead:0,behind:0,diverged:!1,linkedSourceHeadCommit:n.linkedSourceHeadCommit?.trim()||null,aheadOfLinkedSource:0,behindLinkedSource:0,divergedFromLinkedSource:!1,linkedSourceComparisonError:null,lastFetchAt:null,defaultBranch:e.defaultBranch??null,branches:[],dirty:!1,changedFilesCount:0,untrackedFilesCount:0,error:s,updatedAt:b()};let[f,d,h,P,y]=await Promise.all([u("git",["branch","--show-current"],r),u("git",["branch","--format=%(refname:short)"],r),u("git",["status","--porcelain=v1","-b"],r),u("git",["config","--get","remote.origin.url"],r),u("git",["rev-parse","--verify","HEAD"],r)]),E=P.code===0&&Y(P.stdout.trim())||null,W=h.code===0?h.stdout.split(`
2
+ import{A as it,B as K,C as A,D as rt,E as at,b as u,f as I,g as Y,h as $,i as L,j as N,k as G,l as T,o as Q,r as Z,s as k,t as x,u as tt,v as M,w as et,x as z,y as q,z as nt}from"./chunk-YU3C6U5V.js";import{a as b}from"./chunk-L5L3H6CI.js";import{a as l}from"./chunk-FTQLQJQV.js";import{promises as mt}from"node:fs";async function $t(t,e,n={}){return O(A(t,e.id),e,n)}l($t,"loadWorkspaceState");async function O(t,e,n={}){let{workspacePath:i,repoPath:r}=t,a=it(e,n.gitBaseUrl);await mt.mkdir(i,{recursive:!0});let o=await L(r),s=null;if(!o&&n.clone&&a)try{await rt(r,i,a,n.token),o=!0}catch(m){s=m instanceof Error?m.message:String(m)}if(!o)return n.allowPlainFolder&&await $(r)?{appId:e.id,source:"local_folder",workspacePath:i,repoPath:r,initialized:!0,remoteUrl:null,expectedRemoteUrl:a,currentBranch:null,headCommit:null,upstreamBranch:null,ahead:0,behind:0,diverged:!1,linkedSourceHeadCommit:n.linkedSourceHeadCommit?.trim()||null,aheadOfLinkedSource:0,behindLinkedSource:0,divergedFromLinkedSource:!1,linkedSourceComparisonError:null,lastFetchAt:null,defaultBranch:e.defaultBranch??null,branches:[],dirty:!1,changedFilesCount:0,untrackedFilesCount:0,error:s,updatedAt:b()}:{appId:e.id,source:I(a),workspacePath:i,repoPath:r,initialized:o,remoteUrl:null,expectedRemoteUrl:a,currentBranch:null,headCommit:null,upstreamBranch:null,ahead:0,behind:0,diverged:!1,linkedSourceHeadCommit:n.linkedSourceHeadCommit?.trim()||null,aheadOfLinkedSource:0,behindLinkedSource:0,divergedFromLinkedSource:!1,linkedSourceComparisonError:null,lastFetchAt:null,defaultBranch:e.defaultBranch??null,branches:[],dirty:!1,changedFilesCount:0,untrackedFilesCount:0,error:s,updatedAt:b()};let[f,d,h,P,y]=await Promise.all([u("git",["branch","--show-current"],r),u("git",["branch","--format=%(refname:short)"],r),u("git",["status","--porcelain=v1","-b"],r),u("git",["config","--get","remote.origin.url"],r),u("git",["rev-parse","--verify","HEAD"],r)]),E=P.code===0&&Y(P.stdout.trim())||null,W=h.code===0?h.stdout.split(`
3
3
  `).filter(m=>m.trim()):[],S=et(W.find(m=>m.startsWith("## "))??""),p=W.filter(m=>{if(m.startsWith("## "))return!1;let B=M(m),V=B?k(B.path):null;return!!(V&&!x(V))}),C=p.filter(m=>m.startsWith("??")).length,F=f.code===0&&f.stdout.trim()?f.stdout.trim():null,R=y.code===0&&y.stdout.trim()||null,U=d.code===0?d.stdout.split(`
4
4
  `).map(m=>m.trim()).filter(Boolean):[],c=I(E)==="unknown"&&a?a:E??a,g=await ht(r,n.linkedSourceHeadCommit,R);return{appId:e.id,source:c?I(c):"local_git",workspacePath:i,repoPath:r,initialized:o,remoteUrl:E,expectedRemoteUrl:a,currentBranch:F,headCommit:R,upstreamBranch:S.upstreamBranch,ahead:S.ahead,behind:S.behind,diverged:S.ahead>0&&S.behind>0,linkedSourceHeadCommit:g.linkedSourceHeadCommit,aheadOfLinkedSource:g.aheadOfLinkedSource,behindLinkedSource:g.behindLinkedSource,divergedFromLinkedSource:g.divergedFromLinkedSource,linkedSourceComparisonError:g.error,lastFetchAt:await at(r),defaultBranch:e.defaultBranch??null,branches:U,dirty:p.length>0,changedFilesCount:p.length,untrackedFilesCount:C,error:s,updatedAt:b()}}l(O,"loadWorkspaceStateAtPath");async function ht(t,e,n){let i=e?.trim()||null,r={linkedSourceHeadCommit:i,aheadOfLinkedSource:0,behindLinkedSource:0,divergedFromLinkedSource:!1,error:null};if(!i||!n||i===n)return r;let a=await u("git",["rev-list","--left-right","--count",`${i}...${n}`],t);if(a.code!==0)return{...r,error:a.stderr.trim()||a.stdout.trim()||"Unable to compare linked source commit."};let[o,s]=a.stdout.trim().split(/\s+/,2),f=Number(o)||0,d=Number(s)||0;return{linkedSourceHeadCommit:i,aheadOfLinkedSource:d,behindLinkedSource:f,divergedFromLinkedSource:d>0&&f>0,error:null}}l(ht,"compareLinkedSourceCommit");async function zt(t,e,n){return gt(A(t,e.id),e,n)}l(zt,"createAndCheckoutBranch");async function gt(t,e,n,i={}){K(n);let r=await O(t,e,{...i,clone:!1});if(!r.initialized)throw new Error(r.error||"Workspace is not initialized");let a=await u("git",["checkout","-b",n.trim()],r.repoPath);if(a.code!==0)throw new Error(a.stderr.trim()||a.stdout.trim()||"Unable to create branch");return O(t,e,{...i,clone:!1})}l(gt,"createAndCheckoutBranchAtPath");async function Ht(t,e,n){return kt(A(t,e.id),e,n)}l(Ht,"checkoutBranch");async function kt(t,e,n,i={}){K(n);let r=await O(t,e,{...i,clone:!1});if(!r.initialized)throw new Error(r.error||"Workspace is not initialized");if(r.dirty&&r.currentBranch!==n.trim())throw new Error("Commit or discard local changes before switching branches");let a=await u("git",["checkout",n.trim()],r.repoPath);if(a.code!==0)throw new Error(a.stderr.trim()||a.stdout.trim()||"Unable to switch branch");return O(t,e,{...i,clone:!1})}l(kt,"checkoutBranchAtPath");import w from"node:path";import{promises as ct}from"node:fs";var wt=6,Wt=60,st=1e4,D=new Map;async function H(t,e,n=wt){let i=Math.max(1,Math.floor(n)),r=new Array(t.length),a=0;async function o(){for(;a<t.length;){let s=a;a+=1,r[s]=await e(t[s],s)}}return l(o,"worker"),await Promise.all(Array.from({length:Math.min(i,t.length)},()=>o())),r}l(H,"mapWorkspaceDiffEntriesWithConcurrency");function Xt(){D.clear()}l(Xt,"clearWorkspaceDiffCacheForTests");async function Jt(t,e,n={}){let{repoPath:i}=A(t,e.id);return Pt(i,e.id,n)}l(Jt,"loadWorkspaceDiff");async function Pt(t,e,n={}){let i=await L(t);if(!i){let c=await nt(t);return{appId:e,repoPath:t,initialized:c.length>0||await $(t),dirty:!1,filesChanged:0,additions:0,deletions:0,repoFiles:c,files:[],error:null,updatedAt:b()}}let r=await X(t),a=r.pathPrefix||".",[o,s]=await Promise.all([u("git",["rev-parse","HEAD"],r.commandCwd),u("git",["status","--porcelain=v1","-uall","--",a],r.commandCwd)]);if(s.code!==0)return{appId:e,repoPath:t,initialized:i,dirty:!1,filesChanged:0,additions:0,deletions:0,repoFiles:[],files:[],error:s.stderr.trim()||s.stdout.trim()||"Unable to read workspace diff",updatedAt:b()};let f=s.stdout.split(`
5
5
  `).map(M).filter(c=>!!c).map(c=>{let g=v(c.path,r.pathPrefix);if(!g)return null;let m=k(g);return m?{...c,path:m}:null}).filter(c=>c?!x(c.path):!1),d=await Ct(t,f),h=Ft({repoPath:t,workspaceId:e,includeFileDetails:!!n.includeFileDetails,head:o.code===0?o.stdout.trim():"unborn",pathPrefix:r.pathPrefix,status:s.stdout,worktreeSignature:d}),P=D.get(h);if(P)return j(P);let y=(await H(f,async c=>c.status==="deleted"||!await Z(t,c.path)?c:null)).filter(c=>!!c),E=await u("git",["ls-files","--",a],r.commandCwd),W=q([...E.code===0?E.stdout.split(`