@pushpalsdev/cli 1.0.84 → 1.0.86

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.
@@ -150,7 +150,14 @@ file_modifying_jobs = ["task.execute"]
150
150
  output_max_chars = 196608
151
151
  output_max_lines = 600
152
152
  output_max_head_lines = 120
153
- quality_max_auto_revisions = 1
153
+ quality_max_auto_revisions = 3
154
+ quality_validation_max_auto_revisions = 3
155
+ quality_scope_gate_enabled = true
156
+ quality_validation_gate_enabled = true
157
+ quality_critic_gate_enabled = true
158
+ quality_publish_gate_enabled = true
159
+ # Browser/e2e validation commands get a longer built-in floor (10m) because they
160
+ # may need to start a dev server and run browser automation.
154
161
  quality_validation_step_timeout_ms = 180000
155
162
  quality_critic_timeout_ms = 45000
156
163
  quality_soft_pass_on_exhausted = true
@@ -66,7 +66,14 @@ file_modifying_jobs = ["task.execute"]
66
66
  output_max_chars = 196608
67
67
  output_max_lines = 600
68
68
  output_max_head_lines = 120
69
- quality_max_auto_revisions = 1
69
+ quality_max_auto_revisions = 3
70
+ quality_validation_max_auto_revisions = 3
71
+ quality_scope_gate_enabled = true
72
+ quality_validation_gate_enabled = true
73
+ quality_critic_gate_enabled = true
74
+ quality_publish_gate_enabled = true
75
+ # Browser/e2e validation commands get a longer built-in floor (10m) because they
76
+ # may need to start a dev server and run browser automation.
70
77
  quality_validation_step_timeout_ms = 180000
71
78
  quality_critic_timeout_ms = 45000
72
79
  quality_soft_pass_on_exhausted = true
@@ -14,7 +14,7 @@ const DEFAULT_CONFIG_DIR = "configs";
14
14
  const TRUTHY = new Set(["1", "true", "yes", "on"]);
15
15
  const FALSY = new Set(["0", "false", "no", "off"]);
16
16
  const DEFAULT_WORKERPALS_QUALITY_CRITIC_MIN_SCORE = 8;
17
- const DEFAULT_WORKERPALS_QUALITY_MAX_AUTO_REVISIONS = 1;
17
+ const DEFAULT_WORKERPALS_QUALITY_MAX_AUTO_REVISIONS = 3;
18
18
  const DEFAULT_WORKERPALS_FILE_MODIFYING_JOBS = ["task.execute"];
19
19
  const DEFAULT_WORKERPALS_OUTPUT_MAX_CHARS = 192 * 1024;
20
20
  const DEFAULT_WORKERPALS_OUTPUT_MAX_LINES = 600;
@@ -210,6 +210,11 @@ export interface PushPalsConfig {
210
210
  outputMaxLines: number;
211
211
  outputMaxHeadLines: number;
212
212
  qualityMaxAutoRevisions: number;
213
+ qualityValidationMaxAutoRevisions: number;
214
+ qualityScopeGateEnabled: boolean;
215
+ qualityValidationGateEnabled: boolean;
216
+ qualityCriticGateEnabled: boolean;
217
+ qualityPublishGateEnabled: boolean;
213
218
  qualityValidationStepTimeoutMs: number;
214
219
  qualityCriticTimeoutMs: number;
215
220
  qualitySoftPassOnExhausted: boolean;
@@ -931,6 +936,17 @@ export function loadPushPalsConfig(options: LoadOptions = {}): PushPalsConfig {
931
936
  ),
932
937
  ),
933
938
  );
939
+ const workerQualityValidationMaxAutoRevisions = Math.max(
940
+ 0,
941
+ Math.min(
942
+ 10,
943
+ asInt(
944
+ parseIntEnv("WORKERPALS_QUALITY_VALIDATION_MAX_AUTO_REVISIONS") ??
945
+ workerNode.quality_validation_max_auto_revisions,
946
+ DEFAULT_WORKERPALS_QUALITY_MAX_AUTO_REVISIONS,
947
+ ),
948
+ ),
949
+ );
934
950
  const workerFileModifyingJobs = (() => {
935
951
  const envRaw = firstNonEmpty(process.env.WORKERPALS_FILE_MODIFYING_JOBS);
936
952
  const parsed = envRaw
@@ -990,6 +1006,18 @@ export function loadPushPalsConfig(options: LoadOptions = {}): PushPalsConfig {
990
1006
  const workerQualitySoftPassOnExhausted =
991
1007
  parseBoolEnv("WORKERPALS_QUALITY_SOFT_PASS_ON_EXHAUSTED") ??
992
1008
  asBoolean(workerNode.quality_soft_pass_on_exhausted, true);
1009
+ const workerQualityScopeGateEnabled =
1010
+ parseBoolEnv("WORKERPALS_QUALITY_SCOPE_GATE_ENABLED") ??
1011
+ asBoolean(workerNode.quality_scope_gate_enabled, true);
1012
+ const workerQualityValidationGateEnabled =
1013
+ parseBoolEnv("WORKERPALS_QUALITY_VALIDATION_GATE_ENABLED") ??
1014
+ asBoolean(workerNode.quality_validation_gate_enabled, true);
1015
+ const workerQualityCriticGateEnabled =
1016
+ parseBoolEnv("WORKERPALS_QUALITY_CRITIC_GATE_ENABLED") ??
1017
+ asBoolean(workerNode.quality_critic_gate_enabled, true);
1018
+ const workerQualityPublishGateEnabled =
1019
+ parseBoolEnv("WORKERPALS_QUALITY_PUBLISH_GATE_ENABLED") ??
1020
+ asBoolean(workerNode.quality_publish_gate_enabled, true);
993
1021
  const workerQualityCriticMinScore = (() => {
994
1022
  const configThresholdRaw =
995
1023
  workerNode.quality_critic_min_score == null
@@ -2032,6 +2060,11 @@ export function loadPushPalsConfig(options: LoadOptions = {}): PushPalsConfig {
2032
2060
  outputMaxLines: workerOutputMaxLines,
2033
2061
  outputMaxHeadLines: workerOutputMaxHeadLines,
2034
2062
  qualityMaxAutoRevisions: workerQualityMaxAutoRevisions,
2063
+ qualityValidationMaxAutoRevisions: workerQualityValidationMaxAutoRevisions,
2064
+ qualityScopeGateEnabled: workerQualityScopeGateEnabled,
2065
+ qualityValidationGateEnabled: workerQualityValidationGateEnabled,
2066
+ qualityCriticGateEnabled: workerQualityCriticGateEnabled,
2067
+ qualityPublishGateEnabled: workerQualityPublishGateEnabled,
2035
2068
  qualityValidationStepTimeoutMs: workerQualityValidationStepTimeoutMs,
2036
2069
  qualityCriticTimeoutMs: workerQualityCriticTimeoutMs,
2037
2070
  qualitySoftPassOnExhausted: workerQualitySoftPassOnExhausted,