@fjall/util 22.0.0 → 24.0.0
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/.build-source-hash +9 -9
- package/dist/.minified +1 -1
- package/dist/config.d.ts +8 -0
- package/dist/environments.d.ts +48 -0
- package/dist/environments.js +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/dist/logRotation.d.ts +18 -0
- package/dist/logRotation.js +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/patternTypes.d.ts +43 -2
- package/dist/patterns/patternTypes.js +1 -1
- package/package.json +1 -1
package/dist/.build-source-hash
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"package.json",
|
|
10
10
|
"tsconfig.json"
|
|
11
11
|
],
|
|
12
|
-
"hash": "
|
|
12
|
+
"hash": "c53c2c5612ae935586ca67693393d75d331736cdcd1da26e1926ccb0a4036ee4",
|
|
13
13
|
"files": {
|
|
14
14
|
"src/async/concurrency.ts": "3c7ebe0222a720f9",
|
|
15
15
|
"src/async/singleton.ts": "7bcc21b0fb920561",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"src/cdkToolchain.ts": "a6b996c60b87d644",
|
|
34
34
|
"src/cfn/physicalNameProperties.ts": "35d3c6f28079c593",
|
|
35
35
|
"src/clickhouse.ts": "655c74cdba292c29",
|
|
36
|
-
"src/config.ts": "
|
|
36
|
+
"src/config.ts": "356b552c05b462e5",
|
|
37
37
|
"src/configPaths.ts": "afcc2e4ceb6652a0",
|
|
38
38
|
"src/constructMap.ts": "b81fc8e90015467f",
|
|
39
39
|
"src/deploy/approvalTokenOutput.ts": "4be7b52825d88a37",
|
|
@@ -63,7 +63,7 @@
|
|
|
63
63
|
"src/docker/rawjsonParser.ts": "b9e5218abc326fa5",
|
|
64
64
|
"src/docker/rawjsonToVertexEvent.ts": "a356190727f0d1a4",
|
|
65
65
|
"src/docker/result.ts": "2ff0d59a3add8b06",
|
|
66
|
-
"src/environments.ts": "
|
|
66
|
+
"src/environments.ts": "a05afb198a7b67ce",
|
|
67
67
|
"src/errorUtils.ts": "c601f2905c74b8d0",
|
|
68
68
|
"src/errors/absence.ts": "390fea350ffbb4e5",
|
|
69
69
|
"src/failure/deploymentFailure.ts": "5824db1d97d01838",
|
|
@@ -72,7 +72,7 @@
|
|
|
72
72
|
"src/fsHelpers.ts": "4dd3877b3953c6a9",
|
|
73
73
|
"src/fsScan.ts": "feb187758481443f",
|
|
74
74
|
"src/httpKeepAlive.ts": "c8fe4b118ef4c79f",
|
|
75
|
-
"src/index.ts": "
|
|
75
|
+
"src/index.ts": "63cd9cf557340151",
|
|
76
76
|
"src/infra/backupVault.ts": "661678a6dfb0b648",
|
|
77
77
|
"src/infra/connectionsWire.ts": "e3afa3ba95a531d8",
|
|
78
78
|
"src/infra/deployArtefacts.ts": "235ac21dd3ccf0b2",
|
|
@@ -82,7 +82,7 @@
|
|
|
82
82
|
"src/infra/regions.ts": "26b80d7cea05454c",
|
|
83
83
|
"src/infra/tokenScopes.ts": "88c6a1f0da3fa491",
|
|
84
84
|
"src/insights/computePatternFingerprint.ts": "b5d3a4704f42cc1f",
|
|
85
|
-
"src/logRotation.ts": "
|
|
85
|
+
"src/logRotation.ts": "5ea989894082107b",
|
|
86
86
|
"src/logger.ts": "865ec4ec62a9a588",
|
|
87
87
|
"src/manifest/index.ts": "bfa2930556c2f8ad",
|
|
88
88
|
"src/manifest/io.ts": "915ab602ac92d126",
|
|
@@ -107,8 +107,8 @@
|
|
|
107
107
|
"src/onboarding/index.ts": "7999117c5a7a18d1",
|
|
108
108
|
"src/onboarding/versionCurrency.ts": "19695f38b09cfc46",
|
|
109
109
|
"src/patterns/frameworkPatterns.ts": "0f843cb043eb11fc",
|
|
110
|
-
"src/patterns/index.ts": "
|
|
111
|
-
"src/patterns/patternTypes.ts": "
|
|
110
|
+
"src/patterns/index.ts": "796c656a81bb39d0",
|
|
111
|
+
"src/patterns/patternTypes.ts": "28c3c5bc40d66798",
|
|
112
112
|
"src/patterns/staticSiteForms.ts": "86ffcf142d9a8eac",
|
|
113
113
|
"src/repo/appPath.ts": "9aa0d01262b88e65",
|
|
114
114
|
"src/repo/findInfrastructurePaths.ts": "dd1245f5d4004dd5",
|
|
@@ -125,9 +125,9 @@
|
|
|
125
125
|
"src/securityHelpers.ts": "1e68e1330c6da971",
|
|
126
126
|
"src/targets.ts": "126280f0a5762e21",
|
|
127
127
|
"../scripts/minify-dist.mjs": "6b2e4b0df8aec601",
|
|
128
|
-
"package.json": "
|
|
128
|
+
"package.json": "98cca5f36953124c",
|
|
129
129
|
"tsconfig.json": "db759831ad95f396"
|
|
130
130
|
},
|
|
131
|
-
"outputHash": "
|
|
131
|
+
"outputHash": "e8e1679d3452b3da4a6c1a246a31e7b8c59bc0433ba9267c222c95c2e21207a7",
|
|
132
132
|
"outputFileCount": 235
|
|
133
133
|
}
|
package/dist/.minified
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
117 files minified at 2026-08-
|
|
1
|
+
117 files minified at 2026-08-30T07:28:27.256Z
|
package/dist/config.d.ts
CHANGED
|
@@ -115,6 +115,14 @@ export type ProviderAccount = {
|
|
|
115
115
|
*/
|
|
116
116
|
acknowledgeTrailHistoryLoss?: boolean;
|
|
117
117
|
};
|
|
118
|
+
/**
|
|
119
|
+
* Assertion-only PUT entry for the org-config provider-accounts write. The
|
|
120
|
+
* API preserves every axis the payload does not carry (absent ≠ null: null
|
|
121
|
+
* clears the stage, absent leaves the stored value alone), so producers push
|
|
122
|
+
* only the fields they actually know — fabricating a name or a null stage for
|
|
123
|
+
* an unknown account overwrites curated registry state.
|
|
124
|
+
*/
|
|
125
|
+
export type ProviderAccountUpdate = Pick<ProviderAccount, "id"> & Partial<Omit<ProviderAccount, "id">>;
|
|
118
126
|
export type Profile = {
|
|
119
127
|
type: "sso" | "oidc";
|
|
120
128
|
region: string;
|
package/dist/environments.d.ts
CHANGED
|
@@ -97,6 +97,54 @@ export declare function isGovernanceTier(tier: string): boolean;
|
|
|
97
97
|
* role from a stage. See decisions/2026-06-07-account-tier-vs-stage-separation.md.
|
|
98
98
|
*/
|
|
99
99
|
export declare function environmentToTier(environment: string | null | undefined): AccountTier;
|
|
100
|
+
/**
|
|
101
|
+
* What choosing a workload STAGE does to an account's structural TIER, and
|
|
102
|
+
* what that costs the caller. The two axes are independent — nothing derives
|
|
103
|
+
* one from the other on a write path — but they share the literal "platform",
|
|
104
|
+
* and the normal connect path sends no explicit tier, so
|
|
105
|
+
* [[environmentToTier]] decides the tier from the stage the caller picked. A
|
|
106
|
+
* caller shown the five stages as five equal choices cannot see that one of
|
|
107
|
+
* them lands the account on a tier no application can target.
|
|
108
|
+
*
|
|
109
|
+
* `tier` and `targetable` are DERIVED from [[environmentToTier]], the single
|
|
110
|
+
* sanctioned decoder, so they cannot drift from what a connect actually does.
|
|
111
|
+
* Only the copy is authored, and `Record<AccountStage, …>` below means a new
|
|
112
|
+
* stage does not compile until someone states its consequence.
|
|
113
|
+
*/
|
|
114
|
+
export interface AccountStageEffect {
|
|
115
|
+
readonly stage: AccountStage;
|
|
116
|
+
readonly label: string;
|
|
117
|
+
/** The tier a connect lands on when it sends this stage and no explicit tier. */
|
|
118
|
+
readonly tier: AccountTier;
|
|
119
|
+
/**
|
|
120
|
+
* Whether an application can deploy to an account on this stage. False for
|
|
121
|
+
* structural tiers: they are filtered out of account pickers and their
|
|
122
|
+
* deploys are governance operations.
|
|
123
|
+
*/
|
|
124
|
+
readonly targetable: boolean;
|
|
125
|
+
/** One-line hint for a picker row (Ink `SelectOption.description`). */
|
|
126
|
+
readonly summary: string;
|
|
127
|
+
/** Full prose consequence for documentation and agent-skill surfaces. */
|
|
128
|
+
readonly consequence: string;
|
|
129
|
+
}
|
|
130
|
+
/** Resolve the tier consequence of a workload stage. */
|
|
131
|
+
export declare function accountStageEffect(stage: AccountStage): AccountStageEffect;
|
|
132
|
+
/**
|
|
133
|
+
* Every workload stage with its tier consequence, in [[ACCOUNT_STAGES]] order.
|
|
134
|
+
* Surfaces that PRESENT the stage list to a human or an agent render from this
|
|
135
|
+
* rather than restating the tuple, so the consequence travels with the option.
|
|
136
|
+
* See decisions/2026-06-07-account-tier-vs-stage-separation.md.
|
|
137
|
+
*/
|
|
138
|
+
export declare const ACCOUNT_STAGE_EFFECTS: readonly AccountStageEffect[];
|
|
139
|
+
/**
|
|
140
|
+
* The stage list for a ONE-LINE surface — `--environment` flag help, the
|
|
141
|
+
* non-interactive "valid environments" error — with any structural stage
|
|
142
|
+
* marked inline. Surfaces with room for a full sentence render
|
|
143
|
+
* [[ACCOUNT_STAGE_EFFECTS]] and its `summary`/`consequence` instead; this is
|
|
144
|
+
* the degenerate rendering for places that get one line, and it exists so
|
|
145
|
+
* those places are not the last flat `ACCOUNT_STAGES.join(", ")` left.
|
|
146
|
+
*/
|
|
147
|
+
export declare function formatAccountStageList(): string;
|
|
100
148
|
/**
|
|
101
149
|
* Decode an inbound wire `environment` to its workload STAGE, or null. "root"
|
|
102
150
|
* (the management account — no workloads), empty, null, or any unknown string
|
package/dist/environments.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var T=Object.defineProperty;var e=(t,r)=>T(t,"name",{value:r,configurable:!0});import{z as O}from"zod";const c=["production","staging","development","platform","compliance"],s={production:"Production",staging:"Staging",development:"Development",platform:"Platform",compliance:"Compliance"},m=new Set(c);function u(t){return m.has(t)}e(u,"isAccountStage");const n={ROOT:"root",PLATFORM:"platform"},h=[...c,n.ROOT];function U(t){return u(t)?s[t]:t.charAt(0).toUpperCase()+t.slice(1)}e(U,"getEnvironmentLabel");const p=["organisation","platform","account"],x=O.enum(p),o={ORGANISATION:"organisation",PLATFORM:"platform",ACCOUNT:"account"},A={[o.ORGANISATION]:!0,[o.PLATFORM]:!0,[o.ACCOUNT]:!0},C=new Set(Object.keys(A));function y(t){return C.has(t)}e(y,"isAccountTier");const f=p.filter(t=>t!==o.ACCOUNT),E=new Set(f);function v(t){return E.has(t)}e(v,"isGovernanceTier");function l(t){return t===n.ROOT?"organisation":t===n.PLATFORM?"platform":"account"}e(l,"environmentToTier");const a="Workload account \xB7 applications deploy here",i="Workload account. Applications deploy here, it appears in `fjall accounts list`, and it is selectable as a deploy target.",d={production:{summary:a,consequence:i},staging:{summary:a,consequence:i},development:{summary:a,consequence:i},compliance:{summary:a,consequence:"Workload account, conventionally reserved for audit and compliance workloads. Otherwise a normal deploy target."},platform:{summary:"Structural \xB7 shared infrastructure, NOT an app deploy target",consequence:'Structural, not a workload environment: "platform" is also a TIER name, and the connect path derives the tier from the environment, so choosing it registers the account on the platform tier. That tier hosts shared infrastructure (IPAM, Transit Gateway): it is filtered OUT of `fjall accounts list`, no application can target it, and deploying to it is a governance operation needing the `deploy:governance` grant. Choose it only for a genuine shared-services account \u2014 never as "the environment my app runs in".'}};function S(t){const r=l(t);return{stage:t,label:s[t],tier:r,targetable:r===o.ACCOUNT,...d[t]}}e(S,"accountStageEffect");const g=c.map(S);function I(){return g.map(t=>t.targetable?t.stage:`${t.stage} (structural \u2014 not an app deploy target)`).join(", ")}e(I,"formatAccountStageList");function L(t){return t==null||t===""||t===n.ROOT?null:u(t)?t:null}e(L,"stageFromWireEnvironment");function N(t){return t.tier??l(t.environment)}e(N,"accountTier");function G(t){return N(t)==="organisation"?n.ROOT:t.environment??void 0}e(G,"resolveSynthEnvironment");export{o as ACCOUNT_ROLES,c as ACCOUNT_STAGES,h as ACCOUNT_STAGES_WITH_ROOT,g as ACCOUNT_STAGE_EFFECTS,s as ACCOUNT_STAGE_LABELS,p as ACCOUNT_TIERS,x as AccountTierSchema,f as GOVERNANCE_ACCOUNT_TIERS,n as STRUCTURAL_ENVIRONMENTS,S as accountStageEffect,N as accountTier,l as environmentToTier,I as formatAccountStageList,U as getEnvironmentLabel,u as isAccountStage,y as isAccountTier,v as isGovernanceTier,G as resolveSynthEnvironment,L as stageFromWireEnvironment};
|
package/dist/index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export { singleton } from "./async/singleton.js";
|
|
|
13
13
|
export { DANGEROUS_ENV_VARS, filterDangerousEnvVars, MASKED_VALUE_MARKER, maskSensitiveOutput, parseShellArgs, REDACTED_KEY_SENTINEL, SCOPED_TOKEN_REGEX } from "./securityHelpers.js";
|
|
14
14
|
export { sleep } from "./async/sleep.js";
|
|
15
15
|
export { mapSettledWithConcurrency } from "./async/concurrency.js";
|
|
16
|
-
export { ACCOUNT_STAGES_WITH_ROOT, STRUCTURAL_ENVIRONMENTS, ACCOUNT_STAGES, ACCOUNT_STAGE_LABELS, isAccountStage, ACCOUNT_TIERS, type AccountTier, AccountTierSchema, isAccountTier, GOVERNANCE_ACCOUNT_TIERS, isGovernanceTier, environmentToTier, stageFromWireEnvironment, accountTier, resolveSynthEnvironment, type AccountStageWithRoot, type AccountStage, getEnvironmentLabel, ACCOUNT_ROLES } from "./environments.js";
|
|
16
|
+
export { ACCOUNT_STAGES_WITH_ROOT, STRUCTURAL_ENVIRONMENTS, ACCOUNT_STAGES, ACCOUNT_STAGE_LABELS, isAccountStage, ACCOUNT_TIERS, type AccountTier, AccountTierSchema, isAccountTier, GOVERNANCE_ACCOUNT_TIERS, isGovernanceTier, environmentToTier, type AccountStageEffect, accountStageEffect, ACCOUNT_STAGE_EFFECTS, formatAccountStageList, stageFromWireEnvironment, accountTier, resolveSynthEnvironment, type AccountStageWithRoot, type AccountStage, getEnvironmentLabel, ACCOUNT_ROLES } from "./environments.js";
|
|
17
17
|
export { RESOURCE_CATEGORIES, type ResourceCategory, categoriseResource, getExpectedDuration, getFriendlyResourceType } from "./resourceCategorisation.js";
|
|
18
18
|
export { parseGitRemoteUrl, type GitProvider, type ParsedGitRemote } from "./repo/gitRemoteParser.js";
|
|
19
19
|
export { abbreviateRegion, AWS_REGIONS_METADATA, DEFAULT_REGION, getRegionInfo, MAX_SECONDARY_REGIONS, OPT_IN_REGION_CODES, optInRegionWarning, regions, suggestRegionForTimezone, type RegionCode, type RegionInfo } from "./infra/regions.js";
|
|
@@ -33,7 +33,7 @@ export { MIGRATION_SNAPSHOT_NAME_PREFIX, EXPECTED_SCHEMA_VERSION_ENV, EXPECTED_S
|
|
|
33
33
|
export { SCHEMA_GATE_EXIT, SCHEMA_GATE_EXIT_HINTS, schemaGateExitKind, type SchemaGateExitKind, type SchemaGateExitCode } from "./migration/schemaGateExit.js";
|
|
34
34
|
export { FJALL_SCHEMA_GATE_USER, FJALL_MAINTENANCE_USER, FJALL_CLICKHOUSE_USERS, type FjallClickHouseUser } from "./migration/clickhouseFrameworkUsers.js";
|
|
35
35
|
export { PHYSICAL_NAME_FALLBACK_PROPERTIES } from "./cfn/physicalNameProperties.js";
|
|
36
|
-
export { PATTERN_TYPE_VALUES, type PatternType, PATTERN_TYPES, isPatternType, type PatternArtefact, type PatternStackPlacement, type PatternDescriptor, PATTERN_REGISTRY, patternConstructId, DEPLOYABLE_PATTERN_TYPES, type OpenNextPatternType, OPENNEXT_PATTERN_TYPES, isOpenNextPatternType, STATIC_SITE_ROUTING_VALUES, type StaticSiteRouting, PATTERN_CREATE_INPUT_VALUES, type PatternCreateInput, PATTERN_CREATE_INPUT_FLAGS } from "./patterns/patternTypes.js";
|
|
36
|
+
export { PATTERN_TYPE_VALUES, type PatternType, PATTERN_TYPES, isPatternType, type PatternArtefact, type PatternStackPlacement, type PatternDescriptor, PATTERN_REGISTRY, patternConstructId, DEPLOYABLE_PATTERN_TYPES, type OpenNextPatternType, OPENNEXT_PATTERN_TYPES, isOpenNextPatternType, STATIC_SITE_ROUTING_VALUES, STATIC_SITE_ROUTING_INFO, type StaticSiteRouting, type StaticSiteRoutingDescriptor, PATTERN_CREATE_INPUT_VALUES, type PatternCreateInput, PATTERN_CREATE_INPUT_FLAGS } from "./patterns/patternTypes.js";
|
|
37
37
|
export { FRAMEWORK_VALUES, type Framework, FRAMEWORKS, isFramework, type DeployablePatternType, type UndeployablePatternType, type PatternRecommendation, FRAMEWORK_PATTERN_RECOMMENDATIONS, recommendPatternForFramework, CREATABLE_FRAMEWORKS, requiredInputsForFramework } from "./patterns/frameworkPatterns.js";
|
|
38
38
|
export { DEFAULT_FORMS_FROM_LOCAL_PART, defaultFormsFromAddress, defaultFormsCorsOrigin, isAddressAtDomain } from "./patterns/staticSiteForms.js";
|
|
39
39
|
export { DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION, DEV_SUBSTRATE_PARAMS_FILENAME, DevSubstrateSynthPropsSchema, type DevSubstrateSynthProps, DevSubstrateParamsSchema, type DevSubstrateParams } from "./devSubstrate/params.js";
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{DNS_APEX as r,getDomainExportNames as _,getDomainStackName as o,getDomainUsEast1CertificatesStackName as t,hostsExportPartName as A,serialiseHostsChunks as T,HOSTS_OUTPUT_MAX_BYTES as S,isManagedDomainBinding as a,DOMAIN_DEPLOY_DEFAULT_PHASE as N}from"./infra/domainExports.js";import{BACKUP_VAULT_NAME as i}from"./infra/backupVault.js";import{APPROVAL_TOKEN_OUTPUT_PREFIX as O,TOKEN_STDERR_PREFIX as m}from"./deploy/approvalTokenOutput.js";import{imageTagParameterName as I}from"./infra/imageTags.js";import{toPascalCase as L,toKebab as s,toValidDatabaseName as p,toScreamingSnake as D,capitalise as M,getSafeZoneName as c,accountConstructKey as f,hasAsciiStableConstructKey as F}from"./naming/caseConversion.js";import{albDnsExportName as l,albHostedZoneIdExportName as u,cdnDomainExportName as d,bucketWebsiteEndpointExportName as x,bucketWebsiteHostedZoneIdExportName as g}from"./naming/targetExportNames.js";import{CAPACITY_SLOT_PATTERN as h,CAPACITY_SLOT_MAX_LENGTH as H,DEFAULT_CAPACITY_SLOT as V,CAPACITY_ANCHOR_PATTERN as Y,CAPACITY_ANCHOR_MAX_LENGTH as y,CAPACITY_IDENTITY_CONTEXT_KEY as K,CapacityIdentityPinSchema as v,CapacityIdentityWireSchema as X,CapacityIdentityConfigSchema as b,projectCapacityIdentityToTarget as B}from"./capacityIdentity.js";import{findAccountNameCollision as J}from"./naming/accountNameCollision.js";import{defaultConnectedAccountName as j,suffixedAccountName as w,REGION_SHORT_CODES as Z,findTrailingRegionShortCode as q,regionSuffixRejectionMessage as z}from"./naming/connectedAccountName.js";import{normaliseError as $,getErrorMessage as ee,hasErrorCode as Ee,getErrorCode as re,getErrorStack as _e,formatErrorString as oe}from"./errorUtils.js";import{FJALL_CONFIG_DIR_ENV as Ae,FJALL_CREDENTIALS_FILENAME as Te,FJALL_HOME_DIRNAME as Se,FJALL_LOG_DIR_ENV as ae,fjallCredentialsPath as Ne,fjallHomeDir as Re,fjallLogDir as ie,fjallStatePath as ne}from"./fjallHome.js";import{singleton as me}from"./async/singleton.js";import{DANGEROUS_ENV_VARS as Ie,filterDangerousEnvVars as Pe,MASKED_VALUE_MARKER as Le,maskSensitiveOutput as se,parseShellArgs as pe,REDACTED_KEY_SENTINEL as De,SCOPED_TOKEN_REGEX as Me}from"./securityHelpers.js";import{sleep as fe}from"./async/sleep.js";import{mapSettledWithConcurrency as Ue}from"./async/concurrency.js";import{ACCOUNT_STAGES_WITH_ROOT as ue,STRUCTURAL_ENVIRONMENTS as de,ACCOUNT_STAGES as xe,ACCOUNT_STAGE_LABELS as ge,isAccountStage as Ge,ACCOUNT_TIERS as he,AccountTierSchema as He,isAccountTier as Ve,GOVERNANCE_ACCOUNT_TIERS as Ye,isGovernanceTier as ye,environmentToTier as Ke,stageFromWireEnvironment as ve,accountTier as Xe,resolveSynthEnvironment as be,getEnvironmentLabel as Be,ACCOUNT_ROLES as We}from"./environments.js";import{RESOURCE_CATEGORIES as ke,categoriseResource as je,getExpectedDuration as we,getFriendlyResourceType as Ze}from"./resourceCategorisation.js";import{parseGitRemoteUrl as ze}from"./repo/gitRemoteParser.js";import{abbreviateRegion as $e,AWS_REGIONS_METADATA as eE,DEFAULT_REGION as EE,getRegionInfo as rE,MAX_SECONDARY_REGIONS as _E,OPT_IN_REGION_CODES as oE,optInRegionWarning as tE,regions as AE,suggestRegionForTimezone as TE}from"./infra/regions.js";import{SCOPE_VALUES as aE,MACHINE_ONLY_SCOPES as NE,USER_GRANTABLE_SCOPES as RE,GOVERNANCE_SCOPE_REQUIRED_CODE as iE}from"./infra/tokenScopes.js";import{SECRET_NAME_PATTERN as OE,SECRET_NAME_ERROR as mE,SSM_COMPONENT_PATTERN as CE,SSM_COMPONENT_ERROR as IE,SSM_STANDARD_MAX_VALUE_BYTES as PE,SecretNamespaceSchema as LE,buildNamespaceParts as sE,buildParameterPath as pE,parseParameterPath as DE,isManageablePath as ME,parseDotEnv as cE,escapeDotEnvValue as fE}from"./secrets.js";import{ConnectionWireSchema as UE,ConnectionsListResponseSchema as lE,CONNECTION_PHASES as uE,CONNECTION_TERMINAL_FAILURE_PHASES as dE,CONNECTION_FAILURE_REASONS as xE,EXTERNAL_ID_PATTERN as gE}from"./infra/connectionsWire.js";import{PUBLIC_PACKAGE_NAME as hE,INSTALL_SOURCES as HE,SETUP_COMMANDS as VE,upgradeCommand as YE,SETUP_MODES as yE,SETUP_STEP_IDS as KE,SETUP_STEPS as vE,AGENT_SETUP_PROMPTS as XE,AGENT_INSTALL_COMMAND as bE,SKILL_INSTALL_SEGMENTS as BE,SKILL_INSTALL_FILENAME as WE,SKILL_INSTALL_PATH as JE}from"./onboarding/index.js";import{deriveRegionsFromOrgConfig as jE,deriveTargets as wE,deriveAllTargets as ZE,environmentOrTier as qE,findTarget as zE,generateTargetName as QE}from"./targets.js";import{buildAppConfigPath as er}from"./repo/appPath.js";import{findInfrastructurePaths as rr,findBoundaryPath as _r,isInfrastructureFile as or}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as Ar}from"./repo/inferContainerFromCandidates.js";import{RESERVED_APP_NAMES as Sr,RESERVED_APP_NAME_MESSAGE as ar,isReservedAppName as Nr,RESERVED_APP_NAME_SUFFIX as Rr,RESERVED_APP_NAME_SUFFIX_MESSAGE as ir,hasReservedAppNameSuffix as nr}from"./naming/reservedAppNames.js";import{deriveContentHashTag as mr,CONTENT_HASH_TAG_PATTERN as Cr}from"./infra/deriveContentHashTag.js";import{DEPLOY_MODES as Pr,DeployModeSchema as Lr,IMAGE_TAG_PATTERN as sr,ImageTagSchema as pr,ServiceArtefactSchema as Dr,ServiceArtefactsSchema as Mr,ARTEFACT_OUTPUT_FIELDS as cr,artefactOutputKey as fr}from"./infra/deployArtefacts.js";import{MIGRATION_SNAPSHOT_NAME_PREFIX as Ur,EXPECTED_SCHEMA_VERSION_ENV as lr,EXPECTED_SCHEMA_VERSION_TOOL_ENV as ur,EXPECTED_CH_SCHEMA_VERSION_ENV as dr,SCHEMA_ADMIN_USER_ENV as xr,SCHEMA_ADMIN_PASSWORD_ENV as gr,PRISMA_MIGRATION_DIR_RE as Gr,CLICKHOUSE_MIGRATION_SKIP_RE as hr}from"./migration/constants.js";import{SCHEMA_GATE_EXIT as Vr,SCHEMA_GATE_EXIT_HINTS as Yr,schemaGateExitKind as yr}from"./migration/schemaGateExit.js";import{FJALL_SCHEMA_GATE_USER as vr,FJALL_MAINTENANCE_USER as Xr,FJALL_CLICKHOUSE_USERS as br}from"./migration/clickhouseFrameworkUsers.js";import{PHYSICAL_NAME_FALLBACK_PROPERTIES as Wr}from"./cfn/physicalNameProperties.js";import{PATTERN_TYPE_VALUES as kr,PATTERN_TYPES as jr,isPatternType as wr,PATTERN_REGISTRY as Zr,patternConstructId as qr,DEPLOYABLE_PATTERN_TYPES as zr,OPENNEXT_PATTERN_TYPES as Qr,isOpenNextPatternType as $r,STATIC_SITE_ROUTING_VALUES as e_,PATTERN_CREATE_INPUT_VALUES as E_,PATTERN_CREATE_INPUT_FLAGS as r_}from"./patterns/patternTypes.js";import{FRAMEWORK_VALUES as o_,FRAMEWORKS as t_,isFramework as A_,FRAMEWORK_PATTERN_RECOMMENDATIONS as T_,recommendPatternForFramework as S_,CREATABLE_FRAMEWORKS as a_,requiredInputsForFramework as N_}from"./patterns/frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as i_,defaultFormsFromAddress as n_,defaultFormsCorsOrigin as O_,isAddressAtDomain as m_}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as I_,DEV_SUBSTRATE_PARAMS_FILENAME as P_,DevSubstrateSynthPropsSchema as L_,DevSubstrateParamsSchema as s_}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as D_}from"./devSubstrate/entrypoint.js";import{BLESSED_CDK_TOOLCHAIN as c_}from"./cdkToolchain.js";import{DEPLOYMENT_FAILURE_PHASES as F_,DeploymentFailurePhaseSchema as U_,DEPLOYMENT_FAULT_ATTRIBUTIONS as l_,DeploymentFaultAttributionSchema as u_,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as d_,DeploymentFailureProviderSourceSchema as x_,DEPLOYMENT_FAILURE_CODE_PATTERN as g_,DEPLOYMENT_FAILURE_SCHEMA_VERSION as G_,DEPLOYMENT_FAILURE_LIMITS as h_,DeploymentFailureAnalysisSchema as H_,DeploymentFailureProviderSchema as V_,DeploymentFailureResourceSchema as Y_,DeploymentFailureSchema as y_,parseDeploymentFailure as K_,DEPLOYMENT_FAILURE_DOCS_BASE_URL as v_,deploymentFailureDocsUrl as X_,DEPLOYMENT_FAULT_COPY as b_,DEPLOYMENT_PROVIDER_LABELS as B_,deriveErrorMessageFromFailure as W_,toDeploymentFailureAnalysis as J_}from"./failure/deploymentFailure.js";import{extractErrorWindow as j_,ERROR_WINDOW_CONTEXT_LINES as w_}from"./failure/extractErrorWindow.js";import{FJALL_COMPONENT_GITIGNORE as q_,FJALL_PROJECT_GITIGNORE as z_,FJALL_STATE_GITIGNORE_ENTRIES as Q_,FJALL_MANAGED_STATE_DIR_ENTRIES as $_,LOCAL_CONFIG_GITIGNORE_ENTRY as eo}from"./scaffold/gitignore.js";import{ensureGitignoreEntries as ro}from"./scaffold/ensureGitignore.js";export{We as ACCOUNT_ROLES,xe as ACCOUNT_STAGES,ue as ACCOUNT_STAGES_WITH_ROOT,ge as ACCOUNT_STAGE_LABELS,he as ACCOUNT_TIERS,bE as AGENT_INSTALL_COMMAND,XE as AGENT_SETUP_PROMPTS,O as APPROVAL_TOKEN_OUTPUT_PREFIX,cr as ARTEFACT_OUTPUT_FIELDS,eE as AWS_REGIONS_METADATA,He as AccountTierSchema,i as BACKUP_VAULT_NAME,c_ as BLESSED_CDK_TOOLCHAIN,y as CAPACITY_ANCHOR_MAX_LENGTH,Y as CAPACITY_ANCHOR_PATTERN,K as CAPACITY_IDENTITY_CONTEXT_KEY,H as CAPACITY_SLOT_MAX_LENGTH,h as CAPACITY_SLOT_PATTERN,hr as CLICKHOUSE_MIGRATION_SKIP_RE,xE as CONNECTION_FAILURE_REASONS,uE as CONNECTION_PHASES,dE as CONNECTION_TERMINAL_FAILURE_PHASES,Cr as CONTENT_HASH_TAG_PATTERN,a_ as CREATABLE_FRAMEWORKS,b as CapacityIdentityConfigSchema,v as CapacityIdentityPinSchema,X as CapacityIdentityWireSchema,UE as ConnectionWireSchema,lE as ConnectionsListResponseSchema,Ie as DANGEROUS_ENV_VARS,V as DEFAULT_CAPACITY_SLOT,i_ as DEFAULT_FORMS_FROM_LOCAL_PART,EE as DEFAULT_REGION,zr as DEPLOYABLE_PATTERN_TYPES,g_ as DEPLOYMENT_FAILURE_CODE_PATTERN,v_ as DEPLOYMENT_FAILURE_DOCS_BASE_URL,h_ as DEPLOYMENT_FAILURE_LIMITS,F_ as DEPLOYMENT_FAILURE_PHASES,d_ as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,G_ as DEPLOYMENT_FAILURE_SCHEMA_VERSION,l_ as DEPLOYMENT_FAULT_ATTRIBUTIONS,b_ as DEPLOYMENT_FAULT_COPY,B_ as DEPLOYMENT_PROVIDER_LABELS,Pr as DEPLOY_MODES,D_ as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,P_ as DEV_SUBSTRATE_PARAMS_FILENAME,I_ as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,Lr as DeployModeSchema,H_ as DeploymentFailureAnalysisSchema,U_ as DeploymentFailurePhaseSchema,V_ as DeploymentFailureProviderSchema,x_ as DeploymentFailureProviderSourceSchema,Y_ as DeploymentFailureResourceSchema,y_ as DeploymentFailureSchema,u_ as DeploymentFaultAttributionSchema,s_ as DevSubstrateParamsSchema,L_ as DevSubstrateSynthPropsSchema,w_ as ERROR_WINDOW_CONTEXT_LINES,dr as EXPECTED_CH_SCHEMA_VERSION_ENV,lr as EXPECTED_SCHEMA_VERSION_ENV,ur as EXPECTED_SCHEMA_VERSION_TOOL_ENV,gE as EXTERNAL_ID_PATTERN,br as FJALL_CLICKHOUSE_USERS,q_ as FJALL_COMPONENT_GITIGNORE,Ae as FJALL_CONFIG_DIR_ENV,Te as FJALL_CREDENTIALS_FILENAME,Se as FJALL_HOME_DIRNAME,ae as FJALL_LOG_DIR_ENV,Xr as FJALL_MAINTENANCE_USER,$_ as FJALL_MANAGED_STATE_DIR_ENTRIES,z_ as FJALL_PROJECT_GITIGNORE,vr as FJALL_SCHEMA_GATE_USER,Q_ as FJALL_STATE_GITIGNORE_ENTRIES,t_ as FRAMEWORKS,T_ as FRAMEWORK_PATTERN_RECOMMENDATIONS,o_ as FRAMEWORK_VALUES,Ye as GOVERNANCE_ACCOUNT_TIERS,iE as GOVERNANCE_SCOPE_REQUIRED_CODE,S as HOSTS_OUTPUT_MAX_BYTES,sr as IMAGE_TAG_PATTERN,HE as INSTALL_SOURCES,pr as ImageTagSchema,eo as LOCAL_CONFIG_GITIGNORE_ENTRY,NE as MACHINE_ONLY_SCOPES,Le as MASKED_VALUE_MARKER,_E as MAX_SECONDARY_REGIONS,Ur as MIGRATION_SNAPSHOT_NAME_PREFIX,Qr as OPENNEXT_PATTERN_TYPES,oE as OPT_IN_REGION_CODES,r_ as PATTERN_CREATE_INPUT_FLAGS,E_ as PATTERN_CREATE_INPUT_VALUES,Zr as PATTERN_REGISTRY,jr as PATTERN_TYPES,kr as PATTERN_TYPE_VALUES,Wr as PHYSICAL_NAME_FALLBACK_PROPERTIES,Gr as PRISMA_MIGRATION_DIR_RE,hE as PUBLIC_PACKAGE_NAME,De as REDACTED_KEY_SENTINEL,Z as REGION_SHORT_CODES,Sr as RESERVED_APP_NAMES,ar as RESERVED_APP_NAME_MESSAGE,Rr as RESERVED_APP_NAME_SUFFIX,ir as RESERVED_APP_NAME_SUFFIX_MESSAGE,ke as RESOURCE_CATEGORIES,gr as SCHEMA_ADMIN_PASSWORD_ENV,xr as SCHEMA_ADMIN_USER_ENV,Vr as SCHEMA_GATE_EXIT,Yr as SCHEMA_GATE_EXIT_HINTS,Me as SCOPED_TOKEN_REGEX,aE as SCOPE_VALUES,mE as SECRET_NAME_ERROR,OE as SECRET_NAME_PATTERN,VE as SETUP_COMMANDS,yE as SETUP_MODES,vE as SETUP_STEPS,KE as SETUP_STEP_IDS,WE as SKILL_INSTALL_FILENAME,JE as SKILL_INSTALL_PATH,BE as SKILL_INSTALL_SEGMENTS,IE as SSM_COMPONENT_ERROR,CE as SSM_COMPONENT_PATTERN,PE as SSM_STANDARD_MAX_VALUE_BYTES,e_ as STATIC_SITE_ROUTING_VALUES,de as STRUCTURAL_ENVIRONMENTS,LE as SecretNamespaceSchema,Dr as ServiceArtefactSchema,Mr as ServiceArtefactsSchema,m as TOKEN_STDERR_PREFIX,RE as USER_GRANTABLE_SCOPES,$e as abbreviateRegion,f as accountConstructKey,Xe as accountTier,l as albDnsExportName,u as albHostedZoneIdExportName,fr as artefactOutputKey,x as bucketWebsiteEndpointExportName,g as bucketWebsiteHostedZoneIdExportName,er as buildAppConfigPath,sE as buildNamespaceParts,pE as buildParameterPath,M as capitalise,je as categoriseResource,d as cdnDomainExportName,j as defaultConnectedAccountName,O_ as defaultFormsCorsOrigin,n_ as defaultFormsFromAddress,X_ as deploymentFailureDocsUrl,ZE as deriveAllTargets,mr as deriveContentHashTag,W_ as deriveErrorMessageFromFailure,jE as deriveRegionsFromOrgConfig,wE as deriveTargets,ro as ensureGitignoreEntries,qE as environmentOrTier,Ke as environmentToTier,fE as escapeDotEnvValue,j_ as extractErrorWindow,Pe as filterDangerousEnvVars,J as findAccountNameCollision,_r as findBoundaryPath,rr as findInfrastructurePaths,zE as findTarget,q as findTrailingRegionShortCode,Ne as fjallCredentialsPath,Re as fjallHomeDir,ie as fjallLogDir,ne as fjallStatePath,oe as formatErrorString,QE as generateTargetName,_ as getDomainExportNames,o as getDomainStackName,t as getDomainUsEast1CertificatesStackName,Be as getEnvironmentLabel,re as getErrorCode,ee as getErrorMessage,_e as getErrorStack,we as getExpectedDuration,Ze as getFriendlyResourceType,rE as getRegionInfo,c as getSafeZoneName,F as hasAsciiStableConstructKey,Ee as hasErrorCode,nr as hasReservedAppNameSuffix,A as hostsExportPartName,I as imageTagParameterName,Ar as inferContainerFromCandidates,Ge as isAccountStage,Ve as isAccountTier,m_ as isAddressAtDomain,A_ as isFramework,ye as isGovernanceTier,or as isInfrastructureFile,ME as isManageablePath,a as isManagedDomainBinding,$r as isOpenNextPatternType,wr as isPatternType,Nr as isReservedAppName,Ue as mapSettledWithConcurrency,se as maskSensitiveOutput,$ as normaliseError,tE as optInRegionWarning,K_ as parseDeploymentFailure,cE as parseDotEnv,ze as parseGitRemoteUrl,DE as parseParameterPath,pe as parseShellArgs,qr as patternConstructId,B as projectCapacityIdentityToTarget,S_ as recommendPatternForFramework,z as regionSuffixRejectionMessage,AE as regions,N_ as requiredInputsForFramework,be as resolveSynthEnvironment,yr as schemaGateExitKind,T as serialiseHostsChunks,me as singleton,fe as sleep,ve as stageFromWireEnvironment,w as suffixedAccountName,TE as suggestRegionForTimezone,J_ as toDeploymentFailureAnalysis,s as toKebab,L as toPascalCase,D as toScreamingSnake,p as toValidDatabaseName,YE as upgradeCommand};
|
|
1
|
+
import{DNS_APEX as r,getDomainExportNames as _,getDomainStackName as t,getDomainUsEast1CertificatesStackName as A,hostsExportPartName as o,serialiseHostsChunks as T,HOSTS_OUTPUT_MAX_BYTES as S,isManagedDomainBinding as a,DOMAIN_DEPLOY_DEFAULT_PHASE as N}from"./infra/domainExports.js";import{BACKUP_VAULT_NAME as n}from"./infra/backupVault.js";import{APPROVAL_TOKEN_OUTPUT_PREFIX as O,TOKEN_STDERR_PREFIX as m}from"./deploy/approvalTokenOutput.js";import{imageTagParameterName as I}from"./infra/imageTags.js";import{toPascalCase as L,toKebab as s,toValidDatabaseName as p,toScreamingSnake as D,capitalise as c,getSafeZoneName as M,accountConstructKey as f,hasAsciiStableConstructKey as F}from"./naming/caseConversion.js";import{albDnsExportName as l,albHostedZoneIdExportName as u,cdnDomainExportName as d,bucketWebsiteEndpointExportName as g,bucketWebsiteHostedZoneIdExportName as x}from"./naming/targetExportNames.js";import{CAPACITY_SLOT_PATTERN as h,CAPACITY_SLOT_MAX_LENGTH as H,DEFAULT_CAPACITY_SLOT as V,CAPACITY_ANCHOR_PATTERN as Y,CAPACITY_ANCHOR_MAX_LENGTH as y,CAPACITY_IDENTITY_CONTEXT_KEY as K,CapacityIdentityPinSchema as v,CapacityIdentityWireSchema as X,CapacityIdentityConfigSchema as b,projectCapacityIdentityToTarget as B}from"./capacityIdentity.js";import{findAccountNameCollision as J}from"./naming/accountNameCollision.js";import{defaultConnectedAccountName as j,suffixedAccountName as w,REGION_SHORT_CODES as Z,findTrailingRegionShortCode as q,regionSuffixRejectionMessage as z}from"./naming/connectedAccountName.js";import{normaliseError as $,getErrorMessage as ee,hasErrorCode as Ee,getErrorCode as re,getErrorStack as _e,formatErrorString as te}from"./errorUtils.js";import{FJALL_CONFIG_DIR_ENV as oe,FJALL_CREDENTIALS_FILENAME as Te,FJALL_HOME_DIRNAME as Se,FJALL_LOG_DIR_ENV as ae,fjallCredentialsPath as Ne,fjallHomeDir as Re,fjallLogDir as ne,fjallStatePath as ie}from"./fjallHome.js";import{singleton as me}from"./async/singleton.js";import{DANGEROUS_ENV_VARS as Ie,filterDangerousEnvVars as Pe,MASKED_VALUE_MARKER as Le,maskSensitiveOutput as se,parseShellArgs as pe,REDACTED_KEY_SENTINEL as De,SCOPED_TOKEN_REGEX as ce}from"./securityHelpers.js";import{sleep as fe}from"./async/sleep.js";import{mapSettledWithConcurrency as Ue}from"./async/concurrency.js";import{ACCOUNT_STAGES_WITH_ROOT as ue,STRUCTURAL_ENVIRONMENTS as de,ACCOUNT_STAGES as ge,ACCOUNT_STAGE_LABELS as xe,isAccountStage as Ge,ACCOUNT_TIERS as he,AccountTierSchema as He,isAccountTier as Ve,GOVERNANCE_ACCOUNT_TIERS as Ye,isGovernanceTier as ye,environmentToTier as Ke,accountStageEffect as ve,ACCOUNT_STAGE_EFFECTS as Xe,formatAccountStageList as be,stageFromWireEnvironment as Be,accountTier as We,resolveSynthEnvironment as Je,getEnvironmentLabel as ke,ACCOUNT_ROLES as je}from"./environments.js";import{RESOURCE_CATEGORIES as Ze,categoriseResource as qe,getExpectedDuration as ze,getFriendlyResourceType as Qe}from"./resourceCategorisation.js";import{parseGitRemoteUrl as eE}from"./repo/gitRemoteParser.js";import{abbreviateRegion as rE,AWS_REGIONS_METADATA as _E,DEFAULT_REGION as tE,getRegionInfo as AE,MAX_SECONDARY_REGIONS as oE,OPT_IN_REGION_CODES as TE,optInRegionWarning as SE,regions as aE,suggestRegionForTimezone as NE}from"./infra/regions.js";import{SCOPE_VALUES as nE,MACHINE_ONLY_SCOPES as iE,USER_GRANTABLE_SCOPES as OE,GOVERNANCE_SCOPE_REQUIRED_CODE as mE}from"./infra/tokenScopes.js";import{SECRET_NAME_PATTERN as IE,SECRET_NAME_ERROR as PE,SSM_COMPONENT_PATTERN as LE,SSM_COMPONENT_ERROR as sE,SSM_STANDARD_MAX_VALUE_BYTES as pE,SecretNamespaceSchema as DE,buildNamespaceParts as cE,buildParameterPath as ME,parseParameterPath as fE,isManageablePath as FE,parseDotEnv as UE,escapeDotEnvValue as lE}from"./secrets.js";import{ConnectionWireSchema as dE,ConnectionsListResponseSchema as gE,CONNECTION_PHASES as xE,CONNECTION_TERMINAL_FAILURE_PHASES as GE,CONNECTION_FAILURE_REASONS as hE,EXTERNAL_ID_PATTERN as HE}from"./infra/connectionsWire.js";import{PUBLIC_PACKAGE_NAME as YE,INSTALL_SOURCES as yE,SETUP_COMMANDS as KE,upgradeCommand as vE,SETUP_MODES as XE,SETUP_STEP_IDS as bE,SETUP_STEPS as BE,AGENT_SETUP_PROMPTS as WE,AGENT_INSTALL_COMMAND as JE,SKILL_INSTALL_SEGMENTS as kE,SKILL_INSTALL_FILENAME as jE,SKILL_INSTALL_PATH as wE}from"./onboarding/index.js";import{deriveRegionsFromOrgConfig as qE,deriveTargets as zE,deriveAllTargets as QE,environmentOrTier as $E,findTarget as er,generateTargetName as Er}from"./targets.js";import{buildAppConfigPath as _r}from"./repo/appPath.js";import{findInfrastructurePaths as Ar,findBoundaryPath as or,isInfrastructureFile as Tr}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as ar}from"./repo/inferContainerFromCandidates.js";import{RESERVED_APP_NAMES as Rr,RESERVED_APP_NAME_MESSAGE as nr,isReservedAppName as ir,RESERVED_APP_NAME_SUFFIX as Or,RESERVED_APP_NAME_SUFFIX_MESSAGE as mr,hasReservedAppNameSuffix as Cr}from"./naming/reservedAppNames.js";import{deriveContentHashTag as Pr,CONTENT_HASH_TAG_PATTERN as Lr}from"./infra/deriveContentHashTag.js";import{DEPLOY_MODES as pr,DeployModeSchema as Dr,IMAGE_TAG_PATTERN as cr,ImageTagSchema as Mr,ServiceArtefactSchema as fr,ServiceArtefactsSchema as Fr,ARTEFACT_OUTPUT_FIELDS as Ur,artefactOutputKey as lr}from"./infra/deployArtefacts.js";import{MIGRATION_SNAPSHOT_NAME_PREFIX as dr,EXPECTED_SCHEMA_VERSION_ENV as gr,EXPECTED_SCHEMA_VERSION_TOOL_ENV as xr,EXPECTED_CH_SCHEMA_VERSION_ENV as Gr,SCHEMA_ADMIN_USER_ENV as hr,SCHEMA_ADMIN_PASSWORD_ENV as Hr,PRISMA_MIGRATION_DIR_RE as Vr,CLICKHOUSE_MIGRATION_SKIP_RE as Yr}from"./migration/constants.js";import{SCHEMA_GATE_EXIT as Kr,SCHEMA_GATE_EXIT_HINTS as vr,schemaGateExitKind as Xr}from"./migration/schemaGateExit.js";import{FJALL_SCHEMA_GATE_USER as Br,FJALL_MAINTENANCE_USER as Wr,FJALL_CLICKHOUSE_USERS as Jr}from"./migration/clickhouseFrameworkUsers.js";import{PHYSICAL_NAME_FALLBACK_PROPERTIES as jr}from"./cfn/physicalNameProperties.js";import{PATTERN_TYPE_VALUES as Zr,PATTERN_TYPES as qr,isPatternType as zr,PATTERN_REGISTRY as Qr,patternConstructId as $r,DEPLOYABLE_PATTERN_TYPES as e_,OPENNEXT_PATTERN_TYPES as E_,isOpenNextPatternType as r_,STATIC_SITE_ROUTING_VALUES as __,STATIC_SITE_ROUTING_INFO as t_,PATTERN_CREATE_INPUT_VALUES as A_,PATTERN_CREATE_INPUT_FLAGS as o_}from"./patterns/patternTypes.js";import{FRAMEWORK_VALUES as S_,FRAMEWORKS as a_,isFramework as N_,FRAMEWORK_PATTERN_RECOMMENDATIONS as R_,recommendPatternForFramework as n_,CREATABLE_FRAMEWORKS as i_,requiredInputsForFramework as O_}from"./patterns/frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as C_,defaultFormsFromAddress as I_,defaultFormsCorsOrigin as P_,isAddressAtDomain as L_}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as p_,DEV_SUBSTRATE_PARAMS_FILENAME as D_,DevSubstrateSynthPropsSchema as c_,DevSubstrateParamsSchema as M_}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as F_}from"./devSubstrate/entrypoint.js";import{BLESSED_CDK_TOOLCHAIN as l_}from"./cdkToolchain.js";import{DEPLOYMENT_FAILURE_PHASES as d_,DeploymentFailurePhaseSchema as g_,DEPLOYMENT_FAULT_ATTRIBUTIONS as x_,DeploymentFaultAttributionSchema as G_,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as h_,DeploymentFailureProviderSourceSchema as H_,DEPLOYMENT_FAILURE_CODE_PATTERN as V_,DEPLOYMENT_FAILURE_SCHEMA_VERSION as Y_,DEPLOYMENT_FAILURE_LIMITS as y_,DeploymentFailureAnalysisSchema as K_,DeploymentFailureProviderSchema as v_,DeploymentFailureResourceSchema as X_,DeploymentFailureSchema as b_,parseDeploymentFailure as B_,DEPLOYMENT_FAILURE_DOCS_BASE_URL as W_,deploymentFailureDocsUrl as J_,DEPLOYMENT_FAULT_COPY as k_,DEPLOYMENT_PROVIDER_LABELS as j_,deriveErrorMessageFromFailure as w_,toDeploymentFailureAnalysis as Z_}from"./failure/deploymentFailure.js";import{extractErrorWindow as z_,ERROR_WINDOW_CONTEXT_LINES as Q_}from"./failure/extractErrorWindow.js";import{FJALL_COMPONENT_GITIGNORE as et,FJALL_PROJECT_GITIGNORE as Et,FJALL_STATE_GITIGNORE_ENTRIES as rt,FJALL_MANAGED_STATE_DIR_ENTRIES as _t,LOCAL_CONFIG_GITIGNORE_ENTRY as tt}from"./scaffold/gitignore.js";import{ensureGitignoreEntries as ot}from"./scaffold/ensureGitignore.js";export{je as ACCOUNT_ROLES,ge as ACCOUNT_STAGES,ue as ACCOUNT_STAGES_WITH_ROOT,Xe as ACCOUNT_STAGE_EFFECTS,xe as ACCOUNT_STAGE_LABELS,he as ACCOUNT_TIERS,JE as AGENT_INSTALL_COMMAND,WE as AGENT_SETUP_PROMPTS,O as APPROVAL_TOKEN_OUTPUT_PREFIX,Ur as ARTEFACT_OUTPUT_FIELDS,_E as AWS_REGIONS_METADATA,He as AccountTierSchema,n as BACKUP_VAULT_NAME,l_ as BLESSED_CDK_TOOLCHAIN,y as CAPACITY_ANCHOR_MAX_LENGTH,Y as CAPACITY_ANCHOR_PATTERN,K as CAPACITY_IDENTITY_CONTEXT_KEY,H as CAPACITY_SLOT_MAX_LENGTH,h as CAPACITY_SLOT_PATTERN,Yr as CLICKHOUSE_MIGRATION_SKIP_RE,hE as CONNECTION_FAILURE_REASONS,xE as CONNECTION_PHASES,GE as CONNECTION_TERMINAL_FAILURE_PHASES,Lr as CONTENT_HASH_TAG_PATTERN,i_ as CREATABLE_FRAMEWORKS,b as CapacityIdentityConfigSchema,v as CapacityIdentityPinSchema,X as CapacityIdentityWireSchema,dE as ConnectionWireSchema,gE as ConnectionsListResponseSchema,Ie as DANGEROUS_ENV_VARS,V as DEFAULT_CAPACITY_SLOT,C_ as DEFAULT_FORMS_FROM_LOCAL_PART,tE as DEFAULT_REGION,e_ as DEPLOYABLE_PATTERN_TYPES,V_ as DEPLOYMENT_FAILURE_CODE_PATTERN,W_ as DEPLOYMENT_FAILURE_DOCS_BASE_URL,y_ as DEPLOYMENT_FAILURE_LIMITS,d_ as DEPLOYMENT_FAILURE_PHASES,h_ as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,Y_ as DEPLOYMENT_FAILURE_SCHEMA_VERSION,x_ as DEPLOYMENT_FAULT_ATTRIBUTIONS,k_ as DEPLOYMENT_FAULT_COPY,j_ as DEPLOYMENT_PROVIDER_LABELS,pr as DEPLOY_MODES,F_ as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,D_ as DEV_SUBSTRATE_PARAMS_FILENAME,p_ as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,Dr as DeployModeSchema,K_ as DeploymentFailureAnalysisSchema,g_ as DeploymentFailurePhaseSchema,v_ as DeploymentFailureProviderSchema,H_ as DeploymentFailureProviderSourceSchema,X_ as DeploymentFailureResourceSchema,b_ as DeploymentFailureSchema,G_ as DeploymentFaultAttributionSchema,M_ as DevSubstrateParamsSchema,c_ as DevSubstrateSynthPropsSchema,Q_ as ERROR_WINDOW_CONTEXT_LINES,Gr as EXPECTED_CH_SCHEMA_VERSION_ENV,gr as EXPECTED_SCHEMA_VERSION_ENV,xr as EXPECTED_SCHEMA_VERSION_TOOL_ENV,HE as EXTERNAL_ID_PATTERN,Jr as FJALL_CLICKHOUSE_USERS,et as FJALL_COMPONENT_GITIGNORE,oe as FJALL_CONFIG_DIR_ENV,Te as FJALL_CREDENTIALS_FILENAME,Se as FJALL_HOME_DIRNAME,ae as FJALL_LOG_DIR_ENV,Wr as FJALL_MAINTENANCE_USER,_t as FJALL_MANAGED_STATE_DIR_ENTRIES,Et as FJALL_PROJECT_GITIGNORE,Br as FJALL_SCHEMA_GATE_USER,rt as FJALL_STATE_GITIGNORE_ENTRIES,a_ as FRAMEWORKS,R_ as FRAMEWORK_PATTERN_RECOMMENDATIONS,S_ as FRAMEWORK_VALUES,Ye as GOVERNANCE_ACCOUNT_TIERS,mE as GOVERNANCE_SCOPE_REQUIRED_CODE,S as HOSTS_OUTPUT_MAX_BYTES,cr as IMAGE_TAG_PATTERN,yE as INSTALL_SOURCES,Mr as ImageTagSchema,tt as LOCAL_CONFIG_GITIGNORE_ENTRY,iE as MACHINE_ONLY_SCOPES,Le as MASKED_VALUE_MARKER,oE as MAX_SECONDARY_REGIONS,dr as MIGRATION_SNAPSHOT_NAME_PREFIX,E_ as OPENNEXT_PATTERN_TYPES,TE as OPT_IN_REGION_CODES,o_ as PATTERN_CREATE_INPUT_FLAGS,A_ as PATTERN_CREATE_INPUT_VALUES,Qr as PATTERN_REGISTRY,qr as PATTERN_TYPES,Zr as PATTERN_TYPE_VALUES,jr as PHYSICAL_NAME_FALLBACK_PROPERTIES,Vr as PRISMA_MIGRATION_DIR_RE,YE as PUBLIC_PACKAGE_NAME,De as REDACTED_KEY_SENTINEL,Z as REGION_SHORT_CODES,Rr as RESERVED_APP_NAMES,nr as RESERVED_APP_NAME_MESSAGE,Or as RESERVED_APP_NAME_SUFFIX,mr as RESERVED_APP_NAME_SUFFIX_MESSAGE,Ze as RESOURCE_CATEGORIES,Hr as SCHEMA_ADMIN_PASSWORD_ENV,hr as SCHEMA_ADMIN_USER_ENV,Kr as SCHEMA_GATE_EXIT,vr as SCHEMA_GATE_EXIT_HINTS,ce as SCOPED_TOKEN_REGEX,nE as SCOPE_VALUES,PE as SECRET_NAME_ERROR,IE as SECRET_NAME_PATTERN,KE as SETUP_COMMANDS,XE as SETUP_MODES,BE as SETUP_STEPS,bE as SETUP_STEP_IDS,jE as SKILL_INSTALL_FILENAME,wE as SKILL_INSTALL_PATH,kE as SKILL_INSTALL_SEGMENTS,sE as SSM_COMPONENT_ERROR,LE as SSM_COMPONENT_PATTERN,pE as SSM_STANDARD_MAX_VALUE_BYTES,t_ as STATIC_SITE_ROUTING_INFO,__ as STATIC_SITE_ROUTING_VALUES,de as STRUCTURAL_ENVIRONMENTS,DE as SecretNamespaceSchema,fr as ServiceArtefactSchema,Fr as ServiceArtefactsSchema,m as TOKEN_STDERR_PREFIX,OE as USER_GRANTABLE_SCOPES,rE as abbreviateRegion,f as accountConstructKey,ve as accountStageEffect,We as accountTier,l as albDnsExportName,u as albHostedZoneIdExportName,lr as artefactOutputKey,g as bucketWebsiteEndpointExportName,x as bucketWebsiteHostedZoneIdExportName,_r as buildAppConfigPath,cE as buildNamespaceParts,ME as buildParameterPath,c as capitalise,qe as categoriseResource,d as cdnDomainExportName,j as defaultConnectedAccountName,P_ as defaultFormsCorsOrigin,I_ as defaultFormsFromAddress,J_ as deploymentFailureDocsUrl,QE as deriveAllTargets,Pr as deriveContentHashTag,w_ as deriveErrorMessageFromFailure,qE as deriveRegionsFromOrgConfig,zE as deriveTargets,ot as ensureGitignoreEntries,$E as environmentOrTier,Ke as environmentToTier,lE as escapeDotEnvValue,z_ as extractErrorWindow,Pe as filterDangerousEnvVars,J as findAccountNameCollision,or as findBoundaryPath,Ar as findInfrastructurePaths,er as findTarget,q as findTrailingRegionShortCode,Ne as fjallCredentialsPath,Re as fjallHomeDir,ne as fjallLogDir,ie as fjallStatePath,be as formatAccountStageList,te as formatErrorString,Er as generateTargetName,_ as getDomainExportNames,t as getDomainStackName,A as getDomainUsEast1CertificatesStackName,ke as getEnvironmentLabel,re as getErrorCode,ee as getErrorMessage,_e as getErrorStack,ze as getExpectedDuration,Qe as getFriendlyResourceType,AE as getRegionInfo,M as getSafeZoneName,F as hasAsciiStableConstructKey,Ee as hasErrorCode,Cr as hasReservedAppNameSuffix,o as hostsExportPartName,I as imageTagParameterName,ar as inferContainerFromCandidates,Ge as isAccountStage,Ve as isAccountTier,L_ as isAddressAtDomain,N_ as isFramework,ye as isGovernanceTier,Tr as isInfrastructureFile,FE as isManageablePath,a as isManagedDomainBinding,r_ as isOpenNextPatternType,zr as isPatternType,ir as isReservedAppName,Ue as mapSettledWithConcurrency,se as maskSensitiveOutput,$ as normaliseError,SE as optInRegionWarning,B_ as parseDeploymentFailure,UE as parseDotEnv,eE as parseGitRemoteUrl,fE as parseParameterPath,pe as parseShellArgs,$r as patternConstructId,B as projectCapacityIdentityToTarget,n_ as recommendPatternForFramework,z as regionSuffixRejectionMessage,aE as regions,O_ as requiredInputsForFramework,Je as resolveSynthEnvironment,Xr as schemaGateExitKind,T as serialiseHostsChunks,me as singleton,fe as sleep,Be as stageFromWireEnvironment,w as suffixedAccountName,NE as suggestRegionForTimezone,Z_ as toDeploymentFailureAnalysis,s as toKebab,L as toPascalCase,D as toScreamingSnake,p as toValidDatabaseName,vE as upgradeCommand};
|
package/dist/logRotation.d.ts
CHANGED
|
@@ -40,3 +40,21 @@ export declare const LOG_ROTATION_DEFAULTS: {
|
|
|
40
40
|
readonly MAX_FILE_SIZE: number;
|
|
41
41
|
readonly MAX_FILES: 5;
|
|
42
42
|
};
|
|
43
|
+
/** The resolved rotation budget one writer applies. */
|
|
44
|
+
export interface LogRotationBudget {
|
|
45
|
+
maxFileSize: number;
|
|
46
|
+
maxFiles: number;
|
|
47
|
+
}
|
|
48
|
+
/**
|
|
49
|
+
* The rotation budget with its env overrides applied: `FJALL_LOG_MAX_SIZE`
|
|
50
|
+
* (bytes per file) and `FJALL_LOG_MAX_FILES`. Invalid values — empty,
|
|
51
|
+
* non-numeric, zero, negative — fall back to the defaults.
|
|
52
|
+
*
|
|
53
|
+
* Every writer that rotates against `LOG_ROTATION_DEFAULTS` must resolve
|
|
54
|
+
* through here, or the overrides govern one log stream and silently miss
|
|
55
|
+
* the other (the CLI honoured them while the infrastructure validation log
|
|
56
|
+
* hardcoded the defaults). Resolved per call, never at module load: the
|
|
57
|
+
* CDK subprocess imports its writer long before a command's environment is
|
|
58
|
+
* readable.
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveLogRotationBudget(): LogRotationBudget;
|
package/dist/logRotation.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var I=Object.defineProperty;var F=(a,t)=>I(a,"name",{value:t,configurable:!0});import{existsSync as o,renameSync as d,unlinkSync as l,statSync as p,mkdirSync as A}from"fs";import{dirname as x,basename as f,extname as L,join as c}from"path";class h{static{F(this,"FileRotator")}maxFiles;constructor(t){this.maxFiles=t.maxFiles}needsRotation(t,e){try{return o(t)?p(t).size>e:!1}catch{return!1}}rotate(t){try{const e=x(t);if(!o(e)){A(e,{recursive:!0});return}if(!o(t))return;const s=L(t),r=f(t,s),u=c(e,`${r}.${this.maxFiles-1}${s}`);o(u)&&l(u);for(let n=this.maxFiles-2;n>=1;n--){const m=c(e,`${r}.${n}${s}`),S=c(e,`${r}.${n+1}${s}`);o(m)&&d(m,S)}const i=c(e,`${r}.1${s}`);d(t,i)}catch{}}rotateIfNeeded(t,e){return this.needsRotation(t,e)?(this.rotate(t),!0):!1}getRotatedFiles(t){const e=[],s=x(t),r=L(t),u=f(t,r);o(t)&&e.push(t);for(let i=1;i<this.maxFiles;i++){const n=c(s,`${u}.${i}${r}`);if(o(n))e.push(n);else break}return e}cleanAll(t){const e=this.getRotatedFiles(t);for(const s of e)try{l(s)}catch{}}}const _={MAX_FILE_SIZE:10*1024*1024,MAX_FILES:5};function v(){return{maxFileSize:$("FJALL_LOG_MAX_SIZE",_.MAX_FILE_SIZE),maxFiles:$("FJALL_LOG_MAX_FILES",_.MAX_FILES)}}F(v,"resolveLogRotationBudget");function $(a,t){const e=process.env[a];if(e===void 0||e==="")return t;const s=parseInt(e,10);return!Number.isNaN(s)&&s>0?s:t}F($,"parsePositiveIntEnv");export{h as FileRotator,_ as LOG_ROTATION_DEFAULTS,v as resolveLogRotationBudget};
|
package/dist/patterns/index.d.ts
CHANGED
|
@@ -7,6 +7,6 @@
|
|
|
7
7
|
* the webapp bundles) can take the vocabulary without depending on the root
|
|
8
8
|
* barrel's contents staying pure.
|
|
9
9
|
*/
|
|
10
|
-
export { PATTERN_TYPE_VALUES, type PatternType, PATTERN_TYPES, isPatternType, type PatternArtefact, type PatternStackPlacement, type PatternDescriptor, PATTERN_REGISTRY, patternConstructId, DEPLOYABLE_PATTERN_TYPES, type OpenNextPatternType, OPENNEXT_PATTERN_TYPES, isOpenNextPatternType, STATIC_SITE_ROUTING_VALUES, type StaticSiteRouting, PATTERN_CREATE_INPUT_VALUES, type PatternCreateInput, PATTERN_CREATE_INPUT_FLAGS } from "./patternTypes.js";
|
|
10
|
+
export { PATTERN_TYPE_VALUES, type PatternType, PATTERN_TYPES, isPatternType, type PatternArtefact, type PatternStackPlacement, type PatternDescriptor, PATTERN_REGISTRY, patternConstructId, DEPLOYABLE_PATTERN_TYPES, type OpenNextPatternType, OPENNEXT_PATTERN_TYPES, isOpenNextPatternType, STATIC_SITE_ROUTING_VALUES, STATIC_SITE_ROUTING_INFO, type StaticSiteRouting, type StaticSiteRoutingDescriptor, PATTERN_CREATE_INPUT_VALUES, type PatternCreateInput, PATTERN_CREATE_INPUT_FLAGS } from "./patternTypes.js";
|
|
11
11
|
export { FRAMEWORK_VALUES, type Framework, FRAMEWORKS, isFramework, type DeployablePatternType, type UndeployablePatternType, type PatternRecommendation, FRAMEWORK_PATTERN_RECOMMENDATIONS, recommendPatternForFramework, CREATABLE_FRAMEWORKS, requiredInputsForFramework } from "./frameworkPatterns.js";
|
|
12
12
|
export { DEFAULT_FORMS_FROM_LOCAL_PART, defaultFormsFromAddress, defaultFormsCorsOrigin, isAddressAtDomain } from "./staticSiteForms.js";
|
package/dist/patterns/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
import{PATTERN_TYPE_VALUES as A,PATTERN_TYPES as r,isPatternType as
|
|
1
|
+
import{PATTERN_TYPE_VALUES as A,PATTERN_TYPES as r,isPatternType as _,PATTERN_REGISTRY as R,patternConstructId as e,DEPLOYABLE_PATTERN_TYPES as P,OPENNEXT_PATTERN_TYPES as o,isOpenNextPatternType as t,STATIC_SITE_ROUTING_VALUES as N,STATIC_SITE_ROUTING_INFO as F,PATTERN_CREATE_INPUT_VALUES as S,PATTERN_CREATE_INPUT_FLAGS as O}from"./patternTypes.js";import{FRAMEWORK_VALUES as I,FRAMEWORKS as m,isFramework as L,FRAMEWORK_PATTERN_RECOMMENDATIONS as a,recommendPatternForFramework as n,CREATABLE_FRAMEWORKS as d,requiredInputsForFramework as C}from"./frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as i,defaultFormsFromAddress as p,defaultFormsCorsOrigin as M,isAddressAtDomain as Y}from"./staticSiteForms.js";export{d as CREATABLE_FRAMEWORKS,i as DEFAULT_FORMS_FROM_LOCAL_PART,P as DEPLOYABLE_PATTERN_TYPES,m as FRAMEWORKS,a as FRAMEWORK_PATTERN_RECOMMENDATIONS,I as FRAMEWORK_VALUES,o as OPENNEXT_PATTERN_TYPES,O as PATTERN_CREATE_INPUT_FLAGS,S as PATTERN_CREATE_INPUT_VALUES,R as PATTERN_REGISTRY,r as PATTERN_TYPES,A as PATTERN_TYPE_VALUES,F as STATIC_SITE_ROUTING_INFO,N as STATIC_SITE_ROUTING_VALUES,M as defaultFormsCorsOrigin,p as defaultFormsFromAddress,Y as isAddressAtDomain,L as isFramework,t as isOpenNextPatternType,_ as isPatternType,e as patternConstructId,n as recommendPatternForFramework,C as requiredInputsForFramework};
|
|
@@ -135,7 +135,48 @@ export declare function isOpenNextPatternType(value: string | undefined | null):
|
|
|
135
135
|
/**
|
|
136
136
|
* Routing mode for a static site. Shared with the CDN construct and the
|
|
137
137
|
* generator's `StaticSiteRoutingSchema`, both of which derive from this tuple —
|
|
138
|
-
* a
|
|
138
|
+
* a mode must not be addable to one without the other.
|
|
139
|
+
*
|
|
140
|
+
* The first two modes answer the same question — which object does a pretty
|
|
141
|
+
* URL serve? — for the two layouts a static build emits: `multipage` for
|
|
142
|
+
* builds that write `about.html` (Astro `build.format: "file"`, Next.js
|
|
143
|
+
* default export), `directory` for builds that write `about/index.html`
|
|
144
|
+
* (Astro's default `build.format: "directory"`). Both serve BOTH link shapes
|
|
145
|
+
* (`/about` and `/about/`) from their layout's object. A single hybrid mode
|
|
146
|
+
* used to rewrite trailing-slash requests one way and bare requests the
|
|
147
|
+
* other, which gave every site exactly one working link shape and one broken
|
|
148
|
+
* one.
|
|
149
|
+
*
|
|
150
|
+
* `spa` opts out of rewriting entirely: unknown paths fall back to
|
|
151
|
+
* `/index.html` for client-side routing.
|
|
139
152
|
*/
|
|
140
|
-
export declare const STATIC_SITE_ROUTING_VALUES: readonly ["multipage", "spa"];
|
|
153
|
+
export declare const STATIC_SITE_ROUTING_VALUES: readonly ["multipage", "directory", "spa"];
|
|
141
154
|
export type StaticSiteRouting = (typeof STATIC_SITE_ROUTING_VALUES)[number];
|
|
155
|
+
/**
|
|
156
|
+
* Human-facing vocabulary for each routing mode, beside the tuple that
|
|
157
|
+
* governs it (the same shape as `PATTERN_REGISTRY`'s `label`). The CLI
|
|
158
|
+
* picker, the `--routing` flag help and the agent SKILL all render from
|
|
159
|
+
* here, so a mode added to the tuple fails to compile until it states what
|
|
160
|
+
* it serves — and no surface can drift onto its own wording of what a mode
|
|
161
|
+
* means.
|
|
162
|
+
*/
|
|
163
|
+
export interface StaticSiteRoutingDescriptor {
|
|
164
|
+
/** Short name for pickers (the Ink `Select` label). */
|
|
165
|
+
readonly label: string;
|
|
166
|
+
/** One-line behaviour summary, phrased as what a request serves. */
|
|
167
|
+
readonly summary: string;
|
|
168
|
+
}
|
|
169
|
+
export declare const STATIC_SITE_ROUTING_INFO: {
|
|
170
|
+
readonly multipage: {
|
|
171
|
+
readonly label: "Multi-page (.html files)";
|
|
172
|
+
readonly summary: "/about serves /about.html";
|
|
173
|
+
};
|
|
174
|
+
readonly directory: {
|
|
175
|
+
readonly label: "Directory index";
|
|
176
|
+
readonly summary: "/about serves /about/index.html";
|
|
177
|
+
};
|
|
178
|
+
readonly spa: {
|
|
179
|
+
readonly label: "Single-page app";
|
|
180
|
+
readonly summary: "unknown paths fall back to /index.html";
|
|
181
|
+
};
|
|
182
|
+
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
var n=Object.defineProperty;var e=(t,
|
|
1
|
+
var n=Object.defineProperty;var e=(t,a)=>n(t,"name",{value:a,configurable:!0});import{toPascalCase as s}from"../naming/caseConversion.js";const o=["payload","nextjs","staticsite"],u=new Set(o);function T(t){return typeof t=="string"&&u.has(t)}e(T,"isPatternType");const d=["source","buildCommand","outputDir"],m={source:"--source",buildCommand:"--build-command",outputDir:"--output-dir"},r={payload:{label:"Payload CMS",constructIdSuffix:"Payload",artefact:"opennext-lambda",stackPlacement:"compute",deployable:!0,requiredCreateInputs:[]},nextjs:{label:"Next.js",constructIdSuffix:"Nextjs",artefact:"opennext-lambda",stackPlacement:"compute",deployable:!1,requiredCreateInputs:[]},staticsite:{label:"Static site",constructIdSuffix:"StaticSite",artefact:"static-assets",stackPlacement:"cdn",deployable:!0,requiredCreateInputs:["source","buildCommand","outputDir"]}};function E(t,a){return`${s(t)}${r[a].constructIdSuffix}`}e(E,"patternConstructId");const x=o.filter(t=>r[t].deployable),c=o.filter(t=>r[t].artefact==="opennext-lambda"),l=new Set(c);function P(t){return t!=null&&l.has(t)}e(P,"isOpenNextPatternType");const S=["multipage","directory","spa"],f={multipage:{label:"Multi-page (.html files)",summary:"/about serves /about.html"},directory:{label:"Directory index",summary:"/about serves /about/index.html"},spa:{label:"Single-page app",summary:"unknown paths fall back to /index.html"}};export{x as DEPLOYABLE_PATTERN_TYPES,c as OPENNEXT_PATTERN_TYPES,m as PATTERN_CREATE_INPUT_FLAGS,d as PATTERN_CREATE_INPUT_VALUES,r as PATTERN_REGISTRY,u as PATTERN_TYPES,o as PATTERN_TYPE_VALUES,f as STATIC_SITE_ROUTING_INFO,S as STATIC_SITE_ROUTING_VALUES,P as isOpenNextPatternType,T as isPatternType,E as patternConstructId};
|