MCPcopy Create free account

hub / github.com/canwhite/Krebs / functions

Functions345 in github.com/canwhite/Krebs

↓ 1 callersMethodwithLock
(fn: () => Promise<T>)
tools/lua-runtime.ts:27
FunctionApp
()
frontend/chat.tsx:144
FunctionabortAgent
( parentSessionId: string, agentId: string )
server/services/subagent/agent-manager.ts:172
MethodaddJob
* Add a scheduled job
server/services/subagent/scheduler.ts:33
FunctionareAllDone
(records: Map<string, { status: string }>)
server/services/subagent/group-join.ts:177
Functionbm25Search
( index: SearchIndex, queryTokens: string[], excludeSessionId: string, topK: number = 5 )
server/services/session-history/bm25.ts:88
FunctioncalculateBoundary
* 计算压缩边界(基于 index) * @param messages AgentMessage[] - 完整消息数组 * @param latestAnchor 上次 collapse 的 SummaryAnchor(如果有)
server/services/compact/contextCollapse.ts:56
MethodcanCheckDrift
* Check if drift detection is possible
server/services/goal-constraint/engine.ts:144
Methodcancel
* Cancel waiting
server/services/subagent/group-join.ts:137
FunctioncharNgram
(text: string, min = 2, max = 4)
server/services/goal-constraint/embedding.ts:125
FunctioncheckDiskSpace
()
server/services/session-manager/session-cleaner.ts:293
MethodcheckTokenThresholds
* Check if any token threshold has been reached
server/services/goal-constraint/engine.ts:26
FunctioncleanupAgents
(parentSessionId: string)
server/services/subagent/agent-manager.ts:267
Methodclear
()
server/services/subagent/session-cache.ts:27
Methodclear
* Clear all memories
server/services/subagent/memory.ts:68
FunctionclearChat
()
frontend/chat.tsx:657
FunctionclearRegistry
()
tools/lua-tools-registry.ts:71
MethodclearSession
* Clear all data for a session (for testing or cleanup)
server/services/goal-constraint/storage.ts:167
FunctionclearSkillCache
()
server/services/subagent/skill-loader.ts:215
FunctionclearSkillCacheForDir
(agentDir: string)
server/services/subagent/skill-loader.ts:222
FunctionclearSubagentMemory
(sessionId: string)
server/services/subagent/memory.ts:183
Functionclose
(ws: any)
server/index.ts:334
Methodclose
* 关闭日志流
lib/logger.ts:80
Functionconsolidate
( messages: AgentMessage[], ctx: ExtensionContext, api: ExtensionAPI )
server/services/memory/engine.ts:95
Methodconsolidate
( messages: AgentMessage[], ctx: ExtensionContext, api: ExtensionAPI )
server/services/memory/engine.ts:86
Methodconstructor
(name?: string)
lib/logger.ts:39
Methodconstructor
( private ws: any, private logger: { log: (msg: string) => void }, private state: SharedState, )
server/event-subscription.ts:22
Methodconstructor
( private ws: any, private logger: { log: (msg: string) => void }, )
server/event-subscription.ts:122
Methodconstructor
( private ws: any, private logger: { log: (msg: string) => void }, private state: SharedState,
server/event-subscription.ts:164
Methodconstructor
(parentSessionId: string, options: GroupJoinOptions)
server/services/subagent/group-join.ts:22
Methodconstructor
(parentSessionId: string)
server/services/subagent/fleet-view.ts:17
Methodconstructor
(parentCwd: string)
server/services/subagent/worktree.ts:17
Methodconstructor
( parentSessionId: string, executeFn: (task: string, options?: AgentOptions) => Promise<string> )
server/services/subagent/scheduler.ts:22
Methodconstructor
(session: AgentSession, parentMemoryKey: string)
server/services/subagent/memory.ts:19
Methodconstructor
( private sessionId: string, private ctx: ExtensionContext )
server/services/goal-constraint/engine.ts:18
Methodconstructor
()
server/services/session-manager/lru-session-manager.ts:37
FunctioncreateAgent
( parentSessionId: string, task: string, type: string, cwd: string, options?: AgentOptions, ctx?:
server/services/subagent/agent-manager.ts:50
FunctioncreateContextCollapser
(config: Partial<ContextCollapseConfig> = {})
server/services/compact/contextCollapse.ts:38
FunctioncreateFleetView
(parentSessionId: string)
server/services/subagent/fleet-view.ts:81
FunctioncreateMemoryConsolidationEngine
()
server/services/memory/engine.ts:93
FunctioncreateMicroCompact
(config: Partial<MicroCompactConfig> = {})
server/services/compact/microCompact.ts:22
FunctioncreateProjection
* 创建投影(在内存中,不修改底层)
server/services/compact/contextCollapse.ts:88
FunctioncreateRuntimeFactory
( options )
server/session-service.ts:68
FunctioncreateWorktreeManager
(cwd: string)
server/services/subagent/worktree.ts:207
MethoddetectDrift
* Detect drift in recent messages
server/services/goal-constraint/engine.ts:64
FunctionemergencyCleanup
(count: number = 5)
server/services/session-manager/session-cleaner.ts:241
Functionemit
(event: string, data: any, ctx: any)
test/self-verification.test.ts:141
Functionexecute
( script: string, params?: Record<string, unknown> )
tools/lua-runtime.ts:144
Functionexecute
( _toolCallId: string, params: { command: string }, signal: AbortSignal | undefined, o
server/sandbox/tools/bash.ts:70
FunctionextensionsOverride
(base: any)
server/agent-runner.ts:37
FunctionextractAssistantContent
* Extract content from an assistant message
server/services/session-manager/session-cleaner.ts:38
FunctionextractAssistantContent
( filePath: string, maxChars: number = 1000 )
server/services/session-history/storage.ts:44
MethodextractKeywords
* Extract keywords from text (top 20, stopword filtered)
server/services/goal-constraint/semantic.ts:14
FunctionextractMemoryContent
(messages: AgentMessage[])
server/services/subagent/memory.ts:134
FunctionfindToolResultsToPrune
* 扫描并返回需要 truncate 的 tool results
server/services/compact/microCompact.ts:49
MethodgenerateCorrectionMessage
* Generate correction message for drifted conversation
server/services/goal-constraint/engine.ts:119
MethodgenerateGoalSummary
* Generate goal summary (LLM preferred, fallback to heuristics)
server/services/goal-constraint/engine.ts:44
FunctiongenerateSummary
* 生成摘要(调 LLM)
server/services/compact/contextCollapse.ts:116
FunctiongetAgentByName
( cwd: string, name: string )
server/services/subagent/custom-agents.ts:169
FunctiongetAgentResult
( parentSessionId: string, agentId: string )
server/services/subagent/agent-manager.ts:121
MethodgetAll
* Get all memory entries
server/services/subagent/memory.ts:39
MethodgetAllGoalSummaries
* Get all goal summaries for a session
server/services/goal-constraint/storage.ts:111
FunctiongetAllLuaTools
()
tools/lua-tools-registry.ts:57
FunctiongetConfig
()
server/services/compact/microCompact.ts:125
FunctiongetConfig
()
server/services/compact/contextCollapse.ts:181
MethodgetContextString
* Get memories formatted for context injection
server/services/subagent/memory.ts:46
MethodgetGoalSummaryForThreshold
* Get goal summary for a specific threshold in a session
server/services/goal-constraint/storage.ts:92
MethodgetLatestGoalSummary
* Get the latest goal summary for a session
server/services/goal-constraint/storage.ts:73
MethodgetLatestSummary
* Get the latest goal summary
server/services/goal-constraint/engine.ts:137
FunctiongetLatestSummaryAnchor
(entries: any[])
server/services/compact/contextCollapse.ts:202
MethodgetNextRun
* Get next run time for a job
server/services/subagent/scheduler.ts:91
MethodgetPendingCount
* Get pending count
server/services/subagent/group-join.ts:154
MethodgetResults
* Get current results
server/services/subagent/group-join.ts:147
MethodgetSessionIds
* Get all session IDs
server/services/session-manager/lru-session-manager.ts:112
FunctiongetSkillByName
( agentDir: string, cwd: string, name: string )
server/services/subagent/skill-loader.ts:185
FunctiongetSkillByName
(name: string)
skills/index.ts:99
FunctiongetSkillNames
()
skills/index.ts:106
FunctiongetSubagentMemory
( session: AgentSession, parentMemoryKey: string = "default" )
server/services/subagent/memory.ts:124
MethodgetThresholdStatus
* Get threshold hit status for a session
server/services/goal-constraint/storage.ts:138
FunctiongetWorktreeBranch
(cwd: string)
server/services/subagent/worktree.ts:232
Functionhandle
(ws: WebSocket, message: { type: "switch_session"; sessionId: string })
server/handlers/SwitchSessionHandler.ts:17
Functionhandle
(ws: WebSocket, message: { type: "prompt"; message: string })
server/handlers/PromptHandler.ts:15
Methodhandle
(ws: WebSocket, message: { type: "switch_session"; sessionId: string })
server/handlers/SwitchSessionHandler.ts:12
FunctionhandleClickOutside
(event: MouseEvent)
frontend/chat.tsx:589
FunctionhandleFocus
()
frontend/chat.tsx:531
FunctionhandleKeyDown
(e: any)
frontend/chat.tsx:646
FunctionhandleMessage
(ws: WebSocket, rawMessage: string | Buffer)
server/ws-router.ts:25
FunctionhandleScroll
()
frontend/chat.tsx:552
FunctionhandleStopClick
()
frontend/chat.tsx:636
FunctionhasChinese
(text: string)
server/services/goal-constraint/embedding.ts:118
MethodhasSession
* Check if session exists
server/services/session-manager/lru-session-manager.ts:105
MethodhasThresholdBeenHit
* Check if a specific threshold has been hit
server/services/goal-constraint/storage.ts:156
Functioninitialize
()
tools/lua-runtime.ts:76
MethodisDebugEnabled
()
lib/logger.ts:27
MethodisDebugEnabled
* 检查是否启用 DEBUG 模式
lib/logger.ts:91
FunctionisFileDeleting
(filePath: string)
server/services/session-manager/session-cleaner.ts:57
FunctionisReady
()
tools/lua-runtime.ts:140
FunctionisValidCron
(expression: string)
server/services/subagent/scheduler.ts:346
FunctionisWorktree
(cwd: string)
server/services/subagent/worktree.ts:214
MethodkeywordMatchRate
* Calculate keyword match rate between message tokens and goal keywords
server/services/goal-constraint/semantic.ts:34
← previousnext →201–300 of 345, ranked by callers