@sideboard-ai/core 0.1.199 → 0.1.201

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.
Files changed (39) hide show
  1. package/dist/{abletime-3CSCNAXU.js → abletime-345SE3B4.js} +2 -2
  2. package/dist/{abletime-H74RNIKV.js → abletime-KGPD3UUJ.js} +2 -2
  3. package/dist/{agents-BOYOK56K.js → agents-HB6N3XJL.js} +7 -5
  4. package/dist/{agents-AVH44CBS.js → agents-KFAGRM46.js} +7 -5
  5. package/dist/{app-settings-MMPLJHWF.js → app-settings-AXCURTZJ.js} +9 -1
  6. package/dist/{app-settings-FMTDH5RD.js → app-settings-V6IHESEQ.js} +9 -1
  7. package/dist/{chunk-DU2ICKLA.js → chunk-3TOGAUQT.js} +23 -9
  8. package/dist/{chunk-S4EEYOSU.js → chunk-54RSAMBH.js} +3 -3
  9. package/dist/{chunk-CA7PWMQ7.js → chunk-7AHAABKN.js} +1 -1
  10. package/dist/{chunk-PPVN3APP.js → chunk-AHPIU2VP.js} +113 -64
  11. package/dist/{chunk-2IQ6W47G.js → chunk-CXFW5LIH.js} +40 -3
  12. package/dist/{chunk-KJBYIIJU.js → chunk-DFUES6QU.js} +5 -0
  13. package/dist/{chunk-CTABTALL.js → chunk-EXZMNINM.js} +60 -43
  14. package/dist/{chunk-CJFBSQIB.js → chunk-INNLWYXW.js} +5 -0
  15. package/dist/{chunk-HQKGK4KO.js → chunk-ISV5IFH3.js} +40 -3
  16. package/dist/{chunk-BLOKJY4U.js → chunk-LJHC62LZ.js} +3 -3
  17. package/dist/{chunk-PTAMHXBT.js → chunk-PGQGP4FD.js} +1 -1
  18. package/dist/{chunk-QFABSE3Q.js → chunk-RPX6VDW7.js} +2 -2
  19. package/dist/{chunk-KI4YI72Y.js → chunk-RV3ZKE4Y.js} +45 -31
  20. package/dist/{chunk-DU4ID3DA.js → chunk-STPZQR5B.js} +2 -2
  21. package/dist/{coordinator-prompt-ROWPLVQ3.js → coordinator-prompt-BH4EHFOO.js} +4 -4
  22. package/dist/{coordinator-prompt-LB3GA3U4.js → coordinator-prompt-TY5FHAXC.js} +4 -4
  23. package/dist/{global-workspace-V2A4YKZ6.js → global-workspace-5AZEEQRU.js} +4 -4
  24. package/dist/{global-workspace-C5XKWCRH.js → global-workspace-NLLAPQJI.js} +4 -4
  25. package/dist/index.cjs +13458 -13261
  26. package/dist/index.d.cts +54 -14
  27. package/dist/index.d.ts +54 -14
  28. package/dist/index.js +93 -9
  29. package/dist/mcp/run-stdio.cjs +92 -24
  30. package/dist/mcp/run-stdio.js +9 -9
  31. package/dist/{orchestrator-AJGDZEAS.js → orchestrator-47JZUHRC.js} +6 -6
  32. package/dist/{orchestrator-NCGYNVYN.js → orchestrator-SWWQQFFD.js} +6 -6
  33. package/dist/{thread-store-M4B52FUS.js → thread-store-2SS5V5CN.js} +3 -1
  34. package/dist/{thread-store-CO77HV2K.js → thread-store-ZGVWPVHP.js} +3 -1
  35. package/dist/{workspaces-WIRJQ6HA.js → workspaces-PEWYWVHZ.js} +4 -4
  36. package/dist/{workspaces-GWEKIS3B.js → workspaces-RP76JH3J.js} +4 -4
  37. package/dist/{worktree-QA4J75FI.js → worktree-72TZWUSH.js} +3 -3
  38. package/dist/{worktree-UI5WJC3A.js → worktree-ZQEUKSNE.js} +3 -3
  39. package/package.json +1 -1
@@ -15,9 +15,9 @@ import {
15
15
  toAbleTimeIssueInfo,
16
16
  updateAbleTimeTask,
17
17
  verifyAbleTimeConnection
18
- } from "./chunk-CA7PWMQ7.js";
18
+ } from "./chunk-7AHAABKN.js";
19
19
  import "./chunk-N7WZ6NIN.js";
20
- import "./chunk-2IQ6W47G.js";
20
+ import "./chunk-CXFW5LIH.js";
21
21
  import "./chunk-4TR3HZFT.js";
22
22
  import "./chunk-WDRMZKVB.js";
23
23
  import "./chunk-JT7R45JB.js";
@@ -17,9 +17,9 @@ import {
17
17
  toAbleTimeIssueInfo,
18
18
  updateAbleTimeTask,
19
19
  verifyAbleTimeConnection
20
- } from "./chunk-PTAMHXBT.js";
20
+ } from "./chunk-PGQGP4FD.js";
21
21
  import "./chunk-VKQGAWHY.js";
22
- import "./chunk-HQKGK4KO.js";
22
+ import "./chunk-ISV5IFH3.js";
23
23
  import "./chunk-NSTQ6QKD.js";
24
24
  import "./chunk-KGZBYWZ3.js";
25
25
  import "./chunk-EQNRWDLN.js";
@@ -16,6 +16,7 @@ import {
16
16
  formatClaudeUsageCompact,
17
17
  formatClaudeUsageFetchedAt,
18
18
  formatClaudeUsageOverLimitConfirm,
19
+ formatClaudeUsageOverLimitWait,
19
20
  formatClaudeUsageReset,
20
21
  formatClaudeUsageResetClock,
21
22
  formatClaudeUsageTooltip,
@@ -49,14 +50,14 @@ import {
49
50
  resolveQuotaFallbackAgent,
50
51
  turnCostUsdFromCursorUsage,
51
52
  whichOnPath
52
- } from "./chunk-DU2ICKLA.js";
53
- import "./chunk-S4EEYOSU.js";
53
+ } from "./chunk-3TOGAUQT.js";
54
+ import "./chunk-54RSAMBH.js";
54
55
  import "./chunk-3OHR73VK.js";
55
56
  import "./chunk-Y4MIXGPA.js";
56
57
  import "./chunk-VKQGAWHY.js";
57
- import "./chunk-QFABSE3Q.js";
58
+ import "./chunk-RPX6VDW7.js";
58
59
  import "./chunk-D6JWYJ4P.js";
59
- import "./chunk-CJFBSQIB.js";
60
+ import "./chunk-INNLWYXW.js";
60
61
  import "./chunk-SYFVUF2C.js";
61
62
  import {
62
63
  conductorBundledBinDir,
@@ -72,7 +73,7 @@ import {
72
73
  assertOrchestratorCapableAgent,
73
74
  coerceOrchestratorAgent,
74
75
  isOrchestratorCapableAgent
75
- } from "./chunk-HQKGK4KO.js";
76
+ } from "./chunk-ISV5IFH3.js";
76
77
  import "./chunk-NSTQ6QKD.js";
77
78
  import "./chunk-KGZBYWZ3.js";
78
79
  import "./chunk-EQNRWDLN.js";
@@ -99,6 +100,7 @@ export {
99
100
  formatClaudeUsageCompact,
100
101
  formatClaudeUsageFetchedAt,
101
102
  formatClaudeUsageOverLimitConfirm,
103
+ formatClaudeUsageOverLimitWait,
102
104
  formatClaudeUsageReset,
103
105
  formatClaudeUsageResetClock,
104
106
  formatClaudeUsageTooltip,
@@ -13,6 +13,7 @@ import {
13
13
  formatClaudeUsageCompact,
14
14
  formatClaudeUsageFetchedAt,
15
15
  formatClaudeUsageOverLimitConfirm,
16
+ formatClaudeUsageOverLimitWait,
16
17
  formatClaudeUsageReset,
17
18
  formatClaudeUsageResetClock,
18
19
  formatClaudeUsageTooltip,
@@ -43,9 +44,9 @@ import {
43
44
  resolveLoginCommand,
44
45
  resolveQuotaFallbackAgent,
45
46
  whichOnPath
46
- } from "./chunk-KI4YI72Y.js";
47
- import "./chunk-BLOKJY4U.js";
48
- import "./chunk-DU4ID3DA.js";
47
+ } from "./chunk-RV3ZKE4Y.js";
48
+ import "./chunk-LJHC62LZ.js";
49
+ import "./chunk-STPZQR5B.js";
49
50
  import "./chunk-6K64FJDD.js";
50
51
  import "./chunk-QQKDGPUI.js";
51
52
  import "./chunk-SALM35KD.js";
@@ -62,11 +63,11 @@ import {
62
63
  assertOrchestratorCapableAgent,
63
64
  coerceOrchestratorAgent,
64
65
  isOrchestratorCapableAgent
65
- } from "./chunk-2IQ6W47G.js";
66
+ } from "./chunk-CXFW5LIH.js";
66
67
  import "./chunk-4TR3HZFT.js";
67
68
  import "./chunk-WDRMZKVB.js";
68
69
  import "./chunk-JT7R45JB.js";
69
- import "./chunk-KJBYIIJU.js";
70
+ import "./chunk-DFUES6QU.js";
70
71
  import "./chunk-77WWLBCI.js";
71
72
  import "./chunk-WFUDY6PC.js";
72
73
  import {
@@ -100,6 +101,7 @@ export {
100
101
  formatClaudeUsageCompact,
101
102
  formatClaudeUsageFetchedAt,
102
103
  formatClaudeUsageOverLimitConfirm,
104
+ formatClaudeUsageOverLimitWait,
103
105
  formatClaudeUsageReset,
104
106
  formatClaudeUsageResetClock,
105
107
  formatClaudeUsageTooltip,
@@ -4,6 +4,7 @@ import {
4
4
  HARNESS_ENV_KEYS,
5
5
  ISSUE_SOURCE_LABELS,
6
6
  PROFILE_NOTES_MAX,
7
+ USAGE_ON_LIMIT_VALUES,
7
8
  appSettingsPath,
8
9
  applyAppEnvironment,
9
10
  autoArchiveOnMergeEnabled,
@@ -50,6 +51,7 @@ import {
50
51
  isAbleTimeConnected,
51
52
  isIssueSourceConnected,
52
53
  isLinearConnected,
54
+ isUsageOnLimit,
53
55
  issueSourceLabel,
54
56
  loadAppSettings,
55
57
  maxConcurrentAgents,
@@ -65,6 +67,7 @@ import {
65
67
  resolveNewThreadOptions,
66
68
  resolveOrchestratorDefaults,
67
69
  resolveThreadDefaults,
70
+ resolveUsageOnLimit,
68
71
  resolveViewerProfile,
69
72
  resolveViewerProfileForRepo,
70
73
  saveAbleTimeConnection,
@@ -84,8 +87,9 @@ import {
84
87
  updateIntegrationsSettings,
85
88
  updateOpencodeSettings,
86
89
  updateProjectProfileSettings,
90
+ usageOnLimit,
87
91
  writeViewerContext
88
- } from "./chunk-2IQ6W47G.js";
92
+ } from "./chunk-CXFW5LIH.js";
89
93
  import "./chunk-4TR3HZFT.js";
90
94
  import "./chunk-WDRMZKVB.js";
91
95
  import "./chunk-JT7R45JB.js";
@@ -97,6 +101,7 @@ export {
97
101
  HARNESS_ENV_KEYS,
98
102
  ISSUE_SOURCE_LABELS,
99
103
  PROFILE_NOTES_MAX,
104
+ USAGE_ON_LIMIT_VALUES,
100
105
  appSettingsPath,
101
106
  applyAppEnvironment,
102
107
  autoArchiveOnMergeEnabled,
@@ -143,6 +148,7 @@ export {
143
148
  isAbleTimeConnected,
144
149
  isIssueSourceConnected,
145
150
  isLinearConnected,
151
+ isUsageOnLimit,
146
152
  issueSourceLabel,
147
153
  loadAppSettings,
148
154
  maxConcurrentAgents,
@@ -158,6 +164,7 @@ export {
158
164
  resolveNewThreadOptions,
159
165
  resolveOrchestratorDefaults,
160
166
  resolveThreadDefaults,
167
+ resolveUsageOnLimit,
161
168
  resolveViewerProfile,
162
169
  resolveViewerProfileForRepo,
163
170
  saveAbleTimeConnection,
@@ -177,5 +184,6 @@ export {
177
184
  updateIntegrationsSettings,
178
185
  updateOpencodeSettings,
179
186
  updateProjectProfileSettings,
187
+ usageOnLimit,
180
188
  writeViewerContext
181
189
  };
@@ -6,6 +6,7 @@ import {
6
6
  HARNESS_ENV_KEYS,
7
7
  ISSUE_SOURCE_LABELS,
8
8
  PROFILE_NOTES_MAX,
9
+ USAGE_ON_LIMIT_VALUES,
9
10
  appSettingsPath,
10
11
  applyAppEnvironment,
11
12
  autoArchiveOnMergeEnabled,
@@ -52,6 +53,7 @@ import {
52
53
  isAbleTimeConnected,
53
54
  isIssueSourceConnected,
54
55
  isLinearConnected,
56
+ isUsageOnLimit,
55
57
  issueSourceLabel,
56
58
  loadAppSettings,
57
59
  maxConcurrentAgents,
@@ -67,6 +69,7 @@ import {
67
69
  resolveNewThreadOptions,
68
70
  resolveOrchestratorDefaults,
69
71
  resolveThreadDefaults,
72
+ resolveUsageOnLimit,
70
73
  resolveViewerProfile,
71
74
  resolveViewerProfileForRepo,
72
75
  saveAbleTimeConnection,
@@ -86,8 +89,9 @@ import {
86
89
  updateIntegrationsSettings,
87
90
  updateOpencodeSettings,
88
91
  updateProjectProfileSettings,
92
+ usageOnLimit,
89
93
  writeViewerContext
90
- } from "./chunk-HQKGK4KO.js";
94
+ } from "./chunk-ISV5IFH3.js";
91
95
  import "./chunk-NSTQ6QKD.js";
92
96
  import "./chunk-KGZBYWZ3.js";
93
97
  import "./chunk-EQNRWDLN.js";
@@ -98,6 +102,7 @@ export {
98
102
  HARNESS_ENV_KEYS,
99
103
  ISSUE_SOURCE_LABELS,
100
104
  PROFILE_NOTES_MAX,
105
+ USAGE_ON_LIMIT_VALUES,
101
106
  appSettingsPath,
102
107
  applyAppEnvironment,
103
108
  autoArchiveOnMergeEnabled,
@@ -144,6 +149,7 @@ export {
144
149
  isAbleTimeConnected,
145
150
  isIssueSourceConnected,
146
151
  isLinearConnected,
152
+ isUsageOnLimit,
147
153
  issueSourceLabel,
148
154
  loadAppSettings,
149
155
  maxConcurrentAgents,
@@ -159,6 +165,7 @@ export {
159
165
  resolveNewThreadOptions,
160
166
  resolveOrchestratorDefaults,
161
167
  resolveThreadDefaults,
168
+ resolveUsageOnLimit,
162
169
  resolveViewerProfile,
163
170
  resolveViewerProfileForRepo,
164
171
  saveAbleTimeConnection,
@@ -178,5 +185,6 @@ export {
178
185
  updateIntegrationsSettings,
179
186
  updateOpencodeSettings,
180
187
  updateProjectProfileSettings,
188
+ usageOnLimit,
181
189
  writeViewerContext
182
190
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  isOrchestratorThread
5
- } from "./chunk-S4EEYOSU.js";
5
+ } from "./chunk-54RSAMBH.js";
6
6
  import {
7
7
  applyConnectedTeamToCli,
8
8
  brightsyMcpServerName,
@@ -12,12 +12,15 @@ import {
12
12
  import {
13
13
  loadBrightsyConfig
14
14
  } from "./chunk-Y4MIXGPA.js";
15
+ import {
16
+ httpFetch
17
+ } from "./chunk-VKQGAWHY.js";
15
18
  import {
16
19
  codexUnattendedGitConfigArgs,
17
20
  mergeAgentGitAuthEnv,
18
21
  resolveAgentGitAuthEnv,
19
22
  resolveCodexGitWritableRoots
20
- } from "./chunk-QFABSE3Q.js";
23
+ } from "./chunk-RPX6VDW7.js";
21
24
  import {
22
25
  enrichPathWithNpmGlobalBin,
23
26
  isConductorBundledCli,
@@ -35,7 +38,7 @@ import {
35
38
  resolveClaudeExecutable,
36
39
  unwrapStrippedElectronLaunch,
37
40
  wrapElectronAsNodeLaunch
38
- } from "./chunk-HQKGK4KO.js";
41
+ } from "./chunk-ISV5IFH3.js";
39
42
  import {
40
43
  appDataDir
41
44
  } from "./chunk-EQNRWDLN.js";
@@ -2420,7 +2423,7 @@ var claudeAdapter = {
2420
2423
  );
2421
2424
  }
2422
2425
  const mode = permissionMode(thread);
2423
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-C5XKWCRH.js");
2426
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-NLLAPQJI.js");
2424
2427
  const isOrchestrator = isOrchestratorThread2(thread);
2425
2428
  const injectedServers = await buildInjectedMcpServers({
2426
2429
  includeSideboard: true,
@@ -4317,16 +4320,26 @@ function claudeUsageOverLimitWindows(usage) {
4317
4320
  if (!usage) return [];
4318
4321
  return usage.windows.filter(claudeUsageWindowOverLimit);
4319
4322
  }
4320
- function formatClaudeUsageOverLimitConfirm(windows, now = /* @__PURE__ */ new Date()) {
4321
- if (windows.length === 0) return "";
4323
+ function formatOverLimitWindowList(windows, now) {
4322
4324
  const parts = windows.map((w) => {
4323
4325
  const reset = formatClaudeUsageReset(w.resetsAt, now);
4324
4326
  return reset ? `${w.label} (${reset})` : w.label;
4325
4327
  });
4326
- const list = parts.join(", ");
4327
- const verb = windows.length === 1 ? "is" : "are";
4328
+ return {
4329
+ list: parts.join(", "),
4330
+ verb: windows.length === 1 ? "is" : "are"
4331
+ };
4332
+ }
4333
+ function formatClaudeUsageOverLimitConfirm(windows, now = /* @__PURE__ */ new Date()) {
4334
+ if (windows.length === 0) return "";
4335
+ const { list, verb } = formatOverLimitWindowList(windows, now);
4328
4336
  return `Claude Code ${list} ${verb} at or over the plan limit. Send this message anyway?`;
4329
4337
  }
4338
+ function formatClaudeUsageOverLimitWait(windows, now = /* @__PURE__ */ new Date()) {
4339
+ if (windows.length === 0) return "";
4340
+ const { list, verb } = formatOverLimitWindowList(windows, now);
4341
+ return `Claude Code ${list} ${verb} at or over the plan limit. Sending is paused until the window resets.`;
4342
+ }
4330
4343
 
4331
4344
  // src/agents/claude-usage-client.ts
4332
4345
  import { existsSync as existsSync13, readFileSync as readFileSync5 } from "fs";
@@ -4423,7 +4436,7 @@ async function getClaudePlanUsage(opts = {}) {
4423
4436
  cache = { at: now, value: null };
4424
4437
  return null;
4425
4438
  }
4426
- const fetchFn = opts.fetch ?? globalThis.fetch;
4439
+ const fetchFn = opts.fetch ?? httpFetch;
4427
4440
  const userAgent = opts.userAgent ?? await resolveClaudeUserAgent();
4428
4441
  const ac = new AbortController();
4429
4442
  const timer = setTimeout(() => ac.abort(), 8e3);
@@ -4776,6 +4789,7 @@ export {
4776
4789
  formatClaudeUsageCompact,
4777
4790
  claudeUsageOverLimitWindows,
4778
4791
  formatClaudeUsageOverLimitConfirm,
4792
+ formatClaudeUsageOverLimitWait,
4779
4793
  getClaudePlanUsage,
4780
4794
  getAgentSetupInfo,
4781
4795
  listAgentSetupInfo,
@@ -7,7 +7,7 @@ import {
7
7
  resolveRepoRoot,
8
8
  takenSlugsFromThread,
9
9
  teamSlugFromName
10
- } from "./chunk-QFABSE3Q.js";
10
+ } from "./chunk-RPX6VDW7.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-CJFBSQIB.js";
20
+ } from "./chunk-INNLWYXW.js";
21
21
  import {
22
22
  assertOrchestratorCapableAgent,
23
23
  formatAccountProfilePlaybookLine,
@@ -30,7 +30,7 @@ import {
30
30
  resolveThreadDefaults,
31
31
  resolveViewerProfile,
32
32
  resolveViewerProfileForRepo
33
- } from "./chunk-HQKGK4KO.js";
33
+ } from "./chunk-ISV5IFH3.js";
34
34
  import {
35
35
  appDataDir,
36
36
  globalAgentCwd,
@@ -6,7 +6,7 @@ import {
6
6
  getAbleTimeHost,
7
7
  isAbleTimeConnected,
8
8
  saveAbleTimeConnection
9
- } from "./chunk-2IQ6W47G.js";
9
+ } from "./chunk-CXFW5LIH.js";
10
10
 
11
11
  // src/integrations/abletime-mcp.ts
12
12
  var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";