@fjall/util 23.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 +10 -10
- 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/fjallHome.d.ts +14 -0
- package/dist/fjallHome.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 +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",
|
|
@@ -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,16 +63,16 @@
|
|
|
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",
|
|
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",
|
|
@@ -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": "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/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/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
|
@@ -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, 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 A,getDomainUsEast1CertificatesStackName as o,hostsExportPartName as t,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 C}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 Ae}from"./errorUtils.js";import{FJALL_CONFIG_DIR_ENV as te,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 Ce,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 AE,optInRegionWarning as oE,regions as tE,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 IE,SSM_COMPONENT_ERROR as CE,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 Ar}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as tr}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 Ir}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_,STATIC_SITE_ROUTING_INFO as E_,PATTERN_CREATE_INPUT_VALUES as r_,PATTERN_CREATE_INPUT_FLAGS as __}from"./patterns/patternTypes.js";import{FRAMEWORK_VALUES as o_,FRAMEWORKS as t_,isFramework as T_,FRAMEWORK_PATTERN_RECOMMENDATIONS as S_,recommendPatternForFramework as a_,CREATABLE_FRAMEWORKS as N_,requiredInputsForFramework as R_}from"./patterns/frameworkPatterns.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as n_,defaultFormsFromAddress as O_,defaultFormsCorsOrigin as m_,isAddressAtDomain as I_}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as P_,DEV_SUBSTRATE_PARAMS_FILENAME as L_,DevSubstrateSynthPropsSchema as s_,DevSubstrateParamsSchema as p_}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as M_}from"./devSubstrate/entrypoint.js";import{BLESSED_CDK_TOOLCHAIN as f_}from"./cdkToolchain.js";import{DEPLOYMENT_FAILURE_PHASES as U_,DeploymentFailurePhaseSchema as l_,DEPLOYMENT_FAULT_ATTRIBUTIONS as u_,DeploymentFaultAttributionSchema as d_,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as x_,DeploymentFailureProviderSourceSchema as g_,DEPLOYMENT_FAILURE_CODE_PATTERN as G_,DEPLOYMENT_FAILURE_SCHEMA_VERSION as h_,DEPLOYMENT_FAILURE_LIMITS as H_,DeploymentFailureAnalysisSchema as V_,DeploymentFailureProviderSchema as Y_,DeploymentFailureResourceSchema as y_,DeploymentFailureSchema as K_,parseDeploymentFailure as v_,DEPLOYMENT_FAILURE_DOCS_BASE_URL as X_,deploymentFailureDocsUrl as b_,DEPLOYMENT_FAULT_COPY as B_,DEPLOYMENT_PROVIDER_LABELS as W_,deriveErrorMessageFromFailure as J_,toDeploymentFailureAnalysis as k_}from"./failure/deploymentFailure.js";import{extractErrorWindow as w_,ERROR_WINDOW_CONTEXT_LINES as Z_}from"./failure/extractErrorWindow.js";import{FJALL_COMPONENT_GITIGNORE as z_,FJALL_PROJECT_GITIGNORE as Q_,FJALL_STATE_GITIGNORE_ENTRIES as $_,FJALL_MANAGED_STATE_DIR_ENTRIES as eA,LOCAL_CONFIG_GITIGNORE_ENTRY as EA}from"./scaffold/gitignore.js";import{ensureGitignoreEntries as _A}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,f_ 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,Ir as CONTENT_HASH_TAG_PATTERN,N_ as CREATABLE_FRAMEWORKS,b as CapacityIdentityConfigSchema,v as CapacityIdentityPinSchema,X as CapacityIdentityWireSchema,UE as ConnectionWireSchema,lE as ConnectionsListResponseSchema,Ce as DANGEROUS_ENV_VARS,V as DEFAULT_CAPACITY_SLOT,n_ as DEFAULT_FORMS_FROM_LOCAL_PART,EE as DEFAULT_REGION,zr as DEPLOYABLE_PATTERN_TYPES,G_ as DEPLOYMENT_FAILURE_CODE_PATTERN,X_ as DEPLOYMENT_FAILURE_DOCS_BASE_URL,H_ as DEPLOYMENT_FAILURE_LIMITS,U_ as DEPLOYMENT_FAILURE_PHASES,x_ as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,h_ as DEPLOYMENT_FAILURE_SCHEMA_VERSION,u_ as DEPLOYMENT_FAULT_ATTRIBUTIONS,B_ as DEPLOYMENT_FAULT_COPY,W_ as DEPLOYMENT_PROVIDER_LABELS,Pr as DEPLOY_MODES,M_ as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,L_ as DEV_SUBSTRATE_PARAMS_FILENAME,P_ as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,Lr as DeployModeSchema,V_ as DeploymentFailureAnalysisSchema,l_ as DeploymentFailurePhaseSchema,Y_ as DeploymentFailureProviderSchema,g_ as DeploymentFailureProviderSourceSchema,y_ as DeploymentFailureResourceSchema,K_ as DeploymentFailureSchema,d_ as DeploymentFaultAttributionSchema,p_ as DevSubstrateParamsSchema,s_ as DevSubstrateSynthPropsSchema,Z_ 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,z_ as FJALL_COMPONENT_GITIGNORE,te 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,eA as FJALL_MANAGED_STATE_DIR_ENTRIES,Q_ as FJALL_PROJECT_GITIGNORE,vr as FJALL_SCHEMA_GATE_USER,$_ as FJALL_STATE_GITIGNORE_ENTRIES,t_ as FRAMEWORKS,S_ 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,EA 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,AE as OPT_IN_REGION_CODES,__ as PATTERN_CREATE_INPUT_FLAGS,r_ 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,CE as SSM_COMPONENT_ERROR,IE as SSM_COMPONENT_PATTERN,PE as SSM_STANDARD_MAX_VALUE_BYTES,E_ as STATIC_SITE_ROUTING_INFO,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,m_ as defaultFormsCorsOrigin,O_ as defaultFormsFromAddress,b_ as deploymentFailureDocsUrl,ZE as deriveAllTargets,mr as deriveContentHashTag,J_ as deriveErrorMessageFromFailure,jE as deriveRegionsFromOrgConfig,wE as deriveTargets,_A as ensureGitignoreEntries,qE as environmentOrTier,Ke as environmentToTier,fE as escapeDotEnvValue,w_ 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,Ae as formatErrorString,QE as generateTargetName,_ as getDomainExportNames,A as getDomainStackName,o 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,t as hostsExportPartName,C as imageTagParameterName,tr as inferContainerFromCandidates,Ge as isAccountStage,Ve as isAccountTier,I_ as isAddressAtDomain,T_ as isFramework,ye as isGovernanceTier,Ar 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,oE as optInRegionWarning,v_ as parseDeploymentFailure,cE as parseDotEnv,ze as parseGitRemoteUrl,DE as parseParameterPath,pe as parseShellArgs,qr as patternConstructId,B as projectCapacityIdentityToTarget,a_ as recommendPatternForFramework,z as regionSuffixRejectionMessage,tE as regions,R_ 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,k_ as toDeploymentFailureAnalysis,s as toKebab,L as toPascalCase,D as toScreamingSnake,p as toValidDatabaseName,YE 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/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, 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};
|