ninekit-cli 1.1.0-dev.6 → 1.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.
- package/cli-manifest.json +2 -2
- package/dist/index.js +72 -2
- package/package.json +1 -1
package/cli-manifest.json
CHANGED
package/dist/index.js
CHANGED
|
@@ -64714,7 +64714,7 @@ var package_default;
|
|
|
64714
64714
|
var init_package = __esm(() => {
|
|
64715
64715
|
package_default = {
|
|
64716
64716
|
name: "ninekit-cli",
|
|
64717
|
-
version: "1.
|
|
64717
|
+
version: "1.2.0",
|
|
64718
64718
|
description: "CLI tool for bootstrapping and updating NineKit projects",
|
|
64719
64719
|
type: "module",
|
|
64720
64720
|
repository: {
|
|
@@ -77979,6 +77979,76 @@ var init_ownership_display = __esm(() => {
|
|
|
77979
77979
|
import_picocolors25 = __toESM(require_picocolors(), 1);
|
|
77980
77980
|
});
|
|
77981
77981
|
|
|
77982
|
+
// src/ui/node_modules/picocolors/picocolors.js
|
|
77983
|
+
var require_picocolors2 = __commonJS((exports, module) => {
|
|
77984
|
+
var p2 = process || {};
|
|
77985
|
+
var argv = p2.argv || [];
|
|
77986
|
+
var env3 = p2.env || {};
|
|
77987
|
+
var isColorSupported = !(!!env3.NO_COLOR || argv.includes("--no-color")) && (!!env3.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env3.TERM !== "dumb" || !!env3.CI);
|
|
77988
|
+
var formatter = (open6, close, replace = open6) => (input) => {
|
|
77989
|
+
let string = "" + input, index = string.indexOf(close, open6.length);
|
|
77990
|
+
return ~index ? open6 + replaceClose(string, close, replace, index) + close : open6 + string + close;
|
|
77991
|
+
};
|
|
77992
|
+
var replaceClose = (string, close, replace, index) => {
|
|
77993
|
+
let result = "", cursor = 0;
|
|
77994
|
+
do {
|
|
77995
|
+
result += string.substring(cursor, index) + replace;
|
|
77996
|
+
cursor = index + close.length;
|
|
77997
|
+
index = string.indexOf(close, cursor);
|
|
77998
|
+
} while (~index);
|
|
77999
|
+
return result + string.substring(cursor);
|
|
78000
|
+
};
|
|
78001
|
+
var createColors = (enabled = isColorSupported) => {
|
|
78002
|
+
let f4 = enabled ? formatter : () => String;
|
|
78003
|
+
return {
|
|
78004
|
+
isColorSupported: enabled,
|
|
78005
|
+
reset: f4("\x1B[0m", "\x1B[0m"),
|
|
78006
|
+
bold: f4("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
78007
|
+
dim: f4("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
78008
|
+
italic: f4("\x1B[3m", "\x1B[23m"),
|
|
78009
|
+
underline: f4("\x1B[4m", "\x1B[24m"),
|
|
78010
|
+
inverse: f4("\x1B[7m", "\x1B[27m"),
|
|
78011
|
+
hidden: f4("\x1B[8m", "\x1B[28m"),
|
|
78012
|
+
strikethrough: f4("\x1B[9m", "\x1B[29m"),
|
|
78013
|
+
black: f4("\x1B[30m", "\x1B[39m"),
|
|
78014
|
+
red: f4("\x1B[31m", "\x1B[39m"),
|
|
78015
|
+
green: f4("\x1B[32m", "\x1B[39m"),
|
|
78016
|
+
yellow: f4("\x1B[33m", "\x1B[39m"),
|
|
78017
|
+
blue: f4("\x1B[34m", "\x1B[39m"),
|
|
78018
|
+
magenta: f4("\x1B[35m", "\x1B[39m"),
|
|
78019
|
+
cyan: f4("\x1B[36m", "\x1B[39m"),
|
|
78020
|
+
white: f4("\x1B[37m", "\x1B[39m"),
|
|
78021
|
+
gray: f4("\x1B[90m", "\x1B[39m"),
|
|
78022
|
+
bgBlack: f4("\x1B[40m", "\x1B[49m"),
|
|
78023
|
+
bgRed: f4("\x1B[41m", "\x1B[49m"),
|
|
78024
|
+
bgGreen: f4("\x1B[42m", "\x1B[49m"),
|
|
78025
|
+
bgYellow: f4("\x1B[43m", "\x1B[49m"),
|
|
78026
|
+
bgBlue: f4("\x1B[44m", "\x1B[49m"),
|
|
78027
|
+
bgMagenta: f4("\x1B[45m", "\x1B[49m"),
|
|
78028
|
+
bgCyan: f4("\x1B[46m", "\x1B[49m"),
|
|
78029
|
+
bgWhite: f4("\x1B[47m", "\x1B[49m"),
|
|
78030
|
+
blackBright: f4("\x1B[90m", "\x1B[39m"),
|
|
78031
|
+
redBright: f4("\x1B[91m", "\x1B[39m"),
|
|
78032
|
+
greenBright: f4("\x1B[92m", "\x1B[39m"),
|
|
78033
|
+
yellowBright: f4("\x1B[93m", "\x1B[39m"),
|
|
78034
|
+
blueBright: f4("\x1B[94m", "\x1B[39m"),
|
|
78035
|
+
magentaBright: f4("\x1B[95m", "\x1B[39m"),
|
|
78036
|
+
cyanBright: f4("\x1B[96m", "\x1B[39m"),
|
|
78037
|
+
whiteBright: f4("\x1B[97m", "\x1B[39m"),
|
|
78038
|
+
bgBlackBright: f4("\x1B[100m", "\x1B[49m"),
|
|
78039
|
+
bgRedBright: f4("\x1B[101m", "\x1B[49m"),
|
|
78040
|
+
bgGreenBright: f4("\x1B[102m", "\x1B[49m"),
|
|
78041
|
+
bgYellowBright: f4("\x1B[103m", "\x1B[49m"),
|
|
78042
|
+
bgBlueBright: f4("\x1B[104m", "\x1B[49m"),
|
|
78043
|
+
bgMagentaBright: f4("\x1B[105m", "\x1B[49m"),
|
|
78044
|
+
bgCyanBright: f4("\x1B[106m", "\x1B[49m"),
|
|
78045
|
+
bgWhiteBright: f4("\x1B[107m", "\x1B[49m")
|
|
78046
|
+
};
|
|
78047
|
+
};
|
|
78048
|
+
module.exports = createColors();
|
|
78049
|
+
module.exports.createColors = createColors;
|
|
78050
|
+
});
|
|
78051
|
+
|
|
77982
78052
|
// src/commands/watch/phases/implementation-git-helpers.ts
|
|
77983
78053
|
import { spawn as spawn5 } from "node:child_process";
|
|
77984
78054
|
async function getCurrentBranch2(cwd2) {
|
|
@@ -107220,7 +107290,7 @@ import { basename as basename29, join as join143, resolve as resolve48 } from "n
|
|
|
107220
107290
|
init_logger();
|
|
107221
107291
|
|
|
107222
107292
|
// src/ui/nk-cli-design/tokens.ts
|
|
107223
|
-
var import_picocolors27 = __toESM(
|
|
107293
|
+
var import_picocolors27 = __toESM(require_picocolors2(), 1);
|
|
107224
107294
|
import { homedir as homedir48, platform as platform12 } from "node:os";
|
|
107225
107295
|
import { resolve as resolve47, win32 } from "node:path";
|
|
107226
107296
|
var PANEL_MIN_WIDTH = 60;
|