@sideboard-ai/core 0.1.43 → 0.1.45
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/cursor-runner.js +1 -1
- package/dist/{agents-T3EA7GZV.js → agents-JSHCAZUZ.js} +15 -5
- package/dist/{app-settings-ZKVZHJPQ.js → app-settings-LYGVDGZY.js} +5 -1
- package/dist/{chunk-Z2BQMXVM.js → chunk-6NAPN2N5.js} +6 -2
- package/dist/{chunk-VC7NORFX.js → chunk-ANZ566Z5.js} +184 -3
- package/dist/{chunk-7PCTK4WO.js → chunk-FV6FN6V5.js} +1 -1
- package/dist/{chunk-AGU52GTV.js → chunk-I6QGZOOS.js} +488 -32
- package/dist/{chunk-PU27NUO4.js → chunk-J5JTEJ5O.js} +7 -2
- package/dist/{chunk-ENSD62HW.js → chunk-O6W3P7V3.js} +3 -1
- package/dist/{chunk-FUCEOJFO.js → chunk-U3EQKJHA.js} +2 -2
- package/dist/{chunk-FSIK442J.js → chunk-WYY3J7GR.js} +21 -0
- package/dist/{chunk-X6P2QVRJ.js → chunk-ZNSM2DDD.js} +3 -3
- package/dist/{coordinator-prompt-BHXBQRPM.js → coordinator-prompt-2XFYG3C5.js} +3 -3
- package/dist/{global-workspace-SNN45OCN.js → global-workspace-YFOQUGWD.js} +4 -4
- package/dist/index.cjs +735 -25
- package/dist/index.d.cts +107 -2
- package/dist/index.d.ts +107 -2
- package/dist/index.js +35 -9
- package/dist/mcp/run-stdio.cjs +805 -123
- package/dist/mcp/run-stdio.js +9 -9
- package/dist/{thread-store-EHROA3VZ.js → thread-store-OV2X6PYO.js} +1 -1
- package/dist/{workspaces-AUYIJ64Z.js → workspaces-TIKLNDW3.js} +5 -5
- package/dist/{worktree-N4PRV4V3.js → worktree-TEDAJ57S.js} +2 -2
- package/package.json +1 -1
|
@@ -102,11 +102,15 @@ function humanizeAgentFailDetail(detail) {
|
|
|
102
102
|
}
|
|
103
103
|
function formatTurnExitError(exitCode, stderrSummary) {
|
|
104
104
|
const code = exitCode ?? 1;
|
|
105
|
-
const
|
|
105
|
+
const raw = stderrSummary.trim();
|
|
106
|
+
if (/^exit\s*\d+$/i.test(raw)) {
|
|
107
|
+
return `exit ${code}: agent exited without details (credits, auth, rate limits, or a CLI error)`;
|
|
108
|
+
}
|
|
109
|
+
const detail = humanizeAgentFailDetail(raw);
|
|
106
110
|
if (!detail) {
|
|
107
111
|
return `exit ${code}: agent exited without details (credits, auth, rate limits, or a CLI error)`;
|
|
108
112
|
}
|
|
109
|
-
if (looksLikeAgentFailureMessage(
|
|
113
|
+
if (looksLikeAgentFailureMessage(raw)) return detail;
|
|
110
114
|
return `exit ${code}: ${detail}`;
|
|
111
115
|
}
|
|
112
116
|
|
|
@@ -210,6 +214,7 @@ export {
|
|
|
210
214
|
summarizeTurnStderr,
|
|
211
215
|
looksLikeAgentFailureMessage,
|
|
212
216
|
fallbackTurnFailDetail,
|
|
217
|
+
humanizeAgentFailDetail,
|
|
213
218
|
formatTurnExitError,
|
|
214
219
|
cursorSdkMessageToEvents,
|
|
215
220
|
parseCursorRunnerLine
|
|
@@ -40,7 +40,9 @@ function normalizeThread(raw) {
|
|
|
40
40
|
attachments: Array.isArray(raw.attachments) ? raw.attachments : [],
|
|
41
41
|
prTitle: raw.prTitle ?? null,
|
|
42
42
|
userSetTitle: Boolean(raw.userSetTitle),
|
|
43
|
-
activeRuns: Array.isArray(raw.activeRuns) ? raw.activeRuns : []
|
|
43
|
+
activeRuns: Array.isArray(raw.activeRuns) ? raw.activeRuns : [],
|
|
44
|
+
quotaResumeAt: raw.quotaResumeAt ?? null,
|
|
45
|
+
quotaContinuedFromId: raw.quotaContinuedFromId ?? null
|
|
44
46
|
};
|
|
45
47
|
}
|
|
46
48
|
function createEmptyThread(partial) {
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import {
|
|
2
2
|
isGlobalRepoPath
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-ZNSM2DDD.js";
|
|
4
4
|
import {
|
|
5
5
|
ensureGhPreferOrigin,
|
|
6
6
|
resolveRepoRoot
|
|
7
|
-
} from "./chunk-
|
|
7
|
+
} from "./chunk-FV6FN6V5.js";
|
|
8
8
|
import {
|
|
9
9
|
appDataDir
|
|
10
10
|
} from "./chunk-M37RITA6.js";
|
|
@@ -130,6 +130,12 @@ function normalizeAdvanced(raw) {
|
|
|
130
130
|
if (typeof source.autoCleanupOrphans === "boolean") {
|
|
131
131
|
out.autoCleanupOrphans = source.autoCleanupOrphans;
|
|
132
132
|
}
|
|
133
|
+
if (source.orchestrationQuotaOnLimit === "switch_agent" || source.orchestrationQuotaOnLimit === "wait_reset") {
|
|
134
|
+
out.orchestrationQuotaOnLimit = source.orchestrationQuotaOnLimit;
|
|
135
|
+
}
|
|
136
|
+
if (typeof source.orchestrationQuotaFallbackAgent === "string" && DEFAULT_AGENTS.has(source.orchestrationQuotaFallbackAgent)) {
|
|
137
|
+
out.orchestrationQuotaFallbackAgent = source.orchestrationQuotaFallbackAgent;
|
|
138
|
+
}
|
|
133
139
|
return out;
|
|
134
140
|
}
|
|
135
141
|
function normalizeSettings(raw) {
|
|
@@ -372,6 +378,12 @@ function updateAdvancedSettings(patch) {
|
|
|
372
378
|
if (typeof patch.autoCleanupOrphans === "boolean") {
|
|
373
379
|
advanced.autoCleanupOrphans = patch.autoCleanupOrphans;
|
|
374
380
|
}
|
|
381
|
+
if (patch.orchestrationQuotaOnLimit === "switch_agent" || patch.orchestrationQuotaOnLimit === "wait_reset") {
|
|
382
|
+
advanced.orchestrationQuotaOnLimit = patch.orchestrationQuotaOnLimit;
|
|
383
|
+
}
|
|
384
|
+
if (typeof patch.orchestrationQuotaFallbackAgent === "string" && DEFAULT_AGENTS.has(patch.orchestrationQuotaFallbackAgent)) {
|
|
385
|
+
advanced.orchestrationQuotaFallbackAgent = patch.orchestrationQuotaFallbackAgent;
|
|
386
|
+
}
|
|
375
387
|
return saveAppSettings({ ...current, advanced });
|
|
376
388
|
}
|
|
377
389
|
function autoRenameBranchEnabled(settings = loadAppSettings()) {
|
|
@@ -392,6 +404,13 @@ function deleteBranchOnPurgeEnabled(settings = loadAppSettings()) {
|
|
|
392
404
|
function autoCleanupOrphansEnabled(settings = loadAppSettings()) {
|
|
393
405
|
return Boolean(settings.advanced.autoCleanupOrphans);
|
|
394
406
|
}
|
|
407
|
+
function orchestrationQuotaOnLimit(settings = loadAppSettings()) {
|
|
408
|
+
return settings.advanced.orchestrationQuotaOnLimit ?? "switch_agent";
|
|
409
|
+
}
|
|
410
|
+
function orchestrationQuotaFallbackAgent(settings = loadAppSettings()) {
|
|
411
|
+
const preferred = settings.advanced.orchestrationQuotaFallbackAgent;
|
|
412
|
+
return preferred && DEFAULT_AGENTS.has(preferred) ? preferred : "cursor";
|
|
413
|
+
}
|
|
395
414
|
function maxConcurrentAgents(settings = loadAppSettings()) {
|
|
396
415
|
const n = settings.advanced.maxConcurrent;
|
|
397
416
|
if (typeof n === "number" && Number.isFinite(n)) {
|
|
@@ -459,6 +478,8 @@ export {
|
|
|
459
478
|
caffeinateWhileCloudConnectEnabled,
|
|
460
479
|
deleteBranchOnPurgeEnabled,
|
|
461
480
|
autoCleanupOrphansEnabled,
|
|
481
|
+
orchestrationQuotaOnLimit,
|
|
482
|
+
orchestrationQuotaFallbackAgent,
|
|
462
483
|
maxConcurrentAgents,
|
|
463
484
|
resolveClaudeExecutable,
|
|
464
485
|
claudeChromeEnabled,
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import {
|
|
2
2
|
ensureGlobalCoordinatorCwd
|
|
3
|
-
} from "./chunk-
|
|
3
|
+
} from "./chunk-6NAPN2N5.js";
|
|
4
4
|
import {
|
|
5
5
|
allocateTeamName,
|
|
6
6
|
takenSlugsFromThread,
|
|
7
7
|
teamSlugFromName
|
|
8
|
-
} from "./chunk-
|
|
8
|
+
} from "./chunk-FV6FN6V5.js";
|
|
9
9
|
import {
|
|
10
10
|
createEmptyThread,
|
|
11
11
|
listThreads,
|
|
12
12
|
updateThread,
|
|
13
13
|
writeThread
|
|
14
|
-
} from "./chunk-
|
|
14
|
+
} from "./chunk-O6W3P7V3.js";
|
|
15
15
|
import {
|
|
16
16
|
globalAgentCwd
|
|
17
17
|
} from "./chunk-M37RITA6.js";
|
|
@@ -6,9 +6,9 @@ import {
|
|
|
6
6
|
enrichWorkspacesWithGithub,
|
|
7
7
|
ensureGlobalCoordinatorCwd,
|
|
8
8
|
formatWorkspaceInventory
|
|
9
|
-
} from "./chunk-
|
|
10
|
-
import "./chunk-
|
|
11
|
-
import "./chunk-
|
|
9
|
+
} from "./chunk-6NAPN2N5.js";
|
|
10
|
+
import "./chunk-FV6FN6V5.js";
|
|
11
|
+
import "./chunk-O6W3P7V3.js";
|
|
12
12
|
import "./chunk-77WWLBCI.js";
|
|
13
13
|
import "./chunk-M37RITA6.js";
|
|
14
14
|
import "./chunk-AJ6ROGD7.js";
|
|
@@ -11,10 +11,10 @@ import {
|
|
|
11
11
|
orchestrationTitleNeedsSoccerNickname,
|
|
12
12
|
orchestratorSessionPoisonedByBuiltins,
|
|
13
13
|
takenTeamSlugsForOrchestration
|
|
14
|
-
} from "./chunk-
|
|
15
|
-
import "./chunk-
|
|
16
|
-
import "./chunk-
|
|
17
|
-
import "./chunk-
|
|
14
|
+
} from "./chunk-ZNSM2DDD.js";
|
|
15
|
+
import "./chunk-6NAPN2N5.js";
|
|
16
|
+
import "./chunk-FV6FN6V5.js";
|
|
17
|
+
import "./chunk-O6W3P7V3.js";
|
|
18
18
|
import "./chunk-77WWLBCI.js";
|
|
19
19
|
import {
|
|
20
20
|
globalAgentCwd
|