@zhuan-ai/zhuanspec 2.11.10 → 2.11.11

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,6 +1,7 @@
1
1
  import { promises as fs } from 'fs';
2
2
  import path from 'path';
3
3
  import { FileSystemUtils } from '../utils/file-system.js';
4
+ import { setPhase } from '../utils/phase-utils.js';
4
5
  import { codeReviewResultCheck, unitTestResultCheck, specConsistencyResultCheck, generateReviewReport, } from '../core/hooks/review-hooks.js';
5
6
  export class ReviewCommand {
6
7
  async execute(changeName, options) {
@@ -52,6 +53,13 @@ export class ReviewCommand {
52
53
  process.exitCode = 1;
53
54
  return;
54
55
  }
56
+ // Transition phase: apply -> review (updates progress.phase / phaseTransitions / phaseDurations)
57
+ try {
58
+ await setPhase(changeDir, 'review');
59
+ }
60
+ catch (err) {
61
+ console.warn(`⚠️ Failed to update progress.phase to 'review': ${err instanceof Error ? err.message : String(err)}`);
62
+ }
55
63
  // Read hook results and generate report
56
64
  const codeReviewResult = await codeReviewResultCheck(changeName);
57
65
  const unitTestResult = await unitTestResultCheck(changeName);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zhuan-ai/zhuanspec",
3
- "version": "2.11.10",
3
+ "version": "2.11.11",
4
4
  "description": "AI-native system for spec-driven development",
5
5
  "keywords": [
6
6
  "zhuanspec",