mu-agent-bridge 1.0.39 → 1.0.40

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.
@@ -235,7 +235,6 @@ async function serve() {
235
235
  await manager.discover();
236
236
  await manager.versions.load();
237
237
  const coreVersion = await Promise.resolve().then(() => __importStar(require("node:fs/promises"))).then(({ readFile }) => readFile((0, node_path_1.resolve)(__dirname, "../../package.json"), "utf8").then((value) => JSON.parse(value).version).catch(() => "0.0.0"));
238
- await checkAndUpgradePlugins(manager);
239
238
  const port = Number(process.env.AGENT_BRIDGE_PORT ?? "26107");
240
239
  const host = process.env.AGENT_BRIDGE_HOST ?? "127.0.0.1";
241
240
  if (host !== "127.0.0.1" && host !== "localhost" && host !== "::1" && !process.env.AGENT_BRIDGE_TOKEN) {
@@ -264,6 +263,7 @@ async function serve() {
264
263
  logger.error(`plugin failed: ${id}`, { error: error instanceof Error ? error.message : String(error) });
265
264
  }
266
265
  }
266
+ await checkAndUpgradePlugins(manager);
267
267
  const intervalMs = Math.max(60_000, Number(process.env.AGENT_BRIDGE_PLUGIN_UPDATE_INTERVAL_MS ?? 300_000) || 300_000);
268
268
  const updateTimer = setInterval(() => void checkAndUpgradePlugins(manager), intervalMs);
269
269
  updateTimer.unref?.();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mu-agent-bridge",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
4
4
  "description": "将 AUN Agent 连接到本地桌面 AI 客户端的插件平台。",
5
5
  "main": "dist/src-ts/cli.js",
6
6
  "bin": {