Data-first slash command registry for clj-agent-tui agent shells.
Data-first slash command registry for clj-agent-tui agent shells.
(command-options)(command-options commands)Return command registry entries as selection option maps.
Return command registry entries as selection option maps.
(execute-command state command)(execute-command state commands {:keys [name args raw] :as command})Execute a parsed slash command as a pure state transition.
Returns [state effects]. Unknown commands leave state unchanged and emit a
:command/unknown effect so a runtime can decide how to recover.
Execute a parsed slash command as a pure state transition. Returns `[state effects]`. Unknown commands leave state unchanged and emit a `:command/unknown` effect so a runtime can decide how to recover.
(parse-command text)Parse a slash command string into {:name :args :raw}; returns nil otherwise.
Parse a slash command string into {:name :args :raw}; returns nil otherwise.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |