mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
feat: 添加工具类增强与状态管理改进
- 新增 workflowRuns、remoteTriggerAudit、pipeStatus 等工具 - 增强 permissionSetup: auto mode 和 bypass permissions 始终可用 - 新增多组测试覆盖 (modifiers, teamDiscovery, deepLink 等) - 修复 parseInt 缺少 radix 参数 - 移除多余 biome-ignore 注释 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
23
src/utils/remoteControlStatus.ts
Normal file
23
src/utils/remoteControlStatus.ts
Normal file
@@ -0,0 +1,23 @@
|
||||
import {
|
||||
getBridgeAccessToken,
|
||||
getBridgeBaseUrl,
|
||||
isSelfHostedBridge,
|
||||
} from '../bridge/bridgeConfig.js'
|
||||
|
||||
export function formatRemoteControlLocalStatus(): string {
|
||||
try {
|
||||
const selfHosted = isSelfHostedBridge()
|
||||
const token = getBridgeAccessToken()
|
||||
return [
|
||||
`Remote Control: ${selfHosted ? 'self-hosted' : 'official'}`,
|
||||
` base_url=${getBridgeBaseUrl()}`,
|
||||
` token=${token ? 'present' : 'missing'}`,
|
||||
' entitlement=checked at remote-control startup',
|
||||
].join('\n')
|
||||
} catch (error) {
|
||||
return [
|
||||
'Remote Control: unknown',
|
||||
` reason=${error instanceof Error ? error.message : String(error)}`,
|
||||
].join('\n')
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user