@evandu/super-pi 0.1.291 → 0.1.292
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.
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"src/client/workbench-navigation.ts": "3b229752a8ce4a45eba7aeff040eb33001413190141f1e9b8e5f38246a1761e2",
|
|
119
119
|
"src/client/workbench-search-panel.css": "6978c03db4f17411e9064242b0ff786a520ee8cf58fe8a9d0ea42872ba3737f0"
|
|
120
120
|
},
|
|
121
|
-
"recordedAt": "2026-11-25T05:
|
|
121
|
+
"recordedAt": "2026-11-25T05:54:55.025Z"
|
|
122
122
|
}
|
|
@@ -753,8 +753,26 @@ export class ManagedServers {
|
|
|
753
753
|
throw new Error("未能重新确认所选旧实例及数据目录,未创建新实例或删除任何数据。");
|
|
754
754
|
if (entry.compatibility && entry.profile.service === "online")
|
|
755
755
|
throw new Error("当前连接是正在运行的原有服务,请使用独立连接接管旧托管实例,避免中断未知启动方式。");
|
|
756
|
-
if (entry.installation && entry.installation.root !== selected.root)
|
|
756
|
+
if (entry.installation && entry.installation.root !== selected.root) {
|
|
757
|
+
await this.health(id);
|
|
758
|
+
if (entry.profile.service === "online") {
|
|
759
|
+
const state = await this.serviceJson(entry, "/api/conversations");
|
|
760
|
+
if ((state.conversations ?? []).some((conversation) => ["running", "waiting", "awaiting_background"].includes(conversation.status)))
|
|
761
|
+
throw new Error("远端仍有进行中的任务,请完成后再重新接管");
|
|
762
|
+
}
|
|
757
763
|
await stopRemote(client, entry.installation);
|
|
764
|
+
}
|
|
765
|
+
const previousRelay = this.relays.get(id);
|
|
766
|
+
this.relays.delete(id);
|
|
767
|
+
previousRelay?.terminate();
|
|
768
|
+
this.closeServiceTunnel(id);
|
|
769
|
+
entry.profile.service = "unknown";
|
|
770
|
+
entry.profile.modelChannel = "offline";
|
|
771
|
+
delete entry.profile.transport;
|
|
772
|
+
delete entry.profile.modelTransport;
|
|
773
|
+
delete entry.profile.serviceError;
|
|
774
|
+
delete entry.profile.modelError;
|
|
775
|
+
entry.modelHash = undefined;
|
|
758
776
|
entry.recoveryRoot = selected.root;
|
|
759
777
|
entry.installation = selected.installation;
|
|
760
778
|
entry.instanceId = selected.id;
|