@shell-shock/preset-cli 0.8.20 → 0.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (61) hide show
  1. package/README.md +1 -1
  2. package/dist/components/banner-builtin.cjs +5 -5
  3. package/dist/components/banner-builtin.d.cts +1 -1
  4. package/dist/components/banner-builtin.d.mts +1 -1
  5. package/dist/components/banner-builtin.mjs +2 -2
  6. package/dist/components/command-entry.cjs +5 -5
  7. package/dist/components/command-entry.d.mts +1 -1
  8. package/dist/components/command-entry.mjs +4 -4
  9. package/dist/components/virtual-command-entry.cjs +2 -2
  10. package/dist/components/virtual-command-entry.d.mts +1 -1
  11. package/dist/components/virtual-command-entry.mjs +1 -1
  12. package/dist/index.cjs +7 -3
  13. package/dist/index.d.cts.map +1 -1
  14. package/dist/index.d.mts.map +1 -1
  15. package/dist/index.mjs +5 -3
  16. package/dist/index.mjs.map +1 -1
  17. package/dist/types/plugin.d.cts +11 -6
  18. package/dist/types/plugin.d.cts.map +1 -1
  19. package/dist/types/plugin.d.mts +11 -6
  20. package/dist/types/plugin.d.mts.map +1 -1
  21. package/package.json +15 -12
  22. package/dist/plugin-banner/dist/components/banner-builtin.cjs +0 -63
  23. package/dist/plugin-banner/dist/components/banner-builtin.mjs +0 -62
  24. package/dist/plugin-banner/dist/components/banner-builtin.mjs.map +0 -1
  25. package/dist/plugin-banner/dist/components/banner-function-declaration.cjs +0 -162
  26. package/dist/plugin-banner/dist/components/banner-function-declaration.d.cts +0 -45
  27. package/dist/plugin-banner/dist/components/banner-function-declaration.d.cts.map +0 -1
  28. package/dist/plugin-banner/dist/components/banner-function-declaration.d.mts +0 -45
  29. package/dist/plugin-banner/dist/components/banner-function-declaration.d.mts.map +0 -1
  30. package/dist/plugin-banner/dist/components/banner-function-declaration.mjs +0 -160
  31. package/dist/plugin-banner/dist/components/banner-function-declaration.mjs.map +0 -1
  32. package/dist/plugin-banner/dist/index.d.cts +0 -2
  33. package/dist/plugin-banner/dist/index.d.mts +0 -2
  34. package/dist/plugin-banner/dist/types/plugin.d.cts +0 -31
  35. package/dist/plugin-banner/dist/types/plugin.d.cts.map +0 -1
  36. package/dist/plugin-banner/dist/types/plugin.d.mts +0 -31
  37. package/dist/plugin-banner/dist/types/plugin.d.mts.map +0 -1
  38. package/dist/plugin-help/dist/components/display.cjs +0 -285
  39. package/dist/plugin-help/dist/components/display.mjs +0 -280
  40. package/dist/plugin-help/dist/components/display.mjs.map +0 -1
  41. package/dist/plugin-help/dist/components/help-builtin.cjs +0 -86
  42. package/dist/plugin-help/dist/components/help-builtin.mjs +0 -85
  43. package/dist/plugin-help/dist/components/help-builtin.mjs.map +0 -1
  44. package/dist/plugin-help/dist/components/help-command.cjs +0 -96
  45. package/dist/plugin-help/dist/components/help-command.mjs +0 -96
  46. package/dist/plugin-help/dist/components/help-command.mjs.map +0 -1
  47. package/dist/plugin-help/dist/components/index.cjs +0 -3
  48. package/dist/plugin-help/dist/components/index.mjs +0 -5
  49. package/dist/plugin-help/dist/index.cjs +0 -106
  50. package/dist/plugin-help/dist/index.d.cts +0 -2
  51. package/dist/plugin-help/dist/index.d.mts +0 -2
  52. package/dist/plugin-help/dist/index.mjs +0 -103
  53. package/dist/plugin-help/dist/index.mjs.map +0 -1
  54. package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts +0 -19
  55. package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.cts.map +0 -1
  56. package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.mts +0 -19
  57. package/dist/plugin-help/dist/node_modules/.pnpm/@stryke_types@0.11.2/node_modules/@stryke/types/dist/base.d.mts.map +0 -1
  58. package/dist/plugin-help/dist/types/plugin.d.cts +0 -63
  59. package/dist/plugin-help/dist/types/plugin.d.cts.map +0 -1
  60. package/dist/plugin-help/dist/types/plugin.d.mts +0 -63
  61. package/dist/plugin-help/dist/types/plugin.d.mts.map +0 -1
package/README.md CHANGED
@@ -27,7 +27,7 @@ This package is part of the ⚡<b>Shell Shock</b> monorepo. The Shell Shock pack
27
27
 
28
28
  <h3 align="center">💻 Visit <a href="https://stormsoftware.com" target="_blank">stormsoftware.com</a> to stay up to date with this developer</h3><br />
29
29
 
30
- [![Version](https://img.shields.io/badge/version-0.8.19-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&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;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
30
+ [![Version](https://img.shields.io/badge/version-0.8.20-1fb2a6.svg?style=for-the-badge&color=1fb2a6)](https://stormsoftware.com/projects/shell-shock/)&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;![GitHub Workflow Status (with event)](https://img.shields.io/github/actions/workflow/status/storm-software/shell-shock/release.yml?style=for-the-badge&logo=github-actions&color=1fb2a6)
31
31
 
32
32
  <!-- prettier-ignore-start -->
33
33
  <!-- markdownlint-disable -->
@@ -1,12 +1,12 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
2
  const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
3
- const require_banner_function_declaration = require('../plugin-banner/dist/components/banner-function-declaration.cjs');
4
- const require_banner_builtin = require('../plugin-banner/dist/components/banner-builtin.cjs');
5
3
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
6
4
  let _alloy_js_core = require("@alloy-js/core");
7
5
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
8
6
  let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
9
7
  let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
8
+ let _shell_shock_plugin_banner_components_banner_builtin = require("@shell-shock/plugin-banner/components/banner-builtin");
9
+ let _shell_shock_plugin_banner_components_banner_function_declaration = require("@shell-shock/plugin-banner/components/banner-function-declaration");
10
10
  let _shell_shock_plugin_theme_contexts_theme = require("@shell-shock/plugin-theme/contexts/theme");
11
11
  let cfonts = require("cfonts");
12
12
 
@@ -38,7 +38,7 @@ function BannerFunctionBodyDeclaration(props) {
38
38
  });
39
39
  const bannerPadding = (0, _alloy_js_core.computed)(() => Math.max(theme.padding.app, 0) * 2 + (theme.borderStyles.banner.outline[variant]?.left.length ?? 0) + (theme.borderStyles.banner.outline[variant]?.right.length ?? 0));
40
40
  const totalPadding = (0, _alloy_js_core.computed)(() => Math.max(theme.padding.banner, 0) * 2 + bannerPadding.value);
41
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_banner_function_declaration.BannerFunctionBodyDeclaration, {
41
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_plugin_banner_components_banner_function_declaration.BannerFunctionBodyDeclaration, {
42
42
  get header() {
43
43
  return header.value;
44
44
  },
@@ -69,10 +69,10 @@ function BannerFunctionBodyDeclaration(props) {
69
69
  */
70
70
  function BannerBuiltin(props) {
71
71
  const [{ command, children }, rest] = (0, _alloy_js_core.splitProps)(props, ["command", "children"]);
72
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_banner_builtin.BannerBuiltin, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
72
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_plugin_banner_components_banner_builtin.BannerBuiltin, (0, _alloy_js_core_jsx_runtime.mergeProps)(rest, {
73
73
  command,
74
74
  get children() {
75
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_banner_function_declaration.BannerFunctionDeclarationWrapper, {
75
+ return (0, _alloy_js_core_jsx_runtime.createComponent)(_shell_shock_plugin_banner_components_banner_function_declaration.BannerFunctionDeclarationWrapper, {
76
76
  command,
77
77
  get children() {
78
78
  return [
@@ -1,7 +1,7 @@
1
- import { BannerFunctionBodyDeclarationProps } from "../plugin-banner/dist/components/banner-function-declaration.cjs";
2
1
  import * as _$_alloy_js_core0 from "@alloy-js/core";
3
2
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
4
3
  import { CommandTree } from "@shell-shock/core";
4
+ import { BannerFunctionBodyDeclarationProps } from "@shell-shock/plugin-banner/components/banner-function-declaration";
5
5
 
6
6
  //#region src/components/banner-builtin.d.ts
7
7
  /**
@@ -1,5 +1,5 @@
1
- import { BannerFunctionBodyDeclarationProps } from "../plugin-banner/dist/components/banner-function-declaration.mjs";
2
1
  import * as _$_alloy_js_core0 from "@alloy-js/core";
2
+ import { BannerFunctionBodyDeclarationProps } from "@shell-shock/plugin-banner/components/banner-function-declaration";
3
3
  import { CommandTree } from "@shell-shock/core";
4
4
  import { BuiltinFileProps } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
5
5
 
@@ -1,10 +1,10 @@
1
- import { BannerFunctionBodyDeclaration as BannerFunctionBodyDeclaration$1, BannerFunctionDeclarationWrapper } from "../plugin-banner/dist/components/banner-function-declaration.mjs";
2
- import { BannerBuiltin as BannerBuiltin$1 } from "../plugin-banner/dist/components/banner-builtin.mjs";
3
1
  import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
4
2
  import { Show, code, computed, splitProps } from "@alloy-js/core";
5
3
  import { getAppDescription, getAppTitle } from "@shell-shock/core/plugin-utils";
6
4
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
7
5
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
6
+ import { BannerBuiltin as BannerBuiltin$1 } from "@shell-shock/plugin-banner/components/banner-builtin";
7
+ import { BannerFunctionBodyDeclaration as BannerFunctionBodyDeclaration$1, BannerFunctionDeclarationWrapper } from "@shell-shock/plugin-banner/components/banner-function-declaration";
8
8
  import { useTheme } from "@shell-shock/plugin-theme/contexts/theme";
9
9
  import { render } from "cfonts";
10
10
 
@@ -7,17 +7,17 @@ let _alloy_js_typescript = require("@alloy-js/typescript");
7
7
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
8
8
  let _powerlines_plugin_alloy_core_components_spacing = require("@powerlines/plugin-alloy/core/components/spacing");
9
9
  let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
- let _shell_shock_core = require("@shell-shock/core");
11
- let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
12
- let defu = require("defu");
13
- defu = require_runtime.__toESM(defu);
14
- let _stryke_path_join = require("@stryke/path/join");
15
10
  let _powerlines_plugin_alloy_typescript_components_entry_file = require("@powerlines/plugin-alloy/typescript/components/entry-file");
11
+ let _shell_shock_core = require("@shell-shock/core");
16
12
  let _shell_shock_core_components_command_validation_logic = require("@shell-shock/core/components/command-validation-logic");
17
13
  let _shell_shock_preset_script_components_command_entry = require("@shell-shock/preset-script/components/command-entry");
18
14
  let _stryke_path_find = require("@stryke/path/find");
15
+ let _stryke_path_join = require("@stryke/path/join");
19
16
  let _stryke_path_replace = require("@stryke/path/replace");
17
+ let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
20
18
  let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
19
+ let defu = require("defu");
20
+ defu = require_runtime.__toESM(defu);
21
21
 
22
22
  //#region src/components/command-entry.tsx
23
23
  /**
@@ -1,6 +1,6 @@
1
1
  import * as _$_alloy_js_core0 from "@alloy-js/core";
2
- import { CommandTree } from "@shell-shock/core";
3
2
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
3
+ import { CommandTree } from "@shell-shock/core";
4
4
 
5
5
  //#region src/components/command-entry.d.ts
6
6
  interface CommandEntryProps extends Omit<EntryFileProps, "path" | "typeDefinition"> {
@@ -5,16 +5,16 @@ import { ElseIfClause, IfStatement } from "@alloy-js/typescript";
5
5
  import { formatDescription, formatShortDescription, isDynamicPathSegment } from "@shell-shock/core/plugin-utils";
6
6
  import { Spacing } from "@powerlines/plugin-alloy/core/components/spacing";
7
7
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
8
- import { CommandParameterKinds } from "@shell-shock/core";
9
- import { camelCase } from "@stryke/string-format/camel-case";
10
- import defu from "defu";
11
- import { joinPaths } from "@stryke/path/join";
12
8
  import { EntryFile } from "@powerlines/plugin-alloy/typescript/components/entry-file";
9
+ import { CommandParameterKinds } from "@shell-shock/core";
13
10
  import { CommandValidationLogic } from "@shell-shock/core/components/command-validation-logic";
14
11
  import { CommandHandlerDeclaration } from "@shell-shock/preset-script/components/command-entry";
15
12
  import { findFilePath, relativePath } from "@stryke/path/find";
13
+ import { joinPaths } from "@stryke/path/join";
16
14
  import { replaceExtension } from "@stryke/path/replace";
15
+ import { camelCase } from "@stryke/string-format/camel-case";
17
16
  import { pascalCase } from "@stryke/string-format/pascal-case";
17
+ import defu from "defu";
18
18
 
19
19
  //#region src/components/command-entry.tsx
20
20
  /**
@@ -7,10 +7,10 @@ let _alloy_js_core = require("@alloy-js/core");
7
7
  let _powerlines_plugin_alloy_core_components = require("@powerlines/plugin-alloy/core/components");
8
8
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
9
9
  let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
10
- let defu = require("defu");
11
- defu = require_runtime.__toESM(defu);
12
10
  let _stryke_path_join = require("@stryke/path/join");
13
11
  let _stryke_string_format_pascal_case = require("@stryke/string-format/pascal-case");
12
+ let defu = require("defu");
13
+ defu = require_runtime.__toESM(defu);
14
14
  let _powerlines_plugin_alloy_typescript_components_typescript_file = require("@powerlines/plugin-alloy/typescript/components/typescript-file");
15
15
  let _shell_shock_preset_script_components_virtual_command_entry = require("@shell-shock/preset-script/components/virtual-command-entry");
16
16
 
@@ -1,6 +1,6 @@
1
1
  import * as _$_alloy_js_core0 from "@alloy-js/core";
2
- import { CommandTree } from "@shell-shock/core";
3
2
  import { EntryFileProps } from "@powerlines/plugin-alloy/typescript/components/entry-file";
3
+ import { CommandTree } from "@shell-shock/core";
4
4
 
5
5
  //#region src/components/virtual-command-entry.d.ts
6
6
  interface VirtualCommandEntryProps extends Omit<EntryFileProps, "path" | "typeDefinition"> {
@@ -5,9 +5,9 @@ import { For, Show, computed } from "@alloy-js/core";
5
5
  import { Spacing } from "@powerlines/plugin-alloy/core/components";
6
6
  import { isDynamicPathSegment } from "@shell-shock/core/plugin-utils";
7
7
  import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
8
- import defu from "defu";
9
8
  import { joinPaths } from "@stryke/path/join";
10
9
  import { pascalCase } from "@stryke/string-format/pascal-case";
10
+ import defu from "defu";
11
11
  import { TypescriptFile } from "@powerlines/plugin-alloy/typescript/components/typescript-file";
12
12
  import { VirtualCommandHandlerDeclaration } from "@shell-shock/preset-script/components/virtual-command-entry";
13
13
 
package/dist/index.cjs CHANGED
@@ -1,6 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
2
  const require_runtime = require('./_virtual/_rolldown/runtime.cjs');
3
- const require_index = require('./plugin-help/dist/index.cjs');
4
3
  const require_components_banner_builtin = require('./components/banner-builtin.cjs');
5
4
  const require_components_command_router = require('./components/command-router.cjs');
6
5
  const require_components_virtual_command_entry = require('./components/virtual-command-entry.cjs');
@@ -13,14 +12,18 @@ let _alloy_js_typescript = require("@alloy-js/typescript");
13
12
  let _powerlines_plugin_alloy_core_components = require("@powerlines/plugin-alloy/core/components");
14
13
  let _powerlines_plugin_alloy_render = require("@powerlines/plugin-alloy/render");
15
14
  let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
15
+ let _shell_shock_plugin_completions = require("@shell-shock/plugin-completions");
16
+ _shell_shock_plugin_completions = require_runtime.__toESM(_shell_shock_plugin_completions);
16
17
  let _shell_shock_plugin_console = require("@shell-shock/plugin-console");
17
18
  _shell_shock_plugin_console = require_runtime.__toESM(_shell_shock_plugin_console);
18
- let _stryke_path = require("@stryke/path");
19
+ let _shell_shock_plugin_help = require("@shell-shock/plugin-help");
20
+ _shell_shock_plugin_help = require_runtime.__toESM(_shell_shock_plugin_help);
19
21
  let _shell_shock_plugin_prompts = require("@shell-shock/plugin-prompts");
20
22
  _shell_shock_plugin_prompts = require_runtime.__toESM(_shell_shock_plugin_prompts);
21
23
  let _shell_shock_plugin_upgrade = require("@shell-shock/plugin-upgrade");
22
24
  _shell_shock_plugin_upgrade = require_runtime.__toESM(_shell_shock_plugin_upgrade);
23
25
  let _shell_shock_preset_script_components_bin_entry = require("@shell-shock/preset-script/components/bin-entry");
26
+ let _stryke_path = require("@stryke/path");
24
27
 
25
28
  //#region src/index.tsx
26
29
  /**
@@ -32,8 +35,9 @@ let _shell_shock_preset_script_components_bin_entry = require("@shell-shock/pres
32
35
  const plugin = (options = {}) => {
33
36
  return [
34
37
  ...(0, _shell_shock_plugin_console.default)(options),
35
- ...require_index.plugin(options),
38
+ ...(0, _shell_shock_plugin_help.default)(options),
36
39
  ...(0, _shell_shock_plugin_prompts.default)(options),
40
+ ...options.completions !== false ? (0, _shell_shock_plugin_completions.default)(options.completions) : [],
37
41
  (0, _shell_shock_plugin_upgrade.default)(options),
38
42
  {
39
43
  name: "shell-shock:cli-preset",
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AAgDA;;;;cAAa,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AAiDA;;;;cAAa,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KACR,MAAA,CAAO,QAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AAgDA;;;;cAAa,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KACR,MAAA,CAAO,QAAA"}
1
+ {"version":3,"file":"index.d.mts","names":[],"sources":["../src/index.tsx"],"mappings":";;;;;;AAiDA;;;;cAAa,MAAA,oBAA2B,gBAAA,GAAmB,gBAAA,EACzD,OAAA,GAAS,gBAAA,KACR,MAAA,CAAO,QAAA"}
package/dist/index.mjs CHANGED
@@ -1,4 +1,3 @@
1
- import { plugin as plugin$1 } from "./plugin-help/dist/index.mjs";
2
1
  import { BannerBuiltin } from "./components/banner-builtin.mjs";
3
2
  import { CommandRouter } from "./components/command-router.mjs";
4
3
  import { VirtualCommandEntry } from "./components/virtual-command-entry.mjs";
@@ -11,11 +10,13 @@ import { VarDeclaration } from "@alloy-js/typescript";
11
10
  import { Spacing } from "@powerlines/plugin-alloy/core/components";
12
11
  import { render } from "@powerlines/plugin-alloy/render";
13
12
  import { getAppDescription, getAppName, getCommandList } from "@shell-shock/core/plugin-utils";
13
+ import completions from "@shell-shock/plugin-completions";
14
14
  import console from "@shell-shock/plugin-console";
15
- import { joinPaths } from "@stryke/path";
15
+ import help from "@shell-shock/plugin-help";
16
16
  import prompts from "@shell-shock/plugin-prompts";
17
17
  import upgrade from "@shell-shock/plugin-upgrade";
18
18
  import { BinEntry } from "@shell-shock/preset-script/components/bin-entry";
19
+ import { joinPaths } from "@stryke/path";
19
20
 
20
21
  //#region src/index.tsx
21
22
  /**
@@ -27,8 +28,9 @@ import { BinEntry } from "@shell-shock/preset-script/components/bin-entry";
27
28
  const plugin = (options = {}) => {
28
29
  return [
29
30
  ...console(options),
30
- ...plugin$1(options),
31
+ ...help(options),
31
32
  ...prompts(options),
33
+ ...options.completions !== false ? completions(options.completions) : [],
32
34
  upgrade(options),
33
35
  {
34
36
  name: "shell-shock:cli-preset",
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, computed, For, Show } from \"@alloy-js/core\";\nimport { VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport {\n getAppDescription,\n getAppName,\n getCommandList\n} from \"@shell-shock/core/plugin-utils\";\nimport console from \"@shell-shock/plugin-console\";\nimport help from \"@shell-shock/plugin-help\";\nimport prompts from \"@shell-shock/plugin-prompts\";\nimport upgrade from \"@shell-shock/plugin-upgrade\";\nimport { BinEntry } from \"@shell-shock/preset-script/components/bin-entry\";\nimport { joinPaths } from \"@stryke/path\";\nimport type { Plugin } from \"powerlines\";\nimport { BannerBuiltin } from \"./components/banner-builtin\";\nimport { CommandEntry } from \"./components/command-entry\";\nimport { CommandRouter } from \"./components/command-router\";\nimport { UpgradeBuiltin } from \"./components/upgrade-builtin\";\nimport { VirtualCommandEntry } from \"./components/virtual-command-entry\";\nimport { getDefaultOptions } from \"./helpers/get-default-options\";\nimport type { CLIPresetContext, CLIPresetOptions } from \"./types/plugin\";\n\n/**\n * The Shell Shock CLI Preset plugin.\n *\n * @remarks\n * This preset includes a set of built-in modules and commands to create a CLI application, as well as configuration options to customize the generated code. It also includes the `prompts` plugin to provide interactive prompts in the CLI application, and the `upgrade` plugin to manage upgrading the local application's version.\n */\nexport const plugin = <TContext extends CLIPresetContext = CLIPresetContext>(\n options: CLIPresetOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...console<TContext>(options),\n ...help<TContext>(options),\n ...prompts<TContext>(options),\n upgrade<TContext>(options),\n {\n name: \"shell-shock:cli-preset\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `cli` preset.\"\n );\n\n return {\n defaultOptions: getDefaultOptions,\n isCaseSensitive: false,\n ...options\n };\n },\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\"Rendering built-in modules.\");\n\n const commands = await getCommandList(this);\n this.debug(\n `Rendering \\`banner\\` built-ins for each of the ${\n commands.length\n } command modules.`\n );\n\n const bin = computed(() => ({\n id: \"\",\n name: getAppName(this),\n title: \"\",\n description: getAppDescription(this),\n isVirtual: true,\n path: null,\n segments: [],\n alias: [],\n tags: [],\n options: Object.fromEntries(\n this.options.map(option => [option.name, option])\n ),\n entry: {\n file: joinPaths(this.entryPath, \"bin.ts\")\n },\n args: [],\n parent: null,\n children: this.commands\n }));\n\n return render(\n this,\n <>\n <UpgradeBuiltin />\n <BannerBuiltin command={bin.value} />\n <Spacing />\n <For\n each={commands.sort((a, b) => a.name.localeCompare(b.name))}\n doubleHardline>\n {command => <BannerBuiltin command={command} />}\n </For>\n </>\n );\n }\n }\n },\n {\n name: \"shell-shock:cli-preset:generate-entrypoint\",\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\n \"Rendering entrypoint modules for the Shell Shock `cli` preset.\"\n );\n\n return render(\n this,\n <>\n <BinEntry\n builtinImports={{\n console: [\n \"info\",\n \"debug\",\n \"warn\",\n \"help\",\n \"error\",\n \"cursor\",\n \"divider\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\",\n \"colors\"\n ],\n utils: [\n \"useApp\",\n \"useArgs\",\n \"isMinimal\",\n \"isInteractive\",\n \"isHelp\"\n ],\n prompts: [\n \"text\",\n \"numeric\",\n \"toggle\",\n \"select\",\n \"confirm\",\n \"isCancel\"\n ],\n env: [\"env\", \"paths\"],\n upgrade: [\"executeUpgrade\"]\n }}>\n <Show when={Object.keys(this.commands).length > 0}>\n <VarDeclaration\n let\n name=\"args\"\n type=\"string[]\"\n initializer={code`useArgs();`}\n />\n <hbr />\n <CommandRouter segments={[]} commands={this.commands ?? {}} />\n <hbr />\n </Show>\n <hbr />\n {code`await showBanner(0);`}\n <Spacing />\n {code`return showHelp(); `}\n </BinEntry>\n <Show when={Object.values(this.commands).length > 0}>\n <For each={Object.values(this.commands)} doubleHardline>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </Show>\n </>\n );\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AA6CA,MAAI,UAAA,UAAA,EAAA,KAAA;AACF,QAAM;EAAA,GAAA,QAAsB,QAAS;EAAE,GAAC,SAAY,QAAY;EAAA,GAAM,QAAkB,QAAK;EAAK,QAAiB,QAAQ;EAAG;GAC9H,MAAA;GACF,SAAa;AACX,SAAS,MAAA,oEAAoB;AAC5B,WAAO;KACF,gBAAC;KACF,iBAAkB;KAClB,GAAI;KACJ;;GAEH,SAAA;IACE,OAAO;IACP,MAAM,UAAG;AACP,UAAK,MAAK,8BAAA;KACV,MAAG,WAAU,MAAQ,eAAiB,KAAK;AAC3C,UAAC,MAAA,kDAAA,SAAA,OAAA,mBAAA;;MAED,IAAM;MACJ,MAAA,WAAgB,KAAA;MAChB,OAAA;MACA,aAAG,kBAAA,KAAA;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A;AACP,oBAAU,OAAW,YAAY,EAAA;;;;;;SAIlC,CAAA;QAAI,gBAAA,OAAA,EAAA,CAAA;QAAA,IAAA;QAAA,gBAAA,SAAA,EAAA,CAAA;QAAA,IAAA;QAAA;;MAEP,CAAC,EAAE,gBAAG,MAAA;MACL,IAAI,OAAE;AACJ,cAAM,OAAQ,OAAC,OAAA,SAAA,CAAA,SAAA;;MAEjB,IAAI,WAAO;AACT,cAAO,gBAAO,KAAA;QACZ,IAAI,OAAO;AACT,gBAAK,OAAM,OAAA,OAAA,SAAA;;QAEb,gBAAe;QACf,WAAO,UAAU,gBAAA,MAAA;SACf,IAAI,OAAC;AACH,iBAAG,MAAU;;SAEf,IAAG,WAAA;AACD,iBAAO,gBAAA,cAAA,EACL,SAAQ,OACT,CAAC;;SAEJ,IAAI,WAAC;AACH,iBAAG,gBAAM,qBAAA,EACR,SAAA,OACD,CAAA;;SAEH,CAAC;QACH,CAAC;;MAEL,CAAC,CAAC,CAAC;;IAEP;GACF;EAAC"}
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.tsx"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport { code, computed, For, Show } from \"@alloy-js/core\";\nimport { VarDeclaration } from \"@alloy-js/typescript\";\nimport { Spacing } from \"@powerlines/plugin-alloy/core/components\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport {\n getAppDescription,\n getAppName,\n getCommandList\n} from \"@shell-shock/core/plugin-utils\";\nimport completions from \"@shell-shock/plugin-completions\";\nimport console from \"@shell-shock/plugin-console\";\nimport help from \"@shell-shock/plugin-help\";\nimport prompts from \"@shell-shock/plugin-prompts\";\nimport upgrade from \"@shell-shock/plugin-upgrade\";\nimport { BinEntry } from \"@shell-shock/preset-script/components/bin-entry\";\nimport { joinPaths } from \"@stryke/path\";\nimport type { Plugin } from \"powerlines\";\nimport { BannerBuiltin } from \"./components/banner-builtin\";\nimport { CommandEntry } from \"./components/command-entry\";\nimport { CommandRouter } from \"./components/command-router\";\nimport { UpgradeBuiltin } from \"./components/upgrade-builtin\";\nimport { VirtualCommandEntry } from \"./components/virtual-command-entry\";\nimport { getDefaultOptions } from \"./helpers/get-default-options\";\nimport type { CLIPresetContext, CLIPresetOptions } from \"./types/plugin\";\n\n/**\n * The Shell Shock CLI Preset plugin.\n *\n * @remarks\n * This preset includes a set of built-in modules and commands to create a CLI application, as well as configuration options to customize the generated code. It also includes the `prompts` plugin to provide interactive prompts in the CLI application, and the `upgrade` plugin to manage upgrading the local application's version.\n */\nexport const plugin = <TContext extends CLIPresetContext = CLIPresetContext>(\n options: CLIPresetOptions = {}\n): Plugin<TContext>[] => {\n return [\n ...console<TContext>(options),\n ...help<TContext>(options),\n ...prompts<TContext>(options),\n ...(options.completions !== false\n ? completions<TContext>(options.completions)\n : []),\n upgrade<TContext>(options),\n {\n name: \"shell-shock:cli-preset\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `cli` preset.\"\n );\n\n return {\n defaultOptions: getDefaultOptions,\n isCaseSensitive: false,\n ...options\n };\n },\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\"Rendering built-in modules.\");\n\n const commands = await getCommandList(this);\n this.debug(\n `Rendering \\`banner\\` built-ins for each of the ${\n commands.length\n } command modules.`\n );\n\n const bin = computed(() => ({\n id: \"\",\n name: getAppName(this),\n title: \"\",\n description: getAppDescription(this),\n isVirtual: true,\n path: null,\n segments: [],\n alias: [],\n tags: [],\n options: Object.fromEntries(\n this.options.map(option => [option.name, option])\n ),\n entry: {\n file: joinPaths(this.entryPath, \"bin.ts\")\n },\n args: [],\n parent: null,\n children: this.commands\n }));\n\n return render(\n this,\n <>\n <UpgradeBuiltin />\n <BannerBuiltin command={bin.value} />\n <Spacing />\n <For\n each={commands.sort((a, b) => a.name.localeCompare(b.name))}\n doubleHardline>\n {command => <BannerBuiltin command={command} />}\n </For>\n </>\n );\n }\n }\n },\n {\n name: \"shell-shock:cli-preset:generate-entrypoint\",\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\n \"Rendering entrypoint modules for the Shell Shock `cli` preset.\"\n );\n\n return render(\n this,\n <>\n <BinEntry\n builtinImports={{\n console: [\n \"info\",\n \"debug\",\n \"warn\",\n \"help\",\n \"error\",\n \"cursor\",\n \"divider\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\",\n \"colors\"\n ],\n utils: [\n \"useApp\",\n \"useArgs\",\n \"isMinimal\",\n \"isInteractive\",\n \"isHelp\"\n ],\n prompts: [\n \"text\",\n \"numeric\",\n \"toggle\",\n \"select\",\n \"confirm\",\n \"isCancel\"\n ],\n env: [\"env\", \"paths\"],\n upgrade: [\"executeUpgrade\"]\n }}>\n <Show when={Object.keys(this.commands).length > 0}>\n <VarDeclaration\n let\n name=\"args\"\n type=\"string[]\"\n initializer={code`useArgs();`}\n />\n <hbr />\n <CommandRouter segments={[]} commands={this.commands ?? {}} />\n <hbr />\n </Show>\n <hbr />\n {code`await showBanner(0);`}\n <Spacing />\n {code`return showHelp(); `}\n </BinEntry>\n <Show when={Object.values(this.commands).length > 0}>\n <For each={Object.values(this.commands)} doubleHardline>\n {child => (\n <Show\n when={child.isVirtual}\n fallback={<CommandEntry command={child} />}>\n <VirtualCommandEntry command={child} />\n </Show>\n )}\n </For>\n </Show>\n </>\n );\n }\n }\n }\n ];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;AA8CA,MAAI,UAAA,UAAA,EAAA,KAAA;AACF,QAAM;EAAA,GAAA,QAAs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ResolvedConfig, BannerPluginUserConfig } from "../plugin-banner/dist/types/plugin.cjs";
2
- import { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig } from "../plugin-help/dist/types/plugin.cjs";
3
1
  import { CommandBase, CommandOption, Context, UserConfig } from "@shell-shock/core";
4
- import { ResolvedConfig as ResolvedConfig$1 } from "powerlines";
2
+ import { ResolvedConfig } from "powerlines";
3
+ import { BannerPluginContext, BannerPluginOptions, BannerPluginResolvedConfig, BannerPluginUserConfig } from "@shell-shock/plugin-banner";
4
+ import { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig } from "@shell-shock/plugin-completions";
5
5
  import { ConsolePluginContext, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "@shell-shock/plugin-console";
6
+ import { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig } from "@shell-shock/plugin-help";
6
7
  import { PromptsPluginContext, PromptsPluginOptions, PromptsPluginResolvedConfig, PromptsPluginUserConfig } from "@shell-shock/plugin-prompts/types/plugin";
7
8
  import { ThemePluginContext, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
8
9
  import { UpgradePluginContext, UpgradePluginOptions, UpgradePluginResolvedConfig, UpgradePluginUserConfig } from "@shell-shock/plugin-upgrade/types/plugin";
@@ -54,10 +55,14 @@ type CLIPresetOptions = Omit<ScriptPresetOptions, "defaultOptions"> & HelpPlugin
54
55
  * The title to display in the banner for the CLI application. If not specified, the application name will be used.
55
56
  */
56
57
  banner?: Pick<BannerPluginOptions, "title">;
58
+ /**
59
+ * Configuration options for the `completions` plugin. This field allows you to customize the behavior of the `completions` plugin, which provides commands for generating shell completion scripts for the CLI application. You can specify which shells to generate completions for, and other related settings.
60
+ */
61
+ completions?: Pick<CompletionsPluginOptions, "shells"> | false;
57
62
  };
58
- type CLIPresetUserConfig = UserConfig & ThemePluginUserConfig & ConsolePluginUserConfig & PromptsPluginUserConfig & BannerPluginUserConfig & HelpPluginUserConfig & UpgradePluginUserConfig & CLIPresetOptions;
59
- type CLIPresetResolvedConfig = ResolvedConfig$1 & ThemePluginResolvedConfig & ConsolePluginResolvedConfig & PromptsPluginResolvedConfig & BannerPluginResolvedConfig & HelpPluginResolvedConfig & UpgradePluginResolvedConfig & Required<CLIPresetOptions>;
60
- type CLIPresetContext<TResolvedConfig extends CLIPresetResolvedConfig = CLIPresetResolvedConfig> = Context<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & PromptsPluginContext<TResolvedConfig> & BannerPluginContext<TResolvedConfig> & HelpPluginContext<TResolvedConfig> & UpgradePluginContext<TResolvedConfig>;
63
+ type CLIPresetUserConfig = UserConfig & ThemePluginUserConfig & ConsolePluginUserConfig & PromptsPluginUserConfig & BannerPluginUserConfig & HelpPluginUserConfig & CompletionsPluginUserConfig & UpgradePluginUserConfig & CLIPresetOptions;
64
+ type CLIPresetResolvedConfig = ResolvedConfig & ThemePluginResolvedConfig & ConsolePluginResolvedConfig & PromptsPluginResolvedConfig & BannerPluginResolvedConfig & HelpPluginResolvedConfig & CompletionsPluginResolvedConfig & UpgradePluginResolvedConfig & Required<CLIPresetOptions>;
65
+ type CLIPresetContext<TResolvedConfig extends CLIPresetResolvedConfig = CLIPresetResolvedConfig> = Context<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & PromptsPluginContext<TResolvedConfig> & BannerPluginContext<TResolvedConfig> & HelpPluginContext<TResolvedConfig> & CompletionsPluginContext<TResolvedConfig> & UpgradePluginContext<TResolvedConfig>;
61
66
  //#endregion
62
67
  export { CLIPresetContext, CLIPresetOptions, CLIPresetResolvedConfig, CLIPresetUserConfig, UpgradeType };
63
68
  //# sourceMappingURL=plugin.d.cts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;K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d,WAAA,GAAc,IAAA,CAAK,wBAAA;AAAA;AAAA,KAGX,mBAAA,GAAsB,UAAA,GAChC,qBAAA,GACA,uBAAA,GACA,uBAAA,GACA,sBAAA,GACA,oBAAA,GACA,2BAAA,GACA,uBAAA,GACA,gBAAA;AAAA,KAEU,uBAAA,GAA0B,cAAA,GACpC,yBAAA,GACA,2BAAA,GACA,2BAAA,GACA,0BAAA,GACA,wBAAA,GACA,+BAAA,GACA,2BAAA,GACA,QAAA,CAAS,gBAAA;AAAA,KAEC,gBAAA,yBACc,uBAAA,GAA0B,uBAAA,IAChD,OAAA,CAAQ,eAAA,IACV,kBAAA,CAAmB,eAAA,IACnB,oBAAA,CAAqB,eAAA,IACrB,oBAAA,CAAqB,eAAA,IACrB,mBAAA,CAAoB,eAAA,IACpB,iBAAA,CAAkB,eAAA,IAClB,wBAAA,CAAyB,eAAA,IACzB,oBAAA,CAAqB,eAAA"}
@@ -1,8 +1,9 @@
1
- import { BannerPluginContext, BannerPluginOptions, BannerPluginResolvedConfig, BannerPluginUserConfig } from "../plugin-banner/dist/types/plugin.mjs";
2
- import { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig } from "../plugin-help/dist/types/plugin.mjs";
1
+ import { CompletionsPluginContext, CompletionsPluginOptions, CompletionsPluginResolvedConfig, CompletionsPluginUserConfig } from "@shell-shock/plugin-completions";
3
2
  import { ConsolePluginContext, ConsolePluginResolvedConfig, ConsolePluginUserConfig } from "@shell-shock/plugin-console";
3
+ import { HelpPluginContext, HelpPluginOptions, HelpPluginResolvedConfig, HelpPluginUserConfig } from "@shell-shock/plugin-help";
4
4
  import { CommandBase, CommandOption, Context, UserConfig } from "@shell-shock/core";
5
- import { ResolvedConfig as ResolvedConfig$1 } from "powerlines";
5
+ import { ResolvedConfig } from "powerlines";
6
+ import { BannerPluginContext, BannerPluginOptions, BannerPluginResolvedConfig, BannerPluginUserConfig } from "@shell-shock/plugin-banner";
6
7
  import { PromptsPluginContext, PromptsPluginOptions, PromptsPluginResolvedConfig, PromptsPluginUserConfig } from "@shell-shock/plugin-prompts/types/plugin";
7
8
  import { ThemePluginContext, ThemePluginResolvedConfig, ThemePluginUserConfig } from "@shell-shock/plugin-theme/types/plugin";
8
9
  import { UpgradePluginContext, UpgradePluginOptions, UpgradePluginResolvedConfig, UpgradePluginUserConfig } from "@shell-shock/plugin-upgrade/types/plugin";
@@ -54,10 +55,14 @@ type CLIPresetOptions = Omit<ScriptPresetOptions, "defaultOptions"> & HelpPlugin
54
55
  * The title to display in the banner for the CLI application. If not specified, the application name will be used.
55
56
  */
56
57
  banner?: Pick<BannerPluginOptions, "title">;
58
+ /**
59
+ * Configuration options for the `completions` plugin. This field allows you to customize the behavior of the `completions` plugin, which provides commands for generating shell completion scripts for the CLI application. You can specify which shells to generate completions for, and other related settings.
60
+ */
61
+ completions?: Pick<CompletionsPluginOptions, "shells"> | false;
57
62
  };
58
- type CLIPresetUserConfig = UserConfig & ThemePluginUserConfig & ConsolePluginUserConfig & PromptsPluginUserConfig & BannerPluginUserConfig & HelpPluginUserConfig & UpgradePluginUserConfig & CLIPresetOptions;
59
- type CLIPresetResolvedConfig = ResolvedConfig$1 & ThemePluginResolvedConfig & ConsolePluginResolvedConfig & PromptsPluginResolvedConfig & BannerPluginResolvedConfig & HelpPluginResolvedConfig & UpgradePluginResolvedConfig & Required<CLIPresetOptions>;
60
- type CLIPresetContext<TResolvedConfig extends CLIPresetResolvedConfig = CLIPresetResolvedConfig> = Context<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & PromptsPluginContext<TResolvedConfig> & BannerPluginContext<TResolvedConfig> & HelpPluginContext<TResolvedConfig> & UpgradePluginContext<TResolvedConfig>;
63
+ type CLIPresetUserConfig = UserConfig & ThemePluginUserConfig & ConsolePluginUserConfig & PromptsPluginUserConfig & BannerPluginUserConfig & HelpPluginUserConfig & CompletionsPluginUserConfig & UpgradePluginUserConfig & CLIPresetOptions;
64
+ type CLIPresetResolvedConfig = ResolvedConfig & ThemePluginResolvedConfig & ConsolePluginResolvedConfig & PromptsPluginResolvedConfig & BannerPluginResolvedConfig & HelpPluginResolvedConfig & CompletionsPluginResolvedConfig & UpgradePluginResolvedConfig & Required<CLIPresetOptions>;
65
+ type CLIPresetContext<TResolvedConfig extends CLIPresetResolvedConfig = CLIPresetResolvedConfig> = Context<TResolvedConfig> & ThemePluginContext<TResolvedConfig> & ConsolePluginContext<TResolvedConfig> & PromptsPluginContext<TResolvedConfig> & BannerPluginContext<TResolvedConfig> & HelpPluginContext<TResolvedConfig> & CompletionsPluginContext<TResolvedConfig> & UpgradePluginContext<TResolvedConfig>;
61
66
  //#endregion
62
67
  export { CLIPresetContext, CLIPresetOptions, CLIPresetResolvedConfig, CLIPresetUserConfig, UpgradeType };
63
68
  //# sourceMappingURL=plugin.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;KA6DY,WAAA;AAAA,KAEA,gBAAA,GAAmB,IAAA,CAAK,mBAAA,sBAClC,iBAAA,GACA,oBAAA,GACA,oBAAA;;;AALF;;;;;AAEA;;;;EAeI,WAAA;EAdF;;;;;;;;;;;;;;EA8BE,cAAA,GACI,aAAA,OACE,OAAA,EAAS,OAAA,EAAS,KAAA,EAAO,WAAA,KAAgB,aAAA;EA/BjD;;;;;;;;;;;EA6CE,WAAA,GAAc,WAAA;EAKd;;;EAAA,MAAA,GAAS,IAAA,CAAK,mBAAA;AAAA;AAAA,KAGN,mBAAA,GAAsB,UAAA,GAChC,qBAAA,GACA,uBAAA,GACA,uBAAA,GACA,sBAAA,GACA,oBAAA,GACA,uBAAA,GACA,gBAAA;AAAA,KAEU,uBAAA,GAA0B,gBAAA,GACpC,yBAAA,GACA,2BAAA,GACA,2BAAA,GACA,0BAAA,GACA,wBAAA,GACA,2BAAA,GACA,QAAA,CAAS,gBAAA;AAAA,KAEC,gBAAA,yBACc,uBAAA,GAA0B,uBAAA,IAChD,OAAA,CAAQ,eAAA,IACV,kBAAA,CAAmB,eAAA,IACnB,oBAAA,CAAqB,eAAA,IACrB,oBAAA,CAAqB,eAAA,IACrB,mBAAA,CAAoB,eAAA,IACpB,iBAAA,CAAkB,eAAA,IAClB,oBAAA,CAAqB,eAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;;;;;;;KAmEY,WAAA;AAAA,KAEA,gBAAA,GAAmB,IAAA,CAAK,mBAAA,sBAClC,iBAAA,GACA,oBAAA,GACA,oBAAA;EALU;;;;;AAEZ;;;;;;EAeI,WAAA;EAZF;;;;;;;;;;;;;;EA4BE,cAAA,GACI,aAAA,OACE,OAAA,EAAS,OAAA,EAAS,KAAA,EAAO,WAAA,KAAgB,aAAA;EA/BjD;;;;;;;;;;;EA6CE,WAAA,GAAc,WAAA;EAKd;;;EAAA,MAAA,GAAS,IAAA,CAAK,mBAAA;EAKA;;;EAAd,WAAA,GAAc,IAAA,CAAK,wBAAA;AAAA;AAAA,KAGX,mBAAA,GAAsB,UAAA,GAChC,qBAAA,GACA,uBAAA,GACA,uBAAA,GACA,sBAAA,GACA,oBAAA,GACA,2BAAA,GACA,uBAAA,GACA,gBAAA;AAAA,KAEU,uBAAA,GAA0B,cAAA,GACpC,yBAAA,GACA,2BAAA,GACA,2BAAA,GACA,0BAAA,GACA,wBAAA,GACA,+BAAA,GACA,2BAAA,GACA,QAAA,CAAS,gBAAA;AAAA,KAEC,gBAAA,yBACc,uBAAA,GAA0B,uBAAA,IAChD,OAAA,CAAQ,eAAA,IACV,kBAAA,CAAmB,eAAA,IACnB,oBAAA,CAAqB,eAAA,IACrB,oBAAA,CAAqB,eAAA,IACrB,mBAAA,CAAoB,eAAA,IACpB,iBAAA,CAAkB,eAAA,IAClB,wBAAA,CAAyB,eAAA,IACzB,oBAAA,CAAqB,eAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/preset-cli",
3
- "version": "0.8.20",
3
+ "version": "0.9.1",
4
4
  "private": false,
5
5
  "description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
6
6
  "keywords": [
@@ -181,21 +181,24 @@
181
181
  "dependencies": {
182
182
  "@alloy-js/core": "0.23.0-dev.8",
183
183
  "@alloy-js/typescript": "0.23.0-dev.4",
184
- "@powerlines/deepkit": "^0.6.162",
185
- "@powerlines/plugin-alloy": "^0.25.70",
186
- "@powerlines/plugin-plugin": "^0.12.334",
187
- "@shell-shock/core": "^0.14.2",
188
- "@shell-shock/plugin-console": "^0.1.28",
189
- "@shell-shock/plugin-prompts": "^0.3.29",
190
- "@shell-shock/plugin-theme": "^0.4.1",
191
- "@shell-shock/plugin-upgrade": "^0.1.34",
192
- "@shell-shock/preset-script": "^0.6.43",
184
+ "@powerlines/deepkit": "^0.6.163",
185
+ "@powerlines/plugin-alloy": "^0.26.0",
186
+ "@powerlines/plugin-plugin": "^0.12.335",
187
+ "@shell-shock/core": "^0.14.4",
188
+ "@shell-shock/plugin-banner": "^0.1.17",
189
+ "@shell-shock/plugin-completions": "^0.3.0",
190
+ "@shell-shock/plugin-console": "^0.1.30",
191
+ "@shell-shock/plugin-help": "^0.2.8",
192
+ "@shell-shock/plugin-prompts": "^0.3.31",
193
+ "@shell-shock/plugin-theme": "^0.4.3",
194
+ "@shell-shock/plugin-upgrade": "^0.1.36",
195
+ "@shell-shock/preset-script": "^0.6.45",
193
196
  "@stryke/path": "^0.27.3",
194
197
  "@stryke/string-format": "^0.17.7",
195
198
  "@stryke/type-checks": "^0.6.0",
196
199
  "cfonts": "^3.3.1",
197
200
  "defu": "^6.1.4",
198
- "powerlines": "^0.42.24"
201
+ "powerlines": "^0.42.25"
199
202
  },
200
203
  "devDependencies": {
201
204
  "@babel/core": "^7.29.0",
@@ -225,5 +228,5 @@
225
228
  "./package.json": "./package.json"
226
229
  }
227
230
  },
228
- "gitHead": "081a1a99ff0c263af9b6d34547d02e96d0ac398e"
231
+ "gitHead": "d123fb843b98e07d65b61f69f3f6a74b68ddc3b0"
229
232
  }
@@ -1,63 +0,0 @@
1
- const require_runtime = require('../../../_virtual/_rolldown/runtime.cjs');
2
- const require_banner_function_declaration = require('./banner-function-declaration.cjs');
3
- let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
4
- let _alloy_js_core = require("@alloy-js/core");
5
- let _shell_shock_core_plugin_utils = require("@shell-shock/core/plugin-utils");
6
- let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
7
- let defu = require("defu");
8
- defu = require_runtime.__toESM(defu);
9
- let _powerlines_plugin_alloy_typescript_components_builtin_file = require("@powerlines/plugin-alloy/typescript/components/builtin-file");
10
- let _stryke_path = require("@stryke/path");
11
-
12
- //#region ../plugin-banner/dist/components/banner-builtin.mjs
13
- /**
14
- * A built-in banner module for Shell Shock.
15
- */
16
- function BannerBuiltin(props) {
17
- const [{ command, children }, rest] = (0, _alloy_js_core.splitProps)(props, ["command", "children"]);
18
- const context = (0, _powerlines_plugin_alloy_core_contexts_context.usePowerlines)();
19
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_powerlines_plugin_alloy_typescript_components_builtin_file.BuiltinFile, (0, _alloy_js_core_jsx_runtime.mergeProps)({
20
- get id() {
21
- return (0, _stryke_path.joinPaths)("banner", ...command.segments.filter((segment) => !(0, _shell_shock_core_plugin_utils.isDynamicPathSegment)(segment)));
22
- },
23
- get description() {
24
- return (0, _alloy_js_core_jsx_runtime.memo)(() => !!command.path)() ? `A collection of utility functions that assist in displaying banner information for the ${command.title} command.` : `A collection of utility functions that assist in displaying banner information for the ${(0, _shell_shock_core_plugin_utils.getAppTitle)(context, true)} command-line interface application.`;
25
- }
26
- }, rest, {
27
- get builtinImports() {
28
- return (0, defu.default)(rest.builtinImports ?? {}, {
29
- utils: [
30
- "isUnicodeSupported",
31
- "useApp",
32
- "hasFlag",
33
- "isMinimal",
34
- "sleep",
35
- "isInteractive",
36
- "isHelp"
37
- ],
38
- console: [
39
- "splitText",
40
- "writeLine",
41
- "colors",
42
- "help",
43
- "table",
44
- "stripAnsi"
45
- ]
46
- });
47
- },
48
- get children() {
49
- return (0, _alloy_js_core_jsx_runtime.createComponent)(_alloy_js_core.Show, {
50
- get when() {
51
- return Boolean(children);
52
- },
53
- get fallback() {
54
- return (0, _alloy_js_core_jsx_runtime.createComponent)(require_banner_function_declaration.BannerFunctionDeclaration, { command });
55
- },
56
- children
57
- });
58
- }
59
- }));
60
- }
61
-
62
- //#endregion
63
- exports.BannerBuiltin = BannerBuiltin;
@@ -1,62 +0,0 @@
1
- import { BannerFunctionDeclaration } from "./banner-function-declaration.mjs";
2
- import { createComponent, memo, mergeProps } from "@alloy-js/core/jsx-runtime";
3
- import { Show, splitProps } from "@alloy-js/core";
4
- import { getAppTitle, isDynamicPathSegment } from "@shell-shock/core/plugin-utils";
5
- import { usePowerlines } from "@powerlines/plugin-alloy/core/contexts/context";
6
- import defu from "defu";
7
- import { BuiltinFile } from "@powerlines/plugin-alloy/typescript/components/builtin-file";
8
- import { joinPaths } from "@stryke/path";
9
-
10
- //#region ../plugin-banner/dist/components/banner-builtin.mjs
11
- /**
12
- * A built-in banner module for Shell Shock.
13
- */
14
- function BannerBuiltin(props) {
15
- const [{ command, children }, rest] = splitProps(props, ["command", "children"]);
16
- const context = usePowerlines();
17
- return createComponent(BuiltinFile, mergeProps({
18
- get id() {
19
- return joinPaths("banner", ...command.segments.filter((segment) => !isDynamicPathSegment(segment)));
20
- },
21
- get description() {
22
- return memo(() => !!command.path)() ? `A collection of utility functions that assist in displaying banner information for the ${command.title} command.` : `A collection of utility functions that assist in displaying banner information for the ${getAppTitle(context, true)} command-line interface application.`;
23
- }
24
- }, rest, {
25
- get builtinImports() {
26
- return defu(rest.builtinImports ?? {}, {
27
- utils: [
28
- "isUnicodeSupported",
29
- "useApp",
30
- "hasFlag",
31
- "isMinimal",
32
- "sleep",
33
- "isInteractive",
34
- "isHelp"
35
- ],
36
- console: [
37
- "splitText",
38
- "writeLine",
39
- "colors",
40
- "help",
41
- "table",
42
- "stripAnsi"
43
- ]
44
- });
45
- },
46
- get children() {
47
- return createComponent(Show, {
48
- get when() {
49
- return Boolean(children);
50
- },
51
- get fallback() {
52
- return createComponent(BannerFunctionDeclaration, { command });
53
- },
54
- children
55
- });
56
- }
57
- }));
58
- }
59
-
60
- //#endregion
61
- export { BannerBuiltin };
62
- //# sourceMappingURL=banner-builtin.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"banner-builtin.mjs","names":[],"sources":["../../../../../plugin-banner/dist/components/banner-builtin.mjs"],"sourcesContent":["import { BannerFunctionDeclaration } from \"./banner-function-declaration.mjs\";\nimport { createComponent, memo, mergeProps } from \"@alloy-js/core/jsx-runtime\";\nimport { Show, splitProps } from \"@alloy-js/core\";\nimport { getAppTitle, isDynamicPathSegment } from \"@shell-shock/core/plugin-utils\";\nimport { usePowerlines } from \"@powerlines/plugin-alloy/core/contexts/context\";\nimport { BuiltinFile } from \"@powerlines/plugin-alloy/typescript/components/builtin-file\";\nimport { joinPaths } from \"@stryke/path\";\nimport defu from \"defu\";\n\n//#region src/components/banner-builtin.tsx\n/**\n* A built-in banner module for Shell Shock.\n*/\nfunction BannerBuiltin(props) {\n\tconst [{ command, children }, rest] = splitProps(props, [\"command\", \"children\"]);\n\tconst context = usePowerlines();\n\treturn createComponent(BuiltinFile, mergeProps({\n\t\tget id() {\n\t\t\treturn joinPaths(\"banner\", ...command.segments.filter((segment) => !isDynamicPathSegment(segment)));\n\t\t},\n\t\tget description() {\n\t\t\treturn memo(() => !!command.path)() ? `A collection of utility functions that assist in displaying banner information for the ${command.title} command.` : `A collection of utility functions that assist in displaying banner information for the ${getAppTitle(context, true)} command-line interface application.`;\n\t\t}\n\t}, rest, {\n\t\tget builtinImports() {\n\t\t\treturn defu(rest.builtinImports ?? {}, {\n\t\t\t\tutils: [\n\t\t\t\t\t\"isUnicodeSupported\",\n\t\t\t\t\t\"useApp\",\n\t\t\t\t\t\"hasFlag\",\n\t\t\t\t\t\"isMinimal\",\n\t\t\t\t\t\"sleep\",\n\t\t\t\t\t\"isInteractive\",\n\t\t\t\t\t\"isHelp\"\n\t\t\t\t],\n\t\t\t\tconsole: [\n\t\t\t\t\t\"splitText\",\n\t\t\t\t\t\"writeLine\",\n\t\t\t\t\t\"colors\",\n\t\t\t\t\t\"help\",\n\t\t\t\t\t\"table\",\n\t\t\t\t\t\"stripAnsi\"\n\t\t\t\t]\n\t\t\t});\n\t\t},\n\t\tget children() {\n\t\t\treturn createComponent(Show, {\n\t\t\t\tget when() {\n\t\t\t\t\treturn Boolean(children);\n\t\t\t\t},\n\t\t\t\tget fallback() {\n\t\t\t\t\treturn createComponent(BannerFunctionDeclaration, { command });\n\t\t\t\t},\n\t\t\t\tchildren\n\t\t\t});\n\t\t}\n\t}));\n}\n\n//#endregion\nexport { BannerBuiltin };\n//# sourceMappingURL=banner-builtin.mjs.map"],"mappings":";;;;;;;;;;;;;AAaA,SAAS,cAAc,OAAO;CAC7B,MAAM,CAAC,EAAE,SAAS,YAAY,QAAQ,WAAW,OAAO,CAAC,WAAW,WAAW,CAAC;CAChF,MAAM,UAAU,eAAe;AAC/B,QAAO,gBAAgB,aAAa,WAAW;EAC9C,IAAI,KAAK;AACR,UAAO,UAAU,UAAU,GAAG,QAAQ,SAAS,QAAQ,YAAY,CAAC,qBAAqB,QAAQ,CAAC,CAAC;;EAEpG,IAAI,cAAc;AACjB,UAAO,WAAW,CAAC,CAAC,QAAQ,KAAK,EAAE,GAAG,0FAA0F,QAAQ,MAAM,aAAa,0FAA0F,YAAY,SAAS,KAAK,CAAC;;EAEjR,EAAE,MAAM;EACR,IAAI,iBAAiB;AACpB,UAAO,KAAK,KAAK,kBAAkB,EAAE,EAAE;IACtC,OAAO;KACN;KACA;KACA;KACA;KACA;KACA;KACA;KACA;IACD,SAAS;KACR;KACA;KACA;KACA;KACA;KACA;KACA;IACD,CAAC;;EAEH,IAAI,WAAW;AACd,UAAO,gBAAgB,MAAM;IAC5B,IAAI,OAAO;AACV,YAAO,QAAQ,SAAS;;IAEzB,IAAI,WAAW;AACd,YAAO,gBAAgB,2BAA2B,EAAE,SAAS,CAAC;;IAE/D;IACA,CAAC;;EAEH,CAAC,CAAC"}