@sideboard-ai/core 0.1.304 → 0.1.306
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/{chunk-I34DCC4L.js → chunk-32IN7PXB.js} +2 -2
- package/dist/{chunk-33HIBNSF.js → chunk-WBCKUFXC.js} +2 -2
- package/dist/index.cjs +23 -1
- package/dist/index.js +25 -4
- package/dist/mcp/run-stdio.cjs +1 -1
- package/dist/mcp/run-stdio.js +1 -1
- package/dist/{orchestrator-JGHYZDDB.js → orchestrator-UXHU766C.js} +1 -1
- package/dist/{orchestrator-IKKSYIQ3.js → orchestrator-XP5S4E5F.js} +1 -1
- package/package.json +1 -1
|
@@ -6366,7 +6366,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6366
6366
|
${prompt}`;
|
|
6367
6367
|
}
|
|
6368
6368
|
async function defaultDeps() {
|
|
6369
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6369
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-UXHU766C.js");
|
|
6370
6370
|
const orch = getOrchestrator2();
|
|
6371
6371
|
return {
|
|
6372
6372
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -8582,7 +8582,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
8582
8582
|
}
|
|
8583
8583
|
async worktreeDirtyStat(threadRef) {
|
|
8584
8584
|
const thread = this.requireThread(threadRef);
|
|
8585
|
-
|
|
8585
|
+
if (isGlobalThread(thread)) return { additions: 0, deletions: 0, dirty: false };
|
|
8586
8586
|
return getWorktreeDirtyStat(thread.worktreePath);
|
|
8587
8587
|
}
|
|
8588
8588
|
async diffSummary(threadRef) {
|
|
@@ -6701,7 +6701,7 @@ function formatScheduledPrompt(name, prompt) {
|
|
|
6701
6701
|
${prompt}`;
|
|
6702
6702
|
}
|
|
6703
6703
|
async function defaultDeps() {
|
|
6704
|
-
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-
|
|
6704
|
+
const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-XP5S4E5F.js");
|
|
6705
6705
|
const orch = getOrchestrator2();
|
|
6706
6706
|
return {
|
|
6707
6707
|
findThread: (id) => findThreadByRef(id),
|
|
@@ -8917,7 +8917,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
8917
8917
|
}
|
|
8918
8918
|
async worktreeDirtyStat(threadRef) {
|
|
8919
8919
|
const thread = this.requireThread(threadRef);
|
|
8920
|
-
|
|
8920
|
+
if (isGlobalThread(thread)) return { additions: 0, deletions: 0, dirty: false };
|
|
8921
8921
|
return getWorktreeDirtyStat(thread.worktreePath);
|
|
8922
8922
|
}
|
|
8923
8923
|
async diffSummary(threadRef) {
|
package/dist/index.cjs
CHANGED
|
@@ -31047,7 +31047,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
31047
31047
|
}
|
|
31048
31048
|
async worktreeDirtyStat(threadRef) {
|
|
31049
31049
|
const thread = this.requireThread(threadRef);
|
|
31050
|
-
|
|
31050
|
+
if (isGlobalThread(thread)) return { additions: 0, deletions: 0, dirty: false };
|
|
31051
31051
|
return getWorktreeDirtyStat(thread.worktreePath);
|
|
31052
31052
|
}
|
|
31053
31053
|
async diffSummary(threadRef) {
|
|
@@ -35425,6 +35425,26 @@ function dispatchPhonePermission(text7, emit) {
|
|
|
35425
35425
|
return true;
|
|
35426
35426
|
}
|
|
35427
35427
|
|
|
35428
|
+
// src/remote/phone-pending-ask.ts
|
|
35429
|
+
init_ask_user();
|
|
35430
|
+
function republishPendingAsk(opts, chatId) {
|
|
35431
|
+
const thread = readPhoneThread(chatId);
|
|
35432
|
+
if (!thread) return;
|
|
35433
|
+
const pending = latestPendingPlanQuestions({ messages: thread.messages });
|
|
35434
|
+
if (!pending) return;
|
|
35435
|
+
emitControl(opts, {
|
|
35436
|
+
op: "ask",
|
|
35437
|
+
chatId,
|
|
35438
|
+
text: "",
|
|
35439
|
+
questions: pending.questions.map((question) => ({
|
|
35440
|
+
question: question.question,
|
|
35441
|
+
options: question.options.map(
|
|
35442
|
+
(option) => option.description ? { label: option.label, description: option.description } : { label: option.label }
|
|
35443
|
+
)
|
|
35444
|
+
}))
|
|
35445
|
+
});
|
|
35446
|
+
}
|
|
35447
|
+
|
|
35428
35448
|
// src/remote/phone-sources.ts
|
|
35429
35449
|
init_worktree();
|
|
35430
35450
|
|
|
@@ -37724,7 +37744,9 @@ function publishOpenedChat(opts, chatId) {
|
|
|
37724
37744
|
emitOpened(opts, opened);
|
|
37725
37745
|
if (opened.chat.status === "running" || opened.chat.status === "queued") {
|
|
37726
37746
|
deliverPhoneTurn(opts, opened.chat.id);
|
|
37747
|
+
return;
|
|
37727
37748
|
}
|
|
37749
|
+
republishPendingAsk(opts, opened.chat.id);
|
|
37728
37750
|
}
|
|
37729
37751
|
function applyPhoneOptions(chatId, draft) {
|
|
37730
37752
|
const patch = {};
|
package/dist/index.js
CHANGED
|
@@ -196,7 +196,7 @@ import {
|
|
|
196
196
|
worktreeCleanupSettings,
|
|
197
197
|
writeAgentBlock,
|
|
198
198
|
writeWorktreeFile
|
|
199
|
-
} from "./chunk-
|
|
199
|
+
} from "./chunk-WBCKUFXC.js";
|
|
200
200
|
import {
|
|
201
201
|
LEGACY_PLAN_FILE_REL,
|
|
202
202
|
PLAN_FILE_NAME,
|
|
@@ -3552,6 +3552,25 @@ function dispatchPhonePermission(text5, emit) {
|
|
|
3552
3552
|
return true;
|
|
3553
3553
|
}
|
|
3554
3554
|
|
|
3555
|
+
// src/remote/phone-pending-ask.ts
|
|
3556
|
+
function republishPendingAsk(opts, chatId) {
|
|
3557
|
+
const thread = readPhoneThread(chatId);
|
|
3558
|
+
if (!thread) return;
|
|
3559
|
+
const pending = latestPendingPlanQuestions({ messages: thread.messages });
|
|
3560
|
+
if (!pending) return;
|
|
3561
|
+
emitControl(opts, {
|
|
3562
|
+
op: "ask",
|
|
3563
|
+
chatId,
|
|
3564
|
+
text: "",
|
|
3565
|
+
questions: pending.questions.map((question) => ({
|
|
3566
|
+
question: question.question,
|
|
3567
|
+
options: question.options.map(
|
|
3568
|
+
(option) => option.description ? { label: option.label, description: option.description } : { label: option.label }
|
|
3569
|
+
)
|
|
3570
|
+
}))
|
|
3571
|
+
});
|
|
3572
|
+
}
|
|
3573
|
+
|
|
3555
3574
|
// src/integrations/github-issue-attachments.ts
|
|
3556
3575
|
var GITHUB_FILE_HOSTS = ["github.com", "githubusercontent.com"];
|
|
3557
3576
|
function isGitHubIssueAttachmentUrl(url) {
|
|
@@ -5813,7 +5832,9 @@ function publishOpenedChat(opts, chatId) {
|
|
|
5813
5832
|
emitOpened(opts, opened);
|
|
5814
5833
|
if (opened.chat.status === "running" || opened.chat.status === "queued") {
|
|
5815
5834
|
deliverPhoneTurn(opts, opened.chat.id);
|
|
5835
|
+
return;
|
|
5816
5836
|
}
|
|
5837
|
+
republishPendingAsk(opts, opened.chat.id);
|
|
5817
5838
|
}
|
|
5818
5839
|
function applyPhoneOptions(chatId, draft) {
|
|
5819
5840
|
const patch = {};
|
|
@@ -8850,7 +8871,7 @@ async function startHeadlessHost(opts) {
|
|
|
8850
8871
|
};
|
|
8851
8872
|
const refreshRunning = async () => {
|
|
8852
8873
|
try {
|
|
8853
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
8874
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-XP5S4E5F.js");
|
|
8854
8875
|
agentsRunning = getOrchestrator2().getRuntime().running;
|
|
8855
8876
|
} catch {
|
|
8856
8877
|
agentsRunning = 0;
|
|
@@ -10782,7 +10803,7 @@ async function handleJobStop(params, _ctx) {
|
|
|
10782
10803
|
return stopDetachedJob(jobCwd(rec), id, reason ? { reason } : void 0);
|
|
10783
10804
|
}
|
|
10784
10805
|
async function defaultTurnWait(ref, timeoutMs) {
|
|
10785
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
10806
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-XP5S4E5F.js");
|
|
10786
10807
|
const orch = getOrchestrator2();
|
|
10787
10808
|
const thread = await orch.waitForTurn(ref, timeoutMs, {
|
|
10788
10809
|
resolveIfStillRunning: true
|
|
@@ -14155,7 +14176,7 @@ async function continueSourceThread(threadId, prompt) {
|
|
|
14155
14176
|
await continueOnReply(threadId, prompt);
|
|
14156
14177
|
return;
|
|
14157
14178
|
}
|
|
14158
|
-
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-
|
|
14179
|
+
const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-XP5S4E5F.js");
|
|
14159
14180
|
await getOrchestrator2().send(threadId, prompt);
|
|
14160
14181
|
} catch {
|
|
14161
14182
|
}
|
package/dist/mcp/run-stdio.cjs
CHANGED
|
@@ -28655,7 +28655,7 @@ ${formatEnvReminder(projectNameForRepoPath(thread.repoPath || thread.worktreePat
|
|
|
28655
28655
|
}
|
|
28656
28656
|
async worktreeDirtyStat(threadRef) {
|
|
28657
28657
|
const thread = this.requireThread(threadRef);
|
|
28658
|
-
|
|
28658
|
+
if (isGlobalThread(thread)) return { additions: 0, deletions: 0, dirty: false };
|
|
28659
28659
|
return getWorktreeDirtyStat(thread.worktreePath);
|
|
28660
28660
|
}
|
|
28661
28661
|
async diffSummary(threadRef) {
|
package/dist/mcp/run-stdio.js
CHANGED