@shell-shock/preset-script 0.6.20 → 0.6.22

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 (63) hide show
  1. package/dist/components/banner-function-declaration.cjs +5 -5
  2. package/dist/components/banner-function-declaration.cjs.map +1 -1
  3. package/dist/components/banner-function-declaration.d.cts.map +1 -1
  4. package/dist/components/banner-function-declaration.d.mts.map +1 -1
  5. package/dist/components/banner-function-declaration.mjs +1 -1
  6. package/dist/components/banner-function-declaration.mjs.map +1 -1
  7. package/dist/components/bin-entry.cjs +6 -11
  8. package/dist/components/bin-entry.cjs.map +1 -1
  9. package/dist/components/bin-entry.mjs +5 -10
  10. package/dist/components/bin-entry.mjs.map +1 -1
  11. package/dist/components/command-entry.cjs +13 -13
  12. package/dist/components/command-entry.cjs.map +1 -1
  13. package/dist/components/command-entry.d.cts +1 -1
  14. package/dist/components/command-entry.d.cts.map +1 -1
  15. package/dist/components/command-entry.d.mts +1 -1
  16. package/dist/components/command-entry.d.mts.map +1 -1
  17. package/dist/components/command-entry.mjs +10 -10
  18. package/dist/components/command-entry.mjs.map +1 -1
  19. package/dist/components/command-router.cjs +3 -8
  20. package/dist/components/command-router.cjs.map +1 -1
  21. package/dist/components/command-router.mjs +2 -7
  22. package/dist/components/command-router.mjs.map +1 -1
  23. package/dist/components/exit-function-declaration.cjs +4 -4
  24. package/dist/components/exit-function-declaration.cjs.map +1 -1
  25. package/dist/components/exit-function-declaration.d.cts +2 -2
  26. package/dist/components/exit-function-declaration.d.mts +2 -2
  27. package/dist/components/exit-function-declaration.mjs +1 -1
  28. package/dist/components/exit-function-declaration.mjs.map +1 -1
  29. package/dist/components/help.cjs +9 -10
  30. package/dist/components/help.cjs.map +1 -1
  31. package/dist/components/help.d.cts +8 -8
  32. package/dist/components/help.d.cts.map +1 -1
  33. package/dist/components/help.d.mts +8 -8
  34. package/dist/components/help.d.mts.map +1 -1
  35. package/dist/components/help.mjs +6 -7
  36. package/dist/components/help.mjs.map +1 -1
  37. package/dist/components/virtual-command-entry.cjs +7 -12
  38. package/dist/components/virtual-command-entry.cjs.map +1 -1
  39. package/dist/components/virtual-command-entry.mjs +5 -10
  40. package/dist/components/virtual-command-entry.mjs.map +1 -1
  41. package/dist/helpers/get-default-options.cjs +6 -6
  42. package/dist/helpers/get-default-options.cjs.map +1 -1
  43. package/dist/helpers/get-default-options.mjs +6 -6
  44. package/dist/helpers/get-default-options.mjs.map +1 -1
  45. package/dist/index.cjs +5 -4
  46. package/dist/index.cjs.map +1 -1
  47. package/dist/index.d.cts +1 -1
  48. package/dist/index.d.cts.map +1 -1
  49. package/dist/index.d.mts +1 -1
  50. package/dist/index.d.mts.map +1 -1
  51. package/dist/index.mjs +5 -4
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/types/plugin.d.cts.map +1 -1
  54. package/dist/types/plugin.d.mts.map +1 -1
  55. package/package.json +35 -49
  56. package/dist/components/helpers.cjs +0 -54
  57. package/dist/components/helpers.cjs.map +0 -1
  58. package/dist/components/helpers.d.cts +0 -29
  59. package/dist/components/helpers.d.cts.map +0 -1
  60. package/dist/components/helpers.d.mts +0 -29
  61. package/dist/components/helpers.d.mts.map +0 -1
  62. package/dist/components/helpers.mjs +0 -50
  63. package/dist/components/helpers.mjs.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","names":["code","For","Show","VarDeclaration","render","console","BannerFunctionDeclaration","VirtualHelp","BinEntry","CommandEntry","CommandRouter","VirtualCommandEntry","getDefaultOptions","plugin","options","name","config","debug","defaultOptions","isCaseSensitive","configResolved","dependencies","didyoumean2","prepare","order","handler","_self$","_$createComponent","builtinImports","utils","prefix","_$createIntrinsic","children","when","Object","keys","commands","length","type","initializer","segments","values","each","doubleHardline","child","isVirtual","fallback","command"],"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, For, Show } from \"@alloy-js/core\";\nimport { VarDeclaration } from \"@alloy-js/typescript\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport console from \"@shell-shock/plugin-console\";\nimport type { Plugin } from \"powerlines/types/plugin\";\nimport { BannerFunctionDeclaration, VirtualHelp } from \"./components\";\nimport { BinEntry } from \"./components/bin-entry\";\nimport { CommandEntry } from \"./components/command-entry\";\nimport { CommandRouter } from \"./components/command-router\";\nimport { VirtualCommandEntry } from \"./components/virtual-command-entry\";\nimport { getDefaultOptions } from \"./helpers/get-default-options\";\nimport type { ScriptPresetContext, ScriptPresetOptions } from \"./types/plugin\";\n\n/**\n * The Shell Shock base plugin.\n */\nexport const plugin = <\n TContext extends ScriptPresetContext = ScriptPresetContext\n>(\n options: ScriptPresetOptions = {}\n) => {\n return [\n console(options),\n {\n name: \"shell-shock:script-preset\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `script` preset.\"\n );\n\n return {\n defaultOptions: getDefaultOptions,\n isCaseSensitive: false,\n ...options\n };\n },\n configResolved() {\n this.dependencies.didyoumean2 = \"^7.0.4\";\n }\n },\n {\n name: \"shell-shock:script-preset:generate-entrypoint\",\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\n \"Rendering entrypoint modules for the Shell Shock `script` preset.\"\n );\n\n return render(\n this,\n <>\n <BinEntry\n builtinImports={{\n console: [\n \"divider\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\",\n \"colors\",\n \"help\"\n ],\n utils: [\"useArgs\", \"isMinimal\"]\n }}\n prefix={\n <>\n <BannerFunctionDeclaration />\n <hbr />\n <hbr />\n </>\n }>\n <Show when={Object.keys(this.commands).length > 0}>\n <VarDeclaration\n const\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 <hbr />\n {code`banner();`}\n <hbr />\n <hbr />\n <VirtualHelp\n options={this.options}\n commands={this.commands ?? {}}\n />\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 ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkCA,MAAaa,UAGXC,UAA+B,EAAE,KAC9B;AACH,QAAO;EACLT,QAAQS,QAAQ;EAChB;GACEC,MAAM;GACNC,SAAS;AACP,SAAKC,MACH,uEACD;AAED,WAAO;KACLC,gBAAgBN;KAChBO,iBAAiB;KACjB,GAAGL;KACJ;;GAEHM,iBAAiB;AACf,SAAKC,aAAaC,cAAc;;GAEnC;EACD;GACEP,MAAM;GACNQ,SAAS;IACPC,OAAO;IACP,MAAMC,UAAU;KAAA,MAAAC,SAAA;AACd,UAAKT,MACH,oEACD;AAED,YAAOb,OACL,MAAI,CAAAuB,gBAEDnB,UAAQ;MACPoB,gBAAgB;OACdvB,SAAS;QACP;QACA;QACA;QACA;QACA;QACA;QACD;OACDwB,OAAO,CAAC,WAAW,YAAW;OAC/B;MAAA,IACDC,SAAM;AAAA,cAAA;QAAAH,gBAEDrB,2BAAyB,EAAA,CAAA;QAAAyB,gBAAA,OAAA,EAAA,CAAA;QAAAA,gBAAA,OAAA,EAAA,CAAA;QAAA;;MAAA,IAAAC,WAAA;AAAA,cAAA;QAAAL,gBAK7BzB,MAAI;SAAA,IAAC+B,OAAI;AAAA,iBAAEC,OAAO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","names":["code","For","Show","VarDeclaration","render","console","BannerFunctionDeclaration","VirtualHelp","BinEntry","CommandEntry","CommandRouter","VirtualCommandEntry","getDefaultOptions","plugin","options","name","config","debug","defaultOptions","isCaseSensitive","prepare","order","handler","_self$","_$createComponent","builtinImports","utils","prefix","_$createIntrinsic","children","when","Object","keys","commands","length","type","initializer","segments","values","each","doubleHardline","child","isVirtual","fallback","command"],"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, For, Show } from \"@alloy-js/core\";\nimport { VarDeclaration } from \"@alloy-js/typescript\";\nimport { render } from \"@powerlines/plugin-alloy/render\";\nimport console from \"@shell-shock/plugin-console\";\nimport type { Plugin } from \"powerlines\";\nimport { BannerFunctionDeclaration, VirtualHelp } from \"./components\";\nimport { BinEntry } from \"./components/bin-entry\";\nimport { CommandEntry } from \"./components/command-entry\";\nimport { CommandRouter } from \"./components/command-router\";\nimport { VirtualCommandEntry } from \"./components/virtual-command-entry\";\nimport { getDefaultOptions } from \"./helpers/get-default-options\";\nimport type { ScriptPresetContext, ScriptPresetOptions } from \"./types/plugin\";\n\n/**\n * The Shell Shock base plugin.\n */\nexport const plugin = <\n TContext extends ScriptPresetContext = ScriptPresetContext\n>(\n options: ScriptPresetOptions = {}\n) => {\n return [\n console(options),\n {\n name: \"shell-shock:script-preset\",\n config() {\n this.debug(\n \"Providing default configuration for the Shell Shock `script` preset.\"\n );\n\n return {\n defaultOptions: getDefaultOptions,\n isCaseSensitive: false,\n ...options\n };\n }\n },\n {\n name: \"shell-shock:script-preset:generate-entrypoint\",\n prepare: {\n order: \"post\",\n async handler() {\n this.debug(\n \"Rendering entrypoint modules for the Shell Shock `script` preset.\"\n );\n\n return render(\n this,\n <>\n <BinEntry\n builtinImports={{\n console: [\n \"divider\",\n \"stripAnsi\",\n \"writeLine\",\n \"splitText\",\n \"colors\",\n \"help\"\n ],\n utils: [\"useApp\", \"useArgs\", \"isMinimal\"]\n }}\n prefix={\n <>\n <BannerFunctionDeclaration />\n <hbr />\n <hbr />\n </>\n }>\n <Show when={Object.keys(this.commands).length > 0}>\n <VarDeclaration\n const\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 <hbr />\n {code`banner();`}\n <hbr />\n <hbr />\n <VirtualHelp\n options={this.options}\n commands={this.commands ?? {}}\n />\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 ] as Plugin<TContext>[];\n};\n\nexport default plugin;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAkCA,MAAaa,UAGXC,UAA+B,EAAE,KAC9B;AACH,QAAO;EACLT,QAAQS,QAAQ;EAChB;GACEC,MAAM;GACNC,SAAS;AACP,SAAKC,MACH,uEACD;AAED,WAAO;KACLC,gBAAgBN;KAChBO,iBAAiB;KACjB,GAAGL;KACJ;;GAEJ;EACD;GACEC,MAAM;GACNK,SAAS;IACPC,OAAO;IACP,MAAMC,UAAU;KAAA,MAAAC,SAAA;AACd,UAAKN,MACH,oEACD;AAED,YAAOb,OACL,MAAI,CAAAoB,gBAEDhB,UAAQ;MACPiB,gBAAgB;OACdpB,SAAS;QACP;QACA;QACA;QACA;QACA;QACA;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BAAEW,MAAMC;;SAAS,IACrBC,WAAQ;AAAA,iBAAAnB,gBAAGf,cAAY,EAACmC,SAASH,OAAK,CAAA;;SAAA,IAAAZ,WAAA;AAAA,iBAAAL,gBACrCb,qBAAmB,EAACiC,SAASH,OAAK,CAAA;;SAAA,CAAA;QAEtC,CAAA;;MAAA,CAAA,CAIT,CAAC;;IAEL;GACD;EACF;;AAGH,kBAAe5B"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAmCiB,mBAAA,SACP,KAAK,4BAA4B,QAAQ;;AADnD;;;;;;;;;;EAmBY,cAAA,CAAA,EALN,aAK4B,EAAA,GAAA,CAAG,CAAA,OAAA,EAJpB,OAIiC,EAAA,KAAA,EAJjB,WAIoC,EAAA,GAJpB,aAIoB,EAAA,CAAA,GAAA,KAAA;AAErE;AAAyC,KAF7B,sBAAA,GAAyB,UAEI,GAFS,mBAET;AACzB,KADJ,0BAAA,GAA6B,cACzB,GAAd,QAAc,CAAL,IAAK,CAAA,mBAAA,EAAA,OAAA,CAAA,CAAA,GACd,yBADc;AAAL,KAGC,mBAHD,CAAA,wBAIe,0BAJf,GAKP,0BALO,CAAA,GAMP,kBANO,CAMY,eANZ,CAAA,GAOT,kBAPS,CAOU,eAPV,CAAA,GAQT,OARS,CAQD,eARC,CAAA"}
1
+ {"version":3,"file":"plugin.d.cts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAmCiB,mBAAA,SACP,KAAK,4BAA4B,QAAQ;;AADnD;;;;;;;;;;EAmBY,cAAA,CAAA,EALN,aAK4B,EAAA,GAAA,CAAA,CAAG,OAAA,EAJpB,OAIiC,EAAA,KAAA,EAJjB,WAIoC,EAAA,GAJpB,aAIoB,EAAA,CAAA,GAAA,KAAA;AAErE;AAAyC,KAF7B,sBAAA,GAAyB,UAEI,GAFS,mBAET;AACzB,KADJ,0BAAA,GAA6B,cACzB,GAAd,QAAc,CAAL,IAAK,CAAA,mBAAA,EAAA,OAAA,CAAA,CAAA,GACd,yBADc;AAAL,KAGC,mBAHD,CAAA,wBAIe,0BAJf,GAKP,0BALO,CAAA,GAMP,kBANO,CAMY,eANZ,CAAA,GAOT,kBAPS,CAOU,eAPV,CAAA,GAQT,OARS,CAQD,eARC,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAmCiB,mBAAA,SACP,KAAK,4BAA4B,QAAQ;;AADnD;;;;;;;;;;EAmBY,cAAA,CAAA,EALN,aAK4B,EAAA,GAAA,CAAG,CAAA,OAAA,EAJpB,OAIiC,EAAA,KAAA,EAJjB,WAIoC,EAAA,GAJpB,aAIoB,EAAA,CAAA,GAAA,KAAA;AAErE;AAAyC,KAF7B,sBAAA,GAAyB,UAEI,GAFS,mBAET;AACzB,KADJ,0BAAA,GAA6B,cACzB,GAAd,QAAc,CAAL,IAAK,CAAA,mBAAA,EAAA,OAAA,CAAA,CAAA,GACd,yBADc;AAAL,KAGC,mBAHD,CAAA,wBAIe,0BAJf,GAKP,0BALO,CAAA,GAMP,kBANO,CAMY,eANZ,CAAA,GAOT,kBAPS,CAOU,eAPV,CAAA,GAQT,OARS,CAQD,eARC,CAAA"}
1
+ {"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"sourcesContent":[],"mappings":";;;;;;;UAmCiB,mBAAA,SACP,KAAK,4BAA4B,QAAQ;;AADnD;;;;;;;;;;EAmBY,cAAA,CAAA,EALN,aAK4B,EAAA,GAAA,CAAA,CAAG,OAAA,EAJpB,OAIiC,EAAA,KAAA,EAJjB,WAIoC,EAAA,GAJpB,aAIoB,EAAA,CAAA,GAAA,KAAA;AAErE;AAAyC,KAF7B,sBAAA,GAAyB,UAEI,GAFS,mBAET;AACzB,KADJ,0BAAA,GAA6B,cACzB,GAAd,QAAc,CAAL,IAAK,CAAA,mBAAA,EAAA,OAAA,CAAA,CAAA,GACd,yBADc;AAAL,KAGC,mBAHD,CAAA,wBAIe,0BAJf,GAKP,0BALO,CAAA,GAMP,kBANO,CAMY,eANZ,CAAA,GAOT,kBAPS,CAOU,eAPV,CAAA,GAQT,OARS,CAQD,eARC,CAAA"}
package/package.json CHANGED
@@ -1,18 +1,29 @@
1
1
  {
2
2
  "name": "@shell-shock/preset-script",
3
- "version": "0.6.20",
4
- "type": "module",
3
+ "version": "0.6.22",
4
+ "private": false,
5
5
  "description": "A Shell Shock preset that generates a fully-featured script application.",
6
+ "keywords": [
7
+ "shell-shock",
8
+ "shell-shock-plugin",
9
+ "powerlines",
10
+ "storm-software"
11
+ ],
12
+ "homepage": "https://stormsoftware.com",
13
+ "bugs": {
14
+ "url": "https://stormsoftware.com/support",
15
+ "email": "support@stormsoftware.com"
16
+ },
6
17
  "repository": {
7
18
  "type": "github",
8
19
  "url": "https://github.com/storm-software/shell-shock.git",
9
20
  "directory": "packages/preset-script"
10
21
  },
11
- "homepage": "https://stormsoftware.com",
12
- "bugs": {
13
- "url": "https://stormsoftware.com/support",
14
- "email": "support@stormsoftware.com"
22
+ "funding": {
23
+ "type": "github",
24
+ "url": "https://github.com/sponsors/storm-software"
15
25
  },
26
+ "license": "Apache-2.0",
16
27
  "author": {
17
28
  "name": "Storm Software",
18
29
  "email": "contact@stormsoftware.com",
@@ -32,14 +43,7 @@
32
43
  "url": "https://stormsoftware.com"
33
44
  }
34
45
  ],
35
- "funding": {
36
- "type": "github",
37
- "url": "https://github.com/sponsors/storm-software"
38
- },
39
- "license": "Apache-2.0",
40
- "private": false,
41
- "main": "./dist/index.cjs",
42
- "module": "./dist/index.mjs",
46
+ "type": "module",
43
47
  "exports": {
44
48
  ".": {
45
49
  "require": {
@@ -55,6 +59,7 @@
55
59
  "default": "./dist/index.mjs"
56
60
  }
57
61
  },
62
+ "./*": "./*",
58
63
  "./components": {
59
64
  "require": {
60
65
  "types": "./dist/components/index.d.cts",
@@ -153,20 +158,6 @@
153
158
  "default": "./dist/components/help.mjs"
154
159
  }
155
160
  },
156
- "./components/helpers": {
157
- "require": {
158
- "types": "./dist/components/helpers.d.cts",
159
- "default": "./dist/components/helpers.cjs"
160
- },
161
- "import": {
162
- "types": "./dist/components/helpers.d.mts",
163
- "default": "./dist/components/helpers.mjs"
164
- },
165
- "default": {
166
- "types": "./dist/components/helpers.d.mts",
167
- "default": "./dist/components/helpers.mjs"
168
- }
169
- },
170
161
  "./components/virtual-command-entry": {
171
162
  "require": {
172
163
  "types": "./dist/components/virtual-command-entry.d.cts",
@@ -195,7 +186,6 @@
195
186
  "default": "./dist/helpers/get-default-options.mjs"
196
187
  }
197
188
  },
198
- "./package.json": "./package.json",
199
189
  "./types": {
200
190
  "require": {
201
191
  "types": "./dist/types/index.d.cts",
@@ -225,35 +215,31 @@
225
215
  }
226
216
  }
227
217
  },
218
+ "main": "./dist/index.cjs",
219
+ "module": "./dist/index.mjs",
228
220
  "types": "./dist/index.d.cts",
229
221
  "typings": "dist/index.d.mts",
230
222
  "files": ["dist/**/*"],
231
- "keywords": [
232
- "shell-shock",
233
- "shell-shock-plugin",
234
- "powerlines",
235
- "storm-software"
236
- ],
237
223
  "dependencies": {
238
224
  "@alloy-js/core": "0.23.0-dev.8",
239
225
  "@alloy-js/typescript": "0.23.0-dev.4",
240
- "@powerlines/deepkit": "^0.6.70",
241
- "@powerlines/plugin-alloy": "^0.23.20",
242
- "@powerlines/plugin-plugin": "^0.12.241",
243
- "@shell-shock/core": "^0.9.7",
244
- "@shell-shock/plugin-theme": "^0.3.9",
245
- "@stryke/helpers": "^0.9.42",
246
- "@stryke/path": "0.26.6",
247
- "@stryke/string-format": "0.14.2",
248
- "defu": "6.1.4",
249
- "powerlines": "^0.38.57",
250
- "@shell-shock/plugin-console": "^0.1.5"
226
+ "@powerlines/deepkit": "^0.6.90",
227
+ "@powerlines/plugin-alloy": "^0.24.2",
228
+ "@powerlines/plugin-plugin": "^0.12.262",
229
+ "@shell-shock/core": "^0.11.0",
230
+ "@shell-shock/plugin-console": "^0.1.7",
231
+ "@shell-shock/plugin-theme": "^0.3.11",
232
+ "@stryke/helpers": "^0.9.48",
233
+ "@stryke/path": "^0.26.12",
234
+ "@stryke/string-format": "^0.14.8",
235
+ "defu": "^6.1.4",
236
+ "powerlines": "^0.39.19"
251
237
  },
252
238
  "devDependencies": {
253
239
  "@babel/core": "^7.29.0",
254
- "@powerlines/plugin-alloy": "^0.23.20",
255
- "@types/node": "^25.3.1"
240
+ "@powerlines/plugin-alloy": "^0.24.2",
241
+ "@types/node": "^25.3.3"
256
242
  },
257
243
  "publishConfig": { "access": "public" },
258
- "gitHead": "169e28edb54c3e7e189cab2fa0797143a8f76c6f"
244
+ "gitHead": "6fbda1ffc234bdd12b5d0fd0a32e59727b369c5c"
259
245
  }
@@ -1,54 +0,0 @@
1
- const require_rolldown_runtime = require('../_virtual/rolldown_runtime.cjs');
2
- let __alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
3
- let __alloy_js_core = require("@alloy-js/core");
4
-
5
- //#region src/components/helpers.tsx
6
- /**
7
- * Write the logic to determine if the application is running in debug mode.
8
- *
9
- * @remarks
10
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
11
- */
12
- function IsDebug() {
13
- return __alloy_js_core.code`isDevelopment || isDebug || env.LOG_LEVEL === "debug"`;
14
- }
15
- /**
16
- * Write the logic to determine if the application is **not** running in debug mode.
17
- */
18
- function IsNotDebug() {
19
- return [
20
- __alloy_js_core.code`!(`,
21
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsDebug, {}),
22
- __alloy_js_core.code`)`
23
- ];
24
- }
25
- /**
26
- * Write the logic to determine if the application is running in verbose mode.
27
- *
28
- * @remarks
29
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
30
- */
31
- function IsVerbose() {
32
- return [
33
- __alloy_js_core.code`( `,
34
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsDebug, {}),
35
- __alloy_js_core.code`|| hasFlag(["verbose", "verbose=true", "verbose=always"]))`
36
- ];
37
- }
38
- /**
39
- * Write the logic to determine if the application is **not** running in verbose mode.
40
- */
41
- function IsNotVerbose() {
42
- return [
43
- __alloy_js_core.code`!(`,
44
- (0, __alloy_js_core_jsx_runtime.createComponent)(IsVerbose, {}),
45
- __alloy_js_core.code`)`
46
- ];
47
- }
48
-
49
- //#endregion
50
- exports.IsDebug = IsDebug;
51
- exports.IsNotDebug = IsNotDebug;
52
- exports.IsNotVerbose = IsNotVerbose;
53
- exports.IsVerbose = IsVerbose;
54
- //# sourceMappingURL=helpers.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.cjs","names":["code","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.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 } from \"@alloy-js/core\";\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;;AA0BA,SAAgBC,UAAU;AACxB,QAAOD,oBAAI;;;;;AAMb,SAAgBE,aAAa;AAC3B,QAAA;EAEKF,oBAAI;mDACJC,SAAO,EAAA,CAAA;EACPD,oBAAI;EAAG;;;;;;;;AAWd,SAAgBI,YAAY;AAC1B,QAAA;EAEKJ,oBAAI;mDACJC,SAAO,EAAA,CAAA;EACPD,oBAAI;EAA4D;;;;;AAQvE,SAAgBK,eAAe;AAC7B,QAAA;EAEKL,oBAAI;mDACJI,WAAS,EAAA,CAAA;EACTJ,oBAAI;EAAG"}
@@ -1,29 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
-
3
- //#region src/components/helpers.d.ts
4
-
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- declare function IsDebug(): _alloy_js_core0.Children;
12
- /**
13
- * Write the logic to determine if the application is **not** running in debug mode.
14
- */
15
- declare function IsNotDebug(): _alloy_js_core0.Children;
16
- /**
17
- * Write the logic to determine if the application is running in verbose mode.
18
- *
19
- * @remarks
20
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
21
- */
22
- declare function IsVerbose(): _alloy_js_core0.Children;
23
- /**
24
- * Write the logic to determine if the application is **not** running in verbose mode.
25
- */
26
- declare function IsNotVerbose(): _alloy_js_core0.Children;
27
- //#endregion
28
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
29
- //# sourceMappingURL=helpers.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.cts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AAOA;AAgBA;AAagB,iBApCA,OAAA,CAAA,CAoCY,EApCL,eAAA,CAAA,QAoCK;;;;iBA7BZ,UAAA,CAAA,GAAU,eAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,eAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,eAAA,CAAA"}
@@ -1,29 +0,0 @@
1
- import * as _alloy_js_core0 from "@alloy-js/core";
2
-
3
- //#region src/components/helpers.d.ts
4
-
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- declare function IsDebug(): _alloy_js_core0.Children;
12
- /**
13
- * Write the logic to determine if the application is **not** running in debug mode.
14
- */
15
- declare function IsNotDebug(): _alloy_js_core0.Children;
16
- /**
17
- * Write the logic to determine if the application is running in verbose mode.
18
- *
19
- * @remarks
20
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
21
- */
22
- declare function IsVerbose(): _alloy_js_core0.Children;
23
- /**
24
- * Write the logic to determine if the application is **not** running in verbose mode.
25
- */
26
- declare function IsNotVerbose(): _alloy_js_core0.Children;
27
- //#endregion
28
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
29
- //# sourceMappingURL=helpers.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.d.mts","names":[],"sources":["../../src/components/helpers.tsx"],"sourcesContent":[],"mappings":";;;;;;;AA0BA;AAOA;AAgBA;AAagB,iBApCA,OAAA,CAAA,CAoCY,EApCL,eAAA,CAAA,QAoCK;;;;iBA7BZ,UAAA,CAAA,GAAU,eAAA,CAAA;;;;;;;iBAgBV,SAAA,CAAA,GAAS,eAAA,CAAA;;;;iBAaT,YAAA,CAAA,GAAY,eAAA,CAAA"}
@@ -1,50 +0,0 @@
1
- import { createComponent } from "@alloy-js/core/jsx-runtime";
2
- import { code } from "@alloy-js/core";
3
-
4
- //#region src/components/helpers.tsx
5
- /**
6
- * Write the logic to determine if the application is running in debug mode.
7
- *
8
- * @remarks
9
- * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.
10
- */
11
- function IsDebug() {
12
- return code`isDevelopment || isDebug || env.LOG_LEVEL === "debug"`;
13
- }
14
- /**
15
- * Write the logic to determine if the application is **not** running in debug mode.
16
- */
17
- function IsNotDebug() {
18
- return [
19
- code`!(`,
20
- createComponent(IsDebug, {}),
21
- code`)`
22
- ];
23
- }
24
- /**
25
- * Write the logic to determine if the application is running in verbose mode.
26
- *
27
- * @remarks
28
- * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.
29
- */
30
- function IsVerbose() {
31
- return [
32
- code`( `,
33
- createComponent(IsDebug, {}),
34
- code`|| hasFlag(["verbose", "verbose=true", "verbose=always"]))`
35
- ];
36
- }
37
- /**
38
- * Write the logic to determine if the application is **not** running in verbose mode.
39
- */
40
- function IsNotVerbose() {
41
- return [
42
- code`!(`,
43
- createComponent(IsVerbose, {}),
44
- code`)`
45
- ];
46
- }
47
-
48
- //#endregion
49
- export { IsDebug, IsNotDebug, IsNotVerbose, IsVerbose };
50
- //# sourceMappingURL=helpers.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"helpers.mjs","names":["code","IsDebug","IsNotDebug","_$createComponent","IsVerbose","IsNotVerbose"],"sources":["../../src/components/helpers.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 } from \"@alloy-js/core\";\n\n/**\n * Write the logic to determine if the application is running in debug mode.\n *\n * @remarks\n * This is used to conditionally include debug-only logic in the generated application, such as additional logging or development tools. The logic should check for common indicators of debug mode, such as environment variables or the presence of a debugger.\n */\nexport function IsDebug() {\n return code`isDevelopment || isDebug || env.LOG_LEVEL === \"debug\"`;\n}\n\n/**\n * Write the logic to determine if the application is **not** running in debug mode.\n */\nexport function IsNotDebug() {\n return (\n <>\n {code`!(`}\n <IsDebug />\n {code`)`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is running in verbose mode.\n *\n * @remarks\n * This is used to conditionally include verbose-only logic in the generated application, such as additional logging or detailed output. The logic should check for common indicators of verbose mode, such as environment variables or command-line flags.\n */\nexport function IsVerbose() {\n return (\n <>\n {code`( `}\n <IsDebug />\n {code`|| hasFlag([\"verbose\", \"verbose=true\", \"verbose=always\"]))`}\n </>\n );\n}\n\n/**\n * Write the logic to determine if the application is **not** running in verbose mode.\n */\nexport function IsNotVerbose() {\n return (\n <>\n {code`!(`}\n <IsVerbose />\n {code`)`}\n </>\n );\n}\n"],"mappings":";;;;;;;;;;AA0BA,SAAgBC,UAAU;AACxB,QAAOD,IAAI;;;;;AAMb,SAAgBE,aAAa;AAC3B,QAAA;EAEKF,IAAI;EAAIG,gBACRF,SAAO,EAAA,CAAA;EACPD,IAAI;EAAG;;;;;;;;AAWd,SAAgBI,YAAY;AAC1B,QAAA;EAEKJ,IAAI;EAAIG,gBACRF,SAAO,EAAA,CAAA;EACPD,IAAI;EAA4D;;;;;AAQvE,SAAgBK,eAAe;AAC7B,QAAA;EAEKL,IAAI;EAAIG,gBACRC,WAAS,EAAA,CAAA;EACTJ,IAAI;EAAG"}