Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Hanson/claude-client
/ functions
Functions
209 in github.com/Hanson/claude-client
⨍
Functions
209
◇
Types & classes
62
↓ 1 callers
Method
handleSpecialCommand
* 处理特殊命令
src/app.ts:276
↓ 1 callers
Function
handleStartup
()
src/cli.ts:157
↓ 1 callers
Method
initialize
* 初始化 - 获取机器人信息
src/feishu/handler.ts:94
↓ 1 callers
Method
isGitRepo
(dir: string)
src/change-logger/git-logger.ts:73
↓ 1 callers
Function
isPlatformSupported
()
src/startup/index.ts:88
↓ 1 callers
Function
linuxServiceTemplate
(vars: TemplateVars)
src/startup/templates.ts:66
↓ 1 callers
Method
load
* 从文件加载目录历史
src/session/directory-store.ts:29
↓ 1 callers
Method
load
* 从文件加载任务
src/session/task-store.ts:33
↓ 1 callers
Function
loadCommandsFromDir
* 从 .claude/commands/ 目录加载项目命令
src/utils/formatter.ts:337
↓ 1 callers
Function
loadConfig
()
src/utils/config.ts:66
↓ 1 callers
Method
loadConfig
* 从文件加载配置
src/change-logger/manager.ts:166
↓ 1 callers
Method
loadProcessedIds
* 从文件加载已处理的消息 ID
src/feishu/handler.ts:53
↓ 1 callers
Method
loadSettings
* 加载持久化设置
src/app.ts:74
↓ 1 callers
Function
macosPlistTemplate
(vars: TemplateVars)
src/startup/templates.ts:32
↓ 1 callers
Function
main
()
src/cli.ts:20
↓ 1 callers
Function
parseFeishuDomain
(value: string)
src/utils/config.ts:43
↓ 1 callers
Function
parseLogLevel
(value: string)
src/utils/config.ts:58
↓ 1 callers
Method
parseMessageContent
* 解析消息内容
src/feishu/client.ts:422
↓ 1 callers
Method
parseMessageEvent
* 解析飞书消息事件
src/feishu/client.ts:400
↓ 1 callers
Function
parsePermissionMode
(value: string)
src/utils/config.ts:50
↓ 1 callers
Method
processMessage
* 处理消息 (发送给 Claude)
src/app.ts:570
↓ 1 callers
Function
safeStringify
* 安全地将对象转换为 JSON 字符串,处理循环引用
src/utils/logger.ts:13
↓ 1 callers
Method
saveProcessedIds
* 保存已处理的消息 ID 到文件
src/feishu/handler.ts:71
↓ 1 callers
Method
saveTask
* 保存或更新任务
src/session/task-store.ts:76
↓ 1 callers
Method
setBotOpenId
* 设置机器人 Open ID
src/feishu/client.ts:648
↓ 1 callers
Method
setClaudeSessionId
* 设置 Claude 会话 ID
src/session/manager.ts:118
↓ 1 callers
Method
setFeishuClient
* 设置飞书客户端
src/change-logger/manager.ts:60
↓ 1 callers
Method
setPermissionMode
* 设置指定聊天的权限模式
src/app.ts:147
↓ 1 callers
Method
setupEventHandlers
* 设置事件处理器
src/feishu/handler.ts:113
↓ 1 callers
Method
shouldExclude
(file: string)
src/change-logger/git-logger.ts:105
↓ 1 callers
Function
showConfig
()
src/cli.ts:113
↓ 1 callers
Method
startCleanupTimer
* 启动定期清理计时器
src/session/manager.ts:243
↓ 1 callers
Function
startServer
()
src/cli.ts:57
↓ 1 callers
Method
startWebSocket
* 启动 WebSocket 客户端 (长连接模式)
src/feishu/handler.ts:296
↓ 1 callers
Method
stop
* 停止应用
src/app.ts:193
↓ 1 callers
Method
stop
* 停止会话管理器
src/session/manager.ts:274
↓ 1 callers
Method
stopWebSocket
* 停止 WebSocket 客户端
src/feishu/handler.ts:318
↓ 1 callers
Method
stripBotMention
* 移除消息中的 @ 机器人
src/feishu/client.ts:451
↓ 1 callers
Method
updateLastMessage
* 更新任务的最后消息
src/session/task-store.ts:106
↓ 1 callers
Method
updateMessage
* 更新消息
src/feishu/client.ts:312
↓ 1 callers
Method
updateOptions
* 更新选项
src/claude/agent.ts:770
↓ 1 callers
Function
walkDir
(dir: string, prefix: string)
src/utils/formatter.ts:343
↓ 1 callers
Function
windowsVbsTemplate
(vars: TemplateVars)
src/startup/templates.ts:17
Method
addPendingPermission
* 添加待处理权限请求
src/session/manager.ts:171
Method
clearPendingPermissions
* 清除待处理权限请求
src/session/manager.ts:211
Method
close
* 关闭管理器
src/change-logger/manager.ts:155
Method
close
()
src/change-logger/feishu-doc-logger.ts:119
Method
constructor
(options: ClaudeClientAppOptions = {})
src/app.ts:52
Method
constructor
(config: FeishuConfig)
src/feishu/client.ts:19
Method
constructor
(config: FeishuConfig, options: FeishuEventHandlerOptions = {})
src/feishu/handler.ts:34
Method
constructor
(options: SessionManagerOptions = {})
src/session/manager.ts:24
Method
constructor
(dataDir: string = './data')
src/session/directory-store.ts:21
Method
constructor
(dataDir: string = './data')
src/session/task-store.ts:25
Method
constructor
(config: Partial<GitLoggerConfig> = {}, dataDir: string = './data')
src/change-logger/git-logger.ts:23
Method
constructor
(config: Partial<ChangeLoggerConfig> = {}, dataDir: string = './data')
src/change-logger/manager.ts:52
Method
constructor
(config: Partial<FeishuDocLoggerConfig>, feishuClient?: any)
src/change-logger/feishu-doc-logger.ts:39
Method
constructor
(options: ClaudeSessionOptions)
src/claude/agent.ts:99
Function
createClaudeAgent
(options: ClaudeSessionOptions)
src/claude/agent.ts:780
Function
createHTTPAdapter
( eventHandler: FeishuEventHandler, path: string = '/feishu/events' )
src/feishu/handler.ts:330
Method
createWSClient
* 创建 WebSocket 客户端 (用于长连接)
src/feishu/client.ts:39
Method
executeAsync
* 异步执行并返回 Promise(支持进度监控) * 使用 spawnSync 在 Promise 中执行,避免 Windows 上 spawn 的兼容性问题
src/claude/agent.ts:237
Function
extractToolCalls
(message: ClaudeAssistantMessage)
src/claude/agent.ts:844
Function
formatClaudeResponse
(message: ClaudeAssistantMessage)
src/claude/agent.ts:825
Function
formatHistoryForContext
(messages: SessionMessage[])
src/utils/formatter.ts:129
Function
generateHelpMessage
()
src/utils/formatter.ts:823
Method
getActiveSessionCount
* 获取活跃会话数量
src/session/manager.ts:284
Method
getActiveSessions
* 获取所有活跃会话
src/session/manager.ts:297
Function
getEnvBoolean
(key: string, defaultValue: boolean)
src/utils/config.ts:35
Function
getFeishuClient
()
src/feishu/client.ts:656
Method
getHistory
(options: { chatId?: string; limit?: number } = {})
src/change-logger/git-logger.ts:147
Method
getHistory
* 获取变更历史
src/change-logger/manager.ts:143
Method
getMessage
* 获取消息详情
src/feishu/client.ts:253
Method
getMessageHistory
* 获取会话历史
src/session/manager.ts:155
Method
getPendingPermissions
* 获取待处理权限请求
src/session/manager.ts:181
Method
getRecentHistory
* 获取最近的消息历史 (用于上下文)
src/session/manager.ts:162
Method
getSessionById
* 通过会话 ID 获取会话
src/session/manager.ts:94
Method
getTaskCount
* 获取任务数量
src/session/task-store.ts:171
Method
init
()
src/change-logger/git-logger.ts:28
Method
init
* 初始化管理器
src/change-logger/manager.ts:67
Method
init
()
src/change-logger/feishu-doc-logger.ts:48
Function
install
(workingDir: string)
src/startup/index.ts:28
Function
install
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/linux.ts:33
Function
install
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/macos.ts:26
Function
install
(workingDir: string, nodePath: string, cliPath: string)
src/startup/platforms/windows.ts:41
Function
isInstalled
()
src/startup/platforms/linux.ts:108
Function
isInstalled
()
src/startup/platforms/macos.ts:99
Function
isInstalled
()
src/startup/platforms/windows.ts:112
Method
logChange
(record: ChangeRecord)
src/change-logger/git-logger.ts:35
Method
logChange
(record: ChangeRecord)
src/change-logger/manager.ts:33
Method
logChange
* 记录变更
src/change-logger/manager.ts:102
Method
logChange
(record: ChangeRecord)
src/change-logger/feishu-doc-logger.ts:54
Function
markdownToRichText
(markdown: string)
src/utils/markdown-to-rich-text.ts:31
Method
readNewLines
()
src/claude/agent.ts:404
Method
removeDirectory
* 删除目录记录
src/session/directory-store.ts:101
Function
resetConfig
()
src/utils/config.ts:109
Function
resetFeishuClient
()
src/feishu/client.ts:664
Function
resetSessionManager
()
src/session/manager.ts:318
Method
saveConfig
* 保存配置到文件
src/change-logger/manager.ts:182
Method
sendMessage
* 发送消息并流式处理响应 * @param prompt 用户输入 * @param continueConversation 是否继续对话(保持上下文)
src/claude/agent.ts:109
Method
setFeishuClient
(client: any)
src/change-logger/feishu-doc-logger.ts:44
← previous
next →
101–200 of 209, ranked by callers