mirror of
https://github.com/lemon07r/opencode-kimi-full.git
synced 2026-07-18 08:05:52 +02:00
0626597690
Plugin v1.0.0 exported a named PROVIDER_ID constant alongside the default export. opencode's plugin loader (getLegacyPlugins) iterates every export and requires each to be a function; the named string export caused it to throw 'Plugin export is not a function', which was only visible in the log file — the provider silently vanished from 'opencode auth login'. - Move PROVIDER_ID into src/constants.ts and import it in src/index.ts. - Add test/exports.test.ts as a regression guard (bun test). - Add bunfig.toml to scope bun test away from research/ and node_modules/. - Wire 'bun test' into the release workflow. - Document rule 9 in AGENTS.md (single default export in src/index.ts). - Also pick up the previous session's README fix (opencode auth login -p).
47 lines
1.1 KiB
JSON
47 lines
1.1 KiB
JSON
{
|
|
"name": "opencode-kimi-full",
|
|
"version": "1.0.1",
|
|
"description": "OpenCode plugin that adds first-class support for Kimi K2.6 (kimi-for-coding) via the official Kimi OAuth device flow, matching the upstream kimi-cli 1:1.",
|
|
"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"
|
|
},
|
|
"files": [
|
|
"src",
|
|
"README.md",
|
|
"AGENTS.md",
|
|
"LICENSE"
|
|
],
|
|
"keywords": [
|
|
"opencode",
|
|
"opencode-plugin",
|
|
"kimi",
|
|
"kimi-for-coding",
|
|
"kimi-k26",
|
|
"moonshot",
|
|
"oauth"
|
|
],
|
|
"peerDependencies": {
|
|
"@opencode-ai/plugin": ">=1.4.6"
|
|
},
|
|
"devDependencies": {
|
|
"@opencode-ai/plugin": "^1.4.7",
|
|
"typescript": "^5.6.0",
|
|
"@types/node": "^22.0.0"
|
|
}
|
|
}
|