@sideboard-ai/core 0.1.193 → 0.1.194

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-UX53JTIH.js → abletime-HR6P4GJH.js} +3 -3
  2. package/dist/{abletime-QHKWGTBY.js → abletime-JINF5KJV.js} +3 -3
  3. package/dist/agents/cursor-runner.js +2 -2
  4. package/dist/{agents-MN4GSQTL.js → agents-OXDDPH2O.js} +16 -17
  5. package/dist/{agents-OK5VD25T.js → agents-WQL7SZY6.js} +6 -7
  6. package/dist/{app-settings-LO7UFHQ6.js → app-settings-5KHVKJKO.js} +2 -2
  7. package/dist/{app-settings-QYLNKRK4.js → app-settings-J775CYOO.js} +2 -2
  8. package/dist/{branch-prefix-EVW2KHGQ.js → branch-prefix-7DTIUJT2.js} +1 -1
  9. package/dist/{branch-prefix-7F37FIPX.js → branch-prefix-N3KTCRCE.js} +1 -1
  10. package/dist/{chunk-MQC2VA5U.js → chunk-2X6RGKLI.js} +13 -13
  11. package/dist/{chunk-EBPBGQ4P.js → chunk-6H2XPPPR.js} +9 -9
  12. package/dist/{chunk-HIX2VDRE.js → chunk-6YTI2HBG.js} +6 -8
  13. package/dist/{chunk-KORE4WOF.js → chunk-AH6WIBLY.js} +1 -1
  14. package/dist/{chunk-XPKKCFRT.js → chunk-DP4TKAMZ.js} +864 -7
  15. package/dist/{chunk-O4BMPY5Y.js → chunk-E37JHCO3.js} +1 -1
  16. package/dist/{chunk-JTWKGOFI.js → chunk-FJZWM2ON.js} +1 -1
  17. package/dist/{chunk-4OVCJPVI.js → chunk-HZTHWU6A.js} +6 -8
  18. package/dist/{chunk-4QJRH5DL.js → chunk-KTHRWHA3.js} +1 -1
  19. package/dist/{chunk-EQXXGOMD.js → chunk-NY366OEZ.js} +46 -58
  20. package/dist/{chunk-BIKCWYRP.js → chunk-S4QCBBXS.js} +873 -16
  21. package/dist/{chunk-BWRS6GAS.js → chunk-S5GLSRLP.js} +1 -1
  22. package/dist/{chunk-PE337IM2.js → chunk-SALM35KD.js} +7 -7
  23. package/dist/{chunk-3DX2T2KR.js → chunk-VRPPFKAO.js} +37 -49
  24. package/dist/{chunk-7SNJMKD6.js → chunk-WDRMZKVB.js} +1 -1
  25. package/dist/{connected-teams-SYQQGCXD.js → connected-teams-WK47ATT7.js} +2 -2
  26. package/dist/{coordinator-prompt-WB65HIZ3.js → coordinator-prompt-IX66YUJ2.js} +5 -6
  27. package/dist/{coordinator-prompt-GXJIPWNA.js → coordinator-prompt-LYKS3YNG.js} +4 -5
  28. package/dist/{global-workspace-MMK5UFUZ.js → global-workspace-4QX6UEOY.js} +5 -6
  29. package/dist/{global-workspace-BZ6V6TEX.js → global-workspace-SNJ2Z6SL.js} +4 -5
  30. package/dist/index.cjs +50 -84
  31. package/dist/index.d.cts +4 -5
  32. package/dist/index.d.ts +4 -5
  33. package/dist/index.js +95 -54
  34. package/dist/mcp/run-stdio.cjs +47 -83
  35. package/dist/mcp/run-stdio.js +67 -26
  36. package/dist/{orchestrator-SFOT6Q6F.js → orchestrator-A5KF2335.js} +8 -9
  37. package/dist/{orchestrator-4KI6VIFG.js → orchestrator-S3M2E7O6.js} +9 -10
  38. package/dist/{workspaces-KPJS7GLY.js → workspaces-URMUVGAQ.js} +5 -6
  39. package/dist/{workspaces-ACMZMKPD.js → workspaces-UTOYGBYB.js} +4 -5
  40. package/dist/{worktree-6IEVF3GN.js → worktree-R43JOR4V.js} +12 -14
  41. package/dist/{worktree-UW6DNBIE.js → worktree-RM6UWNGZ.js} +17 -19
  42. package/package.json +1 -1
  43. package/dist/chunk-64QSHOKV.js +0 -869
  44. package/dist/chunk-ILWQT2UN.js +0 -55
  45. package/dist/chunk-PBEPPXMY.js +0 -57
  46. package/dist/chunk-RCWHL4TK.js +0 -866
  47. package/dist/github-DWROJOB7.js +0 -11
  48. package/dist/github-IIF7AQNO.js +0 -9
  49. package/dist/worktree-labels-3XDS6O3U.js +0 -22
  50. package/dist/worktree-labels-PEDOJBMD.js +0 -24
  51. package/dist/{chunk-7AJ7OZZF.js → chunk-NLHFAMC2.js} +3 -3
@@ -6,7 +6,7 @@ import {
6
6
  getAbleTimeHost,
7
7
  isAbleTimeConnected,
8
8
  saveAbleTimeConnection
9
- } from "./chunk-BWRS6GAS.js";
9
+ } from "./chunk-S5GLSRLP.js";
10
10
 
11
11
  // src/integrations/abletime-mcp.ts
12
12
  var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
@@ -8,7 +8,7 @@ function sanitizeGitBranchPrefix(raw) {
8
8
  return slug || null;
9
9
  }
10
10
  function resolveGitBranchPrefix(opts) {
11
- return sanitizeGitBranchPrefix(opts.setting) ?? sanitizeGitBranchPrefix(opts.githubLogin);
11
+ return sanitizeGitBranchPrefix(opts.setting);
12
12
  }
13
13
  function examplePrefixedBranch(prefix, ticket) {
14
14
  const head = sanitizeGitBranchPrefix(prefix);
@@ -1,8 +1,11 @@
1
1
  import {
2
+ allocateTeamName,
2
3
  ensureGhPreferOrigin,
3
4
  resolveGithubRepoSlug,
4
- resolveRepoRoot
5
- } from "./chunk-BIKCWYRP.js";
5
+ resolveRepoRoot,
6
+ takenSlugsFromThread,
7
+ teamSlugFromName
8
+ } from "./chunk-S4QCBBXS.js";
6
9
  import {
7
10
  ATTACHMENTS_DIR,
8
11
  attachmentsGitignoreBody
@@ -19,7 +22,7 @@ import {
19
22
  resolveThreadDefaults,
20
23
  resolveViewerProfile,
21
24
  resolveViewerProfileForRepo
22
- } from "./chunk-BWRS6GAS.js";
25
+ } from "./chunk-S5GLSRLP.js";
23
26
  import {
24
27
  createEmptyThread,
25
28
  listThreads,
@@ -31,11 +34,6 @@ import {
31
34
  globalAgentCwd,
32
35
  sideboardReposDir
33
36
  } from "./chunk-WFUDY6PC.js";
34
- import {
35
- allocateTeamName,
36
- takenSlugsFromThread,
37
- teamSlugFromName
38
- } from "./chunk-RCWHL4TK.js";
39
37
 
40
38
  // src/store/workspaces.ts
41
39
  import { existsSync as existsSync2, mkdirSync as mkdirSync3, readFileSync as readFileSync3, writeFileSync as writeFileSync3 } from "fs";
@@ -8,7 +8,7 @@ import {
8
8
  getAbleTimeHost,
9
9
  isAbleTimeConnected,
10
10
  saveAbleTimeConnection
11
- } from "./chunk-KORE4WOF.js";
11
+ } from "./chunk-AH6WIBLY.js";
12
12
 
13
13
  // src/integrations/abletime-mcp.ts
14
14
  var DEFAULT_ABLETIME_HOST = "https://track.abletime.com";
@@ -1,3 +1,8 @@
1
+ import {
2
+ extractPresentedPlan,
3
+ readPlanFile,
4
+ writePlanFile
5
+ } from "./chunk-DJU54RYW.js";
1
6
  import {
2
7
  PLAN_MODE_INSTRUCTION,
3
8
  allAdapters,
@@ -19,12 +24,7 @@ import {
19
24
  stripBrightsyNdjsonNoise,
20
25
  sumUsageList,
21
26
  toolDescription
22
- } from "./chunk-MQC2VA5U.js";
23
- import {
24
- extractPresentedPlan,
25
- readPlanFile,
26
- writePlanFile
27
- } from "./chunk-DJU54RYW.js";
27
+ } from "./chunk-2X6RGKLI.js";
28
28
  import {
29
29
  SLACK_REPLY_FORMATTING,
30
30
  addWorkspace,
@@ -47,9 +47,10 @@ import {
47
47
  stageAbsolutePathsAsAttachments,
48
48
  stageBuffersAsAttachments,
49
49
  syncWorkspacesFromThreads
50
- } from "./chunk-4OVCJPVI.js";
50
+ } from "./chunk-HZTHWU6A.js";
51
51
  import {
52
52
  addPrStackLayer,
53
+ allocateTeamName,
53
54
  allocateTeamSlug,
54
55
  canonicalizeRepoPath,
55
56
  commitAll,
@@ -72,11 +73,13 @@ import {
72
73
  getPrStack,
73
74
  initPrStack,
74
75
  isDirty,
76
+ isPlaceholderBranch,
75
77
  isSideboardScratchPath,
76
78
  listWorktrees,
77
79
  markPrReady,
78
80
  mergeAgentGitAuthEnv,
79
81
  mergePr,
82
+ normalizeWorktreePath,
80
83
  originGhRepoEnv,
81
84
  pushBranch,
82
85
  removeWorktree,
@@ -87,8 +90,14 @@ import {
87
90
  resolvePrSelector,
88
91
  resolvePrSelectors,
89
92
  resolveRepoRoot,
90
- withRepoGitLock
91
- } from "./chunk-BIKCWYRP.js";
93
+ takenSlugsFromThread,
94
+ threadDisplayLabel,
95
+ ticketSlugForBranch,
96
+ withRepoGitLock,
97
+ worktreeDisplayLabelForGroup,
98
+ worktreeNameFromPath,
99
+ worktreeSlugForTicket
100
+ } from "./chunk-S4QCBBXS.js";
92
101
  import {
93
102
  ATTACHMENTS_DIR,
94
103
  DETACHED_JOBS_DIR,
@@ -118,15 +127,7 @@ import {
118
127
  shouldRetryFailedAgentTurn,
119
128
  summarizeTurnStderr,
120
129
  turnFailChatText
121
- } from "./chunk-7AJ7OZZF.js";
122
- import {
123
- clearStaleIndexLocks,
124
- enrichPathWithNpmGlobalBin,
125
- ensureAgentPath,
126
- git,
127
- resolveGitDirsForLockRecovery,
128
- run
129
- } from "./chunk-UFHNSFAS.js";
130
+ } from "./chunk-NLHFAMC2.js";
130
131
  import {
131
132
  assertOrchestratorCapableAgent,
132
133
  childEnvWithAppSettings,
@@ -151,14 +152,14 @@ import {
151
152
  saveAppSettings,
152
153
  updateAdvancedSettings,
153
154
  writeSecureJson
154
- } from "./chunk-BWRS6GAS.js";
155
+ } from "./chunk-S5GLSRLP.js";
155
156
  import {
156
157
  stripNestedElectronEnv
157
158
  } from "./chunk-4TR3HZFT.js";
158
159
  import {
159
160
  examplePrefixedBranch,
160
161
  sanitizeGitBranchPrefix
161
- } from "./chunk-7SNJMKD6.js";
162
+ } from "./chunk-WDRMZKVB.js";
162
163
  import {
163
164
  releaseCaffeinateHoldForThread
164
165
  } from "./chunk-4TYXWPAJ.js";
@@ -191,16 +192,13 @@ import {
191
192
  worktreesRoot
192
193
  } from "./chunk-WFUDY6PC.js";
193
194
  import {
194
- allocateTeamName,
195
- isPlaceholderBranch,
196
- normalizeWorktreePath,
197
- takenSlugsFromThread,
198
- threadDisplayLabel,
199
- ticketSlugForBranch,
200
- worktreeDisplayLabelForGroup,
201
- worktreeNameFromPath,
202
- worktreeSlugForTicket
203
- } from "./chunk-RCWHL4TK.js";
195
+ clearStaleIndexLocks,
196
+ enrichPathWithNpmGlobalBin,
197
+ ensureAgentPath,
198
+ git,
199
+ resolveGitDirsForLockRecovery,
200
+ run
201
+ } from "./chunk-UFHNSFAS.js";
204
202
 
205
203
  // src/orchestrator/orchestrator.ts
206
204
  import { EventEmitter } from "events";
@@ -473,7 +471,7 @@ async function continueSourceThread(threadId, prompt) {
473
471
  await continueOnReply(threadId, prompt);
474
472
  return;
475
473
  }
476
- const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-4KI6VIFG.js");
474
+ const { getOrchestrator: getOrchestrator2 } = await import("./orchestrator-S3M2E7O6.js");
477
475
  await getOrchestrator2().send(threadId, prompt);
478
476
  } catch {
479
477
  }
@@ -807,9 +805,9 @@ async function spawnAgentTurn(thread, input, onEvent) {
807
805
  `Cannot spawn ${thread.agent}: thread ${thread.id} has no worktreePath`
808
806
  );
809
807
  }
810
- const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-MMK5UFUZ.js");
808
+ const { isGlobalThread: isGlobalThread2 } = await import("./global-workspace-4QX6UEOY.js");
811
809
  if (isGlobalThread2(thread)) {
812
- const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-WB65HIZ3.js");
810
+ const { ensureGlobalCoordinatorCwd: ensureGlobalCoordinatorCwd2 } = await import("./coordinator-prompt-IX66YUJ2.js");
813
811
  ensureGlobalCoordinatorCwd2(
814
812
  isOrchestratorThread(thread) ? { orchestratorThreadId: thread.id } : void 0
815
813
  );
@@ -3659,7 +3657,7 @@ async function createThread(input, _onSetupLine) {
3659
3657
  });
3660
3658
  await requireAgent(resolved.agent);
3661
3659
  if (input.cowboy) {
3662
- const { cowboyModeEnabled } = await import("./app-settings-LO7UFHQ6.js");
3660
+ const { cowboyModeEnabled } = await import("./app-settings-5KHVKJKO.js");
3663
3661
  if (!cowboyModeEnabled()) {
3664
3662
  throw new Error(
3665
3663
  "Cowboy mode is off. Enable it in Settings \u2192 Advanced."
@@ -3717,7 +3715,7 @@ async function createThread(input, _onSetupLine) {
3717
3715
  let sourceIsFork = false;
3718
3716
  if (!input.cowboy && sourceType === "branch" && (!sourceRef || sourceRef === "HEAD" || sourceRef === "default")) {
3719
3717
  if (isAbleTimeConnected() && getIssueSource() === "abletime") {
3720
- const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-QHKWGTBY.js");
3718
+ const { ensureAbleTimeTask, issueAttachmentForAbleTimeTask } = await import("./abletime-JINF5KJV.js");
3721
3719
  const task = await ensureAbleTimeTask({
3722
3720
  title: title?.trim() || "Untitled work",
3723
3721
  description: input.prompt?.trim() || void 0
@@ -3819,7 +3817,7 @@ async function createThread(input, _onSetupLine) {
3819
3817
  return readThread(thread.id) ?? thread;
3820
3818
  }
3821
3819
  async function listLinearIssues(agent, repoPath) {
3822
- const { getAdapter: getAdapter2 } = await import("./agents-MN4GSQTL.js");
3820
+ const { getAdapter: getAdapter2 } = await import("./agents-OXDDPH2O.js");
3823
3821
  await requireAgent(agent, { requireLinear: true });
3824
3822
  const adapter = getAdapter2(agent);
3825
3823
  if (!adapter.listLinearIssues) {
@@ -4241,7 +4239,7 @@ async function adoptThread(input) {
4241
4239
  messages: input.messages ?? []
4242
4240
  });
4243
4241
  writeThread(thread);
4244
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-KPJS7GLY.js");
4242
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-URMUVGAQ.js");
4245
4243
  await ensureWorkspace2(repoPath);
4246
4244
  const { ensureWorktreeSideboardIgnored: ensureWorktreeSideboardIgnored2 } = await import("./worktree-exclude-X54WSOXM.js");
4247
4245
  await ensureWorktreeSideboardIgnored2(input.worktreePath);
@@ -6825,7 +6823,7 @@ function formatScheduledPrompt(name, prompt) {
6825
6823
  ${prompt}`;
6826
6824
  }
6827
6825
  async function defaultDeps() {
6828
- const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-4KI6VIFG.js");
6826
+ const { getOrchestrator: getOrchestrator2, startOrchestration: startOrchestration2 } = await import("./orchestrator-S3M2E7O6.js");
6829
6827
  const orch = getOrchestrator2();
6830
6828
  return {
6831
6829
  findThread: (id) => findThreadByRef(id),
@@ -7100,7 +7098,7 @@ var Orchestrator = class {
7100
7098
  orphans: orphans.map((o) => ({ path: o.path, repoPath: o.repoPath }))
7101
7099
  });
7102
7100
  }
7103
- const { autoCleanupOrphansEnabled } = await import("./app-settings-LO7UFHQ6.js");
7101
+ const { autoCleanupOrphansEnabled } = await import("./app-settings-5KHVKJKO.js");
7104
7102
  if (autoCleanupOrphansEnabled() && shouldRunWorktreeCleanup() && orphans.length > 0) {
7105
7103
  await cleanupOrphanWorktrees({ repoPaths });
7106
7104
  }
@@ -7379,7 +7377,7 @@ var Orchestrator = class {
7379
7377
  }
7380
7378
  await setup;
7381
7379
  if (skipSetup) return;
7382
- const { autoRunAfterSetupEnabled } = await import("./app-settings-LO7UFHQ6.js");
7380
+ const { autoRunAfterSetupEnabled } = await import("./app-settings-5KHVKJKO.js");
7383
7381
  if (autoRunAfterSetupEnabled()) {
7384
7382
  try {
7385
7383
  await this.startDev(threadId);
@@ -7702,7 +7700,7 @@ var Orchestrator = class {
7702
7700
  }
7703
7701
  const isBrightsy = fresh.agent === "brightsy";
7704
7702
  const isOrchestration = isOrchestratorThread(fresh);
7705
- const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-LO7UFHQ6.js");
7703
+ const { autoRenameBranchEnabled, getGithubGitAuthMode, gitBranchPrefixSetting } = await import("./app-settings-5KHVKJKO.js");
7706
7704
  const gitAuthMode = getGithubGitAuthMode();
7707
7705
  const worktreeDirective = isBrightsy || isOrchestration ? null : formatWorktreeDirective(fresh, {
7708
7706
  githubSlug: await resolveGithubRepoSlug(fresh.worktreePath).catch(
@@ -7740,21 +7738,11 @@ var Orchestrator = class {
7740
7738
  const settings = loadWorkspaceSettings(fresh.worktreePath, fresh.repoPath);
7741
7739
  let renameBranchDirective = null;
7742
7740
  if (!isBrightsy && !isOrchestration && autoRenameBranchEnabled()) {
7743
- const { isPlaceholderBranch: isPlaceholderBranch2 } = await import("./worktree-labels-3XDS6O3U.js");
7744
- let githubLogin = null;
7745
- if (isPlaceholderBranch2(fresh.branchName, fresh.worktreePath) && !gitBranchPrefixSetting()) {
7746
- try {
7747
- const { getGitHubStatus } = await import("./github-IIF7AQNO.js");
7748
- githubLogin = (await getGitHubStatus()).login;
7749
- } catch {
7750
- }
7751
- }
7752
- const { resolveGitBranchPrefix } = await import("./branch-prefix-7F37FIPX.js");
7741
+ const { resolveGitBranchPrefix } = await import("./branch-prefix-N3KTCRCE.js");
7753
7742
  renameBranchDirective = formatRenameBranchDirective(fresh, {
7754
7743
  customPrompt: settings?.prompts?.renameBranch,
7755
7744
  branchPrefix: resolveGitBranchPrefix({
7756
- setting: gitBranchPrefixSetting(),
7757
- githubLogin
7745
+ setting: gitBranchPrefixSetting()
7758
7746
  })
7759
7747
  });
7760
7748
  }
@@ -8645,7 +8633,7 @@ var Orchestrator = class {
8645
8633
  updateThread(thread.id, { title: meta.title });
8646
8634
  }
8647
8635
  }
8648
- const { autoArchiveOnMergeEnabled } = await import("./app-settings-LO7UFHQ6.js");
8636
+ const { autoArchiveOnMergeEnabled } = await import("./app-settings-5KHVKJKO.js");
8649
8637
  const latest = this.requireThread(thread.id);
8650
8638
  if (!shouldAutoArchiveOnPrMerge({
8651
8639
  previousPrState: prevState || null,
@@ -8937,7 +8925,7 @@ var Orchestrator = class {
8937
8925
  this.emit({ type: "status_changed", threadId: archived.id, status: "archived" });
8938
8926
  if (thread.repoPath && !isGlobalRepoPath(thread.repoPath)) {
8939
8927
  try {
8940
- const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-KPJS7GLY.js");
8928
+ const { ensureWorkspace: ensureWorkspace2 } = await import("./workspaces-URMUVGAQ.js");
8941
8929
  await ensureWorkspace2(thread.repoPath);
8942
8930
  } catch {
8943
8931
  }
@@ -8964,7 +8952,7 @@ var Orchestrator = class {
8964
8952
  await runArchiveScript(thread.repoPath, thread.worktreePath);
8965
8953
  } catch {
8966
8954
  }
8967
- const { deleteBranchOnPurgeEnabled } = await import("./app-settings-LO7UFHQ6.js");
8955
+ const { deleteBranchOnPurgeEnabled } = await import("./app-settings-5KHVKJKO.js");
8968
8956
  const deleteBranch = opts?.deleteBranch ?? deleteBranchOnPurgeEnabled();
8969
8957
  await removeWorktree(thread.repoPath, thread.worktreePath, {
8970
8958
  deleteBranch: deleteBranch ? thread.branchName : void 0
@@ -8991,7 +8979,7 @@ var Orchestrator = class {
8991
8979
  `Cowboy checkout missing: ${thread.worktreePath}. Re-add the project folder, then restore.`
8992
8980
  );
8993
8981
  }
8994
- const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-UW6DNBIE.js");
8982
+ const { createThreadWorktree: createThreadWorktree2 } = await import("./worktree-RM6UWNGZ.js");
8995
8983
  const slug = thread.worktreePath.split("/").pop();
8996
8984
  const dest = thread.worktreePath;
8997
8985
  await withRepoGitLock(thread.repoPath, async () => {
@@ -9101,7 +9089,7 @@ async function startOrchestration(opts) {
9101
9089
  sourceRef: "default",
9102
9090
  ...createOpts
9103
9091
  }).catch(async () => {
9104
- const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-UW6DNBIE.js");
9092
+ const { resolveDefaultBranch: resolveDefaultBranch2, resolveRepoRoot: resolveRepoRoot2 } = await import("./worktree-RM6UWNGZ.js");
9105
9093
  const repo = await resolveRepoRoot2(repoPath);
9106
9094
  const def = await resolveDefaultBranch2(repo);
9107
9095
  return orch.createThread({