@timekast/factory 1.18.0 → 1.20.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.
@@ -21,6 +21,12 @@ import { pushEnvPlan, vercelProjectPath, VercelApiError, } from '../lib/vercel-e
21
21
  // Re-exported so existing importers (and `cli/tests/unit/env-push.test.ts`) keep
22
22
  // resolving PROVISION_OWNED from this module after it moved to `lib/env-file.js`.
23
23
  export { PROVISION_OWNED };
24
+ /**
25
+ * Post-push notice: freshly uploaded env vars stay INERT until the next Vercel
26
+ * deployment (stale-config window — see BOOT-010). Printed only after a
27
+ * successful push with at least one real change (created or updated).
28
+ */
29
+ export const REDEPLOY_NOTICE = 'ℹ️ Las variables aplican en el próximo deployment — redeploya el proyecto en Vercel para que tomen efecto.';
24
30
  export function parseEnvPushFlags(argv) {
25
31
  return { dryRun: argv.includes('--dry-run') };
26
32
  }
@@ -114,6 +120,9 @@ export async function runEnvPush(flags, rootDir = process.cwd()) {
114
120
  const result = await pushEnvPlan(projectId, token, teamId, plan);
115
121
  console.log(`✔ env push: ${result.created.length} creadas, ${result.updated.length} actualizadas ` +
116
122
  '(production, preview).');
123
+ if (result.created.length > 0 || result.updated.length > 0) {
124
+ console.log(REDEPLOY_NOTICE);
125
+ }
117
126
  }
118
127
  catch (error) {
119
128
  if (error instanceof VercelApiError) {