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

+6 -1
View File
@@ -16,6 +16,7 @@ import { handleWorkflowTailCommand } from "./tail.js";
import { handleWorkflowLintScript, handleWorkflowEvalScript } from "./script.js";
import { handleWorkflowEnum } from "./enum.js";
import { handleWebhookCommand } from "./webhook.js";
import { handleWorkflowLink } from "./link.js";
export async function handleWorkflowCommand(
parsed: CliParsedArgs,
@@ -121,10 +122,14 @@ export async function handleWorkflowCommand(
case "webhook-send":
case "webhooks":
return handleWebhookCommand(parsed, runtime);
case "link":
case "url":
case "web":
return handleWorkflowLink(parsed, runtime);
default:
return {
stdout: "",
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, refresh-chooses, history, logs, job, diff, diff-job, check, test, copy, create, delete, node, tail, lint-script, eval-script, enum, webhook\n`,
stderr: `未知 workflow 子命令: ${action}。支持: list, get, find, analyze, toggle, publish, patch, save, refresh-chooses, history, logs, job, diff, diff-job, check, test, copy, create, delete, node, tail, lint-script, eval-script, enum, webhook, link\n`,
exitCode: 1,
};
}