@lunora/config 1.0.0-alpha.47 → 1.0.0-alpha.471
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/LICENSE.md +336 -104
- package/README.md +6 -6
- 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.d.mts +2 -0
- package/dist/cli/index.d.ts +2 -0
- package/dist/cli/index.mjs +1 -0
- package/dist/cloudflare/index.d.mts +941 -0
- package/dist/cloudflare/index.d.ts +941 -0
- package/dist/cloudflare/index.mjs +1 -0
- package/dist/index.d.mts +1068 -1044
- package/dist/index.d.ts +1068 -1044
- package/dist/index.mjs +1 -25
- package/dist/packem_shared/ACCENT-CotPTfv7.mjs +7 -0
- package/dist/packem_shared/ADVISOR_PROCEDURES_ENDPOINT-BPnqzAgT.mjs +1 -0
- package/dist/packem_shared/AGENT_MODE_ENV-D8MvSwPE.mjs +1 -0
- package/dist/packem_shared/AGENT_RULES_DIR-Bd6JPtNa.mjs +1 -0
- package/dist/packem_shared/ALLOW_FORWARDED_ENV-BUndghJx.mjs +1 -0
- package/dist/packem_shared/BINDING_MANIFEST_VERSION-CR06-eW7.mjs +1 -0
- package/dist/packem_shared/BUILD_ROOT_ENV-Dg4MV3wY.mjs +1 -0
- package/dist/packem_shared/CELLD_RELEASE_ASSETS_DIRECTORY-YBhEotjs.mjs +1 -0
- package/dist/packem_shared/CLOUDFLARE_CLI_CONFIG_WARNING_ENV-75Y5zVF8.mjs +1 -0
- package/dist/packem_shared/CLOUDFLARE_DRIVER-DbmpoIcg.mjs +1 -0
- package/dist/packem_shared/CLOUDFLARE_TOOLCHAIN_VERSIONS-DWyZ_2QM.mjs +1 -0
- package/dist/packem_shared/COMPOSED_WORKER_ENTRY-LpLlp-aF.mjs +1 -0
- package/dist/packem_shared/D1_PLACEHOLDER_ID-ZnDjVymH.mjs +1 -0
- package/dist/packem_shared/DEFAULT_DEPLOY_TARGET-BlvZ242-.mjs +1 -0
- package/dist/packem_shared/DEFAULT_OBSERVABILITY-CPLADr5u.mjs +1 -0
- package/dist/packem_shared/DEV_BINDINGS_FILE-BUTedHwq.mjs +4 -0
- package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-hBT89IXh.mjs +6 -0
- package/dist/packem_shared/DEV_WORKER_ENV_VALUE-FoysLtF0.mjs +1 -0
- package/dist/packem_shared/GLOBAL_FETCH_STRICTLY_PUBLIC_FLAG-f8CnJha3.mjs +1 -0
- package/dist/packem_shared/LINKED_PROJECT_DIR-Ba5qPEwo.mjs +2 -0
- package/dist/packem_shared/LUNORA_EVENT_SOURCE-Cq0oj0_9.mjs +9 -0
- package/dist/packem_shared/LUNORA_IGNORED_PATHS-U93uPxrW.mjs +19 -0
- package/dist/packem_shared/LUNORA_TAG-DQTGPqcJ.mjs +1 -0
- package/dist/packem_shared/LunoraReporter-f277GLNT.mjs +6 -0
- package/dist/packem_shared/MissingBuildOutputError-BAyekzof.mjs +1 -0
- package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-CPWkw-qE.mjs +1 -0
- package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-BiQ1zNsR.mjs +1 -0
- package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-DgmXfSuu.mjs +1 -0
- package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-BqFeetpX.mjs +1 -0
- package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-D296PlpV.mjs +1 -0
- package/dist/packem_shared/SEED_ENDPOINT-C1fhrehH.mjs +1 -0
- package/dist/packem_shared/STUDIO_PATH-CvVcvTbQ.mjs +1 -0
- package/dist/packem_shared/STUDIO_WRITE_TEMP_SUFFIX-BTTELz3K.mjs +1 -0
- package/dist/packem_shared/UNEXPORTED_CLASS_MARKER-BZEXldUo.mjs +1 -0
- package/dist/packem_shared/WORKERS_CACHE_MIN_DATE-0k9ABJtF.mjs +1 -0
- package/dist/packem_shared/WRANGLER_FILES-BF8PUjuo.mjs +1 -0
- package/dist/packem_shared/acceptsConnection-DHhUYGjT.mjs +2 -0
- package/dist/packem_shared/addArgsFor-CYZKhNIo.mjs +1 -0
- package/dist/packem_shared/applyAdditiveEdit-DEwPKcJg.mjs +6 -0
- package/dist/packem_shared/applyModify-DKP2l6S9.mjs +1 -0
- package/dist/packem_shared/assertBuildTargetMatches-D11J7F38.mjs +1 -0
- package/dist/packem_shared/assertWranglerSatisfiesSchema-_70vhvqk.mjs +3 -0
- package/dist/packem_shared/asset-headers-CPuEX21i.mjs +4 -0
- package/dist/packem_shared/assetContentType-CUb5bpbI.mjs +1 -0
- 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/bindingsNeedingDatabase-3KyGflIq.mjs +3 -0
- package/dist/packem_shared/blockingFindingsMessage-BQ9z7cie.mjs +1 -0
- package/dist/packem_shared/buildPackageSecretsBlock-DrSD60vH.mjs +19 -0
- package/dist/packem_shared/canonicalPath-DrfMiT3U.mjs +1 -0
- package/dist/packem_shared/celld-binding-id-9MiUoteo.mjs +1 -0
- package/dist/packem_shared/celld-config-Ef1RZ02t.mjs +3 -0
- package/dist/packem_shared/checkDevEnv-BwZSVBbB.mjs +3 -0
- package/dist/packem_shared/classifyPolicyEdit-DJi9Fk8G.mjs +24 -0
- package/dist/packem_shared/clearApiSpecMarker-DMGpP41V.mjs +2 -0
- package/dist/packem_shared/collectExportGaps-DvirOIVB.mjs +2 -0
- package/dist/packem_shared/createConfirm-D5mKTMHj.mjs +7 -0
- package/dist/packem_shared/createDiscoveryCache-npJI4uej.mjs +1 -0
- package/dist/packem_shared/createStudioDocumentCache-XBG1aWbl.mjs +1 -0
- package/dist/packem_shared/deploy-driver.d-CHVNQFV2.d.mts +190 -0
- package/dist/packem_shared/deploy-driver.d-CHVNQFV2.d.ts +190 -0
- package/dist/packem_shared/describePreservedCrons-i5XT6rtl.mjs +1 -0
- package/dist/packem_shared/describeWithheld-CN3D-4pU.mjs +1 -0
- package/dist/packem_shared/detectFramework-Dfpvu6rD.mjs +1 -0
- package/dist/packem_shared/devTriggerHints-CN_RJxWW.mjs +1 -0
- package/dist/packem_shared/devVariablesStamp-BQkGEn9d.mjs +1 -0
- package/dist/packem_shared/discover-info-DC2MrAIM.mjs +1 -0
- package/dist/packem_shared/discoverAgentInfo-pqFMJBtJ.mjs +1 -0
- package/dist/packem_shared/discoverContainerInfo-DzXr7Vm3.mjs +1 -0
- package/dist/packem_shared/discoverSchemaInfo-DRPnqgif.mjs +1 -0
- package/dist/packem_shared/discoverWorkflowInfo-zW7Tt0Tn.mjs +1 -0
- package/dist/packem_shared/emitProjectAssetHeaders-BdqdTVN3.mjs +1 -0
- package/dist/packem_shared/ensureGitignoreEntries-Tsk8Qkw7.mjs +7 -0
- package/dist/packem_shared/env-flag-u4B05gLp.mjs +1 -0
- package/dist/packem_shared/hasCloudflareCredentials-ByCrwaLT.mjs +1 -0
- package/dist/packem_shared/index.d-BoUSSRrk.d.mts +270 -0
- package/dist/packem_shared/index.d-C1nVDcie.d.ts +270 -0
- package/dist/packem_shared/inferLunoraBindings-BUk28bSQ.mjs +1 -0
- package/dist/packem_shared/is-plain-object-CWxHeOY1.mjs +1 -0
- package/dist/packem_shared/is-within-directory-DRMw89rK.mjs +1 -0
- package/dist/packem_shared/isOwnedStudioAssets-CHII-uIX.mjs +1 -0
- package/dist/packem_shared/materializeServiceDevConfigs-CdmKflBp.mjs +1 -0
- package/dist/packem_shared/mergeWranglerEnvironment-CxT2PV1N.mjs +1 -0
- package/dist/packem_shared/parseSchema-D1Wbr1qv.mjs +1 -0
- package/dist/packem_shared/pendingBindingChanges-DkVojIQe.mjs +1 -0
- package/dist/packem_shared/placeholder-ids.d-DvGHP6bl.d.mts +338 -0
- package/dist/packem_shared/placeholder-ids.d-DvGHP6bl.d.ts +338 -0
- package/dist/packem_shared/policy-scaffold.d-D2H4_G01.d.mts +86 -0
- package/dist/packem_shared/policy-scaffold.d-D2H4_G01.d.ts +86 -0
- package/dist/packem_shared/probeCelldToolchain-DxDttfHy.mjs +1 -0
- package/dist/packem_shared/process-tree-once-Ou4SfxKM.mjs +1 -0
- package/dist/packem_shared/queue-info-D38n7YdX.mjs +1 -0
- package/dist/packem_shared/readManifest-Cighz3WC.mjs +6 -0
- package/dist/packem_shared/readProjectDependencies-l3uhUKjo.mjs +1 -0
- package/dist/packem_shared/reconcile-services-CjgIJKim.mjs +1 -0
- package/dist/packem_shared/reconcileWranglerBindings-D6B81UKU.mjs +1 -0
- package/dist/packem_shared/reconcileWranglerCompatibilityDate-Cj94osA-.mjs +1 -0
- package/dist/packem_shared/renderStudioHtml-CRDTNivi.mjs +15 -0
- package/dist/packem_shared/resolveLocalWorkerEnv-C1s-quRt.mjs +1 -0
- package/dist/packem_shared/resolveSchemaDirectory-Ca5P6KuP.mjs +1 -0
- package/dist/packem_shared/runPostCodegenHook-Dx3yTsYZ.mjs +1 -0
- package/dist/packem_shared/scanWranglerVariablesForSecrets-DmdOBmwn.mjs +1 -0
- package/dist/packem_shared/secret-key-xi4VK8Jw.mjs +1 -0
- package/dist/packem_shared/sendStudioAsset-B81Pex91.mjs +1 -0
- package/dist/packem_shared/serveJsonHandler-B8_GE6QC.mjs +1 -0
- package/dist/packem_shared/spa-assets-wX8rTPEQ.mjs +1 -0
- package/dist/packem_shared/startCelldDevSession-DfuDVsha.mjs +1 -0
- package/dist/packem_shared/streamContainerLogs-0nko1qpv.mjs +2 -0
- package/dist/packem_shared/studio-assets-BKWx838V.mjs +1 -0
- package/dist/packem_shared/validate-bindings-DSMH8bRQ.mjs +1 -0
- package/dist/packem_shared/withTailConsumer-BXOIqXxv.mjs +1 -0
- package/dist/packem_shared/wranglerCodegenInputs-B8iRZZZw.mjs +1 -0
- package/dist/packem_shared/wranglerToAlchemy-ClIdvJFu.mjs +5 -0
- package/dist/packem_shared/write-atomic-9sY2z8DB.mjs +3 -0
- package/dist/packem_shared/writeAssetHeaders-C5igmezc.mjs +1 -0
- package/dist/studio-host/index.d.mts +371 -136
- package/dist/studio-host/index.d.ts +371 -136
- package/dist/studio-host/index.mjs +1 -7
- package/package.json +43 -10
- package/dist/packem_shared/ACCENT-DW1XJn8i.mjs +0 -40
- package/dist/packem_shared/AGENT_MODE_ENV-DM1Siczo.mjs +0 -17
- package/dist/packem_shared/AGENT_RULES_DIR-lcgC08aE.mjs +0 -40
- package/dist/packem_shared/DEV_DAEMON_ENV-FIEtW7Fz.mjs +0 -163
- package/dist/packem_shared/DEV_VARS_EXAMPLE_FILE-dJPNTEnK.mjs +0 -37
- package/dist/packem_shared/LINKED_PROJECT_DIR-CXwXzV_C.mjs +0 -52
- package/dist/packem_shared/LUNORA_CONFIG_FILE-CtcIcB5-.mjs +0 -34
- package/dist/packem_shared/LUNORA_EVENT_SOURCE-D2fDeGB6.mjs +0 -86
- package/dist/packem_shared/LunoraReporter-Ci-bDCK9.mjs +0 -70
- package/dist/packem_shared/PACKAGE_SECRETS_REGISTRY-B8t_SdoZ.mjs +0 -70
- package/dist/packem_shared/POLICY_SCAFFOLD_ENDPOINT-8bNMHGiu.mjs +0 -104
- package/dist/packem_shared/REMOTE_ELIGIBLE_KEYS-BC7_e9Bz.mjs +0 -105
- package/dist/packem_shared/REQUIRED_COMPATIBILITY_DATE-2YYyWJUq.mjs +0 -561
- package/dist/packem_shared/SCHEMA_EDIT_ENDPOINT-Df-Wrix-.mjs +0 -99
- package/dist/packem_shared/SEED_ENDPOINT-DVCjaGO-.mjs +0 -61
- package/dist/packem_shared/WRANGLER_FILES-DwSuC-Kn.mjs +0 -25
- package/dist/packem_shared/applyAdditiveEdit-C-snTFEV.mjs +0 -228
- package/dist/packem_shared/assetContentType-ByZjeV3D.mjs +0 -72
- package/dist/packem_shared/buildPackageSecretsBlock-B8iSX1Zo.mjs +0 -281
- package/dist/packem_shared/classifyPolicyEdit-BHeAqF8P.mjs +0 -99
- package/dist/packem_shared/createConfirm-fvpdgJ9s.mjs +0 -100
- package/dist/packem_shared/detectFramework-U08038Yp.mjs +0 -41
- package/dist/packem_shared/discoverContainerInfo-BXFs6Wav.mjs +0 -19
- package/dist/packem_shared/discoverSchemaInfo-BB-CKlTK.mjs +0 -25
- package/dist/packem_shared/discoverWorkflowInfo-CedvR0mn.mjs +0 -19
- package/dist/packem_shared/inferLunoraBindings-ByMwG-gH.mjs +0 -352
- package/dist/packem_shared/parseDevVariable-CJiq2IwE.mjs +0 -30
- package/dist/packem_shared/parseSchema-DSeyktvG.mjs +0 -107
- package/dist/packem_shared/policy-scaffold.d-DCmwn7zQ.d.mts +0 -74
- package/dist/packem_shared/policy-scaffold.d-DCmwn7zQ.d.ts +0 -74
- package/dist/packem_shared/reconcileWranglerBindings-Cruwwx1M.mjs +0 -334
- package/dist/packem_shared/renderStudioHtml-449Ysn75.mjs +0 -37
- package/dist/packem_shared/serveJsonHandler-B4OLTGLS.mjs +0 -86
- package/dist/packem_shared/streamContainerLogs-BZ4cOZwH.mjs +0 -157
|
@@ -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};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { b as AGENT_RULES_HINT, D as DEFAULT_DEPLOY_TARGET, l as LUNORA_TAG, n as LunoraReporter, type P as PackageManager, type o as PackageManagerProbe, S as STEP_BADGE_NAMES, type p as StepBadgeName, q as addArgsFor, u as claimAgentRulesHint, v as deployTargetIds, w as detectAgentRules, x as detectInstalledManagers, y as detectPackageManager, z as execArgsFor, C as installArgsFor, E as isRunnableTarget, F as lunoraLine, N as readProjectManifest, U as runScriptCommand, V as runnableTargetIds, X as toolchainExecArgs } from "../packem_shared/index.d-BoUSSRrk.mjs";
|
|
2
|
+
import "../packem_shared/deploy-driver.d-CHVNQFV2.mjs";
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
export { b as AGENT_RULES_HINT, D as DEFAULT_DEPLOY_TARGET, l as LUNORA_TAG, n as LunoraReporter, type P as PackageManager, type o as PackageManagerProbe, S as STEP_BADGE_NAMES, type p as StepBadgeName, q as addArgsFor, u as claimAgentRulesHint, v as deployTargetIds, w as detectAgentRules, x as detectInstalledManagers, y as detectPackageManager, z as execArgsFor, C as installArgsFor, E as isRunnableTarget, F as lunoraLine, N as readProjectManifest, U as runScriptCommand, V as runnableTargetIds, X as toolchainExecArgs } from "../packem_shared/index.d-C1nVDcie.js";
|
|
2
|
+
import "../packem_shared/deploy-driver.d-CHVNQFV2.js";
|
|
@@ -0,0 +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-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};
|