@sideboard-ai/core 0.1.351 → 0.1.353

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 (76) hide show
  1. package/dist/{abletime-TX7BTTR2.js → abletime-5LEOMLQE.js} +4 -4
  2. package/dist/{abletime-URSRZW7P.js → abletime-VUPUERE4.js} +4 -4
  3. package/dist/{abletime-oauth-QS3WPSCC.js → abletime-oauth-65LHLQ7P.js} +3 -3
  4. package/dist/{abletime-oauth-SL3NMNEC.js → abletime-oauth-JAINJBNY.js} +3 -3
  5. package/dist/{abletime-rest-JZU6JJCV.js → abletime-rest-4TCWPN7E.js} +3 -3
  6. package/dist/{abletime-rest-GGQLUO55.js → abletime-rest-HBIK234Y.js} +3 -3
  7. package/dist/agents/claude-runner.cjs +37 -6
  8. package/dist/agents/claude-runner.js +16 -1
  9. package/dist/agents/cursor-runner.cjs +56 -12
  10. package/dist/agents/cursor-runner.js +2 -2
  11. package/dist/{agents-INTH7J3F.js → agents-5LFUHPSA.js} +9 -9
  12. package/dist/{agents-D5CL4CR4.js → agents-6B2HHICJ.js} +8 -8
  13. package/dist/{app-settings-IA7ZZKWQ.js → app-settings-GM4MJD2E.js} +3 -1
  14. package/dist/{app-settings-XILTSD6L.js → app-settings-X3UFWRAF.js} +3 -1
  15. package/dist/{chunk-BZK62VPT.js → chunk-2S7EAUDI.js} +2 -2
  16. package/dist/{chunk-CCWQ65VD.js → chunk-2SFKLWU5.js} +2 -2
  17. package/dist/{chunk-YVN7L4KG.js → chunk-AF5K6GQU.js} +6 -1
  18. package/dist/{chunk-WB3G2LQO.js → chunk-BCNPZ7H2.js} +1 -1
  19. package/dist/chunk-EAV2ZF5S.js +858 -0
  20. package/dist/{chunk-SMSD6U3N.js → chunk-GA5MLYVG.js} +1 -1
  21. package/dist/{chunk-HISSQICH.js → chunk-HBRP2SHA.js} +3 -3
  22. package/dist/{chunk-7WPQAVS5.js → chunk-HMSXKV53.js} +150 -126
  23. package/dist/{chunk-DL4OHDBV.js → chunk-I6BKWSCT.js} +3 -3
  24. package/dist/{chunk-WJURGCBR.js → chunk-KSBJOWVO.js} +1 -1
  25. package/dist/{chunk-J4EA5SHF.js → chunk-LZ3TAKNJ.js} +3 -3
  26. package/dist/{chunk-F4RFFE2H.js → chunk-M426EW7O.js} +3 -3
  27. package/dist/{chunk-C3E2DGDF.js → chunk-MBQU6RE2.js} +6 -6
  28. package/dist/{chunk-UXAKH4AW.js → chunk-MX2XU4BS.js} +418 -71
  29. package/dist/{chunk-TCEUNSLX.js → chunk-NRGT7RMO.js} +1 -1
  30. package/dist/{chunk-M45WGODR.js → chunk-OCCUD5CK.js} +2 -2
  31. package/dist/{chunk-BDWVBEKN.js → chunk-PKH3DRA6.js} +153 -127
  32. package/dist/{chunk-YE7Z5WH3.js → chunk-QKNOKO2P.js} +1 -1
  33. package/dist/{chunk-VL6F2KRE.js → chunk-RMJXFABA.js} +8 -6
  34. package/dist/{chunk-FQ3JYUKI.js → chunk-SBUR2WCP.js} +2 -2
  35. package/dist/{chunk-AEEOYLVK.js → chunk-SWU5C3HQ.js} +6 -6
  36. package/dist/{chunk-UFUAIVNV.js → chunk-TB7SYXXS.js} +8 -6
  37. package/dist/{chunk-7ZD4OK6G.js → chunk-TDWE7INS.js} +1 -1
  38. package/dist/{chunk-WFX4ZVSZ.js → chunk-TRUNDXCE.js} +1 -1
  39. package/dist/{chunk-PXSWVZIL.js → chunk-UPJB6TFI.js} +2 -2
  40. package/dist/{chunk-37ZBEBP6.js → chunk-VZAICZHU.js} +3 -3
  41. package/dist/{chunk-FCKTBE26.js → chunk-WJQFWDGH.js} +1 -1
  42. package/dist/{chunk-SZY23KGS.js → chunk-WTT525MC.js} +3 -3
  43. package/dist/{chunk-BF6INES4.js → chunk-X52SO3DM.js} +1 -1
  44. package/dist/{chunk-B4EFQTMP.js → chunk-XB6NCBZK.js} +5 -5
  45. package/dist/{chunk-5TCMXEYL.js → chunk-YGXUIBIT.js} +3 -3
  46. package/dist/{chunk-AAKQU4UZ.js → chunk-Z3CGD5HC.js} +28 -10
  47. package/dist/{chunk-VHQ6OG3U.js → chunk-ZHYFRRPN.js} +2 -2
  48. package/dist/{chunk-5WF54R3B.js → chunk-ZLPP66IP.js} +5 -5
  49. package/dist/{conductor-FWYWIHEW.js → conductor-2UOW2XBE.js} +6 -6
  50. package/dist/{conductor-W2X7QUKZ.js → conductor-6NYG2SZA.js} +6 -6
  51. package/dist/{coordinator-prompt-J57Q4Z4W.js → coordinator-prompt-K3WT5UVS.js} +4 -4
  52. package/dist/{coordinator-prompt-KIHNLENN.js → coordinator-prompt-ZP6AEETR.js} +4 -4
  53. package/dist/{global-workspace-WXDWFZAN.js → global-workspace-EFPSYP4N.js} +4 -4
  54. package/dist/{global-workspace-CGB5CY4U.js → global-workspace-EPVNFQVC.js} +4 -4
  55. package/dist/index.cjs +1414 -869
  56. package/dist/index.d.cts +116 -10
  57. package/dist/index.d.ts +116 -10
  58. package/dist/index.js +398 -315
  59. package/dist/{linear-WG23LBCX.js → linear-4ACCQCWM.js} +2 -2
  60. package/dist/{linear-E3BX5PX5.js → linear-Q2E6LKJW.js} +2 -2
  61. package/dist/{linear-list-VU47BNUV.js → linear-list-5A3BAWRZ.js} +1 -1
  62. package/dist/{linear-list-OINZWVV5.js → linear-list-V3A57XBR.js} +1 -1
  63. package/dist/mcp/run-stdio.cjs +1227 -802
  64. package/dist/mcp/run-stdio.js +342 -308
  65. package/dist/{optional-cli-K6HX2X5O.js → optional-cli-CKQPLY4Q.js} +4 -4
  66. package/dist/{optional-cli-SA3EQYML.js → optional-cli-WE3ULLFV.js} +5 -5
  67. package/dist/{orchestrator-MUD4FY7Q.js → orchestrator-UFHS2FOC.js} +12 -12
  68. package/dist/{orchestrator-DMEE7CEW.js → orchestrator-YCGWSIHF.js} +11 -11
  69. package/dist/{thread-store-4YTOV2HL.js → thread-store-CDFHHRXB.js} +2 -2
  70. package/dist/{thread-store-LME2ICZP.js → thread-store-TDGZEGS6.js} +2 -2
  71. package/dist/{workspaces-ZCTF4ECL.js → workspaces-KL4SZMJE.js} +4 -4
  72. package/dist/{workspaces-7DPHDXNY.js → workspaces-SQRR67HD.js} +4 -4
  73. package/dist/{worktree-4ATMCYIE.js → worktree-7KG5N2XL.js} +3 -3
  74. package/dist/{worktree-DA6SKIU5.js → worktree-IDX7LMBC.js} +3 -3
  75. package/package.json +1 -1
  76. package/dist/chunk-SUZOPJZC.js +0 -430
@@ -17,13 +17,13 @@ import {
17
17
  toAbleTimeIssueInfo,
18
18
  updateAbleTimeTask,
19
19
  verifyAbleTimeConnection
20
- } from "./chunk-37ZBEBP6.js";
21
- import "./chunk-CCWQ65VD.js";
20
+ } from "./chunk-VZAICZHU.js";
21
+ import "./chunk-2SFKLWU5.js";
22
22
  import "./chunk-DBKHL7NC.js";
23
- import "./chunk-5WF54R3B.js";
23
+ import "./chunk-ZLPP66IP.js";
24
24
  import "./chunk-JAT3JFOS.js";
25
25
  import "./chunk-6K64FJDD.js";
26
- import "./chunk-UFUAIVNV.js";
26
+ import "./chunk-TB7SYXXS.js";
27
27
  import "./chunk-JT7R45JB.js";
28
28
  import "./chunk-4TR3HZFT.js";
29
29
  import "./chunk-WDRMZKVB.js";
@@ -19,13 +19,13 @@ import {
19
19
  toAbleTimeIssueInfo,
20
20
  updateAbleTimeTask,
21
21
  verifyAbleTimeConnection
22
- } from "./chunk-DL4OHDBV.js";
23
- import "./chunk-M45WGODR.js";
24
- import "./chunk-B4EFQTMP.js";
22
+ } from "./chunk-I6BKWSCT.js";
23
+ import "./chunk-OCCUD5CK.js";
24
+ import "./chunk-XB6NCBZK.js";
25
25
  import "./chunk-F6GE7V3Q.js";
26
26
  import "./chunk-N2WW62LF.js";
27
27
  import "./chunk-2GPQZZLY.js";
28
- import "./chunk-VL6F2KRE.js";
28
+ import "./chunk-RMJXFABA.js";
29
29
  import "./chunk-NSTQ6QKD.js";
30
30
  import "./chunk-WWUABK6B.js";
31
31
  import "./chunk-FJZWM2ON.js";
@@ -3,7 +3,7 @@
3
3
  import {
4
4
  DEFAULT_ABLETIME_HOST,
5
5
  normalizeAbleTimeHost
6
- } from "./chunk-B4EFQTMP.js";
6
+ } from "./chunk-XB6NCBZK.js";
7
7
  import {
8
8
  httpFetch
9
9
  } from "./chunk-2GPQZZLY.js";
@@ -12,7 +12,7 @@ import {
12
12
  getAbleTimeHost,
13
13
  loadAppSettings,
14
14
  saveAbleTimeConnection
15
- } from "./chunk-VL6F2KRE.js";
15
+ } from "./chunk-RMJXFABA.js";
16
16
  import "./chunk-NSTQ6QKD.js";
17
17
  import "./chunk-WWUABK6B.js";
18
18
  import "./chunk-FJZWM2ON.js";
@@ -287,7 +287,7 @@ async function startAbleTimeOAuth(opts) {
287
287
  persistAbleTimeTokens(data, { host });
288
288
  const token = data.access_token.trim();
289
289
  try {
290
- const { getAbleTimeOrientation } = await import("./abletime-URSRZW7P.js");
290
+ const { getAbleTimeOrientation } = await import("./abletime-VUPUERE4.js");
291
291
  const orientation = await getAbleTimeOrientation({ token, host });
292
292
  return saveAbleTimeConnection({
293
293
  accessToken: token,
@@ -20,10 +20,10 @@ import {
20
20
  parseAbleTimeOAuthCallbackUrl,
21
21
  resolveAbleTimeOAuthHost,
22
22
  startAbleTimeOAuth
23
- } from "./chunk-J4EA5SHF.js";
24
- import "./chunk-5WF54R3B.js";
23
+ } from "./chunk-LZ3TAKNJ.js";
24
+ import "./chunk-ZLPP66IP.js";
25
25
  import "./chunk-JAT3JFOS.js";
26
- import "./chunk-UFUAIVNV.js";
26
+ import "./chunk-TB7SYXXS.js";
27
27
  import "./chunk-JT7R45JB.js";
28
28
  import "./chunk-4TR3HZFT.js";
29
29
  import "./chunk-WDRMZKVB.js";
@@ -5,10 +5,10 @@ import {
5
5
  callAbleTimeRestTool,
6
6
  looksLikeAbleTimeUlid,
7
7
  textFromAbleTimeDoc
8
- } from "./chunk-CCWQ65VD.js";
9
- import "./chunk-5WF54R3B.js";
8
+ } from "./chunk-2SFKLWU5.js";
9
+ import "./chunk-ZLPP66IP.js";
10
10
  import "./chunk-JAT3JFOS.js";
11
- import "./chunk-UFUAIVNV.js";
11
+ import "./chunk-TB7SYXXS.js";
12
12
  import "./chunk-JT7R45JB.js";
13
13
  import "./chunk-4TR3HZFT.js";
14
14
  import "./chunk-WDRMZKVB.js";
@@ -7,10 +7,10 @@ import {
7
7
  callAbleTimeRestTool,
8
8
  looksLikeAbleTimeUlid,
9
9
  textFromAbleTimeDoc
10
- } from "./chunk-M45WGODR.js";
11
- import "./chunk-B4EFQTMP.js";
10
+ } from "./chunk-OCCUD5CK.js";
11
+ import "./chunk-XB6NCBZK.js";
12
12
  import "./chunk-2GPQZZLY.js";
13
- import "./chunk-VL6F2KRE.js";
13
+ import "./chunk-RMJXFABA.js";
14
14
  import "./chunk-NSTQ6QKD.js";
15
15
  import "./chunk-WWUABK6B.js";
16
16
  import "./chunk-FJZWM2ON.js";
@@ -67,10 +67,14 @@ var STRIP_NESTED_ELECTRON_THEN_EXEC = [
67
67
  // src/agents/claude-sdk-tools.ts
68
68
  var import_zod = require("zod");
69
69
 
70
- // src/agent-rpc/client.ts
71
- var import_ws = require("ws");
70
+ // src/computer-use/computer-use.ts
71
+ var import_node_child_process = require("child_process");
72
+ var import_node_fs7 = require("fs");
73
+ var import_node_os3 = require("os");
74
+ var import_node_path8 = require("path");
75
+ var import_node_util = require("util");
72
76
 
73
- // src/agent-rpc/metadata.ts
77
+ // src/computer-use/bridge.ts
74
78
  var import_node_fs6 = require("fs");
75
79
  var import_node_path7 = require("path");
76
80
 
@@ -108,13 +112,23 @@ function appDataDir() {
108
112
  return base;
109
113
  }
110
114
 
115
+ // src/computer-use/computer-use.ts
116
+ var execFileAsync = (0, import_node_util.promisify)(import_node_child_process.execFile);
117
+ var COMPUTER_USE_DESCRIPTION = "Drive this Mac to test an app you started. Off unless Settings \u2192 Advanced \u2192 Computer use is on. action is screenshot, click, type, key, or scroll. screenshot writes a PNG of the main display under the worktree .context/cli/ and returns that path plus point width, height, and scale. Read the image. x and y are screen points from the top-left of that image, not PNG pixels: divide a pixel by scale. click and scroll use those points. scroll posts a wheel event at the point (positive dx is right, positive dy is down). type sends text. key is one key (return, tab, escape, arrows, delete, or one character) with optional modifiers command, shift, option, control. Use it to check behavior and visual design (hierarchy, alignment, spacing, type, contrast, fit with the surrounding surface). preview=window means the Electron window, not a browser tab. Clicks, typing, scrolling, and screenshots are posted by Sideboard after macOS allows Sideboard to control this Mac and record the screen. Do not drive an app you did not start for this test.";
118
+ var PNG_SIG = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
119
+
120
+ // src/agent-rpc/client.ts
121
+ var import_ws = require("ws");
122
+
111
123
  // src/agent-rpc/metadata.ts
124
+ var import_node_fs8 = require("fs");
125
+ var import_node_path9 = require("path");
112
126
  function agentRuntimeMetadataPath() {
113
- return (0, import_node_path7.join)(appDataDir(), "agent-runtime.json");
127
+ return (0, import_node_path9.join)(appDataDir(), "agent-runtime.json");
114
128
  }
115
129
  function readAgentRuntimeMetadata() {
116
130
  try {
117
- const raw = JSON.parse((0, import_node_fs6.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
131
+ const raw = JSON.parse((0, import_node_fs8.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
118
132
  if (!raw || typeof raw !== "object") return null;
119
133
  const rec = raw;
120
134
  if (typeof rec.runtimeId !== "string" || !rec.runtimeId.trim()) return null;
@@ -305,7 +319,8 @@ var AgentRpcClient = class {
305
319
  var PILOT_TOOL_DESCRIPTIONS = {
306
320
  present_artifact: "Show a document or live log in Sideboard\u2019s side column. For html/svg/markdown/react, pass the FULL document and do not also fence that same body in chat. For type=log, pass only NEW lines (same artifact_id appends). Prefer type=log for long-running job output \u2014 do not resend HTML. type=react is a single default-export component (JSX/TSX); only react/react-dom imports.",
307
321
  wait_for_job: "Wait until a detached long job (tests, pack, deploy, connector CLI) finishes. This call stays open for up to ~2 minutes. stillRunning true means the runtime hit the max hold; call wait_for_job again immediately. If the job is hanging, producing no useful output, or doing the wrong thing, call stop_job instead. Do not end the turn or tell the user you will let them know later.",
308
- stop_job: "Stop a detached job you started with detached-job.cjs when it is hanging, producing no useful output, buffering forever, or doing the wrong thing (wrong project, infinite watch, huge dump). Do not stop a pack/test/deploy that is clearly making progress."
322
+ stop_job: "Stop a detached job you started with detached-job.cjs when it is hanging, producing no useful output, buffering forever, or doing the wrong thing (wrong project, infinite watch, huge dump). Do not stop a pack/test/deploy that is clearly making progress.",
323
+ computer_use: COMPUTER_USE_DESCRIPTION
309
324
  };
310
325
  function jsonToolResult(value) {
311
326
  return JSON.stringify(value);
@@ -343,6 +358,7 @@ function createPilotRpcExecutors(opts) {
343
358
  }
344
359
  },
345
360
  stop_job: (args) => callJob("job.stop", args),
361
+ computer_use: (args) => callJob("computer.act", args),
346
362
  wait_for_turn: async (args, context) => {
347
363
  const prev = waitToolCallId;
348
364
  waitToolCallId = typeof context?.toolCallId === "string" ? context.toolCallId : void 0;
@@ -392,6 +408,21 @@ function createClaudePilotSdkServer(createSdkMcpServer, tool, opts) {
392
408
  PILOT_TOOL_DESCRIPTIONS.stop_job,
393
409
  { id: import_zod.z.string(), reason: import_zod.z.string().optional() },
394
410
  async (args) => textResult(await exec.stop_job(args))
411
+ ),
412
+ tool(
413
+ "computer_use",
414
+ PILOT_TOOL_DESCRIPTIONS.computer_use,
415
+ {
416
+ action: import_zod.z.enum(["screenshot", "click", "type", "key", "scroll"]),
417
+ x: import_zod.z.number().optional().describe("Screen x in points, not PNG pixels"),
418
+ y: import_zod.z.number().optional().describe("Screen y in points, not PNG pixels"),
419
+ text: import_zod.z.string().optional(),
420
+ key: import_zod.z.string().optional(),
421
+ modifiers: import_zod.z.array(import_zod.z.string()).optional().describe("command, shift, option, control"),
422
+ dx: import_zod.z.number().optional().describe("Horizontal scroll in points. Positive is right"),
423
+ dy: import_zod.z.number().optional().describe("Vertical scroll in points. Positive is down")
424
+ },
425
+ async (args) => textResult(await exec.computer_use(args))
395
426
  )
396
427
  ]
397
428
  });
@@ -12,7 +12,7 @@ import {
12
12
  AgentRpcClient,
13
13
  PILOT_TOOL_DESCRIPTIONS,
14
14
  createPilotRpcExecutors
15
- } from "../chunk-SUZOPJZC.js";
15
+ } from "../chunk-EAV2ZF5S.js";
16
16
  import {
17
17
  dropNestedElectronEnvFromProcess
18
18
  } from "../chunk-4TR3HZFT.js";
@@ -58,6 +58,21 @@ function createClaudePilotSdkServer(createSdkMcpServer, tool, opts) {
58
58
  PILOT_TOOL_DESCRIPTIONS.stop_job,
59
59
  { id: z.string(), reason: z.string().optional() },
60
60
  async (args) => textResult(await exec.stop_job(args))
61
+ ),
62
+ tool(
63
+ "computer_use",
64
+ PILOT_TOOL_DESCRIPTIONS.computer_use,
65
+ {
66
+ action: z.enum(["screenshot", "click", "type", "key", "scroll"]),
67
+ x: z.number().optional().describe("Screen x in points, not PNG pixels"),
68
+ y: z.number().optional().describe("Screen y in points, not PNG pixels"),
69
+ text: z.string().optional(),
70
+ key: z.string().optional(),
71
+ modifiers: z.array(z.string()).optional().describe("command, shift, option, control"),
72
+ dx: z.number().optional().describe("Horizontal scroll in points. Positive is right"),
73
+ dy: z.number().optional().describe("Vertical scroll in points. Positive is down")
74
+ },
75
+ async (args) => textResult(await exec.computer_use(args))
61
76
  )
62
77
  ]
63
78
  });
@@ -24,7 +24,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
24
24
  ));
25
25
 
26
26
  // src/agents/cursor-runner.ts
27
- var import_node_fs18 = require("fs");
27
+ var import_node_fs20 = require("fs");
28
28
  var import_node_readline2 = require("readline");
29
29
 
30
30
  // src/hook/nested-electron-env.ts
@@ -1063,6 +1063,22 @@ function slicedReadCustomToolConfig(cwd) {
1063
1063
  };
1064
1064
  }
1065
1065
 
1066
+ // src/computer-use/computer-use.ts
1067
+ var import_node_child_process3 = require("child_process");
1068
+ var import_node_fs17 = require("fs");
1069
+ var import_node_os6 = require("os");
1070
+ var import_node_path19 = require("path");
1071
+ var import_node_util = require("util");
1072
+
1073
+ // src/computer-use/bridge.ts
1074
+ var import_node_fs16 = require("fs");
1075
+ var import_node_path18 = require("path");
1076
+
1077
+ // src/computer-use/computer-use.ts
1078
+ var execFileAsync = (0, import_node_util.promisify)(import_node_child_process3.execFile);
1079
+ var COMPUTER_USE_DESCRIPTION = "Drive this Mac to test an app you started. Off unless Settings \u2192 Advanced \u2192 Computer use is on. action is screenshot, click, type, key, or scroll. screenshot writes a PNG of the main display under the worktree .context/cli/ and returns that path plus point width, height, and scale. Read the image. x and y are screen points from the top-left of that image, not PNG pixels: divide a pixel by scale. click and scroll use those points. scroll posts a wheel event at the point (positive dx is right, positive dy is down). type sends text. key is one key (return, tab, escape, arrows, delete, or one character) with optional modifiers command, shift, option, control. Use it to check behavior and visual design (hierarchy, alignment, spacing, type, contrast, fit with the surrounding surface). preview=window means the Electron window, not a browser tab. Clicks, typing, scrolling, and screenshots are posted by Sideboard after macOS allows Sideboard to control this Mac and record the screen. Do not drive an app you did not start for this test.";
1080
+ var PNG_SIG = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
1081
+
1066
1082
  // src/agent-rpc/client.ts
1067
1083
  var import_ws = require("ws");
1068
1084
 
@@ -1087,14 +1103,14 @@ function parseRpcFrame(raw) {
1087
1103
  }
1088
1104
 
1089
1105
  // src/agent-rpc/metadata.ts
1090
- var import_node_fs16 = require("fs");
1091
- var import_node_path18 = require("path");
1106
+ var import_node_fs18 = require("fs");
1107
+ var import_node_path20 = require("path");
1092
1108
  function agentRuntimeMetadataPath() {
1093
- return (0, import_node_path18.join)(appDataDir(), "agent-runtime.json");
1109
+ return (0, import_node_path20.join)(appDataDir(), "agent-runtime.json");
1094
1110
  }
1095
1111
  function readAgentRuntimeMetadata() {
1096
1112
  try {
1097
- const raw = JSON.parse((0, import_node_fs16.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
1113
+ const raw = JSON.parse((0, import_node_fs18.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
1098
1114
  if (!raw || typeof raw !== "object") return null;
1099
1115
  const rec = raw;
1100
1116
  if (typeof rec.runtimeId !== "string" || !rec.runtimeId.trim()) return null;
@@ -1285,7 +1301,8 @@ var AgentRpcClient = class {
1285
1301
  var PILOT_TOOL_DESCRIPTIONS = {
1286
1302
  present_artifact: "Show a document or live log in Sideboard\u2019s side column. For html/svg/markdown/react, pass the FULL document and do not also fence that same body in chat. For type=log, pass only NEW lines (same artifact_id appends). Prefer type=log for long-running job output \u2014 do not resend HTML. type=react is a single default-export component (JSX/TSX); only react/react-dom imports.",
1287
1303
  wait_for_job: "Wait until a detached long job (tests, pack, deploy, connector CLI) finishes. This call stays open for up to ~2 minutes. stillRunning true means the runtime hit the max hold; call wait_for_job again immediately. If the job is hanging, producing no useful output, or doing the wrong thing, call stop_job instead. Do not end the turn or tell the user you will let them know later.",
1288
- stop_job: "Stop a detached job you started with detached-job.cjs when it is hanging, producing no useful output, buffering forever, or doing the wrong thing (wrong project, infinite watch, huge dump). Do not stop a pack/test/deploy that is clearly making progress."
1304
+ stop_job: "Stop a detached job you started with detached-job.cjs when it is hanging, producing no useful output, buffering forever, or doing the wrong thing (wrong project, infinite watch, huge dump). Do not stop a pack/test/deploy that is clearly making progress.",
1305
+ computer_use: COMPUTER_USE_DESCRIPTION
1289
1306
  };
1290
1307
  var WAIT_FOR_TURN_DESCRIPTION = "Wait until the chat finishes its current/queued turn, or return early with a live progress snapshot. This call stays open for up to ~2 minutes. taskState is the A2A-style lifecycle: submitted (queued, not started), working, input-required (ask_user), completed, failed, canceled. stillRunning is true only for submitted/working. If stillRunning, text and usage are empty (they would be the previous turn) \u2014 read progress and call wait_for_turn again. Do not send_to_chat a check-in (that steers / interrupts). On failed, lastError/text is the failure. On canceled, the child did not finish \u2014 resume with send_to_chat or tell the user. On input-required, wait for the user in that chat. When finished, text is this turn\u2019s assistant reply and usage is that turn\u2019s tokens + costUsd (this turn, not the Claude session total; sessionCostUsd is the provider session total when present). lastActivityAt is the latest transcript/live stamp \u2014 present after the turn completes, not only while it is running.";
1291
1308
  var WAIT_FOR_TURN_SCHEMA = {
@@ -1342,6 +1359,27 @@ var PILOT_TOOL_SCHEMAS = {
1342
1359
  },
1343
1360
  required: ["id"]
1344
1361
  },
1362
+ computer_use: {
1363
+ type: "object",
1364
+ properties: {
1365
+ action: {
1366
+ type: "string",
1367
+ enum: ["screenshot", "click", "type", "key", "scroll"]
1368
+ },
1369
+ x: { type: "number", description: "Screen x in points, not PNG pixels" },
1370
+ y: { type: "number", description: "Screen y in points, not PNG pixels" },
1371
+ text: { type: "string" },
1372
+ key: { type: "string" },
1373
+ modifiers: {
1374
+ type: "array",
1375
+ items: { type: "string" },
1376
+ description: "command, shift, option, control"
1377
+ },
1378
+ dx: { type: "number", description: "Horizontal scroll in points. Positive is right" },
1379
+ dy: { type: "number", description: "Vertical scroll in points. Positive is down" }
1380
+ },
1381
+ required: ["action"]
1382
+ },
1345
1383
  stop_job: {
1346
1384
  type: "object",
1347
1385
  properties: {
@@ -1390,6 +1428,7 @@ function createPilotRpcExecutors(opts) {
1390
1428
  }
1391
1429
  },
1392
1430
  stop_job: (args) => callJob("job.stop", args),
1431
+ computer_use: (args) => callJob("computer.act", args),
1393
1432
  wait_for_turn: async (args, context) => {
1394
1433
  const prev = waitToolCallId;
1395
1434
  waitToolCallId = typeof context?.toolCallId === "string" ? context.toolCallId : void 0;
@@ -1421,6 +1460,11 @@ function sideboardCursorRpcTools(opts) {
1421
1460
  description: PILOT_TOOL_DESCRIPTIONS.stop_job,
1422
1461
  inputSchema: PILOT_TOOL_SCHEMAS.stop_job,
1423
1462
  execute: exec.stop_job
1463
+ },
1464
+ computer_use: {
1465
+ description: PILOT_TOOL_DESCRIPTIONS.computer_use,
1466
+ inputSchema: PILOT_TOOL_SCHEMAS.computer_use,
1467
+ execute: exec.computer_use
1424
1468
  }
1425
1469
  };
1426
1470
  if (opts.includeWaitForTurn) {
@@ -1434,8 +1478,8 @@ function sideboardCursorRpcTools(opts) {
1434
1478
  }
1435
1479
 
1436
1480
  // src/agents/tool-result-clip.ts
1437
- var import_node_fs17 = require("fs");
1438
- var import_node_path19 = require("path");
1481
+ var import_node_fs19 = require("fs");
1482
+ var import_node_path21 = require("path");
1439
1483
 
1440
1484
  // src/paths/workspace-scratch.ts
1441
1485
  var CLI_DIR = ".context/cli";
@@ -1444,15 +1488,15 @@ var CLI_DIR = ".context/cli";
1444
1488
  function spillPath(cwd, prefix) {
1445
1489
  const stamp = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
1446
1490
  const safe = prefix.replace(/[^a-zA-Z0-9_-]+/g, "-").slice(0, 40) || "tool";
1447
- return (0, import_node_path19.join)(cwd, CLI_DIR, `${safe}-${stamp}.txt`);
1491
+ return (0, import_node_path21.join)(cwd, CLI_DIR, `${safe}-${stamp}.txt`);
1448
1492
  }
1449
1493
  function spillToolResultToCli(content, opts) {
1450
1494
  const cwd = opts?.cwd?.trim();
1451
1495
  if (!cwd || !content) return null;
1452
1496
  const file = spillPath(cwd, opts?.prefix ?? "tool-result");
1453
1497
  try {
1454
- (0, import_node_fs17.mkdirSync)((0, import_node_path19.join)(cwd, CLI_DIR), { recursive: true });
1455
- (0, import_node_fs17.writeFileSync)(file, content, "utf8");
1498
+ (0, import_node_fs19.mkdirSync)((0, import_node_path21.join)(cwd, CLI_DIR), { recursive: true });
1499
+ (0, import_node_fs19.writeFileSync)(file, content, "utf8");
1456
1500
  return file;
1457
1501
  } catch {
1458
1502
  return null;
@@ -1971,7 +2015,7 @@ function emit(event) {
1971
2015
  }
1972
2016
  function localAgentStore(Store, threadId) {
1973
2017
  const root = cursorSdkStoreDir(threadId);
1974
- (0, import_node_fs18.mkdirSync)(root, { recursive: true });
2018
+ (0, import_node_fs20.mkdirSync)(root, { recursive: true });
1975
2019
  return new Store(root);
1976
2020
  }
1977
2021
  async function readStdinJson() {
@@ -5,7 +5,7 @@ import {
5
5
  guardCursorCustomTool,
6
6
  shouldReturnRunErrorToAgent,
7
7
  sideboardCursorRpcTools
8
- } from "../chunk-YVN7L4KG.js";
8
+ } from "../chunk-AF5K6GQU.js";
9
9
  import {
10
10
  createAgentStreamCoalescer
11
11
  } from "../chunk-AXQ4ZWHK.js";
@@ -35,7 +35,7 @@ import {
35
35
  cursorSdkStoreDir
36
36
  } from "../chunk-LG6RJBIY.js";
37
37
  import "../chunk-R4W4VQJZ.js";
38
- import "../chunk-SUZOPJZC.js";
38
+ import "../chunk-EAV2ZF5S.js";
39
39
  import {
40
40
  dropNestedElectronEnvFromProcess
41
41
  } from "../chunk-4TR3HZFT.js";
@@ -40,7 +40,7 @@ import {
40
40
  planModeTurnInstruction,
41
41
  resolveCursorModelId,
42
42
  resolveQuotaFallbackAgent
43
- } from "./chunk-AAKQU4UZ.js";
43
+ } from "./chunk-Z3CGD5HC.js";
44
44
  import {
45
45
  getAgentSetupInfo,
46
46
  installAgent,
@@ -52,10 +52,10 @@ import {
52
52
  prepareTerminalCommand,
53
53
  resolveLoginCommand,
54
54
  whichOnPath
55
- } from "./chunk-F4RFFE2H.js";
55
+ } from "./chunk-M426EW7O.js";
56
56
  import "./chunk-OHXNGBC4.js";
57
57
  import "./chunk-RSA47QYR.js";
58
- import "./chunk-WB3G2LQO.js";
58
+ import "./chunk-BCNPZ7H2.js";
59
59
  import "./chunk-WWBPK7GB.js";
60
60
  import {
61
61
  ACP_HARNESSES,
@@ -69,11 +69,11 @@ import {
69
69
  detectAcpHarnesses,
70
70
  isAcpHarnessId,
71
71
  resolveAcpHarnessCommand
72
- } from "./chunk-YE7Z5WH3.js";
72
+ } from "./chunk-QKNOKO2P.js";
73
73
  import "./chunk-JAT3JFOS.js";
74
- import "./chunk-HISSQICH.js";
75
- import "./chunk-FQ3JYUKI.js";
76
- import "./chunk-TCEUNSLX.js";
74
+ import "./chunk-HBRP2SHA.js";
75
+ import "./chunk-SBUR2WCP.js";
76
+ import "./chunk-NRGT7RMO.js";
77
77
  import "./chunk-BMRJNRQK.js";
78
78
  import "./chunk-TRMPDDVL.js";
79
79
  import "./chunk-N6ZF3XRP.js";
@@ -100,13 +100,13 @@ import {
100
100
  resolveCommandBinarySync,
101
101
  withExportedPath
102
102
  } from "./chunk-R4W4VQJZ.js";
103
- import "./chunk-SUZOPJZC.js";
103
+ import "./chunk-EAV2ZF5S.js";
104
104
  import {
105
105
  ORCHESTRATOR_AGENT_KINDS,
106
106
  assertOrchestratorCapableAgent,
107
107
  coerceOrchestratorAgent,
108
108
  isOrchestratorCapableAgent
109
- } from "./chunk-UFUAIVNV.js";
109
+ } from "./chunk-TB7SYXXS.js";
110
110
  import "./chunk-JT7R45JB.js";
111
111
  import "./chunk-4TR3HZFT.js";
112
112
  import "./chunk-WDRMZKVB.js";
@@ -49,7 +49,7 @@ import {
49
49
  resolveCursorSdkRoot,
50
50
  resolveQuotaFallbackAgent,
51
51
  turnCostUsdFromCursorUsage
52
- } from "./chunk-UXAKH4AW.js";
52
+ } from "./chunk-MX2XU4BS.js";
53
53
  import "./chunk-LESWJ7L4.js";
54
54
  import {
55
55
  getAgentSetupInfo,
@@ -62,7 +62,7 @@ import {
62
62
  prepareTerminalCommand,
63
63
  resolveLoginCommand,
64
64
  whichOnPath
65
- } from "./chunk-5TCMXEYL.js";
65
+ } from "./chunk-YGXUIBIT.js";
66
66
  import {
67
67
  ACP_HARNESSES,
68
68
  ACP_HARNESS_IDS,
@@ -75,14 +75,14 @@ import {
75
75
  detectAcpHarnesses,
76
76
  isAcpHarnessId,
77
77
  resolveAcpHarnessCommand
78
- } from "./chunk-BF6INES4.js";
79
- import "./chunk-SZY23KGS.js";
80
- import "./chunk-VHQ6OG3U.js";
78
+ } from "./chunk-X52SO3DM.js";
79
+ import "./chunk-WTT525MC.js";
80
+ import "./chunk-ZHYFRRPN.js";
81
81
  import "./chunk-I6RGRUNY.js";
82
82
  import "./chunk-E63AM3PW.js";
83
83
  import "./chunk-N2WW62LF.js";
84
84
  import "./chunk-2GPQZZLY.js";
85
- import "./chunk-WFX4ZVSZ.js";
85
+ import "./chunk-TRUNDXCE.js";
86
86
  import "./chunk-GK7H3SY7.js";
87
87
  import {
88
88
  conductorBundledBinDir,
@@ -95,14 +95,14 @@ import {
95
95
  resolveCommandBinarySync,
96
96
  withExportedPath
97
97
  } from "./chunk-TL2HK6LZ.js";
98
- import "./chunk-SMSD6U3N.js";
98
+ import "./chunk-GA5MLYVG.js";
99
99
  import "./chunk-WMZIANPV.js";
100
100
  import {
101
101
  ORCHESTRATOR_AGENT_KINDS,
102
102
  assertOrchestratorCapableAgent,
103
103
  coerceOrchestratorAgent,
104
104
  isOrchestratorCapableAgent
105
- } from "./chunk-VL6F2KRE.js";
105
+ } from "./chunk-RMJXFABA.js";
106
106
  import "./chunk-NSTQ6QKD.js";
107
107
  import "./chunk-WWUABK6B.js";
108
108
  import "./chunk-FJZWM2ON.js";
@@ -32,6 +32,7 @@ import {
32
32
  childEnvWithAppSettings,
33
33
  claudeChromeEnabled,
34
34
  claudeUserSettingsPath,
35
+ computerUseEnabled,
35
36
  confirmClaudeUsageOverLimitEnabled,
36
37
  cowboyModeEnabled,
37
38
  deleteBranchOnPurgeEnabled,
@@ -113,7 +114,7 @@ import {
113
114
  usageOnLimit,
114
115
  wakeOrchestratorOnGithubEdgesEnabled,
115
116
  writeViewerContext
116
- } from "./chunk-UFUAIVNV.js";
117
+ } from "./chunk-TB7SYXXS.js";
117
118
  import "./chunk-JT7R45JB.js";
118
119
  import "./chunk-4TR3HZFT.js";
119
120
  import "./chunk-WDRMZKVB.js";
@@ -153,6 +154,7 @@ export {
153
154
  childEnvWithAppSettings,
154
155
  claudeChromeEnabled,
155
156
  claudeUserSettingsPath,
157
+ computerUseEnabled,
156
158
  confirmClaudeUsageOverLimitEnabled,
157
159
  cowboyModeEnabled,
158
160
  deleteBranchOnPurgeEnabled,
@@ -34,6 +34,7 @@ import {
34
34
  childEnvWithAppSettings,
35
35
  claudeChromeEnabled,
36
36
  claudeUserSettingsPath,
37
+ computerUseEnabled,
37
38
  confirmClaudeUsageOverLimitEnabled,
38
39
  cowboyModeEnabled,
39
40
  deleteBranchOnPurgeEnabled,
@@ -115,7 +116,7 @@ import {
115
116
  usageOnLimit,
116
117
  wakeOrchestratorOnGithubEdgesEnabled,
117
118
  writeViewerContext
118
- } from "./chunk-VL6F2KRE.js";
119
+ } from "./chunk-RMJXFABA.js";
119
120
  import "./chunk-NSTQ6QKD.js";
120
121
  import "./chunk-WWUABK6B.js";
121
122
  import "./chunk-FJZWM2ON.js";
@@ -155,6 +156,7 @@ export {
155
156
  childEnvWithAppSettings,
156
157
  claudeChromeEnabled,
157
158
  claudeUserSettingsPath,
159
+ computerUseEnabled,
158
160
  confirmClaudeUsageOverLimitEnabled,
159
161
  cowboyModeEnabled,
160
162
  deleteBranchOnPurgeEnabled,
@@ -4,7 +4,7 @@ import {
4
4
  import {
5
5
  loadAppSettings,
6
6
  saveAppSettings
7
- } from "./chunk-UFUAIVNV.js";
7
+ } from "./chunk-TB7SYXXS.js";
8
8
 
9
9
  // src/integrations/optional-services.ts
10
10
  var OPTIONAL_SERVICE_IDS = ["vercel", "supabase", "posthog", "sentry"];
@@ -282,7 +282,7 @@ async function connectedCliPresence(integrations) {
282
282
  const ids = connectedOptionalServices(integrations).filter((spec) => spec.cli).map((spec) => spec.id);
283
283
  if (ids.length === 0) return void 0;
284
284
  try {
285
- const { optionalCliPresence } = await import("./optional-cli-SA3EQYML.js");
285
+ const { optionalCliPresence } = await import("./optional-cli-WE3ULLFV.js");
286
286
  return await optionalCliPresence(ids);
287
287
  } catch {
288
288
  return void 0;
@@ -4,14 +4,14 @@ import {
4
4
  normalizeAbleTimeCredential,
5
5
  normalizeAbleTimeHost,
6
6
  rewriteAbleTimeError
7
- } from "./chunk-5WF54R3B.js";
7
+ } from "./chunk-ZLPP66IP.js";
8
8
  import {
9
9
  httpFetch
10
10
  } from "./chunk-JAT3JFOS.js";
11
11
  import {
12
12
  getAbleTimeAccessToken,
13
13
  getAbleTimeHost
14
- } from "./chunk-UFUAIVNV.js";
14
+ } from "./chunk-TB7SYXXS.js";
15
15
 
16
16
  // src/integrations/abletime-rest.ts
17
17
  var ABLETIME_REST_PREFIX = "/api/public/v2";
@@ -14,7 +14,7 @@ import {
14
14
  WAIT_FOR_TURN_DESCRIPTION,
15
15
  WAIT_FOR_TURN_SCHEMA,
16
16
  createPilotRpcExecutors
17
- } from "./chunk-SUZOPJZC.js";
17
+ } from "./chunk-EAV2ZF5S.js";
18
18
 
19
19
  // src/agents/tool-result-clip.ts
20
20
  import { mkdirSync, writeFileSync } from "fs";
@@ -157,6 +157,11 @@ function sideboardCursorRpcTools(opts) {
157
157
  description: PILOT_TOOL_DESCRIPTIONS.stop_job,
158
158
  inputSchema: PILOT_TOOL_SCHEMAS.stop_job,
159
159
  execute: exec.stop_job
160
+ },
161
+ computer_use: {
162
+ description: PILOT_TOOL_DESCRIPTIONS.computer_use,
163
+ inputSchema: PILOT_TOOL_SCHEMAS.computer_use,
164
+ execute: exec.computer_use
160
165
  }
161
166
  };
162
167
  if (opts.includeWaitForTurn) {
@@ -2,7 +2,7 @@
2
2
  var LIST_TIMEOUT_MS = 15e3;
3
3
  async function listAssignedLinearIssues(opts) {
4
4
  try {
5
- const { listLinearIssuesDirect } = await import("./linear-WG23LBCX.js");
5
+ const { listLinearIssuesDirect } = await import("./linear-4ACCQCWM.js");
6
6
  const listed = listLinearIssuesDirect({ limit: 50 }).catch(() => []);
7
7
  let timer;
8
8
  try {