feat: bump supercode-cli version to 0.1.91 and add new cloud models: - #245
Conversation
- Updated version in package.json to 0.1.91. - Added new cloud models: "mimo-v2.5", "fireworks/nemotron-3-ultra-nvfp4", "kimi-k2-7-code", and "kimi-k3". - Introduced a new premium section for cloud models requiring Supercode Cloud Premium. - Enhanced model selection logic to include premium tags for better user experience.
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
There was a problem hiding this comment.
Your trial has ended. Reactivate Greptile to resume code reviews.
WalkthroughThe CLI adds a premium cloud model section, labels premium entries, blocks their selection with an upgrade notice, and registers additional models in server access and pricing tables. The package version increases to 0.1.91. ChangesPremium Cloud Model Support
Estimated code review effort: 3 (Moderate) | ~20 minutes Possibly related PRs
Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Warning There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure. 🔧 ESLint
ESLint install failed. For unrecoverable errors, disable the tool in CodeRabbit configuration. 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. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts`:
- Around line 53-60: Uncomment and expose the `fireworks/nemotron-3-ultra-nvfp4`
entry in the model picker’s `CLOUD_MODELS` collection, or place it in
`PREMIUM_CLOUD_MODELS` if that is the intended pricing tier, so users can select
the allowlisted model.
In `@apps/supercode-cli/server/src/index.ts`:
- Around line 69-72: Enforce the verified Cloud Premium entitlement
consistently: in apps/supercode-cli/server/src/index.ts lines 69-72, gate the
newly allowlisted premium model IDs behind the authenticated user’s entitlement
instead of relying only on CLOUD_ALLOWED_MODELS; in
apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts lines 611-624,
display the upgrade notice only when the authenticated user lacks that
entitlement, allowing subscribed users to select these models.
🪄 Autofix (Beta)
Fix all unresolved CodeRabbit comments on this PR:
- Push a commit to this branch (recommended)
- Create a new PR with the fixes
ℹ️ Review info
⚙️ Run configuration
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro Plus
Run ID: c0fa3e11-b68b-4e71-b2b7-de6cc163c3aa
📒 Files selected for processing (4)
apps/supercode-cli/server/package.jsonapps/supercode-cli/server/src/cli/commands/slashCommands/model.tsapps/supercode-cli/server/src/index.tsapps/supercode-cli/server/src/lib/pricing.ts
| { value: "deepseek-v4-flash", label: "DeepSeek V4 Flash", provider: "supercode", cost: "free", desc: "Fast & capable" }, | ||
| { value: "glm-5.2", label: "GLM 5.2", provider: "supercode", cost: "free", desc: "Latest GLM" }, | ||
| { value: "glm-5.1", label: "GLM 5.1", provider: "supercode", cost: "free", desc: "Stable & reliable" }, | ||
| { value: "kimi-k2-6", label: "Kimi K2.6", provider: "supercode", cost: "free", desc: "Long context" }, | ||
| { value: "minimax-m3", label: "MiniMax M3", provider: "supercode", cost: "free", desc: "Fast & smart" }, | ||
| // { value: "glm-5.2", label: "GLM 5.2", provider: "supercode", cost: "free", desc: "Latest GLM" }, | ||
| // { value: "glm-5.1", label: "GLM 5.1", provider: "supercode", cost: "free", desc: "Stable & reliable" }, | ||
| // { value: "kimi-k2-6", label: "Kimi K2.6", provider: "supercode", cost: "free", desc: "Long context" }, | ||
| // { value: "minimax-m3", label: "MiniMax M3", provider: "supercode", cost: "free", desc: "Fast & smart" }, | ||
| { value: "hy3", label: "Hunyuan Hy3", provider: "supercode", cost: "free", desc: "Tencent flagship" }, | ||
| { value: "mimo-v2.5", label: "Mimo v2.5", provider: "supercode", cost: "free", desc: "Novita" }, | ||
| // { value: "fireworks/nemotron-3-ultra-nvfp4", label: "Nemotron 3 Ultra NVFP4", provider: "supercode", cost: "free", desc: "Fireworks" }, |
There was a problem hiding this comment.
🎯 Functional Correctness | 🟠 Major | ⚡ Quick win
Expose Nemotron in the model picker.
Line 60 leaves fireworks/nemotron-3-ultra-nvfp4 commented out, so users cannot select a model that this PR allowlists and prices. Add it to CLOUD_MODELS (or PREMIUM_CLOUD_MODELS, if intended).
Proposed fix
- // { value: "fireworks/nemotron-3-ultra-nvfp4", label: "Nemotron 3 Ultra NVFP4", provider: "supercode", cost: "free", desc: "Fireworks" },
+ { value: "fireworks/nemotron-3-ultra-nvfp4", label: "Nemotron 3 Ultra NVFP4", provider: "supercode", cost: "free", desc: "Fireworks" },📝 Committable suggestion
‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.
| { value: "deepseek-v4-flash", label: "DeepSeek V4 Flash", provider: "supercode", cost: "free", desc: "Fast & capable" }, | |
| { value: "glm-5.2", label: "GLM 5.2", provider: "supercode", cost: "free", desc: "Latest GLM" }, | |
| { value: "glm-5.1", label: "GLM 5.1", provider: "supercode", cost: "free", desc: "Stable & reliable" }, | |
| { value: "kimi-k2-6", label: "Kimi K2.6", provider: "supercode", cost: "free", desc: "Long context" }, | |
| { value: "minimax-m3", label: "MiniMax M3", provider: "supercode", cost: "free", desc: "Fast & smart" }, | |
| // { value: "glm-5.2", label: "GLM 5.2", provider: "supercode", cost: "free", desc: "Latest GLM" }, | |
| // { value: "glm-5.1", label: "GLM 5.1", provider: "supercode", cost: "free", desc: "Stable & reliable" }, | |
| // { value: "kimi-k2-6", label: "Kimi K2.6", provider: "supercode", cost: "free", desc: "Long context" }, | |
| // { value: "minimax-m3", label: "MiniMax M3", provider: "supercode", cost: "free", desc: "Fast & smart" }, | |
| { value: "hy3", label: "Hunyuan Hy3", provider: "supercode", cost: "free", desc: "Tencent flagship" }, | |
| { value: "mimo-v2.5", label: "Mimo v2.5", provider: "supercode", cost: "free", desc: "Novita" }, | |
| // { value: "fireworks/nemotron-3-ultra-nvfp4", label: "Nemotron 3 Ultra NVFP4", provider: "supercode", cost: "free", desc: "Fireworks" }, | |
| { value: "deepseek-v4-flash", label: "DeepSeek V4 Flash", provider: "supercode", cost: "free", desc: "Fast & capable" }, | |
| // { value: "glm-5.2", label: "GLM 5.2", provider: "supercode", cost: "free", desc: "Latest GLM" }, | |
| // { value: "glm-5.1", label: "GLM 5.1", provider: "supercode", cost: "free", desc: "Stable & reliable" }, | |
| // { value: "kimi-k2-6", label: "Kimi K2.6", provider: "supercode", cost: "free", desc: "Long context" }, | |
| // { value: "minimax-m3", label: "MiniMax M3", provider: "supercode", cost: "free", desc: "Fast & smart" }, | |
| { value: "hy3", label: "Hunyuan Hy3", provider: "supercode", cost: "free", desc: "Tencent flagship" }, | |
| { value: "mimo-v2.5", label: "Mimo v2.5", provider: "supercode", cost: "free", desc: "Novita" }, | |
| { value: "fireworks/nemotron-3-ultra-nvfp4", label: "Nemotron 3 Ultra NVFP4", provider: "supercode", cost: "free", desc: "Fireworks" }, |
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts` around
lines 53 - 60, Uncomment and expose the `fireworks/nemotron-3-ultra-nvfp4` entry
in the model picker’s `CLOUD_MODELS` collection, or place it in
`PREMIUM_CLOUD_MODELS` if that is the intended pricing tier, so users can select
the allowlisted model.
| "mimo-v2.5", | ||
| "fireworks/nemotron-3-ultra-nvfp4", | ||
| "kimi-k2-7-code", | ||
| "kimi-k3", |
There was a problem hiding this comment.
🔒 Security & Privacy | 🟠 Major | 🏗️ Heavy lift
Enforce Premium entitlement on the server.
The picker denies every premium selection without checking a plan, while the Supercode structured-generation endpoint accepts these newly allowlisted models based only on CLOUD_ALLOWED_MODELS. A caller can bypass the CLI notice with a direct request, and subscribed users cannot select these models through the picker.
apps/supercode-cli/server/src/index.ts#L69-L72: require a verified Cloud Premium entitlement before serving premium model IDs.apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts#L611-L624: show the upgrade notice only when the authenticated user lacks that entitlement.
📍 Affects 2 files
apps/supercode-cli/server/src/index.ts#L69-L72(this comment)apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts#L611-L624
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
In `@apps/supercode-cli/server/src/index.ts` around lines 69 - 72, Enforce the
verified Cloud Premium entitlement consistently: in
apps/supercode-cli/server/src/index.ts lines 69-72, gate the newly allowlisted
premium model IDs behind the authenticated user’s entitlement instead of relying
only on CLOUD_ALLOWED_MODELS; in
apps/supercode-cli/server/src/cli/commands/slashCommands/model.ts lines 611-624,
display the upgrade notice only when the authenticated user lacks that
entitlement, allowing subscribed users to select these models.
Description
Type of change
How Has This Been Tested?
Please describe the tests that you ran to verify your changes.
bun testpassesbun run typecheckpassesbun run lintpasses (if applicable)Checklist:
Summary by CodeRabbit
New Features
Bug Fixes
Chores