ShtukbaseStandard
包页面→ /actions.md

pages/actions.md

67 行, 2.8 KB. 以页面形式查看.

  1. ---
  2. type: Collection
  3. title: "动作"
  4. icon: "🛠️"
  5. description: "工厂能运行什么:脚本、智能体、一次移动,或对记录的编辑。每个页面对应一个动作以及运行它的东西。"
  6. itemType: Action
  7. items: {mode: path, path: /actions, recursive: false}
  8. writeTo: /actions
  9. properties:
  10. kind:
  11. kind: select
  12. label: "类别"
  13. options:
  14. - {name: program, label: "程序", color: blue}
  15. - {name: agent, label: "智能体", color: purple}
  16. - {name: assistant, label: "Assistant", color: purple}
  17. - {name: specialist, label: "Specialist", color: purple}
  18. - {name: harness, label: "harness", color: purple}
  19. - {name: model, label: "模型回复", color: pink}
  20. - {name: cloud, label: "云端", color: teal}
  21. - {name: move, label: "移动记录", color: gray}
  22. - {name: set, label: "编辑字段", color: gray}
  23. - {name: create, label: "新建记录", color: gray}
  24. - {name: task, label: "新建任务", color: gray}
  25. - {name: notify, label: "消息", color: orange}
  26. - {name: wake, label: "唤醒", color: orange}
  27. path: {kind: text, label: "脚本(路径从项目根目录或仓库根目录起算)"}
  28. command: {kind: text, label: "命令"}
  29. agent: {kind: relation, collection: /agents, label: "智能体"}
  30. mode:
  31. kind: select
  32. label: "模式"
  33. options:
  34. - {name: manual, label: "手动", color: gray}
  35. - {name: auto, label: "自动", color: green}
  36. status:
  37. kind: select
  38. label: "状态"
  39. options:
  40. - {name: active, label: "进行中", color: green}
  41. - {name: hold, label: "暂停", color: gray}
  42. - {name: unclear, label: "待明确", color: yellow}
  43. timeLimit: {kind: number, label: "限时(分钟)"}
  44. views:
  45. - id: actions--table
  46. name: "全部动作"
  47. layout: table
  48. fields: {}
  49. sorting:
  50. - {propertyId: title, direction: ascending}
  51. properties:
  52. - {name: title, visible: true, width: 300}
  53. - {name: kind, visible: true}
  54. - {name: path, visible: true}
  55. - {name: agent, visible: true}
  56. - {name: status, visible: true}
  57. ---
  58. 一个页面对应工厂中的一个动作(action):它做什么,以及由什么来运行。动作由人、智能体或[自动化](/automations.md)运行。
  59. - 程序(`kind: program`)或云端(`cloud`):脚本写在 `path` 中,或命令写在 `command` 中。路径从项目根目录写起;若项目位于某个仓库之内,也可以从仓库根目录写起。
  60. - 智能体(`agent`、`assistant`、`specialist`、`harness`):`agent` 字段指向[智能体](/agents.md)集合中的一个智能体页面。
  61. - 移动、编辑、新建记录、任务、消息:具体内容写在页面正文中。
  62. 暂停中的动作(`status: hold`)不做检查:其脚本可能已经不存在。
  63. 规范 [ACT-R01](/norms/rules/automations/ACT-R01.md) 保证动作有可以运行它的东西。