opencode-codebuddy-external-auth 1.0.25 → 1.0.27

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 +0 -4
  2. package/package.json +1 -1
package/dist/plugin.js CHANGED
@@ -264,8 +264,6 @@ async function executeCodeBuddyCLI(prompt, model, systemPrompt) {
264
264
  args.push("--system-prompt", systemPrompt);
265
265
  }
266
266
  args.push(prompt);
267
- // Debug log (可注释掉)
268
- // console.log(`[codebuddy-external] Executing: codebuddy ${args.join(" ").substring(0, 100)}...`);
269
267
  const child = spawn("codebuddy", args, {
270
268
  env: { ...process.env },
271
269
  stdio: ["pipe", "pipe", "pipe"],
@@ -612,8 +610,6 @@ const CodeBuddyExternalAuthPlugin = async (_input) => {
612
610
  async loader(getAuth) {
613
611
  const auth = await getAuth();
614
612
  if (auth.type === "oauth" && auth.access) {
615
- // 返回代理 fetch 函数,通过 codebuddy CLI 处理请求
616
- // baseURL 可以是任意值,因为 fetch 会拦截并调用 CLI
617
613
  return {
618
614
  apiKey: "cli-proxy", // 占位符,实际认证由 fetch 处理
619
615
  baseURL: CONFIG.serverUrl,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "opencode-codebuddy-external-auth",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
4
4
  "description": "OpenCode plugin for CodeBuddy External (IOA) authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",