opencode-codebuddy-external-auth 1.0.13 → 1.0.14

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 +3 -0
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -204,6 +204,9 @@ function createProxyFetch() {
204
204
  const openaiRequest = JSON.parse(typeof body === "string" ? body : await new Response(body).text());
205
205
  // Convert to CodeBuddy format
206
206
  const { prompt, systemPrompt } = convertMessagesToPrompt(openaiRequest.messages);
207
+ // 调试日志
208
+ console.log(`[codebuddy-external] Messages count: ${openaiRequest.messages.length}`);
209
+ console.log(`[codebuddy-external] Prompt: ${prompt.substring(0, 100)}...`);
207
210
  // 根据配置选择 HTTP API 模式或 CLI 模式
208
211
  if (CONFIG.useHttpApi) {
209
212
  return await executeViaHttpApi(openaiRequest, prompt, systemPrompt);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebuddy-external-auth",
3
- "version": "1.0.13",
3
+ "version": "1.0.14",
4
4
  "description": "OpenCode plugin for CodeBuddy External (IOA) authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",