Skip to content

Commit 8a87777

Browse files
committed
Remove support for the -p CLI flag and simplify argument parsing by
treating extra args as the initial prompt; updated bun.lock 🤖 Generated with Codebuff Co-Authored-By: Codebuff <noreply@codebuff.com>
1 parent dbf8ba6 commit 8a87777

File tree

3 files changed

+27
-21
lines changed

3 files changed

+27
-21
lines changed

bun.lock

Lines changed: 23 additions & 15 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cli/src/index.tsx

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,11 @@ import { clearLogFile } from './utils/logger'
77

88
function parseArgs(): { initialPrompt: string | null; clearLogs: boolean } {
99
const args = process.argv.slice(2)
10-
const pIndex = args.indexOf('-p')
1110
const clearLogs = args.includes('--clear-logs')
1211

13-
let initialPrompt: string | null = null
14-
if (pIndex !== -1 && pIndex < args.length - 1) {
15-
initialPrompt = args[pIndex + 1]
16-
}
12+
// Filter out --clear-logs and use remaining args as the prompt
13+
const promptArgs = args.filter((arg) => arg !== '--clear-logs')
14+
const initialPrompt = promptArgs.length > 0 ? promptArgs.join(' ') : null
1715

1816
return { initialPrompt, clearLogs }
1917
}

cli/src/utils/theme-system.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,7 @@ const DEFAULT_CHAT_THEMES: Record<ThemeName, ChatTheme> = {
342342
agentText: '#1f2937',
343343
agentCheckmark: '#059669',
344344
agentResponseCount: '#6b7280',
345-
agentFocusedBg: '#e5e7eb',
345+
agentFocusedBg: '#f3f4f6',
346346
agentContentText: '#111827',
347347
agentToggleHeaderBg: '#059669',
348348
agentToggleHeaderText: '#ffffff',

0 commit comments

Comments
 (0)