mirror of
https://github.com/claude-code-best/claude-code.git
synced 2026-06-17 13:55:50 +00:00
- /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>
31 lines
741 B
TypeScript
31 lines
741 B
TypeScript
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(),
|
|
}
|
|
}
|