@csdwd/ai-teams-agent 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.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  // src/index.ts
4
4
  import { randomUUID as randomUUID2 } from "node:crypto";
5
+ import fs5 from "node:fs";
5
6
  import { fileURLToPath } from "node:url";
6
7
  import WebSocket2 from "ws";
7
8
 
@@ -1054,7 +1055,7 @@ function gracefulShutdown(signal) {
1054
1055
  }
1055
1056
  process.on("SIGTERM", () => gracefulShutdown("SIGTERM"));
1056
1057
  process.on("SIGINT", () => gracefulShutdown("SIGINT"));
1057
- var isCli = process.argv[1] === fileURLToPath(import.meta.url);
1058
+ var isCli = process.argv[1] && fs5.realpathSync(process.argv[1]) === fileURLToPath(import.meta.url);
1058
1059
  if (isCli) {
1059
1060
  const args = process.argv.slice(2);
1060
1061
  if (args.includes("--help") || args.includes("-h")) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@csdwd/ai-teams-agent",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "AI Teams agent — connects to server via WebSocket, spawns Claude CLI to execute tasks",
5
5
  "type": "module",
6
6
  "bin": {