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:
unraid
2026-04-22 22:38:10 +08:00
parent 94c4b37eed
commit fb41513b32
54 changed files with 1037 additions and 102 deletions

View File

@@ -5,7 +5,7 @@
* Used by the Teams UI in the footer to show team status.
*/
import { isPaneBackend, type PaneBackendType } from './swarm/backends/types.js'
import { type BackendType } from './swarm/backends/types.js'
import { readTeamFile } from './swarm/teamHelpers.js'
export type TeamSummary = {
@@ -28,7 +28,7 @@ export type TeammateStatus = {
cwd: string
worktreePath?: string
isHidden?: boolean // Whether the pane is currently hidden from the swarm view
backendType?: PaneBackendType // The backend type used for this teammate
backendType?: BackendType // The backend type used for this teammate
mode?: string // Current permission mode for this teammate
}
@@ -67,10 +67,7 @@ export function getTeammateStatuses(teamName: string): TeammateStatus[] {
cwd: member.cwd,
worktreePath: member.worktreePath,
isHidden: hiddenPaneIds.has(member.tmuxPaneId),
backendType:
member.backendType && isPaneBackend(member.backendType)
? member.backendType
: undefined,
backendType: member.backendType,
mode: member.mode,
})
}