Skip to content

Add Kimi (Moonshot AI) as a new provider#213

Open
dusty-du wants to merge 1 commit intoautomazeio:mainfrom
dusty-du:add-kimi-support
Open

Add Kimi (Moonshot AI) as a new provider#213
dusty-du wants to merge 1 commit intoautomazeio:mainfrom
dusty-du:add-kimi-support

Conversation

@dusty-du
Copy link

@dusty-du dusty-du commented Feb 6, 2026

Summary

  • Adds Kimi (Moonshot AI) as a new provider in the macOS menu bar app
  • Includes ServiceType.kimi enum case, display name, service mapping, and .kimiLogin auth command
  • Adds Kimi ServiceRow in settings UI with OAuth device flow authentication
  • Includes icon-kimi.png resource (128x128 white-on-transparent, matching existing icon format)

Files Changed

  • src/Sources/AuthStatus.swift — Add .kimi case to ServiceType enum + display name
  • src/Sources/ServerManager.swift — Add kimi to service mapping, add .kimiLogin auth command
  • src/Sources/SettingsView.swift — Add Kimi ServiceRow in settings UI, auth flow, success message, adjust frame height
  • src/Sources/Resources/icon-kimi.png — New icon file

Summary by CodeRabbit

  • New Features
    • Added support for Kimi as a new authentication provider. Users can now connect and authenticate with their Kimi account through the app's authentication flow and settings interface.

Add support for Kimi/Moonshot AI service including:
- ServiceType.kimi enum case and display name
- kimi service mapping and .kimiLogin auth command
- Kimi ServiceRow in settings UI with OAuth device flow
- icon-kimi.png resource

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@coderabbitai
Copy link

coderabbitai bot commented Feb 6, 2026

📝 Walkthrough

Walkthrough

This PR adds support for a new authentication provider called "Kimi" by introducing a new enum case in ServiceType, adding oauth provider mappings in ServerManager, wiring authentication command handling, and extending the Settings view with a new service row and UI components.

Changes

Cohort / File(s) Summary
Kimi Authentication Provider Support
src/Sources/AuthStatus.swift, src/Sources/ServerManager.swift, src/Sources/SettingsView.swift
Added new kimi case to ServiceType enum with display name mapping; extended ServerManager with oauth provider key and kimiLogin authentication command; integrated Kimi service row in Settings view with auth flow wiring and success messaging; increased view frame height from 740 to 810 pixels.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~12 minutes

Poem

🐰 A new service hops into view,
Named Kimi, shiny and true!
Cases and cases, all lined up neat,
OAuth and auth, a provider so sweet,
With heights adjusted and UI complete! 🔐✨

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: adding Kimi as a new provider across the codebase.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant