mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-27 17:58:07 +00:00
A slash only opened completions at position 0, so `please run /cle` suggested nothing. That is correct for execution — commands only run from the start of a message — but it also removed the ability to reference a skill inside prose. Position 0 and mid-message are now detected separately. A leading slash stays a command invocation with arg completion and the full command set; a slash after whitespace is an inline skill reference. Only skills are offered there, since a built-in like /model or /new acts on the app and reads as nothing useful inside a sentence. The gateway tags each completion with its kind, derived from the same skill-command and skill-bundle providers the completer already consumes, so the TUI filters on data rather than sniffing the display meta glyphs. applyCompletion keyed its leading-slash check off the start of the input, which is only the replace point for a position-0 command. It now keys off the character before compReplace, so an inline pick lands as `please run /clean` instead of `please run //clean`. The Tab handler carried its own divergent copy of that logic and now calls the shared helper. |
||
|---|---|---|
| .. | ||
| blockLayout.ts | ||
| details.ts | ||
| messages.ts | ||
| paths.ts | ||
| providers.ts | ||
| roles.ts | ||
| slash.ts | ||
| usage.ts | ||
| viewport.ts | ||