@shell-shock/core 0.17.8 → 0.17.10
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/_virtual/_rolldown/runtime.cjs +29 -1
- package/dist/api.cjs +148 -1
- package/dist/api.d.cts +6 -6
- package/dist/api.d.cts.map +1 -1
- package/dist/api.d.mts +6 -6
- package/dist/api.d.mts.map +1 -1
- package/dist/api.mjs +145 -1
- package/dist/api.mjs.map +1 -1
- package/dist/components/command-validation-logic.cjs +292 -1
- package/dist/components/command-validation-logic.mjs +289 -1
- package/dist/components/command-validation-logic.mjs.map +1 -1
- package/dist/components/docs.cjs +265 -1
- package/dist/components/docs.mjs +256 -1
- package/dist/components/docs.mjs.map +1 -1
- package/dist/components/exec-builtin.cjs +429 -13
- package/dist/components/exec-builtin.mjs +425 -13
- package/dist/components/exec-builtin.mjs.map +1 -1
- package/dist/components/helpers.cjs +120 -1
- package/dist/components/helpers.mjs +112 -1
- package/dist/components/helpers.mjs.map +1 -1
- package/dist/components/index.cjs +58 -1
- package/dist/components/index.mjs +10 -1
- package/dist/components/options-parser-logic.cjs +960 -5
- package/dist/components/options-parser-logic.d.cts +1 -1
- package/dist/components/options-parser-logic.mjs +945 -5
- package/dist/components/options-parser-logic.mjs.map +1 -1
- package/dist/components/state-builtin.cjs +629 -8
- package/dist/components/state-builtin.mjs +622 -8
- package/dist/components/state-builtin.mjs.map +1 -1
- package/dist/components/usage.cjs +117 -1
- package/dist/components/usage.mjs +114 -1
- package/dist/components/usage.mjs.map +1 -1
- package/dist/components/utils-builtin.cjs +838 -33
- package/dist/components/utils-builtin.mjs +828 -33
- package/dist/components/utils-builtin.mjs.map +1 -1
- package/dist/config.cjs +31 -1
- package/dist/config.mjs +29 -1
- package/dist/config.mjs.map +1 -1
- package/dist/contexts/command.cjs +26 -1
- package/dist/contexts/command.mjs +23 -1
- package/dist/contexts/command.mjs.map +1 -1
- package/dist/contexts/index.cjs +9 -1
- package/dist/contexts/index.mjs +4 -1
- package/dist/contexts/options.cjs +63 -1
- package/dist/contexts/options.mjs +58 -1
- package/dist/contexts/options.mjs.map +1 -1
- package/dist/helpers/automd.cjs +71 -1
- package/dist/helpers/automd.mjs +70 -1
- package/dist/helpers/automd.mjs.map +1 -1
- package/dist/helpers/docs-helpers.cjs +23 -1
- package/dist/helpers/docs-helpers.mjs +22 -1
- package/dist/helpers/docs-helpers.mjs.map +1 -1
- package/dist/helpers/paths.cjs +137 -1
- package/dist/helpers/paths.mjs +133 -1
- package/dist/helpers/paths.mjs.map +1 -1
- package/dist/helpers/persistence.cjs +115 -1
- package/dist/helpers/persistence.mjs +112 -1
- package/dist/helpers/persistence.mjs.map +1 -1
- package/dist/helpers/update-package-json.cjs +65 -1
- package/dist/helpers/update-package-json.mjs +63 -1
- package/dist/helpers/update-package-json.mjs.map +1 -1
- package/dist/helpers/utilities.cjs +95 -1
- package/dist/helpers/utilities.mjs +93 -1
- package/dist/helpers/utilities.mjs.map +1 -1
- package/dist/helpers/validations.cjs +71 -1
- package/dist/helpers/validations.mjs +71 -1
- package/dist/helpers/validations.mjs.map +1 -1
- package/dist/index.cjs +53 -1
- package/dist/index.d.cts +3 -3
- package/dist/index.d.mts +3 -3
- package/dist/index.mjs +7 -1
- package/dist/plugin-utils/compute-bin.cjs +50 -1
- package/dist/plugin-utils/compute-bin.mjs +49 -1
- package/dist/plugin-utils/compute-bin.mjs.map +1 -1
- package/dist/plugin-utils/context-helpers.cjs +231 -1
- package/dist/plugin-utils/context-helpers.mjs +221 -1
- package/dist/plugin-utils/context-helpers.mjs.map +1 -1
- package/dist/plugin-utils/deepkit.cjs +71 -1
- package/dist/plugin-utils/deepkit.mjs +69 -1
- package/dist/plugin-utils/deepkit.mjs.map +1 -1
- package/dist/plugin-utils/description-helpers.cjs +111 -2
- package/dist/plugin-utils/description-helpers.mjs +107 -2
- package/dist/plugin-utils/description-helpers.mjs.map +1 -1
- package/dist/plugin-utils/get-command-tree.cjs +117 -1
- package/dist/plugin-utils/get-command-tree.mjs +114 -1
- package/dist/plugin-utils/get-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/index.cjs +39 -1
- package/dist/plugin-utils/index.mjs +10 -1
- package/dist/plugin-utils/reflect.cjs +52 -1
- package/dist/plugin-utils/reflect.mjs +52 -1
- package/dist/plugin-utils/reflect.mjs.map +1 -1
- package/dist/plugin-utils/traverse-command-tree.cjs +64 -1
- package/dist/plugin-utils/traverse-command-tree.mjs +62 -1
- package/dist/plugin-utils/traverse-command-tree.mjs.map +1 -1
- package/dist/plugin-utils/type-checks.cjs +93 -1
- package/dist/plugin-utils/type-checks.mjs +88 -1
- package/dist/plugin-utils/type-checks.mjs.map +1 -1
- package/dist/plugin.cjs +471 -4
- package/dist/plugin.d.cts.map +1 -1
- package/dist/plugin.d.mts.map +1 -1
- package/dist/plugin.mjs +465 -4
- package/dist/plugin.mjs.map +1 -1
- package/dist/resolver/deepkit.cjs +135 -1
- package/dist/resolver/deepkit.mjs +134 -1
- package/dist/resolver/deepkit.mjs.map +1 -1
- package/dist/resolver/helpers.cjs +173 -1
- package/dist/resolver/helpers.mjs +168 -1
- package/dist/resolver/helpers.mjs.map +1 -1
- package/dist/resolver/module.cjs +145 -1
- package/dist/resolver/module.mjs +144 -1
- package/dist/resolver/module.mjs.map +1 -1
- package/dist/resolver/resolve.cjs +222 -1
- package/dist/resolver/resolve.mjs +221 -1
- package/dist/resolver/resolve.mjs.map +1 -1
- package/dist/types/command.cjs +441 -1
- package/dist/types/command.d.cts +1 -1
- package/dist/types/command.d.mts +2 -2
- package/dist/types/command.mjs +405 -1
- package/dist/types/command.mjs.map +1 -1
- package/dist/types/config.cjs +134 -1
- package/dist/types/config.d.cts +10 -8
- package/dist/types/config.d.cts.map +1 -1
- package/dist/types/config.d.mts +10 -8
- package/dist/types/config.d.mts.map +1 -1
- package/dist/types/config.mjs +127 -1
- package/dist/types/config.mjs.map +1 -1
- package/dist/types/context.cjs +37 -1
- package/dist/types/context.mjs +34 -1
- package/dist/types/context.mjs.map +1 -1
- package/dist/types/env.cjs +52 -1
- package/dist/types/env.d.cts +1 -1
- package/dist/types/env.d.mts +1 -1
- package/dist/types/env.mjs +50 -1
- package/dist/types/env.mjs.map +1 -1
- package/dist/types/index.cjs +50 -1
- package/dist/types/index.d.cts +2 -2
- package/dist/types/index.d.mts +2 -2
- package/dist/types/index.mjs +6 -1
- package/dist/types/options.cjs +12 -1
- package/dist/types/options.mjs +10 -1
- package/package.json +22 -21
package/dist/types/command.cjs
CHANGED
|
@@ -1 +1,441 @@
|
|
|
1
|
-
Object.defineProperty(exports,Symbol.toStringTag,
|
|
1
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
+
|
|
3
|
+
//#region src/types/command.ts
|
|
4
|
+
const __ΩPick = [
|
|
5
|
+
"T",
|
|
6
|
+
"K",
|
|
7
|
+
"Pick",
|
|
8
|
+
"l+e#!e\"!fRb!b\"Pde\"\"N#!w#y"
|
|
9
|
+
];
|
|
10
|
+
const __ΩPartial = [
|
|
11
|
+
"T",
|
|
12
|
+
"Partial",
|
|
13
|
+
"l+e#!e\"!fRb!Pde\"!gN#\"w\"y"
|
|
14
|
+
];
|
|
15
|
+
const __ΩOmit = [
|
|
16
|
+
"T",
|
|
17
|
+
"K",
|
|
18
|
+
() => __ΩPick,
|
|
19
|
+
() => __ΩExclude,
|
|
20
|
+
"Omit",
|
|
21
|
+
"b!b\"e!!e!!ge!\"o$#o##w%y"
|
|
22
|
+
];
|
|
23
|
+
const __ΩRecord = [
|
|
24
|
+
"K",
|
|
25
|
+
"T",
|
|
26
|
+
"Record",
|
|
27
|
+
"l'e#\"Rb!b\"Pde\"!N#!w#y"
|
|
28
|
+
];
|
|
29
|
+
const __ΩExclude = [
|
|
30
|
+
"T",
|
|
31
|
+
"U",
|
|
32
|
+
"Exclude",
|
|
33
|
+
"l6!Re$!RPe#!e$\"qk#%QRb!b\"Pde\"!p)w#y"
|
|
34
|
+
];
|
|
35
|
+
const __ΩCommandParameterType = ["CommandParameterType", "P&')P&'JFJw!y"];
|
|
36
|
+
const CommandParameterKinds = {
|
|
37
|
+
string: "string",
|
|
38
|
+
number: "number",
|
|
39
|
+
boolean: "boolean"
|
|
40
|
+
};
|
|
41
|
+
const __ΩCommandParameterKind = [
|
|
42
|
+
() => CommandParameterKinds,
|
|
43
|
+
() => CommandParameterKinds,
|
|
44
|
+
"CommandParameterKind",
|
|
45
|
+
"i!i\"gfw#y"
|
|
46
|
+
];
|
|
47
|
+
const __ΩBaseCommandParameter = [
|
|
48
|
+
"name",
|
|
49
|
+
"The option name.",
|
|
50
|
+
() => __ΩCommandParameterKind,
|
|
51
|
+
"kind",
|
|
52
|
+
"The option kind.",
|
|
53
|
+
"title",
|
|
54
|
+
"The display title.",
|
|
55
|
+
"description",
|
|
56
|
+
"The option description.",
|
|
57
|
+
"alias",
|
|
58
|
+
"Alternative option names.",
|
|
59
|
+
"default",
|
|
60
|
+
"The default value.",
|
|
61
|
+
false,
|
|
62
|
+
"env",
|
|
63
|
+
"The environment variable name or false to disable.",
|
|
64
|
+
"optional",
|
|
65
|
+
"Whether the option is optional.",
|
|
66
|
+
"variadic",
|
|
67
|
+
"Whether the option accepts multiple values.",
|
|
68
|
+
"BaseCommandParameter",
|
|
69
|
+
"P&4!?\"n#4$?%&4&?'&4(?)&F4*?+P&')&F'F)FJ4,8?-P&..J4/?0)41?2)43?4Mw5y"
|
|
70
|
+
];
|
|
71
|
+
const __ΩBaseSingleCommandParameter = [
|
|
72
|
+
"default",
|
|
73
|
+
"The default value.",
|
|
74
|
+
false,
|
|
75
|
+
"variadic",
|
|
76
|
+
"Whether the option accepts multiple values.",
|
|
77
|
+
"BaseSingleCommandParameter",
|
|
78
|
+
"PP&')J4!8?\".#4$?%Mw&y"
|
|
79
|
+
];
|
|
80
|
+
const __ΩBaseVariadicCommandParameter = [
|
|
81
|
+
"default",
|
|
82
|
+
"The default value.",
|
|
83
|
+
true,
|
|
84
|
+
"variadic",
|
|
85
|
+
"Whether the option accepts multiple values.",
|
|
86
|
+
"BaseVariadicCommandParameter",
|
|
87
|
+
"PP&F'F)FJ4!8?\".#4$?%Mw&y"
|
|
88
|
+
];
|
|
89
|
+
const __ΩBaseStringCommandParameter = [
|
|
90
|
+
() => __ΩBaseCommandParameter,
|
|
91
|
+
"string",
|
|
92
|
+
"kind",
|
|
93
|
+
"The option kind.",
|
|
94
|
+
"default",
|
|
95
|
+
"The default value.",
|
|
96
|
+
"email",
|
|
97
|
+
"uri",
|
|
98
|
+
"uuid",
|
|
99
|
+
"ipv4",
|
|
100
|
+
"ipv6",
|
|
101
|
+
"date",
|
|
102
|
+
"time",
|
|
103
|
+
"date-time",
|
|
104
|
+
"duration",
|
|
105
|
+
"format",
|
|
106
|
+
"A standard string format to validate the option value against.",
|
|
107
|
+
"choices",
|
|
108
|
+
"The allowed choices for the option value.",
|
|
109
|
+
"BaseStringCommandParameter",
|
|
110
|
+
"Pn!.\"4#?$P&&FJ4%8?&P.'.(.).*.+.,.-.../J408?1&F428?3Mw4y"
|
|
111
|
+
];
|
|
112
|
+
const __ΩSingleStringCommandParameter = [
|
|
113
|
+
() => __ΩBaseStringCommandParameter,
|
|
114
|
+
"default",
|
|
115
|
+
"The default value.",
|
|
116
|
+
false,
|
|
117
|
+
"variadic",
|
|
118
|
+
"Whether the option accepts multiple values.",
|
|
119
|
+
"SingleStringCommandParameter",
|
|
120
|
+
"Pn!&4\"8?#.$4%?&Mw'y"
|
|
121
|
+
];
|
|
122
|
+
const __ΩVariadicStringCommandParameter = [
|
|
123
|
+
() => __ΩBaseStringCommandParameter,
|
|
124
|
+
"default",
|
|
125
|
+
"The default value.",
|
|
126
|
+
true,
|
|
127
|
+
"variadic",
|
|
128
|
+
"Whether the option accepts multiple values.",
|
|
129
|
+
"VariadicStringCommandParameter",
|
|
130
|
+
"Pn!&F4\"8?#.$4%?&Mw'y"
|
|
131
|
+
];
|
|
132
|
+
const __ΩStringCommandParameter = [
|
|
133
|
+
() => __ΩSingleStringCommandParameter,
|
|
134
|
+
() => __ΩVariadicStringCommandParameter,
|
|
135
|
+
"StringCommandParameter",
|
|
136
|
+
"Pn!n\"Jw#y"
|
|
137
|
+
];
|
|
138
|
+
const __ΩBaseNumberCommandParameter = [
|
|
139
|
+
() => __ΩBaseCommandParameter,
|
|
140
|
+
"number",
|
|
141
|
+
"kind",
|
|
142
|
+
"The option kind.",
|
|
143
|
+
"default",
|
|
144
|
+
"The default value.",
|
|
145
|
+
"choices",
|
|
146
|
+
"The allowed choices for the option value.",
|
|
147
|
+
"BaseNumberCommandParameter",
|
|
148
|
+
"Pn!.\"4#?$P''FJ4%8?&'F4'8?(Mw)y"
|
|
149
|
+
];
|
|
150
|
+
const __ΩSingleNumberCommandParameter = [
|
|
151
|
+
() => __ΩBaseNumberCommandParameter,
|
|
152
|
+
"default",
|
|
153
|
+
"The default value.",
|
|
154
|
+
false,
|
|
155
|
+
"variadic",
|
|
156
|
+
"Whether the option accepts multiple values.",
|
|
157
|
+
"SingleNumberCommandParameter",
|
|
158
|
+
"Pn!'4\"8?#.$4%?&Mw'y"
|
|
159
|
+
];
|
|
160
|
+
const __ΩVariadicNumberCommandParameter = [
|
|
161
|
+
() => __ΩBaseNumberCommandParameter,
|
|
162
|
+
"default",
|
|
163
|
+
"The default value.",
|
|
164
|
+
true,
|
|
165
|
+
"variadic",
|
|
166
|
+
"Whether the option accepts multiple values.",
|
|
167
|
+
"VariadicNumberCommandParameter",
|
|
168
|
+
"Pn!'F4\"8?#.$4%?&Mw'y"
|
|
169
|
+
];
|
|
170
|
+
const __ΩNumberCommandParameter = [
|
|
171
|
+
() => __ΩSingleNumberCommandParameter,
|
|
172
|
+
() => __ΩVariadicNumberCommandParameter,
|
|
173
|
+
"NumberCommandParameter",
|
|
174
|
+
"Pn!n\"Jw#y"
|
|
175
|
+
];
|
|
176
|
+
const __ΩBaseBooleanCommandParameter = [
|
|
177
|
+
() => __ΩBaseCommandParameter,
|
|
178
|
+
"boolean",
|
|
179
|
+
"kind",
|
|
180
|
+
"The option kind.",
|
|
181
|
+
"default",
|
|
182
|
+
"The default value.",
|
|
183
|
+
"BaseBooleanCommandParameter",
|
|
184
|
+
"Pn!.\"4#?$P))FJ4%8?&Mw'y"
|
|
185
|
+
];
|
|
186
|
+
const __ΩSingleBooleanCommandParameter = [
|
|
187
|
+
() => __ΩBaseBooleanCommandParameter,
|
|
188
|
+
"default",
|
|
189
|
+
"The default value.",
|
|
190
|
+
false,
|
|
191
|
+
"variadic",
|
|
192
|
+
"Whether the option accepts multiple values.",
|
|
193
|
+
"SingleBooleanCommandParameter",
|
|
194
|
+
"Pn!)4\"8?#.$4%?&Mw'y"
|
|
195
|
+
];
|
|
196
|
+
const __ΩVariadicBooleanCommandParameter = [
|
|
197
|
+
() => __ΩBaseBooleanCommandParameter,
|
|
198
|
+
"default",
|
|
199
|
+
"The default value.",
|
|
200
|
+
true,
|
|
201
|
+
"variadic",
|
|
202
|
+
"Whether the option accepts multiple values.",
|
|
203
|
+
"VariadicBooleanCommandParameter",
|
|
204
|
+
"Pn!)F4\"8?#.$4%?&Mw'y"
|
|
205
|
+
];
|
|
206
|
+
const __ΩBooleanCommandParameter = [
|
|
207
|
+
() => __ΩSingleBooleanCommandParameter,
|
|
208
|
+
() => __ΩVariadicBooleanCommandParameter,
|
|
209
|
+
"BooleanCommandParameter",
|
|
210
|
+
"Pn!n\"Jw#y"
|
|
211
|
+
];
|
|
212
|
+
const __ΩCommandParameter = [
|
|
213
|
+
() => __ΩStringCommandParameter,
|
|
214
|
+
() => __ΩNumberCommandParameter,
|
|
215
|
+
() => __ΩBooleanCommandParameter,
|
|
216
|
+
"CommandParameter",
|
|
217
|
+
"Pn!n\"n#Jw$y"
|
|
218
|
+
];
|
|
219
|
+
const __ΩAsCommandParameterConfig = [
|
|
220
|
+
"T",
|
|
221
|
+
() => __ΩPick,
|
|
222
|
+
"kind",
|
|
223
|
+
"alias",
|
|
224
|
+
() => __ΩPartial,
|
|
225
|
+
() => __ΩOmit,
|
|
226
|
+
"kind",
|
|
227
|
+
"alias",
|
|
228
|
+
"alias",
|
|
229
|
+
"AsCommandParameterConfig",
|
|
230
|
+
"b!Pe\"!P.#.$Jo\"#e\"!P.'.(Jo&#o%\"PP&&FJ4)8MKw*y"
|
|
231
|
+
];
|
|
232
|
+
const __ΩStringCommandParameterConfig = [
|
|
233
|
+
() => __ΩAsCommandParameterConfig,
|
|
234
|
+
() => __ΩStringCommandParameter,
|
|
235
|
+
"StringCommandParameterConfig",
|
|
236
|
+
"n\"o!\"w#y"
|
|
237
|
+
];
|
|
238
|
+
const __ΩNumberCommandParameterConfig = [
|
|
239
|
+
() => __ΩAsCommandParameterConfig,
|
|
240
|
+
() => __ΩNumberCommandParameter,
|
|
241
|
+
"NumberCommandParameterConfig",
|
|
242
|
+
"n\"o!\"w#y"
|
|
243
|
+
];
|
|
244
|
+
const __ΩBooleanCommandParameterConfig = [
|
|
245
|
+
() => __ΩAsCommandParameterConfig,
|
|
246
|
+
() => __ΩBooleanCommandParameter,
|
|
247
|
+
"BooleanCommandParameterConfig",
|
|
248
|
+
"n\"o!\"w#y"
|
|
249
|
+
];
|
|
250
|
+
const __ΩCommandParameterConfig = [
|
|
251
|
+
() => __ΩStringCommandParameterConfig,
|
|
252
|
+
() => __ΩNumberCommandParameterConfig,
|
|
253
|
+
() => __ΩBooleanCommandParameterConfig,
|
|
254
|
+
"CommandParameterConfig",
|
|
255
|
+
"Pn!n\"n#Jw$y"
|
|
256
|
+
];
|
|
257
|
+
const __ΩBooleanCommandOption = [
|
|
258
|
+
() => __ΩSingleBooleanCommandParameter,
|
|
259
|
+
"isNegativeOf",
|
|
260
|
+
"The option this negates.",
|
|
261
|
+
"skipAddingNegative",
|
|
262
|
+
"Whether to skip adding a negative option.",
|
|
263
|
+
"BooleanCommandOption",
|
|
264
|
+
"Pn!&4\"8?#)4$8?%Mw&y"
|
|
265
|
+
];
|
|
266
|
+
const __ΩCommandOption = [
|
|
267
|
+
() => __ΩStringCommandParameter,
|
|
268
|
+
() => __ΩNumberCommandParameter,
|
|
269
|
+
() => __ΩBooleanCommandOption,
|
|
270
|
+
() => __ΩVariadicBooleanCommandParameter,
|
|
271
|
+
"CommandOption",
|
|
272
|
+
"Pn!n\"n#n$Jw%y"
|
|
273
|
+
];
|
|
274
|
+
const __ΩCommandOptionConfig = [
|
|
275
|
+
() => __ΩAsCommandParameterConfig,
|
|
276
|
+
() => __ΩCommandOption,
|
|
277
|
+
"CommandOptionConfig",
|
|
278
|
+
"n\"o!\"w#y"
|
|
279
|
+
];
|
|
280
|
+
const __ΩCommandArgument = [
|
|
281
|
+
() => __ΩStringCommandParameter,
|
|
282
|
+
() => __ΩNumberCommandParameter,
|
|
283
|
+
() => __ΩBooleanCommandParameter,
|
|
284
|
+
"CommandArgument",
|
|
285
|
+
"Pn!n\"n#Jw$y"
|
|
286
|
+
];
|
|
287
|
+
const __ΩCommandArgumentConfig = [
|
|
288
|
+
() => __ΩAsCommandParameterConfig,
|
|
289
|
+
() => __ΩCommandArgument,
|
|
290
|
+
"CommandArgumentConfig",
|
|
291
|
+
"n\"o!\"w#y"
|
|
292
|
+
];
|
|
293
|
+
const __ΩCommandBase = [
|
|
294
|
+
"id",
|
|
295
|
+
"The command id.",
|
|
296
|
+
"name",
|
|
297
|
+
"The command name.",
|
|
298
|
+
"path",
|
|
299
|
+
"The full command path value.",
|
|
300
|
+
"segments",
|
|
301
|
+
"The path segments.",
|
|
302
|
+
"title",
|
|
303
|
+
"The display title.",
|
|
304
|
+
"description",
|
|
305
|
+
"The command description.",
|
|
306
|
+
"alias",
|
|
307
|
+
"Alternative command names.",
|
|
308
|
+
"icon",
|
|
309
|
+
"The command icon.",
|
|
310
|
+
"reference",
|
|
311
|
+
"A URL to the command documentation or reference.",
|
|
312
|
+
"isVirtual",
|
|
313
|
+
"Whether the command is virtual.",
|
|
314
|
+
"CommandBase",
|
|
315
|
+
"PP&,J4!?\"&4#?$P&,J4%?&&F4'?(&4)8?*&4+8?,&F4-8?.&4/8?0&418?2)43?4Mw5y"
|
|
316
|
+
];
|
|
317
|
+
const __ΩCommandConfig = [
|
|
318
|
+
() => __ΩCommandBase,
|
|
319
|
+
"id",
|
|
320
|
+
"The command id.",
|
|
321
|
+
"entry",
|
|
322
|
+
"The resolved entry definition.",
|
|
323
|
+
"tags",
|
|
324
|
+
"Optional tags for the command.",
|
|
325
|
+
"file",
|
|
326
|
+
"source",
|
|
327
|
+
"A string representing the source of the command, which can be \"file\", a specific plugin name, or any other string value that describes the source that added the command.",
|
|
328
|
+
"CommandConfig",
|
|
329
|
+
"Pn!&4\"?#!4$?%&F4&8?'P.(&J4)8?*Mw+y"
|
|
330
|
+
];
|
|
331
|
+
const __ΩCommandTree = [
|
|
332
|
+
() => __ΩCommandConfig,
|
|
333
|
+
"title",
|
|
334
|
+
"The display title.",
|
|
335
|
+
"description",
|
|
336
|
+
"The command description.",
|
|
337
|
+
"alias",
|
|
338
|
+
"Alternative command names.",
|
|
339
|
+
"tags",
|
|
340
|
+
"A set of tags for the command.",
|
|
341
|
+
"file",
|
|
342
|
+
"source",
|
|
343
|
+
"A string representing the source of the command, which can be \"file\", a specific plugin name, or any other string value that describes the source that added the command.",
|
|
344
|
+
() => __ΩRecord,
|
|
345
|
+
() => __ΩCommandOption,
|
|
346
|
+
"options",
|
|
347
|
+
"The command options.",
|
|
348
|
+
() => __ΩCommandArgument,
|
|
349
|
+
"args",
|
|
350
|
+
"The positional arguments provided to the command.",
|
|
351
|
+
0,
|
|
352
|
+
"parent",
|
|
353
|
+
"The parent command.",
|
|
354
|
+
() => __ΩRecord,
|
|
355
|
+
0,
|
|
356
|
+
"children",
|
|
357
|
+
"Child commands.",
|
|
358
|
+
"CommandTree",
|
|
359
|
+
"Pn!P&4\"?#&4$?%&F4&?'&F4(?)P.*&J4+?,&n.o-#4/?0n1F42?3P,n4J45?6&n8o7#49?:MKw;y"
|
|
360
|
+
];
|
|
361
|
+
const __ΩSerializedCommandTree = [
|
|
362
|
+
() => __ΩOmit,
|
|
363
|
+
() => __ΩCommandTree,
|
|
364
|
+
"parent",
|
|
365
|
+
"children",
|
|
366
|
+
"parent",
|
|
367
|
+
"The parent command id.",
|
|
368
|
+
() => __ΩRecord,
|
|
369
|
+
0,
|
|
370
|
+
"children",
|
|
371
|
+
"Serialized child commands.",
|
|
372
|
+
"SerializedCommandTree",
|
|
373
|
+
"Pn\"P.#.$Jo!#PP,&J4%?&&n(o'#4)?*MKw+y"
|
|
374
|
+
];
|
|
375
|
+
const __ΩCommandMetadata = [
|
|
376
|
+
"title",
|
|
377
|
+
"The display name of the command.",
|
|
378
|
+
"description",
|
|
379
|
+
"A brief description of what the command does.",
|
|
380
|
+
"alias",
|
|
381
|
+
"One or more alternative names for the command.",
|
|
382
|
+
"tags",
|
|
383
|
+
"Optional tags for the command.",
|
|
384
|
+
"icon",
|
|
385
|
+
"An optional icon to visually represent the command in user interfaces.",
|
|
386
|
+
"reference",
|
|
387
|
+
"A URL to the command documentation or reference.",
|
|
388
|
+
"CommandMetadata",
|
|
389
|
+
"P&4!8?\"&4#8?$P&&FJ4%8?&&F4'8?(&4)8?*&4+8?,Mw-y"
|
|
390
|
+
];
|
|
391
|
+
const __ΩCommandModule = [
|
|
392
|
+
() => __ΩCommandMetadata,
|
|
393
|
+
"metadata",
|
|
394
|
+
() => __ΩRecord,
|
|
395
|
+
() => __ΩCommandOptionConfig,
|
|
396
|
+
"JSONSchema7Object",
|
|
397
|
+
"StandardJSONSchemaV1",
|
|
398
|
+
"options",
|
|
399
|
+
() => __ΩCommandArgumentConfig,
|
|
400
|
+
"args",
|
|
401
|
+
"default",
|
|
402
|
+
"CommandModule",
|
|
403
|
+
"Pn!4\"8P&n$o##\"w%\"w&!J4'8Pn(F!\"w&!J4)8!4*8Mw+y"
|
|
404
|
+
];
|
|
405
|
+
|
|
406
|
+
//#endregion
|
|
407
|
+
exports.CommandParameterKinds = CommandParameterKinds;
|
|
408
|
+
exports.__ΩAsCommandParameterConfig = __ΩAsCommandParameterConfig;
|
|
409
|
+
exports.__ΩBaseBooleanCommandParameter = __ΩBaseBooleanCommandParameter;
|
|
410
|
+
exports.__ΩBaseCommandParameter = __ΩBaseCommandParameter;
|
|
411
|
+
exports.__ΩBaseNumberCommandParameter = __ΩBaseNumberCommandParameter;
|
|
412
|
+
exports.__ΩBaseSingleCommandParameter = __ΩBaseSingleCommandParameter;
|
|
413
|
+
exports.__ΩBaseStringCommandParameter = __ΩBaseStringCommandParameter;
|
|
414
|
+
exports.__ΩBaseVariadicCommandParameter = __ΩBaseVariadicCommandParameter;
|
|
415
|
+
exports.__ΩBooleanCommandOption = __ΩBooleanCommandOption;
|
|
416
|
+
exports.__ΩBooleanCommandParameter = __ΩBooleanCommandParameter;
|
|
417
|
+
exports.__ΩBooleanCommandParameterConfig = __ΩBooleanCommandParameterConfig;
|
|
418
|
+
exports.__ΩCommandArgument = __ΩCommandArgument;
|
|
419
|
+
exports.__ΩCommandArgumentConfig = __ΩCommandArgumentConfig;
|
|
420
|
+
exports.__ΩCommandBase = __ΩCommandBase;
|
|
421
|
+
exports.__ΩCommandConfig = __ΩCommandConfig;
|
|
422
|
+
exports.__ΩCommandMetadata = __ΩCommandMetadata;
|
|
423
|
+
exports.__ΩCommandModule = __ΩCommandModule;
|
|
424
|
+
exports.__ΩCommandOption = __ΩCommandOption;
|
|
425
|
+
exports.__ΩCommandOptionConfig = __ΩCommandOptionConfig;
|
|
426
|
+
exports.__ΩCommandParameter = __ΩCommandParameter;
|
|
427
|
+
exports.__ΩCommandParameterConfig = __ΩCommandParameterConfig;
|
|
428
|
+
exports.__ΩCommandParameterKind = __ΩCommandParameterKind;
|
|
429
|
+
exports.__ΩCommandParameterType = __ΩCommandParameterType;
|
|
430
|
+
exports.__ΩCommandTree = __ΩCommandTree;
|
|
431
|
+
exports.__ΩNumberCommandParameter = __ΩNumberCommandParameter;
|
|
432
|
+
exports.__ΩNumberCommandParameterConfig = __ΩNumberCommandParameterConfig;
|
|
433
|
+
exports.__ΩSerializedCommandTree = __ΩSerializedCommandTree;
|
|
434
|
+
exports.__ΩSingleBooleanCommandParameter = __ΩSingleBooleanCommandParameter;
|
|
435
|
+
exports.__ΩSingleNumberCommandParameter = __ΩSingleNumberCommandParameter;
|
|
436
|
+
exports.__ΩSingleStringCommandParameter = __ΩSingleStringCommandParameter;
|
|
437
|
+
exports.__ΩStringCommandParameter = __ΩStringCommandParameter;
|
|
438
|
+
exports.__ΩStringCommandParameterConfig = __ΩStringCommandParameterConfig;
|
|
439
|
+
exports.__ΩVariadicBooleanCommandParameter = __ΩVariadicBooleanCommandParameter;
|
|
440
|
+
exports.__ΩVariadicNumberCommandParameter = __ΩVariadicNumberCommandParameter;
|
|
441
|
+
exports.__ΩVariadicStringCommandParameter = __ΩVariadicStringCommandParameter;
|
package/dist/types/command.d.cts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
2
|
+
import { AnyFunction } from "@stryke/types/base";
|
|
2
3
|
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
3
4
|
import { JsonSchema7TupleType } from "@stryke/json";
|
|
4
|
-
import { AnyFunction } from "@stryke/types/base";
|
|
5
5
|
import { JSONSchema7Object } from "json-schema";
|
|
6
6
|
import * as z3 from "zod/v3";
|
|
7
7
|
|
package/dist/types/command.d.mts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
2
1
|
import { JsonSchema7TupleType } from "@stryke/json";
|
|
3
|
-
import {
|
|
2
|
+
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
4
3
|
import { AnyFunction } from "@stryke/types/base";
|
|
4
|
+
import { StandardJSONSchemaV1 } from "@standard-schema/spec";
|
|
5
5
|
import { JSONSchema7Object } from "json-schema";
|
|
6
6
|
import * as z3 from "zod/v3";
|
|
7
7
|
|