@herouucn/opencode-commandcode 0.1.2 → 0.1.5
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/package.json +1 -1
- package/plugin.ts +0 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@herouucn/opencode-commandcode",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.5",
|
|
4
4
|
"description": "Inject Command Code API provider into opencode — access Claude, GPT, Gemini, DeepSeek, Qwen, Kimi, GLM, MiniMax & Step via unified Command Code API. / 将 Command Code API provider 注入 opencode —— 通过统一的 Command Code API 使用 Claude、GPT、Gemini、DeepSeek、Qwen、Kimi、GLM、MiniMax 和 Step 模型。",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ai",
|
package/plugin.ts
CHANGED
|
@@ -225,13 +225,6 @@ export default async function commandcodePlugin() {
|
|
|
225
225
|
{
|
|
226
226
|
type: "api",
|
|
227
227
|
label: "API Key",
|
|
228
|
-
authorize: async (inputs: Record<string, unknown> | undefined) => {
|
|
229
|
-
const rawKey = inputs?.key;
|
|
230
|
-
if (typeof rawKey !== "string") return { type: "failed" as const };
|
|
231
|
-
const key = rawKey.trim();
|
|
232
|
-
if (!key) return { type: "failed" as const };
|
|
233
|
-
return { type: "success" as const, key };
|
|
234
|
-
},
|
|
235
228
|
},
|
|
236
229
|
],
|
|
237
230
|
loader: async (getAuth: () => Promise<{ type: string; key?: string } | null>) => {
|