Skip to content

scenario.json 配置

CLI 项目中的 scenario.json 配置文件参考。

编程式配置

json
{
  "id": "my-scenario",
  "version": "1.0.0",
  "name": "My Scenario",
  "nameZh": "我的场景",
  "description": "A brief description",
  "descriptionZh": "简要描述",
  "author": "author-name",
  "icon": "Package",
  "category": "development",
  "tags": ["code", "review"],
  "license": "MIT",
  "type": "programmatic",
  "entryPoint": "src/index.ts",
  "permissions": [],
  "sharedDeps": {
    "react": "^18.3.0",
    "react-dom": "^18.3.0",
    "zustand": "^5.0.0",
    "lucide-react": "^0.562.0"
  },
  "dependencies": []
}

声明式配置

json
{
  "id": "travel-planner",
  "version": "1.0.0",
  "name": "Travel Planner",
  "nameZh": "旅行规划师",
  "type": "declarative",
  "identity": {
    "systemPromptFile": "prompts/system.md"
  },
  "capabilities": {
    "builtinTools": ["web_search", "ask_user"],
    "customTools": []
  },
  "ui": {
    "layout": "chat-centric"
  }
}

详见 清单配置

AweeClaw AI 应用构建平台