ai-project-manage-cli 7.0.7 → 7.0.8

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.
Files changed (2) hide show
  1. package/dist/index.js +12 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -2276,8 +2276,19 @@ function createAskQuestionTool(handlers) {
2276
2276
  batchId: randomUUID(),
2277
2277
  ...validated.input
2278
2278
  };
2279
+ try {
2280
+ await handlers.onAskQuestion(batch);
2281
+ } catch (err) {
2282
+ const message = err instanceof Error ? err.message : String(err);
2283
+ console.error(
2284
+ `[apm] AskQuestion \u63D0\u4EA4\u5931\u8D25 batchId=${batch.batchId}: ${message}`
2285
+ );
2286
+ return {
2287
+ content: [{ type: "text", text: `\u63D0\u4EA4\u95EE\u9898\u5931\u8D25: ${message}` }],
2288
+ isError: true
2289
+ };
2290
+ }
2279
2291
  batches.push(batch);
2280
- await handlers.onAskQuestion(batch);
2281
2292
  console.log(
2282
2293
  `[apm] AskQuestion \u5DF2\u63D0\u4EA4 batchId=${batch.batchId} questions=${batch.questions.length}`
2283
2294
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ai-project-manage-cli",
3
- "version": "7.0.7",
3
+ "version": "7.0.8",
4
4
  "description": "命令行工具:后续用于调用平台后端 API 完成运维与自动化操作",
5
5
  "type": "module",
6
6
  "private": false,