@sideboard-ai/core 0.1.210 → 0.1.211
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{agents-G3TFVFBQ.js → agents-A2U3K7VK.js} +4 -4
- package/dist/{agents-IQZUN47D.js → agents-GQANI7M5.js} +4 -4
- package/dist/{chunk-3S2LDD2F.js → chunk-2PE6SZCM.js} +2 -2
- package/dist/{chunk-2R6BZRRB.js → chunk-ERNK7AWM.js} +99 -53
- package/dist/{chunk-X5PUFYDJ.js → chunk-GHKFSBES.js} +2 -0
- package/dist/{chunk-NDE5RKZP.js → chunk-IA5IPGZI.js} +3 -3
- package/dist/{chunk-YYELAUKP.js → chunk-IRCAWYTN.js} +3 -3
- package/dist/{chunk-FGTPRMPS.js → chunk-JJ3ONQ4Q.js} +2 -0
- package/dist/{chunk-AOQZZA3M.js → chunk-KZUA4QG2.js} +106 -54
- package/dist/{chunk-ZZNZX2QW.js → chunk-NRKDRQM3.js} +1 -1
- package/dist/{chunk-WX4S775K.js → chunk-VPQXJYIW.js} +1 -1
- package/dist/{chunk-ZC664YBJ.js → chunk-WNVQJZ7P.js} +2 -2
- package/dist/{coordinator-prompt-PONGPWIP.js → coordinator-prompt-EHRDZ2ZU.js} +3 -3
- package/dist/{coordinator-prompt-GCITY3Q5.js → coordinator-prompt-LMTMWCPN.js} +3 -3
- package/dist/{global-workspace-LQZLTGFL.js → global-workspace-NG2TBUI5.js} +3 -3
- package/dist/{global-workspace-LIZHU4GM.js → global-workspace-RHABXQWB.js} +3 -3
- package/dist/index.cjs +101 -40
- package/dist/index.d.cts +41 -9
- package/dist/index.d.ts +41 -9
- package/dist/index.js +18 -5
- package/dist/mcp/run-stdio.cjs +88 -40
- package/dist/mcp/run-stdio.js +5 -5
- package/dist/{orchestrator-G5HELCVT.js → orchestrator-NZO4PVFH.js} +5 -5
- package/dist/{orchestrator-ZBUXJCII.js → orchestrator-QMGH4V4K.js} +5 -5
- package/dist/{thread-store-KMZRQEPY.js → thread-store-4M6WETL6.js} +1 -1
- package/dist/{thread-store-FCWU7Y3X.js → thread-store-MSMBQ3V4.js} +1 -1
- package/dist/{workspaces-2XW2DMRG.js → workspaces-FRR6Y4BY.js} +3 -3
- package/dist/{workspaces-T6PMQZYQ.js → workspaces-VIUUE4RT.js} +3 -3
- package/dist/{worktree-2OEMMFRT.js → worktree-3MEG62KB.js} +2 -2
- package/dist/{worktree-5ZGWKKZ6.js → worktree-GKUOHXXB.js} +2 -2
- package/package.json +1 -1
|
@@ -24,7 +24,7 @@ import {
|
|
|
24
24
|
resolveQuotaFallbackAgent,
|
|
25
25
|
stripBrightsyNdjsonNoise,
|
|
26
26
|
toolDescription
|
|
27
|
-
} from "./chunk-
|
|
27
|
+
} from "./chunk-IRCAWYTN.js";
|
|
28
28
|
import {
|
|
29
29
|
SLACK_REPLY_FORMATTING,
|
|
30
30
|
addWorkspace,
|
|
@@ -47,7 +47,7 @@ import {
|
|
|
47
47
|
stageAbsolutePathsAsAttachments,
|
|
48
48
|
stageBuffersAsAttachments,
|
|
49
49
|
syncWorkspacesFromThreads
|
|
50
|
-
} from "./chunk-
|
|
50
|
+
} from "./chunk-2PE6SZCM.js";
|
|
51
51
|
import {
|
|
52
52
|
addPrStackLayer,
|
|
53
53
|
allocateTeamName,
|
|
@@ -97,7 +97,7 @@ import {
|
|
|
97
97
|
worktreeDisplayLabelForGroup,
|
|
98
98
|
worktreeNameFromPath,
|
|
99
99
|
worktreeSlugForTicket
|
|
100
|
-
} from "./chunk-
|
|
100
|
+
} from "./chunk-NRKDRQM3.js";
|
|
101
101
|
import {
|
|
102
102
|
ATTACHMENTS_DIR,
|
|
103
103
|
DETACHED_JOBS_DIR,
|
|
@@ -189,7 +189,7 @@ import {
|
|
|
189
189
|
updateThread,
|
|
190
190
|
withThreadLock,
|
|
191
191
|
writeThread
|
|
192
|
-
} from "./chunk-
|
|
192
|
+
} from "./chunk-JJ3ONQ4Q.js";
|
|
193
193
|
import {
|
|
194
194
|
appDataDir,
|
|
195
195
|
findConventionSetup,
|
|
@@ -483,7 +483,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
483
483
|
await continueOnReply(threadId, prompt);
|
|
484
484
|
return;
|
|
485
485
|
}
|
|
486
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
486
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-QMGH4V4K.js");
|
|
487
487
|
await getOrchestrator2().send(threadId, prompt);
|
|
488
488
|
} catch {
|
|
489
489
|
}
|
|
@@ -817,9 +817,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
|
|
|
817
817
|
`Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
|
|
818
818
|
);
|
|
819
819
|
}
|
|
820
|
-
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-
|
|
820
|
+
const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-NG2TBUI5.js");
|
|
821
821
|
if (isGlobalThread2(thread)) {
|
|
822
|
-
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-
|
|
822
|
+
const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-LMTMWCPN.js");
|
|
823
823
|
ensureGlobalCoordinatorCwd2(
|
|
824
824
|
isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
|
|
825
825
|
);
|
|
@@ -2606,6 +2606,7 @@ function stripArchivedTranscript(thread) {
|
|
|
2606
2606
|
...thread,
|
|
2607
2607
|
attachments: [],
|
|
2608
2608
|
pendingTurnAttachments: [],
|
|
2609
|
+
queueAttachments: [],
|
|
2609
2610
|
messages: [historyRetentionStubMessage(thread)]
|
|
2610
2611
|
},
|
|
2611
2612
|
{ touch: false }
|
|
@@ -4038,7 +4039,7 @@ async function createThread(input, _onSetupLine) {
|
|
|
4038
4039
|
return readThread(thread.id) ?? thread;
|
|
4039
4040
|
}
|
|
4040
4041
|
async function listLinearIssues(agent, repoPath) {
|
|
4041
|
-
const { getAdapter: getAdapter2 } = await import("./agents-
|
|
4042
|
+
const { getAdapter: getAdapter2 } = await import("./agents-GQANI7M5.js");
|
|
4042
4043
|
await requireAgent(agent, { requireLinear: true });
|
|
4043
4044
|
const adapter = getAdapter2(agent);
|
|
4044
4045
|
if (!adapter.listLinearIssues) {
|
|
@@ -4484,7 +4485,7 @@ async function adoptThread(input) {
|
|
|
4484
4485
|
messages: input.messages ?? []
|
|
4485
4486
|
});
|
|
4486
4487
|
writeThread(thread);
|
|
4487
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
4488
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-FRR6Y4BY.js");
|
|
4488
4489
|
await ensureWorkspace2(repoPath);
|
|
4489
4490
|
const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-X54WSOXM.js");
|
|
4490
4491
|
await ensureWorktreeSideboardIgnored2(input.worktreePath);
|
|
@@ -6244,24 +6245,56 @@ function expandComposerPrompt(worktreePath, prompt, opts) {
|
|
|
6244
6245
|
|
|
6245
6246
|
// src/composer/consume-attachments.ts
|
|
6246
6247
|
function consumeComposerAttachments(thread) {
|
|
6247
|
-
if (thread.attachments.length === 0) {
|
|
6248
|
-
return {
|
|
6249
|
-
attachments: [],
|
|
6250
|
-
pendingTurnAttachments: thread.pendingTurnAttachments ?? []
|
|
6251
|
-
};
|
|
6252
|
-
}
|
|
6253
6248
|
return {
|
|
6254
6249
|
attachments: [],
|
|
6255
|
-
|
|
6256
|
-
...thread.pendingTurnAttachments ?? [],
|
|
6257
|
-
...thread.attachments
|
|
6258
|
-
]
|
|
6250
|
+
consumed: [...thread.attachments]
|
|
6259
6251
|
};
|
|
6260
6252
|
}
|
|
6261
6253
|
function takePendingTurnAttachments(thread) {
|
|
6262
6254
|
const pending = thread.pendingTurnAttachments ?? [];
|
|
6263
|
-
if (pending.length
|
|
6264
|
-
return [...
|
|
6255
|
+
if (pending.length > 0) return [...pending];
|
|
6256
|
+
return thread.attachments.length > 0 ? [...thread.attachments] : [];
|
|
6257
|
+
}
|
|
6258
|
+
function alignQueueAttachments(queueLength, existing) {
|
|
6259
|
+
const next = (existing ?? []).slice(0, queueLength).map((slot) => [...slot ?? []]);
|
|
6260
|
+
while (next.length < queueLength) next.push([]);
|
|
6261
|
+
return next;
|
|
6262
|
+
}
|
|
6263
|
+
function appendQueuedItem(queue, queueAttachments, prompt, attachments = []) {
|
|
6264
|
+
return {
|
|
6265
|
+
queue: [...queue, prompt],
|
|
6266
|
+
queueAttachments: [...alignQueueAttachments(queue.length, queueAttachments), [...attachments]]
|
|
6267
|
+
};
|
|
6268
|
+
}
|
|
6269
|
+
function prependQueuedItem(queue, queueAttachments, prompt, attachments = []) {
|
|
6270
|
+
return {
|
|
6271
|
+
queue: [prompt, ...queue],
|
|
6272
|
+
queueAttachments: [[...attachments], ...alignQueueAttachments(queue.length, queueAttachments)]
|
|
6273
|
+
};
|
|
6274
|
+
}
|
|
6275
|
+
function removeQueuedItem(queue, queueAttachments, index) {
|
|
6276
|
+
const aligned = alignQueueAttachments(queue.length, queueAttachments);
|
|
6277
|
+
return {
|
|
6278
|
+
queue: queue.filter((_, i) => i !== index),
|
|
6279
|
+
queueAttachments: aligned.filter((_, i) => i !== index)
|
|
6280
|
+
};
|
|
6281
|
+
}
|
|
6282
|
+
function moveQueuedItemToFront(queue, queueAttachments, index) {
|
|
6283
|
+
const aligned = alignQueueAttachments(queue.length, queueAttachments);
|
|
6284
|
+
return {
|
|
6285
|
+
queue: [queue[index], ...queue.filter((_, i) => i !== index)],
|
|
6286
|
+
queueAttachments: [aligned[index] ?? [], ...aligned.filter((_, i) => i !== index)]
|
|
6287
|
+
};
|
|
6288
|
+
}
|
|
6289
|
+
function shiftQueuedItem(queue, queueAttachments) {
|
|
6290
|
+
if (queue.length === 0) return null;
|
|
6291
|
+
const aligned = alignQueueAttachments(queue.length, queueAttachments);
|
|
6292
|
+
return {
|
|
6293
|
+
prompt: queue[0],
|
|
6294
|
+
attachments: aligned[0] ?? [],
|
|
6295
|
+
queue: queue.slice(1),
|
|
6296
|
+
queueAttachments: aligned.slice(1)
|
|
6297
|
+
};
|
|
6265
6298
|
}
|
|
6266
6299
|
|
|
6267
6300
|
// src/agents/instructions.ts
|
|
@@ -7090,7 +7123,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
7090
7123
|
${prompt}`;
|
|
7091
7124
|
}
|
|
7092
7125
|
async function defaultDeps() {
|
|
7093
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
7126
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-QMGH4V4K.js");
|
|
7094
7127
|
const orch = getOrchestrator2();
|
|
7095
7128
|
return {
|
|
7096
7129
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -7570,9 +7603,9 @@ var Orchestrator = class {
|
|
|
7570
7603
|
if (!thread || thread.status === "archived") return;
|
|
7571
7604
|
this.crashContinued.add(threadId);
|
|
7572
7605
|
const prompt = formatAgentErrorContinuePrompt(opts.detail);
|
|
7573
|
-
const
|
|
7574
|
-
updateThread(threadId,
|
|
7575
|
-
this.emit({ type: "queue_changed", threadId, queue });
|
|
7606
|
+
const next = prependQueuedItem(thread.queue, thread.queueAttachments, prompt);
|
|
7607
|
+
updateThread(threadId, next);
|
|
7608
|
+
this.emit({ type: "queue_changed", threadId, queue: next.queue });
|
|
7576
7609
|
this.haltDrain.delete(threadId);
|
|
7577
7610
|
}
|
|
7578
7611
|
/**
|
|
@@ -7601,9 +7634,9 @@ var Orchestrator = class {
|
|
|
7601
7634
|
}
|
|
7602
7635
|
if (decision.action === "nudge") this.jobContinueNudged.add(threadId);
|
|
7603
7636
|
else this.jobContinueCount.set(threadId, (this.jobContinueCount.get(threadId) ?? 0) + 1);
|
|
7604
|
-
const
|
|
7605
|
-
updateThread(threadId,
|
|
7606
|
-
this.emit({ type: "queue_changed", threadId, queue });
|
|
7637
|
+
const next = prependQueuedItem(thread.queue, thread.queueAttachments, decision.prompt);
|
|
7638
|
+
updateThread(threadId, next);
|
|
7639
|
+
this.emit({ type: "queue_changed", threadId, queue: next.queue });
|
|
7607
7640
|
this.haltDrain.delete(threadId);
|
|
7608
7641
|
}
|
|
7609
7642
|
getThreads(includeArchived = false) {
|
|
@@ -7711,18 +7744,22 @@ var Orchestrator = class {
|
|
|
7711
7744
|
throw new Error(`Thread is archived: ${thread.id}`);
|
|
7712
7745
|
}
|
|
7713
7746
|
const followUp = resolveSendFollowUp(current, opts?.followUp);
|
|
7714
|
-
const
|
|
7747
|
+
const consumed = consumeComposerAttachments(current);
|
|
7748
|
+
const queued = appendQueuedItem(
|
|
7749
|
+
current.queue,
|
|
7750
|
+
current.queueAttachments,
|
|
7751
|
+
prompt,
|
|
7752
|
+
consumed.consumed
|
|
7753
|
+
);
|
|
7715
7754
|
this.crashContinued.delete(thread.id);
|
|
7716
7755
|
this.jobContinueCount.delete(thread.id);
|
|
7717
7756
|
this.jobContinueNudged.delete(thread.id);
|
|
7718
7757
|
this.haltDrain.delete(thread.id);
|
|
7719
7758
|
const inFlight = this.activeTurns.has(thread.id) || this.startingTurns.has(thread.id) || current.status === "running";
|
|
7720
7759
|
shouldSteer = followUp === "steer" && (inFlight || current.queue.length > 0);
|
|
7721
|
-
const patch =
|
|
7722
|
-
if (
|
|
7723
|
-
const consumed = consumeComposerAttachments(current);
|
|
7760
|
+
const patch = queued;
|
|
7761
|
+
if (consumed.consumed.length > 0) {
|
|
7724
7762
|
patch.attachments = consumed.attachments;
|
|
7725
|
-
patch.pendingTurnAttachments = consumed.pendingTurnAttachments;
|
|
7726
7763
|
}
|
|
7727
7764
|
if (!inFlight) patch.status = "queued";
|
|
7728
7765
|
const pid = current.agentPid;
|
|
@@ -7730,7 +7767,7 @@ var Orchestrator = class {
|
|
|
7730
7767
|
patch.agentPid = null;
|
|
7731
7768
|
}
|
|
7732
7769
|
updateThread(thread.id, patch);
|
|
7733
|
-
this.emit({ type: "queue_changed", threadId: thread.id, queue });
|
|
7770
|
+
this.emit({ type: "queue_changed", threadId: thread.id, queue: queued.queue });
|
|
7734
7771
|
if (!inFlight) {
|
|
7735
7772
|
this.emit({ type: "status_changed", threadId: thread.id, status: "queued" });
|
|
7736
7773
|
}
|
|
@@ -7772,14 +7809,17 @@ var Orchestrator = class {
|
|
|
7772
7809
|
return withThreadLock(thread.id, async () => {
|
|
7773
7810
|
const current = this.requireThread(thread.id);
|
|
7774
7811
|
if (index < 0 || index >= current.queue.length) return current;
|
|
7775
|
-
const
|
|
7776
|
-
const stillQueued = queue.length > 0;
|
|
7812
|
+
const removed = removeQueuedItem(current.queue, current.queueAttachments, index);
|
|
7813
|
+
const stillQueued = removed.queue.length > 0;
|
|
7777
7814
|
const inFlight = this.activeTurns.has(thread.id) || this.startingTurns.has(thread.id);
|
|
7778
7815
|
updateThread(thread.id, {
|
|
7779
|
-
|
|
7816
|
+
...removed,
|
|
7817
|
+
// Old sends parked on pendingTurnAttachments; drop that bag when the
|
|
7818
|
+
// follow-up that owned it is gone so a later turn cannot inherit it.
|
|
7819
|
+
...stillQueued ? {} : { pendingTurnAttachments: [] },
|
|
7780
7820
|
status: !stillQueued && !inFlight && current.status === "queued" ? "idle" : current.status
|
|
7781
7821
|
});
|
|
7782
|
-
this.emit({ type: "queue_changed", threadId: thread.id, queue });
|
|
7822
|
+
this.emit({ type: "queue_changed", threadId: thread.id, queue: removed.queue });
|
|
7783
7823
|
const next = this.requireThread(thread.id);
|
|
7784
7824
|
this.emit({ type: "status_changed", threadId: thread.id, status: next.status });
|
|
7785
7825
|
return next;
|
|
@@ -7795,12 +7835,10 @@ var Orchestrator = class {
|
|
|
7795
7835
|
const promoted = await withThreadLock(thread.id, async () => {
|
|
7796
7836
|
const current2 = this.requireThread(thread.id);
|
|
7797
7837
|
if (index < 0 || index >= current2.queue.length) return false;
|
|
7798
|
-
const
|
|
7799
|
-
const rest = current2.queue.filter((_, i) => i !== index);
|
|
7800
|
-
const queue = [item, ...rest];
|
|
7838
|
+
const next = moveQueuedItemToFront(current2.queue, current2.queueAttachments, index);
|
|
7801
7839
|
this.haltDrain.delete(thread.id);
|
|
7802
|
-
updateThread(thread.id,
|
|
7803
|
-
this.emit({ type: "queue_changed", threadId: thread.id, queue });
|
|
7840
|
+
updateThread(thread.id, next);
|
|
7841
|
+
this.emit({ type: "queue_changed", threadId: thread.id, queue: next.queue });
|
|
7804
7842
|
return true;
|
|
7805
7843
|
});
|
|
7806
7844
|
if (!promoted) return this.requireThread(thread.id);
|
|
@@ -7855,11 +7893,15 @@ var Orchestrator = class {
|
|
|
7855
7893
|
}
|
|
7856
7894
|
continue;
|
|
7857
7895
|
}
|
|
7858
|
-
const
|
|
7859
|
-
|
|
7860
|
-
updateThread(threadId, {
|
|
7861
|
-
|
|
7862
|
-
|
|
7896
|
+
const shifted = shiftQueuedItem(thread.queue, thread.queueAttachments);
|
|
7897
|
+
if (!shifted) break;
|
|
7898
|
+
updateThread(threadId, {
|
|
7899
|
+
queue: shifted.queue,
|
|
7900
|
+
queueAttachments: shifted.queueAttachments,
|
|
7901
|
+
...shifted.attachments.length > 0 ? { pendingTurnAttachments: shifted.attachments } : {}
|
|
7902
|
+
});
|
|
7903
|
+
this.emit({ type: "queue_changed", threadId, queue: shifted.queue });
|
|
7904
|
+
await this.runTurn(threadId, shifted.prompt);
|
|
7863
7905
|
}
|
|
7864
7906
|
} finally {
|
|
7865
7907
|
this.draining.delete(threadId);
|
|
@@ -7904,6 +7946,7 @@ var Orchestrator = class {
|
|
|
7904
7946
|
thread = this.requireThread(threadId);
|
|
7905
7947
|
}
|
|
7906
7948
|
const autoContinue = isJobContinuePrompt(prompt) || prompt.trim().startsWith("The previous agent process ended before it finished.");
|
|
7949
|
+
const parkedSnapshot = thread.pendingTurnAttachments ?? [];
|
|
7907
7950
|
const parked = takePendingTurnAttachments(thread);
|
|
7908
7951
|
const sentAttachments = !autoContinue && parked.length > 0 ? parked : void 0;
|
|
7909
7952
|
appendMessage(threadId, {
|
|
@@ -7973,7 +8016,10 @@ var Orchestrator = class {
|
|
|
7973
8016
|
expandedPrompt
|
|
7974
8017
|
].filter(Boolean).join("\n\n");
|
|
7975
8018
|
if (!autoContinue && sentAttachments) {
|
|
7976
|
-
updateThread(
|
|
8019
|
+
updateThread(
|
|
8020
|
+
threadId,
|
|
8021
|
+
parkedSnapshot.length > 0 ? { pendingTurnAttachments: [] } : { attachments: [], pendingTurnAttachments: [] }
|
|
8022
|
+
);
|
|
7977
8023
|
}
|
|
7978
8024
|
const adapter = getAdapter(thread.agent);
|
|
7979
8025
|
const resolved = await adapter.resolveSessionId(thread.worktreePath, thread.sessionId);
|
|
@@ -8389,7 +8435,7 @@ var Orchestrator = class {
|
|
|
8389
8435
|
}
|
|
8390
8436
|
if (clearQueue && thread.queue.length > 0) {
|
|
8391
8437
|
this.haltDrain.delete(thread.id);
|
|
8392
|
-
updateThread(thread.id, { queue: [] });
|
|
8438
|
+
updateThread(thread.id, { queue: [], queueAttachments: [] });
|
|
8393
8439
|
this.emit({ type: "queue_changed", threadId: thread.id, queue: [] });
|
|
8394
8440
|
} else if (!clearQueue && !continueQueue) {
|
|
8395
8441
|
this.haltDrain.add(thread.id);
|
|
@@ -9299,7 +9345,7 @@ var Orchestrator = class {
|
|
|
9299
9345
|
this.enforceHistoryRetention();
|
|
9300
9346
|
if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
|
|
9301
9347
|
try {
|
|
9302
|
-
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-
|
|
9348
|
+
const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-FRR6Y4BY.js");
|
|
9303
9349
|
await ensureWorkspace2(thread.repoPath);
|
|
9304
9350
|
} catch {
|
|
9305
9351
|
}
|
|
@@ -9353,7 +9399,7 @@ var Orchestrator = class {
|
|
|
9353
9399
|
`Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
|
|
9354
9400
|
);
|
|
9355
9401
|
}
|
|
9356
|
-
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-
|
|
9402
|
+
const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-GKUOHXXB.js");
|
|
9357
9403
|
const slug = thread.worktreePath.split("/").pop();
|
|
9358
9404
|
const dest = thread.worktreePath;
|
|
9359
9405
|
await withRepoGitLock(thread.repoPath, async () => {
|
|
@@ -9463,7 +9509,7 @@ async function startOrchestration(opts) {
|
|
|
9463
9509
|
sourceRef: "default",
|
|
9464
9510
|
...createOpts
|
|
9465
9511
|
}).catch(async () => {
|
|
9466
|
-
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-
|
|
9512
|
+
const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-GKUOHXXB.js");
|
|
9467
9513
|
const repo = await resolveRepoRoot2(repoPath);
|
|
9468
9514
|
const def = await resolveDefaultBranch2(repo);
|
|
9469
9515
|
return orch.createThread({
|
|
@@ -9473,7 +9519,7 @@ async function startOrchestration(opts) {
|
|
|
9473
9519
|
repoPath: repo
|
|
9474
9520
|
});
|
|
9475
9521
|
});
|
|
9476
|
-
const { updateThread: upd } = await import("./thread-store-
|
|
9522
|
+
const { updateThread: upd } = await import("./thread-store-4M6WETL6.js");
|
|
9477
9523
|
const updated = upd(thread.id, {
|
|
9478
9524
|
sourceType: "orchestration",
|
|
9479
9525
|
sourceRef: goal
|
|
@@ -9690,6 +9736,12 @@ export {
|
|
|
9690
9736
|
expandComposerPrompt,
|
|
9691
9737
|
consumeComposerAttachments,
|
|
9692
9738
|
takePendingTurnAttachments,
|
|
9739
|
+
alignQueueAttachments,
|
|
9740
|
+
appendQueuedItem,
|
|
9741
|
+
prependQueuedItem,
|
|
9742
|
+
removeQueuedItem,
|
|
9743
|
+
moveQueuedItemToFront,
|
|
9744
|
+
shiftQueuedItem,
|
|
9693
9745
|
packagedDetachedJobPath,
|
|
9694
9746
|
resolveDetachedJobScript,
|
|
9695
9747
|
formatDetachedJobInvoke,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
resolveRepoRoot,
|
|
8
8
|
takenSlugsFromThread,
|
|
9
9
|
teamSlugFromName
|
|
10
|
-
} from "./chunk-
|
|
10
|
+
} from "./chunk-VPQXJYIW.js";
|
|
11
11
|
import {
|
|
12
12
|
ATTACHMENTS_DIR,
|
|
13
13
|
attachmentsGitignoreBody
|
|
@@ -17,7 +17,7 @@ import {
|
|
|
17
17
|
listThreads,
|
|
18
18
|
updateThread,
|
|
19
19
|
writeThread
|
|
20
|
-
} from "./chunk-
|
|
20
|
+
} from "./chunk-GHKFSBES.js";
|
|
21
21
|
import {
|
|
22
22
|
assertOrchestratorCapableAgent,
|
|
23
23
|
formatAccountProfilePlaybookLine,
|
|
@@ -9,10 +9,10 @@ import {
|
|
|
9
9
|
enrichWorkspacesWithGithub,
|
|
10
10
|
ensureGlobalCoordinatorCwd,
|
|
11
11
|
formatWorkspaceInventory
|
|
12
|
-
} from "./chunk-
|
|
13
|
-
import "./chunk-
|
|
12
|
+
} from "./chunk-WNVQJZ7P.js";
|
|
13
|
+
import "./chunk-VPQXJYIW.js";
|
|
14
14
|
import "./chunk-D6JWYJ4P.js";
|
|
15
|
-
import "./chunk-
|
|
15
|
+
import "./chunk-GHKFSBES.js";
|
|
16
16
|
import "./chunk-X5B3OS5I.js";
|
|
17
17
|
import "./chunk-SYFVUF2C.js";
|
|
18
18
|
import "./chunk-FNQNJOHY.js";
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
enrichWorkspacesWithGithub,
|
|
8
8
|
ensureGlobalCoordinatorCwd,
|
|
9
9
|
formatWorkspaceInventory
|
|
10
|
-
} from "./chunk-
|
|
11
|
-
import "./chunk-
|
|
10
|
+
} from "./chunk-2PE6SZCM.js";
|
|
11
|
+
import "./chunk-NRKDRQM3.js";
|
|
12
12
|
import "./chunk-6K64FJDD.js";
|
|
13
13
|
import "./chunk-QQKDGPUI.js";
|
|
14
14
|
import "./chunk-L5CIEBLR.js";
|
|
15
15
|
import "./chunk-4TR3HZFT.js";
|
|
16
16
|
import "./chunk-WDRMZKVB.js";
|
|
17
17
|
import "./chunk-JT7R45JB.js";
|
|
18
|
-
import "./chunk-
|
|
18
|
+
import "./chunk-JJ3ONQ4Q.js";
|
|
19
19
|
import "./chunk-7J72QJOM.js";
|
|
20
20
|
import "./chunk-77WWLBCI.js";
|
|
21
21
|
import "./chunk-WFUDY6PC.js";
|
|
@@ -15,15 +15,15 @@ import {
|
|
|
15
15
|
orchestratorSessionPoisonedByBuiltins,
|
|
16
16
|
slackCoordinatorSourceRef,
|
|
17
17
|
takenTeamSlugsForOrchestration
|
|
18
|
-
} from "./chunk-
|
|
19
|
-
import "./chunk-
|
|
18
|
+
} from "./chunk-2PE6SZCM.js";
|
|
19
|
+
import "./chunk-NRKDRQM3.js";
|
|
20
20
|
import "./chunk-6K64FJDD.js";
|
|
21
21
|
import "./chunk-QQKDGPUI.js";
|
|
22
22
|
import "./chunk-L5CIEBLR.js";
|
|
23
23
|
import "./chunk-4TR3HZFT.js";
|
|
24
24
|
import "./chunk-WDRMZKVB.js";
|
|
25
25
|
import "./chunk-JT7R45JB.js";
|
|
26
|
-
import "./chunk-
|
|
26
|
+
import "./chunk-JJ3ONQ4Q.js";
|
|
27
27
|
import "./chunk-7J72QJOM.js";
|
|
28
28
|
import "./chunk-77WWLBCI.js";
|
|
29
29
|
import {
|
|
@@ -17,10 +17,10 @@ import {
|
|
|
17
17
|
orchestratorSessionPoisonedByBuiltins,
|
|
18
18
|
slackCoordinatorSourceRef,
|
|
19
19
|
takenTeamSlugsForOrchestration
|
|
20
|
-
} from "./chunk-
|
|
21
|
-
import "./chunk-
|
|
20
|
+
} from "./chunk-WNVQJZ7P.js";
|
|
21
|
+
import "./chunk-VPQXJYIW.js";
|
|
22
22
|
import "./chunk-D6JWYJ4P.js";
|
|
23
|
-
import "./chunk-
|
|
23
|
+
import "./chunk-GHKFSBES.js";
|
|
24
24
|
import "./chunk-X5B3OS5I.js";
|
|
25
25
|
import "./chunk-SYFVUF2C.js";
|
|
26
26
|
import "./chunk-FNQNJOHY.js";
|