@shell-shock/core 0.17.24 → 0.17.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/api.cjs CHANGED
@@ -1,5 +1,5 @@
1
- const require_plugin = require('./plugin-DZxQWd06.cjs');
2
- const require_package = require('./package-Bzt7_95T.cjs');
1
+ const require_plugin = require('./plugin-BvnyU89Z.cjs');
2
+ const require_package = require('./package-Rgq2jbdI.cjs');
3
3
  let powerlines_api_build = require("powerlines/api/build");
4
4
  let powerlines_api_clean = require("powerlines/api/clean");
5
5
  let powerlines_api_create = require("powerlines/api/create");
package/dist/api.mjs CHANGED
@@ -1,5 +1,5 @@
1
- import { t as version } from "./package-BEuyOlNO.mjs";
2
- import { t as plugin } from "./plugin-Dz1jMeMo.mjs";
1
+ import { t as version } from "./package-DYXQ1lPr.mjs";
2
+ import { t as plugin } from "./plugin-BqZhZ4Po.mjs";
3
3
  import { build } from "powerlines/api/build";
4
4
  import { clean } from "powerlines/api/clean";
5
5
  import { create } from "powerlines/api/create";
package/dist/engine.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
2
- const require_get_framework = require('./get-framework-KhAcbWmi.cjs');
2
+ const require_get_framework = require('./get-framework-DbMZKVzx.cjs');
3
3
  let _powerlines_engine = require("@powerlines/engine");
4
4
 
5
5
  //#region src/engine.ts
package/dist/engine.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as getFramework } from "./get-framework-Bde25gcE.mjs";
1
+ import { t as getFramework } from "./get-framework-DFSfcFEp.mjs";
2
2
  import { createEngine as createEngine$1 } from "@powerlines/engine";
3
3
 
4
4
  //#region src/engine.ts
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_package = require('./package-Bzt7_95T.cjs');
2
+ const require_package = require('./package-Rgq2jbdI.cjs');
3
3
  const require_components_exec_builtin = require('./components/exec-builtin.cjs');
4
4
  const require_components_state_builtin = require('./components/state-builtin.cjs');
5
5
  const require_components_utils_builtin = require('./components/utils-builtin.cjs');
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BEuyOlNO.mjs";
1
+ import { t as version } from "./package-DYXQ1lPr.mjs";
2
2
  import { ExecBuiltin } from "./components/exec-builtin.mjs";
3
3
  import { StateBuiltin } from "./components/state-builtin.mjs";
4
4
  import { UtilsBuiltin } from "./components/utils-builtin.mjs";
@@ -1,4 +1,4 @@
1
- import { t as version } from "./package-BEuyOlNO.mjs";
1
+ import { t as version } from "./package-DYXQ1lPr.mjs";
2
2
 
3
3
  //#region src/helpers/get-framework.ts
4
4
  /**
@@ -16,4 +16,4 @@ function getFramework() {
16
16
 
17
17
  //#endregion
18
18
  export { getFramework as t };
19
- //# sourceMappingURL=get-framework-Bde25gcE.mjs.map
19
+ //# sourceMappingURL=get-framework-DFSfcFEp.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-framework-DFSfcFEp.mjs","names":[],"sources":[],"mappings":""}
@@ -1,4 +1,4 @@
1
- const require_package = require('./package-Bzt7_95T.cjs');
1
+ const require_package = require('./package-Rgq2jbdI.cjs');
2
2
 
3
3
  //#region src/helpers/get-framework.ts
4
4
  /**
@@ -0,0 +1,6 @@
1
+ //#region package.json
2
+ var version = "0.17.24";
3
+
4
+ //#endregion
5
+ export { version as t };
6
+ //# sourceMappingURL=package-DYXQ1lPr.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"package-DYXQ1lPr.mjs","names":[],"sources":[],"mappings":""}
@@ -1,5 +1,5 @@
1
1
  //#region package.json
2
- var version = "0.17.23";
2
+ var version = "0.17.24";
3
3
 
4
4
  //#endregion
5
5
  Object.defineProperty(exports, 'version', {
@@ -3,7 +3,7 @@ import { a as getDynamicPathSegmentName, c as isDynamicPathSegment, i as getAppT
3
3
  import { getCommandTree, traverseCommands } from "./plugin-utils/index.mjs";
4
4
  import { executeCommandGenerator } from "./helpers/power-plant.mjs";
5
5
  import { coreBuiltinsGenerator, coreDocsGenerator } from "./generator.mjs";
6
- import { t as getFramework } from "./get-framework-Bde25gcE.mjs";
6
+ import { t as getFramework } from "./get-framework-DFSfcFEp.mjs";
7
7
  import { createComponent, memo } from "@alloy-js/core/jsx-runtime";
8
8
  import { For, Show, code } from "@alloy-js/core";
9
9
  import { addProperty, extract, getProperties, getPropertiesList, isJsonSchemaArray, isJsonSchemaObject } from "@power-plant/schema";
@@ -44,7 +44,7 @@ import { getUnique, getUniqueBy } from "@stryke/helpers/get-unique";
44
44
  import { StormJSON } from "@stryke/json/storm-json";
45
45
  import { formatTree } from "@stryke/cli/utils/tree";
46
46
  import { isFunction } from "@stryke/type-checks/is-function";
47
- import { isJsonSchemaObjectType, isJsonSchemaTupleType } from "@stryke/json";
47
+ import { isJsonSchemaObjectType } from "@stryke/json";
48
48
  import { createJiti } from "jiti";
49
49
  import { dirname, join } from "node:path";
50
50
  import { isString } from "@stryke/type-checks/is-string";
@@ -1138,8 +1138,9 @@ async function resolve(input) {
1138
1138
  if (ctx.module.args) {
1139
1139
  const args = await extract(toExtractableSchema(ctx.module.args), { cwd: ctx.input.context.config.cwd });
1140
1140
  if (isSetObject(args)) {
1141
- if (!isJsonSchemaTupleType(args.schema) && !isJsonSchemaArray(args.schema)) throw new TypeError(`Command arguments for command at path "${ctx.input.command.path}" must resolve to a tuple${args?.schema?.type ? `, instead received ${JSON.stringify(args.schema.type)}` : ""}.`);
1142
- if (Array.isArray(args.schema.items)) ctx.output.args = args.schema.items.map((item) => resolveCommandParameter(item, {
1141
+ const tupleItems = Array.isArray(args.schema.items) ? args.schema.items : Array.isArray(args.schema.prefixItems) ? args.schema.prefixItems : void 0;
1142
+ if (!tupleItems && !isJsonSchemaArray(args.schema)) throw new TypeError(`Command arguments for command at path "${ctx.input.command.path}" must resolve to a tuple${args?.schema?.type ? `, instead received ${JSON.stringify(args.schema.type)}` : ""}.`);
1143
+ if (tupleItems) ctx.output.args = tupleItems.map((item) => resolveCommandParameter(item, {
1143
1144
  fallbackRequired: true,
1144
1145
  includeBooleanOptionFields: false
1145
1146
  }));
@@ -1455,4 +1456,4 @@ const plugin$3 = (options$1 = {}) => {
1455
1456
 
1456
1457
  //#endregion
1457
1458
  export { plugin$3 as t };
1458
- //# sourceMappingURL=plugin-Dz1jMeMo.mjs.map
1459
+ //# sourceMappingURL=plugin-BqZhZ4Po.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin-BqZhZ4Po.mjs","names":[],"sources":[],"mappings":""}
@@ -30,7 +30,7 @@ const require_context_helpers = require('./context-helpers-_wUuFRB8.cjs');
30
30
  const require_plugin_utils_index = require('./plugin-utils/index.cjs');
31
31
  const require_helpers_power_plant = require('./helpers/power-plant.cjs');
32
32
  const require_generator = require('./generator.cjs');
33
- const require_get_framework = require('./get-framework-KhAcbWmi.cjs');
33
+ const require_get_framework = require('./get-framework-DbMZKVzx.cjs');
34
34
  let _alloy_js_core_jsx_runtime = require("@alloy-js/core/jsx-runtime");
35
35
  let _alloy_js_core = require("@alloy-js/core");
36
36
  let _power_plant_schema = require("@power-plant/schema");
@@ -1166,8 +1166,9 @@ async function resolve(input) {
1166
1166
  if (ctx.module.args) {
1167
1167
  const args = await (0, _power_plant_schema.extract)(toExtractableSchema(ctx.module.args), { cwd: ctx.input.context.config.cwd });
1168
1168
  if ((0, _stryke_type_checks_is_set_object.isSetObject)(args)) {
1169
- if (!(0, _stryke_json.isJsonSchemaTupleType)(args.schema) && !(0, _power_plant_schema.isJsonSchemaArray)(args.schema)) throw new TypeError(`Command arguments for command at path "${ctx.input.command.path}" must resolve to a tuple${args?.schema?.type ? `, instead received ${JSON.stringify(args.schema.type)}` : ""}.`);
1170
- if (Array.isArray(args.schema.items)) ctx.output.args = args.schema.items.map((item) => resolveCommandParameter(item, {
1169
+ const tupleItems = Array.isArray(args.schema.items) ? args.schema.items : Array.isArray(args.schema.prefixItems) ? args.schema.prefixItems : void 0;
1170
+ if (!tupleItems && !(0, _power_plant_schema.isJsonSchemaArray)(args.schema)) throw new TypeError(`Command arguments for command at path "${ctx.input.command.path}" must resolve to a tuple${args?.schema?.type ? `, instead received ${JSON.stringify(args.schema.type)}` : ""}.`);
1171
+ if (tupleItems) ctx.output.args = tupleItems.map((item) => resolveCommandParameter(item, {
1171
1172
  fallbackRequired: true,
1172
1173
  includeBooleanOptionFields: false
1173
1174
  }));
package/dist/plugin.cjs CHANGED
@@ -1,5 +1,5 @@
1
1
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
2
- const require_plugin = require('./plugin-DZxQWd06.cjs');
2
+ const require_plugin = require('./plugin-BvnyU89Z.cjs');
3
3
 
4
4
  exports.default = require_plugin.plugin;
5
5
  exports.plugin = require_plugin.plugin;
package/dist/plugin.mjs CHANGED
@@ -1,3 +1,3 @@
1
- import { t as plugin } from "./plugin-Dz1jMeMo.mjs";
1
+ import { t as plugin } from "./plugin-BqZhZ4Po.mjs";
2
2
 
3
3
  export { plugin as default, plugin };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shell-shock/core",
3
- "version": "0.17.24",
3
+ "version": "0.17.25",
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"],
@@ -420,42 +420,42 @@
420
420
  "@alloy-js/core": "^0.24.1",
421
421
  "@alloy-js/markdown": "^0.24.0",
422
422
  "@alloy-js/typescript": "^0.24.0",
423
- "@power-plant/alloy-js": "^0.0.87",
424
- "@power-plant/core": "^0.0.90",
425
- "@power-plant/schema": "^0.0.88",
426
- "@powerlines/core": "^0.48.130",
427
- "@powerlines/engine": "^0.49.132",
428
- "@powerlines/plugin-alloy": "^0.26.309",
429
- "@powerlines/plugin-automd": "^0.1.673",
430
- "@powerlines/plugin-env": "^0.16.420",
431
- "@powerlines/plugin-nodejs": "^0.1.620",
432
- "@powerlines/plugin-power-plant": "^0.1.68",
433
- "@powerlines/plugin-tsdown": "^0.1.612",
434
- "@powerlines/unplugin": "^0.0.178",
435
- "@shell-shock/schema": "0.0.3",
436
- "@stryke/cli": "^0.13.82",
437
- "@stryke/convert": "^0.7.39",
438
- "@stryke/fs": "^0.33.110",
439
- "@stryke/helpers": "^0.10.48",
440
- "@stryke/json": "^0.15.32",
441
- "@stryke/path": "^0.29.35",
442
- "@stryke/resolve": "^0.0.25",
443
- "@stryke/string-format": "^0.17.50",
444
- "@stryke/type-checks": "^0.6.41",
445
- "@stryke/types": "^0.12.36",
423
+ "@power-plant/alloy-js": "^0.0.89",
424
+ "@power-plant/core": "^0.0.92",
425
+ "@power-plant/schema": "^0.0.90",
426
+ "@powerlines/core": "^0.48.131",
427
+ "@powerlines/engine": "^0.49.133",
428
+ "@powerlines/plugin-alloy": "^0.26.310",
429
+ "@powerlines/plugin-automd": "^0.1.674",
430
+ "@powerlines/plugin-env": "^0.16.421",
431
+ "@powerlines/plugin-nodejs": "^0.1.622",
432
+ "@powerlines/plugin-power-plant": "^0.1.69",
433
+ "@powerlines/plugin-tsdown": "^0.1.613",
434
+ "@powerlines/unplugin": "^0.0.179",
435
+ "@shell-shock/schema": "0.0.4",
436
+ "@stryke/cli": "^0.13.88",
437
+ "@stryke/convert": "^0.7.45",
438
+ "@stryke/fs": "^0.33.116",
439
+ "@stryke/helpers": "^0.10.54",
440
+ "@stryke/json": "^0.15.38",
441
+ "@stryke/path": "^0.29.41",
442
+ "@stryke/resolve": "^0.0.31",
443
+ "@stryke/string-format": "^0.17.56",
444
+ "@stryke/type-checks": "^0.6.47",
445
+ "@stryke/types": "^0.12.42",
446
446
  "automd": "^0.4.3",
447
447
  "defu": "^6.1.7",
448
448
  "jiti": "^2.7.0",
449
- "powerlines": "^0.47.211",
449
+ "powerlines": "^0.47.212",
450
450
  "tsdown": "^0.22.14",
451
451
  "typescript": "^6.0.3",
452
452
  "unplugin": "^3.3.0",
453
- "zod": "^4.4.3"
453
+ "zod": "^4.5.4"
454
454
  },
455
455
  "devDependencies": {
456
- "@powerlines/plugin-plugin": "^0.12.624",
456
+ "@powerlines/plugin-plugin": "^0.12.625",
457
457
  "@types/node": "^25.9.5"
458
458
  },
459
459
  "publishConfig": { "access": "public" },
460
- "gitHead": "06592cb0cccc2c7e9297af4c5138550e86fa4eec"
460
+ "gitHead": "6fee81652a0a86b6884ed1e2420d6c85067d66e6"
461
461
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"get-framework-Bde25gcE.mjs","names":[],"sources":[],"mappings":""}
@@ -1,6 +0,0 @@
1
- //#region package.json
2
- var version = "0.17.23";
3
-
4
- //#endregion
5
- export { version as t };
6
- //# sourceMappingURL=package-BEuyOlNO.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"package-BEuyOlNO.mjs","names":[],"sources":[],"mappings":""}
@@ -1 +0,0 @@
1
- {"version":3,"file":"plugin-Dz1jMeMo.mjs","names":[],"sources":[],"mappings":""}