@p4code/cli 0.9.25 → 0.9.26

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 (288) hide show
  1. package/dist/{TraceDiagnostics-BHUn_HS7.mjs → TraceDiagnostics-D1Qz3qce.mjs} +3 -3
  2. package/dist/bin.mjs +1 -1
  3. package/dist/{binCli-DzJr0M8f.mjs → binCli-CcEaWLAR.mjs} +6 -6
  4. package/dist/client/.vite/manifest.json +2130 -2130
  5. package/dist/client/assets/{2NI2N5EU-DU0Cg_Lb.js → 2NI2N5EU--LXjbTE-.js} +2 -2
  6. package/dist/client/assets/{4UO7MD6I-B38qXGVF.js → 4UO7MD6I-D_jr6_IV.js} +2 -2
  7. package/dist/client/assets/{5B3SVYGG-FTIXhvjJ.js → 5B3SVYGG-tThUTA_S.js} +2 -2
  8. package/dist/client/assets/{5GK6JWQ2-H3C8D_6P.js → 5GK6JWQ2-BCuuAhKJ.js} +2 -2
  9. package/dist/client/assets/{5N7A7DKN-CozSLHAy.js → 5N7A7DKN-rdPMRoZL.js} +2 -2
  10. package/dist/client/assets/{5OC2THR4-CEpIVrtv.js → 5OC2THR4-gvpm3IL0.js} +2 -2
  11. package/dist/client/assets/{5S6HY5KT-BJiBcrC3.js → 5S6HY5KT-CWanNmdR.js} +2 -2
  12. package/dist/client/assets/{6IMQ5BUJ-Bc6nCKkc.js → 6IMQ5BUJ-1sguTKZ9.js} +2 -2
  13. package/dist/client/assets/{6OLKWJ4F-BQObFAo6.js → 6OLKWJ4F-9loy41nw.js} +2 -2
  14. package/dist/client/assets/{74OO7NKP-Bf7mJdAJ.js → 74OO7NKP-ukQR6jKi.js} +2 -2
  15. package/dist/client/assets/{75O6YZUN-CW0D2fdL.js → 75O6YZUN-BjBd5LQ0.js} +2 -2
  16. package/dist/client/assets/{77XECAW3-DYpoU6GE.js → 77XECAW3-Ccw2Y7VD.js} +2 -2
  17. package/dist/client/assets/{ABYRPUBD-DspDYvjC.js → ABYRPUBD-CvqVJLPf.js} +2 -2
  18. package/dist/client/assets/AlertDialogRoot-CimqRgXh.js +2 -0
  19. package/dist/client/assets/{AnimatedHeight-baWnHH74.js → AnimatedHeight-Dwarin_V.js} +2 -2
  20. package/dist/client/assets/{AuthSurfaceShell-DpXUdirf.js → AuthSurfaceShell-BvGaTutU.js} +2 -2
  21. package/dist/client/assets/{BB2UYUI2-DBvVdzXq.js → BB2UYUI2-Drnmium_.js} +2 -2
  22. package/dist/client/assets/{BUM34MOA-DD8_qVgf.js → BUM34MOA-AkPmeijf.js} +2 -2
  23. package/dist/client/assets/{CEQABKGZ-CVQF1BSd.js → CEQABKGZ-BNUlDSIK.js} +2 -2
  24. package/dist/client/assets/{CXAC5362-D-ErUdji.js → CXAC5362-Bmar3Iii.js} +2 -2
  25. package/dist/client/assets/{ChatGptUsageButton-CQGToDEF.js → ChatGptUsageButton-D6Iy8SVv.js} +2 -2
  26. package/dist/client/assets/{ChatMarkdown-LJASbkfc.js → ChatMarkdown-DHhJpg3q.js} +7 -7
  27. package/dist/client/assets/{CheckboxIndicator-C1r4pplS.js → CheckboxIndicator-DbA95VlZ.js} +2 -2
  28. package/dist/client/assets/{ClippedText-DfXsEQeG.js → ClippedText-UM8CaEu4.js} +2 -2
  29. package/dist/client/assets/{CodexSetupSection.logic-Bc4DfjCh.js → CodexSetupSection.logic-kKJPABQZ.js} +2 -2
  30. package/dist/client/assets/{CollapsiblePanel-BXH3rQRh.js → CollapsiblePanel-C1iRr4kZ.js} +2 -2
  31. package/dist/client/assets/{ComboboxClear-CVernRAh.js → ComboboxClear-DaifQLU5.js} +2 -2
  32. package/dist/client/assets/{ComboboxGroupLabel-DvjyoFJL.js → ComboboxGroupLabel-C03JGZRD.js} +2 -2
  33. package/dist/client/assets/{CommandBlock-WsIIEStK.js → CommandBlock-DH_L_Tgo.js} +2 -2
  34. package/dist/client/assets/{CompositeRoot-ByiP4GnC.js → CompositeRoot-B1DTZCNU.js} +2 -2
  35. package/dist/client/assets/{ConnectAgentSurface-DvJ8PBIx.js → ConnectAgentSurface-C5bZc2ZR.js} +2 -2
  36. package/dist/client/assets/{ConnectionStatusDot-K3y7Ct8v.js → ConnectionStatusDot-CCTiSlHA.js} +2 -2
  37. package/dist/client/assets/{DRLTVNUE-31JTQ6nY.js → DRLTVNUE-BqWUfmRf.js} +2 -2
  38. package/dist/client/assets/{DYY6UVD2-D_ZDUMtR.js → DYY6UVD2-CyRsghfa.js} +2 -2
  39. package/dist/client/assets/{DevicePanel-DZK0y5Ap.js → DevicePanel-DocID7hH.js} +2 -2
  40. package/dist/client/assets/{DeviceSetup-D3E85Zrd.js → DeviceSetup-CX2OWVB9.js} +2 -2
  41. package/dist/client/assets/{DialogRoot-CNtnfAJy.js → DialogRoot-D64NsaiW.js} +2 -2
  42. package/dist/client/assets/{DialogTitle-DV_YdpJC.js → DialogTitle-CYefNdHm.js} +2 -2
  43. package/dist/client/assets/{DiffCommentAnnotation-BOVXuQGc.js → DiffCommentAnnotation-ChKqFxt5.js} +2 -2
  44. package/dist/client/assets/{DiffFileTree-B5NHhHgk.js → DiffFileTree-B6AgzOXX.js} +2 -2
  45. package/dist/client/assets/{DiffPanel-Iu14e7z4.js → DiffPanel-DKAHtq5x.js} +2 -2
  46. package/dist/client/assets/{DiffWorkerPoolProvider-Dwi-pu0V.js → DiffWorkerPoolProvider-CK3y5UA1.js} +2 -2
  47. package/dist/client/assets/{EmbeddedDesign-B7W3XrYS.js → EmbeddedDesign-Bj-kkArq.js} +5 -5
  48. package/dist/client/assets/{EnvironmentMachineIcon-CXBfI2NX.js → EnvironmentMachineIcon-CJ30kzSK.js} +2 -2
  49. package/dist/client/assets/{ExpandableText-DfUAVk6K.js → ExpandableText-CBPvhWvZ.js} +2 -2
  50. package/dist/client/assets/{FNOVOB4O-uinkA45N.js → FNOVOB4O-DYXYw-b1.js} +2 -2
  51. package/dist/client/assets/{FieldControl-CIowDCcv.js → FieldControl-CkgERQaU.js} +2 -2
  52. package/dist/client/assets/{FileDiff-BmQX_G3I.js → FileDiff-BLuBewdN.js} +2 -2
  53. package/dist/client/assets/{FilePreviewPanel-X0C-_bsa.js → FilePreviewPanel-DWNimHTU.js} +5 -5
  54. package/dist/client/assets/{FoldedSettingsSection-veJCJBGN.js → FoldedSettingsSection-C3cuD_W9.js} +2 -2
  55. package/dist/client/assets/{HDGCDEEZ-C-FshFnT.js → HDGCDEEZ-7WPyPcLr.js} +2 -2
  56. package/dist/client/assets/{HSJLKHB7-DkWuWTFm.js → HSJLKHB7-t8_OkffK.js} +2 -2
  57. package/dist/client/assets/{Icons-CzUirT4o.js → Icons-BUrn1Fzo.js} +2 -2
  58. package/dist/client/assets/Input-Gb8KV9DV.js +2 -0
  59. package/dist/client/assets/{IntervalSecondsField-jhisp3XJ.js → IntervalSecondsField-D9JXVV-s.js} +2 -2
  60. package/dist/client/assets/JZOYTAAL-BzA5Kg5m.js +1 -0
  61. package/dist/client/assets/{K3MD6TGW-a8yr5Ewj.js → K3MD6TGW-DoqPvoaq.js} +2 -2
  62. package/dist/client/assets/{K7RP3OMA-B0CXNed1.js → K7RP3OMA--ZFOkyEG.js} +2 -2
  63. package/dist/client/assets/{KeybindingsSettings.logic-BJLp2hK6.js → KeybindingsSettings.logic-CMs7OPcH.js} +2 -2
  64. package/dist/client/assets/{LHDIQX7Q-CkhjJ70Y.js → LHDIQX7Q-hUqw2I9B.js} +2 -2
  65. package/dist/client/assets/{LUXOKEGN-DhYrChjL.js → LUXOKEGN-Dvu_mp-q.js} +2 -2
  66. package/dist/client/assets/{LinkMachineSelect-rWCX7r86.js → LinkMachineSelect-SHXPDP_g.js} +2 -2
  67. package/dist/client/assets/{MathTypeset-C9x0hMF0.js → MathTypeset-TM-3r0WA.js} +2 -2
  68. package/dist/client/assets/{ModelLiveLayer-Dv_jCIXj.js → ModelLiveLayer-Bb-7OhJ9.js} +3 -3
  69. package/dist/client/assets/{N3JZAHOW-B97FAWso.js → N3JZAHOW-LjhhJ-00.js} +2 -2
  70. package/dist/client/assets/{NUIALGQ3-Dq5lVW3w.js → NUIALGQ3-Dg1KXz02.js} +2 -2
  71. package/dist/client/assets/{NoProjectsHero-BsinbzdV.js → NoProjectsHero-D0OPZtzO.js} +2 -2
  72. package/dist/client/assets/{O65XPQGZ-D4-546m0.js → O65XPQGZ-BxaJR80d.js} +2 -2
  73. package/dist/client/assets/{O7XIQ6OM-BPEf7K4J.js → O7XIQ6OM-CCXPxMuU.js} +2 -2
  74. package/dist/client/assets/{OFQON5FD-ANLB_eks.js → OFQON5FD-WUMBXQkX.js} +2 -2
  75. package/dist/client/assets/{P4ConnectAccountPages-BkUG1cNj.js → P4ConnectAccountPages-BNK6s-RS.js} +2 -2
  76. package/dist/client/assets/{P4ConnectSidebarSignIn-Bd8SD-N2.js → P4ConnectSidebarSignIn-CWW40SMl.js} +2 -2
  77. package/dist/client/assets/{PJQHF43J-U5Qjv9uU.js → PJQHF43J-BrNjCaLl.js} +2 -2
  78. package/dist/client/assets/{PanelLayoutControls-BiOzQEUj.js → PanelLayoutControls-DiXjRWIw.js} +7 -7
  79. package/dist/client/assets/{PierreEntryIcon-C3yCp-3j.js → PierreEntryIcon-D29_Ylm_.js} +2 -2
  80. package/dist/client/assets/{PopoverHandle-BOG8GZW9.js → PopoverHandle-BgggGdpn.js} +2 -2
  81. package/dist/client/assets/PreviewPanel-DutKwWE7.js +2 -0
  82. package/dist/client/assets/{ProjectDefaultsSettings-BNoHUxLB.js → ProjectDefaultsSettings-DMfJN66D.js} +2 -2
  83. package/dist/client/assets/{ProjectFavicon-DJihy670.js → ProjectFavicon-DFI1NI3D.js} +3 -3
  84. package/dist/client/assets/{ProjectIconPickerDialog-B64NU333.js → ProjectIconPickerDialog-BqGWzrTc.js} +2 -2
  85. package/dist/client/assets/{ProjectMonogram-Bm8g4eoe.js → ProjectMonogram-D4xxVtw8.js} +2 -2
  86. package/dist/client/assets/{ProviderAuthTerminal-ep_3vQXs.js → ProviderAuthTerminal-CRSvI-Og.js} +2 -2
  87. package/dist/client/assets/ProviderModelPicker-D73G0AKf.js +2 -0
  88. package/dist/client/assets/{ProviderSettingsForm-DdzTiAwr.js → ProviderSettingsForm-DchD8HSN.js} +2 -2
  89. package/dist/client/assets/{PullRequestCodeTab-DxIVyifS.js → PullRequestCodeTab-BdXdTg-d.js} +3 -3
  90. package/dist/client/assets/{RHNBAITX-Ca700xaA.js → RHNBAITX-PsYrngSs.js} +2 -2
  91. package/dist/client/assets/{ReadOnlySourcePreview-DwbQjZ6S.js → ReadOnlySourcePreview-8jLKmc3M.js} +2 -2
  92. package/dist/client/assets/{RedactedSensitiveText-CKBxO8RE.js → RedactedSensitiveText-DhV2Jdu8.js} +2 -2
  93. package/dist/client/assets/{RenderErrorBoundary-Ds0CLe6f.js → RenderErrorBoundary-56lc2IQ3.js} +2 -2
  94. package/dist/client/assets/{RightPanelResizeHandle-kgBW_OmO.js → RightPanelResizeHandle-ClzdYxWw.js} +2 -2
  95. package/dist/client/assets/{SLD4V6NK-DHgBQG4y.js → SLD4V6NK-CxidvPXU.js} +2 -2
  96. package/dist/client/assets/{ScheduledTasksSettings-G10yO5DO.js → ScheduledTasksSettings-BdMCgBm5.js} +5 -5
  97. package/dist/client/assets/{ScopedSwitch-DGi7EZuF.js → ScopedSwitch-CwnjCta_.js} +2 -2
  98. package/dist/client/assets/{ScrollAreaCorner-sEIv5sN-.js → ScrollAreaCorner-CfTQYjCW.js} +2 -2
  99. package/dist/client/assets/{SecretInput-C8mfkoqW.js → SecretInput-BYfVbTLh.js} +2 -2
  100. package/dist/client/assets/{SelectScrollUpArrow-BBy8ExJB.js → SelectScrollUpArrow-BE0-tVtP.js} +2 -2
  101. package/dist/client/assets/{SelfImproveSettingsSection-CJpzoxZq.js → SelfImproveSettingsSection-DsqFeICK.js} +2 -2
  102. package/dist/client/assets/{SettingsPanels-CKuvIEcT.js → SettingsPanels-D_rJsyjt.js} +7 -7
  103. package/dist/client/assets/{SettingsPanels.logic-mWhM0JKq.js → SettingsPanels.logic-BTJUBh-T.js} +2 -2
  104. package/dist/client/assets/{SettingsScopeNotice-CYlVOS9U.js → SettingsScopeNotice-CAVvn3pQ.js} +2 -2
  105. package/dist/client/assets/{SidebarStageBackdrop-CcJgZb4i.js → SidebarStageBackdrop-DdxWuxIk.js} +2 -2
  106. package/dist/client/assets/{T3PCR2KE-sETS2BfN.js → T3PCR2KE-BtQsKjM5.js} +2 -2
  107. package/dist/client/assets/{TKWO2OVW-DOxrph0T.js → TKWO2OVW-CeYF-suq.js} +2 -2
  108. package/dist/client/assets/{TSHNXIZL-LkLzenBL.js → TSHNXIZL-FQ7ZWHEn.js} +2 -2
  109. package/dist/client/assets/{ThemeEditorPanel-BSPkdhmj.js → ThemeEditorPanel-BJucNhy-.js} +2 -2
  110. package/dist/client/assets/{ThreadDetailsItemsMenu-8anoK4Or.js → ThreadDetailsItemsMenu-CRBBIuc7.js} +8 -8
  111. package/dist/client/assets/{ThreadTerminalDrawer-Wd-He1GI.js → ThreadTerminalDrawer-Ci0mbLzJ.js} +4 -4
  112. package/dist/client/assets/{TooltipProvider-DMrkN3Xd.js → TooltipProvider-BH5ni_Lo.js} +2 -2
  113. package/dist/client/assets/{UQJE5E4I-DbEWChzq.js → UQJE5E4I-CeqBk-r6.js} +2 -2
  114. package/dist/client/assets/{USNYFO5S-D2NfvkZx.js → USNYFO5S-_1m41tJt.js} +2 -2
  115. package/dist/client/assets/{Virtualizer-C2gQRrRy.js → Virtualizer-DLB0FYm-.js} +2 -2
  116. package/dist/client/assets/{WEVWDWVA-CWLLvNnc.js → WEVWDWVA-DmSV8HLL.js} +2 -2
  117. package/dist/client/assets/{WorkspaceBreadcrumb-DDBBo54L.js → WorkspaceBreadcrumb-DQkeBQUl.js} +2 -2
  118. package/dist/client/assets/{WorkspacePageContainer-D-b_7VnU.js → WorkspacePageContainer-D2rx9iDg.js} +2 -2
  119. package/dist/client/assets/{WorkspacePageHeader-C8bAlMLy.js → WorkspacePageHeader-D8-RIRjQ.js} +2 -2
  120. package/dist/client/assets/{X5RFHQXM-B_4xBer1.js → X5RFHQXM-BUdDYXox.js} +2 -2
  121. package/dist/client/assets/{X62E3GBT-DH4DDJbS.js → X62E3GBT-BbQ7FmNB.js} +2 -2
  122. package/dist/client/assets/{XBNEOJTC-CH0FX2u2.js → XBNEOJTC-BLEZA-vx.js} +2 -2
  123. package/dist/client/assets/{YHV2MVVZ-vkFosclt.js → YHV2MVVZ-DM2RTtkR.js} +2 -2
  124. package/dist/client/assets/{YURCZMG2-CflztzI6.js → YURCZMG2-D5w6cPMY.js} +2 -2
  125. package/dist/client/assets/{YVG2LODB-BU5mIo0f.js → YVG2LODB-BkLbsaCo.js} +2 -2
  126. package/dist/client/assets/{_chat-rr4Pa6Jr.js → _chat-CKMs-ajx.js} +19 -19
  127. package/dist/client/assets/{_chat.design-DcTokS2n.js → _chat.design-CpqXODBn.js} +2 -2
  128. package/dist/client/assets/{_chat.index-Cx2rD23U.js → _chat.index-B0eOfZAf.js} +2 -2
  129. package/dist/client/assets/{_chat.new-Bef-dZPa.js → _chat.new-CqLuDynd.js} +2 -2
  130. package/dist/client/assets/{_chat.pull-requests-CEwED8fj.js → _chat.pull-requests-C4Eo8GDQ.js} +2 -2
  131. package/dist/client/assets/{alert-iNR43-xr.js → alert-D1O9oex3.js} +2 -2
  132. package/dist/client/assets/{alert-dialog-B7VzBOev.js → alert-dialog-3XDceRWv.js} +2 -2
  133. package/dist/client/assets/{assetUrls-BMHkXryh.js → assetUrls-Dq0gsqWs.js} +2 -2
  134. package/dist/client/assets/{assets-C96oF_eX.js → assets-C3_UZib9.js} +2 -2
  135. package/dist/client/assets/{browserHistoryStore-DcyxHvEZ.js → browserHistoryStore-CVCo7qfb.js} +2 -2
  136. package/dist/client/assets/{browserLinkTarget-5NDfBwMZ.js → browserLinkTarget-CopcRHna.js} +2 -2
  137. package/dist/client/assets/{checkbox-BnoBa5Yw.js → checkbox-CxRqp4sO.js} +2 -2
  138. package/dist/client/assets/{color-picker-DGBwf4df.js → color-picker-CvbP7BS3.js} +2 -2
  139. package/dist/client/assets/{combobox-BViCCYpe.js → combobox-CuyUAuiC.js} +2 -2
  140. package/dist/client/assets/{command-DD9AbES_.js → command-4bqVdX0m.js} +2 -2
  141. package/dist/client/assets/{connect-B3_KXIyQ.js → connect-DFGquf-O.js} +2 -2
  142. package/dist/client/assets/connect-agent-Db5rxxY1.js +2 -0
  143. package/dist/client/assets/{design-BwQ33zDs.js → design-DzoN9JgQ.js} +2 -2
  144. package/dist/client/assets/{device-CAueNfph.js → device-H2MyT_kA.js} +2 -2
  145. package/dist/client/assets/{dialog-DvBVJIw1.js → dialog-CrLVN_m6.js} +2 -2
  146. package/dist/client/assets/{diffPanelStore-B43kjSer.js → diffPanelStore-CxnPNigi.js} +2 -2
  147. package/dist/client/assets/{diffRendering-DwbgLJaq.js → diffRendering-cyTQV5bk.js} +2 -2
  148. package/dist/client/assets/{dist-B-8eHEk-.js → dist-J7s-H61h.js} +3 -3
  149. package/dist/client/assets/{draft-input-CBmbOI5j.js → draft-input-UuEBPJE8.js} +2 -2
  150. package/dist/client/assets/{duoViewer-Dml9fvvm.js → duoViewer-C3DQnADY.js} +2 -2
  151. package/dist/client/assets/{dynamic-C2hTfNo4.js → dynamic-PDa6LTqb.js} +2 -2
  152. package/dist/client/assets/{embeddedScripts-DmobRpxc.js → embeddedScripts-BDzRNXSL.js} +2 -2
  153. package/dist/client/assets/{empty-CGA6iTo1.js → empty-YMXgQbNI.js} +2 -2
  154. package/dist/client/assets/{entities-ygRGujH7.js → entities-HOBDIiHK.js} +2 -2
  155. package/dist/client/assets/{fileLinks-COT45KrB.js → fileLinks-BlT4My6t.js} +2 -2
  156. package/dist/client/assets/{fileTreeExpansion-t42YM2NT.js → fileTreeExpansion-D5nN-Oqd.js} +2 -2
  157. package/dist/client/assets/{getDiffFileInput-BRoo9f7T.js → getDiffFileInput-4gToQuSl.js} +2 -2
  158. package/dist/client/assets/{htmlRender-w5A35V7p.js → htmlRender-CUGVJXGf.js} +2 -2
  159. package/dist/client/assets/{index-BfU6cQrF.js → index-C04a0SKq.js} +3 -3
  160. package/dist/client/assets/{input-L7UBCORX.js → input-DxHa9qj5.js} +2 -2
  161. package/dist/client/assets/{input-group-B4A2yaVX.js → input-group-_rAbDbys.js} +2 -2
  162. package/dist/client/assets/{kbd-CNvVBYtE.js → kbd-DjUfNaix.js} +2 -2
  163. package/dist/client/assets/{keybindings-DoiXiZn5.js → keybindings-8_1sqf8s.js} +2 -2
  164. package/dist/client/assets/{lazy-BYuTmsKJ.js → lazy-C1dqAep6.js} +4 -4
  165. package/dist/client/assets/{lazyRouteComponent-DlaI8YOu.js → lazyRouteComponent-DLamKhHF.js} +2 -2
  166. package/dist/client/assets/{link-Vg2garcH.js → link-D1nkgCv7.js} +2 -2
  167. package/dist/client/assets/{linkedPrompt-Bg0S0srn.js → linkedPrompt-Quysf0mk.js} +2 -2
  168. package/dist/client/assets/main-BFdCLmkY.js +39 -0
  169. package/dist/client/assets/{mediaReference-BGHvhhnE.js → mediaReference-D19Dzoh3.js} +2 -2
  170. package/dist/client/assets/{mediaSource-CeGNee1z.js → mediaSource-DfsR3T70.js} +2 -2
  171. package/dist/client/assets/{modelScene-DtBAQ8-k.js → modelScene-CcF-Uii-.js} +2 -2
  172. package/dist/client/assets/{number-field-BRlzUJEB.js → number-field-CALZZPio.js} +2 -2
  173. package/dist/client/assets/{observeResize-CNiPL-bo.js → observeResize-DLmefMqO.js} +2 -2
  174. package/dist/client/assets/{onboarding-9Isl06ny.js → onboarding-plATuZco.js} +2 -2
  175. package/dist/client/assets/{openFileInPreview-CgNdFzHq.js → openFileInPreview-BCGQQ_Ia.js} +2 -2
  176. package/dist/client/assets/{p4ProjectFile-kzawDum5.js → p4ProjectFile-DCNJ4pTp.js} +2 -2
  177. package/dist/client/assets/{pair-ClGrg_fl.js → pair-umv6-haX.js} +2 -2
  178. package/dist/client/assets/{pendingSendStore-Kz-cNs4v.js → pendingSendStore-CgfQk4GV.js} +2 -2
  179. package/dist/client/assets/{phoneViewer-B5Ue7Mj_.js → phoneViewer-DJWjzgFc.js} +2 -2
  180. package/dist/client/assets/{pierre-icons-cxD685IX.js → pierre-icons-fv1goMS6.js} +2 -2
  181. package/dist/client/assets/{popover-DYDa4qjy.js → popover-DxCAIK62.js} +2 -2
  182. package/dist/client/assets/{preview-BypB2j7r.js → preview-Ce5ECOHv.js} +2 -2
  183. package/dist/client/assets/{preview-BPJ2QBFC.js → preview-x1tmlUez.js} +2 -2
  184. package/dist/client/assets/{previewMiniPlayerStore-C_zTFBAY.js → previewMiniPlayerStore-CEd7VI6J.js} +2 -2
  185. package/dist/client/assets/{primary-BP9P8Pte.js → primary-DcnaBKM0.js} +2 -2
  186. package/dist/client/assets/{primaryCloudLinkState-DRbP1pee.js → primaryCloudLinkState-TS0IW37f.js} +2 -2
  187. package/dist/client/assets/{projectFilesQueryState-DodSPNTI.js → projectFilesQueryState-DKw9S3nn.js} +2 -2
  188. package/dist/client/assets/{projectScriptEditor-DxYgPh8M.js → projectScriptEditor-DT7-Ivvb.js} +2 -2
  189. package/dist/client/assets/{providerSkills-DA9qtjVM.js → providerSkills-G8ld9nNp.js} +2 -2
  190. package/dist/client/assets/{pullRequestDetail.logic-Car0C0YH.js → pullRequestDetail.logic-Dm3mx1US.js} +2 -2
  191. package/dist/client/assets/{pullRequestIcons-CJzQ9q45.js → pullRequestIcons-D8rnFTkk.js} +2 -2
  192. package/dist/client/assets/{pullRequestReviewStore-CWrDaNh_.js → pullRequestReviewStore-C45fih_P.js} +2 -2
  193. package/dist/client/assets/{pullRequests-Dx8h1wyx.js → pullRequests-euX1Ch2G.js} +2 -2
  194. package/dist/client/assets/{queries-DY1lhLYl.js → queries-DNRXml7d.js} +2 -2
  195. package/dist/client/assets/{query-C-5C8CaD.js → query-Bw8YoCbO.js} +2 -2
  196. package/dist/client/assets/{radio-group-DpsCw8_-.js → radio-group-DpD3XHAp.js} +2 -2
  197. package/dist/client/assets/{relay-Bjm0weca.js → relay-YiJpGyaO.js} +2 -2
  198. package/dist/client/assets/{relayFailureReason-1tQ1xfnE.js → relayFailureReason-Baxcpnas.js} +2 -2
  199. package/dist/client/assets/{renderScheduler-Bza_olpQ.js → renderScheduler-BuGbk7RK.js} +2 -2
  200. package/dist/client/assets/{rightPanelStore-BNvdVe0q.js → rightPanelStore-BF1zmmXM.js} +2 -2
  201. package/dist/client/assets/{runtime-DGtwOpiP.js → runtime-DIAcbMTc.js} +5 -5
  202. package/dist/client/assets/{runtimeModeConfig-DicWhVdl.js → runtimeModeConfig-4g_-_dE2.js} +2 -2
  203. package/dist/client/assets/{scheduledTasksSettings.logic-u5XriP_U.js → scheduledTasksSettings.logic-BOrkdeD3.js} +2 -2
  204. package/dist/client/assets/{scroll-area-Ct6TrgZr.js → scroll-area-CokPD3-i.js} +2 -2
  205. package/dist/client/assets/{select-B3jSTp6e.js → select-CxYi0YMi.js} +2 -2
  206. package/dist/client/assets/{selfImproveFindings-Bw954UOu.js → selfImproveFindings-CE-lxRTw.js} +2 -2
  207. package/dist/client/assets/{server-BjY-vKW2.js → server-BNjk2K1j.js} +2 -2
  208. package/dist/client/assets/{session-CkASndp1.js → session-DMNo4Bh3.js} +2 -2
  209. package/dist/client/assets/{session-logic-C3HuEav7.js → session-logic-CELyWJ1v.js} +2 -2
  210. package/dist/client/assets/{settings-DpDhgaUs.js → settings-Bt6o5coA.js} +2 -2
  211. package/dist/client/assets/{settings.appearance-BMBe1DlC.js → settings.appearance-pkRxkhgs.js} +2 -2
  212. package/dist/client/assets/settings.archived-OjOh5b0A.js +2 -0
  213. package/dist/client/assets/{settings.computer-use-dlKT7XFQ.js → settings.computer-use-Dh6Z2-Jg.js} +2 -2
  214. package/dist/client/assets/{settings.connections-BaU6DQRh.js → settings.connections-F3LWiK8-.js} +2 -2
  215. package/dist/client/assets/{settings.data-controls-DrInQbPq.js → settings.data-controls-DgOo9a4b.js} +2 -2
  216. package/dist/client/assets/{settings.decisions-Dibz4qNv.js → settings.decisions-lQFEkC9t.js} +2 -2
  217. package/dist/client/assets/{settings.designs-BGdZiNGp.js → settings.designs-C1tyiETD.js} +2 -2
  218. package/dist/client/assets/settings.diagnostics-kp_wJw6e.js +2 -0
  219. package/dist/client/assets/{settings.general-rsdZzWCJ.js → settings.general-B5Kke4t3.js} +2 -2
  220. package/dist/client/assets/{settings.integrations-DK-S9Pa1.js → settings.integrations-CjiKCDy_.js} +2 -2
  221. package/dist/client/assets/{settings.keybindings-Coe8Ydce.js → settings.keybindings-CouYSmxE.js} +2 -2
  222. package/dist/client/assets/{settings.open-source-licenses--xUZ68RR.js → settings.open-source-licenses-CHFTLx1q.js} +2 -2
  223. package/dist/client/assets/{settings.plugins-DXoF7IBB.js → settings.plugins-StUBBho3.js} +3 -3
  224. package/dist/client/assets/{settings.projects-ChEJ7uSA.js → settings.projects-B_SxK9Cl.js} +3 -3
  225. package/dist/client/assets/{settings.providers-BYwf6_Ds.js → settings.providers-Ch16WkgV.js} +3 -3
  226. package/dist/client/assets/{settings.scheduled-tasks-Cu69dh_-.js → settings.scheduled-tasks-KNcUc94O.js} +2 -2
  227. package/dist/client/assets/{settings.secrets-CdyzqqJR.js → settings.secrets-2aMmfgKR.js} +2 -2
  228. package/dist/client/assets/{settings.snap-shot-DdYHf8Q5.js → settings.snap-shot-B5cEBXZD.js} +2 -2
  229. package/dist/client/assets/settings.source-control-G_TX95re.js +2 -0
  230. package/dist/client/assets/{settings.storage-CuUZoWfT.js → settings.storage-BdNNKm9m.js} +2 -2
  231. package/dist/client/assets/{settingsLayout-DbyBB8ZI.js → settingsLayout-CzGbLP4v.js} +2 -2
  232. package/dist/client/assets/{sidebar-Do4Myy34.js → sidebar-ovj9EiR4.js} +2 -2
  233. package/dist/client/assets/{sidebarProjectGrouping-Ks0H3W1r.js → sidebarProjectGrouping-DT6LCDEX.js} +2 -2
  234. package/dist/client/assets/{skeleton-M5MIqTy6.js → skeleton-0IEb3e4e.js} +2 -2
  235. package/dist/client/assets/{sourceControl-gpSCT1i6.js → sourceControl-CPobWWHq.js} +2 -2
  236. package/dist/client/assets/{sourceControlClients-YDf1HZkJ.js → sourceControlClients-4PlkytxQ.js} +2 -2
  237. package/dist/client/assets/{spinner-89SWutMk.js → spinner-7CSKKESP.js} +2 -2
  238. package/dist/client/assets/{src-upZEL2qH.js → src-BVovWpja.js} +2 -2
  239. package/dist/client/assets/{terminal-links-ztYtKVge.js → terminal-links-BTdovUFa.js} +2 -2
  240. package/dist/client/assets/{terminalSessions-DuQL-Su5.js → terminalSessions-EUiRWJti.js} +2 -2
  241. package/dist/client/assets/{textarea-Dk6r4lQ8.js → textarea-DMmmmGA1.js} +2 -2
  242. package/dist/client/assets/{themePalette-CwTOEe8R.js → themePalette-C7ZOgucT.js} +2 -2
  243. package/dist/client/assets/{threadCheckpoints-BBbnkFJd.js → threadCheckpoints-DjIk4Kvg.js} +2 -2
  244. package/dist/client/assets/{toggle-CzhtG7Ix.js → toggle-4vFx94TS.js} +2 -2
  245. package/dist/client/assets/{toggle-group-DVojM2PG.js → toggle-group-d6H735Xi.js} +2 -2
  246. package/dist/client/assets/{tooltip-CZBiwhnV.js → tooltip-CGvxq8k3.js} +2 -2
  247. package/dist/client/assets/{uiStateStore-DbqU-t2g.js → uiStateStore-MbQdhAPp.js} +2 -2
  248. package/dist/client/assets/{usage-CvKBHOpJ.js → usage-Da_tm2dn.js} +2 -2
  249. package/dist/client/assets/{usageAccess-12EW-JWb.js → usageAccess-B-HGPPkp.js} +2 -2
  250. package/dist/client/assets/{usageFormat-Bpgdmf94.js → usageFormat-DcON9Kz_.js} +2 -2
  251. package/dist/client/assets/{usageShortcuts-BK6jQ69t.js → usageShortcuts-B_o9XxKX.js} +2 -2
  252. package/dist/client/assets/{use-atom-command-Dv8zTjOp.js → use-atom-command-C4Tyb1VL.js} +2 -2
  253. package/dist/client/assets/{useAriaLabelledBy-CLMjXrdj.js → useAriaLabelledBy-CcwjH1QH.js} +2 -2
  254. package/dist/client/assets/useHandleNewThread-Qb_yy6KY.js +2 -0
  255. package/dist/client/assets/{useLocation-DsTBGqgr.js → useLocation-CIvcNoeU.js} +2 -2
  256. package/dist/client/assets/{useNavigate-DeDarx0_.js → useNavigate-DVrOlf8m.js} +2 -2
  257. package/dist/client/assets/{useNavigateBack-nU9Xh3KX.js → useNavigateBack-Dmf0SIc3.js} +2 -2
  258. package/dist/client/assets/{useP4ConnectAuthPrompt-wImG3qls.js → useP4ConnectAuthPrompt-BPXqJdyY.js} +2 -2
  259. package/dist/client/assets/{useParams-D8m5ONq0.js → useParams-BeJIRxxE.js} +2 -2
  260. package/dist/client/assets/{usePermissionStatus-DPEHxlfG.js → usePermissionStatus-Cx1Wuwk0.js} +2 -2
  261. package/dist/client/assets/{usePopupViewport-DDPbext7.js → usePopupViewport-OR_PF2s-.js} +2 -2
  262. package/dist/client/assets/{usePullRequestActions-Bk-wSv5o.js → usePullRequestActions-B_Nrg846.js} +2 -2
  263. package/dist/client/assets/{useRegisterFieldControl-By1bF-jd.js → useRegisterFieldControl-B72Afmil.js} +2 -2
  264. package/dist/client/assets/{useScopedModelAvailability-CTzd1AsV.js → useScopedModelAvailability-DVQ42jT4.js} +2 -2
  265. package/dist/client/assets/{useSettings-DwDYuiOf.js → useSettings-BWMcQzC-.js} +2 -2
  266. package/dist/client/assets/{utils-sVhLpEl6.js → utils-DFNDxNZi.js} +2 -2
  267. package/dist/client/assets/{vcsRefInvalidation-9bbPf9DL.js → vcsRefInvalidation-CV8dYgi0.js} +2 -2
  268. package/dist/client/assets/{welcome-D36q57wJ.js → welcome-BxhPM21H.js} +2 -2
  269. package/dist/client/index.html +1 -1
  270. package/dist/{preview-D0Bi2g4U.mjs → preview-BGylKXB6.mjs} +5 -3
  271. package/dist/{renderer-Cq4PzLVY.mjs → renderer-CQkeNW9b.mjs} +2 -2
  272. package/dist/{runtime-Cy8_QlEa.mjs → runtime-O5AWAEzD.mjs} +2 -2
  273. package/dist/{runtimeLayer-DUru7wpz.mjs → runtimeLayer-C-Fo4HWH.mjs} +1 -1
  274. package/dist/{runtimeLayer-DZa24xtO.mjs → runtimeLayer-ChPBglJB.mjs} +535 -481
  275. package/dist/{server-BK48ByhE.mjs → server-CsS0d2BE.mjs} +116 -15
  276. package/dist/{sha2-D9ocDAIA.mjs → sha2-BjjJcoUu.mjs} +4 -1
  277. package/package.json +1 -1
  278. package/dist/client/assets/AlertDialogRoot-3k-2cSKF.js +0 -2
  279. package/dist/client/assets/Input-DRxcOIy1.js +0 -2
  280. package/dist/client/assets/JZOYTAAL-CaZB6S8Y.js +0 -1
  281. package/dist/client/assets/PreviewPanel-DzlmHQZw.js +0 -2
  282. package/dist/client/assets/ProviderModelPicker-Dj26-4yu.js +0 -2
  283. package/dist/client/assets/connect-agent-CX7YZ3cf.js +0 -2
  284. package/dist/client/assets/main-CNs583QD.js +0 -39
  285. package/dist/client/assets/settings.archived-UyT8Vo2k.js +0 -2
  286. package/dist/client/assets/settings.diagnostics-30yarj2c.js +0 -2
  287. package/dist/client/assets/settings.source-control-x5yuK078.js +0 -2
  288. package/dist/client/assets/useHandleNewThread-Do-y1VVt.js +0 -2
@@ -4,9 +4,9 @@ import { i as __toESM, n as __exportAll, r as __require, t as __commonJSMin } fr
4
4
  import { i as Y8e, n as OZt, t as CZt } from "./sdk-C8tgjyIq.mjs";
5
5
  import { $c as none$1, $i as fail$4, $n as get$6, $o as has$2, $r as addFinalizerExit, $t as runForkWith, Ac as succeed$3, Ai as die, An as uninterruptibleMask, Au as isString, B as fiber, Bc as fromUndefinedOr, Bi as succeed$4, Bt as partition, C as catchTag, Ca as pretty, Cc as getSuccess, Ci as isDone, Cn as timeoutOrElse, Cr as isDoneCause, Cs as zero, Ct as mapBoth, Cu as isNotUndefined, D as context, Di as poll, Dn as txRetry, Ds as empty$5, Ea as squash, Ec as isSuccess, Ei as makeUnsafe$5, En as tx, Er as Clock, Es as add, Et as mapError, Eu as isObject$2, F as exit, Fi as interrupt$3, Fl as NodeInspectSymbol, Fn as whileLoop, Fr as effect, Fs as makeUnsafe$7, G as filterOrFail, Gc as getOrUndefined$1, Gl as assignProperties, Gn as yieldNow, Gr as succeed$2, Gs as filterMap, Gu as identity, Hc as getOrNull, Hn as withSpan, Ho as decode, Hr as mergeAll, Hs as empty$4, Ht as provide$2, Hu as constant, I as fail$1, Ic as flatMap$1, Ii as isExit, Il as toJson, Ir as effectContext, Is as merge$1, It as onInterrupt, J as flatMap, Jc as isSome, Jr as sync$1, Jt as repeat, K as findFirst, Kc as isNone, Kl as assignProperty, Kn as zip, L as failCause$1, Lc as flatten$1, Li as isFailure, Ll as format, Ln as withFiber, Lo as ParentSpan, Lr as effectDiscard, Lt as option, M as die$1, Mi as failCause$2, Ml as setStackTraceLimit, Mn as useSpan, Mr as build, Ms as getOrUndefinedUnsafe, Mt as never, Nc as exists, Nn as void_, Nr as buildWithMemoMap, Ns as getUnsafe, Nt as onError, O as contextWith, Oi as succeed$1, On as undefined_, Or as currentTimeMillis, Os as get$5, Ot as match$2, P as ensuring, Pc as filter, Pi as hasInterrupts, Pr as catch_$1, Ps as make$74, Pt as onExit, Q as fnUntraced, Qc as match, Qn as empty$2, Qo as compose, Qr as addFinalizer, Qt as runFork, Ri as isSuccess$1, Rt as orDie, S as catchReason, Si as isDeferred, Sn as timeoutOption, St as map, T as catch_, Ti as make$75, Tn as try_, Ts as Service$1, Tu as isNumber, U as filterMapOrFail, Uc as getOrThrow, Ui as ExceededCapacityError, Uo as encode$2, Ur as provide, Ut as provideContext, Uu as dual, V as filter$1, Vc as getOrElse, Vi as void_$1, Vn as withParentSpan, Vr as merge, Vt as promise, Vu as constVoid, W as filterOrElse, Wn as withTracerEnabled, Wr as provideMerge, Wt as provideService, Wu as flow, X as flatten, Xc as makeOrder, Xn as RequestPrototype, Xr as unwrap, Xt as result, Yo as TaggedError, Yr as tap$1, Z as fn, Zc as map$1, Zi as die$2, Zl as make$73, Zn as clear$1, Zr as Scope, Zt as retry, Zu as pipeArguments, _ as catchCauseIf, _i as doneUnsafe, _n as tapCause, _o as reportCauseUnsafe, _s as seconds, _t as logError, a as all, aa as hasDies, ai as makeUnsafe$6, an as scope, ao as forkUnsafe, as as hours, at as forkScoped, au as array, bn as tapErrorTag, br as catchDone, bs as toMillis, bt as logWarning$1, c as annotateLogs, ca as hasInterruptsOnly, cn as service, cs as isFinite, ct as gen$1, d as asSome, da as isCause, dn as succeed, ds as max, dt as interrupt$1, ea as filterInterruptors, ec as isArrayNonEmpty, ei as close, el as orElse, en as runPromise, er as has$1, es as toPredicate, et as forEach, f as asVoid, fa as isDieReason, fc as sort, fn as succeedNone, fs as millis$1, ft as interruptible, g as catchCause, gi as done, gn as tap, go as onExitUnsafe, gr as spaced, gt as logDebug, h as callback, ha as isInterruptReason, hn as sync, hu as hasProperty, i as addFinalizer$1, ia as fromReasons, ii as make$76, in as runSyncWith, ir as size$3, is as fromInputUnsafe, it as forkIn, iu as symbol$1, j as delay, ji as fail$2, jl as getStackTraceLimit, jr as CurrentMemoMap, js as getOrUndefined, jt as matchEffect, ju as isTagged, ki as asVoidAll, kn as uninterruptible, kt as matchCauseEffect, la as interrupt$2, ln as serviceOption, ls as isNegative, lt as ignore, m as cachedInvalidateWithTTL, ma as isFailReason, mc as empty$3, mi as _await, mn as suspend, ms as minutes, mt as isSuccess$2, n as acquireRelease, na as findErrorOption, ni as fork, nl as toArray$2, nr as remove$1, ns as format$1, nt as forkChild, o as andThen, oi as provide$1, on as scoped, or as addDelay, os as infinity, ot as fromOption, p as cached, pl as mapInput, pr as modifyDelay, ps as min, pt as isEffect, pu as symbol$2, q as firstSuccessOf, qi as TimeoutError, ql as normalize, qn as zipWith, qr as suspend$1, qt as raceFirst, r as acquireUseRelease, ri as forkUnsafe$1, rr as set$3, rs as fromInput, rt as forkDetach, s as annotateCurrentSpan, sa as hasInterrupts$1, sl as flip, sr as exponential, ss as isDuration, st as fromResult, t as Transaction, ti as closeUnsafe, tl as some, tn as runPromiseWith, ts as days, tt as forever, tu as equals$1, u as as, ua as interruptors, ui as CurrentStackFrame, un as sleep, ur as identity_, us as isZero, ut as ignoreCause, uu as string, v as catchDefect, vc as fail$5, vi as fail$3, vl as PipeInspectableProto, vn as tapDefect, vt as logFatal, w as catchTags, wc as isFailure$1, wi as isDoneUnsafe, wn as tryPromise, ws as Reference, wu as isNullish, x as catchIf, xi as into, xn as timeout, xt as makeSpanScoped, yc as failVoid, yi as failCause$3, yn as tapError, ys as times, yt as logInfo, zc as fromNullishOr, zi as match$1, zo as externalSpan, zt as orElseSucceed, zu as constTrue } from "./Effect-DwQPN8rO.mjs";
6
6
  import { $r as fromInput$1, $t as makeFilter, A as Number$1, Ai as make$77, An as concat, At as fromJsonString, Bt as isLessThanOrEqualTo, Ci as add$1, D as NonEmptyString$1, Di as isGreaterThanOrEqualTo$1, Dn as isUnspecified, Dt as encodeUnknownEffect, E as NonEmptyArray, Ei as isGreaterThan$1, Et as encodeTo, F as Record$1, Fi as nowInCurrentZone, Fn as omit, Ft as isGreaterThan, G as TemplateLiteral, Gi as decode$1, Gt as isPattern, H as StructWithRest, Hi as toParts, Ii as nowUnsafe, It as isGreaterThanOrEqualTo, J as Tuple, Jt as isSchemaError, K as Trim, Li as setParts, Lt as isInt, Mn as assign, Mt as is, Ni as min$1, Nr as transformOptional, Nt as isBetween, O as Null, Oi as isLessThan, Ot as encodeUnknownExit, Pi as now, Pt as isFinite$1, Qr as empty$6, R as SchemaError, Ri as subtract, Rr as defaultFormatter, S as Literals, Si as Order, Sr as transform$1, St as decodeUnknownSync, T as Never, Ti as formatIso, Tn as isInetAddress, Tt as encodeSync, U as TaggedError$1, Ui as toUtc, Ut as isMinLength, V as Struct, Vi as toEpochMillis, Vt as isMaxLength, Wi as withCurrentZoneLocal, Wn as make$79, Wt as isNonEmpty, X as URLFromString, Yt as isStartingWith, Z as Uint8Array$1, Zt as isUUID, _ as Finite, _n as withConstructorDefault, _t as decodeTo, at as annotate, b as Json, bn as formatIp, bt as decodeUnknownOption, c as DateTimeUtc, cn as tag, di as value, en as mutable, et as UndefinedOr, fn as toEncoded, gn as toType, gr as toEncoded$1, gt as decodeSync, h as Exit, hn as toTaggedUnion, ht as decodeOption, it as Void, j as NumberFromString, ji as makeUnsafe$8, jr as transform, k as NullOr, ki as isLessThanOrEqualTo$1, kr as passthrough, kt as fieldsAssign, l as DateTimeUtcFromString, li as isRedacted, m as Error$6, mn as toJsonSchemaDocument, n as ArraySchema, nn as optional$2, nt as Unknown, p as DurationFromString, pn as toEquivalence, pt as decodeEffect, qi as encode$3, qt as isSchema, r as Boolean$1, ri as merge$2, rn as optionalKey, s as Class$1, sn as suspend$2, st as brand, t as Any, tn as mutableKey, tt as Union, u as Defect, ui as make$78, un as toCodecJson, ut as check, vn as withDecodingDefault, vt as decodeUnknownEffect, w as Natural, wi as addDuration, wt as encodeEffect, x as Literal, xi as Equivalence, xn as formatUrlHostString, xt as decodeUnknownResult, y as Int, yt as decodeUnknownExit, z as String$1 } from "./Schema-CdYZrGX6.mjs";
7
- import { $c as OrchestrationWorkflowFileError, $m as AcpRegistryOperationError, $p as bodyJsonUnsafe, $t as exitSchema$1, Aa as AntigravitySettings, Ao as UsageReadError, Ar as AgentSessionSource, Au as isProviderSendTurnSupportedImageMimeType, Bh as EventId, Bl as PullRequestSummary, Bp as filterStatusOk, Ca as TerminalHistoryError, Co as value$1, Da as TerminalResizeError, Dc as OrchestrationV2ProviderGoal, Dh as CheckpointId, Dr as AgentSessionImportProjectNotFoundError, Ea as TerminalProviderInstanceNotFoundError, Ec as OrchestrationV2ProviderFailure, Er as AgentSessionImportProjectChangedError, Eu as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Fh as CommandId, Fi as SecretRequestError, Fu as make$83, Gc as OrchestrationV2Subagent, Gf as asUint8Array, Hc as OrchestrationV2StopWorkflowError, Hh as MessageId$2, Hl as pullRequestHostOf, Hu as patch, Ii as MIN_SCHEDULED_TASK_INTERVAL_MS, Im as isPlatformError, Ip as stream, Jh as ProjectId, Ji as GitPullRequestMaterializationError, Jl as SourceControlProviderKind, Ki as GitCommandError, Km as Retry, Kp as schemaBodyJson, Li as ScheduledTask, Ll as PullRequestOperationError, Lp as text$4, Lu as del, Ml as ThreadLinkedPullRequest, Na as ClaudeSettings, Nc as OrchestrationV2ProviderTurn, Nu as make$82, Oa as TerminalSessionLookupError, Oc as OrchestrationV2ProviderRetry, Od as HttpServerRequest, Oh as CheckpointRef, Ol as ProviderInteractionMode, Or as AgentSessionImportSource, Pa as CodexSettings, Pm as PlatformError, Qm as AcpRegistryListSessionsResult, Qn as PreviewAutomationUnavailableError, Qp as bodyJson, Qt as ServerClient, Rc as OrchestrationV2RuntimeRequest, Ri as ScheduledTaskError, Rl as PullRequestStack, Rm as CurrentErrorReporters, Rp as uint8Array, Ru as get$8, Sa as TerminalCwdStatError, Sm as isHttpClientError, So as symbol$3, Sp as empty$7, Ta as TerminalProviderEnvironmentError, Tc as OrchestrationV2PlanArtifact, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, Ud as Path$1, Uf as NoContent, Ul as pullRequestProviderRequirement, Uu as post$1, Vh as IsoDateTime, Vl as PullRequestUnavailableError, Vp as fromWeb, Wd as layer$89, Wf as StreamSse, Wh as NonNegativeInt$1, Wl as resolvePullRequestAuthorFilter, Wu as put, Xh as ProviderThreadId, Xp as bearerToken, Xt as make$81, Yh as ProviderSessionId, Yi as TextGenerationError, Ys as annotations, Zc as OrchestrationV2TurnItem, Zh as ProviderTurnId, Zm as AcpRegistryListProvidersResult, Zt as ParseOptions, _a as ProviderSetupError, _d as transform$2, _u as supportsProviderMcpSignIn, aa as isProviderAvailable, ag as ThreadId, al as linkOriginIsFenced, am as get$7, ao as resolveProjectProviderInstanceEnabled, at as WORKTREE_SETUP_ERROR_MAX_LENGTH, au as VcsUnsupportedOperationError, ba as TerminalCwdNotDirectoryError, cd as get$9, cg as TurnItemId, cm as prependUrl, dd as mapRequest, dm as setHeader, dn as ResourceMonitorCommand, ea as ServerProvider, ec as AUTO_WORKSPACE_NOTICE_TITLE, ed as HttpServer, eh as AcpRegistryOperationErrorReason, el as autoWorkspaceNoticeMessage, en as isWrapper, es as DECISION_MODELS, fd as mapRequestEffect, fh as ModelCapabilities, fi as OrchestratorMcpFailure, fm as setHeaders, fn as ResourceMonitorEvent, fo as PREVIEW_URL_MAX_LENGTH, fu as McpServerTransport, gh as ProviderInstanceId, go as PreviewInvalidUrlError, gu as resolveRegistryEntryEnabled, hh as ProviderDriverKind, ho as PreviewControlRequiredError, hu as mcpProviderSupport, id as HttpClient, ig as SecretRef, ih as ANTIGRAVITY_DEFAULT_MODEL, il as latestProviderTurnForAttempt, in as isStreamSchema, io as resolveIdleCompaction, jc as OrchestrationV2ProviderThread, jl as RuntimeMode, ju as Service$2, ka as TerminalWriteError, kc as OrchestrationV2ProviderSession, kh as CheckpointScopeId, km as FileSystem, kr as AgentSessionScanError, lg as bytes, lu as McpServerId, mn as McpCapabilityUnavailableError, nc as ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE, ng as RuntimeRequestId, nh as officialAcpRegistryIconUrlForAgentId, nl as isOrchestrationV2WorkActive, nm as bodyUrlParams, nn as ClientAbort, nr as McpAppRequestError, oc as OrchestrationV2AppThread, og as TrimmedNonEmptyString, ol as orchestrationV2RunWorkStartedAt, oo as resolveProviderInstanceEnabled, os as resolveDecisionBackend, ot as WORKTREE_SETUP_STAGE_ORDER, ou as ModelSelection, pc as OrchestrationV2ConversationMessage, ph as PREFERRED_DEFAULT_CODEX_MODELS, pu as PluginId, qh as PositiveInt$1, qi as GitManagerError, ql as SourceControlProviderError, qm as decode$2, qu as add$2, rg as ScheduledTaskId, rh as resolveOfficialAcpRegistryIconUrl, rl as isProviderNativeSubagentThread, rn as getStreamSchemas, rs as DecisionResult, sa as isProviderWorkspaceSnapshotCurrent, sd as filterStatusOk$1, sh as DEFAULT_MODEL_BY_PROVIDER, sl as parseGoalCommand, sm as post, sp as CloseEvent, t as sha256, ta as ServerProviderCompatibilityStatus, tc as AUTO_WORKSPACE_UNDECIDED_REASON, tg as RunId, th as AcpRegistryProbeResult, tm as bodyText, tn as make$80, to as providerInstanceConfigEnabledFlag, ts as DecisionError, tu as VcsProcessSpawnError, uo as FILL_PREVIEW_VIEWPORT, up as SocketErrorReason, uu as McpServerName, vc as OrchestrationV2DispatchRejectionReason, vd as transformResponse, vh as defaultInstanceIdForDriver, vm as HttpClientError, vo as PreviewSessionLookupError, wa as TerminalNotRunningError, xa as TerminalCwdNotFoundError, xc as OrchestrationV2ExecutionNode, xm as TransportError, xu as ChatAttachment, yc as OrchestrationV2DomainEvent, yd as withScope, ym as HttpClientErrorSchema, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zh as EnvironmentId, zi as ScheduledTaskWebhookDeliveryId } from "./sha2-D9ocDAIA.mjs";
7
+ import { $c as OrchestrationWorkflowFileError, $m as AcpRegistryOperationError, $p as bodyJsonUnsafe, $t as exitSchema$1, Aa as AntigravitySettings, Ao as UsageReadError, Ar as AgentSessionSource, Au as isProviderSendTurnSupportedImageMimeType, Bh as EventId, Bl as PullRequestSummary, Bp as filterStatusOk, Ca as TerminalHistoryError, Co as value$1, Da as TerminalResizeError, Dc as OrchestrationV2ProviderGoal, Dh as CheckpointId, Dr as AgentSessionImportProjectNotFoundError, Ea as TerminalProviderInstanceNotFoundError, Ec as OrchestrationV2ProviderFailure, Er as AgentSessionImportProjectChangedError, Eu as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Fh as CommandId, Fi as SecretRequestError, Fu as make$83, Gc as OrchestrationV2Subagent, Gf as asUint8Array, Hc as OrchestrationV2StopWorkflowError, Hh as MessageId$2, Hl as pullRequestHostOf, Hu as patch, Ii as MIN_SCHEDULED_TASK_INTERVAL_MS, Im as isPlatformError, Ip as stream, Jh as ProjectId, Ji as GitPullRequestMaterializationError, Jl as SourceControlProviderKind, Ki as GitCommandError, Km as Retry, Kp as schemaBodyJson, Li as ScheduledTask, Ll as PullRequestOperationError, Lp as text$4, Lu as del, Ml as ThreadLinkedPullRequest, Na as ClaudeSettings, Nc as OrchestrationV2ProviderTurn, Nu as make$82, Oa as TerminalSessionLookupError, Oc as OrchestrationV2ProviderRetry, Od as HttpServerRequest, Oh as CheckpointRef, Ol as ProviderInteractionMode, Or as AgentSessionImportSource, Pa as CodexSettings, Pm as PlatformError, Qm as AcpRegistryListSessionsResult, Qn as PreviewAutomationUnavailableError, Qp as bodyJson, Qt as ServerClient, Rc as OrchestrationV2RuntimeRequest, Ri as ScheduledTaskError, Rl as PullRequestStack, Rm as CurrentErrorReporters, Rp as uint8Array, Ru as get$8, Sa as TerminalCwdStatError, Sm as isHttpClientError, So as symbol$3, Sp as empty$7, Ta as TerminalProviderEnvironmentError, Tc as OrchestrationV2PlanArtifact, Tu as PROVIDER_SEND_TURN_MAX_FILE_BYTES, Ud as Path$1, Uf as NoContent, Ul as pullRequestProviderRequirement, Uu as post$1, Vh as IsoDateTime, Vl as PullRequestUnavailableError, Vp as fromWeb, Wd as layer$89, Wf as StreamSse, Wh as NonNegativeInt$1, Wl as resolvePullRequestAuthorFilter, Wu as put, Xh as ProviderThreadId, Xp as bearerToken, Xt as make$81, Yh as ProviderSessionId, Yi as TextGenerationError, Ys as annotations, Zc as OrchestrationV2TurnItem, Zh as ProviderTurnId, Zm as AcpRegistryListProvidersResult, Zt as ParseOptions, _a as ProviderSetupError, _d as transform$2, _u as supportsProviderMcpSignIn, aa as isProviderAvailable, ag as ThreadId, al as linkOriginIsFenced, am as get$7, ao as resolveProjectProviderInstanceEnabled, at as WORKTREE_SETUP_ERROR_MAX_LENGTH, au as VcsUnsupportedOperationError, ba as TerminalCwdNotDirectoryError, cd as get$9, cg as TurnItemId, cm as prependUrl, dd as mapRequest, dm as setHeader, dn as ResourceMonitorCommand, ea as ServerProvider, ec as AUTO_WORKSPACE_NOTICE_TITLE, ed as HttpServer, eh as AcpRegistryOperationErrorReason, el as autoWorkspaceNoticeMessage, en as isWrapper, es as DECISION_MODELS, fd as mapRequestEffect, fh as ModelCapabilities, fi as OrchestratorMcpFailure, fm as setHeaders, fn as ResourceMonitorEvent, fo as PREVIEW_URL_MAX_LENGTH, fu as McpServerTransport, gh as ProviderInstanceId, go as PreviewInvalidUrlError, gu as resolveRegistryEntryEnabled, hh as ProviderDriverKind, ho as PreviewControlRequiredError, hu as mcpProviderSupport, id as HttpClient, ig as SecretRef, ih as ANTIGRAVITY_DEFAULT_MODEL, il as latestProviderTurnForAttempt, in as isStreamSchema, io as resolveIdleCompaction, jc as OrchestrationV2ProviderThread, jl as RuntimeMode, ju as Service$2, ka as TerminalWriteError, kc as OrchestrationV2ProviderSession, kh as CheckpointScopeId, km as FileSystem, kr as AgentSessionScanError, lg as bytes, lu as McpServerId, mn as McpCapabilityUnavailableError, nc as ORCHESTRATION_V2_WORKSPACE_PREPARATION_FAILURE_CODE, ng as RuntimeRequestId, nh as officialAcpRegistryIconUrlForAgentId, nl as isOrchestrationV2WorkActive, nm as bodyUrlParams, nn as ClientAbort, nr as McpAppRequestError, oc as OrchestrationV2AppThread, og as TrimmedNonEmptyString, ol as orchestrationV2RunWorkStartedAt, oo as resolveProviderInstanceEnabled, os as resolveDecisionBackend, ot as WORKTREE_SETUP_STAGE_ORDER, ou as ModelSelection, pc as OrchestrationV2ConversationMessage, ph as PREFERRED_DEFAULT_CODEX_MODELS, pu as PluginId, qh as PositiveInt$1, qi as GitManagerError, ql as SourceControlProviderError, qm as decode$2, qu as add$2, rg as ScheduledTaskId, rh as resolveOfficialAcpRegistryIconUrl, rl as isProviderNativeSubagentThread, rn as getStreamSchemas, rs as DecisionResult, sa as isProviderWorkspaceSnapshotCurrent, sd as filterStatusOk$1, sh as DEFAULT_MODEL_BY_PROVIDER, sl as parseGoalCommand, sm as post, sp as CloseEvent, t as sha256, ta as ServerProviderCompatibilityStatus, tc as AUTO_WORKSPACE_UNDECIDED_REASON, tg as RunId, th as AcpRegistryProbeResult, tm as bodyText, tn as make$80, to as providerInstanceConfigEnabledFlag, ts as DecisionError, tu as VcsProcessSpawnError, uo as FILL_PREVIEW_VIEWPORT, up as SocketErrorReason, uu as McpServerName, vc as OrchestrationV2DispatchRejectionReason, vd as transformResponse, vh as defaultInstanceIdForDriver, vm as HttpClientError, vo as PreviewSessionLookupError, wa as TerminalNotRunningError, xa as TerminalCwdNotFoundError, xc as OrchestrationV2ExecutionNode, xm as TransportError, xu as ChatAttachment, yc as OrchestrationV2DomainEvent, yd as withScope, ym as HttpClientErrorSchema, za as DEFAULT_PROVIDER_HEALTH_REFRESH_INTERVAL, zh as EnvironmentId, zi as ScheduledTaskWebhookDeliveryId } from "./sha2-BjjJcoUu.mjs";
8
8
  import { $ as mkString, A as fromEffect, Bn as makeUnsafe$10, C as filterMapEffect, Cn as sizeUnsafe, Ct as suspend$3, D as fromArray, Dn as takeUnsafe, En as takeAll, Et as takeUntilEffect, Gn as interruptAll, Hn as await_, I as fromQueue, In as unbounded$1, J as mapEffect, Jn as join, Jt as mapInput$1, M as fromIterable, Mn as shutdown$1, Mt as toAsyncIterable, N as fromIteratorSucceed, Nn as sliding$1, Nt as toAsyncIterableWith, O as fromAsyncIterable, On as unbounded$2, Ot as tap$2, P as fromPubSub, Pn as subscribe, R as fromSubscription, Sn as shutdownUnsafe, St as succeed$5, T as flattenIterable, Tn as take$1, Tt as takeUntil, U as make$86, Un as getCurrent, Ut as drain$1, V as interruptWhen, Vn as awaitAll, Vt as unwrap$1, W as map$2, Wn as interrupt$4, Wt as forEach$1, X as merge$3, Xt as decodeText$2, Y as mapError$1, Yn as runIn, Z as mergeAll$1, _ as ensuring$1, _n as offer$1, _t as runForEachArray, a as catch_$2, an as makeUnsafe$9, b as filter$2, c as concat$1, cn as collect$1, dt as run$1, f as drain, fn as fail$6, ft as runCollect, g as encodeText, gn as make$85, gt as runForEach, h as empty$8, hn as interrupt$5, in as make$84, it as pipeThroughChannel, j as fromEffectRepeat, jn as publishUnsafe, jt as timeoutOrElse$1, kn as publish, mt as runFold, n as catchCause$1, o as changes$1, on as bounded, pn as failCause$4, pt as runDrain, qn as interruptAs, rt as paginate$1, s as changesWith, sn as clear$2, t as callback$1, tt as onEnd, u as decodeText$1, un as end, v as fail$7, vn as offerAll, vt as runHead, w as flatMap$2, wn as sliding, wt as switchMap, x as filterEffect, xn as shutdown$2, y as failCause$5, yn as offerUnsafe } from "./Stream-F-Z4HJeD.mjs";
9
- import { $n as fromReadable, $o as buildSelectOptionDescriptor, $s as collectUint8StreamText, $t as resolveAutoFeatureBranchName, Al as set$5, Ao as readOnly$1, Ar as version$1, At as terminalSessionsTotal, Au as makeBytes, Bc as set$6, Bi as chatMarkdownImageSources, Bl as updateAndGet$1, Bs as codexModelFamily, C as formatPatch, Ca as P4_MCP_TOOL_NAMES, Cc as HomeDirectory, Cl as getSuccess$1, Co as PersistenceSqlError, Ct as providerTurnDuration, D as SourceControlRateLimit, Da as MCP_APP_MIME_TYPE, Dc as Platform, Dl as make$92, Do as findOneOption, Dr as isSecretAlreadyExistsError, Ds as errorTag, Dt as secretRefsConsumedTotal, E as Interactive, Ec as IsExecutable, Ei as resolveAttachmentPathById, El as keys, Eo as findAll, Er as ServerSecretStore, Eu as make$91, Fa as readMcpAppPermissions, Fc as make$89, Fl as getAndUpdate, Ft as withCommandMetrics, Fu as rehome, G as layer$106, Gi as codes$1, Gl as ecdsaP384, Gn as GrokSettings, Gr as resolveServerBackgroundActivitySettings, Gs as getProviderOptionCurrentValue, Gt as detectSourceControlProviderFromGitRemoteUrl, H as resolveProjectSettings, Hi as remarkGfm, Hn as PiSettings, Hs as formatCodexModelName, Ic as get$12, Ii as latestExecutedRun, Il as make$87, Is as compareSemverVersions, It as withMetrics, J as layer$97, Ji as isAttachmentOnlyBootstrapPrompt, Jl as family, Jn as AcpRegistrySettings, Jo as layer$94, Js as modelSelectionsEqual, Jt as isTemporaryWorktreeBranch, K as planThreadDeletion, Ki as longestStreak, Kl as ecdsaP521, Kn as FxSettings, Ks as getProviderOptionDescriptors, Kt as flattenTemporaryWorktreeBranchName, L as extractBranchNameFromRemoteRef, Lc as make$90, Li as latestRootProviderFailure, Ll as modify$2, Ln as subscribeBeforeSnapshot, Ls as parseSemver, Lt as normalizeModelMetricLabel, Lu as runWithReference, Ml as nextIntBetween, Mt as webhookDeliveryDuration, Mu as fail$8, N as VcsProcess, Na as mcpAppToolCallableByApp, Ni as derivePendingBackgroundWork, Nl as get$10, Ns as makeAsyncRotatingFileSink, Nt as webhookHeldDelay, Nu as invalidKey$2, Oa as MCP_APP_OUTPUT_KEY, Oi as toSafeThreadAttachmentSegment, Ol as makeWith, Oo as void_$2, Ou as copyBytes, P as layer$96, Pa as readMcpAppCsp, Pi as pendingBackgroundTurnItems, Pl as getAndSet, Pn as DesktopTelemetryReceiver, Pr as ServerConfig$1, Pt as webhookRunsTotal, Pu as notExtractable, Q as derive, Qi as isExplicitRelativePath, Ql as family$2, Qo as buildBooleanOptionDescriptor, Qt as parseOriginUrlFromGitConfig, Rc as modify$3, Ri as runRanAfter, Rl as set$4, Rn as subscribeBeforeSnapshotWithoutMutex, Rs as satisfiesSemverRange, Rt as make$94, S as FILE_HEADERS_ONLY, Sa as toolOutputImages, Sc as ExecutablePath, Sl as getOption$1, Sn as layer$91, So as PersistenceDecodeError, St as providerSessionsTotal, Ta as MCP_APP_EXTENSION_ID, Ti as resolveAttachmentPath, Tl as invalidateAll, Tn as ServerEnvironmentIdentity, Ts as causeErrorTag, Uc as SqlClient, Ui as types, Ul as Signature, Un as OpenCodeSettings, Ur as resolveSourceControlWriterModelSelection, Us as getModelSelectionBooleanOptionValue, Uu as update$6, V as hasProjectSettingsOverrides, Vc as update$5, Vi as formatThreadLink, Vs as createModelCapabilities, Vt as RepositoryIdentityResolver, Vu as Unsupported, W as ProjectService, Wi as constants, Wl as ecdsaP256, Wn as MuseSettings, Wr as getBackgroundActivityPresetSettings, Ws as getModelSelectionStringOptionValue, Wt as buildTemporaryWorktreeBranchName, Wu as withAttributes, X as layer$105, Xl as rsaPkcs1v15, Xo as COMPACT_SLASH_COMMAND, Xs as readCustomModelEntries, Xt as normalizeGitRemoteUrl, Y as LegacyV1ThreadImporter, Yi as projectComposerContextForProvider, Yn as decode$4, Yo as AUTH_PROBE_TIMEOUT_MS, Yr as fromLenientJson, Ys as normalizeModelSlug, Yt as mergeGitStatusParts, Z as IdAllocatorV2, Zi as markdownDestinationHostPath, Zl as rsaPss, Zo as DEFAULT_TIMEOUT_MS, Zs as resolvePromptInjectedEffort, Zt as parseGitHubRepositoryNameWithOwnerFromRemoteUrl, _a as MAX_TOOL_OUTPUT_IMAGE_BASE64_LENGTH, _c as RequestInit, _l as option$1, _n as expandHomePath, _o as sourceControlRepositorySelector, _t as layer$99, _u as family$1, a as normalizePreviewUrl, aa as unified, ai as applyToProjection, al as Int$1, as as parseCliVersionResult, at as ProjectStoreV2, au as key$1, ba as readToolOutputImage, bc as Arguments, bn as tokenizeCliArgs, bs as ProviderLatestVersions, bt as orchestrationEffectClaimsTotal, bu as importPrivate$1, c as rejectCommandsDuringClone, ca as markdownLineEnding, cc as resolveSpawnCommand, ci as threadShellFromProjection, cl as Number$2, cn as WorkspaceRootNotDirectoryError, co as threadPullRequestsOf, cs as providerProbeEnvironment, ct as PROCESS_BOUND_EFFECT_TYPES, cu as Digest, d as SourceControlProviderRegistry, da as boundFileChangeForStorage, dc as make$88, do as parseChangeRequestUrl, ds as makeCachedProviderMaintenanceResolution, dt as layerPruneWorker, du as sha256$1, ea as isUncPath, ec as CommandResolutionCache, ei as NetService, el as make$95, en as sanitizeBranchFragment, es as buildServerProvider, et as layer$93, eu as secretFamily, fc as ChildProcessSpawner, fl as String$2, fs as makeManualOnlyProviderMaintenanceCapabilities, fu as sha384, go as isSshRemoteUrl, gs as normalizeCommandPath, gt as layerFromApplicationReceipts, gu as encode$4, h as VcsDriverRegistry, ha as projectTurnItemForDetail, hl as map$3, hn as readClaudeSettingsEnv, ho as getChangeRequestTerminologyForKind, ht as CommandReceiptStoreV2, hu as decodeString, i as newPreviewTabId, ia as normalizeProjectPathForComparison, ic as mergePathEntries, ii as ProjectionStoreV2, io as normalizeThreadPullRequestKey, is as nonEmptyTrimmed, it as layer$103, j as GitVcsDriver, ja as injectMcpAppCsp, ji as resolveAttachmentRelativePath, jl as next$1, jr as writeFileStringAtomically, jt as webhookDeliveriesTotal, ju as material, k as repositoryPathFromRemoteUrl, kl as refresh, ko as layer$90, kt as terminalRestartsTotal, ku as importedAlgorithm, la as markdownLineEndingOrSpace, ln as WorkspaceRootNotExistsError, lo as visibleThreadPullRequests, ls as spawnAndCollect, lt as REPLAY_SAFE_EFFECT_TYPES_AFTER_PROCESS_LOSS, m as layer$95, ml as all$1, mn as discoverClaudeSkills, mo as detectSourceControlProviderFromRemoteUrl, ms as makeProviderMaintenanceCapabilities, mu as decode$3, n as isLoopbackHost, na as isWindowsDrivePath, ns as isCommandMissingCause, nt as EventSinkV2, nu as hmacSha256, o as ProjectCloneTracker, oa as remarkParse, oi as emptyProjection, on as WorkspacePaths, oo as threadPullRequestKeyOf, os as parseGenericCliVersion, ot as layer$100, p as BUILT_IN_SOURCE_CONTROL_DRIVERS, pn as claudeLaunchArgDirectories, po as canonicalRepositoryKey, ps as makePackageManagedProviderMaintenanceResolver, pt as forkParked, pu as sha512, q as ThreadCommandExecutor, qi as assistantCitationsToPlainText, ql as ed25519, qn as CursorSettings, qo as ProcessRunner, qr as extractJsonObject, qt as formatGeneratedBranchName, r as isPreviewUrlNormalizationError, ra as newProjectFolderName, ri as layer$104, rl as Boolean$2, ro as legacyThreadPullRequestKey, rs as isWindowsCommandNotFound, rt as layerFromStores, sa as factorySpace, sc as resolveCommandPath, si as layer$101, sn as WorkspaceRootCreateFailedError, so as threadPullRequestKeysEqual, ss as providerModelsFromSettings, st as EffectOutboxV2, su as timingSafeEqual, t as LSOF_LOCAL_HOST_TOKENS, ta as isWindowsAbsolutePath, tc as SpawnExecutableResolution, ti as layer$92, tl as run$2, tn as sanitizeFeatureBranchName, ts as collectStreamAsString, tt as randomUuidV4, tu as Mac, un as WorkspaceRootStatFailedError, us as enrichProviderSnapshotWithVersionAdvisory, ut as layer$102, va as mcpAppFromToolItem, vi as createAttachmentId, vn as require_dist$1, vs as resolveMiseProviderMaintenance, vt as increment, w as structuredPatch, wa as resolveP4McpToolDefinition, wl as invalidate$1, wn as ServerEnvironment, wt as providerTurnsTotal, wu as SecureRandom, x as PullRequestProviderError, xa as toolOutputImageBlocks, xc as Environment, xl as get$11, xn as make$93, xo as layer$98, xt as orchestrationEffectQueueWait, xu as importPublic$1, ya as mcpToolResultOutput, yc as Architecture, yl as withDefault, yn as parseCliArgs, yo as layerFromOrchestrationEventStore, ys as resolveProviderMaintenanceCapabilitiesEffect, yt as metricAttributes, yu as exportKey, zc as modifyEffect, zi as usageLimitBlockedRun, zl as update$4, zn as ServerSettingsService, zs as applyClaudePromptEffortPrefix } from "./preview-D0Bi2g4U.mjs";
9
+ import { $n as fromReadable, $o as buildSelectOptionDescriptor, $s as collectUint8StreamText, $t as resolveAutoFeatureBranchName, Al as set$5, Ao as readOnly$1, Ar as version$1, At as terminalSessionsTotal, Au as makeBytes, Bc as set$6, Bi as chatMarkdownImageSources, Bl as updateAndGet$1, Bs as codexModelFamily, C as formatPatch, Ca as P4_MCP_TOOL_NAMES, Cc as HomeDirectory, Cl as getSuccess$1, Co as PersistenceSqlError, Ct as providerTurnDuration, D as SourceControlRateLimit, Da as MCP_APP_MIME_TYPE, Dc as Platform, Dl as make$92, Do as findOneOption, Dr as isSecretAlreadyExistsError, Ds as errorTag, Dt as secretRefsConsumedTotal, E as Interactive, Ec as IsExecutable, Ei as resolveAttachmentPathById, El as keys, Eo as findAll, Er as ServerSecretStore, Eu as make$91, Fa as readMcpAppPermissions, Fc as make$89, Fl as getAndUpdate, Ft as withCommandMetrics, Fu as rehome, G as layer$106, Gi as codes$1, Gl as ecdsaP384, Gn as GrokSettings, Gr as resolveServerBackgroundActivitySettings, Gs as getProviderOptionCurrentValue, Gt as detectSourceControlProviderFromGitRemoteUrl, H as resolveProjectSettings, Hi as remarkGfm, Hn as PiSettings, Hs as formatCodexModelName, Ic as get$12, Ii as latestExecutedRun, Il as make$87, Is as compareSemverVersions, It as withMetrics, J as layer$97, Ji as isAttachmentOnlyBootstrapPrompt, Jl as family, Jn as AcpRegistrySettings, Jo as layer$94, Js as modelSelectionsEqual, Jt as isTemporaryWorktreeBranch, K as planThreadDeletion, Ki as longestStreak, Kl as ecdsaP521, Kn as FxSettings, Ks as getProviderOptionDescriptors, Kt as flattenTemporaryWorktreeBranchName, L as extractBranchNameFromRemoteRef, Lc as make$90, Li as latestRootProviderFailure, Ll as modify$2, Ln as subscribeBeforeSnapshot, Ls as parseSemver, Lt as normalizeModelMetricLabel, Lu as runWithReference, Ml as nextIntBetween, Mt as webhookDeliveryDuration, Mu as fail$8, N as VcsProcess, Na as mcpAppToolCallableByApp, Ni as derivePendingBackgroundWork, Nl as get$10, Ns as makeAsyncRotatingFileSink, Nt as webhookHeldDelay, Nu as invalidKey$2, Oa as MCP_APP_OUTPUT_KEY, Oi as toSafeThreadAttachmentSegment, Ol as makeWith, Oo as void_$2, Ou as copyBytes, P as layer$96, Pa as readMcpAppCsp, Pi as pendingBackgroundTurnItems, Pl as getAndSet, Pn as DesktopTelemetryReceiver, Pr as ServerConfig$1, Pt as webhookRunsTotal, Pu as notExtractable, Q as derive, Qi as isExplicitRelativePath, Ql as family$2, Qo as buildBooleanOptionDescriptor, Qt as parseOriginUrlFromGitConfig, Rc as modify$3, Ri as runRanAfter, Rl as set$4, Rn as subscribeBeforeSnapshotWithoutMutex, Rs as satisfiesSemverRange, Rt as make$94, S as FILE_HEADERS_ONLY, Sa as toolOutputImages, Sc as ExecutablePath, Sl as getOption$1, Sn as layer$91, So as PersistenceDecodeError, St as providerSessionsTotal, Ta as MCP_APP_EXTENSION_ID, Ti as resolveAttachmentPath, Tl as invalidateAll, Tn as ServerEnvironmentIdentity, Ts as causeErrorTag, Uc as SqlClient, Ui as types, Ul as Signature, Un as OpenCodeSettings, Ur as resolveSourceControlWriterModelSelection, Us as getModelSelectionBooleanOptionValue, Uu as update$6, V as hasProjectSettingsOverrides, Vc as update$5, Vi as formatThreadLink, Vs as createModelCapabilities, Vt as RepositoryIdentityResolver, Vu as Unsupported, W as ProjectService, Wi as constants, Wl as ecdsaP256, Wn as MuseSettings, Wr as getBackgroundActivityPresetSettings, Ws as getModelSelectionStringOptionValue, Wt as buildTemporaryWorktreeBranchName, Wu as withAttributes, X as layer$105, Xl as rsaPkcs1v15, Xo as COMPACT_SLASH_COMMAND, Xs as readCustomModelEntries, Xt as normalizeGitRemoteUrl, Y as LegacyV1ThreadImporter, Yi as projectComposerContextForProvider, Yn as decode$4, Yo as AUTH_PROBE_TIMEOUT_MS, Yr as fromLenientJson, Ys as normalizeModelSlug, Yt as mergeGitStatusParts, Z as IdAllocatorV2, Zi as markdownDestinationHostPath, Zl as rsaPss, Zo as DEFAULT_TIMEOUT_MS, Zs as resolvePromptInjectedEffort, Zt as parseGitHubRepositoryNameWithOwnerFromRemoteUrl, _a as MAX_TOOL_OUTPUT_IMAGE_BASE64_LENGTH, _c as RequestInit, _l as option$1, _n as expandHomePath, _o as sourceControlRepositorySelector, _t as layer$99, _u as family$1, a as normalizePreviewUrl, aa as unified, ai as applyToProjection, al as Int$1, as as parseCliVersionResult, at as ProjectStoreV2, au as key$1, ba as readToolOutputImage, bc as Arguments, bn as tokenizeCliArgs, bs as ProviderLatestVersions, bt as orchestrationEffectClaimsTotal, bu as importPrivate$1, c as rejectCommandsDuringClone, ca as markdownLineEnding, cc as resolveSpawnCommand, ci as threadShellFromProjection, cl as Number$2, cn as WorkspaceRootNotDirectoryError, co as threadPullRequestsOf, cs as providerProbeEnvironment, ct as PROCESS_BOUND_EFFECT_TYPES, cu as Digest, d as SourceControlProviderRegistry, da as boundFileChangeForStorage, dc as make$88, do as parseChangeRequestUrl, ds as makeCachedProviderMaintenanceResolution, dt as layerPruneWorker, du as sha256$1, ea as isUncPath, ec as CommandResolutionCache, ei as NetService, el as make$95, en as sanitizeBranchFragment, es as buildServerProvider, et as layer$93, eu as secretFamily, fc as ChildProcessSpawner, fl as String$2, fs as makeManualOnlyProviderMaintenanceCapabilities, fu as sha384, go as isSshRemoteUrl, gs as normalizeCommandPath, gt as layerFromApplicationReceipts, gu as encode$4, h as VcsDriverRegistry, ha as projectTurnItemForDetail, hl as map$3, hn as readClaudeSettingsEnv, ho as getChangeRequestTerminologyForKind, ht as CommandReceiptStoreV2, hu as decodeString, i as newPreviewTabId, ia as normalizeProjectPathForComparison, ic as mergePathEntries, ii as ProjectionStoreV2, io as normalizeThreadPullRequestKey, is as nonEmptyTrimmed, it as layer$103, j as GitVcsDriver, ja as injectMcpAppCsp, ji as resolveAttachmentRelativePath, jl as next$1, jr as writeFileStringAtomically, jt as webhookDeliveriesTotal, ju as material, k as repositoryPathFromRemoteUrl, kl as refresh, ko as layer$90, kt as terminalRestartsTotal, ku as importedAlgorithm, la as markdownLineEndingOrSpace, ln as WorkspaceRootNotExistsError, lo as visibleThreadPullRequests, ls as spawnAndCollect, lt as REPLAY_SAFE_EFFECT_TYPES_AFTER_PROCESS_LOSS, m as layer$95, ml as all$1, mn as discoverClaudeSkills, mo as detectSourceControlProviderFromRemoteUrl, ms as makeProviderMaintenanceCapabilities, mu as decode$3, n as isLoopbackHost, na as isWindowsDrivePath, ns as isCommandMissingCause, nt as EventSinkV2, nu as hmacSha256, o as ProjectCloneTracker, oa as remarkParse, oi as emptyProjection, on as WorkspacePaths, oo as threadPullRequestKeyOf, os as parseGenericCliVersion, ot as layer$100, p as BUILT_IN_SOURCE_CONTROL_DRIVERS, pn as claudeLaunchArgDirectories, po as canonicalRepositoryKey, ps as makePackageManagedProviderMaintenanceResolver, pt as forkParked, pu as sha512, q as ThreadCommandExecutor, qi as assistantCitationsToPlainText, ql as ed25519, qn as CursorSettings, qo as ProcessRunner, qr as extractJsonObject, qt as formatGeneratedBranchName, r as isPreviewUrlNormalizationError, ra as newProjectFolderName, ri as layer$104, rl as Boolean$2, ro as legacyThreadPullRequestKey, rs as isWindowsCommandNotFound, rt as layerFromStores, sa as factorySpace, sc as resolveCommandPath, si as layer$101, sn as WorkspaceRootCreateFailedError, so as threadPullRequestKeysEqual, ss as providerModelsFromSettings, st as EffectOutboxV2, su as timingSafeEqual, t as LSOF_LOCAL_HOST_TOKENS, ta as isWindowsAbsolutePath, tc as SpawnExecutableResolution, ti as layer$92, tl as run$2, tn as sanitizeFeatureBranchName, ts as collectStreamAsString, tt as randomUuidV4, tu as Mac, un as WorkspaceRootStatFailedError, us as enrichProviderSnapshotWithVersionAdvisory, ut as layer$102, va as mcpAppFromToolItem, vi as createAttachmentId, vn as require_dist$1, vs as resolveMiseProviderMaintenance, vt as increment, w as structuredPatch, wa as resolveP4McpToolDefinition, wl as invalidate$1, wn as ServerEnvironment, wt as providerTurnsTotal, wu as SecureRandom, x as PullRequestProviderError, xa as toolOutputImageBlocks, xc as Environment, xl as get$11, xn as make$93, xo as layer$98, xt as orchestrationEffectQueueWait, xu as importPublic$1, ya as mcpToolResultOutput, yc as Architecture, yl as withDefault, yn as parseCliArgs, yo as layerFromOrchestrationEventStore, ys as resolveProviderMaintenanceCapabilitiesEffect, yt as metricAttributes, yu as exportKey, zc as modifyEffect, zi as usageLimitBlockedRun, zl as update$4, zn as ServerSettingsService, zs as applyClaudePromptEffortPrefix } from "./preview-BGylKXB6.mjs";
10
10
  import { n as responsePayloads } from "./mcpResponsePayloads-SwQXsZoI.mjs";
11
11
  import * as NodeModule from "node:module";
12
12
  import * as NodeFS from "node:fs";
@@ -34082,7 +34082,7 @@ function hasValidClaudeManifestAdapters(manifest) {
34082
34082
  // src/provider/model-manifest.json
34083
34083
  var model_manifest_default = {
34084
34084
  version: 1,
34085
- updatedAt: "2026-11-10T17:25:47Z",
34085
+ updatedAt: "2026-11-12T06:30:00Z",
34086
34086
  compatibility: [
34087
34087
  {
34088
34088
  "driver": "codex",
@@ -34386,6 +34386,57 @@ var model_manifest_default = {
34386
34386
  "fixedContextWindowTokens": 1e6
34387
34387
  } }
34388
34388
  },
34389
+ "fable-5-2": {
34390
+ "capabilities": { "optionDescriptors": [{
34391
+ "id": "effort",
34392
+ "label": "Reasoning",
34393
+ "type": "select",
34394
+ "options": [
34395
+ {
34396
+ "id": "low",
34397
+ "label": "Low"
34398
+ },
34399
+ {
34400
+ "id": "medium",
34401
+ "label": "Medium",
34402
+ "isDefault": true
34403
+ },
34404
+ {
34405
+ "id": "high",
34406
+ "label": "High"
34407
+ },
34408
+ {
34409
+ "id": "xhigh",
34410
+ "label": "Extra High"
34411
+ },
34412
+ {
34413
+ "id": "max",
34414
+ "label": "Max"
34415
+ },
34416
+ {
34417
+ "id": "ultracode",
34418
+ "label": "Ultracode",
34419
+ "description": "xhigh effort plus multi-agent workflow orchestration"
34420
+ },
34421
+ {
34422
+ "id": "ultrathink",
34423
+ "label": "Ultrathink"
34424
+ }
34425
+ ],
34426
+ "promptInjectedValues": ["ultrathink"]
34427
+ }, {
34428
+ "id": "fastMode",
34429
+ "label": "Fast Mode",
34430
+ "type": "boolean"
34431
+ }] },
34432
+ "adapter": { "claudeCode": {
34433
+ "effortMap": {
34434
+ "ultracode": "xhigh",
34435
+ "ultrathink": null
34436
+ },
34437
+ "fixedContextWindowTokens": 1e6
34438
+ } }
34439
+ },
34389
34440
  "opus-5-5": {
34390
34441
  "capabilities": { "optionDescriptors": [{
34391
34442
  "id": "effort",
@@ -34899,7 +34950,7 @@ var model_manifest_default = {
34899
34950
  "claude-fable-5.2"
34900
34951
  ],
34901
34952
  "status": "current",
34902
- "profile": "fable-5",
34953
+ "profile": "fable-5-2",
34903
34954
  "adapter": { "claudeCode": { "minVersion": "2.1.290" } }
34904
34955
  },
34905
34956
  {
@@ -124405,6 +124456,7 @@ function makeAssistantStreamingFilter(mode, idleFlushMs = ASSISTANT_IDLE_FLUSH_M
124405
124456
  * `clientModeCeiling`), so a client gains nothing by sending a broad one.
124406
124457
  */
124407
124458
  const MODE_LIMIT_HEADER = "p4-mode-limit";
124459
+ const LAUNCHED_BY_HEADER = "p4-launched-by";
124408
124460
  const runtimeModeRank = {
124409
124461
  "approval-required": 0,
124410
124462
  "auto-accept-edits": 1,
@@ -144165,7 +144217,7 @@ const layer$30 = succeed$2(ThreadForkServiceV2, ThreadForkServiceV2.of({ plan: (
144165
144217
  targetThreadId: input.targetThreadId,
144166
144218
  cause: forkableSourceRunStatusError(input.sourceRun)
144167
144219
  });
144168
- const { delegatedFrom: _delegatedFrom, launchedByThreadId: _launchedByThreadId, sweep: _sweep, ...inherited } = input.sourceProjection.thread;
144220
+ const { delegatedFrom: _delegatedFrom, launchedByThreadId: _launchedByThreadId, launchedByEnvironmentId: _launchedByEnvironmentId, sweep: _sweep, ...inherited } = input.sourceProjection.thread;
144169
144221
  return {
144170
144222
  targetThread: {
144171
144223
  ...inherited,
@@ -144915,7 +144967,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144915
144967
  });
144916
144968
  const queuedRun = nextQueuedRun(projection);
144917
144969
  if (queuedRun === void 0) return;
144918
- const now$42 = yield* now;
144970
+ const now$41 = yield* now;
144919
144971
  const rootNode = projection.nodes.find((node) => node.id === queuedRun.rootNodeId);
144920
144972
  const attempt = projection.attempts.find((entry) => entry.id === queuedRun.activeAttemptId);
144921
144973
  const providerThread = projection.providerThreads.find((entry) => entry.id === queuedRun.providerThreadId);
@@ -144932,11 +144984,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144932
144984
  runId: queuedRun.id,
144933
144985
  nodeId: rootNode.id,
144934
144986
  providerInstanceId: queuedRun.providerInstanceId,
144935
- occurredAt: now$42,
144987
+ occurredAt: now$41,
144936
144988
  payload: {
144937
144989
  ...attempt,
144938
144990
  status: "failed",
144939
- completedAt: now$42
144991
+ completedAt: now$41
144940
144992
  }
144941
144993
  }] : [],
144942
144994
  ...rootNode === void 0 ? [] : [{
@@ -144945,11 +144997,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144945
144997
  runId: queuedRun.id,
144946
144998
  nodeId: rootNode.id,
144947
144999
  providerInstanceId: queuedRun.providerInstanceId,
144948
- occurredAt: now$42,
145000
+ occurredAt: now$41,
144949
145001
  payload: {
144950
145002
  ...rootNode,
144951
145003
  status: "failed",
144952
- completedAt: now$42
145004
+ completedAt: now$41
144953
145005
  }
144954
145006
  }],
144955
145007
  ...rootNode === void 0 || providerThread === void 0 ? [] : [{
@@ -144958,7 +145010,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144958
145010
  runId: queuedRun.id,
144959
145011
  nodeId: rootNode.id,
144960
145012
  providerInstanceId: queuedRun.providerInstanceId,
144961
- occurredAt: now$42,
145013
+ occurredAt: now$41,
144962
145014
  payload: {
144963
145015
  id: idAllocator.derive.turnItemFromProviderItem({
144964
145016
  driver: providerThread.driver,
@@ -144974,9 +145026,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144974
145026
  ordinal: yield* nextTurnItemOrdinal(projection),
144975
145027
  status: "failed",
144976
145028
  title: "Queued provider could not start",
144977
- startedAt: now$42,
144978
- completedAt: now$42,
144979
- updatedAt: now$42,
145029
+ startedAt: now$41,
145030
+ completedAt: now$41,
145031
+ updatedAt: now$41,
144980
145032
  type: "error",
144981
145033
  failure
144982
145034
  }
@@ -144987,12 +145039,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
144987
145039
  runId: queuedRun.id,
144988
145040
  ...rootNode === void 0 ? {} : { nodeId: rootNode.id },
144989
145041
  providerInstanceId: queuedRun.providerInstanceId,
144990
- occurredAt: now$42,
145042
+ occurredAt: now$41,
144991
145043
  payload: {
144992
145044
  ...queuedRun,
144993
145045
  status: "failed",
144994
145046
  queuePosition: null,
144995
- completedAt: now$42
145047
+ completedAt: now$41
144996
145048
  }
144997
145049
  }
144998
145050
  ]);
@@ -145047,7 +145099,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145047
145099
  cause: `Queued run ${queuedRun.id} is missing projection state.`
145048
145100
  });
145049
145101
  const commandId = CommandId.make(`command:system:start-queued:${queuedRun.id}`);
145050
- const now$23 = yield* now;
145102
+ const now$29 = yield* now;
145051
145103
  const selectionChanged = !modelSelectionsEqual(projection.thread.modelSelection, queuedRun.modelSelection);
145052
145104
  const switchPlan = selectionChanged ? yield* providerSwitchService.plan({
145053
145105
  projection,
@@ -145071,7 +145123,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145071
145123
  threadId,
145072
145124
  runId: run.id,
145073
145125
  providerInstanceId: run.providerInstanceId,
145074
- occurredAt: now$23,
145126
+ occurredAt: now$29,
145075
145127
  payload: {
145076
145128
  ...run,
145077
145129
  queueHeld: true
@@ -145135,7 +145187,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145135
145187
  runs: projection.runs,
145136
145188
  strategy: handoffStrategy,
145137
145189
  items: [...needsFullContext && latestCompletedRun !== void 0 ? legacyImportItems : [], ...yield* readHandoffItems(threadId, coveredRuns.map((run) => run.id))],
145138
- createdAt: now$23
145190
+ createdAt: now$29
145139
145191
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
145140
145192
  commandId,
145141
145193
  commandType: "message.dispatch",
@@ -145147,7 +145199,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145147
145199
  toProviderThreadId: queuedProviderThread.id,
145148
145200
  toProviderInstanceId: queuedRun.providerInstanceId,
145149
145201
  items: legacyImportItems,
145150
- createdAt: now$23
145202
+ createdAt: now$29
145151
145203
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
145152
145204
  commandId,
145153
145205
  commandType: "message.dispatch",
@@ -145163,7 +145215,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145163
145215
  rootNodeId: rootNode.id,
145164
145216
  providerThreadId: queuedProviderThread.id,
145165
145217
  cwd: resolvedRuntimePolicy.cwd ?? projection.thread.worktreePath ?? process.cwd(),
145166
- createdAt: now$23
145218
+ createdAt: now$29
145167
145219
  })), mapError((cause) => new OrchestratorDispatchError({
145168
145220
  commandId,
145169
145221
  commandType: "message.dispatch",
@@ -145185,7 +145237,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145185
145237
  firstRunOrdinal: queuedProviderThread.firstRunOrdinal ?? queuedRun.ordinal,
145186
145238
  lastRunOrdinal: queuedRun.ordinal,
145187
145239
  handoffIds: appendContextHandoffId(appendContextHandoffId(queuedProviderThread.handoffIds, handoff?.id ?? null), legacyImportRecoveryHandoff?.id ?? null),
145188
- updatedAt: now$23
145240
+ updatedAt: now$29
145189
145241
  };
145190
145242
  const startingRun = {
145191
145243
  ...queuedRun,
@@ -145224,9 +145276,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145224
145276
  },
145225
145277
  inputIntent: "queued_turn",
145226
145278
  status: "completed",
145227
- startedAt: now$23,
145228
- completedAt: now$23,
145229
- updatedAt: now$23
145279
+ startedAt: now$29,
145280
+ completedAt: now$29,
145281
+ updatedAt: now$29
145230
145282
  };
145231
145283
  const handoffTurnItem = activeHandoff === null ? null : {
145232
145284
  id: idAllocator.derive.runSignalTurnItem({
@@ -145243,9 +145295,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145243
145295
  ordinal: queuedRun.ordinal * 100 - 1,
145244
145296
  status: "completed",
145245
145297
  title: handoff === null ? "Imported context" : "Provider handoff",
145246
- startedAt: now$23,
145247
- completedAt: now$23,
145248
- updatedAt: now$23,
145298
+ startedAt: now$29,
145299
+ completedAt: now$29,
145300
+ updatedAt: now$29,
145249
145301
  type: "handoff",
145250
145302
  contextHandoffId: activeHandoff.id,
145251
145303
  fromProviderThreadIds: activeHandoff.fromProviderThreadIds,
@@ -145263,7 +145315,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145263
145315
  runId: queuedRun.id,
145264
145316
  nodeId: rootNode.id,
145265
145317
  providerInstanceId: queuedRun.providerInstanceId,
145266
- occurredAt: now$23,
145318
+ occurredAt: now$29,
145267
145319
  payload: checkpointScope
145268
145320
  }, {
145269
145321
  type: "node.updated",
@@ -145271,7 +145323,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145271
145323
  runId: queuedRun.id,
145272
145324
  nodeId: rootNode.id,
145273
145325
  providerInstanceId: queuedRun.providerInstanceId,
145274
- occurredAt: now$23,
145326
+ occurredAt: now$29,
145275
145327
  payload: {
145276
145328
  ...rootNode,
145277
145329
  checkpointScopeId: checkpointScope.id
@@ -145282,12 +145334,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145282
145334
  type: queuedRun.providerInstanceId === projection.thread.providerInstanceId ? "thread.model-selection-updated" : "thread.provider-switched",
145283
145335
  threadId,
145284
145336
  providerInstanceId: queuedRun.providerInstanceId,
145285
- occurredAt: now$23,
145337
+ occurredAt: now$29,
145286
145338
  payload: {
145287
145339
  ...projection.thread,
145288
145340
  providerInstanceId: queuedRun.providerInstanceId,
145289
145341
  modelSelection: queuedRun.modelSelection,
145290
- updatedAt: now$23
145342
+ updatedAt: now$29
145291
145343
  }
145292
145344
  }] : [],
145293
145345
  ...handoff === null || transferId === null || latestHandoffRun === void 0 ? [] : [{
@@ -145295,7 +145347,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145295
145347
  threadId,
145296
145348
  runId: queuedRun.id,
145297
145349
  providerInstanceId: queuedRun.providerInstanceId,
145298
- occurredAt: now$23,
145350
+ occurredAt: now$29,
145299
145351
  payload: {
145300
145352
  id: transferId,
145301
145353
  type: "provider_handoff",
@@ -145313,16 +145365,16 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145313
145365
  },
145314
145366
  createdBy: queuedMessage.createdBy,
145315
145367
  error: null,
145316
- createdAt: now$23,
145317
- updatedAt: now$23,
145318
- consumedAt: now$23
145368
+ createdAt: now$29,
145369
+ updatedAt: now$29,
145370
+ consumedAt: now$29
145319
145371
  }
145320
145372
  }, {
145321
145373
  type: "context-handoff.updated",
145322
145374
  threadId,
145323
145375
  runId: queuedRun.id,
145324
145376
  providerInstanceId: queuedRun.providerInstanceId,
145325
- occurredAt: now$23,
145377
+ occurredAt: now$29,
145326
145378
  payload: handoff
145327
145379
  }],
145328
145380
  ...legacyImportRecoveryHandoff === null ? [] : [{
@@ -145330,7 +145382,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145330
145382
  threadId,
145331
145383
  runId: queuedRun.id,
145332
145384
  providerInstanceId: queuedRun.providerInstanceId,
145333
- occurredAt: now$23,
145385
+ occurredAt: now$29,
145334
145386
  payload: legacyImportRecoveryHandoff
145335
145387
  }],
145336
145388
  ...handoffTurnItem === null ? [] : [{
@@ -145339,7 +145391,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145339
145391
  runId: queuedRun.id,
145340
145392
  nodeId: rootNodeId,
145341
145393
  providerInstanceId: queuedRun.providerInstanceId,
145342
- occurredAt: now$23,
145394
+ occurredAt: now$29,
145343
145395
  payload: handoffTurnItem
145344
145396
  }],
145345
145397
  ...sessionsToDetach.map((session) => ({
@@ -145347,10 +145399,10 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145347
145399
  threadId,
145348
145400
  driver: session.driver,
145349
145401
  providerInstanceId: session.providerInstanceId,
145350
- occurredAt: now$23,
145402
+ occurredAt: now$29,
145351
145403
  payload: {
145352
145404
  providerSessionId: session.id,
145353
- detachedAt: now$23,
145405
+ detachedAt: now$29,
145354
145406
  reason: "Provider or model selection changed."
145355
145407
  }
145356
145408
  })),
@@ -145359,7 +145411,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145359
145411
  type: "provider-thread.updated",
145360
145412
  threadId,
145361
145413
  providerInstanceId: queuedRun.providerInstanceId,
145362
- occurredAt: now$23,
145414
+ occurredAt: now$29,
145363
145415
  payload: providerThread
145364
145416
  },
145365
145417
  {
@@ -145368,7 +145420,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145368
145420
  runId: queuedRun.id,
145369
145421
  nodeId: rootNodeId,
145370
145422
  providerInstanceId: queuedRun.providerInstanceId,
145371
- occurredAt: now$23,
145423
+ occurredAt: now$29,
145372
145424
  payload: notificationTurnItem(userTurnItem, queuedMessage, projection.subagents)
145373
145425
  },
145374
145426
  {
@@ -145377,7 +145429,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145377
145429
  runId: queuedRun.id,
145378
145430
  nodeId: rootNodeId,
145379
145431
  providerInstanceId: queuedRun.providerInstanceId,
145380
- occurredAt: now$23,
145432
+ occurredAt: now$29,
145381
145433
  payload: startingRun
145382
145434
  }
145383
145435
  ], [...sessionsToDetach.map((session) => ({
@@ -145437,7 +145489,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145437
145489
  cause: `Delegated task ${command.taskId} is not an app-owned task of thread ${command.parentThreadId}.`
145438
145490
  });
145439
145491
  const state = command.type === "delegated_task.completion-delivery.acknowledge" ? "acknowledged" : "disposed";
145440
- const now$52 = yield* now;
145492
+ const now$45 = yield* now;
145441
145493
  const emitEvent = emit(events, command);
145442
145494
  if (isUnobservedAcknowledgement(command)) {
145443
145495
  if (!isTerminalDelegatedTaskStatus(task.status) || task.completionDelivery?.state !== "pending") return;
@@ -145455,7 +145507,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145455
145507
  parentRun,
145456
145508
  task,
145457
145509
  updatedTask: task,
145458
- now: now$52
145510
+ now: now$45
145459
145511
  }).pipe(mapDispatchError(command));
145460
145512
  if (plan.task.completionDelivery?.state === "pending") return;
145461
145513
  yield* emitEvent({
@@ -145465,10 +145517,10 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145465
145517
  nodeId: task.id,
145466
145518
  driver: task.driver,
145467
145519
  providerInstanceId: task.providerInstanceId,
145468
- occurredAt: now$52,
145520
+ occurredAt: now$45,
145469
145521
  payload: plan.task
145470
145522
  });
145471
- for (const event of delegatedCompletionPlanEvents(command.parentThreadId, plan, projection.thread.providerInstanceId, now$52)) yield* emitEvent(event);
145523
+ for (const event of delegatedCompletionPlanEvents(command.parentThreadId, plan, projection.thread.providerInstanceId, now$45)) yield* emitEvent(event);
145472
145524
  return plan.parentRun?.id;
145473
145525
  }
145474
145526
  if (task.completionDelivery?.state === state || command.type === "delegated_task.completion-delivery.acknowledge" && task.completionDelivery?.state === "disposed") {
@@ -145479,7 +145531,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145479
145531
  nodeId: task.id,
145480
145532
  driver: task.driver,
145481
145533
  providerInstanceId: task.providerInstanceId,
145482
- occurredAt: now$52,
145534
+ occurredAt: now$45,
145483
145535
  payload: task
145484
145536
  });
145485
145537
  return;
@@ -145490,7 +145542,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145490
145542
  state,
145491
145543
  observedByRunId: command.type === "delegated_task.completion-delivery.acknowledge" ? command.observedByRunId : null
145492
145544
  },
145493
- updatedAt: now$52
145545
+ updatedAt: now$45
145494
145546
  };
145495
145547
  yield* emitEvent({
145496
145548
  type: "subagent.updated",
@@ -145499,7 +145551,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145499
145551
  nodeId: task.id,
145500
145552
  driver: task.driver,
145501
145553
  providerInstanceId: task.providerInstanceId,
145502
- occurredAt: now$52,
145554
+ occurredAt: now$45,
145503
145555
  payload: updatedTask
145504
145556
  });
145505
145557
  const parentRun = task.runId === null ? void 0 : projection.runs.find((candidate) => candidate.id === task.runId);
@@ -145534,7 +145586,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145534
145586
  runId: parentRun.id,
145535
145587
  ...parentRun.rootNodeId === null ? {} : { nodeId: parentRun.rootNodeId },
145536
145588
  providerInstanceId: parentRun.providerInstanceId,
145537
- occurredAt: now$52,
145589
+ occurredAt: now$45,
145538
145590
  payload: {
145539
145591
  ...parentRun,
145540
145592
  delegatedCompletion: updatedCohort
@@ -145547,7 +145599,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145547
145599
  events,
145548
145600
  projection,
145549
145601
  run: deliveryRun,
145550
- now: now$52
145602
+ now: now$45
145551
145603
  });
145552
145604
  return parentRun.id;
145553
145605
  }
@@ -145558,7 +145610,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145558
145610
  runId: deliveryRun.id,
145559
145611
  ...deliveryRun.rootNodeId === null ? {} : { nodeId: deliveryRun.rootNodeId },
145560
145612
  providerInstanceId: deliveryRun.providerInstanceId,
145561
- occurredAt: now$52,
145613
+ occurredAt: now$45,
145562
145614
  payload: {
145563
145615
  ...message,
145564
145616
  text: delegatedCompletionWakeDetail(remainingTaskIds),
@@ -145567,7 +145619,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145567
145619
  generation: delivery.generation,
145568
145620
  taskIds: remainingTaskIds
145569
145621
  },
145570
- updatedAt: now$52
145622
+ updatedAt: now$45
145571
145623
  }
145572
145624
  });
145573
145625
  }
@@ -145656,7 +145708,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145656
145708
  commandType: command.type,
145657
145709
  cause: `Parent thread ${parentThread.id} is deleted or belongs to another project.`
145658
145710
  });
145659
- const now$18 = yield* now;
145711
+ const now$26 = yield* now;
145660
145712
  const emitEvent = emit(events, command);
145661
145713
  const thread = {
145662
145714
  createdBy: command.createdBy,
@@ -145675,14 +145727,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145675
145727
  ...command.sideChat === void 0 ? {} : { sideChat: command.sideChat },
145676
145728
  ...command.linkOrigin === void 0 || command.delegatedFrom === void 0 ? {} : { delegatedFrom: command.delegatedFrom },
145677
145729
  ...command.launchedByThreadId === void 0 ? {} : { launchedByThreadId: command.launchedByThreadId },
145730
+ ...command.linkOrigin === void 0 || command.launchedByEnvironmentId === void 0 ? {} : { launchedByEnvironmentId: command.launchedByEnvironmentId },
145678
145731
  lineage: {
145679
145732
  parentThreadId: parentThread?.id ?? null,
145680
145733
  relationshipToParent: null,
145681
145734
  rootThreadId: parentThread?.lineage.rootThreadId ?? command.threadId
145682
145735
  },
145683
145736
  forkedFrom: null,
145684
- createdAt: now$18,
145685
- updatedAt: now$18,
145737
+ createdAt: now$26,
145738
+ updatedAt: now$26,
145686
145739
  archivedAt: null,
145687
145740
  settledOverride: null,
145688
145741
  settledAt: null,
@@ -145695,7 +145748,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145695
145748
  type: "thread.created",
145696
145749
  threadId: command.threadId,
145697
145750
  providerInstanceId: command.modelSelection.instanceId,
145698
- occurredAt: now$18,
145751
+ occurredAt: now$26,
145699
145752
  payload: thread
145700
145753
  });
145701
145754
  if (command.importedNativeThread !== void 0) yield* emitEvent({
@@ -145703,7 +145756,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145703
145756
  threadId: command.threadId,
145704
145757
  driver: command.importedNativeThread.ref.driver,
145705
145758
  providerInstanceId: command.modelSelection.instanceId,
145706
- occurredAt: now$18,
145759
+ occurredAt: now$26,
145707
145760
  payload: {
145708
145761
  id: idAllocator.derive.providerThread({
145709
145762
  driver: command.importedNativeThread.ref.driver,
@@ -145724,8 +145777,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145724
145777
  forkedFrom: null,
145725
145778
  contextUsage: null,
145726
145779
  nativeMetadata: command.importedNativeThread.metadata ?? null,
145727
- createdAt: now$18,
145728
- updatedAt: now$18
145780
+ createdAt: now$26,
145781
+ updatedAt: now$26
145729
145782
  }
145730
145783
  });
145731
145784
  });
@@ -145928,7 +145981,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145928
145981
  targetModelSelection: command.modelSelection
145929
145982
  }).pipe(mapDispatchError(command));
145930
145983
  }) : null;
145931
- const now$44 = yield* now;
145984
+ const now$19 = yield* now;
145932
145985
  if (command.type === "thread.metadata.update" && command.limitRecovery != null) {
145933
145986
  const projection = yield* loadProjectionForCommand(command, [
145934
145987
  "runs",
@@ -145938,7 +145991,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145938
145991
  const run = usageLimitBlockedRun(projection.runs, projection.turnItems, null);
145939
145992
  const failure = latestRootProviderFailure(run, projection.turnItems);
145940
145993
  const resetMs = Date.parse(command.limitRecovery.resetAt);
145941
- if (command.limitRecovery.snooze === true && resetMs <= toEpochMillis(now$44)) return yield* new OrchestratorDispatchError({
145994
+ if (command.limitRecovery.snooze === true && resetMs <= toEpochMillis(now$19)) return yield* new OrchestratorDispatchError({
145942
145995
  commandId: command.commandId,
145943
145996
  commandType: command.type,
145944
145997
  cause: "The reset time has passed. Retry the thread manually."
@@ -145953,7 +146006,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145953
146006
  if (command.type === "thread.snooze") {
145954
146007
  const projection = yield* loadProjectionForCommand(command, ["runs", "runtimeRequests"], { turnItemTypes: [] });
145955
146008
  const parsedSnoozedUntil = make$77(command.snoozedUntil);
145956
- if (isNone(parsedSnoozedUntil) || toEpochMillis(parsedSnoozedUntil.value) <= toEpochMillis(now$44)) return yield* new OrchestratorDispatchError({
146009
+ if (isNone(parsedSnoozedUntil) || toEpochMillis(parsedSnoozedUntil.value) <= toEpochMillis(now$19)) return yield* new OrchestratorDispatchError({
145957
146010
  commandId: command.commandId,
145958
146011
  commandType: command.type,
145959
146012
  cause: `Thread ${command.threadId} snooze wake time ${command.snoozedUntil} is not in the future.`
@@ -145997,15 +146050,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
145997
146050
  switch (command.type) {
145998
146051
  case "thread.archive": return {
145999
146052
  ...thread,
146000
- archivedAt: now$44,
146053
+ archivedAt: now$19,
146001
146054
  titleRegeneration: null,
146002
146055
  pullRequests: thread.pullRequests?.map((link) => withPullRequestWatch(link, void 0)),
146003
- updatedAt: now$44
146056
+ updatedAt: now$19
146004
146057
  };
146005
146058
  case "thread.unarchive": return {
146006
146059
  ...thread,
146007
146060
  archivedAt: null,
146008
- updatedAt: now$44
146061
+ updatedAt: now$19
146009
146062
  };
146010
146063
  case "thread.snooze": return {
146011
146064
  ...thread,
@@ -146014,8 +146067,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146014
146067
  ...thread.limitRecovery,
146015
146068
  snooze: false
146016
146069
  } : null,
146017
- snoozedAt: now$44,
146018
- updatedAt: now$44
146070
+ snoozedAt: now$19,
146071
+ updatedAt: now$19
146019
146072
  };
146020
146073
  case "thread.unsnooze": {
146021
146074
  const alreadyAwake = thread.snoozedUntil == null;
@@ -146023,8 +146076,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146023
146076
  ...thread,
146024
146077
  snoozedUntil: null,
146025
146078
  snoozedAt: null,
146026
- lastSnoozeWakeAt: alreadyAwake ? thread.lastSnoozeWakeAt : now$44,
146027
- updatedAt: alreadyAwake ? thread.updatedAt : now$44
146079
+ lastSnoozeWakeAt: alreadyAwake ? thread.lastSnoozeWakeAt : now$19,
146080
+ updatedAt: alreadyAwake ? thread.updatedAt : now$19
146028
146081
  };
146029
146082
  }
146030
146083
  case "thread.pin": {
@@ -146032,12 +146085,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146032
146085
  const promotes = thread.snoozedUntil != null;
146033
146086
  return {
146034
146087
  ...thread,
146035
- pinnedAt: alreadyPinned ? thread.pinnedAt : now$44,
146088
+ pinnedAt: alreadyPinned ? thread.pinnedAt : now$19,
146036
146089
  ...alreadyPinned || command.orderKey === void 0 ? {} : { pinOrderKey: command.orderKey },
146037
146090
  snoozedUntil: null,
146038
146091
  snoozedAt: null,
146039
- lastSnoozeWakeAt: thread.snoozedUntil == null ? thread.lastSnoozeWakeAt : now$44,
146040
- updatedAt: alreadyPinned && !promotes ? thread.updatedAt : now$44
146092
+ lastSnoozeWakeAt: thread.snoozedUntil == null ? thread.lastSnoozeWakeAt : now$19,
146093
+ updatedAt: alreadyPinned && !promotes ? thread.updatedAt : now$19
146041
146094
  };
146042
146095
  }
146043
146096
  case "thread.unpin": {
@@ -146046,7 +146099,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146046
146099
  ...thread,
146047
146100
  pinnedAt: null,
146048
146101
  pinOrderKey: null,
146049
- updatedAt: alreadyUnpinned ? thread.updatedAt : now$44
146102
+ updatedAt: alreadyUnpinned ? thread.updatedAt : now$19
146050
146103
  };
146051
146104
  }
146052
146105
  case "thread.pin.reorder": {
@@ -146054,7 +146107,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146054
146107
  return {
146055
146108
  ...thread,
146056
146109
  pinOrderKey: command.orderKey,
146057
- updatedAt: keyUnchanged ? thread.updatedAt : now$44
146110
+ updatedAt: keyUnchanged ? thread.updatedAt : now$19
146058
146111
  };
146059
146112
  }
146060
146113
  case "thread.active.reorder": return {
@@ -146063,7 +146116,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146063
146116
  updatedAt: thread.updatedAt
146064
146117
  };
146065
146118
  case "thread.mark-unread": {
146066
- const snoozeExpired = thread.snoozedUntil != null && toEpochMillis(thread.snoozedUntil) <= toEpochMillis(now$44);
146119
+ const snoozeExpired = thread.snoozedUntil != null && toEpochMillis(thread.snoozedUntil) <= toEpochMillis(now$19);
146067
146120
  return {
146068
146121
  ...thread,
146069
146122
  lastVisitedAt: markUnreadVisitedAt,
@@ -146087,24 +146140,24 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146087
146140
  ...command.title === void 0 ? {} : { title: command.title },
146088
146141
  ...command.sideChat === void 0 ? {} : { sideChat: command.sideChat },
146089
146142
  ...command.limitRecovery === void 0 ? {} : { limitRecovery },
146090
- ...command.limitRecovery !== void 0 && limitRecovery?.snooze === true && Date.parse(limitRecovery.resetAt) > toEpochMillis(now$44) ? {
146143
+ ...command.limitRecovery !== void 0 && limitRecovery?.snooze === true && Date.parse(limitRecovery.resetAt) > toEpochMillis(now$19) ? {
146091
146144
  snoozedUntil: makeUnsafe$8(limitRecovery.resetAt),
146092
- snoozedAt: now$44
146145
+ snoozedAt: now$19
146093
146146
  } : command.limitRecovery !== void 0 && thread.limitRecovery?.snooze && thread.snoozedUntil != null && toEpochMillis(thread.snoozedUntil) === Date.parse(thread.limitRecovery.resetAt) ? {
146094
146147
  snoozedUntil: null,
146095
146148
  snoozedAt: null,
146096
- lastSnoozeWakeAt: now$44
146149
+ lastSnoozeWakeAt: now$19
146097
146150
  } : {},
146098
- ...command.sweep === void 0 ? {} : { sweep: applySweepChange(thread.sweep, command.sweep, formatIso(now$44)) },
146151
+ ...command.sweep === void 0 ? {} : { sweep: applySweepChange(thread.sweep, command.sweep, formatIso(now$19)) },
146099
146152
  ...command.branch === void 0 ? {} : { branch: command.branch },
146100
146153
  ...command.worktreePath === void 0 ? {} : { worktreePath: command.worktreePath },
146101
146154
  ...command.linkedPullRequest === void 0 ? {} : {
146102
146155
  linkedPullRequest: command.linkedPullRequest,
146103
- pullRequests: [...threadPullRequestsOf(thread).filter((link) => !(thread.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(thread.linkedPullRequest))) && !(command.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(command.linkedPullRequest)))), ...command.linkedPullRequest ? [legacyPullRequestLink(thread, command.linkedPullRequest, now$44)] : []]
146156
+ pullRequests: [...threadPullRequestsOf(thread).filter((link) => !(thread.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(thread.linkedPullRequest))) && !(command.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(command.linkedPullRequest)))), ...command.linkedPullRequest ? [legacyPullRequestLink(thread, command.linkedPullRequest, now$19)] : []]
146104
146157
  },
146105
146158
  ...command.regenerateTitle === true ? { titleRegeneration: {
146106
146159
  requestId: command.commandId,
146107
- startedAt: now$44
146160
+ startedAt: now$19
146108
146161
  } } : command.regenerateTitle === false || command.title !== void 0 ? { titleRegeneration: null } : {},
146109
146162
  ...movingProject ? {
146110
146163
  projectId: command.projectId,
@@ -146116,7 +146169,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146116
146169
  pullRequests: [],
146117
146170
  limitRecovery: null
146118
146171
  } : {},
146119
- updatedAt: now$44
146172
+ updatedAt: now$19
146120
146173
  };
146121
146174
  }
146122
146175
  case "thread.design.link":
@@ -146128,7 +146181,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146128
146181
  return {
146129
146182
  ...thread,
146130
146183
  designs: links.filter((link) => link !== existing),
146131
- updatedAt: now$44
146184
+ updatedAt: now$19
146132
146185
  };
146133
146186
  }
146134
146187
  if (existing && (existing.source === "manual" || command.source === "agent")) return thread;
@@ -146140,9 +146193,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146140
146193
  } : link) : [...links, {
146141
146194
  path: command.path,
146142
146195
  source: command.source,
146143
- linkedAt: formatIso(now$44)
146196
+ linkedAt: formatIso(now$19)
146144
146197
  }],
146145
- updatedAt: now$44
146198
+ updatedAt: now$19
146146
146199
  };
146147
146200
  }
146148
146201
  case "thread.pull-request.link":
@@ -146163,7 +146216,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146163
146216
  ...key,
146164
146217
  url: command.url,
146165
146218
  source: command.source,
146166
- linkedAt: formatIso(now$44),
146219
+ linkedAt: formatIso(now$19),
146167
146220
  snapshot: null,
146168
146221
  stack: null
146169
146222
  };
@@ -146174,7 +146227,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146174
146227
  ...branchKey,
146175
146228
  url: branch.url,
146176
146229
  source: "manual",
146177
- linkedAt: formatIso(now$44),
146230
+ linkedAt: formatIso(now$19),
146178
146231
  snapshot: null,
146179
146232
  stack: null
146180
146233
  }] : [],
@@ -146199,13 +146252,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146199
146252
  ...thread,
146200
146253
  pullRequests,
146201
146254
  linkedPullRequest: thread.linkedPullRequest && pullRequests.some((link) => link.source !== "stack-dismissed" && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(thread.linkedPullRequest))) ? thread.linkedPullRequest : null,
146202
- updatedAt: command.type === "thread.pull-request-link.sync" ? thread.updatedAt : now$44
146255
+ updatedAt: command.type === "thread.pull-request-link.sync" ? thread.updatedAt : now$19
146203
146256
  };
146204
146257
  }
146205
146258
  case "thread.pull-request.watch":
146206
146259
  case "thread.pull-request-watch.sync": {
146207
146260
  const key = normalizeThreadPullRequestKey(command);
146208
- const startedAt = formatIso(now$44);
146261
+ const startedAt = formatIso(now$19);
146209
146262
  const linked = threadPullRequestsOf(thread);
146210
146263
  const visible = (link) => link.source !== "stack-dismissed" && threadPullRequestKeysEqual(link, key);
146211
146264
  const links = command.type === "thread.pull-request.watch" && command.watching && command.link !== void 0 && !linked.some(visible) ? [...linked.filter((link) => !threadPullRequestKeysEqual(link, key)), {
@@ -146233,7 +146286,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146233
146286
  return {
146234
146287
  ...thread,
146235
146288
  pullRequests: links.map((link) => link === existing ? withPullRequestWatch(link, watch) : link),
146236
- updatedAt: command.type === "thread.pull-request.watch" ? now$44 : thread.updatedAt
146289
+ updatedAt: command.type === "thread.pull-request.watch" ? now$19 : thread.updatedAt
146237
146290
  };
146238
146291
  }
146239
146292
  case "thread.pull-request.sync": return {
@@ -146241,7 +146294,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146241
146294
  branchPullRequest: command.branchPullRequest,
146242
146295
  ...command.linkedPullRequest === void 0 ? {} : {
146243
146296
  linkedPullRequest: command.linkedPullRequest,
146244
- pullRequests: [...threadPullRequestsOf(thread).filter((link) => !(thread.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(thread.linkedPullRequest))) && !(command.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(command.linkedPullRequest)))), ...command.linkedPullRequest ? [legacyPullRequestLink(thread, command.linkedPullRequest, now$44)] : []]
146297
+ pullRequests: [...threadPullRequestsOf(thread).filter((link) => !(thread.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(thread.linkedPullRequest))) && !(command.linkedPullRequest && threadPullRequestKeysEqual(link, legacyThreadPullRequestKey(command.linkedPullRequest)))), ...command.linkedPullRequest ? [legacyPullRequestLink(thread, command.linkedPullRequest, now$19)] : []]
146245
146298
  },
146246
146299
  updatedAt: thread.updatedAt
146247
146300
  };
@@ -146249,24 +146302,24 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146249
146302
  ...thread,
146250
146303
  ...command.title === void 0 ? {} : { title: command.title },
146251
146304
  titleRegeneration: null,
146252
- updatedAt: now$44
146305
+ updatedAt: now$19
146253
146306
  } : thread;
146254
146307
  case "thread.runtime-mode.set": return {
146255
146308
  ...thread,
146256
146309
  runtimeMode: command.runtimeMode,
146257
- updatedAt: now$44
146310
+ updatedAt: now$19
146258
146311
  };
146259
146312
  case "thread.interaction-mode.set": return {
146260
146313
  ...thread,
146261
146314
  interactionMode: command.interactionMode,
146262
- updatedAt: now$44
146315
+ updatedAt: now$19
146263
146316
  };
146264
146317
  case "thread.model-selection.set":
146265
146318
  case "provider.switch": return {
146266
146319
  ...thread,
146267
146320
  providerInstanceId: command.modelSelection.instanceId,
146268
146321
  modelSelection: command.modelSelection,
146269
- updatedAt: now$44
146322
+ updatedAt: now$19
146270
146323
  };
146271
146324
  }
146272
146325
  })();
@@ -146278,7 +146331,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146278
146331
  type: "thread.pull-request-link-updated",
146279
146332
  threadId: command.threadId,
146280
146333
  providerInstanceId: updatedThread.providerInstanceId,
146281
- occurredAt: now$44,
146334
+ occurredAt: now$19,
146282
146335
  payload: link
146283
146336
  });
146284
146337
  return;
@@ -146313,7 +146366,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146313
146366
  type: eventType,
146314
146367
  threadId: command.threadId,
146315
146368
  providerInstanceId: updatedThread.providerInstanceId,
146316
- occurredAt: now$44,
146369
+ occurredAt: now$19,
146317
146370
  payload: updatedThread
146318
146371
  });
146319
146372
  if (command.type === "thread.metadata.update" && command.regenerateTitle === true) yield* update$4(effects, (existing) => [...existing, pendingThreadTitleGenerationEffect(command.commandId, command.threadId, { type: "regenerate" })]);
@@ -146340,12 +146393,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146340
146393
  threadId: command.threadId,
146341
146394
  runId: run.id,
146342
146395
  providerInstanceId: run.providerInstanceId,
146343
- occurredAt: now$44,
146396
+ occurredAt: now$19,
146344
146397
  payload: {
146345
146398
  ...run,
146346
146399
  status: "cancelled",
146347
146400
  queuePosition: null,
146348
- completedAt: now$44
146401
+ completedAt: now$19
146349
146402
  }
146350
146403
  });
146351
146404
  for (const run of preparingRuns) {
@@ -146357,13 +146410,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146357
146410
  runId: run.id,
146358
146411
  nodeId: preparationItem.nodeId ?? void 0,
146359
146412
  providerInstanceId: run.providerInstanceId,
146360
- occurredAt: now$44,
146413
+ occurredAt: now$19,
146361
146414
  payload: {
146362
146415
  ...preparationItem,
146363
146416
  status: "cancelled",
146364
146417
  title: "Workspace preparation cancelled",
146365
- completedAt: now$44,
146366
- updatedAt: now$44
146418
+ completedAt: now$19,
146419
+ updatedAt: now$19
146367
146420
  }
146368
146421
  });
146369
146422
  }
@@ -146375,11 +146428,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146375
146428
  runId: attempt.runId,
146376
146429
  nodeId: attempt.rootNodeId,
146377
146430
  providerInstanceId: run.providerInstanceId,
146378
- occurredAt: now$44,
146431
+ occurredAt: now$19,
146379
146432
  payload: {
146380
146433
  ...attempt,
146381
146434
  status: "cancelled",
146382
- completedAt: now$44
146435
+ completedAt: now$19
146383
146436
  }
146384
146437
  });
146385
146438
  }
@@ -146395,11 +146448,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146395
146448
  runId: run.id,
146396
146449
  nodeId: node.id,
146397
146450
  providerInstanceId: run.providerInstanceId,
146398
- occurredAt: now$44,
146451
+ occurredAt: now$19,
146399
146452
  payload: {
146400
146453
  ...node,
146401
146454
  status: "cancelled",
146402
- completedAt: now$44
146455
+ completedAt: now$19
146403
146456
  }
146404
146457
  });
146405
146458
  }
@@ -146407,14 +146460,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146407
146460
  command,
146408
146461
  events,
146409
146462
  projection: yield* getProjectionWithPendingEvents(command.threadId, events),
146410
- now: now$44,
146463
+ now: now$19,
146411
146464
  cancelQueuedDelivery: false
146412
146465
  });
146413
146466
  yield* closePendingLinkRequests({
146414
146467
  command,
146415
146468
  events,
146416
146469
  threadId: command.threadId,
146417
- now: now$44
146470
+ now: now$19
146418
146471
  });
146419
146472
  }
146420
146473
  const detachSessionIds = new Set(command.type === "thread.archive" ? (providerContext?.providerSessions ?? []).map((session) => session.id) : movingProject || command.type === "thread.metadata.update" && command.worktreePath !== void 0 && command.worktreePath !== thread.worktreePath ? (providerContext?.providerSessions ?? []).map((session) => session.id) : command.type === "thread.runtime-mode.set" ? (providerContext?.providerSessions ?? []).filter((session) => !session.capabilities.sessions.supportsRuntimeModeSwitchInSession).map((session) => session.id) : providerSwitchPlan?.releaseProviderSessionIds ?? []);
@@ -146426,10 +146479,10 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146426
146479
  threadId: command.threadId,
146427
146480
  driver: session.driver,
146428
146481
  providerInstanceId: session.providerInstanceId,
146429
- occurredAt: now$44,
146482
+ occurredAt: now$19,
146430
146483
  payload: {
146431
146484
  providerSessionId: session.id,
146432
- detachedAt: now$44,
146485
+ detachedAt: now$19,
146433
146486
  reason: command.type === "thread.archive" ? "Thread archived." : command.type === "thread.metadata.update" ? "Workspace changed." : command.type === "thread.runtime-mode.set" ? "Runtime mode changed." : "Provider or model selection changed."
146434
146487
  }
146435
146488
  });
@@ -146467,16 +146520,16 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146467
146520
  commandType: command.type,
146468
146521
  cause: `Provider session ${command.providerSessionId} does not belong to thread ${command.threadId}.`
146469
146522
  });
146470
- const now$38 = yield* now;
146523
+ const now$11 = yield* now;
146471
146524
  yield* emit(events, command)({
146472
146525
  type: "provider-session.detached",
146473
146526
  threadId: command.threadId,
146474
146527
  driver: session.driver,
146475
146528
  providerInstanceId: session.providerInstanceId,
146476
- occurredAt: now$38,
146529
+ occurredAt: now$11,
146477
146530
  payload: {
146478
146531
  providerSessionId: session.id,
146479
- detachedAt: now$38,
146532
+ detachedAt: now$11,
146480
146533
  ...command.reason === void 0 ? {} : { reason: command.reason }
146481
146534
  }
146482
146535
  });
@@ -146509,17 +146562,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146509
146562
  const target = yield* projects.get(command.projectId).pipe(mapDispatchError(command));
146510
146563
  if (isNone(target) || target.value.deletedAt !== null) return yield* reject(`cannot move to missing project ${command.projectId}.`);
146511
146564
  if ((thread.worktreePath ?? getOrUndefined$1(current)?.workspaceRoot) !== target.value.workspaceRoot) return yield* reject(`does not work in ${target.value.workspaceRoot}.`);
146512
- const now$14 = yield* now;
146565
+ const now$37 = yield* now;
146513
146566
  yield* emit(events, command)({
146514
146567
  type: "thread.metadata-updated",
146515
146568
  threadId: command.threadId,
146516
146569
  providerInstanceId: thread.providerInstanceId,
146517
- occurredAt: now$14,
146570
+ occurredAt: now$37,
146518
146571
  payload: {
146519
146572
  ...thread,
146520
146573
  projectId: command.projectId,
146521
146574
  worktreePath: null,
146522
- updatedAt: now$14
146575
+ updatedAt: now$37
146523
146576
  }
146524
146577
  });
146525
146578
  });
@@ -146571,7 +146624,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146571
146624
  cause: forkableSourceRunStatusError(sourceRun)
146572
146625
  });
146573
146626
  const sourceProviderThread = providerThreadForRun(sourceProjection, sourceRun);
146574
- const now$16 = command.createdAt ?? (yield* now);
146627
+ const now$39 = command.createdAt ?? (yield* now);
146575
146628
  const emitEvent = emit(events, command);
146576
146629
  const transferId = yield* mapDispatchError(command)(idAllocator.allocate.contextTransfer({
146577
146630
  sourceThreadId: sourceProjection.thread.id,
@@ -146590,20 +146643,20 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146590
146643
  ...command.runtimeMode === void 0 ? {} : { runtimeMode: command.runtimeMode },
146591
146644
  createdBy: command.createdBy,
146592
146645
  creationSource: command.creationSource,
146593
- createdAt: now$16
146646
+ createdAt: now$39
146594
146647
  }).pipe(mapDispatchError(command));
146595
146648
  yield* emitEvent({
146596
146649
  type: "thread.created",
146597
146650
  threadId: command.targetThreadId,
146598
146651
  providerInstanceId: targetThread.providerInstanceId,
146599
- occurredAt: now$16,
146652
+ occurredAt: now$39,
146600
146653
  payload: targetThread
146601
146654
  });
146602
146655
  yield* emitEvent({
146603
146656
  type: "context-transfer.created",
146604
146657
  threadId: command.targetThreadId,
146605
146658
  providerInstanceId: sourceRun.providerInstanceId,
146606
- occurredAt: now$16,
146659
+ occurredAt: now$39,
146607
146660
  payload: transfer
146608
146661
  });
146609
146662
  });
@@ -146659,7 +146712,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146659
146712
  cause: "Finish or stop the target thread's active work and clear its queue before merging back."
146660
146713
  });
146661
146714
  const sourceProviderThread = providerThreadForRun(sourceProjection, sourceRun);
146662
- const now$37 = command.createdAt ?? (yield* now);
146715
+ const now$10 = command.createdAt ?? (yield* now);
146663
146716
  const emitEvent = emit(events, command);
146664
146717
  const transferId = yield* mapDispatchError(command)(idAllocator.allocate.contextTransfer({
146665
146718
  sourceThreadId: command.sourceThreadId,
@@ -146681,27 +146734,27 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146681
146734
  resolution: null,
146682
146735
  createdBy: command.createdBy,
146683
146736
  error: sourceProviderThread === void 0 ? "Source merge-back run has no provider thread." : null,
146684
- createdAt: now$37,
146685
- updatedAt: now$37,
146737
+ createdAt: now$10,
146738
+ updatedAt: now$10,
146686
146739
  consumedAt: null
146687
146740
  };
146688
146741
  for (const pendingTransfer of pendingMergeBackTransfersForPair) yield* emitEvent({
146689
146742
  type: "context-transfer.updated",
146690
146743
  threadId: command.targetThreadId,
146691
146744
  providerInstanceId: sourceRun.providerInstanceId,
146692
- occurredAt: now$37,
146745
+ occurredAt: now$10,
146693
146746
  payload: {
146694
146747
  ...pendingTransfer,
146695
146748
  status: "superseded",
146696
146749
  error: `Superseded by merge-back transfer ${transferId}.`,
146697
- updatedAt: now$37
146750
+ updatedAt: now$10
146698
146751
  }
146699
146752
  });
146700
146753
  yield* emitEvent({
146701
146754
  type: "context-transfer.created",
146702
146755
  threadId: command.targetThreadId,
146703
146756
  providerInstanceId: sourceRun.providerInstanceId,
146704
- occurredAt: now$37,
146757
+ occurredAt: now$10,
146705
146758
  payload: transfer
146706
146759
  });
146707
146760
  });
@@ -146763,7 +146816,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146763
146816
  cause: `Provider session ${providerThread.providerSessionId} is not active.`
146764
146817
  });
146765
146818
  const session = sessionOption.value;
146766
- const now$40 = yield* now;
146819
+ const now$14 = yield* now;
146767
146820
  const emitEvent = emit(input.events, input.command);
146768
146821
  const selectionChanged = !modelSelectionsEqual(targetRun.modelSelection, input.modelSelection);
146769
146822
  const providerInstanceChanged = targetRun.providerInstanceId !== input.modelSelection.instanceId;
@@ -146798,8 +146851,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146798
146851
  attachments: input.attachments,
146799
146852
  ...input.context ? { context: input.context } : {},
146800
146853
  streaming: false,
146801
- createdAt: now$40,
146802
- updatedAt: now$40
146854
+ createdAt: now$14,
146855
+ updatedAt: now$14
146803
146856
  };
146804
146857
  const turnItem = {
146805
146858
  createdBy: input.createdBy,
@@ -146817,9 +146870,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146817
146870
  ordinal: yield* nextTurnItemOrdinal(input.projection),
146818
146871
  status: "completed",
146819
146872
  title: null,
146820
- startedAt: now$40,
146821
- completedAt: now$40,
146822
- updatedAt: now$40,
146873
+ startedAt: now$14,
146874
+ completedAt: now$14,
146875
+ updatedAt: now$14,
146823
146876
  type: "user_message",
146824
146877
  messageId: input.messageId,
146825
146878
  inputIntent: input.command.type === "queued-message.promote-to-steer" ? "promoted_queued_to_steer" : "steer",
@@ -146833,7 +146886,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146833
146886
  runId: messageInput.runId,
146834
146887
  nodeId: messageInput.nodeId,
146835
146888
  providerInstanceId: messageInput.providerInstanceId,
146836
- occurredAt: now$40,
146889
+ occurredAt: now$14,
146837
146890
  payload: message
146838
146891
  });
146839
146892
  yield* emitEvent({
@@ -146842,7 +146895,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146842
146895
  runId: messageInput.runId,
146843
146896
  nodeId: messageInput.nodeId,
146844
146897
  providerInstanceId: messageInput.providerInstanceId,
146845
- occurredAt: now$40,
146898
+ occurredAt: now$14,
146846
146899
  payload: notificationTurnItem(turnItem, message, input.projection.subagents)
146847
146900
  });
146848
146901
  });
@@ -146860,12 +146913,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146860
146913
  type: instanceChanged ? "thread.provider-switched" : "thread.model-selection-updated",
146861
146914
  threadId: input.command.threadId,
146862
146915
  providerInstanceId: input.modelSelection.instanceId,
146863
- occurredAt: now$40,
146916
+ occurredAt: now$14,
146864
146917
  payload: {
146865
146918
  ...input.projection.thread,
146866
146919
  providerInstanceId: input.modelSelection.instanceId,
146867
146920
  modelSelection: input.modelSelection,
146868
- updatedAt: now$40
146921
+ updatedAt: now$14
146869
146922
  }
146870
146923
  });
146871
146924
  yield* appendSteeringMessage({
@@ -146957,13 +147010,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146957
147010
  lastRunOrdinal: targetRun.ordinal,
146958
147011
  handoffIds: [],
146959
147012
  forkedFrom: null,
146960
- createdAt: now$40,
146961
- updatedAt: now$40
147013
+ createdAt: now$14,
147014
+ updatedAt: now$14
146962
147015
  } : {
146963
147016
  ...existingTargetProviderThread,
146964
147017
  providerSessionId: targetProviderSessionId,
146965
147018
  lastRunOrdinal: targetRun.ordinal,
146966
- updatedAt: now$40
147019
+ updatedAt: now$14
146967
147020
  };
146968
147021
  const transferId = yield* mapDispatchError(input.command)(idAllocator.allocate.contextTransfer({
146969
147022
  sourceThreadId: input.command.threadId,
@@ -146985,7 +147038,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
146985
147038
  strategy: "full_thread_summary",
146986
147039
  items: yield* readHandoffItems(input.command.threadId),
146987
147040
  runs: input.projection.runs,
146988
- createdAt: now$40
147041
+ createdAt: now$14
146989
147042
  }).pipe(mapDispatchError(input.command));
146990
147043
  restartProviderThread = {
146991
147044
  ...targetProviderThreadBase,
@@ -147008,9 +147061,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147008
147061
  },
147009
147062
  createdBy: input.createdBy,
147010
147063
  error: null,
147011
- createdAt: now$40,
147012
- updatedAt: now$40,
147013
- consumedAt: now$40
147064
+ createdAt: now$14,
147065
+ updatedAt: now$14,
147066
+ consumedAt: now$14
147014
147067
  };
147015
147068
  restartSessionTransition = { type: "detach" };
147016
147069
  } else if (requiresProviderSessionRestart) {
@@ -147023,7 +147076,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147023
147076
  providerInstanceId: input.modelSelection.instanceId,
147024
147077
  providerSessionId: nextProviderSessionId,
147025
147078
  status: "not_loaded",
147026
- updatedAt: now$40
147079
+ updatedAt: now$14
147027
147080
  };
147028
147081
  restartSessionTransition = {
147029
147082
  type: "replace",
@@ -147044,7 +147097,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147044
147097
  rootNodeId: nextRootNodeId,
147045
147098
  providerThreadId: restartProviderThread.id,
147046
147099
  cwd: resolvedRuntimePolicy.cwd ?? input.projection.thread.worktreePath ?? session.providerSession.cwd,
147047
- createdAt: now$40
147100
+ createdAt: now$14
147048
147101
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
147049
147102
  commandId: input.command.commandId,
147050
147103
  commandType: input.command.type,
@@ -147102,11 +147155,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147102
147155
  runId: targetRun.id,
147103
147156
  nodeId: rootNodeId,
147104
147157
  providerInstanceId: targetRun.providerInstanceId,
147105
- occurredAt: now$40,
147158
+ occurredAt: now$14,
147106
147159
  payload: {
147107
147160
  ...currentAttempt,
147108
147161
  status: "superseded",
147109
- completedAt: now$40
147162
+ completedAt: now$14
147110
147163
  }
147111
147164
  });
147112
147165
  if (currentRootNode !== void 0) yield* emitEvent({
@@ -147115,23 +147168,23 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147115
147168
  runId: targetRun.id,
147116
147169
  nodeId: rootNodeId,
147117
147170
  providerInstanceId: targetRun.providerInstanceId,
147118
- occurredAt: now$40,
147171
+ occurredAt: now$14,
147119
147172
  payload: {
147120
147173
  ...currentRootNode,
147121
147174
  status: "interrupted",
147122
- completedAt: now$40
147175
+ completedAt: now$14
147123
147176
  }
147124
147177
  });
147125
147178
  if (selectionChanged) yield* emitEvent({
147126
147179
  type: providerInstanceChanged ? "thread.provider-switched" : "thread.model-selection-updated",
147127
147180
  threadId: input.command.threadId,
147128
147181
  providerInstanceId: input.modelSelection.instanceId,
147129
- occurredAt: now$40,
147182
+ occurredAt: now$14,
147130
147183
  payload: {
147131
147184
  ...input.projection.thread,
147132
147185
  providerInstanceId: input.modelSelection.instanceId,
147133
147186
  modelSelection: input.modelSelection,
147134
- updatedAt: now$40
147187
+ updatedAt: now$14
147135
147188
  }
147136
147189
  });
147137
147190
  if (requiresProviderThreadHandoff || requiresProviderSessionRestart) yield* emitEvent({
@@ -147139,7 +147192,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147139
147192
  threadId: input.command.threadId,
147140
147193
  driver: restartProviderThread.driver,
147141
147194
  providerInstanceId: input.modelSelection.instanceId,
147142
- occurredAt: now$40,
147195
+ occurredAt: now$14,
147143
147196
  payload: restartProviderThread
147144
147197
  });
147145
147198
  if (restartHandoff !== null) yield* emitEvent({
@@ -147147,7 +147200,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147147
147200
  threadId: input.command.threadId,
147148
147201
  runId: targetRun.id,
147149
147202
  providerInstanceId: input.modelSelection.instanceId,
147150
- occurredAt: now$40,
147203
+ occurredAt: now$14,
147151
147204
  payload: restartHandoff
147152
147205
  });
147153
147206
  if (restartTransfer !== null) yield* emitEvent({
@@ -147155,7 +147208,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147155
147208
  threadId: input.command.threadId,
147156
147209
  runId: targetRun.id,
147157
147210
  providerInstanceId: input.modelSelection.instanceId,
147158
- occurredAt: now$40,
147211
+ occurredAt: now$14,
147159
147212
  payload: restartTransfer
147160
147213
  });
147161
147214
  yield* emitEvent({
@@ -147164,7 +147217,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147164
147217
  runId: targetRun.id,
147165
147218
  nodeId: nextRootNodeId,
147166
147219
  providerInstanceId: input.modelSelection.instanceId,
147167
- occurredAt: now$40,
147220
+ occurredAt: now$14,
147168
147221
  payload: restartedRun
147169
147222
  });
147170
147223
  yield* emitEvent({
@@ -147173,7 +147226,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147173
147226
  runId: targetRun.id,
147174
147227
  nodeId: nextRootNodeId,
147175
147228
  providerInstanceId: input.modelSelection.instanceId,
147176
- occurredAt: now$40,
147229
+ occurredAt: now$14,
147177
147230
  payload: nextAttempt
147178
147231
  });
147179
147232
  yield* emitEvent({
@@ -147182,7 +147235,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147182
147235
  runId: targetRun.id,
147183
147236
  nodeId: nextRootNodeId,
147184
147237
  providerInstanceId: input.modelSelection.instanceId,
147185
- occurredAt: now$40,
147238
+ occurredAt: now$14,
147186
147239
  payload: nextRootNode
147187
147240
  });
147188
147241
  yield* emitEvent({
@@ -147191,7 +147244,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147191
147244
  runId: targetRun.id,
147192
147245
  nodeId: nextRootNodeId,
147193
147246
  providerInstanceId: input.modelSelection.instanceId,
147194
- occurredAt: now$40,
147247
+ occurredAt: now$14,
147195
147248
  payload: ensuredCheckpointScope
147196
147249
  });
147197
147250
  yield* acceptDelegatedCompletionDelivery({
@@ -147199,7 +147252,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147199
147252
  events: input.events,
147200
147253
  projection: input.projection,
147201
147254
  messageId: targetRun.userMessageId,
147202
- now: now$40
147255
+ now: now$14
147203
147256
  });
147204
147257
  yield* appendSteeringMessage({
147205
147258
  runId: targetRun.id,
@@ -147244,15 +147297,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147244
147297
  const run = usageLimitBlockedRun(projection.runs, projection.turnItems, null);
147245
147298
  const failure = latestRootProviderFailure(run, projection.turnItems);
147246
147299
  const recovery = projection.thread.limitRecovery;
147247
- const now$39 = yield* now;
147248
- if (run?.id !== command.usageLimitContinuationOfRunId || failure?.class !== "usage_limit" || threadShellFromProjection(projection).lastErrorClass !== "usage_limit" || !recovery?.autoResume || recovery.requestId !== command.usageLimitRecoveryRequestId || recovery.runId !== run.id || recovery.resetAt !== failure.resetAt || Date.parse(recovery.resetAt) > toEpochMillis(now$39) || projection.thread.archivedAt !== null || projection.thread.deletedAt !== null || projection.thread.providerInstanceId !== run.providerInstanceId || projection.runtimeRequests.some((request) => request.status === "pending") || projection.thread.snoozedUntil != null && toEpochMillis(projection.thread.snoozedUntil) > toEpochMillis(now$39)) {
147300
+ const now$12 = yield* now;
147301
+ if (run?.id !== command.usageLimitContinuationOfRunId || failure?.class !== "usage_limit" || threadShellFromProjection(projection).lastErrorClass !== "usage_limit" || !recovery?.autoResume || recovery.requestId !== command.usageLimitRecoveryRequestId || recovery.runId !== run.id || recovery.resetAt !== failure.resetAt || Date.parse(recovery.resetAt) > toEpochMillis(now$12) || projection.thread.archivedAt !== null || projection.thread.deletedAt !== null || projection.thread.providerInstanceId !== run.providerInstanceId || projection.runtimeRequests.some((request) => request.status === "pending") || projection.thread.snoozedUntil != null && toEpochMillis(projection.thread.snoozedUntil) > toEpochMillis(now$12)) {
147249
147302
  yield* emit(events, command)({
147250
147303
  type: "thread.metadata-updated",
147251
147304
  threadId: command.threadId,
147252
- occurredAt: now$39,
147305
+ occurredAt: now$12,
147253
147306
  payload: {
147254
147307
  ...projection.thread,
147255
- ...recovery?.autoResume && recovery.requestId === command.usageLimitRecoveryRequestId && recovery.runId === command.usageLimitContinuationOfRunId && projection.thread.snoozedUntil != null && toEpochMillis(projection.thread.snoozedUntil) > toEpochMillis(now$39) ? { limitRecovery: {
147308
+ ...recovery?.autoResume && recovery.requestId === command.usageLimitRecoveryRequestId && recovery.runId === command.usageLimitContinuationOfRunId && projection.thread.snoozedUntil != null && toEpochMillis(projection.thread.snoozedUntil) > toEpochMillis(now$12) ? { limitRecovery: {
147256
147309
  ...recovery,
147257
147310
  requestId: command.commandId
147258
147311
  } } : {}
@@ -147275,18 +147328,18 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147275
147328
  }
147276
147329
  const continuedTaskId = projection.runs.find((run) => run.id === command.restartContinuationOfRunId)?.delegatedTaskId;
147277
147330
  if (projection.thread.snoozedUntil != null) {
147278
- const now$31 = yield* now;
147331
+ const now$52 = yield* now;
147279
147332
  const thread = {
147280
147333
  ...projection.thread,
147281
147334
  snoozedUntil: null,
147282
147335
  snoozedAt: null,
147283
- updatedAt: now$31
147336
+ updatedAt: now$52
147284
147337
  };
147285
147338
  const event = yield* emit(events, command)({
147286
147339
  type: "thread.unsnoozed",
147287
147340
  threadId: command.threadId,
147288
147341
  providerInstanceId: thread.providerInstanceId,
147289
- occurredAt: now$31,
147342
+ occurredAt: now$52,
147290
147343
  payload: thread
147291
147344
  });
147292
147345
  projection = applyToProjection(projection, event);
@@ -147294,21 +147347,21 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147294
147347
  const userMessages = projection.messages.filter((message) => message.role === "user");
147295
147348
  const onlyMaintenanceHistory = userMessages.length > 0 && userMessages.every(isNativeMaintenanceCommand);
147296
147349
  if (!isNativeMaintenanceCommand(command) && (command.titleSeed !== void 0 && (yield* projectionStore.getMessageCount(command.threadId).pipe(mapDispatchError(command))) === 0 || command.createdBy === "user" && onlyMaintenanceHistory)) {
147297
- const now$11 = yield* now;
147350
+ const now$33 = yield* now;
147298
147351
  const thread = {
147299
147352
  ...projection.thread,
147300
147353
  title: command.titleSeed ?? projection.thread.title,
147301
147354
  titleRegeneration: {
147302
147355
  requestId: command.commandId,
147303
- startedAt: now$11
147356
+ startedAt: now$33
147304
147357
  },
147305
- updatedAt: now$11
147358
+ updatedAt: now$33
147306
147359
  };
147307
147360
  const event = yield* emit(events, command)({
147308
147361
  type: "thread.metadata-updated",
147309
147362
  threadId: command.threadId,
147310
147363
  providerInstanceId: thread.providerInstanceId,
147311
- occurredAt: now$11,
147364
+ occurredAt: now$33,
147312
147365
  payload: thread
147313
147366
  });
147314
147367
  yield* update$4(effects, (existing) => [...existing, pendingThreadTitleGenerationEffect(command.commandId, command.threadId, {
@@ -147457,7 +147510,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147457
147510
  commandType: command.type,
147458
147511
  cause: `Active run ${queueBehindRun.id} has no provider thread for queued dispatch.`
147459
147512
  });
147460
- const now$7 = yield* now;
147513
+ const now$30 = yield* now;
147461
147514
  const ordinal = nextRunOrdinal(projection);
147462
147515
  const runId = idAllocator.derive.run({
147463
147516
  threadId: command.threadId,
@@ -147490,8 +147543,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147490
147543
  lastRunOrdinal: null,
147491
147544
  handoffIds: [],
147492
147545
  forkedFrom: null,
147493
- createdAt: now$7,
147494
- updatedAt: now$7
147546
+ createdAt: now$30,
147547
+ updatedAt: now$30
147495
147548
  };
147496
147549
  const attemptId = idAllocator.derive.runAttempt({
147497
147550
  runId,
@@ -147507,7 +147560,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147507
147560
  rootNodeId,
147508
147561
  providerThreadId: queuedProviderThread.id,
147509
147562
  cwd: resolvedRuntimePolicy.cwd ?? selectedProviderSession?.cwd ?? projection.thread.worktreePath ?? process.cwd(),
147510
- createdAt: now$7
147563
+ createdAt: now$30
147511
147564
  })), mapError((cause) => new OrchestratorDispatchError({
147512
147565
  commandId: command.commandId,
147513
147566
  commandType: command.type,
@@ -147528,7 +147581,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147528
147581
  status: "queued",
147529
147582
  ...worktreeMissingRun !== void 0 || queueIsHeld && !wakeSkipsHold ? { queueHeld: true } : {},
147530
147583
  queuePosition: goalStopRunId !== void 0 ? 1 : Math.max(0, ...projection.runs.filter((candidate) => candidate.status === "queued").map((candidate) => candidate.queuePosition ?? candidate.ordinal)) + 1,
147531
- requestedAt: now$7,
147584
+ requestedAt: now$30,
147532
147585
  startedAt: null,
147533
147586
  completedAt: null,
147534
147587
  checkpointId: null,
@@ -147582,8 +147635,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147582
147635
  ...command.context ? { context: command.context } : {},
147583
147636
  attachments: command.attachments,
147584
147637
  streaming: false,
147585
- createdAt: now$7,
147586
- updatedAt: now$7,
147638
+ createdAt: now$30,
147639
+ updatedAt: now$30,
147587
147640
  ...delegatedCompletion === void 0 ? {} : { delegatedCompletion },
147588
147641
  ...command.notification === void 0 ? {} : { notification: command.notification }
147589
147642
  };
@@ -147592,7 +147645,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147592
147645
  type: "provider-thread.updated",
147593
147646
  threadId: command.threadId,
147594
147647
  providerInstanceId: modelSelection.instanceId,
147595
- occurredAt: now$7,
147648
+ occurredAt: now$30,
147596
147649
  payload: queuedProviderThread
147597
147650
  });
147598
147651
  yield* emitEvent({
@@ -147601,17 +147654,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147601
147654
  runId,
147602
147655
  nodeId: rootNodeId,
147603
147656
  providerInstanceId: modelSelection.instanceId,
147604
- occurredAt: now$7,
147657
+ occurredAt: now$30,
147605
147658
  payload: run
147606
147659
  });
147607
- yield* completeSourcePlan(now$7);
147660
+ yield* completeSourcePlan(now$30);
147608
147661
  yield* emitEvent({
147609
147662
  type: "run-attempt.created",
147610
147663
  threadId: command.threadId,
147611
147664
  runId,
147612
147665
  nodeId: rootNodeId,
147613
147666
  providerInstanceId: modelSelection.instanceId,
147614
- occurredAt: now$7,
147667
+ occurredAt: now$30,
147615
147668
  payload: attempt
147616
147669
  });
147617
147670
  yield* emitEvent({
@@ -147620,7 +147673,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147620
147673
  runId,
147621
147674
  nodeId: rootNodeId,
147622
147675
  providerInstanceId: modelSelection.instanceId,
147623
- occurredAt: now$7,
147676
+ occurredAt: now$30,
147624
147677
  payload: rootNode
147625
147678
  });
147626
147679
  if (checkpointScope !== null) yield* emitEvent({
@@ -147629,7 +147682,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147629
147682
  runId,
147630
147683
  nodeId: rootNodeId,
147631
147684
  providerInstanceId: modelSelection.instanceId,
147632
- occurredAt: now$7,
147685
+ occurredAt: now$30,
147633
147686
  payload: yield* checkpointService.ensureScope(checkpointScope).pipe(mapError((cause) => new OrchestratorDispatchError({
147634
147687
  commandId: command.commandId,
147635
147688
  commandType: command.type,
@@ -147642,7 +147695,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147642
147695
  runId,
147643
147696
  nodeId: rootNodeId,
147644
147697
  providerInstanceId: modelSelection.instanceId,
147645
- occurredAt: now$7,
147698
+ occurredAt: now$30,
147646
147699
  payload: message
147647
147700
  });
147648
147701
  const existingItem = projection.turnItems.find((item) => item.type === "user_message" && item.messageId === command.messageId);
@@ -147652,7 +147705,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147652
147705
  runId,
147653
147706
  nodeId: rootNodeId,
147654
147707
  providerInstanceId: modelSelection.instanceId,
147655
- occurredAt: now$7,
147708
+ occurredAt: now$30,
147656
147709
  payload: {
147657
147710
  ...existingItem,
147658
147711
  runId,
@@ -147663,7 +147716,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147663
147716
  status: "pending",
147664
147717
  startedAt: null,
147665
147718
  completedAt: null,
147666
- updatedAt: now$7
147719
+ updatedAt: now$30
147667
147720
  }
147668
147721
  });
147669
147722
  if (goalStopRunId !== void 0) return yield* stopRunForGoalCommand({
@@ -147673,7 +147726,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147673
147726
  projection: yield* getProjectionWithPendingEvents(command.threadId, events),
147674
147727
  queuedRunId: runId,
147675
147728
  targetRunId: goalStopRunId,
147676
- now: now$7
147729
+ now: now$30
147677
147730
  });
147678
147731
  return;
147679
147732
  }
@@ -147685,17 +147738,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147685
147738
  });
147686
147739
  const pendingMergeBackTransfer = latestContextTransfer(pendingMergeBackTransfers);
147687
147740
  const supersededMergeBackTransfers = pendingMergeBackTransfers.filter((transfer) => transfer.id !== pendingMergeBackTransfer?.id);
147688
- const now$8 = yield* now;
147741
+ const now$13 = yield* now;
147689
147742
  if (!modelSelectionsEqual(projection.thread.modelSelection, modelSelection) || projection.thread.providerInstanceId !== modelSelection.instanceId) yield* emit(events, command)({
147690
147743
  type: projection.thread.providerInstanceId === modelSelection.instanceId ? "thread.model-selection-updated" : "thread.provider-switched",
147691
147744
  threadId: command.threadId,
147692
147745
  providerInstanceId: modelSelection.instanceId,
147693
- occurredAt: now$8,
147746
+ occurredAt: now$13,
147694
147747
  payload: {
147695
147748
  ...projection.thread,
147696
147749
  providerInstanceId: modelSelection.instanceId,
147697
147750
  modelSelection,
147698
- updatedAt: now$8
147751
+ updatedAt: now$13
147699
147752
  }
147700
147753
  });
147701
147754
  const ordinal = nextRunOrdinal(projection);
@@ -147752,7 +147805,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147752
147805
  toProviderThreadId: providerThreadId,
147753
147806
  toProviderInstanceId: modelSelection.instanceId,
147754
147807
  items: legacyImportItems,
147755
- createdAt: now$8
147808
+ createdAt: now$13
147756
147809
  }).pipe(mapDispatchError(command)) : null;
147757
147810
  const providerThread = activeProviderThread === void 0 ? {
147758
147811
  id: providerThreadId,
@@ -147768,14 +147821,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147768
147821
  lastRunOrdinal: ordinal,
147769
147822
  handoffIds: legacyImportHandoff === null ? [] : [legacyImportHandoff.id],
147770
147823
  forkedFrom: null,
147771
- createdAt: now$8,
147772
- updatedAt: now$8
147824
+ createdAt: now$13,
147825
+ updatedAt: now$13
147773
147826
  } : {
147774
147827
  ...activeProviderThread,
147775
147828
  providerSessionId,
147776
147829
  lastRunOrdinal: ordinal,
147777
147830
  handoffIds: appendContextHandoffId(activeProviderThread.handoffIds, legacyImportHandoff?.id ?? null),
147778
- updatedAt: now$8
147831
+ updatedAt: now$13
147779
147832
  };
147780
147833
  const attemptId = idAllocator.derive.runAttempt({
147781
147834
  runId,
@@ -147791,7 +147844,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147791
147844
  rootNodeId,
147792
147845
  providerThreadId,
147793
147846
  cwd: resolvedRuntimePolicy.cwd ?? projection.thread.worktreePath ?? process.cwd(),
147794
- createdAt: now$8
147847
+ createdAt: now$13
147795
147848
  })), mapDispatchError(command));
147796
147849
  const run = {
147797
147850
  id: runId,
@@ -147805,7 +147858,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147805
147858
  activeAttemptId: attemptId,
147806
147859
  status: dispatchMode.type === "defer_start" ? "preparing" : "starting",
147807
147860
  queuePosition: null,
147808
- requestedAt: now$8,
147861
+ requestedAt: now$13,
147809
147862
  startedAt: null,
147810
147863
  completedAt: null,
147811
147864
  checkpointId: null,
@@ -147861,8 +147914,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147861
147914
  ...command.context ? { context: command.context } : {},
147862
147915
  attachments: command.attachments,
147863
147916
  streaming: false,
147864
- createdAt: now$8,
147865
- updatedAt: now$8,
147917
+ createdAt: now$13,
147918
+ updatedAt: now$13,
147866
147919
  ...delegatedCompletion === void 0 ? {} : { delegatedCompletion },
147867
147920
  ...command.notification === void 0 ? {} : { notification: command.notification }
147868
147921
  };
@@ -147882,9 +147935,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147882
147935
  ordinal: yield* nextTurnItemOrdinal(projection),
147883
147936
  status: "completed",
147884
147937
  title: null,
147885
- startedAt: now$8,
147886
- completedAt: now$8,
147887
- updatedAt: now$8,
147938
+ startedAt: now$13,
147939
+ completedAt: now$13,
147940
+ updatedAt: now$13,
147888
147941
  type: "user_message",
147889
147942
  messageId: command.messageId,
147890
147943
  inputIntent: "turn_start",
@@ -147908,9 +147961,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147908
147961
  ordinal: turnItem.ordinal + 1,
147909
147962
  status: "completed",
147910
147963
  title: AUTO_WORKSPACE_NOTICE_TITLE,
147911
- startedAt: now$8,
147912
- completedAt: now$8,
147913
- updatedAt: now$8,
147964
+ startedAt: now$13,
147965
+ completedAt: now$13,
147966
+ updatedAt: now$13,
147914
147967
  type: "system_notice",
147915
147968
  message: autoWorkspaceNoticeMessage(autoWorkspace)
147916
147969
  };
@@ -147929,9 +147982,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147929
147982
  ordinal: turnItem.ordinal + (autoWorkspaceTurnItem === null ? 1 : 2),
147930
147983
  status: "running",
147931
147984
  title: WORKSPACE_PREPARATION_INPUT,
147932
- startedAt: now$8,
147985
+ startedAt: now$13,
147933
147986
  completedAt: null,
147934
- updatedAt: now$8,
147987
+ updatedAt: now$13,
147935
147988
  type: "command_execution",
147936
147989
  input: WORKSPACE_PREPARATION_INPUT
147937
147990
  } : null;
@@ -147941,7 +147994,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147941
147994
  threadId: command.threadId,
147942
147995
  driver: adapter.driver,
147943
147996
  providerInstanceId: modelSelection.instanceId,
147944
- occurredAt: now$8,
147997
+ occurredAt: now$13,
147945
147998
  payload: providerThread
147946
147999
  });
147947
148000
  if (legacyImportHandoff !== null) yield* emitEvent({
@@ -147949,7 +148002,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147949
148002
  threadId: command.threadId,
147950
148003
  runId,
147951
148004
  providerInstanceId: modelSelection.instanceId,
147952
- occurredAt: now$8,
148005
+ occurredAt: now$13,
147953
148006
  payload: legacyImportHandoff
147954
148007
  });
147955
148008
  yield* emitEvent({
@@ -147958,17 +148011,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147958
148011
  runId,
147959
148012
  nodeId: rootNodeId,
147960
148013
  providerInstanceId: modelSelection.instanceId,
147961
- occurredAt: now$8,
148014
+ occurredAt: now$13,
147962
148015
  payload: run
147963
148016
  });
147964
- yield* completeSourcePlan(now$8);
148017
+ yield* completeSourcePlan(now$13);
147965
148018
  yield* emitEvent({
147966
148019
  type: "run-attempt.created",
147967
148020
  threadId: command.threadId,
147968
148021
  runId,
147969
148022
  nodeId: rootNodeId,
147970
148023
  providerInstanceId: modelSelection.instanceId,
147971
- occurredAt: now$8,
148024
+ occurredAt: now$13,
147972
148025
  payload: attempt
147973
148026
  });
147974
148027
  yield* emitEvent({
@@ -147977,7 +148030,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147977
148030
  runId,
147978
148031
  nodeId: rootNodeId,
147979
148032
  providerInstanceId: modelSelection.instanceId,
147980
- occurredAt: now$8,
148033
+ occurredAt: now$13,
147981
148034
  payload: rootNode
147982
148035
  });
147983
148036
  if (checkpointScope !== null) yield* emitEvent({
@@ -147986,7 +148039,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147986
148039
  runId,
147987
148040
  nodeId: rootNodeId,
147988
148041
  providerInstanceId: modelSelection.instanceId,
147989
- occurredAt: now$8,
148042
+ occurredAt: now$13,
147990
148043
  payload: checkpointScope
147991
148044
  });
147992
148045
  yield* emitEvent({
@@ -147995,7 +148048,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
147995
148048
  runId,
147996
148049
  nodeId: rootNodeId,
147997
148050
  providerInstanceId: modelSelection.instanceId,
147998
- occurredAt: now$8,
148051
+ occurredAt: now$13,
147999
148052
  payload: message
148000
148053
  });
148001
148054
  yield* emitEvent({
@@ -148004,7 +148057,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148004
148057
  runId,
148005
148058
  nodeId: rootNodeId,
148006
148059
  providerInstanceId: modelSelection.instanceId,
148007
- occurredAt: now$8,
148060
+ occurredAt: now$13,
148008
148061
  payload: notificationTurnItem(turnItem, message, projection.subagents)
148009
148062
  });
148010
148063
  if (autoWorkspaceTurnItem !== null) yield* emitEvent({
@@ -148013,7 +148066,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148013
148066
  runId,
148014
148067
  nodeId: rootNodeId,
148015
148068
  providerInstanceId: modelSelection.instanceId,
148016
- occurredAt: now$8,
148069
+ occurredAt: now$13,
148017
148070
  payload: autoWorkspaceTurnItem
148018
148071
  });
148019
148072
  if (preparationTurnItem !== null) yield* emitEvent({
@@ -148022,7 +148075,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148022
148075
  runId,
148023
148076
  nodeId: rootNodeId,
148024
148077
  providerInstanceId: modelSelection.instanceId,
148025
- occurredAt: now$8,
148078
+ occurredAt: now$13,
148026
148079
  payload: preparationTurnItem
148027
148080
  });
148028
148081
  const pendingEffect = {
@@ -148125,13 +148178,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148125
148178
  providerThreadId: sourceProviderThread.id,
148126
148179
  ...sourceProviderTurnId === void 0 ? {} : { providerTurnId: sourceProviderTurnId }
148127
148180
  } : null,
148128
- createdAt: now$8,
148129
- updatedAt: now$8
148181
+ createdAt: now$13,
148182
+ updatedAt: now$13
148130
148183
  } : {
148131
148184
  ...targetProviderThread,
148132
148185
  providerInstanceId: modelSelection.instanceId,
148133
148186
  providerSessionId,
148134
- updatedAt: now$8
148187
+ updatedAt: now$13
148135
148188
  };
148136
148189
  const portableForkItems = !requiresPortableFork || sourceProjection === null || sourceRun === null ? [] : yield* readHandoffItems(sourceProjection.thread.id, [...sourceProjection.runs.filter((run) => run.ordinal <= sourceRun.ordinal).map((run) => run.id), ...sourceProjection.thread.historyOrigin === "v1_import" ? [null] : []]);
148137
148190
  const portableForkHandoff = !requiresPortableFork || pendingForkTransfer === void 0 || sourceProjection === null || sourceRun === null ? null : yield* contextHandoffService.prepareProviderHandoff({
@@ -148146,7 +148199,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148146
148199
  strategy: "full_thread_summary",
148147
148200
  items: portableForkItems,
148148
148201
  runs: sourceProjection.runs,
148149
- createdAt: now$8
148202
+ createdAt: now$13
148150
148203
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
148151
148204
  commandId: command.commandId,
148152
148205
  commandType: command.type,
@@ -148183,7 +148236,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148183
148236
  strategy: targetProviderThread === void 0 || requiresFullProviderSwitchContext ? "full_thread_summary" : "delta_since_target_last_seen",
148184
148237
  items: providerSwitchItems,
148185
148238
  runs: projection.runs,
148186
- createdAt: now$8
148239
+ createdAt: now$13
148187
148240
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
148188
148241
  commandId: command.commandId,
148189
148242
  commandType: command.type,
@@ -148195,7 +148248,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148195
148248
  toProviderThreadId: ensuredProviderThread.id,
148196
148249
  toProviderInstanceId: modelSelection.instanceId,
148197
148250
  items: legacyImportItems,
148198
- createdAt: now$8
148251
+ createdAt: now$13
148199
148252
  }).pipe(mapDispatchError(command)) : null;
148200
148253
  const providerThread = {
148201
148254
  ...ensuredProviderThread,
@@ -148207,7 +148260,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148207
148260
  providerSwitchHandoff,
148208
148261
  legacyImportRecoveryHandoff
148209
148262
  ].flatMap((handoff) => handoff === null ? [] : [handoff.id])],
148210
- updatedAt: now$8
148263
+ updatedAt: now$13
148211
148264
  };
148212
148265
  const attemptId = idAllocator.derive.runAttempt({
148213
148266
  runId,
@@ -148255,7 +148308,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148255
148308
  toProviderInstanceId: modelSelection.instanceId,
148256
148309
  coveredRunOrdinals: visibleDeltaRunOrdinals(mergeBackSourceProjection, mergeBackDeltaItems),
148257
148310
  deltaItems: mergeBackDeltaItems,
148258
- createdAt: now$8
148311
+ createdAt: now$13
148259
148312
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
148260
148313
  commandId: command.commandId,
148261
148314
  commandType: command.type,
@@ -148267,7 +148320,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148267
148320
  rootNodeId,
148268
148321
  providerThreadId: providerThread.id,
148269
148322
  cwd: resolvedRuntimePolicy.cwd ?? existingProviderSession?.cwd ?? projection.thread.worktreePath ?? process.cwd(),
148270
- createdAt: now$8
148323
+ createdAt: now$13
148271
148324
  }).pipe(mapError((cause) => new OrchestratorDispatchError({
148272
148325
  commandId: command.commandId,
148273
148326
  commandType: command.type,
@@ -148285,7 +148338,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148285
148338
  activeAttemptId: attemptId,
148286
148339
  status: "starting",
148287
148340
  queuePosition: null,
148288
- requestedAt: now$8,
148341
+ requestedAt: now$13,
148289
148342
  startedAt: null,
148290
148343
  completedAt: null,
148291
148344
  checkpointId: null,
@@ -148340,8 +148393,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148340
148393
  ...command.context ? { context: command.context } : {},
148341
148394
  attachments: command.attachments,
148342
148395
  streaming: false,
148343
- createdAt: now$8,
148344
- updatedAt: now$8,
148396
+ createdAt: now$13,
148397
+ updatedAt: now$13,
148345
148398
  ...delegatedCompletion === void 0 ? {} : { delegatedCompletion },
148346
148399
  ...command.notification === void 0 ? {} : { notification: command.notification }
148347
148400
  };
@@ -148361,9 +148414,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148361
148414
  ordinal: ordinal * 100,
148362
148415
  status: "completed",
148363
148416
  title: null,
148364
- startedAt: now$8,
148365
- completedAt: now$8,
148366
- updatedAt: now$8,
148417
+ startedAt: now$13,
148418
+ completedAt: now$13,
148419
+ updatedAt: now$13,
148367
148420
  type: "user_message",
148368
148421
  messageId: command.messageId,
148369
148422
  inputIntent: "turn_start",
@@ -148389,9 +148442,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148389
148442
  ordinal: ordinal * 100 - 1,
148390
148443
  status: "completed",
148391
148444
  title: portableForkHandoff !== null ? "Fork context" : providerSwitchHandoff !== null ? "Provider handoff" : "Merge-back context",
148392
- startedAt: now$8,
148393
- completedAt: now$8,
148394
- updatedAt: now$8,
148445
+ startedAt: now$13,
148446
+ completedAt: now$13,
148447
+ updatedAt: now$13,
148395
148448
  type: "handoff",
148396
148449
  contextHandoffId: activeHandoff.id,
148397
148450
  fromProviderThreadIds: activeHandoff.fromProviderThreadIds,
@@ -148420,7 +148473,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148420
148473
  threadId: command.threadId,
148421
148474
  runId,
148422
148475
  providerInstanceId: modelSelection.instanceId,
148423
- occurredAt: now$8,
148476
+ occurredAt: now$13,
148424
148477
  payload: {
148425
148478
  ...pendingForkTransfer,
148426
148479
  targetProviderInstanceId: modelSelection.instanceId,
@@ -148428,7 +148481,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148428
148481
  status: "pending",
148429
148482
  resolution: null,
148430
148483
  error: null,
148431
- updatedAt: now$8
148484
+ updatedAt: now$13
148432
148485
  }
148433
148486
  });
148434
148487
  if (pendingForkTransfer !== void 0 && portableForkResolution !== null) yield* emitEvent({
@@ -148436,7 +148489,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148436
148489
  threadId: command.threadId,
148437
148490
  runId,
148438
148491
  providerInstanceId: modelSelection.instanceId,
148439
- occurredAt: now$8,
148492
+ occurredAt: now$13,
148440
148493
  payload: {
148441
148494
  ...pendingForkTransfer,
148442
148495
  targetProviderInstanceId: modelSelection.instanceId,
@@ -148444,14 +148497,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148444
148497
  status: "resolved_portable",
148445
148498
  resolution: portableForkResolution,
148446
148499
  error: null,
148447
- updatedAt: now$8
148500
+ updatedAt: now$13
148448
148501
  }
148449
148502
  });
148450
148503
  yield* emitEvent({
148451
148504
  type: "provider-thread.updated",
148452
148505
  threadId: command.threadId,
148453
148506
  providerInstanceId: modelSelection.instanceId,
148454
- occurredAt: now$8,
148507
+ occurredAt: now$13,
148455
148508
  payload: providerThread
148456
148509
  });
148457
148510
  if (portableForkHandoff !== null) yield* emitEvent({
@@ -148459,7 +148512,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148459
148512
  threadId: command.threadId,
148460
148513
  runId,
148461
148514
  providerInstanceId: modelSelection.instanceId,
148462
- occurredAt: now$8,
148515
+ occurredAt: now$13,
148463
148516
  payload: portableForkHandoff
148464
148517
  });
148465
148518
  if (legacyImportRecoveryHandoff !== null) yield* emitEvent({
@@ -148467,7 +148520,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148467
148520
  threadId: command.threadId,
148468
148521
  runId,
148469
148522
  providerInstanceId: modelSelection.instanceId,
148470
- occurredAt: now$8,
148523
+ occurredAt: now$13,
148471
148524
  payload: legacyImportRecoveryHandoff
148472
148525
  });
148473
148526
  if (providerSwitchTransferId !== null && providerSwitchHandoff !== null && latestHandoffRun !== void 0) {
@@ -148488,16 +148541,16 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148488
148541
  },
148489
148542
  createdBy: command.createdBy,
148490
148543
  error: null,
148491
- createdAt: now$8,
148492
- updatedAt: now$8,
148493
- consumedAt: now$8
148544
+ createdAt: now$13,
148545
+ updatedAt: now$13,
148546
+ consumedAt: now$13
148494
148547
  };
148495
148548
  yield* emitEvent({
148496
148549
  type: "context-transfer.created",
148497
148550
  threadId: command.threadId,
148498
148551
  runId,
148499
148552
  providerInstanceId: modelSelection.instanceId,
148500
- occurredAt: now$8,
148553
+ occurredAt: now$13,
148501
148554
  payload: transfer
148502
148555
  });
148503
148556
  yield* emitEvent({
@@ -148505,7 +148558,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148505
148558
  threadId: command.threadId,
148506
148559
  runId,
148507
148560
  providerInstanceId: modelSelection.instanceId,
148508
- occurredAt: now$8,
148561
+ occurredAt: now$13,
148509
148562
  payload: providerSwitchHandoff
148510
148563
  });
148511
148564
  }
@@ -148514,7 +148567,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148514
148567
  threadId: command.threadId,
148515
148568
  runId,
148516
148569
  providerInstanceId: modelSelection.instanceId,
148517
- occurredAt: now$8,
148570
+ occurredAt: now$13,
148518
148571
  payload: mergeBackHandoff
148519
148572
  });
148520
148573
  for (const supersededTransfer of supersededMergeBackTransfers) yield* emitEvent({
@@ -148522,12 +148575,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148522
148575
  threadId: command.threadId,
148523
148576
  runId,
148524
148577
  providerInstanceId: modelSelection.instanceId,
148525
- occurredAt: now$8,
148578
+ occurredAt: now$13,
148526
148579
  payload: {
148527
148580
  ...supersededTransfer,
148528
148581
  status: "superseded",
148529
148582
  error: pendingMergeBackTransfer === void 0 ? "Superseded while consuming merge-back transfer." : `Superseded by merge-back transfer ${pendingMergeBackTransfer.id}.`,
148530
- updatedAt: now$8
148583
+ updatedAt: now$13
148531
148584
  }
148532
148585
  });
148533
148586
  if (pendingMergeBackTransfer !== void 0 && mergeBackResolution !== null) yield* emitEvent({
@@ -148535,7 +148588,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148535
148588
  threadId: command.threadId,
148536
148589
  runId,
148537
148590
  providerInstanceId: modelSelection.instanceId,
148538
- occurredAt: now$8,
148591
+ occurredAt: now$13,
148539
148592
  payload: {
148540
148593
  ...pendingMergeBackTransfer,
148541
148594
  targetProviderInstanceId: modelSelection.instanceId,
@@ -148543,8 +148596,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148543
148596
  status: "consumed",
148544
148597
  resolution: mergeBackResolution,
148545
148598
  error: null,
148546
- updatedAt: now$8,
148547
- consumedAt: now$8
148599
+ updatedAt: now$13,
148600
+ consumedAt: now$13
148548
148601
  }
148549
148602
  });
148550
148603
  yield* emitEvent({
@@ -148553,17 +148606,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148553
148606
  runId,
148554
148607
  nodeId: rootNodeId,
148555
148608
  providerInstanceId: modelSelection.instanceId,
148556
- occurredAt: now$8,
148609
+ occurredAt: now$13,
148557
148610
  payload: run
148558
148611
  });
148559
- yield* completeSourcePlan(now$8);
148612
+ yield* completeSourcePlan(now$13);
148560
148613
  yield* emitEvent({
148561
148614
  type: "run-attempt.created",
148562
148615
  threadId: command.threadId,
148563
148616
  runId,
148564
148617
  nodeId: rootNodeId,
148565
148618
  providerInstanceId: modelSelection.instanceId,
148566
- occurredAt: now$8,
148619
+ occurredAt: now$13,
148567
148620
  payload: attempt
148568
148621
  });
148569
148622
  yield* emitEvent({
@@ -148572,7 +148625,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148572
148625
  runId,
148573
148626
  nodeId: rootNodeId,
148574
148627
  providerInstanceId: modelSelection.instanceId,
148575
- occurredAt: now$8,
148628
+ occurredAt: now$13,
148576
148629
  payload: rootNode
148577
148630
  });
148578
148631
  yield* emitEvent({
@@ -148581,7 +148634,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148581
148634
  runId,
148582
148635
  nodeId: rootNodeId,
148583
148636
  providerInstanceId: modelSelection.instanceId,
148584
- occurredAt: now$8,
148637
+ occurredAt: now$13,
148585
148638
  payload: yield* checkpointService.ensureScope(checkpointScope).pipe(mapError((cause) => new OrchestratorDispatchError({
148586
148639
  commandId: command.commandId,
148587
148640
  commandType: command.type,
@@ -148594,7 +148647,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148594
148647
  runId,
148595
148648
  nodeId: rootNodeId,
148596
148649
  providerInstanceId: modelSelection.instanceId,
148597
- occurredAt: now$8,
148650
+ occurredAt: now$13,
148598
148651
  payload: handoffTurnItem
148599
148652
  });
148600
148653
  yield* emitEvent({
@@ -148603,7 +148656,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148603
148656
  runId,
148604
148657
  nodeId: rootNodeId,
148605
148658
  providerInstanceId: modelSelection.instanceId,
148606
- occurredAt: now$8,
148659
+ occurredAt: now$13,
148607
148660
  payload: message
148608
148661
  });
148609
148662
  yield* emitEvent({
@@ -148612,7 +148665,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148612
148665
  runId,
148613
148666
  nodeId: rootNodeId,
148614
148667
  providerInstanceId: modelSelection.instanceId,
148615
- occurredAt: now$8,
148668
+ occurredAt: now$13,
148616
148669
  payload: notificationTurnItem(turnItem, message, projection.subagents)
148617
148670
  });
148618
148671
  const forkResolution = nativeForkResolution ?? portableForkResolution;
@@ -148621,7 +148674,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148621
148674
  threadId: command.threadId,
148622
148675
  runId,
148623
148676
  providerInstanceId: modelSelection.instanceId,
148624
- occurredAt: now$8,
148677
+ occurredAt: now$13,
148625
148678
  payload: {
148626
148679
  ...pendingForkTransfer,
148627
148680
  targetProviderInstanceId: modelSelection.instanceId,
@@ -148629,8 +148682,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148629
148682
  status: "consumed",
148630
148683
  resolution: forkResolution,
148631
148684
  error: null,
148632
- updatedAt: now$8,
148633
- consumedAt: now$8
148685
+ updatedAt: now$13,
148686
+ consumedAt: now$13
148634
148687
  }
148635
148688
  });
148636
148689
  const detachDetail = canResumeAcrossInstances ? "Provider account changed; continuing the native thread." : "Provider or model selection changed.";
@@ -148640,10 +148693,10 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148640
148693
  threadId: command.threadId,
148641
148694
  driver: session.driver,
148642
148695
  providerInstanceId: session.providerInstanceId,
148643
- occurredAt: now$8,
148696
+ occurredAt: now$13,
148644
148697
  payload: {
148645
148698
  providerSessionId: session.id,
148646
- detachedAt: now$8,
148699
+ detachedAt: now$13,
148647
148700
  reason: detachDetail
148648
148701
  }
148649
148702
  });
@@ -148703,7 +148756,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148703
148756
  providerInstanceId: command.modelSelection.instanceId,
148704
148757
  cause
148705
148758
  })));
148706
- const now$36 = command.createdAt ?? (yield* now);
148759
+ const now$9 = command.createdAt ?? (yield* now);
148707
148760
  const taskNodeId = idAllocator.derive.delegatedTaskNode({ commandId: command.commandId });
148708
148761
  const childThreadId = idAllocator.derive.delegatedTaskThread({ commandId: command.commandId });
148709
148762
  const childMessageId = idAllocator.derive.delegatedTaskMessage({ commandId: command.commandId });
@@ -148723,7 +148776,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148723
148776
  providerInstanceId: command.modelSelection.instanceId,
148724
148777
  modelSelection: command.modelSelection,
148725
148778
  title: taskTitle,
148726
- now: now$36,
148779
+ now: now$9,
148727
148780
  createdBy: command.createdBy,
148728
148781
  creationSource: command.creationSource
148729
148782
  }),
@@ -148752,9 +148805,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148752
148805
  ...command.completionWake === void 0 ? {} : { completionWake: command.completionWake },
148753
148806
  status: "running",
148754
148807
  result: null,
148755
- startedAt: now$36,
148808
+ startedAt: now$9,
148756
148809
  completedAt: null,
148757
- updatedAt: now$36
148810
+ updatedAt: now$9
148758
148811
  };
148759
148812
  const taskNode = {
148760
148813
  id: taskNodeId,
@@ -148770,7 +148823,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148770
148823
  nativeItemRef: null,
148771
148824
  runtimeRequestId: null,
148772
148825
  checkpointScopeId: null,
148773
- startedAt: now$36,
148826
+ startedAt: now$9,
148774
148827
  completedAt: null
148775
148828
  };
148776
148829
  const parentProviderTurn = providerTurnForRun(parentProjection, parentRun);
@@ -148786,9 +148839,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148786
148839
  ordinal: yield* nextTurnItemOrdinal(parentProjection),
148787
148840
  status: "running",
148788
148841
  title: command.title ?? taskTitle,
148789
- startedAt: now$36,
148842
+ startedAt: now$9,
148790
148843
  completedAt: null,
148791
- updatedAt: now$36,
148844
+ updatedAt: now$9,
148792
148845
  type: "subagent",
148793
148846
  subagentId: taskNodeId,
148794
148847
  origin: "app_owned",
@@ -148804,7 +148857,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148804
148857
  threadId: childThreadId,
148805
148858
  driver: targetAdapter.driver,
148806
148859
  providerInstanceId: command.modelSelection.instanceId,
148807
- occurredAt: now$36,
148860
+ occurredAt: now$9,
148808
148861
  payload: childThread
148809
148862
  });
148810
148863
  yield* emitEvent({
@@ -148814,7 +148867,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148814
148867
  nodeId: taskNodeId,
148815
148868
  driver: targetAdapter.driver,
148816
148869
  providerInstanceId: command.modelSelection.instanceId,
148817
- occurredAt: now$36,
148870
+ occurredAt: now$9,
148818
148871
  payload: taskNode
148819
148872
  });
148820
148873
  yield* emitEvent({
@@ -148824,7 +148877,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148824
148877
  nodeId: taskNodeId,
148825
148878
  driver: targetAdapter.driver,
148826
148879
  providerInstanceId: command.modelSelection.instanceId,
148827
- occurredAt: now$36,
148880
+ occurredAt: now$9,
148828
148881
  payload: task
148829
148882
  });
148830
148883
  yield* emitEvent({
@@ -148834,7 +148887,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148834
148887
  nodeId: taskNodeId,
148835
148888
  driver: targetAdapter.driver,
148836
148889
  providerInstanceId: command.modelSelection.instanceId,
148837
- occurredAt: now$36,
148890
+ occurredAt: now$9,
148838
148891
  payload: taskTurnItem
148839
148892
  });
148840
148893
  const childMessageCommand = {
@@ -148881,16 +148934,16 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
148881
148934
  resolution: null,
148882
148935
  createdBy: command.createdBy,
148883
148936
  error: null,
148884
- createdAt: now$36,
148885
- updatedAt: now$36,
148886
- consumedAt: now$36
148937
+ createdAt: now$9,
148938
+ updatedAt: now$9,
148939
+ consumedAt: now$9
148887
148940
  };
148888
148941
  yield* emitEvent({
148889
148942
  type: "context-transfer.created",
148890
148943
  threadId: childThreadId,
148891
148944
  runId: childRun.id,
148892
148945
  providerInstanceId: command.modelSelection.instanceId,
148893
- occurredAt: now$36,
148946
+ occurredAt: now$9,
148894
148947
  payload: spawnTransfer
148895
148948
  });
148896
148949
  });
@@ -149046,7 +149099,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149046
149099
  commandType: command.type,
149047
149100
  cause: `Parent run ${command.parentRunId} is stopping.`
149048
149101
  });
149049
- const now$10 = yield* now;
149102
+ const now$32 = yield* now;
149050
149103
  const taskNodeId = idAllocator.derive.delegatedTaskNode({ commandId: command.commandId });
149051
149104
  const taskTurnItemId = idAllocator.derive.delegatedTaskTurnItem({ commandId: command.commandId });
149052
149105
  const taskTitle = subagentThreadTitle({
@@ -149061,7 +149114,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149061
149114
  nodeId: taskNodeId,
149062
149115
  driver: command.driver,
149063
149116
  providerInstanceId: command.modelSelection.instanceId,
149064
- occurredAt: now$10
149117
+ occurredAt: now$32
149065
149118
  };
149066
149119
  const emitEvent = emit(events, command);
149067
149120
  yield* emitEvent({
@@ -149081,7 +149134,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149081
149134
  nativeItemRef: null,
149082
149135
  runtimeRequestId: null,
149083
149136
  checkpointScopeId: null,
149084
- startedAt: now$10,
149137
+ startedAt: now$32,
149085
149138
  completedAt: null
149086
149139
  }
149087
149140
  });
@@ -149107,9 +149160,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149107
149160
  ...command.completionWake === void 0 ? {} : { completionWake: command.completionWake },
149108
149161
  status: "running",
149109
149162
  result: null,
149110
- startedAt: now$10,
149163
+ startedAt: now$32,
149111
149164
  completedAt: null,
149112
- updatedAt: now$10
149165
+ updatedAt: now$32
149113
149166
  }
149114
149167
  });
149115
149168
  yield* emitEvent({
@@ -149127,9 +149180,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149127
149180
  ordinal: yield* nextTurnItemOrdinal(parentProjection),
149128
149181
  status: "running",
149129
149182
  title: command.title ?? taskTitle,
149130
- startedAt: now$10,
149183
+ startedAt: now$32,
149131
149184
  completedAt: null,
149132
- updatedAt: now$10,
149185
+ updatedAt: now$32,
149133
149186
  type: "subagent",
149134
149187
  subagentId: taskNodeId,
149135
149188
  origin: "app_owned",
@@ -149178,30 +149231,30 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149178
149231
  if (command.stoppedThere === void 0) return yield* emitRemoteStopOwed(events, command, task, task.remoteChild);
149179
149232
  const owesStop = task.status === "cancelled" || task.status === "interrupted" || task.remoteChild?.stoppedThere === false;
149180
149233
  if (task.remoteChild?.stoppedThere === true || owesStop && command.stoppedThere !== "stopped") return;
149181
- const now$25 = yield* now;
149234
+ const now$47 = yield* now;
149182
149235
  yield* emit(events, command)({
149183
149236
  type: "subagent.updated",
149184
149237
  threadId: command.parentThreadId,
149185
149238
  ...task.runId === null ? {} : { runId: task.runId },
149186
149239
  nodeId: task.id,
149187
149240
  driver: task.driver,
149188
- occurredAt: now$25,
149241
+ occurredAt: now$47,
149189
149242
  payload: {
149190
149243
  ...task,
149191
149244
  remoteChild,
149192
- updatedAt: now$25
149245
+ updatedAt: now$47
149193
149246
  }
149194
149247
  });
149195
149248
  return;
149196
149249
  }
149197
- const now$26 = yield* now;
149250
+ const now$16 = yield* now;
149198
149251
  const updatedTask = {
149199
149252
  ...task,
149200
149253
  remoteChild,
149201
149254
  status: command.status,
149202
149255
  result: command.result,
149203
- completedAt: now$26,
149204
- updatedAt: now$26
149256
+ completedAt: now$16,
149257
+ updatedAt: now$16
149205
149258
  };
149206
149259
  const parentRun = task.runId === null ? void 0 : parentProjection.runs.find((candidate) => candidate.id === task.runId);
149207
149260
  const plan = yield* planDelegatedCompletionDelivery({
@@ -149209,7 +149262,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149209
149262
  parentRun,
149210
149263
  task,
149211
149264
  updatedTask,
149212
- now: now$26
149265
+ now: now$16
149213
149266
  }).pipe(mapDispatchError(command));
149214
149267
  const emitEvent = emit(events, command);
149215
149268
  yield* emitEvent({
@@ -149218,10 +149271,10 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149218
149271
  ...task.runId === null ? {} : { runId: task.runId },
149219
149272
  nodeId: task.id,
149220
149273
  driver: task.driver,
149221
- occurredAt: now$26,
149274
+ occurredAt: now$16,
149222
149275
  payload: plan.task
149223
149276
  });
149224
- for (const event of delegatedCompletionPlanEvents(command.parentThreadId, plan, parentProjection.thread.providerInstanceId, now$26)) yield* emitEvent(event);
149277
+ for (const event of delegatedCompletionPlanEvents(command.parentThreadId, plan, parentProjection.thread.providerInstanceId, now$16)) yield* emitEvent(event);
149225
149278
  const node = parentProjection.nodes.find((candidate) => candidate.id === task.id);
149226
149279
  if (node !== void 0) yield* emitEvent({
149227
149280
  type: "node.updated",
@@ -149229,11 +149282,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149229
149282
  ...node.runId === null ? {} : { runId: node.runId },
149230
149283
  nodeId: node.id,
149231
149284
  driver: task.driver,
149232
- occurredAt: now$26,
149285
+ occurredAt: now$16,
149233
149286
  payload: {
149234
149287
  ...node,
149235
149288
  status: command.status,
149236
- completedAt: now$26
149289
+ completedAt: now$16
149237
149290
  }
149238
149291
  });
149239
149292
  const item = parentProjection.turnItems.find((candidate) => candidate.type === "subagent" && candidate.subagentId === task.id);
@@ -149243,13 +149296,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149243
149296
  ...item.runId === null ? {} : { runId: item.runId },
149244
149297
  ...item.nodeId === null ? {} : { nodeId: item.nodeId },
149245
149298
  driver: task.driver,
149246
- occurredAt: now$26,
149299
+ occurredAt: now$16,
149247
149300
  payload: {
149248
149301
  ...item,
149249
149302
  status: command.status,
149250
149303
  result: command.result,
149251
- completedAt: now$26,
149252
- updatedAt: now$26
149304
+ completedAt: now$16,
149305
+ updatedAt: now$16
149253
149306
  }
149254
149307
  });
149255
149308
  });
@@ -149272,14 +149325,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149272
149325
  yield* emitRemoteStopOwed(events, command, task, task.remoteChild);
149273
149326
  });
149274
149327
  const emitRemoteStopOwed = fn("orchestrationV2.dispatch.remoteStopOwed")(function* (events, command, task, remoteChild) {
149275
- const now$32 = yield* now;
149328
+ const now$53 = yield* now;
149276
149329
  yield* emit(events, command)({
149277
149330
  type: "subagent.updated",
149278
149331
  threadId: command.parentThreadId,
149279
149332
  ...task.runId === null ? {} : { runId: task.runId },
149280
149333
  nodeId: task.id,
149281
149334
  driver: task.driver,
149282
- occurredAt: now$32,
149335
+ occurredAt: now$53,
149283
149336
  payload: {
149284
149337
  ...task,
149285
149338
  remoteChild: {
@@ -149287,7 +149340,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149287
149340
  stoppedThere: false,
149288
149341
  stopCount: (remoteChild.stopCount ?? 0) + 1
149289
149342
  },
149290
- updatedAt: now$32
149343
+ updatedAt: now$53
149291
149344
  }
149292
149345
  });
149293
149346
  });
@@ -149312,12 +149365,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149312
149365
  commandType: command.type,
149313
149366
  cause: `Delegated task ${command.taskId} already wakes the parent with completionWake ${command.completionWake}.`
149314
149367
  });
149315
- const now$53 = yield* now;
149368
+ const now$28 = yield* now;
149316
149369
  const emitEvent = emit(events, command);
149317
149370
  const updatedTask = {
149318
149371
  ...task,
149319
149372
  completionWake: command.completionWake,
149320
- updatedAt: now$53
149373
+ updatedAt: now$28
149321
149374
  };
149322
149375
  const parentRun = task.runId === null ? void 0 : parentProjection.runs.find((candidate) => candidate.id === task.runId);
149323
149376
  const completionPlan = command.completionWake === "always" && isTerminalDelegatedTaskStatus(task.status) && parentRun !== void 0 && hasLiveRun({ runs: [parentRun] }) ? yield* planDelegatedCompletionDelivery({
@@ -149325,7 +149378,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149325
149378
  parentRun,
149326
149379
  task: updatedTask,
149327
149380
  updatedTask,
149328
- now: now$53
149381
+ now: now$28
149329
149382
  }) : void 0;
149330
149383
  yield* emitEvent({
149331
149384
  type: "subagent.updated",
@@ -149334,7 +149387,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149334
149387
  nodeId: task.id,
149335
149388
  driver: task.driver,
149336
149389
  providerInstanceId: task.providerInstanceId,
149337
- occurredAt: now$53,
149390
+ occurredAt: now$28,
149338
149391
  payload: completionPlan?.task ?? updatedTask
149339
149392
  });
149340
149393
  if (completionPlan === void 0) return;
@@ -149344,7 +149397,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149344
149397
  runId: completionPlan.parentRun.id,
149345
149398
  ...completionPlan.parentRun.rootNodeId === null ? {} : { nodeId: completionPlan.parentRun.rootNodeId },
149346
149399
  providerInstanceId: completionPlan.parentRun.providerInstanceId,
149347
- occurredAt: now$53,
149400
+ occurredAt: now$28,
149348
149401
  payload: completionPlan.parentRun
149349
149402
  });
149350
149403
  if (completionPlan.message !== void 0) yield* emitEvent({
@@ -149353,7 +149406,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149353
149406
  ...completionPlan.message.runId === null ? {} : { runId: completionPlan.message.runId },
149354
149407
  ...completionPlan.message.nodeId === null ? {} : { nodeId: completionPlan.message.nodeId },
149355
149408
  providerInstanceId: completionPlan.parentRun?.providerInstanceId ?? parentProjection.thread.providerInstanceId,
149356
- occurredAt: now$53,
149409
+ occurredAt: now$28,
149357
149410
  payload: completionPlan.message
149358
149411
  });
149359
149412
  return completionPlan.parentRun?.id;
@@ -149402,7 +149455,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149402
149455
  commandType: command.type,
149403
149456
  cause: `Target run ${command.targetRunId} does not belong to thread ${command.targetThreadId}.`
149404
149457
  });
149405
- const now$20 = yield* now;
149458
+ const now$43 = yield* now;
149406
149459
  const parentProviderTurn = providerTurnForRun(parentProjection, parentRun);
149407
149460
  const turnItem = {
149408
149461
  id: idAllocator.derive.createdThreadTurnItem({ commandId: command.commandId }),
@@ -149416,9 +149469,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149416
149469
  ordinal: yield* nextTurnItemOrdinal(parentProjection),
149417
149470
  status: "completed",
149418
149471
  title: targetProjection.thread.title,
149419
- startedAt: now$20,
149420
- completedAt: now$20,
149421
- updatedAt: now$20,
149472
+ startedAt: now$43,
149473
+ completedAt: now$43,
149474
+ updatedAt: now$43,
149422
149475
  type: "thread_created",
149423
149476
  targetThreadId: command.targetThreadId,
149424
149477
  targetRunId: command.targetRunId,
@@ -149431,7 +149484,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149431
149484
  runId: command.parentRunId,
149432
149485
  nodeId: command.parentNodeId,
149433
149486
  providerInstanceId: parentRun.providerInstanceId,
149434
- occurredAt: now$20,
149487
+ occurredAt: now$43,
149435
149488
  payload: turnItem
149436
149489
  });
149437
149490
  });
@@ -149471,7 +149524,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149471
149524
  commandType: command.type,
149472
149525
  cause: `Secret request ${command.turnItemId} belongs to another run.`
149473
149526
  });
149474
- const now$43 = yield* now;
149527
+ const now$18 = yield* now;
149475
149528
  const unchanged = existing !== void 0 && (existing.secretStatus !== "pending" || command.secretStatus === "pending");
149476
149529
  const pending = command.secretStatus === "pending";
149477
149530
  const turnItem = unchanged ? existing : {
@@ -149486,9 +149539,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149486
149539
  ordinal: existing?.ordinal ?? (yield* nextTurnItemOrdinal(projection)),
149487
149540
  status: pending ? "waiting" : command.secretStatus === "saved" ? "completed" : "cancelled",
149488
149541
  title: command.label,
149489
- startedAt: existing?.startedAt ?? now$43,
149490
- completedAt: pending ? null : now$43,
149491
- updatedAt: now$43,
149542
+ startedAt: existing?.startedAt ?? now$18,
149543
+ completedAt: pending ? null : now$18,
149544
+ updatedAt: now$18,
149492
149545
  type: "secret_request",
149493
149546
  label: command.label,
149494
149547
  reason: command.reason,
@@ -149500,12 +149553,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149500
149553
  type: "thread.unsnoozed",
149501
149554
  threadId: command.threadId,
149502
149555
  providerInstanceId: projection.thread.providerInstanceId,
149503
- occurredAt: now$43,
149556
+ occurredAt: now$18,
149504
149557
  payload: {
149505
149558
  ...projection.thread,
149506
149559
  snoozedUntil: null,
149507
149560
  snoozedAt: null,
149508
- updatedAt: now$43
149561
+ updatedAt: now$18
149509
149562
  }
149510
149563
  });
149511
149564
  yield* emit(events, command)({
@@ -149514,7 +149567,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149514
149567
  runId: command.runId,
149515
149568
  nodeId: command.nodeId,
149516
149569
  providerInstanceId: run.providerInstanceId,
149517
- occurredAt: now$43,
149570
+ occurredAt: now$18,
149518
149571
  payload: turnItem
149519
149572
  });
149520
149573
  });
@@ -149564,7 +149617,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149564
149617
  cause: `Run ${command.runId} is not active.`
149565
149618
  });
149566
149619
  const nodeId = existing?.nodeId ?? command.nodeId;
149567
- const now$35 = yield* now;
149620
+ const now$8 = yield* now;
149568
149621
  const unchanged = existing !== void 0 && (existing.linkStatus !== "pending" || command.linkStatus === "pending");
149569
149622
  const pending = command.linkStatus === "pending";
149570
149623
  const { type: _type, commandId: _commandId, turnItemId: _turnItemId, wake, ...fields } = command;
@@ -149584,21 +149637,21 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149584
149637
  ordinal: existing?.ordinal ?? (yield* nextTurnItemOrdinal(projection)),
149585
149638
  status: pending ? "waiting" : command.linkStatus === "linked" ? "completed" : command.linkStatus === "failed" ? "failed" : "cancelled",
149586
149639
  title: command.label ?? command.url ?? "Link an environment",
149587
- startedAt: existing?.startedAt ?? now$35,
149588
- completedAt: pending ? null : now$35,
149589
- updatedAt: now$35,
149640
+ startedAt: existing?.startedAt ?? now$8,
149641
+ completedAt: pending ? null : now$8,
149642
+ updatedAt: now$8,
149590
149643
  type: "link_request"
149591
149644
  };
149592
149645
  if (!unchanged && command.linkStatus === "linked" && projection.thread.snoozedUntil != null) yield* emit(events, command)({
149593
149646
  type: "thread.unsnoozed",
149594
149647
  threadId: command.threadId,
149595
149648
  providerInstanceId: projection.thread.providerInstanceId,
149596
- occurredAt: now$35,
149649
+ occurredAt: now$8,
149597
149650
  payload: {
149598
149651
  ...projection.thread,
149599
149652
  snoozedUntil: null,
149600
149653
  snoozedAt: null,
149601
- updatedAt: now$35
149654
+ updatedAt: now$8
149602
149655
  }
149603
149656
  });
149604
149657
  yield* emit(events, command)({
@@ -149607,7 +149660,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149607
149660
  runId: command.runId,
149608
149661
  nodeId,
149609
149662
  providerInstanceId: run.providerInstanceId,
149610
- occurredAt: now$35,
149663
+ occurredAt: now$8,
149611
149664
  payload: turnItem
149612
149665
  });
149613
149666
  if (wake === void 0 || unchanged || projection.thread.archivedAt !== null || projection.thread.deletedAt !== null) return;
@@ -149702,7 +149755,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149702
149755
  serverName: input.create.serverName,
149703
149756
  reattach: input.create.reattach
149704
149757
  };
149705
- const now$50 = yield* now;
149758
+ const now$25 = yield* now;
149706
149759
  const pending = input.signInStatus === "pending";
149707
149760
  const turnItem = unchanged ? existing : {
149708
149761
  id: input.turnItemId,
@@ -149716,9 +149769,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149716
149769
  ordinal: existing?.ordinal ?? (yield* nextTurnItemOrdinal(projection)),
149717
149770
  status: pending ? "waiting" : input.signInStatus === "signed-in" ? "completed" : "cancelled",
149718
149771
  title: `${fields.serverName} needs sign-in`,
149719
- startedAt: existing?.startedAt ?? now$50,
149720
- completedAt: pending ? null : now$50,
149721
- updatedAt: now$50,
149772
+ startedAt: existing?.startedAt ?? now$25,
149773
+ completedAt: pending ? null : now$25,
149774
+ updatedAt: now$25,
149722
149775
  type: "mcp_sign_in_request",
149723
149776
  serverId: fields.serverId,
149724
149777
  serverName: fields.serverName,
@@ -149731,7 +149784,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149731
149784
  runId: run.id,
149732
149785
  nodeId: run.rootNodeId,
149733
149786
  providerInstanceId: run.providerInstanceId,
149734
- occurredAt: now$50,
149787
+ occurredAt: now$25,
149735
149788
  payload: turnItem
149736
149789
  });
149737
149790
  });
@@ -149820,11 +149873,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149820
149873
  cause: "Enter an answer before sending."
149821
149874
  });
149822
149875
  }
149823
- const now$13 = yield* now;
149876
+ const now$36 = yield* now;
149824
149877
  const resolvedRequest = {
149825
149878
  ...runtimeRequest,
149826
149879
  status: "resolved",
149827
- resolvedAt: now$13,
149880
+ resolvedAt: now$36,
149828
149881
  ...command.decision === void 0 ? {} : { decision: command.decision },
149829
149882
  ...command.answers === void 0 ? {} : { answers: command.answers }
149830
149883
  };
@@ -149839,7 +149892,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149839
149892
  driver: providerSession.driver,
149840
149893
  providerInstanceId: providerSession.providerInstanceId
149841
149894
  },
149842
- occurredAt: now$13,
149895
+ occurredAt: now$36,
149843
149896
  payload: resolvedRequest
149844
149897
  });
149845
149898
  if (requestNode !== void 0) yield* emitEvent({
@@ -149851,11 +149904,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149851
149904
  driver: providerSession.driver,
149852
149905
  providerInstanceId: providerSession.providerInstanceId
149853
149906
  },
149854
- occurredAt: now$13,
149907
+ occurredAt: now$36,
149855
149908
  payload: {
149856
149909
  ...requestNode,
149857
149910
  status: resolvedNodeStatus,
149858
- completedAt: now$13
149911
+ completedAt: now$36
149859
149912
  }
149860
149913
  });
149861
149914
  if (approvalTurnItem !== void 0) yield* emitEvent({
@@ -149867,7 +149920,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149867
149920
  driver: providerSession.driver,
149868
149921
  providerInstanceId: providerSession.providerInstanceId
149869
149922
  },
149870
- occurredAt: now$13,
149923
+ occurredAt: now$36,
149871
149924
  payload: {
149872
149925
  ...approvalTurnItem,
149873
149926
  ...approvalTurnItem.type === "user_input_request" && command.answers !== void 0 ? { questionAnswer: {
@@ -149877,8 +149930,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149877
149930
  questionTextById: Object.fromEntries(approvalTurnItem.questions.map((question) => [question.id, question.question]))
149878
149931
  } } : {},
149879
149932
  status: resolvedNodeStatus,
149880
- completedAt: now$13,
149881
- updatedAt: now$13
149933
+ completedAt: now$36,
149934
+ updatedAt: now$36
149882
149935
  }
149883
149936
  });
149884
149937
  if (runtimeRequest.responseCapability.type === "message") {
@@ -149915,12 +149968,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
149915
149968
  type: "thread.unsnoozed",
149916
149969
  threadId: command.threadId,
149917
149970
  providerInstanceId: thread.providerInstanceId,
149918
- occurredAt: now$13,
149971
+ occurredAt: now$36,
149919
149972
  payload: {
149920
149973
  ...thread,
149921
149974
  snoozedUntil: null,
149922
149975
  snoozedAt: null,
149923
- updatedAt: now$13
149976
+ updatedAt: now$36
149924
149977
  }
149925
149978
  });
149926
149979
  }
@@ -150003,7 +150056,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150003
150056
  commandType: command.type,
150004
150057
  cause: "Automatic completion deliveries cannot be promoted to Steer."
150005
150058
  });
150006
- const now$45 = yield* now;
150059
+ const now$20 = yield* now;
150007
150060
  const emitEvent = emit(events, command);
150008
150061
  const parsedGoalCommand = parseGoalCommand(queuedMessage);
150009
150062
  const goalCommand = parsedGoalCommand === null || (yield* goalDriverFor(command, queuedRun.providerInstanceId)) === void 0 ? null : parsedGoalCommand;
@@ -150018,7 +150071,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150018
150071
  runId: queuedRun.id,
150019
150072
  nodeId: queuedRootNode.id,
150020
150073
  providerInstanceId: queuedRun.providerInstanceId,
150021
- occurredAt: now$45,
150074
+ occurredAt: now$20,
150022
150075
  payload: {
150023
150076
  ...queuedRun,
150024
150077
  queuePosition: 1
@@ -150032,7 +150085,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150032
150085
  projection,
150033
150086
  queuedRunId: queuedRun.id,
150034
150087
  targetRunId: stops ? target.id : void 0,
150035
- now: now$45
150088
+ now: now$20
150036
150089
  });
150037
150090
  }
150038
150091
  yield* emitEvent({
@@ -150041,12 +150094,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150041
150094
  runId: queuedRun.id,
150042
150095
  nodeId: queuedRootNode.id,
150043
150096
  providerInstanceId: queuedRun.providerInstanceId,
150044
- occurredAt: now$45,
150097
+ occurredAt: now$20,
150045
150098
  payload: {
150046
150099
  ...queuedRun,
150047
150100
  status: "cancelled",
150048
150101
  queuePosition: null,
150049
- completedAt: now$45
150102
+ completedAt: now$20
150050
150103
  }
150051
150104
  });
150052
150105
  yield* emitEvent({
@@ -150055,11 +150108,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150055
150108
  runId: queuedRun.id,
150056
150109
  nodeId: queuedRootNode.id,
150057
150110
  providerInstanceId: queuedRun.providerInstanceId,
150058
- occurredAt: now$45,
150111
+ occurredAt: now$20,
150059
150112
  payload: {
150060
150113
  ...queuedAttempt,
150061
150114
  status: "cancelled",
150062
- completedAt: now$45
150115
+ completedAt: now$20
150063
150116
  }
150064
150117
  });
150065
150118
  yield* emitEvent({
@@ -150068,11 +150121,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150068
150121
  runId: queuedRun.id,
150069
150122
  nodeId: queuedRootNode.id,
150070
150123
  providerInstanceId: queuedRun.providerInstanceId,
150071
- occurredAt: now$45,
150124
+ occurredAt: now$20,
150072
150125
  payload: {
150073
150126
  ...queuedRootNode,
150074
150127
  status: "cancelled",
150075
- completedAt: now$45
150128
+ completedAt: now$20
150076
150129
  }
150077
150130
  });
150078
150131
  yield* dispatchSteerIntoRun({
@@ -150130,7 +150183,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150130
150183
  moving,
150131
150184
  ...withoutMoving.slice(beforeIndex)
150132
150185
  ];
150133
- const now$49 = yield* now;
150186
+ const now$24 = yield* now;
150134
150187
  const emitEvent = emit(events, command);
150135
150188
  yield* forEach(reordered, (run, index) => gen$1(function* () {
150136
150189
  const queuePosition = index + 1;
@@ -150141,7 +150194,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150141
150194
  runId: run.id,
150142
150195
  ...run.rootNodeId === null ? {} : { nodeId: run.rootNodeId },
150143
150196
  providerInstanceId: run.providerInstanceId,
150144
- occurredAt: now$49,
150197
+ occurredAt: now$24,
150145
150198
  payload: {
150146
150199
  ...run,
150147
150200
  queuePosition
@@ -150171,14 +150224,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150171
150224
  cause: `Run ${command.runId} is not queued.`
150172
150225
  });
150173
150226
  const queuedMessage = projection.messages.find((candidate) => candidate.id === queuedRun.userMessageId);
150174
- const now$9 = yield* now;
150227
+ const now$31 = yield* now;
150175
150228
  if (queuedMessage?.delegatedCompletion !== void 0) yield* disposeDelegatedCompletionCohort({
150176
150229
  command,
150177
150230
  events,
150178
150231
  projection,
150179
150232
  parentRunId: queuedMessage.delegatedCompletion.parentRunId,
150180
150233
  disposition: "disposed",
150181
- now: now$9,
150234
+ now: now$31,
150182
150235
  cancelQueuedDelivery: false,
150183
150236
  interruptedWakeTaskIds: queuedMessage.delegatedCompletion.taskIds
150184
150237
  });
@@ -150187,7 +150240,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150187
150240
  events,
150188
150241
  projection,
150189
150242
  run: queuedRun,
150190
- now: now$9
150243
+ now: now$31
150191
150244
  });
150192
150245
  });
150193
150246
  const dispatchQueuedRunEdit = (command, events) => gen$1(function* () {
@@ -150229,7 +150282,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150229
150282
  attachments: command.attachments ?? queuedMessage.attachments
150230
150283
  }, queuedRun.providerInstanceId);
150231
150284
  const queuedTurnItem = projection.turnItems.find((candidate) => candidate.type === "user_message" && candidate.messageId === queuedMessage.id);
150232
- const now$28 = yield* now;
150285
+ const now$49 = yield* now;
150233
150286
  const emitEvent = emit(events, command);
150234
150287
  const editedAttachments = command.attachments === void 0 ? {} : { attachments: command.attachments };
150235
150288
  yield* emitEvent({
@@ -150238,13 +150291,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150238
150291
  runId: queuedRun.id,
150239
150292
  ...queuedRun.rootNodeId === null ? {} : { nodeId: queuedRun.rootNodeId },
150240
150293
  providerInstanceId: queuedRun.providerInstanceId,
150241
- occurredAt: now$28,
150294
+ occurredAt: now$49,
150242
150295
  payload: {
150243
150296
  ...queuedMessage,
150244
150297
  text: command.text,
150245
150298
  ...editedAttachments,
150246
150299
  ...command.context ? { context: command.context } : {},
150247
- updatedAt: now$28
150300
+ updatedAt: now$49
150248
150301
  }
150249
150302
  });
150250
150303
  if (queuedTurnItem !== void 0 && queuedTurnItem.type === "user_message") yield* emitEvent({
@@ -150253,13 +150306,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150253
150306
  runId: queuedRun.id,
150254
150307
  ...queuedRun.rootNodeId === null ? {} : { nodeId: queuedRun.rootNodeId },
150255
150308
  providerInstanceId: queuedRun.providerInstanceId,
150256
- occurredAt: now$28,
150309
+ occurredAt: now$49,
150257
150310
  payload: {
150258
150311
  ...queuedTurnItem,
150259
150312
  text: command.text,
150260
150313
  ...editedAttachments,
150261
150314
  ...command.context ? { context: command.context } : {},
150262
- updatedAt: now$28
150315
+ updatedAt: now$49
150263
150316
  }
150264
150317
  });
150265
150318
  });
@@ -150299,18 +150352,18 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150299
150352
  commandType: command.type,
150300
150353
  cause: `Run ${command.runId} is not awaiting workspace preparation.`
150301
150354
  });
150302
- const now$19 = yield* now;
150355
+ const now$42 = yield* now;
150303
150356
  yield* emit(events, command)({
150304
150357
  type: "turn-item.updated",
150305
150358
  threadId: command.threadId,
150306
150359
  runId: state.run.id,
150307
150360
  nodeId: state.rootNode.id,
150308
150361
  providerInstanceId: state.run.providerInstanceId,
150309
- occurredAt: now$19,
150362
+ occurredAt: now$42,
150310
150363
  payload: {
150311
150364
  ...state.preparationItem,
150312
150365
  title: command.phase === "worktree" ? "Preparing worktree" : "Starting setup script",
150313
- updatedAt: now$19
150366
+ updatedAt: now$42
150314
150367
  }
150315
150368
  });
150316
150369
  });
@@ -150331,7 +150384,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150331
150384
  commandType: command.type,
150332
150385
  cause: `Run ${command.runId} is not awaiting workspace preparation.`
150333
150386
  });
150334
- const now$12 = yield* now;
150387
+ const now$35 = yield* now;
150335
150388
  const resolvedRuntimePolicy = yield* runtimePolicy.resolve({
150336
150389
  thread: projection.thread,
150337
150390
  modelSelection: state.run.modelSelection
@@ -150342,7 +150395,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150342
150395
  rootNodeId: state.rootNode.id,
150343
150396
  providerThreadId: state.providerThread.id,
150344
150397
  cwd: resolvedRuntimePolicy.cwd ?? projection.thread.worktreePath ?? process.cwd(),
150345
- createdAt: now$12
150398
+ createdAt: now$35
150346
150399
  }).pipe(mapDispatchError(command));
150347
150400
  const emitEvent = emit(events, command);
150348
150401
  yield* emitEvent({
@@ -150351,7 +150404,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150351
150404
  runId: state.run.id,
150352
150405
  nodeId: state.rootNode.id,
150353
150406
  providerInstanceId: state.run.providerInstanceId,
150354
- occurredAt: now$12,
150407
+ occurredAt: now$35,
150355
150408
  payload: checkpointScope
150356
150409
  });
150357
150410
  yield* emitEvent({
@@ -150360,7 +150413,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150360
150413
  runId: state.run.id,
150361
150414
  nodeId: state.rootNode.id,
150362
150415
  providerInstanceId: state.run.providerInstanceId,
150363
- occurredAt: now$12,
150416
+ occurredAt: now$35,
150364
150417
  payload: {
150365
150418
  ...state.rootNode,
150366
150419
  checkpointScopeId: checkpointScope.id
@@ -150372,15 +150425,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150372
150425
  runId: state.run.id,
150373
150426
  nodeId: state.rootNode.id,
150374
150427
  providerInstanceId: state.run.providerInstanceId,
150375
- occurredAt: now$12,
150428
+ occurredAt: now$35,
150376
150429
  payload: {
150377
150430
  ...state.preparationItem,
150378
150431
  status: "completed",
150379
150432
  title: "Workspace ready",
150380
150433
  output: "Workspace preparation completed.",
150381
150434
  exitCode: 0,
150382
- completedAt: now$12,
150383
- updatedAt: now$12
150435
+ completedAt: now$35,
150436
+ updatedAt: now$35
150384
150437
  }
150385
150438
  });
150386
150439
  yield* emitEvent({
@@ -150389,7 +150442,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150389
150442
  runId: state.run.id,
150390
150443
  nodeId: state.rootNode.id,
150391
150444
  providerInstanceId: state.run.providerInstanceId,
150392
- occurredAt: now$12,
150445
+ occurredAt: now$35,
150393
150446
  payload: {
150394
150447
  ...state.run,
150395
150448
  status: "starting"
@@ -150422,7 +150475,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150422
150475
  commandType: command.type,
150423
150476
  cause: `Run ${command.runId} is not awaiting workspace preparation.`
150424
150477
  });
150425
- const now$33 = yield* now;
150478
+ const now$7 = yield* now;
150426
150479
  const emitEvent = emit(events, command);
150427
150480
  yield* emitEvent({
150428
150481
  type: "run-attempt.updated",
@@ -150430,11 +150483,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150430
150483
  runId: state.run.id,
150431
150484
  nodeId: state.rootNode.id,
150432
150485
  providerInstanceId: state.run.providerInstanceId,
150433
- occurredAt: now$33,
150486
+ occurredAt: now$7,
150434
150487
  payload: {
150435
150488
  ...state.attempt,
150436
150489
  status: "failed",
150437
- completedAt: now$33
150490
+ completedAt: now$7
150438
150491
  }
150439
150492
  });
150440
150493
  yield* emitEvent({
@@ -150443,11 +150496,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150443
150496
  runId: state.run.id,
150444
150497
  nodeId: state.rootNode.id,
150445
150498
  providerInstanceId: state.run.providerInstanceId,
150446
- occurredAt: now$33,
150499
+ occurredAt: now$7,
150447
150500
  payload: {
150448
150501
  ...state.rootNode,
150449
150502
  status: "failed",
150450
- completedAt: now$33
150503
+ completedAt: now$7
150451
150504
  }
150452
150505
  });
150453
150506
  yield* emitEvent({
@@ -150456,15 +150509,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150456
150509
  runId: state.run.id,
150457
150510
  nodeId: state.rootNode.id,
150458
150511
  providerInstanceId: state.run.providerInstanceId,
150459
- occurredAt: now$33,
150512
+ occurredAt: now$7,
150460
150513
  payload: {
150461
150514
  ...state.preparationItem,
150462
150515
  status: "failed",
150463
150516
  title: "Workspace preparation failed",
150464
150517
  output: command.failure.message,
150465
150518
  exitCode: 1,
150466
- completedAt: now$33,
150467
- updatedAt: now$33
150519
+ completedAt: now$7,
150520
+ updatedAt: now$7
150468
150521
  }
150469
150522
  });
150470
150523
  yield* emitEvent({
@@ -150473,7 +150526,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150473
150526
  runId: state.run.id,
150474
150527
  nodeId: state.rootNode.id,
150475
150528
  providerInstanceId: state.run.providerInstanceId,
150476
- occurredAt: now$33,
150529
+ occurredAt: now$7,
150477
150530
  payload: {
150478
150531
  id: idAllocator.derive.turnItemFromProviderItem({
150479
150532
  driver: state.providerThread.driver,
@@ -150489,9 +150542,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150489
150542
  ordinal: yield* nextTurnItemOrdinal(projection),
150490
150543
  status: "failed",
150491
150544
  title: "Workspace preparation failed",
150492
- startedAt: now$33,
150493
- completedAt: now$33,
150494
- updatedAt: now$33,
150545
+ startedAt: now$7,
150546
+ completedAt: now$7,
150547
+ updatedAt: now$7,
150495
150548
  type: "error",
150496
150549
  failure: {
150497
150550
  ...command.failure,
@@ -150505,11 +150558,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150505
150558
  runId: state.run.id,
150506
150559
  nodeId: state.rootNode.id,
150507
150560
  providerInstanceId: state.run.providerInstanceId,
150508
- occurredAt: now$33,
150561
+ occurredAt: now$7,
150509
150562
  payload: {
150510
150563
  ...state.run,
150511
150564
  status: "failed",
150512
- completedAt: now$33
150565
+ completedAt: now$7
150513
150566
  }
150514
150567
  });
150515
150568
  });
@@ -150541,14 +150594,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150541
150594
  commandType: command.type,
150542
150595
  cause: "Another run is active on this thread."
150543
150596
  });
150544
- const now$51 = yield* now;
150597
+ const now$27 = yield* now;
150545
150598
  const emitEvent = emit(events, command);
150546
150599
  const scope = {
150547
150600
  threadId: command.threadId,
150548
150601
  runId: state.run.id,
150549
150602
  nodeId: state.rootNode.id,
150550
150603
  providerInstanceId: state.run.providerInstanceId,
150551
- occurredAt: now$51
150604
+ occurredAt: now$27
150552
150605
  };
150553
150606
  yield* emitEvent({
150554
150607
  ...scope,
@@ -150556,7 +150609,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150556
150609
  payload: {
150557
150610
  ...failureItem,
150558
150611
  status: "cancelled",
150559
- updatedAt: now$51
150612
+ updatedAt: now$27
150560
150613
  }
150561
150614
  });
150562
150615
  yield* emitEvent({
@@ -150567,7 +150620,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150567
150620
  status: "running",
150568
150621
  title: WORKSPACE_PREPARATION_INPUT,
150569
150622
  completedAt: null,
150570
- updatedAt: now$51
150623
+ updatedAt: now$27
150571
150624
  }
150572
150625
  });
150573
150626
  yield* emitEvent({
@@ -150605,7 +150658,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
150605
150658
  threadId: command.threadId,
150606
150659
  runId: run.id,
150607
150660
  providerInstanceId: run.providerInstanceId,
150608
- occurredAt: now$51,
150661
+ occurredAt: now$27,
150609
150662
  payload: {
150610
150663
  ...run,
150611
150664
  queueHeld: false
@@ -151015,7 +151068,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151015
151068
  "running",
151016
151069
  "waiting"
151017
151070
  ].includes(subagent.status) || subagent.startedAt !== null && toEpochMillis(subagent.startedAt) > toEpochMillis(command.subagent.stoppedAt)) return;
151018
- const now$21 = yield* now;
151071
+ const now$44 = yield* now;
151019
151072
  const allocateEventId = () => idAllocator.allocate.event({
151020
151073
  threadId: command.threadId,
151021
151074
  commandId: command.commandId
@@ -151026,7 +151079,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151026
151079
  result: outcome.result,
151027
151080
  status: outcome.status,
151028
151081
  completedAt: outcome.completedAt,
151029
- now: now$21,
151082
+ now: now$44,
151030
151083
  emitted: yield* get$10(events),
151031
151084
  allocateEventId
151032
151085
  }).pipe(mapDispatchError(command));
@@ -151047,7 +151100,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151047
151100
  projection: child,
151048
151101
  status: outcome.status,
151049
151102
  completedAt: outcome.completedAt,
151050
- now: now$21,
151103
+ now: now$44,
151051
151104
  emitted: yield* get$10(events),
151052
151105
  allocateEventId
151053
151106
  }).pipe(mapDispatchError(command));
@@ -151063,7 +151116,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151063
151116
  "starting",
151064
151117
  "running"
151065
151118
  ].includes(stoppedRun.status) && stoppedRun.activeAttemptId !== stopped.providerTurn?.runAttemptId) return;
151066
- const now$22 = yield* now;
151119
+ const now$15 = yield* now;
151067
151120
  if (stopped.providerTurn !== void 0 && stoppedRun.status === "running") {
151068
151121
  const output = yield* projectionStore.getThreadRecords(command.threadId, ["messages"], {
151069
151122
  messageRunIds: [stoppedRun.id],
@@ -151078,7 +151131,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151078
151131
  providerTurn: stopped.providerTurn,
151079
151132
  events,
151080
151133
  effects,
151081
- now: now$22
151134
+ now: now$15
151082
151135
  });
151083
151136
  }
151084
151137
  if (projection.runs.some((run) => run.id !== stoppedRun.id && (run.status === "preparing" || run.status === "starting" || run.status === "running"))) return;
@@ -151088,7 +151141,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151088
151141
  projection,
151089
151142
  stoppedProviderThreadId: command.providerThreadId,
151090
151143
  throughRunOrdinal: stoppedRun.ordinal,
151091
- now: now$22
151144
+ now: now$15
151092
151145
  });
151093
151146
  });
151094
151147
  const dispatchSubagentStop = (command, events, effects) => gen$1(function* () {
@@ -151119,17 +151172,17 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151119
151172
  });
151120
151173
  const providerSessionId = providerThread.providerSessionId;
151121
151174
  const nativeTaskId = subagent.nativeTaskRef.nativeId;
151122
- const now$27 = yield* now;
151175
+ const now$48 = yield* now;
151123
151176
  yield* emit(events, command)({
151124
151177
  type: "subagent.updated",
151125
151178
  threadId: command.threadId,
151126
151179
  runId: command.runId,
151127
151180
  nodeId: subagent.id,
151128
151181
  providerInstanceId: subagent.providerInstanceId,
151129
- occurredAt: now$27,
151182
+ occurredAt: now$48,
151130
151183
  payload: {
151131
151184
  ...subagent,
151132
- updatedAt: now$27
151185
+ updatedAt: now$48
151133
151186
  }
151134
151187
  });
151135
151188
  yield* update$4(effects, (existing) => [...existing, {
@@ -151189,7 +151242,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151189
151242
  commandType: command.type,
151190
151243
  cause: `Run ${command.runId} is not interruptible.`
151191
151244
  });
151192
- const now$24 = yield* now;
151245
+ const now$46 = yield* now;
151193
151246
  const completionMessage = projection.messages.find((candidate) => candidate.id === run.userMessageId);
151194
151247
  const completionCohortRunId = completionMessage?.delegatedCompletion?.parentRunId ?? run.id;
151195
151248
  const stopRemainingWork = () => command.holdQueue === true ? holdStoppedThread({
@@ -151197,7 +151250,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151197
151250
  events,
151198
151251
  projection,
151199
151252
  cohortRunIds: [completionCohortRunId],
151200
- now: now$24
151253
+ now: now$46
151201
151254
  }) : gen$1(function* () {
151202
151255
  for (const parentRunId of /* @__PURE__ */ new Set([completionCohortRunId, run.id])) yield* disposeDelegatedCompletionCohort({
151203
151256
  command,
@@ -151205,7 +151258,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151205
151258
  projection: yield* getProjectionWithPendingEvents(command.threadId, events),
151206
151259
  parentRunId,
151207
151260
  disposition: "stopped",
151208
- now: now$24,
151261
+ now: now$46,
151209
151262
  ...parentRunId !== run.id && completionMessage?.delegatedCompletion !== void 0 ? { interruptedWakeTaskIds: completionMessage.delegatedCompletion.taskIds } : {}
151210
151263
  });
151211
151264
  });
@@ -151225,9 +151278,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151225
151278
  ordinal: yield* nextTurnItemOrdinal(projection),
151226
151279
  status: "completed",
151227
151280
  title: "Interrupt requested",
151228
- startedAt: now$24,
151229
- completedAt: now$24,
151230
- updatedAt: now$24,
151281
+ startedAt: now$46,
151282
+ completedAt: now$46,
151283
+ updatedAt: now$46,
151231
151284
  type: "run_interrupt_request",
151232
151285
  message: command.reason ?? "Interrupt requested"
151233
151286
  };
@@ -151289,9 +151342,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151289
151342
  ordinal: interruptRequestItem.ordinal + 1,
151290
151343
  status: "interrupted",
151291
151344
  title: "Interrupted",
151292
- startedAt: now$24,
151293
- completedAt: now$24,
151294
- updatedAt: now$24,
151345
+ startedAt: now$46,
151346
+ completedAt: now$46,
151347
+ updatedAt: now$46,
151295
151348
  type: "run_interrupt_result",
151296
151349
  message: "Run interrupted before provider start"
151297
151350
  };
@@ -151301,7 +151354,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151301
151354
  runId: run.id,
151302
151355
  nodeId: rootNode.id,
151303
151356
  providerInstanceId: run.providerInstanceId,
151304
- occurredAt: now$24,
151357
+ occurredAt: now$46,
151305
151358
  payload: interruptRequestItem
151306
151359
  });
151307
151360
  yield* emitEvent({
@@ -151310,7 +151363,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151310
151363
  runId: run.id,
151311
151364
  nodeId: rootNode.id,
151312
151365
  providerInstanceId: run.providerInstanceId,
151313
- occurredAt: now$24,
151366
+ occurredAt: now$46,
151314
151367
  payload: interruptResultItem
151315
151368
  });
151316
151369
  const preparationItem = projection.turnItems.find((candidate) => candidate.runId === run.id && candidate.type === "command_execution" && candidate.input === WORKSPACE_PREPARATION_INPUT && candidate.status === "running");
@@ -151320,14 +151373,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151320
151373
  runId: run.id,
151321
151374
  nodeId: rootNode.id,
151322
151375
  providerInstanceId: run.providerInstanceId,
151323
- occurredAt: now$24,
151376
+ occurredAt: now$46,
151324
151377
  payload: {
151325
151378
  ...preparationItem,
151326
151379
  status: "interrupted",
151327
151380
  title: "Workspace preparation interrupted",
151328
151381
  output: command.reason ?? "Interrupted before provider start",
151329
- completedAt: now$24,
151330
- updatedAt: now$24
151382
+ completedAt: now$46,
151383
+ updatedAt: now$46
151331
151384
  }
151332
151385
  });
151333
151386
  yield* emitEvent({
@@ -151336,11 +151389,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151336
151389
  runId: run.id,
151337
151390
  nodeId: rootNode.id,
151338
151391
  providerInstanceId: run.providerInstanceId,
151339
- occurredAt: now$24,
151392
+ occurredAt: now$46,
151340
151393
  payload: {
151341
151394
  ...attempt,
151342
151395
  status: "interrupted",
151343
- completedAt: now$24
151396
+ completedAt: now$46
151344
151397
  }
151345
151398
  });
151346
151399
  yield* emitEvent({
@@ -151349,11 +151402,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151349
151402
  runId: run.id,
151350
151403
  nodeId: rootNode.id,
151351
151404
  providerInstanceId: run.providerInstanceId,
151352
- occurredAt: now$24,
151405
+ occurredAt: now$46,
151353
151406
  payload: {
151354
151407
  ...rootNode,
151355
151408
  status: "interrupted",
151356
- completedAt: now$24
151409
+ completedAt: now$46
151357
151410
  }
151358
151411
  });
151359
151412
  yield* emitEvent({
@@ -151362,11 +151415,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151362
151415
  runId: run.id,
151363
151416
  nodeId: rootNode.id,
151364
151417
  providerInstanceId: run.providerInstanceId,
151365
- occurredAt: now$24,
151418
+ occurredAt: now$46,
151366
151419
  payload: {
151367
151420
  ...run,
151368
151421
  status: "interrupted",
151369
- completedAt: now$24
151422
+ completedAt: now$46
151370
151423
  }
151371
151424
  });
151372
151425
  const supersededTurn = projection.providerTurns.findLast((candidate) => candidate.status === "running" && projection.attempts.some((attempt) => attempt.id === candidate.runAttemptId && attempt.runId === run.id));
@@ -151409,7 +151462,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151409
151462
  runId: run.id,
151410
151463
  nodeId: rootNode.id,
151411
151464
  providerInstanceId: run.providerInstanceId,
151412
- occurredAt: now$24,
151465
+ occurredAt: now$46,
151413
151466
  payload: interruptRequestItem
151414
151467
  });
151415
151468
  yield* stopRemainingWork();
@@ -151419,7 +151472,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151419
151472
  providerTurn,
151420
151473
  events,
151421
151474
  effects,
151422
- now: now$24
151475
+ now: now$46
151423
151476
  });
151424
151477
  yield* settleBackgroundWork({
151425
151478
  command,
@@ -151427,7 +151480,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151427
151480
  projection,
151428
151481
  stoppedProviderThreadId: providerThread.id,
151429
151482
  throughRunOrdinal: run.ordinal,
151430
- now: now$24
151483
+ now: now$46
151431
151484
  });
151432
151485
  yield* update$4(effects, (existing) => [...existing, ...otherProviderInterrupts]);
151433
151486
  return;
@@ -151450,7 +151503,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151450
151503
  runId: run.id,
151451
151504
  nodeId: rootNode.id,
151452
151505
  providerInstanceId: run.providerInstanceId,
151453
- occurredAt: now$24,
151506
+ occurredAt: now$46,
151454
151507
  payload: interruptRequestItem
151455
151508
  });
151456
151509
  yield* stopRemainingWork();
@@ -151578,18 +151631,18 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151578
151631
  const idle = idleChildren.get(task.childThreadId) ?? (!child.runs.some((run) => run.status === "queued" || isBlockingRun(run)) && !child.providerThreads.some((thread) => thread.status === "active" || (thread.pendingBackgroundTasks?.length ?? 0) > 0) && !child.runtimeRequests.some((request) => request.status === "pending") && child.turnItems.length === 0 && isNone(yield* findFirst(child.runs, awaitsRestartContinuation)));
151579
151632
  idleChildren.set(task.childThreadId, idle);
151580
151633
  if (!idle) continue;
151581
- const now$46 = yield* now;
151634
+ const now$21 = yield* now;
151582
151635
  const emitEvent = emit(events, command);
151583
151636
  yield* emitEvent({
151584
151637
  type: "subagent.updated",
151585
151638
  threadId: command.threadId,
151586
151639
  nodeId: task.id,
151587
- occurredAt: now$46,
151640
+ occurredAt: now$21,
151588
151641
  payload: {
151589
151642
  ...task,
151590
151643
  status: "cancelled",
151591
- completedAt: now$46,
151592
- updatedAt: now$46,
151644
+ completedAt: now$21,
151645
+ updatedAt: now$21,
151593
151646
  completionDelivery: {
151594
151647
  state: "disposed",
151595
151648
  observedByRunId: null
@@ -151602,11 +151655,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151602
151655
  type: "node.updated",
151603
151656
  threadId: command.threadId,
151604
151657
  nodeId: node.id,
151605
- occurredAt: now$46,
151658
+ occurredAt: now$21,
151606
151659
  payload: {
151607
151660
  ...node,
151608
151661
  status: "cancelled",
151609
- completedAt: now$46
151662
+ completedAt: now$21
151610
151663
  }
151611
151664
  });
151612
151665
  for (const item of projection.turnItems) {
@@ -151615,12 +151668,12 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151615
151668
  type: "turn-item.updated",
151616
151669
  threadId: command.threadId,
151617
151670
  nodeId: task.id,
151618
- occurredAt: now$46,
151671
+ occurredAt: now$21,
151619
151672
  payload: {
151620
151673
  ...item,
151621
151674
  status: "cancelled",
151622
- completedAt: now$46,
151623
- updatedAt: now$46
151675
+ completedAt: now$21,
151676
+ updatedAt: now$21
151624
151677
  }
151625
151678
  });
151626
151679
  }
@@ -151662,7 +151715,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151662
151715
  cause: interrupted.cause
151663
151716
  });
151664
151717
  }
151665
- const now$47 = yield* now;
151718
+ const now$22 = yield* now;
151666
151719
  const executed = latestExecutedRun(projection.runs);
151667
151720
  const reached = /* @__PURE__ */ new Map();
151668
151721
  if (target !== void 0) reached.set(target.id, target);
@@ -151672,14 +151725,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151672
151725
  events,
151673
151726
  thread: projection.thread,
151674
151727
  run,
151675
- now: now$47
151728
+ now: now$22
151676
151729
  });
151677
151730
  yield* holdStoppedThread({
151678
151731
  command,
151679
151732
  events,
151680
151733
  projection,
151681
151734
  cohortRunIds: [],
151682
- now: now$47
151735
+ now: now$22
151683
151736
  });
151684
151737
  yield* cancelIdleOrphans;
151685
151738
  });
@@ -151771,28 +151824,28 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151771
151824
  cause: `Cannot roll back provider thread ${providerThread.id} to checkpoint ${targetCheckpoint.id}: target provider turn ${targetProviderTurn.id} belongs to provider thread ${targetProviderTurn.providerThreadId}.`
151772
151825
  });
151773
151826
  }
151774
- const now$17 = yield* now;
151827
+ const now$40 = yield* now;
151775
151828
  yield* emit(events, command)({
151776
151829
  type: "thread.metadata-updated",
151777
151830
  threadId: command.threadId,
151778
151831
  providerInstanceId: projection.thread.providerInstanceId,
151779
- occurredAt: now$17,
151832
+ occurredAt: now$40,
151780
151833
  payload: {
151781
151834
  ...projection.thread,
151782
151835
  rollbackRequestId: command.commandId,
151783
151836
  rollbackFailure: null,
151784
- updatedAt: now$17
151837
+ updatedAt: now$40
151785
151838
  }
151786
151839
  });
151787
151840
  yield* emit(events, command)({
151788
151841
  type: "checkpoint.rollback-requested",
151789
151842
  threadId: command.threadId,
151790
151843
  providerInstanceId: modelSelection.instanceId,
151791
- occurredAt: now$17,
151844
+ occurredAt: now$40,
151792
151845
  payload: {
151793
151846
  scopeId: targetScope.id,
151794
151847
  checkpointId: targetCheckpoint.id,
151795
- requestedAt: now$17
151848
+ requestedAt: now$40
151796
151849
  }
151797
151850
  });
151798
151851
  yield* update$4(effects, (existing) => [...existing, {
@@ -151821,19 +151874,19 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
151821
151874
  commandType: command.type,
151822
151875
  cause: `Rollback ${command.requestId} is no longer the thread's current rollback.`
151823
151876
  });
151824
- const now$29 = yield* now;
151877
+ const now$50 = yield* now;
151825
151878
  yield* emit(events, command)({
151826
151879
  type: "thread.metadata-updated",
151827
151880
  threadId: command.threadId,
151828
151881
  providerInstanceId: thread.providerInstanceId,
151829
- occurredAt: now$29,
151882
+ occurredAt: now$50,
151830
151883
  payload: {
151831
151884
  ...thread,
151832
151885
  rollbackFailure: {
151833
151886
  requestId: command.requestId,
151834
151887
  message: command.message
151835
151888
  },
151836
- updatedAt: now$29
151889
+ updatedAt: now$50
151837
151890
  }
151838
151891
  });
151839
151892
  });
@@ -152051,7 +152104,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152051
152104
  const task = parentProjection.subagents.find((candidate) => candidate.id === options.taskId && candidate.origin === "app_owned" && candidate.childThreadId === childThreadId);
152052
152105
  if (task === void 0) return;
152053
152106
  if (parentProjection.contextTransfers.find((transfer) => transfer.type === "subagent_result" && transfer.sourceThreadId === childThreadId && transfer.targetThreadId === parentThreadId && (transfer.sourcePoint.runId === childRun.id || options.taskId === forkedFrom.nodeId && transfer.sourcePoint.runId === void 0)) !== void 0) return;
152054
- const now$30 = yield* now;
152107
+ const now$51 = yield* now;
152055
152108
  const result = subagentResultForRun(childProjection, {
152056
152109
  ...childRun,
152057
152110
  status: outcome
@@ -152064,15 +152117,15 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152064
152117
  providerThreadId: childRun.providerThreadId,
152065
152118
  status: terminalStatus,
152066
152119
  result: result.text,
152067
- completedAt: now$30,
152068
- updatedAt: now$30
152120
+ completedAt: now$51,
152121
+ updatedAt: now$51
152069
152122
  };
152070
152123
  const completionPlan = yield* planDelegatedCompletionDelivery({
152071
152124
  parentProjection,
152072
152125
  parentRun,
152073
152126
  task,
152074
152127
  updatedTask,
152075
- now: now$30
152128
+ now: now$51
152076
152129
  });
152077
152130
  const resultTransferId = yield* idAllocator.allocate.contextTransfer({
152078
152131
  sourceThreadId: childThreadId,
@@ -152101,8 +152154,8 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152101
152154
  summaryMessageId: result.messageId,
152102
152155
  summaryText: result.text,
152103
152156
  createdByProviderInstanceId: childRun.providerInstanceId,
152104
- createdAt: now$30,
152105
- updatedAt: now$30
152157
+ createdAt: now$51,
152158
+ updatedAt: now$51
152106
152159
  };
152107
152160
  const resultTransfer = {
152108
152161
  id: resultTransferId,
@@ -152124,9 +152177,9 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152124
152177
  },
152125
152178
  createdBy: "system",
152126
152179
  error: null,
152127
- createdAt: now$30,
152128
- updatedAt: now$30,
152129
- consumedAt: now$30
152180
+ createdAt: now$51,
152181
+ updatedAt: now$51,
152182
+ consumedAt: now$51
152130
152183
  };
152131
152184
  const completionEvents = [
152132
152185
  {
@@ -152135,22 +152188,22 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152135
152188
  ...task.runId === null ? {} : { runId: task.runId },
152136
152189
  nodeId: task.id,
152137
152190
  driver: task.driver,
152138
- occurredAt: now$30,
152191
+ occurredAt: now$51,
152139
152192
  payload: completionPlan.task
152140
152193
  },
152141
- ...delegatedCompletionPlanEvents(parentThreadId, completionPlan, parentProjection.thread.providerInstanceId, now$30),
152194
+ ...delegatedCompletionPlanEvents(parentThreadId, completionPlan, parentProjection.thread.providerInstanceId, now$51),
152142
152195
  ...parentNode === void 0 ? [] : [{
152143
152196
  type: "node.updated",
152144
152197
  threadId: parentThreadId,
152145
152198
  ...parentNode.runId === null ? {} : { runId: parentNode.runId },
152146
152199
  nodeId: parentNode.id,
152147
152200
  driver: task.driver,
152148
- occurredAt: now$30,
152201
+ occurredAt: now$51,
152149
152202
  payload: {
152150
152203
  ...parentNode,
152151
152204
  status: terminalStatus,
152152
152205
  providerThreadId: childRun.providerThreadId,
152153
- completedAt: now$30
152206
+ completedAt: now$51
152154
152207
  }
152155
152208
  }],
152156
152209
  ...parentTurnItem === void 0 ? [] : [{
@@ -152159,13 +152212,13 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152159
152212
  ...parentTurnItem.runId === null ? {} : { runId: parentTurnItem.runId },
152160
152213
  ...parentTurnItem.nodeId === null ? {} : { nodeId: parentTurnItem.nodeId },
152161
152214
  driver: task.driver,
152162
- occurredAt: now$30,
152215
+ occurredAt: now$51,
152163
152216
  payload: {
152164
152217
  ...parentTurnItem,
152165
152218
  status: terminalStatus,
152166
152219
  result: result.text,
152167
- completedAt: now$30,
152168
- updatedAt: now$30
152220
+ completedAt: now$51,
152221
+ updatedAt: now$51
152169
152222
  }
152170
152223
  }],
152171
152224
  ...resultHandoff === null ? [] : [{
@@ -152173,7 +152226,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152173
152226
  threadId: parentThreadId,
152174
152227
  ...parentRun === void 0 ? {} : { runId: parentRun.id },
152175
152228
  providerInstanceId: childRun.providerInstanceId,
152176
- occurredAt: now$30,
152229
+ occurredAt: now$51,
152177
152230
  payload: resultHandoff
152178
152231
  }],
152179
152232
  {
@@ -152181,7 +152234,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152181
152234
  threadId: parentThreadId,
152182
152235
  ...parentRun === void 0 ? {} : { runId: parentRun.id },
152183
152236
  providerInstanceId: childRun.providerInstanceId,
152184
- occurredAt: now$30,
152237
+ occurredAt: now$51,
152185
152238
  payload: resultTransfer
152186
152239
  }
152187
152240
  ];
@@ -152228,7 +152281,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152228
152281
  const cohort = parentRun?.delegatedCompletion;
152229
152282
  const delivery = cohort?.delivery;
152230
152283
  if (parentRun === void 0 || cohort === void 0 || delivery === null || delivery === void 0 || delivery.messageId !== deliveryRun.userMessageId || delivery.generation !== messageOwnership.generation) return;
152231
- const now$41 = yield* now;
152284
+ const now$17 = yield* now;
152232
152285
  const nextTaskStates = /* @__PURE__ */ new Map();
152233
152286
  for (const task of projection.subagents) {
152234
152287
  if (task.origin !== "app_owned" || task.runId !== parentRun.id || !delivery.taskIds.includes(task.id) || task.completionDelivery?.state !== "claimed") continue;
@@ -152268,11 +152321,11 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152268
152321
  nodeId: task.id,
152269
152322
  driver: task.driver,
152270
152323
  providerInstanceId: task.providerInstanceId,
152271
- occurredAt: now$41,
152324
+ occurredAt: now$17,
152272
152325
  payload: {
152273
152326
  ...task,
152274
152327
  completionDelivery,
152275
- updatedAt: now$41
152328
+ updatedAt: now$17
152276
152329
  }
152277
152330
  }];
152278
152331
  });
@@ -152282,25 +152335,25 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152282
152335
  runId: updatedParentRun.id,
152283
152336
  ...updatedParentRun.rootNodeId === null ? {} : { nodeId: updatedParentRun.rootNodeId },
152284
152337
  providerInstanceId: updatedParentRun.providerInstanceId,
152285
- occurredAt: now$41,
152338
+ occurredAt: now$17,
152286
152339
  payload: updatedParentRun
152287
152340
  }]);
152288
152341
  if (nextDelivery !== null) yield* offerDelegatedCompletionDelivery(threadId, parentRun.id);
152289
152342
  });
152290
152343
  const dispatchNotificationAccepted = fn("orchestrationV2.notificationAccepted")(function* (command, events) {
152291
152344
  const projection = yield* getProjectionWithPendingEvents(command.threadId, events);
152292
- const now$15 = yield* now;
152345
+ const now$38 = yield* now;
152293
152346
  const parentRunId = yield* acceptDelegatedCompletionDelivery({
152294
152347
  command,
152295
152348
  events,
152296
152349
  projection,
152297
152350
  messageId: command.messageId,
152298
- now: now$15
152351
+ now: now$38
152299
152352
  });
152300
152353
  if (parentRunId === void 0) yield* emit(events, command)({
152301
152354
  type: "thread.metadata-updated",
152302
152355
  threadId: command.threadId,
152303
- occurredAt: now$15,
152356
+ occurredAt: now$38,
152304
152357
  payload: projection.thread
152305
152358
  });
152306
152359
  return parentRunId;
@@ -152521,14 +152574,14 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152521
152574
  commandType: command.type,
152522
152575
  cause: "Continue the limited thread before resuming its queue."
152523
152576
  });
152524
- const now$48 = yield* now;
152577
+ const now$23 = yield* now;
152525
152578
  const queued = projection.runs.filter((run) => run.status === "queued");
152526
152579
  for (const run of queued) yield* emit(events, command)({
152527
152580
  type: "run.updated",
152528
152581
  threadId: command.threadId,
152529
152582
  runId: run.id,
152530
152583
  providerInstanceId: run.providerInstanceId,
152531
- occurredAt: now$48,
152584
+ occurredAt: now$23,
152532
152585
  payload: {
152533
152586
  ...run,
152534
152587
  queueHeld: false
@@ -152537,7 +152590,7 @@ const makeOrchestrator = fn("orchestrationV2.Orchestrator.layer")(function* () {
152537
152590
  if (queued.length === 0) yield* emit(events, command)({
152538
152591
  type: "thread.metadata-updated",
152539
152592
  threadId: command.threadId,
152540
- occurredAt: now$48,
152593
+ occurredAt: now$23,
152541
152594
  payload: projection.thread
152542
152595
  });
152543
152596
  break;
@@ -153032,7 +153085,7 @@ succeed$2(OrchestratorV2, OrchestratorV2.of({
153032
153085
  function withCreationProvenance(command, provenance) {
153033
153086
  switch (command.type) {
153034
153087
  case "thread.create": {
153035
- const { linkOrigin: _linkOrigin, delegatedFrom: _delegatedFrom, launchedByThreadId: _launchedByThreadId, ...rest } = command;
153088
+ const { linkOrigin: _linkOrigin, delegatedFrom: _delegatedFrom, launchedByThreadId: _launchedByThreadId, launchedByEnvironmentId: _launchedByEnvironmentId, ...rest } = command;
153036
153089
  return {
153037
153090
  ...rest,
153038
153091
  ...provenance
@@ -158205,6 +158258,7 @@ const make$7 = gen$1(function* () {
158205
158258
  ...input.linkOrigin === void 0 ? {} : { linkOrigin: input.linkOrigin },
158206
158259
  ...input.delegatedFrom === void 0 ? {} : { delegatedFrom: input.delegatedFrom },
158207
158260
  ...input.launchedByThreadId === void 0 ? {} : { launchedByThreadId: input.launchedByThreadId },
158261
+ ...input.launchedByEnvironmentId === void 0 ? {} : { launchedByEnvironmentId: input.launchedByEnvironmentId },
158208
158262
  createdBy: input.createdBy,
158209
158263
  creationSource: input.creationSource
158210
158264
  })).pipe(mapError(mapError$2(input, input.reuseExistingThread === true ? "update-thread" : "create-thread", candidateThreadId)))).storedEvents.find((stored) => stored.event.type.startsWith("thread."))?.event.threadId ?? candidateThreadId;
@@ -163987,6 +164041,6 @@ const layerProviderRuntimeRecoveryProvided = layer$3.pipe(provide(mergeAll(layer
163987
164041
  const layerMcpAppRequestsProvided = layer$24.pipe(provide(mergeAll(layer$46, layerOrchestratorProvided, layerThreadManagementProvided, layerProviderSessionManagerProvided)));
163988
164042
  const layer = mergeAll(layerOrchestratorProvided, layerMcpAppRequestsProvided, layerThreadManagementProvided, layerEffectWorkerProvided, layerProviderSessionManagerProvided, layerProviderAuthServiceProvided, layerProviderRuntimeRecoveryProvided, layerProjectionMaintenanceProvided, layerLegacyV1ThreadImporterProvided);
163989
164043
  const layerProduction = mergeAll(layer$27.pipe(provide(merge(layerThreadManagementProvided, layer$101))), layer.pipe(provide(layerProjectService)), layerProjectService, layerManagedProjectFoldersProvided, layerThreadLaunchProvided, layerThreadLifecycleProvided, layerScheduledTaskProvided, layerScratchThreadPromotionProvided, layerSecretRequestsProvided, layer$1.pipe(provide(layerThreadManagementProvided)), layer$25.pipe(provide(mergeAll(layer$101, layerThreadManagementProvided))), layerProviderContinuationWorkerProvided, layerAgentSessionImporterProvided, layerPruneWorker.pipe(provide(layer$102))).pipe(provide(layer$10.pipe(provide(layerScheduledTaskProvided))), provide(layer$26), provideMerge(layerEventInfrastructure));
163990
- export { PROJECT_FAVICON_FALLBACK_MARKER as $, ProviderEventLoggers as $n, layer$70 as $t, ThreadManagementError as A, COMPACTION_SUGGESTION_MIN_TOKENS as An, shutdown as Ar, layer$53 as At, ProviderSessionManagerV2 as B, WORKSPACE_BROWSER_PREVIEW_EXTENSIONS as Bn, update$3 as Br, layer$59 as Bt, ManagedProjectFolders as C, CodexInstallation as Cn, agentScopeCommand as Cr, layer$51 as Ct, createTranscriptJsonReader as D, EMPTY_TOTALS as Dn, ProviderInstanceRegistry as Dr, layer$52 as Dt, layer$21 as E, layer$77 as En, layer$86 as Er, VcsStatusBroadcaster as Et, latestRun as F, layerModelCatalog as Fn, update$2 as Fr, ProjectSetupScriptRunner as Ft, stringArray as G, isWorkspacePreviewEntryPath as Gn, layer$62 as Gt, layer$34 as H, audioMimeTypeFromExtension as Hn, run as Hr, layer$60 as Ht, withCreationProvenance as I, resolveProviderCompatibility as In, changes as Ir, TerminalManager as It, layer$35 as J, subagentResultForRun as Jn, layer$64 as Jt, stringRecord as K, makeUnavailableUsageLimits as Kn, BackgroundPolicy as Kt, OrchestratorV2 as L, layer$80 as Ln, get$2 as Lr, layer$57 as Lt, isActiveRun as M, BUNDLED_MODEL_MANIFEST as Mn, unbounded as Mr, layer$54 as Mt, isTerminalRunStatus as N, ModelManifest as Nn, get$1 as Nr, ProviderRegistry as Nt, ProviderAuthService as O, claudeUsageResponseToLimits as On, clear as Or, layerAutoPullPolicy as Ot, latestActiveRun as P, layer$78 as Pn, make$66 as Pr, layer$55 as Pt, layer$39 as Q, NoOpProviderEventLoggers as Qn, layer$69 as Qt, OrchestratorV2Error as R, AntigravityInstallation as Rn, make$67 as Rr, NativeTelemetryClient as Rt, layer$18 as S, providerAuthReturnUrl as Sn, AgentScope as Sr, CheckpointStore as St, AgentSessionScanner as T, codexRateLimitsToLimits as Tn, TextGeneration as Tr, parseTurnDiffFilesFromNumstat as Tt, isRecord$1 as U, hostPreviewMimeTypeFromExtension as Un, get$3 as Ur, deriveProviderInstanceConfigMap as Ut, McpRegistry as V, WORKSPACE_IMAGE_PREVIEW_EXTENSIONS as Vn, make$71 as Vr, PortDiscovery as Vt, registryNameFor as W, isWorkspaceImagePreviewPath as Wn, make$72 as Wr, layer$61 as Wt, layerObserver as X, layer$81 as Xn, layer$66 as Xt, layerCallbackRoute as Y, withExecutedModelNote as Yn, BUILT_IN_USAGE_DRIVERS as Yt, WorkspaceEntries as Z, mergeProviderInstanceEnvironment as Zn, layer$68 as Zt, SecretRequests as _, isJoseError as _n, PtyAdapter as _r, ProviderAdapterRegistryV2 as _t, layerProjectService as a, decodeUnverified as an, make$62 as ar, layer$44 as at, layer$17 as b, codexAuthorizationRequest as bn, nodeRuntimeUnavailableMessage as br, runOutcome as bt, ProviderRuntimeRecoveryService as c, exportPkcs8 as cn, jsonRpc as cr, layer$47 as ct, layer$11 as d, importPkcs8 as dn, RequestId$1 as dr, clientModeCeiling as dt, layer$71 as en, Protocol$3 as er, isProjectFaviconPath as et, ScratchThreadPromotion as f, importPrivate as fn, claudeSkillInvocation as fr, hiddenWhileLinksOff as ft, relayHookBaseUrl as g, JoseError as gn, AcpRegistryRuntimeCoordinator as gr, threadLinkFor as gt, WEBHOOK_ROUTE_PREFIX as h, AlgorithmNotAllowed as hn, toAcpRegistryOperationError as hr, requireThreadScope as ht, layerProduction as i, makeCodexChatGptAuth as in, Protocol$4 as ir, layer$43 as it, ThreadManagementService as j, readContainedWorkflowFile as jn, take as jr, GitManager as jt, McpAppRequests as k, makeEventNdjsonLogStore as kn, offer as kr, GitWorkflowService as kt, runDaemon as l, exportSpki as ln, layerJson as lr, MODE_LIMIT_HEADER as lt, ScheduledTaskWebhookOrigin as m, importSpki as mn, layerFromHost as mr, requireThreadMcpCapability as mt, layerEventInfrastructure as n, sameUsageLimitCommandCoverage as nn, makeProtocolWithHttpEffect as nr, layer$41 as nt, layerProjectSetupScriptRunner as o, verify as on, makeNoSerialization$1 as or, layerAnalytics as ot, ScheduledTaskService as p, importPublic as pn, AcpRegistryCatalog as pr, requireMcpCapability as pt, transportFromJsonEntry as q, delegatedTaskProgress as qn, layer$63 as qt, layerEventSink as r, withUsageLimitsCommands as rn, makeProtocolWithHttpEffectWebsocket as rr, layer$42 as rt, layerReports as s, sign as sn, RpcSerialization as sr, McpSessionRegistry as st, layer as t, layer$75 as tn, make$61 as tr, PullRequestService as tt, PreviewManager as u, generateKeyPair as un, layerJsonRpc as ur, McpInvocationContext as ut, ThreadLaunchService as v, AnalyticsService as vn, PtySpawnError as vr, layerFromProviderInstanceRegistry as vt, AgentSessionImporter as w, codexPlanLabel as wn, withWorkspaceLease as wr, isGitImport as wt, WorktreeSetupTracker as x, codexCallbackUrl as xn, resolveNodeExecutable as xr, checkpointRefForScopeOrdinal as xt, Decisions as y, layer$76 as yn, layer$85 as yr, DispatchModeLimit as yt, queuedRunsInDeliveryOrder as z, openZipArchive as zn, set$2 as zr, layer$58 as zt };
164044
+ export { PROJECT_FAVICON_FALLBACK_MARKER as $, NoOpProviderEventLoggers as $n, layer$69 as $t, ThreadManagementError as A, makeEventNdjsonLogStore as An, offer as Ar, GitWorkflowService as At, ProviderSessionManagerV2 as B, openZipArchive as Bn, set$2 as Br, layer$58 as Bt, ManagedProjectFolders as C, providerAuthReturnUrl as Cn, AgentScope as Cr, CheckpointStore as Ct, createTranscriptJsonReader as D, layer$77 as Dn, layer$86 as Dr, VcsStatusBroadcaster as Dt, layer$21 as E, codexRateLimitsToLimits as En, TextGeneration as Er, parseTurnDiffFilesFromNumstat as Et, latestRun as F, layer$78 as Fn, make$66 as Fr, layer$55 as Ft, stringArray as G, isWorkspaceImagePreviewPath as Gn, make$72 as Gr, layer$61 as Gt, layer$34 as H, WORKSPACE_IMAGE_PREVIEW_EXTENSIONS as Hn, make$71 as Hr, PortDiscovery as Ht, withCreationProvenance as I, layerModelCatalog as In, update$2 as Ir, ProjectSetupScriptRunner as It, layer$35 as J, delegatedTaskProgress as Jn, layer$63 as Jt, stringRecord as K, isWorkspacePreviewEntryPath as Kn, layer$62 as Kt, OrchestratorV2 as L, resolveProviderCompatibility as Ln, changes as Lr, TerminalManager as Lt, isActiveRun as M, readContainedWorkflowFile as Mn, take as Mr, GitManager as Mt, isTerminalRunStatus as N, BUNDLED_MODEL_MANIFEST as Nn, unbounded as Nr, layer$54 as Nt, ProviderAuthService as O, EMPTY_TOTALS as On, ProviderInstanceRegistry as Or, layer$52 as Ot, latestActiveRun as P, ModelManifest as Pn, get$1 as Pr, ProviderRegistry as Pt, layer$39 as Q, mergeProviderInstanceEnvironment as Qn, layer$68 as Qt, OrchestratorV2Error as R, layer$80 as Rn, get$2 as Rr, layer$57 as Rt, layer$18 as S, codexCallbackUrl as Sn, resolveNodeExecutable as Sr, checkpointRefForScopeOrdinal as St, AgentSessionScanner as T, codexPlanLabel as Tn, withWorkspaceLease as Tr, isGitImport as Tt, isRecord$1 as U, audioMimeTypeFromExtension as Un, run as Ur, layer$60 as Ut, McpRegistry as V, WORKSPACE_BROWSER_PREVIEW_EXTENSIONS as Vn, update$3 as Vr, layer$59 as Vt, registryNameFor as W, hostPreviewMimeTypeFromExtension as Wn, get$3 as Wr, deriveProviderInstanceConfigMap as Wt, layerObserver as X, withExecutedModelNote as Xn, BUILT_IN_USAGE_DRIVERS as Xt, layerCallbackRoute as Y, subagentResultForRun as Yn, layer$64 as Yt, WorkspaceEntries as Z, layer$81 as Zn, layer$66 as Zt, SecretRequests as _, JoseError as _n, AcpRegistryRuntimeCoordinator as _r, threadLinkFor as _t, layerProjectService as a, makeCodexChatGptAuth as an, Protocol$4 as ar, layer$44 as at, layer$17 as b, layer$76 as bn, layer$85 as br, DispatchModeLimit as bt, ProviderRuntimeRecoveryService as c, sign as cn, RpcSerialization as cr, layer$47 as ct, layer$11 as d, generateKeyPair as dn, layerJsonRpc as dr, McpInvocationContext as dt, layer$70 as en, ProviderEventLoggers as er, isProjectFaviconPath as et, ScratchThreadPromotion as f, importPkcs8 as fn, RequestId$1 as fr, clientModeCeiling as ft, relayHookBaseUrl as g, AlgorithmNotAllowed as gn, toAcpRegistryOperationError as gr, requireThreadScope as gt, WEBHOOK_ROUTE_PREFIX as h, importSpki as hn, layerFromHost as hr, requireThreadMcpCapability as ht, layerProduction as i, withUsageLimitsCommands as in, makeProtocolWithHttpEffectWebsocket as ir, layer$43 as it, ThreadManagementService as j, COMPACTION_SUGGESTION_MIN_TOKENS as jn, shutdown as jr, layer$53 as jt, McpAppRequests as k, claudeUsageResponseToLimits as kn, clear as kr, layerAutoPullPolicy as kt, runDaemon as l, exportPkcs8 as ln, jsonRpc as lr, LAUNCHED_BY_HEADER as lt, ScheduledTaskWebhookOrigin as m, importPublic as mn, AcpRegistryCatalog as mr, requireMcpCapability as mt, layerEventInfrastructure as n, layer$75 as nn, make$61 as nr, layer$41 as nt, layerProjectSetupScriptRunner as o, decodeUnverified as on, make$62 as or, layerAnalytics as ot, ScheduledTaskService as p, importPrivate as pn, claudeSkillInvocation as pr, hiddenWhileLinksOff as pt, transportFromJsonEntry as q, makeUnavailableUsageLimits as qn, BackgroundPolicy as qt, layerEventSink as r, sameUsageLimitCommandCoverage as rn, makeProtocolWithHttpEffect as rr, layer$42 as rt, layerReports as s, verify as sn, makeNoSerialization$1 as sr, McpSessionRegistry as st, layer as t, layer$71 as tn, Protocol$3 as tr, PullRequestService as tt, PreviewManager as u, exportSpki as un, layerJson as ur, MODE_LIMIT_HEADER as ut, ThreadLaunchService as v, isJoseError as vn, PtyAdapter as vr, ProviderAdapterRegistryV2 as vt, AgentSessionImporter as w, CodexInstallation as wn, agentScopeCommand as wr, layer$51 as wt, WorktreeSetupTracker as x, codexAuthorizationRequest as xn, nodeRuntimeUnavailableMessage as xr, runOutcome as xt, Decisions as y, AnalyticsService as yn, PtySpawnError as yr, layerFromProviderInstanceRegistry as yt, queuedRunsInDeliveryOrder as z, AntigravityInstallation as zn, make$67 as zr, NativeTelemetryClient as zt };
163991
164045
 
163992
- //# sourceMappingURL=runtimeLayer-DZa24xtO.mjs.map
164046
+ //# sourceMappingURL=runtimeLayer-ChPBglJB.mjs.map