ryco-cli 0.1.21 → 0.1.23
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-D54V5cIY.cjs → AcpNativeLogging-COepku4a.cjs} +78 -7
- package/dist/{AcpNativeLogging-Ch-s9nA8.mjs → AcpNativeLogging-D7e1dn7s.mjs} +74 -9
- package/dist/{AzureDevOpsSourceControlProvider-DTOlXGyd.mjs → AzureDevOpsSourceControlProvider-BNGEg1R8.mjs} +3 -3
- package/dist/{AzureDevOpsSourceControlProvider-BzB5-N9m.cjs → AzureDevOpsSourceControlProvider-CrvgKNf2.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-DGd4IPx5.mjs → BitbucketSourceControlProvider-Bt21jw68.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-D-8PWXO3.cjs → BitbucketSourceControlProvider-BzhsQwH-.cjs} +2 -2
- package/dist/{BunPTY-CNvWSzEJ.mjs → BunPTY-TbHbSc8S.mjs} +1 -1
- package/dist/{ClaudeDriver-HEbUzW34.cjs → ClaudeDriver-B7mbf51W.cjs} +53 -128
- package/dist/{ClaudeDriver-DxowtK6I.mjs → ClaudeDriver-C4yu7Jit.mjs} +45 -120
- package/dist/{CodexDriver-YG4IwzLm.cjs → CodexDriver-CR0S17Lb.cjs} +236 -49
- package/dist/{CodexDriver-CccSWoP3.mjs → CodexDriver-DnnqkGoY.mjs} +238 -51
- package/dist/{CodexTextGeneration-BfGt7ZUe.mjs → CodexTextGeneration-Cw-FZbSS.mjs} +3 -3
- package/dist/{CodexTextGeneration-CBJHkgOz.cjs → CodexTextGeneration-tlfe1S5W.cjs} +2 -2
- package/dist/{CopilotDriver-DZAW-7yV.mjs → CopilotDriver-GxKLX5pL.mjs} +124 -25
- package/dist/{CopilotDriver-Bm4OZMkm.cjs → CopilotDriver-IBd27Ji2.cjs} +123 -24
- package/dist/{CursorDriver-CYcKAkUY.cjs → CursorDriver-C4Enoe9N.cjs} +34 -74
- package/dist/{CursorDriver-B4jb4rWd.mjs → CursorDriver-CNo9Uzo8.mjs} +35 -75
- package/dist/{ForgejoSourceControlProvider-Dfi8KH7I.mjs → ForgejoSourceControlProvider-BGXysSX6.mjs} +3 -3
- package/dist/{ForgejoSourceControlProvider-CXUevO6C.cjs → ForgejoSourceControlProvider-Dh6DOoc8.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-DOs1ouvp.cjs → GitHubSourceControlProvider-8hsv_kCE.cjs} +2 -2
- package/dist/{GitHubSourceControlProvider-BH97aNa0.mjs → GitHubSourceControlProvider-CPCYV8Xo.mjs} +3 -3
- package/dist/{GitLabSourceControlProvider-CfbE6GYD.cjs → GitLabSourceControlProvider-B0ZbF9Zx.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-nIzcy9AJ.mjs → GitLabSourceControlProvider-Bvknpaon.mjs} +3 -3
- package/dist/{GrokDriver-CENrrqQc.mjs → GrokDriver-DSPEmiwq.mjs} +31 -11
- package/dist/{GrokDriver-C35gWEiw.cjs → GrokDriver-RyyFeh_q.cjs} +32 -12
- package/dist/{Metrics-DIjMQ5pa.cjs → Metrics-Bcb9vCAe.cjs} +21 -15
- package/dist/{Metrics-BP9YjxZB.mjs → Metrics-a1h4iBQi.mjs} +21 -15
- package/dist/{NodePTY-lO8PwZLk.mjs → NodePTY-B_p5tLYO.mjs} +1 -1
- package/dist/{OpenCodeDriver-BIxSPI9J.mjs → OpenCodeDriver-0q44rSQX.mjs} +136 -21
- package/dist/{OpenCodeDriver-CHuQ6Xhc.cjs → OpenCodeDriver-CDcvPT9v.cjs} +138 -20
- package/dist/{SourceControlProviderDiscoveryCatalog-DaRgCE5d.mjs → SourceControlProviderDiscoveryCatalog-B37RHe2u.mjs} +1 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-DCmYsPEa.cjs → SourceControlProviderDiscoveryCatalog-DreaAH1H.cjs} +1 -1
- package/dist/bin.cjs +4611 -642
- package/dist/bin.mjs +4602 -644
- package/dist/client/assets/AccountSettings-DGvZzAqN.js +1 -0
- package/dist/client/assets/AiFocusSettings-D8wZfNES.js +1 -0
- package/dist/client/assets/AnimatedHeight-D9bpLPqe.js +1 -0
- package/dist/client/assets/AppearanceSettings-BFo6g6_s.js +1 -0
- package/dist/client/assets/BranchToolbar.logic-CmO2U1U7.js +1 -0
- package/dist/client/assets/BrowserPanel-r6is5C3e.js +1 -0
- package/dist/client/assets/ChatRightPanel-BewXBRFZ.js +194 -0
- package/dist/client/assets/ChatThreadRouteView-CC_6FmHd.js +1 -0
- package/dist/client/assets/CommandPaletteDialog-ftA_Xg2G.js +1 -0
- package/dist/client/assets/CompositeRoot-arlgwzfX.js +1 -0
- package/dist/client/assets/ComputerUseSettings-V-oMtddy.js +1 -0
- package/dist/client/assets/ConnectionsSettings-BrFvrRjz.js +7 -0
- package/dist/client/assets/ContextHandoffEndpointLabel-CPeU4K5A.js +4 -0
- package/dist/client/assets/DiagnosticsSettings-Dk3JaIOU.js +2 -0
- package/dist/client/assets/DialogHandle-00ZXxxpz.js +1 -0
- package/dist/client/assets/DialogPopup-mazVJKyB.js +1 -0
- package/dist/client/assets/DialogRoot-CWlzx19Z.js +1 -0
- package/dist/client/assets/DialogTitle-CKaEtTky.js +1 -0
- package/dist/client/assets/DialogTrigger-CiElTNmo.js +1 -0
- package/dist/client/assets/DialogViewport-a5beR5bY.js +1 -0
- package/dist/client/assets/DraftChatThreadRouteView-DMwnSfgh.js +1 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-TXvkTDG8.js → ExternalIdentityWeb.logic-pjD4pCDd.js} +1 -1
- package/dist/client/assets/FloatingPortalLite-DWdtHKob.js +1 -0
- package/dist/client/assets/GlassSurface-BqfxDYiR.js +1 -0
- package/dist/client/assets/HostedConnectionControls-BmJd89CC.js +1 -0
- package/dist/client/assets/HostedHubRoot-CRIiJ67A.js +2 -0
- package/dist/client/assets/HostedNativeAuthorizationRoute-DcksCt9n.js +2 -0
- package/dist/client/assets/HostedRelayTrustNotice-C9pl5h2a.js +1 -0
- package/dist/client/assets/IntegrationsSettingsPanel-BnfjyLrM.js +2 -0
- package/dist/client/assets/KeybindingsSettings-CkW7lzvz.js +7 -0
- package/dist/client/assets/LazyBrowserPanel-C6uMUmoV.js +2 -0
- package/dist/client/assets/McpServersSettings-BdXgS-Pm.js +6 -0
- package/dist/client/assets/MobileSheet-D19YdeQ9.js +1 -0
- package/dist/client/assets/NodeSecuritySettings-BfcBgtEg.js +1 -0
- package/dist/client/assets/OpinionatedPluginsSettings-YY54IT7P.js +1 -0
- package/dist/client/assets/PhoneGetAppInterstitial-9r6NwJP8.js +1 -0
- package/dist/client/assets/PhoneHome-DnEJp0bU.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-NKJrLCxU.js +2 -0
- package/dist/client/assets/ProviderModelPicker-CYGv-4fE.js +1 -0
- package/dist/client/assets/ProvidersSettingsPanel-DsXHij4h.js +1 -0
- package/dist/client/assets/QuitShortcutFeedback-BVyYaNtd.js +1 -0
- package/dist/client/assets/RedactedSensitiveText-D8j7kpow.js +1 -0
- package/dist/client/assets/RootAppShell-D7c8sbA0.js +7 -0
- package/dist/client/assets/{Separator-DiMB6Prz.js → Separator-Bn8l1oSK.js} +1 -1
- package/dist/client/assets/SettingsDialog-BlPX1mT8.js +2 -0
- package/dist/client/assets/SettingsPanels-CeuvwIV_.js +3 -0
- package/dist/client/assets/SettingsPanels.editor-CLJJeKLI.js +1 -0
- package/dist/client/assets/SourceControlSettings-D-GeZ6PW.js +1 -0
- package/dist/client/assets/StatisticsPage-poomFDoQ.js +1 -0
- package/dist/client/assets/StatisticsPanel-DbGgCCpZ.js +1 -0
- package/dist/client/assets/StatisticsSettingsLink-Brc9--O7.js +1 -0
- package/dist/client/assets/ThreadTerminalDrawer-DcZk76Y9.js +18 -0
- package/dist/client/assets/ThreadWorkspacePanel-Shhau2BD.js +2073 -0
- package/dist/client/assets/actionscript-3-Cs6JJXT5.js +1 -0
- package/dist/client/assets/activity-Dy-wOS-S.js +1 -0
- package/dist/client/assets/ahk-CA9gdOdF.js +1 -0
- package/dist/client/assets/ahk2-_6rzW9BS.js +1 -0
- package/dist/client/assets/alert-4WZo8oMe.js +1 -0
- package/dist/client/assets/apex-KFGFyKwG.js +1 -0
- package/dist/client/assets/appChrome-CiOQzE1d.js +1 -0
- package/dist/client/assets/appearancePreferences-nFx4MHoI.js +1 -0
- package/dist/client/assets/arrow-left-gLRAasih.js +1 -0
- package/dist/client/assets/arrow-right-CAK2t4QL.js +1 -0
- package/dist/client/assets/arrow-up-right-DP0hmMEB.js +1 -0
- package/dist/client/assets/asciidoc-SCjQUq34.js +1 -0
- package/dist/client/assets/authorization-K_UCP_xh.js +1 -0
- package/dist/client/assets/badge-CYDyJZRJ.js +1 -0
- package/dist/client/assets/{bat-Bo4NYOV-.js → bat-qdxAdBWQ.js} +1 -1
- package/dist/client/assets/bird2-CYIUgYqB.js +1 -0
- package/dist/client/assets/bot-CCrx5oCt.js +1 -0
- package/dist/client/assets/bsl-_VjlB9mv.js +1 -0
- package/dist/client/assets/{button-BdUaa4U1.js → button-QrCU0tNP.js} +1 -1
- package/dist/client/assets/c3-D0apG41V.js +1 -0
- package/dist/client/assets/capabilities-BTd0MRtv.js +1 -0
- package/dist/client/assets/chapel-B4wvmE90.js +1 -0
- package/dist/client/assets/chart-column-BvK6lSzG.js +1 -0
- package/dist/client/assets/chevron-down-yka18-iP.js +1 -0
- package/dist/client/assets/chevron-right-CHyIXx5W.js +1 -0
- package/dist/client/assets/clamp-D0kAXd-u.js +1 -0
- package/dist/client/assets/clarity-CtfBBspg.js +1 -0
- package/dist/client/assets/clipboard-copy-DfdkWOiT.js +1 -0
- package/dist/client/assets/copy-riIPLkKV.js +1 -0
- package/dist/client/assets/coq-DuBRPxYg.js +1 -0
- package/dist/client/assets/cpp-C3nXdf7H.js +1 -0
- package/dist/client/assets/data-list-CsiYTho5.js +1 -0
- package/dist/client/assets/download-B0lbSdq5.js +1 -0
- package/dist/client/assets/editorPreferences-Cf2Smgu1.js +1 -0
- package/dist/client/assets/emacs-lisp-c_oH4hRZ.js +1 -0
- package/dist/client/assets/empty-CHk0OiOB.js +1 -0
- package/dist/client/assets/{erb-UQla4w8B.js → erb-CXyXxaAM.js} +1 -1
- package/dist/client/assets/{gdresource-C0sCabJj.js → gdresource-xMC7jr7x.js} +1 -1
- package/dist/client/assets/gdscript-DYvRD3hg.js +1 -0
- package/dist/client/assets/group-DfFZdj79.js +1 -0
- package/dist/client/assets/hack-Bw3mo9za.js +1 -0
- package/dist/client/assets/haxe-C8oCnwJJ.js +1 -0
- package/dist/client/assets/hostedConnectionCoordinator-DZh1yVqz.js +1 -0
- package/dist/client/assets/hxml-Dcm88srW.js +1 -0
- package/dist/client/assets/{index-CQJvt69U.js → index-D5j6WG7w.js} +2 -2
- package/dist/client/assets/input-BAC5Cd3b.js +1 -0
- package/dist/client/assets/{julia-DTmLe4fA.js → julia-C-lBeOK5.js} +1 -1
- package/dist/client/assets/{just-CPUGe9J1.js → just-DfEtguTY.js} +1 -1
- package/dist/client/assets/kbd-CMUW8K7b.js +1 -0
- package/dist/client/assets/key-round-Cm6itp2V.js +1 -0
- package/dist/client/assets/latex-6oxeCMbP.js +1 -0
- package/dist/client/assets/layers-DoDpJao_.js +1 -0
- package/dist/client/assets/{liquidGlass-yFkZrRk5.js → liquidGlass-Dbl4k51l.js} +1 -1
- package/dist/client/assets/{llvm-Cm23YOpf.js → llvm-DqHOMS-s.js} +1 -1
- package/dist/client/assets/loader-circle-D0CNb5GI.js +1 -0
- package/dist/client/assets/log-out-BuoOiS45.js +1 -0
- package/dist/client/assets/{logging-B1VrUJXw.js → logging-DfaR8ACp.js} +1 -1
- package/dist/client/assets/luau-C2pBCSgt.js +1 -0
- package/dist/client/assets/main-CRk9p9SC.css +2 -0
- package/dist/client/assets/main-DaXSCt8g.js +9 -0
- package/dist/client/assets/mdc-uTSeACfH.js +1 -0
- package/dist/client/assets/mermaid-BxpfTIzt.js +1 -0
- package/dist/client/assets/mojo-fg40_ntQ.js +1 -0
- package/dist/client/assets/monitor-Dyigmrl2.js +1 -0
- package/dist/client/assets/moonbit-DgjMoLWr.js +1 -0
- package/dist/client/assets/move-BYnGhZoM.js +1 -0
- package/dist/client/assets/nsis-CjNLYCLg.js +1 -0
- package/dist/client/assets/nushell-DHYfO66s.js +1 -0
- package/dist/client/assets/org-DRYqs_wo.js +1 -0
- package/dist/client/assets/palette-kIM_geXk.js +1 -0
- package/dist/client/assets/play-Dh8XDMnw.js +1 -0
- package/dist/client/assets/{powershell-DshXNtvi.js → powershell-CCSX75yM.js} +1 -1
- package/dist/client/assets/primary-DjXNHNGV.js +2 -0
- package/dist/client/assets/prisma-DMgNhnYS.js +1 -0
- package/dist/client/assets/providerDriverMeta-Cl-ADdmZ.js +1 -0
- package/dist/client/assets/providerModels-dpugJUmV.js +1 -0
- package/dist/client/assets/qr-code-Bun4dpvz.js +1 -0
- package/dist/client/assets/qr-code-CkI1p05P.js +1 -0
- package/dist/client/assets/r-B-BYV2IP.js +1 -0
- package/dist/client/assets/radio-group-Hh0oQGyf.js +2 -0
- package/dist/client/assets/rbs-C0MpOrj4.js +1 -0
- package/dist/client/assets/refresh-cw-MqmsC7V0.js +1 -0
- package/dist/client/assets/{rst-C90_EUa_.js → rst-DKqX_39h.js} +1 -1
- package/dist/client/assets/{ruby-BlGyFGAQ.js → ruby-CaU3RLfE.js} +1 -1
- package/dist/client/assets/runtime-L56puJDA.js +17 -0
- package/dist/client/assets/save-BSB81i-r.js +1 -0
- package/dist/client/assets/{scala-DKOlJaKm.js → scala-BiFt_7mu.js} +1 -1
- package/dist/client/assets/scroll-area-DCGCzd6v.js +1 -0
- package/dist/client/assets/scrollEdges-DIzjkUJG.js +1 -0
- package/dist/client/assets/separator-YeH3P39x.js +1 -0
- package/dist/client/assets/settingsLayout-CmNqO2kB.js +1 -0
- package/dist/client/assets/settingsSections.logic-Bg960p_I.js +1 -0
- package/dist/client/assets/sheet-CTbjQ5Bv.js +1 -0
- package/dist/client/assets/shield-DlqCO-0N.js +1 -0
- package/dist/client/assets/shield-alert-BrZ-Rb8N.js +1 -0
- package/dist/client/assets/shield-check-DHxdM6te.js +1 -0
- package/dist/client/assets/sidebar-4cwEndEB.js +1 -0
- package/dist/client/assets/sidebarProjectFolders-C7WDwUYJ.js +4 -0
- package/dist/client/assets/{sidebarStatusText-WiaEF1ae.js → sidebarStatusText-Cq_MMykN.js} +1 -1
- package/dist/client/assets/skeleton-BlostfCS.js +1 -0
- package/dist/client/assets/smalltalk-BHpQb5nM.js +1 -0
- package/dist/client/assets/smartphone-OaA-Xj_d.js +1 -0
- package/dist/client/assets/smithy-Dgaz7aur.js +1 -0
- package/dist/client/assets/solidity-Bj7E1mRn.js +1 -0
- package/dist/client/assets/sparkles-BXwkPX2M.js +1 -0
- package/dist/client/assets/src-gDjuIvMO.js +14 -0
- package/dist/client/assets/star-BjaAYD-x.js +1 -0
- package/dist/client/assets/surrealql-CVtmRpY6.js +1 -0
- package/dist/client/assets/swift-CyEgAFGc.js +1 -0
- package/dist/client/assets/switch-COrEGDkz.js +48 -0
- package/dist/client/assets/system-verilog-Dh5ihWbf.js +1 -0
- package/dist/client/assets/tex-DOBpnpUK.js +1 -0
- package/dist/client/assets/toast-C_F1LeME.js +1 -0
- package/dist/client/assets/toggle-BPNEBXg_.js +1 -0
- package/dist/client/assets/toggle-group-BC1zJ9xi.js +1 -0
- package/dist/client/assets/tokenModePresentation-DUJ8DMTy.js +1 -0
- package/dist/client/assets/tooltip-iy3_osu5.js +1 -0
- package/dist/client/assets/triangle-alert-YXqtFxD6.js +1 -0
- package/dist/client/assets/twig-DsmcR2eZ.js +1 -0
- package/dist/client/assets/typst-Drab9wKO.js +1 -0
- package/dist/client/assets/unplug-e3z4rXgY.js +1 -0
- package/dist/client/assets/useAppSidebarCollapsed-mtvJ7qbW.js +1 -0
- package/dist/client/assets/useAppearancePreference-BteoFdGa.js +1 -0
- package/dist/client/assets/useControlled-DQwgzrEC.js +1 -0
- package/dist/client/assets/useLabelableId-NJQsKdL6.js +1 -0
- package/dist/client/assets/{useLongPress-OGlhYKlH.js → useLongPress-DG1W7YqV.js} +1 -1
- package/dist/client/assets/usePhoneThreadActions-97AsVVIR.js +1 -0
- package/dist/client/assets/usePopupViewport-8OM2irPK.js +1 -0
- package/dist/client/assets/usePositioner-0Kb-C4al.js +1 -0
- package/dist/client/assets/useRenderElement-D0HVF5g_.js +1 -0
- package/dist/client/assets/useScrollLock-AUqaSAkf.js +1 -0
- package/dist/client/assets/useStatistics-DfLU9_Qu.js +55 -0
- package/dist/client/assets/useSwipeDismiss-CcW-GPO_.js +1 -0
- package/dist/client/assets/{useTheme-By1kfyiU.js → useTheme-CVNauCtz.js} +1 -1
- package/dist/client/assets/useTriggerFocusGuards-ChBvppef.js +1 -0
- package/dist/client/assets/useValueChanged-CThCTn4h.js +1 -0
- package/dist/client/assets/user-round-evbX_eto.js +1 -0
- package/dist/client/assets/utils-5-6TOrS1.js +1 -0
- package/dist/client/assets/{v-DETTlOr0.js → v-DBj4K9d_.js} +1 -1
- package/dist/client/assets/{vb-Djn5o6TS.js → vb-DOwzaHZ0.js} +1 -1
- package/dist/client/assets/verilog-B2gwz-sJ.js +1 -0
- package/dist/client/assets/visuallyHidden-BRaogTVF.js +1 -0
- package/dist/client/assets/vscode-icons-Dgo7Sslf.js +1 -0
- package/dist/client/assets/{vue-DStD_OmO.js → vue-Dt-rrFdH.js} +1 -1
- package/dist/client/assets/worker-Bs0l0ezO.js +162 -0
- package/dist/client/assets/workspaceMetadataProjection-UiprkDbH.js +1 -0
- package/dist/client/assets/wrench-mA--bcId.js +1 -0
- package/dist/client/assets/x-_SjFRYll.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/client/mockServiceWorker.js +124 -99
- package/dist/{collectUint8StreamText-D8TBiBWk.mjs → collectUint8StreamText-C_VNyArd.mjs} +614 -20
- package/dist/{collectUint8StreamText-C5fop6Zf.cjs → collectUint8StreamText-DStwNTTK.cjs} +679 -19
- package/dist/{makeManagedServerProvider-DRlNwlhe.mjs → makeManagedServerProvider-GZcpSLrW.mjs} +22 -3
- package/dist/{makeManagedServerProvider-BytnBN6b.cjs → makeManagedServerProvider-VzxWN-04.cjs} +32 -1
- package/dist/resource-monitor/LICENSE +21 -0
- package/dist/resource-monitor/darwin-arm64/LICENSE +21 -0
- package/dist/resource-monitor/darwin-arm64/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/darwin-x64/LICENSE +21 -0
- package/dist/resource-monitor/darwin-x64/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/linux-arm64/LICENSE +21 -0
- package/dist/resource-monitor/linux-arm64/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/linux-x64/LICENSE +21 -0
- package/dist/resource-monitor/linux-x64/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor +0 -0
- package/dist/resource-monitor/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-arm64/LICENSE +21 -0
- package/dist/resource-monitor/win32-arm64/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-x64/LICENSE +21 -0
- package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
- package/package.json +20 -12
- package/dist/client/assets/AccountSettings--RGb4Xyh.js +0 -1
- package/dist/client/assets/AiFocusSettings-BnGcbAMj.js +0 -1
- package/dist/client/assets/AnimatedHeight-xBldRJT_.js +0 -1
- package/dist/client/assets/AppearanceSettings-BZRfC5N0.js +0 -1
- package/dist/client/assets/BranchToolbar.logic-CGpYXkLE.js +0 -1
- package/dist/client/assets/ChatRightPanel-BlooofmF.js +0 -27
- package/dist/client/assets/ChatThreadRouteView-B28bv4Zt.js +0 -1
- package/dist/client/assets/CommandPaletteDialog-hNEraTe2.js +0 -1
- package/dist/client/assets/CompositeItem-CKY4wPzb.js +0 -1
- package/dist/client/assets/CompositeRoot-Ds7U4w5S.js +0 -1
- package/dist/client/assets/ConnectionsSettings-C4VqR67L.js +0 -7
- package/dist/client/assets/DiagnosticsSettings-ByZ42-mW.js +0 -2
- package/dist/client/assets/DialogHandle-BdmgCiER.js +0 -1
- package/dist/client/assets/DialogPopup-D6m8w7-0.js +0 -1
- package/dist/client/assets/DialogRoot-BnE2_J9j.js +0 -1
- package/dist/client/assets/DialogTitle-DFkPQ5wa.js +0 -1
- package/dist/client/assets/DialogTrigger-CTCt2xVs.js +0 -1
- package/dist/client/assets/DialogViewport-OqbNjTEg.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-B_4VVh8J.js +0 -1
- package/dist/client/assets/GlassSurface-k7VAG7Dp.js +0 -1
- package/dist/client/assets/HostedConnectionControls-D0YyFVVm.js +0 -1
- package/dist/client/assets/HostedHubRoot-gr9o6h-w.js +0 -1
- package/dist/client/assets/HostedNativeAuthorizationRoute-DQy7gPHg.js +0 -1
- package/dist/client/assets/HostedRelayTrustNotice-DtiCe1oF.js +0 -1
- package/dist/client/assets/Icons-BHigZ6eO.js +0 -1
- package/dist/client/assets/IntegrationsSettingsPanel-RgmTIo_4.js +0 -1
- package/dist/client/assets/KeybindingsSettings-2J94301x.js +0 -7
- package/dist/client/assets/McpServersSettings-Cpzyop0g.js +0 -6
- package/dist/client/assets/MobileSheet-5RNq1fWV.js +0 -1
- package/dist/client/assets/NewWorktreeDialog-BE_53fbt.js +0 -4
- package/dist/client/assets/NoActiveThreadState-Cpar0wiW.js +0 -1
- package/dist/client/assets/NodeSecuritySettings-BpZYwf5z.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-CLbbw_K_.js +0 -1
- package/dist/client/assets/PhoneGetAppInterstitial-G1mx30Rm.js +0 -1
- package/dist/client/assets/PhoneGetAppInterstitialBackdrop-nfP93au3.js +0 -1
- package/dist/client/assets/PhoneHome-D24dskaK.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-DU6QcRMa.js +0 -1
- package/dist/client/assets/ProjectFavicon-DiAvCEOv.js +0 -1
- package/dist/client/assets/ProviderModelPicker-KKoDIb0I.js +0 -1
- package/dist/client/assets/ProviderUpdateLaunchNotification.logic-BWOy8LJG.js +0 -1
- package/dist/client/assets/ProvidersSettingsPanel-Cotp9jkx.js +0 -1
- package/dist/client/assets/RedactedSensitiveText-Bijn-7t0.js +0 -1
- package/dist/client/assets/RootAppShell-BPFAVRor.js +0 -6
- package/dist/client/assets/RycoLetterMark-DDqdXSCR.js +0 -1
- package/dist/client/assets/SettingsDialog-C1pQqIpt.js +0 -1
- package/dist/client/assets/SettingsPanels-_z4Xw8vV.js +0 -3
- package/dist/client/assets/SettingsPanels.editor-CFrJ6eJl.js +0 -1
- package/dist/client/assets/SourceControlSettings-aZXtdyQJ.js +0 -1
- package/dist/client/assets/StatisticsPage-DLxnsLkl.js +0 -1
- package/dist/client/assets/StatisticsPanel-CZng52aF.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-BswiD6v1.js +0 -1
- package/dist/client/assets/ThreadStatusIndicators-Dg7ByO0t.js +0 -0
- package/dist/client/assets/ThreadTerminalDrawer-ro03rSMk.js +0 -20
- package/dist/client/assets/ThreadWorkspacePanel-j_muuK0U.js +0 -2009
- package/dist/client/assets/ToolbarRootContext-gBA5VTsh.js +0 -1
- package/dist/client/assets/WorkItemsTab-CBbr_lPX.js +0 -19
- package/dist/client/assets/actionscript-3--17pq3dv.js +0 -1
- package/dist/client/assets/activity-1CkdQG5u.js +0 -1
- package/dist/client/assets/alert-DM55UBFJ.js +0 -1
- package/dist/client/assets/alert-dialog-t0tth9lg.js +0 -1
- package/dist/client/assets/andromeeda-WkhI09AS.js +0 -1
- package/dist/client/assets/apex-VAyPSnFM.js +0 -1
- package/dist/client/assets/appearancePreferences-BhNRCg6W.js +0 -1
- package/dist/client/assets/archive-BL1hojl3.js +0 -1
- package/dist/client/assets/arrow-left-Dtj9PfsA.js +0 -1
- package/dist/client/assets/arrow-up-CTcWIlqV.js +0 -1
- package/dist/client/assets/arrow-up-right-DGeet8e6.js +0 -1
- package/dist/client/assets/asciidoc-DE70LPWp.js +0 -1
- package/dist/client/assets/aurora-x-C7CFqhAd.js +0 -1
- package/dist/client/assets/authorization-jiPI8hG1.js +0 -1
- package/dist/client/assets/ayu-dark-CRu61w6_.js +0 -1
- package/dist/client/assets/ayu-light-Dn6O_aYR.js +0 -1
- package/dist/client/assets/ayu-mirage-CTjYAbs-.js +0 -1
- package/dist/client/assets/badge-DUe5V2Mj.js +0 -1
- package/dist/client/assets/bird2-C6vDhewU.js +0 -1
- package/dist/client/assets/bot-DJp0cuhK.js +0 -1
- package/dist/client/assets/branding-31Bj-8ZC.js +0 -1
- package/dist/client/assets/bsl-BkkzgIyY.js +0 -1
- package/dist/client/assets/c3-BFHwR3_K.js +0 -1
- package/dist/client/assets/capabilities-DQDkV1US.js +0 -1
- package/dist/client/assets/catppuccin-frappe-3VR1Za6u.js +0 -1
- package/dist/client/assets/catppuccin-latte-DwIHMF0Q.js +0 -1
- package/dist/client/assets/catppuccin-macchiato-DYnBP6_5.js +0 -1
- package/dist/client/assets/catppuccin-mocha-DYhrFGRu.js +0 -1
- package/dist/client/assets/chart-column-Dw6ACmXM.js +0 -1
- package/dist/client/assets/chatThreadActions-3VwZmcuQ.js +0 -1
- package/dist/client/assets/chevron-down-B7C6FKzM.js +0 -1
- package/dist/client/assets/chevron-right-BWYGybX9.js +0 -1
- package/dist/client/assets/circle-alert-BWvs6IOn.js +0 -1
- package/dist/client/assets/clamp-CgH0Dl6R.js +0 -1
- package/dist/client/assets/clarity-SemFz856.js +0 -1
- package/dist/client/assets/clipboard-copy-C4VV20QR.js +0 -1
- package/dist/client/assets/clock-3-r12DkpRj.js +0 -1
- package/dist/client/assets/clock-nNA05brA.js +0 -1
- package/dist/client/assets/collapsible-BmAgbTeN.js +0 -1
- package/dist/client/assets/command-8YtR6jmS.js +0 -1
- package/dist/client/assets/composerDraftStore-Bz5WIZBE.js +0 -11
- package/dist/client/assets/composerHandleContext-BrQ6d8r9.js +0 -1
- package/dist/client/assets/copy-UQjKGt7t.js +0 -1
- package/dist/client/assets/coq-BrsZFFmf.js +0 -1
- package/dist/client/assets/cpp-nUc1dxUX.js +0 -1
- package/dist/client/assets/dark-plus-GAt2ZgX8.js +0 -1
- package/dist/client/assets/data-list-D7UF_rKC.js +0 -1
- package/dist/client/assets/desktopUpdateAtoms-D_GMRE2r.js +0 -1
- package/dist/client/assets/desktopWorkspace-Dg6EeBlb.js +0 -1
- package/dist/client/assets/device-DlExHdp_.js +0 -168
- package/dist/client/assets/dialog-B0sUgnpe.js +0 -1
- package/dist/client/assets/download-CQZ-m4zW.js +0 -1
- package/dist/client/assets/dracula-C2uKkzgK.js +0 -1
- package/dist/client/assets/dracula-soft-D1bVjxWZ.js +0 -1
- package/dist/client/assets/draft-input-CljKajxE.js +0 -1
- package/dist/client/assets/editorPreferences-B3qgjPa6.js +0 -1
- package/dist/client/assets/emacs-lisp-B4R74twV.js +0 -1
- package/dist/client/assets/empty-D5W-VFFg.js +0 -1
- package/dist/client/assets/env-3rzMJf1D.js +0 -1
- package/dist/client/assets/everforest-dark-D-DlICQR.js +0 -1
- package/dist/client/assets/everforest-light-CeVdGHYG.js +0 -1
- package/dist/client/assets/external-link-fbvzDWM7.js +0 -1
- package/dist/client/assets/eye-CUSPj-gd.js +0 -1
- package/dist/client/assets/folder-DtsQoI9_.js +0 -1
- package/dist/client/assets/folder-closed-CsvKfC6X.js +0 -1
- package/dist/client/assets/folder-open-GqwNTbSV.js +0 -1
- package/dist/client/assets/gdscript-Cp2uCuqX.js +0 -1
- package/dist/client/assets/getPseudoElementBounds-BAmGtfzA.js +0 -1
- package/dist/client/assets/git-branch-BKr-Ij4u.js +0 -1
- package/dist/client/assets/git-pull-request-DIYyPsg5.js +0 -1
- package/dist/client/assets/github-dark-DwbbXv51.js +0 -1
- package/dist/client/assets/github-dark-default-CxjRwzl6.js +0 -1
- package/dist/client/assets/github-dark-dimmed-Cr1oaoul.js +0 -1
- package/dist/client/assets/github-dark-high-contrast-B4qJZLZa.js +0 -1
- package/dist/client/assets/github-light-CsVXhIlR.js +0 -1
- package/dist/client/assets/github-light-default-DB_IwZa6.js +0 -1
- package/dist/client/assets/github-light-high-contrast-DLgVeSB-.js +0 -1
- package/dist/client/assets/group-BQB2fHcw.js +0 -1
- package/dist/client/assets/gruvbox-dark-hard-DXm60lX3.js +0 -1
- package/dist/client/assets/gruvbox-dark-medium-GE2thSmD.js +0 -1
- package/dist/client/assets/gruvbox-dark-soft-04Cj-4VZ.js +0 -1
- package/dist/client/assets/gruvbox-light-hard-K6wSn29D.js +0 -1
- package/dist/client/assets/gruvbox-light-medium-CVy3aSlc.js +0 -1
- package/dist/client/assets/gruvbox-light-soft-DNgJjaY0.js +0 -1
- package/dist/client/assets/hack-Vy6VBrBk.js +0 -1
- package/dist/client/assets/haxe-OTjmBuCE.js +0 -1
- package/dist/client/assets/horizon-0-RkHfro.js +0 -1
- package/dist/client/assets/horizon-bright-BgL2X9oq.js +0 -1
- package/dist/client/assets/houston-KyjWKfuY.js +0 -1
- package/dist/client/assets/hxml-B0Qn7Nwc.js +0 -1
- package/dist/client/assets/input-5Gxk32uP.js +0 -1
- package/dist/client/assets/isElementDisabled-KSuuBj8D.js +0 -1
- package/dist/client/assets/kanagawa-dragon-CXtmUGW6.js +0 -1
- package/dist/client/assets/kanagawa-lotus-BN08jTvb.js +0 -1
- package/dist/client/assets/kanagawa-wave-CTweb8Dz.js +0 -1
- package/dist/client/assets/kbd-B4HCyWpi.js +0 -1
- package/dist/client/assets/key-round-CacMputS.js +0 -1
- package/dist/client/assets/keybindings-DCgzArdM.js +0 -1
- package/dist/client/assets/keyboard-BqeRMHfL.js +0 -1
- package/dist/client/assets/label-CaZNWVUA.js +0 -1
- package/dist/client/assets/laserwave-CQkdhozh.js +0 -1
- package/dist/client/assets/latex-UxGGx4RW.js +0 -1
- package/dist/client/assets/layers-BYi0v17h.js +0 -1
- package/dist/client/assets/lib-B7pkMeOn.js +0 -29
- package/dist/client/assets/light-plus-CNQ8_7Y0.js +0 -1
- package/dist/client/assets/loader-circle-CrtHFAvM.js +0 -1
- package/dist/client/assets/loader-zHASMrUy.js +0 -1
- package/dist/client/assets/log-out-tMJm0Gk6.js +0 -1
- package/dist/client/assets/luau-FMPmPwt6.js +0 -1
- package/dist/client/assets/main-BPfnkW0F.js +0 -9
- package/dist/client/assets/main-DspUYA0Y.css +0 -2
- package/dist/client/assets/material-theme-CAtLaHa3.js +0 -1
- package/dist/client/assets/material-theme-darker-k-s5Bc6K.js +0 -1
- package/dist/client/assets/material-theme-lighter-CD6a-c4d.js +0 -1
- package/dist/client/assets/material-theme-ocean-B3mraInd.js +0 -1
- package/dist/client/assets/material-theme-palenight-DEhAARHw.js +0 -1
- package/dist/client/assets/mdc-OfbQwt23.js +0 -1
- package/dist/client/assets/menu-C9Z3D_7l.js +0 -1
- package/dist/client/assets/mermaid-Bk4SNUv9.js +0 -1
- package/dist/client/assets/messages-square-DiMgWzoq.js +0 -1
- package/dist/client/assets/min-dark-BFqTAwCr.js +0 -1
- package/dist/client/assets/min-light-O7UdaaxX.js +0 -1
- package/dist/client/assets/minimize-2-C33mL7LT.js +0 -1
- package/dist/client/assets/mojo-BgCJLMeH.js +0 -1
- package/dist/client/assets/monokai-CdkpiU2Y.js +0 -1
- package/dist/client/assets/moonbit-CaWjb8XO.js +0 -1
- package/dist/client/assets/motion-thOBhZyM.js +0 -1
- package/dist/client/assets/move-B1IS1UjX.js +0 -1
- package/dist/client/assets/night-owl-BsnCLAKc.js +0 -1
- package/dist/client/assets/night-owl-light-BODRhcTU.js +0 -1
- package/dist/client/assets/nord-Cd-F4txO.js +0 -1
- package/dist/client/assets/nushell-DcLAeLz5.js +0 -1
- package/dist/client/assets/one-dark-pro-DUS_IGRK.js +0 -1
- package/dist/client/assets/one-light-CVUd7yD5.js +0 -1
- package/dist/client/assets/palette-BSD_aJZg.js +0 -1
- package/dist/client/assets/pathEntry-BR9vr7Ug.js +0 -1
- package/dist/client/assets/pencil-B69ERoVM.js +0 -1
- package/dist/client/assets/phoneAnchoredActions-CtpkI3yG.js +0 -1
- package/dist/client/assets/plastic-CF8VZTnn.js +0 -1
- package/dist/client/assets/play-DYDxlTKo.js +0 -1
- package/dist/client/assets/plus-B2h-VEqh.js +0 -1
- package/dist/client/assets/poimandres-BX2TyY6j.js +0 -1
- package/dist/client/assets/popover-CCz2VJor.js +0 -1
- package/dist/client/assets/primary-BMsRfh2b.js +0 -2
- package/dist/client/assets/prisma-BsRQq5mF.js +0 -1
- package/dist/client/assets/projectPaths-C7IGaRXO.js +0 -1
- package/dist/client/assets/providerDriverMeta-CgWTJ9AV.js +0 -1
- package/dist/client/assets/providerIconUtils-DKIWQBl_.js +0 -1
- package/dist/client/assets/providerInstances-DTwJD7w4.js +0 -1
- package/dist/client/assets/providerModels-DTwJD7w4.js +0 -1
- package/dist/client/assets/qr-code-BPTdK_Fr.js +0 -1
- package/dist/client/assets/qr-code-ScYULAuR.js +0 -1
- package/dist/client/assets/r-DbaFp5Gj.js +0 -1
- package/dist/client/assets/radio-group-2REtGBUc.js +0 -2
- package/dist/client/assets/red-CJ3rzSJv.js +0 -1
- package/dist/client/assets/refresh-cw-DopCMrtR.js +0 -1
- package/dist/client/assets/resolveAriaLabelledBy-CPzaFh9Q.js +0 -1
- package/dist/client/assets/rightPanelRouteSearch-Cv7sQjf8.js +0 -1
- package/dist/client/assets/rose-pine-BthvhNj6.js +0 -1
- package/dist/client/assets/rose-pine-dawn-Dg85fqjY.js +0 -1
- package/dist/client/assets/rose-pine-moon-hon4tzzS.js +0 -1
- package/dist/client/assets/runtime-DAfYpzw4.js +0 -1
- package/dist/client/assets/save-Bh36JIv6.js +0 -1
- package/dist/client/assets/scroll-area-BsYcpnWD.js +0 -1
- package/dist/client/assets/scrollEdges-CUJFIJBP.js +0 -1
- package/dist/client/assets/search-BGQsenCM.js +0 -1
- package/dist/client/assets/select-zInJ5G5C.js +0 -1
- package/dist/client/assets/separator-CsdeZPxC.js +0 -1
- package/dist/client/assets/server-JApJpgLa.js +0 -1
- package/dist/client/assets/session-logic-CjEpVbpM.js +0 -6
- package/dist/client/assets/settings-2-CZQg_KUQ.js +0 -1
- package/dist/client/assets/settingsDialogStore-B7yUTgbo.js +0 -1
- package/dist/client/assets/settingsLayout-7JR7nC6x.js +0 -1
- package/dist/client/assets/settingsSections.logic-F8RXVmAq.js +0 -1
- package/dist/client/assets/shallow-DWZCFNun.js +0 -1
- package/dist/client/assets/sheet-CLd8wqAA.js +0 -1
- package/dist/client/assets/shield-IZEIJ8r7.js +0 -1
- package/dist/client/assets/shield-alert-DY9uVP5G.js +0 -1
- package/dist/client/assets/shield-check-dQ-4cMKk.js +0 -1
- package/dist/client/assets/sidebar-BliCAaUG.js +0 -1
- package/dist/client/assets/sidebarProjectFolders-ScxWbdTn.js +0 -4
- package/dist/client/assets/skeleton-B_qDqbso.js +0 -1
- package/dist/client/assets/slack-dark-DYvUXyrP.js +0 -1
- package/dist/client/assets/slack-ochin-bqtMVDfH.js +0 -1
- package/dist/client/assets/smalltalk-B16xEiuN.js +0 -1
- package/dist/client/assets/smartphone-gNe1ynB8.js +0 -1
- package/dist/client/assets/snazzy-light-D8dzFmq5.js +0 -1
- package/dist/client/assets/solarized-dark-DV17i1UV.js +0 -1
- package/dist/client/assets/solarized-light-DSh2HLQt.js +0 -1
- package/dist/client/assets/solidity-CKzVLygQ.js +0 -1
- package/dist/client/assets/sparkles-CAf3oJ5S.js +0 -1
- package/dist/client/assets/spinner-BlCG_0jN.js +0 -1
- package/dist/client/assets/square-pen-Bj3p_Q8E.js +0 -1
- package/dist/client/assets/src-Chx4ffXH.js +0 -14
- package/dist/client/assets/storeSelectors-Of4FM0vM.js +0 -1
- package/dist/client/assets/surrealql-CaZedS14.js +0 -1
- package/dist/client/assets/swift-DonLKvLd.js +0 -1
- package/dist/client/assets/switch-DUT5lUyk.js +0 -1
- package/dist/client/assets/synthwave-84-CIknw8y7.js +0 -1
- package/dist/client/assets/system-verilog-DJ5XKQeo.js +0 -1
- package/dist/client/assets/tabSwitchInstrumentation-CLDM7g1_.js +0 -1
- package/dist/client/assets/terminal-C_CyIsDD.js +0 -1
- package/dist/client/assets/terminal-links-Bxew8m4Q.js +0 -1
- package/dist/client/assets/tex-CLeF3jRN.js +0 -1
- package/dist/client/assets/textarea-C5eyaBI3.js +0 -1
- package/dist/client/assets/threadPinning-B8un4fjx.js +0 -1
- package/dist/client/assets/threadPriorityRefreshRuntime-Cgjn5Y-7.js +0 -1
- package/dist/client/assets/timestampFormat-8uPXS812.js +0 -1
- package/dist/client/assets/toast-X_O6OBAx.js +0 -1
- package/dist/client/assets/toastHelpers-CSQRKo4F.js +0 -1
- package/dist/client/assets/toggle-P-wZyQFO.js +0 -1
- package/dist/client/assets/toggle-group-Du7zfd4_.js +0 -1
- package/dist/client/assets/tokenModePresentation-lVM0-Wi3.js +0 -1
- package/dist/client/assets/tokyo-night-iIspnLcq.js +0 -1
- package/dist/client/assets/tooltip-D_i-87PL.js +0 -1
- package/dist/client/assets/trash-2-CM1zXPGb.js +0 -1
- package/dist/client/assets/triangle-alert-RL_T3KLo.js +0 -1
- package/dist/client/assets/twig-BmgBVapk.js +0 -1
- package/dist/client/assets/types-Of4FM0vM.js +0 -1
- package/dist/client/assets/typst-DI99ib-x.js +0 -1
- package/dist/client/assets/uiStateStore-UUXKrPLz.js +0 -1
- package/dist/client/assets/undo-2-x37tfI3V.js +0 -1
- package/dist/client/assets/unplug-Cw8iawyX.js +0 -1
- package/dist/client/assets/useAtlassian-BPNtoDXL.js +0 -0
- package/dist/client/assets/useButton-D8BjCVb-.js +0 -1
- package/dist/client/assets/useCompositeListItem-BHuxHR8U.js +0 -1
- package/dist/client/assets/useCopyToClipboard-BTpWxumf.js +0 -1
- package/dist/client/assets/useDebouncedValue-D2-9M4Tq.js +0 -1
- package/dist/client/assets/useFloatingRootContext-CTdmlYcf.js +0 -1
- package/dist/client/assets/useHandleNewThread-YGjWitl4.js +0 -1
- package/dist/client/assets/useLabelableId-LInf_Egz.js +0 -1
- package/dist/client/assets/useLocation-3zGT25DO.js +0 -1
- package/dist/client/assets/useOpenInteractionType-BPthQeg6.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-D_Z29f6p.js +0 -1
- package/dist/client/assets/usePopupViewport-BErrsN0k.js +0 -1
- package/dist/client/assets/useRenderElement-DchFnsR8.js +0 -1
- package/dist/client/assets/useScrollLock-CLyJPg7p.js +0 -1
- package/dist/client/assets/useStatistics-BQkcb-1_.js +0 -55
- package/dist/client/assets/useSwipeDismiss-DjMT1XiU.js +0 -1
- package/dist/client/assets/useThreadActions-ISbVGkmx.js +0 -2
- package/dist/client/assets/useTriggerFocusGuards-DwOHWbrB.js +0 -1
- package/dist/client/assets/useValueChanged-Bq39JB8D.js +0 -1
- package/dist/client/assets/user-round-Cpzx8pSw.js +0 -1
- package/dist/client/assets/utils-BFbDkTQq.js +0 -1
- package/dist/client/assets/verilog-CiiDBU1e.js +0 -1
- package/dist/client/assets/vesper-BIFK_oDq.js +0 -1
- package/dist/client/assets/visibilityPolling-BwzZdaSN.js +0 -1
- package/dist/client/assets/vitesse-black-D082JcaE.js +0 -1
- package/dist/client/assets/vitesse-dark-z-nr_5O8.js +0 -1
- package/dist/client/assets/vitesse-light-ojz42ZLy.js +0 -1
- package/dist/client/assets/vscode-icons-D3XEYHTI.js +0 -1
- package/dist/client/assets/worker-B0IAubm_.js +0 -161
- package/dist/client/assets/wrench-D0IetWa1.js +0 -1
- package/dist/client/assets/x-C1Cemsov.js +0 -1
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $
|
|
4
|
-
import { st as ServerConfig } from "./Metrics-
|
|
5
|
-
import { $ as
|
|
6
|
-
import { n as requireRuntimeSessionId, r as stampRuntimeEvent, t as makeManagedServerProvider } from "./makeManagedServerProvider-
|
|
3
|
+
import { $a as ProviderInstanceId, Ja as DEFAULT_GIT_TEXT_GENERATION_OPTIONS_BY_PROVIDER, Ln as TextGenerationError, Qa as ProviderDriverKind, _s as TurnId, ds as RuntimeRequestId, ir as CopilotSettings, ki as PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES, ls as ProviderItemId, ms as RuntimeTaskId, qa as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, rr as CodexSettings, rs as EventId, us as RuntimeItemId } from "./collectUint8StreamText-C_VNyArd.mjs";
|
|
4
|
+
import { st as ServerConfig } from "./Metrics-a1h4iBQi.mjs";
|
|
5
|
+
import { $ as mergeProviderInstanceEnvironment, Ct as ProviderAdapterSessionNotFoundError, F as validateRankInboxThreadsResult, H as buildThreadTitlePrompt, M as makeEventNdjsonLogger, Qn as readPersistedAttachment, Tt as ProviderDriverError, U as extractJsonObject, Un as makeManualOnlyProviderMaintenanceCapabilities, V as buildThreadPriorityPrompt, Zn as isPersistableChatAttachment, _t as installAgentControlNativeHttp, at as buildSelectOptionDescriptor, bt as ProviderAdapterProcessError, cr as getProviderOptionStringSelectionValue, er as resolveCommandPath, ft as providerModelsFromSettings, ht as agentControlHostContext, ir as getModelSelectionStringOptionValue, j as ProviderEventLoggers, lt as isCommandMissingCause, mt as AGENT_CONTROL_INTERNAL_SERVER_NAME, n as AgentControlSessionRegistry, nr as createModelCapabilities, ot as buildServerProvider, q as sanitizeThreadTitle, t as makeServerQueueMetrics, vt as redactAgentControlSecrets, wt as ProviderAdapterValidationError, xt as ProviderAdapterRequestError, yt as createProcessDeviceToolBinding } from "./bin.mjs";
|
|
6
|
+
import { a as formatAttachmentPathLines, i as appendAttachmentPathLines, n as requireRuntimeSessionId, r as stampRuntimeEvent, t as makeManagedServerProvider } from "./makeManagedServerProvider-GZcpSLrW.mjs";
|
|
7
7
|
import { t as defaultProviderContinuationIdentity } from "./ProviderDriver-kCV60GKk.mjs";
|
|
8
|
-
import { t as makeCodexTextGeneration } from "./CodexTextGeneration-
|
|
8
|
+
import { t as makeCodexTextGeneration } from "./CodexTextGeneration-Cw-FZbSS.mjs";
|
|
9
9
|
import { Effect, Option, Queue, Result, Schema, Stream } from "effect";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import "effect/unstable/process";
|
|
12
12
|
import { CopilotClient, RuntimeConnection } from "@github/copilot-sdk";
|
|
13
|
+
//#region src/provider/Layers/CopilotAdapter.eventScope.ts
|
|
14
|
+
/** Wildcard SDK subscriptions include child events, including their turn and abort events. */
|
|
15
|
+
function isCopilotChildEvent(event) {
|
|
16
|
+
return Boolean(event.agentId || "parentToolCallId" in event.data && event.data.parentToolCallId);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
13
19
|
//#region src/provider/Layers/CopilotAdapter.types.ts
|
|
14
20
|
const COPILOT_DRIVER_KIND = ProviderDriverKind.make("copilot");
|
|
15
21
|
const DEFAULT_BINARY_PATH = "copilot";
|
|
@@ -200,6 +206,9 @@ function selectionTargetsCopilotInstance(value, instanceId) {
|
|
|
200
206
|
}
|
|
201
207
|
//#endregion
|
|
202
208
|
//#region src/provider/Layers/CopilotAdapter.mapEvent.ts
|
|
209
|
+
function nonNegativeCount(value) {
|
|
210
|
+
return value !== void 0 && Number.isSafeInteger(value) && value >= 0 ? value : void 0;
|
|
211
|
+
}
|
|
203
212
|
const mapEvent = (deps, session, event) => Effect.gen(function* () {
|
|
204
213
|
const turnId = session.activeTurnId;
|
|
205
214
|
const stamp = yield* deps.makeEventStamp();
|
|
@@ -208,6 +217,57 @@ const mapEvent = (deps, session, event) => Effect.gen(function* () {
|
|
|
208
217
|
method: event.type,
|
|
209
218
|
payload: event
|
|
210
219
|
};
|
|
220
|
+
if (event.type === "subagent.started" || event.type === "subagent.completed" || event.type === "subagent.failed") {
|
|
221
|
+
const data = event.data;
|
|
222
|
+
const linkage = {
|
|
223
|
+
taskId: RuntimeTaskId.make(`copilot-task:${data.toolCallId}`),
|
|
224
|
+
taskType: "subagent",
|
|
225
|
+
title: data.agentDisplayName.trim() || data.agentName.trim() || "Copilot agent",
|
|
226
|
+
...data.agentName.trim() ? { role: data.agentName.trim() } : {},
|
|
227
|
+
...data.model?.trim() ? { model: data.model.trim() } : {},
|
|
228
|
+
toolUseId: data.toolCallId
|
|
229
|
+
};
|
|
230
|
+
const base = eventBase({
|
|
231
|
+
eventId: stamp.eventId,
|
|
232
|
+
createdAt: event.timestamp,
|
|
233
|
+
threadId: session.threadId,
|
|
234
|
+
providerInstanceId: session.providerInstanceId,
|
|
235
|
+
...turnId ? { turnId } : {},
|
|
236
|
+
raw
|
|
237
|
+
});
|
|
238
|
+
if (event.type === "subagent.started") return [{
|
|
239
|
+
...base,
|
|
240
|
+
type: "task.started",
|
|
241
|
+
payload: {
|
|
242
|
+
...linkage,
|
|
243
|
+
...event.data.agentDescription.trim() ? { description: event.data.agentDescription.trim() } : {}
|
|
244
|
+
}
|
|
245
|
+
}];
|
|
246
|
+
const terminal = event.data;
|
|
247
|
+
const totalTokens = nonNegativeCount(terminal.totalTokens);
|
|
248
|
+
const toolUses = nonNegativeCount(terminal.totalToolCalls);
|
|
249
|
+
const durationMs = nonNegativeCount(terminal.durationMs);
|
|
250
|
+
const usage = {
|
|
251
|
+
...totalTokens !== void 0 ? { totalTokens } : {},
|
|
252
|
+
...toolUses !== void 0 ? { toolUses } : {},
|
|
253
|
+
...durationMs !== void 0 ? { durationMs } : {}
|
|
254
|
+
};
|
|
255
|
+
return [{
|
|
256
|
+
...base,
|
|
257
|
+
type: "task.completed",
|
|
258
|
+
payload: {
|
|
259
|
+
...linkage,
|
|
260
|
+
status: event.type === "subagent.failed" ? "failed" : event.data.cancelled ? "stopped" : "completed",
|
|
261
|
+
...event.type === "subagent.failed" && event.data.error.trim() ? { summary: event.data.error.trim() } : {},
|
|
262
|
+
...Object.keys(usage).length > 0 ? { usage } : {},
|
|
263
|
+
...totalTokens !== void 0 ? { typedUsage: {
|
|
264
|
+
...usage,
|
|
265
|
+
totalTokens
|
|
266
|
+
} } : {}
|
|
267
|
+
}
|
|
268
|
+
}];
|
|
269
|
+
}
|
|
270
|
+
if (isCopilotChildEvent(event)) return [];
|
|
211
271
|
switch (event.type) {
|
|
212
272
|
case "assistant.turn_start": {
|
|
213
273
|
const eventTurnId = TurnId.make(event.data.turnId);
|
|
@@ -294,18 +354,40 @@ const mapEvent = (deps, session, event) => Effect.gen(function* () {
|
|
|
294
354
|
data: event.data
|
|
295
355
|
}
|
|
296
356
|
}];
|
|
297
|
-
case "
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
357
|
+
case "session.usage_info":
|
|
358
|
+
case "assistant.usage":
|
|
359
|
+
if (event.type === "session.usage_info") {
|
|
360
|
+
const { currentTokens, tokenLimit } = event.data;
|
|
361
|
+
if (!Number.isSafeInteger(currentTokens) || currentTokens < 0 || !Number.isSafeInteger(tokenLimit) || tokenLimit <= 0) return [];
|
|
362
|
+
session.contextUsage = {
|
|
363
|
+
usedTokens: currentTokens,
|
|
364
|
+
maxTokens: tokenLimit
|
|
365
|
+
};
|
|
366
|
+
session.lastUsage = {
|
|
367
|
+
...session.lastUsage,
|
|
368
|
+
...session.contextUsage,
|
|
369
|
+
lastUsedTokens: currentTokens
|
|
370
|
+
};
|
|
371
|
+
} else {
|
|
372
|
+
if (event.data.parentToolCallId || event.data.initiator || event.data.interactionType && !["conversation-agent", "conversation-user"].includes(event.data.interactionType)) return [];
|
|
373
|
+
session.lastUsage = {
|
|
374
|
+
...normalizeUsage(event),
|
|
375
|
+
...session.contextUsage,
|
|
376
|
+
...session.contextUsage ? { lastUsedTokens: session.contextUsage.usedTokens } : {}
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
return [{
|
|
380
|
+
...eventBase({
|
|
381
|
+
eventId: stamp.eventId,
|
|
382
|
+
createdAt: event.timestamp,
|
|
383
|
+
threadId: session.threadId,
|
|
384
|
+
providerInstanceId: session.providerInstanceId,
|
|
385
|
+
...turnId ? { turnId } : {},
|
|
386
|
+
raw
|
|
387
|
+
}),
|
|
388
|
+
type: "thread.token-usage.updated",
|
|
389
|
+
payload: { usage: session.lastUsage }
|
|
390
|
+
}];
|
|
309
391
|
case "session.idle": {
|
|
310
392
|
const readyEventId = yield* deps.nextEventId;
|
|
311
393
|
return [{
|
|
@@ -456,7 +538,7 @@ function parseResumeCursor(resumeCursor) {
|
|
|
456
538
|
return typeof resumeCursor === "object" && resumeCursor !== null && "sessionId" in resumeCursor && typeof resumeCursor.sessionId === "string" && resumeCursor.sessionId.trim().length > 0 ? resumeCursor.sessionId.trim() : void 0;
|
|
457
539
|
}
|
|
458
540
|
function attachmentMimeType(attachment) {
|
|
459
|
-
return attachment.mimeType;
|
|
541
|
+
return attachment.mimeType ?? "application/octet-stream";
|
|
460
542
|
}
|
|
461
543
|
function createTurnStartWaiter(record) {
|
|
462
544
|
let timeout;
|
|
@@ -614,8 +696,10 @@ const makeStartSession = (deps) => (input) => Effect.gen(function* () {
|
|
|
614
696
|
attachSession: (nextSession) => {
|
|
615
697
|
record.unsubscribe();
|
|
616
698
|
record.session = nextSession;
|
|
699
|
+
delete record.contextUsage;
|
|
700
|
+
record.lastUsage = void 0;
|
|
617
701
|
record.unsubscribe = nextSession.on((event) => {
|
|
618
|
-
if (event.type === "assistant.turn_start") {
|
|
702
|
+
if (event.type === "assistant.turn_start" && !isCopilotChildEvent(event)) {
|
|
619
703
|
activeTurn = TurnId.make(event.data.turnId);
|
|
620
704
|
record.activeTurnId = activeTurn;
|
|
621
705
|
for (const pending of Array.from(record.pendingTurnStarts)) pending.resolve(activeTurn);
|
|
@@ -667,14 +751,19 @@ const makeStartSession = (deps) => (input) => Effect.gen(function* () {
|
|
|
667
751
|
}).pipe(Effect.onError(() => Effect.sync(() => deps.sessions.get(input.threadId)?.agentControl).pipe(Effect.flatMap((connection) => connection ? connection.revoke("runtime-teardown") : Effect.void))));
|
|
668
752
|
const makeSendTurn = (deps) => (input) => Effect.gen(function* () {
|
|
669
753
|
const record = yield* deps.requireSession(input.threadId);
|
|
670
|
-
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + attachment.sizeBytes, 0);
|
|
754
|
+
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + (attachment.sizeBytes ?? 0), 0);
|
|
671
755
|
if (declaredAttachmentBytes > 52428800) return yield* new ProviderAdapterRequestError({
|
|
672
756
|
provider: COPILOT_DRIVER_KIND,
|
|
673
757
|
method: "session.send",
|
|
674
758
|
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
675
759
|
});
|
|
676
760
|
let attachmentTotalBytes = 0;
|
|
677
|
-
const
|
|
761
|
+
const pathLineEntries = [];
|
|
762
|
+
const attachments = (yield* Effect.forEach(input.attachments ?? [], (attachment) => Effect.gen(function* () {
|
|
763
|
+
if (!isPersistableChatAttachment(attachment)) {
|
|
764
|
+
pathLineEntries.push({ attachment });
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
678
767
|
const persisted = readPersistedAttachment({
|
|
679
768
|
attachmentsDir: deps.serverConfig.attachmentsDir,
|
|
680
769
|
attachment
|
|
@@ -696,7 +785,7 @@ const makeSendTurn = (deps) => (input) => Effect.gen(function* () {
|
|
|
696
785
|
mimeType: attachmentMimeType(attachment),
|
|
697
786
|
displayName: attachment.name
|
|
698
787
|
};
|
|
699
|
-
}));
|
|
788
|
+
}))).filter((attachment) => attachment !== null);
|
|
700
789
|
const copilotModelSelection = selectionTargetsCopilotInstance(input.modelSelection, deps.instanceId) ? input.modelSelection : void 0;
|
|
701
790
|
if (copilotModelSelection) {
|
|
702
791
|
record.model = copilotModelSelection.model;
|
|
@@ -723,7 +812,7 @@ const makeSendTurn = (deps) => (input) => Effect.gen(function* () {
|
|
|
723
812
|
}
|
|
724
813
|
record.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
725
814
|
const sendPayload = {
|
|
726
|
-
prompt: input.input ?? "",
|
|
815
|
+
prompt: appendAttachmentPathLines(input.input ?? "", formatAttachmentPathLines(pathLineEntries)) ?? "",
|
|
727
816
|
...attachments.length > 0 ? { attachments } : {},
|
|
728
817
|
mode: "immediate"
|
|
729
818
|
};
|
|
@@ -913,6 +1002,15 @@ const makeCopilotAdapter = Effect.fn("makeCopilotAdapter")(function* (copilotSet
|
|
|
913
1002
|
nextEventId
|
|
914
1003
|
};
|
|
915
1004
|
const handleEvent = Effect.fn("handleCopilotEvent")(function* (session, event) {
|
|
1005
|
+
if (isCopilotChildEvent(event)) {
|
|
1006
|
+
yield* logNativeEvent(session.threadId, event);
|
|
1007
|
+
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) => stampRuntimeEvent(runtimeEvent, {
|
|
1008
|
+
providerInstanceId: instanceId,
|
|
1009
|
+
runtimeSessionId: session.runtimeSessionId
|
|
1010
|
+
}));
|
|
1011
|
+
if (mapped.length > 0) yield* emit(mapped);
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
916
1014
|
session.updatedAt = event.timestamp;
|
|
917
1015
|
const clearsActiveTurn = event.type === "session.idle" || event.type === "abort";
|
|
918
1016
|
if (event.type === "assistant.turn_start") {
|
|
@@ -927,7 +1025,6 @@ const makeCopilotAdapter = Effect.fn("makeCopilotAdapter")(function* (copilotSet
|
|
|
927
1025
|
session.turns.at(-1)?.items.push(event);
|
|
928
1026
|
} else if (event.type === "assistant.message_delta" || event.type === "assistant.reasoning" || event.type === "assistant.reasoning_delta" || event.type === "assistant.usage" || event.type === "tool.execution_start" || event.type === "tool.execution_complete" || event.type === "user_input.requested" || event.type === "user_input.completed") session.turns.at(-1)?.items.push(event);
|
|
929
1027
|
else if (event.type === "session.idle" || event.type === "abort" || event.type === "assistant.turn_end" || event.type === "session.error") session.turns.at(-1)?.items.push(event);
|
|
930
|
-
if (event.type === "assistant.usage") session.lastUsage = normalizeUsage(event);
|
|
931
1028
|
if (event.type === "session.error") {
|
|
932
1029
|
session.lastError = event.data.message;
|
|
933
1030
|
if (session.agentControl) yield* session.agentControl.revoke("runtime-teardown");
|
|
@@ -1265,11 +1362,13 @@ function mapCopilotModelCapabilities(model) {
|
|
|
1265
1362
|
})] });
|
|
1266
1363
|
}
|
|
1267
1364
|
function mapCopilotModel(model) {
|
|
1365
|
+
const maxContextTokens = model.capabilities.limits?.max_context_window_tokens;
|
|
1268
1366
|
return {
|
|
1269
1367
|
slug: model.id,
|
|
1270
1368
|
name: model.name,
|
|
1271
1369
|
isCustom: false,
|
|
1272
|
-
capabilities: mapCopilotModelCapabilities(model)
|
|
1370
|
+
capabilities: mapCopilotModelCapabilities(model),
|
|
1371
|
+
...Number.isSafeInteger(maxContextTokens) && maxContextTokens > 0 ? { maxContextTokens } : {}
|
|
1273
1372
|
};
|
|
1274
1373
|
}
|
|
1275
1374
|
function formatCopilotAuthLabel(authType) {
|
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
4
|
-
const require_Metrics = require("./Metrics-
|
|
3
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-DStwNTTK.cjs");
|
|
4
|
+
const require_Metrics = require("./Metrics-Bcb9vCAe.cjs");
|
|
5
5
|
const require_bin = require("./bin.cjs");
|
|
6
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
6
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-VzxWN-04.cjs");
|
|
7
7
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
8
|
-
const require_CodexTextGeneration = require("./CodexTextGeneration-
|
|
8
|
+
const require_CodexTextGeneration = require("./CodexTextGeneration-tlfe1S5W.cjs");
|
|
9
9
|
let effect = require("effect");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
require("effect/unstable/process");
|
|
12
12
|
let _github_copilot_sdk = require("@github/copilot-sdk");
|
|
13
|
+
//#region src/provider/Layers/CopilotAdapter.eventScope.ts
|
|
14
|
+
/** Wildcard SDK subscriptions include child events, including their turn and abort events. */
|
|
15
|
+
function isCopilotChildEvent(event) {
|
|
16
|
+
return Boolean(event.agentId || "parentToolCallId" in event.data && event.data.parentToolCallId);
|
|
17
|
+
}
|
|
18
|
+
//#endregion
|
|
13
19
|
//#region src/provider/Layers/CopilotAdapter.types.ts
|
|
14
20
|
const COPILOT_DRIVER_KIND = require_collectUint8StreamText.ProviderDriverKind.make("copilot");
|
|
15
21
|
const DEFAULT_BINARY_PATH = "copilot";
|
|
@@ -200,6 +206,9 @@ function selectionTargetsCopilotInstance(value, instanceId) {
|
|
|
200
206
|
}
|
|
201
207
|
//#endregion
|
|
202
208
|
//#region src/provider/Layers/CopilotAdapter.mapEvent.ts
|
|
209
|
+
function nonNegativeCount(value) {
|
|
210
|
+
return value !== void 0 && Number.isSafeInteger(value) && value >= 0 ? value : void 0;
|
|
211
|
+
}
|
|
203
212
|
const mapEvent = (deps, session, event) => effect.Effect.gen(function* () {
|
|
204
213
|
const turnId = session.activeTurnId;
|
|
205
214
|
const stamp = yield* deps.makeEventStamp();
|
|
@@ -208,6 +217,57 @@ const mapEvent = (deps, session, event) => effect.Effect.gen(function* () {
|
|
|
208
217
|
method: event.type,
|
|
209
218
|
payload: event
|
|
210
219
|
};
|
|
220
|
+
if (event.type === "subagent.started" || event.type === "subagent.completed" || event.type === "subagent.failed") {
|
|
221
|
+
const data = event.data;
|
|
222
|
+
const linkage = {
|
|
223
|
+
taskId: require_collectUint8StreamText.RuntimeTaskId.make(`copilot-task:${data.toolCallId}`),
|
|
224
|
+
taskType: "subagent",
|
|
225
|
+
title: data.agentDisplayName.trim() || data.agentName.trim() || "Copilot agent",
|
|
226
|
+
...data.agentName.trim() ? { role: data.agentName.trim() } : {},
|
|
227
|
+
...data.model?.trim() ? { model: data.model.trim() } : {},
|
|
228
|
+
toolUseId: data.toolCallId
|
|
229
|
+
};
|
|
230
|
+
const base = eventBase({
|
|
231
|
+
eventId: stamp.eventId,
|
|
232
|
+
createdAt: event.timestamp,
|
|
233
|
+
threadId: session.threadId,
|
|
234
|
+
providerInstanceId: session.providerInstanceId,
|
|
235
|
+
...turnId ? { turnId } : {},
|
|
236
|
+
raw
|
|
237
|
+
});
|
|
238
|
+
if (event.type === "subagent.started") return [{
|
|
239
|
+
...base,
|
|
240
|
+
type: "task.started",
|
|
241
|
+
payload: {
|
|
242
|
+
...linkage,
|
|
243
|
+
...event.data.agentDescription.trim() ? { description: event.data.agentDescription.trim() } : {}
|
|
244
|
+
}
|
|
245
|
+
}];
|
|
246
|
+
const terminal = event.data;
|
|
247
|
+
const totalTokens = nonNegativeCount(terminal.totalTokens);
|
|
248
|
+
const toolUses = nonNegativeCount(terminal.totalToolCalls);
|
|
249
|
+
const durationMs = nonNegativeCount(terminal.durationMs);
|
|
250
|
+
const usage = {
|
|
251
|
+
...totalTokens !== void 0 ? { totalTokens } : {},
|
|
252
|
+
...toolUses !== void 0 ? { toolUses } : {},
|
|
253
|
+
...durationMs !== void 0 ? { durationMs } : {}
|
|
254
|
+
};
|
|
255
|
+
return [{
|
|
256
|
+
...base,
|
|
257
|
+
type: "task.completed",
|
|
258
|
+
payload: {
|
|
259
|
+
...linkage,
|
|
260
|
+
status: event.type === "subagent.failed" ? "failed" : event.data.cancelled ? "stopped" : "completed",
|
|
261
|
+
...event.type === "subagent.failed" && event.data.error.trim() ? { summary: event.data.error.trim() } : {},
|
|
262
|
+
...Object.keys(usage).length > 0 ? { usage } : {},
|
|
263
|
+
...totalTokens !== void 0 ? { typedUsage: {
|
|
264
|
+
...usage,
|
|
265
|
+
totalTokens
|
|
266
|
+
} } : {}
|
|
267
|
+
}
|
|
268
|
+
}];
|
|
269
|
+
}
|
|
270
|
+
if (isCopilotChildEvent(event)) return [];
|
|
211
271
|
switch (event.type) {
|
|
212
272
|
case "assistant.turn_start": {
|
|
213
273
|
const eventTurnId = require_collectUint8StreamText.TurnId.make(event.data.turnId);
|
|
@@ -294,18 +354,40 @@ const mapEvent = (deps, session, event) => effect.Effect.gen(function* () {
|
|
|
294
354
|
data: event.data
|
|
295
355
|
}
|
|
296
356
|
}];
|
|
297
|
-
case "
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
357
|
+
case "session.usage_info":
|
|
358
|
+
case "assistant.usage":
|
|
359
|
+
if (event.type === "session.usage_info") {
|
|
360
|
+
const { currentTokens, tokenLimit } = event.data;
|
|
361
|
+
if (!Number.isSafeInteger(currentTokens) || currentTokens < 0 || !Number.isSafeInteger(tokenLimit) || tokenLimit <= 0) return [];
|
|
362
|
+
session.contextUsage = {
|
|
363
|
+
usedTokens: currentTokens,
|
|
364
|
+
maxTokens: tokenLimit
|
|
365
|
+
};
|
|
366
|
+
session.lastUsage = {
|
|
367
|
+
...session.lastUsage,
|
|
368
|
+
...session.contextUsage,
|
|
369
|
+
lastUsedTokens: currentTokens
|
|
370
|
+
};
|
|
371
|
+
} else {
|
|
372
|
+
if (event.data.parentToolCallId || event.data.initiator || event.data.interactionType && !["conversation-agent", "conversation-user"].includes(event.data.interactionType)) return [];
|
|
373
|
+
session.lastUsage = {
|
|
374
|
+
...normalizeUsage(event),
|
|
375
|
+
...session.contextUsage,
|
|
376
|
+
...session.contextUsage ? { lastUsedTokens: session.contextUsage.usedTokens } : {}
|
|
377
|
+
};
|
|
378
|
+
}
|
|
379
|
+
return [{
|
|
380
|
+
...eventBase({
|
|
381
|
+
eventId: stamp.eventId,
|
|
382
|
+
createdAt: event.timestamp,
|
|
383
|
+
threadId: session.threadId,
|
|
384
|
+
providerInstanceId: session.providerInstanceId,
|
|
385
|
+
...turnId ? { turnId } : {},
|
|
386
|
+
raw
|
|
387
|
+
}),
|
|
388
|
+
type: "thread.token-usage.updated",
|
|
389
|
+
payload: { usage: session.lastUsage }
|
|
390
|
+
}];
|
|
309
391
|
case "session.idle": {
|
|
310
392
|
const readyEventId = yield* deps.nextEventId;
|
|
311
393
|
return [{
|
|
@@ -456,7 +538,7 @@ function parseResumeCursor(resumeCursor) {
|
|
|
456
538
|
return typeof resumeCursor === "object" && resumeCursor !== null && "sessionId" in resumeCursor && typeof resumeCursor.sessionId === "string" && resumeCursor.sessionId.trim().length > 0 ? resumeCursor.sessionId.trim() : void 0;
|
|
457
539
|
}
|
|
458
540
|
function attachmentMimeType(attachment) {
|
|
459
|
-
return attachment.mimeType;
|
|
541
|
+
return attachment.mimeType ?? "application/octet-stream";
|
|
460
542
|
}
|
|
461
543
|
function createTurnStartWaiter(record) {
|
|
462
544
|
let timeout;
|
|
@@ -614,8 +696,10 @@ const makeStartSession = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
614
696
|
attachSession: (nextSession) => {
|
|
615
697
|
record.unsubscribe();
|
|
616
698
|
record.session = nextSession;
|
|
699
|
+
delete record.contextUsage;
|
|
700
|
+
record.lastUsage = void 0;
|
|
617
701
|
record.unsubscribe = nextSession.on((event) => {
|
|
618
|
-
if (event.type === "assistant.turn_start") {
|
|
702
|
+
if (event.type === "assistant.turn_start" && !isCopilotChildEvent(event)) {
|
|
619
703
|
activeTurn = require_collectUint8StreamText.TurnId.make(event.data.turnId);
|
|
620
704
|
record.activeTurnId = activeTurn;
|
|
621
705
|
for (const pending of Array.from(record.pendingTurnStarts)) pending.resolve(activeTurn);
|
|
@@ -667,14 +751,19 @@ const makeStartSession = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
667
751
|
}).pipe(effect.Effect.onError(() => effect.Effect.sync(() => deps.sessions.get(input.threadId)?.agentControl).pipe(effect.Effect.flatMap((connection) => connection ? connection.revoke("runtime-teardown") : effect.Effect.void))));
|
|
668
752
|
const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
669
753
|
const record = yield* deps.requireSession(input.threadId);
|
|
670
|
-
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + attachment.sizeBytes, 0);
|
|
754
|
+
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + (attachment.sizeBytes ?? 0), 0);
|
|
671
755
|
if (declaredAttachmentBytes > 52428800) return yield* new require_bin.ProviderAdapterRequestError({
|
|
672
756
|
provider: COPILOT_DRIVER_KIND,
|
|
673
757
|
method: "session.send",
|
|
674
758
|
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${require_collectUint8StreamText.PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
675
759
|
});
|
|
676
760
|
let attachmentTotalBytes = 0;
|
|
677
|
-
const
|
|
761
|
+
const pathLineEntries = [];
|
|
762
|
+
const attachments = (yield* effect.Effect.forEach(input.attachments ?? [], (attachment) => effect.Effect.gen(function* () {
|
|
763
|
+
if (!require_bin.isPersistableChatAttachment(attachment)) {
|
|
764
|
+
pathLineEntries.push({ attachment });
|
|
765
|
+
return null;
|
|
766
|
+
}
|
|
678
767
|
const persisted = require_bin.readPersistedAttachment({
|
|
679
768
|
attachmentsDir: deps.serverConfig.attachmentsDir,
|
|
680
769
|
attachment
|
|
@@ -696,7 +785,7 @@ const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
696
785
|
mimeType: attachmentMimeType(attachment),
|
|
697
786
|
displayName: attachment.name
|
|
698
787
|
};
|
|
699
|
-
}));
|
|
788
|
+
}))).filter((attachment) => attachment !== null);
|
|
700
789
|
const copilotModelSelection = selectionTargetsCopilotInstance(input.modelSelection, deps.instanceId) ? input.modelSelection : void 0;
|
|
701
790
|
if (copilotModelSelection) {
|
|
702
791
|
record.model = copilotModelSelection.model;
|
|
@@ -723,7 +812,7 @@ const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
723
812
|
}
|
|
724
813
|
record.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
725
814
|
const sendPayload = {
|
|
726
|
-
prompt: input.input ?? "",
|
|
815
|
+
prompt: require_makeManagedServerProvider.appendAttachmentPathLines(input.input ?? "", require_makeManagedServerProvider.formatAttachmentPathLines(pathLineEntries)) ?? "",
|
|
727
816
|
...attachments.length > 0 ? { attachments } : {},
|
|
728
817
|
mode: "immediate"
|
|
729
818
|
};
|
|
@@ -913,6 +1002,15 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
913
1002
|
nextEventId
|
|
914
1003
|
};
|
|
915
1004
|
const handleEvent = effect.Effect.fn("handleCopilotEvent")(function* (session, event) {
|
|
1005
|
+
if (isCopilotChildEvent(event)) {
|
|
1006
|
+
yield* logNativeEvent(session.threadId, event);
|
|
1007
|
+
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) => require_makeManagedServerProvider.stampRuntimeEvent(runtimeEvent, {
|
|
1008
|
+
providerInstanceId: instanceId,
|
|
1009
|
+
runtimeSessionId: session.runtimeSessionId
|
|
1010
|
+
}));
|
|
1011
|
+
if (mapped.length > 0) yield* emit(mapped);
|
|
1012
|
+
return;
|
|
1013
|
+
}
|
|
916
1014
|
session.updatedAt = event.timestamp;
|
|
917
1015
|
const clearsActiveTurn = event.type === "session.idle" || event.type === "abort";
|
|
918
1016
|
if (event.type === "assistant.turn_start") {
|
|
@@ -927,7 +1025,6 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
927
1025
|
session.turns.at(-1)?.items.push(event);
|
|
928
1026
|
} else if (event.type === "assistant.message_delta" || event.type === "assistant.reasoning" || event.type === "assistant.reasoning_delta" || event.type === "assistant.usage" || event.type === "tool.execution_start" || event.type === "tool.execution_complete" || event.type === "user_input.requested" || event.type === "user_input.completed") session.turns.at(-1)?.items.push(event);
|
|
929
1027
|
else if (event.type === "session.idle" || event.type === "abort" || event.type === "assistant.turn_end" || event.type === "session.error") session.turns.at(-1)?.items.push(event);
|
|
930
|
-
if (event.type === "assistant.usage") session.lastUsage = normalizeUsage(event);
|
|
931
1028
|
if (event.type === "session.error") {
|
|
932
1029
|
session.lastError = event.data.message;
|
|
933
1030
|
if (session.agentControl) yield* session.agentControl.revoke("runtime-teardown");
|
|
@@ -1265,11 +1362,13 @@ function mapCopilotModelCapabilities(model) {
|
|
|
1265
1362
|
})] });
|
|
1266
1363
|
}
|
|
1267
1364
|
function mapCopilotModel(model) {
|
|
1365
|
+
const maxContextTokens = model.capabilities.limits?.max_context_window_tokens;
|
|
1268
1366
|
return {
|
|
1269
1367
|
slug: model.id,
|
|
1270
1368
|
name: model.name,
|
|
1271
1369
|
isCustom: false,
|
|
1272
|
-
capabilities: mapCopilotModelCapabilities(model)
|
|
1370
|
+
capabilities: mapCopilotModelCapabilities(model),
|
|
1371
|
+
...Number.isSafeInteger(maxContextTokens) && maxContextTokens > 0 ? { maxContextTokens } : {}
|
|
1273
1372
|
};
|
|
1274
1373
|
}
|
|
1275
1374
|
function formatCopilotAuthLabel(authType) {
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require("./rolldown-runtime-LGfotAqq.cjs");
|
|
4
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
5
|
-
const require_Metrics = require("./Metrics-
|
|
4
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-DStwNTTK.cjs");
|
|
5
|
+
const require_Metrics = require("./Metrics-Bcb9vCAe.cjs");
|
|
6
6
|
const require_bin = require("./bin.cjs");
|
|
7
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
7
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-VzxWN-04.cjs");
|
|
8
8
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
9
|
-
const require_AcpNativeLogging = require("./AcpNativeLogging-
|
|
9
|
+
const require_AcpNativeLogging = require("./AcpNativeLogging-COepku4a.cjs");
|
|
10
10
|
let effect = require("effect");
|
|
11
11
|
let effect_unstable_http = require("effect/unstable/http");
|
|
12
12
|
let node_path = require("node:path");
|
|
@@ -1036,66 +1036,6 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1036
1036
|
runtimeSessionId
|
|
1037
1037
|
})).pipe(effect.Effect.asVoid);
|
|
1038
1038
|
};
|
|
1039
|
-
const offerAcpSubagentRuntimeEvents = effect.Effect.fn("offerAcpSubagentRuntimeEvents")(function* (ctx, subagentState, rawPayload) {
|
|
1040
|
-
if (!subagentState) return;
|
|
1041
|
-
const subagentId = String(subagentState.subagent.subagentId);
|
|
1042
|
-
if (!ctx.startedSubagentIds.has(subagentId)) {
|
|
1043
|
-
ctx.startedSubagentIds.add(subagentId);
|
|
1044
|
-
yield* offerRuntimeEventForRuntime(ctx.session.runtimeSessionId, {
|
|
1045
|
-
type: "subagent.started",
|
|
1046
|
-
...yield* makeEventStamp(),
|
|
1047
|
-
provider: PROVIDER,
|
|
1048
|
-
threadId: ctx.threadId,
|
|
1049
|
-
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
1050
|
-
payload: { subagent: subagentState.subagent },
|
|
1051
|
-
raw: {
|
|
1052
|
-
source: "acp.jsonrpc",
|
|
1053
|
-
method: "session/update",
|
|
1054
|
-
payload: rawPayload
|
|
1055
|
-
}
|
|
1056
|
-
});
|
|
1057
|
-
}
|
|
1058
|
-
if (subagentState.status === "completed" || subagentState.status === "failed" || subagentState.status === "stopped") {
|
|
1059
|
-
if (ctx.completedSubagentIds.has(subagentId)) return;
|
|
1060
|
-
ctx.completedSubagentIds.add(subagentId);
|
|
1061
|
-
yield* offerRuntimeEventForRuntime(ctx.session.runtimeSessionId, {
|
|
1062
|
-
type: "subagent.completed",
|
|
1063
|
-
...yield* makeEventStamp(),
|
|
1064
|
-
provider: PROVIDER,
|
|
1065
|
-
threadId: ctx.threadId,
|
|
1066
|
-
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
1067
|
-
payload: {
|
|
1068
|
-
subagent: subagentState.subagent,
|
|
1069
|
-
status: subagentState.status,
|
|
1070
|
-
...subagentState.summary ? { summary: subagentState.summary } : {}
|
|
1071
|
-
},
|
|
1072
|
-
raw: {
|
|
1073
|
-
source: "acp.jsonrpc",
|
|
1074
|
-
method: "session/update",
|
|
1075
|
-
payload: rawPayload
|
|
1076
|
-
}
|
|
1077
|
-
});
|
|
1078
|
-
return;
|
|
1079
|
-
}
|
|
1080
|
-
yield* offerRuntimeEventForRuntime(ctx.session.runtimeSessionId, {
|
|
1081
|
-
type: "subagent.updated",
|
|
1082
|
-
...yield* makeEventStamp(),
|
|
1083
|
-
provider: PROVIDER,
|
|
1084
|
-
threadId: ctx.threadId,
|
|
1085
|
-
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
1086
|
-
payload: {
|
|
1087
|
-
subagent: subagentState.subagent,
|
|
1088
|
-
...subagentState.status ? { status: subagentState.status } : {},
|
|
1089
|
-
...subagentState.summary ? { summary: subagentState.summary } : {},
|
|
1090
|
-
...subagentState.detail ? { detail: subagentState.detail } : {}
|
|
1091
|
-
},
|
|
1092
|
-
raw: {
|
|
1093
|
-
source: "acp.jsonrpc",
|
|
1094
|
-
method: "session/update",
|
|
1095
|
-
payload: rawPayload
|
|
1096
|
-
}
|
|
1097
|
-
});
|
|
1098
|
-
});
|
|
1099
1039
|
const getThreadSemaphore = (threadId) => effect.SynchronizedRef.modifyEffect(threadLocksRef, (current) => {
|
|
1100
1040
|
const existing = effect.Option.fromNullishOr(current.get(threadId));
|
|
1101
1041
|
return effect.Option.match(existing, {
|
|
@@ -1394,8 +1334,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1394
1334
|
pendingApprovals,
|
|
1395
1335
|
pendingUserInputs,
|
|
1396
1336
|
turns: [],
|
|
1397
|
-
|
|
1398
|
-
completedSubagentIds: /* @__PURE__ */ new Set(),
|
|
1337
|
+
subagentEvents: require_AcpNativeLogging.makeAcpSubagentRuntimeEvents(),
|
|
1399
1338
|
lastPlanFingerprint: void 0,
|
|
1400
1339
|
activeTurnId: void 0,
|
|
1401
1340
|
stopped: false
|
|
@@ -1437,7 +1376,14 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1437
1376
|
toolCall: event.toolCall,
|
|
1438
1377
|
rawPayload: event.rawPayload
|
|
1439
1378
|
}));
|
|
1440
|
-
yield*
|
|
1379
|
+
for (const subagentEvent of yield* ctx.subagentEvents({
|
|
1380
|
+
provider: PROVIDER,
|
|
1381
|
+
threadId: ctx.threadId,
|
|
1382
|
+
turnId: ctx.activeTurnId,
|
|
1383
|
+
state: event.toolCall.subagent,
|
|
1384
|
+
rawPayload: event.rawPayload,
|
|
1385
|
+
makeStamp: makeEventStamp
|
|
1386
|
+
})) yield* offerRuntimeEventForRuntime(runtimeSessionId, subagentEvent);
|
|
1441
1387
|
return;
|
|
1442
1388
|
case "ContentDelta":
|
|
1443
1389
|
yield* logNative(ctx.threadId, "session/update", event.rawPayload, "acp.jsonrpc");
|
|
@@ -1543,11 +1489,19 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1543
1489
|
});
|
|
1544
1490
|
ctx.agentControlHostContextDelivered = true;
|
|
1545
1491
|
}
|
|
1546
|
-
|
|
1547
|
-
|
|
1548
|
-
|
|
1549
|
-
|
|
1550
|
-
|
|
1492
|
+
const pathLineEntries = [];
|
|
1493
|
+
const imageParts = [];
|
|
1494
|
+
for (const attachment of input.attachments ?? []) {
|
|
1495
|
+
if (!require_bin.isPersistableChatAttachment(attachment) || attachment.type !== "image") {
|
|
1496
|
+
pathLineEntries.push({
|
|
1497
|
+
attachment,
|
|
1498
|
+
...attachment.id === void 0 ? {} : { resolvedPath: require_bin.resolveAttachmentPath({
|
|
1499
|
+
attachmentsDir: serverConfig.attachmentsDir,
|
|
1500
|
+
attachment
|
|
1501
|
+
}) ?? void 0 }
|
|
1502
|
+
});
|
|
1503
|
+
continue;
|
|
1504
|
+
}
|
|
1551
1505
|
const attachmentPath = require_bin.resolveAttachmentPath({
|
|
1552
1506
|
attachmentsDir: serverConfig.attachmentsDir,
|
|
1553
1507
|
attachment
|
|
@@ -1563,13 +1517,19 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1563
1517
|
detail: cause.message,
|
|
1564
1518
|
cause
|
|
1565
1519
|
})));
|
|
1566
|
-
|
|
1520
|
+
imageParts.push({
|
|
1567
1521
|
type: "image",
|
|
1568
1522
|
data: Buffer.from(bytes).toString("base64"),
|
|
1569
1523
|
mimeType: attachment.mimeType
|
|
1570
1524
|
});
|
|
1571
1525
|
}
|
|
1572
|
-
|
|
1526
|
+
const promptText = require_makeManagedServerProvider.appendAttachmentPathLines(input.input?.trim(), require_makeManagedServerProvider.formatAttachmentPathLines(pathLineEntries));
|
|
1527
|
+
if (promptText?.trim()) promptParts.push({
|
|
1528
|
+
type: "text",
|
|
1529
|
+
text: promptText
|
|
1530
|
+
});
|
|
1531
|
+
promptParts.push(...imageParts);
|
|
1532
|
+
if ((!promptText || promptText.trim().length === 0) && (!input.attachments || input.attachments.length === 0)) return yield* new require_bin.ProviderAdapterValidationError({
|
|
1573
1533
|
provider: PROVIDER,
|
|
1574
1534
|
operation: "sendTurn",
|
|
1575
1535
|
issue: "Turn requires non-empty text or attachments."
|