@sideboard-ai/core 0.1.207 → 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-7MULGRPU.js → agents-KA6HDNNP.js} +6 -5
  9. package/dist/{agents-KCBCFMFW.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-6KH4OBEW.js → chunk-22A45QOI.js} +2 -2
  13. package/dist/{chunk-N4A4NWFO.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-5UQTT4S7.js → chunk-HBL7ILQA.js} +154 -31
  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-A2BRWIEM.js → chunk-KJAHVQL6.js} +51 -94
  22. package/dist/{chunk-ZU7R35NY.js → chunk-MS2P5GXL.js} +49 -87
  23. package/dist/{chunk-2GPZ4BAU.js → chunk-MZP2C4KE.js} +158 -31
  24. package/dist/{chunk-ARR4OGLY.js → chunk-OY7THBLG.js} +12 -2
  25. package/dist/{chunk-QOJB5PC7.js → chunk-PTOIWKDU.js} +3 -3
  26. package/dist/{chunk-W6X4GZJG.js → chunk-QVVJO4GN.js} +3 -3
  27. package/dist/{chunk-DWGEBZ3C.js → chunk-RPZFNKND.js} +12 -2
  28. package/dist/{chunk-PAQPT3JO.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-6NV2IHEX.js → coordinator-prompt-2YCOE5R4.js} +5 -4
  33. package/dist/{coordinator-prompt-6A3D7BV3.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-I2X6UQMX.js → global-workspace-H2ANUSGR.js} +5 -4
  36. package/dist/{global-workspace-VS6HZF2I.js → global-workspace-JEKMVE42.js} +5 -4
  37. package/dist/index.cjs +752 -391
  38. package/dist/index.d.cts +127 -5
  39. package/dist/index.d.ts +127 -5
  40. package/dist/index.js +63 -19
  41. package/dist/mcp/run-stdio.cjs +706 -391
  42. package/dist/mcp/run-stdio.js +12 -11
  43. package/dist/{orchestrator-CXQY5YRG.js → orchestrator-N7LLTK5O.js} +7 -6
  44. package/dist/{orchestrator-7WF32ZXJ.js → orchestrator-RUQXDYM7.js} +7 -6
  45. package/dist/{thread-store-XGYWXR2P.js → thread-store-55X2JYDT.js} +2 -1
  46. package/dist/{thread-store-LS2T6RVH.js → thread-store-CMZWM5NY.js} +2 -1
  47. package/dist/{workspaces-CEU25ANO.js → workspaces-2YNYLSPV.js} +5 -4
  48. package/dist/{workspaces-7PM7UGLG.js → workspaces-SVDORZEI.js} +5 -4
  49. package/dist/{worktree-YD7Y6NRY.js → worktree-5CPGB4D2.js} +4 -3
  50. package/dist/{worktree-T6PCOIHZ.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,
@@ -124,6 +125,7 @@ import {
124
125
  connectOptionalService,
125
126
  connectSlackToken,
126
127
  connectedOptionalServices,
128
+ consumeComposerAttachments,
127
129
  copyConfiguredFiles,
128
130
  createChatTab,
129
131
  createPrStack,
@@ -278,6 +280,7 @@ import {
278
280
  shouldRefreshReviewRequestTemplate,
279
281
  shouldRemoveWorktreeOnTeardown,
280
282
  shouldResetSessionForOccupancy,
283
+ shouldRunHistoryCleanup,
281
284
  shouldRunWorktreeCleanup,
282
285
  shouldStampSetupLastError,
283
286
  slackApi,
@@ -292,6 +295,7 @@ import {
292
295
  stopDetachedJob,
293
296
  summarizeConversation,
294
297
  syncBoardPins,
298
+ takePendingTurnAttachments,
295
299
  takenTeamSlugsForChatTab,
296
300
  thisProcessShouldDrainAgentQueues,
297
301
  threadHasCompactedContext,
@@ -305,7 +309,7 @@ import {
305
309
  worktreeCleanupSettings,
306
310
  wrapReviewSkillMarkdown,
307
311
  writeWorktreeFile
308
- } from "./chunk-2GPZ4BAU.js";
312
+ } from "./chunk-MZP2C4KE.js";
309
313
  import {
310
314
  LEGACY_PLAN_FILE_REL,
311
315
  PLAN_FILE_NAME,
@@ -324,6 +328,8 @@ import {
324
328
  PLAN_MODE_INSTRUCTION,
325
329
  SIDEBOARD_MCP_ALLOWED_TOOLS,
326
330
  SIDEBOARD_MCP_PROFILE_ENV,
331
+ STDERR_EVENT_MAX_CHARS,
332
+ STDOUT_EVENT_MAX_CHARS,
327
333
  THINKING_PART_MAX_CHARS,
328
334
  WORKTREE_ABLETIME_MCP_TOOLS,
329
335
  WORKTREE_GITHUB_MCP_TOOLS,
@@ -331,16 +337,15 @@ import {
331
337
  WORKTREE_MCP_TOOLS,
332
338
  allAdapters,
333
339
  applyAgentEvent,
334
- applyTurnUsage,
335
340
  brightsyAdapter,
336
341
  brightsyMcpAllowedTools,
337
342
  buildCachedUserContent,
338
343
  buildClaudeStreamJsonUserMessage,
339
344
  claudeAdapter,
340
345
  claudeUsageOverLimitWindows,
346
+ clipAgentEventForPaint,
341
347
  clipThinkingForStore,
342
348
  codexAdapter,
343
- contextTokens,
344
349
  countCacheControlBlocks,
345
350
  cursorAdapter,
346
351
  decodeBrightsyTarget,
@@ -357,7 +362,6 @@ import {
357
362
  formatClaudeUsageReset,
358
363
  formatClaudeUsageResetClock,
359
364
  formatClaudeUsageTooltip,
360
- fromInclusiveInputUsage,
361
365
  getAdapter,
362
366
  getAgentSetupInfo,
363
367
  getClaudePlanUsage,
@@ -387,7 +391,6 @@ import {
387
391
  mcpAuthWarnings,
388
392
  mcpStatusThinkingFromClaudeInit,
389
393
  mergeSideboardIntoMcpServersJson,
390
- mergeUsage,
391
394
  messagePartParentId,
392
395
  normalizeParseResult,
393
396
  normalizeTurnInput,
@@ -401,7 +404,6 @@ import {
401
404
  prepareTerminalCommand,
402
405
  promptMentionsBrightsy,
403
406
  registerPackagedUserMcpClients,
404
- requestOccupancy,
405
407
  resolveCursorModelId,
406
408
  resolveLoginCommand,
407
409
  resolveQuotaFallbackAgent,
@@ -410,13 +412,11 @@ import {
410
412
  sideboardMcpProfile,
411
413
  splitTurnInputForSystemPrompt,
412
414
  stripBrightsyNdjsonNoise,
413
- sumUsageList,
414
415
  threadRequestsBrightsyMcp,
415
416
  toolActivityLine,
416
417
  toolDescription,
417
418
  toolDetail,
418
419
  toolFilePath,
419
- totalTokens,
420
420
  userClaudeMcpConfigPath,
421
421
  userCursorMcpConfigPath,
422
422
  userMcpNamesToDisable,
@@ -425,7 +425,7 @@ import {
425
425
  withEventParentId,
426
426
  withEventsParentId,
427
427
  writeInjectedMcpConfig
428
- } from "./chunk-A2BRWIEM.js";
428
+ } from "./chunk-KJAHVQL6.js";
429
429
  import {
430
430
  CLOUD_COORDINATOR_BUSY_REPLY,
431
431
  CLOUD_COORDINATOR_STOPPED_REPLY,
@@ -468,7 +468,7 @@ import {
468
468
  stageBuffersAsAttachments,
469
469
  syncWorkspacesFromThreads,
470
470
  takenTeamSlugsForOrchestration
471
- } from "./chunk-PAQPT3JO.js";
471
+ } from "./chunk-TZCWNRMC.js";
472
472
  import {
473
473
  FAMOUS_SOCCER_TEAMS,
474
474
  GITHUB_PR_BODY_MAX_CHARS,
@@ -566,7 +566,7 @@ import {
566
566
  worktreeDisplayLabelForGroup,
567
567
  worktreeNameFromPath,
568
568
  worktreeSlugForTicket
569
- } from "./chunk-6KH4OBEW.js";
569
+ } from "./chunk-22A45QOI.js";
570
570
  import {
571
571
  ATTACHMENTS_DIR,
572
572
  CLI_DIR,
@@ -617,14 +617,22 @@ import {
617
617
  FOLLOW_UP_BEHAVIORS,
618
618
  GITHUB_GIT_AUTH_MODES,
619
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,
620
626
  ISSUE_SOURCE_LABELS,
621
627
  ORCHESTRATOR_AGENT_KINDS,
622
628
  PROFILE_NOTES_MAX,
623
629
  USAGE_ON_LIMIT_VALUES,
624
630
  appSettingsPath,
625
631
  applyAppEnvironment,
632
+ applyTurnUsage,
626
633
  assertOrchestratorCapableAgent,
627
634
  autoArchiveOnMergeEnabled,
635
+ autoCleanupHistoryEnabled,
628
636
  autoCleanupOrphansEnabled,
629
637
  autoRenameBranchEnabled,
630
638
  autoRunAfterSetupEnabled,
@@ -636,10 +644,13 @@ import {
636
644
  caffeinateWhileSchedulesEnabled,
637
645
  caffeinateWhileSlackListenEnabled,
638
646
  childEnvWithAppSettings,
647
+ clampHistoryMaxCount,
648
+ clampHistoryMaxDays,
639
649
  claudeChromeEnabled,
640
650
  claudeUserSettingsPath,
641
651
  coerceOrchestratorAgent,
642
652
  confirmClaudeUsageOverLimitEnabled,
653
+ contextTokens,
643
654
  cowboyModeEnabled,
644
655
  deleteBranchOnPurgeEnabled,
645
656
  disconnectAbleTimeConnection,
@@ -654,6 +665,7 @@ import {
654
665
  formatViewerContextDirective,
655
666
  formatViewerContextReminder,
656
667
  formatWorkspaceProfileSuffix,
668
+ fromInclusiveInputUsage,
657
669
  getAbleTimeAccessToken,
658
670
  getAbleTimeHost,
659
671
  getDefaultAgent,
@@ -666,7 +678,10 @@ import {
666
678
  getLinearApiKey,
667
679
  gitBranchPrefixSetting,
668
680
  harnessEnvKey,
681
+ historyMaxCount,
682
+ historyMaxDays,
669
683
  isAbleTimeConnected,
684
+ isHistoryRetentionStub,
670
685
  isIssueSourceConnected,
671
686
  isLinearConnected,
672
687
  isOrchestratorCapableAgent,
@@ -674,11 +689,15 @@ import {
674
689
  issueSourceLabel,
675
690
  loadAppSettings,
676
691
  maxConcurrentAgents,
692
+ mergeUsage,
677
693
  orchestrationQuotaFallbackAgent,
678
694
  orchestrationQuotaOnLimit,
679
695
  persistVaultKeyInKeychain,
696
+ planHistoryAgePurge,
697
+ planHistoryRetention,
680
698
  readKeychainVaultKey,
681
699
  readViewerContext,
700
+ requestOccupancy,
682
701
  resolveAccountProfile,
683
702
  resolveAccountProfileFromSettings,
684
703
  resolveAgentExecutable,
@@ -700,7 +719,9 @@ import {
700
719
  showCostEnabled,
701
720
  slackAppLevelToken,
702
721
  slackListenEnabled,
722
+ sumUsageList,
703
723
  toPublicAppSettings,
724
+ totalTokens,
704
725
  updateAdvancedSettings,
705
726
  updateAgentExecutable,
706
727
  updateAppEnvironment,
@@ -713,7 +734,7 @@ import {
713
734
  updateProjectProfileSettings,
714
735
  usageOnLimit,
715
736
  writeViewerContext
716
- } from "./chunk-Y4CF7LHH.js";
737
+ } from "./chunk-VJQDUD24.js";
717
738
  import {
718
739
  stripNestedElectronEnv
719
740
  } from "./chunk-4TR3HZFT.js";
@@ -746,7 +767,8 @@ import {
746
767
  updateThread,
747
768
  withThreadLock,
748
769
  writeThread
749
- } from "./chunk-ARR4OGLY.js";
770
+ } from "./chunk-OY7THBLG.js";
771
+ import "./chunk-7J72QJOM.js";
750
772
  import {
751
773
  THINKING_EFFORTS,
752
774
  isThinkingEffort,
@@ -805,6 +827,7 @@ function slimThreadForUiList(thread) {
805
827
  return {
806
828
  ...thread,
807
829
  attachments: [],
830
+ pendingTurnAttachments: [],
808
831
  messages: slimMessagesForUiList(messages, thread.updatedAt)
809
832
  };
810
833
  }
@@ -5231,7 +5254,7 @@ async function startMcpServer() {
5231
5254
  );
5232
5255
  }
5233
5256
  try {
5234
- const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-GJ6KDYEF.js");
5257
+ const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-VBQHGX5Z.js");
5235
5258
  orch.setMaxConcurrent(maxConcurrentAgents2());
5236
5259
  } catch {
5237
5260
  }
@@ -5546,7 +5569,7 @@ async function startMcpServer() {
5546
5569
  registerConnectedIssueVendorTools(server);
5547
5570
  registerScheduleTools(server);
5548
5571
  const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-22VFDPSO.js");
5549
- const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-GJ6KDYEF.js");
5572
+ const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-VBQHGX5Z.js");
5550
5573
  const accountDefaults = resolveThreadDefaults2();
5551
5574
  const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
5552
5575
  server.tool(
@@ -8567,6 +8590,12 @@ export {
8567
8590
  GITHUB_PR_BODY_SAFE_CHARS,
8568
8591
  GLOBAL_WORKSPACE_ID,
8569
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,
8570
8599
  HOME_BOARD_CACHE_TTL_MS,
8571
8600
  IMPLIED_TICKET_RESOLVE_PROMPT,
8572
8601
  ISSUE_SOURCE_LABELS,
@@ -8616,6 +8645,8 @@ export {
8616
8645
  SLACK_PROGRESS_EDIT_MS,
8617
8646
  SLACK_REPLY_FORMATTING,
8618
8647
  SLACK_SEEN_REACTION,
8648
+ STDERR_EVENT_MAX_CHARS,
8649
+ STDOUT_EVENT_MAX_CHARS,
8619
8650
  SlackOAuthCancelledError,
8620
8651
  SlackRelayHub,
8621
8652
  THINKING_EFFORTS,
@@ -8672,6 +8703,7 @@ export {
8672
8703
  attachmentsFromWorktreePaths,
8673
8704
  attachmentsGitignoreBody,
8674
8705
  autoArchiveOnMergeEnabled,
8706
+ autoCleanupHistoryEnabled,
8675
8707
  autoCleanupOrphansEnabled,
8676
8708
  autoRenameBranchEnabled,
8677
8709
  autoRunAfterSetupEnabled,
@@ -8709,14 +8741,18 @@ export {
8709
8741
  childEnvWithAppSettings,
8710
8742
  claimDesktopHost,
8711
8743
  clampGithubPrBody,
8744
+ clampHistoryMaxCount,
8745
+ clampHistoryMaxDays,
8712
8746
  classifyWorktreeColumn,
8713
8747
  claudeAdapter,
8714
8748
  claudeChromeEnabled,
8715
8749
  claudeUsageOverLimitWindows,
8716
8750
  claudeUserSettingsPath,
8751
+ cleanupArchivedHistory,
8717
8752
  cleanupOrphanWorktrees,
8718
8753
  clearBoardPins,
8719
8754
  clearHomeBoardCache,
8755
+ clipAgentEventForPaint,
8720
8756
  clipThinkingForStore,
8721
8757
  cloneRepoIntoSideboard,
8722
8758
  codeRefRangeLabel,
@@ -8739,6 +8775,7 @@ export {
8739
8775
  connectSlackToken,
8740
8776
  connectedOptionalServices,
8741
8777
  connectedPrSelectors,
8778
+ consumeComposerAttachments,
8742
8779
  contextTokens,
8743
8780
  coordinatorSystemPrompt,
8744
8781
  coordinatorTurnReminder,
@@ -8943,6 +8980,8 @@ export {
8943
8980
  hasRepoHook,
8944
8981
  hasWorkspaceHook,
8945
8982
  healOrchestrationSoccerTitles,
8983
+ historyMaxCount,
8984
+ historyMaxDays,
8946
8985
  hottestClaudeWindow,
8947
8986
  httpFetch,
8948
8987
  importConductorWorkspace,
@@ -8975,6 +9014,7 @@ export {
8975
9014
  isGhRateLimitError,
8976
9015
  isGlobalRepoPath,
8977
9016
  isGlobalThread,
9017
+ isHistoryRetentionStub,
8978
9018
  isHomeBoardThread,
8979
9019
  isImageFilePath,
8980
9020
  isInPrStack,
@@ -9133,6 +9173,8 @@ export {
9133
9173
  persistPendingFileAttachments,
9134
9174
  persistVaultKeyInKeychain,
9135
9175
  planFileAbs,
9176
+ planHistoryAgePurge,
9177
+ planHistoryRetention,
9136
9178
  planQuestionsSignature,
9137
9179
  pollSlackOutboundWatches,
9138
9180
  posixShellSingleQuote,
@@ -9248,6 +9290,7 @@ export {
9248
9290
  shouldRefreshReviewRequestTemplate,
9249
9291
  shouldRemoveWorktreeOnTeardown,
9250
9292
  shouldResetSessionForOccupancy,
9293
+ shouldRunHistoryCleanup,
9251
9294
  shouldRunWorktreeCleanup,
9252
9295
  shouldStampSetupLastError,
9253
9296
  showCostEnabled,
@@ -9288,6 +9331,7 @@ export {
9288
9331
  summarizeConversation,
9289
9332
  switchBrightsyAccount,
9290
9333
  syncWorkspacesFromThreads,
9334
+ takePendingTurnAttachments,
9291
9335
  takenTeamSlugsForChatTab,
9292
9336
  takenTeamSlugsForOrchestration,
9293
9337
  taskMessageText,