inboxd 1.0.10 → 1.0.11

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "inboxd",
3
- "version": "1.0.10",
3
+ "version": "1.0.11",
4
4
  "description": "CLI assistant for Gmail monitoring with multi-account support and AI-ready JSON output",
5
5
  "main": "src/cli.js",
6
6
  "bin": {
@@ -203,11 +203,14 @@ function installSkill(options = {}) {
203
203
  const skillsDir = path.dirname(SKILL_DEST_DIR);
204
204
  fs.mkdirSync(skillsDir, { recursive: true });
205
205
 
206
- // Backup if replacing existing (user may have modified)
206
+ // Backup if replacing existing AND user modified it
207
+ // (Don't backup if it matches source - nothing worth preserving)
207
208
  let backedUp = false;
208
209
  let backupPath = null;
209
210
  let backupResult = null;
210
- if (status.installed) {
211
+ if (status.installed && updateInfo.hashMismatch) {
212
+ // Only backup if the installed version differs from our source
213
+ // This prevents overwriting a previous backup with an unmodified version
211
214
  backupResult = createBackup(SKILL_DEST_DIR);
212
215
 
213
216
  if (!backupResult.success) {
@@ -219,7 +222,9 @@ function installSkill(options = {}) {
219
222
  path: SKILL_DEST_DIR
220
223
  };
221
224
  }
225
+ }
222
226
 
227
+ if (status.installed) {
223
228
  // Remove existing for clean update
224
229
  fs.rmSync(SKILL_DEST_DIR, { recursive: true, force: true });
225
230
  }