@mingxy/ocosay 1.1.29 → 1.1.30

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.
@@ -20,7 +20,8 @@ export declare function execCapture(cmd: string, cwd?: string): {
20
20
  stderr: string;
21
21
  };
22
22
  /**
23
- * 检测命令执行后的缺失依赖
23
+ * 从已有的错误输出中检测缺失依赖
24
+ * @param errorOutput 已捕获的错误输出字符串
24
25
  */
25
- export declare function detectMissingDependencies(cmd: string, cwd?: string): DetectResult;
26
+ export declare function detectMissingDependencies(errorOutput: string): DetectResult;
26
27
  //# sourceMappingURL=dependency-detector.d.ts.map
@@ -39,14 +39,14 @@ export function execCapture(cmd, cwd) {
39
39
  }
40
40
  }
41
41
  /**
42
- * 检测命令执行后的缺失依赖
42
+ * 从已有的错误输出中检测缺失依赖
43
+ * @param errorOutput 已捕获的错误输出字符串
43
44
  */
44
- export function detectMissingDependencies(cmd, cwd) {
45
- const result = execCapture(cmd, cwd);
46
- const missingHeaders = parseMissingHeaders(result.stderr);
45
+ export function detectMissingDependencies(errorOutput) {
46
+ const missingHeaders = parseMissingHeaders(errorOutput);
47
47
  return {
48
48
  missingHeaders,
49
- rawOutput: result.stderr,
49
+ rawOutput: errorOutput,
50
50
  };
51
51
  }
52
52
  //# sourceMappingURL=dependency-detector.js.map
package/dist/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/ocosay",
3
- "version": "1.1.28",
3
+ "version": "1.1.29",
4
4
  "description": "OpenCode TTS 播放插件 - 支持豆包模式边接收边朗读",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",
package/dist/plugin.js CHANGED
@@ -9933,12 +9933,11 @@ function execCapture(cmd, cwd) {
9933
9933
  };
9934
9934
  }
9935
9935
  }
9936
- function detectMissingDependencies(cmd, cwd) {
9937
- const result = execCapture(cmd, cwd);
9938
- const missingHeaders = parseMissingHeaders(result.stderr);
9936
+ function detectMissingDependencies(errorOutput) {
9937
+ const missingHeaders = parseMissingHeaders(errorOutput);
9939
9938
  return {
9940
9939
  missingHeaders,
9941
- rawOutput: result.stderr
9940
+ rawOutput: errorOutput
9942
9941
  };
9943
9942
  }
9944
9943
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mingxy/ocosay",
3
- "version": "1.1.29",
3
+ "version": "1.1.30",
4
4
  "description": "OpenCode TTS 播放插件 - 支持豆包模式边接收边朗读",
5
5
  "type": "module",
6
6
  "main": "dist/plugin.js",