@lunora/cli 1.0.0-alpha.71 → 1.0.0-alpha.73

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.
@@ -1,5 +1,5 @@
1
1
  import { runCodegen } from '@lunora/codegen';
2
- import { validateWranglerProject, inferLunoraBindings, reconcileWranglerBindings } from '@lunora/config';
2
+ import { validateWranglerProject, inferLunoraBindings, reconcileWranglerBindings, reconcileWranglerCompatibilityDate } from '@lunora/config';
3
3
  import { p as parseApiSpec } from '../packem_shared/api-spec-Bx0iKbxA.mjs';
4
4
  import { r as renderCodegenFailure } from '../packem_shared/codegen-error-DJG-ghs_.mjs';
5
5
  import { d as defineHandler } from '../packem_shared/command-lYnl4QyF.mjs';
@@ -19,6 +19,17 @@ const provisionBindings = async (cwd, logger) => {
19
19
  const message = error instanceof Error ? error.message : String(error);
20
20
  logger.warn(`binding inference skipped: ${message}`);
21
21
  }
22
+ try {
23
+ const reconciled = reconcileWranglerCompatibilityDate(cwd);
24
+ if (reconciled.changed) {
25
+ logger.success(
26
+ `bumped compatibility_date to ${reconciled.date ?? "unknown"} (Workers Cache enabled) → ${reconciled.wranglerPath ?? "wrangler.jsonc"}`
27
+ );
28
+ }
29
+ } catch (error) {
30
+ const message = error instanceof Error ? error.message : String(error);
31
+ logger.warn(`compatibility date sync skipped: ${message}`);
32
+ }
22
33
  };
23
34
  const runPrepareCommand = async (options) => {
24
35
  const cwd = options.cwd ?? process.cwd();
@@ -1,6 +1,6 @@
1
1
  import { existsSync, readFileSync } from 'node:fs';
2
2
  import { runCodegen, discoverMigrations } from '@lunora/codegen';
3
- import { readLinkedProject, writeLinkedProject, validateWranglerProject, inferLunoraBindings, reconcileWranglerBindings, DEV_VARS_FILE, parseDevVariableEntries, isMintableSecretKey, findWranglerFile, readWranglerJsonc, discoverContainerInfo, packageNamesFromBindings, requiredSecrets, generateSecretValue } from '@lunora/config';
3
+ import { readLinkedProject, writeLinkedProject, validateWranglerProject, inferLunoraBindings, reconcileWranglerBindings, reconcileWranglerCompatibilityDate, DEV_VARS_FILE, parseDevVariableEntries, isMintableSecretKey, findWranglerFile, readWranglerJsonc, discoverContainerInfo, packageNamesFromBindings, requiredSecrets, generateSecretValue } from '@lunora/config';
4
4
  import { join } from '@visulima/path';
5
5
  import { Spinner } from '@visulima/spinner';
6
6
  import { Project } from 'ts-morph';
@@ -195,6 +195,17 @@ const provisionBindings = async (cwd, logger) => {
195
195
  const message = error instanceof Error ? error.message : String(error);
196
196
  logger.warn(`binding inference skipped: ${message}`);
197
197
  }
198
+ try {
199
+ const reconciled = reconcileWranglerCompatibilityDate(cwd);
200
+ if (reconciled.changed) {
201
+ logger.success(
202
+ `bumped compatibility_date to ${reconciled.date ?? "unknown"} (Workers Cache enabled) → ${reconciled.wranglerPath ?? "wrangler.jsonc"}`
203
+ );
204
+ }
205
+ } catch (error) {
206
+ const message = error instanceof Error ? error.message : String(error);
207
+ logger.warn(`compatibility date sync skipped: ${message}`);
208
+ }
198
209
  };
199
210
  const warnDevVariablesNotPushed = (cwd, logger) => {
200
211
  const devVariablesPath = join(cwd, DEV_VARS_FILE);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/cli",
3
- "version": "1.0.0-alpha.71",
3
+ "version": "1.0.0-alpha.73",
4
4
  "description": "The Lunora CLI: init, dev, deploy, codegen, run, reset, and migrate commands",
5
5
  "keywords": [
6
6
  "agent-skills",
@@ -52,12 +52,12 @@
52
52
  },
53
53
  "dependencies": {
54
54
  "@bomb.sh/tab": "0.0.16",
55
- "@lunora/codegen": "1.0.0-alpha.34",
56
- "@lunora/config": "1.0.0-alpha.56",
55
+ "@lunora/codegen": "1.0.0-alpha.36",
56
+ "@lunora/config": "1.0.0-alpha.58",
57
57
  "@lunora/container": "1.0.0-alpha.7",
58
58
  "@lunora/d1": "1.0.0-alpha.24",
59
59
  "@lunora/errors": "1.0.0-alpha.2",
60
- "@lunora/seed": "1.0.0-alpha.17",
60
+ "@lunora/seed": "1.0.0-alpha.18",
61
61
  "@visulima/cerebro": "3.0.0-alpha.32",
62
62
  "@visulima/error": "6.0.0-alpha.34",
63
63
  "@visulima/fs": "5.0.0-alpha.32",