feat(workflow): 新增 workflow link 免密直达命令并补齐 108 个官方节点模型

1. 工作流设计器免密直达命令 (workflow link / url / web):
   - 接入合思 EASO Realm 动态换取三段式 JWT 凭证;
   - 自动解析目标工作流所属企业、员工身份与自建应用平台名称;
   - 包含高特权安全警告、有效期限与一键点击直达链接;
   - 支持结构化 --json 输出。
2. 节点原子模型 108 个全量覆盖:
   - 新增 trigger.ts (18 触发器)、integration.ts (第三方与定制数据)、invoice-tmc.ts (发票与差旅)、requisition.ts (事项与易商卡);
   - 统一由 models/nodes/index.ts 导出并重新生成 specs/workflow-schema.json,实现官方 108 个节点 100% 强类型覆盖。
3. 质量与文档保障:
   - 补充 workflow link 单元测试并通过全量 968 项测试与 tsc 校验;
   - 更新 README 文档与 command-metadata 注册表。
This commit is contained in:
gitea committed 2026-11-03 10:55:51 +08:00
1 parent c620f9ccfb
commit f033c66147
16 files changed
+8716 -44

No files matched your search

+5 -2
View File
@@ -221,7 +221,8 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
"enum": "查询在线枚举字典(不可用时使用内置字典)",
"lint-script": "静态检查 JavaScript / MVEL 脚本",
"eval-script": "在本地沙箱中模拟执行脚本",
"webhook": "向工作流 Webhook 触发器发送测试数据 (别名: webhook-send)"
"webhook": "向工作流 Webhook 触发器发送测试数据 (别名: webhook-send)",
"link": "生成工作流设计器 (Piper) 免密直达链接 (包含特权警告)"
},
"options": [
"--flow=<单号> 指定测试单据",
@@ -274,7 +275,9 @@ export const COMMAND_METADATA: Record<string, CliCommandMetadata> = {
"dictionary": "enum",
"dict": "enum",
"webhook-send": "webhook",
"webhooks": "webhook"
"webhooks": "webhook",
"url": "link",
"web": "link"
},
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 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 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") }
},