@harmonyos-arkts/opencode-acp 0.0.12 → 0.0.13
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.cjs +17 -0
- package/dist/index.cjs.map +2 -2
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -24270,8 +24270,25 @@ async function main() {
|
|
|
24270
24270
|
process.stdin.on("error", reject);
|
|
24271
24271
|
});
|
|
24272
24272
|
}
|
|
24273
|
+
process.on("SIGTERM", () => {
|
|
24274
|
+
sysLog("process.sigterm");
|
|
24275
|
+
flush();
|
|
24276
|
+
process.exit(0);
|
|
24277
|
+
});
|
|
24278
|
+
process.on("uncaughtException", (err) => {
|
|
24279
|
+
sysLog("process.uncaughtException", { message: err.message, stack: err.stack });
|
|
24280
|
+
flush();
|
|
24281
|
+
process.exit(1);
|
|
24282
|
+
});
|
|
24283
|
+
process.on("unhandledRejection", (reason) => {
|
|
24284
|
+
sysLog("process.unhandledRejection", { reason: String(reason) });
|
|
24285
|
+
flush();
|
|
24286
|
+
process.exit(1);
|
|
24287
|
+
});
|
|
24273
24288
|
main().catch((err) => {
|
|
24274
24289
|
console.error("[harmony-acp] Fatal error:", err);
|
|
24290
|
+
sysLog("process.fatalError", { message: String(err), stack: err?.stack });
|
|
24291
|
+
flush();
|
|
24275
24292
|
process.exit(1);
|
|
24276
24293
|
});
|
|
24277
24294
|
//# sourceMappingURL=index.cjs.map
|