@storm-software/untyped 0.11.17 → 0.11.19

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/README.md CHANGED
@@ -21,7 +21,7 @@ This package is part of the <b>⚡Storm-Ops</b> monorepo. The Storm-Ops packages
21
21
 
22
22
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
23
23
 
24
- [![Version](https://img.shields.io/badge/version-0.11.15-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
24
+ [![Version](https://img.shields.io/badge/version-0.11.18-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://prettier.io/)&nbsp;[![Nx](https://img.shields.io/badge/Nx-17.0.2-lightgrey?style=for-the-badge&logo=nx&logoWidth=20&&color=1fb2a6)](http://nx.dev/)&nbsp;[![NextJs](https://img.shields.io/badge/Next.js-14.0.2-lightgrey?style=for-the-badge&logo=nextdotjs&logoWidth=20&color=1fb2a6)](https://nextjs.org/)&nbsp;[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg?style=for-the-badge&logo=commitlint&color=1fb2a6)](http://commitizen.github.io/cz-cli/)&nbsp;![Semantic-Release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg?style=for-the-badge&color=1fb2a6)&nbsp;[![documented with Fumadocs](https://img.shields.io/badge/documented_with-fumadocs-success.svg?style=for-the-badge&logo=readthedocs&color=1fb2a6)](https://fumadocs.vercel.app/)&nbsp;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/storm-ops/cr.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
25
25
 
26
26
  <!-- prettier-ignore-start -->
27
27
  <!-- markdownlint-disable -->
package/bin/untyped.cjs CHANGED
@@ -71940,6 +71940,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
71940
71940
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
71941
71941
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
71942
71942
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
71943
+ var errorConfigSchema = z.object({
71944
+ codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
71945
+ url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
71946
+ }).describe("The workspace's error config used during the error process");
71943
71947
  var stormWorkspaceConfigSchema = z.object({
71944
71948
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
71945
71949
  extends: ExtendsSchema.optional(),
@@ -71958,6 +71962,7 @@ var stormWorkspaceConfigSchema = z.object({
71958
71962
  bot: WorkspaceBotConfigSchema,
71959
71963
  release: WorkspaceReleaseConfigSchema,
71960
71964
  account: WorkspaceAccountConfigSchema,
71965
+ error: errorConfigSchema,
71961
71966
  mode: z.enum([
71962
71967
  "development",
71963
71968
  "staging",
@@ -73013,7 +73018,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
73013
73018
  license,
73014
73019
  homepage,
73015
73020
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
73016
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
73021
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
73022
+ error: {
73023
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
73024
+ }
73017
73025
  };
73018
73026
  }, "getDefaultConfig");
73019
73027
 
@@ -73364,6 +73372,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
73364
73372
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
73365
73373
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
73366
73374
  },
73375
+ error: {
73376
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
73377
+ url: process.env[`${prefix}ERROR_URL`] || void 0
73378
+ },
73367
73379
  account: {
73368
73380
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
73369
73381
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -73538,6 +73550,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
73538
73550
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
73539
73551
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
73540
73552
  }
73553
+ if (config.error) {
73554
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
73555
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
73556
+ }
73541
73557
  if (config.release) {
73542
73558
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
73543
73559
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -73668,7 +73684,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
73668
73684
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
73669
73685
  }
73670
73686
  if (config.registry.container) {
73671
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
73687
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
73672
73688
  }
73673
73689
  }
73674
73690
  if (config.logLevel) {
package/bin/untyped.js CHANGED
@@ -71931,6 +71931,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
71931
71931
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
71932
71932
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
71933
71933
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
71934
+ var errorConfigSchema = z.object({
71935
+ codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
71936
+ url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
71937
+ }).describe("The workspace's error config used during the error process");
71934
71938
  var stormWorkspaceConfigSchema = z.object({
71935
71939
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
71936
71940
  extends: ExtendsSchema.optional(),
@@ -71949,6 +71953,7 @@ var stormWorkspaceConfigSchema = z.object({
71949
71953
  bot: WorkspaceBotConfigSchema,
71950
71954
  release: WorkspaceReleaseConfigSchema,
71951
71955
  account: WorkspaceAccountConfigSchema,
71956
+ error: errorConfigSchema,
71952
71957
  mode: z.enum([
71953
71958
  "development",
71954
71959
  "staging",
@@ -73001,7 +73006,10 @@ var getDefaultConfig = /* @__PURE__ */ __name(async (root) => {
73001
73006
  license,
73002
73007
  homepage,
73003
73008
  docs: `${homepage || STORM_DEFAULT_HOMEPAGE}/docs`,
73004
- licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`
73009
+ licensing: `${homepage || STORM_DEFAULT_HOMEPAGE}/license`,
73010
+ error: {
73011
+ url: `${homepage || STORM_DEFAULT_HOMEPAGE}/errors`
73012
+ }
73005
73013
  };
73006
73014
  }, "getDefaultConfig");
73007
73015
 
@@ -73352,6 +73360,10 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
73352
73360
  header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
73353
73361
  footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
73354
73362
  },
73363
+ error: {
73364
+ codesFile: process.env[`${prefix}ERROR_CODES_FILE`] || void 0,
73365
+ url: process.env[`${prefix}ERROR_URL`] || void 0
73366
+ },
73355
73367
  account: {
73356
73368
  twitter: process.env[`${prefix}ACCOUNT_TWITTER`] || void 0,
73357
73369
  discord: process.env[`${prefix}ACCOUNT_DISCORD`] || void 0,
@@ -73526,6 +73538,10 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
73526
73538
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
73527
73539
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
73528
73540
  }
73541
+ if (config.error) {
73542
+ process.env[`${prefix}ERROR_CODES_FILE`] = config.error.codesFile;
73543
+ process.env[`${prefix}ERROR_URL`] = config.error.url;
73544
+ }
73529
73545
  if (config.release) {
73530
73546
  process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
73531
73547
  process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
@@ -73656,7 +73672,7 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
73656
73672
  process.env[`${prefix}REGISTRY_CYCLONE`] = String(config.registry.cyclone);
73657
73673
  }
73658
73674
  if (config.registry.container) {
73659
- process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.cyclone);
73675
+ process.env[`${prefix}REGISTRY_CONTAINER`] = String(config.registry.container);
73660
73676
  }
73661
73677
  }
73662
73678
  if (config.logLevel) {
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-ZACMGGI6.js";
4
+ } from "./chunk-WTJWQQN2.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -1,17 +1,17 @@
1
1
  import {
2
2
  generateDeclarationFile
3
- } from "./chunk-RL7G6HKE.js";
3
+ } from "./chunk-LZOR3QY4.js";
4
4
  import {
5
5
  generateJsonSchemaFile
6
- } from "./chunk-LZQ5P5IG.js";
6
+ } from "./chunk-JIHQMZNF.js";
7
7
  import {
8
8
  generateMarkdownFile
9
- } from "./chunk-RFUCL2N2.js";
9
+ } from "./chunk-6G3CK5VB.js";
10
10
  import {
11
11
  isVerbose,
12
12
  writeError,
13
13
  writeTrace
14
- } from "./chunk-ZACMGGI6.js";
14
+ } from "./chunk-WTJWQQN2.js";
15
15
  import {
16
16
  __name,
17
17
  init_esm_shims,
@@ -7016,6 +7016,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
7016
7016
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
7017
7017
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
7018
7018
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
7019
+ var errorConfigSchema = z.object({
7020
+ codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
7021
+ url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
7022
+ }).describe("The workspace's error config used during the error process");
7019
7023
  var stormWorkspaceConfigSchema = z.object({
7020
7024
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
7021
7025
  extends: ExtendsSchema.optional(),
@@ -7034,6 +7038,7 @@ var stormWorkspaceConfigSchema = z.object({
7034
7038
  bot: WorkspaceBotConfigSchema,
7035
7039
  release: WorkspaceReleaseConfigSchema,
7036
7040
  account: WorkspaceAccountConfigSchema,
7041
+ error: errorConfigSchema,
7037
7042
  mode: z.enum([
7038
7043
  "development",
7039
7044
  "staging",
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
4
+ var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
5
5
 
6
6
 
7
7
 
@@ -48,10 +48,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateMarkdownLevel, "generateMarkdownLe
48
48
  function generateMarkdownFile(schema, file, config) {
49
49
  try {
50
50
  const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "md");
51
- _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
51
+ _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing type markdown file ${declarations}`, config);
52
52
  return _promises.writeFile.call(void 0, declarations, generateMarkdown(schema));
53
53
  } catch (error) {
54
- _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
54
+ _chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing markdown file for ${file.name}
55
55
 
56
56
  Error:
57
57
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -1,17 +1,17 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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 _chunkB3ONKCXJcjs = require('./chunk-B3ONKCXJ.cjs');
3
+ var _chunkIP2KIQ7Zcjs = require('./chunk-IP2KIQ7Z.cjs');
4
4
 
5
5
 
6
- var _chunkP3BRVAKZcjs = require('./chunk-P3BRVAKZ.cjs');
6
+ var _chunkKPDOE54Pcjs = require('./chunk-KPDOE54P.cjs');
7
7
 
8
8
 
9
- var _chunk7G54AXUIcjs = require('./chunk-7G54AXUI.cjs');
9
+ var _chunkACUIVJCHcjs = require('./chunk-ACUIVJCH.cjs');
10
10
 
11
11
 
12
12
 
13
13
 
14
- var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
14
+ var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
15
15
 
16
16
 
17
17
 
@@ -23,7 +23,7 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
23
23
  var _glob = require('glob');
24
24
  var _loader = require('untyped/loader');
25
25
  var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (config) => async (options) => {
26
- _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
26
+ _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Running Storm Untyped with options: ${JSON.stringify(options)}`, config);
27
27
  const files = await _glob.glob.call(void 0, options.entry || "**/{untyped.ts,*.untyped.ts}", {
28
28
  ignore: [
29
29
  "**/{*.stories.tsx,*.stories.ts,*.spec.tsx,*.spec.ts}",
@@ -38,18 +38,18 @@ var getGenerateAction = /* @__PURE__ */ _chunkPBRGYMWBcjs.__name.call(void 0, (c
38
38
  cwd: config.workspaceRoot
39
39
  });
40
40
  await Promise.all(files.map(async (file) => {
41
- _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
41
+ _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Generating files for schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}`, config);
42
42
  let schema;
43
43
  try {
44
44
  schema = await _loader.loadSchema.call(void 0, _chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name), {
45
45
  jiti: {
46
- debug: _chunkYHQOB4Q7cjs.isVerbose.call(void 0, config.logLevel),
46
+ debug: _chunk73TYVR4Dcjs.isVerbose.call(void 0, config.logLevel),
47
47
  fsCache: config.skipCache ? false : _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.directories.cache || _chunkPBRGYMWBcjs.joinPaths.call(void 0, config.workspaceRoot, "node_modules/.cache/storm"), "jiti"),
48
48
  interopDefault: true
49
49
  }
50
50
  });
51
51
  } catch (error) {
52
- _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}
52
+ _chunk73TYVR4Dcjs.writeError.call(void 0, `Error while parsing schema file: ${_chunkPBRGYMWBcjs.joinPaths.call(void 0, file.parentPath, file.name)}
53
53
 
54
54
  Error:
55
55
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -61,9 +61,9 @@ ${JSON.stringify(schema)}
61
61
  throw error;
62
62
  }
63
63
  const promises = [];
64
- promises.push(_chunkB3ONKCXJcjs.generateDeclarationFile.call(void 0, schema, file, config));
65
- promises.push(_chunk7G54AXUIcjs.generateMarkdownFile.call(void 0, schema, file, config));
66
- promises.push(_chunkP3BRVAKZcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
64
+ promises.push(_chunkIP2KIQ7Zcjs.generateDeclarationFile.call(void 0, schema, file, config));
65
+ promises.push(_chunkACUIVJCHcjs.generateMarkdownFile.call(void 0, schema, file, config));
66
+ promises.push(_chunkKPDOE54Pcjs.generateJsonSchemaFile.call(void 0, schema, file, config));
67
67
  return Promise.all(promises);
68
68
  }));
69
69
  }, "getGenerateAction");
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
4
+ var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
5
5
 
6
6
 
7
7
 
@@ -29,10 +29,10 @@ _chunkPBRGYMWBcjs.__name.call(void 0, generateDeclaration, "generateDeclaration"
29
29
  function generateDeclarationFile(schema, file, config) {
30
30
  try {
31
31
  const declarations = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "d.ts");
32
- _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
32
+ _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing type declaration file ${declarations}`, config);
33
33
  return _promises.writeFile.call(void 0, declarations, generateDeclaration(schema));
34
34
  } catch (error) {
35
- _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
35
+ _chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing declaration file for ${file.name}
36
36
 
37
37
  Error:
38
38
  ${_optionalChain([error, 'optionalAccess', _4 => _4.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _5 => _5.stack]) ? `
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-ZACMGGI6.js";
4
+ } from "./chunk-WTJWQQN2.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -1,7 +1,7 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); 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
3
 
4
- var _chunkYHQOB4Q7cjs = require('./chunk-YHQOB4Q7.cjs');
4
+ var _chunk73TYVR4Dcjs = require('./chunk-73TYVR4D.cjs');
5
5
 
6
6
 
7
7
 
@@ -14,10 +14,10 @@ var _promises = require('fs/promises');
14
14
  function generateJsonSchemaFile(schema, file, config) {
15
15
  try {
16
16
  const jsonSchema = _chunkPBRGYMWBcjs.getOutputFile.call(void 0, file, "json");
17
- _chunkYHQOB4Q7cjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
17
+ _chunk73TYVR4Dcjs.writeTrace.call(void 0, `Writing JSON schema file ${jsonSchema}`, config);
18
18
  return _promises.writeFile.call(void 0, jsonSchema, JSON.stringify(schema, null, 2));
19
19
  } catch (error) {
20
- _chunkYHQOB4Q7cjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
20
+ _chunk73TYVR4Dcjs.writeError.call(void 0, `Error writing JSON schema file for ${file.name}
21
21
 
22
22
  Error:
23
23
  ${_optionalChain([error, 'optionalAccess', _ => _.message]) ? error.message : JSON.stringify(error)}${_optionalChain([error, 'optionalAccess', _2 => _2.stack]) ? `
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  writeError,
3
3
  writeTrace
4
- } from "./chunk-ZACMGGI6.js";
4
+ } from "./chunk-WTJWQQN2.js";
5
5
  import {
6
6
  __name,
7
7
  getOutputFile,
@@ -7016,6 +7016,10 @@ var WorkspaceDirectoryConfigSchema = z.object({
7016
7016
  log: z.string().trim().optional().describe("The directory used to store the environment's temp files"),
7017
7017
  build: z.string().trim().default("dist").describe("The directory used to store the workspace's distributable files after a build (relative to the workspace root)")
7018
7018
  }).describe("Various directories used by the workspace to store data, cache, and configuration files");
7019
+ var errorConfigSchema = z.object({
7020
+ codesFile: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("The path to the workspace's error codes JSON file"),
7021
+ url: z.string().trim().url().optional().describe("A URL to a page that looks up the workspace's error messages given a specific error code")
7022
+ }).describe("The workspace's error config used during the error process");
7019
7023
  var stormWorkspaceConfigSchema = z.object({
7020
7024
  $schema: z.string().trim().default("https://cdn.jsdelivr.net/npm/@storm-software/config/schemas/storm-workspace.schema.json").optional().nullish().describe("The URL to the JSON schema file that describes the Storm configuration file"),
7021
7025
  extends: ExtendsSchema.optional(),
@@ -7034,6 +7038,7 @@ var stormWorkspaceConfigSchema = z.object({
7034
7038
  bot: WorkspaceBotConfigSchema,
7035
7039
  release: WorkspaceReleaseConfigSchema,
7036
7040
  account: WorkspaceAccountConfigSchema,
7041
+ error: errorConfigSchema,
7037
7042
  mode: z.enum([
7038
7043
  "development",
7039
7044
  "staging",
package/dist/generate.cjs CHANGED
@@ -1,11 +1,11 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJTXABIVWcjs = require('./chunk-JTXABIVW.cjs');
4
- require('./chunk-B3ONKCXJ.cjs');
5
- require('./chunk-P3BRVAKZ.cjs');
6
- require('./chunk-7G54AXUI.cjs');
7
- require('./chunk-YHQOB4Q7.cjs');
3
+ var _chunkGXDLGWBKcjs = require('./chunk-GXDLGWBK.cjs');
4
+ require('./chunk-IP2KIQ7Z.cjs');
5
+ require('./chunk-KPDOE54P.cjs');
6
+ require('./chunk-ACUIVJCH.cjs');
7
+ require('./chunk-73TYVR4D.cjs');
8
8
  require('./chunk-PBRGYMWB.cjs');
9
9
 
10
10
 
11
- exports.getGenerateAction = _chunkJTXABIVWcjs.getGenerateAction;
11
+ exports.getGenerateAction = _chunkGXDLGWBKcjs.getGenerateAction;
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-D_AzVlEf.cjs';
1
+ import { S as StormWorkspaceConfig } from './types-Dm4EyHF-.cjs';
2
2
  import 'zod';
3
3
 
4
4
  declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
@@ -1,4 +1,4 @@
1
- import { S as StormWorkspaceConfig } from './types-D_AzVlEf.js';
1
+ import { S as StormWorkspaceConfig } from './types-Dm4EyHF-.js';
2
2
  import 'zod';
3
3
 
4
4
  declare const getGenerateAction: (config: StormWorkspaceConfig) => (options: {
package/dist/generate.js CHANGED
@@ -1,10 +1,10 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-YOXSPNH7.js";
4
- import "./chunk-RL7G6HKE.js";
5
- import "./chunk-LZQ5P5IG.js";
6
- import "./chunk-RFUCL2N2.js";
7
- import "./chunk-ZACMGGI6.js";
3
+ } from "./chunk-6NNISWTS.js";
4
+ import "./chunk-LZOR3QY4.js";
5
+ import "./chunk-JIHQMZNF.js";
6
+ import "./chunk-6G3CK5VB.js";
7
+ import "./chunk-WTJWQQN2.js";
8
8
  import "./chunk-YRIEPGDN.js";
9
9
  export {
10
10
  getGenerateAction
package/dist/index.cjs CHANGED
@@ -1,19 +1,19 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
2
 
3
- var _chunkJTXABIVWcjs = require('./chunk-JTXABIVW.cjs');
3
+ var _chunkGXDLGWBKcjs = require('./chunk-GXDLGWBK.cjs');
4
4
  require('./chunk-RAXH6VUY.cjs');
5
5
 
6
6
 
7
7
 
8
- var _chunkB3ONKCXJcjs = require('./chunk-B3ONKCXJ.cjs');
8
+ var _chunkIP2KIQ7Zcjs = require('./chunk-IP2KIQ7Z.cjs');
9
9
 
10
10
 
11
- var _chunkP3BRVAKZcjs = require('./chunk-P3BRVAKZ.cjs');
11
+ var _chunkKPDOE54Pcjs = require('./chunk-KPDOE54P.cjs');
12
12
 
13
13
 
14
14
 
15
- var _chunk7G54AXUIcjs = require('./chunk-7G54AXUI.cjs');
16
- require('./chunk-YHQOB4Q7.cjs');
15
+ var _chunkACUIVJCHcjs = require('./chunk-ACUIVJCH.cjs');
16
+ require('./chunk-73TYVR4D.cjs');
17
17
 
18
18
 
19
19
 
@@ -29,4 +29,4 @@ _chunkPBRGYMWBcjs.init_cjs_shims.call(void 0, );
29
29
 
30
30
 
31
31
 
32
- exports.generateDeclaration = _chunkB3ONKCXJcjs.generateDeclaration; exports.generateDeclarationFile = _chunkB3ONKCXJcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkP3BRVAKZcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunk7G54AXUIcjs.generateMarkdown; exports.generateMarkdownFile = _chunk7G54AXUIcjs.generateMarkdownFile; exports.getGenerateAction = _chunkJTXABIVWcjs.getGenerateAction; exports.getOutputFile = _chunkPBRGYMWBcjs.getOutputFile;
32
+ exports.generateDeclaration = _chunkIP2KIQ7Zcjs.generateDeclaration; exports.generateDeclarationFile = _chunkIP2KIQ7Zcjs.generateDeclarationFile; exports.generateJsonSchemaFile = _chunkKPDOE54Pcjs.generateJsonSchemaFile; exports.generateMarkdown = _chunkACUIVJCHcjs.generateMarkdown; exports.generateMarkdownFile = _chunkACUIVJCHcjs.generateMarkdownFile; exports.getGenerateAction = _chunkGXDLGWBKcjs.getGenerateAction; exports.getOutputFile = _chunkPBRGYMWBcjs.getOutputFile;
package/dist/index.d.cts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.c
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.cjs';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.cjs';
5
5
  export { getOutputFile } from './utilities.cjs';
6
- import './types-D_AzVlEf.cjs';
6
+ import './types-Dm4EyHF-.cjs';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.d.ts CHANGED
@@ -3,7 +3,7 @@ export { generateDeclaration, generateDeclarationFile } from './generators/dts.j
3
3
  export { generateJsonSchemaFile } from './generators/json-schema.js';
4
4
  export { generateMarkdown, generateMarkdownFile } from './generators/markdown.js';
5
5
  export { getOutputFile } from './utilities.js';
6
- import './types-D_AzVlEf.js';
6
+ import './types-Dm4EyHF-.js';
7
7
  import 'zod';
8
8
  import 'glob';
9
9
  import 'untyped';
package/dist/index.js CHANGED
@@ -1,19 +1,19 @@
1
1
  import {
2
2
  getGenerateAction
3
- } from "./chunk-YOXSPNH7.js";
3
+ } from "./chunk-6NNISWTS.js";
4
4
  import "./chunk-7UW24DGF.js";
5
5
  import {
6
6
  generateDeclaration,
7
7
  generateDeclarationFile
8
- } from "./chunk-RL7G6HKE.js";
8
+ } from "./chunk-LZOR3QY4.js";
9
9
  import {
10
10
  generateJsonSchemaFile
11
- } from "./chunk-LZQ5P5IG.js";
11
+ } from "./chunk-JIHQMZNF.js";
12
12
  import {
13
13
  generateMarkdown,
14
14
  generateMarkdownFile
15
- } from "./chunk-RFUCL2N2.js";
16
- import "./chunk-ZACMGGI6.js";
15
+ } from "./chunk-6G3CK5VB.js";
16
+ import "./chunk-WTJWQQN2.js";
17
17
  import {
18
18
  getOutputFile,
19
19
  init_esm_shims
@@ -63,6 +63,16 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
63
63
  medium?: string | undefined;
64
64
  github?: string | undefined;
65
65
  }>;
66
+ error: z.ZodObject<{
67
+ codesFile: z.ZodDefault<z.ZodString>;
68
+ url: z.ZodOptional<z.ZodString>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ codesFile: string;
71
+ url?: string | undefined;
72
+ }, {
73
+ codesFile?: string | undefined;
74
+ url?: string | undefined;
75
+ }>;
66
76
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
67
77
  workspaceRoot: z.ZodDefault<z.ZodString>;
68
78
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -856,6 +866,10 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
856
866
  medium: string;
857
867
  github: string;
858
868
  };
869
+ error: {
870
+ codesFile: string;
871
+ url?: string | undefined;
872
+ };
859
873
  mode: "development" | "staging" | "production";
860
874
  workspaceRoot: string;
861
875
  externalPackagePatterns: string[];
@@ -871,7 +885,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
871
885
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
872
886
  timezone: string;
873
887
  locale: string;
874
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
888
+ logLevel: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all";
875
889
  registry: {
876
890
  github?: string | undefined;
877
891
  npm?: string | undefined;
@@ -1053,6 +1067,10 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1053
1067
  medium?: string | undefined;
1054
1068
  github?: string | undefined;
1055
1069
  };
1070
+ error: {
1071
+ codesFile?: string | undefined;
1072
+ url?: string | undefined;
1073
+ };
1056
1074
  directories: {
1057
1075
  cache?: string | undefined;
1058
1076
  data?: string | undefined;
@@ -1229,7 +1247,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1229
1247
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1230
1248
  timezone?: string | undefined;
1231
1249
  locale?: string | undefined;
1232
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1250
+ logLevel?: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1233
1251
  skipConfigLogging?: boolean | undefined;
1234
1252
  registry?: {
1235
1253
  github?: string | undefined;
@@ -63,6 +63,16 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
63
63
  medium?: string | undefined;
64
64
  github?: string | undefined;
65
65
  }>;
66
+ error: z.ZodObject<{
67
+ codesFile: z.ZodDefault<z.ZodString>;
68
+ url: z.ZodOptional<z.ZodString>;
69
+ }, "strip", z.ZodTypeAny, {
70
+ codesFile: string;
71
+ url?: string | undefined;
72
+ }, {
73
+ codesFile?: string | undefined;
74
+ url?: string | undefined;
75
+ }>;
66
76
  mode: z.ZodDefault<z.ZodEnum<["development", "staging", "production"]>>;
67
77
  workspaceRoot: z.ZodDefault<z.ZodString>;
68
78
  externalPackagePatterns: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
@@ -856,6 +866,10 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
856
866
  medium: string;
857
867
  github: string;
858
868
  };
869
+ error: {
870
+ codesFile: string;
871
+ url?: string | undefined;
872
+ };
859
873
  mode: "development" | "staging" | "production";
860
874
  workspaceRoot: string;
861
875
  externalPackagePatterns: string[];
@@ -871,7 +885,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
871
885
  packageManager: "npm" | "yarn" | "pnpm" | "bun";
872
886
  timezone: string;
873
887
  locale: string;
874
- logLevel: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all";
888
+ logLevel: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all";
875
889
  registry: {
876
890
  github?: string | undefined;
877
891
  npm?: string | undefined;
@@ -1053,6 +1067,10 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1053
1067
  medium?: string | undefined;
1054
1068
  github?: string | undefined;
1055
1069
  };
1070
+ error: {
1071
+ codesFile?: string | undefined;
1072
+ url?: string | undefined;
1073
+ };
1056
1074
  directories: {
1057
1075
  cache?: string | undefined;
1058
1076
  data?: string | undefined;
@@ -1229,7 +1247,7 @@ declare const stormWorkspaceConfigSchema: z.ZodObject<{
1229
1247
  packageManager?: "npm" | "yarn" | "pnpm" | "bun" | undefined;
1230
1248
  timezone?: string | undefined;
1231
1249
  locale?: string | undefined;
1232
- logLevel?: "silent" | "fatal" | "error" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1250
+ logLevel?: "error" | "silent" | "fatal" | "warn" | "success" | "info" | "debug" | "trace" | "all" | undefined;
1233
1251
  skipConfigLogging?: boolean | undefined;
1234
1252
  registry?: {
1235
1253
  github?: string | undefined;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@storm-software/untyped",
3
- "version": "0.11.17",
3
+ "version": "0.11.19",
4
4
  "type": "module",
5
5
  "description": "A package containing `untyped` utilities for building Storm Software libraries and applications",
6
6
  "repository": {