@ai-setting/roy-agent-cli 1.5.54 → 1.5.56

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.
@@ -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.54",
7322
+ version: "1.5.56",
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.46",
7349
- "@ai-setting/roy-agent-core": "^1.5.53",
7348
+ "@ai-setting/roy-agent-coder-harness": "^1.5.47",
7349
+ "@ai-setting/roy-agent-core": "^1.5.55",
7350
7350
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
7351
7351
  chalk: "^5.6.2",
7352
7352
  commander: "^14.0.3",
@@ -8596,6 +8596,7 @@ function createActCommand(externalEnvService) {
8596
8596
  const context = {
8597
8597
  sessionId,
8598
8598
  ...buildActAgentContext(args.agent),
8599
+ model: args.model,
8599
8600
  metadata: {
8600
8601
  originalQuery: args.message,
8601
8602
  traceId
@@ -9697,6 +9698,9 @@ function createInteractiveCommand(externalEnvService) {
9697
9698
  alias: "a",
9698
9699
  describe: "指定使用的 agent (如 explore, general)",
9699
9700
  type: "string"
9701
+ }).option("model", {
9702
+ describe: "使用的模型",
9703
+ type: "string"
9700
9704
  }),
9701
9705
  async handler(args) {
9702
9706
  CliQuietModeService.getInstance().setQuiet(true);
@@ -9862,6 +9866,7 @@ function createInteractiveCommand(externalEnvService) {
9862
9866
  resetStreamAbort();
9863
9867
  const mergedContext = {
9864
9868
  ...currentAgentContext,
9869
+ model: args.model,
9865
9870
  ...agentContext
9866
9871
  };
9867
9872
  return queryExecutor.execute(message, sessionId, {
@@ -12844,6 +12849,7 @@ var ListCommand4 = {
12844
12849
  type: a.type,
12845
12850
  description: a.description,
12846
12851
  workflow: a.workflow,
12852
+ model: a.model,
12847
12853
  systemPromptRef: a.systemPromptRef,
12848
12854
  hasInlinePrompt: !!a.systemPrompt
12849
12855
  })),
@@ -12855,6 +12861,7 @@ var ListCommand4 = {
12855
12861
  const header = [
12856
12862
  chalk28.bold("Name"),
12857
12863
  chalk28.bold("Type"),
12864
+ chalk28.bold("Model"),
12858
12865
  chalk28.bold("Workflow"),
12859
12866
  chalk28.bold("Description")
12860
12867
  ].join(" | ");
@@ -12868,9 +12875,11 @@ var ListCommand4 = {
12868
12875
  const rows = agents.map((a) => {
12869
12876
  const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
12870
12877
  const workflowDisplay = a.type === "workflow" && a.workflow ? chalk28.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk28.gray("-");
12878
+ const modelDisplay = a.model ? chalk28.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk28.gray("-");
12871
12879
  return [
12872
12880
  chalk28.cyan(a.name),
12873
12881
  typeColor(a.type)(a.type),
12882
+ modelDisplay,
12874
12883
  workflowDisplay,
12875
12884
  desc2
12876
12885
  ].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.54",
7321
+ version: "1.5.56",
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.46",
7348
- "@ai-setting/roy-agent-core": "^1.5.53",
7347
+ "@ai-setting/roy-agent-coder-harness": "^1.5.47",
7348
+ "@ai-setting/roy-agent-core": "^1.5.55",
7349
7349
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
7350
7350
  chalk: "^5.6.2",
7351
7351
  commander: "^14.0.3",
@@ -8595,6 +8595,7 @@ function createActCommand(externalEnvService) {
8595
8595
  const context = {
8596
8596
  sessionId,
8597
8597
  ...buildActAgentContext(args.agent),
8598
+ model: args.model,
8598
8599
  metadata: {
8599
8600
  originalQuery: args.message,
8600
8601
  traceId
@@ -9696,6 +9697,9 @@ function createInteractiveCommand(externalEnvService) {
9696
9697
  alias: "a",
9697
9698
  describe: "指定使用的 agent (如 explore, general)",
9698
9699
  type: "string"
9700
+ }).option("model", {
9701
+ describe: "使用的模型",
9702
+ type: "string"
9699
9703
  }),
9700
9704
  async handler(args) {
9701
9705
  CliQuietModeService.getInstance().setQuiet(true);
@@ -9861,6 +9865,7 @@ function createInteractiveCommand(externalEnvService) {
9861
9865
  resetStreamAbort();
9862
9866
  const mergedContext = {
9863
9867
  ...currentAgentContext,
9868
+ model: args.model,
9864
9869
  ...agentContext
9865
9870
  };
9866
9871
  return queryExecutor.execute(message, sessionId, {
@@ -12843,6 +12848,7 @@ var ListCommand4 = {
12843
12848
  type: a.type,
12844
12849
  description: a.description,
12845
12850
  workflow: a.workflow,
12851
+ model: a.model,
12846
12852
  systemPromptRef: a.systemPromptRef,
12847
12853
  hasInlinePrompt: !!a.systemPrompt
12848
12854
  })),
@@ -12854,6 +12860,7 @@ var ListCommand4 = {
12854
12860
  const header = [
12855
12861
  chalk28.bold("Name"),
12856
12862
  chalk28.bold("Type"),
12863
+ chalk28.bold("Model"),
12857
12864
  chalk28.bold("Workflow"),
12858
12865
  chalk28.bold("Description")
12859
12866
  ].join(" | ");
@@ -12867,9 +12874,11 @@ var ListCommand4 = {
12867
12874
  const rows = agents.map((a) => {
12868
12875
  const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
12869
12876
  const workflowDisplay = a.type === "workflow" && a.workflow ? chalk28.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk28.gray("-");
12877
+ const modelDisplay = a.model ? chalk28.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk28.gray("-");
12870
12878
  return [
12871
12879
  chalk28.cyan(a.name),
12872
12880
  typeColor(a.type)(a.type),
12881
+ modelDisplay,
12873
12882
  workflowDisplay,
12874
12883
  desc2
12875
12884
  ].join(" | ");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.5.54",
3
+ "version": "1.5.56",
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.46",
30
- "@ai-setting/roy-agent-core": "^1.5.53",
29
+ "@ai-setting/roy-agent-coder-harness": "^1.5.47",
30
+ "@ai-setting/roy-agent-core": "^1.5.55",
31
31
  "@ai-setting/roy-agent-ontology-harness": "^1.5.47",
32
32
  "chalk": "^5.6.2",
33
33
  "commander": "^14.0.3",