@ai-setting/roy-agent-cli 1.5.104 → 1.5.105

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.
@@ -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.104",
7430
+ version: "1.5.105",
7431
7431
  type: "module",
7432
7432
  description: "CLI for roy-agent - Non-interactive command execution",
7433
7433
  main: "./dist/index.js",
@@ -10190,7 +10190,6 @@ ${COLORS.system("[通知2] ❯ " + message.replace(/\n/g, `
10190
10190
  await this.executeInternal(message, { showPrompt: true });
10191
10191
  }
10192
10192
  currentAgentContext = undefined;
10193
- eventSourceSystemPrompts = [];
10194
10193
  isIdle() {
10195
10194
  return !this.isExecuting;
10196
10195
  }
@@ -10481,6 +10480,7 @@ function createInteractiveCommand(externalEnvService) {
10481
10480
  const output = new OutputService2;
10482
10481
  const shouldDisposeEnvService = !externalEnvService;
10483
10482
  const envService = externalEnvService ?? new EnvironmentService(output);
10483
+ let eventSourceSystemPrompts = [];
10484
10484
  const CODER_HARNESS_PLUGINS = new Set([
10485
10485
  "lsp",
10486
10486
  "code-check",
@@ -10635,7 +10635,7 @@ function createInteractiveCommand(externalEnvService) {
10635
10635
  sessionTitle,
10636
10636
  onExecute: async (message, traceId, agentContext) => {
10637
10637
  resetStreamAbort();
10638
- const preloadedPrompts = this.eventSourceSystemPrompts;
10638
+ const preloadedPrompts = eventSourceSystemPrompts;
10639
10639
  const eventSourceSystemPrompt = preloadedPrompts.length > 0 ? joinResolvedSystemPrompts(preloadedPrompts) : undefined;
10640
10640
  const mergedContext = {
10641
10641
  ...currentAgentContext,
@@ -10722,9 +10722,9 @@ function createInteractiveCommand(externalEnvService) {
10722
10722
  process.exit(1);
10723
10723
  }
10724
10724
  const summary = await startEventSources(eventSourceIds, eventSourceComponent, output);
10725
- this.eventSourceSystemPrompts = collectEventSourceSystemPrompts(eventSourceIds, eventSourceComponent);
10726
- if (this.eventSourceSystemPrompts.length > 0) {
10727
- output.info(`\uD83D\uDCE6 Preloaded ${this.eventSourceSystemPrompts.length} event-source systemPrompt(s)`);
10725
+ eventSourceSystemPrompts = collectEventSourceSystemPrompts(eventSourceIds, eventSourceComponent);
10726
+ if (eventSourceSystemPrompts.length > 0) {
10727
+ output.info(`\uD83D\uDCE6 Preloaded ${eventSourceSystemPrompts.length} event-source systemPrompt(s)`);
10728
10728
  }
10729
10729
  if (eventSourceIds.length === 1 && summary.failedCount > 0) {
10730
10730
  process.exit(1);
@@ -13889,6 +13889,11 @@ var ListCommand4 = {
13889
13889
  process.exit(1);
13890
13890
  }
13891
13891
  let agents;
13892
+ const builtInSubAgentNames = new Set([
13893
+ "general",
13894
+ "explore",
13895
+ "roy"
13896
+ ]);
13892
13897
  if (args.type && args.type !== "all") {
13893
13898
  agents = registry.listAgentsByType(args.type);
13894
13899
  } else {
@@ -13900,6 +13905,7 @@ var ListCommand4 = {
13900
13905
  agents: agents.map((a) => ({
13901
13906
  name: a.name,
13902
13907
  type: a.type,
13908
+ source: builtInSubAgentNames.has(a.name) ? "built-in" : "user",
13903
13909
  description: a.description,
13904
13910
  workflow: a.workflow,
13905
13911
  model: a.model,
@@ -13913,6 +13919,7 @@ var ListCommand4 = {
13913
13919
  const header = [
13914
13920
  chalk31.bold("Name"),
13915
13921
  chalk31.bold("Type"),
13922
+ chalk31.bold("Source"),
13916
13923
  chalk31.bold("Model"),
13917
13924
  chalk31.bold("Workflow"),
13918
13925
  chalk31.bold("Description")
@@ -13928,9 +13935,11 @@ var ListCommand4 = {
13928
13935
  const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
13929
13936
  const workflowDisplay = a.type === "workflow" && a.workflow ? chalk31.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk31.gray("-");
13930
13937
  const modelDisplay = a.model ? chalk31.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk31.gray("-");
13938
+ const sourceDisplay = builtInSubAgentNames.has(a.name) ? chalk31.green("built-in") : chalk31.gray("user");
13931
13939
  return [
13932
13940
  chalk31.cyan(a.name),
13933
13941
  typeColor(a.type)(a.type),
13942
+ sourceDisplay,
13934
13943
  modelDisplay,
13935
13944
  workflowDisplay,
13936
13945
  desc2
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.104",
7429
+ version: "1.5.105",
7430
7430
  type: "module",
7431
7431
  description: "CLI for roy-agent - Non-interactive command execution",
7432
7432
  main: "./dist/index.js",
@@ -10189,7 +10189,6 @@ ${COLORS.system("[通知2] ❯ " + message.replace(/\n/g, `
10189
10189
  await this.executeInternal(message, { showPrompt: true });
10190
10190
  }
10191
10191
  currentAgentContext = undefined;
10192
- eventSourceSystemPrompts = [];
10193
10192
  isIdle() {
10194
10193
  return !this.isExecuting;
10195
10194
  }
@@ -10480,6 +10479,7 @@ function createInteractiveCommand(externalEnvService) {
10480
10479
  const output = new OutputService2;
10481
10480
  const shouldDisposeEnvService = !externalEnvService;
10482
10481
  const envService = externalEnvService ?? new EnvironmentService(output);
10482
+ let eventSourceSystemPrompts = [];
10483
10483
  const CODER_HARNESS_PLUGINS = new Set([
10484
10484
  "lsp",
10485
10485
  "code-check",
@@ -10634,7 +10634,7 @@ function createInteractiveCommand(externalEnvService) {
10634
10634
  sessionTitle,
10635
10635
  onExecute: async (message, traceId, agentContext) => {
10636
10636
  resetStreamAbort();
10637
- const preloadedPrompts = this.eventSourceSystemPrompts;
10637
+ const preloadedPrompts = eventSourceSystemPrompts;
10638
10638
  const eventSourceSystemPrompt = preloadedPrompts.length > 0 ? joinResolvedSystemPrompts(preloadedPrompts) : undefined;
10639
10639
  const mergedContext = {
10640
10640
  ...currentAgentContext,
@@ -10721,9 +10721,9 @@ function createInteractiveCommand(externalEnvService) {
10721
10721
  process.exit(1);
10722
10722
  }
10723
10723
  const summary = await startEventSources(eventSourceIds, eventSourceComponent, output);
10724
- this.eventSourceSystemPrompts = collectEventSourceSystemPrompts(eventSourceIds, eventSourceComponent);
10725
- if (this.eventSourceSystemPrompts.length > 0) {
10726
- output.info(`\uD83D\uDCE6 Preloaded ${this.eventSourceSystemPrompts.length} event-source systemPrompt(s)`);
10724
+ eventSourceSystemPrompts = collectEventSourceSystemPrompts(eventSourceIds, eventSourceComponent);
10725
+ if (eventSourceSystemPrompts.length > 0) {
10726
+ output.info(`\uD83D\uDCE6 Preloaded ${eventSourceSystemPrompts.length} event-source systemPrompt(s)`);
10727
10727
  }
10728
10728
  if (eventSourceIds.length === 1 && summary.failedCount > 0) {
10729
10729
  process.exit(1);
@@ -13888,6 +13888,11 @@ var ListCommand4 = {
13888
13888
  process.exit(1);
13889
13889
  }
13890
13890
  let agents;
13891
+ const builtInSubAgentNames = new Set([
13892
+ "general",
13893
+ "explore",
13894
+ "roy"
13895
+ ]);
13891
13896
  if (args.type && args.type !== "all") {
13892
13897
  agents = registry.listAgentsByType(args.type);
13893
13898
  } else {
@@ -13899,6 +13904,7 @@ var ListCommand4 = {
13899
13904
  agents: agents.map((a) => ({
13900
13905
  name: a.name,
13901
13906
  type: a.type,
13907
+ source: builtInSubAgentNames.has(a.name) ? "built-in" : "user",
13902
13908
  description: a.description,
13903
13909
  workflow: a.workflow,
13904
13910
  model: a.model,
@@ -13912,6 +13918,7 @@ var ListCommand4 = {
13912
13918
  const header = [
13913
13919
  chalk31.bold("Name"),
13914
13920
  chalk31.bold("Type"),
13921
+ chalk31.bold("Source"),
13915
13922
  chalk31.bold("Model"),
13916
13923
  chalk31.bold("Workflow"),
13917
13924
  chalk31.bold("Description")
@@ -13927,9 +13934,11 @@ var ListCommand4 = {
13927
13934
  const desc2 = (a.description || "").length > 40 ? (a.description || "").slice(0, 37) + "..." : a.description || "-";
13928
13935
  const workflowDisplay = a.type === "workflow" && a.workflow ? chalk31.cyan(a.workflow.length > 30 ? a.workflow.slice(0, 27) + "..." : a.workflow) : chalk31.gray("-");
13929
13936
  const modelDisplay = a.model ? chalk31.yellow(a.model.length > 20 ? a.model.slice(0, 17) + "..." : a.model) : chalk31.gray("-");
13937
+ const sourceDisplay = builtInSubAgentNames.has(a.name) ? chalk31.green("built-in") : chalk31.gray("user");
13930
13938
  return [
13931
13939
  chalk31.cyan(a.name),
13932
13940
  typeColor(a.type)(a.type),
13941
+ sourceDisplay,
13933
13942
  modelDisplay,
13934
13943
  workflowDisplay,
13935
13944
  desc2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.5.104",
3
+ "version": "1.5.105",
4
4
  "type": "module",
5
5
  "description": "CLI for roy-agent - Non-interactive command execution",
6
6
  "main": "./dist/index.js",