@chiendt/ack-cli 0.0.0-dev.5 → 1.0.0-dev.2
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/README.md +103 -604
- package/cli-manifest.json +2 -2
- package/dist/index.js +200 -246
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -21465,118 +21465,142 @@ var require_browser = __commonJS((exports, module) => {
|
|
|
21465
21465
|
};
|
|
21466
21466
|
});
|
|
21467
21467
|
|
|
21468
|
-
// node_modules/has-flag/index.js
|
|
21469
|
-
var require_has_flag = __commonJS((exports, module) => {
|
|
21470
|
-
module.exports = (flag, argv = process.argv) => {
|
|
21471
|
-
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
21472
|
-
const position = argv.indexOf(prefix + flag);
|
|
21473
|
-
const terminatorPosition = argv.indexOf("--");
|
|
21474
|
-
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
21475
|
-
};
|
|
21476
|
-
});
|
|
21477
|
-
|
|
21478
21468
|
// node_modules/supports-color/index.js
|
|
21479
|
-
var
|
|
21480
|
-
|
|
21481
|
-
|
|
21482
|
-
|
|
21483
|
-
|
|
21484
|
-
|
|
21485
|
-
|
|
21486
|
-
|
|
21487
|
-
|
|
21488
|
-
|
|
21489
|
-
|
|
21469
|
+
var exports_supports_color = {};
|
|
21470
|
+
__export(exports_supports_color, {
|
|
21471
|
+
default: () => supports_color_default2,
|
|
21472
|
+
createSupportsColor: () => createSupportsColor2
|
|
21473
|
+
});
|
|
21474
|
+
import process10 from "node:process";
|
|
21475
|
+
import os3 from "node:os";
|
|
21476
|
+
import tty2 from "node:tty";
|
|
21477
|
+
function hasFlag2(flag, argv = globalThis.Deno ? globalThis.Deno.args : process10.argv) {
|
|
21478
|
+
const prefix = flag.startsWith("-") ? "" : flag.length === 1 ? "-" : "--";
|
|
21479
|
+
const position = argv.indexOf(prefix + flag);
|
|
21480
|
+
const terminatorPosition = argv.indexOf("--");
|
|
21481
|
+
return position !== -1 && (terminatorPosition === -1 || position < terminatorPosition);
|
|
21482
|
+
}
|
|
21483
|
+
function envForceColor2() {
|
|
21490
21484
|
if ("FORCE_COLOR" in env2) {
|
|
21491
21485
|
if (env2.FORCE_COLOR === "true") {
|
|
21492
|
-
|
|
21493
|
-
} else if (env2.FORCE_COLOR === "false") {
|
|
21494
|
-
forceColor = 0;
|
|
21495
|
-
} else {
|
|
21496
|
-
forceColor = env2.FORCE_COLOR.length === 0 ? 1 : Math.min(parseInt(env2.FORCE_COLOR, 10), 3);
|
|
21497
|
-
}
|
|
21498
|
-
}
|
|
21499
|
-
function translateLevel2(level) {
|
|
21500
|
-
if (level === 0) {
|
|
21501
|
-
return false;
|
|
21486
|
+
return 1;
|
|
21502
21487
|
}
|
|
21503
|
-
|
|
21504
|
-
level,
|
|
21505
|
-
hasBasic: true,
|
|
21506
|
-
has256: level >= 2,
|
|
21507
|
-
has16m: level >= 3
|
|
21508
|
-
};
|
|
21509
|
-
}
|
|
21510
|
-
function supportsColor2(haveStream, streamIsTTY) {
|
|
21511
|
-
if (forceColor === 0) {
|
|
21488
|
+
if (env2.FORCE_COLOR === "false") {
|
|
21512
21489
|
return 0;
|
|
21513
21490
|
}
|
|
21491
|
+
return env2.FORCE_COLOR.length === 0 ? 1 : Math.min(Number.parseInt(env2.FORCE_COLOR, 10), 3);
|
|
21492
|
+
}
|
|
21493
|
+
}
|
|
21494
|
+
function translateLevel2(level) {
|
|
21495
|
+
if (level === 0) {
|
|
21496
|
+
return false;
|
|
21497
|
+
}
|
|
21498
|
+
return {
|
|
21499
|
+
level,
|
|
21500
|
+
hasBasic: true,
|
|
21501
|
+
has256: level >= 2,
|
|
21502
|
+
has16m: level >= 3
|
|
21503
|
+
};
|
|
21504
|
+
}
|
|
21505
|
+
function _supportsColor2(haveStream, { streamIsTTY, sniffFlags = true } = {}) {
|
|
21506
|
+
const noFlagForceColor = envForceColor2();
|
|
21507
|
+
if (noFlagForceColor !== undefined) {
|
|
21508
|
+
flagForceColor2 = noFlagForceColor;
|
|
21509
|
+
}
|
|
21510
|
+
const forceColor = sniffFlags ? flagForceColor2 : noFlagForceColor;
|
|
21511
|
+
if (forceColor === 0) {
|
|
21512
|
+
return 0;
|
|
21513
|
+
}
|
|
21514
|
+
if (sniffFlags) {
|
|
21514
21515
|
if (hasFlag2("color=16m") || hasFlag2("color=full") || hasFlag2("color=truecolor")) {
|
|
21515
21516
|
return 3;
|
|
21516
21517
|
}
|
|
21517
21518
|
if (hasFlag2("color=256")) {
|
|
21518
21519
|
return 2;
|
|
21519
21520
|
}
|
|
21520
|
-
|
|
21521
|
-
|
|
21521
|
+
}
|
|
21522
|
+
if ("TF_BUILD" in env2 && "AGENT_NAME" in env2) {
|
|
21523
|
+
return 1;
|
|
21524
|
+
}
|
|
21525
|
+
if (haveStream && !streamIsTTY && forceColor === undefined) {
|
|
21526
|
+
return 0;
|
|
21527
|
+
}
|
|
21528
|
+
const min = forceColor || 0;
|
|
21529
|
+
if (env2.TERM === "dumb") {
|
|
21530
|
+
return min;
|
|
21531
|
+
}
|
|
21532
|
+
if (process10.platform === "win32") {
|
|
21533
|
+
const osRelease = os3.release().split(".");
|
|
21534
|
+
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
21535
|
+
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
21522
21536
|
}
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
|
|
21537
|
+
return 1;
|
|
21538
|
+
}
|
|
21539
|
+
if ("CI" in env2) {
|
|
21540
|
+
if ("GITHUB_ACTIONS" in env2 || "GITEA_ACTIONS" in env2) {
|
|
21541
|
+
return 3;
|
|
21526
21542
|
}
|
|
21527
|
-
if (
|
|
21528
|
-
const osRelease = os3.release().split(".");
|
|
21529
|
-
if (Number(osRelease[0]) >= 10 && Number(osRelease[2]) >= 10586) {
|
|
21530
|
-
return Number(osRelease[2]) >= 14931 ? 3 : 2;
|
|
21531
|
-
}
|
|
21543
|
+
if (["TRAVIS", "CIRCLECI", "APPVEYOR", "GITLAB_CI", "BUILDKITE", "DRONE"].some((sign) => (sign in env2)) || env2.CI_NAME === "codeship") {
|
|
21532
21544
|
return 1;
|
|
21533
21545
|
}
|
|
21534
|
-
|
|
21535
|
-
|
|
21536
|
-
|
|
21546
|
+
return min;
|
|
21547
|
+
}
|
|
21548
|
+
if ("TEAMCITY_VERSION" in env2) {
|
|
21549
|
+
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
21550
|
+
}
|
|
21551
|
+
if (env2.COLORTERM === "truecolor") {
|
|
21552
|
+
return 3;
|
|
21553
|
+
}
|
|
21554
|
+
if (env2.TERM === "xterm-kitty") {
|
|
21555
|
+
return 3;
|
|
21556
|
+
}
|
|
21557
|
+
if ("TERM_PROGRAM" in env2) {
|
|
21558
|
+
const version = Number.parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
21559
|
+
switch (env2.TERM_PROGRAM) {
|
|
21560
|
+
case "iTerm.app": {
|
|
21561
|
+
return version >= 3 ? 3 : 2;
|
|
21537
21562
|
}
|
|
21538
|
-
|
|
21539
|
-
|
|
21540
|
-
if ("TEAMCITY_VERSION" in env2) {
|
|
21541
|
-
return /^(9\.(0*[1-9]\d*)\.|\d{2,}\.)/.test(env2.TEAMCITY_VERSION) ? 1 : 0;
|
|
21542
|
-
}
|
|
21543
|
-
if (env2.COLORTERM === "truecolor") {
|
|
21544
|
-
return 3;
|
|
21545
|
-
}
|
|
21546
|
-
if ("TERM_PROGRAM" in env2) {
|
|
21547
|
-
const version = parseInt((env2.TERM_PROGRAM_VERSION || "").split(".")[0], 10);
|
|
21548
|
-
switch (env2.TERM_PROGRAM) {
|
|
21549
|
-
case "iTerm.app":
|
|
21550
|
-
return version >= 3 ? 3 : 2;
|
|
21551
|
-
case "Apple_Terminal":
|
|
21552
|
-
return 2;
|
|
21563
|
+
case "Apple_Terminal": {
|
|
21564
|
+
return 2;
|
|
21553
21565
|
}
|
|
21554
21566
|
}
|
|
21555
|
-
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
21556
|
-
return 2;
|
|
21557
|
-
}
|
|
21558
|
-
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
21559
|
-
return 1;
|
|
21560
|
-
}
|
|
21561
|
-
if ("COLORTERM" in env2) {
|
|
21562
|
-
return 1;
|
|
21563
|
-
}
|
|
21564
|
-
return min;
|
|
21565
21567
|
}
|
|
21566
|
-
|
|
21567
|
-
|
|
21568
|
-
return translateLevel2(level);
|
|
21568
|
+
if (/-256(color)?$/i.test(env2.TERM)) {
|
|
21569
|
+
return 2;
|
|
21569
21570
|
}
|
|
21570
|
-
|
|
21571
|
-
|
|
21572
|
-
|
|
21573
|
-
|
|
21571
|
+
if (/^screen|^xterm|^vt100|^vt220|^rxvt|color|ansi|cygwin|linux/i.test(env2.TERM)) {
|
|
21572
|
+
return 1;
|
|
21573
|
+
}
|
|
21574
|
+
if ("COLORTERM" in env2) {
|
|
21575
|
+
return 1;
|
|
21576
|
+
}
|
|
21577
|
+
return min;
|
|
21578
|
+
}
|
|
21579
|
+
function createSupportsColor2(stream, options2 = {}) {
|
|
21580
|
+
const level = _supportsColor2(stream, {
|
|
21581
|
+
streamIsTTY: stream && stream.isTTY,
|
|
21582
|
+
...options2
|
|
21583
|
+
});
|
|
21584
|
+
return translateLevel2(level);
|
|
21585
|
+
}
|
|
21586
|
+
var env2, flagForceColor2, supportsColor2, supports_color_default2;
|
|
21587
|
+
var init_supports_color2 = __esm(() => {
|
|
21588
|
+
({ env: env2 } = process10);
|
|
21589
|
+
if (hasFlag2("no-color") || hasFlag2("no-colors") || hasFlag2("color=false") || hasFlag2("color=never")) {
|
|
21590
|
+
flagForceColor2 = 0;
|
|
21591
|
+
} else if (hasFlag2("color") || hasFlag2("colors") || hasFlag2("color=true") || hasFlag2("color=always")) {
|
|
21592
|
+
flagForceColor2 = 1;
|
|
21593
|
+
}
|
|
21594
|
+
supportsColor2 = {
|
|
21595
|
+
stdout: createSupportsColor2({ isTTY: tty2.isatty(1) }),
|
|
21596
|
+
stderr: createSupportsColor2({ isTTY: tty2.isatty(2) })
|
|
21574
21597
|
};
|
|
21598
|
+
supports_color_default2 = supportsColor2;
|
|
21575
21599
|
});
|
|
21576
21600
|
|
|
21577
21601
|
// node_modules/debug/src/node.js
|
|
21578
21602
|
var require_node = __commonJS((exports, module) => {
|
|
21579
|
-
var
|
|
21603
|
+
var tty3 = __require("tty");
|
|
21580
21604
|
var util3 = __require("util");
|
|
21581
21605
|
exports.init = init;
|
|
21582
21606
|
exports.log = log2;
|
|
@@ -21587,8 +21611,8 @@ var require_node = __commonJS((exports, module) => {
|
|
|
21587
21611
|
exports.destroy = util3.deprecate(() => {}, "Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");
|
|
21588
21612
|
exports.colors = [6, 2, 3, 4, 5, 1];
|
|
21589
21613
|
try {
|
|
21590
|
-
const
|
|
21591
|
-
if (
|
|
21614
|
+
const supportsColor3 = (init_supports_color2(), __toCommonJS(exports_supports_color));
|
|
21615
|
+
if (supportsColor3 && (supportsColor3.stderr || supportsColor3).level >= 2) {
|
|
21592
21616
|
exports.colors = [
|
|
21593
21617
|
20,
|
|
21594
21618
|
21,
|
|
@@ -21689,7 +21713,7 @@ var require_node = __commonJS((exports, module) => {
|
|
|
21689
21713
|
return obj;
|
|
21690
21714
|
}, {});
|
|
21691
21715
|
function useColors() {
|
|
21692
|
-
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) :
|
|
21716
|
+
return "colors" in exports.inspectOpts ? Boolean(exports.inspectOpts.colors) : tty3.isatty(process.stderr.fd);
|
|
21693
21717
|
}
|
|
21694
21718
|
function formatArgs(args) {
|
|
21695
21719
|
const { namespace: name, useColors: useColors2 } = this;
|
|
@@ -39433,7 +39457,7 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
39433
39457
|
module.exports = finalhandler;
|
|
39434
39458
|
function finalhandler(req, res, options2) {
|
|
39435
39459
|
var opts = options2 || {};
|
|
39436
|
-
var
|
|
39460
|
+
var env3 = opts.env || "development";
|
|
39437
39461
|
var onerror = opts.onerror;
|
|
39438
39462
|
return function(err) {
|
|
39439
39463
|
var headers;
|
|
@@ -39450,7 +39474,7 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
39450
39474
|
} else {
|
|
39451
39475
|
headers = getErrorHeaders(err);
|
|
39452
39476
|
}
|
|
39453
|
-
msg = getErrorMessage2(err, status,
|
|
39477
|
+
msg = getErrorMessage2(err, status, env3);
|
|
39454
39478
|
} else {
|
|
39455
39479
|
status = 404;
|
|
39456
39480
|
msg = "Cannot " + req.method + " " + encodeUrl(getResourceName(req));
|
|
@@ -39475,9 +39499,9 @@ var require_finalhandler = __commonJS((exports, module) => {
|
|
|
39475
39499
|
}
|
|
39476
39500
|
return { ...err.headers };
|
|
39477
39501
|
}
|
|
39478
|
-
function getErrorMessage2(err, status,
|
|
39502
|
+
function getErrorMessage2(err, status, env3) {
|
|
39479
39503
|
var msg;
|
|
39480
|
-
if (
|
|
39504
|
+
if (env3 !== "production") {
|
|
39481
39505
|
msg = err.stack;
|
|
39482
39506
|
if (!msg && typeof err.toString === "function") {
|
|
39483
39507
|
msg = err.toString();
|
|
@@ -40952,10 +40976,10 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
40952
40976
|
const keys = [];
|
|
40953
40977
|
let source = "";
|
|
40954
40978
|
let combinations = 0;
|
|
40955
|
-
function
|
|
40979
|
+
function process11(path3) {
|
|
40956
40980
|
if (Array.isArray(path3)) {
|
|
40957
40981
|
for (const p of path3)
|
|
40958
|
-
|
|
40982
|
+
process11(p);
|
|
40959
40983
|
return;
|
|
40960
40984
|
}
|
|
40961
40985
|
const data = typeof path3 === "object" ? path3 : parse2(path3, options2);
|
|
@@ -40969,7 +40993,7 @@ var require_dist2 = __commonJS((exports) => {
|
|
|
40969
40993
|
combinations++;
|
|
40970
40994
|
});
|
|
40971
40995
|
}
|
|
40972
|
-
|
|
40996
|
+
process11(path2);
|
|
40973
40997
|
let pattern = `^(?:${source})`;
|
|
40974
40998
|
if (trailing)
|
|
40975
40999
|
pattern += "(?:" + escape2(delimiter) + "$)?";
|
|
@@ -41819,10 +41843,10 @@ var require_application = __commonJS((exports, module) => {
|
|
|
41819
41843
|
});
|
|
41820
41844
|
};
|
|
41821
41845
|
app.defaultConfiguration = function defaultConfiguration() {
|
|
41822
|
-
var
|
|
41846
|
+
var env3 = "development";
|
|
41823
41847
|
this.enable("x-powered-by");
|
|
41824
41848
|
this.set("etag", "weak");
|
|
41825
|
-
this.set("env",
|
|
41849
|
+
this.set("env", env3);
|
|
41826
41850
|
this.set("query parser", "simple");
|
|
41827
41851
|
this.set("subdomain offset", 2);
|
|
41828
41852
|
this.set("trust proxy", false);
|
|
@@ -41830,7 +41854,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
41830
41854
|
configurable: true,
|
|
41831
41855
|
value: true
|
|
41832
41856
|
});
|
|
41833
|
-
debug("booting in %s mode",
|
|
41857
|
+
debug("booting in %s mode", env3);
|
|
41834
41858
|
this.on("mount", function onmount(parent) {
|
|
41835
41859
|
if (this.settings[trustProxyDefaultSymbol] === true && typeof parent.settings["trust proxy fn"] === "function") {
|
|
41836
41860
|
delete this.settings["trust proxy"];
|
|
@@ -41847,7 +41871,7 @@ var require_application = __commonJS((exports, module) => {
|
|
|
41847
41871
|
this.set("view", View);
|
|
41848
41872
|
this.set("views", resolve9("views"));
|
|
41849
41873
|
this.set("jsonp callback name", "callback");
|
|
41850
|
-
if (
|
|
41874
|
+
if (env3 === "production") {
|
|
41851
41875
|
this.enable("view cache");
|
|
41852
41876
|
}
|
|
41853
41877
|
};
|
|
@@ -44584,7 +44608,7 @@ var require_express = __commonJS((exports, module) => {
|
|
|
44584
44608
|
|
|
44585
44609
|
// node_modules/get-port/index.js
|
|
44586
44610
|
import net from "node:net";
|
|
44587
|
-
import
|
|
44611
|
+
import os4 from "node:os";
|
|
44588
44612
|
async function getPorts(options2) {
|
|
44589
44613
|
let ports;
|
|
44590
44614
|
let exclude = new Set;
|
|
@@ -44647,7 +44671,7 @@ async function getPorts(options2) {
|
|
|
44647
44671
|
throw new Error("No available ports found");
|
|
44648
44672
|
}
|
|
44649
44673
|
var Locked, lockedPorts, releaseOldLockedPortsIntervalMs, reservedPorts, timeout, getLocalHosts = () => {
|
|
44650
|
-
const interfaces =
|
|
44674
|
+
const interfaces = os4.networkInterfaces();
|
|
44651
44675
|
const results = new Set([undefined, "0.0.0.0"]);
|
|
44652
44676
|
for (const _interface of Object.values(interfaces)) {
|
|
44653
44677
|
for (const config of _interface) {
|
|
@@ -44746,14 +44770,14 @@ var init_is_inside_container = __esm(() => {
|
|
|
44746
44770
|
});
|
|
44747
44771
|
|
|
44748
44772
|
// node_modules/is-wsl/index.js
|
|
44749
|
-
import
|
|
44750
|
-
import
|
|
44773
|
+
import process11 from "node:process";
|
|
44774
|
+
import os5 from "node:os";
|
|
44751
44775
|
import fs3 from "node:fs";
|
|
44752
44776
|
var isWsl = () => {
|
|
44753
|
-
if (
|
|
44777
|
+
if (process11.platform !== "linux") {
|
|
44754
44778
|
return false;
|
|
44755
44779
|
}
|
|
44756
|
-
if (
|
|
44780
|
+
if (os5.release().toLowerCase().includes("microsoft")) {
|
|
44757
44781
|
if (isInsideContainer()) {
|
|
44758
44782
|
return false;
|
|
44759
44783
|
}
|
|
@@ -44771,15 +44795,15 @@ var isWsl = () => {
|
|
|
44771
44795
|
}, is_wsl_default;
|
|
44772
44796
|
var init_is_wsl = __esm(() => {
|
|
44773
44797
|
init_is_inside_container();
|
|
44774
|
-
is_wsl_default =
|
|
44798
|
+
is_wsl_default = process11.env.__IS_WSL_TEST__ ? isWsl : isWsl();
|
|
44775
44799
|
});
|
|
44776
44800
|
|
|
44777
44801
|
// node_modules/powershell-utils/index.js
|
|
44778
|
-
import
|
|
44802
|
+
import process12 from "node:process";
|
|
44779
44803
|
import { Buffer as Buffer2 } from "node:buffer";
|
|
44780
44804
|
import { promisify } from "node:util";
|
|
44781
44805
|
import childProcess from "node:child_process";
|
|
44782
|
-
var execFile, powerShellPath = () => `${
|
|
44806
|
+
var execFile, powerShellPath = () => `${process12.env.SYSTEMROOT || process12.env.windir || String.raw`C:\Windows`}\\System32\\WindowsPowerShell\\v1.0\\powershell.exe`, executePowerShell = async (command, options2 = {}) => {
|
|
44783
44807
|
const {
|
|
44784
44808
|
powerShellPath: psPath,
|
|
44785
44809
|
...execFileOptions
|
|
@@ -44909,10 +44933,10 @@ function defineLazyProperty(object, propertyName, valueGetter) {
|
|
|
44909
44933
|
|
|
44910
44934
|
// node_modules/default-browser-id/index.js
|
|
44911
44935
|
import { promisify as promisify3 } from "node:util";
|
|
44912
|
-
import
|
|
44936
|
+
import process13 from "node:process";
|
|
44913
44937
|
import { execFile as execFile3 } from "node:child_process";
|
|
44914
44938
|
async function defaultBrowserId() {
|
|
44915
|
-
if (
|
|
44939
|
+
if (process13.platform !== "darwin") {
|
|
44916
44940
|
throw new Error("macOS only");
|
|
44917
44941
|
}
|
|
44918
44942
|
const { stdout } = await execFileAsync("defaults", ["read", "com.apple.LaunchServices/com.apple.launchservices.secure", "LSHandlers"]);
|
|
@@ -44929,11 +44953,11 @@ var init_default_browser_id = __esm(() => {
|
|
|
44929
44953
|
});
|
|
44930
44954
|
|
|
44931
44955
|
// node_modules/run-applescript/index.js
|
|
44932
|
-
import
|
|
44956
|
+
import process14 from "node:process";
|
|
44933
44957
|
import { promisify as promisify4 } from "node:util";
|
|
44934
44958
|
import { execFile as execFile4, execFileSync as execFileSync2 } from "node:child_process";
|
|
44935
44959
|
async function runAppleScript(script, { humanReadableOutput = true, signal } = {}) {
|
|
44936
|
-
if (
|
|
44960
|
+
if (process14.platform !== "darwin") {
|
|
44937
44961
|
throw new Error("macOS only");
|
|
44938
44962
|
}
|
|
44939
44963
|
const outputArguments = humanReadableOutput ? [] : ["-ss"];
|
|
@@ -45007,21 +45031,21 @@ var init_windows = __esm(() => {
|
|
|
45007
45031
|
|
|
45008
45032
|
// node_modules/default-browser/index.js
|
|
45009
45033
|
import { promisify as promisify6 } from "node:util";
|
|
45010
|
-
import
|
|
45034
|
+
import process15 from "node:process";
|
|
45011
45035
|
import { execFile as execFile6 } from "node:child_process";
|
|
45012
45036
|
async function defaultBrowser2() {
|
|
45013
|
-
if (
|
|
45037
|
+
if (process15.platform === "darwin") {
|
|
45014
45038
|
const id = await defaultBrowserId();
|
|
45015
45039
|
const name = await bundleName(id);
|
|
45016
45040
|
return { name, id };
|
|
45017
45041
|
}
|
|
45018
|
-
if (
|
|
45042
|
+
if (process15.platform === "linux") {
|
|
45019
45043
|
const { stdout } = await execFileAsync4("xdg-mime", ["query", "default", "x-scheme-handler/http"]);
|
|
45020
45044
|
const id = stdout.trim();
|
|
45021
45045
|
const name = titleize(id.replace(/.desktop$/, "").replace("-", " "));
|
|
45022
45046
|
return { name, id };
|
|
45023
45047
|
}
|
|
45024
|
-
if (
|
|
45048
|
+
if (process15.platform === "win32") {
|
|
45025
45049
|
return defaultBrowser();
|
|
45026
45050
|
}
|
|
45027
45051
|
throw new Error("Only macOS, Linux, and Windows are supported");
|
|
@@ -45036,10 +45060,10 @@ var init_default_browser = __esm(() => {
|
|
|
45036
45060
|
});
|
|
45037
45061
|
|
|
45038
45062
|
// node_modules/is-in-ssh/index.js
|
|
45039
|
-
import
|
|
45063
|
+
import process16 from "node:process";
|
|
45040
45064
|
var isInSsh, is_in_ssh_default;
|
|
45041
45065
|
var init_is_in_ssh = __esm(() => {
|
|
45042
|
-
isInSsh = Boolean(
|
|
45066
|
+
isInSsh = Boolean(process16.env.SSH_CONNECTION || process16.env.SSH_CLIENT || process16.env.SSH_TTY);
|
|
45043
45067
|
is_in_ssh_default = isInSsh;
|
|
45044
45068
|
});
|
|
45045
45069
|
|
|
@@ -45050,7 +45074,7 @@ __export(exports_open, {
|
|
|
45050
45074
|
default: () => open_default,
|
|
45051
45075
|
apps: () => apps
|
|
45052
45076
|
});
|
|
45053
|
-
import
|
|
45077
|
+
import process17 from "node:process";
|
|
45054
45078
|
import path2 from "node:path";
|
|
45055
45079
|
import { fileURLToPath } from "node:url";
|
|
45056
45080
|
import childProcess3 from "node:child_process";
|
|
@@ -45221,7 +45245,7 @@ var fallbackAttemptSymbol, __dirname2, localXdgOpenPath, platform3, arch, tryEac
|
|
|
45221
45245
|
await fs5.access(localXdgOpenPath, fsConstants2.X_OK);
|
|
45222
45246
|
exeLocalXdgOpen = true;
|
|
45223
45247
|
} catch {}
|
|
45224
|
-
const useSystemXdgOpen =
|
|
45248
|
+
const useSystemXdgOpen = process17.versions.electron ?? (platform3 === "android" || isBundled || !exeLocalXdgOpen);
|
|
45225
45249
|
command = useSystemXdgOpen ? "xdg-open" : localXdgOpenPath;
|
|
45226
45250
|
}
|
|
45227
45251
|
if (appArguments.length > 0) {
|
|
@@ -45308,7 +45332,7 @@ var init_open = __esm(() => {
|
|
|
45308
45332
|
fallbackAttemptSymbol = Symbol("fallbackAttempt");
|
|
45309
45333
|
__dirname2 = import.meta.url ? path2.dirname(fileURLToPath(import.meta.url)) : "";
|
|
45310
45334
|
localXdgOpenPath = path2.join(__dirname2, "xdg-open");
|
|
45311
|
-
({ platform: platform3, arch } =
|
|
45335
|
+
({ platform: platform3, arch } = process17);
|
|
45312
45336
|
apps = {
|
|
45313
45337
|
browser: "browser",
|
|
45314
45338
|
browserPrivate: "browserPrivate"
|
|
@@ -45815,7 +45839,7 @@ function getCliVersion2() {
|
|
|
45815
45839
|
function getCliUserAgent() {
|
|
45816
45840
|
return `${ACK_CLI_NPM_PACKAGE_NAME}/${getCliVersion2()}`;
|
|
45817
45841
|
}
|
|
45818
|
-
var ACK_CLI_NPM_PACKAGE_NAME = "@
|
|
45842
|
+
var ACK_CLI_NPM_PACKAGE_NAME = "@chiendt/ack-cli", ACK_CLI_NPM_PACKAGE_URL, ACK_CLI_GLOBAL_INSTALL_COMMAND, ACK_CLI_INSTALL_COMMANDS, DEFAULT_NETWORK_TIMEOUT_MS = 3000;
|
|
45819
45843
|
var init_ack_constants = __esm(() => {
|
|
45820
45844
|
ACK_CLI_NPM_PACKAGE_URL = `https://www.npmjs.com/package/${ACK_CLI_NPM_PACKAGE_NAME}`;
|
|
45821
45845
|
ACK_CLI_GLOBAL_INSTALL_COMMAND = `npm install -g ${ACK_CLI_NPM_PACKAGE_NAME}`;
|
|
@@ -62108,10 +62132,10 @@ var init_skill_search_index = __esm(() => {
|
|
|
62108
62132
|
|
|
62109
62133
|
// src/domains/web-server/routes/skill-browser-routes.ts
|
|
62110
62134
|
import * as fs6 from "node:fs/promises";
|
|
62111
|
-
import * as
|
|
62135
|
+
import * as os6 from "node:os";
|
|
62112
62136
|
import * as path5 from "node:path";
|
|
62113
62137
|
function getSkillsDir() {
|
|
62114
|
-
return path5.join(
|
|
62138
|
+
return path5.join(os6.homedir(), ".claude", "skills");
|
|
62115
62139
|
}
|
|
62116
62140
|
function isValidSkillName(name) {
|
|
62117
62141
|
return /^[a-zA-Z0-9_-]+$/.test(name) && !name.includes("..") && !name.includes("/");
|
|
@@ -63667,8 +63691,8 @@ var init_package_manager_detector = __esm(() => {
|
|
|
63667
63691
|
var package_default;
|
|
63668
63692
|
var init_package = __esm(() => {
|
|
63669
63693
|
package_default = {
|
|
63670
|
-
name: "@
|
|
63671
|
-
version: "
|
|
63694
|
+
name: "@chiendt/ack-cli",
|
|
63695
|
+
version: "1.0.0-dev.2",
|
|
63672
63696
|
description: "ACK CLI - tool for bootstrapping and updating ACK kits (Claude Code agent kits)",
|
|
63673
63697
|
type: "module",
|
|
63674
63698
|
repository: {
|
|
@@ -76351,76 +76375,6 @@ var init_ownership_display = __esm(() => {
|
|
|
76351
76375
|
import_picocolors25 = __toESM(require_picocolors(), 1);
|
|
76352
76376
|
});
|
|
76353
76377
|
|
|
76354
|
-
// src/ui/node_modules/picocolors/picocolors.js
|
|
76355
|
-
var require_picocolors2 = __commonJS((exports, module) => {
|
|
76356
|
-
var p2 = process || {};
|
|
76357
|
-
var argv = p2.argv || [];
|
|
76358
|
-
var env2 = p2.env || {};
|
|
76359
|
-
var isColorSupported = !(!!env2.NO_COLOR || argv.includes("--no-color")) && (!!env2.FORCE_COLOR || argv.includes("--color") || p2.platform === "win32" || (p2.stdout || {}).isTTY && env2.TERM !== "dumb" || !!env2.CI);
|
|
76360
|
-
var formatter = (open6, close, replace = open6) => (input) => {
|
|
76361
|
-
let string = "" + input, index = string.indexOf(close, open6.length);
|
|
76362
|
-
return ~index ? open6 + replaceClose(string, close, replace, index) + close : open6 + string + close;
|
|
76363
|
-
};
|
|
76364
|
-
var replaceClose = (string, close, replace, index) => {
|
|
76365
|
-
let result = "", cursor = 0;
|
|
76366
|
-
do {
|
|
76367
|
-
result += string.substring(cursor, index) + replace;
|
|
76368
|
-
cursor = index + close.length;
|
|
76369
|
-
index = string.indexOf(close, cursor);
|
|
76370
|
-
} while (~index);
|
|
76371
|
-
return result + string.substring(cursor);
|
|
76372
|
-
};
|
|
76373
|
-
var createColors = (enabled = isColorSupported) => {
|
|
76374
|
-
let f4 = enabled ? formatter : () => String;
|
|
76375
|
-
return {
|
|
76376
|
-
isColorSupported: enabled,
|
|
76377
|
-
reset: f4("\x1B[0m", "\x1B[0m"),
|
|
76378
|
-
bold: f4("\x1B[1m", "\x1B[22m", "\x1B[22m\x1B[1m"),
|
|
76379
|
-
dim: f4("\x1B[2m", "\x1B[22m", "\x1B[22m\x1B[2m"),
|
|
76380
|
-
italic: f4("\x1B[3m", "\x1B[23m"),
|
|
76381
|
-
underline: f4("\x1B[4m", "\x1B[24m"),
|
|
76382
|
-
inverse: f4("\x1B[7m", "\x1B[27m"),
|
|
76383
|
-
hidden: f4("\x1B[8m", "\x1B[28m"),
|
|
76384
|
-
strikethrough: f4("\x1B[9m", "\x1B[29m"),
|
|
76385
|
-
black: f4("\x1B[30m", "\x1B[39m"),
|
|
76386
|
-
red: f4("\x1B[31m", "\x1B[39m"),
|
|
76387
|
-
green: f4("\x1B[32m", "\x1B[39m"),
|
|
76388
|
-
yellow: f4("\x1B[33m", "\x1B[39m"),
|
|
76389
|
-
blue: f4("\x1B[34m", "\x1B[39m"),
|
|
76390
|
-
magenta: f4("\x1B[35m", "\x1B[39m"),
|
|
76391
|
-
cyan: f4("\x1B[36m", "\x1B[39m"),
|
|
76392
|
-
white: f4("\x1B[37m", "\x1B[39m"),
|
|
76393
|
-
gray: f4("\x1B[90m", "\x1B[39m"),
|
|
76394
|
-
bgBlack: f4("\x1B[40m", "\x1B[49m"),
|
|
76395
|
-
bgRed: f4("\x1B[41m", "\x1B[49m"),
|
|
76396
|
-
bgGreen: f4("\x1B[42m", "\x1B[49m"),
|
|
76397
|
-
bgYellow: f4("\x1B[43m", "\x1B[49m"),
|
|
76398
|
-
bgBlue: f4("\x1B[44m", "\x1B[49m"),
|
|
76399
|
-
bgMagenta: f4("\x1B[45m", "\x1B[49m"),
|
|
76400
|
-
bgCyan: f4("\x1B[46m", "\x1B[49m"),
|
|
76401
|
-
bgWhite: f4("\x1B[47m", "\x1B[49m"),
|
|
76402
|
-
blackBright: f4("\x1B[90m", "\x1B[39m"),
|
|
76403
|
-
redBright: f4("\x1B[91m", "\x1B[39m"),
|
|
76404
|
-
greenBright: f4("\x1B[92m", "\x1B[39m"),
|
|
76405
|
-
yellowBright: f4("\x1B[93m", "\x1B[39m"),
|
|
76406
|
-
blueBright: f4("\x1B[94m", "\x1B[39m"),
|
|
76407
|
-
magentaBright: f4("\x1B[95m", "\x1B[39m"),
|
|
76408
|
-
cyanBright: f4("\x1B[96m", "\x1B[39m"),
|
|
76409
|
-
whiteBright: f4("\x1B[97m", "\x1B[39m"),
|
|
76410
|
-
bgBlackBright: f4("\x1B[100m", "\x1B[49m"),
|
|
76411
|
-
bgRedBright: f4("\x1B[101m", "\x1B[49m"),
|
|
76412
|
-
bgGreenBright: f4("\x1B[102m", "\x1B[49m"),
|
|
76413
|
-
bgYellowBright: f4("\x1B[103m", "\x1B[49m"),
|
|
76414
|
-
bgBlueBright: f4("\x1B[104m", "\x1B[49m"),
|
|
76415
|
-
bgMagentaBright: f4("\x1B[105m", "\x1B[49m"),
|
|
76416
|
-
bgCyanBright: f4("\x1B[106m", "\x1B[49m"),
|
|
76417
|
-
bgWhiteBright: f4("\x1B[107m", "\x1B[49m")
|
|
76418
|
-
};
|
|
76419
|
-
};
|
|
76420
|
-
module.exports = createColors();
|
|
76421
|
-
module.exports.createColors = createColors;
|
|
76422
|
-
});
|
|
76423
|
-
|
|
76424
76378
|
// src/commands/watch/phases/implementation-git-helpers.ts
|
|
76425
76379
|
import { spawn as spawn5 } from "node:child_process";
|
|
76426
76380
|
async function getCurrentBranch2(cwd2) {
|
|
@@ -78681,11 +78635,11 @@ async function autoInstallFbcli(contentLogger) {
|
|
|
78681
78635
|
const { platform: platform14, arch: arch3 } = process;
|
|
78682
78636
|
const osMap = { darwin: "darwin", linux: "linux", win32: "windows" };
|
|
78683
78637
|
const archMap = { arm64: "arm64", x64: "amd64" };
|
|
78684
|
-
const
|
|
78638
|
+
const os9 = osMap[platform14];
|
|
78685
78639
|
const cpu = archMap[arch3];
|
|
78686
|
-
if (
|
|
78640
|
+
if (os9 && cpu) {
|
|
78687
78641
|
const ext2 = platform14 === "win32" ? ".exe" : "";
|
|
78688
|
-
const url = `https://github.com/mrgoonie/fbcli/releases/latest/download/fbcli_${
|
|
78642
|
+
const url = `https://github.com/mrgoonie/fbcli/releases/latest/download/fbcli_${os9}_${cpu}${ext2}`;
|
|
78689
78643
|
const dest = platform14 === "win32" ? "fbcli.exe" : "/usr/local/bin/fbcli";
|
|
78690
78644
|
f2.warning(`Will download fbcli binary from: ${url}`);
|
|
78691
78645
|
f2.warning("Note: Binary integrity is not verified. Review the source at https://github.com/mrgoonie/fbcli");
|
|
@@ -78694,7 +78648,7 @@ async function autoInstallFbcli(contentLogger) {
|
|
|
78694
78648
|
contentLogger.info("User declined fbcli binary download");
|
|
78695
78649
|
return false;
|
|
78696
78650
|
}
|
|
78697
|
-
f2.info(`Downloading fbcli binary for ${
|
|
78651
|
+
f2.info(`Downloading fbcli binary for ${os9}/${cpu}...`);
|
|
78698
78652
|
execSync13(`curl -fsSL "${url}" -o "${dest}" && chmod +x "${dest}"`, {
|
|
78699
78653
|
stdio: "inherit",
|
|
78700
78654
|
timeout: 60000
|
|
@@ -78773,13 +78727,13 @@ async function autoInstallXurl(contentLogger) {
|
|
|
78773
78727
|
const { platform: platform14, arch: arch3 } = process;
|
|
78774
78728
|
const osMap = { darwin: "darwin", linux: "linux", win32: "windows" };
|
|
78775
78729
|
const archMap = { arm64: "arm64", x64: "amd64" };
|
|
78776
|
-
const
|
|
78730
|
+
const os9 = osMap[platform14];
|
|
78777
78731
|
const cpu = archMap[arch3];
|
|
78778
|
-
if (
|
|
78732
|
+
if (os9 && cpu) {
|
|
78779
78733
|
const ext2 = platform14 === "win32" ? ".exe" : "";
|
|
78780
|
-
const url = `https://github.com/xdevplatform/xurl/releases/latest/download/xurl_${
|
|
78734
|
+
const url = `https://github.com/xdevplatform/xurl/releases/latest/download/xurl_${os9}_${cpu}${ext2}`;
|
|
78781
78735
|
const dest = platform14 === "win32" ? "xurl.exe" : "/usr/local/bin/xurl";
|
|
78782
|
-
f2.info(`Downloading xurl binary for ${
|
|
78736
|
+
f2.info(`Downloading xurl binary for ${os9}/${cpu}...`);
|
|
78783
78737
|
execSync14(`curl -fsSL "${url}" -o "${dest}" && chmod +x "${dest}"`, {
|
|
78784
78738
|
stdio: "inherit",
|
|
78785
78739
|
timeout: 60000
|
|
@@ -88177,16 +88131,16 @@ async function checkRequiredKeysExist(envPath) {
|
|
|
88177
88131
|
configuredProviders: []
|
|
88178
88132
|
};
|
|
88179
88133
|
}
|
|
88180
|
-
const
|
|
88181
|
-
const configuredProviders = getConfiguredImageProviders(
|
|
88134
|
+
const env3 = await parseEnvFile(envPath);
|
|
88135
|
+
const configuredProviders = getConfiguredImageProviders(env3);
|
|
88182
88136
|
const missing = [];
|
|
88183
88137
|
for (const required of REQUIRED_ENV_KEYS) {
|
|
88184
88138
|
const candidateKeys = required.alternativeKeys ?? [required.key];
|
|
88185
88139
|
const hasConfiguredValue = candidateKeys.some((candidateKey) => {
|
|
88186
88140
|
if (isImageProviderEnvKey(candidateKey)) {
|
|
88187
|
-
return hasValidImageProviderValue(candidateKey,
|
|
88141
|
+
return hasValidImageProviderValue(candidateKey, env3[candidateKey]);
|
|
88188
88142
|
}
|
|
88189
|
-
const value =
|
|
88143
|
+
const value = env3[candidateKey];
|
|
88190
88144
|
return !!value && value.trim() !== "";
|
|
88191
88145
|
});
|
|
88192
88146
|
if (!hasConfiguredValue) {
|
|
@@ -88200,8 +88154,8 @@ async function checkRequiredKeysExist(envPath) {
|
|
|
88200
88154
|
configuredProviders
|
|
88201
88155
|
};
|
|
88202
88156
|
}
|
|
88203
|
-
function getConfiguredImageProviders(
|
|
88204
|
-
return IMAGE_PROVIDER_ENV_KEYS.filter((key) => hasValidImageProviderValue(key,
|
|
88157
|
+
function getConfiguredImageProviders(env3) {
|
|
88158
|
+
return IMAGE_PROVIDER_ENV_KEYS.filter((key) => hasValidImageProviderValue(key, env3[key])).map((key) => IMAGE_PROVIDER_KEY_MAP[key]);
|
|
88205
88159
|
}
|
|
88206
88160
|
function getDefaultImageProviderSelection(configuredProviders, existingPreference) {
|
|
88207
88161
|
if (existingPreference && validateApiKey2(existingPreference, VALIDATION_PATTERNS.IMAGE_GEN_PROVIDER)) {
|
|
@@ -88257,7 +88211,7 @@ var ESSENTIAL_CONFIGS = [
|
|
|
88257
88211
|
async function parseEnvFile(path6) {
|
|
88258
88212
|
try {
|
|
88259
88213
|
const content = await import_fs_extra9.readFile(path6, "utf-8");
|
|
88260
|
-
const
|
|
88214
|
+
const env3 = {};
|
|
88261
88215
|
for (const line of content.split(`
|
|
88262
88216
|
`)) {
|
|
88263
88217
|
let trimmed = line.trim();
|
|
@@ -88272,10 +88226,10 @@ async function parseEnvFile(path6) {
|
|
|
88272
88226
|
if (value.startsWith('"') && value.endsWith('"') || value.startsWith("'") && value.endsWith("'")) {
|
|
88273
88227
|
value = value.slice(1, -1);
|
|
88274
88228
|
}
|
|
88275
|
-
|
|
88229
|
+
env3[key.trim()] = value.trim();
|
|
88276
88230
|
}
|
|
88277
88231
|
}
|
|
88278
|
-
return
|
|
88232
|
+
return env3;
|
|
88279
88233
|
} catch (error) {
|
|
88280
88234
|
logger.debug(`Failed to parse .env file at ${path6}: ${error}`);
|
|
88281
88235
|
return {};
|
|
@@ -88285,8 +88239,8 @@ async function checkGlobalConfig() {
|
|
|
88285
88239
|
const globalEnvPath = join82(PathResolver.getGlobalKitDir(), ".env");
|
|
88286
88240
|
if (!await import_fs_extra9.pathExists(globalEnvPath))
|
|
88287
88241
|
return false;
|
|
88288
|
-
const
|
|
88289
|
-
return Object.keys(
|
|
88242
|
+
const env3 = await parseEnvFile(globalEnvPath);
|
|
88243
|
+
return Object.keys(env3).length > 0;
|
|
88290
88244
|
}
|
|
88291
88245
|
async function runSetupWizard(options2) {
|
|
88292
88246
|
const { targetDir, isGlobal } = options2;
|
|
@@ -88629,7 +88583,7 @@ import { spawnSync as spawnSync5 } from "node:child_process";
|
|
|
88629
88583
|
init_logger();
|
|
88630
88584
|
import { execSync as execSync3 } from "node:child_process";
|
|
88631
88585
|
import * as fs8 from "node:fs";
|
|
88632
|
-
import * as
|
|
88586
|
+
import * as os7 from "node:os";
|
|
88633
88587
|
import * as path6 from "node:path";
|
|
88634
88588
|
var VALID_TAG_PATTERN = /^[a-zA-Z0-9._+\-]+$/;
|
|
88635
88589
|
|
|
@@ -88637,7 +88591,7 @@ class GitCloneManager {
|
|
|
88637
88591
|
tempBaseDir;
|
|
88638
88592
|
constructor() {
|
|
88639
88593
|
const homeDir = process.env.HOME || process.env.USERPROFILE;
|
|
88640
|
-
this.tempBaseDir = process.env.TMPDIR || process.env.TEMP || process.env.TMP || (homeDir ? path6.join(homeDir, ".ack", "tmp") : null) || path6.join(
|
|
88594
|
+
this.tempBaseDir = process.env.TMPDIR || process.env.TEMP || process.env.TMP || (homeDir ? path6.join(homeDir, ".ack", "tmp") : null) || path6.join(os7.tmpdir(), ".ack", "tmp");
|
|
88641
88595
|
}
|
|
88642
88596
|
validateTag(tag) {
|
|
88643
88597
|
if (!VALID_TAG_PATTERN.test(tag)) {
|
|
@@ -88975,10 +88929,10 @@ function shouldSkipExpensiveOperations4() {
|
|
|
88975
88929
|
return shouldSkipExpensiveOperations();
|
|
88976
88930
|
}
|
|
88977
88931
|
async function checkPlatformDetect() {
|
|
88978
|
-
const
|
|
88932
|
+
const os8 = platform7();
|
|
88979
88933
|
const architecture = arch2();
|
|
88980
88934
|
const wslDistro = process.env.WSL_DISTRO_NAME;
|
|
88981
|
-
let message = `${
|
|
88935
|
+
let message = `${os8} (${architecture})`;
|
|
88982
88936
|
if (wslDistro)
|
|
88983
88937
|
message += ` - WSL: ${wslDistro}`;
|
|
88984
88938
|
return {
|
|
@@ -94972,7 +94926,7 @@ var kt = Symbol("process");
|
|
|
94972
94926
|
var Ee = Symbol("processing");
|
|
94973
94927
|
var hi = Symbol("processJob");
|
|
94974
94928
|
var G2 = Symbol("jobs");
|
|
94975
|
-
var
|
|
94929
|
+
var os8 = Symbol("jobDone");
|
|
94976
94930
|
var li = Symbol("addFSEntry");
|
|
94977
94931
|
var ir = Symbol("addTarEntry");
|
|
94978
94932
|
var ls = Symbol("stat");
|
|
@@ -95044,7 +94998,7 @@ var wt = class extends A3 {
|
|
|
95044
94998
|
t.resume();
|
|
95045
94999
|
else {
|
|
95046
95000
|
let i = new mi(t.path, e2);
|
|
95047
|
-
i.entry = new ni(t, this[hs](i)), i.entry.on("end", () => this[
|
|
95001
|
+
i.entry = new ni(t, this[hs](i)), i.entry.on("end", () => this[os8](i)), this[G2] += 1, this[W2].push(i);
|
|
95048
95002
|
}
|
|
95049
95003
|
this[kt]();
|
|
95050
95004
|
}
|
|
@@ -95095,7 +95049,7 @@ var wt = class extends A3 {
|
|
|
95095
95049
|
get [Et]() {
|
|
95096
95050
|
return this[W2] && this[W2].head && this[W2].head.value;
|
|
95097
95051
|
}
|
|
95098
|
-
[
|
|
95052
|
+
[os8](t) {
|
|
95099
95053
|
this[W2].shift(), this[G2] -= 1;
|
|
95100
95054
|
let { stat: e2 } = t;
|
|
95101
95055
|
if (e2 && e2.isFile() && e2.nlink > 1) {
|
|
@@ -95138,7 +95092,7 @@ var wt = class extends A3 {
|
|
|
95138
95092
|
[sr](t) {
|
|
95139
95093
|
this[G2] += 1;
|
|
95140
95094
|
try {
|
|
95141
|
-
return new this[di](t.path, this[hs](t)).on("end", () => this[
|
|
95095
|
+
return new this[di](t.path, this[hs](t)).on("end", () => this[os8](t)).on("error", (i) => this.emit("error", i));
|
|
95142
95096
|
} catch (e2) {
|
|
95143
95097
|
this.emit("error", e2);
|
|
95144
95098
|
}
|
|
@@ -103488,10 +103442,10 @@ function uniqueNormalizedPaths(paths) {
|
|
|
103488
103442
|
}
|
|
103489
103443
|
return result;
|
|
103490
103444
|
}
|
|
103491
|
-
function getLegacyWindowsGlobalKitDirCandidates(
|
|
103445
|
+
function getLegacyWindowsGlobalKitDirCandidates(env3 = process.env, homeDir = homedir46()) {
|
|
103492
103446
|
const candidates = [];
|
|
103493
|
-
const localAppData = safeEnvPath(
|
|
103494
|
-
const appData = safeEnvPath(
|
|
103447
|
+
const localAppData = safeEnvPath(env3.LOCALAPPDATA);
|
|
103448
|
+
const appData = safeEnvPath(env3.APPDATA);
|
|
103495
103449
|
if (localAppData) {
|
|
103496
103450
|
candidates.push(join132(localAppData, ".claude"));
|
|
103497
103451
|
}
|
|
@@ -103537,16 +103491,16 @@ async function moveDirectory(source, target) {
|
|
|
103537
103491
|
}
|
|
103538
103492
|
}
|
|
103539
103493
|
async function repairLegacyWindowsGlobalKitDir(options2) {
|
|
103540
|
-
const
|
|
103541
|
-
const
|
|
103542
|
-
if (
|
|
103494
|
+
const env3 = options2.env ?? process.env;
|
|
103495
|
+
const os9 = options2.platform ?? process.platform;
|
|
103496
|
+
if (os9 !== "win32") {
|
|
103543
103497
|
return { status: "skipped", reason: "not-windows", candidateDirs: [] };
|
|
103544
103498
|
}
|
|
103545
|
-
if (safeEnvPath(
|
|
103499
|
+
if (safeEnvPath(env3.CLAUDE_CONFIG_DIR)) {
|
|
103546
103500
|
return { status: "skipped", reason: "custom-global-dir", candidateDirs: [] };
|
|
103547
103501
|
}
|
|
103548
103502
|
const targetDir = normalize11(resolve45(options2.targetDir));
|
|
103549
|
-
const candidateDirs = getLegacyWindowsGlobalKitDirCandidates(
|
|
103503
|
+
const candidateDirs = getLegacyWindowsGlobalKitDirCandidates(env3, options2.homeDir).filter((candidate) => normalize11(resolve45(candidate)) !== targetDir);
|
|
103550
103504
|
const legacyDirs = [];
|
|
103551
103505
|
for (const candidate of candidateDirs) {
|
|
103552
103506
|
if (await hasKitMarkers(candidate)) {
|
|
@@ -105040,7 +104994,7 @@ import { basename as basename28, join as join142, resolve as resolve49 } from "n
|
|
|
105040
104994
|
init_logger();
|
|
105041
104995
|
|
|
105042
104996
|
// src/ui/ack-cli-design/tokens.ts
|
|
105043
|
-
var import_picocolors27 = __toESM(
|
|
104997
|
+
var import_picocolors27 = __toESM(require_picocolors(), 1);
|
|
105044
104998
|
import { homedir as homedir48, platform as platform12 } from "node:os";
|
|
105045
104999
|
import { resolve as resolve48, win32 } from "node:path";
|
|
105046
105000
|
var PANEL_MIN_WIDTH = 60;
|
|
@@ -105065,42 +105019,42 @@ var ASCII_BOX = {
|
|
|
105065
105019
|
bullet: "+"
|
|
105066
105020
|
};
|
|
105067
105021
|
function createCliDesignContext(options2 = {}) {
|
|
105068
|
-
const
|
|
105022
|
+
const env3 = options2.env ?? process.env;
|
|
105069
105023
|
const isTTY2 = options2.isTTY ?? process.stdout.isTTY === true;
|
|
105070
105024
|
const rawWidth = options2.columns ?? process.stdout.columns ?? DEFAULT_WIDTH;
|
|
105071
105025
|
const width = Math.max(40, Math.min(rawWidth, PANEL_MAX_WIDTH));
|
|
105072
105026
|
const currentPlatform = options2.platform ?? platform12();
|
|
105073
105027
|
return {
|
|
105074
|
-
box: supportsCliUnicode({ env:
|
|
105028
|
+
box: supportsCliUnicode({ env: env3, isTTY: isTTY2, platform: currentPlatform }) ? UNICODE_BOX : ASCII_BOX,
|
|
105075
105029
|
platform: currentPlatform,
|
|
105076
105030
|
rawWidth,
|
|
105077
105031
|
supportsPanels: width >= PANEL_MIN_WIDTH,
|
|
105078
|
-
useColor: isTTY2 && !
|
|
105032
|
+
useColor: isTTY2 && !env3.NO_COLOR,
|
|
105079
105033
|
width
|
|
105080
105034
|
};
|
|
105081
105035
|
}
|
|
105082
105036
|
function supportsCliUnicode(options2) {
|
|
105083
|
-
const { env:
|
|
105084
|
-
if (
|
|
105037
|
+
const { env: env3, isTTY: isTTY2, platform: platform13 } = options2;
|
|
105038
|
+
if (env3.ACK_FORCE_ASCII === "1" || env3.NO_UNICODE === "1")
|
|
105085
105039
|
return false;
|
|
105086
|
-
if (
|
|
105040
|
+
if (env3.TERM === "dumb")
|
|
105087
105041
|
return false;
|
|
105088
|
-
if (
|
|
105042
|
+
if (env3.WT_SESSION)
|
|
105089
105043
|
return true;
|
|
105090
|
-
const ci2 = (
|
|
105044
|
+
const ci2 = (env3.CI ?? "").trim().toLowerCase();
|
|
105091
105045
|
if (ci2 === "true" || ci2 === "1")
|
|
105092
105046
|
return true;
|
|
105093
105047
|
if (!isTTY2)
|
|
105094
105048
|
return false;
|
|
105095
|
-
if (
|
|
105049
|
+
if (env3.TERM_PROGRAM === "iTerm.app")
|
|
105096
105050
|
return true;
|
|
105097
|
-
if (
|
|
105051
|
+
if (env3.TERM_PROGRAM === "Apple_Terminal")
|
|
105098
105052
|
return true;
|
|
105099
|
-
if (
|
|
105053
|
+
if (env3.TERM_PROGRAM === "vscode")
|
|
105100
105054
|
return true;
|
|
105101
|
-
if (
|
|
105055
|
+
if (env3.KONSOLE_VERSION)
|
|
105102
105056
|
return true;
|
|
105103
|
-
const locale = `${
|
|
105057
|
+
const locale = `${env3.LANG ?? ""}${env3.LC_ALL ?? ""}`.toLowerCase();
|
|
105104
105058
|
if (locale.includes("utf"))
|
|
105105
105059
|
return true;
|
|
105106
105060
|
if (platform13 === "win32")
|