md4ai 0.8.6 → 0.8.7
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/dist/index.bundled.js +9 -3
- package/package.json +1 -1
package/dist/index.bundled.js
CHANGED
|
@@ -1262,7 +1262,7 @@ var CURRENT_VERSION;
|
|
|
1262
1262
|
var init_check_update = __esm({
|
|
1263
1263
|
"dist/check-update.js"() {
|
|
1264
1264
|
"use strict";
|
|
1265
|
-
CURRENT_VERSION = true ? "0.8.
|
|
1265
|
+
CURRENT_VERSION = true ? "0.8.7" : "0.0.0-dev";
|
|
1266
1266
|
}
|
|
1267
1267
|
});
|
|
1268
1268
|
|
|
@@ -1913,13 +1913,19 @@ async function mcpWatchCommand() {
|
|
|
1913
1913
|
]);
|
|
1914
1914
|
const rows = buildRows(configs, httpResults, cdpStatus);
|
|
1915
1915
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
1916
|
-
await supabase.from("mcp_server_status").delete().eq("device_id", deviceId);
|
|
1916
|
+
const { error: deleteError } = await supabase.from("mcp_server_status").delete().eq("device_id", deviceId);
|
|
1917
|
+
if (deleteError) {
|
|
1918
|
+
console.error(chalk18.red(` [debug] Failed to delete old status: ${deleteError.message}`));
|
|
1919
|
+
}
|
|
1917
1920
|
if (rows.length > 0) {
|
|
1918
|
-
await supabase.from("mcp_server_status").insert(rows.map((row) => ({
|
|
1921
|
+
const { error: insertError } = await supabase.from("mcp_server_status").insert(rows.map((row) => ({
|
|
1919
1922
|
device_id: deviceId,
|
|
1920
1923
|
...row,
|
|
1921
1924
|
checked_at: now
|
|
1922
1925
|
})));
|
|
1926
|
+
if (insertError) {
|
|
1927
|
+
console.error(chalk18.red(` [debug] Failed to write MCP status: ${insertError.message}`));
|
|
1928
|
+
}
|
|
1923
1929
|
}
|
|
1924
1930
|
await supabase.from("mcp_watchers").update({ last_heartbeat: now }).eq("device_id", deviceId).eq("pid", myPid);
|
|
1925
1931
|
printTable(rows, deviceName, myPid);
|