Skip to content

Commit 2209128

Browse files
committed
fix(review): import-first in proxy.ts, drop duplicate EXTERNAL_* comments in .env.example
1 parent 9d5e7bc commit 2209128

2 files changed

Lines changed: 1 addition & 5 deletions

File tree

‎.env.example‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,6 @@ OPENCODE_PROXY_CLEANUP_MAX_AGE_MS=86400000
3636
# OPENCODE_PROXY_DEBUG=false
3737
# OPENCODE_PATH=opencode
3838
# OPENCODE_ZEN_API_KEY=
39-
# External bridge (fixed values today; passed through by compose)
40-
# OPENCODE_EXTERNAL_TOOLS_MODE=proxy-bridge
41-
# OPENCODE_EXTERNAL_TOOLS_CONFLICT_POLICY=namespace
4239
# Internal allowlist (only applies when a request carries no tools)
4340
# OPENCODE_INTERNAL_WEB_FETCH_ENABLED=false
4441
# OPENCODE_INTERNAL_ALLOWED_TOOLS=

‎src/proxy.ts‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,12 @@ import type {
4040
} from './types/context.js';
4141
import type { ProxyClient, ProviderInfo, ModelInfo, ResolvedModel } from './types/client.js';
4242
import type { ResponseStateEntry } from './types/backend.js';
43+
import { asRecord, toErrorMessage } from './utils/guards.js';
4344

4445
// P4: thin re-exports to preserve original import paths
4546
// (tests/env-alias.test.js, stream-hardening.test.js import these from '../src/proxy.js').
4647
export { normalizeBool, resolveDisableTools, withTimeout };
4748

48-
import { asRecord, toErrorMessage } from './utils/guards.js';
49-
5049
export function createApp(config: ProxyConfig): CreateAppResult {
5150
const {
5251
API_KEY,

0 commit comments

Comments
 (0)