feat(workflow): 新增系统出站消息规则与日志透视命令

- 在 `domains/platform/workflow/transport/outbound/` 接入合思 `api/outbound/v1/message` 与 `api/outbound/v1/message/messageLog` 接口;
- 在 `domains/platform/workflow/services.ts` 暴露 `getOutboundMessages` 与 `queryOutboundMessageLogs` 服务门面;
- 新增 `hose-use workflow outbound (list|logs)` 命令与别名支持;
- 在 `command-metadata.ts` 补齐对应子命令与 `--sn`、`--message-type`、`--start`、`--offset` 等参数校验契约;
- 补齐单元测试并通过全量单测与类型检查。
This commit is contained in:
gitea committed 2026-11-10 18:15:12 +08:00
1 parent e7e856bbb0
commit 020e4a2761
8 files changed
+273 -4

No files matched your search

+9 -3
View File
@@ -277,8 +277,10 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
"lint-script": "静态检查 JavaScript / MVEL 脚本",
"eval-script": "在本地沙箱中模拟执行脚本",
"webhook": "向工作流 Webhook 触发器发送测试数据 (别名: webhook-send)",
"link": "生成工作流设计器 (Piper) 免密直达链接 (包含特权警告)"
"link": "生成工作流设计器 (Piper) 免密直达链接 (包含特权警告)",
"outbound": "查询合思系统出站消息规则与投递日志 (list|logs)"
},
"options": [
"--flow=<单号> 指定测试单据",
"--file=<workflow.json> 指定工作流快照",
@@ -333,9 +335,13 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
"webhook-send": "webhook",
"webhooks": "webhook",
"url": "link",
"web": "link"
"web": "link",
"outbounds": "outbound",
"outbound-message": "outbound"
},
flags: { ...flagList("all allow-prod allow-production auto-publish autoPublish compare detail diff empty errors f fail fail-on-alert failOnAlert failed failed-only failedOnly follow force force-write forceWrite full has-error hasError in-place inPlace includeDetail is-test json none once publish snapshot v value-json valueJson verbose with-tasks withTasks timeline progress steps", "boolean"), ...flagList("a admin-key adminKey after app app-id appId b bill body c choose-serialization code code-file container count d data desc description display display-name displayName end-time endTime entity execution-logs field file filter flow flow-code flowCode from i id input input-file insert-after interval job job-id job1 job2 jobA jobB jobId json-file keyword l label limit log logs mapping mapping-file max-jobs maxJobs n name node node-id nodeId nodes output output-file outputFile p page page-size pageSize parent parent-id parentId password path payload pipeline pipeline-id pipelineId platform platform-id platformId pwd q query record s sample sample-id sampleId seconds set size sleep-time sleepTime snapshot1 snapshot2 snapshotA snapshotB source start-time startTime state state-file stateFile t target targetName targetPlatformId task taskType third-id thirdId timeout timeout-ms timeoutMs to trigger type types value workflowId", "value") }
flags: { ...flagList("all allow-prod allow-production auto-publish autoPublish compare detail diff empty errors f fail fail-on-alert failOnAlert failed failed-only failedOnly follow force force-write forceWrite full has-error hasError in-place inPlace includeDetail is-test json none once publish snapshot v value-json valueJson verbose with-tasks withTasks timeline progress steps", "boolean"), ...flagList("a admin-key adminKey after app app-id appId b bill body c choose-serialization code code-file container count d data desc description display display-name displayName end-time endTime entity execution-logs field file filter flow flow-code flowCode from i id input input-file insert-after interval job job-id job1 job2 jobA jobB jobId json-file keyword l label limit log logs mapping mapping-file max-jobs maxJobs message-type n name node node-id nodeId nodes offset output output-file outputFile p page page-size pageSize parent parent-id parentId password path payload pipeline pipeline-id pipelineId platform platform-id platformId pwd q query record s sample sample-id sampleId seconds set size sleep-time sleepTime sn snapshot1 snapshot2 snapshotA snapshotB source start start-time startTime state state-file stateFile t target targetName targetPlatformId task taskType third-id thirdId timeout timeout-ms timeoutMs to trigger type types value workflowId", "value") }
},
"bill": {
"summary": "单据检索、表单规格诊断与审批动作",