linkgravity 1.7.2 → 1.7.3

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/hooks/hook.js CHANGED
@@ -12,7 +12,9 @@ const APPROVE_PORT = 18080;
12
12
  const TIMEOUT_MS = 3600 * 1000;
13
13
 
14
14
  function emit(payload) {
15
- process.stdout.write(JSON.stringify(payload));
15
+ // Exits explicitly: the keep-alive socket and its hour-long timer stay open after the
16
+ // response arrives, and agy SIGABRTs the process instead of waiting for them to expire.
17
+ process.stdout.write(JSON.stringify(payload), () => process.exit(0));
16
18
  }
17
19
 
18
20
  function loadApproveToken() {
@@ -19,7 +19,7 @@ function log(line) {
19
19
  }
20
20
 
21
21
  function emit(payload) {
22
- process.stdout.write(JSON.stringify(payload));
22
+ process.stdout.write(JSON.stringify(payload), () => process.exit(0));
23
23
  }
24
24
 
25
25
  async function readStdin() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "linkgravity",
3
- "version": "1.7.2",
3
+ "version": "1.7.3",
4
4
  "description": "Discord/Telegram bot bridge for the Antigravity (agy) CLI, with voice interaction support",
5
5
  "scripts": {
6
6
  "start": "node npm-scripts/run-dev.js",