@kaynooo/cli-workspace 0.8.0 → 0.10.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.
package/dist/repos-cli.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env -S bun --no-env-file
1
+ #!/usr/bin/env -S bun --no-env-file --config=/dev/null
2
2
  // @bun
3
3
 
4
4
  // src/repos-cli.ts
@@ -18,7 +18,23 @@ import { parseArgs } from "util";
18
18
 
19
19
  // ../kit/src/format.ts
20
20
  import process7 from "process";
21
-
21
+ // ../../node_modules/.bun/@kaynooo+utils@3.0.0+4c7ddab9986847c5/node_modules/@kaynooo/utils/dist/chunk-rxztfxgv.js
22
+ var N = new Map;
23
+ var Nt = /\s+\S*$/;
24
+ var Y = /\s/;
25
+ function ko(t, e, r = "...") {
26
+ let { suffix: n = "...", includeSuffix: s = false, wordBoundary: o = false } = typeof r === "string" ? { suffix: r } : r;
27
+ if (t.length <= e)
28
+ return t;
29
+ let l = Math.max(0, e), c = t.substring(0, Math.max(0, s ? l - n.length : l));
30
+ if (o && !Y.test(t[c.length] ?? " "))
31
+ c = c.replace(Nt, "") || c;
32
+ if (o)
33
+ c = c.trimEnd();
34
+ return s ? (c + n).slice(0, l) : c + n;
35
+ }
36
+ var be = new Map(["\u20AC", "", "\u201A", "\u0192", "\u201E", "\u2026", "\u2020", "\u2021", "\u02C6", "\u2030", "\u0160", "\u2039", "\u0152", "", "\u017D", "", "", "\u2018", "\u2019", "\u201C", "\u201D", "\u2022", "\u2013", "\u2014", "\u02DC", "\u2122", "\u0161", "\u203A", "\u0153", "", "\u017E", "\u0178"].map((t, e) => [t, 128 + e]).filter(([t]) => t));
37
+ var z = new Map;
22
38
  // ../kit/src/mode.ts
23
39
  import process2 from "process";
24
40
  var MODES = new Set(["terminal", "ci", "agent", "pipe"]);
@@ -43,266 +59,60 @@ function isInteractive(streams = process2) {
43
59
  // ../kit/src/style.ts
44
60
  import process6 from "process";
45
61
 
46
- // ../../node_modules/.bun/@kaynooo+utils@2.31.2+d0769e28dc4dad16/node_modules/@kaynooo/utils/dist/chunk-mtetydvc.js
47
- function x(s) {
48
- let r = s.startsWith("#") ? s.slice(1).toLowerCase() : s.toLowerCase();
49
- if (!/^[a-f0-9]+$/.test(r))
62
+ // ../../node_modules/.bun/@kaynooo+utils@3.0.0+4c7ddab9986847c5/node_modules/@kaynooo/utils/dist/chunk-x450vn3m.js
63
+ var G2 = /^[a-f0-9]+$/i;
64
+ function b(r) {
65
+ let e = r.startsWith("#") ? r.slice(1) : r;
66
+ if (!G2.test(e))
50
67
  return [0, 0, 0];
51
- let t = r.length, n = (c) => Number.parseInt(c, 16);
52
- if (t === 3 || t === 4) {
53
- let c = n(r[0] + r[0]), u = n(r[1] + r[1]), h = n(r[2] + r[2]), g = t === 4 ? n(r[3] + r[3]) : undefined;
54
- return g !== undefined ? [c, u, h, g] : [c, u, h];
55
- }
56
- if (t !== 6 && t !== 8)
57
- throw Error(`Invalid hex color length: ${t}`);
58
- let a = n(r.slice(0, 2)), b = n(r.slice(2, 4)), o = n(r.slice(4, 6)), y = t === 8 ? n(r.slice(6, 8)) : undefined;
59
- if ([a, b, o].some(Number.isNaN) || y !== undefined && Number.isNaN(y))
60
- throw Error(`Invalid hex color value: ${s}`);
61
- return y !== undefined ? [a, b, o, y] : [a, b, o];
62
- }
63
- function A(s) {
64
- let [r, t, n, a] = s;
65
- if (a)
66
- return `#${(r << 24 | t << 16 | n << 8 | Math.round((a ?? 1) * 255)).toString(16).padStart(8, "0").toUpperCase()}`;
67
- return `#${(r << 16 | t << 8 | n).toString(16).padStart(6, "0").toUpperCase()}`;
68
- }
69
- function R(s, r, t) {
70
- s = (s % 360 + 360) % 360, t /= 100;
71
- let n = r * Math.min(t, 1 - t) / 100, a = (b) => {
72
- let o = (b + s / 30) % 12, y = t - n * Math.max(Math.min(o - 3, 9 - o, 1), -1);
73
- return Math.round(255 * y);
74
- };
75
- return [a(0), a(8), a(4)];
76
- }
77
- function k(s) {
78
- let [r, t, n] = s;
79
- r /= 255, t /= 255, n /= 255;
80
- let a = Math.max(r, t, n), b = Math.min(r, t, n), o = 0, y = 0, c = (a + b) / 2;
81
- if (a !== b) {
82
- let u = a - b;
83
- if (y = c > 0 && c < 1 ? u / (1 - Math.abs(2 * c - 1)) : 0, a === r)
84
- o = (t - n) / u + (t < n ? 6 : 0);
85
- else if (a === t)
86
- o = (n - r) / u + 2;
87
- else
88
- o = (r - t) / u + 4;
89
- o /= 6;
90
- }
91
- return [Math.round(o * 360), Math.round(y * 100), Math.round(c * 100)];
92
- }
93
- function H(s, r, t) {
94
- s = (s % 360 + 360) % 360, r /= 100, t /= 100;
95
- let n = (a) => {
96
- let b = (a + s / 60) % 6, o = t - t * r * Math.max(Math.min(b, 4 - b, 1), 0);
97
- return Math.round(255 * o);
98
- };
99
- return [n(5), n(3), n(1)];
100
- }
101
- function f(s) {
102
- let [r, t, n] = s;
103
- r /= 255, t /= 255, n /= 255;
104
- let a = Math.max(r, t, n), b = Math.min(r, t, n), o = a - b, y = 0, c = a === 0 ? 0 : o / a, u = a;
105
- if (o !== 0) {
106
- if (a === r)
107
- y = (t - n) / o + (t < n ? 6 : 0);
108
- else if (a === t)
109
- y = (n - r) / o + 2;
110
- else
111
- y = (r - t) / o + 4;
112
- y /= 6;
113
- }
114
- return [Math.round(y * 360), Math.round(c * 100), Math.round(u * 100)];
115
- }
116
- function O(s) {
117
- let r = s[0] / 255, t = s[1] / 255, n = s[2] / 255, a = 1 - Math.max(r, t, n);
118
- if (a === 1)
119
- return [0, 0, 0, 100];
120
- let b = (1 - r - a) / (1 - a), o = (1 - t - a) / (1 - a), y = (1 - n - a) / (1 - a);
121
- return [Math.round(b * 100), Math.round(o * 100), Math.round(y * 100), Math.round(a * 100)];
122
- }
123
- function v(s, r, t, n) {
124
- return s /= 100, r /= 100, t /= 100, n /= 100, [Math.round(255 * (1 - s) * (1 - n)), Math.round(255 * (1 - r) * (1 - n)), Math.round(255 * (1 - t) * (1 - n))];
125
- }
126
- var m = (s) => s <= 0.04045 ? s / 12.92 : ((s + 0.055) / 1.055) ** 2.4;
127
- var p = (s) => s <= 0.0031308 ? 12.92 * s : 1.055 * s ** 0.4166666666666667 - 0.055;
128
- var i = (s, r) => Math.round(s * 10 ** r) / 10 ** r;
129
- function T(s) {
130
- let r = m(s[0] / 255), t = m(s[1] / 255), n = m(s[2] / 255), a = Math.cbrt(0.4122214708 * r + 0.5363325363 * t + 0.0514459929 * n), b = Math.cbrt(0.2119034982 * r + 0.6806995451 * t + 0.1073969566 * n), o = Math.cbrt(0.0883024619 * r + 0.2817188376 * t + 0.6299787005 * n);
131
- return [i(0.2104542553 * a + 0.793617785 * b - 0.0040720468 * o, 4), i(1.9779984951 * a - 2.428592205 * b + 0.4505937099 * o, 4), i(0.0259040371 * a + 0.7827717662 * b - 0.808675766 * o, 4)];
132
- }
133
- function M(s, r, t) {
134
- let n = (s + 0.3963377774 * r + 0.2158037573 * t) ** 3, a = (s - 0.1055613458 * r - 0.0638541728 * t) ** 3, b = (s - 0.0894841775 * r - 1.291485548 * t) ** 3, o = p(4.0767416621 * n - 3.3077115913 * a + 0.2309699292 * b), y = p(-1.2684380046 * n + 2.6097574011 * a - 0.3413193965 * b), c = p(-0.0041960863 * n - 0.7034186147 * a + 1.707614701 * b), u = (h) => Math.min(255, Math.max(0, Math.round(h * 255)));
135
- return [u(o), u(y), u(c)];
136
- }
137
- function d(s) {
138
- let [r, t, n] = T(s), a = Math.sqrt(t * t + n * n), b = (Math.atan2(n, t) * 180 / Math.PI + 360) % 360;
139
- return [i(r, 4), i(a, 4), i(b, 2)];
140
- }
141
- function C(s, r, t) {
142
- let n = t * Math.PI / 180;
143
- return M(s, r * Math.cos(n), r * Math.sin(n));
144
- }
145
- function l(s) {
146
- let r = s / 255;
147
- return r <= 0.03928 ? r / 12.92 : ((r + 0.055) / 1.055) ** 2.4;
148
- }
149
-
150
- class e {
151
- r;
152
- g;
153
- b;
154
- a;
155
- constructor(s, r, t, n = 1) {
156
- this.r = s, this.g = r, this.b = t, this.a = n;
157
- }
158
- static from(s, r) {
159
- if (s === "hex") {
160
- let [t, n, a, b] = x(r);
161
- return new e(t, n, a, b);
162
- }
163
- if (s === "rgb") {
164
- if (Array.isArray(r)) {
165
- let [o, y, c, u] = r;
166
- return new e(o, y, c, u);
167
- }
168
- let { r: t, g: n, b: a, a: b } = r;
169
- return new e(t, n, a, b);
170
- }
171
- if (s === "hsl") {
172
- let t, n, a, b;
173
- if (Array.isArray(r))
174
- [t, n, a, b] = r;
175
- else
176
- ({ h: t, s: n, l: a, a: b } = r);
177
- let [o, y, c] = R(t, n, a);
178
- return new e(o, y, c, b);
179
- }
180
- if (s === "hsv") {
181
- let t, n, a, b;
182
- if (Array.isArray(r))
183
- [t, n, a, b] = r;
184
- else
185
- ({ h: t, s: n, v: a, a: b } = r);
186
- let [o, y, c] = H(t, n, a);
187
- return new e(o, y, c, b);
188
- }
189
- if (s === "cmyk") {
190
- let t, n, a, b, o;
191
- if (Array.isArray(r))
192
- [t, n, a, b, o] = r;
193
- else
194
- ({ c: t, m: n, y: a, k: b, a: o } = r);
195
- let [y, c, u] = v(t, n, a, b);
196
- return new e(y, c, u, o);
197
- }
198
- if (s === "oklch") {
199
- let t, n, a, b;
200
- if (Array.isArray(r))
201
- [t, n, a, b] = r;
202
- else
203
- ({ l: t, c: n, h: a, a: b } = r);
204
- let [o, y, c] = C(t, n, a);
205
- return new e(o, y, c, b);
206
- }
207
- if (s === "oklab") {
208
- let t, n, a, b;
209
- if (Array.isArray(r))
210
- [t, n, a, b] = r;
211
- else
212
- ({ l: t, a: n, b: a, alpha: b } = r);
213
- let [o, y, c] = M(t, n, a);
214
- return new e(o, y, c, b);
215
- }
216
- throw Error("Invalid input");
217
- }
218
- to(s) {
219
- switch (s) {
220
- case "rgb":
221
- return [this.r, this.g, this.b];
222
- case "rgba":
223
- return [this.r, this.g, this.b, this.a];
224
- case "hex":
225
- return A([this.r, this.g, this.b]);
226
- case "hexa":
227
- return A([this.r, this.g, this.b, this.a]);
228
- case "hsl":
229
- return k([this.r, this.g, this.b]);
230
- case "hsla":
231
- return [...k([this.r, this.g, this.b]), this.a];
232
- case "hsv":
233
- return f([this.r, this.g, this.b]);
234
- case "hsva":
235
- return [...f([this.r, this.g, this.b]), this.a];
236
- case "cmyk":
237
- return O([this.r, this.g, this.b]);
238
- case "cmyka":
239
- return [...O([this.r, this.g, this.b]), this.a];
240
- case "oklch":
241
- return d([this.r, this.g, this.b]);
242
- case "oklcha":
243
- return [...d([this.r, this.g, this.b]), this.a];
244
- case "oklab":
245
- return T([this.r, this.g, this.b]);
246
- case "oklaba":
247
- return [...T([this.r, this.g, this.b]), this.a];
248
- default:
249
- return [this.r, this.g, this.b];
250
- }
251
- }
252
- getLuminance() {
253
- let s = l(this.r), r = l(this.g), t = l(this.b);
254
- return 0.2126 * s + 0.7152 * r + 0.0722 * t;
255
- }
256
- contrastRatio(s) {
257
- let r = this.getLuminance(), t = s.getLuminance(), [n, a] = r >= t ? [r, t] : [t, r];
258
- return (n + 0.05) / (a + 0.05);
259
- }
260
- bestContrastForeground() {
261
- let s = new e(255, 255, 255, 1), r = new e(0, 0, 0, 1), t = this.contrastRatio(s), n = this.contrastRatio(r);
262
- return t >= n ? s : r;
263
- }
264
- }
265
-
266
- // ../../node_modules/.bun/@kaynooo+utils@2.31.2+d0769e28dc4dad16/node_modules/@kaynooo/utils/dist/chunk-y1msbssb.js
267
- var r = 39;
268
- var o = 49;
269
- var f2 = "\x1B[";
270
- var C2 = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, r], red: [31, r], green: [32, r], yellow: [33, r], blue: [34, r], magenta: [35, r], cyan: [36, r], white: [37, r], gray: [90, r], grey: [90, r], blackBright: [90, r], redBright: [91, r], greenBright: [92, r], yellowBright: [93, r], blueBright: [94, r], magentaBright: [95, r], cyanBright: [96, r], whiteBright: [97, r], bgBlack: [40, o], bgRed: [41, o], bgGreen: [42, o], bgYellow: [43, o], bgBlue: [44, o], bgMagenta: [45, o], bgCyan: [46, o], bgWhite: [47, o], bgBlackBright: [100, o], bgRedBright: [101, o], bgGreenBright: [102, o], bgYellowBright: [103, o], bgBlueBright: [104, o], bgMagentaBright: [105, o], bgCyanBright: [106, o], bgWhiteBright: [107, o], rgb: (i, n, a, l = "fg") => [`${l === "fg" ? 38 : 48};2;${i};${n};${a}`, l === "fg" ? r : o], hex: (i, n = "fg") => {
271
- let [a, l, s] = e.from("hex", i).to("rgb");
272
- return [`${n === "fg" ? 38 : 48};2;${a};${l};${s}`, n === "fg" ? r : o];
273
- }, ansi256: (i, n = "fg") => [`${n === "fg" ? 38 : 48};5;${i}`, n === "fg" ? r : o] };
274
- var b = new Set(["", "1", "2", "3", "true"]);
275
- function h(i, n = globalThis.process?.env ?? {}) {
276
- if (n.FORCE_COLOR !== undefined)
277
- return b.has(n.FORCE_COLOR);
278
- if (n.NO_COLOR !== undefined || n.NODE_DISABLE_COLORS !== undefined || n.TERM === "dumb")
68
+ if (e.length === 3 || e.length === 4)
69
+ return [Number.parseInt(e[0] + e[0], 16), Number.parseInt(e[1] + e[1], 16), Number.parseInt(e[2] + e[2], 16)];
70
+ if (e.length !== 6 && e.length !== 8)
71
+ throw Error(`Invalid hex color length: ${e.length}`);
72
+ return [Number.parseInt(e.slice(0, 2), 16), Number.parseInt(e.slice(2, 4), 16), Number.parseInt(e.slice(4, 6), 16)];
73
+ }
74
+ var B2 = { reset: [0, 0], bold: [1, 22], dim: [2, 22], italic: [3, 23], underline: [4, 24], inverse: [7, 27], hidden: [8, 28], strikethrough: [9, 29], black: [30, 39], red: [31, 39], green: [32, 39], yellow: [33, 39], blue: [34, 39], magenta: [35, 39], cyan: [36, 39], white: [37, 39], gray: [90, 39], grey: [90, 39], blackBright: [90, 39], redBright: [91, 39], greenBright: [92, 39], yellowBright: [93, 39], blueBright: [94, 39], magentaBright: [95, 39], cyanBright: [96, 39], whiteBright: [97, 39], bgBlack: [40, 49], bgRed: [41, 49], bgGreen: [42, 49], bgYellow: [43, 49], bgBlue: [44, 49], bgMagenta: [45, 49], bgCyan: [46, 49], bgWhite: [47, 49], bgBlackBright: [100, 49], bgRedBright: [101, 49], bgGreenBright: [102, 49], bgYellowBright: [103, 49], bgBlueBright: [104, 49], bgMagentaBright: [105, 49], bgCyanBright: [106, 49], bgWhiteBright: [107, 49], rgb: (r, e, l, n = "fg") => [`${n === "fg" ? 38 : 48};2;${r};${e};${l}`, n === "fg" ? 39 : 49], hex: (r, e = "fg") => {
75
+ let [l, n, c] = b(r);
76
+ return [`${e === "fg" ? 38 : 48};2;${l};${n};${c}`, e === "fg" ? 39 : 49];
77
+ }, ansi256: (r, e = "fg") => [`${e === "fg" ? 38 : 48};5;${r}`, e === "fg" ? 39 : 49] };
78
+ var h = new Set(["", "1", "2", "3", "true"]);
79
+ function C(r, e = globalThis.process?.env ?? {}) {
80
+ if (e.FORCE_COLOR !== undefined)
81
+ return h.has(e.FORCE_COLOR);
82
+ if (e.NO_COLOR !== undefined || e.NODE_DISABLE_COLORS !== undefined || e.TERM === "dumb")
279
83
  return false;
280
- return i?.isTTY === true;
281
- }
282
- function d2(i, n, a) {
283
- if (!h(a.stream ?? globalThis.process?.stdout, a.env))
284
- return n;
285
- let l = "", s = "";
286
- for (let g = 0, y = i.length;g < y; g++) {
287
- let [c, p] = i[g];
288
- l += `${f2}${c}m`, s = `${f2}${p}m${s}`;
289
- }
290
- return l + n + s;
291
- }
292
- function u(i, n = []) {
293
- return new Proxy((l) => d2(n, l, i), { get(l, s) {
294
- let g = C2[s];
295
- if (Array.isArray(g))
296
- return u(i, [...n, g]);
297
- if (typeof g === "function")
298
- return (...y) => u(i, [...n, g(...y)]);
299
- throw Error(`Unknown style: ${String(s)}`);
84
+ return r?.isTTY === true;
85
+ }
86
+ function f2(r, e = []) {
87
+ let l = "", n = "";
88
+ for (let t = 0, i = e.length;t < i; t++)
89
+ l += `\x1B[${e[t][0]}m`, n = `\x1B[${e[t][1]}m${n}`;
90
+ let c = (t) => C(r.stream ?? globalThis.process?.stdout, r.env) ? l + t + n : t, g = new Map;
91
+ return new Proxy(c, { get(t, i) {
92
+ let a = B2[i];
93
+ if (Array.isArray(a)) {
94
+ let s = g.get(i);
95
+ if (s === undefined)
96
+ s = f2(r, [...e, a]), g.set(i, s);
97
+ return s;
98
+ }
99
+ if (typeof a === "function")
100
+ return (...s) => {
101
+ let y = `${i}:${s.join(",")}`, u = g.get(y);
102
+ if (u === undefined) {
103
+ if (g.size >= 64)
104
+ g.clear();
105
+ u = f2(r, [...e, a(...s)]), g.set(y, u);
106
+ }
107
+ return u;
108
+ };
109
+ throw Error(`Unknown style: ${String(i)}`);
300
110
  } });
301
111
  }
302
- function le(i = {}) {
303
- return u(i);
112
+ function Fe2(r = {}) {
113
+ return f2(r);
304
114
  }
305
- var t = le();
115
+ var o2 = Fe2();
306
116
 
307
117
  // ../kit/src/theme.ts
308
118
  import { existsSync as existsSync3, readFileSync, statSync } from "fs";
@@ -346,19 +156,21 @@ function userConfigReadPath(bin, legacy = [], where = {}) {
346
156
  }
347
157
 
348
158
  // ../kit/src/theme.ts
159
+ var ENDS = new Map;
349
160
  var DEFAULT = {
350
- colors: { accent: "cyan", id: "yellow", path: "blue", label: "dim", value: "bold", ok: "green", warn: "yellow", problem: "red", note: "dim", passed: "green", failed: "red", running: "cyan", queued: "yellow", skipped: "dim" },
351
- glyphs: { ok: "\u2713", warn: "\u25B2", problem: "\u2717", note: "\u203A", passed: "\u2713", failed: "\u2717", running: "\u25CF", queued: "\u25CB", skipped: "-", bar: "\u2501", rule: "\u2500", corner: "\u256D" },
161
+ colors: { accent: "cyan", id: "yellow", path: "blue", label: "dim", value: "bold", ok: "green", warn: "yellow", problem: "red", note: "dim", plan: "magenta", passed: "green", failed: "red", running: "cyan", queued: "yellow", skipped: "dim" },
162
+ glyphs: { ok: "\u2713", warn: "\u25B2", problem: "\u2717", note: "\u203A", plan: "\u25C7", passed: "\u2713", failed: "\u2717", running: "\u25CF", queued: "\u25CB", skipped: "-", bar: "\u2501", rule: "\u2500", corner: "\u256D", open: "\u2022", leaf: "\xB7", guide: "\u2502" },
352
163
  accents: ["cyan", "magenta", "green", "blue", "yellow", "redBright"],
353
- bins: {}
164
+ bins: {},
165
+ gradient: ["#c084fc", "#67e8f9"]
354
166
  };
355
- var BRIGHT = { accent: "cyanBright", id: "yellowBright", path: "blueBright", label: "white", value: "bold whiteBright", ok: "greenBright", warn: "yellowBright", problem: "redBright", note: "white", passed: "greenBright", failed: "redBright", running: "cyanBright", queued: "yellowBright", skipped: "white" };
356
- var MONO = { accent: "bold", id: "bold", path: "underline", label: "dim", value: "bold", ok: "bold", warn: "bold", problem: "bold", note: "dim", passed: "bold", failed: "bold", running: "bold", queued: "dim", skipped: "dim" };
357
- var ASCII = { ok: "+", warn: "!", problem: "x", note: ">", passed: "+", failed: "x", running: "*", queued: "o", skipped: "-", bar: "#", rule: "-", corner: "+" };
167
+ var BRIGHT = { accent: "cyanBright", id: "yellowBright", path: "blueBright", label: "white", value: "bold whiteBright", ok: "greenBright", warn: "yellowBright", problem: "redBright", note: "white", plan: "magentaBright", passed: "greenBright", failed: "redBright", running: "cyanBright", queued: "yellowBright", skipped: "white" };
168
+ var MONO = { accent: "bold", id: "bold", path: "underline", label: "dim", value: "bold", ok: "bold", warn: "bold", problem: "bold", note: "dim", plan: "dim", passed: "bold", failed: "bold", running: "bold", queued: "dim", skipped: "dim" };
169
+ var ASCII = { ok: "+", warn: "!", problem: "x", note: ">", plan: "?", passed: "+", failed: "x", running: "*", queued: "o", skipped: "-", bar: "#", rule: "-", corner: "+", open: "*", leaf: "-", guide: "|" };
358
170
  var PRESETS = {
359
171
  default: {},
360
- "high-contrast": { colors: BRIGHT, accents: ["cyanBright", "magentaBright", "greenBright", "blueBright", "yellowBright", "redBright"] },
361
- mono: { colors: MONO, accents: ["bold"] },
172
+ "high-contrast": { colors: BRIGHT, accents: ["cyanBright", "magentaBright", "greenBright", "blueBright", "yellowBright", "redBright"], gradient: ["#d8b4fe", "#a5f3fc"] },
173
+ mono: { colors: MONO, accents: ["bold"], gradient: undefined },
362
174
  ascii: { glyphs: ASCII }
363
175
  };
364
176
  var STYLES = new Set(["bold", "dim", "italic", "underline", "inverse", "strikethrough", "black", "red", "green", "yellow", "blue", "magenta", "cyan", "white", "gray", "grey", "blackBright", "redBright", "greenBright", "yellowBright", "blueBright", "magentaBright", "cyanBright", "whiteBright"]);
@@ -429,6 +241,8 @@ function applyPreset(theme, name, warn, where) {
429
241
  Object.assign(theme.glyphs, preset.glyphs);
430
242
  if (preset.accents !== undefined)
431
243
  theme.accents = [...preset.accents];
244
+ if (Object.hasOwn(preset, "gradient"))
245
+ theme.gradient = preset.gradient;
432
246
  return name;
433
247
  }
434
248
  function applyFile(theme, file, where, warn) {
@@ -456,6 +270,12 @@ function applyFile(theme, file, where, warn) {
456
270
  theme.accents = [...file.accents];
457
271
  else if (file.accents !== undefined)
458
272
  warn(`${where}: accents must be a non-empty list of colours`);
273
+ if (file.gradient === null)
274
+ theme.gradient = undefined;
275
+ else if (Array.isArray(file.gradient) && file.gradient.length === 2 && file.gradient.every((end) => typeof end === "string" && HEX.test(end)))
276
+ theme.gradient = [file.gradient[0], file.gradient[1]];
277
+ else if (file.gradient !== undefined)
278
+ warn(`${where}: gradient must be two \`#rrggbb\` colours, or null for none`);
459
279
  if (isRecord(file.bins)) {
460
280
  for (const [bin, value] of Object.entries(file.bins)) {
461
281
  if (isColorSpec(value))
@@ -479,7 +299,7 @@ function isPath(chosen) {
479
299
  return chosen.includes("/") || chosen.endsWith(".json");
480
300
  }
481
301
  function loadTheme({ env = process5.env, from = process5.cwd(), home = homedir2(), warn = warnOnce } = {}) {
482
- const theme = { colors: { ...DEFAULT.colors }, glyphs: { ...DEFAULT.glyphs }, accents: [...DEFAULT.accents], bins: Object.create(null) };
302
+ const theme = { colors: { ...DEFAULT.colors }, glyphs: { ...DEFAULT.glyphs }, accents: [...DEFAULT.accents], bins: Object.create(null), gradient: DEFAULT.gradient };
483
303
  const sources = [];
484
304
  const chosen = env.KIT_THEME ?? "";
485
305
  const wanted = chosen === "" ? [userConfigPath("theme", { home, xdg: env.XDG_CONFIG_HOME }), findUp(join3(".kaynooo", "theme.json"), from, endsWalk(home))] : [];
@@ -517,12 +337,12 @@ function activeTheme() {
517
337
  }
518
338
 
519
339
  // ../kit/src/style.ts
520
- var MARK_WORDS = { ok: "ok:", warn: "warning:", problem: "error:", note: "note:" };
340
+ var MARK_WORDS = { ok: "ok:", warn: "warning:", problem: "error:", note: "note:", plan: "would:" };
521
341
  function takesControlCodes(stream, env = process6.env) {
522
342
  return stream.isTTY === true && env.NO_COLOR === undefined && env.NODE_DISABLE_COLORS === undefined && env.TERM !== "dumb" && outputMode(stream, env) === "terminal";
523
343
  }
524
344
  function paint(stream, env = process6.env) {
525
- return le({ stream: { isTTY: takesControlCodes(stream, env) }, env });
345
+ return Fe2({ stream: { isTTY: takesControlCodes(stream, env) }, env });
526
346
  }
527
347
  function marked(mark, text, stream, detail, env = process6.env) {
528
348
  const colors = paint(stream, env);
@@ -600,7 +420,7 @@ function formatAge(date, now = Date.now()) {
600
420
  return seconds < 60 ? "just now" : `${upTo(formatSeconds(seconds), " ")} ago`;
601
421
  }
602
422
  function truncate(text, width) {
603
- return text.length <= width ? text : `${text.slice(0, Math.max(0, width - 1))}\u2026`;
423
+ return ko(text, width, { suffix: "\u2026", includeSuffix: true });
604
424
  }
605
425
  var LINE_BREAKS = /\s*\n\s*/g;
606
426
  var ESCAPE = String.fromCharCode(27);
@@ -1813,7 +1633,7 @@ async function repos(args) {
1813
1633
  return failedPulls > 0 ? 1 : 0;
1814
1634
  }
1815
1635
  const label = role("label", process18.stdout);
1816
- printHeader("repos", basename2(root) || undefined);
1636
+ printHeader("repos", `${basename2(root)} \xB7 ${states.length} ${states.length === 1 ? "repository" : "repositories"}`);
1817
1637
  if (kept.length === 0) {
1818
1638
  console.log(label(`nothing needs attention in ${states.length} repositories`));
1819
1639
  return failedPulls > 0 ? 1 : 0;