From 99dc94416b8651b7f12f1c738a729d1f17ca0e05 Mon Sep 17 00:00:00 2001 From: Hare Date: Fri, 1 May 2026 23:35:46 +0900 Subject: [PATCH] =?UTF-8?q?chore:=20=E4=BE=9D=E5=AD=98=E3=83=91=E3=83=83?= =?UTF-8?q?=E3=82=B1=E3=83=BC=E3=82=B8=E3=81=AE=E9=9B=86=E7=B4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Cargo.toml | 33 ++++++++++++++++++++- crates/daemon/Cargo.toml | 6 ++-- crates/llm-worker/Cargo.toml | 22 +++++++------- crates/manifest/Cargo.toml | 14 ++++----- crates/memory/Cargo.toml | 26 ++++++++--------- crates/pod-registry/Cargo.toml | 16 +++++----- crates/pod/Cargo.toml | 52 ++++++++++++++++----------------- crates/protocol/Cargo.toml | 8 ++--- crates/provider/Cargo.toml | 24 +++++++-------- crates/session-store/Cargo.toml | 26 ++++++++--------- crates/tools/Cargo.toml | 24 +++++++-------- crates/tui/Cargo.toml | 16 +++++----- 12 files changed, 149 insertions(+), 118 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index 1728dcf8..de37754a 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,9 +11,40 @@ members = [ "crates/provider", "crates/pod-registry", "crates/tools", - "crates/tui", "crates/memory", + "crates/tui", + "crates/memory", ] [workspace.package] edition = "2024" license = "MIT" + +[workspace.dependencies] +# Internal crates +llm-worker = { path = "crates/llm-worker", version = "0.2" } +llm-worker-macros = { path = "crates/llm-worker-macros", version = "0.2" } +manifest = { path = "crates/manifest" } +memory = { path = "crates/memory" } +pod-registry = { path = "crates/pod-registry" } +protocol = { path = "crates/protocol" } +provider = { path = "crates/provider" } +session-store = { path = "crates/session-store" } +tools = { path = "crates/tools" } + +# External +# Note: `reqwest` and `chrono` are not aggregated here because some crates +# need `default-features = false`, which workspace inheritance cannot override. +async-trait = "0.1" +fs4 = "0.13" +futures = "0.3" +libc = "0.2" +schemars = "1.2" +serde = "1.0" +serde_json = "1.0" +sha2 = "0.11" +tempfile = "3.27" +thiserror = "2.0" +tokio = "1.52" +toml = "1.1" +tracing = "0.1" +uuid = "1.23" diff --git a/crates/daemon/Cargo.toml b/crates/daemon/Cargo.toml index 71494bae..76e3fc99 100644 --- a/crates/daemon/Cargo.toml +++ b/crates/daemon/Cargo.toml @@ -5,6 +5,6 @@ edition.workspace = true license.workspace = true [dependencies] -manifest = { path = "../manifest" } -protocol = { path = "../protocol" } -tokio = { version = "1.49", features = ["full"] } +manifest = { workspace = true } +protocol = { workspace = true } +tokio = { workspace = true, features = ["full"] } diff --git a/crates/llm-worker/Cargo.toml b/crates/llm-worker/Cargo.toml index b1eae9a5..7eb09302 100644 --- a/crates/llm-worker/Cargo.toml +++ b/crates/llm-worker/Cargo.toml @@ -6,22 +6,22 @@ edition.workspace = true license.workspace = true [dependencies] -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -thiserror = "2.0" -tracing = "0.1" -async-trait = "0.1" -futures = "0.3" -tokio = { version = "1.49", features = ["macros", "rt-multi-thread"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +thiserror = { workspace = true } +tracing = { workspace = true } +async-trait = { workspace = true } +futures = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } tokio-util = "0.7" -reqwest = { version = "0.13.1", default-features = false, features = ["stream", "json", "native-tls", "http2"] } +reqwest = { version = "0.13", default-features = false, features = ["stream", "json", "native-tls", "http2"] } eventsource-stream = "0.2" -llm-worker-macros = { path = "../llm-worker-macros", version = "0.2" } +llm-worker-macros = { workspace = true } [dev-dependencies] clap = { version = "4.5", features = ["derive", "env"] } -schemars = "1.2" -tempfile = "3.24" +schemars = { workspace = true } +tempfile = { workspace = true } dotenv = "0.15" tracing-subscriber = { version = "0.3", features = ["env-filter"] } trybuild = "1.0.116" diff --git a/crates/manifest/Cargo.toml b/crates/manifest/Cargo.toml index f5d0557b..3e4a4114 100644 --- a/crates/manifest/Cargo.toml +++ b/crates/manifest/Cargo.toml @@ -5,13 +5,13 @@ edition.workspace = true license.workspace = true [dependencies] -llm-worker = { version = "0.2.1", path = "../llm-worker" } -protocol = { version = "0.1.0", path = "../protocol" } -serde = { version = "1.0.228", features = ["derive"] } +llm-worker = { workspace = true } +protocol = { workspace = true } +serde = { workspace = true, features = ["derive"] } serde_ignored = "0.1.14" -thiserror = "2.0.18" -toml = "1.1.2" -tracing = "0.1.44" +thiserror = { workspace = true } +toml = { workspace = true } +tracing = { workspace = true } [dev-dependencies] -tempfile = "3.27.0" +tempfile = { workspace = true } diff --git a/crates/memory/Cargo.toml b/crates/memory/Cargo.toml index beafdcb6..330657fe 100644 --- a/crates/memory/Cargo.toml +++ b/crates/memory/Cargo.toml @@ -5,19 +5,19 @@ edition.workspace = true license.workspace = true [dependencies] -async-trait = "0.1.89" -chrono = { version = "0.4.44", features = ["serde"] } -libc = "0.2.186" -llm-worker = { version = "0.2.1", path = "../llm-worker" } -manifest = { version = "0.1.0", path = "../manifest" } -schemars = "1.2.1" -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" +async-trait = { workspace = true } +chrono = { version = "0.4", features = ["serde"] } +libc = { workspace = true } +llm-worker = { workspace = true } +manifest = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } serde_yaml = "0.9.34" -thiserror = "2.0.18" -tracing = "0.1.44" -uuid = { version = "1.23.1", features = ["v7", "serde"] } +thiserror = { workspace = true } +tracing = { workspace = true } +uuid = { workspace = true, features = ["v7", "serde"] } [dev-dependencies] -tempfile = "3.27.0" -tokio = { version = "1.52.1", features = ["macros", "rt-multi-thread"] } +tempfile = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } diff --git a/crates/pod-registry/Cargo.toml b/crates/pod-registry/Cargo.toml index 61f81d55..d659e626 100644 --- a/crates/pod-registry/Cargo.toml +++ b/crates/pod-registry/Cargo.toml @@ -5,13 +5,13 @@ edition.workspace = true license.workspace = true [dependencies] -fs4 = { version = "0.13.1", features = ["sync"] } -libc = "0.2.186" -manifest = { version = "0.1.0", path = "../manifest" } -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" -session-store = { version = "0.1.0", path = "../session-store" } -thiserror = "2.0" +fs4 = { workspace = true, features = ["sync"] } +libc = { workspace = true } +manifest = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +session-store = { workspace = true } +thiserror = { workspace = true } [dev-dependencies] -tempfile = "3.27.0" +tempfile = { workspace = true } diff --git a/crates/pod/Cargo.toml b/crates/pod/Cargo.toml index ae729db2..241b94fa 100644 --- a/crates/pod/Cargo.toml +++ b/crates/pod/Cargo.toml @@ -5,37 +5,37 @@ edition.workspace = true license.workspace = true [dependencies] -async-trait = "0.1.89" +async-trait = { workspace = true } clap = { version = "4.6.0", features = ["derive"] } -llm-worker = { version = "0.2.1", path = "../llm-worker" } -session-store = { version = "0.1.0", path = "../session-store" } -manifest = { version = "0.1.0", path = "../manifest" } -protocol = { version = "0.1.0", path = "../protocol" } -provider = { version = "0.1.0", path = "../provider" } -pod-registry = { version = "0.1.0", path = "../pod-registry" } -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" -thiserror = "2.0" -tokio = { version = "1.49", features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] } -toml = "1.1.2" -tracing = "0.1.44" -tools = { version = "0.1.0", path = "../tools" } +llm-worker = { workspace = true } +session-store = { workspace = true } +manifest = { workspace = true } +protocol = { workspace = true } +provider = { workspace = true } +pod-registry = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["fs", "io-util", "macros", "net", "process", "rt-multi-thread", "signal", "sync", "time"] } +toml = { workspace = true } +tracing = { workspace = true } +tools = { workspace = true } minijinja = "2.19.0" -chrono = "0.4.44" +chrono = "0.4" include_dir = "0.7.4" -fs4 = { version = "0.13.1", features = ["sync"] } -libc = "0.2.186" -schemars = "1.2.1" -memory = { version = "0.1.0", path = "../memory" } -uuid = { version = "1.23.1", features = ["v7"] } +fs4 = { workspace = true, features = ["sync"] } +libc = { workspace = true } +schemars = { workspace = true } +memory = { workspace = true } +uuid = { workspace = true, features = ["v7"] } [dev-dependencies] -async-trait = "0.1.89" +async-trait = { workspace = true } dotenv = "0.15.0" -futures = "0.3.32" -session-store = { path = "../session-store" } -tempfile = "3.27.0" -tokio = { version = "1.49", features = ["macros", "rt-multi-thread", "time"] } +futures = { workspace = true } +session-store = { workspace = true } +tempfile = { workspace = true } +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "time"] } [build-dependencies] -toml = "1.1.2" +toml = { workspace = true } diff --git a/crates/protocol/Cargo.toml b/crates/protocol/Cargo.toml index b301a9fe..a9b8184e 100644 --- a/crates/protocol/Cargo.toml +++ b/crates/protocol/Cargo.toml @@ -5,7 +5,7 @@ edition.workspace = true license.workspace = true [dependencies] -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -tokio = { version = "1.51.1", features = ["io-util"] } -uuid = { version = "1.23.1", features = ["serde"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tokio = { workspace = true, features = ["io-util"] } +uuid = { workspace = true, features = ["serde"] } diff --git a/crates/provider/Cargo.toml b/crates/provider/Cargo.toml index 524662fb..3e83ae24 100644 --- a/crates/provider/Cargo.toml +++ b/crates/provider/Cargo.toml @@ -5,20 +5,20 @@ edition.workspace = true license.workspace = true [dependencies] -async-trait = "0.1.89" +async-trait = { workspace = true } base64 = "0.22.1" -chrono = { version = "0.4.44", default-features = false, features = ["serde", "clock"] } -llm-worker = { version = "0.2.1", path = "../llm-worker" } -manifest = { version = "0.1.0", path = "../manifest" } -reqwest = { version = "0.13.2", features = ["json", "native-tls"] } -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" -thiserror = "2.0" -tokio = { version = "1.52.1", features = ["sync", "fs", "rt"] } -toml = "1.1.2" -tracing = "0.1.44" +chrono = { version = "0.4", default-features = false, features = ["serde", "clock"] } +llm-worker = { workspace = true } +manifest = { workspace = true } +reqwest = { version = "0.13", features = ["json", "native-tls"] } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["sync", "fs", "rt"] } +toml = { workspace = true } +tracing = { workspace = true } [dev-dependencies] serial_test = "3.4.0" -tempfile = "3.27.0" +tempfile = { workspace = true } wiremock = "0.6.5" diff --git a/crates/session-store/Cargo.toml b/crates/session-store/Cargo.toml index 3ad29346..9bcb9df1 100644 --- a/crates/session-store/Cargo.toml +++ b/crates/session-store/Cargo.toml @@ -6,19 +6,19 @@ edition.workspace = true license.workspace = true [dependencies] -llm-worker = { path = "../llm-worker" } -async-trait = "0.1" -serde = { version = "1.0", features = ["derive"] } -serde_json = "1.0" -tokio = { version = "1.49", features = ["fs", "io-util"] } -uuid = { version = "1", features = ["v7", "serde"] } -thiserror = "2.0" -sha2 = "0.11.0" +llm-worker = { workspace = true } +async-trait = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +tokio = { workspace = true, features = ["fs", "io-util"] } +uuid = { workspace = true, features = ["v7", "serde"] } +thiserror = { workspace = true } +sha2 = { workspace = true } hex = "0.4.3" -protocol = { version = "0.1.0", path = "../protocol" } +protocol = { workspace = true } [dev-dependencies] -tokio = { version = "1.49", features = ["macros", "rt-multi-thread", "fs", "io-util"] } -tempfile = "3.24" -futures = "0.3" -async-trait = "0.1" +tokio = { workspace = true, features = ["macros", "rt-multi-thread", "fs", "io-util"] } +tempfile = { workspace = true } +futures = { workspace = true } +async-trait = { workspace = true } diff --git a/crates/tools/Cargo.toml b/crates/tools/Cargo.toml index 1113b33d..08dfe5d4 100644 --- a/crates/tools/Cargo.toml +++ b/crates/tools/Cargo.toml @@ -5,23 +5,23 @@ edition.workspace = true license.workspace = true [dependencies] -async-trait = "0.1.89" +async-trait = { workspace = true } globset = "0.4.18" grep-matcher = "0.1.8" grep-regex = "0.1.14" grep-searcher = "0.1.16" ignore = "0.4.25" -llm-worker = { version = "0.2.1", path = "../llm-worker" } -manifest = { version = "0.1.0", path = "../manifest" } -schemars = "1.2.1" -serde = { version = "1.0.228", features = ["derive"] } -serde_json = "1.0.149" -sha2 = "0.11.0" -tempfile = "3.27.0" -thiserror = "2.0.18" -tokio = { version = "1.51.1", features = ["process", "rt", "time"] } -tracing = "0.1.44" +llm-worker = { workspace = true } +manifest = { workspace = true } +schemars = { workspace = true } +serde = { workspace = true, features = ["derive"] } +serde_json = { workspace = true } +sha2 = { workspace = true } +tempfile = { workspace = true } +thiserror = { workspace = true } +tokio = { workspace = true, features = ["process", "rt", "time"] } +tracing = { workspace = true } [dev-dependencies] filetime = "0.2.27" -tokio = { version = "1.51.1", features = ["macros", "rt-multi-thread"] } +tokio = { workspace = true, features = ["macros", "rt-multi-thread"] } diff --git a/crates/tui/Cargo.toml b/crates/tui/Cargo.toml index 9816ee19..828b1e12 100644 --- a/crates/tui/Cargo.toml +++ b/crates/tui/Cargo.toml @@ -5,14 +5,14 @@ edition.workspace = true license.workspace = true [dependencies] -protocol = { path = "../protocol" } +protocol = { workspace = true } ratatui = { version = "0.30.0", features = ["scrolling-regions"] } crossterm = "0.28" -tokio = { version = "1.49", features = ["rt-multi-thread", "macros", "net", "io-util", "sync", "time", "process"] } -serde_json = "1.0" +tokio = { workspace = true, features = ["rt-multi-thread", "macros", "net", "io-util", "sync", "time", "process"] } +serde_json = { workspace = true } unicode-width = "0.2.2" -uuid = "1.23" -toml = "1.1.2" -manifest = { version = "0.1.0", path = "../manifest" } -session-store = { version = "0.1.0", path = "../session-store" } -pod-registry = { version = "0.1.0", path = "../pod-registry" } +uuid = { workspace = true } +toml = { workspace = true } +manifest = { workspace = true } +session-store = { workspace = true } +pod-registry = { workspace = true }