Skip to content

Commit f62ed7d

Browse files
committed
Merge branch 'main' into gpt-5.2
2 parents a83e5ae + e66db8b commit f62ed7d

File tree

129 files changed

+15052
-4040
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

129 files changed

+15052
-4040
lines changed

.bin/bun

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -206,6 +206,12 @@ check_env_setup() {
206206
# Bun loads .env files natively, but inherited shell variables take precedence.
207207
# We unset variables defined in our env files so Bun can set fresh values.
208208
clear_inherited_env_vars() {
209+
# Skip clearing if CODEBUFF_SKIP_ENV_CLEAR is set
210+
# Used by TypeScript scripts that already have env vars loaded via Bun
211+
if [ -n "$CODEBUFF_SKIP_ENV_CLEAR" ]; then
212+
return
213+
fi
214+
209215
# Unset variables from .env.local so Bun can load fresh values
210216
if [ -f "$ENV_LOCAL_FILE" ]; then
211217
while IFS='=' read -r key _; do

.github/workflows/sdk-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191
- name: Build SDK
9292
run: |
9393
cd sdk
94-
bun run build:verify
94+
bun run verify
9595
9696
- name: Set up Node.js for npm publishing
9797
uses: actions/setup-node@v4
@@ -102,7 +102,7 @@ jobs:
102102
- name: Publish to npm
103103
run: |
104104
cd sdk
105-
bun run publish-sdk
105+
bun run scripts/publish.ts
106106
env:
107107
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
108108

bun.lock

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

cli/src/app.tsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import { useChatStore } from './state/chat-store'
2020
import { openFileAtPath } from './utils/open-file'
2121

2222
import type { MultilineInputHandle } from './components/multiline-input'
23+
import type { AgentMode } from './utils/constants'
2324
import type { AuthStatus } from './utils/status-indicator-state'
2425
import type { FileTreeNode } from '@codebuff/common/util/file'
2526

@@ -31,6 +32,7 @@ interface AppProps {
3132
fileTree: FileTreeNode[]
3233
continueChat: boolean
3334
continueChatId?: string
35+
initialMode?: AgentMode
3436
}
3537

3638
export const App = ({
@@ -41,6 +43,7 @@ export const App = ({
4143
fileTree,
4244
continueChat,
4345
continueChatId,
46+
initialMode,
4447
}: AppProps) => {
4548
const { contentMaxWidth, terminalWidth } = useTerminalDimensions()
4649
const theme = useTheme()
@@ -138,6 +141,7 @@ export const App = ({
138141
Directory{' '}
139142
<TerminalLink
140143
text={displayPath}
144+
color={theme.muted}
141145
inline={true}
142146
underlineOnHover={true}
143147
onActivate={() => openFileAtPath(repoRoot)}
@@ -194,6 +198,7 @@ export const App = ({
194198
continueChat={continueChat}
195199
continueChatId={continueChatId}
196200
authStatus={authStatus}
201+
initialMode={initialMode}
197202
/>
198203
)
199204
}

0 commit comments

Comments
 (0)