@lunora/config 1.0.0-alpha.2 → 1.0.0-alpha.4

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/dist/index.mjs CHANGED
@@ -2,19 +2,19 @@ export { AGENT_RULES_DIR, AGENT_RULES_HINT, AGENT_RULES_HINT_ENV, LUNORA_SKILL_N
2
2
  export { discoverContainerInfo } from './packem_shared/discoverContainerInfo-BXFs6Wav.mjs';
3
3
  export { detectFramework } from './packem_shared/detectFramework-Br-BcPBq.mjs';
4
4
  export { DEV_VARS_EXAMPLE_FILE, DEV_VARS_FILE, DEV_VARS_KEY_PATTERN, parseDevVariableEntries } from './packem_shared/DEV_VARS_EXAMPLE_FILE-dJPNTEnK.mjs';
5
- export { inferLunoraBindings, packageNamesFromBindings } from './packem_shared/inferLunoraBindings-0W3eRdIP.mjs';
5
+ export { inferLunoraBindings, packageNamesFromBindings } from './packem_shared/inferLunoraBindings-XNJH4pup.mjs';
6
6
  export { LINKED_PROJECT_DIR, LINKED_PROJECT_FILE, readLinkedProject, writeLinkedProject } from './packem_shared/LINKED_PROJECT_DIR-CXwXzV_C.mjs';
7
- export { LUNORA_EVENT_SOURCE, formatLunoraEvent } from './packem_shared/formatLunoraEvent-D2fDeGB6.mjs';
7
+ export { LUNORA_EVENT_SOURCE, formatLunoraEvent } from './packem_shared/LUNORA_EVENT_SOURCE-D2fDeGB6.mjs';
8
8
  export { PACKAGE_SECRETS_REGISTRY, secretsForPackages } from './packem_shared/PACKAGE_SECRETS_REGISTRY-CySy5vR_.mjs';
9
- export { LUNORA_CONFIG_FILE, interpretRemote, readProjectRemotePreference } from './packem_shared/interpretRemote-CtcIcB5-.mjs';
9
+ export { LUNORA_CONFIG_FILE, interpretRemote, readProjectRemotePreference } from './packem_shared/LUNORA_CONFIG_FILE-CtcIcB5-.mjs';
10
10
  export { createConfirm, isInteractive, promptMultiSelect, promptSelect, promptYesNo } from './packem_shared/createConfirm-fvpdgJ9s.mjs';
11
- export { reconcileWranglerBindings } from './packem_shared/reconcileWranglerBindings-ByJk3yLU.mjs';
12
- export { REMOTE_ELIGIBLE_KEYS, injectRemoteFlags, isRemoteEnvEnabled, materializeRemoteWranglerConfig, planRemoteBindings, resolveRemoteEnabled } from './packem_shared/injectRemoteFlags-C-WZAKLY.mjs';
11
+ export { reconcileWranglerBindings } from './packem_shared/reconcileWranglerBindings-DTHmqTbL.mjs';
12
+ export { REMOTE_ELIGIBLE_KEYS, injectRemoteFlags, isRemoteEnvEnabled, materializeRemoteWranglerConfig, planRemoteBindings, resolveRemoteEnabled } from './packem_shared/REMOTE_ELIGIBLE_KEYS-BC7_e9Bz.mjs';
13
13
  export { buildPackageSecretsBlock, ensureDevVariables, ensureDevVarsExample, isPlaceholderValue, planDevVariablesAugment, planDevVariablesScaffold } from './packem_shared/buildPackageSecretsBlock-S74dgmwy.mjs';
14
14
  export { applyAdditiveEdit, classifyEdit } from './packem_shared/applyAdditiveEdit-C-snTFEV.mjs';
15
15
  export { parseSchema } from './packem_shared/parseSchema-DSeyktvG.mjs';
16
16
  export { classifyPolicyEdit, scaffoldPolicyFile, wireRlsIntoProcedure } from './packem_shared/classifyPolicyEdit-BHeAqF8P.mjs';
17
17
  export { discoverSchemaInfo } from './packem_shared/discoverSchemaInfo-DWtypqpP.mjs';
18
18
  export { discoverWorkflowInfo } from './packem_shared/discoverWorkflowInfo-CedvR0mn.mjs';
19
- export { WRANGLER_FILES, findWranglerFile, readWranglerJsonc } from './packem_shared/findWranglerFile-DwSuC-Kn.mjs';
20
- export { REQUIRED_COMPATIBILITY_DATE, REQUIRED_FLAG, validateWrangler, validateWranglerConfig, validateWranglerProject, withTailConsumer } from './packem_shared/REQUIRED_COMPATIBILITY_DATE-Dd1suoit.mjs';
19
+ export { WRANGLER_FILES, findWranglerFile, readWranglerJsonc } from './packem_shared/WRANGLER_FILES-DwSuC-Kn.mjs';
20
+ export { REQUIRED_COMPATIBILITY_DATE, REQUIRED_FLAG, validateWrangler, validateWranglerConfig, validateWranglerProject, withTailConsumer } from './packem_shared/REQUIRED_COMPATIBILITY_DATE-ycqievRl.mjs';
@@ -1,6 +1,6 @@
1
1
  import { writeFileSync, rmSync } from 'node:fs';
2
2
  import { modify, applyEdits } from 'jsonc-parser';
3
- import { findWranglerFile, readWranglerJsonc } from './findWranglerFile-DwSuC-Kn.mjs';
3
+ import { findWranglerFile, readWranglerJsonc } from './WRANGLER_FILES-DwSuC-Kn.mjs';
4
4
  import { join } from 'node:path';
5
5
 
6
6
  const FORMATTING = { formattingOptions: { insertSpaces: true, tabSize: 4 } };
@@ -1,7 +1,7 @@
1
1
  import { existsSync } from 'node:fs';
2
2
  import { dirname, join } from 'node:path';
3
3
  import { discoverSchemaInfo } from './discoverSchemaInfo-DWtypqpP.mjs';
4
- import { findWranglerFile, readWranglerJsonc } from './findWranglerFile-DwSuC-Kn.mjs';
4
+ import { findWranglerFile, readWranglerJsonc } from './WRANGLER_FILES-DwSuC-Kn.mjs';
5
5
 
6
6
  const REQUIRED_COMPATIBILITY_DATE = "2026-04-07";
7
7
  const REQUIRED_FLAG = "web_socket_auto_reply_to_close";
@@ -3,7 +3,7 @@ import { init, parse } from 'es-module-lexer';
3
3
  import { discoverContainerInfo } from './discoverContainerInfo-BXFs6Wav.mjs';
4
4
  import { discoverSchemaInfo } from './discoverSchemaInfo-DWtypqpP.mjs';
5
5
  import { discoverWorkflowInfo } from './discoverWorkflowInfo-CedvR0mn.mjs';
6
- import { WRANGLER_FILES, readWranglerJsonc } from './findWranglerFile-DwSuC-Kn.mjs';
6
+ import { WRANGLER_FILES, readWranglerJsonc } from './WRANGLER_FILES-DwSuC-Kn.mjs';
7
7
  import { join } from 'node:path';
8
8
 
9
9
  const SOURCE_EXTENSIONS = /* @__PURE__ */ new Set([".cjs", ".cts", ".js", ".jsx", ".mjs", ".mts", ".ts", ".tsx"]);
@@ -137,8 +137,8 @@ const detectExportedDurableObjects = (entryPath) => {
137
137
  const code = readFileSync(entryPath, "utf8");
138
138
  let exportedNames;
139
139
  try {
140
- const [, exports$1] = parse(code);
141
- exportedNames = new Set(exports$1.map((entry) => entry.n));
140
+ const [, exports] = parse(code);
141
+ exportedNames = new Set(exports.map((entry) => entry.n));
142
142
  } catch {
143
143
  exportedNames = new Set(DURABLE_OBJECT_CLASSES.filter((className) => new RegExp(String.raw`\bexport\b[^\n;]*\b${className}\b`).test(code)));
144
144
  }
@@ -163,8 +163,8 @@ const detectContainerExports = (entryPath, containers) => {
163
163
  const starReexport = CONTAINERS_STAR_REEXPORT_PATTERN.test(code);
164
164
  let exportedNames;
165
165
  try {
166
- const [, exports$1] = parse(code);
167
- exportedNames = new Set(exports$1.map((entry) => entry.n));
166
+ const [, exports] = parse(code);
167
+ exportedNames = new Set(exports.map((entry) => entry.n));
168
168
  } catch {
169
169
  exportedNames = new Set(
170
170
  containers.map((container) => container.className).filter((className) => new RegExp(String.raw`\bexport\b[^\n;]*\b${className}\b`).test(code))
@@ -188,8 +188,8 @@ const detectWorkflowExports = (entryPath, workflows) => {
188
188
  const starReexport = WORKFLOWS_STAR_REEXPORT_PATTERN.test(code);
189
189
  let exportedNames;
190
190
  try {
191
- const [, exports$1] = parse(code);
192
- exportedNames = new Set(exports$1.map((entry) => entry.n));
191
+ const [, exports] = parse(code);
192
+ exportedNames = new Set(exports.map((entry) => entry.n));
193
193
  } catch {
194
194
  exportedNames = new Set(
195
195
  workflows.map((workflow) => workflow.className).filter((className) => new RegExp(String.raw`\bexport\b[^\n;]*\b${className}\b`).test(code))
@@ -1,7 +1,7 @@
1
1
  import { writeFileSync } from 'node:fs';
2
2
  import { containerBuildTag } from '@lunora/container';
3
3
  import { modify, applyEdits } from 'jsonc-parser';
4
- import { findWranglerFile, readWranglerJsonc } from './findWranglerFile-DwSuC-Kn.mjs';
4
+ import { findWranglerFile, readWranglerJsonc } from './WRANGLER_FILES-DwSuC-Kn.mjs';
5
5
 
6
6
  const FORMATTING = { formattingOptions: { insertSpaces: true, tabSize: 4 } };
7
7
  const D1_PLACEHOLDER_ID = "<replace-with-d1-create-id>";
@@ -1,7 +1,7 @@
1
1
  export { parseDevVariable, resolveAdminToken } from '../packem_shared/parseDevVariable-CJiq2IwE.mjs';
2
- export { default as loadStudioAssets, studioAssetsStamp } from '../packem_shared/studioAssetsStamp-Csk5RS4E.mjs';
3
- export { POLICY_SCAFFOLD_ENDPOINT, handlePolicyScaffoldRequest } from '../packem_shared/handlePolicyScaffoldRequest-CiC2IGKx.mjs';
2
+ export { default as loadStudioAssets, studioAssetsStamp } from '../packem_shared/loadStudioAssets-Csk5RS4E.mjs';
3
+ export { POLICY_SCAFFOLD_ENDPOINT, handlePolicyScaffoldRequest } from '../packem_shared/POLICY_SCAFFOLD_ENDPOINT-CiC2IGKx.mjs';
4
4
  export { default as renderStudioHtml } from '../packem_shared/renderStudioHtml-449Ysn75.mjs';
5
- export { SCHEMA_EDIT_ENDPOINT, handleSchemaEditRequest } from '../packem_shared/handleSchemaEditRequest-Df-Wrix-.mjs';
6
- export { SEED_ENDPOINT, handleSeedRequest } from '../packem_shared/handleSeedRequest-DVCjaGO-.mjs';
5
+ export { SCHEMA_EDIT_ENDPOINT, handleSchemaEditRequest } from '../packem_shared/SCHEMA_EDIT_ENDPOINT-Df-Wrix-.mjs';
6
+ export { SEED_ENDPOINT, handleSeedRequest } from '../packem_shared/SEED_ENDPOINT-DVCjaGO-.mjs';
7
7
  export { serveJsonHandler } from '../packem_shared/serveJsonHandler-B4OLTGLS.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/config",
3
- "version": "1.0.0-alpha.2",
3
+ "version": "1.0.0-alpha.4",
4
4
  "description": "Internal shared CLI + Vite config layer for Lunora: wrangler.jsonc validation, binding inference, and .dev.vars scaffolding",
5
5
  "keywords": [
6
6
  "bindings",
@@ -50,7 +50,7 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/codegen": "1.0.0-alpha.2",
53
+ "@lunora/codegen": "1.0.0-alpha.3",
54
54
  "@lunora/container": "1.0.0-alpha.1",
55
55
  "@lunora/seed": "1.0.0-alpha.1",
56
56
  "es-module-lexer": "^2.1.0",
@@ -58,7 +58,7 @@
58
58
  "ts-morph": "^28.0.0"
59
59
  },
60
60
  "peerDependencies": {
61
- "@lunora/studio": "1.0.0-alpha.1"
61
+ "@lunora/studio": "1.0.0-alpha.3"
62
62
  },
63
63
  "peerDependenciesMeta": {
64
64
  "@lunora/studio": {