@qodalis/cli-server-jobs 2.1.1 → 2.2.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.
@@ -2223,65 +2223,6 @@ var jobs = (() => {
2223
2223
  const query = entries.map(([k, v]) => `${encodeURIComponent(k)}=${encodeURIComponent(v)}`).join("&");
2224
2224
  return `${url}${url.includes("?") ? "&" : "?"}${query}`;
2225
2225
  }
2226
- function writeColumns(context, rows, formatLeft, formatRight) {
2227
- const width = Math.max(...rows.map(([left]) => left.length)) + 2;
2228
- for (const [left, right] of rows) {
2229
- context.writer.writeln(
2230
- ` ${formatLeft(left.padEnd(width))}${formatRight(right)}`
2231
- );
2232
- }
2233
- }
2234
- function writeUsage(context, rows) {
2235
- const { writer, translator } = context;
2236
- writer.writeln(`\u{1F4CB} ${translator.t("cli.common.usage", "Usage:")}`);
2237
- writeColumns(
2238
- context,
2239
- rows,
2240
- (cmd) => writer.wrapInColor(
2241
- cmd,
2242
- "\x1B[36m"
2243
- /* Cyan */
2244
- ),
2245
- (text) => text
2246
- );
2247
- }
2248
- function writeExamples(context, rows) {
2249
- const { writer, translator } = context;
2250
- writer.writeln(`\u{1F4DD} ${translator.t("cli.common.examples", "Examples:")}`);
2251
- writeColumns(
2252
- context,
2253
- rows,
2254
- (cmd) => cmd,
2255
- (comment) => writer.wrapInColor(
2256
- `# ${comment}`,
2257
- "\x1B[32m"
2258
- /* Green */
2259
- )
2260
- );
2261
- }
2262
- function writeWrapped(context, text, indent = 0) {
2263
- const cols = context.terminal?.cols ?? 80;
2264
- const width = Math.max(20, Math.min(cols - 1, 100) - indent);
2265
- const pad = " ".repeat(indent);
2266
- let line = "";
2267
- for (const word of text.split(/\s+/).filter(Boolean)) {
2268
- if (line && visibleLength2(line) + 1 + visibleLength2(word) > width) {
2269
- context.writer.writeln(pad + line);
2270
- line = word;
2271
- } else {
2272
- line = line ? `${line} ${word}` : word;
2273
- }
2274
- }
2275
- if (line) context.writer.writeln(pad + line);
2276
- }
2277
- function visibleLength2(text) {
2278
- return text.replace(/\x1b\[[0-9;]*m/g, "").length;
2279
- }
2280
- var bootCliModule = async (module2) => {
2281
- if (typeof window !== "undefined" && window.__cliModuleRegistry) {
2282
- await window.__cliModuleRegistry.register(module2);
2283
- }
2284
- };
2285
2226
  var DefaultThemes = {
2286
2227
  default: {
2287
2228
  background: "#070b14",
@@ -2306,6 +2247,29 @@ var jobs = (() => {
2306
2247
  brightCyan: "#a5f3fc",
2307
2248
  brightWhite: "#f1f5f9"
2308
2249
  },
2250
+ light: {
2251
+ background: "#ffffff",
2252
+ foreground: "#1f2937",
2253
+ cursor: "#4f46e5",
2254
+ selectionBackground: "#c7d2fe",
2255
+ selectionForeground: "#111827",
2256
+ black: "#1f2937",
2257
+ red: "#dc2626",
2258
+ green: "#15803d",
2259
+ yellow: "#a16207",
2260
+ blue: "#4f46e5",
2261
+ magenta: "#9333ea",
2262
+ cyan: "#0e7490",
2263
+ white: "#6b7280",
2264
+ brightBlack: "#6b7280",
2265
+ brightRed: "#b91c1c",
2266
+ brightGreen: "#166534",
2267
+ brightYellow: "#854d0e",
2268
+ brightBlue: "#4338ca",
2269
+ brightMagenta: "#7e22ce",
2270
+ brightCyan: "#155e75",
2271
+ brightWhite: "#374151"
2272
+ },
2309
2273
  classic: {
2310
2274
  background: "#0c0c0c",
2311
2275
  foreground: "#cccccc",
@@ -2917,6 +2881,95 @@ var jobs = (() => {
2917
2881
  }
2918
2882
  };
2919
2883
  DefaultThemes.yellow = DefaultThemes.highContrastLight;
2884
+ var CliPanelPalettes = Object.freeze({
2885
+ dark: Object.freeze({
2886
+ background: "#070b14",
2887
+ headerBackground: "#0f1623",
2888
+ border: "#1e293b",
2889
+ text: "#e2e8f0",
2890
+ textSecondary: "#94a3b8",
2891
+ accent: "#818cf8",
2892
+ hoverBackground: "rgba(129, 140, 248, 0.12)",
2893
+ activeBackground: "rgba(129, 140, 248, 0.22)",
2894
+ danger: "#f87171",
2895
+ shadow: "rgba(0, 0, 0, 0.45)"
2896
+ }),
2897
+ light: Object.freeze({
2898
+ background: "#ffffff",
2899
+ headerBackground: "#f8fafc",
2900
+ border: "#e2e8f0",
2901
+ text: "#0f172a",
2902
+ textSecondary: "#64748b",
2903
+ accent: "#4f46e5",
2904
+ hoverBackground: "rgba(79, 70, 229, 0.08)",
2905
+ activeBackground: "rgba(79, 70, 229, 0.14)",
2906
+ danger: "#dc2626",
2907
+ shadow: "rgba(15, 23, 42, 0.14)"
2908
+ })
2909
+ });
2910
+ var PALETTE_TERMINALS = {
2911
+ dark: DefaultThemes.default,
2912
+ light: DefaultThemes.light
2913
+ };
2914
+ function writeColumns(context, rows, formatLeft, formatRight) {
2915
+ const width = Math.max(...rows.map(([left]) => left.length)) + 2;
2916
+ for (const [left, right] of rows) {
2917
+ context.writer.writeln(
2918
+ ` ${formatLeft(left.padEnd(width))}${formatRight(right)}`
2919
+ );
2920
+ }
2921
+ }
2922
+ function writeUsage(context, rows) {
2923
+ const { writer, translator } = context;
2924
+ writer.writeln(`\u{1F4CB} ${translator.t("cli.common.usage", "Usage:")}`);
2925
+ writeColumns(
2926
+ context,
2927
+ rows,
2928
+ (cmd) => writer.wrapInColor(
2929
+ cmd,
2930
+ "\x1B[36m"
2931
+ /* Cyan */
2932
+ ),
2933
+ (text) => text
2934
+ );
2935
+ }
2936
+ function writeExamples(context, rows) {
2937
+ const { writer, translator } = context;
2938
+ writer.writeln(`\u{1F4DD} ${translator.t("cli.common.examples", "Examples:")}`);
2939
+ writeColumns(
2940
+ context,
2941
+ rows,
2942
+ (cmd) => cmd,
2943
+ (comment) => writer.wrapInColor(
2944
+ `# ${comment}`,
2945
+ "\x1B[32m"
2946
+ /* Green */
2947
+ )
2948
+ );
2949
+ }
2950
+ function writeWrapped(context, text, indent = 0) {
2951
+ const cols = context.terminal?.cols ?? 80;
2952
+ const width = Math.max(20, Math.min(cols - 1, 100) - indent);
2953
+ const pad = " ".repeat(indent);
2954
+ let line = "";
2955
+ for (const word of text.split(/\s+/).filter(Boolean)) {
2956
+ if (line && visibleLength2(line) + 1 + visibleLength2(word) > width) {
2957
+ context.writer.writeln(pad + line);
2958
+ line = word;
2959
+ } else {
2960
+ line = line ? `${line} ${word}` : word;
2961
+ }
2962
+ }
2963
+ if (line) context.writer.writeln(pad + line);
2964
+ }
2965
+ function visibleLength2(text) {
2966
+ return text.replace(/\x1b\[[0-9;]*m/g, "").length;
2967
+ }
2968
+ var bootCliModule = async (module2) => {
2969
+ if (typeof window !== "undefined" && window.__cliModuleRegistry) {
2970
+ await window.__cliModuleRegistry.register(module2);
2971
+ }
2972
+ };
2920
2973
  var DefaultThemeInfos = {
2921
2974
  default: {
2922
2975
  theme: DefaultThemes.default,
@@ -2924,6 +2977,12 @@ var jobs = (() => {
2924
2977
  tags: ["built-in"],
2925
2978
  description: "Dark indigo theme with soft pastels"
2926
2979
  },
2980
+ light: {
2981
+ theme: DefaultThemes.light,
2982
+ category: "light",
2983
+ tags: ["built-in"],
2984
+ description: "Light counterpart of the default theme"
2985
+ },
2927
2986
  classic: {
2928
2987
  theme: DefaultThemes.classic,
2929
2988
  category: "dark",