From 947d04d057e6be68ad9dda11cbb037dfc4c86ac3 Mon Sep 17 00:00:00 2001 From: dawn <90008@klbr.net> Date: Wed, 1 Jul 2026 12:18:27 +0300 Subject: [PATCH] centralize workspace dependency versions --- .beads/interactions.jsonl | 1 + .beads/issues.jsonl | 2 +- Cargo.toml | 37 +++++++++++++++++++++++++++++++++ antigravity-bridge/Cargo.toml | 36 ++++++++++++++++---------------- klbr-bench/Cargo.toml | 24 ++++++++++----------- klbr-core/Cargo.toml | 39 ++++++++++++++++++----------------- klbr-daemon/Cargo.toml | 14 ++++++------- klbr-discord/Cargo.toml | 32 ++++++++++++++-------------- klbr-ipc/Cargo.toml | 4 ++-- 9 files changed, 114 insertions(+), 75 deletions(-) diff --git a/.beads/interactions.jsonl b/.beads/interactions.jsonl index 4d362bc..f618edc 100644 --- a/.beads/interactions.jsonl +++ b/.beads/interactions.jsonl @@ -92,3 +92,4 @@ {"id":"int-4cb60a18","kind":"field_change","created_at":"2026-07-01T09:02:05.887375856Z","actor":"dawn","issue_id":"klbr-3ha","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Refactored shared SSE and media data-url parsing in models.rs; added focused coverage and verified klbr-core tests."}} {"id":"int-d2a36a78","kind":"field_change","created_at":"2026-07-01T09:11:34.33603338Z","actor":"dawn","issue_id":"klbr-647","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Migrated klbr-core Message.role to a Role enum with lowercase serde compatibility and updated core role checks; verified workspace tests."}} {"id":"int-e8560d77","kind":"field_change","created_at":"2026-07-01T09:14:49.216625941Z","actor":"dawn","issue_id":"klbr-ow7","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Extracted duplicated agent run-loop stream-failure backoff handling into a shared helper with a named retry limit; verified klbr-core tests."}} +{"id":"int-24fd625d","kind":"field_change","created_at":"2026-07-01T09:18:07.32698818Z","actor":"dawn","issue_id":"klbr-q53","extra":{"field":"status","new_value":"closed","old_value":"in_progress","reason":"Moved external crate versions into root workspace.dependencies and switched member manifests to workspace=true; verified cargo metadata, workspace check, and workspace tests."}} diff --git a/.beads/issues.jsonl b/.beads/issues.jsonl index 5ad0f8e..5df88de 100644 --- a/.beads/issues.jsonl +++ b/.beads/issues.jsonl @@ -55,7 +55,7 @@ {"_type":"issue","id":"klbr-so2","title":"core: decompose agent.rs run_turn() god method","description":"agent.rs run_turn() is 500+ lines, managing execution, tool loops, preemption, and discord integration. Break down tool execution loops and phase handlers into separate functions.","status":"open","priority":2,"issue_type":"task","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:29Z","created_by":"dawn","updated_at":"2026-06-30T21:39:29Z","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"klbr-ow7","title":"core: refactor agent.rs run() loop failure-handling duplication","description":"agent.rs run() loop copy-pastes the exact same ~30-line backoff/failure-handling parsing block 4 times across different event stream branches. Extract to a helper function.","status":"closed","priority":2,"issue_type":"task","assignee":"dawn","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:23Z","created_by":"dawn","updated_at":"2026-07-01T09:14:49Z","started_at":"2026-07-01T09:12:29Z","closed_at":"2026-07-01T09:14:49Z","close_reason":"Extracted duplicated agent run-loop stream-failure backoff handling into a shared helper with a named retry limit; verified klbr-core tests.","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"klbr-7e0","title":"core: clean up dead tool files in src/tools/","description":"There are 12 unused tool files in klbr-core/src/tools/ (remember.rs, recall.rs, tag_memory.rs, etc.) that are not declared as submodules or registered. They should be deleted.","status":"closed","priority":2,"issue_type":"task","assignee":"dawn","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:16Z","created_by":"dawn","updated_at":"2026-06-30T22:08:24Z","started_at":"2026-06-30T22:05:01Z","closed_at":"2026-06-30T22:08:24Z","close_reason":"Removed unregistered old memory tool modules and updated memory docs","dependency_count":0,"dependent_count":0,"comment_count":0} -{"_type":"issue","id":"klbr-q53","title":"workspace: consolidate dependency versions via workspace.dependencies","description":"Workspace is not utilizing cargo workspace dependencies, causing version drift between core, daemon, discord, and ipc. Consolidate them in the root Cargo.toml.","status":"open","priority":2,"issue_type":"task","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:10Z","created_by":"dawn","updated_at":"2026-06-30T21:39:10Z","dependency_count":0,"dependent_count":0,"comment_count":0} +{"_type":"issue","id":"klbr-q53","title":"workspace: consolidate dependency versions via workspace.dependencies","description":"Workspace is not utilizing cargo workspace dependencies, causing version drift between core, daemon, discord, and ipc. Consolidate them in the root Cargo.toml.","status":"closed","priority":2,"issue_type":"task","assignee":"dawn","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:10Z","created_by":"dawn","updated_at":"2026-07-01T09:18:07Z","started_at":"2026-07-01T09:15:45Z","closed_at":"2026-07-01T09:18:07Z","close_reason":"Moved external crate versions into root workspace.dependencies and switched member manifests to workspace=true; verified cargo metadata, workspace check, and workspace tests.","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"klbr-6m2","title":"web: refactor and split App.svelte monolith","description":"App.svelte is currently a 3000+ line file holding all UI, WS client, and styles. Needs to be split into modular components like Sidebar, ChatPane, Metrics, and XmlVisualizer.","status":"open","priority":2,"issue_type":"task","owner":"90008@klbr.net","created_at":"2026-06-30T21:39:03Z","created_by":"dawn","updated_at":"2026-06-30T21:39:03Z","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"klbr-ds9","title":"refactor and simplify core agent loop without losing behaviour","status":"open","priority":2,"issue_type":"task","owner":"90008@klbr.net","created_at":"2026-06-30T21:20:30Z","created_by":"dawn","updated_at":"2026-06-30T21:20:30Z","dependency_count":0,"dependent_count":0,"comment_count":0} {"_type":"issue","id":"klbr-jae","title":"Design aggregate evidence value representation","description":"LongMemEval aggregate misses show that a prompt fix would be benchmark-shaped and brittle. The structural gap is evidence representation: EvidenceFactRow currently stores only the first numeric value from a chunk, often capturing list ordinals, dates, or distractors instead of the values needed for counts/sums. Design and implement a general value representation for memory evidence that can keep multiple numeric mentions with nearby unit/currency/date/entity context, then only enable deterministic aggregate synthesis when the rendered facts are grounded and unambiguous.","status":"closed","priority":2,"issue_type":"task","assignee":"dawn","owner":"90008@klbr.net","created_at":"2026-06-30T21:01:47Z","created_by":"dawn","updated_at":"2026-06-30T21:11:59Z","started_at":"2026-06-30T21:02:38Z","closed_at":"2026-06-30T21:11:59Z","close_reason":"Implemented typed evidence value mentions for fact rows, rendered them in memory packets, and made aggregate synthesis use only finite same-kind/unit aggregateable values. Ordinals, dates, and mixed-unit rows now abstain instead of falling back to first-number arithmetic; no prompt fixes were added.","dependency_count":0,"dependent_count":0,"comment_count":0} diff --git a/Cargo.toml b/Cargo.toml index 0430663..cdc7e9f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -9,5 +9,42 @@ members = [ ] resolver = "2" +[workspace.dependencies] +anyhow = "1" +async-stream = "0.3" +axum = "0.8" +base64 = "0.22" +blake3 = "1.8.5" +bytemuck = "1.25.0" +chrono = "0.4.44" +clap = { version = "4", features = ["derive"] } +dirs = "5" +emojis = "0.8.1" +futures = "0.3" +hex = "0.4" +kdl = "6.5" +pulldown-cmark = "0.11" +rand = "0.8" +regex = "1" +reqwest = "0.13" +rusqlite = { version = "0.39", features = ["bundled"] } +rustls = { version = "0.23", features = ["ring"] } +serde = { version = "1", features = ["derive"] } +serde_json = "1" +sha2 = "0.10" +sqlite-vec = "0.1.0" +tempfile = "3" +tokio = { version = "1", features = ["full"] } +tokio-tungstenite = "0.23" +tracing = "0.1.44" +tracing-subscriber = "0.3.23" +tree-sitter-language-pack = "1.11.0" +tree-sitter-tags = "0.26.9" +twilight-gateway = "0.17.1" +twilight-http = "0.17.1" +twilight-model = "0.17.1" +unicode-segmentation = "1" +uuid = { version = "1", features = ["v4"] } + [profile.dev] opt-level = 2 diff --git a/antigravity-bridge/Cargo.toml b/antigravity-bridge/Cargo.toml index 3b4ee8c..840c8ce 100644 --- a/antigravity-bridge/Cargo.toml +++ b/antigravity-bridge/Cargo.toml @@ -8,21 +8,21 @@ name = "antigravity-bridge" path = "src/main.rs" [dependencies] -tokio = { version = "1", features = ["full"] } -axum = { version = "0.8" } -reqwest = { version = "0.13", features = ["json", "stream", "form"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -anyhow = "1" -futures = "0.3" -tracing = "0.1.44" -tracing-subscriber = "0.3.23" -base64 = "0.22" -regex = "1" -sha2 = "0.10" -hex = "0.4" -uuid = { version = "1", features = ["v4"] } -rand = "0.8" -async-stream = "0.3" -chrono = { version = "0.4", features = ["clock"] } -dirs = "5" +anyhow = { workspace = true } +async-stream = { workspace = true } +axum = { workspace = true } +base64 = { workspace = true } +chrono = { workspace = true, features = ["clock"] } +dirs = { workspace = true } +futures = { workspace = true } +hex = { workspace = true } +rand = { workspace = true } +regex = { workspace = true } +reqwest = { workspace = true, features = ["json", "stream", "form"] } +serde = { workspace = true } +serde_json = { workspace = true } +sha2 = { workspace = true } +tokio = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } +uuid = { workspace = true } diff --git a/klbr-bench/Cargo.toml b/klbr-bench/Cargo.toml index 3e22de9..a495412 100644 --- a/klbr-bench/Cargo.toml +++ b/klbr-bench/Cargo.toml @@ -4,16 +4,16 @@ version = "0.1.0" edition = "2021" [dependencies] -anyhow = "1" +anyhow = { workspace = true } +blake3 = { workspace = true } +bytemuck = { workspace = true } +chrono = { workspace = true } +clap = { workspace = true } klbr-core = { path = "../klbr-core" } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -tempfile = "3" -tokio = { version = "1", features = ["full"] } -unicode-segmentation = "1" -chrono = "0.4.44" -rusqlite = { version = "0.39", features = ["bundled"] } -rand = "0.8" -blake3 = "1.8.5" -bytemuck = "1.25.0" -clap = { version = "4", features = ["derive"] } +rand = { workspace = true } +rusqlite = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +tempfile = { workspace = true } +tokio = { workspace = true } +unicode-segmentation = { workspace = true } diff --git a/klbr-core/Cargo.toml b/klbr-core/Cargo.toml index 1c56045..ea5065b 100644 --- a/klbr-core/Cargo.toml +++ b/klbr-core/Cargo.toml @@ -8,23 +8,24 @@ name = "klbr_core" path = "src/lib.rs" [dependencies] -sqlite-vec = "0.1.0" -tokio = { version = "1", features = ["full"] } -rusqlite = { version = "0.39", features = ["bundled"] } -reqwest = { version = "0.13", features = ["json", "stream", "rustls"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -kdl = "6.5" -anyhow = "1" -base64 = "0.22" -futures = "0.3" -dirs = "5" -tracing = "0.1.44" -tracing-subscriber = "0.3.23" -chrono = "0.4.44" -pulldown-cmark = "0.11" -regex = "1" -tree-sitter-language-pack = "1.11.0" -tree-sitter-tags = "0.26.9" +anyhow = { workspace = true } +base64 = { workspace = true } +chrono = { workspace = true } +dirs = { workspace = true } +futures = { workspace = true } +kdl = { workspace = true } +pulldown-cmark = { workspace = true } +regex = { workspace = true } +reqwest = { workspace = true, features = ["json", "stream", "rustls"] } +rusqlite = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +sqlite-vec = { workspace = true } +tokio = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } +tree-sitter-language-pack = { workspace = true } +tree-sitter-tags = { workspace = true } + [dev-dependencies] -tempfile = "3" +tempfile = { workspace = true } diff --git a/klbr-daemon/Cargo.toml b/klbr-daemon/Cargo.toml index 5e5eaf7..4b1bff0 100644 --- a/klbr-daemon/Cargo.toml +++ b/klbr-daemon/Cargo.toml @@ -4,13 +4,13 @@ version = "0.1.0" edition = "2021" [dependencies] +anyhow = { workspace = true } +futures = { workspace = true } klbr-core = { path = "../klbr-core" } klbr-discord = { path = "../klbr-discord" } klbr-ipc = { path = "../klbr-ipc" } -tokio = { version = "1", features = ["full"] } -anyhow = "1" -futures = "0.3" -tracing = "0.1.44" -tracing-subscriber = "0.3.23" -serde_json = "1" -tokio-tungstenite = "0.23" +serde_json = { workspace = true } +tokio = { workspace = true } +tokio-tungstenite = { workspace = true } +tracing = { workspace = true } +tracing-subscriber = { workspace = true } diff --git a/klbr-discord/Cargo.toml b/klbr-discord/Cargo.toml index a9429ca..efe55f3 100644 --- a/klbr-discord/Cargo.toml +++ b/klbr-discord/Cargo.toml @@ -8,22 +8,22 @@ name = "klbr_discord" path = "src/lib.rs" [dependencies] +anyhow = { workspace = true } +base64 = { workspace = true } +chrono = { workspace = true } +emojis = { workspace = true } klbr-core = { path = "../klbr-core" } -anyhow = "1" -base64 = "0.22" -chrono = "0.4.44" -emojis = "0.8.1" -regex = "1" -reqwest = { version = "0.13", features = ["json", "stream"] } -rustls = { version = "0.23", features = ["ring"] } -rusqlite = { version = "0.39", features = ["bundled"] } -serde = { version = "1", features = ["derive"] } -serde_json = "1" -tokio = { version = "1", features = ["full"] } -tracing = "0.1.44" -twilight-gateway = "0.17.1" -twilight-http = "0.17.1" -twilight-model = "0.17.1" +regex = { workspace = true } +reqwest = { workspace = true, features = ["json", "stream"] } +rusqlite = { workspace = true } +rustls = { workspace = true } +serde = { workspace = true } +serde_json = { workspace = true } +tokio = { workspace = true } +tracing = { workspace = true } +twilight-gateway = { workspace = true } +twilight-http = { workspace = true } +twilight-model = { workspace = true } [dev-dependencies] -tempfile = "3" +tempfile = { workspace = true } diff --git a/klbr-ipc/Cargo.toml b/klbr-ipc/Cargo.toml index e39cadd..aa05a96 100644 --- a/klbr-ipc/Cargo.toml +++ b/klbr-ipc/Cargo.toml @@ -5,5 +5,5 @@ edition = "2021" [dependencies] klbr-core = { path = "../klbr-core" } -serde = { version = "1", features = ["derive"] } -serde_json = "1" +serde = { workspace = true } +serde_json = { workspace = true } -- 2.51.2