@shell-shock/core 0.15.1 → 0.16.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 (103) hide show
  1. package/dist/api.cjs +10 -7
  2. package/dist/api.cjs.map +1 -1
  3. package/dist/api.d.cts +1 -1
  4. package/dist/api.d.cts.map +1 -1
  5. package/dist/api.d.mts +1 -1
  6. package/dist/api.d.mts.map +1 -1
  7. package/dist/api.mjs +11 -8
  8. package/dist/api.mjs.map +1 -1
  9. package/dist/components/helpers.cjs +1 -1
  10. package/dist/components/helpers.cjs.map +1 -1
  11. package/dist/components/helpers.mjs +1 -1
  12. package/dist/components/helpers.mjs.map +1 -1
  13. package/dist/components/index.cjs +8 -4
  14. package/dist/components/index.d.cts +4 -2
  15. package/dist/components/index.d.mts +4 -2
  16. package/dist/components/index.mjs +4 -2
  17. package/dist/components/options-parser-logic.cjs +68 -48
  18. package/dist/components/options-parser-logic.cjs.map +1 -1
  19. package/dist/components/options-parser-logic.d.cts.map +1 -1
  20. package/dist/components/options-parser-logic.d.mts.map +1 -1
  21. package/dist/components/options-parser-logic.mjs +68 -48
  22. package/dist/components/options-parser-logic.mjs.map +1 -1
  23. package/dist/components/spawn-builtin.cjs +656 -0
  24. package/dist/components/spawn-builtin.cjs.map +1 -0
  25. package/dist/components/spawn-builtin.d.cts +12 -0
  26. package/dist/components/spawn-builtin.d.cts.map +1 -0
  27. package/dist/components/spawn-builtin.d.mts +12 -0
  28. package/dist/components/spawn-builtin.d.mts.map +1 -0
  29. package/dist/components/spawn-builtin.mjs +653 -0
  30. package/dist/components/spawn-builtin.mjs.map +1 -0
  31. package/dist/components/state-builtin.cjs +545 -0
  32. package/dist/components/state-builtin.cjs.map +1 -0
  33. package/dist/components/state-builtin.d.cts +18 -0
  34. package/dist/components/state-builtin.d.cts.map +1 -0
  35. package/dist/components/state-builtin.d.mts +18 -0
  36. package/dist/components/state-builtin.d.mts.map +1 -0
  37. package/dist/components/state-builtin.mjs +539 -0
  38. package/dist/components/state-builtin.mjs.map +1 -0
  39. package/dist/components/utils-builtin.cjs +15 -509
  40. package/dist/components/utils-builtin.cjs.map +1 -1
  41. package/dist/components/utils-builtin.d.cts +1 -10
  42. package/dist/components/utils-builtin.d.cts.map +1 -1
  43. package/dist/components/utils-builtin.d.mts +1 -10
  44. package/dist/components/utils-builtin.d.mts.map +1 -1
  45. package/dist/components/utils-builtin.mjs +17 -508
  46. package/dist/components/utils-builtin.mjs.map +1 -1
  47. package/dist/config.cjs.map +1 -1
  48. package/dist/config.mjs.map +1 -1
  49. package/dist/contexts/options.cjs +9 -9
  50. package/dist/contexts/options.cjs.map +1 -1
  51. package/dist/contexts/options.d.cts +2 -2
  52. package/dist/contexts/options.d.cts.map +1 -1
  53. package/dist/contexts/options.d.mts +2 -2
  54. package/dist/contexts/options.d.mts.map +1 -1
  55. package/dist/contexts/options.mjs +9 -9
  56. package/dist/contexts/options.mjs.map +1 -1
  57. package/dist/index.cjs +2 -10
  58. package/dist/index.d.cts +1 -2
  59. package/dist/index.d.mts +1 -2
  60. package/dist/index.mjs +1 -7
  61. package/dist/plugin.cjs +17 -32
  62. package/dist/plugin.cjs.map +1 -1
  63. package/dist/plugin.d.cts +1 -1
  64. package/dist/plugin.d.cts.map +1 -1
  65. package/dist/plugin.d.mts +1 -1
  66. package/dist/plugin.d.mts.map +1 -1
  67. package/dist/plugin.mjs +16 -30
  68. package/dist/plugin.mjs.map +1 -1
  69. package/dist/resolver/resolve.cjs +1 -1
  70. package/dist/resolver/resolve.cjs.map +1 -1
  71. package/dist/resolver/resolve.mjs +1 -1
  72. package/dist/resolver/resolve.mjs.map +1 -1
  73. package/dist/types/config.cjs +3 -1
  74. package/dist/types/config.cjs.map +1 -1
  75. package/dist/types/config.d.cts +1 -1
  76. package/dist/types/config.d.cts.map +1 -1
  77. package/dist/types/config.d.mts +1 -1
  78. package/dist/types/config.d.mts.map +1 -1
  79. package/dist/types/config.mjs +3 -1
  80. package/dist/types/config.mjs.map +1 -1
  81. package/dist/types/env.cjs +2 -1
  82. package/dist/types/env.cjs.map +1 -1
  83. package/dist/types/env.d.cts +15 -0
  84. package/dist/types/env.d.cts.map +1 -1
  85. package/dist/types/env.d.mts +15 -0
  86. package/dist/types/env.d.mts.map +1 -1
  87. package/dist/types/env.mjs +2 -1
  88. package/dist/types/env.mjs.map +1 -1
  89. package/dist/types/index.cjs +0 -2
  90. package/dist/types/index.d.cts +1 -2
  91. package/dist/types/index.d.mts +1 -2
  92. package/dist/types/index.mjs +1 -2
  93. package/package.json +49 -35
  94. package/dist/index.cjs.map +0 -1
  95. package/dist/index.mjs.map +0 -1
  96. package/dist/types/runtime.cjs +0 -13
  97. package/dist/types/runtime.cjs.map +0 -1
  98. package/dist/types/runtime.d.cts +0 -14
  99. package/dist/types/runtime.d.cts.map +0 -1
  100. package/dist/types/runtime.d.mts +0 -14
  101. package/dist/types/runtime.d.mts.map +0 -1
  102. package/dist/types/runtime.mjs +0 -11
  103. package/dist/types/runtime.mjs.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/core",
3
- "version": "0.15.1",
3
+ "version": "0.16.0",
4
4
  "private": false,
5
5
  "description": "A package containing the core Shell Shock functionality used to build and manage a command-line application.",
6
6
  "keywords": ["shell-shock", "powerlines", "storm-software"],
@@ -129,6 +129,34 @@
129
129
  "default": "./dist/components/options-parser-logic.mjs"
130
130
  }
131
131
  },
132
+ "./components/spawn-builtin": {
133
+ "require": {
134
+ "types": "./dist/components/spawn-builtin.d.cts",
135
+ "default": "./dist/components/spawn-builtin.cjs"
136
+ },
137
+ "import": {
138
+ "types": "./dist/components/spawn-builtin.d.mts",
139
+ "default": "./dist/components/spawn-builtin.mjs"
140
+ },
141
+ "default": {
142
+ "types": "./dist/components/spawn-builtin.d.mts",
143
+ "default": "./dist/components/spawn-builtin.mjs"
144
+ }
145
+ },
146
+ "./components/state-builtin": {
147
+ "require": {
148
+ "types": "./dist/components/state-builtin.d.cts",
149
+ "default": "./dist/components/state-builtin.cjs"
150
+ },
151
+ "import": {
152
+ "types": "./dist/components/state-builtin.d.mts",
153
+ "default": "./dist/components/state-builtin.mjs"
154
+ },
155
+ "default": {
156
+ "types": "./dist/components/state-builtin.d.mts",
157
+ "default": "./dist/components/state-builtin.mjs"
158
+ }
159
+ },
132
160
  "./components/usage": {
133
161
  "require": {
134
162
  "types": "./dist/components/usage.d.cts",
@@ -325,20 +353,6 @@
325
353
  "types": "./dist/types/options.d.mts",
326
354
  "default": "./dist/types/options.mjs"
327
355
  }
328
- },
329
- "./types/runtime": {
330
- "require": {
331
- "types": "./dist/types/runtime.d.cts",
332
- "default": "./dist/types/runtime.cjs"
333
- },
334
- "import": {
335
- "types": "./dist/types/runtime.d.mts",
336
- "default": "./dist/types/runtime.mjs"
337
- },
338
- "default": {
339
- "types": "./dist/types/runtime.d.mts",
340
- "default": "./dist/types/runtime.mjs"
341
- }
342
356
  }
343
357
  },
344
358
  "main": "./dist/index.cjs",
@@ -350,39 +364,39 @@
350
364
  "@alloy-js/core": "0.23.0-dev.8",
351
365
  "@alloy-js/markdown": "0.23.0-dev.1",
352
366
  "@alloy-js/typescript": "0.23.0-dev.4",
353
- "@powerlines/deepkit": "^0.6.165",
354
- "@powerlines/plugin-alloy": "^0.26.2",
355
- "@powerlines/plugin-automd": "^0.1.386",
356
- "@powerlines/plugin-deepkit": "^0.11.265",
357
- "@powerlines/plugin-nodejs": "^0.1.309",
358
- "@powerlines/plugin-tsdown": "^0.1.328",
367
+ "@powerlines/deepkit": "^0.6.167",
368
+ "@powerlines/plugin-alloy": "^0.26.9",
369
+ "@powerlines/plugin-automd": "^0.1.392",
370
+ "@powerlines/plugin-deepkit": "^0.11.271",
371
+ "@powerlines/plugin-nodejs": "^0.1.316",
372
+ "@powerlines/plugin-tsdown": "^0.1.334",
359
373
  "@standard-schema/spec": "^1.1.0",
360
374
  "@standard-schema/utils": "^0.3.0",
361
- "@stryke/cli": "^0.13.36",
362
- "@stryke/convert": "^0.6.57",
363
- "@stryke/fs": "^0.33.64",
364
- "@stryke/helpers": "^0.10.7",
365
- "@stryke/json": "^0.14.11",
366
- "@stryke/path": "^0.27.3",
367
- "@stryke/string-format": "^0.17.7",
368
- "@stryke/type-checks": "^0.6.0",
369
- "@stryke/types": "^0.11.2",
370
- "@stryke/zod": "^0.3.12",
375
+ "@stryke/cli": "^0.13.38",
376
+ "@stryke/convert": "^0.6.58",
377
+ "@stryke/fs": "^0.33.66",
378
+ "@stryke/helpers": "^0.10.8",
379
+ "@stryke/json": "^0.14.12",
380
+ "@stryke/path": "^0.27.4",
381
+ "@stryke/string-format": "^0.17.9",
382
+ "@stryke/type-checks": "^0.6.1",
383
+ "@stryke/types": "^0.11.3",
384
+ "@stryke/zod": "^0.3.13",
371
385
  "automd": "^0.4.3",
372
386
  "defu": "^6.1.6",
373
387
  "json-schema": "^0.4.0",
374
388
  "tsdown": "^0.21.7"
375
389
  },
376
390
  "devDependencies": {
377
- "@powerlines/plugin-plugin": "^0.12.337",
391
+ "@powerlines/plugin-plugin": "^0.12.343",
378
392
  "@types/json-schema": "^7.0.15",
379
- "@types/node": "^25.5.0",
380
- "powerlines": "^0.42.27",
393
+ "@types/node": "^25.5.2",
394
+ "powerlines": "^0.42.33",
381
395
  "typescript": "^5.9.3",
382
396
  "zod": "^4.3.6"
383
397
  },
384
398
  "peerDependencies": { "powerlines": ">=0.42.10", "zod": "^3.25.0 || ^4.0.0" },
385
399
  "peerDependenciesMeta": { "zod": { "optional": true } },
386
400
  "publishConfig": { "access": "public" },
387
- "gitHead": "b39233bcc3bed352f050a2b43ca0fa432a4175a4"
401
+ "gitHead": "99864265fd762dd8a4dcdb5740242469cde2b448"
388
402
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.cjs","names":[],"sources":["../src/index.ts"],"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 { ShellShockAPI, createShellShock } from \"./api\";\n\nexport * from \"./types\";\n\n// eslint-disable-next-line perfectionist/sort-named-exports\nexport { ShellShockAPI, createShellShock };\nexport default ShellShockAPI;\n"],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.mjs","names":[],"sources":["../src/index.ts"],"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 { ShellShockAPI, createShellShock } from \"./api\";\n\nexport * from \"./types\";\n\n// eslint-disable-next-line perfectionist/sort-named-exports\nexport { ShellShockAPI, createShellShock };\nexport default ShellShockAPI;\n"],"mappings":""}
@@ -1,13 +0,0 @@
1
- Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
-
3
- //#region src/types/runtime.ts
4
- const __ΩCommandContext = [
5
- "path",
6
- "segments",
7
- "CommandContext",
8
- "P&4!&F4\"Mw#y"
9
- ];
10
-
11
- //#endregion
12
- exports.__ΩCommandContext = __ΩCommandContext;
13
- //# sourceMappingURL=runtime.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.cjs","names":[],"sources":["../../src/types/runtime.ts"],"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\nexport interface CommandContext {\n /**\n * The current command path within the runtime context.\n */\n path: string;\n\n /**\n * The individual segments that make up the path.\n */\n segments: string[];\n}\n"],"mappings":""}
@@ -1,14 +0,0 @@
1
- //#region src/types/runtime.d.ts
2
- interface CommandContext {
3
- /**
4
- * The current command path within the runtime context.
5
- */
6
- path: string;
7
- /**
8
- * The individual segments that make up the path.
9
- */
10
- segments: string[];
11
- }
12
- //#endregion
13
- export { CommandContext };
14
- //# sourceMappingURL=runtime.d.cts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.cts","names":[],"sources":["../../src/types/runtime.ts"],"mappings":";UAkBiB,cAAA;EAAA;;;EAIf,IAAA;EAKQ;;;EAAR,QAAA;AAAA"}
@@ -1,14 +0,0 @@
1
- //#region src/types/runtime.d.ts
2
- interface CommandContext {
3
- /**
4
- * The current command path within the runtime context.
5
- */
6
- path: string;
7
- /**
8
- * The individual segments that make up the path.
9
- */
10
- segments: string[];
11
- }
12
- //#endregion
13
- export { CommandContext };
14
- //# sourceMappingURL=runtime.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.d.mts","names":[],"sources":["../../src/types/runtime.ts"],"mappings":";UAkBiB,cAAA;EAAA;;;EAIf,IAAA;EAKQ;;;EAAR,QAAA;AAAA"}
@@ -1,11 +0,0 @@
1
- //#region src/types/runtime.ts
2
- const __ΩCommandContext = [
3
- "path",
4
- "segments",
5
- "CommandContext",
6
- "P&4!&F4\"Mw#y"
7
- ];
8
-
9
- //#endregion
10
- export { __ΩCommandContext };
11
- //# sourceMappingURL=runtime.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"runtime.mjs","names":[],"sources":["../../src/types/runtime.ts"],"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\nexport interface CommandContext {\n /**\n * The current command path within the runtime context.\n */\n path: string;\n\n /**\n * The individual segments that make up the path.\n */\n segments: string[];\n}\n"],"mappings":""}