MCPcopy Create free account

hub / github.com/FoundDream/miniclawd / functions

Functions234 in github.com/FoundDream/miniclawd

↓ 74 callersMethodpush
(item: T)
src/infrastructure/queue/message-bus.ts:22
↓ 16 callersMethodregister
* Register a tool.
src/tools/registry.ts:20
↓ 12 callersFunctionnowMs
()
src/application/scheduler.ts:31
↓ 11 callersMethodget
* Get a tool by name.
src/tools/registry.ts:34
↓ 11 callersFunctiongetWorkspacePath
(workspace?: string)
src/utils/paths.ts:38
↓ 9 callersFunctionensureDir
(path: string)
src/utils/paths.ts:11
↓ 9 callersFunctionloadConfig
(configPath?: string)
src/infrastructure/config/loader.ts:81
↓ 8 callersMethodloadStore
* Load jobs from disk.
src/application/scheduler.ts:138
↓ 8 callersFunctionstripTags
* Strip HTML tags and decode entities.
src/tools/web.ts:19
↓ 7 callersFunctionexpandUser
(path: string)
src/utils/paths.ts:21
↓ 6 callersMethodarmTimer
* Schedule the next timer tick.
src/application/scheduler.ts:338
↓ 6 callersFunctiongetDataDir
()
src/infrastructure/config/loader.ts:20
↓ 6 callersMethodsaveStore
* Save jobs to disk.
src/application/scheduler.ts:189
↓ 5 callersFunctioncomputeNextRun
( schedule: Schedule, currentMs: number, )
src/application/scheduler.ts:35
↓ 5 callersMethodonMessage
(ctx: Context)
src/infrastructure/channels/telegram.ts:210
↓ 4 callersFunctionaddMessage
( session: Session, role: SessionMessage["role"], content: string, extras?: Partial<SessionMessage>, )
src/infrastructure/storage/session-store.ts:38
↓ 4 callersFunctioncreateOutboundMessage
* Create an outbound message with defaults.
src/tools/message.ts:14
↓ 4 callersMethodexecute
Execute the tool with given parameters
src/core/types/tool.ts:27
↓ 4 callersFunctiongetConfigPath
()
src/infrastructure/config/loader.ts:13
↓ 4 callersMethodsetContext
* Set the origin context for subagent announcements.
src/tools/spawn.ts:52
↓ 4 callersMethodstop
* Stop the channel and clean up resources.
src/core/interfaces/channel.ts:29
↓ 3 callersMethodchat
* Send a chat completion request.
src/core/interfaces/llm-provider.ts:15
↓ 3 callersMethoddelete
* Delete a session.
src/core/interfaces/storage.ts:24
↓ 3 callersMethodgetDefinitions
* Get all tool definitions as CoreTool record for AI SDK.
src/tools/registry.ts:48
↓ 3 callersMethodgetSessionPath
(key: string)
src/infrastructure/storage/session-store.ts:90
↓ 3 callersMethodgetSkillMetadata
* Get metadata from a skill's frontmatter.
src/application/skills-loader.ts:216
↓ 3 callersMethodhasToolCalls
* Check if response has tool calls.
src/infrastructure/llm/ai-sdk-provider.ts:196
↓ 3 callersMethodprocessDirect
* Process a message directly (for CLI usage).
src/application/agent-loop.ts:393
↓ 3 callersMethodpublishOutbound
* Publish a response from the agent to channels.
src/core/interfaces/message-bus.ts:34
↓ 3 callersMethodstart
* Start the channel and begin listening for messages.
src/core/interfaces/channel.ts:24
↓ 2 callersMethodannounceResult
* Announce the subagent result to the main agent via the message bus.
src/application/subagent.ts:193
↓ 2 callersMethodbuildMessages
* Build the complete message list for an LLM call.
src/application/context-builder.ts:141
↓ 2 callersMethodcheckRequirements
* Check if skill requirements are met.
src/application/skills-loader.ts:253
↓ 2 callersFunctioncreateInboundMessage
( partial: Partial<InboundMessage> & Pick<InboundMessage, "channel" | "senderId" | "chatId" | "content">
src/infrastructure/queue/events.ts:13
↓ 2 callersFunctioncreateStore
* Create a default job store.
src/application/scheduler.ts:70
↓ 2 callersMethodexecuteJob
* Execute a single job.
src/application/scheduler.ts:380
↓ 2 callersFunctiongetHistory
( session: Session, maxMessages: number = 50, )
src/infrastructure/storage/session-store.ts:57
↓ 2 callersMethodgetNextWakeMs
* Get the earliest next run time across all jobs.
src/application/scheduler.ts:327
↓ 2 callersMethodgetOrCreate
* Get an existing session or create a new one.
src/core/interfaces/storage.ts:14
↓ 2 callersMethodgetSkillMeta
* Get nanobot metadata for a skill.
src/application/skills-loader.ts:233
↓ 2 callersMethodgetTodayFile
* Get path to today's memory file.
src/infrastructure/storage/memory-store.ts:27
↓ 2 callersMethodisAllowed
* Check if a sender is allowed to use this bot.
src/core/interfaces/channel.ts:39
↓ 2 callersMethodlistSkills
* List all available skills.
src/application/skills-loader.ts:79
↓ 2 callersMethodloadSkill
* Load a skill by name.
src/application/skills-loader.ts:121
↓ 2 callersMethodparseNanobotMetadata
* Parse nanobot metadata JSON from frontmatter.
src/application/skills-loader.ts:241
↓ 2 callersMethodpop
()
src/infrastructure/queue/message-bus.ts:31
↓ 2 callersMethodpopWithTimeout
(timeoutMs: number)
src/infrastructure/queue/message-bus.ts:41
↓ 2 callersMethodprocessMessage
* Process a single inbound message.
src/application/agent-loop.ts:166
↓ 2 callersMethodpublishInbound
* Publish a message from a channel to the agent.
src/core/interfaces/message-bus.ts:19
↓ 2 callersMethodsave
* Save a session to persistent storage.
src/core/interfaces/storage.ts:19
↓ 2 callersFunctiontodayDate
()
src/utils/paths.ts:71
↓ 2 callersMethodwhich
* Check if a command exists.
src/application/skills-loader.ts:321
↓ 1 callersMethodaddHeartbeatJob
* Add heartbeat as a periodic job.
src/application/scheduler.ts:269
↓ 1 callersMethodaddJob
* Add a new job.
src/application/scheduler.ts:470
↓ 1 callersFunctionaskQuestion
()
src/cli/commands.ts:314
↓ 1 callersMethodbuildSkillsSummary
* Build a summary of all skills (name, description, path, availability).
src/application/skills-loader.ts:157
↓ 1 callersMethodbuildSubagentPrompt
* Build a focused system prompt for the subagent.
src/application/subagent.ts:227
↓ 1 callersMethodbuildSystemPrompt
* Build the system prompt from bootstrap files, memory, and skills.
src/application/context-builder.ts:37
↓ 1 callersMethodbuildUserContent
* Build user message content with optional base64-encoded images.
src/application/context-builder.ts:172
↓ 1 callersFunctioncamelToSnake
* Convert camelCase to snake_case.
src/infrastructure/config/loader.ts:31
↓ 1 callersMethodcheckHeartbeatFile
* Check if HEARTBEAT.md has actionable content.
src/application/scheduler.ts:438
↓ 1 callersMethodconsumeInboundWithTimeout
* Consume the next inbound message with timeout.
src/core/interfaces/message-bus.ts:29
↓ 1 callersMethodconsumeOutboundWithTimeout
* Consume the next outbound message with timeout.
src/infrastructure/queue/message-bus.ts:122
↓ 1 callersMethodconsumeOutboundWithTimeout
* Consume the next outbound message with timeout.
src/core/interfaces/message-bus.ts:44
↓ 1 callersFunctionconvertToCamel
* Recursively convert object keys from camelCase to snake_case.
src/infrastructure/config/loader.ts:47
↓ 1 callersFunctionconvertToSnake
* Recursively convert object keys from snake_case to camelCase.
src/infrastructure/config/loader.ts:64
↓ 1 callersFunctioncreateProgram
()
src/cli/commands.ts:109
↓ 1 callersFunctioncreateSession
* Create a new session.
src/infrastructure/storage/session-store.ts:25
↓ 1 callersFunctioncreateWorkspaceTemplates
* Create workspace template files.
src/cli/commands.ts:30
↓ 1 callersMethoddispatchOutbound
* Dispatch outbound messages to the appropriate channel.
src/infrastructure/channels/manager.ts:109
↓ 1 callersMethodenableJob
* Enable or disable a job.
src/application/scheduler.ts:517
↓ 1 callersMethodexecute
* Execute a tool by name with given parameters.
src/tools/registry.ts:73
↓ 1 callersMethodfetchDirect
( url: string, extractMode: "markdown" | "text", maxChars: number, )
src/tools/web.ts:329
↓ 1 callersMethodfetchJina
( url: string, maxChars: number, )
src/tools/web.ts:284
↓ 1 callersMethodgetAlwaysSkills
* Get skills marked as always=true that meet requirements.
src/application/skills-loader.ts:198
↓ 1 callersFunctiongetDataPath
()
src/utils/paths.ts:31
↓ 1 callersMethodgetExtension
(mediaType: string, mimeType?: string)
src/infrastructure/channels/telegram.ts:318
↓ 1 callersMethodgetIdentity
* Get the core identity section.
src/application/context-builder.ts:82
↓ 1 callersMethodgetMemoryContext
* Get combined memory context.
src/core/interfaces/storage.ts:64
↓ 1 callersMethodgetMissingRequirements
* Get a description of missing requirements.
src/application/skills-loader.ts:276
↓ 1 callersMethodgetProvider
* Get the appropriate provider based on model ID.
src/infrastructure/llm/ai-sdk-provider.ts:101
↓ 1 callersFunctiongetSessionKey
(msg: InboundMessage)
src/infrastructure/queue/events.ts:42
↓ 1 callersMethodgetSkillDescription
* Get the description of a skill from its frontmatter.
src/application/skills-loader.ts:298
↓ 1 callersMethodhas
* Check if a tool is registered.
src/tools/registry.ts:41
↓ 1 callersMethodinitChannels
* Initialize channels based on config.
src/infrastructure/channels/manager.ts:31
↓ 1 callersFunctionisHeartbeatEmpty
* Check if HEARTBEAT.md has no actionable content.
src/application/scheduler.ts:80
↓ 1 callersMethodlistJobs
* List all jobs.
src/application/scheduler.ts:457
↓ 1 callersMethodload
* Load a session from disk.
src/infrastructure/storage/session-store.ts:114
↓ 1 callersMethodloadBootstrapFiles
* Load all bootstrap files from workspace.
src/application/context-builder.ts:124
↓ 1 callersMethodloadSkillsForContext
* Load specific skills for inclusion in agent context.
src/application/skills-loader.ts:140
↓ 1 callersFunctionmarkdownToTelegramHtml
* Convert markdown to Telegram-safe HTML.
src/infrastructure/channels/telegram.ts:17
↓ 1 callersFunctionnormalize
* Normalize whitespace.
src/tools/web.ts:36
↓ 1 callersMethodonMessage
(data: any)
src/infrastructure/channels/feishu.ts:118
↓ 1 callersMethodonTimer
* Handle timer tick - run due jobs.
src/application/scheduler.ts:361
↓ 1 callersMethodprocessSystemMessage
* Process a system message (e.g., subagent announce).
src/application/agent-loop.ts:284
↓ 1 callersMethodpublishOutbound
* Publish a response from the agent to channels.
src/infrastructure/queue/message-bus.ts:108
↓ 1 callersMethodreadLongTerm
* Read long-term memory (MEMORY.md).
src/infrastructure/storage/memory-store.ts:64
↓ 1 callersMethodreadToday
* Read today's memory notes.
src/infrastructure/storage/memory-store.ts:34
↓ 1 callersMethodrecomputeNextRuns
* Recompute next run times for all enabled jobs.
src/application/scheduler.ts:314
↓ 1 callersMethodregisterDefaultTools
* Register the default set of tools.
src/application/agent-loop.ts:98
next →1–100 of 234, ranked by callers