Skip to content

Control a real USB-connected iPhone from Linux (no Mac, no paid developer account) and expose it to AI agents as MCP tools

D 方案设计:文档与 Cargo workspace 骨架

Derrors291e3f88187a
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..3219996
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,12 @@
+/target
+**/*.rs.bk
+# 运行时数据和秘密,永远不进仓库
+/data/
+/secrets/
+*.p12
+*.mobileprovision
+*.pem
+*.ipa
+notify.toml
+config.toml
+!/docs/**
diff --git a/Cargo.lock b/Cargo.lock
new file mode 100644
index 0000000..6f412e1
--- /dev/null
+++ b/Cargo.lock
@@ -0,0 +1,4813 @@
+# This file is automatically @generated by Cargo.
+# It is not intended for manual editing.
+version = 4
+
+[[package]]
+name = "adler2"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "320119579fcad9c21884f5c4861d16174d0e06250625266f50fe6898340abefa"
+
+[[package]]
+name = "ahash"
+version = "0.8.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a15f179cd60c4584b8a8c596927aadc462e27f2ca70c04e0071964a73ba7a75"
+dependencies = [
+ "cfg-if",
+ "once_cell",
+ "version_check",
+ "zerocopy",
+]
+
+[[package]]
+name = "aho-corasick"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c982642fa9e8606056828ee9a8505737230110bb1099153c79efe865c59d12ba"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "android_system_properties"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae221649c9976a6f6c56ae1facf410f3ddb33cc661c4b7b61020a912d4237fbc"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "anstream"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
+dependencies = [
+ "anstyle",
+ "anstyle-parse",
+ "anstyle-query",
+ "anstyle-wincon",
+ "colorchoice",
+ "is_terminal_polyfill",
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle"
+version = "1.0.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
+
+[[package]]
+name = "anstyle-parse"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
+dependencies = [
+ "utf8parse",
+]
+
+[[package]]
+name = "anstyle-query"
+version = "1.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "anstyle-wincon"
+version = "3.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
+dependencies = [
+ "anstyle",
+ "once_cell_polyfill",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "anyhow"
+version = "1.0.104"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "330a5ed07fa54e4702c9d6c4174f74427fc0ef6e214bbd677ae50a5099946470"
+
+[[package]]
+name = "apple-bundles"
+version = "0.21.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0f40bb8f844cec39fa3aceae717808c2ac3d2b6c474a9dffbeba07a4a945d10"
+dependencies = [
+ "anyhow",
+ "plist",
+ "simple-file-manifest",
+ "walkdir",
+]
+
+[[package]]
+name = "apple-codesign"
+version = "0.29.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f24e9ebdb70a2aee3ca1cea217009fb50776955f0d7678c31d22e48c1524667f"
+dependencies = [
+ "anyhow",
+ "apple-bundles",
+ "apple-flat-package",
+ "apple-xar",
+ "base64 0.22.1",
+ "bcder",
+ "bitflags 2.13.2",
+ "bytes",
+ "chrono",
+ "clap",
+ "cryptographic-message-syntax",
+ "der",
+ "dialoguer",
+ "difference",
+ "digest",
+ "dirs",
+ "elliptic-curve",
+ "env_logger",
+ "figment",
+ "filetime",
+ "glob",
+ "goblin",
+ "hex",
+ "log",
+ "md-5",
+ "minicbor",
+ "num-traits",
+ "object",
+ "oid-registry",
+ "once_cell",
+ "p12",
+ "p256",
+ "pem",
+ "pkcs1",
+ "pkcs8",
+ "plist",
+ "rand 0.8.8",
+ "rasn",
+ "rayon",
+ "regex",
+ "reqwest 0.12.28",
+ "ring",
+ "rsa",
+ "scroll",
+ "security-framework 2.11.1",
+ "security-framework-sys",
+ "semver",
+ "serde",
+ "serde_json",
+ "serde_yaml",
+ "sha2",
+ "signature",
+ "simple-file-manifest",
+ "spake2",
+ "spki",
+ "subtle",
+ "tempfile",
+ "thiserror 2.0.21",
+ "tokio",
+ "tungstenite",
+ "uuid",
+ "walkdir",
+ "widestring",
+ "windows-sys 0.59.0",
+ "x509",
+ "x509-certificate",
+ "xml-rs",
+ "yasna",
+ "zeroize",
+ "zip",
+ "zip_structs",
+]
+
+[[package]]
+name = "apple-flat-package"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9c9d5a1fd8af4a376cc33d7e816a13f8ce127d52101f5dbc8061fb595397bea0"
+dependencies = [
+ "apple-xar",
+ "cpio-archive",
+ "flate2",
+ "scroll",
+ "serde",
+ "serde-xml-rs",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "apple-xar"
+version = "0.20.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9631e781df71ebd049d7b4988cdae88712324cb20eb127fd79026bc8f1335d93"
+dependencies = [
+ "base64 0.22.1",
+ "bcder",
+ "bzip2",
+ "chrono",
+ "cryptographic-message-syntax",
+ "digest",
+ "flate2",
+ "log",
+ "md-5",
+ "rand 0.8.8",
+ "reqwest 0.12.28",
+ "scroll",
+ "serde",
+ "serde-xml-rs",
+ "sha1",
+ "sha2",
+ "signature",
+ "thiserror 2.0.21",
+ "url",
+ "x509-certificate",
+ "xml-rs",
+ "xz2",
+]
+
+[[package]]
+name = "arbitrary"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3bc62ac97cc33321f50863d514c3bc38a453947a8f9e781137e47c7401020aed"
+dependencies = [
+ "derive_arbitrary",
+]
+
+[[package]]
+name = "arrayvec"
+version = "0.7.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3fb67a6e08acf24fdeccbac2cb6ac4305825bd1f117462e0e6f2f193345ad56"
+
+[[package]]
+name = "asn1-rs"
+version = "0.6.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5493c3bedbacf7fd7382c6346bbd66687d12bbaad3a89a2d2c303ee6cf20b048"
+dependencies = [
+ "asn1-rs-derive",
+ "asn1-rs-impl",
+ "displaydoc",
+ "nom",
+ "num-traits",
+ "rusticata-macros",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "asn1-rs-derive"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "965c2d33e53cb6b267e148a4cb0760bc01f4904c1cd4bb4002a085bb016d1490"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "synstructure 0.13.2",
+]
+
+[[package]]
+name = "asn1-rs-impl"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b18050c2cd6fe86c3a76584ef5e0baf286d038cda203eb6223df2cc413565f7"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "async-compression"
+version = "0.4.51"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9d5755640120b24961f8231e05892e4a4f7e0d04e8aeca161508c9c397946970"
+dependencies = [
+ "compression-codecs",
+ "compression-core",
+ "futures-io",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-stream"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b5a71a6f37880a80d1d7f19efd781e4b5de42c88f0722cc13bcb6cc2cfe8476"
+dependencies = [
+ "async-stream-impl",
+ "futures-core",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "async-stream-impl"
+version = "0.3.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c7c24de15d275a1ecfd47a380fb4d5ec9bfe0933f309ed5e705b775596a3574d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "async_zip"
+version = "0.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d8c50d65ce1b0e0cb65a785ff615f78860d7754290647d3b983208daa4f85e6"
+dependencies = [
+ "async-compression",
+ "crc32fast",
+ "futures-lite",
+ "pin-project",
+ "thiserror 2.0.21",
+ "tokio",
+ "tokio-util",
+]
+
+[[package]]
+name = "atomic"
+version = "0.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89cbf775b137e9b968e67227ef7f775587cde3fd31b0d8599dbd0f598a48340"
+dependencies = [
+ "bytemuck",
+]
+
+[[package]]
+name = "atomic-waker"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1505bd5d3d116872e7271a6d4e16d81d0c8570876c8de68093a09ac269d8aac0"
+
+[[package]]
+name = "autocfg"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f2032f911046de80f0a198e0901378627c33f59ea0ac00e363d481118bd70a53"
+
+[[package]]
+name = "base16ct"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4c7f02d4ea65f2c1853089ffd8d2787bdbc63de2f0d29dedbcf8ccdfa0ccd4cf"
+
+[[package]]
+name = "base64"
+version = "0.22.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72b3254f16251a8381aa12e40e3c4d2f0199f8c6508fbecb9d91f575e0fbb8c6"
+
+[[package]]
+name = "base64"
+version = "0.23.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ac07cdecf99051d9a5238b80f35af32cdeba5b336e55d957b318b50137e18da5"
+
+[[package]]
+name = "base64ct"
+version = "1.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2af50177e190e07a26ab74f8b1efbfe2ef87da2116221318cb1c2e82baf7de06"
+
+[[package]]
+name = "bcder"
+version = "0.7.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b593e5aeaf7992d388c08a9831c921cd703718064b3e50ba8e6d666d6cf86ca7"
+dependencies = [
+ "bytes",
+ "smallvec",
+]
+
+[[package]]
+name = "bitflags"
+version = "1.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bef38d45163c2f1dde094a7dfd33ccf595c92905c8f8f4fdc18d06fb1037718a"
+
+[[package]]
+name = "bitflags"
+version = "2.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ded4057c258ba199e2d26386d3af3780957ecaee6c4ef4041c6b4b8b97c0b06"
+
+[[package]]
+name = "bitvec"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddcec3d12c579d40898fe0a9a358a803c23e9c52ca3c425707f81c9436211837"
+dependencies = [
+ "funty",
+ "radium",
+ "tap",
+ "wyz",
+]
+
+[[package]]
+name = "bitvec-nom2"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d988fcc40055ceaa85edc55875a08f8abd29018582647fd82ad6128dba14a5f0"
+dependencies = [
+ "bitvec",
+ "nom",
+]
+
+[[package]]
+name = "block-buffer"
+version = "0.10.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3078c7629b62d3f0439517fa394996acacc5cbc91c5a20d8c658e77abd503a71"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "block-padding"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8894febbff9f758034a5b8e12d87918f56dfc64a8e1fe757d65e29041538d93"
+dependencies = [
+ "generic-array",
+]
+
+[[package]]
+name = "bumpalo"
+version = "3.20.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72f5acc6cb2ba439de613abc23857ec3d78374d8ed5ac84e9d11336e87da8649"
+
+[[package]]
+name = "bytemuck"
+version = "1.25.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "95832e849adfb21180ccb6826a99da14e5d266ae5c2e668e1602cf234f153797"
+
+[[package]]
+name = "byteorder"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fd0f2584146f6f2ef48085050886acf353beff7305ebd1ae69500e27c67f64b"
+
+[[package]]
+name = "byteorder-lite"
+version = "0.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f1fe948ff07f4bd06c30984e69f5b4899c516a3ef74f34df92a2df2ab535495"
+
+[[package]]
+name = "bytes"
+version = "1.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fc652a48c352aef3ea3aed32080501cf3ef6ed5da78602a020c991775b0aff04"
+
+[[package]]
+name = "bytesize"
+version = "1.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2e93abca9e28e0a1b9877922aacb20576e05d4679ffa78c3d6dc22a26a216659"
+
+[[package]]
+name = "bzip2"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdb116a6ef3f6c3698828873ad02c3014b3c85cadb88496095628e3ef1e347f8"
+dependencies = [
+ "bzip2-sys",
+ "libc",
+]
+
+[[package]]
+name = "bzip2-sys"
+version = "0.1.13+1.0.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "225bff33b2141874fe80d71e07d6eec4f85c5c216453dd96388240f96e1acc14"
+dependencies = [
+ "cc",
+ "pkg-config",
+]
+
+[[package]]
+name = "cbc"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "26b52a9543ae338f279b96b0b9fed9c8093744685043739079ce85cd58f289a6"
+dependencies = [
+ "cipher",
+]
+
+[[package]]
+name = "cc"
+version = "1.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "86e055fa6e3e40ad6187ba25b6855eeb635d5271f8e0f0e1e9a5826b8d75bea0"
+dependencies = [
+ "find-msvc-tools",
+ "shlex",
+]
+
+[[package]]
+name = "cfg-if"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7648175b45a9a48536d676f68d918270699102aa8dab5496df06904c914600"
+
+[[package]]
+name = "cfg_aliases"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f079e83a288787bcd14a6aea84cee5c87a67c5a3e660c30f557a3d24761b3527"
+
+[[package]]
+name = "chacha20"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65c35e4b699c7e15ccbe7ee35c005e4fc0a278d22238a2857e6ce2dadeda1b06"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.3.1",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "chrono"
+version = "0.4.45"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1aa79e62e7697b8e29b513a68abacf485adcd1fe8284a4316c5ae868e6633327"
+dependencies = [
+ "iana-time-zone",
+ "js-sys",
+ "num-traits",
+ "serde",
+ "wasm-bindgen",
+ "windows-link",
+]
+
+[[package]]
+name = "cipher"
+version = "0.4.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773f3b9af64447d2ce9850330c473515014aa235e6a783b02db81ff39e4a3dad"
+dependencies = [
+ "crypto-common",
+ "inout",
+]
+
+[[package]]
+name = "clap"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aa8876b300ab35ba921adea3dfd70157a46249b33f95c9084ae5709785478946"
+dependencies = [
+ "clap_builder",
+ "clap_derive",
+]
+
+[[package]]
+name = "clap_builder"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0797fb7aeb1406c84efac526901f7ec3ead2124f946b494e72879d4b54704d"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "clap_lex",
+ "strsim",
+]
+
+[[package]]
+name = "clap_derive"
+version = "4.6.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f9c751b79415d4e559e3d1fcf128e09e720eb673a06d26cf6f392d37d75b66e0"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "clap_lex"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c133bc6a41be0d194c306b5506d15e6feeea7b1d6604bd3f8310dfb2ca96486"
+
+[[package]]
+name = "colorchoice"
+version = "1.0.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
+
+[[package]]
+name = "compression-codecs"
+version = "0.4.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cae36683101b2899f48bd31f8db9839437356188e3b1ff23096e73dab09ba8fe"
+dependencies = [
+ "compression-core",
+ "flate2",
+]
+
+[[package]]
+name = "compression-core"
+version = "0.4.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ebdda89edc534bf8d5dd2857562633b6495557e5846552ade994b99ed13c36a"
+
+[[package]]
+name = "console"
+version = "0.15.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "054ccb5b10f9f2cbf51eb355ca1d05c2d279ce1804688d0db74b4733a5aeafd8"
+dependencies = [
+ "encode_unicode",
+ "libc",
+ "once_cell",
+ "unicode-width",
+ "windows-sys 0.59.0",
+]
+
+[[package]]
+name = "const-oid"
+version = "0.9.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2459377285ad874054d797f3ccebf984978aa39129f6eafde5cdc8315b612f8"
+
+[[package]]
+name = "const_panic"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9603f79528ece8163c496f8932121cb36cfe46259e9c907bb3d8205139d7caa3"
+dependencies = [
+ "typewit",
+]
+
+[[package]]
+name = "cookie-factory"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9885fa71e26b8ab7855e2ec7cae6e9b380edff76cd052e07c683a0319d51b3a2"
+dependencies = [
+ "futures",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.9.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "91e195e091a93c46f7102ec7818a2aa394e1e1771c3ab4825963fa03e45afb8f"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2a6cd9ae233e7f62ba4e9353e81a88df7fc8a5987b8d445b4d90c879bd156f6"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "core-foundation-sys"
+version = "0.8.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "773648b94d0e5d620f64f280777445740e61fe701025087ec8b57f45c791888b"
+
+[[package]]
+name = "cpio-archive"
+version = "0.10.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f11d34b07689c21889fc89bd7cc885b3244b0157bbededf4a1c159832cd0df05"
+dependencies = [
+ "chrono",
+ "is_executable",
+ "simple-file-manifest",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "cpufeatures"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "59ed5838eebb26a2bb2e58f6d5b5316989ae9d08bab10e0e6d103e656d1b0280"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "cpufeatures"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5ca28b0ae3115b884660db4118d803791fd6756b6e88f39c0f3f7859060d7566"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "crc32fast"
+version = "1.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ba106e844045ddc02c20768ac4b0b7cb45f2cc2ecbd833ac9f5dacb183c2055"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "crossbeam-deque"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "622f3fc73690be383c7214310406f28a90e6edeadc3cea882f9d71e495b9711a"
+dependencies = [
+ "crossbeam-epoch",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-epoch"
+version = "0.9.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc74980687109a3b14c72fd458107bf0baa1da1a1a805e178d15501ba9b86d9d"
+dependencies = [
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "crossbeam-utils"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a31eee39dddec8330830986fcd7625edb5a24ec90ea038215273bbc3adb08ac6"
+
+[[package]]
+name = "crypto-bigint"
+version = "0.5.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0dc92fb57ca44df6db8059111ab3af99a63d5d0f8375d9972e319a379c6bab76"
+dependencies = [
+ "generic-array",
+ "rand_core 0.6.4",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "crypto-common"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78c8292055d1c1df0cce5d180393dc8cce0abec0a7102adb6c7b1eef6016d60a"
+dependencies = [
+ "generic-array",
+ "typenum",
+]
+
+[[package]]
+name = "cryptographic-message-syntax"
+version = "0.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97a99e58d7755c646cb3f2a138d99f90da4c495282e1700b82daff8a48759ce0"
+dependencies = [
+ "bcder",
+ "bytes",
+ "chrono",
+ "hex",
+ "pem",
+ "reqwest 0.12.28",
+ "ring",
+ "signature",
+ "x509-certificate",
+]
+
+[[package]]
+name = "curve25519-dalek"
+version = "4.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97fb8b7c4503de7d6ae7b42ab72a5a59857b4c937ec27a3d4539dba95b5ab2be"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "curve25519-dalek-derive",
+ "fiat-crypto",
+ "rand_core 0.6.4",
+ "rustc_version",
+ "subtle",
+]
+
+[[package]]
+name = "curve25519-dalek-derive"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f46882e17999c6cc590af592290432be3bce0428cb0d5f8b6715e4dc7b383eb3"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "darling"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed17f5901b6630b993ca003def43f2f8ef4014fc13b047b57aad617ff32bc2ec"
+dependencies = [
+ "darling_core",
+ "darling_macro",
+]
+
+[[package]]
+name = "darling_core"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6837e2cf7485aaae18f86181d2f0e9a7ed297a025e220aeabf63fdebd3a2ddff"
+dependencies = [
+ "ident_case",
+ "proc-macro2",
+ "quote",
+ "strsim",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "darling_macro"
+version = "0.24.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ac7135c3ef02b2f7833bbeb1be5ba7f966dcde8a87c6b87f65a778d71a02785"
+dependencies = [
+ "darling_core",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "data-encoding"
+version = "2.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4583a4551df46e2792f82ceeac45e850d2e2d5debba0b91f102385cda5b11f06"
+
+[[package]]
+name = "defmt"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4a0795ac740cb54d7b3775c9c17345f6aaecf884c01733b39d6017738e0e3e1"
+dependencies = [
+ "bitflags 1.3.2",
+ "defmt-macros",
+]
+
+[[package]]
+name = "defmt-macros"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "840bb056bd99c495c9188198a258ab787c79f306d864db3e6e8451442d6d8366"
+dependencies = [
+ "defmt-parser",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "defmt-parser"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "71958f69fb2de856c5dd51ac9377e986ca1aa5919f931bf5395a807277f889a0"
+dependencies = [
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "der"
+version = "0.7.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7c1832837b905bbfb5101e07cc24c8deddf52f93225eee6ead5f4d63d53ddcb"
+dependencies = [
+ "const-oid",
+ "der_derive",
+ "flagset",
+ "pem-rfc7468",
+ "zeroize",
+]
+
+[[package]]
+name = "der_derive"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8034092389675178f570469e6c3b0465d3d30b4505c294a6550db47f3c17ad18"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "deranged"
+version = "0.5.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e9de72ce2ad1f90dc62fa25f0f430ef85eb4b0d8fa0be4f30373bc40a21d28e"
+
+[[package]]
+name = "derive_arbitrary"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1b034bd7d5f032402a2479444dcc6f74e36a03f31854d41680fb240ef682a1ac"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "des"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ffdd80ce8ce993de27e9f063a444a4d53ce8e8db4c1f00cc03af5ad5a9867a1e"
+dependencies = [
+ "cipher",
+]
+
+[[package]]
+name = "dialoguer"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "658bce805d770f407bc62102fca7c2c64ceef2fbcb2b8bd19d2765ce093980de"
+dependencies = [
+ "console",
+ "shell-words",
+ "tempfile",
+ "thiserror 1.0.69",
+ "zeroize",
+]
+
+[[package]]
+name = "difference"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "524cbf6897b527295dff137cec09ecf3a05f4fddffd7dfcd1585403449e74198"
+
+[[package]]
+name = "digest"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9ed9a281f7bc9b7576e61468ba615a66a5c8cfdff42420a70aa82701a3b1e292"
+dependencies = [
+ "block-buffer",
+ "const-oid",
+ "crypto-common",
+ "subtle",
+]
+
+[[package]]
+name = "dirs"
+version = "5.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "44c45a9d03d6676652bcb5e724c7e988de1acad23a711b5217ab9cbecbec2225"
+dependencies = [
+ "dirs-sys",
+]
+
+[[package]]
+name = "dirs-sys"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "520f05a5cbd335fae5a99ff7a6ab8627577660ee5cfd6a94a6a929b52ff0321c"
+dependencies = [
+ "libc",
+ "option-ext",
+ "redox_users",
+ "windows-sys 0.48.0",
+]
+
+[[package]]
+name = "displaydoc"
+version = "0.2.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c6232dd377dcc64799954cbd3a9bb882e9cdc1308ccd87b1c098f1fb2eaf82a8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "dyn-clone"
+version = "1.0.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0881ea181b1df73ff77ffaaf9c7544ecc11e82fba9b5f27b262a3c73a332555"
+
+[[package]]
+name = "ecdsa"
+version = "0.16.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee27f32b5c5292967d2d4a9d7f1e0b0aed2c15daded5a60300e4abb9d8020bca"
+dependencies = [
+ "der",
+ "digest",
+ "elliptic-curve",
+ "signature",
+ "spki",
+]
+
+[[package]]
+name = "either"
+version = "1.19.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e9c71c2167ca323c882b99918929403426e2373ea17242ff5653e0d5e1058be"
+
+[[package]]
+name = "elliptic-curve"
+version = "0.13.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b5e6043086bf7973472e0c7dff2142ea0b680d30e18d9cc40f267efbf222bd47"
+dependencies = [
+ "base16ct",
+ "crypto-bigint",
+ "digest",
+ "ff",
+ "generic-array",
+ "group",
+ "pkcs8",
+ "rand_core 0.6.4",
+ "sec1",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "encode_unicode"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "34aa73646ffb006b8f5147f3dc182bd4bcb190227ce861fc4a4844bf8e3cb2c0"
+
+[[package]]
+name = "env_filter"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "900d271a03799a1ee8d1ca9b19893b48ca674a9284fefcfb85f05e74ed314217"
+dependencies = [
+ "log",
+ "regex",
+]
+
+[[package]]
+name = "env_logger"
+version = "0.11.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "de671bd27a75a797dc9ae289ba1e77276e75e2026408aab65185384e2d5cd3f6"
+dependencies = [
+ "anstream",
+ "anstyle",
+ "env_filter",
+ "jiff",
+ "log",
+]
+
+[[package]]
+name = "equivalent"
+version = "1.0.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "00d174d5400e5e8fd687ad1049e2f578285fa914201b1af7e8b112a4546bd826"
+
+[[package]]
+name = "errno"
+version = "0.3.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "39cab71617ae0d63f51a36d69f866391735b51691dbda63cf6f96d042b63efeb"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "fastrand"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "da7c62ceae207dd37ea5b845da6a0696c799f85e97da1ab5b7910be3c1c80223"
+
+[[package]]
+name = "fdeflate"
+version = "0.3.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e6853b52649d4ac5c0bd02320cddc5ba956bdb407c4b75a2c6b75bf51500f8c"
+dependencies = [
+ "simd-adler32",
+]
+
+[[package]]
+name = "ff"
+version = "0.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0b50bfb653653f9ca9095b427bed08ab8d75a137839d9ad64eb11810d5b6393"
+dependencies = [
+ "rand_core 0.6.4",
+ "subtle",
+]
+
+[[package]]
+name = "fiat-crypto"
+version = "0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "28dea519a9695b9977216879a3ebfddf92f1c08c05d984f8996aecd6ecdc811d"
+
+[[package]]
+name = "figment"
+version = "0.10.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8cb01cd46b0cf372153850f4c6c272d9cbea2da513e07538405148f95bd789f3"
+dependencies = [
+ "atomic",
+ "pear",
+ "serde",
+ "toml 0.8.23",
+ "uncased",
+ "version_check",
+]
+
+[[package]]
+name = "filetime"
+version = "0.2.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5c287a33c7f0a620c38e641e7f60827713987b3c0f26e8ddc9462cc69cf75759"
+dependencies = [
+ "cfg-if",
+ "libc",
+]
+
+[[package]]
+name = "find-msvc-tools"
+version = "0.1.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c66915cc5391097de7a2b0b972e8505aa33c0df401fd3a6811dbdb32881ba48"
+
+[[package]]
+name = "flagset"
+version = "0.4.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7ac824320a75a52197e8f2d787f6a38b6718bb6897a35142d749af3c0e8f4fe"
+
+[[package]]
+name = "flate2"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e634e2e0ebac1ee034020da1ca582e17ffe4e0f5e985823721e168928136dcb"
+dependencies = [
+ "crc32fast",
+ "miniz_oxide 0.9.1",
+ "zlib-rs",
+]
+
+[[package]]
+name = "fnv"
+version = "1.0.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f9eec918d3f24069decb9af1554cad7c880e2da24a9afd88aca000531ab82c1"
+
+[[package]]
+name = "foldhash"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d9c4f5dac5e15c24eb999c26181a6ca40b39fe946cbe4c263c7209467bc83af2"
+
+[[package]]
+name = "form_urlencoded"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb4cb245038516f5f85277875cdaa4f7d2c9a0fa0468de06ed190163b1581fcf"
+dependencies = [
+ "percent-encoding",
+]
+
+[[package]]
+name = "funty"
+version = "2.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6d5a32815ae3f33302d95fdcb2ce17862f8c65363dcfd29360480ba1001fc9c"
+
+[[package]]
+name = "futures"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a31d2a3fbaaeb2af2368bbdd904aa8e812d3c04a1ee10d3171f52d556e5d0a3"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-executor",
+ "futures-io",
+ "futures-sink",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-channel"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b1f9e3d69d39e4862ffed03ed071a76f9a13ba1d9109d355b0f0aa6b15e393c4"
+dependencies = [
+ "futures-core",
+ "futures-sink",
+]
+
+[[package]]
+name = "futures-core"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92d699e522242e69e3003b94ecc1f960f3a5e015aa7c5d7486e65ad01dd94f5e"
+
+[[package]]
+name = "futures-executor"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "031b47cf1a3c6cc8bc2fc76cd437f521619387907d469316e7c0bc278f1f5432"
+dependencies = [
+ "futures-core",
+ "futures-task",
+ "futures-util",
+]
+
+[[package]]
+name = "futures-io"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53c0fa8157de1303bfffdaa1cc2a673bfffb60102f76b0ef4441659124373fed"
+
+[[package]]
+name = "futures-lite"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f78e10609fe0e0b3f4157ffab1876319b5b0db102a2c60dc4626306dc46b44ad"
+dependencies = [
+ "fastrand",
+ "futures-core",
+ "futures-io",
+ "parking",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "futures-macro"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9fb9654ba8355388abeb8dcb4fc62f511300867002afc858860463bdd9fe0c44"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "futures-sink"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1944426bf7d03f1d14f708785e4b33efd750b36d48a157b836b3efc15ede8e1d"
+
+[[package]]
+name = "futures-task"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cd417de3d1d015fc3bfd2b1ea46dfc7bab72ef86f1cc7cc9c78e728b34a6d1fd"
+
+[[package]]
+name = "futures-util"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0d50a92467f8ba5dd6e3ee5d4bd04d73ab2e4e1c44474a0674821dfce14b79bc"
+dependencies = [
+ "futures-channel",
+ "futures-core",
+ "futures-io",
+ "futures-macro",
+ "futures-sink",
+ "futures-task",
+ "memchr",
+ "pin-project-lite",
+ "slab",
+]
+
+[[package]]
+name = "generic-array"
+version = "0.14.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85649ca51fd72272d7821adaf274ad91c288277713d9c18820d8499a7ff69e9a"
+dependencies = [
+ "typenum",
+ "version_check",
+ "zeroize",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff2abc00be7fca6ebc474524697ae276ad847ad0a6b3faa4bcb027e9a4614ad0"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "libc",
+ "wasi",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "899def5c37c4fd7b2664648c28120ecec138e4d395b459e5ca34f9cce2dd77fd"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "libc",
+ "r-efi 5.3.0",
+ "wasip2",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "getrandom"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "300e883d756b2e4ec94e02791f39b04b522276138852cfc41d9fb7e904106099"
+dependencies = [
+ "cfg-if",
+ "js-sys",
+ "libc",
+ "r-efi 6.0.0",
+ "rand_core 0.10.1",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "glob"
+version = "0.3.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4eba85ea1d0a966a983acd07deee566e67395d2d96b6fb39e62b5a833f1eb0b"
+
+[[package]]
+name = "goblin"
+version = "0.9.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "daa0a64d21a7eb230583b4c5f4e23b7e4e57974f96620f42a7e75e08ae66d745"
+dependencies = [
+ "log",
+ "plain",
+ "scroll",
+]
+
+[[package]]
+name = "group"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0f9ef7462f7c099f518d754361858f86d8a07af53ba9af0fe635bbccb151a63"
+dependencies = [
+ "ff",
+ "rand_core 0.6.4",
+ "subtle",
+]
+
+[[package]]
+name = "h2"
+version = "0.4.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7d29020232d6aa3fb1daca64c1127cf662cf97f254ae16c18c05b8ab635fc118"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "fnv",
+ "futures-core",
+ "futures-sink",
+ "http",
+ "indexmap",
+ "slab",
+ "tokio",
+ "tokio-util",
+ "tracing",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.14.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5274423e17b7c9fc20b6e7e208532f9b19825d82dfd615708b70edd83df41f1"
+dependencies = [
+ "ahash",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.15.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9229cfe53dfd69f0609a49f65461bd93001ea1ef889cd5529dd176593f5338a1"
+dependencies = [
+ "foldhash",
+]
+
+[[package]]
+name = "hashbrown"
+version = "0.17.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed5909b6e89a2db4456e54cd5f673791d7eca6732202bbf2a9cc504fe2f9b84a"
+
+[[package]]
+name = "heck"
+version = "0.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
+
+[[package]]
+name = "hex"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7f24254aa9a54b5c858eaee2f5bccdb46aaf0e486a595ed5fd8f86ba55232a70"
+
+[[package]]
+name = "hkdf"
+version = "0.12.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7b5f8eb2ad728638ea2c7d47a21db23b7b58a72ed6a38256b8a1849f15fbbdf7"
+dependencies = [
+ "hmac",
+]
+
+[[package]]
+name = "hmac"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6c49c37c09c17a53d937dfbb742eb3a961d65a994e6bcdcf37e7399d0cc8ab5e"
+dependencies = [
+ "digest",
+]
+
+[[package]]
+name = "http"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "918d3568bebf352712bc2ef3d46a8bcf1a75b373be6539de198e9105cbbf9ce0"
+dependencies = [
+ "bytes",
+ "itoa",
+]
+
+[[package]]
+name = "http-body"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca2a8f2913ee65f60facd6a5905613afaa448497a0230cc41ce022d93290bc2c"
+dependencies = [
+ "bytes",
+ "http",
+]
+
+[[package]]
+name = "http-body-util"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23169fe34a5fbcdd3f3862e78fb9b6fccd5f02a6dc6f732547005d45631ce71c"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "pin-project-lite",
+]
+
+[[package]]
+name = "httparse"
+version = "1.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6dbf3de79e51f3d586ab4cb9d5c3e2c14aa28ed23d180cf89b4df0454a69cc87"
+
+[[package]]
+name = "hyper"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2c3e324da4c95177d6291d4c8730197c0d1822f8a9766814a4a44fa5ab797c9c"
+dependencies = [
+ "atomic-waker",
+ "bytes",
+ "futures-channel",
+ "futures-core",
+ "h2",
+ "http",
+ "http-body",
+ "httparse",
+ "itoa",
+ "pin-project-lite",
+ "smallvec",
+ "tokio",
+ "want",
+]
+
+[[package]]
+name = "hyper-rustls"
+version = "0.27.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dfa8e654703247911e29c23fbeaa261834bd9bb74efba2f9acddc37bfb127f53"
+dependencies = [
+ "http",
+ "hyper",
+ "hyper-util",
+ "rustls",
+ "rustls-native-certs 0.8.5",
+ "tokio",
+ "tokio-rustls",
+ "tower-service",
+ "webpki-roots",
+]
+
+[[package]]
+name = "hyper-util"
+version = "0.1.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ddc03d96684f9226b8a787cdb71488417b53ab5ea8fdb1dac946cb9431cc8bff"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-channel",
+ "futures-util",
+ "http",
+ "http-body",
+ "httparse",
+ "hyper",
+ "ipnet",
+ "libc",
+ "percent-encoding",
+ "pin-project-lite",
+ "socket2",
+ "tokio",
+ "tower-service",
+ "tracing",
+]
+
+[[package]]
+name = "iana-time-zone"
+version = "0.1.65"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e31bc9ad994ba00e440a8aa5c9ef0ec67d5cb5e5cb0cc7f8b744a35b389cc470"
+dependencies = [
+ "android_system_properties",
+ "core-foundation-sys",
+ "iana-time-zone-haiku",
+ "js-sys",
+ "log",
+ "wasm-bindgen",
+ "windows-core",
+]
+
+[[package]]
+name = "iana-time-zone-haiku"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f31827a206f56af32e590ba56d5d2d085f558508192593743f16b2306495269f"
+dependencies = [
+ "cc",
+]
+
+[[package]]
+name = "ictl-daemon"
+version = "0.0.0"
+dependencies = [
+ "anyhow",
+ "ictl-device",
+ "ictl-sign",
+ "ictl-unlock",
+ "ictl-wda",
+ "reqwest 0.13.5",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+ "tokio",
+ "toml 1.1.8+spec-1.1.0",
+ "tracing",
+]
+
+[[package]]
+name = "ictl-device"
+version = "0.0.0"
+dependencies = [
+ "idevice",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "ictl-mcp"
+version = "0.0.0"
+dependencies = [
+ "anyhow",
+ "base64 0.23.1",
+ "ictl-daemon",
+ "image",
+ "rmcp",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "ictl-sign"
+version = "0.0.0"
+dependencies = [
+ "apple-codesign",
+ "serde",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "ictl-spike"
+version = "0.0.0"
+dependencies = [
+ "anyhow",
+ "clap",
+ "idevice",
+ "tokio",
+ "tracing",
+ "tracing-subscriber",
+]
+
+[[package]]
+name = "ictl-unlock"
+version = "0.0.0"
+dependencies = [
+ "ictl-wda",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "ictl-wda"
+version = "0.0.0"
+dependencies = [
+ "ictl-device",
+ "idevice",
+ "quick-xml",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+]
+
+[[package]]
+name = "icu_collections"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe090a42a0d3140fed8c63263ed1fecc02422cb2f4bfe55cd8de2de1b8e105dd"
+dependencies = [
+ "displaydoc",
+ "potential_utf",
+ "utf8_iter",
+ "yoke",
+ "zerofrom",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_locale_core"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "25d29b57c17c6528d0dc4c2141cfa2d08200465acb537a3909c8b9b8a4a984c0"
+dependencies = [
+ "displaydoc",
+ "litemap",
+ "tinystr",
+ "writeable",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "404a3b8c486f205c87fe7f23ab6894d84a4ad76d6e4671ae1981ba7def87c599"
+dependencies = [
+ "icu_collections",
+ "icu_normalizer_data",
+ "icu_properties",
+ "icu_provider",
+ "smallvec",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_normalizer_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20f0088bfb7441f7a37fa0c9e20cb1e9cba1cac6b9ce8cd2a6dc44294f8e8cbc"
+
+[[package]]
+name = "icu_properties"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ea83d991c56158f7cf898bf86436c1dfe7c07ee82fe88951f2695c9f37a379f"
+dependencies = [
+ "displaydoc",
+ "icu_collections",
+ "icu_locale_core",
+ "icu_properties_data",
+ "icu_provider",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "icu_properties_data"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b98f29af82d02b163fe50161388350e743bb3107cc8e8c2f7314cb505faddfcf"
+
+[[package]]
+name = "icu_provider"
+version = "2.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413099315636c588ee8f011190b329b971a09a8fae9d157e01dcae8379468514"
+dependencies = [
+ "displaydoc",
+ "icu_locale_core",
+ "writeable",
+ "yoke",
+ "zerofrom",
+ "zerotrie",
+ "zerovec",
+]
+
+[[package]]
+name = "ident_case"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9e0384b61958566e926dc50660321d12159025e767c18e043daf26b70104c39"
+
+[[package]]
+name = "idevice"
+version = "0.1.68"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f5d7799c8497cef60ddfd38f7d92e267b9fa5d0b18e7691d31041453007400ca"
+dependencies = [
+ "async-stream",
+ "async_zip",
+ "base64 0.22.1",
+ "chrono",
+ "flate2",
+ "futures",
+ "indexmap",
+ "jktcp",
+ "libc",
+ "ns-keyed-archive",
+ "plist",
+ "plist-macro",
+ "rand 0.10.3",
+ "rsa",
+ "rustls",
+ "serde",
+ "serde_json",
+ "sha2",
+ "thiserror 2.0.21",
+ "tokio",
+ "tokio-rustls",
+ "tracing",
+ "uuid",
+ "web-time",
+ "webpki-roots",
+ "x509-cert",
+]
+
+[[package]]
+name = "idna"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b0875f23caa03898994f6ddc501886a45c7d3d62d04d2d90788d47be1b1e4de"
+dependencies = [
+ "idna_adapter",
+ "smallvec",
+ "utf8_iter",
+]
+
+[[package]]
+name = "idna_adapter"
+version = "1.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb68373c0d6620ef8105e855e7745e18b0d00d3bdb07fb532e434244cdb9a714"
+dependencies = [
+ "icu_normalizer",
+ "icu_properties",
+]
+
+[[package]]
+name = "image"
+version = "0.25.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85ab80394333c02fe689eaf900ab500fbd0c2213da414687ebf995a65d5a6104"
+dependencies = [
+ "bytemuck",
+ "byteorder-lite",
+ "moxcms",
+ "num-traits",
+ "png",
+ "zune-core",
+ "zune-jpeg",
+]
+
+[[package]]
+name = "indexmap"
+version = "2.14.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cc4e190f5d26ca7051642629da2c52fc03bde85a03197c99408dcd291734c855"
+dependencies = [
+ "equivalent",
+ "hashbrown 0.17.1",
+ "serde",
+ "serde_core",
+]
+
+[[package]]
+name = "inlinable_string"
+version = "0.1.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c8fae54786f62fb2918dcfae3d568594e50eb9b5c25bf04371af6fe7516452fb"
+
+[[package]]
+name = "inout"
+version = "0.1.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "879f10e63c20629ecabbb64a8010319738c66a5cd0c29b02d63d272b03751d01"
+dependencies = [
+ "block-padding",
+ "generic-array",
+]
+
+[[package]]
+name = "iphone-control"
+version = "0.0.0"
+dependencies = [
+ "anyhow",
+ "clap",
+ "ictl-daemon",
+ "ictl-mcp",
+ "ictl-sign",
+ "tokio",
+ "tracing",
+ "tracing-subscriber",
+]
+
+[[package]]
+name = "ipnet"
+version = "2.12.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "791930b43c0d5973160d90a8f3894509f2b273430f5c5c73b668636d0287c5c0"
+
+[[package]]
+name = "is_executable"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82cb6a9f675da968c63b6208c641b9dca58fc0133ae53375736b1767b0cab8bd"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "is_terminal_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
+
+[[package]]
+name = "itertools"
+version = "0.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "413ee7dfc52ee1a4949ceeb7dbc8a33f2d6c088194d9f922fb8318faf1f01186"
+dependencies = [
+ "either",
+]
+
+[[package]]
+name = "itoa"
+version = "1.0.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f42a60cbdf9a97f5d2305f08a87dc4e09308d1276d28c869c684d7777685682"
+
+[[package]]
+name = "jiff"
+version = "0.2.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b2b005715dcbeb0089a3c0dab99f2ff1cc3b2525323552703d648585d342a383"
+dependencies = [
+ "defmt",
+ "jiff-core",
+ "jiff-static",
+ "log",
+ "portable-atomic",
+ "portable-atomic-util",
+ "serde_core",
+]
+
+[[package]]
+name = "jiff-core"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e52fe76043ccecc9005d2305ebaadf7d7fc0cc89ca6baa10a94d6bc68c7128c"
+dependencies = [
+ "defmt",
+ "log",
+]
+
+[[package]]
+name = "jiff-static"
+version = "0.2.38"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2cc9817253cf7c7ee4684451bd327e88d6f3658014e54a29198625590650695c"
+dependencies = [
+ "jiff-core",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "jktcp"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f67259b6408391e66f7d7fd3dbef41ef3bc65e1d67f4c8d5512f2e59835f7844"
+dependencies = [
+ "futures",
+ "getrandom 0.3.4",
+ "rand 0.9.5",
+ "tokio",
+ "tracing",
+ "wasm-bindgen-futures",
+ "wasmtimer",
+]
+
+[[package]]
+name = "js-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8dc09d2154098bbf4ef54eab6b117a3c24cbbffe94046b16ee6d6d4510584d3a"
+dependencies = [
+ "cfg-if",
+ "futures-util",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "konst"
+version = "0.3.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97feab15b395d1860944abe6a8dd8ed9f8eadfae01750fada8427abda531d887"
+dependencies = [
+ "const_panic",
+ "konst_kernel",
+ "typewit",
+]
+
+[[package]]
+name = "konst_kernel"
+version = "0.3.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e4b1eb7788f3824c629b1116a7a9060d6e898c358ebff59070093d51103dcc3c"
+dependencies = [
+ "typewit",
+]
+
+[[package]]
+name = "lazy_static"
+version = "1.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20870f649af7073d53e38067b2a84312175d56ea15217e1b15bc83506ec50afb"
+dependencies = [
+ "spin",
+]
+
+[[package]]
+name = "libc"
+version = "0.2.191"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65cd87c9a6d60536580b316ad985726104730a5151c99845f2490428ef91240a"
+
+[[package]]
+name = "libm"
+version = "0.2.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6d2cec3eae94f9f509c767b45932f1ada8350c4bdb85af2fcab4a3c14807981"
+
+[[package]]
+name = "libredox"
+version = "0.1.25"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "61ff90caf6077a803a240f62fdbe88645a890bbca49ef8174c3cb0404362171d"
+dependencies = [
+ "libc",
+]
+
+[[package]]
+name = "linux-raw-sys"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a66949e030da00e8c7d4434b251670a91556f4144941d37452769c25d58a53"
+
+[[package]]
+name = "litemap"
+version = "0.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "47d9d19d1d6efa0109d2f65ff4c85cddd50bd572e5a00127ab10987290bcefae"
+
+[[package]]
+name = "lock_api"
+version = "0.4.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "224399e74b87b5f3557511d98dff8b14089b3dadafcab6bb93eab67d3aace965"
+dependencies = [
+ "scopeguard",
+]
+
+[[package]]
+name = "log"
+version = "0.4.35"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d15f86d12da44cd8d4ec3c73984537eb7f4cadcb9776a575a0a8a05ca11005c"
+
+[[package]]
+name = "lru-slab"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4050469837a6ff301cd14c1f8f24f88549e6d548f24f64e2148eb0f72cebc51f"
+
+[[package]]
+name = "lzma-sys"
+version = "0.1.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5fda04ab3764e6cde78b9974eec4f779acaba7c4e84b36eca3cf77c581b85d27"
+dependencies = [
+ "cc",
+ "libc",
+ "pkg-config",
+]
+
+[[package]]
+name = "matchers"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d1525a2a28c7f4fa0fc98bb91ae755d1e2d1505079e05539e35bc876b5d65ae9"
+dependencies = [
+ "regex-automata",
+]
+
+[[package]]
+name = "md-5"
+version = "0.10.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d89e7ee0cfbedfc4da3340218492196241d89eefb6dab27de5df917a6d2e78cf"
+dependencies = [
+ "cfg-if",
+ "digest",
+]
+
+[[package]]
+name = "memchr"
+version = "2.8.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf8baf1c55e62ffcace7a9f06f4bd9cd3f0c4beb022d3b367256b91b87513d98"
+
+[[package]]
+name = "minicbor"
+version = "0.25.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c0452a60c1863c1f50b5f77cd295e8d2786849f35883f0b9e18e7e6e1b5691b0"
+dependencies = [
+ "minicbor-derive",
+]
+
+[[package]]
+name = "minicbor-derive"
+version = "0.15.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bd2209fff77f705b00c737016a48e73733d7fbccb8b007194db148f03561fb70"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "minimal-lexical"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
+
+[[package]]
+name = "miniz_oxide"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fa76a2c86f704bdb222d66965fb3d63269ce38518b83cb0575fca855ebb6316"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "miniz_oxide"
+version = "0.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b63fbc4a50860e98e7b2aa7804ded1db5cbc3aff9193adaff57a6931bf7c4b4c"
+dependencies = [
+ "adler2",
+ "simd-adler32",
+]
+
+[[package]]
+name = "mio"
+version = "1.2.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1788edb87fdc09c7e26304471e2f5be8cdefb1b6930d6e3985fc02ff53bf86ee"
+dependencies = [
+ "libc",
+ "wasi",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "moxcms"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bb85c154ba489f01b25c0d36ae69a87e4a1c73a72631fc6c0eb6dde34a73e44b"
+dependencies = [
+ "num-traits",
+ "pxfm",
+]
+
+[[package]]
+name = "nom"
+version = "7.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d273983c5a657a70a3e8f2a01329822f3b8c8172b73826411a55751e404a0a4a"
+dependencies = [
+ "memchr",
+ "minimal-lexical",
+]
+
+[[package]]
+name = "ns-keyed-archive"
+version = "0.1.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "815e8c8171d033165fdda6d95630d6f447592ad5e6fbade9db26663970c6fae6"
+dependencies = [
+ "nskeyedarchiver_converter",
+ "plist",
+]
+
+[[package]]
+name = "nskeyedarchiver_converter"
+version = "0.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "36c53158d1bf37bbbdd165f5220fda8bb5757c89eb700107992152c64c6cad7e"
+dependencies = [
+ "plist",
+ "thiserror 2.0.21",
+]
+
+[[package]]
+name = "nu-ansi-term"
+version = "0.50.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7957b9740744892f114936ab4a57b3f487491bbeafaf8083688b16841a4240e5"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "num-bigint"
+version = "0.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c89e69e7e0f03bea5ef08013795c25018e101932225a656383bd384495ecc367"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-bigint-dig"
+version = "0.8.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e661dda6640fad38e827a6d4a310ff4763082116fe217f279885c97f511bb0b7"
+dependencies = [
+ "lazy_static",
+ "libm",
+ "num-integer",
+ "num-iter",
+ "num-traits",
+ "rand 0.8.8",
+ "smallvec",
+ "zeroize",
+]
+
+[[package]]
+name = "num-conv"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "521739c6d2bac4aa25192232afe6841231376b2b26d4d9fae5ecf8ca5772e441"
+
+[[package]]
+name = "num-integer"
+version = "0.1.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7ce2d95d4b3734dc35aa2f45e1aa22cd416814592a4f9d9205e11affd5b8e10b"
+dependencies = [
+ "num-traits",
+]
+
+[[package]]
+name = "num-iter"
+version = "0.1.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c92800bd69a1eac91786bcfe9da64a897eb72911b8dc3095decbd07429e8048b"
+dependencies = [
+ "num-integer",
+ "num-traits",
+]
+
+[[package]]
+name = "num-traits"
+version = "0.2.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "071dfc062690e90b734c0b2273ce72ad0ffa95f0c74596bc250dcfd960262841"
+dependencies = [
+ "autocfg",
+ "libm",
+]
+
+[[package]]
+name = "object"
+version = "0.36.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62948e14d923ea95ea2c7c86c71013138b66525b86bdc08d2dcc262bdb497b87"
+dependencies = [
+ "crc32fast",
+ "flate2",
+ "hashbrown 0.15.5",
+ "indexmap",
+ "memchr",
+ "ruzstd",
+]
+
+[[package]]
+name = "oid-registry"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a8d8034d9489cdaf79228eb9f6a3b8d7bb32ba00d6645ebd48eef4077ceb5bd9"
+dependencies = [
+ "asn1-rs",
+]
+
+[[package]]
+name = "once_cell"
+version = "1.21.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9f7c3e4beb33f85d45ae3e3a1792185706c8e16d043238c593331cc7cd313b50"
+
+[[package]]
+name = "once_cell_polyfill"
+version = "1.70.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
+
+[[package]]
+name = "openssl-probe"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d05e27ee213611ffe7d6348b942e8f942b37114c00cc03cec254295a4a17852e"
+
+[[package]]
+name = "openssl-probe"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e036b411754132fd6b74e94b74e9a13c5cf606fa93d1885c35860d3060820b1"
+
+[[package]]
+name = "option-ext"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "04744f49eae99ab78e0d5c0b603ab218f515ea8cfe5a456d7629ad883a3b6e7d"
+
+[[package]]
+name = "p12"
+version = "0.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d4873306de53fe82e7e484df31e1e947d61514b6ea2ed6cd7b45d63006fd9224"
+dependencies = [
+ "cbc",
+ "cipher",
+ "des",
+ "getrandom 0.2.17",
+ "hmac",
+ "lazy_static",
+ "rc2",
+ "sha1",
+ "yasna",
+]
+
+[[package]]
+name = "p256"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9863ad85fa8f4460f9c48cb909d38a0d689dba1f6f6988a5e3e0d31071bcd4b"
+dependencies = [
+ "ecdsa",
+ "elliptic-curve",
+ "primeorder",
+]
+
+[[package]]
+name = "parking"
+version = "2.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f38d5652c16fde515bb1ecef450ab0f6a219d619a7274976324d5e377f7dceba"
+
+[[package]]
+name = "parking_lot"
+version = "0.12.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93857453250e3077bd71ff98b6a65ea6621a19bb0f559a85248955ac12c45a1a"
+dependencies = [
+ "lock_api",
+ "parking_lot_core",
+]
+
+[[package]]
+name = "parking_lot_core"
+version = "0.9.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2621685985a2ebf1c516881c026032ac7deafcda1a2c9b7850dc81e3dfcb64c1"
+dependencies = [
+ "cfg-if",
+ "libc",
+ "redox_syscall",
+ "smallvec",
+ "windows-link",
+]
+
+[[package]]
+name = "pastey"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ee67f1008b1ba2321834326597b8e186293b049a023cdef258527550b9935b4"
+
+[[package]]
+name = "pear"
+version = "0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bdeeaa00ce488657faba8ebf44ab9361f9365a97bd39ffb8a60663f57ff4b467"
+dependencies = [
+ "inlinable_string",
+ "pear_codegen",
+ "yansi",
+]
+
+[[package]]
+name = "pear_codegen"
+version = "0.2.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4bab5b985dc082b345f812b7df84e1bef27e7207b39e448439ba8bd69c93f147"
+dependencies = [
+ "proc-macro2",
+ "proc-macro2-diagnostics",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pem"
+version = "3.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1d30c53c26bc5b31a98cd02d20f25a7c8567146caf63ed593a9d87b2775291be"
+dependencies = [
+ "base64 0.22.1",
+ "serde_core",
+]
+
+[[package]]
+name = "pem-rfc7468"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "88b39c9bfcfc231068454382784bb460aae594343fb030d46e9f50a645418412"
+dependencies = [
+ "base64ct",
+]
+
+[[package]]
+name = "percent-encoding"
+version = "2.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b4f627cb1b25917193a259e49bdad08f671f8d9708acfd5fe0a8c1455d87220"
+
+[[package]]
+name = "pin-project"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2466b2336ed02bcdca6b294417127b90ec92038d1d5c4fbeac971a922e0e0924"
+dependencies = [
+ "pin-project-internal",
+]
+
+[[package]]
+name = "pin-project-internal"
+version = "1.1.13"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c96395f0a926bc13b1c17622aaddda1ecb55d49c8f1bf9777e4d877800a43f8b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "pin-project-lite"
+version = "0.2.17"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a89322df9ebe1c1578d689c92318e070967d1042b512afbe49518723f4e6d5cd"
+
+[[package]]
+name = "pin-utils"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13bee6c73da26345c729282832b60b0363cf3dd9f4bfd81d8551b7a1c889a113"
+
+[[package]]
+name = "pkcs1"
+version = "0.7.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c8ffb9f10fa047879315e6625af03c164b16962a5368d724ed16323b68ace47f"
+dependencies = [
+ "der",
+ "pkcs8",
+ "spki",
+]
+
+[[package]]
+name = "pkcs8"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f950b2377845cebe5cf8b5165cb3cc1a5e0fa5cfa3e1f7f55707d8fd82e0a7b7"
+dependencies = [
+ "der",
+ "spki",
+]
+
+[[package]]
+name = "pkg-config"
+version = "0.3.34"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f6b464fbc74e149a392436b17d523f769e057cb6877f6a5c4618bc6f11800548"
+
+[[package]]
+name = "plain"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b4596b6d070b27117e987119b4dac604f3c58cfb0b191112e24771b2faeac1a6"
+
+[[package]]
+name = "plist"
+version = "1.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "327a4cb2ad49dc48adfdc9da89e22c64d488b508c67a044d71ba729e4521a285"
+dependencies = [
+ "base64 0.23.1",
+ "indexmap",
+ "quick-xml",
+ "serde",
+ "time",
+]
+
+[[package]]
+name = "plist-macro"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "82c39e020f2d8d361e91a434cfe26bc7c3e21ae54414379816d0110f3f7ca121"
+dependencies = [
+ "plist",
+]
+
+[[package]]
+name = "png"
+version = "0.18.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "60769b8b31b2a9f263dae2776c37b1b28ae246943cf719eb6946a1db05128a61"
+dependencies = [
+ "bitflags 2.13.2",
+ "crc32fast",
+ "fdeflate",
+ "flate2",
+ "miniz_oxide 0.8.9",
+]
+
+[[package]]
+name = "portable-atomic"
+version = "1.15.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05c8b63e8d9609db387f0324918f81d68fe27748f084ef092fb35954d0539a85"
+
+[[package]]
+name = "portable-atomic-util"
+version = "0.2.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "10ab3eb7f3becc3a1cbc4f2c6f20267996cfc1a6467a873763411b136a122715"
+dependencies = [
+ "portable-atomic",
+]
+
+[[package]]
+name = "potential_utf"
+version = "0.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d83eb9bc6d8e5cf568e7a1101d60ee05e81ed50ea106026f3d18deeb046d7661"
+dependencies = [
+ "zerovec",
+]
+
+[[package]]
+name = "powerfmt"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a6394b9e965e73d0a289ee54f589087e2c676aedf60885baf52c76b771e4958"
+
+[[package]]
+name = "ppv-lite86"
+version = "0.2.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "85eae3c4ed2f50dcfe72643da4befc30deadb458a9b590d720cde2f2b1e97da9"
+dependencies = [
+ "zerocopy",
+]
+
+[[package]]
+name = "primeorder"
+version = "0.13.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "353e1ca18966c16d9deb1c69278edbc5f194139612772bd9537af60ac231e1e6"
+dependencies = [
+ "elliptic-curve",
+]
+
+[[package]]
+name = "proc-macro2"
+version = "1.0.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "985e7ec9bb745e6ce6535b544d84d6cd6f7ad8bd711c398938ae983b91a766d9"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "proc-macro2-diagnostics"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af066a9c399a26e020ada66a034357a868728e72cd426f3adcd35f80d88d88c8"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+ "version_check",
+ "yansi",
+]
+
+[[package]]
+name = "pxfm"
+version = "0.1.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d55d956fa96f5ec02be2e13af0e20391a5aa83d6a074e3ad368959d0fab299ea"
+
+[[package]]
+name = "quick-xml"
+version = "0.42.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41b1177fdf999d2321d3fb46ff47159d9c1fb9ad66a4879f8c50a0b504615e9b"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "quinn"
+version = "0.11.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4051e23e9185c255a7e33ef59cdbca87a22d359052eecd22fc6b901fb37d9d11"
+dependencies = [
+ "bytes",
+ "cfg_aliases",
+ "pin-project-lite",
+ "quinn-proto",
+ "quinn-udp",
+ "rustc-hash",
+ "rustls",
+ "socket2",
+ "thiserror 2.0.21",
+ "tokio",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "quinn-proto"
+version = "0.11.19"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0e750cca55fe4f0439a15d0bb529da9651e79993e8e72c61a899a36d462befbe"
+dependencies = [
+ "bytes",
+ "getrandom 0.4.3",
+ "lru-slab",
+ "rand 0.10.3",
+ "rand_pcg",
+ "ring",
+ "rustc-hash",
+ "rustls",
+ "rustls-pki-types",
+ "slab",
+ "thiserror 2.0.21",
+ "tinyvec",
+ "tracing",
+ "web-time",
+]
+
+[[package]]
+name = "quinn-udp"
+version = "0.5.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af66907df18639dcf4db56ca65490cabc4b27a97dbadd96f2926cca73298f016"
+dependencies = [
+ "cfg_aliases",
+ "libc",
+ "once_cell",
+ "socket2",
+ "tracing",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "quote"
+version = "1.0.47"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1fbf4db142a473a8d80c26bbf18454ed458bf8d26c8219c331daecfdbd079001"
+dependencies = [
+ "proc-macro2",
+]
+
+[[package]]
+name = "r-efi"
+version = "5.3.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "69cdb34c158ceb288df11e18b4bd39de994f6657d83847bdffdbd7f346754b0f"
+
+[[package]]
+name = "r-efi"
+version = "6.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8dcc9c7d52a811697d2151c701e0d08956f92b0e24136cf4cf27b57a6a0d9bf"
+
+[[package]]
+name = "radium"
+version = "0.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc33ff2d4973d518d823d61aa239014831e521c75da58e3df4840d3f47749d09"
+
+[[package]]
+name = "rand"
+version = "0.8.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e058c7de0b26af77780c769414d6257830bb240f3c38477dbc2c16e5f54d6d4c"
+dependencies = [
+ "libc",
+ "rand_chacha 0.3.1",
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "rand"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b9ef1d0d795eb7d84685bca4f72f3649f064e6641543d3a8c415898726a57b41"
+dependencies = [
+ "rand_chacha 0.9.0",
+ "rand_core 0.9.5",
+]
+
+[[package]]
+name = "rand"
+version = "0.10.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "65c9fb96cbc91e3478eaae79a69fcd3f1ae4ad052e471fe6732fff548984b4af"
+dependencies = [
+ "chacha20",
+ "getrandom 0.4.3",
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.3.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e6c10a63a0fa32252be49d21e7709d4d4baf8d231c2dbce1eaa8141b9b127d88"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "rand_chacha"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3022b5f1df60f26e1ffddd6c66e8aa15de382ae63b3a0c1bfc0e4d3e3f325cb"
+dependencies = [
+ "ppv-lite86",
+ "rand_core 0.9.5",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec0be4795e2f6a28069bec0b5ff3e2ac9bafc99e6a9a7dc3547996c5c816922c"
+dependencies = [
+ "getrandom 0.2.17",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "76afc826de14238e6e8c374ddcc1fa19e374fd8dd986b0d2af0d02377261d83c"
+dependencies = [
+ "getrandom 0.3.4",
+]
+
+[[package]]
+name = "rand_core"
+version = "0.10.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63b8176103e19a2643978565ca18b50549f6101881c443590420e4dc998a3c69"
+
+[[package]]
+name = "rand_pcg"
+version = "0.10.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "caa0f4137e1c0a72f4c651489402276c8e8e1cf081f3b0ba156d2cbeef09e86a"
+dependencies = [
+ "rand_core 0.10.1",
+]
+
+[[package]]
+name = "rasn"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e442690f86da40561d5548e7ffb4a18af90d1c1b3536090de847ca2d5a3a6426"
+dependencies = [
+ "arrayvec",
+ "bitvec",
+ "bitvec-nom2",
+ "bytes",
+ "chrono",
+ "either",
+ "hashbrown 0.14.5",
+ "konst",
+ "nom",
+ "num-bigint",
+ "num-integer",
+ "num-traits",
+ "once_cell",
+ "rasn-derive",
+ "serde_json",
+ "snafu",
+]
+
+[[package]]
+name = "rasn-derive"
+version = "0.20.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "96b0d374c7e4e985e6bc97ca7e7ad1d9642a8415db2017777d6e383002edaab2"
+dependencies = [
+ "either",
+ "itertools",
+ "proc-macro2",
+ "quote",
+ "rayon",
+ "syn 2.0.119",
+ "uuid",
+]
+
+[[package]]
+name = "rayon"
+version = "1.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb39b166781f92d482534ef4b4b1b2568f42613b53e5b6c160e24cfbfa30926d"
+dependencies = [
+ "either",
+ "rayon-core",
+]
+
+[[package]]
+name = "rayon-core"
+version = "1.13.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22e18b0f0062d30d4230b2e85ff77fdfe4326feb054b9783a3460d8435c8ab91"
+dependencies = [
+ "crossbeam-deque",
+ "crossbeam-utils",
+]
+
+[[package]]
+name = "rc2"
+version = "0.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "62c64daa8e9438b84aaae55010a93f396f8e60e3911590fcba770d04643fc1dd"
+dependencies = [
+ "cipher",
+]
+
+[[package]]
+name = "redox_syscall"
+version = "0.5.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed2bf2547551a7053d6fdfafda3f938979645c44812fbfcda098faae3f1a362d"
+dependencies = [
+ "bitflags 2.13.2",
+]
+
+[[package]]
+name = "redox_users"
+version = "0.4.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba009ff324d1fc1b900bd1fdb31564febe58a8ccc8a6fdbb93b543d33b13ca43"
+dependencies = [
+ "getrandom 0.2.17",
+ "libredox",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "ref-cast"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e440fb4e4b4147295338efb76001ab9e4efc0e5839df2c47fc5ac2381d365c3"
+dependencies = [
+ "ref-cast-impl",
+]
+
+[[package]]
+name = "ref-cast-impl"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "92ecd8964f8453721699a1ed72037b0db49ce2f5a5138486ee89bed6f67cdf3a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "regex"
+version = "1.13.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f020237b6c8eed93db2e2cb53c00c60a8e1bc73da7d073199a1180401450218d"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-automata",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-automata"
+version = "0.4.18"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ad8553b9b26413251cbf30e620595c7a41b3887f03da04579c0e6b0d6a06b4b2"
+dependencies = [
+ "aho-corasick",
+ "memchr",
+ "regex-syntax",
+]
+
+[[package]]
+name = "regex-syntax"
+version = "0.8.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d6f6ff9a378485b298a5286656da665ba74413d36db0979633275d2e708145d4"
+
+[[package]]
+name = "reqwest"
+version = "0.12.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "eddd3ca559203180a307f12d114c268abf583f59b03cb906fd0b3ff8646c1147"
+dependencies = [
+ "base64 0.22.1",
+ "bytes",
+ "futures-channel",
+ "futures-core",
+ "futures-util",
+ "h2",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-rustls",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "quinn",
+ "rustls",
+ "rustls-native-certs 0.8.5",
+ "rustls-pki-types",
+ "serde",
+ "serde_json",
+ "serde_urlencoded",
+ "sync_wrapper",
+ "tokio",
+ "tokio-rustls",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+ "webpki-roots",
+]
+
+[[package]]
+name = "reqwest"
+version = "0.13.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "16a1cfa75cc186dd73d5818e510e042e40927bccc9c236b061cea97e1eb08029"
+dependencies = [
+ "base64 0.23.1",
+ "bytes",
+ "futures-core",
+ "http",
+ "http-body",
+ "http-body-util",
+ "hyper",
+ "hyper-util",
+ "js-sys",
+ "log",
+ "percent-encoding",
+ "pin-project-lite",
+ "serde",
+ "serde_json",
+ "sync_wrapper",
+ "tokio",
+ "tower",
+ "tower-http",
+ "tower-service",
+ "url",
+ "wasm-bindgen",
+ "wasm-bindgen-futures",
+ "web-sys",
+]
+
+[[package]]
+name = "ring"
+version = "0.17.14"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a4689e6c2294d81e88dc6261c768b63bc4fcdb852be6d1352498b114f61383b7"
+dependencies = [
+ "cc",
+ "cfg-if",
+ "getrandom 0.2.17",
+ "libc",
+ "untrusted",
+ "windows-sys 0.52.0",
+]
+
+[[package]]
+name = "rmcp"
+version = "3.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8be15815186873ea063bf005011d16c356804973489e40c39116ae3a2878d1f"
+dependencies = [
+ "base64 0.23.1",
+ "chrono",
+ "futures",
+ "indexmap",
+ "libc",
+ "pastey",
+ "pin-project-lite",
+ "rmcp-macros",
+ "schemars",
+ "serde",
+ "serde_json",
+ "thiserror 2.0.21",
+ "tokio",
+ "tokio-util",
+ "tracing",
+ "uuid",
+]
+
+[[package]]
+name = "rmcp-macros"
+version = "3.8.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8b0748e054a5f5598b3213cf72099ae6b2745ba4d996c59ccf455150a7dbb839"
+dependencies = [
+ "darling",
+ "proc-macro2",
+ "quote",
+ "serde_json",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "rsa"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8573f03f5883dcaebdfcf4725caa1ecb9c15b2ef50c43a07b816e06799bb12d"
+dependencies = [
+ "const-oid",
+ "digest",
+ "num-bigint-dig",
+ "num-integer",
+ "num-traits",
+ "pkcs1",
+ "pkcs8",
+ "rand_core 0.6.4",
+ "sha2",
+ "signature",
+ "spki",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "rustc-hash"
+version = "2.1.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6b1e7f9a428571be2dc5bc0505c13fb6bf936822b894ec87abf8a08a4e51742d"
+
+[[package]]
+name = "rustc_version"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfcb3a22ef46e85b45de6ee7e79d063319ebb6594faafcf1c225ea92ab6e9b92"
+dependencies = [
+ "semver",
+]
+
+[[package]]
+name = "rusticata-macros"
+version = "4.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "faf0c4a6ece9950b9abdb62b1cfcf2a68b3b67a10ba445b3bb85be2a293d0632"
+dependencies = [
+ "nom",
+]
+
+[[package]]
+name = "rustix"
+version = "1.1.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5e76742e5294153d4dde1207dbec5bdd81eef6fabdc0d2118babadabfd858aa"
+dependencies = [
+ "bitflags 2.13.2",
+ "errno",
+ "libc",
+ "linux-raw-sys",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "rustls"
+version = "0.23.46"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "48e13bd8c0e9365c43cfa5c9e8f9ad49d3c8444926c9aac819e0e4dc503c8fdf"
+dependencies = [
+ "once_cell",
+ "ring",
+ "rustls-pki-types",
+ "rustls-webpki",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "rustls-native-certs"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5bfb394eeed242e909609f56089eecfe5fda225042e8b171791b9c95f5931e5"
+dependencies = [
+ "openssl-probe 0.1.6",
+ "rustls-pemfile",
+ "rustls-pki-types",
+ "schannel",
+ "security-framework 2.11.1",
+]
+
+[[package]]
+name = "rustls-native-certs"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4a073f5dc7469f984c52ad2752b63b0807745133b6de880b7b64c1ac4c48aec4"
+dependencies = [
+ "openssl-probe 0.2.2",
+ "rustls-pki-types",
+ "schannel",
+ "security-framework 3.7.0",
+]
+
+[[package]]
+name = "rustls-pemfile"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dce314e5fee3f39953d46bb63bb8a46d40c2f8fb7cc5a3b6cab2bde9721d6e50"
+dependencies = [
+ "rustls-pki-types",
+]
+
+[[package]]
+name = "rustls-pki-types"
+version = "1.15.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2f4925028c7eb5d1fcdaf196971378ed9d2c1c4efc7dc5d011256f76c99c0a96"
+dependencies = [
+ "web-time",
+ "zeroize",
+]
+
+[[package]]
+name = "rustls-webpki"
+version = "0.103.16"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4443b1b6d39d7c663139942cc4558262562d2c84123bb6282ef177009ca8b281"
+dependencies = [
+ "ring",
+ "rustls-pki-types",
+ "untrusted",
+]
+
+[[package]]
+name = "rustversion"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cf54715a573b99ac80df0bc206da022bcd442c974952c7b9720069370852e21f"
+
+[[package]]
+name = "ruzstd"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fad02996bfc73da3e301efe90b1837be9ed8f4a462b6ed410aa35d00381de89f"
+dependencies = [
+ "twox-hash",
+]
+
+[[package]]
+name = "ryu"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9774ba4a74de5f7b1c1451ed6cd5285a32eddb5cccb8cc655a4e50009e06477f"
+
+[[package]]
+name = "same-file"
+version = "1.0.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "93fc1dc3aaa9bfed95e02e6eadabb4baf7e3078b0bd1b4d7b6b0b68378900502"
+dependencies = [
+ "winapi-util",
+]
+
+[[package]]
+name = "schannel"
+version = "0.1.30"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9cb23c424d8ee841bb4d813677ca237e2a610067d594fec130f87d6093495ab5"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "schemars"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ab508826f74a77ca9d5aba6ff19b522583ee3eaf28a19384ff3d0e5835fadf6e"
+dependencies = [
+ "chrono",
+ "dyn-clone",
+ "ref-cast",
+ "schemars_derive",
+ "serde",
+ "serde_json",
+]
+
+[[package]]
+name = "schemars_derive"
+version = "1.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1c3a92094fa7d61aa124645844facb6b554dfc797136d0f5fd1f890e2bffc69"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "serde_derive_internals",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "scopeguard"
+version = "1.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
+
+[[package]]
+name = "scroll"
+version = "0.12.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ab8598aa408498679922eff7fa985c25d58a90771bd6be794434c5277eab1a6"
+dependencies = [
+ "scroll_derive",
+]
+
+[[package]]
+name = "scroll_derive"
+version = "0.12.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1783eabc414609e28a5ba76aee5ddd52199f7107a0b24c2e9746a1ecc34a683d"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "sec1"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3e97a565f76233a6003f9f5c54be1d9c5bdfa3eccfb189469f11ec4901c47dc"
+dependencies = [
+ "base16ct",
+ "der",
+ "generic-array",
+ "pkcs8",
+ "subtle",
+ "zeroize",
+]
+
+[[package]]
+name = "security-framework"
+version = "2.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "897b2245f0b511c87893af39b033e5ca9cce68824c4d7e7630b5a1d339658d02"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation 0.9.4",
+ "core-foundation-sys",
+ "libc",
+ "security-framework-sys",
+]
+
+[[package]]
+name = "security-framework"
+version = "3.7.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b7f4bc775c73d9a02cde8bf7b2ec4c9d12743edf609006c7facc23998404cd1d"
+dependencies = [
+ "bitflags 2.13.2",
+ "core-foundation 0.10.1",
+ "core-foundation-sys",
+ "libc",
+ "security-framework-sys",
+]
+
+[[package]]
+name = "security-framework-sys"
+version = "2.17.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2691df843ecc5d231c0b14ece2acc3efb62c0a398c7e1d875f3983ce020e3"
+dependencies = [
+ "core-foundation-sys",
+ "libc",
+]
+
+[[package]]
+name = "semver"
+version = "1.0.28"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8a7852d02fc848982e0c167ef163aaff9cd91dc640ba85e263cb1ce46fae51cd"
+
+[[package]]
+name = "serde"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4148590afebada386688f18773da617792bf2ef03ffc1e4cbd2b1d45b023e0ba"
+dependencies = [
+ "serde_core",
+ "serde_derive",
+]
+
+[[package]]
+name = "serde-xml-rs"
+version = "0.6.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fb3aa78ecda1ebc9ec9847d5d3aba7d618823446a049ba2491940506da6e2782"
+dependencies = [
+ "log",
+ "serde",
+ "thiserror 1.0.69",
+ "xml-rs",
+]
+
+[[package]]
+name = "serde_core"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "67dca2c9c51e58a4791a4b1ed58308b39c64224d349a935ab5039aa360942a48"
+dependencies = [
+ "serde_derive",
+]
+
+[[package]]
+name = "serde_derive"
+version = "1.0.229"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7a5d71263a5a7d47b41f6b3f06ba276f10cc18b0931f1799f710578e2309348"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "serde_derive_internals"
+version = "0.30.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f852137cce035d6a4df67ccce505ff6b3e9fd3a10e3e52b24dc71e650bb1a9bd"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "serde_json"
+version = "1.0.154"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e7e9cc8b1b85264074fbcc02a88680c4096b1e47df8f739dceb03bf482f04bd6"
+dependencies = [
+ "itoa",
+ "memchr",
+ "serde",
+ "serde_core",
+ "zmij",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "0.6.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "bf41e0cfaf7226dca15e8197172c295a782857fcb97fad1808a166870dee75a3"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "serde_spanned"
+version = "1.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4e7523beb55eece201a2356bee0bbca0d1ab466c14c07703b2e0ee6d42cb0c2c"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "serde_urlencoded"
+version = "0.7.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d3491c14715ca2294c4d6a88f15e84739788c1d030eed8c110436aafdaa2f3fd"
+dependencies = [
+ "form_urlencoded",
+ "itoa",
+ "ryu",
+ "serde",
+]
+
+[[package]]
+name = "serde_yaml"
+version = "0.9.34+deprecated"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
+dependencies = [
+ "indexmap",
+ "itoa",
+ "ryu",
+ "serde",
+ "unsafe-libyaml",
+]
+
+[[package]]
+name = "sha1"
+version = "0.10.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a978451301f4db1d02937a4ab3ccce137717b81826e79b7d49ffe3244a13c3b8"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest",
+]
+
+[[package]]
+name = "sha2"
+version = "0.10.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a7507d819769d01a365ab707794a4084392c824f54a7a6a7862f8c3d0892b283"
+dependencies = [
+ "cfg-if",
+ "cpufeatures 0.2.17",
+ "digest",
+]
+
+[[package]]
+name = "sharded-slab"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f40ca3c46823713e0d4209592e8d6e826aa57e928f09752619fc696c499637f6"
+dependencies = [
+ "lazy_static",
+]
+
+[[package]]
+name = "shell-words"
+version = "1.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc6fe69c597f9c37bfeeeeeb33da3530379845f10be461a66d16d03eca2ded77"
+
+[[package]]
+name = "shlex"
+version = "2.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f8fadd59c855ef2080decdef8ff161eb6661b86933c9d82e5ba29dc602a55aba"
+
+[[package]]
+name = "signal-hook-registry"
+version = "1.4.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c4db69cba1110affc0e9f7bcd48bbf87b3f4fc7c61fc9155afd4c469eb3d6c1b"
+dependencies = [
+ "errno",
+ "libc",
+]
+
+[[package]]
+name = "signature"
+version = "2.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "77549399552de45a898a580c1b41d445bf730df867cc44e6c0233bbc4b8329de"
+dependencies = [
+ "digest",
+ "rand_core 0.6.4",
+]
+
+[[package]]
+name = "simd-adler32"
+version = "0.3.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a219298ac11a56ea9a6d2120044824d6f01aeb034955e7af7bc16858527deea"
+
+[[package]]
+name = "simple-file-manifest"
+version = "0.11.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5dd19be0257552dd56d1bb6946f89f193c6e5b9f13cc9327c4bc84a357507c74"
+
+[[package]]
+name = "slab"
+version = "0.4.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0c790de23124f9ab44544d7ac05d60440adc586479ce501c1d6d7da3cd8c9cf5"
+
+[[package]]
+name = "smallvec"
+version = "1.16.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d0d5d4b1981b8bbbb7aed204cae5726d683d5d6ac7e74ec54122ea28f315e7c8"
+
+[[package]]
+name = "snafu"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e84b3f4eacbf3a1ce05eac6763b4d629d60cbc94d632e4092c54ade71f1e1a2"
+dependencies = [
+ "snafu-derive",
+]
+
+[[package]]
+name = "snafu-derive"
+version = "0.8.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c1c97747dbf44bb1ca44a561ece23508e99cb592e862f22222dcf42f51d1e451"
+dependencies = [
+ "heck",
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "socket2"
+version = "0.6.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3d1e2c7f27f8d4cb10542a02c49005dbd6e93095799d6f3be745fae9f8fedd4"
+dependencies = [
+ "libc",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "spake2"
+version = "0.4.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c5482afe85a0b6ce956c945401598dbc527593c77ba51d0a87a586938b1b893a"
+dependencies = [
+ "curve25519-dalek",
+ "hkdf",
+ "rand_core 0.6.4",
+ "sha2",
+]
+
+[[package]]
+name = "spin"
+version = "0.9.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3763264f6b73151db08c50ff20d7d8a0b8796e021cdea7ceedad07b80155fa0e"
+
+[[package]]
+name = "spki"
+version = "0.7.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d91ed6c858b01f942cd56b37a94b3e0a1798290327d1236e4d9cf4eaca44d29d"
+dependencies = [
+ "base64ct",
+ "der",
+]
+
+[[package]]
+name = "stable_deref_trait"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6ce2be8dc25455e1f91df71bfa12ad37d7af1092ae736f3a6cd0e37bc7810596"
+
+[[package]]
+name = "static_assertions"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2eb9349b6444b326872e140eb1cf5e7c522154d69e7a0ffb0fb81c06b37543f"
+
+[[package]]
+name = "strsim"
+version = "0.11.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
+
+[[package]]
+name = "subtle"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "13c2bddecc57b384dee18652358fb23172facb8a2c51ccc10d74c157bdea3292"
+
+[[package]]
+name = "syn"
+version = "2.0.119"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "872831b642d1a07999a962a351ed35b955ea2cfc8f3862091e2a240a84f17297"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "syn"
+version = "3.0.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d78c8dee4c7bf0e14673097256fed6142ce9d3b85a408189d07482442145823b"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "unicode-ident",
+]
+
+[[package]]
+name = "sync_wrapper"
+version = "1.0.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0bf256ce5efdfa370213c1dabab5935a12e49f2c58d15e9eac2870d3b4f27263"
+dependencies = [
+ "futures-core",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.13.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "728a70f3dbaf5bab7f0c4b1ac8d7ae5ea60a4b5549c8a5914361c99147a709d2"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "synstructure"
+version = "0.14.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "901704edd0dfe137f1987838ee4f259e4e063c31371bdb423f7ae38ec6f77f02"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "tap"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "55937e1799185b12863d447f42597ed69d9928686b8d88a1df17376a097d8369"
+
+[[package]]
+name = "tempfile"
+version = "3.27.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32497e9a4c7b38532efcdebeef879707aa9f794296a4f0244f6f69e9bc8574bd"
+dependencies = [
+ "fastrand",
+ "getrandom 0.4.3",
+ "once_cell",
+ "rustix",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "thiserror"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6aaf5339b578ea85b50e080feb250a3e8ae8cfcdff9a461c9ec2904bc923f52"
+dependencies = [
+ "thiserror-impl 1.0.69",
+]
+
+[[package]]
+name = "thiserror"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09e52cb86a36cede5cb101bf8908837b3e4c6e5e59fe7fd85c23fb56200d189e"
+dependencies = [
+ "thiserror-impl 2.0.21",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "1.0.69"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4fee6c4efc90059e10f81e6d42c60a18f76588c3d74cb83a0b242a2b6c7504c1"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "thiserror-impl"
+version = "2.0.21"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fe5197923287db20a58125f0bc85c062f7f2c892de97b18c356f9efb14b28524"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "thread_local"
+version = "1.1.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ad99c4c6d32803332c548b1af0540b357b3f5fc0be8f6c6bfe8b2e6ae784070"
+dependencies = [
+ "cfg-if",
+]
+
+[[package]]
+name = "time"
+version = "0.3.55"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cdb87b95ec50ddfa440816d227a17b2ccbdda963a316a727fda0fc4334f7d134"
+dependencies = [
+ "deranged",
+ "num-conv",
+ "powerfmt",
+ "serde_core",
+ "time-core",
+ "time-macros",
+]
+
+[[package]]
+name = "time-core"
+version = "0.1.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9e1c906769ad99c88eaa54e728060edef082f8e358ff32030cb7c7d315e81109"
+
+[[package]]
+name = "time-macros"
+version = "0.2.32"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7e689342a48d2ea927c87ea50cabf8594854bf940e9310208848d680d668ed85"
+dependencies = [
+ "num-conv",
+ "time-core",
+]
+
+[[package]]
+name = "tinystr"
+version = "0.8.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "abc840c238154d58f9e86b2792261edfde565a17696e1cda1a449de27979801a"
+dependencies = [
+ "displaydoc",
+ "zerovec",
+]
+
+[[package]]
+name = "tinyvec"
+version = "1.13.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "fd3ca314f692efd6c868f8408f53fe444634a845f96c028b97d35f6a1f79f0ee"
+
+[[package]]
+name = "tls_codec"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0de2e01245e2bb89d6f05801c564fa27624dbd7b1846859876c7dad82e90bf6b"
+dependencies = [
+ "tls_codec_derive",
+ "zeroize",
+]
+
+[[package]]
+name = "tls_codec_derive"
+version = "0.4.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2d2e76690929402faae40aebdda620a2c0e25dd6d3b9afe48867dfd95991f4bd"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tokio"
+version = "1.54.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b52fd3255258d26fac7264ab5a76b53c13367136dc011d3d6ad4f8ed070396a3"
+dependencies = [
+ "bytes",
+ "libc",
+ "mio",
+ "parking_lot",
+ "pin-project-lite",
+ "signal-hook-registry",
+ "socket2",
+ "tokio-macros",
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "tokio-macros"
+version = "2.7.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "78773a2a397f451582ce068015985c33193cf6dea8b74d2a639fe457b2f07b0e"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "tokio-rustls"
+version = "0.26.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c9cc2678c2cdd569ef8215e2afd7954ada2ae20b4fdd2c5fe6139a3b02d105db"
+dependencies = [
+ "rustls",
+ "tokio",
+]
+
+[[package]]
+name = "tokio-util"
+version = "0.7.20"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e464cf451ba96ebfc6f9b6542f17ee8b8956e33f1e40d9690624e59d7a7f8a4b"
+dependencies = [
+ "bytes",
+ "futures-core",
+ "futures-io",
+ "futures-sink",
+ "libc",
+ "pin-project-lite",
+ "tokio",
+]
+
+[[package]]
+name = "toml"
+version = "0.8.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc1beb996b9d83529a9e75c17a1686767d148d70663143c7854d8b4a09ced362"
+dependencies = [
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.11",
+ "toml_edit",
+]
+
+[[package]]
+name = "toml"
+version = "1.1.8+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "20489e00e4d8741d6be680764cc12e270655e375a20d1011e844a9c3379e678d"
+dependencies = [
+ "indexmap",
+ "serde_core",
+ "serde_spanned 1.1.2",
+ "toml_datetime 1.1.2+spec-1.1.0",
+ "toml_parser",
+ "toml_writer",
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "0.6.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "22cddaf88f4fbc13c51aebbf5f8eceb5c7c5a9da2ac40a13519eb5b0a0e8f11c"
+dependencies = [
+ "serde",
+]
+
+[[package]]
+name = "toml_datetime"
+version = "1.1.2+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b86d767906c6c42421dcba507eb9d203e779497710a47782a224bb871653053"
+dependencies = [
+ "serde_core",
+]
+
+[[package]]
+name = "toml_edit"
+version = "0.22.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "41fe8c660ae4257887cf66394862d21dbca4a6ddd26f04a3560410406a2f819a"
+dependencies = [
+ "indexmap",
+ "serde",
+ "serde_spanned 0.6.9",
+ "toml_datetime 0.6.11",
+ "toml_write",
+ "winnow 0.7.15",
+]
+
+[[package]]
+name = "toml_parser"
+version = "1.1.5+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "baa693a8032d7e1cada7d0041e96126df243179ff061456783ac7f12bda4744c"
+dependencies = [
+ "winnow 1.0.4",
+]
+
+[[package]]
+name = "toml_write"
+version = "0.1.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5d99f8c9a7727884afe522e9bd5edbfc91a3312b36a77b5fb8926e4c31a41801"
+
+[[package]]
+name = "toml_writer"
+version = "1.1.3+spec-1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06bdbd8cfc056b8d2e2e85f29b56a3bdbecb527cef81eb39e3e7b98af4652770"
+
+[[package]]
+name = "tower"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ebe5ef63511595f1344e2d5cfa636d973292adc0eec1f0ad45fae9f0851ab1d4"
+dependencies = [
+ "futures-core",
+ "futures-util",
+ "pin-project-lite",
+ "sync_wrapper",
+ "tokio",
+ "tower-layer",
+ "tower-service",
+]
+
+[[package]]
+name = "tower-http"
+version = "0.6.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4cfcf7e2740e6fc6d4d688b4ef00650406bb94adf4731e43c096c3a19fe40840"
+dependencies = [
+ "bitflags 2.13.2",
+ "bytes",
+ "futures-util",
+ "http",
+ "http-body",
+ "pin-project-lite",
+ "tower",
+ "tower-layer",
+ "tower-service",
+ "url",
+]
+
+[[package]]
+name = "tower-layer"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "121c2a6cda46980bb0fcd1647ffaf6cd3fc79a013de288782836f6df9c48780e"
+
+[[package]]
+name = "tower-service"
+version = "0.3.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8df9b6e13f2d32c91b9bd719c00d1958837bc7dec474d94952798cc8e69eeec3"
+
+[[package]]
+name = "tracing"
+version = "0.1.44"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "63e71662fa4b2a2c3a26f570f037eb95bb1f85397f3cd8076caed2f026a6d100"
+dependencies = [
+ "pin-project-lite",
+ "tracing-attributes",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-attributes"
+version = "0.1.31"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7490cfa5ec963746568740651ac6781f701c9c5ea257c58e057f3ba8cf69e8da"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "tracing-core"
+version = "0.1.36"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "db97caf9d906fbde555dd62fa95ddba9eecfd14cb388e4f491a66d74cd5fb79a"
+dependencies = [
+ "once_cell",
+ "valuable",
+]
+
+[[package]]
+name = "tracing-log"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ee855f1f400bd0e5c02d150ae5de3840039a3f54b025156404e34c23c03f47c3"
+dependencies = [
+ "log",
+ "once_cell",
+ "tracing-core",
+]
+
+[[package]]
+name = "tracing-subscriber"
+version = "0.3.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cb7f578e5945fb242538965c2d0b04418d38ec25c79d160cd279bf0731c8d319"
+dependencies = [
+ "matchers",
+ "nu-ansi-term",
+ "once_cell",
+ "regex-automata",
+ "sharded-slab",
+ "smallvec",
+ "thread_local",
+ "tracing",
+ "tracing-core",
+ "tracing-log",
+]
+
+[[package]]
+name = "try-lock"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e421abadd41a4225275504ea4d6566923418b7f05506fbc9c0fe86ba7396114b"
+
+[[package]]
+name = "tungstenite"
+version = "0.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "18e5b8366ee7a95b16d32197d0b2604b43a0be89dc5fac9f8e96ccafbaedda8a"
+dependencies = [
+ "byteorder",
+ "bytes",
+ "data-encoding",
+ "http",
+ "httparse",
+ "log",
+ "rand 0.8.8",
+ "rustls",
+ "rustls-native-certs 0.7.3",
+ "rustls-pki-types",
+ "sha1",
+ "thiserror 1.0.69",
+ "utf-8",
+]
+
+[[package]]
+name = "twox-hash"
+version = "1.6.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "97fee6b57c6a41524a810daee9286c02d7752c4253064d0b05472833a438f675"
+dependencies = [
+ "cfg-if",
+ "static_assertions",
+]
+
+[[package]]
+name = "typenum"
+version = "1.20.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b6f5e870be6c3b371b77fe0ee0bafb859fa4964b4404c27de1d380043c4dda20"
+
+[[package]]
+name = "typewit"
+version = "1.15.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "214ca0b2191785cbc06209b9ca1861e048e39b5ba33574b3cedd58363d5bb5f6"
+dependencies = [
+ "typewit_proc_macros",
+]
+
+[[package]]
+name = "typewit_proc_macros"
+version = "1.8.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e36a83ea2b3c704935a01b4642946aadd445cea40b10935e3f8bd8052b8193d6"
+
+[[package]]
+name = "uncased"
+version = "0.9.10"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e1b88fcfe09e89d3866a5c11019378088af2d24c3fbd4f0543f96b479ec90697"
+dependencies = [
+ "version_check",
+]
+
+[[package]]
+name = "unicode-ident"
+version = "1.0.27"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a2c754d6c33795a1c324727428e5a7dedb5b06195f9890bdbcba760d3e246563"
+
+[[package]]
+name = "unicode-width"
+version = "0.2.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca718471876992059f251e33aafc334346ada08042b7661dd1fe313a9bced557"
+
+[[package]]
+name = "unsafe-libyaml"
+version = "0.2.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
+
+[[package]]
+name = "untrusted"
+version = "0.9.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8ecb6da28b8a351d773b68d5825ac39017e680750f980f3a1a85cd8dd28a47c1"
+
+[[package]]
+name = "url"
+version = "2.5.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ff67a8a4397373c3ef660812acab3268222035010ab8680ec4215f38ba3d0eed"
+dependencies = [
+ "form_urlencoded",
+ "idna",
+ "percent-encoding",
+ "serde",
+]
+
+[[package]]
+name = "utf-8"
+version = "0.7.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09cc8ee72d2a9becf2f2febe0205bbed8fc6615b7cb429ad062dc7b7ddd036a9"
+
+[[package]]
+name = "utf8_iter"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "af3bd9d3e571c26fcce9d033b87ea5ab061b8d2ffe9b7a5675d810d68f03edf0"
+dependencies = [
+ "utf_types",
+]
+
+[[package]]
+name = "utf8parse"
+version = "0.2.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
+
+[[package]]
+name = "utf_types"
+version = "1.0.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3a3b425286980a367278453f3b6d28cdcb134b574e5a35824a6ff5eebad50bb6"
+
+[[package]]
+name = "uuid"
+version = "1.26.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ef6dac1e96601b4fb3acccccff2139741fcb757cb9a36089bf5be91cfb285ce"
+dependencies = [
+ "getrandom 0.4.3",
+ "js-sys",
+ "md-5",
+ "serde_core",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "valuable"
+version = "0.1.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ba73ea9cf16a25df0c8caa16c51acb937d5712a8429db78a3ee29d5dcacd3a65"
+
+[[package]]
+name = "version_check"
+version = "0.9.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b928f33d975fc6ad9f86c8f283853ad26bdd5b10b7f1542aa2fa15e2289105a"
+
+[[package]]
+name = "walkdir"
+version = "2.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29790946404f91d9c5d06f9874efddea1dc06c5efe94541a7d6863108e3a5e4b"
+dependencies = [
+ "same-file",
+ "winapi-util",
+]
+
+[[package]]
+name = "want"
+version = "0.3.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec4cdd0dd910afe868b7ef477227d8d538b46b3075031afee8a9f2acb0a2ed0b"
+dependencies = [
+ "try-lock",
+]
+
+[[package]]
+name = "wasi"
+version = "0.11.1+wasi-snapshot-preview1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ccf3ec651a847eb01de73ccad15eb7d99f80485de043efb2f370cd654f4ea44b"
+
+[[package]]
+name = "wasip2"
+version = "1.0.4+wasi-0.2.12"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b67efb37e106e55ce722a510d6b5f9c17f083e5fc79afc2badeb12cc313d9487"
+dependencies = [
+ "wit-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a0181c14ddd6c7b8b0b0132a5f1ea2f32be0d893cd3ea97b6e3b28886b8a3d1c"
+dependencies = [
+ "cfg-if",
+ "rustversion",
+ "wasm-bindgen-macro",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-futures"
+version = "0.4.80"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5e14e0327cb5368ad60ccb22d04a9827a693c95a926d8d125e9fa39e0baec501"
+dependencies = [
+ "js-sys",
+ "tokio",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "wasm-bindgen-macro"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "6e931a02a39abdbf66966fc35902b5ed58344750a70885bed4ebb3d8eaf28ed9"
+dependencies = [
+ "quote",
+ "wasm-bindgen-macro-support",
+]
+
+[[package]]
+name = "wasm-bindgen-macro-support"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2ca4b54280e455bd831e33a6b8e734baf432fe63fbc35c42ac14ce67a043a53a"
+dependencies = [
+ "bumpalo",
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "wasm-bindgen-shared",
+]
+
+[[package]]
+name = "wasm-bindgen-shared"
+version = "0.2.130"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3b1f9c3798725016c6ee5f2f57869ec0831e8bbc0ab0310a86e787e97f41389e"
+dependencies = [
+ "unicode-ident",
+]
+
+[[package]]
+name = "wasmtimer"
+version = "0.4.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1c598d6b99ea013e35844697fc4670d08339d5cda15588f193c6beedd12f644b"
+dependencies = [
+ "futures",
+ "js-sys",
+ "parking_lot",
+ "pin-utils",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-sys"
+version = "0.3.107"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d7d179596ff5ec0f6de4db64d54011bde6289cc49603d3a6e4ce3f329207ab88"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "web-time"
+version = "1.1.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "5a6580f308b1fad9207618087a65c04e7a10bc77e02c8e84e9b00dd4b12fa0bb"
+dependencies = [
+ "js-sys",
+ "wasm-bindgen",
+]
+
+[[package]]
+name = "webpki-roots"
+version = "1.0.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f5f280bbb2b287bc8e7de7e3852945a0ff50d1bbcb5ed42b6c7a568c546df171"
+dependencies = [
+ "rustls-pki-types",
+]
+
+[[package]]
+name = "widestring"
+version = "1.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "72069c3113ab32ab29e5584db3c6ec55d416895e60715417b5b883a357c3e471"
+
+[[package]]
+name = "winapi-util"
+version = "0.1.11"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c2a7b1c03c876122aa43f3020e6c3c3ee5c05081c9a00739faf7503aeba10d22"
+dependencies = [
+ "windows-sys 0.61.2",
+]
+
+[[package]]
+name = "windows-core"
+version = "0.62.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b8e83a14d34d0623b51dce9581199302a221863196a1dde71a7663a4c2be9deb"
+dependencies = [
+ "windows-implement",
+ "windows-interface",
+ "windows-link",
+ "windows-result",
+ "windows-strings",
+]
+
+[[package]]
+name = "windows-implement"
+version = "0.60.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "053e2e040ab57b9dc951b72c264860db7eb3b0200ba345b4e4c3b14f67855ddf"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-interface"
+version = "0.59.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3f316c4a2570ba26bbec722032c4099d8c8bc095efccdc15688708623367e358"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "windows-link"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
+
+[[package]]
+name = "windows-result"
+version = "0.4.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7781fa89eaf60850ac3d2da7af8e5242a5ea78d1a11c49bf2910bb5a73853eb5"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-strings"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "7837d08f69c77cf6b07689544538e017c1bfcf57e34b4c0ff58e6c2cd3b37091"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.48.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "677d2418bec65e3338edb076e806bc1ec15693c5d0104683f2efe857f61056a9"
+dependencies = [
+ "windows-targets 0.48.5",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.52.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "282be5f36a8ce781fad8c8ae18fa3f9beff57ec1b52cb3de0789201425d9a33d"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.59.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1e38bc4d79ed67fd075bcc251a1c39b32a1776bbe92e5bef1f0bf1f8c531853b"
+dependencies = [
+ "windows-targets 0.52.6",
+]
+
+[[package]]
+name = "windows-sys"
+version = "0.61.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
+dependencies = [
+ "windows-link",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9a2fa6e2155d7247be68c096456083145c183cbbbc2764150dda45a87197940c"
+dependencies = [
+ "windows_aarch64_gnullvm 0.48.5",
+ "windows_aarch64_msvc 0.48.5",
+ "windows_i686_gnu 0.48.5",
+ "windows_i686_msvc 0.48.5",
+ "windows_x86_64_gnu 0.48.5",
+ "windows_x86_64_gnullvm 0.48.5",
+ "windows_x86_64_msvc 0.48.5",
+]
+
+[[package]]
+name = "windows-targets"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "9b724f72796e036ab90c1021d4780d4d3d648aca59e491e6b98e725b84e99973"
+dependencies = [
+ "windows_aarch64_gnullvm 0.52.6",
+ "windows_aarch64_msvc 0.52.6",
+ "windows_i686_gnu 0.52.6",
+ "windows_i686_gnullvm",
+ "windows_i686_msvc 0.52.6",
+ "windows_x86_64_gnu 0.52.6",
+ "windows_x86_64_gnullvm 0.52.6",
+ "windows_x86_64_msvc 0.52.6",
+]
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "2b38e32f0abccf9987a4e3079dfb67dcd799fb61361e53e2882c3cbaf0d905d8"
+
+[[package]]
+name = "windows_aarch64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "32a4622180e7a0ec044bb555404c800bc9fd9ec262ec147edd5989ccd0c02cd3"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "dc35310971f3b2dbbf3f0690a219f40e2d9afcf64f9ab7cc1be722937c26b4bc"
+
+[[package]]
+name = "windows_aarch64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "09ec2a7bb152e2252b53fa7803150007879548bc709c039df7627cabbd05d469"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "a75915e7def60c94dcef72200b9a8e58e5091744960da64ec734a6c6e9b3743e"
+
+[[package]]
+name = "windows_i686_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8e9b5ad5ab802e97eb8e295ac6720e509ee4c243f69d781394014ebfe8bbfa0b"
+
+[[package]]
+name = "windows_i686_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0eee52d38c090b3caa76c563b86c3a4bd71ef1a819287c19d586d7334ae8ed66"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "8f55c233f70c4b27f66c523580f78f1004e8b5a8b659e05a4eb49d4166cca406"
+
+[[package]]
+name = "windows_i686_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "240948bc05c5e7c6dabba28bf89d89ffce3e303022809e73deaefe4f6ec56c66"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "53d40abd2583d23e4718fddf1ebec84dbff8381c07cae67ff7768bbf19c6718e"
+
+[[package]]
+name = "windows_x86_64_gnu"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "147a5c80aabfbf0c7d901cb5895d1de30ef2907eb21fbbab29ca94c5b08b1a78"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0b7b52767868a23d5bab768e390dc5f5c55825b6d30b86c844ff2dc7414044cc"
+
+[[package]]
+name = "windows_x86_64_gnullvm"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "24d5b23dc417412679681396f2b49f3de8c1473deb516bd34410872eff51ed0d"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.48.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ed94fce61571a4006852b7389a063ab983c02eb1bb37b47f8272ce92d06d9538"
+
+[[package]]
+name = "windows_x86_64_msvc"
+version = "0.52.6"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "589f6da84c646204747d1270a2a5661ea66ed1cced2631d546fdfb155959f9ec"
+
+[[package]]
+name = "winnow"
+version = "0.7.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "df79d97927682d2fd8adb29682d1140b343be4ac0f08fd68b7765d9c059d3945"
+dependencies = [
+ "memchr",
+]
+
+[[package]]
+name = "winnow"
+version = "1.0.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "23b97319f7b8343df12cc98938e5c3eb436064524c8d2b4e30a1d3a36eecdf81"
+
+[[package]]
+name = "wit-bindgen"
+version = "0.57.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1ebf944e87a7c253233ad6766e082e3cd714b5d03812acc24c318f549614536e"
+
+[[package]]
+name = "writeable"
+version = "0.6.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3ad82d2a33cdc9674dc7465672f271e096168fcdbe0f799d9e6db8c5892679dc"
+
+[[package]]
+name = "wyz"
+version = "0.5.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "05f360fc0b24296329c78fda852a1e9ae82de9cf7b27dae4b7f62f118f77b9ed"
+dependencies = [
+ "tap",
+]
+
+[[package]]
+name = "x509"
+version = "0.2.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ca3cec94c3999f31341553f358ef55f65fc031291a022cd42ec0ce7219560c76"
+dependencies = [
+ "chrono",
+ "cookie-factory",
+]
+
+[[package]]
+name = "x509-cert"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1301e935010a701ae5f8655edc0ad17c44bad3ac5ce8c39185f75453b720ae94"
+dependencies = [
+ "const-oid",
+ "der",
+ "sha1",
+ "signature",
+ "spki",
+ "tls_codec",
+]
+
+[[package]]
+name = "x509-certificate"
+version = "0.24.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e57b9f8bcae7c1f36479821ae826d75050c60ce55146fd86d3553ed2573e2762"
+dependencies = [
+ "bcder",
+ "bytes",
+ "chrono",
+ "der",
+ "hex",
+ "pem",
+ "ring",
+ "signature",
+ "spki",
+ "thiserror 1.0.69",
+ "zeroize",
+]
+
+[[package]]
+name = "xml-rs"
+version = "0.8.29"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e450f9b2ed1dff33c94c12589a87338689467b9c4f5d8a5710bd09a847d2c8a7"
+
+[[package]]
+name = "xz2"
+version = "0.1.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "388c44dc09d76f1536602ead6d325eb532f5c122f17782bd57fb47baeeb767e2"
+dependencies = [
+ "lzma-sys",
+]
+
+[[package]]
+name = "yansi"
+version = "1.0.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "cfe53a6657fd280eaa890a3bc59152892ffa3e30101319d168b781ed6529b049"
+
+[[package]]
+name = "yasna"
+version = "0.5.2"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e17bb3549cc1321ae1296b9cdc2698e2b6cb1992adfa19a8c72e5b7a738f44cd"
+
+[[package]]
+name = "yoke"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "417ef3fcf6c300b7dbd25c85531a746931c02ad536f3cf4786ed1e88223340b3"
+dependencies = [
+ "stable_deref_trait",
+ "yoke-derive",
+ "zerofrom",
+]
+
+[[package]]
+name = "yoke-derive"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ec8ebde2db3681e8c9980cc27822030e68752690ddfa9473e739aeb4dbde6d71"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "synstructure 0.14.0",
+]
+
+[[package]]
+name = "zerocopy"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e5fe1f8f1b06191a00962174c61aa5005e0bb391a6d80d07e24d115c01a92ed8"
+dependencies = [
+ "zerocopy-derive",
+]
+
+[[package]]
+name = "zerocopy-derive"
+version = "0.8.63"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "863ad3ac83293fb4d740aedbfdc9240dd8d1a50c1099acd76ce80ce7c7230c7f"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "zerofrom"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "0ec05a11813ea801ff6d75110ad09cd0824ddba17dfe17128ea0d5f68e6c5272"
+dependencies = [
+ "zerofrom-derive",
+]
+
+[[package]]
+name = "zerofrom-derive"
+version = "0.1.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f75b4683f6c7f45248d4d64056a24298c6281e0993356d7d1b4a1a962ef10d4a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+ "synstructure 0.14.0",
+]
+
+[[package]]
+name = "zeroize"
+version = "1.9.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "e13084392c5e4bc371903e2935a5eaeed24905a7511356b883835e18a78f6879"
+dependencies = [
+ "zeroize_derive",
+]
+
+[[package]]
+name = "zeroize_derive"
+version = "1.5.0"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "3c50655cbb0fe3fc43170059e702f1ce5e19b84cec58dc87b037a09935c2f328"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 2.0.119",
+]
+
+[[package]]
+name = "zerotrie"
+version = "0.2.5"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "4ea269c3bd32f0a32c321907a2ae912ba6f4649bb0fc764a15627e99a7095a3f"
+dependencies = [
+ "displaydoc",
+ "yoke",
+ "zerofrom",
+]
+
+[[package]]
+name = "zerovec"
+version = "0.11.9"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "f58a2799cfe9a1670c7ea8edbd52ef8edb93cb37a7f83bf31ba9e35d9dae6a40"
+dependencies = [
+ "yoke",
+ "zerofrom",
+ "zerovec-derive",
+]
+
+[[package]]
+name = "zerovec-derive"
+version = "0.11.7"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "c3743ddbf47738d929cd1ae2e199d40d0162979dfe31aef8ae646d2bf00bf97a"
+dependencies = [
+ "proc-macro2",
+ "quote",
+ "syn 3.0.9",
+]
+
+[[package]]
+name = "zip"
+version = "2.6.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "1dcb24d0152526ae49b9b96c1dcf71850ca1e0b882e4e28ed898a93c41334744"
+dependencies = [
+ "arbitrary",
+ "crc32fast",
+ "crossbeam-utils",
+ "flate2",
+ "indexmap",
+ "memchr",
+ "zopfli",
+]
+
+[[package]]
+name = "zip_structs"
+version = "0.2.1"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "ce824a6bfffe8942820fa36d24973b7c83a40896749a42e33de0abdd11750ee5"
+dependencies = [
+ "byteorder",
+ "bytesize",
+ "thiserror 1.0.69",
+]
+
+[[package]]
+name = "zlib-rs"
+version = "0.6.8"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "b268e58e7c693d7c271f93ffc4ba3b380412554231c85bf61ca7af91042a4112"
+
+[[package]]
+name = "zmij"
+version = "1.0.23"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "29666d0abbfad1e3dc4dcf6144730dd3a3ab225bbbdac83319345b1b44ccfc1b"
+
+[[package]]
+name = "zopfli"
+version = "0.8.4"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "aaf7fc5d30c28483d93805c4a5e12b05bbb52407fa67c5f8bd552374cd01fb11"
+dependencies = [
+ "bumpalo",
+ "crc32fast",
+ "log",
+ "simd-adler32",
+]
+
+[[package]]
+name = "zune-core"
+version = "0.5.3"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "d56377fd46368984a170bc5aac5567e52ca5da874caa60bea39fcbca78fb658b"
+
+[[package]]
+name = "zune-jpeg"
+version = "0.5.15"
+source = "registry+https://github.com/rust-lang/crates.io-index"
+checksum = "27bc9d5b815bc103f142aa054f561d9187d191692ec7c2d1e2b4737f8dbd7296"
+dependencies = [
+ "zune-core",
+]
diff --git a/Cargo.toml b/Cargo.toml
new file mode 100644
index 0000000..d2d9ef0
--- /dev/null
+++ b/Cargo.toml
@@ -0,0 +1,63 @@
+[workspace]
+resolver = "3"
+members = [
+ "crates/ictl-device",
+ "crates/ictl-wda",
+ "crates/ictl-sign",
+ "crates/ictl-unlock",
+ "crates/ictl-daemon",
+ "crates/ictl-mcp",
+ "apps/iphone-control",
+ "spike",
+]
+
+[workspace.package]
+version = "0.0.0"
+edition = "2024"
+# rmcp 3.8 要求 1.88;Impactor/idevice 用 edition 2024
+rust-version = "1.88"
+license = "MIT"
+publish = false
+
+# 全部锁精确版本:idevice 0.2.0 之前每个小版本都可能有破坏性变更(见 docs/decisions.md D9)
+[workspace.dependencies]
+idevice = { version = "=0.1.68", default-features = false, features = [
+ "ring",
+ "usbmuxd",
+ "pair",
+ "amfi",
+ "core_device_proxy",
+ "tunnel_tcp_stack",
+ "rsd",
+ "xpc",
+ "core_device",
+ "display_stream",
+ "cryptexd",
+ "tss",
+ "installation_proxy",
+ "xctest",
+ "wda",
+] }
+# 阶段 4 改为 vendor 并打 Impactor 的权限补丁(docs/decisions.md D6)
+apple-codesign = { version = "=0.29.0", default-features = false }
+rmcp = { version = "=3.8.0", features = ["server", "macros", "transport-io"] }
+tokio = { version = "=1.54.1", features = ["full"] }
+reqwest = { version = "=0.13.5", default-features = false, features = ["json"] }
+quick-xml = "=0.42.0"
+image = { version = "=0.25.10", default-features = false, features = ["png", "jpeg"] }
+clap = { version = "=4.6.7", features = ["derive", "env"] }
+serde = { version = "=1.0.229", features = ["derive"] }
+serde_json = "=1.0.154"
+thiserror = "=2.0.21"
+tracing = "=0.1.44"
+tracing-subscriber = { version = "=0.3.23", features = ["env-filter"] }
+toml = "=1.1.8"
+base64 = "=0.23.1"
+anyhow = "=1.0.104"
+
+ictl-device = { path = "crates/ictl-device" }
+ictl-wda = { path = "crates/ictl-wda" }
+ictl-sign = { path = "crates/ictl-sign" }
+ictl-unlock = { path = "crates/ictl-unlock" }
+ictl-daemon = { path = "crates/ictl-daemon" }
+ictl-mcp = { path = "crates/ictl-mcp" }
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..3f8bd42
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 iphone-control contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
new file mode 100644
index 0000000..96e6c7f
--- /dev/null
+++ b/README.md
@@ -0,0 +1,61 @@
+# iphone-control
+
+在 Linux 上(不需要 Mac、不需要付费开发者账号)控制一台通过 USB 连接的真实 iPhone,并把能力以 MCP 工具的形式提供给 AI agent。用 Rust 写成,最终产物是**一个静态二进制**,外加系统自带的 `usbmuxd`。
+
+> **状态:设计阶段。** 本仓库目前只有设计文档和 Cargo workspace 骨架,所有函数都是 `todo!()`。能用的版本是保底方案 [iphone-control-toolkit](../iphone-control-toolkit)。
+
+## 与 iphone-control-toolkit 的关系
+
+| | iphone-control-toolkit(B 方案,保底) | iphone-control(本仓库,D 方案) |
+|---|---|---|
+| 做法 | 容器里装 go-ios、pymobiledevice3、plumesign 的命令行,由 Python MCP 和 shell 脚本调用 | 基于 Rust 库 [idevice](https://github.com/jkcoxson/idevice) 和 [Impactor](https://github.com/claration/impactor) 的组件组装,一个进程完成全部工作 |
+| 语言 | Go + Python + Rust + Shell | Rust(手机端 WDA 仍是 Objective-C) |
+| 许可证 | MIT(自己的代码) | MIT(自己的代码);依赖里有 MPL-2.0 文件级 copyleft,见 [licensing](docs/licensing.md) |
+| iOS 27 实测 | 全部通过 | 全部待验证,见 [spike-plan](docs/spike-plan.md) |
+
+D 方案验证通过并达到功能对等之前,toolkit 一直是可用版本。两者的 MCP 工具名和参数保持一致,切换时 agent 侧不用改。
+
+## 文档
+
+| 文档 | 内容 |
+|---|---|
+| [architecture.md](docs/architecture.md) | 架构图、单进程守护状态机、模块划分、数据和秘密目录 |
+| [capability-matrix.md](docs/capability-matrix.md) | 现有每项能力在 D 方案里由哪个 crate 实现、状态和风险 |
+| [spike-plan.md](docs/spike-plan.md) | 第 0 步:真机验证 5 项,决定 D 方案能否走下去 |
+| [roadmap.md](docs/roadmap.md) | 分阶段计划、完成标准、必测的回归用例 |
+| [licensing.md](docs/licensing.md) | 许可证分析、不能分发的苹果文件 |
+| [decisions.md](docs/decisions.md) | 关键取舍记录 |
+
+## 目录
+
+```
+crates/
+ ictl-device/ 设备层:usbmuxd 发现、配对、隧道、开发者镜像、HID、截图、App
+ ictl-wda/ WDA:启动 XCTest runner、HTTP 客户端、元素树解析
+ ictl-sign/ Apple ID 登录、注册设备、描述文件、签名(含 .xctest)
+ ictl-unlock/ 锁屏自动解锁(默认关闭)
+ ictl-daemon/ 守护进程:设备状态机、usbmuxd 看护、重签调度、通知、本地控制接口
+ ictl-mcp/ MCP 服务(stdio),工具定义与 toolkit 一致
+apps/
+ iphone-control/ 唯一的可执行程序:daemon / mcp / doctor / setup / sign 等子命令
+spike/ 第 0 步真机验证用的小程序
+```
+
+## 构建
+
+骨架阶段只做编译检查:
+
+```bash
+docker run --rm -v "$PWD":/src -w /src rust:1.91-slim-trixie cargo check --workspace
+```
+
+(需要 `--network host`,并在国内网络下设置 `HTTP_PROXY`/`HTTPS_PROXY`。)
+
+## 骨架编译检查
+
+2026-11-01,`rust:1.91-slim-trixie`(cargo 1.91.1):
+
+- `cargo check --workspace`:**通过**,只有 1 个 dead_code 警告(`WdaClient.session` 尚未使用)。idevice 用 `ring` 后端(`default-features = false`),不需要 cmake/clang。
+- `cargo test --workspace`:3 个单测通过(密码栏解析、区域放大倍数)。
+- 不需要 nightly:Impactor 的 `.cargo/config.toml` 只有 macOS 链接参数,仓库里没有 `rust-toolchain` 文件;最低版本由 rmcp 决定(1.88)。
+- 骨架里 `ictl-sign` 暂时直接依赖 crates.io 的 apple-codesign 0.29.0(未打补丁),vendor Impactor 组件在阶段 4 进行。
diff --git a/THIRD_PARTY.md b/THIRD_PARTY.md
new file mode 100644
index 0000000..2350093
--- /dev/null
+++ b/THIRD_PARTY.md
@@ -0,0 +1,19 @@
+# 第三方组件
+
+本项目自己的代码以 MIT 发布。下列组件保留各自的许可证。详细分析见 [docs/licensing.md](docs/licensing.md)。
+
+| 组件 | 版本 / 提交 | 许可证 | 引入方式 | 改动 |
+|---|---|---|---|---|
+| [idevice](https://github.com/jkcoxson/idevice) | 0.1.68 | MIT | crates.io | 无 |
+| [jktcp](https://crates.io/crates/jktcp) | 0.1.8(间接) | MIT | crates.io | 无 |
+| [rmcp](https://github.com/modelcontextprotocol/rust-sdk) | 3.8.0 | Apache-2.0(部分历史代码 MIT) | crates.io | 无 |
+| [apple-codesign](https://github.com/indygreg/apple-platform-rs) | 0.29.0 | MPL-2.0 | 阶段 4 起 vendor | 计划:Impactor 的 0o755 权限补丁 |
+| [Impactor](https://github.com/claration/impactor) `plume_core` | v2.7.2(阶段 4 时锁定提交) | MPL-2.0 | 阶段 4 起 vendor | 计划:无,或按需最小改动并标注 |
+| Impactor `plume_utils` | 同上 | MIT | 阶段 4 起 vendor | 计划:`BundleType::XCTest`,修复 `.xctest` 漏签 |
+| Impactor `omnisette` | 同上 | MIT | 阶段 4 起 vendor | 计划:anisette 地址可配置 |
+| [WebDriverAgent](https://github.com/appium/WebDriverAgent) | 阶段 7 时锁定 | BSD-3-Clause | macOS CI 编译未签名 IPA,作为 Release 附件 | 不嵌入苹果框架 |
+| [usbmuxd](https://github.com/libimobiledevice/usbmuxd) | Debian 包 | GPL-3.0 | 独立进程,不链接 | 无 |
+
+**不随项目分发**:开发者镜像(DDI/Cryptex)、XCTest.framework 等苹果文件;证书、描述文件、配对记录、Apple ID 会话等用户数据。
+
+完整的传递依赖许可证清单在阶段 7 用 `cargo about` 生成。
diff --git a/apps/iphone-control/Cargo.toml b/apps/iphone-control/Cargo.toml
new file mode 100644
index 0000000..d0da503
--- /dev/null
+++ b/apps/iphone-control/Cargo.toml
@@ -0,0 +1,18 @@
+[package]
+name = "iphone-control"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "iphone-control 命令行入口"
+
+[dependencies]
+ictl-daemon.workspace = true
+ictl-mcp.workspace = true
+ictl-sign.workspace = true
+clap.workspace = true
+tokio.workspace = true
+anyhow.workspace = true
+tracing.workspace = true
+tracing-subscriber.workspace = true
diff --git a/apps/iphone-control/src/main.rs b/apps/iphone-control/src/main.rs
new file mode 100644
index 0000000..1a9555d
--- /dev/null
+++ b/apps/iphone-control/src/main.rs
@@ -0,0 +1,60 @@
+//! iphone-control:唯一的可执行程序。
+
+use clap::{Parser, Subcommand};
+use std::path::PathBuf;
+
+#[derive(Parser)]
+#[command(name = "iphone-control", version, about = "在 Linux 上控制 iPhone,并提供 MCP 工具")]
+struct Cli {
+ /// 数据根目录(配对记录、账号、描述文件、日志等)
+ #[arg(long, env = "ICTL_DATA_DIR", default_value = "/var/lib/iphone-control")]
+ data_dir: PathBuf,
+ #[command(subcommand)]
+ command: Command,
+}
+
+#[derive(Subcommand)]
+enum Command {
+ /// 常驻守护进程(容器入口)
+ Daemon,
+ /// MCP stdio 服务(由 agent 拉起)
+ Mcp,
+ /// 逐层诊断:USB → usbmuxd → 配对 → 开发者模式 → 镜像 → 隧道 → WDA → 描述文件 → Apple ID 会话
+ Doctor,
+ /// 首次安装向导
+ Setup,
+ /// 交互式登录 Apple ID(密码 + 双重认证)
+ Login { apple_id: String },
+ /// 签名并安装 WDA
+ Sign,
+ /// 重签(默认剩余不足 2 天才执行)
+ Resign {
+ #[arg(long)]
+ force: bool,
+ },
+ /// 查看守护进程和设备状态
+ Status,
+ /// 显式把 WDA 桥接到 127.0.0.1 供外部工具使用(默认不监听任何端口)
+ WdaBridge {
+ #[arg(long, default_value_t = 8100)]
+ port: u16,
+ },
+}
+
+#[tokio::main]
+async fn main() -> anyhow::Result<()> {
+ tracing_subscriber::fmt().with_writer(std::io::stderr).init();
+ let cli = Cli::parse();
+ let _ = &cli.data_dir;
+ match cli.command {
+ Command::Daemon => todo!("ictl_daemon::run"),
+ Command::Mcp => todo!("ictl_mcp::serve_stdio"),
+ Command::Doctor => todo!(),
+ Command::Setup => todo!(),
+ Command::Login { .. } => todo!("ictl_sign::Account::login"),
+ Command::Sign => todo!(),
+ Command::Resign { .. } => todo!(),
+ Command::Status => todo!(),
+ Command::WdaBridge { .. } => todo!(),
+ }
+}
diff --git a/crates/ictl-daemon/Cargo.toml b/crates/ictl-daemon/Cargo.toml
new file mode 100644
index 0000000..e49bcca
--- /dev/null
+++ b/crates/ictl-daemon/Cargo.toml
@@ -0,0 +1,22 @@
+[package]
+name = "ictl-daemon"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "守护进程:状态机、usbmuxd 看护、重签、通知、控制接口"
+
+[dependencies]
+ictl-device.workspace = true
+ictl-wda.workspace = true
+ictl-sign.workspace = true
+ictl-unlock.workspace = true
+tokio.workspace = true
+reqwest.workspace = true
+serde.workspace = true
+serde_json.workspace = true
+toml.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
+anyhow.workspace = true
diff --git a/crates/ictl-daemon/src/lib.rs b/crates/ictl-daemon/src/lib.rs
new file mode 100644
index 0000000..8e88362
--- /dev/null
+++ b/crates/ictl-daemon/src/lib.rs
@@ -0,0 +1,64 @@
+//! 守护进程:唯一持有设备的进程。替代 toolkit 的 supervisor.sh + resign 定时器 + notify.sh。
+//!
+//! 设备状态机(docs/architecture.md §3):
+//! Absent → Attached → Paired → Tunneling → DdiCheck → WdaStarting → Ready
+//! 以及 NeedsTrust / NeedsUnlock(BFU)/ NeedsAutomationPin 三个等人的状态。
+
+pub mod protocol;
+
+use std::path::PathBuf;
+use std::time::Duration;
+
+#[derive(Debug, Clone, PartialEq, Eq, serde::Serialize, serde::Deserialize)]
+pub enum DeviceState {
+ Absent,
+ Attached,
+ NeedsTrust,
+ Paired,
+ Tunneling,
+ NeedsUnlock,
+ DdiCheck,
+ WdaStarting,
+ NeedsAutomationPin,
+ Ready { locked: bool },
+}
+
+/// usbmuxd 看护:sysfs 有 Apple 设备但 usbmuxd 看不到,连续这么多次就重启 usbmuxd
+pub const USBMUXD_MISS_LIMIT: u32 = 3;
+pub const POLL_INTERVAL: Duration = Duration::from_secs(10);
+/// WDA 启动失败退避:60s 起翻倍,上限 300s;等自动化密码时固定 60s
+pub const WDA_BACKOFF_START: Duration = Duration::from_secs(60);
+pub const WDA_BACKOFF_MAX: Duration = Duration::from_secs(300);
+pub const AUTOMATION_PIN_RETRY: Duration = Duration::from_secs(60);
+/// 描述文件剩余少于这个就重签
+pub const RESIGN_THRESHOLD: Duration = Duration::from_secs(2 * 24 * 3600);
+
+pub struct Config {
+ pub data_dir: PathBuf,
+ pub udid: Option<String>,
+ pub wda_bundle_id: Option<String>,
+ pub auto_unlock: bool,
+}
+
+/// 需要推送的事件;同一事件去重,恢复时推送一次
+#[derive(Debug, Clone, PartialEq, Eq)]
+pub enum Event {
+ ResignFailed(String),
+ SessionExpired,
+ NeedsAutomationPin,
+ WdaRecovered,
+ UnlockDisabled,
+ DeviceOffline,
+ DeviceOnline,
+}
+
+pub trait Notifier: Send + Sync {
+ fn notify(&self, event: &Event) -> impl std::future::Future<Output = ()> + Send;
+}
+
+/// 运行守护进程直到收到停止信号
+pub async fn run(config: Config) -> anyhow::Result<()> {
+ let _ = config;
+ todo!("状态机循环、usbmuxd 子进程、控制接口、重签调度")
+}
+
diff --git a/crates/ictl-daemon/src/protocol.rs b/crates/ictl-daemon/src/protocol.rs
new file mode 100644
index 0000000..068a3c3
--- /dev/null
+++ b/crates/ictl-daemon/src/protocol.rs
@@ -0,0 +1,35 @@
+//! 守护进程控制接口:Unix socket(默认 /run/iphone-control/ctl.sock,0600),每行一个 JSON。
+//! MCP 进程和 CLI 都通过它访问设备;本机不开 TCP 端口。
+
+use serde::{Deserialize, Serialize};
+
+pub const DEFAULT_SOCKET: &str = "/run/iphone-control/ctl.sock";
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(tag = "op", rename_all = "snake_case")]
+pub enum Request {
+ Status,
+ /// 区域单位为点;None 表示整屏
+ Screenshot { region: Option<(f64, f64, f64, f64)> },
+ ListElements { filter: String, limit: usize },
+ Tap { x: f64, y: f64 },
+ TapElement { text: String, index: usize },
+ LongPress { x: f64, y: f64, seconds: f64 },
+ Swipe { from: (f64, f64), to: (f64, f64), seconds: f64 },
+ TypeText { text: String, submit: bool },
+ PressButton { button: String },
+ ListApps { include_system: bool },
+ LaunchApp { app: String },
+ TerminateApp { app: String },
+ OpenUrl { url: String },
+ Resign { force: bool },
+}
+
+#[derive(Debug, Serialize, Deserialize)]
+#[serde(tag = "kind", rename_all = "snake_case")]
+pub enum Response {
+ Text { text: String },
+ /// JPEG base64 + 说明文字(尺寸、放大倍数、坐标换算式)
+ Image { jpeg_base64: String, caption: String },
+ Error { message: String },
+}
diff --git a/crates/ictl-device/Cargo.toml b/crates/ictl-device/Cargo.toml
new file mode 100644
index 0000000..a863393
--- /dev/null
+++ b/crates/ictl-device/Cargo.toml
@@ -0,0 +1,14 @@
+[package]
+name = "ictl-device"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "设备层:发现、配对、隧道、开发者镜像、HID、截图、App"
+
+[dependencies]
+idevice.workspace = true
+tokio.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
diff --git a/crates/ictl-device/src/lib.rs b/crates/ictl-device/src/lib.rs
new file mode 100644
index 0000000..9efa104
--- /dev/null
+++ b/crates/ictl-device/src/lib.rs
@@ -0,0 +1,184 @@
+//! 设备层:一台 iPhone 的全部底层能力,基于 `idevice`。
+//!
+//! - 发现与监听:usbmuxd `get_devices` / `listen`
+//! - 隧道:CoreDeviceProxy + jktcp 用户态 TCP 栈(免 root),RSD 握手
+//! - 开发者镜像:`cryptexd::installed_ddi` / `install_ddi`(个性化 + TSS);DDI 下载由本 crate 负责
+//! - HID:universalhidservice(触摸、键盘)、indigo(硬件按键);**必须同时持有显示媒体流**,否则事件被静默丢弃
+//! - 截图:CoreDevice screencaptureservice
+//! - App:installation_proxy(列出时过滤 `SBAppTags` 含 `hidden` 的后台服务)、安装 IPA
+//!
+//! 不负责:WDA(见 `ictl-wda`)、状态机(见 `ictl-daemon`)。
+
+use std::path::PathBuf;
+
+#[derive(Debug, thiserror::Error)]
+pub enum DeviceError {
+ #[error("设备未连接")]
+ NotConnected,
+ #[error("设备未配对,需要在手机上点「信任」")]
+ NotPaired,
+ #[error("开发者模式未开启")]
+ DeveloperModeOff,
+ /// 锁屏且自开机以来从未解锁(BFU),隧道建不起来,只能人工解锁
+ #[error("手机锁屏(PasswordProtected),需要人工解锁")]
+ PasswordProtected,
+ #[error("开发者镜像未挂载")]
+ DdiNotMounted,
+ #[error("idevice: {0}")]
+ Idevice(String),
+}
+
+pub type Result<T> = std::result::Result<T, DeviceError>;
+
+/// usbmuxd 报告的一台设备
+#[derive(Debug, Clone)]
+pub struct DeviceInfo {
+ pub udid: String,
+ pub product_type: String,
+ pub product_version: String,
+}
+
+/// 屏幕逻辑尺寸(点)
+#[derive(Debug, Clone, Copy, PartialEq)]
+pub struct ScreenSize {
+ pub width: f64,
+ pub height: f64,
+}
+
+/// 已安装 App(已过滤 hidden 后台服务)
+#[derive(Debug, Clone)]
+pub struct AppInfo {
+ pub name: String,
+ pub bundle_id: String,
+ pub system: bool,
+}
+
+/// usbmuxd 监听事件
+#[derive(Debug, Clone)]
+pub enum UsbEvent {
+ Attached(DeviceInfo),
+ Detached { udid: String },
+}
+
+/// 检查 sysfs 里是否有 Apple(05ac)USB 设备。容器无 udev 时用来判断"usbmuxd 是否漏掉了设备"。
+pub fn apple_usb_present() -> bool {
+ todo!("扫描 /sys/bus/usb/devices/*/idVendor")
+}
+
+pub async fn list_devices() -> Result<Vec<DeviceInfo>> {
+ todo!("UsbmuxdConnection::default().get_devices()")
+}
+
+pub async fn watch_devices() -> Result<tokio::sync::mpsc::Receiver<UsbEvent>> {
+ todo!("UsbmuxdConnection::listen()")
+}
+
+/// 一台设备的句柄。隧道、HID 会话都挂在它上面,由守护进程独占持有。
+pub struct Device {
+ pub info: DeviceInfo,
+}
+
+impl Device {
+ pub async fn open(udid: &str) -> Result<Self> {
+ let _ = udid;
+ todo!("取 usbmuxd provider、读配对记录")
+ }
+
+ pub async fn developer_mode_enabled(&self) -> Result<bool> {
+ todo!("amfi")
+ }
+
+ pub async fn reveal_developer_mode(&self) -> Result<()> {
+ todo!("amfi reveal")
+ }
+
+ /// 建立 CoreDeviceProxy 用户态隧道并完成 RSD 握手
+ pub async fn open_tunnel(&mut self) -> Result<Tunnel> {
+ todo!("CoreDeviceProxy::create_software_tunnel + RsdHandshake")
+ }
+}
+
+/// 一条活着的隧道。HID、截图、cryptexd、XCTest 都经它访问 RSD 服务。
+pub struct Tunnel {
+ _private: (),
+}
+
+impl Tunnel {
+ pub async fn ddi_mounted(&mut self) -> Result<bool> {
+ todo!("cryptexd::installed_ddi")
+ }
+
+ /// 个性化并安装开发者镜像。`restore_dir` 是解包好的 DDI Restore 目录(见 [`ensure_ddi_cache`])
+ pub async fn mount_ddi(&mut self, restore_dir: &std::path::Path) -> Result<()> {
+ let _ = restore_dir;
+ todo!("Cryptex1Assets::load + cryptexd::install_ddi")
+ }
+
+ pub async fn screenshot_png(&mut self) -> Result<Vec<u8>> {
+ todo!("screencaptureservices::take_screenshot(ImageFormat::Png)")
+ }
+
+ /// 开启 HID 会话:同时启动显示媒体流(RTP 丢弃)
+ pub async fn hid(&mut self) -> Result<HidSession> {
+ todo!("display_stream + UniversalHidServiceClient + IndigoHidClient")
+ }
+
+ pub async fn list_apps(&mut self, include_system: bool) -> Result<Vec<AppInfo>> {
+ let _ = include_system;
+ todo!("installation_proxy::get_apps,过滤 SBAppTags 含 hidden")
+ }
+
+ pub async fn install_ipa(&mut self, ipa: &std::path::Path) -> Result<()> {
+ let _ = ipa;
+ todo!("AFC 上传 + installation_proxy::install")
+ }
+}
+
+/// HID 硬件按键
+#[derive(Debug, Clone, Copy)]
+pub enum Button {
+ Home,
+ Lock,
+ VolumeUp,
+ VolumeDown,
+}
+
+/// HID 会话。坐标统一用点,内部换算成 0..=65535。
+pub struct HidSession {
+ pub screen: ScreenSize,
+}
+
+impl HidSession {
+ pub async fn tap(&mut self, x: f64, y: f64) -> Result<()> {
+ let _ = (x, y);
+ todo!("UniversalHidServiceClient::tap")
+ }
+
+ pub async fn drag(&mut self, from: (f64, f64), to: (f64, f64), seconds: f64) -> Result<()> {
+ let _ = (from, to, seconds);
+ todo!("UniversalHidServiceClient::drag")
+ }
+
+ pub async fn press(&mut self, button: Button) -> Result<()> {
+ let _ = button;
+ todo!("IndigoHidClient::send_button")
+ }
+
+ /// 只能输入键盘能直接按出的 ASCII
+ pub async fn type_ascii(&mut self, text: &str) -> Result<()> {
+ let _ = text;
+ todo!("MainKeyboardService")
+ }
+}
+
+/// 点 → HID 归一化坐标
+pub fn to_hid(x: f64, y: f64, screen: ScreenSize) -> (u16, u16) {
+ let n = |v: f64, max: f64| (v / max * 65535.0).round().clamp(0.0, 65535.0) as u16;
+ (n(x, screen.width), n(y, screen.height))
+}
+
+/// 确保本地有与设备匹配的 DDI 缓存,返回 Restore 目录。苹果文件,不能随项目分发。
+pub async fn ensure_ddi_cache(cache_dir: &std::path::Path) -> Result<PathBuf> {
+ let _ = cache_dir;
+ todo!("按配置的来源下载并解包")
+}
diff --git a/crates/ictl-mcp/Cargo.toml b/crates/ictl-mcp/Cargo.toml
new file mode 100644
index 0000000..e438f50
--- /dev/null
+++ b/crates/ictl-mcp/Cargo.toml
@@ -0,0 +1,20 @@
+[package]
+name = "ictl-mcp"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "MCP stdio 服务(13 个 iphone_* 工具)"
+
+[dependencies]
+ictl-daemon.workspace = true
+rmcp.workspace = true
+image.workspace = true
+base64.workspace = true
+tokio.workspace = true
+serde.workspace = true
+serde_json.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
+anyhow.workspace = true
diff --git a/crates/ictl-mcp/src/lib.rs b/crates/ictl-mcp/src/lib.rs
new file mode 100644
index 0000000..eae3fcf
--- /dev/null
+++ b/crates/ictl-mcp/src/lib.rs
@@ -0,0 +1,65 @@
+//! MCP stdio 服务。工具名、参数、返回文本与 iphone-control-toolkit 一致(docs/decisions.md D10),
+//! 切换时 agent 侧不用改。本 crate 不直接碰设备,全部经守护进程控制接口。
+//!
+//! 工具:iphone_status、iphone_screenshot(可选 x/y/width/height 区域放大)、iphone_list_elements、
+//! iphone_tap、iphone_tap_element、iphone_long_press、iphone_swipe、iphone_type_text、
+//! iphone_press_button、iphone_list_apps、iphone_launch_app、iphone_terminate_app、iphone_open_url。
+//!
+//! 基于 rmcp 3.8(`server` + `transport-io`),图片用 `ContentBlock::image(base64, "image/jpeg")` 返回。
+
+use std::path::PathBuf;
+
+/// 服务说明(发给客户端的 instructions),与 toolkit 一致
+pub const INSTRUCTIONS: &str = "控制一台通过 USB 连接的真实 iPhone。坐标单位是点(pt),与 iphone_screenshot 图像像素一致。\
+操作前先用 iphone_screenshot 或 iphone_list_elements 看清屏幕;能按名字点就优先用 iphone_tap_element;\
+手机平时会自动锁屏,各操作工具会先自动解锁。每次操作后再截图确认结果。\
+涉及付款、删除、发送消息、修改账号或隐私设置的操作,先向用户确认。";
+
+/// 区域放大:长边不足这个就放大到它
+pub const ZOOM_MIN_LONG_SIDE: u32 = 600;
+/// 区域放大:长边超过这个就缩到它
+pub const ZOOM_MAX_LONG_SIDE: u32 = 1200;
+
+pub struct McpConfig {
+ pub socket: PathBuf,
+}
+
+/// 在 stdin/stdout 上运行 MCP 服务直到客户端断开
+pub async fn serve_stdio(config: McpConfig) -> anyhow::Result<()> {
+ let _ = config;
+ todo!("rmcp::ServiceExt::serve(rmcp::transport::stdio())")
+}
+
+/// 计算区域放大后的尺寸和倍数;返回 (宽, 高, 倍数)
+pub fn zoom_target(region_w_px: u32, region_h_px: u32, px_per_pt: f64) -> (u32, u32, f64) {
+ let long = region_w_px.max(region_h_px) as f64;
+ let k = if long < ZOOM_MIN_LONG_SIDE as f64 {
+ ZOOM_MIN_LONG_SIDE as f64 / long
+ } else {
+ (ZOOM_MAX_LONG_SIDE as f64 / long).min(1.0)
+ };
+ let w = (region_w_px as f64 * k).round() as u32;
+ let h = (region_h_px as f64 * k).round() as u32;
+ (w, h, w as f64 / (region_w_px as f64 / px_per_pt))
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn zoom_small_region_upscales() {
+ // 200x60 点、3x 像素 → 600x180 像素 → 已经是 600,不再放大,倍数 3
+ let (w, h, z) = zoom_target(600, 180, 3.0);
+ assert_eq!((w, h), (600, 180));
+ assert!((z - 3.0).abs() < 1e-9);
+ }
+
+ #[test]
+ fn zoom_wide_region_downscales() {
+ // 430x40 点、3x → 1290x120 → 缩到 1200 宽,倍数约 2.79
+ let (w, _, z) = zoom_target(1290, 120, 3.0);
+ assert_eq!(w, 1200);
+ assert_eq!(format!("{z:.3}"), "2.791");
+ }
+}
diff --git a/crates/ictl-sign/Cargo.toml b/crates/ictl-sign/Cargo.toml
new file mode 100644
index 0000000..dcb5233
--- /dev/null
+++ b/crates/ictl-sign/Cargo.toml
@@ -0,0 +1,15 @@
+[package]
+name = "ictl-sign"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "Apple ID、描述文件、签名(含 .xctest)"
+
+[dependencies]
+apple-codesign.workspace = true
+tokio.workspace = true
+serde.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
diff --git a/crates/ictl-sign/src/lib.rs b/crates/ictl-sign/src/lib.rs
new file mode 100644
index 0000000..9cc8f76
--- /dev/null
+++ b/crates/ictl-sign/src/lib.rs
@@ -0,0 +1,84 @@
+//! Apple ID 登录、注册设备、描述文件、签名。
+//!
+//! 阶段 4 会 vendor Impactor 的 `plume_core`(MPL-2.0)、`plume_utils`、`omnisette`,并打两处补丁:
+//! 1. `plume_utils::BundleType` 增加 `XCTest`:`.xctest` 要签名、不带 entitlements。
+//! 原实现把 `xctest` 归为 `Unknown` 直接跳过,导致 WDA 报 XCTestErrorDomain 103。
+//! 2. apple-codesign 0.29.0 的权限补丁(Impactor `patches/apple-codesign-0.29.0/0001-apply-0o755-perms.patch`)。
+//! 作为 git 依赖引用 Impactor 时它的 `[patch.crates-io]` 不生效,所以必须 vendor。
+//!
+//! 免费账号:描述文件 7 天过期、开发证书 1 年;anisette 服务地址可配置(默认第三方)。
+
+use std::path::{Path, PathBuf};
+use std::time::SystemTime;
+
+#[derive(Debug, thiserror::Error)]
+pub enum SignError {
+ #[error("Apple ID 会话已失效,需要重新登录")]
+ SessionExpired,
+ #[error("需要双重认证验证码")]
+ TwoFactorRequired,
+ #[error("签名失败:{0}")]
+ Codesign(String),
+ #[error("开发者服务:{0}")]
+ Developer(String),
+}
+
+pub type Result<T> = std::result::Result<T, SignError>;
+
+/// 持久化的账号状态(会话、团队、私钥),存放在数据目录 `account/`,权限 0700
+pub struct Account {
+ pub team_id: String,
+ pub dir: PathBuf,
+}
+
+/// 双重认证验证码的获取方式(CLI 交互输入)
+pub trait TwoFactorPrompt {
+ fn code(&mut self) -> String;
+}
+
+impl Account {
+ pub async fn login(dir: &Path, apple_id: &str, password: &str, prompt: &mut dyn TwoFactorPrompt) -> Result<Self> {
+ let _ = (dir, apple_id, password, prompt);
+ todo!("plume_core::auth::account + omnisette")
+ }
+
+ pub async fn load(dir: &Path) -> Result<Self> {
+ let _ = dir;
+ todo!()
+ }
+
+ /// 每天调用一次,提前发现会话过期(不要等到重签时)
+ pub async fn verify_session(&self) -> Result<()> {
+ todo!("developer::qh::teams")
+ }
+
+ pub async fn register_device(&self, udid: &str, name: &str) -> Result<()> {
+ let _ = (udid, name);
+ todo!("developer::qh::devices")
+ }
+
+ /// 为 bundle id 取一份新的开发描述文件(会注册 App ID)
+ pub async fn provisioning_profile(&self, bundle_id: &str) -> Result<Profile> {
+ let _ = bundle_id;
+ todo!("developer::qh::{{app_ids, profile}}")
+ }
+}
+
+pub struct Profile {
+ pub path: PathBuf,
+ pub expires: SystemTime,
+ pub devices: Vec<String>,
+ pub get_task_allow: bool,
+}
+
+/// 签名 .ipa/.app:深度优先,包括 Frameworks、PlugIns/*.appex、PlugIns/*.xctest
+pub async fn sign(input: &Path, output: &Path, account: &Account, profile: &Profile, bundle_id: &str) -> Result<()> {
+ let _ = (input, output, account, profile, bundle_id);
+ todo!("plume_utils::Signer(打过 XCTest 补丁)")
+}
+
+/// 签名后自检:每个嵌套 bundle 都要有 `_CodeSignature`,主程序带 get-task-allow
+pub fn verify_signed(app_dir: &Path) -> Result<()> {
+ let _ = app_dir;
+ todo!()
+}
diff --git a/crates/ictl-unlock/Cargo.toml b/crates/ictl-unlock/Cargo.toml
new file mode 100644
index 0000000..1306a32
--- /dev/null
+++ b/crates/ictl-unlock/Cargo.toml
@@ -0,0 +1,14 @@
+[package]
+name = "ictl-unlock"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "锁屏自动解锁(默认关闭)"
+
+[dependencies]
+ictl-wda.workspace = true
+tokio.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
diff --git a/crates/ictl-unlock/src/lib.rs b/crates/ictl-unlock/src/lib.rs
new file mode 100644
index 0000000..7167d2f
--- /dev/null
+++ b/crates/ictl-unlock/src/lib.rs
@@ -0,0 +1,47 @@
+//! 锁屏自动解锁(默认关闭,需显式开启并配置密码文件)。
+//!
+//! 必须遵守的规则(toolkit 实测,见 docs/capability-matrix.md §5):
+//! 1. 唤醒固定为:Home → 等 1.0s → 底部上滑 → 等 1.5s;不以"树里有键盘"作判断
+//! 2. 先读密码栏「共N位数,已输入M位」,总位数不符一位都不输
+//! 3. 每位一个独立 W3C 手势(按下 80ms),按完核对已输入位数 +1,不符立即停
+//! 4. 期间 waitForIdleTimeout=1、animationCoolOffTimeout=0.2,结束后恢复(0 会唤醒失败)
+//! 5. 第一位没生效可重来(最多 3 轮);整串输完仍锁着才算输错:写停用标记 + 通知
+//! 6. 只支持纯数字;开机后首次解锁(BFU)永远需要人工
+
+use std::path::PathBuf;
+
+pub const WAKE_SETTLE_MS: u64 = 1000;
+pub const SWIPE_SETTLE_MS: u64 = 1500;
+pub const KEY_PRESS_MS: u64 = 80;
+pub const FIRST_DIGIT_ROUNDS: u32 = 3;
+
+#[derive(Debug, thiserror::Error)]
+pub enum UnlockError {
+ #[error("没有配置锁屏密码,需要人工解锁")]
+ NoPasscode,
+ #[error("自动解锁之前失败过已停用,请人工解锁并检查配置后清除停用标记")]
+ Disabled,
+ #[error("调不出密码键盘(一位都没输)")]
+ NoKeypad,
+ /// 输入不完整,不算输错
+ #[error("第 {0} 位没按上,已停止(输入不完整不算输错)")]
+ Incomplete(u32),
+ #[error("手机要求 {expected} 位密码,配置的是 {configured} 位,一位都没输")]
+ LengthMismatch { expected: u32, configured: u32 },
+ /// 整串输完仍锁着:已写停用标记
+ #[error("整串密码输完手机仍锁着,自动解锁已停用")]
+ WrongPasscode,
+ #[error(transparent)]
+ Wda(#[from] ictl_wda::WdaError),
+}
+
+pub struct UnlockConfig {
+ pub passcode_file: PathBuf,
+ pub disabled_flag: PathBuf,
+}
+
+/// 未锁屏直接返回 Ok;否则按规则解锁
+pub async fn ensure_unlocked(wda: &mut ictl_wda::WdaClient, cfg: &UnlockConfig) -> Result<(), UnlockError> {
+ let _ = (wda, cfg);
+ todo!()
+}
diff --git a/crates/ictl-wda/Cargo.toml b/crates/ictl-wda/Cargo.toml
new file mode 100644
index 0000000..5fdbd37
--- /dev/null
+++ b/crates/ictl-wda/Cargo.toml
@@ -0,0 +1,18 @@
+[package]
+name = "ictl-wda"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "WDA:启动 XCTest runner、HTTP 客户端、元素树解析"
+
+[dependencies]
+ictl-device.workspace = true
+idevice.workspace = true
+tokio.workspace = true
+quick-xml.workspace = true
+serde.workspace = true
+serde_json.workspace = true
+thiserror.workspace = true
+tracing.workspace = true
diff --git a/crates/ictl-wda/src/elements.rs b/crates/ictl-wda/src/elements.rs
new file mode 100644
index 0000000..62f1d5e
--- /dev/null
+++ b/crates/ictl-wda/src/elements.rs
@@ -0,0 +1,68 @@
+//! 元素树解析(纯函数,单测用脱敏 XML 样本)。
+//!
+//! 规则(来自 toolkit):
+//! - 只保留有 label/name/value 的元素
+//! - 按坐标判断是否在屏幕内;铺满全屏的 Application/Window/Toolbar 之类去掉
+//! - 父子重复(同文字同位置)去重
+//! - 点击中心取元素在屏幕内的部分
+//! - 锁屏密码键盘的 `Key` 元素不显示时也在树里,**不能**据此判断键盘已出现
+
+use ictl_device::ScreenSize;
+
+#[derive(Debug, Clone, PartialEq)]
+pub struct Element {
+ pub kind: String,
+ pub label: String,
+ pub name: String,
+ pub value: String,
+ pub center: (i64, i64),
+ pub size: (i64, i64),
+}
+
+pub fn parse(xml: &str, screen: ScreenSize) -> Vec<Element> {
+ let _ = (xml, screen);
+ todo!("quick-xml 遍历")
+}
+
+/// 按文字找元素:先完全相同,再包含(不区分大小写)
+pub fn find<'a>(elements: &'a [Element], text: &str) -> Vec<&'a Element> {
+ let _ = (elements, text);
+ todo!()
+}
+
+/// 锁屏键盘 0~9 的中心点;没找齐 10 个返回 None
+pub fn keypad(elements: &[Element]) -> Option<[(i64, i64); 10]> {
+ let _ = elements;
+ todo!()
+}
+
+/// 解析密码栏的值「共6位数,已输入2位」→ (6, 2)。只认恰好两个整数。
+pub fn parse_passcode_field(value: &str) -> Option<(u32, u32)> {
+ let nums: Vec<u32> = value
+ .split(|c: char| !c.is_ascii_digit())
+ .filter(|s| !s.is_empty())
+ .filter_map(|s| s.parse().ok())
+ .collect();
+ match nums[..] {
+ [total, entered] => Some((total, entered)),
+ _ => None,
+ }
+}
+
+/// 元素一行描述,格式与 toolkit 一致:`Button "秒表" @(261,880) 106x54`
+pub fn describe(e: &Element) -> String {
+ let text = [&e.label, &e.name, &e.value].into_iter().find(|s| !s.is_empty()).cloned().unwrap_or_default();
+ format!("{} \"{}\" @({},{}) {}x{}", e.kind, text, e.center.0, e.center.1, e.size.0, e.size.1)
+}
+
+#[cfg(test)]
+mod tests {
+ use super::*;
+
+ #[test]
+ fn passcode_field() {
+ assert_eq!(parse_passcode_field("共6位数,已输入0位"), Some((6, 0)));
+ assert_eq!(parse_passcode_field("共6位数,已输入5位"), Some((6, 5)));
+ assert_eq!(parse_passcode_field("密码栏"), None);
+ }
+}
diff --git a/crates/ictl-wda/src/lib.rs b/crates/ictl-wda/src/lib.rs
new file mode 100644
index 0000000..d61e4a0
--- /dev/null
+++ b/crates/ictl-wda/src/lib.rs
@@ -0,0 +1,103 @@
+//! WebDriverAgent:启动、HTTP 客户端、元素树解析。
+//!
+//! - 启动:idevice `XCUITestService::run_until_wda_ready`,就绪判定 = 本进程持有的 XCTest 会话存活 **且** `/status` ready
+//! (手机上残留的 WDA 在 runner 退出后还会响应几十秒)
+//! - 访问:经 idevice provider 直连设备 8100 端口,本机不监听任何端口
+//! - 元素树:`/source?format=xml&excluded_attributes=visible,...`(约 0.3 秒;完整树 7~8 秒),可见性按坐标自己判断
+
+use std::time::Duration;
+
+pub mod elements;
+
+#[derive(Debug, thiserror::Error)]
+pub enum WdaError {
+ #[error("WDA 不可用:{0}")]
+ Unavailable(String),
+ /// 手机重启后首次启用 UI 自动化,需要用户在手机上输入锁屏密码
+ #[error("WDA 卡在「Enable UI Automation」密码框,请在手机上输入锁屏密码")]
+ NeedsAutomationPin,
+ #[error("WDA 返回错误 {kind}: {message}")]
+ Remote { kind: String, message: String },
+}
+
+pub type Result<T> = std::result::Result<T, WdaError>;
+
+/// 识别 XCTest 启动失败是否是"等待自动化密码"
+pub fn is_automation_pin_error(message: &str) -> bool {
+ message.contains("enabling automation mode")
+}
+
+/// 一个运行中的 WDA runner
+pub struct WdaRunner {
+ pub bundle_id: String,
+}
+
+impl WdaRunner {
+ pub async fn start(tunnel: &mut ictl_device::Tunnel, bundle_id: &str, timeout: Duration) -> Result<Self> {
+ let _ = (tunnel, bundle_id, timeout);
+ todo!("TestConfig::from_installation_proxy + XCUITestService::run_until_wda_ready")
+ }
+
+ pub fn alive(&self) -> bool {
+ todo!("WdaRunHandle 任务是否仍在运行")
+ }
+
+ pub async fn stop(self) -> Result<()> {
+ todo!("WdaRunHandle::abort")
+ }
+}
+
+/// W3C pointer 动作的一步
+#[derive(Debug, Clone)]
+pub enum PointerStep {
+ Move { x: f64, y: f64, ms: u64 },
+ Down,
+ Up,
+ Pause { ms: u64 },
+}
+
+/// appium settings 中与等待有关的两项。锁屏解锁期间要临时调小。
+#[derive(Debug, Clone, Copy)]
+pub struct IdleSettings {
+ pub wait_for_idle_timeout: f64,
+ pub animation_cool_off_timeout: f64,
+}
+
+/// WDA HTTP 客户端,会话失效时自动重建一次
+pub struct WdaClient {
+ session: Option<String>,
+}
+
+impl WdaClient {
+ pub fn new() -> Self {
+ Self { session: None }
+ }
+
+ pub async fn ready(&mut self) -> Result<bool> { todo!("GET /status") }
+ pub async fn screen_size(&mut self) -> Result<ictl_device::ScreenSize> { todo!("GET /wda/screen") }
+ pub async fn locked(&mut self) -> Result<bool> { todo!("GET /wda/locked") }
+ pub async fn active_app(&mut self) -> Result<String> { todo!("GET /wda/activeAppInfo") }
+ pub async fn screenshot_png(&mut self) -> Result<Vec<u8>> { todo!("GET /screenshot") }
+ pub async fn source_xml(&mut self) -> Result<String> { todo!("GET /source?format=xml&excluded_attributes=...") }
+ pub async fn tap(&mut self, x: f64, y: f64) -> Result<()> { let _ = (x, y); todo!("POST /session/{{id}}/wda/tap") }
+ pub async fn touch_and_hold(&mut self, x: f64, y: f64, seconds: f64) -> Result<()> { let _ = (x, y, seconds); todo!() }
+ /// 一次 W3C actions 请求。注意:多次点击合并成一个请求会漏键,解锁时每位单独发
+ pub async fn actions(&mut self, steps: &[PointerStep]) -> Result<()> { let _ = steps; todo!("POST /session/{{id}}/actions") }
+ pub async fn keys(&mut self, text: &str) -> Result<()> { let _ = text; todo!("POST /session/{{id}}/wda/keys") }
+ pub async fn press_button(&mut self, name: &str) -> Result<()> { let _ = name; todo!() }
+ pub async fn lock(&mut self) -> Result<()> { todo!("POST /session/{{id}}/wda/lock") }
+ /// 启动并等到前台后再停 1 秒(冷启动立即点击会被吞)
+ pub async fn launch_app(&mut self, bundle_id: &str) -> Result<()> { let _ = bundle_id; todo!() }
+ pub async fn terminate_app(&mut self, bundle_id: &str) -> Result<()> { let _ = bundle_id; todo!() }
+ pub async fn open_url(&mut self, url: &str) -> Result<()> { let _ = url; todo!("POST /session/{{id}}/url") }
+ pub async fn idle_settings(&mut self) -> Result<IdleSettings> { todo!("GET /session/{{id}}/appium/settings") }
+ pub async fn set_idle_settings(&mut self, s: IdleSettings) -> Result<()> { let _ = s; todo!() }
+ /// 锁屏密码栏的值(形如「共6位数,已输入2位」)
+ pub async fn passcode_field_value(&mut self) -> Result<Option<String>> { todo!("查 XCUIElementTypeSecureTextField 的 value") }
+}
+
+impl Default for WdaClient {
+ fn default() -> Self {
+ Self::new()
+ }
+}
diff --git a/docs/architecture.md b/docs/architecture.md
new file mode 100644
index 0000000..0ec6182
--- /dev/null
+++ b/docs/architecture.md
@@ -0,0 +1,132 @@
+# 架构
+
+## 1. 总览
+
+```
+┌──────────────────────── Linux 主机 / 容器 ─────────────────────────────────────┐
+│ │
+│ Claude Code ──stdio──▶ iphone-control mcp ──unix socket──┐ │
+│ (每个会话一个,短命) (ictl-mcp,无设备状态) │ │
+│ ▼ │
+│ iphone-control daemon(ictl-daemon,常驻,唯一持有设备) │
+│ ┌───────────────────────────────────────────────────┐ │
+│ usbmuxd(系统包)◀─看护─┤ 设备状态机 usbmux 监听 重签调度 通知 │ │
+│ │ │ │ │ │
+│ │ │ ictl-device: lockdown · CoreDeviceProxy 隧道 │ │
+│ │ │ (jktcp 用户态 TCP) · RSD · cryptexd │ │
+│ │ │ · HID · 截图 · App 列表/启动 │ │
+│ │ │ ictl-wda: XCUITestService 启动 WDA · │ │
+│ │ │ WDA HTTP(直连设备端口,不监听本机) │ │
+│ │ │ ictl-unlock: 锁屏解锁(可选) │ │
+│ │ │ ictl-sign: plume_core 登录 · 描述文件 · 签名 │ │
+│ │ └───────────────────────────────────────────────────┘ │
+└────────┼──────────────────────────────────────────────────────────────────────┘
+ │ USB
+ ┌─────▼───────────────────────────────┐
+ │ iPhone(iOS 17+,开发者模式) │
+ │ 开发者镜像(Cryptex,iOS 27 含 dtuhidd)│
+ │ WebDriverAgent(免费 Apple ID 签名) │
+ └─────────────────────────────────────┘
+```
+
+和 toolkit 的根本区别:toolkit 每条 HID 命令都要重新建一次隧道(3~5 秒),WDA 端口转发要单独一个进程,各工具各建各的隧道。D 方案里**守护进程独占设备**,隧道、HID 会话(含显示媒体流)、WDA 会话都常驻复用;MCP 进程只是一个薄客户端。
+
+## 2. 进程模型
+
+| 进程 | 生命周期 | 职责 |
+|---|---|---|
+| `iphone-control daemon` | 常驻,容器入口 | 唯一和设备通信的进程。维护设备状态机,对外提供本地控制接口 |
+| `iphone-control mcp` | 每个 agent 会话一个 | MCP stdio 服务,把工具调用翻译成对守护进程的请求 |
+| `usbmuxd` | 守护进程的子进程 | 系统包,GPL-3.0,独立进程运行,不链接 |
+| `iphone-control doctor/setup/sign/...` | 一次性 | 运维命令,也通过控制接口或直接调用库 |
+
+**控制接口**:Unix socket(默认 `/run/iphone-control/ctl.sock`,权限 0600),JSON 行协议。理由:
+
+- MCP 进程由 `docker exec -i` 拉起,短命且可能同时有多个;设备连接(尤其是 HID 需要的显示媒体流、WDA 的 XCTest 会话)只能有一个持有者。
+- 不开 TCP 端口,避免重蹈 `ios forward` 监听所有网卡的覆辙。WDA 本身也通过 idevice 的 provider 直连设备端口,**本机不再监听 8100**。如需给外部工具用,`iphone-control wda-bridge` 显式开启,只绑 127.0.0.1。
+
+## 3. 守护进程状态机
+
+每台设备一个状态机(先支持单设备,结构上允许多设备)。
+
+```
+ ┌─────────┐ usbmux Attached ┌──────────┐ 有配对记录 ┌──────────┐
+ ───────▶│ Absent │─────────────────▶│ Attached │─────────────▶│ Paired │
+ └─────────┘◀─────────────────└──────────┘ └────┬─────┘
+ ▲ Detached / 掉线 │ 无配对记录 │ 开发者模式已开
+ │ ▼ ▼
+ │ NeedsTrust(提示用户点信任) ┌──────────┐
+ │ │ Tunneling│◀─┐
+ │ └────┬─────┘ │
+ │ PasswordProtected:锁屏/BFU │ RSD 握手成功
+ │ → NeedsUnlock(BFU 必须人工) ▼ │
+ │ ┌──────────┐ │ 隧道断
+ │ │ DdiCheck │ │
+ │ └────┬─────┘ │
+ │ 未挂载 → install_ddi │ 已挂载 │
+ │ ▼ │
+ │ ┌──────────┐ │
+ │ 「Enable UI Automation」超时 → NeedsAutomationPin │WdaStarting│──┘
+ │ (推送通知,60 秒重试,不指数退避) └────┬─────┘
+ │ │ /status ready
+ │ ▼
+ │ ┌──────────┐
+ └────────────────────────────────────────────────────│ Ready │
+ └──────────┘
+ 子状态:Locked / Unlocked
+```
+
+要点(每一条都来自 toolkit 实际踩过的坑):
+
+- **热插拔**:容器里没有 udev,usbmuxd 收不到热插拔事件。守护进程同时做两件事:订阅 usbmuxd 的 `Listen` 事件;并每 10 秒检查 sysfs `/sys/bus/usb/devices/*/idVendor` 是否有 `05ac`。连续 3 次"USB 上有 Apple 设备但 usbmuxd 看不到"就重启 usbmuxd 子进程。
+- **隧道**:CoreDeviceProxy + jktcp 用户态 TCP 栈(idevice `tunnel_tcp_stack`),不需要 root,不创建 TUN 网卡。锁屏且从未解锁过(BFU)时报 `PasswordProtected`,进入 `NeedsUnlock`,只能人工解锁。
+- **开发者镜像**:每次进入 `DdiCheck` 都先 `installed_ddi()` 查询(toolkit 实测已挂载时约 1 秒),未挂载才走 `install_ddi()`(个性化 + TSS)。手机重启后镜像会掉,所以这一步不能省。
+- **WDA 就绪判定**:必须同时满足"本进程持有的 XCTest 会话存活"和 `/status` 返回 ready。toolkit 踩过:host 侧 runner 退出后,手机上残留的 WDA 还会响应几十秒再自杀,单看 `/status` 会误判。
+- **自动化密码框**:手机重启后首次启用 UI 自动化会弹「为 XCTest 输入 iPhone 密码」,没人输就报 `Timed out while enabling automation mode`。识别到这个错误:进入 `NeedsAutomationPin`、只推送一次通知、保持 60 秒重试;恢复后再推送一次。
+- **退避**:其它 WDA 启动失败按 60s → 120s → 300s 退避,上限 5 分钟;回到 `Absent` 时重置。
+
+## 4. 模块划分
+
+| crate | 职责 | 主要依赖 |
+|---|---|---|
+| `ictl-device` | `Device` 句柄:usbmux 发现与监听、lockdown、配对状态、开发者模式状态、隧道(`TunnelHandle`)、开发者镜像、HID 会话(持有显示媒体流)、截图、App 列表/启动/结束、安装 IPA | `idevice`(锁定版本) |
+| `ictl-wda` | `WdaRunner`(XCUITestService 启动/停止)、`WdaClient`(会话、点击、W3C actions、keys、source、screenshot、appium settings)、元素树解析(纯函数,可单测) | `idevice`(`xctest`、`wda`)、`quick-xml` |
+| `ictl-sign` | Apple ID 登录(含双重认证交互)、会话持久化、注册设备、App ID、描述文件、签名 `.app`/`.ipa`(**包括 `.xctest`**) | 内置的 `plume_core`/`plume_utils`/`omnisette`(vendored,MPL-2.0/MIT),`apple-codesign`(打补丁) |
+| `ictl-unlock` | 锁屏密码键盘定位、逐位输入并核对密码栏、失败即停用 | `ictl-wda` |
+| `ictl-daemon` | 状态机、usbmuxd 子进程看护、重签调度、通知(Bark/Telegram)、控制接口服务端 | 以上全部、`tokio` |
+| `ictl-mcp` | MCP stdio 服务,13 个 `iphone_*` 工具;截图缩放/裁剪 | `rmcp`(`server`、`transport-io`)、`image` |
+| `apps/iphone-control` | CLI 入口:`daemon`、`mcp`、`doctor`、`setup`、`login`、`sign`、`resign`、`status`、`wda-bridge` | `clap` |
+
+依赖方向:`apps` → `ictl-daemon` / `ictl-mcp` → `ictl-unlock` → `ictl-wda` → `ictl-device`;`ictl-sign` 只被 `ictl-daemon` 和 `apps` 使用。`ictl-mcp` 不依赖 `ictl-device`,只依赖控制接口的协议类型(放在 `ictl-daemon::protocol`,后续可拆成 `ictl-proto`)。
+
+## 5. 截图与坐标
+
+- 坐标单位统一用**点(pt)**,与 WDA 一致;屏幕点尺寸从 WDA `/wda/screen` 读取并缓存,WDA 不可用时用设备型号表兜底(不写死 430×932)。
+- HID 坐标是 0~65535 归一化,换算 `x / w * 65535`。
+- 截图优先走 WDA(toolkit 实测约 0.4 秒);WDA 不可用时走 CoreDevice `screencaptureservice`(不需要签名)。
+- 区域放大:从原始像素截图裁剪,长边 < 600 放大到 600,> 1200 缩到 1200,返回倍数和坐标换算式(三位有效数字)。
+
+## 6. 数据与秘密目录
+
+全部在一个数据根目录下(默认 `/var/lib/iphone-control`,容器里挂卷):
+
+| 路径 | 内容 | 权限 | 进 git / 进镜像 |
+|---|---|---|---|
+| `lockdown/` | 配对记录(usbmuxd 读写,即 `/var/lib/lockdown`) | 0700 | 否 |
+| `account/` | Apple ID 会话、开发私钥、证书 | 0700 | 否 |
+| `profiles/` | 当前描述文件 | 0700 | 否 |
+| `ddi/` | 开发者镜像缓存(运行时下载的苹果文件) | 0755 | **否,不得分发** |
+| `wda/` | 未签名 WDA.ipa(来自本项目 Release,校验 sha256)、当前签好的包 | 0755 | 未签名包作为 Release 附件 |
+| `secrets/passcode` | 锁屏密码(仅启用自动解锁时) | 0600 | 否 |
+| `notify.toml` | 通知渠道配置 | 0600 | 否 |
+| `logs/` | 日志,按大小轮转 | 0755 | 否 |
+| `state.json` | 状态机快照、自动解锁停用标记、上次重签结果 | 0600 | 否 |
+
+配置文件 `config.toml`(数据根目录下)只放非秘密项:UDID(可空,自动探测)、代理、通知开关、重签阈值、自动解锁开关。
+
+## 7. 重签与通知
+
+- 守护进程每天检查一次:描述文件剩余 < 2 天才重签;同时**每天验证一次 Apple ID 会话**(toolkit 的教训:只在要重签时才发现登录过期,只剩 2 天处理)。
+- 重签流程:`plume_core` 取新描述文件 → `ictl-sign` 签名(含 `.xctest`)→ `installation_proxy` 安装 → 重启 WDA。安装成功后才替换旧文件。
+- 通知事件:重签失败、Apple ID 会话失效、需要输入自动化密码、WDA 恢复、自动解锁失败已停用、手机离线超过 10 分钟。同一事件不重复推送,恢复时推送一次。
+- 容器整个挂掉时守护进程发不了通知,这部分仍需宿主机侧的 systemd 单元(可选,放在 `contrib/`)。
diff --git a/docs/capability-matrix.md b/docs/capability-matrix.md
new file mode 100644
index 0000000..bbd5130
--- /dev/null
+++ b/docs/capability-matrix.md
@@ -0,0 +1,89 @@
+# 能力对照表
+
+把 toolkit 现有的每项能力,对应到 D 方案里由谁实现。
+
+状态说明:
+- **已有**:上游 crate 有现成 API,按源码核实过,接上即可(仍需真机验证 iOS 27)
+- **需修**:上游有,但有已知缺陷要改
+- **需自写**:上游没有,或是我们自己的业务逻辑
+
+上游版本基线:idevice 0.1.68、Impactor 2.7.2(plume_core / plume_utils / omnisette)、apple-codesign 0.29.0、rmcp 3.8.0。
+
+## 1. 设备基础
+
+| 能力 | toolkit 现在靠 | D 方案实现 | 状态 | 风险 / 待验证 |
+|---|---|---|---|---|
+| 发现设备、热插拔 | usbmuxd + supervisor 轮询 | `idevice::usbmuxd::UsbmuxdConnection::{get_devices, listen}` + sysfs 检查 | 已有 + 需自写(看护逻辑) | 容器无 udev,必须保留"重启 usbmuxd"兜底 |
+| 配对、信任 | `idevicepair`(libimobiledevice) | idevice `pair` feature;配对记录通过 usbmuxd `save_pair_record` | 已有 | 首次配对流程待验证 |
+| 显示开发者模式开关 | `pymobiledevice3 amfi reveal-developer-mode` | idevice `amfi` | 已有 | — |
+| iOS 17+ 隧道(免 root) | `ios tunnel start --userspace` / pmd3 进程内隧道 | `CoreDeviceProxy::create_software_tunnel()`(jktcp)+ RSD 握手 | 已有 | README 自述 "Naive" TCP 栈;长时间 WDA 流量、大截图下的稳定性和吞吐待验证 |
+| 挂载开发者镜像(iOS 27 Cryptex) | `pymobiledevice3 mounter auto-mount` | `cryptexd::install_ddi()`、`installed_ddi()`;读 `read-personalization-id` + `get-nonce`,`TSSRequest::add_cryptex1_tags` 向 `gs.apple.com` 签票,再 `install` | 已有(流程完整) + 需自写(DDI 下载) | `tss` feature 标注 "Partial support";`install_ddi` 需要调用方提供解包好的 DDI `Restore` 目录(`Cryptex1Assets::load`),**下载 DDI 要自己做**。最高风险项 |
+| 安装 IPA | `ios install` | `installation_proxy::install`(需先 AFC 上传)或 `installcoordination_proxy` | 已有 | — |
+| 列出 App(过滤 hidden 系统服务) | `ios apps --system` + 过滤 `SBAppTags` 含 `hidden` | `installation_proxy::get_apps`(取 `SBAppTags`) | 已有 + 需自写(过滤) | 必须保留 hidden 过滤,否则「设置」会匹配到 5 个后台服务 |
+
+## 2. 13 个 MCP 工具
+
+| 工具 | toolkit 现在靠 | D 方案实现 | 状态 | 风险 / 待验证 |
+|---|---|---|---|---|
+| `iphone_status` | WDA `/status`、`/wda/activeAppInfo`、`/wda/locked` | 守护进程状态机快照 + WDA 查询 | 需自写 | — |
+| `iphone_screenshot`(含区域放大) | WDA `/screenshot`,退回 pmd3 `screen-capture` | WDA `screenshot`;退回 `core_device::screencaptureservices::take_screenshot(Png)`;缩放裁剪用 `image` crate | 已有 + 需自写(缩放) | 截图走隧道时的耗时待测 |
+| `iphone_list_elements` | WDA `/source?format=xml&excluded_attributes=visible,...` + Python 解析 | `ictl-wda` 调 source;解析用 `quick-xml`;可见性按坐标判断、去掉全屏容器、去重 | 需自写 | idevice `WdaClient::source` 不支持 `excluded_attributes` 参数,需自己发请求(完整树 7~8 秒,排除后 0.3 秒) |
+| `iphone_tap` | WDA `/wda/tap`,退回 HID | WDA `tap`;退回 `UniversalHidServiceClient::tap` | 已有 | HID 需要显示媒体流同时存在 |
+| `iphone_tap_element` | 解析元素树按文字匹配后点中心 | 同左,纯逻辑 | 需自写 | — |
+| `iphone_long_press` | WDA `/wda/touchAndHold` | WDA `touch_and_hold` | 已有 | — |
+| `iphone_swipe` | WDA W3C `/actions`,退回 HID `drag` | W3C actions(需自己构造);退回 `UniversalHidServiceClient::drag` | 已有 + 需自写(actions 构造) | — |
+| `iphone_type_text`(含中文) | WDA `/wda/keys`;退回 HID `type`(仅 ASCII) | WDA `send_keys`;退回 `MainKeyboardService`(HID 键盘,仅能按键码) | 已有 | HID 路线不能输中文,保持现状的提示 |
+| `iphone_press_button` | WDA `/wda/pressButton`,锁屏键走 HID | WDA `press_button`;锁屏 `/wda/lock`;退回 `IndigoHidClient::send_button` | 已有 | indigo 与 universalhidservice 在 iOS 27 上各自能用哪些待验证 |
+| `iphone_list_apps` | `ios apps` | `installation_proxy::get_apps` | 已有 | — |
+| `iphone_launch_app` | WDA `/wda/apps/launch` + 等前台 1 秒 | WDA `launch_app` + 轮询 activeAppInfo;退回 `core_device::app_service::launch_application` | 已有 + 需自写(等前台) | 冷启动立即点击会被吞,必须保留等待 |
+| `iphone_terminate_app` | WDA `/wda/apps/terminate` | WDA `terminate_app` | 已有 | — |
+| `iphone_open_url` | WDA `/url` | WDA 会话 `/url`(idevice 未封装,自己发) | 需自写 | — |
+
+## 3. 后台能力
+
+| 能力 | toolkit 现在靠 | D 方案实现 | 状态 | 风险 / 待验证 |
+|---|---|---|---|---|
+| 启动 WDA | `ios runwda --bundleid ... --xctestconfig=WebDriverAgentRunner.xctest` | `XCUITestService::run_until_wda_ready()`,`TestConfig::from_installation_proxy(runner_bundle_id)`;返回 `WdaRunHandle`(`abort`、`wait`、`status`) | 已有 | iOS 27.0.1 上能否启动待验证;自动化密码框的错误文本要能识别 |
+| WDA 访问方式 | `pymobiledevice3 usbmux forward` 绑 127.0.0.1:8100 | `idevice::services::wda::WdaClient` 通过 provider 直连设备 8100 端口,本机不监听 | 已有 | `WdaClient` 自述是"bootstrap"级,长连接和大响应(500KB 元素树)待验证;必要时用它建连接、自己发 HTTP |
+| 守护与自恢复 | `supervisor.sh` | `ictl-daemon` 状态机 | 需自写 | 见 architecture §3 |
+| Apple ID 登录、注册设备、描述文件 | plumesign 命令行 | `plume_core::auth::account`、`developer::qh::{devices, app_ids, profile, certs}`;anisette 用 `omnisette` | 已有 | 默认 anisette 服务是第三方(jkcoxson),需可配置;会话持久化格式自己定 |
+| 签名 WDA(含 `.xctest` 插件) | go-ios `ios sign app`(因为 plumesign 漏签 xctest) | `plume_utils::Signer` + 修复;底层 `apple-codesign` | **需修** | 根因见下文 §4 |
+| 7 天自动重签 | `resign-wda.sh` + systemd 定时器 | 守护进程内部调度 | 需自写 | — |
+| 通知(Bark / Telegram) | `notify.sh`(curl) | `reqwest` | 需自写 | — |
+| 锁屏自动解锁 | `iphone_mcp.py` `_ensure_unlocked` | `ictl-unlock` | 需自写 | 见 §5 |
+| 诊断(doctor) | 无(靠人工排查) | `apps/iphone-control doctor` 逐层检查 | 需自写 | — |
+
+## 4. `.xctest` 漏签:根因和修复
+
+**根因**(读 Impactor `crates/plume_utils/src/bundle.rs` 与 `signer.rs` 确认):
+
+1. `collect_embeded_bundles_from_dir` 会把任何带扩展名的目录当成 bundle,所以 `PlugIns/WebDriverAgentRunner.xctest` 能被找到。
+2. 但 `BundleType::from_extension` 只认识 `app`、`appex`、`framework`、`dylib`,其余(包括 `xctest`)都是 `BundleType::Unknown`。
+3. `Signer::sign_single_bundle` 开头 `if bundle_type == Unknown { return Ok(()) }`,直接跳过。
+4. 结果:xctest 内部的 `WebDriverAgentLib.framework` 被签了(Framework 类型),xctest 本身的二进制没签、没有 `_CodeSignature`,外层 app 签名时把它当普通文件封存。iOS 加载测试包时报 `XCTestErrorDomain` 103。
+
+**修复**(几行):
+
+```rust
+pub enum BundleType { App, AppExtension, XCTest, Framework, Dylib, Unknown }
+// from_extension:
+"xctest" => Some(BundleType::XCTest),
+// should_be_signed: XCTest 返回 true
+// should_have_entitlements: XCTest 返回 false
+```
+
+依据:go-ios 签好、能正常启动的包里,xctest 二进制带开发证书签名、**不带** entitlements(`get-task-allow` 只在 runner app 主程序上)。
+
+签名顺序不用改:`collect_bundles_sorted` 已经按路径深度从深到浅排序,xctest 会先于外层 app 签名。修好后应向 Impactor 提 PR。
+
+## 5. 自动解锁要移植的规则
+
+全部来自 toolkit 调试结论,`ictl-unlock` 必须原样保留:
+
+1. 先读 `/wda/locked`,没锁就直接返回。
+2. 唤醒流程固定为:按 Home → 等 1.0 秒 → 从底部上滑 → 等 1.5 秒。不要依赖"元素树里有没有键盘",键盘元素在不显示时也常驻树中;`displayed` 接口在锁屏上同样不可靠。
+3. 读 `XCUIElementTypeSecureTextField` 的值(形如「共6位数,已输入N位」),提取两个整数;总位数和配置不一致就一位都不输。
+4. 每一位用**单独一个** W3C 手势(按下 80ms)点击,再核对已输入位数正好 +1;对不上立即停止。输入不完整不算输错。合并成一个手势会漏键;`/wda/tap` 在锁屏上每次 2.9 秒,太慢。
+5. 解锁期间把 appium settings `waitForIdleTimeout` 压到 1(不能是 0,否则唤醒失败)、`animationCoolOffTimeout` 压到 0.2,结束后恢复。锁屏界面的 Face ID 动画会让 WDA 每个请求等满 10 秒,期间密码键盘会自动收起。
+6. 第一位没生效时可以重来(最多 3 轮);整串输完仍锁着才算真正输错一次:写停用标记、推送通知、之后拒绝自动解锁直到人工清除。
+7. 只支持纯数字密码。重启后首次解锁(BFU)永远需要人工。
diff --git a/docs/decisions.md b/docs/decisions.md
new file mode 100644
index 0000000..24a9047
--- /dev/null
+++ b/docs/decisions.md
@@ -0,0 +1,60 @@
+# 关键决策记录
+
+格式:背景 → 决定 → 理由 → 代价/何时重新评估。
+
+## D1:基于 idevice,而不是从协议层自己写
+
+- **决定**:设备通讯全部基于 `idevice`(锁定 0.1.68)。
+- **理由**:它已覆盖我们需要的全部能力:usbmuxd、lockdown、CoreDeviceProxy 用户态隧道、RSD、cryptexd 个性化镜像安装、universalhidservice/indigo HID、screencaptureservice、XCTest 启动 WDA、WDA 客户端;MIT;StikDebug、CrossCode 等在生产中使用;Impactor 也依赖它,和签名部分同源。
+- **代价**:0.2.0 之前每个小版本都可能有破坏性变更;主要一人维护;`tss` 自述部分支持、TCP 栈自述 "naive"。
+- **重新评估**:spike 第 4、5 项不过时。
+
+## D2:守护进程独占设备,MCP 是薄客户端
+
+- **决定**:`daemon` 常驻持有隧道、HID 会话、XCTest 会话;`mcp` 通过 Unix socket 调用。
+- **理由**:MCP 进程每个会话一个、短命、可能并发;HID 事件要求显示媒体流同时存在;WDA 只能有一个 runner。toolkit 每条 HID 命令重建隧道要 3~5 秒。
+- **代价**:多一层协议。
+
+## D3:WDA 不在本机监听端口
+
+- **决定**:用 idevice 的 provider 直连设备端口访问 WDA;外部工具需要时显式开 bridge,只绑 127.0.0.1。
+- **理由**:WDA 没有认证;toolkit 早期用 `ios forward` 监听了所有网卡,局域网内任何人都能控制手机。
+
+## D4:WDA 仍然是 Objective-C,在 macOS CI 上编译
+
+- **决定**:不重写 WDA;fork appium/WebDriverAgent,在 GitHub Actions macOS runner 上不签名编译,发布未签名 IPA + sha256。
+- **理由**:WDA 是 XCTest bundle,只能用 Xcode 编译,依赖苹果私有/测试框架;Rust 无法替代。
+- **代价**:发布流程依赖 macOS runner。
+
+## D5:保留系统 usbmuxd,作为子进程看护
+
+- **决定**:不内置 USB 协议栈,使用 Debian 的 `usbmuxd`。
+- **理由**:idevice 只有 usbmuxd 客户端;自己实现 USB 多路复用收益很小;usbmuxd 是 GPL-3.0,作为独立进程运行不影响本项目许可证。
+- **代价**:仍需处理容器无 udev 的热插拔问题(sysfs 兜底 + 重启)。
+
+## D6:签名组件 vendor 而不是 git 依赖
+
+- **决定**:把 Impactor 的 `plume_core`、`plume_utils`、`omnisette` 和 apple-codesign 补丁 vendor 进本仓库。
+- **理由**:Impactor 用 `[patch.crates-io]` 把 apple-codesign 指向本地打过补丁的副本;作为 git 依赖引用时,**依赖方 workspace 的 patch 不会生效**,会拿到未打补丁的 apple-codesign。另外需要修 `.xctest` 漏签。
+- **代价**:要定期同步上游;MPL-2.0 文件改动需单独标注。修复同时提 PR 回上游,争取将来改回普通依赖。
+
+## D7:开发者镜像下载由我们负责
+
+- **决定**:`ictl-device` 提供 DDI 下载与缓存(来源可配置,默认与 pymobiledevice3 相同),`install_ddi` 只接收本地目录。
+- **理由**:idevice 的 `Cryptex1Assets::load` 只读本地解包目录,不负责下载;苹果文件不能随项目分发。
+- **重新评估**:idevice 若加入下载功能。
+
+## D8:自动解锁默认关闭
+
+- **决定**:需要显式开启并配置密码文件。
+- **理由**:存储锁屏密码意味着能访问主机的人就能解锁手机;输错累计还可能触发设备抹除。保护规则见 capability-matrix §5。
+
+## D9:所有依赖锁定精确版本
+
+- **决定**:`Cargo.toml` 用 `=x.y.z`,`Cargo.lock` 入库,Docker 基础镜像锁 digest。
+- **理由**:toolkit 两次被版本漂移坑过(mcp 2.x 改名;go-ios main 分支命令变化)。idevice 官方也要求锁定。
+
+## D10:与 toolkit 工具接口一致
+
+- **决定**:13 个 MCP 工具名、参数、返回文本格式保持与 toolkit 一致。
+- **理由**:切换时 agent 侧零改动;toolkit 的回归脚本可直接用于验收。
diff --git a/docs/licensing.md b/docs/licensing.md
new file mode 100644
index 0000000..5efe2a4
--- /dev/null
+++ b/docs/licensing.md
@@ -0,0 +1,44 @@
+# 许可证
+
+## 结论
+
+- 本项目自己的代码使用 **MIT**。
+- 可以做到:依赖中没有 GPL 代码被链接进本项目的二进制。
+- 但依赖里有 **MPL-2.0**(文件级 copyleft),vendor 和修改这些文件时要遵守 MPL,见下文。这一点比早期分析("全部 MIT")更严格,是读源码后修正的。
+
+## 依赖许可证(按源码和 crates.io 核实,2026-11)
+
+| 依赖 | 用途 | 许可证 | 使用方式 | 义务 |
+|---|---|---|---|---|
+| idevice 0.1.68 | 设备通讯 | MIT | crates.io 依赖 | 保留版权声明 |
+| jktcp 0.1.8 | 用户态 TCP(idevice 间接依赖) | MIT | 间接依赖 | 同上 |
+| plume_core(Impactor) | Apple ID、开发者 API、描述文件 | **MPL-2.0** | vendor 源码 | 被修改的 MPL 文件必须继续以 MPL-2.0 提供源码;文件头保留;不影响我们其它文件的 MIT |
+| plume_utils(Impactor) | Bundle、Signer | MIT(Impactor workspace 许可) | vendor 源码,打 `.xctest` 补丁 | 保留版权声明 |
+| omnisette(Impactor 3rdparty) | anisette 数据 | MIT(Impactor workspace 许可) | vendor 源码 | 保留版权声明 |
+| apple-codesign 0.29.0 | 代码签名 | **MPL-2.0** | crates.io 依赖 + Impactor 的权限补丁 | 补丁后的文件以 MPL-2.0 提供源码(放在 `vendor/` 或 `patches/` 里即满足) |
+| rmcp 3.8.0 | MCP SDK | Apache-2.0(部分历史代码 MIT) | crates.io 依赖 | 保留 NOTICE/版权声明 |
+| tokio、reqwest、quick-xml、image、clap、serde 等 | 通用 | MIT / Apache-2.0 | crates.io 依赖 | 保留声明,用 `cargo about` 或 `cargo deny` 生成第三方清单 |
+| WebDriverAgent(Appium fork) | 手机端代理 | BSD-3-Clause(Facebook 原始) | 发布未签名 IPA(自己在 macOS CI 上编译) | 保留 BSD 声明 |
+| usbmuxd | USB 守护进程 | **GPL-3.0**(以其 README 为准;GitHub 显示 GPL-2.0 有误) | 系统包,独立进程,不链接 | 仅"放在一起分发"。发布镜像时要提供对应源码(Debian 源码包)和许可证文本 |
+
+## MPL-2.0 怎么处理
+
+MPL-2.0 是按文件计算的弱 copyleft:
+
+- 我们自己新写的文件可以是 MIT,与 MPL 文件编译进同一个二进制没问题。
+- 我们修改过的 MPL 文件(例如 apple-codesign 的 `bundle_signing.rs`)必须继续是 MPL-2.0,并在分发二进制时让接收者能拿到这些文件的源码。仓库公开即可满足。
+- 做法:`vendor/` 下每个上游目录保留原 `LICENSE` 和文件头;`THIRD_PARTY.md` 列出每个文件的来源、上游提交号和改动摘要。
+
+## 不能分发的东西
+
+| 东西 | 原因 | 处理 |
+|---|---|---|
+| 开发者镜像(DDI、Cryptex 组件、BuildManifest) | 苹果的文件 | 运行时下载到 `ddi/` 缓存;镜像和仓库都不包含。下载来源默认与 pymobiledevice3 一致(社区维护的镜像仓库),也允许用户指向从 Xcode 提取的目录 |
+| XCTest.framework 等苹果框架 | 苹果的文件 | 编译 WDA 时不嵌入(Appium 官方包也不带),由手机上的开发者镜像提供 |
+| 证书、描述文件、配对记录、Apple ID 会话 | 用户秘密 | 只在用户的数据目录里,`.gitignore` 排除 |
+
+## 其它合规提示
+
+- 免费开发者账号(Xcode Free Provisioning)签出的描述文件只适合个人在自己设备上使用。
+- 登录时 anisette 数据默认来自第三方服务(Impactor 的默认值)。文档要明确说明,并允许改成自建服务。
+- 本项目不包含、也不帮助绕过任何 iOS 安全机制:重启后首次解锁、XCTest 自动化授权都需要用户本人在手机上完成。
diff --git a/docs/roadmap.md b/docs/roadmap.md
new file mode 100644
index 0000000..2082d50
--- /dev/null
+++ b/docs/roadmap.md
@@ -0,0 +1,92 @@
+# 路线图
+
+每个阶段都有明确的完成标准;未达标不进入下一阶段。toolkit 在阶段 7 之前一直是正式版本。
+
+## 阶段 0:真机验证(spike)
+
+见 [spike-plan.md](spike-plan.md)。
+
+**完成标准**:`spike/RESULTS.md` 给出 5 项结论,并按判定表做出继续/折中/暂停的决定。
+
+## 阶段 1:设备核心库(`ictl-device`、`ictl-wda`)
+
+- `Device`:发现、监听、配对状态、开发者模式、隧道、镜像、HID 会话(持有媒体流)、截图、App
+- `WdaRunner` + `WdaClient`:启动/停止 runner、会话自动重建、W3C actions、appium settings 读写
+- 元素树解析做成纯函数,用保存的 XML 样本做单测(样本脱敏)
+
+**完成标准**:一个示例程序在真机上依次完成"建隧道 → 确认镜像 → 启动 WDA → 截图 → 读元素 → 点击「设置」→ Home";单测覆盖下方回归用例中与解析相关的条目。
+
+## 阶段 2:守护进程(`ictl-daemon`)
+
+- 设备状态机(architecture §3)、usbmuxd 子进程看护、sysfs 兜底
+- 控制接口(Unix socket,JSON 行协议)
+- 日志轮转
+
+**完成标准**:
+- 冷启动到 Ready ≤ 90 秒
+- 拔插 USB、杀掉 usbmuxd、手机重启三种场景都能自动回到 Ready(手机重启场景以出现 `NeedsAutomationPin` 并在人工输密码后恢复为准)
+- 连续运行 24 小时无内存增长
+
+## 阶段 3:MCP 服务(`ictl-mcp`)
+
+- 13 个 `iphone_*` 工具,名字、参数、返回文本与 toolkit 一致
+- 截图区域放大
+- 错误信息走 MCP 工具错误,文字可读
+
+**完成标准**:toolkit 的端到端回归脚本(工具步骤 JSON)原样跑通;把 Claude Code 的 MCP 配置从 toolkit 切到本项目后,开心消消乐一局能打完(纯坐标场景)、设置里改自动锁定能完成(元素场景)。
+
+## 阶段 4:签名与重签(`ictl-sign`)
+
+- vendor `plume_core`、`plume_utils`、`omnisette`(保持原许可证文件头),打上 `.xctest` 修复和 apple-codesign 的权限补丁
+- `iphone-control login`(交互式密码 + 双重认证)、`sign`、`resign`
+- 守护进程内部每日检查:描述文件剩余 < 2 天重签;每日验证 Apple ID 会话
+- anisette 服务地址可配置
+
+**完成标准**:用免费 Apple ID 从未签名 WDA 一路签到装好,`.xctest` 带签名,WDA 能启动;强制重签后 WDA 自动恢复;人为让会话失效能收到通知。修复提交到 Impactor 上游。
+
+## 阶段 5:通知
+
+Bark、Telegram;事件见 architecture §7;同一事件去重。
+
+**完成标准**:每种事件都能用测试开关触发并收到一次推送。
+
+## 阶段 6:自动解锁(`ictl-unlock`,默认关闭)
+
+按 capability-matrix §5 的 7 条规则实现。
+
+**完成标准**:锁屏 0/3/30/70 秒、键盘上留半截输入、自然自动锁屏 6 种场景各 5 次全部成功,全程不触发停用;人为配置错误密码时只输错一次即停用并通知。
+
+## 阶段 7:打包发布
+
+- 多阶段 Dockerfile:编译 → `debian:trixie-slim` + `usbmuxd`
+- `iphone-control setup` 首次安装向导、`doctor` 逐层诊断
+- GitHub Actions:fmt/clippy/test、macOS 上编译未签名 WDA(不含苹果 XCTest 框架)、amd64/arm64 镜像、SBOM
+- 文档:setup、troubleshooting、security
+
+**完成标准**:在一台全新的 Linux 机器上,只按 README 操作能装起来;toolkit 停用,本项目接管。
+
+## 必须覆盖的回归用例
+
+这些全部是 toolkit 实际踩过的坑。能单测的写单测,不能单测的进真机回归清单。
+
+| # | 坑 | 正确行为 | 测试方式 |
+|---|---|---|---|
+| 1 | 锁屏密码键盘不显示时,`Key` 元素仍留在元素树里(`visible=false`) | 不以"树里有键盘"判断键盘已出现;固定先唤醒再上滑 | 单测(脱敏 XML 样本)+ 真机 |
+| 2 | `displayed` 接口在锁屏上返回 false,即使键盘可见 | 以密码栏「已输入 N 位」为准 | 真机 |
+| 3 | 锁屏界面 Face ID 动画使 WDA 每请求等 idle 至 10 秒,键盘随后自动收起 | 解锁期间 `waitForIdleTimeout=1`、`animationCoolOffTimeout=0.2`,结束恢复;0 会导致唤醒失败 | 真机 |
+| 4 | 多位密码合成一个 W3C 手势会漏键 | 每位单独一个手势并逐位核对 | 真机 |
+| 5 | 锁屏上 `/wda/tap` 每次约 2.9 秒 | 解锁用 W3C 单手势(约 0.7 秒) | 真机计时 |
+| 6 | 同名「设置」有 5 个 `SBAppTags` 含 `hidden` 的后台服务 | 按名字解析 App 时跳过 hidden | 单测 |
+| 7 | 容器无 udev,手机重启/重插后 usbmuxd 看不到设备 | sysfs 有 `05ac` 但 usbmuxd 无设备连续 3 次 → 重启 usbmuxd | 真机(杀 usbmuxd 模拟) |
+| 8 | 手机重启后 XCTest 弹「Enable UI Automation」密码框 | 识别错误、只推送一次、60 秒重试、恢复后再推送 | 单测(错误识别)+ 真机 |
+| 9 | plumesign 不签 `.xctest`,WDA 报 XCTest 103 | `.xctest` 签名、无 entitlements | 单测(签完检查 `_CodeSignature`)+ 真机 |
+| 10 | `ios forward` 监听所有网卡,WDA 无认证,局域网可直接控制手机 | 默认不监听任何端口;bridge 只绑 127.0.0.1 | 集成测试(检查监听地址) |
+| 11 | 依赖大版本漂移(mcp 2.x 把 FastMCP 改名、idevice 0.1.x 每版破坏性变更) | 所有依赖锁定精确版本 + `Cargo.lock` 入库;升级单独提交 | CI |
+| 12 | host 侧 runner 退出后手机上残留 WDA 仍响应几十秒 | 就绪 = 本进程 XCTest 会话存活 且 `/status` ready | 真机 |
+| 13 | App 冷启动后立即点击会被吞 | `launch_app` 等到前台再停 1 秒 | 真机 |
+| 14 | 完整元素树 7~8 秒 | `excluded_attributes` 排除可见性等属性(约 0.3 秒),可见性按坐标判断 | 单测 + 计时 |
+| 15 | 铺满全屏的 Application/Window/Toolbar 等元素没有定位价值 | 列表中过滤 | 单测 |
+| 16 | 区域放大倍数只保留 2 位有效数字导致边缘约 1.4 点误差 | 保留 3 位 | 单测 |
+| 17 | 只有 ToolError 的消息能透传给 MCP 客户端(Python SDK) | 所有预期错误都转成工具错误文本 | 单测 |
+| 18 | 锁屏(未首次解锁)时隧道报 `PasswordProtected` | 进入 NeedsUnlock,提示人工 | 真机 |
+| 19 | Apple ID 会话过期只在重签时才发现 | 每日独立验证会话 | 单测(模拟过期) |
diff --git a/docs/spike-plan.md b/docs/spike-plan.md
new file mode 100644
index 0000000..d185702
--- /dev/null
+++ b/docs/spike-plan.md
@@ -0,0 +1,75 @@
+# 第 0 步:真机验证(spike)
+
+目的:用最少的代码确认 idevice 在目标设备(iPhone 15 Pro Max,iOS 27.0.1)上能完成 D 方案依赖的 5 项关键能力。**这一步的结果决定 D 方案是否继续。**
+
+代码放在 `spike/`,一个子命令验证一项,每项独立可重跑。
+
+## 执行前提和注意事项
+
+- **必须先停掉 toolkit 的容器**(或在其中停止 usbmuxd 以外的进程)。两边同时持有隧道、HID 会话、XCTest 会话会互相干扰。
+- 第 5 项启动 WDA 会让 toolkit 的 WDA **中断几分钟**。**执行前要先和用户确认时间**,结束后恢复 toolkit 容器并跑一次它的回归测试。
+- 手机保持解锁;如果 toolkit 开着自动锁定 1 分钟,spike 期间改成「永不」或先手动解锁。
+- spike 不签名、不安装任何东西,只复用手机上已装好的 WDA 和已有配对记录(只读挂载 toolkit 的 `lockdown/`)。
+- 运行环境:`rust:1.91-slim-trixie` 容器,`--privileged`,挂 `/dev/bus/usb`,容器内跑 Debian 的 `usbmuxd`。
+
+## 验证顺序(按风险从高到低)
+
+### 1. 开发者镜像挂载(Cryptex + TSS)— 风险最高
+
+| | |
+|---|---|
+| 做法 | 先在手机上卸载已有镜像(`cryptexd uninstall com.apple.MobileAsset.DDI`,或手机重启后天然就是未挂载状态);用 `Cryptex1Assets::load(<DDI Restore 目录>)` 读取 toolkit 已缓存的同一份 DDI(`state/pymobiledevice3/Xcode_iOS_DDI_Cryptex/`,只读);调用 `cryptexd::install_ddi()`;再 `installed_ddi()` 确认 |
+| 通过标准 | `install_ddi` 返回成功;`installed_ddi()` 能查到 `com.apple.MobileAsset.DDI`;随后 RSD 服务列表里出现 `com.apple.coredevice.hid.universalhidservice`(证明 `dtuhidd` 来自新镜像) |
+| 额外记录 | TSS 请求耗时、响应里票据在 `Cryptex1,Ticket` 还是 `ApImg4Ticket` |
+| 失败退路 | ① 抓 TSS 请求与 pmd3 的请求对比,缺字段就补 `add_cryptex1_tags`,修好提 PR;② 短期折中:镜像挂载继续用 pymobiledevice3(只在手机重启后需要一次,挂上后一直有效),其余全走 Rust。代价是镜像里多一个 Python 依赖 |
+
+> 卸载镜像会让 toolkit 的 HID 路线和 WDA 暂时不可用,属于需要用户确认的操作。如果不想卸载,可以先在手机重启后的天然未挂载窗口里做这一项。
+
+### 2. HID 触摸
+
+| | |
+|---|---|
+| 做法 | 建立隧道 → 启动 displayservice 媒体流(RTP 数据丢弃)→ `UniversalHidServiceClient::list_connected_services()` → `tap(x, y)`(0~65535 归一化)→ 截图确认;再测 `drag`、`IndigoHidClient::send_button(home)`、`MainKeyboardService` 打英文 |
+| 通过标准 | 点击「设置」里的返回按钮能退回上一页;Home 键回主屏幕;`drag` 能翻页 |
+| 注意 | idevice 文档明确:**没有媒体流时事件会被静默丢弃**,调用不报错。测试必须以截图对比为准,不能只看返回值 |
+| 失败退路 | 确认服务名(idevice 两个都实现了:`com.apple.coredevice.hid.indigo`、`com.apple.coredevice.hid.universalhidservice`);对照 pmd3 `hid_service.py` 的报文逐字节比较。HID 只是后备路线,失败不阻塞 D 方案,但 WDA 不可用时就没有兜底 |
+
+### 3. 截图
+
+| | |
+|---|---|
+| 做法 | `core_device::screencaptureservices::take_screenshot(ImageFormat::Png)` |
+| 通过标准 | 拿到 1290×2796 PNG;记录耗时(toolkit 的 pmd3 路线每次 2~3 秒,含建隧道) |
+| 失败退路 | 改用 `dvt::screenshot`(Instruments 通道);再不行只依赖 WDA 截图 |
+
+### 4. 隧道长时间稳定性
+
+| | |
+|---|---|
+| 做法 | 建一条隧道,持续 30 分钟:每 2 秒截一次图(大响应),每 10 秒一次 RSD 小请求;中途锁屏 5 分钟再解锁 |
+| 通过标准 | 30 分钟内无断线,或断线后 10 秒内能重建;内存不持续增长;锁屏期间已建隧道不断(toolkit 实测 go-ios 隧道锁屏不断) |
+| 额外记录 | 截图吞吐(MB/s)、单次截图延迟分布 |
+| 失败退路 | jktcp 的问题优先修 jktcp 并提 PR;实在不行改用内核 TUN 隧道(需要 root/CAP_NET_ADMIN,和"免 root"目标冲突,只作为可选项) |
+
+### 5. 启动 WDA(会中断 toolkit 的 WDA,需用户确认)
+
+| | |
+|---|---|
+| 做法 | `TestConfig::from_installation_proxy(<WDA runner bundle id>, None)` → `XCUITestService::run_until_wda_ready(cfg, 60s)`;用 `WdaClient` 直连设备 8100 端口读 `/status`、`/wda/screen`、`/source?format=xml&excluded_attributes=...`、`/screenshot`;最后 `abort()` |
+| 通过标准 | 60 秒内 `ready: true`;元素树(排除可见性属性后约 60KB)和截图(约 4.8MB 的 JSON)都能完整读回;`abort()` 后 runner 进程退出 |
+| 附加测试 | 在手机重启后的首次启动上跑一次,确认能识别「Enable UI Automation」超时的错误,以便实现 `NeedsAutomationPin` |
+| 失败退路 | ① 用 `idevice-tools xctest --bridge <bundle id>` 命令行复现,区分是我们用法问题还是库问题;② 对照 go-ios `runwda` 的 testmanagerd 报文;③ 只有这一项不过时,可以临时让守护进程调用 go-ios 启动 WDA,其余用 Rust |
+
+## 判定
+
+| 结果 | 决定 |
+|---|---|
+| 5 项全过 | D 方案进入阶段 1(见 roadmap) |
+| 只有第 1 项不过 | D 方案继续;镜像挂载暂用 pymobiledevice3 折中,同时给 idevice 补 TSS |
+| 第 2 或第 3 项不过 | D 方案继续;HID/截图后备路线延后,WDA 为唯一路线 |
+| 第 4 或第 5 项不过 | 暂停 D 方案,先修上游或评估 C 方案;toolkit 继续作为正式版本 |
+
+## 产出
+
+- `spike/RESULTS.md`:每项的通过与否、耗时、日志摘要(去掉 UDID 等个人信息)
+- 发现的上游问题列表(准备提 issue/PR)
diff --git a/spike/Cargo.toml b/spike/Cargo.toml
new file mode 100644
index 0000000..672512f
--- /dev/null
+++ b/spike/Cargo.toml
@@ -0,0 +1,16 @@
+[package]
+name = "ictl-spike"
+version.workspace = true
+edition.workspace = true
+rust-version.workspace = true
+license.workspace = true
+publish.workspace = true
+description = "第 0 步真机验证程序"
+
+[dependencies]
+idevice.workspace = true
+clap.workspace = true
+tokio.workspace = true
+anyhow.workspace = true
+tracing.workspace = true
+tracing-subscriber.workspace = true
diff --git a/spike/src/main.rs b/spike/src/main.rs
new file mode 100644
index 0000000..174b687
--- /dev/null
+++ b/spike/src/main.rs
@@ -0,0 +1,44 @@
+//! 第 0 步真机验证(docs/spike-plan.md)。每个子命令验证一项,可独立重跑。
+//! 运行前须停掉 toolkit 容器;`wda` 会中断 toolkit 的 WDA,须先征得用户同意。
+
+use clap::{Parser, Subcommand};
+use std::path::PathBuf;
+
+#[derive(Parser)]
+struct Cli {
+ #[arg(long)]
+ udid: Option<String>,
+ #[command(subcommand)]
+ check: Check,
+}
+
+#[derive(Subcommand)]
+enum Check {
+ /// 1. 开发者镜像:cryptexd::install_ddi(个性化 + TSS),再 installed_ddi 确认
+ Ddi { restore_dir: PathBuf },
+ /// 2. HID:媒体流 + universalhidservice tap/drag + indigo Home 键
+ Hid { x: f64, y: f64 },
+ /// 3. 截图:screencaptureservice PNG
+ Screenshot { out: PathBuf },
+ /// 4. 隧道稳定性:持续 N 分钟截图 + RSD 小请求
+ Soak {
+ #[arg(long, default_value_t = 30)]
+ minutes: u64,
+ },
+ /// 5. 启动 WDA:run_until_wda_ready,直连设备端口读 /status、/source、/screenshot
+ Wda { bundle_id: String },
+}
+
+#[tokio::main]
+async fn main() -> anyhow::Result<()> {
+ tracing_subscriber::fmt().init();
+ let cli = Cli::parse();
+ let _ = &cli.udid;
+ match cli.check {
+ Check::Ddi { .. } => todo!(),
+ Check::Hid { .. } => todo!(),
+ Check::Screenshot { .. } => todo!(),
+ Check::Soak { .. } => todo!(),
+ Check::Wda { .. } => todo!(),
+ }
+}