@integrity-labs/agt-cli 0.12.3 → 0.12.5
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/bin/agt.js +3 -3
- package/dist/{chunk-S5VHDDAJ.js → chunk-35KA6J3P.js} +42 -29
- package/dist/chunk-35KA6J3P.js.map +1 -0
- package/dist/lib/manager-worker.js +4 -2
- package/dist/lib/manager-worker.js.map +1 -1
- package/mcp/direct-chat-channel.js +12 -0
- package/package.json +1 -1
- package/dist/chunk-S5VHDDAJ.js.map +0 -1
|
@@ -13983,3 +13983,15 @@ process.stderr.write(
|
|
|
13983
13983
|
`direct-chat-channel: Started (agent=${AGT_AGENT_ID}, polling=disabled \u2014 using Realtime)
|
|
13984
13984
|
`
|
|
13985
13985
|
);
|
|
13986
|
+
var isShuttingDown = false;
|
|
13987
|
+
function shutdown(reason) {
|
|
13988
|
+
if (isShuttingDown) return;
|
|
13989
|
+
isShuttingDown = true;
|
|
13990
|
+
process.stderr.write(`direct-chat-channel: ${reason} \u2014 exiting
|
|
13991
|
+
`);
|
|
13992
|
+
setTimeout(() => process.exit(0), 100).unref();
|
|
13993
|
+
}
|
|
13994
|
+
process.stdin.on("close", () => shutdown("stdin closed"));
|
|
13995
|
+
process.stdin.on("end", () => shutdown("stdin ended"));
|
|
13996
|
+
process.on("SIGTERM", () => shutdown("SIGTERM"));
|
|
13997
|
+
process.on("SIGINT", () => shutdown("SIGINT"));
|