Files
opencode-kimi-full/package.json
T
lemon07r 194da3cc9b Release v1.0.6: fix chat.params crash and add reasoning variants
Two user-visible fixes:

1. Runtime crash 'undefined is not an object (evaluating
   input.provider.info.id)' on any chat. The @opencode-ai/plugin
   ProviderContext type claims .info.id exists, but opencode's
   session/llm.ts::stream passes the flat ProviderConfig as provider
   (research/opencode/packages/opencode/src/session/llm.ts ~line 168).
   Gate on input.model.providerID instead — matches cloudflare.ts,
   codex.ts, github-copilot/copilot.ts.

2. Ctrl+T reasoning variants (off/auto/low/medium/high) were not
   available. README config now declares model.variants, which opencode
   merges into options before chat.params runs; the hook normalizes
   'auto' to omit both thinking and reasoning_effort so Moonshot picks
   dynamically, matching kimi-cli's 'nothing passed' default.

Also:
- AGENTS.md rule 4 updated with 'auto' row and the providerID gating
  warning, citing the live 2026-04-17 repro.
- test/plugin.test.ts input shape updated to match runtime; added a
  test for the 'auto' variant.
2026-04-17 04:19:59 -04:00

47 lines
1.1 KiB
JSON

{
"name": "opencode-kimi-full",
"version": "1.0.6",
"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"
}
}