Releases: nbtca/Prompt
Releases · nbtca/Prompt
v1.0.5 - Knowledge Base Fixes & Pager Viewer
🐛 Bug Fixes
Fixed Knowledge Base 403 Error
- Resolved GitHub API rate limiting that caused 403 errors when browsing documentation
- Added GitHub token authentication support via
GITHUB_TOKENorGH_TOKENenvironment variables - Improved error messages with rate limit information and reset time
- Increased rate limit from 60 to 5000 requests per hour when using a token
✨ New Features
Pager-Style Document Viewer
Documents now open in a pager (similar to vim/journalctl/less) for better reading experience:
- Natural scrolling navigation: arrow keys, Space (page down), j/k (vim-style), q to quit
- No terminal flooding: content stays in pager instead of flooding your terminal
- Better for long documents: scroll at your own pace
- Automatic fallback: uses direct output if pager is unavailable
Additional Improvements
- ✅ Re-read document option: View a document again without going back to the list
- ✅ Environment variable support:
GITHUB_TOKENorGH_TOKENfor GitHub API authenticationPAGERfor custom pager selection (defaults toless)
📚 Documentation Updates
- Added GitHub token configuration instructions to README
- Added troubleshooting section for 403 errors
- Updated pager navigation guide
🔧 Technical Changes
- Added
displayInPager()function for spawning system pager processes - Enhanced
fetchGitHubDirectory()with conditional token authentication - Improved error handling with detailed rate limit diagnostics
Full Changelog: v1.0.4...v1.0.5
v1.0.4 - Smooth Slogan Animation
🎨 Animation Enhancement
Features
- Smooth color interpolation: Implemented true mathematical color blending for buttery smooth gradient animation
- 60 FPS animation: Increased frame rate from 24 to 60 FPS for ultra-smooth motion
- Natural easing: Changed from cubic to sine wave easing for the most natural, fluid transitions
Technical Improvements
- Added
hexToRgb(),rgbToHex(), andinterpolateColor()functions for real-time color interpolation - Dynamically generate gradients per frame instead of using pre-defined gradient set
- Eliminates staggered/jumping effect in the slogan text animation
What Changed
The slogan "To be at the intersection of technology and liberal arts." now displays with a silky smooth gradient animation that seamlessly transitions through the blue color spectrum without any visible steps or jumps.
Full Changelog: v1.0.3...v1.0.4
v1.0.3
Release v1.0.3
说明
由于 npm registry 同步问题,跳过 v1.0.2,直接发布 v1.0.3。
变更内容
- 修复版本显示问题(应用代码中的版本号现在与 package.json 保持一致)
- 移除图标中的 emoji,采用纯文本显示
- 优化终端文档查看器的用户体验
安装
```bash
npm install -g @nbtca/prompt@1.0.3
```
或者
```bash
npx @nbtca/prompt
```
npm 包
v1.0.1 - UI Enhancements & Vim Keybindings
✨ What's New
Features
- 🎨 New English tagline with smooth blue gradient animation
- ⌨️ Full Vim keybindings support (j/k/g/G/q)
- 🎯 Minimalist UI design inspired by Claude Code CLI
Improvements
- Smoother gradient animation (24 frames, 1.2s duration)
- Removed keyboard instruction text for cleaner interface
- Blue color scheme throughout (deep blue → sky blue → cyan)
Changes
- q key now exits the application
- Removed Chinese tagline
- Simplified menu layout
Chores
- Removed unused DATA_MANAGEMENT.md
- Updated dependencies (gradient-string, @inquirer/prompts)
- Version bump to 1.0.1
For npm installation, please run:
npm install -g @nbtca/promptOr use npx:
npx @nbtca/promptv1.0.0 - NBTCA Prompt First Release
🎉 NBTCA Prompt v1.0.0
First official release of NBTCA Prompt - A minimalist CLI tool for NingboTech Computer Association.
✨ Highlights
- Complete TypeScript Refactor - Strict type safety throughout
- Minimalist Design - 65% smaller codebase, instant startup
- Smart UI - Graceful degradation for logo and docs
- Modern Stack - axios, ical.js, marked, marked-terminal
🚀 Features
- 📅 Calendar Integration - View upcoming events from ICS feed
- 🔧 Repair Service - Quick access to maintenance services
- 📚 Knowledge Base - Terminal markdown viewer with browser fallback
- 🌐 Quick Links - Official website and GitHub access
- ℹ️ About - Project information and help
📦 Installation
npm install -g @nbtca/prompt🎯 Usage
nbtca # Short command
nbtca-welcome # Full command🏗️ Architecture
- Core Modules: logo, menu, ui
- Features: calendar, docs, repair, website
- Config: Centralized URLs and app info
- TypeScript: Strict mode with comprehensive types
📊 Stats
- 31 files changed - Complete refactor
- 2,579 insertions - New TypeScript code
- 2,072 deletions - Removed legacy code
- Net -65% - Cleaner, more maintainable
🔧 Technical Details
- TypeScript 5.3+ with ES2022 target
- Node.js 16+ required (tested on 18, 20)
- ES Modules only
- Automated CI/CD with GitHub Actions
📝 Documentation
See README.md for full documentation.