@sideboard-ai/core 0.1.198 → 0.1.199
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-JINF5KJV.js → abletime-3CSCNAXU.js} +2 -2
- package/dist/{abletime-HR6P4GJH.js → abletime-H74RNIKV.js} +2 -2
- package/dist/{agents-AQQKPD46.js → agents-AVH44CBS.js} +26 -4
- package/dist/{agents-5TZY6LLX.js → agents-BOYOK56K.js} +26 -4
- package/dist/{app-settings-J775CYOO.js → app-settings-FMTDH5RD.js} +3 -1
- package/dist/{app-settings-5KHVKJKO.js → app-settings-MMPLJHWF.js} +3 -1
- package/dist/{chunk-S5GLSRLP.js → chunk-2IQ6W47G.js} +10 -0
- package/dist/{chunk-HZTHWU6A.js → chunk-BLOKJY4U.js} +2 -2
- package/dist/{chunk-E37JHCO3.js → chunk-CA7PWMQ7.js} +1 -1
- package/dist/{chunk-DROELG52.js → chunk-CTABTALL.js} +19 -19
- package/dist/{chunk-SYXSSU7G.js → chunk-DU2ICKLA.js} +355 -4
- package/dist/{chunk-S4QCBBXS.js → chunk-DU4ID3DA.js} +1 -1
- package/dist/{chunk-AH6WIBLY.js → chunk-HQKGK4KO.js} +10 -0
- package/dist/{chunk-EA67VQM2.js → chunk-KI4YI72Y.js} +355 -4
- package/dist/{chunk-6YS5IKD2.js → chunk-PPVN3APP.js} +20 -20
- package/dist/{chunk-KTHRWHA3.js → chunk-PTAMHXBT.js} +1 -1
- package/dist/{chunk-DP4TKAMZ.js → chunk-QFABSE3Q.js} +1 -1
- package/dist/{chunk-6YTI2HBG.js → chunk-S4EEYOSU.js} +2 -2
- package/dist/{coordinator-prompt-IX66YUJ2.js → coordinator-prompt-LB3GA3U4.js} +3 -3
- package/dist/{coordinator-prompt-LYKS3YNG.js → coordinator-prompt-ROWPLVQ3.js} +3 -3
- package/dist/{global-workspace-SNJ2Z6SL.js → global-workspace-C5XKWCRH.js} +3 -3
- package/dist/{global-workspace-4QX6UEOY.js → global-workspace-V2A4YKZ6.js} +3 -3
- package/dist/index.cjs +660 -258
- package/dist/index.d.cts +78 -1
- package/dist/index.d.ts +78 -1
- package/dist/index.js +32 -8
- package/dist/mcp/run-stdio.cjs +289 -254
- package/dist/mcp/run-stdio.js +8 -8
- package/dist/{orchestrator-L2H42HPW.js → orchestrator-AJGDZEAS.js} +5 -5
- package/dist/{orchestrator-6ZNKCPNL.js → orchestrator-NCGYNVYN.js} +5 -5
- package/dist/{workspaces-URMUVGAQ.js → workspaces-GWEKIS3B.js} +3 -3
- package/dist/{workspaces-UTOYGBYB.js → workspaces-WIRJQ6HA.js} +3 -3
- package/dist/{worktree-RM6UWNGZ.js → worktree-QA4J75FI.js} +2 -2
- package/dist/{worktree-R43JOR4V.js → worktree-UI5WJC3A.js} +2 -2
- package/package.json +1 -1
|
@@ -15,9 +15,9 @@ import {
|
|
|
15
15
|
toAbleTimeIssueInfo,
|
|
16
16
|
updateAbleTimeTask,
|
|
17
17
|
verifyAbleTimeConnection
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-CA7PWMQ7.js";
|
|
19
19
|
import "./chunk-N7WZ6NIN.js";
|
|
20
|
-
import "./chunk-
|
|
20
|
+
import "./chunk-2IQ6W47G.js";
|
|
21
21
|
import "./chunk-4TR3HZFT.js";
|
|
22
22
|
import "./chunk-WDRMZKVB.js";
|
|
23
23
|
import "./chunk-JT7R45JB.js";
|
|
@@ -17,9 +17,9 @@ import {
|
|
|
17
17
|
toAbleTimeIssueInfo,
|
|
18
18
|
updateAbleTimeTask,
|
|
19
19
|
verifyAbleTimeConnection
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-PTAMHXBT.js";
|
|
21
21
|
import "./chunk-VKQGAWHY.js";
|
|
22
|
-
import "./chunk-
|
|
22
|
+
import "./chunk-HQKGK4KO.js";
|
|
23
23
|
import "./chunk-NSTQ6QKD.js";
|
|
24
24
|
import "./chunk-KGZBYWZ3.js";
|
|
25
25
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -4,12 +4,22 @@ import {
|
|
|
4
4
|
allAdapters,
|
|
5
5
|
brightsyAdapter,
|
|
6
6
|
claudeAdapter,
|
|
7
|
+
claudeUsageOverLimitWindows,
|
|
7
8
|
codexAdapter,
|
|
8
9
|
cursorAdapter,
|
|
9
10
|
decodeBrightsyTarget,
|
|
10
11
|
encodeBrightsyTarget,
|
|
12
|
+
formatClaudeExtraUsageDetail,
|
|
13
|
+
formatClaudeUsageCompact,
|
|
14
|
+
formatClaudeUsageFetchedAt,
|
|
15
|
+
formatClaudeUsageOverLimitConfirm,
|
|
16
|
+
formatClaudeUsageReset,
|
|
17
|
+
formatClaudeUsageResetClock,
|
|
18
|
+
formatClaudeUsageTooltip,
|
|
11
19
|
getAdapter,
|
|
12
20
|
getAgentSetupInfo,
|
|
21
|
+
getClaudePlanUsage,
|
|
22
|
+
hottestClaudeWindow,
|
|
13
23
|
installAgent,
|
|
14
24
|
installNpmGlobalPackage,
|
|
15
25
|
isCursorApiKeyConfigured,
|
|
@@ -25,6 +35,7 @@ import {
|
|
|
25
35
|
mcpStatusThinkingFromClaudeInit,
|
|
26
36
|
openInSystemTerminal,
|
|
27
37
|
opencodeAdapter,
|
|
38
|
+
parseClaudeUsagePayload,
|
|
28
39
|
parseSessionQuotaResetAt,
|
|
29
40
|
permissionMode,
|
|
30
41
|
prepareTerminalCommand,
|
|
@@ -32,9 +43,9 @@ import {
|
|
|
32
43
|
resolveLoginCommand,
|
|
33
44
|
resolveQuotaFallbackAgent,
|
|
34
45
|
whichOnPath
|
|
35
|
-
} from "./chunk-
|
|
36
|
-
import "./chunk-
|
|
37
|
-
import "./chunk-
|
|
46
|
+
} from "./chunk-KI4YI72Y.js";
|
|
47
|
+
import "./chunk-BLOKJY4U.js";
|
|
48
|
+
import "./chunk-DU4ID3DA.js";
|
|
38
49
|
import "./chunk-6K64FJDD.js";
|
|
39
50
|
import "./chunk-QQKDGPUI.js";
|
|
40
51
|
import "./chunk-SALM35KD.js";
|
|
@@ -51,7 +62,7 @@ import {
|
|
|
51
62
|
assertOrchestratorCapableAgent,
|
|
52
63
|
coerceOrchestratorAgent,
|
|
53
64
|
isOrchestratorCapableAgent
|
|
54
|
-
} from "./chunk-
|
|
65
|
+
} from "./chunk-2IQ6W47G.js";
|
|
55
66
|
import "./chunk-4TR3HZFT.js";
|
|
56
67
|
import "./chunk-WDRMZKVB.js";
|
|
57
68
|
import "./chunk-JT7R45JB.js";
|
|
@@ -75,6 +86,7 @@ export {
|
|
|
75
86
|
assertOrchestratorCapableAgent,
|
|
76
87
|
brightsyAdapter,
|
|
77
88
|
claudeAdapter,
|
|
89
|
+
claudeUsageOverLimitWindows,
|
|
78
90
|
codexAdapter,
|
|
79
91
|
coerceOrchestratorAgent,
|
|
80
92
|
conductorBundledBinDir,
|
|
@@ -84,8 +96,17 @@ export {
|
|
|
84
96
|
encodeBrightsyTarget,
|
|
85
97
|
enrichPathWithNpmGlobalBin,
|
|
86
98
|
ensureAgentPath,
|
|
99
|
+
formatClaudeExtraUsageDetail,
|
|
100
|
+
formatClaudeUsageCompact,
|
|
101
|
+
formatClaudeUsageFetchedAt,
|
|
102
|
+
formatClaudeUsageOverLimitConfirm,
|
|
103
|
+
formatClaudeUsageReset,
|
|
104
|
+
formatClaudeUsageResetClock,
|
|
105
|
+
formatClaudeUsageTooltip,
|
|
87
106
|
getAdapter,
|
|
88
107
|
getAgentSetupInfo,
|
|
108
|
+
getClaudePlanUsage,
|
|
109
|
+
hottestClaudeWindow,
|
|
89
110
|
installAgent,
|
|
90
111
|
installNpmGlobalPackage,
|
|
91
112
|
isConductorBundledCli,
|
|
@@ -103,6 +124,7 @@ export {
|
|
|
103
124
|
mcpStatusThinkingFromClaudeInit,
|
|
104
125
|
openInSystemTerminal,
|
|
105
126
|
opencodeAdapter,
|
|
127
|
+
parseClaudeUsagePayload,
|
|
106
128
|
parseCursorRunnerLine,
|
|
107
129
|
parseSessionQuotaResetAt,
|
|
108
130
|
permissionMode,
|
|
@@ -6,13 +6,23 @@ import {
|
|
|
6
6
|
allAdapters,
|
|
7
7
|
brightsyAdapter,
|
|
8
8
|
claudeAdapter,
|
|
9
|
+
claudeUsageOverLimitWindows,
|
|
9
10
|
codexAdapter,
|
|
10
11
|
cursorAdapter,
|
|
11
12
|
cursorSdkMessageToEvents,
|
|
12
13
|
decodeBrightsyTarget,
|
|
13
14
|
encodeBrightsyTarget,
|
|
15
|
+
formatClaudeExtraUsageDetail,
|
|
16
|
+
formatClaudeUsageCompact,
|
|
17
|
+
formatClaudeUsageFetchedAt,
|
|
18
|
+
formatClaudeUsageOverLimitConfirm,
|
|
19
|
+
formatClaudeUsageReset,
|
|
20
|
+
formatClaudeUsageResetClock,
|
|
21
|
+
formatClaudeUsageTooltip,
|
|
14
22
|
getAdapter,
|
|
15
23
|
getAgentSetupInfo,
|
|
24
|
+
getClaudePlanUsage,
|
|
25
|
+
hottestClaudeWindow,
|
|
16
26
|
installAgent,
|
|
17
27
|
installNpmGlobalPackage,
|
|
18
28
|
isCursorApiKeyConfigured,
|
|
@@ -28,6 +38,7 @@ import {
|
|
|
28
38
|
mcpStatusThinkingFromClaudeInit,
|
|
29
39
|
openInSystemTerminal,
|
|
30
40
|
opencodeAdapter,
|
|
41
|
+
parseClaudeUsagePayload,
|
|
31
42
|
parseCursorRunnerLine,
|
|
32
43
|
parseSessionQuotaResetAt,
|
|
33
44
|
permissionMode,
|
|
@@ -38,12 +49,12 @@ import {
|
|
|
38
49
|
resolveQuotaFallbackAgent,
|
|
39
50
|
turnCostUsdFromCursorUsage,
|
|
40
51
|
whichOnPath
|
|
41
|
-
} from "./chunk-
|
|
42
|
-
import "./chunk-
|
|
52
|
+
} from "./chunk-DU2ICKLA.js";
|
|
53
|
+
import "./chunk-S4EEYOSU.js";
|
|
43
54
|
import "./chunk-3OHR73VK.js";
|
|
44
55
|
import "./chunk-Y4MIXGPA.js";
|
|
45
56
|
import "./chunk-VKQGAWHY.js";
|
|
46
|
-
import "./chunk-
|
|
57
|
+
import "./chunk-QFABSE3Q.js";
|
|
47
58
|
import "./chunk-D6JWYJ4P.js";
|
|
48
59
|
import "./chunk-CJFBSQIB.js";
|
|
49
60
|
import "./chunk-SYFVUF2C.js";
|
|
@@ -61,7 +72,7 @@ import {
|
|
|
61
72
|
assertOrchestratorCapableAgent,
|
|
62
73
|
coerceOrchestratorAgent,
|
|
63
74
|
isOrchestratorCapableAgent
|
|
64
|
-
} from "./chunk-
|
|
75
|
+
} from "./chunk-HQKGK4KO.js";
|
|
65
76
|
import "./chunk-NSTQ6QKD.js";
|
|
66
77
|
import "./chunk-KGZBYWZ3.js";
|
|
67
78
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -74,6 +85,7 @@ export {
|
|
|
74
85
|
assertOrchestratorCapableAgent,
|
|
75
86
|
brightsyAdapter,
|
|
76
87
|
claudeAdapter,
|
|
88
|
+
claudeUsageOverLimitWindows,
|
|
77
89
|
codexAdapter,
|
|
78
90
|
coerceOrchestratorAgent,
|
|
79
91
|
conductorBundledBinDir,
|
|
@@ -83,8 +95,17 @@ export {
|
|
|
83
95
|
encodeBrightsyTarget,
|
|
84
96
|
enrichPathWithNpmGlobalBin,
|
|
85
97
|
ensureAgentPath,
|
|
98
|
+
formatClaudeExtraUsageDetail,
|
|
99
|
+
formatClaudeUsageCompact,
|
|
100
|
+
formatClaudeUsageFetchedAt,
|
|
101
|
+
formatClaudeUsageOverLimitConfirm,
|
|
102
|
+
formatClaudeUsageReset,
|
|
103
|
+
formatClaudeUsageResetClock,
|
|
104
|
+
formatClaudeUsageTooltip,
|
|
86
105
|
getAdapter,
|
|
87
106
|
getAgentSetupInfo,
|
|
107
|
+
getClaudePlanUsage,
|
|
108
|
+
hottestClaudeWindow,
|
|
88
109
|
installAgent,
|
|
89
110
|
installNpmGlobalPackage,
|
|
90
111
|
isConductorBundledCli,
|
|
@@ -102,6 +123,7 @@ export {
|
|
|
102
123
|
mcpStatusThinkingFromClaudeInit,
|
|
103
124
|
openInSystemTerminal,
|
|
104
125
|
opencodeAdapter,
|
|
126
|
+
parseClaudeUsagePayload,
|
|
105
127
|
parseCursorRunnerLine,
|
|
106
128
|
parseSessionQuotaResetAt,
|
|
107
129
|
permissionMode,
|
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
childEnvWithAppSettings,
|
|
23
23
|
claudeChromeEnabled,
|
|
24
24
|
claudeUserSettingsPath,
|
|
25
|
+
confirmClaudeUsageOverLimitEnabled,
|
|
25
26
|
cowboyModeEnabled,
|
|
26
27
|
deleteBranchOnPurgeEnabled,
|
|
27
28
|
disconnectAbleTimeConnection,
|
|
@@ -86,7 +87,7 @@ import {
|
|
|
86
87
|
updateOpencodeSettings,
|
|
87
88
|
updateProjectProfileSettings,
|
|
88
89
|
writeViewerContext
|
|
89
|
-
} from "./chunk-
|
|
90
|
+
} from "./chunk-HQKGK4KO.js";
|
|
90
91
|
import "./chunk-NSTQ6QKD.js";
|
|
91
92
|
import "./chunk-KGZBYWZ3.js";
|
|
92
93
|
import "./chunk-EQNRWDLN.js";
|
|
@@ -113,6 +114,7 @@ export {
|
|
|
113
114
|
childEnvWithAppSettings,
|
|
114
115
|
claudeChromeEnabled,
|
|
115
116
|
claudeUserSettingsPath,
|
|
117
|
+
confirmClaudeUsageOverLimitEnabled,
|
|
116
118
|
cowboyModeEnabled,
|
|
117
119
|
deleteBranchOnPurgeEnabled,
|
|
118
120
|
disconnectAbleTimeConnection,
|
|
@@ -20,6 +20,7 @@ import {
|
|
|
20
20
|
childEnvWithAppSettings,
|
|
21
21
|
claudeChromeEnabled,
|
|
22
22
|
claudeUserSettingsPath,
|
|
23
|
+
confirmClaudeUsageOverLimitEnabled,
|
|
23
24
|
cowboyModeEnabled,
|
|
24
25
|
deleteBranchOnPurgeEnabled,
|
|
25
26
|
disconnectAbleTimeConnection,
|
|
@@ -84,7 +85,7 @@ import {
|
|
|
84
85
|
updateOpencodeSettings,
|
|
85
86
|
updateProjectProfileSettings,
|
|
86
87
|
writeViewerContext
|
|
87
|
-
} from "./chunk-
|
|
88
|
+
} from "./chunk-2IQ6W47G.js";
|
|
88
89
|
import "./chunk-4TR3HZFT.js";
|
|
89
90
|
import "./chunk-WDRMZKVB.js";
|
|
90
91
|
import "./chunk-JT7R45JB.js";
|
|
@@ -112,6 +113,7 @@ export {
|
|
|
112
113
|
childEnvWithAppSettings,
|
|
113
114
|
claudeChromeEnabled,
|
|
114
115
|
claudeUserSettingsPath,
|
|
116
|
+
confirmClaudeUsageOverLimitEnabled,
|
|
115
117
|
cowboyModeEnabled,
|
|
116
118
|
deleteBranchOnPurgeEnabled,
|
|
117
119
|
disconnectAbleTimeConnection,
|
|
@@ -753,6 +753,9 @@ function normalizeAdvanced(raw) {
|
|
|
753
753
|
if (typeof source.showCost === "boolean") {
|
|
754
754
|
out.showCost = source.showCost;
|
|
755
755
|
}
|
|
756
|
+
if (typeof source.confirmClaudeUsageOverLimit === "boolean") {
|
|
757
|
+
out.confirmClaudeUsageOverLimit = source.confirmClaudeUsageOverLimit;
|
|
758
|
+
}
|
|
756
759
|
if (typeof source.autoArchiveOnMerge === "boolean") {
|
|
757
760
|
out.autoArchiveOnMerge = source.autoArchiveOnMerge;
|
|
758
761
|
}
|
|
@@ -1628,6 +1631,9 @@ function updateAdvancedSettings(patch) {
|
|
|
1628
1631
|
if (typeof patch.showCost === "boolean") {
|
|
1629
1632
|
advanced.showCost = patch.showCost;
|
|
1630
1633
|
}
|
|
1634
|
+
if (typeof patch.confirmClaudeUsageOverLimit === "boolean") {
|
|
1635
|
+
advanced.confirmClaudeUsageOverLimit = patch.confirmClaudeUsageOverLimit;
|
|
1636
|
+
}
|
|
1631
1637
|
if (typeof patch.autoArchiveOnMerge === "boolean") {
|
|
1632
1638
|
advanced.autoArchiveOnMerge = patch.autoArchiveOnMerge;
|
|
1633
1639
|
}
|
|
@@ -1690,6 +1696,9 @@ function cowboyModeEnabled(settings = loadAppSettings()) {
|
|
|
1690
1696
|
function showCostEnabled(settings = loadAppSettings()) {
|
|
1691
1697
|
return Boolean(settings.advanced.showCost);
|
|
1692
1698
|
}
|
|
1699
|
+
function confirmClaudeUsageOverLimitEnabled(settings = loadAppSettings()) {
|
|
1700
|
+
return Boolean(settings.advanced.confirmClaudeUsageOverLimit);
|
|
1701
|
+
}
|
|
1693
1702
|
function autoArchiveOnMergeEnabled(settings = loadAppSettings()) {
|
|
1694
1703
|
return Boolean(settings.advanced.autoArchiveOnMerge);
|
|
1695
1704
|
}
|
|
@@ -1888,6 +1897,7 @@ export {
|
|
|
1888
1897
|
deleteBranchOnPurgeEnabled,
|
|
1889
1898
|
cowboyModeEnabled,
|
|
1890
1899
|
showCostEnabled,
|
|
1900
|
+
confirmClaudeUsageOverLimitEnabled,
|
|
1891
1901
|
autoArchiveOnMergeEnabled,
|
|
1892
1902
|
autoCleanupOrphansEnabled,
|
|
1893
1903
|
orchestrationQuotaOnLimit,
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
resolveRepoRoot,
|
|
6
6
|
takenSlugsFromThread,
|
|
7
7
|
teamSlugFromName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-DU4ID3DA.js";
|
|
9
9
|
import {
|
|
10
10
|
ATTACHMENTS_DIR,
|
|
11
11
|
attachmentsGitignoreBody
|
|
@@ -22,7 +22,7 @@ import {
|
|
|
22
22
|
resolveThreadDefaults,
|
|
23
23
|
resolveViewerProfile,
|
|
24
24
|
resolveViewerProfileForRepo
|
|
25
|
-
} from "./chunk-
|
|
25
|
+
} from "./chunk-2IQ6W47G.js";
|
|
26
26
|
import {
|
|
27
27
|
createEmptyThread,
|
|
28
28
|
listThreads,
|
|
@@ -38,7 +38,7 @@ import {
|
|
|
38
38
|
summarizeTurnStderr,
|
|
39
39
|
toolDescription,
|
|
40
40
|
turnFailChatText
|
|
41
|
-
} from "./chunk-
|
|
41
|
+
} from "./chunk-DU2ICKLA.js";
|
|
42
42
|
import {
|
|
43
43
|
SLACK_REPLY_FORMATTING,
|
|
44
44
|
addWorkspace,
|
|
@@ -61,7 +61,7 @@ import {
|
|
|
61
61
|
stageAbsolutePathsAsAttachments,
|
|
62
62
|
stageBuffersAsAttachments,
|
|
63
63
|
syncWorkspacesFromThreads
|
|
64
|
-
} from "./chunk-
|
|
64
|
+
} from "./chunk-S4EEYOSU.js";
|
|
65
65
|
import {
|
|
66
66
|
extractPresentedPlan,
|
|
67
67
|
readPlanFile,
|
|
@@ -116,7 +116,7 @@ import {
|
|
|
116
116
|
worktreeDisplayLabelForGroup,
|
|
117
117
|
worktreeNameFromPath,
|
|
118
118
|
worktreeSlugForTicket
|
|
119
|
-
} from "./chunk-
|
|
119
|
+
} from "./chunk-QFABSE3Q.js";
|
|
120
120
|
import {
|
|
121
121
|
ATTACHMENTS_DIR,
|
|
122
122
|
DETACHED_JOBS_DIR,
|
|
@@ -170,7 +170,7 @@ import {
|
|
|
170
170
|
stripNestedElectronEnv,
|
|
171
171
|
updateAdvancedSettings,
|
|
172
172
|
writeSecureJson
|
|
173
|
-
} from "./chunk-
|
|
173
|
+
} from "./chunk-HQKGK4KO.js";
|
|
174
174
|
import {
|
|
175
175
|
writePrivateFile
|
|
176
176
|
} from "./chunk-NSTQ6QKD.js";
|
|
@@ -408,7 +408,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
408
408
|
await continueOnReply(threadId, prompt);
|
|
409
409
|
return;
|
|
410
410
|
}
|
|
411
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
411
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-AJGDZEAS.js");
|
|
412
412
|
await getOrchestrator2().send(threadId, prompt);
|
|
413
413
|
} catch {
|
|
414
414
|
}
|
|
@@ -801,9 +801,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
801
801
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
802
802
|
);
|
|
803
803
|
}
|
|
804
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
804
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-C5XKWCRH.js");
|
|
805
805
|
if (isGlobalThread2(thread)) {
|
|
806
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
806
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-ROWPLVQ3.js");
|
|
807
807
|
ensureGlobalCoordinatorCwd2(
|
|
808
808
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
809
809
|
);
|
|
@@ -3599,7 +3599,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3599
3599
|
});
|
|
3600
3600
|
await requireAgent(resolved.agent);
|
|
3601
3601
|
if (input.cowboy) {
|
|
3602
|
-
const { cowboyModeEnabled } = await import("./app-settings-
|
|
3602
|
+
const { cowboyModeEnabled } = await import("./app-settings-FMTDH5RD.js");
|
|
3603
3603
|
if (!cowboyModeEnabled()) {
|
|
3604
3604
|
throw new Error(
|
|
3605
3605
|
"Cowboy mode is off. Enable it in Settings \u2192 Advanced."
|
|
@@ -3657,7 +3657,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3657
3657
|
let sourceIsFork = false;
|
|
3658
3658
|
if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
|
|
3659
3659
|
if (isAbleTimeConnected() && getIssueSource() === "abletime") {
|
|
3660
|
-
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-
|
|
3660
|
+
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-H74RNIKV.js");
|
|
3661
3661
|
const task = await ensureAbleTimeTask({
|
|
3662
3662
|
title: title?.trim() || "Untitled work",
|
|
3663
3663
|
description: input.prompt?.trim() || void 0
|
|
@@ -4169,7 +4169,7 @@ async function adoptThread(input) {
|
|
|
4169
4169
|
messages: input.messages ?? []
|
|
4170
4170
|
});
|
|
4171
4171
|
writeThread(thread);
|
|
4172
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
4172
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-WIRJQ6HA.js");
|
|
4173
4173
|
await ensureWorkspace2(repoPath);
|
|
4174
4174
|
const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-N5X5I422.js");
|
|
4175
4175
|
await ensureWorktreeSideboardIgnored2(input.worktreePath);
|
|
@@ -6547,7 +6547,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6547
6547
|
${prompt}`;
|
|
6548
6548
|
}
|
|
6549
6549
|
async function defaultDeps() {
|
|
6550
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6550
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-AJGDZEAS.js");
|
|
6551
6551
|
const orch = getOrchestrator2();
|
|
6552
6552
|
return {
|
|
6553
6553
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -6822,7 +6822,7 @@ var Orchestrator = class {
|
|
|
6822
6822
|
orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
|
|
6823
6823
|
});
|
|
6824
6824
|
}
|
|
6825
|
-
const { autoCleanupOrphansEnabled } = await import("./app-settings-
|
|
6825
|
+
const { autoCleanupOrphansEnabled } = await import("./app-settings-FMTDH5RD.js");
|
|
6826
6826
|
if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
|
|
6827
6827
|
await cleanupOrphanWorktrees({ repoPaths });
|
|
6828
6828
|
}
|
|
@@ -7101,7 +7101,7 @@ var Orchestrator = class {
|
|
|
7101
7101
|
}
|
|
7102
7102
|
await setup;
|
|
7103
7103
|
if (skipSetup) return;
|
|
7104
|
-
const { autoRunAfterSetupEnabled } = await import("./app-settings-
|
|
7104
|
+
const { autoRunAfterSetupEnabled } = await import("./app-settings-FMTDH5RD.js");
|
|
7105
7105
|
if (autoRunAfterSetupEnabled()) {
|
|
7106
7106
|
try {
|
|
7107
7107
|
await this.startDev(threadId);
|
|
@@ -7425,7 +7425,7 @@ var Orchestrator = class {
|
|
|
7425
7425
|
}
|
|
7426
7426
|
const isBrightsy = fresh.agent === "brightsy";
|
|
7427
7427
|
const isOrchestration = isOrchestratorThread(fresh);
|
|
7428
|
-
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-
|
|
7428
|
+
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-FMTDH5RD.js");
|
|
7429
7429
|
const gitAuthMode = getGithubGitAuthMode();
|
|
7430
7430
|
const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
|
|
7431
7431
|
githubSlug: await resolveGithubRepoSlug(fresh.worktreePath).catch(
|
|
@@ -8410,7 +8410,7 @@ var Orchestrator = class {
|
|
|
8410
8410
|
updateThread(thread.id, { title: meta.title });
|
|
8411
8411
|
}
|
|
8412
8412
|
}
|
|
8413
|
-
const { autoArchiveOnMergeEnabled } = await import("./app-settings-
|
|
8413
|
+
const { autoArchiveOnMergeEnabled } = await import("./app-settings-FMTDH5RD.js");
|
|
8414
8414
|
const latest = this.requireThread(thread.id);
|
|
8415
8415
|
if (!shouldAutoArchiveOnPrMerge({
|
|
8416
8416
|
previousPrState: prevState || null,
|
|
@@ -8702,7 +8702,7 @@ var Orchestrator = class {
|
|
|
8702
8702
|
this.emit({ type: "status_changed", threadId: archived.id, status: "archived" });
|
|
8703
8703
|
if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
|
|
8704
8704
|
try {
|
|
8705
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
8705
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-WIRJQ6HA.js");
|
|
8706
8706
|
await ensureWorkspace2(thread.repoPath);
|
|
8707
8707
|
} catch {
|
|
8708
8708
|
}
|
|
@@ -8729,7 +8729,7 @@ var Orchestrator = class {
|
|
|
8729
8729
|
await runArchiveScript(thread.repoPath, thread.worktreePath);
|
|
8730
8730
|
} catch {
|
|
8731
8731
|
}
|
|
8732
|
-
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-
|
|
8732
|
+
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-FMTDH5RD.js");
|
|
8733
8733
|
const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
|
|
8734
8734
|
await removeWorktree(thread.repoPath, thread.worktreePath, {
|
|
8735
8735
|
deleteBranch: deleteBranch ? thread.branchName : void 0
|
|
@@ -8756,7 +8756,7 @@ var Orchestrator = class {
|
|
|
8756
8756
|
`Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
|
|
8757
8757
|
);
|
|
8758
8758
|
}
|
|
8759
|
-
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-
|
|
8759
|
+
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-UI5WJC3A.js");
|
|
8760
8760
|
const slug = thread.worktreePath.split("/").pop();
|
|
8761
8761
|
const dest = thread.worktreePath;
|
|
8762
8762
|
await withRepoGitLock(thread.repoPath, async () => {
|
|
@@ -8866,7 +8866,7 @@ async function startOrchestration(opts) {
|
|
|
8866
8866
|
sourceRef: "default",
|
|
8867
8867
|
...createOpts
|
|
8868
8868
|
}).catch(async () => {
|
|
8869
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
8869
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-UI5WJC3A.js");
|
|
8870
8870
|
const repo = await resolveRepoRoot2(repoPath);
|
|
8871
8871
|
const def = await resolveDefaultBranch2(repo);
|
|
8872
8872
|
return orch.createThread({
|