@sembix/cli 1.2.0 → 1.2.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.
@@ -248,7 +248,7 @@ describe('config-schema', () => {
248
248
  };
249
249
  const result = configFileSchema.safeParse(config);
250
250
  if (!result.success) {
251
- console.log('Validation errors:', result.error.errors);
251
+ console.log('Validation errors:', result.error.issues);
252
252
  }
253
253
  expect(result.success).toBe(true);
254
254
  });
@@ -7,59 +7,41 @@ export declare const configFileSchema: z.ZodObject<{
7
7
  repository: z.ZodOptional<z.ZodObject<{
8
8
  owner: z.ZodString;
9
9
  repo: z.ZodString;
10
- }, "strip", z.ZodTypeAny, {
11
- repo: string;
12
- owner: string;
13
- }, {
14
- repo: string;
15
- owner: string;
16
- }>>;
10
+ }, z.core.$strip>>;
17
11
  environmentName: z.ZodOptional<z.ZodString>;
18
12
  awsAccountId: z.ZodOptional<z.ZodString>;
19
- awsRegion: z.ZodOptional<z.ZodEnum<["us-east-1", "us-east-2", "us-west-1", "us-west-2", "eu-west-1", "eu-west-2", "eu-central-1", "ap-northeast-1", "ap-southeast-1", "ap-southeast-2"]>>;
13
+ awsRegion: z.ZodOptional<z.ZodEnum<{
14
+ "us-east-1": "us-east-1";
15
+ "us-east-2": "us-east-2";
16
+ "us-west-1": "us-west-1";
17
+ "us-west-2": "us-west-2";
18
+ "eu-west-1": "eu-west-1";
19
+ "eu-west-2": "eu-west-2";
20
+ "eu-central-1": "eu-central-1";
21
+ "ap-northeast-1": "ap-northeast-1";
22
+ "ap-southeast-1": "ap-southeast-1";
23
+ "ap-southeast-2": "ap-southeast-2";
24
+ }>>;
20
25
  customerRoleArn: z.ZodOptional<z.ZodString>;
21
26
  terraformStateBucket: z.ZodOptional<z.ZodString>;
22
27
  database: z.ZodOptional<z.ZodObject<{
23
28
  name: z.ZodOptional<z.ZodString>;
24
29
  user: z.ZodOptional<z.ZodString>;
25
- }, "strip", z.ZodTypeAny, {
26
- name?: string | undefined;
27
- user?: string | undefined;
28
- }, {
29
- name?: string | undefined;
30
- user?: string | undefined;
31
- }>>;
30
+ }, z.core.$strip>>;
32
31
  networking: z.ZodOptional<z.ZodObject<{
33
32
  enableVpcEndpoints: z.ZodOptional<z.ZodBoolean>;
34
33
  useCustomNetworking: z.ZodOptional<z.ZodBoolean>;
35
34
  vpcCidr: z.ZodOptional<z.ZodString>;
36
- publicSubnetCidrs: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
37
- privateSubnetCidrs: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
38
- azCount: z.ZodOptional<z.ZodEnum<["2", "3"]>>;
35
+ publicSubnetCidrs: z.ZodOptional<z.ZodString>;
36
+ privateSubnetCidrs: z.ZodOptional<z.ZodString>;
37
+ azCount: z.ZodOptional<z.ZodEnum<{
38
+ 2: "2";
39
+ 3: "3";
40
+ }>>;
39
41
  customVpcId: z.ZodOptional<z.ZodString>;
40
42
  customPublicSubnetIds: z.ZodOptional<z.ZodString>;
41
43
  customPrivateSubnetIds: z.ZodOptional<z.ZodString>;
42
- }, "strip", z.ZodTypeAny, {
43
- enableVpcEndpoints?: boolean | undefined;
44
- useCustomNetworking?: boolean | undefined;
45
- vpcCidr?: string | undefined;
46
- publicSubnetCidrs?: string | undefined;
47
- privateSubnetCidrs?: string | undefined;
48
- azCount?: "2" | "3" | undefined;
49
- customVpcId?: string | undefined;
50
- customPublicSubnetIds?: string | undefined;
51
- customPrivateSubnetIds?: string | undefined;
52
- }, {
53
- enableVpcEndpoints?: boolean | undefined;
54
- useCustomNetworking?: boolean | undefined;
55
- vpcCidr?: string | undefined;
56
- publicSubnetCidrs?: string | undefined;
57
- privateSubnetCidrs?: string | undefined;
58
- azCount?: "2" | "3" | undefined;
59
- customVpcId?: string | undefined;
60
- customPublicSubnetIds?: string | undefined;
61
- customPrivateSubnetIds?: string | undefined;
62
- }>>;
44
+ }, z.core.$strip>>;
63
45
  security: z.ZodOptional<z.ZodObject<{
64
46
  workflowRunsKeyAlias: z.ZodOptional<z.ZodString>;
65
47
  useCustomSecurityGroups: z.ZodOptional<z.ZodBoolean>;
@@ -70,21 +52,7 @@ export declare const configFileSchema: z.ZodObject<{
70
52
  bffEcs: z.ZodOptional<z.ZodString>;
71
53
  bastion: z.ZodOptional<z.ZodString>;
72
54
  bffAlb: z.ZodOptional<z.ZodString>;
73
- }, "strip", z.ZodTypeAny, {
74
- workflowEngine?: string | undefined;
75
- aurora?: string | undefined;
76
- rdsProxy?: string | undefined;
77
- bffEcs?: string | undefined;
78
- bastion?: string | undefined;
79
- bffAlb?: string | undefined;
80
- }, {
81
- workflowEngine?: string | undefined;
82
- aurora?: string | undefined;
83
- rdsProxy?: string | undefined;
84
- bffEcs?: string | undefined;
85
- bastion?: string | undefined;
86
- bffAlb?: string | undefined;
87
- }>>;
55
+ }, z.core.$strip>>;
88
56
  useCustomIamPolicies: z.ZodOptional<z.ZodBoolean>;
89
57
  customIamRoles: z.ZodOptional<z.ZodObject<{
90
58
  workflowEngineExecutionRole: z.ZodOptional<z.ZodString>;
@@ -94,309 +62,37 @@ export declare const configFileSchema: z.ZodObject<{
94
62
  rdsProxyRole: z.ZodOptional<z.ZodString>;
95
63
  sembixStudioMemoryRole: z.ZodOptional<z.ZodString>;
96
64
  sembixStudioNotificationRole: z.ZodOptional<z.ZodString>;
97
- }, "strip", z.ZodTypeAny, {
98
- workflowEngineExecutionRole?: string | undefined;
99
- workflowEngineTaskRole?: string | undefined;
100
- bffEcsTaskExecutionRole?: string | undefined;
101
- bffEcsTaskRole?: string | undefined;
102
- rdsProxyRole?: string | undefined;
103
- sembixStudioMemoryRole?: string | undefined;
104
- sembixStudioNotificationRole?: string | undefined;
105
- }, {
106
- workflowEngineExecutionRole?: string | undefined;
107
- workflowEngineTaskRole?: string | undefined;
108
- bffEcsTaskExecutionRole?: string | undefined;
109
- bffEcsTaskRole?: string | undefined;
110
- rdsProxyRole?: string | undefined;
111
- sembixStudioMemoryRole?: string | undefined;
112
- sembixStudioNotificationRole?: string | undefined;
113
- }>>;
114
- }, "strip", z.ZodTypeAny, {
115
- workflowRunsKeyAlias?: string | undefined;
116
- useCustomSecurityGroups?: boolean | undefined;
117
- customSecurityGroups?: {
118
- workflowEngine?: string | undefined;
119
- aurora?: string | undefined;
120
- rdsProxy?: string | undefined;
121
- bffEcs?: string | undefined;
122
- bastion?: string | undefined;
123
- bffAlb?: string | undefined;
124
- } | undefined;
125
- useCustomIamPolicies?: boolean | undefined;
126
- customIamRoles?: {
127
- workflowEngineExecutionRole?: string | undefined;
128
- workflowEngineTaskRole?: string | undefined;
129
- bffEcsTaskExecutionRole?: string | undefined;
130
- bffEcsTaskRole?: string | undefined;
131
- rdsProxyRole?: string | undefined;
132
- sembixStudioMemoryRole?: string | undefined;
133
- sembixStudioNotificationRole?: string | undefined;
134
- } | undefined;
135
- }, {
136
- workflowRunsKeyAlias?: string | undefined;
137
- useCustomSecurityGroups?: boolean | undefined;
138
- customSecurityGroups?: {
139
- workflowEngine?: string | undefined;
140
- aurora?: string | undefined;
141
- rdsProxy?: string | undefined;
142
- bffEcs?: string | undefined;
143
- bastion?: string | undefined;
144
- bffAlb?: string | undefined;
145
- } | undefined;
146
- useCustomIamPolicies?: boolean | undefined;
147
- customIamRoles?: {
148
- workflowEngineExecutionRole?: string | undefined;
149
- workflowEngineTaskRole?: string | undefined;
150
- bffEcsTaskExecutionRole?: string | undefined;
151
- bffEcsTaskRole?: string | undefined;
152
- rdsProxyRole?: string | undefined;
153
- sembixStudioMemoryRole?: string | undefined;
154
- sembixStudioNotificationRole?: string | undefined;
155
- } | undefined;
156
- }>>;
65
+ }, z.core.$strip>>;
66
+ }, z.core.$strip>>;
157
67
  tls: z.ZodOptional<z.ZodObject<{
158
68
  cloudfrontDomain: z.ZodOptional<z.ZodString>;
159
69
  cloudfrontCertArn: z.ZodOptional<z.ZodString>;
160
70
  bffAlbCertificateArn: z.ZodOptional<z.ZodString>;
161
71
  hostedZoneId: z.ZodOptional<z.ZodString>;
162
- }, "strip", z.ZodTypeAny, {
163
- cloudfrontDomain?: string | undefined;
164
- cloudfrontCertArn?: string | undefined;
165
- bffAlbCertificateArn?: string | undefined;
166
- hostedZoneId?: string | undefined;
167
- }, {
168
- cloudfrontDomain?: string | undefined;
169
- cloudfrontCertArn?: string | undefined;
170
- bffAlbCertificateArn?: string | undefined;
171
- hostedZoneId?: string | undefined;
172
- }>>;
72
+ }, z.core.$strip>>;
173
73
  features: z.ZodOptional<z.ZodObject<{
174
74
  deploySembixStudioMemory: z.ZodOptional<z.ZodBoolean>;
175
75
  deploySembixStudioNotifications: z.ZodOptional<z.ZodBoolean>;
176
76
  enableBffWaf: z.ZodOptional<z.ZodBoolean>;
177
- }, "strip", z.ZodTypeAny, {
178
- deploySembixStudioMemory?: boolean | undefined;
179
- deploySembixStudioNotifications?: boolean | undefined;
180
- enableBffWaf?: boolean | undefined;
181
- }, {
182
- deploySembixStudioMemory?: boolean | undefined;
183
- deploySembixStudioNotifications?: boolean | undefined;
184
- enableBffWaf?: boolean | undefined;
185
- }>>;
77
+ }, z.core.$strip>>;
186
78
  frontend: z.ZodOptional<z.ZodObject<{
187
79
  githubAppClientId: z.ZodOptional<z.ZodString>;
188
80
  githubAppName: z.ZodOptional<z.ZodString>;
189
81
  jiraClientId: z.ZodOptional<z.ZodString>;
190
- }, "strip", z.ZodTypeAny, {
191
- githubAppClientId?: string | undefined;
192
- githubAppName?: string | undefined;
193
- jiraClientId?: string | undefined;
194
- }, {
195
- githubAppClientId?: string | undefined;
196
- githubAppName?: string | undefined;
197
- jiraClientId?: string | undefined;
198
- }>>;
82
+ }, z.core.$strip>>;
199
83
  hub: z.ZodOptional<z.ZodObject<{
200
84
  hubRoles: z.ZodOptional<z.ZodObject<{
201
85
  engineExecutionRole: z.ZodOptional<z.ZodString>;
202
86
  consumerRole: z.ZodOptional<z.ZodString>;
203
- }, "strip", z.ZodTypeAny, {
204
- engineExecutionRole?: string | undefined;
205
- consumerRole?: string | undefined;
206
- }, {
207
- engineExecutionRole?: string | undefined;
208
- consumerRole?: string | undefined;
209
- }>>;
87
+ }, z.core.$strip>>;
210
88
  appConfig: z.ZodOptional<z.ZodObject<{
211
89
  roleArn: z.ZodOptional<z.ZodString>;
212
90
  appId: z.ZodOptional<z.ZodString>;
213
91
  envId: z.ZodOptional<z.ZodString>;
214
92
  profileId: z.ZodOptional<z.ZodString>;
215
- }, "strip", z.ZodTypeAny, {
216
- roleArn?: string | undefined;
217
- appId?: string | undefined;
218
- envId?: string | undefined;
219
- profileId?: string | undefined;
220
- }, {
221
- roleArn?: string | undefined;
222
- appId?: string | undefined;
223
- envId?: string | undefined;
224
- profileId?: string | undefined;
225
- }>>;
226
- }, "strip", z.ZodTypeAny, {
227
- hubRoles?: {
228
- engineExecutionRole?: string | undefined;
229
- consumerRole?: string | undefined;
230
- } | undefined;
231
- appConfig?: {
232
- roleArn?: string | undefined;
233
- appId?: string | undefined;
234
- envId?: string | undefined;
235
- profileId?: string | undefined;
236
- } | undefined;
237
- }, {
238
- hubRoles?: {
239
- engineExecutionRole?: string | undefined;
240
- consumerRole?: string | undefined;
241
- } | undefined;
242
- appConfig?: {
243
- roleArn?: string | undefined;
244
- appId?: string | undefined;
245
- envId?: string | undefined;
246
- profileId?: string | undefined;
247
- } | undefined;
248
- }>>;
249
- }, "strip", z.ZodTypeAny, {
250
- repository?: {
251
- repo: string;
252
- owner: string;
253
- } | undefined;
254
- environmentName?: string | undefined;
255
- awsAccountId?: string | undefined;
256
- awsRegion?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "eu-west-1" | "eu-west-2" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1" | "ap-southeast-2" | undefined;
257
- customerRoleArn?: string | undefined;
258
- terraformStateBucket?: string | undefined;
259
- database?: {
260
- name?: string | undefined;
261
- user?: string | undefined;
262
- } | undefined;
263
- networking?: {
264
- enableVpcEndpoints?: boolean | undefined;
265
- useCustomNetworking?: boolean | undefined;
266
- vpcCidr?: string | undefined;
267
- publicSubnetCidrs?: string | undefined;
268
- privateSubnetCidrs?: string | undefined;
269
- azCount?: "2" | "3" | undefined;
270
- customVpcId?: string | undefined;
271
- customPublicSubnetIds?: string | undefined;
272
- customPrivateSubnetIds?: string | undefined;
273
- } | undefined;
274
- security?: {
275
- workflowRunsKeyAlias?: string | undefined;
276
- useCustomSecurityGroups?: boolean | undefined;
277
- customSecurityGroups?: {
278
- workflowEngine?: string | undefined;
279
- aurora?: string | undefined;
280
- rdsProxy?: string | undefined;
281
- bffEcs?: string | undefined;
282
- bastion?: string | undefined;
283
- bffAlb?: string | undefined;
284
- } | undefined;
285
- useCustomIamPolicies?: boolean | undefined;
286
- customIamRoles?: {
287
- workflowEngineExecutionRole?: string | undefined;
288
- workflowEngineTaskRole?: string | undefined;
289
- bffEcsTaskExecutionRole?: string | undefined;
290
- bffEcsTaskRole?: string | undefined;
291
- rdsProxyRole?: string | undefined;
292
- sembixStudioMemoryRole?: string | undefined;
293
- sembixStudioNotificationRole?: string | undefined;
294
- } | undefined;
295
- } | undefined;
296
- tls?: {
297
- cloudfrontDomain?: string | undefined;
298
- cloudfrontCertArn?: string | undefined;
299
- bffAlbCertificateArn?: string | undefined;
300
- hostedZoneId?: string | undefined;
301
- } | undefined;
302
- features?: {
303
- deploySembixStudioMemory?: boolean | undefined;
304
- deploySembixStudioNotifications?: boolean | undefined;
305
- enableBffWaf?: boolean | undefined;
306
- } | undefined;
307
- frontend?: {
308
- githubAppClientId?: string | undefined;
309
- githubAppName?: string | undefined;
310
- jiraClientId?: string | undefined;
311
- } | undefined;
312
- hub?: {
313
- hubRoles?: {
314
- engineExecutionRole?: string | undefined;
315
- consumerRole?: string | undefined;
316
- } | undefined;
317
- appConfig?: {
318
- roleArn?: string | undefined;
319
- appId?: string | undefined;
320
- envId?: string | undefined;
321
- profileId?: string | undefined;
322
- } | undefined;
323
- } | undefined;
324
- }, {
325
- repository?: {
326
- repo: string;
327
- owner: string;
328
- } | undefined;
329
- environmentName?: string | undefined;
330
- awsAccountId?: string | undefined;
331
- awsRegion?: "us-east-1" | "us-east-2" | "us-west-1" | "us-west-2" | "eu-west-1" | "eu-west-2" | "eu-central-1" | "ap-northeast-1" | "ap-southeast-1" | "ap-southeast-2" | undefined;
332
- customerRoleArn?: string | undefined;
333
- terraformStateBucket?: string | undefined;
334
- database?: {
335
- name?: string | undefined;
336
- user?: string | undefined;
337
- } | undefined;
338
- networking?: {
339
- enableVpcEndpoints?: boolean | undefined;
340
- useCustomNetworking?: boolean | undefined;
341
- vpcCidr?: string | undefined;
342
- publicSubnetCidrs?: string | undefined;
343
- privateSubnetCidrs?: string | undefined;
344
- azCount?: "2" | "3" | undefined;
345
- customVpcId?: string | undefined;
346
- customPublicSubnetIds?: string | undefined;
347
- customPrivateSubnetIds?: string | undefined;
348
- } | undefined;
349
- security?: {
350
- workflowRunsKeyAlias?: string | undefined;
351
- useCustomSecurityGroups?: boolean | undefined;
352
- customSecurityGroups?: {
353
- workflowEngine?: string | undefined;
354
- aurora?: string | undefined;
355
- rdsProxy?: string | undefined;
356
- bffEcs?: string | undefined;
357
- bastion?: string | undefined;
358
- bffAlb?: string | undefined;
359
- } | undefined;
360
- useCustomIamPolicies?: boolean | undefined;
361
- customIamRoles?: {
362
- workflowEngineExecutionRole?: string | undefined;
363
- workflowEngineTaskRole?: string | undefined;
364
- bffEcsTaskExecutionRole?: string | undefined;
365
- bffEcsTaskRole?: string | undefined;
366
- rdsProxyRole?: string | undefined;
367
- sembixStudioMemoryRole?: string | undefined;
368
- sembixStudioNotificationRole?: string | undefined;
369
- } | undefined;
370
- } | undefined;
371
- tls?: {
372
- cloudfrontDomain?: string | undefined;
373
- cloudfrontCertArn?: string | undefined;
374
- bffAlbCertificateArn?: string | undefined;
375
- hostedZoneId?: string | undefined;
376
- } | undefined;
377
- features?: {
378
- deploySembixStudioMemory?: boolean | undefined;
379
- deploySembixStudioNotifications?: boolean | undefined;
380
- enableBffWaf?: boolean | undefined;
381
- } | undefined;
382
- frontend?: {
383
- githubAppClientId?: string | undefined;
384
- githubAppName?: string | undefined;
385
- jiraClientId?: string | undefined;
386
- } | undefined;
387
- hub?: {
388
- hubRoles?: {
389
- engineExecutionRole?: string | undefined;
390
- consumerRole?: string | undefined;
391
- } | undefined;
392
- appConfig?: {
393
- roleArn?: string | undefined;
394
- appId?: string | undefined;
395
- envId?: string | undefined;
396
- profileId?: string | undefined;
397
- } | undefined;
398
- } | undefined;
399
- }>;
93
+ }, z.core.$strip>>;
94
+ }, z.core.$strip>>;
95
+ }, z.core.$strip>;
400
96
  /**
401
97
  * Configuration loaded from YAML files.
402
98
  * All fields are optional to support partial configs.
@@ -1 +1 @@
1
- {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiJxB;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmB3B,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
1
+ {"version":3,"file":"config-schema.d.ts","sourceRoot":"","sources":["../src/config-schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAiJxB;;;GAGG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmB3B,CAAC;AAEH;;;;;;;GAOG;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D;;GAEG;AACH,MAAM,WAAW,sBAAsB;IACrC,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,EAAE,CAAC;CACnB"}
@@ -42,7 +42,7 @@ export async function promptHubIntegrationStep(skipHub) {
42
42
  if (!value)
43
43
  return true;
44
44
  const result = iamRoleArnSchema.safeParse(value);
45
- return result.success || result.error.errors[0].message;
45
+ return result.success || result.error.issues[0].message;
46
46
  },
47
47
  });
48
48
  const consumerRole = await input({
@@ -52,7 +52,7 @@ export async function promptHubIntegrationStep(skipHub) {
52
52
  if (!value)
53
53
  return true;
54
54
  const result = iamRoleArnSchema.safeParse(value);
55
- return result.success || result.error.errors[0].message;
55
+ return result.success || result.error.issues[0].message;
56
56
  },
57
57
  });
58
58
  ui.section('AppConfig Integration (Optional)');
@@ -66,7 +66,7 @@ export async function promptHubIntegrationStep(skipHub) {
66
66
  if (!value)
67
67
  return true;
68
68
  const result = iamRoleArnSchema.safeParse(value);
69
- return result.success || result.error.errors[0].message;
69
+ return result.success || result.error.issues[0].message;
70
70
  },
71
71
  });
72
72
  const appConfigAppId = await input({
@@ -84,7 +84,7 @@ export async function promptHubIntegration(githubClient, providedEnvironmentName
84
84
  if (!value)
85
85
  return true;
86
86
  const result = iamRoleArnSchema.safeParse(value);
87
- return result.success || result.error.errors[0].message;
87
+ return result.success || result.error.issues[0].message;
88
88
  },
89
89
  }), 'Hub Engine Execution Role');
90
90
  const consumerRole = await promptIfMissingOptional(cliFlags.hubConsumerRole, async () => input({
@@ -94,7 +94,7 @@ export async function promptHubIntegration(githubClient, providedEnvironmentName
94
94
  if (!value)
95
95
  return true;
96
96
  const result = iamRoleArnSchema.safeParse(value);
97
- return result.success || result.error.errors[0].message;
97
+ return result.success || result.error.issues[0].message;
98
98
  },
99
99
  }), 'Hub Consumer Role');
100
100
  ui.section('AppConfig Integration (Optional)');
@@ -108,7 +108,7 @@ export async function promptHubIntegration(githubClient, providedEnvironmentName
108
108
  if (!value)
109
109
  return true;
110
110
  const result = iamRoleArnSchema.safeParse(value);
111
- return result.success || result.error.errors[0].message;
111
+ return result.success || result.error.issues[0].message;
112
112
  },
113
113
  }), 'AppConfig Role');
114
114
  const appConfigAppId = await promptIfMissingOptional(cliFlags.hubAppconfigAppId, async () => input({
Binary file
@@ -27,7 +27,7 @@ export async function loadConfigFile(configPath) {
27
27
  }
28
28
  else {
29
29
  // Extract error messages from Zod
30
- const errors = result.error.errors.map(err => {
30
+ const errors = result.error.issues.map(err => {
31
31
  const path = err.path.join('.');
32
32
  return `${path}: ${err.message}`;
33
33
  });
@@ -305,19 +305,19 @@ function validateMergedConfig(merged, cliFlags) {
305
305
  if (cliFlags.awsAccountId !== undefined && merged.awsAccountId) {
306
306
  const result = awsAccountIdSchema.safeParse(merged.awsAccountId);
307
307
  if (!result.success) {
308
- errors.push(`--aws-account-id: ${result.error.errors[0].message}`);
308
+ errors.push(`--aws-account-id: ${result.error.issues[0].message}`);
309
309
  }
310
310
  }
311
311
  if (cliFlags.customerRoleArn !== undefined && merged.customerRoleArn) {
312
312
  const result = iamRoleArnSchema.safeParse(merged.customerRoleArn);
313
313
  if (!result.success) {
314
- errors.push(`--customer-role-arn: ${result.error.errors[0].message}`);
314
+ errors.push(`--customer-role-arn: ${result.error.issues[0].message}`);
315
315
  }
316
316
  }
317
317
  if (cliFlags.cloudfrontCertArn !== undefined && merged.tls?.cloudfrontCertArn) {
318
318
  const result = acmCertArnSchema.safeParse(merged.tls.cloudfrontCertArn);
319
319
  if (!result.success) {
320
- errors.push(`--cloudfront-cert-arn: ${result.error.errors[0].message}`);
320
+ errors.push(`--cloudfront-cert-arn: ${result.error.issues[0].message}`);
321
321
  }
322
322
  // Special check: CloudFront cert must be in us-east-1
323
323
  if (result.success && !merged.tls.cloudfrontCertArn.includes('us-east-1')) {
@@ -327,13 +327,13 @@ function validateMergedConfig(merged, cliFlags) {
327
327
  if (cliFlags.bffAlbCertArn !== undefined && merged.tls?.bffAlbCertificateArn) {
328
328
  const result = acmCertArnSchema.safeParse(merged.tls.bffAlbCertificateArn);
329
329
  if (!result.success) {
330
- errors.push(`--bff-alb-cert-arn: ${result.error.errors[0].message}`);
330
+ errors.push(`--bff-alb-cert-arn: ${result.error.issues[0].message}`);
331
331
  }
332
332
  }
333
333
  if (cliFlags.hostedZoneId !== undefined && merged.tls?.hostedZoneId) {
334
334
  const result = route53ZoneIdSchema.safeParse(merged.tls.hostedZoneId);
335
335
  if (!result.success) {
336
- errors.push(`--hosted-zone-id: ${result.error.errors[0].message}`);
336
+ errors.push(`--hosted-zone-id: ${result.error.issues[0].message}`);
337
337
  }
338
338
  }
339
339
  // Validate IAM roles from CLI flags
@@ -348,7 +348,7 @@ function validateMergedConfig(merged, cliFlags) {
348
348
  if (value) {
349
349
  const result = iamRoleArnSchema.safeParse(value);
350
350
  if (!result.success) {
351
- errors.push(`${name}: ${result.error.errors[0].message}`);
351
+ errors.push(`${name}: ${result.error.issues[0].message}`);
352
352
  }
353
353
  }
354
354
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sembix/cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "CLI tool for managing Sembix products",
5
5
  "type": "module",
6
6
  "bin": {
@@ -53,37 +53,37 @@
53
53
  "access": "public"
54
54
  },
55
55
  "dependencies": {
56
- "@inquirer/prompts": "^7.2.0",
57
- "@octokit/rest": "^21.0.2",
58
- "chalk": "^5.3.0",
59
- "commander": "^12.1.0",
60
- "dotenv": "^16.4.7",
61
- "js-yaml": "^4.1.0",
56
+ "@inquirer/prompts": "^8.0.1",
57
+ "@octokit/rest": "^22.0.1",
58
+ "chalk": "^5.6.2",
59
+ "commander": "^14.0.2",
60
+ "dotenv": "^17.2.3",
61
+ "js-yaml": "^4.1.1",
62
62
  "libsodium-wrappers": "^0.7.15",
63
- "ora": "^8.1.1",
64
- "zod": "^3.23.8"
63
+ "ora": "^9.0.0",
64
+ "zod": "^4.1.12"
65
65
  },
66
66
  "devDependencies": {
67
67
  "@semantic-release/changelog": "^6.0.3",
68
- "@semantic-release/commit-analyzer": "^13.0.0",
68
+ "@semantic-release/commit-analyzer": "^13.0.1",
69
69
  "@semantic-release/git": "^10.0.1",
70
- "@semantic-release/github": "^11.0.0",
71
- "@semantic-release/npm": "^12.0.0",
72
- "@semantic-release/release-notes-generator": "^14.0.0",
70
+ "@semantic-release/github": "^12.0.2",
71
+ "@semantic-release/npm": "^13.1.2",
72
+ "@semantic-release/release-notes-generator": "^14.1.0",
73
73
  "@types/js-yaml": "^4.0.9",
74
- "conventional-changelog-conventionalcommits": "^8.0.0",
74
+ "conventional-changelog-conventionalcommits": "^9.1.0",
75
75
  "@types/libsodium-wrappers": "^0.7.14",
76
- "@types/node": "^20.17.10",
77
- "@typescript-eslint/eslint-plugin": "^8.0.0",
78
- "@typescript-eslint/parser": "^8.0.0",
79
- "@vitest/coverage-v8": "^4.0.12",
80
- "@vitest/ui": "^4.0.12",
81
- "eslint": "^9.0.0",
76
+ "@types/node": "^24.10.1",
77
+ "@typescript-eslint/eslint-plugin": "^8.47.0",
78
+ "@typescript-eslint/parser": "^8.47.0",
79
+ "@vitest/coverage-v8": "^4.0.13",
80
+ "@vitest/ui": "^4.0.13",
81
+ "eslint": "^9.39.1",
82
82
  "happy-dom": "^20.0.10",
83
- "semantic-release": "^24.0.0",
84
- "tsx": "^4.19.2",
85
- "typescript": "^5.8.0",
86
- "vitest": "^4.0.12"
83
+ "semantic-release": "^25.0.2",
84
+ "tsx": "^4.20.6",
85
+ "typescript": "^5.9.3",
86
+ "vitest": "^4.0.13"
87
87
  },
88
88
  "engines": {
89
89
  "node": ">=20.0.0"
Binary file