fjall 2.20.0 → 2.20.1
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/bin/.bundled
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
bundled at 2026-06-
|
|
2
|
-
bundle size:
|
|
3
|
-
cli version: 2.20.
|
|
1
|
+
bundled at 2026-06-23T21:59:40.979Z
|
|
2
|
+
bundle size: 3261506 bytes
|
|
3
|
+
cli version: 2.20.1
|
package/bin/.metafile.json
CHANGED
|
@@ -9855,7 +9855,7 @@
|
|
|
9855
9855
|
"format": "esm"
|
|
9856
9856
|
},
|
|
9857
9857
|
"../../deploy-core/dist/src/orchestration/application/dockerBuildHelper.js": {
|
|
9858
|
-
"bytes":
|
|
9858
|
+
"bytes": 5203,
|
|
9859
9859
|
"imports": [
|
|
9860
9860
|
{
|
|
9861
9861
|
"path": "node:path",
|
|
@@ -9963,7 +9963,7 @@
|
|
|
9963
9963
|
"format": "esm"
|
|
9964
9964
|
},
|
|
9965
9965
|
"../../deploy-core/dist/src/orchestration/application/codeOnlyDeploy.js": {
|
|
9966
|
-
"bytes":
|
|
9966
|
+
"bytes": 8211,
|
|
9967
9967
|
"imports": [
|
|
9968
9968
|
{
|
|
9969
9969
|
"path": "path",
|
|
@@ -10014,7 +10014,7 @@
|
|
|
10014
10014
|
"format": "esm"
|
|
10015
10015
|
},
|
|
10016
10016
|
"../../deploy-core/dist/src/orchestration/application/applicationDeploy.js": {
|
|
10017
|
-
"bytes":
|
|
10017
|
+
"bytes": 7253,
|
|
10018
10018
|
"imports": [
|
|
10019
10019
|
{
|
|
10020
10020
|
"path": "path",
|
|
@@ -19501,7 +19501,7 @@
|
|
|
19501
19501
|
"format": "esm"
|
|
19502
19502
|
},
|
|
19503
19503
|
"../../cli/dist/src/services/container/CliDockerProvider.js": {
|
|
19504
|
-
"bytes":
|
|
19504
|
+
"bytes": 5577,
|
|
19505
19505
|
"imports": [
|
|
19506
19506
|
{
|
|
19507
19507
|
"path": "node:path",
|
|
@@ -19562,7 +19562,7 @@
|
|
|
19562
19562
|
"format": "esm"
|
|
19563
19563
|
},
|
|
19564
19564
|
"../../util/dist/docker/dockerCliSchemas.js": {
|
|
19565
|
-
"bytes":
|
|
19565
|
+
"bytes": 1987,
|
|
19566
19566
|
"imports": [
|
|
19567
19567
|
{
|
|
19568
19568
|
"path": "../../node_modules/zod/index.js",
|
|
@@ -19573,7 +19573,7 @@
|
|
|
19573
19573
|
"format": "esm"
|
|
19574
19574
|
},
|
|
19575
19575
|
"../../util/dist/docker/buildxArgvBuilder.js": {
|
|
19576
|
-
"bytes":
|
|
19576
|
+
"bytes": 1041,
|
|
19577
19577
|
"imports": [
|
|
19578
19578
|
{
|
|
19579
19579
|
"path": "../../util/dist/docker/dockerCliConstants.js",
|
|
@@ -19610,7 +19610,7 @@
|
|
|
19610
19610
|
"format": "esm"
|
|
19611
19611
|
},
|
|
19612
19612
|
"../../util/dist/docker/DockerCli.build.js": {
|
|
19613
|
-
"bytes":
|
|
19613
|
+
"bytes": 4249,
|
|
19614
19614
|
"imports": [
|
|
19615
19615
|
{
|
|
19616
19616
|
"path": "node:fs/promises",
|
|
@@ -38343,7 +38343,7 @@
|
|
|
38343
38343
|
"imports": [],
|
|
38344
38344
|
"exports": [],
|
|
38345
38345
|
"inputs": {},
|
|
38346
|
-
"bytes":
|
|
38346
|
+
"bytes": 9550550
|
|
38347
38347
|
},
|
|
38348
38348
|
"bin/fjall.bundle.js": {
|
|
38349
38349
|
"imports": [
|
|
@@ -43624,7 +43624,7 @@
|
|
|
43624
43624
|
"bytesInOutput": 440
|
|
43625
43625
|
},
|
|
43626
43626
|
"../../deploy-core/dist/src/orchestration/application/dockerBuildHelper.js": {
|
|
43627
|
-
"bytesInOutput":
|
|
43627
|
+
"bytesInOutput": 4901
|
|
43628
43628
|
},
|
|
43629
43629
|
"../../deploy-core/dist/src/orchestration/application/welcomeImageHelper.js": {
|
|
43630
43630
|
"bytesInOutput": 1397
|
|
@@ -43633,10 +43633,10 @@
|
|
|
43633
43633
|
"bytesInOutput": 2492
|
|
43634
43634
|
},
|
|
43635
43635
|
"../../deploy-core/dist/src/orchestration/application/codeOnlyDeploy.js": {
|
|
43636
|
-
"bytesInOutput":
|
|
43636
|
+
"bytesInOutput": 7606
|
|
43637
43637
|
},
|
|
43638
43638
|
"../../deploy-core/dist/src/orchestration/application/applicationDeploy.js": {
|
|
43639
|
-
"bytesInOutput":
|
|
43639
|
+
"bytesInOutput": 5938
|
|
43640
43640
|
},
|
|
43641
43641
|
"../../deploy-core/dist/src/orchestration/organisationDeploy/orgContext.js": {
|
|
43642
43642
|
"bytesInOutput": 1097
|
|
@@ -43660,7 +43660,7 @@
|
|
|
43660
43660
|
"bytesInOutput": 1029
|
|
43661
43661
|
},
|
|
43662
43662
|
"../../deploy-core/dist/src/orchestration/organisationDeploy/cascadeExecution.js": {
|
|
43663
|
-
"bytesInOutput":
|
|
43663
|
+
"bytesInOutput": 3108
|
|
43664
43664
|
},
|
|
43665
43665
|
"../../util/dist/docker/result.js": {
|
|
43666
43666
|
"bytesInOutput": 112
|
|
@@ -43681,7 +43681,7 @@
|
|
|
43681
43681
|
"bytesInOutput": 1271
|
|
43682
43682
|
},
|
|
43683
43683
|
"../../deploy-core/dist/src/orchestration/organisationDeploy/orgCascadeDeploy.js": {
|
|
43684
|
-
"bytesInOutput":
|
|
43684
|
+
"bytesInOutput": 3477
|
|
43685
43685
|
},
|
|
43686
43686
|
"../../deploy-core/dist/src/orchestration/organisation/organisationDeploy.js": {
|
|
43687
43687
|
"bytesInOutput": 332
|
|
@@ -43888,7 +43888,7 @@
|
|
|
43888
43888
|
"bytesInOutput": 4712
|
|
43889
43889
|
},
|
|
43890
43890
|
"../../node_modules/recast/lib/printer.js": {
|
|
43891
|
-
"bytesInOutput":
|
|
43891
|
+
"bytesInOutput": 41507
|
|
43892
43892
|
},
|
|
43893
43893
|
"../../node_modules/recast/main.js": {
|
|
43894
43894
|
"bytesInOutput": 902
|
|
@@ -44410,7 +44410,7 @@
|
|
|
44410
44410
|
"bytesInOutput": 981
|
|
44411
44411
|
},
|
|
44412
44412
|
"../../cli/node_modules/axios/lib/adapters/http.js": {
|
|
44413
|
-
"bytesInOutput":
|
|
44413
|
+
"bytesInOutput": 12485
|
|
44414
44414
|
},
|
|
44415
44415
|
"../../cli/node_modules/axios/lib/helpers/isURLSameOrigin.js": {
|
|
44416
44416
|
"bytesInOutput": 243
|
|
@@ -44434,7 +44434,7 @@
|
|
|
44434
44434
|
"bytesInOutput": 713
|
|
44435
44435
|
},
|
|
44436
44436
|
"../../cli/node_modules/axios/lib/adapters/fetch.js": {
|
|
44437
|
-
"bytesInOutput":
|
|
44437
|
+
"bytesInOutput": 4461
|
|
44438
44438
|
},
|
|
44439
44439
|
"../../cli/node_modules/axios/lib/adapters/adapters.js": {
|
|
44440
44440
|
"bytesInOutput": 937
|
|
@@ -44743,7 +44743,7 @@
|
|
|
44743
44743
|
"bytesInOutput": 284
|
|
44744
44744
|
},
|
|
44745
44745
|
"../../cli/dist/src/services/container/EcrBuildOrchestrator.js": {
|
|
44746
|
-
"bytesInOutput":
|
|
44746
|
+
"bytesInOutput": 5950
|
|
44747
44747
|
},
|
|
44748
44748
|
"../../cli/dist/src/services/container/EcrService.tagging.js": {
|
|
44749
44749
|
"bytesInOutput": 2053
|
|
@@ -44755,16 +44755,16 @@
|
|
|
44755
44755
|
"bytesInOutput": 1434
|
|
44756
44756
|
},
|
|
44757
44757
|
"../../cli/dist/src/services/container/CliDockerProvider.js": {
|
|
44758
|
-
"bytesInOutput":
|
|
44758
|
+
"bytesInOutput": 5164
|
|
44759
44759
|
},
|
|
44760
44760
|
"../../util/dist/docker/dockerCliConstants.js": {
|
|
44761
44761
|
"bytesInOutput": 120
|
|
44762
44762
|
},
|
|
44763
44763
|
"../../util/dist/docker/dockerCliSchemas.js": {
|
|
44764
|
-
"bytesInOutput":
|
|
44764
|
+
"bytesInOutput": 1843
|
|
44765
44765
|
},
|
|
44766
44766
|
"../../util/dist/docker/buildxArgvBuilder.js": {
|
|
44767
|
-
"bytesInOutput":
|
|
44767
|
+
"bytesInOutput": 973
|
|
44768
44768
|
},
|
|
44769
44769
|
"../../util/dist/docker/rawjsonParser.js": {
|
|
44770
44770
|
"bytesInOutput": 527
|
|
@@ -44776,7 +44776,7 @@
|
|
|
44776
44776
|
"bytesInOutput": 393
|
|
44777
44777
|
},
|
|
44778
44778
|
"../../util/dist/docker/DockerCli.build.js": {
|
|
44779
|
-
"bytesInOutput":
|
|
44779
|
+
"bytesInOutput": 3638
|
|
44780
44780
|
},
|
|
44781
44781
|
"../../util/dist/docker/DockerCli.daemon.js": {
|
|
44782
44782
|
"bytesInOutput": 3212
|
|
@@ -44815,7 +44815,7 @@
|
|
|
44815
44815
|
"bytesInOutput": 1922
|
|
44816
44816
|
},
|
|
44817
44817
|
"../../cli/dist/src/services/organisation/OrganisationDeployService.js": {
|
|
44818
|
-
"bytesInOutput":
|
|
44818
|
+
"bytesInOutput": 4952
|
|
44819
44819
|
},
|
|
44820
44820
|
"../../cli/dist/src/types/FjallState.js": {
|
|
44821
44821
|
"bytesInOutput": 35
|
|
@@ -45361,7 +45361,7 @@
|
|
|
45361
45361
|
"bytesInOutput": 799
|
|
45362
45362
|
},
|
|
45363
45363
|
"../../cli/dist/src/ui/components/screens/CreatingScreen.js": {
|
|
45364
|
-
"bytesInOutput":
|
|
45364
|
+
"bytesInOutput": 2819
|
|
45365
45365
|
},
|
|
45366
45366
|
"../../cli/dist/src/ui/screens/create/CreateAppReviewStep.js": {
|
|
45367
45367
|
"bytesInOutput": 2773
|
|
@@ -45511,7 +45511,7 @@
|
|
|
45511
45511
|
"bytesInOutput": 460
|
|
45512
45512
|
},
|
|
45513
45513
|
"../../cli/dist/src/ui/hooks/useScrollInput.js": {
|
|
45514
|
-
"bytesInOutput":
|
|
45514
|
+
"bytesInOutput": 1775
|
|
45515
45515
|
},
|
|
45516
45516
|
"../../cli/dist/src/ui/components/layout/renderLine.js": {
|
|
45517
45517
|
"bytesInOutput": 268
|
|
@@ -45538,7 +45538,7 @@
|
|
|
45538
45538
|
"bytesInOutput": 1139
|
|
45539
45539
|
},
|
|
45540
45540
|
"../../cli/dist/src/ui/components/operations/useStackOperationState.js": {
|
|
45541
|
-
"bytesInOutput":
|
|
45541
|
+
"bytesInOutput": 3786
|
|
45542
45542
|
},
|
|
45543
45543
|
"../../cli/dist/src/ui/components/operations/StackOperationBox.js": {
|
|
45544
45544
|
"bytesInOutput": 3092
|
|
@@ -45586,7 +45586,7 @@
|
|
|
45586
45586
|
"bytesInOutput": 1950
|
|
45587
45587
|
},
|
|
45588
45588
|
"../../cli/dist/src/ui/components/operations/OrgSetupBox.js": {
|
|
45589
|
-
"bytesInOutput":
|
|
45589
|
+
"bytesInOutput": 4988
|
|
45590
45590
|
},
|
|
45591
45591
|
"../../cli/dist/src/util/terminal/synchronizedOutput.js": {
|
|
45592
45592
|
"bytesInOutput": 466
|
|
@@ -45604,7 +45604,7 @@
|
|
|
45604
45604
|
"bytesInOutput": 175
|
|
45605
45605
|
},
|
|
45606
45606
|
"../../cli/dist/src/ui/screens/deploy/useStackOperationCallbacks.js": {
|
|
45607
|
-
"bytesInOutput":
|
|
45607
|
+
"bytesInOutput": 4625
|
|
45608
45608
|
},
|
|
45609
45609
|
"../../cli/dist/src/ui/screens/deploy/useStackOperationStepState.js": {
|
|
45610
45610
|
"bytesInOutput": 2015
|
|
@@ -45622,13 +45622,13 @@
|
|
|
45622
45622
|
"bytesInOutput": 4526
|
|
45623
45623
|
},
|
|
45624
45624
|
"../../cli/dist/src/ui/components/operations/EcsOperationBox.js": {
|
|
45625
|
-
"bytesInOutput":
|
|
45625
|
+
"bytesInOutput": 4173
|
|
45626
45626
|
},
|
|
45627
45627
|
"../../cli/dist/src/ui/components/operations/OpenNextOperationBox.js": {
|
|
45628
|
-
"bytesInOutput":
|
|
45628
|
+
"bytesInOutput": 3495
|
|
45629
45629
|
},
|
|
45630
45630
|
"../../cli/dist/src/ui/components/operations/PreDeploymentBox.js": {
|
|
45631
|
-
"bytesInOutput":
|
|
45631
|
+
"bytesInOutput": 4401
|
|
45632
45632
|
},
|
|
45633
45633
|
"../../cli/dist/src/aws/utils/computeDiscovery.js": {
|
|
45634
45634
|
"bytesInOutput": 233
|
|
@@ -45694,7 +45694,7 @@
|
|
|
45694
45694
|
"bytesInOutput": 277
|
|
45695
45695
|
},
|
|
45696
45696
|
"../../cli/dist/src/ui/screens/deploy/AppDestroyProgressScreen.js": {
|
|
45697
|
-
"bytesInOutput":
|
|
45697
|
+
"bytesInOutput": 3433
|
|
45698
45698
|
},
|
|
45699
45699
|
"../../cli/dist/src/ui/screens/DestroyScreen.js": {
|
|
45700
45700
|
"bytesInOutput": 6459
|
|
@@ -45733,7 +45733,7 @@
|
|
|
45733
45733
|
"bytesInOutput": 1891
|
|
45734
45734
|
},
|
|
45735
45735
|
"../../cli/dist/src/ui/screens/account/auth/LoginScreen.js": {
|
|
45736
|
-
"bytesInOutput":
|
|
45736
|
+
"bytesInOutput": 4514
|
|
45737
45737
|
},
|
|
45738
45738
|
"../../cli/dist/src/ui/screens/import/DiscoveringScreen.js": {
|
|
45739
45739
|
"bytesInOutput": 1109
|
|
@@ -45763,7 +45763,7 @@
|
|
|
45763
45763
|
"bytesInOutput": 2367
|
|
45764
45764
|
},
|
|
45765
45765
|
"../../cli/dist/src/ui/screens/account/restore/RestoreScreen.js": {
|
|
45766
|
-
"bytesInOutput":
|
|
45766
|
+
"bytesInOutput": 2680
|
|
45767
45767
|
},
|
|
45768
45768
|
"../../cli/dist/src/ui/screens/secrets/secretsScreenUtils.js": {
|
|
45769
45769
|
"bytesInOutput": 3700
|
|
@@ -45817,7 +45817,7 @@
|
|
|
45817
45817
|
"bytesInOutput": 1880
|
|
45818
45818
|
},
|
|
45819
45819
|
"../../cli/dist/src/ui/screens/target/TargetScreen.js": {
|
|
45820
|
-
"bytesInOutput":
|
|
45820
|
+
"bytesInOutput": 3558
|
|
45821
45821
|
},
|
|
45822
45822
|
"../../cli/dist/src/ui/components/banners/OidcSetupBanner.js": {
|
|
45823
45823
|
"bytesInOutput": 359
|
|
@@ -45835,7 +45835,7 @@
|
|
|
45835
45835
|
"bytesInOutput": 187
|
|
45836
45836
|
},
|
|
45837
45837
|
"../../cli/dist/src/ui/screens/connect/ConnectScreen.js": {
|
|
45838
|
-
"bytesInOutput":
|
|
45838
|
+
"bytesInOutput": 5704
|
|
45839
45839
|
},
|
|
45840
45840
|
"../../cli/dist/src/ui/screens/agent/installSkillConstants.js": {
|
|
45841
45841
|
"bytesInOutput": 326
|
|
@@ -45877,7 +45877,7 @@
|
|
|
45877
45877
|
"bytesInOutput": 379
|
|
45878
45878
|
},
|
|
45879
45879
|
"../../node_modules/graceful-fs/graceful-fs.js": {
|
|
45880
|
-
"bytesInOutput":
|
|
45880
|
+
"bytesInOutput": 5176
|
|
45881
45881
|
},
|
|
45882
45882
|
"../../node_modules/retry/lib/retry_operation.js": {
|
|
45883
45883
|
"bytesInOutput": 2277
|
|
@@ -46390,7 +46390,7 @@
|
|
|
46390
46390
|
"bytesInOutput": 404
|
|
46391
46391
|
}
|
|
46392
46392
|
},
|
|
46393
|
-
"bytes":
|
|
46393
|
+
"bytes": 3261506
|
|
46394
46394
|
}
|
|
46395
46395
|
}
|
|
46396
46396
|
}
|
|
@@ -431,8 +431,8 @@ ${o}`)}throw r}}function Xi(e,t){let n=F.createSourceFile("infrastructure.ts",e,
|
|
|
431
431
|
`;return i.push(`Custom code from line ${t.originalLine} could not be positioned. Added at end of file.`),e+`
|
|
432
432
|
`+r+t.sourceText}function Qf(e,t,n){if(!t||t.length===0)return{content:e,success:!0};try{let i=vx(e),r=xt(i),o=[],a=bR(t),c=e;for(let u of a){let l=SR(i,r,u,n,o);c=yR(c,u,l,o)}return{content:c,success:!0,warnings:o.length>0?o:void 0}}catch(i){return _x(i,e)}}function _R(e,t,n,i){if(!t.afterManagedResource)return null;let r=t.afterManagedResource,o=(r.name&&n?.get(r.name))??r.name,a=e.find(u=>u.type===r.type&&u.resourceName===o);if(a)return a.endPos;let c=e.filter(u=>u.type===r.type&&u.isManaged);return c.length===1?c[0].endPos:(i&&i.push(`Resource ${Yf(t.afterManagedResource.type,t.afterManagedResource.name)} not found. Custom code may be orphaned.`),null)}function SR(e,t,n,i,r){switch(n.position){case"before-imports":return 0;case"after-imports":return gx(t,"import")?.endPos??0;case"after-app-init":return Xf(t,"app-init")?.endPos??null;case"after-tags":return Xf(t,"tags")?.endPos??null;case"after-resource":return _R(t,n,i,r);case"end-of-file":return e.getEnd();default:return null}}function xR(e,t,n){let i=yx(e,t),r=n.sourceText;return r=bx(i,r)+r,r.endsWith(`
|
|
433
433
|
`)||(r+=`
|
|
434
|
-
`),r}import*as Ht from"typescript";var Yi=s.enum(["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]),ER=s.object({name:s.string(),type:Yi,ttl:s.number().optional(),value:s.string(),priority:s.number().optional(),weight:s.number().optional(),port:s.number().optional()}).strict(),$R=s.object({subdomain:s.string(),targetAccount:s.string(),auto:s.boolean()}).strict(),IR=s.object({domainName:s.string(),subjectAlternativeNames:s.array(s.string())}).strict(),
|
|
435
|
-
`,
|
|
434
|
+
`),r}import*as Ht from"typescript";var Yi=s.enum(["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]),ER=s.object({name:s.string(),type:Yi,ttl:s.number().optional(),value:s.string(),priority:s.number().optional(),weight:s.number().optional(),port:s.number().optional()}).strict(),$R=s.object({subdomain:s.string(),targetAccount:s.string(),auto:s.boolean()}).strict(),IR=s.object({domainName:s.string(),subjectAlternativeNames:s.array(s.string())}).strict(),m3=s.object({origin:s.string(),ttl:s.number(),records:s.array(ER),delegations:s.array($R),certificates:s.array(IR)}).strict(),xx=Object.freeze({ORIGIN:"$ORIGIN",TTL:"$TTL",FJALL_DELEGATE:"$FJALL-DELEGATE",FJALL_CERT:"$FJALL-CERT"});var Ex=s.discriminatedUnion("kind",[s.object({kind:s.literal("ecs"),appName:s.string()}).strict(),s.object({kind:s.literal("cdn"),appName:s.string()}).strict(),s.object({kind:s.literal("bucket"),bucketName:s.string()}).strict(),s.object({kind:s.literal("custom"),dnsName:s.string(),hostedZoneId:s.string()}).strict()]),AR=Ex.options.map(e=>e.shape.kind.value),eh=s.enum(["A","AAAA"]),th=s.enum(["route53","external-delegated","external-records"]),TR=s.object({kind:s.literal("standard"),type:s.enum(["A","AAAA","CNAME","MX","TXT","NS","SRV","CAA"]),name:s.string(),value:s.union([s.string(),s.array(s.string())]),ttl:s.number().int().positive().optional()}).strict(),wR=s.object({kind:s.literal("alias"),type:eh,name:s.string(),target:Ex}).strict(),NR=s.discriminatedUnion("kind",[TR,wR]),kR=s.object({domainName:s.string(),subjectAlternativeNames:s.array(s.string()).optional(),transparencyLogging:s.boolean().optional()}).strict(),CR=s.object({subdomain:s.string(),toAccount:s.string(),auto:s.boolean().optional()}).strict(),h3=s.object({zoneName:s.string(),registrar:th,hostedZoneId:s.string().optional(),delegatedSubdomain:s.string().optional(),records:s.array(NR),certificates:s.array(kR),delegations:s.array(CR)}).strict().refine(e=>e.registrar!=="external-delegated"||e.delegatedSubdomain!==void 0,{message:"external-delegated requires delegatedSubdomain"}).refine(e=>e.registrar!=="external-records"||e.delegations.length===0,{message:"external-records forbids delegations"});var S3=th.options,x3=Yi.options,E3=eh.options;function ic(e,t){let n=[Of(e),Pf(e),Rf(e)];if(zf(e))n.push(Ks(e),Xs(e));else{let r=Mf(e);n.push(Xs(e),$f(e),If(e),Nf(e),kf(e),Cf(e),wf(e,r),Df(e))}let i=n.join("");if(e.customCodeBlocks&&e.customCodeBlocks.length>0){let r=Qf(i,e.customCodeBlocks,t?.resourceMapping);return r.success?ke(r.content):Ce(new Error(`Custom code injection failed: ${r.error??"unknown error"}`))}return ke(i)}var Q3=wS("standard");var E9=new Set(Yi.options);var k9=JSON.stringify({compilerOptions:{target:"ES2020",module:"commonjs",lib:["es2020","dom"],declaration:!0,strict:!0,noImplicitAny:!0,strictNullChecks:!0,noImplicitThis:!0,alwaysStrict:!0,noUnusedLocals:!1,noUnusedParameters:!1,noImplicitReturns:!0,noFallthroughCasesInSwitch:!1,inlineSourceMap:!0,inlineSources:!0,experimentalDecorators:!0,strictPropertyInitialization:!1,typeRoots:["./node_modules/@types"]},exclude:["node_modules","cdk.out"]},null,2)+`
|
|
435
|
+
`,C9=JSON.stringify({app:"npx ts-node --prefer-ts-exts --transpile-only infrastructure.ts",assetMetadata:!1,pathMetadata:!1,versionReporting:!1,watch:{include:["**"],exclude:["README.md","cdk*.json","**/*.d.ts","**/*.js","tsconfig.json","package*.json","yarn.lock","node_modules","test"]},context:{"@aws-cdk/aws-lambda:recognizeLayerVersion":!0,"@aws-cdk/core:checkSecretUsage":!0,"@aws-cdk/core:target-partitions":["aws","aws-cn"],"@aws-cdk-containers/ecs-service-extensions:enableDefaultLogDriver":!0,"@aws-cdk/aws-ec2:uniqueImdsv2TemplateName":!0,"@aws-cdk/aws-ecs:arnFormatIncludesClusterName":!0,"@aws-cdk/aws-iam:minimizePolicies":!0,"@aws-cdk/core:validateSnapshotRemovalPolicy":!0,"@aws-cdk/aws-codepipeline:crossAccountKeyAliasStackSafeResourceName":!0,"@aws-cdk/aws-s3:createDefaultLoggingPolicy":!0,"@aws-cdk/aws-sns-subscriptions:restrictSqsDescryption":!0,"@aws-cdk/aws-apigateway:disableCloudWatchRole":!0,"@aws-cdk/core:enablePartitionLiterals":!0,"@aws-cdk/aws-events:eventsTargetQueueSameAccount":!0,"@aws-cdk/aws-iam:standardizedServicePrincipals":!0,"@aws-cdk/aws-ecs:disableExplicitDeploymentControllerForCircuitBreaker":!0,"@aws-cdk/aws-iam:importedRoleStackSafeDefaultPolicyName":!0,"@aws-cdk/aws-s3:serverAccessLogsUseBucketPolicy":!0,"@aws-cdk/aws-route53-patters:useCertificate":!0,"@aws-cdk/customresources:installLatestAwsSdkDefault":!1,"@aws-cdk/aws-rds:databaseProxyUniqueResourceName":!0,"@aws-cdk/aws-codedeploy:removeAlarmsFromDeploymentGroup":!0,"@aws-cdk/aws-apigateway:authorizerChangeDeploymentLogicalId":!0,"@aws-cdk/aws-ec2:launchTemplateDefaultUserData":!0,"@aws-cdk/aws-secretsmanager:useAttachedSecretResourcePolicyForSecretTargetAttachments":!0,"@aws-cdk/aws-redshift:columnId":!0,"@aws-cdk/aws-stepfunctions-tasks:enableEmrServicePolicyV2":!0,"@aws-cdk/aws-ec2:restrictDefaultSecurityGroup":!0,"@aws-cdk/aws-apigateway:requestValidatorUniqueId":!0,"@aws-cdk/aws-kms:aliasNameRef":!0,"@aws-cdk/aws-autoscaling:generateLaunchTemplateInsteadOfLaunchConfig":!0,"@aws-cdk/core:includePrefixInUniqueNameGeneration":!0,"@aws-cdk/aws-opensearchservice:enableOpensearchMultiAzWithStandby":!0}},null,2)+`
|
|
436
436
|
`;import{join as BR,dirname as fG,normalize as VR}from"node:path";var GR="fjall";function WR(e,t){let n=VR(e);if(n.includes("..")||n.startsWith("/"))throw new Error(`Invalid ${t}: path traversal is not allowed`)}function $x(e){return WR(e,"app name"),BR(GR,e,HR)}var HR="infrastructure.ts";function qR(e,t,n){let i=e.root?Ix.join(e.root,t):t;try{if(Nn.existsSync(i)){let r=`${i}.bak`,o=`${r}.tmp`;Nn.writeFileSync(o,n),Nn.renameSync(o,r)}return ke(void 0)}catch(r){let o=Rt(r);return ls.warn("Generator",`Failed to create backup of ${t}`,{error:Mn(o.message)}),Ce(o)}}function KR(e,t){try{let n=Xi(e,{extractCustomCode:!0}),i=Ki(n,t,{skipValidation:!0});return n.customCodeBlocks?.length&&(i.customCodeBlocks=n.customCodeBlocks),ke({parsed:n,plan:i})}catch(n){return Ce(Rt(n))}}function XR(e,t){let n=KR(e,t);if(!n.success)throw new Error(`Failed to parse infrastructure: ${n.error.message}`,{cause:n.error});return n.data}function YR(e,t,n){let i=e.safeParse(t);if(!i.success)throw new Error(`Invalid ${n} generator options:
|
|
437
437
|
${Es(i.error)}`);return i.data}function JR(e,t){let n=$x(t),i=e.read(n)?.toString();if(!i)throw new Error(`App '${t}' not found. Expected infrastructure.ts at: ${n}`);return{path:n,content:i}}async function Ax(e,t,n,i,r){let o=YR(t,n,i),{path:a,content:c}=JR(e,o.appName),{plan:u}=XR(c,o.appName),l=await r({tree:e,validated:o,plan:u,infrastructurePath:a,content:c}),m=QR(e,a,c,l);if(!m.success)throw new Error(m.error.message,{cause:m.error})}function QR(e,t,n,i){let r=ic(i);if(!r.success)return Ce(r.error);let o=qR(e,t,n);return o.success?(e.write(t,r.data),ke(void 0)):Ce(new Error(`Failed to create backup: ${o.error.message}`))}var rA=fg(mg(),1);async function nA(e,t,n,i){let r=`Connect to existing ${t}?`,o=`Found ${e} ${t}s. Configure connections?`,a=e===1?n??r:i?.replace("{count}",String(e))??o,c=await(0,rA.default)([{type:"confirm",name:"shouldConnect",message:a,initial:!0}]);return c?c.shouldConnect:!1}var Jt=fg(mg(),1);function nD(e){let t=[];for(let n of e.s3)t.push({name:n.name,description:"S3 Storage"});for(let n of e.compute)n.type==="lambda"?n.functionUrl&&t.push({name:n.name,description:"Lambda"}):n.type==="ecs"&&t.push({name:n.name,description:"ECS with ALB"});return t}function iA(e,t){if(!t.some(n=>n.name===e)){let n=t.map(i=>i.name).join(", ");throw new Error(`Origin "${e}" not found in infrastructure. Available origins: ${n}`)}}async function iD(e,t){let n=nD(e);if(n.length===0)throw new Error("No available CDN origins found. Add an S3 bucket or compute resource with ALB/function URL first.");if(t.defaultOriginRef){if(iA(t.defaultOriginRef,n),t.behaviours)for(let c of t.behaviours)iA(c.originRef,n);return{defaultOriginRef:t.defaultOriginRef,behaviours:t.behaviours,...t.customDomain&&{customDomain:t.customDomain}}}if(t.nameProvidedByFlag)throw new Error("Default origin must be specified in non-interactive mode");let i;if(n.length===1)i=n[0].name,process.stdout.write(`
|
|
438
438
|
Auto-selected origin: ${i}
|