@sideboard-ai/core 0.1.291 → 0.1.293
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/cursor-runner.cjs +329 -36
- package/dist/agents/cursor-runner.js +318 -17
- package/dist/{agents-4BBCKITL.js → agents-SITR5V6F.js} +3 -3
- package/dist/{agents-XAKSP653.js → agents-WT72O5A3.js} +3 -3
- package/dist/{chunk-2IXKTAIT.js → chunk-2VGLZIU6.js} +37 -13
- package/dist/{chunk-GBAACE3C.js → chunk-4YXXLWDI.js} +3 -3
- package/dist/{chunk-4VXWLY3L.js → chunk-IP5WSADC.js} +9 -9
- package/dist/{chunk-QOUTSISS.js → chunk-LSHGJI4S.js} +10 -10
- package/dist/{chunk-O4324MXE.js → chunk-PO3PDNMV.js} +1 -1
- package/dist/{chunk-LUQ7MIVD.js → chunk-RPCKGO3J.js} +3 -3
- package/dist/{chunk-5HPMKLJ7.js → chunk-UO5C2L2G.js} +37 -13
- package/dist/{chunk-G74TSBJ3.js → chunk-WRDKJRWF.js} +3 -3
- package/dist/{chunk-VNCPRMIK.js → chunk-XZW3BXZW.js} +3 -3
- package/dist/{chunk-V3BSO2O6.js → chunk-ZRQWV3MS.js} +1 -1
- package/dist/{conductor-UFJXJPTF.js → conductor-MAYZSFL6.js} +3 -3
- package/dist/{conductor-5MNGC25D.js → conductor-P7XPGYF4.js} +3 -3
- package/dist/{coordinator-prompt-5Q66Y5KW.js → coordinator-prompt-NAM5JHLT.js} +2 -2
- package/dist/{coordinator-prompt-BYPEW6DE.js → coordinator-prompt-OZFKNCM3.js} +2 -2
- package/dist/{global-workspace-BTH2YGDZ.js → global-workspace-CTFQDG7G.js} +2 -2
- package/dist/{global-workspace-YKOYXSB2.js → global-workspace-UGR6FQXI.js} +2 -2
- package/dist/index.cjs +166 -89
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +135 -82
- package/dist/mcp/run-stdio.cjs +37 -13
- package/dist/mcp/run-stdio.js +5 -5
- package/dist/{orchestrator-EQSK2RMI.js → orchestrator-4QVF6CE2.js} +5 -5
- package/dist/{orchestrator-GSOW3RPA.js → orchestrator-BOGVTCWI.js} +5 -5
- package/dist/{workspaces-ELO2YVTU.js → workspaces-QNKFBA63.js} +2 -2
- package/dist/{workspaces-RFD6I4FM.js → workspaces-YNZXVBSF.js} +2 -2
- package/dist/{worktree-ADVQ6X6C.js → worktree-EMCWDPZJ.js} +1 -1
- package/dist/{worktree-TN7DZDJZ.js → worktree-ERRH4TAG.js} +1 -1
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseSessionQuotaResetAt,
|
|
15
15
|
planModeTurnInstruction,
|
|
16
16
|
resolveQuotaFallbackAgent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-XZW3BXZW.js";
|
|
18
18
|
import {
|
|
19
19
|
REVIEW_TAB_TITLE,
|
|
20
20
|
applyWorktreePkgCacheEnv,
|
|
@@ -53,7 +53,7 @@ import {
|
|
|
53
53
|
worktreeDevProcessKey,
|
|
54
54
|
worktreeRunProcessKey,
|
|
55
55
|
worktreeSetupProcessKey
|
|
56
|
-
} from "./chunk-
|
|
56
|
+
} from "./chunk-4YXXLWDI.js";
|
|
57
57
|
import {
|
|
58
58
|
applyAgentEvent,
|
|
59
59
|
clipAgentEventForPaint,
|
|
@@ -100,7 +100,7 @@ import {
|
|
|
100
100
|
stageAbsolutePathsAsAttachments,
|
|
101
101
|
stageBuffersAsAttachments,
|
|
102
102
|
syncWorkspacesFromThreads
|
|
103
|
-
} from "./chunk-
|
|
103
|
+
} from "./chunk-ZRQWV3MS.js";
|
|
104
104
|
import {
|
|
105
105
|
addPrStackLayer,
|
|
106
106
|
allocateTeamSlug,
|
|
@@ -142,7 +142,7 @@ import {
|
|
|
142
142
|
resolveRepoRoot,
|
|
143
143
|
switchWorktreeBranch,
|
|
144
144
|
withRepoGitLock
|
|
145
|
-
} from "./chunk-
|
|
145
|
+
} from "./chunk-2VGLZIU6.js";
|
|
146
146
|
import {
|
|
147
147
|
agentNicknameFromWorktreePath,
|
|
148
148
|
appendMessage,
|
|
@@ -451,9 +451,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
451
451
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
452
452
|
);
|
|
453
453
|
}
|
|
454
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
454
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-UGR6FQXI.js");
|
|
455
455
|
if (isGlobalThread2(thread)) {
|
|
456
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
456
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-NAM5JHLT.js");
|
|
457
457
|
ensureGlobalCoordinatorCwd2(
|
|
458
458
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
459
459
|
);
|
|
@@ -2740,7 +2740,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
2740
2740
|
return readThread(thread.id) ?? thread;
|
|
2741
2741
|
}
|
|
2742
2742
|
async function listLinearIssues(agent, repoPath) {
|
|
2743
|
-
const { getAdapter: getAdapter2 } = await import("./agents-
|
|
2743
|
+
const { getAdapter: getAdapter2 } = await import("./agents-SITR5V6F.js");
|
|
2744
2744
|
await requireAgent(agent, { requireLinear: true });
|
|
2745
2745
|
const adapter = getAdapter2(agent);
|
|
2746
2746
|
if (!adapter.listLinearIssues) {
|
|
@@ -3251,7 +3251,7 @@ async function adoptThread(input) {
|
|
|
3251
3251
|
messages: input.messages ?? []
|
|
3252
3252
|
});
|
|
3253
3253
|
writeThread(thread);
|
|
3254
|
-
const { addWorkspace: addWorkspace2 } = await import("./workspaces-
|
|
3254
|
+
const { addWorkspace: addWorkspace2 } = await import("./workspaces-YNZXVBSF.js");
|
|
3255
3255
|
await addWorkspace2(repoPath);
|
|
3256
3256
|
const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-RXZPTCNH.js");
|
|
3257
3257
|
await ensureWorktreeSideboardIgnored(input.worktreePath);
|
|
@@ -6170,7 +6170,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6170
6170
|
${prompt}`;
|
|
6171
6171
|
}
|
|
6172
6172
|
async function defaultDeps() {
|
|
6173
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6173
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-BOGVTCWI.js");
|
|
6174
6174
|
const orch = getOrchestrator2();
|
|
6175
6175
|
return {
|
|
6176
6176
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -9042,7 +9042,7 @@ async function startOrchestration(opts) {
|
|
|
9042
9042
|
sourceRef: "default",
|
|
9043
9043
|
...createOpts
|
|
9044
9044
|
}).catch(async () => {
|
|
9045
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
9045
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-ERRH4TAG.js");
|
|
9046
9046
|
const repo = await resolveRepoRoot2(repoPath);
|
|
9047
9047
|
const def = await resolveDefaultBranch2(repo);
|
|
9048
9048
|
return orch.createThread({
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
} from "./chunk-AFLNFGGB.js";
|
|
25
25
|
import {
|
|
26
26
|
isOrchestratorThread
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-PO3PDNMV.js";
|
|
28
28
|
import {
|
|
29
29
|
codexUnattendedGitConfigArgs,
|
|
30
30
|
mergeAgentGitAuthEnv,
|
|
31
31
|
resolveAgentGitAuthEnv,
|
|
32
32
|
resolveCodexGitWritableRoots
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-UO5C2L2G.js";
|
|
34
34
|
import {
|
|
35
35
|
npmGlobalNodeModules,
|
|
36
36
|
run
|
|
@@ -2015,7 +2015,7 @@ var claudeAdapter = {
|
|
|
2015
2015
|
);
|
|
2016
2016
|
}
|
|
2017
2017
|
const mode = permissionMode(thread);
|
|
2018
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2018
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-CTFQDG7G.js");
|
|
2019
2019
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2020
2020
|
const rpc = worktreeAgentRpc(isOrchestrator);
|
|
2021
2021
|
const injectedServers = await buildInjectedMcpServers({
|
|
@@ -1984,15 +1984,8 @@ async function fetchOriginForWorktree(repoPath, sourceRef, opts) {
|
|
|
1984
1984
|
async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
1985
1985
|
try {
|
|
1986
1986
|
const branch = opts?.branch?.trim() || await resolveDefaultBranch(repoPath, { network: false });
|
|
1987
|
-
|
|
1988
|
-
|
|
1989
|
-
});
|
|
1990
|
-
const current = head.stdout.trim();
|
|
1991
|
-
if (head.exitCode !== 0 || !current || current === "HEAD" || current !== branch) {
|
|
1992
|
-
return { updated: false, reason: "not-on-default" };
|
|
1993
|
-
}
|
|
1994
|
-
if (await isDirty(repoPath)) {
|
|
1995
|
-
return { updated: false, reason: "dirty" };
|
|
1987
|
+
if (!branch || branch === "HEAD" || branch.includes("..")) {
|
|
1988
|
+
return { updated: false, reason: "ff-failed" };
|
|
1996
1989
|
}
|
|
1997
1990
|
const remote = `origin/${branch}`;
|
|
1998
1991
|
const remoteOk = await git(["rev-parse", "--verify", remote], repoPath, {
|
|
@@ -2001,8 +1994,27 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
2001
1994
|
if (remoteOk.exitCode !== 0) {
|
|
2002
1995
|
return { updated: false, reason: "no-origin-tip" };
|
|
2003
1996
|
}
|
|
1997
|
+
const worktrees = await listWorktrees(repoPath);
|
|
1998
|
+
if (worktrees.length === 0) {
|
|
1999
|
+
return { updated: false, reason: "ff-failed" };
|
|
2000
|
+
}
|
|
2001
|
+
const checkout = worktrees.find((entry) => entry.branch === branch) ?? null;
|
|
2002
|
+
const localRef = `refs/heads/${branch}`;
|
|
2003
|
+
const localOk = await git(["rev-parse", "--verify", localRef], repoPath, {
|
|
2004
|
+
reject: false
|
|
2005
|
+
});
|
|
2006
|
+
if (localOk.exitCode !== 0) {
|
|
2007
|
+
if (checkout) return { updated: false, reason: "ff-failed" };
|
|
2008
|
+
const created = await git(["branch", "--track", branch, remote], repoPath, {
|
|
2009
|
+
reject: false
|
|
2010
|
+
});
|
|
2011
|
+
if (created.exitCode !== 0) {
|
|
2012
|
+
return { updated: false, reason: "ff-failed" };
|
|
2013
|
+
}
|
|
2014
|
+
return { updated: true, reason: "updated" };
|
|
2015
|
+
}
|
|
2004
2016
|
const ancestor = await git(
|
|
2005
|
-
["merge-base", "--is-ancestor",
|
|
2017
|
+
["merge-base", "--is-ancestor", localRef, remote],
|
|
2006
2018
|
repoPath,
|
|
2007
2019
|
{ reject: false }
|
|
2008
2020
|
);
|
|
@@ -2010,7 +2022,7 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
2010
2022
|
return { updated: false, reason: "diverged" };
|
|
2011
2023
|
}
|
|
2012
2024
|
const behind = await git(
|
|
2013
|
-
["rev-list", "--count",
|
|
2025
|
+
["rev-list", "--count", `${localRef}..${remote}`],
|
|
2014
2026
|
repoPath,
|
|
2015
2027
|
{ reject: false }
|
|
2016
2028
|
);
|
|
@@ -2018,10 +2030,22 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
2018
2030
|
if (behind.exitCode !== 0 || !Number.isFinite(n) || n <= 0) {
|
|
2019
2031
|
return { updated: false, reason: "already-current" };
|
|
2020
2032
|
}
|
|
2021
|
-
|
|
2033
|
+
if (checkout) {
|
|
2034
|
+
if (await isDirty(checkout.path)) {
|
|
2035
|
+
return { updated: false, reason: "dirty" };
|
|
2036
|
+
}
|
|
2037
|
+
const ff = await git(["merge", "--ff-only", remote], checkout.path, {
|
|
2038
|
+
reject: false
|
|
2039
|
+
});
|
|
2040
|
+
if (ff.exitCode !== 0) {
|
|
2041
|
+
return { updated: false, reason: "ff-failed" };
|
|
2042
|
+
}
|
|
2043
|
+
return { updated: true, reason: "updated" };
|
|
2044
|
+
}
|
|
2045
|
+
const moved = await git(["branch", "-f", branch, remote], repoPath, {
|
|
2022
2046
|
reject: false
|
|
2023
2047
|
});
|
|
2024
|
-
if (
|
|
2048
|
+
if (moved.exitCode !== 0) {
|
|
2025
2049
|
return { updated: false, reason: "ff-failed" };
|
|
2026
2050
|
}
|
|
2027
2051
|
return { updated: true, reason: "updated" };
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
isGlobalThread,
|
|
12
12
|
isOrchestratorThread,
|
|
13
13
|
isSlackCoordinatorThread
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-PO3PDNMV.js";
|
|
15
15
|
import {
|
|
16
16
|
mergeAgentGitAuthEnv,
|
|
17
17
|
resolveAgentGitAuthEnv
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-UO5C2L2G.js";
|
|
19
19
|
import {
|
|
20
20
|
ATTACHMENTS_DIR,
|
|
21
21
|
DETACHED_JOBS_DIR,
|
|
@@ -1674,7 +1674,7 @@ var PORT_RANGE_SIZE = 10;
|
|
|
1674
1674
|
var RECLAIM_RETRY_DELAY_MS = 40;
|
|
1675
1675
|
var RECLAIM_TRIES = 8;
|
|
1676
1676
|
async function killReclaimable(ports, worktreePath, signal) {
|
|
1677
|
-
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-
|
|
1677
|
+
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-P7XPGYF4.js");
|
|
1678
1678
|
if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
|
|
1679
1679
|
else killListenersOnPorts2(ports);
|
|
1680
1680
|
}
|
|
@@ -12,13 +12,13 @@ import {
|
|
|
12
12
|
} from "./chunk-YSLCWCMJ.js";
|
|
13
13
|
import {
|
|
14
14
|
isOrchestratorThread
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-ZRQWV3MS.js";
|
|
16
16
|
import {
|
|
17
17
|
codexUnattendedGitConfigArgs,
|
|
18
18
|
mergeAgentGitAuthEnv,
|
|
19
19
|
resolveAgentGitAuthEnv,
|
|
20
20
|
resolveCodexGitWritableRoots
|
|
21
|
-
} from "./chunk-
|
|
21
|
+
} from "./chunk-2VGLZIU6.js";
|
|
22
22
|
import {
|
|
23
23
|
loadBrightsyConfig
|
|
24
24
|
} from "./chunk-33KDPEK4.js";
|
|
@@ -1752,7 +1752,7 @@ var claudeAdapter = {
|
|
|
1752
1752
|
);
|
|
1753
1753
|
}
|
|
1754
1754
|
const mode = permissionMode(thread);
|
|
1755
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
1755
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-UGR6FQXI.js");
|
|
1756
1756
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
1757
1757
|
const rpc = worktreeAgentRpc(isOrchestrator);
|
|
1758
1758
|
const injectedServers = await buildInjectedMcpServers({
|
|
@@ -31,10 +31,10 @@ import {
|
|
|
31
31
|
tryReservePort,
|
|
32
32
|
tryReservePorts,
|
|
33
33
|
worktreeRunPortsPath
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-4YXXLWDI.js";
|
|
35
35
|
import "./chunk-YSLCWCMJ.js";
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
36
|
+
import "./chunk-ZRQWV3MS.js";
|
|
37
|
+
import "./chunk-2VGLZIU6.js";
|
|
38
38
|
import "./chunk-QB5MDOHL.js";
|
|
39
39
|
import "./chunk-2P4XKWV2.js";
|
|
40
40
|
import "./chunk-MIVX7QKI.js";
|
|
@@ -33,10 +33,10 @@ import {
|
|
|
33
33
|
tryReservePort,
|
|
34
34
|
tryReservePorts,
|
|
35
35
|
worktreeRunPortsPath
|
|
36
|
-
} from "./chunk-
|
|
36
|
+
} from "./chunk-WRDKJRWF.js";
|
|
37
37
|
import "./chunk-AFLNFGGB.js";
|
|
38
|
-
import "./chunk-
|
|
39
|
-
import "./chunk-
|
|
38
|
+
import "./chunk-PO3PDNMV.js";
|
|
39
|
+
import "./chunk-UO5C2L2G.js";
|
|
40
40
|
import "./chunk-N2WW62LF.js";
|
|
41
41
|
import "./chunk-DD67JWTN.js";
|
|
42
42
|
import "./chunk-2UG25RMK.js";
|
|
@@ -7,8 +7,8 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-ZRQWV3MS.js";
|
|
11
|
+
import "./chunk-2VGLZIU6.js";
|
|
12
12
|
import "./chunk-QB5MDOHL.js";
|
|
13
13
|
import "./chunk-2P4XKWV2.js";
|
|
14
14
|
import "./chunk-6K64FJDD.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-PO3PDNMV.js";
|
|
13
|
+
import "./chunk-UO5C2L2G.js";
|
|
14
14
|
import "./chunk-N2WW62LF.js";
|
|
15
15
|
import "./chunk-DD67JWTN.js";
|
|
16
16
|
import "./chunk-2UG25RMK.js";
|
|
@@ -20,8 +20,8 @@ import {
|
|
|
20
20
|
remoteCoordinatorSourceRef,
|
|
21
21
|
slackCoordinatorSourceRef,
|
|
22
22
|
takenTeamSlugsForOrchestration
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-PO3PDNMV.js";
|
|
24
|
+
import "./chunk-UO5C2L2G.js";
|
|
25
25
|
import "./chunk-N2WW62LF.js";
|
|
26
26
|
import "./chunk-DD67JWTN.js";
|
|
27
27
|
import "./chunk-2UG25RMK.js";
|
|
@@ -18,8 +18,8 @@ import {
|
|
|
18
18
|
remoteCoordinatorSourceRef,
|
|
19
19
|
slackCoordinatorSourceRef,
|
|
20
20
|
takenTeamSlugsForOrchestration
|
|
21
|
-
} from "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
} from "./chunk-ZRQWV3MS.js";
|
|
22
|
+
import "./chunk-2VGLZIU6.js";
|
|
23
23
|
import "./chunk-QB5MDOHL.js";
|
|
24
24
|
import "./chunk-2P4XKWV2.js";
|
|
25
25
|
import "./chunk-6K64FJDD.js";
|