@shell-shock/plugin-theme 0.4.20 → 0.4.21
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 +1 -29
- package/dist/_virtual/_rolldown/runtime.mjs +1 -0
- package/dist/contexts/index.cjs +1 -5
- package/dist/contexts/index.mjs +1 -3
- package/dist/contexts/theme.cjs +1 -29
- package/dist/contexts/theme.mjs +1 -26
- package/dist/contexts/theme.mjs.map +1 -1
- package/dist/core/dist/types/command.d.cts +0 -1
- package/dist/core/dist/types/command.d.cts.map +1 -1
- package/dist/core/dist/types/config.d.cts +3 -2
- package/dist/core/dist/types/config.d.cts.map +1 -1
- package/dist/core/dist/types/context.d.cts +3 -2
- package/dist/core/dist/types/context.d.cts.map +1 -1
- package/dist/helpers/ansi-utils.cjs +1 -1295
- package/dist/helpers/ansi-utils.mjs +1 -1287
- package/dist/helpers/ansi-utils.mjs.map +1 -1
- package/dist/helpers/border-styles.cjs +1 -201
- package/dist/helpers/border-styles.mjs +1 -199
- package/dist/helpers/border-styles.mjs.map +1 -1
- package/dist/helpers/constants.cjs +1 -39
- package/dist/helpers/constants.d.cts +2 -2
- package/dist/helpers/constants.d.cts.map +1 -1
- package/dist/helpers/constants.d.mts +2 -2
- package/dist/helpers/constants.d.mts.map +1 -1
- package/dist/helpers/constants.mjs +1 -33
- package/dist/helpers/constants.mjs.map +1 -1
- package/dist/helpers/index.cjs +1 -107
- package/dist/helpers/index.mjs +1 -6
- package/dist/helpers/merge.cjs +1 -19
- package/dist/helpers/merge.mjs +1 -17
- package/dist/helpers/merge.mjs.map +1 -1
- package/dist/helpers/spinners.cjs +1 -1852
- package/dist/helpers/spinners.mjs +1 -1758
- package/dist/helpers/spinners.mjs.map +1 -1
- package/dist/index.cjs +1 -76
- package/dist/index.d.cts.map +1 -1
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +1 -70
- package/dist/index.mjs.map +1 -1
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts +8 -0
- package/dist/node_modules/.pnpm/@standard-schema_spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.mts +11 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/ZodError.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.d.mts +10 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/errors.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.d.mts +14 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/external.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/enumUtil.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/enumUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/errorUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.mts +10 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/parseUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/partialUtil.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/partialUtil.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/typeAliases.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/helpers/util.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/index.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.d.mts +9 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/locales/en.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.mts +8 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/standard-schema.d.mts.map +1 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.mts +16 -0
- package/dist/node_modules/.pnpm/zod@4.3.6/node_modules/zod/v3/types.d.mts.map +1 -0
- package/dist/packages/core/dist/api.d.mts +8 -0
- package/dist/packages/core/dist/api.d.mts.map +1 -0
- package/dist/packages/core/dist/index.d.mts +13 -0
- package/dist/packages/core/dist/index.d.mts.map +1 -0
- package/dist/packages/core/dist/types/command.d.mts +10 -0
- package/dist/packages/core/dist/types/command.d.mts.map +1 -0
- package/dist/packages/core/dist/types/config.d.mts +10 -0
- package/dist/packages/core/dist/types/config.d.mts.map +1 -0
- package/dist/packages/core/dist/types/context.d.mts +10 -0
- package/dist/packages/core/dist/types/context.d.mts.map +1 -0
- package/dist/packages/core/dist/types/options.d.mts +8 -0
- package/dist/packages/core/dist/types/options.d.mts.map +1 -0
- package/dist/style-dictionary/border-styles.cjs +1 -285
- package/dist/style-dictionary/border-styles.mjs +1 -284
- package/dist/style-dictionary/border-styles.mjs.map +1 -1
- package/dist/style-dictionary/colors.cjs +1 -1391
- package/dist/style-dictionary/colors.mjs +1 -1390
- package/dist/style-dictionary/colors.mjs.map +1 -1
- package/dist/style-dictionary/icons.cjs +1 -169
- package/dist/style-dictionary/icons.mjs +1 -168
- package/dist/style-dictionary/icons.mjs.map +1 -1
- package/dist/style-dictionary/labels.cjs +1 -151
- package/dist/style-dictionary/labels.mjs +1 -150
- package/dist/style-dictionary/labels.mjs.map +1 -1
- package/dist/style-dictionary/padding.cjs +1 -38
- package/dist/style-dictionary/padding.mjs +1 -37
- package/dist/style-dictionary/padding.mjs.map +1 -1
- package/dist/style-dictionary/settings.cjs +1 -26
- package/dist/style-dictionary/settings.mjs +1 -25
- package/dist/style-dictionary/settings.mjs.map +1 -1
- package/dist/style-dictionary/spinners.cjs +1 -31
- package/dist/style-dictionary/spinners.mjs +1 -30
- package/dist/style-dictionary/spinners.mjs.map +1 -1
- package/dist/themes/default.cjs +1 -156
- package/dist/themes/default.mjs +1 -155
- package/dist/themes/default.mjs.map +1 -1
- package/dist/types/index.mjs +1 -1
- package/dist/types/plugin.d.mts +4 -5
- package/dist/types/plugin.d.mts.map +1 -1
- package/dist/types/plugin.mjs +1 -1
- package/dist/types/theme.mjs +1 -1
- package/package.json +13 -10
- package/dist/core/dist/api.d.mts +0 -1
- package/dist/core/dist/index.d.mts +0 -3
- package/dist/core/dist/types/command.d.mts +0 -274
- package/dist/core/dist/types/command.d.mts.map +0 -1
- package/dist/core/dist/types/config.d.mts +0 -119
- package/dist/core/dist/types/config.d.mts.map +0 -1
- package/dist/core/dist/types/context.d.mts +0 -28
- package/dist/core/dist/types/context.d.mts.map +0 -1
package/dist/themes/default.mjs
CHANGED
|
@@ -1,156 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
const theme = {
|
|
3
|
-
$theme: "default",
|
|
4
|
-
colors: {
|
|
5
|
-
text: {
|
|
6
|
-
banner: {
|
|
7
|
-
title: "#ffffff",
|
|
8
|
-
command: "#e3e7e8",
|
|
9
|
-
description: "#9ca8ab"
|
|
10
|
-
},
|
|
11
|
-
heading: {
|
|
12
|
-
primary: "#ffffff",
|
|
13
|
-
secondary: "#e3e7e8",
|
|
14
|
-
tertiary: "#9ca8ab"
|
|
15
|
-
},
|
|
16
|
-
body: {
|
|
17
|
-
primary: "#9ca8ab",
|
|
18
|
-
secondary: "#9ca8ab",
|
|
19
|
-
tertiary: "#67787c",
|
|
20
|
-
link: "#3fa6ff"
|
|
21
|
-
},
|
|
22
|
-
message: { description: "#e3e7e8" },
|
|
23
|
-
usage: {
|
|
24
|
-
bin: "#67787c",
|
|
25
|
-
command: "#e3e7e8",
|
|
26
|
-
dynamic: "#e3e7e8",
|
|
27
|
-
options: "#67787c",
|
|
28
|
-
args: "#67787c",
|
|
29
|
-
description: "#67787c"
|
|
30
|
-
},
|
|
31
|
-
prompt: {
|
|
32
|
-
icon: {
|
|
33
|
-
active: "#3b82f6",
|
|
34
|
-
warning: "#f3d371",
|
|
35
|
-
error: "#d8314a",
|
|
36
|
-
submitted: "#45b27e",
|
|
37
|
-
cancelled: "#d8314a",
|
|
38
|
-
disabled: "#4b585b"
|
|
39
|
-
},
|
|
40
|
-
message: {
|
|
41
|
-
active: "#e3e7e8",
|
|
42
|
-
warning: "#e3e7e8",
|
|
43
|
-
error: "#e3e7e8",
|
|
44
|
-
submitted: "#67787c",
|
|
45
|
-
cancelled: "#67787c",
|
|
46
|
-
disabled: "#4b585b"
|
|
47
|
-
},
|
|
48
|
-
input: {
|
|
49
|
-
active: "#3b82f6",
|
|
50
|
-
inactive: "#9ca8ab",
|
|
51
|
-
warning: "#f3d371",
|
|
52
|
-
error: "#d8314a",
|
|
53
|
-
submitted: "#e3e7e8",
|
|
54
|
-
cancelled: "#d8314a",
|
|
55
|
-
placeholder: "#4b585b",
|
|
56
|
-
disabled: "#4b585b"
|
|
57
|
-
},
|
|
58
|
-
description: {
|
|
59
|
-
active: "#67787c",
|
|
60
|
-
inactive: "#4b585b",
|
|
61
|
-
warning: "#f3d371",
|
|
62
|
-
error: "#d8314a",
|
|
63
|
-
submitted: "#67787c",
|
|
64
|
-
cancelled: "#d8314a",
|
|
65
|
-
disabled: "#4b585b"
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
spinner: {
|
|
69
|
-
icon: {
|
|
70
|
-
active: "#3b82f6",
|
|
71
|
-
error: "#d8314a",
|
|
72
|
-
success: "#45b27e",
|
|
73
|
-
help: "#818cf8",
|
|
74
|
-
info: "#38bdf8",
|
|
75
|
-
warning: "#f3d371"
|
|
76
|
-
},
|
|
77
|
-
message: {
|
|
78
|
-
active: "#e3e7e8",
|
|
79
|
-
error: "#d8314a",
|
|
80
|
-
success: "#67787c",
|
|
81
|
-
help: "#67787c",
|
|
82
|
-
info: "#67787c",
|
|
83
|
-
warning: "#67787c"
|
|
84
|
-
}
|
|
85
|
-
},
|
|
86
|
-
tags: {
|
|
87
|
-
utility: "#94a3b8",
|
|
88
|
-
deprecated: "#f87171",
|
|
89
|
-
experimental: "#818cf8",
|
|
90
|
-
$default: "#e3e7e8"
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
border: {
|
|
94
|
-
app: {
|
|
95
|
-
primary: "#e3e7e8",
|
|
96
|
-
secondary: "#67787c",
|
|
97
|
-
tertiary: "#4b585b"
|
|
98
|
-
},
|
|
99
|
-
banner: "#ffffff",
|
|
100
|
-
message: {
|
|
101
|
-
help: "#818cf8",
|
|
102
|
-
success: "#45b27e",
|
|
103
|
-
info: "#38bdf8",
|
|
104
|
-
debug: "#8afafc",
|
|
105
|
-
warning: "#f3d371",
|
|
106
|
-
danger: "#d8314a"
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
borderStyles: {
|
|
111
|
-
app: "single",
|
|
112
|
-
banner: "bold",
|
|
113
|
-
message: "round"
|
|
114
|
-
},
|
|
115
|
-
padding: {
|
|
116
|
-
app: 0,
|
|
117
|
-
banner: 14,
|
|
118
|
-
message: 8,
|
|
119
|
-
table: 1
|
|
120
|
-
},
|
|
121
|
-
icons: {
|
|
122
|
-
link: { external: "↗" },
|
|
123
|
-
message: { header: {
|
|
124
|
-
help: "✱",
|
|
125
|
-
success: "✔",
|
|
126
|
-
info: "🛈",
|
|
127
|
-
debug: "🛠",
|
|
128
|
-
warning: "🛆",
|
|
129
|
-
danger: "🛇",
|
|
130
|
-
error: "✘"
|
|
131
|
-
} },
|
|
132
|
-
banner: { header: "⏺" },
|
|
133
|
-
prompt: {
|
|
134
|
-
active: "✱",
|
|
135
|
-
error: "✘",
|
|
136
|
-
warning: "🛆",
|
|
137
|
-
submitted: "✔",
|
|
138
|
-
cancelled: "🛇",
|
|
139
|
-
disabled: "🛇"
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
labels: { message: { header: {
|
|
143
|
-
help: "Useful Tip",
|
|
144
|
-
success: "Success",
|
|
145
|
-
info: "Info",
|
|
146
|
-
debug: "Debug",
|
|
147
|
-
warning: "Warning",
|
|
148
|
-
danger: "Danger",
|
|
149
|
-
error: "Error"
|
|
150
|
-
} } },
|
|
151
|
-
spinner: "dots"
|
|
152
|
-
};
|
|
153
|
-
|
|
154
|
-
//#endregion
|
|
155
|
-
export { theme };
|
|
1
|
+
const e={$theme:`default`,colors:{text:{banner:{title:`#ffffff`,command:`#e3e7e8`,description:`#9ca8ab`},heading:{primary:`#ffffff`,secondary:`#e3e7e8`,tertiary:`#9ca8ab`},body:{primary:`#9ca8ab`,secondary:`#9ca8ab`,tertiary:`#67787c`,link:`#3fa6ff`},message:{description:`#e3e7e8`},usage:{bin:`#67787c`,command:`#e3e7e8`,dynamic:`#e3e7e8`,options:`#67787c`,args:`#67787c`,description:`#67787c`},prompt:{icon:{active:`#3b82f6`,warning:`#f3d371`,error:`#d8314a`,submitted:`#45b27e`,cancelled:`#d8314a`,disabled:`#4b585b`},message:{active:`#e3e7e8`,warning:`#e3e7e8`,error:`#e3e7e8`,submitted:`#67787c`,cancelled:`#67787c`,disabled:`#4b585b`},input:{active:`#3b82f6`,inactive:`#9ca8ab`,warning:`#f3d371`,error:`#d8314a`,submitted:`#e3e7e8`,cancelled:`#d8314a`,placeholder:`#4b585b`,disabled:`#4b585b`},description:{active:`#67787c`,inactive:`#4b585b`,warning:`#f3d371`,error:`#d8314a`,submitted:`#67787c`,cancelled:`#d8314a`,disabled:`#4b585b`}},spinner:{icon:{active:`#3b82f6`,error:`#d8314a`,success:`#45b27e`,help:`#818cf8`,info:`#38bdf8`,warning:`#f3d371`},message:{active:`#e3e7e8`,error:`#d8314a`,success:`#67787c`,help:`#67787c`,info:`#67787c`,warning:`#67787c`}},tags:{utility:`#94a3b8`,deprecated:`#f87171`,experimental:`#818cf8`,$default:`#e3e7e8`}},border:{app:{primary:`#e3e7e8`,secondary:`#67787c`,tertiary:`#4b585b`},banner:`#ffffff`,message:{help:`#818cf8`,success:`#45b27e`,info:`#38bdf8`,debug:`#8afafc`,warning:`#f3d371`,danger:`#d8314a`}}},borderStyles:{app:`single`,banner:`bold`,message:`round`},padding:{app:0,banner:14,message:8,table:1},icons:{link:{external:`↗`},message:{header:{help:`✱`,success:`✔`,info:`🛈`,debug:`🛠`,warning:`🛆`,danger:`🛇`,error:`✘`}},banner:{header:`⏺`},prompt:{active:`✱`,error:`✘`,warning:`🛆`,submitted:`✔`,cancelled:`🛇`,disabled:`🛇`}},labels:{message:{header:{help:`Useful Tip`,success:`Success`,info:`Info`,debug:`Debug`,warning:`Warning`,danger:`Danger`,error:`Error`}}},spinner:`dots`};export{e as theme};
|
|
156
2
|
//# sourceMappingURL=default.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"default.mjs","names":[],"sources":["../../src/themes/default.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ThemeUserConfig } from \"../types/theme\";\n\nexport const theme: ThemeUserConfig = {\n $theme: \"default\",\n colors: {\n text: {\n banner: {\n title: \"#ffffff\",\n command: \"#e3e7e8\",\n description: \"#9ca8ab\"\n },\n heading: {\n primary: \"#ffffff\",\n secondary: \"#e3e7e8\",\n tertiary: \"#9ca8ab\"\n },\n body: {\n primary: \"#9ca8ab\",\n secondary: \"#9ca8ab\",\n tertiary: \"#67787c\",\n link: \"#3fa6ff\"\n },\n message: {\n description: \"#e3e7e8\"\n },\n usage: {\n bin: \"#67787c\",\n command: \"#e3e7e8\",\n dynamic: \"#e3e7e8\",\n options: \"#67787c\",\n args: \"#67787c\",\n description: \"#67787c\"\n },\n prompt: {\n icon: {\n active: \"#3b82f6\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#45b27e\",\n cancelled: \"#d8314a\",\n disabled: \"#4b585b\"\n },\n message: {\n active: \"#e3e7e8\",\n warning: \"#e3e7e8\",\n error: \"#e3e7e8\",\n submitted: \"#67787c\",\n cancelled: \"#67787c\",\n disabled: \"#4b585b\"\n },\n input: {\n active: \"#3b82f6\",\n inactive: \"#9ca8ab\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#e3e7e8\",\n cancelled: \"#d8314a\",\n placeholder: \"#4b585b\",\n disabled: \"#4b585b\"\n },\n description: {\n active: \"#67787c\",\n inactive: \"#4b585b\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#67787c\",\n cancelled: \"#d8314a\",\n disabled: \"#4b585b\"\n }\n },\n spinner: {\n icon: {\n active: \"#3b82f6\",\n error: \"#d8314a\",\n success: \"#45b27e\",\n help: \"#818cf8\",\n info: \"#38bdf8\",\n warning: \"#f3d371\"\n },\n message: {\n active: \"#e3e7e8\",\n error: \"#d8314a\",\n success: \"#67787c\",\n help: \"#67787c\",\n info: \"#67787c\",\n warning: \"#67787c\"\n }\n },\n tags: {\n utility: \"#94a3b8\",\n deprecated: \"#f87171\",\n experimental: \"#818cf8\",\n $default: \"#e3e7e8\"\n }\n },\n border: {\n app: {\n primary: \"#e3e7e8\",\n secondary: \"#67787c\",\n tertiary: \"#4b585b\"\n },\n banner: \"#ffffff\",\n message: {\n help: \"#818cf8\",\n success: \"#45b27e\",\n info: \"#38bdf8\",\n debug: \"#8afafc\",\n warning: \"#f3d371\",\n danger: \"#d8314a\"\n }\n }\n },\n borderStyles: {\n app: \"single\",\n banner: \"bold\",\n message: \"round\"\n },\n padding: {\n app: 0,\n banner: 14,\n message: 8,\n table: 1\n },\n icons: {\n link: {\n external: \"↗\"\n },\n message: {\n header: {\n help: \"✱\",\n success: \"✔\",\n info: \"🛈\",\n debug: \"🛠\",\n warning: \"🛆\",\n danger: \"🛇\",\n error: \"✘\"\n }\n },\n banner: {\n header: \"⏺\"\n },\n prompt: {\n active: \"✱\",\n error: \"✘\",\n warning: \"🛆\",\n submitted: \"✔\",\n cancelled: \"🛇\",\n disabled: \"🛇\"\n }\n },\n labels: {\n message: {\n header: {\n help: \"Useful Tip\",\n success: \"Success\",\n info: \"Info\",\n debug: \"Debug\",\n warning: \"Warning\",\n danger: \"Danger\",\n error: \"Error\"\n }\n }\n },\n spinner: \"dots\"\n} as const;\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"default.mjs","names":[],"sources":["../../src/themes/default.ts"],"sourcesContent":["/* -------------------------------------------------------------------\n\n ⚡ Storm Software - Shell Shock\n\n This code was released as part of the Shell Shock project. Shell Shock\n is maintained by Storm Software under the Apache-2.0 license, and is\n free for commercial and private use. For more information, please visit\n our licensing page at https://stormsoftware.com/licenses/projects/shell-shock.\n\n Website: https://stormsoftware.com\n Repository: https://github.com/storm-software/shell-shock\n Documentation: https://docs.stormsoftware.com/projects/shell-shock\n Contact: https://stormsoftware.com/contact\n\n SPDX-License-Identifier: Apache-2.0\n\n ------------------------------------------------------------------- */\n\nimport type { ThemeUserConfig } from \"../types/theme\";\n\nexport const theme: ThemeUserConfig = {\n $theme: \"default\",\n colors: {\n text: {\n banner: {\n title: \"#ffffff\",\n command: \"#e3e7e8\",\n description: \"#9ca8ab\"\n },\n heading: {\n primary: \"#ffffff\",\n secondary: \"#e3e7e8\",\n tertiary: \"#9ca8ab\"\n },\n body: {\n primary: \"#9ca8ab\",\n secondary: \"#9ca8ab\",\n tertiary: \"#67787c\",\n link: \"#3fa6ff\"\n },\n message: {\n description: \"#e3e7e8\"\n },\n usage: {\n bin: \"#67787c\",\n command: \"#e3e7e8\",\n dynamic: \"#e3e7e8\",\n options: \"#67787c\",\n args: \"#67787c\",\n description: \"#67787c\"\n },\n prompt: {\n icon: {\n active: \"#3b82f6\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#45b27e\",\n cancelled: \"#d8314a\",\n disabled: \"#4b585b\"\n },\n message: {\n active: \"#e3e7e8\",\n warning: \"#e3e7e8\",\n error: \"#e3e7e8\",\n submitted: \"#67787c\",\n cancelled: \"#67787c\",\n disabled: \"#4b585b\"\n },\n input: {\n active: \"#3b82f6\",\n inactive: \"#9ca8ab\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#e3e7e8\",\n cancelled: \"#d8314a\",\n placeholder: \"#4b585b\",\n disabled: \"#4b585b\"\n },\n description: {\n active: \"#67787c\",\n inactive: \"#4b585b\",\n warning: \"#f3d371\",\n error: \"#d8314a\",\n submitted: \"#67787c\",\n cancelled: \"#d8314a\",\n disabled: \"#4b585b\"\n }\n },\n spinner: {\n icon: {\n active: \"#3b82f6\",\n error: \"#d8314a\",\n success: \"#45b27e\",\n help: \"#818cf8\",\n info: \"#38bdf8\",\n warning: \"#f3d371\"\n },\n message: {\n active: \"#e3e7e8\",\n error: \"#d8314a\",\n success: \"#67787c\",\n help: \"#67787c\",\n info: \"#67787c\",\n warning: \"#67787c\"\n }\n },\n tags: {\n utility: \"#94a3b8\",\n deprecated: \"#f87171\",\n experimental: \"#818cf8\",\n $default: \"#e3e7e8\"\n }\n },\n border: {\n app: {\n primary: \"#e3e7e8\",\n secondary: \"#67787c\",\n tertiary: \"#4b585b\"\n },\n banner: \"#ffffff\",\n message: {\n help: \"#818cf8\",\n success: \"#45b27e\",\n info: \"#38bdf8\",\n debug: \"#8afafc\",\n warning: \"#f3d371\",\n danger: \"#d8314a\"\n }\n }\n },\n borderStyles: {\n app: \"single\",\n banner: \"bold\",\n message: \"round\"\n },\n padding: {\n app: 0,\n banner: 14,\n message: 8,\n table: 1\n },\n icons: {\n link: {\n external: \"↗\"\n },\n message: {\n header: {\n help: \"✱\",\n success: \"✔\",\n info: \"🛈\",\n debug: \"🛠\",\n warning: \"🛆\",\n danger: \"🛇\",\n error: \"✘\"\n }\n },\n banner: {\n header: \"⏺\"\n },\n prompt: {\n active: \"✱\",\n error: \"✘\",\n warning: \"🛆\",\n submitted: \"✔\",\n cancelled: \"🛇\",\n disabled: \"🛇\"\n }\n },\n labels: {\n message: {\n header: {\n help: \"Useful Tip\",\n success: \"Success\",\n info: \"Info\",\n debug: \"Debug\",\n warning: \"Warning\",\n danger: \"Danger\",\n error: \"Error\"\n }\n }\n },\n spinner: \"dots\"\n} as const;\n"],"mappings":"AAkBA,MAAa,EAAC,kBAEd,OAAO,CACJ,KAAO,CACR,OAAQ,CACF,MAAE,UACJ,QAAQ,UACN,YAAS,UACV,CACD,QAAE,CACD,QAAA,UACD,UAAS,UACP,SAAU,UACX,CACD,KAAE,CACD,QAAA,UACD,UAAM,UACJ,SAAU,UACV,KAAA,UACD,CACD,QAAS,CACR,YAAA,UACD,CACA,MAAE,CACD,IAAA,UACD,QAAO,UACL,QAAO,UACP,QAAS,UACT,KAAA,UACA,YAAW,UACZ,CACD,OAAE,CACD,KAAA,CACD,OAAQ,UACN,QAAM,UACJ,MAAO,UACP,UAAW,UACX,UAAS,UACT,SAAU,UACX,CACD,QAAE,CACD,OAAA,UACD,QAAS,UACP,MAAO,UACP,UAAW,UACX,UAAS,UACT,SAAU,UACX,CACD,MAAE,CACD,OAAA,UACD,SAAO,UACL,QAAS,UACT,MAAA,UACA,UAAW,UACX,UAAS,UACT,YAAa,UACb,SAAU,UACX,CACD,YAAa,CACZ,OAAA,UACD,SAAY,UACV,QAAS,UACT,MAAA,UACA,UAAW,UACX,UAAS,UACT,SAAU,UACX,CACF,CACD,QAAE,CACD,KAAA,CACD,OAAS,UACP,MAAM,UACJ,QAAS,UACT,KAAM,UACN,KAAA,UACA,QAAQ,UACT,CACD,QAAS,CACR,OAAA,UACD,MAAS,UACP,QAAS,UACT,KAAM,UACN,KAAA,UACA,QAAQ,UACT,CACF,CACD,KAAE,CACD,QAAA,UACD,WAAM,UACJ,aAAW,UACX,SAAU,UACX,CACF,CACD,OAAE,CACD,IAAA,CACD,QAAQ,UACN,UAAK,UACH,SAAU,UACX,CACD,OAAE,UACF,QAAC,CACD,KAAQ,UACR,QAAS,UACP,KAAM,UACN,MAAO,UACP,QAAQ,UACR,OAAQ,UACT,CACF,CACF,CACD,aAAE,CACD,IAAA,SACD,OAAA,OACE,QAAM,QACP,CACD,QAAS,CACR,IAAA,EACD,OAAS,GACP,QAAM,EACN,MAAO,EACR,CACD,MAAO,CACN,KAAA,CACD,SAAO,IACL,CACA,QAAE,CACD,OAAA,CACD,KAAS,IACP,QAAQ,IACN,KAAM,KACN,MAAO,KACP,QAAS,KACT,OAAQ,KACR,MAAO,IACR,CACF,CACD,OAAE,CACD,OAAA,IACD,CACA,OAAQ,CACP,OAAA,IACD,MAAQ,IACN,QAAS,KACT,UAAU,IACV,UAAU,KACV,SAAU,KACX,CACF,CACD,OAAE,CACD,QAAA,CACD,OAAQ,CACN,KAAS,aACP,QAAQ,UACN,KAAM,OACN,MAAO,QACP,QAAO,UACP,OAAQ,SACR,MAAO,QACR,CACF,CACF,CACD,QAAE,OACH"}
|
package/dist/types/index.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|
package/dist/types/plugin.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { ThemeResolvedConfig, ThemeUserConfig } from "./theme.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import { Context } from "../core/dist/types/context.mjs";
|
|
2
|
+
import { require_index_d } from "../packages/core/dist/index.mjs";
|
|
4
3
|
import { AlloyPluginContext, AlloyPluginOptions, AlloyPluginResolvedConfig } from "@powerlines/plugin-alloy/types";
|
|
5
4
|
import { StyleDictionaryPluginContext, StyleDictionaryPluginOptions, StyleDictionaryPluginResolvedConfig, StyleDictionaryPluginUserConfig } from "@powerlines/plugin-style-dictionary/types";
|
|
6
5
|
|
|
@@ -11,14 +10,14 @@ type ThemePluginOptions = StyleDictionaryPluginOptions & AlloyPluginOptions & {
|
|
|
11
10
|
*/
|
|
12
11
|
theme?: ThemeUserConfig;
|
|
13
12
|
};
|
|
14
|
-
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & UserConfig & ThemePluginOptions;
|
|
15
|
-
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & ResolvedConfig & {
|
|
13
|
+
type ThemePluginUserConfig = StyleDictionaryPluginUserConfig & AlloyPluginOptions & import_index_d.UserConfig & ThemePluginOptions;
|
|
14
|
+
type ThemePluginResolvedConfig = StyleDictionaryPluginResolvedConfig & AlloyPluginResolvedConfig & import_index_d.ResolvedConfig & {
|
|
16
15
|
/**
|
|
17
16
|
* Resolved theme configuration for the plugin.
|
|
18
17
|
*/
|
|
19
18
|
theme: ThemeResolvedConfig;
|
|
20
19
|
};
|
|
21
|
-
type ThemePluginContext<TResolvedConfig extends ThemePluginResolvedConfig = ThemePluginResolvedConfig> = AlloyPluginContext<TResolvedConfig> & StyleDictionaryPluginContext<TResolvedConfig> & Context<TResolvedConfig> & {
|
|
20
|
+
type ThemePluginContext<TResolvedConfig extends ThemePluginResolvedConfig = ThemePluginResolvedConfig> = AlloyPluginContext<TResolvedConfig> & StyleDictionaryPluginContext<TResolvedConfig> & import_index_d.Context<TResolvedConfig> & {
|
|
22
21
|
/**
|
|
23
22
|
* Resolved theme configuration.
|
|
24
23
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"plugin.d.mts","names":[],"sources":["../../src/types/plugin.ts"],"mappings":";;;;;;KAgCY,kBAAA,GAAqB,4BAAA,GAC/B,kBAAA;;;AADF;EAKI,KAAA,GAAQ,eAAA;AAAA;AAAA,KAGA,qBAAA,GAAwB,+BAAA,GAClC,kBAAA,GACA,cAAA,CAAA,UAAA,GACA,kBAAA;AAAA,KAEU,yBAAA,GAA4B,mCAAA,GACtC,yBAAA,GACA,cAAA,CAAA,cAAA;EAVU;;;EAcR,KAAA,EAAO,mBAAA;AAAA;AAAA,KAGC,kBAAA,yBACc,yBAAA,GAA4B,yBAAA,IAClD,kBAAA,CAAmB,eAAA,IACrB,4BAAA,CAA6B,eAAA,IAC7B,cAAA,CAAA,OAAA,CAAQ,eAAA;EArBE;;;EAyBR,KAAA,EAAO,mBAAA;AAAA"}
|
package/dist/types/plugin.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|
package/dist/types/theme.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export{};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@shell-shock/plugin-theme",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.21",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "A package containing a Shell Shock plugin to generate source code given a list design tokens.",
|
|
6
6
|
"keywords": [
|
|
@@ -223,20 +223,23 @@
|
|
|
223
223
|
"files": ["dist/**/*"],
|
|
224
224
|
"dependencies": {
|
|
225
225
|
"@alloy-js/core": "0.23.0-dev.8",
|
|
226
|
-
"@powerlines/plugin-alloy": "^0.26.
|
|
227
|
-
"@powerlines/plugin-plugin": "^0.12.
|
|
228
|
-
"@powerlines/plugin-style-dictionary": "^0.3.
|
|
229
|
-
"@stryke/helpers": "^0.10.
|
|
230
|
-
"@stryke/
|
|
231
|
-
"@stryke/string-format": "^0.17.
|
|
226
|
+
"@powerlines/plugin-alloy": "^0.26.67",
|
|
227
|
+
"@powerlines/plugin-plugin": "^0.12.399",
|
|
228
|
+
"@powerlines/plugin-style-dictionary": "^0.3.349",
|
|
229
|
+
"@stryke/helpers": "^0.10.11",
|
|
230
|
+
"@stryke/json": "^0.14.15",
|
|
231
|
+
"@stryke/string-format": "^0.17.12",
|
|
232
|
+
"@stryke/type-checks": "^0.6.4",
|
|
233
|
+
"@stryke/types": "^0.11.6",
|
|
232
234
|
"defu": "^6.1.7",
|
|
233
|
-
"powerlines": "^0.
|
|
235
|
+
"powerlines": "^0.44.12",
|
|
234
236
|
"style-dictionary": "^5.4.0"
|
|
235
237
|
},
|
|
236
238
|
"devDependencies": {
|
|
237
|
-
"@powerlines/plugin-deepkit": "^0.11.
|
|
239
|
+
"@powerlines/plugin-deepkit": "^0.11.330",
|
|
238
240
|
"@types/node": "^25.6.0"
|
|
239
241
|
},
|
|
240
242
|
"publishConfig": { "access": "public" },
|
|
241
|
-
"
|
|
243
|
+
"inlinedDependencies": { "@standard-schema/spec": "1.1.0", "zod": "4.3.6" },
|
|
244
|
+
"gitHead": "832c19e668deb4d29b5e0219a7708d111790f607"
|
|
242
245
|
}
|
package/dist/core/dist/api.d.mts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { };
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
import { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig, CommandOption, CommandParameterKind, CommandParameterKinds, CommandTree, NumberCommandParameter, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter } from "./types/command.mjs";
|
|
2
|
-
import { Options, OutputConfig, ReferenceOptions, ResolvedConfig, UserConfig } from "./types/config.mjs";
|
|
3
|
-
import { Context } from "./types/context.mjs";
|
|
@@ -1,274 +0,0 @@
|
|
|
1
|
-
import { ResolvedEntryTypeDefinition } from "powerlines";
|
|
2
|
-
|
|
3
|
-
//#region ../core/dist/types/command.d.cts
|
|
4
|
-
declare const CommandParameterKinds: {
|
|
5
|
-
readonly string: "string";
|
|
6
|
-
readonly number: "number";
|
|
7
|
-
readonly boolean: "boolean";
|
|
8
|
-
};
|
|
9
|
-
type CommandParameterKind = (typeof CommandParameterKinds)[keyof typeof CommandParameterKinds];
|
|
10
|
-
interface BaseCommandParameter {
|
|
11
|
-
/**
|
|
12
|
-
* The option name.
|
|
13
|
-
*/
|
|
14
|
-
name: string;
|
|
15
|
-
/**
|
|
16
|
-
* The option kind.
|
|
17
|
-
*/
|
|
18
|
-
kind: CommandParameterKind;
|
|
19
|
-
/**
|
|
20
|
-
* The display title.
|
|
21
|
-
*/
|
|
22
|
-
title: string;
|
|
23
|
-
/**
|
|
24
|
-
* The option description.
|
|
25
|
-
*/
|
|
26
|
-
description: string;
|
|
27
|
-
/**
|
|
28
|
-
* Alternative option names.
|
|
29
|
-
*/
|
|
30
|
-
alias: string[];
|
|
31
|
-
/**
|
|
32
|
-
* The default value.
|
|
33
|
-
*/
|
|
34
|
-
default?: string | number | boolean | string[] | number[] | boolean[];
|
|
35
|
-
/**
|
|
36
|
-
* The environment variable name or false to disable.
|
|
37
|
-
*/
|
|
38
|
-
env: string | false;
|
|
39
|
-
/**
|
|
40
|
-
* Whether the option is optional.
|
|
41
|
-
*/
|
|
42
|
-
optional: boolean;
|
|
43
|
-
/**
|
|
44
|
-
* Whether the option accepts multiple values.
|
|
45
|
-
*/
|
|
46
|
-
variadic: boolean;
|
|
47
|
-
}
|
|
48
|
-
interface BaseStringCommandParameter extends BaseCommandParameter {
|
|
49
|
-
/**
|
|
50
|
-
* The option kind.
|
|
51
|
-
*/
|
|
52
|
-
kind: "string";
|
|
53
|
-
/**
|
|
54
|
-
* The default value.
|
|
55
|
-
*/
|
|
56
|
-
default?: string | string[];
|
|
57
|
-
/**
|
|
58
|
-
* A standard string format to validate the option value against.
|
|
59
|
-
*/
|
|
60
|
-
format?: "email" | "uri" | "uuid" | "ipv4" | "ipv6" | "date" | "time" | "date-time" | "duration";
|
|
61
|
-
/**
|
|
62
|
-
* The allowed choices for the option value.
|
|
63
|
-
*/
|
|
64
|
-
choices?: string[];
|
|
65
|
-
}
|
|
66
|
-
interface SingleStringCommandParameter extends BaseStringCommandParameter {
|
|
67
|
-
/**
|
|
68
|
-
* The default value.
|
|
69
|
-
*/
|
|
70
|
-
default?: string;
|
|
71
|
-
/**
|
|
72
|
-
* Whether the option accepts multiple values.
|
|
73
|
-
*/
|
|
74
|
-
variadic: false;
|
|
75
|
-
}
|
|
76
|
-
interface VariadicStringCommandParameter extends BaseStringCommandParameter {
|
|
77
|
-
/**
|
|
78
|
-
* The default value.
|
|
79
|
-
*/
|
|
80
|
-
default?: string[];
|
|
81
|
-
/**
|
|
82
|
-
* Whether the option accepts multiple values.
|
|
83
|
-
*/
|
|
84
|
-
variadic: true;
|
|
85
|
-
}
|
|
86
|
-
type StringCommandParameter = SingleStringCommandParameter | VariadicStringCommandParameter;
|
|
87
|
-
interface BaseNumberCommandParameter extends BaseCommandParameter {
|
|
88
|
-
/**
|
|
89
|
-
* The option kind.
|
|
90
|
-
*/
|
|
91
|
-
kind: "number";
|
|
92
|
-
/**
|
|
93
|
-
* The default value.
|
|
94
|
-
*/
|
|
95
|
-
default?: number | number[];
|
|
96
|
-
/**
|
|
97
|
-
* The allowed choices for the option value.
|
|
98
|
-
*/
|
|
99
|
-
choices?: number[];
|
|
100
|
-
}
|
|
101
|
-
interface SingleNumberCommandParameter extends BaseNumberCommandParameter {
|
|
102
|
-
/**
|
|
103
|
-
* The default value.
|
|
104
|
-
*/
|
|
105
|
-
default?: number;
|
|
106
|
-
/**
|
|
107
|
-
* Whether the option accepts multiple values.
|
|
108
|
-
*/
|
|
109
|
-
variadic: false;
|
|
110
|
-
}
|
|
111
|
-
interface VariadicNumberCommandParameter extends BaseNumberCommandParameter {
|
|
112
|
-
/**
|
|
113
|
-
* The default value.
|
|
114
|
-
*/
|
|
115
|
-
default?: number[];
|
|
116
|
-
/**
|
|
117
|
-
* Whether the option accepts multiple values.
|
|
118
|
-
*/
|
|
119
|
-
variadic: true;
|
|
120
|
-
}
|
|
121
|
-
type NumberCommandParameter = SingleNumberCommandParameter | VariadicNumberCommandParameter;
|
|
122
|
-
interface BaseBooleanCommandParameter extends BaseCommandParameter {
|
|
123
|
-
/**
|
|
124
|
-
* The option kind.
|
|
125
|
-
*/
|
|
126
|
-
kind: "boolean";
|
|
127
|
-
/**
|
|
128
|
-
* The default value.
|
|
129
|
-
*/
|
|
130
|
-
default?: boolean | boolean[];
|
|
131
|
-
}
|
|
132
|
-
interface SingleBooleanCommandParameter extends BaseBooleanCommandParameter {
|
|
133
|
-
/**
|
|
134
|
-
* The default value.
|
|
135
|
-
*/
|
|
136
|
-
default?: boolean;
|
|
137
|
-
/**
|
|
138
|
-
* Whether the option accepts multiple values.
|
|
139
|
-
*/
|
|
140
|
-
variadic: false;
|
|
141
|
-
}
|
|
142
|
-
interface VariadicBooleanCommandParameter extends BaseBooleanCommandParameter {
|
|
143
|
-
/**
|
|
144
|
-
* The default value.
|
|
145
|
-
*/
|
|
146
|
-
default?: boolean[];
|
|
147
|
-
/**
|
|
148
|
-
* Whether the option accepts multiple values.
|
|
149
|
-
*/
|
|
150
|
-
variadic: true;
|
|
151
|
-
}
|
|
152
|
-
type BooleanCommandParameter = SingleBooleanCommandParameter | VariadicBooleanCommandParameter;
|
|
153
|
-
interface BooleanCommandOption extends SingleBooleanCommandParameter {
|
|
154
|
-
/**
|
|
155
|
-
* The option this negates.
|
|
156
|
-
*/
|
|
157
|
-
isNegativeOf?: string;
|
|
158
|
-
/**
|
|
159
|
-
* Whether to skip adding a negative option.
|
|
160
|
-
*/
|
|
161
|
-
skipAddingNegative?: boolean;
|
|
162
|
-
}
|
|
163
|
-
type CommandOption = StringCommandParameter | NumberCommandParameter | BooleanCommandOption | VariadicBooleanCommandParameter;
|
|
164
|
-
type CommandArgument = StringCommandParameter | NumberCommandParameter | BooleanCommandParameter;
|
|
165
|
-
interface CommandBase {
|
|
166
|
-
/**
|
|
167
|
-
* The command id.
|
|
168
|
-
*/
|
|
169
|
-
id: string | null;
|
|
170
|
-
/**
|
|
171
|
-
* The command name.
|
|
172
|
-
*/
|
|
173
|
-
name: string;
|
|
174
|
-
/**
|
|
175
|
-
* The full command path value.
|
|
176
|
-
*/
|
|
177
|
-
path: string | null;
|
|
178
|
-
/**
|
|
179
|
-
* The path segments.
|
|
180
|
-
*/
|
|
181
|
-
segments: string[];
|
|
182
|
-
/**
|
|
183
|
-
* The display title.
|
|
184
|
-
*/
|
|
185
|
-
title?: string;
|
|
186
|
-
/**
|
|
187
|
-
* The command description.
|
|
188
|
-
*/
|
|
189
|
-
description?: string;
|
|
190
|
-
/**
|
|
191
|
-
* Alternative command names.
|
|
192
|
-
*/
|
|
193
|
-
alias?: string[];
|
|
194
|
-
/**
|
|
195
|
-
* The command icon.
|
|
196
|
-
*/
|
|
197
|
-
icon?: string;
|
|
198
|
-
/**
|
|
199
|
-
* A URL to the command documentation or reference.
|
|
200
|
-
*/
|
|
201
|
-
reference?: string;
|
|
202
|
-
/**
|
|
203
|
-
* Whether the command is virtual.
|
|
204
|
-
*
|
|
205
|
-
* @remarks
|
|
206
|
-
* 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.
|
|
207
|
-
*/
|
|
208
|
-
isVirtual: boolean;
|
|
209
|
-
}
|
|
210
|
-
interface CommandConfig extends CommandBase {
|
|
211
|
-
/**
|
|
212
|
-
* The command id.
|
|
213
|
-
*/
|
|
214
|
-
id: string;
|
|
215
|
-
/**
|
|
216
|
-
* The resolved entry definition.
|
|
217
|
-
*/
|
|
218
|
-
entry: ResolvedEntryTypeDefinition;
|
|
219
|
-
/**
|
|
220
|
-
* Optional tags for the command.
|
|
221
|
-
*
|
|
222
|
-
* @remarks
|
|
223
|
-
* 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.
|
|
224
|
-
*/
|
|
225
|
-
tags?: string[];
|
|
226
|
-
/**
|
|
227
|
-
* 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.
|
|
228
|
-
*/
|
|
229
|
-
source?: "file" | string;
|
|
230
|
-
}
|
|
231
|
-
type CommandTree = CommandConfig & {
|
|
232
|
-
/**
|
|
233
|
-
* The display title.
|
|
234
|
-
*/
|
|
235
|
-
title: string;
|
|
236
|
-
/**
|
|
237
|
-
* The command description.
|
|
238
|
-
*/
|
|
239
|
-
description: string;
|
|
240
|
-
/**
|
|
241
|
-
* Alternative command names.
|
|
242
|
-
*/
|
|
243
|
-
alias: string[];
|
|
244
|
-
/**
|
|
245
|
-
* A set of tags for the command.
|
|
246
|
-
*
|
|
247
|
-
* @remarks
|
|
248
|
-
* 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.
|
|
249
|
-
*/
|
|
250
|
-
tags: string[];
|
|
251
|
-
/**
|
|
252
|
-
* 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.
|
|
253
|
-
*/
|
|
254
|
-
source: "file" | string;
|
|
255
|
-
/**
|
|
256
|
-
* The command options.
|
|
257
|
-
*/
|
|
258
|
-
options: Record<string, CommandOption>;
|
|
259
|
-
/**
|
|
260
|
-
* The positional arguments provided to the command.
|
|
261
|
-
*/
|
|
262
|
-
args: CommandArgument[];
|
|
263
|
-
/**
|
|
264
|
-
* The parent command.
|
|
265
|
-
*/
|
|
266
|
-
parent: null | CommandTree;
|
|
267
|
-
/**
|
|
268
|
-
* Child commands.
|
|
269
|
-
*/
|
|
270
|
-
children: Record<string, CommandTree>;
|
|
271
|
-
};
|
|
272
|
-
//#endregion
|
|
273
|
-
export { BaseBooleanCommandParameter, BaseCommandParameter, BaseNumberCommandParameter, BaseStringCommandParameter, BooleanCommandOption, BooleanCommandParameter, CommandArgument, CommandBase, CommandConfig, CommandOption, CommandParameterKind, CommandParameterKinds, CommandTree, NumberCommandParameter, SingleBooleanCommandParameter, SingleNumberCommandParameter, SingleStringCommandParameter, StringCommandParameter, VariadicBooleanCommandParameter, VariadicNumberCommandParameter, VariadicStringCommandParameter };
|
|
274
|
-
//# sourceMappingURL=command.d.mts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.mts","names":["ResolvedEntryTypeDefinition","StandardJSONSchemaV1","JsonSchema7TupleType","AnyFunction","JSONSchema7Object","z3","CommandParameterType","CommandParameterKinds","string","number","boolean","CommandParameterKind","BaseCommandParameter","name","kind","title","description","alias","default","env","optional","variadic","BaseSingleCommandParameter","BaseVariadicCommandParameter","BaseStringCommandParameter","format","choices","SingleStringCommandParameter","VariadicStringCommandParameter","StringCommandParameter","BaseNumberCommandParameter","SingleNumberCommandParameter","VariadicNumberCommandParameter","NumberCommandParameter","BaseBooleanCommandParameter","SingleBooleanCommandParameter","VariadicBooleanCommandParameter","BooleanCommandParameter","CommandParameter","AsCommandParameterConfig","T","Pick","Omit","Partial","StringCommandParameterConfig","NumberCommandParameterConfig","BooleanCommandParameterConfig","CommandParameterConfig","BooleanCommandOption","isNegativeOf","skipAddingNegative","CommandOption","CommandOptionConfig","CommandArgument","CommandArgumentConfig","CommandBase","id","path","segments","icon","reference","isVirtual","CommandConfig","entry","tags","source","CommandTree","Record","options","args","parent","children","SerializedCommandTree","CommandMetadata","CommandModule","AnyZodObject","AnyZodTuple","metadata"],"sources":["../../../../../core/dist/types/command.d.cts"],"mappings":";;;cAScO,qBAAAA;EAAAA,SACHC,MAAAA;EAAAA,SACAC,MAAAA;EAAAA,SACAC,OAAAA;AAAAA;AAAAA,KAENC,oBAAAA,WAA+BJ,qBAAAA,eAAoCA,qBAAAA;AAAAA,UAC9DK,oBAAAA;EADmF;AAAA;;EAK3FC,IAAAA;EAI0B;;;EAA1BC,IAAAA,EAAMH,oBAAAA;EAINI;;;EAAAA,KAAAA;EAgBAI;;;EAZAH,WAAAA;EAoBQ;AAoBA;;EApCRC,KAAAA;EAsC+D;;;EAlC/DC,OAAAA;EA8CAO;;;EA1CAN,GAAAA;EA8CO;;;EA1CPC,QAAAA;EA4C6CI;;;EAxC7CH,QAAAA;AAAAA;AAAAA,UAsBQG,0BAAAA,SAAmCZ,oBAAAA;EAmD3Cc;;;EA/CAZ,IAAAA;EAiDoC;;;EA7CpCI,OAAAA;EAiDAA;;;EA7CAO,MAAAA;EAiDQ;;;EA7CRC,OAAAA;AAAAA;AAAAA,UAEQC,4BAAAA,SAAqCH,0BAAAA;EAqD7CH;;;EAjDAH,OAAAA;EAmDyB;;;EA/CzBG,QAAAA;AAAAA;AAAAA,UAEQO,8BAAAA,SAAuCJ,0BAAAA;;;;EAI/CN,OAAAA;EAkDAA;;;EA9CAG,QAAAA;AAAAA;AAAAA,KAEGQ,sBAAAA,GAAyBF,4BAAAA,GAA+BC,8BAAAA;AAAAA,UACnDE,0BAAAA,SAAmClB,oBAAAA;EA6CGsB;;;EAzC9CpB,IAAAA;EAiDQ;AAAA;;EA7CRI,OAAAA;EA+C2E;;;EA3C3EQ,OAAAA;AAAAA;AAAAA,UAEQK,4BAAAA,SAAqCD,0BAAAA;EAiDrC;;;EA7CRZ,OAAAA;EA+C4F;AAQ2B;;EAnDvHG,QAAAA;AAAAA;AAAAA,UAEQW,8BAAAA,SAAuCF,0BAAAA;EAsD/CmB;;;EAlDA/B,OAAAA;EAsDkB;;;EAlDlBG,QAAAA;AAAAA;AAAAA,KAEGY,sBAAAA,GAAyBF,4BAAAA,GAA+BC,8BAAAA;AAAAA,UACnDE,2BAAAA,SAAoCtB,oBAAAA;EAiD+E;;;EA7C3HE,IAAAA;EA6CqEkC;;;EAzCrE9B,OAAAA;AAAAA;AAAAA,UAEQiB,6BAAAA,SAAsCD,2BAAAA;;;;EAI9ChB,OAAAA;EAqC8F;;;EAjC9FG,QAAAA;AAAAA;AAAAA,UAEQe,+BAAAA,SAAwCF,2BAAAA;EA+B8C;AAC3B;;EA5BnEhB,OAAAA;EA6BmB;;;EAzBnBG,QAAAA;AAAAA;AAAAA,KAEGgB,uBAAAA,GAA0BF,6BAAAA,GAAgCC,+BAAAA;AAAAA,UASrDY,oBAAAA,SAA6Bb,6BAAAA;;;;EAIrCc,YAAAA;EA+DAc;;;EA3DAb,kBAAAA;AAAAA;AAAAA,KAEGC,aAAAA,GAAgBtB,sBAAAA,GAAyBI,sBAAAA,GAAyBe,oBAAAA,GAAuBZ,+BAAAA;AAAAA,KAEzFiB,eAAAA,GAAkBxB,sBAAAA,GAAyBI,sBAAAA,GAAyBI,uBAAAA;AAAAA,UAE/DkB,WAAAA;EA6FgBJ;;;EAzFxBK,EAAAA;EAqGyBU;;;EAjGzBrD,IAAAA;EA0DiBiD;;;EAtDjBL,IAAAA;EAyEAO;;;EArEAN,QAAAA;EA6EwBP;;;EAzExBpC,KAAAA;EAiFemD;;;EA7EflD,WAAAA;EAiFoC;;;EA7EpCC,KAAAA;;;;EAIA0C,IAAAA;;;;EAIAC,SAAAA;;;;;;;EAOAC,SAAAA;AAAAA;AAAAA,UAEQC,aAAAA,SAAsBP,WAAAA;;;;EAI9BC,EAAAA;;;;EAIAO,KAAAA,EAAO/D,2BAAAA;;;;;;;EAOPgE,IAAAA;;;;EAIAC,MAAAA;AAAAA;AAAAA,KAEGC,WAAAA,GAAcJ,aAAAA;;;;EAIjB/C,KAAAA;;;;EAIAC,WAAAA;;;;EAIAC,KAAAA;;;;;;;EAOA+C,IAAAA;;;;EAIAC,MAAAA;;;;EAIAG,OAAAA,EAASD,MAAAA,SAAehB,aAAAA;;;;EAIxBkB,IAAAA,EAAMhB,eAAAA;;;;EAINiB,MAAAA,SAAeJ,WAAAA;;;;EAIfK,QAAAA,EAAUJ,MAAAA,SAAeD,WAAAA;AAAAA"}
|