@deepseek-ai/dsh-experimental-cua-macos 0.2.2-alpha.2 → 0.2.2-alpha.3
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/README.i18n.yaml +6 -6
- package/README.md +14 -9
- package/README.zh.md +14 -9
- package/cua-helper.json +16 -0
- package/lib/index.js +190 -98
- package/lib/types/index.d.ts +61 -3
- package/lib/types/native-build.d.ts +12 -12
- package/lib/types/permission-guide.d.ts +23 -0
- package/native/DSHComputerUse.icns +0 -0
- package/native/Info.plist +24 -0
- package/native/LICENSE.computer-use-icon +18 -0
- package/native/README.md +24 -6
- package/native/README.zh.md +24 -6
- package/native/Sources/CuaNative/Main.swift +40 -27
- package/native/Sources/CuaNative/NativeProtocol.generated.swift +2 -2
- package/native/Sources/CuaNative/PermissionGuide.swift +404 -0
- package/native/Sources/CuaNative/Permissions.swift +79 -19
- package/native/Sources/CuaNative/RequestCoordinator.swift +10 -3
- package/native/Sources/CuaNative/SharedHelperProxy.swift +7 -7
- package/native/Sources/CuaNative/SharedHelperRuntime.swift +106 -51
- package/native/Sources/CuaNative/SharedHelperServer.swift +2 -2
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/CodeResources +0 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/Info.plist +24 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/Resources/DSHComputerUse.icns +0 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/Resources/LICENSE.computer-use-icon +18 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/Resources/LICENSE.cua-driver +21 -0
- package/native/bin/darwin-arm64/007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b/DSH Computer Use.app/Contents/_CodeSignature/CodeResources +150 -0
- package/native/bin/darwin-arm64/current.json +1 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/CodeResources +0 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/Info.plist +24 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/MacOS/dsh-cua-native +0 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/Resources/DSHComputerUse.icns +0 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/Resources/LICENSE.computer-use-icon +18 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/Resources/LICENSE.cua-driver +21 -0
- package/native/bin/darwin-x64/9f6e6dedbc05279505e36b140ddd74a7d143b31838e17ba22ad3115fc14c55b2/DSH Computer Use.app/Contents/_CodeSignature/CodeResources +150 -0
- package/native/bin/darwin-x64/current.json +1 -0
- package/native/build_app.py +85 -0
- package/native/protocol.schema.json +38 -2
- package/native/tests/swift/SharedHelperTests.swift +52 -0
- package/native/tests/swift/SystemPermissionsTests.swift +245 -0
- package/native/upstream.json +1 -0
- package/package.json +53 -46
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
// Version and executable-path locks outlive every client and release only at process exit.
|
|
2
|
+
import AppKit
|
|
2
3
|
import Foundation
|
|
3
4
|
import Darwin
|
|
4
5
|
import CryptoKit
|
|
@@ -7,9 +8,12 @@ struct SharedHelperOptions: Sendable {
|
|
|
7
8
|
let runtimeKey: String
|
|
8
9
|
let directory: String
|
|
9
10
|
let startupTimeout: Double
|
|
11
|
+
let startupID: UUID?
|
|
12
|
+
var failurePath: String? { startupID.map { "\(directory)/\(runtimeKey).\($0.uuidString).failed" } }
|
|
10
13
|
var socketPath: String { "\(directory)/\(runtimeKey).sock" }
|
|
11
14
|
var readyPath: String { "\(directory)/\(runtimeKey).ready" }
|
|
12
15
|
var versionLockPath: String { "\(directory)/\(runtimeKey).lock" }
|
|
16
|
+
var launchLockPath: String { "\(directory)/\(runtimeKey).launch.lock" }
|
|
13
17
|
|
|
14
18
|
init(arguments: [String]) throws {
|
|
15
19
|
guard let mode = arguments.first, ["--ensure-shared", "--serve"].contains(mode) else {
|
|
@@ -19,7 +23,7 @@ struct SharedHelperOptions: Sendable {
|
|
|
19
23
|
var index = 1
|
|
20
24
|
while index < arguments.count {
|
|
21
25
|
let key = arguments[index]
|
|
22
|
-
guard index + 1 < arguments.count, ["--runtime-key", "--runtime-directory", "--startup-timeout-ms"].contains(key), fields[key] == nil else {
|
|
26
|
+
guard index + 1 < arguments.count, ["--runtime-key", "--runtime-directory", "--startup-timeout-ms", "--startup-id"].contains(key), fields[key] == nil else {
|
|
23
27
|
throw RequestParameters.invalid("Invalid shared helper option \(key)")
|
|
24
28
|
}
|
|
25
29
|
fields[key] = arguments[index + 1]
|
|
@@ -32,6 +36,12 @@ struct SharedHelperOptions: Sendable {
|
|
|
32
36
|
timeout > 0, timeout <= Double(Int32.max) else {
|
|
33
37
|
throw RequestParameters.invalid("Shared helper requires SHA-256 runtime key, absolute runtime directory and positive startup timeout")
|
|
34
38
|
}
|
|
39
|
+
if let identifier = fields["--startup-id"] {
|
|
40
|
+
guard mode == "--serve", let parsed = UUID(uuidString: identifier) else {
|
|
41
|
+
throw RequestParameters.invalid("Startup identity requires a UUID in server mode")
|
|
42
|
+
}
|
|
43
|
+
startupID = parsed
|
|
44
|
+
} else { startupID = nil }
|
|
35
45
|
runtimeKey = key
|
|
36
46
|
self.directory = directory
|
|
37
47
|
startupTimeout = timeout / 1000
|
|
@@ -63,22 +73,55 @@ struct SharedHelperOptions: Sendable {
|
|
|
63
73
|
"pid": .number(Double(pid)), "instanceId": .string(instanceID)])
|
|
64
74
|
}
|
|
65
75
|
|
|
66
|
-
func
|
|
67
|
-
|
|
68
|
-
|
|
76
|
+
func startupDeadline() -> UInt64 {
|
|
77
|
+
DispatchTime.now().uptimeNanoseconds + UInt64(startupTimeout * 1_000_000_000)
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
func recordStartupFailure(_ error: Error) throws {
|
|
81
|
+
guard let failurePath else { return }
|
|
82
|
+
let failure = error as? NativeFailure ?? NativeFailure(code: "NATIVE_STARTUP", message: error.localizedDescription)
|
|
83
|
+
let data = try JSONEncoder().encode(JSONValue.object([
|
|
84
|
+
"type": .string("error"), "code": .string(failure.code), "message": .string(failure.message),
|
|
85
|
+
]))
|
|
86
|
+
try data.write(to: URL(fileURLWithPath: failurePath), options: .atomic)
|
|
87
|
+
guard chmod(failurePath, 0o600) == 0 else { throw SharedSocket.failure("Protecting helper startup failure") }
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
static func startupFailure(at path: String?) throws -> NativeFailure? {
|
|
91
|
+
guard let path else { return nil }
|
|
92
|
+
let data: Data
|
|
93
|
+
do { data = try Data(contentsOf: URL(fileURLWithPath: path)) }
|
|
94
|
+
catch let error as NSError where error.domain == NSCocoaErrorDomain && error.code == NSFileReadNoSuchFileError { return nil }
|
|
95
|
+
let value = try JSONDecoder().decode(JSONValue.self, from: data)
|
|
96
|
+
guard value["type"] == .string("error"), let code = value["code"].string, let message = value["message"].string else {
|
|
97
|
+
throw NativeFailure(code: "NATIVE_PROTOCOL", message: "Invalid helper startup failure record at \(path)")
|
|
98
|
+
}
|
|
99
|
+
return NativeFailure(code: code, message: message)
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
func existingReady(deadline: UInt64, launchedPID: Int32? = nil, failurePath: String? = nil) throws -> Data {
|
|
103
|
+
while DispatchTime.now().uptimeNanoseconds < deadline {
|
|
104
|
+
if let failure = try Self.startupFailure(at: failurePath) { throw failure }
|
|
69
105
|
if let data = try? Data(contentsOf: URL(fileURLWithPath: readyPath)),
|
|
70
106
|
let ready = try? JSONDecoder().decode(JSONValue.self, from: data),
|
|
71
107
|
ready["type"] == .string("ready"), ready["runtimeKey"] == .string(runtimeKey),
|
|
72
108
|
let number = ready["pid"].number, let pid = Int32(exactly: number), pid > 0,
|
|
109
|
+
launchedPID == nil || launchedPID == pid,
|
|
73
110
|
kill(pid, 0) == 0, SharedSocket.isOwnedSocket(socketPath) {
|
|
74
111
|
var line = data
|
|
75
112
|
if line.last != 10 { line.append(10) }
|
|
76
113
|
return line
|
|
77
114
|
}
|
|
115
|
+
if let launchedPID, kill(launchedPID, 0) != 0 && errno == ESRCH {
|
|
116
|
+
// The server publishes its failure before exit; it may have exited after the first read.
|
|
117
|
+
if let failure = try Self.startupFailure(at: failurePath) { throw failure }
|
|
118
|
+
throw NativeFailure(code: "NATIVE_STARTUP", message: "Computer Use exited before becoming ready; retry and inspect the helper startup diagnostics")
|
|
119
|
+
}
|
|
78
120
|
usleep(10_000)
|
|
79
|
-
}
|
|
80
|
-
throw NativeFailure(code: "NATIVE_STARTUP_TIMEOUT", message: "
|
|
121
|
+
}
|
|
122
|
+
throw NativeFailure(code: "NATIVE_STARTUP_TIMEOUT", message: "Computer Use did not become ready within the startup deadline")
|
|
81
123
|
}
|
|
124
|
+
|
|
82
125
|
}
|
|
83
126
|
|
|
84
127
|
final class SharedHelperLock {
|
|
@@ -227,63 +270,75 @@ final class SharedSocket: @unchecked Sendable {
|
|
|
227
270
|
}
|
|
228
271
|
}
|
|
229
272
|
|
|
230
|
-
enum SharedHelperLauncher {
|
|
231
|
-
static func ensure(_ options: SharedHelperOptions, publishReady: Bool = true) throws {
|
|
273
|
+
@MainActor enum SharedHelperLauncher {
|
|
274
|
+
static func ensure(_ options: SharedHelperOptions, publishReady: Bool = true, deadline suppliedDeadline: UInt64? = nil) async throws {
|
|
232
275
|
try options.prepareDirectory()
|
|
276
|
+
let deadline = suppliedDeadline ?? options.startupDeadline()
|
|
277
|
+
var launchLock: SharedHelperLock?
|
|
278
|
+
repeat {
|
|
279
|
+
launchLock = try SharedHelperLock(path: options.launchLockPath)
|
|
280
|
+
if launchLock != nil { break }
|
|
281
|
+
usleep(10_000)
|
|
282
|
+
} while DispatchTime.now().uptimeNanoseconds < deadline
|
|
283
|
+
guard let launchLock else { throw NativeFailure(code: "NATIVE_STARTUP_TIMEOUT", message: "Computer Use application launch is still in progress") }
|
|
284
|
+
defer { withExtendedLifetime(launchLock) {} }
|
|
233
285
|
if let lock = try SharedHelperLock(path: options.versionLockPath) {
|
|
234
|
-
// The serving process acquires its own lock after exec.
|
|
235
286
|
withExtendedLifetime(lock) {}
|
|
236
287
|
} else {
|
|
237
|
-
let ready = try options.existingReady()
|
|
288
|
+
let ready = try options.existingReady(deadline: deadline)
|
|
238
289
|
if publishReady { try FileHandle.standardOutput.write(contentsOf: ready) }
|
|
239
290
|
return
|
|
240
291
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
var actions: posix_spawn_file_actions_t?
|
|
248
|
-
let initialized = posix_spawn_file_actions_init(&actions)
|
|
249
|
-
guard initialized == 0 else { throw NativeFailure(code: "NATIVE_STARTUP", message: "Creating helper spawn actions failed (errno \(initialized))") }
|
|
250
|
-
defer { posix_spawn_file_actions_destroy(&actions) }
|
|
251
|
-
let actionResults = [
|
|
252
|
-
posix_spawn_file_actions_addopen(&actions, STDIN_FILENO, "/dev/null", O_RDONLY, 0),
|
|
253
|
-
posix_spawn_file_actions_addopen(&actions, STDERR_FILENO, "/dev/null", O_WRONLY, 0),
|
|
254
|
-
posix_spawn_file_actions_adddup2(&actions, pipes[1], STDOUT_FILENO),
|
|
255
|
-
posix_spawn_file_actions_addclose(&actions, pipes[0]),
|
|
256
|
-
posix_spawn_file_actions_addclose(&actions, pipes[1]),
|
|
257
|
-
]
|
|
258
|
-
if let failed = actionResults.first(where: { $0 != 0 }) {
|
|
259
|
-
throw NativeFailure(code: "NATIVE_STARTUP", message: "Configuring helper spawn actions failed (errno \(failed))")
|
|
292
|
+
let bundle = Bundle.main
|
|
293
|
+
guard bundle.bundleURL.pathExtension == "app", bundle.bundleIdentifier != nil,
|
|
294
|
+
let executable = bundle.executableURL, let processPath = NativePlatform.executablePath(getpid()),
|
|
295
|
+
executable.resolvingSymlinksInPath() == URL(fileURLWithPath: processPath).resolvingSymlinksInPath() else {
|
|
296
|
+
throw NativeFailure(code: "NATIVE_APPLICATION_REQUIRED",
|
|
297
|
+
message: "Computer Use requires its signed application bundle; set helperPath to DSH Computer Use.app/Contents/MacOS/dsh-cua-native")
|
|
260
298
|
}
|
|
261
|
-
let
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
let
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
299
|
+
let configuration = NSWorkspace.OpenConfiguration()
|
|
300
|
+
configuration.activates = false
|
|
301
|
+
configuration.addsToRecentItems = false
|
|
302
|
+
configuration.createsNewApplicationInstance = true
|
|
303
|
+
configuration.allowsRunningApplicationSubstitution = false
|
|
304
|
+
let startupID = UUID()
|
|
305
|
+
let failurePath = "\(options.directory)/\(options.runtimeKey).\(startupID.uuidString).failed"
|
|
306
|
+
defer { unlink(failurePath) }
|
|
307
|
+
configuration.arguments = ["--serve", "--startup-id", startupID.uuidString, "--runtime-key", options.runtimeKey,
|
|
308
|
+
"--runtime-directory", options.directory,
|
|
309
|
+
"--startup-timeout-ms", String(options.startupTimeout * 1000)]
|
|
310
|
+
guard DispatchTime.now().uptimeNanoseconds < deadline else {
|
|
311
|
+
throw NativeFailure(code: "NATIVE_STARTUP_TIMEOUT", message: "Computer Use launch lock exhausted the startup deadline")
|
|
312
|
+
}
|
|
313
|
+
// LaunchServices gives the application its own TCC identity; direct spawning inherits the terminal's.
|
|
314
|
+
let application: NSRunningApplication
|
|
315
|
+
do { application = try await NSWorkspace.shared.openApplication(at: bundle.bundleURL, configuration: configuration) }
|
|
316
|
+
catch {
|
|
317
|
+
if let failure = try SharedHelperOptions.startupFailure(at: failurePath) { throw failure }
|
|
318
|
+
throw NativeFailure(code: "NATIVE_STARTUP", message: "macOS could not launch Computer Use at \(bundle.bundleURL.path): \(error.localizedDescription)")
|
|
271
319
|
}
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
320
|
+
let pid = application.processIdentifier
|
|
321
|
+
guard pid > 0 else {
|
|
322
|
+
if let failure = try SharedHelperOptions.startupFailure(at: failurePath) { throw failure }
|
|
323
|
+
throw NativeFailure(code: "NATIVE_STARTUP", message: "macOS did not return a live Computer Use process")
|
|
324
|
+
}
|
|
325
|
+
let ready: Data
|
|
275
326
|
do {
|
|
276
|
-
|
|
277
|
-
let response = try JSONDecoder().decode(JSONValue.self, from: line)
|
|
278
|
-
guard response["type"] == .string("ready") else {
|
|
279
|
-
throw NativeFailure(code: response["code"].string ?? "NATIVE_STARTUP", message: response["message"].string ?? "Shared helper startup failed")
|
|
280
|
-
}
|
|
281
|
-
if publishReady { try FileHandle.standardOutput.write(contentsOf: line + Data([10])) }
|
|
327
|
+
ready = try options.existingReady(deadline: deadline, launchedPID: pid, failurePath: failurePath)
|
|
282
328
|
} catch {
|
|
283
|
-
//
|
|
284
|
-
kill(pid,
|
|
285
|
-
|
|
329
|
+
// A failed launch owns this new instance; existing shared services never enter this path.
|
|
330
|
+
if kill(pid, 0) == 0 {
|
|
331
|
+
guard application.forceTerminate() || (kill(pid, 0) != 0 && errno == ESRCH) else {
|
|
332
|
+
throw NativeFailure(code: "NATIVE_CLEANUP", message: "Computer Use startup failed (\(error)); macOS refused to stop helper PID \(pid)")
|
|
333
|
+
}
|
|
334
|
+
let cleanupDeadline = options.startupDeadline()
|
|
335
|
+
while kill(pid, 0) == 0 && DispatchTime.now().uptimeNanoseconds < cleanupDeadline { usleep(10_000) }
|
|
336
|
+
guard kill(pid, 0) != 0 && errno == ESRCH else {
|
|
337
|
+
throw NativeFailure(code: "NATIVE_CLEANUP", message: "Computer Use startup failed (\(error)); helper PID \(pid) has not exited")
|
|
338
|
+
}
|
|
339
|
+
}
|
|
286
340
|
throw error
|
|
287
341
|
}
|
|
342
|
+
if publishReady { try FileHandle.standardOutput.write(contentsOf: ready) }
|
|
288
343
|
}
|
|
289
344
|
}
|
|
@@ -109,7 +109,7 @@ private func acceptConnections(listener: SharedSocket, lifetime: SharedHelperLif
|
|
|
109
109
|
lifetime = SharedHelperLifetime(startupTimeout: options.startupTimeout)
|
|
110
110
|
try options.prepareDirectory()
|
|
111
111
|
guard let versionLock = try SharedHelperLock(path: options.versionLockPath) else {
|
|
112
|
-
try FileHandle.standardOutput.write(contentsOf: options.existingReady())
|
|
112
|
+
try FileHandle.standardOutput.write(contentsOf: options.existingReady(deadline: options.startupDeadline()))
|
|
113
113
|
return nil
|
|
114
114
|
}
|
|
115
115
|
self.versionLock = versionLock
|
|
@@ -197,7 +197,7 @@ private func acceptConnections(listener: SharedSocket, lifetime: SharedHelperLif
|
|
|
197
197
|
let lifetime = self.lifetime
|
|
198
198
|
let onFatal: @MainActor @Sendable () -> Void = { [weak self] in self?.closeConnections() }
|
|
199
199
|
let coordinator = RequestCoordinator(configuration: configuration, capture: capture, channel: channel, cancellation: cancellation,
|
|
200
|
-
scheduler: scheduler, writer: writer, permissions: permissions, onClose: { [weak self] in
|
|
200
|
+
scheduler: scheduler, writer: writer, permissions: permissions, permissionOwner: id, onClose: { [weak self] in
|
|
201
201
|
channel.shutdown()
|
|
202
202
|
guard let self else { lifetime.remove(id); return }
|
|
203
203
|
self.disconnected(id)
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
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>CFBundleIdentifier</key>
|
|
6
|
+
<string>com.deepseek.harness.computer-use</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>dsh-cua-native</string>
|
|
9
|
+
<key>CFBundleName</key>
|
|
10
|
+
<string>DSH Computer Use</string>
|
|
11
|
+
<key>CFBundleDisplayName</key>
|
|
12
|
+
<string>DSH Computer Use</string>
|
|
13
|
+
<key>CFBundleIconFile</key>
|
|
14
|
+
<string>DSHComputerUse.icns</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>APPL</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1</string>
|
|
19
|
+
<key>LSMinimumSystemVersion</key>
|
|
20
|
+
<string>14.0</string>
|
|
21
|
+
<key>LSUIElement</key>
|
|
22
|
+
<true/>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Computer Use icon adapted from Lucide mouse-pointer-click.
|
|
2
|
+
Source artwork: packages/experimental/cua-bundle/icon.svg
|
|
3
|
+
https://lucide.dev/icons/mouse-pointer-click
|
|
4
|
+
|
|
5
|
+
ISC License
|
|
6
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
7
|
+
https://github.com/lucide-icons/lucide/blob/main/LICENSE
|
|
8
|
+
|
|
9
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
11
|
+
copyright notice and this permission notice appear in all copies.
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
13
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
14
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
15
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
16
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
17
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
18
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Cua AI, Inc.
|
|
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.
|
|
@@ -0,0 +1,150 @@
|
|
|
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>Resources/DSHComputerUse.icns</key>
|
|
8
|
+
<data>
|
|
9
|
+
7FCrxo1Uv0dYad1G3oM0yStPJZs=
|
|
10
|
+
</data>
|
|
11
|
+
<key>Resources/LICENSE.computer-use-icon</key>
|
|
12
|
+
<data>
|
|
13
|
+
FfKCYFLo9JZ0Tk/wJPaU5dX8i/U=
|
|
14
|
+
</data>
|
|
15
|
+
<key>Resources/LICENSE.cua-driver</key>
|
|
16
|
+
<data>
|
|
17
|
+
6q0FpB2ebvJFkwbiAsA5y+Pfi48=
|
|
18
|
+
</data>
|
|
19
|
+
</dict>
|
|
20
|
+
<key>files2</key>
|
|
21
|
+
<dict>
|
|
22
|
+
<key>Resources/DSHComputerUse.icns</key>
|
|
23
|
+
<dict>
|
|
24
|
+
<key>hash2</key>
|
|
25
|
+
<data>
|
|
26
|
+
tLLz1flFp1R7wlOOhp1Fn9435AAzCwHb4w/KWnv0z+Q=
|
|
27
|
+
</data>
|
|
28
|
+
</dict>
|
|
29
|
+
<key>Resources/LICENSE.computer-use-icon</key>
|
|
30
|
+
<dict>
|
|
31
|
+
<key>hash2</key>
|
|
32
|
+
<data>
|
|
33
|
+
7lIpf469xyYpyq+d0jfAyz/XivUSOcRoToRtNG5YnLs=
|
|
34
|
+
</data>
|
|
35
|
+
</dict>
|
|
36
|
+
<key>Resources/LICENSE.cua-driver</key>
|
|
37
|
+
<dict>
|
|
38
|
+
<key>hash2</key>
|
|
39
|
+
<data>
|
|
40
|
+
wHeSkMHUeDFpqj2/tV/rUF5WPvigBLv1UpjO/8+9qNk=
|
|
41
|
+
</data>
|
|
42
|
+
</dict>
|
|
43
|
+
</dict>
|
|
44
|
+
<key>rules</key>
|
|
45
|
+
<dict>
|
|
46
|
+
<key>^Resources/</key>
|
|
47
|
+
<true/>
|
|
48
|
+
<key>^Resources/.*\.lproj/</key>
|
|
49
|
+
<dict>
|
|
50
|
+
<key>optional</key>
|
|
51
|
+
<true/>
|
|
52
|
+
<key>weight</key>
|
|
53
|
+
<real>1000</real>
|
|
54
|
+
</dict>
|
|
55
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
56
|
+
<dict>
|
|
57
|
+
<key>omit</key>
|
|
58
|
+
<true/>
|
|
59
|
+
<key>weight</key>
|
|
60
|
+
<real>1100</real>
|
|
61
|
+
</dict>
|
|
62
|
+
<key>^Resources/Base\.lproj/</key>
|
|
63
|
+
<dict>
|
|
64
|
+
<key>weight</key>
|
|
65
|
+
<real>1010</real>
|
|
66
|
+
</dict>
|
|
67
|
+
<key>^version.plist$</key>
|
|
68
|
+
<true/>
|
|
69
|
+
</dict>
|
|
70
|
+
<key>rules2</key>
|
|
71
|
+
<dict>
|
|
72
|
+
<key>.*\.dSYM($|/)</key>
|
|
73
|
+
<dict>
|
|
74
|
+
<key>weight</key>
|
|
75
|
+
<real>11</real>
|
|
76
|
+
</dict>
|
|
77
|
+
<key>^(.*/)?\.DS_Store$</key>
|
|
78
|
+
<dict>
|
|
79
|
+
<key>omit</key>
|
|
80
|
+
<true/>
|
|
81
|
+
<key>weight</key>
|
|
82
|
+
<real>2000</real>
|
|
83
|
+
</dict>
|
|
84
|
+
<key>^(Frameworks|SharedFrameworks|PlugIns|Plug-ins|XPCServices|Helpers|MacOS|Library/(Automator|Spotlight|LoginItems))/</key>
|
|
85
|
+
<dict>
|
|
86
|
+
<key>nested</key>
|
|
87
|
+
<true/>
|
|
88
|
+
<key>weight</key>
|
|
89
|
+
<real>10</real>
|
|
90
|
+
</dict>
|
|
91
|
+
<key>^.*</key>
|
|
92
|
+
<true/>
|
|
93
|
+
<key>^Info\.plist$</key>
|
|
94
|
+
<dict>
|
|
95
|
+
<key>omit</key>
|
|
96
|
+
<true/>
|
|
97
|
+
<key>weight</key>
|
|
98
|
+
<real>20</real>
|
|
99
|
+
</dict>
|
|
100
|
+
<key>^PkgInfo$</key>
|
|
101
|
+
<dict>
|
|
102
|
+
<key>omit</key>
|
|
103
|
+
<true/>
|
|
104
|
+
<key>weight</key>
|
|
105
|
+
<real>20</real>
|
|
106
|
+
</dict>
|
|
107
|
+
<key>^Resources/</key>
|
|
108
|
+
<dict>
|
|
109
|
+
<key>weight</key>
|
|
110
|
+
<real>20</real>
|
|
111
|
+
</dict>
|
|
112
|
+
<key>^Resources/.*\.lproj/</key>
|
|
113
|
+
<dict>
|
|
114
|
+
<key>optional</key>
|
|
115
|
+
<true/>
|
|
116
|
+
<key>weight</key>
|
|
117
|
+
<real>1000</real>
|
|
118
|
+
</dict>
|
|
119
|
+
<key>^Resources/.*\.lproj/locversion.plist$</key>
|
|
120
|
+
<dict>
|
|
121
|
+
<key>omit</key>
|
|
122
|
+
<true/>
|
|
123
|
+
<key>weight</key>
|
|
124
|
+
<real>1100</real>
|
|
125
|
+
</dict>
|
|
126
|
+
<key>^Resources/Base\.lproj/</key>
|
|
127
|
+
<dict>
|
|
128
|
+
<key>weight</key>
|
|
129
|
+
<real>1010</real>
|
|
130
|
+
</dict>
|
|
131
|
+
<key>^[^/]+$</key>
|
|
132
|
+
<dict>
|
|
133
|
+
<key>nested</key>
|
|
134
|
+
<true/>
|
|
135
|
+
<key>weight</key>
|
|
136
|
+
<real>10</real>
|
|
137
|
+
</dict>
|
|
138
|
+
<key>^embedded\.provisionprofile$</key>
|
|
139
|
+
<dict>
|
|
140
|
+
<key>weight</key>
|
|
141
|
+
<real>20</real>
|
|
142
|
+
</dict>
|
|
143
|
+
<key>^version\.plist$</key>
|
|
144
|
+
<dict>
|
|
145
|
+
<key>weight</key>
|
|
146
|
+
<real>20</real>
|
|
147
|
+
</dict>
|
|
148
|
+
</dict>
|
|
149
|
+
</dict>
|
|
150
|
+
</plist>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"bundle":"007deaf0f4b6b473af03a201a5042208f8249172c41c27894bc09241e5e3f19b"}
|
|
Binary file
|
|
@@ -0,0 +1,24 @@
|
|
|
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>CFBundleIdentifier</key>
|
|
6
|
+
<string>com.deepseek.harness.computer-use</string>
|
|
7
|
+
<key>CFBundleExecutable</key>
|
|
8
|
+
<string>dsh-cua-native</string>
|
|
9
|
+
<key>CFBundleName</key>
|
|
10
|
+
<string>DSH Computer Use</string>
|
|
11
|
+
<key>CFBundleDisplayName</key>
|
|
12
|
+
<string>DSH Computer Use</string>
|
|
13
|
+
<key>CFBundleIconFile</key>
|
|
14
|
+
<string>DSHComputerUse.icns</string>
|
|
15
|
+
<key>CFBundlePackageType</key>
|
|
16
|
+
<string>APPL</string>
|
|
17
|
+
<key>CFBundleVersion</key>
|
|
18
|
+
<string>1</string>
|
|
19
|
+
<key>LSMinimumSystemVersion</key>
|
|
20
|
+
<string>14.0</string>
|
|
21
|
+
<key>LSUIElement</key>
|
|
22
|
+
<true/>
|
|
23
|
+
</dict>
|
|
24
|
+
</plist>
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Computer Use icon adapted from Lucide mouse-pointer-click.
|
|
2
|
+
Source artwork: packages/experimental/cua-bundle/icon.svg
|
|
3
|
+
https://lucide.dev/icons/mouse-pointer-click
|
|
4
|
+
|
|
5
|
+
ISC License
|
|
6
|
+
Copyright (c) 2026 Lucide Icons and Contributors
|
|
7
|
+
https://github.com/lucide-icons/lucide/blob/main/LICENSE
|
|
8
|
+
|
|
9
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
10
|
+
purpose with or without fee is hereby granted, provided that the above
|
|
11
|
+
copyright notice and this permission notice appear in all copies.
|
|
12
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
|
|
13
|
+
WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
|
|
14
|
+
MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
|
|
15
|
+
ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
|
|
16
|
+
WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
|
|
17
|
+
ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
|
|
18
|
+
OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2025 Cua AI, Inc.
|
|
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.
|