Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
feat(sdk): publish cua-sdk and the proto contract so you can build your own harness (CUA-1902) (#5532)
ddupont78175bd5d425
diff --git a/.github/scripts/sync_sdk_release_locks.py b/.github/scripts/sync_sdk_release_locks.pyindex b2c18a96db..728cb387d8 100644--- a/.github/scripts/sync_sdk_release_locks.py+++ b/.github/scripts/sync_sdk_release_locks.py@@ -7,7 +7,11 @@ manifests" (scripts/ci/check-lockfiles.sh). Those are:- every uv.lock whose `cua` package is the checkout (editable or directory);- every package-lock.json, other than the SDK's own, that links- libs/cua/typescript.+ libs/cua/typescript;+- every Cargo.lock that locks crates of the libs/cua workspace by path+ (cua-proto, cua-spacesd-client, cua-hotspot, ...): the workspace releases+ at the SDK version, so those entries follow it. Release Please bumps+ libs/cua/Cargo.lock's own entries through the workspace version.Only that one recorded version changes. Rewriting the field instead ofrelocking keeps the diff independent of the uv and npm versions on the runner@@ -29,6 +33,23 @@ UV_CUA_FROM_CHECKOUT = re.compile(re.M,)+# A path dependency's lock entry has no `source` line after its version.+def cargo_path_entries(names: list[str]) -> re.Pattern[str]:+ return re.compile(+ r'^(\[\[package\]\]\nname = "(?:' + "|".join(map(re.escape, names)) + r')"\nversion = ")[^"]*("\n(?!source = ))',+ re.M,+ )+++def workspace_crates(root: Path) -> list[str]:+ """Package names of the libs/cua Cargo workspace."""+ names = []+ for manifest in sorted((root / "libs/cua/crates").glob("*/Cargo.toml")):+ found = re.search(r'^\[package\]\nname = "([^"]+)"', manifest.read_text(), re.M)+ if found:+ names.append(found.group(1))+ return names+def tracked(root: Path, name: str) -> list[str]:out = subprocess.run(@@ -47,6 +68,15 @@ def sync_uv_lock(path: Path, version: str) -> bool:return True+def sync_cargo_lock(path: Path, entries: re.Pattern[str], version: str) -> bool:+ text = path.read_text()+ updated = entries.sub(rf"\g<1>{version}\g<2>", text)+ if updated == text:+ return False+ path.write_text(updated)+ return True++def sdk_keys(lock: Path, sdk: Path) -> list[str]:packages = json.loads(lock.read_text()).get("packages", {})return [key for key in packages if key and (lock.parent / key).resolve() == sdk]@@ -79,6 +109,14 @@ def main(argv: list[str] | None = None) -> int:for lock in tracked(root, "package-lock.json"):if (root / lock).parent.resolve() != sdk and sync_npm_lock(root / lock, sdk, version):changed.append(lock)+ names = workspace_crates(root)+ if names:+ entries = cargo_path_entries(names)+ changed += [+ lock+ for lock in tracked(root, "Cargo.lock")+ if lock != "libs/cua/Cargo.lock" and sync_cargo_lock(root / lock, entries, version)+ ]print("\n".join(changed))return 0diff --git a/.github/scripts/tests/test_sync_sdk_release_locks.py b/.github/scripts/tests/test_sync_sdk_release_locks.pyindex 7502c08196..7f762415c5 100644--- a/.github/scripts/tests/test_sync_sdk_release_locks.py+++ b/.github/scripts/tests/test_sync_sdk_release_locks.py@@ -74,3 +74,39 @@ def test_release_please_runs_the_lock_sync_for_sdk_releases() -> None:sdk_branch = workflow.split('elif [[ "$SDK" == "true" ]]; then', 1)[1].split("else\n", 1)[0]assert "python3 .github/scripts/sync_sdk_release_locks.py" in sdk_branchassert 'git add -- "${SDK_LOCK_PATHS[@]}"' in sdk_branch+++def test_cargo_locks_follow_the_published_sdk_crates(tmp_path: Path, capsys: pytest.CaptureFixture[str]) -> None:+ def crate(name: str, version: str, source: str | None = None) -> str:+ entry = f'[[package]]\nname = "{name}"\nversion = "{version}"\n'+ if source:+ entry += f'source = "{source}"\n'+ return entry + 'dependencies = [\n "prost",\n]\n'++ registry = "registry+https://github.com/rust-lang/crates.io-index"+ files = {+ "libs/cua/VERSION": "0.6.0\n",+ "libs/cua/crates/cua-proto/Cargo.toml": '[package]\nname = "cua-proto"\nversion.workspace = true\n',+ "libs/cua/crates/cua-spacesd-client/Cargo.toml": '[package]\nname = "cua-spacesd-client"\nversion.workspace = true\n',+ # Locked by path (the checkout): follow the release.+ "libs/cua-spacesd/Cargo.lock": "version = 4\n\n"+ + crate("cua-proto", "0.5.0")+ + "\n"+ + crate("cua-spacesd-client", "0.5.0"),+ # From crates.io, and another workspace crate: left alone.+ "samples/x/Cargo.lock": "version = 4\n\n" + crate("cua-proto", "0.5.0", registry) + "\n" + crate("cua-sdk", "0.1.0"),+ }+ for rel, content in files.items():+ path = tmp_path / rel+ path.parent.mkdir(parents=True, exist_ok=True)+ path.write_text(content)+ subprocess.run(["git", "init", "-q"], cwd=tmp_path, check=True)+ subprocess.run(["git", "add", "-A"], cwd=tmp_path, check=True)+ before = (tmp_path / "samples/x/Cargo.lock").read_text()++ assert main(["--repo-root", str(tmp_path)]) == 0++ assert capsys.readouterr().out.split() == ["libs/cua-spacesd/Cargo.lock"]+ spacesd = (tmp_path / "libs/cua-spacesd/Cargo.lock").read_text()+ assert spacesd.count('version = "0.6.0"') == 2 and '"0.5.0"' not in spacesd+ assert (tmp_path / "samples/x/Cargo.lock").read_text() == beforediff --git a/.github/scripts/tests/test_validate_release_versions.py b/.github/scripts/tests/test_validate_release_versions.pyindex 5f70e5a636..956a5d318d 100644--- a/.github/scripts/tests/test_validate_release_versions.py+++ b/.github/scripts/tests/test_validate_release_versions.py@@ -60,6 +60,9 @@ def copy_release_sources(destination: Path) -> None:"libs/cua/python/src/cua/__init__.py","libs/cua/typescript/package.json","libs/cua/typescript/package-lock.json",+ "libs/cua/Cargo.toml",+ "libs/cua/Cargo.lock",+ *(str(m.relative_to(REPO_ROOT)) for m in sorted((REPO_ROOT / "libs/cua").glob("crates/*/Cargo.toml"))),"apps/cua-spaces-macos/VERSION","apps/cua-spaces-macos/Support/Info.plist","apps/cua-spaces/package.json",@@ -360,6 +363,9 @@ SDK_AND_SPACES_SOURCES = ("libs/cua/python/src/cua/__init__.py","libs/cua/typescript/package.json","libs/cua/typescript/package-lock.json",+ "libs/cua/Cargo.toml",+ "libs/cua/Cargo.lock",+ *(str(m.relative_to(REPO_ROOT)) for m in sorted((REPO_ROOT / "libs/cua").glob("crates/*/Cargo.toml"))),"apps/cua-spaces-macos/VERSION","apps/cua-spaces-macos/Support/Info.plist","apps/cua-spaces/package.json",@@ -416,6 +422,8 @@ def test_spaces_macos_info_plist_drift_fails(tmp_path: Path):("VERSION", "cua SDK expects 9.9.9"),("python/pyproject.toml", "python/pyproject.toml=9.9.9"),("typescript/package-lock.json", "typescript/package-lock.json=9.9.9"),+ ("Cargo.toml", "Cargo.toml:workspace.package.version=9.9.9"),+ ("crates/cua-sdk/Cargo.toml", "crates/cua-sdk/Cargo.toml:dependencies.cua-proto=9.9.9"),],)def test_sdk_version_drift_fails(tmp_path: Path, source: str, expected: str):diff --git a/.github/scripts/validate_release_versions.py b/.github/scripts/validate_release_versions.pyindex b08a521e61..d4b5bc6372 100644--- a/.github/scripts/validate_release_versions.py+++ b/.github/scripts/validate_release_versions.py@@ -258,9 +258,35 @@ def sdk_versions(root: Path) -> tuple[str, dict[str, str]]:"typescript/package.json": str(package["version"]),"typescript/package-lock.json": str(lock["version"]),"typescript/package-lock.json:root": str(lock["packages"][""]["version"]),+ **sdk_crate_versions(base),}+def sdk_crate_versions(base: Path) -> dict[str, str]:+ """The libs/cua Cargo workspace releases at the SDK version: its package+ version, the versions its crates require of each other, and their+ entries in libs/cua/Cargo.lock (cua-sdk and the crates it needs are+ published to crates.io at it)."""+ workspace = tomllib.loads((base / "Cargo.toml").read_text())["workspace"]+ values = {"Cargo.toml:workspace.package.version": str(workspace["package"]["version"])}+ for name, dep in workspace["dependencies"].items():+ if isinstance(dep, dict) and str(dep.get("path", "")).startswith("crates/") and "version" in dep:+ values[f"Cargo.toml:workspace.dependencies.{name}"] = str(dep["version"])+ sdk = tomllib.loads((base / "crates/cua-sdk/Cargo.toml").read_text())+ for name, dep in sdk.get("dependencies", {}).items():+ if isinstance(dep, dict) and "path" in dep and "version" in dep:+ values[f"crates/cua-sdk/Cargo.toml:dependencies.{name}"] = str(dep["version"])+ members = {+ tomllib.loads(manifest.read_text())["package"]["name"]+ for manifest in base.glob("crates/*/Cargo.toml")+ }+ lock = tomllib.loads((base / "Cargo.lock").read_text())+ for entry in lock["package"]:+ if entry["name"] in members and "source" not in entry:+ values[f"Cargo.lock:{entry['name']}"] = str(entry["version"])+ return values++def spaces_app_versions(root: Path) -> tuple[str, dict[str, str]]:# Release Please drives Cua Spaces from the macOS app (component# `cua-spaces` at apps/cua-spaces-macos); the Tauri app shares its version.diff --git a/.github/workflows/cd-cua-sdk.yml b/.github/workflows/cd-cua-sdk.ymlindex 204cf6cb4d..4e944ae92c 100644--- a/.github/workflows/cd-cua-sdk.yml+++ b/.github/workflows/cd-cua-sdk.yml@@ -9,7 +9,14 @@ name: "CD: cua SDK"# attach-xcframework after the release is out; it never blocks the CLI),# - the `cua` CLI binaries, plus standalone `cua-cli-<version>-<platform>`# archives, checksums.txt and release-artifacts.json for install.sh /-# install.ps1 (also mirrored to the rolling `cua-install-latest` release).+# install.ps1 (also mirrored to the rolling `cua-install-latest` release),+# - `cua-proto-<version>.tar.gz`: the protobuf contract (.proto files,+# buf.yaml, buf.gen.yaml, README) for clients in any language,+# - the Rust crates on crates.io: `cua-sdk`, `cua-spacesd-client`, `cua-proto`+# and the other workspace crates the SDK needs+# (libs/cua/scripts/publish-crates.sh; every run packages and verifies+# them with `cargo publish --dry-run`, and the upload needs the+# CARGO_REGISTRY_TOKEN secret: without it the crates step is skipped).# Mirrors cd-rust-cua-driver.yml / cd-py-cua-driver.yml.## Signing (required whenever the run publishes; refuses to publish unsigned):@@ -28,7 +35,8 @@ name: "CD: cua SDK"# Canonical vs staging: only trycua/cua publishes to PyPI and npm and fails# closed on missing signing secrets. Any other repository (trycua/cua-staging)# runs the same pipeline end to end but PyPI gets `twine check` (and TestPyPI-# when TEST_PYPI_TOKEN is set), npm gets `npm publish --dry-run`, a missing+# when TEST_PYPI_TOKEN is set), npm gets `npm publish --dry-run`, crates.io+# gets `cargo publish --dry-run`, a missing# Apple/Azure secret gives unsigned binaries, and the GitHub release is a# prerelease whose title and notes say so. The CLI's download URLs, the# installers' default repository and their Sigstore identity derive from@@ -416,10 +424,46 @@ jobs:xcframework.logif-no-files-found: error+ # The protobuf contract tarball (a release asset) and a crates.io dry run+ # of the Rust crates. Runs on every build, publishing or not.+ protos-and-crates:+ needs: version+ runs-on: ubuntu-latest+ timeout-minutes: 90+ permissions:+ contents: read+ steps:+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - uses: ./.github/actions/linux-rust-prep+ - uses: dtolnay/[email protected]+ - name: Install buf+ uses: bufbuild/buf-action@85aebf73123b5c15fd5528aaecbf9129cddf7fa7 # v1.6.0+ with:+ version: "1.73.0"+ setup_only: true+ - name: Build cua-proto-${{ needs.version.outputs.version }}.tar.gz+ env:+ VERSION: ${{ needs.version.outputs.version }}+ run: |+ set -euo pipefail+ tarball="$(libs/cua/scripts/package-proto.sh "$VERSION" dist-proto)"+ # The tarball is a self-contained buf module.+ mkdir -p "$RUNNER_TEMP/proto-check"+ tar -xzf "$tarball" -C "$RUNNER_TEMP/proto-check"+ (cd "$RUNNER_TEMP/proto-check/cua-proto-$VERSION" && buf build -o /dev/null)+ # No protoc on purpose: the published cua-proto must build without one.+ - name: Package and verify the crates (cargo publish --dry-run)+ run: libs/cua/scripts/publish-crates.sh+ - uses: actions/upload-artifact@v4+ with:+ name: proto-tarball+ path: dist-proto/cua-proto-*.tar.gz+ if-no-files-found: error+publish:# Not xcframework: the Swift build is slow and must never hold back the# CLI or the installer feed. attach-xcframework adds it to the release.- needs: [version, wheels, npm, native]+ needs: [version, wheels, npm, native, protos-and-crates]if: needs.version.outputs.publish == 'true'runs-on: ubuntu-latestpermissions:@@ -490,7 +534,7 @@ jobs:PRERELEASE: ${{ needs.version.outputs.prerelease }}run: |mkdir -p release- cp dist/wheel-*/*.whl dist/npm/*.tgz release/+ cp dist/wheel-*/*.whl dist/npm/*.tgz dist/proto-tarball/cua-proto-*.tar.gz release/for d in dist/native-*; dolabel="${d##*/native-}"tar -czf "release/cua-${{ needs.version.outputs.version }}-$label.tar.gz" -C "$d" .@@ -587,6 +631,38 @@ jobs:stamped/install.sh stamped/install.ps1 stamped/uninstall.sh stamped/uninstall.ps1 \--clobber --repo "$GITHUB_REPOSITORY"+ # crates.io after the GitHub release is out, like PyPI and npm: trycua/cua+ # only, and only when the CARGO_REGISTRY_TOKEN secret (a crates.io API+ # token with publish-new and publish-update scopes) is set; otherwise the+ # step says so and the release goes on without it.+ crates:+ needs: [version, publish]+ if: needs.version.outputs.publish == 'true'+ runs-on: ubuntu-latest+ timeout-minutes: 30+ permissions:+ contents: read+ steps:+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - uses: dtolnay/[email protected]+ - name: Publish cua-sdk and the crates it needs to crates.io+ env:+ CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}+ VERSION: ${{ needs.version.outputs.version }}+ run: |+ set -euo pipefail+ crates="$(cargo metadata --manifest-path libs/cua/Cargo.toml --no-deps --format-version 1 \+ | jq -r '.packages[] | select(.name == "cua-sdk") | .version')"+ if [ "$CANONICAL" != true ]; then+ echo "::notice::$GITHUB_REPOSITORY is not trycua/cua: crates.io got the dry run only (protos-and-crates)"+ elif [ -z "$CARGO_REGISTRY_TOKEN" ]; then+ echo "::warning::CARGO_REGISTRY_TOKEN is not set: the cua-sdk $VERSION crates were not published to crates.io"+ elif [ "$crates" != "$VERSION" ]; then+ echo "::warning::the crates are $crates, not $VERSION (a hand-pushed tag?): not published to crates.io"+ else+ libs/cua/scripts/publish-crates.sh --publish "$VERSION"+ fi+# The Swift package's CuaSDKFFI.xcframework.zip joins the already-published# release when its build finishes; checksums.txt is rewritten to include it.attach-xcframework:diff --git a/.github/workflows/ci-cua-proto.yml b/.github/workflows/ci-cua-proto.ymlindex 171dfcdf6d..5c98495b21 100644--- a/.github/workflows/ci-cua-proto.yml+++ b/.github/workflows/ci-cua-proto.yml@@ -6,6 +6,8 @@ on:- "libs/cua/proto/**"- "libs/cua/crates/cua-proto/**"- "libs/cua/scripts/check-proto.sh"+ - "libs/cua/scripts/package-proto.sh"+ - "libs/cua/scripts/check-proto-tarball.sh"- "libs/cua/Cargo.toml"- "libs/cua/Cargo.lock"- "libs/cua/rust-toolchain.toml"@@ -16,6 +18,8 @@ on:- "libs/cua/proto/**"- "libs/cua/crates/cua-proto/**"- "libs/cua/scripts/check-proto.sh"+ - "libs/cua/scripts/package-proto.sh"+ - "libs/cua/scripts/check-proto-tarball.sh"- "libs/cua/Cargo.toml"- "libs/cua/Cargo.lock"- "libs/cua/rust-toolchain.toml"@@ -86,3 +90,25 @@ jobs:run: cargo test -p cua-proto --all-features --locked- name: Build for wasm32 (gRPC-Web client subset)run: cargo build -p cua-proto --locked --target wasm32-unknown-unknown --no-default-features --features client,serde++ # The cua-proto-<version>.tar.gz release asset, checked the way a user of+ # another language uses it: a self-contained buf module whose buf.gen.yaml+ # generates a Go client that compiles. (The crates.io dry run of the Rust+ # crates is `crates.io dry run` in ci-cua-sdk.yml.)+ tarball:+ name: proto tarball + generated Go client+ runs-on: ubuntu-latest+ timeout-minutes: 15+ steps:+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - name: Install buf+ uses: bufbuild/buf-action@85aebf73123b5c15fd5528aaecbf9129cddf7fa7 # v1.6.0+ with:+ version: "1.73.0"+ setup_only: true+ - uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5+ with:+ go-version: stable+ cache: false+ - name: Build, buf generate and compile+ run: libs/cua/scripts/check-proto-tarball.sh "$RUNNER_TEMP/proto-tarball"diff --git a/.github/workflows/ci-cua-sdk.yml b/.github/workflows/ci-cua-sdk.ymlindex 2053ea1935..9f4568dffd 100644--- a/.github/workflows/ci-cua-sdk.yml+++ b/.github/workflows/ci-cua-sdk.yml@@ -146,6 +146,29 @@ jobs:exit 1fi+ # What a release publishes to crates.io (cd-cua-sdk.yml): cua-sdk,+ # cua-spacesd-client and every workspace crate they need, packaged and+ # built from their .crate files the way crates.io users get them, with no+ # protoc installed. Fails when a change makes any of them unpublishable+ # (a path dependency without a version, a file embedded from outside the+ # crate, a dependency on an unpublished crate).+ crates-dry-run:+ name: crates.io dry run+ runs-on: ubuntu-latest+ timeout-minutes: 60+ steps:+ - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4+ - uses: ./.github/actions/linux-rust-prep+ - name: Install pinned Rust toolchain+ uses: dtolnay/[email protected]+ - uses: Swatinem/rust-cache@9d47c6ad4b02e050fd481d890b2ea34778fd09d6 # v2+ with:+ workspaces: libs/cua+ - name: cargo publish --dry-run+ run: |+ if command -v protoc; then echo "protoc must not be installed here" >&2; exit 1; fi+ libs/cua/scripts/publish-crates.sh+# The Spaces suites (cua-spaces, cua-daemon, cua-sdk) against a real# cua-spacesd server core in process. A standalone workspace so libs/cua# never depends on the driver workspace (see the boundary check above).diff --git a/apps/cua-spaces/core-wasm/Cargo.lock b/apps/cua-spaces/core-wasm/Cargo.lockindex 258ed89af8..6af0baac8c 100644--- a/apps/cua-spaces/core-wasm/Cargo.lock+++ b/apps/cua-spaces/core-wasm/Cargo.lock@@ -16,14 +16,14 @@ checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys",@@ -31,7 +31,7 @@ dependencies = [[[package]]name = "cua-spaces-app-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-create-failure","cua-home",diff --git a/apps/cua-spaces/src-tauri/Cargo.lock b/apps/cua-spaces/src-tauri/Cargo.lockindex f32ab04bcc..affa864c19 100644--- a/apps/cua-spaces/src-tauri/Cargo.lock+++ b/apps/cua-spaces/src-tauri/Cargo.lock@@ -1204,7 +1204,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1220,7 +1220,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1236,7 +1236,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -1258,7 +1258,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -1273,14 +1273,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1324,7 +1324,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -1338,7 +1338,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1346,7 +1346,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1372,7 +1372,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1380,7 +1380,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -1392,7 +1392,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1417,7 +1417,7 @@ dependencies = [[[package]]name = "cua-keyvault"-version = "0.1.0"+version = "0.5.0"dependencies = ["argon2","async-trait",@@ -1444,7 +1444,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -1458,7 +1458,7 @@ dependencies = [[[package]]name = "cua-media-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","cua-media-transport",@@ -1466,7 +1466,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -1474,7 +1474,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -1487,7 +1487,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1517,13 +1517,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -1532,7 +1533,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -1561,7 +1562,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1656,7 +1657,7 @@ dependencies = [[[package]]name = "cua-spaces-app-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-create-failure",@@ -1670,7 +1671,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars 1.2.2","serde",@@ -1679,7 +1680,7 @@ dependencies = [[[package]]name = "cua-spaces-ext"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1719,7 +1720,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1755,7 +1756,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1768,7 +1769,7 @@ dependencies = [[[package]]name = "cua-teleport"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","block2",@@ -1807,7 +1808,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -1826,7 +1827,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1852,7 +1853,7 @@ dependencies = [[[package]]name = "cua-volume"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-home",@@ -3930,6 +3931,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.2"@@ -3982,6 +4015,28 @@ dependencies = ["autocfg",]+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -5093,6 +5148,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -5102,6 +5169,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -7437,6 +7531,12 @@ version = "1.13.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-xid"version = "0.2.6"diff --git a/examples/openkoalabot-example-tauri/src-tauri/Cargo.lock b/examples/openkoalabot-example-tauri/src-tauri/Cargo.lockindex 5189b3c4db..2187b603f1 100644--- a/examples/openkoalabot-example-tauri/src-tauri/Cargo.lock+++ b/examples/openkoalabot-example-tauri/src-tauri/Cargo.lock@@ -1195,7 +1195,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1211,7 +1211,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1227,7 +1227,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -1249,7 +1249,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -1264,14 +1264,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1315,7 +1315,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -1329,7 +1329,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1337,7 +1337,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1362,7 +1362,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1370,7 +1370,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -1382,7 +1382,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1407,7 +1407,7 @@ dependencies = [[[package]]name = "cua-keyvault"-version = "0.1.0"+version = "0.5.0"dependencies = ["argon2","async-trait",@@ -1434,7 +1434,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -1448,7 +1448,7 @@ dependencies = [[[package]]name = "cua-media-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","cua-media-transport",@@ -1456,7 +1456,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -1464,7 +1464,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -1477,7 +1477,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1507,13 +1507,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -1522,7 +1523,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -1551,7 +1552,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1599,7 +1600,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars 1.2.2","serde",@@ -1608,7 +1609,7 @@ dependencies = [[[package]]name = "cua-spaces-ext"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1648,7 +1649,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1684,7 +1685,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1697,7 +1698,7 @@ dependencies = [[[package]]name = "cua-teleport"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","block2",@@ -1736,7 +1737,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -1755,7 +1756,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1781,7 +1782,7 @@ dependencies = [[[package]]name = "cua-volume"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-home",@@ -3846,6 +3847,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.2"@@ -3884,6 +3917,28 @@ dependencies = ["autocfg",]+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -4985,6 +5040,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -4994,6 +5061,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -7152,6 +7246,12 @@ version = "1.13.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-xid"version = "0.2.6"diff --git a/examples/streaming/rust/Cargo.lock b/examples/streaming/rust/Cargo.lockindex f4c04ba40f..d60146bf60 100644--- a/examples/streaming/rust/Cargo.lock+++ b/examples/streaming/rust/Cargo.lock@@ -1193,7 +1193,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1209,7 +1209,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1225,7 +1225,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -1247,7 +1247,7 @@ dependencies = [[[package]]name = "cua-byoc"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","aws-config",@@ -1272,7 +1272,7 @@ dependencies = [[[package]]name = "cua-contrib"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1290,14 +1290,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1339,7 +1339,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -1353,7 +1353,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1361,7 +1361,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1386,7 +1386,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1394,7 +1394,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -1406,7 +1406,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1431,7 +1431,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1461,13 +1461,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -1476,7 +1477,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -1505,7 +1506,7 @@ dependencies = [[[package]]name = "cua-sdk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1543,7 +1544,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1591,7 +1592,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars","serde",@@ -1600,7 +1601,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1646,7 +1647,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1659,7 +1660,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2473,7 +2474,7 @@ dependencies = ["js-sys","log","wasm-bindgen",- "windows-core 0.58.0",+ "windows-core",][[package]]@@ -2870,6 +2871,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.3"@@ -2888,6 +2921,28 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width 0.1.14",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -3406,6 +3461,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -3415,6 +3482,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -4453,7 +4547,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49"dependencies = ["smawk",- "unicode-width",+ "unicode-width 0.2.2",][[package]]@@ -4924,6 +5018,12 @@ dependencies = ["tinyvec",]+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-width"version = "0.2.2"@@ -5387,7 +5487,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"dependencies = ["windows-collections",- "windows-core 0.61.2",+ "windows-core","windows-future","windows-link 0.1.3","windows-numerics",@@ -5399,20 +5499,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"dependencies = [- "windows-core 0.61.2",-]--[[package]]-name = "windows-core"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"-dependencies = [- "windows-implement 0.58.0",- "windows-interface 0.58.0",- "windows-result 0.2.0",- "windows-strings 0.1.0",- "windows-targets 0.52.6",+ "windows-core",][[package]]@@ -5421,11 +5508,11 @@ version = "0.61.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"dependencies = [- "windows-implement 0.60.2",- "windows-interface 0.59.3",+ "windows-implement",+ "windows-interface","windows-link 0.1.3",- "windows-result 0.3.4",- "windows-strings 0.4.2",+ "windows-result",+ "windows-strings",][[package]]@@ -5434,22 +5521,11 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3","windows-threading",]-[[package]]-name = "windows-implement"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-implement"version = "0.60.2"@@ -5461,17 +5537,6 @@ dependencies = ["syn 2.0.119",]-[[package]]-name = "windows-interface"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-interface"version = "0.59.3"@@ -5501,19 +5566,10 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3",]-[[package]]-name = "windows-result"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"-dependencies = [- "windows-targets 0.52.6",-]-[[package]]name = "windows-result"version = "0.3.4"@@ -5523,16 +5579,6 @@ dependencies = ["windows-link 0.1.3",]-[[package]]-name = "windows-strings"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"-dependencies = [- "windows-result 0.2.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-strings"version = "0.4.2"diff --git a/libs/cua-driver/rust/Cargo.lock b/libs/cua-driver/rust/Cargo.lockindex 788077b61b..f58020245f 100644--- a/libs/cua-driver/rust/Cargo.lock+++ b/libs/cua-driver/rust/Cargo.lock@@ -1417,7 +1417,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",diff --git a/libs/cua-spacesd/Cargo.lock b/libs/cua-spacesd/Cargo.lockindex 774356ea29..095b1194d8 100644--- a/libs/cua-spacesd/Cargo.lock+++ b/libs/cua-spacesd/Cargo.lock@@ -1397,7 +1397,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -1490,7 +1490,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1498,7 +1498,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1506,7 +1506,7 @@ dependencies = [[[package]]name = "cua-logging"-version = "0.1.0"+version = "0.5.0"dependencies = ["tracing","tracing-appender",@@ -1515,7 +1515,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -1529,7 +1529,7 @@ dependencies = [[[package]]name = "cua-media-codec"-version = "0.1.0"+version = "0.5.0"dependencies = ["audiopus_sys","libloading",@@ -1545,7 +1545,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -1553,7 +1553,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -1566,7 +1566,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1596,12 +1596,13 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson-build","pbjson-types","prost","prost-build",+ "protox","tonic","tonic-prost","tonic-prost-build",@@ -1687,7 +1688,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1806,7 +1807,7 @@ dependencies = [[[package]]name = "cua-spacesd-html5"-version = "0.1.0"+version = "0.5.0"dependencies = ["axum 0.8.9","http",@@ -1941,7 +1942,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1954,7 +1955,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -1973,7 +1974,7 @@ dependencies = [[[package]]name = "cua-volume"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-home",@@ -3520,6 +3521,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru"version = "0.18.3"@@ -3602,6 +3635,28 @@ version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a86d3146ed3995b5913c414f6664344b9617457320782e64f0bb44afd49d74"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -4886,6 +4941,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -4895,6 +4962,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -6689,6 +6783,12 @@ version = "1.0.24"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "uniffi"version = "0.31.0"diff --git a/libs/cua-spacesd/tests/spaces-e2e/Cargo.lock b/libs/cua-spacesd/tests/spaces-e2e/Cargo.lockindex 44f1ffe9d3..a04fe3f197 100644--- a/libs/cua-spacesd/tests/spaces-e2e/Cargo.lock+++ b/libs/cua-spacesd/tests/spaces-e2e/Cargo.lock@@ -1956,7 +1956,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1972,7 +1972,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1988,7 +1988,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -2010,7 +2010,7 @@ dependencies = [[[package]]name = "cua-byoc"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","aws-config",@@ -2035,7 +2035,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -2050,7 +2050,7 @@ dependencies = [[[package]]name = "cua-contrib"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2068,7 +2068,7 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",]@@ -2082,7 +2082,7 @@ dependencies = [[[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2128,7 +2128,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -2213,7 +2213,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -2221,7 +2221,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2247,7 +2247,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -2255,7 +2255,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -2267,7 +2267,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2292,7 +2292,7 @@ dependencies = [[[package]]name = "cua-keyvault"-version = "0.1.0"+version = "0.5.0"dependencies = ["argon2","async-trait",@@ -2319,7 +2319,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -2333,7 +2333,7 @@ dependencies = [[[package]]name = "cua-media-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","cua-media-transport",@@ -2341,7 +2341,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -2349,7 +2349,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -2362,7 +2362,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -2392,13 +2392,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -2439,7 +2440,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -2468,7 +2469,7 @@ dependencies = [[[package]]name = "cua-sdk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2506,7 +2507,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2554,7 +2555,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars","serde",@@ -2595,7 +2596,7 @@ dependencies = [[[package]]name = "cua-spaces-ext"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2635,7 +2636,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -2671,7 +2672,7 @@ dependencies = [[[package]]name = "cua-spacesd-html5"-version = "0.1.0"+version = "0.5.0"dependencies = ["axum","http",@@ -2761,7 +2762,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -2774,7 +2775,7 @@ dependencies = [[[package]]name = "cua-teleport"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","block2 0.6.2",@@ -2813,7 +2814,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -2832,7 +2833,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2858,7 +2859,7 @@ dependencies = [[[package]]name = "cua-volume"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-home",@@ -4674,6 +4675,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru"version = "0.18.4"@@ -4750,6 +4783,28 @@ version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a86d3146ed3995b5913c414f6664344b9617457320782e64f0bb44afd49d74"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width 0.1.14",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -6106,6 +6161,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -6115,6 +6182,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -7433,7 +7527,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49"dependencies = ["smawk",- "unicode-width",+ "unicode-width 0.2.2",][[package]]@@ -8082,6 +8176,12 @@ dependencies = ["tinyvec",]+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-width"version = "0.2.2"diff --git a/libs/cua-spacesd/tests/teleport-e2e/Cargo.lock b/libs/cua-spacesd/tests/teleport-e2e/Cargo.lockindex c6c54ac041..c1accc18ad 100644--- a/libs/cua-spacesd/tests/teleport-e2e/Cargo.lock+++ b/libs/cua-spacesd/tests/teleport-e2e/Cargo.lock@@ -1332,7 +1332,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1348,7 +1348,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1364,7 +1364,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -1457,7 +1457,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1465,7 +1465,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1473,7 +1473,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -1485,7 +1485,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -1499,7 +1499,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1529,12 +1529,13 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson-build","pbjson-types","prost","prost-build",+ "protox","tonic","tonic-prost","tonic-prost-build",@@ -1574,7 +1575,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1610,7 +1611,7 @@ dependencies = [[[package]]name = "cua-spacesd-html5"-version = "0.1.0"+version = "0.5.0"dependencies = ["axum","http",@@ -1700,7 +1701,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1713,7 +1714,7 @@ dependencies = [[[package]]name = "cua-teleport"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","block2 0.6.2",@@ -1752,7 +1753,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -3297,6 +3298,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru"version = "0.18.3"@@ -3373,6 +3406,28 @@ version = "0.3.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c2a86d3146ed3995b5913c414f6664344b9617457320782e64f0bb44afd49d74"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -4591,6 +4646,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -4600,6 +4667,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -6316,6 +6410,12 @@ version = "1.0.24"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "uniffi"version = "0.31.0"diff --git a/libs/cua/.gitignore b/libs/cua/.gitignoreindex e308e0aeea..04411e0970 100644--- a/libs/cua/.gitignore+++ b/libs/cua/.gitignore@@ -5,3 +5,7 @@ target/# Core dumps from crash tests (for example `kill -SEGV` in cua-media-codec)./crates/*/core++# The .proto files vendored into the published cua-proto crate+# (scripts/vendor-crate-protos.sh); libs/cua/proto is the source of truth.+/crates/cua-proto/proto/diff --git a/libs/cua/Cargo.lock b/libs/cua/Cargo.lockindex 6781e71300..cc14050cc5 100644--- a/libs/cua/Cargo.lock+++ b/libs/cua/Cargo.lock@@ -1857,7 +1857,7 @@ checksum = "af491d569909a7e4dee0ad7db7f5341fef5c614d5b8ec8cf765732aba3cff681"dependencies = ["serde","termcolor",- "unicode-width",+ "unicode-width 0.2.2",][[package]]@@ -2250,7 +2250,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -2267,7 +2267,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -2284,7 +2284,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -2307,7 +2307,7 @@ dependencies = [[[package]]name = "cua-bindgen"-version = "0.1.0"+version = "0.5.0"dependencies = ["anyhow","camino",@@ -2319,7 +2319,7 @@ dependencies = [[[package]]name = "cua-byoc"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","aws-config",@@ -2351,7 +2351,7 @@ dependencies = [[[package]]name = "cua-chromium-storage"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-teleport-bundle",@@ -2366,7 +2366,7 @@ dependencies = [[[package]]name = "cua-cli"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2411,7 +2411,7 @@ dependencies = [[[package]]name = "cua-contrib"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2433,7 +2433,7 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-telemetry","serde",@@ -2442,7 +2442,7 @@ dependencies = [[[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2489,7 +2489,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -2504,7 +2504,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","tempfile",@@ -2513,7 +2513,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2540,7 +2540,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -2548,7 +2548,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -2561,7 +2561,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2588,7 +2588,7 @@ dependencies = [[[package]]name = "cua-keyvault"-version = "0.1.0"+version = "0.5.0"dependencies = ["argon2","async-trait",@@ -2617,7 +2617,7 @@ dependencies = [[[package]]name = "cua-logging"-version = "0.1.0"+version = "0.5.0"dependencies = ["tracing","tracing-appender",@@ -2626,7 +2626,7 @@ dependencies = [[[package]]name = "cua-machine-seal"-version = "0.1.0"+version = "0.5.0"dependencies = ["chacha20poly1305 0.11.0","cua-home",@@ -2642,7 +2642,7 @@ dependencies = [[[package]]name = "cua-media-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-codec","cua-media-protocol",@@ -2652,7 +2652,7 @@ dependencies = [[[package]]name = "cua-media-codec"-version = "0.1.0"+version = "0.5.0"dependencies = ["audiopus_sys","criterion",@@ -2673,7 +2673,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -2681,7 +2681,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -2694,7 +2694,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -2729,7 +2729,7 @@ dependencies = [[[package]]name = "cua-mock-llm"-version = "0.1.0"+version = "0.5.0"dependencies = ["axum","bytes",@@ -2744,7 +2744,7 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build",@@ -2752,6 +2752,7 @@ dependencies = ["prost","prost-build","prost-types",+ "protox","serde","serde_json","tonic",@@ -2761,7 +2762,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2794,7 +2795,7 @@ dependencies = [[[package]]name = "cua-sdk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2836,7 +2837,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2887,7 +2888,7 @@ dependencies = [[[package]]name = "cua-spaces-app-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","cua-create-failure",@@ -2902,7 +2903,7 @@ dependencies = [[[package]]name = "cua-spaces-cli"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -2933,7 +2934,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars","serde",@@ -2942,7 +2943,7 @@ dependencies = [[[package]]name = "cua-spaces-ext"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2990,7 +2991,7 @@ dependencies = [[[package]]name = "cua-spaces-ffi"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","cua-chromium-storage",@@ -3023,7 +3024,7 @@ dependencies = [[[package]]name = "cua-spaces-transcript"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde_json","thiserror 2.0.20",@@ -3031,7 +3032,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -3071,7 +3072,7 @@ dependencies = [[[package]]name = "cua-spacesd-html5"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -3092,7 +3093,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -3106,7 +3107,7 @@ dependencies = [[[package]]name = "cua-teleport"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","block2 0.6.2",@@ -3145,7 +3146,7 @@ dependencies = [[[package]]name = "cua-teleport-bundle"-version = "0.1.0"+version = "0.5.0"dependencies = ["aes 0.8.4","aes-gcm",@@ -3165,7 +3166,7 @@ dependencies = [[[package]]name = "cua-viewer"-version = "0.1.0"+version = "0.5.0"dependencies = ["apple-cf","axum",@@ -3200,7 +3201,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -3227,7 +3228,7 @@ dependencies = [[[package]]name = "cua-volume"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","aws-credential-types",@@ -5107,6 +5108,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru"version = "0.18.5"@@ -5190,6 +5223,28 @@ dependencies = ["autocfg",]+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width 0.1.14",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -6525,6 +6580,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -6534,6 +6601,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -8038,7 +8132,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49"dependencies = ["smawk",- "unicode-width",+ "unicode-width 0.2.2",][[package]]@@ -8705,6 +8799,12 @@ version = "1.13.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c6f5d3c3b1bf09027a88a6bc961fc00497d651009560b5463668dc81b0fa87a8"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-width"version = "0.2.2"diff --git a/libs/cua/Cargo.toml b/libs/cua/Cargo.tomlindex e45ca6bc91..76109ee83e 100644--- a/libs/cua/Cargo.toml+++ b/libs/cua/Cargo.toml@@ -80,7 +80,10 @@ members = [][workspace.package]-version = "0.1.0"+# The cua SDK version (libs/cua/VERSION): every crate of this workspace is+# released at it, and the ones the SDK needs are published to crates.io+# (scripts/publish-crates.sh). Release Please bumps it.+version = "0.5.0" # x-release-please-versionedition = "2024"rust-version = "1.97"authors = ["trycua"]@@ -151,32 +154,35 @@ rmcp = { version = "=3.4.1", default-features = false }uniffi = "=0.31.0"# In-workspace crates.-cua-proto = { path = "crates/cua-proto", version = "0.1.0" }-cua-home = { path = "crates/cua-home", version = "0.1.0" }-cua-icon-cache = { path = "crates/cua-icon-cache", version = "0.1.0" }-cua-spacesd-client = { path = "crates/cua-spacesd-client", version = "0.1.0" }-cua-image = { path = "crates/cua-image", version = "0.1.0" }-cua-vmm = { path = "crates/cua-vmm", version = "0.1.0", default-features = false }-cua-disk = { path = "crates/cua-disk", version = "0.1.0" }-cua-sandbox-core = { path = "crates/cua-sandbox-core", version = "0.1.0" }-cua-contrib = { path = "crates/cua-contrib", version = "0.1.0", default-features = false }-cua-host = { path = "crates/cua-host", version = "0.1.0" }-cua-mesh = { path = "crates/cua-mesh", version = "0.1.0" }-cua-daemon = { path = "crates/cua-daemon", version = "0.1.0", default-features = false }-cua-auth = { path = "crates/cua-auth", version = "0.1.0" }-cua-agent-setup = { path = "crates/cua-agent-setup", version = "0.1.0" }-cua-agents = { path = "crates/cua-agents", version = "0.1.0" }-cua-volume = { path = "crates/cua-volume", version = "0.1.0" }-cua-sdk = { path = "crates/cua-sdk", version = "0.1.0", default-features = false }-cua-teleport-bundle = { path = "crates/cua-teleport-bundle", version = "0.1.0" }-cua-chromium-storage = { path = "crates/cua-chromium-storage", version = "0.1.0" }-cua-teleport = { path = "crates/cua-teleport", version = "0.1.0" }-cua-keyvault = { path = "crates/cua-keyvault", version = "0.1.0" }-cua-spaces-app-core = { path = "crates/cua-spaces-app-core", version = "0.1.0" }-cua-spaces-ext = { path = "crates/cua-spaces-ext", version = "0.1.0" }-cua-byoc = { path = "crates/cua-byoc", version = "0.1.0", default-features = false }-cua-telemetry = { path = "crates/cua-telemetry", version = "0.1.0" }-cua-create-failure = { path = "crates/cua-create-failure", version = "0.1.0" }+cua-proto = { path = "crates/cua-proto", version = "0.5.0" } # x-release-please-version+cua-home = { path = "crates/cua-home", version = "0.5.0" } # x-release-please-version+cua-icon-cache = { path = "crates/cua-icon-cache", version = "0.5.0" } # x-release-please-version+cua-spacesd-client = { path = "crates/cua-spacesd-client", version = "0.5.0" } # x-release-please-version+cua-image = { path = "crates/cua-image", version = "0.5.0" } # x-release-please-version+cua-vmm = { path = "crates/cua-vmm", version = "0.5.0", default-features = false } # x-release-please-version+cua-disk = { path = "crates/cua-disk", version = "0.5.0" } # x-release-please-version+cua-sandbox-core = { path = "crates/cua-sandbox-core", version = "0.5.0" } # x-release-please-version+cua-contrib = { path = "crates/cua-contrib", version = "0.5.0", default-features = false } # x-release-please-version+cua-host = { path = "crates/cua-host", version = "0.5.0" } # x-release-please-version+cua-mesh = { path = "crates/cua-mesh", version = "0.5.0" } # x-release-please-version+cua-daemon = { path = "crates/cua-daemon", version = "0.5.0", default-features = false } # x-release-please-version+cua-auth = { path = "crates/cua-auth", version = "0.5.0" } # x-release-please-version+cua-agent-setup = { path = "crates/cua-agent-setup", version = "0.5.0" } # x-release-please-version+cua-agents = { path = "crates/cua-agents", version = "0.5.0" } # x-release-please-version+cua-volume = { path = "crates/cua-volume", version = "0.5.0" } # x-release-please-version+cua-sdk = { path = "crates/cua-sdk", version = "0.5.0", default-features = false } # x-release-please-version+cua-teleport-bundle = { path = "crates/cua-teleport-bundle", version = "0.5.0" } # x-release-please-version+cua-chromium-storage = { path = "crates/cua-chromium-storage", version = "0.5.0" } # x-release-please-version+cua-teleport = { path = "crates/cua-teleport", version = "0.5.0" } # x-release-please-version+cua-keyvault = { path = "crates/cua-keyvault", version = "0.5.0" } # x-release-please-version+cua-spaces-app-core = { path = "crates/cua-spaces-app-core", version = "0.5.0" } # x-release-please-version+cua-spaces-ext = { path = "crates/cua-spaces-ext", version = "0.5.0" } # x-release-please-version+cua-byoc = { path = "crates/cua-byoc", version = "0.5.0", default-features = false } # x-release-please-version+cua-telemetry = { path = "crates/cua-telemetry", version = "0.5.0" } # x-release-please-version+cua-create-failure = { path = "crates/cua-create-failure", version = "0.5.0" } # x-release-please-version+cua-spaces = { path = "crates/cua-spaces", version = "0.5.0" } # x-release-please-version+cua-spaces-contract = { path = "crates/cua-spaces-contract", version = "0.5.0" } # x-release-please-version+cua-hotspot = { path = "crates/cua-hotspot", version = "0.5.0" } # x-release-please-versioncua-media-protocol = { path = "crates/cua-media-protocol" }cua-media-transport = { path = "crates/cua-media-transport" }cua-media-codec = { path = "crates/cua-media-codec", default-features = false }diff --git a/libs/cua/bench/streaming/Cargo.lock b/libs/cua/bench/streaming/Cargo.lockindex 09764e51b6..b7046cc2e6 100644--- a/libs/cua/bench/streaming/Cargo.lock+++ b/libs/cua/bench/streaming/Cargo.lock@@ -404,7 +404,7 @@ dependencies = [[[package]]name = "cua-media-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-codec","cua-media-protocol",@@ -414,7 +414,7 @@ dependencies = [[[package]]name = "cua-media-codec"-version = "0.1.0"+version = "0.5.0"dependencies = ["audiopus_sys","libloading",@@ -429,7 +429,7 @@ dependencies = [[[package]]name = "cua-media-protocol"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde","serde_json",@@ -437,7 +437,7 @@ dependencies = [[[package]]name = "cua-media-transport"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-media-protocol","quinn",@@ -450,12 +450,13 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson-build","pbjson-types","prost","prost-build",+ "protox","tonic","tonic-prost","tonic-prost-build",@@ -463,7 +464,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1083,6 +1084,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.3"@@ -1101,6 +1134,28 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -1437,6 +1492,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -1446,6 +1513,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -2323,6 +2417,12 @@ version = "1.0.26"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "d245f478577f809a851594d02313b640fb437e0bb33866753cff937863096954"+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "untrusted"version = "0.9.0"diff --git a/libs/cua/crates/cua-agent-setup/Cargo.toml b/libs/cua/crates/cua-agent-setup/Cargo.tomlindex b3ccdb8f27..40e427e7b4 100644--- a/libs/cua/crates/cua-agent-setup/Cargo.toml+++ b/libs/cua/crates/cua-agent-setup/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]serde.workspace = truediff --git a/libs/cua/crates/cua-agent-setup/build.rs b/libs/cua/crates/cua-agent-setup/build.rsnew file mode 100644index 0000000000..02de540efc--- /dev/null+++ b/libs/cua/crates/cua-agent-setup/build.rs@@ -0,0 +1,50 @@+//! Files this crate embeds from elsewhere in the repository (skills).+//!+//! In the repository they are read from their source of truth; the crate+//! published to crates.io carries copies under `vendor/` (copied by+//! libs/cua/scripts/publish-crates.sh). Either way they land in OUT_DIR and+//! the code embeds them from there.++use std::{+ env, fs, io,+ path::{Path, PathBuf},+};++/// (repository path relative to this crate, name in OUT_DIR and vendor/):+/// a file or a directory.+const FILES: &[(&str, &str)] = &[("../../skills", "skills")];++fn copy(from: &Path, to: &Path) -> io::Result<()> {+ if from.is_dir() {+ fs::create_dir_all(to)?;+ for entry in fs::read_dir(from)? {+ let entry = entry?;+ copy(&entry.path(), &to.join(entry.file_name()))?;+ }+ Ok(())+ } else {+ fs::copy(from, to).map(|_| ())+ }+}++fn main() {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());+ for (repo_path, name) in FILES {+ let repo = manifest_dir.join(repo_path);+ let source = if repo.exists() {+ repo+ } else {+ manifest_dir.join("vendor").join(name)+ };+ println!("cargo:rerun-if-changed={}", source.display());+ let target = out_dir.join(name);+ let _ = fs::remove_dir_all(&target);+ copy(&source, &target).unwrap_or_else(|e| {+ panic!(+ "{}: {e} (libs/cua/scripts/publish-crates.sh vendors it)",+ source.display()+ )+ });+ }+}diff --git a/libs/cua/crates/cua-agent-setup/src/skills.rs b/libs/cua/crates/cua-agent-setup/src/skills.rsindex e33585dc9e..35c2cc2c1e 100644--- a/libs/cua/crates/cua-agent-setup/src/skills.rs+++ b/libs/cua/crates/cua-agent-setup/src/skills.rs@@ -7,7 +7,7 @@ use include_dir::{Dir, include_dir};use sha2::{Digest, Sha256};use std::path::Path;-static BUNDLED: Dir<'_> = include_dir!("$CARGO_MANIFEST_DIR/../../skills");+static BUNDLED: Dir<'_> = include_dir!("$OUT_DIR/skills");/// One bundled skill.#[derive(Clone, Debug, PartialEq, Eq, serde::Serialize)]diff --git a/libs/cua/crates/cua-agents/Cargo.toml b/libs/cua/crates/cua-agents/Cargo.tomlindex dbef4f2ddd..46c87a2131 100644--- a/libs/cua/crates/cua-agents/Cargo.toml+++ b/libs/cua/crates/cua-agents/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]cua-spacesd-client.workspace = truediff --git a/libs/cua/crates/cua-auth/Cargo.toml b/libs/cua/crates/cua-auth/Cargo.tomlindex 6ca099315e..fb7cfd59d2 100644--- a/libs/cua/crates/cua-auth/Cargo.toml+++ b/libs/cua/crates/cua-auth/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]cua-home.workspace = truediff --git a/libs/cua/crates/cua-byoc/Cargo.toml b/libs/cua/crates/cua-byoc/Cargo.tomlindex ec45b49a47..386eef8d47 100644--- a/libs/cua/crates/cua-byoc/Cargo.toml+++ b/libs/cua/crates/cua-byoc/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = []@@ -52,7 +51,7 @@ url.workspace = true# The NoCloud seed writer of the opt-in QEMU boot test (tests/boot_qemu.rs).cua-vmm.workspace = truering = "0.17"-cua-spaces = { path = "../cua-spaces" }+cua-spaces.workspace = truecua-byoc = { path = ".", features = ["testing", "all"] }cua-host = { workspace = true, features = ["testing"] }cua-spacesd-client = { workspace = true, features = ["testing"] }diff --git a/libs/cua/crates/cua-contrib/Cargo.toml b/libs/cua/crates/cua-contrib/Cargo.tomlindex cb36898d49..8b36cb41dd 100644--- a/libs/cua/crates/cua-contrib/Cargo.toml+++ b/libs/cua/crates/cua-contrib/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = []diff --git a/libs/cua/crates/cua-create-failure/Cargo.toml b/libs/cua/crates/cua-create-failure/Cargo.tomlindex 3289aeb447..aa73cbb79c 100644--- a/libs/cua/crates/cua-create-failure/Cargo.toml+++ b/libs/cua/crates/cua-create-failure/Cargo.toml@@ -7,7 +7,6 @@ rust-version = "1.95"authors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]serde.workspace = truediff --git a/libs/cua/crates/cua-daemon/Cargo.toml b/libs/cua/crates/cua-daemon/Cargo.tomlindex 379402bc22..ff8ace7b0a 100644--- a/libs/cua/crates/cua-daemon/Cargo.toml+++ b/libs/cua/crates/cua-daemon/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = ["server", "client", "spaces"]@@ -39,12 +38,12 @@ cua-proto = { workspace = true, features = ["client", "server", "serde"] }cua-spacesd-client.workspace = truecua-sandbox-core.workspace = truecua-contrib = { workspace = true, optional = true }-cua-vmm = { path = "../cua-vmm" }cua-create-failure.workspace = true-cua-image = { path = "../cua-image" }+cua-vmm = { workspace = true, default-features = true }+cua-image.workspace = true# Disk accounting, cache GC and orphan reaping.cua-disk.workspace = true-cua-spaces = { path = "../cua-spaces", optional = true }+cua-spaces = { workspace = true, optional = true }# The fixtures' `/media` socket frames video like the real driver.# Relay account machines (space://relay/<id>) in SpaceService / `cua daemon mcp`.cua-host = { workspace = true, optional = true }@@ -82,7 +81,7 @@ libc = "0.2"[dev-dependencies]cua-host = { workspace = true, features = ["testing"] }-cua-spaces = { path = "../cua-spaces", features = ["mcp-client"] }+cua-spaces = { workspace = true, features = ["mcp-client"] }cua-spacesd-client = { workspace = true, features = ["testing"] }# Keyvault delivery test: a deterministic in-memory export provider and the# broker types, exercised against the mock spacesd.diff --git a/libs/cua/crates/cua-disk/Cargo.toml b/libs/cua/crates/cua-disk/Cargo.tomlindex 1abdd196e5..af8aa8ccf3 100644--- a/libs/cua/crates/cua-disk/Cargo.toml+++ b/libs/cua/crates/cua-disk/Cargo.toml@@ -11,7 +11,7 @@ description = "Disk accounting, cache budget and garbage collection for the cuaasync-trait.workspace = truebollard = "0.21"cua-image.workspace = true-cua-vmm = { path = "../cua-vmm" }+cua-vmm = { workspace = true, default-features = true }serde.workspace = trueserde_json.workspace = truetokio = { workspace = true }diff --git a/libs/cua/crates/cua-home/Cargo.toml b/libs/cua/crates/cua-home/Cargo.tomlindex d7c83178d5..f16c01f192 100644--- a/libs/cua/crates/cua-home/Cargo.toml+++ b/libs/cua/crates/cua-home/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[target.'cfg(unix)'.dependencies]libc = "0.2"diff --git a/libs/cua/crates/cua-host/Cargo.toml b/libs/cua/crates/cua-host/Cargo.tomlindex 15ab548add..88dc5bf6d9 100644--- a/libs/cua/crates/cua-host/Cargo.toml+++ b/libs/cua/crates/cua-host/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]# `cua_host::testing::FakeRelay` and the `cua-fake-relay` binary (tests of thediff --git a/libs/cua/crates/cua-host/build.rs b/libs/cua/crates/cua-host/build.rsnew file mode 100644index 0000000000..dee72ac8ad--- /dev/null+++ b/libs/cua/crates/cua-host/build.rs@@ -0,0 +1,50 @@+//! Files this crate embeds from elsewhere in the repository (cua-spacesd-VERSION).+//!+//! In the repository they are read from their source of truth; the crate+//! published to crates.io carries copies under `vendor/` (copied by+//! libs/cua/scripts/publish-crates.sh). Either way they land in OUT_DIR and+//! the code embeds them from there.++use std::{+ env, fs, io,+ path::{Path, PathBuf},+};++/// (repository path relative to this crate, name in OUT_DIR and vendor/):+/// a file or a directory.+const FILES: &[(&str, &str)] = &[("../../../cua-spacesd/VERSION", "cua-spacesd-VERSION")];++fn copy(from: &Path, to: &Path) -> io::Result<()> {+ if from.is_dir() {+ fs::create_dir_all(to)?;+ for entry in fs::read_dir(from)? {+ let entry = entry?;+ copy(&entry.path(), &to.join(entry.file_name()))?;+ }+ Ok(())+ } else {+ fs::copy(from, to).map(|_| ())+ }+}++fn main() {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());+ for (repo_path, name) in FILES {+ let repo = manifest_dir.join(repo_path);+ let source = if repo.exists() {+ repo+ } else {+ manifest_dir.join("vendor").join(name)+ };+ println!("cargo:rerun-if-changed={}", source.display());+ let target = out_dir.join(name);+ let _ = fs::remove_dir_all(&target);+ copy(&source, &target).unwrap_or_else(|e| {+ panic!(+ "{}: {e} (libs/cua/scripts/publish-crates.sh vendors it)",+ source.display()+ )+ });+ }+}diff --git a/libs/cua/crates/cua-host/src/driver.rs b/libs/cua/crates/cua-host/src/driver.rsindex fdcf74a163..4273810d71 100644--- a/libs/cua/crates/cua-host/src/driver.rs+++ b/libs/cua/crates/cua-host/src/driver.rs@@ -30,7 +30,7 @@ use std::path::{Path, PathBuf};/// The cua-spacesd release this build downloads by default (the driver/// is versioned and released on its own, `cua-spacesd-v<version>`).-pub const SPACESD_VERSION: &str = include_str!("../../../../cua-spacesd/VERSION");+pub const SPACESD_VERSION: &str = include_str!(concat!(env!("OUT_DIR"), "/cua-spacesd-VERSION"));/// Binary file name for this OS.pub fn binary_name() -> &'static str {diff --git a/libs/cua/crates/cua-hotspot/Cargo.toml b/libs/cua/crates/cua-hotspot/Cargo.tomlindex 85bab260aa..84ca03692a 100644--- a/libs/cua/crates/cua-hotspot/Cargo.toml+++ b/libs/cua/crates/cua-hotspot/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]futures-util = { workspace = true, features = ["sink"] }diff --git a/libs/cua/crates/cua-icon-cache/Cargo.toml b/libs/cua/crates/cua-icon-cache/Cargo.tomlindex 47c9f9d98e..1a61dc2d37 100644--- a/libs/cua/crates/cua-icon-cache/Cargo.toml+++ b/libs/cua/crates/cua-icon-cache/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[dependencies]cua-home.workspace = truediff --git a/libs/cua/crates/cua-image/Cargo.toml b/libs/cua/crates/cua-image/Cargo.tomlindex 1f62be9643..1eeef32428 100644--- a/libs/cua/crates/cua-image/Cargo.toml+++ b/libs/cua/crates/cua-image/Cargo.toml@@ -1,8 +1,8 @@[package]name = "cua-image"-version = "0.1.0"+version.workspace = trueedition = "2024"-license = "MIT"+license.workspace = truerepository = "https://github.com/trycua/cua"description = "OCI images for the cua SDK: pull/push, containerDisk and rootfs formats, ImageSpec, local builder."@@ -10,7 +10,7 @@ description = "OCI images for the cua SDK: pull/push, containerDisk and rootfs fasync-trait = "0.1"base64 = "0.22"bytes = "1"-cua-vmm = { path = "../cua-vmm" }+cua-vmm = { workspace = true, default-features = true }flate2 = "1"futures = "0.3"hex = "0.4"diff --git a/libs/cua/crates/cua-image/build.rs b/libs/cua/crates/cua-image/build.rsnew file mode 100644index 0000000000..495bd18848--- /dev/null+++ b/libs/cua/crates/cua-image/build.rs@@ -0,0 +1,50 @@+//! Files this crate embeds from elsewhere in the repository (sandbox-images.json).+//!+//! In the repository they are read from their source of truth; the crate+//! published to crates.io carries copies under `vendor/` (copied by+//! libs/cua/scripts/publish-crates.sh). Either way they land in OUT_DIR and+//! the code embeds them from there.++use std::{+ env, fs, io,+ path::{Path, PathBuf},+};++/// (repository path relative to this crate, name in OUT_DIR and vendor/):+/// a file or a directory.+const FILES: &[(&str, &str)] = &[("../../../images/sandbox-images.json", "sandbox-images.json")];++fn copy(from: &Path, to: &Path) -> io::Result<()> {+ if from.is_dir() {+ fs::create_dir_all(to)?;+ for entry in fs::read_dir(from)? {+ let entry = entry?;+ copy(&entry.path(), &to.join(entry.file_name()))?;+ }+ Ok(())+ } else {+ fs::copy(from, to).map(|_| ())+ }+}++fn main() {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());+ for (repo_path, name) in FILES {+ let repo = manifest_dir.join(repo_path);+ let source = if repo.exists() {+ repo+ } else {+ manifest_dir.join("vendor").join(name)+ };+ println!("cargo:rerun-if-changed={}", source.display());+ let target = out_dir.join(name);+ let _ = fs::remove_dir_all(&target);+ copy(&source, &target).unwrap_or_else(|e| {+ panic!(+ "{}: {e} (libs/cua/scripts/publish-crates.sh vendors it)",+ source.display()+ )+ });+ }+}diff --git a/libs/cua/crates/cua-image/src/catalog.rs b/libs/cua/crates/cua-image/src/catalog.rsindex 6672afdfe7..5b1df82d6a 100644--- a/libs/cua/crates/cua-image/src/catalog.rs+++ b/libs/cua/crates/cua-image/src/catalog.rs@@ -18,7 +18,7 @@ use crate::error::{ImageError, Result};use crate::resolve::NormalizedRef;/// The catalog file, as built into this crate.-pub const CATALOG_JSON: &str = include_str!("../../../../images/sandbox-images.json");+pub const CATALOG_JSON: &str = include_str!(concat!(env!("OUT_DIR"), "/sandbox-images.json"));/// One catalog entry (the fields the resolver needs).#[derive(Clone, Debug, Deserialize, PartialEq, Eq)]diff --git a/libs/cua/crates/cua-mesh/Cargo.toml b/libs/cua/crates/cua-mesh/Cargo.tomlindex c3423b9411..978df3453b 100644--- a/libs/cua/crates/cua-mesh/Cargo.toml+++ b/libs/cua/crates/cua-mesh/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = []diff --git a/libs/cua/crates/cua-proto/Cargo.toml b/libs/cua/crates/cua-proto/Cargo.tomlindex e6c6865c33..4739ec5c4f 100644--- a/libs/cua/crates/cua-proto/Cargo.toml+++ b/libs/cua/crates/cua-proto/Cargo.toml@@ -7,9 +7,14 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-# The .proto sources live outside the crate (libs/cua/proto); packaging for-# crates.io would need them vendored. Not published until then.-publish = false+documentation = "https://docs.rs/cua-proto"+homepage = "https://cua.ai/docs/cua-sdk"+readme = "README.md"+keywords = ["cua", "grpc", "protobuf", "computer-use", "sandbox"]+categories = ["api-bindings", "network-programming"]+# The .proto files ship in the crate under proto/ (copied from libs/cua/proto+# by scripts/vendor-crate-protos.sh before packaging; git-ignored here).+include = ["/src", "/build.rs", "/proto/**/*.proto", "/proto/buf.yaml", "/README.md"][features]default = ["client", "server"]@@ -38,6 +43,9 @@ pbjson = { workspace = true, optional = true }tonic-prost-build.workspace = trueprost-build.workspace = truepbjson-build.workspace = true+# Builds without a system protoc (the published crate); protoc is used when present.+protox = "0.10"+prost.workspace = true[dev-dependencies]prost-types.workspace = truediff --git a/libs/cua/crates/cua-proto/README.md b/libs/cua/crates/cua-proto/README.mdnew file mode 100644index 0000000000..a2cd8b115f--- /dev/null+++ b/libs/cua/crates/cua-proto/README.md@@ -0,0 +1,30 @@+# cua-proto++The protobuf contract of Cua, with generated [prost](https://crates.io/crates/prost)+messages and [tonic](https://crates.io/crates/tonic) clients and servers:++- `cua.env.v1`: **cua-spacesd**, the daemon inside every Cua Space+ (gRPC and gRPC-Web on port 3211, server reflection on).+- `cua.daemon.v1`: the local `cua daemon`.++Most programs want the typed client on top of these:+[`cua-spacesd-client`](https://crates.io/crates/cua-spacesd-client).+Use this crate for the raw generated clients, the message types, or the+file descriptor set (`cua_proto::FILE_DESCRIPTOR_SET`).++```sh+cargo add cua-proto+```++The `.proto` files ship inside this crate under `proto/`. The build uses+`protoc` (from `PROTOC` or `PATH`) when there is one, and otherwise compiles+the files in-process, so no system protoc is needed.++Features: `client` and `server` (default) gate the generated tonic modules;+`serde` adds canonical proto3-JSON impls for every message.++Other languages: the same files are attached to every `cua-sdk-v*` GitHub+release of [trycua/cua](https://github.com/trycua/cua/releases) as+`cua-proto-<version>.tar.gz`, with a `buf.gen.yaml` for `buf generate`.++MIT licensed.diff --git a/libs/cua/crates/cua-proto/build.rs b/libs/cua/crates/cua-proto/build.rsindex 2f85295543..ee70088af2 100644--- a/libs/cua/crates/cua-proto/build.rs+++ b/libs/cua/crates/cua-proto/build.rs@@ -1,10 +1,17 @@-//! Generates prost messages and tonic clients/servers from `libs/cua/proto`.+//! Generates prost messages and tonic clients/servers from the contract.//!-//! Requires `protoc` on PATH (or `PROTOC` set). Well-known types map to+//! The .proto files are `libs/cua/proto` in the repository and `proto/` in+//! the published crate (scripts/vendor-crate-protos.sh copies them there+//! before `cargo package`). Uses `protoc` from `PROTOC` or PATH when there is+//! one, and otherwise compiles the files in-process with protox, so a crate+//! from crates.io builds without a system protoc. Well-known types map to//! `pbjson_types`, which is wire-identical to `prost_types` and also//! implements serde, so the generated types do not change with features.-use std::{env, fs, path::PathBuf};+use std::{+ env, fs,+ path::{Path, PathBuf},+};/// Every .proto file of the contract. `tests/descriptor.rs` asserts this list/// matches the files on disk, so a new file cannot be silently left out.@@ -38,11 +45,38 @@ fn strip_verbatim(path: PathBuf) -> PathBuf {}}-fn main() -> Result<(), Box<dyn std::error::Error>> {- let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?);+/// `libs/cua/proto` in the repository (always the source of truth there, so+/// a stale vendored copy is never used); `proto/` in the published crate.+fn proto_root(manifest_dir: &Path) -> Result<PathBuf, Box<dyn std::error::Error>> {+ let marker = Path::new(PROTOS[0]);+ let root = [manifest_dir.join("../../proto"), manifest_dir.join("proto")]+ .into_iter()+ .find(|dir| dir.join(marker).is_file())+ .ok_or("cua-proto: no .proto files in ../../proto or proto/")?;// canonicalize() yields a verbatim `\\?\D:\...` path on Windows, which// protoc cannot use as an include root ("File not found").- let proto_root = strip_verbatim(manifest_dir.join("../../proto").canonicalize()?);+ Ok(strip_verbatim(root.canonicalize()?))+}++/// A protoc to run: `PROTOC` when set, else `protoc` when it is on PATH.+/// (No rerun on PATH changes: both paths generate the same code.)+fn has_protoc() -> bool {+ if env::var_os("PROTOC").is_some() {+ return true;+ }+ let exe = if cfg!(windows) {+ "protoc.exe"+ } else {+ "protoc"+ };+ env::var_os("PATH")+ .map(|paths| env::split_paths(&paths).any(|dir| dir.join(exe).is_file()))+ .unwrap_or(false)+}++fn main() -> Result<(), Box<dyn std::error::Error>> {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR")?);+ let proto_root = proto_root(&manifest_dir)?;let out_dir = PathBuf::from(env::var("OUT_DIR")?);let descriptor_path = out_dir.join("cua_descriptor.bin");@@ -59,7 +93,7 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {let mut prost_config = prost_build::Config::new();prost_config.prost_types_path("::pbjson_types");- tonic_prost_build::configure()+ let builder = tonic_prost_build::configure().build_client(true).build_server(true)// No tonic::transport references: the generated code must also@@ -70,8 +104,22 @@ fn main() -> Result<(), Box<dyn std::error::Error>> {.server_mod_attribute(".", r#"#[cfg(feature = "server")]"#).compile_well_known_types(false).file_descriptor_set_path(&descriptor_path)- .emit_rerun_if_changed(false)- .compile_with_config(prost_config, &files, std::slice::from_ref(&proto_root))?;+ .emit_rerun_if_changed(false);+ if has_protoc() {+ builder.compile_with_config(prost_config, &files, std::slice::from_ref(&proto_root))?;+ } else {+ // No protoc: protox parses the same files into the descriptor set+ // protoc would hand to prost (with source info, for doc comments+ // and reflection), imports included as protoc --include_imports does.+ let fds = protox::Compiler::new(std::slice::from_ref(&proto_root))?+ .include_imports(true)+ .include_source_info(true)+ .open_files(&files)?+ .file_descriptor_set();+ // compile_fds does not write file_descriptor_set_path.+ fs::write(&descriptor_path, prost::Message::encode_to_vec(&fds))?;+ builder.compile_fds_with_config(fds, prost_config)?;+ }// Canonical proto3 JSON (serde) impls. Always generated so the file set// in OUT_DIR is feature-independent; included only with `serde`.diff --git a/libs/cua/crates/cua-proto/src/lib.rs b/libs/cua/crates/cua-proto/src/lib.rsindex fccab3c533..bb3fe9d102 100644--- a/libs/cua/crates/cua-proto/src/lib.rs+++ b/libs/cua/crates/cua-proto/src/lib.rs@@ -3,9 +3,10 @@//! clients and servers.//!//! The `.proto` files in `libs/cua/proto` are the source of truth; this-//! crate only generates code from them. Applications should not use the-//! generated client directly: the ergonomic client lives in `cua-spacesd-client` and is-//! exposed to other languages only through the cua SDK.+//! crate only generates code from them (the published crate carries a copy+//! under `proto/`). Most programs want the typed client in+//! [`cua-spacesd-client`](https://docs.rs/cua-spacesd-client); the raw+//! generated clients here are for everything it does not wrap.//!//! Features://! - `client` (default): `*_service_client` modules.diff --git a/libs/cua/crates/cua-sandbox-core/Cargo.toml b/libs/cua/crates/cua-sandbox-core/Cargo.tomlindex c501b079a5..b0d8a796be 100644--- a/libs/cua/crates/cua-sandbox-core/Cargo.toml+++ b/libs/cua/crates/cua-sandbox-core/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]# In-process servers for tests (`cua_sandbox_core::testing`): an rmcp MCPdiff --git a/libs/cua/crates/cua-sdk/Cargo.toml b/libs/cua/crates/cua-sdk/Cargo.tomlindex c38c178650..61822afc90 100644--- a/libs/cua/crates/cua-sdk/Cargo.toml+++ b/libs/cua/crates/cua-sdk/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[lib]name = "cua_sdk"@@ -42,7 +41,7 @@ web = ["dep:tonic-web-wasm-client"][dependencies]# Contract types (both targets). The server half never builds for wasm32.-cua-proto = { path = "../cua-proto", default-features = false, features = ["client", "serde"] }+cua-proto = { path = "../cua-proto", version = "0.5.0", default-features = false, features = ["client", "serde"] } # x-release-please-versionuniffi.workspace = truethiserror.workspace = trueserde.workspace = true@@ -67,7 +66,7 @@ async-trait.workspace = truecua-host = { workspace = true, optional = true }cua-daemon = { workspace = true, features = ["client"] }cua-home.workspace = true-cua-spaces = { path = "../cua-spaces", optional = true }+cua-spaces = { workspace = true, optional = true }pbjson-types = { workspace = true, optional = true }tokio = { workspace = true }tonic = { workspace = true, default-features = false, features = ["codegen"] }@@ -86,7 +85,7 @@ hex.workspace = true[target.'cfg(not(target_arch = "wasm32"))'.dev-dependencies]http-body-util.workspace = truecua-sandbox-core = { workspace = true, features = ["testing"] }-cua-spaces = { path = "../cua-spaces" }+cua-spaces.workspace = truecua-host = { workspace = true, features = ["testing"] }serde_json.workspace = truecua-spacesd-client = { workspace = true, features = ["testing"] }diff --git a/libs/cua/crates/cua-spaces-contract/Cargo.toml b/libs/cua/crates/cua-spaces-contract/Cargo.tomlindex c8016abdc4..e7b4afe2ad 100644--- a/libs/cua/crates/cua-spaces-contract/Cargo.toml+++ b/libs/cua/crates/cua-spaces-contract/Cargo.toml@@ -1,12 +1,12 @@[package]name = "cua-spaces-contract"+description = "The Cua Spaces tool contract: which tools exist, what they need from a Space, and their input schemas (the source of spaces-contract/manifest.json)."version.workspace = trueedition.workspace = truerust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[[bin]]name = "cua-spaces-contract-gen"diff --git a/libs/cua/crates/cua-spaces/Cargo.toml b/libs/cua/crates/cua-spaces/Cargo.tomlindex 1fcaf0a059..cf2fa4c4af 100644--- a/libs/cua/crates/cua-spaces/Cargo.toml+++ b/libs/cua/crates/cua-spaces/Cargo.toml@@ -7,7 +7,6 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = [@@ -52,7 +51,7 @@ required-features = ["mcp-client"]# Host Spaces use counts (fixed words only).cua-telemetry.workspace = truecua-create-failure.workspace = true-cua-spaces-contract = { path = "../cua-spaces-contract" }+cua-spaces-contract.workspace = truecua-proto = { workspace = true, features = ["client", "serde"] }cua-spacesd-client.workspace = truecua-home.workspace = true@@ -96,7 +95,7 @@ chrono = { version = "0.4", default-features = false, features = ["clock", "std"ignore = { version = "0.4", optional = true }# Agent homes move in and out of a Space as one archive.tar = { version = "0.4", optional = true }-cua-hotspot = { path = "../cua-hotspot", optional = true }+cua-hotspot = { workspace = true, optional = true }tokio-tungstenite = { workspace = true, optional = true }# The host cache of pinned install archives (spaces-agents).reqwest = { version = "0.12", default-features = false, features = ["rustls-tls-native-roots"], optional = true }diff --git a/libs/cua/crates/cua-spaces/build.rs b/libs/cua/crates/cua-spaces/build.rsnew file mode 100644index 0000000000..a3cdfc3b20--- /dev/null+++ b/libs/cua/crates/cua-spaces/build.rs@@ -0,0 +1,53 @@+//! Files this crate embeds from elsewhere in the repository (session-script.json).+//!+//! In the repository they are read from their source of truth; the crate+//! published to crates.io carries copies under `vendor/` (copied by+//! libs/cua/scripts/publish-crates.sh). Either way they land in OUT_DIR and+//! the code embeds them from there.++use std::{+ env, fs, io,+ path::{Path, PathBuf},+};++/// (repository path relative to this crate, name in OUT_DIR and vendor/):+/// a file or a directory.+const FILES: &[(&str, &str)] = &[(+ "../../spaces-contract/fixtures/control/session-script.json",+ "session-script.json",+)];++fn copy(from: &Path, to: &Path) -> io::Result<()> {+ if from.is_dir() {+ fs::create_dir_all(to)?;+ for entry in fs::read_dir(from)? {+ let entry = entry?;+ copy(&entry.path(), &to.join(entry.file_name()))?;+ }+ Ok(())+ } else {+ fs::copy(from, to).map(|_| ())+ }+}++fn main() {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());+ for (repo_path, name) in FILES {+ let repo = manifest_dir.join(repo_path);+ let source = if repo.exists() {+ repo+ } else {+ manifest_dir.join("vendor").join(name)+ };+ println!("cargo:rerun-if-changed={}", source.display());+ let target = out_dir.join(name);+ let _ = fs::remove_dir_all(&target);+ copy(&source, &target).unwrap_or_else(|e| {+ panic!(+ "{}: {e} (libs/cua/scripts/publish-crates.sh vendors it)",+ source.display()+ )+ });+ }+}diff --git a/libs/cua/crates/cua-spaces/src/client/conformance.rs b/libs/cua/crates/cua-spaces/src/client/conformance.rsindex 74a7fa76d4..d43f6a89c5 100644--- a/libs/cua/crates/cua-spaces/src/client/conformance.rs+++ b/libs/cua/crates/cua-spaces/src/client/conformance.rs@@ -172,7 +172,7 @@ fn write_string(out: &mut String, value: &str) {pub fn session_script() -> String {// Written as a value and serialized by the ordered writer, so the script// file itself is deterministic too.- include_str!("../../../../spaces-contract/fixtures/control/session-script.json").to_string()+ include_str!(concat!(env!("OUT_DIR"), "/session-script.json")).to_string()}// ---------------------------------------------------------------------------diff --git a/libs/cua/crates/cua-spacesd-client/Cargo.toml b/libs/cua/crates/cua-spacesd-client/Cargo.tomlindex f9177787fd..10dfbd36d6 100644--- a/libs/cua/crates/cua-spacesd-client/Cargo.toml+++ b/libs/cua/crates/cua-spacesd-client/Cargo.toml@@ -7,7 +7,11 @@ rust-version.workspace = trueauthors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false+documentation = "https://docs.rs/cua-spacesd-client"+homepage = "https://cua.ai/docs/cua-sdk"+readme = "README.md"+keywords = ["cua", "computer-use", "sandbox", "grpc", "automation"]+categories = ["api-bindings", "network-programming", "asynchronous"][features]# In-process mock spacesd (`cua_spacesd_client::testing`) for this crate's tests anddiff --git a/libs/cua/crates/cua-spacesd-client/README.md b/libs/cua/crates/cua-spacesd-client/README.mdnew file mode 100644index 0000000000..496a9123d2--- /dev/null+++ b/libs/cua/crates/cua-spacesd-client/README.md@@ -0,0 +1,43 @@+# cua-spacesd-client++Typed async Rust client for **cua-spacesd**, the daemon inside every Cua Space+(`cua.env.v1`, gRPC on port 3211). Use it to drive a Space from your own+harness: run commands, read and write files, take screenshots, and send+pointer and keyboard input. No agent layer, no hand-written protobuf.++```sh+cargo add cua-spacesd-client+cargo add tokio --features full+```++```rust,no_run+use cua_spacesd_client::{SpacesdClient, ScreenshotOptions};++#[tokio::main]+async fn main() -> cua_spacesd_client::Result<()> {+ // The Space's spacesd URL and token: `cua sb info <space> --connection`.+ let space = SpacesdClient::connect_url("127.0.0.1:3211", Some("TOKEN".into())).await?;++ let out = space.run("uname -a").await?;+ println!("{}", out.stdout_str());++ let shot = space.screenshot(ScreenshotOptions::default()).await?;+ std::fs::write("screen.png", &shot.image).unwrap();++ space.click(100.0, 200.0).await?;+ space.type_text("hello").await?;+ Ok(())+}+```++- Endpoints: `http(s)://host:port`, bare `host:port` (port 3211 by default),+ or a relay URL. Native gRPC (HTTP/2) with a gRPC-Web fallback.+- Auth: the Space's token, sent as `authorization: Bearer <token>`.+- The generated types are re-exported as `cua_spacesd_client::pb`+ (from [`cua-proto`](https://crates.io/crates/cua-proto)).++Not using Rust? The `.proto` files are attached to every `cua-sdk-v*`+release as `cua-proto-<version>.tar.gz`, and spacesd serves gRPC server+reflection on :3211.++Docs: <https://cua.ai/docs/cua-sdk>. MIT licensed.diff --git a/libs/cua/crates/cua-telemetry/Cargo.toml b/libs/cua/crates/cua-telemetry/Cargo.tomlindex 732437749d..0db9e18b32 100644--- a/libs/cua/crates/cua-telemetry/Cargo.toml+++ b/libs/cua/crates/cua-telemetry/Cargo.toml@@ -9,7 +9,6 @@ rust-version = "1.95"authors.workspace = truelicense.workspace = truerepository.workspace = true-publish = false[features]default = ["http"]diff --git a/libs/cua/crates/cua-telemetry/build.rs b/libs/cua/crates/cua-telemetry/build.rsnew file mode 100644index 0000000000..a1646e930c--- /dev/null+++ b/libs/cua/crates/cua-telemetry/build.rs@@ -0,0 +1,56 @@+//! Files this crate embeds from elsewhere in the repository (sandbox-images.json, teleport-targets.json).+//!+//! In the repository they are read from their source of truth; the crate+//! published to crates.io carries copies under `vendor/` (copied by+//! libs/cua/scripts/publish-crates.sh). Either way they land in OUT_DIR and+//! the code embeds them from there.++use std::{+ env, fs, io,+ path::{Path, PathBuf},+};++/// (repository path relative to this crate, name in OUT_DIR and vendor/):+/// a file or a directory.+const FILES: &[(&str, &str)] = &[+ ("../../../images/sandbox-images.json", "sandbox-images.json"),+ (+ "../cua-teleport/src/ux/targets.json",+ "teleport-targets.json",+ ),+];++fn copy(from: &Path, to: &Path) -> io::Result<()> {+ if from.is_dir() {+ fs::create_dir_all(to)?;+ for entry in fs::read_dir(from)? {+ let entry = entry?;+ copy(&entry.path(), &to.join(entry.file_name()))?;+ }+ Ok(())+ } else {+ fs::copy(from, to).map(|_| ())+ }+}++fn main() {+ let manifest_dir = PathBuf::from(env::var("CARGO_MANIFEST_DIR").unwrap());+ let out_dir = PathBuf::from(env::var("OUT_DIR").unwrap());+ for (repo_path, name) in FILES {+ let repo = manifest_dir.join(repo_path);+ let source = if repo.exists() {+ repo+ } else {+ manifest_dir.join("vendor").join(name)+ };+ println!("cargo:rerun-if-changed={}", source.display());+ let target = out_dir.join(name);+ let _ = fs::remove_dir_all(&target);+ copy(&source, &target).unwrap_or_else(|e| {+ panic!(+ "{}: {e} (libs/cua/scripts/publish-crates.sh vendors it)",+ source.display()+ )+ });+ }+}diff --git a/libs/cua/crates/cua-telemetry/src/schema.rs b/libs/cua/crates/cua-telemetry/src/schema.rsindex 4de722abce..3ae1be1ece 100644--- a/libs/cua/crates/cua-telemetry/src/schema.rs+++ b/libs/cua/crates/cua-telemetry/src/schema.rs@@ -1506,8 +1506,9 @@ pub fn spec(name: &str) -> Option<&'static EventSpec> {// Catalogs// ----------------------------------------------------------------------------const IMAGE_CATALOG_JSON: &str = include_str!("../../../../images/sandbox-images.json");-const TELEPORT_TARGETS_JSON: &str = include_str!("../../cua-teleport/src/ux/targets.json");+const IMAGE_CATALOG_JSON: &str = include_str!(concat!(env!("OUT_DIR"), "/sandbox-images.json"));+const TELEPORT_TARGETS_JSON: &str =+ include_str!(concat!(env!("OUT_DIR"), "/teleport-targets.json"));/// Teleport provider ids (`cua_teleport` providers); a cua-teleport test/// checks the list against the registry.pub const TELEPORT_PROVIDERS: &[&str] = &[diff --git a/libs/cua/crates/cua-vmm/Cargo.toml b/libs/cua/crates/cua-vmm/Cargo.tomlindex 353306d8fa..bbc5ad604b 100644--- a/libs/cua/crates/cua-vmm/Cargo.toml+++ b/libs/cua/crates/cua-vmm/Cargo.toml@@ -1,8 +1,8 @@[package]name = "cua-vmm"-version = "0.1.0"+version.workspace = trueedition = "2024"-license = "MIT"+license.workspace = truerepository = "https://github.com/trycua/cua"description = "Local sandbox runtimes for the cua SDK: Lume, QEMU and OCI containers (gVisor)."@@ -44,6 +44,6 @@ windows-sys = { version = "0.61", features = ["Win32_Foundation", "Win32_Storage[dev-dependencies]# Opt-in QEMU test: the SDK client checks the guest accepts the delivered token.-cua-spacesd-client = { path = "../cua-spacesd-client" }+cua-spacesd-client.workspace = truetempfile = "3"tokio = { version = "1", features = ["full"] }diff --git a/libs/cua/proto/RELEASE-README.md b/libs/cua/proto/RELEASE-README.mdnew file mode 100644index 0000000000..6f116fb19d--- /dev/null+++ b/libs/cua/proto/RELEASE-README.md@@ -0,0 +1,65 @@+# Cua protobuf contract++The `.proto` files of Cua, for calling a Space from any language:++- `cua/env/v1`: **cua-spacesd**, the daemon inside every Cua Space. It serves+ native gRPC (HTTP/2) and gRPC-Web on port **3211**. Start with+ `cua.env.v1.SystemService` (`GetCapabilities`, `Health`),+ `ProcessService` (run commands), `FilesystemService`, and+ `ComputerService` (screenshots, pointer, keyboard).+- `cua/daemon/v1`: the local `cua daemon`.++Every call, reflection included, needs the Space's token as+`authorization: Bearer <token>`. The cua CLI prints a Space's spacesd URL+and token:++```sh+cua sb info <space> --connection --json # .spacesd.url, .spacesd.token+```++## Look around with grpcurl++spacesd has gRPC server reflection on, so grpcurl needs no files:++```sh+TOKEN=... # .spacesd.token+ADDR=127.0.0.1:3211 # host:port of .spacesd.url++grpcurl -plaintext -H "authorization: Bearer $TOKEN" "$ADDR" list+grpcurl -plaintext -H "authorization: Bearer $TOKEN" "$ADDR" describe cua.env.v1.ProcessService+grpcurl -plaintext -H "authorization: Bearer $TOKEN" "$ADDR" cua.env.v1.SystemService/Health+# Run a command (stdout comes back base64-encoded in the stream):+grpcurl -plaintext -H "authorization: Bearer $TOKEN" \+ -d '{"config": {"command": "uname", "args": ["-sr"]}}' \+ "$ADDR" cua.env.v1.ProcessService/StartProcess+```++Or point grpcurl at these files instead of reflection:+`grpcurl -import-path . -proto cua/env/v1/system.proto ...`.+Use TLS (drop `-plaintext`) when the endpoint is `https://`.++## Generate a client with buf++`buf.gen.yaml` generates Go messages and gRPC clients into `gen/go`, and has+commented-out plugins for Java, C# and Python. No Buf account is needed.++```sh+# Set go_package_prefix in buf.gen.yaml to <your module>/gen/go first.+buf generate+```++Without the tarball, generate straight from a git ref:++```sh+buf generate --template buf.gen.yaml \+ "https://github.com/trycua/cua.git#ref=cua-sdk-v<version>,subdir=libs/cua/proto"+```++Plain `protoc` works too: the include root is this directory.++## Rust++Rust gets the same contract from crates.io: `cargo add cua-spacesd-client`+(typed client) or `cargo add cua-proto` (generated types; carries these files).++The contract is versioned with the cua SDK. MIT licensed.diff --git a/libs/cua/proto/buf.gen.yaml b/libs/cua/proto/buf.gen.yamlnew file mode 100644index 0000000000..73a915b9cb--- /dev/null+++ b/libs/cua/proto/buf.gen.yaml@@ -0,0 +1,39 @@+# Generates clients for the Cua contract with `buf generate` (no Buf account+# needed; remote plugins run on buf.build). Works from this directory, from the+# cua-proto-<version>.tar.gz release asset, or straight from a git ref:+#+# buf generate --template buf.gen.yaml \+# https://github.com/trycua/cua.git#ref=main,subdir=libs/cua/proto+#+# Managed mode sets each language's package options, so the .proto files carry+# none. Set go_package_prefix to your Go module path + "/gen/go". Uncomment the+# plugins for the other languages you need.+version: v2+managed:+ enabled: true+ override:+ - file_option: go_package_prefix+ value: example.com/yourapp/gen/go+plugins:+ # Go: messages + gRPC clients (package envv1 in gen/go/cua/env/v1).+ - remote: buf.build/protocolbuffers/go+ out: gen/go+ opt: paths=source_relative+ - remote: buf.build/grpc/go+ out: gen/go+ opt: paths=source_relative+ # Java: messages + gRPC stubs.+ # - remote: buf.build/protocolbuffers/java+ # out: gen/java+ # - remote: buf.build/grpc/java+ # out: gen/java+ # C#: messages + gRPC clients.+ # - remote: buf.build/protocolbuffers/csharp+ # out: gen/csharp+ # - remote: buf.build/grpc/csharp+ # out: gen/csharp+ # Python: messages + gRPC stubs.+ # - remote: buf.build/protocolbuffers/python+ # out: gen/python+ # - remote: buf.build/grpc/python+ # out: gen/pythondiff --git a/libs/cua/scripts/check-proto-tarball.sh b/libs/cua/scripts/check-proto-tarball.shnew file mode 100755index 0000000000..196fded86d--- /dev/null+++ b/libs/cua/scripts/check-proto-tarball.sh@@ -0,0 +1,85 @@+#!/usr/bin/env bash+# Check the cua-proto-<version>.tar.gz release asset the way a user of+# another language uses it: unpack it, `buf build` it, `buf generate` the Go+# client with its own buf.gen.yaml, and compile a program against the+# generated code. With SPACESD_ADDR (host:port, plaintext) and SPACESD_TOKEN+# set, the program also calls SystemService.Health and GetCapabilities on+# that spacesd.+#+# Usage: libs/cua/scripts/check-proto-tarball.sh [<work-dir>]+# Needs: buf (network for the buf.build remote plugins), go.+set -euo pipefail++here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+version="$(tr -d '[:space:]' < "$here/../VERSION")"+work="${1:-$(mktemp -d)}"+mkdir -p "$work"+work="$(cd "$work" && pwd)"++tarball="$("$here/package-proto.sh" "$version" "$work/dist")"+rm -rf "$work/cua-proto-$version" "$work/app"+tar -xzf "$tarball" -C "$work"+src="$work/cua-proto-$version"+test -f "$src/README.md" && test -f "$src/buf.gen.yaml"+(cd "$src" && buf build -o /dev/null)++module="example.com/cuaharness"+sed -i.bak "s#example.com/yourapp/gen/go#$module/gen/go#" "$src/buf.gen.yaml"+(cd "$src" && buf generate)++mkdir -p "$work/app"+mv "$src/gen" "$work/app/gen"+cat > "$work/app/main.go" <<'GO'+// A client of a Space's spacesd built only from cua-proto-<version>.tar.gz.+package main++import (+ "context"+ "fmt"+ "log"+ "os"+ "time"++ envv1 "example.com/cuaharness/gen/go/cua/env/v1"+ "google.golang.org/grpc"+ "google.golang.org/grpc/credentials/insecure"+ "google.golang.org/grpc/metadata"+)++func main() {+ addr := os.Getenv("SPACESD_ADDR")+ if addr == "" {+ fmt.Println("compiled; set SPACESD_ADDR and SPACESD_TOKEN to call a Space")+ return+ }+ conn, err := grpc.NewClient(addr, grpc.WithTransportCredentials(insecure.NewCredentials()))+ if err != nil {+ log.Fatal(err)+ }+ defer conn.Close()+ ctx, cancel := context.WithTimeout(context.Background(), 30*time.Second)+ defer cancel()+ ctx = metadata.AppendToOutgoingContext(ctx, "authorization", "Bearer "+os.Getenv("SPACESD_TOKEN"))+ system := envv1.NewSystemServiceClient(conn)+ health, err := system.Health(ctx, &envv1.HealthRequest{})+ if err != nil {+ log.Fatal(err)+ }+ fmt.Printf("Health: %s, uptime %s\n", health.GetStatus(), health.GetUptime().AsDuration())+ for _, c := range health.GetComponents() {+ fmt.Printf(" %s: %s\n", c.GetName(), c.GetStatus())+ }+ caps, err := system.GetCapabilities(ctx, &envv1.GetCapabilitiesRequest{})+ if err != nil {+ log.Fatal(err)+ }+ fmt.Printf("GetCapabilities: protocol v%d rev %d, %s\n", caps.GetProtocolVersion(), caps.GetProtocolRevision(), caps.GetOs().GetPrettyName())+}+GO+cd "$work/app"+go mod init "$module" >/dev/null 2>&1+go mod tidy >/dev/null+go vet ./...+go build -o cua-proto-go-check .+./cua-proto-go-check+echo "ok: cua-proto-$version.tar.gz builds with buf and generates a compiling Go client ($work)"diff --git a/libs/cua/scripts/package-proto.sh b/libs/cua/scripts/package-proto.shnew file mode 100755index 0000000000..cb6fa29320--- /dev/null+++ b/libs/cua/scripts/package-proto.sh@@ -0,0 +1,33 @@+#!/usr/bin/env bash+# Build cua-proto-<version>.tar.gz, the release asset with the protobuf+# contract for other languages: the .proto files, buf.yaml, buf.gen.yaml and+# a README with grpcurl and `buf generate` examples (proto/RELEASE-README.md).+#+# Usage: libs/cua/scripts/package-proto.sh <version> <out-dir>+set -euo pipefail++version="${1:?usage: package-proto.sh <version> <out-dir>}"+out="${2:?usage: package-proto.sh <version> <out-dir>}"+here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+src="$here/../proto"+name="cua-proto-$version"++stage="$(mktemp -d)"+trap 'rm -rf "$stage"' EXIT+mkdir -p "$stage/$name" "$out"+cp "$src/buf.yaml" "$src/buf.gen.yaml" "$stage/$name/"+cp "$src/RELEASE-README.md" "$stage/$name/README.md"+(cd "$src" && find cua -name '*.proto' | LC_ALL=C sort) | while read -r f; do+ mkdir -p "$stage/$name/$(dirname "$f")"+ cp "$src/$f" "$stage/$name/$f"+done++# Reproducible: fixed order, owner and mtime (the commit time when in git).+mtime="${SOURCE_DATE_EPOCH:-$(git -C "$src" log -1 --format=%ct 2>/dev/null || echo 0)}"+find "$stage/$name" -exec touch -h -d "@$mtime" {} + 2>/dev/null \+ || find "$stage/$name" -exec touch -h -t "$(date -u -r "$mtime" +%Y%m%d%H%M.%S)" {} ++tarball="$(cd "$out" && pwd)/$name.tar.gz"+(cd "$stage" && find "$name" -print | LC_ALL=C sort \+ | tar -cf - --no-recursion -T - --owner=0 --group=0 --numeric-owner) \+ | gzip -n > "$tarball"+echo "$tarball"diff --git a/libs/cua/scripts/publish-crates.sh b/libs/cua/scripts/publish-crates.shnew file mode 100755index 0000000000..f29b0e5892--- /dev/null+++ b/libs/cua/scripts/publish-crates.sh@@ -0,0 +1,138 @@+#!/usr/bin/env bash+# Publish the cua SDK's Rust crates to crates.io: `cua-sdk`,+# `cua-spacesd-client` and every workspace crate they depend on (normal and+# build dependencies), in dependency order. The list is computed from+# `cargo metadata`, so a new dependency of the SDK is published with it.+#+# Usage: libs/cua/scripts/publish-crates.sh [--list | --publish <version>]+# No arguments: `cargo publish --dry-run` for every crate (packages them,+# builds each from its .crate against the others; needs no token).+# --list: print the crates, one per line, and exit.+# --publish <version>: upload every crate not yet on crates.io at+# <version> (a re-run skips those already published); the workspace must+# be at <version>. Needs CARGO_REGISTRY_TOKEN.+#+# Files a crate embeds from elsewhere in the repository (the `FILES` table+# of its build.rs, and cua-proto's .proto files) are copied into the crate+# before packaging and removed again afterwards.+set -euo pipefail++ROOTS=(cua-sdk cua-spacesd-client)++mode="${1:-}"+version="${2:-}"+case "$mode" in+ "" | --list) ;;+ --publish) [[ -n "$version" ]] || { echo "usage: publish-crates.sh [--list | --publish <version>]" >&2; exit 2; } ;;+ *) echo "usage: publish-crates.sh [--list | --publish <version>]" >&2; exit 2 ;;+esac+here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+workspace="$(cd "$here/.." && pwd)"+cd "$workspace"++# name<TAB>version<TAB>crate dir, for every crate to publish.+CRATE_ROWS="$(cargo metadata --format-version 1 --locked | python3 -c '+import json, os, sys+roots = sys.argv[1:]+m = json.load(sys.stdin)+pkgs = {p["id"]: p for p in m["packages"]}+members = set(m["workspace_members"])+nodes = {n["id"]: n for n in m["resolve"]["nodes"]}+by_name = {pkgs[i]["name"]: i for i in members}+seen, stack = set(), [by_name[r] for r in roots]+while stack:+ i = stack.pop()+ if i in seen:+ continue+ seen.add(i)+ for d in nodes[i]["deps"]:+ if d["pkg"] in members and any(k["kind"] in (None, "build") for k in d["dep_kinds"]):+ stack.append(d["pkg"])+for i in sorted(seen, key=lambda i: pkgs[i]["name"]):+ p = pkgs[i]+ print(p["name"], p["version"], os.path.dirname(p["manifest_path"]), sep="\t")+' "${ROOTS[@]}")"++CRATES=()+while IFS=$'\t' read -r name crate_version dir; do+ CRATES+=("$name")+ if [[ -n "$version" && "$crate_version" != "$version" ]]; then+ echo "error: $name is $crate_version, not $version" >&2+ exit 1+ fi+done <<< "$CRATE_ROWS"++if [[ "$mode" == "--list" ]]; then+ printf '%s\n' "${CRATES[@]}"+ exit 0+fi++# Vendor what the crates embed from outside their directories.+vendored=()+cleanup() { [[ ${#vendored[@]} -eq 0 ]] || rm -rf "${vendored[@]}"; }+trap cleanup EXIT+"$here/vendor-crate-protos.sh"+while IFS=$'\t' read -r name _ dir; do+ [[ -f "$dir/build.rs" ]] && grep -q '^const FILES: ' "$dir/build.rs" || continue+ mkdir -p "$dir/vendor"+ vendored+=("$dir/vendor")+ # Rows of the table: ("<repository path from the crate>", "<name>").+ python3 -c '+import re, sys+text = open(sys.argv[1]).read()+table = text[text.index("const FILES: "):]+table = table[: table.index("];")]+for source, name in re.findall(r"\(\s*\"([^\"]+)\",\s*\"([^\"]+)\",?\s*\)", table):+ print(source, name, sep="\t")+' "$dir/build.rs" |+ while IFS=$'\t' read -r source file; do+ cp -R "$dir/$source" "$dir/vendor/$file"+ done+done <<< "$CRATE_ROWS"++package_args=()+for crate in "${CRATES[@]}"; do package_args+=(-p "$crate"); done++# --allow-dirty: the vendored copies are uncommitted files, copied from this+# commit just above.+if [[ "$mode" != "--publish" ]]; then+ # The dry run unpacks each .crate into a local registry under+ # $CARGO_HOME/registry/src/-<hash>/ and builds the dependents against it.+ # cargo treats registry sources as immutable: an earlier dry run's unpacked+ # copy, and the build scripts compiled from it, would be reused even though+ # the crate changed since. Drop both first.+ cargo_home="${CARGO_HOME:-$HOME/.cargo}"+ check_target="$workspace/target/publish-check"+ for crate in "${CRATES[@]}"; do+ rm -rf "$cargo_home"/registry/src/-*/"$crate"-[0-9]* \+ "$check_target"/*/build/"$crate"-* "$check_target"/*/.fingerprint/"$crate"-*+ done+ CARGO_TARGET_DIR="$check_target" cargo publish --dry-run --locked --allow-dirty "${package_args[@]}"+ echo "dry run: ${#CRATES[@]} crates packaged and verified, nothing uploaded: ${CRATES[*]}"+ exit 0+fi++: "${CARGO_REGISTRY_TOKEN:?CARGO_REGISTRY_TOKEN is required to publish}"+published() {+ [[ "$(curl -sS -o /dev/null -w '%{http_code}' \+ -A 'trycua/cua release (https://github.com/trycua/cua)' \+ "https://crates.io/api/v1/crates/$1/$2")" == 200 ]]+}+pending=()+for crate in "${CRATES[@]}"; do+ if published "$crate" "$version"; then+ echo "$crate $version is already on crates.io; skipping"+ else+ pending+=(-p "$crate")+ fi+done+if [[ ${#pending[@]} -eq 0 ]]; then+ echo "every crate is already on crates.io at $version"+ exit 0+fi+# One invocation: cargo orders the crates and waits for each to reach the+# index before publishing the ones that depend on it. --no-verify: the+# release's dry run (protos-and-crates in cd-cua-sdk.yml) built every crate+# from its package at this commit already; building them again here would+# only make a partial publish (a timeout halfway) more likely.+cargo publish --locked --allow-dirty --no-verify "${pending[@]}"diff --git a/libs/cua/scripts/vendor-crate-protos.sh b/libs/cua/scripts/vendor-crate-protos.shnew file mode 100755index 0000000000..de2044515f--- /dev/null+++ b/libs/cua/scripts/vendor-crate-protos.sh@@ -0,0 +1,18 @@+#!/usr/bin/env bash+# Copy the contract (libs/cua/proto: the .proto files and buf.yaml) into+# crates/cua-proto/proto so `cargo package` / `cargo publish` ship it inside+# the cua-proto crate. The copy is git-ignored; in the repository the build+# always reads libs/cua/proto, so a stale copy is never compiled here.+#+# Usage: libs/cua/scripts/vendor-crate-protos.sh+set -euo pipefail++here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"+src="$here/../proto"+dst="$here/../crates/cua-proto/proto"++rm -rf "$dst"+mkdir -p "$dst"+cp "$src/buf.yaml" "$dst/"+(cd "$src" && find cua -name '*.proto' -print0 | xargs -0 -I{} sh -c 'mkdir -p "$1/$(dirname "$2")" && cp "$2" "$1/$2"' _ "$dst" {})+echo "vendored $(find "$dst" -name '*.proto' | wc -l | tr -d ' ') .proto files into ${dst#"$here/../"}"diff --git a/libs/images/tools/cua-image-pack/Cargo.lock b/libs/images/tools/cua-image-pack/Cargo.lockindex 2f151dc89a..5848254362 100644--- a/libs/images/tools/cua-image-pack/Cargo.lock+++ b/libs/images/tools/cua-image-pack/Cargo.lock@@ -338,14 +338,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -379,7 +379,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",diff --git a/release-please-config.json b/release-please-config.jsonindex 0eb18b91b4..bfd1c533b5 100644--- a/release-please-config.json+++ b/release-please-config.json@@ -289,6 +289,14 @@"type": "json","path": "typescript/package-lock.json","jsonpath": "$.packages[''].version"+ },+ {+ "type": "generic",+ "path": "Cargo.toml"+ },+ {+ "type": "generic",+ "path": "crates/cua-sdk/Cargo.toml"}]},diff --git a/tests/e2e/cua-sdk/rust/Cargo.lock b/tests/e2e/cua-sdk/rust/Cargo.lockindex 1655a9eddb..a98d508dbb 100644--- a/tests/e2e/cua-sdk/rust/Cargo.lock+++ b/tests/e2e/cua-sdk/rust/Cargo.lock@@ -1193,7 +1193,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -1209,7 +1209,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -1225,7 +1225,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -1247,7 +1247,7 @@ dependencies = [[[package]]name = "cua-byoc"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","aws-config",@@ -1272,7 +1272,7 @@ dependencies = [[[package]]name = "cua-contrib"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1290,14 +1290,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1339,7 +1339,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -1353,7 +1353,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -1361,7 +1361,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1386,7 +1386,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -1394,7 +1394,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -1406,7 +1406,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1431,7 +1431,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -1461,13 +1461,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -1476,7 +1477,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -1505,7 +1506,7 @@ dependencies = [[[package]]name = "cua-sdk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -1553,7 +1554,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -1601,7 +1602,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars","serde",@@ -1610,7 +1611,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -1646,7 +1647,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -1659,7 +1660,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2473,7 +2474,7 @@ dependencies = ["js-sys","log","wasm-bindgen",- "windows-core 0.58.0",+ "windows-core",][[package]]@@ -2870,6 +2871,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.3"@@ -2888,6 +2921,28 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width 0.1.14",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -3406,6 +3461,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -3415,6 +3482,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -4453,7 +4547,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "6ecfad6c3abc80a577f2b91c1e412ee57e7a060d430b553c1b0c940974ebcd49"dependencies = ["smawk",- "unicode-width",+ "unicode-width 0.2.2",][[package]]@@ -4924,6 +5018,12 @@ dependencies = ["tinyvec",]+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-width"version = "0.2.2"@@ -5387,7 +5487,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9babd3a767a4c1aef6900409f85f5d53ce2544ccdfaa86dad48c91782c6d6893"dependencies = ["windows-collections",- "windows-core 0.61.2",+ "windows-core","windows-future","windows-link 0.1.3","windows-numerics",@@ -5399,20 +5499,7 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "3beeceb5e5cfd9eb1d76b381630e82c4241ccd0d27f1a39ed41b2760b255c5e8"dependencies = [- "windows-core 0.61.2",-]--[[package]]-name = "windows-core"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "6ba6d44ec8c2591c134257ce647b7ea6b20335bf6379a27dac5f1641fcf59f99"-dependencies = [- "windows-implement 0.58.0",- "windows-interface 0.58.0",- "windows-result 0.2.0",- "windows-strings 0.1.0",- "windows-targets 0.52.6",+ "windows-core",][[package]]@@ -5421,11 +5508,11 @@ version = "0.61.2"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "c0fdd3ddb90610c7638aa2b3a3ab2904fb9e5cdbecc643ddb3647212781c4ae3"dependencies = [- "windows-implement 0.60.2",- "windows-interface 0.59.3",+ "windows-implement",+ "windows-interface","windows-link 0.1.3",- "windows-result 0.3.4",- "windows-strings 0.4.2",+ "windows-result",+ "windows-strings",][[package]]@@ -5434,22 +5521,11 @@ version = "0.2.1"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "fc6a41e98427b19fe4b73c550f060b59fa592d7d686537eebf9385621bfbad8e"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3","windows-threading",]-[[package]]-name = "windows-implement"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "2bbd5b46c938e506ecbce286b6628a02171d56153ba733b6c741fc627ec9579b"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-implement"version = "0.60.2"@@ -5461,17 +5537,6 @@ dependencies = ["syn 2.0.119",]-[[package]]-name = "windows-interface"-version = "0.58.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "053c4c462dc91d3b1504c6fe5a726dd15e216ba718e84a0e46a88fbe5ded3515"-dependencies = [- "proc-macro2",- "quote",- "syn 2.0.119",-]-[[package]]name = "windows-interface"version = "0.59.3"@@ -5501,19 +5566,10 @@ version = "0.2.0"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "9150af68066c4c5c07ddc0ce30421554771e528bde427614c61038bc2c92c2b1"dependencies = [- "windows-core 0.61.2",+ "windows-core","windows-link 0.1.3",]-[[package]]-name = "windows-result"-version = "0.2.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "1d1043d8214f791817bab27572aaa8af63732e11bf84aa21a45a78d6c317ae0e"-dependencies = [- "windows-targets 0.52.6",-]-[[package]]name = "windows-result"version = "0.3.4"@@ -5523,16 +5579,6 @@ dependencies = ["windows-link 0.1.3",]-[[package]]-name = "windows-strings"-version = "0.1.0"-source = "registry+https://github.com/rust-lang/crates.io-index"-checksum = "4cd9b125c486025df0eabcb585e62173c6c9eddcec5d117d3b6e8c30e2ee4d10"-dependencies = [- "windows-result 0.2.0",- "windows-targets 0.52.6",-]-[[package]]name = "windows-strings"version = "0.4.2"diff --git a/tests/e2e/local-runtimes/Cargo.lock b/tests/e2e/local-runtimes/Cargo.lockindex 9e6f807320..93aa9618c2 100644--- a/tests/e2e/local-runtimes/Cargo.lock+++ b/tests/e2e/local-runtimes/Cargo.lock@@ -611,7 +611,7 @@ dependencies = [[[package]]name = "cua-agent-setup"-version = "0.1.0"+version = "0.5.0"dependencies = ["chrono","hex",@@ -627,7 +627,7 @@ dependencies = [[[package]]name = "cua-agents"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-agent-setup","cua-proto",@@ -643,7 +643,7 @@ dependencies = [[[package]]name = "cua-auth"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","chrono",@@ -665,14 +665,14 @@ dependencies = [[[package]]name = "cua-create-failure"-version = "0.1.0"+version = "0.5.0"dependencies = ["serde",][[package]]name = "cua-daemon"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -711,7 +711,7 @@ dependencies = [[[package]]name = "cua-disk"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bollard",@@ -741,7 +741,7 @@ dependencies = [[[package]]name = "cua-home"-version = "0.1.0"+version = "0.5.0"dependencies = ["libc","windows-sys 0.61.2",@@ -749,7 +749,7 @@ dependencies = [[[package]]name = "cua-host"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -774,7 +774,7 @@ dependencies = [[[package]]name = "cua-hotspot"-version = "0.1.0"+version = "0.5.0"dependencies = ["futures-util","tokio",@@ -782,7 +782,7 @@ dependencies = [[[package]]name = "cua-icon-cache"-version = "0.1.0"+version = "0.5.0"dependencies = ["cua-home","hex",@@ -794,7 +794,7 @@ dependencies = [[[package]]name = "cua-image"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -819,7 +819,7 @@ dependencies = [[[package]]name = "cua-mesh"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","boringtun",@@ -849,13 +849,14 @@ dependencies = [[[package]]name = "cua-proto"-version = "0.1.0"+version = "0.5.0"dependencies = ["pbjson","pbjson-build","pbjson-types","prost","prost-build",+ "protox","serde","tonic","tonic-prost",@@ -864,7 +865,7 @@ dependencies = [[[package]]name = "cua-sandbox-core"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","bytes",@@ -893,7 +894,7 @@ dependencies = [[[package]]name = "cua-spaces"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","axum",@@ -941,7 +942,7 @@ dependencies = [[[package]]name = "cua-spaces-contract"-version = "0.1.0"+version = "0.5.0"dependencies = ["schemars","serde",@@ -950,7 +951,7 @@ dependencies = [[[package]]name = "cua-spacesd-client"-version = "0.1.0"+version = "0.5.0"dependencies = ["base64 0.22.1","bytes",@@ -986,7 +987,7 @@ dependencies = [[[package]]name = "cua-telemetry"-version = "0.1.0"+version = "0.5.0"dependencies = ["hex","rand 0.9.5",@@ -999,7 +1000,7 @@ dependencies = [[[package]]name = "cua-vmm"-version = "0.1.0"+version = "0.5.0"dependencies = ["async-trait","base64 0.22.1",@@ -2106,6 +2107,38 @@ version = "0.4.34"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "f9f8bd3e56ce4dfc153cf470fffbfa98c7620958b312ca5c3a4b8d5181fd13c6"+[[package]]+name = "logos"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "eb2c55a318a87600ea870ff8c2012148b44bf18b74fad48d0f835c38c7d07c5f"+dependencies = [+ "logos-derive",+]++[[package]]+name = "logos-codegen"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "58b3ffaa284e1350d017a57d04ada118c4583cf260c8fb01e0fe28a2e9cf8970"+dependencies = [+ "fnv",+ "proc-macro2",+ "quote",+ "regex-automata",+ "regex-syntax",+ "syn 2.0.119",+]++[[package]]+name = "logos-derive"+version = "0.16.1"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "52d3a9855747c17eaf4383823f135220716ab49bea5fbea7dd42cc9a92f8aa31"+dependencies = [+ "logos-codegen",+]+[[package]]name = "lru-slab"version = "0.1.3"@@ -2133,6 +2166,28 @@ version = "2.8.3"source = "registry+https://github.com/rust-lang/crates.io-index"checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"+[[package]]+name = "miette"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "5f98efec8807c63c752b5bd61f862c165c115b0a35685bdcfd9238c7aeb592b7"+dependencies = [+ "cfg-if",+ "miette-derive",+ "unicode-width",+]++[[package]]+name = "miette-derive"+version = "7.6.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "db5b29714e950dbb20d5e6f74f9dcec4edbcc1067bb7f8ed198c097b8c1a818b"+dependencies = [+ "proc-macro2",+ "quote",+ "syn 2.0.119",+]+[[package]]name = "mime"version = "0.3.17"@@ -2602,6 +2657,18 @@ dependencies = ["syn 2.0.119",]+[[package]]+name = "prost-reflect"+version = "0.16.5"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "01b80ea363c31af2de2b92e3c07ed1156628f7838c4afb4df75ee78a37fedbd1"+dependencies = [+ "logos",+ "miette",+ "prost",+ "prost-types",+]+[[package]]name = "prost-types"version = "0.14.4"@@ -2611,6 +2678,33 @@ dependencies = ["prost",]+[[package]]+name = "protox"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "f43240d7f22cf77d1625885e547acf874dd63cd2790f29f4a38e86256f41996f"+dependencies = [+ "bytes",+ "miette",+ "prost",+ "prost-reflect",+ "prost-types",+ "protox-parse",+ "thiserror 2.0.20",+]++[[package]]+name = "protox-parse"+version = "0.10.0"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "34efee6fad0cf6d71642d20a66bfe0c281919c9577e7c66d20360dfcb7549272"+dependencies = [+ "logos",+ "miette",+ "prost-types",+ "thiserror 2.0.20",+]+[[package]]name = "pulldown-cmark"version = "0.13.4"@@ -3988,6 +4082,12 @@ dependencies = ["tinyvec",]+[[package]]+name = "unicode-width"+version = "0.1.14"+source = "registry+https://github.com/rust-lang/crates.io-index"+checksum = "7dd6e30e90baa6f72411720665d41d89b9a3d039dc45b8faea1ddd07f617f6af"+[[package]]name = "unicode-xid"version = "0.2.6"