@sideboard-ai/core 0.1.122 → 0.1.125

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.cjs CHANGED
@@ -6185,26 +6185,9 @@ function storePath3() {
6185
6185
  function watchId(teamId, channelId, ts) {
6186
6186
  return `${teamId}:${channelId}:${ts}`;
6187
6187
  }
6188
- function badgeId(teamId, userId) {
6189
- return `${teamId}:${userId}`;
6190
- }
6191
6188
  function slackArchiveUrl(channelId, ts) {
6192
6189
  return `https://slack.com/archives/${channelId}/p${ts.replace(".", "")}`;
6193
6190
  }
6194
- function initialsFromName(name) {
6195
- const parts = name.trim().split(/\s+/).filter(Boolean);
6196
- if (parts.length === 0) return "?";
6197
- if (parts.length === 1) {
6198
- const w = parts[0];
6199
- return (w.slice(0, 2) || "?").toUpperCase();
6200
- }
6201
- return `${parts[0][0] ?? ""}${parts[parts.length - 1][0] ?? ""}`.toUpperCase();
6202
- }
6203
- function hueFromId(id) {
6204
- let h = 0;
6205
- for (const c of id) h = h * 31 + c.charCodeAt(0) >>> 0;
6206
- return h % 360;
6207
- }
6208
6191
  function tsNewer(a, b) {
6209
6192
  return Number(a) > Number(b);
6210
6193
  }
@@ -6360,7 +6343,6 @@ function recordSlackOutboundWatch(input) {
6360
6343
  sourceThreadId: input.sourceThreadId?.trim() || void 0,
6361
6344
  postedAt: (/* @__PURE__ */ new Date()).toISOString(),
6362
6345
  lastSeenTs: ts,
6363
- unread: false,
6364
6346
  permalink: slackArchiveUrl(channelId, ts),
6365
6347
  injectedReplyTs: [],
6366
6348
  replies: []
@@ -6447,49 +6429,9 @@ async function fetchMessages(token, watch, fetchImpl) {
6447
6429
  }
6448
6430
  return out;
6449
6431
  }
6450
- function listSlackReplyBadges() {
6451
- const unread = readStore3().filter((w) => w.unread && w.replyUserId && w.permalink);
6452
- const byUser = /* @__PURE__ */ new Map();
6453
- for (const w of unread) {
6454
- const id = badgeId(w.teamId, w.replyUserId);
6455
- const prev = byUser.get(id);
6456
- if (!prev || tsNewer(w.replyTs || "", prev.replyTs || "")) {
6457
- byUser.set(id, w);
6458
- }
6459
- }
6460
- return [...byUser.entries()].map(([id, w]) => {
6461
- const userName = w.replyUserName || w.toLabel || "Slack";
6462
- return {
6463
- id,
6464
- userId: w.replyUserId,
6465
- userName,
6466
- initials: initialsFromName(userName),
6467
- hue: hueFromId(w.replyUserId),
6468
- permalink: w.permalink || slackArchiveUrl(w.channelId, w.replyTs || w.ts),
6469
- label: w.toLabel,
6470
- preview: w.replyPreview,
6471
- repliedAt: w.replyTs || w.postedAt
6472
- };
6473
- }).sort((a, b) => b.repliedAt.localeCompare(a.repliedAt));
6474
- }
6475
- function dismissSlackReplyBadge(badgeKey) {
6476
- const key = badgeKey.trim();
6477
- const watches = readStore3().map((w) => {
6478
- if (!w.unread || !w.replyUserId) return w;
6479
- if (badgeId(w.teamId, w.replyUserId) !== key) return w;
6480
- return { ...w, unread: false };
6481
- });
6482
- writeStore2(watches);
6483
- return listSlackReplyBadges();
6484
- }
6485
- function permalinkForSlackReplyBadge(badgeKey) {
6486
- return listSlackReplyBadges().find((b) => b.id === badgeKey)?.permalink ?? null;
6487
- }
6488
- async function refreshSlackReplyBadges(opts) {
6432
+ async function pollSlackOutboundWatches(opts) {
6489
6433
  const now = opts?.now ?? Date.now();
6490
- if (!opts?.force && now - lastPollMs < POLL_INTERVAL_MS) {
6491
- return listSlackReplyBadges();
6492
- }
6434
+ if (!opts?.force && now - lastPollMs < POLL_INTERVAL_MS) return;
6493
6435
  lastPollMs = now;
6494
6436
  const existing = readStore3();
6495
6437
  let watches = pruneWatches(existing, now);
@@ -6500,7 +6442,7 @@ async function refreshSlackReplyBadges(opts) {
6500
6442
  if (!ws) continue;
6501
6443
  let token;
6502
6444
  try {
6503
- token = slackTokenFor(ws, "read");
6445
+ token = slackTokenFor(ws, "write");
6504
6446
  } catch {
6505
6447
  continue;
6506
6448
  }
@@ -6510,9 +6452,7 @@ async function refreshSlackReplyBadges(opts) {
6510
6452
  const injected2 = new Set(watch.injectedReplyTs ?? []);
6511
6453
  const collected = [...watch.replies ?? []];
6512
6454
  let lastSeenTs = watch.lastSeenTs;
6513
- let latestUser;
6514
6455
  let latestName;
6515
- let latestText = "";
6516
6456
  let latestPermalink = watch.permalink;
6517
6457
  let newlyInjected = 0;
6518
6458
  for (const msg of replies) {
@@ -6538,9 +6478,7 @@ async function refreshSlackReplyBadges(opts) {
6538
6478
  text: msg.text ?? ""
6539
6479
  };
6540
6480
  if (!collected.some((r) => r.ts === ts)) collected.push(reply);
6541
- latestUser = user;
6542
6481
  latestName = replyUserName;
6543
- latestText = reply.text;
6544
6482
  latestPermalink = permalink;
6545
6483
  if (injected2.has(ts)) {
6546
6484
  lastSeenTs = ts;
@@ -6571,11 +6509,6 @@ async function refreshSlackReplyBadges(opts) {
6571
6509
  watches[i] = {
6572
6510
  ...watch,
6573
6511
  lastSeenTs,
6574
- unread: true,
6575
- replyUserId: latestUser,
6576
- replyUserName: latestName,
6577
- replyTs: lastSeenTs,
6578
- replyPreview: latestText.slice(0, 140),
6579
6512
  permalink: latestPermalink,
6580
6513
  injectedReplyTs: [...injected2],
6581
6514
  replies: collected.slice(-MAX_REPLIES_PER_WATCH)
@@ -6583,7 +6516,6 @@ async function refreshSlackReplyBadges(opts) {
6583
6516
  changed = true;
6584
6517
  }
6585
6518
  if (changed) writeStore2(watches);
6586
- return listSlackReplyBadges();
6587
6519
  }
6588
6520
  var import_node_fs18, import_node_path21, MAX_WATCHES, MAX_REPLIES_PER_WATCH, WATCH_TTL_MS, POLL_INTERVAL_MS, lastPollMs, nameCache, continueOnReply;
6589
6521
  var init_outbound_watch = __esm({
@@ -18038,7 +17970,6 @@ __export(index_exports, {
18038
17970
  disconnectLinearConnection: () => disconnectLinearConnection,
18039
17971
  disconnectSlackWorkspace: () => disconnectSlackWorkspace,
18040
17972
  discoverSkills: () => discoverSkills,
18041
- dismissSlackReplyBadge: () => dismissSlackReplyBadge,
18042
17973
  dropCachedPrefixOnResume: () => dropCachedPrefixOnResume,
18043
17974
  encodeBrightsyTarget: () => encodeBrightsyTarget,
18044
17975
  enrichPathWithNpmGlobalBin: () => enrichPathWithNpmGlobalBin,
@@ -18220,7 +18151,6 @@ __export(index_exports, {
18220
18151
  listRunScripts: () => listRunScripts,
18221
18152
  listSchedules: () => listSchedules,
18222
18153
  listSlackOutboundWatches: () => listSlackOutboundWatches,
18223
- listSlackReplyBadges: () => listSlackReplyBadges,
18224
18154
  listSlackWorkspaces: () => listSlackWorkspaces,
18225
18155
  listThreads: () => listThreads,
18226
18156
  listWorkspaces: () => listWorkspaces,
@@ -18276,10 +18206,10 @@ __export(index_exports, {
18276
18206
  partsToAssistantText: () => partsToAssistantText,
18277
18207
  pastedTextStats: () => pastedTextStats,
18278
18208
  pendingSlackExternalReplies: () => pendingSlackExternalReplies,
18279
- permalinkForSlackReplyBadge: () => permalinkForSlackReplyBadge,
18280
18209
  permissionMode: () => permissionMode,
18281
18210
  persistVaultKeyInKeychain: () => persistVaultKeyInKeychain,
18282
18211
  planFileAbs: () => planFileAbs,
18212
+ pollSlackOutboundWatches: () => pollSlackOutboundWatches,
18283
18213
  posixShellSingleQuote: () => posixShellSingleQuote,
18284
18214
  preferredCursorCostCents: () => preferredCursorCostCents,
18285
18215
  prepareTerminalCommand: () => prepareTerminalCommand,
@@ -18297,7 +18227,6 @@ __export(index_exports, {
18297
18227
  recordScheduleRun: () => recordScheduleRun,
18298
18228
  recordSlackOutboundWatch: () => recordSlackOutboundWatch,
18299
18229
  refreshGitHubAuth: () => refreshGitHubAuth,
18300
- refreshSlackReplyBadges: () => refreshSlackReplyBadges,
18301
18230
  registerPackagedUserMcpClients: () => registerPackagedUserMcpClients,
18302
18231
  releaseCaffeinateHoldForThread: () => releaseCaffeinateHoldForThread,
18303
18232
  releaseDesktopHost: () => releaseDesktopHost,
@@ -19926,7 +19855,7 @@ function registerSlackTools(server) {
19926
19855
  },
19927
19856
  async ({ team_id }) => {
19928
19857
  try {
19929
- await refreshSlackReplyBadges({ force: true });
19858
+ await pollSlackOutboundWatches({ force: true });
19930
19859
  const team = team_id?.trim();
19931
19860
  const watches = listSlackOutboundWatches().filter(
19932
19861
  (w) => !team || w.teamId === team
@@ -23804,7 +23733,6 @@ init_outbound_watch();
23804
23733
  disconnectLinearConnection,
23805
23734
  disconnectSlackWorkspace,
23806
23735
  discoverSkills,
23807
- dismissSlackReplyBadge,
23808
23736
  dropCachedPrefixOnResume,
23809
23737
  encodeBrightsyTarget,
23810
23738
  enrichPathWithNpmGlobalBin,
@@ -23986,7 +23914,6 @@ init_outbound_watch();
23986
23914
  listRunScripts,
23987
23915
  listSchedules,
23988
23916
  listSlackOutboundWatches,
23989
- listSlackReplyBadges,
23990
23917
  listSlackWorkspaces,
23991
23918
  listThreads,
23992
23919
  listWorkspaces,
@@ -24042,10 +23969,10 @@ init_outbound_watch();
24042
23969
  partsToAssistantText,
24043
23970
  pastedTextStats,
24044
23971
  pendingSlackExternalReplies,
24045
- permalinkForSlackReplyBadge,
24046
23972
  permissionMode,
24047
23973
  persistVaultKeyInKeychain,
24048
23974
  planFileAbs,
23975
+ pollSlackOutboundWatches,
24049
23976
  posixShellSingleQuote,
24050
23977
  preferredCursorCostCents,
24051
23978
  prepareTerminalCommand,
@@ -24063,7 +23990,6 @@ init_outbound_watch();
24063
23990
  recordScheduleRun,
24064
23991
  recordSlackOutboundWatch,
24065
23992
  refreshGitHubAuth,
24066
- refreshSlackReplyBadges,
24067
23993
  registerPackagedUserMcpClients,
24068
23994
  releaseCaffeinateHoldForThread,
24069
23995
  releaseDesktopHost,
package/dist/index.d.cts CHANGED
@@ -987,7 +987,7 @@ declare function caffeinateWhileCloudConnectEnabled(settings?: AppSettings): boo
987
987
  declare function deleteBranchOnPurgeEnabled(settings?: AppSettings): boolean;
988
988
  /** Default off. When on, create may use the project checkout on the default branch. */
989
989
  declare function cowboyModeEnabled(settings?: AppSettings): boolean;
990
- /** Settings → Advanced → Show cost (default off). */
990
+ /** Settings → Advanced → Show cost (when available) (default off). */
991
991
  declare function showCostEnabled(settings?: AppSettings): boolean;
992
992
  /** Conductor-style opt-in — default off. */
993
993
  declare function autoArchiveOnMergeEnabled(settings?: AppSettings): boolean;
@@ -2060,6 +2060,7 @@ type CursorSdkStreamMessage = {
2060
2060
  cacheReadTokens?: number;
2061
2061
  cacheWriteTokens?: number;
2062
2062
  };
2063
+ run_id?: string;
2063
2064
  };
2064
2065
  /** Cursor SDK `UsageCost` — dollar amounts in float cents. */
2065
2066
  type CursorUsageCost = {
@@ -3705,95 +3706,6 @@ declare function getBrightsySession(): Promise<BrightsySession>;
3705
3706
  */
3706
3707
  declare function switchBrightsyAccount(accountIdOrSlug: string): Promise<BrightsySession>;
3707
3708
 
3708
- interface SlackOutboundReply {
3709
- userId: string;
3710
- userName: string;
3711
- ts: string;
3712
- text: string;
3713
- }
3714
- interface SlackOutboundWatch {
3715
- id: string;
3716
- teamId: string;
3717
- channelId: string;
3718
- /** Posted message ts. */
3719
- ts: string;
3720
- /** Parent thread ts (same as `ts` for top-level posts). */
3721
- threadTs: string;
3722
- kind: 'dm' | 'channel';
3723
- toUserId?: string;
3724
- toLabel: string;
3725
- ownerUserId?: string;
3726
- /** Sideboard orchestration thread that called slack_post. */
3727
- sourceThreadId?: string;
3728
- postedAt: string;
3729
- lastSeenTs: string;
3730
- unread: boolean;
3731
- replyUserId?: string;
3732
- replyUserName?: string;
3733
- replyTs?: string;
3734
- replyPreview?: string;
3735
- permalink?: string;
3736
- /** Reply timestamps already copied into the source thread (not commands). */
3737
- injectedReplyTs?: string[];
3738
- replies?: SlackOutboundReply[];
3739
- }
3740
- interface SlackReplyBadge {
3741
- id: string;
3742
- userId: string;
3743
- userName: string;
3744
- initials: string;
3745
- hue: number;
3746
- permalink: string;
3747
- label: string;
3748
- preview?: string;
3749
- repliedAt: string;
3750
- }
3751
- declare function slackArchiveUrl(channelId: string, ts: string): string;
3752
- declare function formatSlackExternalReplyPrompt(input: {
3753
- userName: string;
3754
- kind: 'dm' | 'channel';
3755
- toLabel: string;
3756
- text: string;
3757
- permalink?: string;
3758
- }): string;
3759
- declare function isSlackExternalReplyPrompt(text: string): boolean;
3760
- /**
3761
- * Slack replies appended after the last agent turn and before the current user
3762
- * prompt. CLI --resume does not see Sideboard-injected messages, so the next
3763
- * turn must include these in `prompt` (not cachedPrefix).
3764
- */
3765
- declare function pendingSlackExternalReplies(messages: Array<{
3766
- role: string;
3767
- text: string;
3768
- }>): string[];
3769
- declare function formatSlackRepliesForTurn(replies: string[]): string | null;
3770
- declare function formatSlackReplyContinuePrompt(input: {
3771
- userName: string;
3772
- kind: 'dm' | 'channel';
3773
- toLabel: string;
3774
- count: number;
3775
- }): string;
3776
- declare function listSlackOutboundWatches(): SlackOutboundWatch[];
3777
- declare function recordSlackOutboundWatch(input: {
3778
- teamId: string;
3779
- channelId: string;
3780
- ts: string;
3781
- threadTs?: string;
3782
- kind: 'dm' | 'channel';
3783
- toUserId?: string;
3784
- toLabel: string;
3785
- ownerUserId?: string;
3786
- sourceThreadId?: string;
3787
- }): SlackOutboundWatch | null;
3788
- declare function listSlackReplyBadges(): SlackReplyBadge[];
3789
- declare function dismissSlackReplyBadge(badgeKey: string): SlackReplyBadge[];
3790
- declare function permalinkForSlackReplyBadge(badgeKey: string): string | null;
3791
- declare function refreshSlackReplyBadges(opts?: {
3792
- fetchImpl?: typeof fetch;
3793
- force?: boolean;
3794
- now?: number;
3795
- }): Promise<SlackReplyBadge[]>;
3796
-
3797
3709
  interface SlackWorkspace {
3798
3710
  team_id: string;
3799
3711
  team_name: string;
@@ -3955,10 +3867,6 @@ interface IpcApi {
3955
3867
  onCaffeinateHoldChanged(listener: (state: CaffeinateHoldState & {
3956
3868
  appCaffeinated: boolean;
3957
3869
  }) => void): () => void;
3958
- /** Unread Slack replies to messages this Mac posted (relayed as info; queues a follow-up turn, not a Listen interrupt). */
3959
- getSlackReplyBadges(): Promise<SlackReplyBadge[]>;
3960
- /** Open the Slack thread in the browser/app and clear that user's badge. */
3961
- openSlackReply(badgeId: string): Promise<SlackReplyBadge[]>;
3962
3870
  /**
3963
3871
  * Unified issues for Create-from / Link issue (Linear API or GitHub Issues,
3964
3872
  * based on Account preference with Linear→GitHub fallback).
@@ -4810,4 +4718,74 @@ interface SlackRelayClientOptions {
4810
4718
  */
4811
4719
  declare function runSlackRelayClient(opts: SlackRelayClientOptions): Promise<void>;
4812
4720
 
4813
- export { AGENT_GIT_ACTIONS, AGENT_RUNNER_MAX_OLD_SPACE_MB, ATTACHMENTS_DIR, type ActiveRun, type AddStackLayerInput, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentGitAction, type AgentInstructionFile, type AgentKind, type AgentModelCatalog, type AgentModelInfo, type AgentSetupActionResult, type AgentSetupInfo, type AgentSetupKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BAKED_SLACK_RELAY_URL, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLAUDE_MODEL_CATALOG, 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, CONVENTION_SETUP_RELPATHS, COORDINATOR_TOOL_PLAYBOOK, type CaffeinateHoldState, type ClaudeHarnessSettings, type CleanupOrphansResult, type CliAgentKind, type CliExecutableSettings, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type ConventionSetupFile, type CowboyThreadFields, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateScheduledTaskInput, type CreateStackInput, type CreateThreadInput, type CreateWorktreeResult, type CursorAgentUsageSnapshot, type CursorModelInfo, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorUsageCost, type CursorWorktreesConfig, type DefaultsAppSettings, 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, GITHUB_GIT_AUTH_MODES, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GhStackStatus, type GitHubStatus, type GitWorktreeStatus, type GithubGitAuthMode, HARNESS_ENV_KEYS, type HarnessId, type InitStackFromThreadInput, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, LEGACY_ATTACHMENTS_DIR, LEGACY_PLAN_FILE_REL, LEGACY_REVIEW_REQUEST_PATH, LINEAR_OAUTH_CANCELLED, LINEAR_OAUTH_PORT, LINEAR_OAUTH_REDIRECT, LINEAR_OAUTH_SCOPES, type LandPreview, type LandResult, type LinearComment, type LinearIssue, LinearOAuthCancelledError, type LinearTeam, type LinearTeamsResult, type LinearWorkflowState, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, ORCHESTRATOR_AGENT_KINDS, type OpenPrStackLayersInput, type OpenStackLayerInput, type OpenStackLayerResult, type OrchestrationQuotaOnLimit, Orchestrator, type OrchestratorAgentKind, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PASTE_ATTACH_MIN_CHARS, PASTE_ATTACH_MIN_LINES, PLAN_FILE_NAME, PLAN_FILE_REL, PLAN_MODE_INSTRUCTION, type PendingPlanQuestions, type PlanQuestion, type PlanQuestionAnswer, type PlanQuestionOption, type PlanToolPartLike, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type PrStack, type PrStackLayer, type PresentedPlan, type PublicAppSettings, type PublicIntegrationsSettings, REPO_REVIEW_NAME, REPO_REVIEW_PATH, REVIEW_REQUEST_NAME, REVIEW_REQUEST_PATH, REVIEW_REQUEST_PREFILL, REVIEW_REQUEST_TEMPLATE, REVIEW_SKILL_NAME, REVIEW_SKILL_PATH, type RepoSettings, type RepoSetupInfo, type RequestReviewResult, type ResolvedReviewGuidelines, type ReviewGuidelinesSource, type RunMode, type RunScript, SESSION_RESET_OCCUPANCY_TOKENS, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, SIDEBOARD_MCP_PROFILE_ENV, SLACK_LISTEN_STOPPED_REPLY, SLACK_LISTEN_TIMEOUT_REPLY, SLACK_OAUTH_CANCELLED, SLACK_OAUTH_REDIRECT, SLACK_PROGRESS_DELAY_MS, SLACK_PROGRESS_EDIT_MS, SLACK_REPLY_FORMATTING, SLACK_SEEN_REACTION, type ScheduleCreatedBy, type ScheduleWhen, type ScheduledTask, type ScriptHandle, type SetupRunResult, type SideboardMcpProfile, type SkillInfo, type SlackInboundMessage, type SlackListenOptions, type SlackListenStatus, SlackOAuthCancelledError, type SlackOutboundReply, type SlackOutboundWatch, type SlackRelayClientMessage, type SlackRelayClientOptions, SlackRelayHub, type SlackRelayServerHandle, type SlackRelayServerMessage, type SlackRelayServerOptions, type SlackReplyBadge, type SlackWorkspaceInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, THINKING_EFFORTS, type TeamName, type ThinkingEffort, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type ToolPartLike, type TranscriptToolDetail, type TurnCommand, type UpdateScheduledTaskPatch, type UsageScope, WORKTREE_MCP_TOOLS, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, ackSlackInboundSeen, addPrStackLayer, addStackLayerFromThread, addWorkspace, adoptThread, agentGitPrompt, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendIndexedGitConfig, appendMessage, applyAgentEvent, applyAgentRunnerHeapEnv, applyAppEnvironment, applyCompaction, applyGithubGitAuthEnv, applyPromptCacheTtlEnv, applyThreadIntoMain, applyTurnUsage, armSchedules, assertOrchestratorCapableAgent, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, attachmentsGitignoreBody, autoArchiveOnMergeEnabled, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyInjectWorktreeMcpEnabled, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildPastedTextAttachment, buildReviewRequestAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateHoldPath, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, caffeinateWhileSchedulesEnabled, caffeinateWhileSlackListenEnabled, captureLoginEnv, captureTurnBaseline, checkoutPrStackLayer, childEnvWithAppSettings, claimDesktopHost, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, codexSandboxWritableRootsArgs, codexUnattendedGitConfigArgs, coerceOrchestratorAgent, collectTakenTeamSlugs, commentLinearIssue, commitAll, computeNextRunAt, conductorBundledBinDir, conductorDbPath, confirmLand, connectBrightsyTeam, connectSlackToken, contextTokens, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, cowboyModeEnabled, createChatTab, createEmptyThread, createExistingBranchWorktree, createGlobalChat, createLinearIssue, createLinearPkce, createOrUpdatePr, createPrStack, createSchedule, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, defaultScheduleName, deleteBranchOnPurgeEnabled, deleteSchedule, deleteThreadRecord, desktopHostPidPath, detectAgents, detectGhStack, detectLocalMergeConflicts, disconnectBrightsyTeam, disconnectLinear, disconnectLinearConnection, disconnectSlackWorkspace, discoverSkills, dismissSlackReplyBadge, dropCachedPrefixOnResume, encodeBrightsyTarget, enrichPathWithNpmGlobalBin, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureReviewRequestFile, ensureReviewSkillFile, ensureSlackCoordinator, ensureSlackDeviceIdentity, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractPendingPlanQuestions, extractPresentedPlan, extractiveSummary, fetchPrHead, finalizeParts, findConventionSetup, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findSlackCoordinator, findThreadByRef, findThreadForStackLayer, fireSchedule, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatFetchError, formatGhLandError, formatGitAuthModeDirective, formatIpcInvokeError, formatMergePrError, formatMessagesAsTranscript, formatPlanQuestionAnswers, formatPlanQuestionsForChat, formatProcessGuideDirective, formatRateLimitResetHint, formatRenameBranchDirective, formatScheduleWhen, formatScheduledPrompt, formatSlackExternalReplyPrompt, formatSlackInboundPrompt, formatSlackRepliesForTurn, formatSlackReplyContinuePrompt, formatSlackSignedReply, formatSlackWorkingText, formatTranscriptMarkdown, formatUiReminder, formatWorkspaceInventory, formatWorktreeDirective, formatWorktreeReminder, fromInclusiveInputUsage, getAdapter, getAgentSetupInfo, getBrightsySession, getCaffeinateHold, getDefaultAgent, getDefaultEffort, getDefaultFast, getDefaultModel, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getGithubGitAuthMode, getGithubPat, getIssueSource, getLinearApiKey, getLinearAuthToken, getLinearIssue, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrForHeadBranch, getPrMeta, getPrStack, getRepoSetupInfo, getRunMode, getRunScript, getSchedule, getSlackWorkspace, gh, ghHeadRef, ghRepoSelectArgs, git, githubAgentGitEnv, globalAgentCwd, handleSlackInbound, harnessEnvKey, hasBakedLinearOAuth, hasBakedSlackOAuth, hasConductorHook, hasConventionSetup, hasCursorWorktreeSetup, hasEnabledSchedules, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, httpFetch, importConductorWorkspace, importConductorWorkspaceAsync, initPrStack, initStackFromThread, initializeGitRepository, inspectGitWorktree, installAgent, interruptSlackCoordinatorForInbound, isAskUserToolName, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isConductorBundledCli, isCowboyThread, isCursorAutoModel, isDefaultishSourceRef, isDesktopHostAlive, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isInPrStack, isInboundForThisDesktop, isLinearConnected, isLinearOAuthCancelled, isOrchestratorCapableAgent, isOrchestratorThread, isPidAlive, isPlaceholderBranch, isPollWrapperToolName, isPrNotMergeableError, isPresentPlanToolName, isPrimaryCheckoutThread, isSessionQuotaLimit, isShellToolName, isSideboardScratchPath, isSlackCoordinatorThread, isSlackExternalReplyPrompt, isSlackOAuthCancelled, isSubagentToolName, isThinkingEffort, isThisProcessDesktopHost, isThreadCaffeinated, isThreadRecordFile, isWorkspaceScratchPath, lastRequestOccupancy, linearAuthorizationHeader, linearGraphql, linearOAuthAuthorizeUrl, linearOAuthCredentials, listAgentSetupInfo, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listCodexModels, listConductorWorkspaces, listConnectedBrightsyTeams, listCursorModels, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listLinearTeams, listModelsForAgent, listOpencodeModels, listPrs, listRunScripts, listSchedules, listSlackOutboundWatches, listSlackReplyBadges, listSlackWorkspaces, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, liveActivitySummary, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, loginAgent, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergeAgentGitAuthEnv, mergePr, mergePrStack, mergeSideboardIntoMcpServersJson, mergeUsage, messagePartParentId, nextPastedTextName, nextThinkingEffort, nonInteractiveGitProcessEnv, normalizeParseResult, normalizeThinkingEffort, normalizeThread, normalizeTurnInput, normalizeWorktreePath, openInSystemTerminal, openPrStackLayers, openStackLayer, opencodeAdapter, orchestrationQuotaFallbackAgent, orchestrationQuotaOnLimit, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseDurationMs, parseForceStopMessage, parseGhStackViewJson, parseGithubSlugFromRemoteUrl, parseMcpList, parsePlanQuestionsInput, parseSessionQuotaResetAt, parseSlackRelayClientMessage, parseSlackRelayServerMessage, partsToAssistantText, pastedTextStats, pendingSlackExternalReplies, permalinkForSlackReplyBadge, permissionMode, persistVaultKeyInKeychain, planFileAbs, posixShellSingleQuote, preferredCursorCostCents, prepareTerminalCommand, previewLand, promptMentionsBrightsy, pushBranch, readExistingReviewRequestFile, readKeychainVaultKey, readPlanFile, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, recordScheduleRun, recordSlackOutboundWatch, refreshGitHubAuth, refreshSlackReplyBadges, registerPackagedUserMcpClients, releaseCaffeinateHoldForThread, releaseDesktopHost, removeWorkspace, removeWorktree, repoSlug, requestOccupancy, requestReview, requireAgent, resetGhStackDetectCache, resetGithubAgentTokenMemo, resolveAgentExecutable, resolveAgentGitAuthEnv, resolveClaudeExecutable, resolveCodexGitWritableRoots, resolveCommandBinarySync, resolveConductorCursorAgentId, resolveCursorModelId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGhAuthToken, resolveGitDirsForLockRecovery, resolveGithubAgentToken, resolveGithubRepoSlug, resolveLinearState, resolveLinearTeam, resolveLoginCommand, resolveNewThreadOptions, resolvePlanMarkdown, resolvePrSelector, resolvePrSelectors, resolveQuotaFallbackAgent, resolveRepoRoot, resolveReviewGuidelines, resolveScheduleThreadId, resolveSlackListenMode, resolveThreadDefaults, resolveThreadEffort, resolveVaultKey, resolveWorktreeStartPoint, rewriteLinearError, run, runArchiveScript, runCloudConnect, runConventionSetup, runCursorWorktreeSetup, runSetupScript, runSlackListen, runSlackRelayClient, runWorkspaceSetup, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, saveLinearOAuth, schedulesPath, scrubGithubTokensFromChildEnv, secureFileUnlocksWith, setCaffeinateHold, setHttpFetchImpl, setStatus, setVaultMasterKey, settingsSourceLabel, shouldAttachPastedText, shouldCompactContext, shouldInjectBrightsyMcp, shouldRefreshReviewRequestTemplate, shouldRemoveWorktreeOnTeardown, shouldResetSessionForOccupancy, shouldRunWorktreeCleanup, showCostEnabled, sideboardHomeDir, sideboardMcpProfile, sideboardReposDir, sideboardWorkspacesDir, slackAppLevelToken, slackArchiveUrl, slackCoordinatorSourceRef, slackListenEnabled, slackOAuthCredentials, slackOAuthResultUrl, slackRelayUrl, slugify, spawnAgentTurn, splitForCompaction, stackAgentDefaultsFrom, stackIdFrom, stackMergeReadiness, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startLinearOAuth, startMcpServer, startOrchestration, startSlackOAuth, startSlackRelayServer, stripBrightsyNdjsonNoise, stripNestedElectronEnv, submitPrStack, suggestSlug, sumUsageList, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, thinkingEffortBars, thinkingEffortLabel, thisProcessShouldDrainAgentQueues, threadDisplayLabel, threadFilePath, threadLivePath, threadLockPath, threadRequestsBrightsyMcp, threadsDir, threadsSharingWorktree, toPublicAppSettings, toolActivityLine, toolDescription, toolDetail, toolFilePath, totalTokens, turnCostUsdFromCursorUsage, updateAdvancedSettings, updateAgentExecutable, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateCodexSettings, updateDefaultsSettings, updateIntegrationsSettings, updateLinearIssue, updateOpencodeSettings, updateSchedule, updateThread, userClaudeMcpConfigPath, userCursorMcpConfigPath, validateLinearApiKey, waitForPidExit, warmGithubAgentAuth, withAgentInstructions, withEventParentId, withEventsParentId, withExportedPath, withMaxOldSpaceSize, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, wrapReviewSkillMarkdown, writeInjectedMcpConfig, writePlanFile, writeThread, writeWorktreeFile };
4721
+ interface SlackOutboundReply {
4722
+ userId: string;
4723
+ userName: string;
4724
+ ts: string;
4725
+ text: string;
4726
+ }
4727
+ interface SlackOutboundWatch {
4728
+ id: string;
4729
+ teamId: string;
4730
+ channelId: string;
4731
+ /** Posted message ts. */
4732
+ ts: string;
4733
+ /** Parent thread ts (same as `ts` for top-level posts). */
4734
+ threadTs: string;
4735
+ kind: 'dm' | 'channel';
4736
+ toUserId?: string;
4737
+ toLabel: string;
4738
+ ownerUserId?: string;
4739
+ /** Sideboard orchestration thread that called slack_post. */
4740
+ sourceThreadId?: string;
4741
+ postedAt: string;
4742
+ lastSeenTs: string;
4743
+ permalink?: string;
4744
+ /** Reply timestamps already copied into the source thread (not commands). */
4745
+ injectedReplyTs?: string[];
4746
+ replies?: SlackOutboundReply[];
4747
+ }
4748
+ declare function slackArchiveUrl(channelId: string, ts: string): string;
4749
+ declare function formatSlackExternalReplyPrompt(input: {
4750
+ userName: string;
4751
+ kind: 'dm' | 'channel';
4752
+ toLabel: string;
4753
+ text: string;
4754
+ permalink?: string;
4755
+ }): string;
4756
+ declare function isSlackExternalReplyPrompt(text: string): boolean;
4757
+ /**
4758
+ * Slack replies appended after the last agent turn and before the current user
4759
+ * prompt. CLI --resume does not see Sideboard-injected messages, so the next
4760
+ * turn must include these in `prompt` (not cachedPrefix).
4761
+ */
4762
+ declare function pendingSlackExternalReplies(messages: Array<{
4763
+ role: string;
4764
+ text: string;
4765
+ }>): string[];
4766
+ declare function formatSlackRepliesForTurn(replies: string[]): string | null;
4767
+ declare function formatSlackReplyContinuePrompt(input: {
4768
+ userName: string;
4769
+ kind: 'dm' | 'channel';
4770
+ toLabel: string;
4771
+ count: number;
4772
+ }): string;
4773
+ declare function listSlackOutboundWatches(): SlackOutboundWatch[];
4774
+ declare function recordSlackOutboundWatch(input: {
4775
+ teamId: string;
4776
+ channelId: string;
4777
+ ts: string;
4778
+ threadTs?: string;
4779
+ kind: 'dm' | 'channel';
4780
+ toUserId?: string;
4781
+ toLabel: string;
4782
+ ownerUserId?: string;
4783
+ sourceThreadId?: string;
4784
+ }): SlackOutboundWatch | null;
4785
+ declare function pollSlackOutboundWatches(opts?: {
4786
+ fetchImpl?: typeof fetch;
4787
+ force?: boolean;
4788
+ now?: number;
4789
+ }): Promise<void>;
4790
+
4791
+ export { AGENT_GIT_ACTIONS, AGENT_RUNNER_MAX_OLD_SPACE_MB, ATTACHMENTS_DIR, type ActiveRun, type AddStackLayerInput, type AdoptInput, type AdvancedAppSettings, type AgentAdapter, type AgentEvent, type AgentGitAction, type AgentInstructionFile, type AgentKind, type AgentModelCatalog, type AgentModelInfo, type AgentSetupActionResult, type AgentSetupInfo, type AgentSetupKind, type AgentStatus, type AgentTurnInput, type AnthropicCacheControl, type AppSettings, type ApplyIntoMainResult, type AttachCommand, type Autonomy, BAKED_SLACK_RELAY_URL, BRIGHTSY_MCP_ALLOWED_TOOLS, type BranchInfo, type BrightsyAccount, type BrightsyChatTarget, type BrightsyChatTargets, type BrightsyCloudConnectAgent, type BrightsyHarnessSettings, type BrightsySession, BrightsySideboardApi, type BrightsyTeamTargets, CLAUDE_MODEL_CATALOG, 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, CONVENTION_SETUP_RELPATHS, COORDINATOR_TOOL_PLAYBOOK, type CaffeinateHoldState, type ClaudeHarnessSettings, type CleanupOrphansResult, type CliAgentKind, type CliExecutableSettings, type CloudConnectAgent, type CloudConnectOptions, type CloudConnectStatus, type CompactResult, type CompactThresholds, type ComposerFileBuffer, type ConductorSettings, type ConductorWorkspace, type ConnectedBrightsyTeamInfo, type ConventionSetupFile, type CowboyThreadFields, type CreateChatTabInput, type CreateGlobalChatOpts, type CreateScheduledTaskInput, type CreateStackInput, type CreateThreadInput, type CreateWorktreeResult, type CursorAgentUsageSnapshot, type CursorModelInfo, type CursorSdkStreamMessage, type CursorTurnRequest, type CursorUsageCost, type CursorWorktreesConfig, type DefaultsAppSettings, 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, GITHUB_GIT_AUTH_MODES, GLOBAL_WORKSPACE_ID, type GetDiffOptions, type GhStackStatus, type GitHubStatus, type GitWorktreeStatus, type GithubGitAuthMode, HARNESS_ENV_KEYS, type HarnessId, type InitStackFromThreadInput, type IntegrationsSettings, type IpcApi, type IssueInfo, type IssueSource, LEGACY_ATTACHMENTS_DIR, LEGACY_PLAN_FILE_REL, LEGACY_REVIEW_REQUEST_PATH, LINEAR_OAUTH_CANCELLED, LINEAR_OAUTH_PORT, LINEAR_OAUTH_REDIRECT, LINEAR_OAUTH_SCOPES, type LandPreview, type LandResult, type LinearComment, type LinearIssue, LinearOAuthCancelledError, type LinearTeam, type LinearTeamsResult, type LinearWorkflowState, type ListIssuesResult, MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS, type McpServerStatus, type MessagePart, ORCHESTRATOR_AGENT_KINDS, type OpenPrStackLayersInput, type OpenStackLayerInput, type OpenStackLayerResult, type OrchestrationQuotaOnLimit, Orchestrator, type OrchestratorAgentKind, type OrchestratorEvent, type OrchestratorRuntime, type OrphanWorktree, PASTE_ATTACH_MIN_CHARS, PASTE_ATTACH_MIN_LINES, PLAN_FILE_NAME, PLAN_FILE_REL, PLAN_MODE_INSTRUCTION, type PendingPlanQuestions, type PlanQuestion, type PlanQuestionAnswer, type PlanQuestionOption, type PlanToolPartLike, type PrActor, type PrCheckRun, type PrCommentInfo, type PrCommitInfo, type PrDetails, type PrInfo, type PrMeta, type PrReviewInfo, type PrStack, type PrStackLayer, type PresentedPlan, type PublicAppSettings, type PublicIntegrationsSettings, REPO_REVIEW_NAME, REPO_REVIEW_PATH, REVIEW_REQUEST_NAME, REVIEW_REQUEST_PATH, REVIEW_REQUEST_PREFILL, REVIEW_REQUEST_TEMPLATE, REVIEW_SKILL_NAME, REVIEW_SKILL_PATH, type RepoSettings, type RepoSetupInfo, type RequestReviewResult, type ResolvedReviewGuidelines, type ReviewGuidelinesSource, type RunMode, type RunScript, SESSION_RESET_OCCUPANCY_TOKENS, SIDEBOARD_FORCE_STOP, SIDEBOARD_MCP_ALLOWED_TOOLS, SIDEBOARD_MCP_PROFILE_ENV, SLACK_LISTEN_STOPPED_REPLY, SLACK_LISTEN_TIMEOUT_REPLY, SLACK_OAUTH_CANCELLED, SLACK_OAUTH_REDIRECT, SLACK_PROGRESS_DELAY_MS, SLACK_PROGRESS_EDIT_MS, SLACK_REPLY_FORMATTING, SLACK_SEEN_REACTION, type ScheduleCreatedBy, type ScheduleWhen, type ScheduledTask, type ScriptHandle, type SetupRunResult, type SideboardMcpProfile, type SkillInfo, type SlackInboundMessage, type SlackListenOptions, type SlackListenStatus, SlackOAuthCancelledError, type SlackOutboundReply, type SlackOutboundWatch, type SlackRelayClientMessage, type SlackRelayClientOptions, SlackRelayHub, type SlackRelayServerHandle, type SlackRelayServerMessage, type SlackRelayServerOptions, type SlackWorkspaceInfo, type SourceType, type SpawnTurnHandle, type SummarizeResult, THINKING_EFFORTS, type TeamName, type ThinkingEffort, type Thread, type ThreadAttachment, type ThreadMessage, type ThreadOptionsPatch, type ThreadStatus, type TokenUsage, type ToolPartLike, type TranscriptToolDetail, type TurnCommand, type UpdateScheduledTaskPatch, type UsageScope, WORKTREE_MCP_TOOLS, type Workspace, type WorkspaceInventoryEntry, type WorkspaceScriptEnvOpts, ackSlackInboundSeen, addPrStackLayer, addStackLayerFromThread, addWorkspace, adoptThread, agentGitPrompt, allAdapters, allocatePort, allocatePortRange, allocateTeamName, allocateTeamSlug, appDataDir, appSettingsPath, appendIndexedGitConfig, appendMessage, applyAgentEvent, applyAgentRunnerHeapEnv, applyAppEnvironment, applyCompaction, applyGithubGitAuthEnv, applyPromptCacheTtlEnv, applyThreadIntoMain, applyTurnUsage, armSchedules, assertOrchestratorCapableAgent, attachmentFromAbsolutePath, attachmentsFromBuffers, attachmentsFromWorktreePaths, attachmentsGitignoreBody, autoArchiveOnMergeEnabled, autoCleanupOrphansEnabled, autoRenameBranchEnabled, autoRunAfterSetupEnabled, branchDisplayLabel, brightsyAdapter, brightsyCloudConnectAgent, brightsyCloudConnectEnabled, brightsyConfigPath, brightsyInjectWorktreeMcpEnabled, brightsyMcpAllowedTools, brightsyMcpServerName, buildCachedUserContent, buildClaudeStreamJsonUserMessage, buildDiffCommentAttachment, buildForkTranscriptAttachment, buildPastedTextAttachment, buildReviewRequestAttachment, buildSessionSeed, buildWorkspaceScriptEnv, caffeinateHoldPath, caffeinateWhileCloudConnectEnabled, caffeinateWhileRunningEnabled, caffeinateWhileSchedulesEnabled, caffeinateWhileSlackListenEnabled, captureLoginEnv, captureTurnBaseline, checkoutPrStackLayer, childEnvWithAppSettings, claimDesktopHost, claudeAdapter, claudeChromeEnabled, claudeUserSettingsPath, cleanupOrphanWorktrees, cloneRepoIntoSideboard, codexAdapter, codexSandboxWritableRootsArgs, codexUnattendedGitConfigArgs, coerceOrchestratorAgent, collectTakenTeamSlugs, commentLinearIssue, commitAll, computeNextRunAt, conductorBundledBinDir, conductorDbPath, confirmLand, connectBrightsyTeam, connectSlackToken, contextTokens, coordinatorSystemPrompt, coordinatorTurnReminder, copyConfiguredFiles, countCacheControlBlocks, cowboyModeEnabled, createChatTab, createEmptyThread, createExistingBranchWorktree, createGlobalChat, createLinearIssue, createLinearPkce, createOrUpdatePr, createPrStack, createSchedule, createThread, createThreadWorktree, currentBranch, cursorAdapter, cursorSdkMessageToEvents, decodeBrightsyTarget, defaultScheduleName, deleteBranchOnPurgeEnabled, deleteSchedule, deleteThreadRecord, desktopHostPidPath, detectAgents, detectGhStack, detectLocalMergeConflicts, disconnectBrightsyTeam, disconnectLinear, disconnectLinearConnection, disconnectSlackWorkspace, discoverSkills, dropCachedPrefixOnResume, encodeBrightsyTarget, enrichPathWithNpmGlobalBin, enrichWorkspacesWithGithub, ensureAgentPath, ensureCloudCoordinator, ensureGhPreferOrigin, ensureGlobalCoordinatorCwd, ensureReviewRequestFile, ensureReviewSkillFile, ensureSlackCoordinator, ensureSlackDeviceIdentity, ensureWorkspace, estimateMessageChars, estimateThreadChars, expandComposerPrompt, extractGhErrorDetail, extractPendingPlanQuestions, extractPresentedPlan, extractiveSummary, fetchPrHead, finalizeParts, findConventionSetup, findInvalidCacheControlTtlOrder, findOrphanWorktrees, findSlackCoordinator, findThreadByRef, findThreadForStackLayer, fireSchedule, flattenTurnInput, forkChatTab, forkMessageSlice, forkThreadWorktree, formatAgentInstructions, formatArtifactDirective, formatBrightsyFetchError, formatFetchError, formatGhLandError, formatGitAuthModeDirective, formatIpcInvokeError, formatMergePrError, formatMessagesAsTranscript, formatPlanQuestionAnswers, formatPlanQuestionsForChat, formatProcessGuideDirective, formatRateLimitResetHint, formatRenameBranchDirective, formatScheduleWhen, formatScheduledPrompt, formatSlackExternalReplyPrompt, formatSlackInboundPrompt, formatSlackRepliesForTurn, formatSlackReplyContinuePrompt, formatSlackSignedReply, formatSlackWorkingText, formatTranscriptMarkdown, formatUiReminder, formatWorkspaceInventory, formatWorktreeDirective, formatWorktreeReminder, fromInclusiveInputUsage, getAdapter, getAgentSetupInfo, getBrightsySession, getCaffeinateHold, getDefaultAgent, getDefaultEffort, getDefaultFast, getDefaultModel, getDefaultRunScript, getDiff, getDiffSummary, getGitHubStatus, getGithubGitAuthMode, getGithubPat, getIssueSource, getLinearApiKey, getLinearAuthToken, getLinearIssue, getOrchestrator, getPr, getPrChecks, getPrDetails, getPrForHeadBranch, getPrMeta, getPrStack, getRepoSetupInfo, getRunMode, getRunScript, getSchedule, getSlackWorkspace, gh, ghHeadRef, ghRepoSelectArgs, git, githubAgentGitEnv, globalAgentCwd, handleSlackInbound, harnessEnvKey, hasBakedLinearOAuth, hasBakedSlackOAuth, hasConductorHook, hasConventionSetup, hasCursorWorktreeSetup, hasEnabledSchedules, hasRepoHook, hasWorkspaceHook, healOrchestrationSoccerTitles, httpFetch, importConductorWorkspace, importConductorWorkspaceAsync, initPrStack, initStackFromThread, initializeGitRepository, inspectGitWorktree, installAgent, interruptSlackCoordinatorForInbound, isAskUserToolName, isBrightsyConnected, isBrightsyNdjsonLine, isCloudCoordinatorThread, isConductorBundledCli, isCowboyThread, isCursorAutoModel, isDefaultishSourceRef, isDesktopHostAlive, isDirty, isGhRateLimitError, isGlobalRepoPath, isGlobalThread, isImageFilePath, isInPrStack, isInboundForThisDesktop, isLinearConnected, isLinearOAuthCancelled, isOrchestratorCapableAgent, isOrchestratorThread, isPidAlive, isPlaceholderBranch, isPollWrapperToolName, isPrNotMergeableError, isPresentPlanToolName, isPrimaryCheckoutThread, isSessionQuotaLimit, isShellToolName, isSideboardScratchPath, isSlackCoordinatorThread, isSlackExternalReplyPrompt, isSlackOAuthCancelled, isSubagentToolName, isThinkingEffort, isThisProcessDesktopHost, isThreadCaffeinated, isThreadRecordFile, isWorkspaceScratchPath, lastRequestOccupancy, linearAuthorizationHeader, linearGraphql, linearOAuthAuthorizeUrl, linearOAuthCredentials, listAgentSetupInfo, listBranchCommits, listBranches, listBrightsyAccounts, listBrightsyChatTargets, listCodexModels, listConductorWorkspaces, listConnectedBrightsyTeams, listCursorModels, listGitHubIssues, listGlobalThreads, listIssues, listLinearIssues, listLinearIssuesDirect, listLinearTeams, listModelsForAgent, listOpencodeModels, listPrs, listRunScripts, listSchedules, listSlackOutboundWatches, listSlackWorkspaces, listThreads, listWorkspaces, listWorktreeFiles, listWorktrees, liveActivitySummary, loadAgentInstructions, loadAppSettings, loadBrightsyConfig, loadConductorSettings, loadRepoSettings, loadWorkspaceSettings, locksDir, loginAgent, lookupSoccerTeam, maxConcurrentAgents, maybeCompactContext, mcpAllowTools, mcpAuthWarnings, mergeAgentGitAuthEnv, mergePr, mergePrStack, mergeSideboardIntoMcpServersJson, mergeUsage, messagePartParentId, nextPastedTextName, nextThinkingEffort, nonInteractiveGitProcessEnv, normalizeParseResult, normalizeThinkingEffort, normalizeThread, normalizeTurnInput, normalizeWorktreePath, openInSystemTerminal, openPrStackLayers, openStackLayer, opencodeAdapter, orchestrationQuotaFallbackAgent, orchestrationQuotaOnLimit, orchestrationTitleNeedsSoccerNickname, orchestratorSessionPoisonedByBuiltins, originGhRepoEnv, parseCursorRunnerLine, parseDurationMs, parseForceStopMessage, parseGhStackViewJson, parseGithubSlugFromRemoteUrl, parseMcpList, parsePlanQuestionsInput, parseSessionQuotaResetAt, parseSlackRelayClientMessage, parseSlackRelayServerMessage, partsToAssistantText, pastedTextStats, pendingSlackExternalReplies, permissionMode, persistVaultKeyInKeychain, planFileAbs, pollSlackOutboundWatches, posixShellSingleQuote, preferredCursorCostCents, prepareTerminalCommand, previewLand, promptMentionsBrightsy, pushBranch, readExistingReviewRequestFile, readKeychainVaultKey, readPlanFile, readSkillBody, readThread, readWorktreeFile, readWorktreeFileForUpload, readWorktreeInclude, recordScheduleRun, recordSlackOutboundWatch, refreshGitHubAuth, registerPackagedUserMcpClients, releaseCaffeinateHoldForThread, releaseDesktopHost, removeWorkspace, removeWorktree, repoSlug, requestOccupancy, requestReview, requireAgent, resetGhStackDetectCache, resetGithubAgentTokenMemo, resolveAgentExecutable, resolveAgentGitAuthEnv, resolveClaudeExecutable, resolveCodexGitWritableRoots, resolveCommandBinarySync, resolveConductorCursorAgentId, resolveCursorModelId, resolveDefaultBranch, resolveDiffBaseRef, resolveEffectiveIssueSource, resolveFilesToCopy, resolveGhAuthToken, resolveGitDirsForLockRecovery, resolveGithubAgentToken, resolveGithubRepoSlug, resolveLinearState, resolveLinearTeam, resolveLoginCommand, resolveNewThreadOptions, resolvePlanMarkdown, resolvePrSelector, resolvePrSelectors, resolveQuotaFallbackAgent, resolveRepoRoot, resolveReviewGuidelines, resolveScheduleThreadId, resolveSlackListenMode, resolveThreadDefaults, resolveThreadEffort, resolveVaultKey, resolveWorktreeStartPoint, rewriteLinearError, run, runArchiveScript, runCloudConnect, runConventionSetup, runCursorWorktreeSetup, runSetupScript, runSlackListen, runSlackRelayClient, runWorkspaceSetup, sameWorktreePath, sanitizeMcpServerName, saveAppSettings, saveLinearOAuth, schedulesPath, scrubGithubTokensFromChildEnv, secureFileUnlocksWith, setCaffeinateHold, setHttpFetchImpl, setStatus, setVaultMasterKey, settingsSourceLabel, shouldAttachPastedText, shouldCompactContext, shouldInjectBrightsyMcp, shouldRefreshReviewRequestTemplate, shouldRemoveWorktreeOnTeardown, shouldResetSessionForOccupancy, shouldRunWorktreeCleanup, showCostEnabled, sideboardHomeDir, sideboardMcpProfile, sideboardReposDir, sideboardWorkspacesDir, slackAppLevelToken, slackArchiveUrl, slackCoordinatorSourceRef, slackListenEnabled, slackOAuthCredentials, slackOAuthResultUrl, slackRelayUrl, slugify, spawnAgentTurn, splitForCompaction, stackAgentDefaultsFrom, stackIdFrom, stackMergeReadiness, stageAbsolutePathsAsAttachments, stageBuffersAsAttachments, startDevServer, startLinearOAuth, startMcpServer, startOrchestration, startSlackOAuth, startSlackRelayServer, stripBrightsyNdjsonNoise, stripNestedElectronEnv, submitPrStack, suggestSlug, sumUsageList, summarizeConversation, switchBrightsyAccount, syncWorkspacesFromThreads, takenTeamSlugsForChatTab, takenTeamSlugsForOrchestration, taskMessageText, thinkingEffortBars, thinkingEffortLabel, thisProcessShouldDrainAgentQueues, threadDisplayLabel, threadFilePath, threadLivePath, threadLockPath, threadRequestsBrightsyMcp, threadsDir, threadsSharingWorktree, toPublicAppSettings, toolActivityLine, toolDescription, toolDetail, toolFilePath, totalTokens, turnCostUsdFromCursorUsage, updateAdvancedSettings, updateAgentExecutable, updateAppEnvironment, updateBrightsySettings, updateClaudeSettings, updateCodexSettings, updateDefaultsSettings, updateIntegrationsSettings, updateLinearIssue, updateOpencodeSettings, updateSchedule, updateThread, userClaudeMcpConfigPath, userCursorMcpConfigPath, validateLinearApiKey, waitForPidExit, warmGithubAgentAuth, withAgentInstructions, withEventParentId, withEventsParentId, withExportedPath, withMaxOldSpaceSize, withThreadLock, workspaceSettingsSourceLabel, worktreeCleanupSettings, worktreeDisplayLabel, worktreeDisplayLabelForGroup, worktreeNameFromPath, worktreesRoot, wrapReviewSkillMarkdown, writeInjectedMcpConfig, writePlanFile, writeThread, writeWorktreeFile };