patchcord 0.5.53 → 0.5.54
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/bin/patchcord.mjs +2 -2
- package/package.json +1 -1
package/bin/patchcord.mjs
CHANGED
|
@@ -73,7 +73,7 @@ Usage:
|
|
|
73
73
|
patchcord Setup via browser (patchcord.dev)
|
|
74
74
|
patchcord --token <token> [--server <url>] Headless / self-hosted setup
|
|
75
75
|
patchcord --full Same + full statusline
|
|
76
|
-
patchcord --rename <new-name> [--
|
|
76
|
+
patchcord --rename <new-name> [--agent-type <type>] Rename this agent
|
|
77
77
|
patchcord subscribe Start the realtime listener
|
|
78
78
|
patchcord update Update to the latest version
|
|
79
79
|
patchcord --version Show installed version
|
|
@@ -119,7 +119,7 @@ if (cmd === "subscribe") {
|
|
|
119
119
|
const newName = (process.argv[renameIdx + 1] || "").trim().toLowerCase();
|
|
120
120
|
const expectIdx = process.argv.indexOf("--expect-token");
|
|
121
121
|
const expectPrefix = expectIdx !== -1 ? (process.argv[expectIdx + 1] || "").trim() : "";
|
|
122
|
-
const toolIdx = process.argv.indexOf("--tool");
|
|
122
|
+
const toolIdx = process.argv.indexOf("--tool") !== -1 ? process.argv.indexOf("--tool") : process.argv.indexOf("--agent-type");
|
|
123
123
|
const tool = toolIdx !== -1 ? (process.argv[toolIdx + 1] || "").trim().toLowerCase() : "";
|
|
124
124
|
|
|
125
125
|
if (!newName || !/^[a-z][a-z0-9-]{1,49}$/.test(newName)) {
|