md4ai 0.19.0 → 0.19.1

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.
@@ -12,6 +12,9 @@ var __export = (target, all) => {
12
12
  // dist/check-update.js
13
13
  import chalk from "chalk";
14
14
  import { execFileSync, spawn } from "node:child_process";
15
+ function wasUpdateHandedOff() {
16
+ return updateHandedOff;
17
+ }
15
18
  async function fetchLatest() {
16
19
  try {
17
20
  const controller = new AbortController();
@@ -98,6 +101,7 @@ async function promptUpdateIfAvailable(originalArgs) {
98
101
  return true;
99
102
  }
100
103
  console.log(chalk.green("\n Updated successfully! Re-running command...\n"));
104
+ updateHandedOff = true;
101
105
  const child = spawn("md4ai", originalArgs, {
102
106
  stdio: "inherit",
103
107
  shell: false
@@ -108,11 +112,12 @@ async function promptUpdateIfAvailable(originalArgs) {
108
112
  return true;
109
113
  }
110
114
  }
111
- var CURRENT_VERSION;
115
+ var CURRENT_VERSION, updateHandedOff;
112
116
  var init_check_update = __esm({
113
117
  "dist/check-update.js"() {
114
118
  "use strict";
115
- CURRENT_VERSION = true ? "0.19.0" : "0.0.0-dev";
119
+ CURRENT_VERSION = true ? "0.19.1" : "0.0.0-dev";
120
+ updateHandedOff = false;
116
121
  }
117
122
  });
118
123
 
@@ -5213,7 +5218,7 @@ if (process.argv.length <= 2) {
5213
5218
  program.parseAsync().then(() => {
5214
5219
  const ran = program.args[0];
5215
5220
  const skipAutoCheck = ["update", "mcp-watch", "start"];
5216
- if (!skipAutoCheck.includes(ran)) {
5221
+ if (!skipAutoCheck.includes(ran) && !wasUpdateHandedOff()) {
5217
5222
  autoCheckForUpdate();
5218
5223
  }
5219
5224
  }).catch(async (err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "md4ai",
3
- "version": "0.19.0",
3
+ "version": "0.19.1",
4
4
  "description": "CLI for MD4AI — scan Claude projects and sync to your dashboard",
5
5
  "type": "module",
6
6
  "bin": {