@lunora/config 1.0.0-alpha.44 → 1.0.0-alpha.46

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
@@ -12,7 +12,7 @@ export { LUNORA_CONFIG_FILE, interpretRemote, readProjectRemotePreference } from
12
12
  export { createConfirm, isInteractive, promptMultiSelect, promptSelect, promptYesNo } from './packem_shared/createConfirm-fvpdgJ9s.mjs';
13
13
  export { reconcileWranglerBindings } from './packem_shared/reconcileWranglerBindings-Cruwwx1M.mjs';
14
14
  export { REMOTE_ELIGIBLE_KEYS, injectRemoteFlags, isRemoteEnvEnabled, materializeRemoteWranglerConfig, planRemoteBindings, resolveRemoteEnabled } from './packem_shared/REMOTE_ELIGIBLE_KEYS-BC7_e9Bz.mjs';
15
- export { buildPackageSecretsBlock, ensureDevVariables, ensureDevVarsExample, fillDevSecrets, generateSecretValue, isMintableSecretKey, isPlaceholderValue, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, requiredSecrets } from './packem_shared/buildPackageSecretsBlock-BCHtfQ2A.mjs';
15
+ export { buildPackageSecretsBlock, ensureDevVariables, ensureDevVarsExample, fillDevSecrets, generateSecretValue, isMintableSecretKey, isPlaceholderValue, planDevSecretsFill, planDevVariablesAugment, planDevVariablesScaffold, requiredSecrets } from './packem_shared/buildPackageSecretsBlock-B8iSX1Zo.mjs';
16
16
  export { applyAdditiveEdit, classifyEdit } from './packem_shared/applyAdditiveEdit-C-snTFEV.mjs';
17
17
  export { parseSchema } from './packem_shared/parseSchema-DSeyktvG.mjs';
18
18
  export { classifyPolicyEdit, scaffoldPolicyFile, wireRlsIntoProcedure } from './packem_shared/classifyPolicyEdit-BHeAqF8P.mjs';
@@ -1,6 +1,7 @@
1
1
  import { existsSync, readFileSync, writeFileSync, renameSync } from 'node:fs';
2
2
  import { join, isAbsolute, relative } from 'node:path';
3
3
  import { runCodegen, CodegenDiagnosticError } from '@lunora/codegen';
4
+ import { LunoraError } from '@lunora/errors';
4
5
  import { classifyPolicyEdit, scaffoldPolicyFile, wireRlsIntoProcedure } from './classifyPolicyEdit-BHeAqF8P.mjs';
5
6
 
6
7
  const POLICY_SCAFFOLD_ENDPOINT = "/__lunora/policy-scaffold";
@@ -97,7 +98,7 @@ const handlePolicyScaffoldRequest = (request) => {
97
98
  if (edit.kind === "wireRls") {
98
99
  return handleWireRls(request, edit);
99
100
  }
100
- throw new Error(`unhandled additive policy edit kind: ${String(edit.kind)}`);
101
+ throw new LunoraError("INTERNAL", `unhandled additive policy edit kind: ${String(edit.kind)}`);
101
102
  };
102
103
 
103
104
  export { POLICY_SCAFFOLD_ENDPOINT, handlePolicyScaffoldRequest };
@@ -1,6 +1,7 @@
1
1
  import { randomBytes } from 'node:crypto';
2
2
  import { existsSync, readFileSync, writeFileSync, renameSync, rmSync, statSync } from 'node:fs';
3
3
  import { join } from 'node:path';
4
+ import { LunoraError } from '@lunora/errors';
4
5
  import { DEV_VARS_FILE, DEV_VARS_EXAMPLE_FILE, splitDevVariableLine, parseDevVariableEntries, DEV_VARS_NEWLINE, unquoteDevVariable } from './DEV_VARS_EXAMPLE_FILE-dJPNTEnK.mjs';
5
6
  import { CORE_SECRETS, PACKAGE_SECRETS_REGISTRY, secretsForPackages } from './PACKAGE_SECRETS_REGISTRY-B8t_SdoZ.mjs';
6
7
 
@@ -145,7 +146,7 @@ const appendDevVariables = (path, buildAdditions) => {
145
146
  throw error;
146
147
  }
147
148
  }
148
- throw new Error(`Failed to append to ${path} after ${String(APPEND_MAX_ATTEMPTS)} attempts — a concurrent writer kept winning the race.`);
149
+ throw new LunoraError("INTERNAL", `Failed to append to ${path} after ${String(APPEND_MAX_ATTEMPTS)} attempts — a concurrent writer kept winning the race.`);
149
150
  };
150
151
  const ensureDevVariables = async (deps) => {
151
152
  const devVariablesPath = join(deps.cwd, DEV_VARS_FILE);
@@ -1,6 +1,6 @@
1
1
  export { parseDevVariable, resolveAdminToken } from '../packem_shared/parseDevVariable-CJiq2IwE.mjs';
2
2
  export { assetContentType, isStandaloneModulePath, loadStudioAssets, readStandaloneAsset, resolveStandaloneDirectory, studioAssetsStamp } from '../packem_shared/assetContentType-ByZjeV3D.mjs';
3
- export { POLICY_SCAFFOLD_ENDPOINT, handlePolicyScaffoldRequest } from '../packem_shared/POLICY_SCAFFOLD_ENDPOINT-CiC2IGKx.mjs';
3
+ export { POLICY_SCAFFOLD_ENDPOINT, handlePolicyScaffoldRequest } from '../packem_shared/POLICY_SCAFFOLD_ENDPOINT-8bNMHGiu.mjs';
4
4
  export { default as renderStudioHtml } from '../packem_shared/renderStudioHtml-449Ysn75.mjs';
5
5
  export { SCHEMA_EDIT_ENDPOINT, handleSchemaEditRequest } from '../packem_shared/SCHEMA_EDIT_ENDPOINT-Df-Wrix-.mjs';
6
6
  export { SEED_ENDPOINT, handleSeedRequest } from '../packem_shared/SEED_ENDPOINT-DVCjaGO-.mjs';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/config",
3
- "version": "1.0.0-alpha.44",
3
+ "version": "1.0.0-alpha.46",
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,9 +50,10 @@
50
50
  "access": "public"
51
51
  },
52
52
  "dependencies": {
53
- "@lunora/codegen": "1.0.0-alpha.27",
54
- "@lunora/container": "1.0.0-alpha.5",
55
- "@lunora/seed": "1.0.0-alpha.13",
53
+ "@lunora/codegen": "1.0.0-alpha.29",
54
+ "@lunora/container": "1.0.0-alpha.6",
55
+ "@lunora/errors": "1.0.0-alpha.1",
56
+ "@lunora/seed": "1.0.0-alpha.14",
56
57
  "@visulima/colorize": "2.0.0-alpha.14",
57
58
  "dockerode": "^5.0.1",
58
59
  "es-module-lexer": "^2.1.0",
@@ -60,7 +61,7 @@
60
61
  "ts-morph": "^28.0.0"
61
62
  },
62
63
  "peerDependencies": {
63
- "@lunora/studio": "1.0.0-alpha.30"
64
+ "@lunora/studio": "1.0.0-alpha.32"
64
65
  },
65
66
  "peerDependenciesMeta": {
66
67
  "@lunora/studio": {