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:
@@ -379,7 +379,7 @@ async function readIdeLockfile(path: string): Promise<IdeLockfileInfo | null> {
|
||||
|
||||
return {
|
||||
workspaceFolders,
|
||||
port: parseInt(port),
|
||||
port: parseInt(port, 10),
|
||||
pid,
|
||||
ideName,
|
||||
useWebSocket,
|
||||
@@ -669,7 +669,7 @@ export async function detectIDEs(
|
||||
try {
|
||||
// Get the CLAUDE_CODE_SSE_PORT if set
|
||||
const ssePort = process.env.CLAUDE_CODE_SSE_PORT
|
||||
const envPort = ssePort ? parseInt(ssePort) : null
|
||||
const envPort = ssePort ? parseInt(ssePort, 10) : null
|
||||
|
||||
// Get the current working directory, normalized to NFC for consistent
|
||||
// comparison. macOS returns NFD paths (decomposed Unicode), while IDEs
|
||||
@@ -1006,7 +1006,7 @@ function getVSCodeIDECommandByParentProcess(): string | null {
|
||||
if (!ppidStr) {
|
||||
break
|
||||
}
|
||||
pid = parseInt(ppidStr.trim())
|
||||
pid = parseInt(ppidStr.trim(), 10)
|
||||
}
|
||||
|
||||
return null
|
||||
|
||||
Reference in New Issue
Block a user