@ai-setting/roy-agent-cli 1.5.55 → 1.5.57
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 +17 -3
- package/dist/index.js +17 -3
- package/dist/roy-agent-linux-x64/bin/roy-agent +0 -0
- package/package.json +3 -3
package/dist/bin/roy-agent.js
CHANGED
|
@@ -7319,7 +7319,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7319
7319
|
var require_package = __commonJS((exports, module) => {
|
|
7320
7320
|
module.exports = {
|
|
7321
7321
|
name: "@ai-setting/roy-agent-cli",
|
|
7322
|
-
version: "1.5.
|
|
7322
|
+
version: "1.5.57",
|
|
7323
7323
|
type: "module",
|
|
7324
7324
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7325
7325
|
main: "./dist/index.js",
|
|
@@ -7345,8 +7345,8 @@ var require_package = __commonJS((exports, module) => {
|
|
|
7345
7345
|
typecheck: "npx tsc --noEmit --skipLibCheck"
|
|
7346
7346
|
},
|
|
7347
7347
|
dependencies: {
|
|
7348
|
-
"@ai-setting/roy-agent-coder-harness": "^1.5.
|
|
7349
|
-
"@ai-setting/roy-agent-core": "^1.5.
|
|
7348
|
+
"@ai-setting/roy-agent-coder-harness": "^1.5.48",
|
|
7349
|
+
"@ai-setting/roy-agent-core": "^1.5.56",
|
|
7350
7350
|
"@ai-setting/roy-agent-ontology-harness": "^1.5.47",
|
|
7351
7351
|
chalk: "^5.6.2",
|
|
7352
7352
|
commander: "^14.0.3",
|
|
@@ -7414,6 +7414,11 @@ class CliQuietModeService {
|
|
|
7414
7414
|
isQuiet() {
|
|
7415
7415
|
return isCoreQuietMode();
|
|
7416
7416
|
}
|
|
7417
|
+
setQuietFromArgv(argv) {
|
|
7418
|
+
if (argv.quiet === true) {
|
|
7419
|
+
setCoreQuietMode(true);
|
|
7420
|
+
}
|
|
7421
|
+
}
|
|
7417
7422
|
reset() {
|
|
7418
7423
|
setCoreQuietMode(false);
|
|
7419
7424
|
}
|
|
@@ -8596,6 +8601,7 @@ function createActCommand(externalEnvService) {
|
|
|
8596
8601
|
const context = {
|
|
8597
8602
|
sessionId,
|
|
8598
8603
|
...buildActAgentContext(args.agent),
|
|
8604
|
+
model: args.model,
|
|
8599
8605
|
metadata: {
|
|
8600
8606
|
originalQuery: args.message,
|
|
8601
8607
|
traceId
|
|
@@ -9697,6 +9703,9 @@ function createInteractiveCommand(externalEnvService) {
|
|
|
9697
9703
|
alias: "a",
|
|
9698
9704
|
describe: "指定使用的 agent (如 explore, general)",
|
|
9699
9705
|
type: "string"
|
|
9706
|
+
}).option("model", {
|
|
9707
|
+
describe: "使用的模型",
|
|
9708
|
+
type: "string"
|
|
9700
9709
|
}),
|
|
9701
9710
|
async handler(args) {
|
|
9702
9711
|
CliQuietModeService.getInstance().setQuiet(true);
|
|
@@ -9862,6 +9871,7 @@ function createInteractiveCommand(externalEnvService) {
|
|
|
9862
9871
|
resetStreamAbort();
|
|
9863
9872
|
const mergedContext = {
|
|
9864
9873
|
...currentAgentContext,
|
|
9874
|
+
model: args.model,
|
|
9865
9875
|
...agentContext
|
|
9866
9876
|
};
|
|
9867
9877
|
return queryExecutor.execute(message, sessionId, {
|
|
@@ -12844,6 +12854,7 @@ var ListCommand4 = {
|
|
|
12844
12854
|
type: a.type,
|
|
12845
12855
|
description: a.description,
|
|
12846
12856
|
workflow: a.workflow,
|
|
12857
|
+
model: a.model,
|
|
12847
12858
|
systemPromptRef: a.systemPromptRef,
|
|
12848
12859
|
hasInlinePrompt: !!a.systemPrompt
|
|
12849
12860
|
})),
|
|
@@ -12855,6 +12866,7 @@ var ListCommand4 = {
|
|
|
12855
12866
|
const header = [
|
|
12856
12867
|
chalk28.bold("Name"),
|
|
12857
12868
|
chalk28.bold("Type"),
|
|
12869
|
+
chalk28.bold("Model"),
|
|
12858
12870
|
chalk28.bold("Workflow"),
|
|
12859
12871
|
chalk28.bold("Description")
|
|
12860
12872
|
].join(" | ");
|
|
@@ -12868,9 +12880,11 @@ var ListCommand4 = {
|
|
|
12868
12880
|
const rows = agents.map((a) => {
|
|
12869
12881
|
const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
|
|
12870
12882
|
const workflowDisplay = a.type === "workflow" && a.workflow ? chalk28.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk28.gray("-");
|
|
12883
|
+
const modelDisplay = a.model ? chalk28.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk28.gray("-");
|
|
12871
12884
|
return [
|
|
12872
12885
|
chalk28.cyan(a.name),
|
|
12873
12886
|
typeColor(a.type)(a.type),
|
|
12887
|
+
modelDisplay,
|
|
12874
12888
|
workflowDisplay,
|
|
12875
12889
|
desc2
|
|
12876
12890
|
].join(" | ");
|
package/dist/index.js
CHANGED
|
@@ -7318,7 +7318,7 @@ var require_dist = __commonJS((exports) => {
|
|
|
7318
7318
|
var require_package = __commonJS((exports, module) => {
|
|
7319
7319
|
module.exports = {
|
|
7320
7320
|
name: "@ai-setting/roy-agent-cli",
|
|
7321
|
-
version: "1.5.
|
|
7321
|
+
version: "1.5.57",
|
|
7322
7322
|
type: "module",
|
|
7323
7323
|
description: "CLI for roy-agent - Non-interactive command execution",
|
|
7324
7324
|
main: "./dist/index.js",
|
|
@@ -7344,8 +7344,8 @@ var require_package = __commonJS((exports, module) => {
|
|
|
7344
7344
|
typecheck: "npx tsc --noEmit --skipLibCheck"
|
|
7345
7345
|
},
|
|
7346
7346
|
dependencies: {
|
|
7347
|
-
"@ai-setting/roy-agent-coder-harness": "^1.5.
|
|
7348
|
-
"@ai-setting/roy-agent-core": "^1.5.
|
|
7347
|
+
"@ai-setting/roy-agent-coder-harness": "^1.5.48",
|
|
7348
|
+
"@ai-setting/roy-agent-core": "^1.5.56",
|
|
7349
7349
|
"@ai-setting/roy-agent-ontology-harness": "^1.5.47",
|
|
7350
7350
|
chalk: "^5.6.2",
|
|
7351
7351
|
commander: "^14.0.3",
|
|
@@ -7413,6 +7413,11 @@ class CliQuietModeService {
|
|
|
7413
7413
|
isQuiet() {
|
|
7414
7414
|
return isCoreQuietMode();
|
|
7415
7415
|
}
|
|
7416
|
+
setQuietFromArgv(argv) {
|
|
7417
|
+
if (argv.quiet === true) {
|
|
7418
|
+
setCoreQuietMode(true);
|
|
7419
|
+
}
|
|
7420
|
+
}
|
|
7416
7421
|
reset() {
|
|
7417
7422
|
setCoreQuietMode(false);
|
|
7418
7423
|
}
|
|
@@ -8595,6 +8600,7 @@ function createActCommand(externalEnvService) {
|
|
|
8595
8600
|
const context = {
|
|
8596
8601
|
sessionId,
|
|
8597
8602
|
...buildActAgentContext(args.agent),
|
|
8603
|
+
model: args.model,
|
|
8598
8604
|
metadata: {
|
|
8599
8605
|
originalQuery: args.message,
|
|
8600
8606
|
traceId
|
|
@@ -9696,6 +9702,9 @@ function createInteractiveCommand(externalEnvService) {
|
|
|
9696
9702
|
alias: "a",
|
|
9697
9703
|
describe: "指定使用的 agent (如 explore, general)",
|
|
9698
9704
|
type: "string"
|
|
9705
|
+
}).option("model", {
|
|
9706
|
+
describe: "使用的模型",
|
|
9707
|
+
type: "string"
|
|
9699
9708
|
}),
|
|
9700
9709
|
async handler(args) {
|
|
9701
9710
|
CliQuietModeService.getInstance().setQuiet(true);
|
|
@@ -9861,6 +9870,7 @@ function createInteractiveCommand(externalEnvService) {
|
|
|
9861
9870
|
resetStreamAbort();
|
|
9862
9871
|
const mergedContext = {
|
|
9863
9872
|
...currentAgentContext,
|
|
9873
|
+
model: args.model,
|
|
9864
9874
|
...agentContext
|
|
9865
9875
|
};
|
|
9866
9876
|
return queryExecutor.execute(message, sessionId, {
|
|
@@ -12843,6 +12853,7 @@ var ListCommand4 = {
|
|
|
12843
12853
|
type: a.type,
|
|
12844
12854
|
description: a.description,
|
|
12845
12855
|
workflow: a.workflow,
|
|
12856
|
+
model: a.model,
|
|
12846
12857
|
systemPromptRef: a.systemPromptRef,
|
|
12847
12858
|
hasInlinePrompt: !!a.systemPrompt
|
|
12848
12859
|
})),
|
|
@@ -12854,6 +12865,7 @@ var ListCommand4 = {
|
|
|
12854
12865
|
const header = [
|
|
12855
12866
|
chalk28.bold("Name"),
|
|
12856
12867
|
chalk28.bold("Type"),
|
|
12868
|
+
chalk28.bold("Model"),
|
|
12857
12869
|
chalk28.bold("Workflow"),
|
|
12858
12870
|
chalk28.bold("Description")
|
|
12859
12871
|
].join(" | ");
|
|
@@ -12867,9 +12879,11 @@ var ListCommand4 = {
|
|
|
12867
12879
|
const rows = agents.map((a) => {
|
|
12868
12880
|
const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
|
|
12869
12881
|
const workflowDisplay = a.type === "workflow" && a.workflow ? chalk28.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk28.gray("-");
|
|
12882
|
+
const modelDisplay = a.model ? chalk28.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk28.gray("-");
|
|
12870
12883
|
return [
|
|
12871
12884
|
chalk28.cyan(a.name),
|
|
12872
12885
|
typeColor(a.type)(a.type),
|
|
12886
|
+
modelDisplay,
|
|
12873
12887
|
workflowDisplay,
|
|
12874
12888
|
desc2
|
|
12875
12889
|
].join(" | ");
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ai-setting/roy-agent-cli",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.57",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "CLI for roy-agent - Non-interactive command execution",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"typecheck": "npx tsc --noEmit --skipLibCheck"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@ai-setting/roy-agent-coder-harness": "^1.5.
|
|
30
|
-
"@ai-setting/roy-agent-core": "^1.5.
|
|
29
|
+
"@ai-setting/roy-agent-coder-harness": "^1.5.48",
|
|
30
|
+
"@ai-setting/roy-agent-core": "^1.5.56",
|
|
31
31
|
"@ai-setting/roy-agent-ontology-harness": "^1.5.47",
|
|
32
32
|
"chalk": "^5.6.2",
|
|
33
33
|
"commander": "^14.0.3",
|