ragent-cli 1.1.0 → 1.1.1

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 +14 -8
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -494,14 +494,20 @@ async function collectSessionInventory(hostId, command) {
494
494
  function detectAgentType(command) {
495
495
  if (!command) return void 0;
496
496
  const cmd = command.toLowerCase();
497
- if (cmd.includes("claude")) return "Claude Code";
498
- if (cmd.includes("codex")) return "Codex CLI";
499
- if (cmd.includes("aider")) return "aider";
500
- if (cmd.includes("cursor")) return "Cursor";
501
- if (cmd.includes("windsurf")) return "Windsurf";
502
- if (cmd.includes("gemini")) return "Gemini CLI";
503
- if (cmd.includes("amazon-q") || cmd.includes("amazon_q")) return "Amazon Q";
504
- if (cmd.includes("copilot")) return "Copilot CLI";
497
+ const parts = cmd.split(/\s+/);
498
+ const binary = parts[0]?.split("/").pop() ?? "";
499
+ const scriptArg = binary === "node" && parts[1] ? parts[1].split("/").pop() ?? "" : "";
500
+ if (binary === "claude" || scriptArg === "cli.js" && cmd.includes("claude-code")) {
501
+ if (cmd.includes("--chrome-native-host")) return void 0;
502
+ return "Claude Code";
503
+ }
504
+ if (binary === "codex" || cmd.includes("codex-cli")) return "Codex CLI";
505
+ if (binary === "aider") return "aider";
506
+ if (binary === "cursor") return "Cursor";
507
+ if (binary === "windsurf") return "Windsurf";
508
+ if (binary === "gemini") return "Gemini CLI";
509
+ if (binary === "amazon-q" || binary === "amazon_q") return "Amazon Q";
510
+ if (binary === "copilot") return "Copilot CLI";
505
511
  return void 0;
506
512
  }
507
513
  function sessionInventoryFingerprint(sessions) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ragent-cli",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "description": "CLI agent for rAgent Live — browser-first terminal control plane for AI coding agents",
5
5
  "main": "dist/index.js",
6
6
  "bin": {