mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-18 14:25:51 +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:
@@ -514,7 +514,6 @@ async function _runAndCache(
|
||||
} catch (e) {
|
||||
if (epoch !== _apiKeyHelperEpoch) return ' '
|
||||
const detail = e instanceof Error ? e.message : String(e)
|
||||
// biome-ignore lint/suspicious/noConsole: user-configured script failed; must be visible without --debug
|
||||
console.error(chalk.red(`apiKeyHelper failed: ${detail}`))
|
||||
logForDebugging(`Error getting API key from apiKeyHelper: ${detail}`, {
|
||||
level: 'error',
|
||||
@@ -690,7 +689,6 @@ export function refreshAwsAuth(awsAuthRefresh: string): Promise<boolean> {
|
||||
: chalk.red(
|
||||
'Error running awsAuthRefresh (in settings or ~/.claude.json):',
|
||||
)
|
||||
// biome-ignore lint/suspicious/noConsole:: intentional console output
|
||||
console.error(message)
|
||||
authStatusManager.endAuthentication(false)
|
||||
void resolve(false)
|
||||
@@ -769,10 +767,8 @@ async function getAwsCredsFromCredentialExport(): Promise<{
|
||||
'Error getting AWS credentials from awsCredentialExport (in settings or ~/.claude.json):',
|
||||
)
|
||||
if (e instanceof Error) {
|
||||
// biome-ignore lint/suspicious/noConsole:: intentional console output
|
||||
console.error(message, e.message)
|
||||
} else {
|
||||
// biome-ignore lint/suspicious/noConsole:: intentional console output
|
||||
console.error(message, e)
|
||||
}
|
||||
return null
|
||||
@@ -958,7 +954,6 @@ export function refreshGcpAuth(gcpAuthRefresh: string): Promise<boolean> {
|
||||
: chalk.red(
|
||||
'Error running gcpAuthRefresh (in settings or ~/.claude.json):',
|
||||
)
|
||||
// biome-ignore lint/suspicious/noConsole:: intentional console output
|
||||
console.error(message)
|
||||
authStatusManager.endAuthentication(false)
|
||||
void resolve(false)
|
||||
@@ -1779,6 +1774,7 @@ export function getOtelHeadersFromHelper(): Record<string, string> {
|
||||
const debounceMs = parseInt(
|
||||
process.env.CLAUDE_CODE_OTEL_HEADERS_HELPER_DEBOUNCE_MS ||
|
||||
DEFAULT_OTEL_HEADERS_DEBOUNCE_MS.toString(),
|
||||
10,
|
||||
)
|
||||
if (
|
||||
cachedOtelHeaders &&
|
||||
|
||||
Reference in New Issue
Block a user