@sideboard-ai/core 0.1.56 → 0.1.59
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/{agents-2YYWW723.js → agents-B2723EOF.js} +4 -4
- package/dist/{agents-AQFEFKBL.js → agents-EADRAAPG.js} +4 -4
- package/dist/{app-settings-2LQNRTBE.js → app-settings-TBHTJWLQ.js} +1 -1
- package/dist/{app-settings-73DI4B6T.js → app-settings-YBNZ4XSR.js} +1 -1
- package/dist/{chunk-5DMYULLC.js → chunk-2P2UK7E7.js} +2 -2
- package/dist/{chunk-7LNGIP3X.js → chunk-73AT5K4A.js} +15 -3
- package/dist/{chunk-DIOF73S2.js → chunk-75QR74KM.js} +7 -2
- package/dist/{chunk-EBWEKG52.js → chunk-CHGOMFTA.js} +3 -3
- package/dist/{chunk-C4BCC5X5.js → chunk-FGNBTFRD.js} +7 -2
- package/dist/{chunk-H6GGDLYS.js → chunk-JB2H7E7V.js} +1 -1
- package/dist/{chunk-BXJ76RHF.js → chunk-MBAL5FE6.js} +4 -4
- package/dist/{chunk-XOU6HNQJ.js → chunk-MFGGIRUA.js} +39 -13
- package/dist/{chunk-S42XDFKF.js → chunk-MLAST5BB.js} +3 -3
- package/dist/{chunk-C3J4GDW4.js → chunk-MX7UH5AT.js} +76 -60
- package/dist/{chunk-DQJ5D42H.js → chunk-NTYRBRE7.js} +44 -13
- package/dist/{chunk-DZFH2KLT.js → chunk-P7EQUFB6.js} +39 -13
- package/dist/{chunk-V2DUTUNC.js → chunk-QJBC4BRK.js} +2 -2
- package/dist/{chunk-ZNM4MAN4.js → chunk-RIWUU7FO.js} +15 -3
- package/dist/{chunk-UA5NDAHL.js → chunk-XWPKLRB3.js} +44 -13
- package/dist/{chunk-7F454EE2.js → chunk-ZXDOI6IH.js} +76 -53
- package/dist/{connected-teams-ONC4666A.js → connected-teams-MKIYKOYA.js} +2 -2
- package/dist/{connected-teams-2ANNZCP5.js → connected-teams-RSL4VB3X.js} +2 -2
- package/dist/{coordinator-prompt-RBKUNRPR.js → coordinator-prompt-4P23VVFC.js} +4 -4
- package/dist/{coordinator-prompt-ICF36NUQ.js → coordinator-prompt-LNWHZ64D.js} +4 -4
- package/dist/{global-workspace-667XLBW6.js → global-workspace-BHT4XUAA.js} +5 -5
- package/dist/{global-workspace-S7VLWPWG.js → global-workspace-TMMAVRVW.js} +5 -5
- package/dist/index.cjs +342 -119
- package/dist/index.d.cts +27 -6
- package/dist/index.d.ts +27 -6
- package/dist/index.js +195 -67
- package/dist/mcp/run-stdio.cjs +342 -130
- package/dist/mcp/run-stdio.js +194 -71
- package/dist/{run-ZJKYHXGN.js → run-GPSVV5OH.js} +1 -1
- package/dist/{run-H3IMNOYN.js → run-HZTBWGQR.js} +1 -1
- package/dist/{workspaces-FPJJXXAE.js → workspaces-3GO3EDQG.js} +6 -6
- package/dist/{workspaces-LYIDE2VR.js → workspaces-GFPGDGCS.js} +6 -6
- package/dist/{worktree-5KEQWSAF.js → worktree-3L2G6PCM.js} +2 -2
- package/dist/{worktree-RWGL7FUV.js → worktree-GBLHEFHR.js} +2 -2
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -855,6 +855,8 @@ declare function run(file: string, args: string[], opts?: {
|
|
|
855
855
|
cwd?: string;
|
|
856
856
|
reject?: boolean;
|
|
857
857
|
env?: Record<string, string>;
|
|
858
|
+
/** Kill the child after this many ms (execa `timeout`). */
|
|
859
|
+
timeoutMs?: number;
|
|
858
860
|
}): Promise<{
|
|
859
861
|
stdout: string;
|
|
860
862
|
stderr: string;
|
|
@@ -865,6 +867,8 @@ declare function git(args: string[], cwd: string, opts?: {
|
|
|
865
867
|
env?: Record<string, string>;
|
|
866
868
|
/** Passed as `git -c key=value` (e.g. authenticated HTTPS via http.extraHeader). */
|
|
867
869
|
config?: Record<string, string>;
|
|
870
|
+
/** Kill after this many ms — critical for MCP so a stuck fetch cannot pin the stdio server. */
|
|
871
|
+
timeoutMs?: number;
|
|
868
872
|
}): Promise<{
|
|
869
873
|
stdout: string;
|
|
870
874
|
stderr: string;
|
|
@@ -872,6 +876,7 @@ declare function git(args: string[], cwd: string, opts?: {
|
|
|
872
876
|
}>;
|
|
873
877
|
declare function gh(args: string[], cwd: string, opts?: {
|
|
874
878
|
reject?: boolean;
|
|
879
|
+
timeoutMs?: number;
|
|
875
880
|
}): Promise<{
|
|
876
881
|
stdout: string;
|
|
877
882
|
stderr: string;
|
|
@@ -1274,10 +1279,10 @@ interface AgentAdapter {
|
|
|
1274
1279
|
}>>;
|
|
1275
1280
|
}
|
|
1276
1281
|
declare const PLAN_MODE_INSTRUCTION = "Plan mode is active and must remain active until the user turns Plan mode off in the UI (or Approves / Hands off the plan). Analyze the codebase, search and read files as needed, and produce or refine a clear implementation plan. Do not modify, create, or delete any project files except via Sideboard MCP present_plan (writes .context/attachments/plan.md). When you need a clarifying decision (approach forks, auth choice, scope): (1) first write a short chat message that explains the decision and what each option means (tradeoffs, when to pick it) \u2014 do not leave the user staring at bare labels; (2) then call Sideboard MCP ask_user with the same options, including a description on every option. Sideboard shows questions in the composer and mirrors them in chat. After ask_user, wait for the user's next message with their answers before finalizing the plan. When the plan is ready for approval: (1) call present_plan with the full markdown plan (title + content) so Sideboard saves .context/attachments/plan.md and shows it in chat for Approve / Hand off / Copy; (2) Claude should also call ExitPlanMode after present_plan. Do not skip present_plan \u2014 the plan must be a markdown file, not only chat prose.";
|
|
1277
|
-
declare function permissionMode(thread: Pick<Thread, 'autonomy' | 'planMode'>): {
|
|
1282
|
+
declare function permissionMode(thread: Pick<Thread, 'autonomy' | 'planMode' | 'sourceType'>): {
|
|
1278
1283
|
claude: string;
|
|
1279
1284
|
opencodePermission: string;
|
|
1280
|
-
codexSandbox: 'read-only' | 'workspace-write';
|
|
1285
|
+
codexSandbox: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
1281
1286
|
};
|
|
1282
1287
|
|
|
1283
1288
|
/**
|
|
@@ -1606,7 +1611,7 @@ declare function formatAgentInstructions(files: AgentInstructionFile[]): string
|
|
|
1606
1611
|
declare function withAgentInstructions(prompt: string, files: AgentInstructionFile[]): string;
|
|
1607
1612
|
|
|
1608
1613
|
declare function detectAgents(): Promise<AgentStatus[]>;
|
|
1609
|
-
declare function requireAgent(agent:
|
|
1614
|
+
declare function requireAgent(agent: AgentKind, opts?: {
|
|
1610
1615
|
requireLinear?: boolean;
|
|
1611
1616
|
}): Promise<AgentStatus>;
|
|
1612
1617
|
|
|
@@ -2231,7 +2236,19 @@ declare class Orchestrator {
|
|
|
2231
2236
|
* real app/CLI startup recovery.
|
|
2232
2237
|
*/
|
|
2233
2238
|
reclaimStaleTurns?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* When false, skip draining persisted queues. MCP stdio boots must not
|
|
2241
|
+
* steal the whole fleet into a short-lived process (desktop adopts instead).
|
|
2242
|
+
* Default true for desktop/CLI.
|
|
2243
|
+
*/
|
|
2244
|
+
drainQueues?: boolean;
|
|
2234
2245
|
}): Promise<void>;
|
|
2246
|
+
/**
|
|
2247
|
+
* Adopt queues persisted by another process (MCP stdio / CLI) into this
|
|
2248
|
+
* orchestrator's drain loops. Desktop calls this on thread-store changes so
|
|
2249
|
+
* MCP-created review threads don't stay `queued` after the MCP child exits.
|
|
2250
|
+
*/
|
|
2251
|
+
adoptPersistedQueues(): void;
|
|
2235
2252
|
private clearQuotaResumeTimer;
|
|
2236
2253
|
/** Schedule (or fire) auto-retry after a provider session/usage limit reset. */
|
|
2237
2254
|
private scheduleQuotaResume;
|
|
@@ -2493,7 +2510,7 @@ declare const REVIEW_REQUEST_PATH = ".context/attachments/Review request.md";
|
|
|
2493
2510
|
declare const LEGACY_REVIEW_REQUEST_PATH = ".sideboard/attachments/Review request.md";
|
|
2494
2511
|
declare const REVIEW_REQUEST_NAME = "Review request.md";
|
|
2495
2512
|
/** Short chat message — guidelines live in the attached review file. */
|
|
2496
|
-
declare const REVIEW_REQUEST_PREFILL = "Review.";
|
|
2513
|
+
declare const REVIEW_REQUEST_PREFILL = "Review changes in this workspace.";
|
|
2497
2514
|
type ReviewGuidelinesSource = 'repo' | 'local' | 'stock';
|
|
2498
2515
|
interface ResolvedReviewGuidelines {
|
|
2499
2516
|
path: string;
|
|
@@ -2538,7 +2555,7 @@ interface RequestReviewResult {
|
|
|
2538
2555
|
}
|
|
2539
2556
|
type SendFn = (threadRef: string, prompt: string) => Promise<Thread>;
|
|
2540
2557
|
/**
|
|
2541
|
-
* Open a fresh "Review" chat tab, attach resolved guidelines, send
|
|
2558
|
+
* Open a fresh "Review" chat tab, attach resolved guidelines, send the review prefill.
|
|
2542
2559
|
*/
|
|
2543
2560
|
declare function requestReview(threadRef: string, send: SendFn): Promise<RequestReviewResult>;
|
|
2544
2561
|
|
|
@@ -2663,8 +2680,12 @@ declare function coordinatorTurnReminder(opts: {
|
|
|
2663
2680
|
/**
|
|
2664
2681
|
* Write durable CLAUDE.md / AGENTS.md into the global synthetic cwd so Claude
|
|
2665
2682
|
* (and other agents that load AGENTS.md) keep orchestrator identity on resume.
|
|
2683
|
+
* When `orchestratorThreadId` is set, embed that uuid so Codex/Claude resume
|
|
2684
|
+
* cannot invent a stale parentThreadId.
|
|
2666
2685
|
*/
|
|
2667
|
-
declare function ensureGlobalCoordinatorCwd(
|
|
2686
|
+
declare function ensureGlobalCoordinatorCwd(opts?: {
|
|
2687
|
+
orchestratorThreadId?: string | null;
|
|
2688
|
+
}): string;
|
|
2668
2689
|
declare function coordinatorSystemPrompt(opts: {
|
|
2669
2690
|
goal: string;
|
|
2670
2691
|
parentId: string;
|
package/dist/index.d.ts
CHANGED
|
@@ -855,6 +855,8 @@ declare function run(file: string, args: string[], opts?: {
|
|
|
855
855
|
cwd?: string;
|
|
856
856
|
reject?: boolean;
|
|
857
857
|
env?: Record<string, string>;
|
|
858
|
+
/** Kill the child after this many ms (execa `timeout`). */
|
|
859
|
+
timeoutMs?: number;
|
|
858
860
|
}): Promise<{
|
|
859
861
|
stdout: string;
|
|
860
862
|
stderr: string;
|
|
@@ -865,6 +867,8 @@ declare function git(args: string[], cwd: string, opts?: {
|
|
|
865
867
|
env?: Record<string, string>;
|
|
866
868
|
/** Passed as `git -c key=value` (e.g. authenticated HTTPS via http.extraHeader). */
|
|
867
869
|
config?: Record<string, string>;
|
|
870
|
+
/** Kill after this many ms — critical for MCP so a stuck fetch cannot pin the stdio server. */
|
|
871
|
+
timeoutMs?: number;
|
|
868
872
|
}): Promise<{
|
|
869
873
|
stdout: string;
|
|
870
874
|
stderr: string;
|
|
@@ -872,6 +876,7 @@ declare function git(args: string[], cwd: string, opts?: {
|
|
|
872
876
|
}>;
|
|
873
877
|
declare function gh(args: string[], cwd: string, opts?: {
|
|
874
878
|
reject?: boolean;
|
|
879
|
+
timeoutMs?: number;
|
|
875
880
|
}): Promise<{
|
|
876
881
|
stdout: string;
|
|
877
882
|
stderr: string;
|
|
@@ -1274,10 +1279,10 @@ interface AgentAdapter {
|
|
|
1274
1279
|
}>>;
|
|
1275
1280
|
}
|
|
1276
1281
|
declare const PLAN_MODE_INSTRUCTION = "Plan mode is active and must remain active until the user turns Plan mode off in the UI (or Approves / Hands off the plan). Analyze the codebase, search and read files as needed, and produce or refine a clear implementation plan. Do not modify, create, or delete any project files except via Sideboard MCP present_plan (writes .context/attachments/plan.md). When you need a clarifying decision (approach forks, auth choice, scope): (1) first write a short chat message that explains the decision and what each option means (tradeoffs, when to pick it) \u2014 do not leave the user staring at bare labels; (2) then call Sideboard MCP ask_user with the same options, including a description on every option. Sideboard shows questions in the composer and mirrors them in chat. After ask_user, wait for the user's next message with their answers before finalizing the plan. When the plan is ready for approval: (1) call present_plan with the full markdown plan (title + content) so Sideboard saves .context/attachments/plan.md and shows it in chat for Approve / Hand off / Copy; (2) Claude should also call ExitPlanMode after present_plan. Do not skip present_plan \u2014 the plan must be a markdown file, not only chat prose.";
|
|
1277
|
-
declare function permissionMode(thread: Pick<Thread, 'autonomy' | 'planMode'>): {
|
|
1282
|
+
declare function permissionMode(thread: Pick<Thread, 'autonomy' | 'planMode' | 'sourceType'>): {
|
|
1278
1283
|
claude: string;
|
|
1279
1284
|
opencodePermission: string;
|
|
1280
|
-
codexSandbox: 'read-only' | 'workspace-write';
|
|
1285
|
+
codexSandbox: 'read-only' | 'workspace-write' | 'danger-full-access';
|
|
1281
1286
|
};
|
|
1282
1287
|
|
|
1283
1288
|
/**
|
|
@@ -1606,7 +1611,7 @@ declare function formatAgentInstructions(files: AgentInstructionFile[]): string
|
|
|
1606
1611
|
declare function withAgentInstructions(prompt: string, files: AgentInstructionFile[]): string;
|
|
1607
1612
|
|
|
1608
1613
|
declare function detectAgents(): Promise<AgentStatus[]>;
|
|
1609
|
-
declare function requireAgent(agent:
|
|
1614
|
+
declare function requireAgent(agent: AgentKind, opts?: {
|
|
1610
1615
|
requireLinear?: boolean;
|
|
1611
1616
|
}): Promise<AgentStatus>;
|
|
1612
1617
|
|
|
@@ -2231,7 +2236,19 @@ declare class Orchestrator {
|
|
|
2231
2236
|
* real app/CLI startup recovery.
|
|
2232
2237
|
*/
|
|
2233
2238
|
reclaimStaleTurns?: boolean;
|
|
2239
|
+
/**
|
|
2240
|
+
* When false, skip draining persisted queues. MCP stdio boots must not
|
|
2241
|
+
* steal the whole fleet into a short-lived process (desktop adopts instead).
|
|
2242
|
+
* Default true for desktop/CLI.
|
|
2243
|
+
*/
|
|
2244
|
+
drainQueues?: boolean;
|
|
2234
2245
|
}): Promise<void>;
|
|
2246
|
+
/**
|
|
2247
|
+
* Adopt queues persisted by another process (MCP stdio / CLI) into this
|
|
2248
|
+
* orchestrator's drain loops. Desktop calls this on thread-store changes so
|
|
2249
|
+
* MCP-created review threads don't stay `queued` after the MCP child exits.
|
|
2250
|
+
*/
|
|
2251
|
+
adoptPersistedQueues(): void;
|
|
2235
2252
|
private clearQuotaResumeTimer;
|
|
2236
2253
|
/** Schedule (or fire) auto-retry after a provider session/usage limit reset. */
|
|
2237
2254
|
private scheduleQuotaResume;
|
|
@@ -2493,7 +2510,7 @@ declare const REVIEW_REQUEST_PATH = ".context/attachments/Review request.md";
|
|
|
2493
2510
|
declare const LEGACY_REVIEW_REQUEST_PATH = ".sideboard/attachments/Review request.md";
|
|
2494
2511
|
declare const REVIEW_REQUEST_NAME = "Review request.md";
|
|
2495
2512
|
/** Short chat message — guidelines live in the attached review file. */
|
|
2496
|
-
declare const REVIEW_REQUEST_PREFILL = "Review.";
|
|
2513
|
+
declare const REVIEW_REQUEST_PREFILL = "Review changes in this workspace.";
|
|
2497
2514
|
type ReviewGuidelinesSource = 'repo' | 'local' | 'stock';
|
|
2498
2515
|
interface ResolvedReviewGuidelines {
|
|
2499
2516
|
path: string;
|
|
@@ -2538,7 +2555,7 @@ interface RequestReviewResult {
|
|
|
2538
2555
|
}
|
|
2539
2556
|
type SendFn = (threadRef: string, prompt: string) => Promise<Thread>;
|
|
2540
2557
|
/**
|
|
2541
|
-
* Open a fresh "Review" chat tab, attach resolved guidelines, send
|
|
2558
|
+
* Open a fresh "Review" chat tab, attach resolved guidelines, send the review prefill.
|
|
2542
2559
|
*/
|
|
2543
2560
|
declare function requestReview(threadRef: string, send: SendFn): Promise<RequestReviewResult>;
|
|
2544
2561
|
|
|
@@ -2663,8 +2680,12 @@ declare function coordinatorTurnReminder(opts: {
|
|
|
2663
2680
|
/**
|
|
2664
2681
|
* Write durable CLAUDE.md / AGENTS.md into the global synthetic cwd so Claude
|
|
2665
2682
|
* (and other agents that load AGENTS.md) keep orchestrator identity on resume.
|
|
2683
|
+
* When `orchestratorThreadId` is set, embed that uuid so Codex/Claude resume
|
|
2684
|
+
* cannot invent a stale parentThreadId.
|
|
2666
2685
|
*/
|
|
2667
|
-
declare function ensureGlobalCoordinatorCwd(
|
|
2686
|
+
declare function ensureGlobalCoordinatorCwd(opts?: {
|
|
2687
|
+
orchestratorThreadId?: string | null;
|
|
2688
|
+
}): string;
|
|
2668
2689
|
declare function coordinatorSystemPrompt(opts: {
|
|
2669
2690
|
goal: string;
|
|
2670
2691
|
parentId: string;
|