Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion AGENTS.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# AGENTS.md - Commit Sage Developer Guide
# Commit Sage Developer Guide

This file provides guidelines for agents working on the Commit Sage codebase.

Expand Down
45 changes: 45 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,50 @@
# Changelog

## [Unreleased]

### Features

- **New AI Providers**: Add support for four additional AI providers
- **Moonshot AI (Kimi models)** via `@ai-sdk/moonshotai` (official SDK)
- Set `provider.type = "moonshotai"` and `MOONSHOTAI_API_KEY`
- Default model: `kimi-k2.5` (flagship multimodal + reasoning model)
- Reasoning mode supported via `<think>` block middleware
- Register at <https://platform.moonshot.ai>
- **Z.AI (GLM models)** via `@ai-sdk/openai` adapter with custom base URL
- Set `provider.type = "zai"` and `ZAI_API_KEY`
- Default model: `glm-4.5-flash` (fast GLM model)
- Uses the international Z.AI platform (`api.z.ai`) — no extra dependency
- Register at <https://z.ai>
- **MiniMax** via `vercel-minimax-ai-provider` (provider-maintained SDK)
- Set `provider.type = "minimax"` and `MINIMAX_API_KEY`
- Default model: `MiniMax-M2.5`
- Uses OpenAI-compatible adapter
- Register at <https://platform.minimax.io>
- **OpenRouter** via `@openrouter/ai-sdk-provider` (OpenRouter-maintained SDK)
- Set `provider.type = "openrouter"` and `OPENROUTER_API_KEY`
- Requires a dedicated `openrouter` config section with `model` and optional `baseUrl`
- Default model: `openai/gpt-4.1-mini` (model IDs are provider-prefixed, e.g.
`anthropic/claude-opus-4-5`, `meta-llama/llama-3.1-405b-instruct`)
- Routes to hundreds of models from a single API key
- Register at <https://openrouter.ai>

- **DeepSeek integration confirmed**: The existing DeepSeek integration
(introduced in v1.6.0) has been audited and verified complete across all
integration touchpoints (types, registry, config migration, validation).

### Configuration

- New `openrouter` config section added to `config.json` (alongside the existing
`ollama` section) for OpenRouter-specific settings
- Default values added to `DEFAULT_CONFIG` for all new providers
- Config migration (`migrateConfig`) handles automatic model-to-provider
detection for Kimi (`kimi-*`), GLM (`glm-*`), and MiniMax (`MiniMax-*`) models

### Validation

- `OPENROUTER_API_KEY` is validated against the known `sk-or-v1-` prefix format
- `config.schema.json` updated with new provider types and `openrouter` section

## [1.6.0](https://github.com/AhmedOsman101/commit-sage-cli/compare/v1.5.0...v1.6.0) (2026-02-26)

### Features
Expand Down
21 changes: 20 additions & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,21 @@
}
}
},
"openrouter": {
"type": "object",
"required": ["model"],
"properties": {
"model": {
"type": "string",
"description": "OpenRouter model ID, e.g. 'openai/gpt-4.1-mini' or 'anthropic/claude-opus-4-5'"
},
"baseUrl": {
"type": "string",
"format": "uri",
"description": "OpenRouter API base URL (defaults to https://openrouter.ai/api/v1)"
}
}
},
"commit": {
"type": "object",
"required": ["commitFormat", "onlyStagedChanges", "commitLanguage"],
Expand Down Expand Up @@ -69,7 +84,11 @@
"deepseek",
"mistral",
"xai",
"ollama"
"ollama",
"moonshotai",
"zai",
"minimax",
"openrouter"
],
"description": "AI provider type"
},
Expand Down
3 changes: 3 additions & 0 deletions deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@
"@ai-sdk/deepseek": "npm:@ai-sdk/deepseek@^2.0.20",
"@ai-sdk/google": "npm:@ai-sdk/google@^3.0.33",
"@ai-sdk/mistral": "npm:@ai-sdk/mistral@^3.0.20",
"@ai-sdk/moonshotai": "npm:@ai-sdk/moonshotai@^2.0.10",
"@ai-sdk/openai": "npm:@ai-sdk/openai@^3.0.36",
"@ai-sdk/xai": "npm:@ai-sdk/xai@^3.0.59",
"@openrouter/ai-sdk-provider": "npm:@openrouter/ai-sdk-provider@^2.2.5",
"@arrirpc/schema": "npm:@arrirpc/schema@^0.81.2",
"@cliffy/prompt": "jsr:@cliffy/prompt@^1.0.0",
"@std/fmt": "jsr:@std/fmt@1.0.9",
Expand All @@ -28,6 +30,7 @@
"husky": "npm:husky@^9.1.7",
"lib-result": "npm:lib-result@^3.2.2",
"ollama-ai-provider-v2": "npm:ollama-ai-provider-v2@^3.3.1",
"vercel-minimax-ai-provider": "npm:vercel-minimax-ai-provider@^0.0.2",
"@/": "./src/"
},
"lint": {
Expand Down
136 changes: 112 additions & 24 deletions deno.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading