Logo

GitLab

Sign in

朱子纯 / erp-workflow-plugin

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • Snippets
  • erp-workflow-plugin
  • lib
  • req-ledger.mjs
  • req-ledger: 跟踪 prototype/ 原型快照——修复 add-req 检测不到原型变动 ...
    bc9f593a
    add-req 的变更检测只哈希 docs/01 REQ 卡片与 docs/08 §三 FE 行文字,从不读
    prototype/,而原型才是前端布局/页面/交互的权威。改原型但 FE 行文字不变时
    台账无变化 → Router 跳过前端 → 原型改动永不重编。
    
    - req-ledger.mjs:collectProtoUnit 把全部 prototype/**/*.html 聚成单一
      __prototype__ 单元(kind=proto),relpath 归一+排序保证跨平台哈希稳定;
      无 .html 不产生该单元。接入 computeUnits。
    - add-req SKILL:步骤 1 说明 kind=proto + 老项目升级建基线语义;步骤 5 新增
      proto 作废分支(删全部 req-done/FE-* + milestone/frontend-phase + 复位
      §三里程碑,整体重跑前端阶段);横幅与 frontmatter 同步。
    - README:lib 说明加 prototype。
    - 测试:新增两用例证明改/删原型内容能被 diff 识别(FE 行文字不变也检测到)。
    
    Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
    yanghl authored
    2026-06-18 09:27:45 +0800  
    Browse Code »
req-ledger.mjs 10.1 KB
Raw History Permalink

Download (10.1 KB)