@spaceflow/core 0.13.0 → 0.14.0

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/index.js CHANGED
@@ -9915,7 +9915,6 @@ class McpService {
9915
9915
  }
9916
9916
  console.error(i18n_t("mcp:scanning"));
9917
9917
  }
9918
- // 获取所有扩展(已在 exec() 阶段通过 registerExtension 注册完毕)
9919
9918
  const extensions = this.extensionLoader.getExtensions();
9920
9919
  const mcpServers = this.extensionLoader.getMcpServers();
9921
9920
  if (shouldLog(verbose, 2)) {
@@ -9923,7 +9922,6 @@ class McpService {
9923
9922
  count: extensions.length
9924
9923
  }));
9925
9924
  }
9926
- // 收集所有扩展的 MCP 工具
9927
9925
  const allTools = [];
9928
9926
  for (const { extensionName, mcp } of mcpServers){
9929
9927
  if (shouldLog(verbose, 2)) {
@@ -10148,9 +10146,9 @@ class McpService {
10148
10146
  ],
10149
10147
  run: async (_args, options, ctx)=>{
10150
10148
  const verbose = options?.verbose ? 2 : 1;
10151
- const inspector = options?.inspector;
10152
10149
  const extensionLoader = ctx.getService("extensionLoader");
10153
10150
  const mcpService = new McpService(extensionLoader);
10151
+ const inspector = options?.inspector;
10154
10152
  await mcpService.startServer(verbose, inspector);
10155
10153
  }
10156
10154
  }
@@ -11266,7 +11264,7 @@ async function exec(extensions = [], options = {}) {
11266
11264
  // 6. 创建 CLI 程序
11267
11265
  const program = new Command();
11268
11266
  const cliVersion = options.cliVersion || "0.0.0";
11269
- const coreVersion = true ? "0.13.0" : 0;
11267
+ const coreVersion = true ? "0.14.0" : 0;
11270
11268
  const versionOutput = `spaceflow/${cliVersion} core/${coreVersion}`;
11271
11269
  program.name("spaceflow").description("Spaceflow CLI").version(versionOutput, "-V, --version", "显示版本信息");
11272
11270
  // 定义全局 verbose 选项(支持计数:-v, -vv, -vvv)