@sideboard-ai/core 0.1.316 → 0.1.318
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-NZ2ABWAL.js → abletime-KWOBUL46.js} +4 -4
- package/dist/{abletime-oauth-CBFFBINA.js → abletime-oauth-IUIAGLFJ.js} +3 -3
- package/dist/{abletime-rest-NSOP72AI.js → abletime-rest-RWN4EPY3.js} +3 -3
- package/dist/{agents-Y3M3EKLY.js → agents-2AR7I6B6.js} +6 -6
- package/dist/{agents-5XJ7EHGU.js → agents-KABJUDPI.js} +4 -4
- package/dist/{app-settings-RQAFJZCD.js → app-settings-V6YPYY57.js} +1 -1
- package/dist/{chunk-4ISF5XUA.js → chunk-23ZUL2EX.js} +25 -25
- package/dist/{chunk-VVV7EI6T.js → chunk-2HOZMSKQ.js} +2 -2
- package/dist/{chunk-ELBK34TY.js → chunk-7ADEYEMH.js} +5 -5
- package/dist/{chunk-5CTG5W7S.js → chunk-A46CIARU.js} +1 -1
- package/dist/{chunk-PN32Z4JL.js → chunk-A6C67DY5.js} +2 -2
- package/dist/{chunk-NXNNYY3Q.js → chunk-AESO2KJS.js} +2 -2
- package/dist/{chunk-S3U4HR5F.js → chunk-AZ4GEEGL.js} +2 -2
- package/dist/{chunk-7BLIY2DD.js → chunk-BXTISNKW.js} +15 -15
- package/dist/{chunk-U7PNCYNX.js → chunk-E52SQENB.js} +1 -0
- package/dist/{chunk-OLYNM52B.js → chunk-FDXHNROD.js} +2 -2
- package/dist/{chunk-FVTR54LY.js → chunk-GH7UMULC.js} +4 -4
- package/dist/{chunk-U35AHE2P.js → chunk-HOLB6ZFZ.js} +33 -2
- package/dist/{chunk-NKVNHBDB.js → chunk-IAPO7ZFG.js} +4 -4
- package/dist/{chunk-DNWO6PQJ.js → chunk-NRSC4N5X.js} +5 -34
- package/dist/{chunk-ATSZXRFQ.js → chunk-ST2UQBJT.js} +6 -35
- package/dist/{chunk-BPBDGJ43.js → chunk-TUJFCJJU.js} +2 -2
- package/dist/{chunk-GXSV3X3L.js → chunk-W5QZWAUB.js} +3 -3
- package/dist/{chunk-CCUGIVYN.js → chunk-XOZNEAWF.js} +3 -3
- package/dist/{chunk-GFM63DTU.js → chunk-YALFZKSC.js} +3 -3
- package/dist/{chunk-CHUPIJP7.js → chunk-YEIHCSZS.js} +63 -2
- package/dist/{conductor-CFLBKVHJ.js → conductor-MG2RAQNT.js} +5 -5
- package/dist/{conductor-NZ4V5CJX.js → conductor-NIUBJLTS.js} +4 -4
- package/dist/{coordinator-prompt-HUZC4DZ2.js → coordinator-prompt-3CT3D5UM.js} +3 -3
- package/dist/{coordinator-prompt-SPOYUZG5.js → coordinator-prompt-X74F3JIC.js} +4 -4
- package/dist/{global-workspace-SK4JQBPN.js → global-workspace-BUWMRNW5.js} +3 -3
- package/dist/{global-workspace-3NNDDTFD.js → global-workspace-FTNJEML3.js} +4 -4
- package/dist/index.cjs +96 -42
- package/dist/index.d.cts +2 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +50 -27
- package/dist/mcp/run-stdio.cjs +36 -34
- package/dist/mcp/run-stdio.js +6 -6
- package/dist/{optional-cli-LMSRZNH4.js → optional-cli-6GGESWGE.js} +4 -4
- package/dist/{orchestrator-KXEPWTG5.js → orchestrator-2SXK4U65.js} +9 -9
- package/dist/{orchestrator-7342RGRU.js → orchestrator-N54V3B76.js} +6 -6
- package/dist/{thread-store-5OF6M6VZ.js → thread-store-7BBA63KV.js} +1 -1
- package/dist/{thread-store-GOVVXQV2.js → thread-store-PLNIWFZ4.js} +1 -1
- package/dist/{workspaces-EYNZDL45.js → workspaces-2V5UYPYC.js} +3 -3
- package/dist/{workspaces-52L6NZ3P.js → workspaces-MGKEAYNM.js} +4 -4
- package/dist/{worktree-BP5ICYQ2.js → worktree-THAXW5U7.js} +3 -3
- package/dist/{worktree-UCOSAI7J.js → worktree-XJKLDYOL.js} +2 -2
- package/package.json +1 -1
|
@@ -16,12 +16,12 @@ import {
|
|
|
16
16
|
toAbleTimeIssueInfo,
|
|
17
17
|
updateAbleTimeTask,
|
|
18
18
|
verifyAbleTimeConnection
|
|
19
|
-
} from "./chunk-
|
|
20
|
-
import "./chunk-
|
|
21
|
-
import "./chunk-
|
|
19
|
+
} from "./chunk-W5QZWAUB.js";
|
|
20
|
+
import "./chunk-2HOZMSKQ.js";
|
|
21
|
+
import "./chunk-7ADEYEMH.js";
|
|
22
22
|
import "./chunk-JAT3JFOS.js";
|
|
23
23
|
import "./chunk-6K64FJDD.js";
|
|
24
|
-
import "./chunk-
|
|
24
|
+
import "./chunk-E52SQENB.js";
|
|
25
25
|
import "./chunk-77WWLBCI.js";
|
|
26
26
|
import "./chunk-4TR3HZFT.js";
|
|
27
27
|
import "./chunk-WDRMZKVB.js";
|
|
@@ -20,10 +20,10 @@ import {
|
|
|
20
20
|
parseAbleTimeOAuthCallbackUrl,
|
|
21
21
|
resolveAbleTimeOAuthHost,
|
|
22
22
|
startAbleTimeOAuth
|
|
23
|
-
} from "./chunk-
|
|
24
|
-
import "./chunk-
|
|
23
|
+
} from "./chunk-XOZNEAWF.js";
|
|
24
|
+
import "./chunk-7ADEYEMH.js";
|
|
25
25
|
import "./chunk-JAT3JFOS.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-E52SQENB.js";
|
|
27
27
|
import "./chunk-77WWLBCI.js";
|
|
28
28
|
import "./chunk-4TR3HZFT.js";
|
|
29
29
|
import "./chunk-WDRMZKVB.js";
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
callAbleTimeRestTool,
|
|
6
6
|
looksLikeAbleTimeUlid,
|
|
7
7
|
textFromAbleTimeDoc
|
|
8
|
-
} from "./chunk-
|
|
9
|
-
import "./chunk-
|
|
8
|
+
} from "./chunk-2HOZMSKQ.js";
|
|
9
|
+
import "./chunk-7ADEYEMH.js";
|
|
10
10
|
import "./chunk-JAT3JFOS.js";
|
|
11
|
-
import "./chunk-
|
|
11
|
+
import "./chunk-E52SQENB.js";
|
|
12
12
|
import "./chunk-77WWLBCI.js";
|
|
13
13
|
import "./chunk-4TR3HZFT.js";
|
|
14
14
|
import "./chunk-WDRMZKVB.js";
|
|
@@ -37,7 +37,7 @@ import {
|
|
|
37
37
|
planModeTurnInstruction,
|
|
38
38
|
resolveCursorModelId,
|
|
39
39
|
resolveQuotaFallbackAgent
|
|
40
|
-
} from "./chunk-
|
|
40
|
+
} from "./chunk-IAPO7ZFG.js";
|
|
41
41
|
import "./chunk-HH3VVTEC.js";
|
|
42
42
|
import "./chunk-7Q327QF2.js";
|
|
43
43
|
import {
|
|
@@ -51,10 +51,10 @@ import {
|
|
|
51
51
|
prepareTerminalCommand,
|
|
52
52
|
resolveLoginCommand,
|
|
53
53
|
whichOnPath
|
|
54
|
-
} from "./chunk-
|
|
55
|
-
import "./chunk-
|
|
56
|
-
import "./chunk-
|
|
57
|
-
import "./chunk-
|
|
54
|
+
} from "./chunk-AESO2KJS.js";
|
|
55
|
+
import "./chunk-YALFZKSC.js";
|
|
56
|
+
import "./chunk-TUJFCJJU.js";
|
|
57
|
+
import "./chunk-YEIHCSZS.js";
|
|
58
58
|
import "./chunk-2P4XKWV2.js";
|
|
59
59
|
import "./chunk-RSA47QYR.js";
|
|
60
60
|
import "./chunk-JAT3JFOS.js";
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
assertOrchestratorCapableAgent,
|
|
89
89
|
coerceOrchestratorAgent,
|
|
90
90
|
isOrchestratorCapableAgent
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-E52SQENB.js";
|
|
92
92
|
import "./chunk-77WWLBCI.js";
|
|
93
93
|
import "./chunk-4TR3HZFT.js";
|
|
94
94
|
import "./chunk-WDRMZKVB.js";
|
|
@@ -46,7 +46,7 @@ import {
|
|
|
46
46
|
resolveCursorSdkRoot,
|
|
47
47
|
resolveQuotaFallbackAgent,
|
|
48
48
|
turnCostUsdFromCursorUsage
|
|
49
|
-
} from "./chunk-
|
|
49
|
+
} from "./chunk-GH7UMULC.js";
|
|
50
50
|
import {
|
|
51
51
|
getAgentSetupInfo,
|
|
52
52
|
installAgent,
|
|
@@ -63,8 +63,8 @@ import "./chunk-V5BTGQ6M.js";
|
|
|
63
63
|
import "./chunk-E63AM3PW.js";
|
|
64
64
|
import "./chunk-2GPQZZLY.js";
|
|
65
65
|
import "./chunk-I5TESHDN.js";
|
|
66
|
-
import "./chunk-
|
|
67
|
-
import "./chunk-
|
|
66
|
+
import "./chunk-A6C67DY5.js";
|
|
67
|
+
import "./chunk-A46CIARU.js";
|
|
68
68
|
import "./chunk-N2WW62LF.js";
|
|
69
69
|
import "./chunk-DD67JWTN.js";
|
|
70
70
|
import {
|
|
@@ -88,7 +88,7 @@ import "./chunk-NSTQ6QKD.js";
|
|
|
88
88
|
import "./chunk-WWUABK6B.js";
|
|
89
89
|
import "./chunk-FJZWM2ON.js";
|
|
90
90
|
import "./chunk-J2LNLI4S.js";
|
|
91
|
-
import "./chunk-
|
|
91
|
+
import "./chunk-HOLB6ZFZ.js";
|
|
92
92
|
import "./chunk-WMZIANPV.js";
|
|
93
93
|
import "./chunk-KGZBYWZ3.js";
|
|
94
94
|
import "./chunk-WOU343SI.js";
|
|
@@ -107,7 +107,7 @@ import {
|
|
|
107
107
|
updateProjectProfileSettings,
|
|
108
108
|
usageOnLimit,
|
|
109
109
|
writeViewerContext
|
|
110
|
-
} from "./chunk-
|
|
110
|
+
} from "./chunk-E52SQENB.js";
|
|
111
111
|
import "./chunk-77WWLBCI.js";
|
|
112
112
|
import "./chunk-4TR3HZFT.js";
|
|
113
113
|
import "./chunk-WDRMZKVB.js";
|
|
@@ -14,9 +14,8 @@ import {
|
|
|
14
14
|
parseSessionQuotaResetAt,
|
|
15
15
|
planModeTurnInstruction,
|
|
16
16
|
resolveQuotaFallbackAgent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-IAPO7ZFG.js";
|
|
18
18
|
import {
|
|
19
|
-
REVIEW_TAB_TITLE,
|
|
20
19
|
applyWorktreePkgCacheEnv,
|
|
21
20
|
askBlockStillWaiting,
|
|
22
21
|
buildBrightsySessionSeed,
|
|
@@ -28,13 +27,10 @@ import {
|
|
|
28
27
|
extractPendingPlanQuestions,
|
|
29
28
|
forkChatTab,
|
|
30
29
|
forkMessageSlice,
|
|
31
|
-
formatReviewWriteGateDirective,
|
|
32
|
-
formatReviewWriteGateReminder,
|
|
33
30
|
getDefaultRunScript,
|
|
34
31
|
getRunMode,
|
|
35
32
|
isAskUserToolName,
|
|
36
33
|
isJobContinuePrompt,
|
|
37
|
-
isReviewWriteGatedThread,
|
|
38
34
|
isWorktreeRunProcessKey,
|
|
39
35
|
killDetachedRunTree,
|
|
40
36
|
killListenersOnPorts,
|
|
@@ -56,7 +52,7 @@ import {
|
|
|
56
52
|
worktreeDevProcessKey,
|
|
57
53
|
worktreeRunProcessKey,
|
|
58
54
|
worktreeSetupProcessKey
|
|
59
|
-
} from "./chunk-
|
|
55
|
+
} from "./chunk-ST2UQBJT.js";
|
|
60
56
|
import {
|
|
61
57
|
applyAgentEvent,
|
|
62
58
|
clipAgentEventForPaint,
|
|
@@ -78,7 +74,7 @@ import {
|
|
|
78
74
|
import {
|
|
79
75
|
formatOptionalServicesDirectiveForTurn,
|
|
80
76
|
formatOptionalServicesReminderForTurn
|
|
81
|
-
} from "./chunk-
|
|
77
|
+
} from "./chunk-FDXHNROD.js";
|
|
82
78
|
import {
|
|
83
79
|
SLACK_REPLY_FORMATTING,
|
|
84
80
|
addWorkspace,
|
|
@@ -103,7 +99,7 @@ import {
|
|
|
103
99
|
stageAbsolutePathsAsAttachments,
|
|
104
100
|
stageBuffersAsAttachments,
|
|
105
101
|
syncWorkspacesFromThreads
|
|
106
|
-
} from "./chunk-
|
|
102
|
+
} from "./chunk-YALFZKSC.js";
|
|
107
103
|
import {
|
|
108
104
|
addPrStackLayer,
|
|
109
105
|
allocateTeamSlug,
|
|
@@ -147,14 +143,18 @@ import {
|
|
|
147
143
|
resolveRepoRoot,
|
|
148
144
|
switchWorktreeBranch,
|
|
149
145
|
withRepoGitLock
|
|
150
|
-
} from "./chunk-
|
|
146
|
+
} from "./chunk-TUJFCJJU.js";
|
|
151
147
|
import {
|
|
148
|
+
REVIEW_TAB_TITLE,
|
|
152
149
|
agentNicknameFromWorktreePath,
|
|
153
150
|
appendMessage,
|
|
154
151
|
createEmptyThread,
|
|
155
152
|
deleteThreadRecord,
|
|
156
153
|
findThreadByRef,
|
|
154
|
+
formatReviewWriteGateDirective,
|
|
155
|
+
formatReviewWriteGateReminder,
|
|
157
156
|
isPlaceholderBranch,
|
|
157
|
+
isReviewWriteGatedThread,
|
|
158
158
|
isWorktreeIdentityTitle,
|
|
159
159
|
listThreads,
|
|
160
160
|
normalizeWorkspaceTags,
|
|
@@ -171,7 +171,7 @@ import {
|
|
|
171
171
|
worktreeNameFromPath,
|
|
172
172
|
worktreeSlugForTicket,
|
|
173
173
|
writeThread
|
|
174
|
-
} from "./chunk-
|
|
174
|
+
} from "./chunk-YEIHCSZS.js";
|
|
175
175
|
import {
|
|
176
176
|
mcpServerIdForPermission,
|
|
177
177
|
mcpServerPermissionUpdate
|
|
@@ -239,7 +239,7 @@ import {
|
|
|
239
239
|
usageOnLimit,
|
|
240
240
|
withTurnScopedCost,
|
|
241
241
|
writeViewerContext
|
|
242
|
-
} from "./chunk-
|
|
242
|
+
} from "./chunk-E52SQENB.js";
|
|
243
243
|
import {
|
|
244
244
|
examplePrefixedBranch,
|
|
245
245
|
sanitizeGitBranchPrefix
|
|
@@ -461,9 +461,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
461
461
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
462
462
|
);
|
|
463
463
|
}
|
|
464
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
464
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-FTNJEML3.js");
|
|
465
465
|
if (isGlobalThread2(thread)) {
|
|
466
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
466
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-X74F3JIC.js");
|
|
467
467
|
ensureGlobalCoordinatorCwd2(
|
|
468
468
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
469
469
|
);
|
|
@@ -2930,7 +2930,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
2930
2930
|
});
|
|
2931
2931
|
await requireAgent(resolved.agent);
|
|
2932
2932
|
if (input.cowboy) {
|
|
2933
|
-
const { cowboyModeEnabled } = await import("./app-settings-
|
|
2933
|
+
const { cowboyModeEnabled } = await import("./app-settings-V6YPYY57.js");
|
|
2934
2934
|
if (!cowboyModeEnabled()) {
|
|
2935
2935
|
throw new Error(
|
|
2936
2936
|
"Cowboy mode is off. Enable it in Settings \u2192 Advanced."
|
|
@@ -2989,7 +2989,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
2989
2989
|
let sourceIsFork = false;
|
|
2990
2990
|
if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
|
|
2991
2991
|
if (isAbleTimeConnected() && getIssueSource() === "abletime") {
|
|
2992
|
-
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-
|
|
2992
|
+
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-KWOBUL46.js");
|
|
2993
2993
|
const task = await ensureAbleTimeTask({
|
|
2994
2994
|
title: title?.trim() || "Untitled work",
|
|
2995
2995
|
description: input.prompt?.trim() || void 0
|
|
@@ -3100,7 +3100,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3100
3100
|
return readThread(thread.id) ?? thread;
|
|
3101
3101
|
}
|
|
3102
3102
|
async function listLinearIssues(agent, repoPath) {
|
|
3103
|
-
const { getAdapter: getAdapter2 } = await import("./agents-
|
|
3103
|
+
const { getAdapter: getAdapter2 } = await import("./agents-2AR7I6B6.js");
|
|
3104
3104
|
await requireAgent(agent, { requireLinear: true });
|
|
3105
3105
|
const adapter = getAdapter2(agent);
|
|
3106
3106
|
if (!adapter.listLinearIssues) {
|
|
@@ -3877,7 +3877,7 @@ async function adoptThread(input) {
|
|
|
3877
3877
|
messages: input.messages ?? []
|
|
3878
3878
|
});
|
|
3879
3879
|
writeThread(thread);
|
|
3880
|
-
const { addWorkspace: addWorkspace2 } = await import("./workspaces-
|
|
3880
|
+
const { addWorkspace: addWorkspace2 } = await import("./workspaces-MGKEAYNM.js");
|
|
3881
3881
|
await addWorkspace2(repoPath);
|
|
3882
3882
|
const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-RXZPTCNH.js");
|
|
3883
3883
|
await ensureWorktreeSideboardIgnored(input.worktreePath);
|
|
@@ -6815,7 +6815,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6815
6815
|
${prompt}`;
|
|
6816
6816
|
}
|
|
6817
6817
|
async function defaultDeps() {
|
|
6818
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6818
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-2SXK4U65.js");
|
|
6819
6819
|
const orch = getOrchestrator2();
|
|
6820
6820
|
return {
|
|
6821
6821
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -7133,7 +7133,7 @@ var Orchestrator = class {
|
|
|
7133
7133
|
orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
|
|
7134
7134
|
});
|
|
7135
7135
|
}
|
|
7136
|
-
const { autoCleanupOrphansEnabled } = await import("./app-settings-
|
|
7136
|
+
const { autoCleanupOrphansEnabled } = await import("./app-settings-V6YPYY57.js");
|
|
7137
7137
|
if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
|
|
7138
7138
|
await cleanupOrphanWorktrees({ repoPaths });
|
|
7139
7139
|
}
|
|
@@ -7527,7 +7527,7 @@ var Orchestrator = class {
|
|
|
7527
7527
|
}
|
|
7528
7528
|
await setup;
|
|
7529
7529
|
if (skipSetup) return;
|
|
7530
|
-
const { autoRunAfterSetupEnabled } = await import("./app-settings-
|
|
7530
|
+
const { autoRunAfterSetupEnabled } = await import("./app-settings-V6YPYY57.js");
|
|
7531
7531
|
if (autoRunAfterSetupEnabled()) {
|
|
7532
7532
|
try {
|
|
7533
7533
|
await this.startDev(threadId);
|
|
@@ -7921,7 +7921,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
7921
7921
|
}
|
|
7922
7922
|
const isBrightsy = fresh.agent === "brightsy";
|
|
7923
7923
|
const isOrchestration = isOrchestratorThread(fresh);
|
|
7924
|
-
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-
|
|
7924
|
+
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-V6YPYY57.js");
|
|
7925
7925
|
const gitAuthMode = getGithubGitAuthMode();
|
|
7926
7926
|
const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
|
|
7927
7927
|
githubSlug: await withTimeout(
|
|
@@ -9237,7 +9237,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
9237
9237
|
if (Object.keys(patch).length === 0) continue;
|
|
9238
9238
|
updateThread(t.id, patch);
|
|
9239
9239
|
}
|
|
9240
|
-
const { autoArchiveOnMergeEnabled } = await import("./app-settings-
|
|
9240
|
+
const { autoArchiveOnMergeEnabled } = await import("./app-settings-V6YPYY57.js");
|
|
9241
9241
|
const latest = this.requireThread(thread.id);
|
|
9242
9242
|
if (!shouldAutoArchiveOnPrMerge({
|
|
9243
9243
|
previousPrState: prevState || null,
|
|
@@ -9561,7 +9561,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
9561
9561
|
await runArchiveScript(thread.repoPath, thread.worktreePath);
|
|
9562
9562
|
} catch {
|
|
9563
9563
|
}
|
|
9564
|
-
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-
|
|
9564
|
+
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-V6YPYY57.js");
|
|
9565
9565
|
const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
|
|
9566
9566
|
await removeWorktree(thread.repoPath, thread.worktreePath, {
|
|
9567
9567
|
deleteBranch: deleteBranch ? thread.branchName : void 0
|
|
@@ -9697,7 +9697,7 @@ async function startOrchestration(opts) {
|
|
|
9697
9697
|
sourceRef: "default",
|
|
9698
9698
|
...createOpts
|
|
9699
9699
|
}).catch(async () => {
|
|
9700
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
9700
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-THAXW5U7.js");
|
|
9701
9701
|
const repo = await resolveRepoRoot2(repoPath);
|
|
9702
9702
|
const def = await resolveDefaultBranch2(repo);
|
|
9703
9703
|
return orch.createThread({
|
|
@@ -9707,7 +9707,7 @@ async function startOrchestration(opts) {
|
|
|
9707
9707
|
repoPath: repo
|
|
9708
9708
|
});
|
|
9709
9709
|
});
|
|
9710
|
-
const { updateThread: upd } = await import("./thread-store-
|
|
9710
|
+
const { updateThread: upd } = await import("./thread-store-7BBA63KV.js");
|
|
9711
9711
|
const updated = upd(thread.id, {
|
|
9712
9712
|
sourceType: "orchestration",
|
|
9713
9713
|
sourceRef: goal
|
|
@@ -4,14 +4,14 @@ import {
|
|
|
4
4
|
normalizeAbleTimeCredential,
|
|
5
5
|
normalizeAbleTimeHost,
|
|
6
6
|
rewriteAbleTimeError
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-7ADEYEMH.js";
|
|
8
8
|
import {
|
|
9
9
|
httpFetch
|
|
10
10
|
} from "./chunk-JAT3JFOS.js";
|
|
11
11
|
import {
|
|
12
12
|
getAbleTimeAccessToken,
|
|
13
13
|
getAbleTimeHost
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-E52SQENB.js";
|
|
15
15
|
|
|
16
16
|
// src/integrations/abletime-rest.ts
|
|
17
17
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
getAbleTimeHost,
|
|
6
6
|
isAbleTimeConnected
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E52SQENB.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/abletime-mcp.ts
|
|
10
10
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -153,7 +153,7 @@ function textsFromUnknown(value) {
|
|
|
153
153
|
return "";
|
|
154
154
|
}
|
|
155
155
|
async function abletimeMcpRequest(method, params, opts) {
|
|
156
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
156
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-IUIAGLFJ.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
157
157
|
if (!rawToken?.trim()) {
|
|
158
158
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
159
159
|
}
|
|
@@ -224,9 +224,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
224
224
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
225
225
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
226
226
|
}
|
|
227
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
227
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-IUIAGLFJ.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
228
228
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
229
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
229
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-RWN4EPY3.js");
|
|
230
230
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
231
231
|
}
|
|
232
232
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -242,7 +242,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
242
242
|
return await call();
|
|
243
243
|
}
|
|
244
244
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
245
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
245
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-RWN4EPY3.js");
|
|
246
246
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
247
247
|
}
|
|
248
248
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
ensureGhPreferOrigin,
|
|
6
6
|
resolveGithubRepoSlug,
|
|
7
7
|
resolveRepoRoot
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-A46CIARU.js";
|
|
9
9
|
import {
|
|
10
10
|
ATTACHMENTS_DIR,
|
|
11
11
|
attachmentsGitignoreBody
|
|
@@ -31,7 +31,7 @@ import {
|
|
|
31
31
|
teamSlugFromName,
|
|
32
32
|
updateThread,
|
|
33
33
|
writeThread
|
|
34
|
-
} from "./chunk-
|
|
34
|
+
} from "./chunk-HOLB6ZFZ.js";
|
|
35
35
|
import {
|
|
36
36
|
appDataDir,
|
|
37
37
|
globalAgentCwd,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
} from "./chunk-QVN2WOKJ.js";
|
|
8
8
|
import {
|
|
9
9
|
resolveAgentExecutable
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-E52SQENB.js";
|
|
11
11
|
|
|
12
12
|
// src/agents/install.ts
|
|
13
13
|
import { existsSync } from "fs";
|
|
@@ -265,7 +265,7 @@ async function loginAgent(agent) {
|
|
|
265
265
|
};
|
|
266
266
|
}
|
|
267
267
|
async function loginManagedAccount(accountId) {
|
|
268
|
-
const { loadAppSettings } = await import("./app-settings-
|
|
268
|
+
const { loadAppSettings } = await import("./app-settings-V6YPYY57.js");
|
|
269
269
|
const { loginEnvPrefix } = await import("./managed-accounts-JJTAKHMG.js");
|
|
270
270
|
const account = loadAppSettings().accounts.accounts.find((a) => a.id === accountId);
|
|
271
271
|
if (!account) {
|
|
@@ -2,11 +2,11 @@ import {
|
|
|
2
2
|
OPTIONAL_SERVICES,
|
|
3
3
|
isOptionalServiceId,
|
|
4
4
|
optionalServiceSpec
|
|
5
|
-
} from "./chunk-
|
|
5
|
+
} from "./chunk-FDXHNROD.js";
|
|
6
6
|
import {
|
|
7
7
|
installNpmGlobalPackage,
|
|
8
8
|
whichOnPath
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-AESO2KJS.js";
|
|
10
10
|
import {
|
|
11
11
|
enrichPathWithNpmGlobalBin
|
|
12
12
|
} from "./chunk-QVN2WOKJ.js";
|
|
@@ -27,9 +27,8 @@ import {
|
|
|
27
27
|
parseSessionQuotaResetAt,
|
|
28
28
|
planModeTurnInstruction,
|
|
29
29
|
resolveQuotaFallbackAgent
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-GH7UMULC.js";
|
|
31
31
|
import {
|
|
32
|
-
REVIEW_TAB_TITLE,
|
|
33
32
|
applyWorktreePkgCacheEnv,
|
|
34
33
|
askBlockStillWaiting,
|
|
35
34
|
buildBrightsySessionSeed,
|
|
@@ -41,13 +40,10 @@ import {
|
|
|
41
40
|
extractPendingPlanQuestions,
|
|
42
41
|
forkChatTab,
|
|
43
42
|
forkMessageSlice,
|
|
44
|
-
formatReviewWriteGateDirective,
|
|
45
|
-
formatReviewWriteGateReminder,
|
|
46
43
|
getDefaultRunScript,
|
|
47
44
|
getRunMode,
|
|
48
45
|
isAskUserToolName,
|
|
49
46
|
isJobContinuePrompt,
|
|
50
|
-
isReviewWriteGatedThread,
|
|
51
47
|
isWorktreeRunProcessKey,
|
|
52
48
|
killDetachedRunTree,
|
|
53
49
|
killListenersOnPorts,
|
|
@@ -69,7 +65,7 @@ import {
|
|
|
69
65
|
worktreeDevProcessKey,
|
|
70
66
|
worktreeRunProcessKey,
|
|
71
67
|
worktreeSetupProcessKey
|
|
72
|
-
} from "./chunk-
|
|
68
|
+
} from "./chunk-NRSC4N5X.js";
|
|
73
69
|
import {
|
|
74
70
|
applyAgentEvent,
|
|
75
71
|
clipAgentEventForPaint,
|
|
@@ -121,7 +117,7 @@ import {
|
|
|
121
117
|
stageAbsolutePathsAsAttachments,
|
|
122
118
|
stageBuffersAsAttachments,
|
|
123
119
|
syncWorkspacesFromThreads
|
|
124
|
-
} from "./chunk-
|
|
120
|
+
} from "./chunk-A6C67DY5.js";
|
|
125
121
|
import {
|
|
126
122
|
addPrStackLayer,
|
|
127
123
|
allocateTeamSlug,
|
|
@@ -163,7 +159,7 @@ import {
|
|
|
163
159
|
resolveRepoRoot,
|
|
164
160
|
switchWorktreeBranch,
|
|
165
161
|
withRepoGitLock
|
|
166
|
-
} from "./chunk-
|
|
162
|
+
} from "./chunk-A46CIARU.js";
|
|
167
163
|
import {
|
|
168
164
|
clearStaleIndexLocks,
|
|
169
165
|
enrichPathWithNpmGlobalBin,
|
|
@@ -220,12 +216,16 @@ import {
|
|
|
220
216
|
resolveAccountForThread
|
|
221
217
|
} from "./chunk-J2LNLI4S.js";
|
|
222
218
|
import {
|
|
219
|
+
REVIEW_TAB_TITLE,
|
|
223
220
|
agentNicknameFromWorktreePath,
|
|
224
221
|
appendMessage,
|
|
225
222
|
createEmptyThread,
|
|
226
223
|
deleteThreadRecord,
|
|
227
224
|
findThreadByRef,
|
|
225
|
+
formatReviewWriteGateDirective,
|
|
226
|
+
formatReviewWriteGateReminder,
|
|
228
227
|
isPlaceholderBranch,
|
|
228
|
+
isReviewWriteGatedThread,
|
|
229
229
|
isWorktreeIdentityTitle,
|
|
230
230
|
listThreads,
|
|
231
231
|
normalizeWorkspaceTags,
|
|
@@ -242,7 +242,7 @@ import {
|
|
|
242
242
|
worktreeNameFromPath,
|
|
243
243
|
worktreeSlugForTicket,
|
|
244
244
|
writeThread
|
|
245
|
-
} from "./chunk-
|
|
245
|
+
} from "./chunk-HOLB6ZFZ.js";
|
|
246
246
|
import {
|
|
247
247
|
annotateDevAccessRuns,
|
|
248
248
|
appDataDir,
|
|
@@ -507,9 +507,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
507
507
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
508
508
|
);
|
|
509
509
|
}
|
|
510
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
510
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-BUWMRNW5.js");
|
|
511
511
|
if (isGlobalThread2(thread)) {
|
|
512
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
512
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-3CT3D5UM.js");
|
|
513
513
|
ensureGlobalCoordinatorCwd2(
|
|
514
514
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
515
515
|
);
|
|
@@ -3564,7 +3564,7 @@ async function adoptThread(input) {
|
|
|
3564
3564
|
messages: input.messages ?? []
|
|
3565
3565
|
});
|
|
3566
3566
|
writeThread(thread);
|
|
3567
|
-
const { addWorkspace: addWorkspace2 } = await import("./workspaces-
|
|
3567
|
+
const { addWorkspace: addWorkspace2 } = await import("./workspaces-2V5UYPYC.js");
|
|
3568
3568
|
await addWorkspace2(repoPath);
|
|
3569
3569
|
const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-5N2KTYIT.js");
|
|
3570
3570
|
await ensureWorktreeSideboardIgnored(input.worktreePath);
|
|
@@ -6458,7 +6458,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6458
6458
|
${prompt}`;
|
|
6459
6459
|
}
|
|
6460
6460
|
async function defaultDeps() {
|
|
6461
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6461
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-N54V3B76.js");
|
|
6462
6462
|
const orch = getOrchestrator2();
|
|
6463
6463
|
return {
|
|
6464
6464
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -9340,7 +9340,7 @@ async function startOrchestration(opts) {
|
|
|
9340
9340
|
sourceRef: "default",
|
|
9341
9341
|
...createOpts
|
|
9342
9342
|
}).catch(async () => {
|
|
9343
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
9343
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-XJKLDYOL.js");
|
|
9344
9344
|
const repo = await resolveRepoRoot2(repoPath);
|
|
9345
9345
|
const def = await resolveDefaultBranch2(repo);
|
|
9346
9346
|
return orch.createThread({
|
|
@@ -9350,7 +9350,7 @@ async function startOrchestration(opts) {
|
|
|
9350
9350
|
repoPath: repo
|
|
9351
9351
|
});
|
|
9352
9352
|
});
|
|
9353
|
-
const { updateThread: upd } = await import("./thread-store-
|
|
9353
|
+
const { updateThread: upd } = await import("./thread-store-PLNIWFZ4.js");
|
|
9354
9354
|
const updated = upd(thread.id, {
|
|
9355
9355
|
sourceType: "orchestration",
|
|
9356
9356
|
sourceRef: goal
|
|
@@ -293,6 +293,7 @@ function parseRemoteClientMessage(raw) {
|
|
|
293
293
|
const msg = parsed;
|
|
294
294
|
if (msg.type === "ping") return { type: "ping" };
|
|
295
295
|
if (msg.type === "host_pair") return { type: "host_pair" };
|
|
296
|
+
if (msg.type === "pairing_done") return { type: "pairing_done" };
|
|
296
297
|
if (msg.type === "e2ee_fail") return { type: "e2ee_fail" };
|
|
297
298
|
if (msg.type === "stop") return { type: "stop" };
|
|
298
299
|
if (msg.type === "host_register") {
|
|
@@ -4,7 +4,7 @@ import {
|
|
|
4
4
|
import {
|
|
5
5
|
loadAppSettings,
|
|
6
6
|
saveAppSettings
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-E52SQENB.js";
|
|
8
8
|
|
|
9
9
|
// src/integrations/optional-services.ts
|
|
10
10
|
var OPTIONAL_SERVICE_IDS = ["vercel", "supabase", "posthog", "sentry"];
|
|
@@ -273,7 +273,7 @@ async function connectedCliPresence(integrations) {
|
|
|
273
273
|
const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
|
|
274
274
|
if (ids.length === 0) return void 0;
|
|
275
275
|
try {
|
|
276
|
-
const { optionalCliPresence } = await import("./optional-cli-
|
|
276
|
+
const { optionalCliPresence } = await import("./optional-cli-6GGESWGE.js");
|
|
277
277
|
return await optionalCliPresence(ids);
|
|
278
278
|
} catch {
|
|
279
279
|
return void 0;
|
|
@@ -24,13 +24,13 @@ import {
|
|
|
24
24
|
} from "./chunk-I5TESHDN.js";
|
|
25
25
|
import {
|
|
26
26
|
isOrchestratorThread
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-A6C67DY5.js";
|
|
28
28
|
import {
|
|
29
29
|
codexUnattendedGitConfigArgs,
|
|
30
30
|
mergeAgentGitAuthEnv,
|
|
31
31
|
resolveAgentGitAuthEnv,
|
|
32
32
|
resolveCodexGitWritableRoots
|
|
33
|
-
} from "./chunk-
|
|
33
|
+
} from "./chunk-A46CIARU.js";
|
|
34
34
|
import {
|
|
35
35
|
githubAgentAuthReady,
|
|
36
36
|
npmGlobalNodeModules,
|
|
@@ -57,7 +57,7 @@ import {
|
|
|
57
57
|
CLAUDE_POSTHOG_CONNECTOR_ALLOWED_TOOLS,
|
|
58
58
|
CLAUDE_PRINT_BG_WAIT_CEILING_MS,
|
|
59
59
|
mcpAllowToolsFromNames
|
|
60
|
-
} from "./chunk-
|
|
60
|
+
} from "./chunk-HOLB6ZFZ.js";
|
|
61
61
|
import {
|
|
62
62
|
appDataDir
|
|
63
63
|
} from "./chunk-WOU343SI.js";
|
|
@@ -2916,7 +2916,7 @@ var claudeAdapter = {
|
|
|
2916
2916
|
);
|
|
2917
2917
|
}
|
|
2918
2918
|
const mode = permissionMode(thread);
|
|
2919
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2919
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-BUWMRNW5.js");
|
|
2920
2920
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2921
2921
|
const rpc = worktreeAgentRpc(isOrchestrator);
|
|
2922
2922
|
const injectedServers = await buildInjectedMcpServers({
|