@ai-setting/roy-agent-cli 1.6.7 → 1.6.9
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 +11 -17
- package/dist/index.js +11 -17
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +1 -1
package/dist/bin/roy-agent.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.6.
|
|
7429
|
+
version: "1.6.9",
|
|
7430
7430
|
type: "module",
|
|
7431
7431
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7432
7432
|
main: "./dist/index.js",
|
|
@@ -13703,7 +13703,13 @@ var TreeCommand = {
|
|
|
13703
13703
|
description: "以指定任务 ID 作为根开始构建子树(仅展示该任务及其后代)"
|
|
13704
13704
|
}).option("max-depth", {
|
|
13705
13705
|
type: "number",
|
|
13706
|
-
|
|
13706
|
+
alias: "depth",
|
|
13707
|
+
description: "[已弃用] 请使用 --depth;保留 1 版本兼容(alias)",
|
|
13708
|
+
hidden: true
|
|
13709
|
+
}).option("depth", {
|
|
13710
|
+
type: "number",
|
|
13711
|
+
description: "展示深度:0=只根任务(无 children),1=根+1 层,2=根+2 层(默认),-1=全部层级",
|
|
13712
|
+
default: 2
|
|
13707
13713
|
}).option("json", {
|
|
13708
13714
|
alias: "j",
|
|
13709
13715
|
type: "boolean",
|
|
@@ -13767,7 +13773,7 @@ var TreeCommand = {
|
|
|
13767
13773
|
output.log(chalk26.gray("No tasks to display."));
|
|
13768
13774
|
return;
|
|
13769
13775
|
}
|
|
13770
|
-
output.log(renderTaskTree(tree, { maxDepth: args.
|
|
13776
|
+
output.log(renderTaskTree(tree, { maxDepth: args.depth, rootId: args.rootId }));
|
|
13771
13777
|
} catch (error) {
|
|
13772
13778
|
output.error(`Failed to build task tree: ${error}`);
|
|
13773
13779
|
process.exit(1);
|
|
@@ -17553,11 +17559,8 @@ var EventSourceAddCommand = {
|
|
|
17553
17559
|
}).option("profile", {
|
|
17554
17560
|
describe: "Profile 名称(lark-cli / bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取配置;多 appId / 多账户场景必要,参考 #1637)",
|
|
17555
17561
|
type: "string"
|
|
17556
|
-
}).option("address", {
|
|
17557
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17558
|
-
type: "string"
|
|
17559
17562
|
}).option("email", {
|
|
17560
|
-
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.
|
|
17563
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.14 strict email-only;与 --profile 互斥)",
|
|
17561
17564
|
type: "string"
|
|
17562
17565
|
}).option("tls-skip-verify", {
|
|
17563
17566
|
describe: "跳过 TLS 证书校验(bounty-im 类型用,wss:// 自签名场景,生产环境不推荐)",
|
|
@@ -17628,7 +17631,6 @@ var EventSourceAddCommand = {
|
|
|
17628
17631
|
cron: a.cron,
|
|
17629
17632
|
profile: a.profile,
|
|
17630
17633
|
email: resolvedEmail,
|
|
17631
|
-
address: a.address,
|
|
17632
17634
|
imServerUrl: resolvedServerUrl,
|
|
17633
17635
|
tlsSkipVerify: a.tlsSkipVerify === true,
|
|
17634
17636
|
options: a.prompt ? { prompt: a.prompt } : undefined
|
|
@@ -17653,9 +17655,6 @@ var EventSourceAddCommand = {
|
|
|
17653
17655
|
if (resolvedEmail) {
|
|
17654
17656
|
output.log(` Email: ${chalk59.gray(resolvedEmail)}`);
|
|
17655
17657
|
}
|
|
17656
|
-
if (a.address) {
|
|
17657
|
-
output.log(` Address: ${chalk59.gray(a.address)}`);
|
|
17658
|
-
}
|
|
17659
17658
|
if (a.imServerUrl) {
|
|
17660
17659
|
output.log(` IM Server URL: ${chalk59.gray(a.imServerUrl)}`);
|
|
17661
17660
|
}
|
|
@@ -17720,11 +17719,8 @@ var EventSourceUpdateCommand = {
|
|
|
17720
17719
|
}).option("enabled", {
|
|
17721
17720
|
describe: "是否启用",
|
|
17722
17721
|
type: "boolean"
|
|
17723
|
-
}).option("address", {
|
|
17724
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17725
|
-
type: "string"
|
|
17726
17722
|
}).option("email", {
|
|
17727
|
-
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.
|
|
17723
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.14 strict email-only;与 --profile 互斥)",
|
|
17728
17724
|
type: "string"
|
|
17729
17725
|
}).option("profile", {
|
|
17730
17726
|
describe: "Profile 名称(bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取并自动更新 email + imServerUrl)",
|
|
@@ -17797,8 +17793,6 @@ var EventSourceUpdateCommand = {
|
|
|
17797
17793
|
partial.cron = a.cron;
|
|
17798
17794
|
if (a.enabled !== undefined)
|
|
17799
17795
|
partial.enabled = a.enabled;
|
|
17800
|
-
if (a.address !== undefined)
|
|
17801
|
-
partial.address = a.address;
|
|
17802
17796
|
if (a.email !== undefined)
|
|
17803
17797
|
partial.email = a.email;
|
|
17804
17798
|
if (profileEmail !== undefined)
|
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.
|
|
7428
|
+
version: "1.6.9",
|
|
7429
7429
|
type: "module",
|
|
7430
7430
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7431
7431
|
main: "./dist/index.js",
|
|
@@ -13702,7 +13702,13 @@ var TreeCommand = {
|
|
|
13702
13702
|
description: "以指定任务 ID 作为根开始构建子树(仅展示该任务及其后代)"
|
|
13703
13703
|
}).option("max-depth", {
|
|
13704
13704
|
type: "number",
|
|
13705
|
-
|
|
13705
|
+
alias: "depth",
|
|
13706
|
+
description: "[已弃用] 请使用 --depth;保留 1 版本兼容(alias)",
|
|
13707
|
+
hidden: true
|
|
13708
|
+
}).option("depth", {
|
|
13709
|
+
type: "number",
|
|
13710
|
+
description: "展示深度:0=只根任务(无 children),1=根+1 层,2=根+2 层(默认),-1=全部层级",
|
|
13711
|
+
default: 2
|
|
13706
13712
|
}).option("json", {
|
|
13707
13713
|
alias: "j",
|
|
13708
13714
|
type: "boolean",
|
|
@@ -13766,7 +13772,7 @@ var TreeCommand = {
|
|
|
13766
13772
|
output.log(chalk26.gray("No tasks to display."));
|
|
13767
13773
|
return;
|
|
13768
13774
|
}
|
|
13769
|
-
output.log(renderTaskTree(tree, { maxDepth: args.
|
|
13775
|
+
output.log(renderTaskTree(tree, { maxDepth: args.depth, rootId: args.rootId }));
|
|
13770
13776
|
} catch (error) {
|
|
13771
13777
|
output.error(`Failed to build task tree: ${error}`);
|
|
13772
13778
|
process.exit(1);
|
|
@@ -17552,11 +17558,8 @@ var EventSourceAddCommand = {
|
|
|
17552
17558
|
}).option("profile", {
|
|
17553
17559
|
describe: "Profile 名称(lark-cli / bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取配置;多 appId / 多账户场景必要,参考 #1637)",
|
|
17554
17560
|
type: "string"
|
|
17555
|
-
}).option("address", {
|
|
17556
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17557
|
-
type: "string"
|
|
17558
17561
|
}).option("email", {
|
|
17559
|
-
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.
|
|
17562
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.14 strict email-only;与 --profile 互斥)",
|
|
17560
17563
|
type: "string"
|
|
17561
17564
|
}).option("tls-skip-verify", {
|
|
17562
17565
|
describe: "跳过 TLS 证书校验(bounty-im 类型用,wss:// 自签名场景,生产环境不推荐)",
|
|
@@ -17627,7 +17630,6 @@ var EventSourceAddCommand = {
|
|
|
17627
17630
|
cron: a.cron,
|
|
17628
17631
|
profile: a.profile,
|
|
17629
17632
|
email: resolvedEmail,
|
|
17630
|
-
address: a.address,
|
|
17631
17633
|
imServerUrl: resolvedServerUrl,
|
|
17632
17634
|
tlsSkipVerify: a.tlsSkipVerify === true,
|
|
17633
17635
|
options: a.prompt ? { prompt: a.prompt } : undefined
|
|
@@ -17652,9 +17654,6 @@ var EventSourceAddCommand = {
|
|
|
17652
17654
|
if (resolvedEmail) {
|
|
17653
17655
|
output.log(` Email: ${chalk59.gray(resolvedEmail)}`);
|
|
17654
17656
|
}
|
|
17655
|
-
if (a.address) {
|
|
17656
|
-
output.log(` Address: ${chalk59.gray(a.address)}`);
|
|
17657
|
-
}
|
|
17658
17657
|
if (a.imServerUrl) {
|
|
17659
17658
|
output.log(` IM Server URL: ${chalk59.gray(a.imServerUrl)}`);
|
|
17660
17659
|
}
|
|
@@ -17719,11 +17718,8 @@ var EventSourceUpdateCommand = {
|
|
|
17719
17718
|
}).option("enabled", {
|
|
17720
17719
|
describe: "是否启用",
|
|
17721
17720
|
type: "boolean"
|
|
17722
|
-
}).option("address", {
|
|
17723
|
-
describe: "Agent IM 地址(bounty-im 类型用,格式:agent-id@host,v0.12 向后兼容)",
|
|
17724
|
-
type: "string"
|
|
17725
17721
|
}).option("email", {
|
|
17726
|
-
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.
|
|
17722
|
+
describe: "Agent IM 注册邮箱(bounty-im 类型用,v0.14 strict email-only;与 --profile 互斥)",
|
|
17727
17723
|
type: "string"
|
|
17728
17724
|
}).option("profile", {
|
|
17729
17725
|
describe: "Profile 名称(bounty-im 类型用,从 ~/.config/bounty/profiles/<name>.json 读取并自动更新 email + imServerUrl)",
|
|
@@ -17796,8 +17792,6 @@ var EventSourceUpdateCommand = {
|
|
|
17796
17792
|
partial.cron = a.cron;
|
|
17797
17793
|
if (a.enabled !== undefined)
|
|
17798
17794
|
partial.enabled = a.enabled;
|
|
17799
|
-
if (a.address !== undefined)
|
|
17800
|
-
partial.address = a.address;
|
|
17801
17795
|
if (a.email !== undefined)
|
|
17802
17796
|
partial.email = a.email;
|
|
17803
17797
|
if (profileEmail !== undefined)
|
|
Binary file
|