Commit Graph
4 Commits
Author SHA1 Message Date
sswandClaude 3f1cb3a03b feat(dacli): JNPF7 验证闭环 Stage 0 + P0-6 preview + workflow canvas 回归修复
Stage 0 (验证基础设施):
- 5 层验证工具链 (tools/) + JSON Schema + validate-baseline.sh CI gate
- P0-9: components-whitelist.yaml 单一来源 + parseFlowXml 消漂移 (create.ts tag 改消费 component-map.json)
- E-2: docs/components.md 文档化 6 个 pass-through 组件
- P1-16: validate-baseline 接入 quality-gate.sh
- L3 回归测试 (bs117 / bpmn-bs / antipattern-output) + mock LLM 库

P0-6 (user-in-the-loop):
- form create --ai --preview: 提交前渲染字段表格 (CJK 对齐) + TTY 交互确认 (_preview.ts)

workflow canvas 回归修复 (v0.22+ SSW 迁移引入):
- parseFlowXml 命名空间无关 (flowNodes 缺口)
- _autoLayout 无 DI 时合成完整 BPMNDiagram+Shape+Edge + bpmn2 归一化 (canvas 缺口)
- 真实后端 + 浏览器设计器验证画布渲染; 详见 jnpf7-analysis §14

quality-gate 全绿: tsc 0 · vitest 483 · doc:check · baseline L1-L5

Co-Authored-By: Claude <[email protected]>
2026-07-27 12:49:44 +08:00
sswandClaude fc16d93114 test(fixtures): restore tests/fixtures/plan.md (deleted in d982753, tests still ref it)
doc-md-slice.test.ts reads this fixture; cleanup commit removed the file but
left 7 tests referencing it → they fell back to placeholder and failed.
Restored from d982753^. doc-md-slice now 14/14 green. Honest fix (test always
needed this asset), not fake-green.

Co-Authored-By: Claude <[email protected]>
2026-07-24 09:50:39 +08:00
sswandClaude d982753739 chore(tests): 清理 6 过期/1 业务/2 .DS_Store (9 文件)
用户反馈 2026-07-07: 'dacli/tests 文件夹很乱, 是不是很多业务性或过期的'

清理 (4 步法#1 系统分类):
  6 过期 (v0.15+ SSW fallback + _buildformdata.ts 已替代):
    - test-ai-refactored.ts (1.1KB, _ai.ts 重构临时验证)
    - test-direct-ai-call.ts (6.2KB, 直连 AI 测试, 已被 SSW 替代)
    - test-direct-ai-jnpf-prompt.ts (8.7KB, GEN_MODEL_QUETION 验证, 已被 SSW 替代)
    - test-e2e-direct-ai-buildformdata.ts (8.5KB, 业务特定 - jxcj app)
    - test-import-buildformdata.mjs (2.6KB, 自写#/路径替换, 已被 _buildformdata.ts 替代)
    - test-import-buildformdata.ts (4.3KB, 同上)
  1 业务特定 (jxcj):
    - fixtures/plan.md (数据要素人工智能创新大赛管理平台, jxcj app 业务)
  2 macOS 临时:
    - .DS_Store (tests/ + tests/e2e/)

保留 (通用 dacli 能力测试):
  - test-kb.ts (KB 闭环, 5.3KB)
  - unit/ (25 文件, 单元测试)
  - integration/ (4 文件 + 我加的 audit/)
  - e2e/ (15+ 文件, 含 _helpers/ + step-machine/)

Co-Authored-By: Claude <[email protected]>
2026-07-07 15:39:09 +08:00
ssw 237e0c8556 feat(doc): v0.12+ 支持 .md section 切片 (按 ## 切, id=标题)
- _parser.ts 加 parseMarkdownSections (按 ^## 切分, H1 作前言附加到首 section)
- cache key 加 stripKey 后缀, 避免 stripMermaid=true/false 串扰
- list.ts 扫 .md/.markdown, 跳 screenshots/test_logs/assets/_assets
- 4 个命令 description 改 HTML/MD

配套: ssw-h5dev-flow v0.12+ plan/debug/research 走 MD, 子代理切片读
token 减半, 不再回退到 Read 整个文件 (踩 R1 反模式)

测试: tests/unit/doc-md-slice.test.ts 14/14 PASS (HTML 回归 9/9 PASS)
2026-06-29 12:23:13 +08:00