@denisixnpm/agent-rdp 0.0.1 → 0.7.1

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 (190) hide show
  1. package/CHANGELOG.md +270 -0
  2. package/README.md +525 -0
  3. package/bin/cli.js +61 -0
  4. package/dist/automation.d.ts +199 -0
  5. package/dist/automation.d.ts.map +1 -0
  6. package/dist/automation.js +309 -0
  7. package/dist/automation.js.map +1 -0
  8. package/dist/client.d.ts +45 -0
  9. package/dist/client.d.ts.map +1 -0
  10. package/dist/client.js +146 -0
  11. package/dist/client.js.map +1 -0
  12. package/dist/daemon.d.ts +32 -0
  13. package/dist/daemon.d.ts.map +1 -0
  14. package/dist/daemon.js +175 -0
  15. package/dist/daemon.js.map +1 -0
  16. package/dist/generated/AccessibilityElement.d.ts +47 -0
  17. package/dist/generated/AccessibilityElement.d.ts.map +1 -0
  18. package/dist/generated/AccessibilityElement.js +2 -0
  19. package/dist/generated/AccessibilityElement.js.map +1 -0
  20. package/dist/generated/AccessibilitySnapshot.d.ts +27 -0
  21. package/dist/generated/AccessibilitySnapshot.d.ts.map +1 -0
  22. package/dist/generated/AccessibilitySnapshot.js +2 -0
  23. package/dist/generated/AccessibilitySnapshot.js.map +1 -0
  24. package/dist/generated/AutomateRequest.d.ts +192 -0
  25. package/dist/generated/AutomateRequest.d.ts.map +1 -0
  26. package/dist/generated/AutomateRequest.js +2 -0
  27. package/dist/generated/AutomateRequest.js.map +1 -0
  28. package/dist/generated/AutomationHandshake.d.ts +26 -0
  29. package/dist/generated/AutomationHandshake.d.ts.map +1 -0
  30. package/dist/generated/AutomationHandshake.js +3 -0
  31. package/dist/generated/AutomationHandshake.js.map +1 -0
  32. package/dist/generated/AutomationScrollDirection.d.ts +5 -0
  33. package/dist/generated/AutomationScrollDirection.d.ts.map +1 -0
  34. package/dist/generated/AutomationScrollDirection.js +3 -0
  35. package/dist/generated/AutomationScrollDirection.js.map +1 -0
  36. package/dist/generated/AutomationStatus.d.ts +22 -0
  37. package/dist/generated/AutomationStatus.d.ts.map +1 -0
  38. package/dist/generated/AutomationStatus.js +3 -0
  39. package/dist/generated/AutomationStatus.js.map +1 -0
  40. package/dist/generated/ClickResult.d.ts +22 -0
  41. package/dist/generated/ClickResult.d.ts.map +1 -0
  42. package/dist/generated/ClickResult.js +3 -0
  43. package/dist/generated/ClickResult.js.map +1 -0
  44. package/dist/generated/ClipboardRequest.d.ts +10 -0
  45. package/dist/generated/ClipboardRequest.d.ts.map +1 -0
  46. package/dist/generated/ClipboardRequest.js +3 -0
  47. package/dist/generated/ClipboardRequest.js.map +1 -0
  48. package/dist/generated/ConnectRequest.d.ts +68 -0
  49. package/dist/generated/ConnectRequest.d.ts.map +1 -0
  50. package/dist/generated/ConnectRequest.js +2 -0
  51. package/dist/generated/ConnectRequest.js.map +1 -0
  52. package/dist/generated/ConnectionState.d.ts +5 -0
  53. package/dist/generated/ConnectionState.d.ts.map +1 -0
  54. package/dist/generated/ConnectionState.js +3 -0
  55. package/dist/generated/ConnectionState.js.map +1 -0
  56. package/dist/generated/DriveMapping.d.ts +14 -0
  57. package/dist/generated/DriveMapping.d.ts.map +1 -0
  58. package/dist/generated/DriveMapping.js +3 -0
  59. package/dist/generated/DriveMapping.js.map +1 -0
  60. package/dist/generated/DriveRequest.d.ts +9 -0
  61. package/dist/generated/DriveRequest.d.ts.map +1 -0
  62. package/dist/generated/DriveRequest.js +3 -0
  63. package/dist/generated/DriveRequest.js.map +1 -0
  64. package/dist/generated/ElementBounds.d.ts +10 -0
  65. package/dist/generated/ElementBounds.d.ts.map +1 -0
  66. package/dist/generated/ElementBounds.js +3 -0
  67. package/dist/generated/ElementBounds.js.map +1 -0
  68. package/dist/generated/ElementValue.d.ts +23 -0
  69. package/dist/generated/ElementValue.d.ts.map +1 -0
  70. package/dist/generated/ElementValue.js +2 -0
  71. package/dist/generated/ElementValue.js.map +1 -0
  72. package/dist/generated/ErrorCode.d.ts +5 -0
  73. package/dist/generated/ErrorCode.d.ts.map +1 -0
  74. package/dist/generated/ErrorCode.js +3 -0
  75. package/dist/generated/ErrorCode.js.map +1 -0
  76. package/dist/generated/ErrorInfo.d.ts +15 -0
  77. package/dist/generated/ErrorInfo.d.ts.map +1 -0
  78. package/dist/generated/ErrorInfo.js +2 -0
  79. package/dist/generated/ErrorInfo.js.map +1 -0
  80. package/dist/generated/FileIpcError.d.ts +14 -0
  81. package/dist/generated/FileIpcError.d.ts.map +1 -0
  82. package/dist/generated/FileIpcError.js +3 -0
  83. package/dist/generated/FileIpcError.js.map +1 -0
  84. package/dist/generated/FileIpcRequest.d.ts +18 -0
  85. package/dist/generated/FileIpcRequest.d.ts.map +1 -0
  86. package/dist/generated/FileIpcRequest.js +3 -0
  87. package/dist/generated/FileIpcRequest.js.map +1 -0
  88. package/dist/generated/FileIpcResponse.d.ts +27 -0
  89. package/dist/generated/FileIpcResponse.d.ts.map +1 -0
  90. package/dist/generated/FileIpcResponse.js +2 -0
  91. package/dist/generated/FileIpcResponse.js.map +1 -0
  92. package/dist/generated/ImageFormat.d.ts +5 -0
  93. package/dist/generated/ImageFormat.d.ts.map +1 -0
  94. package/dist/generated/ImageFormat.js +3 -0
  95. package/dist/generated/ImageFormat.js.map +1 -0
  96. package/dist/generated/KeyboardRequest.d.ts +17 -0
  97. package/dist/generated/KeyboardRequest.d.ts.map +1 -0
  98. package/dist/generated/KeyboardRequest.js +3 -0
  99. package/dist/generated/KeyboardRequest.js.map +1 -0
  100. package/dist/generated/LocateRequest.d.ts +23 -0
  101. package/dist/generated/LocateRequest.d.ts.map +1 -0
  102. package/dist/generated/LocateRequest.js +3 -0
  103. package/dist/generated/LocateRequest.js.map +1 -0
  104. package/dist/generated/LocateResult.d.ts +15 -0
  105. package/dist/generated/LocateResult.d.ts.map +1 -0
  106. package/dist/generated/LocateResult.js +2 -0
  107. package/dist/generated/LocateResult.js.map +1 -0
  108. package/dist/generated/MappedDrive.d.ts +14 -0
  109. package/dist/generated/MappedDrive.d.ts.map +1 -0
  110. package/dist/generated/MappedDrive.js +3 -0
  111. package/dist/generated/MappedDrive.js.map +1 -0
  112. package/dist/generated/MouseButton.d.ts +5 -0
  113. package/dist/generated/MouseButton.d.ts.map +1 -0
  114. package/dist/generated/MouseButton.js +3 -0
  115. package/dist/generated/MouseButton.js.map +1 -0
  116. package/dist/generated/MouseRequest.d.ts +38 -0
  117. package/dist/generated/MouseRequest.d.ts.map +1 -0
  118. package/dist/generated/MouseRequest.js +2 -0
  119. package/dist/generated/MouseRequest.js.map +1 -0
  120. package/dist/generated/OcrMatch.d.ts +34 -0
  121. package/dist/generated/OcrMatch.d.ts.map +1 -0
  122. package/dist/generated/OcrMatch.js +3 -0
  123. package/dist/generated/OcrMatch.js.map +1 -0
  124. package/dist/generated/Request.d.ts +40 -0
  125. package/dist/generated/Request.d.ts.map +1 -0
  126. package/dist/generated/Request.js +2 -0
  127. package/dist/generated/Request.js.map +1 -0
  128. package/dist/generated/Response.d.ts +20 -0
  129. package/dist/generated/Response.d.ts.map +1 -0
  130. package/dist/generated/Response.js +2 -0
  131. package/dist/generated/Response.js.map +1 -0
  132. package/dist/generated/ResponseData.d.ts +92 -0
  133. package/dist/generated/ResponseData.d.ts.map +1 -0
  134. package/dist/generated/ResponseData.js +2 -0
  135. package/dist/generated/ResponseData.js.map +1 -0
  136. package/dist/generated/RunPollResult.d.ts +26 -0
  137. package/dist/generated/RunPollResult.d.ts.map +1 -0
  138. package/dist/generated/RunPollResult.js +3 -0
  139. package/dist/generated/RunPollResult.js.map +1 -0
  140. package/dist/generated/RunResult.d.ts +22 -0
  141. package/dist/generated/RunResult.d.ts.map +1 -0
  142. package/dist/generated/RunResult.js +3 -0
  143. package/dist/generated/RunResult.js.map +1 -0
  144. package/dist/generated/ScreenshotRequest.d.ts +11 -0
  145. package/dist/generated/ScreenshotRequest.d.ts.map +1 -0
  146. package/dist/generated/ScreenshotRequest.js +2 -0
  147. package/dist/generated/ScreenshotRequest.js.map +1 -0
  148. package/dist/generated/ScrollDirection.d.ts +5 -0
  149. package/dist/generated/ScrollDirection.d.ts.map +1 -0
  150. package/dist/generated/ScrollDirection.js +3 -0
  151. package/dist/generated/ScrollDirection.js.map +1 -0
  152. package/dist/generated/ScrollRequest.d.ts +20 -0
  153. package/dist/generated/ScrollRequest.d.ts.map +1 -0
  154. package/dist/generated/ScrollRequest.js +2 -0
  155. package/dist/generated/ScrollRequest.js.map +1 -0
  156. package/dist/generated/SessionInfo.d.ts +35 -0
  157. package/dist/generated/SessionInfo.d.ts.map +1 -0
  158. package/dist/generated/SessionInfo.js +2 -0
  159. package/dist/generated/SessionInfo.js.map +1 -0
  160. package/dist/generated/SessionSummary.d.ts +19 -0
  161. package/dist/generated/SessionSummary.d.ts.map +1 -0
  162. package/dist/generated/SessionSummary.js +2 -0
  163. package/dist/generated/SessionSummary.js.map +1 -0
  164. package/dist/generated/WaitState.d.ts +5 -0
  165. package/dist/generated/WaitState.d.ts.map +1 -0
  166. package/dist/generated/WaitState.js +3 -0
  167. package/dist/generated/WaitState.js.map +1 -0
  168. package/dist/generated/WindowAction.d.ts +5 -0
  169. package/dist/generated/WindowAction.d.ts.map +1 -0
  170. package/dist/generated/WindowAction.js +3 -0
  171. package/dist/generated/WindowAction.js.map +1 -0
  172. package/dist/generated/WindowInfo.d.ts +31 -0
  173. package/dist/generated/WindowInfo.d.ts.map +1 -0
  174. package/dist/generated/WindowInfo.js +2 -0
  175. package/dist/generated/WindowInfo.js.map +1 -0
  176. package/dist/generated/index.d.ts +41 -0
  177. package/dist/generated/index.d.ts.map +1 -0
  178. package/dist/generated/index.js +3 -0
  179. package/dist/generated/index.js.map +1 -0
  180. package/dist/index.d.ts +211 -0
  181. package/dist/index.d.ts.map +1 -0
  182. package/dist/index.js +341 -0
  183. package/dist/index.js.map +1 -0
  184. package/dist/types.d.ts +125 -0
  185. package/dist/types.d.ts.map +1 -0
  186. package/dist/types.js +17 -0
  187. package/dist/types.js.map +1 -0
  188. package/models/text-detection.rten +0 -0
  189. package/models/text-recognition.rten +0 -0
  190. package/package.json +52 -5
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Handshake data from PowerShell agent.
3
+ */
4
+ export type AutomationHandshake = {
5
+ /**
6
+ * Agent version.
7
+ */
8
+ version: string;
9
+ /**
10
+ * Agent process ID.
11
+ */
12
+ agent_pid: number;
13
+ /**
14
+ * Start timestamp (optional for backwards compatibility).
15
+ */
16
+ started_at?: string;
17
+ /**
18
+ * Supported capabilities.
19
+ */
20
+ capabilities: Array<string>;
21
+ /**
22
+ * Whether the agent is ready.
23
+ */
24
+ ready: boolean;
25
+ };
26
+ //# sourceMappingURL=AutomationHandshake.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationHandshake.d.ts","sourceRoot":"","sources":["../../src/generated/AutomationHandshake.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,mBAAmB,GAAG;IAClC;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,KAAK,EAAE,OAAO,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=AutomationHandshake.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationHandshake.js","sourceRoot":"","sources":["../../src/generated/AutomationHandshake.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Scroll direction for automation.
3
+ */
4
+ export type AutomationScrollDirection = "up" | "down" | "left" | "right";
5
+ //# sourceMappingURL=AutomationScrollDirection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationScrollDirection.d.ts","sourceRoot":"","sources":["../../src/generated/AutomationScrollDirection.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,IAAI,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=AutomationScrollDirection.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationScrollDirection.js","sourceRoot":"","sources":["../../src/generated/AutomationScrollDirection.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Automation agent status.
3
+ */
4
+ export type AutomationStatus = {
5
+ /**
6
+ * Whether the automation agent is running.
7
+ */
8
+ agent_running: boolean;
9
+ /**
10
+ * Agent process ID.
11
+ */
12
+ agent_pid?: number;
13
+ /**
14
+ * Supported capabilities.
15
+ */
16
+ capabilities: Array<string>;
17
+ /**
18
+ * Agent version.
19
+ */
20
+ version?: string;
21
+ };
22
+ //# sourceMappingURL=AutomationStatus.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationStatus.d.ts","sourceRoot":"","sources":["../../src/generated/AutomationStatus.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAC/B;;OAEG;IACH,aAAa,EAAE,OAAO,CAAC;IACvB;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,YAAY,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAC5B;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=AutomationStatus.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AutomationStatus.js","sourceRoot":"","sources":["../../src/generated/AutomationStatus.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,22 @@
1
+ /**
2
+ * Click action result.
3
+ */
4
+ export type ClickResult = {
5
+ /**
6
+ * Whether the click was performed.
7
+ */
8
+ clicked: boolean;
9
+ /**
10
+ * Method used (click or double_click).
11
+ */
12
+ method: string;
13
+ /**
14
+ * X coordinate of click.
15
+ */
16
+ x?: number;
17
+ /**
18
+ * Y coordinate of click.
19
+ */
20
+ y?: number;
21
+ };
22
+ //# sourceMappingURL=ClickResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClickResult.d.ts","sourceRoot":"","sources":["../../src/generated/ClickResult.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IAC1B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,CAAC,CAAC,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ClickResult.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClickResult.js","sourceRoot":"","sources":["../../src/generated/ClickResult.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Clipboard operation request.
3
+ */
4
+ export type ClipboardRequest = {
5
+ "action": "get";
6
+ } | {
7
+ "action": "set";
8
+ text: string;
9
+ };
10
+ //# sourceMappingURL=ClipboardRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClipboardRequest.d.ts","sourceRoot":"","sources":["../../src/generated/ClipboardRequest.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,gBAAgB,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ClipboardRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ClipboardRequest.js","sourceRoot":"","sources":["../../src/generated/ClipboardRequest.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,68 @@
1
+ import type { DriveMapping } from "./DriveMapping.js";
2
+ /**
3
+ * RDP connection parameters.
4
+ */
5
+ export type ConnectRequest = {
6
+ /**
7
+ * Server hostname or IP address.
8
+ */
9
+ host: string;
10
+ /**
11
+ * Server port (default: 3389).
12
+ */
13
+ port: number;
14
+ /**
15
+ * Username for authentication.
16
+ */
17
+ username: string;
18
+ /**
19
+ * Password for authentication.
20
+ */
21
+ password: string;
22
+ /**
23
+ * Optional domain.
24
+ */
25
+ domain?: string;
26
+ /**
27
+ * Desktop width in pixels.
28
+ */
29
+ width: number;
30
+ /**
31
+ * Desktop height in pixels.
32
+ */
33
+ height: number;
34
+ /**
35
+ * Drives to map at connect time.
36
+ */
37
+ drives: Array<DriveMapping>;
38
+ /**
39
+ * Enable Windows UI Automation.
40
+ */
41
+ enable_win_automation: boolean;
42
+ /**
43
+ * WebSocket streaming port (0 = disabled).
44
+ */
45
+ stream_port: number;
46
+ /**
47
+ * Address the streaming server binds to (default: 127.0.0.1).
48
+ *
49
+ * The stream grants full mouse/keyboard/clipboard control of the session
50
+ * and has no authentication, so it stays on loopback unless explicitly
51
+ * widened (e.g. to 0.0.0.0 inside a trusted network).
52
+ */
53
+ stream_bind: string;
54
+ /**
55
+ * Streaming frame rate (default: 10).
56
+ */
57
+ stream_fps: number;
58
+ /**
59
+ * Streaming JPEG quality 0-100 (default: 80).
60
+ */
61
+ stream_quality: number;
62
+ /**
63
+ * Serve the embedded HTML viewer on the streaming port (default: false).
64
+ * When false, only WebSocket connections are accepted.
65
+ */
66
+ serve_viewer: boolean;
67
+ };
68
+ //# sourceMappingURL=ConnectRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectRequest.d.ts","sourceRoot":"","sources":["../../src/generated/ConnectRequest.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;IACjB;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,YAAY,CAAC,CAAC;IAC5B;;OAEG;IACH,qBAAqB,EAAE,OAAO,CAAC;IAC/B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;;OAMG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;OAEG;IACH,cAAc,EAAE,MAAM,CAAC;IACvB;;;OAGG;IACH,YAAY,EAAE,OAAO,CAAC;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ConnectRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectRequest.js","sourceRoot":"","sources":["../../src/generated/ConnectRequest.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Connection state.
3
+ */
4
+ export type ConnectionState = "disconnected" | "connecting" | "connected" | "failed";
5
+ //# sourceMappingURL=ConnectionState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionState.d.ts","sourceRoot":"","sources":["../../src/generated/ConnectionState.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,cAAc,GAAG,YAAY,GAAG,WAAW,GAAG,QAAQ,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ConnectionState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ConnectionState.js","sourceRoot":"","sources":["../../src/generated/ConnectionState.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * A drive to map at connect time.
3
+ */
4
+ export type DriveMapping = {
5
+ /**
6
+ * Local path to map.
7
+ */
8
+ path: string;
9
+ /**
10
+ * Name for the mapped drive (shown in Windows).
11
+ */
12
+ name: string;
13
+ };
14
+ //# sourceMappingURL=DriveMapping.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveMapping.d.ts","sourceRoot":"","sources":["../../src/generated/DriveMapping.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=DriveMapping.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveMapping.js","sourceRoot":"","sources":["../../src/generated/DriveMapping.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * Drive mapping operation request.
3
+ * Note: Drives are configured at connect time with --drive flag.
4
+ * Dynamic mapping/unmapping is not supported by the RDP protocol.
5
+ */
6
+ export type DriveRequest = {
7
+ "action": "list";
8
+ };
9
+ //# sourceMappingURL=DriveRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveRequest.d.ts","sourceRoot":"","sources":["../../src/generated/DriveRequest.ts"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,MAAM,MAAM,YAAY,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=DriveRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"DriveRequest.js","sourceRoot":"","sources":["../../src/generated/DriveRequest.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,10 @@
1
+ /**
2
+ * Bounding rectangle for an element.
3
+ */
4
+ export type ElementBounds = {
5
+ x: number;
6
+ y: number;
7
+ width: number;
8
+ height: number;
9
+ };
10
+ //# sourceMappingURL=ElementBounds.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ElementBounds.d.ts","sourceRoot":"","sources":["../../src/generated/ElementBounds.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ElementBounds.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ElementBounds.js","sourceRoot":"","sources":["../../src/generated/ElementBounds.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,23 @@
1
+ import type { ElementBounds } from "./ElementBounds.js";
2
+ /**
3
+ * Element value response.
4
+ */
5
+ export type ElementValue = {
6
+ /**
7
+ * Element name.
8
+ */
9
+ name?: string;
10
+ /**
11
+ * Element value.
12
+ */
13
+ value?: string;
14
+ /**
15
+ * Element states.
16
+ */
17
+ states: Array<string>;
18
+ /**
19
+ * Element bounds.
20
+ */
21
+ bounds?: ElementBounds;
22
+ };
23
+ //# sourceMappingURL=ElementValue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ElementValue.d.ts","sourceRoot":"","sources":["../../src/generated/ElementValue.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AAExD;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IACtB;;OAEG;IACH,MAAM,CAAC,EAAE,aAAa,CAAC;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ElementValue.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ElementValue.js","sourceRoot":"","sources":["../../src/generated/ElementValue.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Error codes for structured error handling.
3
+ */
4
+ export type ErrorCode = "not_connected" | "already_connected" | "connection_failed" | "authentication_failed" | "timeout" | "invalid_request" | "not_supported" | "internal_error" | "session_not_found" | "ipc_error" | "daemon_not_running" | "clipboard_error" | "drive_error" | "automation_not_enabled" | "automation_error" | "element_not_found" | "stale_ref" | "command_failed";
5
+ //# sourceMappingURL=ErrorCode.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorCode.d.ts","sourceRoot":"","sources":["../../src/generated/ErrorCode.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,eAAe,GAAG,mBAAmB,GAAG,mBAAmB,GAAG,uBAAuB,GAAG,SAAS,GAAG,iBAAiB,GAAG,eAAe,GAAG,gBAAgB,GAAG,mBAAmB,GAAG,WAAW,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,aAAa,GAAG,wBAAwB,GAAG,kBAAkB,GAAG,mBAAmB,GAAG,WAAW,GAAG,gBAAgB,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ErrorCode.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorCode.js","sourceRoot":"","sources":["../../src/generated/ErrorCode.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,15 @@
1
+ import type { ErrorCode } from "./ErrorCode.js";
2
+ /**
3
+ * Error information.
4
+ */
5
+ export type ErrorInfo = {
6
+ /**
7
+ * Error code.
8
+ */
9
+ code: ErrorCode;
10
+ /**
11
+ * Human-readable error message.
12
+ */
13
+ message: string;
14
+ };
15
+ //# sourceMappingURL=ErrorInfo.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorInfo.d.ts","sourceRoot":"","sources":["../../src/generated/ErrorInfo.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG;IACxB;;OAEG;IACH,IAAI,EAAE,SAAS,CAAC;IAChB;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=ErrorInfo.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ErrorInfo.js","sourceRoot":"","sources":["../../src/generated/ErrorInfo.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ /**
2
+ * Error from PowerShell agent.
3
+ */
4
+ export type FileIpcError = {
5
+ /**
6
+ * Error code.
7
+ */
8
+ code: string;
9
+ /**
10
+ * Error message.
11
+ */
12
+ message: string;
13
+ };
14
+ //# sourceMappingURL=FileIpcError.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcError.d.ts","sourceRoot":"","sources":["../../src/generated/FileIpcError.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=FileIpcError.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcError.js","sourceRoot":"","sources":["../../src/generated/FileIpcError.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * Request sent to PowerShell agent via file IPC.
3
+ */
4
+ export type FileIpcRequest = {
5
+ /**
6
+ * Unique request ID.
7
+ */
8
+ id: string;
9
+ /**
10
+ * Command to execute.
11
+ */
12
+ command: string;
13
+ /**
14
+ * Command parameters.
15
+ */
16
+ params: unknown;
17
+ };
18
+ //# sourceMappingURL=FileIpcRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcRequest.d.ts","sourceRoot":"","sources":["../../src/generated/FileIpcRequest.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,cAAc,GAAG;IAC7B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=FileIpcRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcRequest.js","sourceRoot":"","sources":["../../src/generated/FileIpcRequest.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,27 @@
1
+ import type { FileIpcError } from "./FileIpcError.js";
2
+ /**
3
+ * Response from PowerShell agent via file IPC.
4
+ */
5
+ export type FileIpcResponse = {
6
+ /**
7
+ * Request ID this responds to.
8
+ */
9
+ id: string;
10
+ /**
11
+ * Response timestamp.
12
+ */
13
+ timestamp: string;
14
+ /**
15
+ * Whether the command succeeded.
16
+ */
17
+ success: boolean;
18
+ /**
19
+ * Response data on success.
20
+ */
21
+ data?: unknown;
22
+ /**
23
+ * Error details on failure.
24
+ */
25
+ error?: FileIpcError;
26
+ };
27
+ //# sourceMappingURL=FileIpcResponse.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcResponse.d.ts","sourceRoot":"","sources":["../../src/generated/FileIpcResponse.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAEtD;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAC9B;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,CAAC;IACf;;OAEG;IACH,KAAK,CAAC,EAAE,YAAY,CAAC;CAAE,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=FileIpcResponse.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"FileIpcResponse.js","sourceRoot":"","sources":["../../src/generated/FileIpcResponse.ts"],"names":[],"mappings":""}
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Supported image formats.
3
+ */
4
+ export type ImageFormat = "png" | "jpeg";
5
+ //# sourceMappingURL=ImageFormat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageFormat.d.ts","sourceRoot":"","sources":["../../src/generated/ImageFormat.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG,KAAK,GAAG,MAAM,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=ImageFormat.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ImageFormat.js","sourceRoot":"","sources":["../../src/generated/ImageFormat.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,17 @@
1
+ /**
2
+ * Keyboard operation request.
3
+ */
4
+ export type KeyboardRequest = {
5
+ "action": "type";
6
+ text: string;
7
+ } | {
8
+ "action": "press";
9
+ keys: string;
10
+ } | {
11
+ "action": "key_down";
12
+ key: string;
13
+ } | {
14
+ "action": "key_up";
15
+ key: string;
16
+ };
17
+ //# sourceMappingURL=KeyboardRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardRequest.d.ts","sourceRoot":"","sources":["../../src/generated/KeyboardRequest.ts"],"names":[],"mappings":"AAEA;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG;IAAE,QAAQ,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,QAAQ,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=KeyboardRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"KeyboardRequest.js","sourceRoot":"","sources":["../../src/generated/KeyboardRequest.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,23 @@
1
+ /**
2
+ * OCR-based text location request.
3
+ * Uses screenshot + OCR to find text on screen and return coordinates.
4
+ */
5
+ export type LocateRequest = {
6
+ /**
7
+ * Text to search for (ignored if `all` is true).
8
+ */
9
+ text: string;
10
+ /**
11
+ * Use pattern matching (glob-style: * and ?).
12
+ */
13
+ pattern: boolean;
14
+ /**
15
+ * Case-insensitive matching (default: true).
16
+ */
17
+ ignore_case: boolean;
18
+ /**
19
+ * Return all text on screen (ignores text/pattern/ignore_case).
20
+ */
21
+ all: boolean;
22
+ };
23
+ //# sourceMappingURL=LocateRequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocateRequest.d.ts","sourceRoot":"","sources":["../../src/generated/LocateRequest.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,MAAM,MAAM,aAAa,GAAG;IAC5B;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,GAAG,EAAE,OAAO,CAAC;CAAE,CAAC"}
@@ -0,0 +1,3 @@
1
+ // This file was generated by [ts-rs](https://github.com/Aleph-Alpha/ts-rs). Do not edit this file manually.
2
+ export {};
3
+ //# sourceMappingURL=LocateRequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocateRequest.js","sourceRoot":"","sources":["../../src/generated/LocateRequest.ts"],"names":[],"mappings":"AAAA,4GAA4G"}
@@ -0,0 +1,15 @@
1
+ import type { OcrMatch } from "./OcrMatch.js";
2
+ /**
3
+ * OCR locate result.
4
+ */
5
+ export type LocateResult = {
6
+ /**
7
+ * Matching text regions found.
8
+ */
9
+ matches: Array<OcrMatch>;
10
+ /**
11
+ * Total words detected on screen.
12
+ */
13
+ total_words: number;
14
+ };
15
+ //# sourceMappingURL=LocateResult.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"LocateResult.d.ts","sourceRoot":"","sources":["../../src/generated/LocateResult.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AAE9C;;GAEG;AACH,MAAM,MAAM,YAAY,GAAG;IAC3B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC;IACzB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CAAE,CAAC"}