@sideboard-ai/core 0.1.351 → 0.1.352

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 (75) 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 +46 -19
  8. package/dist/agents/claude-runner.js +16 -1
  9. package/dist/agents/cursor-runner.cjs +50 -12
  10. package/dist/agents/cursor-runner.js +2 -2
  11. package/dist/{agents-INTH7J3F.js → agents-4DQDWMSX.js} +9 -9
  12. package/dist/{agents-D5CL4CR4.js → agents-IV454BNN.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-WB3G2LQO.js → chunk-BCNPZ7H2.js} +1 -1
  18. package/dist/{chunk-BDWVBEKN.js → chunk-CQDJ4RX4.js} +149 -127
  19. package/dist/{chunk-SMSD6U3N.js → chunk-GA5MLYVG.js} +1 -1
  20. package/dist/{chunk-HISSQICH.js → chunk-HBRP2SHA.js} +3 -3
  21. package/dist/{chunk-DL4OHDBV.js → chunk-I6BKWSCT.js} +3 -3
  22. package/dist/{chunk-WJURGCBR.js → chunk-KSBJOWVO.js} +1 -1
  23. package/dist/{chunk-J4EA5SHF.js → chunk-LZ3TAKNJ.js} +3 -3
  24. package/dist/{chunk-F4RFFE2H.js → chunk-M426EW7O.js} +3 -3
  25. package/dist/{chunk-C3E2DGDF.js → chunk-MBQU6RE2.js} +6 -6
  26. package/dist/{chunk-TCEUNSLX.js → chunk-NRGT7RMO.js} +1 -1
  27. package/dist/{chunk-M45WGODR.js → chunk-OCCUD5CK.js} +2 -2
  28. package/dist/{chunk-UXAKH4AW.js → chunk-PR5TOSRD.js} +324 -70
  29. package/dist/{chunk-SUZOPJZC.js → chunk-PS6TD5MQ.js} +260 -2
  30. package/dist/{chunk-YE7Z5WH3.js → chunk-QKNOKO2P.js} +1 -1
  31. package/dist/{chunk-VL6F2KRE.js → chunk-RMJXFABA.js} +8 -6
  32. package/dist/{chunk-FQ3JYUKI.js → chunk-SBUR2WCP.js} +2 -2
  33. package/dist/{chunk-AEEOYLVK.js → chunk-SWU5C3HQ.js} +6 -6
  34. package/dist/{chunk-UFUAIVNV.js → chunk-TB7SYXXS.js} +8 -6
  35. package/dist/{chunk-7ZD4OK6G.js → chunk-TDWE7INS.js} +1 -1
  36. package/dist/{chunk-WFX4ZVSZ.js → chunk-TRUNDXCE.js} +1 -1
  37. package/dist/{chunk-AAKQU4UZ.js → chunk-UDTFOKVX.js} +28 -10
  38. package/dist/{chunk-PXSWVZIL.js → chunk-UPJB6TFI.js} +2 -2
  39. package/dist/{chunk-7WPQAVS5.js → chunk-US2PGV3X.js} +146 -126
  40. package/dist/{chunk-YVN7L4KG.js → chunk-V2G6AGWM.js} +6 -1
  41. package/dist/{chunk-37ZBEBP6.js → chunk-VZAICZHU.js} +3 -3
  42. package/dist/{chunk-FCKTBE26.js → chunk-WJQFWDGH.js} +1 -1
  43. package/dist/{chunk-SZY23KGS.js → chunk-WTT525MC.js} +3 -3
  44. package/dist/{chunk-BF6INES4.js → chunk-X52SO3DM.js} +1 -1
  45. package/dist/{chunk-B4EFQTMP.js → chunk-XB6NCBZK.js} +5 -5
  46. package/dist/{chunk-5TCMXEYL.js → chunk-YGXUIBIT.js} +3 -3
  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 +1192 -865
  56. package/dist/index.d.cts +8 -10
  57. package/dist/index.d.ts +8 -10
  58. package/dist/index.js +361 -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 +1116 -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-DMEE7CEW.js → orchestrator-5BCHUAFG.js} +11 -11
  68. package/dist/{orchestrator-MUD4FY7Q.js → orchestrator-EY6GCYQG.js} +12 -12
  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
@@ -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,54 +67,64 @@ 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/computer-use/computer-use.ts
71
+ var import_node_child_process = require("child_process");
72
+ var import_node_fs = require("fs");
73
+ var import_node_os = require("os");
74
+ var import_node_path = require("path");
75
+ var import_node_util = require("util");
76
+ var execFileAsync = (0, import_node_util.promisify)(import_node_child_process.execFile);
77
+ 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. Sideboard needs Accessibility and Screen Recording permission. Do not drive an app you did not start for this test.";
78
+ var PNG_SIG = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
79
+
70
80
  // src/agent-rpc/client.ts
71
81
  var import_ws = require("ws");
72
82
 
73
83
  // src/agent-rpc/metadata.ts
74
- var import_node_fs6 = require("fs");
75
- var import_node_path7 = require("path");
84
+ var import_node_fs7 = require("fs");
85
+ var import_node_path8 = require("path");
76
86
 
77
87
  // src/store/paths.ts
78
- var import_node_path5 = require("path");
79
- var import_node_os2 = require("os");
80
88
  var import_node_path6 = require("path");
81
- var import_node_fs5 = require("fs");
89
+ var import_node_os3 = require("os");
90
+ var import_node_path7 = require("path");
91
+ var import_node_fs6 = require("fs");
82
92
 
83
93
  // src/hook/settings.ts
84
- var import_node_fs4 = require("fs");
85
- var import_node_os = require("os");
86
- var import_node_path4 = require("path");
94
+ var import_node_fs5 = require("fs");
95
+ var import_node_os2 = require("os");
96
+ var import_node_path5 = require("path");
87
97
  var import_smol_toml = require("smol-toml");
88
98
 
89
99
  // src/hook/convention-setup.ts
90
- var import_node_fs = require("fs");
91
- var import_node_path = require("path");
92
-
93
- // src/hook/cursor-worktrees.ts
94
100
  var import_node_fs2 = require("fs");
95
101
  var import_node_path2 = require("path");
102
+
103
+ // src/hook/cursor-worktrees.ts
104
+ var import_node_fs3 = require("fs");
105
+ var import_node_path3 = require("path");
96
106
  var import_execa = require("execa");
97
107
  var import_node_readline = require("readline");
98
108
 
99
109
  // src/hook/dev-preview.ts
100
- var import_node_fs3 = require("fs");
101
- var import_node_path3 = require("path");
110
+ var import_node_fs4 = require("fs");
111
+ var import_node_path4 = require("path");
102
112
 
103
113
  // src/store/paths.ts
104
114
  function appDataDir() {
105
115
  const override = process.env.SIDEBOARD_APP_DATA?.trim();
106
- const base = override ? override : process.platform === "darwin" ? (0, import_node_path6.join)((0, import_node_os2.homedir)(), "Library", "Application Support", "sideboard") : process.platform === "win32" ? (0, import_node_path6.join)(process.env.APPDATA ?? (0, import_node_path6.join)((0, import_node_os2.homedir)(), "AppData", "Roaming"), "sideboard") : (0, import_node_path6.join)((0, import_node_os2.homedir)(), ".local", "share", "sideboard");
107
- (0, import_node_fs5.mkdirSync)(base, { recursive: true });
116
+ const base = override ? override : process.platform === "darwin" ? (0, import_node_path7.join)((0, import_node_os3.homedir)(), "Library", "Application Support", "sideboard") : process.platform === "win32" ? (0, import_node_path7.join)(process.env.APPDATA ?? (0, import_node_path7.join)((0, import_node_os3.homedir)(), "AppData", "Roaming"), "sideboard") : (0, import_node_path7.join)((0, import_node_os3.homedir)(), ".local", "share", "sideboard");
117
+ (0, import_node_fs6.mkdirSync)(base, { recursive: true });
108
118
  return base;
109
119
  }
110
120
 
111
121
  // src/agent-rpc/metadata.ts
112
122
  function agentRuntimeMetadataPath() {
113
- return (0, import_node_path7.join)(appDataDir(), "agent-runtime.json");
123
+ return (0, import_node_path8.join)(appDataDir(), "agent-runtime.json");
114
124
  }
115
125
  function readAgentRuntimeMetadata() {
116
126
  try {
117
- const raw = JSON.parse((0, import_node_fs6.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
127
+ const raw = JSON.parse((0, import_node_fs7.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
118
128
  if (!raw || typeof raw !== "object") return null;
119
129
  const rec = raw;
120
130
  if (typeof rec.runtimeId !== "string" || !rec.runtimeId.trim()) return null;
@@ -305,7 +315,8 @@ var AgentRpcClient = class {
305
315
  var PILOT_TOOL_DESCRIPTIONS = {
306
316
  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
317
  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."
318
+ 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.",
319
+ computer_use: COMPUTER_USE_DESCRIPTION
309
320
  };
310
321
  function jsonToolResult(value) {
311
322
  return JSON.stringify(value);
@@ -343,6 +354,7 @@ function createPilotRpcExecutors(opts) {
343
354
  }
344
355
  },
345
356
  stop_job: (args) => callJob("job.stop", args),
357
+ computer_use: (args) => callJob("computer.act", args),
346
358
  wait_for_turn: async (args, context) => {
347
359
  const prev = waitToolCallId;
348
360
  waitToolCallId = typeof context?.toolCallId === "string" ? context.toolCallId : void 0;
@@ -392,6 +404,21 @@ function createClaudePilotSdkServer(createSdkMcpServer, tool, opts) {
392
404
  PILOT_TOOL_DESCRIPTIONS.stop_job,
393
405
  { id: import_zod.z.string(), reason: import_zod.z.string().optional() },
394
406
  async (args) => textResult(await exec.stop_job(args))
407
+ ),
408
+ tool(
409
+ "computer_use",
410
+ PILOT_TOOL_DESCRIPTIONS.computer_use,
411
+ {
412
+ action: import_zod.z.enum(["screenshot", "click", "type", "key", "scroll"]),
413
+ x: import_zod.z.number().optional().describe("Screen x in points, not PNG pixels"),
414
+ y: import_zod.z.number().optional().describe("Screen y in points, not PNG pixels"),
415
+ text: import_zod.z.string().optional(),
416
+ key: import_zod.z.string().optional(),
417
+ modifiers: import_zod.z.array(import_zod.z.string()).optional().describe("command, shift, option, control"),
418
+ dx: import_zod.z.number().optional().describe("Horizontal scroll in points. Positive is right"),
419
+ dy: import_zod.z.number().optional().describe("Vertical scroll in points. Positive is down")
420
+ },
421
+ async (args) => textResult(await exec.computer_use(args))
395
422
  )
396
423
  ]
397
424
  });
@@ -12,7 +12,7 @@ import {
12
12
  AgentRpcClient,
13
13
  PILOT_TOOL_DESCRIPTIONS,
14
14
  createPilotRpcExecutors
15
- } from "../chunk-SUZOPJZC.js";
15
+ } from "../chunk-PS6TD5MQ.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_fs19 = require("fs");
28
28
  var import_node_readline2 = require("readline");
29
29
 
30
30
  // src/hook/nested-electron-env.ts
@@ -1063,6 +1063,16 @@ 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_fs16 = require("fs");
1069
+ var import_node_os6 = require("os");
1070
+ var import_node_path18 = require("path");
1071
+ var import_node_util = require("util");
1072
+ var execFileAsync = (0, import_node_util.promisify)(import_node_child_process3.execFile);
1073
+ 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. Sideboard needs Accessibility and Screen Recording permission. Do not drive an app you did not start for this test.";
1074
+ var PNG_SIG = Buffer.from([137, 80, 78, 71, 13, 10, 26, 10]);
1075
+
1066
1076
  // src/agent-rpc/client.ts
1067
1077
  var import_ws = require("ws");
1068
1078
 
@@ -1087,14 +1097,14 @@ function parseRpcFrame(raw) {
1087
1097
  }
1088
1098
 
1089
1099
  // src/agent-rpc/metadata.ts
1090
- var import_node_fs16 = require("fs");
1091
- var import_node_path18 = require("path");
1100
+ var import_node_fs17 = require("fs");
1101
+ var import_node_path19 = require("path");
1092
1102
  function agentRuntimeMetadataPath() {
1093
- return (0, import_node_path18.join)(appDataDir(), "agent-runtime.json");
1103
+ return (0, import_node_path19.join)(appDataDir(), "agent-runtime.json");
1094
1104
  }
1095
1105
  function readAgentRuntimeMetadata() {
1096
1106
  try {
1097
- const raw = JSON.parse((0, import_node_fs16.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
1107
+ const raw = JSON.parse((0, import_node_fs17.readFileSync)(agentRuntimeMetadataPath(), "utf8"));
1098
1108
  if (!raw || typeof raw !== "object") return null;
1099
1109
  const rec = raw;
1100
1110
  if (typeof rec.runtimeId !== "string" || !rec.runtimeId.trim()) return null;
@@ -1285,7 +1295,8 @@ var AgentRpcClient = class {
1285
1295
  var PILOT_TOOL_DESCRIPTIONS = {
1286
1296
  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
1297
  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."
1298
+ 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.",
1299
+ computer_use: COMPUTER_USE_DESCRIPTION
1289
1300
  };
1290
1301
  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
1302
  var WAIT_FOR_TURN_SCHEMA = {
@@ -1342,6 +1353,27 @@ var PILOT_TOOL_SCHEMAS = {
1342
1353
  },
1343
1354
  required: ["id"]
1344
1355
  },
1356
+ computer_use: {
1357
+ type: "object",
1358
+ properties: {
1359
+ action: {
1360
+ type: "string",
1361
+ enum: ["screenshot", "click", "type", "key", "scroll"]
1362
+ },
1363
+ x: { type: "number", description: "Screen x in points, not PNG pixels" },
1364
+ y: { type: "number", description: "Screen y in points, not PNG pixels" },
1365
+ text: { type: "string" },
1366
+ key: { type: "string" },
1367
+ modifiers: {
1368
+ type: "array",
1369
+ items: { type: "string" },
1370
+ description: "command, shift, option, control"
1371
+ },
1372
+ dx: { type: "number", description: "Horizontal scroll in points. Positive is right" },
1373
+ dy: { type: "number", description: "Vertical scroll in points. Positive is down" }
1374
+ },
1375
+ required: ["action"]
1376
+ },
1345
1377
  stop_job: {
1346
1378
  type: "object",
1347
1379
  properties: {
@@ -1390,6 +1422,7 @@ function createPilotRpcExecutors(opts) {
1390
1422
  }
1391
1423
  },
1392
1424
  stop_job: (args) => callJob("job.stop", args),
1425
+ computer_use: (args) => callJob("computer.act", args),
1393
1426
  wait_for_turn: async (args, context) => {
1394
1427
  const prev = waitToolCallId;
1395
1428
  waitToolCallId = typeof context?.toolCallId === "string" ? context.toolCallId : void 0;
@@ -1421,6 +1454,11 @@ function sideboardCursorRpcTools(opts) {
1421
1454
  description: PILOT_TOOL_DESCRIPTIONS.stop_job,
1422
1455
  inputSchema: PILOT_TOOL_SCHEMAS.stop_job,
1423
1456
  execute: exec.stop_job
1457
+ },
1458
+ computer_use: {
1459
+ description: PILOT_TOOL_DESCRIPTIONS.computer_use,
1460
+ inputSchema: PILOT_TOOL_SCHEMAS.computer_use,
1461
+ execute: exec.computer_use
1424
1462
  }
1425
1463
  };
1426
1464
  if (opts.includeWaitForTurn) {
@@ -1434,8 +1472,8 @@ function sideboardCursorRpcTools(opts) {
1434
1472
  }
1435
1473
 
1436
1474
  // src/agents/tool-result-clip.ts
1437
- var import_node_fs17 = require("fs");
1438
- var import_node_path19 = require("path");
1475
+ var import_node_fs18 = require("fs");
1476
+ var import_node_path20 = require("path");
1439
1477
 
1440
1478
  // src/paths/workspace-scratch.ts
1441
1479
  var CLI_DIR = ".context/cli";
@@ -1444,15 +1482,15 @@ var CLI_DIR = ".context/cli";
1444
1482
  function spillPath(cwd, prefix) {
1445
1483
  const stamp = `${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 8)}`;
1446
1484
  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`);
1485
+ return (0, import_node_path20.join)(cwd, CLI_DIR, `${safe}-${stamp}.txt`);
1448
1486
  }
1449
1487
  function spillToolResultToCli(content, opts) {
1450
1488
  const cwd = opts?.cwd?.trim();
1451
1489
  if (!cwd || !content) return null;
1452
1490
  const file = spillPath(cwd, opts?.prefix ?? "tool-result");
1453
1491
  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");
1492
+ (0, import_node_fs18.mkdirSync)((0, import_node_path20.join)(cwd, CLI_DIR), { recursive: true });
1493
+ (0, import_node_fs18.writeFileSync)(file, content, "utf8");
1456
1494
  return file;
1457
1495
  } catch {
1458
1496
  return null;
@@ -1971,7 +2009,7 @@ function emit(event) {
1971
2009
  }
1972
2010
  function localAgentStore(Store, threadId) {
1973
2011
  const root = cursorSdkStoreDir(threadId);
1974
- (0, import_node_fs18.mkdirSync)(root, { recursive: true });
2012
+ (0, import_node_fs19.mkdirSync)(root, { recursive: true });
1975
2013
  return new Store(root);
1976
2014
  }
1977
2015
  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-V2G6AGWM.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-PS6TD5MQ.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-UDTFOKVX.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-PS6TD5MQ.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-PR5TOSRD.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";
@@ -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 {