Files
grok-cli/package.json
T
z23ccandIsmail Pelaseyed 5a4b2c8e25 feat: improve model configuration and settings management (#59)
* feat: improve model configuration and settings management

- Refactor model configuration system with unified settings approach
- Add support for user-level default models and project-level current models
- Implement automatic saving of API key and base URL from command line arguments
- Remove model descriptions for cleaner UI and easier extensibility
- Fix commander.js subcommand argument parsing with fallback mechanism
- Improve configuration file structure and priority handling
- Add comprehensive model configuration utilities in src/utils/model-config.ts

Configuration priority: project current model > user default model > system default
Both main command and git subcommand now save credentials automatically

* refactor: unify settings management

- Add SettingsManager singleton for user/project settings
- Eliminate duplicate settings code across files
- Clear separation: user settings vs project settings

* docs: improve README clarity and organization

- Simplify setup section with quick start approach
- Consolidate configuration info into unified section
- Add clear explanation of user vs project settings
- Document OpenAI-compatible API support
- Remove duplicate model configuration sections

* bump sdk

---------

Co-authored-by: Ismail Pelaseyed <homanp@gmail.com>
2025-07-31 10:07:41 +02:00

56 lines
1.3 KiB
JSON

{
"name": "@vibe-kit/grok-cli",
"version": "0.0.18",
"description": "An open-source AI agent that brings the power of Grok directly into your terminal.",
"main": "dist/index.js",
"bin": {
"grok": "dist/index.js"
},
"scripts": {
"build": "tsc",
"dev": "tsx src/index.ts",
"start": "node dist/index.js",
"lint": "eslint . --ext .js,.jsx,.ts,.tsx",
"typecheck": "tsc --noEmit"
},
"keywords": [
"cli",
"agent",
"text-editor",
"grok",
"ai"
],
"author": "Your Name",
"license": "MIT",
"dependencies": {
"@modelcontextprotocol/sdk": "^1.17.0",
"axios": "^1.6.0",
"cfonts": "^3.3.0",
"chalk": "^4.1.2",
"commander": "^11.1.0",
"dotenv": "^16.3.0",
"enquirer": "^2.4.1",
"fs-extra": "^11.1.1",
"ink": "^3.2.0",
"ink-markdown": "^1.0.4",
"openai": "^5.10.1",
"react": "^17.0.2",
"ripgrep-node": "^1.0.0",
"tiktoken": "^1.0.21"
},
"devDependencies": {
"@types/fs-extra": "^11.0.2",
"@types/node": "^20.8.0",
"@types/react": "^17.0.0",
"@typescript-eslint/eslint-plugin": "^8.37.0",
"@typescript-eslint/parser": "^8.37.0",
"eslint": "^9.31.0",
"tsx": "^4.0.0",
"typescript": "^4.9.5"
},
"engines": {
"node": ">=16.0.0"
},
"preferGlobal": true
}