convoker 0.1.0

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.
@@ -0,0 +1,12 @@
1
+ import { I as i } from "./error-Cj2qDfOl.js";
2
+ async function o(a, t) {
3
+ const s = await a["~standard"].validate(t);
4
+ if (s.issues) {
5
+ const e = s.issues.map((r) => r.message);
6
+ throw new i(e);
7
+ }
8
+ return s.value;
9
+ }
10
+ export {
11
+ o as v
12
+ };
@@ -0,0 +1,22 @@
1
+ const p = typeof process < "u" && process.versions != null && process.versions.node != null, d = typeof Deno < "u" && typeof Deno.version?.deno == "string", u = typeof Bun < "u" && typeof Bun.version == "string";
2
+ function r(e) {
3
+ return e !== null && typeof e == "object" && Object.getPrototypeOf(e) === Object.prototype;
4
+ }
5
+ function c(e, n) {
6
+ if (Array.isArray(e) && Array.isArray(n))
7
+ return n;
8
+ if (r(e) && r(n)) {
9
+ const s = {};
10
+ return (/* @__PURE__ */ new Set([...Object.keys(e), ...Object.keys(n)])).forEach((o) => {
11
+ const i = e[o], t = n[o];
12
+ i !== void 0 && t !== void 0 ? s[o] = c(i, t) : t !== void 0 ? s[o] = t : s[o] = i;
13
+ }), s;
14
+ }
15
+ return n;
16
+ }
17
+ export {
18
+ u as a,
19
+ p as b,
20
+ d as i,
21
+ c as m
22
+ };
@@ -0,0 +1,200 @@
1
+ export declare const bgBlack: (input: any) => string;
2
+
3
+ export declare const bgBlue: (input: any) => string;
4
+
5
+ export declare const bgBlueBright: (input: any) => string;
6
+
7
+ export declare const bgCyan: (input: any) => string;
8
+
9
+ export declare const bgCyanBright: (input: any) => string;
10
+
11
+ export declare const bgGray: (input: any) => string;
12
+
13
+ export declare const bgGreen: (input: any) => string;
14
+
15
+ export declare const bgGreenBright: (input: any) => string;
16
+
17
+ export declare const bgMagenta: (input: any) => string;
18
+
19
+ export declare const bgMagentaBright: (input: any) => string;
20
+
21
+ export declare const bgRed: (input: any) => string;
22
+
23
+ export declare const bgRedBright: (input: any) => string;
24
+
25
+ export declare const bgWhite: (input: any) => string;
26
+
27
+ export declare const bgWhiteBright: (input: any) => string;
28
+
29
+ export declare const bgYellow: (input: any) => string;
30
+
31
+ export declare const bgYellowBright: (input: any) => string;
32
+
33
+ export declare const black: (input: any) => string;
34
+
35
+ export declare const blue: (input: any) => string;
36
+
37
+ export declare const blueBright: (input: any) => string;
38
+
39
+ export declare const bold: (input: any) => string;
40
+
41
+ /**
42
+ * Creates a function that wraps a string in ANSI codes.
43
+ * @param open The opening ANSI code.
44
+ * @param close The closing ANSI code.
45
+ * @returns A function that wraps the string in ANSI codes.
46
+ */
47
+ export declare function createAnsiColor(open: number, close: number): (input: any) => string;
48
+
49
+ export declare const cyan: (input: any) => string;
50
+
51
+ export declare const cyanBright: (input: any) => string;
52
+
53
+ /**
54
+ * The default theme.
55
+ */
56
+ export declare const DEFAULT_THEME: Theme;
57
+
58
+ /**
59
+ * Defines a theme.
60
+ * @param theme The (partial) theme.
61
+ * @returns The theme, merged with the default theme.
62
+ */
63
+ export declare function defineTheme(theme: Partial<Theme>): Theme;
64
+
65
+ export declare const dim: (input: any) => string;
66
+
67
+ export declare const gray: (input: any) => string;
68
+
69
+ export declare const green: (input: any) => string;
70
+
71
+ export declare const greenBright: (input: any) => string;
72
+
73
+ export declare const hidden: (input: any) => string;
74
+
75
+ export declare const inverse: (input: any) => string;
76
+
77
+ export declare const italic: (input: any) => string;
78
+
79
+ export declare const magenta: (input: any) => string;
80
+
81
+ export declare const magentaBright: (input: any) => string;
82
+
83
+ export declare const overline: (input: any) => string;
84
+
85
+ export declare const red: (input: any) => string;
86
+
87
+ export declare const redBright: (input: any) => string;
88
+
89
+ export declare const reset: (input: any) => string;
90
+
91
+ export declare const strikethrough: (input: any) => string;
92
+
93
+ /**
94
+ * If the runtime supports color.
95
+ */
96
+ export declare const supportsColor: boolean;
97
+
98
+ /**
99
+ * A theme.
100
+ */
101
+ export declare interface Theme {
102
+ /**
103
+ * Wraps a string in a background ANSI code.
104
+ * @param a The string to wrap.
105
+ */
106
+ background?(a: string): string;
107
+ /**
108
+ * Wraps a string in a foreground ANSI code.
109
+ * @param a The string to wrap.
110
+ */
111
+ foreground?(a: string): string;
112
+ /**
113
+ * Wraps a string in a primary ANSI code.
114
+ * @param a The string to wrap.
115
+ */
116
+ primary(a: string): string;
117
+ /**
118
+ * Wraps a string in a secondary ANSI code.
119
+ * @param a The string to wrap.
120
+ */
121
+ secondary(a: string): string;
122
+ /**
123
+ * Wraps a string in a accent ANSI code.
124
+ * @param a The string to wrap.
125
+ */
126
+ accent?(a: string): string;
127
+ /**
128
+ * Wraps a string in a success ANSI code.
129
+ * @param a The string to wrap.
130
+ */
131
+ success(a: string): string;
132
+ /**
133
+ * Wraps a string in a warning ANSI code.
134
+ * @param a The string to wrap.
135
+ */
136
+ warning(a: string): string;
137
+ /**
138
+ * Wraps a string in a error ANSI code.
139
+ * @param a The string to wrap.
140
+ */
141
+ error(a: string): string;
142
+ /**
143
+ * Wraps a string in a info ANSI code.
144
+ * @param a The string to wrap.
145
+ */
146
+ info?(a: string): string;
147
+ /**
148
+ * Set of symbols for logging.
149
+ */
150
+ symbols?: {
151
+ /**
152
+ * Success message symbol.
153
+ */
154
+ success: string;
155
+ /**
156
+ * Error message symbol.
157
+ */
158
+ error: string;
159
+ /**
160
+ * Warning message symbol.
161
+ */
162
+ warning: string;
163
+ /**
164
+ * Information message symbol.
165
+ */
166
+ info?: string;
167
+ };
168
+ /**
169
+ * Optional styles.
170
+ */
171
+ styles?: {
172
+ /**
173
+ * Wraps a string in a bold ANSI code.
174
+ * @param a The string to wrap.
175
+ */
176
+ bold?(a: string): string;
177
+ /**
178
+ * Wraps a string in an italic ANSI code.
179
+ * @param a The string to wrap.
180
+ */
181
+ italic?(a: string): string;
182
+ /**
183
+ * Wraps a string in an underline ANSI code.
184
+ * @param a The string to wrap.
185
+ */
186
+ underline?(a: string): string;
187
+ };
188
+ }
189
+
190
+ export declare const underline: (input: any) => string;
191
+
192
+ export declare const white: (input: any) => string;
193
+
194
+ export declare const whiteBright: (input: any) => string;
195
+
196
+ export declare const yellow: (input: any) => string;
197
+
198
+ export declare const yellowBright: (input: any) => string;
199
+
200
+ export { }
package/dist/color.js ADDED
@@ -0,0 +1,49 @@
1
+ import "./chunks/utils-DdmSEjLc.js";
2
+ import { D as g, q as r, z as t, P as i, B as h, R as b, E as l, v as n, N as B, A as o, Q as d, t as y, M as u, C as c, S as m, x as w, O as p, k as C, n as k, I as E, b as G, d as M, c as T, K as f, T as v, e as A, g as R, m as x, G as D, h as F, f as H, i as L, p as W, J as Y, o as j, l as q, F as z, r as I, j as J, s as K, u as N, w as O, L as P, y as Q, H as S } from "./chunks/color-CiruG_zQ.js";
3
+ export {
4
+ g as DEFAULT_THEME,
5
+ r as bgBlack,
6
+ t as bgBlue,
7
+ i as bgBlueBright,
8
+ h as bgCyan,
9
+ b as bgCyanBright,
10
+ l as bgGray,
11
+ n as bgGreen,
12
+ B as bgGreenBright,
13
+ o as bgMagenta,
14
+ d as bgMagentaBright,
15
+ y as bgRed,
16
+ u as bgRedBright,
17
+ c as bgWhite,
18
+ m as bgWhiteBright,
19
+ w as bgYellow,
20
+ p as bgYellowBright,
21
+ C as black,
22
+ k as blue,
23
+ E as blueBright,
24
+ G as bold,
25
+ M as createAnsiColor,
26
+ T as cyan,
27
+ f as cyanBright,
28
+ v as defineTheme,
29
+ A as dim,
30
+ R as gray,
31
+ x as green,
32
+ D as greenBright,
33
+ F as hidden,
34
+ H as inverse,
35
+ L as italic,
36
+ W as magenta,
37
+ Y as magentaBright,
38
+ j as overline,
39
+ q as red,
40
+ z as redBright,
41
+ I as reset,
42
+ J as strikethrough,
43
+ K as supportsColor,
44
+ N as underline,
45
+ O as white,
46
+ P as whiteBright,
47
+ Q as yellow,
48
+ S as yellowBright
49
+ };