@drisp/cli 0.7.13 → 0.7.14

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.
@@ -1,6 +1,6 @@
1
- import "./chunk-CD6EY4ZE.js";
2
- import "./chunk-5TM2ARN3.js";
1
+ import "./chunk-3LF5QYZK.js";
2
+ import "./chunk-HCTFAAGU.js";
3
3
  import "./chunk-PQIB66SG.js";
4
- import "./chunk-SACVOS6T.js";
4
+ import "./chunk-GGAPZULS.js";
5
5
  import "./chunk-G3PMV62Z.js";
6
6
  //# sourceMappingURL=dashboard-daemon.js.map
package/dist/runner.js CHANGED
@@ -1,6 +1,6 @@
1
- import "./chunk-CD6EY4ZE.js";
2
- import "./chunk-5TM2ARN3.js";
1
+ import "./chunk-3LF5QYZK.js";
2
+ import "./chunk-HCTFAAGU.js";
3
3
  import "./chunk-PQIB66SG.js";
4
- import "./chunk-SACVOS6T.js";
4
+ import "./chunk-GGAPZULS.js";
5
5
  import "./chunk-G3PMV62Z.js";
6
6
  //# sourceMappingURL=runner.js.map
@@ -0,0 +1,24 @@
1
+ #!/usr/bin/env node
2
+
3
+ // ../../modules/runtime/src/session-control/claude-hook-relay.mjs
4
+ import net from "net";
5
+ var socketPath = process.argv[2] || process.env.DRISP_SESSION_CONTROL_SOCKET;
6
+ var token = process.argv[3];
7
+ var input = "";
8
+ for await (const chunk of process.stdin) input += chunk;
9
+ if (!socketPath || !input.trim()) process.exit(0);
10
+ var socket = net.createConnection(socketPath);
11
+ var reply = "";
12
+ socket.on("connect", () => socket.write(JSON.stringify({ input: JSON.parse(input), ...token ? { token } : {} }) + "\n"));
13
+ socket.on("data", (chunk) => {
14
+ reply += chunk;
15
+ const newline = reply.indexOf("\n");
16
+ if (newline < 0) return;
17
+ const { stdout } = JSON.parse(reply.slice(0, newline));
18
+ socket.end();
19
+ if (stdout) process.stdout.write(stdout);
20
+ process.exit(0);
21
+ });
22
+ socket.on("error", () => process.exit(0));
23
+ socket.on("close", () => process.exit(0));
24
+ //# sourceMappingURL=session-control-relay.js.map
package/package.json CHANGED
@@ -17,7 +17,7 @@
17
17
  "hooks",
18
18
  "dashboard"
19
19
  ],
20
- "version": "0.7.13",
20
+ "version": "0.7.14",
21
21
  "license": "MIT",
22
22
  "bin": {
23
23
  "athena": "dist/cli.js",