ccstatusline 2.2.14 → 2.2.15
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/ccstatusline.js +11 -4
- package/package.json +1 -1
package/dist/ccstatusline.js
CHANGED
|
@@ -56155,7 +56155,7 @@ function getTerminalWidth() {
|
|
|
56155
56155
|
function canDetectTerminalWidth() {
|
|
56156
56156
|
return probeTerminalWidth() !== null;
|
|
56157
56157
|
}
|
|
56158
|
-
var __dirname = "/Users/sirmalloc/Projects/Personal/ccstatusline/src/utils", PACKAGE_VERSION = "2.2.
|
|
56158
|
+
var __dirname = "/Users/sirmalloc/Projects/Personal/ccstatusline/src/utils", PACKAGE_VERSION = "2.2.15";
|
|
56159
56159
|
var init_terminal = () => {};
|
|
56160
56160
|
|
|
56161
56161
|
// src/utils/renderer.ts
|
|
@@ -68659,6 +68659,13 @@ function splitCommandOutput(output) {
|
|
|
68659
68659
|
}
|
|
68660
68660
|
return paths;
|
|
68661
68661
|
}
|
|
68662
|
+
function isTransientBunxStatusLinePath(filePath) {
|
|
68663
|
+
const normalized = filePath.replace(/\\/g, "/");
|
|
68664
|
+
return /(?:^|\/)bunx-[^/]*ccstatusline@[^/]+\/node_modules\/\.bin\/ccstatusline(?:\.(?:cmd|ps1))?$/i.test(normalized);
|
|
68665
|
+
}
|
|
68666
|
+
function getPersistentCommandResolutionPaths(paths) {
|
|
68667
|
+
return paths.filter((path10) => !isTransientBunxStatusLinePath(path10));
|
|
68668
|
+
}
|
|
68662
68669
|
function getCommandResolutionPaths(command, { platform: platform2 = process.platform } = {}) {
|
|
68663
68670
|
try {
|
|
68664
68671
|
const output = platform2 === "win32" ? execFileSync5("where", [command], { encoding: "utf-8", timeout: COMMAND_LOOKUP_TIMEOUT_MS }) : execFileSync5("which", ["-a", command], { encoding: "utf-8", timeout: COMMAND_LOOKUP_TIMEOUT_MS });
|
|
@@ -68764,7 +68771,7 @@ Other matches: ${formatPathList(resolvedPaths.slice(1))}`;
|
|
|
68764
68771
|
return null;
|
|
68765
68772
|
}
|
|
68766
68773
|
function inspectGlobalCommandResolution(packageManager, options = {}) {
|
|
68767
|
-
const resolvedPaths = getCommandResolutionPaths("ccstatusline", options);
|
|
68774
|
+
const resolvedPaths = getPersistentCommandResolutionPaths(getCommandResolutionPaths("ccstatusline", options));
|
|
68768
68775
|
const expectedBinDir = getExpectedGlobalBinDir(packageManager, options);
|
|
68769
68776
|
return {
|
|
68770
68777
|
resolvedPaths,
|
|
@@ -68951,7 +68958,7 @@ function inspectActiveGlobalCommand({
|
|
|
68951
68958
|
commandAvailability,
|
|
68952
68959
|
platform: platform2 = process.platform
|
|
68953
68960
|
}) {
|
|
68954
|
-
const resolvedPaths = getCommandResolutionPaths("ccstatusline", { platform: platform2 });
|
|
68961
|
+
const resolvedPaths = getPersistentCommandResolutionPaths(getCommandResolutionPaths("ccstatusline", { platform: platform2 }));
|
|
68955
68962
|
const resolvedPath = resolvedPaths[0] ?? null;
|
|
68956
68963
|
const managerBins = {
|
|
68957
68964
|
npm: getManagerBinDir("npm", commandAvailability.npm, platform2),
|
|
@@ -68973,7 +68980,7 @@ function inspectGlobalPackageInstallations({
|
|
|
68973
68980
|
commandAvailability,
|
|
68974
68981
|
platform: platform2 = process.platform
|
|
68975
68982
|
}) {
|
|
68976
|
-
const resolvedPaths = getCommandResolutionPaths("ccstatusline", { platform: platform2 });
|
|
68983
|
+
const resolvedPaths = getPersistentCommandResolutionPaths(getCommandResolutionPaths("ccstatusline", { platform: platform2 }));
|
|
68977
68984
|
return [
|
|
68978
68985
|
inspectPackageManager("npm", commandAvailability.npm, resolvedPaths, platform2),
|
|
68979
68986
|
inspectPackageManager("bun", commandAvailability.bun, resolvedPaths, platform2)
|