Skip to content

Update version to 0.1.5 in package.json and enhance Supercode CLI wit…#87

Merged
yashdev9274 merged 1 commit into
mainfrom
supercode-web
Jun 8, 2026
Merged

Update version to 0.1.5 in package.json and enhance Supercode CLI wit…#87
yashdev9274 merged 1 commit into
mainfrom
supercode-web

Conversation

@yashdev9274

@yashdev9274 yashdev9274 commented Jun 8, 2026

Copy link
Copy Markdown
Owner

…h new OpenRouter models (MiniMax M3, GLM 5.1, Kimi K2.6). Implement session token tracking with context window percentage display in chat footer, and add a cap for maxOutputTokens to prevent errors. Improve error messaging for server inactivity and format token counts for better readability. Revamp authentication and architecture documentation to reflect recent changes.

Summary by CodeRabbit

  • New Features

    • Cumulative token usage tracking across chat sessions
    • Context window metrics and percentage display in status bar
    • Human-readable token count formatting
    • Three new AI model options added
  • Documentation

    • Updated authentication guide with device code flow
    • Updated terminal architecture documentation
  • Chores

    • CLI version bumped to 0.1.5
    • Changelog updated with release notes

…h new OpenRouter models (MiniMax M3, GLM 5.1, Kimi K2.6). Implement session token tracking with context window percentage display in chat footer, and add a cap for maxOutputTokens to prevent errors. Improve error messaging for server inactivity and format token counts for better readability. Revamp authentication and architecture documentation to reflect recent changes.
@vercel

vercel Bot commented Jun 8, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
supercli Ready Ready Preview, Comment Jun 8, 2026 2:35pm
supercli-client Ready Ready Preview, Comment Jun 8, 2026 2:35pm
supercli-docs Ready Ready Preview, Comment Jun 8, 2026 2:35pm

@greptile-apps greptile-apps Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Your free trial has ended. If you'd like to continue receiving code reviews, you can add a payment method here.

@coderabbitai

coderabbitai Bot commented Jun 8, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

Pull request was closed or merged during review

Walkthrough

This PR bundles CLI v0.1.5 updates: cumulative session token tracking with context window display, output token limits for specific model variants, expanded model selection, complete restructuring of authentication documentation for device code flow, CLI architecture documentation covering REST endpoints and Render deployment, and version metadata updates across package.json, changelog, and UI components.

Changes

CLI v0.1.5 Update

Layer / File(s) Summary
Session token tracking and context window support
apps/supercode-cli/server/src/cli/ai/context-windows.ts, apps/supercode-cli/server/src/cli/ai/chat/chat.ts, apps/supercode-cli/server/src/cli/utils/tui.ts
New getContextWindow() function resolves model context sizes with exact and partial-key matching fallback. Chat loop initializes sessionTokens accumulator and derives contextWindow from model name; after each response, increments sessionTokens with response usage totals. chatStatusBar now accepts cumulativeTokens and contextWindow, displaying formatted token totals and optional context percentage.
Model-specific output token limits
apps/supercode-cli/server/src/cli/ai/openrouter-service.ts, apps/supercode-cli/server/src/index.ts
Both OpenRouter service and API chat endpoint conditionally set maxOutputTokens = 8192 when model name includes minimax-m3 or glm-5.1.
Extended model selection and init command
apps/supercode-cli/server/src/cli/commands/ai/init.ts
Three new OpenRouter models (minimax-m3, glm-5.1, kimi-k2.6:free) added to interactive selection menu. Server wake-up failure message updated to "Server was inactive and is waking up…".
Authentication and architecture documentation
apps/docs/content/docs/authentication.mdx, apps/docs/content/docs/terminal-architecture.mdx
Authentication guide restructured to describe device code flow: supercode login command receives verification URL and user code, user authorizes via browser, CLI polls and stores token at ~/.supercode/token.json. Better-Auth session management, per-user API key storage, and device code 10-minute expiration documented. Troubleshooting expanded for Render server inactivity, session expiration, and authorization failures. Architecture guide reframed from web-client/WebSocket model to CLI app (Commander/Bun) + Express API server design; database schema updated to User/Session/Account/DeviceCode/Conversation/Message; REST endpoints enumerated for auth, conversations, messages, and AI generation; Render deployment behavior and security details documented.
Release version and metadata
apps/supercode-cli/server/package.json, apps/web/app/(pages)/changelog/page.tsx, apps/web/components/homepage/hero.tsx
Version incremented from 0.1.4 to 0.1.5. Changelog entries added for v0.1.5–v0.1.2 with categorized updates (Core, Docs, CLI, Web App); class name formatting normalized. Hero section version badge updated from v0.1.2-beta to v0.1.5-beta.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Possibly related PRs

  • yashdev9274/supercli#83: Modifies CLI AI initialization and model selection flow in apps/supercode-cli/server/src/cli/commands/ai/init.ts; this PR extends the same model options and adds output token limits for those variants.

Poem

🐰 Tokens tallied, context flows,
Model limits, new routes grow,
Device codes dance, docs unfold,
v0.1.5 marks progress bold!

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (1 warning, 1 inconclusive)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title mentions version bump and CLI enhancement with new models, which are partially covered but doesn't fully represent the substantial documentation updates and token tracking features added. Consider expanding the title to reflect major changes like documentation restructuring and token tracking, or clarifying which CLI enhancements are primary (e.g., 'Add token tracking and new OpenRouter models, update docs and version to 0.1.5').
✅ Passed checks (3 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

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

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch supercode-web

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