@sideboard-ai/core 0.1.340 → 0.1.342
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-OGOHNRVB.js → abletime-MSIMJKKQ.js} +4 -4
- package/dist/{abletime-TNONAVJG.js → abletime-ZIYFR4SI.js} +4 -4
- package/dist/{abletime-oauth-DAZEUQJI.js → abletime-oauth-2RUKRZYZ.js} +3 -3
- package/dist/{abletime-oauth-TYDQ73GK.js → abletime-oauth-IQZ3LOB2.js} +3 -3
- package/dist/{abletime-rest-B4VI46MI.js → abletime-rest-7YAO5B74.js} +3 -3
- package/dist/{abletime-rest-3FWZGTX6.js → abletime-rest-UBLSGMSA.js} +3 -3
- package/dist/{agents-QFXIBIKJ.js → agents-7DCNOMFP.js} +8 -8
- package/dist/{agents-6MSZHZOM.js → agents-LNZ465IM.js} +8 -8
- package/dist/{app-settings-KOSVLMO5.js → app-settings-FS7TM55D.js} +11 -1
- package/dist/{app-settings-YS5AUJTF.js → app-settings-Q2F57NVK.js} +11 -1
- package/dist/{chunk-BD7QARIJ.js → chunk-2BLJ726H.js} +6 -5
- package/dist/{chunk-SYTTUNX6.js → chunk-3DMRQB4Y.js} +1 -1
- package/dist/{chunk-OMKTX7ZW.js → chunk-3J3XOIHF.js} +3 -3
- package/dist/{chunk-W6J3ZWLJ.js → chunk-4HELMBYR.js} +2 -2
- package/dist/{chunk-HNW5KMGK.js → chunk-4PXHJA5K.js} +2 -2
- package/dist/{chunk-QWFNKOGA.js → chunk-4TTTEKNV.js} +2 -2
- package/dist/{chunk-EVYOONTE.js → chunk-5BFEHSHO.js} +6 -5
- package/dist/{chunk-EZZY3EAZ.js → chunk-5HUR77ZH.js} +666 -62
- package/dist/{chunk-5TVRPOVS.js → chunk-5SJGR3VS.js} +1 -1
- package/dist/{chunk-I2C5ZRVO.js → chunk-5TS3KVGI.js} +1 -1
- package/dist/{chunk-5FGQTB2Z.js → chunk-6RO2AOE5.js} +2 -2
- package/dist/{chunk-FEGRY7NL.js → chunk-A4ZI7SA3.js} +3 -3
- package/dist/{chunk-DYUAVL5S.js → chunk-BIM24I3O.js} +1 -0
- package/dist/{chunk-KAIOL2M5.js → chunk-D7US5R4H.js} +1 -1
- package/dist/{chunk-NHLTTT5G.js → chunk-DEQLDEYR.js} +7 -6
- package/dist/{chunk-ELDHERAD.js → chunk-DZF25KTX.js} +661 -56
- package/dist/{chunk-4OVQGZEI.js → chunk-G3UV3GXJ.js} +48 -26
- package/dist/{chunk-Q73I6I2K.js → chunk-GUIJMZQG.js} +1 -1
- package/dist/{chunk-AFSLMWQK.js → chunk-JHT3CYLT.js} +42 -3
- package/dist/{chunk-BDQFZAE6.js → chunk-JX3OWNOT.js} +43 -3
- package/dist/{chunk-6ABL7HZN.js → chunk-LDJT3TLN.js} +10 -8
- package/dist/{chunk-LYJ5AVK4.js → chunk-LHU6ZBFB.js} +2 -2
- package/dist/{chunk-WSZIJNAR.js → chunk-NDBMDHQ5.js} +5 -5
- package/dist/{chunk-PEJ3N5VE.js → chunk-NGIGRAZB.js} +7 -6
- package/dist/{chunk-4BRO5LNX.js → chunk-O2IRQAFB.js} +3 -3
- package/dist/{chunk-5KH3EQ2C.js → chunk-ORO4ENZR.js} +1 -0
- package/dist/{chunk-ERCYQTJU.js → chunk-RTZO2YJC.js} +48 -26
- package/dist/{chunk-VHHEQP5V.js → chunk-S3DTEGMK.js} +11 -9
- package/dist/{chunk-N6TGSJVC.js → chunk-S3UGLMGE.js} +31 -0
- package/dist/{chunk-FCBUDWP6.js → chunk-SLLTEMIL.js} +2 -2
- package/dist/{chunk-23KYDM2U.js → chunk-TKEYXNXY.js} +31 -0
- package/dist/{chunk-4SP26Z6H.js → chunk-WO7VF4FG.js} +5 -5
- package/dist/{conductor-LEPTWN2U.js → conductor-4SWJM5FS.js} +6 -6
- package/dist/{conductor-AUUXCJZT.js → conductor-Q433HU77.js} +6 -6
- package/dist/{coordinator-prompt-VO42IZWS.js → coordinator-prompt-5QHWCO7V.js} +4 -4
- package/dist/{coordinator-prompt-CIWWP2P6.js → coordinator-prompt-Z7PPP45X.js} +4 -4
- package/dist/{global-workspace-FKXLFKYX.js → global-workspace-DL4K4K7O.js} +4 -4
- package/dist/{global-workspace-MCAREQI7.js → global-workspace-VDCZMFCZ.js} +4 -4
- package/dist/index.cjs +1018 -188
- package/dist/index.d.cts +57 -7
- package/dist/index.d.ts +57 -7
- package/dist/index.js +135 -30
- package/dist/{linear-P3LP455O.js → linear-JE4WAZ3W.js} +2 -2
- package/dist/{linear-5E2WI4QQ.js → linear-UXMDJAD4.js} +2 -2
- package/dist/{linear-list-Y3INIBYH.js → linear-list-I4NAOWPN.js} +1 -1
- package/dist/{linear-list-AXK62DPW.js → linear-list-KDLU7QWX.js} +1 -1
- package/dist/mcp/run-stdio.cjs +922 -114
- package/dist/mcp/run-stdio.js +119 -27
- package/dist/{optional-cli-6J6C4I3X.js → optional-cli-7QXXPEN6.js} +3 -3
- package/dist/{optional-cli-X6I35UNI.js → optional-cli-RUUCLNSM.js} +4 -4
- package/dist/{orchestrator-JTFCNXVR.js → orchestrator-BPCM4OP3.js} +11 -11
- package/dist/{orchestrator-NOQDMYLB.js → orchestrator-HIWWPWL5.js} +11 -11
- package/dist/{thread-store-DCO5MZWJ.js → thread-store-HETUMDVA.js} +2 -2
- package/dist/{thread-store-QGBPSZU2.js → thread-store-ILM2ZJCB.js} +2 -2
- package/dist/{workspaces-D6FQCZRK.js → workspaces-EIIHHH4S.js} +4 -4
- package/dist/{workspaces-Y25L2EPV.js → workspaces-MX4W4SSB.js} +4 -4
- package/dist/{worktree-S4YOAYRA.js → worktree-BD3EJE24.js} +5 -3
- package/dist/{worktree-GWS77LWX.js → worktree-QBVLKACU.js} +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -17,13 +17,13 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-A4ZI7SA3.js";
|
|
21
21
|
import {
|
|
22
22
|
clearOptionalCliPresenceCache,
|
|
23
23
|
detectOptionalServiceClis,
|
|
24
24
|
installOptionalServiceCli,
|
|
25
25
|
optionalCliPresence
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-SLLTEMIL.js";
|
|
27
27
|
import {
|
|
28
28
|
AGENT_GIT_ACTIONS,
|
|
29
29
|
BOARD_COLUMN_DEFS,
|
|
@@ -51,6 +51,7 @@ import {
|
|
|
51
51
|
applyPromptCacheTtlEnv,
|
|
52
52
|
applyThreadIntoMain,
|
|
53
53
|
applyWorkspaceTags,
|
|
54
|
+
armGithubEdgeWatch,
|
|
54
55
|
armSchedules,
|
|
55
56
|
askToolPermission,
|
|
56
57
|
assembleHomeBoard,
|
|
@@ -219,7 +220,7 @@ import {
|
|
|
219
220
|
worktreeCleanupSettings,
|
|
220
221
|
writeAgentBlock,
|
|
221
222
|
writeWorktreeFile
|
|
222
|
-
} from "./chunk-
|
|
223
|
+
} from "./chunk-DZF25KTX.js";
|
|
223
224
|
import {
|
|
224
225
|
OPTIONAL_SERVICES,
|
|
225
226
|
OPTIONAL_SERVICE_IDS,
|
|
@@ -235,7 +236,7 @@ import {
|
|
|
235
236
|
optionalServiceConnected,
|
|
236
237
|
optionalServiceSpec,
|
|
237
238
|
verifyOptionalService
|
|
238
|
-
} from "./chunk-
|
|
239
|
+
} from "./chunk-4TTTEKNV.js";
|
|
239
240
|
import {
|
|
240
241
|
LEGACY_PLAN_FILE_REL,
|
|
241
242
|
PLAN_FILE_NAME,
|
|
@@ -292,7 +293,7 @@ import {
|
|
|
292
293
|
startLinearOAuth,
|
|
293
294
|
updateLinearIssue,
|
|
294
295
|
validateLinearApiKey
|
|
295
|
-
} from "./chunk-
|
|
296
|
+
} from "./chunk-GUIJMZQG.js";
|
|
296
297
|
import {
|
|
297
298
|
downloadAuthenticatedFile,
|
|
298
299
|
extractHttpUrls,
|
|
@@ -380,7 +381,7 @@ import {
|
|
|
380
381
|
userMcpNamesToDisable,
|
|
381
382
|
worktreeMcpToolNames,
|
|
382
383
|
writeInjectedMcpConfig
|
|
383
|
-
} from "./chunk-
|
|
384
|
+
} from "./chunk-LDJT3TLN.js";
|
|
384
385
|
import {
|
|
385
386
|
getAgentSetupInfo,
|
|
386
387
|
installAgent,
|
|
@@ -392,7 +393,7 @@ import {
|
|
|
392
393
|
prepareTerminalCommand,
|
|
393
394
|
resolveLoginCommand,
|
|
394
395
|
whichOnPath
|
|
395
|
-
} from "./chunk-
|
|
396
|
+
} from "./chunk-6RO2AOE5.js";
|
|
396
397
|
import {
|
|
397
398
|
brightsyMcpServerName,
|
|
398
399
|
connectBrightsyTeam,
|
|
@@ -403,7 +404,7 @@ import {
|
|
|
403
404
|
listConnectedBrightsyTeams,
|
|
404
405
|
switchBrightsyAccount
|
|
405
406
|
} from "./chunk-XOEKCE6L.js";
|
|
406
|
-
import "./chunk-
|
|
407
|
+
import "./chunk-D7US5R4H.js";
|
|
407
408
|
import {
|
|
408
409
|
BRIGHTSY_SUMMARIZE_CONTEXT_TOOL,
|
|
409
410
|
CHARS_PER_CONTEXT_TOKEN,
|
|
@@ -514,7 +515,7 @@ import {
|
|
|
514
515
|
workspaceAgentChatSummaries,
|
|
515
516
|
worktreeRunPortsPath,
|
|
516
517
|
wrapReviewSkillMarkdown
|
|
517
|
-
} from "./chunk-
|
|
518
|
+
} from "./chunk-NGIGRAZB.js";
|
|
518
519
|
import {
|
|
519
520
|
STDERR_EVENT_MAX_CHARS,
|
|
520
521
|
STDOUT_EVENT_MAX_CHARS,
|
|
@@ -556,7 +557,7 @@ import {
|
|
|
556
557
|
visibleToolRowDetail,
|
|
557
558
|
withEventParentId,
|
|
558
559
|
withEventsParentId
|
|
559
|
-
} from "./chunk-
|
|
560
|
+
} from "./chunk-BIM24I3O.js";
|
|
560
561
|
import "./chunk-7H655NEW.js";
|
|
561
562
|
import {
|
|
562
563
|
ABLETIME_OAUTH_CALLBACK_PATH,
|
|
@@ -580,10 +581,10 @@ import {
|
|
|
580
581
|
parseAbleTimeOAuthCallbackUrl,
|
|
581
582
|
resolveAbleTimeOAuthHost,
|
|
582
583
|
startAbleTimeOAuth
|
|
583
|
-
} from "./chunk-
|
|
584
|
+
} from "./chunk-O2IRQAFB.js";
|
|
584
585
|
import {
|
|
585
586
|
looksLikeAbleTimeUlid
|
|
586
|
-
} from "./chunk-
|
|
587
|
+
} from "./chunk-4HELMBYR.js";
|
|
587
588
|
import {
|
|
588
589
|
ABLETIME_MCP_PATH,
|
|
589
590
|
ABLETIME_MCP_PM_PATH,
|
|
@@ -604,7 +605,7 @@ import {
|
|
|
604
605
|
normalizeAbleTimeCredential,
|
|
605
606
|
normalizeAbleTimeHost,
|
|
606
607
|
rewriteAbleTimeError
|
|
607
|
-
} from "./chunk-
|
|
608
|
+
} from "./chunk-WO7VF4FG.js";
|
|
608
609
|
import {
|
|
609
610
|
CLOUD_COORDINATOR_BUSY_REPLY,
|
|
610
611
|
CLOUD_COORDINATOR_CANCELED_REPLY,
|
|
@@ -657,7 +658,7 @@ import {
|
|
|
657
658
|
stageBuffersAsAttachments,
|
|
658
659
|
syncWorkspacesFromThreads,
|
|
659
660
|
takenTeamSlugsForOrchestration
|
|
660
|
-
} from "./chunk-
|
|
661
|
+
} from "./chunk-2BLJ726H.js";
|
|
661
662
|
import {
|
|
662
663
|
GITHUB_PR_BODY_MAX_CHARS,
|
|
663
664
|
GITHUB_PR_BODY_SAFE_CHARS,
|
|
@@ -693,6 +694,7 @@ import {
|
|
|
693
694
|
formatRateLimitResetHint,
|
|
694
695
|
getPr,
|
|
695
696
|
getPrChecks,
|
|
697
|
+
getPrCiChecks,
|
|
696
698
|
getPrDetails,
|
|
697
699
|
getPrForHeadBranch,
|
|
698
700
|
getPrMeta,
|
|
@@ -746,9 +748,10 @@ import {
|
|
|
746
748
|
suggestSlug,
|
|
747
749
|
switchWorktreeBranch,
|
|
748
750
|
warmGithubAgentAuth
|
|
749
|
-
} from "./chunk-
|
|
751
|
+
} from "./chunk-G3UV3GXJ.js";
|
|
750
752
|
import {
|
|
751
753
|
FAMOUS_SOCCER_TEAMS,
|
|
754
|
+
SCHEDULE_RUN_HISTORY_LIMIT,
|
|
752
755
|
WEEKDAY_LABELS,
|
|
753
756
|
allocateTeamName,
|
|
754
757
|
appendMessage,
|
|
@@ -802,7 +805,7 @@ import {
|
|
|
802
805
|
worktreeNameFromPath,
|
|
803
806
|
worktreeSlugForTicket,
|
|
804
807
|
writeThread
|
|
805
|
-
} from "./chunk-
|
|
808
|
+
} from "./chunk-JX3OWNOT.js";
|
|
806
809
|
import "./chunk-BMRJNRQK.js";
|
|
807
810
|
import {
|
|
808
811
|
BRIGHTSY_OAUTH_CLIENT_ID,
|
|
@@ -937,6 +940,9 @@ import {
|
|
|
937
940
|
HISTORY_MAX_DAYS_DEFAULT,
|
|
938
941
|
HISTORY_MAX_DAYS_MAX,
|
|
939
942
|
ISSUE_SOURCE_LABELS,
|
|
943
|
+
MAX_ORCH_THREADS_DEFAULT,
|
|
944
|
+
MAX_ORCH_THREADS_MAX,
|
|
945
|
+
MAX_ORCH_THREADS_MIN,
|
|
940
946
|
ORCHESTRATOR_AGENT_KINDS,
|
|
941
947
|
PROFILE_NOTES_MAX,
|
|
942
948
|
READ_ALOUD_RATE_DEFAULT,
|
|
@@ -1021,6 +1027,7 @@ import {
|
|
|
1021
1027
|
loadAppSettings,
|
|
1022
1028
|
loadSecretVault,
|
|
1023
1029
|
maxConcurrentAgents,
|
|
1030
|
+
maxOrchThreads,
|
|
1024
1031
|
mergeSlackClientIds,
|
|
1025
1032
|
mergeUsage,
|
|
1026
1033
|
nextThinkingEffort,
|
|
@@ -1086,10 +1093,11 @@ import {
|
|
|
1086
1093
|
updateOpencodeSettings,
|
|
1087
1094
|
updateProjectProfileSettings,
|
|
1088
1095
|
usageOnLimit,
|
|
1096
|
+
wakeOrchestratorOnGithubEdgesEnabled,
|
|
1089
1097
|
withTurnScopedCost,
|
|
1090
1098
|
writeSecureJson,
|
|
1091
1099
|
writeViewerContext
|
|
1092
|
-
} from "./chunk-
|
|
1100
|
+
} from "./chunk-TKEYXNXY.js";
|
|
1093
1101
|
import {
|
|
1094
1102
|
stripNestedElectronEnv
|
|
1095
1103
|
} from "./chunk-4TR3HZFT.js";
|
|
@@ -2540,6 +2548,47 @@ function satisfyOrderDependency(id, satisfied = true) {
|
|
|
2540
2548
|
return edge;
|
|
2541
2549
|
}
|
|
2542
2550
|
|
|
2551
|
+
// src/threads/wake-on-github-edges.ts
|
|
2552
|
+
function wakeOnGithubEdgesTargetRef(opts) {
|
|
2553
|
+
const requested = opts.requestedRef?.trim() || "";
|
|
2554
|
+
if (!opts.ownWorktreeOnly) {
|
|
2555
|
+
if (!requested) throw new Error("Pass a chat id on the workspace.");
|
|
2556
|
+
return requested;
|
|
2557
|
+
}
|
|
2558
|
+
const caller = opts.caller;
|
|
2559
|
+
if (!caller || isGlobalThread(caller) || caller.sourceType === "orchestration") {
|
|
2560
|
+
throw new Error("CI and review wakes belong on a project workspace. This chat is not one.");
|
|
2561
|
+
}
|
|
2562
|
+
if (!requested || requested === caller.id) return caller.id;
|
|
2563
|
+
const other = opts.find(requested);
|
|
2564
|
+
if (!other || normalizeWorktreePath(other.worktreePath) !== normalizeWorktreePath(caller.worktreePath)) {
|
|
2565
|
+
throw new Error("You can only change this switch on this workspace.");
|
|
2566
|
+
}
|
|
2567
|
+
return other.id;
|
|
2568
|
+
}
|
|
2569
|
+
function applyWakeOnGithubEdges(threadRef, enabled) {
|
|
2570
|
+
if (!wakeOrchestratorOnGithubEdgesEnabled()) {
|
|
2571
|
+
throw new Error(
|
|
2572
|
+
"Settings \u2192 Advanced \u2192 Wake orchestrator on CI / review-requested is off. Turn that on in Settings. Do not change it from this chat."
|
|
2573
|
+
);
|
|
2574
|
+
}
|
|
2575
|
+
const thread = findThreadByRef(threadRef);
|
|
2576
|
+
if (!thread) throw new Error(`Thread not found: ${threadRef}`);
|
|
2577
|
+
if (isGlobalThread(thread) || thread.sourceType === "orchestration") {
|
|
2578
|
+
throw new Error("CI and review wakes belong on a project workspace. Pass a worktree chat id.");
|
|
2579
|
+
}
|
|
2580
|
+
const on = enabled === true;
|
|
2581
|
+
const siblings = threadsSharingWorktree(thread.worktreePath);
|
|
2582
|
+
const targets = siblings.length > 0 ? siblings : [thread];
|
|
2583
|
+
let updated = thread;
|
|
2584
|
+
for (const row2 of targets) {
|
|
2585
|
+
const written = updateThread(row2.id, { wakeOnGithubEdges: on ? true : void 0 });
|
|
2586
|
+
if (!on) delete written.wakeOnGithubEdges;
|
|
2587
|
+
if (written.id === thread.id) updated = written;
|
|
2588
|
+
}
|
|
2589
|
+
return updated;
|
|
2590
|
+
}
|
|
2591
|
+
|
|
2543
2592
|
// src/host/awake.ts
|
|
2544
2593
|
function hostKeepsMacAwake(input) {
|
|
2545
2594
|
if (input.phoneConnected) return true;
|
|
@@ -9668,6 +9717,7 @@ async function startHeadlessHost(opts) {
|
|
|
9668
9717
|
claimDesktopHost();
|
|
9669
9718
|
bootstrapSystemCa();
|
|
9670
9719
|
armSchedules();
|
|
9720
|
+
armGithubEdgeWatch();
|
|
9671
9721
|
const ac = new AbortController();
|
|
9672
9722
|
let stopped = false;
|
|
9673
9723
|
let phoneConnected = false;
|
|
@@ -9694,7 +9744,7 @@ async function startHeadlessHost(opts) {
|
|
|
9694
9744
|
};
|
|
9695
9745
|
const refreshRunning = async () => {
|
|
9696
9746
|
try {
|
|
9697
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
9747
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-HIWWPWL5.js");
|
|
9698
9748
|
agentsRunning = getOrchestrator2().getRuntime().running;
|
|
9699
9749
|
} catch {
|
|
9700
9750
|
agentsRunning = 0;
|
|
@@ -9745,6 +9795,7 @@ async function startHeadlessHost(opts) {
|
|
|
9745
9795
|
return;
|
|
9746
9796
|
}
|
|
9747
9797
|
armSchedules();
|
|
9798
|
+
armGithubEdgeWatch();
|
|
9748
9799
|
void refreshRunning().then(() => refreshAwake());
|
|
9749
9800
|
}, REARM_MS);
|
|
9750
9801
|
timer.unref?.();
|
|
@@ -10123,8 +10174,22 @@ function orchCreateThreadAgentNote(input) {
|
|
|
10123
10174
|
}
|
|
10124
10175
|
|
|
10125
10176
|
// src/mcp/create-orch-child.ts
|
|
10126
|
-
var MAX_ORCH_THREADS = 5;
|
|
10127
10177
|
var CREATE_THREAD_TIMEOUT_MS = 9e4;
|
|
10178
|
+
function orchChildWorkspaceCount(threads, parentId) {
|
|
10179
|
+
const seen = /* @__PURE__ */ new Set();
|
|
10180
|
+
let unpathed = 0;
|
|
10181
|
+
for (const thread of threads) {
|
|
10182
|
+
if (thread.parentThreadId !== parentId) continue;
|
|
10183
|
+
if (isOrchestratorThread(thread)) continue;
|
|
10184
|
+
const raw = thread.worktreePath?.trim();
|
|
10185
|
+
if (!raw) {
|
|
10186
|
+
unpathed += 1;
|
|
10187
|
+
continue;
|
|
10188
|
+
}
|
|
10189
|
+
seen.add(normalizeWorktreePath(raw));
|
|
10190
|
+
}
|
|
10191
|
+
return seen.size + unpathed;
|
|
10192
|
+
}
|
|
10128
10193
|
function withTimeout(promise, ms, label) {
|
|
10129
10194
|
return new Promise((resolve, reject) => {
|
|
10130
10195
|
const timer = setTimeout(() => {
|
|
@@ -10162,11 +10227,12 @@ async function createOrchChildThread(orch, args, resolveNewThreadOptions2) {
|
|
|
10162
10227
|
parent = null;
|
|
10163
10228
|
}
|
|
10164
10229
|
if (parentId) {
|
|
10165
|
-
const
|
|
10166
|
-
|
|
10230
|
+
const cap = maxOrchThreads();
|
|
10231
|
+
const used = orchChildWorkspaceCount(orch.getThreads(false), parentId);
|
|
10232
|
+
if (used >= cap) {
|
|
10167
10233
|
return {
|
|
10168
10234
|
ok: false,
|
|
10169
|
-
text: `
|
|
10235
|
+
text: `Workspace cap (${cap}) reached for this orchestration session. Raise it in Settings \u2192 Advanced \u2192 Max orchestration threads.`
|
|
10170
10236
|
};
|
|
10171
10237
|
}
|
|
10172
10238
|
}
|
|
@@ -11524,13 +11590,13 @@ function whenFromUpdate(id, args) {
|
|
|
11524
11590
|
}
|
|
11525
11591
|
function createdHint(schedule) {
|
|
11526
11592
|
const awake = scheduleNeedsCaffeinate(schedule) ? " Caffeinate while automations are enabled is now on so the Mac can stay awake until this job is due." : "";
|
|
11527
|
-
const fresh = schedule.threadId ? " This job is removed when that chat is archived." : schedule.archiveChat === false ? " This job leaves the new chat open so you can keep talking." : " A new Global chat is archived when the run finishes (History keeps the last 5 runs). Pass archiveChat=false to leave it open.";
|
|
11593
|
+
const fresh = schedule.threadId ? " This job is removed when that chat is archived." : schedule.archiveChat === false ? " This job leaves the new chat open so you can keep talking." : " A new Global chat is archived when the run finishes (History keeps the last 5 archived chats; the schedule keeps the last 10 runs). Pass archiveChat=false to leave it open.";
|
|
11528
11594
|
return `Fires while Sideboard.app is running.${fresh}${awake}`;
|
|
11529
11595
|
}
|
|
11530
11596
|
function registerScheduleTools(server) {
|
|
11531
11597
|
server.tool(
|
|
11532
11598
|
"list_schedules",
|
|
11533
|
-
"List local Sideboard automations that trigger a chat when due. Jobs fire only while Sideboard.app is running on this Mac (sleep skips until wake). Shown in the sidebar after Board.",
|
|
11599
|
+
"List local Sideboard automations that trigger a chat when due. Each row includes runs, the last 10 fires ({at, threadId, error}), newest first. Jobs fire only while Sideboard.app is running on this Mac (sleep skips until wake; a skip is not a failed run). Shown in the sidebar after Board.",
|
|
11534
11600
|
{},
|
|
11535
11601
|
async () => {
|
|
11536
11602
|
try {
|
|
@@ -11542,7 +11608,7 @@ function registerScheduleTools(server) {
|
|
|
11542
11608
|
);
|
|
11543
11609
|
server.tool(
|
|
11544
11610
|
"create_schedule",
|
|
11545
|
-
"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
|
|
11611
|
+
"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.",
|
|
11546
11612
|
{
|
|
11547
11613
|
prompt: z7.string().describe("User message / goal queued when the automation fires"),
|
|
11548
11614
|
name: z7.string().optional(),
|
|
@@ -12134,7 +12200,7 @@ async function handleJobStop(params, _ctx) {
|
|
|
12134
12200
|
return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
|
|
12135
12201
|
}
|
|
12136
12202
|
async function defaultTurnWait(ref, timeoutMs) {
|
|
12137
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
12203
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-HIWWPWL5.js");
|
|
12138
12204
|
const orch = getOrchestrator2();
|
|
12139
12205
|
const thread = await orch.waitForTurn(ref, timeoutMs, {
|
|
12140
12206
|
resolveIfStillRunning: true
|
|
@@ -12487,7 +12553,7 @@ async function startMcpServer() {
|
|
|
12487
12553
|
);
|
|
12488
12554
|
}
|
|
12489
12555
|
try {
|
|
12490
|
-
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-
|
|
12556
|
+
const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-FS7TM55D.js");
|
|
12491
12557
|
orch.setMaxConcurrent(maxConcurrentAgents2());
|
|
12492
12558
|
} catch {
|
|
12493
12559
|
}
|
|
@@ -13033,10 +13099,40 @@ async function startMcpServer() {
|
|
|
13033
13099
|
}
|
|
13034
13100
|
}
|
|
13035
13101
|
);
|
|
13102
|
+
server.tool(
|
|
13103
|
+
"set_wake_on_github_edges",
|
|
13104
|
+
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.",
|
|
13105
|
+
{
|
|
13106
|
+
ref: z9.string().optional().describe(
|
|
13107
|
+
worktreeProfile ? "Omit for this chat. Another chat id only if it is on this same checkout." : "Chat id on the workspace."
|
|
13108
|
+
),
|
|
13109
|
+
enabled: z9.boolean().describe("True opts the checkout in. False turns it off.")
|
|
13110
|
+
},
|
|
13111
|
+
async ({ ref, enabled }) => {
|
|
13112
|
+
try {
|
|
13113
|
+
const callerId = process.env[SIDEBOARD_THREAD_ID_ENV]?.trim() || "";
|
|
13114
|
+
const target = wakeOnGithubEdgesTargetRef({
|
|
13115
|
+
ownWorktreeOnly: worktreeProfile,
|
|
13116
|
+
caller: callerId ? orch.getThread(callerId) : null,
|
|
13117
|
+
requestedRef: ref,
|
|
13118
|
+
find: (id) => orch.getThread(id)
|
|
13119
|
+
});
|
|
13120
|
+
const thread = applyWakeOnGithubEdges(target, enabled);
|
|
13121
|
+
return mcpJson({
|
|
13122
|
+
id: thread.id,
|
|
13123
|
+
worktreePath: thread.worktreePath,
|
|
13124
|
+
wakeOnGithubEdges: thread.wakeOnGithubEdges === true
|
|
13125
|
+
});
|
|
13126
|
+
} catch (err) {
|
|
13127
|
+
const message = err instanceof Error ? err.message : String(err);
|
|
13128
|
+
return mcpJson({ ok: false, message }, true);
|
|
13129
|
+
}
|
|
13130
|
+
}
|
|
13131
|
+
);
|
|
13036
13132
|
if (!worktreeProfile) {
|
|
13037
13133
|
registerConnectedIssueVendorTools(server);
|
|
13038
13134
|
const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-ZNUEZGHB.js");
|
|
13039
|
-
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-
|
|
13135
|
+
const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-FS7TM55D.js");
|
|
13040
13136
|
const accountDefaults = resolveThreadDefaults2();
|
|
13041
13137
|
const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
|
|
13042
13138
|
server.tool(
|
|
@@ -13067,7 +13163,7 @@ async function startMcpServer() {
|
|
|
13067
13163
|
);
|
|
13068
13164
|
server.tool(
|
|
13069
13165
|
"create_workspace",
|
|
13070
|
-
`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.`,
|
|
13166
|
+
`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.`,
|
|
13071
13167
|
{
|
|
13072
13168
|
sourceType: z9.enum(["branch", "pr", "ticket"]),
|
|
13073
13169
|
sourceRef: z9.string(),
|
|
@@ -15678,7 +15774,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
15678
15774
|
await continueOnReply(threadId, prompt);
|
|
15679
15775
|
return;
|
|
15680
15776
|
}
|
|
15681
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
15777
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-HIWWPWL5.js");
|
|
15682
15778
|
await getOrchestrator2().send(threadId, prompt);
|
|
15683
15779
|
} catch {
|
|
15684
15780
|
}
|
|
@@ -16031,6 +16127,9 @@ export {
|
|
|
16031
16127
|
LONG_RUNNING_SKILL_COMMAND,
|
|
16032
16128
|
LinearOAuthCancelledError,
|
|
16033
16129
|
MAX_ANTHROPIC_CACHE_CONTROL_BLOCKS,
|
|
16130
|
+
MAX_ORCH_THREADS_DEFAULT,
|
|
16131
|
+
MAX_ORCH_THREADS_MAX,
|
|
16132
|
+
MAX_ORCH_THREADS_MIN,
|
|
16034
16133
|
OPTIONAL_SERVICES,
|
|
16035
16134
|
OPTIONAL_SERVICE_IDS,
|
|
16036
16135
|
ORCHESTRATOR_AGENT_KINDS,
|
|
@@ -16063,6 +16162,7 @@ export {
|
|
|
16063
16162
|
RUN_PORTS_REL,
|
|
16064
16163
|
RUN_SCRIPT_DESKTOP_ADOPT_MS,
|
|
16065
16164
|
RemoteHub,
|
|
16165
|
+
SCHEDULE_RUN_HISTORY_LIMIT,
|
|
16066
16166
|
SEED_FULL_TOOL_MESSAGES,
|
|
16067
16167
|
SEED_MAX_CHARS,
|
|
16068
16168
|
SESSION_RESET_OCCUPANCY_TOKENS,
|
|
@@ -16143,9 +16243,11 @@ export {
|
|
|
16143
16243
|
applySystemCaEnv,
|
|
16144
16244
|
applyThreadIntoMain,
|
|
16145
16245
|
applyTurnUsage,
|
|
16246
|
+
applyWakeOnGithubEdges,
|
|
16146
16247
|
applyWorkspaceTags,
|
|
16147
16248
|
archiveRemovedWorkspaceChats,
|
|
16148
16249
|
archivesWithRemovedWorkspace,
|
|
16250
|
+
armGithubEdgeWatch,
|
|
16149
16251
|
armSchedules,
|
|
16150
16252
|
askBlockStillWaiting,
|
|
16151
16253
|
assertAbleTimeCredential,
|
|
@@ -16467,6 +16569,7 @@ export {
|
|
|
16467
16569
|
getOrderPlan,
|
|
16468
16570
|
getPr,
|
|
16469
16571
|
getPrChecks,
|
|
16572
|
+
getPrCiChecks,
|
|
16470
16573
|
getPrDetails,
|
|
16471
16574
|
getPrForHeadBranch,
|
|
16472
16575
|
getPrMeta,
|
|
@@ -16693,6 +16796,7 @@ export {
|
|
|
16693
16796
|
markPrReady,
|
|
16694
16797
|
materializeSystemCaBundle,
|
|
16695
16798
|
maxConcurrentAgents,
|
|
16799
|
+
maxOrchThreads,
|
|
16696
16800
|
maybeCompactContext,
|
|
16697
16801
|
mcpAllowTools,
|
|
16698
16802
|
mcpAllowToolsFromNames,
|
|
@@ -17067,6 +17171,7 @@ export {
|
|
|
17067
17171
|
visibleAssistantText,
|
|
17068
17172
|
visibleToolRowDetail,
|
|
17069
17173
|
waitForPidExit,
|
|
17174
|
+
wakeOrchestratorOnGithubEdgesEnabled,
|
|
17070
17175
|
warmGithubAgentAuth,
|
|
17071
17176
|
weeklyCronExpr,
|
|
17072
17177
|
whichOnPath,
|
|
@@ -27,12 +27,12 @@ import {
|
|
|
27
27
|
rewriteLinearError,
|
|
28
28
|
updateLinearIssue,
|
|
29
29
|
validateLinearApiKey
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-5TS3KVGI.js";
|
|
31
31
|
import "./chunk-OYRN356W.js";
|
|
32
32
|
import "./chunk-F6GE7V3Q.js";
|
|
33
33
|
import "./chunk-N2WW62LF.js";
|
|
34
34
|
import "./chunk-2GPQZZLY.js";
|
|
35
|
-
import "./chunk-
|
|
35
|
+
import "./chunk-S3UGLMGE.js";
|
|
36
36
|
import "./chunk-NSTQ6QKD.js";
|
|
37
37
|
import "./chunk-WWUABK6B.js";
|
|
38
38
|
import "./chunk-FJZWM2ON.js";
|
|
@@ -25,12 +25,12 @@ import {
|
|
|
25
25
|
rewriteLinearError,
|
|
26
26
|
updateLinearIssue,
|
|
27
27
|
validateLinearApiKey
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-GUIJMZQG.js";
|
|
29
29
|
import "./chunk-DBKHL7NC.js";
|
|
30
30
|
import "./chunk-W3ZLE4PO.js";
|
|
31
31
|
import "./chunk-JAT3JFOS.js";
|
|
32
32
|
import "./chunk-6K64FJDD.js";
|
|
33
|
-
import "./chunk-
|
|
33
|
+
import "./chunk-TKEYXNXY.js";
|
|
34
34
|
import "./chunk-4TR3HZFT.js";
|
|
35
35
|
import "./chunk-WDRMZKVB.js";
|
|
36
36
|
import "./chunk-KI45T4DI.js";
|