@ai-setting/roy-agent-cli 1.5.116 → 1.5.117
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/bin/roy-agent.js +13 -6
- package/dist/index.js +13 -6
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +1 -1
package/dist/bin/roy-agent.js
CHANGED
|
@@ -7427,7 +7427,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7427
7427
|
var require_package = __commonJS((exports, module) => {
|
|
7428
7428
|
module.exports = {
|
|
7429
7429
|
name: "@ai-setting/roy-agent-cli",
|
|
7430
|
-
version: "1.5.
|
|
7430
|
+
version: "1.5.117",
|
|
7431
7431
|
type: "module",
|
|
7432
7432
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7433
7433
|
main: "./dist/index.js",
|
|
@@ -19482,7 +19482,7 @@ var WorkflowGetCommand = {
|
|
|
19482
19482
|
command: "get <identifier>",
|
|
19483
19483
|
describe: "获取 Workflow 或 Run 详情",
|
|
19484
19484
|
builder: (yargs) => yargs.positional("identifier", {
|
|
19485
|
-
describe: "Workflow 名称或 Run ID",
|
|
19485
|
+
describe: "Workflow 名称或 Run ID (Task #1837: runId == sessionId)",
|
|
19486
19486
|
type: "string",
|
|
19487
19487
|
demandOption: true
|
|
19488
19488
|
}).option("run-id", {
|
|
@@ -19528,7 +19528,7 @@ var WorkflowGetCommand = {
|
|
|
19528
19528
|
}
|
|
19529
19529
|
const service = workflowComponent.getService();
|
|
19530
19530
|
const tool = createWorkflowGetTool(service);
|
|
19531
|
-
const isRunId = args.runId || args.identifier.startsWith("run_");
|
|
19531
|
+
const isRunId = args.runId || args.identifier.startsWith("workflow_run_") || args.identifier.startsWith("workflow_") || args.identifier.startsWith("run_");
|
|
19532
19532
|
if (isRunId) {
|
|
19533
19533
|
const result = await tool.execute({ run_id: args.identifier }, {});
|
|
19534
19534
|
if (!result.success) {
|
|
@@ -19941,7 +19941,14 @@ var runWorkflow = wrapFunction(async function runWorkflowImpl(args) {
|
|
|
19941
19941
|
timeout: args.timeout
|
|
19942
19942
|
}, {});
|
|
19943
19943
|
if (!toolResult.success) {
|
|
19944
|
+
const outAny = toolResult.output;
|
|
19945
|
+
const runId = typeof outAny === "object" && outAny !== null && "run_id" in outAny ? outAny.run_id : undefined;
|
|
19944
19946
|
output.error(toolResult.error || `Failed to run workflow: ${args.identifier}`);
|
|
19947
|
+
if (runId) {
|
|
19948
|
+
output.error(`Run ID: ${runId}`);
|
|
19949
|
+
output.error(chalk70.gray(`
|
|
19950
|
+
\uD83D\uDCA1 Use "roy-agent workflow status ${runId}" to check progress, or "roy-agent workflow run ${args.identifier} --session ${runId}" to resume`));
|
|
19951
|
+
}
|
|
19945
19952
|
process.exit(1);
|
|
19946
19953
|
}
|
|
19947
19954
|
const runData = toolResult.output;
|
|
@@ -20018,7 +20025,7 @@ var WorkflowRunCommand = {
|
|
|
20018
20025
|
type: "string"
|
|
20019
20026
|
}).option("session", {
|
|
20020
20027
|
alias: "s",
|
|
20021
|
-
describe: "从已有 session 恢复运行(支持 workflow pause/interrupt
|
|
20028
|
+
describe: "从已有 session 恢复运行(支持 workflow pause/interrupt 恢复;runId == sessionId,传 workflow run 的 runId 即可)",
|
|
20022
20029
|
type: "string"
|
|
20023
20030
|
}),
|
|
20024
20031
|
handler: runWorkflow
|
|
@@ -20063,7 +20070,7 @@ var WorkflowStopCommand = {
|
|
|
20063
20070
|
command: "stop <runId>",
|
|
20064
20071
|
describe: "停止运行中的 Workflow",
|
|
20065
20072
|
builder: (yargs) => yargs.positional("runId", {
|
|
20066
|
-
describe: "
|
|
20073
|
+
describe: "Workflow run ID (== session ID, Task #1837)",
|
|
20067
20074
|
type: "string",
|
|
20068
20075
|
demandOption: true
|
|
20069
20076
|
}).option("config", {
|
|
@@ -20080,7 +20087,7 @@ var WorkflowStatusCommand = {
|
|
|
20080
20087
|
command: "status <runId>",
|
|
20081
20088
|
describe: "查看 Workflow 运行状态",
|
|
20082
20089
|
builder: (yargs) => yargs.positional("runId", {
|
|
20083
|
-
describe: "
|
|
20090
|
+
describe: "Workflow run ID (== session ID, Task #1837)",
|
|
20084
20091
|
type: "string",
|
|
20085
20092
|
demandOption: true
|
|
20086
20093
|
}).option("watch", {
|
package/dist/index.js
CHANGED
|
@@ -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.5.
|
|
7429
|
+
version: "1.5.117",
|
|
7430
7430
|
type: "module",
|
|
7431
7431
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7432
7432
|
main: "./dist/index.js",
|
|
@@ -19481,7 +19481,7 @@ var WorkflowGetCommand = {
|
|
|
19481
19481
|
command: "get <identifier>",
|
|
19482
19482
|
describe: "获取 Workflow 或 Run 详情",
|
|
19483
19483
|
builder: (yargs) => yargs.positional("identifier", {
|
|
19484
|
-
describe: "Workflow 名称或 Run ID",
|
|
19484
|
+
describe: "Workflow 名称或 Run ID (Task #1837: runId == sessionId)",
|
|
19485
19485
|
type: "string",
|
|
19486
19486
|
demandOption: true
|
|
19487
19487
|
}).option("run-id", {
|
|
@@ -19527,7 +19527,7 @@ var WorkflowGetCommand = {
|
|
|
19527
19527
|
}
|
|
19528
19528
|
const service = workflowComponent.getService();
|
|
19529
19529
|
const tool = createWorkflowGetTool(service);
|
|
19530
|
-
const isRunId = args.runId || args.identifier.startsWith("run_");
|
|
19530
|
+
const isRunId = args.runId || args.identifier.startsWith("workflow_run_") || args.identifier.startsWith("workflow_") || args.identifier.startsWith("run_");
|
|
19531
19531
|
if (isRunId) {
|
|
19532
19532
|
const result = await tool.execute({ run_id: args.identifier }, {});
|
|
19533
19533
|
if (!result.success) {
|
|
@@ -19940,7 +19940,14 @@ var runWorkflow = wrapFunction(async function runWorkflowImpl(args) {
|
|
|
19940
19940
|
timeout: args.timeout
|
|
19941
19941
|
}, {});
|
|
19942
19942
|
if (!toolResult.success) {
|
|
19943
|
+
const outAny = toolResult.output;
|
|
19944
|
+
const runId = typeof outAny === "object" && outAny !== null && "run_id" in outAny ? outAny.run_id : undefined;
|
|
19943
19945
|
output.error(toolResult.error || `Failed to run workflow: ${args.identifier}`);
|
|
19946
|
+
if (runId) {
|
|
19947
|
+
output.error(`Run ID: ${runId}`);
|
|
19948
|
+
output.error(chalk70.gray(`
|
|
19949
|
+
\uD83D\uDCA1 Use "roy-agent workflow status ${runId}" to check progress, or "roy-agent workflow run ${args.identifier} --session ${runId}" to resume`));
|
|
19950
|
+
}
|
|
19944
19951
|
process.exit(1);
|
|
19945
19952
|
}
|
|
19946
19953
|
const runData = toolResult.output;
|
|
@@ -20017,7 +20024,7 @@ var WorkflowRunCommand = {
|
|
|
20017
20024
|
type: "string"
|
|
20018
20025
|
}).option("session", {
|
|
20019
20026
|
alias: "s",
|
|
20020
|
-
describe: "从已有 session 恢复运行(支持 workflow pause/interrupt
|
|
20027
|
+
describe: "从已有 session 恢复运行(支持 workflow pause/interrupt 恢复;runId == sessionId,传 workflow run 的 runId 即可)",
|
|
20021
20028
|
type: "string"
|
|
20022
20029
|
}),
|
|
20023
20030
|
handler: runWorkflow
|
|
@@ -20062,7 +20069,7 @@ var WorkflowStopCommand = {
|
|
|
20062
20069
|
command: "stop <runId>",
|
|
20063
20070
|
describe: "停止运行中的 Workflow",
|
|
20064
20071
|
builder: (yargs) => yargs.positional("runId", {
|
|
20065
|
-
describe: "
|
|
20072
|
+
describe: "Workflow run ID (== session ID, Task #1837)",
|
|
20066
20073
|
type: "string",
|
|
20067
20074
|
demandOption: true
|
|
20068
20075
|
}).option("config", {
|
|
@@ -20079,7 +20086,7 @@ var WorkflowStatusCommand = {
|
|
|
20079
20086
|
command: "status <runId>",
|
|
20080
20087
|
describe: "查看 Workflow 运行状态",
|
|
20081
20088
|
builder: (yargs) => yargs.positional("runId", {
|
|
20082
|
-
describe: "
|
|
20089
|
+
describe: "Workflow run ID (== session ID, Task #1837)",
|
|
20083
20090
|
type: "string",
|
|
20084
20091
|
demandOption: true
|
|
20085
20092
|
}).option("watch", {
|
|
Binary file
|