phasegate 0.32.0 → 0.39.0
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.
- package/CHANGELOG.md +87 -1
- package/README.ja.md +498 -660
- package/README.md +8 -11
- package/docs/folder_management_rules.md +251 -0
- package/package.json +3 -1
- package/scripts/delegate-sonnet.sh +105 -0
- package/scripts/harness/main.ts +92 -7
- package/scripts/harness/setup/skill-deployer.ts +99 -0
- package/skills/environment-designer/SKILL.md +1 -1
- package/skills/implementation-planner/SKILL.md +1 -1
- package/skills/it-test-designer/SKILL.md +3 -3
- package/skills/it-test-logic-designer/SKILL.md +2 -2
- package/skills/mock-designer/SKILL.md +1 -1
- package/skills/scenario-test-designer/SKILL.md +3 -3
- package/skills/scenario-test-logic-designer/SKILL.md +2 -2
- package/skills/story-mapper/SKILL.md +1 -1
- package/skills/story-writer/SKILL.md +1 -1
- package/skills/unit-designer/SKILL.md +1 -1
- package/skills/unit-test-designer/SKILL.md +3 -3
- package/skills/unit-test-logic-designer/SKILL.md +2 -2
- package/templates/.claude/settings.json +3 -3
- package/templates/.husky/pre-commit +1 -1
- package/templates/phasegate.config.json +0 -30
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,88 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.39.0] - 2026-04-18
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- `main.ts` の `loadStoryReflectionProvider` (scripts/harness/main.ts:271) と `loadResolvedConfig` (scripts/harness/main.ts:326) の `catch` が広すぎ、`phasegate.config.json` の `SyntaxError`(JSON パース失敗)や I/O エラーを silent に握り潰していた問題を修正。`ENOENT`(ファイル未作成)は従来どおり silent return、それ以外は stderr に `Warning: phasegate.config.json is not valid JSON: ...` 等を出してから null/undefined を返す。CLI の後続処理は続行する(`ConfigValidationError` の exit(2) 挙動は維持)。
|
|
15
|
+
- `scripts/harness/__tests__/e2e/cli-harness.test.ts` に回帰テストを2件追加(壊れた JSON 警告・ENOENT silent)
|
|
16
|
+
|
|
17
|
+
### Migration Notes
|
|
18
|
+
|
|
19
|
+
利用者側の対応は不要。`phasegate.config.json` が壊れていた場合、これまで静かに storyReflection 関連表示・preset 解決だけが消えていたのが、stderr に警告が出るようになる。JSON 消費側(CI スクリプト等)は stdout のみパースしている限り影響なし。
|
|
20
|
+
|
|
21
|
+
## [0.38.0] - 2026-04-18
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- `phasegate:status --json` 出力が JSON.parse 不可だったバグを修正。`storyReflection: ...` という非 JSON 行が JSON 出力の後ろに無条件で追記されていた(`scripts/harness/main.ts:709` で `printStoryReflectionStatusLine` を `--json` フラグに関わらず呼び出していたため)。修正後は `--json` 時のみ抑止する。利用者からの FB により発覚。
|
|
26
|
+
|
|
27
|
+
### Migration Notes
|
|
28
|
+
|
|
29
|
+
利用者側の対応は不要。`phasegate:status` を JSON 消費する側(CI スクリプト等)で `JSON.parse(stdout)` が成功するようになる。人間向け(フラグなし)出力には引き続き `storyReflection` 行が表示される。
|
|
30
|
+
|
|
31
|
+
## [0.37.0] - 2026-04-17
|
|
32
|
+
|
|
33
|
+
### Removed
|
|
34
|
+
|
|
35
|
+
- `templates/phasegate.config.json` を削除(ISSUE-004 Phase D / P2-6)。`initHarnessConfig()` は `skill-deployer.ts` 内でインライン構築しており、テンプレートファイルは `npm publish` に含まれるのみで誰にも読まれない dead code だった。
|
|
36
|
+
|
|
37
|
+
### Fixed
|
|
38
|
+
|
|
39
|
+
- 6 スキル本文の `docs/principles/testing_rules.md`(アンダースコア)参照を正しい `docs/principles/testing-rules.md`(ハイフン)に修正(ISSUE-004 Phase D / 観察事項)。対象: unit-test-designer, it-test-designer, scenario-test-designer, unit-test-logic-designer, it-test-logic-designer, scenario-test-logic-designer
|
|
40
|
+
|
|
41
|
+
### Migration Notes
|
|
42
|
+
|
|
43
|
+
利用者側の対応は不要。`templates/phasegate.config.json` は v0.33.0〜v0.36.0 時点でも実際の `init` 生成物とは内容が異なり、参照されていなかった。スキル本文のリンク切れ修正は純粋なドキュメント修正で、動作への影響なし。
|
|
44
|
+
|
|
45
|
+
## [0.36.0] - 2026-04-17
|
|
46
|
+
|
|
47
|
+
### Added
|
|
48
|
+
|
|
49
|
+
- `phasegate init` が設計原則ドキュメント(`docs/principles/*.md`、`docs/folder_management_rules.md`)を導入PJの `docs/` 配下に自動配置するように(ISSUE-004 Phase C / P1-4)
|
|
50
|
+
- `phasegate init --with-husky` オプション — `.husky/pre-commit` フック(`npx phasegate pre-commit` 呼び出し)を任意配置(ISSUE-004 Phase C / P1-5)
|
|
51
|
+
- `setup/skill-deployer.ts` に `deployDesignDocs()` `deployHuskyHook()` 関数を追加
|
|
52
|
+
- `__tests__/integration/setup/init-design-docs.integration.test.ts` — `init` の docs/husky 配置を検証する IT テスト(8 ケース)
|
|
53
|
+
|
|
54
|
+
### Changed
|
|
55
|
+
|
|
56
|
+
- README.md / README.ja.md の Quick Start から手動 `cp` 手順(旧 §3)を削除し、§2 の `init` 説明に「設計原則ドキュメントも配置される」旨を追記
|
|
57
|
+
- `phasegate --help` の Setup セクション `init` 行に `--with-husky` を追記、説明を「deploy skills + design docs + phasegate.config.json」に更新
|
|
58
|
+
|
|
59
|
+
### Migration Notes
|
|
60
|
+
|
|
61
|
+
既に `init` を実行済みのプロジェクトでも、もう一度 `npx phasegate init` を実行すれば不足している設計原則ドキュメントだけが追加配置されます(既存ファイルは上書きされません)。`.husky/pre-commit` を追加したい場合は `npx phasegate init --with-husky` を実行してください。
|
|
62
|
+
|
|
63
|
+
## [0.35.0] - 2026-04-17
|
|
64
|
+
|
|
65
|
+
### Added
|
|
66
|
+
|
|
67
|
+
- `phasegate hook <pre-tool-use|post-tool-use|stop>` サブコマンド — Claude Code hook を CLI 経由で起動(ISSUE-004 Phase B)
|
|
68
|
+
- `phasegate pre-commit` サブコマンド — L2 pre-commit バリデータを CLI 経由で起動
|
|
69
|
+
- `phasegate delegate-sonnet [...args]` サブコマンド — Sonnet 4.6 委任スクリプトを CLI 経由で起動
|
|
70
|
+
|
|
71
|
+
### Changed
|
|
72
|
+
|
|
73
|
+
- `templates/.claude/settings.json` の hook command を `npx tsx node_modules/phasegate/scripts/...` から `npx phasegate hook X` 形式に変更(パッケージ内部レイアウトに依存しない安定 API へ)
|
|
74
|
+
- `templates/.husky/pre-commit` を `npx phasegate pre-commit` 呼び出しに変更
|
|
75
|
+
- 12 スキル本文の `scripts/delegate-sonnet.sh` 直接参照を `npx phasegate delegate-sonnet` に統一(story-writer, story-mapper, environment-designer, unit-designer, mock-designer, unit-test-designer, unit-test-logic-designer, scenario-test-designer, scenario-test-logic-designer, it-test-designer, it-test-logic-designer, implementation-planner)
|
|
76
|
+
|
|
77
|
+
### Migration Notes
|
|
78
|
+
|
|
79
|
+
既存の `.claude/settings.json`(`init` 既存スキップ仕様により旧形式が残る)を v0.35.0 形式に更新する場合、3 箇所の hook command を以下に書き換えてください:
|
|
80
|
+
|
|
81
|
+
```diff
|
|
82
|
+
- "npx tsx node_modules/phasegate/scripts/harness/agent-integration/presentation/pre-tool-use-hook.ts"
|
|
83
|
+
+ "npx phasegate hook pre-tool-use"
|
|
84
|
+
- "npx tsx node_modules/phasegate/scripts/harness/agent-integration/presentation/post-tool-use-hook.ts"
|
|
85
|
+
+ "npx phasegate hook post-tool-use"
|
|
86
|
+
- "npx tsx node_modules/phasegate/scripts/harness/agent-integration/presentation/stop-hook.ts"
|
|
87
|
+
+ "npx phasegate hook stop"
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
旧形式は引き続き動作しますが、パッケージ内部パスに依存するため将来非推奨化する可能性があります。
|
|
91
|
+
|
|
10
92
|
## [0.10.0] - 2026-04-02
|
|
11
93
|
|
|
12
94
|
### Removed
|
|
@@ -94,7 +176,11 @@ Pre-reset era (formerly v1.0.0 - v1.1.1). Initial release and early bug fixes:
|
|
|
94
176
|
- ajv v8互換対応
|
|
95
177
|
- 3件のバグ修正
|
|
96
178
|
|
|
97
|
-
[Unreleased]: https://github.com/junpei-9898/phasegate/compare/v0.
|
|
179
|
+
[Unreleased]: https://github.com/junpei-9898/phasegate/compare/v0.38.0...HEAD
|
|
180
|
+
[0.38.0]: https://github.com/junpei-9898/phasegate/compare/v0.37.0...v0.38.0
|
|
181
|
+
[0.37.0]: https://github.com/junpei-9898/phasegate/compare/v0.36.0...v0.37.0
|
|
182
|
+
[0.36.0]: https://github.com/junpei-9898/phasegate/compare/v0.35.0...v0.36.0
|
|
183
|
+
[0.35.0]: https://github.com/junpei-9898/phasegate/compare/v0.10.0...v0.35.0
|
|
98
184
|
[0.10.0]: https://github.com/junpei-9898/phasegate/compare/v0.9.0...v0.10.0
|
|
99
185
|
[0.9.0]: https://github.com/junpei-9898/phasegate/compare/v0.8.0...v0.9.0
|
|
100
186
|
[0.8.0]: https://github.com/junpei-9898/phasegate/compare/v0.7.0...v0.8.0
|