@fjall/util 24.0.0 → 25.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 +7 -7
- package/dist/.minified +1 -1
- package/dist/fjallHome.d.ts +14 -0
- package/dist/fjallHome.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/patterns/index.d.ts +1 -1
- package/dist/patterns/index.js +1 -1
- package/dist/patterns/patternTypes.d.ts +54 -0
- 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": "eeb70d44bff2fbe0e5823b89e00551a200725c14baf070f614c20d742d2975dd",
|
|
13
13
|
"files": {
|
|
14
14
|
"src/async/concurrency.ts": "3c7ebe0222a720f9",
|
|
15
15
|
"src/async/singleton.ts": "7bcc21b0fb920561",
|
|
@@ -68,11 +68,11 @@
|
|
|
68
68
|
"src/errors/absence.ts": "390fea350ffbb4e5",
|
|
69
69
|
"src/failure/deploymentFailure.ts": "5824db1d97d01838",
|
|
70
70
|
"src/failure/extractErrorWindow.ts": "ca41f90946fa939c",
|
|
71
|
-
"src/fjallHome.ts": "
|
|
71
|
+
"src/fjallHome.ts": "032df8e58d7e29cd",
|
|
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": "729256264d61d2be",
|
|
76
76
|
"src/infra/backupVault.ts": "661678a6dfb0b648",
|
|
77
77
|
"src/infra/connectionsWire.ts": "e3afa3ba95a531d8",
|
|
78
78
|
"src/infra/deployArtefacts.ts": "235ac21dd3ccf0b2",
|
|
@@ -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": "8c765d60d672f7f7",
|
|
111
|
+
"src/patterns/patternTypes.ts": "549b06ec2a3a696e",
|
|
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": "ed0ddd48c1bc5098",
|
|
129
129
|
"tsconfig.json": "db759831ad95f396"
|
|
130
130
|
},
|
|
131
|
-
"outputHash": "
|
|
131
|
+
"outputHash": "44660064f7e77458745187a882c4bb1eaef26fc06af740f5ca7ba88d630f6e73",
|
|
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-31T01:55:44.825Z
|
package/dist/fjallHome.d.ts
CHANGED
|
@@ -5,6 +5,20 @@
|
|
|
5
5
|
* `configPaths.ts`. That one names state that lives beside a checkout; this
|
|
6
6
|
* one names state that lives beside the *operator*.
|
|
7
7
|
*
|
|
8
|
+
* ## Why the Node built-ins are resolved per call, not statically imported
|
|
9
|
+
*
|
|
10
|
+
* This module is re-exported by the root barrel, and the webapp imports that
|
|
11
|
+
* barrel from BROWSER code (130+ client files, `maskSensitiveOutput` above
|
|
12
|
+
* all). A browser bundler that cannot tree-shake — Vite's dev server serving
|
|
13
|
+
* the package raw — evaluates every barrel module, and a static
|
|
14
|
+
* `import { homedir } from "node:os"` throws at evaluation time against the
|
|
15
|
+
* browser-external stub, killing hydration on every page. `process
|
|
16
|
+
* .getBuiltinModule` (Node ≥ 22.3, below our engines floor) is the
|
|
17
|
+
* runtime-agnostic form: nothing is referenced at module scope, and the
|
|
18
|
+
* functions below only ever run in Node. The barrel-reachability test
|
|
19
|
+
* (`__tests__/barrelBrowserSafety.test.ts`) pins the class for the whole
|
|
20
|
+
* package.
|
|
21
|
+
*
|
|
8
22
|
* ## Why this is a seam and not a constant
|
|
9
23
|
*
|
|
10
24
|
* `~/.fjall/auth.json` holds exactly one API key, so the CLI can be logged
|
package/dist/fjallHome.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
var
|
|
1
|
+
var u=Object.defineProperty;var n=(e,r)=>u(e,"name",{value:r,configurable:!0});function i(){return process.getBuiltinModule("node:os")}n(i,"nodeOs");function o(){return process.getBuiltinModule("node:path")}n(o,"nodePath");const s="FJALL_CONFIG_DIR",c=".fjall";function l(){const e=process.env[s];return e!==void 0&&e!==""?o().resolve(e):o().join(i().homedir(),c)}n(l,"fjallHomeDir");function t(...e){return o().join(l(),...e)}n(t,"fjallStatePath");const f="auth.json";function _(){return t(f)}n(_,"fjallCredentialsPath");const L="FJALL_LOG_DIR";function p(){const e=process.env[L];return e!==void 0&&e!==""?o().resolve(e):t("logs")}n(p,"fjallLogDir");export{s as FJALL_CONFIG_DIR_ENV,f as FJALL_CREDENTIALS_FILENAME,c as FJALL_HOME_DIRNAME,L as FJALL_LOG_DIR_ENV,_ as fjallCredentialsPath,l as fjallHomeDir,p as fjallLogDir,t as fjallStatePath};
|
package/dist/index.d.ts
CHANGED
|
@@ -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, STATIC_SITE_ROUTING_INFO, type StaticSiteRouting, type StaticSiteRoutingDescriptor, 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, CLOUDFRONT_PRICE_CLASS_VALUES, type CloudFrontPriceClass, STATIC_SITE_CONFIG_KEYS, type StaticSiteConfigKey, STATIC_SITE_DEPLOY_INJECTED_KEYS, type StaticSiteDeployInjectedKey, STATIC_SITE_CDN_CONFIG_KEYS, type StaticSiteCdnConfigKey, 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 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};
|
|
1
|
+
import{DNS_APEX as _,getDomainExportNames as r,getDomainStackName as T,getDomainUsEast1CertificatesStackName as A,hostsExportPartName as t,serialiseHostsChunks as S,HOSTS_OUTPUT_MAX_BYTES as o,isManagedDomainBinding as a,DOMAIN_DEPLOY_DEFAULT_PHASE as N}from"./infra/domainExports.js";import{BACKUP_VAULT_NAME as O}from"./infra/backupVault.js";import{APPROVAL_TOKEN_OUTPUT_PREFIX as n,TOKEN_STDERR_PREFIX as I}from"./deploy/approvalTokenOutput.js";import{imageTagParameterName as m}from"./infra/imageTags.js";import{toPascalCase as L,toKebab as s,toValidDatabaseName as D,toScreamingSnake as p,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 V,DEFAULT_CAPACITY_SLOT as H,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 _e,getErrorStack as re,formatErrorString as Te}from"./errorUtils.js";import{FJALL_CONFIG_DIR_ENV as te,FJALL_CREDENTIALS_FILENAME as Se,FJALL_HOME_DIRNAME as oe,FJALL_LOG_DIR_ENV as ae,fjallCredentialsPath as Ne,fjallHomeDir as Re,fjallLogDir as Oe,fjallStatePath as Ce}from"./fjallHome.js";import{singleton as Ie}from"./async/singleton.js";import{DANGEROUS_ENV_VARS as me,filterDangerousEnvVars as Pe,MASKED_VALUE_MARKER as Le,maskSensitiveOutput as se,parseShellArgs as De,REDACTED_KEY_SENTINEL as pe,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 Ve,isAccountTier as He,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 _E,AWS_REGIONS_METADATA as rE,DEFAULT_REGION as TE,getRegionInfo as AE,MAX_SECONDARY_REGIONS as tE,OPT_IN_REGION_CODES as SE,optInRegionWarning as oE,regions as aE,suggestRegionForTimezone as NE}from"./infra/regions.js";import{SCOPE_VALUES as OE,MACHINE_ONLY_SCOPES as CE,USER_GRANTABLE_SCOPES as nE,GOVERNANCE_SCOPE_REQUIRED_CODE as IE}from"./infra/tokenScopes.js";import{SECRET_NAME_PATTERN as mE,SECRET_NAME_ERROR as PE,SSM_COMPONENT_PATTERN as LE,SSM_COMPONENT_ERROR as sE,SSM_STANDARD_MAX_VALUE_BYTES as DE,SecretNamespaceSchema as pE,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 VE}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 e_,generateTargetName as E_}from"./targets.js";import{buildAppConfigPath as r_}from"./repo/appPath.js";import{findInfrastructurePaths as A_,findBoundaryPath as t_,isInfrastructureFile as S_}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as a_}from"./repo/inferContainerFromCandidates.js";import{RESERVED_APP_NAMES as R_,RESERVED_APP_NAME_MESSAGE as O_,isReservedAppName as C_,RESERVED_APP_NAME_SUFFIX as n_,RESERVED_APP_NAME_SUFFIX_MESSAGE as I_,hasReservedAppNameSuffix as i_}from"./naming/reservedAppNames.js";import{deriveContentHashTag as P_,CONTENT_HASH_TAG_PATTERN as L_}from"./infra/deriveContentHashTag.js";import{DEPLOY_MODES as D_,DeployModeSchema as p_,IMAGE_TAG_PATTERN as c_,ImageTagSchema as M_,ServiceArtefactSchema as f_,ServiceArtefactsSchema as F_,ARTEFACT_OUTPUT_FIELDS as U_,artefactOutputKey as l_}from"./infra/deployArtefacts.js";import{MIGRATION_SNAPSHOT_NAME_PREFIX as d_,EXPECTED_SCHEMA_VERSION_ENV as g_,EXPECTED_SCHEMA_VERSION_TOOL_ENV as x_,EXPECTED_CH_SCHEMA_VERSION_ENV as G_,SCHEMA_ADMIN_USER_ENV as h_,SCHEMA_ADMIN_PASSWORD_ENV as V_,PRISMA_MIGRATION_DIR_RE as H_,CLICKHOUSE_MIGRATION_SKIP_RE as Y_}from"./migration/constants.js";import{SCHEMA_GATE_EXIT as K_,SCHEMA_GATE_EXIT_HINTS as v_,schemaGateExitKind as X_}from"./migration/schemaGateExit.js";import{FJALL_SCHEMA_GATE_USER as B_,FJALL_MAINTENANCE_USER as W_,FJALL_CLICKHOUSE_USERS as J_}from"./migration/clickhouseFrameworkUsers.js";import{PHYSICAL_NAME_FALLBACK_PROPERTIES as j_}from"./cfn/physicalNameProperties.js";import{PATTERN_TYPE_VALUES as Z_,PATTERN_TYPES as q_,isPatternType as z_,PATTERN_REGISTRY as Q_,patternConstructId as $_,DEPLOYABLE_PATTERN_TYPES as er,OPENNEXT_PATTERN_TYPES as Er,isOpenNextPatternType as _r,CLOUDFRONT_PRICE_CLASS_VALUES as rr,STATIC_SITE_CONFIG_KEYS as Tr,STATIC_SITE_DEPLOY_INJECTED_KEYS as Ar,STATIC_SITE_CDN_CONFIG_KEYS as tr,STATIC_SITE_ROUTING_VALUES as Sr,STATIC_SITE_ROUTING_INFO as or,PATTERN_CREATE_INPUT_VALUES as ar,PATTERN_CREATE_INPUT_FLAGS as Nr}from"./patterns/patternTypes.js";import{FRAMEWORK_VALUES as Or,FRAMEWORKS as Cr,isFramework as nr,FRAMEWORK_PATTERN_RECOMMENDATIONS as Ir,recommendPatternForFramework as ir,CREATABLE_FRAMEWORKS as mr,requiredInputsForFramework as Pr}from"./patterns/frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as sr,defaultFormsFromAddress as Dr,defaultFormsCorsOrigin as pr,isAddressAtDomain as cr}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as fr,DEV_SUBSTRATE_PARAMS_FILENAME as Fr,DevSubstrateSynthPropsSchema as Ur,DevSubstrateParamsSchema as lr}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as dr}from"./devSubstrate/entrypoint.js";import{BLESSED_CDK_TOOLCHAIN as xr}from"./cdkToolchain.js";import{DEPLOYMENT_FAILURE_PHASES as hr,DeploymentFailurePhaseSchema as Vr,DEPLOYMENT_FAULT_ATTRIBUTIONS as Hr,DeploymentFaultAttributionSchema as Yr,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as yr,DeploymentFailureProviderSourceSchema as Kr,DEPLOYMENT_FAILURE_CODE_PATTERN as vr,DEPLOYMENT_FAILURE_SCHEMA_VERSION as Xr,DEPLOYMENT_FAILURE_LIMITS as br,DeploymentFailureAnalysisSchema as Br,DeploymentFailureProviderSchema as Wr,DeploymentFailureResourceSchema as Jr,DeploymentFailureSchema as kr,parseDeploymentFailure as jr,DEPLOYMENT_FAILURE_DOCS_BASE_URL as wr,deploymentFailureDocsUrl as Zr,DEPLOYMENT_FAULT_COPY as qr,DEPLOYMENT_PROVIDER_LABELS as zr,deriveErrorMessageFromFailure as Qr,toDeploymentFailureAnalysis as $r}from"./failure/deploymentFailure.js";import{extractErrorWindow as ET,ERROR_WINDOW_CONTEXT_LINES as _T}from"./failure/extractErrorWindow.js";import{FJALL_COMPONENT_GITIGNORE as TT,FJALL_PROJECT_GITIGNORE as AT,FJALL_STATE_GITIGNORE_ENTRIES as tT,FJALL_MANAGED_STATE_DIR_ENTRIES as ST,LOCAL_CONFIG_GITIGNORE_ENTRY as oT}from"./scaffold/gitignore.js";import{ensureGitignoreEntries as NT}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,n as APPROVAL_TOKEN_OUTPUT_PREFIX,U_ as ARTEFACT_OUTPUT_FIELDS,rE as AWS_REGIONS_METADATA,Ve as AccountTierSchema,O as BACKUP_VAULT_NAME,xr as BLESSED_CDK_TOOLCHAIN,y as CAPACITY_ANCHOR_MAX_LENGTH,Y as CAPACITY_ANCHOR_PATTERN,K as CAPACITY_IDENTITY_CONTEXT_KEY,V as CAPACITY_SLOT_MAX_LENGTH,h as CAPACITY_SLOT_PATTERN,Y_ as CLICKHOUSE_MIGRATION_SKIP_RE,rr as CLOUDFRONT_PRICE_CLASS_VALUES,hE as CONNECTION_FAILURE_REASONS,xE as CONNECTION_PHASES,GE as CONNECTION_TERMINAL_FAILURE_PHASES,L_ as CONTENT_HASH_TAG_PATTERN,mr as CREATABLE_FRAMEWORKS,b as CapacityIdentityConfigSchema,v as CapacityIdentityPinSchema,X as CapacityIdentityWireSchema,dE as ConnectionWireSchema,gE as ConnectionsListResponseSchema,me as DANGEROUS_ENV_VARS,H as DEFAULT_CAPACITY_SLOT,sr as DEFAULT_FORMS_FROM_LOCAL_PART,TE as DEFAULT_REGION,er as DEPLOYABLE_PATTERN_TYPES,vr as DEPLOYMENT_FAILURE_CODE_PATTERN,wr as DEPLOYMENT_FAILURE_DOCS_BASE_URL,br as DEPLOYMENT_FAILURE_LIMITS,hr as DEPLOYMENT_FAILURE_PHASES,yr as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,Xr as DEPLOYMENT_FAILURE_SCHEMA_VERSION,Hr as DEPLOYMENT_FAULT_ATTRIBUTIONS,qr as DEPLOYMENT_FAULT_COPY,zr as DEPLOYMENT_PROVIDER_LABELS,D_ as DEPLOY_MODES,dr as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,Fr as DEV_SUBSTRATE_PARAMS_FILENAME,fr as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,_ as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,p_ as DeployModeSchema,Br as DeploymentFailureAnalysisSchema,Vr as DeploymentFailurePhaseSchema,Wr as DeploymentFailureProviderSchema,Kr as DeploymentFailureProviderSourceSchema,Jr as DeploymentFailureResourceSchema,kr as DeploymentFailureSchema,Yr as DeploymentFaultAttributionSchema,lr as DevSubstrateParamsSchema,Ur as DevSubstrateSynthPropsSchema,_T as ERROR_WINDOW_CONTEXT_LINES,G_ as EXPECTED_CH_SCHEMA_VERSION_ENV,g_ as EXPECTED_SCHEMA_VERSION_ENV,x_ as EXPECTED_SCHEMA_VERSION_TOOL_ENV,VE as EXTERNAL_ID_PATTERN,J_ as FJALL_CLICKHOUSE_USERS,TT as FJALL_COMPONENT_GITIGNORE,te as FJALL_CONFIG_DIR_ENV,Se as FJALL_CREDENTIALS_FILENAME,oe as FJALL_HOME_DIRNAME,ae as FJALL_LOG_DIR_ENV,W_ as FJALL_MAINTENANCE_USER,ST as FJALL_MANAGED_STATE_DIR_ENTRIES,AT as FJALL_PROJECT_GITIGNORE,B_ as FJALL_SCHEMA_GATE_USER,tT as FJALL_STATE_GITIGNORE_ENTRIES,Cr as FRAMEWORKS,Ir as FRAMEWORK_PATTERN_RECOMMENDATIONS,Or as FRAMEWORK_VALUES,Ye as GOVERNANCE_ACCOUNT_TIERS,IE as GOVERNANCE_SCOPE_REQUIRED_CODE,o as HOSTS_OUTPUT_MAX_BYTES,c_ as IMAGE_TAG_PATTERN,yE as INSTALL_SOURCES,M_ as ImageTagSchema,oT as LOCAL_CONFIG_GITIGNORE_ENTRY,CE as MACHINE_ONLY_SCOPES,Le as MASKED_VALUE_MARKER,tE as MAX_SECONDARY_REGIONS,d_ as MIGRATION_SNAPSHOT_NAME_PREFIX,Er as OPENNEXT_PATTERN_TYPES,SE as OPT_IN_REGION_CODES,Nr as PATTERN_CREATE_INPUT_FLAGS,ar as PATTERN_CREATE_INPUT_VALUES,Q_ as PATTERN_REGISTRY,q_ as PATTERN_TYPES,Z_ as PATTERN_TYPE_VALUES,j_ as PHYSICAL_NAME_FALLBACK_PROPERTIES,H_ as PRISMA_MIGRATION_DIR_RE,YE as PUBLIC_PACKAGE_NAME,pe as REDACTED_KEY_SENTINEL,Z as REGION_SHORT_CODES,R_ as RESERVED_APP_NAMES,O_ as RESERVED_APP_NAME_MESSAGE,n_ as RESERVED_APP_NAME_SUFFIX,I_ as RESERVED_APP_NAME_SUFFIX_MESSAGE,Ze as RESOURCE_CATEGORIES,V_ as SCHEMA_ADMIN_PASSWORD_ENV,h_ as SCHEMA_ADMIN_USER_ENV,K_ as SCHEMA_GATE_EXIT,v_ as SCHEMA_GATE_EXIT_HINTS,ce as SCOPED_TOKEN_REGEX,OE as SCOPE_VALUES,PE as SECRET_NAME_ERROR,mE 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,DE as SSM_STANDARD_MAX_VALUE_BYTES,tr as STATIC_SITE_CDN_CONFIG_KEYS,Tr as STATIC_SITE_CONFIG_KEYS,Ar as STATIC_SITE_DEPLOY_INJECTED_KEYS,or as STATIC_SITE_ROUTING_INFO,Sr as STATIC_SITE_ROUTING_VALUES,de as STRUCTURAL_ENVIRONMENTS,pE as SecretNamespaceSchema,f_ as ServiceArtefactSchema,F_ as ServiceArtefactsSchema,I as TOKEN_STDERR_PREFIX,nE as USER_GRANTABLE_SCOPES,_E as abbreviateRegion,f as accountConstructKey,ve as accountStageEffect,We as accountTier,l as albDnsExportName,u as albHostedZoneIdExportName,l_ 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,pr as defaultFormsCorsOrigin,Dr as defaultFormsFromAddress,Zr as deploymentFailureDocsUrl,QE as deriveAllTargets,P_ as deriveContentHashTag,Qr as deriveErrorMessageFromFailure,qE as deriveRegionsFromOrgConfig,zE as deriveTargets,NT as ensureGitignoreEntries,$E as environmentOrTier,Ke as environmentToTier,lE as escapeDotEnvValue,ET as extractErrorWindow,Pe as filterDangerousEnvVars,J as findAccountNameCollision,t_ as findBoundaryPath,A_ as findInfrastructurePaths,e_ as findTarget,q as findTrailingRegionShortCode,Ne as fjallCredentialsPath,Re as fjallHomeDir,Oe as fjallLogDir,Ce as fjallStatePath,be as formatAccountStageList,Te as formatErrorString,E_ as generateTargetName,r as getDomainExportNames,T as getDomainStackName,A as getDomainUsEast1CertificatesStackName,ke as getEnvironmentLabel,_e as getErrorCode,ee as getErrorMessage,re as getErrorStack,ze as getExpectedDuration,Qe as getFriendlyResourceType,AE as getRegionInfo,M as getSafeZoneName,F as hasAsciiStableConstructKey,Ee as hasErrorCode,i_ as hasReservedAppNameSuffix,t as hostsExportPartName,m as imageTagParameterName,a_ as inferContainerFromCandidates,Ge as isAccountStage,He as isAccountTier,cr as isAddressAtDomain,nr as isFramework,ye as isGovernanceTier,S_ as isInfrastructureFile,FE as isManageablePath,a as isManagedDomainBinding,_r as isOpenNextPatternType,z_ as isPatternType,C_ as isReservedAppName,Ue as mapSettledWithConcurrency,se as maskSensitiveOutput,$ as normaliseError,oE as optInRegionWarning,jr as parseDeploymentFailure,UE as parseDotEnv,eE as parseGitRemoteUrl,fE as parseParameterPath,De as parseShellArgs,$_ as patternConstructId,B as projectCapacityIdentityToTarget,ir as recommendPatternForFramework,z as regionSuffixRejectionMessage,aE as regions,Pr as requiredInputsForFramework,Je as resolveSynthEnvironment,X_ as schemaGateExitKind,S as serialiseHostsChunks,Ie as singleton,fe as sleep,Be as stageFromWireEnvironment,w as suffixedAccountName,NE as suggestRegionForTimezone,$r as toDeploymentFailureAnalysis,s as toKebab,L as toPascalCase,p as toScreamingSnake,D as toValidDatabaseName,vE as upgradeCommand};
|
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, STATIC_SITE_ROUTING_INFO, type StaticSiteRouting, type StaticSiteRoutingDescriptor, 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, CLOUDFRONT_PRICE_CLASS_VALUES, type CloudFrontPriceClass, STATIC_SITE_CONFIG_KEYS, type StaticSiteConfigKey, STATIC_SITE_DEPLOY_INJECTED_KEYS, type StaticSiteDeployInjectedKey, STATIC_SITE_CDN_CONFIG_KEYS, type StaticSiteCdnConfigKey, 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
|
|
1
|
+
import{PATTERN_TYPE_VALUES as _,PATTERN_TYPES as A,isPatternType as r,PATTERN_REGISTRY as R,patternConstructId as S,DEPLOYABLE_PATTERN_TYPES as I,OPENNEXT_PATTERN_TYPES as N,isOpenNextPatternType as e,CLOUDFRONT_PRICE_CLASS_VALUES as P,STATIC_SITE_CONFIG_KEYS as O,STATIC_SITE_DEPLOY_INJECTED_KEYS as F,STATIC_SITE_CDN_CONFIG_KEYS as C,STATIC_SITE_ROUTING_VALUES as o,STATIC_SITE_ROUTING_INFO as t,PATTERN_CREATE_INPUT_VALUES as L,PATTERN_CREATE_INPUT_FLAGS as s}from"./patternTypes.js";import{FRAMEWORK_VALUES as U,FRAMEWORKS as a,isFramework as n,FRAMEWORK_PATTERN_RECOMMENDATIONS as Y,recommendPatternForFramework as d,CREATABLE_FRAMEWORKS as i,requiredInputsForFramework as p}from"./frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as M,defaultFormsFromAddress as K,defaultFormsCorsOrigin as G,isAddressAtDomain as f}from"./staticSiteForms.js";export{P as CLOUDFRONT_PRICE_CLASS_VALUES,i as CREATABLE_FRAMEWORKS,M as DEFAULT_FORMS_FROM_LOCAL_PART,I as DEPLOYABLE_PATTERN_TYPES,a as FRAMEWORKS,Y as FRAMEWORK_PATTERN_RECOMMENDATIONS,U as FRAMEWORK_VALUES,N as OPENNEXT_PATTERN_TYPES,s as PATTERN_CREATE_INPUT_FLAGS,L as PATTERN_CREATE_INPUT_VALUES,R as PATTERN_REGISTRY,A as PATTERN_TYPES,_ as PATTERN_TYPE_VALUES,C as STATIC_SITE_CDN_CONFIG_KEYS,O as STATIC_SITE_CONFIG_KEYS,F as STATIC_SITE_DEPLOY_INJECTED_KEYS,t as STATIC_SITE_ROUTING_INFO,o as STATIC_SITE_ROUTING_VALUES,G as defaultFormsCorsOrigin,K as defaultFormsFromAddress,f as isAddressAtDomain,n as isFramework,e as isOpenNextPatternType,r as isPatternType,S as patternConstructId,d as recommendPatternForFramework,p as requiredInputsForFramework};
|
|
@@ -180,3 +180,57 @@ export declare const STATIC_SITE_ROUTING_INFO: {
|
|
|
180
180
|
readonly summary: "unknown paths fall back to /index.html";
|
|
181
181
|
};
|
|
182
182
|
};
|
|
183
|
+
/**
|
|
184
|
+
* CloudFront price-class vocabulary — shared by the CDN construct's props
|
|
185
|
+
* (`components/infrastructure`) and the generator's static-site schema, which
|
|
186
|
+
* must accept exactly what the construct accepts and cannot import it
|
|
187
|
+
* (generator depends on util only). The values are the CloudFront API's own
|
|
188
|
+
* literals, resolved to `aws-cloudfront.PriceClass` members by the construct.
|
|
189
|
+
*
|
|
190
|
+
* Coverage, for choosing: `PriceClass_100` = NA + Europe (+ Israel) only —
|
|
191
|
+
* no Oceania/Asia/South-America POPs; `PriceClass_200` adds Asia, but still
|
|
192
|
+
* no Australia/NZ; `PriceClass_All` is every edge location. At small-site
|
|
193
|
+
* traffic the price difference is ~zero, so for most sites this is a latency
|
|
194
|
+
* knob, not a cost knob.
|
|
195
|
+
*/
|
|
196
|
+
export declare const CLOUDFRONT_PRICE_CLASS_VALUES: readonly ["PriceClass_100", "PriceClass_200", "PriceClass_All"];
|
|
197
|
+
export type CloudFrontPriceClass = (typeof CLOUDFRONT_PRICE_CLASS_VALUES)[number];
|
|
198
|
+
/**
|
|
199
|
+
* The static-site pattern config's key manifest — the field-parity contract.
|
|
200
|
+
*
|
|
201
|
+
* Every key of `IStaticSiteProps` (components/infrastructure) appears here,
|
|
202
|
+
* and every surface that enumerates the config's fields is held to this list:
|
|
203
|
+
*
|
|
204
|
+
* - `IStaticSiteProps` itself — compile-time witness beside the interface;
|
|
205
|
+
* - the generator's `StaticSitePatternConfigSchema` (Zod, `.strict()`);
|
|
206
|
+
* - the generator's AST parser (`extractStaticSiteConfig` +
|
|
207
|
+
* `collectUnreadableStaticSiteFields` + `applyPatternConfig`);
|
|
208
|
+
* - the generator's emitter (`emitStaticSiteFields`) — guarded together with
|
|
209
|
+
* the parser by a full-config parse→plan→emit→re-parse round-trip test.
|
|
210
|
+
*
|
|
211
|
+
* Before this manifest those surfaces agreed only by discipline, and had
|
|
212
|
+
* already drifted: `zoneName`/`hostedZoneId` were interface-only, so a
|
|
213
|
+
* codemod round-trip silently erased them from a user's infrastructure.ts.
|
|
214
|
+
* Add a field to the interface without teaching the other surfaces and the
|
|
215
|
+
* witness/tests name the surface that is missing it.
|
|
216
|
+
*/
|
|
217
|
+
export declare const STATIC_SITE_CONFIG_KEYS: readonly ["type", "name", "source", "build", "routing", "security", "domain", "managedDomain", "zoneName", "hostedZoneId", "forms", "cdn", "accessGate"];
|
|
218
|
+
export type StaticSiteConfigKey = (typeof STATIC_SITE_CONFIG_KEYS)[number];
|
|
219
|
+
/**
|
|
220
|
+
* Keys of {@link STATIC_SITE_CONFIG_KEYS} that are DEPLOY-INJECTED, never
|
|
221
|
+
* authored: the CLI resolves a managed-domain binding at deploy time and
|
|
222
|
+
* carries it into synth via CDK context (`managedDomainBindings`), so the
|
|
223
|
+
* generator's schema and parser must NOT accept them — a user writing
|
|
224
|
+
* `managedDomain:` by hand in infrastructure.ts is outside the authored
|
|
225
|
+
* surface, and the parity tests exclude these keys rather than teaching the
|
|
226
|
+
* schema to admit them.
|
|
227
|
+
*/
|
|
228
|
+
export declare const STATIC_SITE_DEPLOY_INJECTED_KEYS: readonly ["managedDomain"];
|
|
229
|
+
export type StaticSiteDeployInjectedKey = (typeof STATIC_SITE_DEPLOY_INJECTED_KEYS)[number];
|
|
230
|
+
/**
|
|
231
|
+
* Key manifest for the static-site `cdn` sub-config — same parity contract as
|
|
232
|
+
* {@link STATIC_SITE_CONFIG_KEYS}, one level down (the sub-object is
|
|
233
|
+
* enumerated field-by-field on the same surfaces).
|
|
234
|
+
*/
|
|
235
|
+
export declare const STATIC_SITE_CDN_CONFIG_KEYS: readonly ["behaviours", "priceClass", "invalidateOnDeploy"];
|
|
236
|
+
export type StaticSiteCdnConfigKey = (typeof STATIC_SITE_CDN_CONFIG_KEYS)[number];
|
|
@@ -1 +1 @@
|
|
|
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"],
|
|
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"],c=new Set(o);function T(t){return typeof t=="string"&&c.has(t)}e(T,"isPatternType");const d=["source","buildCommand","outputDir"],E={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 _(t,a){return`${s(t)}${r[a].constructIdSuffix}`}e(_,"patternConstructId");const m=o.filter(t=>r[t].deployable),i=o.filter(t=>r[t].artefact==="opennext-lambda"),l=new Set(i);function S(t){return t!=null&&l.has(t)}e(S,"isOpenNextPatternType");const x=["multipage","directory","spa"],P={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"}},I=["PriceClass_100","PriceClass_200","PriceClass_All"],C=["type","name","source","build","routing","security","domain","managedDomain","zoneName","hostedZoneId","forms","cdn","accessGate"],N=["managedDomain"],b=["behaviours","priceClass","invalidateOnDeploy"];export{I as CLOUDFRONT_PRICE_CLASS_VALUES,m as DEPLOYABLE_PATTERN_TYPES,i as OPENNEXT_PATTERN_TYPES,E as PATTERN_CREATE_INPUT_FLAGS,d as PATTERN_CREATE_INPUT_VALUES,r as PATTERN_REGISTRY,c as PATTERN_TYPES,o as PATTERN_TYPE_VALUES,b as STATIC_SITE_CDN_CONFIG_KEYS,C as STATIC_SITE_CONFIG_KEYS,N as STATIC_SITE_DEPLOY_INJECTED_KEYS,P as STATIC_SITE_ROUTING_INFO,x as STATIC_SITE_ROUTING_VALUES,S as isOpenNextPatternType,T as isPatternType,_ as patternConstructId};
|