@grada-run/grada 0.40.14 → 0.40.15

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/cli.js CHANGED
@@ -128,11 +128,11 @@ if (wantsVersion) {
128
128
  } else if (positionalArgs[0] === 'secrets' && positionalArgs[1] === 'push') {
129
129
  const envFile = positionalArgs[2] || '.env';
130
130
  const projectName = path.basename(process.cwd());
131
- runCommand(pushSecrets(envFile, projectName, { isHeadless, region: parseRegionFlag(rawArgs) }));
131
+ runCommand(pushSecrets(envFile, projectName, { ...(isHeadless ? { isHeadless: true } : {}), region: parseRegionFlag(rawArgs) }));
132
132
  } else if (positionalArgs[0] === 'secrets' && positionalArgs[1] === 'pull') {
133
133
  const envFile = positionalArgs[2] || '.env';
134
134
  const projectName = path.basename(process.cwd());
135
- runCommand(pullSecrets(envFile, projectName, { isHeadless, region: parseRegionFlag(rawArgs) }));
135
+ runCommand(pullSecrets(envFile, projectName, { ...(isHeadless ? { isHeadless: true } : {}), region: parseRegionFlag(rawArgs) }));
136
136
  } else if (positionalArgs[0] === 'secrets' && positionalArgs[1] === 'audit') {
137
137
  const envFile = positionalArgs[2] || '.env';
138
138
  const projectName = path.basename(process.cwd());
@@ -178,7 +178,7 @@ if (wantsVersion) {
178
178
  } else if (positionalArgs[0] === 'telemetry') {
179
179
  runCommand(runTelemetry({ subcommand: positionalArgs[1], ...(isHeadless ? { isHeadless: true } : {}) }));
180
180
  } else if (positionalArgs[0] === undefined || positionalArgs[0] === 'init') {
181
- runCommand(mainStack({ isHeadless, isPreconfigured, headlessOptions, initOptions }));
181
+ runCommand(mainStack({ ...(isHeadless ? { isHeadless: true } : {}), isPreconfigured, headlessOptions, initOptions }));
182
182
  } else {
183
183
  // Unknown input must never scaffold: a typo is not an init request.
184
184
  console.error(`\n✖ Unknown command "${positionalArgs[0]}".`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@grada-run/grada",
3
- "version": "0.40.14",
3
+ "version": "0.40.15",
4
4
  "description": "Provision production-ready AWS infrastructure and CI/CD pipelines in seconds.",
5
5
  "engines": {
6
6
  "node": ">=18.0.0"
@@ -862,6 +862,7 @@ async function mainStackMain(input = {}) {
862
862
  trackEvent('project_provisioned', {
863
863
  // 1. Core & Context
864
864
  projectName: dirConfig.actualProjectName,
865
+ success: true, // funnel outcome: failures emit success:false via failCommand
865
866
  cli_version: CLI_VERSION,
866
867
  is_headless: isHeadless,
867
868
  setup_mode: config.setupType,
@@ -236,7 +236,7 @@ export async function runLambdaStatus(input = {}) {
236
236
 
237
237
  if (!health.healthy) {
238
238
  console.log(color.yellow(DEGRADED_MESSAGE));
239
- await trackFailure('status_run', { projectName, healthy: false, degraded: true });
239
+ await trackFailure('status_run', { projectName, healthy: false, degraded: true, reason: 'degraded' });
240
240
  if (options.watchMode) return { ...payload, watchMode: true };
241
241
  const diagnosis = await runDiagnose({ cwd, region });
242
242
  await failCommand({ exitCode: 1, noExit });
@@ -352,7 +352,7 @@ export async function runStaticStatus(input = {}) {
352
352
 
353
353
  if (!healthy) {
354
354
  console.log(color.yellow(` Distribution is ${distribution.Status} — CloudFront changes propagate in a few minutes.\n`));
355
- await trackFailure('status_run', { projectName, healthy: false, degraded: true });
355
+ await trackFailure('status_run', { projectName, healthy: false, degraded: true, reason: 'degraded' });
356
356
  if (options.watchMode) return { ...payload, watchMode: true };
357
357
  await failCommand({ exitCode: 1, noExit });
358
358
  return payload;
@@ -543,7 +543,7 @@ async function runStatusMain(input = {}) {
543
543
 
544
544
  if (!health.healthy) {
545
545
  console.log(color.yellow(DEGRADED_MESSAGE));
546
- await trackFailure('status_run', { projectName, healthy: false, degraded: true });
546
+ await trackFailure('status_run', { projectName, healthy: false, degraded: true, reason: 'degraded' });
547
547
  if (options.watchMode) return { ...payload, watchMode: true };
548
548
  const diagnosis = await runDiagnose({ cluster, region, logGroup });
549
549
  await failCommand({ exitCode: 1, noExit });