@sideboard-ai/core 0.1.30 → 0.1.32

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/index.d.cts CHANGED
@@ -97,6 +97,8 @@ interface CreateChatTabInput {
97
97
  /** Existing thread in the worktree to clone workspace metadata from. */
98
98
  fromThreadId: string;
99
99
  agent?: AgentKind;
100
+ model?: string | null;
101
+ autonomy?: Autonomy;
100
102
  title?: string;
101
103
  attachments?: ThreadAttachment[];
102
104
  }
@@ -1080,6 +1082,20 @@ declare const brightsyAdapter: AgentAdapter;
1080
1082
 
1081
1083
  declare const claudeAdapter: AgentAdapter;
1082
1084
 
1085
+ /** Shared shape for composer agent model pickers. */
1086
+ type AgentModelInfo = {
1087
+ id: string;
1088
+ displayName: string;
1089
+ description?: string;
1090
+ };
1091
+ /** @deprecated Prefer {@link AgentModelInfo} — same shape. */
1092
+ type CursorModelInfo = AgentModelInfo;
1093
+
1094
+ /**
1095
+ * Models from `codex debug models` (JSON catalog). Prefers visibility=list.
1096
+ * Falls back to a small static list when Codex isn't installed / command fails.
1097
+ */
1098
+ declare function listCodexModels(): Promise<AgentModelInfo[]>;
1083
1099
  declare const codexAdapter: AgentAdapter;
1084
1100
 
1085
1101
  /** JSON payload written to the Cursor runner on stdin. */
@@ -1127,8 +1143,23 @@ declare function cursorSdkMessageToEvents(msg: CursorSdkStreamMessage): AgentEve
1127
1143
  /** Parse one NDJSON line emitted by the Cursor runner (already Sideboard AgentEvents). */
1128
1144
  declare function parseCursorRunnerLine(line: string): AgentEvent | AgentEvent[] | null;
1129
1145
 
1146
+ /** True when the thread uses Cursor Auto (`default` / null / `auto`). */
1147
+ declare function isCursorAutoModel(model: string | null | undefined): boolean;
1148
+ /** Resolve SDK model id for a turn (null → Auto). */
1149
+ declare function resolveCursorModelId(model: string | null | undefined): string;
1150
+ /**
1151
+ * List models available to the configured CURSOR_API_KEY.
1152
+ * Cached briefly; falls back to a small static list when unauthenticated / offline.
1153
+ */
1154
+ declare function listCursorModels(): Promise<AgentModelInfo[]>;
1155
+
1130
1156
  declare const cursorAdapter: AgentAdapter;
1131
1157
 
1158
+ /**
1159
+ * Models from `opencode models` (`provider/model` lines).
1160
+ * Falls back to a small static list when OpenCode isn't installed.
1161
+ */
1162
+ declare function listOpencodeModels(): Promise<AgentModelInfo[]>;
1132
1163
  declare const opencodeAdapter: AgentAdapter;
1133
1164
 
1134
1165
  /**
@@ -1138,6 +1169,42 @@ declare const opencodeAdapter: AgentAdapter;
1138
1169
  */
1139
1170
  declare function ensureAgentPath(env?: NodeJS.ProcessEnv): string;
1140
1171
 
1172
+ type AgentSetupKind = 'cli' | 'api-key' | 'bundled-sdk';
1173
+ interface AgentSetupInfo {
1174
+ agent: AgentKind;
1175
+ kind: AgentSetupKind;
1176
+ /** Short explanation for Settings. */
1177
+ summary: string;
1178
+ docsUrl: string;
1179
+ /** Shell one-liner to install the CLI (null when not applicable). */
1180
+ installCommand: string | null;
1181
+ /** Shell one-liner for interactive login/auth (null when API-key only). */
1182
+ loginCommand: string | null;
1183
+ /** npm package for in-app `npm i -g` when install is npm-based. */
1184
+ npmPackage?: string;
1185
+ }
1186
+ interface AgentSetupActionResult {
1187
+ ok: boolean;
1188
+ /** True when a system Terminal window was opened for an interactive command. */
1189
+ openedTerminal?: boolean;
1190
+ command?: string;
1191
+ message: string;
1192
+ stdout?: string;
1193
+ stderr?: string;
1194
+ exitCode?: number | null;
1195
+ }
1196
+ declare function getAgentSetupInfo(agent: AgentKind): AgentSetupInfo;
1197
+ declare function listAgentSetupInfo(): AgentSetupInfo[];
1198
+ /**
1199
+ * Open an interactive shell command in the system terminal (macOS Terminal.app,
1200
+ * Linux gnome-terminal/x-terminal-emulator, Windows cmd).
1201
+ */
1202
+ declare function openInSystemTerminal(command: string): Promise<void>;
1203
+ /** Install a CLI agent: npm packages run in-process; curl installers open Terminal. */
1204
+ declare function installAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
1205
+ /** Open the agent’s login/auth command in the system terminal. */
1206
+ declare function loginAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
1207
+
1141
1208
  declare function getAdapter(kind: AgentKind): AgentAdapter;
1142
1209
  declare function allAdapters(): AgentAdapter[];
1143
1210
 
@@ -2006,6 +2073,12 @@ interface CloudConnectStatus {
2006
2073
  /** Shared typed surface for Electron preload ↔ renderer (and docs). */
2007
2074
  interface IpcApi {
2008
2075
  detectAgents(): Promise<AgentStatus[]>;
2076
+ /** Install recipe + docs for Settings → Agents. */
2077
+ getAgentSetupInfo(agent: AgentKind): Promise<AgentSetupInfo>;
2078
+ /** Install a CLI agent (npm in-process or Terminal for curl installers). */
2079
+ installAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
2080
+ /** Open the agent’s login/auth command in the system terminal. */
2081
+ loginAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
2009
2082
  getAppSettings(): Promise<AppSettings>;
2010
2083
  saveAppSettings(settings: AppSettings): Promise<AppSettings>;
2011
2084
  updateAppEnvironment(patch: Record<string, string | null | undefined>): Promise<AppSettings>;
@@ -2019,6 +2092,12 @@ interface IpcApi {
2019
2092
  /** Ensure `~/.claude/settings.json` exists and open it in the OS default app. */
2020
2093
  openClaudeUserSettings(): Promise<void>;
2021
2094
  listBrightsyChatTargets(): Promise<BrightsyChatTargets>;
2095
+ /** Models from `Cursor.models.list` for the composer picker. */
2096
+ listCursorModels(): Promise<CursorModelInfo[]>;
2097
+ /** Models from `codex debug models` for the composer picker. */
2098
+ listCodexModels(): Promise<AgentModelInfo[]>;
2099
+ /** Models from `opencode models` for the composer picker. */
2100
+ listOpencodeModels(): Promise<AgentModelInfo[]>;
2022
2101
  /** Brightsy login + connected teams (shared by CLI, Brightsy agent, and Claude MCP). */
2023
2102
  getBrightsySession(): Promise<BrightsySession>;
2024
2103
  /**
@@ -2503,4 +2582,4 @@ declare function writeInjectedMcpConfig(opts: {
2503
2582
  includeBrightsy?: boolean;
2504
2583
  }): Promise<string | null>;
2505
2584
 
2506
- export { type ActiveRun, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentInstructionFile, type AgentKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLOUD_COORDINATOR_BUSY_REPLY, CLOUD_COORDINATOR_STOPPED_REPLY, CLOUD_COORDINATOR_TIMEOUT_REPLY, CLOUD_ORCHESTRATOR_GOAL, CONTEXT_COMPACT_CHARS, CONTEXT_KEEP_RECENT_CHARS, CONTEXT_KEEP_RECENT_MESSAGES, CONTEXT_MIN_MESSAGES, COORDINATOR_TOOL_PLAYBOOK, type ClaudeHarnessSettings, type CleanupOrphansResult, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateThreadInput, type CreateWorktreeResult, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorWorktreesConfig, type DevServerHandle, type DiffCommentInput, type DiffCommentLine, type DiffCommit, type DiffFile, type DiffResult, type DiffScope, type DiffScopeStat, type ExpandResult, FAMOUS_SOCCER_TEAMS, type ForkChatTabInput, type ForkThreadWorktreeInput, type FormatGhLandErrorOptions, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GitHubStatus, type GitWorktreeStatus, HARNESS_ENV_KEYS, type HarnessId, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, type LandPreview, type LandResult, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, Orchestrator, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PLAN_MODE_INSTRUCTION, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type RepoSettings, type RepoSetupInfo, type RunMode, type RunScript, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, type ScriptHandle, type SkillInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, type TeamName, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type TranscriptToolDetail, type TurnCommand, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, addWorkspace, adoptThread, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendMessage, applyAgentEvent, applyAppEnvironment, applyCompaction, applyThreadIntoMain, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, captureLoginEnv, captureTurnBaseline, childEnvWithAppSettings, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, collectTakenTeamSlugs, commitAll, conductorDbPath, confirmLand, connectBrightsyTeam, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, createChatTab, createEmptyThread, createGlobalChat, createOrUpdatePr, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, deleteBranchOnPurgeEnabled, deleteThreadRecord, detectAgents, detectLocalMergeConflicts, disconnectBrightsyTeam, discoverSkills, encodeBrightsyTarget, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractiveSummary, fetchPrHead, finalizeParts, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findThreadByRef, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatGhLandError, formatIpcInvokeError, formatMessagesAsTranscript, formatRateLimitResetHint, formatRenameBranchDirective, formatTranscriptMarkdown, formatWorkspaceInventory, formatWorktreeDirective, getAdapter, getBrightsySession, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getIssueSource, getLinearApiKey, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrMeta, getRepoSetupInfo, getRunMode, getRunScript, gh, ghHeadRef, ghRepoSelectArgs, git, globalAgentCwd, harnessEnvKey, hasConductorHook, hasCursorWorktreeSetup, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, importConductorWorkspace, importConductorWorkspaceAsync, initializeGitRepository, inspectGitWorktree, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isLinearConnected, isOrchestratorThread, isPlaceholderBranch, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listConductorWorkspaces, listConnectedBrightsyTeams, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listPrs, listRunScripts, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergePr, mergeUsage, normalizeParseResult, normalizeThread, normalizeTurnInput, normalizeWorktreePath, opencodeAdapter, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseForceStopMessage, parseGithubSlugFromRemoteUrl, parseMcpList, partsToAssistantText, permissionMode, previewLand, pushBranch, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, refreshGitHubAuth, removeWorkspace, removeWorktree, repoSlug, requireAgent, resolveClaudeExecutable, resolveConductorCursorAgentId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGithubRepoSlug, resolvePrSelector, resolveRepoRoot, resolveWorktreeStartPoint, run, runArchiveScript, runCloudConnect, runCursorWorktreeSetup, runSetupScript, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, setStatus, settingsSourceLabel, shouldCompactContext, shouldRunWorktreeCleanup, sideboardHomeDir, sideboardReposDir, sideboardWorkspacesDir, slugify, spawnAgentTurn, splitForCompaction, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startMcpServer, startOrchestration, stripBrightsyNdjsonNoise, suggestSlug, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, threadDisplayLabel, threadFilePath, threadLockPath, threadsDir, threadsSharingWorktree, toolDescription, toolDetail, toolFilePath, totalTokens, updateAdvancedSettings, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateIntegrationsSettings, updateThread, validateLinearApiKey, withAgentInstructions, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, writeInjectedMcpConfig, writeThread, writeWorktreeFile };
2585
+ export { type ActiveRun, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentInstructionFile, type AgentKind, type AgentModelInfo, type AgentSetupActionResult, type AgentSetupInfo, type AgentSetupKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLOUD_COORDINATOR_BUSY_REPLY, CLOUD_COORDINATOR_STOPPED_REPLY, CLOUD_COORDINATOR_TIMEOUT_REPLY, CLOUD_ORCHESTRATOR_GOAL, CONTEXT_COMPACT_CHARS, CONTEXT_KEEP_RECENT_CHARS, CONTEXT_KEEP_RECENT_MESSAGES, CONTEXT_MIN_MESSAGES, COORDINATOR_TOOL_PLAYBOOK, type ClaudeHarnessSettings, type CleanupOrphansResult, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateThreadInput, type CreateWorktreeResult, type CursorModelInfo, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorWorktreesConfig, type DevServerHandle, type DiffCommentInput, type DiffCommentLine, type DiffCommit, type DiffFile, type DiffResult, type DiffScope, type DiffScopeStat, type ExpandResult, FAMOUS_SOCCER_TEAMS, type ForkChatTabInput, type ForkThreadWorktreeInput, type FormatGhLandErrorOptions, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GitHubStatus, type GitWorktreeStatus, HARNESS_ENV_KEYS, type HarnessId, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, type LandPreview, type LandResult, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, Orchestrator, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PLAN_MODE_INSTRUCTION, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type RepoSettings, type RepoSetupInfo, type RunMode, type RunScript, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, type ScriptHandle, type SkillInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, type TeamName, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type TranscriptToolDetail, type TurnCommand, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, addWorkspace, adoptThread, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendMessage, applyAgentEvent, applyAppEnvironment, applyCompaction, applyThreadIntoMain, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, captureLoginEnv, captureTurnBaseline, childEnvWithAppSettings, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, collectTakenTeamSlugs, commitAll, conductorDbPath, confirmLand, connectBrightsyTeam, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, createChatTab, createEmptyThread, createGlobalChat, createOrUpdatePr, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, deleteBranchOnPurgeEnabled, deleteThreadRecord, detectAgents, detectLocalMergeConflicts, disconnectBrightsyTeam, discoverSkills, encodeBrightsyTarget, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractiveSummary, fetchPrHead, finalizeParts, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findThreadByRef, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatGhLandError, formatIpcInvokeError, formatMessagesAsTranscript, formatRateLimitResetHint, formatRenameBranchDirective, formatTranscriptMarkdown, formatWorkspaceInventory, formatWorktreeDirective, getAdapter, getAgentSetupInfo, getBrightsySession, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getIssueSource, getLinearApiKey, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrMeta, getRepoSetupInfo, getRunMode, getRunScript, gh, ghHeadRef, ghRepoSelectArgs, git, globalAgentCwd, harnessEnvKey, hasConductorHook, hasCursorWorktreeSetup, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, importConductorWorkspace, importConductorWorkspaceAsync, initializeGitRepository, inspectGitWorktree, installAgent, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isCursorAutoModel, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isLinearConnected, isOrchestratorThread, isPlaceholderBranch, listAgentSetupInfo, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listCodexModels, listConductorWorkspaces, listConnectedBrightsyTeams, listCursorModels, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listOpencodeModels, listPrs, listRunScripts, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, loginAgent, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergePr, mergeUsage, normalizeParseResult, normalizeThread, normalizeTurnInput, normalizeWorktreePath, openInSystemTerminal, opencodeAdapter, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseForceStopMessage, parseGithubSlugFromRemoteUrl, parseMcpList, partsToAssistantText, permissionMode, previewLand, pushBranch, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, refreshGitHubAuth, removeWorkspace, removeWorktree, repoSlug, requireAgent, resolveClaudeExecutable, resolveConductorCursorAgentId, resolveCursorModelId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGithubRepoSlug, resolvePrSelector, resolveRepoRoot, resolveWorktreeStartPoint, run, runArchiveScript, runCloudConnect, runCursorWorktreeSetup, runSetupScript, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, setStatus, settingsSourceLabel, shouldCompactContext, shouldRunWorktreeCleanup, sideboardHomeDir, sideboardReposDir, sideboardWorkspacesDir, slugify, spawnAgentTurn, splitForCompaction, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startMcpServer, startOrchestration, stripBrightsyNdjsonNoise, suggestSlug, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, threadDisplayLabel, threadFilePath, threadLockPath, threadsDir, threadsSharingWorktree, toolDescription, toolDetail, toolFilePath, totalTokens, updateAdvancedSettings, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateIntegrationsSettings, updateThread, validateLinearApiKey, withAgentInstructions, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, writeInjectedMcpConfig, writeThread, writeWorktreeFile };
package/dist/index.d.ts CHANGED
@@ -97,6 +97,8 @@ interface CreateChatTabInput {
97
97
  /** Existing thread in the worktree to clone workspace metadata from. */
98
98
  fromThreadId: string;
99
99
  agent?: AgentKind;
100
+ model?: string | null;
101
+ autonomy?: Autonomy;
100
102
  title?: string;
101
103
  attachments?: ThreadAttachment[];
102
104
  }
@@ -1080,6 +1082,20 @@ declare const brightsyAdapter: AgentAdapter;
1080
1082
 
1081
1083
  declare const claudeAdapter: AgentAdapter;
1082
1084
 
1085
+ /** Shared shape for composer agent model pickers. */
1086
+ type AgentModelInfo = {
1087
+ id: string;
1088
+ displayName: string;
1089
+ description?: string;
1090
+ };
1091
+ /** @deprecated Prefer {@link AgentModelInfo} — same shape. */
1092
+ type CursorModelInfo = AgentModelInfo;
1093
+
1094
+ /**
1095
+ * Models from `codex debug models` (JSON catalog). Prefers visibility=list.
1096
+ * Falls back to a small static list when Codex isn't installed / command fails.
1097
+ */
1098
+ declare function listCodexModels(): Promise<AgentModelInfo[]>;
1083
1099
  declare const codexAdapter: AgentAdapter;
1084
1100
 
1085
1101
  /** JSON payload written to the Cursor runner on stdin. */
@@ -1127,8 +1143,23 @@ declare function cursorSdkMessageToEvents(msg: CursorSdkStreamMessage): AgentEve
1127
1143
  /** Parse one NDJSON line emitted by the Cursor runner (already Sideboard AgentEvents). */
1128
1144
  declare function parseCursorRunnerLine(line: string): AgentEvent | AgentEvent[] | null;
1129
1145
 
1146
+ /** True when the thread uses Cursor Auto (`default` / null / `auto`). */
1147
+ declare function isCursorAutoModel(model: string | null | undefined): boolean;
1148
+ /** Resolve SDK model id for a turn (null → Auto). */
1149
+ declare function resolveCursorModelId(model: string | null | undefined): string;
1150
+ /**
1151
+ * List models available to the configured CURSOR_API_KEY.
1152
+ * Cached briefly; falls back to a small static list when unauthenticated / offline.
1153
+ */
1154
+ declare function listCursorModels(): Promise<AgentModelInfo[]>;
1155
+
1130
1156
  declare const cursorAdapter: AgentAdapter;
1131
1157
 
1158
+ /**
1159
+ * Models from `opencode models` (`provider/model` lines).
1160
+ * Falls back to a small static list when OpenCode isn't installed.
1161
+ */
1162
+ declare function listOpencodeModels(): Promise<AgentModelInfo[]>;
1132
1163
  declare const opencodeAdapter: AgentAdapter;
1133
1164
 
1134
1165
  /**
@@ -1138,6 +1169,42 @@ declare const opencodeAdapter: AgentAdapter;
1138
1169
  */
1139
1170
  declare function ensureAgentPath(env?: NodeJS.ProcessEnv): string;
1140
1171
 
1172
+ type AgentSetupKind = 'cli' | 'api-key' | 'bundled-sdk';
1173
+ interface AgentSetupInfo {
1174
+ agent: AgentKind;
1175
+ kind: AgentSetupKind;
1176
+ /** Short explanation for Settings. */
1177
+ summary: string;
1178
+ docsUrl: string;
1179
+ /** Shell one-liner to install the CLI (null when not applicable). */
1180
+ installCommand: string | null;
1181
+ /** Shell one-liner for interactive login/auth (null when API-key only). */
1182
+ loginCommand: string | null;
1183
+ /** npm package for in-app `npm i -g` when install is npm-based. */
1184
+ npmPackage?: string;
1185
+ }
1186
+ interface AgentSetupActionResult {
1187
+ ok: boolean;
1188
+ /** True when a system Terminal window was opened for an interactive command. */
1189
+ openedTerminal?: boolean;
1190
+ command?: string;
1191
+ message: string;
1192
+ stdout?: string;
1193
+ stderr?: string;
1194
+ exitCode?: number | null;
1195
+ }
1196
+ declare function getAgentSetupInfo(agent: AgentKind): AgentSetupInfo;
1197
+ declare function listAgentSetupInfo(): AgentSetupInfo[];
1198
+ /**
1199
+ * Open an interactive shell command in the system terminal (macOS Terminal.app,
1200
+ * Linux gnome-terminal/x-terminal-emulator, Windows cmd).
1201
+ */
1202
+ declare function openInSystemTerminal(command: string): Promise<void>;
1203
+ /** Install a CLI agent: npm packages run in-process; curl installers open Terminal. */
1204
+ declare function installAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
1205
+ /** Open the agent’s login/auth command in the system terminal. */
1206
+ declare function loginAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
1207
+
1141
1208
  declare function getAdapter(kind: AgentKind): AgentAdapter;
1142
1209
  declare function allAdapters(): AgentAdapter[];
1143
1210
 
@@ -2006,6 +2073,12 @@ interface CloudConnectStatus {
2006
2073
  /** Shared typed surface for Electron preload ↔ renderer (and docs). */
2007
2074
  interface IpcApi {
2008
2075
  detectAgents(): Promise<AgentStatus[]>;
2076
+ /** Install recipe + docs for Settings → Agents. */
2077
+ getAgentSetupInfo(agent: AgentKind): Promise<AgentSetupInfo>;
2078
+ /** Install a CLI agent (npm in-process or Terminal for curl installers). */
2079
+ installAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
2080
+ /** Open the agent’s login/auth command in the system terminal. */
2081
+ loginAgent(agent: AgentKind): Promise<AgentSetupActionResult>;
2009
2082
  getAppSettings(): Promise<AppSettings>;
2010
2083
  saveAppSettings(settings: AppSettings): Promise<AppSettings>;
2011
2084
  updateAppEnvironment(patch: Record<string, string | null | undefined>): Promise<AppSettings>;
@@ -2019,6 +2092,12 @@ interface IpcApi {
2019
2092
  /** Ensure `~/.claude/settings.json` exists and open it in the OS default app. */
2020
2093
  openClaudeUserSettings(): Promise<void>;
2021
2094
  listBrightsyChatTargets(): Promise<BrightsyChatTargets>;
2095
+ /** Models from `Cursor.models.list` for the composer picker. */
2096
+ listCursorModels(): Promise<CursorModelInfo[]>;
2097
+ /** Models from `codex debug models` for the composer picker. */
2098
+ listCodexModels(): Promise<AgentModelInfo[]>;
2099
+ /** Models from `opencode models` for the composer picker. */
2100
+ listOpencodeModels(): Promise<AgentModelInfo[]>;
2022
2101
  /** Brightsy login + connected teams (shared by CLI, Brightsy agent, and Claude MCP). */
2023
2102
  getBrightsySession(): Promise<BrightsySession>;
2024
2103
  /**
@@ -2503,4 +2582,4 @@ declare function writeInjectedMcpConfig(opts: {
2503
2582
  includeBrightsy?: boolean;
2504
2583
  }): Promise<string | null>;
2505
2584
 
2506
- export { type ActiveRun, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentInstructionFile, type AgentKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLOUD_COORDINATOR_BUSY_REPLY, CLOUD_COORDINATOR_STOPPED_REPLY, CLOUD_COORDINATOR_TIMEOUT_REPLY, CLOUD_ORCHESTRATOR_GOAL, CONTEXT_COMPACT_CHARS, CONTEXT_KEEP_RECENT_CHARS, CONTEXT_KEEP_RECENT_MESSAGES, CONTEXT_MIN_MESSAGES, COORDINATOR_TOOL_PLAYBOOK, type ClaudeHarnessSettings, type CleanupOrphansResult, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateThreadInput, type CreateWorktreeResult, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorWorktreesConfig, type DevServerHandle, type DiffCommentInput, type DiffCommentLine, type DiffCommit, type DiffFile, type DiffResult, type DiffScope, type DiffScopeStat, type ExpandResult, FAMOUS_SOCCER_TEAMS, type ForkChatTabInput, type ForkThreadWorktreeInput, type FormatGhLandErrorOptions, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GitHubStatus, type GitWorktreeStatus, HARNESS_ENV_KEYS, type HarnessId, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, type LandPreview, type LandResult, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, Orchestrator, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PLAN_MODE_INSTRUCTION, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type RepoSettings, type RepoSetupInfo, type RunMode, type RunScript, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, type ScriptHandle, type SkillInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, type TeamName, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type TranscriptToolDetail, type TurnCommand, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, addWorkspace, adoptThread, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendMessage, applyAgentEvent, applyAppEnvironment, applyCompaction, applyThreadIntoMain, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, captureLoginEnv, captureTurnBaseline, childEnvWithAppSettings, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, collectTakenTeamSlugs, commitAll, conductorDbPath, confirmLand, connectBrightsyTeam, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, createChatTab, createEmptyThread, createGlobalChat, createOrUpdatePr, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, deleteBranchOnPurgeEnabled, deleteThreadRecord, detectAgents, detectLocalMergeConflicts, disconnectBrightsyTeam, discoverSkills, encodeBrightsyTarget, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractiveSummary, fetchPrHead, finalizeParts, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findThreadByRef, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatGhLandError, formatIpcInvokeError, formatMessagesAsTranscript, formatRateLimitResetHint, formatRenameBranchDirective, formatTranscriptMarkdown, formatWorkspaceInventory, formatWorktreeDirective, getAdapter, getBrightsySession, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getIssueSource, getLinearApiKey, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrMeta, getRepoSetupInfo, getRunMode, getRunScript, gh, ghHeadRef, ghRepoSelectArgs, git, globalAgentCwd, harnessEnvKey, hasConductorHook, hasCursorWorktreeSetup, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, importConductorWorkspace, importConductorWorkspaceAsync, initializeGitRepository, inspectGitWorktree, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isLinearConnected, isOrchestratorThread, isPlaceholderBranch, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listConductorWorkspaces, listConnectedBrightsyTeams, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listPrs, listRunScripts, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergePr, mergeUsage, normalizeParseResult, normalizeThread, normalizeTurnInput, normalizeWorktreePath, opencodeAdapter, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseForceStopMessage, parseGithubSlugFromRemoteUrl, parseMcpList, partsToAssistantText, permissionMode, previewLand, pushBranch, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, refreshGitHubAuth, removeWorkspace, removeWorktree, repoSlug, requireAgent, resolveClaudeExecutable, resolveConductorCursorAgentId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGithubRepoSlug, resolvePrSelector, resolveRepoRoot, resolveWorktreeStartPoint, run, runArchiveScript, runCloudConnect, runCursorWorktreeSetup, runSetupScript, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, setStatus, settingsSourceLabel, shouldCompactContext, shouldRunWorktreeCleanup, sideboardHomeDir, sideboardReposDir, sideboardWorkspacesDir, slugify, spawnAgentTurn, splitForCompaction, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startMcpServer, startOrchestration, stripBrightsyNdjsonNoise, suggestSlug, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, threadDisplayLabel, threadFilePath, threadLockPath, threadsDir, threadsSharingWorktree, toolDescription, toolDetail, toolFilePath, totalTokens, updateAdvancedSettings, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateIntegrationsSettings, updateThread, validateLinearApiKey, withAgentInstructions, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, writeInjectedMcpConfig, writeThread, writeWorktreeFile };
2585
+ export { type ActiveRun, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentInstructionFile, type AgentKind, type AgentModelInfo, type AgentSetupActionResult, type AgentSetupInfo, type AgentSetupKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLOUD_COORDINATOR_BUSY_REPLY, CLOUD_COORDINATOR_STOPPED_REPLY, CLOUD_COORDINATOR_TIMEOUT_REPLY, CLOUD_ORCHESTRATOR_GOAL, CONTEXT_COMPACT_CHARS, CONTEXT_KEEP_RECENT_CHARS, CONTEXT_KEEP_RECENT_MESSAGES, CONTEXT_MIN_MESSAGES, COORDINATOR_TOOL_PLAYBOOK, type ClaudeHarnessSettings, type CleanupOrphansResult, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateThreadInput, type CreateWorktreeResult, type CursorModelInfo, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorWorktreesConfig, type DevServerHandle, type DiffCommentInput, type DiffCommentLine, type DiffCommit, type DiffFile, type DiffResult, type DiffScope, type DiffScopeStat, type ExpandResult, FAMOUS_SOCCER_TEAMS, type ForkChatTabInput, type ForkThreadWorktreeInput, type FormatGhLandErrorOptions, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GitHubStatus, type GitWorktreeStatus, HARNESS_ENV_KEYS, type HarnessId, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, type LandPreview, type LandResult, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, Orchestrator, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PLAN_MODE_INSTRUCTION, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type RepoSettings, type RepoSetupInfo, type RunMode, type RunScript, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, type ScriptHandle, type SkillInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, type TeamName, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type TranscriptToolDetail, type TurnCommand, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, addWorkspace, adoptThread, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendMessage, applyAgentEvent, applyAppEnvironment, applyCompaction, applyThreadIntoMain, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, captureLoginEnv, captureTurnBaseline, childEnvWithAppSettings, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, collectTakenTeamSlugs, commitAll, conductorDbPath, confirmLand, connectBrightsyTeam, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, createChatTab, createEmptyThread, createGlobalChat, createOrUpdatePr, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, deleteBranchOnPurgeEnabled, deleteThreadRecord, detectAgents, detectLocalMergeConflicts, disconnectBrightsyTeam, discoverSkills, encodeBrightsyTarget, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractiveSummary, fetchPrHead, finalizeParts, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findThreadByRef, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatGhLandError, formatIpcInvokeError, formatMessagesAsTranscript, formatRateLimitResetHint, formatRenameBranchDirective, formatTranscriptMarkdown, formatWorkspaceInventory, formatWorktreeDirective, getAdapter, getAgentSetupInfo, getBrightsySession, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getIssueSource, getLinearApiKey, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrMeta, getRepoSetupInfo, getRunMode, getRunScript, gh, ghHeadRef, ghRepoSelectArgs, git, globalAgentCwd, harnessEnvKey, hasConductorHook, hasCursorWorktreeSetup, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, importConductorWorkspace, importConductorWorkspaceAsync, initializeGitRepository, inspectGitWorktree, installAgent, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isCursorAutoModel, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isLinearConnected, isOrchestratorThread, isPlaceholderBranch, listAgentSetupInfo, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listCodexModels, listConductorWorkspaces, listConnectedBrightsyTeams, listCursorModels, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listOpencodeModels, listPrs, listRunScripts, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, loginAgent, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergePr, mergeUsage, normalizeParseResult, normalizeThread, normalizeTurnInput, normalizeWorktreePath, openInSystemTerminal, opencodeAdapter, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseForceStopMessage, parseGithubSlugFromRemoteUrl, parseMcpList, partsToAssistantText, permissionMode, previewLand, pushBranch, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, refreshGitHubAuth, removeWorkspace, removeWorktree, repoSlug, requireAgent, resolveClaudeExecutable, resolveConductorCursorAgentId, resolveCursorModelId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGithubRepoSlug, resolvePrSelector, resolveRepoRoot, resolveWorktreeStartPoint, run, runArchiveScript, runCloudConnect, runCursorWorktreeSetup, runSetupScript, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, setStatus, settingsSourceLabel, shouldCompactContext, shouldRunWorktreeCleanup, sideboardHomeDir, sideboardReposDir, sideboardWorkspacesDir, slugify, spawnAgentTurn, splitForCompaction, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startMcpServer, startOrchestration, stripBrightsyNdjsonNoise, suggestSlug, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, threadDisplayLabel, threadFilePath, threadLockPath, threadsDir, threadsSharingWorktree, toolDescription, toolDetail, toolFilePath, totalTokens, updateAdvancedSettings, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateIntegrationsSettings, updateThread, validateLinearApiKey, withAgentInstructions, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, writeInjectedMcpConfig, writeThread, writeWorktreeFile };
package/dist/index.js CHANGED
@@ -101,7 +101,7 @@ import {
101
101
  withAgentInstructions,
102
102
  worktreeCleanupSettings,
103
103
  writeWorktreeFile
104
- } from "./chunk-RPSHBKLW.js";
104
+ } from "./chunk-OY47OEY2.js";
105
105
  import {
106
106
  addWorkspace,
107
107
  ensureWorkspace,
@@ -156,17 +156,27 @@ import {
156
156
  findInvalidCacheControlTtlOrder,
157
157
  flattenTurnInput,
158
158
  getAdapter,
159
+ getAgentSetupInfo,
160
+ installAgent,
159
161
  isBrightsyConnected,
162
+ isCursorAutoModel,
163
+ listAgentSetupInfo,
160
164
  listBrightsyChatTargets,
165
+ listCodexModels,
166
+ listCursorModels,
167
+ listOpencodeModels,
168
+ loginAgent,
161
169
  mcpAllowTools,
162
170
  mcpAuthWarnings,
163
171
  normalizeTurnInput,
172
+ openInSystemTerminal,
164
173
  opencodeAdapter,
165
174
  parseMcpList,
166
175
  permissionMode,
176
+ resolveCursorModelId,
167
177
  sanitizeMcpServerName,
168
178
  writeInjectedMcpConfig
169
- } from "./chunk-WK6AK7NK.js";
179
+ } from "./chunk-4YLTMPEO.js";
170
180
  import {
171
181
  brightsyConfigPath,
172
182
  brightsyMcpServerName,
@@ -847,6 +857,7 @@ export {
847
857
  formatWorkspaceInventory,
848
858
  formatWorktreeDirective,
849
859
  getAdapter,
860
+ getAgentSetupInfo,
850
861
  getBrightsySession,
851
862
  getDefaultRunScript,
852
863
  getDiff,
@@ -877,9 +888,11 @@ export {
877
888
  importConductorWorkspaceAsync,
878
889
  initializeGitRepository,
879
890
  inspectGitWorktree,
891
+ installAgent,
880
892
  isBrightsyConnected,
881
893
  isBrightsyNdjsonLine,
882
894
  isCloudCoordinatorThread,
895
+ isCursorAutoModel,
883
896
  isDirty,
884
897
  isGhRateLimitError,
885
898
  isGlobalRepoPath,
@@ -888,17 +901,21 @@ export {
888
901
  isLinearConnected,
889
902
  isOrchestratorThread,
890
903
  isPlaceholderBranch,
904
+ listAgentSetupInfo,
891
905
  listBranchCommits,
892
906
  listBranches,
893
907
  listBrightsyAccounts,
894
908
  listBrightsyChatTargets,
909
+ listCodexModels,
895
910
  listConductorWorkspaces,
896
911
  listConnectedBrightsyTeams,
912
+ listCursorModels,
897
913
  listGitHubIssues,
898
914
  listGlobalThreads,
899
915
  listIssues,
900
916
  listLinearIssues,
901
917
  listLinearIssuesDirect,
918
+ listOpencodeModels,
902
919
  listPrs,
903
920
  listRunScripts,
904
921
  listThreads,
@@ -912,6 +929,7 @@ export {
912
929
  loadRepoSettings,
913
930
  loadWorkspaceSettings,
914
931
  locksDir,
932
+ loginAgent,
915
933
  lookupSoccerTeam,
916
934
  maxConcurrentAgents,
917
935
  maybeCompactContext,
@@ -923,6 +941,7 @@ export {
923
941
  normalizeThread,
924
942
  normalizeTurnInput,
925
943
  normalizeWorktreePath,
944
+ openInSystemTerminal,
926
945
  opencodeAdapter,
927
946
  orchestrationTitleNeedsSoccerNickname,
928
947
  orchestratorSessionPoisonedByBuiltins,
@@ -947,6 +966,7 @@ export {
947
966
  requireAgent,
948
967
  resolveClaudeExecutable,
949
968
  resolveConductorCursorAgentId,
969
+ resolveCursorModelId,
950
970
  resolveDefaultBranch,
951
971
  resolveDiffBaseRef,
952
972
  resolveEffectiveIssueSource,