@sideboard-ai/core 0.1.292 → 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 +47 -13
- package/dist/index.d.cts +10 -4
- package/dist/index.d.ts +10 -4
- package/dist/index.js +17 -7
- 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
package/dist/mcp/run-stdio.cjs
CHANGED
|
@@ -8577,15 +8577,8 @@ async function fetchOriginForWorktree(repoPath, sourceRef, opts) {
|
|
|
8577
8577
|
async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
8578
8578
|
try {
|
|
8579
8579
|
const branch = opts?.branch?.trim() || await resolveDefaultBranch(repoPath, { network: false });
|
|
8580
|
-
|
|
8581
|
-
|
|
8582
|
-
});
|
|
8583
|
-
const current = head.stdout.trim();
|
|
8584
|
-
if (head.exitCode !== 0 || !current || current === "HEAD" || current !== branch) {
|
|
8585
|
-
return { updated: false, reason: "not-on-default" };
|
|
8586
|
-
}
|
|
8587
|
-
if (await isDirty(repoPath)) {
|
|
8588
|
-
return { updated: false, reason: "dirty" };
|
|
8580
|
+
if (!branch || branch === "HEAD" || branch.includes("..")) {
|
|
8581
|
+
return { updated: false, reason: "ff-failed" };
|
|
8589
8582
|
}
|
|
8590
8583
|
const remote = `origin/${branch}`;
|
|
8591
8584
|
const remoteOk = await git(["rev-parse", "--verify", remote], repoPath, {
|
|
@@ -8594,8 +8587,27 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
8594
8587
|
if (remoteOk.exitCode !== 0) {
|
|
8595
8588
|
return { updated: false, reason: "no-origin-tip" };
|
|
8596
8589
|
}
|
|
8590
|
+
const worktrees = await listWorktrees(repoPath);
|
|
8591
|
+
if (worktrees.length === 0) {
|
|
8592
|
+
return { updated: false, reason: "ff-failed" };
|
|
8593
|
+
}
|
|
8594
|
+
const checkout = worktrees.find((entry) => entry.branch === branch) ?? null;
|
|
8595
|
+
const localRef = `refs/heads/${branch}`;
|
|
8596
|
+
const localOk = await git(["rev-parse", "--verify", localRef], repoPath, {
|
|
8597
|
+
reject: false
|
|
8598
|
+
});
|
|
8599
|
+
if (localOk.exitCode !== 0) {
|
|
8600
|
+
if (checkout) return { updated: false, reason: "ff-failed" };
|
|
8601
|
+
const created = await git(["branch", "--track", branch, remote], repoPath, {
|
|
8602
|
+
reject: false
|
|
8603
|
+
});
|
|
8604
|
+
if (created.exitCode !== 0) {
|
|
8605
|
+
return { updated: false, reason: "ff-failed" };
|
|
8606
|
+
}
|
|
8607
|
+
return { updated: true, reason: "updated" };
|
|
8608
|
+
}
|
|
8597
8609
|
const ancestor = await git(
|
|
8598
|
-
["merge-base", "--is-ancestor",
|
|
8610
|
+
["merge-base", "--is-ancestor", localRef, remote],
|
|
8599
8611
|
repoPath,
|
|
8600
8612
|
{ reject: false }
|
|
8601
8613
|
);
|
|
@@ -8603,7 +8615,7 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
8603
8615
|
return { updated: false, reason: "diverged" };
|
|
8604
8616
|
}
|
|
8605
8617
|
const behind = await git(
|
|
8606
|
-
["rev-list", "--count",
|
|
8618
|
+
["rev-list", "--count", `${localRef}..${remote}`],
|
|
8607
8619
|
repoPath,
|
|
8608
8620
|
{ reject: false }
|
|
8609
8621
|
);
|
|
@@ -8611,10 +8623,22 @@ async function fastForwardMainCheckoutIfSafe(repoPath, opts) {
|
|
|
8611
8623
|
if (behind.exitCode !== 0 || !Number.isFinite(n) || n <= 0) {
|
|
8612
8624
|
return { updated: false, reason: "already-current" };
|
|
8613
8625
|
}
|
|
8614
|
-
|
|
8626
|
+
if (checkout) {
|
|
8627
|
+
if (await isDirty(checkout.path)) {
|
|
8628
|
+
return { updated: false, reason: "dirty" };
|
|
8629
|
+
}
|
|
8630
|
+
const ff = await git(["merge", "--ff-only", remote], checkout.path, {
|
|
8631
|
+
reject: false
|
|
8632
|
+
});
|
|
8633
|
+
if (ff.exitCode !== 0) {
|
|
8634
|
+
return { updated: false, reason: "ff-failed" };
|
|
8635
|
+
}
|
|
8636
|
+
return { updated: true, reason: "updated" };
|
|
8637
|
+
}
|
|
8638
|
+
const moved = await git(["branch", "-f", branch, remote], repoPath, {
|
|
8615
8639
|
reject: false
|
|
8616
8640
|
});
|
|
8617
|
-
if (
|
|
8641
|
+
if (moved.exitCode !== 0) {
|
|
8618
8642
|
return { updated: false, reason: "ff-failed" };
|
|
8619
8643
|
}
|
|
8620
8644
|
return { updated: true, reason: "updated" };
|
package/dist/mcp/run-stdio.js
CHANGED
|
@@ -50,7 +50,7 @@ import {
|
|
|
50
50
|
syncBoardPins,
|
|
51
51
|
updateSchedule,
|
|
52
52
|
workspaceTagTargetRef
|
|
53
|
-
} from "../chunk-
|
|
53
|
+
} from "../chunk-IP5WSADC.js";
|
|
54
54
|
import "../chunk-LX5R5JOR.js";
|
|
55
55
|
import {
|
|
56
56
|
commentAbleTimeTask,
|
|
@@ -93,7 +93,7 @@ import {
|
|
|
93
93
|
sideboardMcpProfile,
|
|
94
94
|
trustSystemCertificates,
|
|
95
95
|
worktreeMcpToolNames
|
|
96
|
-
} from "../chunk-
|
|
96
|
+
} from "../chunk-RPCKGO3J.js";
|
|
97
97
|
import "../chunk-W2KZTDET.js";
|
|
98
98
|
import "../chunk-7IAMHN2N.js";
|
|
99
99
|
import "../chunk-PXMLMBMI.js";
|
|
@@ -110,7 +110,7 @@ import {
|
|
|
110
110
|
waitForDetachedJob,
|
|
111
111
|
waitForTurnToolResult,
|
|
112
112
|
workspaceAgentChatSummaries
|
|
113
|
-
} from "../chunk-
|
|
113
|
+
} from "../chunk-WRDKJRWF.js";
|
|
114
114
|
import {
|
|
115
115
|
clipToolResultForStore,
|
|
116
116
|
isInternalAgentStatusText,
|
|
@@ -119,7 +119,7 @@ import {
|
|
|
119
119
|
import {
|
|
120
120
|
GLOBAL_WORKSPACE_ID,
|
|
121
121
|
isCloudCoordinatorThread
|
|
122
|
-
} from "../chunk-
|
|
122
|
+
} from "../chunk-PO3PDNMV.js";
|
|
123
123
|
import {
|
|
124
124
|
canonicalizeRepoPath,
|
|
125
125
|
formatGhLandError,
|
|
@@ -130,7 +130,7 @@ import {
|
|
|
130
130
|
resolveListPrsOptions,
|
|
131
131
|
resolveRepoRoot,
|
|
132
132
|
warmGithubAgentAuth
|
|
133
|
-
} from "../chunk-
|
|
133
|
+
} from "../chunk-UO5C2L2G.js";
|
|
134
134
|
import {
|
|
135
135
|
CLI_DIR
|
|
136
136
|
} from "../chunk-N2WW62LF.js";
|
|
@@ -11,20 +11,20 @@ import {
|
|
|
11
11
|
resolveSendFollowUp,
|
|
12
12
|
startOrchestration,
|
|
13
13
|
waitForPidExit
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-IP5WSADC.js";
|
|
15
15
|
import "./chunk-LX5R5JOR.js";
|
|
16
16
|
import "./chunk-4BXRRHDC.js";
|
|
17
17
|
import "./chunk-4GK32AYX.js";
|
|
18
18
|
import "./chunk-5DZUWGKV.js";
|
|
19
|
-
import "./chunk-
|
|
19
|
+
import "./chunk-RPCKGO3J.js";
|
|
20
20
|
import "./chunk-W2KZTDET.js";
|
|
21
21
|
import "./chunk-7IAMHN2N.js";
|
|
22
22
|
import "./chunk-PXMLMBMI.js";
|
|
23
23
|
import "./chunk-2GPQZZLY.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-WRDKJRWF.js";
|
|
25
25
|
import "./chunk-AFLNFGGB.js";
|
|
26
|
-
import "./chunk-
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-PO3PDNMV.js";
|
|
27
|
+
import "./chunk-UO5C2L2G.js";
|
|
28
28
|
import "./chunk-N2WW62LF.js";
|
|
29
29
|
import "./chunk-DD67JWTN.js";
|
|
30
30
|
import "./chunk-2UG25RMK.js";
|
|
@@ -9,17 +9,17 @@ import {
|
|
|
9
9
|
resolveSendFollowUp,
|
|
10
10
|
startOrchestration,
|
|
11
11
|
waitForPidExit
|
|
12
|
-
} from "./chunk-
|
|
12
|
+
} from "./chunk-LSHGJI4S.js";
|
|
13
13
|
import "./chunk-PGPSIEMW.js";
|
|
14
|
-
import "./chunk-
|
|
14
|
+
import "./chunk-XZW3BXZW.js";
|
|
15
15
|
import "./chunk-VGNLMGBK.js";
|
|
16
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-4YXXLWDI.js";
|
|
17
17
|
import "./chunk-YSLCWCMJ.js";
|
|
18
18
|
import "./chunk-7H655NEW.js";
|
|
19
19
|
import "./chunk-AF2DMY3K.js";
|
|
20
20
|
import "./chunk-NXXQFLNQ.js";
|
|
21
|
-
import "./chunk-
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-ZRQWV3MS.js";
|
|
22
|
+
import "./chunk-2VGLZIU6.js";
|
|
23
23
|
import "./chunk-QB5MDOHL.js";
|
|
24
24
|
import "./chunk-2P4XKWV2.js";
|
|
25
25
|
import "./chunk-33KDPEK4.js";
|
|
@@ -11,8 +11,8 @@ import {
|
|
|
11
11
|
removeWorkspace,
|
|
12
12
|
sameWorkspacePath,
|
|
13
13
|
syncWorkspacesFromThreads
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-PO3PDNMV.js";
|
|
15
|
+
import "./chunk-UO5C2L2G.js";
|
|
16
16
|
import "./chunk-N2WW62LF.js";
|
|
17
17
|
import "./chunk-DD67JWTN.js";
|
|
18
18
|
import "./chunk-2UG25RMK.js";
|
|
@@ -9,8 +9,8 @@ import {
|
|
|
9
9
|
removeWorkspace,
|
|
10
10
|
sameWorkspacePath,
|
|
11
11
|
syncWorkspacesFromThreads
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-ZRQWV3MS.js";
|
|
13
|
+
import "./chunk-2VGLZIU6.js";
|
|
14
14
|
import "./chunk-QB5MDOHL.js";
|
|
15
15
|
import "./chunk-2P4XKWV2.js";
|
|
16
16
|
import "./chunk-6K64FJDD.js";
|