ryco-cli 0.1.17 → 0.1.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{AcpNativeLogging-qZgtIa5K.mjs → AcpNativeLogging-BnzQt9go.mjs} +2 -2
- package/dist/{AcpNativeLogging-OhEq3XNp.cjs → AcpNativeLogging-sb_DOSyg.cjs} +1 -1
- package/dist/{AzureDevOpsSourceControlProvider-Dyu8KQ_S.cjs → AzureDevOpsSourceControlProvider-BHtgXept.cjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-B0YsaJyI.mjs → AzureDevOpsSourceControlProvider-B_rxsveN.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-B8IPx2Ad.mjs → BitbucketSourceControlProvider-BMaa5G9E.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-3VHGKSl1.cjs → BitbucketSourceControlProvider-CAQf4Kv7.cjs} +2 -2
- package/dist/{ClaudeDriver-CBCy0_WX.cjs → ClaudeDriver-DfPigB1i.cjs} +123 -284
- package/dist/{ClaudeDriver-DsW8yDj9.mjs → ClaudeDriver-QCXWLMlT.mjs} +124 -285
- package/dist/{CodexDriver-3TZPgrGk.cjs → CodexDriver-BTZDfSTo.cjs} +3 -3
- package/dist/{CodexDriver-DLwPz5sk.mjs → CodexDriver-pMXV4cdE.mjs} +4 -4
- package/dist/{CodexTextGeneration-DLHSW4Mz.cjs → CodexTextGeneration-BNKVkvo9.cjs} +1 -1
- package/dist/{CodexTextGeneration-D1vV8grr.mjs → CodexTextGeneration-ES8U6XFV.mjs} +2 -2
- package/dist/{CopilotDriver-DXvGBv-s.mjs → CopilotDriver-B313kdfE.mjs} +4 -4
- package/dist/{CopilotDriver-C7a8IhyK.cjs → CopilotDriver-BCNHWlcE.cjs} +3 -3
- package/dist/{CursorDriver-uNsDetA3.cjs → CursorDriver-BOFTf_G1.cjs} +3 -3
- package/dist/{CursorDriver-CeB_vMKJ.mjs → CursorDriver-DtCq_M54.mjs} +4 -4
- package/dist/{ForgejoSourceControlProvider-Ds0rU_PN.mjs → ForgejoSourceControlProvider-BjJmvo0h.mjs} +3 -3
- package/dist/{ForgejoSourceControlProvider-CJLksvL_.cjs → ForgejoSourceControlProvider-Xx8gP9mV.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-C7CJAslU.mjs → GitHubSourceControlProvider-CwSuSyD7.mjs} +3 -3
- package/dist/{GitHubSourceControlProvider-CrYNFu8S.cjs → GitHubSourceControlProvider-oFASPn98.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-u-Y-e8PV.mjs → GitLabSourceControlProvider-BzOAAREX.mjs} +3 -3
- package/dist/{GitLabSourceControlProvider-jbX5M34A.cjs → GitLabSourceControlProvider-CfCdfJ4C.cjs} +2 -2
- package/dist/{GrokDriver-CFgjwnvE.mjs → GrokDriver-4ZUx36Bj.mjs} +4 -4
- package/dist/{GrokDriver-BJ00ZiYg.cjs → GrokDriver-CU16uh8w.cjs} +3 -3
- package/dist/{OpenCodeDriver-BTxd2Q3Q.cjs → OpenCodeDriver-B9Hxfodu.cjs} +2 -2
- package/dist/{OpenCodeDriver-DNApoGdu.mjs → OpenCodeDriver-CmoacKRC.mjs} +3 -3
- package/dist/{SourceControlProviderDiscoveryCatalog-CPO3a9_U.cjs → SourceControlProviderDiscoveryCatalog-DZrf3FFb.cjs} +1 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-hXWNwRMn.mjs → SourceControlProviderDiscoveryCatalog-G0HUTo-t.mjs} +1 -1
- package/dist/bin.cjs +1020 -89
- package/dist/bin.mjs +1017 -91
- package/dist/client/assets/{AccountSettings-F4ZOTHid.js → AccountSettings-CTztI8Bi.js} +1 -1
- package/dist/client/assets/AiFocusSettings-3u1skSAb.js +1 -0
- package/dist/client/assets/{AnimatedHeight-BC-qaTJY.js → AnimatedHeight-Dhoy_tmE.js} +1 -1
- package/dist/client/assets/{AppearanceSettings-B6UaU-_a.js → AppearanceSettings-BR5lbrLN.js} +1 -1
- package/dist/client/assets/{BranchToolbar.logic-B2jdtYEs.js → BranchToolbar.logic-Dmwakdqj.js} +1 -1
- package/dist/client/assets/{ChatRightPanel-CxA4EQ1O.js → ChatRightPanel-DkOGSrAn.js} +6 -6
- package/dist/client/assets/{ChatThreadRouteView-BJ6OSbWZ.js → ChatThreadRouteView-CGYYcrsI.js} +1 -1
- package/dist/client/assets/CommandPaletteDialog-XNiKnBBc.js +1 -0
- package/dist/client/assets/{CompositeItem-97y1QiiT.js → CompositeItem-qhfO5Blk.js} +1 -1
- package/dist/client/assets/{CompositeRoot-C7Mz4Y_2.js → CompositeRoot-CXp9th_F.js} +1 -1
- package/dist/client/assets/{ConnectionsSettings-B8t9Z17K.js → ConnectionsSettings-BY3ddbHV.js} +2 -2
- package/dist/client/assets/{DiagnosticsSettings-Bt7j-SXg.js → DiagnosticsSettings-Ci3rPY6t.js} +1 -1
- package/dist/client/assets/{DialogHandle-Cl9dQBJp.js → DialogHandle-Bx9yEeA_.js} +1 -1
- package/dist/client/assets/{DialogPopup-a1M74u16.js → DialogPopup-DXniIm-O.js} +1 -1
- package/dist/client/assets/DialogRoot-Bk6gBQ5V.js +1 -0
- package/dist/client/assets/{DialogTitle-Bk-w3xLJ.js → DialogTitle-_K4jB_gk.js} +1 -1
- package/dist/client/assets/{DialogTrigger-D9nkMFu2.js → DialogTrigger-Dqu3mivf.js} +1 -1
- package/dist/client/assets/{DialogViewport-tgJz2Lwn.js → DialogViewport-D732iUV7.js} +1 -1
- package/dist/client/assets/{DraftChatThreadRouteView-BzcBT-YW.js → DraftChatThreadRouteView-Dywv4CEn.js} +1 -1
- package/dist/client/assets/{ExternalIdentityWeb.logic-Bn1HigS9.js → ExternalIdentityWeb.logic-CS0uWMYD.js} +1 -1
- package/dist/client/assets/{GlassSurface-CDok2tTN.js → GlassSurface-DvC0rFwP.js} +1 -1
- package/dist/client/assets/{HostedConnectionControls-DLrwfgKF.js → HostedConnectionControls-BvTKuCi3.js} +1 -1
- package/dist/client/assets/{HostedHubRoot-eqwMpBq5.js → HostedHubRoot-CP5muHrF.js} +1 -1
- package/dist/client/assets/{HostedNativeAuthorizationRoute-C11yMgF7.js → HostedNativeAuthorizationRoute-A5gRE9XG.js} +1 -1
- package/dist/client/assets/{HostedRelayTrustNotice-CMrrvMuJ.js → HostedRelayTrustNotice-DJHB-hdG.js} +1 -1
- package/dist/client/assets/{Icons-BEtED8P8.js → Icons-D3hxyIhB.js} +1 -1
- package/dist/client/assets/{IntegrationsSettingsPanel-rkW9RyYH.js → IntegrationsSettingsPanel-C84xzXbm.js} +1 -1
- package/dist/client/assets/{KeybindingsSettings-CjU5J7hU.js → KeybindingsSettings-Ch3AQ6Q-.js} +1 -1
- package/dist/client/assets/{McpServersSettings-D-Gq3vgy.js → McpServersSettings-9gaMeIPz.js} +1 -1
- package/dist/client/assets/{MobileSheet-BDvnUC5W.js → MobileSheet-CyXRW17C.js} +1 -1
- package/dist/client/assets/{NewWorktreeDialog-C4D-dD0C.js → NewWorktreeDialog-CkhG-yS2.js} +1 -1
- package/dist/client/assets/{NoActiveThreadState-z_FeP4Al.js → NoActiveThreadState-BLcjrUMm.js} +1 -1
- package/dist/client/assets/{NodeSecuritySettings-CMjnKY0w.js → NodeSecuritySettings-CfDwptzi.js} +1 -1
- package/dist/client/assets/{OpinionatedPluginsSettings-D9INVQf7.js → OpinionatedPluginsSettings-Dh6Ymfc-.js} +1 -1
- package/dist/client/assets/{PhoneGetAppInterstitial-B8iVzT22.js → PhoneGetAppInterstitial-BP2XMKHP.js} +1 -1
- package/dist/client/assets/{PhoneGetAppInterstitialBackdrop-BA4R225F.js → PhoneGetAppInterstitialBackdrop-B0rZOvB2.js} +1 -1
- package/dist/client/assets/{PhoneHome-BonZTgK7.js → PhoneHome-Cx7nMLqo.js} +1 -1
- package/dist/client/assets/PhoneSettingsSurface-kXeokfgI.js +1 -0
- package/dist/client/assets/{ProjectFavicon-CxXx07Sa.js → ProjectFavicon-BcX_Ec0T.js} +1 -1
- package/dist/client/assets/ProviderModelPicker-0XHZhfEq.js +1 -0
- package/dist/client/assets/{ProviderUpdateLaunchNotification.logic-CywRitn3.js → ProviderUpdateLaunchNotification.logic-BdeBHnT4.js} +1 -1
- package/dist/client/assets/{ProvidersSettingsPanel-CtTyCMP0.js → ProvidersSettingsPanel-m1r_skHL.js} +1 -1
- package/dist/client/assets/{RedactedSensitiveText-BuWSWty8.js → RedactedSensitiveText-D7gjFW0p.js} +1 -1
- package/dist/client/assets/RootAppShell-dI1nMiVY.js +6 -0
- package/dist/client/assets/{RycoLetterMark-CZYntY8t.js → RycoLetterMark-JQr1uxZT.js} +1 -1
- package/dist/client/assets/SettingsDialog-CHOdPMdL.js +1 -0
- package/dist/client/assets/SettingsPanels-B2k-6Ehb.js +3 -0
- package/dist/client/assets/{SettingsPanels.editor-lbLEbllb.js → SettingsPanels.editor-DvS8npAI.js} +1 -1
- package/dist/client/assets/{SourceControlSettings-C_GMp7qk.js → SourceControlSettings-CokcENz_.js} +1 -1
- package/dist/client/assets/{StatisticsPage-CDukahZF.js → StatisticsPage-TN6yaBa1.js} +1 -1
- package/dist/client/assets/{StatisticsPanel-BTdaxoVf.js → StatisticsPanel-BKw4XkjR.js} +1 -1
- package/dist/client/assets/{StatisticsSettingsLink-B7SZerf3.js → StatisticsSettingsLink-tBTypC6v.js} +1 -1
- package/dist/client/assets/{ThreadStatusIndicators-D_6jI6us.js → ThreadStatusIndicators-Zvgn04Dn.js} +0 -0
- package/dist/client/assets/{ThreadTerminalDrawer-C2B3Ry66.js → ThreadTerminalDrawer-BI6ku1uz.js} +1 -1
- package/dist/client/assets/{ThreadWorkspacePanel-D8gR7mQC.js → ThreadWorkspacePanel-DwaK2nc1.js} +1 -1
- package/dist/client/assets/{ToolbarRootContext-B1g8IP6k.js → ToolbarRootContext-BXZDNd0W.js} +1 -1
- package/dist/client/assets/{WorkItemsTab-QQXGM1BH.js → WorkItemsTab-Cxn1bSXE.js} +4 -4
- package/dist/client/assets/{alert-DomE7dAt.js → alert-DzagxL5z.js} +1 -1
- package/dist/client/assets/{alert-dialog-9Jyh0e8u.js → alert-dialog-CQaNXuTj.js} +1 -1
- package/dist/client/assets/archive-BL1hojl3.js +1 -0
- package/dist/client/assets/authorization-D3QNaV6E.js +1 -0
- package/dist/client/assets/{badge-w43sx8eF.js → badge-C5_ROuZu.js} +1 -1
- package/dist/client/assets/{branding-BS9Iv2ln.js → branding-BBkacezg.js} +1 -1
- package/dist/client/assets/{button-DG8WqjNn.js → button-84K7n2wA.js} +1 -1
- package/dist/client/assets/{capabilities-tpmeGBtr.js → capabilities-D1zCmMpy.js} +1 -1
- package/dist/client/assets/{chatThreadActions-BZvyhfKr.js → chatThreadActions-VKH852R7.js} +1 -1
- package/dist/client/assets/{collapsible-EhAEe5S9.js → collapsible-BSEa-ORB.js} +1 -1
- package/dist/client/assets/{command-Cyn6yIEa.js → command-C_cBoAjK.js} +1 -1
- package/dist/client/assets/composerDraftStore-DM8BJvHt.js +11 -0
- package/dist/client/assets/{data-list-DTdqWMGN.js → data-list-D98sJjJQ.js} +1 -1
- package/dist/client/assets/desktopUpdateAtoms-B8Szv6by.js +1 -0
- package/dist/client/assets/{desktopWorkspace-CIvAIvMt.js → desktopWorkspace-V4qpyp0M.js} +1 -1
- package/dist/client/assets/{device-B3lHunk1.js → device-CNHT_o2u.js} +1 -1
- package/dist/client/assets/{dialog-BNmFD6Nh.js → dialog-ekyTdmtN.js} +1 -1
- package/dist/client/assets/{draft-input-dP7F8odz.js → draft-input-BzdYQSqp.js} +1 -1
- package/dist/client/assets/editorPreferences-n_SEOStx.js +1 -0
- package/dist/client/assets/{empty-Ccxhyvdf.js → empty-Bo-8VHEg.js} +1 -1
- package/dist/client/assets/{env-Bcq9YR3B.js → env-Clz4p9nL.js} +1 -1
- package/dist/client/assets/{getPseudoElementBounds-CO5HJT7x.js → getPseudoElementBounds-2BN7VP7X.js} +1 -1
- package/dist/client/assets/{group-CzdKmc45.js → group-NJVrmJK2.js} +1 -1
- package/dist/client/assets/{index-C536LXZ6.js → index-D4BJ8pQ9.js} +2 -2
- package/dist/client/assets/{input-BZz4eLRl.js → input-Zumpn45a.js} +1 -1
- package/dist/client/assets/{kbd-DbvN3zTb.js → kbd-BmI1rkHM.js} +1 -1
- package/dist/client/assets/{keybindings-BPE3eEAM.js → keybindings-uuaAI71h.js} +1 -1
- package/dist/client/assets/{label-DZf4lbNF.js → label-DYSChiPa.js} +1 -1
- package/dist/client/assets/{lib-DgOYoged.js → lib-BHW_qN3R.js} +1 -1
- package/dist/client/assets/{logging-81iP6Hps.js → logging-Bj9aNa1i.js} +1 -1
- package/dist/client/assets/main-CgLLEwXi.css +2 -0
- package/dist/client/assets/{main-BjfqengQ.js → main-YXgtRMJq.js} +2 -2
- package/dist/client/assets/{menu-B6UEFcn0.js → menu-DNSzJ_Xt.js} +1 -1
- package/dist/client/assets/{popover-BuYzXGwl.js → popover-CN-oXBGi.js} +1 -1
- package/dist/client/assets/primary-DjvrcOzR.js +2 -0
- package/dist/client/assets/{projectPaths-3WDk4ziK.js → projectPaths-Da79jKxq.js} +1 -1
- package/dist/client/assets/{providerDriverMeta-sBwZhQoN.js → providerDriverMeta-C5Ifsitu.js} +1 -1
- package/dist/client/assets/{providerIconUtils-DLRASbiu.js → providerIconUtils-DzYW2dg3.js} +1 -1
- package/dist/client/assets/providerInstances-DuEFgB4d.js +1 -0
- package/dist/client/assets/providerModels-DuEFgB4d.js +1 -0
- package/dist/client/assets/{qr-code-Ie92aZvE.js → qr-code-LEPl28s1.js} +1 -1
- package/dist/client/assets/{radio-group-BuuTEtdC.js → radio-group-DUiKilPu.js} +1 -1
- package/dist/client/assets/{resolveAriaLabelledBy-0FA0k4xp.js → resolveAriaLabelledBy-zZ8aBV0g.js} +1 -1
- package/dist/client/assets/{rightPanelRouteSearch-BS8CkNS6.js → rightPanelRouteSearch-BvTNRdcl.js} +1 -1
- package/dist/client/assets/runtime-rC2k29TW.js +1 -0
- package/dist/client/assets/{scroll-area-C0yF015F.js → scroll-area-CBSY6ISs.js} +1 -1
- package/dist/client/assets/{scrollEdges-DI5Y3mtR.js → scrollEdges-q2Ioxety.js} +1 -1
- package/dist/client/assets/{select-CZukJlTn.js → select-CY7KGJfs.js} +1 -1
- package/dist/client/assets/{separator-D4ckGtPe.js → separator-BhDQoah6.js} +1 -1
- package/dist/client/assets/{session-logic-DfaSS3p9.js → session-logic-yjU32k5M.js} +2 -2
- package/dist/client/assets/{settingsDialogStore-LxRFC5hh.js → settingsDialogStore-3FuA919f.js} +1 -1
- package/dist/client/assets/{settingsLayout-CHJT5wtl.js → settingsLayout-Bdb0BKqT.js} +1 -1
- package/dist/client/assets/{sheet-BNfImQ-7.js → sheet-CAyuCkkv.js} +1 -1
- package/dist/client/assets/{sidebar-CFGg5Tkr.js → sidebar-BJtWwdvq.js} +1 -1
- package/dist/client/assets/{sidebarProjectFolders-DKxZsoOv.js → sidebarProjectFolders-alWDQ6Ua.js} +1 -1
- package/dist/client/assets/{sidebarStatusText-C8QBhZhZ.js → sidebarStatusText-CFZFs_GL.js} +1 -1
- package/dist/client/assets/{skeleton-DOgQaVXv.js → skeleton-DVOyUeDB.js} +1 -1
- package/dist/client/assets/{spinner-ClQu8SdC.js → spinner-QltLJ3rj.js} +1 -1
- package/dist/client/assets/{src-DmPIm3ie.js → src-DUTt1PTH.js} +1 -1
- package/dist/client/assets/storeSelectors-9DTss3Bt.js +1 -0
- package/dist/client/assets/{switch-BZjA7VT9.js → switch-Buq6cQMX.js} +1 -1
- package/dist/client/assets/{terminal-links-CzJomeox.js → terminal-links-B5riX-FI.js} +1 -1
- package/dist/client/assets/{textarea-DHdmRD1r.js → textarea-oR-QEhm-.js} +1 -1
- package/dist/client/assets/{threadPinning-UKIVw0OX.js → threadPinning-DTdgSmd6.js} +1 -1
- package/dist/client/assets/{threadPriorityRefreshRuntime-BbiIUPfh.js → threadPriorityRefreshRuntime-C9_hY5A-.js} +1 -1
- package/dist/client/assets/{toast-C-0Ft2jD.js → toast-ClkUrsPP.js} +1 -1
- package/dist/client/assets/{toggle-DsnOFDbJ.js → toggle-CFeFFpQ7.js} +1 -1
- package/dist/client/assets/{toggle-group-Chxh9G6t.js → toggle-group-DTpGnsyn.js} +1 -1
- package/dist/client/assets/{tooltip-C_-9XEfA.js → tooltip-C0IyzT7d.js} +1 -1
- package/dist/client/assets/types-9DTss3Bt.js +1 -0
- package/dist/client/assets/{uiStateStore-DzUrk2GS.js → uiStateStore-77JarUWB.js} +1 -1
- package/dist/client/assets/{useAtlassian-BTWMzLgJ.js → useAtlassian-CCX2YMMO.js} +0 -0
- package/dist/client/assets/{useButton-BmvYhoMC.js → useButton-DqpJ6e75.js} +1 -1
- package/dist/client/assets/{useCompositeListItem-D0PvH4nv.js → useCompositeListItem-Dsvm-5fB.js} +1 -1
- package/dist/client/assets/{useDebouncedValue-s0BC8Yyp.js → useDebouncedValue-CEauJPrh.js} +1 -1
- package/dist/client/assets/{useFloatingRootContext-CLCaQEJk.js → useFloatingRootContext-6_Jqtexa.js} +1 -1
- package/dist/client/assets/{useHandleNewThread-9FAjhuhK.js → useHandleNewThread-Cqmf_d8K.js} +1 -1
- package/dist/client/assets/{useLabelableId-CB_9OReR.js → useLabelableId-C6SFj1V_.js} +1 -1
- package/dist/client/assets/{useLocation-DGJMt6gP.js → useLocation-B6GbzsxV.js} +1 -1
- package/dist/client/assets/{useOpenInteractionType-BSSI2GzS.js → useOpenInteractionType-Dz3FMr9X.js} +1 -1
- package/dist/client/assets/{usePhoneThreadActions-B7yDFO2l.js → usePhoneThreadActions-CCCWjAtp.js} +1 -1
- package/dist/client/assets/{usePopupViewport-8F-J1h5f.js → usePopupViewport-BlA5mlIJ.js} +1 -1
- package/dist/client/assets/{useScrollLock-CBz-5_MX.js → useScrollLock-DfvnGWSO.js} +1 -1
- package/dist/client/assets/{useStatistics-C9g3i7bQ.js → useStatistics-Cm_ww9Q5.js} +2 -2
- package/dist/client/assets/{useSwipeDismiss-D22_vuiH.js → useSwipeDismiss-DTX51-vs.js} +1 -1
- package/dist/client/assets/{useThreadActions-CouKkjbt.js → useThreadActions-BQRfXVVz.js} +1 -1
- package/dist/client/assets/{useTriggerFocusGuards-f7afwACm.js → useTriggerFocusGuards-9BE2fzWh.js} +1 -1
- package/dist/client/assets/{useValueChanged-EkWF0C3k.js → useValueChanged-BLrOCH_k.js} +1 -1
- package/dist/client/assets/{utils-CV2fJJxC.js → utils-CjMKiqw4.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-oFvWyN3_.mjs → collectUint8StreamText-BIOBnIzb.mjs} +18 -2
- package/dist/{collectUint8StreamText-Dsbmrw73.cjs → collectUint8StreamText-CJEzr0MN.cjs} +23 -1
- package/dist/{makeManagedServerProvider-PLtJj7EV.mjs → makeManagedServerProvider-CMwrPtKm.mjs} +2 -2
- package/dist/{makeManagedServerProvider-CANTNAsz.cjs → makeManagedServerProvider-CkLRh_mS.cjs} +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AiFocusSettings-DwIYKKIc.js +0 -1
- package/dist/client/assets/CommandPaletteDialog-DywhkOKa.js +0 -1
- package/dist/client/assets/DialogRoot-C_DO1gtO.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-B-6LoBMV.js +0 -1
- package/dist/client/assets/ProviderModelPicker-M_Ezjlmq.js +0 -1
- package/dist/client/assets/RootAppShell-DJfVW8Xa.js +0 -6
- package/dist/client/assets/SettingsDialog-ClIbtJ2y.js +0 -1
- package/dist/client/assets/SettingsPanels-DshjYQGk.js +0 -3
- package/dist/client/assets/authorization-D8lJzXTE.js +0 -1
- package/dist/client/assets/composerDraftStore-TYv9j3vY.js +0 -11
- package/dist/client/assets/desktopUpdateAtoms-BpN7gP0v.js +0 -1
- package/dist/client/assets/editorPreferences-DiUypD3L.js +0 -1
- package/dist/client/assets/main-DlGNPwsH.css +0 -2
- package/dist/client/assets/primary-CiDY2oUi.js +0 -2
- package/dist/client/assets/providerInstances-vd2eZtHx.js +0 -1
- package/dist/client/assets/providerModels-vd2eZtHx.js +0 -1
- package/dist/client/assets/runtime-CYtynKGT.js +0 -1
- package/dist/client/assets/storeSelectors-BeLJe5C1.js +0 -1
- package/dist/client/assets/types-BeLJe5C1.js +0 -1
package/dist/bin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $ as AgentControlExternalOverviewResult, $a as DESKTOP_NATIVE_NODE_CLAIM_DESCRIPTOR_PATH, $i as ThreadStatusBucketOverriddenPayload$1, $n as ClaudeSettings, $o as TrimmedNonEmptyString, $r as OrchestrationEventType, $t as AgentControlMcpRecentActivityResult, A as AGENT_CONTROL_MCP_AUTOMATION_LIST_PROMPT_MAX_CHARS, Ai as ProjectionPendingApprovalDecision, An as AtlassianConnectionStatus, Ao as AuthRevokePairingLinkInput, At as AgentControlMcpProposeAutomationUpdateInput, B as AGENT_CONTROL_TERMINAL_PROPOSAL_STATUSES, Ba as ProviderDriverKind, Bi as ThreadDeletedPayload$1, Bn as McpProviderCapabilities, Bo as EventId, Br as DEFAULT_PROJECT_METADATA_DIR, Bt as AgentControlMcpProposeProjectCreateInput, C as AGENT_CONTROL_DEVICE_ACTION_KINDS, Ca as SourceControlProviderError, Cn as DeviceUdid, Co as RelayEffectiveRole, Cr as ProviderSteerTurnInput, Ct as AgentControlMcpListThreadsInput, D as AGENT_CONTROL_EXTERNAL_MCP_TOOL_NAMES, Di as ProjectMetaUpdatedPayload$1, Dn as AtlassianCapability, Do as AuthClientMetadataDeviceType, Dr as CONTEXT_HANDOFF_ACTIVITY_KIND, Dt as AgentControlMcpOrchestrationEventsResult, E as AGENT_CONTROL_EXTERNAL_MCP_TOOLS, Ea as VcsDriverKind, Ei as ProjectDeletedPayload$1, En as ThreadPriorityRpcError, Eo as AuthBootstrapInput, Er as AgentTokenMode, Et as AgentControlMcpOperationalReadInput, F as AGENT_CONTROL_MCP_TOOLS, Fi as RuntimeMode, Fn as McpInventoryResource, Fo as AuthSessionId, Fr as ContextHandoffDigest, Ft as AgentControlMcpProposeDeviceInstallInput, G as AgentControlAutomationDefinition, Ga as TerminalCwdError, Gi as ThreadMetaUpdatedPayload$1, Gn as McpServerWritableConfig, Go as ProjectId, Gr as OrchestrationAggregateKind, Gt as AgentControlMcpReadAutomationInput, H as AgentControlActionKind, Ha as defaultInstanceIdForDriver, Hi as ThreadGoalUpdatedPayload$1, Hn as McpServer, Ho as MessageId, Hr as ModelSelection, Ht as AgentControlMcpProposeProjectUpdateInput, I as AGENT_CONTROL_MCP_TOOL_NAMES, Ia as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, Ii as ThreadActivityAppendedPayload$1, In as McpInventoryResourceTemplate, Io as CheckpointRef, Ir as ContextHandoffEndpointSnapshot, It as AgentControlMcpProposeDeviceLaunchInput, J as AgentControlAutomationRunId, Ja as TerminalSessionLookupError, Ji as ThreadRevertedPayload$1, Jn as McpWorkspaceId, Jr as OrchestrationCheckpointSummary, Jt as AgentControlMcpReadDeviceContentInput, K as AgentControlAutomationId, Ka as TerminalHistoryError, Ki as ThreadPriorityProjectedRanking, Kn as McpSettingsError, Kr as OrchestrationCheckpointFile, Kt as AgentControlMcpReadAutomationResult, L as AGENT_CONTROL_MCP_WAIT_TIMEOUT_MS_DEFAULT, La as DEFAULT_GIT_TEXT_GENERATION_OPTIONS_BY_PROVIDER, Li as ThreadArchivedPayload$1, Ln as McpInventoryTool, Lo as CommandId, Lr as ContextHandoffInspectionError, Lt as AgentControlMcpProposeDeviceOpenUrlInput, M as AGENT_CONTROL_MCP_OPERATIONAL_RANGE_MAX_MS, Ma as ThreadPriorityBatchId, Mn as GitCommandError, Mo as ApprovalRequestId, Mr as ChatAttachment, Mt as AgentControlMcpProposeDeviceBootInput, N as AGENT_CONTROL_MCP_OPERATIONAL_RETENTION_MS, Na as ThreadPriorityCandidateId, Ni as ProviderInteractionMode, Nn as GitManagerError, No as AtlassianConnectionId, Nr as ClientOrchestrationCommand, Nt as AgentControlMcpProposeDeviceDetachInput, O as AGENT_CONTROL_EXTERNAL_PAIRING_CODE_TTL_MS, Oa as VcsProcessExitError, Oi as ProjectMetadataDir, On as AtlassianConnectionError, Oo as AuthCreatePairingCredentialInput, Or as CONTEXT_HANDOFF_ERROR_MAX_CHARS, Ot as AgentControlMcpProposeAutomationCancelInput, P as AGENT_CONTROL_MCP_READ_THREAD_TEXT_BUDGET_CHARS, Pa as ThreadPriorityFingerprint, Pi as ProviderSessionRuntimeStatus, Pn as TextGenerationError, Po as AtlassianResourceId, Pr as ContextHandoffActivityPayload, Pt as AgentControlMcpProposeDeviceInputInput, Q as AgentControlExternalIntegration, Qa as DESKTOP_NATIVE_NODE_CLAIM_COMMIT_PATH, Qi as ThreadSettlementOverride, Qn as ServerProviderUpdateError, Qo as ThreadId, Qr as OrchestrationEventMetadata, Qt as AgentControlMcpReadThreadResult, R as AGENT_CONTROL_MCP_WAIT_TIMEOUT_MS_MAX, Ra as DEFAULT_MODEL, Ri as ThreadAttachedToWorktreePayload$1, Rn as McpListServersResult, Ro as ContextHandoffId, Rr as ContextHandoffMode, Rt as AgentControlMcpProposeDeviceRecordingInput, S as AGENT_CONTROL_CAPABILITIES, Si as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Sn as DeviceRpcError, So as RelayChannelId, Sr as ProviderSessionStartInput, St as AgentControlMcpListProjectsResult, T as AGENT_CONTROL_EXTERNAL_CREDENTIAL_AUDIENCE, Ti as ProjectCreatedPayload$1, Tn as ThreadPriorityCandidateRanking, To as RelayProtocolVersion, Tr as ProviderStopSessionInput, Tt as AgentControlMcpMutationResult, U as AgentControlActionPlan, Ua as isProviderDriverKind, Ui as ThreadInteractionModeSetPayload$1, Un as McpServerConfig, Uo as NonNegativeInt, Ur as ORCHESTRATION_WS_METHODS, Ut as AgentControlMcpProposeSettingsChangeInput, V as AGENT_CONTROL_WS_METHODS, Va as ProviderInstanceId, Vi as ThreadGoalClearedPayload$1, Vn as McpProviderSupport, Vo as IsoDateTime, Vr as DEFAULT_PROVIDER_INTERACTION_MODE, Vt as AgentControlMcpProposeProjectRemoveInput, W as AgentControlAutomation, Wi as ThreadMessageSentPayload, Wn as McpServerName, Wo as PositiveInt, Wr as OrchestrationActorKind, Wt as AgentControlMcpProviderRuntimeEventsResult, X as AgentControlExternalCapabilitiesResult, Xa as EDITORS, Xi as ThreadSessionSetPayload$1, Xn as UsageReadError, Xr as OrchestrationDispatchCommandError, Xt as AgentControlMcpReadDeviceStateResult, Y as AgentControlCapability, Ya as TerminalSubscriptionResyncError, Yi as ThreadRuntimeModeSetPayload$1, Yn as OpinionatedPluginError, Yo as RuntimeSessionId, Yr as OrchestrationCommandReceiptStatus, Yt as AgentControlMcpReadDeviceStateInput, Z as AgentControlExternalCreateTaskInput, Za as OpenError, Zi as ThreadSettledPayload$1, Zn as ServerProvider, Zr as OrchestrationEvent, Zt as AgentControlMcpReadThreadInput, _ as ProjectWriteFileError, _a as ThreadGoal, _i as OrchestrationThreadHistoryCursor, _n as AgentControlRpcError, _o as RELAY_MAX_DATA_FRAME_BYTES, _r as isToolLifecycleItemType, _t as AgentControlMcpListAutomationsInput, a as WS_METHODS, aa as TurnDispatchMode, ai as OrchestrationGetWorkflowScriptError, an as AgentControlOperationId, ar as OpenCodeSettings, at as AgentControlIntegrationId, b as AGENT_CONTROL_AUTOMATION_MIN_INTERVAL_MS, ba as WorkItemProviderError, bi as PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES, bn as DEVICE_SWIPE_DURATION_MAX_MS, bo as RELAY_SUPPORTED_VERSION_RANGE, br as ProviderRespondToUserInputInput, bt as AgentControlMcpListDevicesResult, c as WsRpcGroup, ca as WorktreeDeletedPayload$1, ci as OrchestrationProposedPlanId, cn as AgentControlPlanDigest, co as LocalIntroductionCompleteRequest, cr as ThreadEnvMode, ct as AgentControlMcpControlRequestResult, da as WorktreeRestoredPayload$1, di as OrchestrationSession, dn as AgentControlProposal, do as HubEnrollmentStartResult, dr as KeybindingsConfigError, dt as AgentControlMcpDiagnosticsSummaryResult, ea as ThreadTokenModeSetPayload$1, ei as OrchestrationGetFullThreadDiffError, en as AgentControlMcpSendMessageInput, eo as DESKTOP_NATIVE_NODE_CLAIM_MAX_BODY_BYTES, er as CodexSettings, es as TurnId, et as AgentControlExternalProjectScope, f as ProjectListEntriesError, fa as WorktreeSourceControlStateUpdatedPayload$1, fi as OrchestrationSessionStatus, fn as AgentControlProposalId, fo as HubIdentitySummary, fr as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, ft as AgentControlMcpInstallation, g as ProjectStageFileReferenceError, ga as WorktreeId, gi as OrchestrationThreadActivityTone, gn as AgentControlRiskTag, gr as ToolLifecycleItemType, gt as AgentControlMcpListAutomationRunsResult, h as ProjectSearchEntriesError, ha as Worktree, hi as OrchestrationThread, hn as AgentControlResultEnvelope, ho as RELAY_MAX_CONTROL_FRAME_BYTES, hr as RuntimeSubagentStatus, ht as AgentControlMcpListAutomationRunsInput, i as fromLenientJson, ia as ThreadUnsettledPayload$1, ii as OrchestrationGetTurnDiffResult, in as AgentControlOperation, io as LOCAL_INTRODUCTION_COMPLETE_PATH, ir as GrokSettings, it as AgentControlExternalWaitForTaskInput, j as AGENT_CONTROL_MCP_MESSAGE_TEXT_MAX_CHARS, ja as VcsUnsupportedOperationError, ji as ProjectionPendingApprovalStatus, jn as AtlassianProduct, jo as AuthRpcError, jr as CONTEXT_HANDOFF_WS_METHODS, jt as AgentControlMcpProposeDeviceAttachInput, k as AGENT_CONTROL_EXTERNAL_PROPOSAL_TTL_MS, ki as ProjectScript, kn as AtlassianConnectionKind, ko as AuthRevokeClientSessionInput, kr as CONTEXT_HANDOFF_INSPECTION_CHUNK_MAX_BYTES, kt as AgentControlMcpProposeAutomationCreateInput, l as FilesystemBrowseError, la as WorktreeManualPositionSetPayload$1, li as OrchestrationReadModel, ln as AgentControlPrincipal, lo as HubConnectorStatus, lr as KeybindingRule, lt as AgentControlMcpCreateThreadsInput, m as ProjectReadFileError, ma as StatusBucket, mi as OrchestrationStopBackgroundTaskError, mn as AgentControlRequestId, mo as RELAY_FRAME_TYPES, mr as THREAD_JUMP_KEYBINDING_COMMANDS, mt as AgentControlMcpInterruptThreadInput, n as decodeJsonResult, na as ThreadTurnInterruptRequestedPayload$1, ni as OrchestrationGetTaskOutputError, nn as AgentControlMcpUpdateThreadInput, no as DesktopNativeNodeClaimCommitRequest, nr as CursorSettings, nt as AgentControlExternalTaskId, o as WsDeviceRpcGroup, oa as WorktreeArchivedPayload$1, oi as OrchestrationMessage, on as AgentControlOperationState, oo as LOCAL_INTRODUCTION_DESCRIPTOR_PATH, or as ServerSettings, ot as AgentControlMcpCapabilitiesResult, p as ProjectReadFileBinaryError, pa as PullRequestState, pi as OrchestrationShellSnapshot, pn as AgentControlProposalStatus, po as RELAY_AUTHENTICATION_DEADLINE_MS, pr as ResolvedKeybindingRule, pt as AgentControlMcpInstallationId, q as AgentControlAutomationRun, qa as TerminalNotRunningError, qi as ThreadProposedPlanUpsertedPayload$1, qn as McpWorkspace, qr as OrchestrationCheckpointStatus, qt as AgentControlMcpReadControlRequestInput, r as formatSchemaError, ra as ThreadUnarchivedPayload$1, ri as OrchestrationGetTurnDiffError, rn as AgentControlMcpWaitForControlRequestInput, ro as DesktopNativeNodeClaimSignRequest, rr as DEFAULT_SERVER_SETTINGS, rt as AgentControlExternalTaskIdInput, s as WsHostedRpcGroup, sa as WorktreeCreatedPayload$1, si as OrchestrationMessageRole, sn as AgentControlOperationStatus, so as LOCAL_INTRODUCTION_MAX_BODY_BYTES, sr as ServerSettingsError, st as AgentControlMcpContextResult, t as collectUint8StreamText, ta as ThreadTurnDiffCompletedPayload$1, ti as OrchestrationGetSnapshotError, tn as AgentControlMcpSettingsSummaryResult, to as DESKTOP_NATIVE_NODE_CLAIM_SIGN_PATH, tr as CopilotSettings, tt as AgentControlExternalRpcError, u as PROJECT_READ_FILE_BINARY_MAX_BYTES, ua as WorktreeMetaUpdatedPayload$1, ui as OrchestrationReplayEventsError, un as AgentControlPromptSummary, uo as HubEnrollmentCeremonyDetail, ur as KeybindingsConfig, ut as AgentControlMcpDiagnosticsSummaryInput, v as AGENT_CONTROL_ACTION_CAPABILITIES, va as WORK_ITEM_DETAIL_BODY_MAX_BYTES, vi as OrchestrationThreadHistoryError, vn as DEVICE_CAPABILITY_LABELS, vo as RELAY_MAX_RETRY_AFTER_MS, vr as ProviderInterruptTurnInput, vt as AgentControlMcpListAutomationsResult, w as AGENT_CONTROL_ERROR_CODES, wa as SourceControlRepositoryError, wi as ProjectAvatarSetPayload$1, wn as ThreadPriorityBatchSnapshot, wo as RelayFrame, wr as ProviderStopBackgroundTaskInput, wt as AgentControlMcpListThreadsResult, x as AGENT_CONTROL_AUTOMATION_PROPOSAL_TTL_MS, xa as WorkItemProviderKind, xi as PROVIDER_SEND_TURN_MAX_FILE_BYTES, xn as DEVICE_WS_METHODS, xo as RelayCapability, xr as ProviderSendTurnInput, xt as AgentControlMcpListProjectsInput, y as AGENT_CONTROL_AUTOMATION_MAX_HORIZON_MS, ya as WORK_ITEM_DETAIL_COMMENT_BODY_MAX_BYTES, yi as OrchestrationWorktreeShell, yn as DEVICE_FRAME_MAGIC, yo as RELAY_MAX_RPC_MESSAGE_BYTES, yr as ProviderRespondToRequestInput, yt as AgentControlMcpListDevicesInput, z as AGENT_CONTROL_RISK_TAGS, za as MODEL_SLUG_ALIASES_BY_PROVIDER, zi as ThreadCreatedPayload$1, zn as McpOauthLoginResult, zo as EnvironmentId, zr as DEFAULT_AGENT_TOKEN_MODE, zt as AgentControlMcpProposeDeviceShutdownInput } from "./collectUint8StreamText-oFvWyN3_.mjs";
|
|
3
|
+
import { $ as AgentControlExternalOverviewResult, $a as DESKTOP_NATIVE_NODE_CLAIM_COMMIT_PATH, $i as ThreadStatusBucketOverriddenPayload$1, $n as ClaudeSettings, $o as ThreadId, $r as OrchestrationEventType, $t as AgentControlMcpRecentActivityResult, A as AGENT_CONTROL_MCP_AUTOMATION_LIST_PROMPT_MAX_CHARS, Ai as ProjectionPendingApprovalDecision, An as AtlassianConnectionStatus, Ao as AuthRevokeClientSessionInput, At as AgentControlMcpProposeAutomationUpdateInput, B as AGENT_CONTROL_TERMINAL_PROPOSAL_STATUSES, Ba as ModelCapabilities, Bi as ThreadDeletedPayload$1, Bn as McpProviderCapabilities, Bo as EnvironmentId, Br as DEFAULT_PROJECT_METADATA_DIR, Bt as AgentControlMcpProposeProjectCreateInput, C as AGENT_CONTROL_DEVICE_ACTION_KINDS, Ca as SourceControlProviderError, Cn as DeviceUdid, Co as RelayChannelId, Cr as ProviderSteerTurnInput, Ct as AgentControlMcpListThreadsInput, D as AGENT_CONTROL_EXTERNAL_MCP_TOOL_NAMES, Di as ProjectMetaUpdatedPayload$1, Dn as AtlassianCapability, Do as AuthBootstrapInput, Dr as CONTEXT_HANDOFF_ACTIVITY_KIND, Dt as AgentControlMcpOrchestrationEventsResult, E as AGENT_CONTROL_EXTERNAL_MCP_TOOLS, Ea as VcsDriverKind, Ei as ProjectDeletedPayload$1, En as ThreadPriorityRpcError, Eo as RelayProtocolVersion, Er as AgentTokenMode, Et as AgentControlMcpOperationalReadInput, F as AGENT_CONTROL_MCP_TOOLS, Fi as RuntimeMode, Fn as McpInventoryResource, Fo as AtlassianResourceId, Fr as ContextHandoffDigest, Ft as AgentControlMcpProposeDeviceInstallInput, G as AgentControlAutomationDefinition, Gi as ThreadMetaUpdatedPayload$1, Gn as McpServerWritableConfig, Go as PositiveInt, Gr as OrchestrationAggregateKind, Gt as AgentControlMcpReadAutomationInput, H as AgentControlActionKind, Ha as ProviderInstanceId, Hi as ThreadGoalUpdatedPayload$1, Hn as McpServer, Ho as IsoDateTime, Hr as ModelSelection, Ht as AgentControlMcpProposeProjectUpdateInput, I as AGENT_CONTROL_MCP_TOOL_NAMES, Ia as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, Ii as ThreadActivityAppendedPayload$1, In as McpInventoryResourceTemplate, Io as AuthSessionId, Ir as ContextHandoffEndpointSnapshot, It as AgentControlMcpProposeDeviceLaunchInput, J as AgentControlAutomationRunId, Ja as TerminalNotRunningError, Ji as ThreadRevertedPayload$1, Jn as McpWorkspaceId, Jr as OrchestrationCheckpointSummary, Jt as AgentControlMcpReadDeviceContentInput, K as AgentControlAutomationId, Ka as TerminalCwdError, Ki as ThreadPriorityProjectedRanking, Kn as McpSettingsError, Ko as ProjectId, Kr as OrchestrationCheckpointFile, Kt as AgentControlMcpReadAutomationResult, L as AGENT_CONTROL_MCP_WAIT_TIMEOUT_MS_DEFAULT, La as DEFAULT_GIT_TEXT_GENERATION_OPTIONS_BY_PROVIDER, Li as ThreadArchivedPayload$1, Ln as McpInventoryTool, Lo as CheckpointRef, Lr as ContextHandoffInspectionError, Lt as AgentControlMcpProposeDeviceOpenUrlInput, M as AGENT_CONTROL_MCP_OPERATIONAL_RANGE_MAX_MS, Ma as ThreadPriorityBatchId, Mn as GitCommandError, Mo as AuthRpcError, Mr as ChatAttachment, Mt as AgentControlMcpProposeDeviceBootInput, N as AGENT_CONTROL_MCP_OPERATIONAL_RETENTION_MS, Na as ThreadPriorityCandidateId, Ni as ProviderInteractionMode, Nn as GitManagerError, No as ApprovalRequestId, Nr as ClientOrchestrationCommand, Nt as AgentControlMcpProposeDeviceDetachInput, O as AGENT_CONTROL_EXTERNAL_PAIRING_CODE_TTL_MS, Oa as VcsProcessExitError, Oi as ProjectMetadataDir, On as AtlassianConnectionError, Oo as AuthClientMetadataDeviceType, Or as CONTEXT_HANDOFF_ERROR_MAX_CHARS, Ot as AgentControlMcpProposeAutomationCancelInput, P as AGENT_CONTROL_MCP_READ_THREAD_TEXT_BUDGET_CHARS, Pa as ThreadPriorityFingerprint, Pi as ProviderSessionRuntimeStatus, Pn as TextGenerationError, Po as AtlassianConnectionId, Pr as ContextHandoffActivityPayload, Pt as AgentControlMcpProposeDeviceInputInput, Q as AgentControlExternalIntegration, Qa as OpenError, Qi as ThreadSettlementOverride, Qn as ServerProviderUpdateError, Qr as OrchestrationEventMetadata, Qt as AgentControlMcpReadThreadResult, R as AGENT_CONTROL_MCP_WAIT_TIMEOUT_MS_MAX, Ra as DEFAULT_MODEL, Ri as ThreadAttachedToWorktreePayload$1, Rn as McpListServersResult, Ro as CommandId, Rr as ContextHandoffMode, Rt as AgentControlMcpProposeDeviceRecordingInput, S as AGENT_CONTROL_CAPABILITIES, Si as PROVIDER_SEND_TURN_MAX_IMAGE_BYTES, Sn as DeviceRpcError, So as RelayCapability, Sr as ProviderSessionStartInput, St as AgentControlMcpListProjectsResult, T as AGENT_CONTROL_EXTERNAL_CREDENTIAL_AUDIENCE, Ti as ProjectCreatedPayload$1, Tn as ThreadPriorityCandidateRanking, To as RelayFrame, Tr as ProviderStopSessionInput, Tt as AgentControlMcpMutationResult, U as AgentControlActionPlan, Ua as defaultInstanceIdForDriver, Ui as ThreadInteractionModeSetPayload$1, Un as McpServerConfig, Uo as MessageId, Ur as ORCHESTRATION_WS_METHODS, Ut as AgentControlMcpProposeSettingsChangeInput, V as AGENT_CONTROL_WS_METHODS, Va as ProviderDriverKind, Vi as ThreadGoalClearedPayload$1, Vn as McpProviderSupport, Vo as EventId, Vr as DEFAULT_PROVIDER_INTERACTION_MODE, Vt as AgentControlMcpProposeProjectRemoveInput, W as AgentControlAutomation, Wa as isProviderDriverKind, Wi as ThreadMessageSentPayload, Wn as McpServerName, Wo as NonNegativeInt, Wr as OrchestrationActorKind, Wt as AgentControlMcpProviderRuntimeEventsResult, X as AgentControlExternalCapabilitiesResult, Xa as TerminalSubscriptionResyncError, Xi as ThreadSessionSetPayload$1, Xn as UsageReadError, Xo as RuntimeSessionId, Xr as OrchestrationDispatchCommandError, Xt as AgentControlMcpReadDeviceStateResult, Y as AgentControlCapability, Ya as TerminalSessionLookupError, Yi as ThreadRuntimeModeSetPayload$1, Yn as OpinionatedPluginError, Yr as OrchestrationCommandReceiptStatus, Yt as AgentControlMcpReadDeviceStateInput, Z as AgentControlExternalCreateTaskInput, Za as EDITORS, Zi as ThreadSettledPayload$1, Zn as ServerProvider, Zr as OrchestrationEvent, Zt as AgentControlMcpReadThreadInput, _ as ProjectWriteFileError, _a as ThreadGoal, _i as OrchestrationThreadHistoryCursor, _n as AgentControlRpcError, _r as isToolLifecycleItemType, _t as AgentControlMcpListAutomationsInput, a as WS_METHODS, aa as TurnDispatchMode, ai as OrchestrationGetWorkflowScriptError, an as AgentControlOperationId, ao as LOCAL_INTRODUCTION_COMPLETE_PATH, ar as OpenCodeSettings, at as AgentControlIntegrationId, b as AGENT_CONTROL_AUTOMATION_MIN_INTERVAL_MS, ba as WorkItemProviderError, bi as PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES, bn as DEVICE_SWIPE_DURATION_MAX_MS, bo as RELAY_MAX_RPC_MESSAGE_BYTES, br as ProviderRespondToUserInputInput, bt as AgentControlMcpListDevicesResult, c as WsRpcGroup, ca as WorktreeDeletedPayload$1, ci as OrchestrationProposedPlanId, cn as AgentControlPlanDigest, co as LOCAL_INTRODUCTION_MAX_BODY_BYTES, cr as ThreadEnvMode, ct as AgentControlMcpControlRequestResult, da as WorktreeRestoredPayload$1, di as OrchestrationSession, dn as AgentControlProposal, do as HubEnrollmentCeremonyDetail, dr as KeybindingsConfigError, dt as AgentControlMcpDiagnosticsSummaryResult, ea as ThreadTokenModeSetPayload$1, ei as OrchestrationGetFullThreadDiffError, en as AgentControlMcpSendMessageInput, eo as DESKTOP_NATIVE_NODE_CLAIM_DESCRIPTOR_PATH, er as CodexSettings, es as TrimmedNonEmptyString, et as AgentControlExternalProjectScope, f as ProjectListEntriesError, fa as WorktreeSourceControlStateUpdatedPayload$1, fi as OrchestrationSessionStatus, fn as AgentControlProposalId, fo as HubEnrollmentStartResult, fr as MODEL_PICKER_JUMP_KEYBINDING_COMMANDS, ft as AgentControlMcpInstallation, g as ProjectStageFileReferenceError, ga as WorktreeId, gi as OrchestrationThreadActivityTone, gn as AgentControlRiskTag, go as RELAY_MAX_CONTROL_FRAME_BYTES, gr as ToolLifecycleItemType, gt as AgentControlMcpListAutomationRunsResult, h as ProjectSearchEntriesError, ha as Worktree, hi as OrchestrationThread, hn as AgentControlResultEnvelope, ho as RELAY_FRAME_TYPES, hr as RuntimeSubagentStatus, ht as AgentControlMcpListAutomationRunsInput, i as fromLenientJson, ia as ThreadUnsettledPayload$1, ii as OrchestrationGetTurnDiffResult, in as AgentControlOperation, io as DesktopNativeNodeClaimSignRequest, ir as GrokSettings, it as AgentControlExternalWaitForTaskInput, j as AGENT_CONTROL_MCP_MESSAGE_TEXT_MAX_CHARS, ja as VcsUnsupportedOperationError, ji as ProjectionPendingApprovalStatus, jn as AtlassianProduct, jo as AuthRevokePairingLinkInput, jr as CONTEXT_HANDOFF_WS_METHODS, jt as AgentControlMcpProposeDeviceAttachInput, k as AGENT_CONTROL_EXTERNAL_PROPOSAL_TTL_MS, ki as ProjectScript, kn as AtlassianConnectionKind, ko as AuthCreatePairingCredentialInput, kr as CONTEXT_HANDOFF_INSPECTION_CHUNK_MAX_BYTES, kt as AgentControlMcpProposeAutomationCreateInput, l as FilesystemBrowseError, la as WorktreeManualPositionSetPayload$1, li as OrchestrationReadModel, ln as AgentControlPrincipal, lo as LocalIntroductionCompleteRequest, lr as KeybindingRule, lt as AgentControlMcpCreateThreadsInput, m as ProjectReadFileError, ma as StatusBucket, mi as OrchestrationStopBackgroundTaskError, mn as AgentControlRequestId, mo as RELAY_AUTHENTICATION_DEADLINE_MS, mr as THREAD_JUMP_KEYBINDING_COMMANDS, mt as AgentControlMcpInterruptThreadInput, n as decodeJsonResult, na as ThreadTurnInterruptRequestedPayload$1, ni as OrchestrationGetTaskOutputError, nn as AgentControlMcpUpdateThreadInput, no as DESKTOP_NATIVE_NODE_CLAIM_SIGN_PATH, nr as CursorSettings, nt as AgentControlExternalTaskId, o as WsDeviceRpcGroup, oa as WorktreeArchivedPayload$1, oi as OrchestrationMessage, on as AgentControlOperationState, or as ServerSettings, ot as AgentControlMcpCapabilitiesResult, p as ProjectReadFileBinaryError, pa as PullRequestState, pi as OrchestrationShellSnapshot, pn as AgentControlProposalStatus, po as HubIdentitySummary, pr as ResolvedKeybindingRule, pt as AgentControlMcpInstallationId, q as AgentControlAutomationRun, qa as TerminalHistoryError, qi as ThreadProposedPlanUpsertedPayload$1, qn as McpWorkspace, qr as OrchestrationCheckpointStatus, qt as AgentControlMcpReadControlRequestInput, r as formatSchemaError, ra as ThreadUnarchivedPayload$1, ri as OrchestrationGetTurnDiffError, rn as AgentControlMcpWaitForControlRequestInput, ro as DesktopNativeNodeClaimCommitRequest, rr as DEFAULT_SERVER_SETTINGS, rt as AgentControlExternalTaskIdInput, s as WsHostedRpcGroup, sa as WorktreeCreatedPayload$1, si as OrchestrationMessageRole, sn as AgentControlOperationStatus, so as LOCAL_INTRODUCTION_DESCRIPTOR_PATH, sr as ServerSettingsError, st as AgentControlMcpContextResult, t as collectUint8StreamText, ta as ThreadTurnDiffCompletedPayload$1, ti as OrchestrationGetSnapshotError, tn as AgentControlMcpSettingsSummaryResult, to as DESKTOP_NATIVE_NODE_CLAIM_MAX_BODY_BYTES, tr as CopilotSettings, ts as TurnId, tt as AgentControlExternalRpcError, u as PROJECT_READ_FILE_BINARY_MAX_BYTES, ua as WorktreeMetaUpdatedPayload$1, ui as OrchestrationReplayEventsError, un as AgentControlPromptSummary, uo as HubConnectorStatus, ur as KeybindingsConfig, ut as AgentControlMcpDiagnosticsSummaryInput, v as AGENT_CONTROL_ACTION_CAPABILITIES, va as WORK_ITEM_DETAIL_BODY_MAX_BYTES, vi as OrchestrationThreadHistoryError, vn as DEVICE_CAPABILITY_LABELS, vo as RELAY_MAX_DATA_FRAME_BYTES, vr as ProviderInterruptTurnInput, vt as AgentControlMcpListAutomationsResult, w as AGENT_CONTROL_ERROR_CODES, wa as SourceControlRepositoryError, wi as ProjectAvatarSetPayload$1, wn as ThreadPriorityBatchSnapshot, wo as RelayEffectiveRole, wr as ProviderStopBackgroundTaskInput, wt as AgentControlMcpListThreadsResult, x as AGENT_CONTROL_AUTOMATION_PROPOSAL_TTL_MS, xa as WorkItemProviderKind, xi as PROVIDER_SEND_TURN_MAX_FILE_BYTES, xn as DEVICE_WS_METHODS, xo as RELAY_SUPPORTED_VERSION_RANGE, xr as ProviderSendTurnInput, xt as AgentControlMcpListProjectsInput, y as AGENT_CONTROL_AUTOMATION_MAX_HORIZON_MS, ya as WORK_ITEM_DETAIL_COMMENT_BODY_MAX_BYTES, yi as OrchestrationWorktreeShell, yn as DEVICE_FRAME_MAGIC, yo as RELAY_MAX_RETRY_AFTER_MS, yr as ProviderRespondToRequestInput, yt as AgentControlMcpListDevicesInput, z as AGENT_CONTROL_RISK_TAGS, za as MODEL_SLUG_ALIASES_BY_PROVIDER, zi as ThreadCreatedPayload$1, zn as McpOauthLoginResult, zo as ContextHandoffId, zr as DEFAULT_AGENT_TOKEN_MODE, zt as AgentControlMcpProposeDeviceShutdownInput } from "./collectUint8StreamText-BIOBnIzb.mjs";
|
|
4
4
|
import { $ as normalizeGitRemoteUrl, A as runtimeQueueBlockedDuration, B as startupCommandGateQueueHighWater, C as providerStartupQueueHighWater, Ct as decode, D as providerTurnsTotal, E as providerTurnMetricAttributes, Et as Type, F as runtimeQueueHighWater, G as LocalDiagnosticsMetrics, H as terminalRestartsTotal, I as runtimeQueueOverflowsTotal, J as buildTemporaryWorktreeBranchName, K as LocalDiagnosticsMetricsLive, L as runtimeQueueRecoveriesTotal, M as runtimeQueueDepth, N as runtimeQueueDequeuesTotal, O as rpcRequestDuration, P as runtimeQueueEnqueuesTotal, Q as mergeGitStatusParts, R as startupCommandGateEnqueuesTotal, S as providerStartupQueueDepth, St as Tokeniser, T as providerTurnDuration, Tt as rfc8949EncodeOptions, U as terminalSessionsTotal, V as startupCommandGateQueueWaitDuration, W as withMetrics, X as detectSourceControlProviderFromGitRemoteUrl, Y as dedupeRemoteBranchesWithLocalMatches, Z as isTemporaryWorktreeBranch, _ as providerRuntimeEventsTotal, _t as encodeNodeKeyRotationTranscript, a as contextHandoffsTotal, at as DEFAULT_PORT, b as providerStaleStopTimeoutsTotal, bt as formatNodePublicKeyFingerprint, c as increment, ct as deriveServerPaths, d as orchestrationCommandAckDuration, dt as resolveManagedWorktreesRoot, et as resolveAutoFeatureBranchName, f as orchestrationCommandDuration, ft as resolveNodeE2eePolicyConfig, g as providerMetricAttributes, gt as encodeNodeAuthenticationTranscript, h as providerEventLogRecordsDroppedTotal, ht as encodeNativeNodeClaimTranscript, i as contextHandoffPreparationDuration, it as outcomeFromExit, j as runtimeQueueCoalescedTotal, k as rpcRequestsTotal, l as metricAttributes, lt as ensureServerDirectories, m as orchestrationEventsProcessedTotal, mt as canonicalizeHubOrigin, n as contextHandoffContextEntriesTotal, nt as sanitizeFeatureBranchName, o as gitCommandDuration, ot as RuntimeMode$1, p as orchestrationCommandsTotal, pt as resolveStaticDir, q as WORKTREE_BRANCH_PREFIX, r as contextHandoffDispatchDuration, rt as compactTraceAttributes, s as gitCommandsTotal, st as ServerConfig, t as contextHandoffContextBytesTotal, tt as sanitizeBranchFragment, u as metricNames, ut as resolveHubConnectorConfig, v as providerRuntimeStaleEventsTotal, vt as equalNodeIdentityBytes, w as providerStartupQueueWaitDuration, wt as encode, x as providerStartupAdmissionTotal, xt as normalizeHubNodeName, y as providerSessionsTotal, yt as fingerprintNodePublicKey, z as startupCommandGateQueueDepth } from "./Metrics-BP9YjxZB.mjs";
|
|
5
|
-
import { a as makeForgejoDiscovery, c as sourceBranch, d as firstNonEmptyLine, f as probeSourceControlProvider, h as layer$
|
|
5
|
+
import { a as makeForgejoDiscovery, c as sourceBranch, d as firstNonEmptyLine, f as probeSourceControlProvider, h as layer$21, i as makeBitbucketDiscovery, m as VcsProcess, n as githubDiscovery, o as SourceControlProvider, p as refineUnknownRemoteProvider, r as gitlabDiscovery, s as parseSourceControlOwnerRef, t as azureDevOpsDiscovery, u as detailFromCause } from "./SourceControlProviderDiscoveryCatalog-G0HUTo-t.mjs";
|
|
6
6
|
import { n as detectSourceControlProviderFromRemoteUrl, r as getChangeRequestTerminologyForKind } from "./sourceControl-BiEBxN01.mjs";
|
|
7
7
|
import * as NodeRuntime from "@effect/platform-node/NodeRuntime";
|
|
8
8
|
import * as NodeServices from "@effect/platform-node/NodeServices";
|
|
@@ -2802,6 +2802,10 @@ function comparePrereleaseIdentifier(left, right) {
|
|
|
2802
2802
|
if (rightNumeric) return 1;
|
|
2803
2803
|
return left.localeCompare(right);
|
|
2804
2804
|
}
|
|
2805
|
+
/** True when `version` parses as a CLI semver (`major.minor[.patch][-pre]`). */
|
|
2806
|
+
function isParseableCliVersion(version) {
|
|
2807
|
+
return parseCliSemver(version) !== null;
|
|
2808
|
+
}
|
|
2805
2809
|
function compareCliVersions(left, right) {
|
|
2806
2810
|
const parsedLeft = parseCliSemver(left);
|
|
2807
2811
|
const parsedRight = parseCliSemver(right);
|
|
@@ -3156,7 +3160,7 @@ function makeUpdateState(input) {
|
|
|
3156
3160
|
output: input.output ?? null
|
|
3157
3161
|
};
|
|
3158
3162
|
}
|
|
3159
|
-
const make$
|
|
3163
|
+
const make$23 = Effect.fn("ProviderMaintenanceRunner.make")(function* () {
|
|
3160
3164
|
const providerRegistry = yield* ProviderRegistry;
|
|
3161
3165
|
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
3162
3166
|
const httpClient = yield* HttpClient.HttpClient;
|
|
@@ -3268,7 +3272,7 @@ const make$22 = Effect.fn("ProviderMaintenanceRunner.make")(function* () {
|
|
|
3268
3272
|
});
|
|
3269
3273
|
return ProviderMaintenanceRunner.of({ updateProvider });
|
|
3270
3274
|
});
|
|
3271
|
-
const layer$
|
|
3275
|
+
const layer$20 = Layer.effect(ProviderMaintenanceRunner, make$23());
|
|
3272
3276
|
//#endregion
|
|
3273
3277
|
//#region src/persistence/Errors.ts
|
|
3274
3278
|
var PersistenceSqlError = class extends Schema.TaggedError()("PersistenceSqlError", {
|
|
@@ -6279,7 +6283,7 @@ function decodeAzureDevOpsJson(raw, schema, operation, invalidDetail) {
|
|
|
6279
6283
|
cause: error
|
|
6280
6284
|
})));
|
|
6281
6285
|
}
|
|
6282
|
-
const make$
|
|
6286
|
+
const make$22 = Effect.fn("makeAzureDevOpsCli")(function* () {
|
|
6283
6287
|
const process = yield* VcsProcess;
|
|
6284
6288
|
const execute = (input) => process.run({
|
|
6285
6289
|
operation: "AzureDevOpsCli.execute",
|
|
@@ -6527,7 +6531,7 @@ const make$21 = Effect.fn("makeAzureDevOpsCli")(function* () {
|
|
|
6527
6531
|
}
|
|
6528
6532
|
});
|
|
6529
6533
|
});
|
|
6530
|
-
const layer$
|
|
6534
|
+
const layer$19 = Layer.effect(AzureDevOpsCli, make$22());
|
|
6531
6535
|
//#endregion
|
|
6532
6536
|
//#region src/sourceControl/bitbucketIssues.ts
|
|
6533
6537
|
const BitbucketUserSchema$1 = Schema.Struct({
|
|
@@ -6783,7 +6787,7 @@ function normalizedOrigin(value) {
|
|
|
6783
6787
|
return null;
|
|
6784
6788
|
}
|
|
6785
6789
|
}
|
|
6786
|
-
const make$
|
|
6790
|
+
const make$21 = Effect.fn("makeAtlassianConnectionService")(function* () {
|
|
6787
6791
|
const connections = yield* AtlassianConnectionRepository;
|
|
6788
6792
|
const resources = yield* AtlassianResourceRepository;
|
|
6789
6793
|
const projectLinks = yield* ProjectAtlassianLinkRepository;
|
|
@@ -6954,7 +6958,7 @@ const make$20 = Effect.fn("makeAtlassianConnectionService")(function* () {
|
|
|
6954
6958
|
}))
|
|
6955
6959
|
});
|
|
6956
6960
|
});
|
|
6957
|
-
const layer$
|
|
6961
|
+
const layer$18 = Layer.effect(AtlassianConnectionService, make$21());
|
|
6958
6962
|
//#endregion
|
|
6959
6963
|
//#region src/git/remoteRefs.ts
|
|
6960
6964
|
function parseRemoteNamesInGitOrder(stdout) {
|
|
@@ -8673,12 +8677,12 @@ const makeVcsDriver = Effect.fn("makeGitVcsDriver")(function* () {
|
|
|
8673
8677
|
const driver = yield* makeVcsDriverShape();
|
|
8674
8678
|
return VcsDriver.of(driver);
|
|
8675
8679
|
});
|
|
8676
|
-
const make$
|
|
8680
|
+
const make$20 = Effect.fn("makeGitVcsDriverService")(function* () {
|
|
8677
8681
|
const git = yield* makeGitVcsDriverCore();
|
|
8678
8682
|
return GitVcsDriver.of(git);
|
|
8679
8683
|
});
|
|
8680
8684
|
Layer.effect(VcsDriver, makeVcsDriver());
|
|
8681
|
-
const layer$
|
|
8685
|
+
const layer$17 = Layer.effect(GitVcsDriver, make$20());
|
|
8682
8686
|
//#endregion
|
|
8683
8687
|
//#region src/vcs/VcsProjectConfig.ts
|
|
8684
8688
|
const ProjectVcsConfig = Schema.Struct({
|
|
@@ -8697,7 +8701,7 @@ function parseConfig(raw) {
|
|
|
8697
8701
|
return null;
|
|
8698
8702
|
}
|
|
8699
8703
|
}
|
|
8700
|
-
const make$
|
|
8704
|
+
const make$19 = Effect.fn("makeVcsProjectConfig")(function* () {
|
|
8701
8705
|
const fileSystem = yield* FileSystem.FileSystem;
|
|
8702
8706
|
const path = yield* Path.Path;
|
|
8703
8707
|
const findConfigPath = Effect.fn("VcsProjectConfig.findConfigPath")(function* (cwd) {
|
|
@@ -8731,7 +8735,7 @@ const make$18 = Effect.fn("makeVcsProjectConfig")(function* () {
|
|
|
8731
8735
|
});
|
|
8732
8736
|
return VcsProjectConfig.of({ resolveKind });
|
|
8733
8737
|
});
|
|
8734
|
-
const layer$
|
|
8738
|
+
const layer$16 = Layer.effect(VcsProjectConfig, make$19());
|
|
8735
8739
|
//#endregion
|
|
8736
8740
|
//#region src/vcs/VcsDriverRegistry.ts
|
|
8737
8741
|
const DETECTION_CACHE_CAPACITY = 2048;
|
|
@@ -8756,7 +8760,7 @@ function parseDetectionCacheKey(key) {
|
|
|
8756
8760
|
cwd: key.slice(separatorIndex + 1)
|
|
8757
8761
|
};
|
|
8758
8762
|
}
|
|
8759
|
-
const make$
|
|
8763
|
+
const make$18 = Effect.fn("makeVcsDriverRegistry")(function* () {
|
|
8760
8764
|
const projectConfig = yield* VcsProjectConfig;
|
|
8761
8765
|
const git = yield* makeVcsDriverShape();
|
|
8762
8766
|
const drivers = { git };
|
|
@@ -8805,7 +8809,7 @@ const make$17 = Effect.fn("makeVcsDriverRegistry")(function* () {
|
|
|
8805
8809
|
resolve
|
|
8806
8810
|
});
|
|
8807
8811
|
});
|
|
8808
|
-
const layer$
|
|
8812
|
+
const layer$15 = Layer.effect(VcsDriverRegistry, make$18()).pipe(Layer.provide(layer$16));
|
|
8809
8813
|
//#endregion
|
|
8810
8814
|
//#region src/sourceControl/BitbucketApi.ts
|
|
8811
8815
|
const DEFAULT_API_BASE_URL = "https://api.bitbucket.org/2.0";
|
|
@@ -9129,7 +9133,7 @@ function responseError$2(operation, response) {
|
|
|
9129
9133
|
detail: body.trim().length > 0 ? `Bitbucket returned HTTP ${response.status}: ${body.trim()}` : `Bitbucket returned HTTP ${response.status}.`
|
|
9130
9134
|
}))));
|
|
9131
9135
|
}
|
|
9132
|
-
const make$
|
|
9136
|
+
const make$17 = Effect.fn("makeBitbucketApi")(function* () {
|
|
9133
9137
|
const config = yield* BitbucketApiEnvConfig;
|
|
9134
9138
|
const atlassianConnections = yield* AtlassianConnectionRepository;
|
|
9135
9139
|
const secretStore = yield* ServerSecretStore;
|
|
@@ -9470,7 +9474,7 @@ const make$16 = Effect.fn("makeBitbucketApi")(function* () {
|
|
|
9470
9474
|
}
|
|
9471
9475
|
});
|
|
9472
9476
|
});
|
|
9473
|
-
const layer$
|
|
9477
|
+
const layer$14 = Layer.effect(BitbucketApi, make$17());
|
|
9474
9478
|
//#endregion
|
|
9475
9479
|
//#region src/sourceControl/forgejoIssues.ts
|
|
9476
9480
|
const ForgejoUserSchema = Schema.Struct({
|
|
@@ -9991,7 +9995,7 @@ function responseError$1(operation, response) {
|
|
|
9991
9995
|
detail: body.trim().length > 0 ? `Forgejo returned HTTP ${response.status}: ${body.trim()}` : `Forgejo returned HTTP ${response.status}.`
|
|
9992
9996
|
}))));
|
|
9993
9997
|
}
|
|
9994
|
-
const make$
|
|
9998
|
+
const make$16 = Effect.fn("makeForgejoApi")(function* () {
|
|
9995
9999
|
const config = yield* ForgejoApiEnvConfig;
|
|
9996
10000
|
const httpClient = yield* HttpClient.HttpClient;
|
|
9997
10001
|
const fileSystem = yield* FileSystem.FileSystem;
|
|
@@ -10288,7 +10292,7 @@ const make$15 = Effect.fn("makeForgejoApi")(function* () {
|
|
|
10288
10292
|
}
|
|
10289
10293
|
});
|
|
10290
10294
|
});
|
|
10291
|
-
const layer$
|
|
10295
|
+
const layer$13 = Layer.effect(ForgejoApi, make$16());
|
|
10292
10296
|
//#endregion
|
|
10293
10297
|
//#region src/sourceControl/gitHubReactions.ts
|
|
10294
10298
|
const RawGitHubReactionGroupSchema = Schema.Struct({
|
|
@@ -11422,7 +11426,7 @@ function mergeCommentReactionGroups(comments, groups) {
|
|
|
11422
11426
|
};
|
|
11423
11427
|
});
|
|
11424
11428
|
}
|
|
11425
|
-
const make$
|
|
11429
|
+
const make$15 = Effect.fn("makeGitHubCli")(function* () {
|
|
11426
11430
|
const process = yield* VcsProcess;
|
|
11427
11431
|
const execute = (input) => process.run({
|
|
11428
11432
|
operation: "GitHubCli.execute",
|
|
@@ -12003,7 +12007,7 @@ const make$14 = Effect.fn("makeGitHubCli")(function* () {
|
|
|
12003
12007
|
}), { normalizeWorkflowRerunErrors: true }).pipe(Effect.asVoid)
|
|
12004
12008
|
});
|
|
12005
12009
|
});
|
|
12006
|
-
const layer$
|
|
12010
|
+
const layer$12 = Layer.effect(GitHubCli, make$15());
|
|
12007
12011
|
//#endregion
|
|
12008
12012
|
//#region src/sourceControl/gitLabIssues.ts
|
|
12009
12013
|
const GitLabIssueSchema = Schema.Struct({
|
|
@@ -12295,7 +12299,7 @@ function parseRepositoryPath(repository) {
|
|
|
12295
12299
|
projectPath
|
|
12296
12300
|
};
|
|
12297
12301
|
}
|
|
12298
|
-
const make$
|
|
12302
|
+
const make$14 = Effect.fn("makeGitLabCli")(function* () {
|
|
12299
12303
|
const process = yield* VcsProcess;
|
|
12300
12304
|
const execute = (input) => process.run({
|
|
12301
12305
|
operation: "GitLabCli.execute",
|
|
@@ -12503,7 +12507,7 @@ const make$13 = Effect.fn("makeGitLabCli")(function* () {
|
|
|
12503
12507
|
})
|
|
12504
12508
|
});
|
|
12505
12509
|
});
|
|
12506
|
-
const layer$
|
|
12510
|
+
const layer$11 = Layer.effect(GitLabCli, make$14());
|
|
12507
12511
|
//#endregion
|
|
12508
12512
|
//#region src/sourceControl/SourceControlProviderRegistry.ts
|
|
12509
12513
|
const PROVIDER_DETECTION_CACHE_CAPACITY = 2048;
|
|
@@ -12819,7 +12823,7 @@ const makeWithProviders = Effect.fn("makeSourceControlProviderRegistryWithProvid
|
|
|
12819
12823
|
})), { concurrency: "unbounded" })
|
|
12820
12824
|
});
|
|
12821
12825
|
});
|
|
12822
|
-
const make$
|
|
12826
|
+
const make$13 = Effect.fn("makeSourceControlProviderRegistry")(function* () {
|
|
12823
12827
|
const githubCli = yield* GitHubCli;
|
|
12824
12828
|
const gitlabCli = yield* GitLabCli;
|
|
12825
12829
|
const bitbucketApi = yield* BitbucketApi;
|
|
@@ -12827,26 +12831,26 @@ const make$12 = Effect.fn("makeSourceControlProviderRegistry")(function* () {
|
|
|
12827
12831
|
const azureDevOpsCli = yield* AzureDevOpsCli;
|
|
12828
12832
|
const fileSystem = yield* FileSystem.FileSystem;
|
|
12829
12833
|
const github = yield* makeLazyProvider("github", Effect.tryPromise({
|
|
12830
|
-
try: () => import("./GitHubSourceControlProvider-
|
|
12834
|
+
try: () => import("./GitHubSourceControlProvider-CwSuSyD7.mjs"),
|
|
12831
12835
|
catch: (cause) => providerLoadError("github", cause)
|
|
12832
12836
|
}).pipe(Effect.flatMap((module) => module.make()), Effect.provideService(GitHubCli, githubCli), Effect.provideService(FileSystem.FileSystem, fileSystem)));
|
|
12833
12837
|
const gitlab = yield* makeLazyProvider("gitlab", Effect.tryPromise({
|
|
12834
|
-
try: () => import("./GitLabSourceControlProvider-
|
|
12838
|
+
try: () => import("./GitLabSourceControlProvider-BzOAAREX.mjs"),
|
|
12835
12839
|
catch: (cause) => providerLoadError("gitlab", cause)
|
|
12836
12840
|
}).pipe(Effect.flatMap((module) => module.make()), Effect.provideService(GitLabCli, gitlabCli)));
|
|
12837
12841
|
const bitbucket = yield* makeLazyProvider("bitbucket", Effect.tryPromise({
|
|
12838
|
-
try: () => import("./BitbucketSourceControlProvider-
|
|
12842
|
+
try: () => import("./BitbucketSourceControlProvider-BMaa5G9E.mjs"),
|
|
12839
12843
|
catch: (cause) => providerLoadError("bitbucket", cause)
|
|
12840
12844
|
}).pipe(Effect.flatMap((module) => module.make()), Effect.provideService(BitbucketApi, bitbucketApi)), {
|
|
12841
12845
|
searchRepositories: true,
|
|
12842
12846
|
cloneAuthentication: true
|
|
12843
12847
|
});
|
|
12844
12848
|
const forgejo = yield* makeLazyProvider("forgejo", Effect.tryPromise({
|
|
12845
|
-
try: () => import("./ForgejoSourceControlProvider-
|
|
12849
|
+
try: () => import("./ForgejoSourceControlProvider-BjJmvo0h.mjs"),
|
|
12846
12850
|
catch: (cause) => providerLoadError("forgejo", cause)
|
|
12847
12851
|
}).pipe(Effect.flatMap((module) => module.make()), Effect.provideService(ForgejoApi, forgejoApi)));
|
|
12848
12852
|
const azureDevOps = yield* makeLazyProvider("azure-devops", Effect.tryPromise({
|
|
12849
|
-
try: () => import("./AzureDevOpsSourceControlProvider-
|
|
12853
|
+
try: () => import("./AzureDevOpsSourceControlProvider-B_rxsveN.mjs"),
|
|
12850
12854
|
catch: (cause) => providerLoadError("azure-devops", cause)
|
|
12851
12855
|
}).pipe(Effect.flatMap((module) => module.make()), Effect.provideService(AzureDevOpsCli, azureDevOpsCli)));
|
|
12852
12856
|
const bitbucketDiscovery = makeBitbucketDiscovery(bitbucketApi);
|
|
@@ -12880,7 +12884,7 @@ const make$12 = Effect.fn("makeSourceControlProviderRegistry")(function* () {
|
|
|
12880
12884
|
}
|
|
12881
12885
|
]);
|
|
12882
12886
|
});
|
|
12883
|
-
const layer$
|
|
12887
|
+
const layer$10 = Layer.effect(SourceControlProviderRegistry, make$13());
|
|
12884
12888
|
//#endregion
|
|
12885
12889
|
//#region src/sourceControl/SourceControlDiscovery.ts
|
|
12886
12890
|
const VCS_PROBES = [{
|
|
@@ -12901,7 +12905,7 @@ const VCS_PROBES = [{
|
|
|
12901
12905
|
const DISCOVERY_CACHE_KEY = "source-control-discovery";
|
|
12902
12906
|
const SOURCE_CONTROL_DISCOVERY_CACHE_TTL = Duration.seconds(5);
|
|
12903
12907
|
var SourceControlDiscovery = class extends Context.Service()("ryco/source-control/SourceControlDiscovery") {};
|
|
12904
|
-
const layer$
|
|
12908
|
+
const layer$9 = Layer.effect(SourceControlDiscovery, Effect.gen(function* () {
|
|
12905
12909
|
const config = yield* ServerConfig;
|
|
12906
12910
|
const process = yield* VcsProcess;
|
|
12907
12911
|
const sourceControlProviders = yield* SourceControlProviderRegistry;
|
|
@@ -31702,7 +31706,7 @@ const makeTerminationError = (handle) => Effect$1.match(handle.exitCode, {
|
|
|
31702
31706
|
//#endregion
|
|
31703
31707
|
//#region ../../packages/effect-codex-app-server/src/client.ts
|
|
31704
31708
|
var CodexAppServerClient = class extends Context$1.Service()("effect-codex-app-server/CodexAppServerClient") {};
|
|
31705
|
-
const make$
|
|
31709
|
+
const make$12 = Effect$1.fn("effect-codex-app-server/CodexAppServerClient.make")(function* (stdio, options = {}, terminationError) {
|
|
31706
31710
|
const requestHandlers = /* @__PURE__ */ new Map();
|
|
31707
31711
|
const notificationHandlers = /* @__PURE__ */ new Map();
|
|
31708
31712
|
let unknownRequestHandler;
|
|
@@ -31769,7 +31773,7 @@ const make$11 = Effect$1.fn("effect-codex-app-server/CodexAppServerClient.make")
|
|
|
31769
31773
|
const layerChildProcess = (handle, options = {}) => {
|
|
31770
31774
|
const stdio = makeChildStdio(handle);
|
|
31771
31775
|
const terminationError = makeTerminationError(handle);
|
|
31772
|
-
return Layer$1.effect(CodexAppServerClient, make$
|
|
31776
|
+
return Layer$1.effect(CodexAppServerClient, make$12(stdio, options, terminationError));
|
|
31773
31777
|
};
|
|
31774
31778
|
const layerCommand = (options) => Layer$1.effect(CodexAppServerClient, Effect$1.acquireRelease(Effect$1.gen(function* () {
|
|
31775
31779
|
const spawner = yield* ChildProcessSpawner.ChildProcessSpawner;
|
|
@@ -31785,7 +31789,7 @@ const layerCommand = (options) => Layer$1.effect(CodexAppServerClient, Effect$1.
|
|
|
31785
31789
|
command: [options.command, ...options.args ?? []].join(" "),
|
|
31786
31790
|
cause
|
|
31787
31791
|
})));
|
|
31788
|
-
}), (handle) => handle.kill().pipe(Effect$1.orDie)).pipe(Effect$1.flatMap((handle) => make$
|
|
31792
|
+
}), (handle) => handle.kill().pipe(Effect$1.orDie)).pipe(Effect$1.flatMap((handle) => make$12(makeChildStdio(handle), options, makeTerminationError(handle)))));
|
|
31789
31793
|
//#endregion
|
|
31790
31794
|
//#region src/processRunner.ts
|
|
31791
31795
|
function commandLabel(command, args) {
|
|
@@ -33300,7 +33304,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33300
33304
|
configSchema: CodexSettings,
|
|
33301
33305
|
defaultConfig: () => Schema.decodeSync(CodexSettings)({}),
|
|
33302
33306
|
create: (input) => Effect.tryPromise({
|
|
33303
|
-
try: () => import("./CodexDriver-
|
|
33307
|
+
try: () => import("./CodexDriver-pMXV4cdE.mjs"),
|
|
33304
33308
|
catch: (cause) => driverImportError(codexDriverKind, input, cause)
|
|
33305
33309
|
}).pipe(Effect.flatMap(({ CodexDriver }) => CodexDriver.create(input)))
|
|
33306
33310
|
},
|
|
@@ -33314,7 +33318,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33314
33318
|
configSchema: ClaudeSettings,
|
|
33315
33319
|
defaultConfig: () => Schema.decodeSync(ClaudeSettings)({}),
|
|
33316
33320
|
create: (input) => Effect.tryPromise({
|
|
33317
|
-
try: () => import("./ClaudeDriver-
|
|
33321
|
+
try: () => import("./ClaudeDriver-QCXWLMlT.mjs"),
|
|
33318
33322
|
catch: (cause) => driverImportError(claudeDriverKind, input, cause)
|
|
33319
33323
|
}).pipe(Effect.flatMap(({ ClaudeDriver }) => ClaudeDriver.create(input)))
|
|
33320
33324
|
},
|
|
@@ -33328,7 +33332,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33328
33332
|
configSchema: CopilotSettings,
|
|
33329
33333
|
defaultConfig: () => Schema.decodeSync(CopilotSettings)({}),
|
|
33330
33334
|
create: (input) => Effect.tryPromise({
|
|
33331
|
-
try: () => import("./CopilotDriver-
|
|
33335
|
+
try: () => import("./CopilotDriver-B313kdfE.mjs"),
|
|
33332
33336
|
catch: (cause) => driverImportError(copilotDriverKind, input, cause)
|
|
33333
33337
|
}).pipe(Effect.flatMap(({ CopilotDriver }) => CopilotDriver.create(input)))
|
|
33334
33338
|
},
|
|
@@ -33342,7 +33346,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33342
33346
|
configSchema: CursorSettings,
|
|
33343
33347
|
defaultConfig: () => Schema.decodeSync(CursorSettings)({}),
|
|
33344
33348
|
create: (input) => Effect.tryPromise({
|
|
33345
|
-
try: () => import("./CursorDriver-
|
|
33349
|
+
try: () => import("./CursorDriver-DtCq_M54.mjs"),
|
|
33346
33350
|
catch: (cause) => driverImportError(cursorDriverKind, input, cause)
|
|
33347
33351
|
}).pipe(Effect.flatMap(({ CursorDriver }) => CursorDriver.create(input)))
|
|
33348
33352
|
},
|
|
@@ -33356,7 +33360,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33356
33360
|
configSchema: GrokSettings,
|
|
33357
33361
|
defaultConfig: () => Schema.decodeSync(GrokSettings)({}),
|
|
33358
33362
|
create: (input) => Effect.tryPromise({
|
|
33359
|
-
try: () => import("./GrokDriver-
|
|
33363
|
+
try: () => import("./GrokDriver-4ZUx36Bj.mjs"),
|
|
33360
33364
|
catch: (cause) => driverImportError(grokDriverKind, input, cause)
|
|
33361
33365
|
}).pipe(Effect.flatMap(({ GrokDriver }) => GrokDriver.create(input)))
|
|
33362
33366
|
},
|
|
@@ -33370,7 +33374,7 @@ const BUILT_IN_DRIVERS = [
|
|
|
33370
33374
|
configSchema: OpenCodeSettings,
|
|
33371
33375
|
defaultConfig: () => Schema.decodeSync(OpenCodeSettings)({}),
|
|
33372
33376
|
create: (input) => Effect.tryPromise({
|
|
33373
|
-
try: () => import("./OpenCodeDriver-
|
|
33377
|
+
try: () => import("./OpenCodeDriver-CmoacKRC.mjs"),
|
|
33374
33378
|
catch: (cause) => driverImportError(openCodeDriverKind, input, cause)
|
|
33375
33379
|
}).pipe(Effect.flatMap(({ OpenCodeDriver }) => OpenCodeDriver.create(input)))
|
|
33376
33380
|
}
|
|
@@ -34085,7 +34089,7 @@ const scopedSafeTeardown = (label) => (effect) => Effect.gen(function* () {
|
|
|
34085
34089
|
});
|
|
34086
34090
|
//#endregion
|
|
34087
34091
|
//#region package.json
|
|
34088
|
-
var version$
|
|
34092
|
+
var version$2 = "0.1.19";
|
|
34089
34093
|
//#endregion
|
|
34090
34094
|
//#region src/provider/Layers/CodexProvider.ts
|
|
34091
34095
|
const PROVIDER_PROBE_TIMEOUT_MS = 8e3;
|
|
@@ -34255,7 +34259,7 @@ function buildCodexInitializeParams() {
|
|
|
34255
34259
|
clientInfo: {
|
|
34256
34260
|
name: "ryco_desktop",
|
|
34257
34261
|
title: "Ryco Desktop",
|
|
34258
|
-
version: version$
|
|
34262
|
+
version: version$2
|
|
34259
34263
|
},
|
|
34260
34264
|
capabilities: { experimentalApi: true }
|
|
34261
34265
|
};
|
|
@@ -37457,7 +37461,7 @@ const launchDetached = (launch) => Effect.gen(function* () {
|
|
|
37457
37461
|
}))));
|
|
37458
37462
|
});
|
|
37459
37463
|
});
|
|
37460
|
-
const make$
|
|
37464
|
+
const make$11 = Effect.gen(function* () {
|
|
37461
37465
|
const open = yield* Effect.tryPromise({
|
|
37462
37466
|
try: () => import("open"),
|
|
37463
37467
|
catch: (cause) => new OpenError({
|
|
@@ -37476,7 +37480,7 @@ const make$10 = Effect.gen(function* () {
|
|
|
37476
37480
|
openInEditor: (input) => Effect.flatMap(resolveEditorLaunch(input), launchDetached)
|
|
37477
37481
|
};
|
|
37478
37482
|
});
|
|
37479
|
-
const OpenLive = Layer.effect(Open, make$
|
|
37483
|
+
const OpenLive = Layer.effect(Open, make$11);
|
|
37480
37484
|
//#endregion
|
|
37481
37485
|
//#region src/orchestration/Services/OrchestrationEngine.ts
|
|
37482
37486
|
/**
|
|
@@ -40951,7 +40955,7 @@ const makeTextGenerationFromRegistry = (registry) => ({
|
|
|
40951
40955
|
generateIssueContent: (input) => resolveInstance(registry, "generateIssueContent", input.modelSelection.instanceId).pipe(Effect.flatMap((textGeneration) => textGeneration.generateIssueContent(input))),
|
|
40952
40956
|
rankInboxThreads: (input) => resolveInstance(registry, "rankInboxThreads", input.modelSelection.instanceId).pipe(Effect.flatMap((textGeneration) => textGeneration.rankInboxThreads(input)))
|
|
40953
40957
|
});
|
|
40954
|
-
const layer$
|
|
40958
|
+
const layer$8 = Layer.effect(TextGeneration, Effect.gen(function* () {
|
|
40955
40959
|
const registry = yield* ProviderInstanceRegistry;
|
|
40956
40960
|
return makeTextGenerationFromRegistry(registry);
|
|
40957
40961
|
}));
|
|
@@ -42076,7 +42080,7 @@ const makeGitManager = Effect.fn("makeGitManager")(function* () {
|
|
|
42076
42080
|
})
|
|
42077
42081
|
};
|
|
42078
42082
|
});
|
|
42079
|
-
const layer$
|
|
42083
|
+
const layer$7 = Layer.effect(GitManager, makeGitManager());
|
|
42080
42084
|
//#endregion
|
|
42081
42085
|
//#region src/git/GitWorkflowService.ts
|
|
42082
42086
|
var GitWorkflowService = class extends Context.Service()("ryco/git/GitWorkflowService") {};
|
|
@@ -42123,7 +42127,7 @@ function nonRepositoryListRefs() {
|
|
|
42123
42127
|
totalCount: 0
|
|
42124
42128
|
};
|
|
42125
42129
|
}
|
|
42126
|
-
const make$
|
|
42130
|
+
const make$10 = Effect.fn("makeGitWorkflowService")(function* () {
|
|
42127
42131
|
const registry = yield* VcsDriverRegistry;
|
|
42128
42132
|
const git = yield* GitVcsDriver;
|
|
42129
42133
|
const gitManager = yield* GitManager;
|
|
@@ -42178,7 +42182,7 @@ const make$9 = Effect.fn("makeGitWorkflowService")(function* () {
|
|
|
42178
42182
|
renameBranch: (input) => ensureGit("GitWorkflowService.renameBranch", input.cwd).pipe(Effect.andThen(git.renameBranch(input)))
|
|
42179
42183
|
});
|
|
42180
42184
|
});
|
|
42181
|
-
const layer$
|
|
42185
|
+
const layer$6 = Layer.effect(GitWorkflowService, make$10());
|
|
42182
42186
|
//#endregion
|
|
42183
42187
|
//#region src/vcs/VcsStatusBroadcaster.ts
|
|
42184
42188
|
const DEFAULT_VCS_STATUS_REFRESH_INTERVAL = Duration.seconds(30);
|
|
@@ -42202,7 +42206,7 @@ function remoteRefreshFailureDelay(consecutiveFailures, configuredInterval) {
|
|
|
42202
42206
|
const cappedBackoff = Duration.min(Duration.millis(backoffMs), VCS_STATUS_REFRESH_FAILURE_MAX_DELAY);
|
|
42203
42207
|
return Duration.max(configuredInterval, cappedBackoff);
|
|
42204
42208
|
}
|
|
42205
|
-
const layer$
|
|
42209
|
+
const layer$5 = Layer.effect(VcsStatusBroadcaster, Effect.gen(function* () {
|
|
42206
42210
|
const workflow = yield* GitWorkflowService;
|
|
42207
42211
|
const changesPubSub = yield* Effect.acquireRelease(PubSub.sliding(64), (pubsub) => PubSub.shutdown(pubsub));
|
|
42208
42212
|
const broadcasterScope = yield* Effect.acquireRelease(Scope.make(), (scope) => Scope.close(scope, Exit.void));
|
|
@@ -42412,7 +42416,7 @@ function resolveRequestedKind(kind) {
|
|
|
42412
42416
|
}));
|
|
42413
42417
|
return Effect.succeed(kind);
|
|
42414
42418
|
}
|
|
42415
|
-
const make$
|
|
42419
|
+
const make$9 = Effect.fn("makeVcsProvisioningService")(function* () {
|
|
42416
42420
|
const registry = yield* VcsDriverRegistry;
|
|
42417
42421
|
const initRepository = Effect.fn("VcsProvisioningService.initRepository")(function* (input) {
|
|
42418
42422
|
const kind = yield* resolveRequestedKind(input.kind);
|
|
@@ -42420,7 +42424,7 @@ const make$8 = Effect.fn("makeVcsProvisioningService")(function* () {
|
|
|
42420
42424
|
});
|
|
42421
42425
|
return VcsProvisioningService.of({ initRepository });
|
|
42422
42426
|
});
|
|
42423
|
-
const layer$
|
|
42427
|
+
const layer$4 = Layer.effect(VcsProvisioningService, make$9());
|
|
42424
42428
|
//#endregion
|
|
42425
42429
|
//#region src/project/Services/RepositoryIdentityResolver.ts
|
|
42426
42430
|
var RepositoryIdentityResolver = class extends Context.Service()("ryco/project/Services/RepositoryIdentityResolver") {};
|
|
@@ -42667,7 +42671,7 @@ function removeUrlCredentials(remoteUrl) {
|
|
|
42667
42671
|
return remoteUrl;
|
|
42668
42672
|
}
|
|
42669
42673
|
}
|
|
42670
|
-
const make$
|
|
42674
|
+
const make$8 = Effect.fn("makeSourceControlRepositoryService")(function* () {
|
|
42671
42675
|
const config = yield* ServerConfig;
|
|
42672
42676
|
const fileSystem = yield* FileSystem.FileSystem;
|
|
42673
42677
|
const git = yield* GitVcsDriver;
|
|
@@ -42912,7 +42916,7 @@ const make$7 = Effect.fn("makeSourceControlRepositoryService")(function* () {
|
|
|
42912
42916
|
publishRepository: (input) => publishRepository(input).pipe(mapRepositoryError("publishRepository", input.provider))
|
|
42913
42917
|
});
|
|
42914
42918
|
});
|
|
42915
|
-
const layer$
|
|
42919
|
+
const layer$3 = Layer.effect(SourceControlRepositoryService, make$8());
|
|
42916
42920
|
//#endregion
|
|
42917
42921
|
//#region src/auth/Services/BootstrapCredentialService.ts
|
|
42918
42922
|
var BootstrapCredentialError = class extends Data.TaggedError("BootstrapCredentialError") {};
|
|
@@ -43432,7 +43436,7 @@ function mapActivity(changelog) {
|
|
|
43432
43436
|
return mapped;
|
|
43433
43437
|
}).filter((entry) => entry.items.length > 0);
|
|
43434
43438
|
}
|
|
43435
|
-
const make$
|
|
43439
|
+
const make$7 = Effect.fn("makeJiraWorkItemService")(function* () {
|
|
43436
43440
|
const connections = yield* AtlassianConnectionRepository;
|
|
43437
43441
|
const projectLinks = yield* ProjectAtlassianLinkRepository;
|
|
43438
43442
|
const secretStore = yield* ServerSecretStore;
|
|
@@ -43688,7 +43692,7 @@ const make$6 = Effect.fn("makeJiraWorkItemService")(function* () {
|
|
|
43688
43692
|
})
|
|
43689
43693
|
});
|
|
43690
43694
|
});
|
|
43691
|
-
const layer$
|
|
43695
|
+
const layer$2 = Layer.effect(JiraWorkItemService, make$7());
|
|
43692
43696
|
//#endregion
|
|
43693
43697
|
//#region src/remote/Services/AdvertisedEndpointRegistry.ts
|
|
43694
43698
|
var AdvertisedEndpointRegistry = class extends Context.Service()("ryco/remote/Services/AdvertisedEndpointRegistry") {};
|
|
@@ -49487,7 +49491,7 @@ const makeContextHandoffRepository = Effect.gen(function* () {
|
|
|
49487
49491
|
const ContextHandoffRepositoryLive = Layer.effect(ContextHandoffRepository, makeContextHandoffRepository);
|
|
49488
49492
|
//#endregion
|
|
49489
49493
|
//#region src/ws.ts
|
|
49490
|
-
const makeServerWsRpcLayer = (principal) => makeWsRpcLayer(principal).pipe(Layer.provide(ContextHandoffInspectionLive.pipe(Layer.provide(ContextHandoffRepositoryLive), Layer.provide(layerConfig))), Layer.provideMerge(RpcSerialization.layerJson), Layer.provide(layer$
|
|
49494
|
+
const makeServerWsRpcLayer = (principal) => makeWsRpcLayer(principal).pipe(Layer.provide(ContextHandoffInspectionLive.pipe(Layer.provide(ContextHandoffRepositoryLive), Layer.provide(layerConfig))), Layer.provideMerge(RpcSerialization.layerJson), Layer.provide(layer$20), Layer.provide(layer$9.pipe(Layer.provide(layer$10.pipe(Layer.provide(Layer.mergeAll(layer$19, layer$14, layer$13, layer$12, layer$11)), Layer.provideMerge(AtlassianConnectionRepositoryLive), Layer.provideMerge(layerConfig), Layer.provide(ServerSecretStoreLive), Layer.provideMerge(layer$17), Layer.provide(layer$15.pipe(Layer.provide(layer$16))))), Layer.provide(layer$21))));
|
|
49491
49495
|
const websocketRpcRouteLayer = Layer.unwrap(Effect.succeed(HttpRouter.add("GET", "/ws", Effect.gen(function* () {
|
|
49492
49496
|
const request = yield* HttpServerRequest.HttpServerRequest;
|
|
49493
49497
|
const serverAuth = yield* ServerAuth;
|
|
@@ -70969,7 +70973,7 @@ var RelaySendQueue = class {
|
|
|
70969
70973
|
* *is* the negotiated version of every channel on the connection, and a contract
|
|
70970
70974
|
* bump moves both together instead of leaving a stale literal behind.
|
|
70971
70975
|
*/
|
|
70972
|
-
const version = {
|
|
70976
|
+
const version$1 = {
|
|
70973
70977
|
protocolMajor: 1,
|
|
70974
70978
|
protocolMinor: 2
|
|
70975
70979
|
};
|
|
@@ -71091,7 +71095,7 @@ var RelayChannelRegistry = class {
|
|
|
71091
71095
|
entry.graceFrames = 0;
|
|
71092
71096
|
this.#enqueueControl({
|
|
71093
71097
|
type: "flow.resume",
|
|
71094
|
-
...version,
|
|
71098
|
+
...version$1,
|
|
71095
71099
|
channelId: entry.channelId
|
|
71096
71100
|
});
|
|
71097
71101
|
}
|
|
@@ -71152,7 +71156,7 @@ var RelayChannelRegistry = class {
|
|
|
71152
71156
|
try {
|
|
71153
71157
|
if (options.notifyPeer ?? reason !== void 0) this.#enqueueControl({
|
|
71154
71158
|
type: "channel.close",
|
|
71155
|
-
...version,
|
|
71159
|
+
...version$1,
|
|
71156
71160
|
channelId,
|
|
71157
71161
|
...reason === void 0 ? {} : { reason }
|
|
71158
71162
|
});
|
|
@@ -71260,7 +71264,7 @@ var RelayChannelRegistry = class {
|
|
|
71260
71264
|
if (this.#stopping || frame.capability !== "ryco.rpc" || frame.effectiveRole === void 0 || this.#channels.size + this.#preparing.size >= this.#limits.maxChannels || this.#channels.has(key) || this.#preparing.has(key)) {
|
|
71261
71265
|
this.#enqueueControl({
|
|
71262
71266
|
type: "channel.reject",
|
|
71263
|
-
...version,
|
|
71267
|
+
...version$1,
|
|
71264
71268
|
channelId: frame.channelId,
|
|
71265
71269
|
reason: this.#stopping ? "server_draining" : "channel_rejected"
|
|
71266
71270
|
});
|
|
@@ -71283,7 +71287,7 @@ var RelayChannelRegistry = class {
|
|
|
71283
71287
|
if (prepared.kind === "error") return this.#refuse(frame.channelId, prepared.reason, options);
|
|
71284
71288
|
if (!this.#sendQueue.enqueueDataBatch(prepared.payloads.map((payload, index) => ({
|
|
71285
71289
|
type: "data",
|
|
71286
|
-
...version,
|
|
71290
|
+
...version$1,
|
|
71287
71291
|
channelId: frame.channelId,
|
|
71288
71292
|
sequence: outputSequence + index,
|
|
71289
71293
|
payload: Uint8Array.from(payload)
|
|
@@ -71319,7 +71323,7 @@ var RelayChannelRegistry = class {
|
|
|
71319
71323
|
channelId: frame.channelId,
|
|
71320
71324
|
capability: frame.capability,
|
|
71321
71325
|
effectiveRole: role,
|
|
71322
|
-
...version,
|
|
71326
|
+
...version$1,
|
|
71323
71327
|
connection: this.#connection,
|
|
71324
71328
|
send,
|
|
71325
71329
|
admit,
|
|
@@ -71347,7 +71351,7 @@ var RelayChannelRegistry = class {
|
|
|
71347
71351
|
this.#channels.set(key, entry);
|
|
71348
71352
|
this.#enqueueControl({
|
|
71349
71353
|
type: "channel.accept",
|
|
71350
|
-
...version,
|
|
71354
|
+
...version$1,
|
|
71351
71355
|
channelId: frame.channelId
|
|
71352
71356
|
});
|
|
71353
71357
|
} catch (error) {
|
|
@@ -71358,7 +71362,7 @@ var RelayChannelRegistry = class {
|
|
|
71358
71362
|
}
|
|
71359
71363
|
this.#enqueueControl({
|
|
71360
71364
|
type: "channel.reject",
|
|
71361
|
-
...version,
|
|
71365
|
+
...version$1,
|
|
71362
71366
|
channelId: frame.channelId,
|
|
71363
71367
|
reason: this.#stopping ? "server_draining" : "channel_rejected"
|
|
71364
71368
|
});
|
|
@@ -71408,7 +71412,7 @@ var RelayChannelRegistry = class {
|
|
|
71408
71412
|
entry.graceFrames = 0;
|
|
71409
71413
|
this.#enqueueControl({
|
|
71410
71414
|
type: "flow.pause",
|
|
71411
|
-
...version,
|
|
71415
|
+
...version$1,
|
|
71412
71416
|
channelId: frame.channelId
|
|
71413
71417
|
});
|
|
71414
71418
|
}
|
|
@@ -75385,7 +75389,7 @@ const makeAnalyticsService = Effect.gen(function* () {
|
|
|
75385
75389
|
platform: process.platform,
|
|
75386
75390
|
wsl: process.env.WSL_DISTRO_NAME,
|
|
75387
75391
|
arch: process.arch,
|
|
75388
|
-
rycoVersion: version$
|
|
75392
|
+
rycoVersion: version$2,
|
|
75389
75393
|
clientType
|
|
75390
75394
|
},
|
|
75391
75395
|
timestamp: event.capturedAt
|
|
@@ -75852,17 +75856,42 @@ var AsyncRotatingFileSink = class {
|
|
|
75852
75856
|
function isMissingFileError(error) {
|
|
75853
75857
|
return typeof error === "object" && error !== null && "code" in error && error.code === "ENOENT";
|
|
75854
75858
|
}
|
|
75855
|
-
|
|
75856
|
-
//#region src/provider/Layers/EventNdjsonLogger.ts
|
|
75859
|
+
const EVENT_LOG_FILE_PATTERN = /\.log(?:\.\d+)?$/;
|
|
75857
75860
|
/**
|
|
75858
|
-
*
|
|
75859
|
-
*
|
|
75860
|
-
*
|
|
75861
|
-
*
|
|
75862
|
-
* downgraded to warnings so provider runtime behavior is unaffected.
|
|
75861
|
+
* Best-effort deletion of `*.log` / `*.log.N` files in `directory` whose
|
|
75862
|
+
* mtime is older than the retention window. Returns the number of files
|
|
75863
|
+
* removed. Never fails: unreadable directories or races with rotation are
|
|
75864
|
+
* downgraded to a warning / skipped file.
|
|
75863
75865
|
*/
|
|
75866
|
+
const sweepStaleEventLogs = Effect.fn("sweepStaleEventLogs")(function* (directory, options) {
|
|
75867
|
+
const maxAgeMs = options?.maxAgeMs ?? 2592e6;
|
|
75868
|
+
const cutoffMs = (options?.now ?? Date.now()) - maxAgeMs;
|
|
75869
|
+
const removed = yield* Effect.tryPromise(async () => {
|
|
75870
|
+
const entries = await fs.promises.readdir(directory, { withFileTypes: true });
|
|
75871
|
+
let count = 0;
|
|
75872
|
+
for (const entry of entries) {
|
|
75873
|
+
if (!entry.isFile() || !EVENT_LOG_FILE_PATTERN.test(entry.name)) continue;
|
|
75874
|
+
const filePath = path.join(directory, entry.name);
|
|
75875
|
+
try {
|
|
75876
|
+
if ((await fs.promises.stat(filePath)).mtimeMs < cutoffMs) {
|
|
75877
|
+
await fs.promises.unlink(filePath);
|
|
75878
|
+
count += 1;
|
|
75879
|
+
}
|
|
75880
|
+
} catch {}
|
|
75881
|
+
}
|
|
75882
|
+
return count;
|
|
75883
|
+
}).pipe(Effect.catch((error) => logWarning("failed to sweep stale provider event logs", {
|
|
75884
|
+
directory,
|
|
75885
|
+
error
|
|
75886
|
+
}).pipe(Effect.as(0))));
|
|
75887
|
+
if (removed > 0) yield* Effect.logInfo("swept stale provider event logs", {
|
|
75888
|
+
directory,
|
|
75889
|
+
removed
|
|
75890
|
+
}).pipe(Effect.annotateLogs({ scope: LOG_SCOPE }));
|
|
75891
|
+
return removed;
|
|
75892
|
+
});
|
|
75864
75893
|
const DEFAULT_MAX_BYTES = 10485760;
|
|
75865
|
-
const DEFAULT_MAX_FILES =
|
|
75894
|
+
const DEFAULT_MAX_FILES = 3;
|
|
75866
75895
|
const DEFAULT_BATCH_WINDOW_MS = 200;
|
|
75867
75896
|
const DEFAULT_MAX_QUEUE_SIZE = 2048;
|
|
75868
75897
|
const GLOBAL_THREAD_SEGMENT = "_global";
|
|
@@ -76068,8 +76097,9 @@ const makeEventNdjsonLogger = Effect.fn("makeEventNdjsonLogger")(function* (file
|
|
|
76068
76097
|
if (state.failedSegments.has(threadSegment)) return Effect.succeed([void 0, state]);
|
|
76069
76098
|
const existing = state.threadWriters.get(threadSegment);
|
|
76070
76099
|
if (existing) return Effect.succeed([existing, state]);
|
|
76100
|
+
const streamSuffix = options.stream === "native" ? ".native" : "";
|
|
76071
76101
|
return makeThreadWriter({
|
|
76072
|
-
filePath: path.join(path.dirname(filePath), `${threadSegment}.log`),
|
|
76102
|
+
filePath: path.join(path.dirname(filePath), `${threadSegment}${streamSuffix}.log`),
|
|
76073
76103
|
maxBytes,
|
|
76074
76104
|
maxFiles,
|
|
76075
76105
|
batchWindowMs,
|
|
@@ -76162,12 +76192,868 @@ var ProviderEventLoggers = class extends Context.Service()("ryco/provider/Provid
|
|
|
76162
76192
|
*/
|
|
76163
76193
|
const ProviderEventLoggersLive = Layer.effect(ProviderEventLoggers, Effect.gen(function* () {
|
|
76164
76194
|
const { providerEventLogPath } = yield* ServerConfig;
|
|
76195
|
+
yield* Effect.forkScoped(sweepStaleEventLogs(path.dirname(providerEventLogPath)));
|
|
76165
76196
|
return {
|
|
76166
76197
|
native: yield* makeEventNdjsonLogger(providerEventLogPath, { stream: "native" }),
|
|
76167
76198
|
canonical: yield* makeEventNdjsonLogger(providerEventLogPath, { stream: "canonical" })
|
|
76168
76199
|
};
|
|
76169
76200
|
}));
|
|
76170
76201
|
//#endregion
|
|
76202
|
+
//#region src/provider/ClaudeModelManifest.ts
|
|
76203
|
+
/**
|
|
76204
|
+
* ClaudeModelManifest — allowlisted adapter payloads for the Claude entries
|
|
76205
|
+
* of `model-manifest.json`.
|
|
76206
|
+
*
|
|
76207
|
+
* The generic manifest treats `adapter` fields as opaque; this module gives
|
|
76208
|
+
* them a Claude-specific shape:
|
|
76209
|
+
*
|
|
76210
|
+
* - profile adapters carry runtime behavior shared by models on a profile
|
|
76211
|
+
* (CLI effort remapping, api-model-id suffixes, context-window token
|
|
76212
|
+
* tables — the token tables are currently unused by Ryco, which reads
|
|
76213
|
+
* window sizes from runtime usage events, but stay in the format so the
|
|
76214
|
+
* file remains interchangeable with upstream t3code manifests);
|
|
76215
|
+
* - model adapters carry Claude Code CLI version compatibility gates.
|
|
76216
|
+
*
|
|
76217
|
+
* Ported from pingdotgg/t3code (PR #9084), adapted to Ryco's CLI-version
|
|
76218
|
+
* helpers.
|
|
76219
|
+
*/
|
|
76220
|
+
const ClaudeCodeProfileSchema = Schema.Struct({
|
|
76221
|
+
/**
|
|
76222
|
+
* Maps a resolved effort selection onto the value passed to the Claude CLI.
|
|
76223
|
+
* `null` means "pass no effort flag" for that selection.
|
|
76224
|
+
*/
|
|
76225
|
+
effortMap: Schema.optional(Schema.Record(TrimmedNonEmptyString, Schema.NullOr(TrimmedNonEmptyString))),
|
|
76226
|
+
/** Per-option-value api-model-id suffixes, e.g. `{ contextWindow: { "1m": "[1m]" } }`. */
|
|
76227
|
+
modelSuffixes: Schema.optional(Schema.Record(TrimmedNonEmptyString, Schema.Record(TrimmedNonEmptyString, TrimmedNonEmptyString))),
|
|
76228
|
+
contextWindowTokens: Schema.optional(Schema.Record(TrimmedNonEmptyString, Schema.Number)),
|
|
76229
|
+
fixedContextWindowTokens: Schema.optional(Schema.Number)
|
|
76230
|
+
});
|
|
76231
|
+
const ClaudeProfileAdapterSchema = Schema.Struct({ claudeCode: Schema.optional(ClaudeCodeProfileSchema) });
|
|
76232
|
+
const ClaudeVersionSchema = TrimmedNonEmptyString.pipe(Schema.check(Schema.makeFilter((version) => isParseableCliVersion(version), { expected: "a supported semantic version" })));
|
|
76233
|
+
const ClaudeCodeCompatibilitySchema = Schema.Struct({
|
|
76234
|
+
minVersion: Schema.optional(ClaudeVersionSchema),
|
|
76235
|
+
maxVersionExclusive: Schema.optional(ClaudeVersionSchema)
|
|
76236
|
+
}).pipe(Schema.check(Schema.makeFilter(({ minVersion, maxVersionExclusive }) => minVersion === void 0 || maxVersionExclusive === void 0 || compareCliVersions(minVersion, maxVersionExclusive) < 0, { expected: "a minimum version below the exclusive maximum version" })));
|
|
76237
|
+
const ClaudeModelAdapterSchema = Schema.Struct({ claudeCode: Schema.optional(ClaudeCodeCompatibilitySchema) });
|
|
76238
|
+
const decodeClaudeProfileAdapter = Schema.decodeUnknownOption(ClaudeProfileAdapterSchema);
|
|
76239
|
+
const decodeClaudeModelAdapter = Schema.decodeUnknownOption(ClaudeModelAdapterSchema);
|
|
76240
|
+
/**
|
|
76241
|
+
* Manifest-level validation hook: a manifest whose Claude adapter payloads do
|
|
76242
|
+
* not decode is rejected wholesale, so a bad remote edit falls back to the
|
|
76243
|
+
* bundled manifest instead of silently dropping runtime behavior.
|
|
76244
|
+
*/
|
|
76245
|
+
function hasValidClaudeManifestAdapters(manifest) {
|
|
76246
|
+
const catalog = manifest.providers?.claudeAgent;
|
|
76247
|
+
if (!catalog) return true;
|
|
76248
|
+
return Object.values(catalog.profiles).every((profile) => Option.isSome(decodeClaudeProfileAdapter(profile.adapter ?? {}))) && catalog.models.every((model) => Option.isSome(decodeClaudeModelAdapter(model.adapter ?? {})));
|
|
76249
|
+
}
|
|
76250
|
+
//#endregion
|
|
76251
|
+
//#region src/provider/model-manifest.json
|
|
76252
|
+
var model_manifest_default = {
|
|
76253
|
+
version: 1,
|
|
76254
|
+
currentModels: {
|
|
76255
|
+
"codex": [
|
|
76256
|
+
"gpt-5.6-luna",
|
|
76257
|
+
"gpt-5.6-terra",
|
|
76258
|
+
"gpt-5.6-sol"
|
|
76259
|
+
],
|
|
76260
|
+
"claudeAgent": [
|
|
76261
|
+
"claude-fable-5-1",
|
|
76262
|
+
"claude-opus-5",
|
|
76263
|
+
"claude-sonnet-5"
|
|
76264
|
+
]
|
|
76265
|
+
},
|
|
76266
|
+
providers: { "claudeAgent": {
|
|
76267
|
+
"defaults": { "chat": "claude-opus-5" },
|
|
76268
|
+
"profiles": {
|
|
76269
|
+
"fable-5-1": {
|
|
76270
|
+
"capabilities": { "optionDescriptors": [{
|
|
76271
|
+
"id": "effort",
|
|
76272
|
+
"label": "Reasoning",
|
|
76273
|
+
"type": "select",
|
|
76274
|
+
"options": [
|
|
76275
|
+
{
|
|
76276
|
+
"id": "low",
|
|
76277
|
+
"label": "Low"
|
|
76278
|
+
},
|
|
76279
|
+
{
|
|
76280
|
+
"id": "medium",
|
|
76281
|
+
"label": "Medium"
|
|
76282
|
+
},
|
|
76283
|
+
{
|
|
76284
|
+
"id": "high",
|
|
76285
|
+
"label": "High",
|
|
76286
|
+
"isDefault": true
|
|
76287
|
+
},
|
|
76288
|
+
{
|
|
76289
|
+
"id": "xhigh",
|
|
76290
|
+
"label": "Extra High"
|
|
76291
|
+
},
|
|
76292
|
+
{
|
|
76293
|
+
"id": "max",
|
|
76294
|
+
"label": "Max"
|
|
76295
|
+
},
|
|
76296
|
+
{
|
|
76297
|
+
"id": "ultracode",
|
|
76298
|
+
"label": "Ultracode"
|
|
76299
|
+
},
|
|
76300
|
+
{
|
|
76301
|
+
"id": "ultrathink",
|
|
76302
|
+
"label": "Ultrathink"
|
|
76303
|
+
}
|
|
76304
|
+
],
|
|
76305
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76306
|
+
}, {
|
|
76307
|
+
"id": "contextWindow",
|
|
76308
|
+
"label": "Context Window",
|
|
76309
|
+
"type": "select",
|
|
76310
|
+
"options": [{
|
|
76311
|
+
"id": "200k",
|
|
76312
|
+
"label": "200k"
|
|
76313
|
+
}, {
|
|
76314
|
+
"id": "1m",
|
|
76315
|
+
"label": "1M",
|
|
76316
|
+
"isDefault": true
|
|
76317
|
+
}]
|
|
76318
|
+
}] },
|
|
76319
|
+
"adapter": { "claudeCode": {
|
|
76320
|
+
"effortMap": {
|
|
76321
|
+
"ultracode": "xhigh",
|
|
76322
|
+
"ultrathink": null
|
|
76323
|
+
},
|
|
76324
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76325
|
+
"contextWindowTokens": {
|
|
76326
|
+
"200k": 2e5,
|
|
76327
|
+
"1m": 1e6
|
|
76328
|
+
}
|
|
76329
|
+
} }
|
|
76330
|
+
},
|
|
76331
|
+
"fable-5": {
|
|
76332
|
+
"capabilities": { "optionDescriptors": [{
|
|
76333
|
+
"id": "effort",
|
|
76334
|
+
"label": "Reasoning",
|
|
76335
|
+
"type": "select",
|
|
76336
|
+
"options": [
|
|
76337
|
+
{
|
|
76338
|
+
"id": "low",
|
|
76339
|
+
"label": "Low"
|
|
76340
|
+
},
|
|
76341
|
+
{
|
|
76342
|
+
"id": "medium",
|
|
76343
|
+
"label": "Medium"
|
|
76344
|
+
},
|
|
76345
|
+
{
|
|
76346
|
+
"id": "high",
|
|
76347
|
+
"label": "High",
|
|
76348
|
+
"isDefault": true
|
|
76349
|
+
},
|
|
76350
|
+
{
|
|
76351
|
+
"id": "xhigh",
|
|
76352
|
+
"label": "Extra High"
|
|
76353
|
+
},
|
|
76354
|
+
{
|
|
76355
|
+
"id": "max",
|
|
76356
|
+
"label": "Max"
|
|
76357
|
+
},
|
|
76358
|
+
{
|
|
76359
|
+
"id": "ultracode",
|
|
76360
|
+
"label": "Ultracode"
|
|
76361
|
+
},
|
|
76362
|
+
{
|
|
76363
|
+
"id": "ultrathink",
|
|
76364
|
+
"label": "Ultrathink"
|
|
76365
|
+
}
|
|
76366
|
+
],
|
|
76367
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76368
|
+
}] },
|
|
76369
|
+
"adapter": { "claudeCode": {
|
|
76370
|
+
"effortMap": {
|
|
76371
|
+
"ultracode": "xhigh",
|
|
76372
|
+
"ultrathink": null
|
|
76373
|
+
},
|
|
76374
|
+
"fixedContextWindowTokens": 1e6
|
|
76375
|
+
} }
|
|
76376
|
+
},
|
|
76377
|
+
"opus-5": {
|
|
76378
|
+
"capabilities": { "optionDescriptors": [
|
|
76379
|
+
{
|
|
76380
|
+
"id": "effort",
|
|
76381
|
+
"label": "Reasoning",
|
|
76382
|
+
"type": "select",
|
|
76383
|
+
"options": [
|
|
76384
|
+
{
|
|
76385
|
+
"id": "low",
|
|
76386
|
+
"label": "Low"
|
|
76387
|
+
},
|
|
76388
|
+
{
|
|
76389
|
+
"id": "medium",
|
|
76390
|
+
"label": "Medium"
|
|
76391
|
+
},
|
|
76392
|
+
{
|
|
76393
|
+
"id": "high",
|
|
76394
|
+
"label": "High",
|
|
76395
|
+
"isDefault": true
|
|
76396
|
+
},
|
|
76397
|
+
{
|
|
76398
|
+
"id": "xhigh",
|
|
76399
|
+
"label": "Extra High"
|
|
76400
|
+
},
|
|
76401
|
+
{
|
|
76402
|
+
"id": "max",
|
|
76403
|
+
"label": "Max"
|
|
76404
|
+
},
|
|
76405
|
+
{
|
|
76406
|
+
"id": "ultracode",
|
|
76407
|
+
"label": "Ultracode"
|
|
76408
|
+
},
|
|
76409
|
+
{
|
|
76410
|
+
"id": "ultrathink",
|
|
76411
|
+
"label": "Ultrathink"
|
|
76412
|
+
}
|
|
76413
|
+
],
|
|
76414
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76415
|
+
},
|
|
76416
|
+
{
|
|
76417
|
+
"id": "fastMode",
|
|
76418
|
+
"label": "Fast Mode",
|
|
76419
|
+
"type": "boolean"
|
|
76420
|
+
},
|
|
76421
|
+
{
|
|
76422
|
+
"id": "contextWindow",
|
|
76423
|
+
"label": "Context Window",
|
|
76424
|
+
"type": "select",
|
|
76425
|
+
"options": [{
|
|
76426
|
+
"id": "200k",
|
|
76427
|
+
"label": "200k"
|
|
76428
|
+
}, {
|
|
76429
|
+
"id": "1m",
|
|
76430
|
+
"label": "1M",
|
|
76431
|
+
"isDefault": true
|
|
76432
|
+
}]
|
|
76433
|
+
}
|
|
76434
|
+
] },
|
|
76435
|
+
"adapter": { "claudeCode": {
|
|
76436
|
+
"effortMap": {
|
|
76437
|
+
"ultracode": "xhigh",
|
|
76438
|
+
"ultrathink": null
|
|
76439
|
+
},
|
|
76440
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76441
|
+
"contextWindowTokens": {
|
|
76442
|
+
"200k": 2e5,
|
|
76443
|
+
"1m": 1e6
|
|
76444
|
+
}
|
|
76445
|
+
} }
|
|
76446
|
+
},
|
|
76447
|
+
"opus-4-8": {
|
|
76448
|
+
"capabilities": { "optionDescriptors": [
|
|
76449
|
+
{
|
|
76450
|
+
"id": "effort",
|
|
76451
|
+
"label": "Reasoning",
|
|
76452
|
+
"type": "select",
|
|
76453
|
+
"options": [
|
|
76454
|
+
{
|
|
76455
|
+
"id": "low",
|
|
76456
|
+
"label": "Low"
|
|
76457
|
+
},
|
|
76458
|
+
{
|
|
76459
|
+
"id": "medium",
|
|
76460
|
+
"label": "Medium"
|
|
76461
|
+
},
|
|
76462
|
+
{
|
|
76463
|
+
"id": "high",
|
|
76464
|
+
"label": "High",
|
|
76465
|
+
"isDefault": true
|
|
76466
|
+
},
|
|
76467
|
+
{
|
|
76468
|
+
"id": "xhigh",
|
|
76469
|
+
"label": "Extra High"
|
|
76470
|
+
},
|
|
76471
|
+
{
|
|
76472
|
+
"id": "max",
|
|
76473
|
+
"label": "Max"
|
|
76474
|
+
},
|
|
76475
|
+
{
|
|
76476
|
+
"id": "ultracode",
|
|
76477
|
+
"label": "Ultracode"
|
|
76478
|
+
},
|
|
76479
|
+
{
|
|
76480
|
+
"id": "ultrathink",
|
|
76481
|
+
"label": "Ultrathink"
|
|
76482
|
+
}
|
|
76483
|
+
],
|
|
76484
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76485
|
+
},
|
|
76486
|
+
{
|
|
76487
|
+
"id": "fastMode",
|
|
76488
|
+
"label": "Fast Mode",
|
|
76489
|
+
"type": "boolean"
|
|
76490
|
+
},
|
|
76491
|
+
{
|
|
76492
|
+
"id": "contextWindow",
|
|
76493
|
+
"label": "Context Window",
|
|
76494
|
+
"type": "select",
|
|
76495
|
+
"options": [{
|
|
76496
|
+
"id": "200k",
|
|
76497
|
+
"label": "200k",
|
|
76498
|
+
"isDefault": true
|
|
76499
|
+
}, {
|
|
76500
|
+
"id": "1m",
|
|
76501
|
+
"label": "1M"
|
|
76502
|
+
}]
|
|
76503
|
+
}
|
|
76504
|
+
] },
|
|
76505
|
+
"adapter": { "claudeCode": {
|
|
76506
|
+
"effortMap": {
|
|
76507
|
+
"ultracode": "xhigh",
|
|
76508
|
+
"ultrathink": null
|
|
76509
|
+
},
|
|
76510
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76511
|
+
"contextWindowTokens": {
|
|
76512
|
+
"200k": 2e5,
|
|
76513
|
+
"1m": 1e6
|
|
76514
|
+
}
|
|
76515
|
+
} }
|
|
76516
|
+
},
|
|
76517
|
+
"opus-4-7": {
|
|
76518
|
+
"capabilities": { "optionDescriptors": [
|
|
76519
|
+
{
|
|
76520
|
+
"id": "effort",
|
|
76521
|
+
"label": "Reasoning",
|
|
76522
|
+
"type": "select",
|
|
76523
|
+
"options": [
|
|
76524
|
+
{
|
|
76525
|
+
"id": "low",
|
|
76526
|
+
"label": "Low"
|
|
76527
|
+
},
|
|
76528
|
+
{
|
|
76529
|
+
"id": "medium",
|
|
76530
|
+
"label": "Medium"
|
|
76531
|
+
},
|
|
76532
|
+
{
|
|
76533
|
+
"id": "high",
|
|
76534
|
+
"label": "High"
|
|
76535
|
+
},
|
|
76536
|
+
{
|
|
76537
|
+
"id": "xhigh",
|
|
76538
|
+
"label": "Extra High",
|
|
76539
|
+
"isDefault": true
|
|
76540
|
+
},
|
|
76541
|
+
{
|
|
76542
|
+
"id": "max",
|
|
76543
|
+
"label": "Max"
|
|
76544
|
+
},
|
|
76545
|
+
{
|
|
76546
|
+
"id": "ultrathink",
|
|
76547
|
+
"label": "Ultrathink"
|
|
76548
|
+
}
|
|
76549
|
+
],
|
|
76550
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76551
|
+
},
|
|
76552
|
+
{
|
|
76553
|
+
"id": "fastMode",
|
|
76554
|
+
"label": "Fast Mode",
|
|
76555
|
+
"type": "boolean"
|
|
76556
|
+
},
|
|
76557
|
+
{
|
|
76558
|
+
"id": "contextWindow",
|
|
76559
|
+
"label": "Context Window",
|
|
76560
|
+
"type": "select",
|
|
76561
|
+
"options": [{
|
|
76562
|
+
"id": "200k",
|
|
76563
|
+
"label": "200k",
|
|
76564
|
+
"isDefault": true
|
|
76565
|
+
}, {
|
|
76566
|
+
"id": "1m",
|
|
76567
|
+
"label": "1M"
|
|
76568
|
+
}]
|
|
76569
|
+
}
|
|
76570
|
+
] },
|
|
76571
|
+
"adapter": { "claudeCode": {
|
|
76572
|
+
"effortMap": { "ultrathink": null },
|
|
76573
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76574
|
+
"contextWindowTokens": {
|
|
76575
|
+
"200k": 2e5,
|
|
76576
|
+
"1m": 1e6
|
|
76577
|
+
}
|
|
76578
|
+
} }
|
|
76579
|
+
},
|
|
76580
|
+
"opus-4-6": {
|
|
76581
|
+
"capabilities": { "optionDescriptors": [
|
|
76582
|
+
{
|
|
76583
|
+
"id": "effort",
|
|
76584
|
+
"label": "Reasoning",
|
|
76585
|
+
"type": "select",
|
|
76586
|
+
"options": [
|
|
76587
|
+
{
|
|
76588
|
+
"id": "low",
|
|
76589
|
+
"label": "Low"
|
|
76590
|
+
},
|
|
76591
|
+
{
|
|
76592
|
+
"id": "medium",
|
|
76593
|
+
"label": "Medium"
|
|
76594
|
+
},
|
|
76595
|
+
{
|
|
76596
|
+
"id": "high",
|
|
76597
|
+
"label": "High",
|
|
76598
|
+
"isDefault": true
|
|
76599
|
+
},
|
|
76600
|
+
{
|
|
76601
|
+
"id": "max",
|
|
76602
|
+
"label": "Max"
|
|
76603
|
+
},
|
|
76604
|
+
{
|
|
76605
|
+
"id": "ultrathink",
|
|
76606
|
+
"label": "Ultrathink"
|
|
76607
|
+
}
|
|
76608
|
+
],
|
|
76609
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76610
|
+
},
|
|
76611
|
+
{
|
|
76612
|
+
"id": "fastMode",
|
|
76613
|
+
"label": "Fast Mode",
|
|
76614
|
+
"type": "boolean"
|
|
76615
|
+
},
|
|
76616
|
+
{
|
|
76617
|
+
"id": "contextWindow",
|
|
76618
|
+
"label": "Context Window",
|
|
76619
|
+
"type": "select",
|
|
76620
|
+
"options": [{
|
|
76621
|
+
"id": "200k",
|
|
76622
|
+
"label": "200k",
|
|
76623
|
+
"isDefault": true
|
|
76624
|
+
}, {
|
|
76625
|
+
"id": "1m",
|
|
76626
|
+
"label": "1M"
|
|
76627
|
+
}]
|
|
76628
|
+
}
|
|
76629
|
+
] },
|
|
76630
|
+
"adapter": { "claudeCode": {
|
|
76631
|
+
"effortMap": { "ultrathink": null },
|
|
76632
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76633
|
+
"contextWindowTokens": {
|
|
76634
|
+
"200k": 2e5,
|
|
76635
|
+
"1m": 1e6
|
|
76636
|
+
}
|
|
76637
|
+
} }
|
|
76638
|
+
},
|
|
76639
|
+
"opus-4-5": {
|
|
76640
|
+
"capabilities": { "optionDescriptors": [{
|
|
76641
|
+
"id": "effort",
|
|
76642
|
+
"label": "Reasoning",
|
|
76643
|
+
"type": "select",
|
|
76644
|
+
"options": [
|
|
76645
|
+
{
|
|
76646
|
+
"id": "low",
|
|
76647
|
+
"label": "Low"
|
|
76648
|
+
},
|
|
76649
|
+
{
|
|
76650
|
+
"id": "medium",
|
|
76651
|
+
"label": "Medium"
|
|
76652
|
+
},
|
|
76653
|
+
{
|
|
76654
|
+
"id": "high",
|
|
76655
|
+
"label": "High",
|
|
76656
|
+
"isDefault": true
|
|
76657
|
+
},
|
|
76658
|
+
{
|
|
76659
|
+
"id": "max",
|
|
76660
|
+
"label": "Max"
|
|
76661
|
+
}
|
|
76662
|
+
]
|
|
76663
|
+
}] },
|
|
76664
|
+
"adapter": { "claudeCode": {} }
|
|
76665
|
+
},
|
|
76666
|
+
"sonnet-5": {
|
|
76667
|
+
"capabilities": { "optionDescriptors": [{
|
|
76668
|
+
"id": "effort",
|
|
76669
|
+
"label": "Reasoning",
|
|
76670
|
+
"type": "select",
|
|
76671
|
+
"options": [
|
|
76672
|
+
{
|
|
76673
|
+
"id": "low",
|
|
76674
|
+
"label": "Low"
|
|
76675
|
+
},
|
|
76676
|
+
{
|
|
76677
|
+
"id": "medium",
|
|
76678
|
+
"label": "Medium"
|
|
76679
|
+
},
|
|
76680
|
+
{
|
|
76681
|
+
"id": "high",
|
|
76682
|
+
"label": "High",
|
|
76683
|
+
"isDefault": true
|
|
76684
|
+
},
|
|
76685
|
+
{
|
|
76686
|
+
"id": "xhigh",
|
|
76687
|
+
"label": "Extra High"
|
|
76688
|
+
},
|
|
76689
|
+
{
|
|
76690
|
+
"id": "max",
|
|
76691
|
+
"label": "Max"
|
|
76692
|
+
},
|
|
76693
|
+
{
|
|
76694
|
+
"id": "ultrathink",
|
|
76695
|
+
"label": "Ultrathink"
|
|
76696
|
+
}
|
|
76697
|
+
],
|
|
76698
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76699
|
+
}, {
|
|
76700
|
+
"id": "contextWindow",
|
|
76701
|
+
"label": "Context Window",
|
|
76702
|
+
"type": "select",
|
|
76703
|
+
"options": [{
|
|
76704
|
+
"id": "200k",
|
|
76705
|
+
"label": "200k",
|
|
76706
|
+
"isDefault": true
|
|
76707
|
+
}, {
|
|
76708
|
+
"id": "1m",
|
|
76709
|
+
"label": "1M"
|
|
76710
|
+
}]
|
|
76711
|
+
}] },
|
|
76712
|
+
"adapter": { "claudeCode": {
|
|
76713
|
+
"effortMap": { "ultrathink": null },
|
|
76714
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76715
|
+
"contextWindowTokens": {
|
|
76716
|
+
"200k": 2e5,
|
|
76717
|
+
"1m": 1e6
|
|
76718
|
+
}
|
|
76719
|
+
} }
|
|
76720
|
+
},
|
|
76721
|
+
"sonnet-4-6": {
|
|
76722
|
+
"capabilities": { "optionDescriptors": [{
|
|
76723
|
+
"id": "effort",
|
|
76724
|
+
"label": "Reasoning",
|
|
76725
|
+
"type": "select",
|
|
76726
|
+
"options": [
|
|
76727
|
+
{
|
|
76728
|
+
"id": "low",
|
|
76729
|
+
"label": "Low"
|
|
76730
|
+
},
|
|
76731
|
+
{
|
|
76732
|
+
"id": "medium",
|
|
76733
|
+
"label": "Medium"
|
|
76734
|
+
},
|
|
76735
|
+
{
|
|
76736
|
+
"id": "high",
|
|
76737
|
+
"label": "High",
|
|
76738
|
+
"isDefault": true
|
|
76739
|
+
},
|
|
76740
|
+
{
|
|
76741
|
+
"id": "max",
|
|
76742
|
+
"label": "Max"
|
|
76743
|
+
},
|
|
76744
|
+
{
|
|
76745
|
+
"id": "ultrathink",
|
|
76746
|
+
"label": "Ultrathink"
|
|
76747
|
+
}
|
|
76748
|
+
],
|
|
76749
|
+
"promptInjectedValues": ["ultrathink"]
|
|
76750
|
+
}, {
|
|
76751
|
+
"id": "contextWindow",
|
|
76752
|
+
"label": "Context Window",
|
|
76753
|
+
"type": "select",
|
|
76754
|
+
"options": [{
|
|
76755
|
+
"id": "200k",
|
|
76756
|
+
"label": "200k",
|
|
76757
|
+
"isDefault": true
|
|
76758
|
+
}, {
|
|
76759
|
+
"id": "1m",
|
|
76760
|
+
"label": "1M"
|
|
76761
|
+
}]
|
|
76762
|
+
}] },
|
|
76763
|
+
"adapter": { "claudeCode": {
|
|
76764
|
+
"effortMap": {
|
|
76765
|
+
"max": "high",
|
|
76766
|
+
"ultrathink": null
|
|
76767
|
+
},
|
|
76768
|
+
"modelSuffixes": { "contextWindow": { "1m": "[1m]" } },
|
|
76769
|
+
"contextWindowTokens": {
|
|
76770
|
+
"200k": 2e5,
|
|
76771
|
+
"1m": 1e6
|
|
76772
|
+
}
|
|
76773
|
+
} }
|
|
76774
|
+
},
|
|
76775
|
+
"haiku-4-5": {
|
|
76776
|
+
"capabilities": { "optionDescriptors": [{
|
|
76777
|
+
"id": "thinking",
|
|
76778
|
+
"label": "Thinking",
|
|
76779
|
+
"type": "boolean"
|
|
76780
|
+
}] },
|
|
76781
|
+
"adapter": { "claudeCode": {} }
|
|
76782
|
+
}
|
|
76783
|
+
},
|
|
76784
|
+
"models": [
|
|
76785
|
+
{
|
|
76786
|
+
"slug": "claude-fable-5-1",
|
|
76787
|
+
"name": "Claude Fable 5.1",
|
|
76788
|
+
"shortName": "Fable 5.1",
|
|
76789
|
+
"aliases": [
|
|
76790
|
+
"fable",
|
|
76791
|
+
"fable-5.1",
|
|
76792
|
+
"claude-fable-5.1"
|
|
76793
|
+
],
|
|
76794
|
+
"status": "current",
|
|
76795
|
+
"badge": "new",
|
|
76796
|
+
"profile": "fable-5-1",
|
|
76797
|
+
"adapter": { "claudeCode": { "minVersion": "2.1.257" } }
|
|
76798
|
+
},
|
|
76799
|
+
{
|
|
76800
|
+
"slug": "claude-fable-5",
|
|
76801
|
+
"name": "Claude Fable 5",
|
|
76802
|
+
"shortName": "Fable 5",
|
|
76803
|
+
"aliases": ["fable-5"],
|
|
76804
|
+
"status": "legacy",
|
|
76805
|
+
"profile": "fable-5",
|
|
76806
|
+
"adapter": { "claudeCode": { "minVersion": "2.1.194" } }
|
|
76807
|
+
},
|
|
76808
|
+
{
|
|
76809
|
+
"slug": "claude-opus-5",
|
|
76810
|
+
"name": "Claude Opus 5",
|
|
76811
|
+
"shortName": "Opus 5",
|
|
76812
|
+
"aliases": ["opus-5"],
|
|
76813
|
+
"status": "current",
|
|
76814
|
+
"profile": "opus-5",
|
|
76815
|
+
"adapter": { "claudeCode": { "minVersion": "2.1.219" } }
|
|
76816
|
+
},
|
|
76817
|
+
{
|
|
76818
|
+
"slug": "claude-opus-4-8",
|
|
76819
|
+
"name": "Claude Opus 4.8",
|
|
76820
|
+
"shortName": "Opus 4.8",
|
|
76821
|
+
"aliases": [
|
|
76822
|
+
"opus",
|
|
76823
|
+
"opus-4.8",
|
|
76824
|
+
"claude-opus-4.8"
|
|
76825
|
+
],
|
|
76826
|
+
"status": "legacy",
|
|
76827
|
+
"profile": "opus-4-8",
|
|
76828
|
+
"adapter": { "claudeCode": { "minVersion": "2.1.154" } }
|
|
76829
|
+
},
|
|
76830
|
+
{
|
|
76831
|
+
"slug": "claude-opus-4-7",
|
|
76832
|
+
"name": "Claude Opus 4.7",
|
|
76833
|
+
"shortName": "Opus 4.7",
|
|
76834
|
+
"aliases": ["opus-4.7", "claude-opus-4.7"],
|
|
76835
|
+
"status": "legacy",
|
|
76836
|
+
"profile": "opus-4-7",
|
|
76837
|
+
"adapter": { "claudeCode": { "minVersion": "2.1.111" } }
|
|
76838
|
+
},
|
|
76839
|
+
{
|
|
76840
|
+
"slug": "claude-opus-4-6",
|
|
76841
|
+
"name": "Claude Opus 4.6",
|
|
76842
|
+
"shortName": "Opus 4.6",
|
|
76843
|
+
"aliases": [
|
|
76844
|
+
"opus-4.6",
|
|
76845
|
+
"claude-opus-4.6",
|
|
76846
|
+
"claude-opus-4-6-20251117"
|
|
76847
|
+
],
|
|
76848
|
+
"status": "legacy",
|
|
76849
|
+
"profile": "opus-4-6"
|
|
76850
|
+
},
|
|
76851
|
+
{
|
|
76852
|
+
"slug": "claude-opus-4-5",
|
|
76853
|
+
"name": "Claude Opus 4.5",
|
|
76854
|
+
"shortName": "Opus 4.5",
|
|
76855
|
+
"status": "legacy",
|
|
76856
|
+
"profile": "opus-4-5"
|
|
76857
|
+
},
|
|
76858
|
+
{
|
|
76859
|
+
"slug": "claude-sonnet-5",
|
|
76860
|
+
"name": "Claude Sonnet 5",
|
|
76861
|
+
"shortName": "Sonnet 5",
|
|
76862
|
+
"aliases": [
|
|
76863
|
+
"sonnet",
|
|
76864
|
+
"sonnet-5",
|
|
76865
|
+
"claude-sonnet-5.0"
|
|
76866
|
+
],
|
|
76867
|
+
"status": "current",
|
|
76868
|
+
"profile": "sonnet-5"
|
|
76869
|
+
},
|
|
76870
|
+
{
|
|
76871
|
+
"slug": "claude-sonnet-4-6",
|
|
76872
|
+
"name": "Claude Sonnet 4.6",
|
|
76873
|
+
"shortName": "Sonnet 4.6",
|
|
76874
|
+
"aliases": [
|
|
76875
|
+
"sonnet-4.6",
|
|
76876
|
+
"claude-sonnet-4.6",
|
|
76877
|
+
"claude-sonnet-4-6-20251117"
|
|
76878
|
+
],
|
|
76879
|
+
"status": "legacy",
|
|
76880
|
+
"profile": "sonnet-4-6"
|
|
76881
|
+
},
|
|
76882
|
+
{
|
|
76883
|
+
"slug": "claude-haiku-4-5",
|
|
76884
|
+
"name": "Claude Haiku 4.5",
|
|
76885
|
+
"shortName": "Haiku 4.5",
|
|
76886
|
+
"aliases": [
|
|
76887
|
+
"haiku",
|
|
76888
|
+
"haiku-4.5",
|
|
76889
|
+
"claude-haiku-4.5",
|
|
76890
|
+
"claude-haiku-4-5-20251001"
|
|
76891
|
+
],
|
|
76892
|
+
"status": "legacy",
|
|
76893
|
+
"profile": "haiku-4-5"
|
|
76894
|
+
}
|
|
76895
|
+
]
|
|
76896
|
+
} }
|
|
76897
|
+
};
|
|
76898
|
+
//#endregion
|
|
76899
|
+
//#region src/provider/ModelManifest.ts
|
|
76900
|
+
/**
|
|
76901
|
+
* ModelManifest — remote provider-model metadata with a bundled offline
|
|
76902
|
+
* fallback.
|
|
76903
|
+
*
|
|
76904
|
+
* Provider catalogs live in `model-manifest.json`. The bundled copy ships
|
|
76905
|
+
* with every release; at runtime the service refreshes it from the same file
|
|
76906
|
+
* on the repository's `main` branch, so new Claude models can be published by
|
|
76907
|
+
* editing one file on GitHub without shipping a client update. Preference
|
|
76908
|
+
* order is remote, then the last successful on-disk copy, then the bundle. A
|
|
76909
|
+
* failed fetch never fails a provider check.
|
|
76910
|
+
*
|
|
76911
|
+
* Ported from pingdotgg/t3code (PRs #8227/#9084), adapted to Ryco's config,
|
|
76912
|
+
* settings, and schema surface.
|
|
76913
|
+
*/
|
|
76914
|
+
const MODEL_MANIFEST_URL = "https://raw.githubusercontent.com/saka-gg/ryco/main/apps/server/src/provider/model-manifest.json";
|
|
76915
|
+
/** How long a fetched manifest stays fresh before the next probe re-fetches. */
|
|
76916
|
+
const MANIFEST_TTL_MS = 36e5;
|
|
76917
|
+
/** Minimum gap between fetch attempts after a failure, so an offline server
|
|
76918
|
+
* does not pay a network timeout on every provider check. */
|
|
76919
|
+
const MANIFEST_RETRY_MS = 3e5;
|
|
76920
|
+
const FETCH_TIMEOUT_MS = 1e4;
|
|
76921
|
+
const ManifestModelStatus = Schema.Literals(["current", "legacy"]);
|
|
76922
|
+
const ManifestModelProfile = Schema.Struct({
|
|
76923
|
+
capabilities: Schema.optional(ModelCapabilities),
|
|
76924
|
+
adapter: Schema.optional(Schema.Unknown)
|
|
76925
|
+
});
|
|
76926
|
+
const ManifestProviderModel = Schema.Struct({
|
|
76927
|
+
slug: TrimmedNonEmptyString,
|
|
76928
|
+
name: TrimmedNonEmptyString,
|
|
76929
|
+
shortName: Schema.optional(TrimmedNonEmptyString),
|
|
76930
|
+
subProvider: Schema.optional(TrimmedNonEmptyString),
|
|
76931
|
+
aliases: Schema.optional(Schema.Array(TrimmedNonEmptyString)),
|
|
76932
|
+
status: ManifestModelStatus,
|
|
76933
|
+
badge: Schema.optional(Schema.Literal("new")),
|
|
76934
|
+
profile: Schema.optional(TrimmedNonEmptyString),
|
|
76935
|
+
adapter: Schema.optional(Schema.Unknown)
|
|
76936
|
+
});
|
|
76937
|
+
const ManifestProviderCatalog = Schema.Struct({
|
|
76938
|
+
defaults: Schema.optional(Schema.Struct({ chat: Schema.optional(TrimmedNonEmptyString) })),
|
|
76939
|
+
profiles: Schema.Record(Schema.String, ManifestModelProfile),
|
|
76940
|
+
models: Schema.Array(ManifestProviderModel)
|
|
76941
|
+
});
|
|
76942
|
+
/**
|
|
76943
|
+
* `version` gates breaking schema changes. Provider catalogs are additive so
|
|
76944
|
+
* clients that only understand `currentModels` keep accepting this v1 file.
|
|
76945
|
+
*/
|
|
76946
|
+
const ModelManifestEnvelopeSchema = Schema.Struct({
|
|
76947
|
+
version: Schema.Literal(1),
|
|
76948
|
+
currentModels: Schema.Record(Schema.String, Schema.Array(Schema.String)),
|
|
76949
|
+
providers: Schema.optional(Schema.Record(Schema.String, ManifestProviderCatalog))
|
|
76950
|
+
});
|
|
76951
|
+
const hasValidProviderCatalogReferences = (manifest) => Object.values(manifest.providers ?? {}).every((catalog) => {
|
|
76952
|
+
const slugs = /* @__PURE__ */ new Set();
|
|
76953
|
+
return catalog.models.every((model) => {
|
|
76954
|
+
if (slugs.has(model.slug)) return false;
|
|
76955
|
+
slugs.add(model.slug);
|
|
76956
|
+
return model.profile === void 0 || catalog.profiles[model.profile] !== void 0;
|
|
76957
|
+
}) && (catalog.defaults?.chat === void 0 || slugs.has(catalog.defaults.chat));
|
|
76958
|
+
});
|
|
76959
|
+
const ModelManifestSchema = ModelManifestEnvelopeSchema.pipe(Schema.check(Schema.makeFilter(hasValidProviderCatalogReferences, { expected: "unique model slugs and existing model and profile references" }), Schema.makeFilter(hasValidClaudeManifestAdapters, { expected: "valid Claude adapter metadata" })));
|
|
76960
|
+
const decodeManifest = Schema.decodeUnknownEffect(ModelManifestSchema);
|
|
76961
|
+
const BUNDLED_MODEL_MANIFEST = Schema.decodeUnknownSync(ModelManifestSchema)(model_manifest_default);
|
|
76962
|
+
/** Resolve provider-neutral model presentation and capability data. */
|
|
76963
|
+
function resolveProviderCatalog(manifest, driverKind) {
|
|
76964
|
+
const catalog = manifest.providers?.[driverKind];
|
|
76965
|
+
if (!catalog) return null;
|
|
76966
|
+
const seen = /* @__PURE__ */ new Set();
|
|
76967
|
+
const models = [];
|
|
76968
|
+
for (const entry of catalog.models) {
|
|
76969
|
+
if (seen.has(entry.slug)) return null;
|
|
76970
|
+
seen.add(entry.slug);
|
|
76971
|
+
const profile = entry.profile ? catalog.profiles[entry.profile] : void 0;
|
|
76972
|
+
if (entry.profile && !profile) return null;
|
|
76973
|
+
models.push({
|
|
76974
|
+
model: {
|
|
76975
|
+
slug: entry.slug,
|
|
76976
|
+
name: entry.name,
|
|
76977
|
+
...entry.shortName ? { shortName: entry.shortName } : {},
|
|
76978
|
+
...entry.subProvider ? { subProvider: entry.subProvider } : {},
|
|
76979
|
+
...entry.aliases ? { aliases: entry.aliases } : {},
|
|
76980
|
+
...entry.badge ? { badge: entry.badge } : {},
|
|
76981
|
+
isCustom: false,
|
|
76982
|
+
...catalog.defaults?.chat === entry.slug ? { isDefault: true } : {},
|
|
76983
|
+
...entry.status === "legacy" ? { isLegacy: true } : {},
|
|
76984
|
+
capabilities: profile?.capabilities ?? null
|
|
76985
|
+
},
|
|
76986
|
+
adapter: entry.adapter,
|
|
76987
|
+
profileAdapter: profile?.adapter
|
|
76988
|
+
});
|
|
76989
|
+
}
|
|
76990
|
+
if (catalog.defaults?.chat !== void 0 && !seen.has(catalog.defaults.chat)) return null;
|
|
76991
|
+
return {
|
|
76992
|
+
models,
|
|
76993
|
+
defaults: { chat: catalog.defaults?.chat }
|
|
76994
|
+
};
|
|
76995
|
+
}
|
|
76996
|
+
/** On-disk shape of the last successfully fetched manifest. */
|
|
76997
|
+
const ManifestCacheFile = Schema.Struct({
|
|
76998
|
+
fetchedAtMs: Schema.Number,
|
|
76999
|
+
manifest: ModelManifestSchema
|
|
77000
|
+
});
|
|
77001
|
+
const decodeManifestCache = Schema.decodeUnknownEffect(Schema.fromJsonString(ManifestCacheFile));
|
|
77002
|
+
const encodeManifestCache = Schema.encodeEffect(Schema.fromJsonString(ManifestCacheFile));
|
|
77003
|
+
var ModelManifest = class extends Context.Service()("ryco/provider/ModelManifest") {};
|
|
77004
|
+
/** Constant service for tests and callers that only need the bundled data. */
|
|
77005
|
+
const BundledOnlyModelManifest = {
|
|
77006
|
+
current: Effect.succeed(BUNDLED_MODEL_MANIFEST),
|
|
77007
|
+
refresh: Effect.succeed(BUNDLED_MODEL_MANIFEST),
|
|
77008
|
+
refreshInBackground: Effect.void
|
|
77009
|
+
};
|
|
77010
|
+
Layer.succeed(ModelManifest, BundledOnlyModelManifest);
|
|
77011
|
+
const make$6 = Effect.gen(function* () {
|
|
77012
|
+
const fileSystem = yield* FileSystem.FileSystem;
|
|
77013
|
+
const path = yield* Path.Path;
|
|
77014
|
+
const config = yield* ServerConfig;
|
|
77015
|
+
const settingsService = yield* ServerSettingsService;
|
|
77016
|
+
const httpClient = yield* HttpClient.HttpClient;
|
|
77017
|
+
const serviceScope = yield* Effect.scope;
|
|
77018
|
+
const cachePath = path.join(config.stateDir, "model-manifest.json");
|
|
77019
|
+
let manifest = BUNDLED_MODEL_MANIFEST;
|
|
77020
|
+
let fetchedAtMs = null;
|
|
77021
|
+
let lastAttemptMs = null;
|
|
77022
|
+
const refreshSemaphore = yield* Semaphore$1.make(1);
|
|
77023
|
+
const ensureDiskCacheLoaded = yield* Effect.cached(Effect.gen(function* () {
|
|
77024
|
+
const fromDisk = yield* fileSystem.readFileString(cachePath).pipe(Effect.flatMap((raw) => decodeManifestCache(raw)), Effect.catchCause(() => Effect.succeed(null)));
|
|
77025
|
+
if (fromDisk === null) return;
|
|
77026
|
+
manifest = fromDisk.manifest;
|
|
77027
|
+
fetchedAtMs = fromDisk.fetchedAtMs;
|
|
77028
|
+
}));
|
|
77029
|
+
const refresh = Effect.fn("ModelManifest.refresh")(function* () {
|
|
77030
|
+
yield* ensureDiskCacheLoaded;
|
|
77031
|
+
const now = yield* Clock.currentTimeMillis;
|
|
77032
|
+
const isWithin = (sinceMs, windowMs) => sinceMs !== null && now >= sinceMs && now - sinceMs < windowMs;
|
|
77033
|
+
if (isWithin(fetchedAtMs, MANIFEST_TTL_MS)) return manifest;
|
|
77034
|
+
if (isWithin(lastAttemptMs, MANIFEST_RETRY_MS)) return manifest;
|
|
77035
|
+
const settings = yield* settingsService.getSettings.pipe(Effect.catchCause(() => Effect.succeed(null)));
|
|
77036
|
+
if (settings !== null && !settings.enableProviderUpdateChecks) return manifest;
|
|
77037
|
+
lastAttemptMs = now;
|
|
77038
|
+
const fetched = yield* httpClient.get(MODEL_MANIFEST_URL).pipe(Effect.flatMap(HttpClientResponse.filterStatusOk), Effect.flatMap((response) => response.json), Effect.flatMap((json) => decodeManifest(json)), Effect.timeout(FETCH_TIMEOUT_MS), Effect.catchCause(() => Effect.succeed(null)));
|
|
77039
|
+
if (fetched === null) return manifest;
|
|
77040
|
+
manifest = fetched;
|
|
77041
|
+
fetchedAtMs = now;
|
|
77042
|
+
yield* encodeManifestCache({
|
|
77043
|
+
fetchedAtMs: now,
|
|
77044
|
+
manifest: fetched
|
|
77045
|
+
}).pipe(Effect.flatMap((serialized) => fileSystem.writeFileString(cachePath, serialized)), Effect.catchCause(() => Effect.void));
|
|
77046
|
+
return manifest;
|
|
77047
|
+
});
|
|
77048
|
+
const guardedRefresh = refreshSemaphore.withPermits(1)(refresh());
|
|
77049
|
+
return ModelManifest.of({
|
|
77050
|
+
current: ensureDiskCacheLoaded.pipe(Effect.map(() => manifest)),
|
|
77051
|
+
refresh: guardedRefresh,
|
|
77052
|
+
refreshInBackground: Effect.forkIn(guardedRefresh, serviceScope).pipe(Effect.asVoid)
|
|
77053
|
+
});
|
|
77054
|
+
});
|
|
77055
|
+
const layer$1 = Layer.effect(ModelManifest, make$6);
|
|
77056
|
+
//#endregion
|
|
76171
77057
|
//#region ../../packages/shared/src/providerCapabilities.ts
|
|
76172
77058
|
/** Drivers whose native turn API accepts arbitrary file bytes, not only images. */
|
|
76173
77059
|
function providerSupportsGeneralFileAttachments(provider) {
|
|
@@ -80201,6 +81087,44 @@ function projectActivityPayload(activity) {
|
|
|
80201
81087
|
}
|
|
80202
81088
|
};
|
|
80203
81089
|
}
|
|
81090
|
+
const HEAD_CHARS = 1e4;
|
|
81091
|
+
const TAIL_CHARS = 5e3;
|
|
81092
|
+
const MAX_DEPTH = 16;
|
|
81093
|
+
const EXEMPT_ITEM_TYPES = /* @__PURE__ */ new Set(["image_view", "file_change"]);
|
|
81094
|
+
function capString(value) {
|
|
81095
|
+
if (value.length <= 16e3) return value;
|
|
81096
|
+
const truncated = value.length - HEAD_CHARS - TAIL_CHARS;
|
|
81097
|
+
return `${value.slice(0, HEAD_CHARS)}\n… [${truncated.toLocaleString("en-US")} chars truncated] …\n${value.slice(value.length - TAIL_CHARS)}`;
|
|
81098
|
+
}
|
|
81099
|
+
function capValue(value, depth) {
|
|
81100
|
+
if (typeof value === "string") return capString(value);
|
|
81101
|
+
if (depth >= MAX_DEPTH || value === null || typeof value !== "object") return value;
|
|
81102
|
+
if (Array.isArray(value)) {
|
|
81103
|
+
let changed = false;
|
|
81104
|
+
const next = value.map((entry) => {
|
|
81105
|
+
const capped = capValue(entry, depth + 1);
|
|
81106
|
+
if (capped !== entry) changed = true;
|
|
81107
|
+
return capped;
|
|
81108
|
+
});
|
|
81109
|
+
return changed ? next : value;
|
|
81110
|
+
}
|
|
81111
|
+
let changed = false;
|
|
81112
|
+
const next = {};
|
|
81113
|
+
for (const [key, entry] of Object.entries(value)) {
|
|
81114
|
+
const capped = capValue(entry, depth + 1);
|
|
81115
|
+
if (capped !== entry) changed = true;
|
|
81116
|
+
next[key] = capped;
|
|
81117
|
+
}
|
|
81118
|
+
return changed ? next : value;
|
|
81119
|
+
}
|
|
81120
|
+
/**
|
|
81121
|
+
* Returns `data` with every oversized string truncated, or the same
|
|
81122
|
+
* reference when nothing needed truncation.
|
|
81123
|
+
*/
|
|
81124
|
+
function capActivityData(itemType, data) {
|
|
81125
|
+
if (typeof itemType === "string" && EXEMPT_ITEM_TYPES.has(itemType)) return data;
|
|
81126
|
+
return capValue(data, 0);
|
|
81127
|
+
}
|
|
80204
81128
|
//#endregion
|
|
80205
81129
|
//#region src/orchestration/Layers/ProviderRuntimeIngestion.ts
|
|
80206
81130
|
const providerTurnKey = (threadId, turnId) => `${threadId}:${turnId}`;
|
|
@@ -80731,7 +81655,7 @@ function runtimeEventToActivities(event, taskTitle) {
|
|
|
80731
81655
|
...event.itemId ? { providerItemId: event.itemId } : {},
|
|
80732
81656
|
...event.providerRefs ? { providerRefs: event.providerRefs } : {},
|
|
80733
81657
|
...event.payload.detail ? { detail: truncateDetail(event.payload.detail) } : {},
|
|
80734
|
-
...event.payload.data !== void 0 ? { data: event.payload.data } : {},
|
|
81658
|
+
...event.payload.data !== void 0 ? { data: capActivityData(event.payload.itemType, event.payload.data) } : {},
|
|
80735
81659
|
...event.payload.agentId ? { agentId: event.payload.agentId } : {},
|
|
80736
81660
|
...event.payload.parentToolUseId ? { parentToolUseId: event.payload.parentToolUseId } : {}
|
|
80737
81661
|
},
|
|
@@ -80752,7 +81676,7 @@ function runtimeEventToActivities(event, taskTitle) {
|
|
|
80752
81676
|
...event.itemId ? { providerItemId: event.itemId } : {},
|
|
80753
81677
|
...event.providerRefs ? { providerRefs: event.providerRefs } : {},
|
|
80754
81678
|
...event.payload.detail ? { detail: truncateDetail(event.payload.detail) } : {},
|
|
80755
|
-
...event.payload.data !== void 0 ? { data: event.payload.data } : {},
|
|
81679
|
+
...event.payload.data !== void 0 ? { data: capActivityData(event.payload.itemType, event.payload.data) } : {},
|
|
80756
81680
|
...event.payload.agentId ? { agentId: event.payload.agentId } : {},
|
|
80757
81681
|
...event.payload.parentToolUseId ? { parentToolUseId: event.payload.parentToolUseId } : {}
|
|
80758
81682
|
},
|
|
@@ -80773,7 +81697,7 @@ function runtimeEventToActivities(event, taskTitle) {
|
|
|
80773
81697
|
...event.itemId ? { providerItemId: event.itemId } : {},
|
|
80774
81698
|
...event.providerRefs ? { providerRefs: event.providerRefs } : {},
|
|
80775
81699
|
...event.payload.detail ? { detail: truncateDetail(event.payload.detail) } : {},
|
|
80776
|
-
...event.payload.data !== void 0 ? { data: event.payload.data } : {},
|
|
81700
|
+
...event.payload.data !== void 0 ? { data: capActivityData(event.payload.itemType, event.payload.data) } : {},
|
|
80777
81701
|
...event.payload.agentId ? { agentId: event.payload.agentId } : {},
|
|
80778
81702
|
...event.payload.parentToolUseId ? { parentToolUseId: event.payload.parentToolUseId } : {}
|
|
80779
81703
|
},
|
|
@@ -86928,7 +87852,7 @@ const makeServerEnvironment = Effect.fn("makeServerEnvironment")(function* () {
|
|
|
86928
87852
|
os: platformOs(),
|
|
86929
87853
|
arch: platformArch()
|
|
86930
87854
|
},
|
|
86931
|
-
serverVersion: version$
|
|
87855
|
+
serverVersion: version$2,
|
|
86932
87856
|
capabilities: {
|
|
86933
87857
|
repositoryIdentity: true,
|
|
86934
87858
|
threadSettlement: true,
|
|
@@ -99858,6 +100782,7 @@ const decideOrchestrationCommand = Effect.fn("decideOrchestrationCommand")(funct
|
|
|
99858
100782
|
sessionStatus: thread.session?.status ?? null,
|
|
99859
100783
|
latestTurnState: thread.latestTurn?.state ?? null,
|
|
99860
100784
|
latestTurnRequestedAt: thread.latestTurn?.requestedAt ?? null,
|
|
100785
|
+
latestTurnStartedAt: thread.latestTurn?.startedAt ?? null,
|
|
99861
100786
|
latestTurnCompletedAt: thread.latestTurn?.completedAt ?? null,
|
|
99862
100787
|
latestUserMessageAt: latestUserMessageAt(thread),
|
|
99863
100788
|
hasPendingApprovals: pendingRequests.hasPendingApprovals,
|
|
@@ -99868,6 +100793,7 @@ const decideOrchestrationCommand = Effect.fn("decideOrchestrationCommand")(funct
|
|
|
99868
100793
|
worktreeUpdatedAt: worktree?.updatedAt ?? null,
|
|
99869
100794
|
updatedAt: thread.updatedAt,
|
|
99870
100795
|
createdAt: thread.createdAt,
|
|
100796
|
+
autoSettleAfterDays: null,
|
|
99871
100797
|
nowMs: Date.parse(occurredAt)
|
|
99872
100798
|
});
|
|
99873
100799
|
if (!eligibility.canSettle) return yield* new OrchestrationCommandInvariantError({
|
|
@@ -105893,7 +106819,7 @@ const ProjectAvatarStoreLayerLive = Layer.unwrap(Effect.gen(function* () {
|
|
|
105893
106819
|
return ProjectAvatarStoreLive({ dataDir: config.stateDir });
|
|
105894
106820
|
}));
|
|
105895
106821
|
const ReactorLayerLive = Layer.empty.pipe(Layer.provideMerge(OrchestrationReactorLive), Layer.provideMerge(ProviderRuntimeIngestionLive), Layer.provideMerge(ProviderCommandReactorLive), Layer.provideMerge(ContextHandoffCoordinatorLive), Layer.provideMerge(ContextHandoffServiceLive), Layer.provideMerge(ContextHandoffRepositoryLive), Layer.provideMerge(CheckpointReactorLive), Layer.provideMerge(ThreadDeletionReactorLive), Layer.provideMerge(RuntimeReceiptBusLive));
|
|
105896
|
-
const RuntimeFeatureLayerLive = Layer.mergeAll(ReactorLayerLive, ThreadPriorityCoordinatorLive).pipe(Layer.provideMerge(ThreadPriorityCandidateQueryLive), Layer.provideMerge(ThreadPriorityRepositoryLive), Layer.provideMerge(layer$
|
|
106822
|
+
const RuntimeFeatureLayerLive = Layer.mergeAll(ReactorLayerLive, ThreadPriorityCoordinatorLive).pipe(Layer.provideMerge(ThreadPriorityCandidateQueryLive), Layer.provideMerge(ThreadPriorityRepositoryLive), Layer.provideMerge(layer$8));
|
|
105897
106823
|
const ProviderSessionDirectoryLayerLive = ProviderSessionDirectoryLive.pipe(Layer.provide(ProviderSessionRuntimeRepositoryLive));
|
|
105898
106824
|
const ProviderLayerLive = ProviderServiceLive.pipe(Layer.provide(ProviderAdapterRegistryLive), Layer.provideMerge(ProviderSessionDirectoryLayerLive));
|
|
105899
106825
|
const PersistenceLayerLive = Layer.empty.pipe(Layer.provideMerge(layerConfig));
|
|
@@ -105901,22 +106827,22 @@ const AgentControlAutomationLayerLive = AgentControlAutomationServiceLive.pipe(L
|
|
|
105901
106827
|
const AgentControlExternalInstallationLayerLive = AgentControlExternalInstallationServiceLive.pipe(Layer.provideMerge(AgentControlExternalIntegrationServiceLive), Layer.provideMerge(AgentControlMcpInstallationRepositoryLive));
|
|
105902
106828
|
const AgentControlLayerLive = Layer.mergeAll(AgentControlProposalServiceLive, AgentControlOperationStoreLive, AgentControlAutomationLayerLive, AgentControlExternalInstallationLayerLive).pipe(Layer.provideMerge(AgentControlProposalStoreLive), Layer.provideMerge(AgentControlProposalEventsLive), Layer.provideMerge(AgentControlPolicyLive), Layer.provideMerge(AgentControlProposalRepositoryLive), Layer.provideMerge(AgentControlOperationRepositoryLive), Layer.provideMerge(AgentControlAuditRepositoryLive), Layer.provideMerge(AgentControlExternalRepositoryLive), Layer.provideMerge(AgentControlAutomationRepositoryLive), Layer.provideMerge(AgentControlMcpInstallationRepositoryLive));
|
|
105903
106829
|
const AgentControlSessionRegistryLayerLive = AgentControlSessionRegistryLive.pipe(Layer.provide(AgentControlPolicyLive));
|
|
105904
|
-
const VcsDriverRegistryLayerLive = layer$
|
|
105905
|
-
const SourceControlProviderRegistryLayerLive = layer$
|
|
105906
|
-
const GitManagerLayerLive = layer$
|
|
105907
|
-
const GitLayerLive = Layer.empty.pipe(Layer.provideMerge(GitManagerLayerLive), Layer.provideMerge(layer$
|
|
105908
|
-
const GitWorkflowLayerLive = layer$
|
|
105909
|
-
const SourceControlRepositoryServiceLayerLive = layer$
|
|
105910
|
-
const VcsLayerLive = Layer.empty.pipe(Layer.provideMerge(layer$
|
|
106830
|
+
const VcsDriverRegistryLayerLive = layer$15.pipe(Layer.provide(layer$16));
|
|
106831
|
+
const SourceControlProviderRegistryLayerLive = layer$10.pipe(Layer.provide(Layer.mergeAll(layer$19, layer$14, layer$13, layer$12, layer$11)), Layer.provideMerge(AtlassianConnectionRepositoryLive), Layer.provideMerge(PersistenceLayerLive), Layer.provide(ServerSecretStoreLive), Layer.provideMerge(layer$17), Layer.provideMerge(VcsDriverRegistryLayerLive));
|
|
106832
|
+
const GitManagerLayerLive = layer$7.pipe(Layer.provideMerge(ProjectSetupScriptRunnerLive), Layer.provideMerge(layer$17), Layer.provideMerge(SourceControlProviderRegistryLayerLive), Layer.provideMerge(layer$8));
|
|
106833
|
+
const GitLayerLive = Layer.empty.pipe(Layer.provideMerge(GitManagerLayerLive), Layer.provideMerge(layer$17));
|
|
106834
|
+
const GitWorkflowLayerLive = layer$6.pipe(Layer.provideMerge(VcsDriverRegistryLayerLive), Layer.provideMerge(GitLayerLive));
|
|
106835
|
+
const SourceControlRepositoryServiceLayerLive = layer$3.pipe(Layer.provideMerge(layer$17), Layer.provideMerge(SourceControlProviderRegistryLayerLive), Layer.provide(WorkspaceAccessPolicyLive));
|
|
106836
|
+
const VcsLayerLive = Layer.empty.pipe(Layer.provideMerge(layer$16), Layer.provideMerge(VcsDriverRegistryLayerLive), Layer.provideMerge(layer$4.pipe(Layer.provide(VcsDriverRegistryLayerLive))), Layer.provideMerge(GitWorkflowLayerLive), Layer.provideMerge(SourceControlRepositoryServiceLayerLive), Layer.provideMerge(layer$5.pipe(Layer.provide(GitWorkflowLayerLive))));
|
|
105911
106837
|
const CheckpointingLayerLive = Layer.empty.pipe(Layer.provideMerge(CheckpointDiffQueryLive), Layer.provideMerge(CheckpointStoreLive.pipe(Layer.provide(VcsDriverRegistryLayerLive))));
|
|
105912
106838
|
const TerminalLayerLive = TerminalManagerLive.pipe(Layer.provide(PtyAdapterLive), Layer.provide(WorkspaceAccessPolicyLive));
|
|
105913
106839
|
const WorkspaceEntriesLayerLive = WorkspaceEntriesLive.pipe(Layer.provide(WorkspacePathsLive), Layer.provide(WorkspaceAccessPolicyLive), Layer.provideMerge(VcsDriverRegistryLayerLive));
|
|
105914
106840
|
const WorkspaceFileSystemLayerLive = WorkspaceFileSystemLive.pipe(Layer.provide(WorkspacePathsLive), Layer.provide(WorkspaceEntriesLayerLive));
|
|
105915
106841
|
const WorkspaceLayerLive = Layer.mergeAll(WorkspaceAccessPolicyLive, WorkspacePathsLive, WorkspaceEntriesLayerLive, WorkspaceFileSystemLayerLive);
|
|
105916
106842
|
const AuthLayerLive = ServerAuthLive.pipe(Layer.provideMerge(PersistenceLayerLive), Layer.provide(ServerSecretStoreLive));
|
|
105917
|
-
const AtlassianLayerLive = Layer.mergeAll(layer$
|
|
106843
|
+
const AtlassianLayerLive = Layer.mergeAll(layer$18, layer$2).pipe(Layer.provideMerge(AtlassianConnectionRepositoryLive), Layer.provideMerge(AtlassianResourceRepositoryLive), Layer.provideMerge(ProjectAtlassianLinkRepositoryLive), Layer.provideMerge(PersistenceLayerLive), Layer.provide(ServerSecretStoreLive));
|
|
105918
106844
|
const ProviderRuntimeLayerLive = ProviderSessionReaperLive.pipe(Layer.provideMerge(ProviderLayerLive), Layer.provideMerge(OrchestrationLayerLive));
|
|
105919
|
-
const RuntimeCoreBaseDependenciesLive = RuntimeFeatureLayerLive.pipe(Layer.provideMerge(CheckpointingLayerLive), Layer.provideMerge(SourceControlProviderRegistryLayerLive), Layer.provideMerge(GitLayerLive), Layer.provideMerge(VcsLayerLive), Layer.provideMerge(ProviderRuntimeLayerLive), Layer.provideMerge(TerminalLayerLive), Layer.provideMerge(AgentControlLayerLive), Layer.provideMerge(PersistenceLayerLive), Layer.provideMerge(ProjectionWorktreeRepositoryLive), Layer.provideMerge(KeybindingsLive), Layer.provideMerge(ProviderRegistryLive), Layer.provideMerge(ProviderInstanceRegistryHydrationLive), Layer.provideMerge(AgentControlSessionRegistryLayerLive), Layer.provideMerge(ProviderEventLoggersLive), Layer.provideMerge(OpenCodeRuntimeLive), Layer.provideMerge(WorkspaceLayerLive), Layer.provideMerge(ProjectFaviconResolverLive), Layer.provideMerge(ProjectAvatarStoreLayerLive));
|
|
106845
|
+
const RuntimeCoreBaseDependenciesLive = RuntimeFeatureLayerLive.pipe(Layer.provideMerge(CheckpointingLayerLive), Layer.provideMerge(SourceControlProviderRegistryLayerLive), Layer.provideMerge(GitLayerLive), Layer.provideMerge(VcsLayerLive), Layer.provideMerge(ProviderRuntimeLayerLive), Layer.provideMerge(TerminalLayerLive), Layer.provideMerge(AgentControlLayerLive), Layer.provideMerge(PersistenceLayerLive), Layer.provideMerge(ProjectionWorktreeRepositoryLive), Layer.provideMerge(KeybindingsLive), Layer.provideMerge(ProviderRegistryLive), Layer.provideMerge(ProviderInstanceRegistryHydrationLive), Layer.provideMerge(AgentControlSessionRegistryLayerLive), Layer.provideMerge(ProviderEventLoggersLive), Layer.provideMerge(layer$1), Layer.provideMerge(OpenCodeRuntimeLive), Layer.provideMerge(WorkspaceLayerLive), Layer.provideMerge(ProjectFaviconResolverLive), Layer.provideMerge(ProjectAvatarStoreLayerLive));
|
|
105920
106846
|
const RuntimeDependenciesLive = Layer.mergeAll(RuntimeCoreBaseDependenciesLive, UsageServiceLive).pipe(Layer.provideMerge(ServerSettingsLive)).pipe(Layer.provideMerge(RepositoryIdentityResolverLive), Layer.provideMerge(ServerEnvironmentLive), Layer.provideMerge(AdvertisedEndpointRegistryLive), Layer.provideMerge(AuthLayerLive), Layer.provideMerge(AtlassianLayerLive)).pipe(Layer.provideMerge(AnalyticsServiceLayerLive), Layer.provideMerge(OpenLive), Layer.provideMerge(ServerLifecycleEventsLive), Layer.provide(NetService.layer));
|
|
105921
106847
|
const RuntimeServicesLive = Layer.mergeAll(ServerRuntimeStartupLive, AgentControlMcpServerLive.pipe(Layer.provideMerge(AgentControlDiagnosticsServiceLive), Layer.provideMerge(AgentControlActionValidatorLive), Layer.provideMerge(AgentControlProjectPlansLive)), AgentControlExternalMcpServerLive.pipe(Layer.provideMerge(AgentControlDiagnosticsServiceLive), Layer.provideMerge(AgentControlActionValidatorLive), Layer.provideMerge(AgentControlProjectPlansLive), Layer.provideMerge(AgentControlExternalTaskServiceLive.pipe(Layer.provideMerge(AgentControlActionValidatorLive), Layer.provideMerge(AgentControlProjectPlansLive)))), AgentControlExecutionLive.pipe(Layer.provideMerge(ServerRuntimeStartupLive), Layer.provideMerge(AgentControlActionValidatorLive), Layer.provideMerge(AgentControlProjectPlansLive), Layer.provideMerge(OrchestrationCommandApplicationLive))).pipe(Layer.provideMerge(RuntimeDependenciesLive), Layer.provideMerge(DeviceServiceLive));
|
|
105922
106848
|
const authRoutesLayer = Layer.mergeAll(authBearerBootstrapRouteLayer, authBootstrapRouteLayer, authClientsRevokeOthersRouteLayer, authClientsRevokeRouteLayer, authClientsRouteLayer, authPairingLinksRevokeRouteLayer, authPairingLinksRouteLayer, authPairingCredentialRouteLayer, authSessionRouteLayer, authWebSocketTokenRouteLayer);
|
|
@@ -105964,7 +106890,7 @@ const makeServerLayer = Layer.unwrap(Effect.gen(function* () {
|
|
|
105964
106890
|
cause,
|
|
105965
106891
|
servePort: configured.servePort
|
|
105966
106892
|
}))) : Effect.void)) : Layer.empty;
|
|
105967
|
-
return Layer.mergeAll(HttpRouter.serve(makeRoutesLayer, { disableLogger: !config.logWebSocketEvents }).pipe(Layer.provide(HubConnectorLive)), httpListeningLayer, runtimeStateLayer, tailscaleServeLayer).pipe(Layer.provideMerge(RuntimeServicesLive), Layer.provideMerge(WorkspaceAccessPolicyLive), Layer.provideMerge(HttpServerLive), Layer.provide(ObservabilityLive), Layer.provideMerge(FetchHttpClient.layer), Layer.provideMerge(layer$
|
|
106893
|
+
return Layer.mergeAll(HttpRouter.serve(makeRoutesLayer, { disableLogger: !config.logWebSocketEvents }).pipe(Layer.provide(HubConnectorLive)), httpListeningLayer, runtimeStateLayer, tailscaleServeLayer).pipe(Layer.provideMerge(RuntimeServicesLive), Layer.provideMerge(WorkspaceAccessPolicyLive), Layer.provideMerge(HttpServerLive), Layer.provide(ObservabilityLive), Layer.provideMerge(FetchHttpClient.layer), Layer.provideMerge(layer$21), Layer.provideMerge(PlatformServicesLive));
|
|
105968
106894
|
}));
|
|
105969
106895
|
const runServer = Layer.launch(makeServerLayer);
|
|
105970
106896
|
//#endregion
|
|
@@ -107421,7 +108347,7 @@ const promptAndPairExternalMcpBridge = async (input) => {
|
|
|
107421
108347
|
//#endregion
|
|
107422
108348
|
//#region src/bin.ts
|
|
107423
108349
|
const CliRuntimeLayer = Layer$1.mergeAll(NodeServices.layer, NetService.layer);
|
|
107424
|
-
const program = Command.run(cli, { version: version$
|
|
108350
|
+
const program = Command.run(cli, { version: version$2 }).pipe(Effect$1.scoped, Effect$1.provide(CliRuntimeLayer));
|
|
107425
108351
|
const externalMcpArgs = () => {
|
|
107426
108352
|
if (process.argv[2] !== "mcp" || process.argv[3] !== "pair" && process.argv[3] !== "serve") return null;
|
|
107427
108353
|
const integrationIndex = process.argv.indexOf("--integration", 4);
|
|
@@ -107456,4 +108382,4 @@ else if (external !== null) (external.action === "pair" ? promptAndPairExternalM
|
|
|
107456
108382
|
});
|
|
107457
108383
|
else NodeRuntime.runMain(program);
|
|
107458
108384
|
//#endregion
|
|
107459
|
-
export {
|
|
108385
|
+
export { buildServerProvider as $, getProviderOptionStringSelectionValue as $n, V2ReasoningSummaryTextDeltaNotification as $t, buildCommitMessagePrompt as A, decodeGitHubPullRequestListJson as An, SERVER_NOTIFICATION_METHODS as At, sanitizeThreadTitle as B, resolveProviderMaintenanceCapabilitiesEffect as Bn, V2AccountUpdatedNotification as Bt, decodeClaudeProfileAdapter as C, GitLabCli as Cn, CodexAppServerClient as Ct, checkRtkAvailability as D, formatGitHubJsonFields as Dn, CodexAppServerRequestError as Dt, buildTokenReductionInstructions as E, GitHubCliError as En, CodexAppServerProtocolParseError as Et, buildThreadTitlePrompt as F, makeManualOnlyProviderMaintenanceCapabilities as Fn, ServerRequest__FileChangeRequestApprovalParams as Ft, resolveClaudeHomePath$1 as G, resolveCommandPath as Gn, V2ErrorNotification as Gt, makeClaudeCapabilitiesCacheKey as H, ServerSettingsService as Hn, V2CommandExecutionOutputDeltaNotification as Ht, extractJsonObject as I, makePackageManagedProviderMaintenanceResolver as In, ServerRequest__ToolRequestUserInputParams as It, checkCodexProviderStatus as J, getModelSelectionBooleanOptionValue as Jn, V2ItemStartedNotification as Jt, mergeProviderInstanceEnvironment as K, applyClaudePromptEffortPrefix as Kn, V2FileChangeOutputDeltaNotification as Kt, normalizeCliError as L, makeProviderMaintenanceCapabilities as Ln, ToolRequestUserInputParams as Lt, buildIssueContentTitlePrompt as M, BitbucketApi as Mn, ServerRequest__CommandExecutionRequestApprovalParams as Mt, buildPrContentPrompt as N, AzureDevOpsCli as Nn, ServerRequest__DynamicToolCallParams as Nt, validateRankInboxThreadsResult as O, isStatusCheckRollupAccessError as On, CodexAppServerSpawnError as Ot, buildThreadPriorityPrompt as P, enrichProviderSnapshotWithVersionAdvisory as Pn, ServerRequest__ExecCommandApprovalParams as Pt, buildSelectOptionDescriptor as Q, getProviderOptionDescriptors as Qn, V2PlanDeltaNotification as Qt, sanitizeCommitSubject as R, makeStaticProviderMaintenanceResolver as Rn, ToolRequestUserInputResponse as Rt, decodeClaudeModelAdapter as S, V2WindowsWorldWritableWarningNotification as Sn, expandHomePath$3 as St, makeEventNdjsonLogger as T, GitHubCli as Tn, CodexAppServerProcessExitedError as Tt, makeClaudeContinuationGroupKey as U, readPersistedAttachment as Un, V2ConfigWarningNotification as Ut, toJsonSchemaObject as V, compareCliVersions as Vn, V2AgentMessageDeltaNotification as Vt, makeClaudeEnvironment as W, resolveAttachmentPath as Wn, V2DeprecationNoticeNotification as Wt, DEFAULT_TIMEOUT_MS as X, getProviderOptionBooleanSelectionValue as Xn, V2McpToolCallProgressNotification as Xt, makePendingCodexProvider as Y, getModelSelectionStringOptionValue as Yn, V2McpServerOauthLoginCompletedNotification as Yt, buildBooleanOptionDescriptor as Z, getProviderOptionCurrentValue as Zn, V2ModelReroutedNotification as Zt, toOpenCodeQuestionAnswers as _, V2TurnStartParams__CollaborationMode as _n, ProviderAdapterValidationError as _t, PtyAdapter as a, V2ThreadRealtimeClosedNotification as an, providerModelsFromSettings as at, ModelManifest as b, V2TurnSteerResponse as bn, materializeCodexShadowHome as bt, OpenCodeRuntime as c, V2ThreadRealtimeOutputAudioDeltaNotification as cn, agentControlHostContext as ct, openCodeQuestionId as d, V2ThreadStatusChangedNotification as dn, redactAgentControlSecrets as dt, V2ReasoningTextDeltaNotification as en, normalizeModelSlug as er, collectStreamAsString as et, openCodeRuntimeErrorDetail as f, V2ThreadTokenUsageUpdatedNotification as fn, createProcessDeviceToolBinding as ft, toOpenCodePermissionReply as g, V2TurnStartParams as gn, ProviderAdapterSessionNotFoundError as gt, toOpenCodeFileParts as h, V2TurnPlanUpdatedNotification as hn, ProviderAdapterSessionClosedError as ht, classifyTaskAgentKind as i, V2ThreadNameUpdatedNotification as in, parseGenericCliVersion as it, buildIssueContentPolishPrompt as j, ForgejoApi as jn, ServerRequest__ApplyPatchApprovalParams as jt, buildBranchNamePrompt as k, withoutStatusCheckRollupJsonField as kn, CodexAppServerTransportError as kt, OpenCodeRuntimeError as l, V2ThreadRealtimeStartedNotification as ln, installAgentControlAcp as lt, runOpenCodeSdk as m, V2TurnDiffUpdatedNotification as mn, ProviderAdapterRequestError as mt, AgentControlSessionRegistry as n, V2ThreadGoalClearedNotification as nn, isCommandMissingCause as nt, PtySpawnError as o, V2ThreadRealtimeErrorNotification as on, spawnAndCollect as ot, parseOpenCodeModelSlug as p, V2TurnCompletedNotification as pn, ProviderAdapterProcessError as pt, buildCodexInitializeParams as q, createModelCapabilities as qn, V2ItemCompletedNotification as qt, ignoreProviderBackgroundCause as r, V2ThreadGoalUpdatedNotification as rn, nonEmptyTrimmed as rt, MINIMUM_OPENCODE_VERSION as s, V2ThreadRealtimeItemAddedNotification as sn, AGENT_CONTROL_INTERNAL_SERVER_NAME as st, makeServerQueueMetrics as t, V2ServerRequestResolvedNotification as tn, resolvePromptInjectedEffort as tr, detailFromResult as tt, buildOpenCodePermissionRules as u, V2ThreadStartedNotification as un, installAgentControlNativeHttp as ut, verifyOpenCodeServerVersion as v, V2TurnStartResponse as vn, ProviderDriverError as vt, ProviderEventLoggers as w, GITHUB_PULL_REQUEST_LIST_JSON_FIELDS as wn, layerChildProcess as wt, resolveProviderCatalog as x, V2WindowsSandboxSetupCompletedNotification as xn, resolveCodexHomeLayout as xt, BUNDLED_MODEL_MANIFEST as y, V2TurnSteerParams as yn, codexContinuationIdentity as yt, sanitizePrTitle as z, normalizeCommandPath as zn, V2AccountRateLimitsUpdatedNotification as zt };
|