@sideboard-ai/core 0.1.208 → 0.1.209

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 (51) hide show
  1. package/dist/{abletime-I4IYZBKU.js → abletime-G3MWSZVM.js} +4 -4
  2. package/dist/{abletime-UWSSLXH3.js → abletime-SQREWITG.js} +4 -4
  3. package/dist/{abletime-oauth-UZHPB3W2.js → abletime-oauth-7AOE4KJL.js} +3 -3
  4. package/dist/{abletime-oauth-C3BQXKW3.js → abletime-oauth-SQD6K47H.js} +3 -3
  5. package/dist/{abletime-rest-5YPPEOKK.js → abletime-rest-BXL7QHCX.js} +3 -3
  6. package/dist/{abletime-rest-HYNYDYK3.js → abletime-rest-QRTJH42S.js} +3 -3
  7. package/dist/agents/cursor-runner.js +3 -3
  8. package/dist/{agents-QHQXR55O.js → agents-KA6HDNNP.js} +6 -5
  9. package/dist/{agents-CCS5IEBV.js → agents-U2NVCYGC.js} +6 -5
  10. package/dist/{app-settings-R2KNCT37.js → app-settings-6SZLZNA7.js} +7 -1
  11. package/dist/{app-settings-GJ6KDYEF.js → app-settings-VBQHGX5Z.js} +7 -1
  12. package/dist/{chunk-OP6CFVTB.js → chunk-22A45QOI.js} +2 -2
  13. package/dist/{chunk-NJ2CCLV6.js → chunk-42VGWRSE.js} +2 -2
  14. package/dist/{chunk-X45BV4VX.js → chunk-5LFD3KCJ.js} +5 -5
  15. package/dist/{chunk-F4LZUEIO.js → chunk-B2RPIHNJ.js} +2 -2
  16. package/dist/{chunk-6YZLSZLK.js → chunk-CQZCXRVG.js} +3 -3
  17. package/dist/{chunk-4EGK47WV.js → chunk-FUC3XFE2.js} +215 -0
  18. package/dist/{chunk-C6ZNQV5W.js → chunk-HBL7ILQA.js} +117 -25
  19. package/dist/{chunk-TEDEVD4O.js → chunk-IIENQFJ6.js} +2 -2
  20. package/dist/{chunk-6J4OQ6TF.js → chunk-IOOL3T7Q.js} +3 -3
  21. package/dist/{chunk-A6SOSLUV.js → chunk-KJAHVQL6.js} +24 -94
  22. package/dist/{chunk-7PEIIN7P.js → chunk-MS2P5GXL.js} +24 -87
  23. package/dist/{chunk-C5MNMITQ.js → chunk-MZP2C4KE.js} +119 -25
  24. package/dist/{chunk-7DKX5JLT.js → chunk-OY7THBLG.js} +10 -2
  25. package/dist/{chunk-DNTPX6HV.js → chunk-PTOIWKDU.js} +3 -3
  26. package/dist/{chunk-W6X4GZJG.js → chunk-QVVJO4GN.js} +3 -3
  27. package/dist/{chunk-ZHCB4CKR.js → chunk-RPZFNKND.js} +10 -2
  28. package/dist/{chunk-HA4EZKFY.js → chunk-TZCWNRMC.js} +3 -3
  29. package/dist/{chunk-Y4CF7LHH.js → chunk-VJQDUD24.js} +230 -0
  30. package/dist/chunk-X5B3OS5I.js +34 -0
  31. package/dist/{chunk-WXWJ5MJ4.js → chunk-XRIF6M5H.js} +5 -5
  32. package/dist/{coordinator-prompt-TUHB6ZFA.js → coordinator-prompt-2YCOE5R4.js} +5 -4
  33. package/dist/{coordinator-prompt-WOTJQMD5.js → coordinator-prompt-EO2X2EYW.js} +5 -4
  34. package/dist/{cursor-recover-TXVTLAMA.js → cursor-recover-4PQAADAU.js} +3 -28
  35. package/dist/{global-workspace-V6G2KH2V.js → global-workspace-H2ANUSGR.js} +5 -4
  36. package/dist/{global-workspace-5UUUNA4A.js → global-workspace-JEKMVE42.js} +5 -4
  37. package/dist/index.cjs +671 -384
  38. package/dist/index.d.cts +93 -4
  39. package/dist/index.d.ts +93 -4
  40. package/dist/index.js +52 -19
  41. package/dist/mcp/run-stdio.cjs +637 -384
  42. package/dist/mcp/run-stdio.js +12 -11
  43. package/dist/{orchestrator-D4AQNF25.js → orchestrator-N7LLTK5O.js} +7 -6
  44. package/dist/{orchestrator-4IGHVRAF.js → orchestrator-RUQXDYM7.js} +7 -6
  45. package/dist/{thread-store-ESZYZSVC.js → thread-store-55X2JYDT.js} +2 -1
  46. package/dist/{thread-store-FMWDFAO5.js → thread-store-CMZWM5NY.js} +2 -1
  47. package/dist/{workspaces-CLNANACI.js → workspaces-2YNYLSPV.js} +5 -4
  48. package/dist/{workspaces-PZ36M7EQ.js → workspaces-SVDORZEI.js} +5 -4
  49. package/dist/{worktree-JKTM47K5.js → worktree-5CPGB4D2.js} +4 -3
  50. package/dist/{worktree-NC4XQNQI.js → worktree-YQ6XUSR2.js} +4 -3
  51. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  parseAbleTimeOAuthCallbackUrl,
21
21
  resolveAbleTimeOAuthHost,
22
22
  startAbleTimeOAuth
23
- } from "./chunk-6J4OQ6TF.js";
23
+ } from "./chunk-IOOL3T7Q.js";
24
24
  import {
25
25
  ableTimeDependencyTarget,
26
26
  commentAbleTimeTask,
@@ -38,8 +38,8 @@ import {
38
38
  toAbleTimeIssueInfo,
39
39
  updateAbleTimeTask,
40
40
  verifyAbleTimeConnection
41
- } from "./chunk-W6X4GZJG.js";
42
- import "./chunk-F4LZUEIO.js";
41
+ } from "./chunk-QVVJO4GN.js";
42
+ import "./chunk-B2RPIHNJ.js";
43
43
  import {
44
44
  ABLETIME_MCP_PATH,
45
45
  ABLETIME_MCP_PM_PATH,
@@ -60,7 +60,7 @@ import {
60
60
  normalizeAbleTimeCredential,
61
61
  normalizeAbleTimeHost,
62
62
  rewriteAbleTimeError
63
- } from "./chunk-X45BV4VX.js";
63
+ } from "./chunk-5LFD3KCJ.js";
64
64
  import {
65
65
  AGENT_GIT_ACTIONS,
66
66
  BOARD_COLUMN_DEFS,
@@ -116,6 +116,7 @@ import {
116
116
  captureTurnBaseline,
117
117
  claimDesktopHost,
118
118
  classifyWorktreeColumn,
119
+ cleanupArchivedHistory,
119
120
  cleanupOrphanWorktrees,
120
121
  cloneRepoIntoSideboard,
121
122
  computeNextRunAt,
@@ -279,6 +280,7 @@ import {
279
280
  shouldRefreshReviewRequestTemplate,
280
281
  shouldRemoveWorktreeOnTeardown,
281
282
  shouldResetSessionForOccupancy,
283
+ shouldRunHistoryCleanup,
282
284
  shouldRunWorktreeCleanup,
283
285
  shouldStampSetupLastError,
284
286
  slackApi,
@@ -307,7 +309,7 @@ import {
307
309
  worktreeCleanupSettings,
308
310
  wrapReviewSkillMarkdown,
309
311
  writeWorktreeFile
310
- } from "./chunk-C5MNMITQ.js";
312
+ } from "./chunk-MZP2C4KE.js";
311
313
  import {
312
314
  LEGACY_PLAN_FILE_REL,
313
315
  PLAN_FILE_NAME,
@@ -335,7 +337,6 @@ import {
335
337
  WORKTREE_MCP_TOOLS,
336
338
  allAdapters,
337
339
  applyAgentEvent,
338
- applyTurnUsage,
339
340
  brightsyAdapter,
340
341
  brightsyMcpAllowedTools,
341
342
  buildCachedUserContent,
@@ -345,7 +346,6 @@ import {
345
346
  clipAgentEventForPaint,
346
347
  clipThinkingForStore,
347
348
  codexAdapter,
348
- contextTokens,
349
349
  countCacheControlBlocks,
350
350
  cursorAdapter,
351
351
  decodeBrightsyTarget,
@@ -362,7 +362,6 @@ import {
362
362
  formatClaudeUsageReset,
363
363
  formatClaudeUsageResetClock,
364
364
  formatClaudeUsageTooltip,
365
- fromInclusiveInputUsage,
366
365
  getAdapter,
367
366
  getAgentSetupInfo,
368
367
  getClaudePlanUsage,
@@ -392,7 +391,6 @@ import {
392
391
  mcpAuthWarnings,
393
392
  mcpStatusThinkingFromClaudeInit,
394
393
  mergeSideboardIntoMcpServersJson,
395
- mergeUsage,
396
394
  messagePartParentId,
397
395
  normalizeParseResult,
398
396
  normalizeTurnInput,
@@ -406,7 +404,6 @@ import {
406
404
  prepareTerminalCommand,
407
405
  promptMentionsBrightsy,
408
406
  registerPackagedUserMcpClients,
409
- requestOccupancy,
410
407
  resolveCursorModelId,
411
408
  resolveLoginCommand,
412
409
  resolveQuotaFallbackAgent,
@@ -415,13 +412,11 @@ import {
415
412
  sideboardMcpProfile,
416
413
  splitTurnInputForSystemPrompt,
417
414
  stripBrightsyNdjsonNoise,
418
- sumUsageList,
419
415
  threadRequestsBrightsyMcp,
420
416
  toolActivityLine,
421
417
  toolDescription,
422
418
  toolDetail,
423
419
  toolFilePath,
424
- totalTokens,
425
420
  userClaudeMcpConfigPath,
426
421
  userCursorMcpConfigPath,
427
422
  userMcpNamesToDisable,
@@ -430,7 +425,7 @@ import {
430
425
  withEventParentId,
431
426
  withEventsParentId,
432
427
  writeInjectedMcpConfig
433
- } from "./chunk-A6SOSLUV.js";
428
+ } from "./chunk-KJAHVQL6.js";
434
429
  import {
435
430
  CLOUD_COORDINATOR_BUSY_REPLY,
436
431
  CLOUD_COORDINATOR_STOPPED_REPLY,
@@ -473,7 +468,7 @@ import {
473
468
  stageBuffersAsAttachments,
474
469
  syncWorkspacesFromThreads,
475
470
  takenTeamSlugsForOrchestration
476
- } from "./chunk-HA4EZKFY.js";
471
+ } from "./chunk-TZCWNRMC.js";
477
472
  import {
478
473
  FAMOUS_SOCCER_TEAMS,
479
474
  GITHUB_PR_BODY_MAX_CHARS,
@@ -571,7 +566,7 @@ import {
571
566
  worktreeDisplayLabelForGroup,
572
567
  worktreeNameFromPath,
573
568
  worktreeSlugForTicket
574
- } from "./chunk-OP6CFVTB.js";
569
+ } from "./chunk-22A45QOI.js";
575
570
  import {
576
571
  ATTACHMENTS_DIR,
577
572
  CLI_DIR,
@@ -622,14 +617,22 @@ import {
622
617
  FOLLOW_UP_BEHAVIORS,
623
618
  GITHUB_GIT_AUTH_MODES,
624
619
  HARNESS_ENV_KEYS,
620
+ HISTORY_DISCARDED_TEXT,
621
+ HISTORY_MAX_COUNT_DEFAULT,
622
+ HISTORY_MAX_COUNT_MAX,
623
+ HISTORY_MAX_COUNT_MIN,
624
+ HISTORY_MAX_DAYS_DEFAULT,
625
+ HISTORY_MAX_DAYS_MAX,
625
626
  ISSUE_SOURCE_LABELS,
626
627
  ORCHESTRATOR_AGENT_KINDS,
627
628
  PROFILE_NOTES_MAX,
628
629
  USAGE_ON_LIMIT_VALUES,
629
630
  appSettingsPath,
630
631
  applyAppEnvironment,
632
+ applyTurnUsage,
631
633
  assertOrchestratorCapableAgent,
632
634
  autoArchiveOnMergeEnabled,
635
+ autoCleanupHistoryEnabled,
633
636
  autoCleanupOrphansEnabled,
634
637
  autoRenameBranchEnabled,
635
638
  autoRunAfterSetupEnabled,
@@ -641,10 +644,13 @@ import {
641
644
  caffeinateWhileSchedulesEnabled,
642
645
  caffeinateWhileSlackListenEnabled,
643
646
  childEnvWithAppSettings,
647
+ clampHistoryMaxCount,
648
+ clampHistoryMaxDays,
644
649
  claudeChromeEnabled,
645
650
  claudeUserSettingsPath,
646
651
  coerceOrchestratorAgent,
647
652
  confirmClaudeUsageOverLimitEnabled,
653
+ contextTokens,
648
654
  cowboyModeEnabled,
649
655
  deleteBranchOnPurgeEnabled,
650
656
  disconnectAbleTimeConnection,
@@ -659,6 +665,7 @@ import {
659
665
  formatViewerContextDirective,
660
666
  formatViewerContextReminder,
661
667
  formatWorkspaceProfileSuffix,
668
+ fromInclusiveInputUsage,
662
669
  getAbleTimeAccessToken,
663
670
  getAbleTimeHost,
664
671
  getDefaultAgent,
@@ -671,7 +678,10 @@ import {
671
678
  getLinearApiKey,
672
679
  gitBranchPrefixSetting,
673
680
  harnessEnvKey,
681
+ historyMaxCount,
682
+ historyMaxDays,
674
683
  isAbleTimeConnected,
684
+ isHistoryRetentionStub,
675
685
  isIssueSourceConnected,
676
686
  isLinearConnected,
677
687
  isOrchestratorCapableAgent,
@@ -679,11 +689,15 @@ import {
679
689
  issueSourceLabel,
680
690
  loadAppSettings,
681
691
  maxConcurrentAgents,
692
+ mergeUsage,
682
693
  orchestrationQuotaFallbackAgent,
683
694
  orchestrationQuotaOnLimit,
684
695
  persistVaultKeyInKeychain,
696
+ planHistoryAgePurge,
697
+ planHistoryRetention,
685
698
  readKeychainVaultKey,
686
699
  readViewerContext,
700
+ requestOccupancy,
687
701
  resolveAccountProfile,
688
702
  resolveAccountProfileFromSettings,
689
703
  resolveAgentExecutable,
@@ -705,7 +719,9 @@ import {
705
719
  showCostEnabled,
706
720
  slackAppLevelToken,
707
721
  slackListenEnabled,
722
+ sumUsageList,
708
723
  toPublicAppSettings,
724
+ totalTokens,
709
725
  updateAdvancedSettings,
710
726
  updateAgentExecutable,
711
727
  updateAppEnvironment,
@@ -718,7 +734,7 @@ import {
718
734
  updateProjectProfileSettings,
719
735
  usageOnLimit,
720
736
  writeViewerContext
721
- } from "./chunk-Y4CF7LHH.js";
737
+ } from "./chunk-VJQDUD24.js";
722
738
  import {
723
739
  stripNestedElectronEnv
724
740
  } from "./chunk-4TR3HZFT.js";
@@ -751,7 +767,8 @@ import {
751
767
  updateThread,
752
768
  withThreadLock,
753
769
  writeThread
754
- } from "./chunk-7DKX5JLT.js";
770
+ } from "./chunk-OY7THBLG.js";
771
+ import "./chunk-7J72QJOM.js";
755
772
  import {
756
773
  THINKING_EFFORTS,
757
774
  isThinkingEffort,
@@ -5237,7 +5254,7 @@ async function startMcpServer() {
5237
5254
  );
5238
5255
  }
5239
5256
  try {
5240
- const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-GJ6KDYEF.js");
5257
+ const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-VBQHGX5Z.js");
5241
5258
  orch.setMaxConcurrent(maxConcurrentAgents2());
5242
5259
  } catch {
5243
5260
  }
@@ -5552,7 +5569,7 @@ async function startMcpServer() {
5552
5569
  registerConnectedIssueVendorTools(server);
5553
5570
  registerScheduleTools(server);
5554
5571
  const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-22VFDPSO.js");
5555
- const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-GJ6KDYEF.js");
5572
+ const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-VBQHGX5Z.js");
5556
5573
  const accountDefaults = resolveThreadDefaults2();
5557
5574
  const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
5558
5575
  server.tool(
@@ -8573,6 +8590,12 @@ export {
8573
8590
  GITHUB_PR_BODY_SAFE_CHARS,
8574
8591
  GLOBAL_WORKSPACE_ID,
8575
8592
  HARNESS_ENV_KEYS,
8593
+ HISTORY_DISCARDED_TEXT,
8594
+ HISTORY_MAX_COUNT_DEFAULT,
8595
+ HISTORY_MAX_COUNT_MAX,
8596
+ HISTORY_MAX_COUNT_MIN,
8597
+ HISTORY_MAX_DAYS_DEFAULT,
8598
+ HISTORY_MAX_DAYS_MAX,
8576
8599
  HOME_BOARD_CACHE_TTL_MS,
8577
8600
  IMPLIED_TICKET_RESOLVE_PROMPT,
8578
8601
  ISSUE_SOURCE_LABELS,
@@ -8680,6 +8703,7 @@ export {
8680
8703
  attachmentsFromWorktreePaths,
8681
8704
  attachmentsGitignoreBody,
8682
8705
  autoArchiveOnMergeEnabled,
8706
+ autoCleanupHistoryEnabled,
8683
8707
  autoCleanupOrphansEnabled,
8684
8708
  autoRenameBranchEnabled,
8685
8709
  autoRunAfterSetupEnabled,
@@ -8717,11 +8741,14 @@ export {
8717
8741
  childEnvWithAppSettings,
8718
8742
  claimDesktopHost,
8719
8743
  clampGithubPrBody,
8744
+ clampHistoryMaxCount,
8745
+ clampHistoryMaxDays,
8720
8746
  classifyWorktreeColumn,
8721
8747
  claudeAdapter,
8722
8748
  claudeChromeEnabled,
8723
8749
  claudeUsageOverLimitWindows,
8724
8750
  claudeUserSettingsPath,
8751
+ cleanupArchivedHistory,
8725
8752
  cleanupOrphanWorktrees,
8726
8753
  clearBoardPins,
8727
8754
  clearHomeBoardCache,
@@ -8953,6 +8980,8 @@ export {
8953
8980
  hasRepoHook,
8954
8981
  hasWorkspaceHook,
8955
8982
  healOrchestrationSoccerTitles,
8983
+ historyMaxCount,
8984
+ historyMaxDays,
8956
8985
  hottestClaudeWindow,
8957
8986
  httpFetch,
8958
8987
  importConductorWorkspace,
@@ -8985,6 +9014,7 @@ export {
8985
9014
  isGhRateLimitError,
8986
9015
  isGlobalRepoPath,
8987
9016
  isGlobalThread,
9017
+ isHistoryRetentionStub,
8988
9018
  isHomeBoardThread,
8989
9019
  isImageFilePath,
8990
9020
  isInPrStack,
@@ -9143,6 +9173,8 @@ export {
9143
9173
  persistPendingFileAttachments,
9144
9174
  persistVaultKeyInKeychain,
9145
9175
  planFileAbs,
9176
+ planHistoryAgePurge,
9177
+ planHistoryRetention,
9146
9178
  planQuestionsSignature,
9147
9179
  pollSlackOutboundWatches,
9148
9180
  posixShellSingleQuote,
@@ -9258,6 +9290,7 @@ export {
9258
9290
  shouldRefreshReviewRequestTemplate,
9259
9291
  shouldRemoveWorktreeOnTeardown,
9260
9292
  shouldResetSessionForOccupancy,
9293
+ shouldRunHistoryCleanup,
9261
9294
  shouldRunWorktreeCleanup,
9262
9295
  shouldStampSetupLastError,
9263
9296
  showCostEnabled,