mirror of
https://github.com/memohai/Memoh.git
synced 2026-04-25 07:00:48 +09:00
fix(command): add missing command handler wiring and lint fixes
Wire SetCommandHandler into ChannelInboundProcessor so slash commands are intercepted before reaching the LLM. Also apply lint fixes across command package (strconv.Itoa, comment formatting, unused code removal) and remove obsolete tool-call-browser.vue component.
This commit is contained in:
@@ -13,7 +13,7 @@ type ParsedCommand struct {
|
||||
}
|
||||
|
||||
// Parse parses a raw command string into its components.
|
||||
// Expected format: /resource [action] [args...]
|
||||
// Expected format: /resource [action] [args...].
|
||||
func Parse(text string) (ParsedCommand, error) {
|
||||
text = strings.TrimSpace(text)
|
||||
if !strings.HasPrefix(text, "/") {
|
||||
|
||||
Reference in New Issue
Block a user