feat: Wire ForgivingParser into REPL command dispatch #4
Notifications
Due Date
No due date set.
Blocks
#8 feat: Phase 1 robot mode + forgiving parser test suite
terraphim/agent-tasks
#11 feat: Route REPL command output through machine-readable formatter (Phase 1 Task 1.4.1 and 1.4.3)
terraphim/agent-tasks
#25 feat: Custom command aliases via [aliases] TOML config (F2.2)
terraphim/agent-tasks
#31 feat: case-insensitive flags and --flag=value separators (F2.3)
terraphim/agent-tasks
Reference: terraphim/agent-tasks#4
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem Statement
The
ForgivingParsermodule exists with typo tolerance and alias expansion, butReplCommand::from_strdoes not use it. Commands likeserach(typo) or/q(alias) fail instead of being auto-corrected.Current State
ForgivingParserimplemented:crates/terraphim_agent/src/forgiving/parser.rsq->search,h->help, etc. inaliases.rsReplCommand::from_struses direct string matching incommands.rsAcceptance Criteria
ReplCommand::from_strusesForgivingParserfor command matchingserachauto-corrects tosearchwith notification/q queryexpands to/search querymeta.auto_correctedflag in JSON responseProposed Approach
ReplCommand::from_strincrates/terraphim_agent/src/repl/commands.rsto useForgivingParserParseResultvariants (Exact, AliasExpanded, AutoCorrected, Suggestions, Unknown)ReplHandler::execute_commandauto_correctedflag to robot mode JSON responsesDependencies
None
Verification
Scope
Modifies
commands.rsandhandler.rs. ~100 lines changed.Upstream: This issue tracks a feature for terraphim/terraphim-ai