@sideboard-ai/core 0.1.351 → 0.1.352
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 +46 -19
- package/dist/agents/claude-runner.js +16 -1
- package/dist/agents/cursor-runner.cjs +50 -12
- package/dist/agents/cursor-runner.js +2 -2
- package/dist/{agents-INTH7J3F.js → agents-4DQDWMSX.js} +9 -9
- package/dist/{agents-D5CL4CR4.js → agents-IV454BNN.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-WB3G2LQO.js → chunk-BCNPZ7H2.js} +1 -1
- package/dist/{chunk-BDWVBEKN.js → chunk-CQDJ4RX4.js} +149 -127
- package/dist/{chunk-SMSD6U3N.js → chunk-GA5MLYVG.js} +1 -1
- package/dist/{chunk-HISSQICH.js → chunk-HBRP2SHA.js} +3 -3
- 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-TCEUNSLX.js → chunk-NRGT7RMO.js} +1 -1
- package/dist/{chunk-M45WGODR.js → chunk-OCCUD5CK.js} +2 -2
- package/dist/{chunk-UXAKH4AW.js → chunk-PR5TOSRD.js} +324 -70
- package/dist/{chunk-SUZOPJZC.js → chunk-PS6TD5MQ.js} +260 -2
- 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-AAKQU4UZ.js → chunk-UDTFOKVX.js} +28 -10
- package/dist/{chunk-PXSWVZIL.js → chunk-UPJB6TFI.js} +2 -2
- package/dist/{chunk-7WPQAVS5.js → chunk-US2PGV3X.js} +146 -126
- package/dist/{chunk-YVN7L4KG.js → chunk-V2G6AGWM.js} +6 -1
- 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-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 +1192 -865
- package/dist/index.d.cts +8 -10
- package/dist/index.d.ts +8 -10
- package/dist/index.js +361 -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 +1116 -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-DMEE7CEW.js → orchestrator-5BCHUAFG.js} +11 -11
- package/dist/{orchestrator-MUD4FY7Q.js → orchestrator-EY6GCYQG.js} +12 -12
- 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/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-CQDJ4RX4.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-UDTFOKVX.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-V2G6AGWM.js";
|
|
890
890
|
import "./chunk-AXQ4ZWHK.js";
|
|
891
891
|
import {
|
|
892
892
|
AGENT_RUNNER_MAX_OLD_SPACE_MB,
|
|
@@ -940,6 +940,7 @@ import {
|
|
|
940
940
|
AGENT_RPC_PATH,
|
|
941
941
|
AGENT_RPC_PROTOCOL_VERSION,
|
|
942
942
|
AGENT_RPC_TOKEN_QUERY,
|
|
943
|
+
COMPUTER_USE_DESCRIPTION,
|
|
943
944
|
RPC_INTERNAL_ERROR,
|
|
944
945
|
RPC_INVALID_REQUEST,
|
|
945
946
|
RPC_METHOD_NOT_FOUND,
|
|
@@ -948,13 +949,15 @@ import {
|
|
|
948
949
|
agentRpcConnectFromMetadata,
|
|
949
950
|
clearAgentRuntimeMetadataIfOwned,
|
|
950
951
|
isJsonRpcRequest,
|
|
952
|
+
macosComputerUseRunner,
|
|
951
953
|
parseRpcFrame,
|
|
954
|
+
performComputerUse,
|
|
952
955
|
readAgentRuntimeMetadata,
|
|
953
956
|
rpcError,
|
|
954
957
|
rpcNotify,
|
|
955
958
|
rpcResult,
|
|
956
959
|
writeAgentRuntimeMetadata
|
|
957
|
-
} from "./chunk-
|
|
960
|
+
} from "./chunk-PS6TD5MQ.js";
|
|
958
961
|
import {
|
|
959
962
|
AGENT_DONE_SOUNDS,
|
|
960
963
|
BAKED_REMOTE_RELAY_URL,
|
|
@@ -1010,6 +1013,7 @@ import {
|
|
|
1010
1013
|
claudeChromeEnabled,
|
|
1011
1014
|
claudeUserSettingsPath,
|
|
1012
1015
|
coerceOrchestratorAgent,
|
|
1016
|
+
computerUseEnabled,
|
|
1013
1017
|
confirmClaudeUsageOverLimitEnabled,
|
|
1014
1018
|
contextTokens,
|
|
1015
1019
|
copyReadAloudFromUnknown,
|
|
@@ -1128,7 +1132,7 @@ import {
|
|
|
1128
1132
|
withTurnScopedCost,
|
|
1129
1133
|
writeSecureJson,
|
|
1130
1134
|
writeViewerContext
|
|
1131
|
-
} from "./chunk-
|
|
1135
|
+
} from "./chunk-TB7SYXXS.js";
|
|
1132
1136
|
import {
|
|
1133
1137
|
writePrivateFile
|
|
1134
1138
|
} from "./chunk-JT7R45JB.js";
|
|
@@ -10256,7 +10260,7 @@ async function startHeadlessHost(opts) {
|
|
|
10256
10260
|
};
|
|
10257
10261
|
const refreshRunning = async () => {
|
|
10258
10262
|
try {
|
|
10259
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
10263
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-EY6GCYQG.js");
|
|
10260
10264
|
agentsRunning = getOrchestrator2().getRuntime().running;
|
|
10261
10265
|
} catch {
|
|
10262
10266
|
agentsRunning = 0;
|
|
@@ -10893,7 +10897,7 @@ function createClippedMcpServer() {
|
|
|
10893
10897
|
}
|
|
10894
10898
|
|
|
10895
10899
|
// src/mcp/server.ts
|
|
10896
|
-
import { z as
|
|
10900
|
+
import { z as z11 } from "zod";
|
|
10897
10901
|
import { randomUUID as randomUUID8 } from "crypto";
|
|
10898
10902
|
import { basename as basename3 } from "path";
|
|
10899
10903
|
|
|
@@ -10911,6 +10915,35 @@ function resolveRunScriptThreadRef(ref) {
|
|
|
10911
10915
|
return thread.id;
|
|
10912
10916
|
}
|
|
10913
10917
|
|
|
10918
|
+
// src/mcp/computer-use-tool.ts
|
|
10919
|
+
import { z } from "zod";
|
|
10920
|
+
function registerComputerUseTool(server, catalog) {
|
|
10921
|
+
if (!catalog.has("computer_use")) return;
|
|
10922
|
+
server.tool(
|
|
10923
|
+
"computer_use",
|
|
10924
|
+
COMPUTER_USE_DESCRIPTION,
|
|
10925
|
+
{
|
|
10926
|
+
action: z.enum(["screenshot", "click", "type", "key", "scroll"]).describe("screenshot, click, type, key, or scroll"),
|
|
10927
|
+
x: z.number().optional().describe("Screen x in points, not PNG pixels, for click and scroll"),
|
|
10928
|
+
y: z.number().optional().describe("Screen y in points, not PNG pixels, for click and scroll"),
|
|
10929
|
+
text: z.string().optional().describe("Text to type"),
|
|
10930
|
+
key: z.string().optional().describe("One key: return, tab, escape, arrows, delete, or one character"),
|
|
10931
|
+
modifiers: z.array(z.string()).optional().describe("command, shift, option, control"),
|
|
10932
|
+
dx: z.number().optional().describe("Horizontal scroll in points. Positive is right"),
|
|
10933
|
+
dy: z.number().optional().describe("Vertical scroll in points. Positive is down")
|
|
10934
|
+
},
|
|
10935
|
+
async (args) => {
|
|
10936
|
+
const result = await performComputerUse({
|
|
10937
|
+
enabled: computerUseEnabled(),
|
|
10938
|
+
cwd: process.cwd(),
|
|
10939
|
+
input: args,
|
|
10940
|
+
runner: macosComputerUseRunner
|
|
10941
|
+
});
|
|
10942
|
+
return mcpJson(result);
|
|
10943
|
+
}
|
|
10944
|
+
);
|
|
10945
|
+
}
|
|
10946
|
+
|
|
10914
10947
|
// src/mcp/create-thread-agent.ts
|
|
10915
10948
|
function resolveOrchCreateThreadOptions(input) {
|
|
10916
10949
|
const { resolveNewThreadOptions: resolveNewThreadOptions2 } = input;
|
|
@@ -11103,10 +11136,10 @@ function childThreadRefs(parentId, threads) {
|
|
|
11103
11136
|
}
|
|
11104
11137
|
|
|
11105
11138
|
// src/mcp/abletime-tools.ts
|
|
11106
|
-
import { z as
|
|
11139
|
+
import { z as z3 } from "zod";
|
|
11107
11140
|
|
|
11108
11141
|
// src/mcp/issue-payload.ts
|
|
11109
|
-
import { z } from "zod";
|
|
11142
|
+
import { z as z2 } from "zod";
|
|
11110
11143
|
|
|
11111
11144
|
// src/mcp/smart-crush.ts
|
|
11112
11145
|
var MUST_KEEP_TEXT_RE = /\b(error|exception|failed|failure|fatal|critical|panic|traceback|npm err|assert)\b/i;
|
|
@@ -11351,7 +11384,7 @@ function crushMarkdown(text6, opts) {
|
|
|
11351
11384
|
|
|
11352
11385
|
// src/mcp/issue-payload.ts
|
|
11353
11386
|
var MCP_ISSUE_INCLUDE_VALUES = ["default", "full"];
|
|
11354
|
-
var mcpIssueIncludeSchema =
|
|
11387
|
+
var mcpIssueIncludeSchema = z2.enum(MCP_ISSUE_INCLUDE_VALUES).optional().describe(
|
|
11355
11388
|
"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
11389
|
);
|
|
11357
11390
|
var MCP_ISSUE_CRUSH_HINT = "Pass include=full to re-fetch the uncompressed ticket from the vendor.";
|
|
@@ -11497,7 +11530,7 @@ function registerAbleTimeTools(server) {
|
|
|
11497
11530
|
server.tool(
|
|
11498
11531
|
"abletime_list_tasks",
|
|
11499
11532
|
"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:
|
|
11533
|
+
{ projectId: z3.string().optional(), updatedSince: mcpIssueUpdatedSinceSchema },
|
|
11501
11534
|
async ({ projectId, updatedSince }) => {
|
|
11502
11535
|
try {
|
|
11503
11536
|
const tasks = await listAbleTimeTasks({ projectId });
|
|
@@ -11510,7 +11543,7 @@ function registerAbleTimeTools(server) {
|
|
|
11510
11543
|
server.tool(
|
|
11511
11544
|
"abletime_search_tasks",
|
|
11512
11545
|
"Search AbleTime tasks by text, reference, or tag. Pass updatedSince for tasks updated since then and any comments on that page.",
|
|
11513
|
-
{ query:
|
|
11546
|
+
{ query: z3.string(), updatedSince: mcpIssueUpdatedSinceSchema },
|
|
11514
11547
|
async ({ query, updatedSince }) => {
|
|
11515
11548
|
try {
|
|
11516
11549
|
const tasks = await searchAbleTimeTasks(query);
|
|
@@ -11523,7 +11556,7 @@ function registerAbleTimeTools(server) {
|
|
|
11523
11556
|
server.tool(
|
|
11524
11557
|
"abletime_get_task",
|
|
11525
11558
|
"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:
|
|
11559
|
+
{ id: z3.string(), include: mcpIssueIncludeSchema },
|
|
11527
11560
|
async ({ id, include }) => {
|
|
11528
11561
|
try {
|
|
11529
11562
|
return text(formatAbleTimeTaskPayload(await getAbleTimeTask(id), include));
|
|
@@ -11536,9 +11569,9 @@ function registerAbleTimeTools(server) {
|
|
|
11536
11569
|
"abletime_download_attachment",
|
|
11537
11570
|
"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
11571
|
{
|
|
11539
|
-
id:
|
|
11540
|
-
name:
|
|
11541
|
-
repoPath:
|
|
11572
|
+
id: z3.string().describe("Attachment id or URL from abletime_get_task."),
|
|
11573
|
+
name: z3.string().optional().describe("Optional filename override."),
|
|
11574
|
+
repoPath: z3.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).")
|
|
11542
11575
|
},
|
|
11543
11576
|
async ({ id, name, repoPath }) => {
|
|
11544
11577
|
try {
|
|
@@ -11551,7 +11584,7 @@ function registerAbleTimeTools(server) {
|
|
|
11551
11584
|
server.tool(
|
|
11552
11585
|
"abletime_comment",
|
|
11553
11586
|
"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:
|
|
11587
|
+
{ id: z3.string(), body: z3.string() },
|
|
11555
11588
|
async (args) => {
|
|
11556
11589
|
try {
|
|
11557
11590
|
return text(await commentAbleTimeTask(args));
|
|
@@ -11560,23 +11593,23 @@ function registerAbleTimeTools(server) {
|
|
|
11560
11593
|
}
|
|
11561
11594
|
}
|
|
11562
11595
|
);
|
|
11563
|
-
const relationInputSchema =
|
|
11564
|
-
type:
|
|
11565
|
-
issue:
|
|
11596
|
+
const relationInputSchema = z3.object({
|
|
11597
|
+
type: z3.string().describe("blockedBy (this waits on issue) or blocks (issue waits on this)."),
|
|
11598
|
+
issue: z3.string().describe("Related task id or reference (CRM-232).")
|
|
11566
11599
|
});
|
|
11567
11600
|
server.tool(
|
|
11568
11601
|
"abletime_update_task",
|
|
11569
11602
|
'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
11603
|
{
|
|
11571
|
-
id:
|
|
11572
|
-
title:
|
|
11573
|
-
description:
|
|
11574
|
-
state:
|
|
11575
|
-
labels:
|
|
11576
|
-
project:
|
|
11577
|
-
parent:
|
|
11578
|
-
relations:
|
|
11579
|
-
removeRelations:
|
|
11604
|
+
id: z3.string(),
|
|
11605
|
+
title: z3.string().optional(),
|
|
11606
|
+
description: z3.string().optional(),
|
|
11607
|
+
state: z3.string().optional(),
|
|
11608
|
+
labels: z3.array(z3.string()).optional().describe("Replace tags/labels. Empty array clears when the host accepts it."),
|
|
11609
|
+
project: z3.string().nullable().optional().describe("Project name or id. AbleTime tasks stay in a project."),
|
|
11610
|
+
parent: z3.string().nullable().optional().describe('Parent task id or reference (CRM-232), or "none" to unset.'),
|
|
11611
|
+
relations: z3.array(relationInputSchema).optional().describe("Set a wait-on dependency: blockedBy or blocks."),
|
|
11612
|
+
removeRelations: z3.array(relationInputSchema).optional().describe("Clear a wait-on dependency.")
|
|
11580
11613
|
},
|
|
11581
11614
|
async (args) => {
|
|
11582
11615
|
try {
|
|
@@ -11595,12 +11628,12 @@ function registerAbleTimeTools(server) {
|
|
|
11595
11628
|
"abletime_create_task",
|
|
11596
11629
|
"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
11630
|
{
|
|
11598
|
-
title:
|
|
11599
|
-
description:
|
|
11600
|
-
projectId:
|
|
11601
|
-
categoryId:
|
|
11602
|
-
state:
|
|
11603
|
-
parent:
|
|
11631
|
+
title: z3.string(),
|
|
11632
|
+
description: z3.string().optional(),
|
|
11633
|
+
projectId: z3.string().optional(),
|
|
11634
|
+
categoryId: z3.string().optional(),
|
|
11635
|
+
state: z3.enum(["backlog", "todo"]).optional(),
|
|
11636
|
+
parent: z3.string().optional().describe("Parent task id or reference (CRM-232) for a spin-off.")
|
|
11604
11637
|
},
|
|
11605
11638
|
async (args) => {
|
|
11606
11639
|
try {
|
|
@@ -11614,10 +11647,10 @@ function registerAbleTimeTools(server) {
|
|
|
11614
11647
|
"abletime_ensure_task",
|
|
11615
11648
|
"Find or create an AbleTime task for this work, then create_workspace with sourceType=ticket.",
|
|
11616
11649
|
{
|
|
11617
|
-
title:
|
|
11618
|
-
description:
|
|
11619
|
-
projectId:
|
|
11620
|
-
categoryId:
|
|
11650
|
+
title: z3.string(),
|
|
11651
|
+
description: z3.string().optional(),
|
|
11652
|
+
projectId: z3.string().optional(),
|
|
11653
|
+
categoryId: z3.string().optional()
|
|
11621
11654
|
},
|
|
11622
11655
|
async (args) => {
|
|
11623
11656
|
try {
|
|
@@ -11631,7 +11664,7 @@ function registerAbleTimeTools(server) {
|
|
|
11631
11664
|
}
|
|
11632
11665
|
|
|
11633
11666
|
// src/mcp/github-tools.ts
|
|
11634
|
-
import { z as
|
|
11667
|
+
import { z as z4 } from "zod";
|
|
11635
11668
|
function text2(payload, isError = false) {
|
|
11636
11669
|
return mcpJson(payload, isError);
|
|
11637
11670
|
}
|
|
@@ -11645,15 +11678,15 @@ async function cursorIssueBlock(repoPath) {
|
|
|
11645
11678
|
const cwd = await resolveRepoRoot((repoPath ?? "").trim() || process.cwd());
|
|
11646
11679
|
return cursorIssuesUnavailableReason(cwd);
|
|
11647
11680
|
}
|
|
11648
|
-
var repoPathSchema =
|
|
11681
|
+
var repoPathSchema = z4.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).");
|
|
11649
11682
|
function registerGithubIssueTools(server) {
|
|
11650
11683
|
server.tool(
|
|
11651
11684
|
"github_search_issues",
|
|
11652
11685
|
"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
11686
|
{
|
|
11654
|
-
query:
|
|
11655
|
-
assignee:
|
|
11656
|
-
limit:
|
|
11687
|
+
query: z4.string().optional().describe("Search text (title, body, identifiers). Omit to list by assignee only."),
|
|
11688
|
+
assignee: z4.string().optional().describe("me, unassigned, all, or a GitHub login. Default: all when query is set, otherwise me."),
|
|
11689
|
+
limit: z4.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
11657
11690
|
updatedSince: mcpIssueUpdatedSinceSchema,
|
|
11658
11691
|
repoPath: repoPathSchema
|
|
11659
11692
|
},
|
|
@@ -11716,7 +11749,7 @@ function registerGithubIssueTools(server) {
|
|
|
11716
11749
|
server.tool(
|
|
11717
11750
|
"github_get_issue",
|
|
11718
11751
|
"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:
|
|
11752
|
+
{ id: z4.string(), include: mcpIssueIncludeSchema, repoPath: repoPathSchema },
|
|
11720
11753
|
async ({ id, include, repoPath }) => {
|
|
11721
11754
|
try {
|
|
11722
11755
|
const blocked = await cursorIssueBlock(repoPath);
|
|
@@ -11731,8 +11764,8 @@ function registerGithubIssueTools(server) {
|
|
|
11731
11764
|
"github_download_attachment",
|
|
11732
11765
|
"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
11766
|
{
|
|
11734
|
-
url:
|
|
11735
|
-
name:
|
|
11767
|
+
url: z4.string().describe("Attachment URL from github_get_issue."),
|
|
11768
|
+
name: z4.string().optional().describe("Optional filename override."),
|
|
11736
11769
|
repoPath: repoPathSchema
|
|
11737
11770
|
},
|
|
11738
11771
|
async ({ url, name, repoPath }) => {
|
|
@@ -11746,7 +11779,7 @@ function registerGithubIssueTools(server) {
|
|
|
11746
11779
|
server.tool(
|
|
11747
11780
|
"github_comment",
|
|
11748
11781
|
"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:
|
|
11782
|
+
{ id: z4.string(), body: z4.string(), repoPath: repoPathSchema },
|
|
11750
11783
|
async ({ id, body, repoPath }) => {
|
|
11751
11784
|
try {
|
|
11752
11785
|
const blocked = await cursorIssueBlock(repoPath);
|
|
@@ -11757,23 +11790,23 @@ function registerGithubIssueTools(server) {
|
|
|
11757
11790
|
}
|
|
11758
11791
|
}
|
|
11759
11792
|
);
|
|
11760
|
-
const relationInputSchema =
|
|
11761
|
-
type:
|
|
11762
|
-
issue:
|
|
11793
|
+
const relationInputSchema = z4.object({
|
|
11794
|
+
type: z4.string().describe("blocks or blockedBy (this issue's view)."),
|
|
11795
|
+
issue: z4.string().describe("Related issue #123 or URL.")
|
|
11763
11796
|
});
|
|
11764
11797
|
server.tool(
|
|
11765
11798
|
"github_update_issue",
|
|
11766
11799
|
'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
11800
|
{
|
|
11768
|
-
id:
|
|
11769
|
-
title:
|
|
11770
|
-
body:
|
|
11771
|
-
state:
|
|
11772
|
-
labels:
|
|
11773
|
-
project:
|
|
11774
|
-
parent:
|
|
11775
|
-
relations:
|
|
11776
|
-
removeRelations:
|
|
11801
|
+
id: z4.string(),
|
|
11802
|
+
title: z4.string().optional(),
|
|
11803
|
+
body: z4.string().optional(),
|
|
11804
|
+
state: z4.string().optional().describe("open or closed"),
|
|
11805
|
+
labels: z4.array(z4.string()).optional().describe("Replace all labels. Empty array clears. Call github_get_issue first to keep existing."),
|
|
11806
|
+
project: z4.string().nullable().optional().describe('GitHub Project title, or "none" to remove current projects.'),
|
|
11807
|
+
parent: z4.string().nullable().optional().describe('Parent issue #123 or URL, or "none" to unset.'),
|
|
11808
|
+
relations: z4.array(relationInputSchema).optional().describe("Add blockedBy or blocks relations (issue #123 or URL)."),
|
|
11809
|
+
removeRelations: z4.array(relationInputSchema).optional().describe("Remove blockedBy or blocks relations."),
|
|
11777
11810
|
repoPath: repoPathSchema
|
|
11778
11811
|
},
|
|
11779
11812
|
async (args) => {
|
|
@@ -11790,9 +11823,9 @@ function registerGithubIssueTools(server) {
|
|
|
11790
11823
|
"github_create_issue",
|
|
11791
11824
|
"Create a GitHub issue. Pass parent (#123) to mark a spin-off in the body.",
|
|
11792
11825
|
{
|
|
11793
|
-
title:
|
|
11794
|
-
body:
|
|
11795
|
-
parent:
|
|
11826
|
+
title: z4.string(),
|
|
11827
|
+
body: z4.string().optional(),
|
|
11828
|
+
parent: z4.string().optional().describe("Parent issue #123 or URL for a spin-off."),
|
|
11796
11829
|
repoPath: repoPathSchema
|
|
11797
11830
|
},
|
|
11798
11831
|
async (args) => {
|
|
@@ -11808,7 +11841,7 @@ function registerGithubIssueTools(server) {
|
|
|
11808
11841
|
}
|
|
11809
11842
|
|
|
11810
11843
|
// src/mcp/linear-tools.ts
|
|
11811
|
-
import { z as
|
|
11844
|
+
import { z as z5 } from "zod";
|
|
11812
11845
|
function text3(payload, isError = false) {
|
|
11813
11846
|
return mcpJson(payload, isError);
|
|
11814
11847
|
}
|
|
@@ -11818,7 +11851,7 @@ function fail3(err) {
|
|
|
11818
11851
|
true
|
|
11819
11852
|
);
|
|
11820
11853
|
}
|
|
11821
|
-
var prioritySchema =
|
|
11854
|
+
var prioritySchema = z5.number().int().min(0).max(4).optional().describe("0 none, 1 urgent, 2 high, 3 medium, 4 low");
|
|
11822
11855
|
function registerLinearTools(server) {
|
|
11823
11856
|
server.tool(
|
|
11824
11857
|
"linear_list_teams",
|
|
@@ -11848,9 +11881,9 @@ function registerLinearTools(server) {
|
|
|
11848
11881
|
"linear_search_issues",
|
|
11849
11882
|
"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
11883
|
{
|
|
11851
|
-
query:
|
|
11852
|
-
assignee:
|
|
11853
|
-
limit:
|
|
11884
|
+
query: z5.string().optional().describe("Search text (identifier, title, description). Omit to list by assignee only."),
|
|
11885
|
+
assignee: z5.string().optional().describe("me, unassigned, all, a Linear user id, or a display name. Default: all when query is set, otherwise me."),
|
|
11886
|
+
limit: z5.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
11854
11887
|
updatedSince: mcpIssueUpdatedSinceSchema
|
|
11855
11888
|
},
|
|
11856
11889
|
async ({ query, assignee, limit, updatedSince }) => {
|
|
@@ -11890,7 +11923,7 @@ function registerLinearTools(server) {
|
|
|
11890
11923
|
server.tool(
|
|
11891
11924
|
"linear_get_issue",
|
|
11892
11925
|
"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:
|
|
11926
|
+
{ id: z5.string(), include: mcpIssueIncludeSchema },
|
|
11894
11927
|
async ({ id, include }) => {
|
|
11895
11928
|
try {
|
|
11896
11929
|
return text3(formatLinearIssuePayload(await getLinearIssue(id), include));
|
|
@@ -11903,9 +11936,9 @@ function registerLinearTools(server) {
|
|
|
11903
11936
|
"linear_download_attachment",
|
|
11904
11937
|
"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
11938
|
{
|
|
11906
|
-
id:
|
|
11907
|
-
name:
|
|
11908
|
-
repoPath:
|
|
11939
|
+
id: z5.string().describe("Attachment uuid or upload URL from linear_get_issue."),
|
|
11940
|
+
name: z5.string().optional().describe("Optional filename override."),
|
|
11941
|
+
repoPath: z5.string().optional().describe("Workspace / worktree path. Omit on a worktree turn (uses cwd).")
|
|
11909
11942
|
},
|
|
11910
11943
|
async ({ id, name, repoPath }) => {
|
|
11911
11944
|
try {
|
|
@@ -11919,13 +11952,13 @@ function registerLinearTools(server) {
|
|
|
11919
11952
|
"linear_create_issue",
|
|
11920
11953
|
'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
11954
|
{
|
|
11922
|
-
team:
|
|
11923
|
-
title:
|
|
11924
|
-
description:
|
|
11925
|
-
state:
|
|
11926
|
-
assignee:
|
|
11955
|
+
team: z5.string(),
|
|
11956
|
+
title: z5.string(),
|
|
11957
|
+
description: z5.string().optional(),
|
|
11958
|
+
state: z5.string().optional(),
|
|
11959
|
+
assignee: z5.string().nullable().optional(),
|
|
11927
11960
|
priority: prioritySchema,
|
|
11928
|
-
parent:
|
|
11961
|
+
parent: z5.string().optional().describe("Parent issue uuid or identifier (ENG-123) for a spin-off / sub-issue.")
|
|
11929
11962
|
},
|
|
11930
11963
|
async (args) => {
|
|
11931
11964
|
try {
|
|
@@ -11935,26 +11968,26 @@ function registerLinearTools(server) {
|
|
|
11935
11968
|
}
|
|
11936
11969
|
}
|
|
11937
11970
|
);
|
|
11938
|
-
const relationInputSchema =
|
|
11939
|
-
type:
|
|
11940
|
-
issue:
|
|
11971
|
+
const relationInputSchema = z5.object({
|
|
11972
|
+
type: z5.string().describe("blocks, blockedBy, related, duplicate, or duplicateOf (this issue's view)."),
|
|
11973
|
+
issue: z5.string().describe("Related issue uuid or identifier (ENG-123).")
|
|
11941
11974
|
});
|
|
11942
11975
|
server.tool(
|
|
11943
11976
|
"linear_update_issue",
|
|
11944
11977
|
'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
11978
|
{
|
|
11946
|
-
id:
|
|
11947
|
-
title:
|
|
11948
|
-
description:
|
|
11949
|
-
state:
|
|
11950
|
-
assignee:
|
|
11979
|
+
id: z5.string(),
|
|
11980
|
+
title: z5.string().optional(),
|
|
11981
|
+
description: z5.string().optional(),
|
|
11982
|
+
state: z5.string().optional(),
|
|
11983
|
+
assignee: z5.string().nullable().optional(),
|
|
11951
11984
|
priority: prioritySchema,
|
|
11952
|
-
cycle:
|
|
11953
|
-
labels:
|
|
11954
|
-
project:
|
|
11955
|
-
parent:
|
|
11956
|
-
relations:
|
|
11957
|
-
removeRelations:
|
|
11985
|
+
cycle: z5.string().nullable().optional().describe('Cycle name, number, "current"/"active", or "none" to unschedule.'),
|
|
11986
|
+
labels: z5.array(z5.string()).optional().describe("Replace all labels (names or ids). Empty array clears. Call linear_get_issue first to keep existing."),
|
|
11987
|
+
project: z5.string().nullable().optional().describe('Project name, id, slug, or "none" to unassign.'),
|
|
11988
|
+
parent: z5.string().nullable().optional().describe('Parent issue uuid or identifier (ENG-123), or "none" to unset.'),
|
|
11989
|
+
relations: z5.array(relationInputSchema).optional().describe("Add relations from this issue's view (blocks, blockedBy, related, duplicate, duplicateOf)."),
|
|
11990
|
+
removeRelations: z5.array(relationInputSchema).optional().describe("Remove relations by type + related issue (uuid or ENG-123).")
|
|
11958
11991
|
},
|
|
11959
11992
|
async (args) => {
|
|
11960
11993
|
try {
|
|
@@ -11968,8 +12001,8 @@ function registerLinearTools(server) {
|
|
|
11968
12001
|
"linear_comment",
|
|
11969
12002
|
"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
12003
|
{
|
|
11971
|
-
id:
|
|
11972
|
-
body:
|
|
12004
|
+
id: z5.string(),
|
|
12005
|
+
body: z5.string()
|
|
11973
12006
|
},
|
|
11974
12007
|
async (args) => {
|
|
11975
12008
|
try {
|
|
@@ -11989,7 +12022,7 @@ function registerConnectedIssueVendorTools(server, settings = loadAppSettings())
|
|
|
11989
12022
|
}
|
|
11990
12023
|
|
|
11991
12024
|
// src/mcp/posthog-tools.ts
|
|
11992
|
-
import { z as
|
|
12025
|
+
import { z as z6 } from "zod";
|
|
11993
12026
|
var POSTHOG_METHODS = ["GET", "POST", "PATCH"];
|
|
11994
12027
|
var POSTHOG_RESPONSE_MAX_CHARS = 256e3;
|
|
11995
12028
|
var POSTHOG_TIMEOUT_MS = 2e4;
|
|
@@ -12123,13 +12156,13 @@ function registerPosthogTools(server) {
|
|
|
12123
12156
|
"posthog_api",
|
|
12124
12157
|
POSTHOG_API_DESCRIPTION,
|
|
12125
12158
|
{
|
|
12126
|
-
method:
|
|
12159
|
+
method: z6.enum(POSTHOG_METHODS).describe(
|
|
12127
12160
|
"GET, POST /api/projects|environments/:id/query/ for a read, or POST/PATCH when the user asked for a change"
|
|
12128
12161
|
),
|
|
12129
|
-
path:
|
|
12130
|
-
query:
|
|
12131
|
-
body:
|
|
12132
|
-
write:
|
|
12162
|
+
path: z6.string().describe("PostHog path starting with /api/, not a full URL"),
|
|
12163
|
+
query: z6.record(z6.string(), z6.string()).optional().describe("Query string parameters"),
|
|
12164
|
+
body: z6.unknown().optional().describe("JSON body for POST or PATCH"),
|
|
12165
|
+
write: z6.boolean().optional().describe(
|
|
12133
12166
|
"Required true for POST and PATCH that change data. Omit for GET and for POST .../query/."
|
|
12134
12167
|
)
|
|
12135
12168
|
},
|
|
@@ -12172,7 +12205,7 @@ function formatMcpPrList(input) {
|
|
|
12172
12205
|
}
|
|
12173
12206
|
|
|
12174
12207
|
// src/mcp/archive-tools.ts
|
|
12175
|
-
import { z as
|
|
12208
|
+
import { z as z7 } from "zod";
|
|
12176
12209
|
|
|
12177
12210
|
// src/mcp/archive-guard.ts
|
|
12178
12211
|
function mcpArchiveBlockedReason(thread) {
|
|
@@ -12188,9 +12221,9 @@ function registerArchiveTools(server, orch) {
|
|
|
12188
12221
|
"list_archive",
|
|
12189
12222
|
"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
12223
|
{
|
|
12191
|
-
query:
|
|
12192
|
-
kind:
|
|
12193
|
-
limit:
|
|
12224
|
+
query: z7.string().optional().describe("Title, branch, repo, agent, ticket, or PR"),
|
|
12225
|
+
kind: z7.enum(["all", "workspace", "agent"]).optional().describe("all (default), workspace, or agent"),
|
|
12226
|
+
limit: z7.number().int().positive().max(250).optional().describe("Page size (default 40, max 250)")
|
|
12194
12227
|
},
|
|
12195
12228
|
async ({ query, kind, limit }) => {
|
|
12196
12229
|
const view = listFleetArchive(orch.getThreads(true), { query, kind, limit });
|
|
@@ -12200,7 +12233,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12200
12233
|
server.tool(
|
|
12201
12234
|
"archive_workspace",
|
|
12202
12235
|
"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:
|
|
12236
|
+
{ ref: z7.string().describe("Any chat id on the workspace") },
|
|
12204
12237
|
async ({ ref }) => {
|
|
12205
12238
|
const thread = orch.getThread(ref);
|
|
12206
12239
|
if (!thread) {
|
|
@@ -12233,7 +12266,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12233
12266
|
server.tool(
|
|
12234
12267
|
"archive_chat",
|
|
12235
12268
|
"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:
|
|
12269
|
+
{ ref: z7.string().describe("Chat id to archive") },
|
|
12237
12270
|
async ({ ref }) => {
|
|
12238
12271
|
const t = orch.getThread(ref);
|
|
12239
12272
|
if (!t) {
|
|
@@ -12259,7 +12292,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12259
12292
|
server.tool(
|
|
12260
12293
|
"restore_workspace",
|
|
12261
12294
|
"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:
|
|
12295
|
+
{ ref: z7.string().describe("Any chat id from list_archive on that workspace") },
|
|
12263
12296
|
async ({ ref }) => {
|
|
12264
12297
|
try {
|
|
12265
12298
|
const restored = await orch.restoreWorkspace(ref);
|
|
@@ -12283,7 +12316,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12283
12316
|
server.tool(
|
|
12284
12317
|
"restore_chat",
|
|
12285
12318
|
"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:
|
|
12319
|
+
{ ref: z7.string().describe("Archived chat id from list_archive") },
|
|
12287
12320
|
async ({ ref }) => {
|
|
12288
12321
|
try {
|
|
12289
12322
|
const restored = await orch.restore(ref);
|
|
@@ -12301,7 +12334,7 @@ function registerArchiveTools(server, orch) {
|
|
|
12301
12334
|
}
|
|
12302
12335
|
|
|
12303
12336
|
// src/mcp/schedule-tools.ts
|
|
12304
|
-
import { z as
|
|
12337
|
+
import { z as z8 } from "zod";
|
|
12305
12338
|
function text4(payload, isError = false) {
|
|
12306
12339
|
return mcpJson(payload, isError);
|
|
12307
12340
|
}
|
|
@@ -12402,23 +12435,23 @@ function registerScheduleTools(server) {
|
|
|
12402
12435
|
"create_schedule",
|
|
12403
12436
|
"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
12437
|
{
|
|
12405
|
-
prompt:
|
|
12406
|
-
name:
|
|
12407
|
-
at:
|
|
12408
|
-
every:
|
|
12409
|
-
time:
|
|
12410
|
-
days:
|
|
12411
|
-
cron:
|
|
12412
|
-
tz:
|
|
12413
|
-
archiveChat:
|
|
12438
|
+
prompt: z8.string().describe("User message / goal queued when the automation fires"),
|
|
12439
|
+
name: z8.string().optional(),
|
|
12440
|
+
at: z8.string().optional().describe("ISO datetime for a one-shot"),
|
|
12441
|
+
every: z8.string().optional().describe("Interval such as 15m, 1h, 6h, 1d"),
|
|
12442
|
+
time: z8.string().optional().describe("HH:mm (24-hour) clock time. Omit days for every day."),
|
|
12443
|
+
days: z8.string().optional().describe("daily, weekdays, weekends, or days such as mon,wed,fri or mon-fri. Use with time."),
|
|
12444
|
+
cron: z8.string().optional().describe("5-field cron expression"),
|
|
12445
|
+
tz: z8.string().optional().describe("IANA timezone for cron or time (default: system)"),
|
|
12446
|
+
archiveChat: z8.boolean().optional().describe(
|
|
12414
12447
|
"Archive a new Global chat when the run finishes. Default true. Pass false to leave the chat open."
|
|
12415
12448
|
),
|
|
12416
|
-
chatId:
|
|
12449
|
+
chatId: z8.string().optional().describe(
|
|
12417
12450
|
'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
12451
|
),
|
|
12419
|
-
threadId:
|
|
12420
|
-
agent:
|
|
12421
|
-
model:
|
|
12452
|
+
threadId: z8.string().optional().describe("Legacy alias for chatId."),
|
|
12453
|
+
agent: z8.enum(["claude", "cursor", "codex", "opencode"]).optional().describe("Agent for a new Global chat (omit for Account default)"),
|
|
12454
|
+
model: z8.string().optional()
|
|
12422
12455
|
},
|
|
12423
12456
|
async (args) => {
|
|
12424
12457
|
try {
|
|
@@ -12455,23 +12488,23 @@ function registerScheduleTools(server) {
|
|
|
12455
12488
|
"update_schedule",
|
|
12456
12489
|
"Update a local automation (prompt, cadence, target chat, archiveChat, enabled). Pass id from list_schedules.",
|
|
12457
12490
|
{
|
|
12458
|
-
id:
|
|
12459
|
-
prompt:
|
|
12460
|
-
name:
|
|
12461
|
-
at:
|
|
12462
|
-
every:
|
|
12463
|
-
time:
|
|
12464
|
-
days:
|
|
12465
|
-
cron:
|
|
12466
|
-
tz:
|
|
12467
|
-
archiveChat:
|
|
12468
|
-
chatId:
|
|
12491
|
+
id: z8.string(),
|
|
12492
|
+
prompt: z8.string().optional(),
|
|
12493
|
+
name: z8.string().optional(),
|
|
12494
|
+
at: z8.string().optional(),
|
|
12495
|
+
every: z8.string().optional(),
|
|
12496
|
+
time: z8.string().optional().describe("HH:mm clock time. Use with days, or alone to change the time of a weekly job."),
|
|
12497
|
+
days: z8.string().optional().describe("daily, weekdays, weekends, or mon,wed,fri. Use with time, or alone on an existing weekly job."),
|
|
12498
|
+
cron: z8.string().optional(),
|
|
12499
|
+
tz: z8.string().optional(),
|
|
12500
|
+
archiveChat: z8.boolean().optional().describe("Archive a new Global chat when the run finishes. False leaves it open."),
|
|
12501
|
+
chatId: z8.string().optional().describe(
|
|
12469
12502
|
'Existing chat, "self", or empty string for a Global chat each run. A bound job is removed when that chat is archived.'
|
|
12470
12503
|
),
|
|
12471
|
-
threadId:
|
|
12472
|
-
agent:
|
|
12473
|
-
model:
|
|
12474
|
-
enabled:
|
|
12504
|
+
threadId: z8.string().optional().describe("Legacy alias for chatId."),
|
|
12505
|
+
agent: z8.enum(["claude", "cursor", "codex", "opencode"]).optional(),
|
|
12506
|
+
model: z8.string().optional(),
|
|
12507
|
+
enabled: z8.boolean().optional()
|
|
12475
12508
|
},
|
|
12476
12509
|
async (args) => {
|
|
12477
12510
|
try {
|
|
@@ -12507,7 +12540,7 @@ function registerScheduleTools(server) {
|
|
|
12507
12540
|
server.tool(
|
|
12508
12541
|
"delete_schedule",
|
|
12509
12542
|
"Delete a local automation. Pass id from list_schedules.",
|
|
12510
|
-
{ id:
|
|
12543
|
+
{ id: z8.string() },
|
|
12511
12544
|
async ({ id }) => {
|
|
12512
12545
|
try {
|
|
12513
12546
|
deleteSchedule(id);
|
|
@@ -12520,7 +12553,7 @@ function registerScheduleTools(server) {
|
|
|
12520
12553
|
server.tool(
|
|
12521
12554
|
"run_schedule",
|
|
12522
12555
|
"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:
|
|
12556
|
+
{ id: z8.string() },
|
|
12524
12557
|
async ({ id }) => {
|
|
12525
12558
|
try {
|
|
12526
12559
|
if (!getSchedule(id)) {
|
|
@@ -12536,7 +12569,7 @@ function registerScheduleTools(server) {
|
|
|
12536
12569
|
}
|
|
12537
12570
|
|
|
12538
12571
|
// src/mcp/follow-up-tools.ts
|
|
12539
|
-
import { z as
|
|
12572
|
+
import { z as z9 } from "zod";
|
|
12540
12573
|
function text5(payload, isError = false) {
|
|
12541
12574
|
return mcpJson(payload, isError);
|
|
12542
12575
|
}
|
|
@@ -12570,10 +12603,10 @@ function registerFollowUpTools(server) {
|
|
|
12570
12603
|
"create_follow_up",
|
|
12571
12604
|
"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
12605
|
{
|
|
12573
|
-
kind:
|
|
12574
|
-
prompt:
|
|
12575
|
-
at:
|
|
12576
|
-
deadline:
|
|
12606
|
+
kind: z9.enum(["ci", "at"]),
|
|
12607
|
+
prompt: z9.string(),
|
|
12608
|
+
at: z9.string().optional(),
|
|
12609
|
+
deadline: z9.string().optional()
|
|
12577
12610
|
},
|
|
12578
12611
|
async ({ kind, prompt, at, deadline }) => {
|
|
12579
12612
|
const thread = callerThread();
|
|
@@ -12594,7 +12627,7 @@ function registerFollowUpTools(server) {
|
|
|
12594
12627
|
server.tool(
|
|
12595
12628
|
"delete_follow_up",
|
|
12596
12629
|
"Remove one follow-up from this chat by id.",
|
|
12597
|
-
{ id:
|
|
12630
|
+
{ id: z9.string() },
|
|
12598
12631
|
async ({ id }) => {
|
|
12599
12632
|
const thread = callerThread();
|
|
12600
12633
|
if (!thread) return text5({ error: "This chat id is missing" }, true);
|
|
@@ -12608,8 +12641,8 @@ function registerFollowUpTools(server) {
|
|
|
12608
12641
|
}
|
|
12609
12642
|
|
|
12610
12643
|
// src/mcp/order-tools.ts
|
|
12611
|
-
import { z as
|
|
12612
|
-
var kindSchema =
|
|
12644
|
+
import { z as z10 } from "zod";
|
|
12645
|
+
var kindSchema = z10.enum(["pr", "issue", "workspace", "orchestration"]);
|
|
12613
12646
|
function callerThread2() {
|
|
12614
12647
|
const id = process.env[SIDEBOARD_THREAD_ID_ENV]?.trim();
|
|
12615
12648
|
if (!id) return null;
|
|
@@ -12681,16 +12714,16 @@ function registerOrderTools(server) {
|
|
|
12681
12714
|
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
12715
|
{
|
|
12683
12716
|
waitsOnKind: kindSchema.describe("What must happen first: pr, issue, workspace, or orchestration"),
|
|
12684
|
-
waitsOnRef:
|
|
12685
|
-
waitsOnRepoPath:
|
|
12686
|
-
waitsOnLabel:
|
|
12687
|
-
gate:
|
|
12688
|
-
hold:
|
|
12717
|
+
waitsOnRef: z10.string().describe("PR number (12), issue id (ENG-4), or workspace chat id / worktree path"),
|
|
12718
|
+
waitsOnRepoPath: z10.string().optional().describe("Project path when a PR or issue number is not unique"),
|
|
12719
|
+
waitsOnLabel: z10.string().optional().describe("Short label on the planner"),
|
|
12720
|
+
gate: z10.enum(["in-main", "in-prod"]).describe("in-main: merged to the default branch. in-prod: deployed; mark with satisfy_dependency"),
|
|
12721
|
+
hold: z10.enum(["start", "merge"]).describe("start: subject cannot begin. merge: subject cannot merge"),
|
|
12689
12722
|
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:
|
|
12723
|
+
subjectRef: z10.string().optional().describe("PR number, issue id, or workspace ref for the subject"),
|
|
12724
|
+
subjectRepoPath: z10.string().optional(),
|
|
12725
|
+
subjectLabel: z10.string().optional(),
|
|
12726
|
+
note: z10.string().optional().describe("Why this order matters")
|
|
12694
12727
|
},
|
|
12695
12728
|
async (args) => {
|
|
12696
12729
|
try {
|
|
@@ -12754,9 +12787,9 @@ function registerOrderTools(server) {
|
|
|
12754
12787
|
"set_plan",
|
|
12755
12788
|
"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
12789
|
{
|
|
12757
|
-
title:
|
|
12758
|
-
summary:
|
|
12759
|
-
goal:
|
|
12790
|
+
title: z10.string().describe("Short name for the plan"),
|
|
12791
|
+
summary: z10.string().optional().describe("What this order is for, in a sentence or two"),
|
|
12792
|
+
goal: z10.string().optional().describe("Outcome the steps are trying to reach")
|
|
12760
12793
|
},
|
|
12761
12794
|
async ({ title, summary, goal }) => {
|
|
12762
12795
|
try {
|
|
@@ -12776,7 +12809,7 @@ function registerOrderTools(server) {
|
|
|
12776
12809
|
"execute_plan",
|
|
12777
12810
|
"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
12811
|
{
|
|
12779
|
-
agreed:
|
|
12812
|
+
agreed: z10.literal(true).describe("True only after the user has seen the plan and told you to run it")
|
|
12780
12813
|
},
|
|
12781
12814
|
async () => {
|
|
12782
12815
|
try {
|
|
@@ -12846,7 +12879,7 @@ function registerOrderTools(server) {
|
|
|
12846
12879
|
server.tool(
|
|
12847
12880
|
"clear_dependency",
|
|
12848
12881
|
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:
|
|
12882
|
+
{ id: z10.string().describe("Step id from list_order") },
|
|
12850
12883
|
async ({ id }) => {
|
|
12851
12884
|
try {
|
|
12852
12885
|
const caller = callerThread2();
|
|
@@ -12865,8 +12898,8 @@ function registerOrderTools(server) {
|
|
|
12865
12898
|
"satisfy_dependency",
|
|
12866
12899
|
"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
12900
|
{
|
|
12868
|
-
id:
|
|
12869
|
-
satisfied:
|
|
12901
|
+
id: z10.string().describe("Step id from list_order"),
|
|
12902
|
+
satisfied: z10.boolean().optional().describe("false clears the manual mark. Default true.")
|
|
12870
12903
|
},
|
|
12871
12904
|
async ({ id, satisfied }) => {
|
|
12872
12905
|
try {
|
|
@@ -13063,7 +13096,7 @@ async function handleJobStop(params, _ctx) {
|
|
|
13063
13096
|
return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
|
|
13064
13097
|
}
|
|
13065
13098
|
async function defaultTurnWait(ref, timeoutMs) {
|
|
13066
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
13099
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-EY6GCYQG.js");
|
|
13067
13100
|
const orch = getOrchestrator2();
|
|
13068
13101
|
const thread = await orch.waitForTurn(ref, timeoutMs, {
|
|
13069
13102
|
resolveIfStillRunning: true
|
|
@@ -13114,10 +13147,21 @@ async function handleTurnWait(params, ctx, waitFn = defaultTurnWait) {
|
|
|
13114
13147
|
failureClass: null
|
|
13115
13148
|
};
|
|
13116
13149
|
}
|
|
13150
|
+
async function handleComputerAct(params, ctx) {
|
|
13151
|
+
const rec = asRecord3(params);
|
|
13152
|
+
const cwd = str3(rec.cwd).trim() || ctx.cwd;
|
|
13153
|
+
return performComputerUse({
|
|
13154
|
+
enabled: computerUseEnabled(),
|
|
13155
|
+
cwd,
|
|
13156
|
+
input: rec,
|
|
13157
|
+
runner: macosComputerUseRunner
|
|
13158
|
+
});
|
|
13159
|
+
}
|
|
13117
13160
|
function createAgentRpcDispatcher() {
|
|
13118
13161
|
return {
|
|
13119
13162
|
"runtime.ping": handleRuntimePing,
|
|
13120
13163
|
"ui.presentArtifact": handlePresentArtifact,
|
|
13164
|
+
"computer.act": handleComputerAct,
|
|
13121
13165
|
"job.wait": handleJobWait,
|
|
13122
13166
|
"job.stop": handleJobStop,
|
|
13123
13167
|
"turn.wait": handleTurnWait,
|
|
@@ -13417,7 +13461,7 @@ async function startMcpServer() {
|
|
|
13417
13461
|
);
|
|
13418
13462
|
}
|
|
13419
13463
|
try {
|
|
13420
|
-
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-
|
|
13464
|
+
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-GM4MJD2E.js");
|
|
13421
13465
|
orch.setMaxConcurrent(maxConcurrentAgents2());
|
|
13422
13466
|
} catch {
|
|
13423
13467
|
}
|
|
@@ -13501,16 +13545,16 @@ async function startMcpServer() {
|
|
|
13501
13545
|
"list_board",
|
|
13502
13546
|
"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
13547
|
{
|
|
13504
|
-
query:
|
|
13505
|
-
repoPath:
|
|
13506
|
-
kind:
|
|
13507
|
-
ownership:
|
|
13548
|
+
query: z11.string().optional().describe("Case-insensitive token search across title, id, labels, workspace tags, repo"),
|
|
13549
|
+
repoPath: z11.string().optional().describe("Limit to one project path from list_projects"),
|
|
13550
|
+
kind: z11.enum(["all", "tickets", "prs", "branches", "threads"]).optional().describe("Filter by worktree source (default all)"),
|
|
13551
|
+
ownership: z11.enum(["all", "mine", "reviewing"]).optional().describe(
|
|
13508
13552
|
"Mine = PRs you authored or local WIP; reviewing = someone else's PR. Uses the gh login."
|
|
13509
13553
|
),
|
|
13510
|
-
column:
|
|
13554
|
+
column: z11.enum(["new", "draft", "review", "approved", "done", "needs_you"]).optional().describe(
|
|
13511
13555
|
"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
13556
|
),
|
|
13513
|
-
limit:
|
|
13557
|
+
limit: z11.number().int().positive().optional().describe("Max cards per column (default 40). hidden counts the remainder.")
|
|
13514
13558
|
},
|
|
13515
13559
|
async ({ query, repoPath, kind, ownership, column, limit }) => {
|
|
13516
13560
|
const workspaces = orch.listWorkspaces();
|
|
@@ -13540,7 +13584,7 @@ async function startMcpServer() {
|
|
|
13540
13584
|
server.tool(
|
|
13541
13585
|
"get_chat",
|
|
13542
13586
|
"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:
|
|
13587
|
+
{ ref: z11.string() },
|
|
13544
13588
|
async ({ ref }) => {
|
|
13545
13589
|
const t = orch.getThread(ref);
|
|
13546
13590
|
if (!t) {
|
|
@@ -13587,17 +13631,17 @@ async function startMcpServer() {
|
|
|
13587
13631
|
"present_artifact",
|
|
13588
13632
|
"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
13633
|
{
|
|
13590
|
-
title:
|
|
13591
|
-
type:
|
|
13634
|
+
title: z11.string().describe("Short title shown in the artifact pane header"),
|
|
13635
|
+
type: z11.enum(["html", "svg", "markdown", "react", "log"]).describe(
|
|
13592
13636
|
"html/svg/markdown/react replace the pane. log appends content to the same artifact_id (new lines only)."
|
|
13593
13637
|
),
|
|
13594
|
-
content:
|
|
13638
|
+
content: z11.string().describe(
|
|
13595
13639
|
"html/svg/markdown/react: full document. log: only the new lines since the last call (empty is ok for a status-only update)."
|
|
13596
13640
|
),
|
|
13597
|
-
artifact_id:
|
|
13598
|
-
status:
|
|
13599
|
-
phase:
|
|
13600
|
-
mode:
|
|
13641
|
+
artifact_id: z11.string().optional().describe("Stable id. Required for type=log so later calls append to the same pane."),
|
|
13642
|
+
status: z11.enum(["running", "ok", "failed", "idle"]).optional().describe("Log header pill: running (working), ok (done), failed, idle"),
|
|
13643
|
+
phase: z11.string().optional().describe("Log subtitle (Signing, Notarizing, \u2026)"),
|
|
13644
|
+
mode: z11.enum(["append", "replace"]).optional().describe("log only: append (default) or replace the buffer")
|
|
13601
13645
|
},
|
|
13602
13646
|
async ({ title, type, artifact_id, status, phase, mode }) => {
|
|
13603
13647
|
return mcpJson(
|
|
@@ -13610,15 +13654,15 @@ async function startMcpServer() {
|
|
|
13610
13654
|
"ask_user",
|
|
13611
13655
|
"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
13656
|
{
|
|
13613
|
-
questions:
|
|
13614
|
-
|
|
13615
|
-
question:
|
|
13616
|
-
header:
|
|
13617
|
-
multiSelect:
|
|
13618
|
-
options:
|
|
13619
|
-
|
|
13620
|
-
label:
|
|
13621
|
-
description:
|
|
13657
|
+
questions: z11.array(
|
|
13658
|
+
z11.object({
|
|
13659
|
+
question: z11.string().describe("Full question text ending with ?"),
|
|
13660
|
+
header: z11.string().max(24).optional().describe("Short label shown above the question"),
|
|
13661
|
+
multiSelect: z11.boolean().optional().describe("Allow selecting multiple options"),
|
|
13662
|
+
options: z11.array(
|
|
13663
|
+
z11.object({
|
|
13664
|
+
label: z11.string(),
|
|
13665
|
+
description: z11.string().optional().describe("What this option means / when to choose it (strongly preferred)")
|
|
13622
13666
|
})
|
|
13623
13667
|
).min(2).max(6).describe("2\u20136 choices (Sideboard also offers Other)")
|
|
13624
13668
|
})
|
|
@@ -13644,9 +13688,9 @@ async function startMcpServer() {
|
|
|
13644
13688
|
"present_plan",
|
|
13645
13689
|
PRESENT_PLAN_TOOL_DESCRIPTION,
|
|
13646
13690
|
{
|
|
13647
|
-
title:
|
|
13648
|
-
content:
|
|
13649
|
-
thread_id:
|
|
13691
|
+
title: z11.string().optional().describe("Short plan title (defaults to Plan)"),
|
|
13692
|
+
content: z11.string().min(1).describe("Full plan markdown (headings, steps, risks, open questions)"),
|
|
13693
|
+
thread_id: z11.string().optional().describe("Sideboard thread id when cwd is not the worktree")
|
|
13650
13694
|
},
|
|
13651
13695
|
async ({ title, content, thread_id }) => {
|
|
13652
13696
|
const { writePlanFile: writePlanFile2 } = await import("./plan-file-7MMIPV7Y.js");
|
|
@@ -13675,15 +13719,15 @@ async function startMcpServer() {
|
|
|
13675
13719
|
"present_schema",
|
|
13676
13720
|
"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
13721
|
{
|
|
13678
|
-
title:
|
|
13679
|
-
mode:
|
|
13680
|
-
datasource:
|
|
13681
|
-
resource_id:
|
|
13682
|
-
record_id:
|
|
13683
|
-
resource:
|
|
13684
|
-
record:
|
|
13685
|
-
records:
|
|
13686
|
-
pane_id:
|
|
13722
|
+
title: z11.string().describe("Pane title"),
|
|
13723
|
+
mode: z11.enum(["table", "form"]).optional().describe("table = list/filter records; form = edit one record"),
|
|
13724
|
+
datasource: z11.enum(["brightsy", "inline"]).optional().describe("brightsy resolves via login; inline uses embedded resource/records"),
|
|
13725
|
+
resource_id: z11.string().optional().describe("Brightsy record type UUID (or generic resource id)"),
|
|
13726
|
+
record_id: z11.string().optional().describe("Record id when opening form mode"),
|
|
13727
|
+
resource: z11.record(z11.unknown()).optional().describe("Inline { id, title, schema, schemaUi?, slug? }"),
|
|
13728
|
+
record: z11.record(z11.unknown()).optional().describe("Inline record { id, data, published_at? }"),
|
|
13729
|
+
records: z11.array(z11.record(z11.unknown())).optional().describe("Inline records for table mode"),
|
|
13730
|
+
pane_id: z11.string().optional().describe("Stable pane id across updates")
|
|
13687
13731
|
},
|
|
13688
13732
|
async (args) => {
|
|
13689
13733
|
const id = args.pane_id?.trim() || `schema_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -13704,10 +13748,10 @@ async function startMcpServer() {
|
|
|
13704
13748
|
"present_files",
|
|
13705
13749
|
"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
13750
|
{
|
|
13707
|
-
title:
|
|
13708
|
-
datasource:
|
|
13709
|
-
path:
|
|
13710
|
-
pane_id:
|
|
13751
|
+
title: z11.string().optional().describe("Pane title (default: Files)"),
|
|
13752
|
+
datasource: z11.enum(["brightsy", "memory"]).optional().describe("brightsy = account storage via login; memory = session demo store"),
|
|
13753
|
+
path: z11.string().optional().describe("Initial folder path (e.g. public)"),
|
|
13754
|
+
pane_id: z11.string().optional().describe("Stable pane id across updates")
|
|
13711
13755
|
},
|
|
13712
13756
|
async (args) => {
|
|
13713
13757
|
const id = args.pane_id?.trim() || `files_${Date.now().toString(36)}_${Math.random().toString(36).slice(2, 8)}`;
|
|
@@ -13727,8 +13771,8 @@ async function startMcpServer() {
|
|
|
13727
13771
|
"wait_for_job",
|
|
13728
13772
|
"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
13773
|
{
|
|
13730
|
-
id:
|
|
13731
|
-
timeoutMs:
|
|
13774
|
+
id: z11.string().describe("Detached job id (same kebab-case id passed to detached-job.cjs start)"),
|
|
13775
|
+
timeoutMs: z11.number().optional()
|
|
13732
13776
|
},
|
|
13733
13777
|
async ({ id, timeoutMs }) => {
|
|
13734
13778
|
const result = await waitForDetachedJob(process.cwd(), id, {
|
|
@@ -13741,8 +13785,8 @@ async function startMcpServer() {
|
|
|
13741
13785
|
"stop_job",
|
|
13742
13786
|
"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
13787
|
{
|
|
13744
|
-
id:
|
|
13745
|
-
reason:
|
|
13788
|
+
id: z11.string().describe("Detached job id (same kebab-case id passed to detached-job.cjs start)"),
|
|
13789
|
+
reason: z11.string().optional().describe("Why you are stopping (hanging, no progress, wrong output, already have the answer)")
|
|
13746
13790
|
},
|
|
13747
13791
|
async ({ id, reason }) => {
|
|
13748
13792
|
const result = await stopDetachedJob(process.cwd(), id, { reason });
|
|
@@ -13754,7 +13798,7 @@ async function startMcpServer() {
|
|
|
13754
13798
|
"list_run_scripts",
|
|
13755
13799
|
"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
13800
|
{
|
|
13757
|
-
ref:
|
|
13801
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd).")
|
|
13758
13802
|
},
|
|
13759
13803
|
async ({ ref }) => {
|
|
13760
13804
|
try {
|
|
@@ -13784,8 +13828,8 @@ async function startMcpServer() {
|
|
|
13784
13828
|
"run_dev_script",
|
|
13785
13829
|
"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
13830
|
{
|
|
13787
|
-
ref:
|
|
13788
|
-
name:
|
|
13831
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13832
|
+
name: z11.string().optional().describe("Script name from list_run_scripts (default script if omitted).")
|
|
13789
13833
|
},
|
|
13790
13834
|
async ({ ref, name }) => {
|
|
13791
13835
|
try {
|
|
@@ -13813,8 +13857,8 @@ async function startMcpServer() {
|
|
|
13813
13857
|
"stop_dev_script",
|
|
13814
13858
|
"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
13859
|
{
|
|
13816
|
-
ref:
|
|
13817
|
-
name:
|
|
13860
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13861
|
+
name: z11.string().optional().describe("Script name to stop; omit to stop all active scripts.")
|
|
13818
13862
|
},
|
|
13819
13863
|
async ({ ref, name }) => {
|
|
13820
13864
|
try {
|
|
@@ -13831,9 +13875,9 @@ async function startMcpServer() {
|
|
|
13831
13875
|
"get_run_log",
|
|
13832
13876
|
"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
13877
|
{
|
|
13834
|
-
ref:
|
|
13835
|
-
name:
|
|
13836
|
-
tail:
|
|
13878
|
+
ref: z11.string().optional().describe("Thread id. Omit on a worktree turn (uses cwd)."),
|
|
13879
|
+
name: z11.string().optional().describe("Script name from list_run_scripts (default script if omitted)."),
|
|
13880
|
+
tail: z11.number().int().min(1).max(MAX_RUN_LOG_CHARS).optional().describe(
|
|
13837
13881
|
`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
13882
|
)
|
|
13839
13883
|
},
|
|
@@ -13866,6 +13910,7 @@ async function startMcpServer() {
|
|
|
13866
13910
|
}
|
|
13867
13911
|
}
|
|
13868
13912
|
);
|
|
13913
|
+
registerComputerUseTool(server, mcpCatalog);
|
|
13869
13914
|
if (worktreeProfile) {
|
|
13870
13915
|
server.tool(
|
|
13871
13916
|
"get_orchestrator",
|
|
@@ -13896,8 +13941,8 @@ async function startMcpServer() {
|
|
|
13896
13941
|
"notify_orchestrator",
|
|
13897
13942
|
"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
13943
|
{
|
|
13899
|
-
message:
|
|
13900
|
-
reason:
|
|
13944
|
+
message: z11.string().min(1).max(1500).describe("Why you are blocked / what the parent should know (short)."),
|
|
13945
|
+
reason: z11.enum(["input-required", "blocked"]).optional().describe(
|
|
13901
13946
|
"input-required = waiting on the user in this chat; blocked = need the coordinator (default)."
|
|
13902
13947
|
)
|
|
13903
13948
|
},
|
|
@@ -13936,11 +13981,11 @@ async function startMcpServer() {
|
|
|
13936
13981
|
"set_workspace_tags",
|
|
13937
13982
|
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
13983
|
{
|
|
13939
|
-
ref:
|
|
13984
|
+
ref: z11.string().optional().describe(
|
|
13940
13985
|
worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace to label."
|
|
13941
13986
|
),
|
|
13942
|
-
tags:
|
|
13943
|
-
mode:
|
|
13987
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).describe("Labels to set. A string may be comma-separated."),
|
|
13988
|
+
mode: z11.enum(["replace", "add", "remove"]).optional()
|
|
13944
13989
|
},
|
|
13945
13990
|
async ({ ref, tags, mode }) => {
|
|
13946
13991
|
try {
|
|
@@ -13968,10 +14013,10 @@ async function startMcpServer() {
|
|
|
13968
14013
|
"set_wake_on_github_edges",
|
|
13969
14014
|
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
14015
|
{
|
|
13971
|
-
ref:
|
|
14016
|
+
ref: z11.string().optional().describe(
|
|
13972
14017
|
worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace."
|
|
13973
14018
|
),
|
|
13974
|
-
enabled:
|
|
14019
|
+
enabled: z11.boolean().describe("True opts the checkout in. False turns it off.")
|
|
13975
14020
|
},
|
|
13976
14021
|
async ({ ref, enabled }) => {
|
|
13977
14022
|
try {
|
|
@@ -13997,14 +14042,14 @@ async function startMcpServer() {
|
|
|
13997
14042
|
if (!worktreeProfile) {
|
|
13998
14043
|
registerConnectedIssueVendorTools(server);
|
|
13999
14044
|
const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-ZNUEZGHB.js");
|
|
14000
|
-
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-
|
|
14045
|
+
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-GM4MJD2E.js");
|
|
14001
14046
|
const accountDefaults = resolveThreadDefaults2();
|
|
14002
14047
|
const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
|
|
14003
14048
|
server.tool(
|
|
14004
14049
|
"set_caffeinate",
|
|
14005
14050
|
"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
14051
|
{
|
|
14007
|
-
enabled:
|
|
14052
|
+
enabled: z11.boolean().describe("true = hold caffeinate on; false = release and let the Mac sleep")
|
|
14008
14053
|
},
|
|
14009
14054
|
async ({ enabled }) => {
|
|
14010
14055
|
const threadId = process.env.SIDEBOARD_ORCHESTRATOR_THREAD_ID?.trim() || null;
|
|
@@ -14030,25 +14075,25 @@ async function startMcpServer() {
|
|
|
14030
14075
|
"create_workspace",
|
|
14031
14076
|
`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
14077
|
{
|
|
14033
|
-
sourceType:
|
|
14034
|
-
sourceRef:
|
|
14035
|
-
agent:
|
|
14078
|
+
sourceType: z11.enum(["branch", "pr", "ticket"]),
|
|
14079
|
+
sourceRef: z11.string(),
|
|
14080
|
+
agent: z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]).optional().describe(
|
|
14036
14081
|
`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
14082
|
),
|
|
14038
|
-
acpHarness:
|
|
14039
|
-
model:
|
|
14083
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini (Gemini CLI) or copilot (GitHub Copilot CLI)."),
|
|
14084
|
+
model: z11.string().nullable().optional().describe(
|
|
14040
14085
|
`Usually omit to use Account default model (${accountDefaults.model?.trim() || "Auto"}). Pass null only to force Auto / agent-default.`
|
|
14041
14086
|
),
|
|
14042
|
-
repoPath:
|
|
14043
|
-
title:
|
|
14044
|
-
cowboy:
|
|
14087
|
+
repoPath: z11.string(),
|
|
14088
|
+
title: z11.string().optional(),
|
|
14089
|
+
cowboy: z11.boolean().optional().describe(
|
|
14045
14090
|
"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
14091
|
),
|
|
14047
|
-
parentChatId:
|
|
14092
|
+
parentChatId: z11.string().optional().describe(
|
|
14048
14093
|
"Orchestration: omit (preferred) or pass YOUR chat id from the turn reminder / AGENTS.md. Do not invent uuids."
|
|
14049
14094
|
),
|
|
14050
|
-
parentThreadId:
|
|
14051
|
-
tags:
|
|
14095
|
+
parentThreadId: z11.string().optional().describe("Legacy alias for parentChatId."),
|
|
14096
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).optional().describe(
|
|
14052
14097
|
"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
14098
|
)
|
|
14054
14099
|
},
|
|
@@ -14064,11 +14109,11 @@ async function startMcpServer() {
|
|
|
14064
14109
|
"start_board_card",
|
|
14065
14110
|
"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
14111
|
{
|
|
14067
|
-
kind:
|
|
14068
|
-
ref:
|
|
14069
|
-
repoPath:
|
|
14070
|
-
title:
|
|
14071
|
-
tags:
|
|
14112
|
+
kind: z11.enum(["ticket", "pr", "branch"]),
|
|
14113
|
+
ref: z11.string().describe("Ticket identifier (ENG-12), PR number (44), or branch name from list_board"),
|
|
14114
|
+
repoPath: z11.string().describe("Project path from list_projects / list_board"),
|
|
14115
|
+
title: z11.string().optional(),
|
|
14116
|
+
tags: z11.union([z11.string(), z11.array(z11.string())]).optional().describe(
|
|
14072
14117
|
"Short labels for this workspace. Same tags on every checkout for one task. Added when the checkout already exists."
|
|
14073
14118
|
)
|
|
14074
14119
|
},
|
|
@@ -14173,9 +14218,9 @@ async function startMcpServer() {
|
|
|
14173
14218
|
"send_to_chat",
|
|
14174
14219
|
'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
14220
|
{
|
|
14176
|
-
ref:
|
|
14177
|
-
prompt:
|
|
14178
|
-
force_stop:
|
|
14221
|
+
ref: z11.string(),
|
|
14222
|
+
prompt: z11.string(),
|
|
14223
|
+
force_stop: z11.boolean().optional()
|
|
14179
14224
|
},
|
|
14180
14225
|
async ({ ref, prompt, force_stop }) => {
|
|
14181
14226
|
if (force_stop) {
|
|
@@ -14200,8 +14245,8 @@ async function startMcpServer() {
|
|
|
14200
14245
|
"wait_for_turn",
|
|
14201
14246
|
"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
14247
|
{
|
|
14203
|
-
ref:
|
|
14204
|
-
timeoutMs:
|
|
14248
|
+
ref: z11.string(),
|
|
14249
|
+
timeoutMs: z11.number().optional()
|
|
14205
14250
|
},
|
|
14206
14251
|
async ({ ref, timeoutMs }) => {
|
|
14207
14252
|
const thread = await orch.waitForTurn(ref, mcpWaitForTurnTimeoutMs(timeoutMs), {
|
|
@@ -14229,7 +14274,7 @@ async function startMcpServer() {
|
|
|
14229
14274
|
server.tool(
|
|
14230
14275
|
"get_turn_result",
|
|
14231
14276
|
"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:
|
|
14277
|
+
{ ref: z11.string() },
|
|
14233
14278
|
async ({ ref }) => {
|
|
14234
14279
|
const result = orch.getTurnResult(ref);
|
|
14235
14280
|
const failureClass = result.taskState === "failed" && result.status !== "broken" ? classifyTurnFailure(result.lastError || result.text) : null;
|
|
@@ -14247,9 +14292,9 @@ async function startMcpServer() {
|
|
|
14247
14292
|
"stop_chat",
|
|
14248
14293
|
"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
14294
|
{
|
|
14250
|
-
ref:
|
|
14251
|
-
force:
|
|
14252
|
-
reason:
|
|
14295
|
+
ref: z11.string(),
|
|
14296
|
+
force: z11.boolean().optional(),
|
|
14297
|
+
reason: z11.string().optional().describe("Why this chat is stopping. Stored on the thread for the next session.")
|
|
14253
14298
|
},
|
|
14254
14299
|
async ({ ref, force, reason }) => {
|
|
14255
14300
|
const t = orch.getThread(ref);
|
|
@@ -14275,8 +14320,8 @@ async function startMcpServer() {
|
|
|
14275
14320
|
"get_diff",
|
|
14276
14321
|
"Compact diff summary (capped hunks, paginated)",
|
|
14277
14322
|
{
|
|
14278
|
-
ref:
|
|
14279
|
-
maxFiles:
|
|
14323
|
+
ref: z11.string(),
|
|
14324
|
+
maxFiles: z11.number().optional()
|
|
14280
14325
|
},
|
|
14281
14326
|
async ({ ref, maxFiles }) => {
|
|
14282
14327
|
const summary = await orch.diffSummary(ref);
|
|
@@ -14289,7 +14334,7 @@ async function startMcpServer() {
|
|
|
14289
14334
|
server.tool(
|
|
14290
14335
|
"get_pr_checks",
|
|
14291
14336
|
"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:
|
|
14337
|
+
{ ref: z11.string().describe("Worktree thread id/ref") },
|
|
14293
14338
|
async ({ ref }) => {
|
|
14294
14339
|
try {
|
|
14295
14340
|
const checks = await orch.getPrChecks(ref);
|
|
@@ -14303,7 +14348,7 @@ async function startMcpServer() {
|
|
|
14303
14348
|
server.tool(
|
|
14304
14349
|
"request_review",
|
|
14305
14350
|
'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:
|
|
14351
|
+
{ ref: z11.string().describe("Worktree thread id/ref to review") },
|
|
14307
14352
|
async ({ ref }) => {
|
|
14308
14353
|
try {
|
|
14309
14354
|
const tab = await orch.requestReview(ref);
|
|
@@ -14325,8 +14370,8 @@ async function startMcpServer() {
|
|
|
14325
14370
|
"ask_git",
|
|
14326
14371
|
"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
14372
|
{
|
|
14328
|
-
ref:
|
|
14329
|
-
action:
|
|
14373
|
+
ref: z11.string().describe("Worktree thread id/ref"),
|
|
14374
|
+
action: z11.enum(AGENT_GIT_ACTIONS).describe(
|
|
14330
14375
|
"commit-push | create-draft | create-web | resolve-conflicts | ready-for-review | merge"
|
|
14331
14376
|
)
|
|
14332
14377
|
},
|
|
@@ -14355,7 +14400,7 @@ async function startMcpServer() {
|
|
|
14355
14400
|
}
|
|
14356
14401
|
}
|
|
14357
14402
|
);
|
|
14358
|
-
const agentEnum =
|
|
14403
|
+
const agentEnum = z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]);
|
|
14359
14404
|
server.tool(
|
|
14360
14405
|
"list_models",
|
|
14361
14406
|
"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 +14421,12 @@ async function startMcpServer() {
|
|
|
14376
14421
|
"fork_workspace",
|
|
14377
14422
|
"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
14423
|
{
|
|
14379
|
-
ref:
|
|
14380
|
-
through_index:
|
|
14424
|
+
ref: z11.string().describe("Worktree thread id/ref to fork"),
|
|
14425
|
+
through_index: z11.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
|
|
14381
14426
|
agent: agentEnum.optional().describe("Agent for the forked chat (default: same as source)"),
|
|
14382
|
-
acpHarness:
|
|
14383
|
-
model:
|
|
14384
|
-
title:
|
|
14427
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
|
|
14428
|
+
model: z11.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
|
|
14429
|
+
title: z11.string().optional()
|
|
14385
14430
|
},
|
|
14386
14431
|
async ({ ref, through_index, agent, model, title, acpHarness }) => {
|
|
14387
14432
|
try {
|
|
@@ -14416,12 +14461,12 @@ async function startMcpServer() {
|
|
|
14416
14461
|
"fork_chat",
|
|
14417
14462
|
"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
14463
|
{
|
|
14419
|
-
ref:
|
|
14420
|
-
through_index:
|
|
14464
|
+
ref: z11.string().describe("Thread id/ref to fork (worktree agent or orchestration chat)"),
|
|
14465
|
+
through_index: z11.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
|
|
14421
14466
|
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:
|
|
14467
|
+
acpHarness: z11.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
|
|
14468
|
+
model: z11.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
|
|
14469
|
+
title: z11.string().optional()
|
|
14425
14470
|
},
|
|
14426
14471
|
async ({ ref, through_index, agent, model, title, acpHarness }) => {
|
|
14427
14472
|
try {
|
|
@@ -14460,7 +14505,7 @@ async function startMcpServer() {
|
|
|
14460
14505
|
server.tool(
|
|
14461
14506
|
"run_setup",
|
|
14462
14507
|
"Re-run workspace setup (Sideboard/Conductor settings, .cursor/worktrees.json, or script/setup). New worktrees already run this automatically.",
|
|
14463
|
-
{ ref:
|
|
14508
|
+
{ ref: z11.string() },
|
|
14464
14509
|
async ({ ref }) => {
|
|
14465
14510
|
const result = await orch.runSetup(ref);
|
|
14466
14511
|
return mcpJson(result);
|
|
@@ -14469,7 +14514,7 @@ async function startMcpServer() {
|
|
|
14469
14514
|
server.tool(
|
|
14470
14515
|
"add_project",
|
|
14471
14516
|
"Register a git repo as a Sideboard workspace",
|
|
14472
|
-
{ repoPath:
|
|
14517
|
+
{ repoPath: z11.string() },
|
|
14473
14518
|
async ({ repoPath }) => {
|
|
14474
14519
|
const ws = await orch.addWorkspace(repoPath);
|
|
14475
14520
|
return mcpJson(ws);
|
|
@@ -14478,7 +14523,7 @@ async function startMcpServer() {
|
|
|
14478
14523
|
server.tool(
|
|
14479
14524
|
"remove_project",
|
|
14480
14525
|
"Unregister a Sideboard workspace and archive its chats",
|
|
14481
|
-
{ repoPath:
|
|
14526
|
+
{ repoPath: z11.string() },
|
|
14482
14527
|
async ({ repoPath }) => {
|
|
14483
14528
|
await orch.removeWorkspace(repoPath);
|
|
14484
14529
|
return { content: [{ type: "text", text: "ok" }] };
|
|
@@ -14488,12 +14533,12 @@ async function startMcpServer() {
|
|
|
14488
14533
|
"fanout",
|
|
14489
14534
|
"Best-of-n: create one thread per agent with the same prompt (parallel attempts)",
|
|
14490
14535
|
{
|
|
14491
|
-
prompt:
|
|
14492
|
-
agents:
|
|
14493
|
-
repoPath:
|
|
14494
|
-
sourceType:
|
|
14495
|
-
sourceRef:
|
|
14496
|
-
title:
|
|
14536
|
+
prompt: z11.string(),
|
|
14537
|
+
agents: z11.array(z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"])),
|
|
14538
|
+
repoPath: z11.string(),
|
|
14539
|
+
sourceType: z11.enum(["branch", "pr", "ticket"]).optional(),
|
|
14540
|
+
sourceRef: z11.string().optional(),
|
|
14541
|
+
title: z11.string().optional()
|
|
14497
14542
|
},
|
|
14498
14543
|
async (args) => {
|
|
14499
14544
|
const threads = await orch.bestOfN(args);
|
|
@@ -14511,8 +14556,8 @@ async function startMcpServer() {
|
|
|
14511
14556
|
"list_branches",
|
|
14512
14557
|
"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
14558
|
{
|
|
14514
|
-
repoPath:
|
|
14515
|
-
unmergedOnly:
|
|
14559
|
+
repoPath: z11.string(),
|
|
14560
|
+
unmergedOnly: z11.boolean().optional()
|
|
14516
14561
|
},
|
|
14517
14562
|
async ({ repoPath, unmergedOnly }) => {
|
|
14518
14563
|
const root = await resolveRepoRoot(repoPath);
|
|
@@ -14533,19 +14578,19 @@ async function startMcpServer() {
|
|
|
14533
14578
|
"list_prs",
|
|
14534
14579
|
`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
14580
|
{
|
|
14536
|
-
repoPath:
|
|
14537
|
-
query:
|
|
14538
|
-
queue:
|
|
14581
|
+
repoPath: z11.string(),
|
|
14582
|
+
query: z11.string().optional().describe("GitHub search tokens (title, draft:true, \u2026)"),
|
|
14583
|
+
queue: z11.enum(["review", "mine", "approved", "changes"]).optional().describe(
|
|
14539
14584
|
"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
14585
|
),
|
|
14541
|
-
state:
|
|
14542
|
-
label:
|
|
14586
|
+
state: z11.enum(["open", "closed", "merged", "all", "review"]).optional().describe("GitHub PR state (default open). review is an alias for queue=review."),
|
|
14587
|
+
label: z11.string().optional().describe(
|
|
14543
14588
|
"GitHub label / workflow tag. Comma-separated AND. Examples: eng-review, eng-approved, eng-requested-changes"
|
|
14544
14589
|
),
|
|
14545
|
-
reviewer:
|
|
14590
|
+
reviewer: z11.string().optional().describe(
|
|
14546
14591
|
"me (review requested of you), unassigned (no individual reviewer; team queues like engineering-team still count), all, or a GitHub login"
|
|
14547
14592
|
),
|
|
14548
|
-
limit:
|
|
14593
|
+
limit: z11.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true.")
|
|
14549
14594
|
},
|
|
14550
14595
|
async ({ repoPath, query, queue, state, label, reviewer, limit }) => {
|
|
14551
14596
|
const root = await resolveRepoRoot(repoPath);
|
|
@@ -14578,7 +14623,7 @@ async function startMcpServer() {
|
|
|
14578
14623
|
server.tool(
|
|
14579
14624
|
"get_pr_stack",
|
|
14580
14625
|
"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:
|
|
14626
|
+
{ ref: z11.string() },
|
|
14582
14627
|
async ({ ref }) => {
|
|
14583
14628
|
const stack = await orch.getPrStack(ref);
|
|
14584
14629
|
return mcpJson(stack);
|
|
@@ -14588,8 +14633,8 @@ async function startMcpServer() {
|
|
|
14588
14633
|
"open_pr_stack_layers",
|
|
14589
14634
|
"Materialize one worktree+thread per stack layer (or a single 1-based layer). Pass a thread ref already on the stack.",
|
|
14590
14635
|
{
|
|
14591
|
-
ref:
|
|
14592
|
-
layer:
|
|
14636
|
+
ref: z11.string(),
|
|
14637
|
+
layer: z11.number().int().positive().optional()
|
|
14593
14638
|
},
|
|
14594
14639
|
async ({ ref, layer }) => {
|
|
14595
14640
|
const result = await orch.openPrStackLayers(ref, { layer });
|
|
@@ -14612,9 +14657,9 @@ async function startMcpServer() {
|
|
|
14612
14657
|
"add_stack_layer",
|
|
14613
14658
|
"Add a branch on top of the current stack (`gh stack add`) and open a worktree+thread for it.",
|
|
14614
14659
|
{
|
|
14615
|
-
ref:
|
|
14616
|
-
branchName:
|
|
14617
|
-
title:
|
|
14660
|
+
ref: z11.string(),
|
|
14661
|
+
branchName: z11.string(),
|
|
14662
|
+
title: z11.string().optional()
|
|
14618
14663
|
},
|
|
14619
14664
|
async ({ ref, branchName, title }) => {
|
|
14620
14665
|
const result = await orch.addStackLayer(ref, branchName, { title });
|
|
@@ -14632,11 +14677,11 @@ async function startMcpServer() {
|
|
|
14632
14677
|
"create_pr_stack",
|
|
14633
14678
|
"Create a new GitHub PR stack with one Sideboard worktree per layer (bottom\u2192top branch names). Requires `gh extension install github/gh-stack`.",
|
|
14634
14679
|
{
|
|
14635
|
-
repoPath:
|
|
14636
|
-
branches:
|
|
14637
|
-
agent:
|
|
14638
|
-
base:
|
|
14639
|
-
title:
|
|
14680
|
+
repoPath: z11.string(),
|
|
14681
|
+
branches: z11.array(z11.string()).min(1),
|
|
14682
|
+
agent: z11.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]),
|
|
14683
|
+
base: z11.string().optional(),
|
|
14684
|
+
title: z11.string().optional()
|
|
14640
14685
|
},
|
|
14641
14686
|
async (args) => {
|
|
14642
14687
|
const result = await orch.createPrStack({
|
|
@@ -14664,10 +14709,10 @@ async function startMcpServer() {
|
|
|
14664
14709
|
"list_issues",
|
|
14665
14710
|
"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
14711
|
{
|
|
14667
|
-
repoPath:
|
|
14668
|
-
query:
|
|
14669
|
-
assignee:
|
|
14670
|
-
limit:
|
|
14712
|
+
repoPath: z11.string(),
|
|
14713
|
+
query: z11.string().optional().describe("Search title, identifier, or description"),
|
|
14714
|
+
assignee: z11.string().optional().describe("me (Linear default), unassigned, all, a user id, or a GitHub login"),
|
|
14715
|
+
limit: z11.number().int().positive().max(250).optional().describe("Page size (default 40, max 250). Raise when truncated is true."),
|
|
14671
14716
|
updatedSince: mcpIssueUpdatedSinceSchema
|
|
14672
14717
|
},
|
|
14673
14718
|
async ({ repoPath, query, assignee, limit, updatedSince }) => {
|
|
@@ -16684,7 +16729,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
16684
16729
|
await continueOnReply(threadId, prompt);
|
|
16685
16730
|
return;
|
|
16686
16731
|
}
|
|
16687
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
16732
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-EY6GCYQG.js");
|
|
16688
16733
|
await getOrchestrator2().send(threadId, prompt);
|
|
16689
16734
|
} catch {
|
|
16690
16735
|
}
|
|
@@ -17264,6 +17309,7 @@ export {
|
|
|
17264
17309
|
compactPartsForSummaryMessage,
|
|
17265
17310
|
compactSummaryPart,
|
|
17266
17311
|
computeNextRunAt,
|
|
17312
|
+
computerUseEnabled,
|
|
17267
17313
|
conductorBundledBinDir,
|
|
17268
17314
|
conductorDbPath,
|
|
17269
17315
|
confirmClaudeUsageOverLimitEnabled,
|