@sideboard-ai/core 0.1.133 → 0.1.136
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-NHS6P25H.js → agents-ELWR7A2T.js} +5 -5
- package/dist/{agents-SOU5GPWI.js → agents-QNTTLMG2.js} +5 -5
- package/dist/{chunk-Y645NFYN.js → chunk-4XKUHP6G.js} +2 -2
- package/dist/{chunk-4YAVXWFR.js → chunk-CYM5DCHI.js} +39 -5
- package/dist/{chunk-LTP7GHIF.js → chunk-GSKRGF7B.js} +286 -5
- package/dist/{chunk-WEU5M7BW.js → chunk-HQQNLDVC.js} +1 -1
- package/dist/{chunk-IM36S4HZ.js → chunk-IFZ4MOTN.js} +3 -3
- package/dist/{chunk-G6X6UFJO.js → chunk-J5IBSVB3.js} +42 -12
- package/dist/{chunk-AK7SWE2U.js → chunk-JPBRMUM6.js} +9 -5
- package/dist/{chunk-YEIH7P7D.js → chunk-K5YT5GX2.js} +244 -5
- package/dist/{chunk-3UVVWNHF.js → chunk-MDCKV2NF.js} +2 -2
- package/dist/{chunk-HLJUNJBF.js → chunk-PM3C2J6K.js} +42 -12
- package/dist/{chunk-Q6XQXCOM.js → chunk-QAV3HGVS.js} +1 -1
- package/dist/{chunk-TG7YU2KG.js → chunk-TIGKDMIA.js} +144 -271
- package/dist/{chunk-6CRKPD4C.js → chunk-TQ4S5AGJ.js} +3 -3
- package/dist/{chunk-VSON7EJ6.js → chunk-WS5LFFU3.js} +140 -222
- package/dist/{coordinator-prompt-DXHEDRRN.js → coordinator-prompt-2OWSUAUR.js} +3 -3
- package/dist/{coordinator-prompt-XF7LVOUN.js → coordinator-prompt-IPL4Z6SL.js} +3 -3
- package/dist/{global-workspace-2LO5ATOH.js → global-workspace-JDUCUL7S.js} +4 -4
- package/dist/{global-workspace-MLQNULOU.js → global-workspace-NIKZAKOO.js} +4 -4
- package/dist/index.cjs +873 -628
- package/dist/index.d.cts +26 -1
- package/dist/index.d.ts +26 -1
- package/dist/index.js +42 -19
- package/dist/mcp/run-stdio.cjs +700 -498
- package/dist/mcp/run-stdio.js +22 -11
- package/dist/{orchestrator-P2SYHVLS.js → orchestrator-6I47JMU2.js} +7 -7
- package/dist/{orchestrator-KR5RA5B7.js → orchestrator-KK3CUW37.js} +7 -7
- package/dist/{thread-store-5MLYY35S.js → thread-store-CRLQJ2HM.js} +3 -1
- package/dist/{thread-store-F6BCARQG.js → thread-store-FADXSMEJ.js} +3 -1
- package/dist/{workspaces-MINB764G.js → workspaces-5EWNNALF.js} +5 -5
- package/dist/{workspaces-ARWPZG6F.js → workspaces-KZA3TCEE.js} +5 -5
- package/dist/{worktree-EBZMUUAL.js → worktree-BC6XDMQK.js} +2 -2
- package/dist/{worktree-S7MKMYAT.js → worktree-MX7XBX6Z.js} +2 -2
- package/package.json +1 -1
package/dist/mcp/run-stdio.js
CHANGED
|
@@ -32,14 +32,14 @@ import {
|
|
|
32
32
|
slackTokenFor,
|
|
33
33
|
syncBoardPins,
|
|
34
34
|
updateSchedule
|
|
35
|
-
} from "../chunk-
|
|
35
|
+
} from "../chunk-WS5LFFU3.js";
|
|
36
36
|
import {
|
|
37
37
|
listModelsForAgent,
|
|
38
38
|
sideboardMcpProfile
|
|
39
|
-
} from "../chunk-
|
|
39
|
+
} from "../chunk-JPBRMUM6.js";
|
|
40
40
|
import "../chunk-ED4UPEJX.js";
|
|
41
41
|
import "../chunk-S42XV45P.js";
|
|
42
|
-
import "../chunk-
|
|
42
|
+
import "../chunk-4XKUHP6G.js";
|
|
43
43
|
import {
|
|
44
44
|
createAbleTimeTask,
|
|
45
45
|
ensureAbleTimeTask,
|
|
@@ -59,8 +59,8 @@ import "../chunk-KLBOWJ74.js";
|
|
|
59
59
|
import {
|
|
60
60
|
GLOBAL_WORKSPACE_ID,
|
|
61
61
|
isCloudCoordinatorThread
|
|
62
|
-
} from "../chunk-
|
|
63
|
-
import "../chunk-
|
|
62
|
+
} from "../chunk-K5YT5GX2.js";
|
|
63
|
+
import "../chunk-TQ4S5AGJ.js";
|
|
64
64
|
import {
|
|
65
65
|
canonicalizeRepoPath,
|
|
66
66
|
listBranches,
|
|
@@ -68,9 +68,9 @@ import {
|
|
|
68
68
|
resolveGithubRepoSlug,
|
|
69
69
|
resolveRepoRoot,
|
|
70
70
|
warmGithubAgentAuth
|
|
71
|
-
} from "../chunk-
|
|
71
|
+
} from "../chunk-QAV3HGVS.js";
|
|
72
72
|
import "../chunk-B3SJXYIJ.js";
|
|
73
|
-
import "../chunk-
|
|
73
|
+
import "../chunk-J5IBSVB3.js";
|
|
74
74
|
import {
|
|
75
75
|
gh
|
|
76
76
|
} from "../chunk-KPIYENTF.js";
|
|
@@ -654,6 +654,15 @@ var MCP_WAIT_QUEUED_HINT = "Child is queued waiting for a concurrency slot \u201
|
|
|
654
654
|
function mcpWaitStillRunningHint(status) {
|
|
655
655
|
return status === "queued" ? MCP_WAIT_QUEUED_HINT : MCP_WAIT_STILL_RUNNING_HINT;
|
|
656
656
|
}
|
|
657
|
+
var MCP_WAIT_STOPPED_HINT = "Child was stopped before the turn finished. Do not treat this as success. send_to_thread to resume, or tell the user.";
|
|
658
|
+
var MCP_WAIT_BROKEN_HINT = "Child worktree is broken (missing on disk). Tell the user \u2014 do not treat this as success.";
|
|
659
|
+
var MCP_WAIT_ERROR_HINT = "Child turn failed. lastError/text is the failure \u2014 switch agent, tell the user, or retry. Do not treat empty text as success.";
|
|
660
|
+
function mcpWaitFinishedHint(status) {
|
|
661
|
+
if (status === "stopped") return MCP_WAIT_STOPPED_HINT;
|
|
662
|
+
if (status === "broken") return MCP_WAIT_BROKEN_HINT;
|
|
663
|
+
if (status === "error") return MCP_WAIT_ERROR_HINT;
|
|
664
|
+
return void 0;
|
|
665
|
+
}
|
|
657
666
|
|
|
658
667
|
// src/mcp/slack-tools.ts
|
|
659
668
|
import { z } from "zod";
|
|
@@ -2350,7 +2359,7 @@ async function startMcpServer() {
|
|
|
2350
2359
|
);
|
|
2351
2360
|
server.tool(
|
|
2352
2361
|
"wait_for_turn",
|
|
2353
|
-
"Wait until the thread finishes its current/queued turn, or return early with a live progress snapshot. MCP clients often kill tools around 60s, so this returns within 45s even while the child is still working. If stillRunning is true, progress is tools/thinking (or \u201Cqueued, waiting for a concurrency slot\u201D if it has not started). Call wait_for_turn again. Do not send a check-in prompt, force_stop, or assume a hang. On status error, lastError/text is the failure. When finished, usage is the last agent turn\u2019s tokens + costUsd (when the provider reported cost).",
|
|
2362
|
+
"Wait until the thread finishes its current/queued turn, or return early with a live progress snapshot. MCP clients often kill tools around 60s, so this returns within 45s even while the child is still working. If stillRunning is true, progress is tools/thinking (or \u201Cqueued, waiting for a concurrency slot\u201D if it has not started). Call wait_for_turn again. Do not send a check-in prompt, force_stop, or assume a hang. On status error, lastError/text is the failure. On status stopped or broken, the child did not finish \u2014 resume with send_to_thread or tell the user; do not treat that as success. When finished, usage is the last agent turn\u2019s tokens + costUsd (when the provider reported cost).",
|
|
2354
2363
|
{
|
|
2355
2364
|
ref: z5.string(),
|
|
2356
2365
|
timeoutMs: z5.number().optional()
|
|
@@ -2372,7 +2381,8 @@ async function startMcpServer() {
|
|
|
2372
2381
|
stillRunning: result.stillRunning,
|
|
2373
2382
|
progress: result.progress,
|
|
2374
2383
|
lastActivityAt: result.lastActivityAt,
|
|
2375
|
-
hint: result.stillRunning ? mcpWaitStillRunningHint(result.status) :
|
|
2384
|
+
hint: result.stillRunning ? mcpWaitStillRunningHint(result.status) : mcpWaitFinishedHint(result.status),
|
|
2385
|
+
incomplete: !result.stillRunning && Boolean(mcpWaitFinishedHint(result.status))
|
|
2376
2386
|
})
|
|
2377
2387
|
}
|
|
2378
2388
|
]
|
|
@@ -2391,7 +2401,8 @@ async function startMcpServer() {
|
|
|
2391
2401
|
type: "text",
|
|
2392
2402
|
text: JSON.stringify({
|
|
2393
2403
|
...result,
|
|
2394
|
-
hint: result.stillRunning ? mcpWaitStillRunningHint(result.status) :
|
|
2404
|
+
hint: result.stillRunning ? mcpWaitStillRunningHint(result.status) : mcpWaitFinishedHint(result.status),
|
|
2405
|
+
incomplete: !result.stillRunning && Boolean(mcpWaitFinishedHint(result.status))
|
|
2395
2406
|
})
|
|
2396
2407
|
}
|
|
2397
2408
|
]
|
|
@@ -2415,7 +2426,7 @@ async function startMcpServer() {
|
|
|
2415
2426
|
}
|
|
2416
2427
|
const clearQueue = force !== false;
|
|
2417
2428
|
const hadQueued = t.queue.length > 0;
|
|
2418
|
-
const stopped = orch.stop(ref, { clearQueue });
|
|
2429
|
+
const stopped = orch.stop(ref, { clearQueue, notifyParent: false });
|
|
2419
2430
|
return {
|
|
2420
2431
|
content: [
|
|
2421
2432
|
{
|
|
@@ -4,24 +4,24 @@ import {
|
|
|
4
4
|
isPidAlive,
|
|
5
5
|
startOrchestration,
|
|
6
6
|
waitForPidExit
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-TIGKDMIA.js";
|
|
8
|
+
import "./chunk-CYM5DCHI.js";
|
|
9
9
|
import "./chunk-KBWND62T.js";
|
|
10
10
|
import "./chunk-M267JPEA.js";
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-MDCKV2NF.js";
|
|
12
|
+
import "./chunk-GSKRGF7B.js";
|
|
13
|
+
import "./chunk-IFZ4MOTN.js";
|
|
14
14
|
import "./chunk-ELBYOGVA.js";
|
|
15
15
|
import "./chunk-QTUESPAW.js";
|
|
16
16
|
import "./chunk-AXQ4ZWHK.js";
|
|
17
17
|
import "./chunk-FSCQXMGI.js";
|
|
18
18
|
import "./chunk-DCOZABNT.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-HQQNLDVC.js";
|
|
20
20
|
import "./chunk-FKOIHGKV.js";
|
|
21
21
|
import "./chunk-GJBHOJCZ.js";
|
|
22
22
|
import "./chunk-4TR3HZFT.js";
|
|
23
23
|
import "./chunk-JT7R45JB.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-PM3C2J6K.js";
|
|
25
25
|
import "./chunk-77WWLBCI.js";
|
|
26
26
|
import "./chunk-QZQEXME2.js";
|
|
27
27
|
import "./chunk-DVM4ID64.js";
|
|
@@ -6,19 +6,19 @@ import {
|
|
|
6
6
|
isPidAlive,
|
|
7
7
|
startOrchestration,
|
|
8
8
|
waitForPidExit
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-WS5LFFU3.js";
|
|
10
|
+
import "./chunk-JPBRMUM6.js";
|
|
11
11
|
import "./chunk-ED4UPEJX.js";
|
|
12
12
|
import "./chunk-S42XV45P.js";
|
|
13
|
-
import "./chunk-
|
|
13
|
+
import "./chunk-4XKUHP6G.js";
|
|
14
14
|
import "./chunk-6GN5WPYZ.js";
|
|
15
15
|
import "./chunk-N5PM7HGQ.js";
|
|
16
16
|
import "./chunk-KLBOWJ74.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
19
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-K5YT5GX2.js";
|
|
18
|
+
import "./chunk-TQ4S5AGJ.js";
|
|
19
|
+
import "./chunk-QAV3HGVS.js";
|
|
20
20
|
import "./chunk-B3SJXYIJ.js";
|
|
21
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-J5IBSVB3.js";
|
|
22
22
|
import "./chunk-KPIYENTF.js";
|
|
23
23
|
import "./chunk-GKKHXZCT.js";
|
|
24
24
|
import "./chunk-NSTQ6QKD.js";
|
|
@@ -3,6 +3,7 @@ import {
|
|
|
3
3
|
createEmptyThread,
|
|
4
4
|
deleteThreadRecord,
|
|
5
5
|
findThreadByRef,
|
|
6
|
+
invalidateThreadListCache,
|
|
6
7
|
isThreadRecordFile,
|
|
7
8
|
listThreads,
|
|
8
9
|
normalizeThread,
|
|
@@ -12,7 +13,7 @@ import {
|
|
|
12
13
|
updateThread,
|
|
13
14
|
withThreadLock,
|
|
14
15
|
writeThread
|
|
15
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-PM3C2J6K.js";
|
|
16
17
|
import "./chunk-77WWLBCI.js";
|
|
17
18
|
import "./chunk-QZQEXME2.js";
|
|
18
19
|
export {
|
|
@@ -20,6 +21,7 @@ export {
|
|
|
20
21
|
createEmptyThread,
|
|
21
22
|
deleteThreadRecord,
|
|
22
23
|
findThreadByRef,
|
|
24
|
+
invalidateThreadListCache,
|
|
23
25
|
isThreadRecordFile,
|
|
24
26
|
listThreads,
|
|
25
27
|
normalizeThread,
|
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
createEmptyThread,
|
|
6
6
|
deleteThreadRecord,
|
|
7
7
|
findThreadByRef,
|
|
8
|
+
invalidateThreadListCache,
|
|
8
9
|
isThreadRecordFile,
|
|
9
10
|
listThreads,
|
|
10
11
|
normalizeThread,
|
|
@@ -14,7 +15,7 @@ import {
|
|
|
14
15
|
updateThread,
|
|
15
16
|
withThreadLock,
|
|
16
17
|
writeThread
|
|
17
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-J5IBSVB3.js";
|
|
18
19
|
import "./chunk-KGZBYWZ3.js";
|
|
19
20
|
import "./chunk-BD2ICC4D.js";
|
|
20
21
|
export {
|
|
@@ -22,6 +23,7 @@ export {
|
|
|
22
23
|
createEmptyThread,
|
|
23
24
|
deleteThreadRecord,
|
|
24
25
|
findThreadByRef,
|
|
26
|
+
invalidateThreadListCache,
|
|
25
27
|
isThreadRecordFile,
|
|
26
28
|
listThreads,
|
|
27
29
|
normalizeThread,
|
|
@@ -6,12 +6,12 @@ import {
|
|
|
6
6
|
listWorkspaces,
|
|
7
7
|
removeWorkspace,
|
|
8
8
|
syncWorkspacesFromThreads
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-4XKUHP6G.js";
|
|
10
|
+
import "./chunk-K5YT5GX2.js";
|
|
11
|
+
import "./chunk-TQ4S5AGJ.js";
|
|
12
|
+
import "./chunk-QAV3HGVS.js";
|
|
13
13
|
import "./chunk-B3SJXYIJ.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-J5IBSVB3.js";
|
|
15
15
|
import "./chunk-KPIYENTF.js";
|
|
16
16
|
import "./chunk-GKKHXZCT.js";
|
|
17
17
|
import "./chunk-NSTQ6QKD.js";
|
|
@@ -4,15 +4,15 @@ import {
|
|
|
4
4
|
listWorkspaces,
|
|
5
5
|
removeWorkspace,
|
|
6
6
|
syncWorkspacesFromThreads
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
9
|
-
import "./chunk-
|
|
10
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-MDCKV2NF.js";
|
|
8
|
+
import "./chunk-GSKRGF7B.js";
|
|
9
|
+
import "./chunk-IFZ4MOTN.js";
|
|
10
|
+
import "./chunk-HQQNLDVC.js";
|
|
11
11
|
import "./chunk-FKOIHGKV.js";
|
|
12
12
|
import "./chunk-GJBHOJCZ.js";
|
|
13
13
|
import "./chunk-4TR3HZFT.js";
|
|
14
14
|
import "./chunk-JT7R45JB.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-PM3C2J6K.js";
|
|
16
16
|
import "./chunk-77WWLBCI.js";
|
|
17
17
|
import "./chunk-QZQEXME2.js";
|
|
18
18
|
import "./chunk-DVM4ID64.js";
|
|
@@ -50,9 +50,9 @@ import {
|
|
|
50
50
|
worktreeDisplayLabel,
|
|
51
51
|
worktreeDisplayLabelForGroup,
|
|
52
52
|
worktreeNameFromPath
|
|
53
|
-
} from "./chunk-
|
|
53
|
+
} from "./chunk-QAV3HGVS.js";
|
|
54
54
|
import "./chunk-B3SJXYIJ.js";
|
|
55
|
-
import "./chunk-
|
|
55
|
+
import "./chunk-J5IBSVB3.js";
|
|
56
56
|
import "./chunk-KPIYENTF.js";
|
|
57
57
|
import "./chunk-GKKHXZCT.js";
|
|
58
58
|
import "./chunk-NSTQ6QKD.js";
|
|
@@ -48,12 +48,12 @@ import {
|
|
|
48
48
|
worktreeDisplayLabel,
|
|
49
49
|
worktreeDisplayLabelForGroup,
|
|
50
50
|
worktreeNameFromPath
|
|
51
|
-
} from "./chunk-
|
|
51
|
+
} from "./chunk-HQQNLDVC.js";
|
|
52
52
|
import "./chunk-FKOIHGKV.js";
|
|
53
53
|
import "./chunk-GJBHOJCZ.js";
|
|
54
54
|
import "./chunk-4TR3HZFT.js";
|
|
55
55
|
import "./chunk-JT7R45JB.js";
|
|
56
|
-
import "./chunk-
|
|
56
|
+
import "./chunk-PM3C2J6K.js";
|
|
57
57
|
import "./chunk-77WWLBCI.js";
|
|
58
58
|
import "./chunk-QZQEXME2.js";
|
|
59
59
|
import "./chunk-DVM4ID64.js";
|