@sideboard-ai/core 0.1.349 → 0.1.351
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-CGFJZB7L.js → abletime-TX7BTTR2.js} +5 -5
- package/dist/{abletime-3HRWLQZJ.js → abletime-URSRZW7P.js} +4 -4
- package/dist/{abletime-oauth-QNJQLHR4.js → abletime-oauth-QS3WPSCC.js} +3 -3
- package/dist/{abletime-oauth-JQDSH5OL.js → abletime-oauth-SL3NMNEC.js} +4 -4
- package/dist/{abletime-rest-TANL5TMY.js → abletime-rest-GGQLUO55.js} +3 -3
- package/dist/{abletime-rest-UQA2CRZN.js → abletime-rest-JZU6JJCV.js} +4 -4
- package/dist/agents/acp-runner.cjs +491 -0
- package/dist/agents/acp-runner.d.cts +46 -0
- package/dist/agents/acp-runner.d.ts +46 -0
- package/dist/agents/acp-runner.js +323 -0
- package/dist/{agents-DMPBFF3F.js → agents-D5CL4CR4.js} +37 -7
- package/dist/{agents-AZ2PV6XP.js → agents-INTH7J3F.js} +42 -11
- package/dist/{app-settings-SNOPJ7P5.js → app-settings-IA7ZZKWQ.js} +2 -2
- package/dist/{app-settings-PPIMYJKS.js → app-settings-XILTSD6L.js} +1 -1
- package/dist/{chunk-RUIHNWRV.js → chunk-37ZBEBP6.js} +6 -6
- package/dist/{chunk-7B2OUQON.js → chunk-5TCMXEYL.js} +48 -3
- package/dist/{chunk-FDYMVJFU.js → chunk-5WF54R3B.js} +5 -5
- package/dist/{chunk-Q4I6KDOL.js → chunk-7WPQAVS5.js} +60 -39
- package/dist/{chunk-PVCECFJK.js → chunk-7ZD4OK6G.js} +1 -1
- package/dist/{chunk-ZXI5DR5S.js → chunk-AAKQU4UZ.js} +1624 -1487
- package/dist/{chunk-MVFFLU5V.js → chunk-AEEOYLVK.js} +12 -5
- package/dist/{chunk-RYPD7XWV.js → chunk-B4EFQTMP.js} +5 -5
- package/dist/{chunk-IRFBD6GU.js → chunk-BDWVBEKN.js} +71 -47
- package/dist/chunk-BF6INES4.js +144 -0
- package/dist/{chunk-IVRWRYTH.js → chunk-BZK62VPT.js} +2 -2
- package/dist/{chunk-ROXM6QZV.js → chunk-C3E2DGDF.js} +12 -5
- package/dist/{chunk-AJMERXZP.js → chunk-CCWQ65VD.js} +2 -2
- package/dist/{chunk-62ALWH3T.js → chunk-DL4OHDBV.js} +3 -3
- package/dist/{chunk-4NXGVJA6.js → chunk-F4RFFE2H.js} +48 -3
- package/dist/{chunk-E77SRVVO.js → chunk-FCKTBE26.js} +1 -1
- package/dist/{chunk-3DBL2C45.js → chunk-FQ3JYUKI.js} +2 -2
- package/dist/{chunk-MHSBF3SO.js → chunk-HISSQICH.js} +4 -4
- package/dist/{chunk-CEQ4Z32M.js → chunk-J4EA5SHF.js} +3 -3
- package/dist/{chunk-OHUAAX3O.js → chunk-M45WGODR.js} +2 -2
- package/dist/{chunk-UJMCTGV7.js → chunk-PXSWVZIL.js} +2 -2
- package/dist/{chunk-6RIPZ73M.js → chunk-SMSD6U3N.js} +3 -1
- package/dist/{chunk-CATTIFSP.js → chunk-SZY23KGS.js} +4 -4
- package/dist/{chunk-RPHH4FNK.js → chunk-TCEUNSLX.js} +3 -1
- package/dist/chunk-TRMPDDVL.js +232 -0
- package/dist/{chunk-6WMNIX2U.js → chunk-UFUAIVNV.js} +9 -5
- package/dist/{chunk-WHMLMCPU.js → chunk-UXAKH4AW.js} +1925 -1722
- package/dist/{chunk-QHXZKHUL.js → chunk-VHQ6OG3U.js} +2 -2
- package/dist/{chunk-WWU4SYZR.js → chunk-VL6F2KRE.js} +5 -1
- package/dist/{chunk-5FUAOU3G.js → chunk-WB3G2LQO.js} +1 -1
- package/dist/{chunk-JCYGQKER.js → chunk-WFX4ZVSZ.js} +1 -1
- package/dist/{chunk-F7WP2U5I.js → chunk-WJURGCBR.js} +1 -1
- package/dist/chunk-YE7Z5WH3.js +142 -0
- package/dist/{conductor-65VPUPOW.js → conductor-FWYWIHEW.js} +7 -6
- package/dist/{conductor-NHC6X74J.js → conductor-W2X7QUKZ.js} +6 -5
- package/dist/connected-teams-2YDE2EZ2.js +1 -1
- package/dist/{coordinator-prompt-R2PURZL3.js → coordinator-prompt-J57Q4Z4W.js} +4 -4
- package/dist/{coordinator-prompt-5GZWIVSY.js → coordinator-prompt-KIHNLENN.js} +5 -5
- package/dist/{global-workspace-UEECLWSX.js → global-workspace-CGB5CY4U.js} +4 -4
- package/dist/{global-workspace-64KC7PST.js → global-workspace-WXDWFZAN.js} +5 -5
- package/dist/index.cjs +1750 -950
- package/dist/index.d.cts +151 -895
- package/dist/index.d.ts +151 -895
- package/dist/index.js +582 -227
- package/dist/{linear-PKYJH4WK.js → linear-E3BX5PX5.js} +2 -2
- package/dist/{linear-MIJO6DCV.js → linear-WG23LBCX.js} +3 -3
- package/dist/{linear-list-JPQ27RXG.js → linear-list-OINZWVV5.js} +1 -1
- package/dist/{linear-list-N57PR6JM.js → linear-list-VU47BNUV.js} +1 -1
- package/dist/mcp/run-stdio.cjs +1247 -741
- package/dist/mcp/run-stdio.js +181 -44
- package/dist/{optional-cli-4GTEDEYJ.js → optional-cli-K6HX2X5O.js} +4 -3
- package/dist/{optional-cli-RPJIQBDX.js → optional-cli-SA3EQYML.js} +6 -5
- package/dist/{orchestrator-I5G5A5BV.js → orchestrator-DMEE7CEW.js} +11 -10
- package/dist/{orchestrator-Y5PYSMR6.js → orchestrator-MUD4FY7Q.js} +17 -15
- package/dist/thread-CJRchYLj.d.cts +856 -0
- package/dist/thread-CJRchYLj.d.ts +856 -0
- package/dist/{thread-store-HZ4U4OXB.js → thread-store-4YTOV2HL.js} +3 -3
- package/dist/{thread-store-QKNU5CHM.js → thread-store-LME2ICZP.js} +2 -2
- package/dist/{workspaces-6TIM2TM2.js → workspaces-7DPHDXNY.js} +4 -4
- package/dist/{workspaces-I2EHNTFE.js → workspaces-ZCTF4ECL.js} +5 -5
- package/dist/{worktree-7JFYDNUX.js → worktree-4ATMCYIE.js} +3 -3
- package/dist/{worktree-M2GJGK2P.js → worktree-DA6SKIU5.js} +4 -4
- package/package.json +3 -3
- /package/dist/{chunk-XOEKCE6L.js → chunk-OHXNGBC4.js} +0 -0
|
@@ -3,16 +3,19 @@ import {
|
|
|
3
3
|
isInternalAgentStatusText,
|
|
4
4
|
lastAssistantMessageText
|
|
5
5
|
} from "./chunk-WWBPK7GB.js";
|
|
6
|
+
import {
|
|
7
|
+
defaultAcpHarness
|
|
8
|
+
} from "./chunk-YE7Z5WH3.js";
|
|
6
9
|
import {
|
|
7
10
|
isCloudCoordinatorThread,
|
|
8
11
|
isGlobalThread,
|
|
9
12
|
isOrchestratorThread,
|
|
10
13
|
isSlackCoordinatorThread
|
|
11
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-HISSQICH.js";
|
|
12
15
|
import {
|
|
13
16
|
mergeAgentGitAuthEnv,
|
|
14
17
|
resolveAgentGitAuthEnv
|
|
15
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-FQ3JYUKI.js";
|
|
16
19
|
import {
|
|
17
20
|
REVIEW_TAB_TITLE,
|
|
18
21
|
allocateTeamName,
|
|
@@ -24,7 +27,7 @@ import {
|
|
|
24
27
|
updateThread,
|
|
25
28
|
worktreeNameFromPath,
|
|
26
29
|
writeThread
|
|
27
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-TCEUNSLX.js";
|
|
28
31
|
import {
|
|
29
32
|
ensureWorktreeSideboardIgnored
|
|
30
33
|
} from "./chunk-BMRJNRQK.js";
|
|
@@ -52,7 +55,7 @@ import {
|
|
|
52
55
|
import {
|
|
53
56
|
assertOrchestratorCapableAgent,
|
|
54
57
|
contextTokens
|
|
55
|
-
} from "./chunk-
|
|
58
|
+
} from "./chunk-UFUAIVNV.js";
|
|
56
59
|
import {
|
|
57
60
|
stripNestedElectronEnv
|
|
58
61
|
} from "./chunk-4TR3HZFT.js";
|
|
@@ -724,6 +727,7 @@ function workspaceAgentChatSummaries(worktreePath) {
|
|
|
724
727
|
id: t.id,
|
|
725
728
|
title: t.title,
|
|
726
729
|
agent: t.agent,
|
|
730
|
+
...t.acpHarness ? { acpHarness: t.acpHarness } : {},
|
|
727
731
|
status: t.status,
|
|
728
732
|
link: `sideboard://chat/${t.id}`,
|
|
729
733
|
...t.agentBlock?.reason ? { blockedReason: t.agentBlock.reason, blockedSource: t.agentBlock.source } : {}
|
|
@@ -752,6 +756,7 @@ function createChatTab(input) {
|
|
|
752
756
|
const explicitTitle = input.title?.trim();
|
|
753
757
|
const title = explicitTitle || allocateTeamName(takenTeamSlugsForChatTab(binding.worktreePath)).name;
|
|
754
758
|
const nextAgent = input.agent ?? from.agent;
|
|
759
|
+
const nextHarness = nextAgent === "acp" ? input.acpHarness === "gemini" || input.acpHarness === "copilot" ? input.acpHarness : from.agent === "acp" && (from.acpHarness === "gemini" || from.acpHarness === "copilot") ? from.acpHarness : defaultAcpHarness() : void 0;
|
|
755
760
|
if (isOrchestratorThread(from) || binding.sourceType === "orchestration") {
|
|
756
761
|
assertOrchestratorCapableAgent(nextAgent);
|
|
757
762
|
}
|
|
@@ -768,6 +773,7 @@ function createChatTab(input) {
|
|
|
768
773
|
// the connected chat.
|
|
769
774
|
sourceRef: singletonInbox ? title : binding.sourceRef,
|
|
770
775
|
agent: nextAgent,
|
|
776
|
+
...nextHarness ? { acpHarness: nextHarness } : {},
|
|
771
777
|
model: input.model !== void 0 ? input.model : input.agent && input.agent !== from.agent ? null : from.model,
|
|
772
778
|
effort: input.effort !== void 0 ? input.effort : from.effort,
|
|
773
779
|
fast: input.fast !== void 0 ? Boolean(input.fast) : from.fast,
|
|
@@ -788,6 +794,7 @@ function forkChatTab(input) {
|
|
|
788
794
|
const tab = createChatTab({
|
|
789
795
|
fromThreadId: input.threadId,
|
|
790
796
|
agent: input.agent ?? from.agent,
|
|
797
|
+
acpHarness: input.acpHarness,
|
|
791
798
|
model: input.model,
|
|
792
799
|
title: input.title?.trim() || void 0,
|
|
793
800
|
attachments: [attachment]
|
|
@@ -1742,7 +1749,7 @@ var PORT_RANGE_SIZE = 10;
|
|
|
1742
1749
|
var RECLAIM_RETRY_DELAY_MS = 40;
|
|
1743
1750
|
var RECLAIM_TRIES = 8;
|
|
1744
1751
|
async function killReclaimable(ports, worktreePath, signal) {
|
|
1745
|
-
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-
|
|
1752
|
+
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-FWYWIHEW.js");
|
|
1746
1753
|
if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
|
|
1747
1754
|
else killListenersOnPorts2(ports);
|
|
1748
1755
|
}
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
normalizeAbleTimeCredential,
|
|
5
5
|
normalizeAbleTimeHost,
|
|
6
6
|
rewriteAbleTimeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-5WF54R3B.js";
|
|
8
8
|
import {
|
|
9
9
|
httpFetch
|
|
10
10
|
} from "./chunk-JAT3JFOS.js";
|
|
11
11
|
import {
|
|
12
12
|
getAbleTimeAccessToken,
|
|
13
13
|
getAbleTimeHost
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UFUAIVNV.js";
|
|
15
15
|
|
|
16
16
|
// src/integrations/abletime-rest.ts
|
|
17
17
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -3,13 +3,13 @@
|
|
|
3
3
|
import {
|
|
4
4
|
abletimeRestUrl,
|
|
5
5
|
textFromAbleTimeDoc
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-M45WGODR.js";
|
|
7
7
|
import {
|
|
8
8
|
assertAbleTimeCredential,
|
|
9
9
|
callAbleTimeTool,
|
|
10
10
|
normalizeAbleTimeHost,
|
|
11
11
|
rewriteAbleTimeError
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-B4EFQTMP.js";
|
|
13
13
|
import {
|
|
14
14
|
downloadAuthenticatedFile,
|
|
15
15
|
extractHttpUrls,
|
|
@@ -27,7 +27,7 @@ import {
|
|
|
27
27
|
getAbleTimeHost,
|
|
28
28
|
isAbleTimeConnected,
|
|
29
29
|
saveAbleTimeConnection
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-VL6F2KRE.js";
|
|
31
31
|
|
|
32
32
|
// src/integrations/abletime-attachments.ts
|
|
33
33
|
function asRecord(value) {
|
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
import {
|
|
2
|
+
ACP_HARNESSES,
|
|
3
|
+
isAcpHarnessId
|
|
4
|
+
} from "./chunk-YE7Z5WH3.js";
|
|
1
5
|
import {
|
|
2
6
|
enrichPathWithNpmGlobalBin,
|
|
3
7
|
isConductorBundledCli,
|
|
@@ -7,7 +11,7 @@ import {
|
|
|
7
11
|
} from "./chunk-R4W4VQJZ.js";
|
|
8
12
|
import {
|
|
9
13
|
resolveAgentExecutable
|
|
10
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-UFUAIVNV.js";
|
|
11
15
|
|
|
12
16
|
// src/agents/install.ts
|
|
13
17
|
import { chmodSync, existsSync } from "fs";
|
|
@@ -131,6 +135,14 @@ var SETUP = {
|
|
|
131
135
|
installCommand: "npm install -g @brightsy/cli",
|
|
132
136
|
loginCommand: "brightsy login",
|
|
133
137
|
npmPackage: "@brightsy/cli"
|
|
138
|
+
},
|
|
139
|
+
acp: {
|
|
140
|
+
agent: "acp",
|
|
141
|
+
kind: "cli",
|
|
142
|
+
summary: "One adapter for every ACP harness. Install Gemini CLI or Copilot CLI from Settings \u2014 there is no separate ACP binary, and no interactive attach.",
|
|
143
|
+
docsUrl: "https://agentclientprotocol.com",
|
|
144
|
+
installCommand: null,
|
|
145
|
+
loginCommand: null
|
|
134
146
|
}
|
|
135
147
|
};
|
|
136
148
|
var CLI_BIN = {
|
|
@@ -286,7 +298,7 @@ async function resolveCliAfterNpmInstall(cliBin) {
|
|
|
286
298
|
return whichOnPath(cliBin);
|
|
287
299
|
}
|
|
288
300
|
async function resolveExistingCli(agent) {
|
|
289
|
-
if (agent === "cursor") return null;
|
|
301
|
+
if (agent === "cursor" || agent === "acp") return null;
|
|
290
302
|
const exe = resolveAgentExecutable(agent);
|
|
291
303
|
if ((exe.includes("/") || exe.includes("\\")) && existsSync(exe)) return exe;
|
|
292
304
|
enrichPathWithNpmGlobalBin();
|
|
@@ -312,7 +324,33 @@ async function runVendorUpdate(existing, updateArgs) {
|
|
|
312
324
|
function isCurlInstaller(command) {
|
|
313
325
|
return /curl\s| \|\s*bash/.test(command);
|
|
314
326
|
}
|
|
327
|
+
async function installAcpHarness(id) {
|
|
328
|
+
const spec = ACP_HARNESSES[id];
|
|
329
|
+
return installNpmGlobalPackage({
|
|
330
|
+
npmPackage: spec.npmPackage,
|
|
331
|
+
installCommand: spec.installCommand,
|
|
332
|
+
cliBin: spec.bin
|
|
333
|
+
});
|
|
334
|
+
}
|
|
335
|
+
async function loginAcpHarness(id) {
|
|
336
|
+
const spec = ACP_HARNESSES[id];
|
|
337
|
+
const prepared = await prepareTerminalCommand(spec.loginCommand);
|
|
338
|
+
await openInSystemTerminal(prepared);
|
|
339
|
+
return {
|
|
340
|
+
ok: true,
|
|
341
|
+
openedTerminal: true,
|
|
342
|
+
command: prepared,
|
|
343
|
+
message: `Opened Terminal to run: ${prepared}`
|
|
344
|
+
};
|
|
345
|
+
}
|
|
315
346
|
async function installAgent(agent) {
|
|
347
|
+
if (isAcpHarnessId(agent)) return installAcpHarness(agent);
|
|
348
|
+
if (agent === "acp") {
|
|
349
|
+
return {
|
|
350
|
+
ok: false,
|
|
351
|
+
message: "Install Gemini CLI or Copilot CLI from Settings \u2192 Agents. ACP is the adapter, not a binary."
|
|
352
|
+
};
|
|
353
|
+
}
|
|
316
354
|
const info = getAgentSetupInfo(agent);
|
|
317
355
|
if (info.kind === "bundled-sdk" || info.kind === "api-key") {
|
|
318
356
|
return {
|
|
@@ -346,6 +384,13 @@ async function installAgent(agent) {
|
|
|
346
384
|
};
|
|
347
385
|
}
|
|
348
386
|
async function loginAgent(agent) {
|
|
387
|
+
if (isAcpHarnessId(agent)) return loginAcpHarness(agent);
|
|
388
|
+
if (agent === "acp") {
|
|
389
|
+
return {
|
|
390
|
+
ok: false,
|
|
391
|
+
message: "Log in to Gemini CLI or Copilot CLI from Settings \u2192 Agents."
|
|
392
|
+
};
|
|
393
|
+
}
|
|
349
394
|
const info = getAgentSetupInfo(agent);
|
|
350
395
|
const loginCommand = resolveLoginCommand(agent);
|
|
351
396
|
if (!loginCommand) {
|
|
@@ -364,7 +409,7 @@ async function loginAgent(agent) {
|
|
|
364
409
|
};
|
|
365
410
|
}
|
|
366
411
|
async function loginManagedAccount(accountId) {
|
|
367
|
-
const { loadAppSettings } = await import("./app-settings-
|
|
412
|
+
const { loadAppSettings } = await import("./app-settings-IA7ZZKWQ.js");
|
|
368
413
|
const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
|
|
369
414
|
const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
|
|
370
415
|
if (!account) {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
normalizeTakenSlug,
|
|
5
5
|
normalizeWorktreePath,
|
|
6
6
|
takenSlugsFromThread
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-TCEUNSLX.js";
|
|
8
8
|
import {
|
|
9
9
|
ensureWorktreeSideboardIgnored
|
|
10
10
|
} from "./chunk-BMRJNRQK.js";
|
|
@@ -25,7 +25,7 @@ import {
|
|
|
25
25
|
import {
|
|
26
26
|
getGithubGitAuthMode,
|
|
27
27
|
getGithubPat
|
|
28
|
-
} from "./chunk-
|
|
28
|
+
} from "./chunk-UFUAIVNV.js";
|
|
29
29
|
import {
|
|
30
30
|
worktreesRoot
|
|
31
31
|
} from "./chunk-H4UEFJRI.js";
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveGithubRepoSlug,
|
|
6
6
|
resolveOriginRemote,
|
|
7
7
|
resolveRepoRoot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FQ3JYUKI.js";
|
|
9
9
|
import {
|
|
10
10
|
allocateTeamName,
|
|
11
11
|
createEmptyThread,
|
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
teamSlugFromName,
|
|
15
15
|
updateThread,
|
|
16
16
|
writeThread
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-TCEUNSLX.js";
|
|
18
18
|
import {
|
|
19
19
|
ATTACHMENTS_DIR,
|
|
20
20
|
attachmentsGitignoreBody
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
resolveThreadDefaults,
|
|
32
32
|
resolveViewerProfile,
|
|
33
33
|
resolveViewerProfileForRepo
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-UFUAIVNV.js";
|
|
35
35
|
import {
|
|
36
36
|
appDataDir,
|
|
37
37
|
globalAgentCwd,
|
|
@@ -409,7 +409,7 @@ var COORDINATOR_TOOL_PLAYBOOK = [
|
|
|
409
409
|
'- create_workspace \u2014 create a workspace (isolated checkout + first chat) from branch | pr | ticket (appears on Home). A ticket, PR, or named branch has one checkout: a second call returns that workspace (alreadyStarted=true) and chats for every agent already on it. That is not one agent. To put another agent on that checkout, fork_chat. send_to_chat only the chat that should do this job. Creating from the default branch still opens a new isolated workspace. Pass repoPath + parentChatId; omit agent and model so Sideboard applies Settings \u2192 Default agent, model & effort (never pass your own agent or agent=cursor). Pass the same tags (short labels, e.g. "phone-sync") on every workspace you open for one task so they group in the sidebar; reusing a checkout adds those tags. If the repo has a setup script, Sideboard runs it in the background (does not block send_to_chat). Nested Codex (you are Codex and the child would be Codex) can deadlock on ~/.codex locks \u2014 omit agent; Sideboard switches the child to Cursor when a CURSOR_API_KEY is set, otherwise keeps the Account default',
|
|
410
410
|
"- One 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.",
|
|
411
411
|
"- set_workspace_tags \u2014 set, add, or remove labels on a workspace after create. Pass any chat id on that checkout. Same tags on every workspace from one task. Worktree agents can update tags on their own checkout (they omit ref). set_wake_on_github_edges opts a workspace into CI and review-request wakes once Settings \u2192 Advanced is on. Pass a child chat id. Do not flip the Advanced switch.",
|
|
412
|
-
"- set_plan / show_plan / list_order / set_dependency / clear_dependency / satisfy_dependency / execute_plan \u2014 This chat owns one plan. show_plan opens it in the side column, the same way a worktree agent does. The Orchestration row in the sidebar opens that chat. Draft with set_plan (title, summary, and goal) and set_dependency. A step may loop back to an earlier step. This is a plan, not a one-way waterfall. Call show_plan after you draft or change the plan. Do not paste the diagram in chat. Do not create workspaces or send_to_chat for that work while the plan is draft. execute_plan with agreed: true only after they tell you to run it. It marks the plan active and returns
|
|
412
|
+
"- set_plan / show_plan / list_order / set_dependency / clear_dependency / satisfy_dependency / execute_plan \u2014 This chat owns one plan. show_plan opens it in the side column, the same way a worktree agent does. The Orchestration row in the sidebar opens that chat. Draft with set_plan (title, summary, and goal) and set_dependency. A step may loop back to an earlier step. This is a plan, not a one-way waterfall. Call show_plan after you draft or change the plan. Do not paste the diagram in chat. Do not create workspaces or send_to_chat for that work while the plan is draft. execute_plan with agreed: true only after they tell you to run it. It marks the plan active and returns start, waiting, and mergeHeld. start includes the first step others wait on, until that step reaches its gate, and any later step whose hold is merge rather than start. Start each of those with create_workspace (kind pr or issue; pass repoPath when set) or send_to_chat (kind workspace or orchestration). create_workspace returns a checkout that already exists. Leave waiting alone. Steps in mergeHeld can proceed; do not merge them. Merge only if they asked. Worktree agents show_plan to open the diagram and this checkout's implementation plan when plan.md exists. set_dependency / clear_dependency only for a step they are part of. A dependency says one PR, issue, or workspace must reach a gate before another can start or merge. gate=in-main is met when that PR is merged; gate=in-prod stays waiting until satisfy_dependency (Sideboard cannot see production). 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 waitsOnKind (pr|issue|workspace), waitsOnRef, gate, subjectKind, subjectRef, hold. Pass repoPath when the same number exists in more than one project. A step can name another orchestration chat (kind orchestration, ref that chat id). That chat drafts its own plan. Each orchestration chat opens its own plan with show_plan. Worktree agents set their own checkout and omit subject. Plan mode on a workspace agent stays a separate plan for that checkout. Do not start a step listed under Do not start. Do not merge a step listed under Do not merge. An edge line marked merge is a merge hold; that step can still be under Start now.",
|
|
413
413
|
"- start_board_card \u2014 same as create_workspace for a ticket/PR/named branch (attaches issue text when resolvable). Then send_to_chat.",
|
|
414
414
|
"- fork_workspace \u2014 fork a worktree chat into a NEW git worktree + chat (transcript attached); optional agent; leave model unset (Auto) unless you have a reason. Not for orchestration chats.",
|
|
415
415
|
"- fork_chat \u2014 add another agent on the SAME workspace (same files, Run, and git), or fork a Global orchestration chat into a new tab. Pass agent when it should be a different harness. Leave model unset (Auto) unless you have a reason. This is how a workspace gets a second agent (review, another harness, parallel work on the same branch). Do not create_workspace again for that. Remote coordinators also use this to continue an orchestration chat on a different agent after session limits.",
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ABLETIME_HOST,
|
|
3
3
|
normalizeAbleTimeHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-5WF54R3B.js";
|
|
5
5
|
import {
|
|
6
6
|
httpFetch
|
|
7
7
|
} from "./chunk-JAT3JFOS.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getAbleTimeHost,
|
|
11
11
|
loadAppSettings,
|
|
12
12
|
saveAbleTimeConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UFUAIVNV.js";
|
|
14
14
|
|
|
15
15
|
// src/integrations/abletime-oauth.ts
|
|
16
16
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -280,7 +280,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
280
280
|
persistAbleTimeTokens(data, { host });
|
|
281
281
|
const token = data.access_token.trim();
|
|
282
282
|
try {
|
|
283
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
283
|
+
const { getAbleTimeOrientation } = await import("./abletime-TX7BTTR2.js");
|
|
284
284
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
285
285
|
return saveAbleTimeConnection({
|
|
286
286
|
accessToken: token,
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
normalizeAbleTimeCredential,
|
|
7
7
|
normalizeAbleTimeHost,
|
|
8
8
|
rewriteAbleTimeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-B4EFQTMP.js";
|
|
10
10
|
import {
|
|
11
11
|
httpFetch
|
|
12
12
|
} from "./chunk-2GPQZZLY.js";
|
|
13
13
|
import {
|
|
14
14
|
getAbleTimeAccessToken,
|
|
15
15
|
getAbleTimeHost
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-VL6F2KRE.js";
|
|
17
17
|
|
|
18
18
|
// src/integrations/abletime-rest.ts
|
|
19
19
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
OPTIONAL_SERVICES,
|
|
3
3
|
isOptionalServiceId,
|
|
4
4
|
optionalServiceSpec
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-BZK62VPT.js";
|
|
6
6
|
import {
|
|
7
7
|
installNpmGlobalPackage,
|
|
8
8
|
whichOnPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-F4RFFE2H.js";
|
|
10
10
|
import {
|
|
11
11
|
enrichPathWithNpmGlobalBin
|
|
12
12
|
} from "./chunk-R4W4VQJZ.js";
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
isOrchestratorCapableAgent,
|
|
10
10
|
normalizeThinkingEffort,
|
|
11
11
|
updateAdvancedSettings
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-VL6F2KRE.js";
|
|
13
13
|
import {
|
|
14
14
|
writePrivateFile
|
|
15
15
|
} from "./chunk-NSTQ6QKD.js";
|
|
@@ -1647,6 +1647,7 @@ function normalizeThread(raw) {
|
|
|
1647
1647
|
return {
|
|
1648
1648
|
...raw,
|
|
1649
1649
|
model: raw.model ?? null,
|
|
1650
|
+
acpHarness: raw.acpHarness === "gemini" || raw.acpHarness === "copilot" ? raw.acpHarness : void 0,
|
|
1650
1651
|
effort: resolveThreadEffort(raw),
|
|
1651
1652
|
fast: Boolean(raw.fast),
|
|
1652
1653
|
planMode: Boolean(raw.planMode),
|
|
@@ -1735,6 +1736,7 @@ function createEmptyThread(partial) {
|
|
|
1735
1736
|
worktreePath: partial.worktreePath,
|
|
1736
1737
|
repoPath: partial.repoPath,
|
|
1737
1738
|
agent: partial.agent,
|
|
1739
|
+
...partial.acpHarness === "gemini" || partial.acpHarness === "copilot" ? { acpHarness: partial.acpHarness } : {},
|
|
1738
1740
|
lastError: null,
|
|
1739
1741
|
agentPid: null,
|
|
1740
1742
|
agentPidStartedAt: null,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveGithubRepoSlug,
|
|
8
8
|
resolveOriginRemote,
|
|
9
9
|
resolveRepoRoot
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VHQ6OG3U.js";
|
|
11
11
|
import {
|
|
12
12
|
ATTACHMENTS_DIR,
|
|
13
13
|
attachmentsGitignoreBody
|
|
@@ -20,7 +20,7 @@ import {
|
|
|
20
20
|
teamSlugFromName,
|
|
21
21
|
updateThread,
|
|
22
22
|
writeThread
|
|
23
|
-
} from "./chunk-
|
|
23
|
+
} from "./chunk-SMSD6U3N.js";
|
|
24
24
|
import {
|
|
25
25
|
assertOrchestratorCapableAgent,
|
|
26
26
|
formatAccountProfilePlaybookLine,
|
|
@@ -33,7 +33,7 @@ import {
|
|
|
33
33
|
resolveThreadDefaults,
|
|
34
34
|
resolveViewerProfile,
|
|
35
35
|
resolveViewerProfileForRepo
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-VL6F2KRE.js";
|
|
37
37
|
import {
|
|
38
38
|
appDataDir,
|
|
39
39
|
globalAgentCwd,
|
|
@@ -364,7 +364,7 @@ var COORDINATOR_TOOL_PLAYBOOK = [
|
|
|
364
364
|
'- create_workspace \u2014 create a workspace (isolated checkout + first chat) from branch | pr | ticket (appears on Home). A ticket, PR, or named branch has one checkout: a second call returns that workspace (alreadyStarted=true) and chats for every agent already on it. That is not one agent. To put another agent on that checkout, fork_chat. send_to_chat only the chat that should do this job. Creating from the default branch still opens a new isolated workspace. Pass repoPath + parentChatId; omit agent and model so Sideboard applies Settings \u2192 Default agent, model & effort (never pass your own agent or agent=cursor). Pass the same tags (short labels, e.g. "phone-sync") on every workspace you open for one task so they group in the sidebar; reusing a checkout adds those tags. If the repo has a setup script, Sideboard runs it in the background (does not block send_to_chat). Nested Codex (you are Codex and the child would be Codex) can deadlock on ~/.codex locks \u2014 omit agent; Sideboard switches the child to Cursor when a CURSOR_API_KEY is set, otherwise keeps the Account default',
|
|
365
365
|
"- One 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.",
|
|
366
366
|
"- set_workspace_tags \u2014 set, add, or remove labels on a workspace after create. Pass any chat id on that checkout. Same tags on every workspace from one task. Worktree agents can update tags on their own checkout (they omit ref). set_wake_on_github_edges opts a workspace into CI and review-request wakes once Settings \u2192 Advanced is on. Pass a child chat id. Do not flip the Advanced switch.",
|
|
367
|
-
"- set_plan / show_plan / list_order / set_dependency / clear_dependency / satisfy_dependency / execute_plan \u2014 This chat owns one plan. show_plan opens it in the side column, the same way a worktree agent does. The Orchestration row in the sidebar opens that chat. Draft with set_plan (title, summary, and goal) and set_dependency. A step may loop back to an earlier step. This is a plan, not a one-way waterfall. Call show_plan after you draft or change the plan. Do not paste the diagram in chat. Do not create workspaces or send_to_chat for that work while the plan is draft. execute_plan with agreed: true only after they tell you to run it. It marks the plan active and returns
|
|
367
|
+
"- set_plan / show_plan / list_order / set_dependency / clear_dependency / satisfy_dependency / execute_plan \u2014 This chat owns one plan. show_plan opens it in the side column, the same way a worktree agent does. The Orchestration row in the sidebar opens that chat. Draft with set_plan (title, summary, and goal) and set_dependency. A step may loop back to an earlier step. This is a plan, not a one-way waterfall. Call show_plan after you draft or change the plan. Do not paste the diagram in chat. Do not create workspaces or send_to_chat for that work while the plan is draft. execute_plan with agreed: true only after they tell you to run it. It marks the plan active and returns start, waiting, and mergeHeld. start includes the first step others wait on, until that step reaches its gate, and any later step whose hold is merge rather than start. Start each of those with create_workspace (kind pr or issue; pass repoPath when set) or send_to_chat (kind workspace or orchestration). create_workspace returns a checkout that already exists. Leave waiting alone. Steps in mergeHeld can proceed; do not merge them. Merge only if they asked. Worktree agents show_plan to open the diagram and this checkout's implementation plan when plan.md exists. set_dependency / clear_dependency only for a step they are part of. A dependency says one PR, issue, or workspace must reach a gate before another can start or merge. gate=in-main is met when that PR is merged; gate=in-prod stays waiting until satisfy_dependency (Sideboard cannot see production). 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 waitsOnKind (pr|issue|workspace), waitsOnRef, gate, subjectKind, subjectRef, hold. Pass repoPath when the same number exists in more than one project. A step can name another orchestration chat (kind orchestration, ref that chat id). That chat drafts its own plan. Each orchestration chat opens its own plan with show_plan. Worktree agents set their own checkout and omit subject. Plan mode on a workspace agent stays a separate plan for that checkout. Do not start a step listed under Do not start. Do not merge a step listed under Do not merge. An edge line marked merge is a merge hold; that step can still be under Start now.",
|
|
368
368
|
"- start_board_card \u2014 same as create_workspace for a ticket/PR/named branch (attaches issue text when resolvable). Then send_to_chat.",
|
|
369
369
|
"- fork_workspace \u2014 fork a worktree chat into a NEW git worktree + chat (transcript attached); optional agent; leave model unset (Auto) unless you have a reason. Not for orchestration chats.",
|
|
370
370
|
"- fork_chat \u2014 add another agent on the SAME workspace (same files, Run, and git), or fork a Global orchestration chat into a new tab. Pass agent when it should be a different harness. Leave model unset (Auto) unless you have a reason. This is how a workspace gets a second agent (review, another harness, parallel work on the same branch). Do not create_workspace again for that. Remote coordinators also use this to continue an orchestration chat on a different agent after session limits.",
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
isOrchestratorCapableAgent,
|
|
11
11
|
normalizeThinkingEffort,
|
|
12
12
|
updateAdvancedSettings
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-UFUAIVNV.js";
|
|
14
14
|
import {
|
|
15
15
|
writePrivateFile
|
|
16
16
|
} from "./chunk-JT7R45JB.js";
|
|
@@ -1666,6 +1666,7 @@ function normalizeThread(raw) {
|
|
|
1666
1666
|
return {
|
|
1667
1667
|
...raw,
|
|
1668
1668
|
model: raw.model ?? null,
|
|
1669
|
+
acpHarness: raw.acpHarness === "gemini" || raw.acpHarness === "copilot" ? raw.acpHarness : void 0,
|
|
1669
1670
|
effort: resolveThreadEffort(raw),
|
|
1670
1671
|
fast: Boolean(raw.fast),
|
|
1671
1672
|
planMode: Boolean(raw.planMode),
|
|
@@ -1754,6 +1755,7 @@ function createEmptyThread(partial) {
|
|
|
1754
1755
|
worktreePath: partial.worktreePath,
|
|
1755
1756
|
repoPath: partial.repoPath,
|
|
1756
1757
|
agent: partial.agent,
|
|
1758
|
+
...partial.acpHarness === "gemini" || partial.acpHarness === "copilot" ? { acpHarness: partial.acpHarness } : {},
|
|
1757
1759
|
lastError: null,
|
|
1758
1760
|
agentPid: null,
|
|
1759
1761
|
agentPidStartedAt: null,
|