@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.
Files changed (78) hide show
  1. package/dist/{abletime-CGFJZB7L.js → abletime-TX7BTTR2.js} +5 -5
  2. package/dist/{abletime-3HRWLQZJ.js → abletime-URSRZW7P.js} +4 -4
  3. package/dist/{abletime-oauth-QNJQLHR4.js → abletime-oauth-QS3WPSCC.js} +3 -3
  4. package/dist/{abletime-oauth-JQDSH5OL.js → abletime-oauth-SL3NMNEC.js} +4 -4
  5. package/dist/{abletime-rest-TANL5TMY.js → abletime-rest-GGQLUO55.js} +3 -3
  6. package/dist/{abletime-rest-UQA2CRZN.js → abletime-rest-JZU6JJCV.js} +4 -4
  7. package/dist/agents/acp-runner.cjs +491 -0
  8. package/dist/agents/acp-runner.d.cts +46 -0
  9. package/dist/agents/acp-runner.d.ts +46 -0
  10. package/dist/agents/acp-runner.js +323 -0
  11. package/dist/{agents-DMPBFF3F.js → agents-D5CL4CR4.js} +37 -7
  12. package/dist/{agents-AZ2PV6XP.js → agents-INTH7J3F.js} +42 -11
  13. package/dist/{app-settings-SNOPJ7P5.js → app-settings-IA7ZZKWQ.js} +2 -2
  14. package/dist/{app-settings-PPIMYJKS.js → app-settings-XILTSD6L.js} +1 -1
  15. package/dist/{chunk-RUIHNWRV.js → chunk-37ZBEBP6.js} +6 -6
  16. package/dist/{chunk-7B2OUQON.js → chunk-5TCMXEYL.js} +48 -3
  17. package/dist/{chunk-FDYMVJFU.js → chunk-5WF54R3B.js} +5 -5
  18. package/dist/{chunk-Q4I6KDOL.js → chunk-7WPQAVS5.js} +60 -39
  19. package/dist/{chunk-PVCECFJK.js → chunk-7ZD4OK6G.js} +1 -1
  20. package/dist/{chunk-ZXI5DR5S.js → chunk-AAKQU4UZ.js} +1624 -1487
  21. package/dist/{chunk-MVFFLU5V.js → chunk-AEEOYLVK.js} +12 -5
  22. package/dist/{chunk-RYPD7XWV.js → chunk-B4EFQTMP.js} +5 -5
  23. package/dist/{chunk-IRFBD6GU.js → chunk-BDWVBEKN.js} +71 -47
  24. package/dist/chunk-BF6INES4.js +144 -0
  25. package/dist/{chunk-IVRWRYTH.js → chunk-BZK62VPT.js} +2 -2
  26. package/dist/{chunk-ROXM6QZV.js → chunk-C3E2DGDF.js} +12 -5
  27. package/dist/{chunk-AJMERXZP.js → chunk-CCWQ65VD.js} +2 -2
  28. package/dist/{chunk-62ALWH3T.js → chunk-DL4OHDBV.js} +3 -3
  29. package/dist/{chunk-4NXGVJA6.js → chunk-F4RFFE2H.js} +48 -3
  30. package/dist/{chunk-E77SRVVO.js → chunk-FCKTBE26.js} +1 -1
  31. package/dist/{chunk-3DBL2C45.js → chunk-FQ3JYUKI.js} +2 -2
  32. package/dist/{chunk-MHSBF3SO.js → chunk-HISSQICH.js} +4 -4
  33. package/dist/{chunk-CEQ4Z32M.js → chunk-J4EA5SHF.js} +3 -3
  34. package/dist/{chunk-OHUAAX3O.js → chunk-M45WGODR.js} +2 -2
  35. package/dist/{chunk-UJMCTGV7.js → chunk-PXSWVZIL.js} +2 -2
  36. package/dist/{chunk-6RIPZ73M.js → chunk-SMSD6U3N.js} +3 -1
  37. package/dist/{chunk-CATTIFSP.js → chunk-SZY23KGS.js} +4 -4
  38. package/dist/{chunk-RPHH4FNK.js → chunk-TCEUNSLX.js} +3 -1
  39. package/dist/chunk-TRMPDDVL.js +232 -0
  40. package/dist/{chunk-6WMNIX2U.js → chunk-UFUAIVNV.js} +9 -5
  41. package/dist/{chunk-WHMLMCPU.js → chunk-UXAKH4AW.js} +1925 -1722
  42. package/dist/{chunk-QHXZKHUL.js → chunk-VHQ6OG3U.js} +2 -2
  43. package/dist/{chunk-WWU4SYZR.js → chunk-VL6F2KRE.js} +5 -1
  44. package/dist/{chunk-5FUAOU3G.js → chunk-WB3G2LQO.js} +1 -1
  45. package/dist/{chunk-JCYGQKER.js → chunk-WFX4ZVSZ.js} +1 -1
  46. package/dist/{chunk-F7WP2U5I.js → chunk-WJURGCBR.js} +1 -1
  47. package/dist/chunk-YE7Z5WH3.js +142 -0
  48. package/dist/{conductor-65VPUPOW.js → conductor-FWYWIHEW.js} +7 -6
  49. package/dist/{conductor-NHC6X74J.js → conductor-W2X7QUKZ.js} +6 -5
  50. package/dist/connected-teams-2YDE2EZ2.js +1 -1
  51. package/dist/{coordinator-prompt-R2PURZL3.js → coordinator-prompt-J57Q4Z4W.js} +4 -4
  52. package/dist/{coordinator-prompt-5GZWIVSY.js → coordinator-prompt-KIHNLENN.js} +5 -5
  53. package/dist/{global-workspace-UEECLWSX.js → global-workspace-CGB5CY4U.js} +4 -4
  54. package/dist/{global-workspace-64KC7PST.js → global-workspace-WXDWFZAN.js} +5 -5
  55. package/dist/index.cjs +1750 -950
  56. package/dist/index.d.cts +151 -895
  57. package/dist/index.d.ts +151 -895
  58. package/dist/index.js +582 -227
  59. package/dist/{linear-PKYJH4WK.js → linear-E3BX5PX5.js} +2 -2
  60. package/dist/{linear-MIJO6DCV.js → linear-WG23LBCX.js} +3 -3
  61. package/dist/{linear-list-JPQ27RXG.js → linear-list-OINZWVV5.js} +1 -1
  62. package/dist/{linear-list-N57PR6JM.js → linear-list-VU47BNUV.js} +1 -1
  63. package/dist/mcp/run-stdio.cjs +1247 -741
  64. package/dist/mcp/run-stdio.js +181 -44
  65. package/dist/{optional-cli-4GTEDEYJ.js → optional-cli-K6HX2X5O.js} +4 -3
  66. package/dist/{optional-cli-RPJIQBDX.js → optional-cli-SA3EQYML.js} +6 -5
  67. package/dist/{orchestrator-I5G5A5BV.js → orchestrator-DMEE7CEW.js} +11 -10
  68. package/dist/{orchestrator-Y5PYSMR6.js → orchestrator-MUD4FY7Q.js} +17 -15
  69. package/dist/thread-CJRchYLj.d.cts +856 -0
  70. package/dist/thread-CJRchYLj.d.ts +856 -0
  71. package/dist/{thread-store-HZ4U4OXB.js → thread-store-4YTOV2HL.js} +3 -3
  72. package/dist/{thread-store-QKNU5CHM.js → thread-store-LME2ICZP.js} +2 -2
  73. package/dist/{workspaces-6TIM2TM2.js → workspaces-7DPHDXNY.js} +4 -4
  74. package/dist/{workspaces-I2EHNTFE.js → workspaces-ZCTF4ECL.js} +5 -5
  75. package/dist/{worktree-7JFYDNUX.js → worktree-4ATMCYIE.js} +3 -3
  76. package/dist/{worktree-M2GJGK2P.js → worktree-DA6SKIU5.js} +4 -4
  77. package/package.json +3 -3
  78. /package/dist/{chunk-XOEKCE6L.js → chunk-OHXNGBC4.js} +0 -0
@@ -44,7 +44,7 @@ import {
44
44
  syncBoardPins,
45
45
  workspaceTagTargetRef,
46
46
  writeAgentBlock
47
- } from "../chunk-Q4I6KDOL.js";
47
+ } from "../chunk-7WPQAVS5.js";
48
48
  import "../chunk-DC3VZXMA.js";
49
49
  import {
50
50
  SIDEBOARD_THREAD_ID_ENV,
@@ -54,7 +54,7 @@ import {
54
54
  shouldRegisterMcpWaitForTurn,
55
55
  sideboardMcpProfile,
56
56
  worktreeMcpToolNames
57
- } from "../chunk-WHMLMCPU.js";
57
+ } from "../chunk-UXAKH4AW.js";
58
58
  import {
59
59
  classifyTurnFailure,
60
60
  mcpWaitForJobTimeoutMs,
@@ -66,7 +66,7 @@ import {
66
66
  waitForDetachedJob,
67
67
  waitForTurnToolResult,
68
68
  workspaceAgentChatSummaries
69
- } from "../chunk-MVFFLU5V.js";
69
+ } from "../chunk-AEEOYLVK.js";
70
70
  import {
71
71
  HUGE_TOOL_RESULT_SUMMARY,
72
72
  clipToolResultForStore,
@@ -87,13 +87,14 @@ import {
87
87
  searchAbleTimeTasks,
88
88
  toAbleTimeIssueInfo,
89
89
  updateAbleTimeTask
90
- } from "../chunk-62ALWH3T.js";
91
- import "../chunk-OHUAAX3O.js";
92
- import "../chunk-RYPD7XWV.js";
90
+ } from "../chunk-DL4OHDBV.js";
91
+ import "../chunk-M45WGODR.js";
92
+ import "../chunk-B4EFQTMP.js";
93
93
  import {
94
94
  normalizeServiceOrigin
95
- } from "../chunk-F7WP2U5I.js";
96
- import "../chunk-7B2OUQON.js";
95
+ } from "../chunk-WJURGCBR.js";
96
+ import "../chunk-5TCMXEYL.js";
97
+ import "../chunk-BF6INES4.js";
97
98
  import {
98
99
  PRESENT_PLAN_REQUIRES_PLAN_MODE,
99
100
  PRESENT_PLAN_TOOL_DESCRIPTION,
@@ -106,7 +107,7 @@ import {
106
107
  isCloudCoordinatorThread,
107
108
  isGlobalThread,
108
109
  isOrchestratorThread
109
- } from "../chunk-CATTIFSP.js";
110
+ } from "../chunk-SZY23KGS.js";
110
111
  import {
111
112
  canonicalizeRepoPath,
112
113
  formatGhLandError,
@@ -121,7 +122,7 @@ import {
121
122
  resolveProjectRemoteTag,
122
123
  resolveRepoRoot,
123
124
  warmGithubAgentAuth
124
- } from "../chunk-QHXZKHUL.js";
125
+ } from "../chunk-VHQ6OG3U.js";
125
126
  import "../chunk-I6RGRUNY.js";
126
127
  import "../chunk-E63AM3PW.js";
127
128
  import {
@@ -134,7 +135,7 @@ import {
134
135
  listLinearProjects,
135
136
  listLinearTeams,
136
137
  updateLinearIssue
137
- } from "../chunk-E77SRVVO.js";
138
+ } from "../chunk-FCKTBE26.js";
138
139
  import {
139
140
  formatGitHubSearchUpdatedSince,
140
141
  issueMatchesUpdatedSince,
@@ -154,7 +155,7 @@ import {
154
155
  import {
155
156
  httpFetch
156
157
  } from "../chunk-2GPQZZLY.js";
157
- import "../chunk-JCYGQKER.js";
158
+ import "../chunk-WFX4ZVSZ.js";
158
159
  import "../chunk-GK7H3SY7.js";
159
160
  import {
160
161
  gh,
@@ -179,7 +180,7 @@ import {
179
180
  scheduleNeedsCaffeinate,
180
181
  updateSchedule,
181
182
  updateThread
182
- } from "../chunk-6RIPZ73M.js";
183
+ } from "../chunk-SMSD6U3N.js";
183
184
  import "../chunk-WMZIANPV.js";
184
185
  import {
185
186
  formatWorkspaceProfileSuffix,
@@ -194,7 +195,7 @@ import {
194
195
  resolveViewerProfileForRepo,
195
196
  savePosthogOAuth,
196
197
  wakeOrchestratorOnGithubEdgesEnabled
197
- } from "../chunk-WWU4SYZR.js";
198
+ } from "../chunk-VL6F2KRE.js";
198
199
  import {
199
200
  writePrivateFile
200
201
  } from "../chunk-NSTQ6QKD.js";
@@ -1200,6 +1201,7 @@ async function createOrchChildThread(orch, args, resolveNewThreadOptions) {
1200
1201
  sourceType: args.sourceType,
1201
1202
  sourceRef: args.sourceRef,
1202
1203
  agent: opts.agent,
1204
+ ...opts.agent === "acp" ? { acpHarness: args.acpHarness } : {},
1203
1205
  model: opts.model,
1204
1206
  effort: opts.effort,
1205
1207
  fast: opts.fast,
@@ -1224,6 +1226,7 @@ async function createOrchChildThread(orch, args, resolveNewThreadOptions) {
1224
1226
  branchName: thread.branchName,
1225
1227
  worktreePath: thread.worktreePath,
1226
1228
  agent: thread.agent,
1229
+ ...thread.acpHarness ? { acpHarness: thread.acpHarness } : {},
1227
1230
  model: thread.model,
1228
1231
  status: thread.status,
1229
1232
  cowboy: Boolean(thread.cowboy),
@@ -3188,6 +3191,53 @@ function buildWaterfall(rows) {
3188
3191
  )
3189
3192
  })).sort((a, b) => (a.nodes[0]?.label ?? "").localeCompare(b.nodes[0]?.label ?? ""));
3190
3193
  }
3194
+ function joinCapped(lines, max = 3) {
3195
+ if (lines.length <= max) return lines.join(". ");
3196
+ const extra = lines.length - max;
3197
+ return `${lines.slice(0, max).join(". ")}. ${extra} more`;
3198
+ }
3199
+ function planWatchCopy(chains) {
3200
+ const start = [];
3201
+ const waiting = [];
3202
+ const ready = [];
3203
+ for (const chain of chains) {
3204
+ const incoming = chain.nodes.flatMap((node) => node.incoming);
3205
+ for (const node of chain.nodes) {
3206
+ const gating = node.incoming.filter((edge) => !edge.loop);
3207
+ const blocked = gating.filter((edge) => !edge.met);
3208
+ if (blocked.length > 0) {
3209
+ const verb = blocked.some((edge2) => edge2.hold === "start") ? "start" : "merge";
3210
+ const edge = blocked.find((row) => row.hold === verb) ?? blocked[0];
3211
+ waiting.push(
3212
+ `${node.label} can ${verb} once ${edge.fromLabel} is ${gatePhrase(edge.gate)}`
3213
+ );
3214
+ if (verb === "merge") start.push(`${node.label} can start`);
3215
+ continue;
3216
+ }
3217
+ if (gating.length > 0) {
3218
+ const verb = gating.every((edge) => edge.hold === "merge") ? "merge" : "start";
3219
+ ready.push(`${node.label} can ${verb}`);
3220
+ continue;
3221
+ }
3222
+ const outgoing = incoming.filter((edge) => edge.fromKey === node.key && !edge.loop);
3223
+ if (outgoing.length > 0 && outgoing.every((edge) => edge.met)) continue;
3224
+ start.push(`${node.label} can start`);
3225
+ }
3226
+ }
3227
+ if (start.length === 0 && waiting.length === 0 && ready.length === 0) {
3228
+ return "Later steps wait until the one above reaches its gate. In main clears when that pull request is merged. In production stays waiting until you mark it.";
3229
+ }
3230
+ const sentences = [];
3231
+ if (start.length) sentences.push(joinCapped(start));
3232
+ if (ready.length) sentences.push(joinCapped(ready));
3233
+ if (waiting.length) {
3234
+ sentences.push(
3235
+ start.length || ready.length ? `Still waiting: ${joinCapped(waiting)}` : `Running and idle. ${joinCapped(waiting)}. A merge or a production mark is what moves the next step`
3236
+ );
3237
+ }
3238
+ const text6 = sentences.join(". ");
3239
+ return text6.endsWith(".") ? text6 : `${text6}.`;
3240
+ }
3191
3241
  function gatePhrase(gate) {
3192
3242
  return gate === "in-prod" ? "in production" : "in main";
3193
3243
  }
@@ -3263,10 +3313,72 @@ function formatOrderPlace(rows, you) {
3263
3313
  return lines.join("\n");
3264
3314
  }
3265
3315
  function executionSlice(rows) {
3266
- return {
3267
- ready: rows.filter((row) => row.met || row.loop),
3268
- waiting: rows.filter((row) => !row.met && !row.loop)
3316
+ const byKey = /* @__PURE__ */ new Map();
3317
+ const touch = (target, label, depth, asSubject) => {
3318
+ const key = targetKey(target);
3319
+ const found = byKey.get(key);
3320
+ if (!found) {
3321
+ byKey.set(key, {
3322
+ target,
3323
+ label,
3324
+ depth: asSubject ? depth : Number.POSITIVE_INFINITY,
3325
+ asSubject,
3326
+ incoming: [],
3327
+ outgoing: []
3328
+ });
3329
+ return;
3330
+ }
3331
+ if (asSubject || !found.asSubject) found.label = label;
3332
+ if (asSubject) {
3333
+ found.asSubject = true;
3334
+ found.depth = Math.min(found.depth, depth);
3335
+ }
3269
3336
  };
3337
+ for (const row of rows) {
3338
+ touch(row.subject, row.subjectLabel, row.depth, true);
3339
+ touch(row.waitsOn, row.waitsOnLabel, row.depth, false);
3340
+ if (row.loop) continue;
3341
+ byKey.get(targetKey(row.subject)).incoming.push(row);
3342
+ byKey.get(targetKey(row.waitsOn)).outgoing.push(row);
3343
+ }
3344
+ const start = [];
3345
+ const waiting = [];
3346
+ const mergeHeld = [];
3347
+ const gateName = (row) => row.gate === "in-prod" ? "in prod" : "in main";
3348
+ const items = [...byKey.values()].sort((a, b) => {
3349
+ const depthA = Number.isFinite(a.depth) ? a.depth : 0;
3350
+ const depthB = Number.isFinite(b.depth) ? b.depth : 0;
3351
+ return depthA - depthB || a.label.localeCompare(b.label);
3352
+ });
3353
+ for (const item of items) {
3354
+ const startBlocked = item.incoming.filter((row) => !row.met && row.hold === "start");
3355
+ const mergeBlocked = item.incoming.filter((row) => !row.met && row.hold === "merge");
3356
+ const settled = item.outgoing.length > 0 && item.outgoing.every((row) => row.met) && startBlocked.length === 0 && mergeBlocked.length === 0;
3357
+ if (startBlocked.length > 0) {
3358
+ const edge = startBlocked[0];
3359
+ waiting.push({
3360
+ target: item.target,
3361
+ label: item.label,
3362
+ detail: `${edge.waitsOnLabel} must be ${gateName(edge)} before this can start`
3363
+ });
3364
+ } else if (!settled) {
3365
+ const pending = item.outgoing.find((row) => !row.met);
3366
+ start.push({
3367
+ target: item.target,
3368
+ label: item.label,
3369
+ detail: pending ? `Start this so it can reach ${pending.gate === "in-prod" ? "production" : "main"}` : "Start this"
3370
+ });
3371
+ }
3372
+ if (mergeBlocked.length > 0 && startBlocked.length === 0) {
3373
+ const edge = mergeBlocked[0];
3374
+ mergeHeld.push({
3375
+ target: item.target,
3376
+ label: item.label,
3377
+ detail: `Do not merge until ${edge.waitsOnLabel} is ${gateName(edge)}`
3378
+ });
3379
+ }
3380
+ }
3381
+ return { start, waiting, mergeHeld };
3270
3382
  }
3271
3383
  function orderEdgeTouches(edge, you) {
3272
3384
  return orderTargetMatches(edge.subject, you) || orderTargetMatches(edge.waitsOn, you);
@@ -3287,7 +3399,7 @@ function formatOrderText(rows, plan) {
3287
3399
  rows.forEach((row, index) => {
3288
3400
  const gate = row.gate === "in-prod" ? "in prod" : "in main";
3289
3401
  const hold = row.hold === "merge" ? "merge" : "start";
3290
- const state = row.loop ? "loop" : row.met ? "clear" : "waiting";
3402
+ const state = row.loop ? "loop" : row.met ? "clear" : row.hold === "merge" ? "merge" : "waiting";
3291
3403
  lines.push(
3292
3404
  row.loop ? `${index + 1}. ${state} ${row.subjectLabel} returns to ${row.waitsOnLabel} once it is ${gate}` : `${index + 1}. ${state} ${row.waitsOnLabel} must be ${gate} before ${row.subjectLabel} can ${hold}`
3293
3405
  );
@@ -3295,6 +3407,17 @@ function formatOrderText(rows, plan) {
3295
3407
  if (row.note) lines.push(` ${row.note}`);
3296
3408
  lines.push(` id: ${row.id.slice(0, 8)}`);
3297
3409
  });
3410
+ if (plan?.status === "active") {
3411
+ const slice = executionSlice(rows);
3412
+ const section = (title, items) => {
3413
+ if (!items.length) return;
3414
+ lines.push("", title);
3415
+ for (const item of items) lines.push(`- ${item.label}. ${item.detail}`);
3416
+ };
3417
+ section("Start now:", slice.start);
3418
+ section("Do not start:", slice.waiting);
3419
+ section("Do not merge:", slice.mergeHeld);
3420
+ }
3298
3421
  return lines.join("\n");
3299
3422
  }
3300
3423
  function escapeHtml(value) {
@@ -3327,6 +3450,15 @@ function markWorkingChains(chains, threads) {
3327
3450
  })
3328
3451
  }));
3329
3452
  }
3453
+ function waterfallBar(node, chain) {
3454
+ const gating = node.incoming.filter((edge) => !edge.loop);
3455
+ const startBlocked = gating.some((edge) => !edge.met && edge.hold === "start");
3456
+ const outgoing = chain.nodes.flatMap((other) => other.incoming).filter((edge) => edge.fromKey === node.key && !edge.loop);
3457
+ const settled = outgoing.length > 0 && outgoing.every((edge) => edge.met) && !startBlocked;
3458
+ if (startBlocked) return " waiting";
3459
+ if (settled || gating.length > 0 && gating.every((edge) => edge.met)) return " clear";
3460
+ return " start";
3461
+ }
3330
3462
  function nodeIsYou(node, you) {
3331
3463
  if (!you) return false;
3332
3464
  return orderTargetMatches(
@@ -3342,20 +3474,20 @@ function formatWaterfallHtml(chains, opts) {
3342
3474
  const plan = opts?.plan ?? null;
3343
3475
  const you = opts?.you ?? null;
3344
3476
  const title = plan?.title?.trim() || "Planner";
3345
- const status = plan ? plan.status === "active" ? "Running. Ready steps can start. Waiting steps stay held." : "Draft. Discuss this and change it. Nothing runs until you agree." : "Later steps wait until the one above reaches its gate. In main clears when that pull request is merged. In production stays waiting until it is marked.";
3477
+ const watch = chains.length ? planWatchCopy(chains) : "";
3478
+ const status = plan ? plan.status === "active" ? watch || "Running. Start the steps that are free. Leave held steps alone." : watch ? `Draft. Nothing runs until you agree. ${watch}` : "Draft. Discuss this and change it. Nothing runs until you agree." : watch || "Later steps wait until the one above reaches its gate. In main clears when that pull request is merged. In production stays waiting until it is marked.";
3346
3479
  const body = chains.length === 0 ? '<p class="empty">No order yet.</p>' : chains.map((chain) => {
3347
3480
  const nodes = chain.nodes.map((node) => {
3348
- const waiting = node.incoming.some((edge) => !edge.met && !edge.loop);
3349
- const clear = node.incoming.some((edge) => !edge.loop) && !waiting;
3350
3481
  const yours = nodeIsYou(node, you);
3351
3482
  const working = node.working === true;
3352
- const state = `${waiting ? " waiting" : clear ? " clear" : ""}${yours ? " you" : ""}${working ? " current" : ""}`;
3483
+ const bar = waterfallBar(node, chain);
3484
+ const state = `${working ? " current" : ""}${bar}${yours ? " you" : ""}`;
3353
3485
  const drops = node.incoming.map((edge) => {
3354
3486
  const tone = edge.loop ? "loop" : edge.met ? "clear" : "waiting";
3355
3487
  const note = edge.note ? `<span>${escapeHtml(edge.note)}</span>` : "";
3356
3488
  return `<div class="drop"><span>After ${escapeHtml(edge.fromLabel)} is ${escapeHtml(gatePhrase(edge.gate))}, this ${escapeHtml(holdPhrase(edge.hold))}</span><span class="${tone}">${escapeHtml(edge.detail)}</span>${note}</div>`;
3357
3489
  }).join("");
3358
- const kicker = `${WATERFALL_KIND[node.kind]}${working ? " \xB7 Working" : ""}${yours ? " \xB7 You" : ""}`;
3490
+ const kicker = `${WATERFALL_KIND[node.kind]}${bar === " start" ? " \xB7 Start" : ""}${working ? " \xB7 Working" : ""}${yours ? " \xB7 You" : ""}`;
3359
3491
  return `<li class="node" style="margin-left:${node.depth * 28}px">${drops}<div class="bar${state}"><span class="kicker">${kicker}</span><strong>${escapeHtml(node.label)}</strong></div></li>`;
3360
3492
  }).join("");
3361
3493
  return `<ol class="chain">${nodes}</ol>`;
@@ -3378,6 +3510,7 @@ h1 { font-size: 15px; font-weight: 600; margin: 0 0 6px; }
3378
3510
  .bar { border: 1px solid #333; border-radius: 10px; padding: 10px 12px; background: #1c1c1c; display: flex; flex-direction: column; gap: 2px; }
3379
3511
  .bar.waiting { border-color: #6a5420; background: #221c10; }
3380
3512
  .bar.clear { border-color: #2d5a32; background: #142016; }
3513
+ .bar.start { border-color: #2a4a7a; background: #141c28; }
3381
3514
  .bar.you { outline: 1px solid #8ab4ff; }
3382
3515
  .bar.current { border-color: #8ab4ff; box-shadow: inset 3px 0 0 #8ab4ff; }
3383
3516
  .bar.current .kicker { color: #ececec; }
@@ -3586,7 +3719,7 @@ function executeOrderPlan(ownerThreadId) {
3586
3719
  const ids = new Set(edges.map((edge) => edge.id));
3587
3720
  const rows = resolveOrchestrationGates(file.plans, file.edges, threadSnapshots(), file.marks);
3588
3721
  const slice = executionSlice(rows.filter((row) => ids.has(row.id)));
3589
- return { plan, ready: slice.ready, waiting: slice.waiting };
3722
+ return { plan, start: slice.start, waiting: slice.waiting, mergeHeld: slice.mergeHeld };
3590
3723
  }
3591
3724
  function threadSnapshots() {
3592
3725
  try {
@@ -3864,7 +3997,7 @@ function registerOrderTools(server) {
3864
3997
  );
3865
3998
  server.tool(
3866
3999
  "execute_plan",
3867
- "Mark the plan active after the user has seen it and told you to run it. Returns ready steps (start those with create_workspace or send_to_chat) and waiting steps (leave them alone). Does not create workspaces. Pass agreed: true only after they agree. Merge only if they asked.",
4000
+ "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.",
3868
4001
  {
3869
4002
  agreed: z9.literal(true).describe("True only after the user has seen the plan and told you to run it")
3870
4003
  },
@@ -3872,21 +4005,20 @@ function registerOrderTools(server) {
3872
4005
  try {
3873
4006
  const result = executeOrderPlan(orchestrationOwnerId(false));
3874
4007
  const brief = (row) => ({
3875
- id: row.id,
3876
- hold: row.hold,
3877
- gate: row.gate,
3878
- waitsOn: row.waitsOnLabel,
3879
- subject: row.subjectLabel,
3880
- detail: row.detail,
3881
- ...row.loop ? { loop: true } : {}
4008
+ kind: row.target.kind,
4009
+ ref: row.target.ref,
4010
+ ...row.target.repoPath ? { repoPath: row.target.repoPath } : {},
4011
+ label: row.label,
4012
+ detail: row.detail
3882
4013
  });
3883
4014
  return mcpJson({
3884
4015
  ok: true,
3885
4016
  status: result.plan.status,
3886
4017
  title: result.plan.title,
3887
- ready: result.ready.map(brief),
4018
+ start: result.start.map(brief),
3888
4019
  waiting: result.waiting.map(brief),
3889
- message: "Plan is active. Start ready steps with create_workspace or send_to_chat. Leave waiting steps alone. Merge only if the user asked."
4020
+ mergeHeld: result.mergeHeld.map(brief),
4021
+ message: "Plan is active. Start every step in start 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 the user asked."
3890
4022
  });
3891
4023
  } catch (err) {
3892
4024
  return mcpJson({ error: err instanceof Error ? err.message : String(err) }, true);
@@ -4310,7 +4442,7 @@ async function startMcpServer() {
4310
4442
  );
4311
4443
  }
4312
4444
  try {
4313
- const { maxConcurrentAgents } = await import("../app-settings-PPIMYJKS.js");
4445
+ const { maxConcurrentAgents } = await import("../app-settings-XILTSD6L.js");
4314
4446
  orch.setMaxConcurrent(maxConcurrentAgents());
4315
4447
  } catch {
4316
4448
  }
@@ -4890,7 +5022,7 @@ async function startMcpServer() {
4890
5022
  if (!worktreeProfile) {
4891
5023
  registerConnectedIssueVendorTools(server);
4892
5024
  const { getCaffeinateHold, setCaffeinateHold } = await import("../caffeinate-hold-H7TTUDGM.js");
4893
- const { resolveNewThreadOptions, resolveThreadDefaults } = await import("../app-settings-PPIMYJKS.js");
5025
+ const { resolveNewThreadOptions, resolveThreadDefaults } = await import("../app-settings-XILTSD6L.js");
4894
5026
  const accountDefaults = resolveThreadDefaults();
4895
5027
  const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
4896
5028
  server.tool(
@@ -4925,9 +5057,10 @@ async function startMcpServer() {
4925
5057
  {
4926
5058
  sourceType: z10.enum(["branch", "pr", "ticket"]),
4927
5059
  sourceRef: z10.string(),
4928
- agent: z10.enum(["claude", "codex", "opencode", "brightsy", "cursor"]).optional().describe(
4929
- `Usually omit. Sideboard uses Account default agent (${accountDefaults.agent}). Passing your own agent or cursor is ignored.`
5060
+ agent: z10.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]).optional().describe(
5061
+ `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.`
4930
5062
  ),
5063
+ acpHarness: z10.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini (Gemini CLI) or copilot (GitHub Copilot CLI)."),
4931
5064
  model: z10.string().nullable().optional().describe(
4932
5065
  `Usually omit to use Account default model (${accountDefaults.model?.trim() || "Auto"}). Pass null only to force Auto / agent-default.`
4933
5066
  ),
@@ -5247,7 +5380,7 @@ async function startMcpServer() {
5247
5380
  }
5248
5381
  }
5249
5382
  );
5250
- const agentEnum = z10.enum(["claude", "codex", "opencode", "brightsy", "cursor"]);
5383
+ const agentEnum = z10.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]);
5251
5384
  server.tool(
5252
5385
  "list_models",
5253
5386
  "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.",
@@ -5271,10 +5404,11 @@ async function startMcpServer() {
5271
5404
  ref: z10.string().describe("Worktree thread id/ref to fork"),
5272
5405
  through_index: z10.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
5273
5406
  agent: agentEnum.optional().describe("Agent for the forked chat (default: same as source)"),
5407
+ acpHarness: z10.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
5274
5408
  model: z10.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
5275
5409
  title: z10.string().optional()
5276
5410
  },
5277
- async ({ ref, through_index, agent, model, title }) => {
5411
+ async ({ ref, through_index, agent, model, title, acpHarness }) => {
5278
5412
  try {
5279
5413
  const source = orch.getThread(ref);
5280
5414
  if (source) await orch.reconcile(source.repoPath, { drainQueues: false });
@@ -5282,6 +5416,7 @@ async function startMcpServer() {
5282
5416
  threadId: ref,
5283
5417
  throughIndex: through_index,
5284
5418
  agent,
5419
+ acpHarness,
5285
5420
  model,
5286
5421
  title
5287
5422
  });
@@ -5308,11 +5443,12 @@ async function startMcpServer() {
5308
5443
  {
5309
5444
  ref: z10.string().describe("Thread id/ref to fork (worktree agent or orchestration chat)"),
5310
5445
  through_index: z10.number().optional().describe("Inclusive message index to include in the transcript (default: all)"),
5311
- agent: agentEnum.optional().describe("Agent for the forked chat (default: same as source)"),
5446
+ 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."),
5447
+ acpHarness: z10.enum(["gemini", "copilot"]).optional().describe("When agent is acp: gemini or copilot."),
5312
5448
  model: z10.string().nullable().optional().describe("Usually omit (Auto). Only set from list_models when you need a specific model"),
5313
5449
  title: z10.string().optional()
5314
5450
  },
5315
- async ({ ref, through_index, agent, model, title }) => {
5451
+ async ({ ref, through_index, agent, model, title, acpHarness }) => {
5316
5452
  try {
5317
5453
  const source = orch.getThread(ref);
5318
5454
  if (!source) {
@@ -5325,6 +5461,7 @@ async function startMcpServer() {
5325
5461
  threadId: source.id,
5326
5462
  throughIndex: through_index,
5327
5463
  agent,
5464
+ acpHarness,
5328
5465
  model,
5329
5466
  title
5330
5467
  });
@@ -5377,7 +5514,7 @@ async function startMcpServer() {
5377
5514
  "Best-of-n: create one thread per agent with the same prompt (parallel attempts)",
5378
5515
  {
5379
5516
  prompt: z10.string(),
5380
- agents: z10.array(z10.enum(["claude", "codex", "opencode", "brightsy", "cursor"])),
5517
+ agents: z10.array(z10.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"])),
5381
5518
  repoPath: z10.string(),
5382
5519
  sourceType: z10.enum(["branch", "pr", "ticket"]).optional(),
5383
5520
  sourceRef: z10.string().optional(),
@@ -5522,7 +5659,7 @@ async function startMcpServer() {
5522
5659
  {
5523
5660
  repoPath: z10.string(),
5524
5661
  branches: z10.array(z10.string()).min(1),
5525
- agent: z10.enum(["claude", "codex", "opencode", "brightsy", "cursor"]),
5662
+ agent: z10.enum(["claude", "codex", "opencode", "brightsy", "cursor", "acp"]),
5526
5663
  base: z10.string().optional(),
5527
5664
  title: z10.string().optional()
5528
5665
  },
@@ -4,16 +4,17 @@ import {
4
4
  OPTIONAL_SERVICES,
5
5
  isOptionalServiceId,
6
6
  optionalServiceSpec
7
- } from "./chunk-F7WP2U5I.js";
7
+ } from "./chunk-WJURGCBR.js";
8
8
  import {
9
9
  installNpmGlobalPackage,
10
10
  whichOnPath
11
- } from "./chunk-7B2OUQON.js";
11
+ } from "./chunk-5TCMXEYL.js";
12
+ import "./chunk-BF6INES4.js";
12
13
  import "./chunk-2GPQZZLY.js";
13
14
  import {
14
15
  enrichPathWithNpmGlobalBin
15
16
  } from "./chunk-TL2HK6LZ.js";
16
- import "./chunk-WWU4SYZR.js";
17
+ import "./chunk-VL6F2KRE.js";
17
18
  import "./chunk-NSTQ6QKD.js";
18
19
  import "./chunk-WWUABK6B.js";
19
20
  import "./chunk-FJZWM2ON.js";
@@ -3,16 +3,17 @@ import {
3
3
  detectOptionalServiceClis,
4
4
  installOptionalServiceCli,
5
5
  optionalCliPresence
6
- } from "./chunk-UJMCTGV7.js";
7
- import "./chunk-IVRWRYTH.js";
8
- import "./chunk-4NXGVJA6.js";
6
+ } from "./chunk-PXSWVZIL.js";
7
+ import "./chunk-BZK62VPT.js";
8
+ import "./chunk-F4RFFE2H.js";
9
+ import "./chunk-YE7Z5WH3.js";
9
10
  import "./chunk-JAT3JFOS.js";
10
11
  import "./chunk-R4W4VQJZ.js";
11
- import "./chunk-6WMNIX2U.js";
12
+ import "./chunk-UFUAIVNV.js";
13
+ import "./chunk-JT7R45JB.js";
12
14
  import "./chunk-4TR3HZFT.js";
13
15
  import "./chunk-WDRMZKVB.js";
14
16
  import "./chunk-KI45T4DI.js";
15
- import "./chunk-JT7R45JB.js";
16
17
  import "./chunk-H4UEFJRI.js";
17
18
  export {
18
19
  clearOptionalCliPresenceCache,
@@ -11,28 +11,29 @@ import {
11
11
  resolveSendFollowUp,
12
12
  startOrchestration,
13
13
  waitForPidExit
14
- } from "./chunk-Q4I6KDOL.js";
14
+ } from "./chunk-7WPQAVS5.js";
15
15
  import "./chunk-DC3VZXMA.js";
16
- import "./chunk-WHMLMCPU.js";
17
- import "./chunk-MVFFLU5V.js";
16
+ import "./chunk-UXAKH4AW.js";
17
+ import "./chunk-AEEOYLVK.js";
18
18
  import "./chunk-LESWJ7L4.js";
19
19
  import "./chunk-LX5R5JOR.js";
20
- import "./chunk-F7WP2U5I.js";
21
- import "./chunk-7B2OUQON.js";
20
+ import "./chunk-WJURGCBR.js";
21
+ import "./chunk-5TCMXEYL.js";
22
+ import "./chunk-BF6INES4.js";
22
23
  import "./chunk-4GK32AYX.js";
23
- import "./chunk-CATTIFSP.js";
24
- import "./chunk-QHXZKHUL.js";
24
+ import "./chunk-SZY23KGS.js";
25
+ import "./chunk-VHQ6OG3U.js";
25
26
  import "./chunk-I6RGRUNY.js";
26
27
  import "./chunk-E63AM3PW.js";
27
28
  import "./chunk-OYRN356W.js";
28
29
  import "./chunk-N2WW62LF.js";
29
30
  import "./chunk-2GPQZZLY.js";
30
- import "./chunk-JCYGQKER.js";
31
+ import "./chunk-WFX4ZVSZ.js";
31
32
  import "./chunk-GK7H3SY7.js";
32
33
  import "./chunk-TL2HK6LZ.js";
33
- import "./chunk-6RIPZ73M.js";
34
+ import "./chunk-SMSD6U3N.js";
34
35
  import "./chunk-WMZIANPV.js";
35
- import "./chunk-WWU4SYZR.js";
36
+ import "./chunk-VL6F2KRE.js";
36
37
  import "./chunk-NSTQ6QKD.js";
37
38
  import "./chunk-WWUABK6B.js";
38
39
  import "./chunk-FJZWM2ON.js";
@@ -9,23 +9,26 @@ import {
9
9
  resolveSendFollowUp,
10
10
  startOrchestration,
11
11
  waitForPidExit
12
- } from "./chunk-IRFBD6GU.js";
13
- import "./chunk-IVRWRYTH.js";
12
+ } from "./chunk-BDWVBEKN.js";
13
+ import "./chunk-BZK62VPT.js";
14
14
  import "./chunk-PGPSIEMW.js";
15
15
  import "./chunk-W3ZLE4PO.js";
16
- import "./chunk-ZXI5DR5S.js";
17
- import "./chunk-4NXGVJA6.js";
18
- import "./chunk-XOEKCE6L.js";
19
- import "./chunk-5FUAOU3G.js";
20
- import "./chunk-ROXM6QZV.js";
16
+ import "./chunk-AAKQU4UZ.js";
17
+ import "./chunk-F4RFFE2H.js";
18
+ import "./chunk-OHXNGBC4.js";
19
+ import "./chunk-RSA47QYR.js";
20
+ import "./chunk-WB3G2LQO.js";
21
+ import "./chunk-C3E2DGDF.js";
21
22
  import "./chunk-WWBPK7GB.js";
23
+ import "./chunk-YE7Z5WH3.js";
22
24
  import "./chunk-7H655NEW.js";
23
- import "./chunk-MHSBF3SO.js";
24
- import "./chunk-3DBL2C45.js";
25
- import "./chunk-RPHH4FNK.js";
26
- import "./chunk-BMRJNRQK.js";
27
- import "./chunk-RSA47QYR.js";
28
25
  import "./chunk-JAT3JFOS.js";
26
+ import "./chunk-LAWLUOWQ.js";
27
+ import "./chunk-HISSQICH.js";
28
+ import "./chunk-FQ3JYUKI.js";
29
+ import "./chunk-TCEUNSLX.js";
30
+ import "./chunk-BMRJNRQK.js";
31
+ import "./chunk-TRMPDDVL.js";
29
32
  import "./chunk-NJV5YEKI.js";
30
33
  import "./chunk-N6ZF3XRP.js";
31
34
  import "./chunk-AXQ4ZWHK.js";
@@ -35,12 +38,11 @@ import "./chunk-6K64FJDD.js";
35
38
  import "./chunk-LG6RJBIY.js";
36
39
  import "./chunk-R4W4VQJZ.js";
37
40
  import "./chunk-SUZOPJZC.js";
38
- import "./chunk-6WMNIX2U.js";
41
+ import "./chunk-UFUAIVNV.js";
42
+ import "./chunk-JT7R45JB.js";
39
43
  import "./chunk-4TR3HZFT.js";
40
44
  import "./chunk-WDRMZKVB.js";
41
45
  import "./chunk-KI45T4DI.js";
42
- import "./chunk-LAWLUOWQ.js";
43
- import "./chunk-JT7R45JB.js";
44
46
  import "./chunk-H4UEFJRI.js";
45
47
  export {
46
48
  LIGHT_RECONCILE_THROTTLE_MS,