2 Commits
Author SHA1 Message Date
admin f9899ea207 feat: TDS × SSWFLOW 胶水全 V0–V1.4 落地 + DB 0813 v2 导出
V0 触发链 + 回调链(架构原承诺「SSWFLOW 被合约驱动调用」)
- tds/ContractSswflowTrigger: 合约双签 → 解析 f_policy_content.sswflowFlowId → SswflowClient.startRun → 回写 f_flow_run_id
- sswflow/FlowRunInternalController: /Internal/Start 白名单 App-Code (tds/tdc)
- sswflow/TdsCallbackClient + tds/RunCallbackService: 终态回调 → tds_chain_evidence (bizType=SSW_FLOW_RUN_FINISH)

V1.1 合约触发 + V1.2 dataset 同步 + V1.3 对账调度 + V1.4 TDC 直触发
- tds/DataProductDatasetSyncer: 上架 → /Dataset/Internal/Sync 按 f_external_ref='tds:dataProduct:<id>' upsert
- tds/FlowRunReconciliationScheduler: @Scheduled cron 扫合约漏单 → SswflowClient.getRun → 终态写 ledger + f_quota_used++
- tdc/DeliveryTaskController + TdcSswflowClient: /TriggerFlow 走 Internal/Start (trigger=DELIVERY_DIRECT,绕合约)

3 个 migration(必须按 V1.4→V1.5→V1.1 顺序跑)
- boot/db/tds/V1.4.0__tds_contract_flow_run_id.sql: tds_contract.f_flow_run_id + idx
- boot/db/tds/V1.5.0__tds_billing_ledger_run_id.sql: tds_billing_ledger.f_run_id + idx
- boot/db/sswflow/V1.1.0__dataset_external_ref.sql: dataset.f_external_ref + unique idx

配置 + 文档
- application.yml: exclude-url 加 Dataset/Internal/** + ssw.reconciliation 默认 + ssw.tds.callback.*
- docs/tds/SSWFLOW_BINDING.md: §10 V1.1–V1.4 全标 ✅
- docs/db/0813/{sswflow,tds,tdc,j7}/: schema 含新字段
2026-08-13 16:38:01 +08:00
admin b7264b485e feat(sswflow): FlowEditor 画布运行态可视化 + DB 0813 导出
- FlowEditor.vue: 新增 trackRun 轮询 + applyRunStateToNodes/Edges,
  节点徽标/进度/脉冲/边框色 + 连线 animated/颜色/CSS dasharray 流动
- SswNode.vue: 状态徽标 + 进度条 + 脉冲边框
- RunStatus.vue / RunMonitor.vue: 实时日志面板(cursor 改 0 / nextSeq 判空)
- api/sswflow.ts: events() 仅 when afterSeq 有效才写入 params(fix afterSeq=undefined → 400)
- demo-risk-control.mjs: 截图等待逻辑适配
- docs/db/0813/{sswflow,tdc,tds,j7}/: schema-only / app-config-only 双策略导出
  (run_event 1563 → 2382)
2026-08-13 11:39:07 +08:00