@tangle-network/sdk-cli-runner 0.3.2 → 0.3.4
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/dist/index.mjs +5 -5
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -1939,6 +1939,7 @@ var RpcLifecycle = class {
|
|
|
1939
1939
|
closed = false;
|
|
1940
1940
|
exitReason;
|
|
1941
1941
|
childError;
|
|
1942
|
+
exitCause = "process-exit";
|
|
1942
1943
|
closeHandlers = /* @__PURE__ */ new Set();
|
|
1943
1944
|
childClosed = false;
|
|
1944
1945
|
closing;
|
|
@@ -1969,13 +1970,12 @@ var RpcLifecycle = class {
|
|
|
1969
1970
|
if (signal) {
|
|
1970
1971
|
const onAbort = () => {
|
|
1971
1972
|
this.logger.warn("AbortSignal fired — closing bridge");
|
|
1973
|
+
this.exitCause = "aborted";
|
|
1972
1974
|
this.close().catch((error) => reportCleanupFailure(this.logger, "RPC abort cleanup failed", error));
|
|
1973
1975
|
};
|
|
1974
1976
|
if (signal.aborted) onAbort();
|
|
1975
|
-
else {
|
|
1976
|
-
|
|
1977
|
-
child.once("exit", () => signal.removeEventListener("abort", onAbort));
|
|
1978
|
-
}
|
|
1977
|
+
else signal.addEventListener("abort", onAbort, { once: true });
|
|
1978
|
+
child.once("exit", () => signal.removeEventListener("abort", onAbort));
|
|
1979
1979
|
}
|
|
1980
1980
|
}
|
|
1981
1981
|
onClose(handler) {
|
|
@@ -2023,7 +2023,7 @@ var RpcLifecycle = class {
|
|
|
2023
2023
|
code,
|
|
2024
2024
|
signal: exitSignal,
|
|
2025
2025
|
...this.childError ? { error: this.childError } : {},
|
|
2026
|
-
reason: this.childError ? "process-error" :
|
|
2026
|
+
reason: this.childError ? "process-error" : this.exitCause
|
|
2027
2027
|
};
|
|
2028
2028
|
if (this.owner.ownsProcessGroup) this.owner.finish().then(() => this.settleClose(reason), (error) => this.settleClose({
|
|
2029
2029
|
...reason,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tangle-network/sdk-cli-runner",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.4",
|
|
4
4
|
"description": "Generic CLI process spawning with stdin/stdout streaming and JSONL parsing",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"registry": "https://registry.npmjs.org"
|
|
27
27
|
},
|
|
28
28
|
"tangleRelease": {
|
|
29
|
-
"sourceSha": "
|
|
30
|
-
"mergedAt": "2026-11-
|
|
29
|
+
"sourceSha": "5c412c655057c31f4cd0a73424058d7d203f8a31",
|
|
30
|
+
"mergedAt": "2026-11-01T21:26:40-08:00"
|
|
31
31
|
},
|
|
32
32
|
"scripts": {
|
|
33
33
|
"build": "tsdown",
|