@sideboard-ai/core 0.1.193 → 0.1.194
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-UX53JTIH.js → abletime-HR6P4GJH.js} +3 -3
- package/dist/{abletime-QHKWGTBY.js → abletime-JINF5KJV.js} +3 -3
- package/dist/agents/cursor-runner.js +2 -2
- package/dist/{agents-MN4GSQTL.js → agents-OXDDPH2O.js} +16 -17
- package/dist/{agents-OK5VD25T.js → agents-WQL7SZY6.js} +6 -7
- package/dist/{app-settings-LO7UFHQ6.js → app-settings-5KHVKJKO.js} +2 -2
- package/dist/{app-settings-QYLNKRK4.js → app-settings-J775CYOO.js} +2 -2
- package/dist/{branch-prefix-EVW2KHGQ.js → branch-prefix-7DTIUJT2.js} +1 -1
- package/dist/{branch-prefix-7F37FIPX.js → branch-prefix-N3KTCRCE.js} +1 -1
- package/dist/{chunk-MQC2VA5U.js → chunk-2X6RGKLI.js} +13 -13
- package/dist/{chunk-EBPBGQ4P.js → chunk-6H2XPPPR.js} +9 -9
- package/dist/{chunk-HIX2VDRE.js → chunk-6YTI2HBG.js} +6 -8
- package/dist/{chunk-KORE4WOF.js → chunk-AH6WIBLY.js} +1 -1
- package/dist/{chunk-XPKKCFRT.js → chunk-DP4TKAMZ.js} +864 -7
- package/dist/{chunk-O4BMPY5Y.js → chunk-E37JHCO3.js} +1 -1
- package/dist/{chunk-JTWKGOFI.js → chunk-FJZWM2ON.js} +1 -1
- package/dist/{chunk-4OVCJPVI.js → chunk-HZTHWU6A.js} +6 -8
- package/dist/{chunk-4QJRH5DL.js → chunk-KTHRWHA3.js} +1 -1
- package/dist/{chunk-EQXXGOMD.js → chunk-NY366OEZ.js} +46 -58
- package/dist/{chunk-BIKCWYRP.js → chunk-S4QCBBXS.js} +873 -16
- package/dist/{chunk-BWRS6GAS.js → chunk-S5GLSRLP.js} +1 -1
- package/dist/{chunk-PE337IM2.js → chunk-SALM35KD.js} +7 -7
- package/dist/{chunk-3DX2T2KR.js → chunk-VRPPFKAO.js} +37 -49
- package/dist/{chunk-7SNJMKD6.js → chunk-WDRMZKVB.js} +1 -1
- package/dist/{connected-teams-SYQQGCXD.js → connected-teams-WK47ATT7.js} +2 -2
- package/dist/{coordinator-prompt-WB65HIZ3.js → coordinator-prompt-IX66YUJ2.js} +5 -6
- package/dist/{coordinator-prompt-GXJIPWNA.js → coordinator-prompt-LYKS3YNG.js} +4 -5
- package/dist/{global-workspace-MMK5UFUZ.js → global-workspace-4QX6UEOY.js} +5 -6
- package/dist/{global-workspace-BZ6V6TEX.js → global-workspace-SNJ2Z6SL.js} +4 -5
- package/dist/index.cjs +50 -84
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +95 -54
- package/dist/mcp/run-stdio.cjs +47 -83
- package/dist/mcp/run-stdio.js +67 -26
- package/dist/{orchestrator-SFOT6Q6F.js → orchestrator-A5KF2335.js} +8 -9
- package/dist/{orchestrator-4KI6VIFG.js → orchestrator-S3M2E7O6.js} +9 -10
- package/dist/{workspaces-KPJS7GLY.js → workspaces-URMUVGAQ.js} +5 -6
- package/dist/{workspaces-ACMZMKPD.js → workspaces-UTOYGBYB.js} +4 -5
- package/dist/{worktree-6IEVF3GN.js → worktree-R43JOR4V.js} +12 -14
- package/dist/{worktree-UW6DNBIE.js → worktree-RM6UWNGZ.js} +17 -19
- package/package.json +1 -1
- package/dist/chunk-64QSHOKV.js +0 -869
- package/dist/chunk-ILWQT2UN.js +0 -55
- package/dist/chunk-PBEPPXMY.js +0 -57
- package/dist/chunk-RCWHL4TK.js +0 -866
- package/dist/github-DWROJOB7.js +0 -11
- package/dist/github-IIF7AQNO.js +0 -9
- package/dist/worktree-labels-3XDS6O3U.js +0 -22
- package/dist/worktree-labels-PEDOJBMD.js +0 -24
- package/dist/{chunk-7AJ7OZZF.js → chunk-NLHFAMC2.js} +3 -3
|
@@ -5,12 +5,12 @@ import {
|
|
|
5
5
|
refreshBrightsyAccessToken,
|
|
6
6
|
saveBrightsyConfig
|
|
7
7
|
} from "./chunk-AN3THU7F.js";
|
|
8
|
-
import {
|
|
9
|
-
run
|
|
10
|
-
} from "./chunk-UFHNSFAS.js";
|
|
11
8
|
import {
|
|
12
9
|
appDataDir
|
|
13
10
|
} from "./chunk-WFUDY6PC.js";
|
|
11
|
+
import {
|
|
12
|
+
run
|
|
13
|
+
} from "./chunk-UFHNSFAS.js";
|
|
14
14
|
|
|
15
15
|
// src/brightsy/connected-teams.ts
|
|
16
16
|
import { existsSync, mkdirSync, readFileSync, writeFileSync } from "fs";
|
|
@@ -18,7 +18,7 @@ import { join } from "path";
|
|
|
18
18
|
|
|
19
19
|
// src/brightsy/accounts.ts
|
|
20
20
|
async function loadConnectedTeams() {
|
|
21
|
-
const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-
|
|
21
|
+
const { listConnectedBrightsyTeams: listConnectedBrightsyTeams2 } = await import("./connected-teams-WK47ATT7.js");
|
|
22
22
|
return listConnectedBrightsyTeams2();
|
|
23
23
|
}
|
|
24
24
|
async function runBrightsyTeamsJson(args) {
|
|
@@ -47,14 +47,14 @@ async function listBrightsyAccounts() {
|
|
|
47
47
|
async function getBrightsySession() {
|
|
48
48
|
try {
|
|
49
49
|
const { ensureBrightsyLocalConfigFresh: ensureBrightsyLocalConfigFresh2 } = await import("./oauth-6ZQ4Q4XN.js");
|
|
50
|
-
const { ensureConnectedBrightsyTeamTokens: ensureConnectedBrightsyTeamTokens2 } = await import("./connected-teams-
|
|
50
|
+
const { ensureConnectedBrightsyTeamTokens: ensureConnectedBrightsyTeamTokens2 } = await import("./connected-teams-WK47ATT7.js");
|
|
51
51
|
await ensureBrightsyLocalConfigFresh2();
|
|
52
52
|
await ensureConnectedBrightsyTeamTokens2();
|
|
53
53
|
loadBrightsyConfig();
|
|
54
54
|
const data = await runBrightsyTeamsJson([]);
|
|
55
55
|
const accounts = Array.isArray(data.teams) ? data.teams : [];
|
|
56
56
|
const active = data.active ?? accounts.find((a) => a.active) ?? null;
|
|
57
|
-
const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-
|
|
57
|
+
const { ensureCliTeamTracked: ensureCliTeamTracked2 } = await import("./connected-teams-WK47ATT7.js");
|
|
58
58
|
const connectedTeams = ensureCliTeamTracked2(
|
|
59
59
|
active ? { id: active.id, slug: active.slug, name: active.name } : void 0
|
|
60
60
|
);
|
|
@@ -94,7 +94,7 @@ async function performBrightsyAccountSwitch(accountIdOrSlug) {
|
|
|
94
94
|
return { cfg, target: data.active };
|
|
95
95
|
}
|
|
96
96
|
async function switchBrightsyAccount(accountIdOrSlug) {
|
|
97
|
-
const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-
|
|
97
|
+
const { connectBrightsyTeam: connectBrightsyTeam2 } = await import("./connected-teams-WK47ATT7.js");
|
|
98
98
|
await connectBrightsyTeam2(accountIdOrSlug);
|
|
99
99
|
return getBrightsySession();
|
|
100
100
|
}
|
|
@@ -1,10 +1,5 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
|
|
3
|
-
import {
|
|
4
|
-
extractPresentedPlan,
|
|
5
|
-
readPlanFile,
|
|
6
|
-
writePlanFile
|
|
7
|
-
} from "./chunk-JFOPOMK7.js";
|
|
8
3
|
import {
|
|
9
4
|
releaseCaffeinateHoldForThread
|
|
10
5
|
} from "./chunk-YWI3IBP2.js";
|
|
@@ -41,7 +36,7 @@ import {
|
|
|
41
36
|
summarizeTurnStderr,
|
|
42
37
|
toolDescription,
|
|
43
38
|
turnFailChatText
|
|
44
|
-
} from "./chunk-
|
|
39
|
+
} from "./chunk-6H2XPPPR.js";
|
|
45
40
|
import {
|
|
46
41
|
SLACK_REPLY_FORMATTING,
|
|
47
42
|
addWorkspace,
|
|
@@ -64,9 +59,15 @@ import {
|
|
|
64
59
|
stageAbsolutePathsAsAttachments,
|
|
65
60
|
stageBuffersAsAttachments,
|
|
66
61
|
syncWorkspacesFromThreads
|
|
67
|
-
} from "./chunk-
|
|
62
|
+
} from "./chunk-6YTI2HBG.js";
|
|
63
|
+
import {
|
|
64
|
+
extractPresentedPlan,
|
|
65
|
+
readPlanFile,
|
|
66
|
+
writePlanFile
|
|
67
|
+
} from "./chunk-JFOPOMK7.js";
|
|
68
68
|
import {
|
|
69
69
|
addPrStackLayer,
|
|
70
|
+
allocateTeamName,
|
|
70
71
|
allocateTeamSlug,
|
|
71
72
|
canonicalizeRepoPath,
|
|
72
73
|
commitAll,
|
|
@@ -89,11 +90,13 @@ import {
|
|
|
89
90
|
getPrStack,
|
|
90
91
|
initPrStack,
|
|
91
92
|
isDirty,
|
|
93
|
+
isPlaceholderBranch,
|
|
92
94
|
isSideboardScratchPath,
|
|
93
95
|
listWorktrees,
|
|
94
96
|
markPrReady,
|
|
95
97
|
mergeAgentGitAuthEnv,
|
|
96
98
|
mergePr,
|
|
99
|
+
normalizeWorktreePath,
|
|
97
100
|
originGhRepoEnv,
|
|
98
101
|
pushBranch,
|
|
99
102
|
removeWorktree,
|
|
@@ -104,8 +107,14 @@ import {
|
|
|
104
107
|
resolvePrSelector,
|
|
105
108
|
resolvePrSelectors,
|
|
106
109
|
resolveRepoRoot,
|
|
107
|
-
|
|
108
|
-
|
|
110
|
+
takenSlugsFromThread,
|
|
111
|
+
threadDisplayLabel,
|
|
112
|
+
ticketSlugForBranch,
|
|
113
|
+
withRepoGitLock,
|
|
114
|
+
worktreeDisplayLabelForGroup,
|
|
115
|
+
worktreeNameFromPath,
|
|
116
|
+
worktreeSlugForTicket
|
|
117
|
+
} from "./chunk-DP4TKAMZ.js";
|
|
109
118
|
import {
|
|
110
119
|
ATTACHMENTS_DIR,
|
|
111
120
|
DETACHED_JOBS_DIR,
|
|
@@ -124,17 +133,6 @@ import {
|
|
|
124
133
|
withThreadLock,
|
|
125
134
|
writeThread
|
|
126
135
|
} from "./chunk-CJFBSQIB.js";
|
|
127
|
-
import {
|
|
128
|
-
allocateTeamName,
|
|
129
|
-
isPlaceholderBranch,
|
|
130
|
-
normalizeWorktreePath,
|
|
131
|
-
takenSlugsFromThread,
|
|
132
|
-
threadDisplayLabel,
|
|
133
|
-
ticketSlugForBranch,
|
|
134
|
-
worktreeDisplayLabelForGroup,
|
|
135
|
-
worktreeNameFromPath,
|
|
136
|
-
worktreeSlugForTicket
|
|
137
|
-
} from "./chunk-64QSHOKV.js";
|
|
138
136
|
import {
|
|
139
137
|
ensureWorktreeSideboardIgnored
|
|
140
138
|
} from "./chunk-SYFVUF2C.js";
|
|
@@ -170,7 +168,7 @@ import {
|
|
|
170
168
|
stripNestedElectronEnv,
|
|
171
169
|
updateAdvancedSettings,
|
|
172
170
|
writeSecureJson
|
|
173
|
-
} from "./chunk-
|
|
171
|
+
} from "./chunk-AH6WIBLY.js";
|
|
174
172
|
import {
|
|
175
173
|
writePrivateFile
|
|
176
174
|
} from "./chunk-NSTQ6QKD.js";
|
|
@@ -190,7 +188,7 @@ import {
|
|
|
190
188
|
import {
|
|
191
189
|
examplePrefixedBranch,
|
|
192
190
|
sanitizeGitBranchPrefix
|
|
193
|
-
} from "./chunk-
|
|
191
|
+
} from "./chunk-FJZWM2ON.js";
|
|
194
192
|
|
|
195
193
|
// src/orchestrator/orchestrator.ts
|
|
196
194
|
import { EventEmitter } from "events";
|
|
@@ -408,7 +406,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
408
406
|
await continueOnReply(threadId, prompt);
|
|
409
407
|
return;
|
|
410
408
|
}
|
|
411
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
409
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-A5KF2335.js");
|
|
412
410
|
await getOrchestrator2().send(threadId, prompt);
|
|
413
411
|
} catch {
|
|
414
412
|
}
|
|
@@ -801,9 +799,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
801
799
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
802
800
|
);
|
|
803
801
|
}
|
|
804
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
802
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-SNJ2Z6SL.js");
|
|
805
803
|
if (isGlobalThread2(thread)) {
|
|
806
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
804
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-LYKS3YNG.js");
|
|
807
805
|
ensureGlobalCoordinatorCwd2(
|
|
808
806
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
809
807
|
);
|
|
@@ -3530,7 +3528,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3530
3528
|
});
|
|
3531
3529
|
await requireAgent(resolved.agent);
|
|
3532
3530
|
if (input.cowboy) {
|
|
3533
|
-
const { cowboyModeEnabled } = await import("./app-settings-
|
|
3531
|
+
const { cowboyModeEnabled } = await import("./app-settings-J775CYOO.js");
|
|
3534
3532
|
if (!cowboyModeEnabled()) {
|
|
3535
3533
|
throw new Error(
|
|
3536
3534
|
"Cowboy mode is off. Enable it in Settings \u2192 Advanced."
|
|
@@ -3588,7 +3586,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3588
3586
|
let sourceIsFork = false;
|
|
3589
3587
|
if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
|
|
3590
3588
|
if (isAbleTimeConnected() && getIssueSource() === "abletime") {
|
|
3591
|
-
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-
|
|
3589
|
+
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-HR6P4GJH.js");
|
|
3592
3590
|
const task = await ensureAbleTimeTask({
|
|
3593
3591
|
title: title?.trim() || "Untitled work",
|
|
3594
3592
|
description: input.prompt?.trim() || void 0
|
|
@@ -4100,7 +4098,7 @@ async function adoptThread(input) {
|
|
|
4100
4098
|
messages: input.messages ?? []
|
|
4101
4099
|
});
|
|
4102
4100
|
writeThread(thread);
|
|
4103
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
4101
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-UTOYGBYB.js");
|
|
4104
4102
|
await ensureWorkspace2(repoPath);
|
|
4105
4103
|
const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-N5X5I422.js");
|
|
4106
4104
|
await ensureWorktreeSideboardIgnored2(input.worktreePath);
|
|
@@ -6478,7 +6476,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6478
6476
|
${prompt}`;
|
|
6479
6477
|
}
|
|
6480
6478
|
async function defaultDeps() {
|
|
6481
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6479
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-A5KF2335.js");
|
|
6482
6480
|
const orch = getOrchestrator2();
|
|
6483
6481
|
return {
|
|
6484
6482
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -6753,7 +6751,7 @@ var Orchestrator = class {
|
|
|
6753
6751
|
orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
|
|
6754
6752
|
});
|
|
6755
6753
|
}
|
|
6756
|
-
const { autoCleanupOrphansEnabled } = await import("./app-settings-
|
|
6754
|
+
const { autoCleanupOrphansEnabled } = await import("./app-settings-J775CYOO.js");
|
|
6757
6755
|
if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
|
|
6758
6756
|
await cleanupOrphanWorktrees({ repoPaths });
|
|
6759
6757
|
}
|
|
@@ -7032,7 +7030,7 @@ var Orchestrator = class {
|
|
|
7032
7030
|
}
|
|
7033
7031
|
await setup;
|
|
7034
7032
|
if (skipSetup) return;
|
|
7035
|
-
const { autoRunAfterSetupEnabled } = await import("./app-settings-
|
|
7033
|
+
const { autoRunAfterSetupEnabled } = await import("./app-settings-J775CYOO.js");
|
|
7036
7034
|
if (autoRunAfterSetupEnabled()) {
|
|
7037
7035
|
try {
|
|
7038
7036
|
await this.startDev(threadId);
|
|
@@ -7355,7 +7353,7 @@ var Orchestrator = class {
|
|
|
7355
7353
|
}
|
|
7356
7354
|
const isBrightsy = fresh.agent === "brightsy";
|
|
7357
7355
|
const isOrchestration = isOrchestratorThread(fresh);
|
|
7358
|
-
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-
|
|
7356
|
+
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-J775CYOO.js");
|
|
7359
7357
|
const gitAuthMode = getGithubGitAuthMode();
|
|
7360
7358
|
const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
|
|
7361
7359
|
githubSlug: await resolveGithubRepoSlug(fresh.worktreePath).catch(
|
|
@@ -7393,21 +7391,11 @@ var Orchestrator = class {
|
|
|
7393
7391
|
const settings = loadWorkspaceSettings(fresh.worktreePath, fresh.repoPath);
|
|
7394
7392
|
let renameBranchDirective = null;
|
|
7395
7393
|
if (!isBrightsy && !isOrchestration && autoRenameBranchEnabled()) {
|
|
7396
|
-
const {
|
|
7397
|
-
let githubLogin = null;
|
|
7398
|
-
if (isPlaceholderBranch2(fresh.branchName, fresh.worktreePath) && !gitBranchPrefixSetting()) {
|
|
7399
|
-
try {
|
|
7400
|
-
const { getGitHubStatus } = await import("./github-DWROJOB7.js");
|
|
7401
|
-
githubLogin = (await getGitHubStatus()).login;
|
|
7402
|
-
} catch {
|
|
7403
|
-
}
|
|
7404
|
-
}
|
|
7405
|
-
const { resolveGitBranchPrefix } = await import("./branch-prefix-EVW2KHGQ.js");
|
|
7394
|
+
const { resolveGitBranchPrefix } = await import("./branch-prefix-7DTIUJT2.js");
|
|
7406
7395
|
renameBranchDirective = formatRenameBranchDirective(fresh, {
|
|
7407
7396
|
customPrompt: settings?.prompts?.renameBranch,
|
|
7408
7397
|
branchPrefix: resolveGitBranchPrefix({
|
|
7409
|
-
setting: gitBranchPrefixSetting()
|
|
7410
|
-
githubLogin
|
|
7398
|
+
setting: gitBranchPrefixSetting()
|
|
7411
7399
|
})
|
|
7412
7400
|
});
|
|
7413
7401
|
}
|
|
@@ -8298,7 +8286,7 @@ var Orchestrator = class {
|
|
|
8298
8286
|
updateThread(thread.id, { title: meta.title });
|
|
8299
8287
|
}
|
|
8300
8288
|
}
|
|
8301
|
-
const { autoArchiveOnMergeEnabled } = await import("./app-settings-
|
|
8289
|
+
const { autoArchiveOnMergeEnabled } = await import("./app-settings-J775CYOO.js");
|
|
8302
8290
|
const latest = this.requireThread(thread.id);
|
|
8303
8291
|
if (!shouldAutoArchiveOnPrMerge({
|
|
8304
8292
|
previousPrState: prevState || null,
|
|
@@ -8590,7 +8578,7 @@ var Orchestrator = class {
|
|
|
8590
8578
|
this.emit({ type: "status_changed", threadId: archived.id, status: "archived" });
|
|
8591
8579
|
if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
|
|
8592
8580
|
try {
|
|
8593
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
8581
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-UTOYGBYB.js");
|
|
8594
8582
|
await ensureWorkspace2(thread.repoPath);
|
|
8595
8583
|
} catch {
|
|
8596
8584
|
}
|
|
@@ -8617,7 +8605,7 @@ var Orchestrator = class {
|
|
|
8617
8605
|
await runArchiveScript(thread.repoPath, thread.worktreePath);
|
|
8618
8606
|
} catch {
|
|
8619
8607
|
}
|
|
8620
|
-
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-
|
|
8608
|
+
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-J775CYOO.js");
|
|
8621
8609
|
const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
|
|
8622
8610
|
await removeWorktree(thread.repoPath, thread.worktreePath, {
|
|
8623
8611
|
deleteBranch: deleteBranch ? thread.branchName : void 0
|
|
@@ -8644,7 +8632,7 @@ var Orchestrator = class {
|
|
|
8644
8632
|
`Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
|
|
8645
8633
|
);
|
|
8646
8634
|
}
|
|
8647
|
-
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-
|
|
8635
|
+
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-R43JOR4V.js");
|
|
8648
8636
|
const slug = thread.worktreePath.split("/").pop();
|
|
8649
8637
|
const dest = thread.worktreePath;
|
|
8650
8638
|
await withRepoGitLock(thread.repoPath, async () => {
|
|
@@ -8754,7 +8742,7 @@ async function startOrchestration(opts) {
|
|
|
8754
8742
|
sourceRef: "default",
|
|
8755
8743
|
...createOpts
|
|
8756
8744
|
}).catch(async () => {
|
|
8757
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
8745
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-R43JOR4V.js");
|
|
8758
8746
|
const repo = await resolveRepoRoot2(repoPath);
|
|
8759
8747
|
const def = await resolveDefaultBranch2(repo);
|
|
8760
8748
|
return orch.createThread({
|
|
@@ -5,7 +5,7 @@ function sanitizeGitBranchPrefix(raw) {
|
|
|
5
5
|
return slug || null;
|
|
6
6
|
}
|
|
7
7
|
function resolveGitBranchPrefix(opts) {
|
|
8
|
-
return sanitizeGitBranchPrefix(opts.setting)
|
|
8
|
+
return sanitizeGitBranchPrefix(opts.setting);
|
|
9
9
|
}
|
|
10
10
|
function examplePrefixedBranch(prefix, ticket) {
|
|
11
11
|
const head = sanitizeGitBranchPrefix(prefix);
|
|
@@ -7,11 +7,11 @@ import {
|
|
|
7
7
|
ensureConnectedBrightsyTeamTokens,
|
|
8
8
|
getConnectedBrightsyTeamsRaw,
|
|
9
9
|
listConnectedBrightsyTeams
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-SALM35KD.js";
|
|
11
11
|
import "./chunk-AN3THU7F.js";
|
|
12
12
|
import "./chunk-N7WZ6NIN.js";
|
|
13
|
-
import "./chunk-UFHNSFAS.js";
|
|
14
13
|
import "./chunk-WFUDY6PC.js";
|
|
14
|
+
import "./chunk-UFHNSFAS.js";
|
|
15
15
|
export {
|
|
16
16
|
applyConnectedTeamToCli,
|
|
17
17
|
brightsyMcpServerName,
|
|
@@ -7,19 +7,18 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-HZTHWU6A.js";
|
|
11
|
+
import "./chunk-S4QCBBXS.js";
|
|
12
12
|
import "./chunk-6K64FJDD.js";
|
|
13
13
|
import "./chunk-QQKDGPUI.js";
|
|
14
|
-
import "./chunk-
|
|
15
|
-
import "./chunk-BWRS6GAS.js";
|
|
14
|
+
import "./chunk-S5GLSRLP.js";
|
|
16
15
|
import "./chunk-4TR3HZFT.js";
|
|
17
|
-
import "./chunk-
|
|
16
|
+
import "./chunk-WDRMZKVB.js";
|
|
18
17
|
import "./chunk-JT7R45JB.js";
|
|
19
18
|
import "./chunk-KJBYIIJU.js";
|
|
20
19
|
import "./chunk-77WWLBCI.js";
|
|
21
20
|
import "./chunk-WFUDY6PC.js";
|
|
22
|
-
import "./chunk-
|
|
21
|
+
import "./chunk-UFHNSFAS.js";
|
|
23
22
|
export {
|
|
24
23
|
COORDINATOR_TOOL_PLAYBOOK,
|
|
25
24
|
SLACK_REPLY_FORMATTING,
|
|
@@ -9,18 +9,17 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-6YTI2HBG.js";
|
|
13
|
+
import "./chunk-DP4TKAMZ.js";
|
|
14
14
|
import "./chunk-D6JWYJ4P.js";
|
|
15
15
|
import "./chunk-CJFBSQIB.js";
|
|
16
|
-
import "./chunk-64QSHOKV.js";
|
|
17
16
|
import "./chunk-SYFVUF2C.js";
|
|
18
17
|
import "./chunk-FNQNJOHY.js";
|
|
19
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-AH6WIBLY.js";
|
|
20
19
|
import "./chunk-NSTQ6QKD.js";
|
|
21
20
|
import "./chunk-KGZBYWZ3.js";
|
|
22
21
|
import "./chunk-EQNRWDLN.js";
|
|
23
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-FJZWM2ON.js";
|
|
24
23
|
export {
|
|
25
24
|
COORDINATOR_TOOL_PLAYBOOK,
|
|
26
25
|
SLACK_REPLY_FORMATTING,
|
|
@@ -15,21 +15,20 @@ import {
|
|
|
15
15
|
orchestratorSessionPoisonedByBuiltins,
|
|
16
16
|
slackCoordinatorSourceRef,
|
|
17
17
|
takenTeamSlugsForOrchestration
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-HZTHWU6A.js";
|
|
19
|
+
import "./chunk-S4QCBBXS.js";
|
|
20
20
|
import "./chunk-6K64FJDD.js";
|
|
21
21
|
import "./chunk-QQKDGPUI.js";
|
|
22
|
-
import "./chunk-
|
|
23
|
-
import "./chunk-BWRS6GAS.js";
|
|
22
|
+
import "./chunk-S5GLSRLP.js";
|
|
24
23
|
import "./chunk-4TR3HZFT.js";
|
|
25
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-WDRMZKVB.js";
|
|
26
25
|
import "./chunk-JT7R45JB.js";
|
|
27
26
|
import "./chunk-KJBYIIJU.js";
|
|
28
27
|
import "./chunk-77WWLBCI.js";
|
|
29
28
|
import {
|
|
30
29
|
globalAgentCwd
|
|
31
30
|
} from "./chunk-WFUDY6PC.js";
|
|
32
|
-
import "./chunk-
|
|
31
|
+
import "./chunk-UFHNSFAS.js";
|
|
33
32
|
export {
|
|
34
33
|
GLOBAL_WORKSPACE_ID,
|
|
35
34
|
createGlobalChat,
|
|
@@ -17,20 +17,19 @@ import {
|
|
|
17
17
|
orchestratorSessionPoisonedByBuiltins,
|
|
18
18
|
slackCoordinatorSourceRef,
|
|
19
19
|
takenTeamSlugsForOrchestration
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-6YTI2HBG.js";
|
|
21
|
+
import "./chunk-DP4TKAMZ.js";
|
|
22
22
|
import "./chunk-D6JWYJ4P.js";
|
|
23
23
|
import "./chunk-CJFBSQIB.js";
|
|
24
|
-
import "./chunk-64QSHOKV.js";
|
|
25
24
|
import "./chunk-SYFVUF2C.js";
|
|
26
25
|
import "./chunk-FNQNJOHY.js";
|
|
27
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-AH6WIBLY.js";
|
|
28
27
|
import "./chunk-NSTQ6QKD.js";
|
|
29
28
|
import "./chunk-KGZBYWZ3.js";
|
|
30
29
|
import {
|
|
31
30
|
globalAgentCwd
|
|
32
31
|
} from "./chunk-EQNRWDLN.js";
|
|
33
|
-
import "./chunk-
|
|
32
|
+
import "./chunk-FJZWM2ON.js";
|
|
34
33
|
export {
|
|
35
34
|
GLOBAL_WORKSPACE_ID,
|
|
36
35
|
createGlobalChat,
|
package/dist/index.cjs
CHANGED
|
@@ -975,7 +975,7 @@ function sanitizeGitBranchPrefix(raw) {
|
|
|
975
975
|
return slug || null;
|
|
976
976
|
}
|
|
977
977
|
function resolveGitBranchPrefix(opts) {
|
|
978
|
-
return sanitizeGitBranchPrefix(opts.setting)
|
|
978
|
+
return sanitizeGitBranchPrefix(opts.setting);
|
|
979
979
|
}
|
|
980
980
|
function examplePrefixedBranch(prefix, ticket) {
|
|
981
981
|
const head = sanitizeGitBranchPrefix(prefix);
|
|
@@ -4503,18 +4503,6 @@ var init_teams = __esm({
|
|
|
4503
4503
|
});
|
|
4504
4504
|
|
|
4505
4505
|
// src/git/worktree-labels.ts
|
|
4506
|
-
var worktree_labels_exports = {};
|
|
4507
|
-
__export(worktree_labels_exports, {
|
|
4508
|
-
branchDisplayLabel: () => branchDisplayLabel,
|
|
4509
|
-
isPlaceholderBranch: () => isPlaceholderBranch,
|
|
4510
|
-
normalizeWorktreePath: () => normalizeWorktreePath,
|
|
4511
|
-
threadDisplayLabel: () => threadDisplayLabel,
|
|
4512
|
-
ticketSlugForBranch: () => ticketSlugForBranch,
|
|
4513
|
-
worktreeDisplayLabel: () => worktreeDisplayLabel,
|
|
4514
|
-
worktreeDisplayLabelForGroup: () => worktreeDisplayLabelForGroup,
|
|
4515
|
-
worktreeNameFromPath: () => worktreeNameFromPath,
|
|
4516
|
-
worktreeSlugForTicket: () => worktreeSlugForTicket
|
|
4517
|
-
});
|
|
4518
4506
|
function normalizeWorktreePath(worktreePath) {
|
|
4519
4507
|
const trimmed = (worktreePath ?? "").replace(/\/+$/, "") || "/";
|
|
4520
4508
|
const absolute = trimmed.startsWith("/");
|
|
@@ -20785,64 +20773,6 @@ var init_sync_branch = __esm({
|
|
|
20785
20773
|
}
|
|
20786
20774
|
});
|
|
20787
20775
|
|
|
20788
|
-
// src/integrations/github.ts
|
|
20789
|
-
var github_exports = {};
|
|
20790
|
-
__export(github_exports, {
|
|
20791
|
-
getGitHubStatus: () => getGitHubStatus,
|
|
20792
|
-
refreshGitHubAuth: () => refreshGitHubAuth
|
|
20793
|
-
});
|
|
20794
|
-
async function getGitHubStatus() {
|
|
20795
|
-
const which = await run("which", ["gh"], { reject: false });
|
|
20796
|
-
if (which.exitCode !== 0 || !which.stdout.trim()) {
|
|
20797
|
-
return {
|
|
20798
|
-
connected: false,
|
|
20799
|
-
login: null,
|
|
20800
|
-
hosts: [],
|
|
20801
|
-
reason: "gh CLI not found on PATH"
|
|
20802
|
-
};
|
|
20803
|
-
}
|
|
20804
|
-
const loginResult = await run(
|
|
20805
|
-
"gh",
|
|
20806
|
-
["api", "user", "--jq", ".login"],
|
|
20807
|
-
{ reject: false }
|
|
20808
|
-
);
|
|
20809
|
-
if (loginResult.exitCode === 0 && loginResult.stdout.trim()) {
|
|
20810
|
-
return {
|
|
20811
|
-
connected: true,
|
|
20812
|
-
login: loginResult.stdout.trim(),
|
|
20813
|
-
hosts: ["github.com"],
|
|
20814
|
-
reason: null
|
|
20815
|
-
};
|
|
20816
|
-
}
|
|
20817
|
-
const status = await run("gh", ["auth", "status"], { reject: false });
|
|
20818
|
-
const text7 = `${status.stdout}
|
|
20819
|
-
${status.stderr}`;
|
|
20820
|
-
const loginMatch = text7.match(/Logged in to ([^\s]+) account (\S+)/i) ?? text7.match(/Logged in to ([^\s]+) as (\S+)/i);
|
|
20821
|
-
if (loginMatch) {
|
|
20822
|
-
return {
|
|
20823
|
-
connected: true,
|
|
20824
|
-
login: loginMatch[2].replace(/['"]/g, ""),
|
|
20825
|
-
hosts: [loginMatch[1]],
|
|
20826
|
-
reason: null
|
|
20827
|
-
};
|
|
20828
|
-
}
|
|
20829
|
-
return {
|
|
20830
|
-
connected: false,
|
|
20831
|
-
login: null,
|
|
20832
|
-
hosts: [],
|
|
20833
|
-
reason: status.stderr.trim() || status.stdout.trim() || "Not logged in to GitHub (run: gh auth login)"
|
|
20834
|
-
};
|
|
20835
|
-
}
|
|
20836
|
-
async function refreshGitHubAuth() {
|
|
20837
|
-
return getGitHubStatus();
|
|
20838
|
-
}
|
|
20839
|
-
var init_github = __esm({
|
|
20840
|
-
"src/integrations/github.ts"() {
|
|
20841
|
-
"use strict";
|
|
20842
|
-
init_run();
|
|
20843
|
-
}
|
|
20844
|
-
});
|
|
20845
|
-
|
|
20846
20776
|
// src/agents/cursor-store.ts
|
|
20847
20777
|
function cursorSdkStoreDir(threadId) {
|
|
20848
20778
|
const root = (0, import_node_path49.join)(appDataDir(), CURSOR_SDK_STORE_DIR);
|
|
@@ -21907,21 +21837,11 @@ var init_orchestrator = __esm({
|
|
|
21907
21837
|
const settings = loadWorkspaceSettings(fresh.worktreePath, fresh.repoPath);
|
|
21908
21838
|
let renameBranchDirective = null;
|
|
21909
21839
|
if (!isBrightsy && !isOrchestration && autoRenameBranchEnabled2()) {
|
|
21910
|
-
const { isPlaceholderBranch: isPlaceholderBranch2 } = await Promise.resolve().then(() => (init_worktree_labels(), worktree_labels_exports));
|
|
21911
|
-
let githubLogin = null;
|
|
21912
|
-
if (isPlaceholderBranch2(fresh.branchName, fresh.worktreePath) && !gitBranchPrefixSetting2()) {
|
|
21913
|
-
try {
|
|
21914
|
-
const { getGitHubStatus: getGitHubStatus2 } = await Promise.resolve().then(() => (init_github(), github_exports));
|
|
21915
|
-
githubLogin = (await getGitHubStatus2()).login;
|
|
21916
|
-
} catch {
|
|
21917
|
-
}
|
|
21918
|
-
}
|
|
21919
21840
|
const { resolveGitBranchPrefix: resolveGitBranchPrefix2 } = await Promise.resolve().then(() => (init_branch_prefix(), branch_prefix_exports));
|
|
21920
21841
|
renameBranchDirective = formatRenameBranchDirective(fresh, {
|
|
21921
21842
|
customPrompt: settings?.prompts?.renameBranch,
|
|
21922
21843
|
branchPrefix: resolveGitBranchPrefix2({
|
|
21923
|
-
setting: gitBranchPrefixSetting2()
|
|
21924
|
-
githubLogin
|
|
21844
|
+
setting: gitBranchPrefixSetting2()
|
|
21925
21845
|
})
|
|
21926
21846
|
});
|
|
21927
21847
|
}
|
|
@@ -24162,7 +24082,54 @@ init_worktree();
|
|
|
24162
24082
|
init_stack();
|
|
24163
24083
|
init_branch_prefix();
|
|
24164
24084
|
init_agent_git_actions();
|
|
24165
|
-
|
|
24085
|
+
|
|
24086
|
+
// src/integrations/github.ts
|
|
24087
|
+
init_run();
|
|
24088
|
+
async function getGitHubStatus() {
|
|
24089
|
+
const which = await run("which", ["gh"], { reject: false });
|
|
24090
|
+
if (which.exitCode !== 0 || !which.stdout.trim()) {
|
|
24091
|
+
return {
|
|
24092
|
+
connected: false,
|
|
24093
|
+
login: null,
|
|
24094
|
+
hosts: [],
|
|
24095
|
+
reason: "gh CLI not found on PATH"
|
|
24096
|
+
};
|
|
24097
|
+
}
|
|
24098
|
+
const loginResult = await run(
|
|
24099
|
+
"gh",
|
|
24100
|
+
["api", "user", "--jq", ".login"],
|
|
24101
|
+
{ reject: false }
|
|
24102
|
+
);
|
|
24103
|
+
if (loginResult.exitCode === 0 && loginResult.stdout.trim()) {
|
|
24104
|
+
return {
|
|
24105
|
+
connected: true,
|
|
24106
|
+
login: loginResult.stdout.trim(),
|
|
24107
|
+
hosts: ["github.com"],
|
|
24108
|
+
reason: null
|
|
24109
|
+
};
|
|
24110
|
+
}
|
|
24111
|
+
const status = await run("gh", ["auth", "status"], { reject: false });
|
|
24112
|
+
const text7 = `${status.stdout}
|
|
24113
|
+
${status.stderr}`;
|
|
24114
|
+
const loginMatch = text7.match(/Logged in to ([^\s]+) account (\S+)/i) ?? text7.match(/Logged in to ([^\s]+) as (\S+)/i);
|
|
24115
|
+
if (loginMatch) {
|
|
24116
|
+
return {
|
|
24117
|
+
connected: true,
|
|
24118
|
+
login: loginMatch[2].replace(/['"]/g, ""),
|
|
24119
|
+
hosts: [loginMatch[1]],
|
|
24120
|
+
reason: null
|
|
24121
|
+
};
|
|
24122
|
+
}
|
|
24123
|
+
return {
|
|
24124
|
+
connected: false,
|
|
24125
|
+
login: null,
|
|
24126
|
+
hosts: [],
|
|
24127
|
+
reason: status.stderr.trim() || status.stdout.trim() || "Not logged in to GitHub (run: gh auth login)"
|
|
24128
|
+
};
|
|
24129
|
+
}
|
|
24130
|
+
async function refreshGitHubAuth() {
|
|
24131
|
+
return getGitHubStatus();
|
|
24132
|
+
}
|
|
24166
24133
|
|
|
24167
24134
|
// src/integrations/linear.ts
|
|
24168
24135
|
init_fetch();
|
|
@@ -28440,7 +28407,6 @@ async function getHomeBoardInputs(workspaces, opts) {
|
|
|
28440
28407
|
|
|
28441
28408
|
// src/mcp/server.ts
|
|
28442
28409
|
init_home_board();
|
|
28443
|
-
init_github();
|
|
28444
28410
|
|
|
28445
28411
|
// src/mcp/create-thread-agent.ts
|
|
28446
28412
|
init_cursor();
|
package/dist/index.d.cts
CHANGED
|
@@ -975,7 +975,7 @@ interface AdvancedAppSettings {
|
|
|
975
975
|
autoRenameBranch?: boolean;
|
|
976
976
|
/**
|
|
977
977
|
* First segment of renamed task branches (`matt/bb-1234-eng-fix-thing`).
|
|
978
|
-
* Empty / omitted →
|
|
978
|
+
* Empty / omitted → no prefix.
|
|
979
979
|
*/
|
|
980
980
|
branchPrefix?: string;
|
|
981
981
|
/**
|
|
@@ -1307,7 +1307,7 @@ declare function brightsyCloudConnectAgent(settings?: AppSettings): BrightsyClou
|
|
|
1307
1307
|
declare function updateAdvancedSettings(patch: Partial<AdvancedAppSettings>): AppSettings;
|
|
1308
1308
|
/** Conductor default: on. */
|
|
1309
1309
|
declare function autoRenameBranchEnabled(settings?: AppSettings): boolean;
|
|
1310
|
-
/** Saved account prefix, or null
|
|
1310
|
+
/** Saved account prefix, or null when empty (no default). */
|
|
1311
1311
|
declare function gitBranchPrefixSetting(settings?: AppSettings): string | null;
|
|
1312
1312
|
declare function autoRunAfterSetupEnabled(settings?: AppSettings): boolean;
|
|
1313
1313
|
declare function caffeinateWhileRunningEnabled(settings?: AppSettings): boolean;
|
|
@@ -2089,13 +2089,12 @@ declare function checkoutPrStackLayer(cwd: string, target: string | number): Pro
|
|
|
2089
2089
|
|
|
2090
2090
|
/**
|
|
2091
2091
|
* Account git branch prefix (Settings → Git).
|
|
2092
|
-
* Empty
|
|
2092
|
+
* Empty / omitted means no prefix — do not invent a default.
|
|
2093
2093
|
*/
|
|
2094
2094
|
declare function sanitizeGitBranchPrefix(raw: string | null | undefined): string | null;
|
|
2095
|
-
/**
|
|
2095
|
+
/** Saved setting only. Empty does not fall back to the GitHub username. */
|
|
2096
2096
|
declare function resolveGitBranchPrefix(opts: {
|
|
2097
2097
|
setting?: string | null;
|
|
2098
|
-
githubLogin?: string | null;
|
|
2099
2098
|
}): string | null;
|
|
2100
2099
|
/** Example branch for the rename-placeholder directive. */
|
|
2101
2100
|
declare function examplePrefixedBranch(prefix: string | null | undefined, ticket?: string | null): string;
|