@ai-setting/roy-agent-cli 1.5.95 → 1.5.97

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.95",
7430
+ version: "1.5.97",
7431
7431
  type: "module",
7432
7432
  description: "CLI for roy-agent - Non-interactive command execution",
7433
7433
  main: "./dist/index.js",
@@ -7948,7 +7948,7 @@ class EnvironmentService {
7948
7948
  env.registerComponent(pluginComponent);
7949
7949
  await env.init();
7950
7950
  await env.start();
7951
- agentComponent.refreshDependencies();
7951
+ await agentComponent.refreshDependencies();
7952
7952
  logger.debug("[EnvironmentService] AgentComponent dependencies refreshed after env.start()");
7953
7953
  if (options?.plugins && options.plugins.length > 0) {
7954
7954
  await this.loadPlugins(options.plugins);
@@ -7956,6 +7956,10 @@ class EnvironmentService {
7956
7956
  this.environment = env;
7957
7957
  return env;
7958
7958
  }
7959
+ static SUB_AGENT_PROMPT_NAMES = new Set([
7960
+ "json-extract",
7961
+ "workflow-extract"
7962
+ ]);
7959
7963
  registerCommandsPromptHook(promptComponent, commandsComponent) {
7960
7964
  globalHookManager.register("prompt.after-render", {
7961
7965
  name: "commands-prompt",
@@ -7963,6 +7967,8 @@ class EnvironmentService {
7963
7967
  const hookCtx = ctx.data;
7964
7968
  if (!hookCtx?.name || hookCtx.name === "anonymous")
7965
7969
  return;
7970
+ if (EnvironmentService.SUB_AGENT_PROMPT_NAMES.has(hookCtx.name))
7971
+ return;
7966
7972
  try {
7967
7973
  const metaList = await commandsComponent.getCommandsMeta();
7968
7974
  if (metaList.length === 0)
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.95",
7429
+ version: "1.5.97",
7430
7430
  type: "module",
7431
7431
  description: "CLI for roy-agent - Non-interactive command execution",
7432
7432
  main: "./dist/index.js",
@@ -7947,7 +7947,7 @@ class EnvironmentService {
7947
7947
  env.registerComponent(pluginComponent);
7948
7948
  await env.init();
7949
7949
  await env.start();
7950
- agentComponent.refreshDependencies();
7950
+ await agentComponent.refreshDependencies();
7951
7951
  logger.debug("[EnvironmentService] AgentComponent dependencies refreshed after env.start()");
7952
7952
  if (options?.plugins && options.plugins.length > 0) {
7953
7953
  await this.loadPlugins(options.plugins);
@@ -7955,6 +7955,10 @@ class EnvironmentService {
7955
7955
  this.environment = env;
7956
7956
  return env;
7957
7957
  }
7958
+ static SUB_AGENT_PROMPT_NAMES = new Set([
7959
+ "json-extract",
7960
+ "workflow-extract"
7961
+ ]);
7958
7962
  registerCommandsPromptHook(promptComponent, commandsComponent) {
7959
7963
  globalHookManager.register("prompt.after-render", {
7960
7964
  name: "commands-prompt",
@@ -7962,6 +7966,8 @@ class EnvironmentService {
7962
7966
  const hookCtx = ctx.data;
7963
7967
  if (!hookCtx?.name || hookCtx.name === "anonymous")
7964
7968
  return;
7969
+ if (EnvironmentService.SUB_AGENT_PROMPT_NAMES.has(hookCtx.name))
7970
+ return;
7965
7971
  try {
7966
7972
  const metaList = await commandsComponent.getCommandsMeta();
7967
7973
  if (metaList.length === 0)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-setting/roy-agent-cli",
3
- "version": "1.5.95",
3
+ "version": "1.5.97",
4
4
  "type": "module",
5
5
  "description": "CLI for roy-agent - Non-interactive command execution",
6
6
  "main": "./dist/index.js",