@locusai/cli 0.22.8 → 0.22.9
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/bin/locus.js +2 -2
- package/package.json +2 -2
package/bin/locus.js
CHANGED
|
@@ -1047,7 +1047,7 @@ function detectContainerWorkdir(sandboxName, hostProjectRoot) {
|
|
|
1047
1047
|
try {
|
|
1048
1048
|
const raw = execSync2(`docker sandbox exec ${sandboxName} cat /proc/mounts`, { encoding: "utf-8", stdio: ["pipe", "pipe", "pipe"], timeout: 5000 }).trim();
|
|
1049
1049
|
if (raw) {
|
|
1050
|
-
const systemPrefixes = ["/proc", "/sys", "/dev"];
|
|
1050
|
+
const systemPrefixes = ["/proc", "/sys", "/dev", "/run"];
|
|
1051
1051
|
const candidates = raw.split(`
|
|
1052
1052
|
`).map((line) => {
|
|
1053
1053
|
const fields = line.split(" ");
|
|
@@ -1055,7 +1055,7 @@ function detectContainerWorkdir(sandboxName, hostProjectRoot) {
|
|
|
1055
1055
|
}).filter((mp) => !!mp && mp !== "/" && !systemPrefixes.some((p) => mp === p || mp.startsWith(`${p}/`)));
|
|
1056
1056
|
for (const candidate of candidates) {
|
|
1057
1057
|
try {
|
|
1058
|
-
execSync2(`docker sandbox exec ${sandboxName} sh -c "test -d ${JSON.stringify(`${candidate}
|
|
1058
|
+
execSync2(`docker sandbox exec ${sandboxName} sh -c "test -d ${JSON.stringify(`${candidate}/.git`)} || test -f ${JSON.stringify(`${candidate}/package.json`)}"`, { stdio: ["pipe", "pipe", "pipe"], timeout: 3000 });
|
|
1059
1059
|
log.debug("Detected container workdir from mount table", {
|
|
1060
1060
|
hostProjectRoot,
|
|
1061
1061
|
containerWorkdir: candidate
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.22.
|
|
3
|
+
"version": "0.22.9",
|
|
4
4
|
"description": "GitHub-native AI engineering assistant",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"license": "MIT",
|
|
37
37
|
"dependencies": {},
|
|
38
38
|
"devDependencies": {
|
|
39
|
-
"@locusai/sdk": "^0.22.
|
|
39
|
+
"@locusai/sdk": "^0.22.9",
|
|
40
40
|
"@types/bun": "latest",
|
|
41
41
|
"typescript": "^5.8.3"
|
|
42
42
|
},
|