refactor: migrate to data-studio-agent v0.1.1 shared library#460
Open
Blankll wants to merge 4 commits into
Open
refactor: migrate to data-studio-agent v0.1.1 shared library#460Blankll wants to merge 4 commits into
Blankll wants to merge 4 commits into
Conversation
…nstructors - Switch from path dependency to git tag v0.1.1 - Add missing parallel_ok: false to Capability test constructors
…nt v0.1.1
Delete 14 agent submodules that now live in the shared library:
chat_formatter, compact, conversation, harness, loop_runner,
loop_runner_support, model_registry, provider_adapter,
token_counter, tool_executor, tools, config
Add agent_adapters.rs — thin Tauri command wrappers that create
SqliteSessionStore + TauriEmitter and delegate to shared lib.
Update remaining modules:
- executor.rs: implement ToolExecutor trait from lib
- session_store.rs: app-specific session CRUD (no duplication)
- capabilities/*: add parallel_ok field per lib's Capability schema
- lib.rs: wire up Tauri commands via agent_adapters
- Cargo.toml: data-studio-agent = { git, tag = v0.1.1 }
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #460 +/- ##
==========================================
+ Coverage 42.69% 46.74% +4.04%
==========================================
Files 117 106 -11
Lines 16050 13158 -2892
Branches 768 768
==========================================
- Hits 6853 6151 -702
+ Misses 8958 6768 -2190
Partials 239 239
🚀 New features to boost your workflow:
|
- data-studio-agent: v0.1.1 -> v0.1.2 (self-healing, tool timeout, message ordering) - session_store: ORDER BY rowid ASC fixes UUID race in display queries
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Complete the migration of dockit from a self-contained agent implementation to the shared
data-studio-agentlibrary (v0.1.1).Before vs After
flowchart LR subgraph Before["Before (self-contained)"] direction TB D1["dockit/src-tauri/src/agent/"] D1a["chat_formatter/"] --- D1b["compact.rs"] D1b --- D1c["loop_runner.rs"] D1c --- D1d["harness.rs"] D1d --- D1e["model_registry.rs"] D1e --- D1f["provider_adapter.rs"] D1f --- D1g["token_counter.rs"] D1g --- D1h["tool_executor.rs"] D1h --- D1i["tools.rs"] D1i --- D1j["conversation.rs"] D1j --- D1k["loop_runner_support.rs"] D1k --- D1l["config.rs"] D2["capabilities/"] --- D3["capability handlers"] D1 --- D2 end subgraph After["After (shared lib)"] direction TB L1["data-studio-agent (v0.1.1)\n─ 15 modules, 6500+ lines ─"] L1a["chat_formatter/"] --- L1b["compact.rs"] L1b --- L1c["loop_runner.rs"] L1c --- L1d["harness.rs"] L1d --- L1e["model_registry.rs"] L1e --- L1f["provider_adapter.rs"] L1f --- L1g["token_counter.rs"] L1g --- L1h["traits.rs"] L1h --- L1i["storage/"] A1["dockit/src-tauri/src/\n(thin adapters only)"] A1a["agent_adapters.rs\n← Tauri wrappers → lib"] --- A1b["agent/executor.rs\n← ToolExecutor impl"] A1b --- A1c["agent/session_store.rs\n← app-specific CRUD"] A1c --- A1d["capabilities/\n← tool handlers"] A1d --- A1e["agent/query_history.rs\n← app-specific"] L1 -.->|"git tag v0.1.1"| A1 end Before --> After style Before fill:#fff3e0,stroke:#e65100 style After fill:#e8f5e9,stroke:#2e7d32 style D1 fill:#ffcc80,stroke:#e65100 style L1 fill:#a5d6a7,stroke:#2e7d32 style A1 fill:#c8e6c9,stroke:#2e7d32Changes
Deleted (14 files, -4094 lines)
All agent modules extracted to the shared library:
chat_formatter/,compact.rs,conversation.rs,harness.rs,loop_runner.rs,loop_runner_support.rs,model_registry.rs,provider_adapter.rs,token_counter.rs,tool_executor.rs,tools.rs,config.rsAdded
agent_adapters.rs— Tauri command wrappers that createSqliteSessionStore+TauriEmitterand delegate to shared libModified
agent/executor.rs— implementsToolExecutortrait from libagent/session_store.rs— app-specific session CRUD (no duplication with lib)capabilities/*— addparallel_okfield, fix test constructorslib.rs— wire up Tauri commands via agent_adaptersCargo.toml—data-studio-agent = { git, tag = "v0.1.1" }Verification
cargo build— greencargo test— greenagent/directory