@lunora/config 1.0.0-alpha.116 → 1.0.0-alpha.118

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.
@@ -264,16 +264,16 @@ interface ReconcileBindingsResult {
264
264
  * config already satisfies the inferred needs.
265
265
  *
266
266
  * `environment`, when passed, does NOT change where this writes — every step
267
- * below still only touches the TOP-LEVEL config; wrangler's `env.<name>`
267
+ * below still only touches the TOP-LEVEL config; wrangler's `env.<name>`
268
268
  * blocks have no auto-provisioning path today. It is used only to emit an
269
269
  * advisory warning, because bindings (`durable_objects`, `d1_databases`, …)
270
270
  * are non-inheritable (see `wrangler-validator.ts`'s `NON_INHERITABLE_KEYS`):
271
271
  * a `--env production` deploy needs its OWN copy of each one, and silently
272
272
  * writing only to the top level would leave that gap unmentioned. Extending
273
- * the JSONC writer itself to target `env.&lt;name>.*` idempotently for every
273
+ * the JSONC writer itself to target `env.<name>.*` idempotently for every
274
274
  * binding kind here is a separate, larger change (each of the ~10 pipeline
275
275
  * steps below reads AND writes the top-level path) that this fix does not
276
- * attempt — `lunora deploy --env &lt;name>` now VALIDATES the env-scoped view
276
+ * attempt — `lunora deploy --env <name>` now VALIDATES the env-scoped view
277
277
  * (closing the reported gap), it just doesn't yet auto-provision it.
278
278
  */
279
279
  declare const reconcileWranglerBindings: (projectRoot: string, inferred: InferredBindings, environment?: string) => ReconcileBindingsResult;
@@ -441,7 +441,7 @@ interface MaterializeResult {
441
441
  }
442
442
  /**
443
443
  * Produce a temporary wrangler config with `"remote": true` on every eligible
444
- * binding, so `lunora dev` can run `wrangler dev --config &lt;temp>` against the
444
+ * binding, so `lunora dev` can run `wrangler dev --config <temp>` against the
445
445
  * deployed D1/KV/R2 without touching the user's file.
446
446
  *
447
447
  * The temp file is written as a sibling of the source `wrangler.jsonc` (in the
@@ -548,7 +548,7 @@ declare const scanWranglerVariablesForSecrets: (variables: Record<string, unknow
548
548
  * for the `plaintext_secret_in_wrangler_vars` lint. Returns `[]` when there is no
549
549
  * wrangler config, it doesn't parse, or nothing looks like a secret. Scans the
550
550
  * top-level `vars` block (mirroring the existing `validateCorsVariables` scope);
551
- * per-environment `env.&lt;name>.vars` overrides are out of scope for now.
551
+ * per-environment `env.<name>.vars` overrides are out of scope for now.
552
552
  */
553
553
  declare const collectWranglerSecretVariables: (projectRoot: string) => WranglerVariableIR[];
554
554
  declare const REQUIRED_COMPATIBILITY_DATE: string;
@@ -737,7 +737,7 @@ declare const withTailConsumer: (wrangler: WranglerConfig, consumer: TailConsume
737
737
  * Pure validator: given a parsed `WranglerConfig` object and an optional
738
738
  * `SchemaInfo`, produce a structured report. Performs no I/O.
739
739
  *
740
- * `environment`, when set, validates the `env.&lt;environment>` view
740
+ * `environment`, when set, validates the `env.<environment>` view
741
741
  * ({@link mergeWranglerEnvironment}) instead of the top-level config — e.g. a
742
742
  * `durable_objects` binding present only at the top level is a validation
743
743
  * FAILURE for `--env production` if `env.production` doesn't repeat it,
@@ -753,7 +753,7 @@ declare const validateWranglerConfig: (wranglerInput: WranglerConfig | undefined
753
753
  declare const validateWrangler: typeof validateWranglerConfig;
754
754
  interface WranglerProjectValidationOptions {
755
755
  /**
756
- * Cloudflare environment to validate against `env.&lt;name>` in
756
+ * Cloudflare environment to validate against `env.<name>` in
757
757
  * wrangler.jsonc. See {@link mergeWranglerEnvironment} for which keys
758
758
  * inherit the top-level value vs must be redeclared per environment.
759
759
  * Omit to validate the top-level config only (unchanged default).
@@ -264,16 +264,16 @@ interface ReconcileBindingsResult {
264
264
  * config already satisfies the inferred needs.
265
265
  *
266
266
  * `environment`, when passed, does NOT change where this writes — every step
267
- * below still only touches the TOP-LEVEL config; wrangler's `env.&lt;name>`
267
+ * below still only touches the TOP-LEVEL config; wrangler's `env.<name>`
268
268
  * blocks have no auto-provisioning path today. It is used only to emit an
269
269
  * advisory warning, because bindings (`durable_objects`, `d1_databases`, …)
270
270
  * are non-inheritable (see `wrangler-validator.ts`'s `NON_INHERITABLE_KEYS`):
271
271
  * a `--env production` deploy needs its OWN copy of each one, and silently
272
272
  * writing only to the top level would leave that gap unmentioned. Extending
273
- * the JSONC writer itself to target `env.&lt;name>.*` idempotently for every
273
+ * the JSONC writer itself to target `env.<name>.*` idempotently for every
274
274
  * binding kind here is a separate, larger change (each of the ~10 pipeline
275
275
  * steps below reads AND writes the top-level path) that this fix does not
276
- * attempt — `lunora deploy --env &lt;name>` now VALIDATES the env-scoped view
276
+ * attempt — `lunora deploy --env <name>` now VALIDATES the env-scoped view
277
277
  * (closing the reported gap), it just doesn't yet auto-provision it.
278
278
  */
279
279
  declare const reconcileWranglerBindings: (projectRoot: string, inferred: InferredBindings, environment?: string) => ReconcileBindingsResult;
@@ -441,7 +441,7 @@ interface MaterializeResult {
441
441
  }
442
442
  /**
443
443
  * Produce a temporary wrangler config with `"remote": true` on every eligible
444
- * binding, so `lunora dev` can run `wrangler dev --config &lt;temp>` against the
444
+ * binding, so `lunora dev` can run `wrangler dev --config <temp>` against the
445
445
  * deployed D1/KV/R2 without touching the user's file.
446
446
  *
447
447
  * The temp file is written as a sibling of the source `wrangler.jsonc` (in the
@@ -548,7 +548,7 @@ declare const scanWranglerVariablesForSecrets: (variables: Record<string, unknow
548
548
  * for the `plaintext_secret_in_wrangler_vars` lint. Returns `[]` when there is no
549
549
  * wrangler config, it doesn't parse, or nothing looks like a secret. Scans the
550
550
  * top-level `vars` block (mirroring the existing `validateCorsVariables` scope);
551
- * per-environment `env.&lt;name>.vars` overrides are out of scope for now.
551
+ * per-environment `env.<name>.vars` overrides are out of scope for now.
552
552
  */
553
553
  declare const collectWranglerSecretVariables: (projectRoot: string) => WranglerVariableIR[];
554
554
  declare const REQUIRED_COMPATIBILITY_DATE: string;
@@ -737,7 +737,7 @@ declare const withTailConsumer: (wrangler: WranglerConfig, consumer: TailConsume
737
737
  * Pure validator: given a parsed `WranglerConfig` object and an optional
738
738
  * `SchemaInfo`, produce a structured report. Performs no I/O.
739
739
  *
740
- * `environment`, when set, validates the `env.&lt;environment>` view
740
+ * `environment`, when set, validates the `env.<environment>` view
741
741
  * ({@link mergeWranglerEnvironment}) instead of the top-level config — e.g. a
742
742
  * `durable_objects` binding present only at the top level is a validation
743
743
  * FAILURE for `--env production` if `env.production` doesn't repeat it,
@@ -753,7 +753,7 @@ declare const validateWranglerConfig: (wranglerInput: WranglerConfig | undefined
753
753
  declare const validateWrangler: typeof validateWranglerConfig;
754
754
  interface WranglerProjectValidationOptions {
755
755
  /**
756
- * Cloudflare environment to validate against `env.&lt;name>` in
756
+ * Cloudflare environment to validate against `env.<name>` in
757
757
  * wrangler.jsonc. See {@link mergeWranglerEnvironment} for which keys
758
758
  * inherit the top-level value vs must be redeclared per environment.
759
759
  * Omit to validate the top-level config only (unchanged default).
package/dist/index.d.mts CHANGED
@@ -4,7 +4,7 @@ import { Writable } from 'node:stream';
4
4
  import { D as DeployDriver } from "./packem_shared/schema-info.d-DS0bUsWE.mjs";
5
5
  export { type a as DeployRequest, type b as DevRequest, type c as DiscoverSchemaInfoResult, type d as DriverContext, type e as DriverToolchain, type f as InferOptions, type g as InferredAgent, type I as InferredBindings, type h as InferredContainer, type i as InferredWorkflow, type N as NamedResource, type P as ProvisionResult, type R as ResourceGraph, type S as SchemaInfo, type j as SecretRequest, type k as ShardNamespaceResource, type T as TailRequest, type l as ToolchainCommand, m as discoverSchemaInfo, n as inferLunoraBindings, p as packageNamesFromBindings } from "./packem_shared/schema-info.d-DS0bUsWE.mjs";
6
6
  import 'ts-morph';
7
- export { type A as AdditivePolicyEdit, type D as DestructivePolicyEdit, type P as PolicyEdit, type a as PolicyScaffoldFailureReason, type b as ScaffoldFileResult, type S as ScaffoldPolicyEdit, type c as WireResult, type W as WireRlsEdit, d as classifyPolicyEdit, s as scaffoldPolicyFile, w as wireRlsIntoProcedure } from "./packem_shared/policy-scaffold.d-CFd2FlqG.mjs";
7
+ export { type A as AdditivePolicyEdit, type D as DestructivePolicyEdit, type P as PolicyEdit, type a as PolicyScaffoldFailureReason, type b as ScaffoldFileResult, type S as ScaffoldPolicyEdit, type c as WireResult, type W as WireRlsEdit, d as classifyPolicyEdit, s as scaffoldPolicyFile, w as wireRlsIntoProcedure } from "./packem_shared/policy-scaffold.d-fV3db0S_.mjs";
8
8
  interface DiscoverAgentInfoResult {
9
9
  /** Discovered agent definitions; `[]` when none are declared or parsing failed. */
10
10
  agents: ReadonlyArray<AgentIR>;
@@ -99,9 +99,9 @@ interface AgentRulesStatus {
99
99
  * still counts as installed and isn't nagged.
100
100
  */
101
101
  readonly installed: boolean;
102
- /** Skill names with no `SKILL.md` under `&lt;root>/.agents/skills/&lt;name>/`. */
102
+ /** Skill names with no `SKILL.md` under `<root>/.agents/skills/<name>/`. */
103
103
  readonly missing: ReadonlyArray<string>;
104
- /** Skill names found under `&lt;root>/.agents/skills/&lt;name>/SKILL.md`. */
104
+ /** Skill names found under `<root>/.agents/skills/<name>/SKILL.md`. */
105
105
  readonly present: ReadonlyArray<string>;
106
106
  }
107
107
  /**
@@ -116,7 +116,7 @@ declare const detectAgentRules: (projectRoot: string) => AgentRulesStatus;
116
116
  type ContainerLogLevel = "error" | "info";
117
117
  /** One declared container to follow, identified by the names codegen lifts from `defineContainer`. */
118
118
  interface ContainerLogSource {
119
- /** Generated Durable Object class name, e.g. `TranscoderContainer`. Wrangler's dev image is `cloudflare-dev/&lt;lowercased>`. */
119
+ /** Generated Durable Object class name, e.g. `TranscoderContainer`. Wrangler's dev image is `cloudflare-dev/<lowercased>`. */
120
120
  className: string;
121
121
  /** The `lunora/containers.ts` export name, e.g. `transcoder` — used as the display tag. */
122
122
  exportName: string;
@@ -401,7 +401,7 @@ declare const LINKED_PROJECT_FILE: string;
401
401
  interface LinkedProject {
402
402
  /** Cloudflare account id the worker lives under, when known. */
403
403
  account?: string;
404
- /** Cloudflare environment name (`wrangler … --env &lt;env>`), when scoped. */
404
+ /** Cloudflare environment name (`wrangler … --env <env>`), when scoped. */
405
405
  env?: string;
406
406
  /** ISO-8601 timestamp recorded when the link was written. */
407
407
  linkedAt?: string;
@@ -1004,7 +1004,7 @@ type ParseSchemaResult = {
1004
1004
  declare const parseSchema: (source: string) => ParseSchemaResult;
1005
1005
  /**
1006
1006
  * A badge: the short colored label that prefixes a line. `bg`/`fg` are hex so the
1007
- * same value drives both colorize's `bgHex().hex()` and the tui `&lt;Text>` props.
1007
+ * same value drives both colorize's `bgHex().hex()` and the tui `<Text>` props.
1008
1008
  */
1009
1009
  interface BadgeSpec {
1010
1010
  bg: `#${string}`;
package/dist/index.d.ts CHANGED
@@ -4,7 +4,7 @@ import { Writable } from 'node:stream';
4
4
  import { D as DeployDriver } from "./packem_shared/schema-info.d-DS0bUsWE.js";
5
5
  export { type a as DeployRequest, type b as DevRequest, type c as DiscoverSchemaInfoResult, type d as DriverContext, type e as DriverToolchain, type f as InferOptions, type g as InferredAgent, type I as InferredBindings, type h as InferredContainer, type i as InferredWorkflow, type N as NamedResource, type P as ProvisionResult, type R as ResourceGraph, type S as SchemaInfo, type j as SecretRequest, type k as ShardNamespaceResource, type T as TailRequest, type l as ToolchainCommand, m as discoverSchemaInfo, n as inferLunoraBindings, p as packageNamesFromBindings } from "./packem_shared/schema-info.d-DS0bUsWE.js";
6
6
  import 'ts-morph';
7
- export { type A as AdditivePolicyEdit, type D as DestructivePolicyEdit, type P as PolicyEdit, type a as PolicyScaffoldFailureReason, type b as ScaffoldFileResult, type S as ScaffoldPolicyEdit, type c as WireResult, type W as WireRlsEdit, d as classifyPolicyEdit, s as scaffoldPolicyFile, w as wireRlsIntoProcedure } from "./packem_shared/policy-scaffold.d-CFd2FlqG.js";
7
+ export { type A as AdditivePolicyEdit, type D as DestructivePolicyEdit, type P as PolicyEdit, type a as PolicyScaffoldFailureReason, type b as ScaffoldFileResult, type S as ScaffoldPolicyEdit, type c as WireResult, type W as WireRlsEdit, d as classifyPolicyEdit, s as scaffoldPolicyFile, w as wireRlsIntoProcedure } from "./packem_shared/policy-scaffold.d-fV3db0S_.js";
8
8
  interface DiscoverAgentInfoResult {
9
9
  /** Discovered agent definitions; `[]` when none are declared or parsing failed. */
10
10
  agents: ReadonlyArray<AgentIR>;
@@ -99,9 +99,9 @@ interface AgentRulesStatus {
99
99
  * still counts as installed and isn't nagged.
100
100
  */
101
101
  readonly installed: boolean;
102
- /** Skill names with no `SKILL.md` under `&lt;root>/.agents/skills/&lt;name>/`. */
102
+ /** Skill names with no `SKILL.md` under `<root>/.agents/skills/<name>/`. */
103
103
  readonly missing: ReadonlyArray<string>;
104
- /** Skill names found under `&lt;root>/.agents/skills/&lt;name>/SKILL.md`. */
104
+ /** Skill names found under `<root>/.agents/skills/<name>/SKILL.md`. */
105
105
  readonly present: ReadonlyArray<string>;
106
106
  }
107
107
  /**
@@ -116,7 +116,7 @@ declare const detectAgentRules: (projectRoot: string) => AgentRulesStatus;
116
116
  type ContainerLogLevel = "error" | "info";
117
117
  /** One declared container to follow, identified by the names codegen lifts from `defineContainer`. */
118
118
  interface ContainerLogSource {
119
- /** Generated Durable Object class name, e.g. `TranscoderContainer`. Wrangler's dev image is `cloudflare-dev/&lt;lowercased>`. */
119
+ /** Generated Durable Object class name, e.g. `TranscoderContainer`. Wrangler's dev image is `cloudflare-dev/<lowercased>`. */
120
120
  className: string;
121
121
  /** The `lunora/containers.ts` export name, e.g. `transcoder` — used as the display tag. */
122
122
  exportName: string;
@@ -401,7 +401,7 @@ declare const LINKED_PROJECT_FILE: string;
401
401
  interface LinkedProject {
402
402
  /** Cloudflare account id the worker lives under, when known. */
403
403
  account?: string;
404
- /** Cloudflare environment name (`wrangler … --env &lt;env>`), when scoped. */
404
+ /** Cloudflare environment name (`wrangler … --env <env>`), when scoped. */
405
405
  env?: string;
406
406
  /** ISO-8601 timestamp recorded when the link was written. */
407
407
  linkedAt?: string;
@@ -1004,7 +1004,7 @@ type ParseSchemaResult = {
1004
1004
  declare const parseSchema: (source: string) => ParseSchemaResult;
1005
1005
  /**
1006
1006
  * A badge: the short colored label that prefixes a line. `bg`/`fg` are hex so the
1007
- * same value drives both colorize's `bgHex().hex()` and the tui `&lt;Text>` props.
1007
+ * same value drives both colorize's `bgHex().hex()` and the tui `<Text>` props.
1008
1008
  */
1009
1009
  interface BadgeSpec {
1010
1010
  bg: `#${string}`;
@@ -9,7 +9,7 @@ interface ScaffoldPolicyEdit {
9
9
  /** Logical table the scaffolded policy guards (used in the stub body). */
10
10
  readonly table: string;
11
11
  }
12
- /** Append `.use(rls(&lt;policies>))` to an existing procedure's builder chain. */
12
+ /** Append `.use(rls(<policies>))` to an existing procedure's builder chain. */
13
13
  interface WireRlsEdit {
14
14
  /** Exported procedure name to wire, e.g. `listInvoices`. */
15
15
  readonly exportName: string;
@@ -64,7 +64,7 @@ type WireResult = {
64
64
  */
65
65
  declare const scaffoldPolicyFile: (edit: ScaffoldPolicyEdit) => ScaffoldFileResult;
66
66
  /**
67
- * Append `.use(rls(&lt;policies>))` to a procedure's builder chain, preserving the
67
+ * Append `.use(rls(<policies>))` to a procedure's builder chain, preserving the
68
68
  * terminal `.query(handler)` (and its handler body) byte-for-byte. Only the
69
69
  * **builder** form can be wired; the bare-factory form (`query({ handler })`)
70
70
  * has no chain and is reported `unsupported-procedure-shape` so the editor can
@@ -9,7 +9,7 @@ interface ScaffoldPolicyEdit {
9
9
  /** Logical table the scaffolded policy guards (used in the stub body). */
10
10
  readonly table: string;
11
11
  }
12
- /** Append `.use(rls(&lt;policies>))` to an existing procedure's builder chain. */
12
+ /** Append `.use(rls(<policies>))` to an existing procedure's builder chain. */
13
13
  interface WireRlsEdit {
14
14
  /** Exported procedure name to wire, e.g. `listInvoices`. */
15
15
  readonly exportName: string;
@@ -64,7 +64,7 @@ type WireResult = {
64
64
  */
65
65
  declare const scaffoldPolicyFile: (edit: ScaffoldPolicyEdit) => ScaffoldFileResult;
66
66
  /**
67
- * Append `.use(rls(&lt;policies>))` to a procedure's builder chain, preserving the
67
+ * Append `.use(rls(<policies>))` to a procedure's builder chain, preserving the
68
68
  * terminal `.query(handler)` (and its handler body) byte-for-byte. Only the
69
69
  * **builder** form can be wired; the bare-factory form (`query({ handler })`)
70
70
  * has no chain and is reported `unsupported-procedure-shape` so the editor can
@@ -1,4 +1,4 @@
1
- import { D as DestructivePolicyEdit, S as ScaffoldPolicyEdit, W as WireRlsEdit } from "../packem_shared/policy-scaffold.d-CFd2FlqG.mjs";
1
+ import { D as DestructivePolicyEdit, S as ScaffoldPolicyEdit, W as WireRlsEdit } from "../packem_shared/policy-scaffold.d-fV3db0S_.mjs";
2
2
  import { IncomingMessage, ServerResponse } from 'node:http';
3
3
  /**
4
4
  * Parse a single `KEY=value` (optionally quoted) out of a `.dev.vars` body,
@@ -1,4 +1,4 @@
1
- import { D as DestructivePolicyEdit, S as ScaffoldPolicyEdit, W as WireRlsEdit } from "../packem_shared/policy-scaffold.d-CFd2FlqG.js";
1
+ import { D as DestructivePolicyEdit, S as ScaffoldPolicyEdit, W as WireRlsEdit } from "../packem_shared/policy-scaffold.d-fV3db0S_.js";
2
2
  import { IncomingMessage, ServerResponse } from 'node:http';
3
3
  /**
4
4
  * Parse a single `KEY=value` (optionally quoted) out of a `.dev.vars` body,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/config",
3
- "version": "1.0.0-alpha.116",
3
+ "version": "1.0.0-alpha.118",
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",
@@ -54,10 +54,10 @@
54
54
  "access": "public"
55
55
  },
56
56
  "dependencies": {
57
- "@lunora/codegen": "1.0.0-alpha.88",
58
- "@lunora/container": "1.0.0-alpha.22",
59
- "@lunora/errors": "1.0.0-alpha.13",
60
- "@lunora/seed": "1.0.0-alpha.60",
57
+ "@lunora/codegen": "1.0.0-alpha.90",
58
+ "@lunora/container": "1.0.0-alpha.23",
59
+ "@lunora/errors": "1.0.0-alpha.14",
60
+ "@lunora/seed": "1.0.0-alpha.62",
61
61
  "@visulima/colorize": "2.0.0",
62
62
  "@visulima/find-ai-runner": "1.0.0",
63
63
  "dockerode": "^5.0.1",