@sideboard-ai/core 0.1.157 → 0.1.158

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.
@@ -31,7 +31,7 @@ import {
31
31
  resolveLoginCommand,
32
32
  resolveQuotaFallbackAgent,
33
33
  whichOnPath
34
- } from "./chunk-TIJ6QVX5.js";
34
+ } from "./chunk-BLRHO7XQ.js";
35
35
  import {
36
36
  ORCHESTRATOR_AGENT_KINDS,
37
37
  assertOrchestratorCapableAgent,
@@ -37,7 +37,7 @@ import {
37
37
  resolveQuotaFallbackAgent,
38
38
  turnCostUsdFromCursorUsage,
39
39
  whichOnPath
40
- } from "./chunk-KQ4JOGUH.js";
40
+ } from "./chunk-EPQIOAAY.js";
41
41
  import "./chunk-LZ6QMEQC.js";
42
42
  import "./chunk-S42XV45P.js";
43
43
  import "./chunk-6GN5WPYZ.js";
@@ -46,9 +46,9 @@ import {
46
46
  assertOrchestratorCapableAgent,
47
47
  coerceOrchestratorAgent,
48
48
  isOrchestratorCapableAgent
49
- } from "./chunk-4I4VKAPZ.js";
50
- import "./chunk-CJQLPPEJ.js";
51
- import "./chunk-NVXVEGGM.js";
49
+ } from "./chunk-3SUZMPGL.js";
50
+ import "./chunk-A7QXLYBN.js";
51
+ import "./chunk-5U4NZLBH.js";
52
52
  import "./chunk-LZQULFIT.js";
53
53
  import "./chunk-SYFVUF2C.js";
54
54
  import {
@@ -7,11 +7,11 @@ import {
7
7
  resolveRepoRoot,
8
8
  takenSlugsFromThread,
9
9
  teamSlugFromName
10
- } from "./chunk-CJQLPPEJ.js";
10
+ } from "./chunk-A7QXLYBN.js";
11
11
  import {
12
12
  ATTACHMENTS_DIR,
13
13
  attachmentsGitignoreBody
14
- } from "./chunk-NVXVEGGM.js";
14
+ } from "./chunk-5U4NZLBH.js";
15
15
  import {
16
16
  createEmptyThread,
17
17
  listThreads,
@@ -3,7 +3,9 @@
3
3
 
4
4
  // src/paths/workspace-scratch.ts
5
5
  var ATTACHMENTS_DIR = ".context/attachments";
6
+ var DETACHED_JOBS_DIR = ".context/.sideboard/detached-jobs";
6
7
  var LEGACY_ATTACHMENTS_DIR = ".sideboard/attachments";
8
+ var LEGACY_DETACHED_JOBS_DIR = ".sideboard/detached-jobs";
7
9
  var ATTACHMENTS_GITIGNORE = `# Sideboard / workspace attachments (local only)
8
10
  *
9
11
  !.gitignore
@@ -18,7 +20,9 @@ function isWorkspaceScratchPath(relativePath) {
18
20
 
19
21
  export {
20
22
  ATTACHMENTS_DIR,
23
+ DETACHED_JOBS_DIR,
21
24
  LEGACY_ATTACHMENTS_DIR,
25
+ LEGACY_DETACHED_JOBS_DIR,
22
26
  attachmentsGitignoreBody,
23
27
  isWorkspaceScratchPath
24
28
  };
@@ -2,7 +2,7 @@
2
2
 
3
3
  import {
4
4
  isWorkspaceScratchPath
5
- } from "./chunk-NVXVEGGM.js";
5
+ } from "./chunk-5U4NZLBH.js";
6
6
  import {
7
7
  listThreads
8
8
  } from "./chunk-LZQULFIT.js";
@@ -650,6 +650,9 @@ function toolDescription(name, input) {
650
650
  if (/present_files$/i.test(name)) {
651
651
  return str(input?.title) ? `Files ${str(input?.title)}` : "Present files";
652
652
  }
653
+ if (/wait_for_job$/i.test(name)) {
654
+ return str(input?.id) ? `Wait for ${str(input?.id)}` : "Wait for job";
655
+ }
653
656
  if (isSubagentToolName(name)) {
654
657
  const desc = str(input?.description);
655
658
  const sub = asRecord(input?.subagentType);
@@ -1132,7 +1135,8 @@ var WORKTREE_MCP_TOOLS = [
1132
1135
  "ask_user",
1133
1136
  "present_plan",
1134
1137
  "present_schema",
1135
- "present_files"
1138
+ "present_files",
1139
+ "wait_for_job"
1136
1140
  ];
1137
1141
  var WORKTREE_GITHUB_MCP_TOOLS = [
1138
1142
  "github_get_issue",
@@ -1173,7 +1177,8 @@ var SIDEBOARD_ARTIFACT_MCP_ALLOWED_TOOLS = [
1173
1177
  "mcp__sideboard__present_schema",
1174
1178
  "mcp__sideboard__present_files",
1175
1179
  "mcp__sideboard__ask_user",
1176
- "mcp__sideboard__present_plan"
1180
+ "mcp__sideboard__present_plan",
1181
+ "mcp__sideboard__wait_for_job"
1177
1182
  ];
1178
1183
  var SIDEBOARD_GITHUB_MCP_ALLOWED_TOOLS = ["mcp__sideboard__github_*"];
1179
1184
  var SIDEBOARD_LINEAR_MCP_ALLOWED_TOOLS = ["mcp__sideboard__linear_*"];
@@ -11,13 +11,13 @@ import {
11
11
  } from "./chunk-S42XV45P.js";
12
12
  import {
13
13
  isOrchestratorThread
14
- } from "./chunk-4I4VKAPZ.js";
14
+ } from "./chunk-3SUZMPGL.js";
15
15
  import {
16
16
  codexUnattendedGitConfigArgs,
17
17
  mergeAgentGitAuthEnv,
18
18
  resolveAgentGitAuthEnv,
19
19
  resolveCodexGitWritableRoots
20
- } from "./chunk-CJQLPPEJ.js";
20
+ } from "./chunk-A7QXLYBN.js";
21
21
  import {
22
22
  enrichPathWithNpmGlobalBin,
23
23
  isConductorBundledCli,
@@ -813,6 +813,9 @@ function toolDescription(name, input) {
813
813
  if (/present_files$/i.test(name)) {
814
814
  return str(input?.title) ? `Files ${str(input?.title)}` : "Present files";
815
815
  }
816
+ if (/wait_for_job$/i.test(name)) {
817
+ return str(input?.id) ? `Wait for ${str(input?.id)}` : "Wait for job";
818
+ }
816
819
  if (isSubagentToolName(name)) {
817
820
  const desc = str(input?.description);
818
821
  const sub = asRecord(input?.subagentType);
@@ -1476,7 +1479,8 @@ var SIDEBOARD_ARTIFACT_MCP_ALLOWED_TOOLS = [
1476
1479
  "mcp__sideboard__present_schema",
1477
1480
  "mcp__sideboard__present_files",
1478
1481
  "mcp__sideboard__ask_user",
1479
- "mcp__sideboard__present_plan"
1482
+ "mcp__sideboard__present_plan",
1483
+ "mcp__sideboard__wait_for_job"
1480
1484
  ];
1481
1485
  var SIDEBOARD_GITHUB_MCP_ALLOWED_TOOLS = ["mcp__sideboard__github_*"];
1482
1486
  var SIDEBOARD_LINEAR_MCP_ALLOWED_TOOLS = ["mcp__sideboard__linear_*"];
@@ -2152,7 +2156,7 @@ var claudeAdapter = {
2152
2156
  );
2153
2157
  }
2154
2158
  const mode = permissionMode(thread);
2155
- const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-QV7CC7SK.js");
2159
+ const { isOrchestratorThread: isOrchestratorThread2 } = await import("./global-workspace-REI55FZ6.js");
2156
2160
  const isOrchestrator = isOrchestratorThread2(thread);
2157
2161
  const injectedServers = await buildInjectedMcpServers({
2158
2162
  includeSideboard: true,