@simonfestl/husky-cli 1.18.1 → 1.19.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/commands/agent.js +6 -4
- package/package.json +1 -1
package/dist/commands/agent.js
CHANGED
|
@@ -287,6 +287,8 @@ const ROLE_EMOJI = {
|
|
|
287
287
|
worker: "\uD83D\uDD27", // Wrench emoji for worker
|
|
288
288
|
reviewer: "\uD83D\uDCDD", // Memo emoji for reviewer
|
|
289
289
|
support: "\uD83C\uDFA7", // Headphones emoji for support
|
|
290
|
+
e2e_agent: "\uD83E\uDDEA", // Test tube emoji for e2e agent
|
|
291
|
+
pr_agent: "\uD83D\uDE80", // Rocket emoji for pr agent
|
|
290
292
|
};
|
|
291
293
|
// husky agent message
|
|
292
294
|
agentCommand
|
|
@@ -436,7 +438,7 @@ agentCommand
|
|
|
436
438
|
process.exit(1);
|
|
437
439
|
}
|
|
438
440
|
// Validate role
|
|
439
|
-
const validRoles = ["supervisor", "worker", "reviewer", "support"];
|
|
441
|
+
const validRoles = ["supervisor", "worker", "reviewer", "support", "e2e_agent", "pr_agent"];
|
|
440
442
|
if (!validRoles.includes(options.role)) {
|
|
441
443
|
console.error(`Error: Invalid role '${options.role}'.`);
|
|
442
444
|
console.error(` Valid roles: ${validRoles.join(", ")}`);
|
|
@@ -527,11 +529,11 @@ agentCommand
|
|
|
527
529
|
for (const agent of agents) {
|
|
528
530
|
const statusIcon = agent.status === "online" ? "\u2714" :
|
|
529
531
|
agent.status === "busy" ? "\u231B" : "\u2717";
|
|
530
|
-
const
|
|
531
|
-
? new Date(agent.
|
|
532
|
+
const lastSeenDisplay = agent.lastSeen
|
|
533
|
+
? new Date(agent.lastSeen).toLocaleString()
|
|
532
534
|
: "never";
|
|
533
535
|
console.log(` ${statusIcon} ${agent.emoji} ${agent.name} (${agent.id})`);
|
|
534
|
-
console.log(` Role: ${agent.role} | Status: ${agent.status} | Last seen: ${
|
|
536
|
+
console.log(` Role: ${agent.role} | Status: ${agent.status} | Last seen: ${lastSeenDisplay}`);
|
|
535
537
|
if (agent.tmuxSession) {
|
|
536
538
|
console.log(` Tmux: ${agent.tmuxSession}`);
|
|
537
539
|
}
|