@fjall/util 19.0.0 → 20.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.
@@ -9,7 +9,7 @@
9
9
  "package.json",
10
10
  "tsconfig.json"
11
11
  ],
12
- "hash": "86830ce2cdf957901c18bfc46dd8a4bcd198962fd6974abf0dc363c3aada878f",
12
+ "hash": "a0a493b8832688e4bc7a72eea503c17e90d177fbbdf80d407eaa571a83d6d6a3",
13
13
  "files": {
14
14
  "src/async/concurrency.ts": "3c7ebe0222a720f9",
15
15
  "src/async/singleton.ts": "7bcc21b0fb920561",
@@ -29,6 +29,7 @@
29
29
  "src/buildConcurrency.ts": "1804e76ddc4f8216",
30
30
  "src/capacityIdentity.ts": "9e59bfc92a5ba361",
31
31
  "src/cdkTmpdirCleanup.ts": "4574b3f10e3ab0f9",
32
+ "src/cdkToolchain.ts": "a6b996c60b87d644",
32
33
  "src/cfn/physicalNameProperties.ts": "35d3c6f28079c593",
33
34
  "src/clickhouse.ts": "655c74cdba292c29",
34
35
  "src/config.ts": "11c577414a91c542",
@@ -68,9 +69,9 @@
68
69
  "src/fsHelpers.ts": "0869d9739d523572",
69
70
  "src/fsScan.ts": "feb187758481443f",
70
71
  "src/httpKeepAlive.ts": "c8fe4b118ef4c79f",
71
- "src/index.ts": "f64c6bca40daf22a",
72
+ "src/index.ts": "34a9bb9a33ef1680",
72
73
  "src/infra/backupVault.ts": "661678a6dfb0b648",
73
- "src/infra/connectionsWire.ts": "8480df48d8a16897",
74
+ "src/infra/connectionsWire.ts": "e3afa3ba95a531d8",
74
75
  "src/infra/deployArtefacts.ts": "235ac21dd3ccf0b2",
75
76
  "src/infra/deriveContentHashTag.ts": "115fbe6588794027",
76
77
  "src/infra/domainExports.ts": "18de5b8668633aaf",
@@ -95,7 +96,7 @@
95
96
  "src/naming/connectedAccountName.ts": "3cd3bc7dba0a2f0b",
96
97
  "src/naming/reservedAppNames.ts": "7f63dd0b84c1972e",
97
98
  "src/naming/targetExportNames.ts": "bab26b7c0243fafa",
98
- "src/onboarding/index.ts": "9922289e4c510385",
99
+ "src/onboarding/index.ts": "7999117c5a7a18d1",
99
100
  "src/onboarding/versionCurrency.ts": "19695f38b09cfc46",
100
101
  "src/patterns/index.ts": "9f024b45c2e225b0",
101
102
  "src/patterns/patternTypes.ts": "6e0aff0443bcb770",
@@ -113,9 +114,9 @@
113
114
  "src/securityHelpers.ts": "2632215f57e1528c",
114
115
  "src/targets.ts": "126280f0a5762e21",
115
116
  "../scripts/minify-dist.mjs": "6b2e4b0df8aec601",
116
- "package.json": "a96bccd98c0d1f3e",
117
+ "package.json": "e6b55e0cbbcafa56",
117
118
  "tsconfig.json": "db759831ad95f396"
118
119
  },
119
- "outputHash": "93d8355b738e5e55474959722e09e9e7b120c05bbb17ef466ca5d01523e1b556",
120
- "outputFileCount": 209
120
+ "outputHash": "5d297fd2a4b1eb5849301e75fd57cf8b1f47a2c32b3b828c446b4be862ca27fe",
121
+ "outputFileCount": 211
121
122
  }
package/dist/.minified CHANGED
@@ -1 +1 @@
1
- 104 files minified at 2026-08-24T11:06:48.081Z
1
+ 105 files minified at 2026-08-24T18:04:48.133Z
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Blessed AWS CDK toolchain — the versions last confirmed compatible as a
3
+ * set. The canonical record is `scripts/cdk-blessed-versions.json` at the
4
+ * monorepo root (enforced against installed node_modules by
5
+ * `scripts/check-cdk-blessed-pair.mjs` in CI); this export mirrors it for
6
+ * consumers OUTSIDE the monorepo that materialise CDK workspaces at runtime
7
+ * (the webapp's dev-substrate worker cannot read the construct package's own
8
+ * package.json — `npm ci --omit=dev` strips it). Parity between this
9
+ * constant, the JSON, and the construct package's peer range is pinned by
10
+ * `util/src/__tests__/cdkToolchain.test.ts`, which runs in fjall-ci — a bump
11
+ * to either side without the other fails the build.
12
+ */
13
+ export declare const BLESSED_CDK_TOOLCHAIN: {
14
+ readonly "aws-cdk": "2.1134.0";
15
+ readonly "aws-cdk-lib": "2.265.0";
16
+ readonly "@aws-cdk/cloudformation-diff": "2.187.2";
17
+ readonly constructs: "10.8.0";
18
+ };
19
+ export type BlessedCdkToolchain = typeof BLESSED_CDK_TOOLCHAIN;
@@ -0,0 +1 @@
1
+ const c={"aws-cdk":"2.1134.0","aws-cdk-lib":"2.265.0","@aws-cdk/cloudformation-diff":"2.187.2",constructs:"10.8.0"};export{c as BLESSED_CDK_TOOLCHAIN};
package/dist/index.d.ts CHANGED
@@ -18,7 +18,7 @@ export { parseGitRemoteUrl, type GitProvider, type ParsedGitRemote } from "./rep
18
18
  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";
19
19
  export { SCOPE_VALUES, MACHINE_ONLY_SCOPES, USER_GRANTABLE_SCOPES, GOVERNANCE_SCOPE_REQUIRED_CODE, type TokenScope } from "./infra/tokenScopes.js";
20
20
  export { SECRET_NAME_PATTERN, SECRET_NAME_ERROR, SSM_COMPONENT_PATTERN, SSM_COMPONENT_ERROR, SSM_STANDARD_MAX_VALUE_BYTES, SecretNamespaceSchema, type SecretNamespace, buildNamespaceParts, buildParameterPath, parseParameterPath, isManageablePath, parseDotEnv, escapeDotEnvValue } from "./secrets.js";
21
- export { ConnectionWireSchema, type ConnectionWire, ConnectionsListResponseSchema, type ConnectionsListResponse, CONNECTION_PHASES, type ConnectionPhase, CONNECTION_FAILURE_REASONS, type ConnectionFailureReason, EXTERNAL_ID_PATTERN } from "./infra/connectionsWire.js";
21
+ export { ConnectionWireSchema, type ConnectionWire, ConnectionsListResponseSchema, type ConnectionsListResponse, CONNECTION_PHASES, type ConnectionPhase, CONNECTION_TERMINAL_FAILURE_PHASES, type ConnectionTerminalFailurePhase, CONNECTION_FAILURE_REASONS, type ConnectionFailureReason, EXTERNAL_ID_PATTERN } from "./infra/connectionsWire.js";
22
22
  export { PUBLIC_PACKAGE_NAME, INSTALL_SOURCES, type InstallSource, SETUP_COMMANDS, type SetupCommandId, upgradeCommand, SETUP_MODES, type SetupMode, SETUP_STEP_IDS, type SetupStepId, type SetupStep, type SetupStepSequence, SETUP_STEPS, AGENT_SETUP_PROMPTS, AGENT_INSTALL_COMMAND, SKILL_INSTALL_SEGMENTS, SKILL_INSTALL_FILENAME, SKILL_INSTALL_PATH } from "./onboarding/index.js";
23
23
  export { deriveRegionsFromOrgConfig, deriveTargets, deriveAllTargets, environmentOrTier, findTarget, generateTargetName, type OrgConfigRegions, type TargetAccount, type DerivedTarget } from "./targets.js";
24
24
  export { buildAppConfigPath } from "./repo/appPath.js";
@@ -34,5 +34,6 @@ export { PATTERN_TYPE_VALUES, type PatternType, PATTERN_TYPES, isPatternType, ty
34
34
  export { DEFAULT_FORMS_FROM_LOCAL_PART, defaultFormsFromAddress, defaultFormsCorsOrigin, isAddressAtDomain } from "./patterns/staticSiteForms.js";
35
35
  export { DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION, DEV_SUBSTRATE_PARAMS_FILENAME, DevSubstrateSynthPropsSchema, type DevSubstrateSynthProps, DevSubstrateParamsSchema, type DevSubstrateParams } from "./devSubstrate/params.js";
36
36
  export { DEV_SUBSTRATE_ENTRYPOINT_SOURCE } from "./devSubstrate/entrypoint.js";
37
+ export { BLESSED_CDK_TOOLCHAIN, type BlessedCdkToolchain } from "./cdkToolchain.js";
37
38
  export { DEPLOYMENT_FAILURE_PHASES, DeploymentFailurePhaseSchema, type DeploymentFailurePhase, DEPLOYMENT_FAULT_ATTRIBUTIONS, DeploymentFaultAttributionSchema, type DeploymentFaultAttribution, DEPLOYMENT_FAILURE_PROVIDER_SOURCES, DeploymentFailureProviderSourceSchema, type DeploymentFailureProviderSource, DEPLOYMENT_FAILURE_CODE_PATTERN, DEPLOYMENT_FAILURE_SCHEMA_VERSION, DEPLOYMENT_FAILURE_LIMITS, DeploymentFailureAnalysisSchema, type DeploymentFailureAnalysis, DeploymentFailureProviderSchema, type DeploymentFailureProvider, DeploymentFailureResourceSchema, type DeploymentFailureResource, DeploymentFailureSchema, type DeploymentFailure, parseDeploymentFailure, DEPLOYMENT_FAILURE_DOCS_BASE_URL, deploymentFailureDocsUrl, DEPLOYMENT_FAULT_COPY, DEPLOYMENT_PROVIDER_LABELS, deriveErrorMessageFromFailure, toDeploymentFailureAnalysis } from "./failure/deploymentFailure.js";
38
39
  export { extractErrorWindow, ERROR_WINDOW_CONTEXT_LINES, type ExtractErrorWindowOptions } from "./failure/extractErrorWindow.js";
package/dist/index.js CHANGED
@@ -1 +1 @@
1
- import{DNS_APEX as r,getDomainExportNames as t,getDomainStackName as _,getDomainUsEast1CertificatesStackName as o,hostsExportPartName as S,serialiseHostsChunks as T,HOSTS_OUTPUT_MAX_BYTES as A,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 m,TOKEN_STDERR_PREFIX as O}from"./deploy/approvalTokenOutput.js";import{imageTagParameterName as C}from"./infra/imageTags.js";import{toPascalCase as I,toKebab as p,toValidDatabaseName as D,toScreamingSnake as c,capitalise as L,getSafeZoneName as M,accountConstructKey as f,hasAsciiStableConstructKey as U}from"./naming/caseConversion.js";import{albDnsExportName as u,albHostedZoneIdExportName as d,cdnDomainExportName as g,bucketWebsiteEndpointExportName as x,bucketWebsiteHostedZoneIdExportName as F}from"./naming/targetExportNames.js";import{CAPACITY_SLOT_PATTERN as V,CAPACITY_SLOT_MAX_LENGTH as Y,DEFAULT_CAPACITY_SLOT as y,CAPACITY_ANCHOR_PATTERN as G,CAPACITY_ANCHOR_MAX_LENGTH as H,CAPACITY_IDENTITY_CONTEXT_KEY as v,CapacityIdentityPinSchema as b,CapacityIdentityWireSchema as K,CapacityIdentityConfigSchema as X,projectCapacityIdentityToTarget as B}from"./capacityIdentity.js";import{findAccountNameCollision as k}from"./naming/accountNameCollision.js";import{defaultConnectedAccountName as j,suffixedAccountName as w,REGION_SHORT_CODES as z,findTrailingRegionShortCode as Q,regionSuffixRejectionMessage as q}from"./naming/connectedAccountName.js";import{normaliseError as $,getErrorMessage as ee,hasErrorCode as Ee,getErrorCode as re,getErrorStack as te,formatErrorString as _e}from"./errorUtils.js";import{singleton as Se}from"./async/singleton.js";import{DANGEROUS_ENV_VARS as Ae,filterDangerousEnvVars as ae,MASKED_VALUE_MARKER as Ne,maskSensitiveOutput as Re,parseShellArgs as ne,REDACTED_KEY_SENTINEL as ie,SCOPED_TOKEN_REGEX as me}from"./securityHelpers.js";import{sleep as Pe}from"./async/sleep.js";import{mapSettledWithConcurrency as se}from"./async/concurrency.js";import{ACCOUNT_STAGES_WITH_ROOT as pe,STRUCTURAL_ENVIRONMENTS as De,ACCOUNT_STAGES as ce,ACCOUNT_STAGE_LABELS as Le,isAccountStage as Me,ACCOUNT_TIERS as fe,AccountTierSchema as Ue,isAccountTier as le,GOVERNANCE_ACCOUNT_TIERS as ue,isGovernanceTier as de,environmentToTier as ge,stageFromWireEnvironment as xe,accountTier as Fe,resolveSynthEnvironment as he,getEnvironmentLabel as Ve,ACCOUNT_ROLES as Ye}from"./environments.js";import{RESOURCE_CATEGORIES as Ge,categoriseResource as He,getExpectedDuration as ve,getFriendlyResourceType as be}from"./resourceCategorisation.js";import{parseGitRemoteUrl as Xe}from"./repo/gitRemoteParser.js";import{abbreviateRegion as We,AWS_REGIONS_METADATA as ke,DEFAULT_REGION as Ze,getRegionInfo as je,MAX_SECONDARY_REGIONS as we,OPT_IN_REGION_CODES as ze,optInRegionWarning as Qe,regions as qe,suggestRegionForTimezone as Je}from"./infra/regions.js";import{SCOPE_VALUES as eE,MACHINE_ONLY_SCOPES as EE,USER_GRANTABLE_SCOPES as rE,GOVERNANCE_SCOPE_REQUIRED_CODE as tE}from"./infra/tokenScopes.js";import{SECRET_NAME_PATTERN as oE,SECRET_NAME_ERROR as SE,SSM_COMPONENT_PATTERN as TE,SSM_COMPONENT_ERROR as AE,SSM_STANDARD_MAX_VALUE_BYTES as aE,SecretNamespaceSchema as NE,buildNamespaceParts as RE,buildParameterPath as nE,parseParameterPath as iE,isManageablePath as mE,parseDotEnv as OE,escapeDotEnvValue as PE}from"./secrets.js";import{ConnectionWireSchema as sE,ConnectionsListResponseSchema as IE,CONNECTION_PHASES as pE,CONNECTION_FAILURE_REASONS as DE,EXTERNAL_ID_PATTERN as cE}from"./infra/connectionsWire.js";import{PUBLIC_PACKAGE_NAME as ME,INSTALL_SOURCES as fE,SETUP_COMMANDS as UE,upgradeCommand as lE,SETUP_MODES as uE,SETUP_STEP_IDS as dE,SETUP_STEPS as gE,AGENT_SETUP_PROMPTS as xE,AGENT_INSTALL_COMMAND as FE,SKILL_INSTALL_SEGMENTS as hE,SKILL_INSTALL_FILENAME as VE,SKILL_INSTALL_PATH as YE}from"./onboarding/index.js";import{deriveRegionsFromOrgConfig as GE,deriveTargets as HE,deriveAllTargets as vE,environmentOrTier as bE,findTarget as KE,generateTargetName as XE}from"./targets.js";import{buildAppConfigPath as WE}from"./repo/appPath.js";import{findInfrastructurePaths as ZE,findBoundaryPath as jE,isInfrastructureFile as wE}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as QE}from"./repo/inferContainerFromCandidates.js";import{RESERVED_APP_NAMES as JE,RESERVED_APP_NAME_MESSAGE as $E,isReservedAppName as er,RESERVED_APP_NAME_SUFFIX as Er,RESERVED_APP_NAME_SUFFIX_MESSAGE as rr,hasReservedAppNameSuffix as tr}from"./naming/reservedAppNames.js";import{deriveContentHashTag as or,CONTENT_HASH_TAG_PATTERN as Sr}from"./infra/deriveContentHashTag.js";import{DEPLOY_MODES as Ar,DeployModeSchema as ar,IMAGE_TAG_PATTERN as Nr,ImageTagSchema as Rr,ServiceArtefactSchema as nr,ServiceArtefactsSchema as ir,ARTEFACT_OUTPUT_FIELDS as mr,artefactOutputKey as Or}from"./infra/deployArtefacts.js";import{MIGRATION_SNAPSHOT_NAME_PREFIX as Cr,EXPECTED_SCHEMA_VERSION_ENV as sr,EXPECTED_SCHEMA_VERSION_TOOL_ENV as Ir,EXPECTED_CH_SCHEMA_VERSION_ENV as pr,SCHEMA_ADMIN_USER_ENV as Dr,SCHEMA_ADMIN_PASSWORD_ENV as cr,PRISMA_MIGRATION_DIR_RE as Lr,CLICKHOUSE_MIGRATION_SKIP_RE as Mr}from"./migration/constants.js";import{PHYSICAL_NAME_FALLBACK_PROPERTIES as Ur}from"./cfn/physicalNameProperties.js";import{PATTERN_TYPE_VALUES as ur,PATTERN_TYPES as dr,isPatternType as gr,PATTERN_REGISTRY as xr,patternConstructId as Fr,DEPLOYABLE_PATTERN_TYPES as hr,OPENNEXT_PATTERN_TYPES as Vr,isOpenNextPatternType as Yr,STATIC_SITE_ROUTING_VALUES as yr}from"./patterns/patternTypes.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as Hr,defaultFormsFromAddress as vr,defaultFormsCorsOrigin as br,isAddressAtDomain as Kr}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as Br,DEV_SUBSTRATE_PARAMS_FILENAME as Wr,DevSubstrateSynthPropsSchema as kr,DevSubstrateParamsSchema as Zr}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as wr}from"./devSubstrate/entrypoint.js";import{DEPLOYMENT_FAILURE_PHASES as Qr,DeploymentFailurePhaseSchema as qr,DEPLOYMENT_FAULT_ATTRIBUTIONS as Jr,DeploymentFaultAttributionSchema as $r,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as et,DeploymentFailureProviderSourceSchema as Et,DEPLOYMENT_FAILURE_CODE_PATTERN as rt,DEPLOYMENT_FAILURE_SCHEMA_VERSION as tt,DEPLOYMENT_FAILURE_LIMITS as _t,DeploymentFailureAnalysisSchema as ot,DeploymentFailureProviderSchema as St,DeploymentFailureResourceSchema as Tt,DeploymentFailureSchema as At,parseDeploymentFailure as at,DEPLOYMENT_FAILURE_DOCS_BASE_URL as Nt,deploymentFailureDocsUrl as Rt,DEPLOYMENT_FAULT_COPY as nt,DEPLOYMENT_PROVIDER_LABELS as it,deriveErrorMessageFromFailure as mt,toDeploymentFailureAnalysis as Ot}from"./failure/deploymentFailure.js";import{extractErrorWindow as Ct,ERROR_WINDOW_CONTEXT_LINES as st}from"./failure/extractErrorWindow.js";export{Ye as ACCOUNT_ROLES,ce as ACCOUNT_STAGES,pe as ACCOUNT_STAGES_WITH_ROOT,Le as ACCOUNT_STAGE_LABELS,fe as ACCOUNT_TIERS,FE as AGENT_INSTALL_COMMAND,xE as AGENT_SETUP_PROMPTS,m as APPROVAL_TOKEN_OUTPUT_PREFIX,mr as ARTEFACT_OUTPUT_FIELDS,ke as AWS_REGIONS_METADATA,Ue as AccountTierSchema,n as BACKUP_VAULT_NAME,H as CAPACITY_ANCHOR_MAX_LENGTH,G as CAPACITY_ANCHOR_PATTERN,v as CAPACITY_IDENTITY_CONTEXT_KEY,Y as CAPACITY_SLOT_MAX_LENGTH,V as CAPACITY_SLOT_PATTERN,Mr as CLICKHOUSE_MIGRATION_SKIP_RE,DE as CONNECTION_FAILURE_REASONS,pE as CONNECTION_PHASES,Sr as CONTENT_HASH_TAG_PATTERN,X as CapacityIdentityConfigSchema,b as CapacityIdentityPinSchema,K as CapacityIdentityWireSchema,sE as ConnectionWireSchema,IE as ConnectionsListResponseSchema,Ae as DANGEROUS_ENV_VARS,y as DEFAULT_CAPACITY_SLOT,Hr as DEFAULT_FORMS_FROM_LOCAL_PART,Ze as DEFAULT_REGION,hr as DEPLOYABLE_PATTERN_TYPES,rt as DEPLOYMENT_FAILURE_CODE_PATTERN,Nt as DEPLOYMENT_FAILURE_DOCS_BASE_URL,_t as DEPLOYMENT_FAILURE_LIMITS,Qr as DEPLOYMENT_FAILURE_PHASES,et as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,tt as DEPLOYMENT_FAILURE_SCHEMA_VERSION,Jr as DEPLOYMENT_FAULT_ATTRIBUTIONS,nt as DEPLOYMENT_FAULT_COPY,it as DEPLOYMENT_PROVIDER_LABELS,Ar as DEPLOY_MODES,wr as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,Wr as DEV_SUBSTRATE_PARAMS_FILENAME,Br as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,ar as DeployModeSchema,ot as DeploymentFailureAnalysisSchema,qr as DeploymentFailurePhaseSchema,St as DeploymentFailureProviderSchema,Et as DeploymentFailureProviderSourceSchema,Tt as DeploymentFailureResourceSchema,At as DeploymentFailureSchema,$r as DeploymentFaultAttributionSchema,Zr as DevSubstrateParamsSchema,kr as DevSubstrateSynthPropsSchema,st as ERROR_WINDOW_CONTEXT_LINES,pr as EXPECTED_CH_SCHEMA_VERSION_ENV,sr as EXPECTED_SCHEMA_VERSION_ENV,Ir as EXPECTED_SCHEMA_VERSION_TOOL_ENV,cE as EXTERNAL_ID_PATTERN,ue as GOVERNANCE_ACCOUNT_TIERS,tE as GOVERNANCE_SCOPE_REQUIRED_CODE,A as HOSTS_OUTPUT_MAX_BYTES,Nr as IMAGE_TAG_PATTERN,fE as INSTALL_SOURCES,Rr as ImageTagSchema,EE as MACHINE_ONLY_SCOPES,Ne as MASKED_VALUE_MARKER,we as MAX_SECONDARY_REGIONS,Cr as MIGRATION_SNAPSHOT_NAME_PREFIX,Vr as OPENNEXT_PATTERN_TYPES,ze as OPT_IN_REGION_CODES,xr as PATTERN_REGISTRY,dr as PATTERN_TYPES,ur as PATTERN_TYPE_VALUES,Ur as PHYSICAL_NAME_FALLBACK_PROPERTIES,Lr as PRISMA_MIGRATION_DIR_RE,ME as PUBLIC_PACKAGE_NAME,ie as REDACTED_KEY_SENTINEL,z as REGION_SHORT_CODES,JE as RESERVED_APP_NAMES,$E as RESERVED_APP_NAME_MESSAGE,Er as RESERVED_APP_NAME_SUFFIX,rr as RESERVED_APP_NAME_SUFFIX_MESSAGE,Ge as RESOURCE_CATEGORIES,cr as SCHEMA_ADMIN_PASSWORD_ENV,Dr as SCHEMA_ADMIN_USER_ENV,me as SCOPED_TOKEN_REGEX,eE as SCOPE_VALUES,SE as SECRET_NAME_ERROR,oE as SECRET_NAME_PATTERN,UE as SETUP_COMMANDS,uE as SETUP_MODES,gE as SETUP_STEPS,dE as SETUP_STEP_IDS,VE as SKILL_INSTALL_FILENAME,YE as SKILL_INSTALL_PATH,hE as SKILL_INSTALL_SEGMENTS,AE as SSM_COMPONENT_ERROR,TE as SSM_COMPONENT_PATTERN,aE as SSM_STANDARD_MAX_VALUE_BYTES,yr as STATIC_SITE_ROUTING_VALUES,De as STRUCTURAL_ENVIRONMENTS,NE as SecretNamespaceSchema,nr as ServiceArtefactSchema,ir as ServiceArtefactsSchema,O as TOKEN_STDERR_PREFIX,rE as USER_GRANTABLE_SCOPES,We as abbreviateRegion,f as accountConstructKey,Fe as accountTier,u as albDnsExportName,d as albHostedZoneIdExportName,Or as artefactOutputKey,x as bucketWebsiteEndpointExportName,F as bucketWebsiteHostedZoneIdExportName,WE as buildAppConfigPath,RE as buildNamespaceParts,nE as buildParameterPath,L as capitalise,He as categoriseResource,g as cdnDomainExportName,j as defaultConnectedAccountName,br as defaultFormsCorsOrigin,vr as defaultFormsFromAddress,Rt as deploymentFailureDocsUrl,vE as deriveAllTargets,or as deriveContentHashTag,mt as deriveErrorMessageFromFailure,GE as deriveRegionsFromOrgConfig,HE as deriveTargets,bE as environmentOrTier,ge as environmentToTier,PE as escapeDotEnvValue,Ct as extractErrorWindow,ae as filterDangerousEnvVars,k as findAccountNameCollision,jE as findBoundaryPath,ZE as findInfrastructurePaths,KE as findTarget,Q as findTrailingRegionShortCode,_e as formatErrorString,XE as generateTargetName,t as getDomainExportNames,_ as getDomainStackName,o as getDomainUsEast1CertificatesStackName,Ve as getEnvironmentLabel,re as getErrorCode,ee as getErrorMessage,te as getErrorStack,ve as getExpectedDuration,be as getFriendlyResourceType,je as getRegionInfo,M as getSafeZoneName,U as hasAsciiStableConstructKey,Ee as hasErrorCode,tr as hasReservedAppNameSuffix,S as hostsExportPartName,C as imageTagParameterName,QE as inferContainerFromCandidates,Me as isAccountStage,le as isAccountTier,Kr as isAddressAtDomain,de as isGovernanceTier,wE as isInfrastructureFile,mE as isManageablePath,a as isManagedDomainBinding,Yr as isOpenNextPatternType,gr as isPatternType,er as isReservedAppName,se as mapSettledWithConcurrency,Re as maskSensitiveOutput,$ as normaliseError,Qe as optInRegionWarning,at as parseDeploymentFailure,OE as parseDotEnv,Xe as parseGitRemoteUrl,iE as parseParameterPath,ne as parseShellArgs,Fr as patternConstructId,B as projectCapacityIdentityToTarget,q as regionSuffixRejectionMessage,qe as regions,he as resolveSynthEnvironment,T as serialiseHostsChunks,Se as singleton,Pe as sleep,xe as stageFromWireEnvironment,w as suffixedAccountName,Je as suggestRegionForTimezone,Ot as toDeploymentFailureAnalysis,p as toKebab,I as toPascalCase,c as toScreamingSnake,D as toValidDatabaseName,lE as upgradeCommand};
1
+ import{DNS_APEX as r,getDomainExportNames as _,getDomainStackName as t,getDomainUsEast1CertificatesStackName as o,hostsExportPartName as S,serialiseHostsChunks as T,HOSTS_OUTPUT_MAX_BYTES as A,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 m,TOKEN_STDERR_PREFIX as O}from"./deploy/approvalTokenOutput.js";import{imageTagParameterName as C}from"./infra/imageTags.js";import{toPascalCase as I,toKebab as p,toValidDatabaseName as D,toScreamingSnake as L,capitalise as c,getSafeZoneName as M,accountConstructKey as f,hasAsciiStableConstructKey as U}from"./naming/caseConversion.js";import{albDnsExportName as u,albHostedZoneIdExportName as d,cdnDomainExportName as g,bucketWebsiteEndpointExportName as x,bucketWebsiteHostedZoneIdExportName as F}from"./naming/targetExportNames.js";import{CAPACITY_SLOT_PATTERN as V,CAPACITY_SLOT_MAX_LENGTH as Y,DEFAULT_CAPACITY_SLOT as y,CAPACITY_ANCHOR_PATTERN as G,CAPACITY_ANCHOR_MAX_LENGTH as H,CAPACITY_IDENTITY_CONTEXT_KEY as v,CapacityIdentityPinSchema as b,CapacityIdentityWireSchema as K,CapacityIdentityConfigSchema as X,projectCapacityIdentityToTarget as B}from"./capacityIdentity.js";import{findAccountNameCollision as k}from"./naming/accountNameCollision.js";import{defaultConnectedAccountName as j,suffixedAccountName as w,REGION_SHORT_CODES as z,findTrailingRegionShortCode as Q,regionSuffixRejectionMessage as q}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{singleton as Se}from"./async/singleton.js";import{DANGEROUS_ENV_VARS as Ae,filterDangerousEnvVars as ae,MASKED_VALUE_MARKER as Ne,maskSensitiveOutput as Re,parseShellArgs as ne,REDACTED_KEY_SENTINEL as ie,SCOPED_TOKEN_REGEX as me}from"./securityHelpers.js";import{sleep as Pe}from"./async/sleep.js";import{mapSettledWithConcurrency as se}from"./async/concurrency.js";import{ACCOUNT_STAGES_WITH_ROOT as pe,STRUCTURAL_ENVIRONMENTS as De,ACCOUNT_STAGES as Le,ACCOUNT_STAGE_LABELS as ce,isAccountStage as Me,ACCOUNT_TIERS as fe,AccountTierSchema as Ue,isAccountTier as le,GOVERNANCE_ACCOUNT_TIERS as ue,isGovernanceTier as de,environmentToTier as ge,stageFromWireEnvironment as xe,accountTier as Fe,resolveSynthEnvironment as he,getEnvironmentLabel as Ve,ACCOUNT_ROLES as Ye}from"./environments.js";import{RESOURCE_CATEGORIES as Ge,categoriseResource as He,getExpectedDuration as ve,getFriendlyResourceType as be}from"./resourceCategorisation.js";import{parseGitRemoteUrl as Xe}from"./repo/gitRemoteParser.js";import{abbreviateRegion as We,AWS_REGIONS_METADATA as ke,DEFAULT_REGION as Ze,getRegionInfo as je,MAX_SECONDARY_REGIONS as we,OPT_IN_REGION_CODES as ze,optInRegionWarning as Qe,regions as qe,suggestRegionForTimezone as Je}from"./infra/regions.js";import{SCOPE_VALUES as eE,MACHINE_ONLY_SCOPES as EE,USER_GRANTABLE_SCOPES as rE,GOVERNANCE_SCOPE_REQUIRED_CODE as _E}from"./infra/tokenScopes.js";import{SECRET_NAME_PATTERN as oE,SECRET_NAME_ERROR as SE,SSM_COMPONENT_PATTERN as TE,SSM_COMPONENT_ERROR as AE,SSM_STANDARD_MAX_VALUE_BYTES as aE,SecretNamespaceSchema as NE,buildNamespaceParts as RE,buildParameterPath as nE,parseParameterPath as iE,isManageablePath as mE,parseDotEnv as OE,escapeDotEnvValue as PE}from"./secrets.js";import{ConnectionWireSchema as sE,ConnectionsListResponseSchema as IE,CONNECTION_PHASES as pE,CONNECTION_TERMINAL_FAILURE_PHASES as DE,CONNECTION_FAILURE_REASONS as LE,EXTERNAL_ID_PATTERN as cE}from"./infra/connectionsWire.js";import{PUBLIC_PACKAGE_NAME as fE,INSTALL_SOURCES as UE,SETUP_COMMANDS as lE,upgradeCommand as uE,SETUP_MODES as dE,SETUP_STEP_IDS as gE,SETUP_STEPS as xE,AGENT_SETUP_PROMPTS as FE,AGENT_INSTALL_COMMAND as hE,SKILL_INSTALL_SEGMENTS as VE,SKILL_INSTALL_FILENAME as YE,SKILL_INSTALL_PATH as yE}from"./onboarding/index.js";import{deriveRegionsFromOrgConfig as HE,deriveTargets as vE,deriveAllTargets as bE,environmentOrTier as KE,findTarget as XE,generateTargetName as BE}from"./targets.js";import{buildAppConfigPath as kE}from"./repo/appPath.js";import{findInfrastructurePaths as jE,findBoundaryPath as wE,isInfrastructureFile as zE}from"./repo/findInfrastructurePaths.js";import{inferContainerFromCandidates as qE}from"./repo/inferContainerFromCandidates.js";import{RESERVED_APP_NAMES as $E,RESERVED_APP_NAME_MESSAGE as er,isReservedAppName as Er,RESERVED_APP_NAME_SUFFIX as rr,RESERVED_APP_NAME_SUFFIX_MESSAGE as _r,hasReservedAppNameSuffix as tr}from"./naming/reservedAppNames.js";import{deriveContentHashTag as Sr,CONTENT_HASH_TAG_PATTERN as Tr}from"./infra/deriveContentHashTag.js";import{DEPLOY_MODES as ar,DeployModeSchema as Nr,IMAGE_TAG_PATTERN as Rr,ImageTagSchema as nr,ServiceArtefactSchema as ir,ServiceArtefactsSchema as mr,ARTEFACT_OUTPUT_FIELDS as Or,artefactOutputKey as Pr}from"./infra/deployArtefacts.js";import{MIGRATION_SNAPSHOT_NAME_PREFIX as sr,EXPECTED_SCHEMA_VERSION_ENV as Ir,EXPECTED_SCHEMA_VERSION_TOOL_ENV as pr,EXPECTED_CH_SCHEMA_VERSION_ENV as Dr,SCHEMA_ADMIN_USER_ENV as Lr,SCHEMA_ADMIN_PASSWORD_ENV as cr,PRISMA_MIGRATION_DIR_RE as Mr,CLICKHOUSE_MIGRATION_SKIP_RE as fr}from"./migration/constants.js";import{PHYSICAL_NAME_FALLBACK_PROPERTIES as lr}from"./cfn/physicalNameProperties.js";import{PATTERN_TYPE_VALUES as dr,PATTERN_TYPES as gr,isPatternType as xr,PATTERN_REGISTRY as Fr,patternConstructId as hr,DEPLOYABLE_PATTERN_TYPES as Vr,OPENNEXT_PATTERN_TYPES as Yr,isOpenNextPatternType as yr,STATIC_SITE_ROUTING_VALUES as Gr}from"./patterns/patternTypes.js";import{DEFAULT_FORMS_FROM_LOCAL_PART as vr,defaultFormsFromAddress as br,defaultFormsCorsOrigin as Kr,isAddressAtDomain as Xr}from"./patterns/staticSiteForms.js";import{DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION as Wr,DEV_SUBSTRATE_PARAMS_FILENAME as kr,DevSubstrateSynthPropsSchema as Zr,DevSubstrateParamsSchema as jr}from"./devSubstrate/params.js";import{DEV_SUBSTRATE_ENTRYPOINT_SOURCE as zr}from"./devSubstrate/entrypoint.js";import{BLESSED_CDK_TOOLCHAIN as qr}from"./cdkToolchain.js";import{DEPLOYMENT_FAILURE_PHASES as $r,DeploymentFailurePhaseSchema as e_,DEPLOYMENT_FAULT_ATTRIBUTIONS as E_,DeploymentFaultAttributionSchema as r_,DEPLOYMENT_FAILURE_PROVIDER_SOURCES as __,DeploymentFailureProviderSourceSchema as t_,DEPLOYMENT_FAILURE_CODE_PATTERN as o_,DEPLOYMENT_FAILURE_SCHEMA_VERSION as S_,DEPLOYMENT_FAILURE_LIMITS as T_,DeploymentFailureAnalysisSchema as A_,DeploymentFailureProviderSchema as a_,DeploymentFailureResourceSchema as N_,DeploymentFailureSchema as R_,parseDeploymentFailure as n_,DEPLOYMENT_FAILURE_DOCS_BASE_URL as i_,deploymentFailureDocsUrl as m_,DEPLOYMENT_FAULT_COPY as O_,DEPLOYMENT_PROVIDER_LABELS as P_,deriveErrorMessageFromFailure as C_,toDeploymentFailureAnalysis as s_}from"./failure/deploymentFailure.js";import{extractErrorWindow as p_,ERROR_WINDOW_CONTEXT_LINES as D_}from"./failure/extractErrorWindow.js";export{Ye as ACCOUNT_ROLES,Le as ACCOUNT_STAGES,pe as ACCOUNT_STAGES_WITH_ROOT,ce as ACCOUNT_STAGE_LABELS,fe as ACCOUNT_TIERS,hE as AGENT_INSTALL_COMMAND,FE as AGENT_SETUP_PROMPTS,m as APPROVAL_TOKEN_OUTPUT_PREFIX,Or as ARTEFACT_OUTPUT_FIELDS,ke as AWS_REGIONS_METADATA,Ue as AccountTierSchema,n as BACKUP_VAULT_NAME,qr as BLESSED_CDK_TOOLCHAIN,H as CAPACITY_ANCHOR_MAX_LENGTH,G as CAPACITY_ANCHOR_PATTERN,v as CAPACITY_IDENTITY_CONTEXT_KEY,Y as CAPACITY_SLOT_MAX_LENGTH,V as CAPACITY_SLOT_PATTERN,fr as CLICKHOUSE_MIGRATION_SKIP_RE,LE as CONNECTION_FAILURE_REASONS,pE as CONNECTION_PHASES,DE as CONNECTION_TERMINAL_FAILURE_PHASES,Tr as CONTENT_HASH_TAG_PATTERN,X as CapacityIdentityConfigSchema,b as CapacityIdentityPinSchema,K as CapacityIdentityWireSchema,sE as ConnectionWireSchema,IE as ConnectionsListResponseSchema,Ae as DANGEROUS_ENV_VARS,y as DEFAULT_CAPACITY_SLOT,vr as DEFAULT_FORMS_FROM_LOCAL_PART,Ze as DEFAULT_REGION,Vr as DEPLOYABLE_PATTERN_TYPES,o_ as DEPLOYMENT_FAILURE_CODE_PATTERN,i_ as DEPLOYMENT_FAILURE_DOCS_BASE_URL,T_ as DEPLOYMENT_FAILURE_LIMITS,$r as DEPLOYMENT_FAILURE_PHASES,__ as DEPLOYMENT_FAILURE_PROVIDER_SOURCES,S_ as DEPLOYMENT_FAILURE_SCHEMA_VERSION,E_ as DEPLOYMENT_FAULT_ATTRIBUTIONS,O_ as DEPLOYMENT_FAULT_COPY,P_ as DEPLOYMENT_PROVIDER_LABELS,ar as DEPLOY_MODES,zr as DEV_SUBSTRATE_ENTRYPOINT_SOURCE,kr as DEV_SUBSTRATE_PARAMS_FILENAME,Wr as DEV_SUBSTRATE_PARAMS_SCHEMA_VERSION,r as DNS_APEX,N as DOMAIN_DEPLOY_DEFAULT_PHASE,Nr as DeployModeSchema,A_ as DeploymentFailureAnalysisSchema,e_ as DeploymentFailurePhaseSchema,a_ as DeploymentFailureProviderSchema,t_ as DeploymentFailureProviderSourceSchema,N_ as DeploymentFailureResourceSchema,R_ as DeploymentFailureSchema,r_ as DeploymentFaultAttributionSchema,jr as DevSubstrateParamsSchema,Zr as DevSubstrateSynthPropsSchema,D_ as ERROR_WINDOW_CONTEXT_LINES,Dr as EXPECTED_CH_SCHEMA_VERSION_ENV,Ir as EXPECTED_SCHEMA_VERSION_ENV,pr as EXPECTED_SCHEMA_VERSION_TOOL_ENV,cE as EXTERNAL_ID_PATTERN,ue as GOVERNANCE_ACCOUNT_TIERS,_E as GOVERNANCE_SCOPE_REQUIRED_CODE,A as HOSTS_OUTPUT_MAX_BYTES,Rr as IMAGE_TAG_PATTERN,UE as INSTALL_SOURCES,nr as ImageTagSchema,EE as MACHINE_ONLY_SCOPES,Ne as MASKED_VALUE_MARKER,we as MAX_SECONDARY_REGIONS,sr as MIGRATION_SNAPSHOT_NAME_PREFIX,Yr as OPENNEXT_PATTERN_TYPES,ze as OPT_IN_REGION_CODES,Fr as PATTERN_REGISTRY,gr as PATTERN_TYPES,dr as PATTERN_TYPE_VALUES,lr as PHYSICAL_NAME_FALLBACK_PROPERTIES,Mr as PRISMA_MIGRATION_DIR_RE,fE as PUBLIC_PACKAGE_NAME,ie as REDACTED_KEY_SENTINEL,z as REGION_SHORT_CODES,$E as RESERVED_APP_NAMES,er as RESERVED_APP_NAME_MESSAGE,rr as RESERVED_APP_NAME_SUFFIX,_r as RESERVED_APP_NAME_SUFFIX_MESSAGE,Ge as RESOURCE_CATEGORIES,cr as SCHEMA_ADMIN_PASSWORD_ENV,Lr as SCHEMA_ADMIN_USER_ENV,me as SCOPED_TOKEN_REGEX,eE as SCOPE_VALUES,SE as SECRET_NAME_ERROR,oE as SECRET_NAME_PATTERN,lE as SETUP_COMMANDS,dE as SETUP_MODES,xE as SETUP_STEPS,gE as SETUP_STEP_IDS,YE as SKILL_INSTALL_FILENAME,yE as SKILL_INSTALL_PATH,VE as SKILL_INSTALL_SEGMENTS,AE as SSM_COMPONENT_ERROR,TE as SSM_COMPONENT_PATTERN,aE as SSM_STANDARD_MAX_VALUE_BYTES,Gr as STATIC_SITE_ROUTING_VALUES,De as STRUCTURAL_ENVIRONMENTS,NE as SecretNamespaceSchema,ir as ServiceArtefactSchema,mr as ServiceArtefactsSchema,O as TOKEN_STDERR_PREFIX,rE as USER_GRANTABLE_SCOPES,We as abbreviateRegion,f as accountConstructKey,Fe as accountTier,u as albDnsExportName,d as albHostedZoneIdExportName,Pr as artefactOutputKey,x as bucketWebsiteEndpointExportName,F as bucketWebsiteHostedZoneIdExportName,kE as buildAppConfigPath,RE as buildNamespaceParts,nE as buildParameterPath,c as capitalise,He as categoriseResource,g as cdnDomainExportName,j as defaultConnectedAccountName,Kr as defaultFormsCorsOrigin,br as defaultFormsFromAddress,m_ as deploymentFailureDocsUrl,bE as deriveAllTargets,Sr as deriveContentHashTag,C_ as deriveErrorMessageFromFailure,HE as deriveRegionsFromOrgConfig,vE as deriveTargets,KE as environmentOrTier,ge as environmentToTier,PE as escapeDotEnvValue,p_ as extractErrorWindow,ae as filterDangerousEnvVars,k as findAccountNameCollision,wE as findBoundaryPath,jE as findInfrastructurePaths,XE as findTarget,Q as findTrailingRegionShortCode,te as formatErrorString,BE as generateTargetName,_ as getDomainExportNames,t as getDomainStackName,o as getDomainUsEast1CertificatesStackName,Ve as getEnvironmentLabel,re as getErrorCode,ee as getErrorMessage,_e as getErrorStack,ve as getExpectedDuration,be as getFriendlyResourceType,je as getRegionInfo,M as getSafeZoneName,U as hasAsciiStableConstructKey,Ee as hasErrorCode,tr as hasReservedAppNameSuffix,S as hostsExportPartName,C as imageTagParameterName,qE as inferContainerFromCandidates,Me as isAccountStage,le as isAccountTier,Xr as isAddressAtDomain,de as isGovernanceTier,zE as isInfrastructureFile,mE as isManageablePath,a as isManagedDomainBinding,yr as isOpenNextPatternType,xr as isPatternType,Er as isReservedAppName,se as mapSettledWithConcurrency,Re as maskSensitiveOutput,$ as normaliseError,Qe as optInRegionWarning,n_ as parseDeploymentFailure,OE as parseDotEnv,Xe as parseGitRemoteUrl,iE as parseParameterPath,ne as parseShellArgs,hr as patternConstructId,B as projectCapacityIdentityToTarget,q as regionSuffixRejectionMessage,qe as regions,he as resolveSynthEnvironment,T as serialiseHostsChunks,Se as singleton,Pe as sleep,xe as stageFromWireEnvironment,w as suffixedAccountName,Je as suggestRegionForTimezone,s_ as toDeploymentFailureAnalysis,p as toKebab,I as toPascalCase,L as toScreamingSnake,D as toValidDatabaseName,uE as upgradeCommand};
@@ -14,6 +14,8 @@ export declare const ConnectionWireSchema: z.ZodObject<{
14
14
  roleArn: z.ZodString;
15
15
  environment: z.ZodOptional<z.ZodString>;
16
16
  connectedAt: z.ZodString;
17
+ externalId: z.ZodOptional<z.ZodString>;
18
+ reason: z.ZodOptional<z.ZodString>;
17
19
  }, z.core.$strip>;
18
20
  export type ConnectionWire = z.infer<typeof ConnectionWireSchema>;
19
21
  export declare const ConnectionsListResponseSchema: z.ZodObject<{
@@ -25,6 +27,8 @@ export declare const ConnectionsListResponseSchema: z.ZodObject<{
25
27
  roleArn: z.ZodString;
26
28
  environment: z.ZodOptional<z.ZodString>;
27
29
  connectedAt: z.ZodString;
30
+ externalId: z.ZodOptional<z.ZodString>;
31
+ reason: z.ZodOptional<z.ZodString>;
28
32
  }, z.core.$strip>>;
29
33
  }, z.core.$strip>;
30
34
  export type ConnectionsListResponse = z.infer<typeof ConnectionsListResponseSchema>;
@@ -39,6 +43,14 @@ export type ConnectionsListResponse = z.infer<typeof ConnectionsListResponseSche
39
43
  */
40
44
  export declare const CONNECTION_PHASES: readonly ["awaiting_stack", "connected", "failed", "disconnected"];
41
45
  export type ConnectionPhase = (typeof CONNECTION_PHASES)[number];
46
+ /**
47
+ * The terminal-failure subset: phases where polling must stop and the
48
+ * reason's cure be reported. `satisfies` pins every member to a real
49
+ * phase; consumers derive their accept-sets from this tuple rather than
50
+ * hand-listing the pair.
51
+ */
52
+ export declare const CONNECTION_TERMINAL_FAILURE_PHASES: readonly ["failed", "disconnected"];
53
+ export type ConnectionTerminalFailurePhase = (typeof CONNECTION_TERMINAL_FAILURE_PHASES)[number];
42
54
  export declare const CONNECTION_FAILURE_REASONS: readonly ["account_mismatch", "root_exists", "root_promotion", "name_conflict", "plan_limit", "stack_rolled_back", "stack_deleted"];
43
55
  export type ConnectionFailureReason = (typeof CONNECTION_FAILURE_REASONS)[number];
44
56
  /**
@@ -1 +1 @@
1
- import{z as t}from"zod";const n=t.object({awsAccountId:t.string(),accountName:t.string().nullable(),status:t.string(),role:t.string(),roleArn:t.string(),environment:t.string().optional(),connectedAt:t.string()}),e=t.object({accounts:t.array(n)}),c=["awaiting_stack","connected","failed","disconnected"],s=["account_mismatch","root_exists","root_promotion","name_conflict","plan_limit","stack_rolled_back","stack_deleted"],r=/^[a-f0-9]{32,64}$/;export{s as CONNECTION_FAILURE_REASONS,c as CONNECTION_PHASES,n as ConnectionWireSchema,e as ConnectionsListResponseSchema,r as EXTERNAL_ID_PATTERN};
1
+ import{z as t}from"zod";const n=t.object({awsAccountId:t.string(),accountName:t.string().nullable(),status:t.string(),role:t.string(),roleArn:t.string(),environment:t.string().optional(),connectedAt:t.string(),externalId:t.string().optional(),reason:t.string().optional()}),e=t.object({accounts:t.array(n)}),c=["awaiting_stack","connected","failed","disconnected"],s=["failed","disconnected"],i=["account_mismatch","root_exists","root_promotion","name_conflict","plan_limit","stack_rolled_back","stack_deleted"],r=/^[a-f0-9]{32,64}$/;export{i as CONNECTION_FAILURE_REASONS,c as CONNECTION_PHASES,s as CONNECTION_TERMINAL_FAILURE_PHASES,n as ConnectionWireSchema,e as ConnectionsListResponseSchema,r as EXTERNAL_ID_PATTERN};
@@ -29,6 +29,7 @@ export declare const SETUP_COMMANDS: {
29
29
  readonly createAccount: "fjall create account";
30
30
  readonly createOrganisation: "fjall create organisation";
31
31
  readonly connect: "fjall connect";
32
+ readonly connectStatus: "fjall connect status";
32
33
  readonly accountDeploy: "fjall account deploy";
33
34
  readonly organisationDeploy: "fjall org deploy";
34
35
  readonly createApplication: "fjall create app";
@@ -1 +1 @@
1
- var c=Object.defineProperty;var o=(a,n)=>c(a,"name",{value:n,configurable:!0});const m="fjall",g=["npm","homebrew"],t={install:"npm install -g fjall",upgrade:"npm install -g fjall@latest",upgradeHomebrew:"brew upgrade fjall",installSkill:"fjall agent install-skill",installHooks:"fjall agent install-hooks",uninstallHooks:"fjall agent uninstall-hooks",sessionContext:"fjall agent session-context",login:"fjall login",loginDevice:"fjall login --device",loginDeviceAgent:"fjall login --device --agent",createAccount:"fjall create account",createOrganisation:"fjall create organisation",connect:"fjall connect",accountDeploy:"fjall account deploy",organisationDeploy:"fjall org deploy",createApplication:"fjall create app",createApplicationAgent:"fjall apps create",deployApplication:"fjall deploy <app>",status:"fjall status"};function f(a){return a==="homebrew"?t.upgradeHomebrew:t.upgrade}o(f,"upgradeCommand");const S=["account","organisation"],j=["scaffold","connect","deploy"],r={account:[{id:"scaffold",command:"createAccount",label:"Create the account project",summary:"Scaffolds fjall/account/infrastructure.ts, the declaration of everything Fjall manages in one AWS account."},{id:"connect",command:"connect",label:"Connect your AWS account",summary:"Opens the AWS quick-create link that installs Fjall's OIDC trust in the account, then waits for the stack to report back."},{id:"deploy",command:"accountDeploy",label:"Deploy account infrastructure",summary:"Provisions the account tier \u2014 deploy roles, logging and guardrails \u2014 so applications can be deployed into it."}],organisation:[{id:"scaffold",command:"createOrganisation",label:"Create the organisation project",summary:"Scaffolds fjall/organisation/infrastructure.ts with the member accounts, identity and guardrail declarations."},{id:"connect",command:"connect",label:"Connect the management account",summary:"Opens the AWS quick-create link that installs Fjall's OIDC trust in the AWS Organizations management account, then waits for the stack to report back."},{id:"deploy",command:"organisationDeploy",label:"Deploy the organisation",summary:"Creates the member accounts and provisions the organisation, platform and account tiers."}]},i={account:"I want to deploy a single AWS account",organisation:"I want to deploy an organisation with governance and shared infrastructure"};function e(a){const n=r[a].map(l=>`\`${t[l.command]}\``).join(", ");return`Set up Fjall for me \u2014 ${i[a]}. Follow the fjall skill and run ${n} in that order, passing --agent on every command.`}o(e,"buildAgentSetupPrompt");const A={account:e("account"),organisation:e("organisation")},h=`${t.install} && ${t.installSkill}`,s=[".claude","skills","fjall"],p="SKILL.md",u=`~/${s.join("/")}`,y=`${u}/${p}`;import{compareSemver as T,isNewerVersion as E,parseSemver as I}from"./versionCurrency.js";export{h as AGENT_INSTALL_COMMAND,A as AGENT_SETUP_PROMPTS,g as INSTALL_SOURCES,m as PUBLIC_PACKAGE_NAME,t as SETUP_COMMANDS,S as SETUP_MODES,r as SETUP_STEPS,j as SETUP_STEP_IDS,u as SKILL_INSTALL_DIR,p as SKILL_INSTALL_FILENAME,y as SKILL_INSTALL_PATH,s as SKILL_INSTALL_SEGMENTS,T as compareSemver,E as isNewerVersion,I as parseSemver,f as upgradeCommand};
1
+ var c=Object.defineProperty;var o=(a,n)=>c(a,"name",{value:n,configurable:!0});const m="fjall",g=["npm","homebrew"],t={install:"npm install -g fjall",upgrade:"npm install -g fjall@latest",upgradeHomebrew:"brew upgrade fjall",installSkill:"fjall agent install-skill",installHooks:"fjall agent install-hooks",uninstallHooks:"fjall agent uninstall-hooks",sessionContext:"fjall agent session-context",login:"fjall login",loginDevice:"fjall login --device",loginDeviceAgent:"fjall login --device --agent",createAccount:"fjall create account",createOrganisation:"fjall create organisation",connect:"fjall connect",connectStatus:"fjall connect status",accountDeploy:"fjall account deploy",organisationDeploy:"fjall org deploy",createApplication:"fjall create app",createApplicationAgent:"fjall apps create",deployApplication:"fjall deploy <app>",status:"fjall status"};function f(a){return a==="homebrew"?t.upgradeHomebrew:t.upgrade}o(f,"upgradeCommand");const S=["account","organisation"],j=["scaffold","connect","deploy"],r={account:[{id:"scaffold",command:"createAccount",label:"Create the account project",summary:"Scaffolds fjall/account/infrastructure.ts, the declaration of everything Fjall manages in one AWS account."},{id:"connect",command:"connect",label:"Connect your AWS account",summary:"Opens the AWS quick-create link that installs Fjall's OIDC trust in the account, then waits for the stack to report back."},{id:"deploy",command:"accountDeploy",label:"Deploy account infrastructure",summary:"Provisions the account tier \u2014 deploy roles, logging and guardrails \u2014 so applications can be deployed into it."}],organisation:[{id:"scaffold",command:"createOrganisation",label:"Create the organisation project",summary:"Scaffolds fjall/organisation/infrastructure.ts with the member accounts, identity and guardrail declarations."},{id:"connect",command:"connect",label:"Connect the management account",summary:"Opens the AWS quick-create link that installs Fjall's OIDC trust in the AWS Organizations management account, then waits for the stack to report back."},{id:"deploy",command:"organisationDeploy",label:"Deploy the organisation",summary:"Creates the member accounts and provisions the organisation, platform and account tiers."}]},i={account:"I want to deploy a single AWS account",organisation:"I want to deploy an organisation with governance and shared infrastructure"};function e(a){const n=r[a].map(l=>`\`${t[l.command]}\``).join(", ");return`Set up Fjall for me \u2014 ${i[a]}. Follow the fjall skill and run ${n} in that order, passing --agent on every command.`}o(e,"buildAgentSetupPrompt");const A={account:e("account"),organisation:e("organisation")},h=`${t.install} && ${t.installSkill}`,s=[".claude","skills","fjall"],p="SKILL.md",u=`~/${s.join("/")}`,y=`${u}/${p}`;import{compareSemver as T,isNewerVersion as E,parseSemver as I}from"./versionCurrency.js";export{h as AGENT_INSTALL_COMMAND,A as AGENT_SETUP_PROMPTS,g as INSTALL_SOURCES,m as PUBLIC_PACKAGE_NAME,t as SETUP_COMMANDS,S as SETUP_MODES,r as SETUP_STEPS,j as SETUP_STEP_IDS,u as SKILL_INSTALL_DIR,p as SKILL_INSTALL_FILENAME,y as SKILL_INSTALL_PATH,s as SKILL_INSTALL_SEGMENTS,T as compareSemver,E as isNewerVersion,I as parseSemver,f as upgradeCommand};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fjall/util",
3
- "version": "19.0.0",
3
+ "version": "20.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/fjall-tech/fjall.git",