ryco-cli 0.1.6 → 0.1.7
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/{AzureDevOpsSourceControlProvider-6holYS_D.cjs → AzureDevOpsSourceControlProvider-5exivY-1.cjs} +2 -2
- package/dist/{AzureDevOpsSourceControlProvider-CC2_COxP.mjs → AzureDevOpsSourceControlProvider-CF5LuCHp.mjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-a0IsNFyG.cjs → BitbucketSourceControlProvider-1GWENqcl.cjs} +2 -2
- package/dist/{BitbucketSourceControlProvider-CYR_BD1d.mjs → BitbucketSourceControlProvider-CKH09tfT.mjs} +2 -2
- package/dist/{ClaudeDriver-C6tQNEWO.cjs → ClaudeDriver-BXLdjrht.cjs} +177 -4
- package/dist/{ClaudeDriver-D3nsxwH9.mjs → ClaudeDriver-WwWFTu61.mjs} +178 -5
- package/dist/{CodexDriver-BILrJG8o.mjs → CodexDriver-93-TmCrO.mjs} +6 -5
- package/dist/{CodexDriver-ms_YgFD7.cjs → CodexDriver-BboMT9uk.cjs} +5 -4
- package/dist/{CodexTextGeneration-CHEgoANm.cjs → CodexTextGeneration-0pRbJji3.cjs} +2 -2
- package/dist/{CodexTextGeneration-BIKHl7E3.mjs → CodexTextGeneration-BU9Myn87.mjs} +3 -3
- package/dist/{CopilotDriver-CmD3Ffyl.mjs → CopilotDriver-BASi8pJ0.mjs} +4 -4
- package/dist/{CopilotDriver-B0--ZwIK.cjs → CopilotDriver-DCsv-17W.cjs} +3 -3
- package/dist/{CursorDriver-DTVPXZ-R.cjs → CursorDriver-BTSiM3A8.cjs} +161 -14
- package/dist/{CursorDriver-CbeaIbdb.mjs → CursorDriver-D5LvIqUk.mjs} +162 -15
- package/dist/{ForgejoSourceControlProvider-DwAog76b.cjs → ForgejoSourceControlProvider-BTXRDCGB.cjs} +2 -2
- package/dist/{ForgejoSourceControlProvider-DX6d9gvz.mjs → ForgejoSourceControlProvider-e-4hvvZ_.mjs} +2 -2
- package/dist/{GitHubSourceControlProvider-C-LGwho3.mjs → GitHubSourceControlProvider-26IofDAO.mjs} +2 -2
- package/dist/{GitHubSourceControlProvider-9lJFzjsu.cjs → GitHubSourceControlProvider-DWmwkA_y.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-CvKA74lg.cjs → GitLabSourceControlProvider-D-YHnxRe.cjs} +2 -2
- package/dist/{GitLabSourceControlProvider-CkeT2aEx.mjs → GitLabSourceControlProvider-DePct78W.mjs} +2 -2
- package/dist/{OpenCodeDriver-ClWtCk0j.mjs → OpenCodeDriver-BhvLOmvn.mjs} +325 -38
- package/dist/{OpenCodeDriver-CXUsnl5o.cjs → OpenCodeDriver-CVeZ4n9-.cjs} +324 -37
- package/dist/{SourceControlProviderDiscoveryCatalog-_rg0mc1o.cjs → SourceControlProviderDiscoveryCatalog-DeFR5xH3.cjs} +1 -64
- package/dist/{SourceControlProviderDiscoveryCatalog-yMDer_Yh.mjs → SourceControlProviderDiscoveryCatalog-mJV_Xitr.mjs} +3 -48
- package/dist/bin.cjs +1280 -519
- package/dist/bin.mjs +1234 -474
- package/dist/client/assets/{AnimatedHeight-DgItDSis.js → AnimatedHeight-BSU0lzYs.js} +1 -1
- package/dist/client/assets/AppearanceSettings-D7q0ujGK.js +1 -0
- package/dist/client/assets/{BranchToolbar.logic-C_xHEt9C.js → BranchToolbar.logic-CZIFSvhd.js} +1 -1
- package/dist/client/assets/ChatRightPanel-CWHOIuiQ.js +188 -0
- package/dist/client/assets/{ChatThreadRouteView-CV6ETYG5.js → ChatThreadRouteView-bA7xWXzc.js} +1 -1
- package/dist/client/assets/{CommandPaletteDialog-C_H7R8S5.js → CommandPaletteDialog-DNYaVOZO.js} +1 -1
- package/dist/client/assets/CompositeRoot-B_KEfCUE.js +1 -0
- package/dist/client/assets/ConnectionsSettings-CLZPbx_K.js +1 -0
- package/dist/client/assets/{DiagnosticsSettings-B340S_mq.js → DiagnosticsSettings-DtzPCb6N.js} +1 -1
- package/dist/client/assets/{DialogHandle-BJY7cHCV.js → DialogHandle-DuHnmWoE.js} +1 -1
- package/dist/client/assets/{DialogRoot-Ej1FVk-_.js → DialogRoot-BV25qAcA.js} +1 -1
- package/dist/client/assets/DialogTitle-DQsi-RTa.js +1 -0
- package/dist/client/assets/DialogTrigger-D0fA01C6.js +1 -0
- package/dist/client/assets/{DialogViewport-DvjAl76K.js → DialogViewport-CMV_BePU.js} +1 -1
- package/dist/client/assets/{DraftChatThreadRouteView-pOkyeKPS.js → DraftChatThreadRouteView-BoiKnrii.js} +1 -1
- package/dist/client/assets/{JetBrainsIcons-DTTF47I0.js → JetBrainsIcons-BcPxJlMf.js} +1 -1
- package/dist/client/assets/{KeybindingsSettings-CW3RRi-7.js → KeybindingsSettings-LuI98pdF.js} +1 -1
- package/dist/client/assets/McpServersSettings-BFMuWYVV.js +6 -0
- package/dist/client/assets/{NoActiveThreadState-DVHwrkCp.js → NoActiveThreadState-C2q_O1kP.js} +1 -1
- package/dist/client/assets/{OpinionatedPluginsSettings-Cjj23Fs4.js → OpinionatedPluginsSettings-Bqwct37O.js} +1 -1
- package/dist/client/assets/{ProjectFavicon-TDP7HRfn.js → ProjectFavicon-D2imiJ8M.js} +1 -1
- package/dist/client/assets/{ProviderUpdateLaunchNotification.logic-6TpFsmiI.js → ProviderUpdateLaunchNotification.logic-CJgA--nK.js} +1 -1
- package/dist/client/assets/ProvidersSettingsPanel-B97vbeu6.js +1 -0
- package/dist/client/assets/{RedactedSensitiveText-BfoVjPsE.js → RedactedSensitiveText-B2GFTyfq.js} +1 -1
- package/dist/client/assets/RootAppShell-C1xTR98P.js +12 -0
- package/dist/client/assets/SettingsDialog-Q0Q8O5oH.js +2 -0
- package/dist/client/assets/SourceControlSettings-KAvoPTNi.js +1 -0
- package/dist/client/assets/StatisticsPanel-BzsQ444K.js +64 -0
- package/dist/client/assets/{ThreadStatusIndicators-B0leIJGD.js → ThreadStatusIndicators-Cw_jLVQf.js} +1 -1
- package/dist/client/assets/{ThreadTerminalDrawer-COq2Fk17.js → ThreadTerminalDrawer-D1WnSemH.js} +17 -17
- package/dist/client/assets/ThreadWorkspacePanel-L4qCPTOA.js +166 -0
- package/dist/client/assets/{alert-dialog-lMfKpG2t.js → alert-dialog-CNmKa0BK.js} +1 -1
- package/dist/client/assets/chart-column-BWSKYZ_a.js +1 -0
- package/dist/client/assets/{chatThreadActions-PPyTj_x0.js → chatThreadActions-TtDsiwDC.js} +1 -1
- package/dist/client/assets/chevron-up-zopJ_99l.js +1 -0
- package/dist/client/assets/{clamp-JiD4IZ0Z.js → clamp-Ds6WJu8j.js} +1 -1
- package/dist/client/assets/{clipboard-copy-CYBLSG2q.js → clipboard-copy-BoJGpdmJ.js} +1 -1
- package/dist/client/assets/clock-CzUHThzk.js +1 -0
- package/dist/client/assets/{commandPaletteStore-uVfCD7zE.js → commandPaletteStore-KebG835b.js} +1 -1
- package/dist/client/assets/composerDraftStore-DpPEQ6BN.js +21 -0
- package/dist/client/assets/{desktopUpdateAtoms-X6uM5SoD.js → desktopUpdateAtoms-BQ0GGEfM.js} +1 -1
- package/dist/client/assets/{download-DLBlpp4h.js → download-CUiRE0N9.js} +1 -1
- package/dist/client/assets/{draft-input-dLlVMl5P.js → draft-input-CwpGDtoT.js} +1 -1
- package/dist/client/assets/editorPreferences-jN7DKbyt.js +1 -0
- package/dist/client/assets/{empty-DlLY-Hhj.js → empty-CBuXePtg.js} +1 -1
- package/dist/client/assets/{group-zDBPF7rR.js → group-BpZvxjG5.js} +1 -1
- package/dist/client/assets/{index-Dq8sT2lF.js → index-BKzXTNJ_.js} +2 -2
- package/dist/client/assets/{input-B9-RWT56.js → input-CgDawd6k.js} +1 -1
- package/dist/client/assets/kbd-QYSL97CK.js +1 -0
- package/dist/client/assets/{keybindings-Dx4Nc1vY.js → keybindings-CUTRYI_A.js} +1 -1
- package/dist/client/assets/{keyboard-DDTWQkr0.js → keyboard-DFFiI7JY.js} +1 -1
- package/dist/client/assets/{keyedQuery-Ds4OGhX2.js → keyedQuery-DiOCbGH0.js} +0 -0
- package/dist/client/assets/{main-DxfpmoKJ.js → main-BgFGju3e.js} +3 -3
- package/dist/client/assets/main-D0UFdwts.css +2 -0
- package/dist/client/assets/{palette-BQcz-ZYV.js → palette-BXCL909c.js} +1 -1
- package/dist/client/assets/{play-QloDGe4R.js → play-DI2LZohg.js} +1 -1
- package/dist/client/assets/plus-DzgIfHUF.js +1 -0
- package/dist/client/assets/projectAtoms-DXXpuERK.js +1 -0
- package/dist/client/assets/providerDriverMeta-CRNNp0q3.js +1 -0
- package/dist/client/assets/providerIconUtils-D-DFhem2.js +47 -0
- package/dist/client/assets/radio-group-_PPYg3YY.js +1 -0
- package/dist/client/assets/{refresh-cw-DkBMGllm.js → refresh-cw-BsQTNBXl.js} +1 -1
- package/dist/client/assets/{resolveAriaLabelledBy-DDfIbj05.js → resolveAriaLabelledBy-CRHo_s16.js} +1 -1
- package/dist/client/assets/{rightPanelRouteSearch-DfuWVvXN.js → rightPanelRouteSearch-CfmZ7osj.js} +1 -1
- package/dist/client/assets/{scale-BActunFu.js → scale-DDEJ-tvn.js} +1 -1
- package/dist/client/assets/{scroll-area-D-YOUG02.js → scroll-area-HgsI-ErG.js} +1 -1
- package/dist/client/assets/{separator-TInKeIDo.js → separator-ClnL4mUB.js} +1 -1
- package/dist/client/assets/{server-BtEG3NAw.js → server-Bbs3L-6_.js} +1 -1
- package/dist/client/assets/{session-logic-DNf1aXq_.js → session-logic-CKQkgIwo.js} +1 -1
- package/dist/client/assets/settingsDialogStore-SG-W1q0A.js +1 -0
- package/dist/client/assets/{settingsLayout-D22Mm0u3.js → settingsLayout-G5xVm-ZT.js} +1 -1
- package/dist/client/assets/sidebar-_u7SGgmC.js +1 -0
- package/dist/client/assets/sidebarStatusText-BTYnwflG.js +1 -0
- package/dist/client/assets/{skeleton-DWaac_qp.js → skeleton-CmUvhZGP.js} +1 -1
- package/dist/client/assets/{storeSelectors-Cx1IYPA4.js → storeSelectors-DhJRpdiw.js} +1 -1
- package/dist/client/assets/threadSelectionStore-ygmA4DNA.js +1 -0
- package/dist/client/assets/toast-DmA_ziPT.js +1 -0
- package/dist/client/assets/toggle-DGS7tKuj.js +1 -0
- package/dist/client/assets/{toggle-group-CnLjaHSL.js → toggle-group-Dtv1ZUFW.js} +1 -1
- package/dist/client/assets/{tokenModePresentation-BSYdIvBm.js → tokenModePresentation-Dor1DnBx.js} +1 -1
- package/dist/client/assets/{trash-2-BI5xcbsm.js → trash-2-C2G3VGoV.js} +1 -1
- package/dist/client/assets/{triangle-alert-DJef_Uvh.js → triangle-alert-Bpz3xGu5.js} +1 -1
- package/dist/client/assets/{undo-2-DeZ2cMGS.js → undo-2-C3rtxuqZ.js} +1 -1
- package/dist/client/assets/{useHandleNewThread-XB82O6SA.js → useHandleNewThread-ypSbzG0P.js} +1 -1
- package/dist/client/assets/useLabelableId-Bc7KEnHU.js +1 -0
- package/dist/client/assets/{useNavigate-B2tgshhW.js → useNavigate-_4hWGSey.js} +1 -1
- package/dist/client/assets/useTheme-HcKmBfpF.js +1 -0
- package/dist/client/assets/{vscode-icons-DM9qFoEr.js → vscode-icons-DdSTtxYd.js} +1 -1
- package/dist/client/assets/{wrench-je4QOyG-.js → wrench-C4jdis40.js} +1 -1
- package/dist/client/assets/x-CG2WU63t.js +1 -0
- package/dist/client/index.html +1 -1
- package/dist/{collectUint8StreamText-C2z5Y8tF.mjs → collectUint8StreamText-Lv4GGI79.mjs} +269 -14
- package/dist/{collectUint8StreamText-TCG6xW_P.cjs → collectUint8StreamText-uNXVRHOf.cjs} +291 -12
- package/dist/{makeManagedServerProvider-DPFw9gV_.cjs → makeManagedServerProvider-3SD-Q5xh.cjs} +1 -1
- package/dist/{makeManagedServerProvider-BXO8QvzC.mjs → makeManagedServerProvider-CkPEptun.mjs} +1 -1
- package/package.json +1 -1
- package/dist/client/assets/AppearanceSettings-BlsMFBvJ.js +0 -1
- package/dist/client/assets/ChatRightPanel-CThudBb1.js +0 -188
- package/dist/client/assets/CompositeRoot-DjnzUIwC.js +0 -1
- package/dist/client/assets/ConnectionsSettings-hArR4Oe3.js +0 -1
- package/dist/client/assets/DialogTitle-H1yIMmA9.js +0 -1
- package/dist/client/assets/DialogTrigger-BHMq_K2G.js +0 -1
- package/dist/client/assets/McpServersSettings-dQ3BzOWY.js +0 -6
- package/dist/client/assets/ProvidersSettingsPanel-D15EeWAq.js +0 -1
- package/dist/client/assets/RootAppShell-CWBPSA2w.js +0 -12
- package/dist/client/assets/SettingsDialog-oJCE5foT.js +0 -2
- package/dist/client/assets/SourceControlSettings-CPnlMxNm.js +0 -1
- package/dist/client/assets/ThreadWorkspacePanel-qF9y6QT9.js +0 -166
- package/dist/client/assets/composerDraftStore-D12lUSfh.js +0 -21
- package/dist/client/assets/editorPreferences-BLeEBSD_.js +0 -1
- package/dist/client/assets/folder-open-DMjz0lpx.js +0 -1
- package/dist/client/assets/kbd-aeSsjiPI.js +0 -1
- package/dist/client/assets/main-C57RhHZ_.css +0 -2
- package/dist/client/assets/plus-4Oy56d-3.js +0 -1
- package/dist/client/assets/projectAtoms-DUEBb7Zz.js +0 -1
- package/dist/client/assets/providerDriverMeta-Dwi6Zqgd.js +0 -1
- package/dist/client/assets/providerIconUtils-uhWb4bdg.js +0 -47
- package/dist/client/assets/radio-group-DHyQlLeX.js +0 -1
- package/dist/client/assets/settingsDialogStore-BINi7pdD.js +0 -1
- package/dist/client/assets/sidebar-DHwNQmWp.js +0 -1
- package/dist/client/assets/threadSelectionStore-C0ig4405.js +0 -1
- package/dist/client/assets/toast-DE7a4wkW.js +0 -1
- package/dist/client/assets/toggle-BIW4AyPY.js +0 -1
- package/dist/client/assets/useLabelableId-DBAgv9qQ.js +0 -1
- package/dist/client/assets/useTheme-Dv42Z8uy.js +0 -1
- package/dist/client/assets/x-fI9snvD3.js +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const require_chunk = require("./chunk-jM1PLTSZ.cjs");
|
|
4
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
4
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-uNXVRHOf.cjs");
|
|
5
5
|
const require_Metrics = require("./Metrics-CIW1QH7M.cjs");
|
|
6
6
|
const require_bin = require("./bin.cjs");
|
|
7
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
7
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-3SD-Q5xh.cjs");
|
|
8
8
|
const require_sourceControlContextFormatter = require("./sourceControlContextFormatter-BDZqn-4T.cjs");
|
|
9
9
|
const require_ProjectCustomSystemPrompt = require("./ProjectCustomSystemPrompt-B8SUlNGa.cjs");
|
|
10
|
-
const require_CodexTextGeneration = require("./CodexTextGeneration-
|
|
10
|
+
const require_CodexTextGeneration = require("./CodexTextGeneration-0pRbJji3.cjs");
|
|
11
11
|
let effect = require("effect");
|
|
12
12
|
let effect_unstable_http = require("effect/unstable/http");
|
|
13
13
|
let effect_unstable_process = require("effect/unstable/process");
|
|
@@ -1961,6 +1961,7 @@ const CodexDriver = {
|
|
|
1961
1961
|
create: ({ instanceId, displayName, accentColor, environment, enabled, config }) => effect.Effect.gen(function* () {
|
|
1962
1962
|
const spawner = yield* effect_unstable_process.ChildProcessSpawner.ChildProcessSpawner;
|
|
1963
1963
|
const httpClient = yield* effect_unstable_http.HttpClient.HttpClient;
|
|
1964
|
+
const serverSettings = yield* require_bin.ServerSettingsService;
|
|
1964
1965
|
const eventLoggers = yield* require_bin.ProviderEventLoggers;
|
|
1965
1966
|
const processEnv = require_bin.mergeProviderInstanceEnvironment(environment);
|
|
1966
1967
|
const homeLayout = yield* require_bin.resolveCodexHomeLayout(config);
|
|
@@ -2007,7 +2008,7 @@ const CodexDriver = {
|
|
|
2007
2008
|
haveSettingsChanged: () => false,
|
|
2008
2009
|
initialSnapshot: (settings) => stampIdentity(require_bin.makePendingCodexProvider(settings)),
|
|
2009
2010
|
checkProvider,
|
|
2010
|
-
enrichSnapshot: ({ snapshot, publishSnapshot }) => require_bin.enrichProviderSnapshotWithVersionAdvisory(snapshot, maintenanceCapabilities).pipe(effect.Effect.provideService(effect_unstable_http.HttpClient.HttpClient, httpClient), effect.Effect.flatMap((enrichedSnapshot) => publishSnapshot(enrichedSnapshot))),
|
|
2011
|
+
enrichSnapshot: ({ snapshot, publishSnapshot }) => require_bin.enrichProviderSnapshotWithVersionAdvisory(snapshot, maintenanceCapabilities).pipe(effect.Effect.provideService(effect_unstable_http.HttpClient.HttpClient, httpClient), effect.Effect.provideService(require_bin.ServerSettingsService, serverSettings), effect.Effect.flatMap((enrichedSnapshot) => publishSnapshot(enrichedSnapshot))),
|
|
2011
2012
|
refreshInterval: null
|
|
2012
2013
|
}).pipe(effect.Effect.mapError((cause) => new require_bin.ProviderDriverError({
|
|
2013
2014
|
driver: DRIVER_KIND,
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
3
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-uNXVRHOf.cjs");
|
|
4
4
|
const require_Metrics = require("./Metrics-CIW1QH7M.cjs");
|
|
5
5
|
const require_bin = require("./bin.cjs");
|
|
6
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
6
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-3SD-Q5xh.cjs");
|
|
7
7
|
let effect = require("effect");
|
|
8
8
|
let effect_unstable_process = require("effect/unstable/process");
|
|
9
9
|
//#region src/textGeneration/CodexTextGeneration.ts
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { x as TextGenerationError } from "./collectUint8StreamText-Lv4GGI79.mjs";
|
|
4
4
|
import { U as sanitizeBranchFragment, W as sanitizeFeatureBranchName, Y as ServerConfig } from "./Metrics-6Xj17Se3.mjs";
|
|
5
|
-
import { U as expandHomePath,
|
|
6
|
-
import { a as buildIssueContentTitlePrompt, d as sanitizePrTitle, f as sanitizeThreadTitle, i as buildIssueContentPolishPrompt, l as normalizeCliError, n as buildBranchNamePrompt, o as buildPrContentPrompt, p as toJsonSchemaObject, r as buildCommitMessagePrompt, s as buildThreadTitlePrompt, u as sanitizeCommitSubject } from "./makeManagedServerProvider-
|
|
5
|
+
import { U as expandHomePath, an as resolveAttachmentPath, ln as getModelSelectionBooleanOptionValue, un as getModelSelectionStringOptionValue } from "./bin.mjs";
|
|
6
|
+
import { a as buildIssueContentTitlePrompt, d as sanitizePrTitle, f as sanitizeThreadTitle, i as buildIssueContentPolishPrompt, l as normalizeCliError, n as buildBranchNamePrompt, o as buildPrContentPrompt, p as toJsonSchemaObject, r as buildCommitMessagePrompt, s as buildThreadTitlePrompt, u as sanitizeCommitSubject } from "./makeManagedServerProvider-CkPEptun.mjs";
|
|
7
7
|
import { Effect, FileSystem, Option, Path, Random, Schema, Stream } from "effect";
|
|
8
8
|
import { ChildProcess, ChildProcessSpawner } from "effect/unstable/process";
|
|
9
9
|
//#region src/textGeneration/CodexTextGeneration.ts
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { Bn as ProviderInstanceId, In as DEFAULT_GIT_TEXT_GENERATION_MODEL_BY_PROVIDER, L as CodexSettings, R as CopilotSettings, Sr as TurnId, _r as RuntimeRequestId, gr as RuntimeItemId, hr as ProviderItemId, lr as EventId, x as TextGenerationError, zn as ProviderDriverKind } from "./collectUint8StreamText-Lv4GGI79.mjs";
|
|
4
4
|
import { Y as ServerConfig } from "./Metrics-6Xj17Se3.mjs";
|
|
5
|
-
import { E as buildServerProvider, F as ProviderAdapterRequestError, L as ProviderAdapterSessionNotFoundError, M as providerModelsFromSettings, P as ProviderAdapterProcessError, R as ProviderAdapterValidationError, T as buildSelectOptionDescriptor, Zt as makeManualOnlyProviderMaintenanceCapabilities, an as
|
|
6
|
-
import { c as extractJsonObject, f as sanitizeThreadTitle, s as buildThreadTitlePrompt, t as makeManagedServerProvider } from "./makeManagedServerProvider-
|
|
5
|
+
import { E as buildServerProvider, F as ProviderAdapterRequestError, L as ProviderAdapterSessionNotFoundError, M as providerModelsFromSettings, P as ProviderAdapterProcessError, R as ProviderAdapterValidationError, T as buildSelectOptionDescriptor, Zt as makeManualOnlyProviderMaintenanceCapabilities, an as resolveAttachmentPath, cn as createModelCapabilities, g as makeEventNdjsonLogger, h as ProviderEventLoggers, k as isCommandMissingCause, mn as getProviderOptionStringSelectionValue, on as resolveCommandPath, t as makeServerQueueMetrics, un as getModelSelectionStringOptionValue, y as mergeProviderInstanceEnvironment, z as ProviderDriverError } from "./bin.mjs";
|
|
6
|
+
import { c as extractJsonObject, f as sanitizeThreadTitle, s as buildThreadTitlePrompt, t as makeManagedServerProvider } from "./makeManagedServerProvider-CkPEptun.mjs";
|
|
7
7
|
import { t as defaultProviderContinuationIdentity } from "./ProviderDriver-kCV60GKk.mjs";
|
|
8
|
-
import { t as makeCodexTextGeneration } from "./CodexTextGeneration-
|
|
8
|
+
import { t as makeCodexTextGeneration } from "./CodexTextGeneration-BU9Myn87.mjs";
|
|
9
9
|
import { Effect, Queue, Random, Result, Schema, Stream } from "effect";
|
|
10
10
|
import { randomUUID } from "node:crypto";
|
|
11
11
|
import "effect/unstable/process";
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
3
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-uNXVRHOf.cjs");
|
|
4
4
|
const require_Metrics = require("./Metrics-CIW1QH7M.cjs");
|
|
5
5
|
const require_bin = require("./bin.cjs");
|
|
6
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
6
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-3SD-Q5xh.cjs");
|
|
7
7
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
8
|
-
const require_CodexTextGeneration = require("./CodexTextGeneration-
|
|
8
|
+
const require_CodexTextGeneration = require("./CodexTextGeneration-0pRbJji3.cjs");
|
|
9
9
|
let effect = require("effect");
|
|
10
10
|
let node_crypto = require("node:crypto");
|
|
11
11
|
require("effect/unstable/process");
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
3
|
const require_chunk = require("./chunk-jM1PLTSZ.cjs");
|
|
4
|
-
const require_collectUint8StreamText = require("./collectUint8StreamText-
|
|
4
|
+
const require_collectUint8StreamText = require("./collectUint8StreamText-uNXVRHOf.cjs");
|
|
5
5
|
const require_Metrics = require("./Metrics-CIW1QH7M.cjs");
|
|
6
6
|
const require_bin = require("./bin.cjs");
|
|
7
|
-
const require_makeManagedServerProvider = require("./makeManagedServerProvider-
|
|
7
|
+
const require_makeManagedServerProvider = require("./makeManagedServerProvider-3SD-Q5xh.cjs");
|
|
8
8
|
const require_ProviderDriver = require("./ProviderDriver--rNeAi3B.cjs");
|
|
9
9
|
let effect_Effect = require("effect/Effect");
|
|
10
10
|
effect_Effect = require_chunk.__toESM(effect_Effect, 1);
|
|
@@ -3939,8 +3939,22 @@ function extractTextContentFromToolCallContent(content) {
|
|
|
3939
3939
|
function normalizeToolKind(kind) {
|
|
3940
3940
|
return typeof kind === "string" && kind.trim().length > 0 ? kind.trim() : void 0;
|
|
3941
3941
|
}
|
|
3942
|
-
function
|
|
3943
|
-
|
|
3942
|
+
function containsSubagentKeyword(value) {
|
|
3943
|
+
return value !== void 0 && /\b(sub[-\s]?agent|subtask|delegate|delegation)\b/i.test(value);
|
|
3944
|
+
}
|
|
3945
|
+
function hasExplicitSubagentType(data) {
|
|
3946
|
+
const subagentType = (isRecord$1(data?.rawInput) ? data.rawInput : void 0)?.subagent_type;
|
|
3947
|
+
return typeof subagentType === "string" && subagentType.trim().length > 0;
|
|
3948
|
+
}
|
|
3949
|
+
function isAcpSubagentToolCall(input) {
|
|
3950
|
+
if (containsSubagentKeyword(input.kind) || containsSubagentKeyword(input.title) || containsSubagentKeyword(input.command) || containsSubagentKeyword(input.detail)) return true;
|
|
3951
|
+
if (hasExplicitSubagentType(input.data)) return true;
|
|
3952
|
+
const rawInput = isRecord$1(input.data?.rawInput) ? input.data.rawInput : void 0;
|
|
3953
|
+
return containsSubagentKeyword(typeof rawInput?.tool === "string" ? rawInput.tool : void 0) || containsSubagentKeyword(typeof rawInput?.name === "string" ? rawInput.name : void 0);
|
|
3954
|
+
}
|
|
3955
|
+
function canonicalItemTypeFromAcpTool(input) {
|
|
3956
|
+
if (isAcpSubagentToolCall(input)) return "collab_agent_tool_call";
|
|
3957
|
+
switch (input.kind) {
|
|
3944
3958
|
case "execute": return "command_execution";
|
|
3945
3959
|
case "edit":
|
|
3946
3960
|
case "delete":
|
|
@@ -3950,6 +3964,46 @@ function canonicalItemTypeFromAcpToolKind$1(kind) {
|
|
|
3950
3964
|
default: return "dynamic_tool_call";
|
|
3951
3965
|
}
|
|
3952
3966
|
}
|
|
3967
|
+
function acpSubagentStatusFromToolStatus(status) {
|
|
3968
|
+
switch (status) {
|
|
3969
|
+
case "pending": return "starting";
|
|
3970
|
+
case "inProgress": return "running";
|
|
3971
|
+
case "completed": return "completed";
|
|
3972
|
+
case "failed": return "failed";
|
|
3973
|
+
default: return;
|
|
3974
|
+
}
|
|
3975
|
+
}
|
|
3976
|
+
function rawInputStringField(data, field) {
|
|
3977
|
+
const rawInput = isRecord$1(data?.rawInput) ? data.rawInput : void 0;
|
|
3978
|
+
if (!rawInput) return;
|
|
3979
|
+
const value = rawInput[field];
|
|
3980
|
+
return typeof value === "string" && value.trim().length > 0 ? value.trim() : void 0;
|
|
3981
|
+
}
|
|
3982
|
+
function makeAcpSubagentSummaryState(input) {
|
|
3983
|
+
if (!isAcpSubagentToolCall(input)) return;
|
|
3984
|
+
const label = input.title ?? rawInputStringField(input.data, "name") ?? "ACP subagent";
|
|
3985
|
+
const detail = input.detail ?? rawInputStringField(input.data, "description") ?? rawInputStringField(input.data, "prompt") ?? input.command;
|
|
3986
|
+
const metadata = Object.fromEntries([
|
|
3987
|
+
["source", "acp.tool_call"],
|
|
3988
|
+
["kind", input.kind],
|
|
3989
|
+
["command", input.command]
|
|
3990
|
+
].filter(([, value]) => value !== void 0));
|
|
3991
|
+
const status = acpSubagentStatusFromToolStatus(input.status);
|
|
3992
|
+
return {
|
|
3993
|
+
subagent: {
|
|
3994
|
+
subagentId: require_collectUint8StreamText.RuntimeSubagentId.make(input.toolCallId),
|
|
3995
|
+
origin: "inferred",
|
|
3996
|
+
capability: "summary",
|
|
3997
|
+
label,
|
|
3998
|
+
...detail ? { description: detail } : {},
|
|
3999
|
+
parentProviderItemId: require_collectUint8StreamText.ProviderItemId.make(input.toolCallId),
|
|
4000
|
+
metadata
|
|
4001
|
+
},
|
|
4002
|
+
...status ? { status } : {},
|
|
4003
|
+
summary: label,
|
|
4004
|
+
...detail ? { detail } : {}
|
|
4005
|
+
};
|
|
4006
|
+
}
|
|
3953
4007
|
function makeToolCallState(input, options) {
|
|
3954
4008
|
const toolCallId = input.toolCallId.trim();
|
|
3955
4009
|
if (!toolCallId) return;
|
|
@@ -3967,13 +4021,28 @@ function makeToolCallState(input, options) {
|
|
|
3967
4021
|
if (input.locations !== void 0) data.locations = input.locations;
|
|
3968
4022
|
const fallbackDetail = command ?? normalizedTitle ?? textContent;
|
|
3969
4023
|
const presentation = title !== void 0 || kind !== void 0 || command !== void 0 || normalizedTitle !== void 0 || textContent !== void 0 ? deriveToolActivityPresentation({
|
|
3970
|
-
itemType:
|
|
4024
|
+
itemType: canonicalItemTypeFromAcpTool({
|
|
4025
|
+
kind,
|
|
4026
|
+
title,
|
|
4027
|
+
command,
|
|
4028
|
+
detail: fallbackDetail,
|
|
4029
|
+
data
|
|
4030
|
+
}),
|
|
3971
4031
|
title,
|
|
3972
4032
|
detail: fallbackDetail,
|
|
3973
4033
|
data,
|
|
3974
4034
|
fallbackSummary: title ?? "Tool"
|
|
3975
4035
|
}) : void 0;
|
|
3976
4036
|
const status = normalizeToolCallStatus(input.status, options?.fallbackStatus);
|
|
4037
|
+
const subagent = makeAcpSubagentSummaryState({
|
|
4038
|
+
toolCallId,
|
|
4039
|
+
...kind ? { kind } : {},
|
|
4040
|
+
...presentation?.summary ? { title: presentation.summary } : {},
|
|
4041
|
+
...status ? { status } : {},
|
|
4042
|
+
...command ? { command } : {},
|
|
4043
|
+
...presentation?.detail ? { detail: presentation.detail } : {},
|
|
4044
|
+
data
|
|
4045
|
+
});
|
|
3977
4046
|
return {
|
|
3978
4047
|
toolCallId,
|
|
3979
4048
|
...kind ? { kind } : {},
|
|
@@ -3981,6 +4050,7 @@ function makeToolCallState(input, options) {
|
|
|
3981
4050
|
...status ? { status } : {},
|
|
3982
4051
|
...command ? { command } : {},
|
|
3983
4052
|
...presentation?.detail ? { detail: presentation.detail } : {},
|
|
4053
|
+
...subagent ? { subagent } : {},
|
|
3984
4054
|
data
|
|
3985
4055
|
};
|
|
3986
4056
|
}
|
|
@@ -4002,6 +4072,19 @@ function mergeToolCallState(previous, next) {
|
|
|
4002
4072
|
const status = next.status ?? previous?.status;
|
|
4003
4073
|
const command = next.command ?? previous?.command;
|
|
4004
4074
|
const detail = next.detail ?? previous?.detail;
|
|
4075
|
+
const data = {
|
|
4076
|
+
...previous?.data,
|
|
4077
|
+
...next.data
|
|
4078
|
+
};
|
|
4079
|
+
const subagent = makeAcpSubagentSummaryState({
|
|
4080
|
+
toolCallId: next.toolCallId,
|
|
4081
|
+
...kind ? { kind } : {},
|
|
4082
|
+
...title ? { title } : {},
|
|
4083
|
+
...status ? { status } : {},
|
|
4084
|
+
...command ? { command } : {},
|
|
4085
|
+
...detail ? { detail } : {},
|
|
4086
|
+
data
|
|
4087
|
+
});
|
|
4005
4088
|
return {
|
|
4006
4089
|
toolCallId: next.toolCallId,
|
|
4007
4090
|
...kind ? { kind } : {},
|
|
@@ -4009,10 +4092,8 @@ function mergeToolCallState(previous, next) {
|
|
|
4009
4092
|
...status ? { status } : {},
|
|
4010
4093
|
...command ? { command } : {},
|
|
4011
4094
|
...detail ? { detail } : {},
|
|
4012
|
-
|
|
4013
|
-
|
|
4014
|
-
...next.data
|
|
4015
|
-
}
|
|
4095
|
+
...subagent ? { subagent } : {},
|
|
4096
|
+
data
|
|
4016
4097
|
};
|
|
4017
4098
|
}
|
|
4018
4099
|
function parsePermissionRequest(params) {
|
|
@@ -5105,7 +5186,7 @@ const enrichCursorSnapshot = (input) => {
|
|
|
5105
5186
|
const { settings, snapshot, publishSnapshot } = input;
|
|
5106
5187
|
const stampIdentity = input.stampIdentity ?? ((value) => value);
|
|
5107
5188
|
if (!settings.enabled || snapshot.auth.status === "unauthenticated") return effect.Effect.void;
|
|
5108
|
-
return require_bin.enrichProviderSnapshotWithVersionAdvisory(snapshot, input.maintenanceCapabilities).pipe(effect.Effect.provideService(effect_unstable_http.HttpClient.HttpClient, input.httpClient), effect.Effect.flatMap((enrichedSnapshot) => publishSnapshot(stampIdentity(enrichedSnapshot)).pipe(effect.Effect.asVoid)), effect.Effect.catchCause((cause) => effect.Effect.logWarning("Cursor version advisory enrichment failed", { cause: effect.Cause.pretty(cause) }).pipe(effect.Effect.asVoid)));
|
|
5189
|
+
return require_bin.enrichProviderSnapshotWithVersionAdvisory(snapshot, input.maintenanceCapabilities).pipe(effect.Effect.provideService(effect_unstable_http.HttpClient.HttpClient, input.httpClient), effect.Effect.provideService(require_bin.ServerSettingsService, input.serverSettings), effect.Effect.flatMap((enrichedSnapshot) => publishSnapshot(stampIdentity(enrichedSnapshot)).pipe(effect.Effect.asVoid)), effect.Effect.catchCause((cause) => effect.Effect.logWarning("Cursor version advisory enrichment failed", { cause: effect.Cause.pretty(cause) }).pipe(effect.Effect.asVoid)));
|
|
5109
5190
|
};
|
|
5110
5191
|
//#endregion
|
|
5111
5192
|
//#region src/provider/acp/CursorAcpSupport.ts
|
|
@@ -5347,8 +5428,9 @@ function canonicalRequestTypeFromAcpKind(kind) {
|
|
|
5347
5428
|
default: return "unknown";
|
|
5348
5429
|
}
|
|
5349
5430
|
}
|
|
5350
|
-
function
|
|
5351
|
-
|
|
5431
|
+
function canonicalItemTypeFromAcpToolCall(toolCall) {
|
|
5432
|
+
if (isAcpSubagentToolCall(toolCall)) return "collab_agent_tool_call";
|
|
5433
|
+
switch (toolCall.kind) {
|
|
5352
5434
|
case "execute": return "command_execution";
|
|
5353
5435
|
case "edit":
|
|
5354
5436
|
case "delete":
|
|
@@ -5426,7 +5508,7 @@ function makeAcpToolCallEvent(input) {
|
|
|
5426
5508
|
turnId: input.turnId,
|
|
5427
5509
|
itemId: require_collectUint8StreamText.RuntimeItemId.make(input.toolCall.toolCallId),
|
|
5428
5510
|
payload: {
|
|
5429
|
-
itemType:
|
|
5511
|
+
itemType: canonicalItemTypeFromAcpToolCall(input.toolCall),
|
|
5430
5512
|
...runtimeStatus ? { status: runtimeStatus } : {},
|
|
5431
5513
|
...input.toolCall.title ? { title: input.toolCall.title } : {},
|
|
5432
5514
|
...input.toolCall.detail ? { detail: input.toolCall.detail } : {},
|
|
@@ -5636,6 +5718,66 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
5636
5718
|
createdAt: nowIso
|
|
5637
5719
|
});
|
|
5638
5720
|
const offerRuntimeEvent = (event) => effect.PubSub.publish(runtimeEventPubSub, event).pipe(effect.Effect.asVoid);
|
|
5721
|
+
const offerAcpSubagentRuntimeEvents = effect.Effect.fn("offerAcpSubagentRuntimeEvents")(function* (ctx, subagentState, rawPayload) {
|
|
5722
|
+
if (!subagentState) return;
|
|
5723
|
+
const subagentId = String(subagentState.subagent.subagentId);
|
|
5724
|
+
if (!ctx.startedSubagentIds.has(subagentId)) {
|
|
5725
|
+
ctx.startedSubagentIds.add(subagentId);
|
|
5726
|
+
yield* offerRuntimeEvent({
|
|
5727
|
+
type: "subagent.started",
|
|
5728
|
+
...yield* makeEventStamp(),
|
|
5729
|
+
provider: PROVIDER,
|
|
5730
|
+
threadId: ctx.threadId,
|
|
5731
|
+
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
5732
|
+
payload: { subagent: subagentState.subagent },
|
|
5733
|
+
raw: {
|
|
5734
|
+
source: "acp.jsonrpc",
|
|
5735
|
+
method: "session/update",
|
|
5736
|
+
payload: rawPayload
|
|
5737
|
+
}
|
|
5738
|
+
});
|
|
5739
|
+
}
|
|
5740
|
+
if (subagentState.status === "completed" || subagentState.status === "failed" || subagentState.status === "stopped") {
|
|
5741
|
+
if (ctx.completedSubagentIds.has(subagentId)) return;
|
|
5742
|
+
ctx.completedSubagentIds.add(subagentId);
|
|
5743
|
+
yield* offerRuntimeEvent({
|
|
5744
|
+
type: "subagent.completed",
|
|
5745
|
+
...yield* makeEventStamp(),
|
|
5746
|
+
provider: PROVIDER,
|
|
5747
|
+
threadId: ctx.threadId,
|
|
5748
|
+
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
5749
|
+
payload: {
|
|
5750
|
+
subagent: subagentState.subagent,
|
|
5751
|
+
status: subagentState.status,
|
|
5752
|
+
...subagentState.summary ? { summary: subagentState.summary } : {}
|
|
5753
|
+
},
|
|
5754
|
+
raw: {
|
|
5755
|
+
source: "acp.jsonrpc",
|
|
5756
|
+
method: "session/update",
|
|
5757
|
+
payload: rawPayload
|
|
5758
|
+
}
|
|
5759
|
+
});
|
|
5760
|
+
return;
|
|
5761
|
+
}
|
|
5762
|
+
yield* offerRuntimeEvent({
|
|
5763
|
+
type: "subagent.updated",
|
|
5764
|
+
...yield* makeEventStamp(),
|
|
5765
|
+
provider: PROVIDER,
|
|
5766
|
+
threadId: ctx.threadId,
|
|
5767
|
+
...ctx.activeTurnId ? { turnId: ctx.activeTurnId } : {},
|
|
5768
|
+
payload: {
|
|
5769
|
+
subagent: subagentState.subagent,
|
|
5770
|
+
...subagentState.status ? { status: subagentState.status } : {},
|
|
5771
|
+
...subagentState.summary ? { summary: subagentState.summary } : {},
|
|
5772
|
+
...subagentState.detail ? { detail: subagentState.detail } : {}
|
|
5773
|
+
},
|
|
5774
|
+
raw: {
|
|
5775
|
+
source: "acp.jsonrpc",
|
|
5776
|
+
method: "session/update",
|
|
5777
|
+
payload: rawPayload
|
|
5778
|
+
}
|
|
5779
|
+
});
|
|
5780
|
+
});
|
|
5639
5781
|
const getThreadSemaphore = (threadId) => effect.SynchronizedRef.modifyEffect(threadLocksRef, (current) => {
|
|
5640
5782
|
const existing = effect.Option.fromNullishOr(current.get(threadId));
|
|
5641
5783
|
return effect.Option.match(existing, {
|
|
@@ -5884,6 +6026,8 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
5884
6026
|
pendingApprovals,
|
|
5885
6027
|
pendingUserInputs,
|
|
5886
6028
|
turns: [],
|
|
6029
|
+
startedSubagentIds: /* @__PURE__ */ new Set(),
|
|
6030
|
+
completedSubagentIds: /* @__PURE__ */ new Set(),
|
|
5887
6031
|
lastPlanFingerprint: void 0,
|
|
5888
6032
|
activeTurnId: void 0,
|
|
5889
6033
|
stopped: false
|
|
@@ -5925,6 +6069,7 @@ function makeCursorAdapter(cursorSettings, options) {
|
|
|
5925
6069
|
toolCall: event.toolCall,
|
|
5926
6070
|
rawPayload: event.rawPayload
|
|
5927
6071
|
}));
|
|
6072
|
+
yield* offerAcpSubagentRuntimeEvents(ctx, event.toolCall.subagent, event.rawPayload);
|
|
5928
6073
|
return;
|
|
5929
6074
|
case "ContentDelta":
|
|
5930
6075
|
yield* logNative(ctx.threadId, "session/update", event.rawPayload, "acp.jsonrpc");
|
|
@@ -6179,6 +6324,7 @@ const CursorDriver = {
|
|
|
6179
6324
|
const fileSystem = yield* effect.FileSystem.FileSystem;
|
|
6180
6325
|
const path = yield* effect.Path.Path;
|
|
6181
6326
|
const httpClient = yield* effect_unstable_http.HttpClient.HttpClient;
|
|
6327
|
+
const serverSettings = yield* require_bin.ServerSettingsService;
|
|
6182
6328
|
const eventLoggers = yield* require_bin.ProviderEventLoggers;
|
|
6183
6329
|
const processEnv = require_bin.mergeProviderInstanceEnvironment(environment);
|
|
6184
6330
|
const continuationIdentity = require_ProviderDriver.defaultProviderContinuationIdentity({
|
|
@@ -6226,7 +6372,8 @@ const CursorDriver = {
|
|
|
6226
6372
|
maintenanceCapabilities,
|
|
6227
6373
|
publishSnapshot,
|
|
6228
6374
|
stampIdentity,
|
|
6229
|
-
httpClient
|
|
6375
|
+
httpClient,
|
|
6376
|
+
serverSettings
|
|
6230
6377
|
}),
|
|
6231
6378
|
refreshInterval: null
|
|
6232
6379
|
}).pipe(effect.Effect.mapError((cause) => new require_bin.ProviderDriverError({
|