@ai-setting/roy-agent-cli 1.6.10 → 1.6.12

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.
@@ -7426,7 +7426,7 @@ var require_dist = __commonJS((exports) => {
7426
7426
  var require_package = __commonJS((exports, module) => {
7427
7427
  module.exports = {
7428
7428
  name: "@ai-setting/roy-agent-cli",
7429
- version: "1.6.10",
7429
+ version: "1.6.12",
7430
7430
  type: "module",
7431
7431
  description: "CLI for roy-agent - Non-interactive command execution",
7432
7432
  main: "./dist/index.js",
@@ -11377,6 +11377,38 @@ var ListCommand = {
11377
11377
 
11378
11378
  // src/commands/sessions/get.ts
11379
11379
  import chalk8 from "chalk";
11380
+ function colorWorkflowStatus(status) {
11381
+ switch (status) {
11382
+ case "running":
11383
+ return chalk8.green;
11384
+ case "paused":
11385
+ return chalk8.yellow;
11386
+ case "completed":
11387
+ return chalk8.gray;
11388
+ case "failed":
11389
+ return chalk8.red;
11390
+ case "stopped":
11391
+ return chalk8.magenta;
11392
+ default:
11393
+ return chalk8.gray;
11394
+ }
11395
+ }
11396
+ function colorAgentSessionStatus(status) {
11397
+ switch (status) {
11398
+ case "active":
11399
+ return chalk8.green;
11400
+ case "paused":
11401
+ return chalk8.yellow;
11402
+ case "completed":
11403
+ return chalk8.gray;
11404
+ case "failed":
11405
+ return chalk8.red;
11406
+ case "stopped":
11407
+ return chalk8.magenta;
11408
+ default:
11409
+ return chalk8.gray;
11410
+ }
11411
+ }
11380
11412
  var GetCommand = {
11381
11413
  command: "get <session-id>",
11382
11414
  aliases: ["show"],
@@ -11449,12 +11481,12 @@ var GetCommand = {
11449
11481
  if (workflowMeta.workflowId) {
11450
11482
  lines.push(`│ Workflow ID: ${workflowMeta.workflowId}`);
11451
11483
  }
11452
- const statusColor = workflowMeta.status === "running" ? chalk8.green : workflowMeta.status === "paused" ? chalk8.yellow : workflowMeta.status === "completed" ? chalk8.gray : chalk8.red;
11484
+ const statusColor = colorWorkflowStatus(workflowMeta.status);
11453
11485
  lines.push(`│ Status: ${statusColor(workflowMeta.status)}`);
11454
11486
  if (workflowMeta.agentSessions && workflowMeta.agentSessions.length > 0) {
11455
11487
  lines.push("├─ Agent Sub-sessions ─────────────────────────────────┤");
11456
11488
  workflowMeta.agentSessions.forEach((agent) => {
11457
- const agentStatusColor = agent.status === "active" ? chalk8.green : agent.status === "paused" ? chalk8.yellow : chalk8.gray;
11489
+ const agentStatusColor = colorAgentSessionStatus(agent.status);
11458
11490
  lines.push(`│ ${agent.nodeId}: ${agent.sessionId} (${agentStatusColor(agent.status)})`);
11459
11491
  });
11460
11492
  }
package/dist/index.js CHANGED
@@ -7425,7 +7425,7 @@ var require_dist = __commonJS((exports) => {
7425
7425
  var require_package = __commonJS((exports, module) => {
7426
7426
  module.exports = {
7427
7427
  name: "@ai-setting/roy-agent-cli",
7428
- version: "1.6.10",
7428
+ version: "1.6.12",
7429
7429
  type: "module",
7430
7430
  description: "CLI for roy-agent - Non-interactive command execution",
7431
7431
  main: "./dist/index.js",
@@ -11376,6 +11376,38 @@ var ListCommand = {
11376
11376
 
11377
11377
  // src/commands/sessions/get.ts
11378
11378
  import chalk8 from "chalk";
11379
+ function colorWorkflowStatus(status) {
11380
+ switch (status) {
11381
+ case "running":
11382
+ return chalk8.green;
11383
+ case "paused":
11384
+ return chalk8.yellow;
11385
+ case "completed":
11386
+ return chalk8.gray;
11387
+ case "failed":
11388
+ return chalk8.red;
11389
+ case "stopped":
11390
+ return chalk8.magenta;
11391
+ default:
11392
+ return chalk8.gray;
11393
+ }
11394
+ }
11395
+ function colorAgentSessionStatus(status) {
11396
+ switch (status) {
11397
+ case "active":
11398
+ return chalk8.green;
11399
+ case "paused":
11400
+ return chalk8.yellow;
11401
+ case "completed":
11402
+ return chalk8.gray;
11403
+ case "failed":
11404
+ return chalk8.red;
11405
+ case "stopped":
11406
+ return chalk8.magenta;
11407
+ default:
11408
+ return chalk8.gray;
11409
+ }
11410
+ }
11379
11411
  var GetCommand = {
11380
11412
  command: "get <session-id>",
11381
11413
  aliases: ["show"],
@@ -11448,12 +11480,12 @@ var GetCommand = {
11448
11480
  if (workflowMeta.workflowId) {
11449
11481
  lines.push(`│ Workflow ID: ${workflowMeta.workflowId}`);
11450
11482
  }
11451
- const statusColor = workflowMeta.status === "running" ? chalk8.green : workflowMeta.status === "paused" ? chalk8.yellow : workflowMeta.status === "completed" ? chalk8.gray : chalk8.red;
11483
+ const statusColor = colorWorkflowStatus(workflowMeta.status);
11452
11484
  lines.push(`│ Status: ${statusColor(workflowMeta.status)}`);
11453
11485
  if (workflowMeta.agentSessions && workflowMeta.agentSessions.length > 0) {
11454
11486
  lines.push("├─ Agent Sub-sessions ─────────────────────────────────┤");
11455
11487
  workflowMeta.agentSessions.forEach((agent) => {
11456
- const agentStatusColor = agent.status === "active" ? chalk8.green : agent.status === "paused" ? chalk8.yellow : chalk8.gray;
11488
+ const agentStatusColor = colorAgentSessionStatus(agent.status);
11457
11489
  lines.push(`│ ${agent.nodeId}: ${agent.sessionId} (${agentStatusColor(agent.status)})`);
11458
11490
  });
11459
11491
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.6.10",
3
+ "version": "1.6.12",
4
4
  "type": "module",
5
5
  "description": "CLI for roy-agent - Non-interactive command execution",
6
6
  "main": "./dist/index.js",