chat-heimerdinger 0.1.0 → 0.1.2
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/cli.js +7 -11
- package/dist/daemon-entry.js +1 -1
- package/package.json +2 -2
package/dist/cli.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#!/usr/bin/env
|
|
1
|
+
#!/usr/bin/env node
|
|
2
2
|
// @bun
|
|
3
3
|
import { createRequire } from "node:module";
|
|
4
4
|
var __create = Object.create;
|
|
@@ -59474,17 +59474,13 @@ Shutting down...`);
|
|
|
59474
59474
|
mkdirSync3(LOG_DIR, { recursive: true });
|
|
59475
59475
|
}
|
|
59476
59476
|
const cliPath = new URL(import.meta.url).pathname;
|
|
59477
|
-
const
|
|
59478
|
-
const
|
|
59479
|
-
|
|
59480
|
-
|
|
59481
|
-
|
|
59482
|
-
throw new Error(`tsx not found at: ${tsxPath}`);
|
|
59477
|
+
const distDir = dirname2(cliPath);
|
|
59478
|
+
const daemonScript = join4(distDir, "daemon-entry.js");
|
|
59479
|
+
consola.debug("Daemon paths:", { distDir, daemonScript, LOG_FILE });
|
|
59480
|
+
if (!existsSync8(daemonScript)) {
|
|
59481
|
+
throw new Error(`Daemon script not found at: ${daemonScript}`);
|
|
59483
59482
|
}
|
|
59484
|
-
|
|
59485
|
-
throw new Error(`Server script not found at: ${serverScript}`);
|
|
59486
|
-
}
|
|
59487
|
-
const proc = spawn4("sh", ["-c", `"${tsxPath}" "${serverScript}" >> "${LOG_FILE}" 2>&1`], {
|
|
59483
|
+
const proc = spawn4("sh", ["-c", `node "${daemonScript}" >> "${LOG_FILE}" 2>&1`], {
|
|
59488
59484
|
cwd: process.cwd(),
|
|
59489
59485
|
env: {
|
|
59490
59486
|
...process.env,
|
package/dist/daemon-entry.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chat-heimerdinger",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.2",
|
|
4
4
|
"description": "Bridge IM tools (Slack/Lark) with Claude Code for vibe coding",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
],
|
|
15
15
|
"scripts": {
|
|
16
16
|
"dev": "tsx src/cli.ts",
|
|
17
|
-
"build": "bun build ./src/cli.ts --outdir ./dist --target node && bun build ./src/services/daemon-entry.ts --outdir ./dist --target node && chmod +x ./dist/cli.js",
|
|
17
|
+
"build": "bun build ./src/cli.ts --outdir ./dist --target node && bun build ./src/services/daemon-entry.ts --outdir ./dist --target node && sed -i '1s|#!/usr/bin/env bun|#!/usr/bin/env node|' ./dist/cli.js ./dist/daemon-entry.js && chmod +x ./dist/cli.js",
|
|
18
18
|
"test": "bun test",
|
|
19
19
|
"lint": "biome check .",
|
|
20
20
|
"lint:fix": "biome check . --write",
|