@sideboard-ai/core 0.1.173 → 0.1.175
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-PCLL36HW.js → abletime-BFIDZR3O.js} +2 -2
- package/dist/{abletime-7VW4EGPT.js → abletime-INEHQH6K.js} +2 -2
- package/dist/agents/cursor-runner.cjs +91 -62
- package/dist/agents/cursor-runner.js +1 -1
- package/dist/{agents-CTWLBPCV.js → agents-2W7LP7JR.js} +6 -6
- package/dist/{agents-7UTRNLXQ.js → agents-AWSFDB47.js} +7 -7
- package/dist/{chunk-QYZYDO3F.js → chunk-7JIYKYLL.js} +26 -5
- package/dist/{chunk-PXNOT6NV.js → chunk-7O53GXTA.js} +26 -5
- package/dist/{chunk-M267JPEA.js → chunk-AN3THU7F.js} +1 -1
- package/dist/{chunk-AQPVBVJE.js → chunk-BBNUL4IE.js} +1 -1
- package/dist/{chunk-LZ6QMEQC.js → chunk-HVIEYTUK.js} +1 -1
- package/dist/{chunk-XD2BAANL.js → chunk-IEEAVWAP.js} +6 -6
- package/dist/{chunk-WE34LOLO.js → chunk-JIWRBNSO.js} +22 -21
- package/dist/{chunk-ELBYOGVA.js → chunk-N7WZ6NIN.js} +10 -1
- package/dist/{chunk-2RM6BZQ2.js → chunk-NA7P3SZL.js} +4 -4
- package/dist/{chunk-XXIH6XYR.js → chunk-NQTKRAUF.js} +167 -35
- package/dist/{chunk-3F7AXVIL.js → chunk-QTJ2ERA6.js} +6 -6
- package/dist/{chunk-SKKEJZEX.js → chunk-RCICB4OM.js} +19 -18
- package/dist/{chunk-CMJ2FBBV.js → chunk-RE2YWFUQ.js} +1 -1
- package/dist/{chunk-234EKD2F.js → chunk-TNOLCU5B.js} +4 -4
- package/dist/{chunk-6GN5WPYZ.js → chunk-VKQGAWHY.js} +10 -1
- package/dist/{chunk-S42XV45P.js → chunk-Y4MIXGPA.js} +1 -1
- package/dist/{chunk-6X6KMUI2.js → chunk-ZXHV3NHY.js} +225 -96
- package/dist/{connected-teams-DBWAMP7G.js → connected-teams-ON2KIKQX.js} +3 -3
- package/dist/{connected-teams-WGONUQOF.js → connected-teams-WOYCH7FR.js} +3 -3
- package/dist/{coordinator-prompt-7CTI6HRH.js → coordinator-prompt-7OHKB5WV.js} +2 -2
- package/dist/{coordinator-prompt-PM6MPYYB.js → coordinator-prompt-XCQCGUED.js} +2 -2
- package/dist/{global-workspace-CMYSFRCM.js → global-workspace-KPROJ54C.js} +2 -2
- package/dist/{global-workspace-CRJ6ZVIY.js → global-workspace-WSQNEALF.js} +2 -2
- package/dist/index.cjs +600 -386
- package/dist/index.d.cts +49 -8
- package/dist/index.d.ts +49 -8
- package/dist/index.js +74 -28
- package/dist/mcp/run-stdio.cjs +795 -581
- package/dist/mcp/run-stdio.js +75 -26
- package/dist/{oauth-A7XXI2TM.js → oauth-6ZQ4Q4XN.js} +2 -2
- package/dist/{oauth-YJBAURIJ.js → oauth-O7UGLZOY.js} +2 -2
- package/dist/{orchestrator-PEOUSLAY.js → orchestrator-PDEU75EE.js} +8 -8
- package/dist/{orchestrator-QBB2RELD.js → orchestrator-QSNGJ2ER.js} +7 -7
- package/dist/{workspaces-L73MCDFA.js → workspaces-P66DGCZE.js} +2 -2
- package/dist/{workspaces-UYSD2STS.js → workspaces-TEBTNS2M.js} +2 -2
- package/dist/{worktree-SQD3DBYC.js → worktree-LC4VRWDM.js} +1 -1
- package/dist/{worktree-WVEDT3FM.js → worktree-UTDBQXSS.js} +1 -1
- package/package.json +1 -1
package/dist/mcp/run-stdio.js
CHANGED
|
@@ -37,14 +37,17 @@ import {
|
|
|
37
37
|
syncBoardPins,
|
|
38
38
|
updateSchedule,
|
|
39
39
|
waitForDetachedJob
|
|
40
|
-
} from "../chunk-
|
|
40
|
+
} from "../chunk-RCICB4OM.js";
|
|
41
41
|
import {
|
|
42
|
+
applySystemCaEnv,
|
|
42
43
|
isInternalAgentStatusText,
|
|
43
44
|
listModelsForAgent,
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
45
|
+
materializeSystemCaBundle,
|
|
46
|
+
sideboardMcpProfile,
|
|
47
|
+
trustSystemCertificates
|
|
48
|
+
} from "../chunk-ZXHV3NHY.js";
|
|
49
|
+
import "../chunk-HVIEYTUK.js";
|
|
50
|
+
import "../chunk-Y4MIXGPA.js";
|
|
48
51
|
import {
|
|
49
52
|
commentAbleTimeTask,
|
|
50
53
|
createAbleTimeTask,
|
|
@@ -57,17 +60,17 @@ import {
|
|
|
57
60
|
searchAbleTimeTasks,
|
|
58
61
|
toAbleTimeIssueInfo,
|
|
59
62
|
updateAbleTimeTask
|
|
60
|
-
} from "../chunk-
|
|
63
|
+
} from "../chunk-BBNUL4IE.js";
|
|
61
64
|
import {
|
|
62
65
|
httpFetch
|
|
63
|
-
} from "../chunk-
|
|
66
|
+
} from "../chunk-VKQGAWHY.js";
|
|
64
67
|
import "../chunk-JFOPOMK7.js";
|
|
65
68
|
import "../chunk-OCQPTUR7.js";
|
|
66
69
|
import {
|
|
67
70
|
GLOBAL_WORKSPACE_ID,
|
|
68
71
|
isCloudCoordinatorThread,
|
|
69
72
|
listWorkspaces
|
|
70
|
-
} from "../chunk-
|
|
73
|
+
} from "../chunk-TNOLCU5B.js";
|
|
71
74
|
import {
|
|
72
75
|
canonicalizeRepoPath,
|
|
73
76
|
formatGhLandError,
|
|
@@ -78,7 +81,7 @@ import {
|
|
|
78
81
|
resolveListPrsOptions,
|
|
79
82
|
resolveRepoRoot,
|
|
80
83
|
warmGithubAgentAuth
|
|
81
|
-
} from "../chunk-
|
|
84
|
+
} from "../chunk-7O53GXTA.js";
|
|
82
85
|
import "../chunk-D6JWYJ4P.js";
|
|
83
86
|
import "../chunk-LZQULFIT.js";
|
|
84
87
|
import "../chunk-SYFVUF2C.js";
|
|
@@ -2863,6 +2866,50 @@ async function getHomeBoardInputs(workspaces, opts) {
|
|
|
2863
2866
|
}
|
|
2864
2867
|
}
|
|
2865
2868
|
|
|
2869
|
+
// src/mcp/create-thread-agent.ts
|
|
2870
|
+
function resolveOrchCreateThreadOptions(input) {
|
|
2871
|
+
const { resolveNewThreadOptions } = input;
|
|
2872
|
+
const account = resolveNewThreadOptions({});
|
|
2873
|
+
const requested = input.requestedAgent;
|
|
2874
|
+
const parent = input.parentAgent ?? void 0;
|
|
2875
|
+
let agent = account.agent;
|
|
2876
|
+
let ignoredAgent;
|
|
2877
|
+
let honorRequestedModel = false;
|
|
2878
|
+
if (requested) {
|
|
2879
|
+
const parentEcho = Boolean(parent) && requested === parent && requested !== account.agent;
|
|
2880
|
+
const cursorAutofill = requested === "cursor" && account.agent !== "cursor";
|
|
2881
|
+
if (parentEcho || cursorAutofill) {
|
|
2882
|
+
ignoredAgent = requested;
|
|
2883
|
+
} else {
|
|
2884
|
+
agent = requested;
|
|
2885
|
+
honorRequestedModel = input.requestedModel !== void 0;
|
|
2886
|
+
}
|
|
2887
|
+
}
|
|
2888
|
+
let coercedFrom;
|
|
2889
|
+
if (agent === "codex" && parent === "codex") {
|
|
2890
|
+
coercedFrom = requested ?? "codex";
|
|
2891
|
+
agent = "cursor";
|
|
2892
|
+
}
|
|
2893
|
+
const opts = resolveNewThreadOptions({
|
|
2894
|
+
agent,
|
|
2895
|
+
model: honorRequestedModel ? input.requestedModel : void 0
|
|
2896
|
+
});
|
|
2897
|
+
return {
|
|
2898
|
+
...opts,
|
|
2899
|
+
...ignoredAgent ? { ignoredAgent } : {},
|
|
2900
|
+
...coercedFrom ? { coercedFrom } : {}
|
|
2901
|
+
};
|
|
2902
|
+
}
|
|
2903
|
+
function orchCreateThreadAgentNote(input) {
|
|
2904
|
+
if (input.coercedFrom) {
|
|
2905
|
+
return `Avoid nested Codex under a Codex orchestrator \u2014 used Account default agent=${input.agent}`;
|
|
2906
|
+
}
|
|
2907
|
+
if (input.ignoredAgent) {
|
|
2908
|
+
return `Ignored agent=${input.ignoredAgent} \u2014 used Account default agent=${input.agent}`;
|
|
2909
|
+
}
|
|
2910
|
+
return void 0;
|
|
2911
|
+
}
|
|
2912
|
+
|
|
2866
2913
|
// src/mcp/server.ts
|
|
2867
2914
|
var MAX_ORCH_THREADS = 5;
|
|
2868
2915
|
var CREATE_THREAD_TIMEOUT_MS = 9e4;
|
|
@@ -2911,18 +2958,13 @@ async function createOrchChildThread(orch, args, resolveNewThreadOptions) {
|
|
|
2911
2958
|
};
|
|
2912
2959
|
}
|
|
2913
2960
|
}
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
const accountAgent = resolveNewThreadOptions({}).agent;
|
|
2920
|
-
agentArg = accountAgent !== "codex" ? accountAgent : "cursor";
|
|
2921
|
-
}
|
|
2922
|
-
const opts = resolveNewThreadOptions({
|
|
2923
|
-
agent: agentArg,
|
|
2924
|
-
model: args.model
|
|
2961
|
+
const opts = resolveOrchCreateThreadOptions({
|
|
2962
|
+
requestedAgent: args.agent,
|
|
2963
|
+
requestedModel: args.model,
|
|
2964
|
+
parentAgent: parent?.agent,
|
|
2965
|
+
resolveNewThreadOptions
|
|
2925
2966
|
});
|
|
2967
|
+
const agentNote = orchCreateThreadAgentNote(opts);
|
|
2926
2968
|
try {
|
|
2927
2969
|
const priorIds = new Set(orch.getThreads(false).map((t) => t.id));
|
|
2928
2970
|
const thread = await withTimeout(
|
|
@@ -2958,10 +3000,9 @@ async function createOrchChildThread(orch, args, resolveNewThreadOptions) {
|
|
|
2958
3000
|
link: `sideboard://thread/${thread.id}`,
|
|
2959
3001
|
parentThreadId: thread.parentThreadId,
|
|
2960
3002
|
...alreadyStarted ? { alreadyStarted: true } : {},
|
|
2961
|
-
...
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
} : {},
|
|
3003
|
+
...opts.coercedFrom ? { agentCoercedFrom: opts.coercedFrom } : {},
|
|
3004
|
+
...opts.ignoredAgent ? { agentIgnored: opts.ignoredAgent } : {},
|
|
3005
|
+
...agentNote ? { note: agentNote } : {},
|
|
2965
3006
|
...parentCorrectedFrom ? { parentCorrectedFrom, parentNote } : {}
|
|
2966
3007
|
})
|
|
2967
3008
|
};
|
|
@@ -3321,11 +3362,13 @@ async function startMcpServer() {
|
|
|
3321
3362
|
);
|
|
3322
3363
|
server.tool(
|
|
3323
3364
|
"create_thread",
|
|
3324
|
-
`Create a worktree thread (chat) from branch, pr, or ticket. A ticket, PR, or named branch may have only one live worktree \u2014 if one already matches, returns it (alreadyStarted=true) instead of a second checkout. Creating from the default branch still opens a new isolated worktree. Pass repoPath from list_workspaces. cowboy=true uses the project folder on the default branch (no isolated worktree; land is commit+push). From an orchestration chat, omit parentThreadId (Sideboard binds the child to this chat) or pass the exact id from the turn reminder \u2014 never invent a uuid.
|
|
3365
|
+
`Create a worktree thread (chat) from branch, pr, or ticket. A ticket, PR, or named branch may have only one live worktree \u2014 if one already matches, returns it (alreadyStarted=true) instead of a second checkout. Creating from the default branch still opens a new isolated worktree. Pass repoPath from list_workspaces. cowboy=true uses the project folder on the default branch (no isolated worktree; land is commit+push). From an orchestration chat, omit parentThreadId (Sideboard binds the child to this chat) or pass the exact id from the turn reminder \u2014 never invent a uuid. Omit agent/model \u2014 Sideboard applies ${accountDefaultsHint}. Do not pass your own agent or agent=cursor; those are ignored. Setup (settings.toml, .cursor/worktrees.json, or script/setup) runs in the background in parallel with the first turn (skipped for cowboy). Then use send_to_thread to chat.`,
|
|
3325
3366
|
{
|
|
3326
3367
|
sourceType: z8.enum(["branch", "pr", "ticket"]),
|
|
3327
3368
|
sourceRef: z8.string(),
|
|
3328
|
-
agent: z8.enum(["claude", "codex", "opencode", "brightsy", "cursor"]).optional().describe(
|
|
3369
|
+
agent: z8.enum(["claude", "codex", "opencode", "brightsy", "cursor"]).optional().describe(
|
|
3370
|
+
`Usually omit. Sideboard uses Account default agent (${accountDefaults.agent}). Passing your own agent or cursor is ignored.`
|
|
3371
|
+
),
|
|
3329
3372
|
model: z8.string().nullable().optional().describe(
|
|
3330
3373
|
`Usually omit to use Account default model (${accountDefaults.model?.trim() || "Auto"}). Pass null only to force Auto / agent-default.`
|
|
3331
3374
|
),
|
|
@@ -4032,6 +4075,12 @@ async function startMcpServer() {
|
|
|
4032
4075
|
|
|
4033
4076
|
// src/mcp/run-stdio.ts
|
|
4034
4077
|
dropNestedElectronEnvFromProcess();
|
|
4078
|
+
var systemCaBundle = materializeSystemCaBundle();
|
|
4079
|
+
if (systemCaBundle && !process.env.NODE_EXTRA_CA_CERTS?.trim()) {
|
|
4080
|
+
process.env.NODE_EXTRA_CA_CERTS = systemCaBundle;
|
|
4081
|
+
}
|
|
4082
|
+
applySystemCaEnv(process.env);
|
|
4083
|
+
trustSystemCertificates();
|
|
4035
4084
|
startMcpServer().catch((err) => {
|
|
4036
4085
|
console.error(err);
|
|
4037
4086
|
process.exitCode = 1;
|
|
@@ -2,8 +2,8 @@ import {
|
|
|
2
2
|
brightsyAccessTokenNeedsRefresh,
|
|
3
3
|
ensureBrightsyLocalConfigFresh,
|
|
4
4
|
refreshBrightsyAccessToken
|
|
5
|
-
} from "./chunk-
|
|
6
|
-
import "./chunk-
|
|
5
|
+
} from "./chunk-AN3THU7F.js";
|
|
6
|
+
import "./chunk-N7WZ6NIN.js";
|
|
7
7
|
export {
|
|
8
8
|
brightsyAccessTokenNeedsRefresh,
|
|
9
9
|
ensureBrightsyLocalConfigFresh,
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
brightsyAccessTokenNeedsRefresh,
|
|
5
5
|
ensureBrightsyLocalConfigFresh,
|
|
6
6
|
refreshBrightsyAccessToken
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-Y4MIXGPA.js";
|
|
8
|
+
import "./chunk-VKQGAWHY.js";
|
|
9
9
|
export {
|
|
10
10
|
brightsyAccessTokenNeedsRefresh,
|
|
11
11
|
ensureBrightsyLocalConfigFresh,
|
|
@@ -5,17 +5,17 @@ import {
|
|
|
5
5
|
isPidAlive,
|
|
6
6
|
startOrchestration,
|
|
7
7
|
waitForPidExit
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-JIWRBNSO.js";
|
|
9
9
|
import "./chunk-DJU54RYW.js";
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
10
|
+
import "./chunk-QTJ2ERA6.js";
|
|
11
|
+
import "./chunk-NA7P3SZL.js";
|
|
12
|
+
import "./chunk-7JIYKYLL.js";
|
|
13
13
|
import "./chunk-6K64FJDD.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-IEEAVWAP.js";
|
|
15
|
+
import "./chunk-AN3THU7F.js";
|
|
16
|
+
import "./chunk-N7WZ6NIN.js";
|
|
17
17
|
import "./chunk-AXQ4ZWHK.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-NQTKRAUF.js";
|
|
19
19
|
import "./chunk-J7LQVLFQ.js";
|
|
20
20
|
import "./chunk-4TR3HZFT.js";
|
|
21
21
|
import "./chunk-AO35MGOE.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
isPidAlive,
|
|
8
8
|
startOrchestration,
|
|
9
9
|
waitForPidExit
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
12
|
-
import "./chunk-
|
|
13
|
-
import "./chunk-
|
|
14
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-RCICB4OM.js";
|
|
11
|
+
import "./chunk-ZXHV3NHY.js";
|
|
12
|
+
import "./chunk-HVIEYTUK.js";
|
|
13
|
+
import "./chunk-Y4MIXGPA.js";
|
|
14
|
+
import "./chunk-VKQGAWHY.js";
|
|
15
15
|
import "./chunk-JFOPOMK7.js";
|
|
16
16
|
import "./chunk-OCQPTUR7.js";
|
|
17
|
-
import "./chunk-
|
|
18
|
-
import "./chunk-
|
|
17
|
+
import "./chunk-TNOLCU5B.js";
|
|
18
|
+
import "./chunk-7O53GXTA.js";
|
|
19
19
|
import "./chunk-D6JWYJ4P.js";
|
|
20
20
|
import "./chunk-LZQULFIT.js";
|
|
21
21
|
import "./chunk-SYFVUF2C.js";
|
|
@@ -6,8 +6,8 @@ import {
|
|
|
6
6
|
listWorkspaces,
|
|
7
7
|
removeWorkspace,
|
|
8
8
|
syncWorkspacesFromThreads
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-TNOLCU5B.js";
|
|
10
|
+
import "./chunk-7O53GXTA.js";
|
|
11
11
|
import "./chunk-D6JWYJ4P.js";
|
|
12
12
|
import "./chunk-LZQULFIT.js";
|
|
13
13
|
import "./chunk-SYFVUF2C.js";
|
|
@@ -4,8 +4,8 @@ import {
|
|
|
4
4
|
listWorkspaces,
|
|
5
5
|
removeWorkspace,
|
|
6
6
|
syncWorkspacesFromThreads
|
|
7
|
-
} from "./chunk-
|
|
8
|
-
import "./chunk-
|
|
7
|
+
} from "./chunk-NA7P3SZL.js";
|
|
8
|
+
import "./chunk-7JIYKYLL.js";
|
|
9
9
|
import "./chunk-6K64FJDD.js";
|
|
10
10
|
import "./chunk-J7LQVLFQ.js";
|
|
11
11
|
import "./chunk-4TR3HZFT.js";
|