Structs§
- Command
Frontmatter - 自定义命令的 YAML frontmatter 元数据
- Custom
Command - 自定义命令,包含 frontmatter 元数据、提示词正文和来源层级
Enums§
- Command
Source - Command 来源层级
Functions§
- commands_
dir - 返回用户级 commands 目录: ~/.jdata/agent/commands/
- commands_
dir_ for_ source - 返回指定来源的 commands 目录路径
- expand_
command_ mentions - 展开消息中的 @command:name 引用,替换为 command body
- load_
all_ commands - 加载所有 commands(用户级 + 项目级,同名时项目级覆盖)
- project_
commands_ dir - 返回项目级 commands 目录: .jcli/commands/(如果存在)
- save_
new_ command - 保存新命令到指定目录