@lunora/config 1.0.0-alpha.468 → 1.0.0-alpha.469
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/celld/index.d.mts +77 -0
- package/dist/celld/index.d.ts +77 -0
- package/dist/celld/index.mjs +1 -0
- package/dist/celld-names/index.d.mts +57 -0
- package/dist/celld-names/index.d.ts +57 -0
- package/dist/celld-names/index.mjs +1 -0
- package/dist/cli/index.mjs +1 -1
- package/dist/cloudflare/index.d.mts +4 -592
- package/dist/cloudflare/index.d.ts +4 -592
- package/dist/cloudflare/index.mjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/packem_shared/CELLD_RELEASE_ASSETS_DIRECTORY-YBhEotjs.mjs +1 -0
- package/dist/packem_shared/{DEFAULT_DEPLOY_TARGET-CAJl2nEI.mjs → DEFAULT_DEPLOY_TARGET-BlvZ242-.mjs} +1 -1
- package/dist/packem_shared/{POLICY_SCAFFOLD_ENDPOINT-DSMpLzsw.mjs → POLICY_SCAFFOLD_ENDPOINT-BiQ1zNsR.mjs} +1 -1
- package/dist/packem_shared/{SCHEMA_EDIT_ENDPOINT-FM9ZC-gV.mjs → SCHEMA_EDIT_ENDPOINT-D296PlpV.mjs} +1 -1
- package/dist/packem_shared/{STUDIO_PATH-CWaCBuYC.mjs → STUDIO_PATH-CvVcvTbQ.mjs} +1 -1
- package/dist/packem_shared/{assertBuildTargetMatches-tkKAa5zl.mjs → assertBuildTargetMatches-D11J7F38.mjs} +1 -1
- package/dist/packem_shared/binding-manifest.d-BRdoMhGE.d.mts +593 -0
- package/dist/packem_shared/binding-manifest.d-BRdoMhGE.d.ts +593 -0
- package/dist/packem_shared/{celld-config-CpvLkAEg.mjs → celld-config-Ef1RZ02t.mjs} +1 -1
- package/dist/packem_shared/{emitProjectAssetHeaders-6iinmRWE.mjs → emitProjectAssetHeaders-BdqdTVN3.mjs} +1 -1
- package/dist/packem_shared/scanWranglerVariablesForSecrets-DmdOBmwn.mjs +1 -0
- package/dist/packem_shared/{startCelldDevSession-DQ7YylR_.mjs → startCelldDevSession-DfuDVsha.mjs} +1 -1
- package/dist/packem_shared/{wranglerCodegenInputs--ngEbVLe.mjs → wranglerCodegenInputs-B8iRZZZw.mjs} +1 -1
- package/dist/packem_shared/wranglerToAlchemy-ClIdvJFu.mjs +5 -0
- package/dist/packem_shared/{write-atomic-BzViTZCw.mjs → write-atomic-9sY2z8DB.mjs} +1 -1
- package/dist/studio-host/index.mjs +1 -1
- package/package.json +9 -1
- package/dist/packem_shared/scanWranglerVariablesForSecrets-BQIPpHpH.mjs +0 -1
- package/dist/packem_shared/wranglerToAlchemy-CBO2ucRm.mjs +0 -6
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { B as BindingRequirement } from "../packem_shared/binding-manifest.d-BRdoMhGE.mjs";
|
|
2
|
+
export { CELLD_RELEASE_BINDINGS, CELLD_RELEASE_BINDING_TYPES,
|
|
3
|
+
/**
|
|
4
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
5
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
6
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
7
|
+
*/
|
|
8
|
+
type CelldReleaseBindings, CelldReleaseConfigError,
|
|
9
|
+
/**
|
|
10
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
11
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
12
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
13
|
+
*/
|
|
14
|
+
type CelldReleaseRefusal, MAX_RELEASE_ALIAS_LENGTH, MAX_RESOURCE_NAME, RELEASE_ALIAS_PATTERN, isReleaseAlias, releaseResourceName } from "../celld-names/index.mjs";
|
|
15
|
+
/** The binding manifest a stored release carries (`DeployManifest` in `apps/cloud`). */
|
|
16
|
+
interface CelldReleaseManifest {
|
|
17
|
+
bindings: ReadonlyArray<BindingRequirement>;
|
|
18
|
+
compatibilityDate?: string;
|
|
19
|
+
compatibilityFlags?: ReadonlyArray<string>;
|
|
20
|
+
}
|
|
21
|
+
/** The serving options of a release's static assets: the subset of wrangler's `assets` the deploy request carries. */
|
|
22
|
+
interface CelldReleaseAssetsConfig {
|
|
23
|
+
html_handling?: "auto-trailing-slash" | "drop-trailing-slash" | "force-trailing-slash" | "none";
|
|
24
|
+
not_found_handling?: "404-page" | "none" | "single-page-application";
|
|
25
|
+
run_worker_first?: boolean | ReadonlyArray<string>;
|
|
26
|
+
}
|
|
27
|
+
interface CelldReleaseOptions {
|
|
28
|
+
/** The deployment alias: the fleet's Worker name and the prefix of every resource name. */
|
|
29
|
+
alias: string;
|
|
30
|
+
/** Serving options for the assets, when the release has any. */
|
|
31
|
+
assetsConfig?: CelldReleaseAssetsConfig;
|
|
32
|
+
/** The deploy job's compatibility date; wins over the manifest's. */
|
|
33
|
+
compatibilityDate?: string;
|
|
34
|
+
/** Wins over the manifest's flags. Without either, `["nodejs_compat"]`, the platform default. */
|
|
35
|
+
compatibilityFlags?: ReadonlyArray<string>;
|
|
36
|
+
/** Cron expressions celld fires natively (plan 458 D11). */
|
|
37
|
+
crons: ReadonlyArray<string>;
|
|
38
|
+
/** Whether the release carries static assets; they are written to {@link CELLD_RELEASE_ASSETS_DIRECTORY}. */
|
|
39
|
+
hasAssets: boolean;
|
|
40
|
+
/** Vars and secrets, merged (plan 458 D10). */
|
|
41
|
+
vars: Readonly<Record<string, string>>;
|
|
42
|
+
}
|
|
43
|
+
/** Where the bundle sits in the release directory, beside the config. */
|
|
44
|
+
declare const CELLD_RELEASE_MAIN = "worker.js";
|
|
45
|
+
/** Where the static assets sit in the release directory. */
|
|
46
|
+
declare const CELLD_RELEASE_ASSETS_DIRECTORY = "assets";
|
|
47
|
+
type Config = Record<string, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* The Wrangler config celld deploys a stored release with — written beside
|
|
50
|
+
* the bundle ({@link CELLD_RELEASE_MAIN}) and the assets
|
|
51
|
+
* ({@link CELLD_RELEASE_ASSETS_DIRECTORY}) in the release directory.
|
|
52
|
+
* @param manifest the release's binding manifest
|
|
53
|
+
* @returns a config holding only keys celld accepts
|
|
54
|
+
* @throws {CelldReleaseConfigError} listing every binding celld cannot run, or
|
|
55
|
+
* for a malformed alias, an over-long resource name, or assets that do not
|
|
56
|
+
* match the manifest's assets binding.
|
|
57
|
+
*/
|
|
58
|
+
declare const celldConfigFromRelease: (manifest: CelldReleaseManifest, options: CelldReleaseOptions) => Config;
|
|
59
|
+
export { CELLD_RELEASE_ASSETS_DIRECTORY, CELLD_RELEASE_MAIN,
|
|
60
|
+
/**
|
|
61
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
62
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
63
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
64
|
+
*/
|
|
65
|
+
type CelldReleaseAssetsConfig,
|
|
66
|
+
/**
|
|
67
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
68
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
69
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
70
|
+
*/
|
|
71
|
+
type CelldReleaseManifest,
|
|
72
|
+
/**
|
|
73
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
74
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
75
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
76
|
+
*/
|
|
77
|
+
type CelldReleaseOptions, celldConfigFromRelease };
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import { B as BindingRequirement } from "../packem_shared/binding-manifest.d-BRdoMhGE.js";
|
|
2
|
+
export { CELLD_RELEASE_BINDINGS, CELLD_RELEASE_BINDING_TYPES,
|
|
3
|
+
/**
|
|
4
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
5
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
6
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
7
|
+
*/
|
|
8
|
+
type CelldReleaseBindings, CelldReleaseConfigError,
|
|
9
|
+
/**
|
|
10
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
11
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
12
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
13
|
+
*/
|
|
14
|
+
type CelldReleaseRefusal, MAX_RELEASE_ALIAS_LENGTH, MAX_RESOURCE_NAME, RELEASE_ALIAS_PATTERN, isReleaseAlias, releaseResourceName } from "../celld-names/index.js";
|
|
15
|
+
/** The binding manifest a stored release carries (`DeployManifest` in `apps/cloud`). */
|
|
16
|
+
interface CelldReleaseManifest {
|
|
17
|
+
bindings: ReadonlyArray<BindingRequirement>;
|
|
18
|
+
compatibilityDate?: string;
|
|
19
|
+
compatibilityFlags?: ReadonlyArray<string>;
|
|
20
|
+
}
|
|
21
|
+
/** The serving options of a release's static assets: the subset of wrangler's `assets` the deploy request carries. */
|
|
22
|
+
interface CelldReleaseAssetsConfig {
|
|
23
|
+
html_handling?: "auto-trailing-slash" | "drop-trailing-slash" | "force-trailing-slash" | "none";
|
|
24
|
+
not_found_handling?: "404-page" | "none" | "single-page-application";
|
|
25
|
+
run_worker_first?: boolean | ReadonlyArray<string>;
|
|
26
|
+
}
|
|
27
|
+
interface CelldReleaseOptions {
|
|
28
|
+
/** The deployment alias: the fleet's Worker name and the prefix of every resource name. */
|
|
29
|
+
alias: string;
|
|
30
|
+
/** Serving options for the assets, when the release has any. */
|
|
31
|
+
assetsConfig?: CelldReleaseAssetsConfig;
|
|
32
|
+
/** The deploy job's compatibility date; wins over the manifest's. */
|
|
33
|
+
compatibilityDate?: string;
|
|
34
|
+
/** Wins over the manifest's flags. Without either, `["nodejs_compat"]`, the platform default. */
|
|
35
|
+
compatibilityFlags?: ReadonlyArray<string>;
|
|
36
|
+
/** Cron expressions celld fires natively (plan 458 D11). */
|
|
37
|
+
crons: ReadonlyArray<string>;
|
|
38
|
+
/** Whether the release carries static assets; they are written to {@link CELLD_RELEASE_ASSETS_DIRECTORY}. */
|
|
39
|
+
hasAssets: boolean;
|
|
40
|
+
/** Vars and secrets, merged (plan 458 D10). */
|
|
41
|
+
vars: Readonly<Record<string, string>>;
|
|
42
|
+
}
|
|
43
|
+
/** Where the bundle sits in the release directory, beside the config. */
|
|
44
|
+
declare const CELLD_RELEASE_MAIN = "worker.js";
|
|
45
|
+
/** Where the static assets sit in the release directory. */
|
|
46
|
+
declare const CELLD_RELEASE_ASSETS_DIRECTORY = "assets";
|
|
47
|
+
type Config = Record<string, unknown>;
|
|
48
|
+
/**
|
|
49
|
+
* The Wrangler config celld deploys a stored release with — written beside
|
|
50
|
+
* the bundle ({@link CELLD_RELEASE_MAIN}) and the assets
|
|
51
|
+
* ({@link CELLD_RELEASE_ASSETS_DIRECTORY}) in the release directory.
|
|
52
|
+
* @param manifest the release's binding manifest
|
|
53
|
+
* @returns a config holding only keys celld accepts
|
|
54
|
+
* @throws {CelldReleaseConfigError} listing every binding celld cannot run, or
|
|
55
|
+
* for a malformed alias, an over-long resource name, or assets that do not
|
|
56
|
+
* match the manifest's assets binding.
|
|
57
|
+
*/
|
|
58
|
+
declare const celldConfigFromRelease: (manifest: CelldReleaseManifest, options: CelldReleaseOptions) => Config;
|
|
59
|
+
export { CELLD_RELEASE_ASSETS_DIRECTORY, CELLD_RELEASE_MAIN,
|
|
60
|
+
/**
|
|
61
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
62
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
63
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
64
|
+
*/
|
|
65
|
+
type CelldReleaseAssetsConfig,
|
|
66
|
+
/**
|
|
67
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
68
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
69
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
70
|
+
*/
|
|
71
|
+
type CelldReleaseManifest,
|
|
72
|
+
/**
|
|
73
|
+
* `@lunora/config/celld` — what a celld fleet needs from Lunora's config
|
|
74
|
+
* tooling outside a project checkout: the Wrangler config a stored release runs
|
|
75
|
+
* with (plan 458 W3). `lunora-hostd` uses it on a customer's box.
|
|
76
|
+
*/
|
|
77
|
+
type CelldReleaseOptions, celldConfigFromRelease };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{CELLD_RELEASE_ASSETS_DIRECTORY as A,CELLD_RELEASE_MAIN as L,celldConfigFromRelease as _}from"../packem_shared/CELLD_RELEASE_ASSETS_DIRECTORY-YBhEotjs.mjs";import{CELLD_RELEASE_BINDINGS as S,CELLD_RELEASE_BINDING_TYPES as r,CelldReleaseConfigError as l,MAX_RELEASE_ALIAS_LENGTH as o,MAX_RESOURCE_NAME as C,RELEASE_ALIAS_PATTERN as N,isReleaseAlias as I,releaseResourceName as s}from"../celld-names/index.mjs";export{A as CELLD_RELEASE_ASSETS_DIRECTORY,S as CELLD_RELEASE_BINDINGS,r as CELLD_RELEASE_BINDING_TYPES,L as CELLD_RELEASE_MAIN,l as CelldReleaseConfigError,o as MAX_RELEASE_ALIAS_LENGTH,C as MAX_RESOURCE_NAME,N as RELEASE_ALIAS_PATTERN,_ as celldConfigFromRelease,I as isReleaseAlias,s as releaseResourceName};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pure half of `@lunora/config/celld`: the alias grammar, the per-project
|
|
3
|
+
* resource names and the binding types a celld fleet runs. Nothing here touches
|
|
4
|
+
* the filesystem, so a browser bundle can import it. `apps/cloud`'s provision
|
|
5
|
+
* contract reads it on the client, and `@lunora/config/celld` itself pulls in
|
|
6
|
+
* `node:fs` through the config projection, which such a bundle cannot load.
|
|
7
|
+
*/
|
|
8
|
+
import { B as BindingRequirement } from "../packem_shared/binding-manifest.d-BRdoMhGE.mjs";
|
|
9
|
+
/** One binding celld cannot run, and why. */
|
|
10
|
+
interface CelldReleaseRefusal {
|
|
11
|
+
binding: string;
|
|
12
|
+
reason: string;
|
|
13
|
+
type: BindingRequirement["type"];
|
|
14
|
+
}
|
|
15
|
+
/** Thrown when a release cannot run on celld; {@link CelldReleaseConfigError.refused} lists every binding at fault. */
|
|
16
|
+
declare class CelldReleaseConfigError extends Error {
|
|
17
|
+
readonly refused: ReadonlyArray<CelldReleaseRefusal>;
|
|
18
|
+
constructor(message: string, refused?: ReadonlyArray<CelldReleaseRefusal>);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The binding types a celld fleet runs, and so a release may carry, with how
|
|
22
|
+
* each is satisfied: `provisioned` — a per-project resource this config names
|
|
23
|
+
* ({@link releaseResourceName}); `bound` — bound as the manifest declares it.
|
|
24
|
+
* Every other type is refused. The control plane's `celld-vps` binding row is
|
|
25
|
+
* built from this map.
|
|
26
|
+
*/
|
|
27
|
+
interface CelldReleaseBindings {
|
|
28
|
+
readonly assets: "bound";
|
|
29
|
+
readonly d1: "provisioned";
|
|
30
|
+
readonly durable_object: "bound";
|
|
31
|
+
readonly kv: "provisioned";
|
|
32
|
+
readonly queue_consumer: "bound";
|
|
33
|
+
readonly queue_producer: "provisioned";
|
|
34
|
+
readonly r2: "provisioned";
|
|
35
|
+
readonly workflow: "bound";
|
|
36
|
+
}
|
|
37
|
+
/** {@link CelldReleaseBindings} as a value. */
|
|
38
|
+
declare const CELLD_RELEASE_BINDINGS: CelldReleaseBindings;
|
|
39
|
+
/** The binding types celld runs ({@link CELLD_RELEASE_BINDINGS}' keys). */
|
|
40
|
+
declare const CELLD_RELEASE_BINDING_TYPES: ReadonlySet<BindingRequirement["type"]>;
|
|
41
|
+
/** One DNS label: dash-separated runs of `[a-z0-9]` — the alias rule of every target. */
|
|
42
|
+
declare const RELEASE_ALIAS_PATTERN: RegExp;
|
|
43
|
+
/** Longest alias: one DNS label. */
|
|
44
|
+
declare const MAX_RELEASE_ALIAS_LENGTH = 63;
|
|
45
|
+
/** The tightest name limit across the named resource types (R2 buckets, queues). */
|
|
46
|
+
declare const MAX_RESOURCE_NAME = 63;
|
|
47
|
+
/** Whether `alias` is a deployment alias: one DNS label of dash-separated `[a-z0-9]` runs, at most 63 characters. */
|
|
48
|
+
declare const isReleaseAlias: (alias: string) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The per-project name of a D1 database, KV namespace, R2 bucket or queue:
|
|
51
|
+
* `{alias}--{binding}`, the binding lowercased with `_` → `-`. Injective, since an
|
|
52
|
+
* alias never contains `--`; `apps/cloud`'s `tenantResourceName` names every
|
|
53
|
+
* target's resources with it.
|
|
54
|
+
* @throws {CelldReleaseConfigError} when the alias is malformed or the name is over 63 characters.
|
|
55
|
+
*/
|
|
56
|
+
declare const releaseResourceName: (alias: string, binding: string) => string;
|
|
57
|
+
export { CELLD_RELEASE_BINDINGS, CELLD_RELEASE_BINDING_TYPES, CelldReleaseBindings, CelldReleaseConfigError, CelldReleaseRefusal, MAX_RELEASE_ALIAS_LENGTH, MAX_RESOURCE_NAME, RELEASE_ALIAS_PATTERN, isReleaseAlias, releaseResourceName };
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pure half of `@lunora/config/celld`: the alias grammar, the per-project
|
|
3
|
+
* resource names and the binding types a celld fleet runs. Nothing here touches
|
|
4
|
+
* the filesystem, so a browser bundle can import it. `apps/cloud`'s provision
|
|
5
|
+
* contract reads it on the client, and `@lunora/config/celld` itself pulls in
|
|
6
|
+
* `node:fs` through the config projection, which such a bundle cannot load.
|
|
7
|
+
*/
|
|
8
|
+
import { B as BindingRequirement } from "../packem_shared/binding-manifest.d-BRdoMhGE.js";
|
|
9
|
+
/** One binding celld cannot run, and why. */
|
|
10
|
+
interface CelldReleaseRefusal {
|
|
11
|
+
binding: string;
|
|
12
|
+
reason: string;
|
|
13
|
+
type: BindingRequirement["type"];
|
|
14
|
+
}
|
|
15
|
+
/** Thrown when a release cannot run on celld; {@link CelldReleaseConfigError.refused} lists every binding at fault. */
|
|
16
|
+
declare class CelldReleaseConfigError extends Error {
|
|
17
|
+
readonly refused: ReadonlyArray<CelldReleaseRefusal>;
|
|
18
|
+
constructor(message: string, refused?: ReadonlyArray<CelldReleaseRefusal>);
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* The binding types a celld fleet runs, and so a release may carry, with how
|
|
22
|
+
* each is satisfied: `provisioned` — a per-project resource this config names
|
|
23
|
+
* ({@link releaseResourceName}); `bound` — bound as the manifest declares it.
|
|
24
|
+
* Every other type is refused. The control plane's `celld-vps` binding row is
|
|
25
|
+
* built from this map.
|
|
26
|
+
*/
|
|
27
|
+
interface CelldReleaseBindings {
|
|
28
|
+
readonly assets: "bound";
|
|
29
|
+
readonly d1: "provisioned";
|
|
30
|
+
readonly durable_object: "bound";
|
|
31
|
+
readonly kv: "provisioned";
|
|
32
|
+
readonly queue_consumer: "bound";
|
|
33
|
+
readonly queue_producer: "provisioned";
|
|
34
|
+
readonly r2: "provisioned";
|
|
35
|
+
readonly workflow: "bound";
|
|
36
|
+
}
|
|
37
|
+
/** {@link CelldReleaseBindings} as a value. */
|
|
38
|
+
declare const CELLD_RELEASE_BINDINGS: CelldReleaseBindings;
|
|
39
|
+
/** The binding types celld runs ({@link CELLD_RELEASE_BINDINGS}' keys). */
|
|
40
|
+
declare const CELLD_RELEASE_BINDING_TYPES: ReadonlySet<BindingRequirement["type"]>;
|
|
41
|
+
/** One DNS label: dash-separated runs of `[a-z0-9]` — the alias rule of every target. */
|
|
42
|
+
declare const RELEASE_ALIAS_PATTERN: RegExp;
|
|
43
|
+
/** Longest alias: one DNS label. */
|
|
44
|
+
declare const MAX_RELEASE_ALIAS_LENGTH = 63;
|
|
45
|
+
/** The tightest name limit across the named resource types (R2 buckets, queues). */
|
|
46
|
+
declare const MAX_RESOURCE_NAME = 63;
|
|
47
|
+
/** Whether `alias` is a deployment alias: one DNS label of dash-separated `[a-z0-9]` runs, at most 63 characters. */
|
|
48
|
+
declare const isReleaseAlias: (alias: string) => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* The per-project name of a D1 database, KV namespace, R2 bucket or queue:
|
|
51
|
+
* `{alias}--{binding}`, the binding lowercased with `_` → `-`. Injective, since an
|
|
52
|
+
* alias never contains `--`; `apps/cloud`'s `tenantResourceName` names every
|
|
53
|
+
* target's resources with it.
|
|
54
|
+
* @throws {CelldReleaseConfigError} when the alias is malformed or the name is over 63 characters.
|
|
55
|
+
*/
|
|
56
|
+
declare const releaseResourceName: (alias: string, binding: string) => string;
|
|
57
|
+
export { CELLD_RELEASE_BINDINGS, CELLD_RELEASE_BINDING_TYPES, CelldReleaseBindings, CelldReleaseConfigError, CelldReleaseRefusal, MAX_RELEASE_ALIAS_LENGTH, MAX_RESOURCE_NAME, RELEASE_ALIAS_PATTERN, isReleaseAlias, releaseResourceName };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
class s extends Error{refused;constructor(o,r=[]){super(o),this.name="CelldReleaseConfigError",this.refused=r}}const n={assets:"bound",d1:"provisioned",durable_object:"bound",kv:"provisioned",queue_consumer:"bound",queue_producer:"provisioned",r2:"provisioned",workflow:"bound"},d=new Set(Object.keys(n)),c=/^[a-z\d]+(?:-[a-z\d]+)*$/u,E=63,t=63,a=e=>e.length<=E&&c.test(e),u=(e,o)=>{if(!a(e))throw new s(`alias "${e}" must be dash-separated runs of [a-z0-9], at most 63 characters`);const r=`${e}--${o.toLowerCase().replaceAll("_","-")}`;if(r.length>t)throw new s(`resource name "${r}" exceeds ${String(t)} characters; shorten the project name or binding ${o}`);return r};export{n as CELLD_RELEASE_BINDINGS,d as CELLD_RELEASE_BINDING_TYPES,s as CelldReleaseConfigError,E as MAX_RELEASE_ALIAS_LENGTH,t as MAX_RESOURCE_NAME,c as RELEASE_ALIAS_PATTERN,a as isReleaseAlias,u as releaseResourceName};
|
package/dist/cli/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{AGENT_RULES_HINT as t,claimAgentRulesHint as o,detectAgentRules as a}from"../packem_shared/AGENT_RULES_DIR-Bd6JPtNa.mjs";import{DEFAULT_DEPLOY_TARGET as s,deployTargetIds as l,isRunnableTarget as A,runnableTargetIds as d}from"../packem_shared/DEFAULT_DEPLOY_TARGET-
|
|
1
|
+
import{AGENT_RULES_HINT as t,claimAgentRulesHint as o,detectAgentRules as a}from"../packem_shared/AGENT_RULES_DIR-Bd6JPtNa.mjs";import{DEFAULT_DEPLOY_TARGET as s,deployTargetIds as l,isRunnableTarget as A,runnableTargetIds as d}from"../packem_shared/DEFAULT_DEPLOY_TARGET-BlvZ242-.mjs";import{LUNORA_TAG as c,lunoraLine as m}from"../packem_shared/LUNORA_TAG-DQTGPqcJ.mjs";import{default as T}from"../packem_shared/LunoraReporter-f277GLNT.mjs";import{addArgsFor as x,detectInstalledManagers as E,detectPackageManager as i,execArgsFor as u,installArgsFor as R,runScriptCommand as _,toolchainExecArgs as L}from"../packem_shared/addArgsFor-CYZKhNIo.mjs";import{readProjectManifest as G}from"../packem_shared/readProjectDependencies-l3uhUKjo.mjs";import{STEP_BADGE_NAMES as M}from"../packem_shared/ACCENT-CotPTfv7.mjs";export{t as AGENT_RULES_HINT,s as DEFAULT_DEPLOY_TARGET,c as LUNORA_TAG,T as LunoraReporter,M as STEP_BADGE_NAMES,x as addArgsFor,o as claimAgentRulesHint,l as deployTargetIds,a as detectAgentRules,E as detectInstalledManagers,i as detectPackageManager,u as execArgsFor,R as installArgsFor,A as isRunnableTarget,m as lunoraLine,G as readProjectManifest,_ as runScriptCommand,d as runnableTargetIds,L as toolchainExecArgs};
|