ragent-cli 1.7.2 → 1.7.3
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 +13 -5
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -31,7 +31,7 @@ var require_package = __commonJS({
|
|
|
31
31
|
"package.json"(exports2, module2) {
|
|
32
32
|
module2.exports = {
|
|
33
33
|
name: "ragent-cli",
|
|
34
|
-
version: "1.7.
|
|
34
|
+
version: "1.7.3",
|
|
35
35
|
description: "CLI agent for rAgent Live \u2014 browser-first terminal control plane for AI coding agents",
|
|
36
36
|
main: "dist/index.js",
|
|
37
37
|
bin: {
|
|
@@ -609,13 +609,21 @@ function detectAgentType(command) {
|
|
|
609
609
|
const cmd = command.toLowerCase();
|
|
610
610
|
const parts = cmd.split(/\s+/);
|
|
611
611
|
const binary = parts[0]?.split("/").pop() ?? "";
|
|
612
|
-
|
|
612
|
+
let rawScriptArg = "";
|
|
613
|
+
if (binary === "node") {
|
|
614
|
+
for (let i = 1; i < parts.length; i++) {
|
|
615
|
+
if (!parts[i].startsWith("-")) {
|
|
616
|
+
rawScriptArg = parts[i].split("/").pop() ?? "";
|
|
617
|
+
break;
|
|
618
|
+
}
|
|
619
|
+
}
|
|
620
|
+
}
|
|
613
621
|
const scriptArg = rawScriptArg.replace(/\.m?js$/, "");
|
|
614
622
|
if (binary === "claude" || binary === "claude-code" || scriptArg === "cli" && cmd.includes("claude-code")) {
|
|
615
623
|
if (cmd.includes("--chrome-native-host")) return void 0;
|
|
616
624
|
return "Claude Code";
|
|
617
625
|
}
|
|
618
|
-
if (binary === "codex" || scriptArg === "codex"
|
|
626
|
+
if (binary === "codex" || scriptArg === "codex" || cmd.includes("codex-cli")) return "Codex CLI";
|
|
619
627
|
if (binary === "aider") return "aider";
|
|
620
628
|
if (binary === "cursor") {
|
|
621
629
|
if (isElectronProcess(cmd)) return void 0;
|
|
@@ -625,9 +633,9 @@ function detectAgentType(command) {
|
|
|
625
633
|
if (isElectronProcess(cmd)) return void 0;
|
|
626
634
|
return "Windsurf";
|
|
627
635
|
}
|
|
628
|
-
if (binary === "gemini" || scriptArg === "gemini"
|
|
636
|
+
if (binary === "gemini" || scriptArg === "gemini") return "Gemini CLI";
|
|
629
637
|
if (binary === "amazon-q" || binary === "amazon_q") return "Amazon Q";
|
|
630
|
-
if (binary === "copilot" || scriptArg === "copilot"
|
|
638
|
+
if (binary === "copilot" || scriptArg === "copilot") return "Copilot CLI";
|
|
631
639
|
return void 0;
|
|
632
640
|
}
|
|
633
641
|
function sessionInventoryFingerprint(sessions) {
|