feat: 结题报告初稿助手首版 v1.0.1(draft-closing-report-default)
All checks were successful
技能自动化发布 / release (push) Successful in 6s
All checks were successful
技能自动化发布 / release (push) Successful in 6s
This commit is contained in:
522
assets/actions.json
Normal file
522
assets/actions.json
Normal file
@@ -0,0 +1,522 @@
|
||||
{
|
||||
"schemaVersion": 1,
|
||||
"skill": "draft-closing-report-default",
|
||||
"actions": [
|
||||
{
|
||||
"id": "draft-report",
|
||||
"label": "生成结题初稿",
|
||||
"description": "按台账对比预期指标与实际成果、转换决算描述,生成 Word 版《结题报告(初稿)》与 HTML 预览。",
|
||||
"placements": [
|
||||
"agent",
|
||||
"toolbar"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"closing_projects"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "draft-report",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填,待结题项目编号。"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "draft-batch-pending",
|
||||
"label": "批量生成初稿",
|
||||
"description": "为全部待结题项目批量生成初稿(任务中心可见进度)。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "async",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "draft-batch-pending",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "add-project",
|
||||
"label": "录入结题项目",
|
||||
"description": "按项目编号录入/更新结题项目与预期指标(幂等)。",
|
||||
"placements": [
|
||||
"toolbar"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"closing_projects"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "add-project",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}",
|
||||
"--name",
|
||||
"{{name}}",
|
||||
"--pi",
|
||||
"{{pi}}",
|
||||
"--department",
|
||||
"{{department}}",
|
||||
"--program",
|
||||
"{{program}}",
|
||||
"--start",
|
||||
"{{start}}",
|
||||
"--end",
|
||||
"{{end}}",
|
||||
"--expected-json",
|
||||
"{{expectedJson}}",
|
||||
"--excerpt",
|
||||
"{{excerpt}}",
|
||||
"--status",
|
||||
"{{status}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填。"
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"title": "项目名称"
|
||||
},
|
||||
"pi": {
|
||||
"type": "string",
|
||||
"title": "负责人"
|
||||
},
|
||||
"department": {
|
||||
"type": "string",
|
||||
"title": "所属学院"
|
||||
},
|
||||
"program": {
|
||||
"type": "string",
|
||||
"title": "项目类型"
|
||||
},
|
||||
"start": {
|
||||
"type": "string",
|
||||
"title": "执行期开始",
|
||||
"display_type": "date"
|
||||
},
|
||||
"end": {
|
||||
"type": "string",
|
||||
"title": "执行期结束",
|
||||
"display_type": "date"
|
||||
},
|
||||
"expectedJson": {
|
||||
"type": "string",
|
||||
"title": "预期指标 JSON",
|
||||
"description": "如 [{\"type\":\"论文\",\"target\":3,\"unit\":\"篇\"}]",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"excerpt": {
|
||||
"type": "string",
|
||||
"title": "年度报告摘句",
|
||||
"description": "分号分隔关键句。",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"title": "状态",
|
||||
"enum": [
|
||||
"待结题",
|
||||
"初稿已生成",
|
||||
"已提交"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "add-achievement",
|
||||
"label": "录入成果",
|
||||
"description": "向成果清单添加一条成果。",
|
||||
"placements": [
|
||||
"toolbar"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"achievements"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "add-achievement",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}",
|
||||
"--type",
|
||||
"{{type}}",
|
||||
"--title",
|
||||
"{{title}}",
|
||||
"--venue",
|
||||
"{{venue}}",
|
||||
"--date",
|
||||
"{{date}}",
|
||||
"--representative",
|
||||
"{{representative}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填。"
|
||||
},
|
||||
"type": {
|
||||
"type": "string",
|
||||
"title": "成果类型",
|
||||
"enum": [
|
||||
"论文",
|
||||
"专利",
|
||||
"人才培养",
|
||||
"其他"
|
||||
]
|
||||
},
|
||||
"title": {
|
||||
"type": "string",
|
||||
"title": "成果名称"
|
||||
},
|
||||
"venue": {
|
||||
"type": "string",
|
||||
"title": "期刊/专利号"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"title": "日期",
|
||||
"display_type": "date"
|
||||
},
|
||||
"representative": {
|
||||
"type": "string",
|
||||
"title": "代表性(1/0)",
|
||||
"enum": [
|
||||
"1",
|
||||
"0"
|
||||
]
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo",
|
||||
"type",
|
||||
"title"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "add-expense",
|
||||
"label": "录入决算明细",
|
||||
"description": "向决算明细添加一条支出。",
|
||||
"placements": [
|
||||
"toolbar"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"expense_items"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "add-expense",
|
||||
"args": [
|
||||
"--project-no",
|
||||
"{{projectNo}}",
|
||||
"--category",
|
||||
"{{category}}",
|
||||
"--amount",
|
||||
"{{amount}}",
|
||||
"--date",
|
||||
"{{date}}",
|
||||
"--description",
|
||||
"{{description}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号",
|
||||
"description": "必填。"
|
||||
},
|
||||
"category": {
|
||||
"type": "string",
|
||||
"title": "科目",
|
||||
"description": "如 差旅费、设备费。"
|
||||
},
|
||||
"amount": {
|
||||
"type": "number",
|
||||
"title": "金额(元)"
|
||||
},
|
||||
"date": {
|
||||
"type": "string",
|
||||
"title": "发生日期",
|
||||
"display_type": "date"
|
||||
},
|
||||
"description": {
|
||||
"type": "string",
|
||||
"title": "原始摘要"
|
||||
}
|
||||
},
|
||||
"required": [
|
||||
"projectNo",
|
||||
"category",
|
||||
"amount"
|
||||
]
|
||||
},
|
||||
"hostEffects": {
|
||||
"onSuccess": [
|
||||
"reloadTable"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "import-data",
|
||||
"label": "批量导入数据",
|
||||
"description": "粘贴 JSON 批量导入项目/成果/决算。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "form",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "import",
|
||||
"args": [
|
||||
"--projects-json",
|
||||
"{{projectsJson}}",
|
||||
"--achievements-json",
|
||||
"{{achievementsJson}}",
|
||||
"--expenses-json",
|
||||
"{{expensesJson}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"projectsJson": {
|
||||
"type": "string",
|
||||
"title": "项目 JSON",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"achievementsJson": {
|
||||
"type": "string",
|
||||
"title": "成果 JSON",
|
||||
"display_type": "textarea"
|
||||
},
|
||||
"expensesJson": {
|
||||
"type": "string",
|
||||
"title": "决算 JSON",
|
||||
"display_type": "textarea"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-data",
|
||||
"label": "查询台账",
|
||||
"description": "查询结题项目/成果/决算。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "list",
|
||||
"args": [
|
||||
"--kind",
|
||||
"{{kind}}",
|
||||
"--project-no",
|
||||
"{{projectNo}}",
|
||||
"--status",
|
||||
"{{status}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"kind": {
|
||||
"type": "string",
|
||||
"title": "类型",
|
||||
"enum": [
|
||||
"projects",
|
||||
"achievements",
|
||||
"expenses"
|
||||
]
|
||||
},
|
||||
"projectNo": {
|
||||
"type": "string",
|
||||
"title": "项目编号"
|
||||
},
|
||||
"status": {
|
||||
"type": "string",
|
||||
"title": "状态",
|
||||
"enum": [
|
||||
"待结题",
|
||||
"初稿已生成",
|
||||
"已提交"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "list-drafts",
|
||||
"label": "查询初稿记录",
|
||||
"description": "查看已生成的初稿记录。",
|
||||
"placements": [
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "list-drafts",
|
||||
"args": [
|
||||
"--limit",
|
||||
"{{limit}}"
|
||||
]
|
||||
},
|
||||
"inputSchema": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"limit": {
|
||||
"type": "number",
|
||||
"title": "条数"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "render-html",
|
||||
"label": "重建初稿预览",
|
||||
"description": "重建初稿 HTML 预览(缺省最近 10 份)。",
|
||||
"placements": [
|
||||
"toolbar",
|
||||
"skill-detail",
|
||||
"agent"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"interaction": "direct",
|
||||
"bind": {
|
||||
"tables": [
|
||||
"report_drafts"
|
||||
]
|
||||
},
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "render-html",
|
||||
"args": []
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"when": "afterSuccess",
|
||||
"do": "refreshCatalog"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "stats",
|
||||
"label": "统计",
|
||||
"description": "查看项目状态分布与成果/决算/初稿数量。",
|
||||
"placements": [
|
||||
"agent",
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "stats",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "health",
|
||||
"label": "运行检查",
|
||||
"description": "检查技能运行环境。",
|
||||
"placements": [
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "health",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "version",
|
||||
"label": "查看版本",
|
||||
"description": "返回技能版本。",
|
||||
"placements": [
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "version",
|
||||
"args": []
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "config-path",
|
||||
"label": "查看配置位置",
|
||||
"description": "返回用户 .env 路径。",
|
||||
"placements": [
|
||||
"skill-detail"
|
||||
],
|
||||
"executionProfile": "sync",
|
||||
"entrypoint": {
|
||||
"type": "cli",
|
||||
"command": "config-path",
|
||||
"args": []
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user