ryco-cli 0.1.24 → 0.1.26
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{GrokDriver-DSPEmiwq.mjs → AcpAdapter-BemMQNbj.mjs} +102 -604
- package/dist/{GrokDriver-RyyFeh_q.cjs → AcpAdapter-CadxcdZV.cjs} +129 -612
- package/dist/AcpNativeLogging-BsbZRRD7.mjs +312 -0
- package/dist/AcpNativeLogging-DZPZNoju.cjs +383 -0
- package/dist/AcpRegistryDriver-BfCPf8FX.cjs +222 -0
- package/dist/AcpRegistryDriver-BpXCjh9I.mjs +221 -0
- package/dist/{AzureDevOpsSourceControlProvider-CrvgKNf2.cjs → AzureDevOpsSourceControlProvider-B9N_8NJg.cjs} +14 -14
- package/dist/{AzureDevOpsSourceControlProvider-BNGEg1R8.mjs → AzureDevOpsSourceControlProvider-BcQO_CyW.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-Bt21jw68.mjs → BitbucketSourceControlProvider-BTUY2ZT8.mjs} +3 -3
- package/dist/{BitbucketSourceControlProvider-BzhsQwH-.cjs → BitbucketSourceControlProvider-C9WuwvY2.cjs} +14 -14
- package/dist/{BunPTY-TbHbSc8S.mjs → BunPTY-DdnqQAdw.mjs} +1 -1
- package/dist/{ClaudeDriver-B7mbf51W.cjs → ClaudeDriver-BSTxNNGO.cjs} +162 -126
- package/dist/{ClaudeDriver-C4yu7Jit.mjs → ClaudeDriver-Csnp78qR.mjs} +129 -93
- package/dist/{CodexDriver-CR0S17Lb.cjs → CodexDriver-BK4HVNV4.cjs} +145 -60
- package/dist/{CodexDriver-DnnqkGoY.mjs → CodexDriver-fwcV84hX.mjs} +99 -14
- package/dist/{CodexTextGeneration-tlfe1S5W.cjs → CodexTextGeneration-Y2GSS7f1.cjs} +145 -99
- package/dist/{CodexTextGeneration-Cw-FZbSS.mjs → CodexTextGeneration-_4aT5BHa.mjs} +141 -95
- package/dist/{CopilotDriver-GxKLX5pL.mjs → CopilotDriver-B12ZJ-L_.mjs} +69 -7
- package/dist/{CopilotDriver-IBd27Ji2.cjs → CopilotDriver-C7IyIwVW.cjs} +98 -36
- package/dist/{CursorDriver-C4Enoe9N.cjs → CursorDriver-BWmCfJ-w.cjs} +38 -32
- package/dist/{CursorDriver-CNo9Uzo8.mjs → CursorDriver-C_p0v-ul.mjs} +12 -6
- package/dist/{ForgejoSourceControlProvider-Dh6DOoc8.cjs → ForgejoSourceControlProvider-DTRrllIH.cjs} +14 -14
- package/dist/{ForgejoSourceControlProvider-BGXysSX6.mjs → ForgejoSourceControlProvider-DmOGJEaJ.mjs} +3 -3
- package/dist/{GitHubSourceControlProvider-8hsv_kCE.cjs → GitHubSourceControlProvider-D-YV8WP6.cjs} +16 -17
- package/dist/{GitHubSourceControlProvider-CPCYV8Xo.mjs → GitHubSourceControlProvider-sQGcwnr3.mjs} +6 -7
- package/dist/{GitLabSourceControlProvider-B0ZbF9Zx.cjs → GitLabSourceControlProvider-kKYYnpER.cjs} +14 -14
- package/dist/{GitLabSourceControlProvider-Bvknpaon.mjs → GitLabSourceControlProvider-mIl-K-4F.mjs} +3 -3
- package/dist/GrokDriver-BFOniP_K.cjs +567 -0
- package/dist/GrokDriver-CDcWkiAi.mjs +552 -0
- package/dist/{Metrics-a1h4iBQi.mjs → Metrics-C-3MahDy.mjs} +1 -107
- package/dist/{Metrics-Bcb9vCAe.cjs → Metrics-DCKbdeoH.cjs} +0 -168
- package/dist/{NodePTY-B_p5tLYO.mjs → NodePTY-DArvQ9bX.mjs} +1 -1
- package/dist/{OpenCodeDriver-CDcvPT9v.cjs → OpenCodeDriver-CckbFEQJ.cjs} +459 -141
- package/dist/{OpenCodeDriver-0q44rSQX.mjs → OpenCodeDriver-CnWJHyDJ.mjs} +430 -112
- package/dist/SideQuestionIsolation-5eGFRW0t.mjs +26 -0
- package/dist/SideQuestionIsolation-DvVKZWxi.cjs +37 -0
- package/dist/{SourceControlProviderDiscoveryCatalog-B37RHe2u.mjs → SourceControlProviderDiscoveryCatalog-BVvq7liJ.mjs} +2 -1
- package/dist/{SourceControlProviderDiscoveryCatalog-DreaAH1H.cjs → SourceControlProviderDiscoveryCatalog-CyUhKJLD.cjs} +6 -5
- package/dist/bin.cjs +12772 -3149
- package/dist/bin.mjs +10669 -1075
- package/dist/client/assets/AccountSettings-DLbcE2w-.js +1 -0
- package/dist/client/assets/Adobe-CNS1-UCS2-fO900upv.bcmap +0 -0
- package/dist/client/assets/Adobe-GB1-UCS2-BA083yIo.bcmap +0 -0
- package/dist/client/assets/Adobe-Japan1-UCS2-BL-4M2vS.bcmap +0 -0
- package/dist/client/assets/Adobe-Korea1-UCS2-BEQZuOdo.bcmap +0 -0
- package/dist/client/assets/AiFocusSettings-FKvdkl4P.js +1 -0
- package/dist/client/assets/{AnimatedHeight-i0YhvlGD.js → AnimatedHeight-CbIEyMLg.js} +1 -1
- package/dist/client/assets/AppearanceSettings-B2LsGKmL.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-AgPy06Mx.js → BranchToolbar.logic-BqkvYNPk.js} +1 -1
- package/dist/client/assets/{BrowserPanel-BWztlNuL.js → BrowserPanel-C_C4zjrh.js} +1 -1
- package/dist/client/assets/ChatRightPanel-ibiQ79jI.js +195 -0
- package/dist/client/assets/{ChatThreadRouteView-CWoBLzR_.js → ChatThreadRouteView-c7AXmbSk.js} +1 -1
- package/dist/client/assets/CommandPaletteDialog-DdPKN6rv.js +1 -0
- package/dist/client/assets/CompositeRoot-DKwS-ADi.js +1 -0
- package/dist/client/assets/ComputerUseSettings-DM17BYP5.js +1 -0
- package/dist/client/assets/ConnectionsSettings-D6wysIC8.js +7 -0
- package/dist/client/assets/ContextHandoffEndpointLabel-CsF_maM_.js +4 -0
- package/dist/client/assets/{DiagnosticsSettings-DvnNz2AZ.js → DiagnosticsSettings-Bq2l-C4J.js} +2 -2
- package/dist/client/assets/{DialogHandle-8o3kfoiI.js → DialogHandle-DuKTleCw.js} +1 -1
- package/dist/client/assets/{DialogPopup-CLw6NCkW.js → DialogPopup-Dt7DzTWv.js} +1 -1
- package/dist/client/assets/DialogRoot-DRyawL6l.js +1 -0
- package/dist/client/assets/{DialogTitle-DCHX74Tz.js → DialogTitle-BaxfPC6e.js} +1 -1
- package/dist/client/assets/DialogTrigger-D0PJ8bRT.js +1 -0
- package/dist/client/assets/{DialogViewport-DVDl03yd.js → DialogViewport-C3B2JZWQ.js} +1 -1
- package/dist/client/assets/DraftChatThreadRouteView-B8YiD5NP.js +1 -0
- package/dist/client/assets/ETHK-B5-H-1MLb5v9x.bcmap +0 -0
- package/dist/client/assets/{ExternalIdentityWeb.logic-arHvT6AX.js → ExternalIdentityWeb.logic-CrcNfdHK.js} +1 -1
- package/dist/client/assets/FoxitDingbats-BaQLufoW.pfb +0 -0
- package/dist/client/assets/FoxitFixed-Dyd5Nipw.pfb +0 -0
- package/dist/client/assets/FoxitFixedBold-D5TuYRwj.pfb +0 -0
- package/dist/client/assets/FoxitFixedBoldItalic-BqlXQ_Yv.pfb +0 -0
- package/dist/client/assets/FoxitFixedItalic-DqjQkmbS.pfb +0 -0
- package/dist/client/assets/FoxitSerif-qbgiDIe-.pfb +0 -0
- package/dist/client/assets/FoxitSerifBold-DZZ4CclT.pfb +0 -0
- package/dist/client/assets/FoxitSerifBoldItalic-DSQtwd_X.pfb +0 -0
- package/dist/client/assets/FoxitSerifItalic-CQs5lx9Y.pfb +0 -0
- package/dist/client/assets/FoxitSymbol-BVtbc20u.pfb +0 -0
- package/dist/client/assets/GBK-EUC-H-CAORqCkf.bcmap +0 -0
- package/dist/client/assets/GBK2K-H-Cv55KPk8.bcmap +0 -0
- package/dist/client/assets/GBKp-EUC-H-CElrnV5g.bcmap +0 -0
- package/dist/client/assets/GBT-EUC-H-BTsQIL1M.bcmap +0 -0
- package/dist/client/assets/GBT-H-DL9h-WkS.bcmap +0 -0
- package/dist/client/assets/GBTpc-EUC-H-DnIh5WJ3.bcmap +0 -0
- package/dist/client/assets/{GlassSurface-GY6owikG.js → GlassSurface-CBIEgwt1.js} +1 -1
- package/dist/client/assets/HKscs-B5-H-CXbBbq6g.bcmap +0 -0
- package/dist/client/assets/{HostedConnectionControls-COUhSe9x.js → HostedConnectionControls-DOpTlXzE.js} +1 -1
- package/dist/client/assets/HostedHubRoot-C1jq8cM6.js +2 -0
- package/dist/client/assets/{HostedNativeAuthorizationRoute-DZhYxv--.js → HostedNativeAuthorizationRoute-Clw1DHQW.js} +2 -2
- package/dist/client/assets/HostedNodeRenameDialog-Bd_Qu_ek.js +1 -0
- package/dist/client/assets/{HostedRelayTrustNotice-Bl6On0Yi.js → HostedRelayTrustNotice-CGcBpT9m.js} +1 -1
- package/dist/client/assets/IntegrationsSettingsPanel-J0qODRW-.js +2 -0
- package/dist/client/assets/KSC-Johab-H-CGtV3MPT.bcmap +0 -0
- package/dist/client/assets/{KeybindingsSettings-CPtXx-W2.js → KeybindingsSettings-CwxIHsFy.js} +1 -1
- package/dist/client/assets/{LazyBrowserPanel-SUIBB7B4.js → LazyBrowserPanel-VNAn6AUL.js} +2 -2
- package/dist/client/assets/LiberationSans-Bold-BPt4bU5Z.ttf +0 -0
- package/dist/client/assets/LiberationSans-BoldItalic-Bj53-jFw.ttf +0 -0
- package/dist/client/assets/LiberationSans-Italic-5QhGB3P9.ttf +0 -0
- package/dist/client/assets/LiberationSans-Regular-cbskN6YR.ttf +0 -0
- package/dist/client/assets/McpServersSettings-1pkIeutq.js +6 -0
- package/dist/client/assets/MobileSheet-DddfN8c2.js +1 -0
- package/dist/client/assets/{NodeSecuritySettings-BFifrshE.js → NodeSecuritySettings-BOIZeFZo.js} +1 -1
- package/dist/client/assets/OpinionatedPluginsSettings-oTIrPtIb.js +1 -0
- package/dist/client/assets/PdfAttachmentPreview-BCMO9OHD.js +54 -0
- package/dist/client/assets/{PhoneGetAppInterstitial-R0cqI17q.js → PhoneGetAppInterstitial-0EOj-PbW.js} +1 -1
- package/dist/client/assets/PhoneHome-Cg7l3b1T.js +1 -0
- package/dist/client/assets/PhoneSettingsSurface-BXAUtZ9M.js +2 -0
- package/dist/client/assets/ProvidersSettingsPanel-BaJgypXu.js +1 -0
- package/dist/client/assets/{QuitShortcutFeedback-CklL3jMd.js → QuitShortcutFeedback-DgJFEd6b.js} +1 -1
- package/dist/client/assets/{RedactedSensitiveText-CLPBtvH1.js → RedactedSensitiveText-D1VC2xa7.js} +1 -1
- package/dist/client/assets/RootAppShell-D2RjZ9jQ.js +7 -0
- package/dist/client/assets/Separator-CeMncdkm.js +1 -0
- package/dist/client/assets/SettingsDialog-B2hEb6u8.js +2 -0
- package/dist/client/assets/SettingsPanels-DtWLQDne.js +3 -0
- package/dist/client/assets/{SettingsPanels.editor-9pSZP875.js → SettingsPanels.editor-DJRckD71.js} +1 -1
- package/dist/client/assets/{SourceControlSettings-C1F3Brcn.js → SourceControlSettings-IpoZrjt5.js} +1 -1
- package/dist/client/assets/StatisticsPage-CUpE_5Gr.js +1 -0
- package/dist/client/assets/StatisticsPanel-CHrAY5AP.js +1 -0
- package/dist/client/assets/StatisticsSettingsLink-bGWuxNG3.js +1 -0
- package/dist/client/assets/{ThreadTerminalDrawer-CHZ60lPI.js → ThreadTerminalDrawer-BEv83xrk.js} +11 -11
- package/dist/client/assets/ThreadWorkspacePanel-BdMdJVHJ.js +2073 -0
- package/dist/client/assets/UniCNS-UCS2-H-DWzv8UhH.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF16-H-Bw0JKgCq.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF32-H-IE_GrH2i.bcmap +0 -0
- package/dist/client/assets/UniCNS-UTF8-H-BbLcFh6Q.bcmap +0 -0
- package/dist/client/assets/UniGB-UCS2-H-D7xzRvZN.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF16-H-DKjbEwc0.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF32-H-Behfouj5.bcmap +0 -0
- package/dist/client/assets/UniGB-UTF8-H-EROft1ro.bcmap +0 -0
- package/dist/client/assets/UniJIS-UCS2-H-2DbZ0MaQ.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF16-H-BlDDPdCK.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF32-H-BIQPWkjv.bcmap +0 -0
- package/dist/client/assets/UniJIS-UTF8-H-CGusholx.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF16-H-KXixH-HI.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF32-H-CXrD-9YE.bcmap +0 -0
- package/dist/client/assets/UniJIS2004-UTF8-H-BkOctZjn.bcmap +0 -0
- package/dist/client/assets/UniJISX0213-UTF32-H-BavAhZjb.bcmap +0 -0
- package/dist/client/assets/UniJISX02132004-UTF32-H-DAH-AgUq.bcmap +0 -0
- package/dist/client/assets/UniKS-UCS2-H-YeUc7k1L.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF16-H-B0dvB-Td.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF32-H-olR_LtmR.bcmap +0 -0
- package/dist/client/assets/UniKS-UTF8-H-CbpebD-y.bcmap +0 -0
- package/dist/client/assets/{activity-BMBx2Fu0.js → activity-BmRcsTyL.js} +1 -1
- package/dist/client/assets/{alert-CXnC_RJc.js → alert-C5UiA2xk.js} +1 -1
- package/dist/client/assets/{appChrome-BzM66lXM.js → appChrome-CsZ2ylc1.js} +1 -1
- package/dist/client/assets/{arrow-left-CymyVbCi.js → arrow-left-CSz-z20j.js} +1 -1
- package/dist/client/assets/{arrow-right-9wyq4YVq.js → arrow-right-DEi91hao.js} +1 -1
- package/dist/client/assets/{arrow-up-right-mfU38K6p.js → arrow-up-right-D7SpcTV9.js} +1 -1
- package/dist/client/assets/authorization-B1YXfej3.js +1 -0
- package/dist/client/assets/badge-BjvTY7-E.js +1 -0
- package/dist/client/assets/{bot-BR3RyOWP.js → bot-SC4UGZyw.js} +1 -1
- package/dist/client/assets/{capabilities-C8sxDbKT.js → capabilities-BCkDNe83.js} +1 -1
- package/dist/client/assets/{chart-column-CcRi3pAd.js → chart-column-C08MuLgY.js} +1 -1
- package/dist/client/assets/chevron-right-DgB53U1_.js +1 -0
- package/dist/client/assets/{clipboard-copy-ezz8rnaT.js → clipboard-copy-D74Wvnon.js} +1 -1
- package/dist/client/assets/{data-list-ZLhzdlED.js → data-list-CZ4Utnfl.js} +1 -1
- package/dist/client/assets/{desktopWorkspace-P28r2lN2.js → desktopWorkspace-DVfn9ZT_.js} +1 -1
- package/dist/client/assets/{download-BA9L9tK9.js → download-Dio40wIJ.js} +1 -1
- package/dist/client/assets/editorPreferences-2dG4uloq.js +1 -0
- package/dist/client/assets/{empty-3NpXLnAM.js → empty-6LExKYgQ.js} +1 -1
- package/dist/client/assets/{group-D5qBdsaB.js → group-D_mu0Kiq.js} +1 -1
- package/dist/client/assets/{hostedConnectionCoordinator-CLV-JD1S.js → hostedConnectionCoordinator-YkDLnATK.js} +1 -1
- package/dist/client/assets/{hubRoutes-EWJ3Gdod.js → hubRoutes-D3quWvU7.js} +1 -1
- package/dist/client/assets/{index-DxCd1PgA.js → index-7MTgf8YI.js} +2 -2
- package/dist/client/assets/{input-DrOL1KPS.js → input-CfVJycb1.js} +1 -1
- package/dist/client/assets/jbig2-CNFLgX9F.wasm +0 -0
- package/dist/client/assets/kbd-uFa_tY-L.js +1 -0
- package/dist/client/assets/{key-round-D2DtQ7aS.js → key-round-C-oUSjpF.js} +1 -1
- package/dist/client/assets/{layers-DtSJWmwy.js → layers-Co2a5C1k.js} +1 -1
- package/dist/client/assets/{log-out-YAp9fsOg.js → log-out-pWFhbvwr.js} +1 -1
- package/dist/client/assets/{logging-BuUPX1SP.js → logging-JMrwaeZh.js} +1 -1
- package/dist/client/assets/main-BNPtp9Z0.css +2 -0
- package/dist/client/assets/main-CGeD6yVE.js +9 -0
- package/dist/client/assets/openjpeg-MeY6OQBn.wasm +0 -0
- package/dist/client/assets/{palette-D18VboLH.js → palette-B_6C4fD6.js} +1 -1
- package/dist/client/assets/pdf.worker.min-Dswkl-cV.mjs +29 -0
- package/dist/client/assets/{play-d3KUi4G6.js → play-DFtc9zBy.js} +1 -1
- package/dist/client/assets/primary-CNUdEGcv.js +2 -0
- package/dist/client/assets/providerDriverMeta-Cg_XLUfo.js +1 -0
- package/dist/client/assets/{ProviderModelPicker-dwWhl7Uf.js → providerInstances-JaDrOWPZ.js} +1 -1
- package/dist/client/assets/providerModels-5uOq3qPC.js +1 -0
- package/dist/client/assets/qcms_bg-3PJi_GXR.wasm +0 -0
- package/dist/client/assets/{qr-code-Bk1kdf_k.js → qr-code-BU354aLS.js} +1 -1
- package/dist/client/assets/{qr-code-MAZkoKtL.js → qr-code-DaHWf7Oq.js} +1 -1
- package/dist/client/assets/quickjs-eval-zJSp5SB4.wasm +0 -0
- package/dist/client/assets/radio-group-DKaA1eey.js +2 -0
- package/dist/client/assets/{refresh-cw-DY3_Ph-S.js → refresh-cw-CY5BeUEr.js} +1 -1
- package/dist/client/assets/runtime-BKneT96Q.js +17 -0
- package/dist/client/assets/{save-ugJXuJRM.js → save-DIHMjHXd.js} +1 -1
- package/dist/client/assets/{scroll-area-BMnGzd2a.js → scroll-area-Cq4SX9P8.js} +1 -1
- package/dist/client/assets/{scrollEdges-QLSFwGSQ.js → scrollEdges-BaWRjrac.js} +1 -1
- package/dist/client/assets/{separator-BwUYkCkX.js → separator-BN705fC0.js} +1 -1
- package/dist/client/assets/{settingsLayout-C6SUmJVB.js → settingsLayout-DQERzSce.js} +1 -1
- package/dist/client/assets/{sheet-DLy4aeVa.js → sheet-CFvRY7T6.js} +1 -1
- package/dist/client/assets/{shield-Zq_ygsnJ.js → shield-Zn2kFj5M.js} +1 -1
- package/dist/client/assets/{shield-alert-DfUhTI4-.js → shield-alert-DMB5gKiC.js} +1 -1
- package/dist/client/assets/{shield-check-CO4SMhAs.js → shield-check-DyNf6Bky.js} +1 -1
- package/dist/client/assets/{sidebar-DNnW-a2V.js → sidebar-Bsh64sLK.js} +1 -1
- package/dist/client/assets/sidebarProjectFolders-CQbpO9ZI.js +4 -0
- package/dist/client/assets/{sidebarStatusText-CawrXnx0.js → sidebarStatusText-DCo-whyK.js} +1 -1
- package/dist/client/assets/{skeleton-DRm4_OvB.js → skeleton-DEuowfjY.js} +1 -1
- package/dist/client/assets/{smartphone-O2VACDhU.js → smartphone-BLWJ7C9-.js} +1 -1
- package/dist/client/assets/{sparkles-isHutYWU.js → sparkles-DAXDXp_s.js} +1 -1
- package/dist/client/assets/src-DPpEXU6w.js +14 -0
- package/dist/client/assets/{star-7UHEnC3x.js → star-CjQxHYbD.js} +1 -1
- package/dist/client/assets/switch-LahPAvrd.js +48 -0
- package/dist/client/assets/{toggle-CaKBNe6W.js → toggle-45lsrmyi.js} +1 -1
- package/dist/client/assets/{toggle-group-UeFeTI3u.js → toggle-group-D5pl24ED.js} +1 -1
- package/dist/client/assets/{tokenModePresentation-DV56ekA4.js → tokenModePresentation-CPUsUGY4.js} +1 -1
- package/dist/client/assets/tooltip-B8-izeMo.js +1 -0
- package/dist/client/assets/{unplug-DisTpujT.js → unplug-Bjpxv8i0.js} +1 -1
- package/dist/client/assets/usage-8vQUo0mr.js +1 -0
- package/dist/client/assets/useAppSidebarCollapsed-uwz9Hlgc.js +1 -0
- package/dist/client/assets/useBaseUiId-BtuL7q77.js +1 -0
- package/dist/client/assets/useLabelableId-N_LsKNbf.js +1 -0
- package/dist/client/assets/useNavigate-DADLi29i.js +1 -0
- package/dist/client/assets/usePhoneThreadActions-B9_HK7tn.js +1 -0
- package/dist/client/assets/usePopupViewport-w8BEny9j.js +1 -0
- package/dist/client/assets/useScrollLock-bCmUzTgK.js +1 -0
- package/dist/client/assets/useStatistics-DJtONxT0.js +55 -0
- package/dist/client/assets/useTriggerFocusGuards-C7JWO2LT.js +1 -0
- package/dist/client/assets/useValueChanged-DkoUO9bY.js +1 -0
- package/dist/client/assets/{user-round-DctamWV6.js → user-round-DEWIPpNs.js} +1 -1
- package/dist/client/assets/{vscode-icons-Dw-LGJAv.js → vscode-icons-DTH-Vj-_.js} +1 -1
- package/dist/client/assets/workspaceMetadataProjection-BnpxBe8S.js +1 -0
- package/dist/client/assets/{wrench-Ds8eZerZ.js → wrench-36WYdK_a.js} +1 -1
- package/dist/client/index.html +1 -1
- package/dist/collectUint8StreamText-BAUF-vzz.mjs +37 -0
- package/dist/collectUint8StreamText-vagpNUMJ.cjs +42 -0
- package/dist/deviceHostWorker-C-BSnmkn.mjs +167 -0
- package/dist/deviceHostWorker-CYnrwfrv.cjs +169 -0
- package/dist/git-C4iJMbBu.mjs +132 -0
- package/dist/git-irmB8_k7.cjs +218 -0
- package/dist/{makeManagedServerProvider-GZcpSLrW.mjs → makeManagedServerProvider-BINne1KE.mjs} +3 -38
- package/dist/{makeManagedServerProvider-VzxWN-04.cjs → makeManagedServerProvider-DGbd8BhM.cjs} +1 -60
- 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/ryco-resource-monitor.exe +0 -0
- package/dist/resource-monitor/win32-x64/ryco-resource-monitor.exe +0 -0
- package/dist/runtimeSession-Bj0OUcNJ.cjs +63 -0
- package/dist/runtimeSession-CA6cLWg0.mjs +40 -0
- package/dist/schemaJson-CaG1bOvo.mjs +49 -0
- package/dist/schemaJson-CuhFxa8p.cjs +66 -0
- package/dist/{collectUint8StreamText-DStwNTTK.cjs → src-BlzIcnVG.cjs} +573 -117
- package/dist/{collectUint8StreamText-C_VNyArd.mjs → src-DtEOcXdl.mjs} +389 -95
- package/package.json +1 -1
- package/dist/AcpNativeLogging-COepku4a.cjs +0 -5130
- package/dist/AcpNativeLogging-D7e1dn7s.mjs +0 -5015
- package/dist/client/assets/AccountSettings-ApnDA1f-.js +0 -1
- package/dist/client/assets/AiFocusSettings-CNmGHEcA.js +0 -1
- package/dist/client/assets/AppearanceSettings-BG8W4DP0.js +0 -1
- package/dist/client/assets/ChatRightPanel-a6UOHNMm.js +0 -194
- package/dist/client/assets/CommandPaletteDialog-B2iKWCUi.js +0 -1
- package/dist/client/assets/CompositeRoot-C1G-Ejus.js +0 -1
- package/dist/client/assets/ComputerUseSettings-CPwWoHWj.js +0 -1
- package/dist/client/assets/ConnectionsSettings-CPMkuxza.js +0 -7
- package/dist/client/assets/ContextHandoffEndpointLabel-BildLLDY.js +0 -4
- package/dist/client/assets/DialogRoot-SKkIuQHA.js +0 -1
- package/dist/client/assets/DialogTrigger-Bl_fcIV2.js +0 -1
- package/dist/client/assets/DraftChatThreadRouteView-CEDYjbKq.js +0 -1
- package/dist/client/assets/HostedHubRoot-BTWc0XoQ.js +0 -2
- package/dist/client/assets/IntegrationsSettingsPanel-n9owMZf-.js +0 -2
- package/dist/client/assets/McpServersSettings-BWIUud0Z.js +0 -6
- package/dist/client/assets/MobileSheet-NTayGHF6.js +0 -1
- package/dist/client/assets/OpinionatedPluginsSettings-D7WuuNWZ.js +0 -1
- package/dist/client/assets/PhoneHome-FqWvnJP_.js +0 -1
- package/dist/client/assets/PhoneSettingsSurface-w5PJnoBc.js +0 -2
- package/dist/client/assets/ProvidersSettingsPanel-Ww1ch3xA.js +0 -1
- package/dist/client/assets/RootAppShell-BdQCs2XJ.js +0 -7
- package/dist/client/assets/Separator-CpYBhf-I.js +0 -1
- package/dist/client/assets/SettingsDialog-DeMzEeCP.js +0 -2
- package/dist/client/assets/SettingsPanels-ZxNz9ZfL.js +0 -3
- package/dist/client/assets/StatisticsPage-C7v-6CTr.js +0 -1
- package/dist/client/assets/StatisticsPanel-CeIjiBm8.js +0 -1
- package/dist/client/assets/StatisticsSettingsLink-5s_violW.js +0 -1
- package/dist/client/assets/ThreadWorkspacePanel-Ct5kMcuY.js +0 -2073
- package/dist/client/assets/authorization-CjOFkg7b.js +0 -1
- package/dist/client/assets/badge-Dg7mXiOh.js +0 -1
- package/dist/client/assets/chevron-right-CuUjBsQV.js +0 -1
- package/dist/client/assets/editorPreferences-DeKdSV3s.js +0 -1
- package/dist/client/assets/kbd-rWDjJnWX.js +0 -1
- package/dist/client/assets/main-BbtLAX7M.js +0 -9
- package/dist/client/assets/main-D4CtFNPY.css +0 -2
- package/dist/client/assets/monitor-OyD484tI.js +0 -1
- package/dist/client/assets/primary-D_D7eLwT.js +0 -2
- package/dist/client/assets/providerDriverMeta-DNTocCcU.js +0 -1
- package/dist/client/assets/providerModels-bFbEIfL9.js +0 -1
- package/dist/client/assets/radio-group-D-VCGinX.js +0 -2
- package/dist/client/assets/runtime-Djy96GJd.js +0 -17
- package/dist/client/assets/sidebarProjectFolders-ygpaKZM6.js +0 -4
- package/dist/client/assets/src-BSuAGqhK.js +0 -14
- package/dist/client/assets/switch-DD1qVLgN.js +0 -48
- package/dist/client/assets/tooltip-DXvXxL37.js +0 -1
- package/dist/client/assets/useAppSidebarCollapsed-CaAsLi1q.js +0 -1
- package/dist/client/assets/useBaseUiId-CJN4MvrU.js +0 -1
- package/dist/client/assets/useLabelableId-BsDFG9Oj.js +0 -1
- package/dist/client/assets/useNavigate-cLfxn_9L.js +0 -1
- package/dist/client/assets/usePhoneThreadActions-rekHL1Mi.js +0 -1
- package/dist/client/assets/usePopupViewport-kXU31P6l.js +0 -1
- package/dist/client/assets/useScrollLock-DjMxrUJe.js +0 -1
- package/dist/client/assets/useStatistics-BYP-9CmW.js +0 -55
- package/dist/client/assets/useTriggerFocusGuards-DuAm2B8C.js +0 -1
- package/dist/client/assets/useValueChanged-DreFjrMK.js +0 -1
- package/dist/client/assets/workspaceMetadataProjection-BL4sEIL2.js +0 -1
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const
|
|
4
|
-
const require_Metrics = require("./Metrics-
|
|
3
|
+
const require_src = require("./src-BlzIcnVG.cjs");
|
|
4
|
+
const require_Metrics = require("./Metrics-DCKbdeoH.cjs");
|
|
5
5
|
const require_bin = require("./bin.cjs");
|
|
6
|
-
const
|
|
6
|
+
const require_runtimeSession = require("./runtimeSession-Bj0OUcNJ.cjs");
|
|
7
7
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
8
|
-
const
|
|
8
|
+
const require_SideQuestionIsolation = require("./SideQuestionIsolation-DvVKZWxi.cjs");
|
|
9
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-DGbd8BhM.cjs");
|
|
10
|
+
const require_CodexTextGeneration = require("./CodexTextGeneration-Y2GSS7f1.cjs");
|
|
9
11
|
let effect = require("effect");
|
|
10
12
|
let node_crypto = require("node:crypto");
|
|
11
13
|
require("effect/unstable/process");
|
|
@@ -17,7 +19,7 @@ function isCopilotChildEvent(event) {
|
|
|
17
19
|
}
|
|
18
20
|
//#endregion
|
|
19
21
|
//#region src/provider/Layers/CopilotAdapter.types.ts
|
|
20
|
-
const COPILOT_DRIVER_KIND =
|
|
22
|
+
const COPILOT_DRIVER_KIND = require_src.ProviderDriverKind.make("copilot");
|
|
21
23
|
const DEFAULT_BINARY_PATH = "copilot";
|
|
22
24
|
const USER_INPUT_QUESTION_ID = "answer";
|
|
23
25
|
function resolveCopilotCliPath(settings, environment) {
|
|
@@ -43,13 +45,13 @@ function normalizeString(value) {
|
|
|
43
45
|
return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
44
46
|
}
|
|
45
47
|
function toRuntimeItemId(value) {
|
|
46
|
-
return value ?
|
|
48
|
+
return value ? require_src.RuntimeItemId.make(value) : void 0;
|
|
47
49
|
}
|
|
48
50
|
function toRuntimeRequestId(value) {
|
|
49
|
-
return value ?
|
|
51
|
+
return value ? require_src.RuntimeRequestId.make(value) : void 0;
|
|
50
52
|
}
|
|
51
53
|
function toProviderItemId(value) {
|
|
52
|
-
return value ?
|
|
54
|
+
return value ? require_src.ProviderItemId.make(value) : void 0;
|
|
53
55
|
}
|
|
54
56
|
function normalizeUsage(event) {
|
|
55
57
|
const directInputTokens = event.data.inputTokens ?? 0;
|
|
@@ -220,7 +222,7 @@ const mapEvent = (deps, session, event) => effect.Effect.gen(function* () {
|
|
|
220
222
|
if (event.type === "subagent.started" || event.type === "subagent.completed" || event.type === "subagent.failed") {
|
|
221
223
|
const data = event.data;
|
|
222
224
|
const linkage = {
|
|
223
|
-
taskId:
|
|
225
|
+
taskId: require_src.RuntimeTaskId.make(`copilot-task:${data.toolCallId}`),
|
|
224
226
|
taskType: "subagent",
|
|
225
227
|
title: data.agentDisplayName.trim() || data.agentName.trim() || "Copilot agent",
|
|
226
228
|
...data.agentName.trim() ? { role: data.agentName.trim() } : {},
|
|
@@ -270,7 +272,7 @@ const mapEvent = (deps, session, event) => effect.Effect.gen(function* () {
|
|
|
270
272
|
if (isCopilotChildEvent(event)) return [];
|
|
271
273
|
switch (event.type) {
|
|
272
274
|
case "assistant.turn_start": {
|
|
273
|
-
const eventTurnId =
|
|
275
|
+
const eventTurnId = require_src.TurnId.make(event.data.turnId);
|
|
274
276
|
return [{
|
|
275
277
|
...eventBase({
|
|
276
278
|
eventId: stamp.eventId,
|
|
@@ -588,7 +590,7 @@ const makeStartSession = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
588
590
|
operation: "startSession",
|
|
589
591
|
issue: `Expected provider instance '${deps.instanceId}' but received '${input.providerInstanceId}'.`
|
|
590
592
|
});
|
|
591
|
-
const runtimeSessionId = yield*
|
|
593
|
+
const runtimeSessionId = yield* require_runtimeSession.requireRuntimeSessionId(COPILOT_DRIVER_KIND, input);
|
|
592
594
|
const existing = deps.sessions.get(input.threadId);
|
|
593
595
|
if (existing) {
|
|
594
596
|
if (existing.runtimeSessionId !== runtimeSessionId) return yield* new require_bin.ProviderAdapterValidationError({
|
|
@@ -700,7 +702,7 @@ const makeStartSession = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
700
702
|
record.lastUsage = void 0;
|
|
701
703
|
record.unsubscribe = nextSession.on((event) => {
|
|
702
704
|
if (event.type === "assistant.turn_start" && !isCopilotChildEvent(event)) {
|
|
703
|
-
activeTurn =
|
|
705
|
+
activeTurn = require_src.TurnId.make(event.data.turnId);
|
|
704
706
|
record.activeTurnId = activeTurn;
|
|
705
707
|
for (const pending of Array.from(record.pendingTurnStarts)) pending.resolve(activeTurn);
|
|
706
708
|
record.pendingTurnStarts.clear();
|
|
@@ -755,7 +757,7 @@ const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
755
757
|
if (declaredAttachmentBytes > 52428800) return yield* new require_bin.ProviderAdapterRequestError({
|
|
756
758
|
provider: COPILOT_DRIVER_KIND,
|
|
757
759
|
method: "session.send",
|
|
758
|
-
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${
|
|
760
|
+
detail: `Attachments total ${declaredAttachmentBytes} bytes; limit is ${require_src.PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
759
761
|
});
|
|
760
762
|
let attachmentTotalBytes = 0;
|
|
761
763
|
const pathLineEntries = [];
|
|
@@ -777,7 +779,7 @@ const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
777
779
|
if (attachmentTotalBytes > 52428800) return yield* new require_bin.ProviderAdapterRequestError({
|
|
778
780
|
provider: COPILOT_DRIVER_KIND,
|
|
779
781
|
method: "session.send",
|
|
780
|
-
detail: `Attachments total ${attachmentTotalBytes} bytes; limit is ${
|
|
782
|
+
detail: `Attachments total ${attachmentTotalBytes} bytes; limit is ${require_src.PROVIDER_SEND_TURN_MAX_ATTACHMENT_TOTAL_BYTES} bytes.`
|
|
781
783
|
});
|
|
782
784
|
return {
|
|
783
785
|
type: "blob",
|
|
@@ -812,7 +814,7 @@ const makeSendTurn = (deps) => (input) => effect.Effect.gen(function* () {
|
|
|
812
814
|
}
|
|
813
815
|
record.updatedAt = (/* @__PURE__ */ new Date()).toISOString();
|
|
814
816
|
const sendPayload = {
|
|
815
|
-
prompt:
|
|
817
|
+
prompt: require_runtimeSession.appendAttachmentPathLines(input.input ?? "", require_runtimeSession.formatAttachmentPathLines(pathLineEntries)) ?? "",
|
|
816
818
|
...attachments.length > 0 ? { attachments } : {},
|
|
817
819
|
mode: "immediate"
|
|
818
820
|
};
|
|
@@ -940,7 +942,7 @@ const makeRollbackThread = () => (threadId) => effect.Effect.succeed({
|
|
|
940
942
|
const FULL_ACCESS_AUTO_APPROVE_AFTER_MS = 600;
|
|
941
943
|
const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (copilotSettings, options) {
|
|
942
944
|
const serverConfig = yield* require_Metrics.ServerConfig;
|
|
943
|
-
const instanceId = options?.instanceId ??
|
|
945
|
+
const instanceId = options?.instanceId ?? require_src.ProviderInstanceId.make("copilot");
|
|
944
946
|
const nativeEventLogger = options?.nativeEventLogger ?? (options?.nativeEventLogPath !== void 0 ? yield* require_bin.makeEventNdjsonLogger(options.nativeEventLogPath, { stream: "native" }) : void 0);
|
|
945
947
|
const sessions = /* @__PURE__ */ new Map();
|
|
946
948
|
const runtimeEventQueue = yield* effect.Queue.bounded(2048);
|
|
@@ -950,7 +952,7 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
950
952
|
provider: COPILOT_DRIVER_KIND,
|
|
951
953
|
providerInstanceId: instanceId
|
|
952
954
|
});
|
|
953
|
-
const nextEventId = effect.Effect.map(effect.Effect.sync(() => crypto.randomUUID()), (id) =>
|
|
955
|
+
const nextEventId = effect.Effect.map(effect.Effect.sync(() => crypto.randomUUID()), (id) => require_src.EventId.make(id));
|
|
954
956
|
const makeEventStamp = () => effect.Effect.all({
|
|
955
957
|
eventId: nextEventId,
|
|
956
958
|
createdAt: effect.Effect.sync(() => (/* @__PURE__ */ new Date()).toISOString())
|
|
@@ -976,7 +978,7 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
976
978
|
});
|
|
977
979
|
const makeSyntheticEvent = (threadId, runtimeSessionId, type, payload, extra) => effect.Effect.gen(function* () {
|
|
978
980
|
const stamp = yield* makeEventStamp();
|
|
979
|
-
return
|
|
981
|
+
return require_runtimeSession.stampRuntimeEvent({
|
|
980
982
|
...eventBase({
|
|
981
983
|
eventId: stamp.eventId,
|
|
982
984
|
createdAt: stamp.createdAt,
|
|
@@ -1004,7 +1006,7 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
1004
1006
|
const handleEvent = effect.Effect.fn("handleCopilotEvent")(function* (session, event) {
|
|
1005
1007
|
if (isCopilotChildEvent(event)) {
|
|
1006
1008
|
yield* logNativeEvent(session.threadId, event);
|
|
1007
|
-
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) =>
|
|
1009
|
+
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) => require_runtimeSession.stampRuntimeEvent(runtimeEvent, {
|
|
1008
1010
|
providerInstanceId: instanceId,
|
|
1009
1011
|
runtimeSessionId: session.runtimeSessionId
|
|
1010
1012
|
}));
|
|
@@ -1014,7 +1016,7 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
1014
1016
|
session.updatedAt = event.timestamp;
|
|
1015
1017
|
const clearsActiveTurn = event.type === "session.idle" || event.type === "abort";
|
|
1016
1018
|
if (event.type === "assistant.turn_start") {
|
|
1017
|
-
const turnId =
|
|
1019
|
+
const turnId = require_src.TurnId.make(event.data.turnId);
|
|
1018
1020
|
session.activeTurnId = turnId;
|
|
1019
1021
|
session.turns.push({
|
|
1020
1022
|
id: turnId,
|
|
@@ -1030,7 +1032,7 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
1030
1032
|
if (session.agentControl) yield* session.agentControl.revoke("runtime-teardown");
|
|
1031
1033
|
}
|
|
1032
1034
|
yield* logNativeEvent(session.threadId, event);
|
|
1033
|
-
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) =>
|
|
1035
|
+
const mapped = (yield* mapEvent(mapEventDeps, session, event)).map((runtimeEvent) => require_runtimeSession.stampRuntimeEvent(runtimeEvent, {
|
|
1034
1036
|
providerInstanceId: instanceId,
|
|
1035
1037
|
runtimeSessionId: session.runtimeSessionId
|
|
1036
1038
|
}));
|
|
@@ -1191,18 +1193,18 @@ const makeCopilotAdapter = effect.Effect.fn("makeCopilotAdapter")(function* (cop
|
|
|
1191
1193
|
//#endregion
|
|
1192
1194
|
//#region src/textGeneration/CopilotTextGeneration.ts
|
|
1193
1195
|
const COPILOT_THREAD_TITLE_TIMEOUT_MS = 6e4;
|
|
1194
|
-
const CODEX_DRIVER_KIND =
|
|
1196
|
+
const CODEX_DRIVER_KIND = require_src.ProviderDriverKind.make("codex");
|
|
1195
1197
|
const ThreadTitleResponse = effect.Schema.Struct({ title: effect.Schema.String });
|
|
1196
1198
|
function gitTextGenerationSelection() {
|
|
1197
|
-
const options =
|
|
1199
|
+
const options = require_src.DEFAULT_GIT_TEXT_GENERATION_OPTIONS_BY_PROVIDER[CODEX_DRIVER_KIND];
|
|
1198
1200
|
return {
|
|
1199
|
-
instanceId:
|
|
1200
|
-
model:
|
|
1201
|
+
instanceId: require_src.ProviderInstanceId.make("codex"),
|
|
1202
|
+
model: require_src.DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER[CODEX_DRIVER_KIND] ?? "gpt-5.6-luna",
|
|
1201
1203
|
...options ? { options } : {}
|
|
1202
1204
|
};
|
|
1203
1205
|
}
|
|
1204
|
-
const makeCopilotTextGeneration = effect.Effect.fn("makeCopilotTextGeneration")(function* (copilotSettings, environment = process.env, clientFactory = (cwd) => new _github_copilot_sdk.CopilotClient(makeCopilotClientOptions(copilotSettings, environment, cwd))) {
|
|
1205
|
-
const codexFallback = yield* require_CodexTextGeneration.makeCodexTextGeneration(effect.Schema.decodeSync(
|
|
1206
|
+
const makeCopilotTextGeneration = effect.Effect.fn("makeCopilotTextGeneration")(function* (copilotSettings, environment = process.env, clientFactory = (cwd, sideQuestion) => new _github_copilot_sdk.CopilotClient(makeCopilotClientOptions(copilotSettings, sideQuestion ? require_SideQuestionIsolation.sideQuestionEnvironment(environment) : environment, cwd))) {
|
|
1207
|
+
const codexFallback = yield* require_CodexTextGeneration.makeCodexTextGeneration(effect.Schema.decodeSync(require_src.CodexSettings)({}), environment);
|
|
1206
1208
|
const withGitFallbackSelection = (input) => ({
|
|
1207
1209
|
...input,
|
|
1208
1210
|
modelSelection: gitTextGenerationSelection()
|
|
@@ -1236,19 +1238,78 @@ const makeCopilotTextGeneration = effect.Effect.fn("makeCopilotTextGeneration")(
|
|
|
1236
1238
|
await client.stop();
|
|
1237
1239
|
}
|
|
1238
1240
|
},
|
|
1239
|
-
catch: (cause) => new
|
|
1241
|
+
catch: (cause) => new require_src.TextGenerationError({
|
|
1240
1242
|
operation: "generateThreadTitle",
|
|
1241
1243
|
detail: cause instanceof Error ? `GitHub Copilot title generation failed: ${cause.message}` : "GitHub Copilot title generation failed.",
|
|
1242
1244
|
cause
|
|
1243
1245
|
})
|
|
1244
1246
|
});
|
|
1245
|
-
const parsed = yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(ThreadTitleResponse))(require_bin.extractJsonObject(content)).pipe(effect.Effect.mapError((cause) => new
|
|
1247
|
+
const parsed = yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(ThreadTitleResponse))(require_bin.extractJsonObject(content)).pipe(effect.Effect.mapError((cause) => new require_src.TextGenerationError({
|
|
1246
1248
|
operation: "generateThreadTitle",
|
|
1247
1249
|
detail: "GitHub Copilot returned invalid title JSON.",
|
|
1248
1250
|
cause
|
|
1249
1251
|
})));
|
|
1250
1252
|
return { title: require_bin.sanitizeThreadTitle(parsed.title) };
|
|
1251
1253
|
});
|
|
1254
|
+
const answerSideQuestion = (input) => effect.Effect.scoped(effect.Effect.gen(function* () {
|
|
1255
|
+
const cwd = yield* require_SideQuestionIsolation.sideQuestionDirectory;
|
|
1256
|
+
const { prompt, outputSchema } = require_bin.buildSideQuestionPrompt(input);
|
|
1257
|
+
const client = yield* effect.Effect.acquireRelease(effect.Effect.sync(() => clientFactory(cwd, true)), (client) => effect.Effect.promise(() => client.stop()).pipe(effect.Effect.ignore));
|
|
1258
|
+
const reasoningEffort = require_bin.getModelSelectionStringOptionValue(input.modelSelection, "reasoningEffort");
|
|
1259
|
+
const content = yield* effect.Effect.tryPromise({
|
|
1260
|
+
try: async (signal) => {
|
|
1261
|
+
const session = await client.createSession({
|
|
1262
|
+
model: input.modelSelection.model,
|
|
1263
|
+
...reasoningEffort ? { reasoningEffort } : {},
|
|
1264
|
+
workingDirectory: cwd,
|
|
1265
|
+
configDirectory: cwd,
|
|
1266
|
+
streaming: false,
|
|
1267
|
+
availableTools: [],
|
|
1268
|
+
onPermissionRequest: () => ({ kind: "reject" }),
|
|
1269
|
+
systemMessage: {
|
|
1270
|
+
mode: "replace",
|
|
1271
|
+
content: "Answer only from the supplied completed context. No tools, file access, or mutations are permitted."
|
|
1272
|
+
},
|
|
1273
|
+
enableConfigDiscovery: false,
|
|
1274
|
+
enableOnDemandInstructionDiscovery: false,
|
|
1275
|
+
enableFileHooks: false,
|
|
1276
|
+
enableHostGitOperations: false,
|
|
1277
|
+
enableSessionStore: false,
|
|
1278
|
+
enableSkills: false,
|
|
1279
|
+
skipEmbeddingRetrieval: true,
|
|
1280
|
+
embeddingCacheStorage: "in-memory",
|
|
1281
|
+
infiniteSessions: { enabled: false }
|
|
1282
|
+
});
|
|
1283
|
+
const abort = () => {
|
|
1284
|
+
session.abort().catch(() => void 0);
|
|
1285
|
+
};
|
|
1286
|
+
signal.addEventListener("abort", abort, { once: true });
|
|
1287
|
+
try {
|
|
1288
|
+
if (signal.aborted) {
|
|
1289
|
+
abort();
|
|
1290
|
+
throw new Error("Side question cancelled.");
|
|
1291
|
+
}
|
|
1292
|
+
return (await session.sendAndWait({
|
|
1293
|
+
prompt,
|
|
1294
|
+
mode: "immediate"
|
|
1295
|
+
}, 18e4))?.data.content ?? "";
|
|
1296
|
+
} finally {
|
|
1297
|
+
signal.removeEventListener("abort", abort);
|
|
1298
|
+
await session.disconnect();
|
|
1299
|
+
}
|
|
1300
|
+
},
|
|
1301
|
+
catch: (cause) => new require_src.TextGenerationError({
|
|
1302
|
+
operation: "answerSideQuestion",
|
|
1303
|
+
detail: "GitHub Copilot side question failed.",
|
|
1304
|
+
cause
|
|
1305
|
+
})
|
|
1306
|
+
});
|
|
1307
|
+
return yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchema))(require_bin.extractJsonObject(content)).pipe(effect.Effect.mapError((cause) => new require_src.TextGenerationError({
|
|
1308
|
+
operation: "answerSideQuestion",
|
|
1309
|
+
detail: "GitHub Copilot returned invalid side question JSON.",
|
|
1310
|
+
cause
|
|
1311
|
+
})));
|
|
1312
|
+
}));
|
|
1252
1313
|
const rankInboxThreads = (input) => effect.Effect.gen(function* () {
|
|
1253
1314
|
const { prompt, outputSchema } = require_bin.buildThreadPriorityPrompt({ serializedCandidates: input.chunk.serializedCandidates });
|
|
1254
1315
|
const client = clientFactory(input.cwd);
|
|
@@ -1275,13 +1336,13 @@ const makeCopilotTextGeneration = effect.Effect.fn("makeCopilotTextGeneration")(
|
|
|
1275
1336
|
await client.stop();
|
|
1276
1337
|
}
|
|
1277
1338
|
},
|
|
1278
|
-
catch: (cause) => new
|
|
1339
|
+
catch: (cause) => new require_src.TextGenerationError({
|
|
1279
1340
|
operation: "rankInboxThreads",
|
|
1280
1341
|
detail: cause instanceof Error ? `GitHub Copilot inbox ranking failed: ${cause.message}` : "GitHub Copilot inbox ranking failed.",
|
|
1281
1342
|
cause
|
|
1282
1343
|
})
|
|
1283
1344
|
});
|
|
1284
|
-
const parsed = yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchema))(require_bin.extractJsonObject(content)).pipe(effect.Effect.mapError((cause) => new
|
|
1345
|
+
const parsed = yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchema))(require_bin.extractJsonObject(content)).pipe(effect.Effect.mapError((cause) => new require_src.TextGenerationError({
|
|
1285
1346
|
operation: "rankInboxThreads",
|
|
1286
1347
|
detail: "GitHub Copilot returned invalid inbox ranking JSON.",
|
|
1287
1348
|
cause
|
|
@@ -1294,12 +1355,13 @@ const makeCopilotTextGeneration = effect.Effect.fn("makeCopilotTextGeneration")(
|
|
|
1294
1355
|
generateBranchName: (input) => codexFallback.generateBranchName(withGitFallbackSelection(input)),
|
|
1295
1356
|
generateThreadTitle,
|
|
1296
1357
|
generateIssueContent: (input) => codexFallback.generateIssueContent(withGitFallbackSelection(input)),
|
|
1297
|
-
rankInboxThreads
|
|
1358
|
+
rankInboxThreads,
|
|
1359
|
+
answerSideQuestion
|
|
1298
1360
|
};
|
|
1299
1361
|
});
|
|
1300
1362
|
//#endregion
|
|
1301
1363
|
//#region src/provider/Layers/CopilotProvider.ts
|
|
1302
|
-
const PROVIDER =
|
|
1364
|
+
const PROVIDER = require_src.ProviderDriverKind.make("copilot");
|
|
1303
1365
|
const COPILOT_PRESENTATION = {
|
|
1304
1366
|
displayName: "GitHub Copilot",
|
|
1305
1367
|
showInteractionModeToggle: true
|
|
@@ -1492,7 +1554,7 @@ const checkCopilotProviderStatus = effect.Effect.fn("checkCopilotProviderStatus"
|
|
|
1492
1554
|
});
|
|
1493
1555
|
//#endregion
|
|
1494
1556
|
//#region src/provider/Drivers/CopilotDriver.ts
|
|
1495
|
-
const DRIVER_KIND =
|
|
1557
|
+
const DRIVER_KIND = require_src.ProviderDriverKind.make("copilot");
|
|
1496
1558
|
const withInstanceIdentity = (input) => (snapshot) => ({
|
|
1497
1559
|
...snapshot,
|
|
1498
1560
|
instanceId: input.instanceId,
|
|
@@ -1507,8 +1569,8 @@ const CopilotDriver = {
|
|
|
1507
1569
|
displayName: "GitHub Copilot",
|
|
1508
1570
|
supportsMultipleInstances: true
|
|
1509
1571
|
},
|
|
1510
|
-
configSchema:
|
|
1511
|
-
defaultConfig: () => effect.Schema.decodeSync(
|
|
1572
|
+
configSchema: require_src.CopilotSettings,
|
|
1573
|
+
defaultConfig: () => effect.Schema.decodeSync(require_src.CopilotSettings)({}),
|
|
1512
1574
|
create: ({ instanceId, displayName, accentColor, environment, enabled, config }) => effect.Effect.gen(function* () {
|
|
1513
1575
|
const eventLoggers = yield* require_bin.ProviderEventLoggers;
|
|
1514
1576
|
const agentControl = yield* effect.Effect.serviceOption(require_bin.AgentControlSessionRegistry);
|
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const require_rolldown_runtime = require("./rolldown-runtime-LGfotAqq.cjs");
|
|
4
|
-
const
|
|
5
|
-
const require_Metrics = require("./Metrics-
|
|
4
|
+
const require_src = require("./src-BlzIcnVG.cjs");
|
|
5
|
+
const require_Metrics = require("./Metrics-DCKbdeoH.cjs");
|
|
6
|
+
const require_git = require("./git-irmB8_k7.cjs");
|
|
6
7
|
const require_bin = require("./bin.cjs");
|
|
7
|
-
const
|
|
8
|
+
const require_AcpNativeLogging = require("./AcpNativeLogging-DZPZNoju.cjs");
|
|
9
|
+
const require_runtimeSession = require("./runtimeSession-Bj0OUcNJ.cjs");
|
|
8
10
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
9
|
-
const
|
|
11
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-DGbd8BhM.cjs");
|
|
10
12
|
let effect = require("effect");
|
|
11
13
|
let effect_unstable_http = require("effect/unstable/http");
|
|
12
14
|
let node_path = require("node:path");
|
|
@@ -58,7 +60,7 @@ const CursorUpdateTodosRequest = effect.Schema.Struct({
|
|
|
58
60
|
const CursorAvailableModel = effect.Schema.Struct({
|
|
59
61
|
value: effect.Schema.String,
|
|
60
62
|
name: effect.Schema.String,
|
|
61
|
-
configOptions: effect.Schema.optional(effect.Schema.Array(
|
|
63
|
+
configOptions: effect.Schema.optional(effect.Schema.Array(require_bin.SessionConfigOption))
|
|
62
64
|
});
|
|
63
65
|
const CursorListAvailableModelsResponse = effect.Schema.Struct({ models: effect.Schema.Array(CursorAvailableModel) });
|
|
64
66
|
function extractAskQuestions(params) {
|
|
@@ -91,7 +93,7 @@ function extractTodosAsPlan(params) {
|
|
|
91
93
|
}
|
|
92
94
|
//#endregion
|
|
93
95
|
//#region src/provider/Layers/CursorProvider.ts
|
|
94
|
-
const PROVIDER$1 =
|
|
96
|
+
const PROVIDER$1 = require_src.ProviderDriverKind.make("cursor");
|
|
95
97
|
const CURSOR_PRESENTATION = {
|
|
96
98
|
displayName: "Cursor",
|
|
97
99
|
badgeLabel: "Early Access",
|
|
@@ -281,7 +283,7 @@ function buildCursorDiscoveredModelsFromAvailableModelsResponse(response) {
|
|
|
281
283
|
}
|
|
282
284
|
const makeCursorAcpProbeRuntime = (cursorSettings, environment = process.env) => effect.Effect.gen(function* () {
|
|
283
285
|
const spawner = yield* effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner;
|
|
284
|
-
const acpContext = yield* effect.Layer.build(
|
|
286
|
+
const acpContext = yield* effect.Layer.build(require_bin.AcpSessionRuntime.layer({
|
|
285
287
|
spawn: {
|
|
286
288
|
command: cursorSettings.binaryPath,
|
|
287
289
|
args: [...cursorSettings.apiEndpoint ? ["-e", cursorSettings.apiEndpoint] : [], "acp"],
|
|
@@ -296,7 +298,7 @@ const makeCursorAcpProbeRuntime = (cursorSettings, environment = process.env) =>
|
|
|
296
298
|
authMethodId: "cursor_login",
|
|
297
299
|
clientCapabilities: CURSOR_PARAMETERIZED_MODEL_PICKER_CAPABILITIES
|
|
298
300
|
}).pipe(effect.Layer.provide(effect.Layer.succeed(effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner, spawner))));
|
|
299
|
-
return yield* effect.Effect.service(
|
|
301
|
+
return yield* effect.Effect.service(require_bin.AcpSessionRuntime).pipe(effect.Effect.provide(acpContext));
|
|
300
302
|
});
|
|
301
303
|
const withCursorAcpProbeRuntime = (cursorSettings, useRuntime, environment = process.env) => makeCursorAcpProbeRuntime(cursorSettings, environment).pipe(effect.Effect.flatMap(useRuntime), effect.Effect.scoped);
|
|
302
304
|
function normalizeCursorConfigOptionToken(value) {
|
|
@@ -714,13 +716,13 @@ function buildCursorAcpSpawnInput(cursorSettings, cwd, environment) {
|
|
|
714
716
|
};
|
|
715
717
|
}
|
|
716
718
|
const makeCursorAcpRuntime = (input) => effect.Effect.gen(function* () {
|
|
717
|
-
const acpContext = yield* effect.Layer.build(
|
|
719
|
+
const acpContext = yield* effect.Layer.build(require_bin.AcpSessionRuntime.layer({
|
|
718
720
|
...input,
|
|
719
721
|
spawn: buildCursorAcpSpawnInput(input.cursorSettings, input.cwd, input.environment),
|
|
720
722
|
authMethodId: "cursor_login",
|
|
721
723
|
clientCapabilities: CURSOR_PARAMETERIZED_MODEL_PICKER_CAPABILITIES
|
|
722
724
|
}).pipe(effect.Layer.provide(effect.Layer.succeed(effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner, input.childProcessSpawner))));
|
|
723
|
-
return yield* effect.Effect.service(
|
|
725
|
+
return yield* effect.Effect.service(require_bin.AcpSessionRuntime).pipe(effect.Effect.provide(acpContext));
|
|
724
726
|
});
|
|
725
727
|
function applyCursorAcpModelSelection(input) {
|
|
726
728
|
return effect.Effect.gen(function* () {
|
|
@@ -740,7 +742,7 @@ function applyCursorAcpModelSelection(input) {
|
|
|
740
742
|
//#region src/textGeneration/CursorTextGeneration.ts
|
|
741
743
|
const CURSOR_TIMEOUT_MS = 18e4;
|
|
742
744
|
function mapCursorAcpError(operation, detail, cause) {
|
|
743
|
-
return new
|
|
745
|
+
return new require_src.TextGenerationError({
|
|
744
746
|
operation,
|
|
745
747
|
detail,
|
|
746
748
|
...cause !== void 0 ? { cause } : {}
|
|
@@ -788,18 +790,18 @@ const makeCursorTextGeneration = effect.Effect.fn("makeCursorTextGeneration")(fu
|
|
|
788
790
|
text: prompt
|
|
789
791
|
}] });
|
|
790
792
|
}).pipe(effect.Effect.timeoutOption(CURSOR_TIMEOUT_MS), effect.Effect.flatMap(effect.Option.match({
|
|
791
|
-
onNone: () => effect.Effect.fail(new
|
|
793
|
+
onNone: () => effect.Effect.fail(new require_src.TextGenerationError({
|
|
792
794
|
operation,
|
|
793
795
|
detail: "Cursor Agent request timed out."
|
|
794
796
|
})),
|
|
795
797
|
onSome: (value) => effect.Effect.succeed(value)
|
|
796
798
|
})), effect.Effect.mapError((cause) => isTextGenerationError(cause) ? cause : mapCursorAcpError(operation, "Cursor ACP request failed.", cause)));
|
|
797
799
|
const rawResult = (yield* effect.Ref.get(outputRef)).trim();
|
|
798
|
-
if (!rawResult) return yield* new
|
|
800
|
+
if (!rawResult) return yield* new require_src.TextGenerationError({
|
|
799
801
|
operation,
|
|
800
802
|
detail: promptResult.stopReason === "cancelled" ? "Cursor ACP request was cancelled." : "Cursor Agent returned empty output."
|
|
801
803
|
});
|
|
802
|
-
return yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchemaJson))(require_bin.extractJsonObject(rawResult)).pipe(effect.Effect.catchTag("SchemaError", (cause) => effect.Effect.fail(new
|
|
804
|
+
return yield* effect.Schema.decodeEffect(effect.Schema.fromJsonString(outputSchemaJson))(require_bin.extractJsonObject(rawResult)).pipe(effect.Effect.catchTag("SchemaError", (cause) => effect.Effect.fail(new require_src.TextGenerationError({
|
|
803
805
|
operation,
|
|
804
806
|
detail: "Cursor Agent returned invalid structured output.",
|
|
805
807
|
cause
|
|
@@ -823,7 +825,7 @@ const makeCursorTextGeneration = effect.Effect.fn("makeCursorTextGeneration")(fu
|
|
|
823
825
|
return {
|
|
824
826
|
subject: require_bin.sanitizeCommitSubject(generated.subject),
|
|
825
827
|
body: generated.body.trim(),
|
|
826
|
-
..."branch" in generated && typeof generated.branch === "string" ? { branch:
|
|
828
|
+
..."branch" in generated && typeof generated.branch === "string" ? { branch: require_git.sanitizeFeatureBranchName(generated.branch) } : {}
|
|
827
829
|
};
|
|
828
830
|
}),
|
|
829
831
|
generatePrContent: effect.Effect.fn("CursorTextGeneration.generatePrContent")(function* (input) {
|
|
@@ -858,7 +860,7 @@ const makeCursorTextGeneration = effect.Effect.fn("makeCursorTextGeneration")(fu
|
|
|
858
860
|
outputSchemaJson: outputSchema,
|
|
859
861
|
modelSelection: input.modelSelection
|
|
860
862
|
});
|
|
861
|
-
return { branch:
|
|
863
|
+
return { branch: require_git.sanitizeBranchFragment(generated.branch) };
|
|
862
864
|
}),
|
|
863
865
|
generateThreadTitle: effect.Effect.fn("CursorTextGeneration.generateThreadTitle")(function* (input) {
|
|
864
866
|
const { prompt, outputSchema } = require_bin.buildThreadTitlePrompt({
|
|
@@ -913,7 +915,11 @@ const makeCursorTextGeneration = effect.Effect.fn("makeCursorTextGeneration")(fu
|
|
|
913
915
|
modelSelection: input.modelSelection
|
|
914
916
|
});
|
|
915
917
|
return yield* require_bin.validateRankInboxThreadsResult(input, generated.rankings);
|
|
916
|
-
})
|
|
918
|
+
}),
|
|
919
|
+
answerSideQuestion: (_input) => effect.Effect.fail(new require_src.TextGenerationError({
|
|
920
|
+
operation: "answerSideQuestion",
|
|
921
|
+
detail: "Cursor does not provide an enforceable tool-free side question mode. Select Codex, Claude, or GitHub Copilot for side chat."
|
|
922
|
+
}))
|
|
917
923
|
};
|
|
918
924
|
});
|
|
919
925
|
//#endregion
|
|
@@ -923,7 +929,7 @@ const makeCursorTextGeneration = effect.Effect.fn("makeCursorTextGeneration")(fu
|
|
|
923
929
|
*
|
|
924
930
|
* @module CursorAdapterLive
|
|
925
931
|
*/
|
|
926
|
-
const PROVIDER =
|
|
932
|
+
const PROVIDER = require_src.ProviderDriverKind.make("cursor");
|
|
927
933
|
const CURSOR_RESUME_VERSION = 1;
|
|
928
934
|
const ACP_PLAN_MODE_ALIASES = ["plan", "architect"];
|
|
929
935
|
const ACP_IMPLEMENT_MODE_ALIASES = [
|
|
@@ -1015,7 +1021,7 @@ function selectAutoApprovedPermissionOption(request) {
|
|
|
1015
1021
|
}
|
|
1016
1022
|
function makeCursorAdapter(cursorSettings, options) {
|
|
1017
1023
|
return effect.Effect.gen(function* () {
|
|
1018
|
-
const boundInstanceId = options?.instanceId ??
|
|
1024
|
+
const boundInstanceId = options?.instanceId ?? require_src.ProviderInstanceId.make("cursor");
|
|
1019
1025
|
const fileSystem = yield* effect.FileSystem.FileSystem;
|
|
1020
1026
|
const childProcessSpawner = yield* effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner;
|
|
1021
1027
|
const serverConfig = yield* effect.Effect.service(require_Metrics.ServerConfig);
|
|
@@ -1025,13 +1031,13 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1025
1031
|
const threadLocksRef = yield* effect.SynchronizedRef.make(/* @__PURE__ */ new Map());
|
|
1026
1032
|
const runtimeEventPubSub = yield* effect.PubSub.bounded(2048);
|
|
1027
1033
|
const nowIso = effect.Effect.map(effect.DateTime.now, effect.DateTime.formatIso);
|
|
1028
|
-
const nextEventId = effect.Effect.map(effect.Effect.sync(() => crypto.randomUUID()), (id) =>
|
|
1034
|
+
const nextEventId = effect.Effect.map(effect.Effect.sync(() => crypto.randomUUID()), (id) => require_src.EventId.make(id));
|
|
1029
1035
|
const makeEventStamp = () => effect.Effect.all({
|
|
1030
1036
|
eventId: nextEventId,
|
|
1031
1037
|
createdAt: nowIso
|
|
1032
1038
|
});
|
|
1033
1039
|
const offerRuntimeEventForRuntime = (runtimeSessionId, event) => {
|
|
1034
|
-
return effect.PubSub.publish(runtimeEventPubSub,
|
|
1040
|
+
return effect.PubSub.publish(runtimeEventPubSub, require_runtimeSession.stampRuntimeEvent(event, {
|
|
1035
1041
|
providerInstanceId: boundInstanceId,
|
|
1036
1042
|
runtimeSessionId
|
|
1037
1043
|
})).pipe(effect.Effect.asVoid);
|
|
@@ -1115,7 +1121,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1115
1121
|
operation: "startSession",
|
|
1116
1122
|
issue: `Expected provider instance '${boundInstanceId}' but received '${input.providerInstanceId}'.`
|
|
1117
1123
|
});
|
|
1118
|
-
const runtimeSessionId = yield*
|
|
1124
|
+
const runtimeSessionId = yield* require_runtimeSession.requireRuntimeSessionId(PROVIDER, input);
|
|
1119
1125
|
if (!input.cwd?.trim()) return yield* new require_bin.ProviderAdapterValidationError({
|
|
1120
1126
|
provider: PROVIDER,
|
|
1121
1127
|
operation: "startSession",
|
|
@@ -1196,8 +1202,8 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1196
1202
|
const started = yield* effect.Effect.gen(function* () {
|
|
1197
1203
|
yield* acp.handleExtRequest("cursor/ask_question", CursorAskQuestionRequest, (params) => effect.Effect.gen(function* () {
|
|
1198
1204
|
yield* logNative(input.threadId, "cursor/ask_question", params, "acp.cursor.extension");
|
|
1199
|
-
const requestId =
|
|
1200
|
-
const runtimeRequestId =
|
|
1205
|
+
const requestId = require_src.ApprovalRequestId.make(crypto.randomUUID());
|
|
1206
|
+
const runtimeRequestId = require_src.RuntimeRequestId.make(requestId);
|
|
1201
1207
|
const answers = yield* effect.Deferred.make();
|
|
1202
1208
|
pendingUserInputs.set(requestId, { answers });
|
|
1203
1209
|
yield* offerRuntimeEventForRuntime(runtimeSessionId, {
|
|
@@ -1257,9 +1263,9 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1257
1263
|
optionId: autoApprovedOptionId
|
|
1258
1264
|
} };
|
|
1259
1265
|
}
|
|
1260
|
-
const permissionRequest =
|
|
1261
|
-
const requestId =
|
|
1262
|
-
const runtimeRequestId =
|
|
1266
|
+
const permissionRequest = require_bin.parsePermissionRequest(params);
|
|
1267
|
+
const requestId = require_src.ApprovalRequestId.make(crypto.randomUUID());
|
|
1268
|
+
const runtimeRequestId = require_src.RuntimeRequestId.make(requestId);
|
|
1263
1269
|
const decision = yield* effect.Deferred.make();
|
|
1264
1270
|
pendingApprovals.set(requestId, {
|
|
1265
1271
|
decision,
|
|
@@ -1452,7 +1458,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1452
1458
|
}).pipe(effect.Effect.scoped));
|
|
1453
1459
|
const sendTurn = (input) => effect.Effect.gen(function* () {
|
|
1454
1460
|
const ctx = yield* requireSession(input.threadId);
|
|
1455
|
-
const turnId =
|
|
1461
|
+
const turnId = require_src.TurnId.make(crypto.randomUUID());
|
|
1456
1462
|
const turnModelSelection = input.modelSelection?.instanceId === boundInstanceId ? input.modelSelection : void 0;
|
|
1457
1463
|
const model = turnModelSelection?.model ?? ctx.session.model;
|
|
1458
1464
|
const resolvedModel = resolveCursorAcpBaseModelId(model);
|
|
@@ -1523,7 +1529,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1523
1529
|
mimeType: attachment.mimeType
|
|
1524
1530
|
});
|
|
1525
1531
|
}
|
|
1526
|
-
const promptText =
|
|
1532
|
+
const promptText = require_runtimeSession.appendAttachmentPathLines(input.input?.trim(), require_runtimeSession.formatAttachmentPathLines(pathLineEntries));
|
|
1527
1533
|
if (promptText?.trim()) promptParts.push({
|
|
1528
1534
|
type: "text",
|
|
1529
1535
|
text: promptText
|
|
@@ -1656,7 +1662,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
1656
1662
|
*
|
|
1657
1663
|
* @module provider/Drivers/CursorDriver
|
|
1658
1664
|
*/
|
|
1659
|
-
const DRIVER_KIND =
|
|
1665
|
+
const DRIVER_KIND = require_src.ProviderDriverKind.make("cursor");
|
|
1660
1666
|
const UPDATE = require_bin.makeStaticProviderMaintenanceResolver(require_bin.makeProviderMaintenanceCapabilities({
|
|
1661
1667
|
provider: DRIVER_KIND,
|
|
1662
1668
|
packageName: null,
|
|
@@ -1678,8 +1684,8 @@ const CursorDriver = {
|
|
|
1678
1684
|
displayName: "Cursor",
|
|
1679
1685
|
supportsMultipleInstances: true
|
|
1680
1686
|
},
|
|
1681
|
-
configSchema:
|
|
1682
|
-
defaultConfig: () => effect.Schema.decodeSync(
|
|
1687
|
+
configSchema: require_src.CursorSettings,
|
|
1688
|
+
defaultConfig: () => effect.Schema.decodeSync(require_src.CursorSettings)({}),
|
|
1683
1689
|
create: ({ instanceId, displayName, accentColor, environment, enabled, config }) => effect.Effect.gen(function* () {
|
|
1684
1690
|
const spawner = yield* effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner;
|
|
1685
1691
|
const fileSystem = yield* effect.FileSystem.FileSystem;
|
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
3
|
+
import { Ar as CursorSettings, As as EventId, Eo as ProviderInstanceId, Rs as RuntimeRequestId, Ss as ApprovalRequestId, To as ProviderDriverKind, Ws as TurnId, cr as TextGenerationError } from "./src-DtEOcXdl.mjs";
|
|
4
|
+
import { Z as ServerConfig } from "./Metrics-C-3MahDy.mjs";
|
|
5
|
+
import { m as sanitizeFeatureBranchName, p as sanitizeBranchFragment } from "./git-C4iJMbBu.mjs";
|
|
6
|
+
import { $ as buildCommitMessagePrompt, A as makeEventNdjsonLogger, At as providerModelsFromSettings, Cr as getProviderOptionBooleanSelectionValue, Ct as buildSelectOptionDescriptor, Dt as isCommandMissingCause, Er as getProviderOptionStringSelectionValue, Ht as ProviderAdapterValidationError, K as parsePermissionRequest, Lt as createProcessDeviceToolBinding, Nt as agentControlHostContext, Pt as installAgentControlAcp, Q as buildBranchNamePrompt, Rt as ProviderAdapterProcessError, St as buildBooleanOptionDescriptor, Tt as collectStreamAsString, Ut as ProviderDriverError, Vt as ProviderAdapterSessionNotFoundError, W as AcpSessionRuntime, X as SessionConfigOption, Z as validateRankInboxThreadsResult, _r as resolveAttachmentPath, at as buildThreadTitlePrompt, br as createModelCapabilities, ct as sanitizeCommitSubject, et as buildIssueContentPolishPrompt, fr as resolveProviderMaintenanceCapabilitiesEffect, gt as mergeProviderInstanceEnvironment, hr as isPersistableChatAttachment, it as buildThreadPriorityPrompt, k as ProviderEventLoggers, lr as makeProviderMaintenanceCapabilities, lt as sanitizePrTitle, mr as ServerSettingsService, n as AgentControlSessionRegistry, nt as buildPrContentPrompt, or as enrichProviderSnapshotWithVersionAdvisory, ot as extractJsonObject, tt as buildIssueContentTitlePrompt, ur as makeStaticProviderMaintenanceResolver, ut as sanitizeThreadTitle, wt as buildServerProvider, zt as ProviderAdapterRequestError } from "./bin.mjs";
|
|
7
|
+
import { a as makeAcpRequestOpenedEvent, c as makeAcpTokenUsageEvent, d as mapAcpToAdapterError, f as makeAcpSubagentRuntimeEvents, i as makeAcpPlanUpdatedEvent, l as makeAcpToolCallEvent, n as makeAcpAssistantItemEvent, o as makeAcpRequestResolvedEvent, r as makeAcpContentDeltaEvent, s as makeAcpThoughtDeltaEvent, t as makeAcpNativeLoggers, u as acpPermissionOutcome } from "./AcpNativeLogging-BsbZRRD7.mjs";
|
|
8
|
+
import { i as formatAttachmentPathLines, n as stampRuntimeEvent, r as appendAttachmentPathLines, t as requireRuntimeSessionId } from "./runtimeSession-CA6cLWg0.mjs";
|
|
7
9
|
import { t as defaultProviderContinuationIdentity } from "./ProviderDriver-kCV60GKk.mjs";
|
|
8
|
-
import {
|
|
10
|
+
import { t as makeManagedServerProvider } from "./makeManagedServerProvider-BINne1KE.mjs";
|
|
9
11
|
import { Cause, DateTime, Deferred, Effect, Exit, Fiber, FileSystem, Layer, Option, Path, PubSub, Ref, Result, Schema, Scope, Semaphore, Stream, SynchronizedRef } from "effect";
|
|
10
12
|
import { HttpClient } from "effect/unstable/http";
|
|
11
13
|
import * as nodePath from "node:path";
|
|
@@ -910,7 +912,11 @@ const makeCursorTextGeneration = Effect.fn("makeCursorTextGeneration")(function*
|
|
|
910
912
|
modelSelection: input.modelSelection
|
|
911
913
|
});
|
|
912
914
|
return yield* validateRankInboxThreadsResult(input, generated.rankings);
|
|
913
|
-
})
|
|
915
|
+
}),
|
|
916
|
+
answerSideQuestion: (_input) => Effect.fail(new TextGenerationError({
|
|
917
|
+
operation: "answerSideQuestion",
|
|
918
|
+
detail: "Cursor does not provide an enforceable tool-free side question mode. Select Codex, Claude, or GitHub Copilot for side chat."
|
|
919
|
+
}))
|
|
914
920
|
};
|
|
915
921
|
});
|
|
916
922
|
//#endregion
|