| # Licensed to the Apache Software Foundation (ASF) under one | |
| # or more contributor license agreements. See the NOTICE file | |
| # distributed with this work for additional information | |
| # regarding copyright ownership. The ASF licenses this file | |
| # to you under the Apache License, Version 2.0 (the | |
| # "License"); you may not use this file except in compliance | |
| # with the License. You may obtain a copy of the License at | |
| # | |
| # http://www.apache.org/licenses/LICENSE-2.0 | |
| # | |
| # Unless required by applicable law or agreed to in writing, | |
| # software distributed under the License is distributed on an | |
| # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
| # KIND, either express or implied. See the License for the | |
| # specific language governing permissions and limitations | |
| # under the License. | |
| [package] | |
| autotests = false | |
| name = "maka-computer-use" | |
| version.workspace = true | |
| edition.workspace = true | |
| license.workspace = true | |
| publish.workspace = true | |
| [features] | |
| default = [] | |
| native-desktop = [ | |
| "dep:anyhow", | |
| "dep:hex", | |
| "dep:cua-driver-contract", | |
| "dep:cua-driver-sdk", | |
| "dep:cua-driver-core", | |
| "dep:libc", | |
| "dep:cursor-overlay", | |
| "dep:sha2", | |
| "dep:tempfile", | |
| "dep:platform-windows", | |
| "dep:windows-sys", | |
| "dep:platform-linux", | |
| "dep:platform-macos", | |
| "dep:screencapturekit", | |
| "dep:core-foundation", | |
| "dep:objc2-app-kit", | |
| "dep:unicode-segmentation", | |
| "dep:image", | |
| "dep:tracing", | |
| "dep:regex", | |
| "dep:markdown", | |
| "dep:sysinfo", | |
| ] | |
| [dependencies] | |
| image = { version = "0.25.10", default-features = false, features = ["png", "jpeg"], optional = true } | |
| sysinfo = { version = "0.31.4", default-features = false, features = ["system"], optional = true } | |
| anyhow = { version = "1", optional = true } | |
| maka-code-runtime.workspace = true | |
| hex = { workspace = true, optional = true } | |
| maka-agent-facts.workspace = true | |
| maka-capabilities.workspace = true | |
| maka-plugin-core.workspace = true | |
| futures-util.workspace = true | |
| cua-driver-contract = { workspace = true, optional = true } | |
| cua-driver-sdk = { workspace = true, optional = true } | |
| cua-driver-core = { git = "https://github.com/maka-agent/cua", rev = "f767531b26772afea29985d360d3f00d730baeb0", optional = true } | |
| serde.workspace = true | |
| uuid.workspace = true | |
| libc = { workspace = true, optional = true } | |
| reqwest.workspace = true | |
| base64 = "0.23.1" | |
| cursor-overlay = { git = "https://github.com/maka-agent/cua", rev = "f767531b26772afea29985d360d3f00d730baeb0", features = ["theme-authoring"], optional = true } | |
| sha2 = { workspace = true, optional = true } | |
| tempfile = { workspace = true, optional = true } | |
| serde_json.workspace = true | |
| regex = { version = "1.13.1", optional = true } | |
| markdown = { version = "1.0.0", optional = true } | |
| tokio = { workspace = true, features = ["io-std", "process"] } | |
| tokio-util.workspace = true | |
| tracing = { workspace = true, optional = true } | |
| [dev-dependencies] | |
| # Match the JSON number representation enabled by the product UI bundler. | |
| serde_json = { workspace = true, features = ["arbitrary_precision"] } | |
| tempfile.workspace = true | |
| maka-js-runtime.workspace = true | |
| tokio-tungstenite.workspace = true | |
| tracing-subscriber.workspace = true | |
| tiny-skia = { version = "0.12.0", features = ["png-format"] } | |
| # Cua's native theme renderer accepts its own tiny-skia 0.11 Pixmap. | |
| cua-skia = { package = "tiny-skia", version = "0.11.4", features = ["png-format"] } | |
| [target.'cfg(windows)'.dependencies] | |
| platform-windows = { git = "https://github.com/maka-agent/cua", rev = "f767531b26772afea29985d360d3f00d730baeb0", optional = true } | |
| windows-sys = { version = "0.61.2", features = ["Win32_Foundation", "Win32_System_Threading", "Win32_Storage_FileSystem"], optional = true } | |
| [target.'cfg(windows)'.dev-dependencies] | |
| windows-sys = { version = "0.61.2", features = ["Win32_UI_WindowsAndMessaging"] } | |
| [target.'cfg(target_os = "linux")'.dependencies] | |
| platform-linux = { git = "https://github.com/maka-agent/cua", rev = "f767531b26772afea29985d360d3f00d730baeb0", optional = true } | |
| [target.'cfg(target_os = "macos")'.dev-dependencies] | |
| imagesize.workspace = true | |
| [target.'cfg(target_os = "macos")'.dependencies] | |
| unicode-segmentation = { workspace = true, optional = true } | |
| platform-macos = { git = "https://github.com/maka-agent/cua", rev = "f767531b26772afea29985d360d3f00d730baeb0", optional = true } | |
| screencapturekit = { version = "8.0.1", features = ["macos_15_0"], optional = true } | |
| core-foundation = { version = "0.10.1", optional = true } | |
| objc2 = { version = "0.6.5" } | |
| objc2-foundation = { version = "0.3.2", default-features = false, features = ["std", "NSArray", "NSBundle", "NSData", "NSString", "NSURL"] } | |
| objc2-app-kit = { version = "0.3.2", default-features = false, features = ["std", "NSPasteboard", "NSPasteboardItem", "NSRunningApplication"], optional = true } | |
| [[example]] | |
| name = "cursor-preview" | |
| required-features = ["native-desktop"] | |
| [[example]] | |
| name = "desktop-host" | |
| required-features = ["native-desktop"] | |
| [[test]] | |
| name = "integration" | |
| path = "tests/integration/main.rs" | |
| [[example]] | |
| name = "browser-host" | |
| required-features = ["native-desktop"] |