md4ai 0.7.8 → 0.7.9

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.
@@ -1232,7 +1232,7 @@ var CURRENT_VERSION;
1232
1232
  var init_check_update = __esm({
1233
1233
  "dist/check-update.js"() {
1234
1234
  "use strict";
1235
- CURRENT_VERSION = true ? "0.7.8" : "0.0.0-dev";
1235
+ CURRENT_VERSION = true ? "0.7.9" : "0.0.0-dev";
1236
1236
  }
1237
1237
  });
1238
1238
 
@@ -1798,14 +1798,8 @@ function printTable(rows, deviceName) {
1798
1798
  console.log(chalk18.yellow(" No MCP servers configured."));
1799
1799
  console.log(chalk18.dim(" Configure servers in ~/.claude/mcp.json or .mcp.json\n"));
1800
1800
  }
1801
- }
1802
- function timeAgo(dateStr) {
1803
- const diff = Math.floor((Date.now() - new Date(dateStr).getTime()) / 1e3);
1804
- if (diff < 60)
1805
- return `${diff}s ago`;
1806
- if (diff < 3600)
1807
- return `${Math.floor(diff / 60)}m ago`;
1808
- return `${Math.floor(diff / 3600)}h ago`;
1801
+ console.log(chalk18.bgYellow.black.bold(" \u26A0 DO NOT CLOSE THIS WINDOW \u2014 it feeds live data to the dashboard \u26A0 "));
1802
+ console.log("");
1809
1803
  }
1810
1804
  function formatUptime(seconds) {
1811
1805
  if (seconds < 60)
@@ -1826,21 +1820,8 @@ async function mcpWatchCommand() {
1826
1820
  await supabase.from("mcp_watchers").delete().eq("device_id", deviceId).lt("last_heartbeat", staleThreshold);
1827
1821
  const { data: existingWatchers } = await supabase.from("mcp_watchers").select("pid, tty, cli_version, started_at").eq("device_id", deviceId);
1828
1822
  if (existingWatchers && existingWatchers.length > 0) {
1829
- const { confirm: confirm2 } = await import("@inquirer/prompts");
1830
- console.log("");
1831
- console.log(chalk18.yellow(" Another watcher is already running on this device:"));
1832
- for (const w of existingWatchers) {
1833
- console.log(chalk18.dim(` PID ${w.pid} \xB7 ${w.tty ?? "unknown tty"} \xB7 v${w.cli_version} \xB7 started ${timeAgo(w.started_at)}`));
1834
- }
1835
1823
  console.log("");
1836
- const takeOver = await confirm2({
1837
- message: "Stop the existing watcher and start a new one?",
1838
- default: true
1839
- });
1840
- if (!takeOver) {
1841
- console.log(chalk18.dim("\nKeeping existing watcher. Exiting.\n"));
1842
- return;
1843
- }
1824
+ console.log(chalk18.yellow(` Replacing ${existingWatchers.length} existing watcher${existingWatchers.length !== 1 ? "s" : ""} on this device...`));
1844
1825
  for (const w of existingWatchers) {
1845
1826
  try {
1846
1827
  process.kill(w.pid, "SIGTERM");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.7.8",
3
+ "version": "0.7.9",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {