@sideboard-ai/core 0.1.258 → 0.1.262
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/{abletime-IDQJI2KW.js → abletime-CDGINDXG.js} +6 -5
- package/dist/{abletime-OGQR4LIL.js → abletime-OQ4PC52L.js} +7 -6
- package/dist/{abletime-oauth-ZQUIY4EM.js → abletime-oauth-5A5EOH2A.js} +5 -4
- package/dist/{abletime-oauth-MBAG5MYU.js → abletime-oauth-KX2TDFTE.js} +6 -5
- package/dist/{abletime-rest-WEJERY4O.js → abletime-rest-PUGKYTRR.js} +6 -5
- package/dist/{abletime-rest-JZIIT5W3.js → abletime-rest-UEHOBLXD.js} +5 -4
- package/dist/agents/cursor-runner.cjs +274 -12
- package/dist/agents/cursor-runner.js +156 -13
- package/dist/{agents-HZP7YEKC.js → agents-IKVUGW5H.js} +12 -9
- package/dist/{agents-FSUI5MET.js → agents-J2P4KNEY.js} +21 -18
- package/dist/{app-settings-CLARFJUX.js → app-settings-OM7H64YM.js} +12 -3
- package/dist/{app-settings-ONYJ36XH.js → app-settings-VQEUCONM.js} +11 -2
- package/dist/chunk-3HO2OY5T.js +159 -0
- package/dist/{chunk-F7ANS66U.js → chunk-4F7J6UWD.js} +75 -33
- package/dist/{chunk-WDDUIGFK.js → chunk-4GK32AYX.js} +1 -1
- package/dist/{chunk-ZC3TVLY6.js → chunk-5OKJDCBK.js} +5 -5
- package/dist/{chunk-KJM3E3NF.js → chunk-6PFZ6XO7.js} +65 -6
- package/dist/{title-4A2ATYNY.js → chunk-7H655NEW.js} +1 -0
- package/dist/{chunk-R4DWUBOL.js → chunk-ABPNIYRS.js} +78 -37
- package/dist/{chunk-XIEDFRBP.js → chunk-B6XFBNYM.js} +2 -2
- package/dist/chunk-CEMNIGQH.js +161 -0
- package/dist/{chunk-66LAOKLK.js → chunk-D554YCHG.js} +2 -2
- package/dist/{chunk-HCNCZPDL.js → chunk-FSZ7YYFQ.js} +119 -63
- package/dist/{chunk-4723RAO3.js → chunk-FWNL62VA.js} +3 -1
- package/dist/{chunk-Y7CS2WGJ.js → chunk-GIZQAOHZ.js} +247 -109
- package/dist/chunk-HHEKVR6C.js +72 -0
- package/dist/{chunk-IFHHPPSL.js → chunk-J6ONZP74.js} +5 -5
- package/dist/{chunk-PJK24CN3.js → chunk-JTNY5CK4.js} +10 -10
- package/dist/{chunk-CPEIHTG7.js → chunk-KVQX62XI.js} +3 -3
- package/dist/{chunk-5F4YFGHL.js → chunk-LDXSAVWO.js} +7 -7
- package/dist/{title-4WAKWZRF.js → chunk-LX5R5JOR.js} +1 -0
- package/dist/{chunk-D6JWYJ4P.js → chunk-N2WW62LF.js} +1 -0
- package/dist/{chunk-RTQOCFIV.js → chunk-S7VDDJ34.js} +3 -3
- package/dist/{chunk-RJC2MKXN.js → chunk-TJ673EZT.js} +3 -1
- package/dist/{chunk-63YSFXLT.js → chunk-U3AOJLH3.js} +126 -70
- package/dist/{chunk-452Y24PW.js → chunk-VIC6TDYT.js} +68 -9
- package/dist/{chunk-553IEH7O.js → chunk-W5PWGEKS.js} +241 -104
- package/dist/{chunk-VVHHBOIA.js → chunk-WV7KJH2E.js} +5 -3
- package/dist/{chunk-BYRZS2S2.js → chunk-X2OTZ36G.js} +4 -4
- package/dist/{chunk-FGWUZOZN.js → chunk-YFTO7U2A.js} +3 -3
- package/dist/connected-teams-7CENZDWU.js +1 -1
- package/dist/{connected-teams-Z5GOIC5I.js → connected-teams-RU6VATCM.js} +2 -2
- package/dist/{coordinator-prompt-HZUWK3NP.js → coordinator-prompt-TU6656OK.js} +9 -8
- package/dist/{coordinator-prompt-Y6S6USNS.js → coordinator-prompt-VQHQ3RIX.js} +8 -7
- package/dist/{global-workspace-4JCITHB6.js → global-workspace-47NZVA44.js} +8 -7
- package/dist/{global-workspace-YA7U4M2N.js → global-workspace-PHF2MOGW.js} +9 -8
- package/dist/index.cjs +1443 -856
- package/dist/index.d.cts +118 -37
- package/dist/index.d.ts +118 -37
- package/dist/index.js +148 -64
- package/dist/managed-accounts-2AK5RIAF.js +39 -0
- package/dist/managed-accounts-4BLTJKAN.js +41 -0
- package/dist/mcp/run-stdio.cjs +2722 -2248
- package/dist/mcp/run-stdio.js +136 -50
- package/dist/{orchestrator-LWADJQTN.js → orchestrator-OCG4QVA5.js} +13 -11
- package/dist/{orchestrator-VHJZEVGA.js → orchestrator-VLTO5JBR.js} +13 -11
- package/dist/{plan-file-CKXUFTQ2.js → plan-file-VAHV5WBB.js} +2 -2
- package/dist/{thread-store-HDQ4CH54.js → thread-store-FJ5CDX2M.js} +1 -1
- package/dist/{thread-store-ZDR3Z5UG.js → thread-store-SHCUBWB3.js} +1 -1
- package/dist/title-ERD6D3C3.js +8 -0
- package/dist/title-Z7WAJN57.js +6 -0
- package/dist/{workspaces-IXZD7EC4.js → workspaces-2XTDS7N2.js} +9 -8
- package/dist/{workspaces-4KHEUPEX.js → workspaces-I7TWFTJM.js} +8 -7
- package/dist/{worktree-DAAF64UU.js → worktree-DDDF3WHV.js} +8 -7
- package/dist/{worktree-S3FOMEQ2.js → worktree-YASFE65H.js} +7 -6
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
parseAbleTimeOAuthCallbackUrl,
|
|
21
21
|
resolveAbleTimeOAuthHost,
|
|
22
22
|
startAbleTimeOAuth
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-YFTO7U2A.js";
|
|
24
24
|
import {
|
|
25
25
|
ableTimeDependencyTarget,
|
|
26
26
|
commentAbleTimeTask,
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
toAbleTimeIssueInfo,
|
|
39
39
|
updateAbleTimeTask,
|
|
40
40
|
verifyAbleTimeConnection
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
41
|
+
} from "./chunk-KVQX62XI.js";
|
|
42
|
+
import "./chunk-D554YCHG.js";
|
|
43
43
|
import {
|
|
44
44
|
ABLETIME_MCP_PATH,
|
|
45
45
|
ABLETIME_MCP_PM_PATH,
|
|
@@ -60,7 +60,7 @@ import {
|
|
|
60
60
|
normalizeAbleTimeCredential,
|
|
61
61
|
normalizeAbleTimeHost,
|
|
62
62
|
rewriteAbleTimeError
|
|
63
|
-
} from "./chunk-
|
|
63
|
+
} from "./chunk-J6ONZP74.js";
|
|
64
64
|
import {
|
|
65
65
|
AGENT_GIT_ACTIONS,
|
|
66
66
|
BOARD_COLUMN_DEFS,
|
|
@@ -121,6 +121,7 @@ import {
|
|
|
121
121
|
buildReviewRequestAttachment,
|
|
122
122
|
buildSessionSeed,
|
|
123
123
|
buildWorkspaceScriptEnv,
|
|
124
|
+
canReuseIdleWorktreeAgentForReview,
|
|
124
125
|
captureLoginEnv,
|
|
125
126
|
captureTurnBaseline,
|
|
126
127
|
claimDesktopHost,
|
|
@@ -339,22 +340,7 @@ import {
|
|
|
339
340
|
worktreeRunPortsPath,
|
|
340
341
|
wrapReviewSkillMarkdown,
|
|
341
342
|
writeWorktreeFile
|
|
342
|
-
} from "./chunk-
|
|
343
|
-
import {
|
|
344
|
-
LEGACY_PLAN_FILE_REL,
|
|
345
|
-
PLAN_FILE_NAME,
|
|
346
|
-
PLAN_FILE_REL,
|
|
347
|
-
PRESENT_PLAN_REQUIRES_PLAN_MODE,
|
|
348
|
-
PRESENT_PLAN_TOOL_DESCRIPTION,
|
|
349
|
-
extractPresentedPlan,
|
|
350
|
-
isPresentPlanToolName,
|
|
351
|
-
planFileAbs,
|
|
352
|
-
readPlanFile,
|
|
353
|
-
resolvePlanMarkdown,
|
|
354
|
-
shouldRegisterPresentPlan,
|
|
355
|
-
threadMayPresentPlan,
|
|
356
|
-
writePlanFile
|
|
357
|
-
} from "./chunk-PGPSIEMW.js";
|
|
343
|
+
} from "./chunk-GIZQAOHZ.js";
|
|
358
344
|
import {
|
|
359
345
|
BRIGHTSY_MCP_ALLOWED_TOOLS,
|
|
360
346
|
CLAUDE_MODEL_CATALOG,
|
|
@@ -430,6 +416,7 @@ import {
|
|
|
430
416
|
listOpencodeModels,
|
|
431
417
|
liveActivitySummary,
|
|
432
418
|
loginAgent,
|
|
419
|
+
loginManagedAccount,
|
|
433
420
|
looksLikeComposerSkillExpansion,
|
|
434
421
|
looksLikeConversationSummary,
|
|
435
422
|
looksLikeIncompleteSkillDump,
|
|
@@ -478,7 +465,23 @@ import {
|
|
|
478
465
|
withEventParentId,
|
|
479
466
|
withEventsParentId,
|
|
480
467
|
writeInjectedMcpConfig
|
|
481
|
-
} from "./chunk-
|
|
468
|
+
} from "./chunk-ABPNIYRS.js";
|
|
469
|
+
import "./chunk-7H655NEW.js";
|
|
470
|
+
import {
|
|
471
|
+
LEGACY_PLAN_FILE_REL,
|
|
472
|
+
PLAN_FILE_NAME,
|
|
473
|
+
PLAN_FILE_REL,
|
|
474
|
+
PRESENT_PLAN_REQUIRES_PLAN_MODE,
|
|
475
|
+
PRESENT_PLAN_TOOL_DESCRIPTION,
|
|
476
|
+
extractPresentedPlan,
|
|
477
|
+
isPresentPlanToolName,
|
|
478
|
+
planFileAbs,
|
|
479
|
+
readPlanFile,
|
|
480
|
+
resolvePlanMarkdown,
|
|
481
|
+
shouldRegisterPresentPlan,
|
|
482
|
+
threadMayPresentPlan,
|
|
483
|
+
writePlanFile
|
|
484
|
+
} from "./chunk-PGPSIEMW.js";
|
|
482
485
|
import {
|
|
483
486
|
CLOUD_COORDINATOR_BUSY_REPLY,
|
|
484
487
|
CLOUD_COORDINATOR_CANCELED_REPLY,
|
|
@@ -524,7 +527,7 @@ import {
|
|
|
524
527
|
stageBuffersAsAttachments,
|
|
525
528
|
syncWorkspacesFromThreads,
|
|
526
529
|
takenTeamSlugsForOrchestration
|
|
527
|
-
} from "./chunk-
|
|
530
|
+
} from "./chunk-X2OTZ36G.js";
|
|
528
531
|
import {
|
|
529
532
|
FAMOUS_SOCCER_TEAMS,
|
|
530
533
|
GITHUB_PR_BODY_MAX_CHARS,
|
|
@@ -624,16 +627,7 @@ import {
|
|
|
624
627
|
worktreeDisplayLabelForGroup,
|
|
625
628
|
worktreeNameFromPath,
|
|
626
629
|
worktreeSlugForTicket
|
|
627
|
-
} from "./chunk-
|
|
628
|
-
import {
|
|
629
|
-
ATTACHMENTS_DIR,
|
|
630
|
-
CLI_DIR,
|
|
631
|
-
DETACHED_JOBS_DIR,
|
|
632
|
-
LEGACY_ATTACHMENTS_DIR,
|
|
633
|
-
LEGACY_DETACHED_JOBS_DIR,
|
|
634
|
-
attachmentsGitignoreBody,
|
|
635
|
-
isWorkspaceScratchPath
|
|
636
|
-
} from "./chunk-6K64FJDD.js";
|
|
630
|
+
} from "./chunk-U3AOJLH3.js";
|
|
637
631
|
import "./chunk-2P4XKWV2.js";
|
|
638
632
|
import {
|
|
639
633
|
brightsyMcpServerName,
|
|
@@ -644,7 +638,7 @@ import {
|
|
|
644
638
|
listBrightsyAccounts,
|
|
645
639
|
listConnectedBrightsyTeams,
|
|
646
640
|
switchBrightsyAccount
|
|
647
|
-
} from "./chunk-
|
|
641
|
+
} from "./chunk-LDXSAVWO.js";
|
|
648
642
|
import {
|
|
649
643
|
BRIGHTSY_OAUTH_CLIENT_ID,
|
|
650
644
|
BRIGHTSY_OAUTH_REDIRECT,
|
|
@@ -663,6 +657,9 @@ import {
|
|
|
663
657
|
httpFetch,
|
|
664
658
|
setHttpFetchImpl
|
|
665
659
|
} from "./chunk-N7WZ6NIN.js";
|
|
660
|
+
import {
|
|
661
|
+
clipMcpToolResult
|
|
662
|
+
} from "./chunk-HHEKVR6C.js";
|
|
666
663
|
import "./chunk-AXQ4ZWHK.js";
|
|
667
664
|
import {
|
|
668
665
|
AGENT_RUNNER_MAX_OLD_SPACE_MB,
|
|
@@ -678,7 +675,32 @@ import {
|
|
|
678
675
|
trustSystemCertificates,
|
|
679
676
|
turnCostUsdFromCursorUsage,
|
|
680
677
|
withMaxOldSpaceSize
|
|
681
|
-
} from "./chunk-
|
|
678
|
+
} from "./chunk-WV7KJH2E.js";
|
|
679
|
+
import {
|
|
680
|
+
ATTACHMENTS_DIR,
|
|
681
|
+
CLI_DIR,
|
|
682
|
+
DETACHED_JOBS_DIR,
|
|
683
|
+
LEGACY_ATTACHMENTS_DIR,
|
|
684
|
+
LEGACY_DETACHED_JOBS_DIR,
|
|
685
|
+
attachmentsGitignoreBody,
|
|
686
|
+
isWorkspaceScratchPath
|
|
687
|
+
} from "./chunk-6K64FJDD.js";
|
|
688
|
+
import {
|
|
689
|
+
conductorBundledBinDir,
|
|
690
|
+
enrichPathWithNpmGlobalBin,
|
|
691
|
+
ensureAgentPath,
|
|
692
|
+
gh,
|
|
693
|
+
git,
|
|
694
|
+
isConductorBundledCli,
|
|
695
|
+
npmGlobalNodeModules,
|
|
696
|
+
npmGlobalPrefix,
|
|
697
|
+
posixShellSingleQuote,
|
|
698
|
+
resolveCommandBinarySync,
|
|
699
|
+
resolveGhAuthToken,
|
|
700
|
+
resolveGitDirsForLockRecovery,
|
|
701
|
+
run,
|
|
702
|
+
withExportedPath
|
|
703
|
+
} from "./chunk-QVN2WOKJ.js";
|
|
682
704
|
import {
|
|
683
705
|
AGENT_DONE_SOUNDS,
|
|
684
706
|
CHAT_TEXT_SCALES,
|
|
@@ -697,6 +719,7 @@ import {
|
|
|
697
719
|
PROFILE_NOTES_MAX,
|
|
698
720
|
REVIEW_LABEL_MAX,
|
|
699
721
|
USAGE_ON_LIMIT_VALUES,
|
|
722
|
+
addManagedAccount,
|
|
700
723
|
agentDoneSound,
|
|
701
724
|
appSettingsPath,
|
|
702
725
|
applyAppEnvironment,
|
|
@@ -774,6 +797,8 @@ import {
|
|
|
774
797
|
readKeychainVaultKey,
|
|
775
798
|
readSecureJson,
|
|
776
799
|
readViewerContext,
|
|
800
|
+
removeManagedAccount,
|
|
801
|
+
renameManagedAccount,
|
|
777
802
|
requestOccupancy,
|
|
778
803
|
resolveAccountProfile,
|
|
779
804
|
resolveAccountProfileFromSettings,
|
|
@@ -793,6 +818,7 @@ import {
|
|
|
793
818
|
saveAppSettings,
|
|
794
819
|
saveLinearOAuth,
|
|
795
820
|
secureFileUnlocksWith,
|
|
821
|
+
selectManagedAccount,
|
|
796
822
|
setVaultMasterKey,
|
|
797
823
|
showCostEnabled,
|
|
798
824
|
slackAppLevelToken,
|
|
@@ -813,12 +839,34 @@ import {
|
|
|
813
839
|
usageOnLimit,
|
|
814
840
|
writeSecureJson,
|
|
815
841
|
writeViewerContext
|
|
816
|
-
} from "./chunk-
|
|
842
|
+
} from "./chunk-6PFZ6XO7.js";
|
|
843
|
+
import {
|
|
844
|
+
stripNestedElectronEnv
|
|
845
|
+
} from "./chunk-4TR3HZFT.js";
|
|
817
846
|
import {
|
|
818
847
|
examplePrefixedBranch,
|
|
819
848
|
resolveGitBranchPrefix,
|
|
820
849
|
sanitizeGitBranchPrefix
|
|
821
850
|
} from "./chunk-WDRMZKVB.js";
|
|
851
|
+
import {
|
|
852
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
853
|
+
accountIdToPin,
|
|
854
|
+
activeAccountId,
|
|
855
|
+
applyManagedAccountEnv,
|
|
856
|
+
ensureManagedAccountDir,
|
|
857
|
+
findManagedAccount,
|
|
858
|
+
isManagedAccountKind,
|
|
859
|
+
loginEnvPrefix,
|
|
860
|
+
managedAccountConfigDir,
|
|
861
|
+
mirrorHostConfig,
|
|
862
|
+
nextManagedAccount,
|
|
863
|
+
normalizeManagedAccounts,
|
|
864
|
+
resolveAccountForThread,
|
|
865
|
+
systemConfigDir,
|
|
866
|
+
withAddedAccount,
|
|
867
|
+
withRemovedAccount,
|
|
868
|
+
withSelectedAccount
|
|
869
|
+
} from "./chunk-3HO2OY5T.js";
|
|
822
870
|
import {
|
|
823
871
|
caffeinateHoldPath,
|
|
824
872
|
getCaffeinateHold,
|
|
@@ -846,7 +894,7 @@ import {
|
|
|
846
894
|
updateThread,
|
|
847
895
|
withThreadLock,
|
|
848
896
|
writeThread
|
|
849
|
-
} from "./chunk-
|
|
897
|
+
} from "./chunk-FWNL62VA.js";
|
|
850
898
|
import "./chunk-UWQ6UCIB.js";
|
|
851
899
|
import {
|
|
852
900
|
THINKING_EFFORTS,
|
|
@@ -892,25 +940,6 @@ import {
|
|
|
892
940
|
workspaceSettingsSourceLabel,
|
|
893
941
|
worktreesRoot
|
|
894
942
|
} from "./chunk-EHT2DRT4.js";
|
|
895
|
-
import {
|
|
896
|
-
conductorBundledBinDir,
|
|
897
|
-
enrichPathWithNpmGlobalBin,
|
|
898
|
-
ensureAgentPath,
|
|
899
|
-
gh,
|
|
900
|
-
git,
|
|
901
|
-
isConductorBundledCli,
|
|
902
|
-
npmGlobalNodeModules,
|
|
903
|
-
npmGlobalPrefix,
|
|
904
|
-
posixShellSingleQuote,
|
|
905
|
-
resolveCommandBinarySync,
|
|
906
|
-
resolveGhAuthToken,
|
|
907
|
-
resolveGitDirsForLockRecovery,
|
|
908
|
-
run,
|
|
909
|
-
withExportedPath
|
|
910
|
-
} from "./chunk-QVN2WOKJ.js";
|
|
911
|
-
import {
|
|
912
|
-
stripNestedElectronEnv
|
|
913
|
-
} from "./chunk-4TR3HZFT.js";
|
|
914
943
|
|
|
915
944
|
// src/store/agent-done-sound.ts
|
|
916
945
|
import { copyFileSync, existsSync, mkdirSync, readdirSync, readFileSync, unlinkSync } from "fs";
|
|
@@ -3441,8 +3470,43 @@ function formatPlanQuestionsForChat(questions) {
|
|
|
3441
3470
|
}
|
|
3442
3471
|
|
|
3443
3472
|
// src/mcp/server.ts
|
|
3444
|
-
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3445
3473
|
import { StdioServerTransport } from "@modelcontextprotocol/sdk/server/stdio.js";
|
|
3474
|
+
|
|
3475
|
+
// src/mcp/wrap-mcp-tools.ts
|
|
3476
|
+
import { McpServer } from "@modelcontextprotocol/sdk/server/mcp.js";
|
|
3477
|
+
function wrapToolCallback(fn, cwd) {
|
|
3478
|
+
return async (...args) => {
|
|
3479
|
+
const result = await fn(...args);
|
|
3480
|
+
return clipMcpToolResult(result, cwd());
|
|
3481
|
+
};
|
|
3482
|
+
}
|
|
3483
|
+
function wrapRegistrar(orig, cwd) {
|
|
3484
|
+
return ((...args) => {
|
|
3485
|
+
const last = args.length - 1;
|
|
3486
|
+
if (typeof args[last] === "function") {
|
|
3487
|
+
args[last] = wrapToolCallback(args[last], cwd);
|
|
3488
|
+
}
|
|
3489
|
+
return orig(...args);
|
|
3490
|
+
});
|
|
3491
|
+
}
|
|
3492
|
+
function wrapMcpToolResults(server, cwd = () => process.cwd()) {
|
|
3493
|
+
const rec = server;
|
|
3494
|
+
rec.tool = wrapRegistrar(rec.tool.bind(server), cwd);
|
|
3495
|
+
if (typeof rec.registerTool === "function") {
|
|
3496
|
+
rec.registerTool = wrapRegistrar(rec.registerTool.bind(server), cwd);
|
|
3497
|
+
}
|
|
3498
|
+
return server;
|
|
3499
|
+
}
|
|
3500
|
+
function createClippedMcpServer() {
|
|
3501
|
+
return wrapMcpToolResults(
|
|
3502
|
+
new McpServer({
|
|
3503
|
+
name: "sideboard",
|
|
3504
|
+
version: "0.1.0"
|
|
3505
|
+
})
|
|
3506
|
+
);
|
|
3507
|
+
}
|
|
3508
|
+
|
|
3509
|
+
// src/mcp/server.ts
|
|
3446
3510
|
import { z as z9 } from "zod";
|
|
3447
3511
|
import { randomUUID as randomUUID3 } from "crypto";
|
|
3448
3512
|
import { basename as basename2 } from "path";
|
|
@@ -3975,7 +4039,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
3975
4039
|
await continueOnReply(threadId, prompt);
|
|
3976
4040
|
return;
|
|
3977
4041
|
}
|
|
3978
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
4042
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-OCG4QVA5.js");
|
|
3979
4043
|
await getOrchestrator2().send(threadId, prompt);
|
|
3980
4044
|
} catch {
|
|
3981
4045
|
}
|
|
@@ -6096,7 +6160,7 @@ async function startMcpServer() {
|
|
|
6096
6160
|
);
|
|
6097
6161
|
}
|
|
6098
6162
|
try {
|
|
6099
|
-
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-
|
|
6163
|
+
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-VQEUCONM.js");
|
|
6100
6164
|
orch.setMaxConcurrent(maxConcurrentAgents2());
|
|
6101
6165
|
} catch {
|
|
6102
6166
|
}
|
|
@@ -6108,10 +6172,7 @@ async function startMcpServer() {
|
|
|
6108
6172
|
err instanceof Error ? err.message : err
|
|
6109
6173
|
);
|
|
6110
6174
|
}
|
|
6111
|
-
const server =
|
|
6112
|
-
name: "sideboard",
|
|
6113
|
-
version: "0.1.0"
|
|
6114
|
-
});
|
|
6175
|
+
const server = createClippedMcpServer();
|
|
6115
6176
|
const worktreeProfile = sideboardMcpProfile() === "worktree";
|
|
6116
6177
|
const notifyParent = async (input) => {
|
|
6117
6178
|
if (!worktreeProfile) return;
|
|
@@ -6591,7 +6652,7 @@ async function startMcpServer() {
|
|
|
6591
6652
|
registerSlackTools(server);
|
|
6592
6653
|
registerConnectedIssueVendorTools(server);
|
|
6593
6654
|
const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-DYJGWK6Y.js");
|
|
6594
|
-
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-
|
|
6655
|
+
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-VQEUCONM.js");
|
|
6595
6656
|
const accountDefaults = resolveThreadDefaults2();
|
|
6596
6657
|
const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
|
|
6597
6658
|
server.tool(
|
|
@@ -6916,7 +6977,7 @@ async function startMcpServer() {
|
|
|
6916
6977
|
);
|
|
6917
6978
|
server.tool(
|
|
6918
6979
|
"request_review",
|
|
6919
|
-
'Start a merge-readiness Review on a worktree agent thread (same as the desktop Review button).
|
|
6980
|
+
'Start a merge-readiness Review on a worktree agent thread (same as the desktop Review button). If that worktree has a single unused idle agent (no messages), runs the review there; otherwise opens a new Review chat tab. Attaches .claude/skills/review/SKILL.md when present (else copies .sideboard/review.md into .context/review.md, or seeds that file from the stock template), and sends "Review changes in this workspace." Expect Approve / Approve with nits / Request changes / Needs more information in that chat. The review stays there so the user can read it and type next steps \u2014 do not comment on or update the PR or ticket, and do not ask_user after the review, until they ask. Pass a worktree thread ref \u2014 not the orchestrator. Then wait_for_turn (loop while stillRunning) / get_turn_result on the returned review thread id.',
|
|
6920
6981
|
{ ref: z9.string().describe("Worktree thread id/ref to review") },
|
|
6921
6982
|
async ({ ref }) => {
|
|
6922
6983
|
try {
|
|
@@ -9621,6 +9682,7 @@ export {
|
|
|
9621
9682
|
DEFAULT_RUN_LOG_TAIL_CHARS,
|
|
9622
9683
|
DEFAULT_WORKTREE_SORT,
|
|
9623
9684
|
DETACHED_JOBS_DIR,
|
|
9685
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
9624
9686
|
FAMOUS_SOCCER_TEAMS,
|
|
9625
9687
|
FOLLOW_UP_BEHAVIORS,
|
|
9626
9688
|
GITHUB_GIT_AUTH_MODES,
|
|
@@ -9715,9 +9777,12 @@ export {
|
|
|
9715
9777
|
abletimeMcpRequest,
|
|
9716
9778
|
abletimeMcpUrl,
|
|
9717
9779
|
abletimeToolUsesPm,
|
|
9780
|
+
accountIdToPin,
|
|
9718
9781
|
ackSlackInboundSeen,
|
|
9782
|
+
activeAccountId,
|
|
9719
9783
|
activeRunPreview,
|
|
9720
9784
|
addBoardPin,
|
|
9785
|
+
addManagedAccount,
|
|
9721
9786
|
addPrStackLayer,
|
|
9722
9787
|
addStackLayerFromThread,
|
|
9723
9788
|
addWorkspace,
|
|
@@ -9745,6 +9810,7 @@ export {
|
|
|
9745
9810
|
applyCompaction,
|
|
9746
9811
|
applyForwardOccupancy,
|
|
9747
9812
|
applyGithubGitAuthEnv,
|
|
9813
|
+
applyManagedAccountEnv,
|
|
9748
9814
|
applyPromptCacheTtlEnv,
|
|
9749
9815
|
applySystemCaEnv,
|
|
9750
9816
|
applyThreadIntoMain,
|
|
@@ -9789,6 +9855,7 @@ export {
|
|
|
9789
9855
|
caffeinateWhileSchedulesEnabled,
|
|
9790
9856
|
caffeinateWhileSlackListenEnabled,
|
|
9791
9857
|
callAbleTimeTool,
|
|
9858
|
+
canReuseIdleWorktreeAgentForReview,
|
|
9792
9859
|
canonicalizeRepoPath,
|
|
9793
9860
|
captureLoginEnv,
|
|
9794
9861
|
captureTurnBaseline,
|
|
@@ -9898,6 +9965,7 @@ export {
|
|
|
9898
9965
|
ensureConnectedBrightsyTeamTokens,
|
|
9899
9966
|
ensureGhPreferOrigin,
|
|
9900
9967
|
ensureGlobalCoordinatorCwd,
|
|
9968
|
+
ensureManagedAccountDir,
|
|
9901
9969
|
ensureReviewGuidelinesFile,
|
|
9902
9970
|
ensureReviewRequestFile,
|
|
9903
9971
|
ensureReviewSkillFile,
|
|
@@ -9924,6 +9992,7 @@ export {
|
|
|
9924
9992
|
findLastBrightsyContextSummary,
|
|
9925
9993
|
findLiveThreadForCreate,
|
|
9926
9994
|
findLiveThreadForCreateSource,
|
|
9995
|
+
findManagedAccount,
|
|
9927
9996
|
findOrphanWorktrees,
|
|
9928
9997
|
findProjectProfileKey,
|
|
9929
9998
|
findSlackCoordinator,
|
|
@@ -10112,6 +10181,7 @@ export {
|
|
|
10112
10181
|
isLinearConnected,
|
|
10113
10182
|
isLinearNoneToken,
|
|
10114
10183
|
isLinearOAuthCancelled,
|
|
10184
|
+
isManagedAccountKind,
|
|
10115
10185
|
isOptionalServiceId,
|
|
10116
10186
|
isOrchestratorCapableAgent,
|
|
10117
10187
|
isOrchestratorThread,
|
|
@@ -10210,11 +10280,14 @@ export {
|
|
|
10210
10280
|
localhostPreviewUrl,
|
|
10211
10281
|
locksDir,
|
|
10212
10282
|
loginAgent,
|
|
10283
|
+
loginEnvPrefix,
|
|
10284
|
+
loginManagedAccount,
|
|
10213
10285
|
looksLikeComposerSkillExpansion,
|
|
10214
10286
|
looksLikeConversationSummary,
|
|
10215
10287
|
looksLikeIncompleteSkillDump,
|
|
10216
10288
|
looksLikeSkillBody,
|
|
10217
10289
|
lookupSoccerTeam,
|
|
10290
|
+
managedAccountConfigDir,
|
|
10218
10291
|
mapAbleTimeTask,
|
|
10219
10292
|
markPrReady,
|
|
10220
10293
|
materializeSystemCaBundle,
|
|
@@ -10234,8 +10307,10 @@ export {
|
|
|
10234
10307
|
messagePartParentId,
|
|
10235
10308
|
messagesForCompactArchive,
|
|
10236
10309
|
messagesSinceLastBrightsyContextSummary,
|
|
10310
|
+
mirrorHostConfig,
|
|
10237
10311
|
moveQueuedItemToFront,
|
|
10238
10312
|
needsCoordinatorAction,
|
|
10313
|
+
nextManagedAccount,
|
|
10239
10314
|
nextPastedTextName,
|
|
10240
10315
|
nextThinkingEffort,
|
|
10241
10316
|
nonInteractiveGitProcessEnv,
|
|
@@ -10244,6 +10319,7 @@ export {
|
|
|
10244
10319
|
normalizeBrightsyEndpoint,
|
|
10245
10320
|
normalizeCodeSelection,
|
|
10246
10321
|
normalizeLinearRelationType,
|
|
10322
|
+
normalizeManagedAccounts,
|
|
10247
10323
|
normalizeParseResult,
|
|
10248
10324
|
normalizeReviewLabel,
|
|
10249
10325
|
normalizeServiceOrigin,
|
|
@@ -10326,9 +10402,11 @@ export {
|
|
|
10326
10402
|
releaseCaffeinateHoldForThread,
|
|
10327
10403
|
releaseDesktopHost,
|
|
10328
10404
|
removeBoardPin,
|
|
10405
|
+
removeManagedAccount,
|
|
10329
10406
|
removeQueuedItem,
|
|
10330
10407
|
removeWorkspace,
|
|
10331
10408
|
removeWorktree,
|
|
10409
|
+
renameManagedAccount,
|
|
10332
10410
|
repoSlug,
|
|
10333
10411
|
requestOccupancy,
|
|
10334
10412
|
requestReview,
|
|
@@ -10338,6 +10416,7 @@ export {
|
|
|
10338
10416
|
resetGhStackDetectCache,
|
|
10339
10417
|
resetGithubAgentTokenMemo,
|
|
10340
10418
|
resolveAbleTimeOAuthHost,
|
|
10419
|
+
resolveAccountForThread,
|
|
10341
10420
|
resolveAccountProfile,
|
|
10342
10421
|
resolveAccountProfileFromSettings,
|
|
10343
10422
|
resolveAgentExecutable,
|
|
@@ -10413,6 +10492,7 @@ export {
|
|
|
10413
10492
|
scrubGithubTokensFromChildEnv,
|
|
10414
10493
|
searchAbleTimeTasks,
|
|
10415
10494
|
secureFileUnlocksWith,
|
|
10495
|
+
selectManagedAccount,
|
|
10416
10496
|
setCaffeinateHold,
|
|
10417
10497
|
setHttpFetchImpl,
|
|
10418
10498
|
setStatus,
|
|
@@ -10474,6 +10554,7 @@ export {
|
|
|
10474
10554
|
switchBrightsyAccount,
|
|
10475
10555
|
switchWorktreeBranch,
|
|
10476
10556
|
syncWorkspacesFromThreads,
|
|
10557
|
+
systemConfigDir,
|
|
10477
10558
|
takePendingTurnAttachments,
|
|
10478
10559
|
takenTeamSlugsForChatTab,
|
|
10479
10560
|
takenTeamSlugsForOrchestration,
|
|
@@ -10531,10 +10612,13 @@ export {
|
|
|
10531
10612
|
waitForPidExit,
|
|
10532
10613
|
warmGithubAgentAuth,
|
|
10533
10614
|
whichOnPath,
|
|
10615
|
+
withAddedAccount,
|
|
10534
10616
|
withEventParentId,
|
|
10535
10617
|
withEventsParentId,
|
|
10536
10618
|
withExportedPath,
|
|
10537
10619
|
withMaxOldSpaceSize,
|
|
10620
|
+
withRemovedAccount,
|
|
10621
|
+
withSelectedAccount,
|
|
10538
10622
|
withThreadLock,
|
|
10539
10623
|
workspaceSettingsSourceLabel,
|
|
10540
10624
|
worktreeBoardStatus,
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import {
|
|
2
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
3
|
+
accountIdToPin,
|
|
4
|
+
activeAccountId,
|
|
5
|
+
applyManagedAccountEnv,
|
|
6
|
+
ensureManagedAccountDir,
|
|
7
|
+
findManagedAccount,
|
|
8
|
+
isManagedAccountKind,
|
|
9
|
+
loginEnvPrefix,
|
|
10
|
+
managedAccountConfigDir,
|
|
11
|
+
mirrorHostConfig,
|
|
12
|
+
nextManagedAccount,
|
|
13
|
+
normalizeManagedAccounts,
|
|
14
|
+
resolveAccountForThread,
|
|
15
|
+
systemConfigDir,
|
|
16
|
+
withAddedAccount,
|
|
17
|
+
withRemovedAccount,
|
|
18
|
+
withSelectedAccount
|
|
19
|
+
} from "./chunk-3HO2OY5T.js";
|
|
20
|
+
import "./chunk-EHT2DRT4.js";
|
|
21
|
+
export {
|
|
22
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
23
|
+
accountIdToPin,
|
|
24
|
+
activeAccountId,
|
|
25
|
+
applyManagedAccountEnv,
|
|
26
|
+
ensureManagedAccountDir,
|
|
27
|
+
findManagedAccount,
|
|
28
|
+
isManagedAccountKind,
|
|
29
|
+
loginEnvPrefix,
|
|
30
|
+
managedAccountConfigDir,
|
|
31
|
+
mirrorHostConfig,
|
|
32
|
+
nextManagedAccount,
|
|
33
|
+
normalizeManagedAccounts,
|
|
34
|
+
resolveAccountForThread,
|
|
35
|
+
systemConfigDir,
|
|
36
|
+
withAddedAccount,
|
|
37
|
+
withRemovedAccount,
|
|
38
|
+
withSelectedAccount
|
|
39
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
|
|
3
|
+
import {
|
|
4
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
5
|
+
accountIdToPin,
|
|
6
|
+
activeAccountId,
|
|
7
|
+
applyManagedAccountEnv,
|
|
8
|
+
ensureManagedAccountDir,
|
|
9
|
+
findManagedAccount,
|
|
10
|
+
isManagedAccountKind,
|
|
11
|
+
loginEnvPrefix,
|
|
12
|
+
managedAccountConfigDir,
|
|
13
|
+
mirrorHostConfig,
|
|
14
|
+
nextManagedAccount,
|
|
15
|
+
normalizeManagedAccounts,
|
|
16
|
+
resolveAccountForThread,
|
|
17
|
+
systemConfigDir,
|
|
18
|
+
withAddedAccount,
|
|
19
|
+
withRemovedAccount,
|
|
20
|
+
withSelectedAccount
|
|
21
|
+
} from "./chunk-CEMNIGQH.js";
|
|
22
|
+
import "./chunk-Z2LGMV6C.js";
|
|
23
|
+
export {
|
|
24
|
+
EMPTY_MANAGED_ACCOUNTS,
|
|
25
|
+
accountIdToPin,
|
|
26
|
+
activeAccountId,
|
|
27
|
+
applyManagedAccountEnv,
|
|
28
|
+
ensureManagedAccountDir,
|
|
29
|
+
findManagedAccount,
|
|
30
|
+
isManagedAccountKind,
|
|
31
|
+
loginEnvPrefix,
|
|
32
|
+
managedAccountConfigDir,
|
|
33
|
+
mirrorHostConfig,
|
|
34
|
+
nextManagedAccount,
|
|
35
|
+
normalizeManagedAccounts,
|
|
36
|
+
resolveAccountForThread,
|
|
37
|
+
systemConfigDir,
|
|
38
|
+
withAddedAccount,
|
|
39
|
+
withRemovedAccount,
|
|
40
|
+
withSelectedAccount
|
|
41
|
+
};
|