opencode-codebuddy-external-auth 1.0.11 → 1.0.12

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/plugin.js +2 -1
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -233,7 +233,8 @@ async function executeViaHttpApi(openaiRequest, prompt, systemPrompt) {
233
233
  const agentRequest = {
234
234
  prompt,
235
235
  model: openaiRequest.model,
236
- outputFormat: openaiRequest.stream ? "stream-json" : "json",
236
+ print: true, // 关键:非交互模式,返回结果
237
+ outputFormat: openaiRequest.stream ? "stream-json" : "text",
237
238
  };
238
239
  if (systemPrompt) {
239
240
  agentRequest.systemPrompt = systemPrompt;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebuddy-external-auth",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "OpenCode plugin for CodeBuddy External (IOA) authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",