@storm-software/git-tools 2.96.12 → 2.97.0

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 (47) hide show
  1. package/README.md +1 -1
  2. package/bin/{chunk-M2LVPB4L.js → chunk-7HYXXE5S.js} +33 -2
  3. package/bin/{chunk-O2V4JHMG.cjs → chunk-LFH4CIZM.cjs} +33 -2
  4. package/bin/git.cjs +26439 -5464
  5. package/bin/git.js +26333 -5358
  6. package/bin/post-checkout.cjs +9 -9
  7. package/bin/post-checkout.js +1 -1
  8. package/bin/post-commit.cjs +9 -9
  9. package/bin/post-commit.js +1 -1
  10. package/bin/post-merge.cjs +9 -9
  11. package/bin/post-merge.js +1 -1
  12. package/bin/pre-commit.cjs +9 -9
  13. package/bin/pre-commit.js +1 -1
  14. package/bin/pre-install.cjs +9 -9
  15. package/bin/pre-install.js +1 -1
  16. package/bin/pre-push.cjs +13 -13
  17. package/bin/pre-push.js +1 -1
  18. package/bin/prepare.cjs +7 -7
  19. package/bin/prepare.js +1 -1
  20. package/bin/version-warning.cjs +5 -5
  21. package/bin/version-warning.js +1 -1
  22. package/dist/{chunk-QFZNPBUB.cjs → chunk-AZCYMACD.cjs} +3 -3
  23. package/dist/{chunk-XY4PXHHT.js → chunk-JPOOLWH4.js} +1 -1
  24. package/dist/{chunk-NXD22ACT.js → chunk-QRP3KP65.js} +1 -1
  25. package/dist/{chunk-6EYTSWXU.js → chunk-WEKKNQBE.js} +0 -1
  26. package/dist/{chunk-MIBBWD5T.cjs → chunk-WZADZNEI.cjs} +1 -2
  27. package/dist/chunk-YCY2PJXX.cjs +18 -0
  28. package/dist/commit/config.cjs +3 -3
  29. package/dist/commit/config.js +2 -2
  30. package/dist/commitlint/config.cjs +20 -20
  31. package/dist/commitlint/config.js +1 -1
  32. package/dist/index.cjs +4 -5
  33. package/dist/index.d.cts +0 -5
  34. package/dist/index.d.ts +0 -5
  35. package/dist/index.js +3 -4
  36. package/dist/release/config.cjs +3 -3
  37. package/dist/release/config.js +2 -2
  38. package/dist/types.cjs +2 -2
  39. package/dist/types.js +1 -1
  40. package/package.json +11 -11
  41. package/dist/chunk-FGIAHPQJ.js +0 -36
  42. package/dist/chunk-VOGVIPTZ.cjs +0 -18
  43. package/dist/chunk-WBWFRERX.cjs +0 -36
  44. package/dist/release/changelog-renderer.cjs +0 -7
  45. package/dist/release/changelog-renderer.d.cts +0 -60
  46. package/dist/release/changelog-renderer.d.ts +0 -60
  47. package/dist/release/changelog-renderer.js +0 -7
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-2.96.11-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-2.96.13-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 -->
@@ -35341,6 +35341,14 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
35341
35341
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
35342
35342
  var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
35343
35343
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
35344
+ var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
35345
+ var STORM_DEFAULT_RELEASE_FOOTER = `
35346
+ [Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
35347
+
35348
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
35349
+
35350
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
35351
+ `;
35344
35352
 
35345
35353
  // ../config/src/define-config.ts
35346
35354
  init_esm_shims();
@@ -39642,6 +39650,11 @@ var WorkspaceBotConfigSchema = z.object({
39642
39650
  name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
39643
39651
  email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
39644
39652
  }).describe("The workspace's bot user's config used to automated various operations tasks");
39653
+ var WorkspaceReleaseConfigSchema = z.object({
39654
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
39655
+ header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
39656
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
39657
+ }).describe("The workspace's release config used during the release process");
39645
39658
  var WorkspaceDirectoryConfigSchema = z.object({
39646
39659
  cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
39647
39660
  data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
@@ -39665,6 +39678,7 @@ var StormConfigSchema = z.object({
39665
39678
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
39666
39679
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
39667
39680
  bot: WorkspaceBotConfigSchema,
39681
+ release: WorkspaceReleaseConfigSchema,
39668
39682
  mode: z.enum([
39669
39683
  "development",
39670
39684
  "staging",
@@ -41010,6 +41024,11 @@ var getConfigEnv = /* @__PURE__ */ __name(() => {
41010
41024
  name: process.env[`${prefix}BOT_NAME`] || void 0,
41011
41025
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
41012
41026
  },
41027
+ release: {
41028
+ banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
41029
+ header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
41030
+ footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
41031
+ },
41013
41032
  organization: process.env[`${prefix}ORGANIZATION`] || void 0,
41014
41033
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
41015
41034
  license: process.env[`${prefix}LICENSE`] || void 0,
@@ -41175,6 +41194,11 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
41175
41194
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
41176
41195
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
41177
41196
  }
41197
+ if (config.release) {
41198
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
41199
+ process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
41200
+ process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
41201
+ }
41178
41202
  if (config.organization) {
41179
41203
  process.env[`${prefix}ORGANIZATION`] = config.organization;
41180
41204
  }
@@ -41291,7 +41315,9 @@ var setConfigEnv = /* @__PURE__ */ __name((config) => {
41291
41315
  }
41292
41316
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
41293
41317
  for (const key of Object.keys(config.extensions ?? {})) {
41294
- config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
41318
+ if (config.extensions[key] && Object.keys(config.extensions[key])) {
41319
+ setExtensionEnv(key, config.extensions[key]);
41320
+ }
41295
41321
  }
41296
41322
  }, "setConfigEnv");
41297
41323
  var setThemeColorConfigEnv = /* @__PURE__ */ __name((prefix, config) => {
@@ -41455,6 +41481,9 @@ ${formatLogMessage(config)}`, config);
41455
41481
  var getConfig = /* @__PURE__ */ __name((workspaceRoot, skipLogs = false) => {
41456
41482
  return loadStormConfig(workspaceRoot, skipLogs);
41457
41483
  }, "getConfig");
41484
+ var getWorkspaceConfig = /* @__PURE__ */ __name((skipLogs = false) => {
41485
+ return getConfig(void 0, skipLogs);
41486
+ }, "getWorkspaceConfig");
41458
41487
 
41459
41488
  export {
41460
41489
  joinPaths,
@@ -41462,6 +41491,7 @@ export {
41462
41491
  findWorkspaceRoot,
41463
41492
  require_ansi_styles,
41464
41493
  require_supports_color,
41494
+ require_source,
41465
41495
  isVerbose,
41466
41496
  writeFatal,
41467
41497
  writeError,
@@ -41472,5 +41502,6 @@ export {
41472
41502
  exitWithError,
41473
41503
  exitWithSuccess,
41474
41504
  handleProcess,
41475
- getConfig
41505
+ getConfig,
41506
+ getWorkspaceConfig
41476
41507
  };
@@ -35341,6 +35341,14 @@ var STORM_DEFAULT_DOCS = "https://docs.stormsoftware.com";
35341
35341
  var STORM_DEFAULT_HOMEPAGE = "https://stormsoftware.com";
35342
35342
  var STORM_DEFAULT_LICENSING = "https://license.stormsoftware.com";
35343
35343
  var STORM_DEFAULT_LICENSE = "Apache-2.0";
35344
+ var STORM_DEFAULT_RELEASE_BANNER = "https://public.storm-cdn.com/logo-banner.png";
35345
+ var STORM_DEFAULT_RELEASE_FOOTER = `
35346
+ [Storm Software](https://stormsoftware.com) is an open source software development organization with the mission is to make software development more accessible. Our ideal future is one where anyone can create software without years of prior development experience serving as a barrier to entry. We hope to achieve this via LLMs, Generative AI, and intuitive, high-level data modeling/programming languages.
35347
+
35348
+ Join us on [Discord](https://discord.gg/MQ6YVzakM5) to chat with the team, receive release notifications, ask questions, and get involved.
35349
+
35350
+ If this sounds interesting, and you would like to help us in creating the next generation of development tools, please reach out on our [website](https://stormsoftware.com/contact) or join our [Slack](https://join.slack.com/t/storm-software/shared_invite/zt-2gsmk04hs-i6yhK_r6urq0dkZYAwq2pA) channel!
35351
+ `;
35344
35352
 
35345
35353
  // ../config/src/define-config.ts
35346
35354
  _chunkKK4YC43Scjs.init_cjs_shims.call(void 0, );
@@ -39642,6 +39650,11 @@ var WorkspaceBotConfigSchema = z.object({
39642
39650
  name: z.string().trim().default("stormie-bot").describe("The workspace bot user's name (this is the bot that will be used to perform various tasks)"),
39643
39651
  email: z.string().trim().email().default("bot@stormsoftware.com").describe("The email of the workspace bot")
39644
39652
  }).describe("The workspace's bot user's config used to automated various operations tasks");
39653
+ var WorkspaceReleaseConfigSchema = z.object({
39654
+ banner: z.string().trim().default(STORM_DEFAULT_RELEASE_BANNER).describe("A URL to a banner image used to display the workspace's release"),
39655
+ header: z.string().trim().optional().describe("A header message appended to the start of the workspace's release notes"),
39656
+ footer: z.string().trim().default(STORM_DEFAULT_RELEASE_FOOTER).describe("A footer message appended to the end of the workspace's release notes")
39657
+ }).describe("The workspace's release config used during the release process");
39645
39658
  var WorkspaceDirectoryConfigSchema = z.object({
39646
39659
  cache: z.string().trim().optional().describe("The directory used to store the environment's cached file data"),
39647
39660
  data: z.string().trim().optional().describe("The directory used to store the environment's data files"),
@@ -39665,6 +39678,7 @@ var StormConfigSchema = z.object({
39665
39678
  preid: z.string().optional().describe("A tag specifying the version pre-release identifier"),
39666
39679
  owner: z.string().trim().default("@storm-software/admin").describe("The owner of the package"),
39667
39680
  bot: WorkspaceBotConfigSchema,
39681
+ release: WorkspaceReleaseConfigSchema,
39668
39682
  mode: z.enum([
39669
39683
  "development",
39670
39684
  "staging",
@@ -41013,6 +41027,11 @@ var getConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, () => {
41013
41027
  name: process.env[`${prefix}BOT_NAME`] || void 0,
41014
41028
  email: process.env[`${prefix}BOT_EMAIL`] || void 0
41015
41029
  },
41030
+ release: {
41031
+ banner: process.env[`${prefix}RELEASE_BANNER`] || void 0,
41032
+ header: process.env[`${prefix}RELEASE_HEADER`] || void 0,
41033
+ footer: process.env[`${prefix}RELEASE_FOOTER`] || void 0
41034
+ },
41016
41035
  organization: process.env[`${prefix}ORGANIZATION`] || void 0,
41017
41036
  packageManager: process.env[`${prefix}PACKAGE_MANAGER`] || void 0,
41018
41037
  license: process.env[`${prefix}LICENSE`] || void 0,
@@ -41178,6 +41197,11 @@ var setConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (config
41178
41197
  process.env[`${prefix}BOT_NAME`] = config.bot.name;
41179
41198
  process.env[`${prefix}BOT_EMAIL`] = config.bot.email;
41180
41199
  }
41200
+ if (config.release) {
41201
+ process.env[`${prefix}RELEASE_BANNER`] = config.release.banner;
41202
+ process.env[`${prefix}RELEASE_HEADER`] = config.release.header;
41203
+ process.env[`${prefix}RELEASE_FOOTER`] = config.release.footer;
41204
+ }
41181
41205
  if (config.organization) {
41182
41206
  process.env[`${prefix}ORGANIZATION`] = config.organization;
41183
41207
  }
@@ -41294,7 +41318,9 @@ var setConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (config
41294
41318
  }
41295
41319
  process.env[`${prefix}CONFIG`] = JSON.stringify(config);
41296
41320
  for (const key of Object.keys(_nullishCoalesce(config.extensions, () => ( {})))) {
41297
- config.extensions[key] && Object.keys(config.extensions[key]) && setExtensionEnv(key, config.extensions[key]);
41321
+ if (config.extensions[key] && Object.keys(config.extensions[key])) {
41322
+ setExtensionEnv(key, config.extensions[key]);
41323
+ }
41298
41324
  }
41299
41325
  }, "setConfigEnv");
41300
41326
  var setThemeColorConfigEnv = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (prefix, config) => {
@@ -41458,6 +41484,11 @@ ${formatLogMessage(config)}`, config);
41458
41484
  var getConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (workspaceRoot, skipLogs = false) => {
41459
41485
  return loadStormConfig(workspaceRoot, skipLogs);
41460
41486
  }, "getConfig");
41487
+ var getWorkspaceConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (skipLogs = false) => {
41488
+ return getConfig(void 0, skipLogs);
41489
+ }, "getWorkspaceConfig");
41490
+
41491
+
41461
41492
 
41462
41493
 
41463
41494
 
@@ -41476,4 +41507,4 @@ var getConfig = /* @__PURE__ */ _chunkKK4YC43Scjs.__name.call(void 0, (workspace
41476
41507
 
41477
41508
 
41478
41509
 
41479
- exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.getConfig = getConfig;
41510
+ exports.joinPaths = joinPaths; exports.findWorkspaceRootSafe = findWorkspaceRootSafe; exports.findWorkspaceRoot = findWorkspaceRoot; exports.require_ansi_styles = require_ansi_styles; exports.require_supports_color = require_supports_color; exports.require_source = require_source; exports.isVerbose = isVerbose; exports.writeFatal = writeFatal; exports.writeError = writeError; exports.writeWarning = writeWarning; exports.writeInfo = writeInfo; exports.writeSuccess = writeSuccess; exports.writeDebug = writeDebug; exports.exitWithError = exitWithError; exports.exitWithSuccess = exitWithSuccess; exports.handleProcess = handleProcess; exports.getConfig = getConfig; exports.getWorkspaceConfig = getWorkspaceConfig;