ninekit-cli 0.0.0-dev.1 → 1.0.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
|
@@ -64309,7 +64309,7 @@ var package_default;
|
|
|
64309
64309
|
var init_package = __esm(() => {
|
|
64310
64310
|
package_default = {
|
|
64311
64311
|
name: "ninekit-cli",
|
|
64312
|
-
version: "
|
|
64312
|
+
version: "1.0.0",
|
|
64313
64313
|
description: "CLI tool for bootstrapping and updating NineKit projects",
|
|
64314
64314
|
type: "module",
|
|
64315
64315
|
repository: {
|
|
@@ -77553,6 +77553,76 @@ var init_ownership_display = __esm(() => {
|
|
|
77553
77553
|
import_picocolors25 = __toESM(require_picocolors(), 1);
|
|
77554
77554
|
});
|
|
77555
77555
|
|
|
77556
|
+
// src/ui/node_modules/picocolors/picocolors.js
|
|
77557
|
+
var require_picocolors2 = __commonJS((exports, module) => {
|
|
77558
|
+
var p2 = process || {};
|
|
77559
|
+
var argv = p2.argv || [];
|
|
77560
|
+
var env3 = p2.env || {};
|
|
77561
|
+
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);
|
|
77562
|
+
var formatter = (open6, close, replace = open6) => (input) => {
|
|
77563
|
+
let string = "" + input, index = string.indexOf(close, open6.length);
|
|
77564
|
+
return ~index ? open6 + replaceClose(string, close, replace, index) + close : open6 + string + close;
|
|
77565
|
+
};
|
|
77566
|
+
var replaceClose = (string, close, replace, index) => {
|
|
77567
|
+
let result = "", cursor = 0;
|
|
77568
|
+
do {
|
|
77569
|
+
result += string.substring(cursor, index) + replace;
|
|
77570
|
+
cursor = index + close.length;
|
|
77571
|
+
index = string.indexOf(close, cursor);
|
|
77572
|
+
} while (~index);
|
|
77573
|
+
return result + string.substring(cursor);
|
|
77574
|
+
};
|
|
77575
|
+
var createColors = (enabled = isColorSupported) => {
|
|
77576
|
+
let f4 = enabled ? formatter : () => String;
|
|
77577
|
+
return {
|
|
77578
|
+
isColorSupported: enabled,
|
|
77579
|
+
reset: f4("\x1B[0m", "\x1B[0m"),
|
|
77580
|
+
bold: f4("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
77581
|
+
dim: f4("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
77582
|
+
italic: f4("\x1B[3m", "\x1B[23m"),
|
|
77583
|
+
underline: f4("\x1B[4m", "\x1B[24m"),
|
|
77584
|
+
inverse: f4("\x1B[7m", "\x1B[27m"),
|
|
77585
|
+
hidden: f4("\x1B[8m", "\x1B[28m"),
|
|
77586
|
+
strikethrough: f4("\x1B[9m", "\x1B[29m"),
|
|
77587
|
+
black: f4("\x1B[30m", "\x1B[39m"),
|
|
77588
|
+
red: f4("\x1B[31m", "\x1B[39m"),
|
|
77589
|
+
green: f4("\x1B[32m", "\x1B[39m"),
|
|
77590
|
+
yellow: f4("\x1B[33m", "\x1B[39m"),
|
|
77591
|
+
blue: f4("\x1B[34m", "\x1B[39m"),
|
|
77592
|
+
magenta: f4("\x1B[35m", "\x1B[39m"),
|
|
77593
|
+
cyan: f4("\x1B[36m", "\x1B[39m"),
|
|
77594
|
+
white: f4("\x1B[37m", "\x1B[39m"),
|
|
77595
|
+
gray: f4("\x1B[90m", "\x1B[39m"),
|
|
77596
|
+
bgBlack: f4("\x1B[40m", "\x1B[49m"),
|
|
77597
|
+
bgRed: f4("\x1B[41m", "\x1B[49m"),
|
|
77598
|
+
bgGreen: f4("\x1B[42m", "\x1B[49m"),
|
|
77599
|
+
bgYellow: f4("\x1B[43m", "\x1B[49m"),
|
|
77600
|
+
bgBlue: f4("\x1B[44m", "\x1B[49m"),
|
|
77601
|
+
bgMagenta: f4("\x1B[45m", "\x1B[49m"),
|
|
77602
|
+
bgCyan: f4("\x1B[46m", "\x1B[49m"),
|
|
77603
|
+
bgWhite: f4("\x1B[47m", "\x1B[49m"),
|
|
77604
|
+
blackBright: f4("\x1B[90m", "\x1B[39m"),
|
|
77605
|
+
redBright: f4("\x1B[91m", "\x1B[39m"),
|
|
77606
|
+
greenBright: f4("\x1B[92m", "\x1B[39m"),
|
|
77607
|
+
yellowBright: f4("\x1B[93m", "\x1B[39m"),
|
|
77608
|
+
blueBright: f4("\x1B[94m", "\x1B[39m"),
|
|
77609
|
+
magentaBright: f4("\x1B[95m", "\x1B[39m"),
|
|
77610
|
+
cyanBright: f4("\x1B[96m", "\x1B[39m"),
|
|
77611
|
+
whiteBright: f4("\x1B[97m", "\x1B[39m"),
|
|
77612
|
+
bgBlackBright: f4("\x1B[100m", "\x1B[49m"),
|
|
77613
|
+
bgRedBright: f4("\x1B[101m", "\x1B[49m"),
|
|
77614
|
+
bgGreenBright: f4("\x1B[102m", "\x1B[49m"),
|
|
77615
|
+
bgYellowBright: f4("\x1B[103m", "\x1B[49m"),
|
|
77616
|
+
bgBlueBright: f4("\x1B[104m", "\x1B[49m"),
|
|
77617
|
+
bgMagentaBright: f4("\x1B[105m", "\x1B[49m"),
|
|
77618
|
+
bgCyanBright: f4("\x1B[106m", "\x1B[49m"),
|
|
77619
|
+
bgWhiteBright: f4("\x1B[107m", "\x1B[49m")
|
|
77620
|
+
};
|
|
77621
|
+
};
|
|
77622
|
+
module.exports = createColors();
|
|
77623
|
+
module.exports.createColors = createColors;
|
|
77624
|
+
});
|
|
77625
|
+
|
|
77556
77626
|
// src/commands/watch/phases/implementation-git-helpers.ts
|
|
77557
77627
|
import { spawn as spawn5 } from "node:child_process";
|
|
77558
77628
|
async function getCurrentBranch2(cwd2) {
|
|
@@ -106418,7 +106488,7 @@ import { basename as basename29, join as join142, resolve as resolve50 } from "n
|
|
|
106418
106488
|
init_logger();
|
|
106419
106489
|
|
|
106420
106490
|
// src/ui/nk-cli-design/tokens.ts
|
|
106421
|
-
var import_picocolors27 = __toESM(
|
|
106491
|
+
var import_picocolors27 = __toESM(require_picocolors2(), 1);
|
|
106422
106492
|
import { homedir as homedir48, platform as platform12 } from "node:os";
|
|
106423
106493
|
import { resolve as resolve49, win32 } from "node:path";
|
|
106424
106494
|
var PANEL_MIN_WIDTH = 60;
|