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.
- package/dist/index.js +14 -8
- 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
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
if (cmd.includes("
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
if (cmd.includes("
|
|
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) {
|