md4ai 0.13.0 → 0.13.2

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.
@@ -73,7 +73,7 @@ var CURRENT_VERSION;
73
73
  var init_check_update = __esm({
74
74
  "dist/check-update.js"() {
75
75
  "use strict";
76
- CURRENT_VERSION = true ? "0.13.0" : "0.0.0-dev";
76
+ CURRENT_VERSION = true ? "0.13.2" : "0.0.0-dev";
77
77
  }
78
78
  });
79
79
 
@@ -2484,7 +2484,8 @@ ${proposedFiles.length} file(s) proposed for deletion:
2484
2484
  doppler_json: result.doppler,
2485
2485
  marketplace_plugins_json: result.marketplacePlugins,
2486
2486
  data_hash: result.dataHash,
2487
- scanned_at: result.scannedAt
2487
+ scanned_at: result.scannedAt,
2488
+ cli_version: CURRENT_VERSION
2488
2489
  }, { onConflict: "folder_id,device_id" });
2489
2490
  }
2490
2491
  await pushToolings(supabase, folder_id, result.toolings);
@@ -2603,7 +2604,8 @@ ${proposedFiles.length} file(s) proposed for deletion:
2603
2604
  doppler_json: result.doppler,
2604
2605
  marketplace_plugins_json: result.marketplacePlugins,
2605
2606
  data_hash: result.dataHash,
2606
- scanned_at: result.scannedAt
2607
+ scanned_at: result.scannedAt,
2608
+ cli_version: CURRENT_VERSION
2607
2609
  }, { onConflict: "folder_id,device_id" });
2608
2610
  }
2609
2611
  await pushToolings(sb, folderId, result.toolings);
@@ -2715,7 +2717,8 @@ async function syncCommand(options) {
2715
2717
  broken_refs_json: result.brokenRefs,
2716
2718
  env_manifest_json: result.envManifest,
2717
2719
  data_hash: result.dataHash,
2718
- scanned_at: result.scannedAt
2720
+ scanned_at: result.scannedAt,
2721
+ cli_version: CURRENT_VERSION
2719
2722
  }, { onConflict: "folder_id,device_id" });
2720
2723
  }
2721
2724
  await pushToolings(supabase, device.folder_id, result.toolings);
@@ -2777,7 +2780,8 @@ async function syncCommand(options) {
2777
2780
  stale_files_json: result.staleFiles,
2778
2781
  broken_refs_json: result.brokenRefs,
2779
2782
  data_hash: result.dataHash,
2780
- scanned_at: result.scannedAt
2783
+ scanned_at: result.scannedAt,
2784
+ cli_version: CURRENT_VERSION
2781
2785
  }, { onConflict: "folder_id,device_id" });
2782
2786
  }
2783
2787
  await pushToolings(supabase, device.folder_id, result.toolings);
@@ -2793,6 +2797,7 @@ var init_sync = __esm({
2793
2797
  init_config();
2794
2798
  init_scanner();
2795
2799
  init_push_toolings();
2800
+ init_check_update();
2796
2801
  }
2797
2802
  });
2798
2803
 
@@ -3302,6 +3307,7 @@ function isJwtError(error) {
3302
3307
  return msg.includes("jwt expired") || msg.includes("invalid jwt") || msg.includes("invalid token") || msg.includes("not authenticated") || msg.includes("invalid refresh_token");
3303
3308
  }
3304
3309
  async function mcpWatchCommand() {
3310
+ await autoCheckForUpdate();
3305
3311
  let { supabase, userId } = await getLongLivedClient();
3306
3312
  const deviceId = await resolveDeviceId(supabase, userId);
3307
3313
  const deviceName = detectDeviceName();
@@ -3901,6 +3907,7 @@ init_config();
3901
3907
  init_scanner();
3902
3908
  init_push_toolings();
3903
3909
  init_device_utils();
3910
+ init_check_update();
3904
3911
  import { resolve as resolve6 } from "node:path";
3905
3912
  import chalk16 from "chalk";
3906
3913
  async function linkCommand(projectId) {
@@ -3987,7 +3994,8 @@ Linking "${folder.name}" to this device...
3987
3994
  doppler_json: result.doppler,
3988
3995
  marketplace_plugins_json: result.marketplacePlugins,
3989
3996
  data_hash: result.dataHash,
3990
- scanned_at: result.scannedAt
3997
+ scanned_at: result.scannedAt,
3998
+ cli_version: CURRENT_VERSION
3991
3999
  }, { onConflict: "folder_id,device_id" });
3992
4000
  await pushToolings(supabase, folder.id, result.toolings);
3993
4001
  const graphPaths = result.graph.nodes.map((n) => n.filePath);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.13.0",
3
+ "version": "0.13.2",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {