md4ai 0.13.2 → 0.13.3

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.2" : "0.0.0-dev";
76
+ CURRENT_VERSION = true ? "0.13.3" : "0.0.0-dev";
77
77
  }
78
78
  });
79
79
 
@@ -4526,6 +4526,7 @@ Manifest created: ${relative4(projectRoot, manifestPath)}`));
4526
4526
  // dist/commands/update.js
4527
4527
  init_check_update();
4528
4528
  init_config();
4529
+ init_auth();
4529
4530
  import chalk23 from "chalk";
4530
4531
  import { execFileSync as execFileSync6, spawn } from "node:child_process";
4531
4532
  async function fetchLatestVersion() {
@@ -4596,13 +4597,28 @@ async function postUpdateFlow() {
4596
4597
  return;
4597
4598
  }
4598
4599
  }
4600
+ const { supabase } = await getAuthenticatedClient();
4601
+ const { data: linkedPaths } = await supabase.from("device_paths").select("path, folder_id").order("path");
4602
+ let linkedDisplay = "";
4603
+ if (linkedPaths?.length) {
4604
+ const folderIds = [...new Set(linkedPaths.map((p) => p.folder_id))];
4605
+ const { data: folders } = await supabase.from("claude_folders").select("id, name").in("id", folderIds);
4606
+ const nameMap = new Map((folders ?? []).map((f) => [f.id, f.name]));
4607
+ const lines = linkedPaths.map((p) => {
4608
+ const name = nameMap.get(p.folder_id) ?? "Unknown";
4609
+ return ` ${name} (${p.path})`;
4610
+ });
4611
+ linkedDisplay = `
4612
+ ${lines.join("\n")}`;
4613
+ }
4599
4614
  const { select: selectPrompt } = await import("@inquirer/prompts");
4600
4615
  const cwd = process.cwd();
4616
+ const allLabel = linkedPaths?.length ? `All ${linkedPaths.length} linked project${linkedPaths.length === 1 ? "" : "s"} on this device${linkedDisplay}` : "All linked projects on this device";
4601
4617
  const scanChoice = await selectPrompt({
4602
4618
  message: "What would you like to scan?",
4603
4619
  choices: [
4604
4620
  { name: `Current folder (${cwd})`, value: "cwd" },
4605
- { name: "All linked projects on this device", value: "all" },
4621
+ { name: allLabel, value: "all" },
4606
4622
  { name: "Skip scanning", value: "skip" }
4607
4623
  ]
4608
4624
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.13.2",
3
+ "version": "0.13.3",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {