opencode-codebuddy-external-auth 1.0.25 → 1.0.26
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.
- package/dist/plugin.js +0 -4
- 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,
|