mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-21 15:55:50 +00:00
feat: 添加 GitHub 集成命令(issue、share、autofix-pr)
- /issue: 通过 gh CLI 创建 GitHub issue,支持标签/指派 - /share: 会话日志分享到 GitHub Gist,支持密钥脱敏 - /autofix-pr: 自动修复 CI 失败的 PR,进度追踪 - launchCommand: 共享命令启动器 Co-Authored-By: glm-5-turbo <zai-org@claude-code-best.win>
This commit is contained in:
30
src/commands/autofix-pr/inProcessAgent.ts
Normal file
30
src/commands/autofix-pr/inProcessAgent.ts
Normal file
@@ -0,0 +1,30 @@
|
||||
import { randomUUID } from 'node:crypto'
|
||||
import { getSessionId } from '../../bootstrap/state.js'
|
||||
import type { SessionId } from '../../types/ids.js'
|
||||
|
||||
export type AutofixTeammate = {
|
||||
agentId: string
|
||||
agentName: 'autofix-pr'
|
||||
teamName: '_autofix'
|
||||
color: undefined
|
||||
planModeRequired: false
|
||||
parentSessionId: SessionId
|
||||
abortController: AbortController
|
||||
taskId: string
|
||||
}
|
||||
|
||||
export function createAutofixTeammate(
|
||||
_initialMessage: string,
|
||||
_target: string,
|
||||
): AutofixTeammate {
|
||||
return {
|
||||
agentId: randomUUID(),
|
||||
agentName: 'autofix-pr',
|
||||
teamName: '_autofix',
|
||||
color: undefined,
|
||||
planModeRequired: false,
|
||||
parentSessionId: getSessionId(),
|
||||
abortController: new AbortController(),
|
||||
taskId: randomUUID(),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user