@sideboard-ai/core 0.1.341 → 0.1.343
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-MK4T5FZY.js → abletime-MSIMJKKQ.js} +4 -4
- package/dist/{abletime-AYYRRDT2.js → abletime-ZIYFR4SI.js} +4 -4
- package/dist/{abletime-oauth-NB34M4X4.js → abletime-oauth-2RUKRZYZ.js} +3 -3
- package/dist/{abletime-oauth-7TOEFRWH.js → abletime-oauth-IQZ3LOB2.js} +3 -3
- package/dist/{abletime-rest-IF7IMJGU.js → abletime-rest-7YAO5B74.js} +3 -3
- package/dist/{abletime-rest-7M3QXAXY.js → abletime-rest-UBLSGMSA.js} +3 -3
- package/dist/{agents-4WL4U5WD.js → agents-7DCNOMFP.js} +7 -7
- package/dist/{agents-FH5NVVCJ.js → agents-LNZ465IM.js} +7 -7
- package/dist/{app-settings-377375BJ.js → app-settings-FS7TM55D.js} +9 -1
- package/dist/{app-settings-YTOPIRDH.js → app-settings-Q2F57NVK.js} +9 -1
- package/dist/{chunk-MGV6JFDY.js → chunk-2BLJ726H.js} +4 -3
- package/dist/{chunk-3HJ2USRA.js → chunk-3DMRQB4Y.js} +1 -1
- package/dist/{chunk-I5C42O2M.js → chunk-3J3XOIHF.js} +3 -3
- package/dist/{chunk-2IA556KV.js → chunk-4HELMBYR.js} +2 -2
- package/dist/{chunk-5MHENWO5.js → chunk-4PXHJA5K.js} +2 -2
- package/dist/{chunk-TZFYBQAD.js → chunk-4TTTEKNV.js} +2 -2
- package/dist/{chunk-K355SYYX.js → chunk-5BFEHSHO.js} +4 -3
- package/dist/{chunk-CN7GSNEL.js → chunk-5SJGR3VS.js} +1 -1
- package/dist/{chunk-WSW27W5R.js → chunk-5TS3KVGI.js} +1 -1
- package/dist/{chunk-43BOPWFV.js → chunk-6RO2AOE5.js} +2 -2
- package/dist/{chunk-QULOUTDQ.js → chunk-A4ZI7SA3.js} +3 -3
- package/dist/{chunk-NF3KRZXV.js → chunk-D7US5R4H.js} +1 -1
- package/dist/{chunk-4RIKHUKB.js → chunk-DEQLDEYR.js} +5 -5
- package/dist/{chunk-PHLFFV2M.js → chunk-EDEYEYU6.js} +159 -89
- package/dist/{chunk-HZRYQ27Z.js → chunk-G3UV3GXJ.js} +2 -2
- package/dist/{chunk-IY4YNHYD.js → chunk-GUIJMZQG.js} +1 -1
- package/dist/{chunk-O6UAW76V.js → chunk-JHT3CYLT.js} +1 -1
- package/dist/{chunk-SLTWZRBN.js → chunk-JX3OWNOT.js} +1 -1
- package/dist/{chunk-COFHTNQU.js → chunk-KCZM7WZ3.js} +152 -84
- package/dist/{chunk-5VXE4ZI4.js → chunk-LDJT3TLN.js} +7 -7
- package/dist/{chunk-FVX7JWFW.js → chunk-LHU6ZBFB.js} +2 -2
- package/dist/{chunk-ZS7AY6DS.js → chunk-NDBMDHQ5.js} +5 -5
- package/dist/{chunk-DF3S5X3H.js → chunk-NGIGRAZB.js} +5 -5
- package/dist/{chunk-47UDPUVZ.js → chunk-O2IRQAFB.js} +3 -3
- package/dist/{chunk-QBUX2EDG.js → chunk-RTZO2YJC.js} +2 -2
- package/dist/{chunk-CMYGUGGZ.js → chunk-S3DTEGMK.js} +8 -8
- package/dist/{chunk-DF34F3QR.js → chunk-S3UGLMGE.js} +21 -0
- package/dist/{chunk-4BUTF5LN.js → chunk-SLLTEMIL.js} +2 -2
- package/dist/{chunk-RZUZU5KD.js → chunk-TKEYXNXY.js} +21 -0
- package/dist/{chunk-HNIEEKKR.js → chunk-WO7VF4FG.js} +5 -5
- package/dist/{conductor-RGVRIOTZ.js → conductor-4SWJM5FS.js} +5 -5
- package/dist/{conductor-QZKG7YPO.js → conductor-Q433HU77.js} +5 -5
- package/dist/{coordinator-prompt-CDVIFBYS.js → coordinator-prompt-5QHWCO7V.js} +4 -4
- package/dist/{coordinator-prompt-66UHVADL.js → coordinator-prompt-Z7PPP45X.js} +4 -4
- package/dist/{global-workspace-KMQSUF2G.js → global-workspace-DL4K4K7O.js} +4 -4
- package/dist/{global-workspace-FNDRAJLF.js → global-workspace-VDCZMFCZ.js} +4 -4
- package/dist/index.cjs +193 -73
- package/dist/index.d.cts +18 -2
- package/dist/index.d.ts +18 -2
- package/dist/index.js +53 -26
- package/dist/{linear-ZJQM5IGJ.js → linear-JE4WAZ3W.js} +2 -2
- package/dist/{linear-6DM4FJWT.js → linear-UXMDJAD4.js} +2 -2
- package/dist/{linear-list-POPBU2VC.js → linear-list-I4NAOWPN.js} +1 -1
- package/dist/{linear-list-4EPKZTYE.js → linear-list-KDLU7QWX.js} +1 -1
- package/dist/mcp/run-stdio.cjs +181 -73
- package/dist/mcp/run-stdio.js +39 -22
- package/dist/{optional-cli-3G2274LT.js → optional-cli-7QXXPEN6.js} +3 -3
- package/dist/{optional-cli-CZF2ZFU5.js → optional-cli-RUUCLNSM.js} +4 -4
- package/dist/{orchestrator-BKCQUMLB.js → orchestrator-RLFBFRAG.js} +10 -10
- package/dist/{orchestrator-SCFWTIE7.js → orchestrator-Y5JCAJGV.js} +10 -10
- package/dist/{thread-store-OARQT6DL.js → thread-store-HETUMDVA.js} +2 -2
- package/dist/{thread-store-W2SSO6IQ.js → thread-store-ILM2ZJCB.js} +2 -2
- package/dist/{workspaces-6GB56LMJ.js → workspaces-EIIHHH4S.js} +4 -4
- package/dist/{workspaces-EWWLVSZ5.js → workspaces-MX4W4SSB.js} +4 -4
- package/dist/{worktree-BRKMPZMJ.js → worktree-BD3EJE24.js} +3 -3
- package/dist/{worktree-OB5ABI22.js → worktree-QBVLKACU.js} +3 -3
- package/package.json +1 -1
|
@@ -14,7 +14,7 @@ import {
|
|
|
14
14
|
parseSessionQuotaResetAt,
|
|
15
15
|
planModeTurnInstruction,
|
|
16
16
|
resolveQuotaFallbackAgent
|
|
17
|
-
} from "./chunk-
|
|
17
|
+
} from "./chunk-S3DTEGMK.js";
|
|
18
18
|
import {
|
|
19
19
|
applyWorktreePkgCacheEnv,
|
|
20
20
|
askBlockStillWaiting,
|
|
@@ -54,7 +54,7 @@ import {
|
|
|
54
54
|
worktreeDevProcessKey,
|
|
55
55
|
worktreeRunProcessKey,
|
|
56
56
|
worktreeSetupProcessKey
|
|
57
|
-
} from "./chunk-
|
|
57
|
+
} from "./chunk-DEQLDEYR.js";
|
|
58
58
|
import {
|
|
59
59
|
applyAgentEvent,
|
|
60
60
|
clipAgentEventForPaint,
|
|
@@ -88,7 +88,7 @@ import {
|
|
|
88
88
|
import {
|
|
89
89
|
formatOptionalServicesDirectiveForTurn,
|
|
90
90
|
formatOptionalServicesReminderForTurn
|
|
91
|
-
} from "./chunk-
|
|
91
|
+
} from "./chunk-5SJGR3VS.js";
|
|
92
92
|
import {
|
|
93
93
|
extractPresentedPlan,
|
|
94
94
|
isPresentPlanToolName,
|
|
@@ -121,7 +121,7 @@ import {
|
|
|
121
121
|
stageAbsolutePathsAsAttachments,
|
|
122
122
|
stageBuffersAsAttachments,
|
|
123
123
|
syncWorkspacesFromThreads
|
|
124
|
-
} from "./chunk-
|
|
124
|
+
} from "./chunk-5BFEHSHO.js";
|
|
125
125
|
import {
|
|
126
126
|
addPrStackLayer,
|
|
127
127
|
allocateTeamSlug,
|
|
@@ -172,7 +172,7 @@ import {
|
|
|
172
172
|
resolveRepoRoot,
|
|
173
173
|
switchWorktreeBranch,
|
|
174
174
|
withRepoGitLock
|
|
175
|
-
} from "./chunk-
|
|
175
|
+
} from "./chunk-RTZO2YJC.js";
|
|
176
176
|
import {
|
|
177
177
|
issueActivityKind
|
|
178
178
|
} from "./chunk-OYRN356W.js";
|
|
@@ -215,7 +215,7 @@ import {
|
|
|
215
215
|
worktreeNameFromPath,
|
|
216
216
|
worktreeSlugForTicket,
|
|
217
217
|
writeThread
|
|
218
|
-
} from "./chunk-
|
|
218
|
+
} from "./chunk-JHT3CYLT.js";
|
|
219
219
|
import {
|
|
220
220
|
HISTORY_CLEANUP_INTERVAL_HOURS_DEFAULT,
|
|
221
221
|
applyTurnUsage,
|
|
@@ -252,7 +252,7 @@ import {
|
|
|
252
252
|
wakeOrchestratorOnGithubEdgesEnabled,
|
|
253
253
|
withTurnScopedCost,
|
|
254
254
|
writeViewerContext
|
|
255
|
-
} from "./chunk-
|
|
255
|
+
} from "./chunk-S3UGLMGE.js";
|
|
256
256
|
import {
|
|
257
257
|
writePrivateFile
|
|
258
258
|
} from "./chunk-NSTQ6QKD.js";
|
|
@@ -571,9 +571,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
571
571
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
572
572
|
);
|
|
573
573
|
}
|
|
574
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
574
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-DL4K4K7O.js");
|
|
575
575
|
if (isGlobalThread2(thread)) {
|
|
576
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
576
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-Z7PPP45X.js");
|
|
577
577
|
ensureGlobalCoordinatorCwd2(
|
|
578
578
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
579
579
|
);
|
|
@@ -2996,7 +2996,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
2996
2996
|
});
|
|
2997
2997
|
await requireAgent(resolved.agent);
|
|
2998
2998
|
if (input.cowboy) {
|
|
2999
|
-
const { cowboyModeEnabled } = await import("./app-settings-
|
|
2999
|
+
const { cowboyModeEnabled } = await import("./app-settings-Q2F57NVK.js");
|
|
3000
3000
|
if (!cowboyModeEnabled()) {
|
|
3001
3001
|
throw new Error(
|
|
3002
3002
|
"Cowboy mode is off. Enable it in Settings \u2192 Advanced."
|
|
@@ -3055,7 +3055,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
3055
3055
|
let sourceIsFork = false;
|
|
3056
3056
|
if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
|
|
3057
3057
|
if (isAbleTimeConnected() && getIssueSource() === "abletime") {
|
|
3058
|
-
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-
|
|
3058
|
+
const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-MSIMJKKQ.js");
|
|
3059
3059
|
const task = await ensureAbleTimeTask({
|
|
3060
3060
|
title: title?.trim() || "Untitled work",
|
|
3061
3061
|
description: input.prompt?.trim() || void 0
|
|
@@ -3937,7 +3937,7 @@ async function adoptThread(input) {
|
|
|
3937
3937
|
messages: input.messages ?? []
|
|
3938
3938
|
});
|
|
3939
3939
|
writeThread(thread);
|
|
3940
|
-
const { addWorkspace: addWorkspace2 } = await import("./workspaces-
|
|
3940
|
+
const { addWorkspace: addWorkspace2 } = await import("./workspaces-EIIHHH4S.js");
|
|
3941
3941
|
await addWorkspace2(repoPath);
|
|
3942
3942
|
const { ensureWorktreeSideboardIgnored } = await import("./worktree-exclude-KMZQXZKP.js");
|
|
3943
3943
|
await ensureWorktreeSideboardIgnored(input.worktreePath);
|
|
@@ -5925,49 +5925,6 @@ function expandComposerPrompt(worktreePath, prompt, opts) {
|
|
|
5925
5925
|
};
|
|
5926
5926
|
}
|
|
5927
5927
|
|
|
5928
|
-
// src/composer/agent-has-replied.ts
|
|
5929
|
-
function joinSteerPrompt(base, addition) {
|
|
5930
|
-
const next = addition.trim();
|
|
5931
|
-
if (!next) return base;
|
|
5932
|
-
const head = base.replace(/\s+$/, "");
|
|
5933
|
-
if (!head) return next;
|
|
5934
|
-
return `${head}
|
|
5935
|
-
${next}`;
|
|
5936
|
-
}
|
|
5937
|
-
function messagesWithRewrittenUserPrompt(messages, from, to) {
|
|
5938
|
-
if (from === to) return null;
|
|
5939
|
-
const next = messages.slice();
|
|
5940
|
-
for (let i = next.length - 1; i >= 0; i--) {
|
|
5941
|
-
const message = next[i];
|
|
5942
|
-
if (!message || message.origin === "continue" || message.role === "summary") continue;
|
|
5943
|
-
if (message.role !== "user") continue;
|
|
5944
|
-
if (message.text !== from) return null;
|
|
5945
|
-
next[i] = { ...message, text: to };
|
|
5946
|
-
return next;
|
|
5947
|
-
}
|
|
5948
|
-
return null;
|
|
5949
|
-
}
|
|
5950
|
-
function trailingUnansweredUserText(messages) {
|
|
5951
|
-
for (let i = messages.length - 1; i >= 0; i--) {
|
|
5952
|
-
const message = messages[i];
|
|
5953
|
-
if (!message || message.origin === "continue" || message.role === "summary") continue;
|
|
5954
|
-
if (message.role === "agent") {
|
|
5955
|
-
const text3 = (message.text ?? "").trim();
|
|
5956
|
-
if (text3 || (message.parts?.length ?? 0) > 0) return null;
|
|
5957
|
-
continue;
|
|
5958
|
-
}
|
|
5959
|
-
if (message.role === "user") return message.text;
|
|
5960
|
-
}
|
|
5961
|
-
return null;
|
|
5962
|
-
}
|
|
5963
|
-
function livePartsShowAgentReply(parts) {
|
|
5964
|
-
for (const part of parts) {
|
|
5965
|
-
if (part.type === "tool") return true;
|
|
5966
|
-
if ((part.type === "text" || part.type === "thinking") && part.text.trim()) return true;
|
|
5967
|
-
}
|
|
5968
|
-
return false;
|
|
5969
|
-
}
|
|
5970
|
-
|
|
5971
5928
|
// src/composer/consume-attachments.ts
|
|
5972
5929
|
function consumeComposerAttachments(thread) {
|
|
5973
5930
|
return {
|
|
@@ -5978,6 +5935,22 @@ function consumeComposerAttachments(thread) {
|
|
|
5978
5935
|
function takePendingTurnAttachments(thread) {
|
|
5979
5936
|
return [...thread.pendingTurnAttachments ?? []];
|
|
5980
5937
|
}
|
|
5938
|
+
function mergeTurnAttachments(base, extra) {
|
|
5939
|
+
const next = [];
|
|
5940
|
+
const seen = /* @__PURE__ */ new Set();
|
|
5941
|
+
for (const att of [...base ?? [], ...extra ?? []]) {
|
|
5942
|
+
if (seen.has(att.id)) continue;
|
|
5943
|
+
seen.add(att.id);
|
|
5944
|
+
next.push(att);
|
|
5945
|
+
}
|
|
5946
|
+
return next;
|
|
5947
|
+
}
|
|
5948
|
+
function sameTurnAttachments(a, b) {
|
|
5949
|
+
const left = a ?? [];
|
|
5950
|
+
const right = b ?? [];
|
|
5951
|
+
if (left.length !== right.length) return false;
|
|
5952
|
+
return left.every((att, i) => att.id === right[i]?.id);
|
|
5953
|
+
}
|
|
5981
5954
|
function alignQueueAttachments(queueLength, existing) {
|
|
5982
5955
|
const next = (existing ?? []).slice(0, queueLength).map((slot) => [...slot ?? []]);
|
|
5983
5956
|
while (next.length < queueLength) next.push([]);
|
|
@@ -6020,15 +5993,95 @@ function shiftQueuedItem(queue, queueAttachments) {
|
|
|
6020
5993
|
};
|
|
6021
5994
|
}
|
|
6022
5995
|
|
|
5996
|
+
// src/composer/agent-has-replied.ts
|
|
5997
|
+
function joinSteerPrompt(base, addition) {
|
|
5998
|
+
const next = addition.trim();
|
|
5999
|
+
if (!next) return base;
|
|
6000
|
+
const head = base.replace(/\s+$/, "");
|
|
6001
|
+
if (!head) return next;
|
|
6002
|
+
return `${head}
|
|
6003
|
+
${next}`;
|
|
6004
|
+
}
|
|
6005
|
+
function messagesWithRewrittenUserPrompt(messages, from, to, attachments) {
|
|
6006
|
+
const extra = attachments ?? [];
|
|
6007
|
+
if (from === to && extra.length === 0) return null;
|
|
6008
|
+
const next = messages.slice();
|
|
6009
|
+
for (let i = next.length - 1; i >= 0; i--) {
|
|
6010
|
+
const message = next[i];
|
|
6011
|
+
if (!message || message.origin === "continue" || message.role === "summary") continue;
|
|
6012
|
+
if (message.role !== "user") continue;
|
|
6013
|
+
if (message.text !== from) return null;
|
|
6014
|
+
const merged = mergeTurnAttachments(message.attachments, extra);
|
|
6015
|
+
if (from === to && merged.length === (message.attachments?.length ?? 0)) return null;
|
|
6016
|
+
next[i] = {
|
|
6017
|
+
...message,
|
|
6018
|
+
text: to,
|
|
6019
|
+
...merged.length > 0 ? { attachments: merged } : {}
|
|
6020
|
+
};
|
|
6021
|
+
return next;
|
|
6022
|
+
}
|
|
6023
|
+
return null;
|
|
6024
|
+
}
|
|
6025
|
+
function trailingUnansweredUserText(messages) {
|
|
6026
|
+
for (let i = messages.length - 1; i >= 0; i--) {
|
|
6027
|
+
const message = messages[i];
|
|
6028
|
+
if (!message || message.origin === "continue" || message.role === "summary") continue;
|
|
6029
|
+
if (message.role === "agent") {
|
|
6030
|
+
const text3 = (message.text ?? "").trim();
|
|
6031
|
+
if (text3 || (message.parts?.length ?? 0) > 0) return null;
|
|
6032
|
+
continue;
|
|
6033
|
+
}
|
|
6034
|
+
if (message.role === "user") return message.text;
|
|
6035
|
+
}
|
|
6036
|
+
return null;
|
|
6037
|
+
}
|
|
6038
|
+
function livePartsShowAgentReply(parts) {
|
|
6039
|
+
for (const part of parts) {
|
|
6040
|
+
if (part.type === "tool") return true;
|
|
6041
|
+
if ((part.type === "text" || part.type === "thinking") && part.text.trim()) return true;
|
|
6042
|
+
}
|
|
6043
|
+
return false;
|
|
6044
|
+
}
|
|
6045
|
+
|
|
6023
6046
|
// src/orchestrator/enqueue-thread-send.ts
|
|
6024
6047
|
function resolveSendFollowUp(thread, requested) {
|
|
6025
6048
|
if (requested === "steer" || requested === "queue") return requested;
|
|
6026
6049
|
return isOrchestratorThread(thread) ? followUpBehavior() : "queue";
|
|
6027
6050
|
}
|
|
6028
|
-
function
|
|
6051
|
+
function beginOpenSteerDraft(text3) {
|
|
6052
|
+
return { text: text3, spawned: false, attachments: [] };
|
|
6053
|
+
}
|
|
6054
|
+
function seedOpenSteerAttachments(draft, sent) {
|
|
6055
|
+
if (!draft) return [...sent ?? []];
|
|
6056
|
+
draft.attachments = mergeTurnAttachments(sent, draft.attachments);
|
|
6057
|
+
return draft.attachments ?? [];
|
|
6058
|
+
}
|
|
6059
|
+
function openSteerTurnAttachments(draft, fallback, autoContinue) {
|
|
6060
|
+
if (autoContinue) return [];
|
|
6061
|
+
return [...draft?.attachments ?? fallback];
|
|
6062
|
+
}
|
|
6063
|
+
function promptAfterJoinedSteer(input) {
|
|
6064
|
+
if (input.draft) input.draft.spawned = true;
|
|
6065
|
+
return promptForJoinedSteer({
|
|
6066
|
+
threadId: input.threadId,
|
|
6067
|
+
promptText: input.promptText,
|
|
6068
|
+
latestPrompt: input.draft?.text ?? input.promptText,
|
|
6069
|
+
agentPrompt: input.agentPrompt,
|
|
6070
|
+
expandedPrompt: input.expandedPrompt,
|
|
6071
|
+
worktreePath: input.worktreePath,
|
|
6072
|
+
attachments: input.expandedAttachments,
|
|
6073
|
+
latestAttachments: openSteerTurnAttachments(
|
|
6074
|
+
input.draft,
|
|
6075
|
+
input.expandedAttachments,
|
|
6076
|
+
input.autoContinue
|
|
6077
|
+
),
|
|
6078
|
+
gitForge: input.gitForge
|
|
6079
|
+
});
|
|
6080
|
+
}
|
|
6081
|
+
function rewriteTrailingUserPrompt(threadId, from, to, attachments) {
|
|
6029
6082
|
const thread = readThread(threadId);
|
|
6030
6083
|
if (!thread) return;
|
|
6031
|
-
const messages = messagesWithRewrittenUserPrompt(thread.messages, from, to);
|
|
6084
|
+
const messages = messagesWithRewrittenUserPrompt(thread.messages, from, to, attachments);
|
|
6032
6085
|
if (!messages) return;
|
|
6033
6086
|
updateThread(threadId, { messages });
|
|
6034
6087
|
}
|
|
@@ -6043,12 +6096,18 @@ function reuseJoinedUserBubble(reused, threadId, messages, promptText) {
|
|
|
6043
6096
|
return false;
|
|
6044
6097
|
}
|
|
6045
6098
|
function promptForJoinedSteer(input) {
|
|
6046
|
-
|
|
6047
|
-
|
|
6099
|
+
const latestAttachments = input.latestAttachments ?? input.attachments;
|
|
6100
|
+
const textSame = input.latestPrompt === input.promptText;
|
|
6101
|
+
if (textSame && sameTurnAttachments(input.attachments, latestAttachments)) {
|
|
6102
|
+
return input.agentPrompt;
|
|
6103
|
+
}
|
|
6104
|
+
if (!textSame) {
|
|
6105
|
+
rewriteTrailingUserPrompt(input.threadId, input.promptText, input.latestPrompt);
|
|
6106
|
+
}
|
|
6048
6107
|
const { agentPrompt: expandedLatest } = expandComposerPrompt(
|
|
6049
6108
|
input.worktreePath,
|
|
6050
6109
|
expandCanonicalGitRequest(input.latestPrompt, { forge: input.gitForge }),
|
|
6051
|
-
{ attachments:
|
|
6110
|
+
{ attachments: latestAttachments }
|
|
6052
6111
|
);
|
|
6053
6112
|
return input.expandedPrompt && input.agentPrompt.endsWith(input.expandedPrompt) ? input.agentPrompt.slice(0, -input.expandedPrompt.length) + expandedLatest : `${input.agentPrompt}
|
|
6054
6113
|
|
|
@@ -6084,7 +6143,13 @@ async function enqueueThreadSend(host, threadRef, prompt, opts) {
|
|
|
6084
6143
|
const combined = joinSteerPrompt(unanswered, prompt);
|
|
6085
6144
|
if (draft && !draft.spawned) {
|
|
6086
6145
|
draft.text = combined;
|
|
6087
|
-
|
|
6146
|
+
if (consumed.consumed.length > 0) {
|
|
6147
|
+
draft.attachments = mergeTurnAttachments(draft.attachments, consumed.consumed);
|
|
6148
|
+
}
|
|
6149
|
+
rewriteTrailingUserPrompt(current.id, unanswered, combined, consumed.consumed);
|
|
6150
|
+
if (explicit === void 0 && consumed.consumed.length > 0) {
|
|
6151
|
+
updateThread(current.id, { attachments: consumed.attachments });
|
|
6152
|
+
}
|
|
6088
6153
|
} else {
|
|
6089
6154
|
const queue = current.queue.slice();
|
|
6090
6155
|
queue[0] = combined;
|
|
@@ -6106,8 +6171,13 @@ async function enqueueThreadSend(host, threadRef, prompt, opts) {
|
|
|
6106
6171
|
}
|
|
6107
6172
|
const promptToQueue = unanswered != null ? joinSteerPrompt(unanswered, prompt) : prompt;
|
|
6108
6173
|
if (unanswered != null) {
|
|
6109
|
-
if (draft)
|
|
6110
|
-
|
|
6174
|
+
if (draft) {
|
|
6175
|
+
draft.text = promptToQueue;
|
|
6176
|
+
if (consumed.consumed.length > 0) {
|
|
6177
|
+
draft.attachments = mergeTurnAttachments(draft.attachments, consumed.consumed);
|
|
6178
|
+
}
|
|
6179
|
+
}
|
|
6180
|
+
rewriteTrailingUserPrompt(current.id, unanswered, promptToQueue, consumed.consumed);
|
|
6111
6181
|
host.reusedUserPrompt.add(current.id);
|
|
6112
6182
|
}
|
|
6113
6183
|
const queued = appendQueuedItem(
|
|
@@ -7457,11 +7527,11 @@ function realDeps() {
|
|
|
7457
7527
|
parentIdForThread,
|
|
7458
7528
|
designatedId: designatedOrchestratorId,
|
|
7459
7529
|
send: async (threadId, prompt) => {
|
|
7460
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
7530
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-RLFBFRAG.js");
|
|
7461
7531
|
await getOrchestrator2().send(threadId, prompt, { followUp: "queue" });
|
|
7462
7532
|
},
|
|
7463
7533
|
startOrchestration: async (prompt) => {
|
|
7464
|
-
const { startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
7534
|
+
const { startOrchestration: startOrchestration2 } = await import("./orchestrator-RLFBFRAG.js");
|
|
7465
7535
|
const defaults = resolveOrchestratorDefaults();
|
|
7466
7536
|
await startOrchestration2({
|
|
7467
7537
|
goal: prompt,
|
|
@@ -7488,7 +7558,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
7488
7558
|
${prompt}`;
|
|
7489
7559
|
}
|
|
7490
7560
|
async function defaultDeps() {
|
|
7491
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
7561
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-RLFBFRAG.js");
|
|
7492
7562
|
const orch = getOrchestrator2();
|
|
7493
7563
|
return {
|
|
7494
7564
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -7844,7 +7914,7 @@ var Orchestrator = class {
|
|
|
7844
7914
|
orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
|
|
7845
7915
|
});
|
|
7846
7916
|
}
|
|
7847
|
-
const { autoCleanupOrphansEnabled } = await import("./app-settings-
|
|
7917
|
+
const { autoCleanupOrphansEnabled } = await import("./app-settings-Q2F57NVK.js");
|
|
7848
7918
|
if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
|
|
7849
7919
|
await cleanupOrphanWorktrees({ repoPaths });
|
|
7850
7920
|
}
|
|
@@ -8234,7 +8304,7 @@ var Orchestrator = class {
|
|
|
8234
8304
|
}
|
|
8235
8305
|
await setup;
|
|
8236
8306
|
if (skipSetup) return;
|
|
8237
|
-
const { autoRunAfterSetupEnabled } = await import("./app-settings-
|
|
8307
|
+
const { autoRunAfterSetupEnabled } = await import("./app-settings-Q2F57NVK.js");
|
|
8238
8308
|
if (autoRunAfterSetupEnabled()) {
|
|
8239
8309
|
try {
|
|
8240
8310
|
await this.startDev(threadId);
|
|
@@ -8467,10 +8537,7 @@ var Orchestrator = class {
|
|
|
8467
8537
|
this.emit({ type: "status_changed", threadId, status: "running" });
|
|
8468
8538
|
this.emit({ type: "turn_started", threadId, prompt });
|
|
8469
8539
|
try {
|
|
8470
|
-
this.openSteerPrompt.set(threadId,
|
|
8471
|
-
text: typeof prompt === "string" ? prompt : "",
|
|
8472
|
-
spawned: false
|
|
8473
|
-
});
|
|
8540
|
+
this.openSteerPrompt.set(threadId, beginOpenSteerDraft(typeof prompt === "string" ? prompt : ""));
|
|
8474
8541
|
try {
|
|
8475
8542
|
const baseline = await captureTurnBaseline(thread.worktreePath);
|
|
8476
8543
|
if (baseline) this.turnBaselines.set(threadId, baseline);
|
|
@@ -8500,13 +8567,14 @@ var Orchestrator = class {
|
|
|
8500
8567
|
const autoContinue = isJobContinuePrompt(promptText) || promptText.startsWith("The previous agent process ended before it finished.");
|
|
8501
8568
|
const parked = takePendingTurnAttachments(thread);
|
|
8502
8569
|
const sentAttachments = !autoContinue && parked.length > 0 ? parked : void 0;
|
|
8570
|
+
const turnAttachments = seedOpenSteerAttachments(this.openSteerPrompt.get(threadId), sentAttachments);
|
|
8503
8571
|
if (!autoContinue) clearAgentBlock(threadId);
|
|
8504
8572
|
const shown = this.requireThread(threadId).messages;
|
|
8505
8573
|
if (!reuseJoinedUserBubble(this.reusedUserPrompt, threadId, shown, promptText)) {
|
|
8506
8574
|
appendMessage(threadId, {
|
|
8507
8575
|
role: "user",
|
|
8508
8576
|
text: promptText,
|
|
8509
|
-
...
|
|
8577
|
+
...turnAttachments.length > 0 ? { attachments: turnAttachments } : {},
|
|
8510
8578
|
...autoContinue ? { origin: "continue" } : {},
|
|
8511
8579
|
ts: (/* @__PURE__ */ new Date()).toISOString()
|
|
8512
8580
|
});
|
|
@@ -8536,11 +8604,12 @@ var Orchestrator = class {
|
|
|
8536
8604
|
thread = this.requireThread(threadId);
|
|
8537
8605
|
const turnOrigin = thread.worktreePath?.trim() ? await resolveOriginRemote(thread.worktreePath).catch(() => null) : null;
|
|
8538
8606
|
const gitPrompt = expandCanonicalGitRequest(promptText, { forge: turnOrigin?.forge });
|
|
8607
|
+
const expandedAttachments = openSteerTurnAttachments(this.openSteerPrompt.get(threadId), turnAttachments, autoContinue);
|
|
8539
8608
|
const { agentPrompt: expandedPrompt } = expandComposerPrompt(
|
|
8540
8609
|
thread.worktreePath,
|
|
8541
8610
|
gitPrompt,
|
|
8542
8611
|
{
|
|
8543
|
-
attachments:
|
|
8612
|
+
attachments: expandedAttachments
|
|
8544
8613
|
}
|
|
8545
8614
|
);
|
|
8546
8615
|
const slackInbound = /^(Slack DM|Slack @mention)(?:\n|$)/.test(
|
|
@@ -8619,7 +8688,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
8619
8688
|
}
|
|
8620
8689
|
const isBrightsy = fresh.agent === "brightsy";
|
|
8621
8690
|
const isOrchestration = isOrchestratorThread(fresh);
|
|
8622
|
-
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-
|
|
8691
|
+
const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-Q2F57NVK.js");
|
|
8623
8692
|
const gitAuthMode = getGithubGitAuthMode();
|
|
8624
8693
|
const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
|
|
8625
8694
|
githubSlug: turnOrigin?.forge === "github" ? turnOrigin.slug : await withTimeout(resolveGithubRepoSlug(fresh.worktreePath), 8e3, "resolveGithubRepoSlug").catch(() => null),
|
|
@@ -8708,16 +8777,15 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
8708
8777
|
].filter(Boolean).join("\n\n---\n\n");
|
|
8709
8778
|
const stderrTail = [];
|
|
8710
8779
|
traceTurn("runTurn.beforeSpawn", { threadId, agent: fresh.agent });
|
|
8711
|
-
const
|
|
8712
|
-
|
|
8713
|
-
|
|
8780
|
+
const promptForAgent = promptAfterJoinedSteer({
|
|
8781
|
+
draft: this.openSteerPrompt.get(threadId),
|
|
8782
|
+
autoContinue,
|
|
8783
|
+
expandedAttachments,
|
|
8714
8784
|
threadId,
|
|
8715
8785
|
promptText,
|
|
8716
|
-
latestPrompt: steerDraft?.text ?? promptText,
|
|
8717
8786
|
agentPrompt,
|
|
8718
8787
|
expandedPrompt,
|
|
8719
8788
|
worktreePath: fresh.worktreePath,
|
|
8720
|
-
attachments: autoContinue ? [] : sentAttachments ?? [],
|
|
8721
8789
|
gitForge: turnOrigin?.forge
|
|
8722
8790
|
});
|
|
8723
8791
|
const handle = await spawnAgentTurn(
|
|
@@ -9962,7 +10030,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
9962
10030
|
if (Object.keys(patch).length === 0) continue;
|
|
9963
10031
|
updateThread(t.id, patch);
|
|
9964
10032
|
}
|
|
9965
|
-
const { autoArchiveOnMergeEnabled } = await import("./app-settings-
|
|
10033
|
+
const { autoArchiveOnMergeEnabled } = await import("./app-settings-Q2F57NVK.js");
|
|
9966
10034
|
const latest = this.requireThread(thread.id);
|
|
9967
10035
|
if (!shouldAutoArchiveOnPrMerge({
|
|
9968
10036
|
previousPrState: prevState || null,
|
|
@@ -10286,7 +10354,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
10286
10354
|
await runArchiveScript(thread.repoPath, thread.worktreePath);
|
|
10287
10355
|
} catch {
|
|
10288
10356
|
}
|
|
10289
|
-
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-
|
|
10357
|
+
const { deleteBranchOnPurgeEnabled } = await import("./app-settings-Q2F57NVK.js");
|
|
10290
10358
|
const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
|
|
10291
10359
|
await removeWorktree(thread.repoPath, thread.worktreePath, {
|
|
10292
10360
|
deleteBranch: deleteBranch ? thread.branchName : void 0
|
|
@@ -10424,7 +10492,7 @@ async function startOrchestration(opts) {
|
|
|
10424
10492
|
sourceRef: "default",
|
|
10425
10493
|
...createOpts
|
|
10426
10494
|
}).catch(async () => {
|
|
10427
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
10495
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-BD3EJE24.js");
|
|
10428
10496
|
const repo = await resolveRepoRoot2(repoPath);
|
|
10429
10497
|
const def = await resolveDefaultBranch2(repo);
|
|
10430
10498
|
return orch.createThread({
|
|
@@ -10434,7 +10502,7 @@ async function startOrchestration(opts) {
|
|
|
10434
10502
|
repoPath: repo
|
|
10435
10503
|
});
|
|
10436
10504
|
});
|
|
10437
|
-
const { updateThread: upd } = await import("./thread-store-
|
|
10505
|
+
const { updateThread: upd } = await import("./thread-store-HETUMDVA.js");
|
|
10438
10506
|
const updated = upd(thread.id, {
|
|
10439
10507
|
sourceType: "orchestration",
|
|
10440
10508
|
sourceRef: goal
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
} from "./chunk-XOEKCE6L.js";
|
|
7
7
|
import {
|
|
8
8
|
listAssignedLinearIssues
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-D7US5R4H.js";
|
|
10
10
|
import {
|
|
11
11
|
looksLikeConversationSummary,
|
|
12
12
|
looksLikeSkillBody,
|
|
@@ -15,13 +15,13 @@ import {
|
|
|
15
15
|
} from "./chunk-BIM24I3O.js";
|
|
16
16
|
import {
|
|
17
17
|
isOrchestratorThread
|
|
18
|
-
} from "./chunk-
|
|
18
|
+
} from "./chunk-2BLJ726H.js";
|
|
19
19
|
import {
|
|
20
20
|
codexUnattendedGitConfigArgs,
|
|
21
21
|
mergeAgentGitAuthEnv,
|
|
22
22
|
resolveAgentGitAuthEnv,
|
|
23
23
|
resolveCodexGitWritableRoots
|
|
24
|
-
} from "./chunk-
|
|
24
|
+
} from "./chunk-G3UV3GXJ.js";
|
|
25
25
|
import {
|
|
26
26
|
loadBrightsyConfig
|
|
27
27
|
} from "./chunk-RSA47QYR.js";
|
|
@@ -80,7 +80,7 @@ import {
|
|
|
80
80
|
requestOccupancy,
|
|
81
81
|
resolveAgentExecutable,
|
|
82
82
|
resolveClaudeExecutable
|
|
83
|
-
} from "./chunk-
|
|
83
|
+
} from "./chunk-TKEYXNXY.js";
|
|
84
84
|
import {
|
|
85
85
|
isElectronLikeCommand,
|
|
86
86
|
unwrapStrippedElectronLaunch
|
|
@@ -2671,7 +2671,7 @@ var claudeAdapter = {
|
|
|
2671
2671
|
);
|
|
2672
2672
|
}
|
|
2673
2673
|
const mode = permissionMode(thread);
|
|
2674
|
-
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-
|
|
2674
|
+
const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-VDCZMFCZ.js");
|
|
2675
2675
|
const isOrchestrator = isOrchestratorThread2(thread);
|
|
2676
2676
|
const rpc = worktreeAgentRpc(isOrchestrator);
|
|
2677
2677
|
const injectedServers = await buildInjectedMcpServers({
|
|
@@ -2898,7 +2898,7 @@ var claudeAdapter = {
|
|
|
2898
2898
|
return { file: claude, args, cwd: thread.worktreePath };
|
|
2899
2899
|
},
|
|
2900
2900
|
async listLinearIssues(_repoPath) {
|
|
2901
|
-
const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-
|
|
2901
|
+
const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-KDLU7QWX.js");
|
|
2902
2902
|
return listAssignedLinearIssues2();
|
|
2903
2903
|
}
|
|
2904
2904
|
};
|
|
@@ -3989,7 +3989,7 @@ var opencodeAdapter = {
|
|
|
3989
3989
|
};
|
|
3990
3990
|
},
|
|
3991
3991
|
async listLinearIssues(_repoPath) {
|
|
3992
|
-
const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-
|
|
3992
|
+
const { listAssignedLinearIssues: listAssignedLinearIssues2 } = await import("./linear-list-KDLU7QWX.js");
|
|
3993
3993
|
return listAssignedLinearIssues2();
|
|
3994
3994
|
}
|
|
3995
3995
|
};
|
|
@@ -6,14 +6,14 @@ import {
|
|
|
6
6
|
normalizeAbleTimeCredential,
|
|
7
7
|
normalizeAbleTimeHost,
|
|
8
8
|
rewriteAbleTimeError
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-NDBMDHQ5.js";
|
|
10
10
|
import {
|
|
11
11
|
httpFetch
|
|
12
12
|
} from "./chunk-2GPQZZLY.js";
|
|
13
13
|
import {
|
|
14
14
|
getAbleTimeAccessToken,
|
|
15
15
|
getAbleTimeHost
|
|
16
|
-
} from "./chunk-
|
|
16
|
+
} from "./chunk-S3UGLMGE.js";
|
|
17
17
|
|
|
18
18
|
// src/integrations/abletime-rest.ts
|
|
19
19
|
var ABLETIME_REST_PREFIX = "/api/public/v2";
|
|
@@ -6,7 +6,7 @@ import {
|
|
|
6
6
|
import {
|
|
7
7
|
getAbleTimeHost,
|
|
8
8
|
isAbleTimeConnected
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-S3UGLMGE.js";
|
|
10
10
|
|
|
11
11
|
// src/integrations/abletime-mcp.ts
|
|
12
12
|
var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
|
|
@@ -155,7 +155,7 @@ function textsFromUnknown(value) {
|
|
|
155
155
|
return "";
|
|
156
156
|
}
|
|
157
157
|
async function abletimeMcpRequest(method, params, opts) {
|
|
158
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
158
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-2RUKRZYZ.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
159
159
|
if (!rawToken?.trim()) {
|
|
160
160
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
161
161
|
}
|
|
@@ -226,9 +226,9 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
226
226
|
if (!opts?.token && !isAbleTimeConnected()) {
|
|
227
227
|
throw new Error("AbleTime is not connected \u2014 paste a personal access token in Account settings");
|
|
228
228
|
}
|
|
229
|
-
const rawToken = opts?.token ?? await import("./abletime-oauth-
|
|
229
|
+
const rawToken = opts?.token ?? await import("./abletime-oauth-2RUKRZYZ.js").then((m) => m.ensureAbleTimeAccessToken());
|
|
230
230
|
if (rawToken && ableTimeUsesRest(rawToken)) {
|
|
231
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
231
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-UBLSGMSA.js");
|
|
232
232
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
233
233
|
}
|
|
234
234
|
const requestOpts = { ...opts, pm: opts?.pm ?? abletimeToolUsesPm(name) };
|
|
@@ -244,7 +244,7 @@ async function callAbleTimeTool(name, args = {}, opts) {
|
|
|
244
244
|
return await call();
|
|
245
245
|
}
|
|
246
246
|
if (rawToken && ableTimeUsesRest(rawToken) && isAbleTimeRejectedCredential(message)) {
|
|
247
|
-
const { callAbleTimeRestTool } = await import("./abletime-rest-
|
|
247
|
+
const { callAbleTimeRestTool } = await import("./abletime-rest-UBLSGMSA.js");
|
|
248
248
|
return callAbleTimeRestTool(name, args, { ...opts, token: rawToken });
|
|
249
249
|
}
|
|
250
250
|
throw err instanceof Error ? new Error(rewriteAbleTimeError(err.message)) : err;
|
|
@@ -8,11 +8,11 @@ import {
|
|
|
8
8
|
isGlobalThread,
|
|
9
9
|
isOrchestratorThread,
|
|
10
10
|
isSlackCoordinatorThread
|
|
11
|
-
} from "./chunk-
|
|
11
|
+
} from "./chunk-2BLJ726H.js";
|
|
12
12
|
import {
|
|
13
13
|
mergeAgentGitAuthEnv,
|
|
14
14
|
resolveAgentGitAuthEnv
|
|
15
|
-
} from "./chunk-
|
|
15
|
+
} from "./chunk-G3UV3GXJ.js";
|
|
16
16
|
import {
|
|
17
17
|
REVIEW_TAB_TITLE,
|
|
18
18
|
allocateTeamName,
|
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
updateThread,
|
|
25
25
|
worktreeNameFromPath,
|
|
26
26
|
writeThread
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-JX3OWNOT.js";
|
|
28
28
|
import {
|
|
29
29
|
ensureWorktreeSideboardIgnored
|
|
30
30
|
} from "./chunk-BMRJNRQK.js";
|
|
@@ -49,7 +49,7 @@ import {
|
|
|
49
49
|
import {
|
|
50
50
|
assertOrchestratorCapableAgent,
|
|
51
51
|
contextTokens
|
|
52
|
-
} from "./chunk-
|
|
52
|
+
} from "./chunk-TKEYXNXY.js";
|
|
53
53
|
import {
|
|
54
54
|
stripNestedElectronEnv
|
|
55
55
|
} from "./chunk-4TR3HZFT.js";
|
|
@@ -1705,7 +1705,7 @@ var PORT_RANGE_SIZE = 10;
|
|
|
1705
1705
|
var RECLAIM_RETRY_DELAY_MS = 40;
|
|
1706
1706
|
var RECLAIM_TRIES = 8;
|
|
1707
1707
|
async function killReclaimable(ports, worktreePath, signal) {
|
|
1708
|
-
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-
|
|
1708
|
+
const { killListenersOnPorts: killListenersOnPorts2, killStaleWorktreeListeners: killStaleWorktreeListeners2 } = await import("./conductor-Q433HU77.js");
|
|
1709
1709
|
if (worktreePath) killStaleWorktreeListeners2(ports, worktreePath, signal);
|
|
1710
1710
|
else killListenersOnPorts2(ports);
|
|
1711
1711
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import {
|
|
2
2
|
DEFAULT_ABLETIME_HOST,
|
|
3
3
|
normalizeAbleTimeHost
|
|
4
|
-
} from "./chunk-
|
|
4
|
+
} from "./chunk-WO7VF4FG.js";
|
|
5
5
|
import {
|
|
6
6
|
httpFetch
|
|
7
7
|
} from "./chunk-JAT3JFOS.js";
|
|
@@ -10,7 +10,7 @@ import {
|
|
|
10
10
|
getAbleTimeHost,
|
|
11
11
|
loadAppSettings,
|
|
12
12
|
saveAbleTimeConnection
|
|
13
|
-
} from "./chunk-
|
|
13
|
+
} from "./chunk-TKEYXNXY.js";
|
|
14
14
|
|
|
15
15
|
// src/integrations/abletime-oauth.ts
|
|
16
16
|
import { createHash, randomBytes } from "crypto";
|
|
@@ -280,7 +280,7 @@ async function startAbleTimeOAuth(opts) {
|
|
|
280
280
|
persistAbleTimeTokens(data, { host });
|
|
281
281
|
const token = data.access_token.trim();
|
|
282
282
|
try {
|
|
283
|
-
const { getAbleTimeOrientation } = await import("./abletime-
|
|
283
|
+
const { getAbleTimeOrientation } = await import("./abletime-ZIYFR4SI.js");
|
|
284
284
|
const orientation = await getAbleTimeOrientation({ token, host });
|
|
285
285
|
return saveAbleTimeConnection({
|
|
286
286
|
accessToken: token,
|
|
@@ -23,11 +23,11 @@ import {
|
|
|
23
23
|
normalizeTakenSlug,
|
|
24
24
|
normalizeWorktreePath,
|
|
25
25
|
takenSlugsFromThread
|
|
26
|
-
} from "./chunk-
|
|
26
|
+
} from "./chunk-JHT3CYLT.js";
|
|
27
27
|
import {
|
|
28
28
|
getGithubGitAuthMode,
|
|
29
29
|
getGithubPat
|
|
30
|
-
} from "./chunk-
|
|
30
|
+
} from "./chunk-S3UGLMGE.js";
|
|
31
31
|
import {
|
|
32
32
|
worktreesRoot
|
|
33
33
|
} from "./chunk-WOU343SI.js";
|