@locusai/cli 0.9.11 → 0.9.12
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/agent/worker.js +2 -5
- package/bin/locus.js +6 -6
- package/package.json +2 -2
package/bin/agent/worker.js
CHANGED
|
@@ -30941,12 +30941,9 @@ class WorktreeManager {
|
|
|
30941
30941
|
return null;
|
|
30942
30942
|
}
|
|
30943
30943
|
this.git("add -A", worktreePath);
|
|
30944
|
-
try {
|
|
30945
|
-
this.git("reset HEAD -- .locus/project/progress.md", worktreePath);
|
|
30946
|
-
} catch {}
|
|
30947
30944
|
const staged = this.git("diff --cached --name-only", worktreePath).trim();
|
|
30948
30945
|
if (!staged) {
|
|
30949
|
-
this.log("No changes to commit
|
|
30946
|
+
this.log("No changes to commit", "info");
|
|
30950
30947
|
return null;
|
|
30951
30948
|
}
|
|
30952
30949
|
this.gitExec(["commit", "-m", message], worktreePath);
|
|
@@ -30971,8 +30968,8 @@ class WorktreeManager {
|
|
|
30971
30968
|
} catch {}
|
|
30972
30969
|
this.gitExec(["push", "--force-with-lease", "-u", remote, branch], worktreePath);
|
|
30973
30970
|
this.log(`Pushed ${branch} to ${remote} with --force-with-lease`, "success");
|
|
30971
|
+
return branch;
|
|
30974
30972
|
}
|
|
30975
|
-
return branch;
|
|
30976
30973
|
}
|
|
30977
30974
|
getBranch(worktreePath) {
|
|
30978
30975
|
return this.git("rev-parse --abbrev-ref HEAD", worktreePath).trim();
|
package/bin/locus.js
CHANGED
|
@@ -6379,7 +6379,10 @@ var init_config = __esm(() => {
|
|
|
6379
6379
|
".locus/settings.json",
|
|
6380
6380
|
"",
|
|
6381
6381
|
"# Locus AI - Configuration (contains project context, progress, etc.)",
|
|
6382
|
-
".locus/config.json"
|
|
6382
|
+
".locus/config.json",
|
|
6383
|
+
"",
|
|
6384
|
+
"# Locus AI - Project progress (contains project progress, etc.)",
|
|
6385
|
+
".locus/project/progress.md"
|
|
6383
6386
|
];
|
|
6384
6387
|
});
|
|
6385
6388
|
|
|
@@ -38631,12 +38634,9 @@ class WorktreeManager {
|
|
|
38631
38634
|
return null;
|
|
38632
38635
|
}
|
|
38633
38636
|
this.git("add -A", worktreePath);
|
|
38634
|
-
try {
|
|
38635
|
-
this.git("reset HEAD -- .locus/project/progress.md", worktreePath);
|
|
38636
|
-
} catch {}
|
|
38637
38637
|
const staged = this.git("diff --cached --name-only", worktreePath).trim();
|
|
38638
38638
|
if (!staged) {
|
|
38639
|
-
this.log("No changes to commit
|
|
38639
|
+
this.log("No changes to commit", "info");
|
|
38640
38640
|
return null;
|
|
38641
38641
|
}
|
|
38642
38642
|
this.gitExec(["commit", "-m", message], worktreePath);
|
|
@@ -38661,8 +38661,8 @@ class WorktreeManager {
|
|
|
38661
38661
|
} catch {}
|
|
38662
38662
|
this.gitExec(["push", "--force-with-lease", "-u", remote, branch], worktreePath);
|
|
38663
38663
|
this.log(`Pushed ${branch} to ${remote} with --force-with-lease`, "success");
|
|
38664
|
+
return branch;
|
|
38664
38665
|
}
|
|
38665
|
-
return branch;
|
|
38666
38666
|
}
|
|
38667
38667
|
getBranch(worktreePath) {
|
|
38668
38668
|
return this.git("rev-parse --abbrev-ref HEAD", worktreePath).trim();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.12",
|
|
4
4
|
"description": "CLI for Locus - AI-native project management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"author": "",
|
|
33
33
|
"license": "MIT",
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@locusai/sdk": "^0.9.
|
|
35
|
+
"@locusai/sdk": "^0.9.12"
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {}
|
|
38
38
|
}
|