Skip to content

API 参考 / @142vip/fairy-cli / AiCommandOptions

接口: AiCommandOptions ​

定义于: packages/fairy-cli/src/commands/ai.ts:32

fa ai / fairy ai 命令选项。

继承 @142vip/agent-skills 的 VipAgentSkillCliOptions (--target / --dry-run / --force / --check 字段语义一致), 本命令不额外叠加字段;后续若有专有选项在此 extends 扩展即可。

可选布尔由 VipCommander / commander 默认值与解构默认收口, 禁止业务路径再包一层 Boolean(...)。

theme_extends ​

  • VipAgentSkillCliOptions

属性 ​

check? ​

optional check?: boolean

定义于: packages/agent-skills/src/cli.ts:40

只比对镜像是否与包内 skills 一致(--check);不一致 exit 1。 与 dryRun 互斥。commander 默认 false。

继承自 ​

VipAgentSkillCliOptions.check


dryRun? ​

optional dryRun?: boolean

定义于: packages/utils/src/pkgs/commander.ts:12

注册 --dry-run(子命令 -h 展示,紧挨 --help 上方)

继承自 ​

VipAgentSkillCliOptions.dryRun


force? ​

optional force?: boolean

定义于: packages/agent-skills/src/cli.ts:35

目标无 package.json 也继续(--force)。 commander 默认 false。

继承自 ​

VipAgentSkillCliOptions.force


help? ​

optional help?: boolean

定义于: packages/utils/src/pkgs/commander.ts:18

注册 -h, --help(置于 Options 末尾)

继承自 ​

VipAgentSkillCliOptions.help


target? ​

optional target?: string

定义于: packages/agent-skills/src/cli.ts:30

下游项目根目录(--target / -t)。 省略时:先读 env AGENT_SKILLS_TARGET,再回落 process.cwd()。

继承自 ​

VipAgentSkillCliOptions.target


trace? ​

optional trace?: boolean

定义于: packages/utils/src/pkgs/commander.ts:16

注册 --trace(根程序 -h 展示;开启后 VipConsole.trace 输出执行日志)

继承自 ​

VipAgentSkillCliOptions.trace


vip? ​

optional vip?: boolean

定义于: packages/utils/src/pkgs/commander.ts:14

注册 --vip(子命令 -h 展示,紧挨 --help 上方)

继承自 ​

VipAgentSkillCliOptions.vip