@sideboard-ai/core 0.1.193 → 0.1.195

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-3DX2T2KR.js → chunk-GFH3QVAV.js} +188 -95
  18. package/dist/{chunk-EQXXGOMD.js → chunk-HAVI6AY3.js} +197 -104
  19. package/dist/{chunk-4OVCJPVI.js → chunk-HZTHWU6A.js} +6 -8
  20. package/dist/{chunk-4QJRH5DL.js → chunk-KTHRWHA3.js} +1 -1
  21. package/dist/{chunk-BIKCWYRP.js → chunk-S4QCBBXS.js} +873 -16
  22. package/dist/{chunk-BWRS6GAS.js → chunk-S5GLSRLP.js} +1 -1
  23. package/dist/{chunk-PE337IM2.js → chunk-SALM35KD.js} +7 -7
  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 +1051 -971
  31. package/dist/index.d.cts +7 -5
  32. package/dist/index.d.ts +7 -5
  33. package/dist/index.js +95 -54
  34. package/dist/mcp/run-stdio.cjs +218 -140
  35. package/dist/mcp/run-stdio.js +67 -26
  36. package/dist/{orchestrator-4KI6VIFG.js → orchestrator-6ESBGMDN.js} +9 -10
  37. package/dist/{orchestrator-SFOT6Q6F.js → orchestrator-EHRFN3Q6.js} +8 -9
  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
package/dist/index.d.cts CHANGED
@@ -975,7 +975,7 @@ interface AdvancedAppSettings {
975
975
  autoRenameBranch?: boolean;
976
976
  /**
977
977
  * First segment of renamed task branches (`matt/bb-1234-eng-fix-thing`).
978
- * Empty / omitted → connected GitHub username.
978
+ * Empty / omitted → no prefix.
979
979
  */
980
980
  branchPrefix?: string;
981
981
  /**
@@ -1307,7 +1307,7 @@ declare function brightsyCloudConnectAgent(settings?: AppSettings): BrightsyClou
1307
1307
  declare function updateAdvancedSettings(patch: Partial<AdvancedAppSettings>): AppSettings;
1308
1308
  /** Conductor default: on. */
1309
1309
  declare function autoRenameBranchEnabled(settings?: AppSettings): boolean;
1310
- /** Saved account prefix, or null to fall back to the GitHub username. */
1310
+ /** Saved account prefix, or null when empty (no default). */
1311
1311
  declare function gitBranchPrefixSetting(settings?: AppSettings): string | null;
1312
1312
  declare function autoRunAfterSetupEnabled(settings?: AppSettings): boolean;
1313
1313
  declare function caffeinateWhileRunningEnabled(settings?: AppSettings): boolean;
@@ -2089,13 +2089,12 @@ declare function checkoutPrStackLayer(cwd: string, target: string | number): Pro
2089
2089
 
2090
2090
  /**
2091
2091
  * Account git branch prefix (Settings → Git).
2092
- * Empty setting falls back to the connected GitHub username.
2092
+ * Empty / omitted means no prefix — do not invent a default.
2093
2093
  */
2094
2094
  declare function sanitizeGitBranchPrefix(raw: string | null | undefined): string | null;
2095
- /** Prefer the saved setting; otherwise the GitHub login. */
2095
+ /** Saved setting only. Empty does not fall back to the GitHub username. */
2096
2096
  declare function resolveGitBranchPrefix(opts: {
2097
2097
  setting?: string | null;
2098
- githubLogin?: string | null;
2099
2098
  }): string | null;
2100
2099
  /** Example branch for the rename-placeholder directive. */
2101
2100
  declare function examplePrefixedBranch(prefix: string | null | undefined, ticket?: string | null): string;
@@ -4490,9 +4489,12 @@ declare class Orchestrator {
4490
4489
  ports: number[];
4491
4490
  }>;
4492
4491
  stopDev(threadRef: string, scriptName?: string): void;
4492
+ private syncWorktreeRuns;
4493
4493
  listThreadRunScripts(threadRef: string): RunScript[];
4494
4494
  getActiveRuns(threadRef: string): ActiveRun[];
4495
4495
  getSetupLog(threadRef: string): SetupLogSnapshot;
4496
+ private hasWorktreeSetupProcess;
4497
+ private writeSetupLog;
4496
4498
  runSetup(threadRef: string, opts?: {
4497
4499
  stampLastError?: boolean;
4498
4500
  }): Promise<{
package/dist/index.d.ts CHANGED
@@ -975,7 +975,7 @@ interface AdvancedAppSettings {
975
975
  autoRenameBranch?: boolean;
976
976
  /**
977
977
  * First segment of renamed task branches (`matt/bb-1234-eng-fix-thing`).
978
- * Empty / omitted → connected GitHub username.
978
+ * Empty / omitted → no prefix.
979
979
  */
980
980
  branchPrefix?: string;
981
981
  /**
@@ -1307,7 +1307,7 @@ declare function brightsyCloudConnectAgent(settings?: AppSettings): BrightsyClou
1307
1307
  declare function updateAdvancedSettings(patch: Partial<AdvancedAppSettings>): AppSettings;
1308
1308
  /** Conductor default: on. */
1309
1309
  declare function autoRenameBranchEnabled(settings?: AppSettings): boolean;
1310
- /** Saved account prefix, or null to fall back to the GitHub username. */
1310
+ /** Saved account prefix, or null when empty (no default). */
1311
1311
  declare function gitBranchPrefixSetting(settings?: AppSettings): string | null;
1312
1312
  declare function autoRunAfterSetupEnabled(settings?: AppSettings): boolean;
1313
1313
  declare function caffeinateWhileRunningEnabled(settings?: AppSettings): boolean;
@@ -2089,13 +2089,12 @@ declare function checkoutPrStackLayer(cwd: string, target: string | number): Pro
2089
2089
 
2090
2090
  /**
2091
2091
  * Account git branch prefix (Settings → Git).
2092
- * Empty setting falls back to the connected GitHub username.
2092
+ * Empty / omitted means no prefix — do not invent a default.
2093
2093
  */
2094
2094
  declare function sanitizeGitBranchPrefix(raw: string | null | undefined): string | null;
2095
- /** Prefer the saved setting; otherwise the GitHub login. */
2095
+ /** Saved setting only. Empty does not fall back to the GitHub username. */
2096
2096
  declare function resolveGitBranchPrefix(opts: {
2097
2097
  setting?: string | null;
2098
- githubLogin?: string | null;
2099
2098
  }): string | null;
2100
2099
  /** Example branch for the rename-placeholder directive. */
2101
2100
  declare function examplePrefixedBranch(prefix: string | null | undefined, ticket?: string | null): string;
@@ -4490,9 +4489,12 @@ declare class Orchestrator {
4490
4489
  ports: number[];
4491
4490
  }>;
4492
4491
  stopDev(threadRef: string, scriptName?: string): void;
4492
+ private syncWorktreeRuns;
4493
4493
  listThreadRunScripts(threadRef: string): RunScript[];
4494
4494
  getActiveRuns(threadRef: string): ActiveRun[];
4495
4495
  getSetupLog(threadRef: string): SetupLogSnapshot;
4496
+ private hasWorktreeSetupProcess;
4497
+ private writeSetupLog;
4496
4498
  runSetup(threadRef: string, opts?: {
4497
4499
  stampLastError?: boolean;
4498
4500
  }): Promise<{
package/dist/index.js CHANGED
@@ -25,11 +25,7 @@ import {
25
25
  toAbleTimeIssueInfo,
26
26
  updateAbleTimeTask,
27
27
  verifyAbleTimeConnection
28
- } from "./chunk-O4BMPY5Y.js";
29
- import {
30
- getGitHubStatus,
31
- refreshGitHubAuth
32
- } from "./chunk-ILWQT2UN.js";
28
+ } from "./chunk-E37JHCO3.js";
33
29
  import {
34
30
  AGENT_GIT_ACTIONS,
35
31
  BOARD_COLUMN_DEFS,
@@ -272,7 +268,18 @@ import {
272
268
  worktreeCleanupSettings,
273
269
  wrapReviewSkillMarkdown,
274
270
  writeWorktreeFile
275
- } from "./chunk-EQXXGOMD.js";
271
+ } from "./chunk-HAVI6AY3.js";
272
+ import {
273
+ LEGACY_PLAN_FILE_REL,
274
+ PLAN_FILE_NAME,
275
+ PLAN_FILE_REL,
276
+ extractPresentedPlan,
277
+ isPresentPlanToolName,
278
+ planFileAbs,
279
+ readPlanFile,
280
+ resolvePlanMarkdown,
281
+ writePlanFile
282
+ } from "./chunk-DJU54RYW.js";
276
283
  import {
277
284
  BRIGHTSY_MCP_ALLOWED_TOOLS,
278
285
  CLAUDE_MODEL_CATALOG,
@@ -367,18 +374,7 @@ import {
367
374
  withEventParentId,
368
375
  withEventsParentId,
369
376
  writeInjectedMcpConfig
370
- } from "./chunk-MQC2VA5U.js";
371
- import {
372
- LEGACY_PLAN_FILE_REL,
373
- PLAN_FILE_NAME,
374
- PLAN_FILE_REL,
375
- extractPresentedPlan,
376
- isPresentPlanToolName,
377
- planFileAbs,
378
- readPlanFile,
379
- resolvePlanMarkdown,
380
- writePlanFile
381
- } from "./chunk-DJU54RYW.js";
377
+ } from "./chunk-2X6RGKLI.js";
382
378
  import {
383
379
  CLOUD_COORDINATOR_BUSY_REPLY,
384
380
  CLOUD_COORDINATOR_STOPPED_REPLY,
@@ -421,15 +417,18 @@ import {
421
417
  stageBuffersAsAttachments,
422
418
  syncWorkspacesFromThreads,
423
419
  takenTeamSlugsForOrchestration
424
- } from "./chunk-4OVCJPVI.js";
420
+ } from "./chunk-HZTHWU6A.js";
425
421
  import {
422
+ FAMOUS_SOCCER_TEAMS,
426
423
  GITHUB_PR_BODY_MAX_CHARS,
427
424
  GITHUB_PR_BODY_SAFE_CHARS,
428
425
  PR_DETAILS_JSON_FIELDS,
429
426
  addPrStackLayer,
427
+ allocateTeamName,
430
428
  allocateTeamSlug,
431
429
  appendIndexedGitConfig,
432
430
  applyGithubGitAuthEnv,
431
+ branchDisplayLabel,
433
432
  canonicalizeRepoPath,
434
433
  checkoutPrStackLayer,
435
434
  clampGithubPrBody,
@@ -470,16 +469,19 @@ import {
470
469
  isGhPrBodyTooLongError,
471
470
  isGhRateLimitError,
472
471
  isInPrStack,
472
+ isPlaceholderBranch,
473
473
  isPrNotMergeableError,
474
474
  isSideboardScratchPath,
475
475
  listBranches,
476
476
  listPrs,
477
477
  listWorktrees,
478
+ lookupSoccerTeam,
478
479
  markPrReady,
479
480
  mergeAgentGitAuthEnv,
480
481
  mergePr,
481
482
  mergePrStack,
482
483
  nonInteractiveGitProcessEnv,
484
+ normalizeWorktreePath,
483
485
  originFetchBranch,
484
486
  originGhRepoEnv,
485
487
  parseGhStackViewJson,
@@ -505,8 +507,14 @@ import {
505
507
  stackMergeReadiness,
506
508
  submitPrStack,
507
509
  suggestSlug,
508
- warmGithubAgentAuth
509
- } from "./chunk-BIKCWYRP.js";
510
+ threadDisplayLabel,
511
+ ticketSlugForBranch,
512
+ warmGithubAgentAuth,
513
+ worktreeDisplayLabel,
514
+ worktreeDisplayLabelForGroup,
515
+ worktreeNameFromPath,
516
+ worktreeSlugForTicket
517
+ } from "./chunk-S4QCBBXS.js";
510
518
  import {
511
519
  ATTACHMENTS_DIR,
512
520
  CLI_DIR,
@@ -526,7 +534,7 @@ import {
526
534
  listBrightsyAccounts,
527
535
  listConnectedBrightsyTeams,
528
536
  switchBrightsyAccount
529
- } from "./chunk-PE337IM2.js";
537
+ } from "./chunk-SALM35KD.js";
530
538
  import {
531
539
  brightsyAccessTokenNeedsRefresh,
532
540
  brightsyConfigPath,
@@ -552,21 +560,7 @@ import {
552
560
  trustSystemCertificates,
553
561
  turnCostUsdFromCursorUsage,
554
562
  withMaxOldSpaceSize
555
- } from "./chunk-7AJ7OZZF.js";
556
- import {
557
- conductorBundledBinDir,
558
- enrichPathWithNpmGlobalBin,
559
- ensureAgentPath,
560
- gh,
561
- git,
562
- isConductorBundledCli,
563
- posixShellSingleQuote,
564
- resolveCommandBinarySync,
565
- resolveGhAuthToken,
566
- resolveGitDirsForLockRecovery,
567
- run,
568
- withExportedPath
569
- } from "./chunk-UFHNSFAS.js";
563
+ } from "./chunk-NLHFAMC2.js";
570
564
  import {
571
565
  FOLLOW_UP_BEHAVIORS,
572
566
  GITHUB_GIT_AUTH_MODES,
@@ -662,7 +656,7 @@ import {
662
656
  updateOpencodeSettings,
663
657
  updateProjectProfileSettings,
664
658
  writeViewerContext
665
- } from "./chunk-BWRS6GAS.js";
659
+ } from "./chunk-S5GLSRLP.js";
666
660
  import {
667
661
  stripNestedElectronEnv
668
662
  } from "./chunk-4TR3HZFT.js";
@@ -670,7 +664,7 @@ import {
670
664
  examplePrefixedBranch,
671
665
  resolveGitBranchPrefix,
672
666
  sanitizeGitBranchPrefix
673
- } from "./chunk-7SNJMKD6.js";
667
+ } from "./chunk-WDRMZKVB.js";
674
668
  import {
675
669
  caffeinateHoldPath,
676
670
  getCaffeinateHold,
@@ -732,19 +726,66 @@ import {
732
726
  worktreesRoot
733
727
  } from "./chunk-WFUDY6PC.js";
734
728
  import {
735
- FAMOUS_SOCCER_TEAMS,
736
- allocateTeamName,
737
- branchDisplayLabel,
738
- isPlaceholderBranch,
739
- lookupSoccerTeam,
740
- normalizeWorktreePath,
741
- threadDisplayLabel,
742
- ticketSlugForBranch,
743
- worktreeDisplayLabel,
744
- worktreeDisplayLabelForGroup,
745
- worktreeNameFromPath,
746
- worktreeSlugForTicket
747
- } from "./chunk-RCWHL4TK.js";
729
+ conductorBundledBinDir,
730
+ enrichPathWithNpmGlobalBin,
731
+ ensureAgentPath,
732
+ gh,
733
+ git,
734
+ isConductorBundledCli,
735
+ posixShellSingleQuote,
736
+ resolveCommandBinarySync,
737
+ resolveGhAuthToken,
738
+ resolveGitDirsForLockRecovery,
739
+ run,
740
+ withExportedPath
741
+ } from "./chunk-UFHNSFAS.js";
742
+
743
+ // src/integrations/github.ts
744
+ async function getGitHubStatus() {
745
+ const which = await run("which", ["gh"], { reject: false });
746
+ if (which.exitCode !== 0 || !which.stdout.trim()) {
747
+ return {
748
+ connected: false,
749
+ login: null,
750
+ hosts: [],
751
+ reason: "gh CLI not found on PATH"
752
+ };
753
+ }
754
+ const loginResult = await run(
755
+ "gh",
756
+ ["api", "user", "--jq", ".login"],
757
+ { reject: false }
758
+ );
759
+ if (loginResult.exitCode === 0 && loginResult.stdout.trim()) {
760
+ return {
761
+ connected: true,
762
+ login: loginResult.stdout.trim(),
763
+ hosts: ["github.com"],
764
+ reason: null
765
+ };
766
+ }
767
+ const status = await run("gh", ["auth", "status"], { reject: false });
768
+ const text7 = `${status.stdout}
769
+ ${status.stderr}`;
770
+ const loginMatch = text7.match(/Logged in to ([^\s]+) account (\S+)/i) ?? text7.match(/Logged in to ([^\s]+) as (\S+)/i);
771
+ if (loginMatch) {
772
+ return {
773
+ connected: true,
774
+ login: loginMatch[2].replace(/['"]/g, ""),
775
+ hosts: [loginMatch[1]],
776
+ reason: null
777
+ };
778
+ }
779
+ return {
780
+ connected: false,
781
+ login: null,
782
+ hosts: [],
783
+ reason: status.stderr.trim() || status.stdout.trim() || "Not logged in to GitHub (run: gh auth login)"
784
+ };
785
+ }
786
+ async function refreshGitHubAuth() {
787
+ return getGitHubStatus();
788
+ }
748
789
 
749
790
  // src/integrations/issue-since.ts
750
791
  var ISSUE_SINCE_ERROR = "updatedSince must be an ISO datetime, YYYY-MM-DD, or relative time (yesterday, 2d, 3 hours ago)";
@@ -5064,7 +5105,7 @@ async function startMcpServer() {
5064
5105
  );
5065
5106
  }
5066
5107
  try {
5067
- const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-LO7UFHQ6.js");
5108
+ const { maxConcurrentAgents: maxConcurrentAgents2 } = await import("./app-settings-5KHVKJKO.js");
5068
5109
  orch.setMaxConcurrent(maxConcurrentAgents2());
5069
5110
  } catch {
5070
5111
  }
@@ -5379,7 +5420,7 @@ async function startMcpServer() {
5379
5420
  registerConnectedIssueVendorTools(server);
5380
5421
  registerScheduleTools(server);
5381
5422
  const { getCaffeinateHold: getCaffeinateHold2, setCaffeinateHold: setCaffeinateHold2 } = await import("./caffeinate-hold-22VFDPSO.js");
5382
- const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-LO7UFHQ6.js");
5423
+ const { resolveNewThreadOptions: resolveNewThreadOptions2, resolveThreadDefaults: resolveThreadDefaults2 } = await import("./app-settings-5KHVKJKO.js");
5383
5424
  const accountDefaults = resolveThreadDefaults2();
5384
5425
  const accountDefaultsHint = `Account defaults: agent=${accountDefaults.agent}, model=${accountDefaults.model?.trim() || "Auto"}, effort=${accountDefaults.effort}`;
5385
5426
  server.tool(