centaurus-cli 2.5.3 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli-adapter.d.ts +6 -0
- package/dist/cli-adapter.d.ts.map +1 -1
- package/dist/cli-adapter.js +215 -29
- package/dist/cli-adapter.js.map +1 -1
- package/dist/commands/CommandParser.js +2 -2
- package/dist/commands/CommandParser.js.map +1 -1
- package/dist/config/defaultConfig.js +1 -1
- package/dist/config/defaultConfig.js.map +1 -1
- package/dist/config/models.d.ts +50 -5
- package/dist/config/models.d.ts.map +1 -1
- package/dist/config/models.js +144 -22
- package/dist/config/models.js.map +1 -1
- package/dist/config/types.d.ts +3 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +3 -1
- package/dist/config/types.js.map +1 -1
- package/dist/index.js +9 -0
- package/dist/index.js.map +1 -1
- package/dist/services/ai-service-client.d.ts +8 -2
- package/dist/services/ai-service-client.d.ts.map +1 -1
- package/dist/services/ai-service-client.js +2 -1
- package/dist/services/ai-service-client.js.map +1 -1
- package/dist/services/environment-context-injector.d.ts +69 -0
- package/dist/services/environment-context-injector.d.ts.map +1 -0
- package/dist/services/environment-context-injector.js +198 -0
- package/dist/services/environment-context-injector.js.map +1 -0
- package/dist/tools/ToolRegistry.d.ts.map +1 -1
- package/dist/tools/ToolRegistry.js +120 -26
- package/dist/tools/ToolRegistry.js.map +1 -1
- package/dist/tools/command.d.ts.map +1 -1
- package/dist/tools/command.js +30 -6
- package/dist/tools/command.js.map +1 -1
- package/dist/tools/file-ops.d.ts.map +1 -1
- package/dist/tools/file-ops.js +70 -23
- package/dist/tools/file-ops.js.map +1 -1
- package/dist/tools/find-files.d.ts +47 -0
- package/dist/tools/find-files.d.ts.map +1 -0
- package/dist/tools/find-files.js +190 -0
- package/dist/tools/find-files.js.map +1 -0
- package/dist/tools/get-diff.d.ts +45 -0
- package/dist/tools/get-diff.d.ts.map +1 -0
- package/dist/tools/get-diff.js +138 -0
- package/dist/tools/get-diff.js.map +1 -0
- package/dist/tools/grep-search.d.ts +85 -0
- package/dist/tools/grep-search.d.ts.map +1 -0
- package/dist/tools/grep-search.js +497 -0
- package/dist/tools/grep-search.js.map +1 -0
- package/dist/tools/inspect-symbol.d.ts +27 -0
- package/dist/tools/inspect-symbol.d.ts.map +1 -0
- package/dist/tools/inspect-symbol.js +259 -0
- package/dist/tools/inspect-symbol.js.map +1 -0
- package/dist/tools/validation.d.ts +49 -0
- package/dist/tools/validation.d.ts.map +1 -0
- package/dist/tools/validation.js +125 -0
- package/dist/tools/validation.js.map +1 -0
- package/dist/types/index.d.ts +13 -0
- package/dist/types/index.d.ts.map +1 -1
- package/dist/ui/components/App.d.ts +3 -0
- package/dist/ui/components/App.d.ts.map +1 -1
- package/dist/ui/components/App.js +173 -15
- package/dist/ui/components/App.js.map +1 -1
- package/dist/ui/components/ContextWindowIndicator.d.ts +8 -0
- package/dist/ui/components/ContextWindowIndicator.d.ts.map +1 -0
- package/dist/ui/components/ContextWindowIndicator.js +34 -0
- package/dist/ui/components/ContextWindowIndicator.js.map +1 -0
- package/dist/ui/components/InputBox.d.ts +2 -0
- package/dist/ui/components/InputBox.d.ts.map +1 -1
- package/dist/ui/components/InputBox.js +6 -2
- package/dist/ui/components/InputBox.js.map +1 -1
- package/dist/ui/components/MessageDisplay.d.ts.map +1 -1
- package/dist/ui/components/MessageDisplay.js +7 -0
- package/dist/ui/components/MessageDisplay.js.map +1 -1
- package/dist/ui/components/StreamingMessageDisplay.d.ts.map +1 -1
- package/dist/ui/components/StreamingMessageDisplay.js +9 -1
- package/dist/ui/components/StreamingMessageDisplay.js.map +1 -1
- package/dist/ui/components/ThinkingDisplay.d.ts +2 -3
- package/dist/ui/components/ThinkingDisplay.d.ts.map +1 -1
- package/dist/ui/components/ThinkingDisplay.js +19 -19
- package/dist/ui/components/ThinkingDisplay.js.map +1 -1
- package/dist/utils/markdown-parser.d.ts +4 -0
- package/dist/utils/markdown-parser.d.ts.map +1 -1
- package/dist/utils/markdown-parser.js +15 -1
- package/dist/utils/markdown-parser.js.map +1 -1
- package/package.json +2 -1
- package/AUTH_FLOW.md +0 -138
- package/CONFIG_GUIDE.md +0 -249
- package/README.md +0 -501
package/README.md
DELETED
|
@@ -1,501 +0,0 @@
|
|
|
1
|
-
# Centaurus CLI
|
|
2
|
-
|
|
3
|
-
> A powerful command-line AI coding assistant powered by Google Gemini
|
|
4
|
-
|
|
5
|
-
[](https://www.npmjs.com/package/centaurus-cli)
|
|
6
|
-
[](https://opensource.org/licenses/MIT)
|
|
7
|
-
[](https://nodejs.org)
|
|
8
|
-
|
|
9
|
-
## Features
|
|
10
|
-
|
|
11
|
-
✨ **AI-Powered Coding Assistant**
|
|
12
|
-
- Support for Google Gemini (2.5 Flash, 2.5 Pro, 2.0 Flash, and more)
|
|
13
|
-
- Intelligent code generation and editing
|
|
14
|
-
- Context-aware file operations
|
|
15
|
-
- **Enhanced Agentic Loop** - Autonomous multi-turn task completion
|
|
16
|
-
|
|
17
|
-
🔧 **Developer Tools**
|
|
18
|
-
- Read, write, and edit files with AI assistance
|
|
19
|
-
- Execute shell commands safely
|
|
20
|
-
- Search codebases with grep
|
|
21
|
-
- Web search capabilities (requires authentication)
|
|
22
|
-
- Diff viewer for code changes
|
|
23
|
-
|
|
24
|
-
🎨 **Beautiful Terminal UI**
|
|
25
|
-
- Built with Ink (React for CLIs)
|
|
26
|
-
- Syntax highlighting for code blocks
|
|
27
|
-
- Interactive pickers and prompts
|
|
28
|
-
- Real-time streaming responses
|
|
29
|
-
- Markdown rendering
|
|
30
|
-
|
|
31
|
-
☁️ **Cloud Sync**
|
|
32
|
-
- Conversation history across devices
|
|
33
|
-
- Settings synchronization
|
|
34
|
-
- Seamless authentication with Google
|
|
35
|
-
- Secure backend-managed AI access
|
|
36
|
-
|
|
37
|
-
🤖 **Autonomous Operation**
|
|
38
|
-
- Continuous multi-turn execution until task completion
|
|
39
|
-
- Automatic detection of incomplete work
|
|
40
|
-
- Smart continuation without manual prompting
|
|
41
|
-
- Handles complex multi-file projects seamlessly
|
|
42
|
-
|
|
43
|
-
## Installation
|
|
44
|
-
|
|
45
|
-
### Global Installation (Recommended)
|
|
46
|
-
|
|
47
|
-
```bash
|
|
48
|
-
npm install -g centaurus-cli
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
After installation, you can run Centaurus from any directory:
|
|
52
|
-
|
|
53
|
-
```bash
|
|
54
|
-
centaurus
|
|
55
|
-
```
|
|
56
|
-
|
|
57
|
-
### Local Installation
|
|
58
|
-
|
|
59
|
-
```bash
|
|
60
|
-
npm install centaurus-cli
|
|
61
|
-
npx centaurus
|
|
62
|
-
```
|
|
63
|
-
|
|
64
|
-
## Quick Start
|
|
65
|
-
|
|
66
|
-
### 1. Prerequisites
|
|
67
|
-
|
|
68
|
-
Before using Centaurus CLI, ensure the backend service is running and accessible. The backend handles all AI model interactions.
|
|
69
|
-
|
|
70
|
-
**Backend Setup:**
|
|
71
|
-
- The backend must be deployed and configured with Google API keys
|
|
72
|
-
- Set the backend URL in your `.env` file (see Configuration section)
|
|
73
|
-
- Default: `http://localhost:3000/api`
|
|
74
|
-
|
|
75
|
-
### 2. First Launch
|
|
76
|
-
|
|
77
|
-
When you first run Centaurus, you'll see a beautiful welcome screen:
|
|
78
|
-
|
|
79
|
-
```bash
|
|
80
|
-
centaurus
|
|
81
|
-
```
|
|
82
|
-
|
|
83
|
-
You'll be prompted to sign in with Google. **Authentication is required** to use AI features.
|
|
84
|
-
|
|
85
|
-
### 3. Start Chatting
|
|
86
|
-
|
|
87
|
-
Once authenticated, just type your message and press Enter:
|
|
88
|
-
|
|
89
|
-
```
|
|
90
|
-
> Create a React component for a todo list
|
|
91
|
-
```
|
|
92
|
-
|
|
93
|
-
The AI will help you with code generation, file operations, and more!
|
|
94
|
-
|
|
95
|
-
## Configuration
|
|
96
|
-
|
|
97
|
-
### Environment Setup
|
|
98
|
-
|
|
99
|
-
Create a `.env` file in your project directory:
|
|
100
|
-
|
|
101
|
-
```env
|
|
102
|
-
# Backend API URL (required for all AI features)
|
|
103
|
-
BACKEND_API_URL=http://localhost:3000/api
|
|
104
|
-
```
|
|
105
|
-
|
|
106
|
-
**Important:** The backend URL is required for the CLI to function. All AI model calls are proxied through the backend service.
|
|
107
|
-
|
|
108
|
-
### User Configuration
|
|
109
|
-
|
|
110
|
-
Your settings are stored in `~/.centaurus/config.json`:
|
|
111
|
-
- Preferred model
|
|
112
|
-
- Theme settings
|
|
113
|
-
- Auto-accept preferences
|
|
114
|
-
- Plan mode settings
|
|
115
|
-
|
|
116
|
-
**Note:** API keys and system prompts are managed centrally by the backend service. This ensures:
|
|
117
|
-
- Consistent AI behavior across all Centaurus clients (CLI, Desktop, Web)
|
|
118
|
-
- Easy updates to AI instructions without client changes
|
|
119
|
-
- Secure credential management
|
|
120
|
-
- Environment-aware responses (OS, shell, working directory)
|
|
121
|
-
|
|
122
|
-
## Commands
|
|
123
|
-
|
|
124
|
-
### Slash Commands
|
|
125
|
-
|
|
126
|
-
```bash
|
|
127
|
-
/help # Show all commands
|
|
128
|
-
/config # View current configuration
|
|
129
|
-
/model # Select AI model
|
|
130
|
-
/plan # Toggle plan mode
|
|
131
|
-
/clear # Clear conversation history
|
|
132
|
-
/logout # Sign out and exit
|
|
133
|
-
/exit # Exit the application
|
|
134
|
-
```
|
|
135
|
-
|
|
136
|
-
### Examples
|
|
137
|
-
|
|
138
|
-
```bash
|
|
139
|
-
# Change model
|
|
140
|
-
/model gemini-2.5-flash
|
|
141
|
-
|
|
142
|
-
# Enable plan mode for complex tasks
|
|
143
|
-
/plan
|
|
144
|
-
|
|
145
|
-
# Clear conversation history
|
|
146
|
-
/clear
|
|
147
|
-
```
|
|
148
|
-
|
|
149
|
-
## Features in Detail
|
|
150
|
-
|
|
151
|
-
### Enhanced Agentic Loop
|
|
152
|
-
|
|
153
|
-
Centaurus CLI features a robust autonomous operation system that works continuously until your task is complete:
|
|
154
|
-
|
|
155
|
-
**How It Works:**
|
|
156
|
-
- The AI executes multiple turns automatically without manual prompting
|
|
157
|
-
- Detects when work is incomplete and continues autonomously
|
|
158
|
-
- Handles complex multi-file projects in a single session
|
|
159
|
-
- Supports up to 100 turns for complex tasks
|
|
160
|
-
- Automatically stops when the task is complete
|
|
161
|
-
|
|
162
|
-
**Example - Multi-File Project:**
|
|
163
|
-
```
|
|
164
|
-
> Create a landing page with HTML, CSS, and JavaScript
|
|
165
|
-
```
|
|
166
|
-
|
|
167
|
-
The AI will:
|
|
168
|
-
1. Create `index.html` with structure
|
|
169
|
-
2. Create `styles.css` with styling
|
|
170
|
-
3. Create `script.js` with interactivity
|
|
171
|
-
4. Complete the task automatically without additional prompts
|
|
172
|
-
|
|
173
|
-
**Smart Continuation:**
|
|
174
|
-
- Detects incomplete responses (e.g., "I created the HTML file...")
|
|
175
|
-
- Automatically prompts the AI to continue with remaining steps
|
|
176
|
-
- Prevents premature stopping on complex tasks
|
|
177
|
-
|
|
178
|
-
**Safety Features:**
|
|
179
|
-
- 500ms delay between turns to prevent rate limiting
|
|
180
|
-
- Maximum 100 turns to prevent infinite loops
|
|
181
|
-
- Long-running command protection (blocks `npm run dev`, etc.)
|
|
182
|
-
- 30-second timeout for command executions
|
|
183
|
-
|
|
184
|
-
### File Operations
|
|
185
|
-
|
|
186
|
-
Centaurus can read, write, and edit files in your project:
|
|
187
|
-
|
|
188
|
-
```
|
|
189
|
-
> Read the package.json file
|
|
190
|
-
> Create a new file called utils.ts with helper functions
|
|
191
|
-
> Edit the README.md to add installation instructions
|
|
192
|
-
```
|
|
193
|
-
|
|
194
|
-
### Code Generation
|
|
195
|
-
|
|
196
|
-
Generate code in any language:
|
|
197
|
-
|
|
198
|
-
```
|
|
199
|
-
> Create a Python script to parse CSV files
|
|
200
|
-
> Write a TypeScript interface for a user object
|
|
201
|
-
> Generate a SQL query to find duplicate records
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
### Web Search
|
|
205
|
-
|
|
206
|
-
Search the web for documentation and solutions (requires authentication):
|
|
207
|
-
|
|
208
|
-
```
|
|
209
|
-
> Search for the latest React hooks best practices
|
|
210
|
-
> Find documentation for the Axios library
|
|
211
|
-
```
|
|
212
|
-
|
|
213
|
-
### Command Execution
|
|
214
|
-
|
|
215
|
-
Execute shell commands safely:
|
|
216
|
-
|
|
217
|
-
```
|
|
218
|
-
> Run npm install
|
|
219
|
-
> List all files in the current directory
|
|
220
|
-
> Check the git status
|
|
221
|
-
```
|
|
222
|
-
|
|
223
|
-
**Note:** Long-running commands (like `npm run dev`, `yarn start`, or development servers) are automatically blocked. Run these manually in a separate terminal.
|
|
224
|
-
|
|
225
|
-
### Plan Mode
|
|
226
|
-
|
|
227
|
-
For complex tasks, enable plan mode to see the implementation plan before execution:
|
|
228
|
-
|
|
229
|
-
```bash
|
|
230
|
-
/plan
|
|
231
|
-
> Build a REST API with Express and TypeScript
|
|
232
|
-
```
|
|
233
|
-
|
|
234
|
-
The AI will create a detailed plan and ask for approval before implementing.
|
|
235
|
-
|
|
236
|
-
## Authentication
|
|
237
|
-
|
|
238
|
-
### Sign In (Required)
|
|
239
|
-
|
|
240
|
-
Authentication with Google is required to use Centaurus CLI:
|
|
241
|
-
|
|
242
|
-
1. Start Centaurus
|
|
243
|
-
2. Select "Sign in with Google"
|
|
244
|
-
3. Complete authentication in browser
|
|
245
|
-
4. Start using AI features!
|
|
246
|
-
|
|
247
|
-
### Features
|
|
248
|
-
|
|
249
|
-
- **Conversation History**: Access your chats from any device
|
|
250
|
-
- **Settings Sync**: Your preferences follow you everywhere
|
|
251
|
-
- **Secure AI Access**: Backend-managed API keys for security
|
|
252
|
-
- **Web Search**: Powered by backend API
|
|
253
|
-
|
|
254
|
-
### Backend Connectivity
|
|
255
|
-
|
|
256
|
-
Centaurus CLI requires a connection to the backend service:
|
|
257
|
-
- All AI model calls are proxied through the backend
|
|
258
|
-
- Authentication tokens are validated by the backend
|
|
259
|
-
- Ensures secure and centralized API key management
|
|
260
|
-
- No local API key storage required
|
|
261
|
-
|
|
262
|
-
### System Prompt Management
|
|
263
|
-
|
|
264
|
-
System prompts (the foundational AI instructions) are managed entirely by the backend:
|
|
265
|
-
|
|
266
|
-
**Benefits:**
|
|
267
|
-
- **Consistency**: All Centaurus clients use the same AI behavior
|
|
268
|
-
- **Easy Updates**: Prompt improvements are deployed instantly without client updates
|
|
269
|
-
- **Environment Awareness**: Backend injects your OS, shell, and working directory context
|
|
270
|
-
- **Mode Support**: Different prompts for default, plan, and command modes
|
|
271
|
-
|
|
272
|
-
**How It Works:**
|
|
273
|
-
1. CLI sends your message and environment context to the backend
|
|
274
|
-
2. Backend injects the appropriate system prompt with your environment details
|
|
275
|
-
3. AI receives complete context and responds appropriately
|
|
276
|
-
4. No prompt management needed on your end!
|
|
277
|
-
|
|
278
|
-
**Environment Context Sent:**
|
|
279
|
-
- Operating system (Windows, macOS, Linux)
|
|
280
|
-
- Shell type (cmd, PowerShell, bash, zsh)
|
|
281
|
-
- Current working directory
|
|
282
|
-
- Home directory path
|
|
283
|
-
- Current mode (default, plan, command)
|
|
284
|
-
|
|
285
|
-
## Advanced Usage
|
|
286
|
-
|
|
287
|
-
### Custom Backend
|
|
288
|
-
|
|
289
|
-
Set up your own backend instance:
|
|
290
|
-
|
|
291
|
-
```env
|
|
292
|
-
BACKEND_API_URL=https://your-backend.com/api
|
|
293
|
-
```
|
|
294
|
-
|
|
295
|
-
**Backend Requirements:**
|
|
296
|
-
- Must be configured with Google API keys
|
|
297
|
-
- Must support the `/api/ai/chat` endpoint
|
|
298
|
-
- Must handle authentication and session management
|
|
299
|
-
|
|
300
|
-
### Keyboard Shortcuts
|
|
301
|
-
|
|
302
|
-
- `Ctrl+C` - Cancel current operation
|
|
303
|
-
- `Ctrl+D` - Exit (when input is empty)
|
|
304
|
-
- `Arrow Keys` - Navigate pickers
|
|
305
|
-
- `Enter` - Confirm selection
|
|
306
|
-
|
|
307
|
-
## Troubleshooting
|
|
308
|
-
|
|
309
|
-
### "Authentication required"
|
|
310
|
-
|
|
311
|
-
Sign in with Google:
|
|
312
|
-
1. Restart the CLI
|
|
313
|
-
2. Choose "Yes" when prompted to sign in
|
|
314
|
-
3. Complete the authentication flow in your browser
|
|
315
|
-
|
|
316
|
-
### "Backend API is not reachable"
|
|
317
|
-
|
|
318
|
-
Check your `.env` file and ensure the backend is running:
|
|
319
|
-
|
|
320
|
-
```env
|
|
321
|
-
BACKEND_API_URL=http://localhost:3000/api
|
|
322
|
-
```
|
|
323
|
-
|
|
324
|
-
Verify backend is running:
|
|
325
|
-
```bash
|
|
326
|
-
cd backend
|
|
327
|
-
npm start
|
|
328
|
-
```
|
|
329
|
-
|
|
330
|
-
**Common Issues:**
|
|
331
|
-
- Backend service is not running
|
|
332
|
-
- Incorrect backend URL in `.env`
|
|
333
|
-
- Network connectivity issues
|
|
334
|
-
- Firewall blocking the connection
|
|
335
|
-
|
|
336
|
-
### "Rate limit exceeded"
|
|
337
|
-
|
|
338
|
-
The backend has exhausted its API quota. This is managed by the backend administrator. Wait a few moments and try again.
|
|
339
|
-
|
|
340
|
-
### AI Stops Before Task is Complete
|
|
341
|
-
|
|
342
|
-
If the AI stops working before finishing your task:
|
|
343
|
-
|
|
344
|
-
**Possible Causes:**
|
|
345
|
-
1. **Network interruption** - Check your internet connection
|
|
346
|
-
2. **Backend timeout** - The backend may have timed out; try again
|
|
347
|
-
3. **Turn limit reached** - Very complex tasks may hit the 100-turn safety limit
|
|
348
|
-
|
|
349
|
-
**Solutions:**
|
|
350
|
-
- For simple continuation: Send a follow-up message like "Continue with the remaining steps"
|
|
351
|
-
- For complex tasks: Break the task into smaller, more specific requests
|
|
352
|
-
- Check backend logs for errors if the issue persists
|
|
353
|
-
|
|
354
|
-
### AI Keeps Working After Task is Done
|
|
355
|
-
|
|
356
|
-
The enhanced agentic loop should automatically detect completion. If it continues unnecessarily:
|
|
357
|
-
|
|
358
|
-
**What to Do:**
|
|
359
|
-
- Press `Ctrl+C` to stop the current operation
|
|
360
|
-
- The AI should detect completion within 2-3 turns after finishing
|
|
361
|
-
- If this happens frequently, report it as a bug with your task description
|
|
362
|
-
|
|
363
|
-
### Long-Running Commands Blocked
|
|
364
|
-
|
|
365
|
-
Commands like `npm run dev`, `yarn start`, or `python -m http.server` are automatically blocked:
|
|
366
|
-
|
|
367
|
-
**Why:**
|
|
368
|
-
- These commands don't terminate and would hang the CLI
|
|
369
|
-
- They're meant to run in separate terminal sessions
|
|
370
|
-
|
|
371
|
-
**Solution:**
|
|
372
|
-
- Run development servers manually in a separate terminal
|
|
373
|
-
- The AI will inform you when you need to run these commands yourself
|
|
374
|
-
|
|
375
|
-
### Slow Response or Timeouts
|
|
376
|
-
|
|
377
|
-
If responses are slow or timing out:
|
|
378
|
-
|
|
379
|
-
**Troubleshooting Steps:**
|
|
380
|
-
1. Check your internet connection speed
|
|
381
|
-
2. Verify backend is responsive: `curl http://localhost:3000/api/health`
|
|
382
|
-
3. Check backend logs for rate limiting or API errors
|
|
383
|
-
4. Try a simpler query to test connectivity
|
|
384
|
-
5. Restart the CLI and try again
|
|
385
|
-
|
|
386
|
-
### Commands Timing Out
|
|
387
|
-
|
|
388
|
-
Individual commands have a 30-second timeout:
|
|
389
|
-
|
|
390
|
-
**If a command times out:**
|
|
391
|
-
- The command may be too slow or hanging
|
|
392
|
-
- Check if the command works when run manually
|
|
393
|
-
- Consider breaking complex commands into smaller steps
|
|
394
|
-
- Some operations (large file processing) may need to be done outside the CLI
|
|
395
|
-
|
|
396
|
-
### Environment Context Issues
|
|
397
|
-
|
|
398
|
-
If the AI doesn't seem aware of your OS or environment:
|
|
399
|
-
|
|
400
|
-
**Check:**
|
|
401
|
-
1. Backend is receiving environment context (check backend logs)
|
|
402
|
-
2. Your shell environment variables are set correctly
|
|
403
|
-
3. Backend system prompt service is functioning
|
|
404
|
-
|
|
405
|
-
**Verify:**
|
|
406
|
-
```bash
|
|
407
|
-
# Check environment variables
|
|
408
|
-
echo $SHELL # macOS/Linux
|
|
409
|
-
echo %ComSpec% # Windows
|
|
410
|
-
```
|
|
411
|
-
|
|
412
|
-
### Reset Configuration
|
|
413
|
-
|
|
414
|
-
Delete the config file to start fresh:
|
|
415
|
-
|
|
416
|
-
**Windows:**
|
|
417
|
-
```cmd
|
|
418
|
-
del %USERPROFILE%\.centaurus\config.json
|
|
419
|
-
```
|
|
420
|
-
|
|
421
|
-
**macOS/Linux:**
|
|
422
|
-
```bash
|
|
423
|
-
rm ~/.centaurus/config.json
|
|
424
|
-
```
|
|
425
|
-
|
|
426
|
-
**Note:** This will clear your model preferences and settings, but you'll need to re-authenticate.
|
|
427
|
-
|
|
428
|
-
### Getting Help
|
|
429
|
-
|
|
430
|
-
If you're still experiencing issues:
|
|
431
|
-
|
|
432
|
-
1. **Check Backend Logs**: Most issues originate from backend connectivity or configuration
|
|
433
|
-
2. **Enable Debug Logging**: Set `DEBUG=centaurus:*` environment variable
|
|
434
|
-
3. **Report Issues**: Include your OS, Node version, and error messages
|
|
435
|
-
4. **Community Support**: Check discussions for similar issues and solutions
|
|
436
|
-
|
|
437
|
-
## Requirements
|
|
438
|
-
|
|
439
|
-
- Node.js >= 18.0.0
|
|
440
|
-
- npm or yarn
|
|
441
|
-
- Terminal with color support
|
|
442
|
-
- **Backend service running and accessible**
|
|
443
|
-
- **Google account for authentication**
|
|
444
|
-
|
|
445
|
-
## Development
|
|
446
|
-
|
|
447
|
-
### Clone and Build
|
|
448
|
-
|
|
449
|
-
```bash
|
|
450
|
-
git clone https://github.com/yourusername/centaurus-cli.git
|
|
451
|
-
cd centaurus-cli
|
|
452
|
-
npm install
|
|
453
|
-
npm run build
|
|
454
|
-
npm start
|
|
455
|
-
```
|
|
456
|
-
|
|
457
|
-
### Project Structure
|
|
458
|
-
|
|
459
|
-
```
|
|
460
|
-
centaurus-cli/
|
|
461
|
-
├── src/
|
|
462
|
-
│ ├── ai/ # AI provider implementations
|
|
463
|
-
│ ├── commands/ # Command parser
|
|
464
|
-
│ ├── config/ # Configuration management
|
|
465
|
-
│ ├── services/ # API client and services
|
|
466
|
-
│ ├── tools/ # Tool implementations
|
|
467
|
-
│ ├── ui/ # Ink UI components
|
|
468
|
-
│ └── index.ts # Entry point
|
|
469
|
-
├── dist/ # Compiled JavaScript
|
|
470
|
-
└── package.json
|
|
471
|
-
```
|
|
472
|
-
|
|
473
|
-
## Contributing
|
|
474
|
-
|
|
475
|
-
Contributions are welcome! Please feel free to submit a Pull Request.
|
|
476
|
-
|
|
477
|
-
1. Fork the repository
|
|
478
|
-
2. Create your feature branch (`git checkout -b feature/amazing-feature`)
|
|
479
|
-
3. Commit your changes (`git commit -m 'Add amazing feature'`)
|
|
480
|
-
4. Push to the branch (`git push origin feature/amazing-feature`)
|
|
481
|
-
5. Open a Pull Request
|
|
482
|
-
|
|
483
|
-
## License
|
|
484
|
-
|
|
485
|
-
MIT © [Your Name]
|
|
486
|
-
|
|
487
|
-
## Support
|
|
488
|
-
|
|
489
|
-
- 📖 [Documentation](./CONFIG_GUIDE.md)
|
|
490
|
-
- 🐛 [Report Issues](https://github.com/yourusername/centaurus-cli/issues)
|
|
491
|
-
- 💬 [Discussions](https://github.com/yourusername/centaurus-cli/discussions)
|
|
492
|
-
|
|
493
|
-
## Acknowledgments
|
|
494
|
-
|
|
495
|
-
- Built with [Ink](https://github.com/vadimdemedes/ink) - React for CLIs
|
|
496
|
-
- Powered by [Google Gemini](https://ai.google.dev/)
|
|
497
|
-
- Inspired by modern AI coding assistants
|
|
498
|
-
|
|
499
|
-
---
|
|
500
|
-
|
|
501
|
-
Made with ❤️ by developers, for developers
|