mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-15 12:55:51 +00:00
feat: 支持自托管的 remote-control-server (#214)
* feat: 支持自托管的 remote-control-server (#214) --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com> Co-authored-by: Copilot Autofix powered by AI <62310815+github-advanced-security[bot]@users.noreply.github.com>
This commit is contained in:
@@ -155,7 +155,8 @@ async function main(): Promise<void> {
|
||||
// getBridgeDisabledReason awaits GB init, so the returned value is fresh
|
||||
// (not the stale disk cache), but init still needs auth headers to work.
|
||||
const { getClaudeAIOAuthTokens } = await import('../utils/auth.js')
|
||||
if (!getClaudeAIOAuthTokens()?.accessToken) {
|
||||
const { getBridgeAccessToken } = await import('../bridge/bridgeConfig.js')
|
||||
if (!getClaudeAIOAuthTokens()?.accessToken && !getBridgeAccessToken()) {
|
||||
exitWithError(BRIDGE_LOGIN_ERROR)
|
||||
}
|
||||
const disabledReason = await getBridgeDisabledReason()
|
||||
|
||||
Reference in New Issue
Block a user