phasegate 0.70.0 → 0.71.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 +11 -0
- package/package.json +1 -1
- package/scripts/harness/agent-integration/infrastructure/adapters/harness-config-config-query-adapter.ts +1 -1
- package/scripts/harness/ci-governance/application/dto/create-baseline-output.ts +2 -2
- package/scripts/harness/ci-governance/application/usecases/create-baseline-usecase.ts +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,17 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [0.71.0] - 2026-04-22
|
|
11
|
+
|
|
12
|
+
### Changed (breaking-ish)
|
|
13
|
+
|
|
14
|
+
- ISSUE-007 Wave 6 — `baseline.enabled` の default を `false` → **`true`** に変更。ISSUE-007 の趣旨(retrofit 導入時の摩擦解消)と整合させるため。`.phasegate/baseline.json` が存在しないプロジェクトでは従来通り何も grandfather されない(`ci-governance-baseline-grandfather-adapter.ts` が defensive に early-return する)ため、新規プロジェクトへの影響なし。`baseline` をオフにしたい場合は `phasegate.config.json` に `baseline.enabled: false` を明示。
|
|
15
|
+
- `npx phasegate baseline --dry-run --json` の出力キーを `entries` → `files` に変更(保存ファイル `.phasegate/baseline.json` のキー `files` と整合)。同時に `CreateBaselineOutput.entries` → `CreateBaselineOutput.files` にリネーム。`.phasegate/baseline.json` 自体のオンディスク形式は変更なし。
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- dogfooding で判明していた「`npx phasegate init` → `npx phasegate baseline` の 2 手を踏んでも pre-tool-use hook で grandfather が効かない」問題を解消(上記の `enabled` default 変更により)。
|
|
20
|
+
|
|
10
21
|
## [0.70.0] - 2026-04-22
|
|
11
22
|
|
|
12
23
|
### Added
|
package/package.json
CHANGED
|
@@ -124,7 +124,7 @@ export class HarnessConfigConfigQueryAdapter implements ConfigQueryPort {
|
|
|
124
124
|
const config = this.loadConfig();
|
|
125
125
|
const baseline = config.baseline ?? {};
|
|
126
126
|
return {
|
|
127
|
-
enabled: baseline.enabled ??
|
|
127
|
+
enabled: baseline.enabled ?? true,
|
|
128
128
|
path: baseline.path ?? '.phasegate/baseline.json',
|
|
129
129
|
};
|
|
130
130
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// @unit ci-governance
|
|
2
2
|
// @layer application
|
|
3
3
|
|
|
4
|
-
export interface
|
|
4
|
+
export interface CreateBaselineOutputFile {
|
|
5
5
|
readonly path: string;
|
|
6
6
|
readonly sha1: string;
|
|
7
7
|
}
|
|
@@ -11,5 +11,5 @@ export interface CreateBaselineOutput {
|
|
|
11
11
|
readonly entryCount: number;
|
|
12
12
|
readonly dryRun: boolean;
|
|
13
13
|
readonly overwriteBlocked: boolean;
|
|
14
|
-
readonly
|
|
14
|
+
readonly files: readonly CreateBaselineOutputFile[];
|
|
15
15
|
}
|
|
@@ -52,7 +52,7 @@ export class CreateBaselineUseCase {
|
|
|
52
52
|
entryCount: 0,
|
|
53
53
|
dryRun: false,
|
|
54
54
|
overwriteBlocked: true,
|
|
55
|
-
|
|
55
|
+
files: [],
|
|
56
56
|
};
|
|
57
57
|
}
|
|
58
58
|
|
|
@@ -71,7 +71,7 @@ export class CreateBaselineUseCase {
|
|
|
71
71
|
entries,
|
|
72
72
|
});
|
|
73
73
|
|
|
74
|
-
const
|
|
74
|
+
const outputFiles = entries.map((e) => ({ path: e.path, sha1: e.sha1 }));
|
|
75
75
|
|
|
76
76
|
if (dryRun) {
|
|
77
77
|
return {
|
|
@@ -79,7 +79,7 @@ export class CreateBaselineUseCase {
|
|
|
79
79
|
entryCount: snapshot.entryCount,
|
|
80
80
|
dryRun: true,
|
|
81
81
|
overwriteBlocked: false,
|
|
82
|
-
|
|
82
|
+
files: outputFiles,
|
|
83
83
|
};
|
|
84
84
|
}
|
|
85
85
|
|
|
@@ -89,7 +89,7 @@ export class CreateBaselineUseCase {
|
|
|
89
89
|
entryCount: snapshot.entryCount,
|
|
90
90
|
dryRun: false,
|
|
91
91
|
overwriteBlocked: false,
|
|
92
|
-
|
|
92
|
+
files: outputFiles,
|
|
93
93
|
};
|
|
94
94
|
}
|
|
95
95
|
}
|