feat(client): load local digital plan templates
This commit is contained in:
@@ -760,6 +760,23 @@ Plan
|
||||
|
||||
```text
|
||||
PlanTemplate.toml
|
||||
PlanTemplate.json
|
||||
```
|
||||
|
||||
当前客户端实现先读取本机目录,不依赖 sgRobot daemon。main process 通过
|
||||
`digitalEmployee:getPlanTemplates` IPC 暴露模板列表,preload bridge 提供
|
||||
`window.QimingClawBridge.digital.getPlanTemplates()` 给 embedded digital 页面使用。
|
||||
|
||||
模板字段支持:
|
||||
|
||||
```text
|
||||
plan_id / id / template_id
|
||||
title / name
|
||||
objective / description
|
||||
status
|
||||
steps[].step_id / steps[].id
|
||||
steps[].preferred_skills / steps[].skills
|
||||
steps[].tasks[].task_id / steps[].tasks[].id
|
||||
```
|
||||
|
||||
### API
|
||||
@@ -781,6 +798,14 @@ POST /api/plan-templates/:id/activate
|
||||
- 一键执行
|
||||
- 设置定时
|
||||
|
||||
页面融合位置:
|
||||
|
||||
- 任务设置:模板作为可选业务流程展示。
|
||||
- 任务中心:模板步骤和任务合并到本地运行视图。
|
||||
- 调度:模板生成 `plan_template` 类型 job。
|
||||
- 详情/聊天:无运行态时以模板内容生成计划流和消息。
|
||||
- 执行:点击模板执行会写入正式 `activate_plan` governance command,生成 Plan / Task / Run / Event / outbox,同步给管理后端。
|
||||
|
||||
### 产出
|
||||
|
||||
- qimingclaw 具备业务流程沉淀能力。
|
||||
@@ -789,7 +814,9 @@ POST /api/plan-templates/:id/activate
|
||||
### 验收
|
||||
|
||||
- 放入一个 `PlanTemplate.toml` 后,数字员工页面能展示。
|
||||
- 放入一个 `PlanTemplate.json` 后,数字员工页面能展示。
|
||||
- 点击执行后生成 Plan / Task / Run。
|
||||
- 执行记录进入 `digital_sync_outbox`,后续由本地同步链路上报。
|
||||
|
||||
## Phase 6:Skill Catalog 融合
|
||||
|
||||
|
||||
Reference in New Issue
Block a user