mirror of
https://github.com/lemon07r/opencode-kimi-full.git
synced 2026-06-02 06:14:16 +02:00
e5fd91feba
opencode's getLegacyPlugins iterates every module export and throws on
non-function values. On Windows, Bun's standalone-binary dynamic imports
can produce module namespace objects with extra non-function metadata,
silently preventing the plugin from loading (the provider never appears
in `opencode auth login`).
Switch the default export from a bare Plugin function to the v1
PluginModule object ({ id, server }), which opencode's readV1Plugin
detects and handles before getLegacyPlugins ever runs. Also add
exports["./server"] for explicit entry point resolution.
53 lines
1.2 KiB
JSON
53 lines
1.2 KiB
JSON
{
|
|
"name": "opencode-kimi-full",
|
|
"version": "1.2.8",
|
|
"description": "OpenCode plugin that brings the official Kimi OAuth device flow and Kimi-specific coding request fields to opencode, matching upstream kimi-cli.",
|
|
"license": "MIT",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/lemon07r/opencode-kimi-full.git"
|
|
},
|
|
"homepage": "https://github.com/lemon07r/opencode-kimi-full#readme",
|
|
"bugs": {
|
|
"url": "https://github.com/lemon07r/opencode-kimi-full/issues"
|
|
},
|
|
"publishConfig": {
|
|
"access": "public",
|
|
"provenance": true
|
|
},
|
|
"type": "module",
|
|
"main": "./src/index.ts",
|
|
"exports": {
|
|
".": "./src/index.ts",
|
|
"./server": "./src/index.ts"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"README.md",
|
|
"AGENTS.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"kimi",
|
|
"kimi-for-coding",
|
|
"moonshot",
|
|
"oauth",
|
|
"device-flow",
|
|
"reasoning-effort",
|
|
"prompt-cache-key"
|
|
],
|
|
"peerDependencies": {
|
|
"@opencode-ai/plugin": ">=1.4.6"
|
|
},
|
|
"engines": {
|
|
"opencode": ">=1.4.6"
|
|
},
|
|
"devDependencies": {
|
|
"@opencode-ai/plugin": "^1.4.7",
|
|
"typescript": "^5.6.0",
|
|
"@types/node": "^22.0.0"
|
|
}
|
|
}
|