init - 初始化项目
创建场景项目脚手架。
用法
bash
aweeclaw-scenario init <name> [options]参数
| 参数 | 说明 |
|---|---|
<name> | 场景名称,自动转为小写 kebab-case 作为 ID |
选项
| 选项 | 默认值 | 说明 |
|---|---|---|
--name-zh <nameZh> | 同 name | 中文名称 |
--category <category> | custom | 分类 |
--type <type> | programmatic | 类型:declarative 或 programmatic |
--author <author> | unknown | 作者 |
示例
bash
# 编程式场景
aweeclaw-scenario init code-reviewer --name-zh "代码审查" --category development
# 声明式场景
aweeclaw-scenario init travel-planner --name-zh "旅行规划" --type declarative --category productivity生成的文件
编程式
my-scenario/
├── scenario.json
├── package.json
├── tsconfig.json
├── src/
│ ├── index.ts
│ └── components/
├── prompts/
│ └── system.md
└── assets/声明式
my-scenario/
├── scenario.json
├── package.json
├── prompts/
│ └── system.md
├── scripts/
├── db/
└── assets/
