feat: add help component and describe operation for component discovery#28
Merged
feat: add help component and describe operation for component discovery#28
Conversation
Add orcs-acp crate implementing the ACP Agent trait from agent-client-protocol v0.9. Enables ORCS to run as an ACP-compatible agent over stdio, registerable in ACP-aware editors (Zed, JetBrains). P1 implementation: initialize, authenticate, new_session, prompt, cancel handlers with echo response. Engine integration planned for P2. CLI: `orcs --acp` starts the ACP server mode.
Replace echo-based engine_worker with real ORCS engine integration. The ACP server now sends user prompts through IOInputHandle and streams engine output back as ACP SessionUpdate notifications, using the same idle-timeout pattern as run_command().
Add @help builtin component that provides runtime introspection: - @help list: shows all @-routable components and dynamic agents - @help <name>: shows detail (description, operations, usage) for a component Each builtin component now implements a "describe" operation returning structured metadata. agent_mgr gains list_routes and resolve_route operations to support help's queries.
Code Metrics
Domain breakdown
|
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
@helpbuiltin component for runtime component introspection (@help list,@help <name>)describeoperation to all builtin components (shell, tool, agent_mgr, foundation_manager, profile_manager) returning structured metadata (id, fqn, description, operations, usage)list_routesandresolve_routeoperations to agent_mgr to support help queriesdescriptionfield to agent_mgr route table entrieshelpin default builtins config (types.rs)Design
@helpworks entirely through the existing component request/response mechanism:@help list→ requestslist_routesfromagent_mgr→ formats and outputs all @-routable components and dynamic agents@help <name>→ requestsresolve_routefromagent_mgrto get target FQN → requestsdescribefrom the target component → formats and outputs detailNo new Rust code or runtime changes required — built purely on the Lua component layer.
Test plan
@helpshows usage message@help listlists all registered routes and agents with descriptions@help shellshows shell component detail (description, operations, usage)@help toolshows tool component detail@help foundationshows foundation_manager detail@help profileshows profile_manager detail@help helpshows self-describe metadata@help nonexistentreturns appropriate error message@shell,@tool,@profile,@foundationrouting unaffected