@wyxos/zephyr 0.4.2 → 0.4.3
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/README.md
CHANGED
|
@@ -87,6 +87,8 @@ If Zephyr would normally prompt to:
|
|
|
87
87
|
|
|
88
88
|
then non-interactive mode stops immediately with a clear error instead.
|
|
89
89
|
|
|
90
|
+
For Laravel app deployments, `--maintenance on|off` overrides the maintenance prompt when you want an explicit choice instead of an interactive confirm.
|
|
91
|
+
|
|
90
92
|
## AI Agents and Automation
|
|
91
93
|
|
|
92
94
|
Zephyr can be used safely by Codex, CI jobs, or other automation once configuration is already in place.
|
package/package.json
CHANGED
|
@@ -253,17 +253,17 @@ async function resolveMaintenanceMode({
|
|
|
253
253
|
return snapshot.maintenanceModeEnabled
|
|
254
254
|
}
|
|
255
255
|
|
|
256
|
-
if (executionMode
|
|
257
|
-
if (typeof executionMode.maintenanceMode !== 'boolean') {
|
|
258
|
-
throw new ZephyrError(
|
|
259
|
-
'Zephyr cannot run this Laravel deployment non-interactively without an explicit maintenance-mode decision. Pass --maintenance on or --maintenance off.',
|
|
260
|
-
{code: 'ZEPHYR_MAINTENANCE_FLAG_REQUIRED'}
|
|
261
|
-
)
|
|
262
|
-
}
|
|
263
|
-
|
|
256
|
+
if (typeof executionMode.maintenanceMode === 'boolean') {
|
|
264
257
|
return executionMode.maintenanceMode
|
|
265
258
|
}
|
|
266
259
|
|
|
260
|
+
if (executionMode?.interactive === false) {
|
|
261
|
+
throw new ZephyrError(
|
|
262
|
+
'Zephyr cannot run this Laravel deployment non-interactively without an explicit maintenance-mode decision. Pass --maintenance on or --maintenance off.',
|
|
263
|
+
{code: 'ZEPHYR_MAINTENANCE_FLAG_REQUIRED'}
|
|
264
|
+
)
|
|
265
|
+
}
|
|
266
|
+
|
|
267
267
|
if (typeof runPrompt !== 'function') {
|
|
268
268
|
return false
|
|
269
269
|
}
|
package/src/cli/options.mjs
CHANGED
|
@@ -34,7 +34,7 @@ export function parseCliOptions(args = process.argv.slice(2)) {
|
|
|
34
34
|
.option('--preset <name>', 'Preset name to use for non-interactive app deployments.')
|
|
35
35
|
.option('--resume-pending', 'Resume a saved pending deployment snapshot without prompting.')
|
|
36
36
|
.option('--discard-pending', 'Discard a saved pending deployment snapshot without prompting.')
|
|
37
|
-
.option('--maintenance <mode>', 'Laravel maintenance mode policy for
|
|
37
|
+
.option('--maintenance <mode>', 'Laravel maintenance mode policy for app deployments (on|off).')
|
|
38
38
|
.option('--skip-git-hooks', 'Bypass local git hooks for any commits and pushes Zephyr performs.')
|
|
39
39
|
.option('--skip-tests', 'Skip test execution in package release workflows.')
|
|
40
40
|
.option('--skip-lint', 'Skip lint execution in package release workflows.')
|