coderifts 1.8.4 → 1.9.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/bin/coderifts.js +17 -0
- package/dist/cli.js +3274 -8
- package/package.json +2 -1
package/bin/coderifts.js
CHANGED
|
@@ -25,6 +25,23 @@ program
|
|
|
25
25
|
await diff(oldSpec, newSpec, options);
|
|
26
26
|
});
|
|
27
27
|
|
|
28
|
+
// ── deploy-gate command (deploy-gate #8, phase-1 ADVISORY) ──
|
|
29
|
+
// Gates a deploy on the current { environment, artifact } via a preflight receipt. Phase 1 is
|
|
30
|
+
// advisory: it reports but exits 0 even on deny unless the step is marked --enforce /
|
|
31
|
+
// CODERIFTS_DEPLOY_ENFORCE=true. Composes the validated pure deployGate (@coderifts/agent-guard).
|
|
32
|
+
program
|
|
33
|
+
.command('deploy-gate')
|
|
34
|
+
.description('Gate a deploy on the current { environment, artifact } using a preflight receipt (phase-1 advisory)')
|
|
35
|
+
.option('--env <environment>', 'Target environment (e.g. production, staging)')
|
|
36
|
+
.option('--artifact <artifact_id>', 'Immutable artifact identity being deployed (content digest or commit SHA)')
|
|
37
|
+
.option('--receipt <file>', 'Path to the deploy-scoped receipt JSON produced by preflight')
|
|
38
|
+
.option('--json', 'Output the binding result as JSON')
|
|
39
|
+
.option('--enforce', 'Treat the step as enforcing: attest ENFORCING and exit non-zero on a gate failure')
|
|
40
|
+
.action(async (options) => {
|
|
41
|
+
const { runDeployGate } = require('../src/commands/deploy-gate');
|
|
42
|
+
await runDeployGate(options);
|
|
43
|
+
});
|
|
44
|
+
|
|
28
45
|
// ── init command ──
|
|
29
46
|
program
|
|
30
47
|
.command('init [template]')
|