@storm-software/cloudflare-tools 0.63.25 → 0.63.27

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.
Files changed (37) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/README.md +1 -1
  3. package/dist/{chunk-PUKUSS7F.mjs → chunk-3M2F4JUW.mjs} +3 -3
  4. package/dist/{chunk-VKJE4IV6.mjs → chunk-446Z4I2E.mjs} +11 -8
  5. package/dist/{chunk-AG2PERXB.mjs → chunk-4FMFQGIC.mjs} +2 -2
  6. package/dist/{chunk-IPQFZI7C.mjs → chunk-6AC4HGUU.mjs} +35 -3
  7. package/dist/{chunk-HKXGZZ4U.js → chunk-6SVJXZBV.js} +138 -135
  8. package/dist/{chunk-46LEVY35.js → chunk-AVDLSZLA.js} +77 -45
  9. package/dist/{chunk-VI7OHBFH.js → chunk-CCIXQ6JW.js} +16 -16
  10. package/dist/{chunk-DTL2T3BP.js → chunk-G2NJAIMM.js} +3 -3
  11. package/dist/{chunk-SJE3AZ5R.mjs → chunk-MB2PUV2U.mjs} +1 -1
  12. package/dist/{chunk-5ENKRUAU.js → chunk-N5LTPQ53.js} +89 -78
  13. package/dist/{chunk-2WZ5MDJJ.js → chunk-NK6XHZKN.js} +12 -12
  14. package/dist/{chunk-IMASMF4S.js → chunk-NTPBAB34.js} +2 -2
  15. package/dist/{chunk-EPBMBQ4K.mjs → chunk-OKD45PFS.mjs} +3 -3
  16. package/dist/{chunk-E2ZPWAPC.mjs → chunk-ZNYU5YAQ.mjs} +14 -3
  17. package/dist/executors.js +5 -5
  18. package/dist/executors.mjs +5 -5
  19. package/dist/generators.js +5 -5
  20. package/dist/generators.mjs +4 -4
  21. package/dist/index.js +8 -8
  22. package/dist/index.mjs +7 -7
  23. package/dist/src/executors/cloudflare-publish/executor.js +3 -3
  24. package/dist/src/executors/cloudflare-publish/executor.mjs +3 -3
  25. package/dist/src/executors/r2-upload-publish/executor.js +5 -5
  26. package/dist/src/executors/r2-upload-publish/executor.mjs +4 -4
  27. package/dist/src/executors/serve/executor.js +4 -4
  28. package/dist/src/executors/serve/executor.mjs +3 -3
  29. package/dist/src/generators/init/generator.js +2 -2
  30. package/dist/src/generators/init/generator.mjs +1 -1
  31. package/dist/src/generators/worker/generator.js +5 -5
  32. package/dist/src/generators/worker/generator.mjs +4 -4
  33. package/dist/src/utils/index.js +3 -3
  34. package/dist/src/utils/index.mjs +2 -2
  35. package/dist/src/utils/r2-bucket-helpers.js +3 -3
  36. package/dist/src/utils/r2-bucket-helpers.mjs +2 -2
  37. package/package.json +2 -2
@@ -1,4 +1,4 @@
1
- "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/utilities/correct-paths.ts
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } else { var newObj = {}; if (obj != null) { for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { newObj[key] = obj[key]; } } } newObj.default = obj; return newObj; } } function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }// ../config-tools/src/utilities/correct-paths.ts
2
2
  var _DRIVE_LETTER_START_RE = /^[A-Za-z]:\//;
3
3
  function normalizeWindowsPath(input = "") {
4
4
  if (!input) {
@@ -265,22 +265,22 @@ If this sounds interesting, and you would like to help us in creating the next g
265
265
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
266
266
 
267
267
  // ../config/src/schema.ts
268
- var _zod = require('zod'); var _zod2 = _interopRequireDefault(_zod);
269
- var DarkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
270
- var LightColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
271
- var BrandColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
272
- var AlternateColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
273
- var AccentColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
274
- var LinkColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
275
- var HelpColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
276
- var SuccessColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
277
- var InfoColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
278
- var WarningColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
279
- var DangerColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
280
- var FatalColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
281
- var PositiveColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
282
- var NegativeColorSchema = _zod2.default.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
283
- var DarkThemeColorConfigSchema = _zod2.default.object({
268
+ var _v4 = require('zod/v4'); var z = _interopRequireWildcard(_v4);
269
+ var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
270
+ var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
271
+ var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
272
+ var AlternateColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The alternate brand specific color of the workspace");
273
+ var AccentColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The secondary brand specific color of the workspace");
274
+ var LinkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The color used to display hyperlink text");
275
+ var HelpColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#8256D0").describe("The second brand specific color of the workspace");
276
+ var SuccessColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#12B66A").describe("The success color of the workspace");
277
+ var InfoColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#0070E0").describe("The informational color of the workspace");
278
+ var WarningColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#fcc419").describe("The warning color of the workspace");
279
+ var DangerColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#D8314A").describe("The danger color of the workspace");
280
+ var FatalColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).optional().describe("The fatal color of the workspace");
281
+ var PositiveColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#4ade80").describe("The positive number color of the workspace");
282
+ var NegativeColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#ef4444").describe("The negative number color of the workspace");
283
+ var DarkThemeColorConfigSchema = z.object({
284
284
  foreground: LightColorSchema,
285
285
  background: DarkColorSchema,
286
286
  brand: BrandColorSchema,
@@ -296,7 +296,7 @@ var DarkThemeColorConfigSchema = _zod2.default.object({
296
296
  positive: PositiveColorSchema,
297
297
  negative: NegativeColorSchema
298
298
  });
299
- var LightThemeColorConfigSchema = _zod2.default.object({
299
+ var LightThemeColorConfigSchema = z.object({
300
300
  foreground: DarkColorSchema,
301
301
  background: LightColorSchema,
302
302
  brand: BrandColorSchema,
@@ -312,11 +312,11 @@ var LightThemeColorConfigSchema = _zod2.default.object({
312
312
  positive: PositiveColorSchema,
313
313
  negative: NegativeColorSchema
314
314
  });
315
- var MultiThemeColorConfigSchema = _zod2.default.object({
315
+ var MultiThemeColorConfigSchema = z.object({
316
316
  dark: DarkThemeColorConfigSchema,
317
317
  light: LightThemeColorConfigSchema
318
318
  });
319
- var SingleThemeColorConfigSchema = _zod2.default.object({
319
+ var SingleThemeColorConfigSchema = z.object({
320
320
  dark: DarkColorSchema,
321
321
  light: LightColorSchema,
322
322
  brand: BrandColorSchema,
@@ -332,8 +332,8 @@ var SingleThemeColorConfigSchema = _zod2.default.object({
332
332
  positive: PositiveColorSchema,
333
333
  negative: NegativeColorSchema
334
334
  });
335
- var RegistryUrlConfigSchema = _zod2.default.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
336
- var RegistryConfigSchema = _zod2.default.object({
335
+ var RegistryUrlConfigSchema = z.string().trim().toLowerCase().url().optional().describe("A remote registry URL used to publish distributable packages");
336
+ var RegistryConfigSchema = z.object({
337
337
  github: RegistryUrlConfigSchema,
338
338
  npm: RegistryUrlConfigSchema,
339
339
  cargo: RegistryUrlConfigSchema,
@@ -343,111 +343,122 @@ var RegistryConfigSchema = _zod2.default.object({
343
343
  var ColorConfigSchema = SingleThemeColorConfigSchema.or(
344
344
  MultiThemeColorConfigSchema
345
345
  ).describe("Colors used for various workspace elements");
346
- var ColorConfigMapSchema = _zod2.default.union([
347
- _zod2.default.object({ base: ColorConfigSchema }),
348
- _zod2.default.record(_zod2.default.string(), ColorConfigSchema)
346
+ var ColorConfigMapSchema = z.union([
347
+ z.object({ base: ColorConfigSchema }),
348
+ z.record(z.string(), ColorConfigSchema)
349
349
  ]);
350
- var ExtendsItemSchema = _zod2.default.string().trim().describe(
350
+ var ExtendsItemSchema = z.string().trim().describe(
351
351
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
352
352
  );
353
353
  var ExtendsSchema = ExtendsItemSchema.or(
354
- _zod2.default.array(ExtendsItemSchema)
354
+ z.array(ExtendsItemSchema)
355
355
  ).describe(
356
356
  "The path to a base config file to use as a configuration preset file. Documentation can be found at https://github.com/unjs/c12#extending-configuration."
357
357
  );
358
- var WorkspaceBotConfigSchema = _zod2.default.object({
359
- name: _zod2.default.string().trim().default("stormie-bot").describe(
358
+ var WorkspaceBotConfigSchema = z.object({
359
+ name: z.string().trim().default("stormie-bot").describe(
360
360
  "The workspace bot user's name (this is the bot that will be used to perform various tasks)"
361
361
  ),
362
- email: _zod2.default.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
362
+ email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
363
363
  }).describe(
364
364
  "The workspace's bot user's config used to automated various operations tasks"
365
365
  );
366
- var WorkspaceReleaseConfigSchema = _zod2.default.object({
367
- banner: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
366
+ var WorkspaceReleaseConfigSchema = z.object({
367
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe(
368
368
  "A URL to a banner image used to display the workspace's release"
369
369
  ),
370
- header: _zod2.default.string().trim().optional().describe(
370
+ header: z.string().trim().optional().describe(
371
371
  "A header message appended to the start of the workspace's release notes"
372
372
  ),
373
- footer: _zod2.default.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
373
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe(
374
374
  "A footer message appended to the end of the workspace's release notes"
375
375
  )
376
376
  }).describe("The workspace's release config used during the release process");
377
- var WorkspaceAccountConfigSchema = _zod2.default.object({
378
- twitter: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
379
- discord: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
380
- telegram: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
381
- slack: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
382
- medium: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
383
- github: _zod2.default.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
377
+ var WorkspaceAccountConfigSchema = z.object({
378
+ twitter: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TWITTER).describe("A Twitter/X account associated with the organization/project"),
379
+ discord: z.string().trim().default(STORM_DEFAULT_ACCOUNT_DISCORD).describe("A Discord account associated with the organization/project"),
380
+ telegram: z.string().trim().default(STORM_DEFAULT_ACCOUNT_TELEGRAM).describe("A Telegram account associated with the organization/project"),
381
+ slack: z.string().trim().default(STORM_DEFAULT_ACCOUNT_SLACK).describe("A Slack account associated with the organization/project"),
382
+ medium: z.string().trim().default(STORM_DEFAULT_ACCOUNT_MEDIUM).describe("A Medium account associated with the organization/project"),
383
+ github: z.string().trim().default(STORM_DEFAULT_ACCOUNT_GITHUB).describe("A GitHub account associated with the organization/project")
384
384
  }).describe(
385
385
  "The workspace's account config used to store various social media links"
386
386
  );
387
- var WorkspaceDirectoryConfigSchema = _zod2.default.object({
388
- cache: _zod2.default.string().trim().optional().describe(
387
+ var WorkspaceDirectoryConfigSchema = z.object({
388
+ cache: z.string().trim().optional().describe(
389
389
  "The directory used to store the environment's cached file data"
390
390
  ),
391
- data: _zod2.default.string().trim().optional().describe("The directory used to store the environment's data files"),
392
- config: _zod2.default.string().trim().optional().describe(
391
+ data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
392
+ config: z.string().trim().optional().describe(
393
393
  "The directory used to store the environment's configuration files"
394
394
  ),
395
- temp: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
396
- log: _zod2.default.string().trim().optional().describe("The directory used to store the environment's temp files"),
397
- build: _zod2.default.string().trim().default("dist").describe(
395
+ temp: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
396
+ log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
397
+ build: z.string().trim().default("dist").describe(
398
398
  "The directory used to store the workspace's distributable files after a build (relative to the workspace root)"
399
399
  )
400
400
  }).describe(
401
401
  "Various directories used by the workspace to store data, cache, and configuration files"
402
402
  );
403
- var errorConfigSchema = _zod2.default.object({
404
- codesFile: _zod2.default.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
405
- url: _zod2.default.string().trim().url().optional().describe(
403
+ var errorConfigSchema = z.object({
404
+ codesFile: z.string().trim().default(STORM_DEFAULT_ERROR_CODES_FILE).describe("The path to the workspace's error codes JSON file"),
405
+ url: z.string().trim().url().optional().describe(
406
406
  "A URL to a page that looks up the workspace's error messages given a specific error code"
407
407
  )
408
408
  }).describe("The workspace's error config used during the error process");
409
- var stormWorkspaceConfigSchema = _zod2.default.object({
410
- $schema: _zod2.default.string().trim().default(
409
+ var organizationConfigSchema = z.object({
410
+ name: z.string().trim().describe("The name of the organization"),
411
+ description: z.string().trim().optional().describe("A description of the organization"),
412
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
413
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
414
+ url: z.string().trim().url().optional().describe(
415
+ "A URL to a page that provides more information about the organization"
416
+ )
417
+ }).describe("The workspace's organization details");
418
+ var stormWorkspaceConfigSchema = z.object({
419
+ $schema: z.string().trim().default(
411
420
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
412
421
  ).optional().nullish().describe(
413
422
  "The URL to the JSON schema file that describes the Storm configuration file"
414
423
  ),
415
424
  extends: ExtendsSchema.optional(),
416
- name: _zod2.default.string().trim().toLowerCase().optional().describe(
425
+ name: z.string().trim().toLowerCase().optional().describe(
417
426
  "The name of the service/package/scope using this configuration"
418
427
  ),
419
- namespace: _zod2.default.string().trim().toLowerCase().optional().describe("The namespace of the package"),
420
- organization: _zod2.default.string().trim().default("storm-software").describe("The organization of the workspace"),
421
- repository: _zod2.default.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
422
- license: _zod2.default.string().trim().default("Apache-2.0").describe("The license type of the package"),
423
- homepage: _zod2.default.string().trim().url().optional().describe("The homepage of the workspace"),
424
- docs: _zod2.default.string().trim().url().optional().describe("The documentation site for the workspace"),
425
- portal: _zod2.default.string().trim().url().optional().describe("The development portal site for the workspace"),
426
- licensing: _zod2.default.string().trim().url().optional().describe("The licensing site for the workspace"),
427
- contact: _zod2.default.string().trim().url().optional().describe("The contact site for the workspace"),
428
- support: _zod2.default.string().trim().url().optional().describe(
428
+ namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
429
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
430
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
431
+ ),
432
+ repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
433
+ license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
434
+ homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
435
+ docs: z.string().trim().url().optional().describe("The documentation site for the workspace"),
436
+ portal: z.string().trim().url().optional().describe("The development portal site for the workspace"),
437
+ licensing: z.string().trim().url().optional().describe("The licensing site for the workspace"),
438
+ contact: z.string().trim().url().optional().describe("The contact site for the workspace"),
439
+ support: z.string().trim().url().optional().describe(
429
440
  "The support site for the workspace. If not provided, this is defaulted to the `contact` config value"
430
441
  ),
431
- branch: _zod2.default.string().trim().default("main").describe("The branch of the workspace"),
432
- preid: _zod2.default.string().optional().describe("A tag specifying the version pre-release identifier"),
433
- owner: _zod2.default.string().trim().default("@storm-software/admin").describe("The owner of the package"),
442
+ branch: z.string().trim().default("main").describe("The branch of the workspace"),
443
+ preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
444
+ owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
434
445
  bot: WorkspaceBotConfigSchema,
435
446
  release: WorkspaceReleaseConfigSchema,
436
447
  account: WorkspaceAccountConfigSchema,
437
448
  error: errorConfigSchema,
438
- mode: _zod2.default.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
439
- workspaceRoot: _zod2.default.string().trim().describe("The root directory of the workspace"),
440
- externalPackagePatterns: _zod2.default.array(_zod2.default.string()).default([]).describe(
449
+ mode: z.enum(["development", "staging", "production"]).default("production").describe("The current runtime environment mode for the package"),
450
+ workspaceRoot: z.string().trim().describe("The root directory of the workspace"),
451
+ externalPackagePatterns: z.array(z.string()).default([]).describe(
441
452
  "The build will use these package patterns to determine if they should be external to the bundle"
442
453
  ),
443
- skipCache: _zod2.default.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
454
+ skipCache: z.boolean().default(false).describe("Should all known types of workspace caching be skipped?"),
444
455
  directories: WorkspaceDirectoryConfigSchema,
445
- packageManager: _zod2.default.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
456
+ packageManager: z.enum(["npm", "yarn", "pnpm", "bun"]).default("npm").describe(
446
457
  "The JavaScript/TypeScript package manager used by the repository"
447
458
  ),
448
- timezone: _zod2.default.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
449
- locale: _zod2.default.string().trim().default("en-US").describe("The default locale of the workspace"),
450
- logLevel: _zod2.default.enum([
459
+ timezone: z.string().trim().default("America/New_York").describe("The default timezone of the workspace"),
460
+ locale: z.string().trim().default("en-US").describe("The default locale of the workspace"),
461
+ logLevel: z.enum([
451
462
  "silent",
452
463
  "fatal",
453
464
  "error",
@@ -460,17 +471,17 @@ var stormWorkspaceConfigSchema = _zod2.default.object({
460
471
  ]).default("info").describe(
461
472
  "The log level used to filter out lower priority log messages. If not provided, this is defaulted using the `environment` config value (if `environment` is set to `production` then `level` is `error`, else `level` is `debug`)."
462
473
  ),
463
- skipConfigLogging: _zod2.default.boolean().optional().describe(
474
+ skipConfigLogging: z.boolean().optional().describe(
464
475
  "Should the logging of the current Storm Workspace configuration be skipped?"
465
476
  ),
466
477
  registry: RegistryConfigSchema,
467
- configFile: _zod2.default.string().trim().nullable().default(null).describe(
478
+ configFile: z.string().trim().nullable().default(null).describe(
468
479
  "The filepath of the Storm config. When this field is null, no config file was found in the current workspace."
469
480
  ),
470
481
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
471
482
  "Storm theme config values used for styling various package elements"
472
483
  ),
473
- extensions: _zod2.default.record(_zod2.default.any()).optional().default({}).describe("Configuration of each used extension")
484
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
474
485
  }).describe(
475
486
  "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
476
487
  );
@@ -1,9 +1,9 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } } function _optionalChain(ops) { let lastAccessLHS = undefined; let value = ops[0]; let i = 1; while (i < ops.length) { const op = ops[i]; const fn = ops[i + 1]; i += 2; if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) { return undefined; } if (op === 'access' || op === 'optionalAccess') { lastAccessLHS = value; value = fn(value); } else if (op === 'call' || op === 'optionalCall') { value = fn((...args) => value.call(lastAccessLHS, ...args)); lastAccessLHS = undefined; } } return value; }
2
2
 
3
- var _chunkIMASMF4Sjs = require('./chunk-IMASMF4S.js');
3
+ var _chunkNTPBAB34js = require('./chunk-NTPBAB34.js');
4
4
 
5
5
 
6
- var _chunk46LEVY35js = require('./chunk-46LEVY35.js');
6
+ var _chunkAVDLSZLAjs = require('./chunk-AVDLSZLA.js');
7
7
 
8
8
 
9
9
 
@@ -12,7 +12,7 @@ var _chunk46LEVY35js = require('./chunk-46LEVY35.js');
12
12
 
13
13
 
14
14
 
15
- var _chunk5ENKRUAUjs = require('./chunk-5ENKRUAU.js');
15
+ var _chunkN5LTPQ53js = require('./chunk-N5LTPQ53.js');
16
16
 
17
17
  // src/generators/worker/generator.ts
18
18
 
@@ -45,20 +45,20 @@ var vitestScript = `"test": "vitest run"`;
45
45
 
46
46
  // src/generators/worker/generator.ts
47
47
  async function applicationGenerator(tree, schema) {
48
- const stopwatch = _chunk5ENKRUAUjs.getStopwatch.call(void 0, "Storm Worker generator");
48
+ const stopwatch = _chunkN5LTPQ53js.getStopwatch.call(void 0, "Storm Worker generator");
49
49
  let config;
50
50
  try {
51
- _chunk5ENKRUAUjs.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
51
+ _chunkN5LTPQ53js.writeInfo.call(void 0, `\u26A1 Running the Storm Worker generator...
52
52
 
53
53
  `, config);
54
- const workspaceRoot = _chunk5ENKRUAUjs.findWorkspaceRoot.call(void 0, );
55
- _chunk5ENKRUAUjs.writeDebug.call(void 0,
54
+ const workspaceRoot = _chunkN5LTPQ53js.findWorkspaceRoot.call(void 0, );
55
+ _chunkN5LTPQ53js.writeDebug.call(void 0,
56
56
  `Loading the Storm Config from environment variables and storm.json file...
57
57
  - workspaceRoot: ${workspaceRoot}`,
58
58
  config
59
59
  );
60
- config = await _chunk46LEVY35js.getConfig.call(void 0, workspaceRoot);
61
- _chunk5ENKRUAUjs.writeTrace.call(void 0,
60
+ config = await _chunkAVDLSZLAjs.getConfig.call(void 0, workspaceRoot);
61
+ _chunkN5LTPQ53js.writeTrace.call(void 0,
62
62
  `Loaded Storm config into env:
63
63
  ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[key])}`).join("\n")}`,
64
64
  config
@@ -66,7 +66,7 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
66
66
  const options = await normalizeOptions(tree, schema, config);
67
67
  const tasks = [];
68
68
  tasks.push(
69
- await _chunkIMASMF4Sjs.generator_default.call(void 0, tree, {
69
+ await _chunkNTPBAB34js.generator_default.call(void 0, tree, {
70
70
  ...options,
71
71
  skipFormat: true
72
72
  })
@@ -134,11 +134,11 @@ ${Object.keys(process.env).map((key) => ` - ${key}=${JSON.stringify(process.env[
134
134
  return _devkit.runTasksInSerial.call(void 0, ...tasks);
135
135
  } catch (error) {
136
136
  return () => {
137
- _chunk5ENKRUAUjs.writeFatal.call(void 0,
137
+ _chunkN5LTPQ53js.writeFatal.call(void 0,
138
138
  "A fatal error occurred while running the generator - the process was forced to terminate",
139
139
  config
140
140
  );
141
- _chunk5ENKRUAUjs.writeError.call(void 0,
141
+ _chunkN5LTPQ53js.writeError.call(void 0,
142
142
  `An exception was thrown in the generator's process
143
143
  - Details: ${error.message}
144
144
  - Stacktrace: ${error.stack}`,
@@ -7,7 +7,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
7
7
  "package.json"(exports, module) {
8
8
  module.exports = {
9
9
  name: "@storm-software/cloudflare-tools",
10
- version: "0.63.24",
10
+ version: "0.63.26",
11
11
  description: "A Nx plugin package that contains various executors, generators, and utilities that assist in managing Cloudflare services.",
12
12
  repository: {
13
13
  type: "github",
@@ -175,7 +175,7 @@ var require_package = _chunkMCKGQKYUjs.__commonJS.call(void 0, {
175
175
  nx: "catalog:",
176
176
  tsup: "catalog:",
177
177
  untyped: "catalog:",
178
- wrangler: "^4.20.1"
178
+ wrangler: "^4.20.3"
179
179
  },
180
180
  publishConfig: {
181
181
  access: "public"
@@ -1,21 +1,21 @@
1
1
  import {
2
2
  getInternalDependencies,
3
3
  r2UploadFile
4
- } from "./chunk-SJE3AZ5R.mjs";
4
+ } from "./chunk-MB2PUV2U.mjs";
5
5
  import {
6
6
  createCliOptions,
7
7
  getPackageInfo
8
8
  } from "./chunk-RH2IXKSC.mjs";
9
9
  import {
10
10
  getConfig
11
- } from "./chunk-IPQFZI7C.mjs";
11
+ } from "./chunk-6AC4HGUU.mjs";
12
12
  import {
13
13
  findWorkspaceRoot,
14
14
  writeDebug,
15
15
  writeInfo,
16
16
  writeSuccess,
17
17
  writeWarning
18
- } from "./chunk-E2ZPWAPC.mjs";
18
+ } from "./chunk-ZNYU5YAQ.mjs";
19
19
 
20
20
  // src/executors/r2-upload-publish/executor.ts
21
21
  import { S3 } from "@aws-sdk/client-s3";
@@ -265,7 +265,7 @@ If this sounds interesting, and you would like to help us in creating the next g
265
265
  var STORM_DEFAULT_ERROR_CODES_FILE = "tools/errors/codes.json";
266
266
 
267
267
  // ../config/src/schema.ts
268
- import z from "zod";
268
+ import * as z from "zod/v4";
269
269
  var DarkColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1d1e22").describe("The dark background color of the workspace");
270
270
  var LightColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#f4f4f5").describe("The light background color of the workspace");
271
271
  var BrandColorSchema = z.string().trim().toLowerCase().regex(/^#([0-9a-f]{3}){1,2}$/i).length(7).default("#1fb2a6").describe("The primary brand specific color of the workspace");
@@ -406,6 +406,15 @@ var errorConfigSchema = z.object({
406
406
  "A URL to a page that looks up the workspace's error messages given a specific error code"
407
407
  )
408
408
  }).describe("The workspace's error config used during the error process");
409
+ var organizationConfigSchema = z.object({
410
+ name: z.string().trim().describe("The name of the organization"),
411
+ description: z.string().trim().optional().describe("A description of the organization"),
412
+ logo: z.string().trim().url().optional().describe("A URL to the organization's logo image"),
413
+ icon: z.string().trim().url().optional().describe("A URL to the organization's icon image"),
414
+ url: z.string().trim().url().optional().describe(
415
+ "A URL to a page that provides more information about the organization"
416
+ )
417
+ }).describe("The workspace's organization details");
409
418
  var stormWorkspaceConfigSchema = z.object({
410
419
  $schema: z.string().trim().default(
411
420
  "https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json"
@@ -417,7 +426,9 @@ var stormWorkspaceConfigSchema = z.object({
417
426
  "The name of the service/package/scope using this configuration"
418
427
  ),
419
428
  namespace: z.string().trim().toLowerCase().optional().describe("The namespace of the package"),
420
- organization: z.string().trim().default("storm-software").describe("The organization of the workspace"),
429
+ organization: organizationConfigSchema.or(z.string().trim().describe("The organization of the workspace")).optional().describe(
430
+ "The organization of the workspace. This can be a string or an object containing the organization's details"
431
+ ),
421
432
  repository: z.string().trim().optional().describe("The repo URL of the workspace (i.e. GitHub)"),
422
433
  license: z.string().trim().default("Apache-2.0").describe("The license type of the package"),
423
434
  homepage: z.string().trim().url().optional().describe("The homepage of the workspace"),
@@ -470,7 +481,7 @@ var stormWorkspaceConfigSchema = z.object({
470
481
  colors: ColorConfigSchema.or(ColorConfigMapSchema).describe(
471
482
  "Storm theme config values used for styling various package elements"
472
483
  ),
473
- extensions: z.record(z.any()).optional().default({}).describe("Configuration of each used extension")
484
+ extensions: z.record(z.string(), z.any()).optional().default({}).describe("Configuration of each used extension")
474
485
  }).describe(
475
486
  "Storm Workspace config values used during various dev-ops processes. This type is a combination of the StormPackageConfig and StormProject types. It represents the config of the entire monorepo."
476
487
  );
package/dist/executors.js CHANGED
@@ -1,9 +1,9 @@
1
1
  "use strict";require('./chunk-XO66D74Z.js');
2
2
  require('./chunk-T2OGA6MB.js');
3
- require('./chunk-HKXGZZ4U.js');
4
- require('./chunk-VI7OHBFH.js');
5
- require('./chunk-DTL2T3BP.js');
3
+ require('./chunk-6SVJXZBV.js');
4
+ require('./chunk-CCIXQ6JW.js');
5
+ require('./chunk-G2NJAIMM.js');
6
6
  require('./chunk-KTFMIXUN.js');
7
- require('./chunk-46LEVY35.js');
8
- require('./chunk-5ENKRUAU.js');
7
+ require('./chunk-AVDLSZLA.js');
8
+ require('./chunk-N5LTPQ53.js');
9
9
  require('./chunk-MCKGQKYU.js');
@@ -1,9 +1,9 @@
1
1
  import "./chunk-YSCEY447.mjs";
2
2
  import "./chunk-YKB65IP2.mjs";
3
- import "./chunk-VKJE4IV6.mjs";
4
- import "./chunk-EPBMBQ4K.mjs";
5
- import "./chunk-SJE3AZ5R.mjs";
3
+ import "./chunk-446Z4I2E.mjs";
4
+ import "./chunk-OKD45PFS.mjs";
5
+ import "./chunk-MB2PUV2U.mjs";
6
6
  import "./chunk-RH2IXKSC.mjs";
7
- import "./chunk-IPQFZI7C.mjs";
8
- import "./chunk-E2ZPWAPC.mjs";
7
+ import "./chunk-6AC4HGUU.mjs";
8
+ import "./chunk-ZNYU5YAQ.mjs";
9
9
  import "./chunk-B7N6WOYD.mjs";
@@ -2,17 +2,17 @@
2
2
 
3
3
 
4
4
 
5
- var _chunk2WZ5MDJJjs = require('./chunk-2WZ5MDJJ.js');
5
+ var _chunkNK6XHZKNjs = require('./chunk-NK6XHZKN.js');
6
6
 
7
7
 
8
8
 
9
- var _chunkIMASMF4Sjs = require('./chunk-IMASMF4S.js');
10
- require('./chunk-46LEVY35.js');
11
- require('./chunk-5ENKRUAU.js');
9
+ var _chunkNTPBAB34js = require('./chunk-NTPBAB34.js');
10
+ require('./chunk-AVDLSZLA.js');
11
+ require('./chunk-N5LTPQ53.js');
12
12
  require('./chunk-MCKGQKYU.js');
13
13
 
14
14
 
15
15
 
16
16
 
17
17
 
18
- exports.applicationGenerator = _chunk2WZ5MDJJjs.applicationGenerator; exports.applicationSchematic = _chunk2WZ5MDJJjs.applicationSchematic; exports.initGenerator = _chunkIMASMF4Sjs.initGenerator; exports.initSchematic = _chunkIMASMF4Sjs.initSchematic;
18
+ exports.applicationGenerator = _chunkNK6XHZKNjs.applicationGenerator; exports.applicationSchematic = _chunkNK6XHZKNjs.applicationSchematic; exports.initGenerator = _chunkNTPBAB34js.initGenerator; exports.initSchematic = _chunkNTPBAB34js.initSchematic;
@@ -2,13 +2,13 @@ import "./chunk-3J7KBHMJ.mjs";
2
2
  import {
3
3
  applicationGenerator,
4
4
  applicationSchematic
5
- } from "./chunk-PUKUSS7F.mjs";
5
+ } from "./chunk-3M2F4JUW.mjs";
6
6
  import {
7
7
  initGenerator,
8
8
  initSchematic
9
- } from "./chunk-AG2PERXB.mjs";
10
- import "./chunk-IPQFZI7C.mjs";
11
- import "./chunk-E2ZPWAPC.mjs";
9
+ } from "./chunk-4FMFQGIC.mjs";
10
+ import "./chunk-6AC4HGUU.mjs";
11
+ import "./chunk-ZNYU5YAQ.mjs";
12
12
  import "./chunk-B7N6WOYD.mjs";
13
13
  export {
14
14
  applicationGenerator,
package/dist/index.js CHANGED
@@ -3,25 +3,25 @@ require('./chunk-DHBG5ASJ.js');
3
3
 
4
4
 
5
5
 
6
- var _chunk2WZ5MDJJjs = require('./chunk-2WZ5MDJJ.js');
6
+ var _chunkNK6XHZKNjs = require('./chunk-NK6XHZKN.js');
7
7
 
8
8
 
9
9
 
10
- var _chunkIMASMF4Sjs = require('./chunk-IMASMF4S.js');
10
+ var _chunkNTPBAB34js = require('./chunk-NTPBAB34.js');
11
11
  require('./chunk-CVGPWUNP.js');
12
12
  require('./chunk-T2OGA6MB.js');
13
- require('./chunk-HKXGZZ4U.js');
14
- require('./chunk-VI7OHBFH.js');
13
+ require('./chunk-6SVJXZBV.js');
14
+ require('./chunk-CCIXQ6JW.js');
15
15
 
16
16
 
17
17
 
18
- var _chunkDTL2T3BPjs = require('./chunk-DTL2T3BP.js');
18
+ var _chunkG2NJAIMMjs = require('./chunk-G2NJAIMM.js');
19
19
 
20
20
 
21
21
 
22
22
  var _chunkKTFMIXUNjs = require('./chunk-KTFMIXUN.js');
23
- require('./chunk-46LEVY35.js');
24
- require('./chunk-5ENKRUAU.js');
23
+ require('./chunk-AVDLSZLA.js');
24
+ require('./chunk-N5LTPQ53.js');
25
25
  require('./chunk-MCKGQKYU.js');
26
26
 
27
27
  // src/plugins/index.ts
@@ -162,4 +162,4 @@ function createPackageJson(projectJsonPath, workspaceRoot) {
162
162
 
163
163
 
164
164
 
165
- exports.applicationGenerator = _chunk2WZ5MDJJjs.applicationGenerator; exports.applicationSchematic = _chunk2WZ5MDJJjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkDTL2T3BPjs.getInternalDependencies; exports.initGenerator = _chunkIMASMF4Sjs.initGenerator; exports.initSchematic = _chunkIMASMF4Sjs.initSchematic; exports.name = name; exports.r2UploadFile = _chunkDTL2T3BPjs.r2UploadFile;
165
+ exports.applicationGenerator = _chunkNK6XHZKNjs.applicationGenerator; exports.applicationSchematic = _chunkNK6XHZKNjs.applicationSchematic; exports.createNodesV2 = createNodesV2; exports.getInternalDependencies = _chunkG2NJAIMMjs.getInternalDependencies; exports.initGenerator = _chunkNTPBAB34js.initGenerator; exports.initSchematic = _chunkNTPBAB34js.initSchematic; exports.name = name; exports.r2UploadFile = _chunkG2NJAIMMjs.r2UploadFile;
package/dist/index.mjs CHANGED
@@ -3,25 +3,25 @@ import "./chunk-3J7KBHMJ.mjs";
3
3
  import {
4
4
  applicationGenerator,
5
5
  applicationSchematic
6
- } from "./chunk-PUKUSS7F.mjs";
6
+ } from "./chunk-3M2F4JUW.mjs";
7
7
  import {
8
8
  initGenerator,
9
9
  initSchematic
10
- } from "./chunk-AG2PERXB.mjs";
10
+ } from "./chunk-4FMFQGIC.mjs";
11
11
  import "./chunk-7Z5PILRU.mjs";
12
12
  import "./chunk-YKB65IP2.mjs";
13
- import "./chunk-VKJE4IV6.mjs";
14
- import "./chunk-EPBMBQ4K.mjs";
13
+ import "./chunk-446Z4I2E.mjs";
14
+ import "./chunk-OKD45PFS.mjs";
15
15
  import {
16
16
  getInternalDependencies,
17
17
  r2UploadFile
18
- } from "./chunk-SJE3AZ5R.mjs";
18
+ } from "./chunk-MB2PUV2U.mjs";
19
19
  import {
20
20
  ProjectTagConstants,
21
21
  addProjectTag
22
22
  } from "./chunk-RH2IXKSC.mjs";
23
- import "./chunk-IPQFZI7C.mjs";
24
- import "./chunk-E2ZPWAPC.mjs";
23
+ import "./chunk-6AC4HGUU.mjs";
24
+ import "./chunk-ZNYU5YAQ.mjs";
25
25
  import "./chunk-B7N6WOYD.mjs";
26
26
 
27
27
  // src/plugins/index.ts
@@ -1,10 +1,10 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
3
  var _chunkT2OGA6MBjs = require('../../../chunk-T2OGA6MB.js');
4
- require('../../../chunk-HKXGZZ4U.js');
4
+ require('../../../chunk-6SVJXZBV.js');
5
5
  require('../../../chunk-KTFMIXUN.js');
6
- require('../../../chunk-46LEVY35.js');
7
- require('../../../chunk-5ENKRUAU.js');
6
+ require('../../../chunk-AVDLSZLA.js');
7
+ require('../../../chunk-N5LTPQ53.js');
8
8
  require('../../../chunk-MCKGQKYU.js');
9
9
 
10
10