yg-team-cli 2.3.5 → 2.3.6

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/cli.js CHANGED
@@ -2245,22 +2245,6 @@ var init_init = __esm({
2245
2245
  });
2246
2246
  }
2247
2247
  },
2248
- ...options.docker ? [
2249
- {
2250
- title: "\u751F\u6210 Docker \u914D\u7F6E",
2251
- task: async () => {
2252
- await generateDockerFiles();
2253
- }
2254
- }
2255
- ] : [],
2256
- ...options.git ? [
2257
- {
2258
- title: "\u521D\u59CB\u5316 Git",
2259
- task: async () => {
2260
- await initGit(projectPath, projectName);
2261
- }
2262
- }
2263
- ] : [],
2264
2248
  {
2265
2249
  title: "\u6CE8\u518C\u8FDC\u7A0B MCP \u670D\u52A1",
2266
2250
  task: async () => {
@@ -2268,10 +2252,19 @@ var init_init = __esm({
2268
2252
  (id) => ModuleManager.getModuleById(id)?.type === "remote"
2269
2253
  );
2270
2254
  if (hasRemoteModule) {
2271
- const mcpCmd = 'claude_m2 mcp add --transport sse --header "Authorization: Bearer mcp_00557dabb71297b4f9ac5fe748395f2c" -- api-metadata https://api-metadata.yungu.org/sse';
2272
- const { execaCommand } = await import("execa");
2255
+ const { execa: e } = await import("execa");
2273
2256
  try {
2274
- await execaCommand(mcpCmd);
2257
+ await e("claude", [
2258
+ "mcp",
2259
+ "add",
2260
+ "--transport",
2261
+ "sse",
2262
+ "--header",
2263
+ "Authorization: Bearer mcp_00557dabb71297b4f9ac5fe748395f2c",
2264
+ "--",
2265
+ "api-metadata",
2266
+ "https://api-metadata.yungu.org/sse"
2267
+ ]);
2275
2268
  logger.info("\u8FDC\u7A0B MCP \u670D\u52A1 api-metadata \u5DF2\u6CE8\u518C");
2276
2269
  } catch (err) {
2277
2270
  logger.warn("\u8FDC\u7A0B MCP \u670D\u52A1\u6CE8\u518C\u5931\u8D25\uFF0C\u53EF\u80FD\u5DF2\u5B58\u5728\u6216\u6743\u9650\u4E0D\u8DB3");
@@ -2295,7 +2288,7 @@ var init_init = __esm({
2295
2288
  task: async () => {
2296
2289
  const remoteModules = selectedModules.map((id) => ModuleManager.getModuleById(id)).filter((m) => m?.type === "remote");
2297
2290
  if (remoteModules.length === 0) return;
2298
- const { execaCommand } = await import("execa");
2291
+ const { execa: e } = await import("execa");
2299
2292
  for (const module of remoteModules) {
2300
2293
  if (!module) continue;
2301
2294
  logger.info(`\u6B63\u5728\u4E3A\u60A8\u751F\u6210 ${module.name} \u7684\u8FDC\u7A0B\u8C03\u7528\u4EE3\u7801...`);
@@ -2304,17 +2297,32 @@ var init_init = __esm({
2304
2297
  \u8BF7\u786E\u4FDD\u4EE3\u7801\u7B26\u5408 \`CONVENTIONS.md\` \u4E2D\u7684\u89C4\u8303\u3002
2305
2298
  \u751F\u6210\u5B8C\u6210\u540E\uFF0C\u8BF7\u7B80\u8981\u5217\u51FA\u751F\u6210\u7684\u6587\u4EF6\u3002`;
2306
2299
  try {
2307
- await execaCommand(`claude_m2 -p "${prompt}" --add-dir ${projectPath}`, {
2300
+ await e("claude", ["-p", prompt, "--add-dir", projectPath], {
2308
2301
  stdio: "inherit",
2309
2302
  timeout: 3e5
2310
- // 5分钟超时
2311
2303
  });
2312
2304
  } catch (err) {
2313
2305
  logger.error(`${module.name} \u4EE3\u7801\u751F\u6210\u5931\u8D25\uFF0C\u60A8\u53EF\u4EE5\u7A0D\u540E\u5728\u5F00\u53D1\u6A21\u5F0F\u4E0B\u624B\u52A8\u8FD0\u884C\u3002`);
2314
2306
  }
2315
2307
  }
2316
2308
  }
2317
- }
2309
+ },
2310
+ ...options.docker ? [
2311
+ {
2312
+ title: "\u751F\u6210 Docker \u914D\u7F6E",
2313
+ task: async () => {
2314
+ await generateDockerFiles();
2315
+ }
2316
+ }
2317
+ ] : [],
2318
+ ...options.git ? [
2319
+ {
2320
+ title: "\u521D\u59CB\u5316 Git",
2321
+ task: async () => {
2322
+ await initGit(projectPath, projectName);
2323
+ }
2324
+ }
2325
+ ] : []
2318
2326
  ],
2319
2327
  {
2320
2328
  concurrent: false,