包页面→ /actions.md
pages/actions.md
67 行, 2.8 KB. 以页面形式查看.
- ---
- type: Collection
- title: "动作"
- icon: "🛠️"
- description: "工厂能运行什么:脚本、智能体、一次移动,或对记录的编辑。每个页面对应一个动作以及运行它的东西。"
- itemType: Action
- items: {mode: path, path: /actions, recursive: false}
- writeTo: /actions
- properties:
- kind:
- kind: select
- label: "类别"
- options:
- - {name: program, label: "程序", color: blue}
- - {name: agent, label: "智能体", color: purple}
- - {name: assistant, label: "Assistant", color: purple}
- - {name: specialist, label: "Specialist", color: purple}
- - {name: harness, label: "harness", color: purple}
- - {name: model, label: "模型回复", color: pink}
- - {name: cloud, label: "云端", color: teal}
- - {name: move, label: "移动记录", color: gray}
- - {name: set, label: "编辑字段", color: gray}
- - {name: create, label: "新建记录", color: gray}
- - {name: task, label: "新建任务", color: gray}
- - {name: notify, label: "消息", color: orange}
- - {name: wake, label: "唤醒", color: orange}
- path: {kind: text, label: "脚本(路径从项目根目录或仓库根目录起算)"}
- command: {kind: text, label: "命令"}
- agent: {kind: relation, collection: /agents, label: "智能体"}
- mode:
- kind: select
- label: "模式"
- options:
- - {name: manual, label: "手动", color: gray}
- - {name: auto, label: "自动", color: green}
- status:
- kind: select
- label: "状态"
- options:
- - {name: active, label: "进行中", color: green}
- - {name: hold, label: "暂停", color: gray}
- - {name: unclear, label: "待明确", color: yellow}
- timeLimit: {kind: number, label: "限时(分钟)"}
- views:
- - id: actions--table
- name: "全部动作"
- layout: table
- fields: {}
- sorting:
- - {propertyId: title, direction: ascending}
- properties:
- - {name: title, visible: true, width: 300}
- - {name: kind, visible: true}
- - {name: path, visible: true}
- - {name: agent, visible: true}
- - {name: status, visible: true}
- ---
- 一个页面对应工厂中的一个动作(action):它做什么,以及由什么来运行。动作由人、智能体或[自动化](/automations.md)运行。
- - 程序(`kind: program`)或云端(`cloud`):脚本写在 `path` 中,或命令写在 `command` 中。路径从项目根目录写起;若项目位于某个仓库之内,也可以从仓库根目录写起。
- - 智能体(`agent`、`assistant`、`specialist`、`harness`):`agent` 字段指向[智能体](/agents.md)集合中的一个智能体页面。
- - 移动、编辑、新建记录、任务、消息:具体内容写在页面正文中。
- 暂停中的动作(`status: hold`)不做检查:其脚本可能已经不存在。
- 规范 [ACT-R01](/norms/rules/automations/ACT-R01.md) 保证动作有可以运行它的东西。