@sideboard-ai/core 0.1.348 → 0.1.349

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 (41) hide show
  1. package/dist/agents/cursor-runner.js +3 -3
  2. package/dist/{agents-5MFGVK7C.js → agents-AZ2PV6XP.js} +7 -7
  3. package/dist/{agents-T4XBZZDA.js → agents-DMPBFF3F.js} +5 -5
  4. package/dist/{chunk-UGUWFONI.js → chunk-2E2HMJDU.js} +1 -1
  5. package/dist/{chunk-NTY5WGRD.js → chunk-3DBL2C45.js} +1 -1
  6. package/dist/{chunk-MOUAM6ZC.js → chunk-6RIPZ73M.js} +132 -2
  7. package/dist/{chunk-6TV6L2DD.js → chunk-CATTIFSP.js} +6 -5
  8. package/dist/{chunk-WMD77UCY.js → chunk-IRFBD6GU.js} +223 -55
  9. package/dist/{chunk-ORO4ENZR.js → chunk-LESWJ7L4.js} +1 -0
  10. package/dist/{chunk-XNGW4OYD.js → chunk-MHSBF3SO.js} +6 -5
  11. package/dist/{chunk-ZJMYCDYQ.js → chunk-MVFFLU5V.js} +47 -9
  12. package/dist/{chunk-OPXEJJBM.js → chunk-PWOFUPYM.js} +1 -0
  13. package/dist/{chunk-OH3BAUMC.js → chunk-Q4I6KDOL.js} +227 -59
  14. package/dist/{chunk-2HPVGTHF.js → chunk-QHXZKHUL.js} +1 -1
  15. package/dist/{chunk-GAGTEI6B.js → chunk-ROXM6QZV.js} +48 -10
  16. package/dist/{chunk-ATS7SYHG.js → chunk-RPHH4FNK.js} +132 -2
  17. package/dist/{chunk-Y6VQX2LY.js → chunk-WHMLMCPU.js} +11 -5
  18. package/dist/{chunk-BIM24I3O.js → chunk-WWBPK7GB.js} +1 -1
  19. package/dist/{chunk-5YCKATG6.js → chunk-YVN7L4KG.js} +1 -1
  20. package/dist/{chunk-Q4TZA4MN.js → chunk-ZXI5DR5S.js} +12 -6
  21. package/dist/{conductor-EMGMDNHL.js → conductor-65VPUPOW.js} +6 -6
  22. package/dist/{conductor-LYQKONSA.js → conductor-NHC6X74J.js} +5 -5
  23. package/dist/{coordinator-prompt-DLY3FS2L.js → coordinator-prompt-5GZWIVSY.js} +3 -3
  24. package/dist/{coordinator-prompt-WALVMGKI.js → coordinator-prompt-R2PURZL3.js} +3 -3
  25. package/dist/{global-workspace-UG2A3CEM.js → global-workspace-64KC7PST.js} +3 -3
  26. package/dist/{global-workspace-7OQ5O6JT.js → global-workspace-UEECLWSX.js} +3 -3
  27. package/dist/index.cjs +1298 -849
  28. package/dist/index.d.cts +30 -8
  29. package/dist/index.d.ts +30 -8
  30. package/dist/index.js +445 -365
  31. package/dist/mcp/run-stdio.cjs +1033 -585
  32. package/dist/mcp/run-stdio.js +296 -216
  33. package/dist/{orchestrator-4SXTORD2.js → orchestrator-I5G5A5BV.js} +7 -7
  34. package/dist/{orchestrator-KNOMW5CZ.js → orchestrator-Y5PYSMR6.js} +9 -9
  35. package/dist/{thread-store-R3G5VBII.js → thread-store-HZ4U4OXB.js} +1 -1
  36. package/dist/{thread-store-MEUWZDVV.js → thread-store-QKNU5CHM.js} +1 -1
  37. package/dist/{workspaces-KWGTP7DI.js → workspaces-6TIM2TM2.js} +3 -3
  38. package/dist/{workspaces-35T6FW57.js → workspaces-I2EHNTFE.js} +3 -3
  39. package/dist/{worktree-ROJXGBWS.js → worktree-7JFYDNUX.js} +2 -2
  40. package/dist/{worktree-5P7SCST3.js → worktree-M2GJGK2P.js} +2 -2
  41. package/package.json +1 -1
package/dist/index.d.cts CHANGED
@@ -56,6 +56,25 @@ interface AgentBlock {
56
56
  permission?: AgentPermissionPrompt;
57
57
  }
58
58
 
59
+ type ChatFollowUpKind = 'ci' | 'at';
60
+ /** `pending` still running, `done` every check finished, `none` no PR or no rows. */
61
+ /** `unknown` is a failed checks read. It must not count as pending or finished. */
62
+ type CiPhase = 'pending' | 'done' | 'none' | 'unknown';
63
+ type ChatFollowUp = {
64
+ id: string;
65
+ kind: ChatFollowUpKind;
66
+ prompt: string;
67
+ /** When an `at` follow-up should send. */
68
+ at?: string;
69
+ /** Drop a still-pending `ci` follow-up after this without sending. */
70
+ deadline: string;
71
+ createdAt: string;
72
+ /** CI state when this follow-up was registered. */
73
+ ciBaseline?: CiPhase;
74
+ /** True after a later poll saw checks still running. */
75
+ ciSawPending?: boolean;
76
+ };
77
+
59
78
  /**
60
79
  * Agent thinking / reasoning effort.
61
80
  * Matches Claude Code `--effort` and Conductor's 5-rung effort chip:
@@ -240,15 +259,14 @@ interface Thread {
240
259
  prMergeStateStatus?: string | null;
241
260
  /** Cached GitHub merge-queue flag from the last `getPrMeta`. */
242
261
  prIsInMergeQueue?: boolean;
243
- /**
244
- * Cached GitHub label names (workflow tags like `eng-review`).
245
- * Used for sidebar / board list badges.
246
- */
262
+ /** Cached GitHub label names (workflow tags like `eng-review`) for sidebar and board badges. */
247
263
  prLabels?: string[];
248
264
  /** True when `gh pr checks` reported a failing CI run. */
249
265
  prChecksFailed?: boolean;
250
266
  /** This checkout opts in to CI / review-request wakes. Off until set. */
251
267
  wakeOnGithubEdges?: boolean;
268
+ /** CI or time follow-ups on this chat. A running turn is not interrupted. Cap 10. */
269
+ followUps?: ChatFollowUp[];
252
270
  /** Source-ticket blockers. Empty if none; absent until looked up. Not an agent block. */
253
271
  issueBlockedBy?: string[];
254
272
  /**
@@ -6275,14 +6293,18 @@ declare function isPidAlive(pid: number): boolean;
6275
6293
  /** Wait until pid exits, or `timeoutMs` elapses. */
6276
6294
  declare function waitForPidExit(pid: number, timeoutMs: number): Promise<boolean>;
6277
6295
 
6296
+ /** `join` waits behind a running turn. Settings still use `queue` or `steer`. */
6297
+ type SendFollowUp = FollowUpBehavior | 'join';
6278
6298
  /**
6279
6299
  * Desktop/CLI pass follow-up explicitly. Internal sends (child-halt
6280
6300
  * "Sideboard: …" notices, Slack, schedules) omit it — orchestrators then
6281
6301
  * use Settings → Follow-up behavior (default steer) so those do not sit
6282
6302
  * in the queue while the user asked to interrupt.
6283
6303
  *
6284
- * Orchestrator → worktree talk (`send_to_chat`, `ask_git`) must
6285
- * pass {@link resolveOrchChildFollowUp} so those prompts steer by default.
6304
+ * `ask_git` passes {@link resolveOrchChildFollowUp} so those prompts steer.
6305
+ * `send_to_chat` passes `join`. That merges only while the prompt is still
6306
+ * queued or not yet handed to the process. Once the process has started, the
6307
+ * new text waits behind the turn and the running prompt is left as sent.
6286
6308
  * Create/reuse first prompts still queue unless the caller opts in.
6287
6309
  */
6288
6310
  declare function resolveSendFollowUp(thread: Pick<Thread, 'sourceType' | 'repoPath'>, requested?: FollowUpBehavior): FollowUpBehavior;
@@ -6447,7 +6469,7 @@ declare class Orchestrator {
6447
6469
  listConductor(): ConductorWorkspace[];
6448
6470
  adoptFromConductor(workspaceId: string): Promise<Thread>;
6449
6471
  send(threadRef: string, prompt: string, opts?: {
6450
- followUp?: FollowUpBehavior;
6472
+ followUp?: SendFollowUp;
6451
6473
  attachments?: Thread['attachments'];
6452
6474
  }): Promise<Thread>;
6453
6475
  fanOut(threadRefs: string[], prompt: string, opts?: {
@@ -6800,7 +6822,7 @@ declare function outboundReplyFromTurn(result: OutboundTurnSnapshot, copy: Outbo
6800
6822
  type SideboardMcpProfile = 'worktree' | 'orchestration';
6801
6823
  declare const SIDEBOARD_MCP_PROFILE_ENV = "SIDEBOARD_MCP_PROFILE";
6802
6824
  /** Full worktree MCP catalog. `worktreeMcpToolNames` drops Agent RPC pilots when native. */
6803
- declare const WORKTREE_MCP_TOOLS: readonly ["present_artifact", "ask_user", "present_plan", "present_schema", "present_files", "wait_for_job", "stop_job", "list_run_scripts", "run_dev_script", "stop_dev_script", "get_run_log", "get_orchestrator", "notify_orchestrator", "set_workspace_tags", "set_wake_on_github_edges", "get_viewer_context", "update_viewer_context", "list_env", "set_env", "delete_env", "list_schedules", "create_schedule", "update_schedule", "delete_schedule", "run_schedule", "list_order", "show_plan", "set_dependency", "clear_dependency", "satisfy_dependency"];
6825
+ declare const WORKTREE_MCP_TOOLS: readonly ["present_artifact", "ask_user", "present_plan", "present_schema", "present_files", "wait_for_job", "stop_job", "list_run_scripts", "run_dev_script", "stop_dev_script", "get_run_log", "get_orchestrator", "notify_orchestrator", "set_workspace_tags", "set_wake_on_github_edges", "get_viewer_context", "update_viewer_context", "list_env", "set_env", "delete_env", "list_schedules", "create_schedule", "update_schedule", "delete_schedule", "run_schedule", "list_follow_ups", "create_follow_up", "delete_follow_up", "list_order", "show_plan", "set_dependency", "clear_dependency", "satisfy_dependency"];
6804
6826
  /** GitHub Issues via Account `gh` — always registered on worktree + orchestration. */
6805
6827
  declare const WORKTREE_GITHUB_MCP_TOOLS: readonly ["github_search_issues", "github_list_projects", "github_get_issue", "github_download_attachment", "github_comment", "github_update_issue", "github_create_issue"];
6806
6828
  /** Account Linear tools registered when Linear is connected. */
package/dist/index.d.ts CHANGED
@@ -56,6 +56,25 @@ interface AgentBlock {
56
56
  permission?: AgentPermissionPrompt;
57
57
  }
58
58
 
59
+ type ChatFollowUpKind = 'ci' | 'at';
60
+ /** `pending` still running, `done` every check finished, `none` no PR or no rows. */
61
+ /** `unknown` is a failed checks read. It must not count as pending or finished. */
62
+ type CiPhase = 'pending' | 'done' | 'none' | 'unknown';
63
+ type ChatFollowUp = {
64
+ id: string;
65
+ kind: ChatFollowUpKind;
66
+ prompt: string;
67
+ /** When an `at` follow-up should send. */
68
+ at?: string;
69
+ /** Drop a still-pending `ci` follow-up after this without sending. */
70
+ deadline: string;
71
+ createdAt: string;
72
+ /** CI state when this follow-up was registered. */
73
+ ciBaseline?: CiPhase;
74
+ /** True after a later poll saw checks still running. */
75
+ ciSawPending?: boolean;
76
+ };
77
+
59
78
  /**
60
79
  * Agent thinking / reasoning effort.
61
80
  * Matches Claude Code `--effort` and Conductor's 5-rung effort chip:
@@ -240,15 +259,14 @@ interface Thread {
240
259
  prMergeStateStatus?: string | null;
241
260
  /** Cached GitHub merge-queue flag from the last `getPrMeta`. */
242
261
  prIsInMergeQueue?: boolean;
243
- /**
244
- * Cached GitHub label names (workflow tags like `eng-review`).
245
- * Used for sidebar / board list badges.
246
- */
262
+ /** Cached GitHub label names (workflow tags like `eng-review`) for sidebar and board badges. */
247
263
  prLabels?: string[];
248
264
  /** True when `gh pr checks` reported a failing CI run. */
249
265
  prChecksFailed?: boolean;
250
266
  /** This checkout opts in to CI / review-request wakes. Off until set. */
251
267
  wakeOnGithubEdges?: boolean;
268
+ /** CI or time follow-ups on this chat. A running turn is not interrupted. Cap 10. */
269
+ followUps?: ChatFollowUp[];
252
270
  /** Source-ticket blockers. Empty if none; absent until looked up. Not an agent block. */
253
271
  issueBlockedBy?: string[];
254
272
  /**
@@ -6275,14 +6293,18 @@ declare function isPidAlive(pid: number): boolean;
6275
6293
  /** Wait until pid exits, or `timeoutMs` elapses. */
6276
6294
  declare function waitForPidExit(pid: number, timeoutMs: number): Promise<boolean>;
6277
6295
 
6296
+ /** `join` waits behind a running turn. Settings still use `queue` or `steer`. */
6297
+ type SendFollowUp = FollowUpBehavior | 'join';
6278
6298
  /**
6279
6299
  * Desktop/CLI pass follow-up explicitly. Internal sends (child-halt
6280
6300
  * "Sideboard: …" notices, Slack, schedules) omit it — orchestrators then
6281
6301
  * use Settings → Follow-up behavior (default steer) so those do not sit
6282
6302
  * in the queue while the user asked to interrupt.
6283
6303
  *
6284
- * Orchestrator → worktree talk (`send_to_chat`, `ask_git`) must
6285
- * pass {@link resolveOrchChildFollowUp} so those prompts steer by default.
6304
+ * `ask_git` passes {@link resolveOrchChildFollowUp} so those prompts steer.
6305
+ * `send_to_chat` passes `join`. That merges only while the prompt is still
6306
+ * queued or not yet handed to the process. Once the process has started, the
6307
+ * new text waits behind the turn and the running prompt is left as sent.
6286
6308
  * Create/reuse first prompts still queue unless the caller opts in.
6287
6309
  */
6288
6310
  declare function resolveSendFollowUp(thread: Pick<Thread, 'sourceType' | 'repoPath'>, requested?: FollowUpBehavior): FollowUpBehavior;
@@ -6447,7 +6469,7 @@ declare class Orchestrator {
6447
6469
  listConductor(): ConductorWorkspace[];
6448
6470
  adoptFromConductor(workspaceId: string): Promise<Thread>;
6449
6471
  send(threadRef: string, prompt: string, opts?: {
6450
- followUp?: FollowUpBehavior;
6472
+ followUp?: SendFollowUp;
6451
6473
  attachments?: Thread['attachments'];
6452
6474
  }): Promise<Thread>;
6453
6475
  fanOut(threadRefs: string[], prompt: string, opts?: {
@@ -6800,7 +6822,7 @@ declare function outboundReplyFromTurn(result: OutboundTurnSnapshot, copy: Outbo
6800
6822
  type SideboardMcpProfile = 'worktree' | 'orchestration';
6801
6823
  declare const SIDEBOARD_MCP_PROFILE_ENV = "SIDEBOARD_MCP_PROFILE";
6802
6824
  /** Full worktree MCP catalog. `worktreeMcpToolNames` drops Agent RPC pilots when native. */
6803
- declare const WORKTREE_MCP_TOOLS: readonly ["present_artifact", "ask_user", "present_plan", "present_schema", "present_files", "wait_for_job", "stop_job", "list_run_scripts", "run_dev_script", "stop_dev_script", "get_run_log", "get_orchestrator", "notify_orchestrator", "set_workspace_tags", "set_wake_on_github_edges", "get_viewer_context", "update_viewer_context", "list_env", "set_env", "delete_env", "list_schedules", "create_schedule", "update_schedule", "delete_schedule", "run_schedule", "list_order", "show_plan", "set_dependency", "clear_dependency", "satisfy_dependency"];
6825
+ declare const WORKTREE_MCP_TOOLS: readonly ["present_artifact", "ask_user", "present_plan", "present_schema", "present_files", "wait_for_job", "stop_job", "list_run_scripts", "run_dev_script", "stop_dev_script", "get_run_log", "get_orchestrator", "notify_orchestrator", "set_workspace_tags", "set_wake_on_github_edges", "get_viewer_context", "update_viewer_context", "list_env", "set_env", "delete_env", "list_schedules", "create_schedule", "update_schedule", "delete_schedule", "run_schedule", "list_follow_ups", "create_follow_up", "delete_follow_up", "list_order", "show_plan", "set_dependency", "clear_dependency", "satisfy_dependency"];
6804
6826
  /** GitHub Issues via Account `gh` — always registered on worktree + orchestration. */
6805
6827
  declare const WORKTREE_GITHUB_MCP_TOOLS: readonly ["github_search_issues", "github_list_projects", "github_get_issue", "github_download_attachment", "github_comment", "github_update_issue", "github_create_issue"];
6806
6828
  /** Account Linear tools registered when Linear is connected. */