1
0

refactor: Implement dynamic skill loading from definitions, replacing hardcoded skills, and add a new skill management command.

This commit is contained in:
2026-02-28 13:43:23 +01:00
parent a1037edb29
commit 7b144aedd7
11 changed files with 310 additions and 125 deletions

10
_toak
View File

@@ -19,6 +19,7 @@ _toak() {
'latency-test:Benchmark full pipeline without recording'
'show:Show current configuration'
'config:Update a specific configuration setting'
'skill:Manage dynamic skills (list, add, remove)'
)
_arguments -C \
@@ -46,6 +47,15 @@ _toak() {
'1:key:(llm whisper language lang backend punctuation tech)' \
'2:value:'
;;
skill)
local -a skill_cmds
skill_cmds=(
'list:List all available skills'
'add:Add a new skill interactively'
'remove:Remove a skill'
)
_describe -t commands 'skill command' skill_cmds
;;
*)
_message "no more arguments"
;;