@locusai/cli 0.11.3 → 0.11.5
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 +6 -4
- package/bin/locus.js +6 -4
- package/package.json +2 -2
package/bin/agent/worker.js
CHANGED
|
@@ -31404,10 +31404,12 @@ class GitWorkflow {
|
|
|
31404
31404
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
31405
31405
|
this.branchName = `locus/${suffix}`;
|
|
31406
31406
|
try {
|
|
31407
|
-
this.gitExec(["
|
|
31408
|
-
} catch {
|
|
31409
|
-
|
|
31410
|
-
|
|
31407
|
+
this.gitExec(["checkout", this.branchName]);
|
|
31408
|
+
} catch {
|
|
31409
|
+
this.log(`Branch ${this.branchName} does not exist, creating it`, "info");
|
|
31410
|
+
this.gitExec(["checkout", "-b", this.branchName]);
|
|
31411
|
+
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
|
31412
|
+
}
|
|
31411
31413
|
return this.branchName;
|
|
31412
31414
|
}
|
|
31413
31415
|
commitAndPush(task2) {
|
package/bin/locus.js
CHANGED
|
@@ -6602,10 +6602,12 @@ class GitWorkflow {
|
|
|
6602
6602
|
const suffix = sprintId ? sprintId.slice(0, 8) : Date.now().toString(36);
|
|
6603
6603
|
this.branchName = `locus/${suffix}`;
|
|
6604
6604
|
try {
|
|
6605
|
-
this.gitExec(["
|
|
6606
|
-
} catch {
|
|
6607
|
-
|
|
6608
|
-
|
|
6605
|
+
this.gitExec(["checkout", this.branchName]);
|
|
6606
|
+
} catch {
|
|
6607
|
+
this.log(`Branch ${this.branchName} does not exist, creating it`, "info");
|
|
6608
|
+
this.gitExec(["checkout", "-b", this.branchName]);
|
|
6609
|
+
this.log(`Created branch: ${this.branchName} (from ${defaultBranch})`, "success");
|
|
6610
|
+
}
|
|
6609
6611
|
return this.branchName;
|
|
6610
6612
|
}
|
|
6611
6613
|
commitAndPush(task) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/cli",
|
|
3
|
-
"version": "0.11.
|
|
3
|
+
"version": "0.11.5",
|
|
4
4
|
"description": "CLI for Locus - AI-native project management platform",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"author": "",
|
|
34
34
|
"license": "MIT",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@locusai/sdk": "^0.11.
|
|
36
|
+
"@locusai/sdk": "^0.11.5"
|
|
37
37
|
},
|
|
38
38
|
"devDependencies": {}
|
|
39
39
|
}
|