MCPcopy Create free account

hub / github.com/Hanson/claude-client / functions

Functions209 in github.com/Hanson/claude-client

↓ 1 callersMethodhandleSpecialCommand
* 处理特殊命令
src/app.ts:276
↓ 1 callersFunctionhandleStartup
()
src/cli.ts:157
↓ 1 callersMethodinitialize
* 初始化 - 获取机器人信息
src/feishu/handler.ts:94
↓ 1 callersMethodisGitRepo
(dir: string)
src/change-logger/git-logger.ts:73
↓ 1 callersFunctionisPlatformSupported
()
src/startup/index.ts:88
↓ 1 callersFunctionlinuxServiceTemplate
(vars: TemplateVars)
src/startup/templates.ts:66
↓ 1 callersMethodload
* 从文件加载目录历史
src/session/directory-store.ts:29
↓ 1 callersMethodload
* 从文件加载任务
src/session/task-store.ts:33
↓ 1 callersFunctionloadCommandsFromDir
* 从 .claude/commands/ 目录加载项目命令
src/utils/formatter.ts:337
↓ 1 callersFunctionloadConfig
()
src/utils/config.ts:66
↓ 1 callersMethodloadConfig
* 从文件加载配置
src/change-logger/manager.ts:166
↓ 1 callersMethodloadProcessedIds
* 从文件加载已处理的消息 ID
src/feishu/handler.ts:53
↓ 1 callersMethodloadSettings
* 加载持久化设置
src/app.ts:74
↓ 1 callersFunctionmacosPlistTemplate
(vars: TemplateVars)
src/startup/templates.ts:32
↓ 1 callersFunctionmain
()
src/cli.ts:20
↓ 1 callersFunctionparseFeishuDomain
(value: string)
src/utils/config.ts:43
↓ 1 callersFunctionparseLogLevel
(value: string)
src/utils/config.ts:58
↓ 1 callersMethodparseMessageContent
* 解析消息内容
src/feishu/client.ts:422
↓ 1 callersMethodparseMessageEvent
* 解析飞书消息事件
src/feishu/client.ts:400
↓ 1 callersFunctionparsePermissionMode
(value: string)
src/utils/config.ts:50
↓ 1 callersMethodprocessMessage
* 处理消息 (发送给 Claude)
src/app.ts:570
↓ 1 callersFunctionsafeStringify
* 安全地将对象转换为 JSON 字符串,处理循环引用
src/utils/logger.ts:13
↓ 1 callersMethodsaveProcessedIds
* 保存已处理的消息 ID 到文件
src/feishu/handler.ts:71
↓ 1 callersMethodsaveTask
* 保存或更新任务
src/session/task-store.ts:76
↓ 1 callersMethodsetBotOpenId
* 设置机器人 Open ID
src/feishu/client.ts:648
↓ 1 callersMethodsetClaudeSessionId
* 设置 Claude 会话 ID
src/session/manager.ts:118
↓ 1 callersMethodsetFeishuClient
* 设置飞书客户端
src/change-logger/manager.ts:60
↓ 1 callersMethodsetPermissionMode
* 设置指定聊天的权限模式
src/app.ts:147
↓ 1 callersMethodsetupEventHandlers
* 设置事件处理器
src/feishu/handler.ts:113
↓ 1 callersMethodshouldExclude
(file: string)
src/change-logger/git-logger.ts:105
↓ 1 callersFunctionshowConfig
()
src/cli.ts:113
↓ 1 callersMethodstartCleanupTimer
* 启动定期清理计时器
src/session/manager.ts:243
↓ 1 callersFunctionstartServer
()
src/cli.ts:57
↓ 1 callersMethodstartWebSocket
* 启动 WebSocket 客户端 (长连接模式)
src/feishu/handler.ts:296
↓ 1 callersMethodstop
* 停止应用
src/app.ts:193
↓ 1 callersMethodstop
* 停止会话管理器
src/session/manager.ts:274
↓ 1 callersMethodstopWebSocket
* 停止 WebSocket 客户端
src/feishu/handler.ts:318
↓ 1 callersMethodstripBotMention
* 移除消息中的 @ 机器人
src/feishu/client.ts:451
↓ 1 callersMethodupdateLastMessage
* 更新任务的最后消息
src/session/task-store.ts:106
↓ 1 callersMethodupdateMessage
* 更新消息
src/feishu/client.ts:312
↓ 1 callersMethodupdateOptions
* 更新选项
src/claude/agent.ts:770
↓ 1 callersFunctionwalkDir
(dir: string, prefix: string)
src/utils/formatter.ts:343
↓ 1 callersFunctionwindowsVbsTemplate
(vars: TemplateVars)
src/startup/templates.ts:17
MethodaddPendingPermission
* 添加待处理权限请求
src/session/manager.ts:171
MethodclearPendingPermissions
* 清除待处理权限请求
src/session/manager.ts:211
Methodclose
* 关闭管理器
src/change-logger/manager.ts:155
Methodclose
()
src/change-logger/feishu-doc-logger.ts:119
Methodconstructor
(options: ClaudeClientAppOptions = {})
src/app.ts:52
Methodconstructor
(config: FeishuConfig)
src/feishu/client.ts:19
Methodconstructor
(config: FeishuConfig, options: FeishuEventHandlerOptions = {})
src/feishu/handler.ts:34
Methodconstructor
(options: SessionManagerOptions = {})
src/session/manager.ts:24
Methodconstructor
(dataDir: string = './data')
src/session/directory-store.ts:21
Methodconstructor
(dataDir: string = './data')
src/session/task-store.ts:25
Methodconstructor
(config: Partial<GitLoggerConfig> = {}, dataDir: string = './data')
src/change-logger/git-logger.ts:23
Methodconstructor
(config: Partial<ChangeLoggerConfig> = {}, dataDir: string = './data')
src/change-logger/manager.ts:52
Methodconstructor
(config: Partial<FeishuDocLoggerConfig>, feishuClient?: any)
src/change-logger/feishu-doc-logger.ts:39
Methodconstructor
(options: ClaudeSessionOptions)
src/claude/agent.ts:99
FunctioncreateClaudeAgent
(options: ClaudeSessionOptions)
src/claude/agent.ts:780
FunctioncreateHTTPAdapter
( eventHandler: FeishuEventHandler, path: string = '/feishu/events' )
src/feishu/handler.ts:330
MethodcreateWSClient
* 创建 WebSocket 客户端 (用于长连接)
src/feishu/client.ts:39
MethodexecuteAsync
* 异步执行并返回 Promise(支持进度监控) * 使用 spawnSync 在 Promise 中执行,避免 Windows 上 spawn 的兼容性问题
src/claude/agent.ts:237
FunctionextractToolCalls
(message: ClaudeAssistantMessage)
src/claude/agent.ts:844
FunctionformatClaudeResponse
(message: ClaudeAssistantMessage)
src/claude/agent.ts:825
FunctionformatHistoryForContext
(messages: SessionMessage[])
src/utils/formatter.ts:129
FunctiongenerateHelpMessage
()
src/utils/formatter.ts:823
MethodgetActiveSessionCount
* 获取活跃会话数量
src/session/manager.ts:284
MethodgetActiveSessions
* 获取所有活跃会话
src/session/manager.ts:297
FunctiongetEnvBoolean
(key: string, defaultValue: boolean)
src/utils/config.ts:35
FunctiongetFeishuClient
()
src/feishu/client.ts:656
MethodgetHistory
(options: { chatId?: string; limit?: number } = {})
src/change-logger/git-logger.ts:147
MethodgetHistory
* 获取变更历史
src/change-logger/manager.ts:143
MethodgetMessage
* 获取消息详情
src/feishu/client.ts:253
MethodgetMessageHistory
* 获取会话历史
src/session/manager.ts:155
MethodgetPendingPermissions
* 获取待处理权限请求
src/session/manager.ts:181
MethodgetRecentHistory
* 获取最近的消息历史 (用于上下文)
src/session/manager.ts:162
MethodgetSessionById
* 通过会话 ID 获取会话
src/session/manager.ts:94
MethodgetTaskCount
* 获取任务数量
src/session/task-store.ts:171
Methodinit
()
src/change-logger/git-logger.ts:28
Methodinit
* 初始化管理器
src/change-logger/manager.ts:67
Methodinit
()
src/change-logger/feishu-doc-logger.ts:48
Functioninstall
(workingDir: string)
src/startup/index.ts:28
Functioninstall
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/linux.ts:33
Functioninstall
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/macos.ts:26
Functioninstall
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/windows.ts:41
FunctionisInstalled
()
src/startup/platforms/linux.ts:108
FunctionisInstalled
()
src/startup/platforms/macos.ts:99
FunctionisInstalled
()
src/startup/platforms/windows.ts:112
MethodlogChange
(record: ChangeRecord)
src/change-logger/git-logger.ts:35
MethodlogChange
(record: ChangeRecord)
src/change-logger/manager.ts:33
MethodlogChange
* 记录变更
src/change-logger/manager.ts:102
MethodlogChange
(record: ChangeRecord)
src/change-logger/feishu-doc-logger.ts:54
FunctionmarkdownToRichText
(markdown: string)
src/utils/markdown-to-rich-text.ts:31
MethodreadNewLines
()
src/claude/agent.ts:404
MethodremoveDirectory
* 删除目录记录
src/session/directory-store.ts:101
FunctionresetConfig
()
src/utils/config.ts:109
FunctionresetFeishuClient
()
src/feishu/client.ts:664
FunctionresetSessionManager
()
src/session/manager.ts:318
MethodsaveConfig
* 保存配置到文件
src/change-logger/manager.ts:182
MethodsendMessage
* 发送消息并流式处理响应 * @param prompt 用户输入 * @param continueConversation 是否继续对话(保持上下文)
src/claude/agent.ts:109
MethodsetFeishuClient
(client: any)
src/change-logger/feishu-doc-logger.ts:44
← previousnext →101–200 of 209, ranked by callers