@crosshands/platform-darwin 0.1.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.
- package/LICENSE +21 -0
- package/NOTICE +5 -0
- package/assets/.gitkeep +1 -0
- package/assets/CrossHands Computer Use.app/Contents/CodeResources +0 -0
- package/assets/CrossHands Computer Use.app/Contents/Info.plist +32 -0
- package/assets/CrossHands Computer Use.app/Contents/MacOS/crosshands-computer-use-macos +0 -0
- package/assets/CrossHands Computer Use.app/Contents/_CodeSignature/CodeResources +115 -0
- package/assets/payload.json +16 -0
- package/dist/index.d.ts +40 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +621 -0
- package/dist/index.js.map +1 -0
- package/package.json +46 -0
- package/src/index.ts +751 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 CrossHands contributors
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/NOTICE
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
This package contains a CrossHands adaptation of the macOS computer-use helper
|
|
2
|
+
from stablyai/orca at commit 9c8f4c398c3f8ba267cca14e0b65c3f6f87f2aa4.
|
|
3
|
+
|
|
4
|
+
Copyright (c) 2026 Lovecast Inc. Licensed under the MIT License. The complete
|
|
5
|
+
notice is distributed with the native helper and in CrossHands third-party notices.
|
package/assets/.gitkeep
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
Binary file
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>CFBundleDevelopmentRegion</key>
|
|
6
|
+
<string>en</string>
|
|
7
|
+
<key>CFBundleDisplayName</key>
|
|
8
|
+
<string>CrossHands Computer Use</string>
|
|
9
|
+
<key>CFBundleExecutable</key>
|
|
10
|
+
<string>crosshands-computer-use-macos</string>
|
|
11
|
+
<key>CFBundleIdentifier</key>
|
|
12
|
+
<string>ai.crosshands.ComputerUse</string>
|
|
13
|
+
<key>CFBundleInfoDictionaryVersion</key>
|
|
14
|
+
<string>6.0</string>
|
|
15
|
+
<key>CFBundleName</key>
|
|
16
|
+
<string>CrossHands Computer Use</string>
|
|
17
|
+
<key>CFBundlePackageType</key>
|
|
18
|
+
<string>APPL</string>
|
|
19
|
+
<key>CFBundleShortVersionString</key>
|
|
20
|
+
<string>0.1.0</string>
|
|
21
|
+
<key>CFBundleVersion</key>
|
|
22
|
+
<string>1</string>
|
|
23
|
+
<key>LSMinimumSystemVersion</key>
|
|
24
|
+
<string>14.0</string>
|
|
25
|
+
<key>LSUIElement</key>
|
|
26
|
+
<true/>
|
|
27
|
+
<key>NSAccessibilityUsageDescription</key>
|
|
28
|
+
<string>CrossHands uses Accessibility to inspect and operate applications you direct it to control.</string>
|
|
29
|
+
<key>NSScreenCaptureUsageDescription</key>
|
|
30
|
+
<string>CrossHands captures the selected application window so coding agents can verify desktop state.</string>
|
|
31
|
+
</dict>
|
|
32
|
+
</plist>
|
|
Binary file
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
3
|
+
<plist version="1.0">
|
|
4
|
+
<dict>
|
|
5
|
+
<key>files</key>
|
|
6
|
+
<dict/>
|
|
7
|
+
<key>files2</key>
|
|
8
|
+
<dict/>
|
|
9
|
+
<key>rules</key>
|
|
10
|
+
<dict>
|
|
11
|
+
<key>^Resources/</key>
|
|
12
|
+
<true/>
|
|
13
|
+
<key>^Resources/.*\.lproj/</key>
|
|
14
|
+
<dict>
|
|
15
|
+
<key>optional</key>
|
|
16
|
+
<true/>
|
|
17
|
+
<key>weight</key>
|
|
18
|
+
<real>1000</real>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>omit</key>
|
|
23
|
+
<true/>
|
|
24
|
+
<key>weight</key>
|
|
25
|
+
<real>1100</real>
|
|
26
|
+
</dict>
|
|
27
|
+
<key>^Resources/Base\.lproj/</key>
|
|
28
|
+
<dict>
|
|
29
|
+
<key>weight</key>
|
|
30
|
+
<real>1010</real>
|
|
31
|
+
</dict>
|
|
32
|
+
<key>^version.plist$</key>
|
|
33
|
+
<true/>
|
|
34
|
+
</dict>
|
|
35
|
+
<key>rules2</key>
|
|
36
|
+
<dict>
|
|
37
|
+
<key>.*\.dSYM($|/)</key>
|
|
38
|
+
<dict>
|
|
39
|
+
<key>weight</key>
|
|
40
|
+
<real>11</real>
|
|
41
|
+
</dict>
|
|
42
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
43
|
+
<dict>
|
|
44
|
+
<key>omit</key>
|
|
45
|
+
<true/>
|
|
46
|
+
<key>weight</key>
|
|
47
|
+
<real>2000</real>
|
|
48
|
+
</dict>
|
|
49
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
50
|
+
<dict>
|
|
51
|
+
<key>nested</key>
|
|
52
|
+
<true/>
|
|
53
|
+
<key>weight</key>
|
|
54
|
+
<real>10</real>
|
|
55
|
+
</dict>
|
|
56
|
+
<key>^.*</key>
|
|
57
|
+
<true/>
|
|
58
|
+
<key>^Info\.plist$</key>
|
|
59
|
+
<dict>
|
|
60
|
+
<key>omit</key>
|
|
61
|
+
<true/>
|
|
62
|
+
<key>weight</key>
|
|
63
|
+
<real>20</real>
|
|
64
|
+
</dict>
|
|
65
|
+
<key>^PkgInfo$</key>
|
|
66
|
+
<dict>
|
|
67
|
+
<key>omit</key>
|
|
68
|
+
<true/>
|
|
69
|
+
<key>weight</key>
|
|
70
|
+
<real>20</real>
|
|
71
|
+
</dict>
|
|
72
|
+
<key>^Resources/</key>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>20</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^Resources/.*\.lproj/</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>optional</key>
|
|
80
|
+
<true/>
|
|
81
|
+
<key>weight</key>
|
|
82
|
+
<real>1000</real>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>omit</key>
|
|
87
|
+
<true/>
|
|
88
|
+
<key>weight</key>
|
|
89
|
+
<real>1100</real>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>^Resources/Base\.lproj/</key>
|
|
92
|
+
<dict>
|
|
93
|
+
<key>weight</key>
|
|
94
|
+
<real>1010</real>
|
|
95
|
+
</dict>
|
|
96
|
+
<key>^[^/]+$</key>
|
|
97
|
+
<dict>
|
|
98
|
+
<key>nested</key>
|
|
99
|
+
<true/>
|
|
100
|
+
<key>weight</key>
|
|
101
|
+
<real>10</real>
|
|
102
|
+
</dict>
|
|
103
|
+
<key>^embedded\.provisionprofile$</key>
|
|
104
|
+
<dict>
|
|
105
|
+
<key>weight</key>
|
|
106
|
+
<real>20</real>
|
|
107
|
+
</dict>
|
|
108
|
+
<key>^version\.plist$</key>
|
|
109
|
+
<dict>
|
|
110
|
+
<key>weight</key>
|
|
111
|
+
<real>20</real>
|
|
112
|
+
</dict>
|
|
113
|
+
</dict>
|
|
114
|
+
</dict>
|
|
115
|
+
</plist>
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"productVersion": "0.1.2",
|
|
3
|
+
"bundleIdentifier": "ai.crosshands.ComputerUse",
|
|
4
|
+
"source": "stablyai/orca@8adfef4ff80e7817b7c7bcd6b8ddf69289078c3c",
|
|
5
|
+
"license": "MIT",
|
|
6
|
+
"copyright": "Copyright (c) 2026 Lovecast Inc.",
|
|
7
|
+
"signing": {
|
|
8
|
+
"required": true,
|
|
9
|
+
"authority": "Developer ID Application: Kaitian Xie (4KCNG6F7X3)",
|
|
10
|
+
"teamIdentifier": "4KCNG6F7X3",
|
|
11
|
+
"notarized": true
|
|
12
|
+
},
|
|
13
|
+
"files": {
|
|
14
|
+
"crosshands-computer-use-macos": "460fb4deb24efdea895297134e7852111d47aa0be6e51cb7b7214f7dc6ad4b90"
|
|
15
|
+
}
|
|
16
|
+
}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { type ComputerOperationName, type ComputerProvider, type ProviderHandshake, type ProviderRequest, type ProviderResponse, type ReferenceBindings } from '@crosshands/contract';
|
|
2
|
+
type JsonObject = Record<string, unknown>;
|
|
3
|
+
export declare const packageVersion: "0.1.2";
|
|
4
|
+
type NativeClient = {
|
|
5
|
+
request(method: string, params?: JsonObject): Promise<unknown>;
|
|
6
|
+
close(): Promise<void>;
|
|
7
|
+
};
|
|
8
|
+
type NativeClientFactory = (graphicalSessionId: string) => Promise<NativeClient>;
|
|
9
|
+
export declare function resolveHelperPath(): string;
|
|
10
|
+
export declare function verifyDarwinPayload(helperPath?: string, manifestPath?: string, verifySignature?: boolean): Promise<void>;
|
|
11
|
+
export declare function normalizeScreenshotIssues(value: unknown): JsonObject[];
|
|
12
|
+
export declare class DarwinComputerProvider implements ComputerProvider {
|
|
13
|
+
#private;
|
|
14
|
+
private readonly graphicalSessionId;
|
|
15
|
+
private readonly clientFactory;
|
|
16
|
+
private readonly verifyPayload;
|
|
17
|
+
constructor(graphicalSessionId?: string, clientFactory?: NativeClientFactory, verifyPayload?: boolean);
|
|
18
|
+
get generation(): string;
|
|
19
|
+
start(): Promise<ProviderHandshake>;
|
|
20
|
+
dispatch(request: ProviderRequest): Promise<ProviderResponse>;
|
|
21
|
+
cancel(_requestId: string): Promise<void>;
|
|
22
|
+
close(): Promise<void>;
|
|
23
|
+
inspect(operation: ComputerOperationName, input: unknown): Promise<{
|
|
24
|
+
bindings: ReferenceBindings;
|
|
25
|
+
appIdentity: {
|
|
26
|
+
appId: string;
|
|
27
|
+
executableId: string;
|
|
28
|
+
};
|
|
29
|
+
} | null>;
|
|
30
|
+
}
|
|
31
|
+
export declare function createProvider(): ComputerProvider;
|
|
32
|
+
export declare function inspectTarget(operation: ComputerOperationName, input: unknown): Promise<{
|
|
33
|
+
bindings: ReferenceBindings;
|
|
34
|
+
appIdentity: {
|
|
35
|
+
appId: string;
|
|
36
|
+
executableId: string;
|
|
37
|
+
};
|
|
38
|
+
} | null>;
|
|
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