@sideboard-ai/core 0.1.351 → 0.1.353
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-TX7BTTR2.js → abletime-5LEOMLQE.js} +4 -4
- package/dist/{abletime-URSRZW7P.js → abletime-VUPUERE4.js} +4 -4
- package/dist/{abletime-oauth-QS3WPSCC.js → abletime-oauth-65LHLQ7P.js} +3 -3
- package/dist/{abletime-oauth-SL3NMNEC.js → abletime-oauth-JAINJBNY.js} +3 -3
- package/dist/{abletime-rest-JZU6JJCV.js → abletime-rest-4TCWPN7E.js} +3 -3
- package/dist/{abletime-rest-GGQLUO55.js → abletime-rest-HBIK234Y.js} +3 -3
- package/dist/agents/claude-runner.cjs +37 -6
- package/dist/agents/claude-runner.js +16 -1
- package/dist/agents/cursor-runner.cjs +56 -12
- package/dist/agents/cursor-runner.js +2 -2
- package/dist/{agents-INTH7J3F.js → agents-5LFUHPSA.js} +9 -9
- package/dist/{agents-D5CL4CR4.js → agents-6B2HHICJ.js} +8 -8
- package/dist/{app-settings-IA7ZZKWQ.js → app-settings-GM4MJD2E.js} +3 -1
- package/dist/{app-settings-XILTSD6L.js → app-settings-X3UFWRAF.js} +3 -1
- package/dist/{chunk-BZK62VPT.js → chunk-2S7EAUDI.js} +2 -2
- package/dist/{chunk-CCWQ65VD.js → chunk-2SFKLWU5.js} +2 -2
- package/dist/{chunk-YVN7L4KG.js → chunk-AF5K6GQU.js} +6 -1
- package/dist/{chunk-WB3G2LQO.js → chunk-BCNPZ7H2.js} +1 -1
- package/dist/chunk-EAV2ZF5S.js +858 -0
- package/dist/{chunk-SMSD6U3N.js → chunk-GA5MLYVG.js} +1 -1
- package/dist/{chunk-HISSQICH.js → chunk-HBRP2SHA.js} +3 -3
- package/dist/{chunk-7WPQAVS5.js → chunk-HMSXKV53.js} +150 -126
- package/dist/{chunk-DL4OHDBV.js → chunk-I6BKWSCT.js} +3 -3
- package/dist/{chunk-WJURGCBR.js → chunk-KSBJOWVO.js} +1 -1
- package/dist/{chunk-J4EA5SHF.js → chunk-LZ3TAKNJ.js} +3 -3
- package/dist/{chunk-F4RFFE2H.js → chunk-M426EW7O.js} +3 -3
- package/dist/{chunk-C3E2DGDF.js → chunk-MBQU6RE2.js} +6 -6
- package/dist/{chunk-UXAKH4AW.js → chunk-MX2XU4BS.js} +418 -71
- package/dist/{chunk-TCEUNSLX.js → chunk-NRGT7RMO.js} +1 -1
- package/dist/{chunk-M45WGODR.js → chunk-OCCUD5CK.js} +2 -2
- package/dist/{chunk-BDWVBEKN.js → chunk-PKH3DRA6.js} +153 -127
- package/dist/{chunk-YE7Z5WH3.js → chunk-QKNOKO2P.js} +1 -1
- package/dist/{chunk-VL6F2KRE.js → chunk-RMJXFABA.js} +8 -6
- package/dist/{chunk-FQ3JYUKI.js → chunk-SBUR2WCP.js} +2 -2
- package/dist/{chunk-AEEOYLVK.js → chunk-SWU5C3HQ.js} +6 -6
- package/dist/{chunk-UFUAIVNV.js → chunk-TB7SYXXS.js} +8 -6
- package/dist/{chunk-7ZD4OK6G.js → chunk-TDWE7INS.js} +1 -1
- package/dist/{chunk-WFX4ZVSZ.js → chunk-TRUNDXCE.js} +1 -1
- package/dist/{chunk-PXSWVZIL.js → chunk-UPJB6TFI.js} +2 -2
- package/dist/{chunk-37ZBEBP6.js → chunk-VZAICZHU.js} +3 -3
- package/dist/{chunk-FCKTBE26.js → chunk-WJQFWDGH.js} +1 -1
- package/dist/{chunk-SZY23KGS.js → chunk-WTT525MC.js} +3 -3
- package/dist/{chunk-BF6INES4.js → chunk-X52SO3DM.js} +1 -1
- package/dist/{chunk-B4EFQTMP.js → chunk-XB6NCBZK.js} +5 -5
- package/dist/{chunk-5TCMXEYL.js → chunk-YGXUIBIT.js} +3 -3
- package/dist/{chunk-AAKQU4UZ.js → chunk-Z3CGD5HC.js} +28 -10
- package/dist/{chunk-VHQ6OG3U.js → chunk-ZHYFRRPN.js} +2 -2
- package/dist/{chunk-5WF54R3B.js → chunk-ZLPP66IP.js} +5 -5
- package/dist/{conductor-FWYWIHEW.js → conductor-2UOW2XBE.js} +6 -6
- package/dist/{conductor-W2X7QUKZ.js → conductor-6NYG2SZA.js} +6 -6
- package/dist/{coordinator-prompt-J57Q4Z4W.js → coordinator-prompt-K3WT5UVS.js} +4 -4
- package/dist/{coordinator-prompt-KIHNLENN.js → coordinator-prompt-ZP6AEETR.js} +4 -4
- package/dist/{global-workspace-WXDWFZAN.js → global-workspace-EFPSYP4N.js} +4 -4
- package/dist/{global-workspace-CGB5CY4U.js → global-workspace-EPVNFQVC.js} +4 -4
- package/dist/index.cjs +1414 -869
- package/dist/index.d.cts +116 -10
- package/dist/index.d.ts +116 -10
- package/dist/index.js +398 -315
- package/dist/{linear-WG23LBCX.js → linear-4ACCQCWM.js} +2 -2
- package/dist/{linear-E3BX5PX5.js → linear-Q2E6LKJW.js} +2 -2
- package/dist/{linear-list-VU47BNUV.js → linear-list-5A3BAWRZ.js} +1 -1
- package/dist/{linear-list-OINZWVV5.js → linear-list-V3A57XBR.js} +1 -1
- package/dist/mcp/run-stdio.cjs +1227 -802
- package/dist/mcp/run-stdio.js +342 -308
- package/dist/{optional-cli-K6HX2X5O.js → optional-cli-CKQPLY4Q.js} +4 -4
- package/dist/{optional-cli-SA3EQYML.js → optional-cli-WE3ULLFV.js} +5 -5
- package/dist/{orchestrator-MUD4FY7Q.js → orchestrator-UFHS2FOC.js} +12 -12
- package/dist/{orchestrator-DMEE7CEW.js → orchestrator-YCGWSIHF.js} +11 -11
- package/dist/{thread-store-4YTOV2HL.js → thread-store-CDFHHRXB.js} +2 -2
- package/dist/{thread-store-LME2ICZP.js → thread-store-TDGZEGS6.js} +2 -2
- package/dist/{workspaces-ZCTF4ECL.js → workspaces-KL4SZMJE.js} +4 -4
- package/dist/{workspaces-7DPHDXNY.js → workspaces-SQRR67HD.js} +4 -4
- package/dist/{worktree-4ATMCYIE.js → worktree-7KG5N2XL.js} +3 -3
- package/dist/{worktree-DA6SKIU5.js → worktree-IDX7LMBC.js} +3 -3
- package/package.json +1 -1
- package/dist/chunk-SUZOPJZC.js +0 -430
package/dist/index.js
CHANGED
|
@@ -17,16 +17,16 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-VZAICZHU.js";
|
|
21
21
|
import {
|
|
22
22
|
looksLikeAbleTimeUlid
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-2SFKLWU5.js";
|
|
24
24
|
import {
|
|
25
25
|
clearOptionalCliPresenceCache,
|
|
26
26
|
detectOptionalServiceClis,
|
|
27
27
|
installOptionalServiceCli,
|
|
28
28
|
optionalCliPresence
|
|
29
|
-
} from "./chunk-
|
|
29
|
+
} from "./chunk-UPJB6TFI.js";
|
|
30
30
|
import {
|
|
31
31
|
AGENT_GIT_ACTIONS,
|
|
32
32
|
BOARD_COLUMN_DEFS,
|
|
@@ -225,7 +225,7 @@ import {
|
|
|
225
225
|
worktreeCleanupSettings,
|
|
226
226
|
writeAgentBlock,
|
|
227
227
|
writeWorktreeFile
|
|
228
|
-
} from "./chunk-
|
|
228
|
+
} from "./chunk-PKH3DRA6.js";
|
|
229
229
|
import {
|
|
230
230
|
OPTIONAL_SERVICES,
|
|
231
231
|
OPTIONAL_SERVICE_IDS,
|
|
@@ -241,7 +241,7 @@ import {
|
|
|
241
241
|
optionalServiceConnected,
|
|
242
242
|
optionalServiceSpec,
|
|
243
243
|
verifyOptionalService
|
|
244
|
-
} from "./chunk-
|
|
244
|
+
} from "./chunk-2S7EAUDI.js";
|
|
245
245
|
import {
|
|
246
246
|
LEGACY_PLAN_FILE_REL,
|
|
247
247
|
PLAN_FILE_NAME,
|
|
@@ -298,7 +298,7 @@ import {
|
|
|
298
298
|
startLinearOAuth,
|
|
299
299
|
updateLinearIssue,
|
|
300
300
|
validateLinearApiKey
|
|
301
|
-
} from "./chunk-
|
|
301
|
+
} from "./chunk-TDWE7INS.js";
|
|
302
302
|
import {
|
|
303
303
|
downloadAuthenticatedFile,
|
|
304
304
|
extractHttpUrls,
|
|
@@ -389,7 +389,7 @@ import {
|
|
|
389
389
|
userMcpNamesToDisable,
|
|
390
390
|
worktreeMcpToolNames,
|
|
391
391
|
writeInjectedMcpConfig
|
|
392
|
-
} from "./chunk-
|
|
392
|
+
} from "./chunk-Z3CGD5HC.js";
|
|
393
393
|
import {
|
|
394
394
|
getAgentSetupInfo,
|
|
395
395
|
installAgent,
|
|
@@ -401,7 +401,7 @@ import {
|
|
|
401
401
|
prepareTerminalCommand,
|
|
402
402
|
resolveLoginCommand,
|
|
403
403
|
whichOnPath
|
|
404
|
-
} from "./chunk-
|
|
404
|
+
} from "./chunk-M426EW7O.js";
|
|
405
405
|
import {
|
|
406
406
|
brightsyMcpServerName,
|
|
407
407
|
connectBrightsyTeam,
|
|
@@ -425,7 +425,7 @@ import {
|
|
|
425
425
|
registerBrightsyOAuthClient,
|
|
426
426
|
saveBrightsyConfig
|
|
427
427
|
} from "./chunk-RSA47QYR.js";
|
|
428
|
-
import "./chunk-
|
|
428
|
+
import "./chunk-BCNPZ7H2.js";
|
|
429
429
|
import {
|
|
430
430
|
BRIGHTSY_SUMMARIZE_CONTEXT_TOOL,
|
|
431
431
|
CHARS_PER_CONTEXT_TOKEN,
|
|
@@ -537,7 +537,7 @@ import {
|
|
|
537
537
|
workspaceAgentChatSummaries,
|
|
538
538
|
worktreeRunPortsPath,
|
|
539
539
|
wrapReviewSkillMarkdown
|
|
540
|
-
} from "./chunk-
|
|
540
|
+
} from "./chunk-MBQU6RE2.js";
|
|
541
541
|
import {
|
|
542
542
|
STDERR_EVENT_MAX_CHARS,
|
|
543
543
|
STDOUT_EVENT_MAX_CHARS,
|
|
@@ -592,7 +592,7 @@ import {
|
|
|
592
592
|
detectAcpHarnesses,
|
|
593
593
|
isAcpHarnessId,
|
|
594
594
|
resolveAcpHarnessCommand
|
|
595
|
-
} from "./chunk-
|
|
595
|
+
} from "./chunk-QKNOKO2P.js";
|
|
596
596
|
import "./chunk-7H655NEW.js";
|
|
597
597
|
import {
|
|
598
598
|
ABLETIME_OAUTH_CALLBACK_PATH,
|
|
@@ -616,7 +616,7 @@ import {
|
|
|
616
616
|
parseAbleTimeOAuthCallbackUrl,
|
|
617
617
|
resolveAbleTimeOAuthHost,
|
|
618
618
|
startAbleTimeOAuth
|
|
619
|
-
} from "./chunk-
|
|
619
|
+
} from "./chunk-LZ3TAKNJ.js";
|
|
620
620
|
import {
|
|
621
621
|
ABLETIME_MCP_PATH,
|
|
622
622
|
ABLETIME_MCP_PM_PATH,
|
|
@@ -637,7 +637,7 @@ import {
|
|
|
637
637
|
normalizeAbleTimeCredential,
|
|
638
638
|
normalizeAbleTimeHost,
|
|
639
639
|
rewriteAbleTimeError
|
|
640
|
-
} from "./chunk-
|
|
640
|
+
} from "./chunk-ZLPP66IP.js";
|
|
641
641
|
import {
|
|
642
642
|
currentHttpFetch,
|
|
643
643
|
formatFetchError,
|
|
@@ -703,7 +703,7 @@ import {
|
|
|
703
703
|
stageBuffersAsAttachments,
|
|
704
704
|
syncWorkspacesFromThreads,
|
|
705
705
|
takenTeamSlugsForOrchestration
|
|
706
|
-
} from "./chunk-
|
|
706
|
+
} from "./chunk-HBRP2SHA.js";
|
|
707
707
|
import {
|
|
708
708
|
GITHUB_PR_BODY_MAX_CHARS,
|
|
709
709
|
GITHUB_PR_BODY_SAFE_CHARS,
|
|
@@ -793,7 +793,7 @@ import {
|
|
|
793
793
|
suggestSlug,
|
|
794
794
|
switchWorktreeBranch,
|
|
795
795
|
warmGithubAgentAuth
|
|
796
|
-
} from "./chunk-
|
|
796
|
+
} from "./chunk-SBUR2WCP.js";
|
|
797
797
|
import {
|
|
798
798
|
FAMOUS_SOCCER_TEAMS,
|
|
799
799
|
SCHEDULE_RUN_HISTORY_LIMIT,
|
|
@@ -853,7 +853,7 @@ import {
|
|
|
853
853
|
worktreeNameFromPath,
|
|
854
854
|
worktreeSlugForTicket,
|
|
855
855
|
writeThread
|
|
856
|
-
} from "./chunk-
|
|
856
|
+
} from "./chunk-NRGT7RMO.js";
|
|
857
857
|
import "./chunk-BMRJNRQK.js";
|
|
858
858
|
import "./chunk-TRMPDDVL.js";
|
|
859
859
|
import {
|
|
@@ -886,7 +886,7 @@ import {
|
|
|
886
886
|
import {
|
|
887
887
|
clipMcpToolResult,
|
|
888
888
|
cursorToolErrorText
|
|
889
|
-
} from "./chunk-
|
|
889
|
+
} from "./chunk-AF5K6GQU.js";
|
|
890
890
|
import "./chunk-AXQ4ZWHK.js";
|
|
891
891
|
import {
|
|
892
892
|
AGENT_RUNNER_MAX_OLD_SPACE_MB,
|
|
@@ -940,21 +940,41 @@ import {
|
|
|
940
940
|
AGENT_RPC_PATH,
|
|
941
941
|
AGENT_RPC_PROTOCOL_VERSION,
|
|
942
942
|
AGENT_RPC_TOKEN_QUERY,
|
|
943
|
+
COMPUTER_USE_DESCRIPTION,
|
|
944
|
+
COMPUTER_USE_OFF,
|
|
943
945
|
RPC_INTERNAL_ERROR,
|
|
944
946
|
RPC_INVALID_REQUEST,
|
|
945
947
|
RPC_METHOD_NOT_FOUND,
|
|
946
948
|
RPC_PARSE_ERROR,
|
|
947
949
|
RPC_UNAUTHORIZED,
|
|
948
950
|
agentRpcConnectFromMetadata,
|
|
951
|
+
appleScriptString,
|
|
952
|
+
cgModifierFlags,
|
|
953
|
+
cgScrollWheels,
|
|
949
954
|
clearAgentRuntimeMetadataIfOwned,
|
|
955
|
+
computerUseBridgePath,
|
|
956
|
+
fetchComputerUseScreenshot,
|
|
957
|
+
formatComputerUseHint,
|
|
950
958
|
isJsonRpcRequest,
|
|
959
|
+
macKeyCode,
|
|
960
|
+
macosComputerUseRunner,
|
|
961
|
+
modifierClause,
|
|
962
|
+
modifierKeyCode,
|
|
963
|
+
parseComputerUseInput,
|
|
951
964
|
parseRpcFrame,
|
|
965
|
+
performComputerUse,
|
|
966
|
+
pngPointSize,
|
|
967
|
+
pointGeometry,
|
|
968
|
+
postComputerUseBridge,
|
|
952
969
|
readAgentRuntimeMetadata,
|
|
970
|
+
readComputerUseBridge,
|
|
953
971
|
rpcError,
|
|
954
972
|
rpcNotify,
|
|
955
973
|
rpcResult,
|
|
974
|
+
scrollWheelSwift,
|
|
975
|
+
typeScripts,
|
|
956
976
|
writeAgentRuntimeMetadata
|
|
957
|
-
} from "./chunk-
|
|
977
|
+
} from "./chunk-EAV2ZF5S.js";
|
|
958
978
|
import {
|
|
959
979
|
AGENT_DONE_SOUNDS,
|
|
960
980
|
BAKED_REMOTE_RELAY_URL,
|
|
@@ -1010,6 +1030,7 @@ import {
|
|
|
1010
1030
|
claudeChromeEnabled,
|
|
1011
1031
|
claudeUserSettingsPath,
|
|
1012
1032
|
coerceOrchestratorAgent,
|
|
1033
|
+
computerUseEnabled,
|
|
1013
1034
|
confirmClaudeUsageOverLimitEnabled,
|
|
1014
1035
|
contextTokens,
|
|
1015
1036
|
copyReadAloudFromUnknown,
|
|
@@ -1128,7 +1149,7 @@ import {
|
|
|
1128
1149
|
withTurnScopedCost,
|
|
1129
1150
|
writeSecureJson,
|
|
1130
1151
|
writeViewerContext
|
|
1131
|
-
} from "./chunk-
|
|
1152
|
+
} from "./chunk-TB7SYXXS.js";
|
|
1132
1153
|
import {
|
|
1133
1154
|
writePrivateFile
|
|
1134
1155
|
} from "./chunk-JT7R45JB.js";
|
|
@@ -10256,7 +10277,7 @@ async function startHeadlessHost(opts) {
|
|
|
10256
10277
|
};
|
|
10257
10278
|
const refreshRunning = async () => {
|
|
10258
10279
|
try {
|
|
10259
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
10280
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-UFHS2FOC.js");
|
|
10260
10281
|
agentsRunning = getOrchestrator2().getRuntime().running;
|
|
10261
10282
|
} catch {
|
|
10262
10283
|
agentsRunning = 0;
|
|
@@ -10893,7 +10914,7 @@ function createClippedMcpServer() {
|
|
|
10893
10914
|
}
|
|
10894
10915
|
|
|
10895
10916
|
// src/mcp/server.ts
|
|
10896
|
-
import { z as
|
|
10917
|
+
import { z as z11 } from "zod";
|
|
10897
10918
|
import { randomUUID as randomUUID8 } from "crypto";
|
|
10898
10919
|
import { basename as basename3 } from "path";
|
|
10899
10920
|
|
|
@@ -10911,6 +10932,35 @@ function resolveRunScriptThreadRef(ref) {
|
|
|
10911
10932
|
return thread.id;
|
|
10912
10933
|
}
|
|
10913
10934
|
|
|
10935
|
+
// src/mcp/computer-use-tool.ts
|
|
10936
|
+
import { z } from "zod";
|
|
10937
|
+
function registerComputerUseTool(server, catalog) {
|
|
10938
|
+
if (!catalog.has("computer_use")) return;
|
|
10939
|
+
server.tool(
|
|
10940
|
+
"computer_use",
|
|
10941
|
+
COMPUTER_USE_DESCRIPTION,
|
|
10942
|
+
{
|
|
10943
|
+
action: z.enum(["screenshot", "click", "type", "key", "scroll"]).describe("screenshot, click, type, key, or scroll"),
|
|
10944
|
+
x: z.number().optional().describe("Screen x in points, not PNG pixels, for click and scroll"),
|
|
10945
|
+
y: z.number().optional().describe("Screen y in points, not PNG pixels, for click and scroll"),
|
|
10946
|
+
text: z.string().optional().describe("Text to type"),
|
|
10947
|
+
key: z.string().optional().describe("One key: return, tab, escape, arrows, delete, or one character"),
|
|
10948
|
+
modifiers: z.array(z.string()).optional().describe("command, shift, option, control"),
|
|
10949
|
+
dx: z.number().optional().describe("Horizontal scroll in points. Positive is right"),
|
|
10950
|
+
dy: z.number().optional().describe("Vertical scroll in points. Positive is down")
|
|
10951
|
+
},
|
|
10952
|
+
async (args) => {
|
|
10953
|
+
const result = await performComputerUse({
|
|
10954
|
+
enabled: computerUseEnabled(),
|
|
10955
|
+
cwd: process.cwd(),
|
|
10956
|
+
input: args,
|
|
10957
|
+
runner: macosComputerUseRunner
|
|
10958
|
+
});
|
|
10959
|
+
return mcpJson(result);
|
|
10960
|
+
}
|
|
10961
|
+
);
|
|
10962
|
+
}
|
|
10963
|
+
|
|
10914
10964
|
// src/mcp/create-thread-agent.ts
|
|
10915
10965
|
function resolveOrchCreateThreadOptions(input) {
|
|
10916
10966
|
const { resolveNewThreadOptions: resolveNewThreadOptions2 } = input;
|
|
@@ -11103,10 +11153,10 @@ function childThreadRefs(parentId, threads) {
|
|
|
11103
11153
|
}
|
|
11104
11154
|
|
|
11105
11155
|
// src/mcp/abletime-tools.ts
|
|
11106
|
-
import { z as
|
|
11156
|
+
import { z as z3 } from "zod";
|
|
11107
11157
|
|
|
11108
11158
|
// src/mcp/issue-payload.ts
|
|
11109
|
-
import { z } from "zod";
|
|
11159
|
+
import { z as z2 } from "zod";
|
|
11110
11160
|
|
|
11111
11161
|
// src/mcp/smart-crush.ts
|
|
11112
11162
|
var MUST_KEEP_TEXT_RE = /\b(error|exception|failed|failure|fatal|critical|panic|traceback|npm err|assert)\b/i;
|
|
@@ -11351,7 +11401,7 @@ function crushMarkdown(text6, opts) {
|
|
|
11351
11401
|
|
|
11352
11402
|
// src/mcp/issue-payload.ts
|
|
11353
11403
|
var MCP_ISSUE_INCLUDE_VALUES = ["default", "full"];
|
|
11354
|
-
var mcpIssueIncludeSchema =
|
|
11404
|
+
var mcpIssueIncludeSchema = z2.enum(MCP_ISSUE_INCLUDE_VALUES).optional().describe(
|
|
11355
11405
|
"default applies SmartCrusher-style crush (dedup + budget; small unique tickets pass through). full returns the uncompressed vendor payload. Re-call with include=full if crush.truncated."
|
|
11356
11406
|
);
|
|
11357
11407
|
var MCP_ISSUE_CRUSH_HINT = "Pass include=full to re-fetch the uncompressed ticket from the vendor.";
|
|
@@ -11497,7 +11547,7 @@ function registerAbleTimeTools(server) {
|
|
|
11497
11547
|
server.tool(
|
|
11498
11548
|
"abletime_list_tasks",
|
|
11499
11549
|
"List open AbleTime tasks (excludes done/archived). Optional projectId filter. Pass updatedSince for tasks updated since then and any comments on that page.",
|
|
11500
|
-
{ projectId:
|
|
11550
|
+
{ projectId: z3.string().optional(), updatedSince: mcpIssueUpdatedSinceSchema },
|
|
11501
11551
|
async ({ projectId, updatedSince }) => {
|
|
11502
11552
|
try {
|
|
11503
11553
|
const tasks = await listAbleTimeTasks({ projectId });
|
|
@@ -11510,7 +11560,7 @@ function registerAbleTimeTools(server) {
|
|
|
11510
11560
|
server.tool(
|
|
11511
11561
|
"abletime_search_tasks",
|
|
11512
11562
|
"Search AbleTime tasks by text, reference, or tag. Pass updatedSince for tasks updated since then and any comments on that page.",
|
|
11513
|
-
{ query:
|
|
11563
|
+
{ query: z3.string(), updatedSince: mcpIssueUpdatedSinceSchema },
|
|
11514
11564
|
async ({ query, updatedSince }) => {
|
|
11515
11565
|
try {
|
|
11516
11566
|
const tasks = await searchAbleTimeTasks(query);
|
|
@@ -11523,7 +11573,7 @@ function registerAbleTimeTools(server) {
|
|
|
11523
11573
|
server.tool(
|
|
11524
11574
|
"abletime_get_task",
|
|
11525
11575
|
"Get one AbleTime task by id or reference (e.g. CRM-232): description, state, project, comments, attachments. Re-fetch to read new comments. Default crushes redundant comments and huge pasted bodies (SmartCrusher-style; small unique tickets pass through). Pass include=full for the uncompressed vendor payload. To save a file, call abletime_download_attachment with the attachment id or url (writes `.context/attachments/`; do not dump bytes into the tool result).",
|
|
11526
|
-
{ id:
|
|
11576
|
+
{ id: z3.string(), include: mcpIssueIncludeSchema },
|
|
11527
11577
|
async ({ id, include }) => {
|
|
11528
11578
|
try {
|
|
11529
11579
|
return text(formatAbleTimeTaskPayload(await getAbleTimeTask(id), include));
|
|
@@ -11536,9 +11586,9 @@ function registerAbleTimeTools(server) {
|
|
|
11536
11586
|
"abletime_download_attachment",
|
|
11537
11587
|
"Download an AbleTime task file into `.context/attachments/` using Account AbleTime auth. Pass the attachment id or URL from abletime_get_task. Returns the worktree-relative path \u2014 Read that file; do not dump bytes into chat.",
|
|
11538
11588
|
{
|
|
11539
|
-
id:
|
|
11540
|
-
name:
|
|
11541
|
-
repoPath:
|
|
11589
|
+
id: z3.string().describe("Attachment id or URL from abletime_get_task."),
|
|
11590
|
+
name: z3.string().optional().describe("Optional filename override."),
|
|
11591
|
+
repoPath: z3.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).")
|
|
11542
11592
|
},
|
|
11543
11593
|
async ({ id, name, repoPath }) => {
|
|
11544
11594
|
try {
|
|
@@ -11551,7 +11601,7 @@ function registerAbleTimeTools(server) {
|
|
|
11551
11601
|
server.tool(
|
|
11552
11602
|
"abletime_comment",
|
|
11553
11603
|
"Add a markdown comment on an AbleTime task (id or CRM-232). When reviewing a PR or ticket, show the draft in chat and wait until they type a next step \u2014 do not ask_user after the review. The author sees this immediately.",
|
|
11554
|
-
{ id:
|
|
11604
|
+
{ id: z3.string(), body: z3.string() },
|
|
11555
11605
|
async (args) => {
|
|
11556
11606
|
try {
|
|
11557
11607
|
return text(await commentAbleTimeTask(args));
|
|
@@ -11560,23 +11610,23 @@ function registerAbleTimeTools(server) {
|
|
|
11560
11610
|
}
|
|
11561
11611
|
}
|
|
11562
11612
|
);
|
|
11563
|
-
const relationInputSchema =
|
|
11564
|
-
type:
|
|
11565
|
-
issue:
|
|
11613
|
+
const relationInputSchema = z3.object({
|
|
11614
|
+
type: z3.string().describe("blockedBy (this waits on issue) or blocks (issue waits on this)."),
|
|
11615
|
+
issue: z3.string().describe("Related task id or reference (CRM-232).")
|
|
11566
11616
|
});
|
|
11567
11617
|
server.tool(
|
|
11568
11618
|
"abletime_update_task",
|
|
11569
11619
|
'Update an AbleTime task (id or CRM-232). Pass title, description, state, labels, project, parent, and/or relations. labels replaces tags. project is name or id (tasks stay in a project). parent is CRM-232 or "none". relations sets the wait-on dependency (blockedBy/blocks); removeRelations clears it. When reviewing a PR or ticket, wait until they type a next step before changing the task \u2014 do not ask_user after the review. The author is notified.',
|
|
11570
11620
|
{
|
|
11571
|
-
id:
|
|
11572
|
-
title:
|
|
11573
|
-
description:
|
|
11574
|
-
state:
|
|
11575
|
-
labels:
|
|
11576
|
-
project:
|
|
11577
|
-
parent:
|
|
11578
|
-
relations:
|
|
11579
|
-
removeRelations:
|
|
11621
|
+
id: z3.string(),
|
|
11622
|
+
title: z3.string().optional(),
|
|
11623
|
+
description: z3.string().optional(),
|
|
11624
|
+
state: z3.string().optional(),
|
|
11625
|
+
labels: z3.array(z3.string()).optional().describe("Replace tags/labels. Empty array clears when the host accepts it."),
|
|
11626
|
+
project: z3.string().nullable().optional().describe("Project name or id. AbleTime tasks stay in a project."),
|
|
11627
|
+
parent: z3.string().nullable().optional().describe('Parent task id or reference (CRM-232), or "none" to unset.'),
|
|
11628
|
+
relations: z3.array(relationInputSchema).optional().describe("Set a wait-on dependency: blockedBy or blocks."),
|
|
11629
|
+
removeRelations: z3.array(relationInputSchema).optional().describe("Clear a wait-on dependency.")
|
|
11580
11630
|
},
|
|
11581
11631
|
async (args) => {
|
|
11582
11632
|
try {
|
|
@@ -11595,12 +11645,12 @@ function registerAbleTimeTools(server) {
|
|
|
11595
11645
|
"abletime_create_task",
|
|
11596
11646
|
"Create an AbleTime task in a project. Call abletime_list_projects if you do not have a project id. Pass parent (CRM-232) for a spin-off. New tasks start in todo (or backlog).",
|
|
11597
11647
|
{
|
|
11598
|
-
title:
|
|
11599
|
-
description:
|
|
11600
|
-
projectId:
|
|
11601
|
-
categoryId:
|
|
11602
|
-
state:
|
|
11603
|
-
parent:
|
|
11648
|
+
title: z3.string(),
|
|
11649
|
+
description: z3.string().optional(),
|
|
11650
|
+
projectId: z3.string().optional(),
|
|
11651
|
+
categoryId: z3.string().optional(),
|
|
11652
|
+
state: z3.enum(["backlog", "todo"]).optional(),
|
|
11653
|
+
parent: z3.string().optional().describe("Parent task id or reference (CRM-232) for a spin-off.")
|
|
11604
11654
|
},
|
|
11605
11655
|
async (args) => {
|
|
11606
11656
|
try {
|
|
@@ -11614,10 +11664,10 @@ function registerAbleTimeTools(server) {
|
|
|
11614
11664
|
"abletime_ensure_task",
|
|
11615
11665
|
"Find or create an AbleTime task for this work, then create_workspace with sourceType=ticket.",
|
|
11616
11666
|
{
|
|
11617
|
-
title:
|
|
11618
|
-
description:
|
|
11619
|
-
projectId:
|
|
11620
|
-
categoryId:
|
|
11667
|
+
title: z3.string(),
|
|
11668
|
+
description: z3.string().optional(),
|
|
11669
|
+
projectId: z3.string().optional(),
|
|
11670
|
+
categoryId: z3.string().optional()
|
|
11621
11671
|
},
|
|
11622
11672
|
async (args) => {
|
|
11623
11673
|
try {
|
|
@@ -11631,7 +11681,7 @@ function registerAbleTimeTools(server) {
|
|
|
11631
11681
|
}
|
|
11632
11682
|
|
|
11633
11683
|
// src/mcp/github-tools.ts
|
|
11634
|
-
import { z as
|
|
11684
|
+
import { z as z4 } from "zod";
|
|
11635
11685
|
function text2(payload, isError = false) {
|
|
11636
11686
|
return mcpJson(payload, isError);
|
|
11637
11687
|
}
|
|
@@ -11645,15 +11695,15 @@ async function cursorIssueBlock(repoPath) {
|
|
|
11645
11695
|
const cwd = await resolveRepoRoot((repoPath ?? "").trim() || process.cwd());
|
|
11646
11696
|
return cursorIssuesUnavailableReason(cwd);
|
|
11647
11697
|
}
|
|
11648
|
-
var repoPathSchema =
|
|
11698
|
+
var repoPathSchema = z4.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).");
|
|
11649
11699
|
function registerGithubIssueTools(server) {
|
|
11650
11700
|
server.tool(
|
|
11651
11701
|
"github_search_issues",
|
|
11652
11702
|
"Search or list open GitHub issues in this repo via Account gh. A Cursor origin returns unavailableReason \u2014 Origin has no issue tracker. An Entire origin does the same \u2014 tickets there are Trails (`entire trail`), not GitHub Issues. Default 40; pass query and/or limit (max 250) when truncated. assignee: me, unassigned, all, or a login. Pass updatedSince for new/updated tickets and new comments (e.g. \u201Cany updates since yesterday?\u201D).",
|
|
11653
11703
|
{
|
|
11654
|
-
query:
|
|
11655
|
-
assignee:
|
|
11656
|
-
limit:
|
|
11704
|
+
query: z4.string().optional().describe("Search text (title, body, identifiers). Omit to list by assignee only."),
|
|
11705
|
+
assignee: z4.string().optional().describe("me, unassigned, all, or a GitHub login. Default: all when query is set, otherwise me."),
|
|
11706
|
+
limit: z4.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
11657
11707
|
updatedSince: mcpIssueUpdatedSinceSchema,
|
|
11658
11708
|
repoPath: repoPathSchema
|
|
11659
11709
|
},
|
|
@@ -11716,7 +11766,7 @@ function registerGithubIssueTools(server) {
|
|
|
11716
11766
|
server.tool(
|
|
11717
11767
|
"github_get_issue",
|
|
11718
11768
|
"Get a GitHub issue (#123 or URL): body, comments, state, projects, attachments. Re-fetch to read new comments. projectsError means GitHub refused Projects (usually missing read:project \u2014 run `gh auth refresh -s read:project`). Default crushes redundant comments and huge pasted bodies (SmartCrusher-style; small unique tickets pass through). Pass include=full for the uncompressed vendor payload. Uses Account gh. To save a file, call github_download_attachment with the attachment URL (writes `.context/attachments/`; do not dump bytes into the tool result).",
|
|
11719
|
-
{ id:
|
|
11769
|
+
{ id: z4.string(), include: mcpIssueIncludeSchema, repoPath: repoPathSchema },
|
|
11720
11770
|
async ({ id, include, repoPath }) => {
|
|
11721
11771
|
try {
|
|
11722
11772
|
const blocked = await cursorIssueBlock(repoPath);
|
|
@@ -11731,8 +11781,8 @@ function registerGithubIssueTools(server) {
|
|
|
11731
11781
|
"github_download_attachment",
|
|
11732
11782
|
"Download a GitHub issue file (github.com/user-attachments/\u2026 or githubusercontent.com) into `.context/attachments/` using Account gh. Pass the URL from github_get_issue attachments. Returns the worktree-relative path \u2014 Read that file; do not dump bytes into chat.",
|
|
11733
11783
|
{
|
|
11734
|
-
url:
|
|
11735
|
-
name:
|
|
11784
|
+
url: z4.string().describe("Attachment URL from github_get_issue."),
|
|
11785
|
+
name: z4.string().optional().describe("Optional filename override."),
|
|
11736
11786
|
repoPath: repoPathSchema
|
|
11737
11787
|
},
|
|
11738
11788
|
async ({ url, name, repoPath }) => {
|
|
@@ -11746,7 +11796,7 @@ function registerGithubIssueTools(server) {
|
|
|
11746
11796
|
server.tool(
|
|
11747
11797
|
"github_comment",
|
|
11748
11798
|
"Add a markdown comment on a GitHub issue (#123 or URL). Uses Account gh. When reviewing a PR or ticket, show the draft in chat and wait until they type a next step \u2014 do not ask_user after the review. The author sees this immediately.",
|
|
11749
|
-
{ id:
|
|
11799
|
+
{ id: z4.string(), body: z4.string(), repoPath: repoPathSchema },
|
|
11750
11800
|
async ({ id, body, repoPath }) => {
|
|
11751
11801
|
try {
|
|
11752
11802
|
const blocked = await cursorIssueBlock(repoPath);
|
|
@@ -11757,23 +11807,23 @@ function registerGithubIssueTools(server) {
|
|
|
11757
11807
|
}
|
|
11758
11808
|
}
|
|
11759
11809
|
);
|
|
11760
|
-
const relationInputSchema =
|
|
11761
|
-
type:
|
|
11762
|
-
issue:
|
|
11810
|
+
const relationInputSchema = z4.object({
|
|
11811
|
+
type: z4.string().describe("blocks or blockedBy (this issue's view)."),
|
|
11812
|
+
issue: z4.string().describe("Related issue #123 or URL.")
|
|
11763
11813
|
});
|
|
11764
11814
|
server.tool(
|
|
11765
11815
|
"github_update_issue",
|
|
11766
11816
|
'Update a GitHub issue (#123). Pass title, body, state (open|closed), labels, project, parent, and/or relations. labels replaces all names (pass [] to clear). project is a Project title, or "none" to remove. parent is #123 or "none". relations adds blockedBy/blocks; removeRelations drops them (`gh` 2.94+). When reviewing a PR or ticket, wait until they type a next step before changing the issue \u2014 do not ask_user after the review. The author is notified.',
|
|
11767
11817
|
{
|
|
11768
|
-
id:
|
|
11769
|
-
title:
|
|
11770
|
-
body:
|
|
11771
|
-
state:
|
|
11772
|
-
labels:
|
|
11773
|
-
project:
|
|
11774
|
-
parent:
|
|
11775
|
-
relations:
|
|
11776
|
-
removeRelations:
|
|
11818
|
+
id: z4.string(),
|
|
11819
|
+
title: z4.string().optional(),
|
|
11820
|
+
body: z4.string().optional(),
|
|
11821
|
+
state: z4.string().optional().describe("open or closed"),
|
|
11822
|
+
labels: z4.array(z4.string()).optional().describe("Replace all labels. Empty array clears. Call github_get_issue first to keep existing."),
|
|
11823
|
+
project: z4.string().nullable().optional().describe('GitHub Project title, or "none" to remove current projects.'),
|
|
11824
|
+
parent: z4.string().nullable().optional().describe('Parent issue #123 or URL, or "none" to unset.'),
|
|
11825
|
+
relations: z4.array(relationInputSchema).optional().describe("Add blockedBy or blocks relations (issue #123 or URL)."),
|
|
11826
|
+
removeRelations: z4.array(relationInputSchema).optional().describe("Remove blockedBy or blocks relations."),
|
|
11777
11827
|
repoPath: repoPathSchema
|
|
11778
11828
|
},
|
|
11779
11829
|
async (args) => {
|
|
@@ -11790,9 +11840,9 @@ function registerGithubIssueTools(server) {
|
|
|
11790
11840
|
"github_create_issue",
|
|
11791
11841
|
"Create a GitHub issue. Pass parent (#123) to mark a spin-off in the body.",
|
|
11792
11842
|
{
|
|
11793
|
-
title:
|
|
11794
|
-
body:
|
|
11795
|
-
parent:
|
|
11843
|
+
title: z4.string(),
|
|
11844
|
+
body: z4.string().optional(),
|
|
11845
|
+
parent: z4.string().optional().describe("Parent issue #123 or URL for a spin-off."),
|
|
11796
11846
|
repoPath: repoPathSchema
|
|
11797
11847
|
},
|
|
11798
11848
|
async (args) => {
|
|
@@ -11808,7 +11858,7 @@ function registerGithubIssueTools(server) {
|
|
|
11808
11858
|
}
|
|
11809
11859
|
|
|
11810
11860
|
// src/mcp/linear-tools.ts
|
|
11811
|
-
import { z as
|
|
11861
|
+
import { z as z5 } from "zod";
|
|
11812
11862
|
function text3(payload, isError = false) {
|
|
11813
11863
|
return mcpJson(payload, isError);
|
|
11814
11864
|
}
|
|
@@ -11818,7 +11868,7 @@ function fail3(err) {
|
|
|
11818
11868
|
true
|
|
11819
11869
|
);
|
|
11820
11870
|
}
|
|
11821
|
-
var prioritySchema =
|
|
11871
|
+
var prioritySchema = z5.number().int().min(0).max(4).optional().describe("0 none, 1 urgent, 2 high, 3 medium, 4 low");
|
|
11822
11872
|
function registerLinearTools(server) {
|
|
11823
11873
|
server.tool(
|
|
11824
11874
|
"linear_list_teams",
|
|
@@ -11848,9 +11898,9 @@ function registerLinearTools(server) {
|
|
|
11848
11898
|
"linear_search_issues",
|
|
11849
11899
|
"Search or list open Linear issues. Default 40; pass query and/or limit (max 250) when truncated. assignee: me, unassigned, all (default with query), or a user id/name. Pass updatedSince for new/updated tickets and new comments (e.g. \u201Cany updates since yesterday?\u201D).",
|
|
11850
11900
|
{
|
|
11851
|
-
query:
|
|
11852
|
-
assignee:
|
|
11853
|
-
limit:
|
|
11901
|
+
query: z5.string().optional().describe("Search text (identifier, title, description). Omit to list by assignee only."),
|
|
11902
|
+
assignee: z5.string().optional().describe("me, unassigned, all, a Linear user id, or a display name. Default: all when query is set, otherwise me."),
|
|
11903
|
+
limit: z5.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
11854
11904
|
updatedSince: mcpIssueUpdatedSinceSchema
|
|
11855
11905
|
},
|
|
11856
11906
|
async ({ query, assignee, limit, updatedSince }) => {
|
|
@@ -11890,7 +11940,7 @@ function registerLinearTools(server) {
|
|
|
11890
11940
|
server.tool(
|
|
11891
11941
|
"linear_get_issue",
|
|
11892
11942
|
"Get a Linear issue by uuid or identifier (ENG-123): description, comments, relations, parent/children, project, attachments. Default crushes redundant comments and huge pasted bodies (SmartCrusher-style; small unique tickets pass through). Pass include=full for the uncompressed vendor payload. To save a file, call linear_download_attachment with the attachment id or url (writes `.context/attachments/`; do not dump bytes into the tool result).",
|
|
11893
|
-
{ id:
|
|
11943
|
+
{ id: z5.string(), include: mcpIssueIncludeSchema },
|
|
11894
11944
|
async ({ id, include }) => {
|
|
11895
11945
|
try {
|
|
11896
11946
|
return text3(formatLinearIssuePayload(await getLinearIssue(id), include));
|
|
@@ -11903,9 +11953,9 @@ function registerLinearTools(server) {
|
|
|
11903
11953
|
"linear_download_attachment",
|
|
11904
11954
|
"Download a Linear file attachment into `.context/attachments/` using Account Linear auth. Pass the attachment uuid or uploads.linear.app URL from linear_get_issue. Returns the worktree-relative path \u2014 Read that file; do not dump bytes into chat.",
|
|
11905
11955
|
{
|
|
11906
|
-
id:
|
|
11907
|
-
name:
|
|
11908
|
-
repoPath:
|
|
11956
|
+
id: z5.string().describe("Attachment uuid or upload URL from linear_get_issue."),
|
|
11957
|
+
name: z5.string().optional().describe("Optional filename override."),
|
|
11958
|
+
repoPath: z5.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).")
|
|
11909
11959
|
},
|
|
11910
11960
|
async ({ id, name, repoPath }) => {
|
|
11911
11961
|
try {
|
|
@@ -11919,13 +11969,13 @@ function registerLinearTools(server) {
|
|
|
11919
11969
|
"linear_create_issue",
|
|
11920
11970
|
'Create a Linear issue. Call linear_list_teams first. team is id/key/name; state is name/type/id; assignee is "me" or a user id. Pass parent (ENG-123 or uuid) to nest a spin-off under the current ticket.',
|
|
11921
11971
|
{
|
|
11922
|
-
team:
|
|
11923
|
-
title:
|
|
11924
|
-
description:
|
|
11925
|
-
state:
|
|
11926
|
-
assignee:
|
|
11972
|
+
team: z5.string(),
|
|
11973
|
+
title: z5.string(),
|
|
11974
|
+
description: z5.string().optional(),
|
|
11975
|
+
state: z5.string().optional(),
|
|
11976
|
+
assignee: z5.string().nullable().optional(),
|
|
11927
11977
|
priority: prioritySchema,
|
|
11928
|
-
parent:
|
|
11978
|
+
parent: z5.string().optional().describe("Parent issue uuid or identifier (ENG-123) for a spin-off / sub-issue.")
|
|
11929
11979
|
},
|
|
11930
11980
|
async (args) => {
|
|
11931
11981
|
try {
|
|
@@ -11935,26 +11985,26 @@ function registerLinearTools(server) {
|
|
|
11935
11985
|
}
|
|
11936
11986
|
}
|
|
11937
11987
|
);
|
|
11938
|
-
const relationInputSchema =
|
|
11939
|
-
type:
|
|
11940
|
-
issue:
|
|
11988
|
+
const relationInputSchema = z5.object({
|
|
11989
|
+
type: z5.string().describe("blocks, blockedBy, related, duplicate, or duplicateOf (this issue's view)."),
|
|
11990
|
+
issue: z5.string().describe("Related issue uuid or identifier (ENG-123).")
|
|
11941
11991
|
});
|
|
11942
11992
|
server.tool(
|
|
11943
11993
|
"linear_update_issue",
|
|
11944
11994
|
'Update a Linear issue (uuid or ENG-123). Pass title, description, state, assignee, priority, cycle, labels, project, parent, and/or relations. Cycle/project/parent: name or id, or "none" to clear. labels replaces all names (pass [] to clear; get the issue first to keep existing). relations adds; removeRelations removes by type + issue. When reviewing a PR or ticket, wait until they type a next step before changing the ticket \u2014 do not ask_user after the review. The author is notified.',
|
|
11945
11995
|
{
|
|
11946
|
-
id:
|
|
11947
|
-
title:
|
|
11948
|
-
description:
|
|
11949
|
-
state:
|
|
11950
|
-
assignee:
|
|
11996
|
+
id: z5.string(),
|
|
11997
|
+
title: z5.string().optional(),
|
|
11998
|
+
description: z5.string().optional(),
|
|
11999
|
+
state: z5.string().optional(),
|
|
12000
|
+
assignee: z5.string().nullable().optional(),
|
|
11951
12001
|
priority: prioritySchema,
|
|
11952
|
-
cycle:
|
|
11953
|
-
labels:
|
|
11954
|
-
project:
|
|
11955
|
-
parent:
|
|
11956
|
-
relations:
|
|
11957
|
-
removeRelations:
|
|
12002
|
+
cycle: z5.string().nullable().optional().describe('Cycle name, number, "current"/"active", or "none" to unschedule.'),
|
|
12003
|
+
labels: z5.array(z5.string()).optional().describe("Replace all labels (names or ids). Empty array clears. Call linear_get_issue first to keep existing."),
|
|
12004
|
+
project: z5.string().nullable().optional().describe('Project name, id, slug, or "none" to unassign.'),
|
|
12005
|
+
parent: z5.string().nullable().optional().describe('Parent issue uuid or identifier (ENG-123), or "none" to unset.'),
|
|
12006
|
+
relations: z5.array(relationInputSchema).optional().describe("Add relations from this issue's view (blocks, blockedBy, related, duplicate, duplicateOf)."),
|
|
12007
|
+
removeRelations: z5.array(relationInputSchema).optional().describe("Remove relations by type + related issue (uuid or ENG-123).")
|
|
11958
12008
|
},
|
|
11959
12009
|
async (args) => {
|
|
11960
12010
|
try {
|
|
@@ -11968,8 +12018,8 @@ function registerLinearTools(server) {
|
|
|
11968
12018
|
"linear_comment",
|
|
11969
12019
|
"Add a markdown comment on a Linear issue (uuid or ENG-123). When reviewing a PR or ticket, show the draft in chat and wait until they type a next step \u2014 do not ask_user after the review. The author sees this immediately.",
|
|
11970
12020
|
{
|
|
11971
|
-
id:
|
|
11972
|
-
body:
|
|
12021
|
+
id: z5.string(),
|
|
12022
|
+
body: z5.string()
|
|
11973
12023
|
},
|
|
11974
12024
|
async (args) => {
|
|
11975
12025
|
try {
|
|
@@ -11989,7 +12039,7 @@ function registerConnectedIssueVendorTools(server, settings = loadAppSettings())
|
|
|
11989
12039
|
}
|
|
11990
12040
|
|
|
11991
12041
|
// src/mcp/posthog-tools.ts
|
|
11992
|
-
import { z as
|
|
12042
|
+
import { z as z6 } from "zod";
|
|
11993
12043
|
var POSTHOG_METHODS = ["GET", "POST", "PATCH"];
|
|
11994
12044
|
var POSTHOG_RESPONSE_MAX_CHARS = 256e3;
|
|
11995
12045
|
var POSTHOG_TIMEOUT_MS = 2e4;
|
|
@@ -12123,13 +12173,13 @@ function registerPosthogTools(server) {
|
|
|
12123
12173
|
"posthog_api",
|
|
12124
12174
|
POSTHOG_API_DESCRIPTION,
|
|
12125
12175
|
{
|
|
12126
|
-
method:
|
|
12176
|
+
method: z6.enum(POSTHOG_METHODS).describe(
|
|
12127
12177
|
"GET, POST /api/projects|environments/:id/query/ for a read, or POST/PATCH when the user asked for a change"
|
|
12128
12178
|
),
|
|
12129
|
-
path:
|
|
12130
|
-
query:
|
|
12131
|
-
body:
|
|
12132
|
-
write:
|
|
12179
|
+
path: z6.string().describe("PostHog path starting with /api/, not a full URL"),
|
|
12180
|
+
query: z6.record(z6.string(), z6.string()).optional().describe("Query string parameters"),
|
|
12181
|
+
body: z6.unknown().optional().describe("JSON body for POST or PATCH"),
|
|
12182
|
+
write: z6.boolean().optional().describe(
|
|
12133
12183
|
"Required true for POST and PATCH that change data. Omit for GET and for POST .../query/."
|
|
12134
12184
|
)
|
|
12135
12185
|
},
|
|
@@ -12172,7 +12222,7 @@ function formatMcpPrList(input) {
|
|
|
12172
12222
|
}
|
|
12173
12223
|
|
|
12174
12224
|
// src/mcp/archive-tools.ts
|
|
12175
|
-
import { z as
|
|
12225
|
+
import { z as z7 } from "zod";
|
|
12176
12226
|
|
|
12177
12227
|
// src/mcp/archive-guard.ts
|
|
12178
12228
|
function mcpArchiveBlockedReason(thread) {
|
|
@@ -12188,9 +12238,9 @@ function registerArchiveTools(server, orch) {
|
|
|
12188
12238
|
"list_archive",
|
|
12189
12239
|
"Browse Settings \u2192 History (archived workspaces and agents), newest first. A workspace row is a checkout with no live agents \u2014 it is off Home and list_board. Nested lines are that workspace's agents; any of those ids restores the whole checkout. An agent row is an orchestration chat, or one agent archived while its workspace stayed live (workspace-live). kind=agent lists every archived agent, including agents on an archived workspace (workspace-archived). query matches title, branch, repo, agent, ticket, or PR. limit default 40, max 250. Then restore_workspace (whole checkout) or restore_chat (one agent).",
|
|
12190
12240
|
{
|
|
12191
|
-
query:
|
|
12192
|
-
kind:
|
|
12193
|
-
limit:
|
|
12241
|
+
query: z7.string().optional().describe("Title, branch, repo, agent, ticket, or PR"),
|
|
12242
|
+
kind: z7.enum(["all", "workspace", "agent"]).optional().describe("all (default), workspace, or agent"),
|
|
12243
|
+
limit: z7.number().int().positive().max(250).optional().describe("Page size (default 40, max 250)")
|
|
12194
12244
|
},
|
|
12195
12245
|
async ({ query, kind, limit }) => {
|
|
12196
12246
|
const view = listFleetArchive(orch.getThreads(true), { query, kind, limit });
|
|
@@ -12200,7 +12250,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12200
12250
|
server.tool(
|
|
12201
12251
|
"archive_workspace",
|
|
12202
12252
|
"Archive a workspace: every live agent on that checkout, then remove the worktree when the last agent archives (cowboy keeps the project folder). The Home card moves to Settings \u2192 History. Pass any chat id on the workspace. Orchestration chats are agents \u2014 use archive_chat. To archive one agent and leave the checkout up, use archive_chat.",
|
|
12203
|
-
{ ref:
|
|
12253
|
+
{ ref: z7.string().describe("Any chat id on the workspace") },
|
|
12204
12254
|
async ({ ref }) => {
|
|
12205
12255
|
const thread = orch.getThread(ref);
|
|
12206
12256
|
if (!thread) {
|
|
@@ -12233,7 +12283,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12233
12283
|
server.tool(
|
|
12234
12284
|
"archive_chat",
|
|
12235
12285
|
"Archive one agent chat: stop the turn and move that chat to Settings \u2192 History. Other agents on the workspace stay, and the worktree is removed only when this is the last agent. Uncommitted and untracked files are saved on a hidden git ref and put back uncommitted if that checkout is restored. If that snapshot fails, the checkout stays. History Delete does not keep the snapshot. Orchestration chats archive without removing a project checkout. Refuses the cloud coordinator. To archive every agent on a checkout, use archive_workspace. Commit, push, and open PRs via ask_git before archiving when the work should be kept. Merge only when the user explicitly asked.",
|
|
12236
|
-
{ ref:
|
|
12286
|
+
{ ref: z7.string().describe("Chat id to archive") },
|
|
12237
12287
|
async ({ ref }) => {
|
|
12238
12288
|
const t = orch.getThread(ref);
|
|
12239
12289
|
if (!t) {
|
|
@@ -12259,7 +12309,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12259
12309
|
server.tool(
|
|
12260
12310
|
"restore_workspace",
|
|
12261
12311
|
"Restore a workspace from Settings \u2192 History: recreate the worktree if it was removed and bring every archived agent on that checkout back. Pass any chat id from list_archive. If some agents are still live, only the archived ones return to that checkout. One agent only: restore_chat. Orchestration agents: restore_chat.",
|
|
12262
|
-
{ ref:
|
|
12312
|
+
{ ref: z7.string().describe("Any chat id from list_archive on that workspace") },
|
|
12263
12313
|
async ({ ref }) => {
|
|
12264
12314
|
try {
|
|
12265
12315
|
const restored = await orch.restoreWorkspace(ref);
|
|
@@ -12283,7 +12333,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12283
12333
|
server.tool(
|
|
12284
12334
|
"restore_chat",
|
|
12285
12335
|
"Restore one archived agent from list_archive. Recreates the worktree when that checkout was fully archived and the folder is gone. Other archived agents on the checkout stay in History until restore_workspace or another restore_chat. Orchestration agents come back as Global chats.",
|
|
12286
|
-
{ ref:
|
|
12336
|
+
{ ref: z7.string().describe("Archived chat id from list_archive") },
|
|
12287
12337
|
async ({ ref }) => {
|
|
12288
12338
|
try {
|
|
12289
12339
|
const restored = await orch.restore(ref);
|
|
@@ -12301,7 +12351,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12301
12351
|
}
|
|
12302
12352
|
|
|
12303
12353
|
// src/mcp/schedule-tools.ts
|
|
12304
|
-
import { z as
|
|
12354
|
+
import { z as z8 } from "zod";
|
|
12305
12355
|
function text4(payload, isError = false) {
|
|
12306
12356
|
return mcpJson(payload, isError);
|
|
12307
12357
|
}
|
|
@@ -12402,23 +12452,23 @@ function registerScheduleTools(server) {
|
|
|
12402
12452
|
"create_schedule",
|
|
12403
12453
|
"Create a local automation that, when due, sends a prompt to an existing chat (chatId) or starts a new Global orchestration chat (omit chatId). Pass chatId=self to continue this chat. A job bound to a chat is removed when that chat is archived or gone; it does not start a new Global chat. Omit chatId only for a Global automation that should outlive this chat. Exactly one of at (ISO datetime), every (15m/1h/6h/1d), time (HH:mm, with days such as weekdays or mon,wed), or cron (5-field). Recurring jobs without chatId open a new Global chat each run and archive it when that run finishes unless archiveChat is false (leave the chat open to keep talking, for example a morning start-my-day run). History keeps the last 5 archived chats for that automation, and the schedule keeps the last 10 runs. To schedule a prompt from this chat, call this tool with that prompt (omit chatId for a new Global chat, or chatId=self). Creating or enabling a future job turns on Settings \u2192 Advanced \u2192 Caffeinate while automations are enabled so the Mac stays awake until due. Sideboard.app must be running for the job to fire.",
|
|
12404
12454
|
{
|
|
12405
|
-
prompt:
|
|
12406
|
-
name:
|
|
12407
|
-
at:
|
|
12408
|
-
every:
|
|
12409
|
-
time:
|
|
12410
|
-
days:
|
|
12411
|
-
cron:
|
|
12412
|
-
tz:
|
|
12413
|
-
archiveChat:
|
|
12455
|
+
prompt: z8.string().describe("User message / goal queued when the automation fires"),
|
|
12456
|
+
name: z8.string().optional(),
|
|
12457
|
+
at: z8.string().optional().describe("ISO datetime for a one-shot"),
|
|
12458
|
+
every: z8.string().optional().describe("Interval such as 15m, 1h, 6h, 1d"),
|
|
12459
|
+
time: z8.string().optional().describe("HH:mm (24-hour) clock time. Omit days for every day."),
|
|
12460
|
+
days: z8.string().optional().describe("daily, weekdays, weekends, or days such as mon,wed,fri or mon-fri. Use with time."),
|
|
12461
|
+
cron: z8.string().optional().describe("5-field cron expression"),
|
|
12462
|
+
tz: z8.string().optional().describe("IANA timezone for cron or time (default: system)"),
|
|
12463
|
+
archiveChat: z8.boolean().optional().describe(
|
|
12414
12464
|
"Archive a new Global chat when the run finishes. Default true. Pass false to leave the chat open."
|
|
12415
12465
|
),
|
|
12416
|
-
chatId:
|
|
12466
|
+
chatId: z8.string().optional().describe(
|
|
12417
12467
|
'Existing chat id, or "self" for this chat. That job is removed when the chat is archived. Omit only for a Global automation that should outlive this chat.'
|
|
12418
12468
|
),
|
|
12419
|
-
threadId:
|
|
12420
|
-
agent:
|
|
12421
|
-
model:
|
|
12469
|
+
threadId: z8.string().optional().describe("Legacy alias for chatId."),
|
|
12470
|
+
agent: z8.enum(["claude", "cursor", "codex", "opencode"]).optional().describe("Agent for a new Global chat (omit for Account default)"),
|
|
12471
|
+
model: z8.string().optional()
|
|
12422
12472
|
},
|
|
12423
12473
|
async (args) => {
|
|
12424
12474
|
try {
|
|
@@ -12455,23 +12505,23 @@ function registerScheduleTools(server) {
|
|
|
12455
12505
|
"update_schedule",
|
|
12456
12506
|
"Update a local automation (prompt, cadence, target chat, archiveChat, enabled). Pass id from list_schedules.",
|
|
12457
12507
|
{
|
|
12458
|
-
id:
|
|
12459
|
-
prompt:
|
|
12460
|
-
name:
|
|
12461
|
-
at:
|
|
12462
|
-
every:
|
|
12463
|
-
time:
|
|
12464
|
-
days:
|
|
12465
|
-
cron:
|
|
12466
|
-
tz:
|
|
12467
|
-
archiveChat:
|
|
12468
|
-
chatId:
|
|
12508
|
+
id: z8.string(),
|
|
12509
|
+
prompt: z8.string().optional(),
|
|
12510
|
+
name: z8.string().optional(),
|
|
12511
|
+
at: z8.string().optional(),
|
|
12512
|
+
every: z8.string().optional(),
|
|
12513
|
+
time: z8.string().optional().describe("HH:mm clock time. Use with days, or alone to change the time of a weekly job."),
|
|
12514
|
+
days: z8.string().optional().describe("daily, weekdays, weekends, or mon,wed,fri. Use with time, or alone on an existing weekly job."),
|
|
12515
|
+
cron: z8.string().optional(),
|
|
12516
|
+
tz: z8.string().optional(),
|
|
12517
|
+
archiveChat: z8.boolean().optional().describe("Archive a new Global chat when the run finishes. False leaves it open."),
|
|
12518
|
+
chatId: z8.string().optional().describe(
|
|
12469
12519
|
'Existing chat, "self", or empty string for a Global chat each run. A bound job is removed when that chat is archived.'
|
|
12470
12520
|
),
|
|
12471
|
-
threadId:
|
|
12472
|
-
agent:
|
|
12473
|
-
model:
|
|
12474
|
-
enabled:
|
|
12521
|
+
threadId: z8.string().optional().describe("Legacy alias for chatId."),
|
|
12522
|
+
agent: z8.enum(["claude", "cursor", "codex", "opencode"]).optional(),
|
|
12523
|
+
model: z8.string().optional(),
|
|
12524
|
+
enabled: z8.boolean().optional()
|
|
12475
12525
|
},
|
|
12476
12526
|
async (args) => {
|
|
12477
12527
|
try {
|
|
@@ -12507,7 +12557,7 @@ function registerScheduleTools(server) {
|
|
|
12507
12557
|
server.tool(
|
|
12508
12558
|
"delete_schedule",
|
|
12509
12559
|
"Delete a local automation. Pass id from list_schedules.",
|
|
12510
|
-
{ id:
|
|
12560
|
+
{ id: z8.string() },
|
|
12511
12561
|
async ({ id }) => {
|
|
12512
12562
|
try {
|
|
12513
12563
|
deleteSchedule(id);
|
|
@@ -12520,7 +12570,7 @@ function registerScheduleTools(server) {
|
|
|
12520
12570
|
server.tool(
|
|
12521
12571
|
"run_schedule",
|
|
12522
12572
|
"Fire an automation now (does not wait for nextRunAt). Queues the prompt on the target chat or starts a new Global chat. If Sideboard.app is running, the desktop drains the turn.",
|
|
12523
|
-
{ id:
|
|
12573
|
+
{ id: z8.string() },
|
|
12524
12574
|
async ({ id }) => {
|
|
12525
12575
|
try {
|
|
12526
12576
|
if (!getSchedule(id)) {
|
|
@@ -12536,7 +12586,7 @@ function registerScheduleTools(server) {
|
|
|
12536
12586
|
}
|
|
12537
12587
|
|
|
12538
12588
|
// src/mcp/follow-up-tools.ts
|
|
12539
|
-
import { z as
|
|
12589
|
+
import { z as z9 } from "zod";
|
|
12540
12590
|
function text5(payload, isError = false) {
|
|
12541
12591
|
return mcpJson(payload, isError);
|
|
12542
12592
|
}
|
|
@@ -12570,10 +12620,10 @@ function registerFollowUpTools(server) {
|
|
|
12570
12620
|
"create_follow_up",
|
|
12571
12621
|
"Register a follow-up on THIS chat. kind=ci sends the prompt when GitHub checks on this chat\u2019s PR finish (pass or fail). Checks that are already finished do not send until a later run finishes. A failed checks read does not count as finished or in progress. A CI follow-up that is still pending at deadline (default 7 days) ends silently. kind=at sends at `30m`, `2h`, `1d`, or an ISO time and waits behind a turn that is already running. Cap 10.",
|
|
12572
12622
|
{
|
|
12573
|
-
kind:
|
|
12574
|
-
prompt:
|
|
12575
|
-
at:
|
|
12576
|
-
deadline:
|
|
12623
|
+
kind: z9.enum(["ci", "at"]),
|
|
12624
|
+
prompt: z9.string(),
|
|
12625
|
+
at: z9.string().optional(),
|
|
12626
|
+
deadline: z9.string().optional()
|
|
12577
12627
|
},
|
|
12578
12628
|
async ({ kind, prompt, at, deadline }) => {
|
|
12579
12629
|
const thread = callerThread();
|
|
@@ -12594,7 +12644,7 @@ function registerFollowUpTools(server) {
|
|
|
12594
12644
|
server.tool(
|
|
12595
12645
|
"delete_follow_up",
|
|
12596
12646
|
"Remove one follow-up from this chat by id.",
|
|
12597
|
-
{ id:
|
|
12647
|
+
{ id: z9.string() },
|
|
12598
12648
|
async ({ id }) => {
|
|
12599
12649
|
const thread = callerThread();
|
|
12600
12650
|
if (!thread) return text5({ error: "This chat id is missing" }, true);
|
|
@@ -12608,8 +12658,8 @@ function registerFollowUpTools(server) {
|
|
|
12608
12658
|
}
|
|
12609
12659
|
|
|
12610
12660
|
// src/mcp/order-tools.ts
|
|
12611
|
-
import { z as
|
|
12612
|
-
var kindSchema =
|
|
12661
|
+
import { z as z10 } from "zod";
|
|
12662
|
+
var kindSchema = z10.enum(["pr", "issue", "workspace", "orchestration"]);
|
|
12613
12663
|
function callerThread2() {
|
|
12614
12664
|
const id = process.env[SIDEBOARD_THREAD_ID_ENV]?.trim();
|
|
12615
12665
|
if (!id) return null;
|
|
@@ -12681,16 +12731,16 @@ function registerOrderTools(server) {
|
|
|
12681
12731
|
worktree ? "Change what this checkout waits on. Omit subject to mean this workspace (hold=merge uses this PR; hold=start on a ticket uses this issue). gate=in-main (met when that PR is merged) or in-prod (stays waiting until satisfy_dependency). hold=start means do not begin; hold=merge means do not merge. You cannot set a dependency for a different checkout. show_plan so the user sees the change." : "Record a step on this orchestration plan. waitsOn must reach gate before subject can hold. gate=in-main is met when that PR is merged; gate=in-prod stays waiting until satisfy_dependency. hold=start blocks starting the subject; hold=merge blocks merging it. Example: PR 1 in prod before PR 2 can merge; PR 3 in main before issue 4 can start. Pass repoPath when the same PR number exists in more than one project. Worktree agents set their own checkout and can omit subject. Then show_plan so the user sees it.",
|
|
12682
12732
|
{
|
|
12683
12733
|
waitsOnKind: kindSchema.describe("What must happen first: pr, issue, workspace, or orchestration"),
|
|
12684
|
-
waitsOnRef:
|
|
12685
|
-
waitsOnRepoPath:
|
|
12686
|
-
waitsOnLabel:
|
|
12687
|
-
gate:
|
|
12688
|
-
hold:
|
|
12734
|
+
waitsOnRef: z10.string().describe("PR number (12), issue id (ENG-4), or workspace chat id / worktree path"),
|
|
12735
|
+
waitsOnRepoPath: z10.string().optional().describe("Project path when a PR or issue number is not unique"),
|
|
12736
|
+
waitsOnLabel: z10.string().optional().describe("Short label on the planner"),
|
|
12737
|
+
gate: z10.enum(["in-main", "in-prod"]).describe("in-main: merged to the default branch. in-prod: deployed; mark with satisfy_dependency"),
|
|
12738
|
+
hold: z10.enum(["start", "merge"]).describe("start: subject cannot begin. merge: subject cannot merge"),
|
|
12689
12739
|
subjectKind: kindSchema.optional().describe("What is held. Required from orchestration. Omit on a worktree to mean this checkout."),
|
|
12690
|
-
subjectRef:
|
|
12691
|
-
subjectRepoPath:
|
|
12692
|
-
subjectLabel:
|
|
12693
|
-
note:
|
|
12740
|
+
subjectRef: z10.string().optional().describe("PR number, issue id, or workspace ref for the subject"),
|
|
12741
|
+
subjectRepoPath: z10.string().optional(),
|
|
12742
|
+
subjectLabel: z10.string().optional(),
|
|
12743
|
+
note: z10.string().optional().describe("Why this order matters")
|
|
12694
12744
|
},
|
|
12695
12745
|
async (args) => {
|
|
12696
12746
|
try {
|
|
@@ -12754,9 +12804,9 @@ function registerOrderTools(server) {
|
|
|
12754
12804
|
"set_plan",
|
|
12755
12805
|
"Draft or retitle this chat's plan. It stays draft until execute_plan. Pass goal for the outcome the steps are trying to reach. Then set_dependency for each gate. A step may loop back to an earlier one. Call show_plan so the user sees it. Do not paste the diagram in chat. Do not start workspaces while it is draft.",
|
|
12756
12806
|
{
|
|
12757
|
-
title:
|
|
12758
|
-
summary:
|
|
12759
|
-
goal:
|
|
12807
|
+
title: z10.string().describe("Short name for the plan"),
|
|
12808
|
+
summary: z10.string().optional().describe("What this order is for, in a sentence or two"),
|
|
12809
|
+
goal: z10.string().optional().describe("Outcome the steps are trying to reach")
|
|
12760
12810
|
},
|
|
12761
12811
|
async ({ title, summary, goal }) => {
|
|
12762
12812
|
try {
|
|
@@ -12776,7 +12826,7 @@ function registerOrderTools(server) {
|
|
|
12776
12826
|
"execute_plan",
|
|
12777
12827
|
"Mark the plan active after the user has seen it and told you to run it. Returns start (open or continue these, including the first step others wait on), waiting (hold=start is still unmet; leave them alone), and mergeHeld (work may proceed; do not merge). Does not create workspaces. Pass agreed: true only after they agree. Merge only if they asked.",
|
|
12778
12828
|
{
|
|
12779
|
-
agreed:
|
|
12829
|
+
agreed: z10.literal(true).describe("True only after the user has seen the plan and told you to run it")
|
|
12780
12830
|
},
|
|
12781
12831
|
async () => {
|
|
12782
12832
|
try {
|
|
@@ -12846,7 +12896,7 @@ function registerOrderTools(server) {
|
|
|
12846
12896
|
server.tool(
|
|
12847
12897
|
"clear_dependency",
|
|
12848
12898
|
worktree ? "Remove a planner step this checkout is part of. Pass id from list_order. Then show_plan so the user sees it." : "Remove one planner step. Pass id from list_order. Then show_plan so the user sees it.",
|
|
12849
|
-
{ id:
|
|
12899
|
+
{ id: z10.string().describe("Step id from list_order") },
|
|
12850
12900
|
async ({ id }) => {
|
|
12851
12901
|
try {
|
|
12852
12902
|
const caller = callerThread2();
|
|
@@ -12865,8 +12915,8 @@ function registerOrderTools(server) {
|
|
|
12865
12915
|
"satisfy_dependency",
|
|
12866
12916
|
"Mark a planner gate met. Use this when a PR is in production \u2014 Sideboard cannot see deploys. in-main also clears on its own once that PR is merged. Pass satisfied=false to undo a manual mark. One mark covers every step waiting on that same gate.",
|
|
12867
12917
|
{
|
|
12868
|
-
id:
|
|
12869
|
-
satisfied:
|
|
12918
|
+
id: z10.string().describe("Step id from list_order"),
|
|
12919
|
+
satisfied: z10.boolean().optional().describe("false clears the manual mark. Default true.")
|
|
12870
12920
|
},
|
|
12871
12921
|
async ({ id, satisfied }) => {
|
|
12872
12922
|
try {
|
|
@@ -13063,7 +13113,7 @@ async function handleJobStop(params, _ctx) {
|
|
|
13063
13113
|
return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
|
|
13064
13114
|
}
|
|
13065
13115
|
async function defaultTurnWait(ref, timeoutMs) {
|
|
13066
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
13116
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-UFHS2FOC.js");
|
|
13067
13117
|
const orch = getOrchestrator2();
|
|
13068
13118
|
const thread = await orch.waitForTurn(ref, timeoutMs, {
|
|
13069
13119
|
resolveIfStillRunning: true
|
|
@@ -13114,10 +13164,21 @@ async function handleTurnWait(params, ctx, waitFn = defaultTurnWait) {
|
|
|
13114
13164
|
failureClass: null
|
|
13115
13165
|
};
|
|
13116
13166
|
}
|
|
13167
|
+
async function handleComputerAct(params, ctx) {
|
|
13168
|
+
const rec = asRecord3(params);
|
|
13169
|
+
const cwd = str3(rec.cwd).trim() || ctx.cwd;
|
|
13170
|
+
return performComputerUse({
|
|
13171
|
+
enabled: computerUseEnabled(),
|
|
13172
|
+
cwd,
|
|
13173
|
+
input: rec,
|
|
13174
|
+
runner: macosComputerUseRunner
|
|
13175
|
+
});
|
|
13176
|
+
}
|
|
13117
13177
|
function createAgentRpcDispatcher() {
|
|
13118
13178
|
return {
|
|
13119
13179
|
"runtime.ping": handleRuntimePing,
|
|
13120
13180
|
"ui.presentArtifact": handlePresentArtifact,
|
|
13181
|
+
"computer.act": handleComputerAct,
|
|
13121
13182
|
"job.wait": handleJobWait,
|
|
13122
13183
|
"job.stop": handleJobStop,
|
|
13123
13184
|
"turn.wait": handleTurnWait,
|
|
@@ -13417,7 +13478,7 @@ async function startMcpServer() {
|
|
|
13417
13478
|
);
|
|
13418
13479
|
}
|
|
13419
13480
|
try {
|
|
13420
|
-
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-
|
|
13481
|
+
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-GM4MJD2E.js");
|
|
13421
13482
|
orch.setMaxConcurrent(maxConcurrentAgents2());
|
|
13422
13483
|
} catch {
|
|
13423
13484
|
}
|
|
@@ -13501,16 +13562,16 @@ async function startMcpServer() {
|
|
|
13501
13562
|
"list_board",
|
|
13502
13563
|
"Home Kanban of workspaces (New, Draft, Review, Approved, Merged) \u2014 one card per checkout; sibling chats on that card are separate agents. Same cards as desktop Home. Path to merge: no PR \u2192 draft PR \u2192 open PR \u2192 approved \u2192 merged. Archive removes the card to Settings \u2192 History (list_archive to browse, restore_workspace to bring it back). Queued/running are activity on the card, not stages. Orchestration chats are not on the board. Filters: query, repoPath, kind (ticket/PR/branch source), ownership (mine = your PRs / WIP; reviewing = someone else's PR), column, limit (default 40). create_workspace adds a workspace (and a Home card), or returns the live checkout if that ticket/PR/named branch is already checked out. That reuse is one checkout, not one agent \u2014 fork_chat to add another.",
|
|
13503
13564
|
{
|
|
13504
|
-
query:
|
|
13505
|
-
repoPath:
|
|
13506
|
-
kind:
|
|
13507
|
-
ownership:
|
|
13565
|
+
query: z11.string().optional().describe("Case-insensitive token search across title, id, labels, workspace tags, repo"),
|
|
13566
|
+
repoPath: z11.string().optional().describe("Limit to one project path from list_projects"),
|
|
13567
|
+
kind: z11.enum(["all", "tickets", "prs", "branches", "threads"]).optional().describe("Filter by worktree source (default all)"),
|
|
13568
|
+
ownership: z11.enum(["all", "mine", "reviewing"]).optional().describe(
|
|
13508
13569
|
"Mine = PRs you authored or local WIP; reviewing = someone else's PR. Uses the gh login."
|
|
13509
13570
|
),
|
|
13510
|
-
column:
|
|
13571
|
+
column: z11.enum(["new", "draft", "review", "approved", "done", "needs_you"]).optional().describe(
|
|
13511
13572
|
"Return cards for this column only (totals still include the rest). approved is an open PR GitHub has approved. needs_you is a legacy alias for new."
|
|
13512
13573
|
),
|
|
13513
|
-
limit:
|
|
13574
|
+
limit: z11.number().int().positive().optional().describe("Max cards per column (default 40). hidden counts the remainder.")
|
|
13514
13575
|
},
|
|
13515
13576
|
async ({ query, repoPath, kind, ownership, column, limit }) => {
|
|
13516
13577
|
const workspaces = orch.listWorkspaces();
|
|
@@ -13540,7 +13601,7 @@ async function startMcpServer() {
|
|
|
13540
13601
|
server.tool(
|
|
13541
13602
|
"get_chat",
|
|
13542
13603
|
"Get a compact chat summary by id/ref. Includes last message preview, parentChatId, and child workspace chats (status + lastText). While running, includes progress (last tool/thinking) and lastActivityAt. Includes usage (billed token + costUsd totals when providers reported cost) and lastTurnUsage. blockedReason is why that agent is waiting on a person (question, plan approval, or a reported block).",
|
|
13543
|
-
{ ref:
|
|
13604
|
+
{ ref: z11.string() },
|
|
13544
13605
|
async ({ ref }) => {
|
|
13545
13606
|
const t = orch.getThread(ref);
|
|
13546
13607
|
if (!t) {
|
|
@@ -13587,17 +13648,17 @@ async function startMcpServer() {
|
|
|
13587
13648
|
"present_artifact",
|
|
13588
13649
|
"Show a document or live log in Sideboard\u2019s side column. For html/svg/markdown/react, pass the FULL document and do not also fence that same body in chat. For type=log, pass only NEW lines (same artifact_id appends). Prefer type=log for long-running job output \u2014 do not resend HTML. type=react is a single default-export component (JSX/TSX); only react/react-dom imports.",
|
|
13589
13650
|
{
|
|
13590
|
-
title:
|
|
13591
|
-
type:
|
|
13651
|
+
title: z11.string().describe("Short title shown in the artifact pane header"),
|
|
13652
|
+
type: z11.enum(["html", "svg", "markdown", "react", "log"]).describe(
|
|
13592
13653
|
"html/svg/markdown/react replace the pane. log appends content to the same artifact_id (new lines only)."
|
|
13593
13654
|
),
|
|
13594
|
-
content:
|
|
13655
|
+
content: z11.string().describe(
|
|
13595
13656
|
"html/svg/markdown/react: full document. log: only the new lines since the last call (empty is ok for a status-only update)."
|
|
13596
13657
|
),
|
|
13597
|
-
artifact_id:
|
|
13598
|
-
status:
|
|
13599
|
-
phase:
|
|
13600
|
-
mode:
|
|
13658
|
+
artifact_id: z11.string().optional().describe("Stable id. Required for type=log so later calls append to the same pane."),
|
|
13659
|
+
status: z11.enum(["running", "ok", "failed", "idle"]).optional().describe("Log header pill: running (working), ok (done), failed, idle"),
|
|
13660
|
+
phase: z11.string().optional().describe("Log subtitle (Signing, Notarizing, \u2026)"),
|
|
13661
|
+
mode: z11.enum(["append", "replace"]).optional().describe("log only: append (default) or replace the buffer")
|
|
13601
13662
|
},
|
|
13602
13663
|
async ({ title, type, artifact_id, status, phase, mode }) => {
|
|
13603
13664
|
return mcpJson(
|
|
@@ -13610,15 +13671,15 @@ async function startMcpServer() {
|
|
|
13610
13671
|
"ask_user",
|
|
13611
13672
|
"Ask the user a clarifying multiple-choice question in Sideboard\u2019s composer. Call only when work is blocked on choosing among a few concrete options (approach fork, which API, auth vs cookies). Do not call for greetings, check-ins, \u201Chello\u201D, open-ended how-can-I-help, or to invent a menu of possible next tasks \u2014 reply in chat instead. If one option is the obvious default, proceed without asking. Before calling, write a short chat message explaining the decision and what each option means. Include a description on every option. After calling, stop and wait for answers. Not for \u201Cis the plan ready?\u201D.",
|
|
13612
13673
|
{
|
|
13613
|
-
questions:
|
|
13614
|
-
|
|
13615
|
-
question:
|
|
13616
|
-
header:
|
|
13617
|
-
multiSelect:
|
|
13618
|
-
options:
|
|
13619
|
-
|
|
13620
|
-
label:
|
|
13621
|
-
description:
|
|
13674
|
+
questions: z11.array(
|
|
13675
|
+
z11.object({
|
|
13676
|
+
question: z11.string().describe("Full question text ending with ?"),
|
|
13677
|
+
header: z11.string().max(24).optional().describe("Short label shown above the question"),
|
|
13678
|
+
multiSelect: z11.boolean().optional().describe("Allow selecting multiple options"),
|
|
13679
|
+
options: z11.array(
|
|
13680
|
+
z11.object({
|
|
13681
|
+
label: z11.string(),
|
|
13682
|
+
description: z11.string().optional().describe("What this option means / when to choose it (strongly preferred)")
|
|
13622
13683
|
})
|
|
13623
13684
|
).min(2).max(6).describe("2\u20136 choices (Sideboard also offers Other)")
|
|
13624
13685
|
})
|
|
@@ -13644,9 +13705,9 @@ async function startMcpServer() {
|
|
|
13644
13705
|
"present_plan",
|
|
13645
13706
|
PRESENT_PLAN_TOOL_DESCRIPTION,
|
|
13646
13707
|
{
|
|
13647
|
-
title:
|
|
13648
|
-
content:
|
|
13649
|
-
thread_id:
|
|
13708
|
+
title: z11.string().optional().describe("Short plan title (defaults to Plan)"),
|
|
13709
|
+
content: z11.string().min(1).describe("Full plan markdown (headings, steps, risks, open questions)"),
|
|
13710
|
+
thread_id: z11.string().optional().describe("Sideboard thread id when cwd is not the worktree")
|
|
13650
13711
|
},
|
|
13651
13712
|
async ({ title, content, thread_id }) => {
|
|
13652
13713
|
const { writePlanFile: writePlanFile2 } = await import("./plan-file-7MMIPV7Y.js");
|
|
@@ -13675,15 +13736,15 @@ async function startMcpServer() {
|
|
|
13675
13736
|
"present_schema",
|
|
13676
13737
|
"Open Sideboard\u2019s schema-driven side column (filterable table and/or form) when the user needs to filter, edit, publish, or persist records. Do not call this just to re-display rows you already wrote as a markdown table. If the user asks for an editable / interactive table, call this even if chat already showed those rows. Pass JSON Schema + optional schemaUi. Prefer datasource=inline with embedded resource/records. Use datasource=brightsy with resource_id only when the user is logged into Brightsy.",
|
|
13677
13738
|
{
|
|
13678
|
-
title:
|
|
13679
|
-
mode:
|
|
13680
|
-
datasource:
|
|
13681
|
-
resource_id:
|
|
13682
|
-
record_id:
|
|
13683
|
-
resource:
|
|
13684
|
-
record:
|
|
13685
|
-
records:
|
|
13686
|
-
pane_id:
|
|
13739
|
+
title: z11.string().describe("Pane title"),
|
|
13740
|
+
mode: z11.enum(["table", "form"]).optional().describe("table = list/filter records; form = edit one record"),
|
|
13741
|
+
datasource: z11.enum(["brightsy", "inline"]).optional().describe("brightsy resolves via login; inline uses embedded resource/records"),
|
|
13742
|
+
resource_id: z11.string().optional().describe("Brightsy record type UUID (or generic resource id)"),
|
|
13743
|
+
record_id: z11.string().optional().describe("Record id when opening form mode"),
|
|
13744
|
+
resource: z11.record(z11.unknown()).optional().describe("Inline { id, title, schema, schemaUi?, slug? }"),
|
|
13745
|
+
record: z11.record(z11.unknown()).optional().describe("Inline record { id, data, published_at? }"),
|
|
13746
|
+
records: z11.array(z11.record(z11.unknown())).optional().describe("Inline records for table mode"),
|
|
13747
|
+
pane_id: z11.string().optional().describe("Stable pane id across updates")
|
|
13687
13748
|
},
|
|
13688
13749
|
async (args) => {
|
|
13689
13750
|
const id = args.pane_id?.trim() || `schema_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -13704,10 +13765,10 @@ async function startMcpServer() {
|
|
|
13704
13765
|
"present_files",
|
|
13705
13766
|
"Open Sideboard\u2019s Files column (CMS-style file manager: browse, upload, pick). Use datasource=brightsy when the user is logged into Brightsy account storage; datasource=memory for a session-local demo store. Prefer this over claiming a file manager UI is unavailable. Pair with present_schema when editing records that need media.",
|
|
13706
13767
|
{
|
|
13707
|
-
title:
|
|
13708
|
-
datasource:
|
|
13709
|
-
path:
|
|
13710
|
-
pane_id:
|
|
13768
|
+
title: z11.string().optional().describe("Pane title (default: Files)"),
|
|
13769
|
+
datasource: z11.enum(["brightsy", "memory"]).optional().describe("brightsy = account storage via login; memory = session demo store"),
|
|
13770
|
+
path: z11.string().optional().describe("Initial folder path (e.g. public)"),
|
|
13771
|
+
pane_id: z11.string().optional().describe("Stable pane id across updates")
|
|
13711
13772
|
},
|
|
13712
13773
|
async (args) => {
|
|
13713
13774
|
const id = args.pane_id?.trim() || `files_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -13727,8 +13788,8 @@ async function startMcpServer() {
|
|
|
13727
13788
|
"wait_for_job",
|
|
13728
13789
|
"Wait on a detached long job (tests, pack, deploy, connector CLI) started with detached-job.cjs. MCP clients kill tools around 60s, so this returns within 45s. Sideboard opens a type=log pane from this result (artifact_id = job id, content = delta). stillRunning is the source of truth \u2014 if true, call wait_for_job again. If the job is hanging, producing no useful output, or doing the wrong thing, call stop_job instead of looping forever. Do not end the turn or tell the user you will let them know later. If false, ok/failed is the result.",
|
|
13729
13790
|
{
|
|
13730
|
-
id:
|
|
13731
|
-
timeoutMs:
|
|
13791
|
+
id: z11.string().describe("Detached job id (same kebab-case id passed to detached-job.cjs start)"),
|
|
13792
|
+
timeoutMs: z11.number().optional()
|
|
13732
13793
|
},
|
|
13733
13794
|
async ({ id, timeoutMs }) => {
|
|
13734
13795
|
const result = await waitForDetachedJob(process.cwd(), id, {
|
|
@@ -13741,8 +13802,8 @@ async function startMcpServer() {
|
|
|
13741
13802
|
"stop_job",
|
|
13742
13803
|
"Stop a detached job you started with detached-job.cjs when it is hanging, producing no useful output, buffering forever, or doing the wrong thing (wrong project, infinite watch, huge dump). Do not stop a pack/test/deploy that is clearly making progress. The type=log pane updates to status=failed with the last delta. Then decide the next step.",
|
|
13743
13804
|
{
|
|
13744
|
-
id:
|
|
13745
|
-
reason:
|
|
13805
|
+
id: z11.string().describe("Detached job id (same kebab-case id passed to detached-job.cjs start)"),
|
|
13806
|
+
reason: z11.string().optional().describe("Why you are stopping (hanging, no progress, wrong output, already have the answer)")
|
|
13746
13807
|
},
|
|
13747
13808
|
async ({ id, reason }) => {
|
|
13748
13809
|
const result = await stopDetachedJob(process.cwd(), id, { reason });
|
|
@@ -13754,7 +13815,7 @@ async function startMcpServer() {
|
|
|
13754
13815
|
"list_run_scripts",
|
|
13755
13816
|
"List .sideboard/.conductor run scripts for this thread (same menu as the desktop Dev button) and which are active. Each script and active run includes preview: url (open http://localhost:<SIDEBOARD_PORT>) or window (Electron: native window is the app; url is renderer/HMR only). Never guess :3000. Worktree turns may omit ref (uses cwd).",
|
|
13756
13817
|
{
|
|
13757
|
-
ref:
|
|
13818
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd).")
|
|
13758
13819
|
},
|
|
13759
13820
|
async ({ ref }) => {
|
|
13760
13821
|
try {
|
|
@@ -13784,8 +13845,8 @@ async function startMcpServer() {
|
|
|
13784
13845
|
"run_dev_script",
|
|
13785
13846
|
"Start a .sideboard/.conductor run script (same as the desktop Dev / play button). Several named scripts can run at once; each gets its own port, and starting one does not stop the others. Logs and Stop appear in the thread UI \u2014 do not detached-job or shell-spawn the same command. Returns {port, ports, url, preview}. preview=url \u2192 open url (browser, curl, Playwright). preview=window \u2192 Electron: the native window is the app; url is renderer/HMR only (no preload/IPC in a browser). The port is allocated SIDEBOARD_PORT, not 3000. Worktree turns may omit ref (uses cwd). Omit name for the default script.",
|
|
13786
13847
|
{
|
|
13787
|
-
ref:
|
|
13788
|
-
name:
|
|
13848
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13849
|
+
name: z11.string().optional().describe("Script name from list_run_scripts (default script if omitted).")
|
|
13789
13850
|
},
|
|
13790
13851
|
async ({ ref, name }) => {
|
|
13791
13852
|
try {
|
|
@@ -13813,8 +13874,8 @@ async function startMcpServer() {
|
|
|
13813
13874
|
"stop_dev_script",
|
|
13814
13875
|
"Stop a run script started with run_dev_script or the desktop Dev button (same as UI Stop). Omit name to stop all scripts on this worktree. Worktree turns may omit ref (uses cwd).",
|
|
13815
13876
|
{
|
|
13816
|
-
ref:
|
|
13817
|
-
name:
|
|
13877
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13878
|
+
name: z11.string().optional().describe("Script name to stop; omit to stop all active scripts.")
|
|
13818
13879
|
},
|
|
13819
13880
|
async ({ ref, name }) => {
|
|
13820
13881
|
try {
|
|
@@ -13831,9 +13892,9 @@ async function startMcpServer() {
|
|
|
13831
13892
|
"get_run_log",
|
|
13832
13893
|
"Read the Run-tab terminal for a worktree script (same stdout/stderr as the desktop Dev pane). Default is a tail \u2014 raise `tail` only if the error is missing. Worktree turns may omit ref (uses cwd). Omit name for the default script.",
|
|
13833
13894
|
{
|
|
13834
|
-
ref:
|
|
13835
|
-
name:
|
|
13836
|
-
tail:
|
|
13895
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13896
|
+
name: z11.string().optional().describe("Script name from list_run_scripts (default script if omitted)."),
|
|
13897
|
+
tail: z11.number().int().min(1).max(MAX_RUN_LOG_CHARS).optional().describe(
|
|
13837
13898
|
`Max characters to return from the end (default ${DEFAULT_RUN_LOG_TAIL_CHARS}). Do not request the full buffer unless the tail is truncated and you still need more.`
|
|
13838
13899
|
)
|
|
13839
13900
|
},
|
|
@@ -13866,6 +13927,7 @@ async function startMcpServer() {
|
|
|
13866
13927
|
}
|
|
13867
13928
|
}
|
|
13868
13929
|
);
|
|
13930
|
+
registerComputerUseTool(server, mcpCatalog);
|
|
13869
13931
|
if (worktreeProfile) {
|
|
13870
13932
|
server.tool(
|
|
13871
13933
|
"get_orchestrator",
|
|
@@ -13896,8 +13958,8 @@ async function startMcpServer() {
|
|
|
13896
13958
|
"notify_orchestrator",
|
|
13897
13959
|
"Wake the parent Global orchestrator with a short status so it does not have to poll wait_for_turn. Use when you are blocked and the parent may have moved on (missing access, waiting on something the coordinator must handle). The message is shown on the sidebar and board until the next user message in this chat. ask_user already notifies for input-required \u2014 do not call this for the same question. Information only: never a git command. Do not use this to steer other worktrees.",
|
|
13898
13960
|
{
|
|
13899
|
-
message:
|
|
13900
|
-
reason:
|
|
13961
|
+
message: z11.string().min(1).max(1500).describe("Why you are blocked / what the parent should know (short)."),
|
|
13962
|
+
reason: z11.enum(["input-required", "blocked"]).optional().describe(
|
|
13901
13963
|
"input-required = waiting on the user in this chat; blocked = need the coordinator (default)."
|
|
13902
13964
|
)
|
|
13903
13965
|
},
|
|
@@ -13936,11 +13998,11 @@ async function startMcpServer() {
|
|
|
13936
13998
|
"set_workspace_tags",
|
|
13937
13999
|
worktreeProfile ? "Update tags on this workspace (the checkout you are in). Omit ref to use this chat. mode=replace (default), add, or remove. Short labels \u2014 the same ones the orchestrator used for this task. You cannot retag a different checkout." : "Label a project workspace so related checkouts stay recognizable in the sidebar and on the phone. Pass any chat id on that workspace. Use the same tags on every workspace from one task. mode=replace is the default; add and remove change the set. create_workspace tags= sets them at create time. Not for orchestration chats.",
|
|
13938
14000
|
{
|
|
13939
|
-
ref:
|
|
14001
|
+
ref: z11.string().optional().describe(
|
|
13940
14002
|
worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace to label."
|
|
13941
14003
|
),
|
|
13942
|
-
tags:
|
|
13943
|
-
mode:
|
|
14004
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).describe("Labels to set. A string may be comma-separated."),
|
|
14005
|
+
mode: z11.enum(["replace", "add", "remove"]).optional()
|
|
13944
14006
|
},
|
|
13945
14007
|
async ({ ref, tags, mode }) => {
|
|
13946
14008
|
try {
|
|
@@ -13968,10 +14030,10 @@ async function startMcpServer() {
|
|
|
13968
14030
|
"set_wake_on_github_edges",
|
|
13969
14031
|
worktreeProfile ? "Opt this checkout into orchestrator wakes when CI starts failing or GitHub requests a review. Omit ref. Only works after Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is on. Do not change that Advanced switch." : "Opt a project workspace into CI and review-request wakes. Pass any chat id on that checkout. Only works after Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is already on. Do not change that Advanced switch. Not for orchestration chats.",
|
|
13970
14032
|
{
|
|
13971
|
-
ref:
|
|
14033
|
+
ref: z11.string().optional().describe(
|
|
13972
14034
|
worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace."
|
|
13973
14035
|
),
|
|
13974
|
-
enabled:
|
|
14036
|
+
enabled: z11.boolean().describe("True opts the checkout in. False turns it off.")
|
|
13975
14037
|
},
|
|
13976
14038
|
async ({ ref, enabled }) => {
|
|
13977
14039
|
try {
|
|
@@ -13997,14 +14059,14 @@ async function startMcpServer() {
|
|
|
13997
14059
|
if (!worktreeProfile) {
|
|
13998
14060
|
registerConnectedIssueVendorTools(server);
|
|
13999
14061
|
const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-ZNUEZGHB.js");
|
|
14000
|
-
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-
|
|
14062
|
+
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-GM4MJD2E.js");
|
|
14001
14063
|
const accountDefaults = resolveThreadDefaults2();
|
|
14002
14064
|
const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
|
|
14003
14065
|
server.tool(
|
|
14004
14066
|
"set_caffeinate",
|
|
14005
14067
|
"Keep this Mac awake with caffeinate across turns \u2014 independent of Settings toggles. A connected phone already holds caffeinate (lid can close on power), so do not turn this on just because they are on the phone. Turn ON when the user will be away and no phone is connected, or they ask you to keep the machine awake. Turn OFF when they say they are done, wrapping up, going to sleep, or no longer need the Mac awake. Closing or archiving this orchestration chat also releases the hold. macOS only.",
|
|
14006
14068
|
{
|
|
14007
|
-
enabled:
|
|
14069
|
+
enabled: z11.boolean().describe("true = hold caffeinate on; false = release and let the Mac sleep")
|
|
14008
14070
|
},
|
|
14009
14071
|
async ({ enabled }) => {
|
|
14010
14072
|
const threadId = process.env.SIDEBOARD_ORCHESTRATOR_THREAD_ID?.trim() || null;
|
|
@@ -14030,25 +14092,25 @@ async function startMcpServer() {
|
|
|
14030
14092
|
"create_workspace",
|
|
14031
14093
|
`Create a workspace (isolated git checkout + first chat) from branch, pr, or ticket. A ticket, PR, or named branch has one checkout \u2014 if one already matches, returns it (alreadyStarted=true) instead of a second checkout. That is not one agent: chats lists every agent on that checkout. Add another with fork_chat; send_to_chat only the chat that should do this job. Creating from the default branch still opens a new isolated checkout. Pass repoPath from list_projects. cowboy=true uses the project folder on the default branch (no isolated worktree; land is commit+push). From an orchestration chat, omit parentChatId (Sideboard binds the child to this chat) or pass the exact id from the turn reminder \u2014 never invent a uuid. Omit agent/model \u2014 Sideboard applies ${accountDefaultsHint}. Do not pass your own agent or agent=cursor; those are ignored. Setup (settings.toml, .cursor/worktrees.json, or script/setup) runs in the background in parallel with the first turn (skipped for cowboy). Pass the same tags on every workspace you open for one task (short labels such as "phone-sync") so they still match in the sidebar the next day. Reusing a checkout adds those tags. Each orchestration chat can create at most the Settings \u2192 Advanced \u201CMax orchestration threads\u201D cap of child workspaces (default 5). fork_chat on an existing checkout does not use a slot.`,
|
|
14032
14094
|
{
|
|
14033
|
-
sourceType:
|
|
14034
|
-
sourceRef:
|
|
14035
|
-
agent:
|
|
14095
|
+
sourceType: z11.enum(["branch", "pr", "ticket"]),
|
|
14096
|
+
sourceRef: z11.string(),
|
|
14097
|
+
agent: z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]).optional().describe(
|
|
14036
14098
|
`Usually omit. Sideboard uses Account default agent (${accountDefaults.agent}). Passing your own agent or cursor is ignored. Pass agent=acp and acpHarness=gemini or copilot for Gemini CLI or Copilot CLI.`
|
|
14037
14099
|
),
|
|
14038
|
-
acpHarness:
|
|
14039
|
-
model:
|
|
14100
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini (Gemini CLI) or copilot (GitHub Copilot CLI)."),
|
|
14101
|
+
model: z11.string().nullable().optional().describe(
|
|
14040
14102
|
`Usually omit to use Account default model (${accountDefaults.model?.trim() || "Auto"}). Pass null only to force Auto / agent-default.`
|
|
14041
14103
|
),
|
|
14042
|
-
repoPath:
|
|
14043
|
-
title:
|
|
14044
|
-
cowboy:
|
|
14104
|
+
repoPath: z11.string(),
|
|
14105
|
+
title: z11.string().optional(),
|
|
14106
|
+
cowboy: z11.boolean().optional().describe(
|
|
14045
14107
|
"If true, work in the project folder on the default branch (no thread/* worktree). Requires Settings \u2192 Advanced \u2192 Cowboy mode. Land is commit+push to that branch. Archive does not delete the folder."
|
|
14046
14108
|
),
|
|
14047
|
-
parentChatId:
|
|
14109
|
+
parentChatId: z11.string().optional().describe(
|
|
14048
14110
|
"Orchestration: omit (preferred) or pass YOUR chat id from the turn reminder / AGENTS.md. Do not invent uuids."
|
|
14049
14111
|
),
|
|
14050
|
-
parentThreadId:
|
|
14051
|
-
tags:
|
|
14112
|
+
parentThreadId: z11.string().optional().describe("Legacy alias for parentChatId."),
|
|
14113
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).optional().describe(
|
|
14052
14114
|
"Short labels for this workspace (or a comma-separated string). Use the same tags on every checkout for one task. Added when the checkout already exists."
|
|
14053
14115
|
)
|
|
14054
14116
|
},
|
|
@@ -14064,11 +14126,11 @@ async function startMcpServer() {
|
|
|
14064
14126
|
"start_board_card",
|
|
14065
14127
|
"Same as create_workspace for a ticket, PR, or named branch (attaches issue text when Sideboard can resolve it). Does not create a second checkout when one already matches \u2014 returns that workspace (alreadyStarted) and its chats. A workspace can have many agents. fork_chat to add one; send_to_chat only the chat that should do this job.",
|
|
14066
14128
|
{
|
|
14067
|
-
kind:
|
|
14068
|
-
ref:
|
|
14069
|
-
repoPath:
|
|
14070
|
-
title:
|
|
14071
|
-
tags:
|
|
14129
|
+
kind: z11.enum(["ticket", "pr", "branch"]),
|
|
14130
|
+
ref: z11.string().describe("Ticket identifier (ENG-12), PR number (44), or branch name from list_board"),
|
|
14131
|
+
repoPath: z11.string().describe("Project path from list_projects / list_board"),
|
|
14132
|
+
title: z11.string().optional(),
|
|
14133
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).optional().describe(
|
|
14072
14134
|
"Short labels for this workspace. Same tags on every checkout for one task. Added when the checkout already exists."
|
|
14073
14135
|
)
|
|
14074
14136
|
},
|
|
@@ -14173,9 +14235,9 @@ async function startMcpServer() {
|
|
|
14173
14235
|
"send_to_chat",
|
|
14174
14236
|
'Send a prompt to a workspace chat. A second send joins that prompt only while it is still queued or not yet handed to the process. Once the process has started, the send waits behind the turn and does not stop it or change the prompt already running. force_stop=true kills the in-flight turn and clears the queue before this prompt \u2014 only when the current request is wrong and must be replaced. The workspace composer still follows Settings \u2192 Follow-up. Use after create_workspace to start or continue a conversation. For commit/push/PR, prefer ask_git (canonical desktop-button phrases). Send "Merge PR." / ask_git merge only when the user explicitly asked to merge. Do not send_to_chat to check in, resume after a halt notice, or because wait_for_turn returned stillRunning. Call wait_for_turn again instead.',
|
|
14175
14237
|
{
|
|
14176
|
-
ref:
|
|
14177
|
-
prompt:
|
|
14178
|
-
force_stop:
|
|
14238
|
+
ref: z11.string(),
|
|
14239
|
+
prompt: z11.string(),
|
|
14240
|
+
force_stop: z11.boolean().optional()
|
|
14179
14241
|
},
|
|
14180
14242
|
async ({ ref, prompt, force_stop }) => {
|
|
14181
14243
|
if (force_stop) {
|
|
@@ -14200,8 +14262,8 @@ async function startMcpServer() {
|
|
|
14200
14262
|
"wait_for_turn",
|
|
14201
14263
|
"Wait until the chat finishes its current/queued turn, or return early with a live progress snapshot. MCP clients often kill tools around 60s, so this returns within 45s even while the child is still working. taskState is the A2A-style lifecycle: submitted (queued, not started), working, input-required (ask_user), completed, failed, canceled. stillRunning is true only for submitted/working. blockedReason is why the child is waiting on a person (the question, plan approval, or a reported block) \u2014 read it and do not send_to_chat a check-in. If stillRunning, text and usage are empty (they would be the previous turn) \u2014 read progress and call wait_for_turn again. Do not send_to_chat a check-in. On failed, read failureClass: auth, quota, and refused are not a retry; timeout or runner can be one. lastError/text is the failure. On canceled, the child did not finish \u2014 resume with send_to_chat or tell the user. On input-required, wait for the user in that chat. When finished, text is this turn\u2019s assistant reply and usage is that turn\u2019s tokens + costUsd (this turn, not the Claude session total; sessionCostUsd is the provider session total when present).",
|
|
14202
14264
|
{
|
|
14203
|
-
ref:
|
|
14204
|
-
timeoutMs:
|
|
14265
|
+
ref: z11.string(),
|
|
14266
|
+
timeoutMs: z11.number().optional()
|
|
14205
14267
|
},
|
|
14206
14268
|
async ({ ref, timeoutMs }) => {
|
|
14207
14269
|
const thread = await orch.waitForTurn(ref, mcpWaitForTurnTimeoutMs(timeoutMs), {
|
|
@@ -14229,7 +14291,7 @@ async function startMcpServer() {
|
|
|
14229
14291
|
server.tool(
|
|
14230
14292
|
"get_turn_result",
|
|
14231
14293
|
"Assistant message and last-turn usage when the turn finished. While stillRunning (submitted/working), text and usage are empty so a previous reply cannot be mistaken for this turn \u2014 use progress for tools/thinking. Not the full transcript. Includes taskState (A2A lifecycle), failureClass when the turn failed (auth, quota, refused, timeout, runner, other), and blockedReason (why the agent is waiting on a person).",
|
|
14232
|
-
{ ref:
|
|
14294
|
+
{ ref: z11.string() },
|
|
14233
14295
|
async ({ ref }) => {
|
|
14234
14296
|
const result = orch.getTurnResult(ref);
|
|
14235
14297
|
const failureClass = result.taskState === "failed" && result.status !== "broken" ? classifyTurnFailure(result.lastError || result.text) : null;
|
|
@@ -14247,9 +14309,9 @@ async function startMcpServer() {
|
|
|
14247
14309
|
"stop_chat",
|
|
14248
14310
|
"Force-stop a thread: kill any in-flight agent turn AND clear queued prompts so drainQueue cannot continue. Does not archive the worktree. Optional force defaults to true. Pass reason \u2014 a short note on why this chat is stopping. It is stored on the thread and kept when the turn unwinds. If you omit it, Sideboard still records that the queue was cleared.",
|
|
14249
14311
|
{
|
|
14250
|
-
ref:
|
|
14251
|
-
force:
|
|
14252
|
-
reason:
|
|
14312
|
+
ref: z11.string(),
|
|
14313
|
+
force: z11.boolean().optional(),
|
|
14314
|
+
reason: z11.string().optional().describe("Why this chat is stopping. Stored on the thread for the next session.")
|
|
14253
14315
|
},
|
|
14254
14316
|
async ({ ref, force, reason }) => {
|
|
14255
14317
|
const t = orch.getThread(ref);
|
|
@@ -14275,8 +14337,8 @@ async function startMcpServer() {
|
|
|
14275
14337
|
"get_diff",
|
|
14276
14338
|
"Compact diff summary (capped hunks, paginated)",
|
|
14277
14339
|
{
|
|
14278
|
-
ref:
|
|
14279
|
-
maxFiles:
|
|
14340
|
+
ref: z11.string(),
|
|
14341
|
+
maxFiles: z11.number().optional()
|
|
14280
14342
|
},
|
|
14281
14343
|
async ({ ref, maxFiles }) => {
|
|
14282
14344
|
const summary = await orch.diffSummary(ref);
|
|
@@ -14289,7 +14351,7 @@ async function startMcpServer() {
|
|
|
14289
14351
|
server.tool(
|
|
14290
14352
|
"get_pr_checks",
|
|
14291
14353
|
"Snapshot of GitHub PR checks for a worktree thread (`gh pr checks` plus merge/review gates). null = no PR. If the user gave a goal (Greptile 5/5, CI green), the worktree agent watches with `gh pr checks --watch` via /long-running \u2014 this tool is a snapshot, not a waiter. Coordinators: do not run gh from the orchestration cwd.",
|
|
14292
|
-
{ ref:
|
|
14354
|
+
{ ref: z11.string().describe("Worktree thread id/ref") },
|
|
14293
14355
|
async ({ ref }) => {
|
|
14294
14356
|
try {
|
|
14295
14357
|
const checks = await orch.getPrChecks(ref);
|
|
@@ -14303,7 +14365,7 @@ async function startMcpServer() {
|
|
|
14303
14365
|
server.tool(
|
|
14304
14366
|
"request_review",
|
|
14305
14367
|
'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.',
|
|
14306
|
-
{ ref:
|
|
14368
|
+
{ ref: z11.string().describe("Worktree thread id/ref to review") },
|
|
14307
14369
|
async ({ ref }) => {
|
|
14308
14370
|
try {
|
|
14309
14371
|
const tab = await orch.requestReview(ref);
|
|
@@ -14325,8 +14387,8 @@ async function startMcpServer() {
|
|
|
14325
14387
|
"ask_git",
|
|
14326
14388
|
"Commit & push, open a draft PR, mark ready for review, resolve conflicts, or merge \u2014 same prompts as the desktop git buttons (including Resolve). Always steers the worktree agent; does not push or open the PR locally. Then wait_for_turn (loop while stillRunning). Do not start a checks loop on a plain push \u2014 only if the user gave a goal (CI green, a review score, until checks pass). A push can wake a third-party PR review; the worktree agent acknowledges it only inside that goal. Pass a worktree thread ref (not the orchestrator). action=ready-for-review and action=merge only when the user explicitly asked (or clicked the desktop button). Do not run git or gh from the orchestration cwd.",
|
|
14327
14389
|
{
|
|
14328
|
-
ref:
|
|
14329
|
-
action:
|
|
14390
|
+
ref: z11.string().describe("Worktree thread id/ref"),
|
|
14391
|
+
action: z11.enum(AGENT_GIT_ACTIONS).describe(
|
|
14330
14392
|
"commit-push | create-draft | create-web | resolve-conflicts | ready-for-review | merge"
|
|
14331
14393
|
)
|
|
14332
14394
|
},
|
|
@@ -14355,7 +14417,7 @@ async function startMcpServer() {
|
|
|
14355
14417
|
}
|
|
14356
14418
|
}
|
|
14357
14419
|
);
|
|
14358
|
-
const agentEnum =
|
|
14420
|
+
const agentEnum = z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]);
|
|
14359
14421
|
server.tool(
|
|
14360
14422
|
"list_models",
|
|
14361
14423
|
"List models for an agent. Prefer Auto: do not call this unless you have a reason to pin a specific model (user request, cost/latency, capability). Omit agent to list all.",
|
|
@@ -14376,12 +14438,12 @@ async function startMcpServer() {
|
|
|
14376
14438
|
"fork_workspace",
|
|
14377
14439
|
"Fork a worktree agent chat into a NEW git worktree + chat (desktop \u201CFork to new workspace\u201D). Seeds a transcript (through through_index, default all). Optional agent override. Leave model unset for Auto (default) \u2014 only pass model when you have a reason. Not for the orchestrator. Then send_to_chat / wait_for_turn (loop while stillRunning) on the returned id.",
|
|
14378
14440
|
{
|
|
14379
|
-
ref:
|
|
14380
|
-
through_index:
|
|
14441
|
+
ref: z11.string().describe("Worktree thread id/ref to fork"),
|
|
14442
|
+
through_index: z11.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
|
|
14381
14443
|
agent: agentEnum.optional().describe("Agent for the forked chat (default: same as source)"),
|
|
14382
|
-
acpHarness:
|
|
14383
|
-
model:
|
|
14384
|
-
title:
|
|
14444
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
|
|
14445
|
+
model: z11.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
|
|
14446
|
+
title: z11.string().optional()
|
|
14385
14447
|
},
|
|
14386
14448
|
async ({ ref, through_index, agent, model, title, acpHarness }) => {
|
|
14387
14449
|
try {
|
|
@@ -14416,12 +14478,12 @@ async function startMcpServer() {
|
|
|
14416
14478
|
"fork_chat",
|
|
14417
14479
|
"Add another agent chat on the SAME workspace (same files, Run, and git). Also forks a Global orchestration chat into a new orchestration tab. Pass agent when the new chat should use a different harness. Leave model unset for Auto unless you have a reason. Orchestration forks require an MCP-capable agent (claude, cursor, codex, opencode \u2014 not brightsy). Use this for a second agent on a checkout (review, another harness, parallel work on the same branch). Do not create_workspace again for that \u2014 it returns the existing checkout. Then send_to_chat / wait_for_turn (loop while stillRunning) on the returned id. Use fork_workspace only when the work needs its own git checkout.",
|
|
14418
14480
|
{
|
|
14419
|
-
ref:
|
|
14420
|
-
through_index:
|
|
14481
|
+
ref: z11.string().describe("Thread id/ref to fork (worktree agent or orchestration chat)"),
|
|
14482
|
+
through_index: z11.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
|
|
14421
14483
|
agent: agentEnum.optional().describe("Agent for the forked chat (default: same as source). agent=acp with acpHarness=gemini or copilot opens Gemini CLI or Copilot CLI. An orchestration fork cannot use acp."),
|
|
14422
|
-
acpHarness:
|
|
14423
|
-
model:
|
|
14424
|
-
title:
|
|
14484
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
|
|
14485
|
+
model: z11.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
|
|
14486
|
+
title: z11.string().optional()
|
|
14425
14487
|
},
|
|
14426
14488
|
async ({ ref, through_index, agent, model, title, acpHarness }) => {
|
|
14427
14489
|
try {
|
|
@@ -14460,7 +14522,7 @@ async function startMcpServer() {
|
|
|
14460
14522
|
server.tool(
|
|
14461
14523
|
"run_setup",
|
|
14462
14524
|
"Re-run workspace setup (Sideboard/Conductor settings, .cursor/worktrees.json, or script/setup). New worktrees already run this automatically.",
|
|
14463
|
-
{ ref:
|
|
14525
|
+
{ ref: z11.string() },
|
|
14464
14526
|
async ({ ref }) => {
|
|
14465
14527
|
const result = await orch.runSetup(ref);
|
|
14466
14528
|
return mcpJson(result);
|
|
@@ -14469,7 +14531,7 @@ async function startMcpServer() {
|
|
|
14469
14531
|
server.tool(
|
|
14470
14532
|
"add_project",
|
|
14471
14533
|
"Register a git repo as a Sideboard workspace",
|
|
14472
|
-
{ repoPath:
|
|
14534
|
+
{ repoPath: z11.string() },
|
|
14473
14535
|
async ({ repoPath }) => {
|
|
14474
14536
|
const ws = await orch.addWorkspace(repoPath);
|
|
14475
14537
|
return mcpJson(ws);
|
|
@@ -14478,7 +14540,7 @@ async function startMcpServer() {
|
|
|
14478
14540
|
server.tool(
|
|
14479
14541
|
"remove_project",
|
|
14480
14542
|
"Unregister a Sideboard workspace and archive its chats",
|
|
14481
|
-
{ repoPath:
|
|
14543
|
+
{ repoPath: z11.string() },
|
|
14482
14544
|
async ({ repoPath }) => {
|
|
14483
14545
|
await orch.removeWorkspace(repoPath);
|
|
14484
14546
|
return { content: [{ type: "text", text: "ok" }] };
|
|
@@ -14488,12 +14550,12 @@ async function startMcpServer() {
|
|
|
14488
14550
|
"fanout",
|
|
14489
14551
|
"Best-of-n: create one thread per agent with the same prompt (parallel attempts)",
|
|
14490
14552
|
{
|
|
14491
|
-
prompt:
|
|
14492
|
-
agents:
|
|
14493
|
-
repoPath:
|
|
14494
|
-
sourceType:
|
|
14495
|
-
sourceRef:
|
|
14496
|
-
title:
|
|
14553
|
+
prompt: z11.string(),
|
|
14554
|
+
agents: z11.array(z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"])),
|
|
14555
|
+
repoPath: z11.string(),
|
|
14556
|
+
sourceType: z11.enum(["branch", "pr", "ticket"]).optional(),
|
|
14557
|
+
sourceRef: z11.string().optional(),
|
|
14558
|
+
title: z11.string().optional()
|
|
14497
14559
|
},
|
|
14498
14560
|
async (args) => {
|
|
14499
14561
|
const threads = await orch.bestOfN(args);
|
|
@@ -14511,8 +14573,8 @@ async function startMcpServer() {
|
|
|
14511
14573
|
"list_branches",
|
|
14512
14574
|
"List git branches in a registered workspace. Pass repoPath from list_projects (unmerged into the default branch by default \u2014 for create_workspace sourceType=branch).",
|
|
14513
14575
|
{
|
|
14514
|
-
repoPath:
|
|
14515
|
-
unmergedOnly:
|
|
14576
|
+
repoPath: z11.string(),
|
|
14577
|
+
unmergedOnly: z11.boolean().optional()
|
|
14516
14578
|
},
|
|
14517
14579
|
async ({ repoPath, unmergedOnly }) => {
|
|
14518
14580
|
const root = await resolveRepoRoot(repoPath);
|
|
@@ -14533,19 +14595,19 @@ async function startMcpServer() {
|
|
|
14533
14595
|
"list_prs",
|
|
14534
14596
|
`List GitHub PRs for a registered workspace (the review surface for assigned ticket work \u2014 not the tickets). Pass repoPath from list_projects. "Get me N tickets to review" \u2192 queue=review and limit=N: open non-draft PRs labeled with this project's ready-for-review GitHub label (Settings \u2192 Projects; default eng-review) with no individual user reviewer. Prefer teams that match Settings \u2192 Agents / Projects roles for this repo. A team like engineering-team is not a claim (you are on that team). Also: state (open|closed|merged|all|review), label, reviewer (me|unassigned|login), query, limit (default 40, max 250). Then create_workspace with sourceType=pr.`,
|
|
14535
14597
|
{
|
|
14536
|
-
repoPath:
|
|
14537
|
-
query:
|
|
14538
|
-
queue:
|
|
14598
|
+
repoPath: z11.string(),
|
|
14599
|
+
query: z11.string().optional().describe("GitHub search tokens (title, draft:true, \u2026)"),
|
|
14600
|
+
queue: z11.enum(["review", "mine", "approved", "changes"]).optional().describe(
|
|
14539
14601
|
"review = unclaimed ready-for-review inbox (Settings \u2192 Projects label, default eng-review). mine = review-requested:@me. approved / changes = eng-approved / eng-requested-changes."
|
|
14540
14602
|
),
|
|
14541
|
-
state:
|
|
14542
|
-
label:
|
|
14603
|
+
state: z11.enum(["open", "closed", "merged", "all", "review"]).optional().describe("GitHub PR state (default open). review is an alias for queue=review."),
|
|
14604
|
+
label: z11.string().optional().describe(
|
|
14543
14605
|
"GitHub label / workflow tag. Comma-separated AND. Examples: eng-review, eng-approved, eng-requested-changes"
|
|
14544
14606
|
),
|
|
14545
|
-
reviewer:
|
|
14607
|
+
reviewer: z11.string().optional().describe(
|
|
14546
14608
|
"me (review requested of you), unassigned (no individual reviewer; team queues like engineering-team still count), all, or a GitHub login"
|
|
14547
14609
|
),
|
|
14548
|
-
limit:
|
|
14610
|
+
limit: z11.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true.")
|
|
14549
14611
|
},
|
|
14550
14612
|
async ({ repoPath, query, queue, state, label, reviewer, limit }) => {
|
|
14551
14613
|
const root = await resolveRepoRoot(repoPath);
|
|
@@ -14578,7 +14640,7 @@ async function startMcpServer() {
|
|
|
14578
14640
|
server.tool(
|
|
14579
14641
|
"get_pr_stack",
|
|
14580
14642
|
"Load the GitHub PR stack for a thread worktree (`gh stack view --json`). Returns null JSON when the branch is not stacked. Prefer this before ask_git merge on stacked PRs (and only merge when the user explicitly asked).",
|
|
14581
|
-
{ ref:
|
|
14643
|
+
{ ref: z11.string() },
|
|
14582
14644
|
async ({ ref }) => {
|
|
14583
14645
|
const stack = await orch.getPrStack(ref);
|
|
14584
14646
|
return mcpJson(stack);
|
|
@@ -14588,8 +14650,8 @@ async function startMcpServer() {
|
|
|
14588
14650
|
"open_pr_stack_layers",
|
|
14589
14651
|
"Materialize one worktree+thread per stack layer (or a single 1-based layer). Pass a thread ref already on the stack.",
|
|
14590
14652
|
{
|
|
14591
|
-
ref:
|
|
14592
|
-
layer:
|
|
14653
|
+
ref: z11.string(),
|
|
14654
|
+
layer: z11.number().int().positive().optional()
|
|
14593
14655
|
},
|
|
14594
14656
|
async ({ ref, layer }) => {
|
|
14595
14657
|
const result = await orch.openPrStackLayers(ref, { layer });
|
|
@@ -14612,9 +14674,9 @@ async function startMcpServer() {
|
|
|
14612
14674
|
"add_stack_layer",
|
|
14613
14675
|
"Add a branch on top of the current stack (`gh stack add`) and open a worktree+thread for it.",
|
|
14614
14676
|
{
|
|
14615
|
-
ref:
|
|
14616
|
-
branchName:
|
|
14617
|
-
title:
|
|
14677
|
+
ref: z11.string(),
|
|
14678
|
+
branchName: z11.string(),
|
|
14679
|
+
title: z11.string().optional()
|
|
14618
14680
|
},
|
|
14619
14681
|
async ({ ref, branchName, title }) => {
|
|
14620
14682
|
const result = await orch.addStackLayer(ref, branchName, { title });
|
|
@@ -14632,11 +14694,11 @@ async function startMcpServer() {
|
|
|
14632
14694
|
"create_pr_stack",
|
|
14633
14695
|
"Create a new GitHub PR stack with one Sideboard worktree per layer (bottom\u2192top branch names). Requires `gh extension install github/gh-stack`.",
|
|
14634
14696
|
{
|
|
14635
|
-
repoPath:
|
|
14636
|
-
branches:
|
|
14637
|
-
agent:
|
|
14638
|
-
base:
|
|
14639
|
-
title:
|
|
14697
|
+
repoPath: z11.string(),
|
|
14698
|
+
branches: z11.array(z11.string()).min(1),
|
|
14699
|
+
agent: z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]),
|
|
14700
|
+
base: z11.string().optional(),
|
|
14701
|
+
title: z11.string().optional()
|
|
14640
14702
|
},
|
|
14641
14703
|
async (args) => {
|
|
14642
14704
|
const result = await orch.createPrStack({
|
|
@@ -14664,10 +14726,10 @@ async function startMcpServer() {
|
|
|
14664
14726
|
"list_issues",
|
|
14665
14727
|
"List or search issues (Linear, AbleTime, or GitHub; falls back to GitHub). Cursor Origin has no issue tracker \u2014 a Cursor repo returns unavailableReason unless Linear or AbleTime is the source. Entire tickets are Trails (`entire trail`), not GitHub Issues, so an Entire repo does the same unless Linear or AbleTime is the source. Use Settings \u2192 Agents / Projects notes and roles to pick tickets relevant to the viewer (query + assignee=me or unassigned as the notes say). Default 40; pass query and/or limit (max 250) when truncated. assignee: me (Linear default), unassigned, all, or a user id. Pass updatedSince for new/updated tickets and new comments (\u201Cany updates since yesterday?\u201D). Then create_workspace with sourceType=ticket.",
|
|
14666
14728
|
{
|
|
14667
|
-
repoPath:
|
|
14668
|
-
query:
|
|
14669
|
-
assignee:
|
|
14670
|
-
limit:
|
|
14729
|
+
repoPath: z11.string(),
|
|
14730
|
+
query: z11.string().optional().describe("Search title, identifier, or description"),
|
|
14731
|
+
assignee: z11.string().optional().describe("me (Linear default), unassigned, all, a user id, or a GitHub login"),
|
|
14732
|
+
limit: z11.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
14671
14733
|
updatedSince: mcpIssueUpdatedSinceSchema
|
|
14672
14734
|
},
|
|
14673
14735
|
async ({ repoPath, query, assignee, limit, updatedSince }) => {
|
|
@@ -16684,7 +16746,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
16684
16746
|
await continueOnReply(threadId, prompt);
|
|
16685
16747
|
return;
|
|
16686
16748
|
}
|
|
16687
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
16749
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-UFHS2FOC.js");
|
|
16688
16750
|
await getOrchestrator2().send(threadId, prompt);
|
|
16689
16751
|
} catch {
|
|
16690
16752
|
}
|
|
@@ -16995,6 +17057,8 @@ export {
|
|
|
16995
17057
|
CLOUD_COORDINATOR_STOPPED_REPLY,
|
|
16996
17058
|
CLOUD_COORDINATOR_TIMEOUT_REPLY,
|
|
16997
17059
|
CLOUD_ORCHESTRATOR_GOAL,
|
|
17060
|
+
COMPUTER_USE_DESCRIPTION,
|
|
17061
|
+
COMPUTER_USE_OFF,
|
|
16998
17062
|
CONTEXT_COMPACT_CHARS,
|
|
16999
17063
|
CONTEXT_KEEP_RECENT_CHARS,
|
|
17000
17064
|
CONTEXT_KEEP_RECENT_MESSAGES,
|
|
@@ -17156,6 +17220,7 @@ export {
|
|
|
17156
17220
|
appendIndexedGitConfig,
|
|
17157
17221
|
appendMessage,
|
|
17158
17222
|
appendQueuedItem,
|
|
17223
|
+
appleScriptString,
|
|
17159
17224
|
applyAgentEvent,
|
|
17160
17225
|
applyAgentRunnerHeapEnv,
|
|
17161
17226
|
applyAppEnvironment,
|
|
@@ -17221,6 +17286,8 @@ export {
|
|
|
17221
17286
|
canonicalizeRepoPath,
|
|
17222
17287
|
captureLoginEnv,
|
|
17223
17288
|
captureTurnBaseline,
|
|
17289
|
+
cgModifierFlags,
|
|
17290
|
+
cgScrollWheels,
|
|
17224
17291
|
chatLinkUrl,
|
|
17225
17292
|
chatTextScale,
|
|
17226
17293
|
checkoutPrStackLayer,
|
|
@@ -17264,6 +17331,8 @@ export {
|
|
|
17264
17331
|
compactPartsForSummaryMessage,
|
|
17265
17332
|
compactSummaryPart,
|
|
17266
17333
|
computeNextRunAt,
|
|
17334
|
+
computerUseBridgePath,
|
|
17335
|
+
computerUseEnabled,
|
|
17267
17336
|
conductorBundledBinDir,
|
|
17268
17337
|
conductorDbPath,
|
|
17269
17338
|
confirmClaudeUsageOverLimitEnabled,
|
|
@@ -17370,6 +17439,7 @@ export {
|
|
|
17370
17439
|
extractPresentedPlan,
|
|
17371
17440
|
extractiveSummary,
|
|
17372
17441
|
fastForwardMainCheckoutIfSafe,
|
|
17442
|
+
fetchComputerUseScreenshot,
|
|
17373
17443
|
fetchOriginForWorktree,
|
|
17374
17444
|
fetchPrHead,
|
|
17375
17445
|
finalizeParts,
|
|
@@ -17409,6 +17479,7 @@ export {
|
|
|
17409
17479
|
formatClaudeUsageResetClock,
|
|
17410
17480
|
formatClaudeUsageTooltip,
|
|
17411
17481
|
formatCloudTurnReply,
|
|
17482
|
+
formatComputerUseHint,
|
|
17412
17483
|
formatConnectedOrchestratorReminder,
|
|
17413
17484
|
formatCursorGitDirective,
|
|
17414
17485
|
formatDetachedJobInvoke,
|
|
@@ -17725,6 +17796,8 @@ export {
|
|
|
17725
17796
|
looksLikeIncompleteSkillDump,
|
|
17726
17797
|
looksLikeSkillBody,
|
|
17727
17798
|
lookupSoccerTeam,
|
|
17799
|
+
macKeyCode,
|
|
17800
|
+
macosComputerUseRunner,
|
|
17728
17801
|
managedAccountConfigDir,
|
|
17729
17802
|
mapAbleTimeTask,
|
|
17730
17803
|
markPrReady,
|
|
@@ -17753,6 +17826,8 @@ export {
|
|
|
17753
17826
|
messagesSinceLastBrightsyContextSummary,
|
|
17754
17827
|
messagesWithRewrittenUserPrompt,
|
|
17755
17828
|
mirrorHostConfig,
|
|
17829
|
+
modifierClause,
|
|
17830
|
+
modifierKeyCode,
|
|
17756
17831
|
moveQueuedItemToFront,
|
|
17757
17832
|
needsCoordinatorAction,
|
|
17758
17833
|
nextManagedAccount,
|
|
@@ -17802,6 +17877,7 @@ export {
|
|
|
17802
17877
|
parseAbleTimeOAuthCallbackUrl,
|
|
17803
17878
|
parseChatLink,
|
|
17804
17879
|
parseClaudeUsagePayload,
|
|
17880
|
+
parseComputerUseInput,
|
|
17805
17881
|
parseCursorRunnerLine,
|
|
17806
17882
|
parseDevPreview,
|
|
17807
17883
|
parseDurationMs,
|
|
@@ -17826,6 +17902,7 @@ export {
|
|
|
17826
17902
|
patchReadAloudSettings,
|
|
17827
17903
|
pendingInjectedNotices,
|
|
17828
17904
|
pendingSlackExternalReplies,
|
|
17905
|
+
performComputerUse,
|
|
17829
17906
|
permissionMode,
|
|
17830
17907
|
persistPendingFileAttachments,
|
|
17831
17908
|
persistVaultKeyInKeychain,
|
|
@@ -17834,9 +17911,12 @@ export {
|
|
|
17834
17911
|
planHistoryRetention,
|
|
17835
17912
|
planModeTurnInstruction,
|
|
17836
17913
|
planQuestionsSignature,
|
|
17914
|
+
pngPointSize,
|
|
17837
17915
|
pnpmFilterPackage,
|
|
17916
|
+
pointGeometry,
|
|
17838
17917
|
pollSlackOutboundWatches,
|
|
17839
17918
|
posixShellSingleQuote,
|
|
17919
|
+
postComputerUseBridge,
|
|
17840
17920
|
posthogOAuthAuthorizeUrl,
|
|
17841
17921
|
posthogOAuthClientId,
|
|
17842
17922
|
posthogOAuthScopeParam,
|
|
@@ -17850,6 +17930,7 @@ export {
|
|
|
17850
17930
|
pushBranch,
|
|
17851
17931
|
readAgentDoneCustomSound,
|
|
17852
17932
|
readAgentRuntimeMetadata,
|
|
17933
|
+
readComputerUseBridge,
|
|
17853
17934
|
readExistingReviewRequestFile,
|
|
17854
17935
|
readKeychainVaultKey,
|
|
17855
17936
|
readPlanFile,
|
|
@@ -17974,6 +18055,7 @@ export {
|
|
|
17974
18055
|
saveWorktreeRunPorts,
|
|
17975
18056
|
scheduleNeedsCaffeinate,
|
|
17976
18057
|
schedulesPath,
|
|
18058
|
+
scrollWheelSwift,
|
|
17977
18059
|
scrubGithubTokensFromChildEnv,
|
|
17978
18060
|
searchAbleTimeTasks,
|
|
17979
18061
|
secureFileUnlocksWith,
|
|
@@ -18087,6 +18169,7 @@ export {
|
|
|
18087
18169
|
tryReservePorts,
|
|
18088
18170
|
turnCostUsdFromCursorUsage,
|
|
18089
18171
|
turnCostUsdFromProviderSnapshot,
|
|
18172
|
+
typeScripts,
|
|
18090
18173
|
updateAbleTimeTask,
|
|
18091
18174
|
updateAdvancedSettings,
|
|
18092
18175
|
updateAgentExecutable,
|