@shell-shock/core 0.17.21 → 0.17.23
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/README.md +16 -7
- package/dist/api.cjs +4 -5
- package/dist/api.d.cts +1 -1
- package/dist/api.d.mts +1 -1
- package/dist/api.mjs +2 -2
- package/dist/command-B6KYexlV.d.mts +308 -0
- package/dist/command-B6KYexlV.d.mts.map +1 -0
- package/dist/command-CtfR7hKM.d.cts +308 -0
- package/dist/command-CtfR7hKM.d.cts.map +1 -0
- package/dist/components/command-validation-logic.cjs +153 -216
- package/dist/components/command-validation-logic.d.cts +2 -1
- package/dist/components/command-validation-logic.d.cts.map +1 -1
- package/dist/components/command-validation-logic.d.mts +2 -1
- package/dist/components/command-validation-logic.mjs +153 -214
- package/dist/components/docs.cjs +6 -364
- package/dist/components/docs.d.cts +2 -3
- package/dist/components/docs.d.cts.map +1 -1
- package/dist/components/docs.d.mts +2 -3
- package/dist/components/docs.mjs +2 -356
- package/dist/components/exec-builtin.cjs +63 -100
- package/dist/components/exec-builtin.d.cts +1 -2
- package/dist/components/exec-builtin.d.cts.map +1 -1
- package/dist/components/exec-builtin.d.mts +1 -2
- package/dist/components/exec-builtin.mjs +7 -41
- package/dist/components/helpers.cjs +2 -52
- package/dist/components/helpers.d.cts +2 -1
- package/dist/components/helpers.d.cts.map +1 -1
- package/dist/components/helpers.d.mts +2 -1
- package/dist/components/helpers.mjs +2 -50
- package/dist/components/index.cjs +7 -23
- package/dist/components/index.mjs +9 -9
- package/dist/components/options-parser-logic.cjs +198 -420
- package/dist/components/options-parser-logic.d.cts +2 -5
- package/dist/components/options-parser-logic.d.cts.map +1 -1
- package/dist/components/options-parser-logic.d.mts +2 -5
- package/dist/components/options-parser-logic.mjs +192 -407
- package/dist/components/state-builtin.cjs +106 -164
- package/dist/components/state-builtin.d.cts +1 -2
- package/dist/components/state-builtin.d.cts.map +1 -1
- package/dist/components/state-builtin.d.mts +1 -2
- package/dist/components/state-builtin.mjs +12 -68
- package/dist/components/usage.cjs +4 -48
- package/dist/components/usage.d.cts +1 -2
- package/dist/components/usage.d.cts.map +1 -1
- package/dist/components/usage.d.mts +1 -2
- package/dist/components/usage.mjs +4 -46
- package/dist/components/utils-builtin.cjs +77 -144
- package/dist/components/utils-builtin.d.cts +1 -2
- package/dist/components/utils-builtin.d.cts.map +1 -1
- package/dist/components/utils-builtin.d.mts +1 -2
- package/dist/components/utils-builtin.mjs +9 -74
- package/dist/config-BIF9mEz0.d.cts +157 -0
- package/dist/config-BIF9mEz0.d.cts.map +1 -0
- package/dist/config-CnNYdfsL.d.mts +157 -0
- package/dist/config-CnNYdfsL.d.mts.map +1 -0
- package/dist/config.cjs +24 -58
- package/dist/config.d.cts +1 -2
- package/dist/config.d.cts.map +1 -1
- package/dist/config.d.mts +1 -2
- package/dist/config.mjs +23 -55
- package/dist/{plugin-utils/context-helpers.mjs → context-helpers-D3EJxwbq.mjs} +5 -83
- package/dist/context-helpers-D3EJxwbq.mjs.map +1 -0
- package/dist/{plugin-utils/context-helpers.cjs → context-helpers-_wUuFRB8.cjs} +63 -92
- package/dist/contexts/command.cjs +3 -9
- package/dist/contexts/command.d.cts +1 -2
- package/dist/contexts/command.d.cts.map +1 -1
- package/dist/contexts/command.d.mts +1 -2
- package/dist/contexts/command.mjs +2 -7
- package/dist/contexts/index.cjs +19 -1
- package/dist/contexts/index.d.cts +2 -1
- package/dist/contexts/index.d.mts +2 -1
- package/dist/contexts/index.mjs +2 -1
- package/dist/contexts/options.cjs +7 -30
- package/dist/contexts/options.d.cts +1 -2
- package/dist/contexts/options.d.cts.map +1 -1
- package/dist/contexts/options.d.mts +1 -2
- package/dist/contexts/options.mjs +7 -27
- package/dist/contexts/power-plant.cjs +19 -0
- package/dist/contexts/power-plant.d.cts +2 -0
- package/dist/contexts/power-plant.d.mts +2 -0
- package/dist/contexts/power-plant.mjs +5 -0
- package/dist/docs-C6ZvsVMu.cjs +278 -0
- package/dist/docs-CGQ2HtEY.mjs +249 -0
- package/dist/docs-CGQ2HtEY.mjs.map +1 -0
- package/dist/engine.cjs +5 -39
- package/dist/engine.d.cts +1 -2
- package/dist/engine.d.cts.map +1 -1
- package/dist/engine.d.mts +1 -2
- package/dist/engine.mjs +4 -37
- package/dist/generator.cjs +68 -0
- package/dist/generator.d.cts +15 -0
- package/dist/generator.d.cts.map +1 -0
- package/dist/generator.d.mts +15 -0
- package/dist/generator.d.mts.map +1 -0
- package/dist/generator.mjs +66 -0
- package/dist/generator.mjs.map +1 -0
- package/dist/{helpers/get-framework.cjs → get-framework-CxZc2krd.cjs} +7 -8
- package/dist/{helpers/get-framework.mjs → get-framework-Dlqz2hVZ.mjs} +3 -8
- package/dist/get-framework-Dlqz2hVZ.mjs.map +1 -0
- package/dist/helpers/power-plant.cjs +102 -0
- package/dist/helpers/power-plant.d.cts +61 -0
- package/dist/helpers/power-plant.d.cts.map +1 -0
- package/dist/helpers/power-plant.d.mts +61 -0
- package/dist/helpers/power-plant.d.mts.map +1 -0
- package/dist/helpers/power-plant.mjs +99 -0
- package/dist/helpers/power-plant.mjs.map +1 -0
- package/dist/index-D4klH_pj.d.mts +2 -0
- package/dist/index-DYOBadKY.d.cts +2 -0
- package/dist/index.cjs +1 -37
- package/dist/index.d.cts +4 -6
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts +4 -6
- package/dist/index.mjs +0 -35
- package/dist/package-B7Vu265G.mjs +6 -0
- package/dist/package-B7Vu265G.mjs.map +1 -0
- package/dist/{package.cjs → package-BLC4qc8t.cjs} +2 -4
- package/dist/plugin-B-hM2twc.mjs +1458 -0
- package/dist/plugin-B-hM2twc.mjs.map +1 -0
- package/dist/plugin-Bhfq0DMC.cjs +1490 -0
- package/dist/plugin-utils/index.cjs +359 -26
- package/dist/plugin-utils/index.d.cts +273 -9
- package/dist/plugin-utils/index.d.cts.map +1 -0
- package/dist/plugin-utils/index.d.mts +273 -9
- package/dist/plugin-utils/index.d.mts.map +1 -0
- package/dist/plugin-utils/index.mjs +346 -10
- package/dist/plugin-utils/index.mjs.map +1 -0
- package/dist/plugin.cjs +3 -496
- package/dist/plugin.d.cts +1 -3
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts +1 -3
- package/dist/plugin.mjs +2 -491
- package/dist/power-plant-LgxcvlMN.d.cts +4 -0
- package/dist/power-plant-LgxcvlMN.d.mts +4 -0
- package/dist/reflect-CSiffeL9.cjs +27 -0
- package/dist/reflect-DXKSFgvS.mjs +23 -0
- package/dist/reflect-DXKSFgvS.mjs.map +1 -0
- package/dist/schemas/env.cjs +91 -0
- package/dist/schemas/env.d.cts +145 -0
- package/dist/schemas/env.d.cts.map +1 -0
- package/dist/schemas/env.d.mts +145 -0
- package/dist/{types → schemas}/env.d.mts.map +1 -1
- package/dist/schemas/env.mjs +91 -0
- package/dist/schemas/index.cjs +4 -0
- package/dist/schemas/index.d.cts +2 -0
- package/dist/schemas/index.d.mts +2 -0
- package/dist/schemas/index.mjs +3 -0
- package/dist/types/command.cjs +0 -402
- package/dist/types/command.d.cts +2 -309
- package/dist/types/command.d.mts +2 -309
- package/dist/types/command.mjs +1 -368
- package/dist/types/config.cjs +0 -175
- package/dist/types/config.d.cts +2 -126
- package/dist/types/config.d.mts +2 -126
- package/dist/types/config.mjs +1 -164
- package/dist/types/context.cjs +0 -45
- package/dist/types/context.d.cts +2 -31
- package/dist/types/context.d.mts +2 -31
- package/dist/types/context.mjs +1 -41
- package/dist/types/index.cjs +3 -53
- package/dist/types/index.d.cts +4 -5
- package/dist/types/index.d.mts +4 -5
- package/dist/types/index.mjs +4 -5
- package/package.json +106 -42
- package/dist/_virtual/_rolldown/runtime.cjs +0 -29
- package/dist/api.cjs.map +0 -1
- package/dist/components/command-validation-logic.cjs.map +0 -1
- package/dist/components/docs.cjs.map +0 -1
- package/dist/components/docs.mjs.map +0 -1
- package/dist/components/exec-builtin.cjs.map +0 -1
- package/dist/components/helpers.cjs.map +0 -1
- package/dist/components/options-parser-logic.cjs.map +0 -1
- package/dist/components/state-builtin.cjs.map +0 -1
- package/dist/components/usage.cjs.map +0 -1
- package/dist/components/utils-builtin.cjs.map +0 -1
- package/dist/config.cjs.map +0 -1
- package/dist/contexts/command.cjs.map +0 -1
- package/dist/contexts/options.cjs.map +0 -1
- package/dist/engine.cjs.map +0 -1
- package/dist/helpers/automd.cjs +0 -193
- package/dist/helpers/automd.cjs.map +0 -1
- package/dist/helpers/automd.mjs +0 -190
- package/dist/helpers/automd.mjs.map +0 -1
- package/dist/helpers/docs-helpers.cjs +0 -24
- package/dist/helpers/docs-helpers.cjs.map +0 -1
- package/dist/helpers/docs-helpers.mjs +0 -24
- package/dist/helpers/docs-helpers.mjs.map +0 -1
- package/dist/helpers/get-framework.cjs.map +0 -1
- package/dist/helpers/get-framework.mjs.map +0 -1
- package/dist/helpers/paths.cjs +0 -137
- package/dist/helpers/paths.cjs.map +0 -1
- package/dist/helpers/paths.mjs +0 -134
- package/dist/helpers/paths.mjs.map +0 -1
- package/dist/helpers/persistence.cjs +0 -114
- package/dist/helpers/persistence.cjs.map +0 -1
- package/dist/helpers/persistence.mjs +0 -113
- package/dist/helpers/persistence.mjs.map +0 -1
- package/dist/helpers/update-package-json.cjs +0 -65
- package/dist/helpers/update-package-json.cjs.map +0 -1
- package/dist/helpers/update-package-json.mjs +0 -64
- package/dist/helpers/update-package-json.mjs.map +0 -1
- package/dist/helpers/utilities.cjs +0 -95
- package/dist/helpers/utilities.cjs.map +0 -1
- package/dist/helpers/utilities.mjs +0 -94
- package/dist/helpers/utilities.mjs.map +0 -1
- package/dist/helpers/validations.cjs +0 -71
- package/dist/helpers/validations.cjs.map +0 -1
- package/dist/helpers/validations.mjs +0 -70
- package/dist/helpers/validations.mjs.map +0 -1
- package/dist/index.cjs.map +0 -1
- package/dist/package.cjs.map +0 -1
- package/dist/package.mjs +0 -6
- package/dist/package.mjs.map +0 -1
- package/dist/plugin-utils/compute-bin.cjs +0 -49
- package/dist/plugin-utils/compute-bin.cjs.map +0 -1
- package/dist/plugin-utils/compute-bin.d.cts +0 -13
- package/dist/plugin-utils/compute-bin.d.cts.map +0 -1
- package/dist/plugin-utils/compute-bin.d.mts +0 -13
- package/dist/plugin-utils/compute-bin.d.mts.map +0 -1
- package/dist/plugin-utils/compute-bin.mjs +0 -49
- package/dist/plugin-utils/compute-bin.mjs.map +0 -1
- package/dist/plugin-utils/context-helpers.cjs.map +0 -1
- package/dist/plugin-utils/context-helpers.d.cts +0 -106
- package/dist/plugin-utils/context-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/context-helpers.d.mts +0 -106
- package/dist/plugin-utils/context-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/context-helpers.mjs.map +0 -1
- package/dist/plugin-utils/deepkit.cjs +0 -70
- package/dist/plugin-utils/deepkit.cjs.map +0 -1
- package/dist/plugin-utils/deepkit.d.cts +0 -23
- package/dist/plugin-utils/deepkit.d.cts.map +0 -1
- package/dist/plugin-utils/deepkit.d.mts +0 -23
- package/dist/plugin-utils/deepkit.d.mts.map +0 -1
- package/dist/plugin-utils/deepkit.mjs +0 -69
- package/dist/plugin-utils/deepkit.mjs.map +0 -1
- package/dist/plugin-utils/description-helpers.cjs +0 -112
- package/dist/plugin-utils/description-helpers.cjs.map +0 -1
- package/dist/plugin-utils/description-helpers.d.cts +0 -44
- package/dist/plugin-utils/description-helpers.d.cts.map +0 -1
- package/dist/plugin-utils/description-helpers.d.mts +0 -44
- package/dist/plugin-utils/description-helpers.d.mts.map +0 -1
- package/dist/plugin-utils/description-helpers.mjs +0 -108
- package/dist/plugin-utils/description-helpers.mjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.cjs +0 -118
- package/dist/plugin-utils/get-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.cts +0 -36
- package/dist/plugin-utils/get-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/get-command-tree.d.mts +0 -36
- package/dist/plugin-utils/get-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/get-command-tree.mjs +0 -115
- package/dist/plugin-utils/get-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/reflect.cjs +0 -54
- package/dist/plugin-utils/reflect.cjs.map +0 -1
- package/dist/plugin-utils/reflect.d.cts +0 -14
- package/dist/plugin-utils/reflect.d.cts.map +0 -1
- package/dist/plugin-utils/reflect.d.mts +0 -14
- package/dist/plugin-utils/reflect.d.mts.map +0 -1
- package/dist/plugin-utils/reflect.mjs +0 -53
- package/dist/plugin-utils/reflect.mjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +0 -65
- package/dist/plugin-utils/traverse-command-tree.cjs.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.cts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.cts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.d.mts +0 -22
- package/dist/plugin-utils/traverse-command-tree.d.mts.map +0 -1
- package/dist/plugin-utils/traverse-command-tree.mjs +0 -63
- package/dist/plugin-utils/traverse-command-tree.mjs.map +0 -1
- package/dist/plugin-utils/type-checks.cjs +0 -222
- package/dist/plugin-utils/type-checks.cjs.map +0 -1
- package/dist/plugin-utils/type-checks.d.cts +0 -41
- package/dist/plugin-utils/type-checks.d.cts.map +0 -1
- package/dist/plugin-utils/type-checks.d.mts +0 -41
- package/dist/plugin-utils/type-checks.d.mts.map +0 -1
- package/dist/plugin-utils/type-checks.mjs +0 -218
- package/dist/plugin-utils/type-checks.mjs.map +0 -1
- package/dist/plugin.cjs.map +0 -1
- package/dist/plugin.mjs.map +0 -1
- package/dist/resolver/deepkit.cjs +0 -110
- package/dist/resolver/deepkit.cjs.map +0 -1
- package/dist/resolver/deepkit.mjs +0 -109
- package/dist/resolver/deepkit.mjs.map +0 -1
- package/dist/resolver/helpers.cjs +0 -184
- package/dist/resolver/helpers.cjs.map +0 -1
- package/dist/resolver/helpers.mjs +0 -180
- package/dist/resolver/helpers.mjs.map +0 -1
- package/dist/resolver/resolve.cjs +0 -473
- package/dist/resolver/resolve.cjs.map +0 -1
- package/dist/resolver/resolve.mjs +0 -473
- package/dist/resolver/resolve.mjs.map +0 -1
- package/dist/types/command.cjs.map +0 -1
- package/dist/types/command.d.cts.map +0 -1
- package/dist/types/command.d.mts.map +0 -1
- package/dist/types/command.mjs.map +0 -1
- package/dist/types/config.cjs.map +0 -1
- package/dist/types/config.d.cts.map +0 -1
- package/dist/types/config.d.mts.map +0 -1
- package/dist/types/config.mjs.map +0 -1
- package/dist/types/context.cjs.map +0 -1
- package/dist/types/context.d.cts.map +0 -1
- package/dist/types/context.d.mts.map +0 -1
- package/dist/types/context.mjs.map +0 -1
- package/dist/types/env.cjs +0 -53
- package/dist/types/env.cjs.map +0 -1
- package/dist/types/env.d.cts +0 -71
- package/dist/types/env.d.cts.map +0 -1
- package/dist/types/env.d.mts +0 -71
- package/dist/types/env.mjs +0 -51
- /package/dist/{types → schemas}/env.mjs.map +0 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { defineGenerator, defineOutput, defineSchema, execute } from "@power-plant/core";
|
|
2
|
+
import { render } from "@powerlines/plugin-alloy/render";
|
|
3
|
+
import { serializedCommandsSchema } from "@shell-shock/schema";
|
|
4
|
+
import { z } from "zod";
|
|
5
|
+
|
|
6
|
+
//#region src/helpers/power-plant.ts
|
|
7
|
+
/**
|
|
8
|
+
* Options passed to Shell Shock Alloy-js generators.
|
|
9
|
+
*/
|
|
10
|
+
function serializeCommand(command) {
|
|
11
|
+
return {
|
|
12
|
+
...command,
|
|
13
|
+
parent: command.parent?.name ? command.parent.name : null,
|
|
14
|
+
children: Object.fromEntries(Object.entries(command.children || {}).map(([name, child]) => [name, serializeCommand(child)]))
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Serializes `context.commands` into a JSON-safe Power Plant spec document.
|
|
19
|
+
*/
|
|
20
|
+
function serializeCommands(commands) {
|
|
21
|
+
return Object.fromEntries(Object.entries(commands ?? {}).map(([name, command]) => [name, serializeCommand(command)]));
|
|
22
|
+
}
|
|
23
|
+
const serializedCommandSchema = defineSchema({
|
|
24
|
+
meta: {
|
|
25
|
+
name: "command-schema-serialized",
|
|
26
|
+
title: "Shell Shock Serialized Command Tree Schema",
|
|
27
|
+
version: "1.0",
|
|
28
|
+
description: "JSON-safe Shell Shock command tree specification used as Power Plant generator input.",
|
|
29
|
+
tags: [
|
|
30
|
+
"shell-shock",
|
|
31
|
+
"command-tree",
|
|
32
|
+
"cli"
|
|
33
|
+
]
|
|
34
|
+
},
|
|
35
|
+
schema: z.toJSONSchema(serializedCommandsSchema)
|
|
36
|
+
});
|
|
37
|
+
/**
|
|
38
|
+
* Creates a Power Plant generator that renders Alloy-js templates from a
|
|
39
|
+
* Shell Shock command tree specification.
|
|
40
|
+
*
|
|
41
|
+
* @param config - Generator metadata and the Alloy render implementation.
|
|
42
|
+
* @returns A Power Plant generator configuration object.
|
|
43
|
+
*
|
|
44
|
+
* @see https://github.com/storm-software/power-plant/tree/main/packages/generators/alloy-js
|
|
45
|
+
* @see https://github.com/storm-software/powerlines/blob/main/packages/plugins/plugin-alloy/src/render.tsx
|
|
46
|
+
*/
|
|
47
|
+
function defineCommandGenerator(config) {
|
|
48
|
+
return defineGenerator({
|
|
49
|
+
...config,
|
|
50
|
+
schema: serializedCommandSchema,
|
|
51
|
+
output: defineOutput(() => void 0),
|
|
52
|
+
generator: async (commands, options) => {
|
|
53
|
+
return await config.generator(commands, options) ?? {};
|
|
54
|
+
}
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* Executes a command-tree Power Plant generator with `context.commands` as input.
|
|
59
|
+
*
|
|
60
|
+
* @remarks
|
|
61
|
+
* Calls {@link execute} from `@power-plant/core` directly (no Powerlines
|
|
62
|
+
* Power Plant plugin). Alloy templates still emit via `context` / plugin-alloy.
|
|
63
|
+
*
|
|
64
|
+
* @param context - The Shell Shock plugin context.
|
|
65
|
+
* @param generator - The generator configuration to execute.
|
|
66
|
+
* @param options - Extra generator options (merged with `{ context }`).
|
|
67
|
+
*
|
|
68
|
+
* @see https://github.com/storm-software/power-plant/blob/main/packages/base/core/src/execute.ts
|
|
69
|
+
*/
|
|
70
|
+
async function executeCommandGenerator(context, generator, options) {
|
|
71
|
+
await execute({
|
|
72
|
+
...generator,
|
|
73
|
+
input: serializeCommands(context.commands)
|
|
74
|
+
}, {
|
|
75
|
+
cwd: context.config.cwd,
|
|
76
|
+
logger: {
|
|
77
|
+
debug: (message) => context.debug(message),
|
|
78
|
+
info: (message) => context.info(message),
|
|
79
|
+
warn: (message) => context.warn(message),
|
|
80
|
+
error: (message) => context.error(message)
|
|
81
|
+
},
|
|
82
|
+
context,
|
|
83
|
+
...options
|
|
84
|
+
});
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* Renders Alloy-js children through the Powerlines Alloy render bridge.
|
|
88
|
+
*
|
|
89
|
+
* @remarks
|
|
90
|
+
* Prefer this inside Power Plant generators so builtins/entries emit correctly
|
|
91
|
+
* via the Powerlines plugin context (see plugin-alloy `render`).
|
|
92
|
+
*/
|
|
93
|
+
async function renderCommandTemplate(options, template) {
|
|
94
|
+
await render(options.context, options.template ?? template, {});
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
//#endregion
|
|
98
|
+
export { defineCommandGenerator, executeCommandGenerator, renderCommandTemplate, serializeCommands };
|
|
99
|
+
//# sourceMappingURL=power-plant.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"power-plant.mjs","names":[],"sources":[],"mappings":""}
|
package/dist/index.cjs
CHANGED
|
@@ -2,17 +2,6 @@ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
|
2
2
|
const require_config = require('./config.cjs');
|
|
3
3
|
|
|
4
4
|
//#region src/index.ts
|
|
5
|
-
const __ΩPartial = [
|
|
6
|
-
"T",
|
|
7
|
-
"Partial",
|
|
8
|
-
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
9
|
-
];
|
|
10
|
-
const __ΩRecord = [
|
|
11
|
-
"K",
|
|
12
|
-
"T",
|
|
13
|
-
"Record",
|
|
14
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
15
|
-
];
|
|
16
5
|
/**
|
|
17
6
|
* A utility function to define a Shell Shock command's metadata.
|
|
18
7
|
*
|
|
@@ -39,14 +28,6 @@ const __ΩRecord = [
|
|
|
39
28
|
function defineMetadata(metadata) {
|
|
40
29
|
return metadata;
|
|
41
30
|
}
|
|
42
|
-
defineMetadata.__type = [
|
|
43
|
-
() => __ΩPartial,
|
|
44
|
-
"CommandMetadata",
|
|
45
|
-
"metadata",
|
|
46
|
-
"defineMetadata",
|
|
47
|
-
"A utility function to define a Shell Shock command's metadata.",
|
|
48
|
-
"P\"w\"o!\"2#\"w\"/$?%"
|
|
49
|
-
];
|
|
50
31
|
/**
|
|
51
32
|
* A utility function to define a Shell Shock command's options.
|
|
52
33
|
*
|
|
@@ -72,15 +53,6 @@ defineMetadata.__type = [
|
|
|
72
53
|
function defineOptions(options) {
|
|
73
54
|
return options;
|
|
74
55
|
}
|
|
75
|
-
defineOptions.__type = [
|
|
76
|
-
() => __ΩRecord,
|
|
77
|
-
"CommandOptionConfig",
|
|
78
|
-
"options",
|
|
79
|
-
() => __ΩRecord,
|
|
80
|
-
"defineOptions",
|
|
81
|
-
"A utility function to define a Shell Shock command's options.",
|
|
82
|
-
"P&\"w\"o!#2#&\"w\"o$#/%?&"
|
|
83
|
-
];
|
|
84
56
|
/**
|
|
85
57
|
* A utility function to define a Shell Shock command's arguments.
|
|
86
58
|
*
|
|
@@ -107,17 +79,9 @@ defineOptions.__type = [
|
|
|
107
79
|
function defineArguments(args) {
|
|
108
80
|
return args;
|
|
109
81
|
}
|
|
110
|
-
defineArguments.__type = [
|
|
111
|
-
"CommandArgumentConfig",
|
|
112
|
-
"args",
|
|
113
|
-
"defineArguments",
|
|
114
|
-
"A utility function to define a Shell Shock command's arguments.",
|
|
115
|
-
"P\"w!F2\"\"w!F/#?$"
|
|
116
|
-
];
|
|
117
82
|
|
|
118
83
|
//#endregion
|
|
119
84
|
exports.defineArguments = defineArguments;
|
|
120
85
|
exports.defineConfig = require_config.defineConfig;
|
|
121
86
|
exports.defineMetadata = defineMetadata;
|
|
122
|
-
exports.defineOptions = defineOptions;
|
|
123
|
-
//# sourceMappingURL=index.cjs.map
|
|
87
|
+
exports.defineOptions = defineOptions;
|
package/dist/index.d.cts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Context,
|
|
3
|
-
import
|
|
4
|
-
import { ShellShockEnv } from "./types/env.cjs";
|
|
1
|
+
import { A as StringCommandParameterConfig, C as NumberCommandParameter, D as SingleNumberCommandParameter, E as SingleBooleanCommandParameter, M as VariadicNumberCommandParameter, N as VariadicStringCommandParameter, O as SingleStringCommandParameter, S as CommandTree, T as SerializedCommandTree, _ as CommandOption, a as BaseSingleCommandParameter, b as CommandParameterConfig, c as BooleanCommandOption, d as CommandArgument, f as CommandArgumentConfig, g as CommandModule, h as CommandMetadata, i as BaseNumberCommandParameter, j as VariadicBooleanCommandParameter, k as StringCommandParameter, l as BooleanCommandParameter, m as CommandConfig, n as BaseBooleanCommandParameter, o as BaseStringCommandParameter, p as CommandBase, r as BaseCommandParameter, s as BaseVariadicCommandParameter, t as AsCommandParameterConfig, u as BooleanCommandParameterConfig, v as CommandOptionConfig, w as NumberCommandParameterConfig, x as CommandParameterType, y as CommandParameter } from "./command-CtfR7hKM.cjs";
|
|
2
|
+
import { a as ResolvedConfig, c as UserConfigFn, d as CommandGeneratorOptions, f as Context, i as OutputConfig, l as UserConfigFnObject, m as UnresolvedContext, n as EngineOptions, o as UserConfig, p as ExecutionContext, r as Options, s as UserConfigExport, t as DocsOptions, u as UserConfigFnPromise } from "./config-BIF9mEz0.cjs";
|
|
3
|
+
import "./index-DYOBadKY.cjs";
|
|
5
4
|
import { defineConfig } from "./config.cjs";
|
|
6
|
-
|
|
7
5
|
//#region src/index.d.ts
|
|
8
6
|
/**
|
|
9
7
|
* A utility function to define a Shell Shock command's metadata.
|
|
@@ -77,5 +75,5 @@ declare function defineOptions(options: Record<string, CommandOptionConfig>): Re
|
|
|
77
75
|
*/
|
|
78
76
|
declare function defineArguments(args: CommandArgumentConfig[]): CommandArgumentConfig[];
|
|
79
77
|
//#endregion
|
|
80
|
-
export { type AsCommandParameterConfig, type BaseBooleanCommandParameter, type BaseCommandParameter, type BaseNumberCommandParameter, type BaseSingleCommandParameter, type BaseStringCommandParameter, type BaseVariadicCommandParameter, type BooleanCommandOption, type BooleanCommandParameter, type BooleanCommandParameterConfig, type CommandArgument, type CommandArgumentConfig, type CommandBase, type CommandConfig, type CommandMetadata, type CommandModule, type CommandOption, type CommandOptionConfig, type CommandParameter, type CommandParameterConfig, type CommandParameterType, type CommandTree, type Context, type DocsOptions, type EngineOptions, type ExecutionContext, type NumberCommandParameter, type NumberCommandParameterConfig, type Options, type OutputConfig, type ResolvedConfig, type SerializedCommandTree, type
|
|
78
|
+
export { type AsCommandParameterConfig, type BaseBooleanCommandParameter, type BaseCommandParameter, type BaseNumberCommandParameter, type BaseSingleCommandParameter, type BaseStringCommandParameter, type BaseVariadicCommandParameter, type BooleanCommandOption, type BooleanCommandParameter, type BooleanCommandParameterConfig, type CommandArgument, type CommandArgumentConfig, type CommandBase, type CommandConfig, type CommandGeneratorOptions, type CommandMetadata, type CommandModule, type CommandOption, type CommandOptionConfig, type CommandParameter, type CommandParameterConfig, type CommandParameterType, type CommandTree, type Context, type DocsOptions, type EngineOptions, type ExecutionContext, type NumberCommandParameter, type NumberCommandParameterConfig, type Options, type OutputConfig, type ResolvedConfig, type SerializedCommandTree, type SingleBooleanCommandParameter, type SingleNumberCommandParameter, type SingleStringCommandParameter, type StringCommandParameter, type StringCommandParameterConfig, type UnresolvedContext, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type VariadicBooleanCommandParameter, type VariadicNumberCommandParameter, type VariadicStringCommandParameter, defineArguments, defineConfig, defineMetadata, defineOptions };
|
|
81
79
|
//# sourceMappingURL=index.d.cts.map
|
package/dist/index.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../src/index.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAkDgB,eACd,UAAU,QAAQ,mBACjB;;;;;;;;;;;;;;;;;;;;;;;iBA0Ba,cACd,SAAS,eAAe,uBACvB,eAAe;;;;;;;;;;;;;;;;;;;;;;;;iBA2BF,gBACd,MAAM,0BACL"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { Context,
|
|
3
|
-
import
|
|
4
|
-
import { ShellShockEnv } from "./types/env.mjs";
|
|
1
|
+
import { A as StringCommandParameterConfig, C as NumberCommandParameter, D as SingleNumberCommandParameter, E as SingleBooleanCommandParameter, M as VariadicNumberCommandParameter, N as VariadicStringCommandParameter, O as SingleStringCommandParameter, S as CommandTree, T as SerializedCommandTree, _ as CommandOption, a as BaseSingleCommandParameter, b as CommandParameterConfig, c as BooleanCommandOption, d as CommandArgument, f as CommandArgumentConfig, g as CommandModule, h as CommandMetadata, i as BaseNumberCommandParameter, j as VariadicBooleanCommandParameter, k as StringCommandParameter, l as BooleanCommandParameter, m as CommandConfig, n as BaseBooleanCommandParameter, o as BaseStringCommandParameter, p as CommandBase, r as BaseCommandParameter, s as BaseVariadicCommandParameter, t as AsCommandParameterConfig, u as BooleanCommandParameterConfig, v as CommandOptionConfig, w as NumberCommandParameterConfig, x as CommandParameterType, y as CommandParameter } from "./command-B6KYexlV.mjs";
|
|
2
|
+
import { a as ResolvedConfig, c as UserConfigFn, d as CommandGeneratorOptions, f as Context, i as OutputConfig, l as UserConfigFnObject, m as UnresolvedContext, n as EngineOptions, o as UserConfig, p as ExecutionContext, r as Options, s as UserConfigExport, t as DocsOptions, u as UserConfigFnPromise } from "./config-CnNYdfsL.mjs";
|
|
3
|
+
import "./index-D4klH_pj.mjs";
|
|
5
4
|
import { defineConfig } from "./config.mjs";
|
|
6
|
-
|
|
7
5
|
//#region src/index.d.ts
|
|
8
6
|
/**
|
|
9
7
|
* A utility function to define a Shell Shock command's metadata.
|
|
@@ -77,5 +75,5 @@ declare function defineOptions(options: Record<string, CommandOptionConfig>): Re
|
|
|
77
75
|
*/
|
|
78
76
|
declare function defineArguments(args: CommandArgumentConfig[]): CommandArgumentConfig[];
|
|
79
77
|
//#endregion
|
|
80
|
-
export { type AsCommandParameterConfig, type BaseBooleanCommandParameter, type BaseCommandParameter, type BaseNumberCommandParameter, type BaseSingleCommandParameter, type BaseStringCommandParameter, type BaseVariadicCommandParameter, type BooleanCommandOption, type BooleanCommandParameter, type BooleanCommandParameterConfig, type CommandArgument, type CommandArgumentConfig, type CommandBase, type CommandConfig, type CommandMetadata, type CommandModule, type CommandOption, type CommandOptionConfig, type CommandParameter, type CommandParameterConfig, type CommandParameterType, type CommandTree, type Context, type DocsOptions, type EngineOptions, type ExecutionContext, type NumberCommandParameter, type NumberCommandParameterConfig, type Options, type OutputConfig, type ResolvedConfig, type SerializedCommandTree, type
|
|
78
|
+
export { type AsCommandParameterConfig, type BaseBooleanCommandParameter, type BaseCommandParameter, type BaseNumberCommandParameter, type BaseSingleCommandParameter, type BaseStringCommandParameter, type BaseVariadicCommandParameter, type BooleanCommandOption, type BooleanCommandParameter, type BooleanCommandParameterConfig, type CommandArgument, type CommandArgumentConfig, type CommandBase, type CommandConfig, type CommandGeneratorOptions, type CommandMetadata, type CommandModule, type CommandOption, type CommandOptionConfig, type CommandParameter, type CommandParameterConfig, type CommandParameterType, type CommandTree, type Context, type DocsOptions, type EngineOptions, type ExecutionContext, type NumberCommandParameter, type NumberCommandParameterConfig, type Options, type OutputConfig, type ResolvedConfig, type SerializedCommandTree, type SingleBooleanCommandParameter, type SingleNumberCommandParameter, type SingleStringCommandParameter, type StringCommandParameter, type StringCommandParameterConfig, type UnresolvedContext, type UserConfig, type UserConfigExport, type UserConfigFn, type UserConfigFnObject, type UserConfigFnPromise, type VariadicBooleanCommandParameter, type VariadicNumberCommandParameter, type VariadicStringCommandParameter, defineArguments, defineConfig, defineMetadata, defineOptions };
|
|
81
79
|
//# sourceMappingURL=index.d.mts.map
|
package/dist/index.mjs
CHANGED
|
@@ -1,17 +1,6 @@
|
|
|
1
1
|
import { defineConfig } from "./config.mjs";
|
|
2
2
|
|
|
3
3
|
//#region src/index.ts
|
|
4
|
-
const __ΩPartial = [
|
|
5
|
-
"T",
|
|
6
|
-
"Partial",
|
|
7
|
-
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
8
|
-
];
|
|
9
|
-
const __ΩRecord = [
|
|
10
|
-
"K",
|
|
11
|
-
"T",
|
|
12
|
-
"Record",
|
|
13
|
-
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
14
|
-
];
|
|
15
4
|
/**
|
|
16
5
|
* A utility function to define a Shell Shock command's metadata.
|
|
17
6
|
*
|
|
@@ -38,14 +27,6 @@ const __ΩRecord = [
|
|
|
38
27
|
function defineMetadata(metadata) {
|
|
39
28
|
return metadata;
|
|
40
29
|
}
|
|
41
|
-
defineMetadata.__type = [
|
|
42
|
-
() => __ΩPartial,
|
|
43
|
-
"CommandMetadata",
|
|
44
|
-
"metadata",
|
|
45
|
-
"defineMetadata",
|
|
46
|
-
"A utility function to define a Shell Shock command's metadata.",
|
|
47
|
-
"P\"w\"o!\"2#\"w\"/$?%"
|
|
48
|
-
];
|
|
49
30
|
/**
|
|
50
31
|
* A utility function to define a Shell Shock command's options.
|
|
51
32
|
*
|
|
@@ -71,15 +52,6 @@ defineMetadata.__type = [
|
|
|
71
52
|
function defineOptions(options) {
|
|
72
53
|
return options;
|
|
73
54
|
}
|
|
74
|
-
defineOptions.__type = [
|
|
75
|
-
() => __ΩRecord,
|
|
76
|
-
"CommandOptionConfig",
|
|
77
|
-
"options",
|
|
78
|
-
() => __ΩRecord,
|
|
79
|
-
"defineOptions",
|
|
80
|
-
"A utility function to define a Shell Shock command's options.",
|
|
81
|
-
"P&\"w\"o!#2#&\"w\"o$#/%?&"
|
|
82
|
-
];
|
|
83
55
|
/**
|
|
84
56
|
* A utility function to define a Shell Shock command's arguments.
|
|
85
57
|
*
|
|
@@ -106,13 +78,6 @@ defineOptions.__type = [
|
|
|
106
78
|
function defineArguments(args) {
|
|
107
79
|
return args;
|
|
108
80
|
}
|
|
109
|
-
defineArguments.__type = [
|
|
110
|
-
"CommandArgumentConfig",
|
|
111
|
-
"args",
|
|
112
|
-
"defineArguments",
|
|
113
|
-
"A utility function to define a Shell Shock command's arguments.",
|
|
114
|
-
"P\"w!F2\"\"w!F/#?$"
|
|
115
|
-
];
|
|
116
81
|
|
|
117
82
|
//#endregion
|
|
118
83
|
export { defineArguments, defineConfig, defineMetadata, defineOptions };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"package-B7Vu265G.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
|
|
2
1
|
//#region package.json
|
|
3
|
-
var version = "0.17.
|
|
2
|
+
var version = "0.17.22";
|
|
4
3
|
|
|
5
4
|
//#endregion
|
|
6
5
|
Object.defineProperty(exports, 'version', {
|
|
@@ -8,5 +7,4 @@ Object.defineProperty(exports, 'version', {
|
|
|
8
7
|
get: function () {
|
|
9
8
|
return version;
|
|
10
9
|
}
|
|
11
|
-
});
|
|
12
|
-
//# sourceMappingURL=package.cjs.map
|
|
10
|
+
});
|