The /team spec existed in slash_command_specs() but validate_slash_command_input
had no "team" match arm, so /team always produced SlashCommand::Unknown and the
REPL reported "unknown slash command" — even while suggesting /team as a fix.
- Add the "team" => SlashCommand::Team { action } parse arm (action optional:
/team, /team list, /team help). Extra args are rejected like other commands.
- Give SlashCommand::Team a dedicated REPL handler (print_team_command) so
/team prints guidance on the model-invokable TeamCreate/TeamDelete/Cron*
tools and /team list explains that live registry listing is not yet wired
into the CLI layer (the team registry is owned by the in-process tool
executor, not the session/runtime).
- Regression test: assert /team and /team list parse correctly.
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|
||
|---|---|---|
| .. | ||
| .claw/sessions | ||
| src | ||
| tests | ||
| Cargo.toml | ||
| build.rs | ||