mslxdff 0.1.69 → 0.1.70
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/package.json +1 -1
- package/src/runtime/bootstrap.js +6 -6
package/package.json
CHANGED
package/src/runtime/bootstrap.js
CHANGED
|
@@ -14,9 +14,9 @@ import { logDir, appendCall, appendError, appendEvent } from "../logs.js";
|
|
|
14
14
|
import { loadPlugins, runHook, resolvePluginDirs } from "../plugins.js";
|
|
15
15
|
import { createOpenCodeProvider } from "../providers/opencode.js";
|
|
16
16
|
import { loadProviderKeys, loadProviderAuths, loadProviderConfigs } from "../state.js";
|
|
17
|
-
import { effectiveHost, refreshIntervalMs, modelCooldownMs, slowCooldownMs, peerCooldownMs, peerHeatMs, maxHopsValue, groupSyncIntervalMs, autoUpdateIntervalMs, banWindowMs, banThreshold } from "
|
|
18
|
-
import { fmtEvent } from "
|
|
19
|
-
import { errMsg, npmCmd, run } from "
|
|
17
|
+
import { effectiveHost, refreshIntervalMs, modelCooldownMs, slowCooldownMs, peerCooldownMs, peerHeatMs, maxHopsValue, groupSyncIntervalMs, autoUpdateIntervalMs, banWindowMs, banThreshold } from "../cli/policy.js";
|
|
18
|
+
import { fmtEvent } from "../cli/format.js";
|
|
19
|
+
import { errMsg, npmCmd, run } from "../cli/util.js";
|
|
20
20
|
import { loadGroupsJoined } from "../state.js";
|
|
21
21
|
import { writePid } from "../daemon.js";
|
|
22
22
|
import { resolvePort } from "../server.js";
|
|
@@ -230,7 +230,7 @@ export async function startDaemonMain(VERSION) {
|
|
|
230
230
|
} catch {}
|
|
231
231
|
|
|
232
232
|
// group sync
|
|
233
|
-
const { syncAllJoinedGroups } = await import("
|
|
233
|
+
const { syncAllJoinedGroups } = await import("../cli/group-helpers.js");
|
|
234
234
|
syncAllJoinedGroups({ peers, groups })
|
|
235
235
|
.then((results) => {
|
|
236
236
|
for (const r of results) {
|
|
@@ -379,7 +379,7 @@ export async function startDaemonMain(VERSION) {
|
|
|
379
379
|
emitAutoUpdate("auto-update-noop", { current: VERSION, latest });
|
|
380
380
|
return;
|
|
381
381
|
}
|
|
382
|
-
const { compareSemver } = await import("
|
|
382
|
+
const { compareSemver } = await import("../cli/policy.js");
|
|
383
383
|
if (compareSemver(latest, VERSION) <= 0) {
|
|
384
384
|
emitAutoUpdate("auto-update-noop", { current: VERSION, latest, reason: "not newer" });
|
|
385
385
|
return;
|
|
@@ -397,7 +397,7 @@ export async function startDaemonMain(VERSION) {
|
|
|
397
397
|
emitAutoUpdate("auto-update-restarting", { current: VERSION, latest });
|
|
398
398
|
const { stopDaemon, startDaemon } = await import("../daemon.js");
|
|
399
399
|
try { stopDaemon(); } catch (e) { emitAutoUpdate("auto-update-stop-failed", { error: errMsg(e) }); }
|
|
400
|
-
const { waitForHealth } = await import("
|
|
400
|
+
const { waitForHealth } = await import("../cli/policy.js");
|
|
401
401
|
const newPid = startDaemon([]);
|
|
402
402
|
await waitForHealth(resolvePort(), 8000);
|
|
403
403
|
console.log(`auto-update: restarted as v${latest} (pid ${newPid})`);
|