8 Commits

Author SHA1 Message Date
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
lemon07r 70e059a343 Release v1.0.4: rename provider display name to 'Kimi For Coding (OAuth)'
The previous display name 'Kimi K2.6 (for coding)' was confusing —
K2.6 is a model, not a provider, and it collided visually with the
models.dev 'Kimi For Coding' entry in interactive 'opencode auth login'.
Name now clearly signals this is the OAuth variant.
2026-04-17 04:07:31 -04:00
lemon07r 0626597690 Release v1.0.1: fix silent plugin load failure
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).
2026-04-17 02:40:07 -04:00
lemon07r be643ba628 docs: clarify description of unimplemented Kimi-specific extras in README 2026-04-17 02:19:36 -04:00
lemon07r 022145e03e docs: update README with Kimi K2.6 Code Preview details and add bun.lock file 2026-04-17 01:54:05 -04:00
lemon07r 0f8f14dbd4 feat: add GitHub Actions release workflow and rename provider to kimi-for-coding-oauth 2026-04-17 01:33:39 -04:00
lemon07r 3c7dd8a097 docs: clarify kimi CLI parity and K2.6 access requirements in README 2026-04-17 01:20:45 -04:00
lemon07r 9d47e4cb19 Add README and AGENTS.md 2026-04-17 01:18:36 -04:00