@shell-shock/plugin-theme 0.4.23 → 0.4.24
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.mjs +1 -34
- package/dist/contexts/theme.cjs +0 -1
- package/dist/contexts/theme.d.cts.map +1 -1
- package/dist/contexts/theme.d.mts.map +1 -1
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/config.d.cts +1 -0
- package/dist/core/dist/config.d.mts +9 -0
- package/dist/core/dist/config.d.mts.map +1 -0
- package/dist/core/dist/index.d.cts +1 -1
- package/dist/{packages/core → core}/dist/index.d.mts +2 -2
- package/dist/core/dist/index.d.mts.map +1 -0
- package/dist/core/dist/types/command.d.cts +60 -69
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/command.d.mts +8 -0
- package/dist/core/dist/types/command.d.mts.map +1 -0
- package/dist/core/dist/types/config.d.cts +7 -8
- package/dist/core/dist/types/config.d.cts.map +1 -1
- package/dist/{packages/core → core}/dist/types/config.d.mts +1 -1
- package/dist/core/dist/types/config.d.mts.map +1 -0
- package/dist/core/dist/types/context.d.cts.map +1 -1
- package/dist/{packages/core → core}/dist/types/context.d.mts +1 -1
- package/dist/core/dist/types/context.d.mts.map +1 -0
- package/dist/{packages/core → core}/dist/types/options.d.mts +1 -1
- package/dist/core/dist/types/options.d.mts.map +1 -0
- package/dist/helpers/ansi-utils.cjs +0 -1
- package/dist/helpers/ansi-utils.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.d.mts.map +1 -1
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.d.cts.map +1 -1
- package/dist/helpers/border-styles.d.mts.map +1 -1
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/constants.d.mts.map +1 -1
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -1
- package/dist/helpers/merge.cjs +0 -1
- package/dist/helpers/merge.d.cts.map +1 -1
- package/dist/helpers/merge.d.mts.map +1 -1
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.d.cts.map +1 -1
- package/dist/helpers/spinners.d.mts.map +1 -1
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.mts +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -1
- package/dist/index.mjs.map +1 -1
- package/dist/style-dictionary/border-styles.cjs +0 -1
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +0 -1
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +0 -1
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +0 -1
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +0 -1
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +0 -1
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +0 -1
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/plugin.d.mts +1 -1
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/theme.d.cts.map +1 -1
- package/dist/types/theme.d.mts.map +1 -1
- package/package.json +15 -19
- package/dist/core/dist/api.d.cts +0 -1
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +0 -8
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.d.mts +0 -11
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/ZodError.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.d.mts +0 -10
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/errors.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.d.mts +0 -14
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/external.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/enumUtil.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/enumUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/errorUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.d.mts +0 -10
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/parseUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/partialUtil.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/partialUtil.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/typeAliases.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/helpers/util.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/index.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.d.mts +0 -9
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/locales/en.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/standard-schema.d.mts +0 -8
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/standard-schema.d.mts.map +0 -1
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.d.mts +0 -16
- package/dist/node_modules/.pnpm/zod@4.4.3/node_modules/zod/v3/types.d.mts.map +0 -1
- package/dist/packages/core/dist/api.d.mts +0 -9
- package/dist/packages/core/dist/api.d.mts.map +0 -1
- package/dist/packages/core/dist/index.d.mts.map +0 -1
- package/dist/packages/core/dist/types/command.d.mts +0 -10
- package/dist/packages/core/dist/types/command.d.mts.map +0 -1
- package/dist/packages/core/dist/types/config.d.mts.map +0 -1
- package/dist/packages/core/dist/types/context.d.mts.map +0 -1
- package/dist/packages/core/dist/types/options.d.mts.map +0 -1
|
@@ -1,41 +1,8 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
2
|
|
|
3
3
|
//#region \0rolldown/runtime.js
|
|
4
|
-
var __defProp = Object.defineProperty;
|
|
5
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __esmMin = (fn, res) => () => (fn && (res = fn(fn = 0)), res);
|
|
9
4
|
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
10
|
-
var __exportAll = (all, no_symbols) => {
|
|
11
|
-
let target = {};
|
|
12
|
-
for (var name in all) {
|
|
13
|
-
__defProp(target, name, {
|
|
14
|
-
get: all[name],
|
|
15
|
-
enumerable: true
|
|
16
|
-
});
|
|
17
|
-
}
|
|
18
|
-
if (!no_symbols) {
|
|
19
|
-
__defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
20
|
-
}
|
|
21
|
-
return target;
|
|
22
|
-
};
|
|
23
|
-
var __copyProps = (to, from, except, desc) => {
|
|
24
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
25
|
-
for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
26
|
-
key = keys[i];
|
|
27
|
-
if (!__hasOwnProp.call(to, key) && key !== except) {
|
|
28
|
-
__defProp(to, key, {
|
|
29
|
-
get: ((k) => from[k]).bind(null, key),
|
|
30
|
-
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
31
|
-
});
|
|
32
|
-
}
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
return to;
|
|
36
|
-
};
|
|
37
|
-
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
38
5
|
var __require = /* @__PURE__ */ createRequire(import.meta.url);
|
|
39
6
|
|
|
40
7
|
//#endregion
|
|
41
|
-
export { __commonJSMin,
|
|
8
|
+
export { __commonJSMin, __require };
|
package/dist/contexts/theme.cjs
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
const require_helpers_ansi_utils = require('../helpers/ansi-utils.cjs');
|
|
4
3
|
let _alloy_js_core = require("@alloy-js/core");
|
|
5
4
|
let _powerlines_plugin_alloy_core_contexts_context = require("@powerlines/plugin-alloy/core/contexts/context");
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.cts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":";;;;;;AA8BA;;;iBAAgB,QAAA,
|
|
1
|
+
{"version":3,"file":"theme.d.cts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":";;;;;;AA8BA;;;iBAAgB,QAAA,IAAY,mBAAmB;AAAA;AAY/C;;;;AAZ+C,iBAY/B,SAAA,IAAa,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.d.mts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"theme.d.mts","names":[],"sources":["../../src/contexts/theme.ts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"theme.mjs","names":[],"sources":[
|
|
1
|
+
{"version":3,"file":"theme.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import { Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig } from "./types/config.cjs";
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { __commonJSMin } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
|
+
import { require_config_d as require_config_d$1 } from "./types/config.mjs";
|
|
3
|
+
|
|
4
|
+
//#region ../core/dist/config.d.cts
|
|
5
|
+
|
|
6
|
+
//#endregion
|
|
7
|
+
export default require_config_d();
|
|
8
|
+
export { require_config_d };
|
|
9
|
+
//# sourceMappingURL=config.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":["UserConfig","config","Promise","UserConfigFnObject","UserConfigFnPromise","UserConfigFn","UserConfigExport"],"sources":["../../../../core/dist/config.d.cts"],"mappings":""}
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig,
|
|
1
|
+
import { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig, CommandMetadata, CommandOption, CommandParameterType, CommandTree, NumberCommandParameter, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter } from "./types/command.cjs";
|
|
2
2
|
import { Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig } from "./types/config.cjs";
|
|
3
3
|
import { Context } from "./types/context.cjs";
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { __commonJSMin } from "
|
|
1
|
+
import { __commonJSMin } from "../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { require_command_d } from "./types/command.mjs";
|
|
3
3
|
import { require_config_d } from "./types/config.mjs";
|
|
4
4
|
import { require_context_d } from "./types/context.mjs";
|
|
5
|
-
import { require_api_d } from "./api.mjs";
|
|
6
5
|
import { require_options_d } from "./types/options.mjs";
|
|
6
|
+
import { require_config_d as require_config_d$1 } from "./config.mjs";
|
|
7
7
|
|
|
8
8
|
//#region ../core/dist/index.d.cts
|
|
9
9
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":["Partial","CommandMetadata","metadata","Record","CommandOptionConfig","options","CommandArgumentConfig","args"],"sources":["../../../../core/dist/index.d.cts"],"mappings":""}
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { JsonSchemaStringFormat } from "@powerlines/schema";
|
|
2
|
+
import { RequiredKeys } from "@stryke/types/base";
|
|
3
|
+
import { ResolvedEntryFileReference } from "powerlines";
|
|
4
|
+
|
|
2
5
|
//#region ../core/dist/types/command.d.cts
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
readonly number: "number";
|
|
6
|
-
readonly boolean: "boolean";
|
|
7
|
-
};
|
|
8
|
-
type CommandParameterKind = (typeof CommandParameterKinds)[keyof typeof CommandParameterKinds];
|
|
6
|
+
//#region src/types/command.d.ts
|
|
7
|
+
type CommandParameterType = "string" | "number" | "boolean";
|
|
9
8
|
interface BaseCommandParameter {
|
|
10
9
|
/**
|
|
11
10
|
* The option name.
|
|
@@ -14,7 +13,7 @@ interface BaseCommandParameter {
|
|
|
14
13
|
/**
|
|
15
14
|
* The option kind.
|
|
16
15
|
*/
|
|
17
|
-
|
|
16
|
+
type: CommandParameterType;
|
|
18
17
|
/**
|
|
19
18
|
* The display title.
|
|
20
19
|
*/
|
|
@@ -36,9 +35,9 @@ interface BaseCommandParameter {
|
|
|
36
35
|
*/
|
|
37
36
|
env: string | false;
|
|
38
37
|
/**
|
|
39
|
-
* Whether the option is
|
|
38
|
+
* Whether the option is required.
|
|
40
39
|
*/
|
|
41
|
-
|
|
40
|
+
required: boolean;
|
|
42
41
|
/**
|
|
43
42
|
* Whether the option accepts multiple values.
|
|
44
43
|
*/
|
|
@@ -48,7 +47,7 @@ interface BaseStringCommandParameter extends BaseCommandParameter {
|
|
|
48
47
|
/**
|
|
49
48
|
* The option kind.
|
|
50
49
|
*/
|
|
51
|
-
|
|
50
|
+
type: "string";
|
|
52
51
|
/**
|
|
53
52
|
* The default value.
|
|
54
53
|
*/
|
|
@@ -56,7 +55,7 @@ interface BaseStringCommandParameter extends BaseCommandParameter {
|
|
|
56
55
|
/**
|
|
57
56
|
* A standard string format to validate the option value against.
|
|
58
57
|
*/
|
|
59
|
-
format?:
|
|
58
|
+
format?: JsonSchemaStringFormat | string;
|
|
60
59
|
/**
|
|
61
60
|
* The allowed choices for the option value.
|
|
62
61
|
*/
|
|
@@ -87,7 +86,7 @@ interface BaseNumberCommandParameter extends BaseCommandParameter {
|
|
|
87
86
|
/**
|
|
88
87
|
* The option kind.
|
|
89
88
|
*/
|
|
90
|
-
|
|
89
|
+
type: "number";
|
|
91
90
|
/**
|
|
92
91
|
* The default value.
|
|
93
92
|
*/
|
|
@@ -122,7 +121,7 @@ interface BaseBooleanCommandParameter extends BaseCommandParameter {
|
|
|
122
121
|
/**
|
|
123
122
|
* The option kind.
|
|
124
123
|
*/
|
|
125
|
-
|
|
124
|
+
type: "boolean";
|
|
126
125
|
/**
|
|
127
126
|
* The default value.
|
|
128
127
|
*/
|
|
@@ -161,7 +160,48 @@ interface BooleanCommandOption extends SingleBooleanCommandParameter {
|
|
|
161
160
|
}
|
|
162
161
|
type CommandOption = StringCommandParameter | NumberCommandParameter | BooleanCommandOption | VariadicBooleanCommandParameter;
|
|
163
162
|
type CommandArgument = StringCommandParameter | NumberCommandParameter | BooleanCommandParameter;
|
|
164
|
-
interface
|
|
163
|
+
interface CommandMetadata {
|
|
164
|
+
/**
|
|
165
|
+
* The display name of the command.
|
|
166
|
+
*
|
|
167
|
+
* @remarks
|
|
168
|
+
* This value will be used in various displays of the user interface and documentation. If not provided, a formatted value of the command name will be used.
|
|
169
|
+
*/
|
|
170
|
+
title?: string;
|
|
171
|
+
/**
|
|
172
|
+
* A brief description of what the command does.
|
|
173
|
+
*
|
|
174
|
+
* @remarks
|
|
175
|
+
* This value will be used in various displays of the user interface and documentation. If not provided, a default message may be shown.
|
|
176
|
+
*/
|
|
177
|
+
description?: string;
|
|
178
|
+
/**
|
|
179
|
+
* One or more alternative names for the command.
|
|
180
|
+
*/
|
|
181
|
+
alias?: string | string[];
|
|
182
|
+
/**
|
|
183
|
+
* Optional tags for the command.
|
|
184
|
+
*
|
|
185
|
+
* @remarks
|
|
186
|
+
* Tags can be used to categorize and organize commands, and can also be utilized by plugins to provide additional functionality or filtering based on tags.
|
|
187
|
+
*/
|
|
188
|
+
tags?: string[];
|
|
189
|
+
/**
|
|
190
|
+
* An optional icon to visually represent the command in user interfaces.
|
|
191
|
+
*
|
|
192
|
+
* @remarks
|
|
193
|
+
* This can be a string containing an emoji, a Unicode character, or any other symbol that helps to visually identify the command. If not provided, no icon will be displayed.
|
|
194
|
+
*/
|
|
195
|
+
icon?: string;
|
|
196
|
+
/**
|
|
197
|
+
* A URL to the command documentation or reference.
|
|
198
|
+
*
|
|
199
|
+
* @remarks
|
|
200
|
+
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the command. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
201
|
+
*/
|
|
202
|
+
docs?: string;
|
|
203
|
+
}
|
|
204
|
+
interface CommandBase extends CommandMetadata {
|
|
165
205
|
/**
|
|
166
206
|
* The command id.
|
|
167
207
|
*/
|
|
@@ -178,33 +218,17 @@ interface CommandBase {
|
|
|
178
218
|
* The path segments.
|
|
179
219
|
*/
|
|
180
220
|
segments: string[];
|
|
181
|
-
/**
|
|
182
|
-
* The display title.
|
|
183
|
-
*/
|
|
184
|
-
title?: string;
|
|
185
|
-
/**
|
|
186
|
-
* The command description.
|
|
187
|
-
*/
|
|
188
|
-
description?: string;
|
|
189
221
|
/**
|
|
190
222
|
* Alternative command names.
|
|
191
223
|
*/
|
|
192
224
|
alias?: string[];
|
|
193
|
-
/**
|
|
194
|
-
* The command icon.
|
|
195
|
-
*/
|
|
196
|
-
icon?: string;
|
|
197
|
-
/**
|
|
198
|
-
* A URL to the command documentation or reference.
|
|
199
|
-
*/
|
|
200
|
-
reference?: string;
|
|
201
225
|
/**
|
|
202
226
|
* Whether the command is virtual.
|
|
203
227
|
*
|
|
204
228
|
* @remarks
|
|
205
229
|
* Virtual commands are considered forks in the command tree and are not directly executable. They are used to group related subcommands together without having an actual command handler or entry point.
|
|
206
230
|
*/
|
|
207
|
-
|
|
231
|
+
virtual: boolean;
|
|
208
232
|
}
|
|
209
233
|
interface CommandConfig extends CommandBase {
|
|
210
234
|
/**
|
|
@@ -214,43 +238,10 @@ interface CommandConfig extends CommandBase {
|
|
|
214
238
|
/**
|
|
215
239
|
* The resolved entry definition.
|
|
216
240
|
*/
|
|
217
|
-
entry:
|
|
218
|
-
|
|
219
|
-
* Optional tags for the command.
|
|
220
|
-
*
|
|
221
|
-
* @remarks
|
|
222
|
-
* Tags can be used to categorize and organize commands, and can also be utilized by plugins to provide additional functionality or filtering based on tags.
|
|
223
|
-
*/
|
|
224
|
-
tags?: string[];
|
|
225
|
-
/**
|
|
226
|
-
* 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.
|
|
227
|
-
*/
|
|
228
|
-
source?: "file" | string;
|
|
241
|
+
entry: ResolvedEntryFileReference;
|
|
242
|
+
tags?: CommandMetadata["tags"];
|
|
229
243
|
}
|
|
230
|
-
type CommandTree = CommandConfig & {
|
|
231
|
-
/**
|
|
232
|
-
* The display title.
|
|
233
|
-
*/
|
|
234
|
-
title: string;
|
|
235
|
-
/**
|
|
236
|
-
* The command description.
|
|
237
|
-
*/
|
|
238
|
-
description: string;
|
|
239
|
-
/**
|
|
240
|
-
* Alternative command names.
|
|
241
|
-
*/
|
|
242
|
-
alias: string[];
|
|
243
|
-
/**
|
|
244
|
-
* A set of tags for the command.
|
|
245
|
-
*
|
|
246
|
-
* @remarks
|
|
247
|
-
* Tags can be used to categorize and organize commands, and can also be utilized by plugins to provide additional functionality or filtering based on tags.
|
|
248
|
-
*/
|
|
249
|
-
tags: string[];
|
|
250
|
-
/**
|
|
251
|
-
* 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.
|
|
252
|
-
*/
|
|
253
|
-
source: "file" | string;
|
|
244
|
+
type CommandTree = RequiredKeys<CommandConfig, "title" | "description" | "alias" | "tags"> & {
|
|
254
245
|
/**
|
|
255
246
|
* The command options.
|
|
256
247
|
*/
|
|
@@ -269,5 +260,5 @@ type CommandTree = CommandConfig & {
|
|
|
269
260
|
children: Record<string, CommandTree>;
|
|
270
261
|
};
|
|
271
262
|
//#endregion
|
|
272
|
-
export { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig,
|
|
263
|
+
export { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig, CommandMetadata, CommandOption, CommandParameterType, CommandTree, NumberCommandParameter, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter };
|
|
273
264
|
//# sourceMappingURL=command.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.cts","names":["
|
|
1
|
+
{"version":3,"file":"command.d.cts","names":["name","type","CommandParameterType","title","description","alias","default","env","required","variadic","BaseCommandParameter","format","JsonSchemaStringFormat","choices","BaseStringCommandParameter","SingleStringCommandParameter","VariadicStringCommandParameter","BaseNumberCommandParameter","SingleNumberCommandParameter","VariadicNumberCommandParameter","BaseBooleanCommandParameter","SingleBooleanCommandParameter","VariadicBooleanCommandParameter","StringCommandParameter","NumberCommandParameter","BooleanCommandParameter","T","Pick","Partial","Omit","AsCommandParameterConfig","StringCommandParameterConfig","NumberCommandParameterConfig","BooleanCommandParameterConfig","isNegativeOf","skipAddingNegative","BooleanCommandOption","CommandOption","CommandArgument","tags","icon","docs","CommandMetadata","id","path","segments","virtual","CommandBase","entry","ResolvedEntryFileReference","RequiredKeys","CommandConfig","options","Record","args","parent","CommandTree","children","SerializedCommandTree","metadata","CommandOptionConfig","SchemaInput","CommandArgumentConfig","AnyFunction"],"sources":["../../../../../core/dist/types/command.d.cts"],"mappings":";;;;;;KAKK,oBAAA;AAAA,UACK,oBAAA;;;AADe;EAKvBA,IAAAA;EAJ4B;;;EAQ5BC,IAAAA,EAAM,oBAAoB;EAA1BA;;;EAIAE,KAAAA;EAQAE;;;EAJAD,WAAAA;EAoBAK;;AAAQ;EAhBRJ,KAAAA;EAsCkC;;;EAlClCC,OAAAA;EAsCAL;;;EAlCAM,GAAAA;EA8CAM;;AAAO;EA1CPL,QAAAA;EA4CoC;;;EAxCpCC,QAAAA;AAAAA;AAAAA,UAsBQ,0BAAA,SAAmC,oBAAoB;EAuCpBC;;;EAnC3CT,IAAAA;EA+CO;AAAA;AAAA;EA3CPK,OAAAA;;;;EAIAK,MAAAA,GAAS,sBAAA;EAiDTF;;AAAQ;EA7CRI,OAAAA;AAAAA;AAAAA,UAEQ,4BAAA,SAAqC,0BAA0B;EA6CE;;;EAzCzEP,OAAAA;EAiDQ;AAAA;AAAA;EA7CRG,QAAAA;AAAAA;AAAAA,UAEQ,8BAAA,SAAuC,0BAA0B;EA6CgB;AAAA;;EAzCzFH,OAAAA;EA0CgE;;;EAtChEG,QAAAA;AAAAA;AAAAA,KAEG,sBAAA,GAAyB,4BAAA,GAA+B,8BAA8B;AAAA,UACjF,0BAAA,SAAmC,oBAAoB;EA6C1B;;;EAzCrCR,IAAAA;EA6CAK;;;EAzCAA,OAAAA;EA6CQ;;;EAzCRO,OAAAA;AAAAA;AAAAA,UAEQ,4BAAA,SAAqC,0BAA0B;EAiDvEJ;;AAAQ;EA7CRH,OAAAA;EA+C0B;;;EA3C1BG,QAAAA;AAAAA;AAAAA,UAEQ,8BAAA,SAAuC,0BAA0B;;;;EAIzEH,OAAAA;EAsDA6B;;AAAkB;EAlDlB1B,QAAAA;AAAAA;AAAAA,KAEG,sBAAA,GAAyB,4BAAA,GAA+B,8BAA8B;AAAA,UACjF,2BAAA,SAAoC,oBAAoB;EAiDpB;;;EA7C5CR,IAAAA;EA6C2H;;;EAzC3HK,OAAAA;AAAAA;AAAAA,UAEQ,6BAAA,SAAsC,2BAA2B;EAuCkD;AAC5D;;EApC/DA,OAAAA;EAqCqB;;;EAjCrBG,QAAAA;AAAAA;AAAAA,UAEQ,+BAAA,SAAwC,2BAA2B;EA+B7Be;;;EA3B9ClB,OAAAA;EA4BmE;;;EAxBnEG,QAAAA;AAAAA;AAAAA,KAEG,uBAAA,GAA0B,6BAAA,GAAgC,+BAA+B;AAAA,UASpF,oBAAA,SAA6B,6BAA6B;EAuDvB;;;EAnD3CyB,YAAAA;EA+DAU;;;EA3DAT,kBAAAA;AAAAA;AAAAA,KAEG,aAAA,GAAgB,sBAAA,GAAyB,sBAAA,GAAyB,oBAAA,GAAuB,+BAAA;AAAA,KAEzF,eAAA,GAAkB,sBAAA,GAAyB,sBAAA,GAAyB,uBAAA;AAAA,UAE/D,eAAA;EA+ED;;;;;;EAxEPhC,KAAAA;EAuEO8C;;;;AACe;AAAA;EAjEtB7C,WAAAA;;;;EAIAC,KAAAA;EAmES;;;;;;EA5DTkC,IAAAA;EAwDiBW;;;;;;EAjDjBV,IAAAA;EA6DAe;;;;;;EAtDAd,IAAAA;AAAAA;AAAAA,UAEQ,WAAA,SAAoB,eAAe;;;;EAI3CE,EAAAA;;;;EAIA3C,IAAAA;;;;EAIA4C,IAAAA;;;;EAIAC,QAAAA;;;;EAIAxC,KAAAA;;;;;;;EAOAyC,OAAAA;AAAAA;AAAAA,UAEQ,aAAA,SAAsB,WAAA;;;;EAI9BH,EAAAA;;;;EAIAK,KAAAA,EAAO,0BAAA;EACPT,IAAAA,GAAO,eAAA;AAAA;AAAA,KAEJ,WAAA,GAAc,YAAA,CAAa,aAAA;;;;EAI9Ba,OAAAA,EAAS,MAAA,SAAe,aAAA;;;;EAIxBE,IAAAA,EAAM,eAAA;;;;EAINC,MAAAA,SAAe,WAAA;;;;EAIfE,QAAAA,EAAU,MAAA,SAAe,WAAA;AAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"command.d.mts","names":["name","type","CommandParameterType","title","description","alias","default","env","required","variadic","BaseCommandParameter","format","JsonSchemaStringFormat","choices","BaseStringCommandParameter","SingleStringCommandParameter","VariadicStringCommandParameter","BaseNumberCommandParameter","SingleNumberCommandParameter","VariadicNumberCommandParameter","BaseBooleanCommandParameter","SingleBooleanCommandParameter","VariadicBooleanCommandParameter","StringCommandParameter","NumberCommandParameter","BooleanCommandParameter","T","Pick","Partial","Omit","AsCommandParameterConfig","StringCommandParameterConfig","NumberCommandParameterConfig","BooleanCommandParameterConfig","isNegativeOf","skipAddingNegative","BooleanCommandOption","CommandOption","CommandArgument","tags","icon","docs","CommandMetadata","id","path","segments","virtual","CommandBase","entry","ResolvedEntryFileReference","RequiredKeys","CommandConfig","options","Record","args","parent","CommandTree","children","SerializedCommandTree","metadata","CommandOptionConfig","SchemaInput","CommandArgumentConfig","AnyFunction"],"sources":["../../../../../core/dist/types/command.d.cts"],"mappings":""}
|
|
@@ -1,15 +1,14 @@
|
|
|
1
1
|
import { CommandBase, CommandOption } from "./command.cjs";
|
|
2
2
|
import { Context } from "./context.cjs";
|
|
3
|
-
import { OutputConfig, UserConfig } from "powerlines";
|
|
4
3
|
import { RequiredKeys } from "@stryke/types/base";
|
|
4
|
+
import { OutputConfig, UserConfig } from "powerlines";
|
|
5
5
|
import { AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types/plugin";
|
|
6
6
|
import { AutoMDPluginResolvedConfig } from "@powerlines/plugin-automd";
|
|
7
7
|
import { NodeJsPluginOptions, NodeJsPluginResolvedConfig } from "@powerlines/plugin-nodejs/types/plugin";
|
|
8
8
|
import { TsdownPluginResolvedConfig } from "@powerlines/plugin-tsdown/types/plugin";
|
|
9
|
-
|
|
10
9
|
//#region ../core/dist/types/config.d.cts
|
|
11
10
|
//#region src/types/config.d.ts
|
|
12
|
-
type BuildOptions = Pick<UserConfig, "
|
|
11
|
+
type BuildOptions = Pick<UserConfig, "name" | "title" | "description" | "input" | "output" | "logLevel" | "mode" | "define" | "inject" | "resolve" | "organization" | "skipCache" | "autoInstall" | "plugins" | "tsconfig" | "tsconfigRaw">;
|
|
13
12
|
interface ReferenceOptions {
|
|
14
13
|
/**
|
|
15
14
|
* A URL to the application documentation or reference.
|
|
@@ -19,7 +18,7 @@ interface ReferenceOptions {
|
|
|
19
18
|
* A URL to the application command specific documentation or reference.
|
|
20
19
|
*
|
|
21
20
|
* @remarks
|
|
22
|
-
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
21
|
+
* This URL is expected to contain the token `{command}`, which will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
23
22
|
*/
|
|
24
23
|
commands?: string;
|
|
25
24
|
}
|
|
@@ -30,7 +29,7 @@ interface BaseOptions {
|
|
|
30
29
|
* @remarks
|
|
31
30
|
* Each command will inherit these global options. To disable the addition of these global options, set this property to `false`, or provide a custom set of options/a function that returns them. A `GlobalOptions` interface will be created by the `shell-shock types` command and added to the generated `shell-shock.d.ts` file.
|
|
32
31
|
*/
|
|
33
|
-
globalOptions?: CommandOption[] | ((context: Context
|
|
32
|
+
globalOptions?: CommandOption[] | ((context: Context<any>, input: CommandBase) => CommandOption[]) | false;
|
|
34
33
|
/**
|
|
35
34
|
* Determines whether commands and option names are treated as case-sensitive.
|
|
36
35
|
*
|
|
@@ -62,9 +61,9 @@ interface BaseOptions {
|
|
|
62
61
|
* A URL to the application documentation or reference.
|
|
63
62
|
*
|
|
64
63
|
* @remarks
|
|
65
|
-
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{
|
|
64
|
+
* This URL can be used in various displays of the user interface and documentation to provide users with a reference for the application. It can also be used by plugins to link to the documentation in relevant contexts. If the token `{command}` is included in the URL, it will be replaced with the full command path to provide links to command specific documentation. For example, `myapp command subcommand` will be translated to `{docs}/command/subcommand`.
|
|
66
65
|
*/
|
|
67
|
-
|
|
66
|
+
docs?: ReferenceOptions | string;
|
|
68
67
|
}
|
|
69
68
|
/**
|
|
70
69
|
* The plugin options for Shell Shock.
|
|
@@ -82,7 +81,7 @@ type OutputConfig$1 = Pick<OutputConfig, "path" | "copy" | "storage" | "sourceMa
|
|
|
82
81
|
/**
|
|
83
82
|
* The user configuration options for Shell Shock.
|
|
84
83
|
*/
|
|
85
|
-
type UserConfig$1 = BaseOptions & RequiredKeys<BuildOptions, "
|
|
84
|
+
type UserConfig$1 = BaseOptions & RequiredKeys<BuildOptions, "name"> & {
|
|
86
85
|
/**
|
|
87
86
|
* Configuration for the output of the build process
|
|
88
87
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.cts","names":["
|
|
1
|
+
{"version":3,"file":"config.d.cts","names":["Pick","UserConfig$1","app","commands","globalOptions","CommandOption","Context","context","CommandBase","input","isCaseSensitive","bin","autoAssignEnv","docs","ReferenceOptions","BaseOptions","Partial","NodeJsPluginOptions","OutputConfig$1","dts","RequiredKeys","BuildOptions","output","OutputConfig","ConfigParams","env","UserConfig","Promise","UserConfigFnObject","UserConfigFnPromise","UserConfigFn","Omit","EngineOptions$1","TsdownPluginResolvedConfig","AlloyPluginResolvedConfig","AutoMDPluginResolvedConfig","NodeJsPluginResolvedConfig","Required","Options","Record","reference","appSpecificEnvPrefix","userConfig"],"sources":["../../../../../core/dist/types/config.d.cts"],"mappings":";;;;;;;;;;KAWK,YAAA,GAAe,IAAI,CAAC,UAAA;AAAA,UACf,gBAAA;;;AAD2B;EAKnCE,GAAAA;EAJwB;;;AAWhB;AAAA;;EAARC,QAAQ;AAAA;AAAA,UAEA,WAAA;EAO0D;;;;;;EAAlEC,aAAAA,GAAgB,aAAA,OAAoBG,OAAAA,EAAS,OAAA,OAAcE,KAAAA,EAAO,WAAA,KAAgB,aAAA;EAArCH;;;;;EAM7CI,eAAAA;EAWAC;;;;;AAiBuB;AAAA;;;;EAjBvBA,GAAAA;EAsB2B;;;;;;;AAA2B;AAAA;EAZtDC,aAAAA;;;;;;;EAOAC,IAAAA,GAAO,gBAAA;AAAA;;;;KAKJ,OAAA,GAAU,WAAA,GAAc,OAAA,CAAQ,mBAAA;;;;KAIhC,cAAA,GAAe,IAAI,CAAC,YAAA;EASPE;;;EALhBI,GAAAA;AAAAA;;AASqB;AAMkB;KAVpC,YAAA,GAAa,WAAA,GAAc,YAAA,CAAa,YAAA;;;;EAI3CG,MAAAA,GAAS,cAAA;AAAA;;;;KAUN,cAAA,GAAiB,0BAAA,GAA6B,yBAAA,GAA4B,0BAAA,GAA6B,0BAAA,GAA6B,QAAA,CAAS,IAAA,CAAK,OAAA;EAApGY;;;;;;;;;;EAWjDvB,GAAAA,EAAK,MAAA;EAYL+B;;;EARAF,SAAAA,EAAW,gBAAA;;;;EAIXC,oBAAAA;;;;EAIAC,UAAAA,EAAY,YAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "
|
|
1
|
+
import { __commonJSMin, __require } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { require_command_d } from "./command.mjs";
|
|
3
3
|
import { require_context_d } from "./context.mjs";
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.mts","names":["Pick","UserConfig$1","app","commands","globalOptions","CommandOption","Context","context","CommandBase","input","isCaseSensitive","bin","autoAssignEnv","docs","ReferenceOptions","BaseOptions","Partial","NodeJsPluginOptions","OutputConfig$1","dts","RequiredKeys","BuildOptions","output","OutputConfig","ConfigParams","env","UserConfig","Promise","UserConfigFnObject","UserConfigFnPromise","UserConfigFn","Omit","EngineOptions$1","TsdownPluginResolvedConfig","AlloyPluginResolvedConfig","AutoMDPluginResolvedConfig","NodeJsPluginResolvedConfig","Required","Options","Record","reference","appSpecificEnvPrefix","userConfig"],"sources":["../../../../../core/dist/types/config.d.cts"],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.cts","names":["
|
|
1
|
+
{"version":3,"file":"context.d.cts","names":["TResolvedConfig","ResolvedConfig","TsdownPluginContext","AlloyPluginContext","NodeJsPluginContext","commandsPath","globalOptions","CommandOption","inputs","CommandConfig","commands","Record","CommandTree","ExecutionContext$1","UnresolvedContext$1"],"sources":["../../../../../core/dist/types/context.d.cts"],"mappings":";;;;;;;;KAQK,OAAA,yBAAgC,cAAA,GAAiB,cAAA,IAAkB,mBAAA,CAAoB,eAAA,IAAmB,kBAAA,CAAmB,eAAA,IAAmB,mBAAA,CAAoB,eAAA;EAA7J;;;EAIVK,YAAAA;EAJ0F;;;EAQ1FC,aAAAA,EAAe,aAAA;EARwJ;;;EAYvKE,MAAAA,EAAQ,aAAA;EAIiB;;;EAAzBE,QAAAA,EAAU,MAAA,SAAe,WAAA;AAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { __commonJSMin, __require } from "
|
|
1
|
+
import { __commonJSMin, __require } from "../../../_virtual/_rolldown/runtime.mjs";
|
|
2
2
|
import { require_command_d } from "./command.mjs";
|
|
3
3
|
import { require_config_d } from "./config.mjs";
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.d.mts","names":["TResolvedConfig","ResolvedConfig","TsdownPluginContext","AlloyPluginContext","NodeJsPluginContext","commandsPath","globalOptions","CommandOption","inputs","CommandConfig","commands","Record","CommandTree","ExecutionContext$1","UnresolvedContext$1"],"sources":["../../../../../core/dist/types/context.d.cts"],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"options.d.mts","names":["help","version"],"sources":["../../../../../core/dist/types/options.d.cts"],"mappings":""}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
|
|
2
|
-
const require_runtime = require('../_virtual/_rolldown/runtime.cjs');
|
|
3
2
|
let _stryke_string_format_camel_case = require("@stryke/string-format/camel-case");
|
|
4
3
|
let _stryke_string_format_upper_case_first = require("@stryke/string-format/upper-case-first");
|
|
5
4
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-utils.d.cts","names":[],"sources":["../../src/helpers/ansi-utils.ts"],"mappings":";;;cAwBa,SAAA;;;;;;;;;;;cAYA,YAAA;AAAA,cAEA,MAAA;;;;;;;;;;;;;;;;;;;;cAuBA,SAAA;AAAA,cAEA,QAAA;;;;;;;;;;;;;;;;;;;;cAuBA,WAAA;AAAA,UAEI,gBAAA;EACf,IAAA;EACA,
|
|
1
|
+
{"version":3,"file":"ansi-utils.d.cts","names":[],"sources":["../../src/helpers/ansi-utils.ts"],"mappings":";;;cAwBa,SAAA;;;;;;;;;;;cAYA,YAAA;AAAA,cAEA,MAAA;;;;;;;;;;;;;;;;;;;;cAuBA,SAAA;AAAA,cAEA,QAAA;;;;;;;;;;;;;;;;;;;;cAuBA,WAAA;AAAA,UAEI,gBAAA;EACf,IAAA;EACA,KAAK;AAAA;AAAA,UAGU,iBAAA,SAA0B,gBAAgB;EACzD,UAAA,EAAY,gBAAA;AAAA;AAAA,KAwBF,UAAA,GAAa,MAAA,+DAGK,SAAA,GAAY,gBAAA;AAAA,KAI9B,UAAA,GAAa,MAAA,4DAGE,MAAA,GAAS,iBAAA;AAAA,KAI/B,qBAAA,MAA2B,CAAA,gCAEd,CAAA,GAAI,qBAAA,CAAsB,CAAA,CAAE,CAAA,OAE1C,iBAAA;AAAA,KAEQ,eAAA,GAAkB,MAAA;EAE1B,KAAA,EAAO,qBAAA,CAAsB,yBAAA;AAAA;AAAA,KAGrB,UAAA,GAAa,UAAA,GAAa,UAAA,GAAa,eAAA;;AAzDnD;;;;AAAgD;iBAggDhC,aAAA,CAAc,KAAA,EAAO,yBAAA,GAA4B,UAAU"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ansi-utils.d.mts","names":[],"sources":["../../src/helpers/ansi-utils.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"ansi-utils.d.mts","names":[],"sources":["../../src/helpers/ansi-utils.ts"],"mappings":""}
|