Repository navigation
feat(cli): unified future entry — agent/tui/channel/loop embedded, slim build/install, future-* crate names - #116
Merged
Merged
Conversation
added 3 commits
August 7, 2026 14:11
…m build/install surface `future <cmd>` is now the primary entry for every Rust component: future agent|tui|channel|loop <args> (same code as the standalone binaries, which remain buildable via cargo and runnable via make run-*) - cli: dispatch embedded components before the CLI runtime (they build their own tokio runtimes); the old `future agent status` group is removed - agent/tui/channel/loop: entry points moved into their libs so each runs standalone or embedded; loop error hints adapt the program name - crates renamed to future-*: tui-rust->future-tui, cli-rust->future-cli (lib cli_rust->future_cli); all -p tui-rust/-p cli-rust refs updated - Makefile: build = build-cli build-gui; install = install-cli install-gui install-skills (loop skill folded into install-skills); deleted install-nogui/agent/tui/channels/loop and build-agent/tui/channels/loop - GUI bundles a single Tauri sidecar (future) — the agent starts via `future agent`; agent serde_json preserve_order made explicit so the session-list JSON key order is deterministic across build modes - test targets de-rust-ified (test-cli/test-tui, was test-cli-rust/-tui-rust); golden harnesses renamed diff-ts-rust.sh -> golden-diff.sh (TS retired; --record now recaptures from the Rust CLI) - docs: README, build-and-install, loop-control-plane, tui, wiki, installers, portable readmes all updated to the unified CLI
…build future-loop was the last crate generating gRPC code in build.rs on every build, which required protoc on PATH. Now that the unified `future` CLI depends on future-loop (cli/Cargo.toml), any CLI build — including CI's `cargo test -p future-cli` — failed without protoc installed. Switch agent_client.rs to future_rpc::proto (the single proto codegen owner, PR #112) like agent/channels/cli/tui already do; delete build.rs and the prost-build/tonic-build/prost build deps. protoc is optional again for all normal builds.
7 tasks done
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.
Summary
future <cmd>is now the primary entry point for every Rust component — agent/tui/channel/loop run in-process through the unifiedfutureCLI (same code as the standalone binaries, which remain buildable viacargo build -p <crate>and runnable viamake run-*).Changes
Unified CLI
clidispatches the embedded components before entering its own tokio runtime (each builds its own runtime; nested runtimes would panic)future agent statusgroup is removed;future agent --helpshows the agent's clap optionsfuture_agent::cli::run_from_args,future_channel::run,future_loop::console::run, existingfuture_tui::index::run); loop error hints adapt the program name (future loopvsfuture-loop)Crate naming — all five component crates are now
future-*tui-rust→future-tui,cli-rust→future-cli(libcli_rust→future_cli); every-p tui-rust/-p cli-rustreference updated (Makefile, test harnesses, examples, CI, Cargo.lock)Build/install surface
make build=build-cli build-gui(deletedbuild-agent/tui/channels/loop)make install=install-cli install-gui install-skills(deletedinstall-nogui/agent/tui/channels/loop;/future-loopskill folded intoinstall-skills)scripts/install.sh: Linux =make install-cli install-skills; macOS links the loop skill inline (no cargo build)GUI — single Tauri sidecar
futureis bundled (externalBin: ["binaries/future"]);agent_supervisorspawnsfuture agent --grpc-addr ...— the agent code was previously duplicated in bothfuture-agentandfuture(~13 MB saved in release)build.yml/ci.yml/ portable readmes updatedDeterministic agent wire format
agent/Cargo.tomlexplicitly enables serde_jsonpreserve_order; without it the session-list JSON key order silently depended on cargo feature unification (build-graph dependent) and flipped the golden harnessTest cleanup
test-cli-rust/test-tui-rustmerged intotest-cli/test-tui(were aliases listed twice inmake test)diff-ts-rust.sh→golden-diff.sh(TS retired; these are golden regression gates, not live TS diffs); cli harness--recordnow recaptures from the Rust CLIsession listUPDATED columnDocs — README (en/zh), build-and-install (en/zh), loop-control-plane (en/zh), tui (en/zh), wiki CLI/Feishu/DingTalk, installers, portable readmes
Verification
cargo build --workspace✓cargo test -p future-cli -p future-tui604 passed; agent/loop/channel suites pass ✓cargo clippy --workspace --all-targets -- -D warningsclean,cargo fmt --checkclean ✓cargo check(gui/src-tauri) ✓;future agent --grpc-addr ...spawn path smoke-tested ✓make -nparses for all retained targets ✓