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

@@ -1268,7 +1268,6 @@ export async function execIntoTmuxWorktree(args: string[]): Promise<{
}
}
repoName = basename(findCanonicalGitRoot(getCwd()) ?? getCwd())
// biome-ignore lint/suspicious/noConsole: intentional console output
console.log(`Using worktree via hook: ${worktreeDir}`)
} else {
// Get main git repo root (resolves through worktrees)
@@ -1291,7 +1290,6 @@ export async function execIntoTmuxWorktree(args: string[]): Promise<{
prNumber !== null ? { prNumber } : undefined,
)
if (!result.existed) {
// biome-ignore lint/suspicious/noConsole: intentional console output
console.log(
`Created worktree: ${worktreeDir} (based on ${(result as any).baseBranch})`,
)
@@ -1383,7 +1381,6 @@ export async function execIntoTmuxWorktree(args: string[]): Promise<{
// Print hint about iTerm2 preferences when using control mode
if (useControlMode && !sessionExists) {
const y = chalk.yellow
// biome-ignore lint/suspicious/noConsole: intentional user guidance
console.log(
`\n${y('╭─ iTerm2 Tip ────────────────────────────────────────────────────────╮')}\n` +
`${y('│')} To open as a tab instead of a new window: ${y('│')}\n` +