@spaceflow/review 0.75.0 → 0.77.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.
@@ -147,6 +147,8 @@ export interface ReviewResult {
147
147
  summary: FileSummary[];
148
148
  deletionImpact?: DeletionImpactResult;
149
149
  round: number; // 当前 review 的轮次
150
+ /** 最后一次审查时的 head commit SHA */
151
+ headSha?: string;
150
152
  /** 问题统计信息 */
151
153
  stats?: ReviewStats;
152
154
  }
@@ -91,6 +91,14 @@ export interface ReviewOptions {
91
91
  * - false: 不自动批准(默认)
92
92
  */
93
93
  autoApprove?: boolean;
94
+ /**
95
+ * 存在未解决问题时以非零退出码退出(工作流抛出异常)
96
+ * - 'off': 禁用(默认),即使有问题也正常退出
97
+ * - 'warn': 有未解决的 warn 级别问题时抛出异常
98
+ * - 'error': 有未解决的 error 级别问题时抛出异常
99
+ * - 'warn+error': 有未解决的 warn 或 error 级别问题时抛出异常
100
+ */
101
+ failOnIssues?: "off" | "warn" | "error" | "warn+error";
94
102
  }
95
103
 
96
104
  /** review 命令配置 schema(LLM 敏感配置由系统 llm.config.ts 管理) */
@@ -114,6 +122,7 @@ export const reviewSchema = () =>
114
122
  invalidateChangedFiles: invalidateChangedFilesSchema.default("invalidate").optional(),
115
123
  skipDuplicateWorkflow: z.boolean().default(false).optional(),
116
124
  autoApprove: z.boolean().default(false).optional(),
125
+ failOnIssues: z.enum(["off", "warn", "error", "warn+error"]).default("off").optional(),
117
126
  });
118
127
 
119
128
  /** review 配置类型(从 schema 推导) */