mycomesh-consumer 0.1.42 → 0.1.43
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/consumer-runtime.mjs +3 -1
- package/src/consumer.mjs +1 -1
package/package.json
CHANGED
package/src/consumer-runtime.mjs
CHANGED
|
@@ -807,6 +807,8 @@ export class NativeConsumerState {
|
|
|
807
807
|
break;
|
|
808
808
|
} catch (error) {
|
|
809
809
|
lastError = error;
|
|
810
|
+
await stopTunnelProcess(child);
|
|
811
|
+
if (share.process === child) share.process = null;
|
|
810
812
|
if (this.share !== share || attempt === 1) throw error;
|
|
811
813
|
await new Promise((resolve) => setTimeout(resolve, 1000));
|
|
812
814
|
}
|
|
@@ -1084,7 +1086,7 @@ function waitForTunnelUrl(child) {
|
|
|
1084
1086
|
}
|
|
1085
1087
|
|
|
1086
1088
|
async function stopTunnelProcess(child) {
|
|
1087
|
-
if (!child || child.exitCode !== null) return;
|
|
1089
|
+
if (!child || child.exitCode !== null || child.signalCode != null) return;
|
|
1088
1090
|
await new Promise((resolve) => {
|
|
1089
1091
|
let settled = false;
|
|
1090
1092
|
const finish = () => {
|
package/src/consumer.mjs
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
createConsumerServer,
|
|
12
12
|
} from "./consumer-runtime.mjs";
|
|
13
13
|
|
|
14
|
-
export const CONSUMER_RELEASE_VERSION = "0.1.
|
|
14
|
+
export const CONSUMER_RELEASE_VERSION = "0.1.43";
|
|
15
15
|
export const API_COMMANDS = new Set(["health", "models", "responses", "chat"]);
|
|
16
16
|
const API_VALUE_OPTIONS = new Set([
|
|
17
17
|
"--base-url",
|