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
|
@@ -7,7 +7,7 @@ import path from "node:path";
|
|
|
7
7
|
import { createHash, timingSafeEqual } from "node:crypto";
|
|
8
8
|
import { dual } from "effect/Function";
|
|
9
9
|
import * as Random from "effect/Random";
|
|
10
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
10
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/is.js
|
|
11
11
|
const objectTypeNames = [
|
|
12
12
|
"Object",
|
|
13
13
|
"RegExp",
|
|
@@ -62,7 +62,7 @@ function getObjectType(value) {
|
|
|
62
62
|
if (objectTypeNames.includes(objectTypeName)) return objectTypeName;
|
|
63
63
|
}
|
|
64
64
|
//#endregion
|
|
65
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
65
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/token.js
|
|
66
66
|
var Type = class {
|
|
67
67
|
/**
|
|
68
68
|
* @param {number} major
|
|
@@ -130,7 +130,7 @@ var Token = class {
|
|
|
130
130
|
}
|
|
131
131
|
};
|
|
132
132
|
//#endregion
|
|
133
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
133
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/byte-utils.js
|
|
134
134
|
const useBuffer = globalThis.process && !globalThis.process.browser && globalThis.Buffer && typeof globalThis.Buffer.isBuffer === "function";
|
|
135
135
|
const textEncoder = new TextEncoder();
|
|
136
136
|
/**
|
|
@@ -254,7 +254,7 @@ function utf8ToBytes(str) {
|
|
|
254
254
|
return out;
|
|
255
255
|
}
|
|
256
256
|
//#endregion
|
|
257
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
257
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/bl.js
|
|
258
258
|
/**
|
|
259
259
|
* Bl is a list of byte chunks, similar to https://github.com/rvagg/bl but for
|
|
260
260
|
* writing rather than reading.
|
|
@@ -407,7 +407,7 @@ var U8Bl = class {
|
|
|
407
407
|
}
|
|
408
408
|
};
|
|
409
409
|
//#endregion
|
|
410
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
410
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/common.js
|
|
411
411
|
const decodeErrPrefix = "CBOR decode error:";
|
|
412
412
|
const encodeErrPrefix = "CBOR encode error:";
|
|
413
413
|
const uintMinorPrefixBytes = [];
|
|
@@ -425,7 +425,7 @@ function assertEnoughData(data, pos, need) {
|
|
|
425
425
|
if (data.length - pos < need) throw new Error(`${decodeErrPrefix} not enough data for type`);
|
|
426
426
|
}
|
|
427
427
|
//#endregion
|
|
428
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
428
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/0uint.js
|
|
429
429
|
const uintBoundaries = [
|
|
430
430
|
24,
|
|
431
431
|
256,
|
|
@@ -624,7 +624,7 @@ encodeUint.compareTokens = function compareTokens(tok1, tok2) {
|
|
|
624
624
|
return tok1.value < tok2.value ? -1 : tok1.value > tok2.value ? 1 : 0;
|
|
625
625
|
};
|
|
626
626
|
//#endregion
|
|
627
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
627
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/1negint.js
|
|
628
628
|
/**
|
|
629
629
|
* @typedef {import('../interface.js').ByteWriter} ByteWriter
|
|
630
630
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -708,7 +708,7 @@ encodeNegint.compareTokens = function compareTokens(tok1, tok2) {
|
|
|
708
708
|
return tok1.value < tok2.value ? 1 : tok1.value > tok2.value ? -1 : 0;
|
|
709
709
|
};
|
|
710
710
|
//#endregion
|
|
711
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
711
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/2bytes.js
|
|
712
712
|
/**
|
|
713
713
|
* @typedef {import('../interface.js').ByteWriter} ByteWriter
|
|
714
714
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -821,7 +821,7 @@ function compareBytes(b1, b2) {
|
|
|
821
821
|
return b1.length < b2.length ? -1 : b1.length > b2.length ? 1 : compare(b1, b2);
|
|
822
822
|
}
|
|
823
823
|
//#endregion
|
|
824
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
824
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/3string.js
|
|
825
825
|
const textDecoder = new TextDecoder();
|
|
826
826
|
const ASCII_THRESHOLD = 32;
|
|
827
827
|
/**
|
|
@@ -917,7 +917,7 @@ function decodeString64(data, pos, _minor, options) {
|
|
|
917
917
|
}
|
|
918
918
|
const encodeString = encodeBytes;
|
|
919
919
|
//#endregion
|
|
920
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
920
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/4array.js
|
|
921
921
|
/**
|
|
922
922
|
* @typedef {import('../interface.js').ByteWriter} ByteWriter
|
|
923
923
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -1011,7 +1011,7 @@ encodeArray.encodedSize = function encodedSize(token) {
|
|
|
1011
1011
|
return encodeUintValue.encodedSize(token.value);
|
|
1012
1012
|
};
|
|
1013
1013
|
//#endregion
|
|
1014
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
1014
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/5map.js
|
|
1015
1015
|
/**
|
|
1016
1016
|
* @typedef {import('../interface.js').ByteWriter} ByteWriter
|
|
1017
1017
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -1105,7 +1105,7 @@ encodeMap.encodedSize = function encodedSize(token) {
|
|
|
1105
1105
|
return encodeUintValue.encodedSize(token.value);
|
|
1106
1106
|
};
|
|
1107
1107
|
//#endregion
|
|
1108
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
1108
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/6tag.js
|
|
1109
1109
|
/**
|
|
1110
1110
|
* @typedef {import('../interface.js').ByteWriter} ByteWriter
|
|
1111
1111
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -1447,7 +1447,7 @@ encodeFloat.compareTokens = function compareTokens(tok1, tok2, options) {
|
|
|
1447
1447
|
return compare(b1, b2);
|
|
1448
1448
|
};
|
|
1449
1449
|
//#endregion
|
|
1450
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
1450
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/jump.js
|
|
1451
1451
|
/**
|
|
1452
1452
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
1453
1453
|
* @typedef {import('../interface.js').AllocatedByteView} AllocatedByteView
|
|
@@ -1586,7 +1586,7 @@ function quickEncodeToken(token) {
|
|
|
1586
1586
|
}
|
|
1587
1587
|
}
|
|
1588
1588
|
//#endregion
|
|
1589
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
1589
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/encode.js
|
|
1590
1590
|
/**
|
|
1591
1591
|
* @typedef {import('../interface.js').EncodeOptions} EncodeOptions
|
|
1592
1592
|
* @typedef {import('../interface.js').OptionalTypeEncoder} OptionalTypeEncoder
|
|
@@ -2112,7 +2112,7 @@ function encode(data, options) {
|
|
|
2112
2112
|
return encodeCustom(data, cborEncoders, options);
|
|
2113
2113
|
}
|
|
2114
2114
|
//#endregion
|
|
2115
|
-
//#region ../../node_modules/.bun/cborg@6.1.
|
|
2115
|
+
//#region ../../node_modules/.bun/cborg@6.1.2/node_modules/cborg/lib/decode.js
|
|
2116
2116
|
/**
|
|
2117
2117
|
* @typedef {import('./token.js').Token} Token
|
|
2118
2118
|
* @typedef {import('../interface.js').DecodeOptions} DecodeOptions
|
|
@@ -2203,6 +2203,12 @@ function tokenToMap(token, tokeniser, options) {
|
|
|
2203
2203
|
const value = tokensToObject(tokeniser, options);
|
|
2204
2204
|
if (value === DONE) throw new Error(`${decodeErrPrefix} found map but not enough entries (got ${i} [no value], expected ${token.value})`);
|
|
2205
2205
|
if (useMaps) m.set(key, value);
|
|
2206
|
+
else if (key === "__proto__") Object.defineProperty(obj, key, {
|
|
2207
|
+
value,
|
|
2208
|
+
configurable: true,
|
|
2209
|
+
enumerable: true,
|
|
2210
|
+
writable: true
|
|
2211
|
+
});
|
|
2206
2212
|
else obj[key] = value;
|
|
2207
2213
|
}
|
|
2208
2214
|
return useMaps ? m : obj;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { g as PtySpawnError, h as PtyAdapter } from "./bin.mjs";
|
|
4
4
|
import { createRequire } from "node:module";
|
|
5
5
|
import { Effect, FileSystem, Layer, Path } from "effect";
|
|
6
6
|
//#region src/terminal/Layers/NodePTY.ts
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import { $
|
|
4
|
-
import { nt as sanitizeFeatureBranchName, st as ServerConfig, tt as sanitizeBranchFragment } from "./Metrics-
|
|
5
|
-
import { $ as
|
|
3
|
+
import { $a as ProviderInstanceId, Ln as TextGenerationError, Qa as ProviderDriverKind, _s as TurnId, cr as OpenCodeSettings, ds as RuntimeRequestId, ki as PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES, ls as ProviderItemId, ps as RuntimeSubagentId, rs as EventId, us as RuntimeItemId } from "./collectUint8StreamText-C_VNyArd.mjs";
|
|
4
|
+
import { nt as sanitizeFeatureBranchName, st as ServerConfig, tt as sanitizeBranchFragment } from "./Metrics-a1h4iBQi.mjs";
|
|
5
|
+
import { $ as mergeProviderInstanceEnvironment, $n as resolveAttachmentPath, B as buildPrContentPrompt, C as openCodeRuntimeErrorDetail, Ct as ProviderAdapterSessionNotFoundError, D as toOpenCodePermissionReply, E as toOpenCodeFileParts, F as validateRankInboxThreadsResult, G as sanitizeCommitSubject, H as buildThreadTitlePrompt, Hn as enrichProviderSnapshotWithVersionAdvisory, I as buildBranchNamePrompt, Jn as resolveProviderMaintenanceCapabilitiesEffect, K as sanitizePrTitle, L as buildCommitMessagePrompt, M as makeEventNdjsonLogger, O as toOpenCodeQuestionAnswers, Qn as readPersistedAttachment, R as buildIssueContentPolishPrompt, S as openCodeQuestionId, St as ProviderAdapterSessionClosedError, T as runOpenCodeSdk, Tt as ProviderDriverError, U as extractJsonObject, V as buildThreadPriorityPrompt, Wn as makePackageManagedProviderMaintenanceResolver, Xn as ServerSettingsService, Yn as compareCliVersions, _ as MINIMUM_OPENCODE_VERSION, b as buildOpenCodePermissionRules, bt as ProviderAdapterProcessError, dt as parseGenericCliVersion, ft as providerModelsFromSettings, ht as agentControlHostContext, ir as getModelSelectionStringOptionValue, j as ProviderEventLoggers, k as verifyOpenCodeServerVersion, nr as createModelCapabilities, ot as buildServerProvider, q as sanitizeThreadTitle, qn as normalizeCommandPath, t as makeServerQueueMetrics, ut as nonEmptyTrimmed, v as OpenCodeRuntime, w as parseOpenCodeModelSlug, wt as ProviderAdapterValidationError, x as isOpenCodeNativeAttachment, xt as ProviderAdapterRequestError, y as OpenCodeRuntimeError, yt as createProcessDeviceToolBinding, z as buildIssueContentTitlePrompt } from "./bin.mjs";
|
|
6
|
+
import { a as formatAttachmentPathLines, i as appendAttachmentPathLines, n as requireRuntimeSessionId, r as stampRuntimeEvent, t as makeManagedServerProvider } from "./makeManagedServerProvider-GZcpSLrW.mjs";
|
|
6
7
|
import { t as formatSourceControlContextsForAgent } from "./sourceControlContextFormatter-DEwpnVAH.mjs";
|
|
7
|
-
import { n as requireRuntimeSessionId, r as stampRuntimeEvent, t as makeManagedServerProvider } from "./makeManagedServerProvider-DRlNwlhe.mjs";
|
|
8
8
|
import { t as defaultProviderContinuationIdentity } from "./ProviderDriver-kCV60GKk.mjs";
|
|
9
9
|
import { Cause, Data, Effect, Exit, Fiber, Queue, Ref, Schema, Scope, Semaphore, Stream } from "effect";
|
|
10
10
|
import { HttpClient } from "effect/unstable/http";
|
|
11
|
+
import * as NodePath from "node:path";
|
|
12
|
+
import * as NodeOS from "node:os";
|
|
13
|
+
import * as NodeFS from "node:fs/promises";
|
|
11
14
|
import "effect/unstable/process";
|
|
12
15
|
import * as Semaphore$1 from "effect/Semaphore";
|
|
13
16
|
//#region src/provider/OpenCodeServerOwner.ts
|
|
@@ -101,14 +104,26 @@ const makeOpenCodeTextGeneration = Effect.fn("makeOpenCodeTextGeneration")(funct
|
|
|
101
104
|
operation: input.operation,
|
|
102
105
|
detail: "OpenCode model selection must use the 'provider/model' format."
|
|
103
106
|
});
|
|
104
|
-
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + attachment.sizeBytes, 0);
|
|
107
|
+
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + (attachment.sizeBytes ?? 0), 0);
|
|
105
108
|
if (declaredAttachmentBytes > 52428800) return yield* new TextGenerationError({
|
|
106
109
|
operation: input.operation,
|
|
107
110
|
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
108
111
|
});
|
|
109
112
|
const attachmentUrlById = /* @__PURE__ */ new Map();
|
|
110
113
|
let attachmentTotalBytes = 0;
|
|
114
|
+
const pathLineEntries = [];
|
|
111
115
|
for (const attachment of input.attachments ?? []) {
|
|
116
|
+
if (!isOpenCodeNativeAttachment(attachment)) {
|
|
117
|
+
pathLineEntries.push({
|
|
118
|
+
attachment,
|
|
119
|
+
...attachment.id === void 0 ? {} : { resolvedPath: resolveAttachmentPath({
|
|
120
|
+
attachmentsDir: serverConfig.attachmentsDir,
|
|
121
|
+
attachment
|
|
122
|
+
}) ?? void 0 }
|
|
123
|
+
});
|
|
124
|
+
continue;
|
|
125
|
+
}
|
|
126
|
+
if (attachment.id === void 0) continue;
|
|
112
127
|
const persisted = readPersistedAttachment({
|
|
113
128
|
attachmentsDir: serverConfig.attachmentsDir,
|
|
114
129
|
attachment
|
|
@@ -126,8 +141,9 @@ const makeOpenCodeTextGeneration = Effect.fn("makeOpenCodeTextGeneration")(funct
|
|
|
126
141
|
}
|
|
127
142
|
const fileParts = toOpenCodeFileParts({
|
|
128
143
|
attachments: input.attachments,
|
|
129
|
-
resolveAttachmentUrl: (attachment) => attachmentUrlById.get(attachment.id) ?? null
|
|
144
|
+
resolveAttachmentUrl: (attachment) => attachment.id === void 0 ? null : attachmentUrlById.get(attachment.id) ?? null
|
|
130
145
|
});
|
|
146
|
+
const finalPrompt = appendAttachmentPathLines(input.prompt, formatAttachmentPathLines(pathLineEntries)) ?? input.prompt;
|
|
131
147
|
const runAgainstServer = (server) => Effect.gen(function* () {
|
|
132
148
|
const client = yield* openCodeRuntime.createOpenCodeSdkClient({
|
|
133
149
|
baseUrl: server.url,
|
|
@@ -163,7 +179,7 @@ const makeOpenCodeTextGeneration = Effect.fn("makeOpenCodeTextGeneration")(funct
|
|
|
163
179
|
...selectedVariant ? { variant: selectedVariant } : {},
|
|
164
180
|
parts: [{
|
|
165
181
|
type: "text",
|
|
166
|
-
text:
|
|
182
|
+
text: finalPrompt
|
|
167
183
|
}, ...fileParts]
|
|
168
184
|
});
|
|
169
185
|
const info = result.data?.info;
|
|
@@ -1090,18 +1106,16 @@ function makeOpenCodeAdapter(openCodeSettings, options) {
|
|
|
1090
1106
|
const title = part.state.status === "running" ? part.state.title ?? part.tool : part.tool;
|
|
1091
1107
|
const detail = detailFromToolPart(part);
|
|
1092
1108
|
const childSubagent = context.subagentBySessionId.get(part.sessionID);
|
|
1093
|
-
if (childSubagent) {
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
});
|
|
1101
|
-
break;
|
|
1102
|
-
}
|
|
1109
|
+
if (childSubagent) yield* emitOpenCodeSubagentUpdated(context, {
|
|
1110
|
+
subagent: childSubagent,
|
|
1111
|
+
status: statusFromOpenCodeSubagentState("running"),
|
|
1112
|
+
summary: title,
|
|
1113
|
+
detail,
|
|
1114
|
+
raw: event
|
|
1115
|
+
});
|
|
1103
1116
|
const payload = {
|
|
1104
1117
|
itemType,
|
|
1118
|
+
...childSubagent ? { agentId: String(childSubagent.subagentId) } : {},
|
|
1105
1119
|
...part.state.status === "error" ? { status: "failed" } : part.state.status === "completed" ? { status: "completed" } : { status: "inProgress" },
|
|
1106
1120
|
...title ? { title } : {},
|
|
1107
1121
|
...detail ? { detail } : {},
|
|
@@ -1121,7 +1135,7 @@ function makeOpenCodeAdapter(openCodeSettings, options) {
|
|
|
1121
1135
|
type: part.state.status === "pending" ? "item.started" : part.state.status === "completed" || part.state.status === "error" ? "item.completed" : "item.updated",
|
|
1122
1136
|
payload
|
|
1123
1137
|
};
|
|
1124
|
-
appendTurnItem(context, turnId, part);
|
|
1138
|
+
if (!childSubagent) appendTurnItem(context, turnId, part);
|
|
1125
1139
|
yield* emitForContext(context, runtimeEvent);
|
|
1126
1140
|
}
|
|
1127
1141
|
break;
|
|
@@ -1544,14 +1558,25 @@ function makeOpenCodeAdapter(openCodeSettings, options) {
|
|
|
1544
1558
|
const formatted = formatSourceControlContextsForAgent(input.sourceControlContexts ?? []);
|
|
1545
1559
|
let text = formatted ? formatted + "\n\n" + (input.input?.trim() ?? "") : input.input?.trim();
|
|
1546
1560
|
const attachmentUrlById = /* @__PURE__ */ new Map();
|
|
1547
|
-
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + attachment.sizeBytes, 0);
|
|
1561
|
+
const declaredAttachmentBytes = (input.attachments ?? []).reduce((total, attachment) => total + (attachment.sizeBytes ?? 0), 0);
|
|
1548
1562
|
if (declaredAttachmentBytes > 52428800) return yield* new ProviderAdapterRequestError({
|
|
1549
1563
|
provider: PROVIDER$1,
|
|
1550
1564
|
method: "session.prompt",
|
|
1551
1565
|
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
1552
1566
|
});
|
|
1553
1567
|
let attachmentTotalBytes = 0;
|
|
1568
|
+
const pathLineEntries = [];
|
|
1554
1569
|
for (const attachment of input.attachments ?? []) {
|
|
1570
|
+
if (!isOpenCodeNativeAttachment(attachment)) {
|
|
1571
|
+
pathLineEntries.push({
|
|
1572
|
+
attachment,
|
|
1573
|
+
...attachment.id === void 0 ? {} : { resolvedPath: resolveAttachmentPath({
|
|
1574
|
+
attachmentsDir: serverConfig.attachmentsDir,
|
|
1575
|
+
attachment
|
|
1576
|
+
}) ?? void 0 }
|
|
1577
|
+
});
|
|
1578
|
+
continue;
|
|
1579
|
+
}
|
|
1555
1580
|
const persisted = readPersistedAttachment({
|
|
1556
1581
|
attachmentsDir: serverConfig.attachmentsDir,
|
|
1557
1582
|
attachment
|
|
@@ -1569,9 +1594,10 @@ function makeOpenCodeAdapter(openCodeSettings, options) {
|
|
|
1569
1594
|
detail: `Attachments total ${attachmentTotalBytes} bytes; limit is ${PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
1570
1595
|
});
|
|
1571
1596
|
}
|
|
1597
|
+
text = appendAttachmentPathLines(text, formatAttachmentPathLines(pathLineEntries));
|
|
1572
1598
|
const fileParts = toOpenCodeFileParts({
|
|
1573
1599
|
attachments: input.attachments,
|
|
1574
|
-
resolveAttachmentUrl: (attachment) => attachmentUrlById.get(attachment.id) ?? null
|
|
1600
|
+
resolveAttachmentUrl: (attachment) => attachment.id === void 0 ? null : attachmentUrlById.get(attachment.id) ?? null
|
|
1575
1601
|
});
|
|
1576
1602
|
if ((!text || text.length === 0) && fileParts.length === 0) return yield* new ProviderAdapterValidationError({
|
|
1577
1603
|
provider: PROVIDER$1,
|
|
@@ -1801,6 +1827,91 @@ function makeOpenCodeAdapter(openCodeSettings, options) {
|
|
|
1801
1827
|
});
|
|
1802
1828
|
}
|
|
1803
1829
|
//#endregion
|
|
1830
|
+
//#region src/provider/Layers/OpenCodeGoUsage.ts
|
|
1831
|
+
/**
|
|
1832
|
+
* OpenCodeGoUsage — probes OpenCode Go subscription usage limits.
|
|
1833
|
+
*
|
|
1834
|
+
* Mirrors `ClaudeUsage.ts`: reads the OpenCode CLI's credential store
|
|
1835
|
+
* (`<data dir>/auth.json`), calls the Go usage API with the stored
|
|
1836
|
+
* `opencode-go` API key, and maps the response onto the shared
|
|
1837
|
+
* `ServerProviderRateLimits` contract (rolling → primary, weekly →
|
|
1838
|
+
* secondary, monthly → tertiary).
|
|
1839
|
+
*
|
|
1840
|
+
* Every failure path degrades to `undefined` — a missing Go key or an
|
|
1841
|
+
* unreachable API must never make the provider snapshot probe fail.
|
|
1842
|
+
*
|
|
1843
|
+
* @module provider/Layers/OpenCodeGoUsage
|
|
1844
|
+
*/
|
|
1845
|
+
const OPENCODE_GO_USAGE_API = "https://opencode.ai/zen/go/v1/usage";
|
|
1846
|
+
const OPENCODE_GO_USAGE_TIMEOUT_MS = 5e3;
|
|
1847
|
+
const ROLLING_WINDOW_DURATION_MINS = 300;
|
|
1848
|
+
const WEEKLY_WINDOW_DURATION_MINS = 10080;
|
|
1849
|
+
const MONTHLY_WINDOW_DURATION_MINS = 43200;
|
|
1850
|
+
function resolveOpenCodeDataDirPath(environment = process.env) {
|
|
1851
|
+
const xdgDataHome = environment.XDG_DATA_HOME?.trim();
|
|
1852
|
+
const home = environment.HOME?.trim() || NodeOS.homedir();
|
|
1853
|
+
const base = xdgDataHome && xdgDataHome.length > 0 ? xdgDataHome : NodePath.join(home, ".local", "share");
|
|
1854
|
+
return NodePath.join(base, "opencode");
|
|
1855
|
+
}
|
|
1856
|
+
async function readOpenCodeGoApiKey(environment) {
|
|
1857
|
+
try {
|
|
1858
|
+
const authPath = NodePath.join(resolveOpenCodeDataDirPath(environment), "auth.json");
|
|
1859
|
+
const key = JSON.parse(await NodeFS.readFile(authPath, "utf8"))["opencode-go"]?.key;
|
|
1860
|
+
if (typeof key !== "string" || key.trim().length === 0) return;
|
|
1861
|
+
return key.trim();
|
|
1862
|
+
} catch {
|
|
1863
|
+
return;
|
|
1864
|
+
}
|
|
1865
|
+
}
|
|
1866
|
+
function parseOpenCodeGoUsageRateLimits(data) {
|
|
1867
|
+
const windows = data?.usage;
|
|
1868
|
+
if (!windows || typeof windows !== "object") return;
|
|
1869
|
+
const buildWindow = (raw, windowDurationMins) => {
|
|
1870
|
+
if (!raw || typeof raw !== "object" || typeof raw.percent !== "number") return;
|
|
1871
|
+
if (!Number.isFinite(raw.percent)) return;
|
|
1872
|
+
const resetsAt = typeof raw.resetsAt === "string" ? Date.parse(raw.resetsAt) : NaN;
|
|
1873
|
+
return {
|
|
1874
|
+
usedPercent: raw.percent,
|
|
1875
|
+
windowDurationMins,
|
|
1876
|
+
...Number.isFinite(resetsAt) ? { resetsAt: Math.floor(resetsAt / 1e3) } : {}
|
|
1877
|
+
};
|
|
1878
|
+
};
|
|
1879
|
+
const primary = buildWindow(windows.rolling, ROLLING_WINDOW_DURATION_MINS);
|
|
1880
|
+
const secondary = buildWindow(windows.weekly, WEEKLY_WINDOW_DURATION_MINS);
|
|
1881
|
+
const tertiary = buildWindow(windows.monthly, MONTHLY_WINDOW_DURATION_MINS);
|
|
1882
|
+
if (!primary && !secondary && !tertiary) return;
|
|
1883
|
+
return {
|
|
1884
|
+
limitId: "opencode-go",
|
|
1885
|
+
limitName: "OpenCode Go",
|
|
1886
|
+
planType: "go",
|
|
1887
|
+
...primary ? { primary } : {},
|
|
1888
|
+
...secondary ? { secondary } : {},
|
|
1889
|
+
...tertiary ? { tertiary } : {}
|
|
1890
|
+
};
|
|
1891
|
+
}
|
|
1892
|
+
async function fetchOpenCodeGoUsageRateLimits(input) {
|
|
1893
|
+
const apiKey = await readOpenCodeGoApiKey(input.environment);
|
|
1894
|
+
if (!apiKey) return;
|
|
1895
|
+
const response = await input.fetchImpl(OPENCODE_GO_USAGE_API, {
|
|
1896
|
+
headers: {
|
|
1897
|
+
Authorization: `Bearer ${apiKey}`,
|
|
1898
|
+
Accept: "application/json"
|
|
1899
|
+
},
|
|
1900
|
+
signal: AbortSignal.timeout(OPENCODE_GO_USAGE_TIMEOUT_MS)
|
|
1901
|
+
});
|
|
1902
|
+
if (!response.ok) return;
|
|
1903
|
+
return parseOpenCodeGoUsageRateLimits(await response.json());
|
|
1904
|
+
}
|
|
1905
|
+
const probeOpenCodeGoUsageRateLimits = Effect.fn("probeOpenCodeGoUsageRateLimits")(function* (environment = process.env, fetchImpl = fetch) {
|
|
1906
|
+
return yield* Effect.tryPromise({
|
|
1907
|
+
try: () => fetchOpenCodeGoUsageRateLimits({
|
|
1908
|
+
environment,
|
|
1909
|
+
fetchImpl
|
|
1910
|
+
}),
|
|
1911
|
+
catch: () => void 0
|
|
1912
|
+
}).pipe(Effect.orElseSucceed(() => void 0));
|
|
1913
|
+
});
|
|
1914
|
+
//#endregion
|
|
1804
1915
|
//#region src/provider/Layers/OpenCodeProvider.ts
|
|
1805
1916
|
const PROVIDER = ProviderDriverKind.make("opencode");
|
|
1806
1917
|
const OPENCODE_PRESENTATION = {
|
|
@@ -1911,6 +2022,7 @@ function flattenOpenCodeModels(input) {
|
|
|
1911
2022
|
if (!modelId || !name) continue;
|
|
1912
2023
|
const subProvider = nonEmptyTrimmed(provider.name);
|
|
1913
2024
|
const shortName = subProvider ? deriveShortNameByStrippingPrefix(name, subProvider) : void 0;
|
|
2025
|
+
const maxContextTokens = model.limit?.context;
|
|
1914
2026
|
const slug = `${provider.id}/${modelId}`;
|
|
1915
2027
|
if (models.has(slug)) continue;
|
|
1916
2028
|
models.set(slug, {
|
|
@@ -1918,6 +2030,7 @@ function flattenOpenCodeModels(input) {
|
|
|
1918
2030
|
name,
|
|
1919
2031
|
...subProvider ? { subProvider } : {},
|
|
1920
2032
|
...shortName ? { shortName } : {},
|
|
2033
|
+
...typeof maxContextTokens === "number" && Number.isFinite(maxContextTokens) && maxContextTokens > 0 ? { maxContextTokens: Math.floor(maxContextTokens) } : {},
|
|
1921
2034
|
isCustom: false,
|
|
1922
2035
|
capabilities: openCodeCapabilitiesForModel({
|
|
1923
2036
|
providerID: provider.id,
|
|
@@ -1971,7 +2084,7 @@ const makePendingOpenCodeProvider = (openCodeSettings) => {
|
|
|
1971
2084
|
}
|
|
1972
2085
|
});
|
|
1973
2086
|
};
|
|
1974
|
-
const checkOpenCodeProviderStatus = Effect.fn("checkOpenCodeProviderStatus")(function* (openCodeSettings, cwd, environment = process.env) {
|
|
2087
|
+
const checkOpenCodeProviderStatus = Effect.fn("checkOpenCodeProviderStatus")(function* (openCodeSettings, cwd, environment = process.env, probeUsage = probeOpenCodeGoUsageRateLimits) {
|
|
1975
2088
|
const openCodeRuntime = yield* OpenCodeRuntime;
|
|
1976
2089
|
const checkedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
1977
2090
|
const customModels = openCodeSettings.customModels;
|
|
@@ -2070,11 +2183,13 @@ const checkOpenCodeProviderStatus = Effect.fn("checkOpenCodeProviderStatus")(fun
|
|
|
2070
2183
|
version = inventoryExit.value.serverVersion;
|
|
2071
2184
|
const models = providerModelsFromSettings(flattenOpenCodeModels(inventoryExit.value.inventory), PROVIDER, customModels, DEFAULT_OPENCODE_MODEL_CAPABILITIES);
|
|
2072
2185
|
const connectedCount = new Set(inventoryExit.value.inventory.providerList.connected).size;
|
|
2186
|
+
const rateLimits = yield* probeUsage(environment).pipe(Effect.orElseSucceed(() => void 0));
|
|
2073
2187
|
return buildServerProvider({
|
|
2074
2188
|
presentation: OPENCODE_PRESENTATION,
|
|
2075
2189
|
enabled: true,
|
|
2076
2190
|
checkedAt,
|
|
2077
2191
|
models,
|
|
2192
|
+
...rateLimits ? { rateLimits } : {},
|
|
2078
2193
|
probe: {
|
|
2079
2194
|
installed: true,
|
|
2080
2195
|
version,
|