@namzu/computer-use 3.1.0 → 4.0.0

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 (121) hide show
  1. package/CHANGELOG.md +58 -1
  2. package/dist/SubprocessComputerUseHost.d.ts +57 -9
  3. package/dist/SubprocessComputerUseHost.d.ts.map +1 -1
  4. package/dist/SubprocessComputerUseHost.js +213 -46
  5. package/dist/SubprocessComputerUseHost.js.map +1 -1
  6. package/dist/adapters/cua-driver/adapter.d.ts +171 -10
  7. package/dist/adapters/cua-driver/adapter.d.ts.map +1 -1
  8. package/dist/adapters/cua-driver/adapter.js +1476 -161
  9. package/dist/adapters/cua-driver/adapter.js.map +1 -1
  10. package/dist/adapters/cua-driver/client.d.ts +16 -0
  11. package/dist/adapters/cua-driver/client.d.ts.map +1 -1
  12. package/dist/adapters/cua-driver/client.js +54 -5
  13. package/dist/adapters/cua-driver/client.js.map +1 -1
  14. package/dist/adapters/cua-driver/escalation.d.ts +67 -0
  15. package/dist/adapters/cua-driver/escalation.d.ts.map +1 -0
  16. package/dist/adapters/cua-driver/escalation.js +82 -0
  17. package/dist/adapters/cua-driver/escalation.js.map +1 -0
  18. package/dist/adapters/cua-driver/keys.d.ts +5 -0
  19. package/dist/adapters/cua-driver/keys.d.ts.map +1 -1
  20. package/dist/adapters/cua-driver/keys.js +23 -0
  21. package/dist/adapters/cua-driver/keys.js.map +1 -1
  22. package/dist/adapters/cua-driver/observe.d.ts +99 -0
  23. package/dist/adapters/cua-driver/observe.d.ts.map +1 -0
  24. package/dist/adapters/cua-driver/observe.js +227 -0
  25. package/dist/adapters/cua-driver/observe.js.map +1 -0
  26. package/dist/adapters/cua-driver/ui-tree.d.ts +75 -2
  27. package/dist/adapters/cua-driver/ui-tree.d.ts.map +1 -1
  28. package/dist/adapters/cua-driver/ui-tree.js +142 -14
  29. package/dist/adapters/cua-driver/ui-tree.js.map +1 -1
  30. package/dist/adapters/types.d.ts +3 -3
  31. package/dist/adapters/types.d.ts.map +1 -1
  32. package/dist/adapters/types.js.map +1 -1
  33. package/dist/adapters/win32.d.ts +10 -0
  34. package/dist/adapters/win32.d.ts.map +1 -1
  35. package/dist/adapters/win32.js +12 -2
  36. package/dist/adapters/win32.js.map +1 -1
  37. package/dist/errors.d.ts +19 -0
  38. package/dist/errors.d.ts.map +1 -1
  39. package/dist/errors.js +26 -0
  40. package/dist/errors.js.map +1 -1
  41. package/dist/foreground/guard.d.ts +31 -0
  42. package/dist/foreground/guard.d.ts.map +1 -0
  43. package/dist/foreground/guard.js +156 -0
  44. package/dist/foreground/guard.js.map +1 -0
  45. package/dist/foreground/index.d.ts +11 -0
  46. package/dist/foreground/index.d.ts.map +1 -0
  47. package/dist/foreground/index.js +7 -0
  48. package/dist/foreground/index.js.map +1 -0
  49. package/dist/foreground/ladder.d.ts +143 -0
  50. package/dist/foreground/ladder.d.ts.map +1 -0
  51. package/dist/foreground/ladder.js +505 -0
  52. package/dist/foreground/ladder.js.map +1 -0
  53. package/dist/foreground/lease.d.ts +69 -0
  54. package/dist/foreground/lease.d.ts.map +1 -0
  55. package/dist/foreground/lease.js +182 -0
  56. package/dist/foreground/lease.js.map +1 -0
  57. package/dist/foreground/types.d.ts +287 -0
  58. package/dist/foreground/types.d.ts.map +1 -0
  59. package/dist/foreground/types.js +32 -0
  60. package/dist/foreground/types.js.map +1 -0
  61. package/dist/foreground/windows-helper-script.d.ts +19 -0
  62. package/dist/foreground/windows-helper-script.d.ts.map +1 -0
  63. package/dist/foreground/windows-helper-script.js +472 -0
  64. package/dist/foreground/windows-helper-script.js.map +1 -0
  65. package/dist/foreground/windows-monitor.d.ts +75 -0
  66. package/dist/foreground/windows-monitor.d.ts.map +1 -0
  67. package/dist/foreground/windows-monitor.js +216 -0
  68. package/dist/foreground/windows-monitor.js.map +1 -0
  69. package/dist/foreground/windows.d.ts +21 -0
  70. package/dist/foreground/windows.d.ts.map +1 -0
  71. package/dist/foreground/windows.js +54 -0
  72. package/dist/foreground/windows.js.map +1 -0
  73. package/dist/index.d.ts +6 -1
  74. package/dist/index.d.ts.map +1 -1
  75. package/dist/index.js +3 -1
  76. package/dist/index.js.map +1 -1
  77. package/dist/presence/helper-script.d.ts +39 -0
  78. package/dist/presence/helper-script.d.ts.map +1 -0
  79. package/dist/presence/helper-script.js +320 -0
  80. package/dist/presence/helper-script.js.map +1 -0
  81. package/dist/presence/index.d.ts +6 -0
  82. package/dist/presence/index.d.ts.map +1 -0
  83. package/dist/presence/index.js +4 -0
  84. package/dist/presence/index.js.map +1 -0
  85. package/dist/presence/presence.d.ts +70 -0
  86. package/dist/presence/presence.d.ts.map +1 -0
  87. package/dist/presence/presence.js +147 -0
  88. package/dist/presence/presence.js.map +1 -0
  89. package/dist/presence/windows.d.ts +19 -0
  90. package/dist/presence/windows.d.ts.map +1 -0
  91. package/dist/presence/windows.js +39 -0
  92. package/dist/presence/windows.js.map +1 -0
  93. package/dist/util/call-scope.d.ts +34 -0
  94. package/dist/util/call-scope.d.ts.map +1 -0
  95. package/dist/util/call-scope.js +58 -0
  96. package/dist/util/call-scope.js.map +1 -0
  97. package/package.json +2 -2
  98. package/src/SubprocessComputerUseHost.ts +287 -45
  99. package/src/adapters/cua-driver/adapter.ts +1751 -175
  100. package/src/adapters/cua-driver/client.ts +59 -2
  101. package/src/adapters/cua-driver/escalation.ts +137 -0
  102. package/src/adapters/cua-driver/keys.ts +20 -0
  103. package/src/adapters/cua-driver/observe.ts +310 -0
  104. package/src/adapters/cua-driver/ui-tree.ts +219 -15
  105. package/src/adapters/types.ts +7 -2
  106. package/src/adapters/win32.ts +26 -3
  107. package/src/errors.ts +32 -0
  108. package/src/foreground/guard.ts +182 -0
  109. package/src/foreground/index.ts +45 -0
  110. package/src/foreground/ladder.ts +616 -0
  111. package/src/foreground/lease.ts +232 -0
  112. package/src/foreground/types.ts +318 -0
  113. package/src/foreground/windows-helper-script.ts +471 -0
  114. package/src/foreground/windows-monitor.ts +288 -0
  115. package/src/foreground/windows.ts +73 -0
  116. package/src/index.ts +15 -1
  117. package/src/presence/helper-script.ts +323 -0
  118. package/src/presence/index.ts +17 -0
  119. package/src/presence/presence.ts +195 -0
  120. package/src/presence/windows.ts +54 -0
  121. package/src/util/call-scope.ts +73 -0
@@ -1,6 +1,9 @@
1
- import type { ComputerUseAction, ComputerUseCapabilities, ComputerUseResult, DisplayGeometry, FocusWindowResult, UiActResult, UiElementAction, UiSnapshot, WindowInfo, WindowInputAction, WindowScreenshotResult } from '@namzu/sdk';
1
+ import type { ComputerUseAction, ComputerUseCapabilities, ComputerUseResult, DisplayGeometry, FocusWindowResult, UiActResult, UiElementAction, UiSnapshot, UiSnapshotOptions, WindowInfo, WindowInputAction, WindowInputResult, WindowScreenshotResult } from '@namzu/sdk';
2
+ import type { ForegroundLadder } from '../../foreground/ladder.js';
3
+ import type { Presence } from '../../presence/presence.js';
2
4
  import type { Adapter } from '../types.js';
3
- import { type McpStdioClientOptions, type McpToolResult } from './client.js';
5
+ import { type McpStdioClientOptions, McpToolError, type McpToolResult } from './client.js';
6
+ import { type UiRefFacts } from './ui-tree.js';
4
7
  /**
5
8
  * The Windows desktop through cua-driver (github.com/trycua/cua, MIT): one
6
9
  * `cua-driver.exe mcp` process for the adapter's lifetime, spoken to as an
@@ -33,25 +36,53 @@ export interface CuaDriverAdapterOptions {
33
36
  readonly cwd?: string;
34
37
  /** For the backend label; the pinned version when it is the pinned build. */
35
38
  readonly version?: string;
39
+ /**
40
+ * Where a window action that cannot be delivered in the background is
41
+ * retried in the foreground: through the idle gate, the screen lease and a
42
+ * restore. Absent, such an action is reported as not delivered.
43
+ */
44
+ readonly foreground?: ForegroundLadder;
45
+ /**
46
+ * The agent cursor and window border shown while a window is operated.
47
+ * Absent, nothing is drawn.
48
+ */
49
+ readonly presence?: Presence;
50
+ /** For tests: the clock the freshness of a read is judged by. */
51
+ readonly now?: () => number;
52
+ /** For tests: how the adapter waits for a window to show an input's effect. */
53
+ readonly settle?: (ms: number) => Promise<void>;
36
54
  /** For tests. */
37
55
  readonly spawnProcess?: McpStdioClientOptions['spawnProcess'];
38
56
  readonly requestTimeoutMs?: number;
39
57
  readonly startTimeoutMs?: number;
40
58
  }
59
+ /** Whether a driver tool call can change the desktop (so a lost one is an unknown outcome). */
60
+ export declare function changesDesktop(tool: string): boolean;
41
61
  export declare class CuaDriverAdapter implements Adapter {
42
62
  readonly capabilities: ComputerUseCapabilities;
43
63
  readonly backend: string;
44
64
  private readonly client;
45
65
  /** Window id → owning pid, from the latest list; `bring_to_front` needs both. */
46
66
  private readonly windowPids;
67
+ /** Window id → application name, for naming the program a foreground burst is for. */
68
+ private readonly windowApps;
69
+ private readonly foreground;
70
+ private readonly presence;
71
+ /** False once the driver would not switch its own cursor off: Namzu's is then not shown, so there is never a second one. */
72
+ private driverCursorOff;
47
73
  /** cua-driver's screenshot resize registry is per PID, so only this capture may drive input. */
48
74
  private windowFrame;
49
75
  /** Capture and scoped input must not race over cua-driver's per-PID resize ratio. */
50
76
  private windowOperation;
51
- /** Only refs from the latest snapshot may address driver tokens. */
77
+ /** Refs the model holds, by the adapter's ref. A handle is usable only in its window's latest read; otherwise the ref is found again. */
52
78
  private uiRefs;
79
+ /** Per window: the latest read of its tree, which is the only one its driver handles belong to. */
80
+ private readonly windowReads;
53
81
  private readonly uiRefNamespace;
54
- private nextSnapshot;
82
+ private nextRead;
83
+ private nextRef;
84
+ private readonly now;
85
+ private readonly settle;
55
86
  /** A successful revival invalidates refusals from the previous lifecycle episode. */
56
87
  private sessionGeneration;
57
88
  /** Share one revival among calls refused by the same expired implicit session. */
@@ -65,15 +96,110 @@ export declare class CuaDriverAdapter implements Adapter {
65
96
  focusWindow(id: string): Promise<FocusWindowResult>;
66
97
  captureWindow(id: string): Promise<WindowScreenshotResult>;
67
98
  private captureWindowInternal;
68
- executeWindow(captureId: string, action: WindowInputAction): Promise<void>;
99
+ executeWindow(captureId: string, action: WindowInputAction): Promise<WindowInputResult | undefined>;
100
+ /**
101
+ * One window input, then a check of what the window shows. The driver
102
+ * cannot confirm a background input, so one it left unconfirmed is judged
103
+ * by reading the window before and after (see `observe.ts`).
104
+ *
105
+ * An input that provably had no effect (the window did not change at all)
106
+ * is sent once more, on the screen through the foreground ladder, and
107
+ * judged again; one that changed the window in a way that cannot be tied to
108
+ * it is never sent twice (see `escalation.ts`).
109
+ */
69
110
  private executeWindowInternal;
111
+ private attemptWindowInput;
112
+ /**
113
+ * Read the window again until it shows an effect of the input, a few
114
+ * times with a short wait between (the effect of an input arrives after it
115
+ * returns), then once more to see that it held still.
116
+ */
117
+ private verifyByReading;
118
+ private windowIdsOf;
119
+ private newWindowOf;
120
+ /** A fresh read of a window, as the texts it shows; undefined when the read failed. Refs the model holds are kept pointing at their controls. */
121
+ private observe;
122
+ private deliverWindowInput;
70
123
  /**
71
124
  * One window's controls. Without an id, the window in front — which,
72
125
  * for an agent run from a terminal, is usually that terminal.
126
+ *
127
+ * A window with many controls comes back as an outline: the top levels,
128
+ * with each unexpanded region marked by how many children it hides and
129
+ * given a ref. `options.root` opens one such region; refs outside it stay
130
+ * valid. `options.query` keeps only the controls whose text matches.
73
131
  */
74
- uiSnapshot(windowId?: string): Promise<UiSnapshot>;
132
+ uiSnapshot(requested?: string, options?: UiSnapshotOptions): Promise<UiSnapshot>;
133
+ /** One `get_window_state` walk, with the process and session it was read from. */
134
+ private readWindowTree;
135
+ /**
136
+ * Record a read of a window: every ref the model already holds for it is
137
+ * pointed at the control it named in this read (found by its evidence),
138
+ * and the controls the model is being shown, and the regions it can open,
139
+ * get refs. A ref whose control is not found keeps its old, now dead,
140
+ * read, so using it re-resolves and reports why. Returns ref by path.
141
+ */
142
+ private bindRead;
143
+ /** The model holds only so many refs; the oldest reads go first. */
144
+ private trimRefs;
145
+ /**
146
+ * The ref's control as it is now: the entry itself when it was read
147
+ * recently in the window's latest read, else found again in a fresh read
148
+ * by its evidence (id, then place, then role and name). Never a guess:
149
+ * several fits is AMBIGUOUS_TARGET, none is STALE_REF, and nothing has been
150
+ * sent in either case.
151
+ */
152
+ private resolveRef;
153
+ /** Whether the ref's window has closed (or changed owner). Costs a window list, so only asked after a failure. */
154
+ private windowIsGone;
75
155
  uiAct(ref: string, action: UiElementAction, value?: string): Promise<UiActResult>;
156
+ private actOn;
157
+ /**
158
+ * Choose an option by the keyboard, for a list the driver's value call did
159
+ * not change (a web page's select element ignores it in the background).
160
+ * One foreground burst focuses the control, types the option and confirms
161
+ * it; the control is then read back. Where that does not work either, the
162
+ * model is told which route to use instead.
163
+ */
164
+ private chooseByKeyboard;
165
+ /**
166
+ * Select a list or tree row that can also be invoked, through its selection
167
+ * pattern, so that a file row is chosen and not opened. Where that cannot be
168
+ * reached nothing is sent: the click that is left would open the item.
169
+ */
170
+ private selectWithoutOpening;
171
+ /** Replace a classic edit control's text by window message; undefined where the control is not one this reaches. */
172
+ private setByMessages;
173
+ /**
174
+ * A shortcut with a modifier, carried out as the window's own menu command. Undefined where the window has no
175
+ * classic menu item for it (the usual case for a modern window), so the key goes the ordinary way.
176
+ */
177
+ private shortcutByMenu;
178
+ /** Type into the window's focused classic edit control by window message; undefined where there is none. */
179
+ private typeByMessages;
180
+ /**
181
+ * A click on a control that the control's own state does not answer for
182
+ * (a button): when the driver cannot confirm it, the window is read before
183
+ * and after, and the click is verified by what it changed.
184
+ */
185
+ private clickAndWatch;
186
+ /**
187
+ * A click on a control by its driver token, in the background. Where the
188
+ * driver says the window cannot take background input (or is covered) the
189
+ * same click is retried in the foreground through the ladder.
190
+ */
191
+ private clickRef;
192
+ /**
193
+ * The control as a fresh read of its window shows it, or undefined when
194
+ * that read failed or the control is gone. A failed read says nothing
195
+ * about the action, so callers treat undefined as "unverified".
196
+ */
197
+ private readBack;
76
198
  dispose(): Promise<void>;
199
+ /** Tells the overlay where the agent is about to act in a window; never waits and never fails the action. */
200
+ private showPresence;
201
+ /** The overlay is decoration: whatever it does, the action goes on. */
202
+ private tryPresence;
77
203
  private serializeWindowOperation;
78
204
  /**
79
205
  * cua-driver refuses an expired implicit session before dispatch, with a
@@ -81,10 +207,22 @@ export declare class CuaDriverAdapter implements Adapter {
81
207
  * A lost response or transport failure still has an unknown action outcome.
82
208
  */
83
209
  private callTool;
210
+ /**
211
+ * What a foreground burst asks of the ladder: the call's cancellation, and
212
+ * the wait for calls a cancelled burst left in flight before the window and
213
+ * cursor are put back.
214
+ */
215
+ private burstRequest;
84
216
  private reviveSession;
85
217
  /** A window id (or the window in front) → its handle and owning process. */
86
218
  private resolveWindow;
219
+ /**
220
+ * A display pointer action. A click that ends with another window in front
221
+ * is reported as sent but unverified: it may have closed its own window,
222
+ * or it may have missed. Neither is "done".
223
+ */
87
224
  private pointer;
225
+ private keyboard;
88
226
  private capture;
89
227
  }
90
228
  /**
@@ -99,12 +237,35 @@ export declare class CuaDriverAdapter implements Adapter {
99
237
  */
100
238
  export declare function isDeliveredPointerAction(error: unknown): boolean;
101
239
  /**
102
- * cua-driver's action result → the host's. `confirmed`, `partial` and
103
- * `unverifiable` count as done: a background UIA Invoke is `unverifiable` by
104
- * design (the control does not report back), and the screenshot the tool
105
- * takes afterwards is where the model sees the effect.
240
+ * What a driver tool call that returned says about the input it sent.
241
+ *
242
+ * The driver reports `effect: "unverifiable"` for nearly every background
243
+ * action, including ones that did nothing, and its `delivery_failed`
244
+ * escalation shows up on input that arrived as well as input that did not.
245
+ * Neither is proof, so only a `confirmed` effect is verified, and anything
246
+ * else says "sent, not confirmed".
247
+ */
248
+ export declare function inputDelivery(result: McpToolResult): WindowInputResult;
249
+ /**
250
+ * A driver tool error → what it means for delivery. A refusal the driver
251
+ * names means it did not send the input (safe to repeat once the cause is
252
+ * fixed). Any other error leaves the outcome unknown: it is reported as
253
+ * unverified and unsafe to repeat.
254
+ */
255
+ export declare function failureDelivery(error: McpToolError): WindowInputResult;
256
+ /**
257
+ * cua-driver's action result → the host's. `unverifiable` is the driver's
258
+ * answer to almost everything it does in the background, so a result that
259
+ * returned is "sent", and the stateful actions are judged by reading the
260
+ * control back.
106
261
  */
107
262
  export declare function actResult(result: McpToolResult): UiActResult;
263
+ /** set_value, judged by the field as a fresh read shows it. */
264
+ export declare function judgeSetValue(before: UiRefFacts, expected: string, after: UiRefFacts | undefined): UiActResult;
265
+ /** toggle, judged by whether the control's selected state flipped. */
266
+ export declare function judgeToggle(before: UiRefFacts, after: UiRefFacts | undefined): UiActResult;
267
+ /** select by a click, judged by whether the control now reads as selected (a row that can also be invoked takes the selection pattern instead). */
268
+ export declare function judgeSelect(_before: UiRefFacts, after: UiRefFacts | undefined): UiActResult;
108
269
  /** `0x…` hex, the form `bring_to_front` reports and `WindowInfo.id` carries. */
109
270
  export declare function windowIdOf(hwnd: number): string;
110
271
  export declare function parseWindowId(value: unknown): number | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../src/adapters/cua-driver/adapter.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACX,iBAAiB,EACjB,uBAAuB,EACvB,iBAAiB,EACjB,eAAe,EAEf,iBAAiB,EAEjB,WAAW,EAEX,eAAe,EACf,UAAU,EACV,UAAU,EACV,iBAAiB,EACjB,sBAAsB,EACtB,MAAM,YAAY,CAAA;AACnB,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,EAGN,KAAK,qBAAqB,EAG1B,KAAK,aAAa,EAClB,MAAM,aAAa,CAAA;AAIpB;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,MAAM,WAAW,uBAAuB;IACvC,4EAA4E;IAC5E,QAAQ,CAAC,UAAU,EAAE,MAAM,CAAA;IAC3B,2EAA2E;IAC3E,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,UAAU,CAAA;IAC/B,QAAQ,CAAC,GAAG,CAAC,EAAE,MAAM,CAAA;IACrB,6EAA6E;IAC7E,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;IACzB,iBAAiB;IACjB,QAAQ,CAAC,YAAY,CAAC,EAAE,qBAAqB,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