@sideboard-ai/core 0.1.258 → 0.1.262

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 (66) hide show
  1. package/dist/{abletime-IDQJI2KW.js → abletime-CDGINDXG.js} +6 -5
  2. package/dist/{abletime-OGQR4LIL.js → abletime-OQ4PC52L.js} +7 -6
  3. package/dist/{abletime-oauth-ZQUIY4EM.js → abletime-oauth-5A5EOH2A.js} +5 -4
  4. package/dist/{abletime-oauth-MBAG5MYU.js → abletime-oauth-KX2TDFTE.js} +6 -5
  5. package/dist/{abletime-rest-WEJERY4O.js → abletime-rest-PUGKYTRR.js} +6 -5
  6. package/dist/{abletime-rest-JZIIT5W3.js → abletime-rest-UEHOBLXD.js} +5 -4
  7. package/dist/agents/cursor-runner.cjs +274 -12
  8. package/dist/agents/cursor-runner.js +156 -13
  9. package/dist/{agents-HZP7YEKC.js → agents-IKVUGW5H.js} +12 -9
  10. package/dist/{agents-FSUI5MET.js → agents-J2P4KNEY.js} +21 -18
  11. package/dist/{app-settings-CLARFJUX.js → app-settings-OM7H64YM.js} +12 -3
  12. package/dist/{app-settings-ONYJ36XH.js → app-settings-VQEUCONM.js} +11 -2
  13. package/dist/chunk-3HO2OY5T.js +159 -0
  14. package/dist/{chunk-F7ANS66U.js → chunk-4F7J6UWD.js} +75 -33
  15. package/dist/{chunk-WDDUIGFK.js → chunk-4GK32AYX.js} +1 -1
  16. package/dist/{chunk-ZC3TVLY6.js → chunk-5OKJDCBK.js} +5 -5
  17. package/dist/{chunk-KJM3E3NF.js → chunk-6PFZ6XO7.js} +65 -6
  18. package/dist/{title-4A2ATYNY.js → chunk-7H655NEW.js} +1 -0
  19. package/dist/{chunk-R4DWUBOL.js → chunk-ABPNIYRS.js} +78 -37
  20. package/dist/{chunk-XIEDFRBP.js → chunk-B6XFBNYM.js} +2 -2
  21. package/dist/chunk-CEMNIGQH.js +161 -0
  22. package/dist/{chunk-66LAOKLK.js → chunk-D554YCHG.js} +2 -2
  23. package/dist/{chunk-HCNCZPDL.js → chunk-FSZ7YYFQ.js} +119 -63
  24. package/dist/{chunk-4723RAO3.js → chunk-FWNL62VA.js} +3 -1
  25. package/dist/{chunk-Y7CS2WGJ.js → chunk-GIZQAOHZ.js} +247 -109
  26. package/dist/chunk-HHEKVR6C.js +72 -0
  27. package/dist/{chunk-IFHHPPSL.js → chunk-J6ONZP74.js} +5 -5
  28. package/dist/{chunk-PJK24CN3.js → chunk-JTNY5CK4.js} +10 -10
  29. package/dist/{chunk-CPEIHTG7.js → chunk-KVQX62XI.js} +3 -3
  30. package/dist/{chunk-5F4YFGHL.js → chunk-LDXSAVWO.js} +7 -7
  31. package/dist/{title-4WAKWZRF.js → chunk-LX5R5JOR.js} +1 -0
  32. package/dist/{chunk-D6JWYJ4P.js → chunk-N2WW62LF.js} +1 -0
  33. package/dist/{chunk-RTQOCFIV.js → chunk-S7VDDJ34.js} +3 -3
  34. package/dist/{chunk-RJC2MKXN.js → chunk-TJ673EZT.js} +3 -1
  35. package/dist/{chunk-63YSFXLT.js → chunk-U3AOJLH3.js} +126 -70
  36. package/dist/{chunk-452Y24PW.js → chunk-VIC6TDYT.js} +68 -9
  37. package/dist/{chunk-553IEH7O.js → chunk-W5PWGEKS.js} +241 -104
  38. package/dist/{chunk-VVHHBOIA.js → chunk-WV7KJH2E.js} +5 -3
  39. package/dist/{chunk-BYRZS2S2.js → chunk-X2OTZ36G.js} +4 -4
  40. package/dist/{chunk-FGWUZOZN.js → chunk-YFTO7U2A.js} +3 -3
  41. package/dist/connected-teams-7CENZDWU.js +1 -1
  42. package/dist/{connected-teams-Z5GOIC5I.js → connected-teams-RU6VATCM.js} +2 -2
  43. package/dist/{coordinator-prompt-HZUWK3NP.js → coordinator-prompt-TU6656OK.js} +9 -8
  44. package/dist/{coordinator-prompt-Y6S6USNS.js → coordinator-prompt-VQHQ3RIX.js} +8 -7
  45. package/dist/{global-workspace-4JCITHB6.js → global-workspace-47NZVA44.js} +8 -7
  46. package/dist/{global-workspace-YA7U4M2N.js → global-workspace-PHF2MOGW.js} +9 -8
  47. package/dist/index.cjs +1443 -856
  48. package/dist/index.d.cts +118 -37
  49. package/dist/index.d.ts +118 -37
  50. package/dist/index.js +148 -64
  51. package/dist/managed-accounts-2AK5RIAF.js +39 -0
  52. package/dist/managed-accounts-4BLTJKAN.js +41 -0
  53. package/dist/mcp/run-stdio.cjs +2722 -2248
  54. package/dist/mcp/run-stdio.js +136 -50
  55. package/dist/{orchestrator-LWADJQTN.js → orchestrator-OCG4QVA5.js} +13 -11
  56. package/dist/{orchestrator-VHJZEVGA.js → orchestrator-VLTO5JBR.js} +13 -11
  57. package/dist/{plan-file-CKXUFTQ2.js → plan-file-VAHV5WBB.js} +2 -2
  58. package/dist/{thread-store-HDQ4CH54.js → thread-store-FJ5CDX2M.js} +1 -1
  59. package/dist/{thread-store-ZDR3Z5UG.js → thread-store-SHCUBWB3.js} +1 -1
  60. package/dist/title-ERD6D3C3.js +8 -0
  61. package/dist/title-Z7WAJN57.js +6 -0
  62. package/dist/{workspaces-IXZD7EC4.js → workspaces-2XTDS7N2.js} +9 -8
  63. package/dist/{workspaces-4KHEUPEX.js → workspaces-I7TWFTJM.js} +8 -7
  64. package/dist/{worktree-DAAF64UU.js → worktree-DDDF3WHV.js} +8 -7
  65. package/dist/{worktree-S3FOMEQ2.js → worktree-YASFE65H.js} +7 -6
  66. package/package.json +1 -1
@@ -4,18 +4,26 @@ import {
4
4
  chmodOwnerOnly,
5
5
  writePrivateFile
6
6
  } from "./chunk-NSTQ6QKD.js";
7
- import {
8
- normalizeThinkingEffort
9
- } from "./chunk-KGZBYWZ3.js";
10
- import {
11
- appDataDir
12
- } from "./chunk-Z2LGMV6C.js";
13
7
  import {
14
8
  stripNestedElectronEnv
15
9
  } from "./chunk-WWUABK6B.js";
16
10
  import {
17
11
  sanitizeGitBranchPrefix
18
12
  } from "./chunk-FJZWM2ON.js";
13
+ import {
14
+ EMPTY_MANAGED_ACCOUNTS,
15
+ ensureManagedAccountDir,
16
+ normalizeManagedAccounts,
17
+ withAddedAccount,
18
+ withRemovedAccount,
19
+ withSelectedAccount
20
+ } from "./chunk-CEMNIGQH.js";
21
+ import {
22
+ normalizeThinkingEffort
23
+ } from "./chunk-KGZBYWZ3.js";
24
+ import {
25
+ appDataDir
26
+ } from "./chunk-Z2LGMV6C.js";
19
27
 
20
28
  // src/store/app-settings.ts
21
29
  import { randomUUID } from "crypto";
@@ -506,11 +514,12 @@ function planHistoryAgePurge(archived, olderThanDays, nowMs = Date.now()) {
506
514
  var USAGE_ON_LIMIT_VALUES = [
507
515
  "keep_going",
508
516
  "confirm",
517
+ "switch_account",
509
518
  "switch_agent",
510
519
  "wait_reset"
511
520
  ];
512
521
  function isUsageOnLimit(value) {
513
- return value === "keep_going" || value === "confirm" || value === "switch_agent" || value === "wait_reset";
522
+ return value === "keep_going" || value === "confirm" || value === "switch_account" || value === "switch_agent" || value === "wait_reset";
514
523
  }
515
524
  function resolveUsageOnLimit(advanced = {}) {
516
525
  if (isUsageOnLimit(advanced.usageOnLimit)) return advanced.usageOnLimit;
@@ -1044,6 +1053,7 @@ function normalizeSettings(raw) {
1044
1053
  let defaults = {};
1045
1054
  let projects = {};
1046
1055
  let advanced = {};
1056
+ let accounts = { ...EMPTY_MANAGED_ACCOUNTS };
1047
1057
  if (raw && typeof raw === "object") {
1048
1058
  if ("environment" in raw) {
1049
1059
  const source = raw.environment;
@@ -1081,6 +1091,9 @@ function normalizeSettings(raw) {
1081
1091
  if ("advanced" in raw) {
1082
1092
  advanced = normalizeAdvanced(raw.advanced);
1083
1093
  }
1094
+ if ("accounts" in raw) {
1095
+ accounts = normalizeManagedAccounts(raw.accounts);
1096
+ }
1084
1097
  }
1085
1098
  return {
1086
1099
  environment: env,
@@ -1091,7 +1104,8 @@ function normalizeSettings(raw) {
1091
1104
  integrations,
1092
1105
  defaults,
1093
1106
  projects,
1094
- advanced
1107
+ advanced,
1108
+ accounts
1095
1109
  };
1096
1110
  }
1097
1111
  var EMPTY_SETTINGS = {
@@ -1103,7 +1117,8 @@ var EMPTY_SETTINGS = {
1103
1117
  integrations: {},
1104
1118
  defaults: {},
1105
1119
  projects: {},
1106
- advanced: {}
1120
+ advanced: {},
1121
+ accounts: { ...EMPTY_MANAGED_ACCOUNTS }
1107
1122
  };
1108
1123
  function readSettingsFile() {
1109
1124
  const path = appSettingsPath();
@@ -1227,6 +1242,46 @@ function saveAppSettings(settings) {
1227
1242
  persistSplit(normalized);
1228
1243
  return normalized;
1229
1244
  }
1245
+ function addManagedAccount(kind, label) {
1246
+ const current = loadAppSettings();
1247
+ const id = randomUUID();
1248
+ const configDir = ensureManagedAccountDir(kind, id);
1249
+ const trimmed = label.trim().slice(0, 80) || (kind === "claude" ? "Claude" : "Codex");
1250
+ const next = withAddedAccount(current.accounts, {
1251
+ id,
1252
+ kind,
1253
+ label: trimmed,
1254
+ configDir,
1255
+ createdAt: (/* @__PURE__ */ new Date()).toISOString()
1256
+ });
1257
+ return saveAppSettings({ ...current, accounts: next });
1258
+ }
1259
+ function selectManagedAccount(kind, accountId) {
1260
+ const current = loadAppSettings();
1261
+ return saveAppSettings({
1262
+ ...current,
1263
+ accounts: withSelectedAccount(current.accounts, kind, accountId)
1264
+ });
1265
+ }
1266
+ function removeManagedAccount(id) {
1267
+ const current = loadAppSettings();
1268
+ return saveAppSettings({
1269
+ ...current,
1270
+ accounts: withRemovedAccount(current.accounts, id)
1271
+ });
1272
+ }
1273
+ function renameManagedAccount(id, label) {
1274
+ const current = loadAppSettings();
1275
+ const trimmed = label.trim().slice(0, 80);
1276
+ if (!trimmed) return current;
1277
+ const accounts = current.accounts.accounts.map(
1278
+ (a) => a.id === id ? { ...a, label: trimmed } : a
1279
+ );
1280
+ return saveAppSettings({
1281
+ ...current,
1282
+ accounts: { ...current.accounts, accounts }
1283
+ });
1284
+ }
1230
1285
  function updateAppEnvironment(patch) {
1231
1286
  const current = loadAppSettings();
1232
1287
  const environment = { ...current.environment };
@@ -2193,6 +2248,10 @@ export {
2193
2248
  findProjectProfileKey,
2194
2249
  loadAppSettings,
2195
2250
  saveAppSettings,
2251
+ addManagedAccount,
2252
+ selectManagedAccount,
2253
+ removeManagedAccount,
2254
+ renameManagedAccount,
2196
2255
  updateAppEnvironment,
2197
2256
  updateClaudeSettings,
2198
2257
  updateBrightsySettings,