@cleocode/caamp 1.7.0 → 1.7.1
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 +0 -0
- package/dist/{chunk-M6KHYT2D.js → chunk-6T3TJQFF.js} +6 -6
- package/dist/chunk-6T3TJQFF.js.map +1 -0
- package/dist/cli.d.ts +0 -0
- package/dist/cli.js +1 -1
- package/dist/cli.js.map +0 -0
- package/dist/index.d.ts +0 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +0 -0
- package/package.json +1 -1
- package/providers/registry.json +0 -0
- package/dist/chunk-M6KHYT2D.js.map +0 -1
package/README.md
CHANGED
|
File without changes
|
|
@@ -494,7 +494,7 @@ function _resetPlatformPathsCache() {
|
|
|
494
494
|
// src/core/paths/standard.ts
|
|
495
495
|
import { existsSync as existsSync5 } from "fs";
|
|
496
496
|
import { homedir as homedir2 } from "os";
|
|
497
|
-
import { dirname as dirname2,
|
|
497
|
+
import { dirname as dirname2, join as join3 } from "path";
|
|
498
498
|
function getPlatformLocations() {
|
|
499
499
|
const home = homedir2();
|
|
500
500
|
const platform2 = process.platform;
|
|
@@ -1828,7 +1828,7 @@ async function configureProviderGlobalAndProject(provider, options) {
|
|
|
1828
1828
|
import { execFileSync as execFileSync2 } from "child_process";
|
|
1829
1829
|
import { existsSync as existsSync10 } from "fs";
|
|
1830
1830
|
import { homedir as homedir3 } from "os";
|
|
1831
|
-
import { isAbsolute as
|
|
1831
|
+
import { isAbsolute as isAbsolute2, resolve as resolve3 } from "path";
|
|
1832
1832
|
var CLEO_SERVER_NAMES = {
|
|
1833
1833
|
stable: "cleo",
|
|
1834
1834
|
beta: "cleo-beta",
|
|
@@ -1911,7 +1911,7 @@ function buildCleoProfile(options) {
|
|
|
1911
1911
|
function expandHome(pathValue) {
|
|
1912
1912
|
if (pathValue === "~") return homedir3();
|
|
1913
1913
|
if (pathValue.startsWith("~/")) {
|
|
1914
|
-
return
|
|
1914
|
+
return resolve3(homedir3(), pathValue.slice(2));
|
|
1915
1915
|
}
|
|
1916
1916
|
return pathValue;
|
|
1917
1917
|
}
|
|
@@ -1919,7 +1919,7 @@ function checkCommandReachability(command) {
|
|
|
1919
1919
|
const hasPathSeparator = command.includes("/") || command.includes("\\");
|
|
1920
1920
|
if (hasPathSeparator || command.startsWith("~")) {
|
|
1921
1921
|
const expanded = expandHome(command);
|
|
1922
|
-
const candidate =
|
|
1922
|
+
const candidate = isAbsolute2(expanded) ? expanded : resolve3(process.cwd(), expanded);
|
|
1923
1923
|
if (existsSync10(candidate)) {
|
|
1924
1924
|
return { reachable: true, method: "path", detail: candidate };
|
|
1925
1925
|
}
|
|
@@ -1965,7 +1965,7 @@ import { existsSync as existsSync11 } from "fs";
|
|
|
1965
1965
|
var LOCK_GUARD_PATH = `${LOCK_FILE_PATH}.lock`;
|
|
1966
1966
|
var STALE_LOCK_MS = 5e3;
|
|
1967
1967
|
function sleep(ms) {
|
|
1968
|
-
return new Promise((
|
|
1968
|
+
return new Promise((resolve4) => setTimeout(resolve4, ms));
|
|
1969
1969
|
}
|
|
1970
1970
|
async function removeStaleLock() {
|
|
1971
1971
|
try {
|
|
@@ -4245,4 +4245,4 @@ export {
|
|
|
4245
4245
|
toSarif,
|
|
4246
4246
|
validateSkill
|
|
4247
4247
|
};
|
|
4248
|
-
//# sourceMappingURL=chunk-
|
|
4248
|
+
//# sourceMappingURL=chunk-6T3TJQFF.js.map
|