fjall 1.1.0 → 2.1.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 +3 -3
- package/bin/.metafile.json +97 -19
- package/bin/assets/generators/organisation/files/organisation/infrastructure.ts +2 -0
- package/bin/assets/generators/shared/files/package.json +2 -2
- package/bin/assets/src/util/diagnostics/cdkTmpdirCleanup.d.ts +19 -0
- package/bin/assets/src/util/diagnostics/cdkTmpdirCleanup.js +1 -0
- package/bin/fjall.bundle.js +336 -335
- package/package.json +3 -3
package/bin/.bundled
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
bundled at 2026-05-
|
|
2
|
-
bundle size:
|
|
3
|
-
cli version: 1.1
|
|
1
|
+
bundled at 2026-05-24T01:08:40.962Z
|
|
2
|
+
bundle size: 3063554 bytes
|
|
3
|
+
cli version: 2.1.1
|
package/bin/.metafile.json
CHANGED
|
@@ -142,7 +142,7 @@
|
|
|
142
142
|
"format": "esm"
|
|
143
143
|
},
|
|
144
144
|
"../../cli/dist/package.json": {
|
|
145
|
-
"bytes":
|
|
145
|
+
"bytes": 5288,
|
|
146
146
|
"imports": [],
|
|
147
147
|
"format": "esm",
|
|
148
148
|
"with": {
|
|
@@ -2121,7 +2121,7 @@
|
|
|
2121
2121
|
"format": "esm"
|
|
2122
2122
|
},
|
|
2123
2123
|
"../../generator/dist/src/version.js": {
|
|
2124
|
-
"bytes":
|
|
2124
|
+
"bytes": 48,
|
|
2125
2125
|
"imports": [],
|
|
2126
2126
|
"format": "esm"
|
|
2127
2127
|
},
|
|
@@ -9043,13 +9043,18 @@
|
|
|
9043
9043
|
"format": "esm"
|
|
9044
9044
|
},
|
|
9045
9045
|
"../../deploy-core/dist/src/services/infrastructure/CdkCommandRunner.js": {
|
|
9046
|
-
"bytes":
|
|
9046
|
+
"bytes": 4286,
|
|
9047
9047
|
"imports": [
|
|
9048
9048
|
{
|
|
9049
9049
|
"path": "os",
|
|
9050
9050
|
"kind": "import-statement",
|
|
9051
9051
|
"external": true
|
|
9052
9052
|
},
|
|
9053
|
+
{
|
|
9054
|
+
"path": "path",
|
|
9055
|
+
"kind": "import-statement",
|
|
9056
|
+
"external": true
|
|
9057
|
+
},
|
|
9053
9058
|
{
|
|
9054
9059
|
"path": "../../deploy-core/node_modules/@fjall/util/dist/logger.js",
|
|
9055
9060
|
"kind": "import-statement",
|
|
@@ -30015,7 +30020,7 @@
|
|
|
30015
30020
|
"format": "cjs"
|
|
30016
30021
|
},
|
|
30017
30022
|
"../../cli/dist/src/operations/codemodBaselineStore.js": {
|
|
30018
|
-
"bytes":
|
|
30023
|
+
"bytes": 4343,
|
|
30019
30024
|
"imports": [
|
|
30020
30025
|
{
|
|
30021
30026
|
"path": "node:fs",
|
|
@@ -30056,7 +30061,7 @@
|
|
|
30056
30061
|
"format": "esm"
|
|
30057
30062
|
},
|
|
30058
30063
|
"../../cli/dist/src/operations/codemodOperationHelpers.js": {
|
|
30059
|
-
"bytes":
|
|
30064
|
+
"bytes": 1616,
|
|
30060
30065
|
"imports": [
|
|
30061
30066
|
{
|
|
30062
30067
|
"path": "node:fs",
|
|
@@ -35179,8 +35184,50 @@
|
|
|
35179
35184
|
],
|
|
35180
35185
|
"format": "esm"
|
|
35181
35186
|
},
|
|
35187
|
+
"../../cli/dist/src/util/diagnostics/cdkTmpdirCleanup.js": {
|
|
35188
|
+
"bytes": 1425,
|
|
35189
|
+
"imports": [
|
|
35190
|
+
{
|
|
35191
|
+
"path": "fs/promises",
|
|
35192
|
+
"kind": "import-statement",
|
|
35193
|
+
"external": true
|
|
35194
|
+
},
|
|
35195
|
+
{
|
|
35196
|
+
"path": "os",
|
|
35197
|
+
"kind": "import-statement",
|
|
35198
|
+
"external": true
|
|
35199
|
+
},
|
|
35200
|
+
{
|
|
35201
|
+
"path": "path",
|
|
35202
|
+
"kind": "import-statement",
|
|
35203
|
+
"external": true
|
|
35204
|
+
},
|
|
35205
|
+
{
|
|
35206
|
+
"path": "../../cli/dist/src/util/logger/index.js",
|
|
35207
|
+
"kind": "import-statement",
|
|
35208
|
+
"original": "../logger/index.js"
|
|
35209
|
+
}
|
|
35210
|
+
],
|
|
35211
|
+
"format": "esm"
|
|
35212
|
+
},
|
|
35213
|
+
"../../cli/dist/src/commands/doctor.js": {
|
|
35214
|
+
"bytes": 1133,
|
|
35215
|
+
"imports": [
|
|
35216
|
+
{
|
|
35217
|
+
"path": "../../cli/dist/src/util/commandResult.js",
|
|
35218
|
+
"kind": "import-statement",
|
|
35219
|
+
"original": "../util/commandResult.js"
|
|
35220
|
+
},
|
|
35221
|
+
{
|
|
35222
|
+
"path": "../../cli/dist/src/util/diagnostics/cdkTmpdirCleanup.js",
|
|
35223
|
+
"kind": "import-statement",
|
|
35224
|
+
"original": "../util/diagnostics/cdkTmpdirCleanup.js"
|
|
35225
|
+
}
|
|
35226
|
+
],
|
|
35227
|
+
"format": "esm"
|
|
35228
|
+
},
|
|
35182
35229
|
"../../cli/dist/src/commands/index.js": {
|
|
35183
|
-
"bytes":
|
|
35230
|
+
"bytes": 1183,
|
|
35184
35231
|
"imports": [
|
|
35185
35232
|
{
|
|
35186
35233
|
"path": "../../cli/dist/src/commands/agent.js",
|
|
@@ -35326,6 +35373,11 @@
|
|
|
35326
35373
|
"path": "../../cli/dist/src/commands/accounts.js",
|
|
35327
35374
|
"kind": "import-statement",
|
|
35328
35375
|
"original": "./accounts.js"
|
|
35376
|
+
},
|
|
35377
|
+
{
|
|
35378
|
+
"path": "../../cli/dist/src/commands/doctor.js",
|
|
35379
|
+
"kind": "import-statement",
|
|
35380
|
+
"original": "./doctor.js"
|
|
35329
35381
|
}
|
|
35330
35382
|
],
|
|
35331
35383
|
"format": "esm"
|
|
@@ -35471,7 +35523,7 @@
|
|
|
35471
35523
|
"format": "esm"
|
|
35472
35524
|
},
|
|
35473
35525
|
"../../cli/dist/src/commands/registration/apiCommands.js": {
|
|
35474
|
-
"bytes":
|
|
35526
|
+
"bytes": 3031,
|
|
35475
35527
|
"imports": [
|
|
35476
35528
|
{
|
|
35477
35529
|
"path": "../../cli/dist/src/commands/index.js",
|
|
@@ -35748,7 +35800,7 @@
|
|
|
35748
35800
|
"format": "esm"
|
|
35749
35801
|
},
|
|
35750
35802
|
"../../cli/dist/src/cli.js": {
|
|
35751
|
-
"bytes":
|
|
35803
|
+
"bytes": 4119,
|
|
35752
35804
|
"imports": [
|
|
35753
35805
|
{
|
|
35754
35806
|
"path": "../../node_modules/commander/esm.mjs",
|
|
@@ -35827,7 +35879,7 @@
|
|
|
35827
35879
|
"imports": [],
|
|
35828
35880
|
"exports": [],
|
|
35829
35881
|
"inputs": {},
|
|
35830
|
-
"bytes":
|
|
35882
|
+
"bytes": 8857154
|
|
35831
35883
|
},
|
|
35832
35884
|
"bin/fjall.bundle.js": {
|
|
35833
35885
|
"imports": [
|
|
@@ -36546,6 +36598,11 @@
|
|
|
36546
36598
|
"kind": "import-statement",
|
|
36547
36599
|
"external": true
|
|
36548
36600
|
},
|
|
36601
|
+
{
|
|
36602
|
+
"path": "path",
|
|
36603
|
+
"kind": "import-statement",
|
|
36604
|
+
"external": true
|
|
36605
|
+
},
|
|
36549
36606
|
{
|
|
36550
36607
|
"path": "child_process",
|
|
36551
36608
|
"kind": "import-statement",
|
|
@@ -39310,6 +39367,21 @@
|
|
|
39310
39367
|
"path": "typescript",
|
|
39311
39368
|
"kind": "import-statement",
|
|
39312
39369
|
"external": true
|
|
39370
|
+
},
|
|
39371
|
+
{
|
|
39372
|
+
"path": "fs/promises",
|
|
39373
|
+
"kind": "import-statement",
|
|
39374
|
+
"external": true
|
|
39375
|
+
},
|
|
39376
|
+
{
|
|
39377
|
+
"path": "os",
|
|
39378
|
+
"kind": "import-statement",
|
|
39379
|
+
"external": true
|
|
39380
|
+
},
|
|
39381
|
+
{
|
|
39382
|
+
"path": "path",
|
|
39383
|
+
"kind": "import-statement",
|
|
39384
|
+
"external": true
|
|
39313
39385
|
}
|
|
39314
39386
|
],
|
|
39315
39387
|
"exports": [],
|
|
@@ -39337,7 +39409,7 @@
|
|
|
39337
39409
|
"bytesInOutput": 407
|
|
39338
39410
|
},
|
|
39339
39411
|
"../../cli/dist/package.json": {
|
|
39340
|
-
"bytesInOutput":
|
|
39412
|
+
"bytesInOutput": 4054
|
|
39341
39413
|
},
|
|
39342
39414
|
"../../node_modules/chalk/source/vendor/ansi-styles/index.js": {
|
|
39343
39415
|
"bytesInOutput": 2579
|
|
@@ -39619,7 +39691,7 @@
|
|
|
39619
39691
|
"bytesInOutput": 3929
|
|
39620
39692
|
},
|
|
39621
39693
|
"../../generator/dist/src/version.js": {
|
|
39622
|
-
"bytesInOutput":
|
|
39694
|
+
"bytesInOutput": 43
|
|
39623
39695
|
},
|
|
39624
39696
|
"../../node_modules/zod/v4/core/core.js": {
|
|
39625
39697
|
"bytesInOutput": 1211
|
|
@@ -40768,7 +40840,7 @@
|
|
|
40768
40840
|
"bytesInOutput": 530
|
|
40769
40841
|
},
|
|
40770
40842
|
"../../deploy-core/dist/src/services/infrastructure/CdkCommandRunner.js": {
|
|
40771
|
-
"bytesInOutput":
|
|
40843
|
+
"bytesInOutput": 3742
|
|
40772
40844
|
},
|
|
40773
40845
|
"../../deploy-core/dist/src/services/infrastructure/CdkProcessManager.js": {
|
|
40774
40846
|
"bytesInOutput": 4372
|
|
@@ -41935,7 +42007,7 @@
|
|
|
41935
42007
|
"bytesInOutput": 3229
|
|
41936
42008
|
},
|
|
41937
42009
|
"../../cli/dist/src/services/app/AppIdentityService.js": {
|
|
41938
|
-
"bytesInOutput":
|
|
42010
|
+
"bytesInOutput": 2160
|
|
41939
42011
|
},
|
|
41940
42012
|
"../../cli/dist/src/services/app/AppQueryService.js": {
|
|
41941
42013
|
"bytesInOutput": 2116
|
|
@@ -41959,7 +42031,7 @@
|
|
|
41959
42031
|
"bytesInOutput": 76
|
|
41960
42032
|
},
|
|
41961
42033
|
"../../cli/dist/src/services/index.js": {
|
|
41962
|
-
"bytesInOutput":
|
|
42034
|
+
"bytesInOutput": 5226
|
|
41963
42035
|
},
|
|
41964
42036
|
"../../cli/dist/src/util/theme.js": {
|
|
41965
42037
|
"bytesInOutput": 1210
|
|
@@ -42781,10 +42853,10 @@
|
|
|
42781
42853
|
"bytesInOutput": 561
|
|
42782
42854
|
},
|
|
42783
42855
|
"../../cli/dist/src/operations/codemodBaselineStore.js": {
|
|
42784
|
-
"bytesInOutput":
|
|
42856
|
+
"bytesInOutput": 3106
|
|
42785
42857
|
},
|
|
42786
42858
|
"../../cli/dist/src/operations/codemodOperationHelpers.js": {
|
|
42787
|
-
"bytesInOutput":
|
|
42859
|
+
"bytesInOutput": 1249
|
|
42788
42860
|
},
|
|
42789
42861
|
"../../cli/dist/src/operations/codemodOperationLock.js": {
|
|
42790
42862
|
"bytesInOutput": 1028
|
|
@@ -42880,7 +42952,7 @@
|
|
|
42880
42952
|
"bytesInOutput": 220
|
|
42881
42953
|
},
|
|
42882
42954
|
"../../cli/dist/src/cli.js": {
|
|
42883
|
-
"bytesInOutput":
|
|
42955
|
+
"bytesInOutput": 3237
|
|
42884
42956
|
},
|
|
42885
42957
|
"../../cli/dist/src/util/commandErrorHandler.js": {
|
|
42886
42958
|
"bytesInOutput": 134
|
|
@@ -43188,6 +43260,12 @@
|
|
|
43188
43260
|
"../../cli/dist/src/commands/accounts.js": {
|
|
43189
43261
|
"bytesInOutput": 791
|
|
43190
43262
|
},
|
|
43263
|
+
"../../cli/dist/src/commands/doctor.js": {
|
|
43264
|
+
"bytesInOutput": 944
|
|
43265
|
+
},
|
|
43266
|
+
"../../cli/dist/src/util/diagnostics/cdkTmpdirCleanup.js": {
|
|
43267
|
+
"bytesInOutput": 1327
|
|
43268
|
+
},
|
|
43191
43269
|
"../../cli/dist/src/commands/registration/createCommands.js": {
|
|
43192
43270
|
"bytesInOutput": 1675
|
|
43193
43271
|
},
|
|
@@ -43210,7 +43288,7 @@
|
|
|
43210
43288
|
"bytesInOutput": 1732
|
|
43211
43289
|
},
|
|
43212
43290
|
"../../cli/dist/src/commands/registration/apiCommands.js": {
|
|
43213
|
-
"bytesInOutput":
|
|
43291
|
+
"bytesInOutput": 2480
|
|
43214
43292
|
},
|
|
43215
43293
|
"../../cli/dist/src/validation/parsePropertyFlags.js": {
|
|
43216
43294
|
"bytesInOutput": 364
|
|
@@ -43222,7 +43300,7 @@
|
|
|
43222
43300
|
"bytesInOutput": 422
|
|
43223
43301
|
}
|
|
43224
43302
|
},
|
|
43225
|
-
"bytes":
|
|
43303
|
+
"bytes": 3063554
|
|
43226
43304
|
}
|
|
43227
43305
|
}
|
|
43228
43306
|
}
|
|
@@ -27,6 +27,8 @@ if (config.environment === "root") {
|
|
|
27
27
|
organisationName: "<%= name %>",
|
|
28
28
|
orgEmail: "<%= email %>"
|
|
29
29
|
});
|
|
30
|
+
|
|
31
|
+
// For AWS Identity Center permission sets / group memberships in code: aiDocs/guides/identity-center-memberships.md
|
|
30
32
|
<% if (security === "compliance" || security === "hardened") { -%>
|
|
31
33
|
|
|
32
34
|
const rootIdCtx = organisation.node.tryGetContext("rootId");
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "<%= packageName %>",
|
|
3
|
-
"version": "1.1
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {},
|
|
6
6
|
"devDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
"typescript": "~6.0.3"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@fjall/components-infrastructure": "^1.1
|
|
12
|
+
"@fjall/components-infrastructure": "^2.1.1",
|
|
13
13
|
"aws-cdk-lib": "^2.251.0",
|
|
14
14
|
"constructs": "^10.6.0"
|
|
15
15
|
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export interface StaleCdkTmpdir {
|
|
2
|
+
readonly path: string;
|
|
3
|
+
readonly sizeBytes: number;
|
|
4
|
+
readonly mtime: Date;
|
|
5
|
+
}
|
|
6
|
+
export interface FindOptions {
|
|
7
|
+
/** Base tmpdir to scan. Defaults to os.tmpdir(); overridden by tests. */
|
|
8
|
+
readonly tmpdirPath?: string;
|
|
9
|
+
/** Minimum age before a dir is reported. Defaults to 24h. */
|
|
10
|
+
readonly maxAgeMs?: number;
|
|
11
|
+
}
|
|
12
|
+
export interface CleanupResult {
|
|
13
|
+
readonly removed: number;
|
|
14
|
+
readonly failed: number;
|
|
15
|
+
readonly bytesReclaimed: number;
|
|
16
|
+
}
|
|
17
|
+
export declare function findStaleCdkTmpdirs(options?: FindOptions): Promise<StaleCdkTmpdir[]>;
|
|
18
|
+
export declare function removeStaleCdkTmpdirs(dirs: readonly StaleCdkTmpdir[]): Promise<CleanupResult>;
|
|
19
|
+
export declare function formatBytes(bytes: number): string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{readdir as m,stat as d,rm as y}from"fs/promises";import{tmpdir as g}from"os";import{join as l}from"path";import{logger as w}from"../logger/index.js";const B="cdkTmpdirCleanup";function n(i,t,e={}){w.debug(B,i,{error:t instanceof Error?t.message:String(t),...e})}const D="cdk.out",M=1440*60*1e3;async function u(i){let t=0,e;try{e=await m(i,{withFileTypes:!0})}catch(r){return n("readdir failed",r,{path:i}),0}for(const r of e){const o=l(i,r.name);if(r.isDirectory())t+=await u(o);else if(r.isFile())try{const a=await d(o);t+=a.size}catch(a){n("stat failed",a,{path:o})}}return t}async function F(i={}){const t=i.tmpdirPath??g(),e=i.maxAgeMs??M,r=Date.now()-e;let o;try{o=await m(t)}catch(s){return n("tmpdir readdir failed",s,{root:t}),[]}const a=[];for(const s of o){if(!s.startsWith(D))continue;const c=l(t,s);let f;try{f=await d(c)}catch(h){n("stat failed",h,{path:c});continue}if(!f.isDirectory()||f.mtimeMs>r)continue;const p=await u(c);a.push({path:c,sizeBytes:p,mtime:f.mtime})}return a}async function S(i){let t=0,e=0,r=0;for(const o of i)try{await y(o.path,{recursive:!0,force:!0}),t+=1,r+=o.sizeBytes}catch(a){n("rm failed",a,{path:o.path}),e+=1}return{removed:t,failed:e,bytesReclaimed:r}}function _(i){const t=["B","KB","MB","GB","TB"];let e=i,r=0;for(;e>=1024&&r<t.length-1;)e/=1024,r+=1;return`${e.toFixed(e<10?2:1)} ${t[r]}`}export{F as findStaleCdkTmpdirs,_ as formatBytes,S as removeStaleCdkTmpdirs};
|