@locusai/telegram 0.9.11 → 0.9.13
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/telegram.js +5 -6
- package/package.json +2 -2
package/bin/telegram.js
CHANGED
|
@@ -40518,13 +40518,12 @@ class WorktreeManager {
|
|
|
40518
40518
|
this.log("No changes to commit", "info");
|
|
40519
40519
|
return null;
|
|
40520
40520
|
}
|
|
40521
|
+
this.gitExec(["config", "user.name", "LocusAgent"], worktreePath);
|
|
40522
|
+
this.gitExec(["config", "user.email", "agent@locusai.team"], worktreePath);
|
|
40521
40523
|
this.git("add -A", worktreePath);
|
|
40522
|
-
try {
|
|
40523
|
-
this.git("reset HEAD -- .locus/project/progress.md", worktreePath);
|
|
40524
|
-
} catch {}
|
|
40525
40524
|
const staged = this.git("diff --cached --name-only", worktreePath).trim();
|
|
40526
40525
|
if (!staged) {
|
|
40527
|
-
this.log("No changes to commit
|
|
40526
|
+
this.log("No changes to commit", "info");
|
|
40528
40527
|
return null;
|
|
40529
40528
|
}
|
|
40530
40529
|
this.gitExec(["commit", "-m", message], worktreePath);
|
|
@@ -40549,8 +40548,8 @@ class WorktreeManager {
|
|
|
40549
40548
|
} catch {}
|
|
40550
40549
|
this.gitExec(["push", "--force-with-lease", "-u", remote, branch], worktreePath);
|
|
40551
40550
|
this.log(`Pushed ${branch} to ${remote} with --force-with-lease`, "success");
|
|
40551
|
+
return branch;
|
|
40552
40552
|
}
|
|
40553
|
-
return branch;
|
|
40554
40553
|
}
|
|
40555
40554
|
getBranch(worktreePath) {
|
|
40556
40555
|
return this.git("rev-parse --abbrev-ref HEAD", worktreePath).trim();
|
|
@@ -40794,7 +40793,7 @@ class AgentWorker {
|
|
|
40794
40793
|
const trailers = [
|
|
40795
40794
|
`Task-ID: ${task2.id}`,
|
|
40796
40795
|
`Agent: ${this.config.agentId}`,
|
|
40797
|
-
"Co-authored-by: LocusAI <
|
|
40796
|
+
"Co-authored-by: LocusAI <agent@locusai.team>"
|
|
40798
40797
|
];
|
|
40799
40798
|
if (this.ghUsername) {
|
|
40800
40799
|
trailers.push(`Co-authored-by: ${this.ghUsername} <${this.ghUsername}@users.noreply.github.com>`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@locusai/telegram",
|
|
3
|
-
"version": "0.9.
|
|
3
|
+
"version": "0.9.13",
|
|
4
4
|
"description": "Telegram bot for Locus - remote control your AI agents from Telegram",
|
|
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.13",
|
|
36
36
|
"dotenv": "^16.4.7",
|
|
37
37
|
"telegraf": "^4.16.3"
|
|
38
38
|
},
|