centaurus-cli 2.4.0 → 2.5.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/README.md +151 -1
- package/dist/cli-adapter.d.ts +41 -2
- package/dist/cli-adapter.d.ts.map +1 -1
- package/dist/cli-adapter.js +407 -79
- package/dist/cli-adapter.js.map +1 -1
- package/dist/config/types.d.ts +23 -0
- package/dist/config/types.d.ts.map +1 -1
- package/dist/config/types.js +20 -0
- package/dist/config/types.js.map +1 -1
- package/dist/context/__tests__/command-detector.test.d.ts +14 -0
- package/dist/context/__tests__/command-detector.test.d.ts.map +1 -0
- package/dist/context/__tests__/command-detector.test.js +318 -0
- package/dist/context/__tests__/command-detector.test.js.map +1 -0
- package/dist/context/__tests__/context-manager.test.d.ts +16 -0
- package/dist/context/__tests__/context-manager.test.d.ts.map +1 -0
- package/dist/context/__tests__/context-manager.test.js +375 -0
- package/dist/context/__tests__/context-manager.test.js.map +1 -0
- package/dist/context/__tests__/error-handling.test.d.ts +15 -0
- package/dist/context/__tests__/error-handling.test.d.ts.map +1 -0
- package/dist/context/__tests__/error-handling.test.js +447 -0
- package/dist/context/__tests__/error-handling.test.js.map +1 -0
- package/dist/context/command-detector.d.ts +50 -0
- package/dist/context/command-detector.d.ts.map +1 -0
- package/dist/context/command-detector.js +72 -0
- package/dist/context/command-detector.js.map +1 -0
- package/dist/context/context-manager.d.ts +144 -0
- package/dist/context/context-manager.d.ts.map +1 -0
- package/dist/context/context-manager.js +487 -0
- package/dist/context/context-manager.js.map +1 -0
- package/dist/context/handlers/__tests__/docker-handler.test.d.ts +13 -0
- package/dist/context/handlers/__tests__/docker-handler.test.d.ts.map +1 -0
- package/dist/context/handlers/__tests__/docker-handler.test.js +285 -0
- package/dist/context/handlers/__tests__/docker-handler.test.js.map +1 -0
- package/dist/context/handlers/__tests__/ssh-handler.test.d.ts +13 -0
- package/dist/context/handlers/__tests__/ssh-handler.test.d.ts.map +1 -0
- package/dist/context/handlers/__tests__/ssh-handler.test.js +251 -0
- package/dist/context/handlers/__tests__/ssh-handler.test.js.map +1 -0
- package/dist/context/handlers/__tests__/wsl-handler.test.d.ts +7 -0
- package/dist/context/handlers/__tests__/wsl-handler.test.d.ts.map +1 -0
- package/dist/context/handlers/__tests__/wsl-handler.test.js +331 -0
- package/dist/context/handlers/__tests__/wsl-handler.test.js.map +1 -0
- package/dist/context/handlers/docker-handler.d.ts +111 -0
- package/dist/context/handlers/docker-handler.d.ts.map +1 -0
- package/dist/context/handlers/docker-handler.js +439 -0
- package/dist/context/handlers/docker-handler.js.map +1 -0
- package/dist/context/handlers/ssh-handler.d.ts +120 -0
- package/dist/context/handlers/ssh-handler.d.ts.map +1 -0
- package/dist/context/handlers/ssh-handler.js +523 -0
- package/dist/context/handlers/ssh-handler.js.map +1 -0
- package/dist/context/handlers/wsl-handler.d.ts +128 -0
- package/dist/context/handlers/wsl-handler.d.ts.map +1 -0
- package/dist/context/handlers/wsl-handler.js +590 -0
- package/dist/context/handlers/wsl-handler.js.map +1 -0
- package/dist/context/index.d.ts +8 -0
- package/dist/context/index.d.ts.map +1 -0
- package/dist/context/index.js +7 -0
- package/dist/context/index.js.map +1 -0
- package/dist/context/subshell-handler.d.ts +130 -0
- package/dist/context/subshell-handler.d.ts.map +1 -0
- package/dist/context/subshell-handler.js +5 -0
- package/dist/context/subshell-handler.js.map +1 -0
- package/dist/context/types.d.ts +70 -0
- package/dist/context/types.d.ts.map +1 -0
- package/dist/context/types.js +34 -0
- package/dist/context/types.js.map +1 -0
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/dist/services/__tests__/ai-context-injector.test.d.ts +15 -0
- package/dist/services/__tests__/ai-context-injector.test.d.ts.map +1 -0
- package/dist/services/__tests__/ai-context-injector.test.js +326 -0
- package/dist/services/__tests__/ai-context-injector.test.js.map +1 -0
- package/dist/services/ai-context-injector.d.ts +41 -0
- package/dist/services/ai-context-injector.d.ts.map +1 -0
- package/dist/services/ai-context-injector.js +97 -0
- package/dist/services/ai-context-injector.js.map +1 -0
- package/dist/services/ai-service-client.d.ts +4 -1
- package/dist/services/ai-service-client.d.ts.map +1 -1
- package/dist/services/ai-service-client.js +5 -1
- package/dist/services/ai-service-client.js.map +1 -1
- package/dist/src/context/types.js +27 -0
- package/dist/src/services/ai-context-injector.js +96 -0
- package/dist/src/services/ai-service-client.js +270 -0
- package/dist/src/services/api-client.js +349 -0
- package/dist/src/tools/types.js +1 -0
- package/dist/src/types/index.js +1 -0
- package/dist/test/context/types.js +27 -0
- package/dist/test/services/__tests__/ai-context-injector.test.js +325 -0
- package/dist/test/services/ai-context-injector.js +96 -0
- package/dist/test/services/ai-service-client.js +270 -0
- package/dist/test/services/api-client.js +349 -0
- package/dist/test/tools/types.js +1 -0
- package/dist/test/types/index.js +1 -0
- package/dist/test-ai-context-injector.js +97 -0
- package/dist/test-ssh-handler.d.ts +8 -0
- package/dist/test-ssh-handler.d.ts.map +1 -0
- package/dist/test-ssh-handler.js +198 -0
- package/dist/test-ssh-handler.js.map +1 -0
- package/dist/tools/command.d.ts.map +1 -1
- package/dist/tools/command.js +123 -46
- package/dist/tools/command.js.map +1 -1
- package/dist/tools/file-ops.d.ts.map +1 -1
- package/dist/tools/file-ops.js +115 -48
- package/dist/tools/file-ops.js.map +1 -1
- package/dist/tools/types.d.ts +1 -0
- package/dist/tools/types.d.ts.map +1 -1
- package/dist/types/index.d.ts +41 -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 +213 -46
- package/dist/ui/components/App.js.map +1 -1
- package/dist/ui/components/Breadcrumbs.d.ts +12 -0
- package/dist/ui/components/Breadcrumbs.d.ts.map +1 -0
- package/dist/ui/components/Breadcrumbs.js +62 -0
- package/dist/ui/components/Breadcrumbs.js.map +1 -0
- package/dist/ui/components/CodeBlock.js +1 -1
- package/dist/ui/components/CodeBlock.js.map +1 -1
- package/dist/ui/components/DiffViewer.js +1 -1
- package/dist/ui/components/DiffViewer.js.map +1 -1
- package/dist/ui/components/FileViewerScreen.d.ts +14 -0
- package/dist/ui/components/FileViewerScreen.d.ts.map +1 -0
- package/dist/ui/components/FileViewerScreen.js +74 -0
- package/dist/ui/components/FileViewerScreen.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 +85 -41
- 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 +3 -28
- package/dist/ui/components/MessageDisplay.js.map +1 -1
- package/dist/ui/components/PasswordPrompt.d.ts +9 -0
- package/dist/ui/components/PasswordPrompt.d.ts.map +1 -0
- package/dist/ui/components/PasswordPrompt.js +20 -0
- package/dist/ui/components/PasswordPrompt.js.map +1 -0
- package/dist/ui/components/StatusBar.d.ts +2 -0
- package/dist/ui/components/StatusBar.d.ts.map +1 -1
- package/dist/ui/components/StatusBar.js +36 -1
- package/dist/ui/components/StatusBar.js.map +1 -1
- package/dist/ui/components/ToolExecutionMessage.d.ts.map +1 -1
- package/dist/ui/components/ToolExecutionMessage.js +13 -24
- package/dist/ui/components/ToolExecutionMessage.js.map +1 -1
- package/dist/ui/components/VersionUpdatePrompt.d.ts +10 -0
- package/dist/ui/components/VersionUpdatePrompt.d.ts.map +1 -0
- package/dist/ui/components/VersionUpdatePrompt.js +41 -0
- package/dist/ui/components/VersionUpdatePrompt.js.map +1 -0
- package/dist/utils/shell.d.ts.map +1 -1
- package/dist/utils/shell.js +38 -10
- package/dist/utils/shell.js.map +1 -1
- package/dist/utils/version-checker.d.ts +14 -0
- package/dist/utils/version-checker.d.ts.map +1 -0
- package/dist/utils/version-checker.js +63 -0
- package/dist/utils/version-checker.js.map +1 -0
- package/package.json +71 -69
package/README.md
CHANGED
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
- Support for Google Gemini (2.5 Flash, 2.5 Pro, 2.0 Flash, and more)
|
|
13
13
|
- Intelligent code generation and editing
|
|
14
14
|
- Context-aware file operations
|
|
15
|
+
- **Enhanced Agentic Loop** - Autonomous multi-turn task completion
|
|
15
16
|
|
|
16
17
|
🔧 **Developer Tools**
|
|
17
18
|
- Read, write, and edit files with AI assistance
|
|
@@ -33,6 +34,12 @@
|
|
|
33
34
|
- Seamless authentication with Google
|
|
34
35
|
- Secure backend-managed AI access
|
|
35
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
|
+
|
|
36
43
|
## Installation
|
|
37
44
|
|
|
38
45
|
### Global Installation (Recommended)
|
|
@@ -106,7 +113,11 @@ Your settings are stored in `~/.centaurus/config.json`:
|
|
|
106
113
|
- Auto-accept preferences
|
|
107
114
|
- Plan mode settings
|
|
108
115
|
|
|
109
|
-
**Note:** API keys
|
|
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)
|
|
110
121
|
|
|
111
122
|
## Commands
|
|
112
123
|
|
|
@@ -137,6 +148,39 @@ Your settings are stored in `~/.centaurus/config.json`:
|
|
|
137
148
|
|
|
138
149
|
## Features in Detail
|
|
139
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
|
+
|
|
140
184
|
### File Operations
|
|
141
185
|
|
|
142
186
|
Centaurus can read, write, and edit files in your project:
|
|
@@ -176,6 +220,8 @@ Execute shell commands safely:
|
|
|
176
220
|
> Check the git status
|
|
177
221
|
```
|
|
178
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
|
+
|
|
179
225
|
### Plan Mode
|
|
180
226
|
|
|
181
227
|
For complex tasks, enable plan mode to see the implementation plan before execution:
|
|
@@ -213,6 +259,29 @@ Centaurus CLI requires a connection to the backend service:
|
|
|
213
259
|
- Ensures secure and centralized API key management
|
|
214
260
|
- No local API key storage required
|
|
215
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
|
+
|
|
216
285
|
## Advanced Usage
|
|
217
286
|
|
|
218
287
|
### Custom Backend
|
|
@@ -268,6 +337,78 @@ npm start
|
|
|
268
337
|
|
|
269
338
|
The backend has exhausted its API quota. This is managed by the backend administrator. Wait a few moments and try again.
|
|
270
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
|
+
|
|
271
412
|
### Reset Configuration
|
|
272
413
|
|
|
273
414
|
Delete the config file to start fresh:
|
|
@@ -284,6 +425,15 @@ rm ~/.centaurus/config.json
|
|
|
284
425
|
|
|
285
426
|
**Note:** This will clear your model preferences and settings, but you'll need to re-authenticate.
|
|
286
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
|
+
|
|
287
437
|
## Requirements
|
|
288
438
|
|
|
289
439
|
- Node.js >= 18.0.0
|
package/dist/cli-adapter.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
+
import { SubshellContext } from './context/types.js';
|
|
1
2
|
export declare class CentaurusCLI {
|
|
2
3
|
private configManager;
|
|
3
4
|
private toolRegistry;
|
|
4
5
|
private conversationHistory;
|
|
5
|
-
private systemPrompt;
|
|
6
6
|
private cwd;
|
|
7
7
|
private planMode;
|
|
8
8
|
private commandMode;
|
|
@@ -17,7 +17,12 @@ export declare class CentaurusCLI {
|
|
|
17
17
|
private onToolStreamingOutput?;
|
|
18
18
|
private onPlanModeChange?;
|
|
19
19
|
private onPlanApprovalRequest?;
|
|
20
|
+
private onPasswordRequest?;
|
|
20
21
|
private conversationStarted;
|
|
22
|
+
private contextManager;
|
|
23
|
+
private commandDetector;
|
|
24
|
+
private aiContextInjector;
|
|
25
|
+
private onSubshellContextChange?;
|
|
21
26
|
constructor();
|
|
22
27
|
setOnResponseCallback(callback: (message: string) => void): void;
|
|
23
28
|
setOnResponseStreamCallback(callback: (chunk: string) => void): void;
|
|
@@ -59,10 +64,14 @@ export declare class CentaurusCLI {
|
|
|
59
64
|
}) => Promise<boolean>): void;
|
|
60
65
|
setOnCommandModeChange(callback: (commandMode: boolean) => void): void;
|
|
61
66
|
setOnCwdChange(callback: (cwd: string) => void): void;
|
|
67
|
+
setOnSubshellContextChange(callback: (context: SubshellContext) => void): void;
|
|
68
|
+
setOnPasswordRequest(callback: (message: string) => Promise<string>): void;
|
|
62
69
|
getPlanMode(): boolean;
|
|
63
70
|
getCommandMode(): boolean;
|
|
64
71
|
getCurrentWorkingDirectory(): string;
|
|
72
|
+
getCurrentSubshellContext(): SubshellContext;
|
|
65
73
|
handlePickerSelection(selection: string, pickerType: 'model'): Promise<void>;
|
|
74
|
+
private sshHandler?;
|
|
66
75
|
initialize(): Promise<void>;
|
|
67
76
|
/**
|
|
68
77
|
* Get migration message if configuration was migrated
|
|
@@ -84,8 +93,38 @@ export declare class CentaurusCLI {
|
|
|
84
93
|
getModel(): string;
|
|
85
94
|
handleMessage(message: string): Promise<void>;
|
|
86
95
|
private handleSlashCommand;
|
|
87
|
-
|
|
96
|
+
/**
|
|
97
|
+
* Get environment context for backend
|
|
98
|
+
* Returns structured environment information to be sent to backend
|
|
99
|
+
*/
|
|
88
100
|
private getEnvironmentContext;
|
|
101
|
+
/**
|
|
102
|
+
* Get current mode
|
|
103
|
+
* Returns the current mode (default, plan, or command)
|
|
104
|
+
*/
|
|
105
|
+
private getMode;
|
|
106
|
+
/**
|
|
107
|
+
* Check if response contains completion marker
|
|
108
|
+
* Returns true if the <TASK_COMPLETE> marker is found in the text
|
|
109
|
+
*/
|
|
110
|
+
private hasCompletionMarker;
|
|
111
|
+
/**
|
|
112
|
+
* Remove completion marker from text
|
|
113
|
+
* Strips the <TASK_COMPLETE> marker from display text
|
|
114
|
+
*/
|
|
115
|
+
private removeCompletionMarker;
|
|
116
|
+
/**
|
|
117
|
+
* Check if response contains strong completion phrases
|
|
118
|
+
* Returns true if the text contains phrases that strongly indicate task completion
|
|
119
|
+
* Used as fallback when completion marker is not present
|
|
120
|
+
*/
|
|
121
|
+
private hasStrongCompletionPhrase;
|
|
122
|
+
/**
|
|
123
|
+
* Check if response seems incomplete
|
|
124
|
+
* Returns true if the text contains phrases that suggest the AI stopped prematurely
|
|
125
|
+
* Only triggers within first 15 turns to prevent infinite loops
|
|
126
|
+
*/
|
|
127
|
+
private seemsIncomplete;
|
|
89
128
|
private getPlanModeInstructions;
|
|
90
129
|
private parsePlanResponse;
|
|
91
130
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli-adapter.d.ts","sourceRoot":"","sources":["../src/cli-adapter.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"cli-adapter.d.ts","sourceRoot":"","sources":["../src/cli-adapter.ts"],"names":[],"mappings":"AAuBA,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AAGrD,qBAAa,YAAY;IACvB,OAAO,CAAC,aAAa,CAAgB;IACrC,OAAO,CAAC,YAAY,CAAe;IACnC,OAAO,CAAC,mBAAmB,CAAmB;IAC9C,OAAO,CAAC,GAAG,CAAS;IACpB,OAAO,CAAC,QAAQ,CAAkB;IAClC,OAAO,CAAC,WAAW,CAAkB;IACrC,OAAO,CAAC,YAAY,CAAyC;IAC7D,OAAO,CAAC,kBAAkB,CAAC,CAA4B;IACvD,OAAO,CAAC,wBAAwB,CAAC,CAA0B;IAC3D,OAAO,CAAC,mBAAmB,CAAC,CAAiC;IAC7D,OAAO,CAAC,WAAW,CAAC,CAAwB;IAC5C,OAAO,CAAC,oBAAoB,CAAC,CAA0G;IACvI,OAAO,CAAC,qBAAqB,CAAC,CAAwJ;IACtL,OAAO,CAAC,qBAAqB,CAAC,CAAsP;IACpR,OAAO,CAAC,qBAAqB,CAAC,CAAmF;IACjH,OAAO,CAAC,gBAAgB,CAAC,CAA8B;IACvD,OAAO,CAAC,qBAAqB,CAAC,CAAoE;IAClG,OAAO,CAAC,iBAAiB,CAAC,CAAuC;IACjE,OAAO,CAA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