@deepseek-ai/dsh-experimental-cua-macos 0.2.2-alpha.3 → 0.2.2-rc.2

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 (81) hide show
  1. package/README.i18n.yaml +14 -14
  2. package/README.md +102 -67
  3. package/README.zh.md +102 -67
  4. package/cua-helper.json +7 -5
  5. package/lib/index.js +165 -110
  6. package/lib/types/ax-limits.d.ts +6 -0
  7. package/lib/types/ax-limits.d.ts.map +1 -0
  8. package/lib/types/ax-limits.js.map +1 -0
  9. package/lib/types/guidance.d.ts +4 -3
  10. package/lib/types/guidance.d.ts.map +1 -0
  11. package/lib/types/guidance.js.map +1 -0
  12. package/lib/types/held-keys.d.ts +9 -0
  13. package/lib/types/held-keys.d.ts.map +1 -0
  14. package/lib/types/held-keys.js.map +1 -0
  15. package/lib/types/index.d.ts +82 -53
  16. package/lib/types/index.d.ts.map +1 -0
  17. package/lib/types/index.js.map +1 -0
  18. package/lib/types/native-build.d.ts +16 -2
  19. package/lib/types/native-build.d.ts.map +1 -0
  20. package/lib/types/native-build.js.map +1 -0
  21. package/lib/types/permission-guide.d.ts.map +1 -0
  22. package/lib/types/permission-guide.js.map +1 -0
  23. package/lib/types/shared-native.d.ts.map +1 -0
  24. package/lib/types/shared-native.js.map +1 -0
  25. package/native/README.md +52 -30
  26. package/native/README.zh.md +52 -30
  27. package/native/Sources/CuaNative/AXAccess.swift +241 -51
  28. package/native/Sources/CuaNative/AXHover.swift +3 -3
  29. package/native/Sources/CuaNative/AXWorker.swift +118 -97
  30. package/native/Sources/CuaNative/HeldKeys.swift +114 -0
  31. package/native/Sources/CuaNative/KeyboardInput.swift +83 -64
  32. package/native/Sources/CuaNative/NativePlatform.swift +16 -6
  33. package/native/Sources/CuaNative/NativeProtocol.generated.swift +16 -11
  34. package/native/Sources/CuaNative/Permissions.swift +1 -0
  35. package/native/Sources/CuaNative/Protocol.swift +11 -3
  36. package/native/Sources/CuaNative/RequestAdmission.swift +11 -0
  37. package/native/Sources/CuaNative/RequestCoordinator.swift +15 -17
  38. package/native/Sources/CuaNative/RequestScheduler.swift +1 -0
  39. package/native/Sources/CuaNative/SharedHelperRuntime.swift +4 -3
  40. package/native/Sources/CuaNative/StandaloneApplication.swift +86 -0
  41. package/native/Sources/CuaNative/WindowCapture.swift +2 -0
  42. package/native/Sources/CuaNative/WindowGeometry.swift +2 -2
  43. package/native/Sources/CuaNative/WindowPointerInput.swift +2 -2
  44. package/native/bin/darwin-arm64/current.json +1 -1
  45. package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/CodeResources +0 -0
  46. package/native/bin/darwin-arm64/d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
  47. package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/CodeResources +0 -0
  48. package/native/bin/darwin-x64/b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
  49. package/native/bin/darwin-x64/current.json +1 -1
  50. package/native/build_app.py +72 -16
  51. package/native/protocol.schema.json +373 -84
  52. package/native/tests/swift/AXFailureTests.swift +67 -3
  53. package/native/tests/swift/AXTextFormatterTests.swift +0 -10
  54. package/native/tests/swift/ForegroundTests.swift +6 -33
  55. package/native/tests/swift/KeyboardChordTests.swift +137 -0
  56. package/native/tests/swift/ListActionsTests.swift +38 -0
  57. package/native/tests/swift/PerformActionTests.swift +106 -0
  58. package/native/tests/swift/ProtocolTests.swift +32 -2
  59. package/native/tests/swift/SharedHelperTests.swift +1 -1
  60. package/native/tests/swift/StandaloneApplicationTests.swift +136 -0
  61. package/native/upstream.json +1 -1
  62. package/package.json +51 -48
  63. package/src/ax-limits.ts +2 -0
  64. package/src/guidance.ts +21 -0
  65. package/src/held-keys.ts +42 -0
  66. package/src/index.ts +90 -0
  67. package/src/native-build.ts +113 -0
  68. package/src/permission-guide.ts +110 -0
  69. package/src/shared-native.ts +294 -0
  70. package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
  71. package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
  72. /package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/Info.plist +0 -0
  73. /package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/Resources/DSHComputerUse.icns +0 -0
  74. /package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/Resources/LICENSE.computer-use-icon +0 -0
  75. /package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/Resources/LICENSE.cua-driver +0 -0
  76. /package/native/bin/darwin-arm64/{007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b → d896b6b6e45a717a7dbc7aa52d0b34eb70f1558c472b16b1272f80678b2ed4be}/DSH Computer Use.app/Contents/_CodeSignature/CodeResources +0 -0
  77. /package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/Info.plist +0 -0
  78. /package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/Resources/DSHComputerUse.icns +0 -0
  79. /package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/Resources/LICENSE.computer-use-icon +0 -0
  80. /package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/Resources/LICENSE.cua-driver +0 -0
  81. /package/native/bin/darwin-x64/{9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2 → b68fcdb1474dad2b8694e1aa78d53bc963e6263fb3d12953502537a44df7f646}/DSH Computer Use.app/Contents/_CodeSignature/CodeResources +0 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAClD,OAAO,MAAM,MAAM,0BAA0B,CAAA;AAC7C,OAAO,EAAc,KAAK,SAAS,EAA+B,MAAM,sBAAsB,CAAA;AAG9F,OAAO,EAAmD,KAAK,aAAa,EAAE,MAAM,mBA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ACxC,MAAM,QAAQ,GAAG,uBAAuB,CAAC;QACvC,WAAW,EAAE,OAAO,CAAC,aAAa,CAAC,IAAI,GAAG,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACnE,YAAY,EAAE,aAAa,EAAE,MAAM,CAAC,aAAa,EAAE,UAAU,EAAE,GAAG,CAAC,UAAU;QAC7E,SAAS,EAAE,MAAM,CAAC,cAAc,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,UAAU,CAAC,MAAM;KACrF,CAAC,CAAA;IACF,GAAG,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,KAAK,IAAI,EAAE;QAC1B,UAAU,CAAC,KAAK,EAAE,CAAA;QAClB,2FAA2F;QAC3F,MAAM,QAAQ,CAAC,KAAK,CAAC,GAAG,EAAE,GAAE,CAAC,CAAC,CAAA;IAChC,CAAC,EAAE,4BAA4B,CAAC,CAAA;IAChC,MAAM,UAAU,GAAG,MAAM,QAAQ,CAAA;IACjC,UAAU,CAAC,MAAM,CAAC,cAAc,EAAE,CAAA;IAClC,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,GAAG,OAAO,EAAE,CAAC,CAAA;AACrD,CAAC"}
@@ -1,6 +1,13 @@
1
1
  import type { SubprocessRuntime } from '@deepseek-ai/dsh-subprocess';
2
2
  /** Architecture names used by the platform-specific native payload. */
3
3
  export type NativeArchitecture = 'arm64' | 'x64';
4
+ /** Signature selected for source builds; certificates are created and unlocked by the developer. */
5
+ export type SourceSigning = 'ad-hoc' | {
6
+ /** Existing codesign certificate name or SHA-1 fingerprint, without a leading dash or whitespace. */
7
+ identity: string;
8
+ /** Absolute keychain path. */
9
+ keychain: string;
10
+ };
4
11
  /**
5
12
  * Validate the host before preparing a platform-specific application.
6
13
  * @param platform - Node host platform.
@@ -13,6 +20,8 @@ export declare function nativeHostArchitecture(platform: string, architecture: s
13
20
  export interface NativeBuildSpec {
14
21
  packageRoot: string;
15
22
  architecture: NativeArchitecture;
23
+ /** Signature of a source-checkout build; installed packages ignore it. */
24
+ sourceSigning: SourceSigning;
16
25
  subprocess: Pick<SubprocessRuntime, 'spawn'>;
17
26
  signal: AbortSignal;
18
27
  timeoutMs: number;
@@ -21,10 +30,11 @@ export interface NativeBuildSpec {
21
30
  /**
22
31
  * Resolve the immutable application selected by a packaged or source-build receipt.
23
32
  * @param directory - Architecture-specific directory containing current.json and application generations.
33
+ * @param variant - Development or release application filename selected by the build or installation.
24
34
  * @returns Executable inside the selected application bundle.
25
35
  * @throws When the receipt is invalid or the application executable is missing.
26
36
  */
27
- export declare function nativeExecutablePath(directory: string): Promise<string>;
37
+ export declare function nativeExecutablePath(directory: string, variant: 'release' | 'dev'): Promise<string>;
28
38
  /**
29
39
  * Recognize the repository-owned package location before allowing local compilation.
30
40
  * @param packageRoot - Real directory containing the CUA package manifest.
@@ -32,7 +42,8 @@ export declare function nativeExecutablePath(directory: string): Promise<string>
32
42
  */
33
43
  export declare function isSourcePackage(packageRoot: string): Promise<boolean>;
34
44
  /**
35
- * Build and sign an immutable helper application with the selected Apple developer tools.
45
+ * Build and sign an immutable development helper application with the selected Apple developer tools.
46
+ * The development variant has its own bundle identifier and the signature selected by `spec.sourceSigning`.
36
47
  * @param spec - Checkout, target, managed process provider and cancellation/deadline limits.
37
48
  * @returns Executable inside the prepared application, after complete compiler cleanup.
38
49
  * @throws When preparation, cancellation, resource cleanup or receipt validation fails.
@@ -40,8 +51,11 @@ export declare function isSourcePackage(packageRoot: string): Promise<boolean>;
40
51
  export declare function buildNativeExecutable(spec: NativeBuildSpec): Promise<string>;
41
52
  /**
42
53
  * Prepare source builds on activation; installed packages carry their signed application.
54
+ * A package inside an Electron `app.asar` archive reads its application from the sibling `app.asar.unpacked`
55
+ * directory, which the Desktop installer populates so LaunchServices and process spawning can open the bundle.
43
56
  * @param spec - Native preparation inputs for this host.
44
57
  * @returns Executable inside a ready application without compiling or re-signing an installed package.
58
+ * @throws When an installed package carries no application receipt, naming the directory that was expected to hold it.
45
59
  */
46
60
  export declare function prepareNativeExecutable(spec: NativeBuildSpec): Promise<string>;
47
61
  //# sourceMappingURL=native-build.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"native-build.d.ts","sourceRoot":"","sources":["../../src/native-build.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAKpE,uEAAuE;AACvE,MAAM,MAAM,kBAAkB,GAAG,OAAO,GAAG,KAAK,CAAA;AAEhD,oGAAoG;AACpG,MAAM,MAAM,aAAa,GAAG,QAAQ,GAAG;IACrC,qGAAqG;IACrG,QAAQ,EAAE,MAAM,CAAA;IAChB,8BAA8B;IAC9B,QAAQ,EAAE,MAAM,CAAA;CACjB,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,GAAG,kBAAkB,CAGjG;AAED,2EAA2E;AAC3E,MAAM,WAAW,eAAe;IAC9B,WAAW,EAAE,MAAM,CAAA;IACnB,YAAY,EAAE,kBAAkB,CAAA;IAChC,0EAA0E;IAC1E,aAAa,EAAE,aAAa,CAAA;IAC5B,UAAU,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;IAC5C,MAAM,EAAE,WAAW,CAAA;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,OAAO,EAAE,MAAM,CAAA;CAChB;AAED;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,SAAS,GAAG,KAAK,GAAG,OAAO,CAAC,MAAM,CAAC,CAMzG;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,WAAW,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAE3E;AAED;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,eAAe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O,CAAC,cAAc,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;YACvE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,kBAAkB,EAAE,IAAI,CAAC,kBAAkB,EAAE,CAAA;IAC3G,CAAC,CAAA;AACH,CAAC"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-native.d.ts","sourceRoot":"","sources":["../../src/shared-native.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAuC,iBAAiB,EAAE,MAAM,6BAA6B,CAAA;AAEzG,OAAO,KAAK,EAAE,kBAAkB,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAC3F,YAAY,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAA;AAkRvE;;;;;GAKG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE;IAAE,UAAU,EAAE,IAAI,CAAC,iBAAiB,EAAE,OAAO,CAAC,CAAA;CAAE,EAAE,MAAM,EAAE,kBAAkB,GAAG,aAAa,CAE5I"}
@@ -0,0 +1 @@
1
+ {"version":3,"file":"shared-native.js","sourceRoot":"","sources":["../../src/shared-native.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAA;AACxC,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,QAAQ,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAA;AACnE,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAA;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAA;AAChC,OAAO,EAAE,WAAW,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAA;AACnD,OAAO,EAAE,UAAU,IAAI,KAAK,EAAE,MAAM,sBAAsB,CAAA;AAE1D,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAIvB,MAAM,KA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,EAAE,CAAC;gBACtD,MAAM,KAAK,GAAG,QAAQ,CAAC,KAAK,CAAC,CAAC,CAAC,CAAA;gBAC/B,IAAI,KAAK,CAAC,MAAM,KAAK,UAAU;oBAAE,MAAM,KAAK,CAAC,MAAM,CAAA;gBACnD,IAAI,CAAC,KAAK,CAAC,KAAK;oBAAE,MAAM,cAAc,CAAC,gBAAgB,EAAE,6CAA6C,CAAC,CAAA;YACzG,CAAC;QACH,CAAC;gBAAS,CAAC;YAAC,YAAY,CAAC,KAAK,CAAC,CAAA;QAAC,CAAC;IACnC,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,UAAU,yBAAyB,CAAC,KAAuD,EAAE,MAA0B;IAC3H,OAAO,IAAI,mBAAmB,CAAC,KAAK,EAAE,MAAM,CAAC,CAAA;AAC/C,CAAC"}
package/native/README.md CHANGED
@@ -9,7 +9,7 @@ English | [中文](README.zh.md)
9
9
 
10
10
  ## Summary
11
11
 
12
- This macOS 14+ JSON-lines helper uses Swift 6, AppKit, Accessibility, CoreGraphics and ScreenCaptureKit. Windows support is in development. It adapts selected MIT-licensed Cua Driver behavior without loading an external driver. `upstream.json` records the fixed upstream version, adapted Swift files and local modules; `LICENSE.cua-driver` preserves the MIT notice.
12
+ This macOS 14+ JSON-lines helper uses Swift 6, AppKit, Accessibility, CoreGraphics and ScreenCaptureKit. It adapts selected MIT-licensed Cua Driver behavior without loading an external driver. `upstream.json` records the fixed upstream version, adapted Swift files and local modules; `LICENSE.cua-driver` preserves the MIT notice.
13
13
 
14
14
  ## Table of Contents
15
15
 
@@ -23,17 +23,29 @@ This macOS 14+ JSON-lines helper uses Swift 6, AppKit, Accessibility, CoreGraphi
23
23
  <a id="build-and-service"></a>
24
24
  ## Build and service
25
25
 
26
- Run `pnpm --dir packages/experimental/cua-macos run build:native` to publish a signed `DSH Computer Use.app` under `native/bin/darwin-<arch>`. The `current.json` receipt selects a complete content-addressed generation. Signing defaults to ad hoc; release packagers can pass `--identity` for Developer ID signing and must notarize the distribution. The Host runs the application executable with `--ensure-shared`, which launches the background service through LaunchServices. The service exits after its last connection finishes cleanup.
26
+ Run `pnpm --dir packages/experimental/cua-macos run build:native` to publish a signed `DSH Computer Use.app` under `native/bin/darwin-<arch>`. The `current.json` receipt selects a complete content-addressed generation. Signing defaults to ad hoc; release packagers can pass `--identity` for Developer ID signing and must notarize the distribution. The Host runs the application executable with `--ensure-shared`, which launches the background service through LaunchServices. The service exits after its last connection finishes cleanup. When the helper is nested inside another `.app`, its launcher copies the complete signed bundle to `~/Library/Application Support/DeepSeek Harness/Computer Use/<runtime-key>/` before starting it. Each immutable generation is verified against the executable hash and application signature; earlier generations remain available for running installations. This keeps both macOS permission services attributed to the helper. A failed verification stops startup; remove the named cached generation before retrying.
27
+
28
+ Source checkouts build with `--variant dev`, producing `DSH Computer Use Dev.app` with bundle identifier `com.deepseek.harness.computer-use.dev`. Development and release builds default to ad-hoc signing. Ad-hoc requirements contain the code hash, so changed binaries can require new grants.
29
+
30
+ The source provider’s `sourceSigning: { identity, keychain }` selects an existing certificate and its absolute keychain path. The build CLI accepts `--identity <certificate name or SHA-1 fingerprint>` and `--keychain <absolute path>`; release packaging may also omit `--keychain` to use the user search list. Builds do not create, unlock or remove identities; signing fails when the selected certificate is unavailable.
31
+
32
+ The repository’s [developer signing skill](../../../../.agents/skills/dsh-cua-macos-signing/SKILL.md) owns the Agent workflow: generate an isolated identity under `~/.cua-macos-keys/`, write its selection into DSH home, and unlock or remove it when requested. Developers maintain the private key and password separately; deleting DSH home does not delete them. Other processes of the same user can read the stored password and sign with that identity.
33
+
34
+ Builds using the same certificate share a designated requirement containing the bundle identifier and certificate. The first permission grant remains manual in System Settings; equal requirements do not replace actual permission checks after rebuilds and across worktrees.
35
+
36
+ Certificate signatures include a signing time. Development builds record the generation produced by each unsigned bundle and certificate fingerprint under `sources/` and reuse it for unchanged content. Ad-hoc builds use a separate record. Explicit certificate names are re-signed because renewal can change the certificate behind a name.
27
37
 
28
38
  Generations in `native/.build/prepared/<arch>` and `native/bin/darwin-<arch>` are retained without automatic garbage collection. Use a fresh `--output-directory` for release staging, or clean the packaging output before building while no client uses it, so old generations do not enter the tarball. Secure signing timestamps can create distinct generations for identical sources.
29
39
 
30
- The manual **Package CUA helper · macOS** [workflow](../../../../.github/workflows/cua-helper-package.yml) builds both architectures on `dsh-mac-package-trial`. Select a trusted `source_ref` and machine `preset`; credentials use the existing [macOS packaging configuration](../../../../apps/desktop/packaging/README.md#macos-actions). Packaging does not require a macOS desktop login or Rosetta. `pnpm exec tsx scripts/cua-helper/package.ts --out <new-directory>` runs the same preparation from the repository root. It signs, notarizes and staples each complete application before selecting its final content digest, then verifies architectures, signatures, tickets, Gatekeeper and file integrity from the extracted `cua-helper.tgz`. Packaging does not launch the helper. Run `python3 scripts/cua-helper/smoke.py <helper-executable>` separately in a logged-in desktop session to check capabilities, helper identity and cleanup; x64 execution on Apple Silicon requires Rosetta. The smoke does not request permissions or inspect applications. Failed or timed-out commands and unreadable startup replies report captured stdout and stderr; invalid encoding is replaced only in diagnostic text, while protocol parsing remains strict. A successful package build does not certify runtime behavior.
40
+ The manual **Package CUA helper · macOS** [workflow](../../../../.github/workflows/cua-helper-package.yml) builds both architectures on `dsh-mac-package-trial`. For manual runs, choose a trusted branch or tag with **Use workflow from** and select the machine `preset`. Checkout uses the commit recorded for that Actions run; publication calls use the caller run's commit. Manual runs always build new artifacts. Publication reuse queries the GitHub API with Node's built-in `fetch` and the workflow's `GH_TOKEN`. Signing credentials use the existing [macOS packaging configuration](../../../../apps/desktop/packaging/README.md#macos-actions). Packaging does not require a macOS desktop login or Rosetta. `node --import tsx/esm scripts/cua-helper/package.ts --out <new-directory>` runs the same preparation from the repository root. It signs, notarizes and staples each complete application before selecting its final content digest, then verifies architectures, signatures, tickets, Gatekeeper and file integrity from the extracted `cua-helper.tgz`. Packaging does not launch the helper. Run `python3 scripts/cua-helper/smoke.py <helper-executable>` separately in a logged-in desktop session to check capabilities, helper identity and cleanup; x64 execution on Apple Silicon requires Rosetta. The smoke does not request permissions or inspect applications. Failed or timed-out commands and unreadable startup replies report captured stdout and stderr; invalid encoding is replaced only in diagnostic text, while protocol parsing remains strict. A successful package build does not certify runtime behavior. Helper packaging retains its own [diagnostic record](../../../../apps/desktop/packaging/README.md#macos-release-signing), including failures before desktop installer startup.
31
41
 
32
- The workflow retains `cua-helper.tgz` and `cua-helper.json`, which binds the product version, source commit, Team ID and both application digests. [Release publish](../../../../.github/workflows/release-publish.yml) consumes this artifact before packing the provider for npm; ordinary PR release rehearsals have no signing credentials. Staging rejects a source/version mismatch, incomplete architectures, stale generations, links, changed bytes and missing executable permissions. npm publication rechecks the exact provider tarball before any registry write. A re-signed release has different bytes; preserve the retained artifact when retrying a partially published version.
42
+ The workflow retains `cua-helper.tgz` and `cua-helper.json`. The manifest records the original build's product version, commit and Team ID, both application digests, the source digest and the build key. [Release publish](../../../../.github/workflows/release-publish.yml) always calls this workflow, then downloads its selected run ID and artifact ID before packing the provider for npm. Staging verifies the current helper source digest and selected build key, both architectures, application generations, file bytes and executable permissions. npm publication rechecks the exact provider tarball before any registry write. Reuse preserves the original manifest and signed bytes across unrelated commits or product versions. Ordinary PR release rehearsals have no signing credentials.
33
43
 
34
- In **Release publish (dsh)**, leave `cua_run_id` and `cua_run_attempt` empty to build a new helper. To reuse an existing artifact, set `cua_run_id` to a run of **Package CUA helper · macOS** or **Release publish (dsh)** in this repository. `cua_run_attempt` selects an exact attempt; empty selects the latest attempt once. The selected attempt must have completed with a successful CUA packaging job and an unexpired artifact; a later npm publication failure does not invalidate that job. Failed packaging, missing or expired artifacts fail without choosing an older attempt. The hosted pack job downloads the selected artifact by ID, then applies the same source commit, product version, architecture and file-integrity checks as a fresh build. This does not support reuse across commits or product versions and does not contact the Mac runner. Artifacts are retained for 14 days.
44
+ **Release publish (dsh)** accepts an optional `cua_run_id`: enter the numeric run ID after `/actions/runs/` in the producer's GitHub URL, not its job ID. The publisher enables `reuse` and passes this selection through the helper's `workflow_call` inputs; neither reuse input appears on the manual helper form. Leave `cua_run_id` empty for automatic discovery, which searches completed runs of these two workflows created within the last 14 days for an unexpired matching artifact. Selection runs on the Mac before pnpm setup or dependency installation. A match skips installation, compilation, signing and notarization; an automatic miss rebuilds. An explicit run pins its latest attempt and selects its last executed helper job across the run history. A pack/publish-only rerun keeps the original helper artifact eligible; a newer failed helper execution blocks reuse of earlier successes. Missing or expired artifacts and mismatched inputs fail without choosing another run. A later npm failure does not invalidate a successful helper job. GitHub API failures stop selection. The summary links the actual producer; a run that only reuses an artifact does not upload another copy, so use its linked producer run for manual selection. Artifacts are retained for 14 days. Expiry or deletion after selection stops the download; it does not silently select or build different bytes. Follow the retry instructions below.
35
45
 
36
- If npm publication fails after uploading some packages, rerun only the **Publish to npm** job while its `dsh-npm-tarballs` artifact is retained (7 days). It reuses the exact tarballs without rebuilding or signing; already published identical bytes are skipped. Do not rerun all jobs for that retry. If a new dispatch must repack the same commit and version, copy the original `cua_run_id` and `cua_run_attempt` from the pack job summary so the signed helper bytes stay unchanged. Matching commit and version alone do not make a newly signed helper byte-identical. If original artifacts are unavailable or any rebuilt package differs, stop: an existing npm version cannot be replaced with different content.
46
+ The [source digest](../../../../scripts/cua-helper/build-inputs.ts) covers tracked helper sources, resources, CUA/Desktop packaging scripts, both workflows, package and compiler configuration, locked dependencies, pnpm settings and patches. Tracked `node_modules` entries are also compared. Package manifest version fields are excluded; other manifest fields are retained. The build key additionally includes the preset, Node/Swift/Clang/Python versions, macOS SDK build, signing identity, Team ID and certificate-container digest; passwords are excluded. Selection independently compares the producer run's GitHub `head_sha` tree and package blobs with the current checkout, including paths, bytes and executable modes; artifact-supplied hashes cannot establish source equality. Helper dependency installation disables lifecycle scripts and pnpmfile hooks. Missing inputs or unreadable GitHub evidence fail. Artifacts without matching records require a new build. Selection still requires a Mac runner and checkout; the consuming pack job validates the downloaded application bytes.
47
+
48
+ If npm publication fails after uploading some packages, rerun only **Publish to npm** while its `dsh-npm-tarballs` artifact is retained (7 days). It uploads the original tarballs and skips already published identical bytes. Do not rerun all jobs for this retry. For a new dispatch that must repack the same commit and version, use the original producer `cua_run_id` from the pack summary. If original artifacts are unavailable or any rebuilt package differs, stop: an existing npm version cannot be replaced with different content.
37
49
 
38
50
  Startup errors retain their code and message through an owner-only, per-attempt failure file and the launcher’s JSON error frame. Launch-lock and readiness waits share one deadline; operating-system launch time consumes that budget. Readiness must name the newly launched PID. A failed new instance is force-terminated and awaited before the launcher reports failure; this cleanup has a separate bound equal to the startup timeout. Existing shared services are not terminated by a failed attaching launcher.
39
51
 
@@ -53,23 +65,25 @@ Operation frames remain `{ "id": "opaque request id", "method": "method name", "
53
65
 
54
66
  Screenshot diagnostics use `type: "diagnostic"` frames on the originating connection. Records contain requestId, stage, elapsedMs since receipt and optional errorCode, without window titles, AX text or image bytes. The stdin/stdout proxy forwards them to stderr with `[cua-screenshot]`; operation replies remain on stdout. The Host retains a bounded diagnostic buffer and includes it in screenshot failures.
55
67
 
56
- Successful `activate` and `performSecondaryAction` AXRaise results include `foreground` alongside `{dispatched: true, verified: false}`. It records `requestId`, `operation`, `targetPid`, nullable `targetWindowId`, `activationRequested`, `raiseRequested`, and immediate `before`/`after` observations. `frontPid` comes from WindowServer; `focusedWindowId` is the target app's AX-focused window; `frontWindowId` and `frontWindowPid` identify the first visible normal window. Unknown values are null. Observations are sequential, not atomic or proof of causality. Tool-owned requests use the logged tool call ID. Failed operations retain the existing error response and may have partial effects.
68
+ Successful `activate` returns `dispatched` and `foregroundChanged`. A known change of front process or window yields true, confirmed equality of both yields false, and incomplete evidence yields null. The raw `foreground` record includes the request ID, target PID, whether activation was requested, and the sampled processes and windows before and after the request. Other desktop activity can occur between samples.
57
69
 
58
70
  | Method | Result |
59
71
  | --- | --- |
60
- | `getCapabilities` | `{platform: "macos", permissions: {accessibility, screenRecording}, sessionLocked, methods, coordinateSpace: "window-points", browser: false}`. Permission values are boolean preflight observations; no system prompt opens. |
72
+ | `getCapabilities` | `{permissions: {accessibility, screenRecording}, sessionLocked}`. Permission values are boolean preflight observations; no system prompt opens. The TypeScript provider merges its static startup fields (`platform`, `methods`, `appLevelAccessibility`, `keyboard`, `browser`, `coordinateSpace`) before exposing the result. |
61
73
  | `listApps` | Array of `{pid, name, bundleId}` for running regular applications. |
62
74
  | `findApps` | Installed matches `{id, displayName, path, isRunning, pid?}` from standard application directories or an absolute application path; discovery never launches them. |
63
- | `getApp` | `{appHandle, pid, name, bundleId, authorization}` selected by exact name, bundle ID, decimal PID or application path. A stopped selection has `pid: null` and waits for Host consent. Ambiguous names fail. |
75
+ | `getApp` | Running selection returns `{appHandle, pid, name, bundleId?, running: true, authorization}`. A stopped selection returns `{appHandle, name, bundleId?, running: false, authorization}` with no `pid`, and waits for Host consent. Ambiguous names fail. |
64
76
  | `launchApp` | Host-only continuation after consent; starts the selected application without requesting activation, waits for launch completion and binds the handle to its verified process identity. |
65
- | `listWindows` | Owned normal windows with `{windowId, pid, appName, title, bounds, isOnScreen, onCurrentSpace}`. Space membership can be null. |
66
- | `getState` | `{appHandle, pid, windowId, focusedWindowId, snapshotId, tree, elements, windows, truncated}`. `windowId` is null for an app-wide observation. Elements include index, role, title, value, description, identifier, bounds, actions, and enabled state. Element bounds are null or [x, y, width, height] in screen points; window input uses local points. These structured element diagnostics are retained by native checks and omitted by the model tool projection. Unavailable optional descriptive properties are null, and an unavailable action list is empty; permission, communication and window-discovery failures still reject the observation. |
67
- | `hover`, `click`, `setValue`, `selectText`, `typeText`, `paste`, `pressKey`, `scroll`, `drag` | `{dispatched: true, verified: false}` records native dispatch. Read fresh state to verify the intended application change. |
77
+ | `listWindows` | Owned WindowServer records: `{windowId, appName, title, bounds, isOnScreen, onCurrentSpace, cacheOnly?}`. Space membership can be null. Only auxiliary windows that are offscreen, have zero area or are known to be on another Space carry `cacheOnly: true`. The Host observes their size but omits them from discovery. A scoped read can return its explicitly selected window; the private field never enters tool results. |
78
+ | `getState` | `{appHandle, windowId, focusedWindowId, snapshotId, tree, elements, windows, truncated}`. `windowId` is null for an app-wide observation. Elements include the opaque string `elementId`, role, title, value, description, identifier, bounds, actions, and enabled state. Element bounds are null or [x, y, width, height] in screen points; window input uses local points. These structured element diagnostics are retained by native checks and omitted by the model tool projection. Unavailable optional descriptive properties are null, and an unavailable action list is empty; permission, communication and window-discovery failures still reject the observation. |
79
+ | `listActions` | Provider-defined action names for one element as a string array; an element may advertise none. |
80
+ | `show` | `{dispatched: boolean, windowId, foregroundChanged}` records restoration dispatch. `windowId` is null when no window was selected; `foregroundChanged` is null when the sampled observation was unavailable. |
81
+ | `invoke`, `performAction`, `mouseMove`, `click`, `setValue`, `selectText`, `typeText`, `paste`, `pressKey`, `sendKeyEvent`, `scroll`, `drag` | `{dispatched: boolean}` records native dispatch; `invoke` reports false when no applicable default action exists. `mouseMove` also reports `hoverRoute` and `systemPointerMoved`. Read fresh state to verify the intended application change. |
68
82
  | `screenshot` | `{mimeType: "image/png", data, pixelWidth, pixelHeight, bounds, coordinateSpace: "window-points", windowId}`. PNG pixel dimensions can differ from window point dimensions on Retina displays. |
69
83
 
70
84
  Every app-targeted operation requires `appHandle` from `getApp` in the same helper. The helper pins the PID and kernel process start time, and invalidates the handle and all of its snapshots after process exit or PID reuse. Calling `getApp` can acquire the replacement process without reactivating old handles. A random per-helper namespace prevents handles from a terminated helper matching those of its replacement. Repeated acquisition of the same live process shares its handle. A post-launch inspection failure invalidates the pending handle and preserves the original error. It does not terminate a process already started; launchApp cannot reuse the failed handle.
71
85
 
72
- Stable error codes are `INVALID_REQUEST` (malformed envelope), `INVALID_ARGUMENT` (invalid parameters), `UNSUPPORTED` (unknown operation), `APP_UNAVAILABLE`, `APP_PATH_UNAVAILABLE`, `PROCESS_INSPECTION_FAILED`, `AMBIGUOUS_APP`, `STALE_APP`, `STALE_SNAPSHOT`, `WINDOW_UNAVAILABLE`, `WINDOW_CHANGED`, `PERMISSION_DENIED`, `FOREGROUND_REQUIRED` (hover target is not the unobscured foreground window), `PANEL_NOT_READY` (system panel recipient unavailable before input), and `NATIVE_ERROR` (remaining operating-system failures). An error never promises that a partially dispatched input was rolled back. The host must not retry input automatically.
86
+ Stable error codes are `INVALID_REQUEST` (malformed envelope), `INVALID_ARGUMENT` (invalid parameters), `UNSUPPORTED` (unknown operation), `APP_UNAVAILABLE`, `APP_PATH_UNAVAILABLE`, `PROCESS_INSPECTION_FAILED`, `AMBIGUOUS_APP`, `STALE_APP`, `STALE_SNAPSHOT`, `WINDOW_UNAVAILABLE`, `WINDOW_CHANGED`, `PERMISSION_DENIED`, `HOVER_UNAVAILABLE`, `FOREGROUND_REQUIRED` (hover target is not the unobscured foreground window), `PANEL_NOT_READY` (system panel recipient unavailable before input), and `NATIVE_ERROR` (remaining operating-system failures). An error never promises that a partially dispatched input was rolled back. The host must not retry input automatically.
73
87
 
74
88
  Application selection returns an authorization record to the Host: a SHA-256 digest of the case-sensitive bundle identifier prefixed with `macos:bundle-id:`, display name, optional executable path, and persistable flag. All installations with that identifier share consent, including unsigned and ad-hoc-signed applications. Without a nonempty bundle identifier, both running and stopped applications use SHA-256 of `macos:executable-path:` followed by the symlink-resolved executable path and remain eligible for saved consent. A running bundle identifier remains usable when the process path query fails; the record omits executablePath. Available paths must still match the selection. Without either identity, APP_PATH_UNAVAILABLE reports the path query cause, including its errno, before any target operation. PROCESS_INSPECTION_FAILED means the process instance could not be verified; only ESRCH from process inspection is reported as a missing process. Neither failure triggers an automatic retry. Process IDs and start times validate live handles but do not enter the saved identity. The Host strips this record from model results and obtains human consent before launch, observation or input. This pipe protocol is trusted Host transport, not a sandbox against a separately authorized shell process.
75
89
 
@@ -81,33 +95,39 @@ Protocol declarations are generated from [the shared protocol](../../cua/src/pro
81
95
  <a id="observation-and-input"></a>
82
96
  ## Observation and input
83
97
 
84
- `getState` optionally scopes AX traversal to an owned window or nested sheet `windowId`. A new or failed refresh invalidates the previous snapshot for that app/window scope, while other window scopes remain usable. When an owned CG window has no matching AX surface, getState returns a new snapshot with empty tree/elements and no truncation; its coordinates and screenshots remain available. It rechecks process lifetime, window ownership, the unlocked session and Accessibility permission after traversal. Window-discovery APIDisabled and communication errors remain failures; unsupported or absent optional AX attributes can produce an empty observation. Missing or foreign-owned windows never produce an empty success. An AX element invalidated during traversal rejects the whole read with `STALE_SNAPSHOT`; no partial snapshot is published. Callers may read again after the application changes, without repeating input. Element actions require the exact snapshot ID. Native references never cross JSON. An optional snapshot ID on coordinate actions must belong to that window or an app-wide observation. Window-list refresh releases snapshots for closed windows. Native process identity, snapshot generation, and window ownership checks do not lock the desktop against simultaneous user or application changes.
98
+ `getState` optionally scopes AX traversal to an owned window or nested sheet `windowId`. A new or failed refresh invalidates the previous snapshot for that app/window scope, while other window scopes remain usable. When an owned CG window has no matching AX surface, getState returns a new snapshot with empty tree/elements and no truncation; its coordinates and screenshots remain available. It rechecks process lifetime, window ownership, the unlocked session and Accessibility permission after traversal. Window-discovery APIDisabled and communication errors remain failures; unsupported or absent optional AX attributes can produce an empty observation. Missing or foreign-owned windows never produce an empty success. An AX element invalidated during traversal rejects the whole read with `STALE_SNAPSHOT`; no partial snapshot is published. Callers may read again after the application changes, without repeating input. Raw element targets require `appHandle`, `snapshotId` and an opaque string `elementId`. For `click` and `mouseMove`, the optional `windowId` must match both the snapshot scope (unless app-wide) and the element’s enclosing window or sheet. A mismatch returns `STALE_SNAPSHOT` before dispatch. Coordinate targets use `windowId`, `x` and `y` and may include a snapshot from that window or the app. Mixing an element ID with coordinates returns `INVALID_ARGUMENT`. The Host converts relative coordinates before dispatch, so the native JSONL protocol rejects the `relative` field. Native references never cross JSON. Window-list refresh releases snapshots for closed windows. Native process identity, snapshot generation, and window ownership checks do not lock the desktop against simultaneous user or application changes.
99
+
100
+ Hiding a window does not itself expire its AX snapshot. An inventory refresh can retain the previous screenshot mapping only while the same window ID remains present at the same observed size. An observed size change requires a new screenshot for pixel input; a closed window cannot be targeted. Omission from discovery does not block input to a known ID: ownership, geometry and input checks still apply, and dispatch does not confirm receipt.
85
101
 
86
- Element clicks without holdMs prefer advertised AX actions and otherwise use pointer delivery. Coordinate click, scroll and drag validate window ownership and bounds, then use background PID/window-directed primitives. Each event uses SkyLight when available, otherwise the public PID-targeted API. A posted event is never repeated through the other API. Coordinates are macOS points from the top-left of the entire window, including its title bar. Positive `deltaLinesY` reveals content above; negative reveals below. Positive `deltaLinesX` reveals content left; negative reveals right. Each axis accepts an integer from -10 to 10, and at least one must be nonzero. The helper sends line-unit scroll events directly. Click and drag accept left/right/middle buttons and command/control/option/shift/fn modifiers. Only left clicks support double-click. Modified element clicks use pointer delivery. Drag uses one button press/move/release in one window; callers explicitly supply durationMs (1..5000) and steps (1..240). The movement delay budget is divided with fractional precision across the segments; fixed press/release settling and scheduler latency are additional. No implicit fallback sends global desktop input.
102
+ Clicks send mouse-down and mouse-up events at the element center or the supplied coordinates. Use `invoke` for the default AX action or `performAction` for a named action. Click, scroll and drag validate window ownership and bounds, then use background PID/window-directed primitives. Each event uses SkyLight when available, otherwise the public PID-targeted API. A posted event is never repeated through the other API. Coordinates are macOS points from the top-left of the entire window, including its title bar. Positive `deltaLinesY` reveals content above; negative reveals below. Positive `deltaLinesX` reveals content left; negative reveals right. Each axis accepts an integer from -10 to 10, and at least one must be nonzero. The helper sends line-unit scroll events directly. Click and drag accept left/right/middle buttons and command/control/option/shift/fn modifiers. Only left clicks support double-click. Drag uses one button press/move/release in one window; callers explicitly supply durationMs (1..5000) and steps (1..240). The movement delay budget is divided with fractional precision across the segments; fixed press/release settling and scheduler latency are additional. No implicit fallback sends global desktop input.
87
103
 
88
- `click.holdMs` is an optional nonnegative integer in milliseconds per press; zero adds no hold delay. Each connection supplies `maxClickHoldMs` to bound explicit holds. The diagnostic helper option `--max-click-hold-ms` defaults to 5000. It bypasses AX actions and uses the element center or supplied coordinates. Omission retains ordinary click timing. The complete gesture holds the request scheduler slot; cancellation, timeout and disconnect interrupt the hold and post the pending mouse-up before releasing that slot. Received events remain effective, and forced process termination cannot guarantee cleanup.
104
+ `click.holdMs` is an optional nonnegative integer in milliseconds per press; zero adds no hold delay. Each connection supplies `maxClickHoldMs` to bound explicit holds. The diagnostic helper option `--max-click-hold-ms` defaults to 5000. Omission retains ordinary click timing. The complete gesture holds the request scheduler slot; cancellation, timeout and disconnect interrupt the hold and post the pending mouse-up before releasing that slot. Received events remain effective, and forced process termination cannot guarantee cleanup.
89
105
 
90
106
  Capture and pointer delivery read CG bounds before and after an exact-window AX frame query. Movement during the query returns WINDOW_CHANGED. Valid AX/CG frames must have equal outward-rounded integral point rectangles; a known mismatch returns WINDOW_CHANGED before mouse movement, priming or button delivery. The helper preserves both coordinate sources rather than substituting AX geometry for CG geometry. Missing or unusable AX geometry remains unknown, while AX communication, permission and invalid-element errors propagate. Capture without Accessibility permission retains its CG/SCK checks. Advertised AX actions bypass this pointer preflight; an AX action error does not trigger pointer input. These reads do not lock the window against later movement, and no geometry check activates or raises it.
91
107
 
92
- `typeText` and `pressKey` target the selected process's current focused control, not an exact window. Key chords send PID-targeted modifier transitions before the base key and release modifiers in reverse order; these events do not use the global HID queue. Background pointer actions may change that keyboard focus. Keypad names such as KP_0 and KP_Enter preserve their physical key codes. Text injection sends Unicode characters individually and does not use the clipboard. LF, CR and CRLF send one Return; tabs send Tab. Applications apply their normal editing behavior, including indentation and focus navigation. Each down/up event is followed by the configured text interval; dispatch completion does not confirm that the receiving application consumed every event. Cancellation can interrupt text or a gesture after partial input; it cannot undo received events. Very long text can exceed the host's operation deadline. Validate observed application state before deciding how to continue.
108
+ `typeText` and `pressKey` target the selected process's current focused control, not an exact window. `pressKey` presses the listed modifiers followed by one key, then releases all pressed keys in reverse order, including on cancellation. Keyboard events go directly to the target PID and bypass the global HID queue. Key names are platform-defined; keypad names such as `KP_0` and `KP_Enter` preserve their physical key codes. Background pointer actions may change that keyboard focus. Text injection sends Unicode characters individually and does not use the clipboard. LF, CR and CRLF send one Return; tabs send Tab. Applications apply their normal editing behavior, including indentation and focus navigation. Each `typeText` down/up event is followed by the configured text interval; `pressKey` keeps its own press and release timing, and dispatch completion does not confirm that the receiving application consumed every event. Cancellation can interrupt text or a gesture after partial input; it cannot undo received events. Very long text can exceed the host's operation deadline. Validate observed application state before deciding how to continue.
109
+
110
+ The Host associates directional key events with one `run_code` execution. On down, the helper retains the selected application, recipient PID and process start time, physical key code, and matching up event. A repeated down from the owner posts one key-down with `keyboardEventAutorepeat` set and reuses the existing record. The event is posted to the recipient PID. An AppKit view can receive the initial down and final up while filtering the marked repeat. Repeats, explicit up and cleanup verify the original process identity. A conflicting down or up reports the key and whether another session or another run holds it. On return, error, or user pause, the Host waits for any in-flight native request and asks the helper to release only that execution’s remaining keys. Disconnect cleanup also releases keys owned by the closed connection.
93
111
 
94
- `DSH Computer Use.app` needs macOS Accessibility permission for AX state and input, and Screen Recording permission for screenshots. Capability preflight and permission errors do not grant permissions. Capture refuses a window that moves or resizes while the image is being read. Unassociated system panels and accessory-only applications are not selectable.
112
+ The selected helper application needs macOS Accessibility permission for AX state and input, and Screen Recording permission for screenshots. Capability preflight and permission errors do not grant permissions. Capture refuses a window that moves or resizes while the image is being read. Unassociated system panels and accessory-only applications are not selectable.
95
113
 
96
114
  Host-only permission controls are `permissionStatus {}`, `requestPermission` and `openPermissionSettings {permission}`, where permission is `accessibility` or `screenRecording`. Requests carry localized `instruction`, `backLabel`, `finderLabel`, `unavailableMessage`, `settingsMessage`, and an integer `pollIntervalMs` of 100–2147483647. The native guide substitutes its application name for `{application}`. Status reports permission observations, process diagnostics, and `launchApplication` metadata. These operations remain absent from the model tool and `getCapabilities.methods`. The helper dynamically resolves `responsibility_get_pid_responsible_for_pid` with the signature used by [Chromium](https://chromium.googlesource.com/chromium/src/+/refs/tags/134.0.6998.28/base/process/process_info_mac.mm), capturing the responsible bundle before readiness and falling back to its own bundle when unavailable. Parent paths do not determine authorization ownership.
97
115
 
98
116
  Observation reads each non-layout node’s descriptive properties and children through `AXUIElementCopyMultipleAttributeValues`. Per-attribute errors retain the individual-read rules; unsupported batch APIs use individual reads. Values are retained only during that observation, and input reads live attributes. Application state can change between nodes; a batch does not make the whole tree atomic.
99
117
 
100
- System file-panel keyboard routing resolves the remote recipient through the selected app’s focused AX sheet. Only Apple’s Open and Save Panel Service is accepted, and its focused ancestry must still contain the identified remote window. Element pointer fallbacks resolve an app-owned window or sheet through AX parents when AXWindow is unavailable. Ordinary clicks retain AX action priority over pointer input; visual click markers need no system-cursor movement.
118
+ System file-panel keyboard routing resolves the remote recipient through the selected app’s focused AX sheet. Only Apple’s Open and Save Panel Service is accepted, and its focused ancestry must still contain the identified remote window. For element and coordinate clicks on an Open or Save panel, the recipient is the verified panel-service window. Its frame must match the selected host window.
101
119
 
102
- Request modifier arrays accept command/control/option/shift/fn. The object API normalizes key-chord aliases before dispatch.
120
+ Keyboard modifier names are plain strings. The shared object API passes the names through unchanged; the macOS helper accepts `command`/`cmd`, `shift`, `option`/`alt`, `control`/`ctrl`, and `fn`, and rejects an unknown name with `INVALID_ARGUMENT`. It does not parse chord strings.
103
121
 
104
- `selectText` requires a fresh element snapshot and writable AXSelectedTextRange. It matches one literal occurrence, narrowed by immediately adjacent prefix/suffix, and selects text or places the cursor before/after it. Matching and reported ranges use UTF-16 offsets. Ambiguous or missing text fails; the helper rechecks the value and selected range without rewriting content. AX text includes available writable, disabled, selected and selection-range information; AXAccess owns indices and native references while AXTextFormatter renders the observed values.
122
+ Tree observation and action discovery treat a generic AX failure reading one element’s action names as missing metadata. Discovery skips attributes whose writability cannot be determined. `invoke` requires a successful or unsupported-action query before reporting that no default action exists. `setValue` attempts a write only when the element confirms that `AXValue` is writable.
123
+
124
+ `selectText` requires a fresh element snapshot and writable AXSelectedTextRange. It matches one literal occurrence, narrowed by immediately adjacent prefix/suffix, and selects text or places the cursor before/after it. Matching and reported ranges use UTF-16 offsets. Ambiguous or missing text fails; the helper rechecks the value and selected range without rewriting content. AX text includes available writable, disabled, selected and selection-range information; AXAccess owns element IDs and native references while AXTextFormatter renders the observed values.
105
125
 
106
126
  `paste` publishes one plain-text or HTML clipboard format, dispatches the application's enabled standard Paste menu command, and waits for a clipboard data request. It then restores the preserved formats only while its ownership marker and change count still match. The Host serializes its pastes across helpers with a file lock. maxClipboardBytes bounds both input and preserved contents; unsupported menus and oversized data fail before dispatch. A later copy is preserved. Cancellation restores owned clipboard data when possible; forced termination cannot guarantee restoration, and a data request does not prove the target completed editing. After dispatch, `pasteReadTimeoutMs` bounds waiting for clipboard consumption. Expiry returns `PASTE_NOT_CONSUMED`, closes the promised data provider, and restores the original clipboard only while still owned. The failure does not prove the app will never process its queued Paste command; inspect the target before deciding whether to retry.
107
127
 
108
- `hover` accepts an observed element index or a window-local point and never presses a mouse button. Disabled controls may be hovered. No request completion, AX read or screenshot restores the previous point; subsequent hover calls can enter revealed content. Click sends its button events at the target without an off-window priming click. Individual requests are serialized, but no application is reserved between calls. Other input or application changes can interrupt the interaction.
128
+ `mouseMove` reveals or restores alternate UI through an enabled element or ancestor advertising both `AXShowAlternateUI` and `AXShowDefaultUI`. Without an AX route it returns `HOVER_UNAVAILABLE` before sending input. The Host resolves the requested route against session approval or the configured exemption before sending `useSystemPointer` to the helper.
109
129
 
110
- `hover` first uses a same-window element or ancestor advertising both `AXShowAlternateUI` and `AXShowDefaultUI`. Revealed descendants retain the parent UI; leaving restores it once. An AX action failure propagates without trying another input route. Without an applicable AX route, hover moves the visible system cursor through the system input queue after checking the foreground PID and AppKit mouse hit testing at the point. Input-transparent windows and transparent regions do not block the target. A failed check returns `FOREGROUND_REQUIRED` without moving the cursor. The result identifies `hoverRoute` as `accessibility` or `system-pointer` and reports `systemPointerMoved`. Hover does not activate, raise or restore focus. Other input or window changes can race the check and dispatch.
130
+ The opt-in system pointer route returns `FOREGROUND_REQUIRED` if the target is obscured or belongs to a background app. The result reports the route and whether the visible cursor moved in `hoverRoute` and `systemPointerMoved`. It never presses a button or restores the cursor after a read. Later input may interrupt the hover. Clicks send their button events at the target without an off-window priming click.
111
131
 
112
132
 
113
133
  -----
@@ -115,23 +135,25 @@ Request modifier arrays accept command/control/option/shift/fn. The object API n
115
135
  <a id="verification"></a>
116
136
  ## Verification
117
137
 
118
- Desktop checks require grants for `DSH Computer Use.app`; source rebuilds with ad-hoc signatures can require authorization again. `--helper` names the executable inside that application. Bare executables are supported only as old-version comparison inputs, not as current helper overrides.
138
+ Desktop checks require grants for the selected helper: release builds declare `DSH Computer Use`, and development builds declare `DSH Computer Use Dev`. Follow the system prompt; ad-hoc rebuilds can require authorization again. `--helper` names the executable inside that application. Bare executables are supported only as old-version comparison inputs, not as current helper overrides.
119
139
 
120
140
  Run `python3 packages/experimental/cua-macos/native/tests/startup_e2e.py` to check immediate exit, typed startup errors, stale readiness rejection and termination of stalled new instances through LaunchServices. It uses owned applications and requests no system permissions. Publication unit tests mock signing; `build:native` invokes real `codesign --verify --strict`, and `launcher_identity_e2e.py` verifies LaunchServices attribution.
121
141
 
122
- Use `python3 packages/experimental/cua-macos/native/tests/test_swift.py` for offline unit checks with the selected Apple toolchain’s Swift Testing framework/runtime paths and `python3 packages/experimental/cua-macos/native/tests/protocol_e2e.py` for JSONL admission, ordered replies and EOF shutdown without desktop operations. Application and protocol e2e checks accept `--helper` to select a separately built comparison binary. `python3 packages/experimental/cua-macos/native/tests/test_build_app.py` covers application publication, signing failure and corrupted-generation rejection.
142
+ Use `python3 packages/experimental/cua-macos/native/tests/test_swift.py` for offline unit checks with the selected Apple toolchain’s Swift Testing framework/runtime paths and `python3 packages/experimental/cua-macos/native/tests/protocol_e2e.py` for JSONL admission, ordered replies and EOF shutdown without desktop operations. Application and protocol e2e checks accept `--helper` to select a separately built comparison binary. `python3 packages/experimental/cua-macos/native/tests/test_build_app.py` covers application publication, the development variant, signed-generation reuse, signing failure and corrupted-generation rejection. Developer signing unit tests run through `scripts/cua-macos-signing.spec.ts`; the [developer signing skill](../../../../.agents/skills/dsh-cua-macos-signing/SKILL.md) owns the real-signing verification command.
123
143
 
124
- Run `python3 packages/experimental/cua-macos/native/tests/shared_helper_e2e.py --helper /absolute/helper` to verify concurrent startup, a shared service PID, independent handles, same-application handoff, request-local screenshot deadlines, connection cleanup and signal shutdown with an owned AppKit fixture. Existing Accessibility and Screen Recording grants for `DSH Computer Use.app` are required. `--without-desktop` limits the check to protocol and process lifetime.
144
+ Run `python3 packages/experimental/cua-macos/native/tests/shared_helper_e2e.py --helper /absolute/helper` to verify concurrent startup, a shared service PID, independent handles, same-application handoff, request-local screenshot deadlines, connection cleanup and signal shutdown with an owned AppKit fixture. Existing Accessibility and Screen Recording grants for the selected release or development helper are required. `--without-desktop` limits the check to protocol and process lifetime.
125
145
 
126
146
  Run `python3 packages/experimental/cua-macos/native/tests/application_consent_e2e.py --helper /absolute/helper` in an unlocked macOS GUI session with the Apple Swift compiler available. It owns and cleans up its AppKit bundles and standalone GUI processes, checks metadata replacement, cold and direct launches, shared bundle IDs, persistent path identity across standalone restarts, and selection after a running executable is deleted. The default identity check requires no Accessibility or Screen Recording grants. Add `--desktop` to read intact fixtures’ controls, verify AX button presses in their state files, capture their windows, and record observation results after executable deletion; this requires existing grants for both permissions.
127
147
 
128
- Run `python3 packages/experimental/cua-macos/native/tests/launcher_identity_e2e.py` in a GUI login session to verify that the helper owns its permission identity even when started through two nested GUI launchers. Concurrent connections report the same helper name and icon. The check owns its applications, cleans up LaunchServices registrations, and requests no Accessibility or Screen Recording access.
148
+ Run `python3 packages/experimental/cua-macos/native/tests/launcher_identity_e2e.py` in a GUI login session to verify that the helper owns its permission identity even when started through two nested GUI launchers. Concurrent connections report the same helper name and icon. The check owns its applications, cleans up LaunchServices registrations, and requests no Accessibility or Screen Recording access. Run `python3 packages/experimental/cua-macos/native/tests/nested_application_e2e.py` to verify signature-preserving extraction outside an enclosing `.app`, concurrent publication, and service teardown with uniquely signed fixtures.
149
+
150
+ Run `python3 packages/experimental/cua-macos/native/tests/floating_windows_e2e.py --helper /absolute/path/to/helper` to check independent panel discovery, screenshots, received clicks, hiding, resizing and destruction.
129
151
 
130
- Run `python3 packages/experimental/cua-macos/native/tests/axless_e2e.py` after building and unlocking the Mac to verify an owned window whose application removes and later restores its AX roots. The check requires existing Accessibility/Screen Recording grants, rejects stale element indices, captures the AXless window, verifies a coordinate click in the fixture state file, and checks restoration. It never changes system permission settings.
152
+ Run `python3 packages/experimental/cua-macos/native/tests/axless_e2e.py` after building and unlocking the Mac to verify an owned window whose application removes and later restores its AX roots. The check requires existing Accessibility/Screen Recording grants, rejects stale element IDs, captures the AXless window, verifies a coordinate click in the fixture state file, and checks restoration. It never changes system permission settings.
131
153
 
132
154
  Run `python3 packages/experimental/cua-macos/native/tests/observation_benchmark.py --reference-helper /absolute/reference --candidate-helper /absolute/candidate --artifacts /private/evidence` to compare complete observations of the same owned AppKit window with 35 and 400 synthetic rows. Each helper receives one warmup and three alternating measured requests. All result fields must match except helper-generated app and snapshot IDs. The report keeps raw timings, byte counts, hashes and replies; it sets no CI speed threshold and makes no memory claim. Fixture startup can activate the application. Run without other desktop automation or compilation jobs.
133
155
 
134
- Use `--panels-only` to isolate the system file-panel checks. Fixture windows can join application sets so Stage Manager does not shrink them during background input. Use `--hover-only` with `e2e.py` or `electron_e2e.py` to verify hover independently of keyboard and file-panel scenarios. Add `--alternate-hover` to `e2e.py` for AX reveal, descendant entry, click and exit with sampled system-pointer stability. `--input-overlays` verifies that pass-through overlays allow hover and input-blocking overlays reject it without moving the pointer.
156
+ Use `--panels-only` to verify that a document-window request for a sheet control reports its sheet ID and that the control can be read from the selected sheet. Fixture windows can join application sets so Stage Manager does not shrink them during background input. Use `--hover-only` with `e2e.py` or `electron_e2e.py` to verify hover independently of keyboard and file-panel scenarios. Add `--alternate-hover` to `e2e.py` for AX reveal, descendant entry, click and exit with sampled system-pointer stability. `--input-overlays` verifies that pass-through overlays allow hover and input-blocking overlays reject it without moving the pointer.
135
157
 
136
158
  Run `python3 packages/experimental/cua-macos/native/tests/e2e.py` after building to exercise an isolated two-window AppKit fixture. It independently records button counts, Unicode text, actual scroll position, right-click callbacks, and drag release position. Scroll, right-button down/up, and drag down/up counters must each increase exactly once per requested gesture. The check also verifies a real NSOpenPanel sheet, path-entry keyboard routing and the selected file URL. It covers scoped snapshot replacement, screenshot dimensions, stale app cleanup and EOF shutdown. `--artifacts DIRECTORY` writes fixture-only screenshots and a private protocol transcript; the transcript contains the running-app inventory and is not a publication artifact.
137
159
 
@@ -141,7 +163,7 @@ For text pacing comparisons, use `native/tests/text_input_benchmark.py` with `--
141
163
 
142
164
  For an independently isolated Electron/Chromium check, run `python3 packages/experimental/cua-macos/native/tests/electron_e2e.py --electron /absolute/path/to/Electron.app/Contents/MacOS/Electron`. Omitting `--electron` uses an already installed desktop workspace runtime. The check never downloads Electron. Its renderer runs with Node integration disabled, context isolation and Chromium sandboxing enabled, private userData/sessionData/log directories, and a local fixture page. Renderer click/input events write independent observations through the main process; all test actions still use the native helper. AX polling waits for actual controls after Chromium accessibility activation. Native and Electron subprocess groups are owned and stopped before temporary files are removed. Optional artifacts include a fixture-only screenshot and private request transcript.
143
165
 
144
- Run `python3 packages/experimental/cua-macos/native/tests/capabilities_e2e.py --helper /absolute/helper --artifacts /private/evidence` to verify a stopped application's discovery and launch, Unicode selection, multiline plain/HTML paste, middle/modifier gestures and keypad identities through an isolated AppKit receiver. Add `--click-only` to check click holds, AX routing and cancellation/timeout release in a background fixture without keyboard or clipboard input. It requires existing Accessibility/Screen Recording grants and records the receiver's actual state separately from dispatch results.
166
+ Run `python3 packages/experimental/cua-macos/native/tests/capabilities_e2e.py --helper /absolute/helper --artifacts /private/evidence` to verify a stopped application's discovery and launch, Unicode selection, multiline plain/HTML paste, middle/modifier gestures, overlapping W and D key events, and keypad identities through an isolated AppKit receiver. Add `--keyboard-only` for a background receiver that checks a two-second W+D hold, independent D release, and W cleanup. Add `--click-only` to check click holds, AX routing and cancellation/timeout release in a background fixture without keyboard or clipboard input. It requires existing Accessibility/Screen Recording grants and records the receiver's actual state separately from dispatch results.
145
167
 
146
168
  Run `python3 packages/experimental/cua-macos/native/tests/paste_e2e.py --artifacts /private/evidence` to verify that an owned AppKit app accepts a background Paste action without reading its data, reports `PASTE_NOT_CONSUMED`, then consumes the same paste in the foreground. The test requires an unlocked Mac and Accessibility permission, activates only its own two applications, and records received actions and text independently of helper replies.
147
169