Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/PGshen/thinking-map
/ functions
Functions
1,120 in github.com/PGshen/thinking-map
⨍
Functions
1,120
◇
Types & classes
359
↓ 3 callers
Function
updateNode
(mapID: string, nodeID: string, params: UpdateNodeRequest)
web/src/api/node.ts:36
↓ 3 callers
Function
useSSEConnection
({ mapID, callbacks, onOpen, onError, }: SSEConnectionOptions)
web/src/hooks/use-sse-connection.ts:419
↓ 3 callers
Function
useWorkspaceData
(mapID?: string)
web/src/features/workspace/hooks/use-workspace-data.ts:16
↓ 2 callers
Method
CreateMessageInTx
CreateMessageInTx 在事务中创建消息
server/internal/global/message_manager.go:118
↓ 2 callers
Function
CreateNodeTool
CreateNodeTool 创建节点工具
server/internal/agent/tool/node/operator.go:395
↓ 2 callers
Function
DefaultOpenAIModelConfig
(ctx context.Context)
server/internal/agent/llmmodel/openai.go:12
↓ 2 callers
Method
DeleteNode
DeleteNode 删除节点
server/internal/service/node.go:341
↓ 2 callers
Function
DeleteNodeTool
DeleteNodeTool 删除节点工具
server/internal/agent/tool/node/operator.go:465
↓ 2 callers
Function
GetAllNodeTools
GetAllNodeTools 获取所有节点操作工具
server/internal/agent/tool/node/operator.go:516
↓ 2 callers
Method
GetLocalClient
获取本地客户端
server/internal/pkg/sse/eventbus.go:20
↓ 2 callers
Method
GetMap
GetMap retrieves a specific thinking map
server/internal/service/map.go:66
↓ 2 callers
Method
GetNodeChildren
GetNodeChildren 获取节点的所有子节点信息,格式化为消息用于LLM上下文
server/internal/global/message_manager.go:705
↓ 2 callers
Function
InitMessageManager
InitMessageManager 初始化全局消息管理器
server/internal/global/message_manager.go:45
↓ 2 callers
Method
LinkMessageToNodeInTx
LinkMessageToNodeInTx 在事务中将消息关联到节点
server/internal/global/message_manager.go:604
↓ 2 callers
Method
ListNodes
ListNodes 获取某个map下的所有节点
server/internal/service/node.go:29
↓ 2 callers
Function
LoadTestConfig
LoadTestConfig 加载测试配置
server/internal/service/test_utils.go:29
↓ 2 callers
Method
Login
(ctx context.Context, req *dto.LoginRequest)
server/internal/service/auth.go:23
↓ 2 callers
Method
Logout
(ctx context.Context, accessToken string, refreshToken string)
server/internal/service/auth.go:25
↓ 2 callers
Method
OnMessage
(ctx context.Context, message *schema.Message)
server/internal/agent/base/multiagent/options.go:23
↓ 2 callers
Method
OnPlanOpEnd
(ctx context.Context, plan *TaskPlan)
server/internal/agent/base/multiagent/options.go:88
↓ 2 callers
Method
OnPlanStepCreate
(ctx context.Context, plan *TaskPlan, step *PlanStep)
server/internal/agent/base/multiagent/options.go:84
↓ 2 callers
Method
OnPlanStepUpdate
(ctx context.Context, plan *TaskPlan, step *PlanStep)
server/internal/agent/base/multiagent/options.go:85
↓ 2 callers
Method
OnStreamMessage
(ctx context.Context, message *schema.StreamReader[*schema.Message])
server/internal/agent/base/multiagent/options.go:24
↓ 2 callers
Method
RemoveClientWithTimestamp
RemoveClientWithTimestamp 移除指定时间戳的客户端,避免并发问题
server/internal/pkg/sse/broker.go:124
↓ 2 callers
Method
Reset
Reset 重置解析器状态
server/internal/pkg/utils/stream_json_parser.go:196
↓ 2 callers
Method
SetCurrentPlan
计划管理方法
server/internal/agent/base/multiagent/state.go:99
↓ 2 callers
Function
SetNodeDependenciesTool
SetNodeDependenciesTool 设置节点依赖关系工具
server/internal/agent/tool/node/operator.go:483
↓ 2 callers
Method
UnregisterConnection
注销连接
server/internal/pkg/sse/connection.go:42
↓ 2 callers
Method
UpdateNode
UpdateNode 更新节点
server/internal/service/node.go:315
↓ 2 callers
Function
UpdateNodeTool
UpdateNodeTool 更新节点工具
server/internal/agent/tool/node/operator.go:431
↓ 2 callers
Method
ValidateDependencyCycle
ValidateDependencyCycle 检查是否会产生循环依赖
server/internal/service/dependency_checker.go:114
↓ 2 callers
Method
addStep
addStep adds a new step to the plan
server/internal/agent/base/multiagent/handlers.go:895
↓ 2 callers
Function
applyGlobalLayout
( nodes: Node<CustomNodeModel>[], edges: Edge[], config: Partial<LayoutConfig> = {}, nodeSizesMap?: Ma
web/src/utils/layout-utils.ts:69
↓ 2 callers
Function
conclusion
(nodeID: string, reference: string, instruction: string)
web/src/api/node.ts:81
↓ 2 callers
Function
del
(url: string, config?: AxiosRequestConfig)
web/src/api/request.ts:41
↓ 2 callers
Method
disconnectConnection
(mapID: string)
web/src/hooks/use-sse-connection.ts:237
↓ 2 callers
Method
end
* 结束解析
web/src/lib/sse-parser.ts:552
↓ 2 callers
Method
endArray
endArray 结束数组处理
server/internal/pkg/utils/stream_json_parser.go:639
↓ 2 callers
Method
endArray
* 结束数组处理
web/src/lib/sse-parser.ts:542
↓ 2 callers
Method
endObject
endObject 结束对象处理
server/internal/pkg/utils/stream_json_parser.go:621
↓ 2 callers
Method
endObject
* 结束对象处理
web/src/lib/sse-parser.ts:533
↓ 2 callers
Function
fetchData
(reset = false)
web/src/app/(main)/history/page.tsx:28
↓ 2 callers
Function
findNextStep
findNextStep finds the next step to execute based on dependencies and status
server/internal/agent/base/multiagent/handlers.go:396
↓ 2 callers
Function
getAddStep
getAddStep returns a new PlanStep from OperationData
server/internal/agent/base/multiagent/handlers.go:931
↓ 2 callers
Method
getAncestor
getAncestorProblems 递归获取所有祖先节点的问题和目标
server/internal/service/node.go:346
↓ 2 callers
Method
getChildren
getChildren 获取所有直接子节点的问题、目标和结论
server/internal/service/node.go:405
↓ 2 callers
Method
getConnectionStatus
(mapID: string)
web/src/hooks/use-sse-connection.ts:248
↓ 2 callers
Function
getKeys
getKeys 获取map的所有键
server/internal/pkg/utils/stream_json_parser_test.go:548
↓ 2 callers
Function
getMessages
(mapID: string, nodeID: string, conversationType: string)
web/src/api/node.ts:63
↓ 2 callers
Function
getModifyStep
getModifyStep returns the step to modify
server/internal/agent/base/multiagent/handlers.go:992
↓ 2 callers
Method
getPreSibling
getPreSibling 获取所有前一个兄弟节点的问题、目标和结论
server/internal/service/node.go:376
↓ 2 callers
Function
getRefreshToken
()
web/src/lib/auth.ts:30
↓ 2 callers
Function
handleAddItem
(index: number, position: 'above' | 'below')
web/src/features/workspace/components/operation-panel/dependency-section.tsx:39
↓ 2 callers
Function
handleInputChange
(field: string, value: string)
web/src/features/workspace/components/operation-panel/info-tab.tsx:79
↓ 2 callers
Function
handleMessageTextOrThoughtEvent
( data: MessageTextEvent | MessageThoughtEvent, messageType: 'text' | 'thought' )
web/src/features/workspace/components/operation-panel/decompose-tab.tsx:110
↓ 2 callers
Function
handlePanelChange
(panel: 'map-info' | 'settings')
web/src/features/workspace/components/side-bar/side-bar.tsx:59
↓ 2 callers
Method
hasIncrementalContent
hasIncrementalContent 检查是否已经发送过增量内容
server/internal/pkg/utils/stream_json_parser.go:682
↓ 2 callers
Function
hashPassword
(password: string)
web/src/api/auth.ts:14
↓ 2 callers
Function
measureMarkdownSize
( content: string, styles: { fontSize?: string; fontWeight?: string; fontFamily?: string;
web/src/utils/dom-measurement.ts:65
↓ 2 callers
Function
parseEnvVar
parseEnvVar 解析环境变量引用,支持默认值语法 ${VAR:-default}
server/internal/config/loader.go:19
↓ 2 callers
Method
parsePath
parsePath 解析路径字符串为标记数组
server/internal/pkg/utils/stream_json_parser.go:45
↓ 2 callers
Method
registerEventCallbacks
(mapID: string, callbackId: string, configs: SSECallbackConfig[])
web/src/hooks/use-sse-connection.ts:201
↓ 2 callers
Method
removeCallbacks
(mapID: string, callbackId: string)
web/src/hooks/use-sse-connection.ts:222
↓ 2 callers
Method
removeStep
removeStep removes a step from the plan
server/internal/agent/base/multiagent/handlers.go:1010
↓ 2 callers
Function
removeToken
()
web/src/lib/auth.ts:37
↓ 2 callers
Method
rotateForSize
rotateForSize rotates the file due to size limit, keeping the same date but using a time-suffixed filename
server/internal/agent/callback/log_callback.go:174
↓ 2 callers
Method
rotateIfNeeded
rotateIfNeeded checks the current date and opens a new file if the day changed.
server/internal/agent/callback/log_callback.go:139
↓ 2 callers
Method
savePlanMessage
(ctx context.Context, plan multiagent.TaskPlan)
server/internal/service/decomposition.go:711
↓ 2 callers
Method
selectiveClearSpecialistResults
selectiveClearSpecialistResults clears results only for affected steps
server/internal/agent/base/multiagent/handlers.go:1108
↓ 2 callers
Method
shouldReconnect
(connection: SSEConnection)
web/src/hooks/use-sse-connection.ts:371
↓ 2 callers
Method
tryLocalSend
(ctx context.Context, lc *LocalClient, event Event)
server/internal/pkg/sse/eventbus.go:102
↓ 2 callers
Function
useChatMessage
()
web/src/components/ui/chat-message.tsx:45
↓ 2 callers
Function
useExecutableNodes
()
web/src/features/workspace/hooks/use-executable-nodes.ts:16
↓ 2 callers
Method
write
* 逐字符处理输入流 * @param chunk - 输入的字符块
web/src/lib/sse-parser.ts:219
↓ 1 callers
Method
AddCollectedResult
结果收集管理方法
server/internal/agent/base/multiagent/state.go:139
↓ 1 callers
Method
AddFeedback
反馈管理方法
server/internal/agent/base/multiagent/state.go:147
↓ 1 callers
Method
AddPlanToHistory
(plan *TaskPlan)
server/internal/agent/base/multiagent/state.go:103
↓ 1 callers
Method
Analyze
Analyze performs intent analysis for a given node
server/internal/service/decomposition.go:134
↓ 1 callers
Function
CleanupTestEnvironment
CleanupTestEnvironment 清理测试环境
server/internal/service/test_utils.go:116
↓ 1 callers
Function
CleanupTestEnvironment
CleanupTestEnvironment 清理测试环境
server/internal/global/test_utils.go:167
↓ 1 callers
Method
ClearConversation
ClearConversation 清空会话
server/internal/global/message_manager.go:443
↓ 1 callers
Method
ClearSpecialistResults
()
server/internal/agent/base/multiagent/state.go:134
↓ 1 callers
Method
Conclusion
(ctx *gin.Context, req dto.ConclusionRequest)
server/internal/service/conclusion.go:42
↓ 1 callers
Function
ConvertToSchemaMsg
(list []*dto.MessageResponse)
server/internal/global/message_manager.go:394
↓ 1 callers
Method
CreateConversation
CreateConversation 创建新会话
server/internal/global/message_manager.go:406
↓ 1 callers
Method
CreateInTx
(ctx context.Context, tx *gorm.DB, message *model.Message)
server/internal/repository/interfaces.go:59
↓ 1 callers
Method
Decompose
Decompose 拆解节点
server/internal/service/decomposition.go:297
↓ 1 callers
Method
Decomposition
(ctx *gin.Context, req dto.DecompositionRequest)
server/internal/service/decomposition.go:47
↓ 1 callers
Function
DefaultClaudeConfig
()
server/internal/agent/llmmodel/claude.go:11
↓ 1 callers
Method
DeleteByParentID
(ctx context.Context, parentID string)
server/internal/repository/interfaces.go:53
↓ 1 callers
Method
DeleteMap
DeleteMap deletes a thinking map
server/internal/service/map.go:166
↓ 1 callers
Method
DeleteMessage
DeleteMessage 删除消息
server/internal/global/message_manager.go:348
↓ 1 callers
Method
Evaluate
Evaluate determines the branch based on task complexity
server/internal/agent/base/multiagent/handlers.go:140
↓ 1 callers
Method
Evaluate
Evaluate determines which specialist should handle the current step
server/internal/agent/base/multiagent/handlers.go:447
↓ 1 callers
Method
Execute
Execute coordinates the execution of the current plan
server/internal/agent/base/multiagent/handlers.go:364
↓ 1 callers
Method
ExportGraph
ExportGraph exports the underlying graph
server/internal/agent/base/multiagent/types.go:211
↓ 1 callers
Method
Extract
(ctx context.Context, req *ExtractRequest)
server/internal/agent/tool/search/tavily.go:119
↓ 1 callers
Function
ExtractFunc
(ctx context.Context, req *ExtractFuncRequest)
server/internal/agent/tool/search/tavily.go:293
↓ 1 callers
Function
ExtractTool
()
server/internal/agent/tool/search/tavily.go:383
↓ 1 callers
Method
FromJSON
FromJSON deserializes the state from JSON
server/internal/agent/base/multiagent/state.go:56
← previous
next →
101–200 of 1,120, ranked by callers