@dambrogia/openclaw-agents-backup 0.1.0 → 1.2.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/backup.ts +4 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dambrogia/openclaw-agents-backup",
3
- "version": "0.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Backup and restore OpenClaw agent workspaces across multi-agent setups",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/backup.ts CHANGED
@@ -168,7 +168,7 @@ export async function performBackup(workspacePath: string): Promise<BackupResult
168
168
  }
169
169
 
170
170
  /**
171
- * Commit backup changes to git repository
171
+ * Commit backup changes to git repository and push to remote
172
172
  */
173
173
  async function gitCommitBackup(repoPath: string): Promise<void> {
174
174
  const currentDir = process.cwd();
@@ -184,6 +184,9 @@ async function gitCommitBackup(repoPath: string): Promise<void> {
184
184
 
185
185
  // Commit changes
186
186
  executeCommand(`git commit -m "${commitMessage}"`);
187
+
188
+ // Push to remote origin
189
+ executeCommand('git push origin main');
187
190
  } finally {
188
191
  process.chdir(currentDir);
189
192
  }