@sideboard-ai/core 0.1.44 → 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.
@@ -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-JM2TVGNW.js";
3
+ } from "./chunk-6NAPN2N5.js";
4
4
  import {
5
5
  allocateTeamName,
6
6
  takenSlugsFromThread,
7
7
  teamSlugFromName
8
- } from "./chunk-7PCTK4WO.js";
8
+ } from "./chunk-FV6FN6V5.js";
9
9
  import {
10
10
  createEmptyThread,
11
11
  listThreads,
12
12
  updateThread,
13
13
  writeThread
14
- } from "./chunk-ENSD62HW.js";
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-JM2TVGNW.js";
10
- import "./chunk-7PCTK4WO.js";
11
- import "./chunk-ENSD62HW.js";
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-I3PKMLFW.js";
15
- import "./chunk-JM2TVGNW.js";
16
- import "./chunk-7PCTK4WO.js";
17
- import "./chunk-ENSD62HW.js";
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