@xulthekl/team-flow 0.56.0 → 0.56.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
- # team-flow v0.56.0 | 阶段: {{state}} | 工作流: {{workflow}}
1
+ # team-flow v0.56.1 | 阶段: {{state}} | 工作流: {{workflow}}
2
2
  当前阶段允许的操作由 workflow-start 路由规则定义。
3
3
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
@@ -9,7 +9,7 @@
9
9
  {
10
10
  "name": "team-flow",
11
11
  "description": "8-state spec workflow + compound global compounding + architecture-design (4A/DDD) + local HTML prototype + product-level orchestration + bootstrap + e2e + session handoff + workflow feedback + independent business analysis. 26 skills + 17 agents with embedded TDD, SDD, code review, debugging, delta spec sync, and design-system-driven prototyping.",
12
- "version": "0.56.0",
12
+ "version": "0.56.1",
13
13
  "source": "./",
14
14
  "author": {
15
15
  "name": "LT",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.56.0",
3
+ "version": "0.56.1",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking) + business-analysis (independent requirement/scenario artifact) + design-system (design tokens + component contract + AI primer + showcase) + test-strategy (test strategy design) + project-initialize (new service onboarding). 26 skills + 17 agents, one install.",
5
5
  "source": "./",
6
6
  "author": {
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.56.0",
3
+ "version": "0.56.1",
4
4
  "description": "Spec-first workflow that bridges OpenSpec-style planning and Superpowers-style execution discipline.",
5
5
  "author": {
6
6
  "name": "MageByte",
@@ -5,7 +5,7 @@
5
5
  },
6
6
  "metadata": {
7
7
  "description": "Unified workflow plugin marketplace for Cursor (team-flow: team-flow + compound + architecture-design + prototype).",
8
- "version": "0.56.0"
8
+ "version": "0.56.1"
9
9
  },
10
10
  "plugins": [
11
11
  {
@@ -2,7 +2,7 @@
2
2
  "name": "team-flow",
3
3
  "displayName": "team-flow",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking) + business-analysis (independent requirement/scenario artifact). 26 skills + 17 agents, one install.",
5
- "version": "0.56.0",
5
+ "version": "0.56.1",
6
6
  "author": {
7
7
  "name": "LT",
8
8
  "url": "https://github.com/LT"
@@ -6,13 +6,13 @@
6
6
  },
7
7
  "metadata": {
8
8
  "description": "Unified workflow plugins and skills for AI coding agents (team-flow: team-flow + compound + architecture-design + prototype).",
9
- "version": "0.56.0"
9
+ "version": "0.56.1"
10
10
  },
11
11
  "plugins": [
12
12
  {
13
13
  "name": "team-flow",
14
14
  "description": "Unified workflow with planning artifacts, execution contracts, TDD, review gates, systematic debugging, delta spec sync, architecture-design, independent business analysis, and local HTML prototyping.",
15
- "version": "0.56.0",
15
+ "version": "0.56.1",
16
16
  "source": ".",
17
17
  "author": {
18
18
  "name": "LT",
package/CHANGELOG.md CHANGED
@@ -4,6 +4,25 @@ All notable changes to `team-flow` will be documented in this file.
4
4
 
5
5
  The format loosely follows Keep a Changelog.
6
6
 
7
+ ## [0.56.1] - 2026-09-12
8
+
9
+ ### Fixed(v0.56.0 自身引入的回归 + P1.5 第一轮暴露的遗漏;**升级优先于 0.56.0**)
10
+
11
+ 来源:v0.56.0 的 P1.5 **完整档 3 轮**对抗验证第一轮(事实核查 / 反方辩护 / 场景遍历三路独立代理)。三路共暴露 51 条断言级核查 + 8 类场景缺口 + 5 项设计缺陷,本版仅处置其中**确定性的代码缺陷**;设计缺陷需修订 `docs/plan/compound-lifecycle-governance-design.md`(**v1.0 → v2.0 修订进行中,尚未落档**),不属本版范围。
12
+
13
+ - **`tf test-merge` baselines 命名失配(v0.56.0 引入,危害高于其修复的原缺陷)**:v0.56.0 把 slug 规则从 `[^a-z0-9-]`(逐字符替换、不去首尾)换成 `slugify()`(保留 CJK、折叠连续、**去首尾分隔符**)。而 baselines 的 `moduleName` 形如 `DemoHome(demo-ui,medium)`,**恒以全角 `)` 结尾** ⇒ 旧规则产出的文件名恒以 `-` 结尾(`demohome-demo-ui-medium-.md`),新规则会去掉尾 `-` ⇒ **既有文件全部失配**(emp-auth 实测 **67/67**)⇒ 每个模块新建一份、目录翻倍。修法:新增 `resolveBaselinePath()` **双查找**——新 slug 优先 → 旧 slug 回退 → 都不存在才按新规则新建;命中旧命名文件**原地更新**(不强制改名,批量改名属 P1 的稳定 `module_id` + `--rekey` 范畴)。
14
+ - **PHASES 单一真相源未做全(v0.56.0 遗留)**:`tests/lib/solutions-index-gen.test.mjs` 仍内联 7 项枚举(`'prd','plan','prototype','spec','build','review','cross-phase'`,缺 `architecture`)并把缺陷**固化为期望行为**(用例名 `scans all 7 phase directories`)。此为 PHASES 的第 3 份副本——v0.56.0 只收敛了 2 个生产消费点,测试侧漏改。修法:改为从 `solutions-phases.mjs` 导入。
15
+
16
+ ### Added
17
+
18
+ - **枚举副本防漂移机械预防**(`tests/lib/solutions-phases.test.mjs`):断言模板与文档中仍需列出的 phase 副本(`templates/learnings.md` 注释、`AGENTS.md` 目录树、`three-tier-index.md` 目录树)均覆盖 `SOLUTION_PHASES` 全部取值。背景:PHASES 历史上存在 **4 处**定义且相互矛盾,代码侧已收敛,文档侧用本组用例守护同步(支持"每 phase 一行"与"单行列全"两种排版)。
19
+ - `test-merge.test.mjs` 新增「兼容旧 slug 命名」用例;`solutions-phases.test.mjs` 新增 3 条防漂移用例。
20
+
21
+ ### 验证
22
+
23
+ - 全量测试 **1112/1112 通过**(基线 1108,+4)
24
+ - **变异验证**(本轮已按事实核查建议留痕于设计文档附录 A.2):去掉 `resolveBaselinePath` 的 legacy 回退 → 中文命名回归用例失败;从模板删 `architecture` → 防漂移用例失败并精确报出缺失项
25
+
7
26
  ## [0.56.0] - 2026-09-12
8
27
 
9
28
  ### Fixed(复利产物文件名退化 + 索引丢条目;来源:emp-auth 复利膨胀调查)
package/GEMINI.md CHANGED
@@ -8,7 +8,7 @@ The workflow is self-contained and does not require OpenSpec or Superpowers at r
8
8
 
9
9
 
10
10
  <!-- team-flow-phase-guard-start -->
11
- # team-flow v0.56.0 | 阶段: {{state}} | 工作流: {{workflow}}
11
+ # team-flow v0.56.1 | 阶段: {{state}} | 工作流: {{workflow}}
12
12
  当前阶段允许的操作由 workflow-start 路由规则定义。
13
13
  禁止跨越 DP gate 进入下一阶段。变更范围以 execution-contract.md 的 Intent Lock 为准。
14
14
  <!-- team-flow-phase-guard-end -->
package/INSTALL.md CHANGED
@@ -7,7 +7,7 @@
7
7
  - [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec) — 规划引擎(Schema 验证、Delta Spec、工件解析)
8
8
  - [obra/superpowers](https://github.com/obra/superpowers) — 执行纪律(TDD 铁律、SDD、系统化调试、代码审查)
9
9
 
10
- 当前发布版本:**v0.56.0**。
10
+ 当前发布版本:**v0.56.1**。
11
11
 
12
12
  ---
13
13
 
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # team-flow
2
2
 
3
- > 当前版本:`v0.56.0`
3
+ > 当前版本:`v0.56.1`
4
4
 
5
5
  > 统一插件:**team-flow**(spec 驱动开发)+ **compound-engineering 核心子集**(全局复利)+ **architecture-design**(4A+DDD 增量设计)+ **prototype**(本地 HTML 原型)+ **e2e**(AC 驱动 E2E)+ **workflow-orchestrator**(产品级编排)+ **workflow-bootstrap**(既有项目接入)。一次安装,七套能力协同。
6
6
 
package/docs/README_en.md CHANGED
@@ -126,7 +126,7 @@ npm install -g team-flow
126
126
 
127
127
  ### Version
128
128
 
129
- - Current: `v0.56.0`
129
+ - Current: `v0.56.1`
130
130
  - v0.9.1 highlights: DP-4 execution-mode recommendations, a portable runtime across 17 platforms, and a raw-package smoke with no plugin-root variable.
131
131
  - Self-contained — no OpenSpec or Superpowers runtime required
132
132
  - Upstream: [Fission-AI/OpenSpec](https://github.com/Fission-AI/OpenSpec), [obra/superpowers](https://github.com/obra/superpowers)
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
3
  "description": "Unified workflow plugin: team-flow (spec-driven dev) + compound-engineering core subset + architecture-design (4A/DDD) + prototype (local HTML) + business-analysis (independent requirement/scenario artifact). 26 skills, one install.",
4
- "version": "0.56.0",
4
+ "version": "0.56.1",
5
5
  "contextFileName": "GEMINI.md"
6
6
  }
@@ -1,11 +1,11 @@
1
1
  #!/usr/bin/env bash
2
- # v0.56.0: auto-sync CLI version with plugin version
2
+ # v0.56.1: auto-sync CLI version with plugin version
3
3
  set -e
4
4
 
5
5
  # ═══════════════════════════════════════════════════════════════
6
6
  # Plugin version (update this when releasing new versions)
7
7
  # ═══════════════════════════════════════════════════════════════
8
- PLUGIN_VERSION="0.56.0"
8
+ PLUGIN_VERSION="0.56.1"
9
9
 
10
10
  # ═══════════════════════════════════════════════════════════════
11
11
  # Step 1: Auto-sync CLI version with plugin version
package/llms.txt CHANGED
@@ -3,7 +3,7 @@
3
3
  ## Overview
4
4
  spec-superflow is a self-contained workflow integration plugin for Claude Code, Cursor, OpenAI Codex CLI/App, GitHub Copilot CLI, Gemini CLI, OpenCode, WorkBuddy, and Trae. It merges spec-driven planning artifacts (proposal, specs, design, tasks) with disciplined execution guardrails (TDD, review gates, controlled handoff) into one unified workflow.
5
5
 
6
- Current version: v0.56.0.
6
+ Current version: v0.56.1.
7
7
 
8
8
  ## Key Documents
9
9
  - README.md: Chinese homepage with full usage guide and FAQ
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xulthekl/team-flow",
3
- "version": "0.56.0",
3
+ "version": "0.56.1",
4
4
  "description": "Unified plugin (26 skills + 17 agents) integrating team-flow, compound-engineering, architecture-design, prototype, design-system, workflow-orchestrator, workflow-bootstrap, e2e, session-handoff, workflow-feedback, business-analysis for multi-agent coding tools.",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/plugin.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "team-flow",
3
- "version": "0.56.0",
3
+ "version": "0.56.1",
4
4
  "description": "Unified workflow plugin: team-flow (spec-driven dev: TDD/SDD/code-review/debugging) + compound-engineering core subset (brainstorm/plan/compound/strategy/ideate/proof, global compounding) + architecture-design (4A+DDD incremental design & global compounding) + prototype (local HTML prototype, zero external deps) + e2e (Playwright E2E, AC-driven) + workflow-orchestrator (product-level workflow orchestration) + workflow-bootstrap (existing project onboarding) + session-handoff (context transfer) + workflow-feedback (issue tracking) + business-analysis (independent requirement/scenario artifact) + design-system (design tokens + component contract + AI primer + showcase) + test-strategy (test strategy design) + project-initialize (new service onboarding). 26 skills + 17 agents, one install.",
5
5
  "author": {
6
6
  "name": "LT"
@@ -184,6 +184,32 @@ function extractDeferredItems(content) {
184
184
  return items;
185
185
  }
186
186
 
187
+ /** v0.56.0 之前的 slug 规则(仅供**读取既有文件**时回退匹配;新写入一律走 `slugify`) */
188
+ function legacySlug(moduleName) {
189
+ return String(moduleName ?? '').toLowerCase().replace(/[^a-z0-9-]/g, '-');
190
+ }
191
+
192
+ /**
193
+ * 解析既有 baseline 路径——兼容 v0.56.0 之前的命名规则。
194
+ *
195
+ * 背景(2026-09-12,v0.56.0 回归修复):v0.56.0 把 slug 规则从 `legacySlug`
196
+ * (逐字符替换、不去首尾)换成 `slugify`(保留 CJK、折叠连续、去首尾分隔符)。
197
+ * 而 baselines 的 moduleName 形如 `DemoHome(demo-ui,medium)`,**恒以全角 `)` 结尾**
198
+ * ⇒ 旧规则产出的文件名恒以 `-` 结尾(`demohome-demo-ui-medium-.md`),新规则会去掉尾 `-`
199
+ * ⇒ 既有文件**全部失配**(emp-auth 实测 67/67)⇒ 每个模块新建一份、目录翻倍。
200
+ *
201
+ * 故读取时双查找:新 slug 优先 → 旧 slug 回退 → 都不存在才按新规则新建。
202
+ * 命中旧命名文件后**原地更新**(保持旧名,不强制改名)——批量改名属 P1 的
203
+ * 稳定 `module_id` + `--rekey` 迁移范畴(见 `docs/plan/compound-lifecycle-governance-design.md` §4.3)。
204
+ */
205
+ function resolveBaselinePath(baselinesDir, moduleName) {
206
+ const next = join(baselinesDir, `${slugify(moduleName)}.md`);
207
+ if (existsSync(next)) return next;
208
+ const legacy = join(baselinesDir, `${legacySlug(moduleName)}.md`);
209
+ if (existsSync(legacy)) return legacy;
210
+ return next;
211
+ }
212
+
187
213
  /**
188
214
  * Step 2: mergeBaselines — 增量合并到 baselines/{module}.md
189
215
  * dryRun(feedback 2026-08-05):仅计算不写盘,返回 would-create/would-update 预览
@@ -199,9 +225,9 @@ export function mergeBaselines(ledgerDir, changeName, moduleSections, candidateL
199
225
 
200
226
  for (const [moduleName, sectionContent] of Object.entries(moduleSections)) {
201
227
  // 统一走 slug.mjs(保留 CJK)——原 `[^a-z0-9-]` 逐字符替换会把中文标题退化成纯短横线,
202
- // 实证 emp-auth `baselines/--------------------.md`(2026-09-12)
203
- const safeName = slugify(moduleName);
204
- const baselinePath = join(baselinesDir, `${safeName}.md`);
228
+ // 实证 emp-auth `baselines/--------------------.md`(2026-09-12);
229
+ // 路径解析经 resolveBaselinePath 双查找,兼容 v0.56.0 之前的旧命名存量
230
+ const baselinePath = resolveBaselinePath(baselinesDir, moduleName);
205
231
  const moduleCandidates = candidateLedger.filter(c =>
206
232
  c.candidate.toLowerCase().includes(moduleName.toLowerCase())
207
233
  );